=n&&oy("invalid-input");var f=cy(e.charCodeAt(s++));(f>=Jb||f>ry((Yb-r)/c))&&oy("overflow"),r+=f*c;var p=d<=o?1:d>=o+26?26:d-o;if(fry(Yb/h)&&oy("overflow"),c*=h}var v=t.length+1;o=fy(r-u,v,0==u),ry(r/v)>Yb-i&&oy("overflow"),i+=ry(r/v),r%=v,t.splice(r++,0,i)}return String.fromCodePoint.apply(String,t)}),"decode"),hy=ie((function(e){var t,n=[],r=(e=sy(e)).length,i=128,o=0,a=72,l=(0,p.Z)(e);try{for(l.s();!(t=l.n()).done;){var s=t.value;s<128&&n.push(iy(s))}}catch(TE){l.e(TE)}finally{l.f()}var u=n.length,c=u;for(u&&n.push("-");c=i&&vry((Yb-o)/m)&&oy("overflow"),o+=(f-i)*m,i=f;var g,b=(0,p.Z)(e);try{for(b.s();!(g=b.n()).done;){var y=g.value;if(yYb&&oy("overflow"),y==i){for(var x=o,w=Jb;;w+=Jb){var C=w<=a?1:w>=a+26?26:w-a;if(x=0))try{t.hostname=_y.toASCII(t.hostname)}catch(n){}return Ty.encode(Ty.format(t))}function Dy(e){var t=Ty.parse(e,!0);if(t.hostname&&(!t.protocol||My.indexOf(t.protocol)>=0))try{t.hostname=_y.toUnicode(t.hostname)}catch(n){}return Ty.decode(Ty.format(t),Ty.decode.defaultChars+"%")}function Ay(e,t){if(!(this instanceof Ay))return new Ay(e,t);t||yy.isString(e)||(t=e||{},e="default"),this.inline=new Sy,this.block=new ky,this.core=new Cy,this.renderer=new wy,this.linkify=new Ey,this.validateLink=Oy,this.normalizeLink=Py,this.normalizeLinkText=Dy,this.utils=yy,this.helpers=yy.assign({},xy),this.options={},this.configure(e),t&&this.set(t)}ie(Py,"normalizeLink"),ie(Dy,"normalizeLinkText"),ie(Ay,"MarkdownIt"),Ay.prototype.set=function(e){return yy.assign(this.options,e),this},Ay.prototype.configure=function(e){var t,n=this;if(yy.isString(e)&&!(e=Iy[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},Ay.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Ay.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Ay.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ay.prototype.parse=function(e,t){if("string"!==typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Ay.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ay.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Ay.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Zy=new Ay({breaks:!0,linkify:!0}),jy=(0,g.forwardRef)((function(e,t){var n=e,r=n.children,i=n.onlyShowFirstChild,o=n.type,a=oe(n,["children","onlyShowFirstChild","type"]);return Xe("div",re(ne({},a),{ref:t,className:le("graphiql-markdown-".concat(o),i&&"graphiql-markdown-preview",a.className),dangerouslySetInnerHTML:{__html:Zy.render(r)}}))}));jy.displayName="MarkdownContent";var Ly=(0,g.forwardRef)((function(e,t){return Xe("div",re(ne({},e),{ref:t,className:le("graphiql-spinner",e.className)}))}));Ly.displayName="Spinner";function Fy(e){var t,n,r=Xl(e),i=r.defaultView||window;return r?{width:null!=(t=r.documentElement.clientWidth)?t:i.innerWidth,height:null!=(n=r.documentElement.clientHeight)?n:i.innerHeight}:{width:0,height:0}}function zy(){return zy=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}ie(Fy,"getDocumentDimensions"),ie(zy,"_extends$1"),ie(By,"_objectWithoutPropertiesLoose$1");var Vy,Hy,Uy,qy,Wy,Gy,Ky,$y,Qy,Yy,Jy=["children","label","ariaLabel","id","DEBUG_STYLE"],Xy=["label","ariaLabel","isVisible","id"],ex=["ariaLabel","aria-label","as","id","isVisible","label","position","style","triggerRect"],tx=["type"];($y=Ky||(Ky={})).Idle="IDLE",$y.Focused="FOCUSED",$y.Visible="VISIBLE",$y.LeavingVisible="LEAVING_VISIBLE",$y.Dismissed="DISMISSED",(Yy=Qy||(Qy={})).Blur="BLUR",Yy.Focus="FOCUS",Yy.GlobalMouseMove="GLOBAL_MOUSE_MOVE",Yy.MouseDown="MOUSE_DOWN",Yy.MouseEnter="MOUSE_ENTER",Yy.MouseLeave="MOUSE_LEAVE",Yy.MouseMove="MOUSE_MOVE",Yy.Rest="REST",Yy.SelectWithKeyboard="SELECT_WITH_KEYBOARD",Yy.TimeComplete="TIME_COMPLETE";var nx,rx,ix={initial:Ky.Idle,states:(Gy={},Gy[Ky.Idle]={enter:px,on:(Vy={},Vy[Qy.MouseEnter]=Ky.Focused,Vy[Qy.Focus]=Ky.Visible,Vy)},Gy[Ky.Focused]={enter:ux,leave:cx,on:(Hy={},Hy[Qy.MouseMove]=Ky.Focused,Hy[Qy.MouseLeave]=Ky.Idle,Hy[Qy.MouseDown]=Ky.Dismissed,Hy[Qy.Blur]=Ky.Idle,Hy[Qy.Rest]=Ky.Visible,Hy)},Gy[Ky.Visible]={on:(Uy={},Uy[Qy.Focus]=Ky.Focused,Uy[Qy.MouseEnter]=Ky.Focused,Uy[Qy.MouseLeave]=Ky.LeavingVisible,Uy[Qy.Blur]=Ky.LeavingVisible,Uy[Qy.MouseDown]=Ky.Dismissed,Uy[Qy.SelectWithKeyboard]=Ky.Dismissed,Uy[Qy.GlobalMouseMove]=Ky.LeavingVisible,Uy)},Gy[Ky.LeavingVisible]={enter:dx,leave:ie((function(){fx(),px()}),"leave"),on:(qy={},qy[Qy.MouseEnter]=Ky.Visible,qy[Qy.Focus]=Ky.Visible,qy[Qy.TimeComplete]=Ky.Idle,qy)},Gy[Ky.Dismissed]={leave:ie((function(){px()}),"leave"),on:(Wy={},Wy[Qy.MouseLeave]=Ky.Idle,Wy[Qy.Blur]=Ky.Idle,Wy)},Gy)},ox={value:ix.initial,context:{id:null}},ax=[];function lx(e){return ax.push(e),function(){ax.splice(ax.indexOf(e),1)}}function sx(){ax.forEach((function(e){return e(ox)}))}function ux(){window.clearTimeout(nx),nx=window.setTimeout((function(){wx({type:Qy.Rest})}),100)}function cx(){window.clearTimeout(nx)}function dx(){window.clearTimeout(rx),rx=window.setTimeout((function(){return wx({type:Qy.TimeComplete})}),500)}function fx(){window.clearTimeout(rx)}function px(){ox.context.id=null}function hx(e){var t=void 0===e?{}:e,n=t.id,r=t.onPointerEnter,i=t.onPointerMove,o=t.onPointerLeave,a=t.onPointerDown,l=t.onMouseEnter,s=t.onMouseMove,u=t.onMouseLeave,c=t.onMouseDown,d=t.onFocus,f=t.onBlur,p=t.onKeyDown,h=t.disabled,v=t.ref,m=t.DEBUG_STYLE,b=String(zd(n)),y=(0,g.useState)(!!m||kx(b,!0)),x=y[0],w=y[1],C=(0,g.useRef)(null),k=ss(v,C),S=Gd(C,{observe:x});function E(e,t){return"undefined"!==typeof window&&"PointerEvent"in window?e:us(e,t)}function T(e){return ie((function(t){"mouse"===t.pointerType&&e(t)}),"onPointerEvent")}function _(){wx({type:Qy.MouseEnter,id:b})}function I(){wx({type:Qy.MouseMove,id:b})}function R(){wx({type:Qy.MouseLeave})}function N(){ox.context.id===b&&wx({type:Qy.MouseDown})}function O(){window.__REACH_DISABLE_TOOLTIPS||wx({type:Qy.Focus,id:b})}function M(){ox.context.id===b&&wx({type:Qy.Blur})}function P(e){"Enter"!==e.key&&" "!==e.key||wx({type:Qy.SelectWithKeyboard})}return(0,g.useEffect)((function(){return lx((function(){w(kx(b))}))}),[b]),(0,g.useEffect)((function(){var e=Xl(C.current);function t(e){"Escape"!==e.key&&"Esc"!==e.key||ox.value!==Ky.Visible||wx({type:Qy.SelectWithKeyboard})}return ie(t,"listener"),e.addEventListener("keydown",t),function(){return e.removeEventListener("keydown",t)}}),[]),xx({disabled:h,isVisible:x,ref:C}),ie(E,"wrapMouseEvent"),ie(T,"wrapPointerEventHandler"),ie(_,"handleMouseEnter"),ie(I,"handleMouseMove"),ie(R,"handleMouseLeave"),ie(N,"handleMouseDown"),ie(O,"handleFocus"),ie(M,"handleBlur"),ie(P,"handleKeyDown"),[{"aria-describedby":x?qf("tooltip",b):void 0,"data-state":x?"tooltip-visible":"tooltip-hidden","data-reach-tooltip-trigger":"",ref:k,onPointerEnter:us(r,T(_)),onPointerMove:us(i,T(I)),onPointerLeave:us(o,T(R)),onPointerDown:us(a,T(N)),onMouseEnter:E(l,_),onMouseMove:E(s,I),onMouseLeave:E(u,R),onMouseDown:E(c,N),onFocus:us(d,O),onBlur:us(f,M),onKeyDown:us(p,P)},{id:b,triggerRect:S,isVisible:x},x]}ie(lx,"subscribe"),ie(sx,"notify"),ie(ux,"startRestTimer"),ie(cx,"clearRestTimer"),ie(dx,"startLeavingVisibleTimer"),ie(fx,"clearLeavingVisibleTimer"),ie(px,"clearContextId"),ie(hx,"useTooltip");var vx=(0,g.forwardRef)((function(e,t){var n=e.children,r=e.label,i=e.ariaLabel,o=e.id,a=e.DEBUG_STYLE,l=By(e,Jy),s=g.Children.only(n),u=hx({id:o,onPointerEnter:s.props.onPointerEnter,onPointerMove:s.props.onPointerMove,onPointerLeave:s.props.onPointerLeave,onPointerDown:s.props.onPointerDown,onMouseEnter:s.props.onMouseEnter,onMouseMove:s.props.onMouseMove,onMouseLeave:s.props.onMouseLeave,onMouseDown:s.props.onMouseDown,onFocus:s.props.onFocus,onBlur:s.props.onBlur,onKeyDown:s.props.onKeyDown,disabled:s.props.disabled,ref:s.ref,DEBUG_STYLE:a}),c=u[0],d=u[1];return(0,g.createElement)(g.Fragment,null,(0,g.cloneElement)(s,c),(0,g.createElement)(mx,zy({ref:t,label:r,"aria-label":i},d,l)))})),mx=(0,g.forwardRef)(ie((function(e,t){var n=e.label,r=e.ariaLabel,i=e.isVisible,o=e.id,a=By(e,Xy);return i?(0,g.createElement)(Jl,null,(0,g.createElement)(gx,zy({ref:t,label:n,"aria-label":r,isVisible:i},a,{id:qf("tooltip",String(o))}))):null}),"TooltipPopup")),gx=(0,g.forwardRef)(ie((function(e,t){var n=e.ariaLabel,r=e["aria-label"],i=e.as,o=void 0===i?"div":i,a=e.id,l=e.isVisible,s=e.label,u=e.position,c=void 0===u?yx:u,d=e.style,f=e.triggerRect,p=By(e,ex),h=null!=(r||n),v=(0,g.useRef)(null),m=ss(t,v),b=Gd(v,{observe:l});return(0,g.createElement)(g.Fragment,null,(0,g.createElement)(o,zy({role:h?void 0:"tooltip"},p,{ref:m,"data-reach-tooltip":"",id:h?void 0:a,style:zy({},d,bx(c,f,b))}),s),h&&(0,g.createElement)(Od,{role:"tooltip",id:a},r||n))}),"TooltipContent"));function bx(e,t,n){return!n?{visibility:"hidden"}:e(t,n)}ie(bx,"getStyles");var yx=ie((function(e,t,n){void 0===n&&(n=8);var r=Fy(),i=r.width,o=r.height;if(!e||!t)return{};var a={top:e.top-t.height<0,right:i0&&(s+="\n"+E.map((function(e){return(0,V.print)(e)})).join("\n")),i(""),S(!0),T=null!=(n=null!=o?o:c.operationName)?n:void 0,null==y||y.addToHistory({query:s,variables:g,headers:C,operationName:T}),e.prev=32,O={data:{}},M=Bx((function(e){if(a===R.current){var t=!!Array.isArray(e)&&e;if(!t&&"object"===typeof e&&null!==e&&"hasNext"in e&&(t=[e]),t){var n={data:O.data},r=[].concat((0,f.Z)((null==O?void 0:O.errors)||[]),(0,f.Z)(t.flatMap((function(e){return e.errors})).filter(Boolean)));r.length&&(n.errors=r);var o,l=(0,p.Z)(t);try{for(l.s();!(o=l.n()).done;){var s=o.value,u=s,c=u.path,d=u.data,h=(u.errors,oe(u,["path","data","errors"]));if(c){if(!d)throw new Error("Expected part to contain a data property, but got ".concat(s));Pa(n.data,c,d,{merge:!0})}else d&&(n.data=d);O=ne(ne({},n),h)}}catch(TE){l.e(TE)}finally{l.f()}S(!1),i(ye(O))}else{var v=ye(e);S(!1),i(v)}}}),"handleResponse"),P=t({query:s,variables:w,operationName:T},{headers:null!=k?k:void 0,documentAST:null!=(r=c.documentAST)?r:void 0}),e.next=38,Promise.resolve(P);case 38:if(!ce(D=e.sent)){e.next=43;break}I(D.subscribe({next:function(e){M(e)},error:function(e){S(!1),e&&i(be(e)),I(null)},complete:function(){S(!1),I(null)}})),e.next=78;break;case 43:if(!de(D)){e.next=77;break}I({unsubscribe:function(){var e,t;return null==(t=(e=D[Symbol.asyncIterator]()).return)?void 0:t.call(e)}}),A=!1,Z=!1,e.prev=47,L=(0,h.Z)(D);case 49:return e.next=51,L.next();case 51:if(!(A=!(F=e.sent).done)){e.next=57;break}z=F.value,M(z);case 54:A=!1,e.next=49;break;case 57:e.next=63;break;case 59:e.prev=59,e.t2=e.catch(47),Z=!0,j=e.t2;case 63:if(e.prev=63,e.prev=64,!A||null==L.return){e.next=68;break}return e.next=68,L.return();case 68:if(e.prev=68,!Z){e.next=71;break}throw j;case 71:return e.finish(68);case 72:return e.finish(63);case 73:S(!1),I(null),e.next=78;break;case 77:M(D);case 78:e.next=85;break;case 80:e.prev=80,e.t3=e.catch(32),S(!1),i(be(e.t3)),I(null);case 85:case"end":return e.stop()}}),e,null,[[10,14],[19,23],[32,80],[47,59,63,73],[64,,68,72]])}))),[x,l,t,u,y,o,c,d,N,_,b,v]),M=Boolean(_),P=(0,g.useMemo)((function(){return{isFetching:k,isSubscribed:M,operationName:null!=o?o:null,run:O,stop:N}}),[k,M,o,O,N]);return Xe(Vx.Provider,{value:P,children:i})}ie(Hx,"ExecutionContextProvider"),Bx(Hx,"ExecutionContextProvider");var Ux=Le(Vx);function qx(e){var t=e.json,n=e.errorMessageParse,r=e.errorMessageType,i=void 0;try{i=t&&""!==t.trim()?JSON.parse(t):void 0}catch(a){throw new Error("".concat(n,": ").concat(a instanceof Error?a.message:a,"."))}var o="object"===typeof i&&null!==i&&!Array.isArray(i);if(void 0!==i&&!o)throw new Error(r);return i}ie(qx,"tryParseJsonObject"),Bx(qx,"tryParseJsonObject");var Wx=Object.defineProperty,Gx=ie((function(e,t){return Wx(e,"name",{value:t,configurable:!0})}),"__name$z"),Kx="graphiql",$x="sublime",Qx=!1;"object"===typeof window&&(Qx=0===window.navigator.platform.toLowerCase().indexOf("mac"));var Yx=(F={},(0,u.Z)(F,Qx?"Cmd-F":"Ctrl-F","findPersistent"),(0,u.Z)(F,"Cmd-G","findPersistent"),(0,u.Z)(F,"Ctrl-G","findPersistent"),(0,u.Z)(F,"Ctrl-Left","goSubwordLeft"),(0,u.Z)(F,"Ctrl-Right","goSubwordRight"),(0,u.Z)(F,"Alt-Left","goGroupLeft"),(0,u.Z)(F,"Alt-Right","goGroupRight"),F);function Jx(e,t){return Xx.apply(this,arguments)}function Xx(){return Xx=(0,r.Z)(m().mark((function e(t,r){var i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(461).then(n.bind(n,8461)).then((function(e){return e.c})).then((function(e){return"function"===typeof e?e:e.default}));case 2:return i=e.sent,e.next=5,Promise.all(!1===(null==r?void 0:r.useCommonAddons)?t:[Promise.all([n.e(461),n.e(80)]).then(n.bind(n,4080)).then((function(e){return e.s})),Promise.all([n.e(461),n.e(990)]).then(n.bind(n,5990)).then((function(e){return e.m})),Promise.all([n.e(461),n.e(939)]).then(n.bind(n,1939)).then((function(e){return e.c})),Promise.all([n.e(461),n.e(474)]).then(n.bind(n,6474)).then((function(e){return e.b})),Promise.all([n.e(461),n.e(986)]).then(n.bind(n,986)).then((function(e){return e.f})),Promise.all([n.e(461),n.e(714)]).then(n.bind(n,2714)).then((function(e){return e.l})),Promise.all([n.e(461),n.e(822)]).then(n.bind(n,9822)).then((function(e){return e.s})),Promise.all([n.e(461),n.e(491)]).then(n.bind(n,4491)).then((function(e){return e.j})),Promise.all([n.e(461),n.e(301)]).then(n.bind(n,3301)).then((function(e){return e.d})),Promise.all([n.e(461),n.e(492)]).then(n.bind(n,6492)).then((function(e){return e.s}))].concat((0,f.Z)(t)));case 5:return e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)}))),Xx.apply(this,arguments)}ie(Jx,"importCodeMirror"),Gx(Jx,"importCodeMirror");var ew=ie((function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r1?e.slice(0,-1):e}))}),[]),d=(0,g.useCallback)((function(){l((function(e){return 1===e.length?e:[yw]}))}),[]);(0,g.useEffect)((function(){null==n||r.length>0?d():l((function(e){if(1===e.length)return e;var t,r=[yw],i=null,o=(0,p.Z)(e);try{var a=function(){var e=t.value;if(e===yw)return"continue";if(e.def)if((0,I.Zs)(e.def)){var o=n.getType(e.def.name);if(!o)return"break";r.push({name:e.name,def:o}),i=o}else{if(null===i)return"break";if((0,I.lp)(i)||(0,I.hL)(i)){var a=i.getFields()[e.name];if(!a)return"break";r.push({name:e.name,def:a})}else{if((0,I.KA)(i)||(0,I.EM)(i)||(0,I.oT)(i)||(0,I.EN)(i))return"break";var l=i;if(!l.args.find((function(t){return t.name===e.name})))return"break";r.push({name:e.name,def:l})}}else i=null,r.push(e)};for(o.s();!(t=o.n()).done;){var l=a();if("continue"!==l&&"break"===l)break}}catch(TE){o.e(TE)}finally{o.f()}return r}))}),[d,n,r]);var h=(0,g.useMemo)((function(){return{explorerNavStack:a,push:u,pop:c,reset:d}}),[a,u,c,d]);return Xe(xw.Provider,{value:h,children:e.children})}ie(ww,"ExplorerContextProvider"),bw(ww,"ExplorerContextProvider");var Cw=Le(xw),kw=Object.defineProperty,Sw=ie((function(e,t){return kw(e,"name",{value:t,configurable:!0})}),"__name$v");function Ew(e,t){return(0,I.zM)(e)?et(tt,{children:[Ew(e.ofType,t),"!"]}):(0,I.HG)(e)?et(tt,{children:["[",Ew(e.ofType,t),"]"]}):t(e)}ie(Ew,"renderType"),Sw(Ew,"renderType");var Tw=Object.defineProperty,_w=ie((function(e,t){return Tw(e,"name",{value:t,configurable:!0})}),"__name$u");function Iw(e){var t=Cw({nonNull:!0,caller:Iw}).push;return e.type?Ew(e.type,(function(e){return Xe("a",{className:"graphiql-doc-explorer-type-name",onClick:function(n){n.preventDefault(),t({name:e.name,def:e})},href:"#",children:e.name})})):null}ie(Iw,"TypeLink"),_w(Iw,"TypeLink");var Rw=Object.defineProperty,Nw=ie((function(e,t){return Rw(e,"name",{value:t,configurable:!0})}),"__name$t");function Ow(e){var t=e.arg,n=e.showDefaultValue,r=e.inline,i=et("span",{children:[Xe("span",{className:"graphiql-doc-explorer-argument-name",children:t.name}),": ",Xe(Iw,{type:t.type}),!1!==n&&Xe(uw,{field:t})]});return r?i:et("div",{className:"graphiql-doc-explorer-argument",children:[i,t.description?Xe(jy,{type:"description",children:t.description}):null,t.deprecationReason?et("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[Xe("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),Xe(jy,{type:"deprecation",children:t.deprecationReason})]}):null]})}ie(Ow,"Argument"),Nw(Ow,"Argument");var Mw=Object.defineProperty,Pw=ie((function(e,t){return Mw(e,"name",{value:t,configurable:!0})}),"__name$s");function Dw(e){return e.children?et("div",{className:"graphiql-doc-explorer-deprecation",children:[Xe("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),Xe(jy,{type:"deprecation",onlyShowFirstChild:!0,children:e.children})]}):null}ie(Dw,"DeprecationReason"),Pw(Dw,"DeprecationReason");var Aw=Object.defineProperty,Zw=ie((function(e,t){return Aw(e,"name",{value:t,configurable:!0})}),"__name$r");function jw(e){var t=e.directive;return et("span",{className:"graphiql-doc-explorer-directive",children:["@",t.name.value]})}ie(jw,"Directive"),Zw(jw,"Directive");var Lw=Object.defineProperty,Fw=ie((function(e,t){return Lw(e,"name",{value:t,configurable:!0})}),"__name$q");function zw(e){var t=Bw[e.title];return et("div",{children:[et("div",{className:"graphiql-doc-explorer-section-title",children:[Xe(t,{}),e.title]}),Xe("div",{className:"graphiql-doc-explorer-section-content",children:e.children})]})}ie(zw,"ExplorerSection"),Fw(zw,"ExplorerSection");var Bw={Arguments:fl,"Deprecated Arguments":bl,"Deprecated Enum Values":yl,"Deprecated Fields":xl,Directives:wl,"Enum Values":Sl,Fields:El,Implements:_l,Implementations:Bl,"Possible Types":Bl,"Root Types":Zl,Type:Bl},Vw=Object.defineProperty,Hw=ie((function(e,t){return Vw(e,"name",{value:t,configurable:!0})}),"__name$p");function Uw(e){return et(tt,{children:[e.field.description?Xe(jy,{type:"description",children:e.field.description}):null,Xe(Dw,{children:e.field.deprecationReason}),Xe(zw,{title:"Type",children:Xe(Iw,{type:e.field.type})}),Xe(qw,{field:e.field}),Xe(Ww,{field:e.field})]})}function qw(e){var t=e.field,n=(0,g.useState)(!1),r=(0,s.Z)(n,2),i=r[0],o=r[1];if(!("args"in t))return null;var a,l=[],u=[],c=(0,p.Z)(t.args);try{for(c.s();!(a=c.n()).done;){var d=a.value;d.deprecationReason?u.push(d):l.push(d)}}catch(TE){c.e(TE)}finally{c.f()}return et(tt,{children:[l.length>0?Xe(zw,{title:"Arguments",children:l.map((function(e){return Xe(Ow,{arg:e},e.name)}))}):null,u.length>0?i||0===l.length?Xe(zw,{title:"Deprecated Arguments",children:u.map((function(e){return Xe(Ow,{arg:e},e.name)}))}):Xe(Ul,{type:"button",onClick:function(){o(!0)},children:"Show Deprecated Arguments"}):null]})}function Ww(e){var t,n=(null==(t=e.field.astNode)?void 0:t.directives)||[];return n&&0!==n.length?Xe(zw,{title:"Directives",children:n.map((function(e){return Xe("div",{children:Xe(jw,{directive:e})},e.name.value)}))}):null}ie(Uw,"FieldDocumentation"),Hw(Uw,"FieldDocumentation"),ie(qw,"Arguments"),Hw(qw,"Arguments"),ie(Ww,"Directives"),Hw(Ww,"Directives");var Gw=Object.defineProperty,Kw=ie((function(e,t){return Gw(e,"name",{value:t,configurable:!0})}),"__name$o");function $w(e){var t,n,r,i,o=e.schema.getQueryType(),a=null==(n=(t=e.schema).getMutationType)?void 0:n.call(t),l=null==(i=(r=e.schema).getSubscriptionType)?void 0:i.call(r);return et(tt,{children:[Xe(jy,{type:"description",children:e.schema.description||"A GraphQL schema provides a root type for each kind of operation."}),et(zw,{title:"Root Types",children:[o?et("div",{children:[Xe("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",Xe(Iw,{type:o})]}):null,a&&et("div",{children:[Xe("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",Xe(Iw,{type:a})]}),l&&et("div",{children:[Xe("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",Xe(Iw,{type:l})]})]})]})}function Qw(e,t){var n=(0,g.useRef)(!1);(0,g.useEffect)((function(){n.current?e():n.current=!0}),t)}function Yw(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function Jw(){return Jw=Object.assign||function(e){for(var t=1;ts&&e.push({highlight:!1,start:s,end:u}),o.index===l.lastIndex&&l.lastIndex++}return e}),[])}function nC(e){var t=e.chunksToHighlight,n=e.totalLength,r=[];if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r;function o(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})}}function rC(e){return e}function iC(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}ie($w,"SchemaDocumentation"),Kw($w,"SchemaDocumentation"),ie(Qw,"useUpdateEffect"),ie(Yw,"_objectWithoutPropertiesLoose"),ie(Jw,"_extends"),ie(Xw,"findAll"),ie(eC,"combineChunks"),ie(tC,"defaultFindChunks"),ie(nC,"fillInChunks"),ie(rC,"defaultSanitize"),ie(iC,"escapeRegExpFn");var oC,aC,lC,sC,uC,cC={combineChunks:eC,fillInChunks:nC,findAll:Xw,findChunks:tC},dC=["onSelect","openOnFocus","children","as","aria-label","aria-labelledby"],fC=["as","selectOnClick","autocomplete","onClick","onChange","onKeyDown","onBlur","onFocus","value"],pC=["as","children","portal","onKeyDown","onBlur","position"],hC=["persistSelection","as"],vC=["as","children","index","value","onClick"],mC="IDLE",gC="SUGGESTING",bC="NAVIGATING",yC="INTERACTING",xC="CLEAR",wC="CHANGE",CC="INITIAL_CHANGE",kC="NAVIGATE",SC="SELECT_WITH_KEYBOARD",EC="SELECT_WITH_CLICK",TC="ESCAPE",_C="BLUR",IC="INTERACT",RC="FOCUS",NC="OPEN_WITH_BUTTON",OC="OPEN_WITH_INPUT_CLICK",MC="CLOSE_WITH_BUTTON",PC={initial:mC,states:(uC={},uC.IDLE={on:(oC={},oC.BLUR=mC,oC.CLEAR=mC,oC.CHANGE=gC,oC.INITIAL_CHANGE=mC,oC.FOCUS=gC,oC.NAVIGATE=bC,oC.OPEN_WITH_BUTTON=gC,oC.OPEN_WITH_INPUT_CLICK=gC,oC)},uC[gC]={on:(aC={},aC.CHANGE=gC,aC.FOCUS=gC,aC.NAVIGATE=bC,aC.CLEAR=mC,aC.ESCAPE=mC,aC.BLUR=mC,aC.SELECT_WITH_CLICK=mC,aC.INTERACT=yC,aC.CLOSE_WITH_BUTTON=mC,aC)},uC[bC]={on:(lC={},lC.CHANGE=gC,lC.FOCUS=gC,lC.CLEAR=mC,lC.BLUR=mC,lC.ESCAPE=mC,lC.NAVIGATE=bC,lC.SELECT_WITH_CLICK=mC,lC.SELECT_WITH_KEYBOARD=mC,lC.CLOSE_WITH_BUTTON=mC,lC.INTERACT=yC,lC)},uC[yC]={on:(sC={},sC.CLEAR=mC,sC.CHANGE=gC,sC.FOCUS=gC,sC.BLUR=mC,sC.ESCAPE=mC,sC.NAVIGATE=bC,sC.CLOSE_WITH_BUTTON=mC,sC.SELECT_WITH_CLICK=mC,sC)},uC)},DC=ie((function(e,t){var n=Jw({},e,{lastEventType:t.type});switch(t.type){case wC:case CC:return Jw({},n,{navigationValue:null,value:t.value});case kC:case NC:case OC:return Jw({},n,{navigationValue:ZC(n,t)});case xC:return Jw({},n,{value:"",navigationValue:null});case _C:case TC:return Jw({},n,{navigationValue:null});case EC:return Jw({},n,{value:t.isControlled?e.value:t.value,navigationValue:null});case SC:return Jw({},n,{value:t.isControlled?e.value:e.navigationValue,navigationValue:null});case MC:return Jw({},n,{navigationValue:null});case IC:return n;case RC:return Jw({},n,{navigationValue:ZC(n,t)});default:return n}}),"reducer");function AC(e){return[gC,bC,yC].includes(e)}function ZC(e,t){return t.value?t.value:t.persistSelection?e.value:null}ie(AC,"popoverIsExpanded"),ie(ZC,"findNavigationValue");var jC=Nf(),LC=Hf(0,{}),FC=Hf(0,{}),zC=(0,g.forwardRef)((function(e,t){var n,r=e.onSelect,i=e.openOnFocus,o=void 0!==i&&i,a=e.children,l=e.as,s=void 0===l?"div":l,u=e["aria-label"],c=e["aria-labelledby"],d=Yw(e,dC),f=Mf(),p=f[0],h=f[1],v=(0,g.useRef)(),m=(0,g.useRef)(),b=(0,g.useRef)(),y=(0,g.useRef)(!1),x=(0,g.useRef)(!1),w=$C(PC,DC,{value:"",navigationValue:null}),C=w[0],k=w[1],S=w[2];WC(k.lastEventType,v);var E=zd(d.id),T=E?qf("listbox",E):"listbox",_=(0,g.useRef)(!1),I=AC(C),R={ariaLabel:u,ariaLabelledby:c,autocompletePropRef:y,buttonRef:b,comboboxId:E,data:k,inputRef:v,isExpanded:I,listboxId:T,onSelect:r||rs,openOnFocus:o,persistSelectionRef:x,popoverRef:m,state:C,transition:S,isControlledRef:_};return(0,g.createElement)(Df,{context:jC,items:p,set:h},(0,g.createElement)(LC.Provider,{value:R},(0,g.createElement)(s,Jw({},d,{"data-reach-combobox":"","data-state":YC(C),"data-expanded":I||void 0,ref:t}),ts(a)?a({id:E,isExpanded:I,navigationValue:null!=(n=k.navigationValue)?n:null,state:C}):a)))})),BC=(0,g.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"input":n,i=e.selectOnClick,o=void 0!==i&&i,a=e.autocomplete,l=void 0===a||a,s=e.onClick,u=e.onChange,c=e.onKeyDown,d=e.onBlur,f=e.onFocus,p=e.value,h=Yw(e,fC),v=(0,g.useRef)(p).current,m=(0,g.useRef)(!1);Qw((function(){m.current=!0}),[p]);var b=(0,g.useContext)(LC),y=b.data,x=y.navigationValue,w=y.value,C=y.lastEventType,k=b.inputRef,S=b.state,E=b.transition,T=b.listboxId,_=b.autocompletePropRef,I=b.openOnFocus,R=b.isExpanded,N=b.ariaLabel,O=b.ariaLabelledby,M=b.persistSelectionRef,P=b.isControlledRef,D=ss(k,t),A=(0,g.useRef)(!1),Z=GC(),j=KC(),L="undefined"!==typeof p;(0,g.useEffect)((function(){P.current=L}),[L]),Gl((function(){_.current=l}),[l,_]);var F=(0,g.useCallback)((function(e){""===e.trim()?E(xC,{isControlled:L}):e!==v||m.current?E(wC,{value:e}):E(CC,{value:e})}),[v,E,L]);function z(e){var t=e.target.value;L||F(t)}function B(){o&&(A.current=!0),I&&C!==EC&&E(RC,{persistSelection:M.current})}function V(){var e;A.current&&(A.current=!1,null==(e=k.current)||e.select());I&&S===mC&&E(OC)}(0,g.useEffect)((function(){!L||p===w||""===p.trim()&&""===(w||"").trim()||F(p)}),[p,F,L,w]),ie(z,"handleChange"),ie(B,"handleFocus"),ie(V,"handleClick");var H=!l||S!==bC&&S!==yC?p||w:x||p||w;return(0,g.createElement)(r,Jw({"aria-activedescendant":x?String(QC(x)):void 0,"aria-autocomplete":"both","aria-controls":T,"aria-expanded":R,"aria-haspopup":"listbox","aria-label":N,"aria-labelledby":N?void 0:O,role:"combobox"},h,{"data-reach-combobox-input":"","data-state":YC(S),ref:D,onBlur:us(d,j),onChange:us(u,z),onClick:us(s,V),onFocus:us(f,B),onKeyDown:us(c,Z),value:H||""}))})),VC=(0,g.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.children,o=e.portal,a=void 0===o||o,l=e.onKeyDown,s=e.onBlur,u=e.position,c=void 0===u?Sf:u,d=Yw(e,pC),f=(0,g.useContext)(LC),p=f.popoverRef,h=f.inputRef,v=f.isExpanded,m=f.state,b=ss(p,t),y=GC(),x=KC(),w={"data-reach-combobox-popover":"","data-state":YC(m),onKeyDown:us(l,y),onBlur:us(s,x),hidden:!v,tabIndex:-1,children:i};return a?(0,g.createElement)(yf,Jw({as:r},d,{ref:b,"data-expanded":v||void 0,position:c,targetRef:h,unstable_skipInitialPortalRender:!0},w)):(0,g.createElement)(r,Jw({ref:b},d,w))})),HC=(0,g.forwardRef)((function(e,t){var n=e.persistSelection,r=void 0!==n&&n,i=e.as,o=void 0===i?"ul":i,a=Yw(e,hC),l=(0,g.useContext)(LC),s=l.persistSelectionRef,u=l.listboxId;return r&&(s.current=!0),(0,g.createElement)(o,Jw({role:"listbox"},a,{ref:t,"data-reach-combobox-list":"",id:u}))})),UC=(0,g.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"li":n,i=e.children,o=e.index,a=e.value,l=e.onClick,s=Yw(e,vC),u=(0,g.useContext)(LC),c=u.onSelect,d=u.data.navigationValue,f=u.transition,p=u.isControlledRef,h=Wf((0,g.useRef)(null),null),v=h[0],m=h[1],b=Of((0,g.useMemo)((function(){return{element:v,value:a}}),[a,v]),jC,o),y=ss(t,m),x=d===a,w=ie((function(){c&&c(a),f(EC,{value:a,isControlled:p.current})}),"handleClick");return(0,g.createElement)(FC.Provider,{value:{value:a,index:b}},(0,g.createElement)(r,Jw({"aria-selected":x,role:"option"},s,{"data-reach-combobox-option":"",ref:y,id:String(QC(a)),"data-highlighted":x?"":void 0,tabIndex:-1,onClick:us(l,w)}),i?ts(i)?i({value:a,index:b}):i:(0,g.createElement)(qC,null)))}));function qC(){var e=(0,g.useContext)(FC).value,t=(0,g.useContext)(LC).data.value,n=(0,g.useMemo)((function(){return cC.findAll({searchWords:JC(t||"").split(/\s+/),textToHighlight:e})}),[t,e]);return(0,g.createElement)(g.Fragment,null,n.length?n.map((function(t,n){var r=e.slice(t.start,t.end);return(0,g.createElement)("span",{key:n,"data-reach-combobox-option-text":"","data-user-value":!!t.highlight||void 0,"data-suggested-value":!t.highlight||void 0},r)})):e)}function WC(e,t){Gl((function(){var n;e!==kC&&e!==TC&&e!==EC&&e!==NC||(null==(n=t.current)||n.focus())}),[t,e])}function GC(){var e=(0,g.useContext)(LC),t=e.data.navigationValue,n=e.onSelect,r=e.state,i=e.transition,o=e.autocompletePropRef,a=e.persistSelectionRef,l=e.isControlledRef,s=Pf(jC);return ie((function(e){var u=s.findIndex((function(e){return e.value===t}));function c(){return u===s.length-1?o.current?null:f():s[(u+1)%s.length]}function d(){return 0===u?o.current?null:p():-1===u?p():s[(u-1+s.length)%s.length]}function f(){return s[0]}function p(){return s[s.length-1]}switch(ie(c,"getNextOption"),ie(d,"getPreviousOption"),ie(f,"getFirstOption"),ie(p,"getLastOption"),e.key){case"ArrowDown":if(e.preventDefault(),!s||!s.length)return;if(r===mC)i(kC,{persistSelection:a.current});else{var h=c();i(kC,{value:h?h.value:null})}break;case"ArrowUp":if(e.preventDefault(),!s||0===s.length)return;if(r===mC)i(kC);else{var v=d();i(kC,{value:v?v.value:null})}break;case"Home":case"PageUp":if(e.preventDefault(),!s||0===s.length)return;r===mC?i(kC):i(kC,{value:f().value});break;case"End":case"PageDown":if(e.preventDefault(),!s||0===s.length)return;r===mC?i(kC):i(kC,{value:p().value});break;case"Escape":r!==mC&&i(TC);break;case"Enter":r===bC&&null!==t&&(e.preventDefault(),n&&n(t),i(SC,{isControlled:l.current}))}}),"handleKeyDown")}function KC(){var e=(0,g.useContext)(LC),t=e.state,n=e.transition,r=e.popoverRef,i=e.inputRef,o=e.buttonRef;return ie((function(e){var a=r.current,l=i.current,s=o.current,u=e.relatedTarget;u!==l&&u!==s&&a&&(a.contains(u)?t!==yC&&n(IC):n(_C))}),"handleBlur")}function $C(e,t,n){var r=(0,g.useState)(e.initial),i=r[0],o=r[1],a=(0,g.useReducer)(t,n),l=a[0],s=a[1];return[i,l,ie((function(t,n){void 0===n&&(n={});var r=e.states[i],a=r&&r.on[t];if(a)return s(Jw({type:t,state:i,nextState:i},n)),void o(a)}),"transition")]}function QC(e){var t=0;if(0===e.length)return t;for(var n=0;n0&&p.types.length+p.fields.length>0?Xe("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,p.types.map((function(e,t){return Xe(UC,{index:p.within.length+t,value:e,children:Xe(lk,{type:e.type})},"type-".concat(t))})),p.fields.map((function(e,t){return et(UC,{index:p.within.length+p.types.length+t,value:e,children:[Xe(lk,{type:e.type}),".",Xe(sk,{field:e.field,argument:e.argument})]},"field-".concat(t))})),p.within.length+p.types.length+p.fields.length===0?Xe("div",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):null]})})]}):null}function ok(e){var t=Cw({nonNull:!0,caller:e||ok}).explorerNavStack,n=hw({nonNull:!0,caller:e||ok}).schema,r=t.at(-1);return(0,g.useCallback)((function(e){var t={within:[],types:[],fields:[]};if(!n)return t;var i=r.def,o=n.getTypeMap(),a=Object.keys(o);i&&(a=a.filter((function(e){return e!==i.name}))).unshift(i.name);var l,s=(0,p.Z)(a);try{var u=function(){var n=l.value;if(t.within.length+t.types.length+t.fields.length>=100)return"break";var r=o[n];if(i!==r&&ak(n,e)&&t.types.push({type:r}),!(0,I.lp)(r)&&!(0,I.oT)(r)&&!(0,I.hL)(r))return"continue";var a=r.getFields(),s=function(n){var o,l=a[n],s=void 0;if(!ak(n,e)){if(!("args"in l))return"continue";if(0===(s=l.args.filter((function(t){return ak(t.name,e)}))).length)return"continue"}(o=t[i===r?"within":"fields"]).push.apply(o,(0,f.Z)(s?s.map((function(e){return{type:r,field:l,argument:e}})):[{type:r,field:l}]))};for(var u in a)s(u)};for(s.s();!(l=s.n()).done;){var c=u();if("break"===c)break}}catch(TE){s.e(TE)}finally{s.f()}return t}),[r.def,n])}function ak(e,t){try{var n=t.replaceAll(/[^_0-9A-Za-z]/g,(function(e){return"\\"+e}));return-1!==e.search(new RegExp(n,"i"))}catch(r){return e.toLowerCase().includes(t.toLowerCase())}}function lk(e){return Xe("span",{className:"graphiql-doc-explorer-search-type",children:e.type.name})}function sk(e){return et(tt,{children:[Xe("span",{className:"graphiql-doc-explorer-search-field",children:e.field.name}),e.argument?et(tt,{children:["(",Xe("span",{className:"graphiql-doc-explorer-search-argument",children:e.argument.name}),":"," ",Ew(e.argument.type,(function(e){return Xe(lk,{type:e})})),")"]}):null]})}ie(ik,"Search"),rk(ik,"Search"),ie(ok,"useSearchResults"),rk(ok,"useSearchResults"),ie(ak,"isMatch"),rk(ak,"isMatch"),ie(lk,"Type"),rk(lk,"Type"),ie(sk,"Field$1"),rk(sk,"Field");var uk=Object.defineProperty,ck=ie((function(e,t){return uk(e,"name",{value:t,configurable:!0})}),"__name$l");function dk(e){var t=Cw({nonNull:!0}).push;return Xe("a",{className:"graphiql-doc-explorer-field-name",onClick:function(n){n.preventDefault(),t({name:e.field.name,def:e.field})},href:"#",children:e.field.name})}ie(dk,"FieldLink"),ck(dk,"FieldLink");var fk=Object.defineProperty,pk=ie((function(e,t){return fk(e,"name",{value:t,configurable:!0})}),"__name$k");function hk(e){return(0,I.Zs)(e.type)?et(tt,{children:[e.type.description?Xe(jy,{type:"description",children:e.type.description}):null,Xe(vk,{type:e.type}),Xe(mk,{type:e.type}),Xe(bk,{type:e.type}),Xe(xk,{type:e.type})]}):null}function vk(e){var t=e.type;return(0,I.lp)(t)&&t.getInterfaces().length>0?Xe(zw,{title:"Implements",children:t.getInterfaces().map((function(e){return Xe("div",{children:Xe(Iw,{type:e})},e.name)}))}):null}function mk(e){var t=e.type,n=(0,g.useState)(!1),r=(0,s.Z)(n,2),i=r[0],o=r[1];if(!(0,I.lp)(t)&&!(0,I.oT)(t)&&!(0,I.hL)(t))return null;var a,l=t.getFields(),u=[],c=[],d=(0,p.Z)(Object.keys(l).map((function(e){return l[e]})));try{for(d.s();!(a=d.n()).done;){var f=a.value;f.deprecationReason?c.push(f):u.push(f)}}catch(TE){d.e(TE)}finally{d.f()}return et(tt,{children:[u.length>0?Xe(zw,{title:"Fields",children:u.map((function(e){return Xe(gk,{field:e},e.name)}))}):null,c.length>0?i||0===u.length?Xe(zw,{title:"Deprecated Fields",children:c.map((function(e){return Xe(gk,{field:e},e.name)}))}):Xe(Ul,{type:"button",onClick:function(){o(!0)},children:"Show Deprecated Fields"}):null]})}function gk(e){var t=e.field,n="args"in t?t.args.filter((function(e){return!e.deprecationReason})):[];return et("div",{className:"graphiql-doc-explorer-item",children:[et("div",{children:[Xe(dk,{field:t}),n.length>0?et(tt,{children:["(",Xe("span",{children:n.map((function(e){return 1===n.length?Xe(Ow,{arg:e,inline:!0},e.name):Xe("div",{className:"graphiql-doc-explorer-argument-multiple",children:Xe(Ow,{arg:e,inline:!0})},e.name)}))}),")"]}):null,": ",Xe(Iw,{type:t.type}),Xe(uw,{field:t})]}),t.description?Xe(jy,{type:"description",onlyShowFirstChild:!0,children:t.description}):null,Xe(Dw,{children:t.deprecationReason})]})}function bk(e){var t=e.type,n=(0,g.useState)(!1),r=(0,s.Z)(n,2),i=r[0],o=r[1];if(!(0,I.EM)(t))return null;var a,l=[],u=[],c=(0,p.Z)(t.getValues());try{for(c.s();!(a=c.n()).done;){var d=a.value;d.deprecationReason?u.push(d):l.push(d)}}catch(TE){c.e(TE)}finally{c.f()}return et(tt,{children:[l.length>0?Xe(zw,{title:"Enum Values",children:l.map((function(e){return Xe(yk,{value:e},e.name)}))}):null,u.length>0?i||0===l.length?Xe(zw,{title:"Deprecated Enum Values",children:u.map((function(e){return Xe(yk,{value:e},e.name)}))}):Xe(Ul,{type:"button",onClick:function(){o(!0)},children:"Show Deprecated Values"}):null]})}function yk(e){var t=e.value;return et("div",{className:"graphiql-doc-explorer-item",children:[Xe("div",{className:"graphiql-doc-explorer-enum-value",children:t.name}),t.description?Xe(jy,{type:"description",children:t.description}):null,t.deprecationReason?Xe(jy,{type:"deprecation",children:t.deprecationReason}):null]})}function xk(e){var t=e.type,n=hw({nonNull:!0}).schema;return n&&(0,I.m0)(t)?Xe(zw,{title:(0,I.oT)(t)?"Implementations":"Possible Types",children:n.getPossibleTypes(t).map((function(e){return Xe("div",{children:Xe(Iw,{type:e})},e.name)}))}):null}ie(hk,"TypeDocumentation"),pk(hk,"TypeDocumentation"),ie(vk,"ImplementsInterfaces"),pk(vk,"ImplementsInterfaces"),ie(mk,"Fields"),pk(mk,"Fields"),ie(gk,"Field"),pk(gk,"Field"),ie(bk,"EnumValues"),pk(bk,"EnumValues"),ie(yk,"EnumValue"),pk(yk,"EnumValue"),ie(xk,"PossibleTypes"),pk(xk,"PossibleTypes");var wk=Object.defineProperty,Ck=ie((function(e,t){return wk(e,"name",{value:t,configurable:!0})}),"__name$j");function kk(){var e,t=hw({nonNull:!0,caller:kk}),n=t.fetchError,r=t.isFetching,i=t.schema,o=t.validationErrors,a=Cw({nonNull:!0,caller:kk}),l=a.explorerNavStack,s=a.pop,u=l.at(-1),c=null;return n?c=Xe("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}):o.length>0?c=et("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",o[0].message]}):r?c=Xe(Ly,{}):i?1===l.length?c=Xe($w,{schema:i}):(0,I.P9)(u.def)?c=Xe(hk,{type:u.def}):u.def&&(c=Xe(Uw,{field:u.def})):c=Xe("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),l.length>1&&(e=l.at(-2).name),et("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[et("div",{className:"graphiql-doc-explorer-header",children:[et("div",{className:"graphiql-doc-explorer-header-content",children:[e&&et("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:function(e){e.preventDefault(),s()},"aria-label":"Go back to ".concat(e),children:[Xe(hl,{}),e]}),Xe("div",{className:"graphiql-doc-explorer-title",children:u.name})]}),Xe("div",{className:"graphiql-doc-explorer-search",children:Xe(ik,{},u.name)})]}),Xe("div",{className:"graphiql-doc-explorer-content",children:c})]})}ie(kk,"DocExplorer"),Ck(kk,"DocExplorer");var Sk=Object.defineProperty,Ek=ie((function(e,t){return Sk(e,"name",{value:t,configurable:!0})}),"__name$i"),Tk={title:"Documentation Explorer",icon:Ek(ie((function(){var e=Nk();return(null==e?void 0:e.visiblePlugin)===Tk?Xe(Cl,{}):Xe(kl,{})}),"Icon"),"Icon"),content:kk},_k={title:"History",icon:Tl,content:jx},Ik=je("PluginContext");function Rk(e){var t=st(),n=Cw(),r=Px(),i=Boolean(n),o=Boolean(r),a=(0,g.useMemo)((function(){var t=[],n={};i&&(t.push(Tk),n[Tk.title]=!0),o&&(t.push(_k),n[_k.title]=!0);var r,a=(0,p.Z)(e.plugins||[]);try{for(a.s();!(r=a.n()).done;){var l=r.value;if("string"!==typeof l.title||!l.title)throw new Error("All GraphiQL plugins must have a unique title");if(n[l.title])throw new Error("All GraphiQL plugins must have a unique title, found two plugins with the title '".concat(l.title,"'"));t.push(l),n[l.title]=!0}}catch(TE){a.e(TE)}finally{a.f()}return t}),[i,o,e.plugins]),l=(0,g.useState)((function(){var n=null==t?void 0:t.get(Ok),r=a.find((function(e){return e.title===n}));return r||(n&&(null==t||t.set(Ok,"")),e.visiblePlugin&&a.find((function(t){return("string"===typeof e.visiblePlugin?t.title:t)===e.visiblePlugin}))||null)})),u=(0,s.Z)(l,2),c=u[0],d=u[1],f=e.onTogglePluginVisibility,h=e.children,v=(0,g.useCallback)((function(e){var t=e&&a.find((function(t){return("string"===typeof e?t.title:t)===e}))||null;d((function(e){return t===e?e:(null==f||f(t),t)}))}),[f,a]);(0,g.useEffect)((function(){e.visiblePlugin&&v(e.visiblePlugin)}),[a,e.visiblePlugin,v]);var m=(0,g.useMemo)((function(){return{plugins:a,setVisiblePlugin:v,visiblePlugin:c}}),[a,v,c]);return Xe(Ik.Provider,{value:m,children:h})}ie(Rk,"PluginContextProvider"),Ek(Rk,"PluginContextProvider");var Nk=Le(Ik),Ok="visiblePlugin",Mk=Object.defineProperty,Pk=ie((function(e,t){return Mk(e,"name",{value:t,configurable:!0})}),"__name$h");function Dk(e,t,n,r,i,o){function a(e){if(n&&r&&i&&e.currentTarget instanceof HTMLElement){var t=e.currentTarget.innerText,a=n.getType(t);a&&(i.setVisiblePlugin(Tk),r.push({name:a.name,def:a}),null==o||o(a))}}Jx([],{useCommonAddons:!1}).then((function(e){var n,r,i,o,l,s,u,c,d;e.on(t,"select",(function(e,t){if(!n){var f=t.parentNode;(n=document.createElement("div")).className="CodeMirror-hint-information",f.appendChild(n);var p=document.createElement("header");p.className="CodeMirror-hint-information-header",n.appendChild(p),(r=document.createElement("span")).className="CodeMirror-hint-information-field-name",p.appendChild(r),(i=document.createElement("span")).className="CodeMirror-hint-information-type-name-pill",p.appendChild(i),o=document.createElement("span"),i.appendChild(o),(l=document.createElement("a")).className="CodeMirror-hint-information-type-name",l.href="javascript:void 0",l.addEventListener("click",a),i.appendChild(l),s=document.createElement("span"),i.appendChild(s),(u=document.createElement("div")).className="CodeMirror-hint-information-description",n.appendChild(u),(c=document.createElement("div")).className="CodeMirror-hint-information-deprecation",n.appendChild(c);var h=document.createElement("span");h.className="CodeMirror-hint-information-deprecation-label",h.innerText="Deprecated",c.appendChild(h),(d=document.createElement("div")).className="CodeMirror-hint-information-deprecation-reason",c.appendChild(d);var v,m=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,""),10)||0,g=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,""),10)||0,b=Pk((function(){n&&(n.style.paddingTop=f.scrollTop+m+"px",n.style.maxHeight=f.scrollTop+g+"px")}),"handleScroll");f.addEventListener("scroll",b),f.addEventListener("DOMNodeRemoved",v=Pk((function(e){e.target===f&&(f.removeEventListener("scroll",b),f.removeEventListener("DOMNodeRemoved",v),n&&n.removeEventListener("click",a),n=null,r=null,i=null,o=null,l=null,s=null,u=null,c=null,d=null,v=null)}),"onRemoveFn"))}if(r&&(r.innerText=e.text),i&&o&&l&&s)if(e.type){i.style.display="inline";var y=Pk((function(e){(0,I.zM)(e)?(s.innerText="!"+s.innerText,y(e.ofType)):(0,I.HG)(e)?(o.innerText+="[",s.innerText="]"+s.innerText,y(e.ofType)):l.innerText=e.name}),"renderType");o.innerText="",s.innerText="",y(e.type)}else o.innerText="",l.innerText="",s.innerText="",i.style.display="none";u&&(e.description?(u.style.display="block",u.innerHTML=Zy.render(e.description)):(u.style.display="none",u.innerHTML="")),c&&d&&(e.deprecationReason?(c.style.display="block",d.innerHTML=Zy.render(e.deprecationReason)):(c.style.display="none",d.innerHTML=""))}))})),ie(a,"onClickHintInformation"),Pk(a,"onClickHintInformation")}ie(Dk,"onHasCompletion"),Pk(Dk,"onHasCompletion");var Ak=Object.defineProperty,Zk=ie((function(e,t){return Ak(e,"name",{value:t,configurable:!0})}),"__name$g");function jk(e,t){(0,g.useEffect)((function(){e&&"string"===typeof t&&t!==e.getValue()&&e.setValue(t)}),[e,t])}function Lk(e,t,n){(0,g.useEffect)((function(){e&&e.setOption(t,n)}),[e,t,n])}function Fk(e,t,n,r,i){var o=LS({nonNull:!0,caller:i}).updateActiveTabValues,a=st();(0,g.useEffect)((function(){if(e){var i=tk(500,(function(e){a&&null!==n&&a.set(n,e)})),l=tk(100,(function(e){o((0,u.Z)({},r,e))})),s=Zk((function(e,n){if(n){var r=e.getValue();i(r),l(r),null==t||t(r)}}),"handleChange");return e.on("change",s),function(){return e.off("change",s)}}}),[t,e,a,n,r,o])}function zk(e,t,n){var r=hw({nonNull:!0,caller:n}).schema,i=Cw(),o=Nk();(0,g.useEffect)((function(){if(e){var n=Zk((function(e,n){Dk(0,n,r,i,o,(function(e){null==t||t({kind:"Type",type:e,schema:r||void 0})}))}),"handleCompletion");return e.on("hasCompletion",n),function(){return e.off("hasCompletion",n)}}}),[t,e,i,o,r])}function Bk(e,t,n){(0,g.useEffect)((function(){if(e){var r,i=(0,p.Z)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;e.removeKeyMap(o)}}catch(TE){i.e(TE)}finally{i.f()}if(n){var a,l={},s=(0,p.Z)(t);try{for(s.s();!(a=s.n()).done;){l[a.value]=function(){return n()}}}catch(TE){s.e(TE)}finally{s.f()}e.addKeyMap(l)}}}),[e,t,n])}function Vk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.caller,n=e.onCopyQuery,r=LS({nonNull:!0,caller:t||Vk}),i=r.queryEditor;return(0,g.useCallback)((function(){if(i){var e=i.getValue();ow(e),null==n||n(e)}}),[i,n])}function Hk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.caller,n=LS({nonNull:!0,caller:t||Hk}),r=n.queryEditor,i=hw({nonNull:!0,caller:Hk}),o=i.schema;return(0,g.useCallback)((function(){var e=null==r?void 0:r.documentAST,t=null==r?void 0:r.getValue();e&&t&&r.setValue((0,V.print)(Ie(e,o)))}),[r,o])}function Uk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.caller,n=LS({nonNull:!0,caller:t||Uk}),r=n.queryEditor,i=n.headerEditor,o=n.variableEditor;return(0,g.useCallback)((function(){if(o){var e=o.getValue();try{var t=JSON.stringify(JSON.parse(e),null,2);t!==e&&o.setValue(t)}catch(u){}}if(i){var n=i.getValue();try{var a=JSON.stringify(JSON.parse(n),null,2);a!==n&&i.setValue(a)}catch(c){}}if(r){var l=r.getValue(),s=(0,V.print)((0,k.Qc)(l));s!==l&&r.setValue(s)}}),[r,o,i])}function qk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getDefaultFieldNames,n=e.caller,r=hw({nonNull:!0,caller:n||qk}),i=r.schema,o=LS({nonNull:!0,caller:n||qk}),a=o.queryEditor;return(0,g.useCallback)((function(){if(a){var e=a.getValue(),n=xe(i,e,t),r=n.insertions,o=n.result;return r&&r.length>0&&a.operation((function(){var e=a.getCursor(),t=a.indexFromPos(e);a.setValue(o||"");var n=0,i=r.map((function(e){var t=e.index,r=e.string;return a.markText(a.posFromIndex(t+n),a.posFromIndex(t+(n+=r.length)),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})}));setTimeout((function(){return i.forEach((function(e){return e.clear()}))}),7e3);var l=t;r.forEach((function(e){var n=e.index,r=e.string;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.editorTheme,r=void 0===t?Kx:t,i=e.keyMap,o=void 0===i?$x:i,a=e.onEdit,l=e.readOnly,s=void 0!==l&&l,u=arguments.length>1?arguments[1]:void 0,c=LS({nonNull:!0,caller:u||Kk}),d=c.initialHeaders,f=c.headerEditor,p=c.setHeaderEditor,h=c.shouldPersistHeaders,v=Ux(),m=Hk({caller:u||Kk}),b=Uk({caller:u||Kk}),y=(0,g.useRef)(null);return(0,g.useEffect)((function(){var e=!0;return Jx([Promise.all([n.e(461),n.e(243)]).then(n.bind(n,1243)).then((function(e){return e.j}))]).then((function(t){if(e){var n=y.current;if(n){var i=t(n,{value:d,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:r,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!s&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Yx});i.addKeyMap({"Cmd-Space":function(){i.showHint({completeSingle:!1,container:n})},"Ctrl-Space":function(){i.showHint({completeSingle:!1,container:n})},"Alt-Space":function(){i.showHint({completeSingle:!1,container:n})},"Shift-Space":function(){i.showHint({completeSingle:!1,container:n})}}),i.on("keyup",(function(e,t){var n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),p(i)}}})),function(){e=!1}}),[r,d,s,p]),Lk(f,"keyMap",o),Fk(f,a,h?$k:null,"headers",Kk),Bk(f,["Cmd-Enter","Ctrl-Enter"],null==v?void 0:v.run),Bk(f,["Shift-Ctrl-P"],b),Bk(f,["Shift-Ctrl-M"],m),y}ie(Kk,"useHeaderEditor"),Gk(Kk,"useHeaderEditor");var $k="headers",Qk=Object.defineProperty,Yk=ie((function(e,t){return Qk(e,"name",{value:t,configurable:!0})}),"__name$e"),Jk=Array.from({length:11},(function(e,t){return String.fromCharCode(8192+t)})).concat(["\u2028","\u2029","\u202f","\xa0"]),Xk=new RegExp("["+Jk.join("")+"]","g");function eS(e){return e.replace(Xk," ")}ie(eS,"normalizeWhitespace"),Yk(eS,"normalizeWhitespace");var tS=Object.defineProperty,nS=ie((function(e,t){return tS(e,"name",{value:t,configurable:!0})}),"__name$d");function rS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.editorTheme,r=void 0===t?Kx:t,i=e.keyMap,o=void 0===i?$x:i,a=e.onClickReference,l=e.onCopyQuery,s=e.onEdit,u=e.readOnly,c=void 0!==u&&u,d=arguments.length>1?arguments[1]:void 0,f=hw({nonNull:!0,caller:d||rS}),h=f.schema,v=LS({nonNull:!0,caller:d||rS}),m=v.externalFragments,b=v.initialQuery,y=v.queryEditor,x=v.setOperationName,w=v.setQueryEditor,C=v.validationRules,k=v.variableEditor,S=v.updateActiveTabValues,E=Ux(),T=st(),_=Cw(),I=Nk(),R=Vk({caller:d||rS,onCopyQuery:l}),N=Hk({caller:d||rS}),O=Uk({caller:d||rS}),M=(0,g.useRef)(null),P=(0,g.useRef)(),D=(0,g.useRef)((function(){}));(0,g.useEffect)((function(){D.current=function(e){if(_&&I){switch(I.setVisiblePlugin(Tk),e.kind){case"Type":_.push({name:e.type.name,def:e.type});break;case"Field":_.push({name:e.field.name,def:e.field});break;case"Argument":e.field&&_.push({name:e.field.name,def:e.field});break;case"EnumValue":e.type&&_.push({name:e.type.name,def:e.type})}null==a||a(e)}}}),[_,a,I]),(0,g.useEffect)((function(){var e=!0;return Jx([Promise.all([n.e(461),n.e(628)]).then(n.bind(n,8628)).then((function(e){return e.c})),Promise.all([n.e(461),n.e(554)]).then(n.bind(n,2554)).then((function(e){return e.s})),Promise.all([n.e(461),n.e(966)]).then(n.bind(n,5966)),Promise.all([n.e(461),n.e(936)]).then(n.bind(n,6936)),Promise.all([n.e(461),n.e(142)]).then(n.bind(n,8142)),Promise.all([n.e(461),n.e(950)]).then(n.bind(n,950)),Promise.all([n.e(461),n.e(299)]).then(n.bind(n,3299))]).then((function(t){if(e){P.current=t;var n=M.current;if(n){var i=t(n,{value:b,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:r,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!c&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0},info:{schema:void 0,renderDescription:function(e){return Zy.render(e)},onClick:function(e){D.current(e)}},jump:{schema:void 0,onClick:function(e){D.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:re(ne({},Yx),{"Cmd-S":function(){},"Ctrl-S":function(){}})});i.addKeyMap({"Cmd-Space":function(){i.showHint({completeSingle:!0,container:n})},"Ctrl-Space":function(){i.showHint({completeSingle:!0,container:n})},"Alt-Space":function(){i.showHint({completeSingle:!0,container:n})},"Shift-Space":function(){i.showHint({completeSingle:!0,container:n})},"Shift-Alt-Space":function(){i.showHint({completeSingle:!0,container:n})}}),i.on("keyup",(function(e,t){lS.test(t.key)&&e.execCommand("autocomplete")}));var o=!1;i.on("startCompletion",(function(){o=!0})),i.on("endCompletion",(function(){o=!1})),i.on("keydown",(function(e,t){"Escape"===t.key&&o&&t.stopPropagation()})),i.on("beforeChange",(function(e,t){var n;if("paste"===t.origin){var r=t.text.map(eS);null==(n=t.update)||n.call(t,t.from,t.to,r)}})),i.documentAST=null,i.operationName=null,i.operations=null,i.variableToType=null,w(i)}}})),function(){e=!1}}),[r,b,c,w]),Lk(y,"keyMap",o),(0,g.useEffect)((function(){if(y){ie(t,"getAndUpdateOperationFacts"),nS(t,"getAndUpdateOperationFacts");var e=tk(100,(function(e){var n,r=e.getValue();null==T||T.set(sS,r);var i=e.operationName,o=t(e);void 0!==(null==o?void 0:o.operationName)&&(null==T||T.set(uS,o.operationName)),null==s||s(r,null==o?void 0:o.documentAST),(null==o?void 0:o.operationName)&&i!==o.operationName&&x(o.operationName),S({query:r,operationName:null!=(n=null==o?void 0:o.operationName)?n:null})}));return t(y),y.on("change",e),function(){return y.off("change",e)}}function t(e){var t,n,r,i,o,a=va(h,e.getValue()),l=Re(null!=(t=e.operations)?t:void 0,null!=(n=e.operationName)?n:void 0,null==a?void 0:a.operations);return e.documentAST=null!=(r=null==a?void 0:a.documentAST)?r:null,e.operationName=null!=l?l:null,e.operations=null!=(i=null==a?void 0:a.operations)?i:null,k&&(k.state.lint.linterOptions.variableToType=null==a?void 0:a.variableToType,k.options.lint.variableToType=null==a?void 0:a.variableToType,k.options.hintOptions.variableToType=null==a?void 0:a.variableToType,null==(o=P.current)||o.signal(k,"change",k)),a?re(ne({},a),{operationName:l}):null}}),[s,y,h,x,T,k,S]),iS(y,null!=h?h:null,P),oS(y,null!=C?C:null,P),aS(y,m,P),zk(y,a||null,rS);var A=null==E?void 0:E.run,Z=(0,g.useCallback)((function(){var e;if(A&&y&&y.operations&&y.hasFocus()){var t,n,r=y.indexFromPos(y.getCursor()),i=(0,p.Z)(y.operations);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.loc&&o.loc.start<=r&&o.loc.end>=r&&(t=null==(e=o.name)?void 0:e.value)}}catch(TE){i.e(TE)}finally{i.f()}t&&t!==y.operationName&&x(t),A()}else null==A||A()}),[y,A,x]);return Bk(y,["Cmd-Enter","Ctrl-Enter"],Z),Bk(y,["Shift-Ctrl-C"],R),Bk(y,["Shift-Ctrl-P","Shift-Ctrl-F"],O),Bk(y,["Shift-Ctrl-M"],N),M}function iS(e,t,n){(0,g.useEffect)((function(){if(e){var r=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,r&&n.current&&n.current.signal(e,"change",e)}}),[e,t,n])}function oS(e,t,n){(0,g.useEffect)((function(){if(e){var r=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,r&&n.current&&n.current.signal(e,"change",e)}}),[e,t,n])}function aS(e,t,n){var r=(0,g.useMemo)((function(){return(0,f.Z)(t.values())}),[t]);(0,g.useEffect)((function(){if(e){var t=e.options.lint.externalFragments!==r;e.state.lint.linterOptions.externalFragments=r,e.options.lint.externalFragments=r,e.options.hintOptions.externalFragments=r,t&&n.current&&n.current.signal(e,"change",e)}}),[e,r,n])}ie(rS,"useQueryEditor"),nS(rS,"useQueryEditor"),ie(iS,"useSynchronizeSchema"),nS(iS,"useSynchronizeSchema"),ie(oS,"useSynchronizeValidationRules"),nS(oS,"useSynchronizeValidationRules"),ie(aS,"useSynchronizeExternalFragments"),nS(aS,"useSynchronizeExternalFragments");var lS=/^[a-zA-Z0-9_@(]$/,sS="query",uS="operationName",cS=Object.defineProperty,dS=ie((function(e,t){return cS(e,"name",{value:t,configurable:!0})}),"__name$c");function fS(e){var t=e.defaultQuery,n=e.defaultHeaders,r=e.headers,i=e.defaultTabs,o=e.query,a=e.variables,l=e.storage,s=null==l?void 0:l.get(RS);try{if(!s)throw new Error("Storage for tabs is empty");var u=JSON.parse(s);if(pS(u)){for(var c=ES({query:o,variables:a,headers:r}),d=-1,f=0;f=0)u.activeTabIndex=d;else{var h=o?TS(o):null;u.tabs.push({id:SS(),hash:c,title:h||IS,query:o,variables:a,headers:r,operationName:h,response:null}),u.activeTabIndex=u.tabs.length-1}return u}throw new Error("Storage for tabs is invalid")}catch(v){return{activeTabIndex:0,tabs:(i||[{query:null!=o?o:t,variables:a,headers:null!=r?r:n}]).map(CS)}}}function pS(e){return e&&"object"===typeof e&&!Array.isArray(e)&&vS(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(hS)}function hS(e){return e&&"object"===typeof e&&!Array.isArray(e)&&mS(e,"id")&&mS(e,"title")&&gS(e,"query")&&gS(e,"variables")&&gS(e,"headers")&&gS(e,"operationName")&&gS(e,"response")}function vS(e,t){return t in e&&"number"===typeof e[t]}function mS(e,t){return t in e&&"string"===typeof e[t]}function gS(e,t){return t in e&&("string"===typeof e[t]||null===e[t])}function bS(e){var t=e.queryEditor,n=e.variableEditor,r=e.headerEditor,i=e.responseEditor;return(0,g.useCallback)((function(e){var o,a,l,s,u,c=null!=(o=null==t?void 0:t.getValue())?o:null,d=null!=(a=null==n?void 0:n.getValue())?a:null,f=null!=(l=null==r?void 0:r.getValue())?l:null,p=null!=(s=null==t?void 0:t.operationName)?s:null;return kS(e,{query:c,variables:d,headers:f,response:null!=(u=null==i?void 0:i.getValue())?u:null,operationName:p})}),[t,n,r,i])}function yS(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return JSON.stringify(e,(function(e,n){return"hash"===e||"response"===e||!t&&"headers"===e?null:n}))}function xS(e){var t=e.storage,n=e.shouldPersistHeaders,r=(0,g.useMemo)((function(){return tk(500,(function(e){null==t||t.set(RS,e)}))}),[t]);return(0,g.useCallback)((function(e){r(yS(e,n))}),[n,r])}function wS(e){var t=e.queryEditor,n=e.variableEditor,r=e.headerEditor,i=e.responseEditor;return(0,g.useCallback)((function(e){var o=e.query,a=e.variables,l=e.headers,s=e.response;null==t||t.setValue(null!=o?o:""),null==n||n.setValue(null!=a?a:""),null==r||r.setValue(null!=l?l:""),null==i||i.setValue(null!=s?s:"")}),[r,t,i,n])}function CS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=void 0===t?null:t,r=e.variables,i=void 0===r?null:r,o=e.headers,a=void 0===o?null:o;return{id:SS(),hash:ES({query:n,variables:i,headers:a}),title:n&&TS(n)||IS,query:n,variables:i,headers:a,operationName:null,response:null}}function kS(e,t){return re(ne({},e),{tabs:e.tabs.map((function(n,r){if(r!==e.activeTabIndex)return n;var i=ne(ne({},n),t);return re(ne({},i),{hash:ES(i),title:i.operationName||(i.query?TS(i.query):void 0)||IS})}))})}function SS(){var e=dS((function(){return Math.floor(65536*(1+Math.random())).toString(16).slice(1)}),"s4");return"".concat(e()).concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e()).concat(e()).concat(e())}function ES(e){var t,n,r;return[null!=(t=e.query)?t:"",null!=(n=e.variables)?n:"",null!=(r=e.headers)?r:""].join("|")}function TS(e){var t,n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return null!=(t=null==n?void 0:n[2])?t:null}function _S(e){var t=null==e?void 0:e.get(RS);if(t){var n=JSON.parse(t);null==e||e.set(RS,JSON.stringify(n,(function(e,t){return"headers"===e?null:t})))}}ie(fS,"getDefaultTabState"),dS(fS,"getDefaultTabState"),ie(pS,"isTabsState"),dS(pS,"isTabsState"),ie(hS,"isTabState"),dS(hS,"isTabState"),ie(vS,"hasNumberKey"),dS(vS,"hasNumberKey"),ie(mS,"hasStringKey"),dS(mS,"hasStringKey"),ie(gS,"hasStringOrNullKey"),dS(gS,"hasStringOrNullKey"),ie(bS,"useSynchronizeActiveTabValues"),dS(bS,"useSynchronizeActiveTabValues"),ie(yS,"serializeTabState"),dS(yS,"serializeTabState"),ie(xS,"useStoreTabs"),dS(xS,"useStoreTabs"),ie(wS,"useSetEditorValues"),dS(wS,"useSetEditorValues"),ie(CS,"createTab"),dS(CS,"createTab"),ie(kS,"setPropertiesInActiveTab"),dS(kS,"setPropertiesInActiveTab"),ie(SS,"guid"),dS(SS,"guid"),ie(ES,"hashFromTabContents"),dS(ES,"hashFromTabContents"),ie(TS,"fuzzyExtractOperationName"),dS(TS,"fuzzyExtractOperationName"),ie(_S,"clearHeadersFromTabs"),dS(_S,"clearHeadersFromTabs");var IS="",RS="tabState",NS=Object.defineProperty,OS=ie((function(e,t){return NS(e,"name",{value:t,configurable:!0})}),"__name$b");function MS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.editorTheme,r=void 0===t?Kx:t,i=e.keyMap,o=void 0===i?$x:i,a=e.onClickReference,l=e.onEdit,s=e.readOnly,u=void 0!==s&&s,c=arguments.length>1?arguments[1]:void 0,d=LS({nonNull:!0,caller:c||MS}),f=d.initialVariables,p=d.variableEditor,h=d.setVariableEditor,v=Ux(),m=Hk({caller:c||MS}),b=Uk({caller:c||MS}),y=(0,g.useRef)(null),x=(0,g.useRef)();return(0,g.useEffect)((function(){var e=!0;return Jx([Promise.all([n.e(461),n.e(904)]).then(n.bind(n,1904)),Promise.all([n.e(461),n.e(15)]).then(n.bind(n,1015)),Promise.all([n.e(461),n.e(401)]).then(n.bind(n,2401))]).then((function(t){if(e){x.current=t;var n=y.current;if(n){var i=t(n,{value:f,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:r,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!u&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Yx});i.addKeyMap({"Cmd-Space":function(){i.showHint({completeSingle:!1,container:n})},"Ctrl-Space":function(){i.showHint({completeSingle:!1,container:n})},"Alt-Space":function(){i.showHint({completeSingle:!1,container:n})},"Shift-Space":function(){i.showHint({completeSingle:!1,container:n})}}),i.on("keyup",(function(e,t){var n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),h(i)}}})),function(){e=!1}}),[r,f,u,h]),Lk(p,"keyMap",o),Fk(p,l,PS,"variables",MS),zk(p,a||null,MS),Bk(p,["Cmd-Enter","Ctrl-Enter"],null==v?void 0:v.run),Bk(p,["Shift-Ctrl-P"],b),Bk(p,["Shift-Ctrl-M"],m),y}ie(MS,"useVariableEditor"),OS(MS,"useVariableEditor");var PS="variables",DS=Object.defineProperty,AS=ie((function(e,t){return DS(e,"name",{value:t,configurable:!0})}),"__name$a"),ZS=je("EditorContext");function jS(e){var t=st(),n=(0,g.useState)(null),r=(0,s.Z)(n,2),i=r[0],o=r[1],a=(0,g.useState)(null),l=(0,s.Z)(a,2),u=l[0],c=l[1],d=(0,g.useState)(null),h=(0,s.Z)(d,2),v=h[0],m=h[1],b=(0,g.useState)(null),y=(0,s.Z)(b,2),x=y[0],w=y[1],C=(0,g.useState)((function(){var n=null!==(null==t?void 0:t.get(FS));return!1!==e.shouldPersistHeaders&&n?"true"===(null==t?void 0:t.get(FS)):Boolean(e.shouldPersistHeaders)})),S=(0,s.Z)(C,2),E=S[0],T=S[1];jk(i,e.headers),jk(u,e.query),jk(v,e.response),jk(x,e.variables);var _=xS({storage:t,shouldPersistHeaders:E}),I=(0,g.useState)((function(){var n,r,i,o,a,l,s,u,c,d=null!=(r=null!=(n=e.query)?n:null==t?void 0:t.get(sS))?r:null,f=null!=(o=null!=(i=e.variables)?i:null==t?void 0:t.get(PS))?o:null,p=null!=(l=null!=(a=e.headers)?a:null==t?void 0:t.get($k))?l:null,h=null!=(s=e.response)?s:"",v=fS({query:d,variables:f,headers:p,defaultTabs:e.defaultTabs||e.initialTabs,defaultQuery:e.defaultQuery||zS,defaultHeaders:e.defaultHeaders,storage:t});return _(v),{query:null!=(u=null!=d?d:0===v.activeTabIndex?v.tabs[0].query:null)?u:"",variables:null!=f?f:"",headers:null!=(c=null!=p?p:e.defaultHeaders)?c:"",response:h,tabState:v}})),R=(0,s.Z)(I,1)[0],N=(0,g.useState)(R.tabState),O=(0,s.Z)(N,2),M=O[0],P=O[1],D=(0,g.useCallback)((function(e){var n;if(e){null==t||t.set($k,null!=(n=null==i?void 0:i.getValue())?n:"");var r=yS(M,!0);null==t||t.set(RS,r)}else null==t||t.set($k,""),_S(t);T(e),null==t||t.set(FS,e.toString())}),[t,M,i]),A=(0,g.useRef)(void 0);(0,g.useEffect)((function(){var t=Boolean(e.shouldPersistHeaders);A.current!==t&&(D(t),A.current=t)}),[e.shouldPersistHeaders,D]);var Z=bS({queryEditor:u,variableEditor:x,headerEditor:i,responseEditor:v}),j=wS({queryEditor:u,variableEditor:x,headerEditor:i,responseEditor:v}),L=e.onTabChange,F=e.defaultHeaders,z=e.children,V=(0,g.useCallback)((function(){P((function(e){var t=Z(e),n={tabs:[].concat((0,f.Z)(t.tabs),[CS({headers:F})]),activeTabIndex:t.tabs.length};return _(n),j(n.tabs[n.activeTabIndex]),null==L||L(n),n}))}),[F,L,j,_,Z]),H=(0,g.useCallback)((function(e){P((function(t){var n=re(ne({},Z(t)),{activeTabIndex:e});return _(n),j(n.tabs[n.activeTabIndex]),null==L||L(n),n}))}),[L,j,_,Z]),U=(0,g.useCallback)((function(e){P((function(t){var n={tabs:t.tabs.filter((function(t,n){return e!==n})),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return _(n),j(n.tabs[n.activeTabIndex]),null==L||L(n),n}))}),[L,j,_]),q=(0,g.useCallback)((function(e){P((function(t){var n=kS(t,e);return _(n),null==L||L(n),n}))}),[L,_]),W=e.onEditOperationName,G=(0,g.useCallback)((function(e){u&&(u.operationName=e,q({operationName:e}),null==W||W(e))}),[W,u,q]),K=(0,g.useMemo)((function(){var t=new Map;if(Array.isArray(e.externalFragments)){var n,r=(0,p.Z)(e.externalFragments);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.set(i.name.value,i)}}catch(TE){r.e(TE)}finally{r.f()}}else if("string"===typeof e.externalFragments)(0,B.Vn)((0,k.Qc)(e.externalFragments,{}),{FragmentDefinition:function(e){t.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return t}),[e.externalFragments]),$=(0,g.useMemo)((function(){return e.validationRules||[]}),[e.validationRules]),Q=(0,g.useMemo)((function(){return re(ne({},M),{addTab:V,changeTab:H,closeTab:U,updateActiveTabValues:q,headerEditor:i,queryEditor:u,responseEditor:v,variableEditor:x,setHeaderEditor:o,setQueryEditor:c,setResponseEditor:m,setVariableEditor:w,setOperationName:G,initialQuery:R.query,initialVariables:R.variables,initialHeaders:R.headers,initialResponse:R.response,externalFragments:K,validationRules:$,shouldPersistHeaders:E,setShouldPersistHeaders:D})}),[M,V,H,U,q,i,u,v,x,G,R,K,$,E,D]);return Xe(ZS.Provider,{value:Q,children:z})}ie(jS,"EditorContextProvider"),AS(jS,"EditorContextProvider");var LS=Le(ZS),FS="shouldPersistHeaders",zS='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify query: Shift-Ctrl-P (or press the prettify button)\n#\n# Merge fragments: Shift-Ctrl-M (or press the merge button)\n#\n# Run Query: Ctrl-Enter (or press the play button)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n',BS=Object.defineProperty,VS=ie((function(e,t){return BS(e,"name",{value:t,configurable:!0})}),"__name$9");function HS(e){var t=e,n=t.isHidden,r=oe(t,["isHidden"]),i=LS({nonNull:!0,caller:HS}).headerEditor,o=Kk(r,HS);return(0,g.useEffect)((function(){i&&!n&&i.refresh()}),[i,n]),Xe("div",{className:le("graphiql-editor",n&&"hidden"),ref:o})}ie(HS,"HeaderEditor"),VS(HS,"HeaderEditor");var US=Object.defineProperty,qS=ie((function(e,t){return US(e,"name",{value:t,configurable:!0})}),"__name$8");function WS(e){var t,n=(0,g.useState)({width:null,height:null}),r=(0,s.Z)(n,2),i=r[0],o=r[1],a=(0,g.useState)(null),l=(0,s.Z)(a,2),u=l[0],c=l[1],d=(0,g.useRef)(null),f=null==(t=GS(e.token))?void 0:t.href;(0,g.useEffect)((function(){if(d.current)return f?void fetch(f,{method:"HEAD"}).then((function(e){c(e.headers.get("Content-Type"))})).catch((function(){c(null)})):(o({width:null,height:null}),void c(null))}),[f]);var p=null!==i.width&&null!==i.height?et("div",{children:[i.width,"x",i.height,null===u?null:" "+u]}):null;return et("div",{children:[Xe("img",{onLoad:function(){var e,t,n,r;o({width:null!=(t=null==(e=d.current)?void 0:e.naturalWidth)?t:null,height:null!=(r=null==(n=d.current)?void 0:n.naturalHeight)?r:null})},ref:d,src:f}),p]})}function GS(e){if("string"===e.type){var t=e.string.slice(1).slice(0,-1).trim();try{var n=window.location;return new URL(t,n.protocol+"//"+n.host)}catch(r){return}}}function KS(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}ie(WS,"ImagePreview"),qS(WS,"ImagePreview"),WS.shouldRender=qS(ie((function(e){var t=GS(e);return!!t&&KS(t)}),"shouldRender"),"shouldRender"),ie(GS,"tokenToURL"),qS(GS,"tokenToURL"),ie(KS,"isImageURL"),qS(KS,"isImageURL");var $S=Object.defineProperty,QS=ie((function(e,t){return $S(e,"name",{value:t,configurable:!0})}),"__name$7");function YS(e){var t=rS(e,YS);return Xe("div",{className:"graphiql-editor",ref:t})}ie(YS,"QueryEditor"),QS(YS,"QueryEditor");var JS=Object.defineProperty,XS=ie((function(e,t){return JS(e,"name",{value:t,configurable:!0})}),"__name$6");function eE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.responseTooltip,r=e.editorTheme,i=void 0===r?Kx:r,o=e.keyMap,a=void 0===o?$x:o,l=arguments.length>1?arguments[1]:void 0,s=hw({nonNull:!0,caller:l||eE}),u=s.fetchError,c=s.validationErrors,d=LS({nonNull:!0,caller:l||eE}),f=d.initialResponse,p=d.responseEditor,h=d.setResponseEditor,v=(0,g.useRef)(null),m=(0,g.useRef)(t);return(0,g.useEffect)((function(){m.current=t}),[t]),(0,g.useEffect)((function(){var e=!0;return Jx([Promise.all([n.e(461),n.e(986)]).then(n.bind(n,986)).then((function(e){return e.f})),Promise.all([n.e(461),n.e(474)]).then(n.bind(n,6474)).then((function(e){return e.b})),Promise.all([n.e(461),n.e(301)]).then(n.bind(n,3301)).then((function(e){return e.d})),Promise.all([n.e(461),n.e(554)]).then(n.bind(n,2554)).then((function(e){return e.s})),Promise.all([n.e(461),n.e(822)]).then(n.bind(n,9822)).then((function(e){return e.s})),Promise.all([n.e(461),n.e(491)]).then(n.bind(n,4491)).then((function(e){return e.j})),Promise.all([n.e(461),n.e(492)]).then(n.bind(n,6492)).then((function(e){return e.s})),Promise.all([n.e(461),n.e(964)]).then(n.bind(n,7964)),Promise.all([n.e(461),n.e(925)]).then(n.bind(n,9925))],{useCommonAddons:!1}).then((function(t){if(e){var n=document.createElement("div");t.registerHelper("info","graphql-results",(function(e,t,r,i){var o=[],a=m.current;return a&&o.push(Xe(a,{pos:i,token:e})),WS.shouldRender(e)&&o.push(Xe(WS,{token:e},"image-preview")),o.length?(K.render(o,n),n):(K.unmountComponentAtNode(n),null)}));var r=v.current;if(r){var o=t(r,{value:f,lineWrapping:!0,readOnly:!0,theme:i,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Yx});h(o)}}})),function(){e=!1}}),[i,f,h]),Lk(p,"keyMap",a),(0,g.useEffect)((function(){u&&(null==p||p.setValue(u)),c.length>0&&(null==p||p.setValue(be(c)))}),[p,u,c]),v}ie(eE,"useResponseEditor"),XS(eE,"useResponseEditor");var tE=Object.defineProperty,nE=ie((function(e,t){return tE(e,"name",{value:t,configurable:!0})}),"__name$5");function rE(e){var t=eE(e,rE);return Xe("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}ie(rE,"ResponseEditor"),nE(rE,"ResponseEditor");var iE=Object.defineProperty,oE=ie((function(e,t){return iE(e,"name",{value:t,configurable:!0})}),"__name$4");function aE(e){var t=e,n=t.isHidden,r=oe(t,["isHidden"]),i=LS({nonNull:!0,caller:aE}).variableEditor,o=MS(r,aE);return(0,g.useEffect)((function(){i&&!n&&i.refresh()}),[i,n]),Xe("div",{className:le("graphiql-editor",n&&"hidden"),ref:o})}ie(aE,"VariableEditor"),oE(aE,"VariableEditor");var lE=Object.defineProperty,sE=ie((function(e,t){return lE(e,"name",{value:t,configurable:!0})}),"__name$3");function uE(e){var t=e.children,n=e.dangerouslyAssumeSchemaIsValid,r=e.defaultQuery,i=e.defaultHeaders,o=e.defaultTabs,a=e.externalFragments,l=e.fetcher,s=e.getDefaultFieldNames,u=e.headers,c=e.initialTabs,d=e.inputValueDeprecation,f=e.introspectionQueryName,p=e.maxHistoryLength,h=e.onEditOperationName,v=e.onSchemaChange,m=e.onTabChange,g=e.onTogglePluginVisibility,b=e.operationName,y=e.plugins,x=e.query,w=e.response,C=e.schema,k=e.schemaDescription,S=e.shouldPersistHeaders,E=e.storage,T=e.validationRules,_=e.variables,I=e.visiblePlugin;return Xe(ot,{storage:E,children:Xe(Mx,{maxHistoryLength:p,children:Xe(jS,{defaultQuery:r,defaultHeaders:i,defaultTabs:o,externalFragments:a,headers:u,initialTabs:c,onEditOperationName:h,onTabChange:m,query:x,response:w,shouldPersistHeaders:S,validationRules:T,variables:_,children:Xe(pw,{dangerouslyAssumeSchemaIsValid:n,fetcher:l,inputValueDeprecation:d,introspectionQueryName:f,onSchemaChange:v,schema:C,schemaDescription:k,children:Xe(Hx,{getDefaultFieldNames:s,fetcher:l,operationName:b,children:Xe(ww,{children:Xe(Rk,{onTogglePluginVisibility:g,plugins:y,visiblePlugin:I,children:t})})})})})})})}ie(uE,"GraphiQLProvider"),sE(uE,"GraphiQLProvider");var cE=Object.defineProperty,dE=ie((function(e,t){return cE(e,"name",{value:t,configurable:!0})}),"__name$2");function fE(){var e=st(),t=(0,g.useState)((function(){if(!e)return null;var t=e.get(pE);switch(t){case"light":return"light";case"dark":return"dark";default:return"string"===typeof t&&e.set(pE,""),null}})),n=(0,s.Z)(t,2),r=n[0],i=n[1];(0,g.useLayoutEffect)((function(){"undefined"!==typeof window&&(document.body.classList.remove("graphiql-light","graphiql-dark"),r&&document.body.classList.add("graphiql-".concat(r)))}),[r]);var o=(0,g.useCallback)((function(t){null==e||e.set(pE,t||""),i(t)}),[e]);return(0,g.useMemo)((function(){return{theme:r,setTheme:o}}),[r,o])}ie(fE,"useTheme"),dE(fE,"useTheme");var pE="theme",hE=Object.defineProperty,vE=ie((function(e,t){return hE(e,"name",{value:t,configurable:!0})}),"__name$1");function mE(e){var t=e.defaultSizeRelation,n=void 0===t?gE:t,r=e.direction,i=e.initiallyHidden,o=e.onHiddenElementChange,a=e.sizeThresholdFirst,l=void 0===a?100:a,u=e.sizeThresholdSecond,c=void 0===u?100:u,d=e.storageKey,f=st(),p=(0,g.useMemo)((function(){return tk(500,(function(e){f&&d&&f.set(d,e)}))}),[f,d]),h=(0,g.useState)((function(){var e=f&&d?f.get(d):null;return e===bE||"first"===i?"first":e===yE||"second"===i?"second":null})),v=(0,s.Z)(h,2),m=v[0],b=v[1],y=(0,g.useCallback)((function(e){e!==m&&(b(e),null==o||o(e))}),[m,o]),x=(0,g.useRef)(null),w=(0,g.useRef)(null),C=(0,g.useRef)(null),k=(0,g.useRef)("".concat(n));(0,g.useLayoutEffect)((function(){var e=f&&d&&f.get(d)||k.current,t="horizontal"===r?"row":"column";x.current&&(x.current.style.display="flex",x.current.style.flexDirection=t,x.current.style.flex=e===bE||e===yE?k.current:e),C.current&&(C.current.style.display="flex",C.current.style.flexDirection=t,C.current.style.flex="1"),w.current&&(w.current.style.display="flex",w.current.style.flexDirection=t)}),[r,f,d]);var S=(0,g.useCallback)((function(e){var t="first"===e?x.current:C.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",x.current)){var n=parseFloat(x.current.style.flex);(!Number.isFinite(n)||n<1)&&(x.current.style.flex="1")}}),[]),E=(0,g.useCallback)((function(e){var t="first"===e?x.current:C.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",x.current&&f&&d)){var n=null==f?void 0:f.get(d);n!==bE&&n!==yE&&(x.current.style.flex=n||k.current)}}),[f,d]);return(0,g.useLayoutEffect)((function(){"first"===m?S("first"):E("first"),"second"===m?S("second"):E("second")}),[m,S,E]),(0,g.useEffect)((function(){if(w.current&&x.current&&C.current){var e=w.current,t=x.current,n=t.parentElement,i="horizontal"===r?"clientX":"clientY",o="horizontal"===r?"left":"top",a="horizontal"===r?"right":"bottom",s="horizontal"===r?"clientWidth":"clientHeight";return ie(u,"handleMouseDown"),vE(u,"handleMouseDown"),e.addEventListener("mousedown",u),ie(d,"reset"),vE(d,"reset"),e.addEventListener("dblclick",d),function(){e.removeEventListener("mousedown",u),e.removeEventListener("dblclick",d)}}function u(r){r.preventDefault();var u=r[i]-e.getBoundingClientRect()[o];function d(r){if(0===r.buttons)return f();var d=r[i]-n.getBoundingClientRect()[o]-u,h=n.getBoundingClientRect()[a]-r[i]+u-e[s];if(d1&&"string"!==typeof a,d=i||o,f="".concat(d?"Stop":"Execute"," query (Ctrl-Enter)"),p={type:"button",className:"graphiql-execute-button",children:Xe(d?zl:Ml,{}),"aria-label":f};return c&&!d?et(Tv,{children:[Xe(vx,{label:f,children:Xe(Tv.Button,ne({},p))}),Xe(Tv.List,{children:u.map((function(e,r){var i=e.name?e.name.value:"");return Xe(Tv.Item,{onSelect:function(){var r,i=null==(r=e.name)?void 0:r.value;t&&i&&i!==t.operationName&&n(i),l()},children:i},"".concat(i,"-").concat(r))}))})]}):Xe(vx,{label:f,children:Xe("button",re(ne({},p),{onClick:function(){d?s():l()}}))})}ie(kE,"ExecuteButton"),CE(kE,"ExecuteButton");var SE=(0,g.forwardRef)((function(e,t){var n=e,r=n.button,i=n.children,o=n.label,a=oe(n,["button","children","label"]),l="".concat(o).concat(a.value?": ".concat(a.value):"");return et(Iv.Input,re(ne({},a),{ref:t,className:le("graphiql-toolbar-listbox",a.className),"aria-label":l,children:[Xe(vx,{label:l,children:Xe(Iv.Button,{children:r})}),Xe(Iv.Popover,{children:i})]}))}));SE.displayName="ToolbarListbox";Pd(SE,{Option:Iv.Option});var EE=(0,g.forwardRef)((function(e,t){var n=e,r=n.button,i=n.children,o=n.label,a=oe(n,["button","children","label"]);return et(Tv,re(ne({},a),{ref:t,children:[Xe(vx,{label:o,children:Xe(Tv.Button,{className:le("graphiql-un-styled graphiql-toolbar-menu",a.className),"aria-label":o,children:r})}),Xe(Tv.List,{children:i})]}))}));EE.displayName="ToolbarMenu";Pd(EE,{Item:Tv.Item})},4069:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");t.Z=a},5596:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)([(0,o.jsx)("path",{d:"m12 2-5.5 9h11z"},"0"),(0,o.jsx)("circle",{cx:"17.5",cy:"17.5",r:"4.5"},"1"),(0,o.jsx)("path",{d:"M3 13.5h8v8H3z"},"2")],"Category");t.Z=a},4195:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=a},7791:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"}),"CloudDownload");t.Z=a},3670:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");t.Z=a},8215:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=a},7432:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");t.Z=a},1739:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch");t.Z=a},346:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.Z=a},1831:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-6 10H6v-2h8v2zm4-4H6v-2h12v2z"}),"Source");t.Z=a},1608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(6190)},396:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case v:case h:case s:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},8712:function(e,t,n){"use strict";n(396)},3660:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(2793),i=n(1048),o=n(1316),a=n(4073),l=n(8046),s=n(4165),u=n(4134),c=n(6222);function d(e,t){var n;return(0,r.Z)({toolbar:(n={minHeight:56},(0,c.Z)(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,c.Z)(n,e.up("sm"),{minHeight:64}),n)},t)}var f=n(3566),p={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},v={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},b={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},x={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},w=["mode","contrastThreshold","tonalOffset"],C={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:p.white,default:p.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},k={text:{primary:p.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:p.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function S(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,f.$n)(e.main,i):"dark"===t&&(e.dark=(0,f._j)(e.main,o)))}function E(e){var t=e.mode,n=void 0===t?"light":t,l=e.contrastThreshold,s=void 0===l?3:l,u=e.tonalOffset,c=void 0===u?.2:u,d=(0,i.Z)(e,w),E=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[200],light:b[50],dark:b[400]}:{main:b[700],light:b[400],dark:b[800]}}(n),T=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[200],light:v[50],dark:v[400]}:{main:v[500],light:v[300],dark:v[700]}}(n),_=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[500],light:m[300],dark:m[700]}:{main:m[700],light:m[400],dark:m[800]}}(n),I=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(n),R=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:x[400],light:x[300],dark:x[700]}:{main:x[800],light:x[500],dark:x[900]}}(n),N=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(n);function O(e){return(0,f.mi)(e,k.text.primary)>=s?k.text.primary:C.text.primary}var M=function(e){var t=e.color,n=e.name,i=e.mainShade,a=void 0===i?500:i,l=e.lightShade,s=void 0===l?300:l,u=e.darkShade,d=void 0===u?700:u;if(!(t=(0,r.Z)({},t)).main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error((0,o.Z)(11,n?" (".concat(n,")"):"",a));if("string"!==typeof t.main)throw new Error((0,o.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return S(t,"light",s,c),S(t,"dark",d,c),t.contrastText||(t.contrastText=O(t.main)),t},P={dark:k,light:C};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},p),mode:n,primary:M({color:E,name:"primary"}),secondary:M({color:T,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:M({color:_,name:"error"}),warning:M({color:N,name:"warning"}),info:M({color:I,name:"info"}),success:M({color:R,name:"success"}),grey:h,contrastThreshold:s,getContrastText:O,augmentColor:M,tonalOffset:c},P[n]),d)}var T=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var _={textTransform:"uppercase"},I='"Roboto", "Helvetica", "Arial", sans-serif';function R(e,t){var n="function"===typeof t?t(e):t,o=n.fontFamily,l=void 0===o?I:o,s=n.fontSize,u=void 0===s?14:s,c=n.fontWeightLight,d=void 0===c?300:c,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,v=void 0===h?500:h,m=n.fontWeightBold,g=void 0===m?700:m,b=n.htmlFontSize,y=void 0===b?16:b,x=n.allVariants,w=n.pxToRem,C=(0,i.Z)(n,T);var k=u/14,S=w||function(e){return"".concat(e/y*k,"rem")},E=function(e,t,n,i,o){return(0,r.Z)({fontFamily:l,fontWeight:e,fontSize:S(t),lineHeight:n},l===I?{letterSpacing:"".concat((a=i/t,Math.round(1e5*a)/1e5),"em")}:{},o,x);var a},R={h1:E(d,96,1.167,-1.5),h2:E(d,60,1.2,-.5),h3:E(p,48,1.167,0),h4:E(p,34,1.235,.25),h5:E(p,24,1.334,0),h6:E(v,20,1.6,.15),subtitle1:E(p,16,1.75,.15),subtitle2:E(v,14,1.57,.1),body1:E(p,16,1.5,.15),body2:E(p,14,1.43,.15),button:E(v,14,1.75,.4,_),caption:E(p,12,1.66,.4),overline:E(p,12,2.66,1,_)};return(0,a.Z)((0,r.Z)({htmlFontSize:y,pxToRem:S,fontFamily:l,fontSize:u,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:g},R),C,{clone:!1})}function N(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var O=["none",N(0,2,1,-1,0,1,1,0,0,1,3,0),N(0,3,1,-2,0,2,2,0,0,1,5,0),N(0,3,3,-2,0,3,4,0,0,1,8,0),N(0,2,4,-1,0,4,5,0,0,1,10,0),N(0,3,5,-1,0,5,8,0,0,1,14,0),N(0,3,5,-1,0,6,10,0,0,1,18,0),N(0,4,5,-2,0,7,10,1,0,2,16,1),N(0,5,5,-3,0,8,10,1,0,3,14,2),N(0,5,6,-3,0,9,12,1,0,3,16,2),N(0,6,6,-3,0,10,14,1,0,4,18,3),N(0,6,7,-4,0,11,15,1,0,4,20,3),N(0,7,8,-4,0,12,17,2,0,5,22,4),N(0,7,8,-4,0,13,19,2,0,5,24,4),N(0,7,9,-4,0,14,21,2,0,5,26,4),N(0,8,9,-5,0,15,22,2,0,6,28,5),N(0,8,10,-5,0,16,24,2,0,6,30,5),N(0,8,11,-5,0,17,26,2,0,6,32,5),N(0,9,11,-5,0,18,28,2,0,7,34,6),N(0,9,12,-6,0,19,29,2,0,7,36,6),N(0,10,13,-6,0,20,31,3,0,8,38,7),N(0,10,13,-6,0,21,33,3,0,8,40,7),N(0,10,14,-6,0,22,35,3,0,8,42,7),N(0,11,14,-7,0,23,36,3,0,9,44,8),N(0,11,15,-7,0,24,38,3,0,9,46,8)],M=n(5356),P={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},D=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,c=e.palette,f=void 0===c?{}:c,p=e.transitions,h=void 0===p?{}:p,v=e.typography,m=void 0===v?{}:v,g=(0,i.Z)(e,D);if(e.vars)throw new Error((0,o.Z)(18));var b=E(f),y=(0,l.Z)(e),x=(0,a.Z)(y,{mixins:d(y.breakpoints,n),palette:b,shadows:O.slice(),typography:R(b,m),transitions:(0,M.ZP)(h),zIndex:(0,r.Z)({},P)});x=(0,a.Z)(x,g);for(var w=arguments.length,C=new Array(w>1?w-1:0),k=1;k0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,l=void 0===a?n.standard:a,u=i.easing,c=void 0===u?t.easeInOut:u,d=i.delay,f=void 0===d?0:d;(0,r.Z)(i,o);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof l?l:s(l)," ").concat(c," ").concat("string"===typeof f?f:s(f))})).join(",")}},e,{easing:t,duration:n})}},9764:function(e,t,n){"use strict";var r=(0,n(3660).Z)();t.Z=r},8132:function(e,t,n){"use strict";n.d(t,{Dz:function(){return a},FO:function(){return o}});var r=n(4011),i=n(9764),o=function(e){return(0,r.x9)(e)&&"classes"!==e},a=r.x9,l=(0,r.ZP)({defaultTheme:i.Z,rootShouldForwardProp:o});t.ZP=l},5656:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(7678),i=n(2321);var o=n(9764);function a(e){return function(e){var t=e.props,n=e.name,o=e.defaultTheme,a=(0,i.Z)(o);return(0,r.Z)({theme:a,name:n,props:t})}({props:e.props,name:e.name,defaultTheme:o.Z})}},4112:function(e,t,n){"use strict";var r=n(1460);t.Z=r.Z},2701:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(2793),i=n(8381),o=n(1048),a=n(5863),l=n(2378),s=n(4112),u=n(5656),c=n(8132),d=n(8995),f=n(4438);function p(e){return(0,f.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=n(9343),v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,c.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat((0,s.Z)(n.color))],t["fontSize".concat((0,s.Z)(n.fontSize))]]}})((function(e){var t,n,r,i,o,a,l,s,u,c,d,f,p,h,v,m,g,b=e.theme,y=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(t=b.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(r=b.transitions)||null==(i=r.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=b.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(l=b.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=b.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[y.fontSize],color:null!=(d=null==(f=(b.vars||b).palette)||null==(p=f[y.color])?void 0:p.main)?d:{action:null==(h=(b.vars||b).palette)||null==(v=h.action)?void 0:v.active,disabled:null==(m=(b.vars||b).palette)||null==(g=m.action)?void 0:g.disabled,inherit:void 0}[y.color]}})),g=i.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiSvgIcon"}),i=n.children,c=n.className,d=n.color,f=void 0===d?"inherit":d,g=n.component,b=void 0===g?"svg":g,y=n.fontSize,x=void 0===y?"medium":y,w=n.htmlColor,C=n.inheritViewBox,k=void 0!==C&&C,S=n.titleAccess,E=n.viewBox,T=void 0===E?"0 0 24 24":E,_=(0,o.Z)(n,v),I=(0,r.Z)({},n,{color:f,component:b,fontSize:x,instanceFontSize:e.fontSize,inheritViewBox:k,viewBox:T}),R={};k||(R.viewBox=T);var N=function(e){var t=e.color,n=e.fontSize,r=e.classes,i={root:["root","inherit"!==t&&"color".concat((0,s.Z)(t)),"fontSize".concat((0,s.Z)(n))]};return(0,l.Z)(i,p,r)}(I);return(0,h.jsxs)(m,(0,r.Z)({as:b,className:(0,a.Z)(N.root,c),focusable:"false",color:w,"aria-hidden":!S||void 0,role:S?"img":void 0,ref:t},R,_,{ownerState:I,children:[i,S?(0,h.jsx)("title",{children:S}):null]}))}));g.muiName="SvgIcon";var b=g;function y(e,t){function n(n,i){return(0,h.jsx)(b,(0,r.Z)({"data-testid":"".concat(t,"Icon"),ref:i},n,{children:e}))}return n.muiName=b.muiName,i.memo(i.forwardRef(n))}},3877:function(e,t,n){"use strict";var r=n(3857);t.Z=r.Z},6190:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return i.Z},createChainedFunction:function(){return o},createSvgIcon:function(){return a.Z},debounce:function(){return l.Z},deprecatedPropType:function(){return s},isMuiElement:function(){return u.Z},ownerDocument:function(){return c.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return f},setRef:function(){return p},unstable_ClassNameGenerator:function(){return w},unstable_useEnhancedEffect:function(){return h.Z},unstable_useId:function(){return v.Z},unsupportedProp:function(){return m},useControlled:function(){return g.Z},useEventCallback:function(){return b.Z},useForkRef:function(){return y.Z},useIsFocusVisible:function(){return x.Z}});var r=n(6571),i=n(4112),o=n(1920).Z,a=n(2701),l=n(3877);var s=function(e,t){return function(){return null}},u=n(5992),c=n(7412),d=n(7626);n(1860);var f=function(e,t){return function(){return null}},p=n(9863).Z,h=n(496),v=n(6595);var m=function(e,t,n,r,i){return null},g=n(9393),b=n(1463),y=n(355),x=n(6522),w={configure:function(e){r.Z.configure(e)}}},5992:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(8381);var i=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},7412:function(e,t,n){"use strict";var r=n(9890);t.Z=r.Z},7626:function(e,t,n){"use strict";var r=n(4967);t.Z=r.Z},9393:function(e,t,n){"use strict";var r=n(5180);t.Z=r.Z},496:function(e,t,n){"use strict";var r=n(2371);t.Z=r.Z},1463:function(e,t,n){"use strict";var r=n(1711);t.Z=r.Z},355:function(e,t,n){"use strict";var r=n(8444);t.Z=r.Z},6595:function(e,t,n){"use strict";var r=n(347);t.Z=r.Z},6522:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r,i=n(8381),o=!0,a=!1,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function c(){"hidden"===this.visibilityState&&a&&(o=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var f=function(){var e=i.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",s,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",c,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(r),r=window.setTimeout((function(){a=!1}),100),t.current=!1,!0)},ref:e}}},131:function(e,t,n){"use strict";n.d(t,{ZP:function(){return x},Co:function(){return w}});var r=n(8381);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t96?f:p},v=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,u.hC)(t,n,r);(0,d.L)((function(){return(0,u.My)(t,n,r)}));return null},g=function e(t,n){var o,a,l=t.__emotion_real===t,d=l&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var f=v(t,n,l),p=f||h(d),g=!p("as");return function(){var b=arguments,y=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&y.push("label:"+o+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var x=b.length,w=1;w0&&void 0!==arguments[0]?arguments[0]:{},n=null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{});return n||{}}function l(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function s(e){var t,n=e.values,r=e.breakpoints,i=e.base||function(e,t){if("object"!==typeof e)return{};var n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((function(t,r){r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));var i,a=e.substring(t+1,e.length-1);if("color"===n){if(i=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.Z)(10,i))}else a=a.split(",");return{type:n,values:a=a.map((function(e){return parseFloat(e)})),colorSpace:i}}function a(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function l(e){var t="hsl"===(e=o(e)).type||"hsla"===e.type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,l=r*Math.min(i,1-i),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-l*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,a(e)}function c(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a(e)}},4011:function(e,t,n){"use strict";n.d(t,{ZP:function(){return S},x9:function(){return C}});var r=n(1303),i=n(678),o=n(916),a=n(4695),l=n(131),s=n(8046),u=n(1460),c=["variant"];function d(e){return 0===e.length}function f(e){var t=e.variant,n=(0,o.Z)(e,c),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?d(r)?e[t]:(0,u.Z)(e[t]):"".concat(d(r)?t:(0,u.Z)(t)).concat((0,u.Z)(e[t].toString()))})),r}var p=n(4134),h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],v=["theme"],m=["theme"];function g(e){return 0===Object.keys(e).length}function b(e){return"string"===typeof e&&e.charCodeAt(0)>96}var y=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},x=function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=f(e.props);r[t]=e.style})),r},w=function(e,t,n,r){var i,o,a=e.ownerState,l=void 0===a?{}:a,s=[],u=null==n||null==(i=n.components)||null==(o=i[r])?void 0:o.variants;return u&&u.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){l[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[f(n.props)])})),s};function C(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var k=(0,s.Z)();function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=void 0===t?k:t,s=e.rootShouldForwardProp,u=void 0===s?C:s,c=e.slotShouldForwardProp,d=void 0===c?C:c,f=function(e){var t=g(e.theme)?n:e.theme;return(0,p.Z)((0,a.Z)({},e,{theme:t}))};return f.__mui_systemSx=!0,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,l.Co)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var s,c=t.name,p=t.slot,k=t.skipVariantsResolver,S=t.skipSx,E=t.overridesResolver,T=(0,o.Z)(t,h),_=void 0!==k?k:p&&"Root"!==p||!1,I=S||!1;var R=C;"Root"===p?R=u:p?R=d:b(e)&&(R=void 0);var N=(0,l.ZP)(e,(0,a.Z)({shouldForwardProp:R,label:s},T)),O=function(e){for(var t=arguments.length,l=new Array(t>1?t-1:0),s=1;s0){var h=new Array(p).fill("");(d=[].concat((0,r.Z)(e),(0,r.Z)(h))).raw=[].concat((0,r.Z)(e.raw),(0,r.Z)(h))}else"function"===typeof e&&e.__emotion_real!==e&&(d=function(t){var r=t.theme,i=(0,o.Z)(t,m);return e((0,a.Z)({theme:g(r)?n:r},i))});var b=N.apply(void 0,[d].concat((0,r.Z)(u)));return b};return N.withConfig&&(O.withConfig=N.withConfig),O}}},8046:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(4695),i=n(916),o=n(4073),a=n(6222),l=["values","unit","step"];function s(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,o=e.unit,s=void 0===o?"px":o,u=e.step,c=void 0===u?5:u,d=(0,i.Z)(e,l),f=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,r.Z)({},e,(0,a.Z)({},t.key,t.val))}),{})}(n),p=Object.keys(f);function h(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function v(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-c/100).concat(s,")")}function m(e,t){var r=p.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[p[r]]?n[p[r]]:t)-c/100).concat(s,")")}return(0,r.Z)({keys:p,values:f,up:h,down:v,between:m,only:function(e){return p.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,c.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,a=e.palette,l=void 0===a?{}:a,c=e.spacing,v=e.shape,m=void 0===v?{}:v,g=(0,i.Z)(e,h),b=s(n),y=d(c),x=(0,o.Z)({breakpoints:b,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},l),spacing:y,shape:(0,r.Z)({},u,m)},g),w=arguments.length,C=new Array(w>1?w-1:0),k=1;k2){if(!u[e])return[e];e=u[e]}var t=e.split(""),n=(0,r.Z)(t,2),i=n[0],o=n[1],a=l[i],c=s[o]||"";return Array.isArray(c)?c.map((function(e){return a+e})):[a+c]})),d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[].concat(d,f);function h(e,t,n,r){var i,a=null!=(i=(0,o.DW)(e,t,!1))?i:n;return"number"===typeof a?function(e){return"string"===typeof e?e:a*e}:Array.isArray(a)?function(e){return"string"===typeof e?e:a[e]}:"function"===typeof a?a:function(){}}function v(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function g(e,t,n,r){if(-1===t.indexOf(n))return null;var o=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=m(t,n),e}),{})}}(c(n),r),a=e[n];return(0,i.k9)(e,a,o)}function b(e,t){var n=v(e.theme);return Object.keys(e).map((function(r){return g(e,t,r,n)})).reduce(a.Z,{})}function y(e){return b(e,d)}function x(e){return b(e,f)}function w(e){return b(e,p)}y.propTypes={},y.filterProps=d,x.propTypes={},x.filterProps=f,w.propTypes={},w.filterProps=p},1489:function(e,t,n){"use strict";n.d(t,{DW:function(){return a},Jq:function(){return l}});var r=n(6222),i=n(1460),o=n(9912);function a(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function l(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:a(e,n)||i,t&&(r=t(r,i,e)),r}t.ZP=function(e){var t=e.prop,n=e.cssProperty,s=void 0===n?e.prop:n,u=e.themeKey,c=e.transform,d=function(e){if(null==e[t])return null;var n=e[t],d=a(e.theme,u)||{};return(0,o.k9)(e,n,(function(e){var n=l(d,c,e);return e===n&&"string"===typeof e&&(n=l(d,c,"".concat(t).concat("default"===e?"":(0,i.Z)(e)),e)),!1===s?n:(0,r.Z)({},s,n)}))};return d.propTypes={},d.filterProps=[t],d}},4165:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(9125),i=n(1489),o=n(2460);var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:o;return(0,i.Z)(e)}},7678:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(6005);function i(e){var t=e.theme,n=e.name,i=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,i):i}},3501:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(8381);var i=r.createContext(null);function o(){return r.useContext(i)}function a(e){return 0===Object.keys(e).length}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=o();return!t||a(t)?e:t}},6571:function(e,t){"use strict";var n=function(e){return e},r=function(){var e=n;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=n}}}();t.Z=r},1460:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1316);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},2378:function(e,t,n){"use strict";function r(e,t,n){var r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){return r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},1920:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a2&&void 0!==arguments[2]?arguments[2]:{clone:!0},l=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?l[r]=a(e[r],t[r],n):n.clone?l[r]=i(t[r])?o(t[r]):t[r]:l[r]=t[r])})),l}},1316:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n2&&void 0!==arguments[2]?arguments[2]:"Mui",o=i[t];return o?"".concat(n,"-").concat(o):"".concat(r.Z.generate(e),"-").concat(t)}},8995:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4438);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i={};return t.forEach((function(t){i[t]=(0,r.Z)(e,t,n)})),i}},9890:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},4967:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9890);function i(e){return(0,r.Z)(e).defaultView||window}},6005:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1860);function i(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(o){if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.Z)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){var a=e[o]||{},l=t[o];n[o]={},l&&Object.keys(l)?a&&Object.keys(a)?(n[o]=(0,r.Z)({},l),Object.keys(a).forEach((function(e){n[o][e]=i(a[e],l[e])}))):n[o]=l:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},9863:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},5180:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(678),i=n(8381);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,i.useRef(void 0!==t).current),a=i.useState(n),l=(0,r.Z)(a,2),s=l[0],u=l[1];return[o?t:s,i.useCallback((function(e){o||u(e)}),[])]}},2371:function(e,t,n){"use strict";var r=n(8381),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=i},1711:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(8381),i=n(2371);function o(e){var t=r.useRef(e);return(0,i.Z)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},8444:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(8381),i=n(9863);function o(){for(var e=arguments.length,t=new Array(e),n=0;n-1};function u(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!==typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=h(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function w(e){var t=new f;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},g.call(y.prototype),g.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];C.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(E){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,o){var a=new y(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function s(){l.abort()}l.onload=function(){var e={status:l.status,statusText:l.statusText,headers:w(l.getAllResponseHeaders()||"")};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var t="response"in l?l.response:l.responseText;r(new C(t,e))},l.onerror=function(){o(new TypeError("Network request failed"))},l.ontimeout=function(){o(new TypeError("Network request failed"))},l.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},l.open(a.method,a.url,!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&i&&(l.responseType="blob"),a.headers.forEach((function(e,t){l.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",s),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",s)}),l.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=f,e.Request=y,e.Response=C),t.Headers=f,t.Request=y,t.Response=C,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},4413:function(e){"use strict";e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},7809:function(e,t,n){"use strict";var r=n(369);e.exports=function e(t,n,i){var o;void 0===n&&(n=""),void 0===i&&(i=r);var a=new Map;function l(e,t){var n=a.get(t);n?n.push.apply(n,e):a.set(t,e)}if(i(t))o=null,l([n],t);else{var s=n?n+".":"";if("undefined"!==typeof FileList&&t instanceof FileList)o=Array.prototype.map.call(t,(function(e,t){return l([""+s+t],e),null}));else if(Array.isArray(t))o=t.map((function(t,n){var r=e(t,""+s+n,i);return r.files.forEach(l),r.clone}));else if(t&&t.constructor===Object)for(var u in o={},t){var c=e(t[u],""+s+u,i);c.files.forEach(l),o[u]=c.clone}else o=t}return{clone:o,files:a}}},9068:function(e,t,n){"use strict";t.ReactNativeFile=n(4413),t.extractFiles=n(7809),t.isExtractableFile=n(369)},369:function(e,t,n){"use strict";var r=n(4413);e.exports=function(e){return"undefined"!==typeof File&&e instanceof File||"undefined"!==typeof Blob&&e instanceof Blob||e instanceof r}},387:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},1762:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(9068),o=r(n(387)),a=function(e){return i.isExtractableFile(e)||null!==e&&"object"===typeof e&&"function"===typeof e.pipe};t.default=function(e,t,n){var r=i.extractFiles({query:e,variables:t,operationName:n},"",a),l=r.clone,s=r.files;if(0===s.size){if(!Array.isArray(e))return JSON.stringify(l);if("undefined"!==typeof t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var u=e.reduce((function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e}),[]);return JSON.stringify(u)}var c=new("undefined"===typeof FormData?o.default:FormData);c.append("operations",JSON.stringify(l));var d={},f=0;return s.forEach((function(e){d[++f]=e})),c.append("map",JSON.stringify(d)),f=0,s.forEach((function(e,t){c.append(""+ ++f,t)})),c}},3821:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;nt}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);m[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),_=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function A(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=D&&e[D]||e["@@iterator"])?e:null}var Z,j=Object.assign;function L(e){if(void 0===Z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Z=t&&t[1]||""}return"\n"+Z+e}var F=!1;function z(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(1!==a||1!==l)do{if(a--,0>--l||i[a]!==o[l]){var s="\n"+i[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function B(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case C:return"Portal";case E:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case N:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function J(e,t){Y(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,ke=null,Se=null;function Ee(e){if(e=yi(e)){if("function"!==typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Ce(e.stateNode,e.type,t))}}function Te(e){ke?Se?Se.push(e):Se=[e]:ke=e}function _e(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ee(e),t)for(e=0;e>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~i;0!==l?r=dt(l):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<=An),Ln=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function qn(e,t,n,r){Te(r),0<(t=Wr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Gn=null;function Kn(e){Lr(e,0)}function $n(e){if(G(xi(e)))return e}function Qn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Jn;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Jn=Xn}else Jn=!1;Yn=Jn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n=document.documentMode,mr=null,gr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==K(r)||("selectionStart"in(r=mr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=Wr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},kr={},Sr={};function Er(e){if(kr[e])return kr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var Tr=Er("animationend"),_r=Er("animationiteration"),Ir=Er("animationstart"),Rr=Er("transitionend"),Nr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Nr.set(e,t),s(t,[e])}for(var Pr=0;Prki||(e.current=Ci[ki],Ci[ki]=null,ki--)}function Ti(e,t){ki++,Ci[ki]=e.current,e.current=t}var _i={},Ii=Si(_i),Ri=Si(!1),Ni=_i;function Oi(e,t){var n=e.type.contextTypes;if(!n)return _i;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Pi(){Ei(Ri),Ei(Ii)}function Di(e,t,n){if(Ii.current!==_i)throw Error(o(168));Ti(Ii,t),Ti(Ri,n)}function Ai(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return j({},n,r)}function Zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_i,Ni=Ii.current,Ti(Ii,e),Ti(Ri,Ri.current),!0}function ji(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ai(e,t,Ni),r.__reactInternalMemoizedMergedChildContext=e,Ei(Ri),Ei(Ii),Ti(Ii,e)):Ei(Ri),Ti(Ri,n)}var Li=null,Fi=!1,zi=!1;function Bi(e){null===Li?Li=[e]:Li.push(e)}function Vi(){if(!zi&&null!==Li){zi=!0;var e=0,t=yt;try{var n=Li;for(yt=1;e>=a,i-=a,Qi=1<<32-at(t)+i|n<v?(m=d,d=null):m=d.sibling;var g=p(i,d,l[v],s);if(null===g){null===d&&(d=m);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,v),null===c?u=g:c.sibling=g,c=g,d=m}if(v===l.length)return n(i,d),io&&Ji(i,v),u;if(null===d){for(;vm?(g=v,v=null):g=v.sibling;var y=p(i,v,b.value,u);if(null===y){null===v&&(v=g);break}e&&v&&null===y.alternate&&t(i,v),l=a(y,l,m),null===d?c=y:d.sibling=y,d=y,v=g}if(b.done)return n(i,v),io&&Ji(i,m),c;if(null===v){for(;!b.done;m++,b=s.next())null!==(b=f(i,b.value,u))&&(l=a(b,l,m),null===d?c=b:d.sibling=b,d=b);return io&&Ji(i,m),c}for(v=r(i,v);!b.done;m++,b=s.next())null!==(b=h(v,i,m,b.value,u))&&(e&&null!==b.alternate&&v.delete(null===b.key?m:b.key),l=a(b,l,m),null===d?c=b:d.sibling=b,d=b);return e&&v.forEach((function(e){return t(i,e)})),io&&Ji(i,m),c}return function e(r,o,a,s){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===k){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===M&&$o(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=Go(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===k?((o=Au(a.props.children,r.mode,s,a.key)).return=r,r=o):((s=Du(a.type,a.key,a.props,null,r.mode,s)).ref=Go(r,o,a),s.return=r,r=s)}return l(r);case C:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Lu(a,r.mode,s)).return=r,r=o}return l(r);case M:return e(r,o,(c=a._init)(a._payload),s)}if(te(a))return v(r,o,a,s);if(A(a))return m(r,o,a,s);Ko(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=ju(a,r.mode,s)).return=r,r=o),l(r)):n(r,o)}}var Yo=Qo(!0),Jo=Qo(!1),Xo={},ea=Si(Xo),ta=Si(Xo),na=Si(Xo);function ra(e){if(e===Xo)throw Error(o(174));return e}function ia(e,t){switch(Ti(na,t),Ti(ta,e),Ti(ea,Xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ei(ea),Ti(ea,t)}function oa(){Ei(ea),Ei(ta),Ei(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=se(t,e.type);t!==n&&(Ti(ta,e),Ti(ea,n))}function la(e){ta.current===e&&(Ei(ea),Ei(ta))}var sa=Si(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;en?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{yt=n,pa.transition=r}}function el(){return _a().memoizedState}function tl(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))il(t,n);else if(null!==(n=Ro(e,t,n,r))){nu(n,e,r,eu()),ol(n,t,r)}}function nl(e,t,n){var r=tu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))il(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,lr(l,a)){var s=t.interleaved;return null===s?(i.next=i,Io(t)):(i.next=s.next,s.next=i),void(t.interleaved=i)}}catch(u){}null!==(n=Ro(e,t,i,r))&&(nu(n,e,r,i=eu()),ol(n,t,r))}}function rl(e){var t=e.alternate;return e===va||null!==t&&t===va}function il(e,t){ya=ba=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ol(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var al={readContext:To,useCallback:Ca,useContext:Ca,useEffect:Ca,useImperativeHandle:Ca,useInsertionEffect:Ca,useLayoutEffect:Ca,useMemo:Ca,useReducer:Ca,useRef:Ca,useState:Ca,useDebugValue:Ca,useDeferredValue:Ca,useTransition:Ca,useMutableSource:Ca,useSyncExternalStore:Ca,useId:Ca,unstable_isNewReconciler:!1},ll={readContext:To,useCallback:function(e,t){return Ta().memoizedState=[e,void 0===t?null:t],e},useContext:To,useEffect:Ha,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ba(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=Ta();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ta();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,va,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ta().memoizedState=e},useState:La,useDebugValue:$a,useDeferredValue:function(e){return Ta().memoizedState=e},useTransition:function(){var e=La(!1),t=e[0];return e=Xa.bind(null,e[1]),Ta().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=va,i=Ta();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Rs)throw Error(o(349));0!==(30&ha)||Pa(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ha(Aa.bind(null,r,a,e),[e]),r.flags|=2048,Fa(9,Da.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ta(),t=Rs.identifierPrefix;if(io){var n=Yi;t=":"+t+"R"+(n=(Qi&~(1<<32-at(Qi)-1)).toString(32)+n),0<(n=xa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:To,useCallback:Qa,useContext:To,useEffect:Ua,useImperativeHandle:Ka,useInsertionEffect:qa,useLayoutEffect:Wa,useMemo:Ya,useReducer:Ra,useRef:za,useState:function(){return Ra(Ia)},useDebugValue:$a,useDeferredValue:function(e){return Ja(_a(),ma.memoizedState,e)},useTransition:function(){return[Ra(Ia)[0],_a().memoizedState]},useMutableSource:Oa,useSyncExternalStore:Ma,useId:el,unstable_isNewReconciler:!1},ul={readContext:To,useCallback:Qa,useContext:To,useEffect:Ua,useImperativeHandle:Ka,useInsertionEffect:qa,useLayoutEffect:Wa,useMemo:Ya,useReducer:Na,useRef:za,useState:function(){return Na(Ia)},useDebugValue:$a,useDeferredValue:function(e){var t=_a();return null===ma?t.memoizedState=e:Ja(t,ma.memoizedState,e)},useTransition:function(){return[Na(Ia)[0],_a().memoizedState]},useMutableSource:Oa,useSyncExternalStore:Ma,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var pl="function"===typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Do(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Us||(Us=!0,qs=r),fl(0,t)},n}function vl(e,t,n){(n=Do(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fl(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!==typeof r&&(null===Ws?Ws=new Set([this]):Ws.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function gl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bl(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Do(-1,1)).tag=2,Ao(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var yl=x.ReactCurrentOwner,xl=!1;function wl(e,t,n,r){t.child=null===e?Jo(t,null,n,r):Yo(t,e.child,n,r)}function Cl(e,t,n,r,i){n=n.render;var o=t.ref;return Eo(t,i),r=Sa(e,t,n,r,o,i),n=Ea(),null===e||xl?(io&&n&&eo(t),t.flags|=1,wl(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ul(e,t,i))}function kl(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Mu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Du(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Sl(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Ul(e,t,i)}return t.flags|=1,(e=Pu(o,r)).ref=t.ref,e.return=t,t.child=e}function Sl(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(sr(o,r)&&e.ref===t.ref){if(xl=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Ul(e,t,i);0!==(131072&e.flags)&&(xl=!0)}}return _l(e,t,n,r,i)}function El(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ti(Ps,Ms),Ms|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ti(Ps,Ms),Ms|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ti(Ps,Ms),Ms|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ti(Ps,Ms),Ms|=r;return wl(e,t,i,n),t.child}function Tl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,n,r,i){var o=Mi(n)?Ni:Ii.current;return o=Oi(t,o),Eo(t,i),n=Sa(e,t,n,r,o,i),r=Ea(),null===e||xl?(io&&r&&eo(t),t.flags|=1,wl(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ul(e,t,i))}function Il(e,t,n,r,i){if(Mi(n)){var o=!0;Zi(t)}else o=!1;if(Eo(t,i),null===t.stateNode)Hl(e,t),Uo(t,n,r),Wo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=To(u):u=Oi(t,u=Mi(n)?Ni:Ii.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||s!==u)&&qo(t,a,r,u),Oo=!1;var f=t.memoizedState;a.state=f,Lo(t,r,a,i),s=t.memoizedState,l!==r||f!==s||Ri.current||Oo?("function"===typeof c&&(Bo(t,n,c,r),s=t.memoizedState),(l=Oo||Ho(t,n,l,r,f,s,u))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Po(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:go(t.type,l),a.props=u,d=t.pendingProps,f=a.context,"object"===typeof(s=n.contextType)&&null!==s?s=To(s):s=Oi(t,s=Mi(n)?Ni:Ii.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==d||f!==s)&&qo(t,a,r,s),Oo=!1,f=t.memoizedState,a.state=f,Lo(t,r,a,i);var h=t.memoizedState;l!==d||f!==h||Ri.current||Oo?("function"===typeof p&&(Bo(t,n,p,r),h=t.memoizedState),(u=Oo||Ho(t,n,u,r,f,h,s)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Rl(e,t,n,r,o,i)}function Rl(e,t,n,r,i,o){Tl(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&ji(t,n,!1),Ul(e,t,o);r=t.stateNode,yl.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Yo(t,e.child,null,o),t.child=Yo(t,null,l,o)):wl(e,t,l,o),t.memoizedState=r.state,i&&ji(t,n,!0),t.child}function Nl(e){var t=e.stateNode;t.pendingContext?Di(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Di(0,t.context,!1),ia(e,t.containerInfo)}function Ol(e,t,n,r,i){return ho(),vo(i),t.flags|=256,wl(e,t,n,r),t.child}var Ml,Pl,Dl,Al={dehydrated:null,treeContext:null,retryLane:0};function Zl(e){return{baseLanes:e,cachePool:null,transitions:null}}function jl(e,t,n){var r,i=t.pendingProps,a=sa.current,l=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ti(sa,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,l?(i=t.mode,l=t.child,s={mode:"hidden",children:s},0===(1&i)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Zu(s,i,0,null),e=Au(e,i,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Zl(n),t.memoizedState=Al,e):Ll(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,l){if(n)return 256&t.flags?(t.flags&=-257,Fl(e,t,l,r=dl(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Zu({mode:"visible",children:r.children},i,0,null),(a=Au(a,i,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&Yo(t,e.child,null,l),t.child.memoizedState=Zl(l),t.memoizedState=Al,a);if(0===(1&t.mode))return Fl(e,t,l,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,Fl(e,t,l,r=dl(a=Error(o(419)),r,void 0))}if(s=0!==(l&e.childLanes),xl||s){if(null!==(r=Rs)){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|l))?0:i)&&i!==a.retryLane&&(a.retryLane=i,No(e,i),nu(r,e,i,-1))}return vu(),Fl(e,t,l,r=dl(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=_u.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Gi[Ki++]=Qi,Gi[Ki++]=Yi,Gi[Ki++]=$i,Qi=e.id,Yi=e.overflow,$i=t),(t=Ll(t,r.children)).flags|=4096,t)}(e,t,s,i,r,a,n);if(l){l=i.fallback,s=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 0===(1&s)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=Pu(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=Pu(r,l):(l=Au(l,s,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,i=l,l=t.child,s=null===(s=e.child.memoizedState)?Zl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Al,i}return e=(l=e.child).sibling,i=Pu(l,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ll(e,t){return(t=Zu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fl(e,t,n,r){return null!==r&&vo(r),Yo(t,e.child,null,n),(e=Ll(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),So(e.return,t,n)}function Bl(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Vl(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(wl(e,t,r.children,n),0!==(2&(r=sa.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zl(e,n,t);else if(19===e.tag)zl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ti(sa,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Bl(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ua(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Bl(t,!0,n,null,o);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ul(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Zs|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Pu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ql(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gl(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wl(t),null;case 1:case 17:return Mi(t.type)&&Pi(),Wl(t),null;case 3:return r=t.stateNode,oa(),Ei(Ri),Ei(Ii),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(au(oo),oo=null))),Wl(t),null;case 5:la(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Pl(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Wl(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[pi]=a,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[fi]=t,e[pi]=r,Ml(e,t),t.stateNode=e;e:{switch(s=ye(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;iVs&&(t.flags|=128,r=!0,ql(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ql(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!io)return Wl(t),null}else 2*Ye()-a.renderingStartTime>Vs&&1073741824!==n&&(t.flags|=128,r=!0,ql(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=sa.current,Ti(sa,r?1&n|2:1&n),t):(Wl(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ms)&&(Wl(t),6&t.subtreeFlags&&(t.flags|=8192)):Wl(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Kl(e,t){switch(to(t),t.tag){case 1:return Mi(t.type)&&Pi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Ei(Ri),Ei(Ii),da(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return la(t),null;case 13:if(Ei(sa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ei(sa),null;case 4:return oa(),null;case 10:return ko(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ml=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Pl=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=$(e,i),r=$(e,r),a=[];break;case"select":i=j({},i,{value:void 0}),r=j({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(c in be(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),a||s===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Dl=function(e,t,n,r){n!==r&&(t.flags|=4)};var $l=!1,Ql=!1,Yl="function"===typeof WeakSet?WeakSet:Set,Jl=null;function Xl(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Su(e,t,r)}else n.current=null}function es(e,t,n){try{n()}catch(r){Su(e,t,r)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&es(t,n,o)}i=i.next}while(i!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function is(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function os(e){var t=e.alternate;null!==t&&(e.alternate=null,os(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[vi],delete t[mi],delete t[gi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function as(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var cs=null,ds=!1;function fs(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(l){}switch(n.tag){case 5:Ql||Xl(n,t);case 6:var r=cs,i=ds;cs=null,fs(e,t,n),ds=i,null!==(cs=r)&&(ds?(e=cs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cs.removeChild(n.stateNode));break;case 18:null!==cs&&(ds?(e=cs,n=n.stateNode,8===e.nodeType?si(e.parentNode,n):1===e.nodeType&&si(e,n),Vt(e)):si(cs,n.stateNode));break;case 4:r=cs,i=ds,cs=n.stateNode.containerInfo,ds=!0,fs(e,t,n),cs=r,ds=i;break;case 0:case 11:case 14:case 15:if(!Ql&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&es(n,t,a),i=i.next}while(i!==r)}fs(e,t,n);break;case 1:if(!Ql&&(Xl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Su(n,t,l)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Ql=(r=Ql)||null!==n.memoizedState,fs(e,t,n),Ql=r):fs(e,t,n);break;default:fs(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Yl),t.forEach((function(t){var r=Iu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vs(e,t){var n=t.deletions;if(null!==n)for(var r=0;ri&&(i=l),r&=~a}if(r=i,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ss(r/1960))-r)){e.timeoutHandle=ri(wu.bind(null,e,zs,Hs),r);break}wu(e,zs,Hs);break;default:throw Error(o(329))}}}return ru(e,Ye()),e.callbackNode===n?iu.bind(null,e):null}function ou(e,t){var n=Fs;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=mu(e,t))&&(t=zs,zs=n,null!==t&&au(t)),e}function au(e){null===zs?zs=e:zs.push.apply(zs,e)}function lu(e,t){for(t&=~Ls,t&=~js,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===Ks)var r=!1;else{if(e=Ks,Ks=null,$s=0,0!==(6&Is))throw Error(o(331));var i=Is;for(Is|=4,Jl=e.current;null!==Jl;){var a=Jl,l=a.child;if(0!==(16&Jl.flags)){var s=a.deletions;if(null!==s){for(var u=0;uYe()-Bs?fu(e,0):Ls|=n),ru(e,t)}function Tu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=No(e,t))&&(gt(e,t,n),ru(e,n))}function _u(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tu(e,n)}function Iu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Tu(e,n)}function Ru(e,t){return Ge(e,t)}function Nu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ou(e,t,n,r){return new Nu(e,t,n,r)}function Mu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pu(e,t){var n=e.alternate;return null===n?((n=Ou(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Du(e,t,n,r,i,a){var l=2;if(r=e,"function"===typeof e)Mu(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case k:return Au(n.children,i,a,t);case S:l=8,i|=8;break;case E:return(e=Ou(12,n,t,2|i)).elementType=E,e.lanes=a,e;case R:return(e=Ou(13,n,t,i)).elementType=R,e.lanes=a,e;case N:return(e=Ou(19,n,t,i)).elementType=N,e.lanes=a,e;case P:return Zu(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case T:l=10;break e;case _:l=9;break e;case I:l=11;break e;case O:l=14;break e;case M:l=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ou(l,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Au(e,t,n,r){return(e=Ou(7,e,r,t)).lanes=n,e}function Zu(e,t,n,r){return(e=Ou(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function ju(e,t,n){return(e=Ou(6,e,null,t)).lanes=n,e}function Lu(e,t,n){return(t=Ou(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zu(e,t,n,r,i,o,a,l,s){return e=new Fu(e,t,n,l,s),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ou(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mo(o),e}function Bu(e,t,n){var r=30&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=e||"";t&&(o=r(e));n&&(o=i(o));return o};var n=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function r(e){return e.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,r){return t>0&&t+e.length!==r.length&&e.search(n)>-1&&":"!==r.charAt(t-2)&&("-"!==r.charAt(t+e.length)||"-"===r.charAt(t-1))&&r.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)}))}function i(e){return"string"===typeof(t=e)&&-1!==t.indexOf("@")?(console.warn("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e;var t}},9954:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var r=s(n(5237)),i=s(n(6589)),o=["eventCategory","eventAction","eventLabel","eventValue","hitType"],a=["title","location"],l=["page","hitType"];function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!==typeof window&&"undefined"!==typeof document&&!t._hasLoadedGA){var i=document.createElement("script");i.async=!0,i.src="".concat(r,"?id=").concat(e),n&&i.setAttribute("nonce",n),document.body.appendChild(i),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},t._hasLoadedGA=!0}})),b(this,"_toGtagOptions",(function(e){if(e){var t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce((function(e,n){var r=h(n,2),i=r[0],o=r[1];return t[i]?e[t[i]]=o:e[i]=o,e}),{})}})),b(this,"initialize",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Require GA_MEASUREMENT_ID");var r="string"===typeof e?[{trackingId:e}]:e;t._currentMeasurementId=r[0].trackingId;var i=n.gaOptions,o=n.gtagOptions,a=n.nonce,l=n.testMode,s=void 0!==l&&l,u=n.gtagUrl;if(t._testMode=s,s||t._loadGA(t._currentMeasurementId,a,u),t.isInitialized||(t._gtag("js",new Date),r.forEach((function(e){var n=p(p(p({},t._toGtagOptions(p(p({},i),e.gaOptions))),o),e.gtagOptions);Object.keys(n).length?t._gtag("config",e.trackingId,n):t._gtag("config",e.trackingId)}))),t.isInitialized=!0,!s){var c=d(t._queueGtag);for(t._queueGtag=[],t._isQueuing=!1;c.length;){var f=c.shift();t._gtag.apply(t,d(f)),"get"===f[0]&&(t._isQueuing=!0)}}})),b(this,"set",(function(e){e?"object"===c(e)?(0===Object.keys(e).length&&console.warn("empty `fieldsObject` given to .set()"),t._gaCommand("set",e)):console.warn("Expected `fieldsObject` arg to be an Object"):console.warn("`fieldsObject` is required in .set()")})),b(this,"_gaCommandSendEvent",(function(e,n,r,i,o){t._gtag("event",n,p(p({event_category:e,event_label:r,value:i},o&&{non_interaction:o.nonInteraction}),t._toGtagOptions(o)))})),b(this,"_gaCommandSendEventParameters",(function(){for(var e=arguments.length,n=new Array(e),r=0;r1?n-1:0),i=1;i0?this.queries.filter((function(e){return(0,i._x)(n,e)})):this.queries},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(c.l),f=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(i.ZT).catch(i.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,l.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new s.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();var p=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new f({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;a.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,i.X7)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return(0,i.X7)(e,t)}))},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return a.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(i.ZT)}))}),Promise.resolve())}))},t}(c.l),h=n(8522),v=n(9894);function m(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function g(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var b=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new p,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=h.j.subscribe((function(){h.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=v.N.subscribe((function(){h.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,i.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=(0,i._v)(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return a.V.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,i.I6)(e,t)[0],r=this.queryCache;a.V.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var o=this,l=(0,i.I6)(e,t,n),s=l[0],u=l[1],c=this.queryCache,d=(0,r.Z)({},s,{active:!0});return a.V.batch((function(){return c.findAll(s).forEach((function(e){e.reset()})),o.refetchQueries(d,u)}))},t.cancelQueries=function(e,t,n){var r=this,o=(0,i.I6)(e,t,n),l=o[0],s=o[1],u=void 0===s?{}:s;"undefined"===typeof u.revert&&(u.revert=!0);var c=a.V.batch((function(){return r.queryCache.findAll(l).map((function(e){return e.cancel(u)}))}));return Promise.all(c).then(i.ZT).catch(i.ZT)},t.invalidateQueries=function(e,t,n){var o,l,s,u=this,c=(0,i.I6)(e,t,n),d=c[0],f=c[1],p=(0,r.Z)({},d,{active:null==(o=null!=(l=d.refetchActive)?l:d.active)||o,inactive:null!=(s=d.refetchInactive)&&s});return a.V.batch((function(){return u.queryCache.findAll(d).forEach((function(e){e.invalidate()})),u.refetchQueries(p,f)}))},t.refetchQueries=function(e,t,n){var o=this,l=(0,i.I6)(e,t,n),s=l[0],u=l[1],c=a.V.batch((function(){return o.queryCache.findAll(s).map((function(e){return e.fetch(void 0,(0,r.Z)({},u,{meta:{refetchPage:null==s?void 0:s.refetchPage}}))}))})),d=Promise.all(c).then(i.ZT);return(null==u?void 0:u.throwOnError)||(d=d.catch(i.ZT)),d},t.fetchQuery=function(e,t,n){var r=(0,i._v)(e,t,n),o=this.defaultQueryOptions(r);"undefined"===typeof o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.fetchInfiniteQuery=function(e,t,n){var r=(0,i._v)(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,o,a,l,u,c=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,d=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,f=null==d?void 0:d.pageParam,p="forward"===(null==d?void 0:d.direction),h="backward"===(null==d?void 0:d.direction),v=(null==(a=e.state.data)?void 0:a.pages)||[],b=(null==(l=e.state.data)?void 0:l.pageParams)||[],y=(0,i.G9)(),x=null==y?void 0:y.signal,w=b,C=!1,k=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},S=function(e,t,n,r){return w=r?[t].concat(w):[].concat(w,[t]),r?[n].concat(e):[].concat(e,[n])},E=function(t,n,r,i){if(C)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);var o={queryKey:e.queryKey,signal:x,pageParam:r,meta:e.meta},a=k(o),l=Promise.resolve(a).then((function(e){return S(t,r,e,i)}));return(0,s.LE)(a)&&(l.cancel=a.cancel),l};if(v.length)if(p){var T="undefined"!==typeof f,_=T?f:m(e.options,v);u=E(v,T,_)}else if(h){var I="undefined"!==typeof f,R=I?f:g(e.options,v);u=E(v,I,R,!0)}else!function(){w=[];var t="undefined"===typeof e.options.getNextPageParam,n=!c||!v[0]||c(v[0],0,v);u=n?E([],t,b[0]):Promise.resolve(S([],b[0],v[0]));for(var r=function(n){u=u.then((function(r){if(!c||!v[n]||c(v[n],n,v)){var i=t?b[n]:m(e.options,r);return E(r,t,i)}return Promise.resolve(S(r,b[n],v[n]))}))},i=1;i0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},9951:function(){},4919:function(e,t,n){"use strict";n.d(t,{A4:function(){return S},G9:function(){return E},Gh:function(){return k},I6:function(){return d},Kp:function(){return u},PN:function(){return l},Q$:function(){return b},Rm:function(){return h},SE:function(){return a},VS:function(){return y},X7:function(){return p},ZT:function(){return o},_v:function(){return c},_x:function(){return f},mc:function(){return s},sk:function(){return i},to:function(){return m},yF:function(){return v}});var r=n(4312),i="undefined"===typeof window;function o(){}function a(e,t){return"function"===typeof e?e(t):e}function l(e){return"number"===typeof e&&e>=0&&e!==1/0}function s(e){return Array.isArray(e)?e:[e]}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t,n){return C(e)?"function"===typeof t?(0,r.Z)({},n,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function d(e,t,n){return C(e)?[(0,r.Z)({},t,{queryKey:e}),n]:[e||{},t]}function f(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,l=e.queryKey,s=e.stale;if(C(l))if(r){if(t.queryHash!==h(l,t.options))return!1}else if(!m(t.queryKey,l))return!1;var u=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,o);if("none"===u)return!1;if("all"!==u){var c=t.isActive();if("active"===u&&!c)return!1;if("inactive"===u&&c)return!1}return("boolean"!==typeof s||t.isStale()===s)&&(("boolean"!==typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function p(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(C(o)){if(!t.options.mutationKey)return!1;if(n){if(v(t.options.mutationKey)!==v(o))return!1}else if(!m(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function h(e,t){return((null==t?void 0:t.queryKeyHashFn)||v)(e)}function v(e){var t,n=s(e);return t=n,JSON.stringify(t,(function(e,t){return x(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function m(e,t){return g(s(e),s(t))}function g(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(n){return!g(e[n],t[n])})))}function b(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||x(e)&&x(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},l=0,s=0;s0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:g,isRefetching:g&&"loading"!==b,isLoadingError:"error"===b&&0===f.dataUpdatedAt,isPlaceholderData:k,isPreviousData:C,isRefetchError:"error"===b&&0!==f.dataUpdatedAt,isStale:w(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],l=null==o?void 0:o.some((function(e){return e===n})),s=null==i?void 0:i.some((function(e){return e===n}));return a&&!s&&(!o||l)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,h.VS)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,f.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,g.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;r.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(m.l);function y(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||function(e,t){return!1!==t.enabled&&e.state.dataUpdatedAt>0&&("always"===t.refetchOnMount||!1!==t.refetchOnMount&&w(e,t))}(e,t)}function x(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status||!1===r.enabled)&&w(e,n)}function w(e,t){return e.isStaleByTime(t.staleTime)}function C(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var k=l.createContext(C());function S(e,t){var n=l.useRef(!1),i=l.useState(0)[1],o=function(){var e=l.useContext(c(l.useContext(u)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e}(),a=l.useContext(k),s=o.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=r.V.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=r.V.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=r.V.batchCalls(s.onSettled)),s.suspense&&("number"!==typeof s.staleTime&&(s.staleTime=1e3),0===s.cacheTime&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(a.isReset()||(s.retryOnMount=!1));var d,f,p,h=l.useState((function(){return new t(o,s)}))[0],v=h.getOptimisticResult(s);if(l.useEffect((function(){n.current=!0,a.clearReset();var e=h.subscribe(r.V.batchCalls((function(){n.current&&i((function(e){return e+1}))})));return h.updateResult(),function(){n.current=!1,e()}}),[a,h]),l.useEffect((function(){h.setOptions(s,{listeners:!1})}),[s,h]),s.suspense&&v.isLoading)throw h.fetchOptimistic(s).then((function(e){var t=e.data;null==s.onSuccess||s.onSuccess(t),null==s.onSettled||s.onSettled(t,null)})).catch((function(e){a.clearReset(),null==s.onError||s.onError(e),null==s.onSettled||s.onSettled(void 0,e)}));if(v.isError&&!a.isReset()&&!v.isFetching&&(d=s.suspense,f=s.useErrorBoundary,p=v.error,"function"===typeof f?f(p):"boolean"===typeof f?f:d))throw v.error;return"tracked"===s.notifyOnChangeProps&&(v=h.trackResult(v,s)),v}function E(e,t,n){return S((0,h._v)(e,t,n),b)}},4853:function(e,t,n){"use strict";var r=n(8381),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:l.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},1113:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var x=y.prototype=new b;x.constructor=y,v(x,g.prototype),x.isPureReactComponent=!0;var w=Array.isArray,C=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var i,o={},a=null,l=null;if(null!=t)for(i in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var s=arguments.length-2;if(1===s)o.children=r;else if(1=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},22:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(!(0>>1;ro(s,n))uo(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(uo(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],d=1,f=null,p=3,h=!1,v=!1,m=!1,g="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(m=!1,x(e),!v)if(null!==r(u))v=!0,P(C);else{var t=r(c);null!==t&&D(w,t.startTime-e)}}function C(e,n){v=!1,m&&(m=!1,b(T),T=-1),h=!0;var o=p;try{for(x(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!R());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?f.callback=l:f===r(u)&&i(u),x(n)}else i(u);f=r(u)}if(null!==f)var s=!0;else{var d=r(c);null!==d&&D(w,d.startTime-n),s=!1}return s}finally{f=null,p=o,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,T=-1,_=5,I=-1;function R(){return!(t.unstable_now()-I<_)}function N(){if(null!==E){var e=t.unstable_now();I=e;var n=!0;try{n=E(!0,e)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"===typeof y)k=function(){y(N)};else if("undefined"!==typeof MessageChannel){var O=new MessageChannel,M=O.port2;O.port1.onmessage=N,k=function(){M.postMessage(null)}}else k=function(){g(N,0)};function P(e){E=e,S||(S=!0,k())}function D(e,n){T=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||h||(v=!0,P(C))},t.unstable_forceFrameRate=function(e){0>e||125a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(m?(b(T),T=-1):m=!0,D(w,o-a))):(e.sortIndex=l,n(u,e),v||h||(v=!0,P(C))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},2046:function(e,t,n){"use strict";e.exports=n(22)},8308:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},4695:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},1860:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw a}}}}},804:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(3538),i=n(3268);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=n(6148);function l(e,t){if(t&&("object"===o(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}function s(e){var t=(0,i.Z)();return function(){var n,i=(0,r.Z)(e);if(t){var o=(0,r.Z)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return l(this,n)}}},6222:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},3538:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},1020:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9384);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},3268:function(e,t,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},5253:function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},4501:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},9384:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},678:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2781);var i=n(2327),o=n(4501);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(s){l=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(l)throw i}}return o}}(e,t)||(0,i.Z)(e,t)||(0,o.Z)()}},1303:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(4400);var i=n(5253),o=n(2327);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,i.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2327:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4400);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},2839:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(3538),i=n(9384);var o=n(3268);function a(e,t,n){return a=(0,o.Z)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&(0,i.Z)(o,n.prototype),o},a.apply(null,arguments)}function l(e){var t="function"===typeof Map?new Map:void 0;return l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return a(e,arguments,(0,r.Z)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),(0,i.Z)(o,e)},l(e)}},4312:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t120){for(var h=Math.floor(c/80),v=c%80,m=[],g=0;g2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(n){return n+": "+a(e[n],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},9096:function(e,t){"use strict";t.Z=function(e,t){return e instanceof t}},9914:function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,{Z:function(){return r}})},7999:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return"object"==r(e)&&null!==e}n.d(t,{Z:function(){return i}})},2666:function(e,t,n){"use strict";function r(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}n.d(t,{Z:function(){return r}})},3543:function(e,t,n){"use strict";function r(e,t,n){return e.reduce((function(e,r){return e[t(r)]=n(r),e}),Object.create(null))}n.d(t,{Z:function(){return r}})},6835:function(e,t,n){"use strict";function r(e,t){for(var n=0,r=0;n0);var u=0;do{++r,u=10*u+l-i,l=t.charCodeAt(r)}while(o(l)&&u>0);if(su)return 1}else{if(al)return 1;++n,++r}}return e.length-t.length}n.d(t,{Z:function(){return r}});var i=48;function o(e){return!isNaN(e)&&i<=e&&e<=57}},8053:function(e,t){"use strict";var n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=n},3702:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(6835);function i(e,t){for(var n=Object.create(null),i=new o(e),a=Math.floor(.4*e.length)+1,l=0;lt)){for(var u=this._rows,c=0;c<=s;c++)u[0][c]=c;for(var d=1;d<=l;d++){for(var f=u[(d-1)%3],p=u[d%3],h=p[0]=d,v=1;v<=s;v++){var m=r[d-1]===i[v-1]?0:1,g=Math.min(f[v]+1,p[v-1]+1,f[v-1]+m);if(d>1&&v>1&&r[d-1]===i[v-2]&&r[d-2]===i[v-1]){var b=u[(d-2)%3][v-2];g=Math.min(g,b+1)}gt)return}var y=u[l%3][s];return y<=t?y:void 0}},e}();function a(e){for(var t=e.length,n=new Array(t),r=0;ro&&i(t[a-1]);)--a;return t.slice(o,a).join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],l=!r||o||a||n,s="";return!l||r&&i||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,l&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}n.d(t,{LZ:function(){return o},W7:function(){return r}})},7160:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},6993:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},933:function(e,t,n){"use strict";n.d(t,{Qc:function(){return _},H2:function(){return I}});var r=n(1926);function i(e,t,n){return new r._("Syntax Error: ".concat(n),void 0,e,[t])}var o=n(6993),a=n(4498),l=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),s=n(562),u=n(4548),c=n(2475),d=n(9096);function f(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||(0,c.Z)(0,"Body must be a string. Received: ".concat((0,u.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,c.Z)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,c.Z)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:s.YF,get:function(){return"Source"}}])&&f(t.prototype,n),r&&f(t,r),e}();var h=n(7160),v=n(5053),m=function(){function e(e){var t=new a.WU(l.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==l.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=b(this,e)}while(e.kind===l.COMMENT);return e},e}();function g(e){return isNaN(e)?l.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function b(e,t){for(var n=e.source,r=n.body,o=r.length,s=t.end;s31||9===o));return new a.WU(l.COMMENT,t,u,n,r,i,s.slice(t+1,u))}function w(e,t,n,r,o,s){var u=e.body,c=n,d=t,f=!1;if(45===c&&(c=u.charCodeAt(++d)),48===c){if((c=u.charCodeAt(++d))>=48&&c<=57)throw i(e,d,"Invalid number, unexpected digit after 0: ".concat(g(c),"."))}else d=C(e,d,c),c=u.charCodeAt(d);if(46===c&&(f=!0,c=u.charCodeAt(++d),d=C(e,d,c),c=u.charCodeAt(d)),69!==c&&101!==c||(f=!0,43!==(c=u.charCodeAt(++d))&&45!==c||(c=u.charCodeAt(++d)),d=C(e,d,c),c=u.charCodeAt(d)),46===c||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(c))throw i(e,d,"Invalid number, expected digit but got: ".concat(g(c),"."));return new a.WU(f?l.FLOAT:l.INT,t,d,r,o,s,u.slice(t,d))}function C(e,t,n){var r=e.body,o=t,a=n;if(a>=48&&a<=57){do{a=r.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw i(e,o,"Invalid number, expected digit but got: ".concat(g(a),"."))}function k(e,t,n,r,o){for(var s,u,c,d,f=e.body,p=t+1,h=p,v=0,m="";p=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function T(e,t,n,r,i){for(var o=e.body,s=o.length,u=t+1,c=0;u!==s&&!isNaN(c=o.charCodeAt(u))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++u;return new a.WU(l.NAME,t,u,n,r,i,o.slice(t,u))}function _(e,t){return new R(e,t).parseDocument()}function I(e,t){var n=new R(e,t);n.expectToken(l.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(l.EOF),r}var R=function(){function e(e,t){var n=function(e){return(0,d.Z)(e,p)}(e)?e:new p(e);this._lexer=new m(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(l.NAME);return{kind:o.h.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:o.h.DOCUMENT,definitions:this.many(l.SOF,this.parseDefinition,l.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(l.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(l.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(l.BRACE_L))return{kind:o.h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(l.NAME)&&(t=this.parseName()),{kind:o.h.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(l.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(l.PAREN_L,this.parseVariableDefinition,l.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:o.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(l.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(l.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(l.DOLLAR),{kind:o.h.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:o.h.SELECTION_SET,selections:this.many(l.BRACE_L,this.parseSelection,l.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(l.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(l.COLON)?(e=r,t=this.parseName()):t=r,{kind:o.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(l.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(l.PAREN_L,t,l.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(l.COLON),{kind:o.h.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:o.h.ARGUMENT,name:this.parseName(),value:(this.expectToken(l.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(l.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(l.NAME)?{kind:o.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:o.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:o.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:o.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case l.BRACKET_L:return this.parseList(e);case l.BRACE_L:return this.parseObject(e);case l.INT:return this._lexer.advance(),{kind:o.h.INT,value:t.value,loc:this.loc(t)};case l.FLOAT:return this._lexer.advance(),{kind:o.h.FLOAT,value:t.value,loc:this.loc(t)};case l.STRING:case l.BLOCK_STRING:return this.parseStringLiteral();case l.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:o.h.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:o.h.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:o.h.NULL,loc:this.loc(t)};default:return{kind:o.h.ENUM,value:t.value,loc:this.loc(t)}}case l.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:o.h.STRING,value:e.value,block:e.kind===l.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:o.h.LIST,values:this.any(l.BRACKET_L,(function(){return t.parseValueLiteral(e)}),l.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:o.h.OBJECT,fields:this.any(l.BRACE_L,(function(){return t.parseObjectField(e)}),l.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(l.COLON),{kind:o.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(l.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(l.AT),{kind:o.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(l.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(l.BRACKET_R),e={kind:o.h.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(l.BANG)?{kind:o.h.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:o.h.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===l.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(l.STRING)||this.peek(l.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(l.BRACE_L,this.parseOperationTypeDefinition,l.BRACE_R);return{kind:o.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(l.COLON);var n=this.parseNamedType();return{kind:o.h.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:o.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:o.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(l.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(l.AMP)||this.peek(l.NAME));return t}return this.delimitedMany(l.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(l.BRACE_L)&&this._lexer.lookahead().kind===l.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(l.BRACE_L,this.parseFieldDefinition,l.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(l.COLON);var i=this.parseTypeReference(),a=this.parseDirectives(!0);return{kind:o.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(l.PAREN_L,this.parseInputValueDef,l.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(l.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(l.EQUALS)&&(r=this.parseValueLiteral(!0));var a=this.parseDirectives(!0);return{kind:o.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:a,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:o.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:o.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(l.EQUALS)?this.delimitedMany(l.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:o.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(l.BRACE_L,this.parseEnumValueDefinition,l.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:o.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:o.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(l.BRACE_L,this.parseInputValueDef,l.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===l.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(l.BRACE_L,this.parseOperationTypeDefinition,l.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:o.h.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:o.h.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:o.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:o.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:o.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:o.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:o.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(l.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return{kind:o.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(l.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==h.B[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new a.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw i(this._lexer.source,t.start,"Expected ".concat(O(e),", found ").concat(N(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==l.NAME||t.value!==e)throw i(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(N(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===l.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return i(this._lexer.source,t.start,"Unexpected ".concat(N(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function N(e){var t=e.value;return O(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function O(e){return function(e){return e===l.BANG||e===l.DOLLAR||e===l.AMP||e===l.PAREN_L||e===l.PAREN_R||e===l.SPREAD||e===l.COLON||e===l.EQUALS||e===l.AT||e===l.BRACKET_L||e===l.BRACKET_R||e===l.BRACE_L||e===l.PIPE||e===l.BRACE_R}(e)?'"'.concat(e,'"'):e}},5693:function(e,t,n){"use strict";n.r(t),n.d(t,{print:function(){return o}});var r=n(4217),i=n(5053);function o(e){return(0,r.Vn)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return s(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=c("(",s(e.variableDefinitions,", "),")"),i=s(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?s([t,s([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+c(" = ",r)+c(" ",s(i," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=c("",t,": ")+n,l=a+c("(",s(r,", "),")");return l.length>80&&(l=a+c("(\n",d(s(r,"\n")),"\n)")),s([l,s(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+c(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return s(["...",c("on ",t),s(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(c("(",s(r,", "),")")," ")+"on ".concat(n," ").concat(c("",s(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+c("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:l((function(e){var t=e.directives,n=e.operationTypes;return s(["schema",s(t," "),u(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:l((function(e){return s(["scalar",e.name,s(e.directives," ")]," ")})),ObjectTypeDefinition:l((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["type",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")})),FieldDefinition:l((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(p(n)?c("(\n",d(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+": "+r+c(" ",s(i," "))})),InputValueDefinition:l((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return s([t+": "+n,c("= ",r),s(i," ")]," ")})),InterfaceTypeDefinition:l((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["interface",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")})),UnionTypeDefinition:l((function(e){var t=e.name,n=e.directives,r=e.types;return s(["union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")})),EnumTypeDefinition:l((function(e){var t=e.name,n=e.directives,r=e.values;return s(["enum",t,s(n," "),u(r)]," ")})),EnumValueDefinition:l((function(e){return s([e.name,s(e.directives," ")]," ")})),InputObjectTypeDefinition:l((function(e){var t=e.name,n=e.directives,r=e.fields;return s(["input",t,s(n," "),u(r)]," ")})),DirectiveDefinition:l((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(p(n)?c("(\n",d(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return s(["extend schema",s(t," "),u(n)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend type",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend interface",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return s(["extend union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return s(["extend enum",t,s(n," "),u(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend input",t,s(n," "),u(r)]," ")}};function l(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function u(e){return c("{\n",d(s(e,"\n")),"\n}")}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function d(e){return c(" ",e.replace(/\n/g,"\n "))}function f(e){return-1!==e.indexOf("\n")}function p(e){return null!=e&&e.some(f)}},4217:function(e,t,n){"use strict";n.d(t,{$_:function(){return a},CK:function(){return u},Vn:function(){return l},j1:function(){return s}});var r=n(4548),i=n(4498),o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,l=void 0,s=Array.isArray(e),c=[e],d=-1,f=[],p=void 0,h=void 0,v=void 0,m=[],g=[],b=e;do{var y=++d===c.length,x=y&&0!==f.length;if(y){if(h=0===g.length?void 0:m[m.length-1],p=v,v=g.pop(),x){if(s)p=p.slice();else{for(var w={},C=0,k=Object.keys(p);C9999999)throw new TypeError("Near-infinite iteration.");return l}var u=e.length;if("number"===typeof u&&u>=0&&u%1===0){for(var c=[],d=0;d0?e:void 0}B.prototype.toString=function(){return"["+String(this.ofType)+"]"},B.prototype.toJSON=function(){return this.toString()},Object.defineProperty(B.prototype,i.YF,{get:function(){return"GraphQLList"}}),(0,v.Z)(B),V.prototype.toString=function(){return String(this.ofType)+"!"},V.prototype.toJSON=function(){return this.toString()},Object.defineProperty(V.prototype,i.YF,{get:function(){return"GraphQLNonNull"}}),(0,v.Z)(V);var Q=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:h;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:h,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i(w(e,t))},this.extensions=e.extensions&&(0,s.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=$(e.extensionASTNodes),"string"===typeof e.name||(0,u.Z)(0,"Must provide name."),null==e.specifiedByUrl||"string"===typeof e.specifiedByUrl||(0,u.Z)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,o.Z)(e.specifiedByUrl),".")),null==e.serialize||"function"===typeof e.serialize||(0,u.Z)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||(0,u.Z)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLScalarType"}}]),e}();(0,v.Z)(Q);var Y=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&(0,s.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=$(e.extensionASTNodes),this._fields=X.bind(void 0,e),this._interfaces=J.bind(void 0,e),"string"===typeof e.name||(0,u.Z)(0,"Must provide name."),null==e.isTypeOf||"function"===typeof e.isTypeOf||(0,u.Z)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,o.Z)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:te(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLObjectType"}}]),e}();function J(e){var t,n=null!==(t=K(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||(0,u.Z)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function X(e){var t=K(e.fields);return ee(t)||(0,u.Z)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),l(t,(function(t,n){var i;ee(t)||(0,u.Z)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||(0,u.Z)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"===typeof t.resolve||(0,u.Z)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,o.Z)(t.resolve),"."));var a=null!==(i=t.args)&&void 0!==i?i:{};ee(a)||(0,u.Z)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var l=(0,r.Z)(a).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&(0,s.Z)(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:l,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&(0,s.Z)(t.extensions),astNode:t.astNode}}))}function ee(e){return(0,p.Z)(e)&&!Array.isArray(e)}function te(e){return l(e,(function(e){return{description:e.description,type:e.type,args:ne(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function ne(e){return(0,c.Z)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function re(e){return D(e.type)&&void 0===e.defaultValue}(0,v.Z)(Y);var ie=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,s.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=$(e.extensionASTNodes),this._fields=X.bind(void 0,e),this._interfaces=J.bind(void 0,e),"string"===typeof e.name||(0,u.Z)(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||(0,u.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,o.Z)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:te(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLInterfaceType"}}]),e}();(0,v.Z)(ie);var oe=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,s.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=$(e.extensionASTNodes),this._types=ae.bind(void 0,e),"string"===typeof e.name||(0,u.Z)(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||(0,u.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,o.Z)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"===typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLUnionType"}}]),e}();function ae(e){var t=K(e.types);return Array.isArray(t)||(0,u.Z)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}(0,v.Z)(oe);var le=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,s.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=$(e.extensionASTNodes),this._values=(t=this.name,ee(n=e.values)||(0,u.Z)(0,"".concat(t," values must be an object with value names as keys.")),(0,r.Z)(n).map((function(e){var n=e[0],r=e[1];return ee(r)||(0,u.Z)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,o.Z)(r),".")),!("isDeprecated"in r)||(0,u.Z)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,s.Z)(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=(0,a.Z)(this._values,(function(e){return e.name})),"string"===typeof e.name||(0,u.Z)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new g._('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,o.Z)(e)));return t.name},t.parseValue=function(e){if("string"!==typeof e){var t=(0,o.Z)(e);throw new g._('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+se(this,t))}var n=this.getValue(e);if(null==n)throw new g._('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+se(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==b.h.ENUM){var n=(0,y.print)(e);throw new g._('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+se(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=(0,y.print)(e);throw new g._('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+se(this,i),e)}return r.value},t.toConfig=function(){var e,t=(0,c.Z)(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLEnumType"}}]),e}();function se(e,t){var n=e.getValues().map((function(e){return e.name})),r=(0,m.Z)(t,n);return(0,f.Z)("the enum value",r)}(0,v.Z)(le);var ue=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,s.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=$(e.extensionASTNodes),this._fields=ce.bind(void 0,e),"string"===typeof e.name||(0,u.Z)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=l(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLInputObjectType"}}]),e}();function ce(e){var t=K(e.fields);return ee(t)||(0,u.Z)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),l(t,(function(t,n){return!("resolve"in t)||(0,u.Z)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&(0,s.Z)(t.extensions),astNode:t.astNode}}))}function de(e){return D(e.type)&&void 0===e.defaultValue}(0,v.Z)(ue)},1829:function(e,t,n){"use strict";n.d(t,{NZ:function(){return v},V4:function(){return x},fg:function(){return b},wX:function(){return h}});var r=n(7335),i=n(562),o=n(939),a=n(2475),l=n(9096),s=n(7999),u=n(7950),c=n(7160),d=n(282),f=n(2159);function p(e,t){for(var n=0;nd||nd||ed||t1&&"_"===e[0]&&"_"===e[1]?new a._('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):s.test(e)?void 0:new a._('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}var c=n(1502),d=n(6143),f=n(5246),p=n(1829),h=n(2159);function v(e){if((0,d.EO)(e),e.__validationErrors)return e.__validationErrors;var t=new g(e);!function(e){var t=e.schema,n=t.getQueryType();if(n){if(!(0,h.lp)(n)){var r;e.reportError("Query root type must be Object type, it cannot be ".concat((0,o.Z)(n),"."),null!==(r=b(t,"query"))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);var i,a=t.getMutationType();a&&!(0,h.lp)(a)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,o.Z)(a),"."),null!==(i=b(t,"mutation"))&&void 0!==i?i:a.astNode);var l,s=t.getSubscriptionType();s&&!(0,h.lp)(s)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,o.Z)(s),"."),null!==(l=b(t,"subscription"))&&void 0!==l?l:s.astNode)}(t),function(e){for(var t=0,n=e.schema.getDirectives();t0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case i.h.SELECTION_SET:var n=(0,l.xC)(this.getType());this._parentTypeStack.push((0,l.Gv)(n)?n:void 0);break;case i.h.FIELD:var o,a,s=this.getParentType();s&&(o=this._getFieldDef(t,s,e))&&(a=o.type),this._fieldDefStack.push(o),this._typeStack.push((0,l.SZ)(a)?a:void 0);break;case i.h.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.h.OPERATION_DEFINITION:var c;switch(e.operation){case"query":c=t.getQueryType();break;case"mutation":c=t.getMutationType();break;case"subscription":c=t.getSubscriptionType()}this._typeStack.push((0,l.lp)(c)?c:void 0);break;case i.h.INLINE_FRAGMENT:case i.h.FRAGMENT_DEFINITION:var d=e.typeCondition,f=d?(0,u._)(t,d):(0,l.xC)(this.getType());this._typeStack.push((0,l.SZ)(f)?f:void 0);break;case i.h.VARIABLE_DEFINITION:var p=(0,u._)(t,e.type);this._inputTypeStack.push((0,l.j$)(p)?p:void 0);break;case i.h.ARGUMENT:var h,v,m,g=null!==(h=this.getDirective())&&void 0!==h?h:this.getFieldDef();g&&(v=(0,r.Z)(g.args,(function(t){return t.name===e.name.value})))&&(m=v.type),this._argument=v,this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push((0,l.j$)(m)?m:void 0);break;case i.h.LIST:var b=(0,l.tf)(this.getInputType()),y=(0,l.HG)(b)?b.ofType:b;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,l.j$)(y)?y:void 0);break;case i.h.OBJECT_FIELD:var x,w,C=(0,l.xC)(this.getInputType());(0,l.hL)(C)&&(w=C.getFields()[e.name.value])&&(x=w.type),this._defaultValueStack.push(w?w.defaultValue:void 0),this._inputTypeStack.push((0,l.j$)(x)?x:void 0);break;case i.h.ENUM:var k,S=(0,l.xC)(this.getInputType());(0,l.EM)(S)&&(k=S.getValue(e.value)),this._enumValue=k}},t.leave=function(e){switch(e.kind){case i.h.SELECTION_SET:this._parentTypeStack.pop();break;case i.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.h.DIRECTIVE:this._directive=null;break;case i.h.OPERATION_DEFINITION:case i.h.INLINE_FRAGMENT:case i.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.h.LIST:case i.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.h.ENUM:this._enumValue=null}},e}();function d(e,t,n){var r=n.name.value;return r===s.Az.name&&e.getQueryType()===t?s.Az:r===s.tF.name&&e.getQueryType()===t?s.tF:r===s.hU.name&&(0,l.Gv)(t)?s.hU:(0,l.lp)(t)||(0,l.oT)(t)?t.getFields()[r]:void 0}function f(e,t){return{enter:function(n){e.enter(n);var r=(0,a.CK)(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),(0,o.UG)(i)&&e.enter(i)),i}},leave:function(n){var r,i=(0,a.CK)(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}},4058:function(e,t,n){"use strict";n.d(t,{J:function(){return p}});var r=n(8866),i=n(2144),o=n(4548),a=n(9914),l=n(7999),s=n(562);function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var c=n(6993),d=n(282),f=n(2159);function p(e,t){if((0,f.zM)(t)){var n=p(e,t.ofType);return(null===n||void 0===n?void 0:n.kind)===c.h.NULL?null:n}if(null===e)return{kind:c.h.NULL};if(void 0===e)return null;if((0,f.HG)(t)){var v=t.ofType,m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};if(null==e||"object"!==u(e))return null;if(Array.isArray(e))return e.map(t);var n=e[s.Xr];if("function"===typeof n){for(var r,i=n.call(e),o=[],a=0;!(r=i.next()).done;++a)o.push(t(r.value,a));return o}var l=e.length;if("number"===typeof l&&l>=0&&l%1===0){for(var c=[],d=0;d=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var g=(0,t.createContext)(null);var b=(0,t.createContext)(null);var y=(0,t.createContext)({outlet:null,matches:[]});function x(e,t){if(!e)throw new Error(t)}function w(e,t,n){void 0===n&&(n="/");var r=R(("string"===typeof t?m(t):t).pathname||"/",n);if(null==r)return null;var i=C(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var o=null,a=0;null==o&&a0&&(!0===e.index&&x(!1),C(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:E(a,e.index),routesMeta:l})})),t}var k=/^:\w+$/,S=function(e){return"*"===e};function E(e,t){var n=e.split("/"),r=n.length;return n.some(S)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!S(e)})).reduce((function(e,t){return e+(k.test(t)?3:""===t?1:10)}),r)}function T(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a=0?t[a]:"/"}var s=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?m(e):e,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,l=void 0===a?"":a,s=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:s,search:M(o),hash:P(l)}}(i,r);return o&&"/"!==o&&o.endsWith("/")&&!s.pathname.endsWith("/")&&(s.pathname+="/"),s}function R(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}var N=function(e){return e.join("/").replace(/\/\/+/g,"/")},O=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},M=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},P=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function D(e){A()||x(!1);var n=(0,t.useContext)(g),r=n.basename,i=n.navigator,o=z(e),a=o.hash,l=o.pathname,s=o.search,u=l;if("/"!==r){var c=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?m(e).pathname:e.pathname}(e),d=null!=c&&c.endsWith("/");u="/"===l?r+(d?"/":""):N([r,l])}return i.createHref({pathname:u,search:s,hash:a})}function A(){return null!=(0,t.useContext)(b)}function Z(){return A()||x(!1),(0,t.useContext)(b).location}function j(){A()||x(!1);var e=(0,t.useContext)(g),n=e.basename,r=e.navigator,i=(0,t.useContext)(y).matches,o=Z().pathname,a=JSON.stringify(i.map((function(e){return e.pathnameBase}))),l=(0,t.useRef)(!1);return(0,t.useEffect)((function(){l.current=!0})),(0,t.useCallback)((function(e,t){if(void 0===t&&(t={}),l.current)if("number"!==typeof e){var i=I(e,JSON.parse(a),o);"/"!==n&&(i.pathname=N([n,i.pathname])),(t.replace?r.replace:r.push)(i,t.state)}else r.go(e)}),[n,r,a,o])}var L=(0,t.createContext)(null);function F(){var e=(0,t.useContext)(y).matches,n=e[e.length-1];return n?n.params:{}}function z(e){var n=(0,t.useContext)(y).matches,r=Z().pathname,i=JSON.stringify(n.map((function(e){return e.pathnameBase})));return(0,t.useMemo)((function(){return I(e,JSON.parse(i),r)}),[e,i,r])}function B(e,n){A()||x(!1);var r,i=(0,t.useContext)(y).matches,o=i[i.length-1],a=o?o.params:{},l=(o&&o.pathname,o?o.pathnameBase:"/"),s=(o&&o.route,Z());if(n){var u,c="string"===typeof n?m(n):n;"/"===l||(null==(u=c.pathname)?void 0:u.startsWith(l))||x(!1),r=c}else r=s;var d=r.pathname||"/",f=w(e,{pathname:"/"===l?d:d.slice(l.length)||"/"});return V(f&&f.map((function(e){return Object.assign({},e,{params:Object.assign({},a,e.params),pathname:N([l,e.pathname]),pathnameBase:"/"===e.pathnameBase?l:N([l,e.pathnameBase])})})),i)}function V(e,n){return void 0===n&&(n=[]),null==e?null:e.reduceRight((function(r,i,o){return(0,t.createElement)(y.Provider,{children:void 0!==i.route.element?i.route.element:r,value:{outlet:r,matches:n.concat(e.slice(0,o+1))}})}),null)}function H(e){var n=e.to,r=e.replace,i=e.state;A()||x(!1);var o=j();return(0,t.useEffect)((function(){o(n,{replace:r,state:i})})),null}function U(e){return function(e){var n=(0,t.useContext)(y).outlet;return n?(0,t.createElement)(L.Provider,{value:e},n):n}(e.context)}function q(n){var r=n.basename,i=void 0===r?"/":r,o=n.children,a=void 0===o?null:o,l=n.location,s=n.navigationType,u=void 0===s?e.Pop:s,c=n.navigator,d=n.static,f=void 0!==d&&d;A()&&x(!1);var p=O(i),h=(0,t.useMemo)((function(){return{basename:p,navigator:c,static:f}}),[p,c,f]);"string"===typeof l&&(l=m(l));var v=l,y=v.pathname,w=void 0===y?"/":y,C=v.search,k=void 0===C?"":C,S=v.hash,E=void 0===S?"":S,T=v.state,_=void 0===T?null:T,I=v.key,N=void 0===I?"default":I,M=(0,t.useMemo)((function(){var e=R(w,p);return null==e?null:{pathname:e,search:k,hash:E,state:_,key:N}}),[p,w,k,E,_,N]);return null==M?null:(0,t.createElement)(g.Provider,{value:h},(0,t.createElement)(b.Provider,{children:a,value:{location:M,navigationType:u}}))}function W(){return W=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var K=["onClick","reloadDocument","replace","state","target","to"];function $(n){var r=n.basename,i=n.children,o=n.window,a=(0,t.useRef)();null==a.current&&(a.current=function(t){void 0===t&&(t={});var n=t.window,r=void 0===n?document.defaultView:n,i=r.history;function o(){var e=r.location,t=e.pathname,n=e.search,o=e.hash,a=i.state||{};return[a.idx,u({pathname:t,search:n,hash:o,state:a.usr||null,key:a.key||"default"})]}var a=null;r.addEventListener(d,(function(){if(a)w.call(a),a=null;else{var t=e.Pop,n=o(),r=n[0],i=n[1];if(w.length){if(null!=r){var l=b-r;l&&(a={action:t,location:i,retry:function(){_(-1*l)}},_(l))}}else T(t)}}));var l=e.Pop,g=o(),b=g[0],y=g[1],x=p(),w=p();function C(e){return"string"===typeof e?e:v(e)}function k(e,t){return void 0===t&&(t=null),u(s({pathname:y.pathname,hash:"",search:""},"string"===typeof e?m(e):e,{state:t,key:h()}))}function S(e,t){return[{usr:e.state,key:e.key,idx:t},C(e)]}function E(e,t,n){return!w.length||(w.call({action:e,location:t,retry:n}),!1)}function T(e){l=e;var t=o();b=t[0],y=t[1],x.call({action:l,location:y})}function _(e){i.go(e)}null==b&&(b=0,i.replaceState(s({},i.state,{idx:b}),""));var I={get action(){return l},get location(){return y},createHref:C,push:function t(n,o){var a=e.Push,l=k(n,o);if(E(a,l,(function(){t(n,o)}))){var s=S(l,b+1),u=s[0],c=s[1];try{i.pushState(u,"",c)}catch(d){r.location.assign(c)}T(a)}},replace:function t(n,r){var o=e.Replace,a=k(n,r);if(E(o,a,(function(){t(n,r)}))){var l=S(a,b),s=l[0],u=l[1];i.replaceState(s,"",u),T(o)}},go:_,back:function(){_(-1)},forward:function(){_(1)},listen:function(e){return x.push(e)},block:function(e){var t=w.push(e);return 1===w.length&&r.addEventListener(c,f),function(){t(),w.length||r.removeEventListener(c,f)}}};return I}({window:o}));var g=a.current,b=(0,t.useState)({action:g.action,location:g.location}),y=(0,l.Z)(b,2),x=y[0],w=y[1];return(0,t.useLayoutEffect)((function(){return g.listen(w)}),[g]),(0,t.createElement)(q,{basename:r,children:i,location:x.location,navigationType:x.action,navigator:g})}var Q=(0,t.forwardRef)((function(e,n){var r=e.onClick,i=e.reloadDocument,o=e.replace,a=void 0!==o&&o,l=e.state,s=e.target,u=e.to,c=G(e,K),d=D(u),f=function(e,n){var r=void 0===n?{}:n,i=r.target,o=r.replace,a=r.state,l=j(),s=Z(),u=z(e);return(0,t.useCallback)((function(t){if(0===t.button&&(!i||"_self"===i)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();var n=!!o||v(s)===v(u);l(e,{replace:n,state:a})}}),[s,l,u,o,a,i,e])}(u,{replace:a,state:l,target:s});return(0,t.createElement)("a",W({},c,{href:d,onClick:function(e){r&&r(e),e.defaultPrevented||i||f(e)},ref:n,target:s}))}));function Y(e){var n=(0,t.useRef)(J(e)),r=Z(),i=(0,t.useMemo)((function(){var e,t=J(r.search),i=(0,a.Z)(n.current.keys());try{var o=function(){var r=e.value;t.has(r)||n.current.getAll(r).forEach((function(e){t.append(r,e)}))};for(i.s();!(e=i.n()).done;)o()}catch(l){i.e(l)}finally{i.f()}return t}),[r.search]),o=j();return[i,(0,t.useCallback)((function(e,t){o("?"+J(e),t)}),[o])]}function J(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((function(t,n){var r=e[n];return t.concat(Array.isArray(r)?r.map((function(e){return[n,e]})):[[n,r]])}),[]))}var X=n(6222);function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,i=void 0===r||r,o=e.limit,a=e.matchFrom,l=void 0===a?"any":a,s=e.stringify,u=e.trim,c=void 0!==u&&u;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,u=c?r.trim():r;i&&(u=u.toLowerCase()),n&&(u=Ie(u));var d=u?e.filter((function(e){var t=(s||a)(e);return i&&(t=t.toLowerCase()),n&&(t=Ie(t)),"start"===l?0===t.indexOf(u):t.indexOf(u)>-1})):e;return"number"===typeof o?d.slice(0,o):d}}function Ne(e,t){for(var n=0;n0&&!ue,st=(0,Te.Z)((function(e){-1===e?me.current.focus():xe.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));t.useEffect((function(){J&&Re>Le.length-1&&(Pe(-1),st(-1))}),[Le,J,Re,st]);var ut=(0,Te.Z)((function(e){var t=e.event,n=e.index,r=e.reason,i=void 0===r?"auto":r;if(Ae.current=n,-1===n?me.current.removeAttribute("aria-activedescendant"):me.current.setAttribute("aria-activedescendant","".concat(pe,"-option-").concat(n)),te&&te(t,-1===n?null:at[n],i),ge.current){var o=ge.current.querySelector('[role="option"].'.concat(a,"-focused"));o&&(o.classList.remove("".concat(a,"-focused")),o.classList.remove("".concat(a,"-focusVisible")));var l=ge.current.parentElement.querySelector('[role="listbox"]');if(l)if(-1!==n){var s=ge.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.classList.add("".concat(a,"-focused")),"keyboard"===i&&s.classList.add("".concat(a,"-focusVisible")),l.scrollHeight>l.clientHeight&&"mouse"!==i)){var u=s,c=l.clientHeight+l.scrollTop,d=u.offsetTop+u.offsetHeight;d>c?l.scrollTop=d-l.clientHeight:u.offsetTop-u.offsetHeight*(V?1.3:0)1?0:e:t>e?t===e+1&&G?-1:M||Math.abs(r)>1?e:0:t}(),o);if(ut({index:s,reason:l,event:t}),u&&"reset"!==r)if(-1===s)me.current.value=Ve;else{var c=n(at[s]);me.current.value=c,0===c.toLowerCase().indexOf(Ve.toLowerCase())&&Ve.length>0&&me.current.setSelectionRange(Ve.length,c.length)}}})),dt=t.useCallback((function(){if(ot){var e=J?Le[0]:Le;if(0!==at.length&&null!=e){if(ge.current)if(null==e)Ae.current>=at.length-1?ut({index:at.length-1}):ut({index:Ae.current});else{var t=at[Ae.current];if(J&&t&&-1!==Ne(Le,(function(e){return Q(t,e)})))return;var n=Ne(at,(function(t){return Q(t,e)}));-1===n?ct({diff:"reset"}):ut({index:n})}}else ct({diff:"reset"})}}),[at.length,!J&&Le,Z,ct,ut,ot,Ve,J]),ft=(0,Te.Z)((function(e){(0,_e.Z)(ge,e),e&&dt()}));t.useEffect((function(){dt()}),[dt]);var pt=function(e){Je||(Xe(!0),rt(!0),re&&re(e))},ht=function(e,t){Je&&(Xe(!1),ee&&ee(e,t))},vt=function(e,t,n,r){if(J){if(Le.length===t.length&&Le.every((function(e,n){return e===t[n]})))return}else if(Le===t)return;X&&X(e,t,n,r),Fe(t)},mt=t.useRef(!1),gt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",i=n,o=t;if(J){var a=Ne(o=Array.isArray(Le)?Le.slice():[],(function(e){return Q(t,e)}));-1===a?o.push(t):"freeSolo"!==r&&(o.splice(a,1),i="removeOption")}Ke(e,o),vt(e,o,i,{option:t}),_||e&&(e.ctrlKey||e.metaKey)||ht(e,i),(!0===v||"touch"===v&&mt.current||"mouse"===v&&!mt.current)&&me.current.blur()};var bt=function(e,t){if(J){""===Ve&&ht(e,"toggleInput");var n=Re;-1===Re?""===Ve&&"previous"===t&&(n=Le.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Le.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Le.length||"previous"===t&&-1===n)return-1;var r=xe.querySelector('[data-tag-index="'.concat(n,'"]'));if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Pe(n),st(n)}},yt=function(e){he.current=!0,He(""),ne&&ne(e,"","clear"),vt(e,J?[]:null,"clear")},xt=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Re&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Pe(-1),st(-1)),229!==t.which))switch(t.key){case"Home":ot&&U&&(t.preventDefault(),ct({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ot&&U&&(t.preventDefault(),ct({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ct({diff:-5,direction:"previous",reason:"keyboard",event:t}),pt(t);break;case"PageDown":t.preventDefault(),ct({diff:5,direction:"next",reason:"keyboard",event:t}),pt(t);break;case"ArrowDown":t.preventDefault(),ct({diff:1,direction:"next",reason:"keyboard",event:t}),pt(t);break;case"ArrowUp":t.preventDefault(),ct({diff:-1,direction:"previous",reason:"keyboard",event:t}),pt(t);break;case"ArrowLeft":bt(t,"previous");break;case"ArrowRight":bt(t,"next");break;case"Enter":if(-1!==Ae.current&&ot){var n=at[Ae.current],r=!!F&&F(n);if(t.preventDefault(),r)return;gt(t,n,"selectOption"),u&&me.current.setSelectionRange(me.current.value.length,me.current.value.length)}else L&&""!==Ve&&!1===it&&(J&&t.preventDefault(),gt(t,Ve,"createOption","freeSolo"));break;case"Escape":ot?(t.preventDefault(),t.stopPropagation(),ht(t,"escape")):y&&(""!==Ve||J&&Le.length>0)&&(t.preventDefault(),t.stopPropagation(),yt(t));break;case"Backspace":if(J&&!ue&&""===Ve&&Le.length>0){var i=-1===Re?Le.length-1:Re,o=Le.slice();o.splice(i,1),vt(t,o,"removeOption",{option:Le[i]})}break;case"Delete":if(J&&!ue&&""===Ve&&Le.length>0&&-1!==Re){var a=Re,l=Le.slice();l.splice(a,1),vt(t,l,"removeOption",{option:Le[a]})}}}},wt=function(e){Ge(!0),ae&&!he.current&&pt(e)},Ct=function(e){i(ge)?me.current.focus():(Ge(!1),ve.current=!0,he.current=!1,p&&-1!==Ae.current&&ot?gt(e,at[Ae.current],"blur"):p&&L&&""!==Ve?gt(e,Ve,"blur","freeSolo"):g&&Ke(e,Le),ht(e,"blur"))},kt=function(e){var t=e.target.value;Ve!==t&&(He(t),rt(!1),ne&&ne(e,t,"input")),""===t?E||J||vt(e,null,"clear"):pt(e)},St=function(e){ut({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Et=function(){mt.current=!0},Tt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));gt(e,at[t],"selectOption"),mt.current=!1},_t=function(e){return function(t){var n=Le.slice();n.splice(e,1),vt(t,n,"removeOption",{option:Le[e]})}},It=function(e){Je?ht(e,"toggleInput"):pt(e)},Rt=function(e){e.target.getAttribute("id")!==pe&&e.preventDefault()},Nt=function(){me.current.focus(),de&&ve.current&&me.current.selectionEnd-me.current.selectionStart===0&&me.current.select(),ve.current=!1},Ot=function(e){""!==Ve&&Je||It(e)},Mt=L&&Ve.length>0;Mt=Mt||(J?Le.length>0:null!==Le);var Pt=at;if(V){new Map;Pt=at.reduce((function(e,t,n){var r=V(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return I&&We&&Ct(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ke({"aria-owns":lt?"".concat(pe,"-listbox"):null},e,{onKeyDown:xt(e),onMouseDown:Rt,onClick:Nt})},getInputLabelProps:function(){return{id:"".concat(pe,"-label"),htmlFor:pe}},getInputProps:function(){return{id:pe,value:Ve,onBlur:Ct,onFocus:wt,onChange:kt,onMouseDown:Ot,"aria-activedescendant":ot?"":null,"aria-autocomplete":u?"both":"list","aria-controls":lt?"".concat(pe,"-listbox"):void 0,"aria-expanded":lt,autoComplete:"off",ref:me,autoCapitalize:"none",spellCheck:"false",role:"combobox"}},getClearProps:function(){return{tabIndex:-1,onClick:yt}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:It}},getTagProps:function(e){var t=e.index;return ke({key:t,"data-tag-index":t,tabIndex:-1},!ue&&{onDelete:_t(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(pe,"-listbox"),"aria-labelledby":"".concat(pe,"-label"),ref:ft,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,r=e.option,i=(J?Le:[Le]).some((function(e){return null!=e&&Q(r,e)})),o=!!F&&F(r);return{key:n(r),tabIndex:-1,role:"option",id:"".concat(pe,"-option-").concat(t),onMouseOver:St,onClick:Tt,onTouchStart:Et,"data-option-index":t,"aria-disabled":o,"aria-selected":i}},id:pe,inputValue:Ve,value:Le,dirty:Mt,popupOpen:ot,focused:We||-1!==Re,anchorEl:xe,setAnchorEl:we,focusedTag:Re,groupedOptions:Pt}}var De=n(3566);function Ae(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var Ze=n(8444),je=n(2371),Le=n(9890);function Fe(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ze(e){return e instanceof Fe(e).Element||e instanceof Element}function Be(e){return e instanceof Fe(e).HTMLElement||e instanceof HTMLElement}function Ve(e){return"undefined"!==typeof ShadowRoot&&(e instanceof Fe(e).ShadowRoot||e instanceof ShadowRoot)}var He=Math.max,Ue=Math.min,qe=Math.round;function We(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ge(){return!/^((?!chrome|android).)*safari/i.test(We())}function Ke(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Be(e)&&(i=e.offsetWidth>0&&qe(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&qe(r.height)/e.offsetHeight||1);var a=(ze(e)?Fe(e):window).visualViewport,l=!Ge()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,c=r.width/i,d=r.height/o;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function $e(e){var t=Fe(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Qe(e){return e?(e.nodeName||"").toLowerCase():null}function Ye(e){return((ze(e)?e.ownerDocument:e.document)||window.document).documentElement}function Je(e){return Ke(Ye(e)).left+$e(e).scrollLeft}function Xe(e){return Fe(e).getComputedStyle(e)}function et(e){var t=Xe(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function tt(e,t,n){void 0===n&&(n=!1);var r=Be(t),i=Be(t)&&function(e){var t=e.getBoundingClientRect(),n=qe(t.width)/e.offsetWidth||1,r=qe(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=Ye(t),a=Ke(e,i,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Qe(t)||et(o))&&(l=function(e){return e!==Fe(e)&&Be(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:$e(e);var t}(t)),Be(t)?((s=Ke(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Je(o))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function nt(e){var t=Ke(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function rt(e){return"html"===Qe(e)?e:e.assignedSlot||e.parentNode||(Ve(e)?e.host:null)||Ye(e)}function it(e){return["html","body","#document"].indexOf(Qe(e))>=0?e.ownerDocument.body:Be(e)&&et(e)?e:it(rt(e))}function ot(e,t){var n;void 0===t&&(t=[]);var r=it(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Fe(r),a=i?[o].concat(o.visualViewport||[],et(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(ot(rt(a)))}function at(e){return["table","td","th"].indexOf(Qe(e))>=0}function lt(e){return Be(e)&&"fixed"!==Xe(e).position?e.offsetParent:null}function st(e){for(var t=Fe(e),n=lt(e);n&&at(n)&&"static"===Xe(n).position;)n=lt(n);return n&&("html"===Qe(n)||"body"===Qe(n)&&"static"===Xe(n).position)?t:n||function(e){var t=/firefox/i.test(We());if(/Trident/i.test(We())&&Be(e)&&"fixed"===Xe(e).position)return null;var n=rt(e);for(Ve(n)&&(n=n.host);Be(n)&&["html","body"].indexOf(Qe(n))<0;){var r=Xe(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var ut="top",ct="bottom",dt="right",ft="left",pt="auto",ht=[ut,ct,dt,ft],vt="start",mt="end",gt="viewport",bt="popper",yt=ht.reduce((function(e,t){return e.concat([t+"-"+vt,t+"-"+mt])}),[]),xt=[].concat(ht,[pt]).reduce((function(e,t){return e.concat([t,t+"-"+vt,t+"-"+mt])}),[]),wt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ct(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function kt(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var St={placement:"bottom",modifiers:[],strategy:"absolute"};function Et(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function Ot(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?It(i):null,a=i?Rt(i):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(o){case ut:t={x:l,y:n.y-r.height};break;case ct:t={x:l,y:n.y+n.height};break;case dt:t={x:n.x+n.width,y:s};break;case ft:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=o?Nt(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case vt:t[u]=t[u]-(n[c]/2-r[c]/2);break;case mt:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var Mt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pt(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,v=void 0===h?0:h,m="function"===typeof c?c({x:p,y:v}):{x:p,y:v};p=m.x,v=m.y;var g=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=ft,x=ut,w=window;if(u){var C=st(n),k="clientHeight",S="clientWidth";if(C===Fe(n)&&"static"!==Xe(C=Ye(n)).position&&"absolute"===l&&(k="scrollHeight",S="scrollWidth"),C=C,i===ut||(i===ft||i===dt)&&o===mt)x=ct,v-=(d&&C===w&&w.visualViewport?w.visualViewport.height:C[k])-r.height,v*=s?1:-1;if(i===ft||(i===ut||i===ct)&&o===mt)y=dt,p-=(d&&C===w&&w.visualViewport?w.visualViewport.width:C[S])-r.width,p*=s?1:-1}var E,T=Object.assign({position:l},u&&Mt),_=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:qe(t*r)/r||0,y:qe(n*r)/r||0}}({x:p,y:v}):{x:p,y:v};return p=_.x,v=_.y,s?Object.assign({},T,((E={})[x]=b?"0":"",E[y]=g?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",E)):Object.assign({},T,((t={})[x]=b?v+"px":"",t[y]=g?p+"px":"",t.transform="",t))}var Dt={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Be(i)&&Qe(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Be(r)&&Qe(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var At={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=xt.reduce((function(e,n){return e[n]=function(e,t,n){var r=It(e),i=[ft,ut].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[ft,dt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,o),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},Zt={left:"right",right:"left",bottom:"top",top:"bottom"};function jt(e){return e.replace(/left|right|bottom|top/g,(function(e){return Zt[e]}))}var Lt={start:"end",end:"start"};function Ft(e){return e.replace(/start|end/g,(function(e){return Lt[e]}))}function zt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ve(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Bt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Vt(e,t,n){return t===gt?Bt(function(e,t){var n=Fe(e),r=Ye(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){o=i.width,a=i.height;var u=Ge();(u||!u&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:o,height:a,x:l+Je(e),y:s}}(e,n)):ze(t)?function(e,t){var n=Ke(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Bt(function(e){var t,n=Ye(e),r=$e(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=He(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=He(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Je(e),s=-r.scrollTop;return"rtl"===Xe(i||n).direction&&(l+=He(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:s}}(Ye(e)))}function Ht(e,t,n,r){var i="clippingParents"===t?function(e){var t=ot(rt(e)),n=["absolute","fixed"].indexOf(Xe(e).position)>=0&&Be(e)?st(e):e;return ze(n)?t.filter((function(e){return ze(e)&&zt(e,n)&&"body"!==Qe(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],l=o.reduce((function(t,n){var i=Vt(e,n,r);return t.top=He(i.top,t.top),t.right=Ue(i.right,t.right),t.bottom=Ue(i.bottom,t.bottom),t.left=He(i.left,t.left),t}),Vt(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ut(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function qt(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Wt(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,l=n.boundary,s=void 0===l?"clippingParents":l,u=n.rootBoundary,c=void 0===u?gt:u,d=n.elementContext,f=void 0===d?bt:d,p=n.altBoundary,h=void 0!==p&&p,v=n.padding,m=void 0===v?0:v,g=Ut("number"!==typeof m?m:qt(m,ht)),b=f===bt?"reference":bt,y=e.rects.popper,x=e.elements[h?b:f],w=Ht(ze(x)?x:x.contextElement||Ye(e.elements.popper),s,c,a),C=Ke(e.elements.reference),k=Ot({reference:C,element:y,strategy:"absolute",placement:i}),S=Bt(Object.assign({},y,k)),E=f===bt?S:C,T={top:w.top-E.top+g.top,bottom:E.bottom-w.bottom+g.bottom,left:w.left-E.left+g.left,right:E.right-w.right+g.right},_=e.modifiersData.offset;if(f===bt&&_){var I=_[i];Object.keys(T).forEach((function(e){var t=[dt,ct].indexOf(e)>=0?1:-1,n=[ut,ct].indexOf(e)>=0?"y":"x";T[e]+=I[n]*t}))}return T}function Gt(e,t,n){return He(e,Ue(t,n))}var Kt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,v=void 0===h?0:h,m=Wt(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),g=It(t.placement),b=Rt(t.placement),y=!b,x=Nt(g),w="x"===x?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,E="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,T="number"===typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(C){if(o){var R,N="y"===x?ut:ft,O="y"===x?ct:dt,M="y"===x?"height":"width",P=C[x],D=P+m[N],A=P-m[O],Z=p?-S[M]/2:0,j=b===vt?k[M]:S[M],L=b===vt?-S[M]:-k[M],F=t.elements.arrow,z=p&&F?nt(F):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=B[N],H=B[O],U=Gt(0,k[M],z[M]),q=y?k[M]/2-Z-U-V-T.mainAxis:j-U-V-T.mainAxis,W=y?-k[M]/2+Z+U+H+T.mainAxis:L+U+H+T.mainAxis,G=t.elements.arrow&&st(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,$=null!=(R=null==_?void 0:_[x])?R:0,Q=P+W-$,Y=Gt(p?Ue(D,P+q-$-K):D,P,p?He(A,Q):A);C[x]=Y,I[x]=Y-P}if(l){var J,X="x"===x?ut:ft,ee="x"===x?ct:dt,te=C[w],ne="y"===w?"height":"width",re=te+m[X],ie=te-m[ee],oe=-1!==[ut,ft].indexOf(g),ae=null!=(J=null==_?void 0:_[w])?J:0,le=oe?re:te-k[ne]-S[ne]-ae+T.altAxis,se=oe?te+k[ne]+S[ne]-ae-T.altAxis:ie,ue=p&&oe?function(e,t,n){var r=Gt(e,t,n);return r>n?n:r}(le,te,se):Gt(p?le:re,te,p?se:ie);C[w]=ue,I[w]=ue-te}t.modifiersData[r]=I}},requiresIfExists:["offset"]};var $t={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=It(n.placement),s=Nt(l),u=[ft,dt].indexOf(l)>=0?"height":"width";if(o&&a){var c=function(e,t){return Ut("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:qt(e,ht))}(i.padding,n),d=nt(o),f="y"===s?ut:ft,p="y"===s?ct:dt,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],v=a[s]-n.rects.reference[s],m=st(o),g=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,b=h/2-v/2,y=c[f],x=g-d[u]-c[p],w=g/2-d[u]/2+b,C=Gt(y,w,x),k=s;n.modifiersData[r]=((t={})[k]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&zt(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Yt(e){return[ut,dt,ct,ft].some((function(t){return e[t]>=0}))}var Jt=Tt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,l=void 0===a||a,s=Fe(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,_t)})),l&&s.addEventListener("resize",n.update,_t),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,_t)})),l&&s.removeEventListener("resize",n.update,_t)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ot({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,l=n.roundOffsets,s=void 0===l||l,u={placement:It(t.placement),variation:Rt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Pt(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Pt(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Dt,At,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,m=t.options.placement,g=It(m),b=s||(g===m||!h?[jt(m)]:function(e){if(It(e)===pt)return[];var t=jt(e);return[Ft(e),t,Ft(t)]}(m)),y=[m].concat(b).reduce((function(e,n){return e.concat(It(n)===pt?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?xt:s,c=Rt(r),d=c?l?yt:yt.filter((function(e){return Rt(e)===c})):ht,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Wt(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[It(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),x=t.rects.reference,w=t.rects.popper,C=new Map,k=!0,S=y[0],E=0;E=0,N=R?"width":"height",O=Wt(t,{placement:T,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),M=R?I?dt:ft:I?ct:ut;x[N]>w[N]&&(M=jt(M));var P=jt(M),D=[];if(o&&D.push(O[_]<=0),l&&D.push(O[M]<=0,O[P]<=0),D.every((function(e){return e}))){S=T,k=!1;break}C.set(T,D)}if(k)for(var A=function(e){var t=y.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},Z=h?3:1;Z>0;Z--){if("break"===A(Z))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Kt,$t,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Wt(t,{elementContext:"reference"}),l=Wt(t,{altBoundary:!0}),s=Qt(a,r),u=Qt(l,i,o),c=Yt(s),d=Yt(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});var Xt=t.forwardRef((function(e,n){var r=e.children,o=e.container,a=e.disablePortal,s=void 0!==a&&a,u=t.useState(null),c=(0,l.Z)(u,2),d=c[0],f=c[1],p=(0,Ze.Z)(t.isValidElement(r)?r.ref:null,n);return(0,je.Z)((function(){s||f(function(e){return"function"===typeof e?e():e}(o)||document.body)}),[o,s]),(0,je.Z)((function(){if(d&&!s)return(0,_e.Z)(n,d),function(){(0,_e.Z)(n,null)}}),[n,d,s]),s?t.isValidElement(r)?t.cloneElement(r,{ref:p}):r:(0,ue.jsx)(t.Fragment,{children:d?i.createPortal(r,d):d})})),en=n(4438),tn=n(8995);function nn(e){return(0,en.Z)("MuiPopperUnstyled",e)}(0,tn.Z)("MuiPopperUnstyled",["root"]);var rn=function(e){return"string"===typeof e};function on(e,t,n){return void 0===e||rn(e)?t:ke({},t,{ownerState:ke({},t.ownerState,n)})}function an(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"===typeof e[t])})).forEach((function(n){t[n]=e[n]})),t}function ln(e){var t=e.getSlotProps,n=e.additionalProps,r=e.externalSlotProps,i=e.externalForwardedProps,o=e.className;if(!t){var a=(0,we.Z)(null==i?void 0:i.className,null==r?void 0:r.className,o,null==n?void 0:n.className),l=ke({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),s=ke({},n,i,r);return a.length>0&&(s.className=a),Object.keys(l).length>0&&(s.style=l),{props:s,internalRef:void 0}}var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var n={};return Object.keys(e).filter((function(n){return n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n)})).forEach((function(t){n[t]=e[t]})),n}(ke({},i,r)),c=an(r),d=an(i),f=t(u),p=(0,we.Z)(null==f?void 0:f.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),h=ke({},null==f?void 0:f.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),v=ke({},f,n,d,c);return p.length>0&&(v.className=p),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:f.ref}}function sn(e,t){return"function"===typeof e?e(t):e}var un=["elementType","externalSlotProps","ownerState"];function cn(e){var t,n=e.elementType,r=e.externalSlotProps,i=e.ownerState,o=Ae(e,un),a=sn(r,i),l=ln(ke({},o,{externalSlotProps:a})),s=l.props,u=l.internalRef;return on(n,ke({},s,{ref:(0,Ze.Z)(u,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i)}var dn=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],fn=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function pn(e){return"function"===typeof e?e():e}function hn(e){return void 0!==e.nodeType}var vn={},mn=t.forwardRef((function(e,n){var r,i=e.anchorEl,o=e.children,a=e.component,s=e.direction,u=e.disablePortal,c=e.modifiers,d=e.open,f=e.ownerState,p=e.placement,h=e.popperOptions,v=e.popperRef,m=e.slotProps,g=void 0===m?{}:m,b=e.slots,y=void 0===b?{}:b,x=e.TransitionProps,w=Ae(e,dn),C=t.useRef(null),k=(0,Ze.Z)(C,n),S=t.useRef(null),E=(0,Ze.Z)(S,v),T=t.useRef(E);(0,je.Z)((function(){T.current=E}),[E]),t.useImperativeHandle(v,(function(){return S.current}),[]);var _=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,s),I=t.useState(_),R=(0,l.Z)(I,2),N=R[0],O=R[1],M=t.useState(pn(i)),P=(0,l.Z)(M,2),D=P[0],A=P[1];t.useEffect((function(){S.current&&S.current.forceUpdate()})),t.useEffect((function(){i&&A(pn(i))}),[i]),(0,je.Z)((function(){if(D&&d){var e=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;O(t.placement)}}];null!=c&&(e=e.concat(c)),h&&null!=h.modifiers&&(e=e.concat(h.modifiers));var t=Jt(D,C.current,ke({placement:_},h,{modifiers:e}));return T.current(t),function(){t.destroy(),T.current(null)}}}),[D,u,c,d,h,_]);var Z={placement:N};null!==x&&(Z.TransitionProps=x);var j=(0,Ce.Z)({root:["root"]},nn,{}),L=null!=(r=null!=a?a:y.root)?r:"div",F=cn({elementType:L,externalSlotProps:g.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:k},ownerState:ke({},e,f),className:j.root});return(0,ue.jsx)(L,ke({},F,{children:"function"===typeof o?o(Z):o}))})),gn=t.forwardRef((function(e,n){var r,i=e.anchorEl,o=e.children,a=e.container,s=e.direction,u=void 0===s?"ltr":s,c=e.disablePortal,d=void 0!==c&&c,f=e.keepMounted,p=void 0!==f&&f,h=e.modifiers,v=e.open,m=e.placement,g=void 0===m?"bottom":m,b=e.popperOptions,y=void 0===b?vn:b,x=e.popperRef,w=e.style,C=e.transition,k=void 0!==C&&C,S=e.slotProps,E=void 0===S?{}:S,T=e.slots,_=void 0===T?{}:T,I=Ae(e,fn),R=t.useState(!0),N=(0,l.Z)(R,2),O=N[0],M=N[1];if(!p&&!v&&(!k||O))return null;if(a)r=a;else if(i){var P=pn(i);r=P&&hn(P)?(0,Le.Z)(P).body:(0,Le.Z)(null).body}var D=v||!p||k&&!O?void 0:"none",A=k?{in:v,onEnter:function(){M(!1)},onExited:function(){M(!0)}}:void 0;return(0,ue.jsx)(Xt,{disablePortal:d,container:r,children:(0,ue.jsx)(mn,ke({anchorEl:i,direction:u,disablePortal:d,modifiers:h,ref:n,open:k?!O:v,placement:g,popperOptions:y,popperRef:x,slotProps:E,slots:_},I,{style:ke({position:"fixed",top:0,left:0,display:D},w),TransitionProps:A,children:o}))})})),bn=gn,yn=n(3501),xn=n(8132),wn=n(5656),Cn=["components","componentsProps","slots","slotProps"],kn=(0,xn.ZP)(bn,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Sn=t.forwardRef((function(e,t){var n,r=(0,yn.Z)(),i=(0,wn.Z)({props:e,name:"MuiPopper"}),o=i.components,a=i.componentsProps,l=i.slots,s=i.slotProps,u=(0,ye.Z)(i,Cn),c=null!=(n=null==l?void 0:l.root)?n:null==o?void 0:o.Root;return(0,ue.jsx)(kn,(0,xe.Z)({direction:null==r?void 0:r.direction,slots:{root:c},slotProps:null!=s?s:a},u,{ref:t}))})),En=n(4112);function Tn(e){return(0,en.Z)("MuiListSubheader",e)}(0,tn.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var _n=["className","color","component","disableGutters","disableSticky","inset"],In=(0,xn.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,En.Z)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((function(e){var t=e.theme,n=e.ownerState;return(0,xe.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),Rn=t.forwardRef((function(e,t){var n=(0,wn.Z)({props:e,name:"MuiListSubheader"}),r=n.className,i=n.color,o=void 0===i?"default":i,a=n.component,l=void 0===a?"li":a,s=n.disableGutters,u=void 0!==s&&s,c=n.disableSticky,d=void 0!==c&&c,f=n.inset,p=void 0!==f&&f,h=(0,ye.Z)(n,_n),v=(0,xe.Z)({},n,{color:o,component:l,disableGutters:u,disableSticky:d,inset:p}),m=function(e){var t=e.classes,n=e.color,r=e.disableGutters,i=e.inset,o=e.disableSticky,a={root:["root","default"!==n&&"color".concat((0,En.Z)(n)),!r&&"gutters",i&&"inset",!o&&"sticky"]};return(0,Ce.Z)(a,Tn,t)}(v);return(0,ue.jsx)(In,(0,xe.Z)({as:l,className:(0,we.Z)(m.root,r),ref:t,ownerState:v},h))})),Nn=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};function On(e){return(0,en.Z)("MuiPaper",e)}(0,tn.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var Mn=["className","component","elevation","square","variant"],Pn=(0,xn.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,xe.Z)({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!r.square&&{borderRadius:n.shape.borderRadius},"outlined"===r.variant&&{border:"1px solid ".concat((n.vars||n).palette.divider)},"elevation"===r.variant&&(0,xe.Z)({boxShadow:(n.vars||n).shadows[r.elevation]},!n.vars&&"dark"===n.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,De.Fq)("#fff",Nn(r.elevation)),", ").concat((0,De.Fq)("#fff",Nn(r.elevation)),")")},n.vars&&{backgroundImage:null==(t=n.vars.overlays)?void 0:t[r.elevation]}))})),Dn=t.forwardRef((function(e,t){var n=(0,wn.Z)({props:e,name:"MuiPaper"}),r=n.className,i=n.component,o=void 0===i?"div":i,a=n.elevation,l=void 0===a?1:a,s=n.square,u=void 0!==s&&s,c=n.variant,d=void 0===c?"elevation":c,f=(0,ye.Z)(n,Mn),p=(0,xe.Z)({},n,{component:o,elevation:l,square:u,variant:d}),h=function(e){var t=e.square,n=e.elevation,r=e.variant,i=e.classes,o={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,Ce.Z)(o,On,i)}(p);return(0,ue.jsx)(Pn,(0,xe.Z)({as:o,ownerState:p,className:(0,we.Z)(h.root,r),ref:t},f))})),An=n(355),Zn=n(1463),jn=n(6522);function Ln(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Fn(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function zn(){return zn=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=t.pulsate,i=void 0!==r&&r,a=t.center,l=void 0===a?o||t.pulsate:a,s=t.fakeElement,u=void 0!==s&&s;if("mousedown"===(null==e?void 0:e.type)&&g.current)g.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);var c,d,f,p=u?null:x.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(h.width/2),d=Math.round(h.height/2);else{var v=e.touches&&e.touches.length>0?e.touches[0]:e,m=v.clientX,C=v.clientY;c=Math.round(m-h.left),d=Math.round(C-h.top)}if(l)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(f+=1);else{var k=2*Math.max(Math.abs((p?p.clientWidth:0)-c),c)+2,S=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(k,2)+Math.pow(S,2))}null!=e&&e.touches?null===y.current&&(y.current=function(){w({pulsate:i,rippleX:c,rippleY:d,rippleSize:f,cb:n})},b.current=setTimeout((function(){y.current&&(y.current(),y.current=null)}),80)):w({pulsate:i,rippleX:c,rippleY:d,rippleSize:f,cb:n})}}),[o,w]),k=t.useCallback((function(){C({},{pulsate:!0})}),[C]),S=t.useCallback((function(e,t){if(clearTimeout(b.current),"touchend"===(null==e?void 0:e.type)&&y.current)return y.current(),y.current=null,void(b.current=setTimeout((function(){S(e,t)})));y.current=null,h((function(e){return e.length>0?e.slice(1):e})),m.current=t}),[]);return t.useImperativeHandle(n,(function(){return{pulsate:k,start:C,stop:S}}),[k,C,S]),(0,ue.jsx)(gr,(0,xe.Z)({className:(0,we.Z)(fr.root,s.root,u),ref:x},c,{children:(0,ue.jsx)($n,{component:null,exit:!0,children:p})}))})),xr=yr;function wr(e){return(0,en.Z)("MuiButtonBase",e)}var Cr,kr=(0,tn.Z)("MuiButtonBase",["root","disabled","focusVisible"]),Sr=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Er=(0,xn.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((Cr={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"}},(0,X.Z)(Cr,"&.".concat(kr.disabled),{pointerEvents:"none",cursor:"default"}),(0,X.Z)(Cr,"@media print",{colorAdjust:"exact"}),Cr)),Tr=t.forwardRef((function(e,n){var r=(0,wn.Z)({props:e,name:"MuiButtonBase"}),i=r.action,o=r.centerRipple,a=void 0!==o&&o,s=r.children,u=r.className,c=r.component,d=void 0===c?"button":c,f=r.disabled,p=void 0!==f&&f,h=r.disableRipple,v=void 0!==h&&h,m=r.disableTouchRipple,g=void 0!==m&&m,b=r.focusRipple,y=void 0!==b&&b,x=r.LinkComponent,w=void 0===x?"a":x,C=r.onBlur,k=r.onClick,S=r.onContextMenu,E=r.onDragLeave,T=r.onFocus,_=r.onFocusVisible,I=r.onKeyDown,R=r.onKeyUp,N=r.onMouseDown,O=r.onMouseLeave,M=r.onMouseUp,P=r.onTouchEnd,D=r.onTouchMove,A=r.onTouchStart,Z=r.tabIndex,j=void 0===Z?0:Z,L=r.TouchRippleProps,F=r.touchRippleRef,z=r.type,B=(0,ye.Z)(r,Sr),V=t.useRef(null),H=t.useRef(null),U=(0,An.Z)(H,F),q=(0,jn.Z)(),W=q.isFocusVisibleRef,G=q.onFocus,K=q.onBlur,$=q.ref,Q=t.useState(!1),Y=(0,l.Z)(Q,2),J=Y[0],X=Y[1];p&&J&&X(!1),t.useImperativeHandle(i,(function(){return{focusVisible:function(){X(!0),V.current.focus()}}}),[]);var ee=t.useState(!1),te=(0,l.Z)(ee,2),ne=te[0],re=te[1];t.useEffect((function(){re(!0)}),[]);var ie=ne&&!v&&!p;function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return(0,Zn.Z)((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}t.useEffect((function(){J&&y&&!v&&ne&&H.current.pulsate()}),[v,y,J,ne]);var ae=oe("start",N),le=oe("stop",S),se=oe("stop",E),ce=oe("stop",M),de=oe("stop",(function(e){J&&e.preventDefault(),O&&O(e)})),fe=oe("start",A),pe=oe("stop",P),he=oe("stop",D),ve=oe("stop",(function(e){K(e),!1===W.current&&X(!1),C&&C(e)}),!1),me=(0,Zn.Z)((function(e){V.current||(V.current=e.currentTarget),G(e),!0===W.current&&(X(!0),_&&_(e)),T&&T(e)})),ge=function(){var e=V.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},be=t.useRef(!1),ke=(0,Zn.Z)((function(e){y&&!be.current&&J&&H.current&&" "===e.key&&(be.current=!0,H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ge()&&" "===e.key&&e.preventDefault(),I&&I(e),e.target===e.currentTarget&&ge()&&"Enter"===e.key&&!p&&(e.preventDefault(),k&&k(e))})),Se=(0,Zn.Z)((function(e){y&&" "===e.key&&H.current&&J&&!e.defaultPrevented&&(be.current=!1,H.current.stop(e,(function(){H.current.pulsate(e)}))),R&&R(e),k&&e.target===e.currentTarget&&ge()&&" "===e.key&&!e.defaultPrevented&&k(e)})),Ee=d;"button"===Ee&&(B.href||B.to)&&(Ee=w);var Te={};"button"===Ee?(Te.type=void 0===z?"button":z,Te.disabled=p):(B.href||B.to||(Te.role="button"),p&&(Te["aria-disabled"]=p));var _e=(0,An.Z)(n,$,V);var Ie=(0,xe.Z)({},r,{centerRipple:a,component:d,disabled:p,disableRipple:v,disableTouchRipple:g,focusRipple:y,tabIndex:j,focusVisible:J}),Re=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,i=e.classes,o={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,Ce.Z)(o,wr,i);return n&&r&&(a.root+=" ".concat(r)),a}(Ie);return(0,ue.jsxs)(Er,(0,xe.Z)({as:Ee,className:(0,we.Z)(Re.root,u),ownerState:Ie,onBlur:ve,onClick:k,onContextMenu:le,onFocus:me,onKeyDown:ke,onKeyUp:Se,onMouseDown:ae,onMouseLeave:de,onMouseUp:ce,onDragLeave:se,onTouchEnd:pe,onTouchMove:he,onTouchStart:fe,ref:_e,tabIndex:p?-1:j,type:z},Te,B,{children:[s,ie?(0,ue.jsx)(xr,(0,xe.Z)({ref:U,center:a},L)):null]}))})),_r=Tr;function Ir(e){return(0,en.Z)("MuiIconButton",e)}var Rr=(0,tn.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Nr=["edge","children","className","color","disabled","disableFocusRipple","size"],Or=(0,xn.ZP)(_r,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,En.Z)(n.color))],n.edge&&t["edge".concat((0,En.Z)(n.edge))],t["size".concat((0,En.Z)(n.size))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,xe.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,De.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(function(e){var t,n=e.theme,r=e.ownerState,i=null==(t=(n.vars||n).palette)?void 0:t[r.color];return(0,xe.Z)({},"inherit"===r.color&&{color:"inherit"},"inherit"!==r.color&&"default"!==r.color&&(0,xe.Z)({color:null==i?void 0:i.main},!r.disableRipple&&{"&:hover":(0,xe.Z)({},i&&{backgroundColor:n.vars?"rgba(".concat(i.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,De.Fq)(i.main,n.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===r.size&&{padding:5,fontSize:n.typography.pxToRem(18)},"large"===r.size&&{padding:12,fontSize:n.typography.pxToRem(28)},(0,X.Z)({},"&.".concat(Rr.disabled),{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled}))})),Mr=t.forwardRef((function(e,t){var n=(0,wn.Z)({props:e,name:"MuiIconButton"}),r=n.edge,i=void 0!==r&&r,o=n.children,a=n.className,l=n.color,s=void 0===l?"default":l,u=n.disabled,c=void 0!==u&&u,d=n.disableFocusRipple,f=void 0!==d&&d,p=n.size,h=void 0===p?"medium":p,v=(0,ye.Z)(n,Nr),m=(0,xe.Z)({},n,{edge:i,color:s,disabled:c,disableFocusRipple:f,size:h}),g=function(e){var t=e.classes,n=e.disabled,r=e.color,i=e.edge,o=e.size,a={root:["root",n&&"disabled","default"!==r&&"color".concat((0,En.Z)(r)),i&&"edge".concat((0,En.Z)(i)),"size".concat((0,En.Z)(o))]};return(0,Ce.Z)(a,Ir,t)}(m);return(0,ue.jsx)(Or,(0,xe.Z)({className:(0,we.Z)(g.root,a),centerRipple:!0,focusRipple:!f,disabled:c,ref:t,ownerState:m},v,{children:o}))})),Pr=n(2701),Dr=(0,Pr.Z)((0,ue.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Ar(e){return(0,en.Z)("MuiChip",e)}var Zr=(0,tn.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),jr=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Lr=(0,xn.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.color,i=n.iconColor,o=n.clickable,a=n.onDelete,l=n.size,s=n.variant;return[(0,X.Z)({},"& .".concat(Zr.avatar),t.avatar),(0,X.Z)({},"& .".concat(Zr.avatar),t["avatar".concat((0,En.Z)(l))]),(0,X.Z)({},"& .".concat(Zr.avatar),t["avatarColor".concat((0,En.Z)(r))]),(0,X.Z)({},"& .".concat(Zr.icon),t.icon),(0,X.Z)({},"& .".concat(Zr.icon),t["icon".concat((0,En.Z)(l))]),(0,X.Z)({},"& .".concat(Zr.icon),t["iconColor".concat((0,En.Z)(i))]),(0,X.Z)({},"& .".concat(Zr.deleteIcon),t.deleteIcon),(0,X.Z)({},"& .".concat(Zr.deleteIcon),t["deleteIcon".concat((0,En.Z)(l))]),(0,X.Z)({},"& .".concat(Zr.deleteIcon),t["deleteIconColor".concat((0,En.Z)(r))]),(0,X.Z)({},"& .".concat(Zr.deleteIcon),t["deleteIcon".concat((0,En.Z)(s),"Color").concat((0,En.Z)(r))]),t.root,t["size".concat((0,En.Z)(l))],t["color".concat((0,En.Z)(r))],o&&t.clickable,o&&"default"!==r&&t["clickableColor".concat((0,En.Z)(r),")")],a&&t.deletable,a&&"default"!==r&&t["deletableColor".concat((0,En.Z)(r))],t[s],t["".concat(s).concat((0,En.Z)(r))]]}})((function(e){var t,n=e.theme,r=e.ownerState,i=(0,De.Fq)(n.palette.text.primary,.26),o="light"===n.palette.mode?n.palette.grey[700]:n.palette.grey[300];return(0,xe.Z)((t={maxWidth:"100%",fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(n.vars||n).palette.text.primary,backgroundColor:(n.vars||n).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:n.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},(0,X.Z)(t,"&.".concat(Zr.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"}),(0,X.Z)(t,"& .".concat(Zr.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:n.vars?n.vars.palette.Chip.defaultAvatarColor:o,fontSize:n.typography.pxToRem(12)}),(0,X.Z)(t,"& .".concat(Zr.avatarColorPrimary),{color:(n.vars||n).palette.primary.contrastText,backgroundColor:(n.vars||n).palette.primary.dark}),(0,X.Z)(t,"& .".concat(Zr.avatarColorSecondary),{color:(n.vars||n).palette.secondary.contrastText,backgroundColor:(n.vars||n).palette.secondary.dark}),(0,X.Z)(t,"& .".concat(Zr.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:n.typography.pxToRem(10)}),(0,X.Z)(t,"& .".concat(Zr.icon),(0,xe.Z)({marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&(0,xe.Z)({color:n.vars?n.vars.palette.Chip.defaultIconColor:o},"default"!==r.color&&{color:"inherit"}))),(0,X.Z)(t,"& .".concat(Zr.deleteIcon),(0,xe.Z)({WebkitTapHighlightColor:"transparent",color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.26)"):i,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.4)"):(0,De.Fq)(i,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:n.vars?"rgba(".concat(n.vars.palette[r.color].contrastTextChannel," / 0.7)"):(0,De.Fq)(n.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(n.vars||n).palette[r.color].contrastText}})),t),"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(n.vars||n).palette[r.color].main,color:(n.vars||n).palette[r.color].contrastText},r.onDelete&&(0,X.Z)({},"&.".concat(Zr.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,De.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),r.onDelete&&"default"!==r.color&&(0,X.Z)({},"&.".concat(Zr.focusVisible),{backgroundColor:(n.vars||n).palette[r.color].dark}))}),(function(e){var t,n=e.theme,r=e.ownerState;return(0,xe.Z)({},r.clickable&&(t={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,De.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}},(0,X.Z)(t,"&.".concat(Zr.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,De.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),(0,X.Z)(t,"&:active",{boxShadow:(n.vars||n).shadows[1]}),t),r.clickable&&"default"!==r.color&&(0,X.Z)({},"&:hover, &.".concat(Zr.focusVisible),{backgroundColor:(n.vars||n).palette[r.color].dark}))}),(function(e){var t,n,r=e.theme,i=e.ownerState;return(0,xe.Z)({},"outlined"===i.variant&&(t={backgroundColor:"transparent",border:r.vars?"1px solid ".concat(r.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[700])},(0,X.Z)(t,"&.".concat(Zr.clickable,":hover"),{backgroundColor:(r.vars||r).palette.action.hover}),(0,X.Z)(t,"&.".concat(Zr.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,X.Z)(t,"& .".concat(Zr.avatar),{marginLeft:4}),(0,X.Z)(t,"& .".concat(Zr.avatarSmall),{marginLeft:2}),(0,X.Z)(t,"& .".concat(Zr.icon),{marginLeft:4}),(0,X.Z)(t,"& .".concat(Zr.iconSmall),{marginLeft:2}),(0,X.Z)(t,"& .".concat(Zr.deleteIcon),{marginRight:5}),(0,X.Z)(t,"& .".concat(Zr.deleteIconSmall),{marginRight:3}),t),"outlined"===i.variant&&"default"!==i.color&&(n={color:(r.vars||r).palette[i.color].main,border:"1px solid ".concat(r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / 0.7)"):(0,De.Fq)(r.palette[i.color].main,.7))},(0,X.Z)(n,"&.".concat(Zr.clickable,":hover"),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,De.Fq)(r.palette[i.color].main,r.palette.action.hoverOpacity)}),(0,X.Z)(n,"&.".concat(Zr.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / ").concat(r.vars.palette.action.focusOpacity,")"):(0,De.Fq)(r.palette[i.color].main,r.palette.action.focusOpacity)}),(0,X.Z)(n,"& .".concat(Zr.deleteIcon),{color:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / 0.7)"):(0,De.Fq)(r.palette[i.color].main,.7),"&:hover, &:active":{color:(r.vars||r).palette[i.color].main}}),n))})),Fr=(0,xn.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var n=e.ownerState.size;return[t.label,t["label".concat((0,En.Z)(n))]]}})((function(e){var t=e.ownerState;return(0,xe.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function zr(e){return"Backspace"===e.key||"Delete"===e.key}var Br=t.forwardRef((function(e,n){var r=(0,wn.Z)({props:e,name:"MuiChip"}),i=r.avatar,o=r.className,a=r.clickable,l=r.color,s=void 0===l?"default":l,u=r.component,c=r.deleteIcon,d=r.disabled,f=void 0!==d&&d,p=r.icon,h=r.label,v=r.onClick,m=r.onDelete,g=r.onKeyDown,b=r.onKeyUp,y=r.size,x=void 0===y?"medium":y,w=r.variant,C=void 0===w?"filled":w,k=r.tabIndex,S=r.skipFocusWhenDisabled,E=void 0!==S&&S,T=(0,ye.Z)(r,jr),_=t.useRef(null),I=(0,An.Z)(_,n),R=function(e){e.stopPropagation(),m&&m(e)},N=!(!1===a||!v)||a,O=N||m?_r:u||"div",M=(0,xe.Z)({},r,{component:O,disabled:f,size:x,color:s,iconColor:t.isValidElement(p)&&p.props.color||s,onDelete:!!m,clickable:N,variant:C}),P=function(e){var t=e.classes,n=e.disabled,r=e.size,i=e.color,o=e.iconColor,a=e.onDelete,l=e.clickable,s=e.variant,u={root:["root",s,n&&"disabled","size".concat((0,En.Z)(r)),"color".concat((0,En.Z)(i)),l&&"clickable",l&&"clickableColor".concat((0,En.Z)(i)),a&&"deletable",a&&"deletableColor".concat((0,En.Z)(i)),"".concat(s).concat((0,En.Z)(i))],label:["label","label".concat((0,En.Z)(r))],avatar:["avatar","avatar".concat((0,En.Z)(r)),"avatarColor".concat((0,En.Z)(i))],icon:["icon","icon".concat((0,En.Z)(r)),"iconColor".concat((0,En.Z)(o))],deleteIcon:["deleteIcon","deleteIcon".concat((0,En.Z)(r)),"deleteIconColor".concat((0,En.Z)(i)),"deleteIcon".concat((0,En.Z)(s),"Color").concat((0,En.Z)(i))]};return(0,Ce.Z)(u,Ar,t)}(M),D=O===_r?(0,xe.Z)({component:u||"div",focusVisibleClassName:P.focusVisible},m&&{disableRipple:!0}):{},A=null;m&&(A=c&&t.isValidElement(c)?t.cloneElement(c,{className:(0,we.Z)(c.props.className,P.deleteIcon),onClick:R}):(0,ue.jsx)(Dr,{className:(0,we.Z)(P.deleteIcon),onClick:R}));var Z=null;i&&t.isValidElement(i)&&(Z=t.cloneElement(i,{className:(0,we.Z)(P.avatar,i.props.className)}));var j=null;return p&&t.isValidElement(p)&&(j=t.cloneElement(p,{className:(0,we.Z)(P.icon,p.props.className)})),(0,ue.jsxs)(Lr,(0,xe.Z)({as:O,className:(0,we.Z)(P.root,o),disabled:!(!N||!f)||void 0,onClick:v,onKeyDown:function(e){e.currentTarget===e.target&&zr(e)&&e.preventDefault(),g&&g(e)},onKeyUp:function(e){e.currentTarget===e.target&&(m&&zr(e)?m(e):"Escape"===e.key&&_.current&&_.current.blur()),b&&b(e)},ref:I,tabIndex:E&&f?-1:k,ownerState:M},D,T,{children:[Z||j,(0,ue.jsx)(Fr,{className:(0,we.Z)(P.label),ownerState:M,children:h}),A]}))}));function Vr(e){return(0,en.Z)("MuiInputBase",e)}var Hr=(0,tn.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function Ur(e){return(0,en.Z)("MuiInput",e)}var qr=(0,xe.Z)({},Hr,(0,tn.Z)("MuiInput",["root","underline","input"]));function Wr(e){return(0,en.Z)("MuiOutlinedInput",e)}var Gr=(0,xe.Z)({},Hr,(0,tn.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));function Kr(e){return(0,en.Z)("MuiFilledInput",e)}var $r=(0,xe.Z)({},Hr,(0,tn.Z)("MuiFilledInput",["root","underline","input"])),Qr=(0,Pr.Z)((0,ue.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Yr=(0,Pr.Z)((0,ue.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Jr(e){return(0,en.Z)("MuiAutocomplete",e)}var Xr,ei,ti=(0,tn.Z)("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),ni=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],ri=(0,xn.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.fullWidth,i=n.hasClearIcon,o=n.hasPopupIcon,a=n.inputFocused,l=n.size;return[(0,X.Z)({},"& .".concat(ti.tag),t.tag),(0,X.Z)({},"& .".concat(ti.tag),t["tagSize".concat((0,En.Z)(l))]),(0,X.Z)({},"& .".concat(ti.inputRoot),t.inputRoot),(0,X.Z)({},"& .".concat(ti.input),t.input),(0,X.Z)({},"& .".concat(ti.input),a&&t.inputFocused),t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})((function(e){var t,n,r,i,o,a=e.ownerState;return(0,xe.Z)((t={},(0,X.Z)(t,"&.".concat(ti.focused," .").concat(ti.clearIndicator),{visibility:"visible"}),(0,X.Z)(t,"@media (pointer: fine)",(0,X.Z)({},"&:hover .".concat(ti.clearIndicator),{visibility:"visible"})),t),a.fullWidth&&{width:"100%"},(o={},(0,X.Z)(o,"& .".concat(ti.tag),(0,xe.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===a.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),(0,X.Z)(o,"& .".concat(ti.inputRoot),(n={flexWrap:"wrap"},(0,X.Z)(n,".".concat(ti.hasPopupIcon,"&, .").concat(ti.hasClearIcon,"&"),{paddingRight:30}),(0,X.Z)(n,".".concat(ti.hasPopupIcon,".").concat(ti.hasClearIcon,"&"),{paddingRight:56}),(0,X.Z)(n,"& .".concat(ti.input),{width:0,minWidth:30}),n)),(0,X.Z)(o,"& .".concat(qr.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),(0,X.Z)(o,"& .".concat(qr.root,".").concat(Hr.sizeSmall),(0,X.Z)({},"& .".concat(qr.input),{padding:"2px 4px 3px 0"})),(0,X.Z)(o,"& .".concat(Gr.root),(r={padding:9},(0,X.Z)(r,".".concat(ti.hasPopupIcon,"&, .").concat(ti.hasClearIcon,"&"),{paddingRight:39}),(0,X.Z)(r,".".concat(ti.hasPopupIcon,".").concat(ti.hasClearIcon,"&"),{paddingRight:65}),(0,X.Z)(r,"& .".concat(ti.input),{padding:"7.5px 4px 7.5px 6px"}),(0,X.Z)(r,"& .".concat(ti.endAdornment),{right:9}),r)),(0,X.Z)(o,"& .".concat(Gr.root,".").concat(Hr.sizeSmall),(0,X.Z)({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(ti.input),{padding:"2.5px 4px 2.5px 6px"})),(0,X.Z)(o,"& .".concat($r.root),(i={paddingTop:19,paddingLeft:8},(0,X.Z)(i,".".concat(ti.hasPopupIcon,"&, .").concat(ti.hasClearIcon,"&"),{paddingRight:39}),(0,X.Z)(i,".".concat(ti.hasPopupIcon,".").concat(ti.hasClearIcon,"&"),{paddingRight:65}),(0,X.Z)(i,"& .".concat($r.input),{padding:"7px 4px"}),(0,X.Z)(i,"& .".concat(ti.endAdornment),{right:9}),i)),(0,X.Z)(o,"& .".concat($r.root,".").concat(Hr.sizeSmall),(0,X.Z)({paddingBottom:1},"& .".concat($r.input),{padding:"2.5px 4px"})),(0,X.Z)(o,"& .".concat(Hr.hiddenLabel),{paddingTop:8}),(0,X.Z)(o,"& .".concat(ti.input),(0,xe.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},a.inputFocused&&{opacity:1})),o))})),ii=(0,xn.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),oi=(0,xn.ZP)(Mr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),ai=(0,xn.ZP)(Mr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var n=e.ownerState;return(0,xe.Z)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,xe.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),li=(0,xn.ZP)(Sn,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[(0,X.Z)({},"& .".concat(ti.option),t.option),t.popper,n.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,n=e.ownerState;return(0,xe.Z)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),si=(0,xn.ZP)(Dn,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,xe.Z)({},t.typography.body1,{overflow:"auto"})})),ui=(0,xn.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),ci=(0,xn.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),di=(0,xn.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,n,r=e.theme;return(0,X.Z)({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative"},"& .".concat(ti.option),(n={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,X.Z)(n,r.breakpoints.up("sm"),{minHeight:"auto"}),(0,X.Z)(n,"&.".concat(ti.focused),{backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,X.Z)(n,'&[aria-disabled="true"]',{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"}),(0,X.Z)(n,"&.".concat(ti.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,X.Z)(n,'&[aria-selected="true"]',(t={backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,De.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},(0,X.Z)(t,"&.".concat(ti.focused),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,De.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(r.vars||r).palette.action.selected}}),(0,X.Z)(t,"&.".concat(ti.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):(0,De.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),t)),n))})),fi=(0,xn.ZP)(Rn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),pi=(0,xn.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})((0,X.Z)({padding:0},"& .".concat(ti.option),{paddingLeft:24})),hi=t.forwardRef((function(e,n){var r,i,o,a,l,s=(0,wn.Z)({props:e,name:"MuiAutocomplete"}),u=(s.autoComplete,s.autoHighlight,s.autoSelect,s.blurOnSelect,s.ChipProps),c=s.className,d=s.clearIcon,f=void 0===d?Xr||(Xr=(0,ue.jsx)(Qr,{fontSize:"small"})):d,p=s.clearOnBlur,h=(void 0===p&&s.freeSolo,s.clearOnEscape,s.clearText),v=void 0===h?"Clear":h,m=s.closeText,g=void 0===m?"Close":m,b=s.componentsProps,y=void 0===b?{}:b,x=s.defaultValue,w=(void 0===x&&s.multiple,s.disableClearable),C=void 0!==w&&w,k=(s.disableCloseOnSelect,s.disabled),S=void 0!==k&&k,E=(s.disabledItemsFocusable,s.disableListWrap,s.disablePortal),T=void 0!==E&&E,_=(s.filterSelectedOptions,s.forcePopupIcon),I=void 0===_?"auto":_,R=s.freeSolo,N=void 0!==R&&R,O=s.fullWidth,M=void 0!==O&&O,P=s.getLimitTagsText,D=void 0===P?function(e){return"+".concat(e)}:P,A=s.getOptionLabel,Z=void 0===A?function(e){var t;return null!=(t=e.label)?t:e}:A,j=s.groupBy,L=s.handleHomeEndKeys,F=(void 0===L&&s.freeSolo,s.includeInputInList,s.limitTags),z=void 0===F?-1:F,B=s.ListboxComponent,V=void 0===B?"ul":B,H=s.ListboxProps,U=s.loading,q=void 0!==U&&U,W=s.loadingText,G=void 0===W?"Loading\u2026":W,K=s.multiple,$=void 0!==K&&K,Q=s.noOptionsText,Y=void 0===Q?"No options":Q,J=(s.openOnFocus,s.openText),X=void 0===J?"Open":J,ee=s.PaperComponent,te=void 0===ee?Dn:ee,ne=s.PopperComponent,re=void 0===ne?Sn:ne,ie=s.popupIcon,oe=void 0===ie?ei||(ei=(0,ue.jsx)(Yr,{})):ie,ae=s.readOnly,le=void 0!==ae&&ae,se=s.renderGroup,ce=s.renderInput,de=s.renderOption,fe=s.renderTags,pe=s.selectOnFocus,he=(void 0===pe&&s.freeSolo,s.size),ve=void 0===he?"medium":he,me=s.slotProps,ge=void 0===me?{}:me,be=(0,ye.Z)(s,ni),ke=Pe((0,xe.Z)({},s,{componentName:"Autocomplete"})),Se=ke.getRootProps,Ee=ke.getInputProps,Te=ke.getInputLabelProps,_e=ke.getPopupIndicatorProps,Ie=ke.getClearProps,Re=ke.getTagProps,Ne=ke.getListboxProps,Oe=ke.getOptionProps,Me=ke.value,De=ke.dirty,Ae=ke.id,Ze=ke.popupOpen,je=ke.focused,Le=ke.focusedTag,Fe=ke.anchorEl,ze=ke.setAnchorEl,Be=ke.inputValue,Ve=ke.groupedOptions,He=!C&&!S&&De&&!le,Ue=(!N||!0===I)&&!1!==I,qe=(0,xe.Z)({},s,{disablePortal:T,focused:je,fullWidth:M,hasClearIcon:He,hasPopupIcon:Ue,inputFocused:-1===Le,popupOpen:Ze,size:ve}),We=function(e){var t=e.classes,n=e.disablePortal,r=e.focused,i=e.fullWidth,o=e.hasClearIcon,a=e.hasPopupIcon,l=e.inputFocused,s=e.popupOpen,u=e.size,c={root:["root",r&&"focused",i&&"fullWidth",o&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag","tagSize".concat((0,En.Z)(u))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",s&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,Ce.Z)(c,Jr,t)}(qe);if($&&Me.length>0){var Ge=function(e){return(0,xe.Z)({className:We.tag,disabled:S},Re(e))};l=fe?fe(Me,Ge,qe):Me.map((function(e,t){return(0,ue.jsx)(Br,(0,xe.Z)({label:Z(e),size:ve},Ge({index:t}),u))}))}if(z>-1&&Array.isArray(l)){var Ke=l.length-z;!je&&Ke>0&&(l=l.splice(0,z)).push((0,ue.jsx)("span",{className:We.tag,children:D(Ke)},l.length))}var $e=se||function(e){return(0,ue.jsxs)("li",{children:[(0,ue.jsx)(fi,{className:We.groupLabel,ownerState:qe,component:"div",children:e.group}),(0,ue.jsx)(pi,{className:We.groupUl,ownerState:qe,children:e.children})]},e.key)},Qe=de||function(e,t){return(0,ue.jsx)("li",(0,xe.Z)({},e,{children:Z(t)}))},Ye=function(e,t){var n=Oe({option:e,index:t});return Qe((0,xe.Z)({},n,{className:We.option}),e,{selected:n["aria-selected"],inputValue:Be})},Je=null!=(r=ge.clearIndicator)?r:y.clearIndicator,Xe=null!=(i=ge.paper)?i:y.paper,et=null!=(o=ge.popper)?o:y.popper,tt=null!=(a=ge.popupIndicator)?a:y.popupIndicator;return(0,ue.jsxs)(t.Fragment,{children:[(0,ue.jsx)(ri,(0,xe.Z)({ref:n,className:(0,we.Z)(We.root,c),ownerState:qe},Se(be),{children:ce({id:Ae,disabled:S,fullWidth:!0,size:"small"===ve?"small":void 0,InputLabelProps:Te(),InputProps:(0,xe.Z)({ref:ze,className:We.inputRoot,startAdornment:l},(He||Ue)&&{endAdornment:(0,ue.jsxs)(ii,{className:We.endAdornment,ownerState:qe,children:[He?(0,ue.jsx)(oi,(0,xe.Z)({},Ie(),{"aria-label":v,title:v,ownerState:qe},Je,{className:(0,we.Z)(We.clearIndicator,null==Je?void 0:Je.className),children:f})):null,Ue?(0,ue.jsx)(ai,(0,xe.Z)({},_e(),{disabled:S,"aria-label":Ze?g:X,title:Ze?g:X,ownerState:qe},tt,{className:(0,we.Z)(We.popupIndicator,null==tt?void 0:tt.className),children:oe})):null]})}),inputProps:(0,xe.Z)({className:We.input,disabled:S,readOnly:le},Ee())})})),Fe?(0,ue.jsx)(li,(0,xe.Z)({as:re,disablePortal:T,style:{width:Fe?Fe.clientWidth:null},ownerState:qe,role:"presentation",anchorEl:Fe,open:Ze},et,{className:(0,we.Z)(We.popper,null==et?void 0:et.className),children:(0,ue.jsxs)(si,(0,xe.Z)({ownerState:qe,as:te},Xe,{className:(0,we.Z)(We.paper,null==Xe?void 0:Xe.className),children:[q&&0===Ve.length?(0,ue.jsx)(ui,{className:We.loading,ownerState:qe,children:G}):null,0!==Ve.length||N||q?null:(0,ue.jsx)(ci,{className:We.noOptions,ownerState:qe,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:Y}),Ve.length>0?(0,ue.jsx)(di,(0,xe.Z)({as:V,className:We.listbox,ownerState:qe},Ne(),H,{children:Ve.map((function(e,t){return j?$e({key:e.key,group:e.group,children:e.options.map((function(t,n){return Ye(t,e.index+n)}))}):Ye(e,t)}))})):null]}))})):null]})})),vi=hi,mi=n(4695),gi=n(916),bi=n(131),yi=n(4134),xi=n(4073),wi=n(4165),Ci=["sx"];function ki(e){var t,n=e.sx,r=function(e){var t,n,r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:wi.Z;return Object.keys(e).forEach((function(t){i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r}((0,gi.Z)(e,Ci)),i=r.systemProps,o=r.otherProps;return t=Array.isArray(n)?[i].concat((0,oe.Z)(n)):"function"===typeof n?function(){var e=n.apply(void 0,arguments);return(0,xi.P)(e)?(0,mi.Z)({},i,e):i}:(0,mi.Z)({},i,n),(0,mi.Z)({},o,{sx:t})}var Si=n(2321),Ei=["className","component"];function Ti(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.defaultTheme,r=e.defaultClassName,i=void 0===r?"MuiBox-root":r,o=e.generateClassName,a=(0,bi.ZP)("div",{shouldForwardProp:function(e){return"theme"!==e&&"sx"!==e&&"as"!==e}})(yi.Z),l=t.forwardRef((function(e,t){var r=(0,Si.Z)(n),l=ki(e),s=l.className,u=l.component,c=void 0===u?"div":u,d=(0,gi.Z)(l,Ei);return(0,ue.jsx)(a,(0,mi.Z)({as:c,ref:t,className:(0,we.Z)(s,o?o(i):i),theme:r},d))}));return l}var _i=n(6571),Ii=Ti({defaultTheme:(0,n(3660).Z)(),defaultClassName:"MuiBox-root",generateClassName:_i.Z.generate});function Ri(e){return(0,en.Z)("MuiAlert",e)}var Ni=(0,tn.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Oi=(0,Pr.Z)((0,ue.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Mi=(0,Pr.Z)((0,ue.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Pi=(0,Pr.Z)((0,ue.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Di=(0,Pr.Z)((0,ue.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Ai=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Zi=(0,xn.ZP)(Dn,{name:"MuiAlert",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,En.Z)(n.color||n.severity))]]}})((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode?De._j:De.$n,i="light"===t.palette.mode?De.$n:De._j,o=n.color||n.severity;return(0,xe.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===n.variant&&(0,X.Z)({color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:r(t.palette[o].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(o,"StandardBg")]:i(t.palette[o].light,.9)},"& .".concat(Ni.icon),t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}),o&&"outlined"===n.variant&&(0,X.Z)({color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:r(t.palette[o].light,.6),border:"1px solid ".concat((t.vars||t).palette[o].light)},"& .".concat(Ni.icon),t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}),o&&"filled"===n.variant&&(0,xe.Z)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(o,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(o,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[o].dark:t.palette[o].main,color:t.palette.getContrastText(t.palette[o].main)}))})),ji=(0,xn.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:function(e,t){return t.icon}})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Li=(0,xn.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0",minWidth:0,overflow:"auto"}),Fi=(0,xn.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),zi={success:(0,ue.jsx)(Oi,{fontSize:"inherit"}),warning:(0,ue.jsx)(Mi,{fontSize:"inherit"}),error:(0,ue.jsx)(Pi,{fontSize:"inherit"}),info:(0,ue.jsx)(Di,{fontSize:"inherit"})},Bi=t.forwardRef((function(e,t){var n,r,i,o,a,l,s=(0,wn.Z)({props:e,name:"MuiAlert"}),u=s.action,c=s.children,d=s.className,f=s.closeText,p=void 0===f?"Close":f,h=s.color,v=s.components,m=void 0===v?{}:v,g=s.componentsProps,b=void 0===g?{}:g,y=s.icon,x=s.iconMapping,w=void 0===x?zi:x,C=s.onClose,k=s.role,S=void 0===k?"alert":k,E=s.severity,T=void 0===E?"success":E,_=s.slotProps,I=void 0===_?{}:_,R=s.slots,N=void 0===R?{}:R,O=s.variant,M=void 0===O?"standard":O,P=(0,ye.Z)(s,Ai),D=(0,xe.Z)({},s,{color:h,severity:T,variant:M}),A=function(e){var t=e.variant,n=e.color,r=e.severity,i=e.classes,o={root:["root","".concat(t).concat((0,En.Z)(n||r)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,Ce.Z)(o,Ri,i)}(D),Z=null!=(n=null!=(r=N.closeButton)?r:m.CloseButton)?n:Mr,j=null!=(i=null!=(o=N.closeIcon)?o:m.CloseIcon)?i:Qr,L=null!=(a=I.closeButton)?a:b.closeButton,F=null!=(l=I.closeIcon)?l:b.closeIcon;return(0,ue.jsxs)(Zi,(0,xe.Z)({role:S,elevation:0,ownerState:D,className:(0,we.Z)(A.root,d),ref:t},P,{children:[!1!==y?(0,ue.jsx)(ji,{ownerState:D,className:A.icon,children:y||w[T]||zi[T]}):null,(0,ue.jsx)(Li,{ownerState:D,className:A.message,children:c}),null!=u?(0,ue.jsx)(Fi,{ownerState:D,className:A.action,children:u}):null,null==u&&C?(0,ue.jsx)(Fi,{ownerState:D,className:A.action,children:(0,ue.jsx)(Z,(0,xe.Z)({size:"small","aria-label":p,title:p,color:"inherit",onClick:C},L,{children:(0,ue.jsx)(j,(0,xe.Z)({fontSize:"small"},F))}))}):null]}))}));function Vi(e){return(0,en.Z)("MuiTypography",e)}(0,tn.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 Hi=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ui=(0,xn.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,En.Z)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((function(e){var t=e.theme,n=e.ownerState;return(0,xe.Z)({margin:0},n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),qi={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Wi={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Gi=t.forwardRef((function(e,t){var n=(0,wn.Z)({props:e,name:"MuiTypography"}),r=function(e){return Wi[e]||e}(n.color),i=ki((0,xe.Z)({},n,{color:r})),o=i.align,a=void 0===o?"inherit":o,l=i.className,s=i.component,u=i.gutterBottom,c=void 0!==u&&u,d=i.noWrap,f=void 0!==d&&d,p=i.paragraph,h=void 0!==p&&p,v=i.variant,m=void 0===v?"body1":v,g=i.variantMapping,b=void 0===g?qi:g,y=(0,ye.Z)(i,Hi),x=(0,xe.Z)({},i,{align:a,color:r,className:l,component:s,gutterBottom:c,noWrap:f,paragraph:h,variant:m,variantMapping:b}),w=s||(h?"p":b[m]||qi[m])||"span",C=function(e){var t=e.align,n=e.gutterBottom,r=e.noWrap,i=e.paragraph,o=e.variant,a=e.classes,l={root:["root",o,"inherit"!==e.align&&"align".concat((0,En.Z)(t)),n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,Ce.Z)(l,Vi,a)}(x);return(0,ue.jsx)(Ui,(0,xe.Z)({as:w,ref:t,ownerState:x,className:(0,we.Z)(C.root,l)},y))}));function Ki(e){return(0,en.Z)("MuiAlertTitle",e)}(0,tn.Z)("MuiAlertTitle",["root"]);var $i=["className"],Qi=(0,xn.ZP)(Gi,{name:"MuiAlertTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){return{fontWeight:e.theme.typography.fontWeightMedium,marginTop:-2}})),Yi=t.forwardRef((function(e,t){var n=(0,wn.Z)({props:e,name:"MuiAlertTitle"}),r=n.className,i=(0,ye.Z)(n,$i),o=n,a=function(e){var t=e.classes;return(0,Ce.Z)({root:["root"]},Ki,t)}(o);return(0,ue.jsx)(Qi,(0,xe.Z)({gutterBottom:!0,component:"div",ownerState:o,ref:t,className:(0,we.Z)(a.root,r)},i))})),Ji=n(1316),Xi=(n(8712),n(7412));var eo=t.createContext({});function to(e){return(0,en.Z)("MuiList",e)}(0,tn.Z)("MuiList",["root","padding","dense","subheader"]);var no=["children","className","component","dense","disablePadding","subheader"],ro=(0,xn.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return(0,xe.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),io=t.forwardRef((function(e,n){var r=(0,wn.Z)({props:e,name:"MuiList"}),i=r.children,o=r.className,a=r.component,l=void 0===a?"ul":a,s=r.dense,u=void 0!==s&&s,c=r.disablePadding,d=void 0!==c&&c,f=r.subheader,p=(0,ye.Z)(r,no),h=t.useMemo((function(){return{dense:u}}),[u]),v=(0,xe.Z)({},r,{component:l,dense:u,disablePadding:d}),m=function(e){var t=e.classes,n={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return(0,Ce.Z)(n,to,t)}(v);return(0,ue.jsx)(eo.Provider,{value:h,children:(0,ue.jsxs)(ro,(0,xe.Z)({as:l,className:(0,we.Z)(m.root,o),ref:n,ownerState:v},p,{children:[f,i]}))})}));function oo(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var ao=oo,lo=n(496),so=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function uo(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function co(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function fo(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function po(e,t,n,r,i,o){for(var a=!1,l=i(e,t,!!t&&n);l;){if(l===e.firstChild){if(a)return!1;a=!0}var s=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&fo(l,o)&&!s)return l.focus(),!0;l=i(e,l,n)}return!1}var ho=t.forwardRef((function(e,n){var r=e.actions,i=e.autoFocus,o=void 0!==i&&i,a=e.autoFocusItem,l=void 0!==a&&a,s=e.children,u=e.className,c=e.disabledItemsFocusable,d=void 0!==c&&c,f=e.disableListWrap,p=void 0!==f&&f,h=e.onKeyDown,v=e.variant,m=void 0===v?"selectedMenu":v,g=(0,ye.Z)(e,so),b=t.useRef(null),y=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,lo.Z)((function(){o&&b.current.focus()}),[o]),t.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!b.current.style.width;if(e.clientHeight0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var l=r&&!i.repeating&&fo(r,i);i.previousKeyMatched&&(l||po(t,r,!1,d,uo,i))?e.preventDefault():i.previousKeyMatched=!1}h&&h(e)},tabIndex:o?0:-1},g,{children:C}))})),vo=n(3877),mo=n(7626),go=!1,bo="unmounted",yo="exited",xo="entering",wo="entered",Co="exiting",ko=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=yo,r.appearStatus=xo):i=wo:i=t.unmountOnExit||t.mountOnEnter?bo:yo,r.state={status:i},r.nextCallback=null,r}Vn(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===bo?{status:yo}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==xo&&n!==wo&&(t=xo):n!==xo&&n!==wo||(t=Co)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xo){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:i.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yo&&this.setState({status:bo})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[i.findDOMNode(this),r],a=o[0],l=o[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||go?this.safeSetState({status:wo},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,l),this.safeSetState({status:xo},(function(){t.props.onEntering(a,l),t.onTransitionEnd(u,(function(){t.safeSetState({status:wo},(function(){t.props.onEntered(a,l)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:i.findDOMNode(this);t&&!go?(this.props.onExit(r),this.safeSetState({status:Co},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:yo},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:yo},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:i.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],l=o[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===bo)return null;var n=this.props,r=n.children,i=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,Fn(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(Hn.Provider,{value:null},"function"===typeof r?r(e,i):t.cloneElement(t.Children.only(r),i))},n}(t.Component);function So(){}ko.contextType=Hn,ko.propTypes={},ko.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:So,onEntering:So,onEntered:So,onExit:So,onExiting:So,onExited:So},ko.UNMOUNTED=bo,ko.EXITED=yo,ko.ENTERING=xo,ko.ENTERED=wo,ko.EXITING=Co;var Eo=ko,To=n(9764);function _o(){return(0,Si.Z)(To.Z)}var Io=function(e){return e.scrollTop};function Ro(e,t){var n,r,i=e.timeout,o=e.easing,a=e.style,l=void 0===a?{}:a;return{duration:null!=(n=l.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=l.transitionTimingFunction)?r:"object"===typeof o?o[t.mode]:o,delay:l.transitionDelay}}var No=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Oo(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Mo={entering:{opacity:1,transform:Oo(1)},entered:{opacity:1,transform:"none"}},Po="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Do=t.forwardRef((function(e,n){var r=e.addEndListener,i=e.appear,o=void 0===i||i,a=e.children,l=e.easing,s=e.in,u=e.onEnter,c=e.onEntered,d=e.onEntering,f=e.onExit,p=e.onExited,h=e.onExiting,v=e.style,m=e.timeout,g=void 0===m?"auto":m,b=e.TransitionComponent,y=void 0===b?Eo:b,x=(0,ye.Z)(e,No),w=t.useRef(),C=t.useRef(),k=_o(),S=t.useRef(null),E=(0,An.Z)(S,a.ref,n),T=function(e){return function(t){if(e){var n=S.current;void 0===t?e(n):e(n,t)}}},_=T(d),I=T((function(e,t){Io(e);var n,r=Ro({style:v,timeout:g,easing:l},{mode:"enter"}),i=r.duration,o=r.delay,a=r.easing;"auto"===g?(n=k.transitions.getAutoHeightDuration(e.clientHeight),C.current=n):n=i,e.style.transition=[k.transitions.create("opacity",{duration:n,delay:o}),k.transitions.create("transform",{duration:Po?n:.666*n,delay:o,easing:a})].join(","),u&&u(e,t)})),R=T(c),N=T(h),O=T((function(e){var t,n=Ro({style:v,timeout:g,easing:l},{mode:"exit"}),r=n.duration,i=n.delay,o=n.easing;"auto"===g?(t=k.transitions.getAutoHeightDuration(e.clientHeight),C.current=t):t=r,e.style.transition=[k.transitions.create("opacity",{duration:t,delay:i}),k.transitions.create("transform",{duration:Po?t:.666*t,delay:Po?i:i||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=Oo(.75),f&&f(e)})),M=T(p);return t.useEffect((function(){return function(){clearTimeout(w.current)}}),[]),(0,ue.jsx)(y,(0,xe.Z)({appear:o,in:s,nodeRef:S,onEnter:I,onEntered:R,onEntering:_,onExit:O,onExited:M,onExiting:N,addEndListener:function(e){"auto"===g&&(w.current=setTimeout(e,C.current||0)),r&&r(S.current,e)},timeout:"auto"===g?null:g},x,{children:function(e,n){return t.cloneElement(a,(0,xe.Z)({style:(0,xe.Z)({opacity:0,transform:Oo(.75),visibility:"exited"!==e||s?void 0:"hidden"},Mo[e],v,a.props.style),ref:E},n))}}))}));Do.muiSupportAuto=!0;var Ao=Do,Zo=n(1920),jo=n(7853),Lo=n(4531),Fo=n(4967);function zo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Bo(e){return parseInt((0,Fo.Z)(e).getComputedStyle(e).paddingRight,10)||0}function Vo(e,t,n,r,i){var o=[t,n].concat((0,oe.Z)(r));[].forEach.call(e.children,(function(e){var t=-1===o.indexOf(e),n=!function(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&zo(e,i)}))}function Ho(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Uo(e,t){var n=[],r=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,Le.Z)(e);return t.body===e?(0,Fo.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){var i=oo((0,Le.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(Bo(r)+i,"px");var o=(0,Le.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(o,(function(e){n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(Bo(e)+i,"px")}))}var a;if(r.parentNode instanceof DocumentFragment)a=(0,Le.Z)(r).body;else{var l=r.parentElement,s=(0,Fo.Z)(r);a="HTML"===(null==l?void 0:l.nodeName)&&"scroll"===s.getComputedStyle(l).overflowY?l:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return function(){n.forEach((function(e){var t=e.value,n=e.el,r=e.property;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var qo=function(){function e(){(0,jo.Z)(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return(0,Lo.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&zo(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Vo(t,e.mount,e.modalRef,r,!0);var i=Ho(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}},{key:"mount",value:function(e,t){var n=Ho(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Uo(r,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.modals.indexOf(e);if(-1===n)return n;var r=Ho(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&zo(e.modalRef,t),Vo(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{var o=i.modals[i.modals.length-1];o.modalRef&&zo(o.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),Wo=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Go(e){var t=[],n=[];return Array.from(e.querySelectorAll(Wo)).forEach((function(e,r){var i=function(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function Ko(){return!0}var $o=function(e){var n=e.children,r=e.disableAutoFocus,i=void 0!==r&&r,o=e.disableEnforceFocus,a=void 0!==o&&o,l=e.disableRestoreFocus,s=void 0!==l&&l,u=e.getTabbable,c=void 0===u?Go:u,d=e.isEnabled,f=void 0===d?Ko:d,p=e.open,h=t.useRef(!1),v=t.useRef(null),m=t.useRef(null),g=t.useRef(null),b=t.useRef(null),y=t.useRef(!1),x=t.useRef(null),w=(0,Ze.Z)(n.ref,x),C=t.useRef(null);t.useEffect((function(){p&&x.current&&(y.current=!i)}),[i,p]),t.useEffect((function(){if(p&&x.current){var e=(0,Le.Z)(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),y.current&&x.current.focus()),function(){s||(g.current&&g.current.focus&&(h.current=!0,g.current.focus()),g.current=null)}}}),[p]),t.useEffect((function(){if(p&&x.current){var e=(0,Le.Z)(x.current),t=function(t){var n=x.current;if(null!==n)if(e.hasFocus()&&!a&&f()&&!h.current){if(!n.contains(e.activeElement)){if(t&&b.current!==t.target||e.activeElement!==b.current)b.current=null;else if(null!==b.current)return;if(!y.current)return;var r=[];if(e.activeElement!==v.current&&e.activeElement!==m.current||(r=c(x.current)),r.length>0){var i,o,l=Boolean((null==(i=C.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=C.current)?void 0:o.key)),s=r[0],u=r[r.length-1];"string"!==typeof s&&"string"!==typeof u&&(l?u.focus():s.focus())}else n.focus()}}else h.current=!1},n=function(t){C.current=t,!a&&f()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(h.current=!0,m.current&&m.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);var r=setInterval((function(){e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return function(){clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}}),[i,a,s,f,p,c]);var k=function(e){null===g.current&&(g.current=e.relatedTarget),y.current=!0};return(0,ue.jsxs)(t.Fragment,{children:[(0,ue.jsx)("div",{tabIndex:p?0:-1,onFocus:k,ref:v,"data-testid":"sentinelStart"}),t.cloneElement(n,{ref:w,onFocus:function(e){null===g.current&&(g.current=e.relatedTarget),y.current=!0,b.current=e.target;var t=n.props.onFocus;t&&t(e)}}),(0,ue.jsx)("div",{tabIndex:p?0:-1,onFocus:k,ref:m,"data-testid":"sentinelEnd"})]})};function Qo(e){return(0,en.Z)("MuiModal",e)}(0,tn.Z)("MuiModal",["root","hidden"]);var Yo=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];var Jo=new qo,Xo=t.forwardRef((function(e,n){var r,i,o=e.children,a=e.classes,s=e.closeAfterTransition,u=void 0!==s&&s,c=e.component,d=e.container,f=e.disableAutoFocus,p=void 0!==f&&f,h=e.disableEnforceFocus,v=void 0!==h&&h,m=e.disableEscapeKeyDown,g=void 0!==m&&m,b=e.disablePortal,y=void 0!==b&&b,x=e.disableRestoreFocus,w=void 0!==x&&x,C=e.disableScrollLock,k=void 0!==C&&C,S=e.hideBackdrop,E=void 0!==S&&S,T=e.keepMounted,_=void 0!==T&&T,I=e.manager,R=void 0===I?Jo:I,N=e.onBackdropClick,O=e.onClose,M=e.onKeyDown,P=e.open,D=e.onTransitionEnter,A=e.onTransitionExited,Z=e.slotProps,j=void 0===Z?{}:Z,L=e.slots,F=void 0===L?{}:L,z=Ae(e,Yo),B=t.useState(!P),V=(0,l.Z)(B,2),H=V[0],U=V[1],q=t.useRef({}),W=t.useRef(null),G=t.useRef(null),K=(0,Ze.Z)(G,n),$=function(e){return!!e&&e.props.hasOwnProperty("in")}(o),Q=null==(r=e["aria-hidden"])||r,Y=function(){return q.current.modalRef=G.current,q.current.mountNode=W.current,q.current},J=function(){R.mount(Y(),{disableScrollLock:k}),G.current&&(G.current.scrollTop=0)},X=(0,Te.Z)((function(){var e=function(e){return"function"===typeof e?e():e}(d)||(0,Le.Z)(W.current).body;R.add(Y(),e),G.current&&J()})),ee=t.useCallback((function(){return R.isTopModal(Y())}),[R]),te=(0,Te.Z)((function(e){W.current=e,e&&G.current&&(P&&ee()?J():zo(G.current,Q))})),ne=t.useCallback((function(){R.remove(Y(),Q)}),[R,Q]);t.useEffect((function(){return function(){ne()}}),[ne]),t.useEffect((function(){P?X():$&&u||ne()}),[P,ne,$,u,X]);var re=ke({},e,{classes:a,closeAfterTransition:u,disableAutoFocus:p,disableEnforceFocus:v,disableEscapeKeyDown:g,disablePortal:y,disableRestoreFocus:w,disableScrollLock:k,exited:H,hideBackdrop:E,keepMounted:_}),ie=function(e){var t=e.open,n=e.exited,r=e.classes,i={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,Ce.Z)(i,Qo,r)}(re),oe={};void 0===o.props.tabIndex&&(oe.tabIndex="-1"),$&&(oe.onEnter=(0,Zo.Z)((function(){U(!1),D&&D()}),o.props.onEnter),oe.onExited=(0,Zo.Z)((function(){U(!0),A&&A(),u&&ne()}),o.props.onExited));var ae=null!=(i=null!=c?c:F.root)?i:"div",le=cn({elementType:ae,externalSlotProps:j.root,externalForwardedProps:z,additionalProps:{ref:K,role:"presentation",onKeyDown:function(e){M&&M(e),"Escape"===e.key&&ee()&&(g||(e.stopPropagation(),O&&O(e,"escapeKeyDown")))}},className:ie.root,ownerState:re}),se=F.backdrop,ce=cn({elementType:se,externalSlotProps:j.backdrop,additionalProps:{"aria-hidden":!0,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),O&&O(e,"backdropClick"))},open:P},className:ie.backdrop,ownerState:re});return _||P||$&&!H?(0,ue.jsx)(Xt,{ref:te,container:d,disablePortal:y,children:(0,ue.jsxs)(ae,ke({},le,{children:[!E&&se?(0,ue.jsx)(se,ke({},ce)):null,(0,ue.jsx)($o,{disableEnforceFocus:v,disableAutoFocus:p,disableRestoreFocus:w,isEnabled:ee,open:P,children:t.cloneElement(o,oe)})]}))}):null})),ea=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ta={entering:{opacity:1},entered:{opacity:1}},na=t.forwardRef((function(e,n){var r=_o(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},o=e.addEndListener,a=e.appear,l=void 0===a||a,s=e.children,u=e.easing,c=e.in,d=e.onEnter,f=e.onEntered,p=e.onEntering,h=e.onExit,v=e.onExited,m=e.onExiting,g=e.style,b=e.timeout,y=void 0===b?i:b,x=e.TransitionComponent,w=void 0===x?Eo:x,C=(0,ye.Z)(e,ea),k=t.useRef(null),S=(0,An.Z)(k,s.ref,n),E=function(e){return function(t){if(e){var n=k.current;void 0===t?e(n):e(n,t)}}},T=E(p),_=E((function(e,t){Io(e);var n=Ro({style:g,timeout:y,easing:u},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),d&&d(e,t)})),I=E(f),R=E(m),N=E((function(e){var t=Ro({style:g,timeout:y,easing:u},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),h&&h(e)})),O=E(v);return(0,ue.jsx)(w,(0,xe.Z)({appear:l,in:c,nodeRef:k,onEnter:_,onEntered:I,onEntering:T,onExit:N,onExited:O,onExiting:R,addEndListener:function(e){o&&o(k.current,e)},timeout:y},C,{children:function(e,n){return t.cloneElement(s,(0,xe.Z)({style:(0,xe.Z)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},ta[e],g,s.props.style),ref:S},n))}}))})),ra=na;function ia(e){return(0,en.Z)("MuiBackdrop",e)}(0,tn.Z)("MuiBackdrop",["root","invisible"]);var oa=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],aa=(0,xn.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return(0,xe.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),la=t.forwardRef((function(e,t){var n,r,i,o=(0,wn.Z)({props:e,name:"MuiBackdrop"}),a=o.children,l=o.component,s=void 0===l?"div":l,u=o.components,c=void 0===u?{}:u,d=o.componentsProps,f=void 0===d?{}:d,p=o.className,h=o.invisible,v=void 0!==h&&h,m=o.open,g=o.slotProps,b=void 0===g?{}:g,y=o.slots,x=void 0===y?{}:y,w=o.transitionDuration,C=o.TransitionComponent,k=void 0===C?ra:C,S=(0,ye.Z)(o,oa),E=(0,xe.Z)({},o,{component:s,invisible:v}),T=function(e){var t=e.classes,n={root:["root",e.invisible&&"invisible"]};return(0,Ce.Z)(n,ia,t)}(E),_=null!=(n=b.root)?n:f.root;return(0,ue.jsx)(k,(0,xe.Z)({in:m,timeout:w},S,{children:(0,ue.jsx)(aa,(0,xe.Z)({"aria-hidden":!0},_,{as:null!=(r=null!=(i=x.root)?i:c.Root)?r:s,className:(0,we.Z)(T.root,p,null==_?void 0:_.className),ownerState:(0,xe.Z)({},E,null==_?void 0:_.ownerState),classes:T,ref:t,children:a}))}))})),sa=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],ua=(0,xn.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.open&&n.exited&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return(0,xe.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),ca=(0,xn.ZP)(la,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),da=t.forwardRef((function(e,n){var r,i,o,a,s,u,c=(0,wn.Z)({name:"MuiModal",props:e}),d=c.BackdropComponent,f=void 0===d?ca:d,p=c.BackdropProps,h=c.closeAfterTransition,v=void 0!==h&&h,m=c.children,g=c.component,b=c.components,y=void 0===b?{}:b,x=c.componentsProps,w=void 0===x?{}:x,C=c.disableAutoFocus,k=void 0!==C&&C,S=c.disableEnforceFocus,E=void 0!==S&&S,T=c.disableEscapeKeyDown,_=void 0!==T&&T,I=c.disablePortal,R=void 0!==I&&I,N=c.disableRestoreFocus,O=void 0!==N&&N,M=c.disableScrollLock,P=void 0!==M&&M,D=c.hideBackdrop,A=void 0!==D&&D,Z=c.keepMounted,j=void 0!==Z&&Z,L=c.slotProps,F=c.slots,z=c.theme,B=(0,ye.Z)(c,sa),V=t.useState(!0),H=(0,l.Z)(V,2),U=H[0],q=H[1],W={closeAfterTransition:v,disableAutoFocus:k,disableEnforceFocus:E,disableEscapeKeyDown:_,disablePortal:R,disableRestoreFocus:O,disableScrollLock:P,hideBackdrop:A,keepMounted:j},G=(0,xe.Z)({},c,W,{exited:U}),K=function(e){return e.classes}(G),$=null!=(r=null!=(i=null==F?void 0:F.root)?i:y.Root)?r:ua,Q=null!=(o=null!=(a=null==F?void 0:F.backdrop)?a:y.Backdrop)?o:f,Y=null!=(s=null==L?void 0:L.root)?s:w.root,J=null!=(u=null==L?void 0:L.backdrop)?u:w.backdrop;return(0,ue.jsx)(Xo,(0,xe.Z)({slots:{root:$,backdrop:Q},slotProps:{root:function(){return(0,xe.Z)({},sn(Y,G),!rn($)&&{as:g,theme:z})},backdrop:function(){return(0,xe.Z)({},p,sn(J,G))}},onTransitionEnter:function(){return q(!1)},onTransitionExited:function(){return q(!0)},ref:n},B,{classes:K},W,{children:m}))}));function fa(e){return(0,en.Z)("MuiPopover",e)}(0,tn.Z)("MuiPopover",["root","paper"]);var pa=["onEntering"],ha=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function va(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ma(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ga(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function ba(e){return"function"===typeof e?e():e}var ya=(0,xn.ZP)(da,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),xa=(0,xn.ZP)(Dn,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),wa=t.forwardRef((function(e,n){var r=(0,wn.Z)({props:e,name:"MuiPopover"}),i=r.action,o=r.anchorEl,a=r.anchorOrigin,s=void 0===a?{vertical:"top",horizontal:"left"}:a,u=r.anchorPosition,c=r.anchorReference,d=void 0===c?"anchorEl":c,f=r.children,p=r.className,h=r.container,v=r.elevation,m=void 0===v?8:v,g=r.marginThreshold,b=void 0===g?16:g,y=r.open,x=r.PaperProps,w=void 0===x?{}:x,C=r.transformOrigin,k=void 0===C?{vertical:"top",horizontal:"left"}:C,S=r.TransitionComponent,E=void 0===S?Ao:S,T=r.transitionDuration,_=void 0===T?"auto":T,I=r.TransitionProps,R=(I=void 0===I?{}:I).onEntering,N=(0,ye.Z)(r.TransitionProps,pa),O=(0,ye.Z)(r,ha),M=t.useRef(),P=(0,An.Z)(M,w.ref),D=(0,xe.Z)({},r,{anchorOrigin:s,anchorReference:d,elevation:m,marginThreshold:b,PaperProps:w,transformOrigin:k,TransitionComponent:E,transitionDuration:_,TransitionProps:N}),A=function(e){var t=e.classes;return(0,Ce.Z)({root:["root"],paper:["paper"]},fa,t)}(D),Z=t.useCallback((function(){if("anchorPosition"===d)return u;var e=ba(o),t=(e&&1===e.nodeType?e:(0,Xi.Z)(M.current).body).getBoundingClientRect();return{top:t.top+va(t,s.vertical),left:t.left+ma(t,s.horizontal)}}),[o,s.horizontal,s.vertical,u,d]),j=t.useCallback((function(e){return{vertical:va(e,k.vertical),horizontal:ma(e,k.horizontal)}}),[k.horizontal,k.vertical]),L=t.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},n=j(t);if("none"===d)return{top:null,left:null,transformOrigin:ga(n)};var r=Z(),i=r.top-n.vertical,a=r.left-n.horizontal,l=i+t.height,s=a+t.width,u=(0,mo.Z)(ba(o)),c=u.innerHeight-b,f=u.innerWidth-b;if(ic){var h=l-c;i-=h,n.vertical+=h}if(af){var m=s-f;a-=m,n.horizontal+=m}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:ga(n)}}),[o,d,Z,j,b]),F=t.useState(y),z=(0,l.Z)(F,2),B=z[0],V=z[1],H=t.useCallback((function(){var e=M.current;if(e){var t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,V(!0)}}),[L]);t.useEffect((function(){y&&H()})),t.useImperativeHandle(i,(function(){return y?{updatePosition:function(){H()}}:null}),[y,H]),t.useEffect((function(){if(y){var e=(0,vo.Z)((function(){H()})),t=(0,mo.Z)(o);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[o,y,H]);var U=_;"auto"!==_||E.muiSupportAuto||(U=void 0);var q=h||(o?(0,Xi.Z)(ba(o)).body:void 0);return(0,ue.jsx)(ya,(0,xe.Z)({BackdropProps:{invisible:!0},className:(0,we.Z)(A.root,p),container:q,open:y,ref:n,ownerState:D},O,{children:(0,ue.jsx)(E,(0,xe.Z)({appear:!0,in:y,onEntering:function(e,t){R&&R(e,t),H()},onExited:function(){V(!1)},timeout:U},N,{children:(0,ue.jsx)(xa,(0,xe.Z)({elevation:m},w,{ref:P,className:(0,we.Z)(A.paper,w.className)},B?void 0:{style:(0,xe.Z)({},w.style,{opacity:0})},{ownerState:D,children:f}))}))}))})),Ca=wa;function ka(e){return(0,en.Z)("MuiMenu",e)}(0,tn.Z)("MuiMenu",["root","paper","list"]);var Sa=["onEntering"],Ea=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Ta={vertical:"top",horizontal:"right"},_a={vertical:"top",horizontal:"left"},Ia=(0,xn.ZP)(Ca,{shouldForwardProp:function(e){return(0,xn.FO)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Ra=(0,xn.ZP)(Dn,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Na=(0,xn.ZP)(ho,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),Oa=t.forwardRef((function(e,n){var r=(0,wn.Z)({props:e,name:"MuiMenu"}),i=r.autoFocus,o=void 0===i||i,a=r.children,l=r.disableAutoFocusItem,s=void 0!==l&&l,u=r.MenuListProps,c=void 0===u?{}:u,d=r.onClose,f=r.open,p=r.PaperProps,h=void 0===p?{}:p,v=r.PopoverClasses,m=r.transitionDuration,g=void 0===m?"auto":m,b=r.TransitionProps,y=(b=void 0===b?{}:b).onEntering,x=r.variant,w=void 0===x?"selectedMenu":x,C=(0,ye.Z)(r.TransitionProps,Sa),k=(0,ye.Z)(r,Ea),S=_o(),E="rtl"===S.direction,T=(0,xe.Z)({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:c,onEntering:y,PaperProps:h,transitionDuration:g,TransitionProps:C,variant:w}),_=function(e){var t=e.classes;return(0,Ce.Z)({root:["root"],paper:["paper"],list:["list"]},ka,t)}(T),I=o&&!s&&f,R=t.useRef(null),N=-1;return t.Children.map(a,(function(e,n){t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===w&&e.props.selected||-1===N)&&(N=n))})),(0,ue.jsx)(Ia,(0,xe.Z)({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Ta:_a,PaperProps:(0,xe.Z)({component:Ra},h,{classes:(0,xe.Z)({},h.classes,{root:_.paper})}),className:_.root,open:f,ref:n,transitionDuration:g,TransitionProps:(0,xe.Z)({onEntering:function(e,t){R.current&&R.current.adjustStyleForScrollbar(e,S),y&&y(e,t)}},C),ownerState:T},k,{classes:v,children:(0,ue.jsx)(Na,(0,xe.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:R,autoFocus:o&&(-1===N||s),autoFocusItem:I,variant:w},c,{className:(0,we.Z)(_.list,c.className),children:a}))}))}));function Ma(e){return(0,en.Z)("MuiNativeSelect",e)}var Pa=(0,tn.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Da=["className","disabled","IconComponent","inputRef","variant"],Aa=function(e){var t,n=e.ownerState,r=e.theme;return(0,xe.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,xe.Z)({},r.vars?{backgroundColor:"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"}},(0,X.Z)(t,"&.".concat(Pa.disabled),{cursor:"default"}),(0,X.Z)(t,"&[multiple]",{height:"auto"}),(0,X.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(r.vars||r).palette.background.paper}),(0,X.Z)(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===n.variant&&{"&&&":{paddingRight:32}},"outlined"===n.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},Za=(0,xn.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:xn.FO,overridesResolver:function(e,t){var n=e.ownerState;return[t.select,t[n.variant],(0,X.Z)({},"&.".concat(Pa.multiple),t.multiple)]}})(Aa),ja=function(e){var t=e.ownerState,n=e.theme;return(0,xe.Z)((0,X.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active},"&.".concat(Pa.disabled),{color:(n.vars||n).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},La=(0,xn.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,En.Z)(n.variant))],n.open&&t.iconOpen]}})(ja),Fa=t.forwardRef((function(e,n){var r=e.className,i=e.disabled,o=e.IconComponent,a=e.inputRef,l=e.variant,s=void 0===l?"standard":l,u=(0,ye.Z)(e,Da),c=(0,xe.Z)({},e,{disabled:i,variant:s}),d=function(e){var t=e.classes,n=e.variant,r=e.disabled,i=e.multiple,o=e.open,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon","icon".concat((0,En.Z)(n)),o&&"iconOpen",r&&"disabled"]};return(0,Ce.Z)(a,Ma,t)}(c);return(0,ue.jsxs)(t.Fragment,{children:[(0,ue.jsx)(Za,(0,xe.Z)({ownerState:c,className:(0,we.Z)(d.select,r),disabled:i,ref:a||n},u)),e.multiple?null:(0,ue.jsx)(La,{as:o,ownerState:c,className:d.icon})]})}));function za(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ba(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(za(e.value)&&""!==e.value||t&&za(e.defaultValue)&&""!==e.defaultValue)}var Va=n(9393);function Ha(e){return(0,en.Z)("MuiSelect",e)}var Ua,qa=(0,tn.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Wa=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Ga=(0,xn.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var n=e.ownerState;return[(0,X.Z)({},"&.".concat(qa.select),t.select),(0,X.Z)({},"&.".concat(qa.select),t[n.variant]),(0,X.Z)({},"&.".concat(qa.multiple),t.multiple)]}})(Aa,(0,X.Z)({},"&.".concat(qa.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),Ka=(0,xn.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,En.Z)(n.variant))],n.open&&t.iconOpen]}})(ja),$a=(0,xn.ZP)("input",{shouldForwardProp:function(e){return(0,xn.Dz)(e)&&"classes"!==e},name:"MuiSelect",slot:"NativeInput",overridesResolver:function(e,t){return t.nativeInput}})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Qa(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function Ya(e){return null==e||"string"===typeof e&&!e.trim()}var Ja=t.forwardRef((function(e,n){var r=e["aria-describedby"],i=e["aria-label"],o=e.autoFocus,a=e.autoWidth,s=e.children,u=e.className,c=e.defaultOpen,d=e.defaultValue,f=e.disabled,p=e.displayEmpty,h=e.IconComponent,v=e.inputRef,m=e.labelId,g=e.MenuProps,b=void 0===g?{}:g,y=e.multiple,x=e.name,w=e.onBlur,C=e.onChange,k=e.onClose,S=e.onFocus,E=e.onOpen,T=e.open,_=e.readOnly,I=e.renderValue,R=e.SelectDisplayProps,N=void 0===R?{}:R,O=e.tabIndex,M=e.value,P=e.variant,D=void 0===P?"standard":P,A=(0,ye.Z)(e,Wa),Z=(0,Va.Z)({controlled:M,default:d,name:"Select"}),j=(0,l.Z)(Z,2),L=j[0],F=j[1],z=(0,Va.Z)({controlled:T,default:c,name:"Select"}),B=(0,l.Z)(z,2),V=B[0],H=B[1],U=t.useRef(null),q=t.useRef(null),W=t.useState(null),G=(0,l.Z)(W,2),K=G[0],$=G[1],Q=t.useRef(null!=T).current,Y=t.useState(),J=(0,l.Z)(Y,2),X=J[0],ee=J[1],te=(0,An.Z)(n,v),ne=t.useCallback((function(e){q.current=e,e&&$(e)}),[]),re=null==K?void 0:K.parentNode;t.useImperativeHandle(te,(function(){return{focus:function(){q.current.focus()},node:U.current,value:L}}),[L]),t.useEffect((function(){c&&V&&K&&!Q&&(ee(a?null:re.clientWidth),q.current.focus())}),[K,a]),t.useEffect((function(){o&&q.current.focus()}),[o]),t.useEffect((function(){if(m){var e=(0,Xi.Z)(q.current).getElementById(m);if(e){var t=function(){getSelection().isCollapsed&&q.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[m]);var ie,oe,ae=function(e,t){e?E&&E(t):k&&k(t),Q||(ee(a?null:re.clientWidth),H(e))},le=t.Children.toArray(s),se=function(e){return function(t){var n;if(t.currentTarget.hasAttribute("tabindex")){if(y){n=Array.isArray(L)?L.slice():[];var r=L.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==n&&(F(n),C)){var i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),C(o,e)}y||ae(!1,t)}}},ce=null!==K&&V;delete A["aria-invalid"];var de=[],fe=!1;(Ba({value:L})||p)&&(I?ie=I(L):fe=!0);var pe=le.map((function(e,n,r){var i,o,a,l,s;if(!t.isValidElement(e))return null;if(y){if(!Array.isArray(L))throw new Error((0,Ji.Z)(2));(s=L.some((function(t){return Qa(t,e.props.value)})))&&fe&&de.push(e.props.children)}else(s=Qa(L,e.props.value))&&fe&&(oe=e.props.children);if(s&&!0,void 0===e.props.value)return t.cloneElement(e,{"aria-readonly":!0,role:"option"});return t.cloneElement(e,{"aria-selected":s?"true":"false",onClick:se(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===(null==(i=r[0])||null==(o=i.props)?void 0:o.value)||!0===(null==(a=r[0])||null==(l=a.props)?void 0:l.disabled)?function(){if(L)return s;var t=r.find((function(e){var t;return void 0!==(null==e||null==(t=e.props)?void 0:t.value)&&!0!==e.props.disabled}));return e===t||s}():s,value:void 0,"data-value":e.props.value})}));fe&&(ie=y?0===de.length?null:de.reduce((function(e,t,n){return e.push(t),n0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(m.current+=1,{overflow:r,outerHeightStyle:n}):e},k=t.useCallback((function(){var e=w();ll(e)||x((function(t){return C(t,e)}))}),[w]);t.useEffect((function(){var e,t=(0,rl.Z)((function(){m.current=0,p.current&&function(){var e=w();ll(e)||(0,i.flushSync)((function(){x((function(t){return C(t,e)}))}))}()})),n=(0,Fo.Z)(p.current);return n.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(p.current),function(){t.clear(),n.removeEventListener("resize",t),e&&e.disconnect()}})),(0,je.Z)((function(){k()})),t.useEffect((function(){m.current=0}),[c]);return(0,ue.jsxs)(t.Fragment,{children:[(0,ue.jsx)("textarea",ke({value:c,onChange:function(e){m.current=0,f||k(),r&&r(e)},ref:h,rows:s,style:ke({height:y.outerHeightStyle,overflow:y.overflow?"hidden":null},u)},d)),(0,ue.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:v,tabIndex:-1,style:ke({},al,u,{padding:0})})]})})),ul=sl;function cl(e){var t=e.styles,n=e.defaultTheme,r=void 0===n?{}:n,i="function"===typeof t?function(e){return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,ue.jsx)(er,{styles:i})}var dl=function(e){return(0,ue.jsx)(cl,(0,xe.Z)({},e,{defaultTheme:To.Z}))},fl=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],pl=function(e,t){var n=e.ownerState;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,En.Z)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},hl=function(e,t){var n=e.ownerState;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},vl=(0,xn.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:pl})((function(e){var t=e.theme,n=e.ownerState;return(0,xe.Z)({},t.typography.body1,(0,X.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(Hr.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),n.multiline&&(0,xe.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),ml=(0,xn.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:hl})((function(e){var t,n=e.theme,r=e.ownerState,i="light"===n.palette.mode,o=(0,xe.Z)({color:"currentColor"},n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5},{transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})}),a={opacity:"0 !important"},l=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5};return(0,xe.Z)((t={font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,X.Z)(t,"label[data-shrink=false] + .".concat(Hr.formControl," &"),{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus:-ms-input-placeholder":l,"&:focus::-ms-input-placeholder":l}),(0,X.Z)(t,"&.".concat(Hr.disabled),{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled}),(0,X.Z)(t,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),t),"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),gl=(0,ue.jsx)(dl,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),bl=t.forwardRef((function(e,n){var r,i=(0,wn.Z)({props:e,name:"MuiInputBase"}),o=i["aria-describedby"],a=i.autoComplete,s=i.autoFocus,u=i.className,c=i.components,d=void 0===c?{}:c,f=i.componentsProps,p=void 0===f?{}:f,h=i.defaultValue,v=i.disabled,m=i.disableInjectingGlobalStyles,g=i.endAdornment,b=i.fullWidth,y=void 0!==b&&b,x=i.id,w=i.inputComponent,C=void 0===w?"input":w,k=i.inputProps,S=void 0===k?{}:k,E=i.inputRef,T=i.maxRows,_=i.minRows,I=i.multiline,R=void 0!==I&&I,N=i.name,O=i.onBlur,M=i.onChange,P=i.onClick,D=i.onFocus,A=i.onKeyDown,Z=i.onKeyUp,j=i.placeholder,L=i.readOnly,F=i.renderSuffix,z=i.rows,B=i.slotProps,V=void 0===B?{}:B,H=i.slots,U=void 0===H?{}:H,q=i.startAdornment,W=i.type,G=void 0===W?"text":W,K=i.value,$=(0,ye.Z)(i,fl),Q=null!=S.value?S.value:K,Y=t.useRef(null!=Q).current,J=t.useRef(),X=t.useCallback((function(e){0}),[]),ee=(0,An.Z)(J,E,S.ref,X),te=t.useState(!1),ne=(0,l.Z)(te,2),re=ne[0],ie=ne[1],oe=nl();var ae=el({props:i,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ae.focused=oe?oe.focused:re,t.useEffect((function(){!oe&&v&&re&&(ie(!1),O&&O())}),[oe,v,re,O]);var le=oe&&oe.onFilled,se=oe&&oe.onEmpty,ce=t.useCallback((function(e){Ba(e)?le&&le():se&&se()}),[le,se]);(0,lo.Z)((function(){Y&&ce({value:Q})}),[Q,ce,Y]);t.useEffect((function(){ce(J.current)}),[]);var de=C,fe=S;R&&"input"===de&&(fe=z?(0,xe.Z)({type:void 0,minRows:z,maxRows:z},fe):(0,xe.Z)({type:void 0,maxRows:T,minRows:_},fe),de=ul);t.useEffect((function(){oe&&oe.setAdornedStart(Boolean(q))}),[oe,q]);var pe=(0,xe.Z)({},i,{color:ae.color||"primary",disabled:ae.disabled,endAdornment:g,error:ae.error,focused:ae.focused,formControl:oe,fullWidth:y,hiddenLabel:ae.hiddenLabel,multiline:R,size:ae.size,startAdornment:q,type:G}),he=function(e){var t=e.classes,n=e.color,r=e.disabled,i=e.error,o=e.endAdornment,a=e.focused,l=e.formControl,s=e.fullWidth,u=e.hiddenLabel,c=e.multiline,d=e.readOnly,f=e.size,p=e.startAdornment,h=e.type,v={root:["root","color".concat((0,En.Z)(n)),r&&"disabled",i&&"error",s&&"fullWidth",a&&"focused",l&&"formControl","small"===f&&"sizeSmall",c&&"multiline",p&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return(0,Ce.Z)(v,Vr,t)}(pe),ve=U.root||d.Root||vl,me=V.root||p.root||{},ge=U.input||d.Input||ml;return fe=(0,xe.Z)({},fe,null!=(r=V.input)?r:p.input),(0,ue.jsxs)(t.Fragment,{children:[!m&&gl,(0,ue.jsxs)(ve,(0,xe.Z)({},me,!rn(ve)&&{ownerState:(0,xe.Z)({},pe,me.ownerState)},{ref:n,onClick:function(e){J.current&&e.currentTarget===e.target&&J.current.focus(),P&&P(e)}},$,{className:(0,we.Z)(he.root,me.className,u),children:[q,(0,ue.jsx)(tl.Provider,{value:null,children:(0,ue.jsx)(ge,(0,xe.Z)({ownerState:pe,"aria-invalid":ae.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:h,disabled:ae.disabled,id:x,onAnimationStart:function(e){ce("mui-auto-fill-cancel"===e.animationName?J.current:{value:"x"})},name:N,placeholder:j,readOnly:L,required:ae.required,rows:z,value:Q,onKeyDown:A,onKeyUp:Z,type:G},fe,!rn(ge)&&{as:de,ownerState:(0,xe.Z)({},pe,fe.ownerState)},{ref:ee,className:(0,we.Z)(he.input,fe.className),onBlur:function(e){O&&O(e),S.onBlur&&S.onBlur(e),oe&&oe.onBlur?oe.onBlur(e):ie(!1)},onChange:function(e){if(!Y){var t=e.target||J.current;if(null==t)throw new Error((0,Ji.Z)(1));ce({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));var Dl=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Al=(0,xn.ZP)(vl,{shouldForwardProp:function(e){return(0,xn.FO)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:pl})((function(e){var t,n=e.theme,r=e.ownerState,i="light"===n.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,xe.Z)((t={position:"relative",borderRadius:(n.vars||n).shape.borderRadius},(0,X.Z)(t,"&:hover .".concat(Gr.notchedOutline),{borderColor:(n.vars||n).palette.text.primary}),(0,X.Z)(t,"@media (hover: none)",(0,X.Z)({},"&:hover .".concat(Gr.notchedOutline),{borderColor:n.vars?"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.23)"):i})),(0,X.Z)(t,"&.".concat(Gr.focused," .").concat(Gr.notchedOutline),{borderColor:(n.vars||n).palette[r.color].main,borderWidth:2}),(0,X.Z)(t,"&.".concat(Gr.error," .").concat(Gr.notchedOutline),{borderColor:(n.vars||n).palette.error.main}),(0,X.Z)(t,"&.".concat(Gr.disabled," .").concat(Gr.notchedOutline),{borderColor:(n.vars||n).palette.action.disabled}),t),r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,xe.Z)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),Zl=(0,xn.ZP)((function(e){var t=e.className,n=e.label,r=e.notched,i=(0,ye.Z)(e,Ol),o=null!=n&&""!==n,a=(0,xe.Z)({},e,{notched:r,withLabel:o});return(0,ue.jsx)(Ml,(0,xe.Z)({"aria-hidden":!0,className:t,ownerState:a},i,{children:(0,ue.jsx)(Pl,{ownerState:a,children:o?(0,ue.jsx)("span",{children:n}):Rl||(Rl=(0,ue.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),jl=(0,xn.ZP)(ml,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:hl})((function(e){var t=e.theme,n=e.ownerState;return(0,xe.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&(0,X.Z)({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),Ll=t.forwardRef((function(e,n){var r,i,o,a,l,s=(0,wn.Z)({props:e,name:"MuiOutlinedInput"}),u=s.components,c=void 0===u?{}:u,d=s.fullWidth,f=void 0!==d&&d,p=s.inputComponent,h=void 0===p?"input":p,v=s.label,m=s.multiline,g=void 0!==m&&m,b=s.notched,y=s.slots,x=void 0===y?{}:y,w=s.type,C=void 0===w?"text":w,k=(0,ye.Z)(s,Dl),S=function(e){var t=e.classes,n=(0,Ce.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Wr,t);return(0,xe.Z)({},t,n)}(s),E=nl(),T=el({props:s,muiFormControl:E,states:["required"]}),_=(0,xe.Z)({},s,{color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:E,fullWidth:f,hiddenLabel:T.hiddenLabel,multiline:g,size:T.size,type:C}),I=null!=(r=null!=(i=x.root)?i:c.Root)?r:Al,R=null!=(o=null!=(a=x.input)?a:c.Input)?o:jl;return(0,ue.jsx)(yl,(0,xe.Z)({slots:{root:I,input:R},renderSuffix:function(e){return(0,ue.jsx)(Zl,{ownerState:_,className:S.notchedOutline,label:null!=v&&""!==v&&T.required?l||(l=(0,ue.jsxs)(t.Fragment,{children:[v,"\xa0","*"]})):v,notched:"undefined"!==typeof b?b:Boolean(e.startAdornment||e.filled||e.focused)})},fullWidth:f,inputComponent:h,multiline:g,ref:n,type:C},k,{classes:(0,xe.Z)({},S,{notchedOutline:null})}))}));Ll.muiName="Input";var Fl,zl,Bl=Ll,Vl=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Hl={name:"MuiSelect",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(e){return(0,xn.FO)(e)&&"variant"!==e},slot:"Root"},Ul=(0,xn.ZP)(Sl,Hl)(""),ql=(0,xn.ZP)(Bl,Hl)(""),Wl=(0,xn.ZP)(Nl,Hl)(""),Gl=t.forwardRef((function(e,n){var r=(0,wn.Z)({name:"MuiSelect",props:e}),i=r.autoWidth,o=void 0!==i&&i,a=r.children,l=r.classes,s=void 0===l?{}:l,u=r.className,c=r.defaultOpen,d=void 0!==c&&c,f=r.displayEmpty,p=void 0!==f&&f,h=r.IconComponent,v=void 0===h?Yr:h,m=r.id,g=r.input,b=r.inputProps,y=r.label,x=r.labelId,w=r.MenuProps,C=r.multiple,k=void 0!==C&&C,S=r.native,E=void 0!==S&&S,T=r.onClose,_=r.onOpen,I=r.open,R=r.renderValue,N=r.SelectDisplayProps,O=r.variant,M=void 0===O?"outlined":O,P=(0,ye.Z)(r,Vl),D=E?Fa:Xa,A=el({props:r,muiFormControl:nl(),states:["variant"]}).variant||M,Z=g||{standard:Fl||(Fl=(0,ue.jsx)(Ul,{})),outlined:(0,ue.jsx)(ql,{label:y}),filled:zl||(zl=(0,ue.jsx)(Wl,{}))}[A],j=function(e){return e.classes}((0,xe.Z)({},r,{variant:A,classes:s})),L=(0,An.Z)(n,Z.ref);return(0,ue.jsx)(t.Fragment,{children:t.cloneElement(Z,(0,xe.Z)({inputComponent:D,inputProps:(0,xe.Z)({children:a,IconComponent:v,variant:A,type:void 0,multiple:k},E?{id:m}:{autoWidth:o,defaultOpen:d,displayEmpty:p,labelId:x,MenuProps:w,onClose:T,onOpen:_,open:I,renderValue:R,SelectDisplayProps:(0,xe.Z)({id:m},N)},b,{classes:b?(0,xi.Z)(j,b.classes):j},g?g.props.inputProps:{})},k&&E&&"outlined"===A?{notched:!0}:{},{ref:L,className:(0,we.Z)(Z.props.className,u)},!g&&{variant:A},P))})}));Gl.muiName="Select";var Kl=Gl;function $l(e){return(0,en.Z)("MuiDivider",e)}var Ql=(0,tn.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function Yl(e){return(0,en.Z)("MuiListItemIcon",e)}var Jl=(0,tn.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);function Xl(e){return(0,en.Z)("MuiListItemText",e)}var es=(0,tn.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function ts(e){return(0,en.Z)("MuiMenuItem",e)}var ns=(0,tn.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),rs=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],is=(0,xn.ZP)(_r,{shouldForwardProp:function(e){return(0,xn.FO)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,xe.Z)({},n.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((n.vars||n).palette.divider),backgroundClip:"padding-box"},(t={"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,X.Z)(t,"&.".concat(ns.selected),(0,X.Z)({backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,De.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(ns.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,De.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),(0,X.Z)(t,"&.".concat(ns.selected,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,De.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,De.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)}}),(0,X.Z)(t,"&.".concat(ns.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,X.Z)(t,"&.".concat(ns.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),(0,X.Z)(t,"& + .".concat(Ql.root),{marginTop:n.spacing(1),marginBottom:n.spacing(1)}),(0,X.Z)(t,"& + .".concat(Ql.inset),{marginLeft:52}),(0,X.Z)(t,"& .".concat(es.root),{marginTop:0,marginBottom:0}),(0,X.Z)(t,"& .".concat(es.inset),{paddingLeft:36}),(0,X.Z)(t,"& .".concat(Jl.root),{minWidth:36}),t),!r.dense&&(0,X.Z)({},n.breakpoints.up("sm"),{minHeight:"auto"}),r.dense&&(0,xe.Z)({minHeight:32,paddingTop:4,paddingBottom:4},n.typography.body2,(0,X.Z)({},"& .".concat(Jl.root," svg"),{fontSize:"1.25rem"})))})),os=t.forwardRef((function(e,n){var r=(0,wn.Z)({props:e,name:"MuiMenuItem"}),i=r.autoFocus,o=void 0!==i&&i,a=r.component,l=void 0===a?"li":a,s=r.dense,u=void 0!==s&&s,c=r.divider,d=void 0!==c&&c,f=r.disableGutters,p=void 0!==f&&f,h=r.focusVisibleClassName,v=r.role,m=void 0===v?"menuitem":v,g=r.tabIndex,b=r.className,y=(0,ye.Z)(r,rs),x=t.useContext(eo),w=t.useMemo((function(){return{dense:u||x.dense||!1,disableGutters:p}}),[x.dense,u,p]),C=t.useRef(null);(0,lo.Z)((function(){o&&C.current&&C.current.focus()}),[o]);var k,S=(0,xe.Z)({},r,{dense:w.dense,divider:d,disableGutters:p}),E=function(e){var t=e.disabled,n=e.dense,r=e.divider,i=e.disableGutters,o=e.selected,a=e.classes,l={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},s=(0,Ce.Z)(l,ts,a);return(0,xe.Z)({},a,s)}(r),T=(0,An.Z)(C,n);return r.disabled||(k=void 0!==g?g:-1),(0,ue.jsx)(eo.Provider,{value:w,children:(0,ue.jsx)(is,(0,xe.Z)({ref:T,role:m,tabIndex:k,component:l,focusVisibleClassName:(0,we.Z)(E.focusVisible,h),className:(0,we.Z)(E.root,b)},y,{ownerState:S,classes:E}))})}));function as(e){return(0,en.Z)("MuiFormLabel",e)}var ls=(0,tn.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ss=["children","className","color","component","disabled","error","filled","focused","required"],us=(0,xn.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,xe.Z)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,xe.Z)({color:(n.vars||n).palette.text.secondary},n.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"},(0,X.Z)(t,"&.".concat(ls.focused),{color:(n.vars||n).palette[r.color].main}),(0,X.Z)(t,"&.".concat(ls.disabled),{color:(n.vars||n).palette.text.disabled}),(0,X.Z)(t,"&.".concat(ls.error),{color:(n.vars||n).palette.error.main}),t))})),cs=(0,xn.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,X.Z)({},"&.".concat(ls.error),{color:(t.vars||t).palette.error.main})})),ds=t.forwardRef((function(e,t){var n=(0,wn.Z)({props:e,name:"MuiFormLabel"}),r=n.children,i=n.className,o=n.component,a=void 0===o?"label":o,l=(0,ye.Z)(n,ss),s=el({props:n,muiFormControl:nl(),states:["color","required","focused","disabled","error","filled"]}),u=(0,xe.Z)({},n,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=function(e){var t=e.classes,n=e.color,r=e.focused,i=e.disabled,o=e.error,a=e.filled,l=e.required,s={root:["root","color".concat((0,En.Z)(n)),i&&"disabled",o&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return(0,Ce.Z)(s,as,t)}(u);return(0,ue.jsxs)(us,(0,xe.Z)({as:a,ownerState:u,className:(0,we.Z)(c.root,i),ref:t},l,{children:[r,s.required&&(0,ue.jsxs)(cs,{ownerState:u,"aria-hidden":!0,className:c.asterisk,children:["\u2009","*"]})]}))}));function fs(e){return(0,en.Z)("MuiInputLabel",e)}(0,tn.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var ps=["disableAnimation","margin","shrink","variant","className"],hs=(0,xn.ZP)(ds,{shouldForwardProp:function(e){return(0,xn.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,X.Z)({},"& .".concat(ls.asterisk),t.asterisk),t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,xe.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,xe.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,xe.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,xe.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))})),vs=t.forwardRef((function(e,t){var n=(0,wn.Z)({name:"MuiInputLabel",props:e}),r=n.disableAnimation,i=void 0!==r&&r,o=n.shrink,a=n.className,l=(0,ye.Z)(n,ps),s=nl(),u=o;"undefined"===typeof u&&s&&(u=s.filled||s.focused||s.adornedStart);var c=el({props:n,muiFormControl:s,states:["size","variant","required"]}),d=(0,xe.Z)({},n,{disableAnimation:i,formControl:s,shrink:u,size:c.size,variant:c.variant,required:c.required}),f=function(e){var t=e.classes,n=e.formControl,r=e.size,i=e.shrink,o={root:["root",n&&"formControl",!e.disableAnimation&&"animated",i&&"shrink","small"===r&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},a=(0,Ce.Z)(o,fs,t);return(0,xe.Z)({},t,a)}(d);return(0,ue.jsx)(hs,(0,xe.Z)({"data-shrink":u,ownerState:d,ref:t,className:(0,we.Z)(f.root,a)},l,{classes:f}))})),ms=n(5992);function gs(e){return(0,en.Z)("MuiFormControl",e)}(0,tn.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var bs=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ys=(0,xn.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,xe.Z)({},t.root,t["margin".concat((0,En.Z)(n.margin))],n.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,xe.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),xs=t.forwardRef((function(e,n){var r=(0,wn.Z)({props:e,name:"MuiFormControl"}),i=r.children,o=r.className,a=r.color,s=void 0===a?"primary":a,u=r.component,c=void 0===u?"div":u,d=r.disabled,f=void 0!==d&&d,p=r.error,h=void 0!==p&&p,v=r.focused,m=r.fullWidth,g=void 0!==m&&m,b=r.hiddenLabel,y=void 0!==b&&b,x=r.margin,w=void 0===x?"none":x,C=r.required,k=void 0!==C&&C,S=r.size,E=void 0===S?"medium":S,T=r.variant,_=void 0===T?"outlined":T,I=(0,ye.Z)(r,bs),R=(0,xe.Z)({},r,{color:s,component:c,disabled:f,error:h,fullWidth:g,hiddenLabel:y,margin:w,required:k,size:E,variant:_}),N=function(e){var t=e.classes,n=e.margin,r=e.fullWidth,i={root:["root","none"!==n&&"margin".concat((0,En.Z)(n)),r&&"fullWidth"]};return(0,Ce.Z)(i,gs,t)}(R),O=t.useState((function(){var e=!1;return i&&t.Children.forEach(i,(function(t){if((0,ms.Z)(t,["Input","Select"])){var n=(0,ms.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),M=(0,l.Z)(O,2),P=M[0],D=M[1],A=t.useState((function(){var e=!1;return i&&t.Children.forEach(i,(function(t){(0,ms.Z)(t,["Input","Select"])&&Ba(t.props,!0)&&(e=!0)})),e})),Z=(0,l.Z)(A,2),j=Z[0],L=Z[1],F=t.useState(!1),z=(0,l.Z)(F,2),B=z[0],V=z[1];f&&B&&V(!1);var H,U=void 0===v||f?B:v,q=t.useMemo((function(){return{adornedStart:P,setAdornedStart:D,color:s,disabled:f,error:h,filled:j,focused:U,fullWidth:g,hiddenLabel:y,size:E,onBlur:function(){V(!1)},onEmpty:function(){L(!1)},onFilled:function(){L(!0)},onFocus:function(){V(!0)},registerEffect:H,required:k,variant:_}}),[P,s,f,h,j,U,g,y,H,k,E,_]);return(0,ue.jsx)(tl.Provider,{value:q,children:(0,ue.jsx)(ys,(0,xe.Z)({as:c,ownerState:R,className:(0,we.Z)(N.root,o),ref:n},I,{children:i}))})}));function ws(e){return(0,en.Z)("MuiFormHelperText",e)}var Cs,ks=(0,tn.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Ss=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Es=(0,xn.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.size&&t["size".concat((0,En.Z)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,xe.Z)({color:(n.vars||n).palette.text.secondary},n.typography.caption,(t={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,X.Z)(t,"&.".concat(ks.disabled),{color:(n.vars||n).palette.text.disabled}),(0,X.Z)(t,"&.".concat(ks.error),{color:(n.vars||n).palette.error.main}),t),"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})})),Ts=t.forwardRef((function(e,t){var n=(0,wn.Z)({props:e,name:"MuiFormHelperText"}),r=n.children,i=n.className,o=n.component,a=void 0===o?"p":o,l=(0,ye.Z)(n,Ss),s=el({props:n,muiFormControl:nl(),states:["variant","size","disabled","error","filled","focused","required"]}),u=(0,xe.Z)({},n,{component:a,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=function(e){var t=e.classes,n=e.contained,r=e.size,i=e.disabled,o=e.error,a=e.filled,l=e.focused,s=e.required,u={root:["root",i&&"disabled",o&&"error",r&&"size".concat((0,En.Z)(r)),n&&"contained",l&&"focused",a&&"filled",s&&"required"]};return(0,Ce.Z)(u,ws,t)}(u);return(0,ue.jsx)(Es,(0,xe.Z)({as:a,ownerState:u,className:(0,we.Z)(c.root,i),ref:t},l,{children:" "===r?Cs||(Cs=(0,ue.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))}));function _s(e){return(0,en.Z)("MuiTextField",e)}(0,tn.Z)("MuiTextField",["root"]);var Is=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Rs={standard:Sl,filled:Nl,outlined:Bl},Ns=(0,xn.ZP)(xs,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Os=t.forwardRef((function(e,t){var n=(0,wn.Z)({props:e,name:"MuiTextField"}),r=n.autoComplete,i=n.autoFocus,o=void 0!==i&&i,a=n.children,l=n.className,s=n.color,u=void 0===s?"primary":s,c=n.defaultValue,d=n.disabled,f=void 0!==d&&d,p=n.error,h=void 0!==p&&p,v=n.FormHelperTextProps,m=n.fullWidth,g=void 0!==m&&m,b=n.helperText,y=n.id,x=n.InputLabelProps,w=n.inputProps,C=n.InputProps,k=n.inputRef,S=n.label,E=n.maxRows,T=n.minRows,_=n.multiline,I=void 0!==_&&_,R=n.name,N=n.onBlur,O=n.onChange,M=n.onFocus,P=n.placeholder,D=n.required,A=void 0!==D&&D,Z=n.rows,j=n.select,L=void 0!==j&&j,F=n.SelectProps,z=n.type,B=n.value,V=n.variant,H=void 0===V?"outlined":V,U=(0,ye.Z)(n,Is),q=(0,xe.Z)({},n,{autoFocus:o,color:u,disabled:f,error:h,fullWidth:g,multiline:I,required:A,select:L,variant:H}),W=function(e){var t=e.classes;return(0,Ce.Z)({root:["root"]},_s,t)}(q);var G={};"outlined"===H&&(x&&"undefined"!==typeof x.shrink&&(G.notched=x.shrink),G.label=S),L&&(F&&F.native||(G.id=void 0),G["aria-describedby"]=void 0);var K=(0,Se.Z)(y),$=b&&K?"".concat(K,"-helper-text"):void 0,Q=S&&K?"".concat(K,"-label"):void 0,Y=Rs[H],J=(0,ue.jsx)(Y,(0,xe.Z)({"aria-describedby":$,autoComplete:r,autoFocus:o,defaultValue:c,fullWidth:g,multiline:I,name:R,rows:Z,maxRows:E,minRows:T,type:z,value:B,id:K,inputRef:k,onBlur:N,onChange:O,onFocus:M,placeholder:P,inputProps:w},G,C));return(0,ue.jsxs)(Ns,(0,xe.Z)({className:(0,we.Z)(W.root,l),disabled:f,error:h,fullWidth:g,ref:t,required:A,color:u,variant:H,ownerState:q},U,{children:[null!=S&&""!==S&&(0,ue.jsx)(vs,(0,xe.Z)({htmlFor:K,id:Q},x,{children:S})),L?(0,ue.jsx)(Kl,(0,xe.Z)({"aria-describedby":$,id:K,labelId:Q,value:B,input:J},F,{children:a})):J,b&&(0,ue.jsx)(Ts,(0,xe.Z)({id:$},v,{children:b}))]}))})),Ms=Os,Ps=n(6005);function Ds(e){return(0,en.Z)("MuiButton",e)}var As=(0,tn.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Zs=t.createContext({}),js=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ls=function(e){return(0,xe.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}})},Fs=(0,xn.ZP)(_r,{shouldForwardProp:function(e){return(0,xn.FO)(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,En.Z)(n.color))],t["size".concat((0,En.Z)(n.size))],t["".concat(n.variant,"Size").concat((0,En.Z)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((function(e){var t,n,r,i=e.theme,o=e.ownerState;return(0,xe.Z)({},i.typography.button,(t={minWidth:64,padding:"6px 16px",borderRadius:(i.vars||i).shape.borderRadius,transition:i.transitions.create(["background-color","box-shadow","border-color","color"],{duration:i.transitions.duration.short}),"&:hover":(0,xe.Z)({textDecoration:"none",backgroundColor:i.vars?"rgba(".concat(i.vars.palette.text.primaryChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):(0,De.Fq)(i.palette.text.primary,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===o.variant&&"inherit"!==o.color&&{backgroundColor:i.vars?"rgba(".concat(i.vars.palette[o.color].mainChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):(0,De.Fq)(i.palette[o.color].main,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===o.variant&&"inherit"!==o.color&&{border:"1px solid ".concat((i.vars||i).palette[o.color].main),backgroundColor:i.vars?"rgba(".concat(i.vars.palette[o.color].mainChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):(0,De.Fq)(i.palette[o.color].main,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===o.variant&&{backgroundColor:(i.vars||i).palette.grey.A100,boxShadow:(i.vars||i).shadows[4],"@media (hover: none)":{boxShadow:(i.vars||i).shadows[2],backgroundColor:(i.vars||i).palette.grey[300]}},"contained"===o.variant&&"inherit"!==o.color&&{backgroundColor:(i.vars||i).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(i.vars||i).palette[o.color].main}}),"&:active":(0,xe.Z)({},"contained"===o.variant&&{boxShadow:(i.vars||i).shadows[8]})},(0,X.Z)(t,"&.".concat(As.focusVisible),(0,xe.Z)({},"contained"===o.variant&&{boxShadow:(i.vars||i).shadows[6]})),(0,X.Z)(t,"&.".concat(As.disabled),(0,xe.Z)({color:(i.vars||i).palette.action.disabled},"outlined"===o.variant&&{border:"1px solid ".concat((i.vars||i).palette.action.disabledBackground)},"outlined"===o.variant&&"secondary"===o.color&&{border:"1px solid ".concat((i.vars||i).palette.action.disabled)},"contained"===o.variant&&{color:(i.vars||i).palette.action.disabled,boxShadow:(i.vars||i).shadows[0],backgroundColor:(i.vars||i).palette.action.disabledBackground})),t),"text"===o.variant&&{padding:"6px 8px"},"text"===o.variant&&"inherit"!==o.color&&{color:(i.vars||i).palette[o.color].main},"outlined"===o.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===o.variant&&"inherit"!==o.color&&{color:(i.vars||i).palette[o.color].main,border:i.vars?"1px solid rgba(".concat(i.vars.palette[o.color].mainChannel," / 0.5)"):"1px solid ".concat((0,De.Fq)(i.palette[o.color].main,.5))},"contained"===o.variant&&{color:i.vars?i.vars.palette.text.primary:null==(n=(r=i.palette).getContrastText)?void 0:n.call(r,i.palette.grey[300]),backgroundColor:(i.vars||i).palette.grey[300],boxShadow:(i.vars||i).shadows[2]},"contained"===o.variant&&"inherit"!==o.color&&{color:(i.vars||i).palette[o.color].contrastText,backgroundColor:(i.vars||i).palette[o.color].main},"inherit"===o.color&&{color:"inherit",borderColor:"currentColor"},"small"===o.size&&"text"===o.variant&&{padding:"4px 5px",fontSize:i.typography.pxToRem(13)},"large"===o.size&&"text"===o.variant&&{padding:"8px 11px",fontSize:i.typography.pxToRem(15)},"small"===o.size&&"outlined"===o.variant&&{padding:"3px 9px",fontSize:i.typography.pxToRem(13)},"large"===o.size&&"outlined"===o.variant&&{padding:"7px 21px",fontSize:i.typography.pxToRem(15)},"small"===o.size&&"contained"===o.variant&&{padding:"4px 10px",fontSize:i.typography.pxToRem(13)},"large"===o.size&&"contained"===o.variant&&{padding:"8px 22px",fontSize:i.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})}),(function(e){var t;return e.ownerState.disableElevation&&(t={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,X.Z)(t,"&.".concat(As.focusVisible),{boxShadow:"none"}),(0,X.Z)(t,"&:active",{boxShadow:"none"}),(0,X.Z)(t,"&.".concat(As.disabled),{boxShadow:"none"}),t)})),zs=(0,xn.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.startIcon,t["iconSize".concat((0,En.Z)(n.size))]]}})((function(e){var t=e.ownerState;return(0,xe.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},Ls(t))})),Bs=(0,xn.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.endIcon,t["iconSize".concat((0,En.Z)(n.size))]]}})((function(e){var t=e.ownerState;return(0,xe.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},Ls(t))})),Vs=t.forwardRef((function(e,n){var r=t.useContext(Zs),i=(0,Ps.Z)(r,e),o=(0,wn.Z)({props:i,name:"MuiButton"}),a=o.children,l=o.color,s=void 0===l?"primary":l,u=o.component,c=void 0===u?"button":u,d=o.className,f=o.disabled,p=void 0!==f&&f,h=o.disableElevation,v=void 0!==h&&h,m=o.disableFocusRipple,g=void 0!==m&&m,b=o.endIcon,y=o.focusVisibleClassName,x=o.fullWidth,w=void 0!==x&&x,C=o.size,k=void 0===C?"medium":C,S=o.startIcon,E=o.type,T=o.variant,_=void 0===T?"text":T,I=(0,ye.Z)(o,js),R=(0,xe.Z)({},o,{color:s,component:c,disabled:p,disableElevation:v,disableFocusRipple:g,fullWidth:w,size:k,type:E,variant:_}),N=function(e){var t=e.color,n=e.disableElevation,r=e.fullWidth,i=e.size,o=e.variant,a=e.classes,l={root:["root",o,"".concat(o).concat((0,En.Z)(t)),"size".concat((0,En.Z)(i)),"".concat(o,"Size").concat((0,En.Z)(i)),"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,En.Z)(i))],endIcon:["endIcon","iconSize".concat((0,En.Z)(i))]},s=(0,Ce.Z)(l,Ds,a);return(0,xe.Z)({},a,s)}(R),O=S&&(0,ue.jsx)(zs,{className:N.startIcon,ownerState:R,children:S}),M=b&&(0,ue.jsx)(Bs,{className:N.endIcon,ownerState:R,children:b});return(0,ue.jsxs)(Fs,(0,xe.Z)({ownerState:R,className:(0,we.Z)(r.className,N.root,d),component:c,disabled:p,focusRipple:!g,focusVisibleClassName:(0,we.Z)(N.focusVisible,y),ref:n,type:E},I,{classes:N,children:[O,a,M]}))})),Hs=n(6595);function Us(e){return(0,en.Z)("MuiTooltip",e)}var qs=(0,tn.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ws=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];var Gs=(0,xn.ZP)(Sn,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((function(e){var t,n=e.theme,r=e.ownerState,i=e.open;return(0,xe.Z)({zIndex:(n.vars||n).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},r.arrow&&(t={},(0,X.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(qs.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,X.Z)(t,'&[data-popper-placement*="top"] .'.concat(qs.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,X.Z)(t,'&[data-popper-placement*="right"] .'.concat(qs.arrow),(0,xe.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,X.Z)(t,'&[data-popper-placement*="left"] .'.concat(qs.arrow),(0,xe.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),Ks=(0,xn.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var n=e.ownerState;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,En.Z)(n.placement.split("-")[0]))]]}})((function(e){var t,n,r=e.theme,i=e.ownerState;return(0,xe.Z)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:(0,De.Fq)(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},i.arrow&&{position:"relative",margin:0},i.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat((n=16/14,Math.round(1e5*n)/1e5),"em"),fontWeight:r.typography.fontWeightRegular},(t={},(0,X.Z)(t,".".concat(qs.popper,'[data-popper-placement*="left"] &'),(0,xe.Z)({transformOrigin:"right center"},i.isRtl?(0,xe.Z)({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}):(0,xe.Z)({marginRight:"14px"},i.touch&&{marginRight:"24px"}))),(0,X.Z)(t,".".concat(qs.popper,'[data-popper-placement*="right"] &'),(0,xe.Z)({transformOrigin:"left center"},i.isRtl?(0,xe.Z)({marginRight:"14px"},i.touch&&{marginRight:"24px"}):(0,xe.Z)({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}))),(0,X.Z)(t,".".concat(qs.popper,'[data-popper-placement*="top"] &'),(0,xe.Z)({transformOrigin:"center bottom",marginBottom:"14px"},i.touch&&{marginBottom:"24px"})),(0,X.Z)(t,".".concat(qs.popper,'[data-popper-placement*="bottom"] &'),(0,xe.Z)({transformOrigin:"center top",marginTop:"14px"},i.touch&&{marginTop:"24px"})),t))})),$s=(0,xn.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,t){return t.arrow}})((function(e){var t=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,De.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),Qs=!1,Ys=null;function Js(e,t){return function(n){t&&t(n),e(n)}}var Xs=t.forwardRef((function(e,n){var r,i,o,a,s,u,c,d,f,p,h,v,m,g,b,y,x,w,C,k=(0,wn.Z)({props:e,name:"MuiTooltip"}),S=k.arrow,E=void 0!==S&&S,T=k.children,_=k.components,I=void 0===_?{}:_,R=k.componentsProps,N=void 0===R?{}:R,O=k.describeChild,M=void 0!==O&&O,P=k.disableFocusListener,D=void 0!==P&&P,A=k.disableHoverListener,Z=void 0!==A&&A,j=k.disableInteractive,L=void 0!==j&&j,F=k.disableTouchListener,z=void 0!==F&&F,B=k.enterDelay,V=void 0===B?100:B,H=k.enterNextDelay,U=void 0===H?0:H,q=k.enterTouchDelay,W=void 0===q?700:q,G=k.followCursor,K=void 0!==G&&G,$=k.id,Q=k.leaveDelay,Y=void 0===Q?0:Q,J=k.leaveTouchDelay,X=void 0===J?1500:J,ee=k.onClose,te=k.onOpen,ne=k.open,re=k.placement,ie=void 0===re?"bottom":re,oe=k.PopperComponent,ae=k.PopperProps,le=void 0===ae?{}:ae,se=k.slotProps,ce=void 0===se?{}:se,de=k.slots,fe=void 0===de?{}:de,pe=k.title,he=k.TransitionComponent,ve=void 0===he?Ao:he,me=k.TransitionProps,ge=(0,ye.Z)(k,Ws),be=_o(),ke="rtl"===be.direction,Se=t.useState(),Ee=(0,l.Z)(Se,2),Te=Ee[0],_e=Ee[1],Ie=t.useState(null),Re=(0,l.Z)(Ie,2),Ne=Re[0],Oe=Re[1],Me=t.useRef(!1),Pe=L||K,De=t.useRef(),Ae=t.useRef(),Ze=t.useRef(),je=t.useRef(),Le=(0,Va.Z)({controlled:ne,default:!1,name:"Tooltip",state:"open"}),Fe=(0,l.Z)(Le,2),ze=Fe[0],Be=Fe[1],Ve=ze,He=(0,Hs.Z)($),Ue=t.useRef(),qe=t.useCallback((function(){void 0!==Ue.current&&(document.body.style.WebkitUserSelect=Ue.current,Ue.current=void 0),clearTimeout(je.current)}),[]);t.useEffect((function(){return function(){clearTimeout(De.current),clearTimeout(Ae.current),clearTimeout(Ze.current),qe()}}),[qe]);var We=function(e){clearTimeout(Ys),Qs=!0,Be(!0),te&&!Ve&&te(e)},Ge=(0,Zn.Z)((function(e){clearTimeout(Ys),Ys=setTimeout((function(){Qs=!1}),800+Y),Be(!1),ee&&Ve&&ee(e),clearTimeout(De.current),De.current=setTimeout((function(){Me.current=!1}),be.transitions.duration.shortest)})),Ke=function(e){Me.current&&"touchstart"!==e.type||(Te&&Te.removeAttribute("title"),clearTimeout(Ae.current),clearTimeout(Ze.current),V||Qs&&U?Ae.current=setTimeout((function(){We(e)}),Qs?U:V):We(e))},$e=function(e){clearTimeout(Ae.current),clearTimeout(Ze.current),Ze.current=setTimeout((function(){Ge(e)}),Y)},Qe=(0,jn.Z)(),Ye=Qe.isFocusVisibleRef,Je=Qe.onBlur,Xe=Qe.onFocus,et=Qe.ref,tt=t.useState(!1),nt=(0,l.Z)(tt,2)[1],rt=function(e){Je(e),!1===Ye.current&&(nt(!1),$e(e))},it=function(e){Te||_e(e.currentTarget),Xe(e),!0===Ye.current&&(nt(!0),Ke(e))},ot=function(e){Me.current=!0;var t=T.props;t.onTouchStart&&t.onTouchStart(e)},at=Ke,lt=$e;t.useEffect((function(){if(Ve)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Ge(e)}}),[Ge,Ve]);var st=(0,An.Z)(T.ref,et,_e,n);pe||0===pe||(Ve=!1);var ut=t.useRef({x:0,y:0}),ct=t.useRef(),dt={},ft="string"===typeof pe;M?(dt.title=Ve||!ft||Z?null:pe,dt["aria-describedby"]=Ve?He:null):(dt["aria-label"]=ft?pe:null,dt["aria-labelledby"]=Ve&&!ft?He:null);var pt=(0,xe.Z)({},dt,ge,T.props,{className:(0,we.Z)(ge.className,T.props.className),onTouchStart:ot,ref:st},K?{onMouseMove:function(e){var t=T.props;t.onMouseMove&&t.onMouseMove(e),ut.current={x:e.clientX,y:e.clientY},ct.current&&ct.current.update()}}:{});var ht={};z||(pt.onTouchStart=function(e){ot(e),clearTimeout(Ze.current),clearTimeout(De.current),qe(),Ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",je.current=setTimeout((function(){document.body.style.WebkitUserSelect=Ue.current,Ke(e)}),W)},pt.onTouchEnd=function(e){T.props.onTouchEnd&&T.props.onTouchEnd(e),qe(),clearTimeout(Ze.current),Ze.current=setTimeout((function(){Ge(e)}),X)}),Z||(pt.onMouseOver=Js(at,pt.onMouseOver),pt.onMouseLeave=Js(lt,pt.onMouseLeave),Pe||(ht.onMouseOver=at,ht.onMouseLeave=lt)),D||(pt.onFocus=Js(it,pt.onFocus),pt.onBlur=Js(rt,pt.onBlur),Pe||(ht.onFocus=it,ht.onBlur=rt));var vt=t.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(Ne),options:{element:Ne,padding:4}}];return null!=(e=le.popperOptions)&&e.modifiers&&(t=t.concat(le.popperOptions.modifiers)),(0,xe.Z)({},le.popperOptions,{modifiers:t})}),[Ne,le]),mt=(0,xe.Z)({},k,{isRtl:ke,arrow:E,disableInteractive:Pe,placement:ie,PopperComponentProp:oe,touch:Me.current}),gt=function(e){var t=e.classes,n=e.disableInteractive,r=e.arrow,i=e.touch,o=e.placement,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch","tooltipPlacement".concat((0,En.Z)(o.split("-")[0]))],arrow:["arrow"]};return(0,Ce.Z)(a,Us,t)}(mt),bt=null!=(r=null!=(i=fe.popper)?i:I.Popper)?r:Gs,yt=null!=(o=null!=(a=null!=(s=fe.transition)?s:I.Transition)?a:ve)?o:Ao,xt=null!=(u=null!=(c=fe.tooltip)?c:I.Tooltip)?u:Ks,wt=null!=(d=null!=(f=fe.arrow)?f:I.Arrow)?d:$s,Ct=on(bt,(0,xe.Z)({},le,null!=(p=ce.popper)?p:N.popper,{className:(0,we.Z)(gt.popper,null==le?void 0:le.className,null==(h=null!=(v=ce.popper)?v:N.popper)?void 0:h.className)}),mt),kt=on(yt,(0,xe.Z)({},me,null!=(m=ce.transition)?m:N.transition),mt),St=on(xt,(0,xe.Z)({},null!=(g=ce.tooltip)?g:N.tooltip,{className:(0,we.Z)(gt.tooltip,null==(b=null!=(y=ce.tooltip)?y:N.tooltip)?void 0:b.className)}),mt),Et=on(wt,(0,xe.Z)({},null!=(x=ce.arrow)?x:N.arrow,{className:(0,we.Z)(gt.arrow,null==(w=null!=(C=ce.arrow)?C:N.arrow)?void 0:w.className)}),mt);return(0,ue.jsxs)(t.Fragment,{children:[t.cloneElement(T,pt),(0,ue.jsx)(bt,(0,xe.Z)({as:null!=oe?oe:Sn,placement:ie,anchorEl:K?{getBoundingClientRect:function(){return{top:ut.current.y,left:ut.current.x,right:ut.current.x,bottom:ut.current.y,width:0,height:0}}}:Te,popperRef:ct,open:!!Te&&Ve,id:He,transition:!0},ht,Ct,{popperOptions:vt,children:function(e){var t=e.TransitionProps;return(0,ue.jsx)(yt,(0,xe.Z)({timeout:be.transitions.duration.shorter},t,kt,{"data-foo":"bar",children:(0,ue.jsxs)(xt,(0,xe.Z)({},St,{children:[pe,E?(0,ue.jsx)(wt,(0,xe.Z)({},Et,{ref:Oe})):null]}))}))}}))]})})),eu=Xs;function tu(e){return(0,en.Z)("MuiFormControlLabel",e)}var nu=(0,tn.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),ru=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],iu=(0,xn.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,X.Z)({},"& .".concat(nu.label),t.label),t.root,t["labelPlacement".concat((0,En.Z)(n.labelPlacement))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,xe.Z)((0,X.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(nu.disabled),{cursor:"default"}),"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},(0,X.Z)({},"& .".concat(nu.label),(0,X.Z)({},"&.".concat(nu.disabled),{color:(t.vars||t).palette.text.disabled})))})),ou=t.forwardRef((function(e,n){var r,i=(0,wn.Z)({props:e,name:"MuiFormControlLabel"}),o=i.className,a=i.componentsProps,l=void 0===a?{}:a,s=i.control,u=i.disabled,c=i.disableTypography,d=i.label,f=i.labelPlacement,p=void 0===f?"end":f,h=i.slotProps,v=void 0===h?{}:h,m=(0,ye.Z)(i,ru),g=nl(),b=u;"undefined"===typeof b&&"undefined"!==typeof s.props.disabled&&(b=s.props.disabled),"undefined"===typeof b&&g&&(b=g.disabled);var y={disabled:b};["checked","name","onChange","value","inputRef"].forEach((function(e){"undefined"===typeof s.props[e]&&"undefined"!==typeof i[e]&&(y[e]=i[e])}));var x=el({props:i,muiFormControl:g,states:["error"]}),w=(0,xe.Z)({},i,{disabled:b,labelPlacement:p,error:x.error}),C=function(e){var t=e.classes,n=e.disabled,r=e.labelPlacement,i=e.error,o={root:["root",n&&"disabled","labelPlacement".concat((0,En.Z)(r)),i&&"error"],label:["label",n&&"disabled"]};return(0,Ce.Z)(o,tu,t)}(w),k=null!=(r=v.typography)?r:l.typography,S=d;return null==S||S.type===Gi||c||(S=(0,ue.jsx)(Gi,(0,xe.Z)({component:"span"},k,{className:(0,we.Z)(C.label,null==k?void 0:k.className),children:S}))),(0,ue.jsxs)(iu,(0,xe.Z)({className:(0,we.Z)(C.root,o),ownerState:w,ref:n},m,{children:[t.cloneElement(s,y),S]}))}));function au(e){return(0,en.Z)("PrivateSwitchBase",e)}(0,tn.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var lu=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],su=(0,xn.ZP)(_r)((function(e){var t=e.ownerState;return(0,xe.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),uu=(0,xn.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),cu=t.forwardRef((function(e,t){var n=e.autoFocus,r=e.checked,i=e.checkedIcon,o=e.className,a=e.defaultChecked,s=e.disabled,u=e.disableFocusRipple,c=void 0!==u&&u,d=e.edge,f=void 0!==d&&d,p=e.icon,h=e.id,v=e.inputProps,m=e.inputRef,g=e.name,b=e.onBlur,y=e.onChange,x=e.onFocus,w=e.readOnly,C=e.required,k=e.tabIndex,S=e.type,E=e.value,T=(0,ye.Z)(e,lu),_=(0,Va.Z)({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),I=(0,l.Z)(_,2),R=I[0],N=I[1],O=nl(),M=s;O&&"undefined"===typeof M&&(M=O.disabled);var P="checkbox"===S||"radio"===S,D=(0,xe.Z)({},e,{checked:R,disabled:M,disableFocusRipple:c,edge:f}),A=function(e){var t=e.classes,n=e.checked,r=e.disabled,i=e.edge,o={root:["root",n&&"checked",r&&"disabled",i&&"edge".concat((0,En.Z)(i))],input:["input"]};return(0,Ce.Z)(o,au,t)}(D);return(0,ue.jsxs)(su,(0,xe.Z)({component:"span",className:(0,we.Z)(A.root,o),centerRipple:!0,focusRipple:!c,disabled:M,tabIndex:null,role:void 0,onFocus:function(e){x&&x(e),O&&O.onFocus&&O.onFocus(e)},onBlur:function(e){b&&b(e),O&&O.onBlur&&O.onBlur(e)},ownerState:D,ref:t},T,{children:[(0,ue.jsx)(uu,(0,xe.Z)({autoFocus:n,checked:r,defaultChecked:a,className:A.input,disabled:M,id:P&&h,name:g,onChange:function(e){if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;N(t),y&&y(e,t)}},readOnly:w,ref:m,required:C,ownerState:D,tabIndex:k,type:S},"checkbox"===S&&void 0===E?{}:{value:E},v)),R?i:p]}))})),du=cu,fu=(0,Pr.Z)((0,ue.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),pu=(0,Pr.Z)((0,ue.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),hu=(0,Pr.Z)((0,ue.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function vu(e){return(0,en.Z)("MuiCheckbox",e)}var mu,gu,bu=(0,tn.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),yu=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],xu=(0,xn.ZP)(du,{shouldForwardProp:function(e){return(0,xn.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t["color".concat((0,En.Z)(n.color))]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,xe.Z)({color:(n.vars||n).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:n.vars?"rgba(".concat("default"===r.color?n.vars.palette.action.activeChannel:n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,De.Fq)("default"===r.color?n.palette.action.active:n.palette[r.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&(t={},(0,X.Z)(t,"&.".concat(bu.checked,", &.").concat(bu.indeterminate),{color:(n.vars||n).palette[r.color].main}),(0,X.Z)(t,"&.".concat(bu.disabled),{color:(n.vars||n).palette.action.disabled}),t))})),wu=(0,ue.jsx)(pu,{}),Cu=(0,ue.jsx)(fu,{}),ku=(0,ue.jsx)(hu,{}),Su=t.forwardRef((function(e,n){var r,i,o=(0,wn.Z)({props:e,name:"MuiCheckbox"}),a=o.checkedIcon,l=void 0===a?wu:a,s=o.color,u=void 0===s?"primary":s,c=o.icon,d=void 0===c?Cu:c,f=o.indeterminate,p=void 0!==f&&f,h=o.indeterminateIcon,v=void 0===h?ku:h,m=o.inputProps,g=o.size,b=void 0===g?"medium":g,y=o.className,x=(0,ye.Z)(o,yu),w=p?v:d,C=p?v:l,k=(0,xe.Z)({},o,{color:u,indeterminate:p,size:b}),S=function(e){var t=e.classes,n=e.indeterminate,r=e.color,i={root:["root",n&&"indeterminate","color".concat((0,En.Z)(r))]},o=(0,Ce.Z)(i,vu,t);return(0,xe.Z)({},t,o)}(k);return(0,ue.jsx)(xu,(0,xe.Z)({type:"checkbox",inputProps:(0,xe.Z)({"data-indeterminate":p},m),icon:t.cloneElement(w,{fontSize:null!=(r=w.props.fontSize)?r:b}),checkedIcon:t.cloneElement(C,{fontSize:null!=(i=C.props.fontSize)?i:b}),ownerState:k,ref:n,className:(0,we.Z)(S.root,y)},x,{classes:S}))})),Eu=n(3821),Tu="https://staging.dgidb.org/api/graphql",_u=new Eu.GraphQLClient(Tu),Iu=(0,Eu.gql)(mu||(mu=Ln(["\n query geneNameSuggestions($term: String!) {\n geneSuggestions(term: $term, n: 10) {\n suggestion\n }\n }\n"]))),Ru=(0,Eu.gql)(gu||(gu=Ln(["\n query drugNameSuggestions($term: String!) {\n drugSuggestions(term: $term, n: 10) {\n suggestion\n }\n }\n"])));var Nu=n(7678);function Ou(e,n,r,i,o){var a="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,s=t.useState((function(){return o&&a?r(e).matches:i?i(e).matches:n})),u=(0,l.Z)(s,2),c=u[0],d=u[1];return(0,lo.Z)((function(){var t=!0;if(a){var n=r(e),i=function(){t&&d(n.matches)};return i(),n.addListener(i),function(){t=!1,n.removeListener(i)}}}),[e,r,a]),c}var Mu,Pu=r.useSyncExternalStore;function Du(e,n,r,i){var o=t.useCallback((function(){return n}),[n]),a=t.useMemo((function(){if(null!==i){var t=i(e).matches;return function(){return t}}return o}),[o,e,i]),s=t.useMemo((function(){if(null===r)return[o,function(){return function(){}}];var t=r(e);return[function(){return t.matches},function(e){return t.addListener(e),function(){t.removeListener(e)}}]}),[o,r,e]),u=(0,l.Z)(s,2),c=u[0],d=u[1];return Pu(d,c,a)}function Au(){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,yn.Z)(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,i=(0,Nu.Z)({name:"MuiUseMediaQuery",props:t,theme:n}),o=i.defaultMatches,a=void 0!==o&&o,l=i.matchMedia,s=void 0===l?r?window.matchMedia:null:l,u=i.ssrMatchMedia,c=void 0===u?null:u,d=i.noSsr,f="function"===typeof e?e(n):e;return f=f.replace(/^@media( ?)/m,""),(void 0!==Pu?Du:Ou)(f,a,s,c,d)}("(max-width: 768px)");return e}!function(e){e.Comma="Comma",e.CommaSpace="Comma With Space",e.TabNewline="Tab or Newline"}(Mu||(Mu={}));var Zu=function(e){var n,r,i=e.handleSubmit,a=(0,t.useContext)(de),s=a.state,u=a.dispatch,c=Au(),d=t.useState(s.interactionMode),f=(0,l.Z)(d,2),p=f[0],h=f[1],v=t.useState(""),m=(0,l.Z)(v,2),g=m[0],b=m[1],y=t.useState(!1),x=(0,l.Z)(y,2),w=x[0],C=x[1],k=t.useState(""),S=(0,l.Z)(k,2),E=S[0],T=S[1],_=t.useState(!1),I=(0,l.Z)(_,2),R=I[0],N=I[1],O=function(e,t){var n="gene-name-suggestion",r=Iu;return t===ne.Drug&&(n="drug-name-suggestion",r=Ru),(0,o.useQuery)(n+e,(0,me.Z)(be().mark((function t(){var n;return be().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_u.request(r,{term:e});case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)}))),{enabled:""!==e})}(g,p),M=(null===O||void 0===O||null===(n=O.data)||void 0===n?void 0:n.geneSuggestions)||[],P=(null===O||void 0===O||null===(r=O.data)||void 0===r?void 0:r.drugSuggestions)||[];p===ne.Drug&&(M=P),g&&0===M.filter((function(e){return e.suggestion===g})).length&&""!==g.trim()&&(M=[{suggestion:g}].concat((0,oe.Z)(M)));var D=t.useState([]),A=(0,l.Z)(D,2),Z=A[0],j=A[1];(0,t.useEffect)((function(){var e;(null===(e=s.searchTerms)||void 0===e?void 0:e.length)>0&&0===(null===Z||void 0===Z?void 0:Z.length)&&j((0,oe.Z)(new Set(s.searchTerms)).map((function(e){return{suggestion:e}})))}),[Z]);var L=function(e){return e.map((function(e){return{suggestion:e.trim()}}))},F=function(e){var t=e.clipboardData.getData("text"),n=L([t]),r=t.split(",");if(E===Mu.Comma)n=L(r);else if(E===Mu.CommaSpace){var i=t.split(", ");n=L(i)}else if(E===Mu.TabNewline){var o=t.split(/[\t\n\r\f\v]/);n=L(o)}else n=L(r);N(!0);var a=Z.concat(n),l=(0,oe.Z)(new Set(a.map((function(e){return e.suggestion}))));j(L(l)),e.preventDefault()},z=R&&""===E?(0,ue.jsx)(Ii,{width:"100%",pb:2,children:(0,ue.jsxs)(Bi,{severity:"info",children:[(0,ue.jsx)(Yi,{children:"Verify your search terms"}),(0,ue.jsx)("p",{children:"It looks like you pasted search terms. We have defaulted the delimiter to comma-separated terms."}),(0,ue.jsx)("p",{style:{marginTop:"10px"},children:"If this is incorrect or you would like to use a different delimiter, make sure to check the \u201cBulk search\u201d option below and select a delimiter from the drop down."})]})}):(0,ue.jsx)(ue.Fragment,{});return(0,ue.jsx)(ue.Fragment,{children:(0,ue.jsxs)(Ii,{id:"search-bar-container",width:c?"95%":"75%",children:[z,(0,ue.jsxs)(Ii,{display:"flex",flexWrap:c?"wrap":"nowrap",children:[(0,ue.jsx)(Ii,{width:c?"100%":"fit-content",children:(0,ue.jsxs)(Kl,{value:s.interactionMode||p,defaultValue:s.interactionMode||ne.Gene,onChange:function(e){var t=e.target.value;h(t),t===ne.Gene?u({type:ie.SetByGene}):t===ne.Drug?u({type:ie.SetByDrug}):t===ne.Categories&&u({type:ie.SetGeneCategories})},classes:{select:"search-type-select"},fullWidth:c,children:[(0,ue.jsx)(os,{value:ne.Gene,children:"Interactions by Gene"}),(0,ue.jsx)(os,{value:ne.Drug,children:"Interactions by Drug"}),(0,ue.jsx)(os,{value:ne.Categories,children:"Gene Categories"})]})}),(0,ue.jsx)(Ii,{display:"block",ml:1,width:"100%",mt:c?2:0,children:(0,ue.jsx)(vi,{multiple:!0,filterSelectedOptions:!0,id:"tags-standard",options:M,getOptionLabel:function(e){return e.suggestion},renderInput:function(e){return(0,ue.jsx)(Ii,{children:(0,ue.jsx)(Ms,te(te({},e),{},{onPaste:F,variant:"standard",label:"Search Terms"}))})},value:Z,onInputChange:function(e){b(e.target.value)},onChange:function(e,t){0===t.length?(j([]),N(!1),u({type:ie.DeleteAllTerms})):j(t)},isOptionEqualToValue:function(e,t){return e.suggestion===t.suggestion}})})]}),(0,ue.jsx)(Ii,{display:"flex",justifyContent:"end",children:(0,ue.jsxs)(Ii,{mt:1,children:[(0,ue.jsx)(Vs,{className:"search-buttons",variant:"contained",color:"primary",onClick:function(){if(p===ne.Gene){j(L(["FLT1","FLT2","FLT3","STK1","MM1","AQP1","LOC100508755","FAKE1"]))}else if(p===ne.Drug){j(L(["SUNITINIB","ZALCITABINE","TRASTUZUMAB","NOTREAL"]))}else if(p===ne.Categories){j(L(["HER2","ERBB2","PTGDR","EGFR","RECK","KCNMA1","MM1"]))}},style:{marginRight:"10px"},children:"Demo"}),(0,ue.jsx)(Vs,{className:"search-buttons",variant:"contained",color:"primary",onClick:function(){0!==(null===Z||void 0===Z?void 0:Z.length)&&(s.searchTerms=Z.map((function(e){return e.suggestion})),i())},children:"Search"})]})}),(0,ue.jsxs)(Ii,{display:"flex",pt:5,flexWrap:"wrap",height:"100px",alignContent:"center",justifyContent:"end",children:[(0,ue.jsx)(eu,{title:"Select this option if you are pasting terms from an external document",arrow:!0,children:(0,ue.jsx)(ou,{checked:w,onChange:function(e){C(e.target.checked),T(""),N(!1)},control:(0,ue.jsx)(Su,{}),label:"Bulk search"})}),(0,ue.jsx)(Ii,{width:c?"100%":"35%",display:w?"":"none",children:(0,ue.jsxs)(xs,{fullWidth:!0,children:[(0,ue.jsx)(vs,{id:"delimiter-select-label",children:"Select delimiter"}),(0,ue.jsxs)(Kl,{labelId:"delimiter-select-label",id:"delimiter-select",value:E,label:"Select delimiter",onChange:function(e){T(e.target.value)},children:[(0,ue.jsx)(os,{value:Mu.Comma,children:Mu.Comma}),(0,ue.jsx)(os,{value:Mu.CommaSpace,children:Mu.CommaSpace}),(0,ue.jsx)(os,{value:Mu.TabNewline,children:Mu.TabNewline})]})]})})]})]})})},ju=n(9912);var Lu=t.createContext();function Fu(e){return(0,en.Z)("MuiGrid",e)}var zu=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Bu=(0,tn.Z)("MuiGrid",["root","container","item","zeroMinWidth"].concat((0,oe.Z)([0,1,2,3,4,5,6,7,8,9,10].map((function(e){return"spacing-xs-".concat(e)}))),(0,oe.Z)(["column-reverse","column","row-reverse","row"].map((function(e){return"direction-xs-".concat(e)}))),(0,oe.Z)(["nowrap","wrap-reverse","wrap"].map((function(e){return"wrap-xs-".concat(e)}))),(0,oe.Z)(zu.map((function(e){return"grid-xs-".concat(e)}))),(0,oe.Z)(zu.map((function(e){return"grid-sm-".concat(e)}))),(0,oe.Z)(zu.map((function(e){return"grid-md-".concat(e)}))),(0,oe.Z)(zu.map((function(e){return"grid-lg-".concat(e)}))),(0,oe.Z)(zu.map((function(e){return"grid-xl-".concat(e)}))))),Vu=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Hu(e){var t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function Uu(e){var t=e.breakpoints,n=e.values,r="";Object.keys(n).forEach((function(e){""===r&&0!==n[e]&&(r=e)}));var i=Object.keys(t).sort((function(e,n){return t[e]-t[n]}));return i.slice(0,i.indexOf(r))}var qu=(0,xn.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.container,i=n.direction,o=n.item,a=n.spacing,l=n.wrap,s=n.zeroMinWidth,u=n.breakpoints,c=[];r&&(c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n["spacing-xs-".concat(String(e))]];var r=[];return t.forEach((function(t){var i=e[t];Number(i)>0&&r.push(n["spacing-".concat(t,"-").concat(String(i))])})),r}(a,u,t));var d=[];return u.forEach((function(e){var r=n[e];r&&d.push(t["grid-".concat(e,"-").concat(String(r))])})),[t.root,r&&t.container,o&&t.item,s&&t.zeroMinWidth].concat((0,oe.Z)(c),["row"!==i&&t["direction-xs-".concat(String(i))],"wrap"!==l&&t["wrap-xs-".concat(String(l))]],d)}})((function(e){var t=e.ownerState;return(0,xe.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){var t=e.theme,n=e.ownerState,r=(0,ju.P$)({values:n.direction,breakpoints:t.breakpoints.values});return(0,ju.k9)({theme:t},r,(function(e){var t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(Bu.item)]={maxWidth:"none"}),t}))}),(function(e){var t=e.theme,n=e.ownerState,r=n.container,i=n.rowSpacing,o={};if(r&&0!==i){var a,l=(0,ju.P$)({values:i,breakpoints:t.breakpoints.values});"object"===typeof l&&(a=Uu({breakpoints:t.breakpoints.values,values:l})),o=(0,ju.k9)({theme:t},l,(function(e,n){var r,i=t.spacing(e);return"0px"!==i?(0,X.Z)({marginTop:"-".concat(Hu(i))},"& > .".concat(Bu.item),{paddingTop:Hu(i)}):null!=(r=a)&&r.includes(n)?{}:(0,X.Z)({marginTop:0},"& > .".concat(Bu.item),{paddingTop:0})}))}return o}),(function(e){var t=e.theme,n=e.ownerState,r=n.container,i=n.columnSpacing,o={};if(r&&0!==i){var a,l=(0,ju.P$)({values:i,breakpoints:t.breakpoints.values});"object"===typeof l&&(a=Uu({breakpoints:t.breakpoints.values,values:l})),o=(0,ju.k9)({theme:t},l,(function(e,n){var r,i=t.spacing(e);return"0px"!==i?(0,X.Z)({width:"calc(100% + ".concat(Hu(i),")"),marginLeft:"-".concat(Hu(i))},"& > .".concat(Bu.item),{paddingLeft:Hu(i)}):null!=(r=a)&&r.includes(n)?{}:(0,X.Z)({width:"100%",marginLeft:0},"& > .".concat(Bu.item),{paddingLeft:0})}))}return o}),(function(e){var t,n=e.theme,r=e.ownerState;return n.breakpoints.keys.reduce((function(e,i){var o={};if(r[i]&&(t=r[i]),!t)return e;if(!0===t)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{var a=(0,ju.P$)({values:r.columns,breakpoints:n.breakpoints.values}),l="object"===typeof a?a[i]:a;if(void 0===l||null===l)return e;var s="".concat(Math.round(t/l*1e8)/1e6,"%"),u={};if(r.container&&r.item&&0!==r.columnSpacing){var c=n.spacing(r.columnSpacing);if("0px"!==c){var d="calc(".concat(s," + ").concat(Hu(c),")");u={flexBasis:d,maxWidth:d}}}o=(0,xe.Z)({flexBasis:s,flexGrow:0,maxWidth:s},u)}return 0===n.breakpoints.values[i]?Object.assign(e,o):e[n.breakpoints.up(i)]=o,e}),{})}));var Wu=function(e){var t=e.classes,n=e.container,r=e.direction,i=e.item,o=e.spacing,a=e.wrap,l=e.zeroMinWidth,s=e.breakpoints,u=[];n&&(u=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];var n=[];return t.forEach((function(t){var r=e[t];if(Number(r)>0){var i="spacing-".concat(t,"-").concat(String(r));n.push(i)}})),n}(o,s));var c=[];s.forEach((function(t){var n=e[t];n&&c.push("grid-".concat(t,"-").concat(String(n)))}));var d={root:["root",n&&"container",i&&"item",l&&"zeroMinWidth"].concat((0,oe.Z)(u),["row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==a&&"wrap-xs-".concat(String(a))],c)};return(0,Ce.Z)(d,Fu,t)},Gu=t.forwardRef((function(e,n){var r=(0,wn.Z)({props:e,name:"MuiGrid"}),i=_o().breakpoints,o=ki(r),a=o.className,l=o.columns,s=o.columnSpacing,u=o.component,c=void 0===u?"div":u,d=o.container,f=void 0!==d&&d,p=o.direction,h=void 0===p?"row":p,v=o.item,m=void 0!==v&&v,g=o.rowSpacing,b=o.spacing,y=void 0===b?0:b,x=o.wrap,w=void 0===x?"wrap":x,C=o.zeroMinWidth,k=void 0!==C&&C,S=(0,ye.Z)(o,Vu),E=g||y,T=s||y,_=t.useContext(Lu),I=f?l||12:_,R={},N=(0,xe.Z)({},S);i.keys.forEach((function(e){null!=S[e]&&(R[e]=S[e],delete N[e])}));var O=(0,xe.Z)({},o,{columns:I,container:f,direction:h,item:m,rowSpacing:E,columnSpacing:T,wrap:w,zeroMinWidth:k,spacing:y},R,{breakpoints:i.keys}),M=Wu(O);return(0,ue.jsx)(Lu.Provider,{value:I,children:(0,ue.jsx)(qu,(0,xe.Z)({ownerState:O,className:(0,we.Z)(M.root,a),as:c,ref:n},N))})})),Ku=Gu,$u=function(){var e=(0,t.useContext)(de),n=e.state,r=e.dispatch,i=j(),o=function(){var e=(0,me.Z)(be().mark((function e(){return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r({type:ie.ContentPage}),i({pathname:"/results",search:"".concat(J({searchType:n.interactionMode,searchTerms:n.searchTerms.join(",")}))});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=(0,t.useState)(!1),s=(0,l.Z)(a,2),u=s[0],c=s[1];return(0,t.useEffect)((function(){u&&(n.themeSettings.darkModeEnabled?r({type:ie.DisableDarkMode}):r({type:ie.EnableDarkMode}))}),[u]),(0,t.useEffect)((function(){c(!1)}),[n.themeSettings.darkModeEnabled]),(0,t.useEffect)((function(){r({type:ie.BrandPage})}),[]),(0,ue.jsxs)("div",{className:"home-page-container",children:[(0,ue.jsx)(Zu,{handleSubmit:o}),(0,ue.jsx)("div",{className:"home-blurb",children:"An open-source search engine for drug-gene interactions and the druggable genome."}),(0,ue.jsx)(Ii,{className:"home-links",children:(0,ue.jsxs)(Ku,{container:!0,width:"300px",justifyContent:"space-between",children:[(0,ue.jsx)(Q,{className:"home-link",to:"/api",children:"API"}),(0,ue.jsx)(Q,{className:"home-link",to:"/downloads",children:"Downloads"}),(0,ue.jsx)("a",{className:"home-link",href:"https://github.com/dgidb/dgidb-v5",rel:"noreferrer",target:"_blank",children:"GitHub"})]})})]})};function Qu(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Yu=["children","value","index"];var Ju=function(e){var t=e.children,n=e.value,r=e.index,i=Qu(e,Yu);return(0,ue.jsx)("div",te(te({role:"tabpanel",hidden:n!==r,id:"vertical-tabpanel-".concat(r),"aria-labelledby":"vertical-tab-".concat(r)},i),{},{children:n===r&&(0,ue.jsx)(Ii,{sx:{p:3},children:(0,ue.jsx)(Ii,{children:t})})}))},Xu=n(6148),ec=n(3538);function tc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,ec.Z)(e)););return e}function nc(){return nc="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=tc(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},nc.apply(this,arguments)}var rc=n(1020),ic=n(804);var oc="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function ac(e,t,n){var r=n||function(e){return Array.prototype.slice.call(e)},i=!1,o=[];return function(){for(var n=arguments.length,a=new Array(n),l=0;l=0;i--)t.call(n,e[i],i);else for(i=0;in;)e=e[t.substr(n,r-n)],r=_c(t,n=r+1);return e}function Rc(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Nc=function(e){return"undefined"!==typeof e},Oc=function(e){return"function"===typeof e},Mc=function(e,t){if(e.size!==t.size)return!1;var n,r=(0,a.Z)(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!t.has(i))return!1}}catch(o){r.e(o)}finally{r.f()}return!0};var Pc=Math.PI,Dc=2*Pc,Ac=Dc+Pc,Zc=Number.POSITIVE_INFINITY,jc=Pc/180,Lc=Pc/2,Fc=Pc/4,zc=2*Pc/3,Bc=Math.log10,Vc=Math.sign;function Hc(e){var t=Math.round(e);e=qc(e,t,e/1e3)?t:e;var n=Math.pow(10,Math.floor(Bc(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Uc(e){return!isNaN(parseFloat(e))&&isFinite(e)}function qc(e,t,n){return Math.abs(e-t)s&&u3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}var rd=function(e){return 0===e||1===e},id=function(e,t,n){return-Math.pow(2,10*(e-=1))*Math.sin((e-t)*Dc/n)},od=function(e,t,n){return Math.pow(2,-10*e)*Math.sin((e-t)*Dc/n)+1},ad={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*Lc)},easeOutSine:function(e){return Math.sin(e*Lc)},easeInOutSine:function(e){return-.5*(Math.cos(Pc*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return rd(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1)))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){return rd(e)?e:id(e,.075,.3)},easeOutElastic:function(e){return rd(e)?e:od(e,.075,.3)},easeInOutElastic:function(e){var t=.1125;return rd(e)?e:e<.5?.5*id(2*e,t,.45):.5+.5*od(2*e-1,t,.45)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-ad.easeOutBounce(1-e)},easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*ad.easeInBounce(2*e):.5*ad.easeOutBounce(2*e-1)+.5}},ld={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},sd="0123456789ABCDEF",ud=function(e){return sd[15&e]},cd=function(e){return sd[(240&e)>>4]+sd[15&e]},dd=function(e){return(240&e)>>4===(15&e)};function fd(e){var t=function(e){return dd(e.r)&&dd(e.g)&&dd(e.b)&&dd(e.a)}(e)?ud:cd;return e?"#"+t(e.r)+t(e.g)+t(e.b)+(e.a<255?t(e.a):""):e}function pd(e){return e+.5|0}var hd=function(e,t,n){return Math.max(Math.min(e,n),t)};function vd(e){return hd(pd(2.55*e),0,255)}function md(e){return hd(pd(255*e),0,255)}function gd(e){return hd(pd(e/2.55)/100,0,1)}function bd(e){return hd(pd(100*e),0,100)}var yd=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var xd=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function wd(e,t,n){var r=t*Math.min(n,1-n),i=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function Cd(e,t,n){var r=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function kd(e,t,n){var r,i=wd(e,1,.5);for(t+n>1&&(t*=r=1/(t+n),n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function Sd(e){var t,n,r,i=e.r/255,o=e.g/255,a=e.b/255,l=Math.max(i,o,a),s=Math.min(i,o,a),u=(l+s)/2;return l!==s&&(r=l-s,n=u>.5?r/(2-l-s):r/(l+s),t=60*(t=l===i?(o-a)/r+(o>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);var t=Rd[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}function Pd(e,t,n){if(e){var r=Sd(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=Td(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Dd(e,t){return e?Object.assign(t||{},e):e}function Ad(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=md(e[3]))):(t=Dd(e,{r:0,g:0,b:0,a:1})).a=md(t.a),t}function Zd(e){return"r"===e.charAt(0)?function(e){var t,n,r,i=yd.exec(e),o=255;if(i){if(i[7]!==t){var a=+i[7];o=255&(i[8]?vd(a):255*a)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?vd(t):t),g:n=255&(i[4]?vd(n):n),b:r=255&(i[6]?vd(r):r),a:o}}}(e):Id(e)}var jd=function(){function e(t){if((0,jo.Z)(this,e),t instanceof e)return t;var n,r=typeof t;"object"===r?n=Ad(t):"string"===r&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*ld[e[1]],g:255&17*ld[e[2]],b:255&17*ld[e[3]],a:5===n?17*ld[e[4]]:255}:7!==n&&9!==n||(t={r:ld[e[1]]<<4|ld[e[2]],g:ld[e[3]]<<4|ld[e[4]],b:ld[e[5]]<<4|ld[e[6]],a:9===n?ld[e[7]]<<4|ld[e[8]]:255})),t}(t)||Md(t)||Zd(t)),this._rgb=n,this._valid=!!n}return(0,Lo.Z)(e,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var e=Dd(this._rgb);return e&&(e.a=gd(e.a)),e},set:function(e){this._rgb=Ad(e)}},{key:"rgbString",value:function(){return this._valid?(e=this._rgb)&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(gd(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")")):this._rgb;var e}},{key:"hexString",value:function(){return this._valid?fd(this._rgb):this._rgb}},{key:"hslString",value:function(){return this._valid?function(e){if(e){var t=Sd(e),n=t[0],r=bd(t[1]),i=bd(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(gd(e.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}}(this._rgb):this._rgb}},{key:"mix",value:function(e,t){var n=this;if(e){var r,i=n.rgb,o=e.rgb,a=t===r?.5:t,l=2*a-1,s=i.a-o.a,u=((l*s===-1?l:(l+s)/(1+l*s))+1)/2;r=1-u,i.r=255&u*i.r+r*o.r+.5,i.g=255&u*i.g+r*o.g+.5,i.b=255&u*i.b+r*o.b+.5,i.a=a*i.a+(1-a)*o.a,n.rgb=i}return n}},{key:"clone",value:function(){return new e(this.rgb)}},{key:"alpha",value:function(e){return this._rgb.a=md(e),this}},{key:"clearer",value:function(e){return this._rgb.a*=1-e,this}},{key:"greyscale",value:function(){var e=this._rgb,t=pd(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}},{key:"opaquer",value:function(e){return this._rgb.a*=1+e,this}},{key:"negate",value:function(){var e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}},{key:"lighten",value:function(e){return Pd(this._rgb,2,e),this}},{key:"darken",value:function(e){return Pd(this._rgb,2,-e),this}},{key:"saturate",value:function(e){return Pd(this._rgb,1,e),this}},{key:"desaturate",value:function(e){return Pd(this._rgb,1,-e),this}},{key:"rotate",value:function(e){return function(e,t){var n=Sd(e);n[0]=_d(n[0]+t),n=Td(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}]),e}();function Ld(e){return new jd(e)}var Fd=function(e){return e instanceof CanvasGradient||e instanceof CanvasPattern};function zd(e){return Fd(e)?e:Ld(e)}function Bd(e){return Fd(e)?e:Ld(e).saturate(.5).darken(.1).hexString()}var Vd=Object.create(null),Hd=Object.create(null);function Ud(e,t){if(!t)return e;for(var n=t.split("."),r=0,i=n.length;rr&&(r=o),r}function $d(e,t,n,r){var i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;var a,l,s,u,c,d=0,f=n.length;for(a=0;an.length){for(a=0;a0&&e.stroke()}}function Xd(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y5&&void 0!==arguments[5]?arguments[5]:{},s=fc(t)?t:[t],u=l.strokeWidth>0&&""!==l.strokeColor;for(e.save(),e.font=i.string,af(e,l),o=0;o1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}var xf=function(e,t,n){return yf(e,n,(function(r){return e[r][t]=n}))};var Cf=["push","pop","shift","splice","unshift"];function kf(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(Cf.forEach((function(t){delete e[t]})),delete e._chartjs)}}function Sf(e){var t,n,r=new Set;for(t=0,n=e.length;t1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return e[0]};Nc(i)||(i=jf("_fallback",e));var a=(t={},(0,X.Z)(t,Symbol.toStringTag,"Object"),(0,X.Z)(t,"_cacheable",!0),(0,X.Z)(t,"_scopes",e),(0,X.Z)(t,"_rootScopes",r),(0,X.Z)(t,"_fallback",i),(0,X.Z)(t,"_getTarget",o),(0,X.Z)(t,"override",(function(t){return Ef([t].concat((0,oe.Z)(e)),n,r,i)})),t);return new Proxy(a,{deleteProperty:function(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get:function(t,r){return Nf(t,r,(function(){return Zf(r,n,e,t)}))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e[0])},has:function(e,t){return Lf(e).includes(t)},ownKeys:function(e){return Lf(e)},set:function(e,t,n){var r=e._storage||(e._storage=o());return e[t]=r[t]=n,delete e._keys,!0}})}function Tf(e,t,n,r){var i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:_f(e,r),setContext:function(t){return Tf(e,t,n,r)},override:function(i){return Tf(e.override(i),t,n,r)}};return new Proxy(i,{deleteProperty:function(t,n){return delete t[n],delete e[n],!0},get:function(e,t,n){return Nf(e,t,(function(){return function(e,t,n){var r=e._proxy,i=e._context,o=e._subProxy,l=e._descriptors,s=r[t];Oc(s)&&l.isScriptable(t)&&(s=function(e,t,n,r){var i=n._proxy,o=n._context,a=n._subProxy,l=n._stack;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);l.add(e),t=t(o,a||r),l.delete(e),Rf(e,t)&&(t=Df(i._scopes,i,e,t));return t}(t,s,e,n));fc(s)&&s.length&&(s=function(e,t,n,r){var i=n._proxy,o=n._context,l=n._subProxy,s=n._descriptors;if(Nc(o.index)&&r(e))t=t[o.index%t.length];else if(pc(t[0])){var u=t,c=i._scopes.filter((function(e){return e!==u}));t=[];var d,f=(0,a.Z)(u);try{for(f.s();!(d=f.n()).done;){var p=Df(c,i,e,d.value);t.push(Tf(p,o,l&&l[e],s))}}catch(h){f.e(h)}finally{f.f()}}return t}(t,s,e,l.isIndexable));Rf(t,s)&&(s=Tf(s,i,o&&o[t],l));return s}(e,t,n)}))},getOwnPropertyDescriptor:function(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e)},has:function(t,n){return Reflect.has(e,n)},ownKeys:function(){return Reflect.ownKeys(e)},set:function(t,n,r){return e[n]=r,delete t[n],!0}})}function _f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=e._scriptable,r=void 0===n?t.scriptable:n,i=e._indexable,o=void 0===i?t.indexable:i,a=e._allKeys,l=void 0===a?t.allKeys:a;return{allKeys:l,scriptable:r,indexable:o,isScriptable:Oc(r)?r:function(){return r},isIndexable:Oc(o)?o:function(){return o}}}var If=function(e,t){return e?e+Rc(t):t},Rf=function(e,t){return pc(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object)};function Nf(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];var r=n();return e[t]=r,r}function Of(e,t,n){return Oc(e)?e(t,n):e}var Mf=function(e,t){return!0===e?t:"string"===typeof e?Ic(t,e):void 0};function Pf(e,t,n,r,i){var o,l=(0,a.Z)(t);try{for(l.s();!(o=l.n()).done;){var s=o.value,u=Mf(n,s);if(u){e.add(u);var c=Of(u._fallback,n,i);if(Nc(c)&&c!==n&&c!==r)return c}else if(!1===u&&Nc(r)&&n!==r)return null}}catch(d){l.e(d)}finally{l.f()}return!1}function Df(e,t,n,r){var i=t._rootScopes,o=Of(t._fallback,n,r),a=[].concat((0,oe.Z)(e),(0,oe.Z)(i)),l=new Set;l.add(r);var s=Af(l,a,n,o||n,r);return null!==s&&((!Nc(o)||o===n||null!==(s=Af(l,a,o,s,r)))&&Ef(Array.from(l),[""],i,o,(function(){return function(e,t,n){var r=e._getTarget();t in r||(r[t]={});var i=r[t];if(fc(i)&&pc(n))return n;return i}(t,n,r)})))}function Af(e,t,n,r,i){for(;n;)n=Pf(e,t,n,r,i);return n}function Zf(e,t,n,r){var i,o,l=(0,a.Z)(t);try{for(l.s();!(o=l.n()).done;){var s=o.value;if(i=jf(If(s,e),n),Nc(i))return Rf(e,i)?Df(n,r,e,i):i}}catch(u){l.e(u)}finally{l.f()}}function jf(e,t){var n,r=(0,a.Z)(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i){var o=i[e];if(Nc(o))return o}}}catch(l){r.e(l)}finally{r.f()}}function Lf(e){var t=e._keys;return t||(t=e._keys=function(e){var t,n=new Set,r=(0,a.Z)(e);try{for(r.s();!(t=r.n()).done;){var i,o=t.value,l=(0,a.Z)(Object.keys(o).filter((function(e){return!e.startsWith("_")})));try{for(l.s();!(i=l.n()).done;){var s=i.value;n.add(s)}}catch(u){l.e(u)}finally{l.f()}}}catch(u){r.e(u)}finally{r.f()}return Array.from(n)}(e._scopes)),t}var Ff=Number.EPSILON||1e-14,zf=function(e,t){return t2&&void 0!==arguments[2]?arguments[2]:"x",a=Bf(o),l=e.length,s=zf(e,0),u=0;u1&&void 0!==arguments[1]?arguments[1]:"x",o=Bf(i),a=e.length,l=Array(a).fill(0),s=Array(a),u=zf(e,0);for(t=0;t0||t>0)&&(!n||!n.shadowRoot)}(l,s,i.target))n=l,r=s;else{var c=t.getBoundingClientRect();n=a.clientX-c.left,r=a.clientY-c.top,u=!0}return{x:n,y:r,box:u}}(e,n),u=s.x,c=s.y,d=s.box,f=a.left+(d&&l.left),p=a.top+(d&&l.top),h=t.width,v=t.height;return o&&(h-=a.width+l.width,v-=a.height+l.height),{x:Math.round((u-f)/h*n.width/r),y:Math.round((c-p)/v*n.height/r)}}var ep=function(e){return Math.round(10*e)/10};function tp(e,t,n,r){var i=Qf(e),o=Jf(i,"margin"),a=$f(i.maxWidth,e,"clientWidth")||Zc,l=$f(i.maxHeight,e,"clientHeight")||Zc,s=function(e,t,n){var r,i;if(void 0===t||void 0===n){var o=Kf(e);if(o){var a=o.getBoundingClientRect(),l=Qf(o),s=Jf(l,"border","width"),u=Jf(l,"padding");t=a.width-u.width-s.width,n=a.height-u.height-s.height,r=$f(l.maxWidth,o,"clientWidth"),i=$f(l.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||Zc,maxHeight:i||Zc}}(e,t,n),u=s.width,c=s.height;if("content-box"===i.boxSizing){var d=Jf(i,"border","width"),f=Jf(i,"padding");u-=f.width+d.width,c-=f.height+d.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?Math.floor(u/r):c-o.height),u=ep(Math.min(u,a,s.maxWidth)),c=ep(Math.min(c,l,s.maxHeight)),u&&!c&&(c=ep(u/2)),{width:u,height:c}}function np(e,t,n){var r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=i/r,e.width=o/r;var a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height="".concat(e.height,"px"),a.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}var rp=function(){var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(eD){}return e}();function ip(e,t){var n=function(e,t){return Qf(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function op(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function ap(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function lp(e,t,n,r){var i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=op(e,i,n),l=op(i,o,n),s=op(o,t,n),u=op(a,l,n),c=op(l,s,n);return op(u,c,n)}var sp=new Map;function up(e,t,n){return function(e,t){t=t||{};var n=e+JSON.stringify(t),r=sp.get(n);return r||(r=new Intl.NumberFormat(e,t),sp.set(n,r)),r}(t,n).format(e)}function cp(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}}function dp(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function fp(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function pp(e){return"angle"===e?{between:ed,compare:Jc,normalize:Xc}:{between:nd,compare:function(e,t){return e-t},normalize:function(e){return e}}}function hp(e){var t=e.start,n=e.end,r=e.count;return{start:t%r,end:n%r,loop:e.loop&&(n-t+1)%r===0,style:e.style}}function vp(e,t,n){if(!n)return[e];for(var r,i,o,a=n.property,l=n.start,s=n.end,u=t.length,c=pp(a),d=c.compare,f=c.between,p=c.normalize,h=function(e,t,n){var r,i,o=n.property,a=n.start,l=n.end,s=pp(o),u=s.between,c=s.normalize,d=t.length,f=e.start,p=e.end,h=e.loop;if(h){for(f+=d,p+=d,r=0,i=d;r0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=0;this._charts.forEach((function(r,i){if(r.running&&r.items.length){for(var o,a=r.items,l=a.length-1,s=!1;l>=0;--l)(o=a[l])._active?(o._total>r.duration&&(r.duration=o._total),o.tick(t),s=!0):(a[l]=a[a.length-1],a.pop());s&&(i.draw(),e._notify(i,r,t,"progress")),a.length||(r.running=!1,e._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}})),this._lastDate=t,0===n&&(this._running=!1)}},{key:"_getAnims",value:function(e){var t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}},{key:"listen",value:function(e,t,n){this._getAnims(e).listeners[t].push(n)}},{key:"add",value:function(e,t){var n;t&&t.length&&(n=this._getAnims(e).items).push.apply(n,(0,oe.Z)(t))}},{key:"has",value:function(e){return this._getAnims(e).items.length>0}},{key:"start",value:function(e){var t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((function(e,t){return Math.max(e,t._duration)}),0),this._refresh())}},{key:"running",value:function(e){if(!this._running)return!1;var t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}},{key:"stop",value:function(e){var t=this._charts.get(e);if(t&&t.items.length){for(var n=t.items,r=n.length-1;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}}},{key:"remove",value:function(e){return this._charts.delete(e)}}]),e}(),wp=new xp,Cp="transparent",kp={boolean:function(e,t,n){return n>.5?t:e},color:function(e,t,n){var r=zd(e||Cp),i=r.valid&&zd(t||Cp);return i&&i.valid?i.mix(r,n).hexString():t},number:function(e,t,n){return e+(t-e)*n}},Sp=function(){function e(t,n,r,i){(0,jo.Z)(this,e);var o=n[r];i=gf([t.to,i,o,t.from]);var a=gf([t.from,o,i]);this._active=!0,this._fn=t.fn||kp[t.type||typeof a],this._easing=ad[t.easing]||ad.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}return(0,Lo.Z)(e,[{key:"active",value:function(){return this._active}},{key:"update",value:function(e,t,n){if(this._active){this._notify(!1);var r=this._target[this._prop],i=n-this._start,o=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=gf([e.to,t,r,e.from]),this._from=gf([e.from,r,t])}}},{key:"cancel",value:function(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}},{key:"tick",value:function(e){var t,n=e-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,l=this._to;if(this._active=o!==l&&(a||n1?2-t:t,t=this._easing(Math.min(1,Math.max(0,t))),this._target[i]=this._fn(o,l,t))}},{key:"wait",value:function(){var e=this._promises||(this._promises=[]);return new Promise((function(t,n){e.push({res:t,rej:n})}))}},{key:"_notify",value:function(e){for(var t=e?"res":"rej",n=this._promises||[],r=0;r=0;--n){var s=a[n];if("$"!==s.charAt(0))if("options"!==s){var u=t[s],c=o[s],d=r.get(s);if(c){if(d&&c.active()){c.update(d,u,l);continue}c.cancel()}d&&d.duration?(o[s]=c=new Sp(d,e,s,u),i.push(c)):e[s]=u}else i.push.apply(i,(0,oe.Z)(this._animateOptions(e,t)))}return i}},{key:"update",value:function(e,t){if(0!==this._properties.size){var n=this._createAnimations(e,t);return n.length?(wp.add(this._chart,n),!0):void 0}Object.assign(e,t)}}]),e}();function _p(e,t){var n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:r?o:i,end:r?i:o}}function Ip(e,t){var n,r,i=[],o=e._getSortedDatasetMetas(t);for(n=0,r=o.length;n3&&void 0!==arguments[3]?arguments[3]:{},s=e.keys,u="single"===l.mode;if(null!==t){for(r=0,i=s.length;r0||!n&&s<0)return l.index}}catch(u){o.e(u)}finally{o.f()}return null}function Pp(e,t){for(var n,r=e.chart,i=e._cachedMeta,o=r._stacks||(r._stacks={}),a=i.iScale,l=i.vScale,s=i.index,u=a.axis,c=l.axis,d=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(a,l,i),f=t.length,p=0;p0&&o._parsed[e-1];if(!1===this._parsing)o._parsed=a,o._sorted=!0,i=a;else{i=fc(a[e])?this.parseArrayData(o,a,e,t):pc(a[e])?this.parseObjectData(o,a,e,t):this.parsePrimitiveData(o,a,e,t);for(n=0;nt||p=0;--n)if(!h()){this.updateRangeFromParsed(c,e,r,u);break}return c}},{key:"getAllParsedValues",value:function(e){var t,n,r,i=this._cachedMeta._parsed,o=[];for(t=0,n=i.length;t=0&&e1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0,i="active"===n,o=this._cachedDataOpts,a=e+"-"+n,l=o[a],s=this.enableOptionSharing&&Nc(r);if(l)return jp(l,s);var u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),d=i?["".concat(e,"Hover"),"hover",e,""]:[e,""],f=u.getOptionScopes(this.getDataset(),c),p=Object.keys(Gd.elements[e]),h=function(){return t.getContext(r,i)},v=u.resolveNamedOptions(f,p,h,d);return v.$shared&&(v.$shared=s,o[a]=Object.freeze(jp(v,s))),v}},{key:"_resolveAnimations",value:function(e,t,n){var r,i=this.chart,o=this._cachedDataOpts,a="animation-".concat(t),l=o[a];if(l)return l;if(!1!==i.options.animation){var s=this.chart.config,u=s.datasetAnimationScopeKeys(this._type,t),c=s.getOptionScopes(this.getDataset(),u);r=s.createResolver(c,this.getContext(e,n,t))}var d=new Tp(i,r&&r.animations);return r&&r._cacheable&&(o[a]=Object.freeze(d)),d}},{key:"getSharedOptions",value:function(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}},{key:"includeOptions",value:function(e,t){return!t||Zp(e)||this.chart._animationsDisabled}},{key:"updateElement",value:function(e,t,n,r){Zp(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}},{key:"updateSharedOptions",value:function(e,t,n){e&&!Zp(t)&&this._resolveAnimations(void 0,t).update(e,n)}},{key:"_setStyle",value:function(e,t,n,r){e.active=r;var i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}},{key:"removeHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!1)}},{key:"setHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}},{key:"_resyncElements",value:function(e){var t,n=this._data,r=this._cachedMeta.data,i=(0,a.Z)(this._syncList);try{for(i.s();!(t=i.n()).done;){var o=(0,l.Z)(t.value,3),s=o[0],u=o[1],c=o[2];this[s](u,c)}}catch(h){i.e(h)}finally{i.f()}this._syncList=[];var d=r.length,f=n.length,p=Math.min(f,d);p&&this.parse(0,p),f>d?this._insertElements(d,f-d,e):f2&&void 0!==arguments[2])||arguments[2],i=this._cachedMeta,o=i.data,a=e+t,l=function(e){for(e.length+=t,n=e.length-1;n>=a;n--)e[n]=e[n-t]};for(l(o),n=e;nMath.abs(l)&&(s=l,u=a),t[n.axis]=u,t._custom={barStart:s,barEnd:u,start:i,end:o,min:a,max:l}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Bp(e,t,n,r){var i,o,a,l,s=e.iScale,u=e.vScale,c=s.getLabels(),d=s===u,f=[];for(i=n,o=n+r;ie.x,n="left",r="right"):(t=e.base