PageSourceSearch

https://www.amigadatecuenta.org/_next/static/chunks/pages/_app-83d06d9b5062e3ff.js

js amigadatecuenta.org collected 2026-10-03 01:58:15 UTC 587,121 bytes, 245 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{8711:function(o,l,u){"use strict";function sheetForTag(o){if(o.sheet)return o.sheet;for(var l=0;l<document.styleSheets.length;l++)if(document.styleSheets[l].ownerNode===o)return document.styleSheets[l]}function createStyleElement(o){var l=document.createElement("style");return l.setAttribute("data-emotion",o.key),void 0!==o.nonce&&l.setAttribute("nonce",o.nonce),l.appendChild(document.createTextNode("")),l.setAttribute("data-s",""),l}u.d(l,{Z:function(){return createCache}});var c=function(){function StyleSheet(o){var l=this;this._insertTag=function(o){var u;u=0===l.tags.length?l.insertionPoint?l.insertionPoint.nextSibling:l.prepend?l.container.firstChild:l.before:l.tags[l.tags.length-1].nextSibling,l.container.insertBefore(o,u),l.tags.push(o)},this.isSpeedy=void 0===o.speedy||o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var o=StyleSheet.prototype;return o.hydrate=function(o){o.forEach(this._insertTag)},o.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var u=sheetForTag(l);try{u.insertRule(o,u.cssRules.length)}catch(o){}}else l.appendChild(document.createTextNode(o));this.ctr++}
1,o.flush=function(){this.tags.forEach(function(o){var l;return null==(l=o.parentNode)?void 0:l.removeChild(o)}),this.tags=[],this.ctr=0},StyleSheet}(),h=Math.abs,g=String.fromCharCode,y=Object.assign;function hash(o,l){return 45^Utility_charat(o,0)?(((l<<2^Utility_charat(o,0))<<2^Utility_charat(o,1))<<2^Utility_charat(o,2))<<2^Utility_charat(o,3):0}function Utility_match(o,l){return(o=l.exec(o))?o[0]:o}function Utility_replace(o,l,u){return o.replace(l,u)}function indexof(o,l){return o.indexOf(l)}function Utility_charat(o,l){return 0|o.charCodeAt(l)}function Utility_substr(o,l,u){return o.slice(l,u)}function Utility_strlen(o){return o.length}function Utility_append(o,l){return l.push(o),o}function Utility_combine(o,l){return o.map(l).join("")}var b=1,_=1,w=0,T=0,I=0,N="";function node(o,l,u,c,h,g,y){return{value:o,root:l,parent:u,type:c,props:h,children:g,line:b,column:_,length:y,return:""}}function Tokenizer_copy(o,l){return y(node("",null,null,"",null,null,0),o,{length:-o.length},l)}function Tokenizer_char(){return I}function prev(){return I=T>0?Utility_charat(N,--T):0,_--,10===I&&(_=1,b--),I}function next(){return I=T<w?Utility_charat(N,T++):0,_++,10===I&&(_=1,b++),I}function peek(){return Utility_charat(N,T)}function token(o){switch(o){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 alloc(o){return b=_=1,w=Utility_strlen(N=o),T=0,[]}function delimit(o){var l,u;return(l=T-1,u=delimiter(91===o?o+2:40===o?o+1:o),Utility_substr(N,l,u)).trim()}function whitespace(o){for(;I=peek();)if(I<33)next();else break;return token(o)>2||token(I)>3?"":" "}function escaping(o,l){for(var u;--l&&next()&&!(I<48)&&!(I>102)&&(!(I>57)||!(I<65))&&(!(I>70)||!(I<97)););return u=T+(l<6&&32==peek()&&32==next()),Utility_substr(N,o,u)}function delimiter(o){for(;next();)switch(I){case o:return T;case 34:case 39:34!==o&&39!==o&&delimiter(I);break;case 40:41===o&&delimiter(o);break;case 92:next()}return T}function commenter(o,l){for(;next();)if(o+I===57)break;else if(o+I===84&&47===peek())break;return"/*"+Utility_substr(N,l,T-1)+"*"+g(47===o?o:next())}function identifier(o){for(;!token(peek());)next();return Utility_substr(N,o,T)}var F="-ms-",B="-moz-",Z="-webkit-",W="comm",H="rule",U="decl",K="@keyframes";function Serializer_serialize(o,l){for(var u="",c=o.length,h=0;h<c;h++)u+=l(o[h],h,o,l)||"";return u}function stringify(o,l,u,c){switch(o.type){case"@layer":if(o.children.length)break;case"@import":case U:return o.return=o.return||o.value;case W:return"";case K:return o.return=o.value+"{"+Serializer_serialize(o.children,c)+"}";case H:o.value=o.props.join(",")}return Utility_strlen(u=Serializer_serialize(o.children,c))?o.return=o.value+"{"+u+"}":""}function middleware(o){var l=o.length;return function(u,c,h,g){for(var y="",b=0;b<l;b++)y+=o[b](u,c,h,g)||"";return y}}function rulesheet(o){return function(l){!l.root&&(l=l.return)&&o(l)}}function compile(o){var l;return l=parse("",null,null,null,[""],o=alloc(o),0,[0],o),N="",l}function parse(o,l,u,c,h,y,b,_,w){for(var I=0,N=0,F=b,B=0,Z=0,W=0,H=1,U=1,K=1,q=0,G="",Q=h,Y=y,X=c,ee=G;U;)switch(W=q,q=next()){case 40:if(108!=W&&58==Utility_charat(ee,F-1)){-1!=indexof(ee+=Utility_replace(delimit(q),"&","&\f"),"&\f")&&(K=-1);break}case 34:case 39:case 91:ee+=delimit(q);break;case 9:case 10:case 13:case 32:ee+=whitespace(W);break;case 92:ee+=escaping(T-1,7);continue;case 47:switch(peek()){case 42:case 47:Utility_append(comment(commenter(next(),T),l,u),w);break;default:ee+="/"}break;case 123*H:_[I++]=Utility_strlen(ee)*K;case 125*H:case 59:case 0:switch(q){case 0:case 125:U=0;case 59+N:-1==K&&(ee=Utility_replace(ee,/\f/g,"")),Z>0&&Utility_strlen(ee)-F&&Utility_append(Z>32?declaration(ee+";",c,u,F-1):declaration(Utility_replace(ee," ","")+";",c,u,F-2),w);break;case 59:ee+=";";default:if(Utility_append(X=ruleset(ee,l,u,I,N,h,_,G,Q=[],Y=[],F),y),123===q){if(0===N)parse(ee,l,X,X,Q,y,F,_,Y);else switch(99===B&&110===Utility_charat(ee,3)?100:B){case 100:case 108:case 109:case 115:p
vendor: 4,733 bytes, line 1
1arse(o,X,X,c&&Utility_append(ruleset(o,X,X,0,0,h,_,G,h,Q=[],F),Y),h,Y,F,_,c?Q:Y);break;default:parse(ee,X,X,X,[""],Y,0,_,Y)}}}I=N=Z=0,H=K=1,G=ee="",F=b;break;case 58:F=1+Utility_strlen(ee),Z=W;default:if(H<1){if(123==q)--H;else if(125==q&&0==H++&&125==prev())continue}switch(ee+=g(q),q*H){case 38:K=N>0?1:(ee+="\f",-1);break;case 44:_[I++]=(Utility_strlen(ee)-1)*K,K=1;break;case 64:45===peek()&&(ee+=delimit(next())),B=peek(),N=F=Utility_strlen(G=ee+=identifier(T)),q++;break;case 45:45===W&&2==Utility_strlen(ee)&&(H=0)}}return y}function ruleset(o,l,u,c,g,y,b,_,w,T,I){for(var N=g-1,F=0===g?y:[""],B=F.length,Z=0,W=0,U=0;Z<c;++Z)for(var K=0,q=Utility_substr(o,N+1,N=h(W=b[Z])),G=o;K<B;++K)(G=(W>0?F[K]+" "+q:Utility_replace(q,/&\f/g,F[K])).trim())&&(w[U++]=G);return node(o,l,u,0===g?H:_,w,T,I)}function comment(o,l,u){return node(o,l,u,W,g(Tokenizer_char()),Utility_substr(o,2,-2),0)}function declaration(o,l,u,c){return node(o,l,u,U,Utility_substr(o,0,c),Utility_substr(o,c+1,-1),c)}var identifierWithPointTracking=function(o,l,u){for(var c=0,h=0;c=h,h=peek(),38===c&&12===h&&(l[u]=1),!token(h);)next();return Utility_substr(N,o,T)},toRules=function(o,l){var u=-1,c=44;do switch(token(c)){case 0:38===c&&12===peek()&&(l[u]=1),o[u]+=identifierWithPointTracking(T-1,l,u);break;case 2:o[u]+=delimit(c);break;case 4:if(44===c){o[++u]=58===peek()?"&\f":"",l[u]=o[u].length;break}default:o[u]+=g(c)}while(c=next());return o},getRules=function(o,l){var u;return u=toRules(alloc(o),l),N="",u},q=new WeakMap,compat=function(o){if("rule"===o.type&&o.parent&&!(o.length<1)){for(var l=o.value,u=o.parent,c=o.column===u.column&&o.line===u.line;"rule"!==u.type;)if(!(u=u.parent))return;if((1!==o.props.length||58===l.charCodeAt(0)||q.get(u))&&!c){q.set(o,!0);for(var h=[],g=getRules(l,h),y=u.props,b=0,_=0;b<g.length;b++)for(var w=0;w<y.length;w++,_++)o.props[_]=h[b]?g[b].replace(/&\f/g,y[w]):y[w]+" "+g[b]}}},removeLabel=function(o){if("decl"===o.type){var l=o.value;108===l.charCodeAt(0)&&98===l.charCodeAt(2)&&(o.return="",o.value="")}};function emotion_cache_browser_esm_prefix(o,l){switch(hash(o,l)){case 5103:return Z+"print-"+o+o;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Z+o+o;case 5349:case 4246:case 4810:case 6968:case 2756:return Z+o+B+o+F+o+o;case 6828:case 4268:return Z+o+F+o+o;case 6165:return Z+o+F+"flex-"+o+o;case 5187:return Z+o+Utility_replace(o,/(\w+).+(:[^]+)/,Z+"box-$1$2"+F+"flex-$1$2")+o;case 5443:return Z+o+F+"flex-item-"+Utility_replace(o,/flex-|-self/,"")+o;case 4675:return Z+o+F+"flex-line-pack"+Utility_replace(o,/align-content|flex-|-self/,"")+o;case 5548:return Z+o+F+Utility_replace(o,"shrink","negative")+o;case 5292:return Z+o+F+Utility_replace(o,"basis","preferred-size")+o;case 6060:return Z+"box-"+Utility_replace(o,"-grow","")+Z+o+F+Utility_replace(o,"grow","positive")+o;case 4554:return Z+Utility_replace(o,/([^-])(transform)/g,"$1"+Z+"$2")+o;case 6187:return Utility_replace(Utility_replace(Utility_replace(o,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),o,"")+o;case 5495:case 3959:return Utility_replace(o,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return Utility_replace(Utility_replace(o,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+o+o;case 4095:case 3583:case 4068:case 2532:return Utility_replace(o,/(.+)-inline(.+)/,Z+"$1$2")+o;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(Utility_strlen(o)-1-l>6)switch(Utility_charat(o,l+1)){case 109:if(45!==Utility_charat(o,l+4))break;case 102:return Utility_replace(o,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+B+(108==Utility_charat(o,l+3)?"$3":"$2-$3"))+o;case 115:return~indexof(o,"stretch")?emotion_cache_browser_esm_prefix(Utility_replace(o,"stretch","fill-available"),l)+o:o}break;case 4949:if(115!==Utility_charat(o,l+1))break;case 6444:switch(Utility_charat(o,Utility_strlen(o)-3-(~indexof(o,"!important")&&10))){case 107:return Utility_replace(o,":",":"+Z)+o;case 101:return Utility_replace(o,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(45===Utility_charat(o,14)?"inline-":"")+"box$3$1"+Z+"$2$3$1"+F+"$2box$3")+o}break;case 5936:switch(Utility_charat(o,l+11)){case 114:return Z+o+F+Utility_replace(o,/[svh]\w+-[tblr]{2}/,"tb")+o;case 108:return Z+o+F+Utility_replace(o,/[svh]\w+-[tblr]{2}/,"tb-rl")+o;case 45:return Z+o+F+Utility_replace(o,/[svh]\w+-[tblr]{2}/,"lr")+o}return Z+o+F+o+o}return o}var G=[function(o,l,u,c){if(o.length>-1&&!o.return)switch(o.type){case U:o.return=emotion_cache_browser_esm_prefix(o.value,o.length);break;
1case K:return Serializer_serialize([Tokenizer_copy(o,{value:Utility_replace(o.value,"@","@"+Z)})],c);case H:if(o.length)return Utility_combine(o.props,function(l){switch(Utility_match(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Serializer_serialize([Tokenizer_copy(o,{props:[Utility_replace(l,/:(read-\w+)/,":"+B+"$1")]})],c);case"::placeholder":return Serializer_serialize([Tokenizer_copy(o,{props:[Utility_replace(l,/:(plac\w+)/,":"+Z+"input-$1")]}),Tokenizer_copy(o,{props:[Utility_replace(l,/:(plac\w+)/,":"+B+"$1")]}),Tokenizer_copy(o,{props:[Utility_replace(l,/:(plac\w+)/,F+"input-$1")]})],c)}return""})}}],createCache=function(o){var l,u,h=o.key;if("css"===h){var g=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(g,function(o){-1!==o.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(o),o.setAttribute("data-s",""))})}var y=o.stylisPlugins||G,b={},_=[];l=o.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+h+' "]'),function(o){for(var l=o.getAttribute("data-emotion").split(" "),u=1;u<l.length;u++)b[l[u]]=!0;_.push(o)});var w=middleware([compat,removeLabel].concat(y,[stringify,rulesheet(function(o){u.insert(o)})])),T={key:h,sheet:new c({key:h,container:l,nonce:o.nonce,speedy:o.speedy,prepend:o.prepend,insertionPoint:o.insertionPoint}),nonce:o.nonce,inserted:b,registered:{},insert:function(o,l,c,h){u=c,Serializer_serialize(compile(o?o+"{"+l.styles+"}":l.styles),w),h&&(T.inserted[l.name]=!0)}};return T.sheet.hydrate(_),T}},5042:function(o,l,u){"use strict";function memoize(o){var l=Object.create(null);return function(u){return void 0===l[u]&&(l[u]=o(u)),l[u]}}u.d(l,{Z:function(){return memoize}})},7685:function(o,l,u){"use strict";u.d(l,{E:function(){return N},T:function(){return w},c:function(){return createEmotionProps},h:function(){return T},w:function(){return withEmotionCache}});var c=u(7294),h=u(8711),g=u(444),y=u(5662),b=u(7278),_=c.createContext("undefined"!=typeof HTMLElement?(0,h.Z)({key:"css"}):null);_.Provider;var withEmotionCache=function(o){return(0,c.forwardRef)(function(l,u){return o(l,(0,c.useContext)(_),u)})},w=c.createContext({}),T={}.hasOwnProperty,I="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(o,l){var u={};for(var c in l)T.call(l,c)&&(u[c]=l[c]);return u[I]=o,u},Insertion=function(o){var l=o.cache,u=o.serialized,c=o.isStringTag;return(0,g.hC)(l,u,c),(0,b.L)(function(){return(0,g.My)(l,u,c)}),null},N=withEmotionCache(function(o,l,u){var h=o.css;"string"==typeof h&&void 0!==l.registered[h]&&(h=l.registered[h]);var b=o[I],_=[h],N="";"string"==typeof o.className?N=(0,g.fp)(l.registered,_,o.className):null!=o.className&&(N=o.className+" ");var F=(0,y.O)(_,void 0,c.useContext(w));N+=l.key+"-"+F.name;var B={};for(var Z in o)T.call(o,Z)&&"css"!==Z&&Z!==I&&(B[Z]=o[Z]);return B.className=N,u&&(B.ref=u),c.createElement(c.Fragment,null,c.createElement(Insertion,{cache:l,serialized:F,isStringTag:"string"==typeof b}),c.createElement(b,B))})},917:function(o,l,u){"use strict";u.d(l,{F4:function(){return keyframes},iv:function(){return css},xB:function(){return T}});var c,h,g=u(7685),y=u(7294),b=u(444),_=u(7278),w=u(5662);u(8711),u(8679);var jsx=function(o,l){var u=arguments;if(null==l||!g.h.call(l,"css"))return y.createElement.apply(void 0,u);var c=u.length,h=Array(c);h[0]=g.E,h[1]=(0,g.c)(o,l);for(var b=2;b<c;b++)h[b]=u[b];return y.createElement.apply(null,h)};c=jsx||(jsx={}),h||(h=c.JSX||(c.JSX={}));var T=(0,g.w)(function(o,l){var u=o.styles,c=(0,w.O)([u],void 0,y.useContext(g.T)),h=y.useRef();return(0,_.j)(function(){var o=l.key+"-global",u=new l.sheet.constructor({key:o,nonce:l.sheet.nonce,container:l.sheet.container,speedy:l.sheet.isSpeedy}),g=!1,y=document.querySelector('style[data-emotion="'+o+" "+c.name+'"]');return l.sheet.tags.length&&(u.before=l.sheet.tags[0]),null!==y&&(g=!0,y.setAttribute("data-emotion",o),u.hydrate([y])),h.current=[u,g],function(){u.flush()}},[l]),(0,_.j)(function(){var o=h.current,u=o[0];if(o[1]){o[1]=!1;return}if(void 0!==c.next&&(0,b.My)(l,c.next,!0),u.tags.length){var g=u.tags[u.tags.length-1].nextElementSibling;u.before=g,u.flush()}l.insert("",c,u,!1)},[l,c.name]),null});function css(){for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];return(0,w.O)(l)}function keyframes(){var o=css.apply(void 0,arguments),l="animation-"+o.name;return{name:l,styles:"@keyframes "+l+"{"+o.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},5662:function(o,l,u){"use strict";function murmur2(o){for(var l,u=0,c=0,h=o.length;h>=4;
1++c,h-=4)l=(65535&(l=255&o.charCodeAt(c)|(255&o.charCodeAt(++c))<<8|(255&o.charCodeAt(++c))<<16|(255&o.charCodeAt(++c))<<24))*1540483477+((l>>>16)*59797<<16),l^=l>>>24,u=(65535&l)*1540483477+((l>>>16)*59797<<16)^(65535&u)*1540483477+((u>>>16)*59797<<16);switch(h){case 3:u^=(255&o.charCodeAt(c+2))<<16;case 2:u^=(255&o.charCodeAt(c+1))<<8;case 1:u^=255&o.charCodeAt(c),u=(65535&u)*1540483477+((u>>>16)*59797<<16)}return u^=u>>>13,(((u=(65535&u)*1540483477+((u>>>16)*59797<<16))^u>>>15)>>>0).toString(36)}u.d(l,{O:function(){return serializeStyles}});var c,h={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},g=u(5042),y=/[A-Z]|^ms/g,b=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(o){return 45===o.charCodeAt(1)},isProcessableValue=function(o){return null!=o&&"boolean"!=typeof o},_=(0,g.Z)(function(o){return isCustomProperty(o)?o:o.replace(y,"-$&").toLowerCase()}),processStyleValue=function(o,l){switch(o){case"animation":case"animationName":if("string"==typeof l)return l.replace(b,function(o,l,u){return c={name:l,styles:u,next:c},l})}return 1===h[o]||isCustomProperty(o)||"number"!=typeof l||0===l?l:l+"px"};function handleInterpolation(o,l,u){if(null==u)return"";if(void 0!==u.__emotion_styles)return u;switch(typeof u){case"boolean":return"";case"object":if(1===u.anim)return c={name:u.name,styles:u.styles,next:c},u.name;if(void 0!==u.styles){var h=u.next;if(void 0!==h)for(;void 0!==h;)c={name:h.name,styles:h.styles,next:c},h=h.next;return u.styles+";"}return createStringFromObject(o,l,u);case"function":if(void 0!==o){var g=c,y=u(o);return c=g,handleInterpolation(o,l,y)}}if(null==l)return u;var b=l[u];return void 0!==b?b:u}function createStringFromObject(o,l,u){var c="";if(Array.isArray(u))for(var h=0;h<u.length;h++)c+=handleInterpolation(o,l,u[h])+";";else for(var g in u){var y=u[g];if("object"!=typeof y)null!=l&&void 0!==l[y]?c+=g+"{"+l[y]+"}":isProcessableValue(y)&&(c+=_(g)+":"+processStyleValue(g,y)+";");else if(Array.isArray(y)&&"string"==typeof y[0]&&(null==l||void 0===l[y[0]]))for(var b=0;b<y.length;b++)isProcessableValue(y[b])&&(c+=_(g)+":"+processStyleValue(g,y[b])+";");else{var w=handleInterpolation(o,l,y);switch(g){case"animation":case"animationName":c+=_(g)+":"+w+";";break;default:c+=g+"{"+w+"}"}}}return c}var w=/label:\s*([^\s;{]+)\s*(;|$)/g;function serializeStyles(o,l,u){if(1===o.length&&"object"==typeof o[0]&&null!==o[0]&&void 0!==o[0].styles)return o[0];var h,g=!0,y="";c=void 0;var b=o[0];null==b||void 0===b.raw?(g=!1,y+=handleInterpolation(u,l,b)):y+=b[0];for(var _=1;_<o.length;_++)y+=handleInterpolation(u,l,o[_]),g&&(y+=b[_]);w.lastIndex=0;for(var T="";null!==(h=w.exec(y));)T+="-"+h[1];return{name:murmur2(y)+T,styles:y,next:c}}},7278:function(o,l,u){"use strict";u.d(l,{L:function(){return y},j:function(){return b}});var c,h=u(7294),g=!!(c||(c=u.t(h,2))).useInsertionEffect&&(c||(c=u.t(h,2))).useInsertionEffect,y=g||function(o){return o()},b=g||h.useLayoutEffect},444:function(o,l,u){"use strict";function getRegisteredStyles(o,l,u){var c="";return u.split(" ").forEach(function(u){void 0!==o[u]?l.push(o[u]+";"):u&&(c+=u+" ")}),c}u.d(l,{My:function(){return insertStyles},fp:function(){return getRegisteredStyles},hC:function(){return registerStyles}});var registerStyles=function(o,l,u){var c=o.key+"-"+l.name;!1===u&&void 0===o.registered[c]&&(o.registered[c]=l.styles)},insertStyles=function(o,l,u){registerStyles(o,l,u);var c=o.key+"-"+l.name;if(void 0===o.inserted[l.name]){var h=l;do o.insert(l===h?"."+c:"",h,o.sheet,!0),h=h.next;while(void 0!==h)}}},5537:function(o,l,u){"use strict";var c=u(2066),h=u(5893);l.Z=(0,c.Z)((0,h.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},4808:function(o,l,u){"use strict";u.d(l,{Z:function(){return Z}});var c=u(7294),h=u(512),g=u(4780),y=u(948),b=u(8628),_=u(560),w=u(6628),T=u(1588),I=u(4867);function getBackdropUtilityClass(o){return(0,I.ZP)("MuiBackdrop",o)}(0,T.Z)("MuiBackdrop",["root","invisible"]);var N=u(5893);let useUtilityClasses=o=>{let{classes:l,invisible:u}=o;return(0,g.Z)({root:["root",u&&"invisible"]},getBackdropUtilityClass,l)},F=(0,y.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(o,l)=>{let{ownerState:u}=o;return[l.root,u.invisible&&l.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),B=c.forwardRef(function(o,l){let u=(0,b.i)({props:o,name:"MuiBackdrop"}),{children:c,className:g,component:y="div",invisible:T=!1,open:I,components:B={},componentsProps:Z={},slotProps:W={},slots:H={},TransitionComponent:U,transitionDuration:K,...q}=u,G={...u,component:y,invisible:T},Q=useUtilityClasses(G),Y={transition:U,root:B.Root,...H},X={...Z,...W},ee={slots:Y,slotProps:X},[et,er]=(0,_.Z)("root",{elementType:F,externalForwardedProps:ee,className:(0,h.Z)(Q.root,g),ownerState:G}),[en,ei]=(0,_.Z)("transition",{elementType:w.Z,externalForwardedProps:ee,ownerState:G});return(0,N.jsx)(en,{in:I,timeout:K,...q,...ei,children:(0,N.jsx)(et,{"aria-hidden":!0,...er,classes:Q,ref:l,children:c})})});var Z=B},7709:function(o,l,u){"use strict";u.d(l,{Z:function(){return H}});var c=u(7294),h=u(512),g=u(9731),y=u(6523),b=u(9707),_=u(5594),w=u(5893);function createBox(o={}){let{themeId:l,defaultTheme:u,defaultClassName:T="MuiBox-root",generateClassName:I}=o,N=(0,g.ZP)("div",{shouldForwardProp:o=>"theme"!==o&&"sx"!==o&&"as"!==o})(y.Z),F=c.forwardRef(function(o,c){let g=(0,_.Z)(u),{className:y,component:F="div",...B}=(0,b.Z)(o);return(0,w.jsx)(N,{as:F,ref:c,className:(0,h.Z)(y,I?I(T):T),theme:l&&g[l]||g,...B})});return F}var T=u(7078),I=u(6620),N=u(606),F=u(1588);let B=(0,F.Z)("MuiBox",["root"]),Z=(0,I.Z)(),W=createBox({themeId:N.Z,defaultTheme:Z,defaultClassName:B.root,generateClassName:T.Z.generate});var H=W},1958:function(o,l,u){"use strict";u.d(l,{Z:function(){return el}});var c=u(7294),h=u(512),g=u(4780),y=u(64),b=u(948),_=u(8628),w=u(1705
1),T=u(2068),I=u(9230);let LazyRipple=class LazyRipple{static create(){return new LazyRipple}static use(){let o=(0,I.Z)(LazyRipple.create).current,[l,u]=c.useState(!1);return o.shouldMount=l,o.setShouldMount=u,c.useEffect(o.mountEffect,[l]),o}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=createControlledPromise(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...o){this.mount().then(()=>this.ref.current?.start(...o))}stop(...o){this.mount().then(()=>this.ref.current?.stop(...o))}pulsate(...o){this.mount().then(()=>this.ref.current?.pulsate(...o))}};function useLazyRipple(){return LazyRipple.use()}function createControlledPromise(){let o,l;let u=new Promise((u,c)=>{o=u,l=c});return u.resolve=o,u.reject=l,u}var N=u(3366),F=u(7462);function _assertThisInitialized(o){if(void 0===o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return o}var B=u(5068),Z=u(220);function getChildMapping(o,l){var u=Object.create(null);return o&&c.Children.map(o,function(o){return o}).forEach(function(o){u[o.key]=l&&(0,c.isValidElement)(o)?l(o):o}),u}function mergeChildMappings(o,l){function getValueForKey(u){return u in l?l[u]:o[u]}o=o||{},l=l||{};var u,c=Object.create(null),h=[];for(var g in o)g in l?h.length&&(c[g]=h,h=[]):h.push(g);var y={};for(var b in l){if(c[b])for(u=0;u<c[b].length;u++){var _=c[b][u];y[c[b][u]]=getValueForKey(_)}y[b]=getValueForKey(b)}for(u=0;u<h.length;u++)y[h[u]]=getValueForKey(h[u]);return y}function getProp(o,l,u){return null!=u[l]?u[l]:o.props[l]}function getInitialChildMapping(o,l){return getChildMapping(o.children,function(u){return(0,c.cloneElement)(u,{onExited:l.bind(null,u),in:!0,appear:getProp(u,"appear",o),enter:getProp(u,"enter",o),exit:getProp(u,"exit",o)})})}function getNextChildMapping(o,l,u){var h=getChildMapping(o.children),g=mergeChildMappings(l,h);return Object.keys(g).forEach(function(y){var b=g[y];if((0,c.isValidElement)(b)){var _=y in l,w=y in h,T=l[y],I=(0,c.isValidElement)(T)&&!T.props.in;w&&(!_||I)?g[y]=(0,c.cloneElement)(b,{onExited:u.bind(null,b),in:!0,exit:getProp(b,"exit",o),enter:getProp(b,"enter",o)}):w||!_||I?w&&_&&(0,c.isValidElement)(T)&&(g[y]=(0,c.cloneElement)(b,{onExited:u.bind(null,b),in:T.props.in,exit:getProp(b,"exit",o),enter:getProp(b,"enter",o)})):g[y]=(0,c.cloneElement)(b,{in:!1})}}),g}var W=Object.values||function(o){return Object.keys(o).map(function(l){return o[l]})},H=function(o){function TransitionGroup(l,u){var c,h=(c=o.call(this,l,u)||this).handleExited.bind(_assertThisInitialized(c));return c.state={contextValue:{isMounting:!0},handleExited:h,firstRender:!0},c}(0,B.Z)(TransitionGroup,o);var l=TransitionGroup.prototype;return l.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},l.componentWillUnmount=function(){this.mounted=!1},TransitionGroup.getDerivedStateFromProps=function(o,l){var u=l.children,c=l.handleExited;return{children:l.firstRender?getInitialChildMapping(o,c):getNextChildMapping(o,u,c),firstRender:!1}},l.handleExited=function(o,l){var u=getChildMapping(this.props.children);o.key in u||(o.props.onExited&&o.props.onExited(l),this.mounted&&this.setState(function(l){var u=(0,F.Z)({},l.children);return delete u[o.key],{children:u}}))},l.render=function(){var o=this.props,l=o.component,u=o.childFactory,h=(0,N.Z)(o,["component","childFactory"]),g=this.state.contextValue,y=W(this.state.children).map(u);return(delete h.appear,delete h.enter,delete h.exit,null===l)?c.createElement(Z.Z.Provider,{value:g},y):c.createElement(Z.Z.Provider,{value:g},c.createElement(l,h,y))},TransitionGroup}(c.Component);H.propTypes={},H.defaultProps={component:"div",childFactory:function(o){return o}};var U=u(12),K=u(917),q=u(5893),G=u(1588);let Q=(0,G.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Y=K.F4`
2  0% {
3    transform: scale(0);
4    opacity: 0.1;
5  }
6
7  100% {
8    transform: scale(1);
9    opacity: 0.3;
10  }
11`,X=K.F4`
12  0% {
13    opacity: 1;
14  }
15
16  100% {
17    opacity: 0;
18  }
19`,ee=K.F4`
20  0% {
21    transform: scale(1);
22  }
23
24  50% {
25    transform: scale(0.92);
26  }
27
28  100% {
29    transform: scale(1);
30  }
31`,et=(0,b.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),er=(0,b.ZP)(function(o){let{className:l,classes:u,pulsate:g=!1,rippleX:y,rippleY:b,rippleSize:_,in:w,onExited:T,timeout:I}=o,[N,F]=c.useState(!1),B=(0,h.Z)(l,u.ripple,u.rippleVisible,g&&u.ripplePulsate),Z=(0,h.Z)(u.child,N&&u.childLeaving,g&&u.childPulsate);return w||N||F(!0),c.useEffect(()=>{if(!w&&null!=T){let o=setTimeout(T,I);return()=>{clearTimeout(o)}}},[T,w,I]),(0,q.jsx)("span",{className:B,style:{width:_,height:_,top:-(_/2)+b,left:-(_/2)+y},children:(0,q.jsx)("span",{className:Z})})},{name:"MuiTouchRipple",slot:"Ripple"})`
32  opacity: 0;
33  position: absolute;
34
35  &.${Q.rippleVisible} {
36    opacity: 0.3;
37    transform: scale(1);
38    animation-name: ${Y};
39    animation-duration: ${550}ms;
40    animation-timing-function: ${({theme:o})=>o.transitions.easing.easeInOut};
41  }
42
43  &.${Q.ripplePulsate} {
44    animation-duration: ${({theme:o})=>o.transitions.duration.shorter}ms;
45  }
46
47  & .${Q.child} {
48    opacity: 1;
49    display: block;
50    width: 100%;
51    height: 100%;
52    border-radius: 50%;
53    background-color: currentColor;
54  }
55
56  & .${Q.childLeaving} {
57    opacity: 0;
58    animation-name: ${X};
59    animation-duration: ${550}ms;
60    animation-timing-function: ${({theme:o})=>o.transitions.easing.easeInOut};
61  }
62
63  & .${Q.childPulsate} {
64    position: absolute;
65    /* @noflip */
66    left: 0px;
67    top: 0;
68    animation-name: ${ee};
69    animation-duration: 2500ms;
70    animation-timing-function: ${({theme:o})=>o.transitions.easing.easeInOut};
71    animation-iteration-count: infinite;
72    animation-delay: 200ms;
73  }
74`,en=c.forwardRef(function(o,l){let u=(0,_.i)({props:o,name:"MuiTouchRipple"}),{center:g=!1,classes:y={},className:b,...w}=u,[T,I]=c.useState([]),N=c.useRef(0),F=c.useRef(null);c.useEffect(()=>{F.current&&(F.current(),F.current=null)},[T]);let B=c.useRef(!1),Z=(0,U.Z)(),W=c.useRef(null),K=c.useRef(null),G=c.useCallback(o=>{let{pulsate:l,rippleX:u,rippleY:c,rippleSize:g,cb:b}=o;I(o=>
74[...o,(0,q.jsx)(er,{classes:{ripple:(0,h.Z)(y.ripple,Q.ripple),rippleVisible:(0,h.Z)(y.rippleVisible,Q.rippleVisible),ripplePulsate:(0,h.Z)(y.ripplePulsate,Q.ripplePulsate),child:(0,h.Z)(y.child,Q.child),childLeaving:(0,h.Z)(y.childLeaving,Q.childLeaving),childPulsate:(0,h.Z)(y.childPulsate,Q.childPulsate)},timeout:550,pulsate:l,rippleX:u,rippleY:c,rippleSize:g},N.current)]),N.current+=1,F.current=b},[y]),Y=c.useCallback((o={},l={},u=()=>{})=>{let c,h,y;let{pulsate:b=!1,center:_=g||l.pulsate,fakeElement:w=!1}=l;if(o?.type==="mousedown"&&B.current){B.current=!1;return}o?.type==="touchstart"&&(B.current=!0);let T=w?null:K.current,I=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!_&&void 0!==o&&(0!==o.clientX||0!==o.clientY)&&(o.clientX||o.touches)){let{clientX:l,clientY:u}=o.touches&&o.touches.length>0?o.touches[0]:o;c=Math.round(l-I.left),h=Math.round(u-I.top)}else c=Math.round(I.width/2),h=Math.round(I.height/2);if(_)(y=Math.sqrt((2*I.width**2+I.height**2)/3))%2==0&&(y+=1);else{let o=2*Math.max(Math.abs((T?T.clientWidth:0)-c),c
74)+2,l=2*Math.max(Math.abs((T?T.clientHeight:0)-h),h)+2;y=Math.sqrt(o**2+l**2)}o?.touches?null===W.current&&(W.current=()=>{G({pulsate:b,rippleX:c,rippleY:h,rippleSize:y,cb:u})},Z.start(80,()=>{W.current&&(W.current(),W.current=null)})):G({pulsate:b,rippleX:c,rippleY:h,rippleSize:y,cb:u})},[g,G,Z]),X=c.useCallback(()=>{Y({},{pulsate:!0})},[Y]),ee=c.useCallback((o,l)=>{if(Z.clear(),o?.type==="touchend"&&W.current){W.current(),W.current=null,Z.start(0,()=>{ee(o,l)});return}W.current=null,I(o=>o.length>0?o.slice(1):o),F.current=l},[Z]);return c.useImperativeHandle(l,()=>({pulsate:X,start:Y,stop:ee}),[X,Y,ee]),(0,q.jsx)(et,{className:(0,h.Z)(Q.root,y.root,b),ref:K,...w,children:(0,q.jsx)(H,{component:null,exit:!0,children:T})})});var ei=u(4867);function getButtonBaseUtilityClass(o){return(0,ei.ZP)("MuiButtonBase",o)}let eo=(0,G.Z)("MuiButtonBase",["root","disabled","focusVisible"]),useUtilityClasses=o=>{let{disabled:l,focusVisible:u,focusVisibleClassName:c,classes:h}=o,y=(0,g.Z)({root:["root",l&&"disabled",u&&"focusVisible"]},getButtonBaseUtilityClass,h);return u&&c&&(y.root+=` ${c}`),y},ea=(0,b.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(o,l)=>l.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${eo.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),es=c.forwardRef(function(o,l){let u=(0,_.i)({props:o,name:"MuiButtonBase"}),{action:g,centerRipple:b=!1,children:I,className:N,component:F="button",disabled:B=!1,disableRipple:Z=!1,disableTouchRipple:W=!1,focusRipple:H=!1,focusVisibleClassName:U,LinkComponent:K="a",onBlur:G,onClick:Q,onContextMenu:Y,onDragLeave:X,onFocus:ee,onFocusVisible:et,onKeyDown:er,onKeyUp:ei,onMouseDown:eo,onMouseLeave:es,onMouseUp:el,onTouchEnd:eu,onTouchMove:ec,onTouchStart:ed,tabIndex:ep=0,TouchRippleProps:ef,touchRippleRef:eh,type:eg,...em}=u,ey=c.useRef(null),ev=useLazyRipple(),eb=(0,w.Z)(ev.ref,eh),[e_,eS]=c.useState(!1);B&&e_&&eS(!1),c.useImperativeHandle(g,()=>({focusVisible:()=>{eS(!0),ey.current.focus()}}),[]);let ew=ev.shouldMount&&!Z&&!B;c.useEffect(()=>{e_&&H&&!Z&&ev.pulsate()},[Z,H,e_,ev]);let ex=useRippleHandler(ev,"start",eo,W),eC=useRippleHandler(ev,"stop",Y,W),eE=useRippleHandler(ev,"stop",X,W),ek=useRippleHandler(ev,"stop",el,W),eP=useRippleHandler(ev,"stop",o=>{e_&&o.preventDefault(),es&&es(o)},W),eO=useRippleHandler(ev,"start",ed,W),eT=useRippleHandler(ev,"stop",eu,W),eR=useRippleHandler(ev,"stop",ec,W),ej=useRippleHandler(ev,"stop",o=>{(0,y.Z)(o.target)||eS(!1),G&&G(o)},!1),eA=(0,T.Z)(o=>{ey.current||(ey.current=o.currentTarget),(0,y.Z)(o.target)&&(eS(!0),et&&et(o)),ee&&ee(o)}),isNonNativeButton=()=>{let o=ey.current;return F&&"button"!==F&&!("A"===o.tagName&&o.href)},e$=(0,T.Z)(o=>{H&&!o.repeat&&e_&&" "===o.key&&ev.stop(o,()=>{ev.start(o)}),o.target===o.currentTarget&&isNonNativeButton()&&" "===o.key&&o.preventDefault(),er&&er(o),o.target===o.currentTarget&&isNonNativeButton()&&"Enter"===o.key&&!B&&(o.preventDefault(),Q&&Q(o))}),eI=(0,T.Z)(o=>{H&&" "===o.key&&e_&&!o.defaultPrevented&&ev.stop(o,()=>{ev.pulsate(o)}),ei&&ei(o),Q&&o.target===o.currentTarget&&isNonNativeButton()&&" "===o.key&&!o.defaultPrevented&&Q(o)}),eL=F;"button"===eL&&(em.href||em.to)&&(eL=K);let eM={};"button"===eL?(eM.type=void 0===eg?"button":eg,eM.disabled=B):(em.href||em.to||(eM.role="button"),B&&(eM["aria-disabled"]=B));let eD=(0,w.Z)(l,ey),eN={...u,centerRipple:b,component:F,disabled:B,disableRipple:Z,disableTouchRipple:W,focusRipple:H,tabIndex:ep,focusVisible:e_},eF=useUtilityClasses(eN);return(0,q.jsxs)(ea,{as:eL,className:(0,h.Z)(eF.root,N),ownerState:eN,onBlur:ej,onClick:Q,onContextMenu:eC,onFocus:eA,onKeyDown:e$,onKeyUp:eI,onMouseDown:ex,onMouseLeave:eP,onMouseUp:ek,onDragLeave:eE,onTouchEnd:eT,onTouchMove:eR,onTouchStart:eO,ref:eD,tabIndex:B?-1:ep,type:eg,...eM,...em,children:[I,ew?(0,q.jsx)(en,{ref:eb,center:b,...ef}):null]})});function useRippleHandler(o,l,u,c=!1){return(0,T.Z)(h=>(u&&u(h),c||o[l](h),!0))}var el=es},8456:function(o,l,u){"use strict";u.d(l,{Z:function(){return Y}});var c=u(7294),h=u(512),g=u(4780),y=u(917),b=u(948),_=u(6694),w=u(8628),T=u(8216),I=u(902),N=u(1588),F=u(4867);function getCircularProgressUtilityClass(o){return(0,F.ZP)("MuiCircularProgress",o)}(0,N.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var B=u(5893);let Z=y.F4`
75  0% {
76    transform: rotate(0deg);
77  }
78
79  100% {
80    transform: rotate(360deg);
81  }
82`,W=y.F4`
83  0% {
84    stroke-dasharray: 1px, 200px;
85    stroke-dashoffset: 0;
86  }
87
88  50% {
89    stroke-dasharray: 100px, 200px;
90    stroke-dashoffset: -15px;
91  }
92
93  100% {
94    stroke-dasharray: 1px, 200px;
95    stroke-dashoffset: -126px;
96  }
97`,H="string"!=typeof Z?y.iv`
98        animation: ${Z} 1.4s linear infinite;
99      `:null,U="string"!=typeof W?y.iv`
100        animation: ${W} 1.4s ease-in-out infinite;
101      `:null,useUtilityClasses=o=>{let{classes:l,variant:u,color:c,disableShrink:h}=o,y={root:["root",u,`color${(0,T.Z)(c)}`],svg:["svg"],circle:["circle",`circle${(0,T.Z)(u)}`,h&&"circleDisableShrink"]};return(0,g.Z)(y,getCircularProgressUtilityClass,l)},K=(0,b.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(o,l)=>{let{ownerState:u}=o;return[l.root,l[u.variant],l[`color${(0,T.Z)(u.color)}`]]}})((0,_.Z)(({theme:o})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:o.transitions.create("transform")}},{props:{variant:"indeterminate"},style:H||{animation:`${Z} 1.4s linear infinite`}},...Object.entries(o.palette).filter((0,I.Z)()).map(([l])=>({props:{color:l},style:{color:(o.vars||o).palette[l].main}}))]}))),q=(0,b.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(o,l)=>l.svg})({display:"block"}),G=(0,b.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(o,l)=>{let{ownerState:u}=o;return[l.circle,l[`circle${(0,T.Z)(u.variant)}`],u.disableShrink&&l.circleDisableShrink]}})((0,_.Z)(({theme:o})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:o.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:o})=>"indeterminate"===o.variant&&!o.disableShrink,style:U||{animation:`${W} 1.4s ease-in-out infinite`}}]}))),Q=c.forwardRef(function(o,l){let u=(0,w.i)({props:o,name:"MuiCircularProgress"}),{className:c,color:g="primary",disableShrink:y=!1,size:b=40,style:_,thickness:T=3.6,value:I=0,variant:N="indeterminate",...F}=u,Z={...u,color:g,disableShrink:y,size:b,thickness:T,value:I,variant:N},W=useUtilityClasses(Z),H={},U={},Q={};if("determinate"===N){let o=2*Math.PI*((44-T)/2);H.strokeDasharray=o.toFixed(3),Q["aria-valuenow"]=Math.round(I),H.strokeDashoffset=`${((100-I)/100*o).toFixed(3)}px`,U.transform="rotate(-90deg)"}return(0,B.jsx)(K,{className:(0,h.Z)(W.root,c),style:{width:b,height:b,...U,..._},ownerState:Z,ref:l,role:"progressbar",...Q,...F,children:(0,B.jsx)(q,{className:W.svg,ownerState:Z,viewBox:"22 22 44 44",children:(0,B.jsx)(G,{className:W.circle,style:H,ownerState:Z,cx:44,cy:44,r:(44-T)/2,fill:"none",strokeWidth:T})})})});var Y=Q},8628:function(o,l,u){"use strict";u.d(l,{i:function(){return useDefaultProps}}),u(7294);var c=u(2842);function useDefaultProps(o){return(0,c.i)(o)}u(5893)},5097:function(o,l,u){"use strict";u.d(l,{V:function(){return getDividerUtilityClass}});var c=u(1588),h=u(4867);function getDividerUtilityClass(o){return(0,h.ZP)("MuiDivider",o)}let g=(0,c.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);l.Z=g},6628:function(o,l,u){"use strict";var c=u(7294),h=u(8662),g=u(7907),y=u(2734),b=u(577),_=u(1705),w=u(5893);let T={entering:{opacity:1},entered:{opacity:1}},I=c.forwardRef(function(o,l){let u=(0,y.Z)(),I={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{addEndListener:N,appear:F=!0,children:B,easing:Z,in:W,onEnter:H,onEntered:U,onEntering:K,onExit:q,onExited:G,onExiting:Q,style:Y,timeout:X=I,TransitionComponent:ee=h.ZP,...et}=o,er=c.useRef(null),en=(0,_.Z)(er,(0,g.Z)(B),l),normalizedTransitionCallback=o=>l=>{if(o){let u=er.current;void 0===l?o(u):o(u,l)}},ei=normalizedTransitionCallback(K),eo=normalizedTransitionCallback((o,l)=>{(0,b.n)(o);let c=(0,b.C)({style:Y,timeout:X,easing:Z},{mode:"enter"});o.style.webkitTransition=u.transitions.create("opacity",c),o.style.transition=u.transitions.create("opacity",c),H&&H(o,l)}),ea=normalizedTransitionCallback(U),es=normalizedTransitionCallback(Q),el=normalizedTransitionCallback(o=>{let l=(0,b.C)({style:Y,timeout:X,easing:Z},{mode:"exit"});o.style.webkitTransition=u.transitions.create("opacity",l),o.style.transition=u.transitions.create("opacity",l),q&&q(o)}),eu=normalizedTransitionCallback(G);return(0,w.jsx)(ee,{appear:F,in:W,nodeRef:er,onEnter:eo,onEntered:ea,onEntering:ei,onExit:el,onExited:eu,onExiting:es,addEndListener:o=>{N&&N(er.current,o)},timeout:X,...et,children:(o,{ownerState:l,...u})=>c.cloneElement(B,{style:{opacity:0,visibility:"exited"!==o||W?void 0:"hidden",...T[o],...Y,...B.props.style},ref:en,...u})})});l.Z=I},3659:function(o,l,u){"use strict";u.d(l,{Z:function(){return Q}});var c=u(7294),h=u(512),g=u(7317),y=u(4867),b=u(4780),_=u(9827),w=u(9628),T=u(5594),I=u(9707),N=u(8136);let filterBreakpointKeys=(o,l)=>o.filter(o=>
101l.includes(o)),traverseBreakpoints=(o,l,u)=>{let c=o.keys[0];if(Array.isArray(l))l.forEach((l,c)=>{u((l,u)=>{c<=o.keys.length-1&&(0===c?Object.assign(l,u):l[o.up(o.keys[c])]=u)},l)});else if(l&&"object"==typeof l){let h=Object.keys(l).length>o.keys.length?o.keys:filterBreakpointKeys(o.keys,Object.keys(l));h.forEach(h=>{if(o.keys.includes(h)){let g=l[h];void 0!==g&&u((l,u)=>{c===h?Object.assign(l,u):l[o.up(h)]=u},g)}})}else("number"==typeof l||"string"==typeof l)&&u((o,l)=>{Object.assign(o,l)},l)};function getSelfSpacingVar(o){return`--Grid-${o}Spacing`}function getParentSpacingVar(o){return`--Grid-parent-${o}Spacing`}let F="--Grid-columns",B="--Grid-parent-columns",generateGridSizeStyles=({theme:o,ownerState:l})=>{let u={};return traverseBreakpoints(o.breakpoints,l.size,(o,l)=>{let c={};"grow"===l&&(c={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===l&&(c={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof l&&(c={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${l} / var(${B}) - (var(${B}) - ${l}) * (var(${getParentSpacingVar("column")}) / var(${B})))`}),o(u,c)}),u},generateGridOffsetStyles=({theme:o,ownerState:l})=>{let u={};return traverseBreakpoints(o.breakpoints,l.offset,(o,l)=>{let c={};"auto"===l&&(c={marginLeft:"auto"}),"number"==typeof l&&(c={marginLeft:0===l?"0px":`calc(100% * ${l} / var(${B}) + var(${getParentSpacingVar("column")}) * ${l} / var(${B}))`}),o(u,c)}),u},generateGridColumnsStyles=({theme:o,ownerState:l})=>
101{if(!l.container)return{};let u={[F]:12};return traverseBreakpoints(o.breakpoints,l.columns,(o,l)=>{let c=l??12;o(u,{[F]:c,"> *":{[B]:c}})}),u},generateGridRowSpacingStyles=({theme:o,ownerState:l})=>{if(!l.container)return{};let u={};return traverseBreakpoints(o.breakpoints,l.rowSpacing,(l,c)=>{let h="string"==typeof c?c:o.spacing?.(c);l(u,{[getSelfSpacingVar("row")]:h,"> *":{[getParentSpacingVar("row")]:h}})}),u},generateGridColumnSpacingStyles=({theme:o,ownerState:l})=>{if(!l.container)return{};let u={};return traverseBreakpoints(o.breakpoints,l.columnSpacing,(l,c)=>{let h="string"==typeof c?c:o.spacing?.(c);l(u,{[getSelfSpacingVar("column")]:h,"> *":{[getParentSpacingVar("column")]:h}})}),u},generateGridDirectionStyles=({theme:o,ownerState:l})=>{if(!l.container)return{};let u={};return traverseBreakpoints(o.breakpoints,l.direction,(o,l)=>{o(u,{flexDirection:l})}),u},generateGridStyles=({ownerState:o})=>({minWidth:0,boxSizing:"border-box",...o.container&&{display:"flex",flexWrap:"wrap",...o.wrap&&"wrap"!==o.wrap&&{flexWrap:o.wrap},gap:`var(${getSelfSpacingVar("row")}) var(${getSelfSpacingVar("column")})`}}),generateSizeClassNames=o=>{let l=[];return Object.entries(o).forEach(([o,u])=>{!1!==u&&void 0!==u&&l.push(`grid-${o}-${String(u)}`)}),l},generateSpacingClassNames=(o,l="xs")=>{function isValidSpacing(o){return void 0!==o&&("string"==typeof o&&!Number.isNaN(Number(o))||"number"==typeof o&&o>0)}if(isValidSpacing(o))return[`spacing-${l}-${String(o)}`];if("object"==typeof o&&!Array.isArray(o)){let l=[];return Object.entries(o).forEach(([o,u])=>
101{isValidSpacing(u)&&l.push(`spacing-${o}-${String(u)}`)}),l}return[]},generateDirectionClasses=o=>void 0===o?[]:"object"==typeof o?Object.entries(o).map(([o,l])=>`direction-${o}-${l}`):[`direction-xs-${String(o)}`];function deleteLegacyGridProps(o,l){let u=[];void 0!==o.item&&(delete o.item,u.push("item")),void 0!==o.zeroMinWidth&&(delete o.zeroMinWidth,u.push("zeroMinWidth")),l.keys.forEach(l=>{void 0!==o[l]&&(u.push(l),delete o[l])})}var Z=u(5893);let W=(0,N.Z)(),H=(0,_.Z)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(o,l)=>l.root});function useThemePropsDefault(o){return(0,w.Z)({props:o,name:"MuiGrid",defaultTheme:W})}function createGrid(o={}){let{createStyledComponent:l=H,useThemeProps:u=useThemePropsDefault,useTheme:_=T.Z,componentName:w="MuiGrid"}=o,useUtilityClasses=(o,l)=>{let{container:u,direction:c,spacing:h,wrap:g,size:_}=o,T={root:["root",u&&"container","wrap"!==g&&`wrap-xs-${String(g)}`,...generateDirectionClasses(c),...generateSizeClassNames(_),...u?generateSpacingClassNames(h,l.breakpoints.keys[0]):[]]};return(0,b.Z)(T,o=>(0,y.ZP)(w,o),{})};function parseResponsiveProp(o,l,u=()=>!0){let c={};return null===o||(Array.isArray(o)?o.forEach((o,h)=>{null!==o&&u(o)&&l.keys[h]&&(c[l.keys[h]]=o)}):"object"==typeof o?Object.keys(o).forEach(l=>{let h=o[l];null!=h&&u(h)&&(c[l]=h)}):c[l.keys[0]]=o),c}let N=l(generateGridColumnsStyles,generateGridColumnSpacingStyles,generateGridRowSpacingStyles,generateGridSizeStyles,generateGridDirectionStyles,generateGridStyles,generateGridOffsetStyles),F=c.forwardRef(function(o,l){let y=_(),b=u(o),w=(0,I.Z)(b);deleteLegacyGridProps(w,y.breakpoints);let{className:T,children:F,columns:B=12,container:W=!1,component:H="div",direction:U="row",wrap:K="wrap",size:q={},offset:G={},spacing:Q=0,rowSpacing:Y=Q,columnSpacing:X=Q,unstable_level:ee=0,...et}=w,er=parseResponsiveProp(q,y.breakpoints,o=>!1!==o),en=parseResponsiveProp(G,y.breakpoints),ei=o.columns??(ee?void 0:B),eo=o.spacing??(ee?void 0:Q),ea=o.rowSpacing??o.spacing??(ee?void 0:Y),es=o.columnSpacing??o.spacing??(ee?void 0:X),el={...w,level:ee,columns:ei,container:W,direction:U,wrap:K,spacing:eo,rowSpacing:ea,columnSpacing:es,size:er,offset:en},eu=useUtilityClasses(el,y);return(0,Z.jsx)(N,{ref:l,as:H,ownerState:el,className:(0,h.Z)(eu.root,T),...et,children:c.Children.map(F,o=>c.isValidElement(o)&&(0,g.Z)(o,["Grid"])&&W&&o.props.container?c.cloneElement(o,{unstable_level:o.props?.unstable_level??ee+1}):o)})});return F.muiName="Grid",F}var U=u(948),K=u(8628),q=u(2734);let G=createGrid({createStyledComponent:(0,U.ZP)("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(o,l)=>{let{ownerState:u}=o;return[l.root,u.container&&l.container]}}),componentName:"MuiGrid2",useThemeProps:o=>(0,K.i)({props:o,name:"MuiGrid2"}),useTheme:q.Z});var Q=G},3946:function(o,l,u){"use strict";u.d(l,{Z:function(){return Q}});var c=u(7294),h=u(512),g=u(4780),y=u(7909),b=u(8366),_=u(948),w=u(6694),T=u(902),I=u(8628),N=u(1958),F=u(8456),B=u(8216),Z=u(1588),W=u(4867);function getIconButtonUtilityClass(o){return(0,W.ZP)("MuiIconButton",o)}let H=(0,Z.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var U=u(5893);let useUtilityClasses=o=>{let{classes:l,disabled:u,color:c,edge:h,size:y,loading:b}=o,_={root:["root",b&&"loading",u&&"disabled","default"!==c&&`color${(0,B.Z)(c)}`,h&&`edge${(0,B.Z)(h)}`,`size${(0,B.Z)(y)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return(0,g.Z)(_,getIconButtonUtilityClass,l)},K=(0,_.ZP)(N.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(o,l)=>{let{ownerState:u}=o;return[l.root,u.loading&&l.loading,"default"!==u.color&&l[`color${(0,B.Z)(u.color)}`],u.edge&&l[`edge${(0,B.Z)(u.edge)}`],l[`size${(0,B.Z)(u.size)}`]]}})((0,w.Z)(({theme:o})=>({textAlign:"center",flex:"0 0 auto",fontSize:o.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(o.vars||o).palette.action.active,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shortest}),variants:[{props:o=>!o.disableRipple,style:{"--IconButton-hoverBg":o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:(0,b.Fq)(o.palette.action.active,o.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),(0,w.Z)(({theme:o})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(o.palette).filter((0,T.Z)()).map(([l])=>({props:{color:l},style:{color:(o.vars||o).palette[l].main}})),...Object.entries(o.palette).filter((0,T.Z)()).map(([l])=>({props:{color:l},style:{"--IconButton-hoverBg":o.vars?`rgba(${(o.vars||o).palette[l].mainCh
101annel} / ${o.vars.palette.action.hoverOpacity})`:(0,b.Fq)((o.vars||o).palette[l].main,o.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:o.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:o.typography.pxToRem(28)}}],[`&.${H.disabled}`]:{backgroundColor:"transparent",color:(o.vars||o).palette.action.disabled},[`&.${H.loading}`]:{color:"transparent"}}))),q=(0,_.ZP)("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(o,l)=>l.loadingIndicator})(({theme:o})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(o.vars||o).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),G=c.forwardRef(function(o,l){let u=(0,I.i)({props:o,name:"MuiIconButton"}),{edge:c=!1,children:g,className:b,color:_="default",disabled:w=!1,disableFocusRipple:T=!1,size:N="medium",id:B,loading:Z=null,loadingIndicator:W,...H}=u,G=(0,y.Z)(B),Q=W??(0,U.jsx)(F.Z,{"aria-labelledby":G,color:"inherit",size:16}),Y={...u,edge:c,color:_,disabled:w,disableFocusRipple:T,loading:Z,loadingIndicator:Q,size:N},X=useUtilityClasses(Y);return(0,U.jsxs)(K,{id:Z?G:B,className:(0,h.Z)(X.root,b),centerRipple:!0,focusRipple:!T,disabled:w||Z,ref:l,...H,ownerState:Y,children:["boolean"==typeof Z&&(0,U.jsx)("span",{className:X.loadingWrapper,style:{display:"contents"},children:(0,U.jsx)(q,{className:X.loadingIndicator,ownerState:Y,children:Z&&Q})}),g]})});var Q=G},9773:function(o,l,u){"use strict";var c=u(7294);let h=c.createContext({});l.Z=h},2096:function(o,l,u){"use strict";u.d(l,{Z:function(){return q}});var c=u(7294),h=u(8038),g=u(512),y=u(4780),b=u(948),_=u(8628),w=u(9773),T=u(1588),I=u(4867);function getListUtilityClass(o){return(0,I.ZP)("MuiList",o)}(0,T.Z)("MuiList",["root","padding","dense","subheader"]);var N=u(5893);let useUtilityClasses=o=>{let{classes:l,disablePadding:u,dense:c,subheader:h}=o;return(0,y.Z)({root:["root",!u&&"padding",c&&"dense",h&&"subheader"]},getListUtilityClass,l)},F=(0,b.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(o,l)=>{let{ownerState:u}=o;return[l.root,!u.disablePadding&&l.padding,u.dense&&l.dense,u.subheader&&l.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:o})=>!o.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:o})=>o.subheader,style:{paddingTop:0}}]}),B=c.forwardRef(function(o,l){let u=(0,_.i)({props:o,name:"MuiList"}),{children:h,className:y,component:b="ul",dense:T=!1,disablePadding:I=!1,subheader:B,...Z}=u,W=c.useMemo(()=>({dense:T}),[T]),H={...u,component:b,dense:T,disablePadding:I},U=useUtilityClasses(H);return(0,N.jsx)(w.Z.Provider,{value:W,children:(0,N.jsxs)(F,{as:b,className:(0,g.Z)(U.root,y),ref:l,ownerState:H,...Z,children:[B,h]})})});var Z=u(9726).Z,W=u(1705),H=u(8974),U=u(5340);function nextItem(o,l,u){return o===l?o.firstChild:l&&l.nextElementSibling?l.nextElementSibling:u?null:o.firstChild}function previousItem(o,l,u){return o===l?u?o.firstChild:o.lastChild:l&&l.previousElementSibling?l.previousElementSibling:u?null:o.lastChild}function textCriteriaMatches(o,l){if(void 0===l)return!0;let u=o.innerText;return void 0===u&&(u=o.textContent),0!==(u=u.trim().toLowerCase()).length&&(l.repeating?u[0]===l.keys[0]:u.startsWith(l.keys.join("")))}function moveFocus(o,l,u,c,h,g){let y=!1,b=h(o,l,!!l&&u);for(;b;){if(b===o.firstChild){if(y)return!1;y=!0}let l=!c&&(b.disabled||"true"===b.getAttribute("aria-disabled"));if(b.hasAttribute("tabindex")&&textCriteriaMatches(b,g)&&!l)return b.focus(),!0;b=h(o,b,u)}return!1}let K=c.forwardRef(function(o,l){let{actions:u,autoFocus:g=!1,autoFocusItem:y=!1,children:b,className:_,disabledItemsFocusable:w=!1,disableListWrap:T=!1,onKeyDown:I,variant:F="selectedMenu",...K}=o,q=c.useRef(null),G=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,H.Z)(()=>{g&&q.current.focus()},[g]),c.useImperativeHandle(u,()=>({adjustStyleForScrollbar:(o,{direction:l})=>{let u=!q.current.style.width;if(o.clientHeight<q.current.clientHeight&&u){let u=`${Z((0,U.Z)(o))}px`;q.current.style["rtl"===l?"paddingLeft":"paddingRight"]=u,q.current.style.width=`calc(100% + ${u})`}return q.current}}),[]);let Q=(0,W.Z)(q,l),Y=-1;
101c.Children.forEach(b,(o,l)=>{if(!c.isValidElement(o)){Y===l&&(Y+=1)>=b.length&&(Y=-1);return}o.props.disabled||("selectedMenu"===F&&o.props.selected?Y=l:-1!==Y||(Y=l)),Y===l&&(o.props.disabled||o.props.muiSkipListHighlight||o.type.muiSkipListHighlight)&&(Y+=1)>=b.length&&(Y=-1)});let X=c.Children.map(b,(o,l)=>{if(l===Y){let l={};return y&&(l.autoFocus=!0),void 0===o.props.tabIndex&&"selectedMenu"===F&&(l.tabIndex=0),c.cloneElement(o,l)}return o});return(0,N.jsx)(B,{role:"menu",ref:Q,className:_,onKeyDown:o=>{let l=q.current,u=o.key,c=o.ctrlKey||o.metaKey||o.altKey;if(c){I&&I(o);return}let g=(0,h.Z)(l).activeElement;if("ArrowDown"===u)o.preventDefault(),moveFocus(l,g,T,w,nextItem);else if("ArrowUp"===u)o.preventDefault(),moveFocus(l,g,T,w,previousItem);else if("Home"===u)o.preventDefault(),moveFocus(l,null,T,w,nextItem);else if("End"===u)o.preventDefault(),moveFocus(l,null,T,w,previousItem);else if(1===u.length){let c=G.current,h=u.toLowerCase(),y=performance.now();c.keys.length>0&&(y-c.lastTime>500?(c.keys=[],c.repeating=!0,c.previousKeyMatched=!0):c.repeating&&h!==c.keys[0]&&(c.repeating=!1)),c.lastTime=y,c.keys.push(h);let b=g&&!c.repeating&&textCriteriaMatches(g,c);c.previousKeyMatched&&(b||moveFocus(l,g,!1,w,nextItem,c))?o.preventDefault():c.previousKeyMatched=!1}I&&I(o)},tabIndex:g?0:-1,...K,children:X})});var q=K},1006:function(o,l,u){"use strict";u.d(l,{Z:function(){return et}});var c=u(7294),h=u(512),g=u(4780),y=u(3703),b=u(7907),_=u(2690),w=u(5893);function getTabIndex(o){let l=parseInt(o.getAttribute("tabindex")||"",10);return Number.isNaN(l)?"true"===o.contentEditable||("AUDIO"===o.nodeName||"VIDEO"===o.nodeName||"DETAILS"===o.nodeName)&&null===o.getAttribute("tabindex")?0:o.tabIndex:l}function isNonTabbableRadio(o){if("INPUT"!==o.tagName||"radio"!==o.type||!o.name)return!1;let getRadio=l=>o.ownerDocument.querySelector(`input[type="radio"]${l}`),l=getRadio(`[name="${o.name}"]:checked`);return l||(l=getRadio(`[name="${o.name}"]`)),l!==o}function isNodeMatchingSelectorFocusable(o){return!(o.disabled||"INPUT"===o.tagName&&"hidden"===o.type||isNonTabbableRadio(o))}function defaultGetTabbable(o){let l=[],u=[];return Array.from(o.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((o,c)=>{let h=getTabIndex(o);-1!==h&&isNodeMatchingSelectorFocusable(o)&&(0===h?l.push(o):u.push({documentOrder:c,tabIndex:h,node:o}))}),u.sort((o,l)=>o.tabIndex===l.tabIndex?o.documentOrder-l.documentOrder:o.tabIndex-l.tabIndex).map(o=>o.node).concat(l)}function defaultIsEnabled(){return!0}var Unstable_TrapFocus_FocusTrap=function(o){let{children:l,disableAutoFocus:u=!1,disableEnforceFocus:h=!1,disableRestoreFocus:g=!1,getTabbable:T=defaultGetTabbable,isEnabled:I=defaultIsEnabled,open:N}=o,F=c.useRef(!1),B=c.useRef(null),Z=c.useRef(null),W=c.useRef(null),H=c.useRef(null),U=c.useRef(!1),K=c.useRef(null),q=(0,y.Z)((0,b.Z)(l),K),G=c.useRef(null);c.useEffect(()=>{N&&K.current&&(U.current=!u)},[u,N]),c.useEffect(()=>{if(!N||!K.current)return;let o=(0,_.Z)(K.current);return!K.current.contains(o.activeElement)&&(K.current.hasAttribute("tabIndex")||K.current.setAttribute("tabIndex","-1"),U.current&&K.current.focus()),()=>{g||(W.current&&W.current.focus&&(F.current=!0,W.current.focus()),W.current=null)}},[N]),c.useEffect(()=>{if(!N||!K.current)return;let o=(0,_.Z)(K.current),loopFocus=l=>{G.current=l,!h&&I()&&"Tab"===l.key&&o.activeElement===K.current&&l.shiftKey&&(F.current=!0,Z.current&&Z.current.focus())},contain=()=>{let l=K.current;if(null===l)return;if(!o.hasFocus()||!I()||F.current){F.current=!1;return}if(l.contains(o.activeElement)||h&&o.activeElement!==B.current&&o.activeElement!==Z.current)return;if(o.activeElement!==H.current)H.current=null;else if(null!==H.current)return;if(!U.current)return;let u=[];if((o.activeElement===B.current||o.activeElement===Z.current)&&(u=T(K.current)),u.length>0){let o=!!(G.current?.shiftKey&&G.current?.key==="Tab"),l=u[0],c=u[u.length-1];"string"!=typeof l&&"string"!=typeof c&&(o?c.focus():l.focus())}else l.focus()};o.addEventListener("focusin",contain),o.addEventListener("keydown",loopFocus,!0);let l=setInterval(()=>{o.activeElement&&"BODY"===o.activeElement.tagName&&contain()},50);return()=>{clearInterval(l),o.removeEventListener("focusin",contain),o.removeEventListener("keydown",loopFocus,!0)}},[u,h,g,I,N,T]);let handleFocusSentinel=o=>{null===W.current&&(W.current=o.relatedTarget),U.current=!0};return(0,w.jsxs)(c.Fragment,{children:[(0,w.jsx)("div",{tabIndex:N?0:-1,onFocus:handleFocusSentinel,ref:B,"data-testid":"sentinelStart"}),c.cloneElement(l,{ref:q,onFocus:o=>{null===W.current&&(W.current=o.relatedTarget),U.current=!0,H.current=o.target;let u=l.props.onFocus;u&&u(o)}}),(0,w.jsx)("div",{tabIndex:N?0:-1,onFocus:handleFocusSentinel,ref:Z,"data-testid":"sentinelEnd"})]})},T=u(424),I=u(948),N=u(6694),F=u(8628),B=u(4808),Z=u(9948);function createChainedFunction(...o){return o.reduce((o,l)=>null==l?o:function(...u){o.apply(this,u),l.apply(this,u)},()=>{})}var W=u(9113),H=u(4161),U=u(9726);function isOverflowing(o){let l=(0,_.Z)(o);return l.body===o?(0,H.Z)(o).innerWidth>l.documentElement.clientWidth:o.scrollHeight>o.clientHeight}function ariaHidden(o,l){l?o.setAttribute("aria-hidden","true"):o.removeAttribute("aria-hidden")}function getPaddingRight(o){return parseInt((0,H.Z)(o).getComputedStyle(o).paddingRight,10)||0}function isAriaHiddenForbiddenOnElement(o){let l=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(o.tagName),u="INPUT"===o.tagName&&"hidden"===o.getAttribute("type");return l||u}function ariaHiddenSiblings(o,l,u,c,h){let g=[l,u,...c];[].forEach.call(o.children,o=>{let l=!g.includes(o),u=!isAriaHiddenForbiddenOnElement(o);l&&u&&ariaHidden(o,h)})}function findIndexOf(o,l){let u=-1;return o.some((o,c)=>!!l(o)&&(u=c,!0)),u}
101function handleContainer(o,l){let u=[],c=o.container;if(!l.disableScrollLock){let o;if(isOverflowing(c)){let o=(0,U.Z)((0,H.Z)(c));u.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${getPaddingRight(c)+o}px`;let l=(0,_.Z)(c).querySelectorAll(".mui-fixed");[].forEach.call(l,l=>{u.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${getPaddingRight(l)+o}px`})}if(c.parentNode instanceof DocumentFragment)o=(0,_.Z)(c).body;else{let l=c.parentElement,u=(0,H.Z)(c);o=l?.nodeName==="HTML"&&"scroll"===u.getComputedStyle(l).overflowY?l:c}u.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{u.forEach(({value:o,el:l,property:u})=>{o?l.style.setProperty(u,o):l.style.removeProperty(u)})}}function getHiddenSiblings(o){let l=[];return[].forEach.call(o.children,o=>{"true"===o.getAttribute("aria-hidden")&&l.push(o)}),l}let ModalManager=class ModalManager{constructor(){this.modals=[],this.containers=[]}add(o,l){let u=this.modals.indexOf(o);if(-1!==u)return u;u=this.modals.length,this.modals.push(o),o.modalRef&&ariaHidden(o.modalRef,!1);let c=getHiddenSiblings(l);ariaHiddenSiblings(l,o.mount,o.modalRef,c,!0);let h=findIndexOf(this.containers,o=>o.container===l);return -1!==h?this.containers[h].modals.push(o):this.containers.push({modals:[o],container:l,restore:null,hiddenSiblings:c}),u}mount(o,l){let u=findIndexOf(this.containers,l=>l.modals.includes(o)),c=this.containers[u];c.restore||(c.restore=handleContainer(c,l))}remove(o,l=!0){let u=this.modals.indexOf(o);if(-1===u)return u;let c=findIndexOf(this.containers,l=>l.modals.includes(o)),h=this.containers[c];if(h.modals.splice(h.modals.indexOf(o),1),this.modals.splice(u,1),0===h.modals.length)h.restore&&h.restore(),o.modalRef&&ariaHidden(o.modalRef,l),ariaHiddenSiblings(h.container,o.mount,o.modalRef,h.hiddenSiblings,!1),this.containers.splice(c,1);else{let o=h.modals[h.modals.length-1];o.modalRef&&ariaHidden(o.modalRef,!1)}return u}isTopModal(o){return this.modals.length>0&&this.modals[this.modals.length-1]===o}};function getContainer(o){return"function"==typeof o?o():o}function getHasTransition(o){return!!o&&o.props.hasOwnProperty("in")}let noop=()=>{},K=new ModalManager;var Modal_useModal=function(o){let{container:l,disableEscapeKeyDown:u=!1,disableScrollLock:h=!1,closeAfterTransition:g=!1,onTransitionEnter:b,onTransitionExited:w,children:T,onClose:I,open:N,rootRef:F}=o,B=c.useRef({}),H=c.useRef(null),U=c.useRef(null),q=(0,y.Z)(U,F),[G,Q]=c.useState(!N),Y=getHasTransition(T),X=!0;("false"===o["aria-hidden"]||!1===o["aria-hidden"])&&(X=!1);let getDoc=()=>(0,_.Z)(H.current),getModal=()=>(B.current.modalRef=U.current,B.current.mount=H.current,B.current),handleMounted=()=>{K.mount(getModal(),{disableScrollLock:h}),U.current&&(U.current.scrollTop=0)},ee=(0,Z.Z)(()=>{let o=getContainer(l)||getDoc().body;K.add(getModal(),o),U.current&&handleMounted()}),isTopModal=()=>K.isTopModal(getModal()),et=(0,Z.Z)(o=>{H.current=o,o&&(N&&isTopModal()?handleMounted():U.current&&ariaHidden(U.current,X))}),er=c.useCallback(()=>{K.remove(getModal(),X)},[X]);c.useEffect(()=>()=>{er()},[er]),c.useEffect(()=>{N?ee():Y&&g||er()},[N,er,Y,g,ee]);let createHandleKeyDown=o=>l=>{o.onKeyDown?.(l),"Escape"===l.key&&229!==l.which&&isTopModal()&&!u&&(l.stopPropagation(),I&&I(l,"escapeKeyDown"))},createHandleBackdropClick=o=>l=>{o.onClick?.(l),l.target===l.currentTarget&&I&&I(l,"backdropClick")};return{getRootProps:(l={})=>{let u=(0,W.Z)(o);delete u.onTransitionEnter,delete u.onTransitionExited;let c={...u,...l};return{role:"presentation",...c,onKeyDown:createHandleKeyDown(c),ref:q}},getBackdropProps:(o={})=>({"aria-hidden":!0,...o,onClick:createHandleBackdropClick(o),open:N}),getTransitionProps:()=>({onEnter:createChainedFunction(()=>{Q(!1),b&&b()},T?.props.onEnter??noop),onExited:createChainedFunction(()=>{Q(!0),w&&w(),g&&er()},T?.props.onExited??noop)}),rootRef:q,portalRef:et,isTopModal,exited:G,hasTransition:Y}},q=u(1588),G=u(4867);function getModalUtilityClass(o){return(0,G.ZP)("MuiModal",o)}(0,q.Z)("MuiModal",["root","hidden","backdrop"]);var Q=u(560);let useUtilityClasses=o=>{let{open:l,exited:u,classes:c}=o;return(0,g.Z)({root:["root",!l&&u&&"hidden"],backdrop:["backdrop"]},getModalUtilityClass,c)},Y=(0,I.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(o,l)=>{let{ownerState:u}=o;return[l.root,!u.open&&u.exited&&l.hidden]}})((0,N.Z)(({theme:o})=>({position:"fixed",zIndex:(o.vars||o).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:o})=>!o.open&&o.exited,style:{visibility:"hidden"}}]}))),X=(0,I.ZP)(B.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(o,l)=>l.backdrop})({zIndex:-1}),ee=c.forwardRef(function(o,l){let u=(0,F.i)({name:"MuiModal",props:o}),{BackdropComponent:g=X,BackdropProps:y,classes:b,className:_,closeAfterTransition:I=!1,children:N,container:B,component:Z,components:W={},componentsProps:H={},disableAutoFocus:U=!1,disableEnforceFocus:K=!1,disableEscapeKeyDown:q=!1,disablePortal:G=!1,disableRestoreFocus:ee=!1,disableScrollLock:et=!1,hideBackdrop:er=!1,keepMounted:en=!1,onBackdropClick:ei,onClose:eo,onTransitionEnter:ea,onTransitionExited:es,open:el,slotProps:eu={},slots:ec={},theme:ed,...ep}=u,ef={...u,closeAfterTransition:I,disableAutoFocus:U,disableEnforceFocus:K,disableEscapeKeyDown:q,disablePortal:G,disableRestoreFocus:ee,disableScrollLock:et,hideBackdrop:er,keepMounted:en},{getRootProps:eh,getBackdropProps:eg,getTransitionProps:em,portalRef:ey,isTopModal:ev,exited:eb,hasTransition:e_}=Modal_useModal({...ef,rootRef:l}),eS={...ef,exited:eb},ew=useUtilityClasses(eS),ex={};if(void 0===N.props.tabIndex&&(ex.tabIndex="-1"),e_){let{onEnter:o,onExited:l}=em();ex.onEnter=o,ex.onExited=l}let eC={slots:{root:W.Root,backdrop:W.Backdrop,...ec},slotProps:{...H,...eu}},[eE,ek]=(0,Q.Z)("root",{ref:l,elementType:Y,externalForwardedProps:{...eC,...ep,component:Z},getSlotProps:eh,ownerState:eS,className:(0,h.Z)(_,ew?.root,!eS.open&&eS.exited&&ew?.hidden)}),[eP,eO]=(0,Q.Z)("backdrop",{ref:y?.ref,elementType:g,externalForwardedProps:eC,shouldForwardComponentProp:!0,additionalProps:y,getSlotProps:o=>eg({...o,onClick:l=>{ei&&ei(l),o?.onClick&&o.onClick(l)}}),className:(0,h.Z)(y?.className,ew?.backdrop),ownerState:eS});return en||el||e_&&!eb?(0,w.jsx)(T.Z,{ref:ey,container:B,disablePortal:G,children:(0,w.jsxs)(eE,{...ek,children:[!er&&g?(0,w.jsx)(eP,{...eO}):null,(0,w.jsx)(Unstable_TrapFocus_FocusTrap,{disableEnforceFocus:K,disableAutoFocus:U,disableRestoreFocus:ee,isEnabled:ev,open:el,children:c.cloneElement(N,ex)})]})}):null});var et=ee},424:function(o,l,u){"use strict";var c=u(7294),h=u(3935),g=u(3703),y=u(7907),b=u(3546),_=u(7364);function getContainer(o){return"function"==typeof o?o():o}let w=c.forwardRef(function(o,l){let{children:u,container:w,disablePortal:T=!1}=o,[I,N]=c.useState(null),F=(0,g.Z)(c.isValidElement(u)?(0,y.Z)(u):null,l);return((0,b.Z)(()=>{T||N(getContainer(w)||document.body)},[w,T]),(0,b.Z)(()=>
101{if(I&&!T)return(0,_.Z)(l,I),()=>{(0,_.Z)(l,null)}},[l,I,T]),T)?c.isValidElement(u)?c.cloneElement(u,{ref:F}):u:I?h.createPortal(u,I):I});l.Z=w},3219:function(o,l,u){"use strict";u.d(l,{Z:function(){return Z}});var c=u(7294),h=u(512),g=u(4780),y=u(8216),b=u(948),_=u(6694),w=u(8628),T=u(1588),I=u(4867);function getSvgIconUtilityClass(o){return(0,I.ZP)("MuiSvgIcon",o)}(0,T.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var N=u(5893);let useUtilityClasses=o=>{let{color:l,fontSize:u,classes:c}=o,h={root:["root","inherit"!==l&&`color${(0,y.Z)(l)}`,`fontSize${(0,y.Z)(u)}`]};return(0,g.Z)(h,getSvgIconUtilityClass,c)},F=(0,b.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,l)=>{let{ownerState:u}=o;return[l.root,"inherit"!==u.color&&l[`color${(0,y.Z)(u.color)}`],l[`fontSize${(0,y.Z)(u.fontSize)}`]]}})((0,_.Z)(({theme:o})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:o.transitions?.create?.("fill",{duration:(o.vars??o).transitions?.duration?.shorter}),variants:[{props:o=>!o.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:o.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:o.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:o.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((o.vars??o).palette).filter(([,o])=>o&&o.main).map(([l])=>({props:{color:l},style:{color:(o.vars??o).palette?.[l]?.main}})),{props:{color:"action"},style:{color:(o.vars??o).palette?.action?.active}},{props:{color:"disabled"},style:{color:(o.vars??o).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),B=c.forwardRef(function(o,l){let u=(0,w.i)({props:o,name:"MuiSvgIcon"}),{children:g,className:y,color:b="inherit",component:_="svg",fontSize:T="medium",htmlColor:I,inheritViewBox:B=!1,titleAccess:Z,viewBox:W="0 0 24 24",...H}=u,U=c.isValidElement(g)&&"svg"===g.type,K={...u,color:b,component:_,fontSize:T,instanceFontSize:o.fontSize,inheritViewBox:B,viewBox:W,hasSvgAsChild:U},q={};B||(q.viewBox=W);let G=useUtilityClasses(K);return(0,N.jsxs)(F,{as:_,className:(0,h.Z)(G.root,y),focusable:"false",color:I,"aria-hidden":!Z||void 0,role:Z?"
101img":void 0,ref:l,...q,...H,...U&&g.props,ownerState:K,children:[U?g.props.children:g,Z?(0,N.jsx)("title",{children:Z}):null]})});B.muiName="SvgIcon";var Z=B},5861:function(o,l,u){"use strict";u.d(l,{Z:function(){return q}});var c=u(7294),h=u(512),g=u(4780),y=u(141),b=u(948),_=u(6694),w=u(8628),T=u(8216),I=u(902),N=u(1588),F=u(4867);function getTypographyUtilityClass(o){return(0,F.ZP)("MuiTypography",o)}(0,N.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 B=u(5893);let Z={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},W=(0,y.u7)(),useUtilityClasses=o=>{let{align:l,gutterBottom:u,noWrap:c,paragraph:h,variant:y,classes:b}=o,_={root:["root",y,"inherit"!==o.align&&`align${(0,T.Z)(l)}`,u&&"gutterBottom",c&&"noWrap",h&&"paragraph"]};return(0,g.Z)(_,getTypographyUtilityClass,b)},H=(0,b.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(o,l)=>{let{ownerState:u}=o;return[l.root,u.variant&&l[u.variant],"inherit"!==u.align&&l[`align${(0,T.Z)(u.align)}`],u.noWrap&&l.noWrap,u.gutterBottom&&l.gutterBottom,u.paragraph&&l.paragraph]}})((0,_.Z)(({theme:o})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(o.typography).filter(([o,l])=>"inherit"!==o&&l&&"object"==typeof l).map(([o,l])=>({props:{variant:o},style:l})),...Object.entries(o.palette).filter((0,I.Z)()).map(([l])=>({props:{color:l},style:{color:(o.vars||o).palette[l].main}})),...Object.entries(o.palette?.text||{}).filter(([,o])=>"string"==typeof o).map(([l])=>({props:{color:`text${(0,T.Z)(l)}`},style:{color:(o.vars||o).palette.text[l]}})),{props:({ownerState:o})=>"inherit"!==o.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:o})=>o.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:o})=>o.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:o})=>o.paragraph,style:{marginBottom:16}}]}))),U={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},K=c.forwardRef(function(o,l){let{color:u,...c}=(0,w.i)({props:o,name:"MuiTypography"}),g=!Z[u],y=W({...c,...g&&{color:u}}),{align:b="inherit",className:_,component:T,gutterBottom:I=!1,noWrap:N=!1,paragraph:F=!1,variant:K="body1",variantMapping:q=U,...G}=y,Q={...y,align:b,color:u,className:_,component:T,gutterBottom:I,noWrap:N,paragraph:F,variant:K,variantMapping:q},Y=T||(F?"p":q[K]||U[K])||"span",X=useUtilityClasses(Q);return(0,B.jsx)(H,{as:Y,ref:l,className:(0,h.Z)(X.root,_),...G,ownerState:Q,style:{..."inherit"!==b&&{"--Typography-textAlign":b},...G.style}})});var q=K},265:function(o,l){"use strict";l.Z={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"}},6620:function(o,l,u){"use strict";u.d(l,{Z:function(){return createTheme_createTheme}});var c=u(6535),h=u(4953),g=u(8366),y={black:"#000",white:"#fff"},b={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"},_={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"},w=u(265),T={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"},I={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"},N={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"},F={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"};function getLight(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:y.white,default:y.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)",disabledBackgroun
101d:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}let B=getLight();function getDark(){return{text:{primary:y.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:y.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}}}let Z=getDark();function addLightOrDark(o,l,u,c){let h=c.light||c,y=c.dark||1.5*c;o[l]||(o.hasOwnProperty(u)?o[l]=o[u]:"light"===l?o.light=(0,g.$n)(o.main,h):"dark"===l&&(o.dark=(0,g._j)(o.main,y)))}function getDefaultPrimary(o="light"){return"dark"===o?{main:I[200],light:I[50],dark:I[400]}:{main:I[700],light:I[400],dark:I[800]}}function getDefaultSecondary(o="light"){return"dark"===o?{main:_[200],light:_[50],dark:_[400]}:{main:_[500],light:_[300],dark:_[700]}}function getDefaultError(o="light"){return"dark"===o?{main:w.Z[500],light:w.Z[300],dark:w.Z[700]}:{main:w.Z[700],light:w.Z[400],dark:w.Z[800]}}function getDefaultInfo(o="light"){return"dark"===o?{main:N[400],light:N[300],dark:N[700]}:{main:N[700],light:N[500],dark:N[900]}}function getDefaultSuccess(o="light"){return"dark"===o?{main:F[400],light:F[300],dark:F[700]}:{main:F[800],light:F[500],dark:F[900]}}function getDefaultWarning(o="light"){return"dark"===o?{main:T[400],light:T[300],dark:T[700]}:{main:"#ed6c02",light:T[500],dark:T[900]}}function createPalette(o){let l;let{mode:u="light",contrastThreshold:_=3,tonalOffset:w=.2,...T}=o,I=o.primary||getDefaultPrimary(u),N=o.secondary||getDefaultSecondary(u),F=o.error||getDefaultError(u),W=o.info||getDefaultInfo(u),H=o.success||getDefaultSuccess(u),U=o.warning||getDefaultWarning(u);function getContrastText(o){let l=(0,g.mi)(o,Z.text.primary)>=_?Z.text.primary:B.text.primary;return l}let augmentColor=({color:o,name:l,mainShade:u=500,lightShade:h=300,darkShade:g=700})=>{if(!(o={...o}).main&&o[u]&&(o.main=o[u]),!o.hasOwnProperty("main"))throw Error((0,c.Z)(11,l?` (${l})`:"",u));if("string"!=typeof o.main)throw Error((0,c.Z)(12,l?` (${l})`:"",JSON.stringify(o.main)));return addLightOrDark(o,"light",h,w),addLightOrDark(o,"dark",g,w),o.contrastText||(o.contrastText=getContrastText(o.main)),o};"light"===u?l=getLight():"dark"===u&&(l=getDark());let K=(0,h.Z)({common:{...y},mode:u,primary:augmentColor({color:I,name:"primary"}),secondary:augmentColor({color:N,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:augmentColor({color:F,name:"error"}),warning:augmentColor({color:U,name:"warning"}),info:augmentColor({color:W,name:"info"}),success:augmentColor({color:H,name:"success"}),grey:b,contrastThreshold:_,getContrastText,augmentColor,tonalOffset:w,...l},T);return K}function createGetCssVar(o=""){function appendVar(...l){if(!l.length)return"";let u=l[0];return"string"!=typeof u||u.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${u}`:`, var(--${o?`${o}-`:""}${u}${appendVar(...l.slice(1))})`}return(l,...u)=>`var(--${o?`${o}-`:""}${l}${appendVar(...u)})`}var W=u(8373),H=u(6943);function prepareTypographyVars(o){let l={},u=Object.entries(o);return u.forEach(o=>{let[u,c]=o;"object"==typeof c&&(l[u]=`${c.fontStyle?`${c.fontStyle} `:""}${c.fontVariant?`${c.fontVariant} `:""}${c.fontWeight?`${c.fontWeight} `:""}${c.fontStretch?`${c.fontStretch} `:""}${c.fontSize||""}${c.lineHeight?`/${c.lineHeight} `:""}${c.fontFamily||""}`)}),l}let assignNestedKeys=(o,l,u,c=[])=>{let h=o;l.forEach((o,g)=>{g===l.length-1?Array.isArray(h)?h[Number(o)]=u:h&&"object"==typeof h&&(h[o]=u):h&&"object"==typeof h&&(h[o]||(h[o]=c.includes(o)?[]:{}),h=h[o])})},walkObjectDeep=(o,l,u)=>{function recurse(o,c=[],h=[]){Object.entries(o).forEach(([o,g])=>{u&&(!u||u([...c,o]))||null==g||("object"==typeof g&&Object.keys(g).length>0?recurse(g,[...c,o],Array.isArray(g)?[...h,o]:h):l([...c,o],g,h))})}recurse(o)},getCssValue=(o,l)=>
101{if("number"==typeof l){if(["lineHeight","fontWeight","opacity","zIndex"].some(l=>o.includes(l)))return l;let u=o[o.length-1];return u.toLowerCase().includes("opacity")?l:`${l}px`}return l};function cssVarsParser(o,l){let{prefix:u,shouldSkipGeneratingVar:c}=l||{},h={},g={},y={};return walkObjectDeep(o,(o,l,b)=>{if(("string"==typeof l||"number"==typeof l)&&(!c||!c(o,l))){let c=`--${u?`${u}-`:""}${o.join("-")}`,_=getCssValue(o,l);Object.assign(h,{[c]:_}),assignNestedKeys(g,o,`var(${c})`,b),assignNestedKeys(y,o,`var(${c}, ${_})`,b)}},o=>"vars"===o[0]),{css:h,vars:g,varsWithDefaults:y}}var cssVars_prepareCssVars=function(o,l={}){let{getSelector:u=defaultGetSelector,disableCssColorScheme:c,colorSchemeSelector:g}=l,{colorSchemes:y={},components:b,defaultColorScheme:_="light",...w}=o,{vars:T,css:I,varsWithDefaults:N}=cssVarsParser(w,l),F=N,B={},{[_]:Z,...W}=y;if(Object.entries(W||{}).forEach(([o,u])=>{let{vars:c,css:g,varsWithDefaults:y}=cssVarsParser(u,l);F=(0,h.Z)(F,y),B[o]={css:g,vars:c}}),Z){let{css:o,vars:u,varsWithDefaults:c}=cssVarsParser(Z,l);F=(0,h.Z)(F,c),B[_]={css:o,vars:u}}function defaultGetSelector(l,u){let c=g;if("class"===g&&(c=".%s"),"data"===g&&(c="[data-%s]"),g?.startsWith("data-")&&!g.includes("%s")&&(c=`[${g}="%s"]`),l){if("media"===c){if(o.defaultColorScheme===l)return":root";let c=y[l]?.palette?.mode||l;return{[`@media (prefers-color-scheme: ${c})`]:{":root":u}}}if(c)return o.defaultColorScheme===l?`:root, ${c.replace("%s",String(l))}`:c.replace("%s",String(l))}return":root"}return{vars:F,generateThemeVars:()=>{let o={...T};return Object.entries(B).forEach(([,{vars:l}])=>{o=(0,h.Z)(o,l)}),o},generateStyleSheets:()=>{let l=[],h=o.defaultColorScheme||"light";function insertStyleSheet(o,u){Object.keys(u).length&&l.push("string"==typeof o?{[o]:{...u}}:o)}insertStyleSheet(u(void 0,{...I}),I);let{[h]:g,...b}=B;if(g){let{css:o}=g,l=y[h]?.palette?.mode,b=!c&&l?{colorScheme:l,...o}:{...o};insertStyleSheet(u(h,{...b}),b)}return Object.entries(b).forEach(([o,{css:l}])=>{let h=y[o]?.palette?.mode,g=!c&&h?{colorScheme:h,...l}:{...l};insertStyleSheet(u(o,{...g}),g)}),l}}};function createGetColorSchemeSelector(o){return function(l){return"media"===o?`@media (prefers-color-scheme: ${l})`:o?o.startsWith("data-")&&!o.includes("%s")?`[${o}="${l}"] &`:"class"===o?`.${l} &`:"data"===o?`[data-${l}] &`:`${o.replace("%s",l)} &`:"&"}}var U=u(5387),K=u(6523),q=u(8136);function createMixins(o,l){return{toolbar:{minHeight:56,[o.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[o.up("sm")]:{minHeight:64}},...l}}var G=u(1445);function createShadow(...o){return`${o[0]}px ${o[1]}px ${o[2]}px ${o[3]}px rgba(0,0,0,0.2),${o[4]}px ${o[5]}px ${o[6]}px ${o[7]}px rgba(0,0,0,0.14),${o[8]}px ${o[9]}px ${o[10]}px ${o[11]}px rgba(0,0,0,0.12)`}let Q=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],Y={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)"},X={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(o){return`${Math.round(o)}ms`}
101function getAutoHeightDuration(o){if(!o)return 0;let l=o/36;return Math.min(Math.round((4+15*l**.25+l/5)*10),3e3)}function createTransitions(o){let l={...Y,...o.easing},u={...X,...o.duration};return{getAutoHeightDuration,create:(o=["all"],c={})=>{let{duration:h=u.standard,easing:g=l.easeInOut,delay:y=0,...b}=c;return(Array.isArray(o)?o:[o]).map(o=>`${o} ${"string"==typeof h?h:formatMs(h)} ${g} ${"string"==typeof y?y:formatMs(y)}`).join(",")},...o,easing:l,duration:u}}var ee={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function isSerializable(o){return(0,h.P)(o)||void 0===o||"string"==typeof o||"boolean"==typeof o||"number"==typeof o||Array.isArray(o)}function stringifyTheme(o={}){let l={...o};function serializeTheme(o){let l=Object.entries(o);for(let u=0;u<l.length;u++){let[c,g]=l[u];!isSerializable(g)||c.startsWith("unstable_")?delete o[c]:(0,h.P)(g)&&(o[c]={...g},serializeTheme(o[c]))}}return serializeTheme(l),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
102
103const theme = ${JSON.stringify(l,null,2)};
104
105theme.breakpoints = createBreakpoints(theme.breakpoints || {});
106theme.transitions = createTransitions(theme.transitions || {});
107
108export default theme;`}var styles_createThemeNoVars=function(o={},...l){let{breakpoints:u,mixins:g={},spacing:y,palette:b={},transitions:_={},typography:w={},shape:T,...I}=o;if(o.vars&&void 0===o.generateThemeVars)throw Error((0,c.Z)(20));let N=createPalette(b),F=(0,q.Z)(o),B=(0,h.Z)(F,{mixins:createMixins(F.breakpoints,g),palette:N,shadows:Q.slice(),typography:(0,G.Z)(N,w),transitions:createTransitions(_),zIndex:{...ee}});return B=(0,h.Z)(B,I),(B=l.reduce((o,l)=>(0,h.Z)(o,l),B)).unstable_sxConfig={...U.Z,...I?.unstable_sxConfig},B.unstable_sx=function(o){return(0,K.Z)({sx:o,theme:this})},B.toRuntimeSource=stringifyTheme,B},et=u(2029);let er=[...Array(25)].map((o,l)=>{if(0===l)return"none";let u=(0,et.Z)(l);return`linear-gradient(rgba(255 255 255 / ${u}), rgba(255 255 255 / ${u}))`});function getOpacity(o){return{inputPlaceholder:"dark"===o?.5:.42,inputUnderline:"dark"===o?.7:.42,switchTrackDisabled:"dark"===o?.2:.12,switchTrack:"dark"===o?.3:.38}}function getOverlays(o){return"dark"===o?er:[]}function createColorScheme(o){let{palette:l={mode:"light"},opacity:u,overlays:c,...h}=o,g=createPalette(l);return{palette:g,opacity:{...getOpacity(g.mode),...u},overlays:c||getOverlays(g.mode),...h}}function shouldSkipGeneratingVar_shouldSkipGeneratingVar(o){return!!o[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!o[0].match(/sxConfig$/)||"palette"===o[0]&&!!o[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var styles_excludeVariablesFromRoot=o=>[...[...Array(25)].map((l,u)=>`--${o?`${o}-`:""}overlays-${u}`),`--${o?`${o}-`:""}palette-AppBar-darkBg`,`--${o?`${o}-`:""}palette-AppBar-darkColor`],createGetSelector=o=>(l,u)=>{let c=o.rootSelector||":root",h=o.colorSchemeSelector,g=h;if("class"===h&&(g=".%s"),"data"===h&&(g="[data-%s]"),h?.startsWith("data-")&&!h.includes("%s")&&(g=`[${h}="%s"]`),o.defaultColorScheme===l){if("dark"===l){let h={};return(styles_excludeVariablesFromRoot(o.cssVarPrefix).forEach(o=>{h[o]=u[o],delete u[o]}),"media"===g)?{[c]:u,"@media (prefers-color-scheme: dark)":{[c]:h}}:g?{[g.replace("%s",l)]:h,[`${c}, ${g.replace("%s",l)}`]:u}:{[c]:{...u,...h}}}if(g&&"media"!==g)return`${c}, ${g.replace("%s",String(l))}`}else if(l){if("media"===g)return{[`@media (prefers-color-scheme: ${String(l)})`]:{[c]:u}};if(g)return g.replace("%s",String(l))}return c};function assignNode(o,l){l.forEach(l=>{o[l]||(o[l]={})})}function setColor(o,l,u){!o[l]&&u&&(o[l]=u)}function toRgb(o){return"string"==typeof o&&o.startsWith("hsl")?(0,g.ve)(o):o}function setColorChannel(o,l){`${l}Channel` in o||(o[`${l}Channel`]=(0,g.LR)(toRgb(o[l]),`MUI: Can't create \`palette.${l}Channel\` because \`palette.${l}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
109To suppress this warning, you need to explicitly provide the \`palette.${l}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function getSpacingVal(o){return"number"==typeof o?`${o}px`:"string"==typeof o||"function"==typeof o||Array.isArray(o)?o:"8px"}let silent=o=>{try{return o()}catch(o){}},createThemeWithVars_createGetCssVar=(o="mui")=>createGetCssVar(o);function attachColorScheme(o,l,u,c){if(!l)return;l=!0===l?{}:l;let h="dark"===c?"dark":"light";if(!u){o[c]=createColorScheme({...l,palette:{mode:h,...l?.palette}});return}let{palette:g,...y}=styles_createThemeNoVars({...u,palette:{mode:h,...l?.palette}});return o[c]={...l,palette:g,opacity:{...getOpacity(h),...l?.opacity},overlays:l?.overlays||getOverlays(h)},y}function createThemeWithVars(o={},...l){let{colorSchemes:u={light:!0},defaultColorScheme:y,disableCssColorScheme:b=!1,cssVarPrefix:_="mui",shouldSkipGeneratingVar:w=shouldSkipGeneratingVar_shouldSkipGeneratingVar,colorSchemeSelector:T=u.light&&u.dark?"media":void 0,rootSelector:I=":root",...N}=o,F=Object.keys(u)[0],B=y||(u.light&&"light"!==F?"light":F),Z=createThemeWithVars_createGetCssVar(_),{[B]:q,light:G,dark:Q,...Y}=u,X={...Y},ee=q;if(("dark"!==B||"dark"in u)&&("light"!==B||"light"in u)||(ee=!0),!ee)throw Error((0,c.Z)(21,B));let et=attachColorScheme(X,ee,N,B);G&&!X.light&&attachColorScheme(X,G,void 0,"light"),Q&&!X.dark&&attachColorScheme(X,Q,void 0,"dark");let er={defaultColorScheme:B,...et,cssVarPrefix:_,colorSchemeSelector:T,rootSelector:I,getCssVar:Z,colorSchemes:X,font:{...prepareTypographyVars(et.typography),...et.font},spacing:getSpacingVal(N.spacing)};
109Object.keys(er.colorSchemes).forEach(o=>{let l=er.colorSchemes[o].palette,setCssVarColor=o=>{let u=o.split("-"),c=u[1],h=u[2];return Z(o,l[c][h])};if("light"===l.mode&&(setColor(l.common,"background","#fff"),setColor(l.common,"onBackground","#000")),"dark"===l.mode&&(setColor(l.common,"background","#000"),setColor(l.common,"onBackground","#fff")),assignNode(l,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===l.mode){setColor(l.Alert,"errorColor",(0,g.q8)(l.error.light,.6)),setColor(l.Alert,"infoColor",(0,g.q8)(l.info.light,.6)),setColor(l.Alert,"successColor",(0,g.q8)(l.success.light,.6)),setColor(l.Alert,"warningColor",(0,g.q8)(l.warning.light,.6)),setColor(l.Alert,"errorFilledBg",setCssVarColor("palette-error-main")),setColor(l.Alert,"infoFilledBg",setCssVarColor("palette-info-main")),setColor(l.Alert,"successFilledBg",setCssVarColor("palette-success-main")),setColor(l.Alert,"warningFilledBg",setCssVarColor("palette-warning-main")),setColor(l.Alert,"errorFilledColor",silent(()=>l.getContrastText(l.error.main))),setColor(l.Alert,"infoFilledColor",silent(()=>l.getContrastText(l.info.main))),setColor(l.Alert,"successFilledColor",silent(()=>l.getContrastText(l.success.main))),setColor(l.Alert,"warningFilledColor",silent(()=>l.getContrastText(l.warning.main))),setColor(l.Alert,"errorStandardBg",(0,g.ux)(l.error.light,.9)),setColor(l.Alert,"infoStandardBg",(0,g.ux)(l.info.light,.9)),setColor(l.Alert,"successStandardBg",(0,g.ux)(l.success.light,.9)),setColor(l.Alert,"warningStandardBg",(0,g.ux)(l.warning.light,.9)),setColor(l.Alert,"errorIconColor",setCssVarColor("palette-error-main")),setColor(l.Alert,"infoIconColor",setCssVarColor("palette-info-main")),setColor(l.Alert,"successIconColor",setCssVarColor("palette-success-main")),setColor(l.Alert,"warningIconColor",setCssVarColor("palette-warning-main")),setColor(l.AppBar,"defaultBg",setCssVarColor("palette-grey-100")),setColor(l.Avatar,"defaultBg",setCssVarColor("palette-grey-400")),setColor(l.Button,"inheritContainedBg",setCssVarColor("palette-grey-300")),setColor(l.Button,"inheritContainedHoverBg",setCssVarColor("palette-grey-A100")),setColor(l.Chip,"defaultBorder",setCssVarColor("palette-grey-400")),setColor(l.Chip,"defaultAvatarColor",setCssVarColor("palette-grey-700")),setColor(l.Chip,"defaultIconColor",setCssVarColor("palette-grey-700")),setColor(l.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),setColor(l.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),setColor(l.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),setColor(l.LinearProgress,"primaryBg",(0,g.ux)(l.primary.main,.62)),setColor(l.LinearProgress,"secondaryBg",(0,g.ux)(l.secondary.main,.62)),setColor(l.LinearProgress,"errorBg",(0,g.ux)(l.error.main,.62)),setColor(l.LinearProgress,"infoBg",(0,g.ux)(l.info.main,.62)),setColor(l.LinearProgress,"successBg",(0,g.ux)(l.success.main,.62)),setColor(l.LinearProgress,"warningBg",(0,g.ux)(l.warning.main,.62)),setColor(l.Skeleton,"bg",`rgba(${setCssVarColor("palette-text-primaryChannel")} / 0.11)`),setColor(l.Slider,"primaryTrack",(0,g.ux)(l.primary.main,.62)),setColor(l.Slider,"secondaryTrack",(0,g.ux)(l.secondary.main,.62)),setColor(l.Slider,"errorTrack",(0,g.ux)(l.error.main,.62)),setColor(l.Slider,"infoTrack",(0,g.ux)(l.info.main,.62)),setColor(l.Slider,"successTrack",(0,g.ux)(l.success.main,.62)),setColor(l.Slider,"warningTrack",(0,g.ux)(l.warning.main,.62));let o=(0,g.fk)(l.background.default,.8);setColor(l.SnackbarContent,"bg",o),setColor(l.SnackbarContent,"color",silent(()=>l.getContrastText(o))),setColor(l.SpeedDialAction,"fabHoverBg",(0,g.fk)(l.background.paper,.15)),setColor(l.StepConnector,"border",setCssVarColor("palette-grey-400")),setColor(l.StepContent,"border",setCssVarColor("palette-grey-400")),setColor(l.Switch,"defaultColor",setCssVarColor("palette-common-white")),setColor(l.Switch,"defaultDisabledColor",setCssVarColor("palette-grey-100")),setColor(l.Switch,"primaryDisabledColor",(0,g.ux)(l.primary.main,.62)),setColor(l.Switch,"secondary
109DisabledColor",(0,g.ux)(l.secondary.main,.62)),setColor(l.Switch,"errorDisabledColor",(0,g.ux)(l.error.main,.62)),setColor(l.Switch,"infoDisabledColor",(0,g.ux)(l.info.main,.62)),setColor(l.Switch,"successDisabledColor",(0,g.ux)(l.success.main,.62)),setColor(l.Switch,"warningDisabledColor",(0,g.ux)(l.warning.main,.62)),setColor(l.TableCell,"border",(0,g.ux)((0,g.zp)(l.divider,1),.88)),setColor(l.Tooltip,"bg",(0,g.zp)(l.grey[700],.92))}if("dark"===l.mode){setColor(l.Alert,"errorColor",(0,g.ux)(l.error.light,.6)),setColor(l.Alert,"infoColor",(0,g.ux)(l.info.light,.6)),setColor(l.Alert,"successColor",(0,g.ux)(l.success.light,.6)),setColor(l.Alert,"warningColor",(0,g.ux)(l.warning.light,.6)),setColor(l.Alert,"errorFilledBg",setCssVarColor("palette-error-dark")),setColor(l.Alert,"infoFilledBg",setCssVarColor("palette-info-dark")),setColor(l.Alert,"successFilledBg",setCssVarColor("palette-success-dark")),setColor(l.Alert,"warningFilledBg",setCssVarColor("palette-warning-dark")),setColor(l.Alert,"errorFilledColor",silent(()=>l.getContrastText(l.error.dark))),setColor(l.Alert,"infoFilledColor",silent(()=>l.getContrastText(l.info.dark))),setColor(l.Alert,"successFilledColor",silent(()=>l.getContrastText(l.success.dark))),setColor(l.Alert,"warningFilledColor",silent(()=>l.getContrastText(l.warning.dark))),setColor(l.Alert,"errorStandardBg",(0,g.q8)(l.error.light,.9)),setColor(l.Alert,"infoStandardBg",(0,g.q8)(l.info.light,.9)),setColor(l.Alert,"successStandardBg",(0,g.q8)(l.success.light,.9)),setColor(l.Alert,"warningStandardBg",(0,g.q8)(l.warning.light,.9)),setColor(l.Alert,"errorIconColor",setCssVarColor("palette-error-main")),setColor(l.Alert,"infoIconColor",setCssVarColor("palette-info-main")),setColor(l.Alert,"successIconColor",setCssVarColor("palette-success-main")),setColor(l.Alert,"warningIconColor",setCssVarColor("palette-warning-main")),setColor(l.AppBar,"defaultBg",setCssVarColor("palette-grey-900")),setColor(l.AppBar,"darkBg",setCssVarColor("palette-background-paper")),setColor(l.AppBar,"darkColor",setCssVarColor("palette-text-primary")),setColor(l.Avatar,"defaultBg",setCssVarColor("palette-grey-600")),setColor(l.Button,"inheritContainedBg",setCssVarColor("palette-grey-800")),setColor(l.Button,"inheritContainedHoverBg",setCssVarColor("palette-grey-700")),setColor(l.Chip,"defaultBorder",setCssVarColor("palette-grey-700")),setColor(l.Chip,"defaultAvatarColor",setCssVarColor("palette-grey-300")),setColor(l.Chip,"defaultIconColor",setCssVarColor("palette-grey-300")),setColor(l.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),setColor(l.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),setColor(l.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),setColor(l.LinearProgress,"primaryBg",(0,g.q8)(l.primary.main,.5)),setColor(l.LinearProgress,"secondaryBg",(0,g.q8)(l.secondary.main,.5)),setColor(l.LinearProgress,"errorBg",(0,g.q8)(l.error.main,.5)),setColor(l.LinearProgress,"infoBg",(0,g.q8)(l.info.main,.5)),setColor(l.LinearProgress,"successBg",(0,g.q8)(l.success.main,.5)),setColor(l.LinearProgress,"warningBg",(0,g.q8)(l.warning.main,.5)),setColor(l.Skeleton,"bg",`rgba(${setCssVarColor("palette-text-primaryChannel")} / 0.13)`),setColor(l.Slider,"primaryTrack",(0,g.q8)(l.primary.main,.5)),setColor(l.Slider,"secondaryTrack",(0,g.q8)(l.secondary.main,.5)),setColor(l.Slider,"errorTrack",(0,g.q8)(l.error.main,.5)),setColor(l.Slider,"infoTrack",(0,g.q8)(l.info.main,.5)),setColor(l.Slider,"successTrack",(0,g.q8)(l.success.main,.5)),setColor(l.Slider,"warningTrack",(0,g.q8)(l.warning.main,.5));let o=(0,g.fk)(l.background.default,.98);setColor(l.SnackbarContent,"bg",o),setColor(l.SnackbarContent,"color",silent(()=>l.getContrastText(o))),setColor(l.SpeedDialAction,"fabHoverBg",(0,g.fk)(l.background.paper,.15)),setColor(l.StepConnector,"border",setCssVarColor("palette-grey-600")),setColor(l.StepContent,"border",setCssVarColor("palette-grey-600")),setColor(l.Switch,"defaultColor",setCssVarColor("palette-grey-300")),setColor(l.Switch,"defaultDisabledColor",setCssVarColor("palette-grey-600")),setColor(l.Switch,"primaryDisabledColor",(0,g.q8)(l.primary.main,.55)),setColor(l.Switch,"secondary
109DisabledColor",(0,g.q8)(l.secondary.main,.55)),setColor(l.Switch,"errorDisabledColor",(0,g.q8)(l.error.main,.55)),setColor(l.Switch,"infoDisabledColor",(0,g.q8)(l.info.main,.55)),setColor(l.Switch,"successDisabledColor",(0,g.q8)(l.success.main,.55)),setColor(l.Switch,"warningDisabledColor",(0,g.q8)(l.warning.main,.55)),setColor(l.TableCell,"border",(0,g.q8)((0,g.zp)(l.divider,1),.68)),setColor(l.Tooltip,"bg",(0,g.zp)(l.grey[700],.92))}setColorChannel(l.background,"default"),setColorChannel(l.background,"paper"),setColorChannel(l.common,"background"),setColorChannel(l.common,"onBackground"),setColorChannel(l,"divider"),Object.keys(l).forEach(o=>{let u=l[o];"tonalOffset"!==o&&u&&"object"==typeof u&&(u.main&&setColor(l[o],"mainChannel",(0,g.LR)(toRgb(u.main))),u.light&&setColor(l[o],"lightChannel",(0,g.LR)(toRgb(u.light))),u.dark&&setColor(l[o],"darkChannel",(0,g.LR)(toRgb(u.dark))),u.contrastText&&setColor(l[o],"contrastTextChannel",(0,g.LR)(toRgb(u.contrastText))),"text"===o&&(setColorChannel(l[o],"primary"),setColorChannel(l[o],"secondary")),"action"===o&&(u.active&&setColorChannel(l[o],"active"),u.selected&&setColorChannel(l[o],"selected")))})}),er=l.reduce((o,l)=>(0,h.Z)(o,l),er);let en={prefix:_,disableCssColorScheme:b,shouldSkipGeneratingVar:w,getSelector:createGetSelector(er)},{vars:ei,generateThemeVars:eo,generateStyleSheets:ea}=cssVars_prepareCssVars(er,en);return er.vars=ei,Object.entries(er.colorSchemes[er.defaultColorScheme]).forEach(([o,l])=>{er[o]=l}),er.generateThemeVars=eo,er.generateStyleSheets=ea,er.generateSpacing=function(){return(0,W.Z)(N.spacing,(0,H.hB)(this))},er.getColorSchemeSelector=createGetColorSchemeSelector(T),er.spacing=er.generateSpacing(),er.shouldSkipGeneratingVar=w,er.unstable_sxConfig={...U.Z,...N?.unstable_sxConfig},er.unstable_sx=function(o){return(0,K.Z)({sx:o,theme:this})},er.toRuntimeSource=stringifyTheme,er}function createTheme_attachColorScheme(o,l,u){o.colorSchemes&&u&&(o.colorSchemes[l]={...!0!==u&&u,palette:createPalette({...!0===u?{}:u.palette,mode:l})})}function createTheme_createTheme(o={},...l){let{palette:u,cssVariables:c=!1,colorSchemes:h=u?void 0:{light:!0},defaultColorScheme:g=u?.mode,...y}=o,b=g||"light",_=h?.[b],w={...h,...u?{[b]:{..."boolean"!=typeof _&&_,palette:u}}:void 0};if(!1===c){if(!("colorSchemes"in o))return styles_createThemeNoVars(o,...l);let c=u;"palette"in o||!w[b]||(!0!==w[b]?c=w[b].palette:"dark"!==b||(c={mode:"dark"}));let h=styles_createThemeNoVars({...o,palette:c},...l);return h.defaultColorScheme=b,h.colorSchemes=w,"light"===h.palette.mode&&(h.colorSchemes.light={...!0!==w.light&&w.light,palette:h.palette},createTheme_attachColorScheme(h,"dark",w.dark)),"dark"===h.palette.mode&&(h.colorSchemes.dark={...!0!==w.dark&&w.dark,palette:h.palette},createTheme_attachColorScheme(h,"light",w.light)),h}return u||"light"in w||"light"!==b||(w.light=!0),createThemeWithVars({...y,colorSchemes:w,defaultColorScheme:b,..."boolean"!=typeof c&&c},...l)}},1445:function(o,l,u){"use strict";u.d(l,{Z:function(){return createTypography}});var c=u(4953);function round(o){return Math.round(1e5*o)/1e5}let h={textTransform:"uppercase"},g='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(o,l){let{fontFamily:u=g,fontSize:y=14,fontWeightLight:b=300,fontWeightRegular:_=400,fontWeightMedium:w=500,fontWeightBold:T=700,htmlFontSize:I=16,allVariants:N,pxToRem:F,...B}="function"==typeof l?l(o):l,Z=y/14,W=F||(o=>`${o/I*Z}rem`),buildVariant=(o,l,c,h,y)=>({fontFamily:u,fontWeight:o,fontSize:W(l),lineHeight:c,...u===g?{letterSpacing:`${round(h/l)}em`}:{},...y,...N}),H={h1:buildVariant(b,96,1.167,-1.5),h2:buildVariant(b,60,1.2,-.5),h3:buildVariant(_,48,1.167,0),h4:buildVariant(_,34,1.235,.25),h5:buildVariant(_,24,1.334,0),h6:buildVariant(w,20,1.6,.15),subtitle1:buildVariant(_,16,1.75,.15),subtitle2:buildVariant(w,14,1.57,.1),body1:buildVariant(_,16,1.5,.15),body2:buildVariant(_,14,1.43,.15),button:buildVariant(w,14,1.75,.4,h),caption:buildVariant(_,12,1.66,.4),overline:buildVariant(_,12,2.66,1,h),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,c.Z)({htmlFontSize:I,pxToRem:W,fontFamily:u,fontSize:y,fontWeightLight:b,fontWeightRegular:_,fontWeightMedium:w,fontWeightBold:T,...H},B,{clone:!1})}},247:function(o,l,u){"use strict";var c=u(6620);let h=(0,c.Z)();l.Z=h},2029:function(o,l,u){"use strict";function getOverlayAlpha(o){return Math.round(10*(o<1?5.11916*o**2:4.5*
109Math.log(o+1)+2))/1e3}u.d(l,{Z:function(){return getOverlayAlpha}})},606:function(o,l){"use strict";l.Z="$$material"},4136:function(o,l,u){"use strict";var c=u(5536);l.Z=o=>(0,c.Z)(o)&&"classes"!==o},5536:function(o,l){"use strict";function slotShouldForwardProp(o){return"ownerState"!==o&&"theme"!==o&&"sx"!==o&&"as"!==o}l.Z=slotShouldForwardProp},948:function(o,l,u){"use strict";var c=u(9636),h=u(247),g=u(606),y=u(4136);let b=(0,c.ZP)({themeId:g.Z,defaultTheme:h.Z,rootShouldForwardProp:y.Z});l.ZP=b},2734:function(o,l,u){"use strict";u.d(l,{Z:function(){return useTheme}}),u(7294);var c=u(5594),h=u(247),g=u(606);function useTheme(){let o=(0,c.Z)(h.Z);return o[g.Z]||o}},577:function(o,l,u){"use strict";u.d(l,{C:function(){return getTransitionProps},n:function(){return reflow}});let reflow=o=>o.scrollTop;function getTransitionProps(o,l){let{timeout:u,easing:c,style:h={}}=o;return{duration:h.transitionDuration??("number"==typeof u?u:u[l.mode]||0),easing:h.transitionTimingFunction??("object"==typeof c?c[l.mode]:c),delay:h.transitionDelay}}},8216:function(o,l,u){"use strict";var c=u(9182);l.Z=c.Z},902:function(o,l,u){"use strict";function hasCorrectMainProperty(o){return"string"==typeof o.main}function checkSimplePaletteColorValues(o,l=[]){if(!hasCorrectMainProperty(o))return!1;for(let u of l)if(!o.hasOwnProperty(u)||"string"!=typeof o[u])return!1;return!0}function createSimplePaletteValueFilter(o=[]){return([,l])=>l&&checkSimplePaletteColorValues(l,o)}u.d(l,{Z:function(){return createSimplePaletteValueFilter}})},2066:function(o,l,u){"use strict";u.d(l,{Z:function(){return createSvgIcon}});var c=u(7294),h=u(3219),g=u(5893);function createSvgIcon(o,l){function Component(u,c){return(0,g.jsx)(h.Z,{"data-testid":`${l}Icon`,ref:c,...u,children:o})}return Component.muiName=h.Z.muiName,c.memo(c.forwardRef(Component))}},6694:function(o,l,u){"use strict";u.d(l,{Z:function(){return y}});var c=u(4024);let h={theme:void 0};function unstable_memoTheme(o){let l,u;return function(g){let y=l;return(void 0===y||g.theme!==u)&&(h.theme=g.theme,l=y=(0,c.Z)(o(h)),u=g.theme),y}}let g=unstable_memoTheme;var y=g},8038:function(o,l,u){"use strict";var c=u(2690);l.Z=c.Z},5340:function(o,l,u){"use strict";var c=u(4161);l.Z=c.Z},8974:function(o,l,u){"use strict";var c=u(3546);l.Z=c.Z},2068:function(o,l,u){"use strict";var c=u(9948);l.Z=c.Z},1705:function(o,l,u){"use strict";var c=u(3703);l.Z=c.Z},7909:function(o,l,u){"use strict";var c=u(2996);l.Z=c.Z},560:function(o,l,u){"use strict";u.d(l,{Z:function(){return useSlot}});var c=u(3703),h=u(5364),g=u(5610),y=u(5120);function useSlot(o,l){let{className:u,elementType:b,ownerState:_,externalForwardedProps:w,internalForwardedProps:T,shouldForwardComponentProp:I=!1,...N}=l,{component:F,slots:B={[o]:void 0},slotProps:Z={[o]:void 0},...W}=w,H=B[o]||b,U=(0,g.Z)(Z[o],_),{props:{component:K,...q},internalRef:G}=(0,y.Z)({className:u,...N,externalForwardedProps:"root"===o?W:void 0,externalSlotProps:U}),Q=(0,c.Z)(G,U?.ref,l.ref),Y="root"===o?K||F:K,X=(0,h.Z)(H,{..."root"===o&&!F&&!B[o]&&T,..."root"!==o&&!B[o]&&T,...q,...Y&&!I&&{as:Y},...Y&&I&&{component:Y},ref:Q},_);return[H,X]}},141:function(o,l,u){"use strict";u.d(l,{zY:function(){return globalCss},u7:function(){return internal_createExtendSxProp}}),u(7294);var c=u(9707),h=u(5723),g=u(247),y=u(606),b=u(5893),material_GlobalStyles_GlobalStyles=function(o){return(0,b.jsx)(h.Z,{...o,defaultTheme:g.Z,themeId:y.Z})};function globalCss(o){return function(l){return(0,b.jsx)(material_GlobalStyles_GlobalStyles,{styles:"function"==typeof o?u=>o({theme:u,...l}):o})}}function internal_createExtendSxProp(){return c.Z}},1234:function(o,l,u){"use strict";u.d(l,{Z:function(){return GlobalStyles}}),u(7294);var c=u(917),h=u(5893);function isEmpty(o){return null==o||0===Object.keys(o).length}function GlobalStyles(o){let{styles:l,defaultTheme:u={}}=o,g="function"==typeof l?o=>l(isEmpty(o)?u:o):l;return(0,h.jsx)(c.xB,{styles:g})}},9731:function(o,l,u){"use strict";u.d(l,{ZP:function(){return styled_engine_styled},nf:function(){return internal_mutateStyles},bu:function(){return internal_serializeStyles}});var c=u(7462),h=u(7685),g=u(5662),y=u(7278),b=u(444),_=u(7294),w=u(5042),T=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
109ine|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,I=(0,w.Z)(function(o){return T.test(o)||111===o.charCodeAt(0)&&110===o.charCodeAt(1)&&91>o.charCodeAt(2)}),testOmitPropsOnComponent=function(o){return"theme"!==o},getDefaultShouldForwardProp=function(o){return"string"==typeof o&&o.charCodeAt(0)>96?I:testOmitPropsOnComponent},composeShouldForwardProps=function(o,l,u){var c;if(l){var h=l.shouldForwardProp;c=o.__emotion_forwardProp&&h?function(l){return o.__emotion_forwardProp(l)&&h(l)}:h}return"function"!=typeof c&&u&&(c=o.__emotion_forwardProp),c},Insertion=function(o){var l=o.cache,u=o.serialized,c=o.isStringTag;return(0,b.hC)(l,u,c),(0,y.L)(function(){return(0,b.My)(l,u,c)}),null},N=(function createStyled(o,l){var u,y,w=o.__emotion_real===o,T=w&&o.__emotion_base||o;void 0!==l&&(u=l.label,y=l.target);var I=composeShouldForwardProps(o,l,w),N=I||getDefaultShouldForwardProp(T),F=!N("as");return function(){var B=arguments,Z=w&&void 0!==o.__emotion_styles?o.__emotion_styles.slice(0):[];if(void 0!==u&&Z.push("label:"+u+";"),null==B[0]||void 0===B[0].raw)Z.push.apply(Z,B);else{var W=B[0];Z.push(W[0]);for(var H=B.length,U=1;U<H;U++)Z.push(B[U],W[U])}var K=(0,h.w)(function(o,l,u){var c=F&&o.as||T,w="",B=[],W=o;if(null==o.theme){for(var H in W={},o)W[H]=o[H];W.theme=_.useContext(h.T)}"string"==typeof o.className?w=(0,b.fp)(l.registered,B,o.className):null!=o.className&&(w=o.className+" ");var U=(0,g.O)(Z.concat(B),l.registered,W);
109w+=l.key+"-"+U.name,void 0!==y&&(w+=" "+y);var K=F&&void 0===I?getDefaultShouldForwardProp(c):N,q={};for(var G in o)(!F||"as"!==G)&&K(G)&&(q[G]=o[G]);return q.className=w,u&&(q.ref=u),_.createElement(_.Fragment,null,_.createElement(Insertion,{cache:l,serialized:U,isStringTag:"string"==typeof c}),_.createElement(c,q))});return K.displayName=void 0!==u?u:"Styled("+("string"==typeof T?T:T.displayName||T.name||"Component")+")",K.defaultProps=o.defaultProps,K.__emotion_real=K,K.__emotion_base=T,K.__emotion_styles=Z,K.__emotion_forwardProp=I,Object.defineProperty(K,"toString",{value:function(){return"."+y}}),K.withComponent=function(o,u){return createStyled(o,(0,c.Z)({},l,u,{shouldForwardProp:composeShouldForwardProps(K,u,!0)})).apply(void 0,Z)},K}}).bind(null);/**
110 * @mui/styled-engine v6.5.0
111 *
112 * @license MIT
113 * This source code is licensed under the MIT license found in the
114 * LICENSE file in the root directory of this source tree.
115 */function styled_engine_styled(o,l){let u=N(o,l);return u}function internal_mutateStyles(o,l){Array.isArray(o.__emotion_styles)&&(o.__emotion_styles=l(o.__emotion_styles))}["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(o){N[o]=N(o)});let F=[];function internal_serializeStyles(o){return F[0]=o,(0,g.O)(F)}},2842:function(o,l,u){"use strict";u.d(l,{i:function(){return useDefaultProps}});var c=u(7294),h=u(5971),g=u(5893);let y=c.createContext(void 0);function DefaultPropsProvider({value:o,children:l}){return(0,g.jsx)(y.Provider,{value:o,children:l})}function getThemeProps(o){let{theme:l,name:u,props:c}=o;if(!l||!l.components||!l.components[u])return c;let g=l.components[u];return g.defaultProps?(0,h.Z)(g.defaultProps,c):g.styleOverrides||g.variants?c:(0,h.Z)(g,c)}function useDefaultProps({props:o,name:l}){let u=c.useContext(y);return getThemeProps({props:o,name:l,theme:{components:u}})}l.Z=DefaultPropsProvider}
115,5723:function(o,l,u){"use strict";u(7294);var c=u(9731),h=u(1234),g=u(5594),y=u(5893);function wrapGlobalLayer(o){let l=(0,c.bu)(o);return o!==l&&l.styles?(l.styles.match(/^@layer\s+[^{]*$/)||(l.styles=`@layer global{${l.styles}}`),l):o}function GlobalStyles({styles:o,themeId:l,defaultTheme:u={}}){let c=(0,g.Z)(u),b=l&&c[l]||c,_="function"==typeof o?o(b):o;return b.modularCssLayers&&(_=Array.isArray(_)?_.map(o=>"function"==typeof o?wrapGlobalLayer(o(b)):wrapGlobalLayer(o)):wrapGlobalLayer(_)),(0,y.jsx)(h.Z,{styles:_})}l.Z=GlobalStyles},2056:function(o,l,u){"use strict";u.d(l,{V:function(){return useRtl}});var c=u(7294),h=u(5893);let g=c.createContext();function RtlProvider({value:o,...l}){return(0,h.jsx)(g.Provider,{value:o??!0,...l})}let useRtl=()=>{let o=c.useContext(g);return o??!1};l.Z=RtlProvider},6622:function(o,l,u){"use strict";u.d(l,{L7:function(){return removeUnusedBreakpoints},P$:function(){return resolveBreakpointValues},VO:function(){return g},W8:function(){return createEmptyBreakpointObject},dt:function(){return mergeBreakpointsInOrder},k9:function(){return handleBreakpoints}});var c=u(4953),h=u(1303);let g={xs:0,sm:600,md:900,lg:1200,xl:1536},y={keys:["xs","sm","md","lg","xl"],up:o=>`@media (min-width:${g[o]}px)`},b={containerQueries:o=>({up:l=>{let u="number"==typeof l?l:g[l]||l;return"number"==typeof u&&(u=`${u}px`),o?`@container ${o} (min-width:${u})`:`@container (min-width:${u})`}})};function handleBreakpoints(o,l,u){let c=o.theme||{};if(Array.isArray(l)){let o=c.breakpoints||y;return l.reduce((c,h,g)=>(c[o.up(o.keys[g])]=u(l[g]),c),{})}if("object"==typeof l){let o=c.breakpoints||y;return Object.keys(l).reduce((y,_)=>{if((0,h.WX)(o.keys,_)){let o=(0,h.ue)(c.containerQueries?c:b,_);o&&(y[o]=u(l[_],_))}else if(Object.keys(o.values||g).includes(_)){let c=o.up(_);y[c]=u(l[_],_)}else y[_]=l[_];return y},{})}let _=u(l);return _}function createEmptyBreakpointObject(o={}){let l=o.keys?.reduce((l,u)=>{let c=o.up(u);return l[c]={},l},{});return l||{}}function removeUnusedBreakpoints(o,l){return o.reduce((o,l)=>{let u=o[l],c=!u||0===Object.keys(u).length;return c&&delete o[l],o},l)}function mergeBreakpointsInOrder(o,...l){let u=createEmptyBreakpointObject(o),h=[u,...l].reduce((o,l)=>(0,c.Z)(o,l),{});return removeUnusedBreakpoints(Object.keys(u),h)}function computeBreakpointsBase(o,l){if("object"!=typeof o)return{};let u={},c=Object.keys(l);return Array.isArray(o)?c.forEach((l,c)=>{c<o.length&&(u[l]=!0)}):c.forEach(l=>{null!=o[l]&&(u[l]=!0)}),u}function resolveBreakpointValues({values:o,breakpoints:l,base:u}){let c;let h=u||computeBreakpointsBase(o,l),g=Object.keys(h);return 0===g.length?o:g.reduce((l,u,h)=>(Array.isArray(o)?(l[u]=null!=o[h]?o[h]:o[c],c=h):"object"==typeof o?(l[u]=null!=o[u]?o[u]:o[c],c=u):l[u]=o,l),{})}},8366:function(o,l,u){"use strict";u.d(l,{Fq:function(){return alpha},_j:function(){return darken},mi:function(){return getContrastRatio},ve:function(){return hslToRgb},$n:function(){return lighten},zp:function(){return private_safeAlpha},LR:function(){return private_safeColorChannel},q8:function(){return private_safeDarken},fk:function(){return private_safeEmphasize},ux:function(){return private_safeLighten}});var c=u(6535);function clampWrapper(o,l=0,u=1){return function(o,l=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER){return Math.max(l,Math.min(o,u))}(o,l,u)}function hexToRgb(o){o=o.slice(1);let l=RegExp(`.{1,${o.length>=6?2:1}}`,"g"),u=o.match(l);return u&&1===u[0].length&&(u=u.map(o=>o+o)),u?`rgb${4===u.length?"a":""}(${u.map((o,l)=>l<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor(o){let l;if(o.type)return o;if("#"===o.charAt(0))return decomposeColor(hexToRgb(o));let u=o.indexOf("("),h=o.substring(0,u);if(!["rgb","rgba","hsl","hsla","color"].includes(h))throw Error((0,c.Z)(9,o));let g=o.substring(u+1,o.length-1);if("color"===h){if(l=(g=g.split(" ")).shift(),4===g.length&&"/"===g[3].charAt(0)&&(g[3]=g[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw Error((0,c.Z)(10,l))}else g=g.split(",");return{type:h,values:g=g.map(o=>parseFloat(o)),colorSpace:l}}let colorChannel=o=>{let l=decomposeColor(o);return l.values.slice(0,3).map((o,u)=>l.type.includes("hsl")&&0!==u?`${o}%`:o).join(" ")},private_safeColorChannel=(o,l)=>{try{return colorChannel(o)}catch(l){return o}};function recomposeColor(o){let{type:l,colorSpace:u}=o,{values:c}=o;return l.includes("rgb")?c=c.map((o,l)=>l<3?parseInt(o,10):o):l.includes("hsl")&&(c[1]=`${c[1]}%`,c[2]=`${c[2]}%`),c=l.includes("color")?`${u} ${c.join(" ")}`:`${c.join(", ")}`,`${l}(${c})`}function hslToRgb(o){o=decomposeColor(o);let{values:l}=o,u=l[0],c=l[1]/100,h=l[2]/100,g=c*Math.min(h,1-h),f=(o,l=(o+u/30)%12)=>h-g*Math.max(Math.min(l-3,9-l,1),-1),y="rgb",b=[Math.round(255*f(0)),Math.round(255*f(8)),Math.round(255*f(4))];return"hsla"===o.type&&(y+="a",b.push(l[3])),recomposeColor({type:y,values:b})}function getLuminance(o){let l="hsl"===(o=decomposeColor(o)).type||"hsla"===o.type?decomposeColor(hslToRgb(o)).values:o.values;return Number((.2126*(l=l.map(l=>("color"!==o.type&&(l/=255),l<=.03928?l/12.92:((l+.055)/1.055)**2.4)))[0]+.7152*l[1]+.0722*l[2]).toFixed(3))}function getContrastRatio(o,l){let u=getLuminance(o),c=getLuminance(l);return(Math.max(u,c)+.05)/(Math.min(u,c)+.05)}function alpha(o,l){return o=decomposeColor(o),l=clampWrapper(l),("rgb"
115===o.type||"hsl"===o.type)&&(o.type+="a"),"color"===o.type?o.values[3]=`/${l}`:o.values[3]=l,recomposeColor(o)}function private_safeAlpha(o,l,u){try{return alpha(o,l)}catch(l){return o}}function darken(o,l){if(o=decomposeColor(o),l=clampWrapper(l),o.type.includes("hsl"))o.values[2]*=1-l;else if(o.type.includes("rgb")||o.type.includes("color"))for(let u=0;u<3;u+=1)o.values[u]*=1-l;return recomposeColor(o)}function private_safeDarken(o,l,u){try{return darken(o,l)}catch(l){return o}}function lighten(o,l){if(o=decomposeColor(o),l=clampWrapper(l),o.type.includes("hsl"))o.values[2]+=(100-o.values[2])*l;else if(o.type.includes("rgb"))for(let u=0;u<3;u+=1)o.values[u]+=(255-o.values[u])*l;else if(o.type.includes("color"))for(let u=0;u<3;u+=1)o.values[u]+=(1-o.values[u])*l;return recomposeColor(o)}function private_safeLighten(o,l,u){try{return lighten(o,l)}catch(l){return o}}function emphasize(o,l=.15){return getLuminance(o)>.5?darken(o,l):lighten(o,l)}function private_safeEmphasize(o,l,u){try{return emphasize(o,l)}catch(l){return o}}},9636:function(o,l,u){"use strict";u.d(l,{ZP:function(){return createStyled}});var c=u(9731),h=u(4953),g=u(8136),y=u(6523),b=u(4024);let _=(0,g.Z)();function shouldForwardProp(o){return"ownerState"!==o&&"theme"!==o&&"sx"!==o&&"as"!==o}function shallowLayer(o,l){return l&&o&&"object"==typeof o&&o.styles&&!o.styles.startsWith("@layer")&&(o.styles=`@layer ${l}{${String(o.styles)}}`),o}function defaultOverridesResolver(o){return o?(l,u)=>u[o]:null}function attachTheme(o,l,u){o.theme=isObjectEmpty(o.theme)?u:o.theme[l]||o.theme}function processStyle(o,l,u){let h="function"==typeof l?l(o):l;if(Array.isArray(h))return h.flatMap(l=>processStyle(o,l,u));if(Array.isArray(h?.variants)){let l;if(h.isProcessed)l=u?shallowLayer(h.style,u):h.style;else{let{variants:o,...g}=h;l=u?shallowLayer((0,c.bu)(g),u):g}return processStyleVariants(o,h.variants,[l],u)}return h?.isProcessed?u?shallowLayer((0,c.bu)(h.style),u):h.style:u?shallowLayer((0,c.bu)(h),u):h}function processStyleVariants(o,l,u=[],h){let g;e:for(let y=0;y<l.length;y+=1){let b=l[y];if("function"==typeof b.props){if(g??={...o,...o.ownerState,ownerState:o.ownerState},!b.props(g))continue}else for(let l in b.props)if(o[l]!==b.props[l]&&o.ownerState?.[l]!==b.props[l])continue e;"function"==typeof b.style?(g??={...o,...o.ownerState,ownerState:o.ownerState},u.push(h?shallowLayer((0,c.bu)(b.style(g)),h):b.style(g))):u.push(h?shallowLayer((0,c.bu)(b.style),h):b.style)}return u}function createStyled(o={}){let{themeId:l,defaultTheme:u=_,rootShouldForwardProp:g=shouldForwardProp,slotShouldForwardProp:w=shouldForwardProp}=o;function styleAttachTheme(o){attachTheme(o,l,u)}return(o,l={})=>{(0,c.nf)(o,o=>o.filter(o=>o!==y.Z));let{name:u,slot:_,skipVariantsResolver:T,skipSx:I,overridesResolver:N=defaultOverridesResolver(lowercaseFirstLetter(_)),...F}=l,B=u&&u.startsWith("Mui")||_?"components":"custom",Z=void 0!==T?T:_&&"Root"!==_&&"root"!==_||!1,W=I||!1,H=shouldForwardProp;"Root"===_||"root"===_?H=g:_?H=w:isStringTag(o)&&(H=void 0);let U=(0,c.ZP)(o,{shouldForwardProp:H,label:generateStyledLabel(u,_),...F}),transformStyle=o=>{if(o.__emotion_real===o)return o;if("function"==typeof o)return function(l){return processStyle(l,o,l.theme.modularCssLayers?B:void 0)};if((0,h.P)(o)){let l=(0,b.Z)(o);return function(o){return l.variants?processStyle(o,l,o.theme.modularCssLayers?B:void 0):o.theme.modularCssLayers?shallowLayer(l.style,B):l.style}}return o},muiStyledResolver=(...l)=>{let c=[],h=l.map(transformStyle),g=[];if(c.push(styleAttachTheme),u&&N&&g.push(function(o){let l=o.theme,c=l.components?.[u]?.styleOverrides;if(!c)return null;let h={};for(let l in c)h[l]=processStyle(o,c[l],o.theme.modularCssLayers?"theme":void 0);return N(o,h)}),u&&!Z&&g.push(function(o){let l=o.theme,c=l?.components?.[u]?.variants;return c?processStyleVariants(o,c,[],o.theme.modularCssLayers?"theme":void 0):null}),W||g.push(y.Z),Array.isArray(h[0])){let o;let l=h.shift(),u=Array(c.length).fill(""),y=Array(g.length).fill("");(o=[...u,...l,...y]).raw=[...u,...l.raw,...y],c.unshift(o)}let b=[...c,...h,...g],_=U(...b);return o.muiName&&(_.muiName=o.muiName),_};return U.withConfig&&(muiStyledResolver.withConfig=U.withConfig),muiStyledResolver}}function generateStyledLabel(o,l){}function isObjectEmpty(o){for(let l in o)return!1;return!0}function isStringTag(o){return"string"==typeof o&&o.charCodeAt(0)>96}
115function lowercaseFirstLetter(o){return o?o.charAt(0).toLowerCase()+o.slice(1):o}},8373:function(o,l,u){"use strict";u.d(l,{Z:function(){return createSpacing}});var c=u(6943);function createSpacing(o=8,l=(0,c.hB)({spacing:o})){if(o.mui)return o;let spacing=(...o)=>{let u=0===o.length?[1]:o;return u.map(o=>{let u=l(o);return"number"==typeof u?`${u}px`:u}).join(" ")};return spacing.mui=!0,spacing}},8136:function(o,l,u){"use strict";u.d(l,{Z:function(){return createTheme_createTheme}});var c=u(4953);let sortBreakpointsValues=o=>{let l=Object.keys(o).map(l=>({key:l,val:o[l]}))||[];return l.sort((o,l)=>o.val-l.val),l.reduce((o,l)=>({...o,[l.key]:l.val}),{})};function createBreakpoints(o){let{values:l={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:u="px",step:c=5,...h}=o,g=sortBreakpointsValues(l),y=Object.keys(g);function up(o){let c="number"==typeof l[o]?l[o]:o;return`@media (min-width:${c}${u})`}function down(o){let h="number"==typeof l[o]?l[o]:o;return`@media (max-width:${h-c/100}${u})`}function between(o,h){let g=y.indexOf(h);return`@media (min-width:${"number"==typeof l[o]?l[o]:o}${u}) and (max-width:${(-1!==g&&"number"==typeof l[y[g]]?l[y[g]]:h)-c/100}${u})`}function only(o){return y.indexOf(o)+1<y.length?between(o,y[y.indexOf(o)+1]):up(o)}function not(o){let l=y.indexOf(o);return 0===l?up(y[1]):l===y.length-1?down(y[l]):between(o,y[y.indexOf(o)+1]).replace("@media","@media not all and")}return{keys:y,values:g,up,down,between,only,not,unit:u,...h}}var h=u(1303),g={borderRadius:4},y=u(8373),b=u(6523),_=u(5387);function applyStyles(o,l){if(this.vars){if(!this.colorSchemes?.[o]||"function"!=typeof this.getColorSchemeSelector)return{};let u=this.getColorSchemeSelector(o);return"&"===u?l:((u.includes("data-")||u.includes("."))&&(u=`*:where(${u.replace(/\s*&$/,"")}) &`),{[u]:l})}return this.palette.mode===o?l:{}}var createTheme_createTheme=function(o={},...l){let{breakpoints:u={},palette:w={},spacing:T,shape:I={},...N}=o,F=createBreakpoints(u),B=(0,y.Z)(T),Z=(0,c.Z)({breakpoints:F,direction:"ltr",components:{},palette:{mode:"light",...w},spacing:B,shape:{...g,...I}},N);return(Z=(0,h.ZP)(Z)).applyStyles=applyStyles,(Z=l.reduce((o,l)=>(0,c.Z)(o,l),Z)).unstable_sxConfig={..._.Z,...N?.unstable_sxConfig},Z.unstable_sx=function(o){return(0,b.Z)({sx:o,theme:this})},Z}},1303:function(o,l,u){"use strict";function sortContainerQueries(o,l){if(!o.containerQueries)return l;let u=Object.keys(l).filter(o=>o.startsWith("@container")).sort((o,l)=>{let u=/min-width:\s*([0-9.]+)/;return+(o.match(u)?.[1]||0)-+(l.match(u)?.[1]||0)});return u.length?u.reduce((o,u)=>{let c=l[u];return delete o[u],o[u]=c,o},{...l}):l}function isCqShorthand(o,l){return"@"===l||l.startsWith("@")&&(o.some(o=>l.startsWith(`@${o}`))||!!l.match(/^@\d/))}function getContainerQuery(o,l){let u=l.match(/^@([^/]+)?\/?(.+)?$/);if(!u)return null;let[,c,h]=u,g=Number.isNaN(+c)?c||0:+c;return o.containerQueries(h).up(g)}function cssContainerQueries(o){let toContainerQuery=(o,l)=>o.replace("@media",l?`@container ${l}`:"@container");function attachCq(l,u){l.up=(...l)=>toContainerQuery(o.breakpoints.up(...l),u),l.down=(...l)=>toContainerQuery(o.breakpoints.down(...l),u),l.between=(...l)=>toContainerQuery(o.breakpoints.between(...l),u),l.only=(...l)=>toContainerQuery(o.breakpoints.only(...l),u),l.not=(...l)=>{let c=toContainerQuery(o.breakpoints.not(...l),u);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}let l={},containerQueries=o=>(attachCq(l,o),l);return attachCq(containerQueries),{...o,containerQueries}}u.d(l,{WX:function(){return isCqShorthand},ZP:function(){return cssContainerQueries},ar:function(){return sortContainerQueries},ue:function(){return getContainerQuery}})},2872:function(o,l,u){"use strict";var c=u(4953);function merge(o,l){return l?(0,c.Z)(o,l,{clone:!1}):o}l.Z=merge},4024:function(o,l,u){"use strict";u.d(l,{Z:function(){return preprocessStyles}});var c=u(9731);function preprocessStyles(o){let{variants:l,...u}=o,h={variants:l,style:(0,c.bu)(u),isProcessed:!0};return h.style===u||l&&l.forEach(o=>{"function"!=typeof o.style&&(o.style=(0,c.bu)(o.style))}),h}},6943:function(o,l,u){"use strict";u.d(l,{hB:function(){return createUnarySpacing},eI:function(){return createUnaryUnit},NA:function(){return getValue},e6:function(){return margin},o3:function(){return padding}});var c=u(6622),h=u(2936),g=u(2872);
115function memoize(o){let l={};return u=>(void 0===l[u]&&(l[u]=o(u)),l[u])}let y={m:"margin",p:"padding"},b={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},w=memoize(o=>{if(o.length>2){if(!_[o])return[o];o=_[o]}let[l,u]=o.split(""),c=y[l],h=b[u]||"";return Array.isArray(h)?h.map(o=>c+o):[c+h]}),T=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],I=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],N=[...T,...I];function createUnaryUnit(o,l,u,c){let g=(0,h.DW)(o,l,!0)??u;return"number"==typeof g||"string"==typeof g?o=>"string"==typeof o?o:"string"==typeof g?`calc(${o} * ${g})`:g*o:Array.isArray(g)?o=>{if("string"==typeof o)return o;let l=g[Math.abs(o)];return o>=0?l:"number"==typeof l?-l:`-${l}`}:"function"==typeof g?g:()=>void 0}function createUnarySpacing(o){return createUnaryUnit(o,"spacing",8,"spacing")}function getValue(o,l){return"string"==typeof l||null==l?l:o(l)}function getStyleFromPropValue(o,l){return u=>o.reduce((o,c)=>(o[c]=getValue(l,u),o),{})}function resolveCssProperty(o,l,u,h){if(!l.includes(u))return null;let g=w(u),y=getStyleFromPropValue(g,h),b=o[u];return(0,c.k9)(o,b,y)}function spacing_style(o,l){let u=createUnarySpacing(o.theme);return Object.keys(o).map(c=>resolveCssProperty(o,l,c,u)).reduce(g.Z,{})}function margin(o){return spacing_style(o,T)}function padding(o){return spacing_style(o,I)}function spacing(o){return spacing_style(o,N)}margin.propTypes={},margin.filterProps=T,padding.propTypes={},padding.filterProps=I,spacing.propTypes={},spacing.filterProps=N},2936:function(o,l,u){"use strict";u.d(l,{DW:function(){return getPath},Jq:function(){return getStyleValue}});var c=u(9182),h=u(6622);function getPath(o,l,u=!0){if(!l||"string"!=typeof l)return null;if(o&&o.vars&&u){let u=`vars.${l}`.split(".").reduce((o,l)=>o&&o[l]?o[l]:null,o);if(null!=u)return u}return l.split(".").reduce((o,l)=>o&&null!=o[l]?o[l]:null,o)}function getStyleValue(o,l,u,c=u){let h;return h="function"==typeof o?o(u):Array.isArray(o)?o[u]||c:getPath(o,u)||c,l&&(h=l(h,c,o)),h}function style(o){let{prop:l,cssProperty:u=o.prop,themeKey:g,transform:y}=o,fn=o=>{if(null==o[l])return null;let b=o[l],_=o.theme,w=getPath(_,g)||{};return(0,h.k9)(o,b,o=>{let h=getStyleValue(w,y,o);return(o===h&&"string"==typeof o&&(h=getStyleValue(w,y,`${l}${"default"===o?"":(0,c.Z)(o)}`,o)),!1===u)?h:{[u]:h}})};return fn.propTypes={},fn.filterProps=[l],fn}l.ZP=style},5387:function(o,l,u){"use strict";u.d(l,{Z:function(){return ef}});var c=u(6943),h=u(2936),g=u(2872),compose_compose=function(...o){let l=o.reduce((o,l)=>(l.filterProps.forEach(u=>{o[u]=l}),o),{}),fn=o=>Object.keys(o).reduce((u,c)=>l[c]?(0,g.Z)(u,l[c](o)):u,{});return fn.propTypes={},fn.filterProps=o.reduce((o,l)=>o.concat(l.filterProps),[]),fn},y=u(6622);function borderTransform(o){return"number"!=typeof o?o:`${o}px solid`}function createBorderStyle(o,l){return(0,h.ZP)({prop:o,themeKey:"borders",transform:l})}let b=createBorderStyle("border",borderTransform),_=createBorderStyle("borderTop",borderTransform),w=createBorderStyle("borderRight",borderTransform),T=createBorderStyle("borderBottom",borderTransform),I=createBorderStyle("borderLeft",borderTransform),N=createBorderStyle("borderColor"),F=createBorderStyle("borderTopColor"),B=createBorderStyle("borderRightColor"),Z=createBorderStyle("borderBottomColor"),W=createBorderStyle("borderLeftColor"),H=createBorderStyle("outline",borderTransform),U=createBorderStyle("outlineColor"),borderRadius=o=>
115{if(void 0!==o.borderRadius&&null!==o.borderRadius){let l=(0,c.eI)(o.theme,"shape.borderRadius",4,"borderRadius");return(0,y.k9)(o,o.borderRadius,o=>({borderRadius:(0,c.NA)(l,o)}))}return null};borderRadius.propTypes={},borderRadius.filterProps=["borderRadius"],compose_compose(b,_,w,T,I,N,F,B,Z,W,borderRadius,H,U);let gap=o=>{if(void 0!==o.gap&&null!==o.gap){let l=(0,c.eI)(o.theme,"spacing",8,"gap");return(0,y.k9)(o,o.gap,o=>({gap:(0,c.NA)(l,o)}))}return null};gap.propTypes={},gap.filterProps=["gap"];let columnGap=o=>{if(void 0!==o.columnGap&&null!==o.columnGap){let l=(0,c.eI)(o.theme,"spacing",8,"columnGap");return(0,y.k9)(o,o.columnGap,o=>({columnGap:(0,c.NA)(l,o)}))}return null};columnGap.propTypes={},columnGap.filterProps=["columnGap"];let rowGap=o=>{if(void 0!==o.rowGap&&null!==o.rowGap){let l=(0,c.eI)(o.theme,"spacing",8,"rowGap");return(0,y.k9)(o,o.rowGap,o=>({rowGap:(0,c.NA)(l,o)}))}return null};rowGap.propTypes={},rowGap.filterProps=["rowGap"];let K=(0,h.ZP)({prop:"gridColumn"}),q=(0,h.ZP)({prop:"gridRow"}),G=(0,h.ZP)({prop:"gridAutoFlow"}),Q=(0,h.ZP)({prop:"gridAutoColumns"}),Y=(0,h.ZP)({prop:"gridAutoRows"}),X=(0,h.ZP)({prop:"gridTemplateColumns"}),ee=(0,h.ZP)({prop:"gridTemplateRows"}),et=(0,h.ZP)({prop:"gridTemplateAreas"}),er=(0,h.ZP)({prop:"gridArea"});function paletteTransform(o,l){return"grey"===l?l:o}compose_compose(gap,columnGap,rowGap,K,q,G,Q,Y,X,ee,et,er);let en=(0,h.ZP)({prop:"color",themeKey:"palette",transform:paletteTransform}),ei=(0,h.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),eo=(0,h.ZP)({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});function sizingTransform(o){return o<=1&&0!==o?`${100*o}%`:o}compose_compose(en,ei,eo);let ea=(0,h.ZP)({prop:"width",transform:sizingTransform}),maxWidth=o=>void 0!==o.maxWidth&&null!==o.maxWidth?(0,y.k9)(o,o.maxWidth,l=>{let u=o.theme?.breakpoints?.values?.[l]||y.VO[l];return u?o.theme?.breakpoints?.unit!=="px"?{maxWidth:`${u}${o.theme.breakpoints.unit}`}:{maxWidth:u}:{maxWidth:sizingTransform(l)}}):null;maxWidth.filterProps=["maxWidth"];let es=(0,h.ZP)({prop:"minWidth",transform:sizingTransform}),el=(0,h.ZP)({prop:"height",transform:sizingTransform}),eu=(0,h.ZP)({prop:"maxHeight",transform:sizingTransform}),ec=(0,h.ZP)({prop:"minHeight",transform:sizingTransform});(0,h.ZP)({prop:"size",cssProperty:"width",transform:sizingTransform}),(0,h.ZP)({prop:"size",cssProperty:"height",transform:sizingTransform});let ed=(0,h.ZP)({prop:"boxSizing"});compose_compose(ea,maxWidth,es,el,eu,ec,ed);let ep={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:c.o3},pt:{style:c.o3},pr:{style:c.o3},pb:{style:c.o3},pl:{style:c.o3},px:{style:c.o3},py:{style:c.o3},padding:{style:c.o3},paddingTop:{style:c.o3},paddingRight:{style:c.o3},paddingBottom:{style:c.o3},paddingLeft:{style:c.o3},paddingX:{style:c.o3},paddingY:{style:c.o3},paddingInline:{style:c.o3},paddingInlineStart:{style:c.o3},paddingInlineEnd:{style:c.o3},paddingBlock:{style:c.o3},paddingBlockStart:{style:c.o3},paddingBlockEnd:{style:c.o3},m:{style:c.e6},mt:{style:c.e6},mr:{style:c.e6},mb:{style:c.e6},ml:{style:c.e6},mx:{style:c.e6},my:{style:c.e6},margin:{style:c.e6},marginTop:{style:c.e6},marginRight:{style:c.e6},marginBottom:{style:c.e6},marginLeft:{style:c.e6},marginX:{style:c.e6},marginY:{style:c.e6},marginInline:{style:c.e6},marginInlineStart:{style:c.e6},marginInlineEnd:{style:c.e6},marginBlock:{style:c.e6},marginBlockStart:{style:c.e6},marginBlockEnd:{style:c.e6},displayPrint:{cssProperty:!1,transform:o=>({"@media print":{display:o}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var ef=ep},9707:function(o,l,u){"use strict";u.d(l,{Z:function(){return extendSxProp}});var c=u(4953),h=u(5387);let splitProps=o=>{let l={systemProps:{},otherProps:{}},u=o?.theme?.unstable_sxConfig??h.Z;
115return Object.keys(o).forEach(c=>{u[c]?l.systemProps[c]=o[c]:l.otherProps[c]=o[c]}),l};function extendSxProp(o){let l;let{sx:u,...h}=o,{systemProps:g,otherProps:y}=splitProps(h);return l=Array.isArray(u)?[g,...u]:"function"==typeof u?(...o)=>{let l=u(...o);return(0,c.P)(l)?{...g,...l}:g}:{...g,...u},{...y,sx:l}}},6523:function(o,l,u){"use strict";var c=u(9182),h=u(2872),g=u(2936),y=u(6622),b=u(1303),_=u(5387);function objectsHaveSameKeys(...o){let l=o.reduce((o,l)=>o.concat(Object.keys(l)),[]),u=new Set(l);return o.every(o=>u.size===Object.keys(o).length)}function callIfFn(o,l){return"function"==typeof o?o(l):o}function unstable_createStyleFunctionSx(){function getThemeValue(o,l,u,h){let b={[o]:l,theme:u},_=h[o];if(!_)return{[o]:l};let{cssProperty:w=o,themeKey:T,transform:I,style:N}=_;if(null==l)return null;if("typography"===T&&"inherit"===l)return{[o]:l};let F=(0,g.DW)(u,T)||{};return N?N(b):(0,y.k9)(b,l,l=>{let u=(0,g.Jq)(F,I,l);return(l===u&&"string"==typeof l&&(u=(0,g.Jq)(F,I,`${o}${"default"===l?"":(0,c.Z)(l)}`,l)),!1===w)?u:{[w]:u}})}function styleFunctionSx(o){let{sx:l,theme:u={},nested:c}=o||{};if(!l)return null;let g=u.unstable_sxConfig??_.Z;function traverse(o){let l=o;if("function"==typeof o)l=o(u);else if("object"!=typeof o)return o;if(!l)return null;let _=(0,y.W8)(u.breakpoints),w=Object.keys(_),T=_;return(Object.keys(l).forEach(o=>{let c=callIfFn(l[o],u);if(null!=c){if("object"==typeof c){if(g[o])T=(0,h.Z)(T,getThemeValue(o,c,u,g));else{let l=(0,y.k9)({theme:u},c,l=>({[o]:l}));objectsHaveSameKeys(l,c)?T[o]=styleFunctionSx({sx:c,theme:u,nested:!0}):T=(0,h.Z)(T,l)}}else T=(0,h.Z)(T,getThemeValue(o,c,u,g))}}),!c&&u.modularCssLayers)?{"@layer sx":(0,b.ar)(u,(0,y.L7)(w,T))}:(0,b.ar)(u,(0,y.L7)(w,T))}return Array.isArray(l)?l.map(traverse):traverse(l)}return styleFunctionSx}let w=unstable_createStyleFunctionSx();w.filterProps=["sx"],l.Z=w},9827:function(o,l,u){"use strict";var c=u(9636);let h=(0,c.ZP)();l.Z=h},5594:function(o,l,u){"use strict";var c=u(8136),h=u(6073);let g=(0,c.Z)();function useTheme(o=g){return(0,h.Z)(o)}l.Z=useTheme},539:function(o,l,u){"use strict";u.d(l,{Z:function(){return getThemeProps}});var c=u(5971);function getThemeProps(o){let{theme:l,name:u,props:h}=o;return l&&l.components&&l.components[u]&&l.components[u].defaultProps?(0,c.Z)(l.components[u].defaultProps,h):h}},9628:function(o,l,u){"use strict";u.d(l,{Z:function(){return useThemeProps}});var c=u(539),h=u(5594);function useThemeProps({props:o,name:l,defaultTheme:u,themeId:g}){let y=(0,h.Z)(u);return g&&(y=y[g]||y),(0,c.Z)({theme:y,name:l,props:o})}},6073:function(o,l,u){"use strict";var c=u(7294),h=u(7685);function isObjectEmpty(o){return 0===Object.keys(o).length}function useTheme(o=null){let l=c.useContext(h.T);return!l||isObjectEmpty(l)?o:l}l.Z=useTheme},7078:function(o,l){"use strict";let u;let defaultGenerator=o=>o,c=(u=defaultGenerator,{configure(o){u=o},generate:o=>u(o),reset(){u=defaultGenerator}});l.Z=c},5364:function(o,l,u){"use strict";u.d(l,{Z:function(){return appendOwnerState_appendOwnerState}});var appendOwnerState_appendOwnerState=function(o,l,u){return void 0===o||"string"==typeof o?l:{...l,ownerState:{...l.ownerState,...u}}}},9182:function(o,l,u){"use strict";u.d(l,{Z:function(){return capitalize}});var c=u(6535);function capitalize(o){if("string"!=typeof o)throw Error((0,c.Z)(7));return o.charAt(0).toUpperCase()+o.slice(1)}},4780:function(o,l,u){"use strict";function composeClasses(o,l,u){let c={};for(let h in o){let g=o[h],y="",b=!0;for(let o=0;o<g.length;o+=1){let c=g[o];c&&(y+=(!0===b?"":" ")+l(c),b=!1,u&&u[c]&&(y+=" "+u[c]))}c[h]=y}return c}u.d(l,{Z:function(){return composeClasses}})},4953:function(o,l,u){"use strict";u.d(l,{P:function(){return isPlainObject},Z:function(){return deepmerge}});var c=u(7294),h=u(8055);function isPlainObject(o){if("object"!=typeof o||null===o)return!1;let l=Object.getPrototypeOf(o);return(null===l||l===Object.prototype||null===Object.getPrototypeOf(l))&&!(Symbol.toStringTag in o)&&!(Symbol.iterator in o)}function deepClone(o){if(c.isValidElement(o)||(0,h.iY)(o)||!isPlainObject(o))return o;let l={};
115return Object.keys(o).forEach(u=>{l[u]=deepClone(o[u])}),l}function deepmerge(o,l,u={clone:!0}){let g=u.clone?{...o}:o;return isPlainObject(o)&&isPlainObject(l)&&Object.keys(l).forEach(y=>{c.isValidElement(l[y])||(0,h.iY)(l[y])?g[y]=l[y]:isPlainObject(l[y])&&Object.prototype.hasOwnProperty.call(o,y)&&isPlainObject(o[y])?g[y]=deepmerge(o[y],l[y],u):u.clone?g[y]=isPlainObject(l[y])?deepClone(l[y]):l[y]:g[y]=l[y]}),g}},9113:function(o,l){"use strict";function extractEventHandlers(o,l=[]){if(void 0===o)return{};let u={};return Object.keys(o).filter(u=>u.match(/^on[A-Z]/)&&"function"==typeof o[u]&&!l.includes(u)).forEach(l=>{u[l]=o[l]}),u}l.Z=extractEventHandlers},6535:function(o,l,u){"use strict";function formatMuiErrorMessage(o,...l){let u=new URL(`https://mui.com/production-error/?code=${o}`);return l.forEach(o=>u.searchParams.append("args[]",o)),`Minified MUI error #${o}; visit ${u} for the full message.`}u.d(l,{Z:function(){return formatMuiErrorMessage}})},4867:function(o,l,u){"use strict";u.d(l,{ZP:function(){return generateUtilityClass}});var c=u(7078);let h={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass(o,l,u="Mui"){let g=h[l];return g?`${u}-${g}`:`${c.Z.generate(o)}-${l}`}},1588:function(o,l,u){"use strict";u.d(l,{Z:function(){return generateUtilityClasses}});var c=u(4867);function generateUtilityClasses(o,l,u="Mui"){let h={};return l.forEach(l=>{h[l]=(0,c.ZP)(o,l,u)}),h}},7907:function(o,l,u){"use strict";u.d(l,{Z:function(){return getReactElementRef}});var c=u(7294);function getReactElementRef(o){return parseInt(c.version,10)>=19?o?.props?.ref||null:o?.ref||null}},9726:function(o,l,u){"use strict";function getScrollbarSize(o=window){let l=o.document.documentElement.clientWidth;return o.innerWidth-l}u.d(l,{Z:function(){return getScrollbarSize}})},64:function(o,l,u){"use strict";function isFocusVisible(o){try{return o.matches(":focus-visible")}catch(o){}return!1}u.d(l,{Z:function(){return isFocusVisible}})},7317:function(o,l,u){"use strict";u.d(l,{Z:function(){return isMuiElement}});var c=u(7294);function isMuiElement(o,l){return c.isValidElement(o)&&-1!==l.indexOf(o.type.muiName??o.type?._payload?.value?.muiName)}},5120:function(o,l,u){"use strict";u.d(l,{Z:function(){return mergeSlotProps_mergeSlotProps}});var c=u(512),h=u(9113),omitEventHandlers_omitEventHandlers=function(o){if(void 0===o)return{};let l={};return Object.keys(o).filter(l=>!(l.match(/^on[A-Z]/)&&"function"==typeof o[l])).forEach(u=>{l[u]=o[u]}),l},mergeSlotProps_mergeSlotProps=function(o){let{getSlotProps:l,additionalProps:u,externalSlotProps:g,externalForwardedProps:y,className:b}=o;if(!l){let o=(0,c.Z)(u?.className,b,y?.className,g?.className),l={...u?.style,...y?.style,...g?.style},h={...u,...y,...g};return o.length>0&&(h.className=o),Object.keys(l).length>0&&(h.style=l),{props:h,internalRef:void 0}}let _=(0,h.Z)({...y,...g}),w=omitEventHandlers_omitEventHandlers(g),T=omitEventHandlers_omitEventHandlers(y),I=l(_),N=(0,c.Z)(I?.className,u?.className,b,y?.className,g?.className),F={...I?.style,...u?.style,...y?.style,...g?.style},B={...I,...u,...T,...w};return N.length>0&&(B.className=N),Object.keys(F).length>0&&(B.style=F),{props:B,internalRef:I.ref}}},2690:function(o,l,u){"use strict";function ownerDocument(o){return o&&o.ownerDocument||document}u.d(l,{Z:function(){return ownerDocument}})},4161:function(o,l,u){"use strict";u.d(l,{Z:function(){return ownerWindow}});var c=u(2690);function ownerWindow(o){let l=(0,c.Z)(o);return l.defaultView||window}},5610:function(o,l){"use strict";function resolveComponentProps(o,l,u){return"function"==typeof o?o(l,u):o}l.Z=resolveComponentProps},5971:function(o,l,u){"use strict";function resolveProps(o,l){let u={...l};for(let c in o)if(Object.prototype.hasOwnProperty.call(o,c)){if("components"===c||"slots"===c)u[c]={...o[c],...u[c]};else if("componentsProps"===c||"slotProps"===c){let h=o[c],g=l[c];if(g){if(h)for(let o in u[c]={...g},h)Object.prototype.hasOwnProperty.call(h,o)&&(u[c][o]=resolveProps(h[o],g[o]));else u[c]=g}else u[c]=h||{}}else void 0===u[c]&&(u[c]=o[c])}return u}u.d(l,{Z:function(){return resolveProps}})},7364:function(o,l,u){"use strict";function setRef(o,l){"function"==typeof o?o(l):o&&(o.current=l)}u.d(l,{Z:function(){return setRef}})},3546:function(o,l,u){"use strict";var c=u(7294);let h="undefined"!=typeof window?c.useLayoutEffect:c.useEffect;l.Z=h},9948:function(o,l,u){"use strict";var c=u(7294),h=u(3546);function useEventCallback(o){let l=c.useRef(o);return(0,h.Z)(()=>{l.current=o}),c.useRef((...o)=>(0,l.current)(...o)).current}l.Z=useEventCallback},3703:function(o,l,u){"use strict";u.d(l,{Z:function(){return useForkRef}});var c=u(7294);function useForkRef(...o){let l=c.useRef(void 0),u=c.useCallback(l=>{let u=o.map(o=>{if(null==o)return null;if("function"==typeof o){let u=o(l);return"function"==typeof u?u:()=>{o(null)}}return o.current=l,()=>{o.current=null}});return()=>{u.forEach(o=>o?.())}},o);return c.useMemo(()=>o.every(o=>null==o)?null:o=>{l.current&&(l.current(),l.current=void 0),null!=o&&(l.current=u(o))},o)}},2996:function(o,l,u){"use strict";u.d(l,{Z:function(){return useId}});var c,h=u(7294);let g=0;function useGlobalId(o){let[l,u]=h.useState(o),c=o||l;return h.useEffect(()=>{null==l&&(g+=1,u(`mui-${g}`))},[l]),c}let y={...c||(c=u.t(h,2))},b=y.useId;function useId(o){if(void 0!==b){let l=b();return o??l}return useGlobalId(o)}},9230:function(o,l,u){"use strict";u.d(l,{Z:function(){return useLazyRef}});var c=u(7294);let h={};function useLazyRef(o,l){let u=c.useRef(h);return u.current===h&&(u.current=o(l)),u}},12:function(o,l,u){"use strict";u.d(l,{Z:function(){return useTimeout}});var c=u(9230),h=u(7294);let g=[];function useOnMount(o){h.useEffect(o,g)}let Timeout=class Timeout{static create(){return new Timeout}currentId=null;start(o,l){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,l()},o)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};
115disposeEffect=()=>this.clear};function useTimeout(){let o=(0,c.Z)(Timeout.create).current;return useOnMount(o.disposeEffect),o}},8055:function(o,l){"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal");/**
116 * @license React
117 * react-is.production.js
118 *
119 * Copyright (c) Meta Platforms, Inc. and affiliates.
120 *
121 * This source code is licensed under the MIT license found in the
122 * LICENSE file in the root directory of this source tree.
123 */var u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),N=(Symbol.for("react.view_transition"),Symbol.for("react.client.reference"));l.iY=function(o){return"string"==typeof o||"function"==typeof o||o===u||o===h||o===c||o===_||o===w||"object"==typeof o&&null!==o&&(o.$$typeof===I||o.$$typeof===T||o.$$typeof===y||o.$$typeof===g||o.$$typeof===b||o.$$typeof===N||void 0!==o.getModuleId)}},1052:function(o){"use strict";/*!
124 * assign-symbols <https://github.com/jonschlinkert/assign-symbols>
125 *
126 * Copyright (c) 2015, Jon Schlinkert.
127 * Licensed under the MIT License.
128 */o.exports=function(o,l){if(null==o)throw TypeError("expected first argument to be an object.");if(void 0===l||"undefined"==typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return o;for(var u=Object.prototype.propertyIsEnumerable,c=Object(o),h=arguments.length,g=0;++g<h;)for(var y=Object(arguments[g]),b=Object.getOwnPropertySymbols(y),_=0;_<b.length;_++){var w=b[_];u.call(y,w)&&(c[w]=y[w])}return c}},8363:function(o,l){"use strict";l.Z=function(o,l){if(o&&l){var u=Array.isArray(l)?l:l.split(",");if(0===u.length)return!0;var c=o.name||"",h=(o.type||"").toLowerCase(),g=h.replace(/\/.*$/,"");return u.some(function(o){var l=o.trim().toLowerCase();return"."===l.charAt(0)?c.toLowerCase().endsWith(l):l.endsWith("/*")?g===l.replace(/\/.*$/,""):h===l})}return!0}},6919:function(o,l,u){"use strict";var c=u(6104);function assign(o,l){for(var u in l)hasOwn(l,u)&&(o[u]=l[u])}function hasOwn(o,l){return Object.prototype.hasOwnProperty.call(o,l)}o.exports=function(o){c(o)||(o={});for(var l=arguments.length,u=1;u<l;u++){var h=arguments[u];c(h)&&assign(o,h)}return o}},6104:function(o){"use strict";/*!
129 * is-extendable <https://github.com/jonschlinkert/is-extendable>
130 *
131 * Copyright (c) 2015, Jon Schlinkert.
132 * Licensed under the MIT License.
133 */o.exports=function(o){return null!=o&&("object"==typeof o||"function"==typeof o)}},2561:function(o){"use strict";/*!
134 * for-in <https://github.com/jonschlinkert/for-in>
135 *
136 * Copyright (c) 2014-2017, Jon Schlinkert.
137 * Released under the MIT License.
138 */o.exports=function(o,l,u){for(var c in o)if(!1===l.call(u,o[c],c,o))break}},3200:function(o){function isObject(o){return null!==o&&("object"==typeof o||"function"==typeof o)}function toString(o){return o?Array.isArray(o)?o.join("."):o:""}/*!
139 * get-value <https://github.com/jonschlinkert/get-value>
140 *
141 * Copyright (c) 2014-2015, Jon Schlinkert.
142 * Licensed under the MIT License.
143 */o.exports=function(o,l,u,c,h){if(!isObject(o)||!l)return o;if(l=toString(l),u&&(l+="."+toString(u)),c&&(l+="."+toString(c)),h&&(l+="."+toString(h)),l in o)return o[l];for(var g=l.split("."),y=g.length,b=-1;o&&++b<y;){for(var _=g[b];"\\"===_[_.length-1];)_=_.slice(0,-1)+"."+g[++b];o=o[_]}return o}},8679:function(o,l,u){"use strict";var c=u(9864),h={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},g={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},b={};function getStatics(o){return c.isMemo(o)?y:b[o.$$typeof]||h}b[c.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},b[c.Memo]=y;var _=Object.defineProperty,w=Object.getOwnPropertyNames,T=Object.getOwnPropertySymbols,I=Object.getOwnPropertyDescriptor,N=Object.getPrototypeOf,F=Object.prototype;function hoistNonReactStatics(o,l,u){if("string"!=typeof l){if(F){var c=N(l);c&&c!==F&&hoistNonReactStatics(o,c,u)}var h=w(l);T&&(h=h.concat(T(l)));for(var y=getStatics(o),b=getStatics(l),B=0;B<h.length;
143++B){var Z=h[B];if(!g[Z]&&!(u&&u[Z])&&!(b&&b[Z])&&!(y&&y[Z])){var W=I(l,Z);try{_(o,Z,W)}catch(o){}}}}return o}o.exports=hoistNonReactStatics},1833:function(o,l,u){"use strict";/*!
144 * is-extendable <https://github.com/jonschlinkert/is-extendable>
145 *
146 * Copyright (c) 2015-2017, Jon Schlinkert.
147 * Released under the MIT License.
148 */var c=u(5299);o.exports=function(o){return c(o)||"function"==typeof o||Array.isArray(o)}},5299:function(o,l,u){"use strict";/*!
149 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
150 *
151 * Copyright (c) 2014-2017, Jon Schlinkert.
152 * Released under the MIT License.
153 */var c=u(7798);function isObjectObject(o){return!0===c(o)&&"[object Object]"===Object.prototype.toString.call(o)}o.exports=function(o){var l,u;return!1!==isObjectObject(o)&&"function"==typeof(l=o.constructor)&&!1!==isObjectObject(u=l.prototype)&&!1!==u.hasOwnProperty("isPrototypeOf")}},7798:function(o){"use strict";/*!
154 * isobject <https://github.com/jonschlinkert/isobject>
155 *
156 * Copyright (c) 2014-2017, Jon Schlinkert.
157 * Released under the MIT License.
158 */o.exports=function(o){return null!=o&&"object"==typeof o&&!1===Array.isArray(o)}},9346:function(o,l,u){"use strict";let c;u.d(l,{Zf:function(){return Leva},so:function(){return folder},M4:function(){return useControls}});var h=u(7294),g=u.t(h,2),y=u(3935);function setRef(o,l){if("function"==typeof o)return o(l);null!=o&&(o.current=l)}function composeRefs(...o){return l=>{let u=!1,c=o.map(o=>{let c=setRef(o,l);return u||"function"!=typeof c||(u=!0),c});if(u)return()=>{for(let l=0;l<c.length;l++){let u=c[l];"function"==typeof u?u():setRef(o[l],null)}}}}function useComposedRefs(...o){return h.useCallback(composeRefs(...o),o)}var b=u(5893),_=Symbol.for("react.lazy"),w=g[" use ".trim().toString()];function isPromiseLike(o){return"object"==typeof o&&null!==o&&"then"in o}function isLazyComponent(o){return null!=o&&"object"==typeof o&&"$$typeof"in o&&o.$$typeof===_&&"_payload"in o&&isPromiseLike(o._payload)}function createSlot(o){let l=createSlotClone(o),u=h.forwardRef((o,u)=>{let{children:c,...g}=o;isLazyComponent(c)&&"function"==typeof w&&(c=w(c._payload));let y=h.Children.toArray(c),_=y.find(isSlottable);if(_){let o=_.props.children,c=y.map(l=>l!==_?l:h.Children.count(o)>1?h.Children.only(null):h.isValidElement(o)?o.props.children:null);return(0,b.jsx)(l,{...g,ref:u,children:h.isValidElement(o)?h.cloneElement(o,void 0,c):null})}return(0,b.jsx)(l,{...g,ref:u,children:c})});return u.displayName=`${o}.Slot`,u}function createSlotClone(o){let l=h.forwardRef((o,l)=>{let{children:u,...c}=o;if(isLazyComponent(u)&&"function"==typeof w&&(u=w(u._payload)),h.isValidElement(u)){let o=getElementRef(u),g=mergeProps(c,u.props);return u.type!==h.Fragment&&(g.ref=l?composeRefs(l,o):o),h.cloneElement(u,g)}return h.Children.count(u)>1?h.Children.only(null):null});return l.displayName=`${o}.SlotClone`,l}var T=Symbol("radix.slottable");function isSlottable(o){return h.isValidElement(o)&&"function"==typeof o.type&&"__radixId"in o.type&&o.type.__radixId===T}function mergeProps(o,l){let u={...l};for(let c in l){let h=o[c],g=l[c],y=/^on[A-Z]/.test(c);y?h&&g?u[c]=(...o)=>{let l=g(...o);return h(...o),l}:h&&(u[c]=h):"style"===c?u[c]={...h,...g}:"className"===c&&(u[c]=[h,g].filter(Boolean).join(" "))}return{...o,...u}}function getElementRef(o){let l=Object.getOwnPropertyDescriptor(o.props,"ref")?.get,u=l&&"isReactWarning"in l&&l.isReactWarning;return u?o.ref:(u=(l=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?o.props.ref:o.props.ref||o.ref}var I=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((o,l)=>{let u=createSlot(`Primitive.${l}`),c=h.forwardRef((o,c)=>{let{asChild:h,...g}=o,y=h?u:l;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,b.jsx)(y,{...g,ref:c})});return c.displayName=`Primitive.${l}`,{...o,[l]:c}},{}),N=globalThis?.document?h.useLayoutEffect:()=>{},F=h.forwardRef((o,l)=>{let{container:u,...c}=o,[g,_]=h.useState(!1);N(()=>_(!0),[]);let w=u||g&&globalThis?.document?.body;return w?y.createPortal((0,b.jsx)(I.div,{...c,ref:l}),w):null});F.displayName="Portal";var B=Object.prototype.hasOwnProperty;function dequal(o,l){var u,c;if(o===l)return!0;
158if(o&&l&&(u=o.constructor)===l.constructor){if(u===Date)return o.getTime()===l.getTime();if(u===RegExp)return o.toString()===l.toString();if(u===Array){if((c=o.length)===l.length)for(;c--&&dequal(o[c],l[c]););return -1===c}if(!u||"object"==typeof o){for(u in c=0,o)if(B.call(o,u)&&++c&&!B.call(l,u)||!(u in l)||!dequal(o[u],l[u]))return!1;return Object.keys(l).length===c}}return o!=o&&l!=l}function shallow(o,l){if(Object.is(o,l))return!0;if("object"!=typeof o||null===o||"object"!=typeof l||null===l)return!1;let u=Object.keys(o);if(u.length!==Object.keys(l).length)return!1;for(let c=0;c<u.length;c++)if(!Object.prototype.hasOwnProperty.call(l,u[c])||!Object.is(o[u[c]],l[u[c]]))return!1;return!0}var Rule=function(o,l,u,c){this.name=o,this.fn=l,this.args=u,this.modifiers=c};function pickFn(o,l){return void 0===l&&(l="simple"),"object"==typeof o?o[l]:o}function testAux(o,l,u){if(!o.length)return pickFn(l);var c=o.shift(),h=testAux(o,l,u);return c.perform(h,u)}function testAsyncAux(o,l,u){if(!o.length)return function(o){return Promise.resolve(pickFn(l,"async")(o))};var c=o.shift(),h=testAsyncAux(o,l,u);return c.performAsync(h,u)}Rule.prototype._test=function(o){var l=this.fn;try{testAux(this.modifiers.slice(),l,this)(o)}catch(o){l=function(){return!1}}try{return testAux(this.modifiers.slice(),l,this)(o)}catch(o){return!1}},Rule.prototype._check=function(o){try{testAux(this.modifiers.slice(),this.fn,this)(o)}catch(o){if(testAux(this.modifiers.slice(),function(o){return o},this)(!1))return}if(!testAux(this.modifiers.slice(),this.fn,this)(o))throw null},Rule.prototype._testAsync=function(o){var l=this;return new Promise(function(u,c){testAsyncAux(l.modifiers.slice(),l.fn,l)(o).then(function(l){l?u(o):c(null)}).catch(function(o){return c(o)})})};var Modifier=function(o,l,u){this.name=o,this.perform=l,this.performAsync=u},Z=function(o){function ValidationError(l,u,c,h){for(var g=[],y=arguments.length-4;y-- >0;)g[y]=arguments[y+4];o.call(this,g),o.captureStackTrace&&o.captureStackTrace(this,ValidationError),this.rule=l,this.value=u,this.cause=c,this.target=h}return o&&(ValidationError.__proto__=o),ValidationError.prototype=Object.create(o&&o.prototype),ValidationError.prototype.constructor=ValidationError,ValidationError}(Error),Context=function(o,l){void 0===o&&(o=[]),void 0===l&&(l=[]),this.chain=o,this.nextRuleModifiers=l};function executeAsyncRules(o,l,u,c){if(l.length){var h=l.shift();h._testAsync(o).then(function(){executeAsyncRules(o,l,u,c)},function(l){c(new Z(h,o,l))})}else u(o)}Context.prototype._applyRule=function(o,l){var u=this;return function(){for(var c=[],h=arguments.length;h--;)c[h]=arguments[h];return u.chain.push(new Rule(l,o.apply(u,c),c,u.nextRuleModifiers)),u.nextRuleModifiers=[],u}},Context.prototype._applyModifier=function(o,l){return this.nextRuleModifiers.push(new Modifier(l,o.simple,o.async)),this},Context.prototype._clone=function(){return new Context(this.chain.slice(),this.nextRuleModifiers.slice())},Context.prototype.test=function(o){return this.chain.every(function(l){return l._test(o)})},Context.prototype.testAll=function(o){var l=[];return this.chain.forEach(function(u){try{u._check(o)}catch(c){l.push(new Z(u,o,c))}}),l},Context.prototype.check=function(o){this.chain.forEach(function(l){try{l._check(o)}catch(u){throw new Z(l,o,u)}})},Context.prototype.testAsync=function(o){var l=this;return new Promise(function(u,c){executeAsyncRules(o,l.chain.slice(),u,c)})};var consideredEmpty=function(o,l){return!!l&&"string"==typeof o&&0===o.trim().length||null==o};function optional(o,l){return void 0===l&&(l=!1),{simple:function(u){return consideredEmpty(u,l)||void 0===o.check(u)},async:function(u){return consideredEmpty(u,l)||o.testAsync(u)}}}function v8n(){return"undefined"!=typeof Proxy?proxyContext(new Context):proxylessContext(new Context)}var W={};function proxyContext(o){return new Proxy(o,{get:function(l,u){if(u in l)return l[u];var c=proxyContext(o._clone());return u in H?c._applyModifier(H[u],u):u in W?c._applyRule(W[u],u):u in U?c._applyRule(U[u],u):void 0}})}function proxylessContext(o){var addRuleSet=function(o,l){return Object.keys(o).forEac
158h(function(u){l[u]=function(){for(var c=[],h=arguments.length;h--;)c[h]=arguments[h];return proxylessContext(l._clone())._applyRule(o[u],u).apply(void 0,c)}}),l},l=addRuleSet(U,o),u=addRuleSet(W,l);return Object.keys(H).forEach(function(o){Object.defineProperty(u,o,{get:function(){return proxylessContext(u._clone())._applyModifier(H[o],o)}})}),u}v8n.extend=function(o){Object.assign(W,o)},v8n.clearCustomRules=function(){W={}};var H={not:{simple:function(o){return function(l){return!o(l)}},async:function(o){return function(l){return Promise.resolve(o(l)).then(function(o){return!o}).catch(function(){return!0})}}},some:{simple:function(o){return function(l){return split(l).some(function(l){try{return o(l)}catch(o){return!1}})}},async:function(o){return function(l){return Promise.all(split(l).map(function(l){try{return o(l).catch(function(){return!1})}catch(o){return!1}})).then(function(o){return o.some(Boolean)})}}},every:{simple:function(o){return function(l){return!1!==l&&split(l).every(o)}},async:function(o){return function(l){return Promise.all(split(l).map(o)).then(function(o){return o.every(Boolean)})}}},strict:{simple:function(o,l){return function(u){return isSchemaRule(l)&&u&&"object"==typeof u?Object.keys(l.args[0]).length===Object.keys(u).length&&o(u):o(u)}},async:function(o,l){return function(u){return Promise.resolve(o(u)).then(function(o){return isSchemaRule(l)&&u&&"object"==typeof u?Object.keys(l.args[0]).length===Object.keys(u).length&&o:o}).catch(function(){return!1})}}}};function isSchemaRule(o){return o&&"schema"===o.name&&o.args.length>0&&"object"==typeof o.args[0]}function split(o){return"string"==typeof o?o.split(""):o}var U={equal:function(o){return function(l){return l==o}},exact:function(o){return function(l){return l===o}},number:function(o){return void 0===o&&(o=!0),function(l){return"number"==typeof l&&(o||isFinite(l))}},integer:function(){return function(o){return(Number.isInteger||isIntegerPolyfill)(o)}},numeric:function(){return function(o){return!isNaN(parseFloat(o))&&isFinite(o)}},string:function(){return testType("string")},boolean:function(){return testType("boolean")},undefined:function(){return testType("undefined")},null:function(){return testType("null")},array:function(){return testType("array")},object:function(){return testType("object")},instanceOf:function(o){return function(l){return l instanceof o}},pattern:function(o){return function(l){return o.test(l)}},lowercase:function(){return function(o){return"boolean"==typeof o||o===o.toLowerCase()&&""!==o.trim()}},uppercase:function(){return function(o){return o===o.toUpperCase()&&""!==o.trim()}},vowel:function(){return function(o){return/^[aeiou]+$/i.test(o)}},consonant:function(){return function(o){return/^(?=[^aeiou])([a-z]+)$/i.test(o)}},first:function(o){return function(l){return l[0]==o}},last:function(o){return function(l){return l[l.length-1]==o}},empty:function(){return function(o){return 0===o.length}},length:function(o,l){return function(u){return u.length>=o&&u.length<=(l||o)}},minLength:function(o){return function(l){return l.length>=o}},maxLength:function(o){return function(l){return l.length<=o}},negative:function(){return function(o){return o<0}},positive:function(){return function(o){return o>=0}},between:function(o,l){return function(u){return u>=o&&u<=l}},range:function(o,l){return function(u){return u>=o&&u<=l}},lessThan:function(o){return function(l){return l<o}},lessThanOrEqual:function(o){return function(l){return l<=o}},greaterThan:function(o){return function(l){return l>o}},greaterThanOrEqual:function(o){return function(l){return l>=o}},even:function(){return function(o){return o%2==0}},odd:function(){return function(o){return o%2!=0}},includes:function(o){return function(l){return~l.indexOf(o)}},schema:function(o){return testSchema(o)},passesAnyOf:function(){for(var o=[],l=arguments.length;l--;)o[l]=arguments[l];return function(l){return o.some(function(o){return o.test(l)})}},optional:optional};function testType(o){return function(l){return Array.isArray(l)&&"array"===o||null===l&&"null"===o||typeof l===o}}function isIntegerPolyfill(o){return"number"==typeof o&&isFinite(o)&&Math.floor(o)===o}function testSchema(o){return{simple:function(l){var u=[];
158if(Object.keys(o).forEach(function(c){var h=o[c];try{h.check((l||{})[c])}catch(o){o.target=c,u.push(o)}}),u.length>0)throw u;return!0},async:function(l){var u=[];return Promise.all(Object.keys(o).map(function(c){return o[c].testAsync((l||{})[c]).catch(function(o){o.target=c,u.push(o)})})).then(function(){if(u.length>0)throw u;return!0})}}}var K=v8n,q="colors",G="sizes",Q="space",Y={gap:Q,gridGap:Q,columnGap:Q,gridColumnGap:Q,rowGap:Q,gridRowGap:Q,inset:Q,insetBlock:Q,insetBlockEnd:Q,insetBlockStart:Q,insetInline:Q,insetInlineEnd:Q,insetInlineStart:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,marginBlock:Q,marginBlockEnd:Q,marginBlockStart:Q,marginInline:Q,marginInlineEnd:Q,marginInlineStart:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,paddingBlock:Q,paddingBlockEnd:Q,paddingBlockStart:Q,paddingInline:Q,paddingInlineEnd:Q,paddingInlineStart:Q,top:Q,right:Q,bottom:Q,left:Q,scrollMargin:Q,scrollMarginTop:Q,scrollMarginRight:Q,scrollMarginBottom:Q,scrollMarginLeft:Q,scrollMarginX:Q,scrollMarginY:Q,scrollMarginBlock:Q,scrollMarginBlockEnd:Q,scrollMarginBlockStart:Q,scrollMarginInline:Q,scrollMarginInlineEnd:Q,scrollMarginInlineStart:Q,scrollPadding:Q,scrollPaddingTop:Q,scrollPaddingRight:Q,scrollPaddingBottom:Q,scrollPaddingLeft:Q,scrollPaddingX:Q,scrollPaddingY:Q,scrollPaddingBlock:Q,scrollPaddingBlockEnd:Q,scrollPaddingBlockStart:Q,scrollPaddingInline:Q,scrollPaddingInlineEnd:Q,scrollPaddingInlineStart:Q,fontSize:"fontSizes",background:q,backgroundColor:q,backgroundImage:q,borderImage:q,border:q,borderBlock:q,borderBlockEnd:q,borderBlockStart:q,borderBottom:q,borderBottomColor:q,borderColor:q,borderInline:q,borderInlineEnd:q,borderInlineStart:q,borderLeft:q,borderLeftColor:q,borderRight:q,borderRightColor:q,borderTop:q,borderTopColor:q,caretColor:q,color:q,columnRuleColor:q,fill:q,outline:q,outlineColor:q,stroke:q,textDecorationColor:q,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:G,minBlockSize:G,maxBlockSize:G,inlineSize:G,minInlineSize:G,maxInlineSize:G,width:G,minWidth:G,maxWidth:G,height:G,minHeight:G,maxHeight:G,flexBasis:G,gridTemplateColumns:G,gridTemplateRows:G,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},i=(o,l)=>"function"==typeof l?{"()":Function.prototype.toString.call(l)}:l,dist_o=()=>{let o=Object.create(null);return(l,u,...c)=>{let h=JSON.stringify(l,i);return h in o?o[h]:o[h]=u(l,...c)}},X=Symbol.for("sxs.internal"),s=(o,l)=>Object.defineProperties(o,Object.getOwnPropertyDescriptors(l)),dist_a=o=>{for(let l in o)return!0;return!1},{hasOwnProperty:ee}=Object.prototype,d=o=>o.includes("-")?o:o.replace(/[A-Z]/g,o=>"-"+o.toLowerCase()),et=/\s+(?![^()]*\))/,p=o=>l=>o(..."string"==typeof l?String(l).split(et):[l]),er={appearance:o=>({WebkitAppearance:o,appearance:o}),backfaceVisibility:o=>({WebkitBackfaceVisibility:o,backfaceVisibility:o}),backdropFilter:o=>({WebkitBackdropFilter:o,backdropFilter:o}),backgroundClip:o=>({WebkitBackgroundClip:o,backgroundClip:o}),boxDecorationBreak:o=>({WebkitBoxDecorationBreak:o,boxDecorationBreak:o}),clipPath:o=>({WebkitClipPath:o,clipPath:o}),content:o=>({content:o.includes('"')||o.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(o)?o:`"${o}"`}),hyphens:o=>({WebkitHyphens:o,hyphens:o}),maskImage:o=>({WebkitMaskImage:o,maskImage:o}),maskSize:o=>({WebkitMaskSize:o,maskSize:o}),tabSize:o=>({MozTabSize:o,tabSize:o}),textSizeAdjust:o=>({WebkitTextSizeAdjust:o,textSizeAdjust:o}),userSelect:o=>({WebkitUserSelect:o,userSelect:o}),marginBlock:p((o,l)=>({marginBlockStart:o,marginBlockEnd:l||o})),marginInline:p((o,l)=>({marginInlineStart:o,marginInlineEnd:l||o})),maxSize:p((o,l)=>({maxBlockSize:o,maxInlineSize:l||o})),minSize:p((o,l)=>({minBlockSize:o,minInlineSize:l||o})),paddingBlock:p((o,l)=>({paddingBlockStart:o,paddingBlockEnd:l||o})),paddingInline:p((o,l)=>({paddingInlineStart:o,paddingInlineEnd:l||o}))},en=/([\d.]+)([^]*)/,f=(o,l)=>o.length?o.reduce((o,u)=>(o.push(...l.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(u)&&/&.*&/.test(o)?`:is(${u})`:u):u+" "+o)),o),[]):l,m=(o,l)=>o in ei&&"string"==typeof l?l.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\
158w-][^]*)?)$/,(l,u,c,h)=>u+("stretch"===c?`-moz-available${h};${d(o)}:${u}-webkit-fill-available`:`-moz-fit-content${h};${d(o)}:${u}fit-content`)+h):String(l),ei={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},S=o=>o?o+"-":"",k=(o,l,u)=>o.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(o,c,h,g,y)=>"$"==g==!!h?o:(c||"--"==g?"calc(":"")+"var(--"+("$"===g?S(l)+(y.includes("$")?"":S(u))+y.replace(/\$/g,"-"):y)+")"+(c||"--"==g?"*"+(c||"")+(h||"1")+")":"")),eo=/\s*,\s*(?![^()]*\))/,ea=Object.prototype.toString,$=(o,l,u,c,h)=>{let g,y,b;let a=(o,l,u)=>{let _,w;let p=o=>{var T;for(_ in o){let I=64===_.charCodeAt(0),N=I&&Array.isArray(o[_])?o[_]:[o[_]];for(w of N){let o=/[A-Z]/.test(T=_)?T:T.replace(/-[^]/g,o=>o[1].toUpperCase()),N="object"==typeof w&&w&&w.toString===ea&&(!c.utils[o]||!l.length);if(o in c.utils&&!N){let l=c.utils[o];if(l!==y){y=l,p(l(w)),y=null;continue}}else if(o in er){let l=er[o];if(l!==b){b=l,p(l(w)),b=null;continue}}if(I&&(_=(_.slice(1) in c.media?"@media "+c.media[_.slice(1)]:_).replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(o,l,u,c,h,g)=>{let y=en.test(l),b=.0625*(y?-1:1),[_,w]=y?[c,l]:[l,c];return"("+("="===u[0]?"":">"===u[0]===y?"max-":"min-")+_+":"+("="!==u[0]&&1===u.length?w.replace(en,(o,l,c)=>Number(l)+b*(">"===u?1:-1)+c):w)+(h?") and ("+(">"===h[0]?"min-":"max-")+_+":"+(1===h.length?g.replace(en,(o,l,u)=>Number(l)+b*(">"===h?-1:1)+u):g):"")+")"})),N){let o=I?u.concat(_):[...u],c=I?[...l]:f(l,_.split(eo));void 0!==g&&h(x(...g)),g=void 0,a(w,c,o)}else void 0===g&&(g=[[],l,u]),_=I||36!==_.charCodeAt(0)?_:`--${S(c.prefix)}${_.slice(1).replace(/\$/g,"-")}`,w=N?w:"number"==typeof w?w&&o in es?String(w)+"px":String(w):k(m(o,null==w?"":w),c.prefix,c.themeMap[o]),g[0].push(`${I?`${_} `:`${d(_)}:`}${w}`)}}};p(o),void 0!==g&&h(x(...g)),g=void 0};a(o,l,u)},x=(o,l,u)=>`${u.map(o=>`${o}{`).join("")}${l.length?`${l.join(",")}{`:""}${o.join(";")}${l.length?"}":""}${Array(u.length?u.length+1:0).join("}")}`,es={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},R=o=>String.fromCharCode(o+(o>25?39:97)),z=o=>(o=>{let l,u="";for(l=Math.abs(o);l>52;l=l/52|0)u=R(l%52)+u;return R(l%52)+u})(((o,l)=>{let u=l.length;for(;u;)o=33*o^l.charCodeAt(--u);return o}
158)(5381,JSON.stringify(o))>>>0),el=["themed","global","styled","onevar","resonevar","allvar","inline"],j=o=>{if(o.href&&!o.href.startsWith(location.origin))return!1;try{return!!o.cssRules}catch(o){return!1}},E=o=>{let l;let r=()=>{let{cssRules:o}=l.sheet;return[].map.call(o,(u,c)=>{let{cssText:h}=u,g="";if(h.startsWith("--sxs"))return"";if(o[c-1]&&(g=o[c-1].cssText).startsWith("--sxs")){if(!u.cssRules.length)return"";for(let o in l.rules)if(l.rules[o].group===u)return`--sxs{--sxs:${[...l.rules[o].cache].join(" ")}}${h}`;return u.cssRules.length?`${g}${h}`:""}return h}).join("")},n=()=>{if(l){let{rules:o,sheet:u}=l;if(!u.deleteRule){for(;3===Object(Object(u.cssRules)[0]).type;)u.cssRules.splice(0,1);u.cssRules=[]}for(let l in o)delete o[l]}let u=Object(o).styleSheets||[];for(let o of u)if(j(o)){for(let u=0,c=o.cssRules;c[u];++u){let h=Object(c[u]);if(1!==h.type)continue;let g=Object(c[u+1]);if(4!==g.type)continue;++u;let{cssText:y}=h;if(!y.startsWith("--sxs"))continue;let b=y.slice(14,-3).trim().split(/\s+/),_=el[b[0]];_&&(l||(l={sheet:o,reset:n,rules:{},toString:r}),l.rules[_]={group:g,index:u,cache:new Set(b)})}if(l)break}if(!l){let i=(o,l)=>({type:l,cssRules:[],insertRule(o,l){this.cssRules.splice(l,0,i(o,{import:3,undefined:1}[(o.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===o?`@media{${[].map.call(this.cssRules,o=>o.cssText).join("")}}`:o}});l={sheet:o?(o.head||o).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:n,toString:r}}let{sheet:c,rules:h}=l;for(let o=el.length-1;o>=0;--o){let l=el[o];if(!h[l]){let u=el[o+1],g=h[u]?h[u].index:c.cssRules.length;c.insertRule("@media{}",g),c.insertRule(`--sxs{--sxs:${o}}`,g),h[l]={group:c.cssRules[g+1],index:g,cache:new Set([o])}}v(h[l])}};return n(),l},v=o=>{let l=o.group,u=l.cssRules.length;o.apply=o=>{try{l.insertRule(o,u),++u}catch(o){}}},eu=Symbol(),ec=dist_o(),M=(o,l)=>ec(o,()=>(...u)=>{let c={type:null,composers:new Set};for(let l of u)if(null!=l){if(l[X])for(let o of(null==c.type&&(c.type=l[X].type),l[X].composers))c.composers.add(o);else l.constructor!==Object||l.$$typeof?null==c.type&&(c.type=l):c.composers.add(C(l,o))}return null==c.type&&(c.type="span"),c.composers.size||c.composers.add(["PJLV",{},[],[],{},[]]),P(o,c,l)}),C=({variants:o,compoundVariants:l,defaultVariants:u,...c},h)=>{let g=`${S(h.prefix)}c-${z(c)}`,y=[],b=[],_=Object.create(null),w=[];for(let o in u)_[o]=String(u[o]);if("object"==typeof o&&o)for(let l in o){ee.call(_,l)||(_[l]="undefined");let u=o[l];for(let o in u){let c={[l]:String(o)};"undefined"===String(o)&&w.push(l);let h=u[o],g=[c,h,!dist_a(h)];y.push(g)}}if("object"==typeof l&&l)for(let o of l){let{css:l,...u}=o;for(let o in l="object"==typeof l&&l||{},u)u[o]=String(u[o]);let c=[u,l,!dist_a(l)];b.push(c)}return[g,c,y,b,_,w]},P=(o,l,u)=>{let[c,h,g,y]=L(l.composers),b="function"==typeof l.type||l.type.$$typeof?(o=>{function t(){for(let l=0;l<t[eu].length;l++){let[u,c]=t[eu][l];o.rules[u].apply(c)}return t[eu]=[],null}return t[eu]=[],t.rules={},el.forEach(o=>t.rules[o]={apply:l=>t[eu].push([o,l])}),t})(u):null,_=(b||u).rules,w=`.${c}${h.length>1?`:where(.${h.slice(1).join(".")})`:""}`,p=T=>{T="object"==typeof T&&T||ed;let{css:I,...N}=T,F={};for(let o in g)if(delete N[o],o in T){let l=T[o];"object"==typeof l&&l?F[o]={"@initial":g[o],...l}:(l=String(l),F[o]="undefined"!==l||y.has(o)?l:g[o])}else F[o]=g[o];let B=new Set([...h]);for(let[c,h,g,y]of l.composers){u.rules.styled.cache.has(c)||(u.rules.styled.cache.add(c),$(h,[`.${c}`],[],o,o=>{_.styled.apply(o)}));let l=O(g,F,o.media),b=O(y,F,o.media,!0);for(let h of l)if(void 0!==h)for(let[l,g,y]of h){let h=`${c}-${z(g)}-${l}`;B.add(h);let b=(y?u.rules.resonevar:u.rules.onevar).cache,w=y?_.resonevar:_.onevar;b.has(h)||(b.add(h),$(g,[`.${h}`],[],o,o=>{w.apply(o)}))}for(let l of b)if(void 0!==l)for(let[h,g]of l){let l=`${c}-${z(g)}-${h}`;B.add(l),u.rules.allvar.cache.has(l)||(u.rules.allvar.cache.add(l),$(g,[`.${l}`],[],o,o=>{_.allvar.apply(o)}))}}if("object"==typeof I&&I){let l=`${c}-i${z(I)}-css`;B.add(l),u.rules.inline.cache.has(l)||(u.rules.inline.cache.add(l),$(I,[`.${l}`],[],o,o=>{_.inline.apply(o)}))}for(let o of String(T.className||"").trim().split(/\s+/))o&&B.add(o);let Z=N.className=[...B].join(" ");return{type:l.type,className:Z,selector:w,props:N,toString:()=>Z,deferredInjector:b}};return s(p,{className:c,selector:w,[X]:l,toString:()=>(u.rules.styled.cache.has(c)||p(),c)})},L=o=>{let l="",u=[],c={},h=[];for(let[g,,,,y,b]of o)for(let o in""===l&&(l=g),u.push(g),h.push(...b),y){let l=y[o];(void 0===c[o]||"undefined"!==l||b.includes(l))&&(c[o]=l)}return[l,u,c,new Set(h)]},O=(o,l,u,c)=>{let h=[];t:for(let[g,y,b]of o){if(b)continue;let o,_=0,w=!1;for(o in g){let c=g[o],h=l[o];if(h!==c){if("object"!=typeof h||!h)continue t;{let o,l,g=0;for(let y in h){if(c===String(h[y])){if("@initial"!==y){let o=y.slice(1);(l=l||[]).push(o in u?u[o]:y.replace(/^@media ?/,"")),w=!0}_+=g,o=!0}++g}
158if(l&&l.length&&(y={["@media "+l.join(", ")]:y}),!o)continue t}}}(h[_]=h[_]||[]).push([c?"cv":`${o}-${g[o]}`,y,w])}return h},ed={},ep=dist_o(),D=(o,l)=>ep(o,()=>(...u)=>{let n=()=>{for(let c of u){let u=z(c="object"==typeof c&&c||{});if(!l.rules.global.cache.has(u)){if(l.rules.global.cache.add(u),"@import"in c){let o=[].indexOf.call(l.sheet.cssRules,l.rules.themed.group)-1;for(let u of[].concat(c["@import"]))u=u.includes('"')||u.includes("'")?u:`"${u}"`,l.sheet.insertRule(`@import ${u};`,o++);delete c["@import"]}$(c,[],[],o,o=>{l.rules.global.apply(o)})}}return""};return s(n,{toString:n})}),ef=dist_o(),V=(o,l)=>ef(o,()=>u=>{let c=`${S(o.prefix)}k-${z(u)}`,i=()=>{if(!l.rules.global.cache.has(c)){l.rules.global.cache.add(c);let h=[];$(u,[],[],o,o=>h.push(o));let g=`@keyframes ${c}{${h.join("")}}`;l.rules.global.apply(g)}return c};return s(i,{get name(){return i()},toString:i})}),eh=class{constructor(o,l,u,c){this.token=null==o?"":String(o),this.value=null==l?"":String(l),this.scale=null==u?"":String(u),this.prefix=null==c?"":String(c)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+S(this.prefix)+S(this.scale)+this.token}toString(){return this.computedValue}},eg=dist_o(),J=(o,l)=>eg(o,()=>(u,c)=>{c="object"==typeof u&&u||Object(c);let h=`.${u=(u="string"==typeof u?u:"")||`${S(o.prefix)}t-${z(c)}`}`,g={},y=[];for(let l in c)for(let u in g[l]={},c[l]){let h=`--${S(o.prefix)}${l}-${u}`,b=k(String(c[l][u]),o.prefix,l);g[l][u]=new eh(u,b,l,o.prefix),y.push(`${h}:${b}`)}let s=()=>{if(y.length&&!l.rules.themed.cache.has(u)){l.rules.themed.cache.add(u);let h=`${c===o.theme?":root,":""}.${u}{${y.join(";")}}`;l.rules.themed.apply(h)}return u};return{...g,get className(){return s()},selector:h,toString:s}}),em=dist_o(),ey=dist_o();function clamp(o,l,u){return Math.max(l,Math.min(o,u))}let ev={toVector:(o,l)=>(void 0===o&&(o=l),Array.isArray(o)?o:[o,o]),add:(o,l)=>[o[0]+l[0],o[1]+l[1]],sub:(o,l)=>[o[0]-l[0],o[1]-l[1]],addTo(o,l){o[0]+=l[0],o[1]+=l[1]},subTo(o,l){o[0]-=l[0],o[1]-=l[1]}};function rubberband(o,l,u){return 0===l||Math.abs(l)===1/0?Math.pow(o,5*u):o*l*u/(l+u*o)}function rubberbandIfOutOfBounds(o,l,u,c=.15){return 0===c?clamp(o,l,u):o<l?-rubberband(l-o,u-l,c)+l:o>u?+rubberband(o-u,u-l,c)+u:o}function computeRubberband(o,[l,u],[c,h]){let[[g,y],[b,_]]=o;return[rubberbandIfOutOfBounds(l,g,y,c),rubberbandIfOutOfBounds(u,b,_,h)]}function _toPrimitive(o,l){if("object"!=typeof o||null===o)return o;var u=o[Symbol.toPrimitive];if(void 0!==u){var c=u.call(o,l||"default");if("object"!=typeof c)return c;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===l?String:Number)(o)}function _toPropertyKey(o){var l=_toPrimitive(o,"string");return"symbol"==typeof l?l:String(l)}function _defineProperty(o,l,u){return(l=_toPropertyKey(l))in o?Object.defineProperty(o,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[l]=u,o}function ownKeys(o,l){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);l&&(c=c.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),u.push.apply(u,c)}return u}function actions_fe213e88_esm_objectSpread2(o){for(var l=1;l<arguments.length;l++){var u=null!=arguments[l]?arguments[l]:{};l%2?ownKeys(Object(u),!0).forEach(function(l){_defineProperty(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}let eb={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function capitalize(o){return o?o[0].toUpperCase()+o.slice(1):""}let e_=["enter","leave"];function hasCapture(o=!1,l){return o&&!e_.includes(l)}function toHandlerProp(o,l="",u=!1){let c=eb[o],h=c&&c[l]||l;return"on"+capitalize(o)+capitalize(h)+(hasCapture(u,h)?"Capture":"")}let eS=["gotpointercapture","lostpointercapture"];function parseProp(o){let l=o.substring(2).toLowerCase(),u=!!~l.indexOf("passive");u&&(l=l.replace("passive",""));let c=eS.includes(l)?"capturecapture":"capture",h=!!~l.indexOf(c);return h&&(l=l.replace("capture","")),{device:l,capture:h,passive:u}}function toDomEventType(o,l=""){let u=eb[o],c=u&&u[l]||l;return o+c}function isTouch(o){return"touches"in o}function getPointerType(o){return isTouch(o)?"touch":"pointerType"in o?o.pointerType:"mouse"}function getCurrentTargetTouchList(o){return Array.from(o.touches).filter(l=>{var u,c;return l.target===o.currentTarget||(null===(u=o.currentTarget)||void 0===u||null===(c=u.contains)||void 0===c?void 0:c.call(u,l.target))})}function getTouchList(o){return"touchend"===o.type||"touchcancel"===o.type?o.changedTouches:o.targetTouches}function getValueEvent(o){return isTouch(o)?getTouchList(o)[0]:o}function touchIds(o){return getCurrentTargetTouchList(o).map(o=>o.identifier)}function pointerId(o){let l=getValueEvent(o);return isTouch(o)?l.identifier:l.pointerId}function pointerValues(o){let l=getValueEvent(o);return[l.clientX,l.clientY]}function getEventDetails(o){let l={};if("buttons"in o&&(l.buttons=o.buttons),"shiftKey"in o){let{shiftKey:u,altKey:c,metaKey:h,ctrlKey:g}=o;Object.assign(l,{shiftKey:u,altKey:c,metaKey:h,ctrlKey:g})}return l}function call(o,...l){return"function"==typeof o?o(...l):o}function noop(){}function chain(...o){return 0===o.length?noop:1===o.length?o[0]:function(){let l;for(let u of o)l=u.apply(this,arguments)||l;return l}}function assignDefault(o,l){return Object.assign({},l,o||{})}let Engine=class Engine{constructor(o,l,u){this.ctrl=o,this.args=l,this.key=u,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}
158get state(){return this.ctrl.state[this.key]}set state(o){this.ctrl.state[this.key]=o}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){let{state:o,shared:l,ingKey:u,args:c}=this;l[u]=o._active=o.active=o._blocked=o._force=!1,o._step=[!1,!1],o.intentional=!1,o._movement=[0,0],o._distance=[0,0],o._direction=[0,0],o._delta=[0,0],o._bounds=[[-1/0,1/0],[-1/0,1/0]],o.args=c,o.axis=void 0,o.memo=void 0,o.elapsedTime=o.timeDelta=0,o.direction=[0,0],o.distance=[0,0],o.overflow=[0,0],o._movementBound=[!1,!1],o.velocity=[0,0],o.movement=[0,0],o.delta=[0,0],o.timeStamp=0}start(o){let l=this.state,u=this.config;l._active||(this.reset(),this.computeInitial(),l._active=!0,l.target=o.target,l.currentTarget=o.currentTarget,l.lastOffset=u.from?call(u.from,l):l.offset,l.offset=l.lastOffset,l.startTime=l.timeStamp=o.timeStamp)}computeValues(o){let l=this.state;l._values=o,l.values=this.config.transform(o)}computeInitial(){let o=this.state;o._initial=o._values,o.initial=o.values}compute(o){let{state:l,config:u,shared:c}=this;l.args=this.args;let h=0;if(o&&(l.event=o,u.preventDefault&&o.cancelable&&l.event.preventDefault(),l.type=o.type,c.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,c.locked=!!document.pointerLockElement,Object.assign(c,getEventDetails(o)),c.down=c.pressed=c.buttons%2==1||c.touches>0,h=o.timeStamp-l.timeStamp,l.timeStamp=o.timeStamp,l.elapsedTime=l.timeStamp-l.startTime),l._active){let o=l._delta.map(Math.abs);ev.addTo(l._distance,o)}this.axisIntent&&this.axisIntent(o);let[g,y]=l._movement,[b,_]=u.threshold,{_step:w,values:T}=l;if(u.hasCustomTransform?(!1===w[0]&&(w[0]=Math.abs(g)>=b&&T[0]),!1===w[1]&&(w[1]=Math.abs(y)>=_&&T[1])):(!1===w[0]&&(w[0]=Math.abs(g)>=b&&Math.sign(g)*b),!1===w[1]&&(w[1]=Math.abs(y)>=_&&Math.sign(y)*_)),l.intentional=!1!==w[0]||!1!==w[1],!l.intentional)return;let I=[0,0];if(u.hasCustomTransform){let[o,l]=T;I[0]=!1!==w[0]?o-w[0]:0,I[1]=!1!==w[1]?l-w[1]:0}else I[0]=!1!==w[0]?g-w[0]:0,I[1]=!1!==w[1]?y-w[1]:0;this.restrictToAxis&&!l._blocked&&this.restrictToAxis(I);let N=l.offset,F=l._active&&!l._blocked||l.active;F&&(l.first=l._active&&!l.active,l.last=!l._active&&l.active,l.active=c[this.ingKey]=l._active,o&&(l.first&&("bounds"in u&&(l._bounds=call(u.bounds,l)),this.setup&&this.setup()),l.movement=I,this.computeOffset()));let[B,Z]=l.offset,[[W,H],[U,K]]=l._bounds;l.overflow=[B<W?-1:B>H?1:0,Z<U?-1:Z>K?1:0],l._movementBound[0]=!!l.overflow[0]&&(!1===l._movementBound[0]?l._movement[0]:l._movementBound[0]),l._movementBound[1]=!!l.overflow[1]&&(!1===l._movementBound[1]?l._movement[1]:l._movementBound[1]);let q=l._active&&u.rubberband||[0,0];if(l.offset=computeRubberband(l._bounds,l.offset,q),l.delta=ev.sub(l.offset,N),this.computeMovement(),F&&(!l.last||h>32)){l.delta=ev.sub(l.offset,N);let o=l.delta.map(Math.abs);ev.addTo(l.distance,o),l.direction=l.delta.map(Math.sign),l._direction=l._delta.map(Math.sign),!l.first&&h>0&&(l.velocity=[o[0]/h,o[1]/h],l.timeDelta=h)}}emit(){let o=this.state,l=this.shared,u=this.config;if(o._active||this.clean(),(o._blocked||!o.intentional)&&!o._force&&!u.triggerAllEvents)return;let c=this.handler(actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({},l),o),{},{[this.aliasKey]:o.values}));void 0!==c&&(o.memo=c)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}};function selectAxis([o,l],u){let c=Math.abs(o),h=Math.abs(l);return c>h&&c>u?"x":h>c&&h>u?"y":void 0}let CoordinatesEngine=class CoordinatesEngine extends Engine{constructor(...o){super(...o),_defineProperty(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=ev.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ev.sub(this.state.offset,this.state.lastOffset)}axisIntent(o){let l=this.state,u=this.config;if(!l.axis&&o){let c="object"==typeof u.axisThreshold?u.axisThreshold[getPointerType(o)]:u.axisThreshold;l.axis=selectAxis(l._movement,c)}l._blocked=(u.lockDirection||!!u.axis)&&!l.axis||!!u.axis&&u.axis!==l.axis}restrictToAxis(o){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":o[1]=0;break;case"y":o[0]=0}}};let identity=o=>o,ew={enabled:(o=!0)=>o,eventOptions:(o,l,u)=>
158actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({},u.shared.eventOptions),o),preventDefault:(o=!1)=>o,triggerAllEvents:(o=!1)=>o,rubberband(o=0){switch(o){case!0:return[.15,.15];case!1:return[0,0];default:return ev.toVector(o)}},from:o=>"function"==typeof o?o:null!=o?ev.toVector(o):void 0,transform(o,l,u){let c=o||u.shared.transform;return this.hasCustomTransform=!!c,c||identity},threshold:o=>ev.toVector(o,0)},ex=0,eC=actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({},ew),{},{axis(o,l,{axis:u}){if(this.lockDirection="lock"===u,!this.lockDirection)return u},axisThreshold:(o=ex)=>o,bounds(o={}){if("function"==typeof o)return l=>eC.bounds(o(l));if("current"in o)return()=>o.current;if("function"==typeof HTMLElement&&o instanceof HTMLElement)return o;let{left:l=-1/0,right:u=1/0,top:c=-1/0,bottom:h=1/0}=o;return[[l,u],[c,h]]}}),eE={ArrowRight:(o,l=1)=>[o*l,0],ArrowLeft:(o,l=1)=>[-1*o*l,0],ArrowUp:(o,l=1)=>[0,-1*o*l],ArrowDown:(o,l=1)=>[0,o*l]};let DragEngine=class DragEngine extends CoordinatesEngine{constructor(...o){super(...o),_defineProperty(this,"ingKey","dragging")}reset(){super.reset();let o=this.state;o._pointerId=void 0,o._pointerActive=!1,o._keyboardActive=!1,o._preventScroll=!1,o._delayed=!1,o.swipe=[0,0],o.tap=!1,o.canceled=!1,o.cancel=this.cancel.bind(this)}setup(){let o=this.state;if(o._bounds instanceof HTMLElement){let l=o._bounds.getBoundingClientRect(),u=o.currentTarget.getBoundingClientRect(),c={left:l.left-u.left+o.offset[0],right:l.right-u.right+o.offset[0],top:l.top-u.top+o.offset[1],bottom:l.bottom-u.bottom+o.offset[1]};o._bounds=eC.bounds(c)}}cancel(){let o=this.state;o.canceled||(o.canceled=!0,o._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(o){let l=this.config,u=this.state;if(null!=o.buttons&&(Array.isArray(l.pointerButtons)?!l.pointerButtons.includes(o.buttons):-1!==l.pointerButtons&&l.pointerButtons!==o.buttons))return;let c=this.ctrl.setEventIds(o);l.pointerCapture&&o.target.setPointerCapture(o.pointerId),c&&c.size>1&&u._pointerActive||(this.start(o),this.setupPointer(o),u._pointerId=pointerId(o),u._pointerActive=!0,this.computeValues(pointerValues(o)),this.computeInitial(),l.preventScrollAxis&&"mouse"!==getPointerType(o)?(u._active=!1,this.setupScrollPrevention(o)):l.delay>0?(this.setupDelayTrigger(o),l.triggerAllEvents&&(this.compute(o),this.emit())):this.startPointerDrag(o))}startPointerDrag(o){let l=this.state;l._active=!0,l._preventScroll=!0,l._delayed=!1,this.compute(o),this.emit()}pointerMove(o){let l=this.state,u=this.config;if(!l._pointerActive)return;let c=pointerId(o);if(void 0!==l._pointerId&&c!==l._pointerId)return;let h=pointerValues(o);if(document.pointerLockElement===o.target?l._delta=[o.movementX,o.movementY]:(l._delta=ev.sub(h,l._values),this.computeValues(h)),ev.addTo(l._movement,l._delta),this.compute(o),l._delayed&&l.intentional){this.timeoutStore.remove("dragDelay"),l.active=!1,this.startPointerDrag(o);return}if(u.preventScrollAxis&&!l._preventScroll){if(!l.axis)return;if(l.axis===u.preventScrollAxis||"xy"===u.preventScrollAxis){l._active=!1,this.clean();return}this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(o);return}this.emit()}pointerUp(o){this.ctrl.setEventIds(o);try{this.config.pointerCapture&&o.target.hasPointerCapture(o.pointerId)&&o.target.releasePointerCapture(o.pointerId)}catch(o){}let l=this.state,u=this.config;if(!l._active||!l._pointerActive)return;let c=pointerId(o);if(void 0!==l._pointerId&&c!==l._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(o);let[h,g]=l._distance;if(l.tap=h<=u.tapsThreshold&&g<=u.tapsThreshold,l.tap&&u.filterTaps)l._force=!0;else{let[o,c]=l._delta,[h,g]=l._movement,[y,b]=u.swipe.velocity,[_,w]=u.swipe.distance,T=u.swipe.duration;if(l.elapsedTime<T){let u=Math.abs(o/l.timeDelta),T=Math.abs(c/l.timeDelta);u>y&&Math.abs(h)>_&&(l.swipe[0]=Math.sign(o)),T>b&&Math.abs(g)>w&&(l.swipe[1]=Math.sign(c))}}
158this.emit()}pointerClick(o){!this.state.tap&&o.detail>0&&(o.preventDefault(),o.stopPropagation())}setupPointer(o){let l=this.config,u=l.device;l.pointerLock&&o.currentTarget.requestPointerLock(),l.pointerCapture||(this.eventStore.add(this.sharedConfig.window,u,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,u,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,u,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(o){this.state._preventScroll&&o.cancelable&&o.preventDefault()}setupScrollPrevention(o){this.state._preventScroll=!1,persistEvent(o);let l=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",l),this.eventStore.add(this.sharedConfig.window,"touch","cancel",l),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,o)}setupDelayTrigger(o){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(o)},this.config.delay)}keyDown(o){let l=eE[o.key];if(l){let u=this.state,c=o.shiftKey?10:o.altKey?.1:1;this.start(o),u._delta=l(this.config.keyboardDisplacement,c),u._keyboardActive=!0,ev.addTo(u._movement,u._delta),this.compute(o),this.emit()}}keyUp(o){o.key in eE&&(this.state._keyboardActive=!1,this.setActive(),this.compute(o),this.emit())}bind(o){let l=this.config.device;o(l,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(o(l,"change",this.pointerMove.bind(this)),o(l,"end",this.pointerUp.bind(this)),o(l,"cancel",this.pointerUp.bind(this)),o("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(o("key","down",this.keyDown.bind(this)),o("key","up",this.keyUp.bind(this))),this.config.filterTaps&&o("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}};function persistEvent(o){"persist"in o&&"function"==typeof o.persist&&o.persist()}let ek="undefined"!=typeof window&&window.document&&window.document.createElement;function supportsTouchEvents(){return ek&&"ontouchstart"in window}function isTouchScreen(){return supportsTouchEvents()||ek&&window.navigator.maxTouchPoints>1}function supportsPointerEvents(){return ek&&"onpointerdown"in window}function supportsPointerLock(){return ek&&"exitPointerLock"in window.document}function supportsGestureEvents(){try{return"constructor"in GestureEvent}catch(o){return!1}}let eP={isBrowser:ek,gesture:supportsGestureEvents(),touch:supportsTouchEvents(),touchscreen:isTouchScreen(),pointer:supportsPointerEvents(),pointerLock:supportsPointerLock()},eO=10,eT={mouse:0,touch:0,pen:8},eR=actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({},eC),{},{device(o,l,{pointer:{touch:u=!1,lock:c=!1,mouse:h=!1}={}}){return(this.pointerLock=c&&eP.pointerLock,eP.touch&&u)?"touch":this.pointerLock?"mouse":eP.pointer&&!h?"pointer":eP.touch?"touch":"mouse"},preventScrollAxis(o,l,{preventScroll:u}){if(this.preventScrollDelay="number"==typeof u?u:u||void 0===u&&o?250:void 0,eP.touchscreen&&!1!==u)return o||(void 0!==u?"y":void 0)},pointerCapture(o,l,{pointer:{capture:u=!0,buttons:c=1,keys:h=!0}={}}){return this.pointerButtons=c,this.keys=h,!this.pointerLock&&"pointer"===this.device&&u},threshold(o,l,{filterTaps:u=!1,tapsThreshold:c=3,axis:h}){let g=ev.toVector(o,u?c:h?1:0);return this.filterTaps=u,this.tapsThreshold=c,g},swipe({velocity:o=.5,distance:l=50,duration:u=250}={}){return{velocity:this.transform(ev.toVector(o)),distance:this.transform(ev.toVector(l)),duration:u}},delay(o=0){switch(o){case!0:return 180;case!1:return 0;default:return o}},axisThreshold:o=>o?actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({},eT),o):eT,keyboardDisplacement:(o=eO)=>o});actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({},ew),{},{device(o,l,{shared:u,pointer:{touch:c=!1}={}}){if(u.target&&!eP.touch&&eP.gesture)return"gesture";if(eP.touch&&c)return"touch";if(eP.touchscreen){if(eP.pointer)return"pointer";if(eP.touch)return"touch"}},bounds(o,l,{scaleBounds:u={},angleBounds:c={}}){let _scaleBounds=o=>{let l=assignDefault(call(u,o),{min:-1/0,max:1/0});return[l.min,l.max]},_angleBounds=o=>{let l=assignDefault(call(c,o),{min:-1/0,max:1/0});return[l.min,l.max]};return"function"!=typeof u&&"function"!=typeof c?[_scaleBounds(),_angleBounds()]:o=>[_scaleBounds(o),_angleBounds(o)]},threshold(o,l,u){this.lockDirection="lock"===u.axis;let c=ev.toVector(o,this.lockDirection?[.1,3]:0);return c},modifierKey:o=>void 0===o?"ctrlKey":o,pinchOnWheel:(o=!0)=>o}
158),actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({},eC),{},{mouseOnly:(o=!0)=>o}),actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({},eC),{},{mouseOnly:(o=!0)=>o});let ej=new Map,eA=new Map;function actions_fe213e88_esm_registerAction(o){ej.set(o.key,o.engine),eA.set(o.key,o.resolver)}let e$={key:"drag",engine:DragEngine,resolver:eR};function _objectWithoutPropertiesLoose(o,l){if(null==o)return{};var u,c,h={},g=Object.keys(o);for(c=0;c<g.length;c++)u=g[c],l.indexOf(u)>=0||(h[u]=o[u]);return h}function use_gesture_core_esm_objectWithoutProperties(o,l){if(null==o)return{};var u,c,h=_objectWithoutPropertiesLoose(o,l);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(o);for(c=0;c<g.length;c++)u=g[c],!(l.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(o,u)&&(h[u]=o[u])}return h}let eI={target(o){if(o)return()=>"current"in o?o.current:o},enabled:(o=!0)=>o,window:(o=eP.isBrowser?window:void 0)=>o,eventOptions:({passive:o=!0,capture:l=!1}={})=>({passive:o,capture:l}),transform:o=>o},eL=["target","eventOptions","window","enabled","transform"];function resolveWith(o={},l){let u={};for(let[c,h]of Object.entries(l))switch(typeof h){case"function":u[c]=h.call(u,o[c],c,o);break;case"object":u[c]=resolveWith(o[c],h);break;case"boolean":h&&(u[c]=o[c])}return u}function parse(o,l,u={}){let{target:c,eventOptions:h,window:g,enabled:y,transform:b}=o,_=use_gesture_core_esm_objectWithoutProperties(o,eL);if(u.shared=resolveWith({target:c,eventOptions:h,window:g,enabled:y,transform:b},eI),l){let o=eA.get(l);u[l]=resolveWith(actions_fe213e88_esm_objectSpread2({shared:u.shared},_),o)}else for(let o in _){let l=eA.get(o);l&&(u[o]=resolveWith(actions_fe213e88_esm_objectSpread2({shared:u.shared},_[o]),l))}return u}let EventStore=class EventStore{constructor(o,l){_defineProperty(this,"_listeners",new Set),this._ctrl=o,this._gestureKey=l}add(o,l,u,c,h){let g=this._listeners,y=toDomEventType(l,u),b=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},_=actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({},b),h);o.addEventListener(y,c,_);let remove=()=>{o.removeEventListener(y,c,_),g.delete(remove)};return g.add(remove),remove}clean(){this._listeners.forEach(o=>o()),this._listeners.clear()}};let TimeoutStore=class TimeoutStore{constructor(){_defineProperty(this,"_timeouts",new Map)}add(o,l,u=140,...c){this.remove(o),this._timeouts.set(o,window.setTimeout(l,u,...c))}remove(o){let l=this._timeouts.get(o);l&&window.clearTimeout(l)}clean(){this._timeouts.forEach(o=>void window.clearTimeout(o)),this._timeouts.clear()}};let Controller=class Controller{constructor(o){_defineProperty(this,"gestures",new Set),_defineProperty(this,"_targetEventStore",new EventStore(this)),_defineProperty(this,"gestureEventStores",{}),_defineProperty(this,"gestureTimeoutStores",{}),_defineProperty(this,"handlers",{}),_defineProperty(this,"config",{}),_defineProperty(this,"pointerIds",new Set),_defineProperty(this,"touchIds",new Set),_defineProperty(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),resolveGestures(this,o)}setEventIds(o){return isTouch(o)?(this.touchIds=new Set(touchIds(o)),this.touchIds):"pointerId"in o?("pointerup"===o.type||"pointercancel"===o.type?this.pointerIds.delete(o.pointerId):"pointerdown"===o.type&&this.pointerIds.add(o.pointerId),this.pointerIds):void 0}applyHandlers(o,l){this.handlers=o,this.nativeHandlers=l}applyConfig(o,l){this.config=parse(o,l,this.config)}clean(){for(let o of(this._targetEventStore.clean(),this.gestures))this.gestureEventStores[o].clean(),this.gestureTimeoutStores[o].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...o){let l;let u=this.config.shared,c={};if(!u.target||(l=u.target())){if(u.enabled){for(let u of this.gestures){let h=this.config[u],g=bindToProps(c,h.eventOptions,!!l);if(h.enabled){let l=ej.get(u);new l(this,o,u).bind(g)}}let h=bindToProps(c,u.eventOptions,!!l);for(let l in this.nativeHandlers)h(l,"",u=>
158this.nativeHandlers[l](actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({},this.state.shared),{},{event:u,args:o})),void 0,!0)}for(let o in c)c[o]=chain(...c[o]);if(!l)return c;for(let o in c){let{device:u,capture:h,passive:g}=parseProp(o);this._targetEventStore.add(l,u,"",c[o],{capture:h,passive:g})}}}};function setupGesture(o,l){o.gestures.add(l),o.gestureEventStores[l]=new EventStore(o,l),o.gestureTimeoutStores[l]=new TimeoutStore}function resolveGestures(o,l){l.drag&&setupGesture(o,"drag"),l.wheel&&setupGesture(o,"wheel"),l.scroll&&setupGesture(o,"scroll"),l.move&&setupGesture(o,"move"),l.pinch&&setupGesture(o,"pinch"),l.hover&&setupGesture(o,"hover")}let bindToProps=(o,l,u)=>(c,h,g,y={},b=!1)=>{var _,w;let T=null!==(_=y.capture)&&void 0!==_?_:l.capture,I=null!==(w=y.passive)&&void 0!==w?w:l.passive,N=b?c:toHandlerProp(c,h,T);u&&I&&(N+="Passive"),o[N]=o[N]||[],o[N].push(g)};function useRecognizers(o,l={},u,c){let g=h.useMemo(()=>new Controller(o),[]);if(g.applyHandlers(o,c),g.applyConfig(l,u),h.useEffect(g.effect.bind(g)),h.useEffect(()=>g.clean.bind(g),[]),void 0===l.target)return g.bind.bind(g)}function useDrag(o,l){return actions_fe213e88_esm_registerAction(e$),useRecognizers({drag:o},l||{},"drag")}function composeEventHandlers(o,l,{checkForDefaultPrevented:u=!0}={}){return function(c){if(o?.(c),!1===u||!c.defaultPrevented)return l?.(c)}}function createContextScope(o,l=[]){let u=[];function createContext3(l,c){let g=h.createContext(c),y=u.length;u=[...u,c];let Provider=l=>{let{scope:u,children:c,..._}=l,w=u?.[o]?.[y]||g,T=h.useMemo(()=>_,Object.values(_));return(0,b.jsx)(w.Provider,{value:T,children:c})};return Provider.displayName=l+"Provider",[Provider,function(u,b){let _=b?.[o]?.[y]||g,w=h.useContext(_);if(w)return w;if(void 0!==c)return c;throw Error(`\`${u}\` must be used within \`${l}\``)}]}let createScope=()=>{let l=u.map(o=>h.createContext(o));return function(u){let c=u?.[o]||l;return h.useMemo(()=>({[`__scope${o}`]:{...u,[o]:c}}),[u,c])}};return createScope.scopeName=o,[createContext3,composeContextScopes(createScope,...l)]}function composeContextScopes(...o){let l=o[0];if(1===o.length)return l;let createScope=()=>{let u=o.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){let c=u.reduce((l,{useScope:u,scopeName:c})=>{let h=u(o),g=h[`__scope${c}`];return{...l,...g}},{});return h.useMemo(()=>({[`__scope${l.scopeName}`]:c}),[c])}};return createScope.scopeName=l.scopeName,createScope}function dist_createSlot(o){let l=dist_createSlotClone(o),u=h.forwardRef((o,u)=>{let{children:c,...g}=o,y=h.Children.toArray(c),_=y.find(dist_isSlottable);if(_){let o=_.props.children,c=y.map(l=>l!==_?l:h.Children.count(o)>1?h.Children.only(null):h.isValidElement(o)?o.props.children:null);return(0,b.jsx)(l,{...g,ref:u,children:h.isValidElement(o)?h.cloneElement(o,void 0,c):null})}return(0,b.jsx)(l,{...g,ref:u,children:c})});return u.displayName=`${o}.Slot`,u}function dist_createSlotClone(o){let l=h.forwardRef((o,l)=>{let{children:u,...c}=o;if(h.isValidElement(u)){let o=dist_getElementRef(u),g=dist_mergeProps(c,u.props);return u.type!==h.Fragment&&(g.ref=l?composeRefs(l,o):o),h.cloneElement(u,g)}return h.Children.count(u)>1?h.Children.only(null):null});return l.displayName=`${o}.SlotClone`,l}"undefined"!=typeof window&&window.document&&window.document.createElement;var eM=Symbol("radix.slottable");function dist_createSlottable(o){let Slottable2=({children:o})=>(0,b.jsx)(b.Fragment,{children:o});return Slottable2.displayName=`${o}.Slottable`,Slottable2.__radixId=eM,Slottable2}function dist_isSlottable(o){return h.isValidElement(o)&&"function"==typeof o.type&&"__radixId"in o.type&&o.type.__radixId===eM}function dist_mergeProps(o,l){let u={...l};for(let c in l){let h=o[c],g=l[c],y=/^on[A-Z]/.test(c);y?h&&g?u[c]=(...o)=>{let l=g(...o);return h(...o),l}:h&&(u[c]=h):"style"===c?u[c]={...h,...g}:"className"===c&&(u[c]=[h,g].filter(Boolean).join(" "))}return{...o,...u}}function dist_getElementRef(o){let l=Object.getOwnPropertyDescriptor(o.props,"ref")?.get,u=l&&"isReactWarning"in l&&l.isReactWarning;return u?o.ref:(u=(l=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?o.props.ref:o.props.ref||o.ref}var eD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((o,l)=>{let u=dist_createSlot(`Primitive.${l}`),c=h.forwardRef((o,c)=>
158{let{asChild:h,...g}=o,y=h?u:l;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,b.jsx)(y,{...g,ref:c})});return c.displayName=`Primitive.${l}`,{...o,[l]:c}},{});function dist_dispatchDiscreteCustomEvent(o,l){o&&y.flushSync(()=>o.dispatchEvent(l))}function useCallbackRef(o){let l=h.useRef(o);return h.useEffect(()=>{l.current=o}),h.useMemo(()=>(...o)=>l.current?.(...o),[])}function useEscapeKeydown(o,l=globalThis?.document){let u=useCallbackRef(o);h.useEffect(()=>{let handleKeyDown=o=>{"Escape"===o.key&&u(o)};return l.addEventListener("keydown",handleKeyDown,{capture:!0}),()=>l.removeEventListener("keydown",handleKeyDown,{capture:!0})},[u,l])}var eN="dismissableLayer.update",eF=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ez=h.forwardRef((o,l)=>{let{disableOutsidePointerEvents:u=!1,onEscapeKeyDown:c,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:_,onDismiss:w,...T}=o,I=h.useContext(eF),[N,F]=h.useState(null),B=N?.ownerDocument??globalThis?.document,[,Z]=h.useState({}),W=useComposedRefs(l,o=>F(o)),H=Array.from(I.layers),[U]=[...I.layersWithOutsidePointerEventsDisabled].slice(-1),K=H.indexOf(U),q=N?H.indexOf(N):-1,G=I.layersWithOutsidePointerEventsDisabled.size>0,Q=q>=K,Y=usePointerDownOutside(o=>{let l=o.target,u=[...I.branches].some(o=>o.contains(l));!Q||u||(g?.(o),_?.(o),o.defaultPrevented||w?.())},B),X=useFocusOutside(o=>{let l=o.target,u=[...I.branches].some(o=>o.contains(l));u||(y?.(o),_?.(o),o.defaultPrevented||w?.())},B);return useEscapeKeydown(o=>{let l=q===I.layers.size-1;l&&(c?.(o),!o.defaultPrevented&&w&&(o.preventDefault(),w()))},B),h.useEffect(()=>{if(N)return u&&(0===I.layersWithOutsidePointerEventsDisabled.size&&(no=B.body.style.pointerEvents,B.body.style.pointerEvents="none"),I.layersWithOutsidePointerEventsDisabled.add(N)),I.layers.add(N),dispatchUpdate(),()=>{u&&1===I.layersWithOutsidePointerEventsDisabled.size&&(B.body.style.pointerEvents=no)}},[N,B,u,I]),h.useEffect(()=>()=>{N&&(I.layers.delete(N),I.layersWithOutsidePointerEventsDisabled.delete(N),dispatchUpdate())},[N,I]),h.useEffect(()=>{let handleUpdate=()=>Z({});return document.addEventListener(eN,handleUpdate),()=>document.removeEventListener(eN,handleUpdate)},[]),(0,b.jsx)(eD.div,{...T,ref:W,style:{pointerEvents:G?Q?"auto":"none":void 0,...o.style},onFocusCapture:composeEventHandlers(o.onFocusCapture,X.onFocusCapture),onBlurCapture:composeEventHandlers(o.onBlurCapture,X.onBlurCapture),onPointerDownCapture:composeEventHandlers(o.onPointerDownCapture,Y.onPointerDownCapture)})});function usePointerDownOutside(o,l=globalThis?.document){let u=useCallbackRef(o),c=h.useRef(!1),g=h.useRef(()=>{});return h.useEffect(()=>{let handlePointerDown=o=>{if(o.target&&!c.current){let handleAndDispatchPointerDownOutsideEvent2=function(){handleAndDispatchCustomEvent("dismissableLayer.pointerDownOutside",u,c,{discrete:!0})},c={originalEvent:o};"touch"===o.pointerType?(l.removeEventListener("click",g.current),g.current=handleAndDispatchPointerDownOutsideEvent2,l.addEventListener("click",g.current,{once:!0})):handleAndDispatchPointerDownOutsideEvent2()}else l.removeEventListener("click",g.current);c.current=!1},o=window.setTimeout(()=>{l.addEventListener("pointerdown",handlePointerDown)},0);return()=>{window.clearTimeout(o),l.removeEventListener("pointerdown",handlePointerDown),l.removeEventListener("click",g.current)}},[l,u]),{onPointerDownCapture:()=>c.current=!0}}function useFocusOutside(o,l=globalThis?.document){let u=useCallbackRef(o),c=h.useRef(!1);return h.useEffect(()=>{let handleFocus=o=>{o.target&&!c.current&&handleAndDispatchCustomEvent("dismissableLayer.focusOutside",u,{originalEvent:o},{discrete:!1})};return l.addEventListener("focusin",handleFocus),()=>l.removeEventListener("focusin",handleFocus)},[l,u]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function dispatchUpdate(){let o=new CustomEvent(eN);document.dispatchEvent(o)}function handleAndDispatchCustomEvent(o,l,u,{discrete:c}){let h=u.originalEvent.target,g=new CustomEvent(o,{bubbles:!1,cancelable:!0,detail:u});l&&h.addEventListener(o,l,{once:!0}),c?dist_dispatchDiscreteCustomEvent(h,g):h.dispatchEvent(g)}ez.displayName="DismissableLayer",h.forwardRef((o,l)=>{let u=h.useContext(eF),c=h.useRef(null),g=useComposedRefs(l,c);return h.useEffect(()=>{let o=c.current;if(o)return u.branches.add(o),()=>{u.branches.delete(o)}},[u.branches]),(0,b.jsx)(eD.div,{...o,ref:g})}).displayName="DismissableLayerBranch";var eB=g[" useId ".trim().toString()]||(()=>void 0),eV=0;function useId(o){let[l,u]=h.useState(eB());return N(()=>{o||u(o=>o??String(eV++))},[o]),o||(l?`radix-${l}`:"")}let eZ=["top","right","bottom","left"],eW=Math.min,eH=Math.max,eU=Math.round,eK=Math.floor,createCoords=o=>({x:o,y:o}
158),eq={left:"right",right:"left",bottom:"top",top:"bottom"};function floating_ui_utils_evaluate(o,l){return"function"==typeof o?o(l):o}function floating_ui_utils_getSide(o){return o.split("-")[0]}function floating_ui_utils_getAlignment(o){return o.split("-")[1]}function getOppositeAxis(o){return"x"===o?"y":"x"}function getAxisLength(o){return"y"===o?"height":"width"}function floating_ui_utils_getSideAxis(o){let l=o[0];return"t"===l||"b"===l?"y":"x"}function floating_ui_utils_getAlignmentSides(o,l,u){void 0===u&&(u=!1);let c=floating_ui_utils_getAlignment(o),h=getOppositeAxis(floating_ui_utils_getSideAxis(o)),g=getAxisLength(h),y="x"===h?c===(u?"end":"start")?"right":"left":"start"===c?"bottom":"top";return l.reference[g]>l.floating[g]&&(y=getOppositePlacement(y)),[y,getOppositePlacement(y)]}function getExpandedPlacements(o){let l=getOppositePlacement(o);return[floating_ui_utils_getOppositeAlignmentPlacement(o),l,floating_ui_utils_getOppositeAlignmentPlacement(l)]}function floating_ui_utils_getOppositeAlignmentPlacement(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}let eG=["left","right"],eQ=["right","left"],eY=["top","bottom"],eJ=["bottom","top"];function getSideList(o,l,u){switch(o){case"top":case"bottom":if(u)return l?eQ:eG;return l?eG:eQ;case"left":case"right":return l?eY:eJ;default:return[]}}function getOppositeAxisPlacements(o,l,u,c){let h=floating_ui_utils_getAlignment(o),g=getSideList(floating_ui_utils_getSide(o),"start"===u,c);return h&&(g=g.map(o=>o+"-"+h),l&&(g=g.concat(g.map(floating_ui_utils_getOppositeAlignmentPlacement)))),g}function getOppositePlacement(o){let l=floating_ui_utils_getSide(o);return eq[l]+o.slice(l.length)}function expandPaddingObject(o){return{top:0,right:0,bottom:0,left:0,...o}}function floating_ui_utils_getPaddingObject(o){return"number"!=typeof o?expandPaddingObject(o):{top:o,right:o,bottom:o,left:o}}function floating_ui_utils_rectToClientRect(o){let{x:l,y:u,width:c,height:h}=o;return{width:c,height:h,top:u,left:l,right:l+c,bottom:u+h,x:l,y:u}}function computeCoordsFromPlacement(o,l,u){let c,{reference:h,floating:g}=o,y=floating_ui_utils_getSideAxis(l),b=getOppositeAxis(floating_ui_utils_getSideAxis(l)),_=getAxisLength(b),w=floating_ui_utils_getSide(l),T="y"===y,I=h.x+h.width/2-g.width/2,N=h.y+h.height/2-g.height/2,F=h[_]/2-g[_]/2;switch(w){case"top":c={x:I,y:h.y-g.height};break;case"bottom":c={x:I,y:h.y+h.height};break;case"right":c={x:h.x+h.width,y:N};break;case"left":c={x:h.x-g.width,y:N};break;default:c={x:h.x,y:h.y}}switch(floating_ui_utils_getAlignment(l)){case"start":c[b]-=F*(u&&T?-1:1);break;case"end":c[b]+=F*(u&&T?-1:1)}return c}async function detectOverflow(o,l){var u;void 0===l&&(l={});let{x:c,y:h,platform:g,rects:y,elements:b,strategy:_}=o,{boundary:w="clippingAncestors",rootBoundary:T="viewport",elementContext:I="floating",altBoundary:N=!1,padding:F=0}=floating_ui_utils_evaluate(l,o),B=floating_ui_utils_getPaddingObject(F),Z=b[N?"floating"===I?"reference":"floating":I],W=floating_ui_utils_rectToClientRect(await g.getClippingRect({element:null==(u=await (null==g.isElement?void 0:g.isElement(Z)))||u?Z:Z.contextElement||await (null==g.getDocumentElement?void 0:g.getDocumentElement(b.floating)),boundary:w,rootBoundary:T,strategy:_})),H="floating"===I?{x:c,y:h,width:y.floating.width,height:y.floating.height}:y.reference,U=await (null==g.getOffsetParent?void 0:g.getOffsetParent(b.floating)),K=await (null==g.isElement?void 0:g.isElement(U))&&await (null==g.getScale?void 0:g.getScale(U))||{x:1,y:1},q=floating_ui_utils_rectToClientRect(g.convertOffsetParentRelativeRectToViewportRelativeRect?await g.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:H,offsetParent:U,strategy:_}):H);return{top:(W.top-q.top+B.top)/K.y,bottom:(q.bottom-W.bottom+B.bottom)/K.y,left:(W.left-q.left+B.left)/K.x,right:(q.right-W.right+B.right)/K.x}}let computePosition=async(o,l,u)=>{let{placement:c="bottom",strategy:h="absolute",middleware:g=[],platform:y}=u,b=y.detectOverflow?y:{...y,detectOverflow},_=await (null==y.isRTL?void 0:y.isRTL(l)),w=await y.getElementRects({reference:o,floating:l,strategy:h}),{x:T,y:I}=computeCoordsFromPlacement(w,c,_),N=c,F=0,B={};for(let u=0;u<g.length;u++){let Z=g[u];
158if(!Z)continue;let{name:W,fn:H}=Z,{x:U,y:K,data:q,reset:G}=await H({x:T,y:I,initialPlacement:c,placement:N,strategy:h,middlewareData:B,rects:w,platform:b,elements:{reference:o,floating:l}});T=null!=U?U:T,I=null!=K?K:I,B[W]={...B[W],...q},G&&F<50&&(F++,"object"==typeof G&&(G.placement&&(N=G.placement),G.rects&&(w=!0===G.rects?await y.getElementRects({reference:o,floating:l,strategy:h}):G.rects),{x:T,y:I}=computeCoordsFromPlacement(w,N,_)),u=-1)}return{x:T,y:I,placement:N,strategy:h,middlewareData:B}};function getSideOffsets(o,l){return{top:o.top-l.height,right:o.right-l.width,bottom:o.bottom-l.height,left:o.left-l.width}}function isAnySideFullyClipped(o){return eZ.some(l=>o[l]>=0)}let eX=new Set(["left","top"]);async function convertValueToCoords(o,l){let{placement:u,platform:c,elements:h}=o,g=await (null==c.isRTL?void 0:c.isRTL(h.floating)),y=floating_ui_utils_getSide(u),b=floating_ui_utils_getAlignment(u),_="y"===floating_ui_utils_getSideAxis(u),w=eX.has(y)?-1:1,T=g&&_?-1:1,I=floating_ui_utils_evaluate(l,o),{mainAxis:N,crossAxis:F,alignmentAxis:B}="number"==typeof I?{mainAxis:I,crossAxis:0,alignmentAxis:null}:{mainAxis:I.mainAxis||0,crossAxis:I.crossAxis||0,alignmentAxis:I.alignmentAxis};return b&&"number"==typeof B&&(F="end"===b?-1*B:B),_?{x:F*T,y:N*w}:{x:N*w,y:F*T}}function hasWindow(){return"undefined"!=typeof window}function getNodeName(o){return isNode(o)?(o.nodeName||"").toLowerCase():"#document"}function getWindow(o){var l;return(null==o||null==(l=o.ownerDocument)?void 0:l.defaultView)||window}function getDocumentElement(o){var l;return null==(l=(isNode(o)?o.ownerDocument:o.document)||window.document)?void 0:l.documentElement}function isNode(o){return!!hasWindow()&&(o instanceof Node||o instanceof getWindow(o).Node)}function isElement(o){return!!hasWindow()&&(o instanceof Element||o instanceof getWindow(o).Element)}function isHTMLElement(o){return!!hasWindow()&&(o instanceof HTMLElement||o instanceof getWindow(o).HTMLElement)}function isShadowRoot(o){return!!hasWindow()&&"undefined"!=typeof ShadowRoot&&(o instanceof ShadowRoot||o instanceof getWindow(o).ShadowRoot)}function isOverflowElement(o){let{overflow:l,overflowX:u,overflowY:c,display:h}=floating_ui_utils_dom_getComputedStyle(o);return/auto|scroll|overlay|hidden|clip/.test(l+c+u)&&"inline"!==h&&"contents"!==h}function isTableElement(o){return/^(table|td|th)$/.test(getNodeName(o))}function isTopLayer(o){try{if(o.matches(":popover-open"))return!0}catch(o){}try{return o.matches(":modal")}catch(o){return!1}}let e0=/transform|translate|scale|rotate|perspective|filter/,e1=/paint|layout|strict|content/,isNotNone=o=>!!o&&"none"!==o;function isContainingBlock(o){let l=isElement(o)?floating_ui_utils_dom_getComputedStyle(o):o;return isNotNone(l.transform)||isNotNone(l.translate)||isNotNone(l.scale)||isNotNone(l.rotate)||isNotNone(l.perspective)||!isWebKit()&&(isNotNone(l.backdropFilter)||isNotNone(l.filter))||e0.test(l.willChange||"")||e1.test(l.contain||"")}function getContainingBlock(o){let l=getParentNode(o);for(;isHTMLElement(l)&&!isLastTraversableNode(l);){if(isContainingBlock(l))return l;if(isTopLayer(l))break;l=getParentNode(l)}return null}function isWebKit(){return null==c&&(c="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),c}function isLastTraversableNode(o){return/^(html|body|#document)$/.test(getNodeName(o))}function floating_ui_utils_dom_getComputedStyle(o){return getWindow(o).getComputedStyle(o)}function getNodeScroll(o){return isElement(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function getParentNode(o){if("html"===getNodeName(o))return o;let l=o.assignedSlot||o.parentNode||isShadowRoot(o)&&o.host||getDocumentElement(o);return isShadowRoot(l)?l.host:l}function getNearestOverflowAncestor(o){let l=getParentNode(o);return isLastTraversableNode(l)?o.ownerDocument?o.ownerDocument.body:o.body:isHTMLElement(l)&&isOverflowElement(l)?l:getNearestOverflowAncestor(l)}function getOverflowAncestors(o,l,u){var c;void 0===l&&(l=[]),void 0===u&&(u=!0);let h=getNearestOverflowAncestor(o),g=h===(null==(c=o.ownerDocument)?void 0:c.body),y=getWindow(h);if(!g)return l.concat(h,getOverflowAncestors(h,[],u));{let o=getFrameElement(y);
158return l.concat(y,y.visualViewport||[],isOverflowElement(h)?h:[],o&&u?getOverflowAncestors(o):[])}}function getFrameElement(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function getCssDimensions(o){let l=floating_ui_utils_dom_getComputedStyle(o),u=parseFloat(l.width)||0,c=parseFloat(l.height)||0,h=isHTMLElement(o),g=h?o.offsetWidth:u,y=h?o.offsetHeight:c,b=eU(u)!==g||eU(c)!==y;return b&&(u=g,c=y),{width:u,height:c,$:b}}function unwrapElement(o){return isElement(o)?o:o.contextElement}function getScale(o){let l=unwrapElement(o);if(!isHTMLElement(l))return createCoords(1);let u=l.getBoundingClientRect(),{width:c,height:h,$:g}=getCssDimensions(l),y=(g?eU(u.width):u.width)/c,b=(g?eU(u.height):u.height)/h;return y&&Number.isFinite(y)||(y=1),b&&Number.isFinite(b)||(b=1),{x:y,y:b}}let e2=createCoords(0);function getVisualOffsets(o){let l=getWindow(o);return isWebKit()&&l.visualViewport?{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}:e2}function shouldAddVisualOffsets(o,l,u){return void 0===l&&(l=!1),!!u&&(!l||u===getWindow(o))&&l}function getBoundingClientRect(o,l,u,c){void 0===l&&(l=!1),void 0===u&&(u=!1);let h=o.getBoundingClientRect(),g=unwrapElement(o),y=createCoords(1);l&&(c?isElement(c)&&(y=getScale(c)):y=getScale(o));let b=shouldAddVisualOffsets(g,u,c)?getVisualOffsets(g):createCoords(0),_=(h.left+b.x)/y.x,w=(h.top+b.y)/y.y,T=h.width/y.x,I=h.height/y.y;if(g){let o=getWindow(g),l=c&&isElement(c)?getWindow(c):c,u=o,h=getFrameElement(u);for(;h&&c&&l!==u;){let o=getScale(h),l=h.getBoundingClientRect(),c=floating_ui_utils_dom_getComputedStyle(h),g=l.left+(h.clientLeft+parseFloat(c.paddingLeft))*o.x,y=l.top+(h.clientTop+parseFloat(c.paddingTop))*o.y;_*=o.x,w*=o.y,T*=o.x,I*=o.y,_+=g,w+=y,h=getFrameElement(u=getWindow(h))}}return floating_ui_utils_rectToClientRect({width:T,height:I,x:_,y:w})}function getWindowScrollBarX(o,l){let u=getNodeScroll(o).scrollLeft;return l?l.left+u:getBoundingClientRect(getDocumentElement(o)).left+u}function getHTMLOffset(o,l){let u=o.getBoundingClientRect(),c=u.left+l.scrollLeft-getWindowScrollBarX(o,u),h=u.top+l.scrollTop;return{x:c,y:h}}function convertOffsetParentRelativeRectToViewportRelativeRect(o){let{elements:l,rect:u,offsetParent:c,strategy:h}=o,g="fixed"===h,y=getDocumentElement(c),b=!!l&&isTopLayer(l.floating);if(c===y||b&&g)return u;let _={scrollLeft:0,scrollTop:0},w=createCoords(1),T=createCoords(0),I=isHTMLElement(c);if((I||!I&&!g)&&(("body"!==getNodeName(c)||isOverflowElement(y))&&(_=getNodeScroll(c)),I)){let o=getBoundingClientRect(c);w=getScale(c),T.x=o.x+c.clientLeft,T.y=o.y+c.clientTop}let N=!y||I||g?createCoords(0):getHTMLOffset(y,_);return{width:u.width*w.x,height:u.height*w.y,x:u.x*w.x-_.scrollLeft*w.x+T.x+N.x,y:u.y*w.y-_.scrollTop*w.y+T.y+N.y}}function getClientRects(o){return Array.from(o.getClientRects())}function getDocumentRect(o){let l=getDocumentElement(o),u=getNodeScroll(o),c=o.ownerDocument.body,h=eH(l.scrollWidth,l.clientWidth,c.scrollWidth,c.clientWidth),g=eH(l.scrollHeight,l.clientHeight,c.scrollHeight,c.clientHeight),y=-u.scrollLeft+getWindowScrollBarX(o),b=-u.scrollTop;return"rtl"===floating_ui_utils_dom_getComputedStyle(c).direction&&(y+=eH(l.clientWidth,c.clientWidth)-h),{width:h,height:g,x:y,y:b}}function getViewportRect(o,l){let u=getWindow(o),c=getDocumentElement(o),h=u.visualVie
158wport,g=c.clientWidth,y=c.clientHeight,b=0,_=0;if(h){g=h.width,y=h.height;let o=isWebKit();(!o||o&&"fixed"===l)&&(b=h.offsetLeft,_=h.offsetTop)}let w=getWindowScrollBarX(c);if(w<=0){let o=c.ownerDocument,l=o.body,u=getComputedStyle(l),h="CSS1Compat"===o.compatMode&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,y=Math.abs(c.clientWidth-l.clientWidth-h);y<=25&&(g-=y)}else w<=25&&(g+=w);return{width:g,height:y,x:b,y:_}}function getInnerBoundingClientRect(o,l){let u=getBoundingClientRect(o,!0,"fixed"===l),c=u.top+o.clientTop,h=u.left+o.clientLeft,g=isHTMLElement(o)?getScale(o):createCoords(1),y=o.clientWidth*g.x,b=o.clientHeight*g.y,_=h*g.x,w=c*g.y;return{width:y,height:b,x:_,y:w}}function getClientRectFromClippingAncestor(o,l,u){let c;if("viewport"===l)c=getViewportRect(o,u);else if("document"===l)c=getDocumentRect(getDocumentElement(o));else if(isElement(l))c=getInnerBoundingClientRect(l,u);else{let u=getVisualOffsets(o);c={x:l.x-u.x,y:l.y-u.y,width:l.width,height:l.height}}return floating_ui_utils_rectToClientRect(c)}function hasFixedPositionAncestor(o,l){let u=getParentNode(o);return!(u===l||!isElement(u)||isLastTraversableNode(u))&&("fixed"===floating_ui_utils_dom_getComputedStyle(u).position||hasFixedPositionAncestor(u,l))}function getClippingElementAncestors(o,l){let u=l.get(o);if(u)return u;let c=getOverflowAncestors(o,[],!1).filter(o=>isElement(o)&&"body"!==getNodeName(o)),h=null,g="fixed"===floating_ui_utils_dom_getComputedStyle(o).position,y=g?getParentNode(o):o;for(;isElement(y)&&!isLastTraversableNode(y);){let l=floating_ui_utils_dom_getComputedStyle(y),u=isContainingBlock(y);u||"fixed"!==l.position||(h=null);let b=g?!u&&!h:!u&&"static"===l.position&&!!h&&("absolute"===h.position||"fixed"===h.position)||isOverflowElement(y)&&!u&&hasFixedPositionAncestor(o,y);b?c=c.filter(o=>o!==y):h=l,y=getParentNode(y)}return l.set(o,c),c}function getClippingRect(o){let{element:l,boundary:u,rootBoundary:c,strategy:h}=o,g="clippingAncestors"===u?isTopLayer(l)?[]:getClippingElementAncestors(l,this._c):[].concat(u),y=[...g,c],b=getClientRectFromClippingAncestor(l,y[0],h),_=b.top,w=b.right,T=b.bottom,I=b.left;for(let o=1;o<y.length;o++){let u=getClientRectFromClippingAncestor(l,y[o],h);_=eH(u.top,_),w=eW(u.right,w),T=eW(u.bottom,T),I=eH(u.left,I)}return{width:w-I,height:T-_,x:I,y:_}}function getDimensions(o){let{width:l,height:u}=getCssDimensions(o);return{width:l,height:u}}function getRectRelativeToOffsetParent(o,l,u){let c=isHTMLElement(l),h=getDocumentElement(l),g="fixed"===u,y=getBoundingClientRect(o,!0,g,l),b={scrollLeft:0,scrollTop:0},_=createCoords(0);if(c||!c&&!g){if(("body"!==getNodeName(l)||isOverflowElement(h))&&(b=getNodeScroll(l)),c){let o=getBoundingClientRect(l,!0,g,l);_.x=o.x+l.clientLeft,_.y=o.y+l.clientTop}else h&&(_.x=getWindowScrollBarX(h))}g&&!c&&h&&(_.x=getWindowScrollBarX(h));let w=!h||c||g?createCoords(0):getHTMLOffset(h,b),T=y.left+b.scrollLeft-_.x-w.x,I=y.top+b.scrollTop-_.y-w.y;return{x:T,y:I,width:y.width,height:y.height}}function isStaticPositioned(o){return"static"===floating_ui_utils_dom_getComputedStyle(o).position}function getTrueOffsetParent(o,l){if(!isHTMLElement(o)||"fixed"===floating_ui_utils_dom_getComputedStyle(o).position)return null;if(l)return l(o);let u=o.offsetParent;return getDocumentElement(o)===u&&(u=u.ownerDocument.body),u}function getOffsetParent(o,l){let u=getWindow(o);if(isTopLayer(o))return u;if(!isHTMLElement(o)){let l=getParentNode(o);for(;l&&!isLastTraversableNode(l);){if(isElement(l)&&!isStaticPositioned(l))return l;l=getParentNode(l)}return u}let c=getTrueOffsetParent(o,l);for(;c&&isTableElement(c)&&isStaticPositioned(c);)c=getTrueOffsetParent(c,l);return c&&isLastTraversableNode(c)&&isStaticPositioned(c)&&!isContainingBlock(c)?u:c||getContainingBlock(o)||u}let getElementRects=async function(o){let l=this.getOffsetParent||getOffsetParent,u=this.getDimensions,c=await u(o.floating);return{reference:getRectRelativeToOffsetParent(o.reference,await l(o.floating),o.strategy),floating:{x:0,y:0,width:c.width,height:c.height}}};function isRTL(o){return"rtl"===floating_ui_utils_dom_getComputedStyle(o).direction}let e5={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement,isRTL};function rectsAreEqual(o,l){return o.x===l.x&&o.y===l.y&&o.width===l.width&&o.height===l.height}function observeMove(o,l){let u,c=null,h=getDocumentElement(o);function cleanup(){var o;clearTimeout(u),null==(o=c)||o.disconnect(),c=null}function refresh(g,y){void 0===g&&(g=!1),void 0===y&&(y=1),cleanup();let b=o.getBoundingClientRect(),{left:_,top:w,width:T,height:I}=b;if(g||l(),!T||!I)return;let N=eK(w),F=eK(h.clientWidth-(_+T)),B=eK(h.clientHeight-(w+I)),Z=eK(_),W={rootMargin:-N+"px "+-F+"px "+-B+"px "+-Z+"px",threshold:eH(0,eW(1,y))||1},H=!0;function handleObserve(l){let c=l[0].intersectionRatio;if(c!==y){if(!H)return refresh();c?refresh(!1,c):u=setTimeout(()=>{refresh(!1,1e-7)},1e3)}1!==c||rectsAreEqual(b,o.getBoundingClientRect())||refresh(),H=!1}try{c=new IntersectionObserver(handleObserve,{...W,root:h.ownerDocument})}catch(o){c=new IntersectionObserver(handleObserve,W)}c.observe(o)}return refresh(!0),cleanup}function autoUpdate(o,l,u,c){let h;void 0===c&&(c={});let{ancestorScroll:g=!0,ancestorResize:y=!0,elementResize:b="function"==typeof ResizeObserver,layoutShift:_="function"==typeof IntersectionObserver,animationFrame:w=!1}=c,T=unwrapElement(o),I=g||y?[...T?getOverflowAncestors(T):[],...l?getOverflowAncestors(l):[]]:[];I.forEach(o=>{g&&o.addEventListener("scroll",u,{passive:!0}),y&&o.addEventListener("resize",u)});let N=T&&_?observeMove(T,u):null,F=-1,B=null;b&&(B=new ResizeObserver(o=>{let[c]=o;c&&c.target===T&&B&&l&&(B.unobserve(l),cancelAnimationFrame(F),F=requestAnimationFrame(()=>{var o;null==(o=B)||o.observe(l)})),u()}),T&&!w&&B.observe(T),l&&B.observe(l));let Z=w?getBoundingClientRect(o):null;function frameLoop(){let l=getBoundingClientRect(o);Z&&!rectsAreEqual(Z,l)&&u(),Z=l,h=requestAnimationFrame(frameLoop)}return w&&frameLoop(),u(),()=>{var o;I.forEach(o=>{g&&o.removeEventListener("scroll",u),y&&o.removeEventListener("resize",u)}),null==N||N(),null==(o=B)||o.disconnect(),B=null,w&&cancelAnimationFrame(h)}}let floating_ui_dom_arrow=o=>({name:"arrow",options:o,async fn(l){let{x:u,y:c,placement:h,rects:g,platform:y,elements:b,middlewareData:_}=l,{element:w,padding:T=0}=floating_ui_utils_evaluate(o,l)||{};if(null==w)return{};
158let I=floating_ui_utils_getPaddingObject(T),N={x:u,y:c},F=getOppositeAxis(floating_ui_utils_getSideAxis(h)),B=getAxisLength(F),Z=await y.getDimensions(w),W="y"===F,H=W?"clientHeight":"clientWidth",U=g.reference[B]+g.reference[F]-N[F]-g.floating[B],K=N[F]-g.reference[F],q=await (null==y.getOffsetParent?void 0:y.getOffsetParent(w)),G=q?q[H]:0;G&&await (null==y.isElement?void 0:y.isElement(q))||(G=b.floating[H]||g.floating[B]);let Q=G/2-Z[B]/2-1,Y=eW(I[W?"top":"left"],Q),X=eW(I[W?"bottom":"right"],Q),ee=G-Z[B]-X,et=G/2-Z[B]/2+(U/2-K/2),er=eH(Y,eW(et,ee)),en=!_.arrow&&null!=floating_ui_utils_getAlignment(h)&&et!==er&&g.reference[B]/2-(et<Y?Y:X)-Z[B]/2<0,ei=en?et<Y?et-Y:et-ee:0;return{[F]:N[F]+ei,data:{[F]:er,centerOffset:et-er-ei,...en&&{alignmentOffset:ei}},reset:en}}}),floating_ui_dom_computePosition=(o,l,u)=>{let c=new Map,h={platform:e5,...u},g={...h.platform,_c:c};return computePosition(o,l,{...h,platform:g})};var e3="undefined"!=typeof document?h.useLayoutEffect:function(){};function deepEqual(o,l){let u,c,h;if(o===l)return!0;if(typeof o!=typeof l)return!1;if("function"==typeof o&&o.toString()===l.toString())return!0;if(o&&l&&"object"==typeof o){if(Array.isArray(o)){if((u=o.length)!==l.length)return!1;for(c=u;0!=c--;)if(!deepEqual(o[c],l[c]))return!1;return!0}if((u=(h=Object.keys(o)).length)!==Object.keys(l).length)return!1;for(c=u;0!=c--;)if(!({}).hasOwnProperty.call(l,h[c]))return!1;for(c=u;0!=c--;){let u=h[c];if(("_owner"!==u||!o.$$typeof)&&!deepEqual(o[u],l[u]))return!1}return!0}return o!=o&&l!=l}function getDPR(o){if("undefined"==typeof window)return 1;let l=o.ownerDocument.defaultView||window;return l.devicePixelRatio||1}function roundByDPR(o,l){let u=getDPR(o);return Math.round(l*u)/u}function useLatestRef(o){let l=h.useRef(o);return e3(()=>{l.current=o}),l}function useFloating(o){void 0===o&&(o={});let{placement:l="bottom",strategy:u="absolute",middleware:c=[],platform:g,elements:{reference:b,floating:_}={},transform:w=!0,whileElementsMounted:T,open:I}=o,[N,F]=h.useState({x:0,y:0,strategy:u,placement:l,middlewareData:{},isPositioned:!1}),[B,Z]=h.useState(c);deepEqual(B,c)||Z(c);let[W,H]=h.useState(null),[U,K]=h.useState(null),q=h.useCallback(o=>{o!==X.current&&(X.current=o,H(o))},[]),G=h.useCallback(o=>{o!==ee.current&&(ee.current=o,K(o))},[]),Q=b||W,Y=_||U,X=h.useRef(null),ee=h.useRef(null),et=h.useRef(N),er=null!=T,en=useLatestRef(T),ei=useLatestRef(g),eo=useLatestRef(I),ea=h.useCallback(()=>{if(!X.current||!ee.current)return;let o={placement:l,strategy:u,middleware:B};ei.current&&(o.platform=ei.current),floating_ui_dom_computePosition(X.current,ee.current,o).then(o=>{let l={...o,isPositioned:!1!==eo.current};es.current&&!deepEqual(et.current,l)&&(et.current=l,y.flushSync(()=>{F(l)}))})},[B,l,u,ei,eo]);e3(()=>{!1===I&&et.current.isPositioned&&(et.current.isPositioned=!1,F(o=>({...o,isPositioned:!1})))},[I]);let es=h.useRef(!1);e3(()=>(es.current=!0,()=>{es.current=!1}),[]),e3(()=>{if(Q&&(X.current=Q),Y&&(ee.current=Y),Q&&Y){if(en.current)return en.current(Q,Y,ea);ea()}},[Q,Y,ea,en,er]);let el=h.useMemo(()=>({reference:X,floating:ee,setReference:q,setFloating:G}),[q,G]),eu=h.useMemo(()=>({reference:Q,floating:Y}),[Q,Y]),ec=h.useMemo(()=>{let o={position:u,left:0,top:0};if(!eu.floating)return o;let l=roundByDPR(eu.floating,N.x),c=roundByDPR(eu.floating,N.y);return w?{...o,transform:"translate("+l+"px, "+c+"px)",...getDPR(eu.floating)>=1.5&&{willChange:"transform"}}:{position:u,left:l,top:c}},[u,w,eu.floating,N.x,N.y]);return h.useMemo(()=>({...N,update:ea,refs:el,elements:eu,floatingStyles:ec}),[N,ea,el,eu,ec])}let arrow$1=o=>{function isRef(o){return({}).hasOwnProperty.call(o,"current")}return{name:"arrow",options:o,fn(l){let{element:u,padding:c}="function"==typeof o?o(l):o;return u&&isRef(u)?null!=u.current?floating_ui_dom_arrow({element:u.current,padding:c}).fn(l):{}:u?floating_ui_dom_arrow({element:u,padding:c}).fn(l):{}}}},floating_ui_react_dom_offset=(o,l)=>{var u;let c=(void 0===(u=o)&&(u=0),{name:"offset",options:u,async fn(o){var l,c;let{x:h,y:g,placement:y,middlewareData:b}=o,_=await convertValueToCoords(o,u);return y===(null==(l=b.offset)?void 0:l.placement)&&null!=(c=b.arrow)&&c.alignmentOffset?{}:{x:h+_.x,y:g+_.y,data:{..._,placement:y}}}});return{name:c.name,fn:c.fn,options:[o,l]}},floating_ui_react_dom_shift=(o,l)=>{var u;
158let c=(void 0===(u=o)&&(u={}),{name:"shift",options:u,async fn(o){let{x:l,y:c,placement:h,platform:g}=o,{mainAxis:y=!0,crossAxis:b=!1,limiter:_={fn:o=>{let{x:l,y:u}=o;return{x:l,y:u}}},...w}=floating_ui_utils_evaluate(u,o),T={x:l,y:c},I=await g.detectOverflow(o,w),N=floating_ui_utils_getSideAxis(floating_ui_utils_getSide(h)),F=getOppositeAxis(N),B=T[F],Z=T[N];if(y){let o=B+I["y"===F?"top":"left"],l=B-I["y"===F?"bottom":"right"];B=eH(o,eW(B,l))}if(b){let o="y"===N?"top":"left",l="y"===N?"bottom":"right",u=Z+I[o],c=Z-I[l];Z=eH(u,eW(Z,c))}let W=_.fn({...o,[F]:B,[N]:Z});return{...W,data:{x:W.x-l,y:W.y-c,enabled:{[F]:y,[N]:b}}}}});return{name:c.name,fn:c.fn,options:[o,l]}},floating_ui_react_dom_limitShift=(o,l)=>{var u;let c=(void 0===(u=o)&&(u={}),{options:u,fn(o){let{x:l,y:c,placement:h,rects:g,middlewareData:y}=o,{offset:b=0,mainAxis:_=!0,crossAxis:w=!0}=floating_ui_utils_evaluate(u,o),T={x:l,y:c},I=floating_ui_utils_getSideAxis(h),N=getOppositeAxis(I),F=T[N],B=T[I],Z=floating_ui_utils_evaluate(b,o),W="number"==typeof Z?{mainAxis:Z,crossAxis:0}:{mainAxis:0,crossAxis:0,...Z};if(_){let o="y"===N?"height":"width",l=g.reference[N]-g.floating[o]+W.mainAxis,u=g.reference[N]+g.reference[o]-W.mainAxis;F<l?F=l:F>u&&(F=u)}if(w){var H,U;let o="y"===N?"width":"height",l=eX.has(floating_ui_utils_getSide(h)),u=g.reference[I]-g.floating[o]+(l&&(null==(H=y.offset)?void 0:H[I])||0)+(l?0:W.crossAxis),c=g.reference[I]+g.reference[o]+(l?0:(null==(U=y.offset)?void 0:U[I])||0)-(l?W.crossAxis:0);B<u?B=u:B>c&&(B=c)}return{[N]:F,[I]:B}}});return{fn:c.fn,options:[o,l]}},floating_ui_react_dom_flip=(o,l)=>{var u;let c=(void 0===(u=o)&&(u={}),{name:"flip",options:u,async fn(o){var l,c,h,g,y;let{placement:b,middlewareData:_,rects:w,initialPlacement:T,platform:I,elements:N}=o,{mainAxis:F=!0,crossAxis:B=!0,fallbackPlacements:Z,fallbackStrategy:W="bestFit",fallbackAxisSideDirection:H="none",flipAlignment:U=!0,...K}=floating_ui_utils_evaluate(u,o);if(null!=(l=_.arrow)&&l.alignmentOffset)return{};let q=floating_ui_utils_getSide(b),G=floating_ui_utils_getSideAxis(T),Q=floating_ui_utils_getSide(T)===T,Y=await (null==I.isRTL?void 0:I.isRTL(N.floating)),X=Z||(Q||!U?[getOppositePlacement(T)]:getExpandedPlacements(T)),ee="none"!==H;!Z&&ee&&X.push(...getOppositeAxisPlacements(T,U,H,Y));let et=[T,...X],er=await I.detectOverflow(o,K),en=[],ei=(null==(c=_.flip)?void 0:c.overflows)||[];if(F&&en.push(er[q]),B){let o=floating_ui_utils_getAlignmentSides(b,w,Y);en.push(er[o[0]],er[o[1]])}if(ei=[...ei,{placement:b,overflows:en}],!en.every(o=>o<=0)){let o=((null==(h=_.flip)?void 0:h.index)||0)+1,l=et[o];if(l){let u="alignment"===B&&G!==floating_ui_utils_getSideAxis(l);if(!u||ei.every(o=>floating_ui_utils_getSideAxis(o.placement)!==G||o.overflows[0]>0))return{data:{index:o,overflows:ei},reset:{placement:l}}}let u=null==(g=ei.filter(o=>o.overflows[0]<=0).sort((o,l)=>o.overflows[1]-l.overflows[1])[0])?void 0:g.placement;if(!u)switch(W){case"bestFit":{let o=null==(y=ei.filter(o=>{if(ee){let l=floating_ui_utils_getSideAxis(o.placement);return l===G||"y"===l}return!0}).map(o=>[o.placement,o.overflows.filter(o=>o>0).reduce((o,l)=>o+l,0)]).sort((o,l)=>o[1]-l[1])[0])?void 0:y[0];o&&(u=o);break}case"initialPlacement":u=T}if(b!==u)return{reset:{placement:u}}}return{}}});return{name:c.name,fn:c.fn,options:[o,l]}},floating_ui_react_dom_size=(o,l)=>{var u;let c=(void 0===(u=o)&&(u={}),{name:"size",options:u,async fn(o){var l,c;let h,g;let{placement:y,rects:b,platform:_,elements:w}=o,{apply:T=()=>{},...I}=floating_ui_utils_evaluate(u,o),N=await _.detectOverflow(o,I),F=floating_ui_utils_getSide(y),B=floating_ui_utils_getAlignment(y),Z="y"===floating_ui_utils_getSideAxis(y),{width:W,height:H}=b.floating;"top"===F||"bottom"===F?(h=F,g=B===(await (null==_.isRTL?void 0:_.isRTL(w.floating))?"start":"end")?"left":"right"):(g=F,h="end"===B?"top":"bottom");let U=H-N.top-N.bottom,K=W-N.left-N.right,q=eW(H-N[h],U),G=eW(W-N[g],K),Q=!o.middlewareData.shift,Y=q,X=G;if(null!=(l=o.middlewareData.shift)&&l.enabled.x&&(X=K),null!=(c=o.middlewareData.shift)&&c.enabled.y&&(Y=U),Q&&!B){let o=eH(N.left,0),l=eH(N.right,0),u=eH(N.top,0),c=eH(N.bottom,0);Z?X=W-2*(0!==o||0!==l?o+l:eH(N.left,N.right)):Y=H-2*(0!==u||0!==c?u+c:eH(N.top,N.bottom))}await T({...o,availableWidth:X,availableHeight:Y});let ee=await _.getDimensions(w.floating);return W!==ee.width||H!==ee.height?{reset:{rects:!0}}:{}}});return{name:c.name,fn:c.fn,options:[o,l]}},floating_ui_react_dom_hide=(o,l)=>{var u;
158let c=(void 0===(u=o)&&(u={}),{name:"hide",options:u,async fn(o){let{rects:l,platform:c}=o,{strategy:h="referenceHidden",...g}=floating_ui_utils_evaluate(u,o);switch(h){case"referenceHidden":{let u=await c.detectOverflow(o,{...g,elementContext:"reference"}),h=getSideOffsets(u,l.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:isAnySideFullyClipped(h)}}}case"escaped":{let u=await c.detectOverflow(o,{...g,altBoundary:!0}),h=getSideOffsets(u,l.floating);return{data:{escapedOffsets:h,escaped:isAnySideFullyClipped(h)}}}default:return{}}}});return{name:c.name,fn:c.fn,options:[o,l]}},floating_ui_react_dom_arrow=(o,l)=>{let u=arrow$1(o);return{name:u.name,fn:u.fn,options:[o,l]}};var e4=h.forwardRef((o,l)=>{let{children:u,width:c=10,height:h=5,...g}=o;return(0,b.jsx)(eD.svg,{...g,ref:l,width:c,height:h,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:o.asChild?u:(0,b.jsx)("polygon",{points:"0,0 30,0 15,10"})})});function useSize(o){let[l,u]=h.useState(void 0);return N(()=>{if(o){u({width:o.offsetWidth,height:o.offsetHeight});let l=new ResizeObserver(l=>{let c,h;if(!Array.isArray(l)||!l.length)return;let g=l[0];if("borderBoxSize"in g){let o=g.borderBoxSize,l=Array.isArray(o)?o[0]:o;c=l.inlineSize,h=l.blockSize}else c=o.offsetWidth,h=o.offsetHeight;u({width:c,height:h})});return l.observe(o,{box:"border-box"}),()=>l.unobserve(o)}u(void 0)},[o]),l}e4.displayName="Arrow";var e8="Popper",[e6,e9]=createContextScope(e8),[e7,te]=e6(e8),Popper=o=>{let{__scopePopper:l,children:u}=o,[c,g]=h.useState(null);return(0,b.jsx)(e7,{scope:l,anchor:c,onAnchorChange:g,children:u})};Popper.displayName=e8;var tt="PopperAnchor",tr=h.forwardRef((o,l)=>{let{__scopePopper:u,virtualRef:c,...g}=o,y=te(tt,u),_=h.useRef(null),w=useComposedRefs(l,_),T=h.useRef(null);return h.useEffect(()=>{let o=T.current;T.current=c?.current||_.current,o!==T.current&&y.onAnchorChange(T.current)}),c?null:(0,b.jsx)(eD.div,{...g,ref:w})});tr.displayName=tt;var tn="PopperContent",[ti,to]=e6(tn),ta=h.forwardRef((o,l)=>{let{__scopePopper:u,side:c="bottom",sideOffset:g=0,align:y="center",alignOffset:_=0,arrowPadding:w=0,avoidCollisions:T=!0,collisionBoundary:I=[],collisionPadding:F=0,sticky:B="partial",hideWhenDetached:Z=!1,updatePositionStrategy:W="optimized",onPlaced:H,...U}=o,K=te(tn,u),[q,G]=h.useState(null),Q=useComposedRefs(l,o=>G(o)),[Y,X]=h.useState(null),ee=useSize(Y),et=ee?.width??0,er=ee?.height??0,en="number"==typeof F?F:{top:0,right:0,bottom:0,left:0,...F},ei=Array.isArray(I)?I:[I],eo=ei.length>0,ea={padding:en,boundary:ei.filter(isNotNull),altBoundary:eo},{refs:es,floatingStyles:el,placement:eu,isPositioned:ec,middlewareData:ed}=useFloating({strategy:"fixed",placement:c+("center"!==y?"-"+y:""),whileElementsMounted:(...o)=>{let l=autoUpdate(...o,{animationFrame:"always"===W});return l},elements:{reference:K.anchor},middleware:[floating_ui_react_dom_offset({mainAxis:g+er,alignmentAxis:_}),T&&floating_ui_react_dom_shift({mainAxis:!0,crossAxis:!1,limiter:"partial"===B?floating_ui_react_dom_limitShift():void 0,...ea}),T&&floating_ui_react_dom_flip({...ea}),floating_ui_react_dom_size({...ea,apply:({elements:o,rects:l,availableWidth:u,availableHeight:c})=>{let{width:h,height:g}=l.reference,y=o.floating.style;y.setProperty("--radix-popper-available-width",`${u}px`),y.setProperty("--radix-popper-available-height",`${c}px`),y.setProperty("--radix-popper-anchor-width",`${h}px`),y.setProperty("--radix-popper-anchor-height",`${g}px`)}}),Y&&floating_ui_react_dom_arrow({element:Y,padding:w}),transformOrigin({arrowWidth:et,arrowHeight:er}),Z&&floating_ui_react_dom_hide({strategy:"referenceHidden",...ea})]}),[ep,ef]=getSideAndAlignFromPlacement(eu),eh=useCallbackRef(H);N(()=>{ec&&eh?.()},[ec,eh]);let eg=ed.arrow?.x,em=ed.arrow?.y,ey=ed.arrow?.centerOffset!==0,[ev,eb]=h.useState();return N(()=>{q&&eb(window.getComputedStyle(q).zIndex)},[q]),(0,b.jsx)("div",{ref:es.setFloating,"data-radix-popper-content-wrapper":"",style:{...el,transform:ec?el.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ev,"--radix-popper-transform-origin":[ed.transformOrigin?.x,ed.transformOrigin?.y].join(" "),...ed.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:o.dir,children:(0,b.jsx)(ti,{scope:u,placedSide:ep,onArrowChange:X,arrowX:eg,arrowY:em,shouldHideArrow:ey,children:(0,b.jsx)(eD.div,{"data-side":ep,"data-align":ef,...U,ref:Q,style:{...U.style,animation:ec?void 0:"none"}})})})});ta.displayName=tn;var ts="PopperArrow",tl={top:"bottom",right:"left",bottom:"top",left:"r
158ight"},tu=h.forwardRef(function(o,l){let{__scopePopper:u,...c}=o,h=to(ts,u),g=tl[h.placedSide];return(0,b.jsx)("span",{ref:h.onArrowChange,style:{position:"absolute",left:h.arrowX,top:h.arrowY,[g]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[h.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[h.placedSide],visibility:h.shouldHideArrow?"hidden":void 0},children:(0,b.jsx)(e4,{...c,ref:l,style:{...c.style,display:"block"}})})});function isNotNull(o){return null!==o}tu.displayName=ts;var transformOrigin=o=>({name:"transformOrigin",options:o,fn(l){let{placement:u,rects:c,middlewareData:h}=l,g=h.arrow?.centerOffset!==0,y=g?0:o.arrowWidth,b=g?0:o.arrowHeight,[_,w]=getSideAndAlignFromPlacement(u),T={start:"0%",center:"50%",end:"100%"}[w],I=(h.arrow?.x??0)+y/2,N=(h.arrow?.y??0)+b/2,F="",B="";return"bottom"===_?(F=g?T:`${I}px`,B=`${-b}px`):"top"===_?(F=g?T:`${I}px`,B=`${c.floating.height+b}px`):"right"===_?(F=`${-b}px`,B=g?T:`${N}px`):"left"===_&&(F=`${c.floating.width+b}px`,B=g?T:`${N}px`),{data:{x:F,y:B}}}});function getSideAndAlignFromPlacement(o){let[l,u="center"]=o.split("-");return[l,u]}function useStateMachine(o,l){return h.useReducer((o,u)=>{let c=l[o][u];return c??o},o)}h.forwardRef((o,l)=>{let{container:u,...c}=o,[g,_]=h.useState(!1);N(()=>_(!0),[]);let w=u||g&&globalThis?.document?.body;return w?y.createPortal((0,b.jsx)(eD.div,{...c,ref:l}),w):null}).displayName="Portal";var Presence=o=>{let{present:l,children:u}=o,c=usePresence(l),g="function"==typeof u?u({present:c.isPresent}):h.Children.only(u),y=useComposedRefs(c.ref,react_presence_dist_getElementRef(g)),b="function"==typeof u;return b||c.isPresent?h.cloneElement(g,{ref:y}):null};function usePresence(o){let[l,u]=h.useState(),c=h.useRef(null),g=h.useRef(o),y=h.useRef("none"),b=o?"mounted":"unmounted",[_,w]=useStateMachine(b,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{let o=getAnimationName(c.current);y.current="mounted"===_?o:"none"},[_]),N(()=>{let l=c.current,u=g.current,h=u!==o;if(h){let c=y.current,h=getAnimationName(l);o?w("MOUNT"):"none"===h||l?.display==="none"?w("UNMOUNT"):u&&c!==h?w("ANIMATION_OUT"):w("UNMOUNT"),g.current=o}},[o,w]),N(()=>{if(l){let o;let u=l.ownerDocument.defaultView??window,handleAnimationEnd=h=>{let y=getAnimationName(c.current),b=y.includes(CSS.escape(h.animationName));if(h.target===l&&b&&(w("ANIMATION_END"),!g.current)){let c=l.style.animationFillMode;l.style.animationFillMode="forwards",o=u.setTimeout(()=>{"forwards"===l.style.animationFillMode&&(l.style.animationFillMode=c)})}},handleAnimationStart=o=>{o.target===l&&(y.current=getAnimationName(c.current))};return l.addEventListener("animationstart",handleAnimationStart),l.addEventListener("animationcancel",handleAnimationEnd),l.addEventListener("animationend",handleAnimationEnd),()=>{u.clearTimeout(o),l.removeEventListener("animationstart",handleAnimationStart),l.removeEventListener("animationcancel",handleAnimationEnd),l.removeEventListener("animationend",handleAnimationEnd)}}w("ANIMATION_END")},[l,w]),{isPresent:["mounted","unmountSuspended"].includes(_),ref:h.useCallback(o=>{c.current=o?getComputedStyle(o):null,u(o)},[])}}function getAnimationName(o){return o?.animationName||"none"}function react_presence_dist_getElementRef(o){let l=Object.getOwnPropertyDescriptor(o.props,"ref")?.get,u=l&&"isReactWarning"in l&&l.isReactWarning;return u?o.ref:(u=(l=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?o.props.ref:o.props.ref||o.ref}Presence.displayName="Presence";var tc=g[" useInsertionEffect ".trim().toString()]||N;function useControllableState({prop:o,defaultProp:l,onChange:u=()=>{},caller:c}){let[g,y,b]=useUncontrolledState({defaultProp:l,onChange:u}),_=void 0!==o,w=_?o:g;{let l=h.useRef(void 0!==o);h.useEffect(()=>{let o=l.current;if(o!==_){let l=_?"controlled":"uncontrolled";console.warn(`${c} is changing from ${o?"controlled":"uncontrolled"} to ${l}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}l.current=_},[_,c])}let T=h.useCallback(l=>{if(_){let u=isFunction(l)?l(o):l;u!==o&&b.current?.(u)}else y(l)},[_,o,y,b]);return[w,T]}function useUncontrolledState({defaultProp:o,onChange:l}){let[u,c]=h.useState(o),g=h.useRef(u),y=h.useRef(l);return tc(()=>{y.current=l},[l]),h.useEffect(()=>{g.current!==u&&(y.current?.(u),g.current=u)},[u,g]),[u,c,y]}function isFunction(o){return"function"==typeof o}Symbol("RADIX:SYNC_STATE");var td=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tp=h.forwardRef((o,l)=>(0,b.jsx)(eD.span,{...o,ref:l,style:{...td,...o.style}}));tp.displayName="VisuallyHidden";var[tf,th]=createContextScope("Tooltip",[e9]),tg=e9(),tm="TooltipProvider",ty="tooltip.open",[tv,tb]=tf(tm),TooltipProvider=o=>{let{__scopeTooltip:l,delayDuration:u=700,skipDelayDuration:c=300,disableHoverableContent:g=!1,children:y}=o,_=h.useRef(!0),w=h.useRef(!1),T=h.useRef(0);return h.useEffect(()=>{let o=T.current;return()=>window.clearTimeout(o)},[]),(0,b.jsx)(tv,{scope:l,isOpenDelayedRef:_,delayDuration:u,onOpen:h.useCallback(()=>{window.clearTimeout(T.current),_.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(T.current),T.current=window.setTimeout(()=>
vendor: 6,611 bytes, line 158
158_.current=!0,c)},[c]),isPointerInTransitRef:w,onPointerInTransitChange:h.useCallback(o=>{w.current=o},[]),disableHoverableContent:g,children:y})};TooltipProvider.displayName=tm;var t_="Tooltip",[tS,tw]=tf(t_),Tooltip=o=>{let{__scopeTooltip:l,children:u,open:c,defaultOpen:g,onOpenChange:y,disableHoverableContent:_,delayDuration:w}=o,T=tb(t_,o.__scopeTooltip),I=tg(l),[N,F]=h.useState(null),B=useId(),Z=h.useRef(0),W=_??T.disableHoverableContent,H=w??T.delayDuration,U=h.useRef(!1),[K,q]=useControllableState({prop:c,defaultProp:g??!1,onChange:o=>{o?(T.onOpen(),document.dispatchEvent(new CustomEvent(ty))):T.onClose(),y?.(o)},caller:t_}),G=h.useMemo(()=>K?U.current?"delayed-open":"instant-open":"closed",[K]),Q=h.useCallback(()=>{window.clearTimeout(Z.current),Z.current=0,U.current=!1,q(!0)},[q]),Y=h.useCallback(()=>{window.clearTimeout(Z.current),Z.current=0,q(!1)},[q]),X=h.useCallback(()=>{window.clearTimeout(Z.current),Z.current=window.setTimeout(()=>{U.current=!0,q(!0),Z.current=0},H)},[H,q]);return h.useEffect(()=>()=>{Z.current&&(window.clearTimeout(Z.current),Z.current=0)},[]),(0,b.jsx)(Popper,{...I,children:(0,b.jsx)(tS,{scope:l,contentId:B,open:K,stateAttribute:G,trigger:N,onTriggerChange:F,onTriggerEnter:h.useCallback(()=>{T.isOpenDelayedRef.current?X():Q()},[T.isOpenDelayedRef,X,Q]),onTriggerLeave:h.useCallback(()=>{W?Y():(window.clearTimeout(Z.current),Z.current=0)},[Y,W]),onOpen:Q,onClose:Y,disableHoverableContent:W,children:u})})};Tooltip.displayName=t_;var tx="TooltipTrigger",tC=h.forwardRef((o,l)=>{let{__scopeTooltip:u,...c}=o,g=tw(tx,u),y=tb(tx,u),_=tg(u),w=h.useRef(null),T=useComposedRefs(l,w,g.onTriggerChange),I=h.useRef(!1),N=h.useRef(!1),F=h.useCallback(()=>I.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",F),[F]),(0,b.jsx)(tr,{asChild:!0,..._,children:(0,b.jsx)(eD.button,{"aria-describedby":g.open?g.contentId:void 0,"data-state":g.stateAttribute,...c,ref:T,onPointerMove:composeEventHandlers(o.onPointerMove,o=>{"touch"===o.pointerType||N.current||y.isPointerInTransitRef.current||(g.onTriggerEnter(),N.current=!0)}),onPointerLeave:composeEventHandlers(o.onPointerLeave,()=>{g.onTriggerLeave(),N.current=!1}),onPointerDown:composeEventHandlers(o.onPointerDown,()=>{g.open&&g.onClose(),I.current=!0,document.addEventListener("pointerup",F,{once:!0})}),onFocus:composeEventHandlers(o.onFocus,()=>{I.current||g.onOpen()}),onBlur:composeEventHandlers(o.onBlur,g.onClose),onClick:composeEventHandlers(o.onClick,g.onClose)})})});tC.displayName=tx;var[tE,tk]=tf("TooltipPortal",{forceMount:void 0}),tP="TooltipContent",tO=h.forwardRef((o,l)=>{let u=tk(tP,o.__scopeTooltip),{forceMount:c=u.forceMount,side:h="top",...g}=o,y=tw(tP,o.__scopeTooltip);return(0,b.jsx)(Presence,{present:c||y.open,children:y.disableHoverableContent?(0,b.jsx)(t$,{side:h,...g,ref:l}):(0,b.jsx)(tT,{side:h,...g,ref:l})})}),tT=h.forwardRef((o,l)=>{let u=tw(tP,o.__scopeTooltip),c=tb(tP,o.__scopeTooltip),g=h.useRef(null),y=useComposedRefs(l,g),[_,w]=h.useState(null),{trigger:T,onClose:I}=u,N=g.current,{onPointerInTransitChange:F}=c,B=h.useCallback(()=>{w(null),F(!1)},[F]),Z=h.useCallback((o,l)=>{let u=o.currentTarget,c={x:o.clientX,y:o.clientY},h=getExitSideFromRect(c,u.getBoundingClientRect()),g=getPaddedExitPoints(c,h),y=getPointsFromRect(l.getBoundingClientRect()),b=getHull([...g,...y]);w(b),F(!0)},[F]);return h.useEffect(()=>()=>B(),[B]),h.useEffect(()=>{if(T&&N){let handleTriggerLeave=o=>Z(o,N),handleContentLeave=o=>Z(o,T);return T.addEventListener("pointerleave",handleTriggerLeave),N.addEventListener("pointerleave",handleContentLeave),()=>{T.removeEventListener("pointerleave",handleTriggerLeave),N.removeEventListener("pointerleave",handleContentLeave)}}},[T,N,Z,B]),h.useEffect(()=>{if(_){let handleTrackPointerGrace=o=>{let l=o.target,u={x:o.clientX,y:o.clientY},c=T?.contains(l)||N?.contains(l),h=!isPointInPolygon(u,_);c?B():h&&(B(),I())};return document.addEventListener("pointermove",handleTrackPointerGrace),()=>document.removeEventListener("pointermove",handleTrackPointerGrace)}},[T,N,_,I,B]),(0,b.jsx)(t$,{...o,ref:y})}),[tR,tj]=tf(t_,{isInside:!1}),tA=dist_createSlottable("TooltipContent"),t$=h.forwardRef((o,l)=>{let{__scopeTooltip:u,children:c,"aria-label":g,onEscapeKeyDown:y,onPointerDownOutside:_,...w}=o,T=tw(tP,u),I=tg(u),{onClose:N}=T;return h.useEffect(()=>(document.addEventListener(ty,N),()=>document.removeEventListener(ty,N)),[N]),h.useEffect(()=>{if(T.trigger){let handleScroll=o=>{let l=o.target;l?.contains(T.trigger)&&N()};return window.addEventListener("scroll",handleScroll,{capture:!0}),()=>window.removeEventListener("scroll",handleScroll,{capture:!0})}},[T.trigger,N]),(0,b.jsx)(ez,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:y,onPointerDownOutside:_,onFocusOutside:o=>o.preventDefault(),onDismiss:N,children:(0,b.jsxs)(ta,{"data-state":T.stateAttribute,...I,...w,ref:l,style:{...w.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,b.jsx)(tA,{children:c}),(0,b.jsx)(tR,{scope:u,isInside:!0,children:(0,b.jsx)(tp,{id:T.contentId,role:"tooltip",children:g||c})})]})})});tO.displayName=tP;var tI="TooltipArrow",tL=h.forwardRef((o,l)=>{let{__scopeTooltip:u,...c}=o,h=tg(u),g=tj(tI,u);return g.isInside?null:(0,b.jsx)(tu,{...h,...c,ref:l})});function getExitSideFromRect(o,l){let u=Math.abs(l.top-o.y),c=Math.abs(l.bottom-o.y),h=Math.abs(l.right-o.x),g=Math.abs(l.left-o.x);switch(Math.min(u,c,h,g)){case g:return"left";case h:return"right";case u:return"top";case c:return"bottom";default:throw Error("unreachable")}}function getPaddedExitPoints(o,l,u=5){let c=[];switch(l){case"top":c.push({x:o.x-u,y:o.y+u},{x:o.x+u,y:o.y+u});break;case"bottom":c.push({x:o.x-u,y:o.y-u},{x:o.x+u,y:o.y-u});break;case"left":c.push({x:o.x+u,y:o.y-u},{x:o.x+u,y:o.y+u});break;case"right":c.push({x:o.x-u,y:o.y-u},{x:o.x-u,y:o.y+u})}return c}function getPointsFromRect(o){let{top:l,right:u,bottom:c,left:h}=o;return[{x:h,y:l},{x:u,y:l},{x:u,y:c},{x:h,y:c}]}function isPointInPolygon(o,l){let{x:u,y:c}=o,h=!1;for(let o=0,g=l.length-1;o<l.length;g=o++){let y=l[o],b=l[g],_=y.x,w=y.y,T=b.x,I=b.y,N=w>c!=I>c&&u<(T-_)*(c-w)/(I-w)+_;N&&(h=!h)}return h}function getHull(o){let l=o.slice();return l.sort((o,l)=>o.x<l.x?-1:o.x>l.x?1:o.y<l.y?-1:o.y>l.y?1:0),getHullPresorted(l)}
158function getHullPresorted(o){if(o.length<=1)return o.slice();let l=[];for(let u=0;u<o.length;u++){let c=o[u];for(;l.length>=2;){let o=l[l.length-1],u=l[l.length-2];if((o.x-u.x)*(c.y-u.y)>=(o.y-u.y)*(c.x-u.x))l.pop();else break}l.push(c)}l.pop();let u=[];for(let l=o.length-1;l>=0;l--){let c=o[l];for(;u.length>=2;){let o=u[u.length-1],l=u[u.length-2];if((o.x-l.x)*(c.y-l.y)>=(o.y-l.y)*(c.x-l.x))u.pop();else break}u.push(c)}return(u.pop(),1===l.length&&1===u.length&&l[0].x===u[0].x&&l[0].y===u[0].y)?l:l.concat(u)}function vector_plugin_5e122f40_esm_objectWithoutPropertiesLoose(o,l){if(null==o)return{};var u={};for(var c in o)if(({}).hasOwnProperty.call(o,c)){if(-1!==l.indexOf(c))continue;u[c]=o[c]}return u}function vector_plugin_5e122f40_esm_objectWithoutProperties(o,l){if(null==o)return{};var u,c,h=vector_plugin_5e122f40_esm_objectWithoutPropertiesLoose(o,l);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(o);for(c=0;c<g.length;c++)u=g[c],-1===l.indexOf(u)&&({}).propertyIsEnumerable.call(o,u)&&(h[u]=o[u])}return h}tL.displayName=tI;let tM=((nt={})[nt.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",nt[nt.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",nt[nt.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",nt[nt.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",nt[nt.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",nt[nt.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",nt[nt.THEME_ERROR=6]="THEME_ERROR",nt[nt.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",nt[nt.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",nt[nt.EMPTY_KEY=9]="EMPTY_KEY",nt),tD={[tM.UNSUPPORTED_INPUT]:(o,l)=>[`An input with type \`${o}\` input was found at path \`${l}\` but it's not supported yet.`],[tM.NO_COMPONENT_FOR_TYPE]:(o,l)=>[`Type \`${o}\` found at path \`${l}\` can't be displayed in panel because no component supports it yet.`],[tM.UNKNOWN_INPUT]:(o,l)=>[`input at path \`${o}\` is not recognized.`,l],[tM.DUPLICATE_KEYS]:(o,l,u)=>[`Key \`${o}\` of path \`${l}\` already exists at path \`${u}\`. Even nested keys need to be unique. Rename one of the keys.`],[tM.ALREADY_REGISTERED_TYPE]:o=>[`Type ${o} has already been registered. You can't register a component with the same type.`],[tM.CLIPBOARD_ERROR]:o=>["Error copying the value",o],[tM.THEME_ERROR]:(o,l)=>[`Error accessing the theme \`${o}.${l}\` value.`],[tM.PATH_DOESNT_EXIST]:o=>[`Error getting the value at path \`${o}\`. There is probably an error in your \`render\` function.`],[tM.INPUT_TYPE_OVERRIDE]:(o,l,u)=>[`Input at path \`${o}\` already exists with type: \`${l}\`. Its type cannot be overridden with type \`${u}\`.`],[tM.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function _log(o,l,...u){let c=tD[l],[h,...g]=c(...u);console[o]("LEVA: "+h,...g)}let tN=_log.bind(null,"warn"),tF=_log.bind(null,"log"),tz=["value"],tB=["schema"],tV=["value"],tZ=[],tW={};function getValueType(o){let{value:l}=o,u=vector_plugin_5e122f40_esm_objectWithoutProperties(o,tz);for(let o of tZ){let c=o(l,u);if(c)return c}}function register(o,l){let{schema:u}=l,c=vector_plugin_5e122f40_esm_objectWithoutProperties(l,tB);if(o in tW){tN(tM.ALREADY_REGISTERED_TYPE,o);return}tZ.push((l,c)=>u(l,c)&&o),tW[o]=c}function normalize$3(o,l,u,c){let{normalize:h}=tW[o];if(h)return h(l,u,c);if("object"!=typeof l||!("value"in l))return{value:l};let{value:g}=l,y=vector_plugin_5e122f40_esm_objectWithoutProperties(l,tV);return{value:g,settings:y}}function sanitize$4(o,l,u,c,h,g){let{sanitize:y}=tW[o];return y?y(l,u,c,h,g):l}function format$2(o,l,u){let{format:c}=tW[o];return c?c(l,u):l}function vector_plugin_5e122f40_esm_toPrimitive(o,l){if("object"!=typeof o||!o)return o;var u=o[Symbol.toPrimitive];if(void 0!==u){var c=u.call(o,l||"default");if("object"!=typeof c)return c;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===l?String:Number)(o)}function vector_plugin_5e122f40_esm_toPropertyKey(o){var l=vector_plugin_5e122f40_esm_toPrimitive(o,"string");return"symbol"==typeof l?l:l+""}function vector_plugin_5e122f40_esm_defineProperty(o,l,u){return(l=vector_plugin_5e122f40_esm_toPropertyKey(l))in o?Object.defineProperty(o,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[l]=u,o}function vector_plugin_5e122f40_esm_ownKeys(o,l){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);l&&(c=c.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),u.push.apply(u,c)}return u}
158function vector_plugin_5e122f40_esm_objectSpread2(o){for(var l=1;l<arguments.length;l++){var u=null!=arguments[l]?arguments[l]:{};l%2?vector_plugin_5e122f40_esm_ownKeys(Object(u),!0).forEach(function(l){vector_plugin_5e122f40_esm_defineProperty(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):vector_plugin_5e122f40_esm_ownKeys(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}let vector_plugin_5e122f40_esm_clamp=(o,l,u)=>o>u?u:o<l?l:o,parseNumber=o=>{if(""===o||"number"==typeof o)return o;try{let l=vector_plugin_5e122f40_esm_evaluate(o);if(!isNaN(l))return l}catch(o){}return parseFloat(o)},tH=Math.log(10);function getStep(o){let l=Math.abs(+String(o).replace(".",""));if(0===l)return .01;for(;0!==l&&l%10==0;)l/=10;let u=Math.floor(Math.log(l)/tH)+1;return Math.max(Math.pow(10,Math.floor(Math.log10(Math.abs(o)))-u),.001)}let range=(o,l,u)=>{if(u===l)return 0;let c=vector_plugin_5e122f40_esm_clamp(o,l,u);return(c-l)/(u-l)},invertedRange=(o,l,u)=>o*(u-l)+l,getUid=()=>"_"+Math.random().toString(36).substr(2,9),tU=/\(([^\(\)]+)\)/,tK=/(-?\d+(?:\.\d+)?)\s*\^\s*(-?\d+(?:\.\d+)?)/,tq=/(-?\d+(?:\.\d+)?)\s*([*/])\s*(-?\d+(?:\.\d+)?)/,tG=/(-?\d+(?:\.\d+)?)\s*([+-])\s*(-?\d+(?:\.\d+)?)/;function vector_plugin_5e122f40_esm_evaluate(o){return(o=o.replace(/\s+/g,""),tU.test(o))?vector_plugin_5e122f40_esm_evaluate(o.replace(tU,(o,l)=>vector_plugin_5e122f40_esm_evaluate(l).toString())):tK.test(o)?vector_plugin_5e122f40_esm_evaluate(o.replace(tK,(o,l,u)=>Math.pow(Number(l),Number(u)).toString())):tq.test(o)?vector_plugin_5e122f40_esm_evaluate(o.replace(tq,(o,l,u,c)=>"*"===u?(Number(l)*Number(c)).toString():0===Number(c)?(()=>{throw Error("Division by zero")})():(Number(l)/Number(c)).toString())):tG.test(o)?vector_plugin_5e122f40_esm_evaluate(o.replace(tG,(o,l,u,c)=>"+"===u?(Number(l)+Number(c)).toString():(Number(l)-Number(c)).toString())):Number(o)}function pick(o,l){return l.reduce((l,u)=>(o&&o.hasOwnProperty(u)&&(l[u]=o[u]),l),{})}function omit(o,l){let u=vector_plugin_5e122f40_esm_objectSpread2({},o);return l.forEach(l=>l in o&&delete u[l]),u}function mapArrayToKeys(o,l){return o.reduce((o,u,c)=>Object.assign(o,{[l[c]]:u}),{})}function isObject(o){return"[object Object]"===Object.prototype.toString.call(o)}let isEmptyObject=o=>isObject(o)&&0===Object.keys(o).length,tQ=((nr={}).BUTTON="BUTTON",nr.BUTTON_GROUP="BUTTON_GROUP",nr.MONITOR="MONITOR",nr.FOLDER="FOLDER",nr),tY=((nn={}).SELECT="SELECT",nn.IMAGE="IMAGE",nn.NUMBER="NUMBER",nn.COLOR="COLOR",nn.STRING="STRING",nn.BOOLEAN="BOOLEAN",nn.INTERVAL="INTERVAL",nn.VECTOR3D="VECTOR3D",nn.VECTOR2D="VECTOR2D",nn),tJ=["type","__customInput"],tX=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],t0=["type"];function parseOptions(o,l,u={},c){var h,g;if("object"!=typeof o||Array.isArray(o))return{type:c,input:o,options:vector_plugin_5e122f40_esm_objectSpread2({key:l,label:l,optional:!1,disabled:!1,order:0},u)};if("__customInput"in o){let{type:u,__customInput:c}=o,h=vector_plugin_5e122f40_esm_objectWithoutProperties(o,tJ);return parseOptions(c,l,h,u)}let{render:y,label:b,optional:_,order:w=0,disabled:T,hint:I,onChange:N,onEditStart:F,onEditEnd:B,transient:Z}=o,W=vector_plugin_5e122f40_esm_objectWithoutProperties(o,tX),H=vector_plugin_5e122f40_esm_objectSpread2({render:y,key:l,label:null!=b?b:l,hint:I,transient:null!=Z?Z:!!N,onEditStart:F,onEditEnd:B,disabled:T,optional:_,order:w},u),{type:U}=W,K=vector_plugin_5e122f40_esm_objectWithoutProperties(W,t0);return(U=null!=c?c:U)in tQ?{type:U,input:K,options:H}:{type:U,input:c&&isObject(K)&&"value"in K?K.value:isEmptyObject(K)?void 0:K,options:vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},H),{},{onChange:N,optional:null!==(h=H.optional)&&void 0!==h&&h,disabled:null!==(g=H.disabled)&&void 0!==g&&g})}}function normalizeInput(o,l,u,c){let h=parseOptions(o,l),{type:g,input:y,options:b}=h;if(g)return g in tQ?h:{type:g,input:normalize$3(g,y,u,c),options:b};let _=getValueType(y);return _?{type:_,input:normalize$3(_,y,u,c),options:b}:!!(_=getValueType({value:y}))&&{type:_,input:normalize$3(_,{value:y},u,c),options:b}}function updateInput(o,l,u,c,h){let{value:g,type:y,settings:b}=o;
158o.value=sanitizeValue({type:y,value:g,settings:b},l,u,c),o.fromPanel=h}let ValueError=function(o,l,u){this.type="LEVA_ERROR",this.message="LEVA: "+o,this.previousValue=l,this.error=u};function sanitizeValue({type:o,value:l,settings:u},c,h,g){let y;let b="SELECT"!==o&&"function"==typeof c?c(l):c;try{y=sanitize$4(o,b,u,l,h,g)}catch(o){throw new ValueError(`The value \`${c}\` did not result in a correct value.`,l,o)}return dequal(y,l)?l:y}let debounce=(o,l,u=!1)=>{let c=0;return function(){let h=arguments,g=u&&!c,next=()=>o.apply(this,h);window.clearTimeout(c),c=window.setTimeout(next,l),g&&next()}},multiplyStep=o=>o.shiftKey?5:o.altKey?.2:1,t1=["value"],t2=["min","max"],sanitize$3=(o,{min:l=-1/0,max:u=1/0,suffix:c})=>{let h=parseFloat(o);if(""===o||isNaN(h))throw Error("Invalid number");let g=vector_plugin_5e122f40_esm_clamp(h,l,u);return c?g+c:g},normalize$2=o=>{let{value:l}=o,u=vector_plugin_5e122f40_esm_objectWithoutProperties(o,t1),{min:c=-1/0,max:h=1/0}=u,g=vector_plugin_5e122f40_esm_objectWithoutProperties(u,t2),y=parseFloat(l),b="string"==typeof l?l.substring((""+y).length):void 0;y=vector_plugin_5e122f40_esm_clamp(y,c,h);let _=u.step;!_&&(Number.isFinite(c)?_=Number.isFinite(h)?+(Math.abs(h-c)/100).toPrecision(1):+(Math.abs(y-c)/100).toPrecision(1):Number.isFinite(h)&&(_=+(Math.abs(h-y)/100).toPrecision(1)));let w=_?10*getStep(_):getStep(y);_=_||w/10;let T=Math.round(vector_plugin_5e122f40_esm_clamp(Math.log10(1/w),0,2));return{value:b?y+b:y,settings:vector_plugin_5e122f40_esm_objectSpread2({initialValue:y,step:_,pad:T,min:c,max:h,suffix:b},g)}},sanitizeStep$1=(o,{step:l,initialValue:u})=>u+Math.round((o-u)/l)*l;var t5=Object.freeze({__proto__:null,schema:o=>{if("number"==typeof o)return!0;if("string"==typeof o){let l=parseFloat(o);if(isNaN(l))return!1;let u=o.substring((""+l).length).trim();return u.length<4}return!1},sanitize:sanitize$3,format:(o,{pad:l=0,suffix:u})=>{let c=parseFloat(o).toFixed(l);return u?c+u:c},normalize:normalize$2,sanitizeStep:sanitizeStep$1});function vector_plugin_5e122f40_esm_extends(){return(vector_plugin_5e122f40_esm_extends=Object.assign?Object.assign.bind():function(o){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var c in u)({}).hasOwnProperty.call(u,c)&&(o[c]=u[c])}return o}).apply(null,arguments)}let t3=(0,h.createContext)({});function useInputContext(){return(0,h.useContext)(t3)}let t4=(0,h.createContext)(null),t8=(0,h.createContext)(null),t6=(0,h.createContext)(null);function vector_plugin_5e122f40_esm_useStoreContext(){return(0,h.useContext)(t8)}function usePanelSettingsContext(){return(0,h.useContext)(t6)}let getDefaultTheme=()=>({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function createStateClass(o,l){let[u,c]=o.split(" "),h={};return"none"!==u&&(h.boxShadow=`${l.inset?"inset ":""}0 0 0 $borderWidths${[l.key]} $colors${"default"!==u&&u||l.borderColor}`),c&&(h.backgroundColor=c),h}let t9={$inputStyle:()=>o=>createStateClass(o,{key:"$input",borderColor:"$highlight1",inset:!0}
158),$focusStyle:()=>o=>createStateClass(o,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>o=>createStateClass(o,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>o=>createStateClass(o,{key:"$active",borderColor:"$accent1",inset:!0})},t7=(o=>{let l=(o=>{let l=!1,u=em(o,o=>{l=!0;let u="prefix"in(o="object"==typeof o&&o||{})?String(o.prefix):"",c="object"==typeof o.media&&o.media||{},h="object"==typeof o.root?o.root||null:globalThis.document||null,g="object"==typeof o.theme&&o.theme||{},y={prefix:u,media:c,theme:g,themeMap:"object"==typeof o.themeMap&&o.themeMap||{...Y},utils:"object"==typeof o.utils&&o.utils||{}},b=E(h),_={css:M(y,b),globalCss:D(y,b),keyframes:V(y,b),createTheme:J(y,b),reset(){b.reset(),_.theme.toString()},theme:{},sheet:b,config:y,prefix:u,getCssText:b.toString,toString:b.toString};return String(_.theme=_.createTheme(g)),_});return l||u.reset(),u})(o);return l.styled=(({config:o,sheet:l})=>ey(o,()=>{let u=M(o,l);return(...o)=>{let l=u(...o),c=l[X].type,g=h.forwardRef((o,u)=>{let g=o&&o.as||c,{props:y,deferredInjector:b}=l(o);return delete y.as,y.ref=u,b?h.createElement(h.Fragment,null,h.createElement(g,y),h.createElement(b,null)):h.createElement(g,y)});return g.className=l.className,g.displayName=`Styled.${c.displayName||c.name||c}`,g.selector=l.selector,g.toString=()=>l.selector,g[X]=l[X],g}}))(l),l})({prefix:"leva",theme:getDefaultTheme(),utils:vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},t9),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:o=>({"&:focus":t9.$focusStyle()(o)}),$focusWithin:o=>({"&:focus-within":t9.$focusStyle()(o)}),$hover:o=>({"&:hover":t9.$hoverStyle()(o)}),$active:o=>({"&:active":t9.$activeStyle()(o)})})}),re=t7.styled;t7.css;let rt=t7.createTheme,rr=t7.globalCss;t7.keyframes;let rn=rr({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function mergeTheme(o){let l=getDefaultTheme();if(!o)return{theme:l,className:""};Object.keys(o).forEach(u=>{Object.assign(l[u],o[u])});let u=rt(l);return{theme:l,className:u.className}}function useTh(o,l){let{theme:u}=(0,h.useContext)(t4);if(!(o in u)||!(l in u[o]))return tN(tM.THEME_ERROR,o,l),"";let c=l;for(;;){let l=u[o][c];if("string"!=typeof l||"$"!==l.charAt(0))return l;c=l.substr(1)}}let ri=re("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),ro=re("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${ri}`]:{paddingLeft:0}}),ra=re(ro,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),rs=re("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),rl=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],ru=["onUpdate"];function ValueInput(o){let{innerLabel:l,value:u,onUpdate:c,onChange:g,onKeyDown:y,type:b,id:_,inputType:w="text",rows:T=0}=o,I=vector_plugin_5e122f40_esm_objectWithoutProperties(o,rl),{id:N,emitOnEditStart:F,emitOnEditEnd:B,disabled:Z}=useInputContext(),W=(0,h.useRef)(null),H=T>0,U=H?"textarea":"input",K=(0,h.useCallback)(o=>l=>{let u=l.currentTarget.value;o(u)},[]);h.useEffect(()=>{let o=W.current,l=K(o=>{c(o),B()});return null==o||o.addEventListener("blur",l),()=>null==o?void 0:o.removeEventListener("blur",l)},[K,c,B]);let q=(0,h.useCallback)(o=>{"Enter"===o.key&&K(c)(o)},[K,c]),G=Object.assign({as:U},H?{rows:T}:{},I);return h.createElement(rs,{textArea:H},l&&"string"==typeof l?h.createElement(ro,null,l):l,h.createElement(ri,vector_plugin_5e122f40_esm_extends({levaType:b,ref:W,id:_||N,type:w,autoComplete:"off",spellCheck:"false",value:u,onChange:K(g),onFocus:()=>F(),onKeyPress:q,onKeyDown:y,disabled:Z},G)))}
158function NumberInput(o){let{onUpdate:l}=o,u=vector_plugin_5e122f40_esm_objectWithoutProperties(o,ru),c=(0,h.useCallback)(o=>l(parseNumber(o)),[l]),g=(0,h.useCallback)(o=>{let u="ArrowUp"===o.key?1:"ArrowDown"===o.key?-1:0;if(u){o.preventDefault();let c=o.altKey?.1:o.shiftKey?10:1;l(o=>parseFloat(o)+u*c)}},[l]);return h.createElement(ValueInput,vector_plugin_5e122f40_esm_extends({},u,{onUpdate:c,onKeyDown:g,type:"number"}))}let rc=re("div",{}),rd=re("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),rp=re("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${rd}::after`]:{opacity:.6},[`${rc}:hover > & + ${rd}::after`]:{opacity:.6},[`${rc}:hover > & > svg`]:{opacity:1}}),rf=re("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${rc}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),rh=re("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${rf} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),rg=re(rh,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),rm=re("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),ry=re("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),rv=re("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),rb=re("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${rv}`]:{pointerEvents:"auto"}}}}}),r_=re("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),rS=re("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),rw=re(tL,{fill:"$toolTipBackground"});function vector_plugin_5e122f40_esm_Portal({children:o,container:l=null==globalThis||null===(ni=globalThis.document)||void 0===ni?void 0:ni.body}){let{className:u}=(0,h.useContext)(t4);return h.createElement(F,{className:u,container:l},o)}let rx=["align"];function OptionalToggle(){let{id:o,disable:l,disabled:u}=useInputContext();return h.createElement(h.Fragment,null,h.createElement(ry,{id:o+"__disable",type:"checkbox",checked:!u,onChange:()=>l(!u)}),h.createElement("label",{htmlFor:o+"__disable"}))}function RawLabel(o){let{id:l,optional:u,hint:c}=useInputContext(),g=o.htmlFor||l||void 0,y=c||"string"!=typeof o.children?void 0:o.children;return h.createElement(h.Fragment,null,u&&h.createElement(OptionalToggle,null),void 0!==c?h.createElement(Tooltip,null,h.createElement(tC,{asChild:!0},h.createElement(rv,vector_plugin_5e122f40_esm_extends({htmlFor:g},o))),h.createElement(tO,{side:"top",sideOffset:2},h.createElement(rS,null,c,h.createElement(rw,null)))):h.createElement(rv,vector_plugin_5e122f40_esm_extends({htmlFor:g,title:y},o)))}function Label(o){let{align:l}=o,u=vector_plugin_5e122f40_esm_objectWithoutProperties(o,rx),{value:c,label:g,key:y,disabled:b}=useInputContext(),{hideCopyButton:_}=usePanelSettingsContext(),[w,T]=(0,h.useState)(!1),handleClick=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[y]:null!=c?c:""})),T(!0)}catch(o){tN(tM.CLIPBOARD_ERROR,{[y]:c})}};return h.createElement(rm,{align:l,onPointerLeave:()=>T(!1)},h.createElement(RawLabel,u),!_&&void 0!==y&&!b&&h.createElement("div",{title:`Click to copy ${"string"==typeof g?g:y} value`},w?h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),h.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):h.createElement("svg",{onClick:handleClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),h.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}let rC=["toggled"],rE=re("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Chevron(o){let{toggled:l}=o,u=vector_plugin_5e122f40_esm_objectWithoutProperties(o,rC);return h.createElement(rE,vector_plugin_5e122f40_esm_extends({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${l?0:-90}deg)`}},u),h.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}let rk=["input"];
158function Row(o){let{input:l}=o,u=vector_plugin_5e122f40_esm_objectWithoutProperties(o,rk);return l?h.createElement(rg,u):h.createElement(rh,u)}function useInputSetters({value:o,type:l,settings:u,setValue:c}){let[g,y]=(0,h.useState)(format$2(l,o,u)),b=(0,h.useRef)(o),_=(0,h.useRef)(u);_.current=u;let w=(0,h.useCallback)(o=>y(format$2(l,o,_.current)),[l]),T=(0,h.useCallback)(o=>{try{c(o)}catch(u){let{type:o,previousValue:l}=u;if("LEVA_ERROR"!==o)throw u;w(l)}},[w,c]);return(0,h.useEffect)(()=>{dequal(o,b.current)||w(o),b.current=o},[o,w]),{displayValue:g,onChange:y,onUpdate:T}}function vector_plugin_5e122f40_esm_useDrag(o,l){let{emitOnEditStart:u,emitOnEditEnd:c}=useInputContext();return useDrag(l=>{l.first&&(document.body.classList.add("leva__panel__dragged"),null==u||u());let h=o(l);return l.last&&(document.body.classList.remove("leva__panel__dragged"),null==c||c()),h},l)}function useCanvas2d(o){let l=(0,h.useRef)(null),u=(0,h.useRef)(null),c=(0,h.useRef)(!1);return(0,h.useEffect)(()=>{let h=debounce(()=>{l.current.width=l.current.offsetWidth*window.devicePixelRatio,l.current.height=l.current.offsetHeight*window.devicePixelRatio,o(l.current,u.current)},250);return window.addEventListener("resize",h),c.current||(h(),c.current=!0),()=>window.removeEventListener("resize",h)},[o]),(0,h.useEffect)(()=>{u.current=l.current.getContext("2d")},[]),[l,u]}function useTransform(){let o=(0,h.useRef)(null),l=(0,h.useRef)({x:0,y:0}),u=(0,h.useCallback)(u=>{Object.assign(l.current,u),o.current&&(o.current.style.transform=`translate3d(${l.current.x}px, ${l.current.y}px, 0)`)},[]);return[o,u]}let rP=["__refCount"],getInputAtPath=(o,l)=>{if(!o[l])return null;let u=o[l],c=vector_plugin_5e122f40_esm_objectWithoutProperties(u,rP);return c};function useInput(o){let l=vector_plugin_5e122f40_esm_useStoreContext(),[u,c]=(0,h.useState)(getInputAtPath(l.getData(),o)),g=(0,h.useCallback)(u=>l.setValueAtPath(o,u,!0),[o,l]),y=(0,h.useCallback)(u=>l.setSettingsAtPath(o,u),[o,l]),b=(0,h.useCallback)(u=>l.disableInputAtPath(o,u),[o,l]),_=(0,h.useCallback)(()=>l.emitOnEditStart(o),[o,l]),w=(0,h.useCallback)(()=>l.emitOnEditEnd(o),[o,l]);return(0,h.useEffect)(()=>{c(getInputAtPath(l.getData(),o));let u=l.useStore.subscribe(l=>getInputAtPath(l.data,o),c,{equalityFn:shallow});return()=>u()},[l,o]),[u,{set:g,setSettings:y,disable:b,storeId:l.storeId,emitOnEditStart:_,emitOnEditEnd:w}]}let rO=re("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),rT=re("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),rR=re("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),rj=re("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),rA=re("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function RangeSlider({value:o,min:l,max:u,onDrag:c,step:g,initialValue:y}){let b=(0,h.useRef)(null),_=(0,h.useRef)(null),w=(0,h.useRef)(0),T=useTh("sizes","scrubberWidth"),I=vector_plugin_5e122f40_esm_useDrag(({event:h,first:I,xy:[N],movement:[F],memo:B})=>{if(I){let{width:c,left:g}=b.current.getBoundingClientRect();w.current=c-parseFloat(T);let y=(null==h?void 0:h.target)===_.current;B=y?o:invertedRange((N-g)/c,l,u)}let Z=B+invertedRange(F/w.current,0,u-l);return c(sanitizeStep$1(Z,{step:g,initialValue:y})),B}),N=range(o,l,u);return h.createElement(rj,vector_plugin_5e122f40_esm_extends({ref:b},I()),h.createElement(rT,null,h.createElement(rA,{style:{left:0,right:`${(1-N)*100}%`}})),h.createElement(rR,{ref:_,style:{left:`calc(${N} * (100% - ${T}))`}}))}
158let r$=h.memo(({label:o,onUpdate:l,step:u,innerLabelTrim:c})=>{let[g,y]=(0,h.useState)(!1),b=vector_plugin_5e122f40_esm_useDrag(({active:o,delta:[c],event:h,memo:g=0,first:b,last:_,target:w})=>(b&&w.requestPointerLock(),_&&document.exitPointerLock(),y(o),Math.abs(g+=c/2)>=1&&(l(o=>parseFloat(o)+Math.floor(g)*u*multiplyStep(h)),g=0),g));return h.createElement(ra,vector_plugin_5e122f40_esm_extends({dragging:g,title:o.length>1?o:""},b()),o.slice(0,c))});function Number$1({label:o,id:l,displayValue:u,onUpdate:c,onChange:g,settings:y,innerLabelTrim:b=1}){let _=b>0&&h.createElement(r$,{label:o,step:y.step,onUpdate:c,innerLabelTrim:b});return h.createElement(NumberInput,{id:l,value:String(u),onUpdate:c,onChange:g,innerLabel:_})}function NumberComponent(){let o=useInputContext(),{label:l,value:u,onUpdate:c,settings:g,id:y}=o,{min:b,max:_}=g,w=_!==1/0&&b!==-1/0;return h.createElement(Row,{input:!0},h.createElement(Label,null,l),h.createElement(rO,{hasRange:w},w&&h.createElement(RangeSlider,vector_plugin_5e122f40_esm_extends({value:parseFloat(u),onDrag:c},g)),h.createElement(Number$1,vector_plugin_5e122f40_esm_extends({},o,{id:y,label:"value",innerLabelTrim:w?0:1}))))}let{sanitizeStep:rI}=t5,rL=vector_plugin_5e122f40_esm_objectWithoutProperties(t5,["sanitizeStep"]);var rM=vector_plugin_5e122f40_esm_objectSpread2({component:NumberComponent},rL),rD=Object.freeze({__proto__:null,schema:(o,l)=>K().schema({options:K().passesAnyOf(K().object(),K().array())}).test(l),sanitize:(o,{values:l})=>{if(0>l.indexOf(o))throw Error("Selected value doesn't match Select options");return o},format:(o,{values:l})=>l.indexOf(o),normalize:o=>{let l,u,{value:c,options:h}=o;return Array.isArray(h)?(u=h,l=h.map(o=>String(o))):(u=Object.values(h),l=Object.keys(h)),"value"in o?u.includes(c)||(l.unshift(String(c)),u.unshift(c)):c=u[0],Object.values(h).includes(c)||(h[String(c)]=c),{value:c,settings:{keys:l,values:u}}}});let rN=re("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),rF=re("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}
158),rz=re("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${rF}:focus + &`]:{$focusStyle:""},[`${rF}:hover + &`]:{$hoverStyle:""}});function Select({displayValue:o,value:l,onUpdate:u,id:c,settings:g,disabled:y}){let{keys:b,values:_}=g,w=(0,h.useRef)();return l===_[o]&&(w.current=b[o]),h.createElement(rN,null,h.createElement(rF,{id:c,value:o,onChange:o=>u(_[Number(o.currentTarget.value)]),disabled:y},b.map((o,l)=>h.createElement("option",{key:o,value:l},o))),h.createElement(rz,null,w.current),h.createElement(Chevron,{toggled:!0}))}var rB=vector_plugin_5e122f40_esm_objectSpread2({component:function(){let{label:o,value:l,displayValue:u,onUpdate:c,id:g,disabled:y,settings:b}=useInputContext();return h.createElement(Row,{input:!0},h.createElement(Label,null,o),h.createElement(Select,{id:g,value:l,displayValue:u,onUpdate:c,settings:b,disabled:y}))}},rD),rV=Object.freeze({__proto__:null,schema:o=>K().string().test(o),sanitize:o=>{if("string"!=typeof o)throw Error("Invalid string");return o},normalize:({value:o,editable:l=!0,rows:u=!1})=>({value:o,settings:{editable:l,rows:"number"==typeof u?u:u?5:0}})});let rZ=["displayValue","onUpdate","onChange","editable"],rW=re("div",{whiteSpace:"pre-wrap"});function String$1(o){let{displayValue:l,onUpdate:u,onChange:c,editable:g=!0}=o,y=vector_plugin_5e122f40_esm_objectWithoutProperties(o,rZ);return g?h.createElement(ValueInput,vector_plugin_5e122f40_esm_extends({value:l,onUpdate:u,onChange:c},y)):h.createElement(rW,null,l)}var rH=vector_plugin_5e122f40_esm_objectSpread2({component:function(){let{label:o,settings:l,displayValue:u,onUpdate:c,onChange:g}=useInputContext();return h.createElement(Row,{input:!0},h.createElement(Label,null,o),h.createElement(String$1,vector_plugin_5e122f40_esm_extends({displayValue:u,onUpdate:c,onChange:g},l)))}},rV),rU=Object.freeze({__proto__:null,schema:o=>K().boolean().test(o),sanitize:o=>{if("boolean"!=typeof o)throw Error("Invalid boolean");return o}});let rK=re("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function vector_plugin_5e122f40_esm_Boolean({value:o,onUpdate:l,id:u,disabled:c}){return h.createElement(rK,null,h.createElement("input",{id:u,type:"checkbox",checked:o,onChange:o=>l(o.currentTarget.checked),disabled:c}),h.createElement("label",{htmlFor:u},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}var rq=vector_plugin_5e122f40_esm_objectSpread2({component:function(){let{label:o,value:l,onUpdate:u,disabled:c,id:g}=useInputContext();return h.createElement(Row,{input:!0},h.createElement(Label,null,o),h.createElement(vector_plugin_5e122f40_esm_Boolean,{value:l,onUpdate:u,id:g,disabled:c}))}},rU);let rG=["locked"];function Coordinate({value:o,id:l,valueKey:u,settings:c,onUpdate:g,innerLabelTrim:y}){let b=(0,h.useRef)(o[u]);b.current=o[u];let _=(0,h.useCallback)(o=>
158g({[u]:sanitizeValue({type:"NUMBER",value:b.current,settings:c},o)}),[g,c,u]),w=useInputSetters({type:"NUMBER",value:o[u],settings:c,setValue:_});return h.createElement(Number$1,{id:l,label:u,value:o[u],displayValue:w.displayValue,onUpdate:w.onUpdate,onChange:w.onChange,settings:c,innerLabelTrim:y})}let rQ=re("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function Lock(o){let{locked:l}=o,u=vector_plugin_5e122f40_esm_objectWithoutProperties(o,rG);return h.createElement("svg",vector_plugin_5e122f40_esm_extends({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u),l?h.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):h.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Vector({value:o,onUpdate:l,settings:u,innerLabelTrim:c}){let{id:g,setSettings:y}=useInputContext(),{lock:b,locked:_}=u;return h.createElement(rQ,{withLock:b},b&&h.createElement(Lock,{locked:_,onClick:()=>y({locked:!_})}),Object.keys(o).map((y,b)=>h.createElement(Coordinate,{id:0===b?g:`${g}.${y}`,key:y,valueKey:y,value:o,settings:u[y],onUpdate:l,innerLabelTrim:c})))}let normalizeKeyedNumberSettings=(o,l)=>{let u={},c=0,h=1/0;for(let g in Object.entries(o).forEach(([o,g])=>{u[o]=normalize$2(vector_plugin_5e122f40_esm_objectSpread2({value:g},l[o])).settings,c=Math.max(c,u[o].step),h=Math.min(h,u[o].pad)}),u){let{step:o,min:y,max:b}=l[g]||{};isFinite(o)||isFinite(y)&&isFinite(b)||(u[g].step=c,u[g].pad=h)}return u},rY=["lock"],rJ=["value"];function getVectorSchema(o){let l=K().array().length(o).every.number(),isVectorObject=l=>{if(!l||"object"!=typeof l)return!1;let u=Object.values(l);return u.length===o&&u.every(o=>isFinite(o))};return o=>l.test(o)||isVectorObject(o)}function getVectorType(o){return Array.isArray(o)?"array":"object"}function convert(o,l,u){return getVectorType(o)===l?o:"array"===l?Object.values(o):mapArrayToKeys(o,u)}let sanitizeVector=(o,l,u)=>{let c=convert(o,"object",l.keys);for(let o in c)c[o]=sanitize$3(c[o],l[o]);let h=Object.keys(c),g={};if(h.length===l.keys.length)g=c;else{let o=convert(u,"object",l.keys);if(1===h.length&&l.locked){let l=h[0],u=c[l],y=o[l],b=0!==y?u/y:1;for(let c in o)c===l?g[l]=u:g[c]=o[c]*b}else g=vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},o),c)}return convert(g,l.format,l.keys)},formatVector=(o,l)=>convert(o,"object",l.keys),isNumberSettings=o=>!!o&&("step"in o||"min"in o||"max"in o);function normalizeVector(o,l,u=[]){let{lock:c=!1}=l,h=vector_plugin_5e122f40_esm_objectWithoutProperties(l,rY),g=Array.isArray(o)?"array":"object",y="object"===g?Object.keys(o):u,b=convert(o,"object",y),_=isNumberSettings(h)?y.reduce((o,l)=>Object.assign(o,{[l]:h}),{}):h,w=normalizeKeyedNumberSettings(b,_);return{value:"array"===g?o:b,settings:vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2
158({},w),{},{format:g,keys:y,lock:c,locked:!1})}}function getVectorPlugin(o){return{schema:getVectorSchema(o.length),normalize:l=>{let{value:u}=l;return normalizeVector(u,vector_plugin_5e122f40_esm_objectWithoutProperties(l,rJ),o)},format:(o,l)=>formatVector(o,l),sanitize:(o,l,u)=>sanitizeVector(o,l,u)}}var rX={grad:.9,turn:360,rad:360/(2*Math.PI)},colord_t=function(o){return"string"==typeof o?o.length>0:"number"==typeof o},colord_n=function(o,l,u){return void 0===l&&(l=0),void 0===u&&(u=Math.pow(10,l)),Math.round(u*o)/u+0},colord_e=function(o,l,u){return void 0===l&&(l=0),void 0===u&&(u=1),o>u?u:o>l?o:l},colord_u=function(o){return(o=isFinite(o)?o%360:0)>0?o:o+360},colord_a=function(o){return{r:colord_e(o.r,0,255),g:colord_e(o.g,0,255),b:colord_e(o.b,0,255),a:colord_e(o.a)}},colord_o=function(o){return{r:colord_n(o.r),g:colord_n(o.g),b:colord_n(o.b),a:colord_n(o.a,3)}},r0=/^#([0-9a-f]{3,8})$/i,colord_s=function(o){var l=o.toString(16);return l.length<2?"0"+l:l},colord_h=function(o){var l=o.r,u=o.g,c=o.b,h=o.a,g=Math.max(l,u,c),y=g-Math.min(l,u,c),b=y?g===l?(u-c)/y:g===u?2+(c-l)/y:4+(l-u)/y:0;return{h:60*(b<0?b+6:b),s:g?y/g*100:0,v:g/255*100,a:h}},colord_b=function(o){var l=o.h,u=o.s,c=o.v,h=o.a;l=l/360*6,u/=100,c/=100;var g=Math.floor(l),y=c*(1-u),b=c*(1-(l-g)*u),_=c*(1-(1-l+g)*u),w=g%6;return{r:255*[c,b,y,y,_,c][w],g:255*[_,c,c,b,y,y][w],b:255*[y,y,_,c,c,b][w],a:h}},colord_g=function(o){return{h:colord_u(o.h),s:colord_e(o.s,0,100),l:colord_e(o.l,0,100),a:colord_e(o.a)}},colord_d=function(o){return{h:colord_n(o.h),s:colord_n(o.s),l:colord_n(o.l),a:colord_n(o.a,3)}},colord_f=function(o){var l,u;return colord_b((l=o.s,{h:o.h,s:(l*=((u=o.l)<50?u:100-u)/100)>0?2*l/(u+l)*100:0,v:u+l,a:o.a}))},colord_c=function(o){var l,u,c,h;return{h:(l=colord_h(o)).h,s:(h=(200-(u=l.s))*(c=l.v)/100)>0&&h<200?u*c/100/(h<=100?h:200-h)*100:0,l:h/2,a:l.a}},r1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,r2=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,r5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,r3=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,r4={string:[[function(o){var l=r0.exec(o);return l?(o=l[1]).length<=4?{r:parseInt(o[0]+o[0],16),g:parseInt(o[1]+o[1],16),b:parseInt(o[2]+o[2],16),a:4===o.length?colord_n(parseInt(o[3]+o[3],16)/255,2):1}:6===o.length||8===o.length?{r:parseInt(o.substr(0,2),16),g:parseInt(o.substr(2,2),16),b:parseInt(o.substr(4,2),16),a:8===o.length?colord_n(parseInt(o.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(o){var l=r5.exec(o)||r3.exec(o);return l?l[2]!==l[4]||l[4]!==l[6]?null:colord_a({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:void 0===l[7]?1:Number(l[7])/(l[8]?100:1)}):null},"rgb"],[function(o){var l,u,c=r1.exec(o)||r2.exec(o);return c?colord_f(colord_g({h:(l=c[1],void 0===(u=c[2])&&(u="deg"),Number(l)*(rX[u]||1)),s:Number(c[3]),l:Number(c[4]),a:void 0===c[5]?1:Number(c[5])/(c[6]?100:1)})):null},"hsl"]],object:[[function(o){var l=o.r,u=o.g,c=o.b,h=o.a;return colord_t(l)&&colord_t(u)&&colord_t(c)?colord_a({r:Number(l),g:Number(u),b:Number(c),a:Number(void 0===h?1:h)}):null},"rgb"],[function(o){var l=o.h,u=o.s,c=o.l,h=o.a;return colord_t(l)&&colord_t(u)&&colord_t(c)?colord_f(colord_g({h:Number(l),s:Number(u),l:Number(c),a:Number(void 0===h?1:h)})):null},"hsl"],[function(o){var l,u=o.h,c=o.s,h=o.v,g=o.a;return colord_t(u)&&colord_t(c)&&colord_t(h)?colord_b({h:colord_u((l={h:Number(u),s:Number(c),v:Number(h),a:Number(void 0===g?1:g)}).h),s:colord_e(l.s,0,100),v:colord_e(l.v,0,100),a:colord_e(l.a)}):null},"hsv"]]},colord_N=function(o,l){for(var u=0;u<l.length;u++){var c=l[u][0](o);if(c)return[c,l[u][1]]}return[null,void 0]},colord_x=function(o){return"string"==typeof o?colord_N(o.trim(),r4.string):"object"==typeof o&&null!==o?colord_N(o,r4.object):[null,void 0]},colord_M=function(o,l){var u=colord_c(o);return{h:u.h,s:colord_e(u.s+100*l,0,100),l:u.l,a:u.a}},colord_H=function(o){return(299*o.r+587*o.g+114*o.b)/1e3/255},colord_$=function(o,l){var u=colord_c(o);return{h:u.h,s:u.s,l:colord_e(u.l+100*l,0,100),a:u.a}},r8=function(){function r(o){this.parsed=colord_x(o)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return colord_n(colord_H(this.rgba),2)},r.prototype.isDark=function(){return .5>colord_H(this.rgba)},r.prototype.isLight=function(){return colord_H(this.rgba)>=.5},r.prototype.toHex=function(){var o,l,u,c,h,g;return l=(o=colord_o(this.rgba)).r,u=o.g,c=o.b,g=(h=o.a)<1?colord_s(colord_n(255*h)):"","#"+colord_s(l)+colord_s(u)+colord_s(c)+g},r.prototype.toRgb=function(){return colord_o(this.rgba)},r.prototype.toRgbString=function(){var o,l,u,c,h;return l=(o=colord_o(this.rgba)).r,u=o.g,c=o.b,(h=o.a)<1?"rgba("+l+", "+u+", "+c+", "+h+")":"rgb("+l+", "+u+", "+c+")"},r.prototype.toHsl=function(){return colord_d(colord_c(this.rgba))},r.prototype.toHslString=function(){var o,l,u,c,h;return l=(o=colord_d(colord_c(this.rgba))).h,u=o.s,c=o.l,(h=o.a)<1?"hsla("+l+", "+u+"%, "+c+"%, "+h+")":"hsl("+l+", "+u+"%, "+c+"%)"},r.prototype.toHsv=function(){var o;return{h:colord_n((o=colord_h(this.rgba)).h),s:colord_n(o.s),v:colord_n(o.v),a:colord_n(o.a,3)}},r.prototype.invert=function(){var o;return colord_w({r:255-(o=this.rgba).r,g:255-o.g,b:255-o.b,a:o.a})},r.prototype.saturate=function(o){return void 0===o&&(o=.1),colord_w(colord_M(this.rgba,o))},r.prototype.desaturate=function(o){return void 0===o&&(o=.1),colord_w(colord_M(this.rgba,-o))},r.prototype.grayscale=function(){return colord_w(colord_M(this.rgba,-1))},r.prototype.lighten=function(o){return void 0===o&&(o=.1),colord_w(colord_$(this.rgba,o))},r.prototype.darken=function(o){return void 0===o&&(o=.1),colord_w(colord_$(this.rgba,-o))},r.prototype.rotate=function(o){return void 0===o&&(o=15),this.hue(this.hue()+o)},r.prototype.alpha=function(o){var l;return"number"==typeof o?colord_w({r:(l=this.rgba).r,g:l.g,b:l.b,a:o}):colord_n(this.rgba.a,3)},r.prototype.hue=function(o){var l=colord_c(this.rgba);return"number"==typeof o?colord_w({h:o,s:l.s,l:l.l,a:l.a}):colord_n(l.h)},r.prototype.isEqual=function(o){return this.toHex()===colord_w(o).toHex()},r}(),colord_w=function(o){return o instanceof r8?o:new r8(o)},r6=[];function names(o,l){var u={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",s
158andybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},c={};for(var h in u)c[u[h]]=h;var g={};o.prototype.toName=function(l){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var h,y=c[this.toHex()];if(y)return y;if(null==l?void 0:l.closest){var b=this.toRgb(),_=1/0,w="black";if(!g.length)for(var T in u)g[T]=new o(u[T]).toRgb();for(var I in u){var N=(h=g[I],Math.pow(b.r-h.r,2)+Math.pow(b.g-h.g,2)+Math.pow(b.b-h.b,2));N<_&&(_=N,w=I)}return w}},l.string.push([function(l){var c=l.toLowerCase(),h="transparent"===c?"#0000":u[c];return h?new o(h).toRgb():null},"name"])}function dist_u(){return(dist_u=Object.assign||function(o){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(o[c]=u[c])}return o}).apply(this,arguments)}function dist_c(o,l){if(null==o)return{};var u,c,h={},g=Object.keys(o);for(c=0;c<g.length;c++)l.indexOf(u=g[c])>=0||(h[u]=o[u]);return h}function dist_i(o){var l=(0,h.useRef)(o),u=(0,h.useRef)(function(o){l.current&&l.current(o)});return l.current=o,u.current}var dist_s=function(o,l,u){return void 0===l&&(l=0),void 0===u&&(u=1),o>u?u:o<l?l:o},dist_f=function(o){return"touches"in o},dist_v=function(o){return o&&o.ownerDocument.defaultView||self},dist_d=function(o,l,u){var c=o.getBoundingClientRect(),h=dist_f(l)?function(o,l){for(var u=0;u<o.length;u++)if(o[u].identifier===l)return o[u];return o[0]}(l.touches,u):l;return{left:dist_s((h.pageX-(c.left+dist_v(o).pageXOffset))/c.width),top:dist_s((h.pageY-(c.top+dist_v(o).pageYOffset))/c.height)}},dist_h=function(o){dist_f(o)||o.preventDefault()},r9=h.memo(function(o){var l=o.onMove,u=o.onKey,c=o.onEnd,g=dist_c(o,["onMove","onKey","onEnd"]),y=(0,h.useRef)(null),b=dist_i(l),_=dist_i(u),w=dist_i(c),T=(0,h.useRef)(null),I=(0,h.useRef)(!1),N=(0,h.useMemo)(function(){var e=function(o){dist_h(o),(dist_f(o)?o.touches.length>0:o.buttons>0)&&y.current?b(dist_d(y.current,o,T.current)):(n(!1),w())},r=function(){n(!1),w()};function n(o){var l=I.current,u=dist_v(y.current),c=o?u.addEventListener:u.removeEventListener;c(l?"touchmove":"mousemove",e),c(l?"touchend":"mouseup",r)}return[function(o){var l=o.nativeEvent,u=y.current;if(u&&(dist_h(l),(!I.current||dist_f(l))&&u)){if(dist_f(l)){I.current=!0;var c=l.changedTouches||[];c.length&&(T.current=c[0].identifier)}u.focus(),b(dist_d(u,l,T.current)),n(!0)}},function(o){var l=o.which||o.keyCode;l<37||l>40||(o.preventDefault(),_({left:39===l?.05:37===l?-.05:0,top:40===l?.05:38===l?-.05:0}))},function(o){var l=o.which||o.keyCode;l>=37&&l<=40&&w()},n]},[_,b,w]),F=N[0],B=N[1],Z=N[2],W=N[3];return(0,h.useEffect)(function(){return W},[W]),h.createElement("div",dist_u({},g,{onTouchStart:F,onMouseDown:F,className:"react-colorful__interactive",ref:y,onKeyDown:B,onKeyUp:Z,tabIndex:0,role:"slider"}))}
158),dist_m=function(o){return o.filter(Boolean).join(" ")},dist_p=function(o){var l=o.color,u=o.left,c=o.top,g=dist_m(["react-colorful__pointer",o.className]);return h.createElement("div",{className:g,style:{top:100*(void 0===c?.5:c)+"%",left:100*u+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},dist_b=function(o,l,u){return void 0===l&&(l=0),void 0===u&&(u=Math.pow(10,l)),Math.round(u*o)/u},dist_y=function(o){var l=o.s,u=o.v,c=o.a,h=(200-l)*u/100;return{h:dist_b(o.h),s:dist_b(h>0&&h<200?l*u/100/(h<=100?h:200-h)*100:0),l:dist_b(h/2),a:dist_b(c,2)}},dist_q=function(o){var l=dist_y(o);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},dist_k=function(o){var l=dist_y(o);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},dist_I=function(o){var l=o.h,u=o.s,c=o.v,h=o.a;l=l/360*6,u/=100,c/=100;var g=Math.floor(l),y=c*(1-u),b=c*(1-(l-g)*u),_=c*(1-(1-l+g)*u),w=g%6;return{r:dist_b(255*[c,b,y,y,_,c][w]),g:dist_b(255*[_,c,c,b,y,y][w]),b:dist_b(255*[y,y,_,c,c,b][w]),a:dist_b(h,2)}},dist_L=function(o){var l=o.r,u=o.g,c=o.b,h=o.a,g=Math.max(l,u,c),y=g-Math.min(l,u,c),b=y?g===l?(u-c)/y:g===u?2+(c-l)/y:4+(l-u)/y:0;return{h:dist_b(60*(b<0?b+6:b)),s:dist_b(g?y/g*100:0),v:dist_b(g/255*100),a:h}},r7=h.memo(function(o){var l=o.hue,u=o.onChange,c=o.onChangeEnd,g=dist_m(["react-colorful__hue",o.className]);return h.createElement("div",{className:g},h.createElement(r9,{onMove:function(o){u({h:360*o.left})},onKey:function(o){u({h:dist_s(l+360*o.left,0,360)})},onEnd:c,"aria-label":"Hue","aria-valuenow":dist_b(l),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(dist_p,{className:"react-colorful__hue-pointer",left:l/360,color:dist_q({h:l,s:100,v:100,a:1})})))}),ne=h.memo(function(o){var l=o.hsva,u=o.onChange,c=o.onChangeEnd,g={backgroundColor:dist_q({h:l.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:g},h.createElement(r9,{onMove:function(o){u({s:100*o.left,v:100-100*o.top})},onKey:function(o){u({s:dist_s(l.s+100*o.left,0,100),v:dist_s(l.v-100*o.top,0,100)})},onEnd:c,"aria-label":"Color","aria-valuetext":"Saturation "+dist_b(l.s)+"%, Brightness "+dist_b(l.v)+"%"},h.createElement(dist_p,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:dist_q(l)})))}),dist_F=function(o,l){if(o===l)return!0;for(var u in o)if(o[u]!==l[u])return!1;return!0};function dist_Y(o,l,u,c){var g=dist_i(u),y=dist_i(c),b=(0,h.useState)(function(){return o.toHsva(l)}),_=b[0],w=b[1],T=(0,h.useRef)({color:l,hsva:_}),I=(0,h.useRef)(!1);return(0,h.useEffect)(function(){if(!o.equal(l,T.current.color)){var u=o.toHsva(l);T.current={hsva:u,color:l},w(u),I.current=!1}},[l,o]),(0,h.useEffect)(function(){var l;dist_F(_,T.current.hsva)||o.equal(l=o.fromHsva(_),T.current.color)||(T.current={hsva:_,color:l},g(l),I.current=!0)},[_,o,g]),[_,(0,h.useCallback)(function(o){w(function(l){return Object.assign({},l,o)})},[]),(0,h.useCallback)(function(){I.current&&(I.current=!1,y(T.current.color))},[y])]}var nt,nr,nn,ni,no,na,ns="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,nl=new Map,dist_J=function(o){ns(function(){var l=o.current?o.current.ownerDocument:document;if(void 0!==l&&!nl.has(l)){var c=l.createElement("style");c.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;
158left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',nl.set(l,c);var h=na||u.nc;h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},dist_Q=function(o){var l=o.className,u=o.colorModel,c=o.color,g=void 0===c?u.defaultColor:c,y=o.onChange,b=o.onChangeEnd,_=dist_c(o,["className","colorModel","color","onChange","onChangeEnd"]),w=(0,h.useRef)(null);dist_J(w);var T=dist_Y(u,g,y,b),I=T[0],N=T[1],F=T[2],B=dist_m(["react-colorful",l]);return h.createElement("div",dist_u({},_,{ref:w,className:B}),h.createElement(ne,{hsva:I,onChange:N,onChangeEnd:F}),h.createElement(r7,{hue:I.h,onChange:N,onChangeEnd:F,className:"react-colorful__last-control"}))},dist_ee=function(o){var l=o.className,u=o.hsva,c=o.onChange,g=o.onChangeEnd,y={backgroundImage:"linear-gradient(90deg, "+dist_k(Object.assign({},u,{a:0}))+", "+dist_k(Object.assign({},u,{a:1}))+")"},b=dist_m(["react-colorful__alpha",l]),_=dist_b(100*u.a);return h.createElement("div",{className:b},h.createElement("div",{className:"react-colorful__alpha-gradient",style:y}),h.createElement(r9,{onMove:function(o){c({a:o.left})},onKey:function(o){c({a:dist_s(u.a+o.left)})},onEnd:g,"aria-label":"Alpha","aria-valuetext":_+"%","aria-valuenow":_,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(dist_p,{className:"react-colorful__alpha-pointer",left:u.a,color:dist_k(u)})))},dist_re=function(o){var l=o.className,u=o.colorModel,c=o.color,g=void 0===c?u.defaultColor:c,y=o.onChange,b=o.onChangeEnd,_=dist_c(o,["className","colorModel","color","onChange","onChangeEnd"]),w=(0,h.useRef)(null);dist_J(w);var T=dist_Y(u,g,y,b),I=T[0],N=T[1],F=T[2],B=dist_m(["react-colorful",l]);return h.createElement("div",dist_u({},_,{ref:w,className:B}),h.createElement(ne,{hsva:I,onChange:N,onChangeEnd:F}),h.createElement(r7,{hue:I.h,onChange:N,onChangeEnd:F}),h.createElement(dist_ee,{hsva:I,onChange:N,onChangeEnd:F,className:"react-colorful__last-control"}))},nu={defaultColor:{r:0,g:0,b:0,a:1},toHsva:dist_L,fromHsva:dist_I,equal:dist_F},Ce=function(o){return h.createElement(dist_re,dist_u({},o,{colorModel:nu}))},nc={defaultColor:{r:0,g:0,b:0},toHsva:function(o){return dist_L({r:o.r,g:o.g,b:o.b,a:1})},fromHsva:function(o){var l;return{r:(l=dist_I(o)).r,g:l.g,b:l.b}},equal:dist_F},Ne=function(o){return h.createElement(dist_Q,dist_u({},o,{colorModel:nc}))},nd=u(5697),np=u.n(nd),nf=u(7582),nh=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function toFileWithPath(o,l){var u=withMimeType(o);if("string"!=typeof u.path){var c=o.webkitRelativePath;Object.defineProperty(u,"path",{value:"string"==typeof l?l:"string"==typeof c&&c.length>
1580?c:o.name,writable:!1,configurable:!1,enumerable:!0})}return u}function withMimeType(o){var l=o.name;if(l&&-1!==l.lastIndexOf(".")&&!o.type){var u=l.split(".").pop().toLowerCase(),c=nh.get(u);c&&Object.defineProperty(o,"type",{value:c,writable:!1,configurable:!1,enumerable:!0})}return o}var ng=[".DS_Store","Thumbs.db"];function fromEvent(o){return(0,nf.__awaiter)(this,void 0,void 0,function(){return(0,nf.__generator)(this,function(l){return file_selector_isObject(o)&&isDataTransfer(o)?[2,getDataTransferFiles(o.dataTransfer,o.type)]:isChangeEvt(o)?[2,getInputFiles(o)]:Array.isArray(o)&&o.every(function(o){return"getFile"in o&&"function"==typeof o.getFile})?[2,getFsHandleFiles(o)]:[2,[]]})})}function isDataTransfer(o){return file_selector_isObject(o.dataTransfer)}function isChangeEvt(o){return file_selector_isObject(o)&&file_selector_isObject(o.target)}function file_selector_isObject(o){return"object"==typeof o&&null!==o}function getInputFiles(o){return fromList(o.target.files).map(function(o){return toFileWithPath(o)})}function getFsHandleFiles(o){return(0,nf.__awaiter)(this,void 0,void 0,function(){return(0,nf.__generator)(this,function(l){switch(l.label){case 0:return[4,Promise.all(o.map(function(o){return o.getFile()}))];case 1:return[2,l.sent().map(function(o){return toFileWithPath(o)})]}})})}function getDataTransferFiles(o,l){return(0,nf.__awaiter)(this,void 0,void 0,function(){var u;return(0,nf.__generator)(this,function(c){switch(c.label){case 0:if(null===o)return[2,[]];if(!o.items)return[3,2];if(u=fromList(o.items).filter(function(o){return"file"===o.kind}),"drop"!==l)return[2,u];return[4,Promise.all(u.map(toFilePromises))];case 1:return[2,noIgnoredFiles(flatten(c.sent()))];case 2:return[2,noIgnoredFiles(fromList(o.files).map(function(o){return toFileWithPath(o)}))]}})})}function noIgnoredFiles(o){return o.filter(function(o){return -1===ng.indexOf(o.name)})}function fromList(o){if(null===o)return[];for(var l=[],u=0;u<o.length;u++){var c=o[u];l.push(c)}return l}function toFilePromises(o){if("function"!=typeof o.webkitGetAsEntry)return fromDataTransferItem(o);var l=o.webkitGetAsEntry();return l&&l.isDirectory?fromDirEntry(l):fromDataTransferItem(o)}function flatten(o){return o.reduce(function(o,l){return(0,nf.__spread)(o,Array.isArray(l)?flatten(l):[l])},[])}function fromDataTransferItem(o){var l=o.getAsFile();return l?Promise.resolve(toFileWithPath(l)):Promise.reject(o+" is not a File")}function fromEntry(o){return(0,nf.__awaiter)(this,void 0,void 0,function(){return(0,nf.__generator)(this,function(l){return[2,o.isDirectory?fromDirEntry(o):fromFileEntry(o)]})})}function fromDirEntry(o){var l=o.createReader();return new Promise(function(o,u){var c=[];function readEntries(){var h=this;l.readEntries(function(l){return(0,nf.__awaiter)(h,void 0,void 0,function(){var h;return(0,nf.__generator)(this,function(g){switch(g.label){case 0:if(l.length)return[3,5];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,Promise.all(c)];case 2:return o(g.sent()),[3,4];case 3:return u(g.sent()),[3,4];case 4:return[3,6];case 5:h=Promise.all(l.map(fromEntry)),c.push(h),readEntries(),g.label=6;case 6:return[2]}})})},function(o){u(o)})}readEntries()})}function fromFileEntry(o){return(0,nf.__awaiter)(this,void 0,void 0,function(){return(0,nf.__generator)(this,function(l){return[2,new Promise(function(l,u){o.file(function(u){l(toFileWithPath(u,o.fullPath))},function(o){u(o)})})]})})}var nm=u(8363);function utils_ownKeys(o,l){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);l&&(c=c.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),u.push.apply(u,c)}return u}function _objectSpread(o){for(var l=1;l<arguments.length;l++){var u=null!=arguments[l]?arguments[l]:{};l%2?utils_ownKeys(Object(u),!0).forEach(function(l){utils_defineProperty(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):utils_ownKeys(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}function utils_defineProperty(o,l,u){return l in o?Object.defineProperty(o,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[l]=u,o}function _slicedToArray(o,l){return _arrayWithHoles(o)||_iterableToArrayLimit(o,l)||_unsupportedIterableToArray(o,l)||_nonIterableRest()}function _nonIterableRest(){throw TypeError("Invalid attempt to de
158structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,l){if(o){if("string"==typeof o)return _arrayLikeToArray(o,l);var u=Object.prototype.toString.call(o).slice(8,-1);if("Object"===u&&o.constructor&&(u=o.constructor.name),"Map"===u||"Set"===u)return Array.from(o);if("Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return _arrayLikeToArray(o,l)}}function _arrayLikeToArray(o,l){(null==l||l>o.length)&&(l=o.length);for(var u=0,c=Array(l);u<l;u++)c[u]=o[u];return c}function _iterableToArrayLimit(o,l){var u,c,h=null==o?null:"undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(null!=h){var g=[],y=!0,b=!1;try{for(h=h.call(o);!(y=(u=h.next()).done)&&(g.push(u.value),!l||g.length!==l);y=!0);}catch(o){b=!0,c=o}finally{try{y||null==h.return||h.return()}finally{if(b)throw c}}return g}}function _arrayWithHoles(o){if(Array.isArray(o))return o}var getInvalidTypeRejectionErr=function(o){var l=Array.isArray(o=Array.isArray(o)&&1===o.length?o[0]:o)?"one of ".concat(o.join(", ")):o;return{code:"file-invalid-type",message:"File type must be ".concat(l)}},getTooLargeRejectionErr=function(o){return{code:"file-too-large",message:"File is larger than ".concat(o," ").concat(1===o?"byte":"bytes")}},getTooSmallRejectionErr=function(o){return{code:"file-too-small",message:"File is smaller than ".concat(o," ").concat(1===o?"byte":"bytes")}},ny={code:"too-many-files",message:"Too many files"};function fileAccepted(o,l){var u="application/x-moz-file"===o.type||(0,nm.Z)(o,l);return[u,u?null:getInvalidTypeRejectionErr(l)]}function fileMatchSize(o,l,u){if(isDefined(o.size)){if(isDefined(l)&&isDefined(u)){if(o.size>u)return[!1,getTooLargeRejectionErr(u)];if(o.size<l)return[!1,getTooSmallRejectionErr(l)]}else if(isDefined(l)&&o.size<l)return[!1,getTooSmallRejectionErr(l)];else if(isDefined(u)&&o.size>u)return[!1,getTooLargeRejectionErr(u)]}return[!0,null]}function isDefined(o){return null!=o}function allFilesAccepted(o){var l=o.files,u=o.accept,c=o.minSize,h=o.maxSize,g=o.multiple,y=o.maxFiles;return(!!g||!(l.length>1))&&(!g||!(y>=1)||!(l.length>y))&&l.every(function(o){var l=_slicedToArray(fileAccepted(o,u),1)[0],g=_slicedToArray(fileMatchSize(o,c,h),1)[0];return l&&g})}function isPropagationStopped(o){return"function"==typeof o.isPropagationStopped?o.isPropagationStopped():void 0!==o.cancelBubble&&o.cancelBubble}function isEvtWithFiles(o){return o.dataTransfer?Array.prototype.some.call(o.dataTransfer.types,function(o){return"Files"===o||"application/x-moz-file"===o}):!!o.target&&!!o.target.files}function onDocumentDragOver(o){o.preventDefault()}function isIe(o){return -1!==o.indexOf("MSIE")||-1!==o.indexOf("Trident/")}function isEdge(o){return -1!==o.indexOf("Edge/")}function isIeOrEdge(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return isIe(o)||isEdge(o)}function utils_composeEventHandlers(){for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];return function(o){for(var u=arguments.length,c=Array(u>1?u-1:0),h=1;h<u;h++)c[h-1]=arguments[h];return l.some(function(l){return!isPropagationStopped(o)&&l&&l.apply(void 0,[o].concat(c)),isPropagationStopped(o)})}}function canUseFileSystemAccessAPI(){return"showOpenFilePicker"in window}function filePickerOptionsTypes(o){return[{description:"everything",accept:Array.isArray(o="string"==typeof o?o.split(","):o)?o.filter(function(o){return"audio/*"===o||"video/*"===o||"image/*"===o||"text/*"===o||/\w+\/[-+.\w]+/g.test(o)}).reduce(function(o,l){return _objectSpread(_objectSpread({},o),{},utils_defineProperty({},l,[]))},{}):{}}]}function isAbort(o){return o instanceof DOMException&&("AbortError"===o.name||o.code===o.ABORT_ERR)}function isSecurityError(o){return o instanceof DOMException&&("SecurityError"===o.name||o.code===o.SECURITY_ERR)}var nv=["children"],nb=["open"],n_=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],nS=["refKey","onChange","onClick"];function _toConsumableArray(o){return _arrayWithoutHoles(o)||_iterableToArray(o)||es_unsupportedIterableToArray(o)||_nonIterableSpread()}function _nonIterableSpread(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(o){if("undefined"!=typeof Symbol&&null!=o[Symbol.iterator]||null!=o["@@iterator"])return Array.from(o)}function _arrayWithoutHoles(o){if(Array.isArray(o))return es_arrayLikeToArray(o)}function es_slicedToArray(o,l){return es_arrayWithHoles(o)||es_iterableToArrayLimit(o,l)||es_unsupportedIterableToArray(o,l)||es_nonIterableRest()}function es_nonIterableRest(){throw TypeError("Invalid attempt to de
158structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function es_unsupportedIterableToArray(o,l){if(o){if("string"==typeof o)return es_arrayLikeToArray(o,l);var u=Object.prototype.toString.call(o).slice(8,-1);if("Object"===u&&o.constructor&&(u=o.constructor.name),"Map"===u||"Set"===u)return Array.from(o);if("Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return es_arrayLikeToArray(o,l)}}function es_arrayLikeToArray(o,l){(null==l||l>o.length)&&(l=o.length);for(var u=0,c=Array(l);u<l;u++)c[u]=o[u];return c}function es_iterableToArrayLimit(o,l){var u,c,h=null==o?null:"undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(null!=h){var g=[],y=!0,b=!1;try{for(h=h.call(o);!(y=(u=h.next()).done)&&(g.push(u.value),!l||g.length!==l);y=!0);}catch(o){b=!0,c=o}finally{try{y||null==h.return||h.return()}finally{if(b)throw c}}return g}}function es_arrayWithHoles(o){if(Array.isArray(o))return o}function es_ownKeys(o,l){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);l&&(c=c.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),u.push.apply(u,c)}return u}function es_objectSpread(o){for(var l=1;l<arguments.length;l++){var u=null!=arguments[l]?arguments[l]:{};l%2?es_ownKeys(Object(u),!0).forEach(function(l){es_defineProperty(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):es_ownKeys(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}function es_defineProperty(o,l,u){return l in o?Object.defineProperty(o,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[l]=u,o}function es_objectWithoutProperties(o,l){if(null==o)return{};var u,c,h=es_objectWithoutPropertiesLoose(o,l);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(o);for(c=0;c<g.length;c++)u=g[c],!(l.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(o,u)&&(h[u]=o[u])}return h}function es_objectWithoutPropertiesLoose(o,l){if(null==o)return{};var u,c,h={},g=Object.keys(o);for(c=0;c<g.length;c++)u=g[c],l.indexOf(u)>=0||(h[u]=o[u]);return h}var nw=(0,h.forwardRef)(function(o,l){var u=o.children,c=useDropzone(es_objectWithoutProperties(o,nv)),g=c.open,y=es_objectWithoutProperties(c,nb);return(0,h.useImperativeHandle)(l,function(){return{open:g}},[g]),h.createElement(h.Fragment,null,u(es_objectSpread(es_objectSpread({},y),{},{open:g})))});nw.displayName="Dropzone";var nx={disabled:!1,getFilesFromEvent:fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};nw.defaultProps=nx,nw.propTypes={children:np().func,accept:np().oneOfType([np().string,np().arrayOf(np().string)]),multiple:np().bool,preventDropOnDocument:np().bool,noClick:np().bool,noKeyboard:np().bool,noDrag:np().bool,noDragEventsBubbling:np().bool,minSize:np().number,maxSize:np().number,maxFiles:np().number,disabled:np().bool,getFilesFromEvent:np().func,onFileDialogCancel:np().func,onFileDialogOpen:np().func,useFsAccessApi:np().bool,onDragEnter:np().func,onDragLeave:np().func,onDragOver:np().func,onDrop:np().func,onDropAccepted:np().func,onDropRejected:np().func,validator:np().func};var nC={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function useDropzone(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=es_objectSpread(es_objectSpread({},nx),o),u=l.accept,c=l.disabled,g=l.getFilesFromEvent,y=l.maxSize,b=l.minSize,_=l.multiple,w=l.maxFiles,T=l.onDragEnter,I=l.onDragLeave,N=l.onDragOver,F=l.onDrop,B=l.onDropAccepted,Z=l.onDropRejected,W=l.onFileDialogCancel,H=l.onFileDialogOpen,U=l.useFsAccessApi,K=l.preventDropOnDocument,q=l.noClick,G=l.noKeyboard,Q=l.noDrag,Y=l.noDragEventsBubbling,X=l.validator,ee=(0,h.useMemo)(function(){return"function"==typeof H?H:es_noop},[H]),et=(0,h.useMemo)(function(){return"function"==typeof W?W:es_noop},[W]),er=(0,h.useRef)(null),en=(0,h.useRef)(null),ei=es_slicedToArray((0,h.useReducer)(reducer,nC),2),eo=ei[0],ea=ei[1],es=eo.isFocused,el=eo.isFileDialogActive,eu=eo.draggedFiles,ec=(0,h.useRef)("undefined"!=typeof window&&window.isSecureContext&&U&&canUseFileSystemAccessAPI()),onWindowFocus=function(){!ec.current&&el&&setTimeout(function(){en.current&&!en.current.files.length&&(ea({type:"closeDialog"}),et())},300)};(0,h.useEffect)(function(){return window.addEventListener("focus",onWindowFocus,!1),function(){window.removeEventListener("focus",onWindowFocus,!1)}},[en,el,et,ec]);var ed=(0,h.useRef)([]),onDocumentDrop=function(o){er.current&&er.current.contains(o.target)||(o.preventDefault(),ed.current=[])};(0,h.useEffect)(function(){return K&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",onDocumentDrop,!1)),function(){K&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",onDocumentDrop))}},[er,K]);var ep=(0,h.useCallback)(function(o){o.preventDefault(),o.persist(),stopPropagation(o),ed.current=[].concat(_toConsumableArray(ed.current),[o.target]),isEvtWithFiles(o)&&Promise.resolve(g(o)).then(function(l){(!isPropagationStopped(o)||Y)&&(ea({draggedFiles:l,isDragActive:!0,type:"setDraggedFiles"}),T&&T(o))})},[g,T,Y]),ef=(0,h.useCallback)(function(o){o.preventDefault(),o.persist(),stopPropagation(o);var l=isEvtWithFiles(o);if(l&&o.dataTransfer)try{o.dataTransfer.dropEffect="copy"}catch(o){}return l&&N&&N(o),!1},[N,Y]),eh=(0,h.useCallback)(function(o){o.preventDefault(),o.persist(),stopPropagation(o);var l=ed.current.filter(function(o){return er.current&&er.current.contains(o)}),u=l.indexOf(o.target);-1!==u&&l.splice(u,1),ed.current=l,!(l.length>0)&&(ea({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),isEvtWithFiles(o)&&I&&I(o))},[er,I,Y]),eg=(0,h.useCallback)(function(o,l){var c=[],h=[];o.forEach(function(o){var l=es_slicedToArray(fileAccepted(o,u),2),g=l[0],_=l[1],w=es_slicedToArray(fileMatchSize(o,b,y),2),T=w[0],I=w[1],N=X?X(o):null;if(g&&T&&!N)c.push(o);else{var F=[_,I];
158N&&(F=F.concat(N)),h.push({file:o,errors:F.filter(function(o){return o})})}}),(!_&&c.length>1||_&&w>=1&&c.length>w)&&(c.forEach(function(o){h.push({file:o,errors:[ny]})}),c.splice(0)),ea({acceptedFiles:c,fileRejections:h,type:"setFiles"}),F&&F(c,h,l),h.length>0&&Z&&Z(h,l),c.length>0&&B&&B(c,l)},[ea,_,u,b,y,w,F,B,Z,X]),em=(0,h.useCallback)(function(o){o.preventDefault(),o.persist(),stopPropagation(o),ed.current=[],isEvtWithFiles(o)&&Promise.resolve(g(o)).then(function(l){(!isPropagationStopped(o)||Y)&&eg(l,o)}),ea({type:"reset"})},[g,eg,Y]),ey=(0,h.useCallback)(function(){if(ec.current){ea({type:"openDialog"}),ee();var o={multiple:_,types:filePickerOptionsTypes(u)};window.showOpenFilePicker(o).then(function(o){return g(o)}).then(function(o){eg(o,null),ea({type:"closeDialog"})}).catch(function(o){isAbort(o)?(et(o),ea({type:"closeDialog"})):isSecurityError(o)&&(ec.current=!1,en.current&&(en.current.value=null,en.current.click()))});return}en.current&&(ea({type:"openDialog"}),ee(),en.current.value=null,en.current.click())},[ea,ee,et,U,eg,u,_]),ev=(0,h.useCallback)(function(o){er.current&&er.current.isEqualNode(o.target)&&(" "===o.key||"Enter"===o.key||32===o.keyCode||13===o.keyCode)&&(o.preventDefault(),ey())},[er,ey]),eb=(0,h.useCallback)(function(){ea({type:"focus"})},[]),e_=(0,h.useCallback)(function(){ea({type:"blur"})},[]),eS=(0,h.useCallback)(function(){q||(isIeOrEdge()?setTimeout(ey,0):ey())},[q,ey]),composeHandler=function(o){return c?null:o},composeKeyboardHandler=function(o){return G?null:composeHandler(o)},composeDragHandler=function(o){return Q?null:composeHandler(o)},stopPropagation=function(o){Y&&o.stopPropagation()},ew=(0,h.useMemo)(function(){return function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=o.refKey,u=void 0===l?"ref":l,h=o.role,g=o.onKeyDown,y=o.onFocus,b=o.onBlur,_=o.onClick,w=o.onDragEnter,T=o.onDragOver,I=o.onDragLeave,N=o.onDrop,F=es_objectWithoutProperties(o,n_);return es_objectSpread(es_objectSpread(es_defineProperty({onKeyDown:composeKeyboardHandler(utils_composeEventHandlers(g,ev)),onFocus:composeKeyboardHandler(utils_composeEventHandlers(y,eb)),onBlur:composeKeyboardHandler(utils_composeEventHandlers(b,e_)),onClick:composeHandler(utils_composeEventHandlers(_,eS)),onDragEnter:composeDragHandler(utils_composeEventHandlers(w,ep)),onDragOver:composeDragHandler(utils_composeEventHandlers(T,ef)),onDragLeave:composeDragHandler(utils_composeEventHandlers(I,eh)),onDrop:composeDragHandler(utils_composeEventHandlers(N,em)),role:"string"==typeof h&&""!==h?h:"button"},u,er),c||G?{}:{tabIndex:0}),F)}},[er,ev,eb,e_,eS,ep,ef,eh,em,G,Q,c]),ex=(0,h.useCallback)(function(o){o.stopPropagation()},[]),eC=(0,h.useMemo)(function(){return function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=o.refKey,c=void 0===l?"ref":l,h=o.onChange,g=o.onClick,y=es_objectWithoutProperties(o,nS);return es_objectSpread(es_objectSpread({},es_defineProperty({accept:u,multiple:_,type:"file",style:{display:"none"},onChange:composeHandler(utils_composeEventHandlers(h,em)),onClick:composeHandler(utils_composeEventHandlers(g,ex)),tabIndex:-1},c,en)),y)}},[en,u,_,em,c]),eE=eu.length,ek=eE>0&&allFilesAccepted({files:eu,accept:u,minSize:b,maxSize:y,multiple:_,maxFiles:w});return es_objectSpread(es_objectSpread({},eo),{},{isDragAccept:ek,isDragReject:eE>0&&!ek,isFocused:es&&!c,getRootProps:ew,getInputProps:eC,rootRef:er,inputRef:en,open:composeHandler(ey)})}function reducer(o,l){switch(l.type){case"focus":return es_objectSpread(es_objectSpread({},o),{},{isFocused:!0});case"blur":return es_objectSpread(es_objectSpread({},o),{},{isFocused:!1});case"openDialog":return es_objectSpread(es_objectSpread({},nC),{},{isFileDialogActive:!0});case"closeDialog":return es_objectSpread(es_objectSpread({},o),{},{isFileDialogActive:!1});case"setDraggedFiles":var u=l.isDragActive,c=l.draggedFiles;return es_objectSpread(es_objectSpread({},o),{},{draggedFiles:c,isDragActive:u});case"setFiles":return es_objectSpread(es_objectSpread({},o),{},{acceptedFiles:l.acceptedFiles,fileRejections:l.fileRejections});case"reset":return es_objectSpread({},nC);default:return o}}function es_noop(){}function createStore(o){let l;let u=new Set,setState=(o,c)=>{let h="function"==typeof o?o(l):o;if(h!==l){let o=l;l=c?h:Object.assign({},l,h),u.forEach(u=>u(l,o))}},getState=()=>l,subscribeWithSelector=(o,c=getState,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let g=c(l);function listenerToAdd(){let u=c(l);if(!h(g,u)){let l=g;o(g=u,l)}}return u.add(listenerToAdd),()=>u.delete(listenerToAdd)},c={setState,getState,subscribe:(o,l,c)=>l||c?subscribeWithSelector(o,l,c):(u.add(o),()=>u.delete(o)),destroy:()=>u.clear()};return l=o(setState,getState,c),c}let nE="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),nk=nE?h.useEffect:h.useLayoutEffect;function create(o){let l="function"==typeof o?createStore(o):o,useStore=(o=l.getState,u=Object.is)=>{let c;let[,g]=(0,h.useReducer)(o=>o+1,0),y=l.getState(),b=(0,h.useRef)(y),_=(0,h.useRef)(o),w=(0,h.useRef)(u),T=(0,h.useRef)(!1),I=(0,h.useRef)();void 0===I.current&&(I.current=o(y));let N=!1;(b.current!==y||_.current!==o||w.current!==u||T.current)&&(c=o(y),N=!u(I.current,c)),nk(()=>{N&&(I.current=c),b.current=y,_.current=o,w.current=u,T.current=!1});let F=(0,h.useRef)(y);nk(()=>{let listener=()=>{try{let o=l.getState(),u=_.current(o);w.current(I.current,u)||(b.current=o,I.current=u,g())}catch(o){T.current=!0,g()}},o=l.subscribe(listener);return l.getState()!==F.current&&listener(),o},[]);let B=N?c:I.current;return(0,h.useDebugValue)(B),B};return Object.assign(useStore,l),useStore[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");
158let o=[useStore,l];return{next(){let l=o.length<=0;return{value:o.shift(),done:l}}}},useStore}Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;let subscribeWithSelector=o=>(l,u,c)=>{let h=c.subscribe;c.subscribe=(o,l,u)=>{let g=o;if(l){let h=(null==u?void 0:u.equalityFn)||Object.is,y=o(c.getState());g=u=>{let c=o(u);if(!h(y,c)){let o=y;l(y=c,o)}},(null==u?void 0:u.fireImmediately)&&l(y,y)}return h(g)};let g=o(l,u,c);return g};Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var nP=u(745),nO=u(66),nT=u.n(nO);let join=(...o)=>o.filter(Boolean).join(".");function getKeyPath(o){let l=o.split(".");return[l.pop(),l.join(".")||void 0]}function getValuesForPaths(o,l){return Object.entries(pick(o,l)).reduce((o,[,{value:l,disabled:u,key:c}])=>(o[c]=u?void 0:l,o),{})}function useCompareMemoize(o,l){let u=(0,h.useRef)(),c=l?dequal:shallow;return c(o,u.current)||(u.current=o),u.current}function useDeepMemo(o,l){var u;return(0,h.useMemo)(o,null!==(u=useCompareMemoize(l,!0))&&void 0!==u?u:[])}function useToggle(o){let l=(0,h.useRef)(null),u=(0,h.useRef)(null),c=(0,h.useRef)(!0);return(0,h.useLayoutEffect)(()=>{o||(l.current.style.height="0px",l.current.style.overflow="hidden")},[]),(0,h.useEffect)(()=>{let h;if(c.current){c.current=!1;return}let g=l.current,fixHeight=()=>{o&&(g.style.removeProperty("height"),g.style.removeProperty("overflow"),u.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};g.addEventListener("transitionend",fixHeight,{once:!0});let{height:y}=u.current.getBoundingClientRect();return g.style.height=y+"px",o||(g.style.overflow="hidden",h=window.setTimeout(()=>g.style.height="0px",50)),()=>{g.removeEventListener("transitionend",fixHeight),clearTimeout(h)}},[o]),{wrapperRef:l,contentRef:u}}let useVisiblePaths=o=>{let[l,u]=(0,h.useState)(o.getVisiblePaths());return(0,h.useEffect)(()=>{u(o.getVisiblePaths());let l=o.useStore.subscribe(o.getVisiblePaths,u,{equalityFn:shallow});return()=>l()},[o]),l};function useValuesForPath(o,l,u){let c=o.useStore(o=>{let c=vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},u),o.data);return getValuesForPaths(c,l)},shallow);return c}function usePopin(o=3){let l=(0,h.useRef)(null),u=(0,h.useRef)(null),[c,g]=(0,h.useState)(!1),y=(0,h.useCallback)(()=>g(!0),[]),b=(0,h.useCallback)(()=>g(!1),[]);return(0,h.useLayoutEffect)(()=>{if(c){let{bottom:c,top:h,left:g}=l.current.getBoundingClientRect(),{height:y}=u.current.getBoundingClientRect(),b=c+y>window.innerHeight-40?"up":"down";u.current.style.position="fixed",u.current.style.zIndex="10000",u.current.style.left=g+"px","down"===b?u.current.style.top=c+o+"px":u.current.style.bottom=window.innerHeight-h+o+"px"}},[o,c]),{popinRef:l,wrapperRef:u,shown:c,show:y,hide:b}}!function(o){o.forEach(function(o){0>r6.indexOf(o)&&(o(r8,r4),r6.push(o))})}([names]);let nR={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};function leva_esm_convert(o,{format:l,hasAlpha:u,isString:c}){let h=nR[l]+(c&&"hex"!==l?"String":""),g=o[h]();return"object"!=typeof g||u?g:omit(g,["a"])}K.extend({color:()=>o=>colord_w(o).isValid()});let leva_esm_sanitize$2=(o,l)=>{let u=colord_w(o);if(!u.isValid())throw Error("Invalid color");return leva_esm_convert(u,l)};var nj=Object.freeze({__proto__:null,schema:o=>K().color().test(o),sanitize:leva_esm_sanitize$2,format:(o,l)=>leva_esm_convert(colord_w(o),vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},l),{},{isString:!0,format:"hex"})),normalize:({value:o})=>{let l=colord_x(o)[1],u="object"==typeof o?"a"in o:"hex"===l&&8===o.length||/^(rgba)|(hsla)|(hsva)/.test(o),c={format:"name"===l?"hex":l,hasAlpha:u,isString:"string"==typeof o};return{value:leva_esm_sanitize$2(o,c),settings:c}}});let nA=re("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:'url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')',$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),n$=re("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),nI=re("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}}
158);function convertToRgb(o,l){return"rgb"!==l?colord_w(o).toRgb():o}function Color({value:o,displayValue:l,settings:u,onUpdate:c}){let{emitOnEditStart:g,emitOnEditEnd:y}=useInputContext(),{format:b,hasAlpha:_}=u,{popinRef:w,wrapperRef:T,shown:I,show:N,hide:F}=usePopin(),B=(0,h.useRef)(0),[Z,W]=(0,h.useState)(()=>convertToRgb(o,b)),H=_?Ce:Ne,showPicker=()=>{W(convertToRgb(o,b)),N(),g()},hidePicker=()=>{F(),y(),window.clearTimeout(B.current)},hideAfterDelay=()=>{B.current=window.setTimeout(hidePicker,500)};return(0,h.useEffect)(()=>()=>window.clearTimeout(B.current),[]),h.createElement(h.Fragment,null,h.createElement(nA,{ref:w,active:I,onClick:()=>showPicker(),style:{color:l}}),I&&h.createElement(vector_plugin_5e122f40_esm_Portal,null,h.createElement(r_,{onPointerUp:hidePicker}),h.createElement(nI,{ref:T,onMouseEnter:()=>window.clearTimeout(B.current),onMouseLeave:o=>0===o.buttons&&hideAfterDelay()},h.createElement(H,{color:Z,onChange:c}))))}var nL=vector_plugin_5e122f40_esm_objectSpread2({component:function(){let{value:o,displayValue:l,label:u,onChange:c,onUpdate:g,settings:y}=useInputContext();return h.createElement(Row,{input:!0},h.createElement(Label,null,u),h.createElement(n$,null,h.createElement(Color,{value:o,displayValue:l,onChange:c,onUpdate:g,settings:y}),h.createElement(ValueInput,{value:l,onChange:c,onUpdate:g})))}},nj),nM=vector_plugin_5e122f40_esm_objectSpread2({component:function(){let{label:o,displayValue:l,onUpdate:u,settings:c}=useInputContext();return h.createElement(Row,{input:!0},h.createElement(Label,null,o),h.createElement(Vector,{value:l,settings:c,onUpdate:u}))}},getVectorPlugin(["x","y","z"]));let nD=re("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),nN=re("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function Joystick({value:o,settings:l,onUpdate:u}){let c=(0,h.useRef)(),g=(0,h.useRef)(0),y=(0,h.useRef)(0),b=(0,h.useRef)(1),[_,w]=(0,h.useState)(!1),[T,I]=(0,h.useState)(!1),[N,F]=useTransform(),B=(0,h.useRef)(null),Z=(0,h.useRef)(null);(0,h.useLayoutEffect)(()=>{if(_){let{top:o,left:l,width:u,height:c}=B.current.getBoundingClientRect();Z.current.style.left=l+u/2+"px",Z.current.style.top=o+c/2+"px"}},[_]);let{keys:[W,H],joystick:U}=l,K="invertY"===U?1:-1,{[W]:{step:q},[H]:{step:G}}=l,Q=useTh("sizes","joystickWidth"),Y=useTh("sizes","joystickHeight"),X=.8*parseFloat(Q)/2,ee=.8*parseFloat(Y)/2,et=(0,h.useCallback)(()=>{c.current||(I(!0),g.current&&F({x:g.current*X}),y.current&&F({y:-(y.current*ee)}),c.current=window.setInterval(()=>{u(o=>{let l=q*g.current*b.current,u=K*G*y.current*b.current;return Array.isArray(o)?{[W]:o[0]+l,[H]:o[1]+u}:{[W]:o[W]+l,[H]:o[H]+u}})},16))},[X,ee,u,F,q,G,W,H,K]),er=(0,h.useCallback)(()=>{window.clearTimeout(c.current),c.current=void 0,I(!1)},[]);(0,h.useEffect)(()=>{function setStepMultiplier(o){b.current=multiplyStep(o)}return window.addEventListener("keydown",setStepMultiplier),window.addEventListener("keyup",setStepMultiplier),()=>{window.clearTimeout(c.current),window.removeEventListener("keydown",setStepMultiplier),window.removeEventListener("keyup",setStepMultiplier)}},[]);let en=vector_plugin_5e122f40_esm_useDrag(({first:l,active:c,delta:[h,_],movement:[T,I]})=>{l&&w(!0);let N=vector_plugin_5e122f40_esm_clamp(T,-X,X),B=vector_plugin_5e122f40_esm_clamp(I,-ee,ee);g.current=Math.abs(T)>Math.abs(N)?Math.sign(T-N):0,y.current=Math.abs(I)>Math.abs(B)?Math.sign(B-I):0;
158let Z=o[W],U=o[H];c?(g.current||(Z+=h*q*b.current,F({x:N})),y.current||(U-=K*_*G*b.current,F({y:B})),g.current||y.current?et():er(),u({[W]:Z,[H]:U})):(w(!1),g.current=0,y.current=0,F({x:0,y:0}),er())});return h.createElement(nD,vector_plugin_5e122f40_esm_extends({ref:B},en()),_&&h.createElement(vector_plugin_5e122f40_esm_Portal,null,h.createElement(nN,{ref:Z,isOutOfBounds:T},h.createElement("div",null),h.createElement("span",{ref:N}))))}let nF=re("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function Vector2dComponent(){let{label:o,displayValue:l,onUpdate:u,settings:c}=useInputContext();return h.createElement(Row,{input:!0},h.createElement(Label,null,o),h.createElement(nF,{withJoystick:!!c.joystick},c.joystick&&h.createElement(Joystick,{value:l,settings:c,onUpdate:u}),h.createElement(Vector,{value:l,settings:c,onUpdate:u})))}let nz=["joystick"],nB=getVectorPlugin(["x","y"]);var nV=vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({component:Vector2dComponent},nB),{},{normalize:o=>{let{joystick:l=!0}=o,u=vector_plugin_5e122f40_esm_objectWithoutProperties(o,nz),{value:c,settings:h}=nB.normalize(u);return{value:c,settings:vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},h),{},{joystick:l})}}}),nZ=Object.freeze({__proto__:null,sanitize:o=>{if(void 0!==o){if(o instanceof File)try{return URL.createObjectURL(o)}catch(o){return}if("string"==typeof o&&0===o.indexOf("blob:"))return o;throw Error(`Invalid image format [undefined | blob |\xa0File].`)}},schema:(o,l)=>"object"==typeof l&&"image"in l,normalize:({image:o})=>({value:o})});let nW=re("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),nH=re("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),nU=re("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),nK=re("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),nq=re("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),nG=re("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});var nQ=vector_plugin_5e122f40_esm_objectSpread2({component:function(){let{label:o,value:l,onUpdate:u,disabled:c}=useInputContext(),{popinRef:g,wrapperRef:y,shown:b,show:_,hide:w}=usePopin(),T=(0,h.useCallback)(o=>{o.length&&u(o[0])},[u]),I=(0,h.useCallback)(o=>{o.stopPropagation(),u(void 0)},[u]),{getRootProps:N,getInputProps:F,isDragAccept:B}=useDropzone({maxFiles:1,accept:"image/*",onDrop:T,disabled:c});return h.createElement(Row,{input:!0},h.createElement(Label,null,o),h.createElement(nW,null,h.createElement(nU,{ref:g,hasImage:!!l,onPointerDown:()=>!!l&&_(),onPointerUp:w,style:{backgroundImage:l?`url(${l})`:"none"}}),b&&!!l&&h.createElement(vector_plugin_5e122f40_esm_Portal,null,h.createElement(r_,{onPointerUp:w,style:{cursor:"pointer"}}),h.createElement(nK,{ref:y,style:{backgroundImage:`url(${l})`}})),h.createElement(nH,N({isDragAccept:B}),h.createElement("input",F()),h.createElement(nq,null,B?"drop image":"click or drop")),h.createElement(nG,{onClick:I,disabled:!l})))}},nZ);let nY=K().number(),leva_esm_format=o=>({min:o[0],max:o[1]}),leva_esm_sanitize=(o,{bounds:[l,u]},c)=>
158{let h=Array.isArray(o)?leva_esm_format(o):o,g={min:c[0],max:c[1]},{min:y,max:b}=vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},g),h);return[vector_plugin_5e122f40_esm_clamp(Number(y),l,Math.max(l,b)),vector_plugin_5e122f40_esm_clamp(Number(b),Math.min(u,y),u)]};var nJ=Object.freeze({__proto__:null,schema:(o,l)=>K().array().length(2).every.number().test(o)&&K().schema({min:nY,max:nY}).test(l),format:leva_esm_format,sanitize:leva_esm_sanitize,normalize:({value:o,min:l,max:u})=>{let c={min:l,max:u},h=normalizeKeyedNumberSettings(leva_esm_format(o),{min:c,max:c}),g=vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},h),{},{bounds:[l,u]}),y=leva_esm_sanitize(leva_esm_format(o),g,o);return{value:y,settings:g}}});let nX=["value","bounds","onDrag"],n0=["bounds"],n1=re("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function IntervalSlider(o){let{value:l,bounds:[u,c],onDrag:g}=o,y=vector_plugin_5e122f40_esm_objectWithoutProperties(o,nX),b=(0,h.useRef)(null),_=(0,h.useRef)(null),w=(0,h.useRef)(null),T=(0,h.useRef)(0),I=useTh("sizes","scrubberWidth"),N=vector_plugin_5e122f40_esm_useDrag(({event:o,first:h,xy:[N],movement:[F],memo:B={}})=>{if(h){let{width:h,left:g}=b.current.getBoundingClientRect();T.current=h-parseFloat(I);let y=(null==o?void 0:o.target)===_.current||(null==o?void 0:o.target)===w.current;B.pos=invertedRange((N-g)/h,u,c);let F=Math.abs(B.pos-l.min)-Math.abs(B.pos-l.max);B.key=F<0||0===F&&B.pos<=l.min?"min":"max",y&&(B.pos=l[B.key])}let Z=B.pos+invertedRange(F/T.current,0,c-u);return g({[B.key]:rI(Z,y[B.key])}),B}),F=`calc(${range(l.min,u,c)} * (100% - ${I} - 8px) + 4px)`,B=`calc(${1-range(l.max,u,c)} * (100% - ${I} - 8px) + 4px)`;return h.createElement(rj,vector_plugin_5e122f40_esm_extends({ref:b},N()),h.createElement(rT,null,h.createElement(rA,{style:{left:F,right:B}})),h.createElement(rR,{position:"left",ref:_,style:{left:F}}),h.createElement(rR,{position:"right",ref:w,style:{right:B}}))}var n2=vector_plugin_5e122f40_esm_objectSpread2({component:function(){let{label:o,displayValue:l,onUpdate:u,settings:c}=useInputContext(),g=vector_plugin_5e122f40_esm_objectWithoutProperties(c,n0);return h.createElement(h.Fragment,null,h.createElement(Row,{input:!0},h.createElement(Label,null,o),h.createElement(n1,null,h.createElement(IntervalSlider,vector_plugin_5e122f40_esm_extends({value:l},c,{onDrag:u})),h.createElement(Vector,{value:l,settings:g,onUpdate:u,innerLabelTrim:0}))))}},nJ);let createEventEmitter=()=>{let o=new Map;return{on:(l,u)=>{let c=o.get(l);void 0===c&&(c=new Set,o.set(l,c)),c.add(u)},off:(l,u)=>{let c=o.get(l);void 0!==c&&(c.delete(u),0===c.size&&o.delete(l))},emit:(l,...u)=>{let c=o.get(l);if(void 0!==c)for(let o of c)o(...u)}}},n5=["type","value"],n3=["onChange","transient","onEditStart","onEditEnd"],n4=new function(){let o=create(subscribeWithSelector(()=>({data:{}}))),l=createEventEmitter();this.storeId=getUid(),this.useStore=o;let u={},c=new Set;this.getVisiblePaths=()=>{let o=this.getData(),l=Object.keys(o),h=[];Object.entries(u).forEach(([o,u])=>{u.render&&l.some(l=>0===l.indexOf(o))&&!u.render(this.get)&&h.push(o+".")});let g=[];return c.forEach(l=>{l in o&&o[l].__refCount>0&&h.every(o=>-1===l.indexOf(o))&&(!o[l].render||o[l].render(this.get))&&g.push(l)}),g},this.setOrderedPaths=o=>{o.forEach(o=>c.add(o))},this.orderPaths=o=>(this.setOrderedPaths(o),o),this.disposePaths=l=>{o.setState(o=>{let u=o.data;return l.forEach(o=>{if(o in u){let l=u[o];l.__refCount--,0===l.__refCount&&l.type in tQ&&delete u[o]}}),{data:u}})},this.dispose=()=>{o.setState(()=>({data:{}}))},this.getFolderSettings=o=>u[o]||{},this.getData=()=>o.getState().data,this.addData=(l,u)=>{o.setState(o=>{let c=o.data;return Object.entries(l).forEach(([o,l])=>{let h=c[o];if(h){let{type:c,value:g}=l,y=vector_plugin_5e122f40_esm_objectWithoutProperties(l,n5);c!==h.type?tN(tM.INPUT_TYPE_OVERRIDE,o,h.type,c):((0===h.__refCount||u)&&Object.assign(h,y),h.__refCount++)}
158else c[o]=vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},l),{},{__refCount:1})}),{data:c}})},this.setValueAtPath=(l,u,c)=>{o.setState(o=>{let h=o.data;return updateInput(h[l],u,l,this,c),{data:h}})},this.setSettingsAtPath=(l,u)=>{o.setState(o=>{let c=o.data;return c[l].settings=vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},c[l].settings),u),{data:c}})},this.disableInputAtPath=(l,u)=>{o.setState(o=>{let c=o.data;return c[l].disabled=u,{data:c}})},this.set=(l,u)=>{o.setState(o=>{let c=o.data;return Object.entries(l).forEach(([o,l])=>{try{updateInput(c[o],l,void 0,void 0,u)}catch(o){}}),{data:c}})},this.getInput=o=>{try{return this.getData()[o]}catch(l){tN(tM.PATH_DOESNT_EXIST,o)}},this.get=o=>{var l;return null===(l=this.getInput(o))||void 0===l?void 0:l.value},this.emitOnEditStart=o=>{l.emit(`onEditStart:${o}`,this.get(o),o,vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},this.getInput(o)),{},{get:this.get}))},this.emitOnEditEnd=o=>{l.emit(`onEditEnd:${o}`,this.get(o),o,vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},this.getInput(o)),{},{get:this.get}))},this.subscribeToEditStart=(o,u)=>{let c=`onEditStart:${o}`;return l.on(c,u),()=>l.off(c,u)},this.subscribeToEditEnd=(o,u)=>{let c=`onEditEnd:${o}`;return l.on(c,u),()=>l.off(c,u)};let _getDataFromSchema=(o,l,c)=>{let h={};return Object.entries(o).forEach(([o,g])=>{if(""===o)return tN(tM.EMPTY_KEY);let y=join(l,o);if(g.type===tQ.FOLDER){let o=_getDataFromSchema(g.schema,y,c);Object.assign(h,o),y in u||(u[y]=g.settings)}else if(o in c)tN(tM.DUPLICATE_KEYS,o,y,c[o].path);else{let l=normalizeInput(g,o,y,h);if(l){let{type:u,options:g,input:b}=l,{onChange:_,transient:w,onEditStart:T,onEditEnd:I}=g,N=vector_plugin_5e122f40_esm_objectWithoutProperties(g,n3);h[y]=vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({type:u},N),b),{},{fromPanel:!0}),c[o]={path:y,onChange:_,transient:w,onEditStart:T,onEditEnd:I}}else tN(tM.UNKNOWN_INPUT,y,g)}}),h};this.getDataFromSchema=o=>{let l={},u=_getDataFromSchema(o,"",l);return[u,l]}},n8={collapsed:!1};function folder(o,l){return{type:tQ.FOLDER,schema:o,settings:vector_plugin_5e122f40_esm_objectSpread2(vector_plugin_5e122f40_esm_objectSpread2({},n8),l)}}let isInput=o=>"__levaInput"in o,buildTree=(o,l)=>{let u={},c=l?l.toLowerCase():null;return o.forEach(o=>{let[l,h]=getKeyPath(o);(!c||l.toLowerCase().indexOf(c)>-1)&&nT()(u,h,{[l]:{__levaInput:!0,path:o}})}),u},n6=["type","label","path","valueKey","value","settings","setValue","disabled"];function ControlInput(o){let{type:l,label:u,path:c,valueKey:g,value:y,settings:b,setValue:_,disabled:w}=o,T=vector_plugin_5e122f40_esm_objectWithoutProperties(o,n6),{displayValue:I,onChange:N,onUpdate:F}=useInputSetters({type:l,value:y,settings:b,setValue:_}),B=tW[l].component;return B?h.createElement(t3.Provider,{value:vector_plugin_5e122f40_esm_objectSpread2({key:g,path:c,id:""+c,label:u,displayValue:I,value:y,onChange:N,onUpdate:F,settings:b,setValue:_,disabled:w},T)},h.createElement(rb,{disabled:w},h.createElement(B,null))):(tN(tM.NO_COMPONENT_FOR_TYPE,l,c),null)}let n9=re("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function Button({onClick:o,settings:l,label:u}){let c=vector_plugin_5e122f40_esm_useStoreContext();return h.createElement(Row,null,h.createElement(n9,{disabled:l.disabled,onClick:()=>o(c.get)},u))}let n7=re("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),ie=re("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),getOpts=({label:o,opts:l})=>{let u="string"==typeof o&&""===o.trim()?null:o,c=l;return"object"==typeof l.opts&&(void 0!==c.label&&(u=l.label),c=l.opts),{label:u,opts:c}};function ButtonGroup(o){let{label:l,opts:u}=getOpts(o),c=vector_plugin_5e122f40_esm_useStoreContext();return h.createElement(Row,{input:!!l},l&&h.createElement(Label,null,l),h.createElement(n7,null,Object.entries(u).map(([o,l])=>h.createElement(ie,{key:o,onClick:()=>l(c.get)},o))))}let it=re("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"});function push(o,l){o.push(l),o.length>100&&o.shift()}let ir=(0,h.forwardRef)(function({initialValue:o},l){let u=useTh("colors","highlight3"),c=useTh("colors","elevation2"),g=useTh("colors","highlight1"),[y,b]=(0,h.useMemo)(()=>[colord_w(g).alpha(.4).toRgbString(),colord_w(g).alpha(.1).toRgbString()],[g]),_=(0,h.useRef)([o]),w=(0,h.useRef)(o),T=(0,h.useRef)(o),I=(0,h.useRef)(),N=(0,h.useCallback)((o,l)=>{if(!o)return;let{width:h,height:g}=o,I=new Path2D,N=h/100,F=.05*g;for(let o=0;o<_.current.length;o++){let l=range(_.current[o],w.current,T.current),u=N*o,c=g-l*(g-2*F)-F;I.lineTo(u,c)}l.clearRect(0,0,h,g);let B=new Path2D(I);B.lineTo(N*(_.current.length+1),g),B.lineTo(0,g),B.lineTo(0,0);let Z=l.createLinearGradient(0,0,0,g);Z.addColorStop(0,y),Z.addColorStop(1,b),l.fillStyle=Z,l.fill(B),l.strokeStyle=c,l.lineJoin="round",l.lineWidth=14,l.stroke(I),l.strokeStyle=u,l.lineWidth=2,l.stroke(I)},[u,c,y,b]),[F,B]=useCanvas2d(N);return(0,h.useImperativeHandle)(l,()=>({frame:o=>{(void 0===w.current||o<w.current)&&(w.current=o),(void 0===T.current||o>T.current)&&(T.current=o),push(_.current,o),I.current=requestAnimationFrame(()=>N(F.current,B.current))}}),[F,B,N]),(0,h.useEffect)(()=>()=>cancelAnimationFrame(I.current),[]),h.createElement(it,{ref:F})}),leva_esm_parse=o=>Number.isFinite(o)?o.toPrecision(2):o.toString(),ii=(0,h.forwardRef)(function({initialValue:o},l){let[u,c]=(0,h.useState)(leva_esm_parse(o));return(0,h.useImperativeHandle)(l,()=>({frame:o=>c(leva_esm_parse(o))}),[]),h.createElement("div",null,u)});function getValue(o){return"function"==typeof o?o():o.current}function Monitor({label:o,objectOrFn:l,settings:u}){let c=(0,h.useRef)(),g=(0,h.useRef)(getValue(l));return(0,h.useEffect)(()=>{let o=window.setInterval(()=>{var o;document.hidden||null===(o=c.current)||void 0===o||o.frame(getValue(l))},u.interval);return()=>window.clearInterval(o)},[l,u.interval]),h.createElement(Row,{input:!0},h.createElement(Label,{align:"top"},o),u.graph?h.createElement(ir,{ref:c,initialValue:g.current}):h.createElement(ii,{ref:c,initialValue:g.current}))}let io=["type","label","key"],ia={[tQ.BUTTON]:Button,[tQ.BUTTON_GROUP]:ButtonGroup,[tQ.MONITOR]:Monitor},il=h.memo(({path:o})=>{let[l,{set:u,setSettings:c,disable:g,storeId:y,emitOnEditStart:b,emitOnEditEnd:_}]=useInput(o);if(!l)return null;let{type:w,label:T,key:I}=l,N=vector_plugin_5e122f40_esm_objectWithoutProperties(l,io);if(w in tQ){let l=ia[w];return h.createElement(l,vector_plugin_5e122f40_esm_extends({label:T,path:o},N))}
158return w in tW?h.createElement(ControlInput,vector_plugin_5e122f40_esm_extends({key:y+o,type:w,label:T,storeId:y,path:o,valueKey:I,setValue:u,setSettings:c,disable:g,emitOnEditStart:b,emitOnEditEnd:_},N)):(tF(tM.UNSUPPORTED_INPUT,w,o),null)});function FolderTitle({toggle:o,toggled:l,name:u}){return h.createElement(rp,{onClick:()=>o()},h.createElement(Chevron,{toggled:l}),h.createElement("div",null,u))}let Folder=({name:o,path:l,tree:u})=>{let c=vector_plugin_5e122f40_esm_useStoreContext(),g=join(l,o),{collapsed:y,color:b}=c.getFolderSettings(g),[_,w]=(0,h.useState)(!y),T=(0,h.useRef)(null),I=useTh("colors","folderWidgetColor"),N=useTh("colors","folderTextColor");return(0,h.useLayoutEffect)(()=>{T.current.style.setProperty("--leva-colors-folderWidgetColor",b||I),T.current.style.setProperty("--leva-colors-folderTextColor",b||N)},[b,I,N]),h.createElement(rc,{ref:T},h.createElement(FolderTitle,{name:o,toggled:_,toggle:()=>w(o=>!o)}),h.createElement(iu,{parent:g,tree:u,toggled:_}))},iu=h.memo(({isRoot:o=!1,fill:l=!1,flat:u=!1,parent:c,tree:g,toggled:y})=>{let{wrapperRef:b,contentRef:_}=useToggle(y),w=vector_plugin_5e122f40_esm_useStoreContext(),getOrder=([o,l])=>{var u;let h=isInput(l)?null===(u=w.getInput(l.path))||void 0===u?void 0:u.order:w.getFolderSettings(join(c,o)).order;return h||0},T=Object.entries(g).sort((o,l)=>getOrder(o)-getOrder(l));return h.createElement(rd,{ref:b,isRoot:o,fill:l,flat:u},h.createElement(rf,{ref:_,isRoot:o,toggled:y},T.map(([o,l])=>isInput(l)?h.createElement(il,{key:l.path,valueKey:l.valueKey,path:l.path}):h.createElement(Folder,{key:o,name:o,path:c,tree:l}))))}),ic=re("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${rg}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),id=re("i",{$flexCenter:"",width:40,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),ip=re("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),ih=re("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${id}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),ig=re("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),im=re("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:40}}}}),iy=h.forwardRef(({setFilter:o,toggle:l},u)=>{let[c,g]=(0,h.useState)(""),y=(0,h.useMemo)(()=>debounce(o,250),[o]),clear=()=>{o(""),g("")};return(0,h.useEffect)(()=>{y(c)},[c,y]),h.createElement(h.Fragment,null,h.createElement(ig,{ref:u,value:c,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:o=>o.stopPropagation(),onChange:o=>{let u=o.currentTarget.value;l(!0),g(u)}}),h.createElement(id,{onClick:()=>clear(),style:{visibility:c?"visible":"hidden"}},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function TitleWithFilter({setFilter:o,onDrag:l,onDragStart:u,onDragEnd:c,toggle:g,toggled:y,title:b,drag:_,filterEnabled:w,from:T}){let[I,N]=(0,h.useState)(!1),F=(0,h.useRef)(null);(0,h.useEffect)(()=>{var o,l;I?null===(o=F.current)||void 0===o||o.focus():null===(l=F.current)||void 0===l||l.blur()},[I]);let B=vector_plugin_5e122f40_esm_useDrag(({offset:[o,h],first:g,last:y})=>{l({x:o,y:h}),g&&u({x:o,y:h}),y&&c({x:o,y:h})},{filterTaps:!0,from:({offset:[o,l]})=>[(null==T?void 0:T.x)||o,(null==T?void 0:T.y)||l]});return(0,h.useEffect)(()=>{let handleShortcut=o=>{"L"===o.key&&o.shiftKey&&o.metaKey&&N(o=>!o)};return window.addEventListener("keydown",handleShortcut),()=>window.removeEventListener("keydown",handleShortcut)},[]),h.createElement(h.Fragment,null,h.createElement(ip,{mode:_?"drag":void 0},h.createElement(id,{active:!y,onClick:()=>g()},h.createElement(Chevron,{toggled:y,width:12,height:8})),h.createElement(im,vector_plugin_5e122f40_esm_extends({},_?B():{},{drag:_,filterEnabled:w}),void 0===b&&_?h.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},h.createElement("circle",{cx:"2",cy:"2",r:"2"}),h.createElement("circle",{cx:"14",cy:"2",r:"2"}),h.createElement("circle",{cx:"26",cy:"2",r:"2"}),h.createElement("circle",{cx:"2",cy:"12",r:"2"}),h.createElement("circle",{cx:"14",cy:"12",r:"2"}),h.createElement("circle",{cx:"26",cy:"12",r:"2"})):b),w&&h.createElement(id,{active:I,onClick:()=>N(o=>!o)},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"}
158,h.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),h.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),h.createElement(ih,{toggled:I},h.createElement(iy,{ref:F,setFilter:o,toggle:g})))}let iv=["store","hidden","theme","collapsed"];function LevaRoot(o){let{store:l,hidden:u=!1,theme:c,collapsed:g=!1}=o,y=vector_plugin_5e122f40_esm_objectWithoutProperties(o,iv),b=useDeepMemo(()=>mergeTheme(c),[c]),[_,w]=(0,h.useState)(!g),T="object"==typeof g?!g.collapsed:_,I=(0,h.useMemo)(()=>"object"==typeof g?o=>{"function"==typeof o?g.onChange(!o(!g.collapsed)):g.onChange(!o)}:w,[g]);return!l||u?null:h.createElement(t4.Provider,{value:b},h.createElement(ib,vector_plugin_5e122f40_esm_extends({store:l},y,{toggled:T,setToggle:I,rootClass:b.className})))}let ib=h.memo(({store:o,rootClass:l,fill:u=!1,flat:c=!1,neverHide:g=!1,oneLineLabels:y=!1,titleBar:b={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:_=!1,toggled:w,setToggle:T})=>{var I,N;let F=useVisiblePaths(o),[B,Z]=(0,h.useState)(""),W=(0,h.useMemo)(()=>buildTree(F,B),[F,B]),[H,U]=useTransform(),K=g||F.length>0,q="object"==typeof b&&b.title||void 0,G="object"!=typeof b||null===(I=b.drag)||void 0===I||I,Q="object"!=typeof b||null===(N=b.filter)||void 0===N||N,Y="object"==typeof b&&b.position||void 0,X="object"==typeof b&&b.onDrag||void 0,ee="object"==typeof b&&b.onDragStart||void 0,et="object"==typeof b&&b.onDragEnd||void 0;return h.useEffect(()=>{U({x:null==Y?void 0:Y.x,y:null==Y?void 0:Y.y})},[Y,U]),rn(),h.createElement(TooltipProvider,null,h.createElement(t6.Provider,{value:{hideCopyButton:_}},h.createElement(ic,{ref:H,className:l,fill:u,flat:c,oneLineLabels:y,hideTitleBar:!b,style:{display:K?"block":"none"}},b&&h.createElement(TitleWithFilter,{onDrag:o=>{U(o),null==X||X(o)},onDragStart:o=>null==ee?void 0:ee(o),onDragEnd:o=>null==et?void 0:et(o),setFilter:Z,toggle:o=>T(l=>null!=o?o:!l),toggled:w,title:q,drag:G,filterEnabled:Q,from:Y}),K&&h.createElement(t8.Provider,{value:o},h.createElement(iu,{isRoot:!0,fill:u,flat:c,tree:W,toggled:w})))))}),i_=["isRoot"],iS=!1,iw=null;function Leva(o){let{isRoot:l=!1}=o,u=vector_plugin_5e122f40_esm_objectWithoutProperties(o,i_);return(0,h.useEffect)(()=>(iS=!0,!l&&iw&&(iw.remove(),iw=null),()=>{l||(iS=!1)}),[l]),h.createElement(LevaRoot,vector_plugin_5e122f40_esm_extends({store:n4},u))}function useRenderRoot(o){(0,h.useEffect)(()=>{o&&!iS&&(!iw&&(iw=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(iw),(0,nP.createRoot)(iw).render(h.createElement(Leva,{isRoot:!0})))),iS=!0)},[o])}function parseArgs(o,l,u,c,h){let g,y,b,_,w;return"string"==typeof o?(w=o,g=l,Array.isArray(u)?_=u:u&&("store"in u?(b=u,_=c):(y=u,Array.isArray(c)?_=c:(b=c,_=h)))):(g=o,Array.isArray(l)?_=l:(b=l,_=u)),{schema:g,folderName:w,folderSettings:y,hookSettings:b,deps:_||[]}}function useControls(o,l,u,c,g){let{folderName:y,schema:b,folderSettings:_,hookSettings:w,deps:T}=parseArgs(o,l,u,c,g),I="function"==typeof b,N=(0,h.useRef)(!1),F=(0,h.useRef)(!0),B=useDeepMemo(()=>{N.current=!0;let o="function"==typeof b?b():b;return y?{[y]:folder(o,_)}:o},T),Z=!(null!=w&&w.store);useRenderRoot(Z);let[W]=(0,h.useState)(()=>(null==w?void 0:w.store)||n4),[H,U]=(0,h.useMemo)(()=>W.getDataFromSchema(B),[W,B]),[K,q,G,Q,Y]=(0,h.useMemo)(()=>{let o=[],l=[],u={},c={},h={};return Object.values(U).forEach(({path:g,onChange:y,onEditStart:b,onEditEnd:_,transient:w})=>{o.push(g),y?(u[g]=y,w||l.push(g)):l.push(g),b&&(c[g]=b),_&&(h[g]=_)}),[o,l,u,c,h]},[U]),X=(0,h.useMemo)(()=>W.orderPaths(K),[K,W]),ee=useValuesForPath(W,q,H),et=(0,h.useCallback)(o=>{let l=Object.entries(o).reduce((o,[l,u])=>Object.assign(o,{[U[l].path]:u}),{});W.set(l,!1)},[W,U]),er=(0,h.useCallback)(o=>W.get(U[o].path),[W,U]);return((0,h.useEffect)(()=>{let o=!F.current&&N.current;return W.addData(H,o),F.current=!1,N.current=!1,()=>W.disposePaths(X)},[W,X,H]),(0,h.useEffect)(()=>{let o=[];return Object.entries(G).forEach(([l,u])=>
158{u(W.get(l),l,vector_plugin_5e122f40_esm_objectSpread2({initial:!0,get:W.get},W.getInput(l)));let c=W.useStore.subscribe(o=>{let u=o.data[l],c=u.disabled?void 0:u.value;return[c,u]},([o,c])=>u(o,l,vector_plugin_5e122f40_esm_objectSpread2({initial:!1,get:W.get},c)),{equalityFn:shallow});o.push(c)}),()=>o.forEach(o=>o())},[W,G]),(0,h.useEffect)(()=>{let o=[];return Object.entries(Q).forEach(([l,u])=>o.push(W.subscribeToEditStart(l,u))),Object.entries(Y).forEach(([l,u])=>o.push(W.subscribeToEditEnd(l,u))),()=>o.forEach(o=>o())},[Q,Y,W]),I)?[ee,et,er]:ee}register(tY.SELECT,rB),register(tY.IMAGE,nQ),register(tY.NUMBER,rM),register(tY.COLOR,nL),register(tY.STRING,rH),register(tY.BOOLEAN,rq),register(tY.INTERVAL,n2),register(tY.VECTOR3D,nM),register(tY.VECTOR2D,nV)},66:function(o,l,u){"use strict";var c=u(1833),h=u(9386),g=u(3200),y=u(1086);o.exports=function(o,l,u){if(!c(o))throw TypeError("expected an object");if("string"!=typeof l||null==u)return h.apply(null,arguments);if("string"==typeof u)return y(o,l,u),o;var b=g(o,l);return c(u)&&c(b)&&(u=h({},b,u)),y(o,l,u),o}},9386:function(o,l,u){"use strict";var c=u(1833),h=u(2561);function mixinDeep(o,l){for(var u=arguments.length,c=0;++c<u;){var g=arguments[c];isObject(g)&&h(g,copy,o)}return o}function copy(o,l){if(isValidKey(l)){var u=this[l];isObject(o)&&isObject(u)?mixinDeep(u,o):this[l]=o}}function isObject(o){return c(o)&&!Array.isArray(o)}function isValidKey(o){return"__proto__"!==o&&"constructor"!==o&&"prototype"!==o}o.exports=mixinDeep},4545:function(o,l,u){"use strict";let c;u.d(l,{Jc:function(){return appWithTranslation},$G:function(){return useTranslation_useTranslation}});var h=u(7294);function utils_warn(){if(console&&console.warn){for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];
158"string"==typeof l[0]&&(l[0]=`react-i18next:: ${l[0]}`),console.warn(...l)}}u(1739),Object.create(null);let g={};function utils_warnOnce(){for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];"string"==typeof l[0]&&g[l[0]]||("string"==typeof l[0]&&(g[l[0]]=new Date),utils_warn(...l))}let loadedClb=(o,l)=>()=>{if(o.isInitialized)l();else{let initialized=()=>{setTimeout(()=>{o.off("initialized",initialized)},0),l()};o.on("initialized",initialized)}};function loadNamespaces(o,l,u){o.loadNamespaces(l,loadedClb(o,u))}function loadLanguages(o,l,u,c){"string"==typeof u&&(u=[u]),u.forEach(l=>{0>o.options.ns.indexOf(l)&&o.options.ns.push(l)}),o.loadLanguages(l,loadedClb(o,c))}function oldI18nextHasLoadedNamespace(o,l){let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=l.languages[0],h=!!l.options&&l.options.fallbackLng,g=l.languages[l.languages.length-1];if("cimode"===c.toLowerCase())return!0;let loadNotPending=(o,u)=>{let c=l.services.backendConnector.state[`${o}|${u}`];return -1===c||2===c};return(!(u.bindI18n&&u.bindI18n.indexOf("languageChanging")>-1)||!l.services.backendConnector.backend||!l.isLanguageChangingTo||!!loadNotPending(l.isLanguageChangingTo,o))&&!!(l.hasResourceBundle(c,o)||!l.services.backendConnector.backend||l.options.resources&&!l.options.partialBundledLanguages||loadNotPending(c,o)&&(!h||loadNotPending(g,o)))}function hasLoadedNamespace(o,l){let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!l.languages||!l.languages.length)return utils_warnOnce("i18n.languages were undefined or empty",l.languages),!0;let c=void 0!==l.options.ignoreJSONStructure;return c?l.hasLoadedNamespace(o,{lng:u.lng,precheck:(l,c)=>{if(u.bindI18n&&u.bindI18n.indexOf("languageChanging")>-1&&l.services.backendConnector.backend&&l.isLanguageChangingTo&&!c(l.isLanguageChangingTo,o))return!1}}):oldI18nextHasLoadedNamespace(o,l,u)}let y=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,b={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},unescapeHtmlEntity=o=>b[o],_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:o=>o.replace(y,unescapeHtmlEntity)};function defaults_getDefaults(){return _}function i18nInstance_getI18n(){return c}let w=(0,h.createContext)();let ReportNamespaces=class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(o){o.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};let usePrevious=(o,l)=>{let u=(0,h.useRef)();return(0,h.useEffect)(()=>{u.current=l?u.current:o},[o,l]),u.current};function useTranslation_useTranslation(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:u}=l,{i18n:c,defaultNS:g}=(0,h.useContext)(w)||{},y=u||c||i18nInstance_getI18n();if(y&&!y.reportNamespaces&&(y.reportNamespaces=new ReportNamespaces),!y){utils_warnOnce("You will need to pass in an i18next instance by using initReactI18next");let notReadyT=(o,l)=>"string"==typeof l?l:l&&"object"==typeof l&&"string"==typeof l.defaultValue?l.defaultValue:Array.isArray(o)?o[o.length-1]:o,o=[notReadyT,{},!1];return o.t=notReadyT,o.i18n={},o.ready=!1,o}y.options.react&&void 0!==y.options.react.wait&&utils_warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let b={...defaults_getDefaults(),...y.options.react,...l},{useSuspense:_,keyPrefix:T}=b,I=o||g||y.options&&y.options.defaultNS;I="string"==typeof I?[I]:I||["translation"],y.reportNamespaces.addUsedNamespaces&&y.reportNamespaces.addUsedNamespaces(I);let N=(y.isInitialized||y.initializedStoreOnce)&&I.every(o=>hasLoadedNamespace(o,y,b));function getT(){return y.getFixedT(l.lng||null,"fallback"===b.nsMode?I:I[0],T)}let[F,B]=(0,h.useState)(getT),Z=I.join();l.lng&&(Z=`${l.lng}${Z}`);let W=usePrevious(Z),H=(0,h.useRef)(!0);(0,h.useEffect)(()=>{let{bindI18n:o,bindI18nStore:u}=b;function boundReset(){H.current&&B(getT)}return H.current=!0,N||_||(l.lng?loadLanguages(y,l.lng,I,()=>{H.current&&B(getT)}):loadNamespaces(y,I,()=>{H.current&&B(getT)})),N&&W&&W!==Z&&H.current&&B(getT),o&&y&&y.on(o,boundReset),u&&y&&y.store.on(u,boundReset),()=>{H.current=!1,o&&y&&o.split(" ").forEach(o=>y.off(o,boundReset)),u&&y&&u.split(" ").forEach(o=>y.store.off(o,boundReset))}},[y,Z]);let U=(0,h.useRef)(!0);(0,h.useEffect)(()=>{H.current&&!U.current&&B(getT),U.current=!1},[y,T]);let K=[F,y,N];
158if(K.t=F,K.i18n=y,K.ready=N,N||!N&&!_)return K;throw new Promise(o=>{l.lng?loadLanguages(y,l.lng,I,()=>o()):loadNamespaces(y,I,()=>o())})}function I18nextProvider(o){let{i18n:l,defaultNS:u,children:c}=o,g=(0,h.useMemo)(()=>({i18n:l,defaultNS:u}),[l,u]);return(0,h.createElement)(w.Provider,{value:g},c)}var T=u(7462),I=u(1002);function toPrimitive(o,l){if("object"!=(0,I.Z)(o)||!o)return o;var u=o[Symbol.toPrimitive];if(void 0!==u){var c=u.call(o,l||"default");if("object"!=(0,I.Z)(c))return c;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===l?String:Number)(o)}function toPropertyKey(o){var l=toPrimitive(o,"string");return"symbol"==(0,I.Z)(l)?l:l+""}function _defineProperty(o,l,u){return(l=toPropertyKey(l))in o?Object.defineProperty(o,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[l]=u,o}var N=u(8679),F=u.n(N);function _arrayLikeToArray(o,l){(null==l||l>o.length)&&(l=o.length);for(var u=0,c=Array(l);u<l;u++)c[u]=o[u];return c}function _arrayWithoutHoles(o){if(Array.isArray(o))return _arrayLikeToArray(o)}function _iterableToArray(o){if("undefined"!=typeof Symbol&&null!=o[Symbol.iterator]||null!=o["@@iterator"])return Array.from(o)}function _unsupportedIterableToArray(o,l){if(o){if("string"==typeof o)return _arrayLikeToArray(o,l);var u=({}).toString.call(o).slice(8,-1);return"Object"===u&&o.constructor&&(u=o.constructor.name),"Map"===u||"Set"===u?Array.from(o):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray(o,l):void 0}}function _nonIterableSpread(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function toConsumableArray_toConsumableArray(o){return _arrayWithoutHoles(o)||_iterableToArray(o)||_unsupportedIterableToArray(o)||_nonIterableSpread()}function _arrayWithHoles(o){if(Array.isArray(o))return o}function _iterableToArrayLimit(o,l){var u=null==o?null:"undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(null!=u){var c,h,g,y,b=[],_=!0,w=!1;try{if(g=(u=u.call(o)).next,0===l){if(Object(u)!==u)return;_=!1}else for(;!(_=(c=g.call(u)).done)&&(b.push(c.value),b.length!==l);_=!0);}catch(o){w=!0,h=o}finally{try{if(!_&&null!=u.return&&(y=u.return(),Object(y)!==y))return}finally{if(w)throw h}}return b}}function _nonIterableRest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(o,l){return _arrayWithHoles(o)||_iterableToArrayLimit(o,l)||_unsupportedIterableToArray(o,l)||_nonIterableRest()}var B=u(3366);function _objectWithoutProperties(o,l){if(null==o)return{};var u,c,h=(0,B.Z)(o,l);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(o);for(c=0;c<g.length;c++)u=g[c],-1===l.indexOf(u)&&({}).propertyIsEnumerable.call(o,u)&&(h[u]=o[u])}return h}var Z={defaultNS:"common",errorStackTraceLimit:0,i18n:{defaultLocale:"en",locales:["en"]},get initImmediate(){return"undefined"!=typeof window},get initAsync(){return"undefined"!=typeof window},interpolation:{escapeValue:!1},load:"currentOnly",localeExtension:"json",localePath:"./public/locales",localeStructure:"{{lng}}/{{ns}}",react:{useSuspense:!1},reloadOnPrerender:!1,serializeConfig:!0,use:[]},W="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,H=["i18n"],U=["i18n"];function ownKeys(o,l){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);l&&(c=c.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),u.push.apply(u,c)}return u}function _objectSpread(o){for(var l=1;l<arguments.length;l++){var u=null!=arguments[l]?arguments[l]:{};l%2?ownKeys(Object(u),!0).forEach(function(l){_defineProperty(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}var K=["backend","detection"],createConfig=function(o){if("string"!=typeof(null==o?void 0:o.lng))throw Error("config.lng was not passed into createConfig");var l,u,c,h=o.i18n,g=_objectWithoutProperties(o,H),y=Z.i18n,b=_objectSpread(_objectSpread(_objectSpread(_objectSpread({},_objectWithoutProperties(Z,U)),g),y),h),_=b.defaultNS,w=b.lng,T=b.localeExtension,N=b.localePath,F=b.nonExplicitSupportedLngs,B=b.locales.filter(function(o){return"default"!==o});if("cimode"===w)return b;if(void 0===b.fallbackLng&&(b.fallbackLng=b.defaultLocale,"default"===b.fallbackLng)){var W=_slicedToArray(B,1);b.fallbackLng=W[0]}var q=null==o||null===(l=o.interpolation)||void 0===l?void 0:l.prefix,G=null==o||null===(u=o.interpolation)||void 0===u?void 0:u.suffix,Q=null!=q?q:"{{",Y=null!=G?G:"}}";"string"!=typeof(null==o?void 0:o.localeStructure)&&(q||G)&&(b.localeStructure="".concat(Q,"lng").concat(Y,"/").concat(Q,"ns").concat(Y));var X=b.fallbackLng,ee=b.localeStructure;if(F){var createFallbackObject=function(o,l){var u=_slicedToArray(l.split("-"),1)[0];return o[l]=[u],o};if("string"==typeof X)b.fallbackLng=b.locales.filter(function(o){return o.includes("-")}).reduce(createFallbackObject,{default:[X]});else if(Array.isArray(X))b.fallbackLng=b.locales.filter(function(o){return o.includes("-")}).reduce(createFallbackObject,{default:X});else if("object"===(0,I.Z)(X))b.fallbackLng=Object.entries(b.fallbackLng).reduce(function(o,l){var u,c=_slicedToArray(l,2),h=c[0],g=c[1];return o[h]=h.includes("-")?(u=[h.split("-")[0]].concat(toConsumableArray_toConsumableArray(g)),Array.from(new Set(u))):g,o},X);else if("function"==typeof X)throw Error("If nonExplicitSupportedLngs is true, no functions are allowed for fallbackLng")}return(null==o||null===(c=o.use)||void 0===c?void 0:c.some(function(o){return"backend"===o.type}))||("string"==typeof N?b.backend={addPath:"".concat(N,"/").concat(ee,".missing.").concat(T),loadPath:"".concat(N,"/").concat(ee,".").concat(T)}:"function"!=typeof N||(b.backend={addPath:function(o,l){return N(o,l,!0)},loadPath:function(o,l){return N(o,l,!1)}})),"string"==typeof b.ns||Array.isArray(b.ns)||(b.ns=[_]),K.forEac
158h(function(l){o[l]&&(b[l]=_objectSpread(_objectSpread({},b[l]),o[l]))}),b};let isString=o=>"string"==typeof o,defer=()=>{let o,l;let u=new Promise((u,c)=>{o=u,l=c});return u.resolve=o,u.reject=l,u},makeString=o=>null==o?"":""+o,copy=(o,l,u)=>{o.forEach(o=>{l[o]&&(u[o]=l[o])})},q=/###/g,cleanKey=o=>o&&o.indexOf("###")>-1?o.replace(q,"."):o,canNotTraverseDeeper=o=>!o||isString(o),getLastOfPath=(o,l,u)=>{let c=isString(l)?l.split("."):l,h=0;for(;h<c.length-1;){if(canNotTraverseDeeper(o))return{};let l=cleanKey(c[h]);!o[l]&&u&&(o[l]=new u),o=Object.prototype.hasOwnProperty.call(o,l)?o[l]:{},++h}return canNotTraverseDeeper(o)?{}:{obj:o,k:cleanKey(c[h])}},setPath=(o,l,u)=>{let{obj:c,k:h}=getLastOfPath(o,l,Object);if(void 0!==c||1===l.length){c[h]=u;return}let g=l[l.length-1],y=l.slice(0,l.length-1),b=getLastOfPath(o,y,Object);for(;void 0===b.obj&&y.length;)g=`${y[y.length-1]}.${g}`,(b=getLastOfPath(o,y=y.slice(0,y.length-1),Object))&&b.obj&&void 0!==b.obj[`${b.k}.${g}`]&&(b.obj=void 0);b.obj[`${b.k}.${g}`]=u},pushPath=(o,l,u,c)=>{let{obj:h,k:g}=getLastOfPath(o,l,Object);h[g]=h[g]||[],h[g].push(u)},getPath=(o,l)=>{let{obj:u,k:c}=getLastOfPath(o,l);if(u)return u[c]},getPathWithDefaults=(o,l,u)=>{let c=getPath(o,u);return void 0!==c?c:getPath(l,u)},deepExtend=(o,l,u)=>{for(let c in l)"__proto__"!==c&&"constructor"!==c&&(c in o?isString(o[c])||o[c]instanceof String||isString(l[c])||l[c]instanceof String?u&&(o[c]=l[c]):deepExtend(o[c],l[c],u):o[c]=l[c]);return o},regexEscape=o=>o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var G={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let i18next_escape=o=>isString(o)?o.replace(/[&<>"'\/]/g,o=>G[o]):o;let RegExpCache=class RegExpCache{constructor(o){this.capacity=o,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(o){let l=this.regExpMap.get(o);if(void 0!==l)return l;let u=new RegExp(o);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(o,u),this.regExpQueue.push(o),u}};let Q=[" ",",","?","!",";"],Y=new RegExpCache(20),looksLikeObjectPath=(o,l,u)=>{l=l||"",u=u||"";let c=Q.filter(o=>0>l.indexOf(o)&&0>u.indexOf(o));if(0===c.length)return!0;let h=Y.getRegExp(`(${c.map(o=>"?"===o?"\\?":o).join("|")})`),g=!h.test(o);if(!g){let l=o.indexOf(u);l>0&&!h.test(o.substring(0,l))&&(g=!0)}return g},deepFind=function(o,l){let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!o)return;if(o[l])return o[l];let c=l.split(u),h=o;for(let o=0;o<c.length;){let l;if(!h||"object"!=typeof h)return;let g="";for(let y=o;y<c.length;++y)if(y!==o&&(g+=u),g+=c[y],void 0!==(l=h[g])){if(["string","number","boolean"].indexOf(typeof l)>-1&&y<c.length-1)continue;o+=y-o+1;break}h=l}return h},getCleanedCode=o=>o&&o.replace("_","-"),X={type:"logger",log(o){this.output("log",o)},warn(o){this.output("warn",o)},error(o){this.output("error",o)},output(o,l){console&&console[o]&&console[o].apply(console,l)}};let Logger=class Logger{constructor(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(o,l)}init(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=l.prefix||"i18next:",this.logger=o||X,this.options=l,this.debug=l.debug}log(){for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];return this.forward(l,"log","",!0)}warn(){for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];return this.forward(l,"warn","",!0)}error(){for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];return this.forward(l,"error","")}deprecate(){for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];return this.forward(l,"warn","WARNING DEPRECATED: ",!0)}forward(o,l,u,c){return c&&!this.debug?null:(isString(o[0])&&(o[0]=`${u}${this.prefix} ${o[0]}`),this.logger[l](o))}create(o){return new Logger(this.logger,{prefix:`${this.prefix}:${o}:`,...this.options})}clone(o){return(o=o||this.options).prefix=o.prefix||this.prefix,new Logger(this.logger,o)}};var ee=new Logger;let EventEmitter=class EventEmitter{constructor(){this.observers={}}on(o,l){return o.split(" ").forEach(o=>
158{this.observers[o]||(this.observers[o]=new Map);let u=this.observers[o].get(l)||0;this.observers[o].set(l,u+1)}),this}off(o,l){if(this.observers[o]){if(!l){delete this.observers[o];return}this.observers[o].delete(l)}}emit(o){for(var l=arguments.length,u=Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];if(this.observers[o]){let l=Array.from(this.observers[o].entries());l.forEach(o=>{let[l,c]=o;for(let o=0;o<c;o++)l(...u)})}if(this.observers["*"]){let l=Array.from(this.observers["*"].entries());l.forEach(l=>{let[c,h]=l;for(let l=0;l<h;l++)c.apply(c,[o,...u])})}}};let ResourceStore=class ResourceStore extends EventEmitter{constructor(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=o||{},this.options=l,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(o){0>this.options.ns.indexOf(o)&&this.options.ns.push(o)}removeNamespaces(o){let l=this.options.ns.indexOf(o);l>-1&&this.options.ns.splice(l,1)}getResource(o,l,u){let c,h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},g=void 0!==h.keySeparator?h.keySeparator:this.options.keySeparator,y=void 0!==h.ignoreJSONStructure?h.ignoreJSONStructure:this.options.ignoreJSONStructure;o.indexOf(".")>-1?c=o.split("."):(c=[o,l],u&&(Array.isArray(u)?c.push(...u):isString(u)&&g?c.push(...u.split(g)):c.push(u)));let b=getPath(this.data,c);return(!b&&!l&&!u&&o.indexOf(".")>-1&&(o=c[0],l=c[1],u=c.slice(2).join(".")),!b&&y&&isString(u))?deepFind(this.data&&this.data[o]&&this.data[o][l],u,g):b}addResource(o,l,u,c){let h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},g=void 0!==h.keySeparator?h.keySeparator:this.options.keySeparator,y=[o,l];u&&(y=y.concat(g?u.split(g):u)),o.indexOf(".")>-1&&(y=o.split("."),c=l,l=y[1]),this.addNamespaces(l),setPath(this.data,y,c),h.silent||this.emit("added",o,l,u,c)}addResources(o,l,u){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let c in u)(isString(u[c])||Array.isArray(u[c]))&&this.addResource(o,l,c,u[c],{silent:!0});c.silent||this.emit("added",o,l,u)}addResourceBundle(o,l,u,c,h){let g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},y=[o,l];o.indexOf(".")>-1&&(y=o.split("."),c=u,u=l,l=y[1]),this.addNamespaces(l);let b=getPath(this.data,y)||{};g.skipCopy||(u=JSON.parse(JSON.stringify(u))),c?deepExtend(b,u,h):b={...b,...u},setPath(this.data,y,b),g.silent||this.emit("added",o,l,u)}removeResourceBundle(o,l){this.hasResourceBundle(o,l)&&delete this.data[o][l],this.removeNamespaces(l),this.emit("removed",o,l)}hasResourceBundle(o,l){return void 0!==this.getResource(o,l)}getResourceBundle(o,l){return(l||(l=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(o,l)}:this.getResource(o,l)}getDataByLanguage(o){return this.data[o]}hasLanguageSomeTranslations(o){let l=this.getDataByLanguage(o),u=l&&Object.keys(l)||[];return!!u.find(o=>l[o]&&Object.keys(l[o]).length>0)}toJSON(){return this.data}};var et={processors:{},addPostProcessor(o){this.processors[o.name]=o},handle(o,l,u,c,h){return o.forEach(o=>{this.processors[o]&&(l=this.processors[o].process(l,u,c,h))}),l}};let er={};let Translator=class Translator extends EventEmitter{constructor(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
158i18nFormat","utils"],o,this),this.options=l,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=ee.create("translator")}changeLanguage(o){o&&(this.language=o)}exists(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==o)return!1;let u=this.resolve(o,l);return u&&void 0!==u.res}extractFromKey(o,l){let u=void 0!==l.nsSeparator?l.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");let c=void 0!==l.keySeparator?l.keySeparator:this.options.keySeparator,h=l.ns||this.options.defaultNS||[],g=u&&o.indexOf(u)>-1,y=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!looksLikeObjectPath(o,u,c);if(g&&!y){let l=o.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:o,namespaces:isString(h)?[h]:h};let g=o.split(u);(u!==c||u===c&&this.options.ns.indexOf(g[0])>-1)&&(h=g.shift()),o=g.join(c)}return{key:o,namespaces:isString(h)?[h]:h}}translate(o,l,u){if("object"!=typeof l&&this.options.overloadTranslationOptionHandler&&(l=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof l&&(l={...l}),l||(l={}),null==o)return"";Array.isArray(o)||(o=[String(o)]);let c=void 0!==l.returnDetails?l.returnDetails:this.options.returnDetails,h=void 0!==l.keySeparator?l.keySeparator:this.options.keySeparator,{key:g,namespaces:y}=this.extractFromKey(o[o.length-1],l),b=y[y.length-1],_=l.lng||this.language,w=l.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(_&&"cimode"===_.toLowerCase()){if(w){let o=l.nsSeparator||this.options.nsSeparator;return c?{res:`${b}${o}${g}`,usedKey:g,exactUsedKey:g,usedLng:_,usedNS:b,usedParams:this.getUsedParamsDetails(l)}:`${b}${o}${g}`}return c?{res:g,usedKey:g,exactUsedKey:g,usedLng:_,usedNS:b,usedParams:this.getUsedParamsDetails(l)}:g}let T=this.resolve(o,l),I=T&&T.res,N=T&&T.usedKey||g,F=T&&T.exactUsedKey||g,B=Object.prototype.toString.apply(I),Z=void 0!==l.joinArrays?l.joinArrays:this.options.joinArrays,W=!this.i18nFormat||this.i18nFormat.handleAsObject,H=!isString(I)&&"boolean"!=typeof I&&"number"!=typeof I;if(W&&I&&H&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(B)&&!(isString(Z)&&Array.isArray(I))){if(!l.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let o=this.options.returnedObjectHandler?this.options.returnedObjectHandler(N,I,{...l,ns:y}):`key '${g} (${this.language})' returned an object instead of string.`;return c?(T.res=o,T.usedParams=this.getUsedParamsDetails(l),T):o}if(h){let o=Array.isArray(I),u=o?[]:{},c=o?F:N;for(let o in I)if(Object.prototype.hasOwnProperty.call(I,o)){let g=`${c}${h}${o}`;u[o]=this.translate(g,{...l,joinArrays:!1,ns:y}),u[o]===g&&(u[o]=I[o])}I=u}}else if(W&&isString(Z)&&Array.isArray(I))(I=I.join(Z))&&(I=this.extendTranslation(I,o,l,u));else{let c=!1,y=!1,w=void 0!==l.count&&!isString(l.count),N=Translator.hasDefaultValue(l),F=w?this.pluralResolver.getSuffix(_,l.count,l):"",B=l.ordinal&&w?this.pluralResolver.getSuffix(_,l.count,{ordinal:!1}):"",Z=w&&!l.ordinal&&0===l.count&&this.pluralResolver.shouldUseIntlApi(),W=Z&&l[`defaultValue${this.options.pluralSeparator}zero`]||l[`defaultValue${F}`]||l[`defaultValue${B}`]||l.defaultValue;!this.isValidLookup(I)&&N&&(c=!0,I=W),this.isValidLookup(I)||(y=!0,I=g);let H=l.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,U=H&&y?void 0:I,K=N&&W!==I&&this.options.updateMissing;if(y||c||K){if(this.logger.log(K?"updateKey":"missingKey",_,b,g,K?W:I),h){let o=this.resolve(g,{...l,keySeparator:!1});o&&o.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let o=[],u=this.languageUtils.getFallbackCodes(this.options.fallbackLng,l.lng||this.language);if("fallback"===this.options.saveMissingTo&&u&&u[0])for(let l=0;l<u.length;l++)o.push(u[l]);else"all"===this.options.saveMissingTo?o=this.languageUtils.toResolveHierarchy(l.lng||this.language):o.push(l.lng||this.language);let send=(o,u,c)=>{let h=N&&c!==I?c:U;this.options.missingKeyHandler?this.options.missingKeyHandler(o,b,u,h,K,l):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(o,b,u,h,K,l),this.emit
158("missingKey",o,b,u,I)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?o.forEach(o=>{let u=this.pluralResolver.getSuffixes(o,l);Z&&l[`defaultValue${this.options.pluralSeparator}zero`]&&0>u.indexOf(`${this.options.pluralSeparator}zero`)&&u.push(`${this.options.pluralSeparator}zero`),u.forEach(u=>{send([o],g+u,l[`defaultValue${u}`]||W)})}):send(o,g,W))}I=this.extendTranslation(I,o,l,T,u),y&&I===g&&this.options.appendNamespaceToMissingKey&&(I=`${b}:${g}`),(y||c)&&this.options.parseMissingKeyHandler&&(I="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${b}:${g}`:g,c?I:void 0):this.options.parseMissingKeyHandler(I))}return c?(T.res=I,T.usedParams=this.getUsedParamsDetails(l),T):I}extendTranslation(o,l,u,c,h){var g=this;if(this.i18nFormat&&this.i18nFormat.parse)o=this.i18nFormat.parse(o,{...this.options.interpolation.defaultVariables,...u},u.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!u.skipInterpolation){let y;u.interpolation&&this.interpolator.init({...u,interpolation:{...this.options.interpolation,...u.interpolation}});let b=isString(o)&&(u&&u.interpolation&&void 0!==u.interpolation.skipOnVariables?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(b){let l=o.match(this.interpolator.nestingRegexp);y=l&&l.length}let _=u.replace&&!isString(u.replace)?u.replace:u;if(this.options.interpolation.defaultVariables&&(_={...this.options.interpolation.defaultVariables,..._}),o=this.interpolator.interpolate(o,_,u.lng||this.language||c.usedLng,u),b){let l=o.match(this.interpolator.nestingRegexp),c=l&&l.length;y<c&&(u.nest=!1)}!u.lng&&"v1"!==this.options.compatibilityAPI&&c&&c.res&&(u.lng=this.language||c.usedLng),!1!==u.nest&&(o=this.interpolator.nest(o,function(){for(var o=arguments.length,c=Array(o),y=0;y<o;y++)c[y]=arguments[y];return h&&h[0]===c[0]&&!u.context?(g.logger.warn(`It seems you are nesting recursively key: ${c[0]} in key: ${l[0]}`),null):g.translate(...c,l)},u)),u.interpolation&&this.interpolator.reset()}let y=u.postProcess||this.options.postProcess,b=isString(y)?[y]:y;return null!=o&&b&&b.length&&!1!==u.applyPostProcessor&&(o=et.handle(b,o,l,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(u)},...u}:u,this)),o}resolve(o){let l,u,c,h,g,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return isString(o)&&(o=[o]),o.forEach(o=>{if(this.isValidLookup(l))return;let b=this.extractFromKey(o,y),_=b.key;u=_;let w=b.namespaces;this.options.fallbackNS&&(w=w.concat(this.options.fallbackNS));let T=void 0!==y.count&&!isString(y.count),I=T&&!y.ordinal&&0===y.count&&this.pluralResolver.shouldUseIntlApi(),N=void 0!==y.context&&(isString(y.context)||"number"==typeof y.context)&&""!==y.context,F=y.lngs?y.lngs:this.languageUtils.toResolveHierarchy(y.lng||this.language,y.fallbackLng);w.forEach(o=>{this.isValidLookup(l)||(g=o,!er[`${F[0]}-${o}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(g)&&(er[`${F[0]}-${o}`]=!0,this.logger.warn(`key "${u}" for languages "${F.join(", ")}" won't get resolved as namespace "${g}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),F.forEach(u=>{let g;if(this.isValidLookup(l))return;h=u;let b=[_];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,_,u,o,y);else{let o;T&&(o=this.pluralResolver.getSuffix(u,y.count,y));let l=`${this.options.pluralSeparator}zero`,c=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(b.push(_+o),y.ordinal&&0===o.indexOf(c)&&b.push(_+o.replace(c,this.options.pluralSeparator)),I&&b.push(_+l)),N){let u=`${_}${this.options.contextSeparator}${y.context}`;b.push(u),T&&(b.push(u+o),y.ordinal&&0===o.indexOf(c)&&b.push(u+o.replace(c,this.options.pluralSeparator)),I&&b.push(u+l))}}for(;g=b.pop();)this.isValidLookup(l)||(c=g,l=this.getResource(u,o,g,y))}
158))})}),{res:l,usedKey:u,exactUsedKey:c,usedLng:h,usedNS:g}}isValidLookup(o){return void 0!==o&&!(!this.options.returnNull&&null===o)&&!(!this.options.returnEmptyString&&""===o)}getResource(o,l,u){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(o,l,u,c):this.resourceStore.getResource(o,l,u,c)}getUsedParamsDetails(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=o.replace&&!isString(o.replace),u=l?o.replace:o;if(l&&void 0!==o.count&&(u.count=o.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!l)for(let o of(u={...u},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete u[o];return u}static hasDefaultValue(o){let l="defaultValue";for(let u in o)if(Object.prototype.hasOwnProperty.call(o,u)&&l===u.substring(0,l.length)&&void 0!==o[u])return!0;return!1}};let capitalize=o=>o.charAt(0).toUpperCase()+o.slice(1);let LanguageUtil=class LanguageUtil{constructor(o){this.options=o,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ee.create("languageUtils")}getScriptPartFromCode(o){if(!(o=getCleanedCode(o))||0>o.indexOf("-"))return null;let l=o.split("-");return 2===l.length?null:(l.pop(),"x"===l[l.length-1].toLowerCase())?null:this.formatLanguageCode(l.join("-"))}getLanguagePartFromCode(o){if(!(o=getCleanedCode(o))||0>o.indexOf("-"))return o;let l=o.split("-");return this.formatLanguageCode(l[0])}formatLanguageCode(o){if(isString(o)&&o.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let l=Intl.getCanonicalLocales(o)[0];if(l&&this.options.lowerCaseLng&&(l=l.toLowerCase()),l)return l}catch(o){}let l=["hans","hant","latn","cyrl","cans","mong","arab"],u=o.split("-");return this.options.lowerCaseLng?u=u.map(o=>o.toLowerCase()):2===u.length?(u[0]=u[0].toLowerCase(),u[1]=u[1].toUpperCase(),l.indexOf(u[1].toLowerCase())>-1&&(u[1]=capitalize(u[1].toLowerCase()))):3===u.length&&(u[0]=u[0].toLowerCase(),2===u[1].length&&(u[1]=u[1].toUpperCase()),"sgn"!==u[0]&&2===u[2].length&&(u[2]=u[2].toUpperCase()),l.indexOf(u[1].toLowerCase())>-1&&(u[1]=capitalize(u[1].toLowerCase())),l.indexOf(u[2].toLowerCase())>-1&&(u[2]=capitalize(u[2].toLowerCase()))),u.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?o.toLowerCase():o}isSupportedCode(o){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(o=this.getLanguagePartFromCode(o)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(o)>-1}getBestMatchFromCodes(o){let l;return o?(o.forEach(o=>{if(l)return;let u=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(u))&&(l=u)}),!l&&this.options.supportedLngs&&o.forEach(o=>{if(l)return;let u=this.getLanguagePartFromCode(o);if(this.isSupportedCode(u))return l=u;l=this.options.supportedLngs.find(o=>{if(o===u||!(0>o.indexOf("-")&&0>u.indexOf("-"))&&(o.indexOf("-")>0&&0>u.indexOf("-")&&o.substring(0,o.indexOf("-"))===u||0===o.indexOf(u)&&u.length>1))return o})}),l||(l=this.getFallbackCodes(this.options.fallbackLng)[0]),l):null}getFallbackCodes(o,l){if(!o)return[];if("function"==typeof o&&(o=o(l)),isString(o)&&(o=[o]),Array.isArray(o))return o;if(!l)return o.default||[];let u=o[l];return u||(u=o[this.getScriptPartFromCode(l)]),u||(u=o[this.formatLanguageCode(l)]),u||(u=o[this.getLanguagePartFromCode(l)]),u||(u=o.default),u||[]}toResolveHierarchy(o,l){let u=this.getFallbackCodes(l||this.options.fallbackLng||[],o),c=[],addCode=o=>{o&&(this.isSupportedCode(o)?c.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return isString(o)&&(o.indexOf("-")>-1||o.indexOf("_")>-1)?("languageOnly"!==this.options.load&&addCode(this.formatLanguageCode(o)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&addCode(this.getScriptPartFromCode(o)),"currentOnly"!==this.options.load&&addCode(this.getLanguagePartFromCode(o))):isString(o)&&addCode(this.formatLanguageCode(o)),u.forEach(o=>{0>c.indexOf(o)&&addCode(this.formatLanguageCode(o))}),c}};let en=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","
158sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ei={1:o=>Number(o>1),2:o=>Number(1!=o),3:o=>0,4:o=>Number(o%10==1&&o%100!=11?0:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?1:2),5:o=>Number(0==o?0:1==o?1:2==o?2:o%100>=3&&o%100<=10?3:o%100>=11?4:5),6:o=>Number(1==o?0:o>=2&&o<=4?1:2),7:o=>Number(1==o?0:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?1:2),8:o=>Number(1==o?0:2==o?1:8!=o&&11!=o?2:3),9:o=>Number(o>=2),10:o=>Number(1==o?0:2==o?1:o<7?2:o<11?3:4),11:o=>Number(1==o||11==o?0:2==o||12==o?1:o>2&&o<20?2:3),12:o=>Number(o%10!=1||o%100==11),13:o=>Number(0!==o),14:o=>Number(1==o?0:2==o?1:3==o?2:3),15:o=>Number(o%10==1&&o%100!=11?0:o%10>=2&&(o%100<10||o%100>=20)?1:2),16:o=>Number(o%10==1&&o%100!=11?0:0!==o?1:2),17:o=>Number(1==o||o%10==1&&o%100!=11?0:1),18:o=>Number(0==o?0:1==o?1:2),19:o=>Number(1==o?0:0==o||o%100>1&&o%100<11?1:o%100>10&&o%100<20?2:3),20:o=>Number(1==o?0:0==o||o%100>0&&o%100<20?1:2),21:o=>Number(o%100==1?1:o%100==2?2:o%100==3||o%100==4?3:0),22:o=>Number(1==o?0:2==o?1:(o<0||o>10)&&o%10==0?2:3)},eo=["v1","v2","v3"],ea=["v4"],es={zero:0,one:1,two:2,few:3,many:4,other:5},createRules=()=>{let o={};return en.forEach(l=>{l.lngs.forEach(u=>{o[u]={numbers:l.nr,plurals:ei[l.fc]}})}),o};let PluralResolver=class PluralResolver{constructor(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=o,this.options=l,this.logger=ee.create("pluralResolver"),(!this.options.compatibilityJSON||ea.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules(),this.pluralRulesCache={}}addRule(o,l){this.rules[o]=l}clearCache(){this.pluralRulesCache={}}getRule(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){let u;let c=getCleanedCode("dev"===o?"en":o),h=l.ordinal?"ordinal":"cardinal",g=JSON.stringify({cleanedCode:c,type:h});if(g in this.pluralRulesCache)return this.pluralRulesCache[g];try{u=new Intl.PluralRules(c,{type:h})}catch(h){if(!o.match(/-|_/))return;let c=this.languageUtils.getLanguagePartFromCode(o);u=this.getRule(c,l)}return this.pluralRulesCache[g]=u,u}return this.rules[o]||this.rules[this.languageUtils.getLanguagePartFromCode(o)]}needsPlural(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=this.getRule(o,l);return this.shouldUseIntlApi()?u&&u.resolvedOptions().pluralCategories.length>1:u&&u.numbers.length>1}getPluralFormsOfKey(o,l){let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(o,u).map(o=>`${l}${o}`)}getSuffixes(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=this.getRule(o,l);return u?this.shouldUseIntlApi()?u.resolvedOptions().pluralCategories.sort((o,l)=>es[o]-es[l]).map(o=>`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${o}`):u.numbers.map(u=>this.getSuffix(o,u,l)):[]}getSuffix(o,l){let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=this.getRule(o,u);return c?this.shouldUseIntlApi()?`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${c.select(l)}`:this.getSuffixRetroCompatible(c,l):(this.logger.warn(`no plural rule found for: ${o}`),"")}getSuffixRetroCompatible(o,l){let u=o.noAbs?o.plurals(l):o.plurals(Math.abs(l)),c=o.numbers[u];this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[
1580]&&(2===c?c="plural":1===c&&(c=""));let returnSuffix=()=>this.options.prepend&&c.toString()?this.options.prepend+c.toString():c.toString();return"v1"===this.options.compatibilityJSON?1===c?"":"number"==typeof c?`_plural_${c.toString()}`:returnSuffix():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]?returnSuffix():this.options.prepend&&u.toString()?this.options.prepend+u.toString():u.toString()}shouldUseIntlApi(){return!eo.includes(this.options.compatibilityJSON)}};let deepFindWithDefaults=function(o,l,u){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",h=!(arguments.length>4)||void 0===arguments[4]||arguments[4],g=getPathWithDefaults(o,l,u);return!g&&h&&isString(u)&&void 0===(g=deepFind(o,u,c))&&(g=deepFind(l,u,c)),g},regexSafe=o=>o.replace(/\$/g,"$$$$");let Interpolator=class Interpolator{constructor(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ee.create("interpolator"),this.options=o,this.format=o.interpolation&&o.interpolation.format||(o=>o),this.init(o)}init(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o.interpolation||(o.interpolation={escapeValue:!0});let{escape:l,escapeValue:u,useRawValueToEscape:c,prefix:h,prefixEscaped:g,suffix:y,suffixEscaped:b,formatSeparator:_,unescapeSuffix:w,unescapePrefix:T,nestingPrefix:I,nestingPrefixEscaped:N,nestingSuffix:F,nestingSuffixEscaped:B,nestingOptionsSeparator:Z,maxReplaces:W,alwaysFormat:H}=o.interpolation;this.escape=void 0!==l?l:i18next_escape,this.escapeValue=void 0===u||u,this.useRawValueToEscape=void 0!==c&&c,this.prefix=h?regexEscape(h):g||"{{",this.suffix=y?regexEscape(y):b||"}}",this.formatSeparator=_||",",this.unescapePrefix=w?"":T||"-",this.unescapeSuffix=this.unescapePrefix?"":w||"",this.nestingPrefix=I?regexEscape(I):N||regexEscape("$t("),this.nestingSuffix=F?regexEscape(F):B||regexEscape(")"),this.nestingOptionsSeparator=Z||",",this.maxReplaces=W||1e3,this.alwaysFormat=void 0!==H&&H,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let getOrResetRegExp=(o,l)=>o&&o.source===l?(o.lastIndex=0,o):RegExp(l,"g");this.regexp=getOrResetRegExp(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=getOrResetRegExp(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=getOrResetRegExp(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(o,l,u,c){let h,g,y;let b=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},handleFormat=o=>{if(0>o.indexOf(this.formatSeparator)){let h=deepFindWithDefaults(l,b,o,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(h,void 0,u,{...c,...l,interpolationkey:o}):h}let h=o.split(this.formatSeparator),g=h.shift().trim(),y=h.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(l,b,g,this.options.keySeparator,this.options.ignoreJSONStructure),y,u,{...c,...l,interpolationkey:g})};this.resetRegExp();let _=c&&c.missingInterpolationHandler||this.options.missingInterpolationHandler,w=c&&c.interpolation&&void 0!==c.interpolation.skipOnVariables?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,T=[{regex:this.regexpUnescape,safeValue:o=>regexSafe(o)},{regex:this.regexp,safeValue:o=>this.escapeValue?regexSafe(this.escape(o)):regexSafe(o)}];return T.forEach(l=>{for(y=0;h=l.regex.exec(o);){let u=h[1].trim();if(void 0===(g=handleFormat(u))){if("function"==typeof _){let l=_(o,h,c);g=isString(l)?l:""}else if(c&&Object.prototype.hasOwnProperty.call(c,u))g="";else if(w){g=h[0];continue}else this.logger.warn(`missed to pass in variable ${u} for interpolating ${o}`),g=""}else isString(g)||this.useRawValueToEscape||(g=makeString(g));let b=l.safeValue(g);if(o=o.replace(h[0],b),w?(l.regex.lastIndex+=g.length,l.regex.lastIndex-=h[0].length):l.regex.lastIndex=0,++y>=this.maxReplaces)break}}),o}nest(o,l){let u,c,h,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},handleHasOptions=(o,l)=>{let u=this.nestingOptionsSeparator;if(0>o.indexOf(u))return o;let c=o.split(RegExp(`${u}[ ]*{`)),g=`{${c[1]}`;o=c[0],g=this.interpolate(g,h);let y=g.match(/'/g),b=g.match(/"/g);(y&&y.length%2==0&&!b||b.length%2!=0)&&(g=g.replace(/'/g,'"'));try{h=JSON.parse(g),l&&(h={...l,...h})}catch(l){return this.logger.warn(`failed parsing options string in nesting for key ${o}`,l),`${o}${u}${g}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,o};for(;u=this.nestingRegexp.exec(o);){let y=[];(h=(h={...g}).replace&&!isString(h.replace)?h.replace:h).applyPostProcessor=!1,delete h.defaultValue;let b=!1;if(-1!==u[0].indexOf(this.formatSeparator)&&!/{.*}/.test(u[1])){let o=u[1].split(this.formatSeparator).map(o=>o.trim());u[1]=o.shift(),y=o,b=!0}if((c=l(handleHasOptions.call(this,u[1].trim(),h),h))&&u[0]===o&&!isString(c))return c;isString(c)||(c=makeString(c)),c||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${o}`),c=""),b&&(c=y.reduce((o,l)=>
158this.format(o,l,g.lng,{...g,interpolationkey:u[1].trim()}),c.trim())),o=o.replace(u[0],c),this.regexp.lastIndex=0}return o}};let parseFormatStr=o=>{let l=o.toLowerCase().trim(),u={};if(o.indexOf("(")>-1){let c=o.split("(");l=c[0].toLowerCase().trim();let h=c[1].substring(0,c[1].length-1);if("currency"===l&&0>h.indexOf(":"))u.currency||(u.currency=h.trim());else if("relativetime"===l&&0>h.indexOf(":"))u.range||(u.range=h.trim());else{let o=h.split(";");o.forEach(o=>{if(o){let[l,...c]=o.split(":"),h=c.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();u[g]||(u[g]=h),"false"===h&&(u[g]=!1),"true"===h&&(u[g]=!0),isNaN(h)||(u[g]=parseInt(h,10))}})}}return{formatName:l,formatOptions:u}},createCachedFormatter=o=>{let l={};return(u,c,h)=>{let g=h;h&&h.interpolationkey&&h.formatParams&&h.formatParams[h.interpolationkey]&&h[h.interpolationkey]&&(g={...g,[h.interpolationkey]:void 0});let y=c+JSON.stringify(g),b=l[y];return b||(b=o(getCleanedCode(c),h),l[y]=b),b(u)}};let Formatter=class Formatter{constructor(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ee.create("formatter"),this.options=o,this.formats={number:createCachedFormatter((o,l)=>{let u=new Intl.NumberFormat(o,{...l});return o=>u.format(o)}),currency:createCachedFormatter((o,l)=>{let u=new Intl.NumberFormat(o,{...l,style:"currency"});return o=>u.format(o)}),datetime:createCachedFormatter((o,l)=>{let u=new Intl.DateTimeFormat(o,{...l});return o=>u.format(o)}),relativetime:createCachedFormatter((o,l)=>{let u=new Intl.RelativeTimeFormat(o,{...l});return o=>u.format(o,l.range||"day")}),list:createCachedFormatter((o,l)=>{let u=new Intl.ListFormat(o,{...l});return o=>u.format(o)})},this.init(o)}init(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=l.interpolation.formatSeparator||","}add(o,l){this.formats[o.toLowerCase().trim()]=l}addCached(o,l){this.formats[o.toLowerCase().trim()]=createCachedFormatter(l)}format(o,l,u){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=l.split(this.formatSeparator);if(h.length>1&&h[0].indexOf("(")>1&&0>h[0].indexOf(")")&&h.find(o=>o.indexOf(")")>-1)){let o=h.findIndex(o=>o.indexOf(")")>-1);h[0]=[h[0],...h.splice(1,o)].join(this.formatSeparator)}let g=h.reduce((o,l)=>{let{formatName:h,formatOptions:g}=parseFormatStr(l);if(this.formats[h]){let l=o;try{let y=c&&c.formatParams&&c.formatParams[c.interpolationkey]||{},b=y.locale||y.lng||c.locale||c.lng||u;l=this.formats[h](o,b,{...g,...c,...y})}catch(o){this.logger.warn(o)}return l}return this.logger.warn(`there was no format function for ${h}`),o},o);return g}};let removePending=(o,l)=>{void 0!==o.pending[l]&&(delete o.pending[l],o.pendingCount--)};let Connector=class Connector extends EventEmitter{constructor(o,l,u){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=o,this.store=l,this.services=u,this.languageUtils=u.languageUtils,this.options=c,this.logger=ee.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=c.maxParallelReads||10,this.readingCalls=0,this.maxRetries=c.maxRetries>=0?c.maxRetries:5,this.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(u,c.backend,c)}queueLoad(o,l,u,c){let h={},g={},y={},b={};return o.forEach(o=>{let c=!0;l.forEach(l=>{let y=`${o}|${l}`;!u.reload&&this.store.hasResourceBundle(o,l)?this.state[y]=2:this.state[y]<0||(1===this.state[y]?void 0===g[y]&&(g[y]=!0):(this.state[y]=1,c=!1,void 0===g[y]&&(g[y]=!0),void 0===h[y]&&(h[y]=!0),void 0===b[l]&&(b[l]=!0)))}),c||(y[o]=!0)}),(Object.keys(h).length||Object.keys(g).length)&&this.queue.push({pending:g,pendingCount:Object.keys(g).length,loaded:{},errors:[],callback:c}
158),{toLoad:Object.keys(h),pending:Object.keys(g),toLoadLanguages:Object.keys(y),toLoadNamespaces:Object.keys(b)}}loaded(o,l,u){let c=o.split("|"),h=c[0],g=c[1];l&&this.emit("failedLoading",h,g,l),!l&&u&&this.store.addResourceBundle(h,g,u,void 0,void 0,{skipCopy:!0}),this.state[o]=l?-1:2,l&&u&&(this.state[o]=0);let y={};this.queue.forEach(u=>{pushPath(u.loaded,[h],g),removePending(u,o),l&&u.errors.push(l),0!==u.pendingCount||u.done||(Object.keys(u.loaded).forEach(o=>{y[o]||(y[o]={});let l=u.loaded[o];l.length&&l.forEach(l=>{void 0===y[o][l]&&(y[o][l]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(o=>!o.done)}read(o,l,u){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,g=arguments.length>5?arguments[5]:void 0;if(!o.length)return g(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:l,fcName:u,tried:c,wait:h,callback:g});return}this.readingCalls++;let resolver=(y,b)=>{if(this.readingCalls--,this.waitingReads.length>0){let o=this.waitingReads.shift();this.read(o.lng,o.ns,o.fcName,o.tried,o.wait,o.callback)}if(y&&b&&c<this.maxRetries){setTimeout(()=>{this.read.call(this,o,l,u,c+1,2*h,g)},h);return}g(y,b)},y=this.backend[u].bind(this.backend);if(2===y.length){try{let u=y(o,l);u&&"function"==typeof u.then?u.then(o=>resolver(null,o)).catch(resolver):resolver(null,u)}catch(o){resolver(o)}return}return y(o,l,resolver)}prepareLoading(o,l){let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();isString(o)&&(o=this.languageUtils.toResolveHierarchy(o)),isString(l)&&(l=[l]);let h=this.queueLoad(o,l,u,c);if(!h.toLoad.length)return h.pending.length||c(),null;h.toLoad.forEach(o=>{this.loadOne(o)})}load(o,l,u){this.prepareLoading(o,l,{},u)}reload(o,l,u){this.prepareLoading(o,l,{reload:!0},u)}loadOne(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",u=o.split("|"),c=u[0],h=u[1];this.read(c,h,"read",void 0,void 0,(u,g)=>{u&&this.logger.warn(`${l}loading namespace ${h} for language ${c} failed`,u),!u&&g&&this.logger.log(`${l}loaded namespace ${h} for language ${c}`,g),this.loaded(o,u,g)})}saveMissing(o,l,u,c,h){let g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},y=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(l)){this.logger.warn(`did not save key "${u}" as the namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=u&&""!==u){if(this.backend&&this.backend.create){let b={...g,isUpdate:h},_=this.backend.create.bind(this.backend);if(_.length<6)try{let h;(h=5===_.length?_(o,l,u,c,b):_(o,l,u,c))&&"function"==typeof h.then?h.then(o=>y(null,o)).catch(y):y(null,h)}catch(o){y(o)}else _(o,l,u,c,y,b)}o&&o[0]&&this.store.addResource(o[0],l,u,c)}}};let get=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o=>{let l={};if("object"==typeof o[1]&&(l=o[1]),isString(o[1])&&(l.defaultValue=o[1]),isString(o[2])&&(l.tDescription=o[2]),"object"==typeof o[2]||"object"==typeof o[3]){let u=o[3]||o[2];Object.keys(u).forEach(o=>{l[o]=u[o]})}return l},interpolation:{escapeValue:!0,format:o=>o,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),transformOptions=o=>(isString(o.ns)&&(o.ns=[o.ns]),isString(o.fallbackLng)&&(o.fallbackLng=[o.fallbackLng]),isString(o.fallbackNS)&&(o.fallbackNS=[o.fallbackNS]),o.supportedLngs&&0>o.supportedLngs.indexOf("cimode")&&(o.supportedLngs=o.supportedLngs.concat(["cimode"])),o),noop=()=>{},bindMemberFunctions=o=>
158{let l=Object.getOwnPropertyNames(Object.getPrototypeOf(o));l.forEach(l=>{"function"==typeof o[l]&&(o[l]=o[l].bind(o))})};let I18n=class I18n extends EventEmitter{constructor(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(o),this.services={},this.logger=ee,this.modules={external:[]},bindMemberFunctions(this),l&&!this.isInitialized&&!o.isClone){if(!this.options.initImmediate)return this.init(o,l),this;setTimeout(()=>{this.init(o,l)},0)}}init(){var o=this;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof l&&(u=l,l={}),!l.defaultNS&&!1!==l.defaultNS&&l.ns&&(isString(l.ns)?l.defaultNS=l.ns:0>l.ns.indexOf("translation")&&(l.defaultNS=l.ns[0]));let c=get();this.options={...c,...this.options,...transformOptions(l)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...c.interpolation,...this.options.interpolation}),void 0!==l.keySeparator&&(this.options.userDefinedKeySeparator=l.keySeparator),void 0!==l.nsSeparator&&(this.options.userDefinedNsSeparator=l.nsSeparator);let createClassOnDemand=o=>o?"function"==typeof o?new o:o:null;if(!this.options.isClone){let l;this.modules.logger?ee.init(createClassOnDemand(this.modules.logger),this.options):ee.init(null,this.options),this.modules.formatter?l=this.modules.formatter:"undefined"!=typeof Intl&&(l=Formatter);let u=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);let h=this.services;h.logger=ee,h.resourceStore=this.store,h.languageUtils=u,h.pluralResolver=new PluralResolver(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(h.formatter=createClassOnDemand(l),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new Interpolator(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new Connector(createClassOnDemand(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(l){for(var u=arguments.length,c=Array(u>1?u-1:0),h=1;h<u;h++)c[h-1]=arguments[h];o.emit(l,...c)}),this.modules.languageDetector&&(h.languageDetector=createClassOnDemand(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=createClassOnDemand(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Translator(this.services,this.options),this.translator.on("*",function(l){for(var u=arguments.length,c=Array(u>1?u-1:0),h=1;h<u;h++)c[h-1]=arguments[h];o.emit(l,...c)}),this.modules.external.forEach(o=>{o.init&&o.init(this)})}if(this.format=this.options.interpolation.format,u||(u=noop),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.length>0&&"dev"!==o[0]&&(this.options.lng=o[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(l=>{this[l]=function(){return o.store[l](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(l=>{this[l]=function(){return o.store[l](...arguments),o}});let h=defer(),load=()=>{let finish=(o,l)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(l),u(o,l)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return finish(null,this.t.bind(this));this.changeLanguage(this.options.lng,finish)};return this.options.resources||!this.options.initImmediate?load():setTimeout(load,0),h}loadResources(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:noop,u=l,c=isString(o)?o:this.language;if("function"==typeof o&&(u=o),!this.options.resources||this.options.partialBundledLanguages){if(c&&"cimode"===c.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return u();let o=[],append=l=>{if(!l||"cimode"===l)return;let u=this.services.languageUtils.toResolveHierarchy(l);u.forEach(l=>{"cimode"!==l&&0>o.indexOf(l)&&o.push(l)})};if(c)append(c);else{let o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.forEach(o=>append(o))}
158this.options.preload&&this.options.preload.forEach(o=>append(o)),this.services.backendConnector.load(o,this.options.ns,o=>{o||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),u(o)})}else u(null)}reloadResources(o,l,u){let c=defer();return"function"==typeof o&&(u=o,o=void 0),"function"==typeof l&&(u=l,l=void 0),o||(o=this.languages),l||(l=this.options.ns),u||(u=noop),this.services.backendConnector.reload(o,l,o=>{c.resolve(),u(o)}),c}use(o){if(!o)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===o.type&&(this.modules.backend=o),("logger"===o.type||o.log&&o.warn&&o.error)&&(this.modules.logger=o),"languageDetector"===o.type&&(this.modules.languageDetector=o),"i18nFormat"===o.type&&(this.modules.i18nFormat=o),"postProcessor"===o.type&&et.addPostProcessor(o),"formatter"===o.type&&(this.modules.formatter=o),"3rdParty"===o.type&&this.modules.external.push(o),this}setResolvedLanguage(o){if(o&&this.languages&&!(["cimode","dev"].indexOf(o)>-1))for(let o=0;o<this.languages.length;o++){let l=this.languages[o];if(!(["cimode","dev"].indexOf(l)>-1)&&this.store.hasLanguageSomeTranslations(l)){this.resolvedLanguage=l;break}}}changeLanguage(o,l){var u=this;this.isLanguageChangingTo=o;let c=defer();this.emit("languageChanging",o);let setLngProps=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},done=(o,h)=>{h?(setLngProps(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,c.resolve(function(){return u.t(...arguments)}),l&&l(o,function(){return u.t(...arguments)})},setLng=l=>{o||l||!this.services.languageDetector||(l=[]);let u=isString(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||setLngProps(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,o=>{done(o,u)})};return o||!this.services.languageDetector||this.services.languageDetector.async?!o&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(setLng):this.services.languageDetector.detect(setLng):setLng(o):setLng(this.services.languageDetector.detect()),c}getFixedT(o,l,u){var c=this;let fixedT=function(o,l){let h,g;if("object"!=typeof l){for(var y=arguments.length,b=Array(y>2?y-2:0),_=2;_<y;_++)b[_-2]=arguments[_];h=c.options.overloadTranslationOptionHandler([o,l].concat(b))}else h={...l};h.lng=h.lng||fixedT.lng,h.lngs=h.lngs||fixedT.lngs,h.ns=h.ns||fixedT.ns,""!==h.keyPrefix&&(h.keyPrefix=h.keyPrefix||u||fixedT.keyPrefix);let w=c.options.keySeparator||".";return g=h.keyPrefix&&Array.isArray(o)?o.map(o=>`${h.keyPrefix}${w}${o}`):h.keyPrefix?`${h.keyPrefix}${w}${o}`:o,c.t(g,h)};return isString(o)?fixedT.lng=o:fixedT.lngs=o,fixedT.ns=l,fixedT.keyPrefix=u,fixedT}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(o){this.options.defaultNS=o}hasLoadedNamespace(o){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
158if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let u=l.lng||this.resolvedLanguage||this.languages[0],c=!!this.options&&this.options.fallbackLng,h=this.languages[this.languages.length-1];if("cimode"===u.toLowerCase())return!0;let loadNotPending=(o,l)=>{let u=this.services.backendConnector.state[`${o}|${l}`];return -1===u||0===u||2===u};if(l.precheck){let o=l.precheck(this,loadNotPending);if(void 0!==o)return o}return!!(this.hasResourceBundle(u,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||loadNotPending(u,o)&&(!c||loadNotPending(h,o)))}loadNamespaces(o,l){let u=defer();return this.options.ns?(isString(o)&&(o=[o]),o.forEach(o=>{0>this.options.ns.indexOf(o)&&this.options.ns.push(o)}),this.loadResources(o=>{u.resolve(),l&&l(o)}),u):(l&&l(),Promise.resolve())}loadLanguages(o,l){let u=defer();isString(o)&&(o=[o]);let c=this.options.preload||[],h=o.filter(o=>0>c.indexOf(o)&&this.services.languageUtils.isSupportedCode(o));return h.length?(this.options.preload=c.concat(h),this.loadResources(o=>{u.resolve(),l&&l(o)}),u):(l&&l(),Promise.resolve())}dir(o){if(o||(o=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!o)return"rtl";let l=this.services&&this.services.languageUtils||new LanguageUtil(get());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(l.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return new I18n(o,l)}cloneInstance(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:noop,u=o.forkResourceStore;u&&delete o.forkResourceStore;let c={...this.options,...o,isClone:!0},h=new I18n(c);return(void 0!==o.debug||void 0!==o.prefix)&&(h.logger=h.logger.clone(o)),["store","services","language"].forEach(o=>{h[o]=this[o]}),h.services={...this.services},h.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},u&&(h.store=new ResourceStore(this.store.data,c),h.services.resourceStore=h.store),h.translator=new Translator(h.services,c),h.translator.on("*",function(o){for(var l=arguments.length,u=Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];h.emit(o,...u)}),h.init(c,l),h.translator.options=c,h.translator.backendConnector.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},h}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};let el=I18n.createInstance();el.createInstance=I18n.createInstance,el.createInstance,el.dir,el.init,el.loadResources,el.reloadResources,el.use,el.changeLanguage,el.getFixedT,el.t,el.exists,el.setDefaultNamespace,el.hasLoadedNamespace,el.loadNamespaces,el.loadLanguages;var browser=function(o){void 0===o.ns&&(o.ns=[]);var l,u,c=el.createInstance(o);return c.isInitialized?l=Promise.resolve(el.t):(null==o||null===(u=o.use)||void 0===u||u.forEach(function(o){return c.use(o)}),"function"==typeof o.onPreInitI18next&&o.onPreInitI18next(c),l=c.init(o)),{i18n:c,initPromise:l}},eu=h.createElement;function appWithTranslation_ownKeys(o,l){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);l&&(c=c.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),u.push.apply(u,c)}return u}function appWithTranslation_objectSpread(o){for(var l=1;l<arguments.length;l++){var u=null!=arguments[l]?arguments[l]:{};l%2?appWithTranslation_ownKeys(Object(u),!0).forEach(function(l){_defineProperty(o,l,u[l])}
158):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):appWithTranslation_ownKeys(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}var addResourcesToI18next=function(o,l){if(l&&o.isInitialized)for(var u=0,c=Object.keys(l);u<c.length;u++)for(var h=c[u],g=0,y=Object.keys(l[h]);g<y.length;g++){var b,_=y[g];null!=o&&null!==(b=o.store)&&void 0!==b&&b.data&&o.store.data[h]&&o.store.data[h][_]||o.addResourceBundle(h,_,l[h][_],!0,!0)}},appWithTranslation=function(o){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return F()(function(u){var c,g,y=(u.pageProps||{})._nextI18Next,b=null!==(c=null==y?void 0:y.initialLocale)&&void 0!==c?c:null==u||null===(g=u.router)||void 0===g?void 0:g.locale,_=null==y?void 0:y.ns,w=(0,h.useRef)(null),I=(0,h.useMemo)(function(){if(!y&&!l)return null;var o,u,c=null!=l?l:null==y?void 0:y.userConfig;if(!c)throw Error("appWithTranslation was called without a next-i18next config");if(!(null!=c&&c.i18n))throw Error("appWithTranslation was called without config.i18n");if(!(null!=c&&null!==(o=c.i18n)&&void 0!==o&&o.defaultLocale))throw Error("config.i18n does not include a defaultLocale property");var h=(y||{}).initialI18nStore,g=null!==(u=null==l?void 0:l.resources)&&void 0!==u?u:h;b||(b=c.i18n.defaultLocale);var T=w.current;return T?addResourcesToI18next(T,g):(addResourcesToI18next(T=browser(appWithTranslation_objectSpread(appWithTranslation_objectSpread(appWithTranslation_objectSpread({},createConfig(appWithTranslation_objectSpread(appWithTranslation_objectSpread({},c),{},{lng:b}))),{},{lng:b},_&&{ns:_}),{},{resources:g})).i18n,g),w.current=T),T},[y,b,_]);return W(function(){I&&b&&I.changeLanguage(b)},[I,b]),null!==I?eu(I18nextProvider,{i18n:I},eu(o,u)):eu(o,(0,T.Z)({key:b},u))},o)}},6840:function(o,l,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return u(8633)}])},1175:function(o){"use strict";o.exports={i18n:{defaultLocale:"es",locales:["es","en"]}}},2180:function(o,l,u){"use strict";u.d(l,{E:function(){return Img},x:function(){return Box}});var c=u(5893),h=u(7709);let Box=o=>(0,c.jsx)(h.Z,{component:"div",...o}),Img=o=>(0,c.jsx)(h.Z,{component:"img",...o})},2005:function(o,l,u){"use strict";u.d(l,{h:function(){return ComingSoon}});var c=u(5893),h=u(2180),g=u(5861),y=u(4545);let ComingSoon=()=>{let{t:o}=(0,y.$G)();return(0,c.jsx)(h.x,{sx:{padding:"4px",borderRadius:1,backgroundColor:o=>o.palette.purple[100]},children:(0,c.jsx)(g.Z,{sx:{fontFamily:"Nunito",fontSize:"14px",fontWeight:700,color:"#252541",textAlign:"center",lineHeight:"16.8px"},children:o("comingSoon")})})}},3034:function(o,l,u){"use strict";u.d(l,{r:function(){return Contact}});var c=u(5893),h=u(3219);let Contact=()=>(0,c.jsx)(h.Z,{children:(0,c.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("mask",{id:"mask0_394_510",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,c.jsx)("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),(0,c.jsx)("g",{mask:"url(#mask0_394_510)",children:(0,c.jsx)("path",{d:"M4 20C3.45 20 2.97917 19.8042 2.5875 19.4125C2.19583 19.0208 2 18.55 2 18V6C2 5.45 2.19583 4.97917 2.5875 4.5875C2.97917 4.19583 3.45 4 4 4H20C20.55 4 21.0208 4.19583 21.4125 4.5875C21.8042 4.97917 22 5.45 22 6V18C22 18.55 21.8042 19.0208 21.4125 19.4125C21.0208 19.8042 20.55 20 20 20H4ZM12 12.825C12.0833 12.825 12.1708 12.8125 12.2625 12.7875C12.3542 12.7625 12.4417 12.725 12.525 12.675L19.6 8.25C19.7333 8.16667 19.8333 8.0625 19.9 7.9375C19.9667 7.8125 20 7.675 20 7.525C20 7.19167 19.8583 6.94167 19.575 6.775C19.2917 6.60833 19 6.61667 18.7 6.8L12 11L5.3 6.8C5 6.61667 4.70833 6.6125 4.425 6.7875C4.14167 6.9625 4 7.20833 4 7.525C4 7.69167 4.03333 7.8375 4.1 7.9625C4.16667 8.0875 4.26667 8.18333 4.4 8.25L11.475 12.675C11.5583 12.725 11.6458 12.7625 11.7375 12.7875C11.8292 12.8125 11.9167 12.825 12 12.825Z",fill:"#E6EDF9"})})]})})},3966:function(o,l,u){"use strict";u.d(l,{d:function(){return Learn}});var c=u(5893),h=u(3219);let Learn=()=>(0,c.jsx)(h.Z,{children:(0,c.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("mask",{id:"mask0_394_444",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,c.jsx)("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),(0,c.jsx)("g",{mask:"url(#mask0_394_444)",children:(0,c.jsx)("path",{d:"M3 17.15V10C3 9.46667 3.19583 9.01667 3.5875 8.65C3.97917 8.28333 4.44167 8.11667 4.975 8.15C6.29167 8.35 7.54583 8.7375 8.7375 9.3125C9.92917 9.8875 11.0167 10.6333 12 11.55C12.9833 10.6333 14.0708 9.8875 15.2625 9.3125C16.4542 8.7375 17.7083 8.35 19.025 8.15C19.5583 8.11667 20.0208 8.28333 20.4125 8.65C20.8042 9.01667 21 9.46667 21 10V17.15C21 17.6833 20.825 18.1375 20.475 18.5125C20.125 18.8875 19.6833 19.0917 19.15 19.125C18.0833 19.2917 17.05 19.5667 16.05 19.95C15.05 20.3333 14.1167 20.8417 13.25 21.475C13.0667 21.625 12.8708 21.7375 12.6625 21.8125C12.4542 21.8875 12.2333 21.925 12 21.925C11.7667 21.925 11.5458 21.8875 11.3375 21.8125C11.1292 21.7375 10.9333 21.625 10.75 21.475C9.88333 20.8417 8.95 20.3333 7.95 19.95C6.95 19.5667 5.91667 19.2917 4.85 19.125C4.31667 19.0917 3.875 18.8875 3.525 18.5125C3.175 18.1375 3 17.6833 3 17.15ZM12 9C10.9 9 9.95833 8.60833 9.175 7.825C8.39167 7.04167 8 6.1 8 5C8 3.9 8.39167 2.95833 9.175 2.175C9.95833 1.39167 10.9 1 12 1C13.1 1 14.0417 1.3916
1587 14.825 2.175C15.6083 2.95833 16 3.9 16 5C16 6.1 15.6083 7.04167 14.825 7.825C14.0417 8.60833 13.1 9 12 9Z",fill:"#E6EDF9"})})]})})},4061:function(o,l,u){"use strict";u.d(l,{D:function(){return Map}});var c=u(5893),h=u(3219);let Map=()=>(0,c.jsx)(h.Z,{children:(0,c.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("mask",{id:"mask0_394_472",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,c.jsx)("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),(0,c.jsx)("g",{mask:"url(#mask0_394_472)",children:(0,c.jsx)("path",{d:"M8.37476 16.25L13.4248 14.8C13.7581 14.7 14.0456 14.5292 14.2873 14.2875C14.5289 14.0458 14.6998 13.7583 14.7998 13.425L16.2498 8.375C16.2998 8.19167 16.2539 8.02917 16.1123 7.8875C15.9706 7.74583 15.8081 7.7 15.6248 7.75L10.5748 9.2C10.2414 9.3 9.95392 9.47083 9.71226 9.7125C9.47059 9.95417 9.29976 10.2417 9.19976 10.575L7.74976 15.625C7.69976 15.8083 7.74559 15.9708 7.88726 16.1125C8.02892 16.2542 8.19142 16.3 8.37476 16.25ZM11.9998 13.5C11.5831 13.5 11.2289 13.3542 10.9373 13.0625C10.6456 12.7708 10.4998 12.4167 10.4998 12C10.4998 11.5833 10.6456 11.2292 10.9373 10.9375C11.2289 10.6458 11.5831 10.5 11.9998 10.5C12.4164 10.5 12.7706 10.6458 13.0623 10.9375C13.3539 11.2292 13.4998 11.5833 13.4998 12C13.4998 12.4167 13.3539 12.7708 13.0623 13.0625C12.7706 13.3542 12.4164 13.5 11.9998 13.5ZM11.9998 22C10.6164 22 9.31642 21.7375 8.09976 21.2125C6.88309 20.6875 5.82476 19.975 4.92476 19.075C4.02476 18.175 3.31226 17.1167 2.78726 15.9C2.26226 14.6833 1.99976 13.3833 1.99976 12C1.99976 10.6167 2.26226 9.31667 2.78726 8.1C3.31226 6.88333 4.02476 5.825 4.92476 4.925C5.82476 4.025 6.88309 3.3125 8.09976 2.7875C9.31642 2.2625 10.6164 2 11.9998 2C13.3831 2 14.6831 2.2625 15.8998 2.7875C17.1164 3.3125 18.1748 4.025 19.0748 4.925C19.9748 5.825 20.6873 6.88333 21.2123 8.1C21.7373 9.31667 21.9998 10.6167 21.9998 12C21.9998 13.3833 21.7373 14.6833 21.2123 15.9C20.6873 17.1167 19.9748 18.175 19.0748 19.075C18.1748 19.975 17.1164 20.6875 15.8998 21.2125C14.6831 21.7375 13.3831 22 11.9998 22Z",fill:"#E6EDF9"})})]})})},4554:function(o,l,u){"use strict";u.d(l,{H:function(){return useIsDevice}});var c=u(7294),h=u.t(c,2),g=u(3546),y=u(539),b=u(6073);function useMediaQueryOld(o,l,u,h,y){let[b,_]=c.useState(()=>y&&u?u(o).matches:h?h(o).matches:l);return(0,g.Z)(()=>{if(!u)return;let l=u(o),updateMatch=()=>{_(l.matches)};return updateMatch(),l.addEventListener("change",updateMatch),()=>{l.removeEventListener("change",updateMatch)}},[o,u]),b}let _={...h},w=_.useSyncExternalStore;function useMediaQueryNew(o,l,u,h,g){let y=c.useCallback(()=>l,[l]),b=c.useMemo(()=>{if(g&&u)return()=>u(o).matches;if(null!==h){let{matches:l}=h(o);return()=>l}return y},[y,o,h,g,u]),[_,T]=c.useMemo(()=>{if(null===u)return[y,()=>()=>{}];let l=u(o);return[()=>l.matches,o=>(l.addEventListener("change",o),()=>{l.removeEventListener("change",o)})]},[y,u,o]),I=w(T,_,b);return I}function unstable_createUseMediaQuery(o={}){let{themeId:l}=o;return function(o,u={}){let c=(0,b.Z)();c&&l&&(c=c[l]||c);let h="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:g=!1,matchMedia:_=h?window.matchMedia:null,ssrMatchMedia:T=null,noSsr:I=!1}=(0,y.Z)({name:"MuiUseMediaQuery",props:u,theme:c}),N="function"==typeof o?o(c):o;(N=N.replace(/^@media( ?)/m,"")).includes("print")&&console.warn("MUI: You have provided a `print` query to the `useMediaQuery` hook.\nUsing the print media query to modify print styles can lead to unexpected results.\nConsider using the `displayPrint` field in the `sx` prop instead.\nMore information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print.");let F=(void 0!==w?useMediaQueryNew:useMediaQueryOld)(N,g,_,T,I);return F}}unstable_createUseMediaQuery();var T=u(606);let I=unstable_createUseMediaQuery({themeId:T.Z}),useIsDevice=()=>{let o=I("(max-width:600px)"),l=I("(min-width:601px)");return{isMobile:o,isDesktop:l}}},3213:function(o,l,u){"use strict";u.d(l,{y:function(){return PageHead}});var c=u(5893),h=u(4545),g=u(9008),y=u.n(g),b=u(4298),_=u.n(b);let PageHead=o=>{let{title:l,children:u,description:g,image:b,type:w,keywords:T}=o,{t:I}=(0,h.$G)(),N=I("common:title"),F=l?"".concat(l," | ").concat(N):N,B=g||"Explora la memoria hist\xf3rica, el franquismo y el feminismo en Espa\xf1a con 'Amiga date cuenta'.",Z=b||"/logo-large.svg",W=T?T.join(", "):void 0,H=window.location.href;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(y(),{children:[(0,c.jsx)("title",{children:F}),(0,c.jsx)("meta",{name:"description",content:B}),(0,c.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,c.jsx)("link",{rel:"icon",href:"/favicon.ico"}),H&&(0,c.jsx)("link",{rel:"canonical",href:H}),(0,c.jsx)("meta",{name:"author",content:"Equipo de Amiga date cuenta"}),W&&(0,c.jsx)("meta",{name:"keywords",content:W}),(0,c.jsx)("meta",{property:"og:type",content:w||"website"}),(0,c.jsx)("meta",{property:"og:title",content:F}),(0,c.jsx)("meta",{property:"og:description",content:B}),(0,c.jsx)("meta",{property:"og:image",content:Z}),(0,c.jsx)("meta",{property:"og:image:alt",content:l||N}),(0,c.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,c.jsx)("meta",{name:"twitter:title",content:F}),(0,c.jsx)("meta",{name:"twitter:description",content:B}),(0,c.jsx)("meta",{name:"twitter:image",content:Z}),(0,c.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",name:N,url:H,description:B,image:Z})}}),u]}),(0,c.jsx)(_(),{defer:!0,src:"https://analytics.memoriahistorica.eu/script.js","data-website-id":"0a2942f6-3e2d-4f90-a410-fb36d0ecd377"})]})}},1322:function(o,l,u){"use strict";var c,h;u.d(l,{A:function(){return c}}),(h=c||(c={}
158)).Home="/",h.Map="/mapa",h.Learn="/aprende",h.Contactcolabora="/contacto#colabora",h.Contactdescarga="/contacto#descarga",h.Stories="/historias",h.Project="/proyecto",h.Blog="/blog"},8633:function(o,l,u){"use strict";u.r(l),u.d(l,{default:function(){return tu}});var c=u(5893),h=u(265),g=u(6620);let y=(0,g.Z)({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},error:{main:h.Z.A400},background:{paper:"#F0E9DA",default:"#F0E9DA"},green:{100:"#768070",200:"#BCD5AF",300:"#EBFDE5"},purple:{100:"#A3AEE2",200:"#53548F",300:"#C7D0F8"},coffee:{100:"#493335",200:"#663030"},yellow:{100:"#CBAD58",200:"#EFD99B",300:"#DFCE9F"}},typography:{h1:{color:"#493335",fontSize:"35px",fontFamily:"MostraNuova-Regular",fontWeight:"400",lineHeight:"35px"},h2:{fontSize:"20px",fontFamily:"MostraNuova-Regular",fontWeight:"300",textTransform:"uppercase",wordWrap:"break-word"},h3:{fontSize:"20px",fontFamily:"MostraNuova-Regular",fontWeight:"400",textTransform:"uppercase",wordWrap:"break-word"},body1:{color:"black",fontSize:"15px",fontFamily:"Nunito",fontWeight:"400",wordWrap:"break-word"}},components:{MuiDivider:{styleOverrides:{root:{borderBottom:"1px #493335 solid"}}},MuiAutocomplete:{styleOverrides:{root:{fieldset:{border:"none"}}}}}});u(7183);var b=u(3213),_=u(3219);let Comic=()=>(0,c.jsx)(_.Z,{children:(0,c.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("mask",{id:"mask0_394_428",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,c.jsx)("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),(0,c.jsx)("g",{mask:"url(#mask0_394_428)",children:(0,c.jsx)("path",{d:"M20.7 20.7C20.5667 20.8333 20.3958 20.925 20.1875 20.975C19.9792 21.025 19.7667 20.9917 19.55 20.875L13.9 18L11.7 20.2C11.5 20.4 11.2667 20.5 11 20.5C10.7333 20.5 10.5 20.4 10.3 20.2L8.1 18H5C4.71667 18 4.47917 17.9042 4.2875 17.7125C4.09583 17.5208 4 17.2833 4 17V13.9L1.8 11.7C1.6 11.5 1.5 11.2667 1.5 11C1.5 10.7333 1.6 10.5 1.8 10.3L4 8.1V5C4 4.71667 4.09583 4.47917 4.2875 4.2875C4.47917 4.09583 4.71667 4 5 4H8.1L10.3 1.8C10.5 1.6 10.7333 1.5 11 1.5C11.2667 1.5 11.5 1.6 11.7 1.8L13.9 4H17C17.2833 4 17.5208 4.09583 17.7125 4.2875C17.9042 4.47917 18 4.71667 18 5V8.1L20.2 10.3C20.4 10.5 20.5 10.7333 20.5 11C20.5 11.2667 20.4 11.5 20.2 11.7L18 13.9L20.875 19.55C20.9917 19.7667 21.025 19.9792 20.975 20.1875C20.925 20.3958 20.8333 20.5667 20.7 20.7Z",fill:"#E6EDF9"})})]})});var w=u(3034),T=u(3966),I=u(4061),N=u(4554),F=u(4529),B=u(782);let Z=(0,F.Ue)()((0,B.mW)(o=>({open:!1,setOpen:l=>o(()=>({open:l})),toggle:()=>o(o=>({open:!o.open}))})));var W=u(2066),H=(0,W.Z)([(0,c.jsx)("path",{d:"M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1m0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5z"},"0"),(0,c.jsx)("path",{d:"M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99M13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83m4.5 1.84c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24"},"1")],"MenuBook"),U=(0,W.Z)((0,c.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create"),K=(0,W.Z)((0,c.jsx)("path",{d:"M16.48 10.41c-.39.39-1.04.39-1.43 0l-4.47-4.46-7.05 7.04-.66-.63c-1.17-1.17-1.17-3.07 0-4.24l4.24-4.24c1.17-1.17 3.07-1.17 4.24 0L16.48 9c.39.39.39 1.02 0 1.41m.7-2.12c.78.78.78 2.05 0 2.83-1.27 1.27-2.61.22-2.83 0l-3.76-3.76-5.57 5.57c-.39.39-.39 1.02 0 1.41s1.02.39 1.42 0l4.62-4.62.71.71-4.62 4.62c-.39.39-.39 1.02 0 1.41s1.02.39 1.42 0l4.62-4.62.71.71-4.62 4.62c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.62-4.62.71.71-4.62 4.62c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l8.32-8.34c1.17-1.17 1.17-3.07 0-4.24l-4.24-4.24c-1.15-1.15-3.01-1.17-4.18-.06z"}),"Handshake"),q=u(1006),G=u(2096),Q=u(3659),Y=u(4545),X=u(7294),ee=u(2180);let CircularWrapper=o=>{let{children:l}=o;return(0,c.jsx)(ee.x,{sx:{height:"40px",width:"40px",borderRadius:"50%",backgroundColor:"#252541",display:"flex",alignItems:"center",justifyContent:"center"},children:l})},Question=()=>(0,c.jsx)(_.Z,{children:(0,c.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("mask",{id:"mask0_394_479",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,c.jsx)("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),(0,c.jsx)("g",{mask:"url(#mask0_394_479)",children:(0,c.jsx)("path",{d:"M11.75 19H11.5C9.13333 19 7.125 18.175 5.475 16.525C3.825 14.875 3 12.8667 3 10.5C3 8.13333 3.825 6.125 5.475 4.475C7.125 2.825 9.13333 2 11.5 2C12.6833 2 
15813.7875 2.22083 14.8125 2.6625C15.8375 3.10417 16.7375 3.7125 17.5125 4.4875C18.2875 5.2625 18.8958 6.1625 19.3375 7.1875C19.7792 8.2125 20 9.31667 20 10.5C20 12.7333 19.3708 14.8083 18.1125 16.725C16.8542 18.6417 15.2667 20.1417 13.35 21.225C13.1833 21.3083 13.0167 21.3542 12.85 21.3625C12.6833 21.3708 12.5333 21.3333 12.4 21.25C12.2667 21.1667 12.15 21.0583 12.05 20.925C11.95 20.7917 11.8917 20.6333 11.875 20.45L11.75 19ZM11.475 15.975C11.7583 15.975 12 15.875 12.2 15.675C12.4 15.475 12.5 15.2333 12.5 14.95C12.5 14.6667 12.4 14.425 12.2 14.225C12 14.025 11.7583 13.925 11.475 13.925C11.1917 13.925 10.95 14.025 10.75 14.225C10.55 14.425 10.45 14.6667 10.45 14.95C10.45 15.2333 10.55 15.475 10.75 15.675C10.95 15.875 11.1917 15.975 11.475 15.975ZM9.3 8.375C9.48333 8.45833 9.66667 8.4625 9.85 8.3875C10.0333 8.3125 10.1833 8.19167 10.3 8.025C10.45 7.825 10.625 7.67083 10.825 7.5625C11.025 7.45417 11.25 7.4 11.5 7.4C11.9 7.4 12.225 7.5125 12.475 7.7375C12.725 7.9625 12.85 8.25 12.85 8.6C12.85 8.81667 12.7875 9.03333 12.6625 9.25C12.5375 9.46667 12.3167 9.73333 12 10.05C11.5833 10.4167 11.275 10.7625 11.075 11.0875C10.875 11.4125 10.775 11.7417 10.775 12.075C10.775 12.275 10.8458 12.4458 10.9875 12.5875C11.1292 12.7292 11.3 12.8 11.5 12.8C11.7 12.8 11.8667 12.725 12 12.575C12.1333 12.425 12.2333 12.25 12.3 12.05C12.3833 11.7667 12.5333 11.5083 12.75 11.275C12.9667 11.0417 13.1667 10.8333 13.35 10.65C13.7 10.3 13.9625 9.95 14.1375 9.6C14.3125 9.25 14.4 8.9 14.4 8.55C14.4 7.78333 14.1375 7.16667 13.6125 6.7C13.0875 6.23333 12.3833 6 11.5 6C10.9667 6 10.475 6.12917 10.025 6.3875C9.575 6.64583 9.20833 7 8.925 7.45C8.825 7.63333 8.8125 7.8125 8.8875 7.9875C8.9625 8.1625 9.1 8.29167 9.3 8.375Z",fill:"#F2F5FB"})})]})});var et=u(5861),er=u(615);let DidYouKnowItem=o=>{let{title:l,content:u}=o;return(0,c.jsxs)(ee.x,{sx:{display:"flex",flexDirection:"column",textAlign:"left",width:"250px"},children:[(0,c.jsx)(et.Z,{sx:{color:o=>o.palette.coffee[100],fontSize:"20px",fontFamily:"Nunito",fontWeight:"700",lineHeight:"18px",wordWrap:"break-word"},children:l}),(0,c.jsx)(et.Z,{sx:{color:o=>o.palette.coffee[100],fontSize:"16px",fontFamily:"Nunito",fontWeight:"700",lineHeight:"19.20px",wordWrap:"break-word"},children:u})]})},DidYouKnow=()=>{let{t:o}=(0,Y.$G)(),l=(0,X.useMemo)(()=>{let l=[{title:o("didYouKnow"),content:"la represi\xf3n seguida de muerte para las mujeres ronda el 4% y el 7% dependiendo de la regi\xf3n que analicemos?"},{title:o("didYouKnow"),content:"el Patronato de Protecci\xf3n a la Mujer estuvo activo como instituci\xf3n represiva desde 1941 hasta 1985?"},{title:o("didYouKnow"),content:"las mujeres para poder sacarse el pasaporte o el carnet de conducir ten\xedan que hacer el Servicio Social?"}];return l},[o]);return(0,c.jsxs)(ee.x,{sx:{backgroundColor:"#D2DCF3",borderRadius:"20px",padding:"20px",display:"flex",flexDirection:"column",gap:"20px",height:"268px",border:o=>"1px solid ".concat(o.palette.coffee[100])},children:[(0,c.jsx)(CircularWrapper,{children:(0,c.jsx)(Question,{})}),(0,c.jsx)(er.lr,{showStatus:!1,centerMode:!1,showThumbs:!1,infiniteLoop:!0,children:l.map((o,l)=>(0,c.jsx)(DidYouKnowItem,{...o},l))})]})};var en=u(1322),ei=u(1163),eo=u.n(ei);let Logo=o=>{let{variant:l="primary",onClick:u}=o,{push:h}=(0,ei.useRouter)(),g=(0,X.useCallback)(()=>{u?u():h(en.A.Home)},[u,h]),y=(0,X.useMemo)(()=>"secondary"===l?"/logo-purple.svg":"/logo.svg",[l]);return(0,c.jsx)(ee.x,{onClick:g,sx:{cursor:"pointer",height:{xs:"50px",md:"unset"}},children:(0,c.jsx)("img",{src:y,alt:"Amiga Date Cuenta Logo",style:{maxHeight:"100%"}})})},Logov=()=>(0,c.jsx)(ee.x,{sx:{width:{xs:"200px",sm:"320px"},display:"flex",alignItems:"flex-start",alignSelf:"baseline",background:"white",borderRadius:"4px",overflow:"hidden"},children:(0,c.jsx)("img",{src:"/logo-fund.png",alt:"Proyecto financiado por el Gobierno de Espa\xf1a, Instituto de Las Mujeres",style:{objectFit:"contain",maxWidth:"100%"}})});var ea=u(948),es=u(5537),el=(0,W.Z)((0,c.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),eu=u(3946);let NavigationToggle=()=>{let{toggle:o,open:l}=Z(),u=(0,X.useCallback)(()=>{o()},[o]);return(0,c.jsx)(eu.Z,{sx:{height:"40px",width:"40px",background:l?"#E6EDF9":"#fff",color:"#000","&:hover":{background:l?"#fff":"#E6EDF9"}},onClick:u,children:l?(0,c.jsx)(es.Z,{}):(0,c.jsx)(el,{})})},ec=(0,ea.ZP)(ee.x,{shouldForwardProp:o=>"opacity"!==o})(o=>{let{theme:l,opacity:u}=o;return{opacity:u,display:"flex",transition:"opacity 0.5s",top:l.spacing(2),right:l.spacing(2),left:l.spacing(2),position:"fixed",justifyContent:"space-between",width:"unset",zIndex:999,"&:hover":{opacity:1}}}),NavigationBar=()=>{let{open:o}=Z(),[l,u]=(0,X.useState)(1);return(0,X.useEffect)(()=>{let handleScroll=()=>{let o=window.scrollY;o>100?u(.2):u(1)};return window.addEventListener("scroll",handleScroll),()=>{window.removeEventListener("scroll",handleScroll)}},[]),(0,c.jsxs)(ec,{sx:{opacity:l},children:[(0,c.jsxs)(ee.x,{sx:{display:"flex",gap:"12px"},children:[(0,c.jsx)(Logo,{variant:o?"secondary":"primary"}),(0,c.jsx)(Logov,{})]}),(0,c.jsx)(NavigationToggle,{})]})};var ed=u(2005),ep=u(512),ef=u(4780),eh=u(8366),eg=u(4136),em=u(6694),ey=u(8628),ev=u(9773),eb=u(1958),e_=u(8974),eS=u(1705
158),ew=u(5097),ex=u(1588);let eC=(0,ex.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]),eE=(0,ex.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);var ek=u(4867);function getMenuItemUtilityClass(o){return(0,ek.ZP)("MuiMenuItem",o)}let eP=(0,ex.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),useUtilityClasses=o=>{let{disabled:l,dense:u,divider:c,disableGutters:h,selected:g,classes:y}=o,b=(0,ef.Z)({root:["root",u&&"dense",l&&"disabled",!h&&"gutters",c&&"divider",g&&"selected"]},getMenuItemUtilityClass,y);return{...y,...b}},eO=(0,ea.ZP)(eb.Z,{shouldForwardProp:o=>(0,eg.Z)(o)||"classes"===o,name:"MuiMenuItem",slot:"Root",overridesResolver:(o,l)=>{let{ownerState:u}=o;return[l.root,u.dense&&l.dense,u.divider&&l.divider,!u.disableGutters&&l.gutters]}})((0,em.Z)(({theme:o})=>({...o.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(o.vars||o).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${eP.selected}`]:{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})`:(0,eh.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity),[`&.${eP.focusVisible}`]:{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.focusOpacity}))`:(0,eh.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.focusOpacity)}},[`&.${eP.selected}:hover`]:{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.hoverOpacity}))`:(0,eh.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})`:(0,eh.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity)}},[`&.${eP.focusVisible}`]:{backgroundColor:(o.vars||o).palette.action.focus},[`&.${eP.disabled}`]:{opacity:(o.vars||o).palette.action.disabledOpacity},[`& + .${ew.Z.root}`]:{marginTop:o.spacing(1),marginBottom:o.spacing(1)},[`& + .${ew.Z.inset}`]:{marginLeft:52},[`& .${eE.root}`]:{marginTop:0,marginBottom:0},[`& .${eE.inset}`]:{paddingLeft:36},[`& .${eC.root}`]:{minWidth:36},variants:[{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:o})=>o.divider,style:{borderBottom:`1px solid ${(o.vars||o).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:o})=>!o.dense,style:{[o.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:o})=>o.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...o.typography.body2,[`& .${eC.root} svg`]:{fontSize:"1.25rem"}}}]}))),eT=X.forwardRef(function(o,l){let u;let h=(0,ey.i)({props:o,name:"MuiMenuItem"}),{autoFocus:g=!1,component:y="li",dense:b=!1,divider:_=!1,disableGutters:w=!1,focusVisibleClassName:T,role:I="menuitem",tabIndex:N,className:F,...B}=h,Z=X.useContext(ev.Z),W=X.useMemo(()=>({dense:b||Z.dense||!1,disableGutters:w}),[Z.dense,b,w]),H=X.useRef(null);(0,e_.Z)(()=>{g&&H.current&&H.current.focus()},[g]);let U={...h,dense:W.dense,divider:_,disableGutters:w},K=useUtilityClasses(h),q=(0,eS.Z)(H,l);return h.disabled||(u=void 0!==N?N:-1),(0,c.jsx)(ev.Z.Provider,{value:W,children:(0,c.jsx)(eO,{ref:q,role:I,tabIndex:u,component:y,focusVisibleClassName:(0,ep.Z)(K.focusVisible,T),className:(0,ep.Z)(K.root,F),...B,ownerState:U,classes:K})})}),NavigationMenuItem=o=>{let{icon:l,label:u,comingSoon:h,href:g,openLinkInNewTab:y}=o,{setOpen:b}=Z(),{push:_}=(0,ei.useRouter)(),w=(0,X.useCallback)(()=>{g&&(b(!1),y?window.open(g,"_blank"):_(g))},[g,b,y,_]);return(0,c.jsxs)(eT,{onClick:w,sx:{backgroundColor:"#F2F5FB",height:"56px",borderRadius:"80px",border:o=>"1px solid ".concat(o.palette.coffee[100]),paddingLeft:1,paddingRight:2,justifyContent:"space-between","&:hover":{backgroundColor:"#E6E9F3"}},children:[(0,c.jsxs)(ee.x,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"},children:[(0,c.jsx)(eu.Z,{sx:{backgroundColor:"#252541",height:"40px",width:"40px","&:hover":{backgroundColor:"#252541"}},children:l}),(0,c.jsx)(et.Z,{sx:{fontFamily:"Nunito",fontSize:"16px",fontWeight:700},children:u})]}),h&&(0,c.jsx)(ed.h,{})]})},Navigation=()=>{let{isDesktop:o}=(0,N.H)(),{open:l,setOpen:u}=Z(),{t:h}=(0,Y.$G)();(0,X.useEffect)(()=>(l?document.body.style.overflow="hidden":document.body.style.overflow="auto",()=>{document.body.style.overflow="auto"}),[l]);let g=(0,X.useMemo)(()=>{let o=[{icon:(0,c.jsx)(H,{sx:{color:"#D2DCF3"}}),label:h("navigation.project"),href:en.A.Project},{icon:(0,c.jsx)(I.D,{}),label:h("navigation.map"),href:en.A.Map},{icon:(0,c.jsx)(Comic,{}),label:h("navigation.comic"),href:en.A.Stories},{icon:(0,c.jsx)(T.d,{}),label:h("navigation.learn"),href:en.A.Learn},{icon:(0,c.jsx)(U,{sx:{color:"#D2DCF3"}}),label:h("navigation.blog"),href:en.A.Blog},{icon:(0,c.jsx)(K,{sx:{color:"#D2DCF3"}}),label:h("navigation.collaborate"),href:"https://docs.google.com/forms/d/e/1FAIpQLScD-7whPZwvaTbns2v7adbcYJzmZUUTHvlbarFzajGaGMWiOQ/viewform",openLinkInNewTab:!0},{icon:(0,c.jsx)(w.r,{}),label:h("navigation.contact"),href:"mailto:[email protected]?subject=%C2
158%A1Muchas%20gracias%20por%20contactar%20con%20el%20proyecto%20AmigaDateCuenta.org!",openLinkInNewTab:!0}];return o},[h]);return(0,c.jsx)(q.Z,{open:l,onClose:()=>u(!1),style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,c.jsx)("div",{children:(0,c.jsx)(ee.x,{sx:{padding:2,width:{sm:"360px",xs:"100vw"},color:"#fff",display:"flex",position:"absolute",top:{sm:"8px",xs:0},right:{sm:"8px",xs:0},bottom:{sm:"8px",xs:0},zIndex:999,backgroundColor:"#D2DCF3",borderRadius:{md:"20px",xs:0}},children:(0,c.jsxs)(Q.Z,{container:!0,flexGrow:1,children:[(0,c.jsx)(Q.Z,{size:12,flexGrow:1,children:(0,c.jsx)(NavigationBar,{})}),(0,c.jsx)(Q.Z,{size:12,sx:{display:"flex",flexDirection:"column",justifyContent:"flex-end"},children:(0,c.jsxs)(Q.Z,{container:!0,spacing:1,children:[(0,c.jsx)(Q.Z,{size:12,children:(0,c.jsx)(G.Z,{sx:{gap:"8px",display:"flex",flexDirection:"column"},children:g.map((o,l)=>(0,c.jsx)(NavigationMenuItem,{...o},l))})}),o&&(0,c.jsx)(Q.Z,{size:12,children:(0,c.jsx)(DidYouKnow,{})})]})})]})})})})},eR=X.createContext(null);function useTheme(){let o=X.useContext(eR);return o}let ej="function"==typeof Symbol&&Symbol.for;var eA=ej?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(o,l){if("function"==typeof l){let u=l(o);return u}return{...o,...l}}var ThemeProvider_ThemeProvider=function(o){let{children:l,theme:u}=o,h=useTheme(),g=X.useMemo(()=>{let o=null===h?{...u}:mergeOuterLocalTheme(h,u);return null!=o&&(o[eA]=null!==h),o},[u,h]);return(0,c.jsx)(eR.Provider,{value:g,children:l})},e$=u(7685),eI=u(6073),eL=u(2056),eM=u(2842),eD=u(3546),eN=u(2996),eF=u(5723);function useLayerOrder(o){let l=(0,eI.Z)(),u=(0,eN.Z)()||"",{modularCssLayers:h}=o,g="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return(g=h&&null===l?"string"==typeof h?h.replace(/mui(?!\.)/g,g):`@layer ${g};`:"",(0,eD.Z)(()=>{let o=document.querySelector("head");if(!o)return;let l=o.firstChild;if(g){if(l&&l.hasAttribute?.("data-mui-layer-order")&&l.getAttribute("data-mui-layer-order")===u)return;let c=document.createElement("style");c.setAttribute("data-mui-layer-order",u),c.textContent=g,o.prepend(c)}else o.querySelector(`style[data-mui-layer-order="${u}"]`)?.remove()},[g,u]),g)?(0,c.jsx)(eF.Z,{styles:g}):null}let ez={};function useThemeScoping(o,l,u,c=!1){return X.useMemo(()=>{let h=o&&l[o]||l;if("function"==typeof u){let g=u(h),y=o?{...l,[o]:g}:g;return c?()=>y:y}return o?{...l,[o]:u}:{...l,...u}},[o,l,u,c])}var esm_ThemeProvider_ThemeProvider=function(o){let{children:l,theme:u,themeId:h}=o,g=(0,eI.Z)(ez),y=useTheme()||ez,b=useThemeScoping(h,g,u),_=useThemeScoping(h,y,u,!0),w="rtl"===(h?b[h]:b).direction,T=useL
158ayerOrder(b);return(0,c.jsx)(ThemeProvider_ThemeProvider,{theme:_,children:(0,c.jsx)(e$.T.Provider,{value:b,children:(0,c.jsx)(eL.Z,{value:w,children:(0,c.jsxs)(eM.Z,{value:h?b[h].components:b.components,children:[T,l]})})})})},eB=u(606);function ThemeProviderNoVars({theme:o,...l}){let u=eB.Z in o?o[eB.Z]:void 0;return(0,c.jsx)(esm_ThemeProvider_ThemeProvider,{...l,themeId:u?eB.Z:void 0,theme:u||o})}var eV=u(6523),eZ=u(1234);let eW="mode",eH="color-scheme";function InitColorSchemeScript(o){let{defaultMode:l="system",defaultLightColorScheme:u="light",defaultDarkColorScheme:h="dark",modeStorageKey:g=eW,colorSchemeStorageKey:y=eH,attribute:b="data-color-scheme",colorSchemeNode:_="document.documentElement",nonce:w}=o||{},T="",I=b;if("class"===b&&(I=".%s"),"data"===b&&(I="[data-%s]"),I.startsWith(".")){let o=I.substring(1);T+=`${_}.classList.remove('${o}'.replace('%s', light), '${o}'.replace('%s', dark));
159      ${_}.classList.add('${o}'.replace('%s', colorScheme));`}let N=I.match(/\[([^\]]+)\]/);if(N){let[o,l]=N[1].split("=");l||(T+=`${_}.removeAttribute('${o}'.replace('%s', light));
160      ${_}.removeAttribute('${o}'.replace('%s', dark));`),T+=`
161      ${_}.setAttribute('${o}'.replace('%s', colorScheme), ${l?`${l}.replace('%s', colorScheme)`:'""'});`}else T+=`${_}.setAttribute('${I}', colorScheme);`;return(0,c.jsx)("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?w:"",dangerouslySetInnerHTML:{__html:`(function() {
162try {
163  let colorScheme = '';
164  const mode = localStorage.getItem('${g}') || '${l}';
165  const dark = localStorage.getItem('${y}-dark') || '${h}';
166  const light = localStorage.getItem('${y}-light') || '${u}';
167  if (mode === 'system') {
168    // handle system mode
169    const mql = window.matchMedia('(prefers-color-scheme: dark)');
170    if (mql.matches) {
171      colorScheme = dark
172    } else {
173      colorScheme = light
174    }
175  }
176  if (mode === 'light') {
177    colorScheme = light;
178  }
179  if (mode === 'dark') {
180    colorScheme = dark;
181  }
182  if (colorScheme) {
183    ${T}
184  }
185} catch(e){}})();`}},"mui-color-scheme-init")}function noop(){}var cssVars_localStorageManager=({key:o,storageWindow:l})=>(l||"undefined"==typeof window||(l=window),{get(u){let c;if("undefined"!=typeof window){if(!l)return u;try{c=l.localStorage.getItem(o)}catch{}return c||u}},set:u=>{if(l)try{l.localStorage.setItem(o,u)}catch{}},subscribe:u=>{if(!l)return noop;let listener=l=>{let c=l.newValue;l.key===o&&u(c)};return l.addEventListener("storage",listener),()=>{l.removeEventListener("storage",listener)}}});function useCurrentColorScheme_noop(){}function getSystemMode(o){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===o){let o=window.matchMedia("(prefers-color-scheme: dark)");return o.matches?"dark":"light"}}function processState(o,l){return"light"===o.mode||"system"===o.mode&&"light"===o.systemMode?l("light"):"dark"===o.mode||"system"===o.mode&&"dark"===o.systemMode?l("dark"):void 0}function getColorScheme(o){return processState(o,l=>"light"===l?o.lightColorScheme:"dark"===l?o.darkColorScheme:void 0)}function useCurrentColorScheme(o){let{defaultMode:l="light",defaultLightColorScheme:u,defaultDarkColorScheme:c,supportedColorSchemes:h=[],modeStorageKey:g=eW,colorSchemeStorageKey:y=eH,storageWindow:b="undefined"==typeof window?void 0:window,storageManager:_=cssVars_localStorageManager,noSsr:w=!1}=o,T=h.join(","),I=h.length>1,N=X.useMemo(()=>_?.({key:g,storageWindow:b}),[_,g,b]),F=X.useMemo(()=>_?.({key:`${y}-light`,storageWindow:b}),[_,y,b]),B=X.useMemo(()=>_?.({key:`${y}-dark`,storageWindow:b}),[_,y,b]),[Z,W]=X.useState(()=>{let o=N?.get(l)||l,h=F?.get(u)||u,g=B?.get(c)||c;return{mode:o,systemMode:getSystemMode(o),lightColorScheme:h,darkColorScheme:g}}),[H,U]=X.useState(w||!I);X.useEffect(()=>{U(!0)},[]);let K=getColorScheme(Z),q=X.useCallback(o=>{W(u=>{if(o===u.mode)return u;let c=o??l;return N?.set(c),{...u,mode:c,systemMode:getSystemMode(c)}})},[N,l]),G=X.useCallback(o=>{o?"string"==typeof o?o&&!T.includes(o)?console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`):W(l=>{let u={...l};return processState(l,l=>{"light"===l&&(F?.set(o),u.lightColorScheme=o),"dark"===l&&(B?.set(o),u.darkColorScheme=o)}),u}):W(l=>{let h={...l},g=null===o.light?u:o.light,y=null===o.dark?c:o.dark;return g&&(T.includes(g)?(h.lightColorScheme=g,F?.set(g)):console.error(`\`${g}\` does not exist in \`theme.colorSchemes\`.`)),y&&(T.includes(y)?(h.darkColorScheme=y,B?.set(y)):console.error(`\`${y}\` does not exist in \`theme.colorSchemes\`.`)),h}):W(o=>(F?.set(u),B?.set(c),{...o,lightColorScheme:u,darkColorScheme:c}))},[T,F,B,u,c]),Q=X.useCallback(o=>{"system"===Z.mode&&W(l=>
185{let u=o?.matches?"dark":"light";return l.systemMode===u?l:{...l,systemMode:u}})},[Z.mode]),Y=X.useRef(Q);return Y.current=Q,X.useEffect(()=>{if("function"!=typeof window.matchMedia||!I)return;let handler=(...o)=>Y.current(...o),o=window.matchMedia("(prefers-color-scheme: dark)");return o.addListener(handler),handler(o),()=>{o.removeListener(handler)}},[I]),X.useEffect(()=>{if(I){let o=N?.subscribe(o=>{(!o||["light","dark","system"].includes(o))&&q(o||l)})||useCurrentColorScheme_noop,u=F?.subscribe(o=>{(!o||T.match(o))&&G({light:o})})||useCurrentColorScheme_noop,c=B?.subscribe(o=>{(!o||T.match(o))&&G({dark:o})})||useCurrentColorScheme_noop;return()=>{o(),u(),c()}}},[G,q,T,l,b,I,N,F,B]),{...Z,mode:H?Z.mode:void 0,systemMode:H?Z.systemMode:void 0,colorScheme:H?K:void 0,setMode:q,setColorScheme:G}}function createCssVarsProvider(o){let{themeId:l,theme:u={},modeStorageKey:h=eW,colorSchemeStorageKey:g=eH,disableTransitionOnChange:y=!1,defaultColorScheme:b,resolveTheme:_}=o,w={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},T=X.createContext(void 0),I={},N={};function CssVarsProvider(o){let{children:w,theme:F,modeStorageKey:B=h,colorSchemeStorageKey:Z=g,disableTransitionOnChange:W=y,storageManager:H,storageWindow:U="undefined"==typeof window?void 0:window,documentNode:K="undefined"==typeof document?void 0:document,colorSchemeNode:q="undefined"==typeof document?void 0:document.documentElement,disableNestedContext:G=!1,disableStyleSheetGeneration:Q=!1,defaultMode:Y="system",noSsr:ee}=o,et=X.useRef(!1),er=useTheme(),en=X.useContext(T),ei=!!en&&!G,eo=X.useMemo(()=>F||("function"==typeof u?u():u),[F]),ea=eo[l],es=ea||eo,{colorSchemes:el=I,components:eu=N,cssVarPrefix:ec}=es,ed=Object.keys(el).filter(o=>!!el[o]).join(","),ep=X.useMemo(()=>ed.split(","),[ed]),ef="string"==typeof b?b:b.light,eh="string"==typeof b?b:b.dark,eg=el[ef]&&el[eh]?Y:el[es.defaultColorScheme]?.palette?.mode||es.palette?.mode,{mode:em,setMode:ey,systemMode:ev,lightColorScheme:eb,darkColorScheme:e_,colorScheme:eS,setColorScheme:ew}=useCurrentColorScheme({supportedColorSchemes:ep,defaultLightColorScheme:ef,defaultDarkColorScheme:eh,modeStorageKey:B,colorSchemeStorageKey:Z,defaultMode:eg,storageManager:H,storageWindow:U,noSsr:ee}),ex=em,eC=eS;ei&&(ex=en.mode,eC=en.colorScheme);let eE=X.useMemo(()=>{let o=eC||es.defaultColorScheme,l=es.generateThemeVars?.()||es.vars,u={...es,components:eu,colorSchemes:el,cssVarPrefix:ec,vars:l};if("function"==typeof u.generateSpacing&&(u.spacing=u.generateSpacing()),o){let l=el[o];l&&"object"==typeof l&&Object.keys(l).forEach(o=>{l[o]&&"object"==typeof l[o]?u[o]={...u[o],...l[o]}:u[o]=l[o]})}return _?_(u):u},[es,eC,eu,el,ec]),ek=es.colorSchemeSelector;(0,eD.Z)(()=>{if(eC&&q&&ek&&"media"!==ek){let o=ek;if("class"===ek&&(o=".%s"),"data"===ek&&(o="[data-%s]"),ek?.startsWith("data-")&&!ek.includes("%s")&&(o=`[${ek}="%s"]`),o.startsWith("."))q.classList.remove(...ep.map(l=>o.substring(1).replace("%s",l))),q.classList.add(o.substring(1).replace("%s",eC));else{let l=o.replace("%s",eC).match(/\[([^\]]+)\]/);if(l){let[o,u]=l[1].split("=");u||ep.forEach(l=>{q.removeAttribute(o.replace(eC,l))}),q.setAttribute(o,u?u.replace(/"|'/g,""):"")}else q.setAttribute(o,eC)}}},[eC,ek,q,ep]),X.useEffect(()=>{let o;if(W&&et.current&&K){let l=K.createElement("style");l.appendChild(K.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),K.head.appendChild(l),window.getComputedStyle(K.body),o=setTimeout(()=>{K.head.removeChild(l)},1)}return()=>{clearTimeout(o)}},[eC,W,K]),X.useEffect(()=>(et.current=!0,()=>{et.current=!1}),[]);let eP=X.useMemo(()=>({allColorSchemes:ep,colorScheme:eC,darkColorScheme:e_,lightColorScheme:eb,mode:ex,setColorScheme:ew,setMode:ey,systemMode:ev}),[ep,eC,e_,eb,ex,ew,ey,ev,eE.colorSchemeSelector]),eO=!0;(Q||!1===es.cssVariables||ei&&er?.cssVarPrefix===ec)&&(eO=!1);let eT=(0,c.jsxs)(X.Fragment,{children:[(0,c.jsx)(esm_ThemeProvider_ThemeProvider,{themeId:ea?l:void 0,theme:eE,children:w}),eO&&(0,c.jsx)(eZ.Z,{styles:eE.generateStyleSheets?.()||[]})]});return ei?eT:(0,c.jsx)(T.Provider,{value:eP,children:eT})}
185let F="string"==typeof b?b:b.light,B="string"==typeof b?b:b.dark;return{CssVarsProvider,useColorScheme:()=>X.useContext(T)||w,getInitColorSchemeScript:o=>InitColorSchemeScript({colorSchemeStorageKey:g,defaultLightColorScheme:F,defaultDarkColorScheme:B,modeStorageKey:h,...o})}}var eU=u(1445);let eK={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:eq,useColorScheme:eG,getInitColorSchemeScript:eQ}=createCssVarsProvider({themeId:eB.Z,theme:()=>(0,g.Z)({cssVariables:!0}),colorSchemeStorageKey:eK.colorSchemeStorageKey,modeStorageKey:eK.modeStorageKey,defaultColorScheme:{light:eK.defaultLightColorScheme,dark:eK.defaultDarkColorScheme},resolveTheme:o=>{let l={...o,typography:(0,eU.Z)(o.palette,o.typography)};return l.unstable_sx=function(o){return(0,eV.Z)({sx:o,theme:this})},l}});function styles_ThemeProvider_ThemeProvider({theme:o,...l}){let u=X.useMemo(()=>{if("function"==typeof o)return o;let l=eB.Z in o?o[eB.Z]:o;return"colorSchemes"in l?null:"vars"in l?o:{...o,vars:null}},[o]);return u?(0,c.jsx)(ThemeProviderNoVars,{theme:u,...l}):(0,c.jsx)(eq,{theme:o,...l})}var eY=u(141);let eJ="function"==typeof(0,eY.zY)({}),html=(o,l)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...l&&!o.vars&&{colorScheme:o.palette.mode}}),body=o=>({color:(o.vars||o).palette.text.primary,...o.typography.body1,backgroundColor:(o.vars||o).palette.background.default,"@media print":{backgroundColor:(o.vars||o).palette.common.white}}),styles=(o,l=!1)=>{let u={};l&&o.colorSchemes&&"function"==typeof o.getColorSchemeSelector&&Object.entries(o.colorSchemes).forEach(([l,c])=>{let h=o.getColorSchemeSelector(l);h.startsWith("@")?u[h]={":root":{colorScheme:c.palette?.mode}}:u[h.replace(/\s*&/,"")]={colorScheme:c.palette?.mode}});let c={html:html(o,l),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:o.typography.fontWeightBold},body:{margin:0,...body(o),"&::backdrop":{backgroundColor:(o.vars||o).palette.background.default}},...u},h=o.components?.MuiCssBaseline?.styleOverrides;return h&&(c=[c,h]),c},eX="mui-ecs",staticStyles=o=>{let l=styles(o,!1),u=Array.isArray(l)?l[0]:l;return!o.vars&&u&&(u.html[`:root:has(${eX})`]={colorScheme:o.palette.mode}),o.colorSchemes&&Object.entries(o.colorSchemes).forEach(([l,c])=>{let h=o.getColorSchemeSelector(l);h.startsWith("@")?u[h]={[`:root:not(:has(.${eX}))`]:{colorScheme:c.palette?.mode}}:u[h.replace(/\s*&/,"")]={[`&:not(:has(.${eX}))`]:{colorScheme:c.palette?.mode}}}),l},e0=(0,eY.zY)(eJ?({theme:o,enableColorScheme:l})=>styles(o,l):({theme:o})=>staticStyles(o));var CssBaseline_CssBaseline=function(o){let l=(0,ey.i)({props:o,name:"MuiCssBaseline"}),{children:u,enableColorScheme:h=!1}=l;return(0,c.jsxs)(X.Fragment,{children:[eJ&&(0,c.jsx)(e0,{enableColorScheme:h}),!eJ&&!h&&(0,c.jsx)("span",{className:eX,style:{display:"none"}}),u]})},e1=u(4139),e2=u(7775),e5=u(7037),e3=u(7506),e4=class extends e3.l{constructor(o={}){super(),this.config=o,this.#e=new Map}#e;build(o,l,u){let c=l.queryKey,h=l.queryHash??(0,e1.Rm)(c,l),g=this.get(h);return g||(g=new e2.A({client:o,queryKey:c,queryHash:h,options:o.defaultQueryOptions(l),state:u,defaultOptions:o.getQueryDefaults(c)}),this.add(g)),g}add(o){this.#e.has(o.queryHash)||(this.#e.set(o.queryHash,o),this.notify({type:"added",query:o}))}remove(o){let l=this.#e.get(o.queryHash);l&&(o.destroy(),l===o&&this.#e.delete(o.queryHash),this.notify({type:"removed",query:o}))}clear(){e5.Vr.batch(()=>{this.getAll().forEach(o=>{this.remove(o)})})}get(o){return this.#e.get(o)}getAll(){return[...this.#e.values()]}find(o){let l={exact:!0,...o};return this.getAll().find(o=>(0,e1._x)(l,o))}findAll(o={}){let l=this.getAll();return Object.keys(o).length>0?l.filter(l=>(0,e1._x)(o,l)):l}notify(o){e5.Vr.batch(()=>{this.listeners.forEach(l=>{l(o)})})}onFocus(){e5.Vr.batch(()=>{this.getAll().forEach(o=>{o.onFocus()})})}onOnline(){e5.Vr.batch(()=>{this.getAll().forEach(o=>{o.onOnline()})})}},e8=u(9289),e6=class extends e3.l{constructor(o={}){super(),this.config=o,this.#t=new Set,this.#r=new Map,this.#n=0}#t;#r;#n;build(o,l,u){let c=new e8.m({client:o,mutationCache:this,mutationId:++this.#n,options:o.defaultMutationOptions(l),state:u});return this.add(c),c}add(o){this.#t.add(o);let l=scopeFor(o);if("string"==typeof l){let u=this.#r.get(l);u?u.push(o):this.#r.set(l,[o])}this.notify({type:"added",mutation:o})}remove(o){if(this.#t.delete(o)){let l=scopeFor(o);if("string"==typeof l){let u=this.#r.get(l);if(u){if(u.length>1){let l=u.indexOf(o);-1!==l&&u.splice(l,1)}else u[0]===o&&this.#r.delete(l)}}}this.notify({type:"removed",mutation:o})}canRun(o){let l=scopeFor(o);if("string"!=typeof l)return!0;{let u=this.#r.get(l),c=u?.find(o=>"pending"===o.state.status);return!c||c===o}}runNext(o){let l=scopeFor(o);if("string"!=typeof l)return Promise.resolve();{let u=this.#r.get(l)?.find(l=>
185l!==o&&l.state.isPaused);return u?.continue()??Promise.resolve()}}clear(){e5.Vr.batch(()=>{this.#t.forEach(o=>{this.notify({type:"removed",mutation:o})}),this.#t.clear(),this.#r.clear()})}getAll(){return Array.from(this.#t)}find(o){let l={exact:!0,...o};return this.getAll().find(o=>(0,e1.X7)(l,o))}findAll(o={}){return this.getAll().filter(l=>(0,e1.X7)(o,l))}notify(o){e5.Vr.batch(()=>{this.listeners.forEach(l=>{l(o)})})}resumePausedMutations(){let o=this.getAll().filter(o=>o.state.isPaused);return e5.Vr.batch(()=>Promise.all(o.map(o=>o.continue().catch(e1.ZT))))}};function scopeFor(o){return o.options.scope?.id}var e9=u(6474),e7=u(4304),te=class{#i;#o;#a;#s;#l;#u;#c;#d;constructor(o={}){this.#i=o.queryCache||new e4,this.#o=o.mutationCache||new e6,this.#a=o.defaultOptions||{},this.#s=new Map,this.#l=new Map,this.#u=0}mount(){this.#u++,1===this.#u&&(this.#c=e9.j.subscribe(async o=>{o&&(await this.resumePausedMutations(),this.#i.onFocus())}),this.#d=e7.N.subscribe(async o=>{o&&(await this.resumePausedMutations(),this.#i.onOnline())}))}unmount(){this.#u--,0===this.#u&&(this.#c?.(),this.#c=void 0,this.#d?.(),this.#d=void 0)}isFetching(o){return this.#i.findAll({...o,fetchStatus:"fetching"}).length}isMutating(o){return this.#o.findAll({...o,status:"pending"}).length}getQueryData(o){let l=this.defaultQueryOptions({queryKey:o});return this.#i.get(l.queryHash)?.state.data}ensureQueryData(o){let l=this.defaultQueryOptions(o),u=this.#i.build(this,l),c=u.state.data;return void 0===c?this.fetchQuery(o):(o.revalidateIfStale&&u.isStaleByTime((0,e1.KC)(l.staleTime,u))&&this.prefetchQuery(l),Promise.resolve(c))}getQueriesData(o){return this.#i.findAll(o).map(({queryKey:o,state:l})=>{let u=l.data;return[o,u]})}setQueryData(o,l,u){let c=this.defaultQueryOptions({queryKey:o}),h=this.#i.get(c.queryHash),g=h?.state.data,y=(0,e1.SE)(l,g);if(void 0!==y)return this.#i.build(this,c).setData(y,{...u,manual:!0})}setQueriesData(o,l,u){return e5.Vr.batch(()=>this.#i.findAll(o).map(({queryKey:o})=>[o,this.setQueryData(o,l,u)]))}getQueryState(o){let l=this.defaultQueryOptions({queryKey:o});return this.#i.get(l.queryHash)?.state}removeQueries(o){let l=this.#i;e5.Vr.batch(()=>{l.findAll(o).forEach(o=>{l.remove(o)})})}resetQueries(o,l){let u=this.#i;return e5.Vr.batch(()=>(u.findAll(o).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...o},l)))}cancelQueries(o,l={}){let u={revert:!0,...l},c=e5.Vr.batch(()=>this.#i.findAll(o).map(o=>o.cancel(u)));return Promise.all(c).then(e1.ZT).catch(e1.ZT)}invalidateQueries(o,l={}){return e5.Vr.batch(()=>(this.#i.findAll(o).forEach(o=>{o.invalidate()}),o?.refetchType==="none")?Promise.resolve():this.refetchQueries({...o,type:o?.refetchType??o?.type??"active"},l))}refetchQueries(o,l={}){let u={...l,cancelRefetch:l.cancelRefetch??!0},c=e5.Vr.batch(()=>this.#i.findAll(o).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let l=o.fetch(void 0,u);return u.throwOnError||(l=l.catch(e1.ZT)),"paused"===o.state.fetchStatus?Promise.resolve():l}));return Promise.all(c).then(e1.ZT)}fetchQuery(o){let l=this.defaultQueryOptions(o);void 0===l.retry&&(l.retry=!1);let u=this.#i.build(this,l);return u.isStaleByTime((0,e1.KC)(l.staleTime,u))?u.fetch(l):Promise.resolve(u.state.data)}prefetchQuery(o){return this.fetchQuery(o).then(e1.ZT).catch(e1.ZT)}fetchInfiniteQuery(o){return o._type="infinite",this.fetchQuery(o)}prefetchInfiniteQuery(o){return this.fetchInfiniteQuery(o).then(e1.ZT).catch(e1.ZT)}ensureInfiniteQueryData(o){return o._type="infinite",this.ensureQueryData(o)}resumePausedMutations(){return e7.N.isOnline()?this.#o.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#i}getMutationCache(){return this.#o}getDefaultOptions(){return this.#a}setDefaultOptions(o){this.#a=o}setQueryDefaults(o,l){this.#s.set((0,e1.Ym)(o),{queryKey:o,defaultOptions:l})}getQueryDefaults(o){let l=[...this.#s.values()],u={};return l.forEach(l=>{(0,e1.to)(o,l.queryKey)&&Object.assign(u,l.defaultOptions)}),u}setMutationDefaults(o,l){this.#l.set((0,e1.Ym)(o),{mutationKey:o,defaultOptions:l})}getMutationDefaults(o){let l=[...this.#l.values()],u={};return l.forEach(l=>{(0,e1.to)(o,l.mutationKey)&&Object.assign(u,l.defaultOptions)}),u}defaultQueryOptions(o){if(o._defaulted)return o;let l={...this.#a.queries,...this.getQueryDefaults(o.queryKey),...o,_defaulted:!0};return l.queryHash||(l.queryHash=(0,e1.Rm)(l.queryKey,l)),void 0===l.refetchOnReconnect&&(l.refetchOnReconnect="always"!==l.networkMode),void 0===l.throwOnError&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===e1.CN&&(l.enabled=!1),l}defaultMutationOptions(o){return o?._defaulted?o:{...this.#a.mutations,...o?.mutationKey&&this.getMutationDefaults(o.mutationKey),...o,_defaulted:!0}}clear(){this.#i.clear(),this.#o.clear()}},tt=u(202),tr=u(9346),tn=u(1175),ti=u.n(tn),to=u(3762),ta=u(4865),ts=u.n(ta);u(84),u(6238),u(7568),u(9633),u(1610),u(899),u(3487),ts().configure({showSpinner:!1}),eo().events.on("routeChangeStart",()=>ts().start()),eo().events.on("routeChangeComplete",()=>ts().done()),eo().events.on("routeChangeError",()=>ts().done());let tl=new te;function App(o){let{Component:l,pageProps:u}=o;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(b.y,{children:(0,c.jsx)("style",{children:"\n            #__next { display: flex; flex-grow: 1; flex-direction: column; }\n          "})}),(0,c.jsxs)(styles_ThemeProvider_ThemeProvider,{theme:y,children:[(0,c.jsx)(CssBaseline_CssBaseline,{}),(0,c.jsxs)(tt.aH,{client:tl,children:[(0,c.jsx)(tr.Zf,{hidden:!0}),(0,c.jsx)(Navigation,{}),(0,c.jsx)(NavigationBar,{}),(0,c.jsx)(to.Wi,{trackPageViews:!0}),(0,c.jsx)(l,{...u})]})]})]})}var tu=(0,Y.Jc)(App,ti())},7183:function(){},84:function(){},6238:function(){},7568:function(){},9633:function(){},1610:function(){},899:function(){},3487:function(){},9008:function(o,l,u){o.exports=u(9201)},1163:function(o,l,u){o.exports=u(9974)},4298:function(o,l,u){o.exports=u(5354)},1462:function(o,l,u){"use strict";
185Object.defineProperty(l,"__esModule",{value:!0}),l.GoogleAnalytics=void 0;let c=u(7582),h=c.__importDefault(u(7294)),g=c.__importDefault(u(4298)),y=u(8816);function GoogleAnalytics({debugMode:o=!1,gaMeasurementId:l,gtagUrl:u="https://www.googletagmanager.com/gtag/js",strategy:c="afterInteractive",defaultConsent:b="granted",trackPageViews:_,nonce:w}){let T="G-1YWKGJ406J";return((0,y.usePageViews)({gaMeasurementId:T,ignoreHashChange:"object"==typeof _&&(null==_?void 0:_.ignoreHashChange),disabled:!_}),T)?h.default.createElement(h.default.Fragment,null,h.default.createElement(g.default,{src:`${u}?id=${T}`,strategy:c}),h.default.createElement(g.default,{id:"nextjs-google-analytics",nonce:w},`
186            window.dataLayer = window.dataLayer || [];
187            function gtag(){dataLayer.push(arguments);}
188            gtag('js', new Date());
189            ${"denied"===b?`gtag('consent', 'default', {
190              'ad_storage': 'denied',
191              'analytics_storage': 'denied',
192              'ad_user_data': 'denied',
193              'ad_personalization': 'denied'
194            });`:""}
195            gtag('config', '${T}', {
196              page_path: window.location.pathname,
197              ${o?`debug_mode: ${o},`:""}
198            });
199          `)):null}l.GoogleAnalytics=GoogleAnalytics},7270:function(o,l,u){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GoogleAnalytics=void 0;var c=u(1462);Object.defineProperty(l,"GoogleAnalytics",{enumerable:!0,get:function(){return c.GoogleAnalytics}})},8816:function(o,l,u){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.usePageViews=l.usePagesViews=void 0;var c=u(7015);Object.defineProperty(l,"usePagesViews",{enumerable:!0,get:function(){return c.usePagesViews}});var h=u(9412);Object.defineProperty(l,"usePageViews",{enumerable:!0,get:function(){return h.usePageViews}})},9412:function(o,l,u){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.usePageViews=void 0;let c=u(7294),h=u(1163),g=u(8396);function usePageViews({gaMeasurementId:o,ignoreHashChange:l,disabled:u}={}){(0,c.useEffect)(()=>{if(u)return;let handleRouteChange=o=>{(0,g.pageView)({path:o.toString()},"G-1YWKGJ406J")};return h.Router.events.on("routeChangeComplete",handleRouteChange),l||h.Router.events.on("hashChangeComplete",handleRouteChange),()=>{h.Router.events.off("routeChangeComplete",handleRouteChange),l||h.Router.events.off("hashChangeComplete",handleRouteChange)}},[h.Router.events,o,l])}l.usePageViews=usePageViews},7015:function(o,l,u){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.usePagesViews=void 0;let c=u(9412);function usePagesViews(o){console.warn("Nextjs Google Analytics: The 'usePagesViews' hook is deprecated. Please use 'usePageViews' hook instead. https://github.com/MauricioRobayo/nextjs-google-analytics#readme"),(0,c.usePageViews)(o)}l.usePagesViews=usePagesViews},3762:function(o,l,u){"use strict";l.Wi=void 0;var c=u(7270);Object.defineProperty(l,"Wi",{enumerable:!0,get:function(){return c.GoogleAnalytics}}),u(8816),u(8396)},5146:function(o,l){"use strict";function consent({arg:o,params:l}){window.gtag&&window.gtag("consent",o,l)}Object.defineProperty(l,"__esModule",{value:!0}),l.consent=void 0,l.consent=consent},9975:function(o,l,u){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.event=void 0;let c=u(7582);function event(o,l={}){var{category:u,label:h,value:g,nonInteraction:y,userId:b}=l,_=c.__rest(l,["category","label","value","nonInteraction","userId"]);if(!window.gtag)return;let w=Object.assign({},_);void 0!==u&&(w.event_category=u),void 0!==h&&(w.event_label=h),void 0!==g&&(w.value=g),void 0!==y&&(w.non_interaction=y),void 0!==b&&(w.user_id=b),window.gtag("event",o,w)}l.event=event},8396:function(o,l,u){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.consent=l.event=l.pageView=void 0;var c=u(3371);Object.defineProperty(l,"pageView",{enumerable:!0,get:function(){return c.pageView}});var h=u(9975);Object.defineProperty(l,"event",{enumerable:!0,get:function(){return h.event}});var g=u(5146);Object.defineProperty(l,"consent",{enumerable:!0,get:function(){return g.consent}})},3371:function(o,l){"use strict";function pageView({title:o,location:l,path:u,sendPageView:c,userId:h}={},g){let y="G-1YWKGJ406J";if(!y||!window.gtag)return;let b={};void 0!==o&&(b.page_title=o),void 0!==l&&(b.page_location=l),void 0!==u&&(b.page_path=u),void 0!==c&&(b.send_page_view=c),void 0!==h&&(b.user_id=h
199),window.gtag("config",y,b)}Object.defineProperty(l,"__esModule",{value:!0}),l.pageView=void 0,l.pageView=pageView},4865:function(o,l,u){var c,h;void 0!==(h="function"==typeof(c=function(){var o,l,u={};u.version="0.2.0";var c=u.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function clamp(o,l,u){return o<l?l:o>u?u:o}function barPositionCSS(o,l,u){var h;return(h="translate3d"===c.positionUsing?{transform:"translate3d("+(-1+o)*100+"%,0,0)"}:"translate"===c.positionUsing?{transform:"translate("+(-1+o)*100+"%,0)"}:{"margin-left":(-1+o)*100+"%"}).transition="all "+l+"ms "+u,h}u.configure=function(o){var l,u;for(l in o)void 0!==(u=o[l])&&o.hasOwnProperty(l)&&(c[l]=u);return this},u.status=null,u.set=function(o){var l=u.isStarted();o=clamp(o,c.minimum,1),u.status=1===o?null:o;var y=u.render(!l),b=y.querySelector(c.barSelector),_=c.speed,w=c.easing;return y.offsetWidth,h(function(l){""===c.positionUsing&&(c.positionUsing=u.getPositioningCSS()),g(b,barPositionCSS(o,_,w)),1===o?(g(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){g(y,{transition:"all "+_+"ms linear",opacity:0}),setTimeout(function(){u.remove(),l()},_)},_)):setTimeout(l,_)}),this},u.isStarted=function(){return"number"==typeof u.status},u.start=function(){u.status||u.set(0);var work=function(){setTimeout(function(){u.status&&(u.trickle(),work())},c.trickleSpeed)};return c.trickle&&work(),this},u.done=function(o){return o||u.status?u.inc(.3+.5*Math.random()).set(1):this},u.inc=function(o){var l=u.status;return l?("number"!=typeof o&&(o=(1-l)*clamp(Math.random()*l,.1,.95)),l=clamp(l+o,0,.994),u.set(l)):u.start()},u.trickle=function(){return u.inc(Math.random()*c.trickleRate)},o=0,l=0,u.promise=function(c){return c&&"resolved"!==c.state()&&(0===l&&u.start(),o++,l++,c.always(function(){0==--l?(o=0,u.done()):u.set((o-l)/o)})),this},u.render=function(o){if(u.isRendered())return document.getElementById("nprogress");addClass(document.documentElement,"nprogress-busy");var l=document.createElement("div");l.id="nprogress",l.innerHTML=c.template;var h,y,b=l.querySelector(c.barSelector),_=o?"-100":(-1+(u.status||0))*100,w=document.querySelector(c.parent);return g(b,{transition:"all 0 linear",transform:"translate3d("+_+"%,0,0)"}),!c.showSpinner&&(y=l.querySelector(c.spinnerSelector))&&removeElement(y),w!=document.body&&addClass(w,"nprogress-custom-parent"),w.appendChild(l),l},u.remove=function(){removeClass(document.documentElement,"nprogress-busy"),removeClass(document.querySelector(c.parent),"nprogress-custom-parent");var o=document.getElementById("nprogress");o&&removeElement(o)},u.isRendered=function(){return!!document.getElementById("nprogress")},u.getPositioningCSS=function(){var o=document.body.style,l="WebkitTransform"in o?"Webkit":"MozTransform"in o?"Moz":"msTransform"in o?"ms":"OTransform"in o?"O":"";return l+"Perspective" in o?"translate3d":l+"Transform" in o?"translate":"margin"};var h=function(){var o=[];function next(){var l=o.shift();l&&l(next)}return function(l){o.push(l),1==o.length&&next()}}(),g=function(){var o=["Webkit","O","Moz","ms"],l={};function camelCase(o){return o.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(o,l){return l.toUpperCase()})}function getVendorProp(l){var u=document.body.style;if(l in u)return l;for(var c,h=o.length,g=l.charAt(0).toUpperCase()+l.slice(1);h--;)if((c=o[h]+g)in u)return c;return l}function getStyleProp(o){return l[o=camelCase(o)]||(l[o]=getVendorProp(o))}function applyCss(o,l,u){l=getStyleProp(l),o.style[l]=u}return function(o,l){var u,c,h=arguments;if(2==h.length)for(u in l)void 0!==(c=l[u])&&l.hasOwnProperty(u)&&applyCss(o,u,c);else applyCss(o,h[1],h[2])}}();function hasClass(o,l){return("string"==typeof o?o:classList(o)).indexOf(" "+l+" ")>=0}function addClass(o,l){var u=classList(o),c=u+l;hasClass(u,l)||(o.className=c.substring(1))}function removeClass(o,l){var u,c=classList(o);hasClass(o,l)&&(u=c.replace(" "+l+" "," "),o.className=u.substring(1,u.length-1))}function classList(o){return(" "+(o.className||"")+" ").replace(/\s+/gi," ")}function removeElement(o){o&&o.parentNode&&o.parentNode.removeChild(o)}return u}
199)?c.call(l,u,l,o):c)&&(o.exports=h)},2703:function(o,l,u){"use strict";var c=u(414);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,o.exports=function(){function shim(o,l,u,h,g,y){if(y!==c){var b=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 b.name="Invariant Violation",b}}function getShim(){return shim}shim.isRequired=shim;var o={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return o.PropTypes=o,o}},5697:function(o,l,u){o.exports=u(2703)()},414:function(o){"use strict";o.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6995:function(o,l,u){var c,h,g;h=[l,u(8532)],void 0!==(g="function"==typeof(c=function(o,l){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var u=_interopRequireDefault(l);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}o.default=u.default})?c.apply(l,h):c)&&(o.exports=g)},8532:function(o,l,u){var c,h,g;h=[l,u(7294),u(5697)],void 0!==(g="function"==typeof(c=function(o,l,u){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.setHasSupportToCaptureOption=setHasSupportToCaptureOption;var c=_interopRequireDefault(l),h=_interopRequireDefault(u);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}var g=Object.assign||function(o){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(o[c]=u[c])}return o};function _objectWithoutProperties(o,l){var u={};for(var c in o)!(l.indexOf(c)>=0)&&Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=o[c]);return u}function _classCallCheck(o,l){if(!(o instanceof l))throw TypeError("Cannot call a class as a function")}var y=function(){function defineProperties(o,l){for(var u=0;u<l.length;u++){var c=l[u];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}return function(o,l,u){return l&&defineProperties(o.prototype,l),u&&defineProperties(o,u),o}}();function _possibleConstructorReturn(o,l){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&("object"==typeof l||"function"==typeof l)?l:o}function _inherits(o,l){if("function"!=typeof l&&null!==l)throw TypeError("Super expression must either be null or a function, not "+typeof l);o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(o,l):o.__proto__=l)}var b=!1;function setHasSupportToCaptureOption(o){b=o}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){b=!0}}))}catch(o){}function getSafeEventHandlerOpts(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return b?o:o.capture}function getPosition(o){if("touches"in o){var l=o.touches[0];return{x:l.pageX,y:l.pageY}}return{x:o.screenX,y:o.screenY}}var _=function(o){function ReactSwipe(){_classCallCheck(this,ReactSwipe);for(var o,l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];var h=_possibleConstructorReturn(this,(o=ReactSwipe.__proto__||Object.getPrototypeOf(ReactSwipe)).call.apply(o,[this].concat(u)));return h._handleSwipeStart=h._handleSwipeStart.bind(h),h._handleSwipeMove=h._handleSwipeMove.bind(h),h._handleSwipeEnd=h._handleSwipeEnd.bind(h),h._onMouseDown=h._onMouseDown.bind(h),h._onMouseMove=h._onMouseMove.bind(h),h._onMouseUp=h._onMouseUp.bind(h),h._setSwiperRef=h._setSwiperRef.bind(h),h}return _inherits(ReactSwipe,o),y(ReactSwipe,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,getSafeEventHandlerOpts({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,getSafeEventHandlerOpts({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(o){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(o))}},{key:"_onMouseMove",value:function(o){this.mouseDown&&this._handleSwipeMove(o)}},{key:"_onMouseUp",value:function(o){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(o)}},{key:"_handleSwipeStart",value:function(o){var l=getPosition(o),u=l.x,c=l.y;this.moveStart={x:u,y:c},this.props.onSwipeStart(o)}}
199,{key:"_handleSwipeMove",value:function(o){if(this.moveStart){var l=getPosition(o),u=l.x,c=l.y,h=u-this.moveStart.x,g=c-this.moveStart.y;this.moving=!0,this.props.onSwipeMove({x:h,y:g},o)&&o.cancelable&&o.preventDefault(),this.movePosition={deltaX:h,deltaY:g}}}},{key:"_handleSwipeEnd",value:function(o){this.props.onSwipeEnd(o);var l=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-l?this.props.onSwipeLeft(1,o):this.movePosition.deltaX>l&&this.props.onSwipeRight(1,o),this.movePosition.deltaY<-l?this.props.onSwipeUp(1,o):this.movePosition.deltaY>l&&this.props.onSwipeDown(1,o)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(o){this.swiper=o,this.props.innerRef(o)}},{key:"render",value:function(){var o=this.props,l=(o.tagName,o.className),u=o.style,h=o.children,y=(o.allowMouseEvents,o.onSwipeUp,o.onSwipeDown,o.onSwipeLeft,o.onSwipeRight,o.onSwipeStart,o.onSwipeMove,o.onSwipeEnd,o.innerRef,o.tolerance,_objectWithoutProperties(o,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return c.default.createElement(this.props.tagName,g({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:l,style:u},y),h)}}]),ReactSwipe}(l.Component);_.displayName="ReactSwipe",_.propTypes={tagName:h.default.string,className:h.default.string,style:h.default.object,children:h.default.node,allowMouseEvents:h.default.bool,onSwipeUp:h.default.func,onSwipeDown:h.default.func,onSwipeLeft:h.default.func,onSwipeRight:h.default.func,onSwipeStart:h.default.func,onSwipeMove:h.default.func,onSwipeEnd:h.default.func,innerRef:h.default.func,tolerance:h.default.number.isRequired},_.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},o.default=_})?c.apply(l,h):c)&&(o.exports=g)},9921:function(o,l){"use strict";/** @license React v16.13.1
200 * react-is.production.min.js
201 *
202 * Copyright (c) Facebook, Inc. and its affiliates.
203 *
204 * This source code is licensed under the MIT license found in the
205 * LICENSE file in the root directory of this source tree.
206 */var u="function"==typeof Symbol&&Symbol.for,c=u?Symbol.for("react.element"):60103,h=u?Symbol.for("react.portal"):60106,g=u?Symbol.for("react.fragment"):60107,y=u?Symbol.for("react.strict_mode"):60108,b=u?Symbol.for("react.profiler"):60114,_=u?Symbol.for("react.provider"):60109,w=u?Symbol.for("react.context"):60110,T=u?Symbol.for("react.async_mode"):60111,I=u?Symbol.for("react.concurrent_mode"):60111,N=u?Symbol.for("react.forward_ref"):60112,F=u?Symbol.for("react.suspense"):60113,B=u?Symbol.for("react.suspense_list"):60120,Z=u?Symbol.for("react.memo"):60115,W=u?Symbol.for("react.lazy"):60116,H=u?Symbol.for("react.block"):60121,U=u?Symbol.for("react.fundamental"):60117,K=u?Symbol.for("react.responder"):60118,q=u?Symbol.for("react.scope"):60119;function z(o){if("object"==typeof o&&null!==o){var l=o.$$typeof;switch(l){case c:switch(o=o.type){case T:case I:case g:case b:case y:case F:return o;default:switch(o=o&&o.$$typeof){case w:case N:case W:case Z:case _:return o;default:return l}}case h:return l}}}function A(o){return z(o)===I}l.AsyncMode=T,l.ConcurrentMode=I,l.ContextConsumer=w,l.ContextProvider=_,l.Element=c,l.ForwardRef=N,l.Fragment=g,l.Lazy=W,l.Memo=Z,l.Portal=h,l.Profiler=b,l.StrictMode=y,l.Suspense=F,l.isAsyncMode=function(o){return A(o)||z(o)===T},l.isConcurrentMode=A,l.isContextConsumer=function(o){return z(o)===w},l.isContextProvider=function(o){return z(o)===_},l.isElement=function(o){return"object"==typeof o&&null!==o&&o.$$typeof===c},l.isForwardRef=function(o){return z(o)===N},l.isFragment=function(o){return z(o)===g},l.isLazy=function(o){return z(o)===W},l.isMemo=function(o){return z(o)===Z},l.isPortal=function(o){return z(o)===h},l.isProfiler=function(o){return z(o)===b},l.isStrictMode=function(o){return z(o)===y},l.isSuspense=function(o){return z(o)===F},l.isValidElementType=function(o){return"string"==typeof o||"function"==typeof o||o===g||o===I||o===b||o===y||o===F||o===B||"object"==typeof o&&null!==o&&(o.$$typeof===W||o.$$typeof===Z||o.$$typeof===_||o.$$typeof===w||o.$$typeof===N||o.$$typeof===U||o.$$typeof===K||o.$$typeof===q||o.$$typeof===H)},l.typeOf=z},9864:function(o,l,u){"use strict";o.exports=u(9921)},2751:function(o,l){"use strict";
206Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default=function(o,l,u){var c=0===o?o:o+l;return"translate3d("+("horizontal"===u?[c,0,0]:[0,c,0]).join(",")+")"}},4954:function(o,l,u){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.fadeAnimationHandler=l.slideStopSwipingHandler=l.slideSwipeAnimationHandler=l.slideAnimationHandler=void 0;var c=u(7294),h=_interopRequireDefault(u(2751)),g=u(8918);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}function ownKeys(o,l){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);l&&(c=c.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),u.push.apply(u,c)}return u}function _objectSpread(o){for(var l=1;l<arguments.length;l++){var u=null!=arguments[l]?arguments[l]:{};l%2?ownKeys(Object(u),!0).forEach(function(l){_defineProperty(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}function _defineProperty(o,l,u){return l in o?Object.defineProperty(o,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[l]=u,o}l.slideAnimationHandler=function(o,l){var u={},y=l.selectedItem,b=c.Children.count(o.children)-1;if(o.infiniteLoop&&(y<0||y>b))return y<0?o.centerMode&&o.centerSlidePercentage&&"horizontal"===o.axis?u.itemListStyle=(0,g.setPosition)(-(b+2)*o.centerSlidePercentage-(100-o.centerSlidePercentage)/2,o.axis):u.itemListStyle=(0,g.setPosition)(-(100*(b+2)),o.axis):y>b&&(u.itemListStyle=(0,g.setPosition)(0,o.axis)),u;var _=(0,g.getPosition)(y,o),w=(0,h.default)(_,"%",o.axis),T=o.transitionTime+"ms";return u.itemListStyle={WebkitTransform:w,msTransform:w,OTransform:w,transform:w},l.swiping||(u.itemListStyle=_objectSpread(_objectSpread({},u.itemListStyle),{},{WebkitTransitionDuration:T,MozTransitionDuration:T,OTransitionDuration:T,transitionDuration:T,msTransitionDuration:T})),u},l.slideSwipeAnimationHandler=function(o,l,u,h){var y={},b="horizontal"===l.axis,_=c.Children.count(l.children),w=(0,g.getPosition)(u.selectedItem,l),T=l.infiniteLoop?(0,g.getPosition)(_-1,l)-100:(0,g.getPosition)(_-1,l),I=b?o.x:o.y,N=I;0===w&&I>0&&(N=0),w===T&&I<0&&(N=0);var F=w+100/(u.itemSize/N),B=Math.abs(I)>l.swipeScrollTolerance;return l.infiniteLoop&&B&&(0===u.selectedItem&&F>-100?F-=100*_:u.selectedItem===_-1&&F<-(100*_)&&(F+=100*_)),(!l.preventMovementUntilSwipeScrollTolerance||B||u.swipeMovementStarted)&&(u.swipeMovementStarted||h({swipeMovementStarted:!0}),y.itemListStyle=(0,g.setPosition)(F,l.axis)),B&&!u.cancelClick&&h({cancelClick:!0}),y},l.slideStopSwipingHandler=function(o,l){var u=(0,g.getPosition)(l.selectedItem,o);return{itemListStyle:(0,g.setPosition)(u,o.axis)}},l.fadeAnimationHandler=function(o,l){var u=o.transitionTime+"ms",c="ease-in-out",h={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:c,msTransitionTimingFunction:c,MozTransitionTimingFunction:c,WebkitTransitionTimingFunction:c,OTransitionTimingFunction:c};return l.swiping||(h=_objectSpread(_objectSpread({},h),{},{WebkitTransitionDuration:u,MozTransitionDuration:u,OTransitionDuration:u,transitionDuration:u,msTransitionDuration:u})),{slideStyle:h,selectedStyle:_objectSpread(_objectSpread({},h),{},{opacity:1,position:"relative"}),prevStyle:_objectSpread({},h)}}},8684:function(o,l,u){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=_interopRequireWildcard(u(7294)),h=_interopRequireDefault(u(6995)),g=_interopRequireDefault(u(5702)),y=_interopRequireDefault(u(5040)),b=_interopRequireDefault(u(6513)),_=_interopRequireDefault(u(885)),w=u(8918),T=u(4954);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var o=new WeakMap;return _getRequireWildcardCache=function(){return o},o}function _interopRequireWildcard(o){if(o&&o.__esModule)return o;if(null===o||"object"!==_typeof(o)&&"function"!=typeof o)return{default:o};var l=_getRequireWildcardCache();if(l&&l.has(o))return l.get(o);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in o)if(Object.prototype.hasOwnProperty.call(o,h)){var g=c?Object.getOwnPropertyDescriptor(o,h):null;g&&(g.get||g.set)?Object.defineProperty(u,h,g):u[h]=o[h]}return u.default=o,l&&l.set(o,u),u}function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}function _extends(){return(_extends=Object.assign||function(o){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(o[c]=u[c])}return o}
206).apply(this,arguments)}function ownKeys(o,l){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);l&&(c=c.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),u.push.apply(u,c)}return u}function _objectSpread(o){for(var l=1;l<arguments.length;l++){var u=null!=arguments[l]?arguments[l]:{};l%2?ownKeys(Object(u),!0).forEach(function(l){_defineProperty(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}function _classCallCheck(o,l){if(!(o instanceof l))throw TypeError("Cannot call a class as a function")}function _defineProperties(o,l){for(var u=0;u<l.length;u++){var c=l[u];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}function _createClass(o,l,u){return l&&_defineProperties(o.prototype,l),u&&_defineProperties(o,u),o}function _inherits(o,l){if("function"!=typeof l&&null!==l)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),l&&_setPrototypeOf(o,l)}function _setPrototypeOf(o,l){return(_setPrototypeOf=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o})(o,l)}function _createSuper(o){var l=_isNativeReflectConstruct();return function(){var u,c=_getPrototypeOf(o);if(l){var h=_getPrototypeOf(this).constructor;u=Reflect.construct(c,arguments,h)}else u=c.apply(this,arguments);return _possibleConstructorReturn(this,u)}}function _possibleConstructorReturn(o,l){return l&&("object"===_typeof(l)||"function"==typeof l)?l:_assertThisInitialized(o)}function _assertThisInitialized(o){if(void 0===o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(o){return!1}}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _defineProperty(o,l,u){return l in o?Object.defineProperty(o,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[l]=u,o}var I=function(o){_inherits(Carousel,o);var l=_createSuper(Carousel);function Carousel(o){_classCallCheck(this,Carousel),_defineProperty(_assertThisInitialized(u=l.call(this,o)),"thumbsRef",void 0),_defineProperty(_assertThisInitialized(u),"carouselWrapperRef",void 0),_defineProperty(_assertThisInitialized(u),"listRef",void 0),_defineProperty(_assertThisInitialized(u),"itemsRef",void 0),_defineProperty(_assertThisInitialized(u),"timer",void 0),_defineProperty(_assertThisInitialized(u),"animationHandler",void 0),_defineProperty(_assertThisInitialized(u),"setThumbsRef",function(o){u.thumbsRef=o}),_defineProperty(_assertThisInitialized(u),"setCarouselWrapperRef",function(o){u.carouselWrapperRef=o}),_defineProperty(_assertThisInitialized(u),"setListRef",function(o){u.listRef=o}),_defineProperty(_assertThisInitialized(u),"setItemsRef",function(o,l){u.itemsRef||(u.itemsRef=[]),u.itemsRef[l]=o}),_defineProperty(_assertThisInitialized(u),"autoPlay",function(){!(1>=c.Children.count(u.props.children))&&(u.clearAutoPlay(),u.props.autoPlay&&(u.timer=setTimeout(function(){u.increment()},u.props.interval)))}),_defineProperty(_assertThisInitialized(u),"clearAutoPlay",function(){u.timer&&clearTimeout(u.timer)}),_defineProperty(_assertThisInitialized(u),"resetAutoPlay",function(){u.clearAutoPlay(),u.autoPlay()}),_defineProperty(_assertThisInitialized(u),"stopOnHover",function(){u.setState({isMouseEntered:!0},u.clearAutoPlay)}),_defineProperty(_assertThisInitialized(u),"startOnLeave",function(){u.setState({isMouseEntered:!1},u.autoPlay)}),_defineProperty(_assertThisInitialized(u),"isFocusWithinTheCarousel",function(){return!!u.carouselWrapperRef&&!!((0,b.default)().activeElement===u.carouselWrapperRef||u.carouselWrapperRef.contains((0,b.default)().activeElement))}),_defineProperty(_assertThisInitialized(u),"navigateWithKeyboard",function(o){if
206(u.isFocusWithinTheCarousel()){var l="horizontal"===u.props.axis,c={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},h=l?c.ArrowRight:c.ArrowDown,g=l?c.ArrowLeft:c.ArrowUp;h===o.keyCode?u.increment():g===o.keyCode&&u.decrement()}}),_defineProperty(_assertThisInitialized(u),"updateSizes",function(){if(u.state.initialized&&u.itemsRef&&0!==u.itemsRef.length){var o="horizontal"===u.props.axis,l=u.itemsRef[0];if(l){var c=o?l.clientWidth:l.clientHeight;u.setState({itemSize:c}),u.thumbsRef&&u.thumbsRef.updateSizes()}}}),_defineProperty(_assertThisInitialized(u),"setMountState",function(){u.setState({hasMount:!0}),u.updateSizes()}),_defineProperty(_assertThisInitialized(u),"handleClickItem",function(o,l){if(0!==c.Children.count(u.props.children)){if(u.state.cancelClick){u.setState({cancelClick:!1});return}u.props.onClickItem(o,l),o!==u.state.selectedItem&&u.setState({selectedItem:o})}}),_defineProperty(_assertThisInitialized(u),"handleOnChange",function(o,l){1>=c.Children.count(u.props.children)||u.props.onChange(o,l)}),_defineProperty(_assertThisInitialized(u),"handleClickThumb",function(o,l){u.props.onClickThumb(o,l),u.moveTo(o)}),_defineProperty(_assertThisInitialized(u),"onSwipeStart",function(o){u.setState({swiping:!0}),u.props.onSwipeStart(o)}),_defineProperty(_assertThisInitialized(u),"onSwipeEnd",function(o){u.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),u.props.onSwipeEnd(o),u.clearAutoPlay(),u.state.autoPlay&&u.autoPlay()}),_defineProperty(_assertThisInitialized(u),"onSwipeMove",function(o,l){u.props.onSwipeMove(l);var c=u.props.swipeAnimationHandler(o,u.props,u.state,u.setState.bind(_assertThisInitialized(u)));return u.setState(_objectSpread({},c)),!!Object.keys(c).length}),_defineProperty(_assertThisInitialized(u),"decrement",function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;u.moveTo(u.state.selectedItem-("number"==typeof o?o:1))}),_defineProperty(_assertThisInitialized(u),"increment",function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;u.moveTo(u.state.selectedItem+("number"==typeof o?o:1))}),_defineProperty(_assertThisInitialized(u),"moveTo",function(o){if("number"==typeof o){var l=c.Children.count(u.props.children)-1;o<0&&(o=u.props.infiniteLoop?l:0),o>l&&(o=u.props.infiniteLoop?0:l),u.selectItem({selectedItem:o}),u.state.autoPlay&&!1===u.state.isMouseEntered&&u.resetAutoPlay()}}),_defineProperty(_assertThisInitialized(u),"onClickNext",function(){u.increment(1)}),_defineProperty(_assertThisInitialized(u),"onClickPrev",function(){u.decrement(1)}),_defineProperty(_assertThisInitialized(u),"onSwipeForward",function(){u.increment(1),u.props.emulateTouch&&u.setState({cancelClick:!0})}),_defineProperty(_assertThisInitialized(u),"onSwipeBackwards",function(){u.decrement(1),u.props.emulateTouch&&u.setState({cancelClick:!0})}),_defineProperty(_assertThisInitialized(u),"changeItem",function(o){return function(l){(0,w.isKeyboardEvent)(l)&&"Enter"!==l.key||u.moveTo(o)}}),_defineProperty(_assertThisInitialized(u),"selectItem",function(o){u.setState(_objectSpread({previousItem:u.state.selectedItem},o),function(){u.setState(u.animationHandler(u.props,u.state))}),u.handleOnChange(o.selectedItem,c.Children.toArray(u.props.children)[o.selectedItem])}),_defineProperty(_assertThisInitialized(u),"getInitialImage",function(){var o=u.props.selectedItem,l=u.itemsRef&&u.itemsRef[o];return(l&&l.getElementsByTagName("img")||[])[0]}),_defineProperty(_assertThisInitialized(u),"getVariableItemHeight",function(o){var l=u.itemsRef&&u.itemsRef[o];if(u.state.hasMount&&l&&l.children.length){var c=l.children[0].getElementsByTagName("img")||[];if(c.length>0){var h=c[0];h.complete||h.addEventListener("load",function onImageLoad(){u.forceUpdate(),h.removeEventListener("load",onImageLoad)})}var g=(c[0]||l.children[0]).clientHeight;return g>0?g:null}return null});var u,h={initialized:!1,previousItem:o.selectedItem,selectedItem:o.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:o.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return u.animationHandler="function"==typeof o.animationHandler&&o.animationHandler||"fade"===o.animationHandler&&T.fadeAnimationHandler||T.slideAnimationHandler,u.
vendor: 7,739 bytes, line 206
206state=_objectSpread(_objectSpread({},h),u.animationHandler(o,h)),u}return _createClass(Carousel,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(o,l){o.children||!this.props.children||this.state.initialized||this.setupCarousel(),!o.autoFocus&&this.props.autoFocus&&this.forceFocus(),l.swiping&&!this.state.swiping&&this.setState(_objectSpread({},this.props.stopSwipingHandler(this.props,this.state))),(o.selectedItem!==this.props.selectedItem||o.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),o.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var o=this;this.bindEvents(),this.state.autoPlay&&c.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var l=o.getInitialImage();l&&!l.complete?l.addEventListener("load",o.setMountState):o.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var o=this.carouselWrapperRef;this.props.stopOnHover&&o&&(o.addEventListener("mouseenter",this.stopOnHover),o.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var o=this.carouselWrapperRef;this.props.stopOnHover&&o&&(o.removeEventListener("mouseenter",this.stopOnHover),o.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,_.default)().addEventListener("resize",this.updateSizes),(0,_.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,b.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,_.default)().removeEventListener("resize",this.updateSizes),(0,_.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var o=this.getInitialImage();o&&o.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,b.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var o;null===(o=this.carouselWrapperRef)||void 0===o||o.focus()}},{key:"renderItems",value:function(o){var l=this;return this.props.children?c.Children.map(this.props.children,function(u,h){var y=h===l.state.selectedItem,b=h===l.state.previousItem,_=y&&l.state.selectedStyle||b&&l.state.prevStyle||l.state.slideStyle||{};l.props.centerMode&&"horizontal"===l.props.axis&&(_=_objectSpread(_objectSpread({},_),{},{minWidth:l.props.centerSlidePercentage+"%"})),l.state.swiping&&l.state.swipeMovementStarted&&(_=_objectSpread(_objectSpread({},_),{},{pointerEvents:"none"}));var w={ref:function(o){return l.setItemsRef(o,h)},key:"itemKey"+h+(o?"clone":""),className:g.default.ITEM(!0,h===l.state.selectedItem,h===l.state.previousItem),onClick:l.handleClickItem.bind(l,h,u),style:_};return c.default.createElement("li",w,l.props.renderItem(u,{isSelected:h===l.state.selectedItem,isPrevious:h===l.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var o=this,l=this.props,u=l.showIndicators,h=l.labels,g=l.renderIndicator,y=l.children;return u?c.default.createElement("ul",{className:"control-dots"},c.Children.map(y,function(l,u){return g&&g(o.changeItem(u),u===o.state.selectedItem,u,h.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?c.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,c.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return this.props.showThumbs&&this.props.children&&0!==c.Children.count(this.props.children)?c.default.createElement(y.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children)):null}},{key:"render",value:function(){var o=this;if(!this.props.children||0===c.Children.count(this.props.children))return null;var l=this.props.swipeable&&c.Children.count(this.props.children)>1,u="horizontal"===this.props.axis,y=this.props.showArrows&&c.Children.count(this.props.children)>1,b=y&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,_=y&&(this.state.selectedItem<c.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,w=this.renderItems(!0),T=w.shift(),I=w.pop(),N={className:g.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},F={};if(u){if(N.onSwipeLeft=this.onSwipeForward,N.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var B=this.getVariableItemHeight(this.state.selectedItem);F.height=B||"auto"}}else N.onSwipeUp="natural"===this.props.verticalSwipe?this.onSwipeBackwards:this.onSwipeForward,N.onSwipeDown="natural"===this.props.verticalSwipe?this.onSwipeForward:this.onSwipeBackwards,N.style=_objectSpread(_objectSpread({},N.style),{},{height:this.state.itemSize}),F.height=this.state.itemSize;return c.default.createElement("div",{"aria-label":this.props.ariaLabel,className:g.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},c.default.createElement("div",{className:g.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,b,this.props.labels.leftArrow),c.default.createElement("div",{className:g.default.WRAPPER(!0,this.props.axis),style:F},l?c.default.createElement(h.default,_extends({tagName:"ul",innerRef:this.setListRef},N,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&I,this.renderItems(),this.props.infiniteLoop&&T):c.default.createElement("ul",{className:g.default.SLIDER(!0,this.state.swiping),ref:function(l){return o.setListRef(l)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&I,this.renderItems(),this.props.infiniteLoop&&T)),this.props.renderArrowNext(this.onClickNext,_,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),Carousel}(c.default.Component);l.default=I,_defineProperty(I,"displayName","Carousel"),_defineProperty(I,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:w.noop,onClickThumb:w.noop,onChange:w.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(o,l,u){return c.default.createElement("button",{type:"button","aria-label":u,className:g.default.ARROW_PREV(!l),onClick:o})},renderArrowNext:function(o,l,u){return c.default.createElement("button",{type:"button","aria-label":u,className:g.default.ARROW_NEXT(!l),onClick:o})},renderIndicator:function(o,l,u,h){return c.default.createElement("li",{className:g.default.DOT(l),onClick:o,onKeyDown:o,value:u,key:u,role:"button",tabIndex:0,"aria-label":"".concat(h," ").concat(u+1)})},renderItem:function(o){return o},renderThumbs:function(o){var l=c.Children.map(o,function(o){var l=o;if("img"!==o.type&&(l=c.Children.toArray(o.props.children).find(function(o){return"img"===o.type})),l)return l});return 0===l.filter(function(o){return o}
206).length?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):l},statusFormatter:w.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:T.slideSwipeAnimationHandler,stopSwipingHandler:T.slideStopSwipingHandler})},629:function(){},8918:function(o,l,u){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.setPosition=l.getPosition=l.isKeyboardEvent=l.defaultStatusFormatter=l.noop=void 0;var c=u(7294),h=_interopRequireDefault(u(2751));function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}l.noop=function(){},l.defaultStatusFormatter=function(o,l){return"".concat(o," of ").concat(l)},l.isKeyboardEvent=function(o){return!!o&&o.hasOwnProperty("key")},l.getPosition=function(o,l){if(l.infiniteLoop&&++o,0===o)return 0;var u=c.Children.count(l.children);if(l.centerMode&&"horizontal"===l.axis){var h=-o*l.centerSlidePercentage,g=u-1;return o&&(o!==g||l.infiniteLoop)?h+=(100-l.centerSlidePercentage)/2:o===g&&(h+=100-l.centerSlidePercentage),h}return-(100*o)},l.setPosition=function(o,l){var u={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(c){u[c]=(0,h.default)(o,"%",l)}),u}},5040:function(o,l,u){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=_interopRequireWildcard(u(7294)),h=_interopRequireDefault(u(5702)),g=u(4528),y=_interopRequireDefault(u(2751)),b=_interopRequireDefault(u(6995)),_=_interopRequireDefault(u(885));function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var o=new WeakMap;return _getRequireWildcardCache=function(){return o},o}function _interopRequireWildcard(o){if(o&&o.__esModule)return o;if(null===o||"object"!==_typeof(o)&&"function"!=typeof o)return{default:o};var l=_getRequireWildcardCache();if(l&&l.has(o))return l.get(o);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in o)if(Object.prototype.hasOwnProperty.call(o,h)){var g=c?Object.getOwnPropertyDescriptor(o,h):null;g&&(g.get||g.set)?Object.defineProperty(u,h,g):u[h]=o[h]}return u.default=o,l&&l.set(o,u),u}function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}function _extends(){return(_extends=Object.assign||function(o){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(o[c]=u[c])}return o}).apply(this,arguments)}function _classCallCheck(o,l){if(!(o instanceof l))throw TypeError("Cannot call a class as a function")}function _defineProperties(o,l){for(var u=0;u<l.length;u++){var c=l[u];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}function _createClass(o,l,u){return l&&_defineProperties(o.prototype,l),u&&_defineProperties(o,u),o}function _inherits(o,l){if("function"!=typeof l&&null!==l)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),l&&_setPrototypeOf(o,l)}function _setPrototypeOf(o,l){return(_setPrototypeOf=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o})(o,l)}function _createSuper(o){var l=_isNativeReflectConstruct();return function(){var u,c=_getPrototypeOf(o);if(l){var h=_getPrototypeOf(this).constructor;u=Reflect.construct(c,arguments,h)}else u=c.apply(this,arguments);return _possibleConstructorReturn(this,u)}}function _possibleConstructorReturn(o,l){return l&&("object"===_typeof(l)||"function"==typeof l)?l:_assertThisInitialized(o)}
206function _assertThisInitialized(o){if(void 0===o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(o){return!1}}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _defineProperty(o,l,u){return l in o?Object.defineProperty(o,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[l]=u,o}var w=function(o){_inherits(Thumbs,o);var l=_createSuper(Thumbs);function Thumbs(o){var u;return _classCallCheck(this,Thumbs),_defineProperty(_assertThisInitialized(u=l.call(this,o)),"itemsWrapperRef",void 0),_defineProperty(_assertThisInitialized(u),"itemsListRef",void 0),_defineProperty(_assertThisInitialized(u),"thumbsRef",void 0),_defineProperty(_assertThisInitialized(u),"setItemsWrapperRef",function(o){u.itemsWrapperRef=o}),_defineProperty(_assertThisInitialized(u),"setItemsListRef",function(o){u.itemsListRef=o}),_defineProperty(_assertThisInitialized(u),"setThumbsRef",function(o,l){u.thumbsRef||(u.thumbsRef=[]),u.thumbsRef[l]=o}),_defineProperty(_assertThisInitialized(u),"updateSizes",function(){if(u.props.children&&u.
206itemsWrapperRef&&u.thumbsRef){var o=c.Children.count(u.props.children),l=u.itemsWrapperRef.clientWidth,h=u.props.thumbWidth?u.props.thumbWidth:(0,g.outerWidth)(u.thumbsRef[0]),y=Math.floor(l/h),b=y<o,_=b?o-y:0;u.setState(function(o,l){return{itemSize:h,visibleItems:y,firstItem:b?u.getFirstItem(l.selectedItem):0,lastPosition:_,showArrows:b}})}}),_defineProperty(_assertThisInitialized(u),"handleClickItem",function(o,l,c){if(!c.hasOwnProperty("key")||"Enter"===c.key){var h=u.props.onSelectItem;"function"==typeof h&&h(o,l)}}),_defineProperty(_assertThisInitialized(u),"onSwipeStart",function(){u.setState({swiping:!0})}),_defineProperty(_assertThisInitialized(u),"onSwipeEnd",function(){u.setState({swiping:!1})}),_defineProperty(_assertThisInitialized(u),"onSwipeMove",function(o){var l=o.x;if(!u.state.itemSize||!u.itemsWrapperRef||!u.state.visibleItems)return!1;var h=c.Children.count(u.props.children),g=-(100*u.state.firstItem)/u.state.visibleItems;0===g&&l>0&&(l=0),g===-(100*Math.max(h-u.state.visibleItems,0))/u.state.visibleItems&&l<0&&(l=0);var b=g+100/(u.itemsWrapperRef.clientWidth/l);return u.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(o){u.itemsListRef.style[o]=(0,y.default)(b,"%",u.props.axis)}),!0}),_defineProperty(_assertThisInitialized(u),"slideRight",function(o){u.moveTo(u.state.firstItem-("number"==typeof o?o:1))}),_defineProperty(_assertThisInitialized(u),"slideLeft",function(o){u.moveTo(u.state.firstItem+("number"==typeof o?o:1))}),_defineProperty(_assertThisInitialized(u),"moveTo",function(o){o=(o=o<0?0:o)>=u.state.lastPosition?u.state.lastPosition:o,u.setState({firstItem:o})}),u.state={selectedItem:o.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},u}return _createClass(Thumbs,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(o){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==o.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,_.default)().addEventListener("resize",this.updateSizes),(0,_.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,_.default)().removeEventListener("resize",this.updateSizes),(0,_.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(o){var l=o;return o>=this.state.lastPosition&&(l=this.state.lastPosition),o<this.state.firstItem+this.state.visibleItems&&(l=this.state.firstItem),o<this.state.firstItem&&(l=o),l}},{key:"renderItems",value:function(){var o=this;return this.props.children.map(function(l,u){var g=h.default.ITEM(!1,u===o.state.selectedItem),y={key:u,ref:function(l){return o.setThumbsRef(l,u)},className:g,onClick:o.handleClickItem.bind(o,u,o.props.children[u]),onKeyDown:o.handleClickItem.bind(o,u,o.props.children[u]),"aria-label":"".concat(o.props.labels.item," ").concat(u+1),style:{width:o.props.thumbWidth}};return c.default.createElement("li",_extends({},y,{role:"button",tabIndex:0}),l)})}},{key:"render",value:function(){var o=this;if(!this.props.children)return null;var l=c.Children.count(this.props.children)>1,u=this.state.showArrows&&this.state.firstItem>0,g=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,_={},w=-this.state.firstItem*(this.state.itemSize||0),T=(0,y.default)(w,"px",this.props.axis),I=this.props.transitionTime+"ms";return _={WebkitTransform:T,MozTransform:T,MsTransform:T,OTransform:T,transform:T,msTransform:T,WebkitTransitionDuration:I,MozTransitionDuration:I,MsTransitionDuration:I,OTransitionDuration:I,transitionDuration:I,msTransitionDuration:I},c.default.createElement("div",{className:h.default.CAROUSEL(!1)},c.default.createElement("div",{className:h.default.WRAPPER(!1),ref:this.setItemsWrapperRef},c.default.createElement("button",{type:"button",className:h.default.ARROW_PREV(!u),onClick:function(){return o.slideRight()},"aria-label":this.props.labels.leftArrow}),l?c.default.createElement(b.default,{tagName:"ul",className:h.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:_,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):c.default.createElement("ul",{className:h.default.SLIDER(!1,this.state.swiping),ref:function(l){return o.setItemsListRef(l)},style:_},this.renderItems()),c.default.createElement("button",{type:"button",className:h.default.ARROW_NEXT(!g),onClick:function(){return o.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),Thumbs}(c.Component);l.default=w,_defineProperty(w,"displayName","Thumbs"),_defineProperty(w,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350})},5702:function(o,l,u){"use strict";
206Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=_interopRequireDefault(u(3967));function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}function _defineProperty(o,l,u){return l in o?Object.defineProperty(o,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[l]=u,o}l.default={ROOT:function(o){return(0,c.default)(_defineProperty({"carousel-root":!0},o||"",!!o))},CAROUSEL:function(o){return(0,c.default)({carousel:!0,"carousel-slider":o})},WRAPPER:function(o,l){return(0,c.default)({"thumbs-wrapper":!o,"slider-wrapper":o,"axis-horizontal":"horizontal"===l,"axis-vertical":"horizontal"!==l})},SLIDER:function(o,l){return(0,c.default)({thumbs:!o,slider:o,animated:!l})},ITEM:function(o,l,u){return(0,c.default)({thumb:!o,slide:o,selected:l,previous:u})},ARROW_PREV:function(o){return(0,c.default)({"control-arrow control-prev":!0,"control-disabled":o})},ARROW_NEXT:function(o){return(0,c.default)({"control-arrow control-next":!0,"control-disabled":o})},DOT:function(o){return(0,c.default)({dot:!0,selected:o})}}},4528:function(o,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.outerWidth=void 0,l.outerWidth=function(o){var l=o.offsetWidth,u=getComputedStyle(o);return l+(parseInt(u.marginLeft)+parseInt(u.marginRight))}},615:function(o,l,u){"use strict";Object.defineProperty(l,"lr",{enumerable:!0,get:function(){return c.default}});var c=_interopRequireDefault(u(8684));function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}u(629),_interopRequireDefault(u(5040))},6513:function(o,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default=function(){return document}},885:function(o,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default=function(){return window}},8662:function(o,l,u){"use strict";u.d(l,{ZP:function(){return Z}});var c=u(3366),h=u(5068),g=u(7294),y=u(3935),b={disabled:!1},_=u(220),w="unmounted",T="exited",I="entering",N="entered",F="exiting",B=function(o){function Transition(l,u){c=o.call(this,l,u)||this;var c,h,g=u&&!u.isMounting?l.enter:l.appear;return c.appearStatus=null,l.in?g?(h=T,c.appearStatus=I):h=N:h=l.unmountOnExit||l.mountOnEnter?w:T,c.state={status:h},c.nextCallback=null,c}(0,h.Z)(Transition,o),Transition.getDerivedStateFromProps=function(o,l){return o.in&&l.status===w?{status:T}:null};var l=Transition.prototype;return l.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},l.componentDidUpdate=function(o){var l=null;if(o!==this.props){var u=this.state.status;this.props.in?u!==I&&u!==N&&(l=I):(u===I||u===N)&&(l=F)}this.updateStatus(!1,l)},l.componentWillUnmount=function(){this.cancelNextCallback()},l.getTimeouts=function(){var o,l,u,c=this.props.timeout;return o=l=u=c,null!=c&&"number"!=typeof c&&(o=c.exit,l=c.enter,u=void 0!==c.appear?c.appear:l),{exit:o,enter:l,appear:u}},l.updateStatus=function(o,l){if(void 0===o&&(o=!1),null!==l){if(this.cancelNextCallback(),l===I){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this);u&&u.scrollTop}this.performEnter(o)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===T&&this.setState({status:w})},l.performEnter=function(o){var l=this,u=this.props.enter,c=this.context?this.context.isMounting:o,h=this.props.nodeRef?[c]:[y.findDOMNode(this),c],g=h[0],_=h[1],w=this.getTimeouts(),T=c?w.appear:w.enter;if(!o&&!u||b.disabled){this.safeSetState({status:N},function(){l.props.onEntered(g)});return}this.props.onEnter(g,_),this.safeSetState({status:I},function(){l.props.onEntering(g,_),l.onTransitionEnd(T,function(){l.safeSetState({status:N},function(){l.props.onEntered(g,_)})})})},l.performExit=function(){var o=this,l=this.props.exit,u=this.getTimeouts(),c=this.props.nodeRef?void 0:y.findDOMNode(this);if(!l||b.disabled){this.safeSetState({status:T},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:F},function(){o.props.onExiting(c),o.onTransitionEnd(u.exit,function(){o.safeSetState({status:T},function(){o.props.onExited(c)})})})},l.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},l.safeSetState=function(o,l){l=this.setNextCallback(l),this.setState(o,l)},l.setNextCallback=function(o){var l=this,u=!0;return this.nextCallback=function(c){u&&(u=!1,l.nextCallback=null,o(c))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},l.onTransitionEnd=function(o,l){this.setNextCallback(l);var u=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this),c=null==o&&!this.props.addEndListener;if(!u||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],g=h[0],b=h[1];this.props.addEndListener(g,b)}null!=o&&setTimeout(this.nextCallback,o)},l.render=function(){var o=this.state.status;if(o===w)return null;var l=this.props,u=l.children,h=(l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef,(0,c.Z)(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return g.createElement(_.Z.Provider,{value:null},"function"==typeof u?u(o,h):g.cloneElement(g.Children.only(u),h))},Transition}(g.Component);function noop(){}B.contextType=_.Z,B.propTypes={},B.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
206:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},B.UNMOUNTED=w,B.EXITED=T,B.ENTERING=I,B.ENTERED=N,B.EXITING=F;var Z=B},220:function(o,l,u){"use strict";var c=u(7294);l.Z=c.createContext(null)},1086:function(o,l,u){"use strict";/*!
207 * set-value <https://github.com/jonschlinkert/set-value>
208 *
209 * Copyright (c) 2014-2015, 2017, Jon Schlinkert.
210 * Released under the MIT License.
211 */var c=u(7853),h=u(6919),g=u(5299),y=u(4642);function isValidKey(o){return"__proto__"!==o&&"constructor"!==o&&"prototype"!==o}o.exports=function(o,l,u){if(!y(o)||(Array.isArray(l)&&(l=[].concat.apply([],l).join(".")),"string"!=typeof l))return o;for(var b=c(l,{sep:".",brackets:!0}).filter(isValidKey),_=b.length,w=-1,T=o;++w<_;){var I=b[w];if(w!==_-1){y(T[I])||(T[I]={}),T=T[I];continue}g(T[I])&&g(u)?T[I]=h({},T[I],u):T[I]=u}return o}},4642:function(o){"use strict";/*!
212 * is-extendable <https://github.com/jonschlinkert/is-extendable>
213 *
214 * Copyright (c) 2015, Jon Schlinkert.
215 * Licensed under the MIT License.
216 */o.exports=function(o){return null!=o&&("object"==typeof o||"function"==typeof o)}},7853:function(o,l,u){"use strict";/*!
217 * split-string <https://github.com/jonschlinkert/split-string>
218 *
219 * Copyright (c) 2015-2017, Jon Schlinkert.
220 * Released under the MIT License.
221 */var c=u(8071);function getClosingQuote(o,l,u,c){var h=o.indexOf(l,u);return"\\"===o.charAt(h-1)?getClosingQuote(o,l,h+1):h}function keepQuotes(o,l){return!0===l.keepDoubleQuotes&&'"'===o||!0===l.keepSingleQuotes&&"'"===o||l.keepQuotes}function keepEscaping(o,l,u){return"function"==typeof o.keepEscaping?o.keepEscaping(l,u):!0===o.keepEscaping||"\\"===l[u+1]}o.exports=function(o,l,u){if("string"!=typeof o)throw TypeError("expected a string");"function"==typeof l&&(u=l,l=null),"string"==typeof l&&(l={sep:l});var h,g,y=c({sep:"."},l),b=y.quotes||['"',"'","`"];!0===y.brackets?h={"<":">","(":")","[":"]","{":"}"}:y.brackets&&(h=y.brackets);var _=[],w=[],T=[""],I=y.sep,N=o.length,F=-1;function expected(){if(h&&w.length)return h[w[w.length-1]]}for(;++F<N;){var B=o[F],Z=o[F+1],W={val:B,idx:F,arr:T,str:o};if(_.push(W),"\\"===B){W.val=!0===keepEscaping(y,o,F)?B+Z:Z,W.escaped=!0,"function"==typeof u&&u(W),T[T.length-1]+=W.val,F++;continue}if(h&&h[B]){w.push(B);var H=expected(),U=F+1;if(-1!==o.indexOf(H,U+1))for(;w.length&&U<N;){var K=o[++U];if("\\"===K){K++;continue}if(-1!==b.indexOf(K)){U=getClosingQuote(o,K,U+1);continue}if(H=expected(),w.length&&-1===o.indexOf(H,U+1))break;if(h[K]){w.push(K);continue}H===K&&w.pop()}if(-1===(g=U)){T[T.length-1]+=B;continue}B=o.slice(F,g+1),W.val=B,W.idx=F=g}if(-1!==b.indexOf(B)){if(-1===(g=getClosingQuote(o,B,F+1))){T[T.length-1]+=B;continue}B=!0===keepQuotes(B,y)?o.slice(F,g+1):o.slice(F+1,g),W.val=B,W.idx=F=g}if("function"==typeof u&&(u(W,_),B=W.val,F=W.idx),W.val===I&&!1!==W.split){T.push("");continue}T[T.length-1]+=W.val}return T}},8071:function(o,l,u){"use strict";var c=u(1833),h=u(1052);function assign(o,l){for(var u in l)hasOwn(l,u)&&(o[u]=l[u])}function isString(o){return o&&"string"==typeof o}function toObject(o){var l={};for(var u in o)l[u]=o[u];return l}function isObject(o){return o&&"object"==typeof o||c(o)}function hasOwn(o,l){return Object.prototype.hasOwnProperty.call(o,l)}o.exports=Object.assign||function(o){if(null==o)throw TypeError("Cannot convert undefined or null to object");isObject(o)||(o={});for(var l=1;l<arguments.length;l++){var u=arguments[l];isString(u)&&(u=toObject(u)),isObject(u)&&(assign(o,u),h(o,u))}return o}},83:function(o,l,u){"use strict";/**
222 * @license React
223 * use-sync-external-store-shim.production.js
224 *
225 * Copyright (c) Meta Platforms, Inc. and affiliates.
226 *
227 * This source code is licensed under the MIT license found in the
228 * LICENSE file in the root directory of this source tree.
229 */var c=u(7294);function is(o,l){return o===l&&(0!==o||1/o==1/l)||o!=o&&l!=l}var h="function"==typeof Object.is?Object.is:is,g=c.useState,y=c.useEffect,b=c.useLayoutEffect,_=c.useDebugValue;function useSyncExternalStore$2(o,l){var u=l(),c=g({inst:{value:u,getSnapshot:l}}),h=c[0].inst,w=c[1];return b(function(){h.value=u,h.getSnapshot=l,checkIfSnapshotChanged(h)&&w({inst:h})},[o,u,l]),y(function(){return checkIfSnapshotChanged(h)&&w({inst:h}),o(function(){checkIfSnapshotChanged(h)&&w({inst:h})})},[o]),_(u),u}function checkIfSnapshotChanged(o){var l=o.getSnapshot;o=o.value;try{var u=l();return!h(o,u)}catch(o){return!0}}function useSyncExternalStore$1(o,l){return l()}var w="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?use
229SyncExternalStore$1:useSyncExternalStore$2;l.useSyncExternalStore=void 0!==c.useSyncExternalStore?c.useSyncExternalStore:w},6251:function(o,l,u){"use strict";/**
230 * @license React
231 * use-sync-external-store-shim/with-selector.production.js
232 *
233 * Copyright (c) Meta Platforms, Inc. and affiliates.
234 *
235 * This source code is licensed under the MIT license found in the
236 * LICENSE file in the root directory of this source tree.
237 */var c=u(7294),h=u(1688);function is(o,l){return o===l&&(0!==o||1/o==1/l)||o!=o&&l!=l}var g="function"==typeof Object.is?Object.is:is,y=h.useSyncExternalStore,b=c.useRef,_=c.useEffect,w=c.useMemo,T=c.useDebugValue;l.useSyncExternalStoreWithSelector=function(o,l,u,c,h){var I=b(null);if(null===I.current){var N={hasValue:!1,value:null};I.current=N}else N=I.current;var F=y(o,(I=w(function(){function memoizedSelector(l){if(!b){if(b=!0,o=l,l=c(l),void 0!==h&&N.hasValue){var u=N.value;if(h(u,l))return y=u}return y=l}if(u=y,g(o,l))return u;var _=c(l);return void 0!==h&&h(u,_)?(o=l,u):(o=l,y=_)}var o,y,b=!1,_=void 0===u?null:u;return[function(){return memoizedSelector(l())},null===_?void 0:function(){return memoizedSelector(_())}]},[l,u,c,h]))[0],I[1]);return _(function(){N.hasValue=!0,N.value=F},[F]),T(F),F}},1688:function(o,l,u){"use strict";o.exports=u(83)},2798:function(o,l,u){"use strict";o.exports=u(6251)},1739:function(o){o.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},3967:function(o,l){var u;/*!
238	Copyright (c) 2018 Jed Watson.
239	Licensed under the MIT License (MIT), see
240	http://jedwatson.github.io/classnames
241*/!function(){"use strict";var c={}.hasOwnProperty;function classNames(){for(var o="",l=0;l<arguments.length;l++){var u=arguments[l];u&&(o=appendClass(o,parseValue(u)))}return o}function parseValue(o){if("string"==typeof o||"number"==typeof o)return o;if("object"!=typeof o)return"";if(Array.isArray(o))return classNames.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var u in o)c.call(o,u)&&o[u]&&(l=appendClass(l,u));return l}function appendClass(o,l){return l?o?o+" "+l:o+l:o}o.exports?(classNames.default=classNames,o.exports=classNames):void 0!==(u=(function(){return classNames}).apply(l,[]))&&(o.exports=u)}()},7462:function(o,l,u){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(o){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var c in u)({}).hasOwnProperty.call(u,c)&&(o[c]=u[c])}return o}).apply(null,arguments)}u.d(l,{Z:function(){return _extends}})},5068:function(o,l,u){"use strict";function _setPrototypeOf(o,l){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,l){return o.__proto__=l,o})(o,l)}function _inheritsLoose(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,_setPrototypeOf(o,l)}u.d(l,{Z:function(){return _inheritsLoose}})},3366:function(o,l,u){"use strict";function _objectWithoutPropertiesLoose(o,l){if(null==o)return{};var u={};for(var c in o)if(({}).hasOwnProperty.call(o,c)){if(-1!==l.indexOf(c))continue;u[c]=o[c]}return u}u.d(l,{Z:function(){return _objectWithoutPropertiesLoose}})},1002:function(o,l,u){"use strict";function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}u.d(l,{Z:function(){return _typeof}})},4334:function(o,l,u){"use strict";let c;u.d(l,{m:function(){return g}});var h=u(4139),g=(c=()=>h.sk,{isServer:()=>c(),setIsServer(o){c=o}})},6474:function(o,l,u){"use strict";u.d(l,{j:function(){return h}});var c=u(7506),h=new class extends c.l{#p;#f;#h;constructor(){super(),this.#h=o=>{if("undefined"!=typeof window&&window.addEventListener){let listener=()=>o();return window.addEventListener("visibilitychange",listener,!1),()=>{window.removeEventListener("visibilitychange",listener)}}}}onSubscribe(){this.#f||this.setEventListener(this.#h)}onUnsubscribe(){this.hasListeners()||(this.#f?.(),this.#f=void 0)}setEventListener(o){this.#h=o,this.#f?.(),this.#f=o(o=>{"boolean"==typeof o?this.setFocused(o):this.onFocus()})}setFocused(o){let l=this.#p!==o;l&&(this.#p=o,this.onFocus())}onFocus(){let o=this.isFocused();
241this.listeners.forEach(l=>{l(o)})}isFocused(){return"boolean"==typeof this.#p?this.#p:globalThis.document?.visibilityState!=="hidden"}}},9289:function(o,l,u){"use strict";u.d(l,{R:function(){return getDefaultState},m:function(){return y}});var c=u(7037),h=u(8907),g=u(2008),y=class extends h.F{#g;#m;#o;#y;constructor(o){super(),this.#g=o.client,this.mutationId=o.mutationId,this.#o=o.mutationCache,this.#m=[],this.state=o.state||getDefaultState(),this.setOptions(o.options),this.scheduleGc()}setOptions(o){this.options=o,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(o){this.#m.includes(o)||(this.#m.push(o),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",mutation:this,observer:o}))}removeObserver(o){this.#m=this.#m.filter(l=>l!==o),this.scheduleGc(),this.#o.notify({type:"observerRemoved",mutation:this,observer:o})}optionalRemove(){this.#m.length||("pending"===this.state.status?this.scheduleGc():this.#o.remove(this))}continue(){return this.#y?.continue()??this.execute(this.state.variables)}async execute(o){let onContinue=()=>{this.#v({type:"continue"})},l={client:this.#g,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#y=(0,g.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(o,l):Promise.reject(Error("No mutationFn found")),onFail:(o,l)=>{this.#v({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#v({type:"pause"})},onContinue,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#o.canRun(this)});let u="pending"===this.state.status,c=!this.#y.canStart();try{if(u)onContinue();else{this.#v({type:"pending",variables:o,isPaused:c}),this.#o.config.onMutate&&await this.#o.config.onMutate(o,this,l);let u=await this.options.onMutate?.(o,l);u!==this.state.context&&this.#v({type:"pending",context:u,variables:o,isPaused:c})}let h=await this.#y.start();return await this.#o.config.onSuccess?.(h,o,this.state.context,this,l),await this.options.onSuccess?.(h,o,this.state.context,l),await this.#o.config.onSettled?.(h,null,this.state.variables,this.state.context,this,l),await this.options.onSettled?.(h,null,o,this.state.context,l),this.#v({type:"success",data:h}),h}catch(u){try{await this.#o.config.onError?.(u,o,this.state.context,this,l)}catch(o){Promise.reject(o)}try{await this.options.onError?.(u,o,this.state.context,l)}catch(o){Promise.reject(o)}try{await this.#o.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,l)}catch(o){Promise.reject(o)}try{await this.options.onSettled?.(void 0,u,o,this.state.context,l)}catch(o){Promise.reject(o)}throw this.#v({type:"error",error:u}),u}finally{this.#o.runNext(this)}}#v(o){this.state=(l=>{switch(o.type){case"failed":return{...l,failureCount:o.failureCount,failureReason:o.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:o.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:o.isPaused,status:"pending",variables:o.variables,submittedAt:Date.now()};case"success":return{...l,data:o.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:o.error,failureCount:l.failureCount+1,failureReason:o.error,isPaused:!1,status:"error"}}})(this.state),c.Vr.batch(()=>{this.#m.forEach(l=>{l.onMutationUpdate(o)}),this.#o.notify({mutation:this,type:"updated",action:o})})}};function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},7037:function(o,l,u){"use strict";u.d(l,{Vr:function(){return h}});var c=u(6295).Hp,h=function(){let o=[],l=0,notifyFn=o=>{o()},batchNotifyFn=o=>{o()},u=c,schedule=c=>{l?o.push(c):u(()=>{notifyFn(c)})},flush=()=>{let l=o;o=[],l.length&&u(()=>{batchNotifyFn(()=>{l.forEach(o=>{notifyFn(o)})})})};return{batch:o=>{let u;l++;try{u=o()}finally{--l||flush()}return u},batchCalls:o=>(...l)=>{schedule(()=>{o(...l)})},schedule,setNotifyFunction:o=>{notifyFn=o},setBatchNotifyFunction:o=>{batchNotifyFn=o},setScheduler:o=>{u=o}}}()},4304:function(o,l,u){"use strict";u.d(l,{N:function(){return h}});var c=u(7506),h=new class extends c.l{#b=!0;#f;#h;constructor(){super(),this.#h=o=>{if("undefined"!=typeof window&&window.addEventListener){let onlineListener=()=>o(!0),offlineListener=()=>o(!1);return window.addEventListener("online",onlineListener,!1),window.addEventListener("offline",offlineListener,!1),()=>{window.removeEventListener("online",onlineListener),window.removeEventListener("offline",offlineListener)}}}}onSubscribe(){this.#f||this.setEventListener(this.#h)}onUnsubscribe(){this.hasListeners()||(this.#f?.(),this.#f=void 0)}setEventListener(o){this.#h=o,this.#f?.(),this.#f=o(this.setOnline.bind(this))}setOnline(o){let l=this.#b!==o;
241l&&(this.#b=o,this.listeners.forEach(l=>{l(o)}))}isOnline(){return this.#b}}},7775:function(o,l,u){"use strict";u.d(l,{A:function(){return b},z:function(){return fetchState}});var c=u(4139),h=u(7037),g=u(2008),y=u(8907);function infiniteQueryBehavior(o){return{onFetch:(l,u)=>{let h=l.options,g=l.fetchOptions?.meta?.fetchMore?.direction,y=l.state.data?.pages||[],b=l.state.data?.pageParams||[],_={pages:[],pageParams:[]},w=0,fetchFn=async()=>{let u=!1,addSignalProperty=o=>{(0,c.I4)(o,()=>l.signal,()=>u=!0)},T=(0,c.cG)(l.options,l.fetchOptions),fetchPage=async(o,h,g)=>{if(u)return Promise.reject(l.signal.reason);if(null==h&&o.pages.length)return Promise.resolve(o);let y=(()=>{let o={client:l.client,queryKey:l.queryKey,pageParam:h,direction:g?"backward":"forward",meta:l.options.meta};return addSignalProperty(o),o})(),b=await T(y),{maxPages:_}=l.options,w=g?c.Ht:c.VX;return{pages:w(o.pages,b,_),pageParams:w(o.pageParams,h,_)}};if(g&&y.length){let o="backward"===g,l=o?getPreviousPageParam:getNextPageParam,u={pages:y,pageParams:b},c=l(h,u);_=await fetchPage(u,c,o)}else{let l=o??y.length;do{let o=0===w?b[0]??h.initialPageParam:getNextPageParam(h,_);if(w>0&&null==o)break;_=await fetchPage(_,o),w++}while(w<l)}return _};l.options.persister?l.fetchFn=()=>l.options.persister?.(fetchFn,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},u):l.fetchFn=fetchFn}}}function getNextPageParam(o,{pages:l,pageParams:u}){let c=l.length-1;return l.length>0?o.getNextPageParam(l[c],l,u[c],u):void 0}function getPreviousPageParam(o,{pages:l,pageParams:u}){return l.length>0?o.getPreviousPageParam?.(l[0],l,u[0],u):void 0}var b=class extends y.F{#_;#S;#w;#x;#g;#y;#a;#C;constructor(o){super(),this.#C=!1,this.#a=o.defaultOptions,this.setOptions(o.options),this.observers=[],this.#g=o.client,this.#x=this.#g.getQueryCache(),this.queryKey=o.queryKey,this.queryHash=o.queryHash,this.#S=getDefaultState(this.options),this.state=o.state??this.#S,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#_}get promise(){return this.#y?.promise}setOptions(o){if(this.options={...this.#a,...o},o?._type&&(this.#_=o._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let o=getDefaultState(this.options);void 0!==o.data&&(this.setState(successState(o.data,o.dataUpdatedAt)),this.#S=o)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#x.remove(this)}setData(o,l){let u=(0,c.oE)(this.state.data,o,this.options);return this.#v({data:u,type:"success",dataUpdatedAt:l?.updatedAt,manual:l?.manual}),u}setState(o){this.#v({type:"setState",state:o})}cancel(o){let l=this.#y?.promise;return this.#y?.cancel(o),l?l.then(c.ZT).catch(c.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#S}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(o=>!1!==(0,c.TD)(o.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===c.CN||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(o=>"static"===(0,c.KC)(o.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(o=>o.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(o=0){return void 0===this.state.data||"static"!==o&&(!!this.state.isInvalidated||!(0,c.Kp)(this.state.dataUpdatedAt,o))}onFocus(){let o=this.observers.find(o=>o.shouldFetchOnWindowFocus());o?.refetch({cancelRefetch:!1}),this.#y?.continue()}onOnline(){let o=this.observers.find(o=>o.shouldFetchOnReconnect());o?.refetch({cancelRefetch:!1}),this.#y?.continue()}addObserver(o){this.observers.includes(o)||(this.observers.push(o),this.clearGcTimeout(),this.#x.notify({type:"observerAdded",query:this,observer:o}))}removeObserver(o){this.observers.includes(o)&&(this.observers=this.observers.filter(l=>l!==o),this.observers.length||(this.#y&&(this.#C||this.#E()?this.#y.cancel({revert:!0}):this.#y.cancelRetry()),this.scheduleGc()),this.#x.notify({type:"observerRemoved",query:this,observer:o}
241))}getObserversCount(){return this.observers.length}#E(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#v({type:"invalidate"})}async fetch(o,l){if("idle"!==this.state.fetchStatus&&this.#y?.status()!=="rejected"){if(void 0!==this.state.data&&l?.cancelRefetch)this.cancel({silent:!0});else if(this.#y)return this.#y.continueRetry(),this.#y.promise}if(o&&this.setOptions(o),!this.options.queryFn){let o=this.observers.find(o=>o.options.queryFn);o&&this.setOptions(o.options)}let u=new AbortController,addSignalProperty=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(this.#C=!0,u.signal)})},fetchFn=()=>{let o=(0,c.cG)(this.options,l),u=(()=>{let o={client:this.#g,queryKey:this.queryKey,meta:this.meta};return addSignalProperty(o),o})();return(this.#C=!1,this.options.persister)?this.options.persister(o,u,this):o(u)},h=(()=>{let o={fetchOptions:l,options:this.options,queryKey:this.queryKey,client:this.#g,state:this.state,fetchFn};return addSignalProperty(o),o})(),y="infinite"===this.#_?infiniteQueryBehavior(this.options.pages):this.options.behavior;y?.onFetch(h,this),this.#w=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#v({type:"fetch",meta:h.fetchOptions?.meta}),this.#y=(0,g.Mz)({initialPromise:l?.initialPromise,fn:h.fetchFn,onCancel:o=>{o instanceof g.p8&&o.revert&&this.setState({...this.#w,fetchStatus:"idle"}),u.abort()},onFail:(o,l)=>{this.#v({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#v({type:"pause"})},onContinue:()=>{this.#v({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{let o=await this.#y.start();if(void 0===o)throw Error(`${this.queryHash} data is undefined`);return this.setData(o),this.#x.config.onSuccess?.(o,this),this.#x.config.onSettled?.(o,this.state.error,this),o}catch(o){if(o instanceof g.p8){if(o.silent)return this.#y.promise;if(o.revert){if(void 0===this.state.data)throw o;return this.state.data}}throw this.#v({type:"error",error:o}),this.#x.config.onError?.(o,this),this.#x.config.onSettled?.(this.state.data,o,this),o}finally{this.scheduleGc()}}#v(o){this.state=(l=>{switch(o.type){case"failed":return{...l,fetchFailureCount:o.failureCount,fetchFailureReason:o.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...fetchState(l.data,this.options),fetchMeta:o.meta??null};case"success":let u={...l,...successState(o.data,o.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!o.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#w=o.manual?u:void 0,u;case"error":let c=o.error;return{...l,error:c,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...o.state}}})(this.state),h.Vr.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#x.notify({query:this,type:"updated",action:o})})}};function fetchState(o,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,g.Kw)(l.networkMode)?"fetching":"paused",...void 0===o&&{error:null,status:"pending"}}}function successState(o,l){return{data:o,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function getDefaultState(o){let l="function"==typeof o.initialData?o.initialData():o.initialData,u=void 0!==l,c=u?"function"==typeof o.initialDataUpdatedAt?o.initialDataUpdatedAt():o.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:u?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:u?"success":"pending",fetchStatus:"idle"}}},8907:function(o,l,u){"use strict";u.d(l,{F:function(){return y}});var c=u(6295),h=u(4334),g=u(4139),y=class{#k;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,g.PN)(this.gcTime)&&(this.#k=c.mr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(o){this.gcTime=Math.max(this.gcTime||0,o??(h.m.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#k&&(c.mr.clearTimeout(this.#k),this.#k=void 0)}}},2008:function(o,l,u){"use strict";u.d(l,{Kw:function(){return canFetch},Mz:function(){return createRetryer},p8:function(){return _}});var c=u(6474),h=u(4304),g=u(3820),y=u(4334),b=u(4139);function defaultRetryDelay(o){return Math.min(1e3*2**o,3e4)}function canFetch(o){return(o??"online")!=="online"||h.N.isOnline()}
241var _=class extends Error{constructor(o){super("CancelledError"),this.revert=o?.revert,this.silent=o?.silent}};function createRetryer(o){let l,u=!1,w=0,T=(0,g.O)(),isResolved=()=>"pending"!==T.status,canContinue=()=>c.j.isFocused()&&("always"===o.networkMode||h.N.isOnline())&&o.canRun(),canStart=()=>canFetch(o.networkMode)&&o.canRun(),resolve=o=>{isResolved()||(l?.(),T.resolve(o))},reject=o=>{isResolved()||(l?.(),T.reject(o))},pause=()=>new Promise(u=>{l=o=>{(isResolved()||canContinue())&&u(o)},o.onPause?.()}).then(()=>{l=void 0,isResolved()||o.onContinue?.()}),run=()=>{let l;if(isResolved())return;let c=0===w?o.initialPromise:void 0;try{l=c??o.fn()}catch(o){l=Promise.reject(o)}Promise.resolve(l).then(resolve).catch(l=>{if(isResolved())return;let c=o.retry??(y.m.isServer()?0:3),h=o.retryDelay??defaultRetryDelay,g="function"==typeof h?h(w,l):h,_=!0===c||"number"==typeof c&&w<c||"function"==typeof c&&c(w,l);if(u||!_){reject(l);return}w++,o.onFail?.(w,l),(0,b._v)(g).then(()=>canContinue()?void 0:pause()).then(()=>{u?reject(l):run()})})};return{promise:T,status:()=>T.status,cancel:l=>{if(!isResolved()){let u=new _(l);reject(u),o.onCancel?.(u)}},continue:()=>(l?.(),T),cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1},canStart,start:()=>(canStart()?run():pause().then(run),T)}}},7506:function(o,l,u){"use strict";u.d(l,{l:function(){return c}});var c=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(o){return this.listeners.add(o),this.onSubscribe(),()=>{this.listeners.delete(o),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},3820:function(o,l,u){"use strict";function pendingThenable(){let o,l;let u=new Promise((u,c)=>{o=u,l=c});function finalize(o){Object.assign(u,o),delete u.resolve,delete u.reject}return u.status="pending",u.catch(()=>{}),u.resolve=l=>{finalize({status:"fulfilled",value:l}),o(l)},u.reject=o=>{finalize({status:"rejected",reason:o}),l(o)},u}u.d(l,{O:function(){return pendingThenable}})},6295:function(o,l,u){"use strict";u.d(l,{Hp:function(){return systemSetTimeoutZero},mr:function(){return h}});var c={setTimeout:(o,l)=>setTimeout(o,l),clearTimeout:o=>clearTimeout(o),setInterval:(o,l)=>setInterval(o,l),clearInterval:o=>clearInterval(o)},h=new class{#P=c;#O=!1;setTimeoutProvider(o){this.#P=o}setTimeout(o,l){return this.#P.setTimeout(o,l)}clearTimeout(o){this.#P.clearTimeout(o)}setInterval(o,l){return this.#P.setInterval(o,l)}clearInterval(o){this.#P.clearInterval(o)}};function systemSetTimeoutZero(o){setTimeout(o,0)}},4139:function(o,l,u){"use strict";u.d(l,{CN:function(){return y},Ht:function(){return addToStart},I4:function(){return addConsumeAwareSignal},KC:function(){return resolveStaleTime},Kp:function(){return timeUntilStale},L3:function(){return shouldThrowError},PN:function(){return isValidTimeout},Rm:function(){return hashQueryKeyByOptions},SE:function(){return functionalUpdate},TD:function(){return resolveQueryBoolean},VS:function(){return shallowEqualObjects},VX:function(){return addToEnd},X7:function(){return matchMutation},Ym:function(){return hashKey},ZT:function(){return noop},_v:function(){return sleep},_x:function(){return matchQuery},cG:function(){return ensureQueryFn},oE:function(){return replaceData},sk:function(){return h},to:function(){return partialMatchKey}});var c=u(6295),h="undefined"==typeof window||"Deno"in globalThis;function noop(){}function functionalUpdate(o,l){return"function"==typeof o?o(l):o}function isValidTimeout(o){return"number"==typeof o&&o>=0&&o!==1/0}function timeUntilStale(o,l){return Math.max(o+(l||0)-Date.now(),0)}function resolveStaleTime(o,l){return"function"==typeof o?o(l):o}function resolveQueryBoolean(o,l){return"function"==typeof o?o(l):o}function matchQuery(o,l){let{type:u="all",exact:c,fetchStatus:h,predicate:g,queryKey:y,stale:b}=o;if(y){if(c){if(l.queryHash!==hashQueryKeyByOptions(y,l.options))return!1}else if(!partialMatchKey(l.queryKey,y))return!1}if("all"!==u){let o=l.isActive();if("active"===u&&!o||"inactive"===u&&o)return!1}return("boolean"!=typeof b||l.isStale()===b)&&(!h||h===l.state.fetchStatus)&&(!g||!!g(l))}function matchMutation(o,l){let{exact:u,status:c,predicate:h,mutationKey:g}=o;if(g){if(!l.options.mutationKey)return!1;if(u){if(hashKey(l.options.mutationKey)!==hashKey(g))return!1}else if(!partialMatchKey(l.options.mutationKey,g))return!1}return(!c||l.state.status===c)&&(!h||!!h(l))}function hashQueryKeyByOptions(o,l){let u=l?.queryKeyHashFn||hashKey;return u(o)}function hashKey(o){return JSON.stringify(o,(o,l)=>isPlainObject(l)?Object.keys(l).sort().reduce((o,u)=>(o[u]=l[u],o),{}):l)}function partialMatchKey(o,l){return o===l||typeof o==typeof l&&!!o&&!!l&&"object"==typeof o&&"object"==typeof l&&Object.keys(l).every(u=>partialMatchKey(o[u],l[u]))}var g=Object.prototype.hasOwnProperty;function replaceEqualDeep(o,l,u=0){if(o===l)return o;if(u>500)return l;let c=isPlainArray(o)&&isPlainArray(l);if(!c&&!(isPlainObject(o)&&isPlainObject(l)))return l;let h=c?o:Object.keys(o),y=h.length,b=c?l:Object.keys(l),_=b.length,w=c?Array(_):{},T=0;for(let h=0;h<_;h++){let _=c?h:b[h],I=o[_],N=l[_];
241if(I===N){w[_]=I,(c?h<y:g.call(o,_))&&T++;continue}if(null===I||null===N||"object"!=typeof I||"object"!=typeof N){w[_]=N;continue}let F=replaceEqualDeep(I,N,u+1);w[_]=F,F===I&&T++}return y===_&&T===y?o:w}function shallowEqualObjects(o,l){if(!l||Object.keys(o).length!==Object.keys(l).length)return!1;for(let u in o)if(o[u]!==l[u])return!1;return!0}function isPlainArray(o){return Array.isArray(o)&&o.length===Object.keys(o).length}function isPlainObject(o){if(!hasObjectPrototype(o))return!1;let l=o.constructor;if(void 0===l)return!0;let u=l.prototype;return!!(hasObjectPrototype(u)&&u.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(o)===Object.prototype}function hasObjectPrototype(o){return"[object Object]"===Object.prototype.toString.call(o)}function sleep(o){return new Promise(l=>{c.mr.setTimeout(l,o)})}function replaceData(o,l,u){return"function"==typeof u.structuralSharing?u.structuralSharing(o,l):!1!==u.structuralSharing?replaceEqualDeep(o,l):l}function addToEnd(o,l,u=0){let c=[...o,l];return u&&c.length>u?c.slice(1):c}function addToStart(o,l,u=0){let c=[l,...o];return u&&c.length>u?c.slice(0,-1):c}var y=Symbol();function ensureQueryFn(o,l){return!o.queryFn&&l?.initialPromise?()=>l.initialPromise:o.queryFn&&o.queryFn!==y?o.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${o.queryHash}'`))}function shouldThrowError(o,l){return"function"==typeof o?o(...l):!!o}function addConsumeAwareSignal(o,l,u){let c,h=!1;return Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(c??=l(),h||(h=!0,c.aborted?u():c.addEventListener("abort",u,{once:!0})),c)}),o}},202:function(o,l,u){"use strict";u.d(l,{NL:function(){return useQueryClient},aH:function(){return QueryClientProvider}});var c=u(7294),h=u(5893),g=c.createContext(void 0),useQueryClient=o=>{let l=c.useContext(g);if(o)return o;if(!l)throw Error("No QueryClient set, use QueryClientProvider to set one");return l},QueryClientProvider=({client:o,children:l})=>(c.useEffect(()=>(o.mount(),()=>{o.unmount()}),[o]),(0,h.jsx)(g.Provider,{value:o,children:l}))},512:function(o,l,u){"use strict";function r(o){var l,u,c="";if("string"==typeof o||"number"==typeof o)c+=o;else if("object"==typeof o){if(Array.isArray(o)){var h=o.length;for(l=0;l<h;l++)o[l]&&(u=r(o[l]))&&(c&&(c+=" "),c+=u)}else for(u in o)o[u]&&(c&&(c+=" "),c+=u)}return c}function clsx(){for(var o,l,u=0,c="",h=arguments.length;u<h;u++)(o=arguments[u])&&(l=r(o))&&(c&&(c+=" "),c+=l);return c}l.Z=clsx},7582:function(o,l,u){"use strict";u.r(l),u.d(l,{__addDisposableResource:function(){return __addDisposableResource},__assign:function(){return __assign},__asyncDelegator:function(){return __asyncDelegator},__asyncGenerator:function(){return __asyncGenerator},__asyncValues:function(){return __asyncValues},__await:function(){return __await},__awaiter:function(){return __awaiter},__classPrivateFieldGet:function(){return __classPrivateFieldGet},__classPrivateFieldIn:function(){return __classPrivateFieldIn},__classPrivateFieldSet:function(){return __classPrivateFieldSet},__createBinding:function(){return c},__decorate:function(){return __decorate},__disposeResources:function(){return __disposeResources},__esDecorate:function(){return __esDecorate},__exportStar:function(){return __exportStar},__extends:function(){return __extends},__generator:function(){return __generator},__importDefault:function(){return __importDefault},__importStar:function(){return __importStar}
241,__makeTemplateObject:function(){return __makeTemplateObject},__metadata:function(){return __metadata},__param:function(){return __param},__propKey:function(){return __propKey},__read:function(){return __read},__rest:function(){return __rest},__rewriteRelativeImportExtension:function(){return __rewriteRelativeImportExtension},__runInitializers:function(){return __runInitializers},__setFunctionName:function(){return __setFunctionName},__spread:function(){return __spread},__spreadArray:function(){return __spreadArray},__spreadArrays:function(){return __spreadArrays},__values:function(){return __values}});var extendStatics=function(o,l){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(o[u]=l[u])})(o,l)};function __extends(o,l){if("function"!=typeof l&&null!==l)throw TypeError("Class extends value "+String(l)+" is not a constructor or null");function __(){this.constructor=o}extendStatics(o,l),o.prototype=null===l?Object.create(l):(__.prototype=l.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function(o){for(var l,u=1,c=arguments.length;u<c;u++)for(var h in l=arguments[u])Object.prototype.hasOwnProperty.call(l,h)&&(o[h]=l[h]);return o}).apply(this,arguments)};function __rest(o,l){var u={};for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&0>l.indexOf(c)&&(u[c]=o[c]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols)for(var h=0,c=Object.getOwnPropertySymbols(o);h<c.length;h++)0>l.indexOf(c[h])&&Object.prototype.propertyIsEnumerable.call(o,c[h])&&(u[c[h]]=o[c[h]]);return u}function __decorate(o,l,u,c){var h,g=arguments.length,y=g<3?l:null===c?c=Object.getOwnPropertyDescriptor(l,u):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)y=Reflect.decorate(o,l,u,c);else for(var b=o.length-1;b>=0;b--)(h=o[b])&&(y=(g<3?h(y):g>3?h(l,u,y):h(l,u))||y);return g>3&&y&&Object.defineProperty(l,u,y),y}function __param(o,l){return function(u,c){l(u,c,o)}}function __esDecorate(o,l,u,c,h,g){function accept(o){if(void 0!==o&&"function"!=typeof o)throw TypeError("Function expected");return o}for(var y,b=c.kind,_="getter"===b?"get":"setter"===b?"set":"value",w=!l&&o?c.static?o:o.prototype:null,T=l||(w?Object.getOwnPropertyDescriptor(w,c.name):{}),I=!1,N=u.length-1;N>=0;N--){var F={};for(var B in c)F[B]="access"===B?{}:c[B];for(var B in c.access)F.access[B]=c.access[B];F.addInitializer=function(o){if(I)throw TypeError("Cannot add initializers after decoration has completed");g.push(accept(o||null))};var Z=(0,u[N])("accessor"===b?{get:T.get,set:T.set}:T[_],F);if("accessor"===b){if(void 0===Z)continue;if(null===Z||"object"!=typeof Z)throw TypeError("Object expected");(y=accept(Z.get))&&(T.get=y),(y=accept(Z.set))&&(T.set=y),(y=accept(Z.init))&&h.unshift(y)}else(y=accept(Z))&&("field"===b?h.unshift(y):T[_]=y)}w&&Object.defineProperty(w,c.name,T),I=!0}function __runInitializers(o,l,u){for(var c=arguments.length>2,h=0;h<l.length;h++)u=c?l[h].call(o,u):l[h].call(o);return c?u:void 0}function __propKey(o){return"symbol"==typeof o?o:"".concat(o)}function __setFunctionName(o,l,u){return"symbol"==typeof l&&(l=l.description?"[".concat(l.description,"]"):""),Object.defineProperty(o,"name",{configurable:!0,value:u?"".concat(u," ",l):l})}function __metadata(o,l){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,l)}function __awaiter(o,l,u,c){function adopt(o){return o instanceof u?o:new u(function(l){l(o)})}return new(u||(u=Promise))(function(u,h){function fulfilled(o){try{step(c.next(o))}catch(o){h(o)}}function rejected(o){try{step(c.throw(o))}catch(o){h(o)}}function step(o){o.done?u(o.value):adopt(o.value).then(fulfilled,rejected)}step((c=c.apply(o,l||[])).next())})}function __generator(o,l){var u,c,h,g={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]},y=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return y.next=verb(0),y.throw=verb(1),y.return=verb(2),"function"==typeof Symbol&&(y[Symbol.iterator]=function(){return this}),y;function verb(o){return function(l){return step([o,l])}}function step(b){if(u)throw TypeError("Generator is already executing.");for(;y&&(y=0,b[0]&&(g=0)),g;)try{if(u=1,c&&(h=2&b[0]?c.return:b[0]?c.throw||((h=c.return)&&h.call(c),0):c.next)&&!(
241h=h.call(c,b[1])).done)return h;switch(c=0,h&&(b=[2&b[0],h.value]),b[0]){case 0:case 1:h=b;break;case 4:return g.label++,{value:b[1],done:!1};case 5:g.label++,c=b[1],b=[0];continue;case 7:b=g.ops.pop(),g.trys.pop();continue;default:if(!(h=(h=g.trys).length>0&&h[h.length-1])&&(6===b[0]||2===b[0])){g=0;continue}if(3===b[0]&&(!h||b[1]>h[0]&&b[1]<h[3])){g.label=b[1];break}if(6===b[0]&&g.label<h[1]){g.label=h[1],h=b;break}if(h&&g.label<h[2]){g.label=h[2],g.ops.push(b);break}h[2]&&g.ops.pop(),g.trys.pop();continue}b=l.call(o,g)}catch(o){b=[6,o],c=0}finally{u=h=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}}var c=Object.create?function(o,l,u,c){void 0===c&&(c=u);var h=Object.getOwnPropertyDescriptor(l,u);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(o,c,h)}:function(o,l,u,c){void 0===c&&(c=u),o[c]=l[u]};function __exportStar(o,l){for(var u in o)"default"===u||Object.prototype.hasOwnProperty.call(l,u)||c(l,o,u)}function __values(o){var l="function"==typeof Symbol&&Symbol.iterator,u=l&&o[l],c=0;if(u)return u.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&c>=o.length&&(o=void 0),{value:o&&o[c++],done:!o}}};throw TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(o,l){var u="function"==typeof Symbol&&o[Symbol.iterator];if(!u)return o;var c,h,g=u.call(o),y=[];try{for(;(void 0===l||l-- >0)&&!(c=g.next()).done;)y.push(c.value)}catch(o){h={error:o}}finally{try{c&&!c.done&&(u=g.return)&&u.call(g)}finally{if(h)throw h.error}}return y}function __spread(){for(var o=[],l=0;l<arguments.length;l++)o=o.concat(__read(arguments[l]));return o}function __spreadArrays(){for(var o=0,l=0,u=arguments.length;l<u;l++)o+=arguments[l].length;for(var c=Array(o),h=0,l=0;l<u;l++)for(var g=arguments[l],y=0,b=g.length;y<b;y++,h++)c[h]=g[y];return c}function __spreadArray(o,l,u){if(u||2==arguments.length)for(var c,h=0,g=l.length;h<g;h++)!c&&h in l||(c||(c=Array.prototype.slice.call(l,0,h)),c[h]=l[h]);return o.concat(c||Array.prototype.slice.call(l))}function __await(o){return this instanceof __await?(this.v=o,this):new __await(o)}function __asyncGenerator(o,l,u){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var c,h=u.apply(o,l||[]),g=[];return c=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),c[Symbol.asyncIterator]=function(){return this},c;function awaitReturn(o){return function(l){return Promise.resolve(l).then(o,reject)}}function verb(o,l){h[o]&&(c[o]=function(l){return new Promise(function(u,c){g.push([o,l,u,c])>1||resume(o,l)})},l&&(c[o]=l(c[o])))}function resume(o,l){try{step(h[o](l))}catch(o){settle(g[0][3],o)}}function step(o){o.value instanceof __await?Promise.resolve(o.value.v).then(fulfill,reject):settle(g[0][2],o)}function fulfill(o){resume("next",o)}function reject(o){resume("throw",o)}function settle(o,l){o(l),g.shift(),g.length&&resume(g[0][0],g[0][1])}}function __asyncDelegator(o){var l,u;return l={},verb("next"),verb("throw",function(o){throw o}),verb("return"),l[Symbol.iterator]=function(){return this},l;function verb(c,h){l[c]=o[c]?function(l){return(u=!u)?{value:__await(o[c](l)),done:!1}:h?h(l):l}:h}}function __asyncValues(o){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var l,u=o[Symbol.asyncIterator];return u?u.call(o):(o=__values(o),l={},verb("next"),verb("throw"),verb("return"),l[Symbol.asyncIterator]=function(){return this},l);function verb(u){l[u]=o[u]&&function(l){return new Promise(function(c,h){settle(c,h,(l=o[u](l)).done,l.value)})}}function settle(o,l,u,c){Promise.resolve(c).then(function(l){o({value:l,done:u})},l)}}
241function __makeTemplateObject(o,l){return Object.defineProperty?Object.defineProperty(o,"raw",{value:l}):o.raw=l,o}var h=Object.create?function(o,l){Object.defineProperty(o,"default",{enumerable:!0,value:l})}:function(o,l){o.default=l},ownKeys=function(o){return(ownKeys=Object.getOwnPropertyNames||function(o){var l=[];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(l[l.length]=u);return l})(o)};function __importStar(o){if(o&&o.__esModule)return o;var l={};if(null!=o)for(var u=ownKeys(o),g=0;g<u.length;g++)"default"!==u[g]&&c(l,o,u[g]);return h(l,o),l}function __importDefault(o){return o&&o.__esModule?o:{default:o}}function __classPrivateFieldGet(o,l,u,c){if("a"===u&&!c)throw TypeError("Private accessor was defined without a getter");if("function"==typeof l?o!==l||!c:!l.has(o))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===u?c:"a"===u?c.call(o):c?c.value:l.get(o)}function __classPrivateFieldSet(o,l,u,c,h){if("m"===c)throw TypeError("Private method is not writable");if("a"===c&&!h)throw TypeError("Private accessor was defined without a setter");if("function"==typeof l?o!==l||!h:!l.has(o))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===c?h.call(o,u):h?h.value=u:l.set(o,u),u}function __classPrivateFieldIn(o,l){if(null===l||"object"!=typeof l&&"function"!=typeof l)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof o?l===o:o.has(l)}function __addDisposableResource(o,l,u){if(null!=l){var c,h;if("object"!=typeof l&&"function"!=typeof l)throw TypeError("Object expected.");if(u){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");c=l[Symbol.asyncDispose]}if(void 0===c){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");c=l[Symbol.dispose],u&&(h=c)}if("function"!=typeof c)throw TypeError("Object not disposable.");h&&(c=function(){try{h.call(this)}catch(o){return Promise.reject(o)}}),o.stack.push({value:l,dispose:c,async:u})}else u&&o.stack.push({async:!0});return l}var g="function"==typeof SuppressedError?SuppressedError:function(o,l,u){var c=Error(u);return c.name="SuppressedError",c.error=o,c.suppressed=l,c};function __disposeResources(o){function fail(l){o.error=o.hasError?new g(l,o.error,"An error was suppressed during disposal."):l,o.hasError=!0}var l,u=0;function next(){for(;l=o.stack.pop();)try{if(!l.async&&1===u)return u=0,o.stack.push(l),Promise.resolve().then(next);if(l.dispose){var c=l.dispose.call(l.value);if(l.async)return u|=2,Promise.resolve(c).then(next,function(o){return fail(o),next()})}else u|=1}catch(o){fail(o)}if(1===u)return o.hasError?Promise.reject(o.error):Promise.resolve();if(o.hasError)throw o.error}return next()}function __rewriteRelativeImportExtension(o,l){return"string"==typeof o&&/^\.\.?\//.test(o)?o.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(o,u,c,h,g){return u?l?".jsx":".js":!c||h&&g?c+h+"."+g.toLowerCase()+"js":o}):o}l.default={__extends,__assign,__rest,__decorate,__param,__esDecorate,__runInitializers,__propKey,__setFunctionName,__metadata,__awaiter,__generator,__createBinding:c,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateOb
241ject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources,__rewriteRelativeImportExtension}},4529:function(o,l,u){"use strict";u.d(l,{Ue:function(){return create}});let createStoreImpl=o=>{let l;let u=new Set,setState=(o,c)=>{let h="function"==typeof o?o(l):o;if(!Object.is(h,l)){let o=l;l=(null!=c?c:"object"!=typeof h||null===h)?h:Object.assign({},l,h),u.forEach(u=>u(l,o))}},getState=()=>l,c={setState,getState,getInitialState:()=>h,subscribe:o=>(u.add(o),()=>u.delete(o)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),u.clear()}},h=l=o(setState,getState,c);return c},createStore=o=>o?createStoreImpl(o):createStoreImpl;var c=u(7294),h=u(2798);let{useDebugValue:g}=c,{useSyncExternalStoreWithSelector:y}=h,b=!1,identity=o=>o;function useStore(o,l=identity,u){u&&!b&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),b=!0);let c=y(o.subscribe,o.getState,o.getServerState||o.getInitialState,l,u);return g(c),c}let createImpl=o=>
241{"function"!=typeof o&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let l="function"==typeof o?createStore(o):o,useBoundStore=(o,u)=>useStore(l,o,u);return Object.assign(useBoundStore,l),useBoundStore},create=o=>o?createImpl(o):createImpl},782:function(o,l,u){"use strict";u.d(l,{mW:function(){return devtools}});let c=new Map,getTrackedConnectionState=o=>{let l=c.get(o);return l?Object.fromEntries(Object.entries(l.stores).map(([o,l])=>[o,l.getState()])):{}},extractConnectionInformation=(o,l,u)=>{if(void 0===o)return{type:"untracked",connection:l.connect(u)};let h=c.get(u.name);if(h)return{type:"tracked",store:o,...h};let g={connection:l.connect(u),stores:{}};return c.set(u.name,g),{type:"tracked",store:o,...g}},devtools=(o,l={})=>(u,c,h)=>{let g;let{enabled:y,anonymousActionType:b,store:_,...w}=l;try{g=(null==y||y)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(o){}if(!g)return y&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),o(u,c,h);let{connection:T,...I}=extractConnectionInformation(_,g,w),N=!0;h.setState=(o,l,g)=>{let y=u(o,l);if(!N)return y;let I=void 0===g?{type:b||"anonymous"}:"string"==typeof g?{type:g}:g;return void 0===_?null==T||T.send(I,c()):null==T||T.send({...I,type:`${_}/${I.type}`},{...getTrackedConnectionState(w.name),[_]:h.getState()}),y};let setStateFromDevtools=(...o)=>{let l=N;N=!1,u(...o),N=l},F=o(h.setState,c,h);if("untracked"===I.type?null==T||T.init(F):(I.stores[I.store]=h,null==T||T.init(Object.fromEntries(Object.entries(I.stores).map(([o,l])=>[o,o===I.store?F:l.getState()])))),h.dispatchFromDevtools&&"function"==typeof h.dispatch){let o=!1,l=h.dispatch;h.dispatch=(...u)=>{"__setState"!==u[0].type||o||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),o=!0),l(...u)}}
241return T.subscribe(o=>{var l;switch(o.type){case"ACTION":if("string"!=typeof o.payload){console.error("[zustand devtools middleware] Unsupported action format");return}return parseJsonThen(o.payload,o=>{if("__setState"===o.type){if(void 0===_){setStateFromDevtools(o.state);return}1!==Object.keys(o.state).length&&console.error(`
242                    [zustand devtools middleware] Unsupported __setState action format. 
243                    When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
244                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
245                    `);let l=o.state[_];if(null==l)return;JSON.stringify(h.getState())!==JSON.stringify(l)&&setStateFromDevtools(l);return}h.dispatchFromDevtools&&"function"==typeof h.dispatch&&h.dispatch(o)});case"DISPATCH":switch(o.payload.type){case"RESET":if(setStateFromDevtools(F),void 0===_)return null==T?void 0:T.init(h.getState());return null==T?void 0:T.init(getTrackedConnectionState(w.name));case"COMMIT":if(void 0===_){null==T||T.init(h.getState());break}return null==T?void 0:T.init(getTrackedConnectionState(w.name));case"ROLLBACK":return parseJsonThen(o.state,o=>{if(void 0===_){setStateFromDevtools(o),null==T||T.init(h.getState());return}setStateFromDevtools(o[_]),null==T||T.init(getTrackedConnectionState(w.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return parseJsonThen(o.state,o=>{if(void 0===_){setStateFromDevtools(o);return}JSON.stringify(h.getState())!==JSON.stringify(o[_])&&setStateFromDevtools(o[_])});case"IMPORT_STATE":{let{nextLiftedState:u}=o.payload,c=null==(l=u.computedStates.slice(-1)[0])?void 0:l.state;if(!c)return;void 0===_?setStateFromDevtools(c):setStateFromDevtools(c[_]),null==T||T.send(null,u);break}case"PAUSE_RECORDING":return N=!N}return}}),F},parseJsonThen=(o,l)=>{let u;try{u=JSON.parse(o)}catch(o){console.error("[zustand devtools middleware] Could not parse the received json",o)}void 0!==u&&l(u)}}},function(o){var __webpack_exec__=function(l){return o(o.s=l)};o.O(0,[774,179],function(){return __webpack_exec__(6840),__webpack_exec__(9974)}),_N_E=o.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.