frontAnswerer/pub.js
2024-02-22 16:18:45 +03:00

229 lines
765 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function N7(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m5={exports:{}},bd={},g5={exports:{}},Be={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var zl=Symbol.for("react.element"),V7=Symbol.for("react.portal"),z7=Symbol.for("react.fragment"),B7=Symbol.for("react.strict_mode"),W7=Symbol.for("react.profiler"),H7=Symbol.for("react.provider"),U7=Symbol.for("react.context"),Y7=Symbol.for("react.forward_ref"),G7=Symbol.for("react.suspense"),q7=Symbol.for("react.memo"),K7=Symbol.for("react.lazy"),Dg=Symbol.iterator;function Z7(e){return e===null||typeof e!="object"?null:(e=Dg&&e[Dg]||e["@@iterator"],typeof e=="function"?e:null)}var y5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v5=Object.assign,x5={};function Ks(e,t,n){this.props=e,this.context=t,this.refs=x5,this.updater=n||y5}Ks.prototype.isReactComponent={};Ks.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)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")};Ks.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function C5(){}C5.prototype=Ks.prototype;function l1(e,t,n){this.props=e,this.context=t,this.refs=x5,this.updater=n||y5}var c1=l1.prototype=new C5;c1.constructor=l1;v5(c1,Ks.prototype);c1.isPureReactComponent=!0;var _g=Array.isArray,b5=Object.prototype.hasOwnProperty,u1={current:null},w5={key:!0,ref:!0,__self:!0,__source:!0};function S5(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)b5.call(t,r)&&!w5.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:zl,type:e,key:i,ref:s,props:o,_owner:u1.current}}function X7(e,t){return{$$typeof:zl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function d1(e){return typeof e=="object"&&e!==null&&e.$$typeof===zl}function J7(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Og=/\/+/g;function pp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?J7(""+e.key):t.toString(36)}function eu(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case zl:case V7:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+pp(s,0):r,_g(o)?(n="",e!=null&&(n=e.replace(Og,"$&/")+"/"),eu(o,t,n,"",function(c){return c})):o!=null&&(d1(o)&&(o=X7(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Og,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",_g(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+pp(i,a);s+=eu(i,t,n,l,o)}else if(l=Z7(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+pp(i,a++),s+=eu(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function hc(e,t,n){if(e==null)return e;var r=[],o=0;return eu(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Q7(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var un={current:null},tu={transition:null},eC={ReactCurrentDispatcher:un,ReactCurrentBatchConfig:tu,ReactCurrentOwner:u1};Be.Children={map:hc,forEach:function(e,t,n){hc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return hc(e,function(){t++}),t},toArray:function(e){return hc(e,function(t){return t})||[]},only:function(e){if(!d1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Be.Component=Ks;Be.Fragment=z7;Be.Profiler=W7;Be.PureComponent=l1;Be.StrictMode=B7;Be.Suspense=G7;Be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eC;Be.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=v5({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=u1.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)b5.call(t,l)&&!w5.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:zl,type:e.type,key:o,ref:i,props:r,_owner:s}};Be.createContext=function(e){return e={$$typeof:U7,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:H7,_context:e},e.Consumer=e};Be.createElement=S5;Be.createFactory=function(e){var t=S5.bind(null,e);return t.type=e,t};Be.createRef=function(){return{current:null}};Be.forwardRef=function(e){return{$$typeof:Y7,render:e}};Be.isValidElement=d1;Be.lazy=function(e){return{$$typeof:K7,_payload:{_status:-1,_result:e},_init:Q7}};Be.memo=function(e,t){return{$$typeof:q7,type:e,compare:t===void 0?null:t}};Be.startTransition=function(e){var t=tu.transition;tu.transition={};try{e()}finally{tu.transition=t}};Be.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Be.useCallback=function(e,t){return un.current.useCallback(e,t)};Be.useContext=function(e){return un.current.useContext(e)};Be.useDebugValue=function(){};Be.useDeferredValue=function(e){return un.current.useDeferredValue(e)};Be.useEffect=function(e,t){return un.current.useEffect(e,t)};Be.useId=function(){return un.current.useId()};Be.useImperativeHandle=function(e,t,n){return un.current.useImperativeHandle(e,t,n)};Be.useInsertionEffect=function(e,t){return un.current.useInsertionEffect(e,t)};Be.useLayoutEffect=function(e,t){return un.current.useLayoutEffect(e,t)};Be.useMemo=function(e,t){return un.current.useMemo(e,t)};Be.useReducer=function(e,t,n){return un.current.useReducer(e,t,n)};Be.useRef=function(e){return un.current.useRef(e)};Be.useState=function(e){return un.current.useState(e)};Be.useSyncExternalStore=function(e,t,n){return un.current.useSyncExternalStore(e,t,n)};Be.useTransition=function(){return un.current.useTransition()};Be.version="18.2.0";g5.exports=Be;var v=g5.exports;const Fe=Cd(v),wh=N7({__proto__:null,default:Fe},[v]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var tC=v,nC=Symbol.for("react.element"),rC=Symbol.for("react.fragment"),oC=Object.prototype.hasOwnProperty,iC=tC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sC={key:!0,ref:!0,__self:!0,__source:!0};function k5(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)oC.call(t,r)&&!sC.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:nC,type:e,key:i,ref:s,props:o,_owner:iC.current}}bd.Fragment=rC;bd.jsx=k5;bd.jsxs=k5;m5.exports=bd;var f=m5.exports,E5={exports:{}},$n={},P5={exports:{}},M5={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(I,F){var W=I.length;I.push(F);e:for(;0<W;){var se=W-1>>>1,B=I[se];if(0<o(B,F))I[se]=F,I[W]=B,W=se;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var F=I[0],W=I.pop();if(W!==F){I[0]=W;e:for(var se=0,B=I.length,H=B>>>1;se<H;){var z=2*(se+1)-1,ne=I[z],ce=z+1,q=I[ce];if(0>o(ne,W))ce<B&&0>o(q,ne)?(I[se]=q,I[ce]=W,se=ce):(I[se]=ne,I[z]=W,se=z);else if(ce<B&&0>o(q,W))I[se]=q,I[ce]=W,se=ce;else break e}}return F}function o(I,F){var W=I.sortIndex-F.sortIndex;return W!==0?W:I.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,p=3,x=!1,g=!1,h=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(I){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=I)r(c),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(c)}}function w(I){if(h=!1,C(I),!g)if(n(l)!==null)g=!0,L(S);else{var F=n(c);F!==null&&V(w,F.startTime-I)}}function S(I,F){g=!1,h&&(h=!1,m(M),M=-1),x=!0;var W=p;try{for(C(F),d=n(l);d!==null&&(!(d.expirationTime>F)||I&&!_());){var se=d.callback;if(typeof se=="function"){d.callback=null,p=d.priorityLevel;var B=se(d.expirationTime<=F);F=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(l)&&r(l),C(F)}else r(l);d=n(l)}if(d!==null)var H=!0;else{var z=n(c);z!==null&&V(w,z.startTime-F),H=!1}return H}finally{d=null,p=W,x=!1}}var P=!1,k=null,M=-1,T=5,D=-1;function _(){return!(e.unstable_now()-D<T)}function A(){if(k!==null){var I=e.unstable_now();D=I;var F=!0;try{F=k(!0,I)}finally{F?$():(P=!1,k=null)}}else P=!1}var $;if(typeof y=="function")$=function(){y(A)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,O=R.port2;R.port1.onmessage=A,$=function(){O.postMessage(null)}}else $=function(){E(A,0)};function L(I){k=I,P||(P=!0,$())}function V(I,F){M=E(function(){I(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){g||x||(g=!0,L(S))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(I){switch(p){case 1:case 2:case 3:var F=3;break;default:F=p}var W=p;p=F;try{return I()}finally{p=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,F){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var W=p;p=I;try{return F()}finally{p=W}},e.unstable_scheduleCallback=function(I,F,W){var se=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?se+W:se):W=se,I){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=W+B,I={id:u++,callback:F,priorityLevel:I,startTime:W,expirationTime:B,sortIndex:-1},W>se?(I.sortIndex=W,t(c,I),n(l)===null&&I===n(c)&&(h?(m(M),M=-1):h=!0,V(w,W-se))):(I.sortIndex=B,t(l,I),g||x||(g=!0,L(S))),I},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(I){var F=p;return function(){var W=p;p=F;try{return I.apply(this,arguments)}finally{p=W}}}})(M5);P5.exports=M5;var aC=P5.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var T5=v,Dn=aC;function ie(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var R5=new Set,al={};function Ii(e,t){Ds(e,t),Ds(e+"Capture",t)}function Ds(e,t){for(al[e]=t,e=0;e<t.length;e++)R5.add(t[e])}var io=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sh=Object.prototype.hasOwnProperty,lC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ig={},$g={};function cC(e){return Sh.call($g,e)?!0:Sh.call(Ig,e)?!1:lC.test(e)?$g[e]=!0:(Ig[e]=!0,!1)}function uC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function dC(e,t,n,r){if(t===null||typeof t>"u"||uC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Kt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Kt[e]=new dn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Kt[t]=new dn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Kt[e]=new dn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Kt[e]=new dn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Kt[e]=new dn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Kt[e]=new dn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Kt[e]=new dn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Kt[e]=new dn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Kt[e]=new dn(e,5,!1,e.toLowerCase(),null,!1,!1)});var f1=/[\-:]([a-z])/g;function p1(e){return e[1].toUpperCase()}"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(f1,p1);Kt[t]=new dn(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(f1,p1);Kt[t]=new dn(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(f1,p1);Kt[t]=new dn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Kt[e]=new dn(e,1,!1,e.toLowerCase(),null,!1,!1)});Kt.xlinkHref=new dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Kt[e]=new dn(e,1,!1,e.toLowerCase(),null,!0,!0)});function h1(e,t,n,r){var o=Kt.hasOwnProperty(t)?Kt[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(dC(t,n,o,r)&&(n=null),r||o===null?cC(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var po=T5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,mc=Symbol.for("react.element"),ns=Symbol.for("react.portal"),rs=Symbol.for("react.fragment"),m1=Symbol.for("react.strict_mode"),kh=Symbol.for("react.profiler"),D5=Symbol.for("react.provider"),_5=Symbol.for("react.context"),g1=Symbol.for("react.forward_ref"),Eh=Symbol.for("react.suspense"),Ph=Symbol.for("react.suspense_list"),y1=Symbol.for("react.memo"),wo=Symbol.for("react.lazy"),O5=Symbol.for("react.offscreen"),Fg=Symbol.iterator;function la(e){return e===null||typeof e!="object"?null:(e=Fg&&e[Fg]||e["@@iterator"],typeof e=="function"?e:null)}var bt=Object.assign,hp;function Fa(e){if(hp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);hp=t&&t[1]||""}return`
`+hp+e}var mp=!1;function gp(e,t){if(!e||mp)return"";mp=!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()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
`),i=r.stack.split(`
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{mp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fa(e):""}function fC(e){switch(e.tag){case 5:return Fa(e.type);case 16:return Fa("Lazy");case 13:return Fa("Suspense");case 19:return Fa("SuspenseList");case 0:case 2:case 15:return e=gp(e.type,!1),e;case 11:return e=gp(e.type.render,!1),e;case 1:return e=gp(e.type,!0),e;default:return""}}function Mh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rs:return"Fragment";case ns:return"Portal";case kh:return"Profiler";case m1:return"StrictMode";case Eh:return"Suspense";case Ph:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _5:return(e.displayName||"Context")+".Consumer";case D5:return(e._context.displayName||"Context")+".Provider";case g1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case y1:return t=e.displayName||null,t!==null?t:Mh(e.type)||"Memo";case wo:t=e._payload,e=e._init;try{return Mh(e(t))}catch{}}return null}function pC(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=t.render,e=e.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 Mh(t);case 8:return t===m1?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Vo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function I5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hC(e){var t=I5(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gc(e){e._valueTracker||(e._valueTracker=hC(e))}function $5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=I5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Th(e,t){var n=t.checked;return bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ag(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function F5(e,t){t=t.checked,t!=null&&h1(e,"checked",t,!1)}function Rh(e,t){F5(e,t);var n=Vo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Dh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dh(e,t.type,Vo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Dh(e,t,n){(t!=="number"||Tu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Aa=Array.isArray;function ys(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Vo(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function _h(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ie(91));return bt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ie(92));if(Aa(n)){if(1<n.length)throw Error(ie(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Vo(n)}}function A5(e,t){var n=Vo(t.value),r=Vo(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ng(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function L5(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Oh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?L5(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yc,j5=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(yc=yc||document.createElement("div"),yc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ll(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var za={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},mC=["Webkit","ms","Moz","O"];Object.keys(za).forEach(function(e){mC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),za[t]=za[e]})});function N5(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||za.hasOwnProperty(e)&&za[e]?(""+t).trim():t+"px"}function V5(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=N5(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var gC=bt({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 Ih(e,t){if(t){if(gC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ie(62))}}function $h(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Fh=null;function v1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ah=null,vs=null,xs=null;function Vg(e){if(e=Hl(e)){if(typeof Ah!="function")throw Error(ie(280));var t=e.stateNode;t&&(t=Pd(t),Ah(e.stateNode,e.type,t))}}function z5(e){vs?xs?xs.push(e):xs=[e]:vs=e}function B5(){if(vs){var e=vs,t=xs;if(xs=vs=null,Vg(e),t)for(e=0;e<t.length;e++)Vg(t[e])}}function W5(e,t){return e(t)}function H5(){}var yp=!1;function U5(e,t,n){if(yp)return e(t,n);yp=!0;try{return W5(e,t,n)}finally{yp=!1,(vs!==null||xs!==null)&&(H5(),B5())}}function cl(e,t){var n=e.stateNode;if(n===null)return null;var r=Pd(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ie(231,t,typeof n));return n}var Lh=!1;if(io)try{var ca={};Object.defineProperty(ca,"passive",{get:function(){Lh=!0}}),window.addEventListener("test",ca,ca),window.removeEventListener("test",ca,ca)}catch{Lh=!1}function yC(e,t,n,r,o,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ba=!1,Ru=null,Du=!1,jh=null,vC={onError:function(e){Ba=!0,Ru=e}};function xC(e,t,n,r,o,i,s,a,l){Ba=!1,Ru=null,yC.apply(vC,arguments)}function CC(e,t,n,r,o,i,s,a,l){if(xC.apply(this,arguments),Ba){if(Ba){var c=Ru;Ba=!1,Ru=null}else throw Error(ie(198));Du||(Du=!0,jh=c)}}function $i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Y5(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function zg(e){if($i(e)!==e)throw Error(ie(188))}function bC(e){var t=e.alternate;if(!t){if(t=$i(e),t===null)throw Error(ie(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return zg(o),e;if(i===r)return zg(o),t;i=i.sibling}throw Error(ie(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(ie(189))}}if(n.alternate!==r)throw Error(ie(190))}if(n.tag!==3)throw Error(ie(188));return n.stateNode.current===n?e:t}function G5(e){return e=bC(e),e!==null?q5(e):null}function q5(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=q5(e);if(t!==null)return t;e=e.sibling}return null}var K5=Dn.unstable_scheduleCallback,Bg=Dn.unstable_cancelCallback,wC=Dn.unstable_shouldYield,SC=Dn.unstable_requestPaint,Tt=Dn.unstable_now,kC=Dn.unstable_getCurrentPriorityLevel,x1=Dn.unstable_ImmediatePriority,Z5=Dn.unstable_UserBlockingPriority,_u=Dn.unstable_NormalPriority,EC=Dn.unstable_LowPriority,X5=Dn.unstable_IdlePriority,wd=null,Tr=null;function PC(e){if(Tr&&typeof Tr.onCommitFiberRoot=="function")try{Tr.onCommitFiberRoot(wd,e,void 0,(e.current.flags&128)===128)}catch{}}var dr=Math.clz32?Math.clz32:RC,MC=Math.log,TC=Math.LN2;function RC(e){return e>>>=0,e===0?32:31-(MC(e)/TC|0)|0}var vc=64,xc=4194304;function La(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ou(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=La(a):(i&=s,i!==0&&(r=La(i)))}else s=n&~o,s!==0?r=La(s):i!==0&&(r=La(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-dr(t),o=1<<n,r|=e[n],t&=~o;return r}function DC(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _C(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-dr(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=DC(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Nh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function J5(){var e=vc;return vc<<=1,!(vc&4194240)&&(vc=64),e}function vp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dr(t),e[t]=n}function OC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-dr(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function C1(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-dr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var nt=0;function Q5(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var e8,b1,t8,n8,r8,Vh=!1,Cc=[],_o=null,Oo=null,Io=null,ul=new Map,dl=new Map,ko=[],IC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Wg(e,t){switch(e){case"focusin":case"focusout":_o=null;break;case"dragenter":case"dragleave":Oo=null;break;case"mouseover":case"mouseout":Io=null;break;case"pointerover":case"pointerout":ul.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dl.delete(t.pointerId)}}function ua(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Hl(t),t!==null&&b1(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function $C(e,t,n,r,o){switch(t){case"focusin":return _o=ua(_o,e,t,n,r,o),!0;case"dragenter":return Oo=ua(Oo,e,t,n,r,o),!0;case"mouseover":return Io=ua(Io,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ul.set(i,ua(ul.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,dl.set(i,ua(dl.get(i)||null,e,t,n,r,o)),!0}return!1}function o8(e){var t=ui(e.target);if(t!==null){var n=$i(t);if(n!==null){if(t=n.tag,t===13){if(t=Y5(n),t!==null){e.blockedOn=t,r8(e.priority,function(){t8(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Fh=r,n.target.dispatchEvent(r),Fh=null}else return t=Hl(n),t!==null&&b1(t),e.blockedOn=n,!1;t.shift()}return!0}function Hg(e,t,n){nu(e)&&n.delete(t)}function FC(){Vh=!1,_o!==null&&nu(_o)&&(_o=null),Oo!==null&&nu(Oo)&&(Oo=null),Io!==null&&nu(Io)&&(Io=null),ul.forEach(Hg),dl.forEach(Hg)}function da(e,t){e.blockedOn===t&&(e.blockedOn=null,Vh||(Vh=!0,Dn.unstable_scheduleCallback(Dn.unstable_NormalPriority,FC)))}function fl(e){function t(o){return da(o,e)}if(0<Cc.length){da(Cc[0],e);for(var n=1;n<Cc.length;n++){var r=Cc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_o!==null&&da(_o,e),Oo!==null&&da(Oo,e),Io!==null&&da(Io,e),ul.forEach(t),dl.forEach(t),n=0;n<ko.length;n++)r=ko[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ko.length&&(n=ko[0],n.blockedOn===null);)o8(n),n.blockedOn===null&&ko.shift()}var Cs=po.ReactCurrentBatchConfig,Iu=!0;function AC(e,t,n,r){var o=nt,i=Cs.transition;Cs.transition=null;try{nt=1,w1(e,t,n,r)}finally{nt=o,Cs.transition=i}}function LC(e,t,n,r){var o=nt,i=Cs.transition;Cs.transition=null;try{nt=4,w1(e,t,n,r)}finally{nt=o,Cs.transition=i}}function w1(e,t,n,r){if(Iu){var o=zh(e,t,n,r);if(o===null)Tp(e,t,r,$u,n),Wg(e,r);else if($C(o,e,t,n,r))r.stopPropagation();else if(Wg(e,r),t&4&&-1<IC.indexOf(e)){for(;o!==null;){var i=Hl(o);if(i!==null&&e8(i),i=zh(e,t,n,r),i===null&&Tp(e,t,r,$u,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Tp(e,t,r,null,n)}}var $u=null;function zh(e,t,n,r){if($u=null,e=v1(r),e=ui(e),e!==null)if(t=$i(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Y5(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $u=e,null}function i8(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(kC()){case x1:return 1;case Z5:return 4;case _u:case EC:return 16;case X5:return 536870912;default:return 16}default:return 16}}var Po=null,S1=null,ru=null;function s8(){if(ru)return ru;var e,t=S1,n=t.length,r,o="value"in Po?Po.value:Po.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return ru=o.slice(e,1<r?1-r:void 0)}function ou(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bc(){return!0}function Ug(){return!1}function Fn(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?bc:Ug,this.isPropagationStopped=Ug,this}return bt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=bc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=bc)},persist:function(){},isPersistent:bc}),t}var Zs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},k1=Fn(Zs),Wl=bt({},Zs,{view:0,detail:0}),jC=Fn(Wl),xp,Cp,fa,Sd=bt({},Wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:E1,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fa&&(fa&&e.type==="mousemove"?(xp=e.screenX-fa.screenX,Cp=e.screenY-fa.screenY):Cp=xp=0,fa=e),xp)},movementY:function(e){return"movementY"in e?e.movementY:Cp}}),Yg=Fn(Sd),NC=bt({},Sd,{dataTransfer:0}),VC=Fn(NC),zC=bt({},Wl,{relatedTarget:0}),bp=Fn(zC),BC=bt({},Zs,{animationName:0,elapsedTime:0,pseudoElement:0}),WC=Fn(BC),HC=bt({},Zs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),UC=Fn(HC),YC=bt({},Zs,{data:0}),Gg=Fn(YC),GC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},KC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=KC[e])?!!t[e]:!1}function E1(){return ZC}var XC=bt({},Wl,{key:function(e){if(e.key){var t=GC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ou(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:E1,charCode:function(e){return e.type==="keypress"?ou(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ou(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),JC=Fn(XC),QC=bt({},Sd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qg=Fn(QC),eb=bt({},Wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:E1}),tb=Fn(eb),nb=bt({},Zs,{propertyName:0,elapsedTime:0,pseudoElement:0}),rb=Fn(nb),ob=bt({},Sd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ib=Fn(ob),sb=[9,13,27,32],P1=io&&"CompositionEvent"in window,Wa=null;io&&"documentMode"in document&&(Wa=document.documentMode);var ab=io&&"TextEvent"in window&&!Wa,a8=io&&(!P1||Wa&&8<Wa&&11>=Wa),Kg=" ",Zg=!1;function l8(e,t){switch(e){case"keyup":return sb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c8(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var os=!1;function lb(e,t){switch(e){case"compositionend":return c8(t);case"keypress":return t.which!==32?null:(Zg=!0,Kg);case"textInput":return e=t.data,e===Kg&&Zg?null:e;default:return null}}function cb(e,t){if(os)return e==="compositionend"||!P1&&l8(e,t)?(e=s8(),ru=S1=Po=null,os=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return a8&&t.locale!=="ko"?null:t.data;default:return null}}var ub={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 Xg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ub[e.type]:t==="textarea"}function u8(e,t,n,r){z5(r),t=Fu(t,"onChange"),0<t.length&&(n=new k1("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ha=null,pl=null;function db(e){b8(e,0)}function kd(e){var t=as(e);if($5(t))return e}function fb(e,t){if(e==="change")return t}var d8=!1;if(io){var wp;if(io){var Sp="oninput"in document;if(!Sp){var Jg=document.createElement("div");Jg.setAttribute("oninput","return;"),Sp=typeof Jg.oninput=="function"}wp=Sp}else wp=!1;d8=wp&&(!document.documentMode||9<document.documentMode)}function Qg(){Ha&&(Ha.detachEvent("onpropertychange",f8),pl=Ha=null)}function f8(e){if(e.propertyName==="value"&&kd(pl)){var t=[];u8(t,pl,e,v1(e)),U5(db,t)}}function pb(e,t,n){e==="focusin"?(Qg(),Ha=t,pl=n,Ha.attachEvent("onpropertychange",f8)):e==="focusout"&&Qg()}function hb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kd(pl)}function mb(e,t){if(e==="click")return kd(t)}function gb(e,t){if(e==="input"||e==="change")return kd(t)}function yb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pr=typeof Object.is=="function"?Object.is:yb;function hl(e,t){if(pr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Sh.call(t,o)||!pr(e[o],t[o]))return!1}return!0}function e2(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function t2(e,t){var n=e2(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=e2(n)}}function p8(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?p8(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function h8(){for(var e=window,t=Tu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tu(e.document)}return t}function M1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function vb(e){var t=h8(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&p8(n.ownerDocument.documentElement,n)){if(r!==null&&M1(n)){if(t=r.start,e=r.end,e===void 0&&(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,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=t2(n,i);var s=t2(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var xb=io&&"documentMode"in document&&11>=document.documentMode,is=null,Bh=null,Ua=null,Wh=!1;function n2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wh||is==null||is!==Tu(r)||(r=is,"selectionStart"in r&&M1(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ua&&hl(Ua,r)||(Ua=r,r=Fu(Bh,"onSelect"),0<r.length&&(t=new k1("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=is)))}function wc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ss={animationend:wc("Animation","AnimationEnd"),animationiteration:wc("Animation","AnimationIteration"),animationstart:wc("Animation","AnimationStart"),transitionend:wc("Transition","TransitionEnd")},kp={},m8={};io&&(m8=document.createElement("div").style,"AnimationEvent"in window||(delete ss.animationend.animation,delete ss.animationiteration.animation,delete ss.animationstart.animation),"TransitionEvent"in window||delete ss.transitionend.transition);function Ed(e){if(kp[e])return kp[e];if(!ss[e])return e;var t=ss[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in m8)return kp[e]=t[n];return e}var g8=Ed("animationend"),y8=Ed("animationiteration"),v8=Ed("animationstart"),x8=Ed("transitionend"),C8=new Map,r2="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 Uo(e,t){C8.set(e,t),Ii(t,[e])}for(var Ep=0;Ep<r2.length;Ep++){var Pp=r2[Ep],Cb=Pp.toLowerCase(),bb=Pp[0].toUpperCase()+Pp.slice(1);Uo(Cb,"on"+bb)}Uo(g8,"onAnimationEnd");Uo(y8,"onAnimationIteration");Uo(v8,"onAnimationStart");Uo("dblclick","onDoubleClick");Uo("focusin","onFocus");Uo("focusout","onBlur");Uo(x8,"onTransitionEnd");Ds("onMouseEnter",["mouseout","mouseover"]);Ds("onMouseLeave",["mouseout","mouseover"]);Ds("onPointerEnter",["pointerout","pointerover"]);Ds("onPointerLeave",["pointerout","pointerover"]);Ii("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ii("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ii("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ii("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ii("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ii("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ja="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),wb=new Set("cancel close invalid load scroll toggle".split(" ").concat(ja));function o2(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,CC(r,t,void 0,e),e.currentTarget=null}function b8(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;o2(o,a,c),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;o2(o,a,c),i=l}}}if(Du)throw e=jh,Du=!1,jh=null,e}function dt(e,t){var n=t[qh];n===void 0&&(n=t[qh]=new Set);var r=e+"__bubble";n.has(r)||(w8(t,e,2,!1),n.add(r))}function Mp(e,t,n){var r=0;t&&(r|=4),w8(n,e,r,t)}var Sc="_reactListening"+Math.random().toString(36).slice(2);function ml(e){if(!e[Sc]){e[Sc]=!0,R5.forEach(function(n){n!=="selectionchange"&&(wb.has(n)||Mp(n,!1,e),Mp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sc]||(t[Sc]=!0,Mp("selectionchange",!1,t))}}function w8(e,t,n,r){switch(i8(t)){case 1:var o=AC;break;case 4:o=LC;break;default:o=w1}n=o.bind(null,t,n,e),o=void 0,!Lh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Tp(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=ui(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}U5(function(){var c=i,u=v1(n),d=[];e:{var p=C8.get(e);if(p!==void 0){var x=k1,g=e;switch(e){case"keypress":if(ou(n)===0)break e;case"keydown":case"keyup":x=JC;break;case"focusin":g="focus",x=bp;break;case"focusout":g="blur",x=bp;break;case"beforeblur":case"afterblur":x=bp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=Yg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=VC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=tb;break;case g8:case y8:case v8:x=WC;break;case x8:x=rb;break;case"scroll":x=jC;break;case"wheel":x=ib;break;case"copy":case"cut":case"paste":x=UC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=qg}var h=(t&4)!==0,E=!h&&e==="scroll",m=h?p!==null?p+"Capture":null:p;h=[];for(var y=c,C;y!==null;){C=y;var w=C.stateNode;if(C.tag===5&&w!==null&&(C=w,m!==null&&(w=cl(y,m),w!=null&&h.push(gl(y,w,C)))),E)break;y=y.return}0<h.length&&(p=new x(p,g,null,n,u),d.push({event:p,listeners:h}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",p&&n!==Fh&&(g=n.relatedTarget||n.fromElement)&&(ui(g)||g[so]))break e;if((x||p)&&(p=u.window===u?u:(p=u.ownerDocument)?p.defaultView||p.parentWindow:window,x?(g=n.relatedTarget||n.toElement,x=c,g=g?ui(g):null,g!==null&&(E=$i(g),g!==E||g.tag!==5&&g.tag!==6)&&(g=null)):(x=null,g=c),x!==g)){if(h=Yg,w="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(h=qg,w="onPointerLeave",m="onPointerEnter",y="pointer"),E=x==null?p:as(x),C=g==null?p:as(g),p=new h(w,y+"leave",x,n,u),p.target=E,p.relatedTarget=C,w=null,ui(u)===c&&(h=new h(m,y+"enter",g,n,u),h.target=C,h.relatedTarget=E,w=h),E=w,x&&g)t:{for(h=x,m=g,y=0,C=h;C;C=zi(C))y++;for(C=0,w=m;w;w=zi(w))C++;for(;0<y-C;)h=zi(h),y--;for(;0<C-y;)m=zi(m),C--;for(;y--;){if(h===m||m!==null&&h===m.alternate)break t;h=zi(h),m=zi(m)}h=null}else h=null;x!==null&&i2(d,p,x,h,!1),g!==null&&E!==null&&i2(d,E,g,h,!0)}}e:{if(p=c?as(c):window,x=p.nodeName&&p.nodeName.toLowerCase(),x==="select"||x==="input"&&p.type==="file")var S=fb;else if(Xg(p))if(d8)S=gb;else{S=hb;var P=pb}else(x=p.nodeName)&&x.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=mb);if(S&&(S=S(e,c))){u8(d,S,n,u);break e}P&&P(e,p,c),e==="focusout"&&(P=p._wrapperState)&&P.controlled&&p.type==="number"&&Dh(p,"number",p.value)}switch(P=c?as(c):window,e){case"focusin":(Xg(P)||P.contentEditable==="true")&&(is=P,Bh=c,Ua=null);break;case"focusout":Ua=Bh=is=null;break;case"mousedown":Wh=!0;break;case"contextmenu":case"mouseup":case"dragend":Wh=!1,n2(d,n,u);break;case"selectionchange":if(xb)break;case"keydown":case"keyup":n2(d,n,u)}var k;if(P1)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else os?l8(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(a8&&n.locale!=="ko"&&(os||M!=="onCompositionStart"?M==="onCompositionEnd"&&os&&(k=s8()):(Po=u,S1="value"in Po?Po.value:Po.textContent,os=!0)),P=Fu(c,M),0<P.length&&(M=new Gg(M,e,null,n,u),d.push({event:M,listeners:P}),k?M.data=k:(k=c8(n),k!==null&&(M.data=k)))),(k=ab?lb(e,n):cb(e,n))&&(c=Fu(c,"onBeforeInput"),0<c.length&&(u=new Gg("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=k))}b8(d,t)})}function gl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fu(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=cl(e,n),i!=null&&r.unshift(gl(e,i,o)),i=cl(e,t),i!=null&&r.push(gl(e,i,o))),e=e.return}return r}function zi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function i2(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,o?(l=cl(n,i),l!=null&&s.unshift(gl(n,l,a))):o||(l=cl(n,i),l!=null&&s.push(gl(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Sb=/\r\n?/g,kb=/\u0000|\uFFFD/g;function s2(e){return(typeof e=="string"?e:""+e).replace(Sb,`
`).replace(kb,"")}function kc(e,t,n){if(t=s2(t),s2(e)!==t&&n)throw Error(ie(425))}function Au(){}var Hh=null,Uh=null;function Yh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gh=typeof setTimeout=="function"?setTimeout:void 0,Eb=typeof clearTimeout=="function"?clearTimeout:void 0,a2=typeof Promise=="function"?Promise:void 0,Pb=typeof queueMicrotask=="function"?queueMicrotask:typeof a2<"u"?function(e){return a2.resolve(null).then(e).catch(Mb)}:Gh;function Mb(e){setTimeout(function(){throw e})}function Rp(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),fl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);fl(t)}function $o(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function l2(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Xs=Math.random().toString(36).slice(2),kr="__reactFiber$"+Xs,yl="__reactProps$"+Xs,so="__reactContainer$"+Xs,qh="__reactEvents$"+Xs,Tb="__reactListeners$"+Xs,Rb="__reactHandles$"+Xs;function ui(e){var t=e[kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[so]||n[kr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=l2(e);e!==null;){if(n=e[kr])return n;e=l2(e)}return t}e=n,n=e.parentNode}return null}function Hl(e){return e=e[kr]||e[so],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function as(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ie(33))}function Pd(e){return e[yl]||null}var Kh=[],ls=-1;function Yo(e){return{current:e}}function ft(e){0>ls||(e.current=Kh[ls],Kh[ls]=null,ls--)}function lt(e,t){ls++,Kh[ls]=e.current,e.current=t}var zo={},on=Yo(zo),yn=Yo(!1),bi=zo;function _s(e,t){var n=e.type.contextTypes;if(!n)return zo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vn(e){return e=e.childContextTypes,e!=null}function Lu(){ft(yn),ft(on)}function c2(e,t,n){if(on.current!==zo)throw Error(ie(168));lt(on,t),lt(yn,n)}function S8(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ie(108,pC(e)||"Unknown",o));return bt({},n,r)}function ju(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zo,bi=on.current,lt(on,e),lt(yn,yn.current),!0}function u2(e,t,n){var r=e.stateNode;if(!r)throw Error(ie(169));n?(e=S8(e,t,bi),r.__reactInternalMemoizedMergedChildContext=e,ft(yn),ft(on),lt(on,e)):ft(yn),lt(yn,n)}var Yr=null,Md=!1,Dp=!1;function k8(e){Yr===null?Yr=[e]:Yr.push(e)}function Db(e){Md=!0,k8(e)}function Go(){if(!Dp&&Yr!==null){Dp=!0;var e=0,t=nt;try{var n=Yr;for(nt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Yr=null,Md=!1}catch(o){throw Yr!==null&&(Yr=Yr.slice(e+1)),K5(x1,Go),o}finally{nt=t,Dp=!1}}return null}var cs=[],us=0,Nu=null,Vu=0,zn=[],Bn=0,wi=null,Kr=1,Zr="";function ni(e,t){cs[us++]=Vu,cs[us++]=Nu,Nu=e,Vu=t}function E8(e,t,n){zn[Bn++]=Kr,zn[Bn++]=Zr,zn[Bn++]=wi,wi=e;var r=Kr;e=Zr;var o=32-dr(r)-1;r&=~(1<<o),n+=1;var i=32-dr(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Kr=1<<32-dr(t)+o|n<<o|r,Zr=i+e}else Kr=1<<i|n<<o|r,Zr=e}function T1(e){e.return!==null&&(ni(e,1),E8(e,1,0))}function R1(e){for(;e===Nu;)Nu=cs[--us],cs[us]=null,Vu=cs[--us],cs[us]=null;for(;e===wi;)wi=zn[--Bn],zn[Bn]=null,Zr=zn[--Bn],zn[Bn]=null,Kr=zn[--Bn],zn[Bn]=null}var Tn=null,Mn=null,yt=!1,ar=null;function P8(e,t){var n=Un(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function d2(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Tn=e,Mn=$o(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Tn=e,Mn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wi!==null?{id:Kr,overflow:Zr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Un(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Tn=e,Mn=null,!0):!1;default:return!1}}function Zh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Xh(e){if(yt){var t=Mn;if(t){var n=t;if(!d2(e,t)){if(Zh(e))throw Error(ie(418));t=$o(n.nextSibling);var r=Tn;t&&d2(e,t)?P8(r,n):(e.flags=e.flags&-4097|2,yt=!1,Tn=e)}}else{if(Zh(e))throw Error(ie(418));e.flags=e.flags&-4097|2,yt=!1,Tn=e}}}function f2(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Tn=e}function Ec(e){if(e!==Tn)return!1;if(!yt)return f2(e),yt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Yh(e.type,e.memoizedProps)),t&&(t=Mn)){if(Zh(e))throw M8(),Error(ie(418));for(;t;)P8(e,t),t=$o(t.nextSibling)}if(f2(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ie(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Mn=$o(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Mn=null}}else Mn=Tn?$o(e.stateNode.nextSibling):null;return!0}function M8(){for(var e=Mn;e;)e=$o(e.nextSibling)}function Os(){Mn=Tn=null,yt=!1}function D1(e){ar===null?ar=[e]:ar.push(e)}var _b=po.ReactCurrentBatchConfig;function ir(e,t){if(e&&e.defaultProps){t=bt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var zu=Yo(null),Bu=null,ds=null,_1=null;function O1(){_1=ds=Bu=null}function I1(e){var t=zu.current;ft(zu),e._currentValue=t}function Jh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function bs(e,t){Bu=e,_1=ds=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(gn=!0),e.firstContext=null)}function Kn(e){var t=e._currentValue;if(_1!==e)if(e={context:e,memoizedValue:t,next:null},ds===null){if(Bu===null)throw Error(ie(308));ds=e,Bu.dependencies={lanes:0,firstContext:e}}else ds=ds.next=e;return t}var di=null;function $1(e){di===null?di=[e]:di.push(e)}function T8(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,$1(t)):(n.next=o.next,o.next=n),t.interleaved=n,ao(e,r)}function ao(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var So=!1;function F1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function R8(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function eo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ge&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ao(e,n)}return o=r.interleaved,o===null?(t.next=t,$1(r)):(t.next=o.next,o.next=t),r.interleaved=t,ao(e,n)}function iu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,C1(e,n)}}function p2(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wu(e,t,n,r){var o=e.updateQueue;So=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,u=c=l=null,a=i;do{var p=a.lane,x=a.eventTime;if((r&p)===p){u!==null&&(u=u.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,h=a;switch(p=t,x=n,h.tag){case 1:if(g=h.payload,typeof g=="function"){d=g.call(x,d,p);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=h.payload,p=typeof g=="function"?g.call(x,d,p):g,p==null)break e;d=bt({},d,p);break e;case 2:So=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else x={eventTime:x,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=x,l=d):u=u.next=x,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ki|=s,e.lanes=s,e.memoizedState=d}}function h2(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(ie(191,o));o.call(r)}}}var D8=new T5.Component().refs;function Qh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:bt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Td={isMounted:function(e){return(e=e._reactInternals)?$i(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=cn(),o=Lo(e),i=eo(r,o);i.payload=t,n!=null&&(i.callback=n),t=Fo(e,i,o),t!==null&&(fr(t,e,o,r),iu(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=cn(),o=Lo(e),i=eo(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Fo(e,i,o),t!==null&&(fr(t,e,o,r),iu(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cn(),r=Lo(e),o=eo(n,r);o.tag=2,t!=null&&(o.callback=t),t=Fo(e,o,r),t!==null&&(fr(t,e,r,n),iu(t,e,r))}};function m2(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!hl(n,r)||!hl(o,i):!0}function _8(e,t,n){var r=!1,o=zo,i=t.contextType;return typeof i=="object"&&i!==null?i=Kn(i):(o=vn(t)?bi:on.current,r=t.contextTypes,i=(r=r!=null)?_s(e,o):zo),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Td,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function g2(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Td.enqueueReplaceState(t,t.state,null)}function e0(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=D8,F1(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Kn(i):(i=vn(t)?bi:on.current,o.context=_s(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Qh(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Td.enqueueReplaceState(o,o.state,null),Wu(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function pa(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ie(309));var r=n.stateNode}if(!r)throw Error(ie(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===D8&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(ie(284));if(!n._owner)throw Error(ie(290,e))}return e}function Pc(e,t){throw e=Object.prototype.toString.call(t),Error(ie(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function y2(e){var t=e._init;return t(e._payload)}function O8(e){function t(m,y){if(e){var C=m.deletions;C===null?(m.deletions=[y],m.flags|=16):C.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function o(m,y){return m=jo(m,y),m.index=0,m.sibling=null,m}function i(m,y,C){return m.index=C,e?(C=m.alternate,C!==null?(C=C.index,C<y?(m.flags|=2,y):C):(m.flags|=2,y)):(m.flags|=1048576,y)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,y,C,w){return y===null||y.tag!==6?(y=Lp(C,m.mode,w),y.return=m,y):(y=o(y,C),y.return=m,y)}function l(m,y,C,w){var S=C.type;return S===rs?u(m,y,C.props.children,w,C.key):y!==null&&(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===wo&&y2(S)===y.type)?(w=o(y,C.props),w.ref=pa(m,y,C),w.return=m,w):(w=du(C.type,C.key,C.props,null,m.mode,w),w.ref=pa(m,y,C),w.return=m,w)}function c(m,y,C,w){return y===null||y.tag!==4||y.stateNode.containerInfo!==C.containerInfo||y.stateNode.implementation!==C.implementation?(y=jp(C,m.mode,w),y.return=m,y):(y=o(y,C.children||[]),y.return=m,y)}function u(m,y,C,w,S){return y===null||y.tag!==7?(y=gi(C,m.mode,w,S),y.return=m,y):(y=o(y,C),y.return=m,y)}function d(m,y,C){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Lp(""+y,m.mode,C),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case mc:return C=du(y.type,y.key,y.props,null,m.mode,C),C.ref=pa(m,null,y),C.return=m,C;case ns:return y=jp(y,m.mode,C),y.return=m,y;case wo:var w=y._init;return d(m,w(y._payload),C)}if(Aa(y)||la(y))return y=gi(y,m.mode,C,null),y.return=m,y;Pc(m,y)}return null}function p(m,y,C,w){var S=y!==null?y.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return S!==null?null:a(m,y,""+C,w);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case mc:return C.key===S?l(m,y,C,w):null;case ns:return C.key===S?c(m,y,C,w):null;case wo:return S=C._init,p(m,y,S(C._payload),w)}if(Aa(C)||la(C))return S!==null?null:u(m,y,C,w,null);Pc(m,C)}return null}function x(m,y,C,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(C)||null,a(y,m,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case mc:return m=m.get(w.key===null?C:w.key)||null,l(y,m,w,S);case ns:return m=m.get(w.key===null?C:w.key)||null,c(y,m,w,S);case wo:var P=w._init;return x(m,y,C,P(w._payload),S)}if(Aa(w)||la(w))return m=m.get(C)||null,u(y,m,w,S,null);Pc(y,w)}return null}function g(m,y,C,w){for(var S=null,P=null,k=y,M=y=0,T=null;k!==null&&M<C.length;M++){k.index>M?(T=k,k=null):T=k.sibling;var D=p(m,k,C[M],w);if(D===null){k===null&&(k=T);break}e&&k&&D.alternate===null&&t(m,k),y=i(D,y,M),P===null?S=D:P.sibling=D,P=D,k=T}if(M===C.length)return n(m,k),yt&&ni(m,M),S;if(k===null){for(;M<C.length;M++)k=d(m,C[M],w),k!==null&&(y=i(k,y,M),P===null?S=k:P.sibling=k,P=k);return yt&&ni(m,M),S}for(k=r(m,k);M<C.length;M++)T=x(k,m,M,C[M],w),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?M:T.key),y=i(T,y,M),P===null?S=T:P.sibling=T,P=T);return e&&k.forEach(function(_){return t(m,_)}),yt&&ni(m,M),S}function h(m,y,C,w){var S=la(C);if(typeof S!="function")throw Error(ie(150));if(C=S.call(C),C==null)throw Error(ie(151));for(var P=S=null,k=y,M=y=0,T=null,D=C.next();k!==null&&!D.done;M++,D=C.next()){k.index>M?(T=k,k=null):T=k.sibling;var _=p(m,k,D.value,w);if(_===null){k===null&&(k=T);break}e&&k&&_.alternate===null&&t(m,k),y=i(_,y,M),P===null?S=_:P.sibling=_,P=_,k=T}if(D.done)return n(m,k),yt&&ni(m,M),S;if(k===null){for(;!D.done;M++,D=C.next())D=d(m,D.value,w),D!==null&&(y=i(D,y,M),P===null?S=D:P.sibling=D,P=D);return yt&&ni(m,M),S}for(k=r(m,k);!D.done;M++,D=C.next())D=x(k,m,M,D.value,w),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?M:D.key),y=i(D,y,M),P===null?S=D:P.sibling=D,P=D);return e&&k.forEach(function(A){return t(m,A)}),yt&&ni(m,M),S}function E(m,y,C,w){if(typeof C=="object"&&C!==null&&C.type===rs&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case mc:e:{for(var S=C.key,P=y;P!==null;){if(P.key===S){if(S=C.type,S===rs){if(P.tag===7){n(m,P.sibling),y=o(P,C.props.children),y.return=m,m=y;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===wo&&y2(S)===P.type){n(m,P.sibling),y=o(P,C.props),y.ref=pa(m,P,C),y.return=m,m=y;break e}n(m,P);break}else t(m,P);P=P.sibling}C.type===rs?(y=gi(C.props.children,m.mode,w,C.key),y.return=m,m=y):(w=du(C.type,C.key,C.props,null,m.mode,w),w.ref=pa(m,y,C),w.return=m,m=w)}return s(m);case ns:e:{for(P=C.key;y!==null;){if(y.key===P)if(y.tag===4&&y.stateNode.containerInfo===C.containerInfo&&y.stateNode.implementation===C.implementation){n(m,y.sibling),y=o(y,C.children||[]),y.return=m,m=y;break e}else{n(m,y);break}else t(m,y);y=y.sibling}y=jp(C,m.mode,w),y.return=m,m=y}return s(m);case wo:return P=C._init,E(m,y,P(C._payload),w)}if(Aa(C))return g(m,y,C,w);if(la(C))return h(m,y,C,w);Pc(m,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,y!==null&&y.tag===6?(n(m,y.sibling),y=o(y,C),y.return=m,m=y):(n(m,y),y=Lp(C,m.mode,w),y.return=m,m=y),s(m)):n(m,y)}return E}var Is=O8(!0),I8=O8(!1),Ul={},Rr=Yo(Ul),vl=Yo(Ul),xl=Yo(Ul);function fi(e){if(e===Ul)throw Error(ie(174));return e}function A1(e,t){switch(lt(xl,t),lt(vl,e),lt(Rr,Ul),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Oh(t,e)}ft(Rr),lt(Rr,t)}function $s(){ft(Rr),ft(vl),ft(xl)}function $8(e){fi(xl.current);var t=fi(Rr.current),n=Oh(t,e.type);t!==n&&(lt(vl,e),lt(Rr,n))}function L1(e){vl.current===e&&(ft(Rr),ft(vl))}var vt=Yo(0);function Hu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _p=[];function j1(){for(var e=0;e<_p.length;e++)_p[e]._workInProgressVersionPrimary=null;_p.length=0}var su=po.ReactCurrentDispatcher,Op=po.ReactCurrentBatchConfig,Si=0,Ct=null,$t=null,Vt=null,Uu=!1,Ya=!1,Cl=0,Ob=0;function Jt(){throw Error(ie(321))}function N1(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pr(e[n],t[n]))return!1;return!0}function V1(e,t,n,r,o,i){if(Si=i,Ct=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,su.current=e===null||e.memoizedState===null?Ab:Lb,e=n(r,o),Ya){i=0;do{if(Ya=!1,Cl=0,25<=i)throw Error(ie(301));i+=1,Vt=$t=null,t.updateQueue=null,su.current=jb,e=n(r,o)}while(Ya)}if(su.current=Yu,t=$t!==null&&$t.next!==null,Si=0,Vt=$t=Ct=null,Uu=!1,t)throw Error(ie(300));return e}function z1(){var e=Cl!==0;return Cl=0,e}function Cr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?Ct.memoizedState=Vt=e:Vt=Vt.next=e,Vt}function Zn(){if($t===null){var e=Ct.alternate;e=e!==null?e.memoizedState:null}else e=$t.next;var t=Vt===null?Ct.memoizedState:Vt.next;if(t!==null)Vt=t,$t=e;else{if(e===null)throw Error(ie(310));$t=e,e={memoizedState:$t.memoizedState,baseState:$t.baseState,baseQueue:$t.baseQueue,queue:$t.queue,next:null},Vt===null?Ct.memoizedState=Vt=e:Vt=Vt.next=e}return Vt}function bl(e,t){return typeof t=="function"?t(e):t}function Ip(e){var t=Zn(),n=t.queue;if(n===null)throw Error(ie(311));n.lastRenderedReducer=e;var r=$t,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,c=i;do{var u=c.lane;if((Si&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,Ct.lanes|=u,ki|=u}c=c.next}while(c!==null&&c!==i);l===null?s=r:l.next=a,pr(r,t.memoizedState)||(gn=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Ct.lanes|=i,ki|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function $p(e){var t=Zn(),n=t.queue;if(n===null)throw Error(ie(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);pr(i,t.memoizedState)||(gn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function F8(){}function A8(e,t){var n=Ct,r=Zn(),o=t(),i=!pr(r.memoizedState,o);if(i&&(r.memoizedState=o,gn=!0),r=r.queue,B1(N8.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Vt!==null&&Vt.memoizedState.tag&1){if(n.flags|=2048,wl(9,j8.bind(null,n,r,o,t),void 0,null),Bt===null)throw Error(ie(349));Si&30||L8(n,t,o)}return o}function L8(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ct.updateQueue,t===null?(t={lastEffect:null,stores:null},Ct.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function j8(e,t,n,r){t.value=n,t.getSnapshot=r,V8(t)&&z8(e)}function N8(e,t,n){return n(function(){V8(t)&&z8(e)})}function V8(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pr(e,n)}catch{return!0}}function z8(e){var t=ao(e,1);t!==null&&fr(t,e,1,-1)}function v2(e){var t=Cr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:e},t.queue=e,e=e.dispatch=Fb.bind(null,Ct,e),[t.memoizedState,e]}function wl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ct.updateQueue,t===null?(t={lastEffect:null,stores:null},Ct.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function B8(){return Zn().memoizedState}function au(e,t,n,r){var o=Cr();Ct.flags|=e,o.memoizedState=wl(1|t,n,void 0,r===void 0?null:r)}function Rd(e,t,n,r){var o=Zn();r=r===void 0?null:r;var i=void 0;if($t!==null){var s=$t.memoizedState;if(i=s.destroy,r!==null&&N1(r,s.deps)){o.memoizedState=wl(t,n,i,r);return}}Ct.flags|=e,o.memoizedState=wl(1|t,n,i,r)}function x2(e,t){return au(8390656,8,e,t)}function B1(e,t){return Rd(2048,8,e,t)}function W8(e,t){return Rd(4,2,e,t)}function H8(e,t){return Rd(4,4,e,t)}function U8(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Y8(e,t,n){return n=n!=null?n.concat([e]):null,Rd(4,4,U8.bind(null,t,e),n)}function W1(){}function G8(e,t){var n=Zn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&N1(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function q8(e,t){var n=Zn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&N1(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function K8(e,t,n){return Si&21?(pr(n,t)||(n=J5(),Ct.lanes|=n,ki|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,gn=!0),e.memoizedState=n)}function Ib(e,t){var n=nt;nt=n!==0&&4>n?n:4,e(!0);var r=Op.transition;Op.transition={};try{e(!1),t()}finally{nt=n,Op.transition=r}}function Z8(){return Zn().memoizedState}function $b(e,t,n){var r=Lo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},X8(e))J8(t,n);else if(n=T8(e,t,n,r),n!==null){var o=cn();fr(n,e,r,o),Q8(n,t,r)}}function Fb(e,t,n){var r=Lo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(X8(e))J8(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,pr(a,s)){var l=t.interleaved;l===null?(o.next=o,$1(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=T8(e,t,o,r),n!==null&&(o=cn(),fr(n,e,r,o),Q8(n,t,r))}}function X8(e){var t=e.alternate;return e===Ct||t!==null&&t===Ct}function J8(e,t){Ya=Uu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Q8(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,C1(e,n)}}var Yu={readContext:Kn,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useInsertionEffect:Jt,useLayoutEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useMutableSource:Jt,useSyncExternalStore:Jt,useId:Jt,unstable_isNewReconciler:!1},Ab={readContext:Kn,useCallback:function(e,t){return Cr().memoizedState=[e,t===void 0?null:t],e},useContext:Kn,useEffect:x2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,au(4194308,4,U8.bind(null,t,e),n)},useLayoutEffect:function(e,t){return au(4194308,4,e,t)},useInsertionEffect:function(e,t){return au(4,2,e,t)},useMemo:function(e,t){var n=Cr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cr();return t=n!==void 0?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=$b.bind(null,Ct,e),[r.memoizedState,e]},useRef:function(e){var t=Cr();return e={current:e},t.memoizedState=e},useState:v2,useDebugValue:W1,useDeferredValue:function(e){return Cr().memoizedState=e},useTransition:function(){var e=v2(!1),t=e[0];return e=Ib.bind(null,e[1]),Cr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ct,o=Cr();if(yt){if(n===void 0)throw Error(ie(407));n=n()}else{if(n=t(),Bt===null)throw Error(ie(349));Si&30||L8(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,x2(N8.bind(null,r,i,e),[e]),r.flags|=2048,wl(9,j8.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Cr(),t=Bt.identifierPrefix;if(yt){var n=Zr,r=Kr;n=(r&~(1<<32-dr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ob++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Lb={readContext:Kn,useCallback:G8,useContext:Kn,useEffect:B1,useImperativeHandle:Y8,useInsertionEffect:W8,useLayoutEffect:H8,useMemo:q8,useReducer:Ip,useRef:B8,useState:function(){return Ip(bl)},useDebugValue:W1,useDeferredValue:function(e){var t=Zn();return K8(t,$t.memoizedState,e)},useTransition:function(){var e=Ip(bl)[0],t=Zn().memoizedState;return[e,t]},useMutableSource:F8,useSyncExternalStore:A8,useId:Z8,unstable_isNewReconciler:!1},jb={readContext:Kn,useCallback:G8,useContext:Kn,useEffect:B1,useImperativeHandle:Y8,useInsertionEffect:W8,useLayoutEffect:H8,useMemo:q8,useReducer:$p,useRef:B8,useState:function(){return $p(bl)},useDebugValue:W1,useDeferredValue:function(e){var t=Zn();return $t===null?t.memoizedState=e:K8(t,$t.memoizedState,e)},useTransition:function(){var e=$p(bl)[0],t=Zn().memoizedState;return[e,t]},useMutableSource:F8,useSyncExternalStore:A8,useId:Z8,unstable_isNewReconciler:!1};function Fs(e,t){try{var n="",r=t;do n+=fC(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Fp(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function t0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Nb=typeof WeakMap=="function"?WeakMap:Map;function e3(e,t,n){n=eo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qu||(qu=!0,d0=r),t0(e,t)},n}function t3(e,t,n){n=eo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){t0(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){t0(e,t),typeof r!="function"&&(Ao===null?Ao=new Set([this]):Ao.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function C2(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nb;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Qb.bind(null,e,t,n),t.then(e,e))}function b2(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function w2(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=eo(-1,1),t.tag=2,Fo(n,t,1))),n.lanes|=1),e)}var Vb=po.ReactCurrentOwner,gn=!1;function ln(e,t,n,r){t.child=e===null?I8(t,null,n,r):Is(t,e.child,n,r)}function S2(e,t,n,r,o){n=n.render;var i=t.ref;return bs(t,o),r=V1(e,t,n,r,i,o),n=z1(),e!==null&&!gn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,lo(e,t,o)):(yt&&n&&T1(t),t.flags|=1,ln(e,t,r,o),t.child)}function k2(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!X1(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,n3(e,t,i,r,o)):(e=du(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:hl,n(s,r)&&e.ref===t.ref)return lo(e,t,o)}return t.flags|=1,e=jo(i,r),e.ref=t.ref,e.return=t,t.child=e}function n3(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(hl(i,r)&&e.ref===t.ref)if(gn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(gn=!0);else return t.lanes=e.lanes,lo(e,t,o)}return n0(e,t,n,r,o)}function r3(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},lt(ps,En),En|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,lt(ps,En),En|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,lt(ps,En),En|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,lt(ps,En),En|=r;return ln(e,t,o,n),t.child}function o3(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function n0(e,t,n,r,o){var i=vn(n)?bi:on.current;return i=_s(t,i),bs(t,o),n=V1(e,t,n,r,i,o),r=z1(),e!==null&&!gn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,lo(e,t,o)):(yt&&r&&T1(t),t.flags|=1,ln(e,t,n,o),t.child)}function E2(e,t,n,r,o){if(vn(n)){var i=!0;ju(t)}else i=!1;if(bs(t,o),t.stateNode===null)lu(e,t),_8(t,n,r),e0(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=Kn(c):(c=vn(n)?bi:on.current,c=_s(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&g2(t,s,r,c),So=!1;var p=t.memoizedState;s.state=p,Wu(t,r,s,o),l=t.memoizedState,a!==r||p!==l||yn.current||So?(typeof u=="function"&&(Qh(t,n,u,r),l=t.memoizedState),(a=So||m2(t,n,a,r,p,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,R8(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:ir(t.type,a),s.props=c,d=t.pendingProps,p=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Kn(l):(l=vn(n)?bi:on.current,l=_s(t,l));var x=n.getDerivedStateFromProps;(u=typeof x=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||p!==l)&&g2(t,s,r,l),So=!1,p=t.memoizedState,s.state=p,Wu(t,r,s,o);var g=t.memoizedState;a!==d||p!==g||yn.current||So?(typeof x=="function"&&(Qh(t,n,x,r),g=t.memoizedState),(c=So||m2(t,n,c,r,p,g,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return r0(e,t,n,r,i,o)}function r0(e,t,n,r,o,i){o3(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&u2(t,n,!1),lo(e,t,i);r=t.stateNode,Vb.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Is(t,e.child,null,i),t.child=Is(t,null,a,i)):ln(e,t,a,i),t.memoizedState=r.state,o&&u2(t,n,!0),t.child}function i3(e){var t=e.stateNode;t.pendingContext?c2(e,t.pendingContext,t.pendingContext!==t.context):t.context&&c2(e,t.context,!1),A1(e,t.containerInfo)}function P2(e,t,n,r,o){return Os(),D1(o),t.flags|=256,ln(e,t,n,r),t.child}var o0={dehydrated:null,treeContext:null,retryLane:0};function i0(e){return{baseLanes:e,cachePool:null,transitions:null}}function s3(e,t,n){var r=t.pendingProps,o=vt.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),lt(vt,o&1),e===null)return Xh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Od(s,r,0,null),e=gi(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=i0(n),t.memoizedState=o0,e):H1(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return zb(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=jo(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=jo(a,i):(i=gi(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?i0(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=o0,r}return i=e.child,e=i.sibling,r=jo(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function H1(e,t){return t=Od({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Mc(e,t,n,r){return r!==null&&D1(r),Is(t,e.child,null,n),e=H1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zb(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Fp(Error(ie(422))),Mc(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Od({mode:"visible",children:r.children},o,0,null),i=gi(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Is(t,e.child,null,s),t.child.memoizedState=i0(s),t.memoizedState=o0,i);if(!(t.mode&1))return Mc(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(ie(419)),r=Fp(i,r,void 0),Mc(e,t,s,r)}if(a=(s&e.childLanes)!==0,gn||a){if(r=Bt,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,ao(e,o),fr(r,e,o,-1))}return Z1(),r=Fp(Error(ie(421))),Mc(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=ew.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Mn=$o(o.nextSibling),Tn=t,yt=!0,ar=null,e!==null&&(zn[Bn++]=Kr,zn[Bn++]=Zr,zn[Bn++]=wi,Kr=e.id,Zr=e.overflow,wi=t),t=H1(t,r.children),t.flags|=4096,t)}function M2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Jh(e.return,t,n)}function Ap(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function a3(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ln(e,t,r.children,n),r=vt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&M2(e,n,t);else if(e.tag===19)M2(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(lt(vt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Hu(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ap(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Hu(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ap(t,!0,n,null,i);break;case"together":Ap(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ki|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ie(153));if(t.child!==null){for(e=t.child,n=jo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Bb(e,t,n){switch(t.tag){case 3:i3(t),Os();break;case 5:$8(t);break;case 1:vn(t.type)&&ju(t);break;case 4:A1(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;lt(zu,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(lt(vt,vt.current&1),t.flags|=128,null):n&t.child.childLanes?s3(e,t,n):(lt(vt,vt.current&1),e=lo(e,t,n),e!==null?e.sibling:null);lt(vt,vt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return a3(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),lt(vt,vt.current),r)break;return null;case 22:case 23:return t.lanes=0,r3(e,t,n)}return lo(e,t,n)}var l3,s0,c3,u3;l3=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};s0=function(){};c3=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,fi(Rr.current);var i=null;switch(n){case"input":o=Th(e,o),r=Th(e,r),i=[];break;case"select":o=bt({},o,{value:void 0}),r=bt({},r,{value:void 0}),i=[];break;case"textarea":o=_h(e,o),r=_h(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Au)}Ih(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(al.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(al.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&dt("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};u3=function(e,t,n,r){n!==r&&(t.flags|=4)};function ha(e,t){if(!yt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wb(e,t,n){var r=t.pendingProps;switch(R1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(t),null;case 1:return vn(t.type)&&Lu(),Qt(t),null;case 3:return r=t.stateNode,$s(),ft(yn),ft(on),j1(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ec(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ar!==null&&(h0(ar),ar=null))),s0(e,t),Qt(t),null;case 5:L1(t);var o=fi(xl.current);if(n=t.type,e!==null&&t.stateNode!=null)c3(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ie(166));return Qt(t),null}if(e=fi(Rr.current),Ec(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[kr]=t,r[yl]=i,e=(t.mode&1)!==0,n){case"dialog":dt("cancel",r),dt("close",r);break;case"iframe":case"object":case"embed":dt("load",r);break;case"video":case"audio":for(o=0;o<ja.length;o++)dt(ja[o],r);break;case"source":dt("error",r);break;case"img":case"image":case"link":dt("error",r),dt("load",r);break;case"details":dt("toggle",r);break;case"input":Ag(r,i),dt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},dt("invalid",r);break;case"textarea":jg(r,i),dt("invalid",r)}Ih(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&kc(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&kc(r.textContent,a,e),o=["children",""+a]):al.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&dt("scroll",r)}switch(n){case"input":gc(r),Lg(r,i,!0);break;case"textarea":gc(r),Ng(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Au)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=L5(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[kr]=t,e[yl]=r,l3(e,t,!1,!1),t.stateNode=e;e:{switch(s=$h(n,r),n){case"dialog":dt("cancel",e),dt("close",e),o=r;break;case"iframe":case"object":case"embed":dt("load",e),o=r;break;case"video":case"audio":for(o=0;o<ja.length;o++)dt(ja[o],e);o=r;break;case"source":dt("error",e),o=r;break;case"img":case"image":case"link":dt("error",e),dt("load",e),o=r;break;case"details":dt("toggle",e),o=r;break;case"input":Ag(e,r),o=Th(e,r),dt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=bt({},r,{value:void 0}),dt("invalid",e);break;case"textarea":jg(e,r),o=_h(e,r),dt("invalid",e);break;default:o=r}Ih(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?V5(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&j5(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ll(e,l):typeof l=="number"&&ll(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(al.hasOwnProperty(i)?l!=null&&i==="onScroll"&&dt("scroll",e):l!=null&&h1(e,i,l,s))}switch(n){case"input":gc(e),Lg(e,r,!1);break;case"textarea":gc(e),Ng(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Vo(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?ys(e,!!r.multiple,i,!1):r.defaultValue!=null&&ys(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Au)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Qt(t),null;case 6:if(e&&t.stateNode!=null)u3(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ie(166));if(n=fi(xl.current),fi(Rr.current),Ec(t)){if(r=t.stateNode,n=t.memoizedProps,r[kr]=t,(i=r.nodeValue!==n)&&(e=Tn,e!==null))switch(e.tag){case 3:kc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&kc(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[kr]=t,t.stateNode=r}return Qt(t),null;case 13:if(ft(vt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(yt&&Mn!==null&&t.mode&1&&!(t.flags&128))M8(),Os(),t.flags|=98560,i=!1;else if(i=Ec(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(ie(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(ie(317));i[kr]=t}else Os(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Qt(t),i=!1}else ar!==null&&(h0(ar),ar=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||vt.current&1?Ft===0&&(Ft=3):Z1())),t.updateQueue!==null&&(t.flags|=4),Qt(t),null);case 4:return $s(),s0(e,t),e===null&&ml(t.stateNode.containerInfo),Qt(t),null;case 10:return I1(t.type._context),Qt(t),null;case 17:return vn(t.type)&&Lu(),Qt(t),null;case 19:if(ft(vt),i=t.memoizedState,i===null)return Qt(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)ha(i,!1);else{if(Ft!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Hu(e),s!==null){for(t.flags|=128,ha(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return lt(vt,vt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Tt()>As&&(t.flags|=128,r=!0,ha(i,!1),t.lanes=4194304)}else{if(!r)if(e=Hu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ha(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!yt)return Qt(t),null}else 2*Tt()-i.renderingStartTime>As&&n!==1073741824&&(t.flags|=128,r=!0,ha(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Tt(),t.sibling=null,n=vt.current,lt(vt,r?n&1|2:n&1),t):(Qt(t),null);case 22:case 23:return K1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?En&1073741824&&(Qt(t),t.subtreeFlags&6&&(t.flags|=8192)):Qt(t),null;case 24:return null;case 25:return null}throw Error(ie(156,t.tag))}function Hb(e,t){switch(R1(t),t.tag){case 1:return vn(t.type)&&Lu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $s(),ft(yn),ft(on),j1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return L1(t),null;case 13:if(ft(vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ie(340));Os()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ft(vt),null;case 4:return $s(),null;case 10:return I1(t.type._context),null;case 22:case 23:return K1(),null;case 24:return null;default:return null}}var Tc=!1,tn=!1,Ub=typeof WeakSet=="function"?WeakSet:Set,be=null;function fs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Et(e,t,r)}else n.current=null}function a0(e,t,n){try{n()}catch(r){Et(e,t,r)}}var T2=!1;function Yb(e,t){if(Hh=Iu,e=h8(),M1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var x;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(x=d.firstChild)!==null;)p=d,d=x;for(;;){if(d===e)break t;if(p===n&&++c===o&&(a=s),p===i&&++u===r&&(l=s),(x=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=x}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uh={focusedElem:e,selectionRange:n},Iu=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var h=g.memoizedProps,E=g.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?h:ir(t.type,h),E);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ie(163))}}catch(w){Et(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,be=e;break}be=t.return}return g=T2,T2=!1,g}function Ga(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&a0(t,n,i)}o=o.next}while(o!==r)}}function Dd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==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 l0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function d3(e){var t=e.alternate;t!==null&&(e.alternate=null,d3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kr],delete t[yl],delete t[qh],delete t[Tb],delete t[Rb])),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 f3(e){return e.tag===5||e.tag===3||e.tag===4}function R2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||f3(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function c0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Au));else if(r!==4&&(e=e.child,e!==null))for(c0(e,t,n),e=e.sibling;e!==null;)c0(e,t,n),e=e.sibling}function u0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(u0(e,t,n),e=e.sibling;e!==null;)u0(e,t,n),e=e.sibling}var Ut=null,sr=!1;function xo(e,t,n){for(n=n.child;n!==null;)p3(e,t,n),n=n.sibling}function p3(e,t,n){if(Tr&&typeof Tr.onCommitFiberUnmount=="function")try{Tr.onCommitFiberUnmount(wd,n)}catch{}switch(n.tag){case 5:tn||fs(n,t);case 6:var r=Ut,o=sr;Ut=null,xo(e,t,n),Ut=r,sr=o,Ut!==null&&(sr?(e=Ut,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ut.removeChild(n.stateNode));break;case 18:Ut!==null&&(sr?(e=Ut,n=n.stateNode,e.nodeType===8?Rp(e.parentNode,n):e.nodeType===1&&Rp(e,n),fl(e)):Rp(Ut,n.stateNode));break;case 4:r=Ut,o=sr,Ut=n.stateNode.containerInfo,sr=!0,xo(e,t,n),Ut=r,sr=o;break;case 0:case 11:case 14:case 15:if(!tn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&a0(n,t,s),o=o.next}while(o!==r)}xo(e,t,n);break;case 1:if(!tn&&(fs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Et(n,t,a)}xo(e,t,n);break;case 21:xo(e,t,n);break;case 22:n.mode&1?(tn=(r=tn)||n.memoizedState!==null,xo(e,t,n),tn=r):xo(e,t,n);break;default:xo(e,t,n)}}function D2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ub),t.forEach(function(r){var o=tw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function or(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Ut=a.stateNode,sr=!1;break e;case 3:Ut=a.stateNode.containerInfo,sr=!0;break e;case 4:Ut=a.stateNode.containerInfo,sr=!0;break e}a=a.return}if(Ut===null)throw Error(ie(160));p3(i,s,o),Ut=null,sr=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Et(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)h3(t,e),t=t.sibling}function h3(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(or(t,e),xr(e),r&4){try{Ga(3,e,e.return),Dd(3,e)}catch(h){Et(e,e.return,h)}try{Ga(5,e,e.return)}catch(h){Et(e,e.return,h)}}break;case 1:or(t,e),xr(e),r&512&&n!==null&&fs(n,n.return);break;case 5:if(or(t,e),xr(e),r&512&&n!==null&&fs(n,n.return),e.flags&32){var o=e.stateNode;try{ll(o,"")}catch(h){Et(e,e.return,h)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&F5(o,i),$h(a,s);var c=$h(a,i);for(s=0;s<l.length;s+=2){var u=l[s],d=l[s+1];u==="style"?V5(o,d):u==="dangerouslySetInnerHTML"?j5(o,d):u==="children"?ll(o,d):h1(o,u,d,c)}switch(a){case"input":Rh(o,i);break;case"textarea":A5(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var x=i.value;x!=null?ys(o,!!i.multiple,x,!1):p!==!!i.multiple&&(i.defaultValue!=null?ys(o,!!i.multiple,i.defaultValue,!0):ys(o,!!i.multiple,i.multiple?[]:"",!1))}o[yl]=i}catch(h){Et(e,e.return,h)}}break;case 6:if(or(t,e),xr(e),r&4){if(e.stateNode===null)throw Error(ie(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(h){Et(e,e.return,h)}}break;case 3:if(or(t,e),xr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{fl(t.containerInfo)}catch(h){Et(e,e.return,h)}break;case 4:or(t,e),xr(e);break;case 13:or(t,e),xr(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(G1=Tt())),r&4&&D2(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(tn=(c=tn)||u,or(t,e),tn=c):or(t,e),xr(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(be=e,u=e.child;u!==null;){for(d=be=u;be!==null;){switch(p=be,x=p.child,p.tag){case 0:case 11:case 14:case 15:Ga(4,p,p.return);break;case 1:fs(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(h){Et(r,n,h)}}break;case 5:fs(p,p.return);break;case 22:if(p.memoizedState!==null){O2(d);continue}}x!==null?(x.return=p,be=x):O2(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=N5("display",s))}catch(h){Et(e,e.return,h)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(h){Et(e,e.return,h)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:or(t,e),xr(e),r&4&&D2(e);break;case 21:break;default:or(t,e),xr(e)}}function xr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(f3(n)){var r=n;break e}n=n.return}throw Error(ie(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ll(o,""),r.flags&=-33);var i=R2(e);u0(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=R2(e);c0(e,a,s);break;default:throw Error(ie(161))}}catch(l){Et(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gb(e,t,n){be=e,m3(e)}function m3(e,t,n){for(var r=(e.mode&1)!==0;be!==null;){var o=be,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Tc;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||tn;a=Tc;var c=tn;if(Tc=s,(tn=l)&&!c)for(be=o;be!==null;)s=be,l=s.child,s.tag===22&&s.memoizedState!==null?I2(o):l!==null?(l.return=s,be=l):I2(o);for(;i!==null;)be=i,m3(i),i=i.sibling;be=o,Tc=a,tn=c}_2(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,be=i):_2(e)}}function _2(e){for(;be!==null;){var t=be;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:tn||Dd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!tn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ir(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&h2(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}h2(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&fl(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ie(163))}tn||t.flags&512&&l0(t)}catch(p){Et(t,t.return,p)}}if(t===e){be=null;break}if(n=t.sibling,n!==null){n.return=t.return,be=n;break}be=t.return}}function O2(e){for(;be!==null;){var t=be;if(t===e){be=null;break}var n=t.sibling;if(n!==null){n.return=t.return,be=n;break}be=t.return}}function I2(e){for(;be!==null;){var t=be;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Dd(4,t)}catch(l){Et(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Et(t,o,l)}}var i=t.return;try{l0(t)}catch(l){Et(t,i,l)}break;case 5:var s=t.return;try{l0(t)}catch(l){Et(t,s,l)}}}catch(l){Et(t,t.return,l)}if(t===e){be=null;break}var a=t.sibling;if(a!==null){a.return=t.return,be=a;break}be=t.return}}var qb=Math.ceil,Gu=po.ReactCurrentDispatcher,U1=po.ReactCurrentOwner,Yn=po.ReactCurrentBatchConfig,Ge=0,Bt=null,It=null,Gt=0,En=0,ps=Yo(0),Ft=0,Sl=null,ki=0,_d=0,Y1=0,qa=null,hn=null,G1=0,As=1/0,Hr=null,qu=!1,d0=null,Ao=null,Rc=!1,Mo=null,Ku=0,Ka=0,f0=null,cu=-1,uu=0;function cn(){return Ge&6?Tt():cu!==-1?cu:cu=Tt()}function Lo(e){return e.mode&1?Ge&2&&Gt!==0?Gt&-Gt:_b.transition!==null?(uu===0&&(uu=J5()),uu):(e=nt,e!==0||(e=window.event,e=e===void 0?16:i8(e.type)),e):1}function fr(e,t,n,r){if(50<Ka)throw Ka=0,f0=null,Error(ie(185));Bl(e,n,r),(!(Ge&2)||e!==Bt)&&(e===Bt&&(!(Ge&2)&&(_d|=n),Ft===4&&Eo(e,Gt)),xn(e,r),n===1&&Ge===0&&!(t.mode&1)&&(As=Tt()+500,Md&&Go()))}function xn(e,t){var n=e.callbackNode;_C(e,t);var r=Ou(e,e===Bt?Gt:0);if(r===0)n!==null&&Bg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Bg(n),t===1)e.tag===0?Db($2.bind(null,e)):k8($2.bind(null,e)),Pb(function(){!(Ge&6)&&Go()}),n=null;else{switch(Q5(r)){case 1:n=x1;break;case 4:n=Z5;break;case 16:n=_u;break;case 536870912:n=X5;break;default:n=_u}n=S3(n,g3.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function g3(e,t){if(cu=-1,uu=0,Ge&6)throw Error(ie(327));var n=e.callbackNode;if(ws()&&e.callbackNode!==n)return null;var r=Ou(e,e===Bt?Gt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Zu(e,r);else{t=r;var o=Ge;Ge|=2;var i=v3();(Bt!==e||Gt!==t)&&(Hr=null,As=Tt()+500,mi(e,t));do try{Xb();break}catch(a){y3(e,a)}while(!0);O1(),Gu.current=i,Ge=o,It!==null?t=0:(Bt=null,Gt=0,t=Ft)}if(t!==0){if(t===2&&(o=Nh(e),o!==0&&(r=o,t=p0(e,o))),t===1)throw n=Sl,mi(e,0),Eo(e,r),xn(e,Tt()),n;if(t===6)Eo(e,r);else{if(o=e.current.alternate,!(r&30)&&!Kb(o)&&(t=Zu(e,r),t===2&&(i=Nh(e),i!==0&&(r=i,t=p0(e,i))),t===1))throw n=Sl,mi(e,0),Eo(e,r),xn(e,Tt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ie(345));case 2:ri(e,hn,Hr);break;case 3:if(Eo(e,r),(r&130023424)===r&&(t=G1+500-Tt(),10<t)){if(Ou(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){cn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Gh(ri.bind(null,e,hn,Hr),t);break}ri(e,hn,Hr);break;case 4:if(Eo(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-dr(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Tt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qb(r/1960))-r,10<r){e.timeoutHandle=Gh(ri.bind(null,e,hn,Hr),r);break}ri(e,hn,Hr);break;case 5:ri(e,hn,Hr);break;default:throw Error(ie(329))}}}return xn(e,Tt()),e.callbackNode===n?g3.bind(null,e):null}function p0(e,t){var n=qa;return e.current.memoizedState.isDehydrated&&(mi(e,t).flags|=256),e=Zu(e,t),e!==2&&(t=hn,hn=n,t!==null&&h0(t)),e}function h0(e){hn===null?hn=e:hn.push.apply(hn,e)}function Kb(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!pr(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Eo(e,t){for(t&=~Y1,t&=~_d,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-dr(t),r=1<<n;e[n]=-1,t&=~r}}function $2(e){if(Ge&6)throw Error(ie(327));ws();var t=Ou(e,0);if(!(t&1))return xn(e,Tt()),null;var n=Zu(e,t);if(e.tag!==0&&n===2){var r=Nh(e);r!==0&&(t=r,n=p0(e,r))}if(n===1)throw n=Sl,mi(e,0),Eo(e,t),xn(e,Tt()),n;if(n===6)throw Error(ie(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ri(e,hn,Hr),xn(e,Tt()),null}function q1(e,t){var n=Ge;Ge|=1;try{return e(t)}finally{Ge=n,Ge===0&&(As=Tt()+500,Md&&Go())}}function Ei(e){Mo!==null&&Mo.tag===0&&!(Ge&6)&&ws();var t=Ge;Ge|=1;var n=Yn.transition,r=nt;try{if(Yn.transition=null,nt=1,e)return e()}finally{nt=r,Yn.transition=n,Ge=t,!(Ge&6)&&Go()}}function K1(){En=ps.current,ft(ps)}function mi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Eb(n)),It!==null)for(n=It.return;n!==null;){var r=n;switch(R1(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Lu();break;case 3:$s(),ft(yn),ft(on),j1();break;case 5:L1(r);break;case 4:$s();break;case 13:ft(vt);break;case 19:ft(vt);break;case 10:I1(r.type._context);break;case 22:case 23:K1()}n=n.return}if(Bt=e,It=e=jo(e.current,null),Gt=En=t,Ft=0,Sl=null,Y1=_d=ki=0,hn=qa=null,di!==null){for(t=0;t<di.length;t++)if(n=di[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}di=null}return e}function y3(e,t){do{var n=It;try{if(O1(),su.current=Yu,Uu){for(var r=Ct.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Uu=!1}if(Si=0,Vt=$t=Ct=null,Ya=!1,Cl=0,U1.current=null,n===null||n.return===null){Ft=1,Sl=t,It=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=Gt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var x=b2(s);if(x!==null){x.flags&=-257,w2(x,s,a,i,t),x.mode&1&&C2(i,c,t),t=x,l=c;var g=t.updateQueue;if(g===null){var h=new Set;h.add(l),t.updateQueue=h}else g.add(l);break e}else{if(!(t&1)){C2(i,c,t),Z1();break e}l=Error(ie(426))}}else if(yt&&a.mode&1){var E=b2(s);if(E!==null){!(E.flags&65536)&&(E.flags|=256),w2(E,s,a,i,t),D1(Fs(l,a));break e}}i=l=Fs(l,a),Ft!==4&&(Ft=2),qa===null?qa=[i]:qa.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=e3(i,l,t);p2(i,m);break e;case 1:a=l;var y=i.type,C=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Ao===null||!Ao.has(C)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=t3(i,a,t);p2(i,w);break e}}i=i.return}while(i!==null)}C3(n)}catch(S){t=S,It===n&&n!==null&&(It=n=n.return);continue}break}while(!0)}function v3(){var e=Gu.current;return Gu.current=Yu,e===null?Yu:e}function Z1(){(Ft===0||Ft===3||Ft===2)&&(Ft=4),Bt===null||!(ki&268435455)&&!(_d&268435455)||Eo(Bt,Gt)}function Zu(e,t){var n=Ge;Ge|=2;var r=v3();(Bt!==e||Gt!==t)&&(Hr=null,mi(e,t));do try{Zb();break}catch(o){y3(e,o)}while(!0);if(O1(),Ge=n,Gu.current=r,It!==null)throw Error(ie(261));return Bt=null,Gt=0,Ft}function Zb(){for(;It!==null;)x3(It)}function Xb(){for(;It!==null&&!wC();)x3(It)}function x3(e){var t=w3(e.alternate,e,En);e.memoizedProps=e.pendingProps,t===null?C3(e):It=t,U1.current=null}function C3(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Hb(n,t),n!==null){n.flags&=32767,It=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ft=6,It=null;return}}else if(n=Wb(n,t,En),n!==null){It=n;return}if(t=t.sibling,t!==null){It=t;return}It=t=e}while(t!==null);Ft===0&&(Ft=5)}function ri(e,t,n){var r=nt,o=Yn.transition;try{Yn.transition=null,nt=1,Jb(e,t,n,r)}finally{Yn.transition=o,nt=r}return null}function Jb(e,t,n,r){do ws();while(Mo!==null);if(Ge&6)throw Error(ie(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ie(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(OC(e,i),e===Bt&&(It=Bt=null,Gt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Rc||(Rc=!0,S3(_u,function(){return ws(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Yn.transition,Yn.transition=null;var s=nt;nt=1;var a=Ge;Ge|=4,U1.current=null,Yb(e,n),h3(n,e),vb(Uh),Iu=!!Hh,Uh=Hh=null,e.current=n,Gb(n),SC(),Ge=a,nt=s,Yn.transition=i}else e.current=n;if(Rc&&(Rc=!1,Mo=e,Ku=o),i=e.pendingLanes,i===0&&(Ao=null),PC(n.stateNode),xn(e,Tt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(qu)throw qu=!1,e=d0,d0=null,e;return Ku&1&&e.tag!==0&&ws(),i=e.pendingLanes,i&1?e===f0?Ka++:(Ka=0,f0=e):Ka=0,Go(),null}function ws(){if(Mo!==null){var e=Q5(Ku),t=Yn.transition,n=nt;try{if(Yn.transition=null,nt=16>e?16:e,Mo===null)var r=!1;else{if(e=Mo,Mo=null,Ku=0,Ge&6)throw Error(ie(331));var o=Ge;for(Ge|=4,be=e.current;be!==null;){var i=be,s=i.child;if(be.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(be=c;be!==null;){var u=be;switch(u.tag){case 0:case 11:case 15:Ga(8,u,i)}var d=u.child;if(d!==null)d.return=u,be=d;else for(;be!==null;){u=be;var p=u.sibling,x=u.return;if(d3(u),u===c){be=null;break}if(p!==null){p.return=x,be=p;break}be=x}}}var g=i.alternate;if(g!==null){var h=g.child;if(h!==null){g.child=null;do{var E=h.sibling;h.sibling=null,h=E}while(h!==null)}}be=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,be=s;else e:for(;be!==null;){if(i=be,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ga(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,be=m;break e}be=i.return}}var y=e.current;for(be=y;be!==null;){s=be;var C=s.child;if(s.subtreeFlags&2064&&C!==null)C.return=s,be=C;else e:for(s=y;be!==null;){if(a=be,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Dd(9,a)}}catch(S){Et(a,a.return,S)}if(a===s){be=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,be=w;break e}be=a.return}}if(Ge=o,Go(),Tr&&typeof Tr.onPostCommitFiberRoot=="function")try{Tr.onPostCommitFiberRoot(wd,e)}catch{}r=!0}return r}finally{nt=n,Yn.transition=t}}return!1}function F2(e,t,n){t=Fs(n,t),t=e3(e,t,1),e=Fo(e,t,1),t=cn(),e!==null&&(Bl(e,1,t),xn(e,t))}function Et(e,t,n){if(e.tag===3)F2(e,e,n);else for(;t!==null;){if(t.tag===3){F2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ao===null||!Ao.has(r))){e=Fs(n,e),e=t3(t,e,1),t=Fo(t,e,1),e=cn(),t!==null&&(Bl(t,1,e),xn(t,e));break}}t=t.return}}function Qb(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=cn(),e.pingedLanes|=e.suspendedLanes&n,Bt===e&&(Gt&n)===n&&(Ft===4||Ft===3&&(Gt&130023424)===Gt&&500>Tt()-G1?mi(e,0):Y1|=n),xn(e,t)}function b3(e,t){t===0&&(e.mode&1?(t=xc,xc<<=1,!(xc&130023424)&&(xc=4194304)):t=1);var n=cn();e=ao(e,t),e!==null&&(Bl(e,t,n),xn(e,n))}function ew(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),b3(e,n)}function tw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ie(314))}r!==null&&r.delete(t),b3(e,n)}var w3;w3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yn.current)gn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gn=!1,Bb(e,t,n);gn=!!(e.flags&131072)}else gn=!1,yt&&t.flags&1048576&&E8(t,Vu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;lu(e,t),e=t.pendingProps;var o=_s(t,on.current);bs(t,n),o=V1(null,t,r,e,o,n);var i=z1();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vn(r)?(i=!0,ju(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,F1(t),o.updater=Td,t.stateNode=o,o._reactInternals=t,e0(t,r,e,n),t=r0(null,t,r,!0,i,n)):(t.tag=0,yt&&i&&T1(t),ln(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(lu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=rw(r),e=ir(r,e),o){case 0:t=n0(null,t,r,e,n);break e;case 1:t=E2(null,t,r,e,n);break e;case 11:t=S2(null,t,r,e,n);break e;case 14:t=k2(null,t,r,ir(r.type,e),n);break e}throw Error(ie(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ir(r,o),n0(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ir(r,o),E2(e,t,r,o,n);case 3:e:{if(i3(t),e===null)throw Error(ie(387));r=t.pendingProps,i=t.memoizedState,o=i.element,R8(e,t),Wu(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Fs(Error(ie(423)),t),t=P2(e,t,r,n,o);break e}else if(r!==o){o=Fs(Error(ie(424)),t),t=P2(e,t,r,n,o);break e}else for(Mn=$o(t.stateNode.containerInfo.firstChild),Tn=t,yt=!0,ar=null,n=I8(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Os(),r===o){t=lo(e,t,n);break e}ln(e,t,r,n)}t=t.child}return t;case 5:return $8(t),e===null&&Xh(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yh(r,o)?s=null:i!==null&&Yh(r,i)&&(t.flags|=32),o3(e,t),ln(e,t,s,n),t.child;case 6:return e===null&&Xh(t),null;case 13:return s3(e,t,n);case 4:return A1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Is(t,null,r,n):ln(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ir(r,o),S2(e,t,r,o,n);case 7:return ln(e,t,t.pendingProps,n),t.child;case 8:return ln(e,t,t.pendingProps.children,n),t.child;case 12:return ln(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,lt(zu,r._currentValue),r._currentValue=s,i!==null)if(pr(i.value,s)){if(i.children===o.children&&!yn.current){t=lo(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=eo(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Jh(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(ie(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Jh(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ln(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,bs(t,n),o=Kn(o),r=r(o),t.flags|=1,ln(e,t,r,n),t.child;case 14:return r=t.type,o=ir(r,t.pendingProps),o=ir(r.type,o),k2(e,t,r,o,n);case 15:return n3(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ir(r,o),lu(e,t),t.tag=1,vn(r)?(e=!0,ju(t)):e=!1,bs(t,n),_8(t,r,o),e0(t,r,o,n),r0(null,t,r,!0,e,n);case 19:return a3(e,t,n);case 22:return r3(e,t,n)}throw Error(ie(156,t.tag))};function S3(e,t){return K5(e,t)}function nw(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 Un(e,t,n,r){return new nw(e,t,n,r)}function X1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rw(e){if(typeof e=="function")return X1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===g1)return 11;if(e===y1)return 14}return 2}function jo(e,t){var n=e.alternate;return n===null?(n=Un(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?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,o,i){var s=2;if(r=e,typeof e=="function")X1(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case rs:return gi(n.children,o,i,t);case m1:s=8,o|=8;break;case kh:return e=Un(12,n,t,o|2),e.elementType=kh,e.lanes=i,e;case Eh:return e=Un(13,n,t,o),e.elementType=Eh,e.lanes=i,e;case Ph:return e=Un(19,n,t,o),e.elementType=Ph,e.lanes=i,e;case O5:return Od(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D5:s=10;break e;case _5:s=9;break e;case g1:s=11;break e;case y1:s=14;break e;case wo:s=16,r=null;break e}throw Error(ie(130,e==null?e:typeof e,""))}return t=Un(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function gi(e,t,n,r){return e=Un(7,e,r,t),e.lanes=n,e}function Od(e,t,n,r){return e=Un(22,e,r,t),e.elementType=O5,e.lanes=n,e.stateNode={isHidden:!1},e}function Lp(e,t,n){return e=Un(6,e,null,t),e.lanes=n,e}function jp(e,t,n){return t=Un(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ow(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vp(0),this.expirationTimes=vp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function J1(e,t,n,r,o,i,s,a,l){return e=new ow(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Un(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},F1(i),e}function iw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ns,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function k3(e){if(!e)return zo;e=e._reactInternals;e:{if($i(e)!==e||e.tag!==1)throw Error(ie(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(vn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ie(171))}if(e.tag===1){var n=e.type;if(vn(n))return S8(e,n,t)}return t}function E3(e,t,n,r,o,i,s,a,l){return e=J1(n,r,!0,e,o,i,s,a,l),e.context=k3(null),n=e.current,r=cn(),o=Lo(n),i=eo(r,o),i.callback=t??null,Fo(n,i,o),e.current.lanes=o,Bl(e,o,r),xn(e,r),e}function Id(e,t,n,r){var o=t.current,i=cn(),s=Lo(o);return n=k3(n),t.context===null?t.context=n:t.pendingContext=n,t=eo(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Fo(o,t,s),e!==null&&(fr(e,o,s,i),iu(e,o,s)),s}function Xu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function A2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Q1(e,t){A2(e,t),(e=e.alternate)&&A2(e,t)}function sw(){return null}var P3=typeof reportError=="function"?reportError:function(e){console.error(e)};function em(e){this._internalRoot=e}$d.prototype.render=em.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ie(409));Id(e,t,null,null)};$d.prototype.unmount=em.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ei(function(){Id(null,e,null,null)}),t[so]=null}};function $d(e){this._internalRoot=e}$d.prototype.unstable_scheduleHydration=function(e){if(e){var t=n8();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ko.length&&t!==0&&t<ko[n].priority;n++);ko.splice(n,0,e),n===0&&o8(e)}};function tm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function L2(){}function aw(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var c=Xu(s);i.call(c)}}var s=E3(t,r,e,0,null,!1,!1,"",L2);return e._reactRootContainer=s,e[so]=s.current,ml(e.nodeType===8?e.parentNode:e),Ei(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var c=Xu(l);a.call(c)}}var l=J1(e,0,!1,null,null,!1,!1,"",L2);return e._reactRootContainer=l,e[so]=l.current,ml(e.nodeType===8?e.parentNode:e),Ei(function(){Id(t,l,n,r)}),l}function Ad(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=Xu(s);a.call(l)}}Id(t,s,e,o)}else s=aw(n,t,e,o,r);return Xu(s)}e8=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=La(t.pendingLanes);n!==0&&(C1(t,n|1),xn(t,Tt()),!(Ge&6)&&(As=Tt()+500,Go()))}break;case 13:Ei(function(){var r=ao(e,1);if(r!==null){var o=cn();fr(r,e,1,o)}}),Q1(e,1)}};b1=function(e){if(e.tag===13){var t=ao(e,134217728);if(t!==null){var n=cn();fr(t,e,134217728,n)}Q1(e,134217728)}};t8=function(e){if(e.tag===13){var t=Lo(e),n=ao(e,t);if(n!==null){var r=cn();fr(n,e,t,r)}Q1(e,t)}};n8=function(){return nt};r8=function(e,t){var n=nt;try{return nt=e,t()}finally{nt=n}};Ah=function(e,t,n){switch(t){case"input":if(Rh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Pd(r);if(!o)throw Error(ie(90));$5(r),Rh(r,o)}}}break;case"textarea":A5(e,n);break;case"select":t=n.value,t!=null&&ys(e,!!n.multiple,t,!1)}};W5=q1;H5=Ei;var lw={usingClientEntryPoint:!1,Events:[Hl,as,Pd,z5,B5,q1]},ma={findFiberByHostInstance:ui,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},cw={bundleType:ma.bundleType,version:ma.version,rendererPackageName:ma.rendererPackageName,rendererConfig:ma.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:po.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=G5(e),e===null?null:e.stateNode},findFiberByHostInstance:ma.findFiberByHostInstance||sw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dc.isDisabled&&Dc.supportsFiber)try{wd=Dc.inject(cw),Tr=Dc}catch{}}$n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lw;$n.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!tm(t))throw Error(ie(200));return iw(e,t,null,n)};$n.createRoot=function(e,t){if(!tm(e))throw Error(ie(299));var n=!1,r="",o=P3;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=J1(e,1,!1,null,null,n,!1,r,o),e[so]=t.current,ml(e.nodeType===8?e.parentNode:e),new em(t)};$n.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ie(188)):(e=Object.keys(e).join(","),Error(ie(268,e)));return e=G5(t),e=e===null?null:e.stateNode,e};$n.flushSync=function(e){return Ei(e)};$n.hydrate=function(e,t,n){if(!Fd(t))throw Error(ie(200));return Ad(null,e,t,!0,n)};$n.hydrateRoot=function(e,t,n){if(!tm(e))throw Error(ie(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=P3;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=E3(t,null,e,1,n??null,o,!1,i,s),e[so]=t.current,ml(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new $d(t)};$n.render=function(e,t,n){if(!Fd(t))throw Error(ie(200));return Ad(null,e,t,!1,n)};$n.unmountComponentAtNode=function(e){if(!Fd(e))throw Error(ie(40));return e._reactRootContainer?(Ei(function(){Ad(null,null,e,!1,function(){e._reactRootContainer=null,e[so]=null})}),!0):!1};$n.unstable_batchedUpdates=q1;$n.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fd(n))throw Error(ie(200));if(e==null||e._reactInternals===void 0)throw Error(ie(38));return Ad(e,t,n,!1,r)};$n.version="18.2.0-next-9e3b772b8-20220608";function M3(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(M3)}catch(e){console.error(e)}}M3(),E5.exports=$n;var Yl=E5.exports;const _c=Cd(Yl);var T3,j2=Yl;T3=j2.createRoot,j2.hydrateRoot;function uw(e){const t=e.items.map(r=>{const o=JSON.parse(r.c);return{description:r.desc,id:r.id,page:r.p,required:r.req,title:r.title,type:r.typ,content:o}}),n={fp:e.settings.fp,rep:e.settings.rep,name:e.settings.name,cfg:JSON.parse(e==null?void 0:e.settings.cfg),lim:e.settings.lim,due:e.settings.due,delay:e.settings.delay,pausable:e.settings.pausable};return{cnt:e.cnt,settings:n,questions:t}}function R3(e,t){return function(){return e.apply(t,arguments)}}const{toString:dw}=Object.prototype,{getPrototypeOf:nm}=Object,Ld=(e=>t=>{const n=dw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ar=e=>(e=e.toLowerCase(),t=>Ld(t)===e),jd=e=>t=>typeof t===e,{isArray:Js}=Array,kl=jd("undefined");function fw(e){return e!==null&&!kl(e)&&e.constructor!==null&&!kl(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const D3=Ar("ArrayBuffer");function pw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&D3(e.buffer),t}const hw=jd("string"),Gn=jd("function"),_3=jd("number"),Nd=e=>e!==null&&typeof e=="object",mw=e=>e===!0||e===!1,fu=e=>{if(Ld(e)!=="object")return!1;const t=nm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},gw=Ar("Date"),yw=Ar("File"),vw=Ar("Blob"),xw=Ar("FileList"),Cw=e=>Nd(e)&&Gn(e.pipe),bw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gn(e.append)&&((t=Ld(e))==="formdata"||t==="object"&&Gn(e.toString)&&e.toString()==="[object FormData]"))},ww=Ar("URLSearchParams"),Sw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Js(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function O3(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const I3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$3=e=>!kl(e)&&e!==I3;function m0(){const{caseless:e}=$3(this)&&this||{},t={},n=(r,o)=>{const i=e&&O3(t,o)||o;fu(t[i])&&fu(r)?t[i]=m0(t[i],r):fu(r)?t[i]=m0({},r):Js(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Gl(arguments[r],n);return t}const kw=(e,t,n,{allOwnKeys:r}={})=>(Gl(t,(o,i)=>{n&&Gn(o)?e[i]=R3(o,n):e[i]=o},{allOwnKeys:r}),e),Ew=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Pw=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Mw=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&nm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Tw=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Rw=e=>{if(!e)return null;if(Js(e))return e;let t=e.length;if(!_3(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Dw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&nm(Uint8Array)),_w=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Ow=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Iw=Ar("HTMLFormElement"),$w=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),N2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Fw=Ar("RegExp"),F3=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Gl(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Aw=e=>{F3(e,(t,n)=>{if(Gn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Gn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Lw=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Js(e)?r(e):r(String(e).split(t)),n},jw=()=>{},Nw=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Np="abcdefghijklmnopqrstuvwxyz",V2="0123456789",A3={DIGIT:V2,ALPHA:Np,ALPHA_DIGIT:Np+Np.toUpperCase()+V2},Vw=(e=16,t=A3.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function zw(e){return!!(e&&Gn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bw=e=>{const t=new Array(10),n=(r,o)=>{if(Nd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Js(r)?[]:{};return Gl(r,(s,a)=>{const l=n(s,o+1);!kl(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},Ww=Ar("AsyncFunction"),Hw=e=>e&&(Nd(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),K={isArray:Js,isArrayBuffer:D3,isBuffer:fw,isFormData:bw,isArrayBufferView:pw,isString:hw,isNumber:_3,isBoolean:mw,isObject:Nd,isPlainObject:fu,isUndefined:kl,isDate:gw,isFile:yw,isBlob:vw,isRegExp:Fw,isFunction:Gn,isStream:Cw,isURLSearchParams:ww,isTypedArray:Dw,isFileList:xw,forEach:Gl,merge:m0,extend:kw,trim:Sw,stripBOM:Ew,inherits:Pw,toFlatObject:Mw,kindOf:Ld,kindOfTest:Ar,endsWith:Tw,toArray:Rw,forEachEntry:_w,matchAll:Ow,isHTMLForm:Iw,hasOwnProperty:N2,hasOwnProp:N2,reduceDescriptors:F3,freezeMethods:Aw,toObjectSet:Lw,toCamelCase:$w,noop:jw,toFiniteNumber:Nw,findKey:O3,global:I3,isContextDefined:$3,ALPHABET:A3,generateString:Vw,isSpecCompliantForm:zw,toJSONObject:Bw,isAsyncFn:Ww,isThenable:Hw};function Ue(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}K.inherits(Ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const L3=Ue.prototype,j3={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{j3[e]={value:e}});Object.defineProperties(Ue,j3);Object.defineProperty(L3,"isAxiosError",{value:!0});Ue.from=(e,t,n,r,o,i)=>{const s=Object.create(L3);return K.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Ue.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Uw=null;function g0(e){return K.isPlainObject(e)||K.isArray(e)}function N3(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function z2(e,t,n){return e?e.concat(t).map(function(o,i){return o=N3(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Yw(e){return K.isArray(e)&&!e.some(g0)}const Gw=K.toFlatObject(K,{},null,function(t){return/^is[A-Z]/.test(t)});function Vd(e,t,n){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=K.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,E){return!K.isUndefined(E[h])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(K.isDate(g))return g.toISOString();if(!l&&K.isBlob(g))throw new Ue("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(g)||K.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,h,E){let m=g;if(g&&!E&&typeof g=="object"){if(K.endsWith(h,"{}"))h=r?h:h.slice(0,-2),g=JSON.stringify(g);else if(K.isArray(g)&&Yw(g)||(K.isFileList(g)||K.endsWith(h,"[]"))&&(m=K.toArray(g)))return h=N3(h),m.forEach(function(C,w){!(K.isUndefined(C)||C===null)&&t.append(s===!0?z2([h],w,i):s===null?h:h+"[]",c(C))}),!1}return g0(g)?!0:(t.append(z2(E,h,i),c(g)),!1)}const d=[],p=Object.assign(Gw,{defaultVisitor:u,convertValue:c,isVisitable:g0});function x(g,h){if(!K.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(g),K.forEach(g,function(m,y){(!(K.isUndefined(m)||m===null)&&o.call(t,m,K.isString(y)?y.trim():y,h,p))===!0&&x(m,h?h.concat(y):[y])}),d.pop()}}if(!K.isObject(e))throw new TypeError("data must be an object");return x(e),t}function B2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function rm(e,t){this._pairs=[],e&&Vd(e,this,t)}const V3=rm.prototype;V3.append=function(t,n){this._pairs.push([t,n])};V3.toString=function(t){const n=t?function(r){return t.call(this,r,B2)}:B2;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function qw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function z3(e,t,n){if(!t)return e;const r=n&&n.encode||qw,o=n&&n.serialize;let i;if(o?i=o(t,n):i=K.isURLSearchParams(t)?t.toString():new rm(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class W2{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){K.forEach(this.handlers,function(r){r!==null&&t(r)})}}const B3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Kw=typeof URLSearchParams<"u"?URLSearchParams:rm,Zw=typeof FormData<"u"?FormData:null,Xw=typeof Blob<"u"?Blob:null,Jw={isBrowser:!0,classes:{URLSearchParams:Kw,FormData:Zw,Blob:Xw},protocols:["http","https","file","blob","url","data"]},W3=typeof window<"u"&&typeof document<"u",Qw=(e=>W3&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),e9=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",t9=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:W3,hasStandardBrowserEnv:Qw,hasStandardBrowserWebWorkerEnv:e9},Symbol.toStringTag,{value:"Module"})),Pr={...t9,...Jw};function n9(e,t){return Vd(e,new Pr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Pr.isNode&&K.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function r9(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function o9(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function H3(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=n.length;return s=!s&&K.isArray(o)?o.length:s,l?(K.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!K.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&K.isArray(o[s])&&(o[s]=o9(o[s])),!a)}if(K.isFormData(e)&&K.isFunction(e.entries)){const n={};return K.forEachEntry(e,(r,o)=>{t(r9(r),o,n,0)}),n}return null}function i9(e,t,n){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const om={transitional:B3,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=K.isObject(t);if(i&&K.isHTMLForm(t)&&(t=new FormData(t)),K.isFormData(t))return o&&o?JSON.stringify(H3(t)):t;if(K.isArrayBuffer(t)||K.isBuffer(t)||K.isStream(t)||K.isFile(t)||K.isBlob(t))return t;if(K.isArrayBufferView(t))return t.buffer;if(K.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return n9(t,this.formSerializer).toString();if((a=K.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Vd(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),i9(t)):t}],transformResponse:[function(t){const n=this.transitional||om.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&K.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Ue.from(a,Ue.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pr.classes.FormData,Blob:Pr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],e=>{om.headers[e]={}});const im=om,s9=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),a9=e=>{const t={};let n,r,o;return e&&e.split(`
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&s9[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},H2=Symbol("internals");function ga(e){return e&&String(e).trim().toLowerCase()}function pu(e){return e===!1||e==null?e:K.isArray(e)?e.map(pu):String(e)}function l9(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const c9=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vp(e,t,n,r,o){if(K.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!K.isString(t)){if(K.isString(r))return t.indexOf(r)!==-1;if(K.isRegExp(r))return r.test(t)}}function u9(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function d9(e,t){const n=K.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class zd{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=ga(l);if(!u)throw new Error("header name must be a non-empty string");const d=K.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=pu(a))}const s=(a,l)=>K.forEach(a,(c,u)=>i(c,u,l));return K.isPlainObject(t)||t instanceof this.constructor?s(t,n):K.isString(t)&&(t=t.trim())&&!c9(t)?s(a9(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=ga(t),t){const r=K.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return l9(o);if(K.isFunction(n))return n.call(this,o,r);if(K.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ga(t),t){const r=K.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Vp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=ga(s),s){const a=K.findKey(r,s);a&&(!n||Vp(r,r[a],a,n))&&(delete r[a],o=!0)}}return K.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Vp(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return K.forEach(this,(o,i)=>{const s=K.findKey(r,i);if(s){n[s]=pu(o),delete n[i];return}const a=t?u9(i):String(i).trim();a!==i&&delete n[i],n[a]=pu(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return K.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&K.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[H2]=this[H2]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=ga(s);r[a]||(d9(o,s),r[a]=!0)}return K.isArray(t)?t.forEach(i):i(t),this}}zd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);K.reduceDescriptors(zd.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});K.freezeMethods(zd);const to=zd;function zp(e,t){const n=this||im,r=t||n,o=to.from(r.headers);let i=r.data;return K.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function U3(e){return!!(e&&e.__CANCEL__)}function ql(e,t,n){Ue.call(this,e??"canceled",Ue.ERR_CANCELED,t,n),this.name="CanceledError"}K.inherits(ql,Ue,{__CANCEL__:!0});function f9(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ue("Request failed with status code "+n.status,[Ue.ERR_BAD_REQUEST,Ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const p9=Pr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];K.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),K.isString(r)&&s.push("path="+r),K.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function h9(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function m9(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Y3(e,t){return e&&!h9(t)?m9(e,t):t}const g9=Pr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=K.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function y9(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function v9(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let d=i,p=0;for(;d!==o;)p+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const x=u&&c-u;return x?Math.round(p*1e3/x):void 0}}function U2(e,t){let n=0;const r=v9(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),c=i<=s;n=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-i)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const x9=typeof XMLHttpRequest<"u",C9=x9&&function(e){return new Promise(function(n,r){let o=e.data;const i=to.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(K.isFormData(o)){if(Pr.hasStandardBrowserEnv||Pr.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[h,...E]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...E].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+E))}const p=Y3(e.baseURL,e.url);d.open(e.method.toUpperCase(),z3(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function x(){if(!d)return;const h=to.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),m={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};f9(function(C){n(C),c()},function(C){r(C),c()},m),d=null}if("onloadend"in d?d.onloadend=x:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(x)},d.onabort=function(){d&&(r(new Ue("Request aborted",Ue.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new Ue("Network Error",Ue.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||B3;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),r(new Ue(E,m.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,d)),d=null},Pr.hasStandardBrowserEnv&&(a&&K.isFunction(a)&&(a=a(e)),a||a!==!1&&g9(p))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&p9.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}o===void 0&&i.setContentType(null),"setRequestHeader"in d&&K.forEach(i.toJSON(),function(E,m){d.setRequestHeader(m,E)}),K.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),s&&s!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",U2(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",U2(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=h=>{d&&(r(!h||h.type?new ql(null,e,d):h),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const g=y9(p);if(g&&Pr.protocols.indexOf(g)===-1){r(new Ue("Unsupported protocol "+g+":",Ue.ERR_BAD_REQUEST,e));return}d.send(o||null)})},y0={http:Uw,xhr:C9};K.forEach(y0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Y2=e=>`- ${e}`,b9=e=>K.isFunction(e)||e===null||e===!1,G3={getAdapter:e=>{e=K.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!b9(n)&&(r=y0[(s=String(n)).toLowerCase()],r===void 0))throw new Ue(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
`+i.map(Y2).join(`
`):" "+Y2(i[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:y0};function Bp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ql(null,e)}function G2(e){return Bp(e),e.headers=to.from(e.headers),e.data=zp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),G3.getAdapter(e.adapter||im.adapter)(e).then(function(r){return Bp(e),r.data=zp.call(e,e.transformResponse,r),r.headers=to.from(r.headers),r},function(r){return U3(r)||(Bp(e),r&&r.response&&(r.response.data=zp.call(e,e.transformResponse,r.response),r.response.headers=to.from(r.response.headers))),Promise.reject(r)})}const q2=e=>e instanceof to?e.toJSON():e;function Ls(e,t){t=t||{};const n={};function r(c,u,d){return K.isPlainObject(c)&&K.isPlainObject(u)?K.merge.call({caseless:d},c,u):K.isPlainObject(u)?K.merge({},u):K.isArray(u)?u.slice():u}function o(c,u,d){if(K.isUndefined(u)){if(!K.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function i(c,u){if(!K.isUndefined(u))return r(void 0,u)}function s(c,u){if(K.isUndefined(u)){if(!K.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u)=>o(q2(c),q2(u),!0)};return K.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,p=d(e[u],t[u],u);K.isUndefined(p)&&d!==a||(n[u]=p)}),n}const q3="1.6.5",sm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const K2={};sm.transitional=function(t,n,r){function o(i,s){return"[Axios v"+q3+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new Ue(o(s," has been removed"+(n?" in "+n:"")),Ue.ERR_DEPRECATED);return n&&!K2[s]&&(K2[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function w9(e,t,n){if(typeof e!="object")throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new Ue("option "+i+" must be "+l,Ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ue("Unknown option "+i,Ue.ERR_BAD_OPTION)}}const v0={assertOptions:w9,validators:sm},Co=v0.validators;class Ju{constructor(t){this.defaults=t,this.interceptors={request:new W2,response:new W2}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ls(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&v0.assertOptions(r,{silentJSONParsing:Co.transitional(Co.boolean),forcedJSONParsing:Co.transitional(Co.boolean),clarifyTimeoutError:Co.transitional(Co.boolean)},!1),o!=null&&(K.isFunction(o)?n.paramsSerializer={serialize:o}:v0.assertOptions(o,{encode:Co.function,serialize:Co.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&K.merge(i.common,i[n.method]);i&&K.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=to.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,d=0,p;if(!l){const g=[G2.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,c),p=g.length,u=Promise.resolve(n);d<p;)u=u.then(g[d++],g[d++]);return u}p=a.length;let x=n;for(d=0;d<p;){const g=a[d++],h=a[d++];try{x=g(x)}catch(E){h.call(this,E);break}}try{u=G2.call(this,x)}catch(g){return Promise.reject(g)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Ls(this.defaults,t);const n=Y3(t.baseURL,t.url);return z3(n,t.params,t.paramsSerializer)}}K.forEach(["delete","get","head","options"],function(t){Ju.prototype[t]=function(n,r){return this.request(Ls(r||{},{method:t,url:n,data:(r||{}).data}))}});K.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(Ls(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Ju.prototype[t]=n(),Ju.prototype[t+"Form"]=n(!0)});const hu=Ju;class am{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new ql(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new am(function(o){t=o}),cancel:t}}}const S9=am;function k9(e){return function(n){return e.apply(null,n)}}function E9(e){return K.isObject(e)&&e.isAxiosError===!0}const x0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(x0).forEach(([e,t])=>{x0[t]=e});const P9=x0;function K3(e){const t=new hu(e),n=R3(hu.prototype.request,t);return K.extend(n,hu.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return K3(Ls(e,o))},n}const Rt=K3(im);Rt.Axios=hu;Rt.CanceledError=ql;Rt.CancelToken=S9;Rt.isCancel=U3;Rt.VERSION=q3;Rt.toFormData=Vd;Rt.AxiosError=Ue;Rt.Cancel=Rt.CanceledError;Rt.all=function(t){return Promise.all(t)};Rt.spread=k9;Rt.isAxiosError=E9;Rt.mergeConfig=Ls;Rt.AxiosHeaders=to;Rt.formToJSON=e=>H3(K.isHTMLForm(e)?new FormData(e):e);Rt.getAdapter=G3.getAdapter;Rt.HttpStatusCode=P9;Rt.default=Rt;const C0=e=>{if(Array.isArray(e))return e.map(C0);if(!e||typeof e!="object")return e;const t={};for(const[n,r]of Object.entries(e)){if(typeof r=="string"){t[n]=r.replace("squiz.pena.digital","storage.yandexcloud.net");continue}if(typeof r=="object"){t[n]=C0(r);continue}t[n]=r}return t};let mu="";const Bd=location.hostname==="hbpn.link"?"":"https://s.hbpn.link",lm=({url:e,body:t})=>Rt(e,{data:t,headers:{"X-Sessionkey":mu,"Content-Type":"multipart/form-data"},method:"POST"});async function M9(e){try{const{data:t,headers:n}=await Rt(Bd+"/answer/settings",{method:"POST",headers:{"X-Sessionkey":mu,"Content-Type":"application/json"},data:{quiz_id:e,limit:100,page:0,need_config:!0}}),r=JSON.parse(localStorage.getItem("sessions")||"{}");return typeof r[e]=="number"&&Date.now()-r[e]<864e5?{data:t,isRecentlyCompleted:!0}:(mu=n["x-sessionkey"]?n["x-sessionkey"]:mu,{data:t,isRecentlyCompleted:!1})}catch(t){return{data:null,isRecentlyCompleted:!1,error:t.message}}}async function T9(e){const t=await M9(e),n=t.data;if(t.error)throw new Error(t.error);if(!n)throw new Error("Quiz not found");const r=C0(uw(n)),o=JSON.parse(JSON.stringify({data:r}).replaceAll(/\\" \\"/g,'""').replaceAll(/" "/g,'""')).data;return o.recentlyCompleted=t.isRecentlyCompleted,o}function qt({questionId:e,body:t,qid:n}){const r=new FormData,o=[{question_id:e,content:t}];return r.append("answers",JSON.stringify(o)),console.log("QID",n),r.append("qid",n),lm({url:Bd+"/answer/answer",body:r,method:"POST"})}function R9({questionId:e,body:t,qid:n}){const r=new FormData,o=[{question_id:e,content:"file:"+t.name}];return r.append("answers",JSON.stringify(o)),r.append(t.name,t.file),console.log("QID",n),r.append("qid",n),lm({url:Bd+"/answer/answer",body:r,method:"POST"})}function D9({questionId:e,body:t,qid:n}){const r=new FormData,o=[{question_id:e,content:JSON.stringify(t),result:!0,qid:n}];return r.append("answers",JSON.stringify(o)),r.append("qid",n),lm({url:Bd+"/answer/answer",body:r,method:"POST"})}const _9={black:"#000",white:"#fff"},El=_9,O9={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"},Bi=O9,I9={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"},Wi=I9,$9={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"},Hi=$9,F9={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"},Ui=F9,A9={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"},Yi=A9,L9={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"},ya=L9,j9={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"},N9=j9;function Bo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Pi="$$material";function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function te(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Z3(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var V9=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,z9=Z3(function(e){return V9.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function B9(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function W9(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var H9=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(W9(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=B9(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),en="-ms-",Qu="-moz-",Qe="-webkit-",X3="comm",cm="rule",um="decl",U9="@import",J3="@keyframes",Y9="@layer",G9=Math.abs,Wd=String.fromCharCode,q9=Object.assign;function K9(e,t){return Yt(e,0)^45?(((t<<2^Yt(e,0))<<2^Yt(e,1))<<2^Yt(e,2))<<2^Yt(e,3):0}function Q3(e){return e.trim()}function Z9(e,t){return(e=t.exec(e))?e[0]:e}function et(e,t,n){return e.replace(t,n)}function b0(e,t){return e.indexOf(t)}function Yt(e,t){return e.charCodeAt(t)|0}function Pl(e,t,n){return e.slice(t,n)}function br(e){return e.length}function dm(e){return e.length}function Oc(e,t){return t.push(e),e}function X9(e,t){return e.map(t).join("")}var Hd=1,js=1,ex=0,Sn=0,Ot=0,Qs="";function Ud(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Hd,column:js,length:s,return:""}}function va(e,t){return q9(Ud("",null,null,"",null,null,0),e,{length:-e.length},t)}function J9(){return Ot}function Q9(){return Ot=Sn>0?Yt(Qs,--Sn):0,js--,Ot===10&&(js=1,Hd--),Ot}function Rn(){return Ot=Sn<ex?Yt(Qs,Sn++):0,js++,Ot===10&&(js=1,Hd++),Ot}function Dr(){return Yt(Qs,Sn)}function gu(){return Sn}function Kl(e,t){return Pl(Qs,e,t)}function Ml(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tx(e){return Hd=js=1,ex=br(Qs=e),Sn=0,[]}function nx(e){return Qs="",e}function yu(e){return Q3(Kl(Sn-1,w0(e===91?e+2:e===40?e+1:e)))}function eS(e){for(;(Ot=Dr())&&Ot<33;)Rn();return Ml(e)>2||Ml(Ot)>3?"":" "}function tS(e,t){for(;--t&&Rn()&&!(Ot<48||Ot>102||Ot>57&&Ot<65||Ot>70&&Ot<97););return Kl(e,gu()+(t<6&&Dr()==32&&Rn()==32))}function w0(e){for(;Rn();)switch(Ot){case e:return Sn;case 34:case 39:e!==34&&e!==39&&w0(Ot);break;case 40:e===41&&w0(e);break;case 92:Rn();break}return Sn}function nS(e,t){for(;Rn()&&e+Ot!==57;)if(e+Ot===84&&Dr()===47)break;return"/*"+Kl(t,Sn-1)+"*"+Wd(e===47?e:Rn())}function rS(e){for(;!Ml(Dr());)Rn();return Kl(e,Sn)}function oS(e){return nx(vu("",null,null,null,[""],e=tx(e),0,[0],e))}function vu(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,p=0,x=0,g=0,h=1,E=1,m=1,y=0,C="",w=o,S=i,P=r,k=C;E;)switch(g=y,y=Rn()){case 40:if(g!=108&&Yt(k,d-1)==58){b0(k+=et(yu(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:k+=yu(y);break;case 9:case 10:case 13:case 32:k+=eS(g);break;case 92:k+=tS(gu()-1,7);continue;case 47:switch(Dr()){case 42:case 47:Oc(iS(nS(Rn(),gu()),t,n),l);break;default:k+="/"}break;case 123*h:a[c++]=br(k)*m;case 125*h:case 59:case 0:switch(y){case 0:case 125:E=0;case 59+u:m==-1&&(k=et(k,/\f/g,"")),x>0&&br(k)-d&&Oc(x>32?X2(k+";",r,n,d-1):X2(et(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Oc(P=Z2(k,t,n,c,u,o,a,C,w=[],S=[],d),i),y===123)if(u===0)vu(k,t,P,P,w,i,d,a,S);else switch(p===99&&Yt(k,3)===110?100:p){case 100:case 108:case 109:case 115:vu(e,P,P,r&&Oc(Z2(e,P,P,0,0,o,a,C,o,w=[],d),S),o,S,d,a,r?w:S);break;default:vu(k,P,P,P,[""],S,0,a,S)}}c=u=x=0,h=m=1,C=k="",d=s;break;case 58:d=1+br(k),x=g;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&Q9()==125)continue}switch(k+=Wd(y),y*h){case 38:m=u>0?1:(k+="\f",-1);break;case 44:a[c++]=(br(k)-1)*m,m=1;break;case 64:Dr()===45&&(k+=yu(Rn())),p=Dr(),u=d=br(C=k+=rS(gu())),y++;break;case 45:g===45&&br(k)==2&&(h=0)}}return i}function Z2(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,p=o===0?i:[""],x=dm(p),g=0,h=0,E=0;g<r;++g)for(var m=0,y=Pl(e,d+1,d=G9(h=s[g])),C=e;m<x;++m)(C=Q3(h>0?p[m]+" "+y:et(y,/&\f/g,p[m])))&&(l[E++]=C);return Ud(e,t,n,o===0?cm:a,l,c,u)}function iS(e,t,n){return Ud(e,t,n,X3,Wd(J9()),Pl(e,2,-2),0)}function X2(e,t,n,r){return Ud(e,t,n,um,Pl(e,0,r),Pl(e,r+1,-1),r)}function Ss(e,t){for(var n="",r=dm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function sS(e,t,n,r){switch(e.type){case Y9:if(e.children.length)break;case U9:case um:return e.return=e.return||e.value;case X3:return"";case J3:return e.return=e.value+"{"+Ss(e.children,r)+"}";case cm:e.value=e.props.join(",")}return br(n=Ss(e.children,r))?e.return=e.value+"{"+n+"}":""}function aS(e){var t=dm(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function lS(e){return function(t){t.root||(t=t.return)&&e(t)}}var cS=function(t,n,r){for(var o=0,i=0;o=i,i=Dr(),o===38&&i===12&&(n[r]=1),!Ml(i);)Rn();return Kl(t,Sn)},uS=function(t,n){var r=-1,o=44;do switch(Ml(o)){case 0:o===38&&Dr()===12&&(n[r]=1),t[r]+=cS(Sn-1,n,r);break;case 2:t[r]+=yu(o);break;case 4:if(o===44){t[++r]=Dr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Wd(o)}while(o=Rn());return t},dS=function(t,n){return nx(uS(tx(t),n))},J2=new WeakMap,fS=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!J2.get(r))&&!o){J2.set(t,!0);for(var i=[],s=dS(n,i),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},pS=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function rx(e,t){switch(K9(e,t)){case 5103:return Qe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Qe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Qe+e+Qu+e+en+e+e;case 6828:case 4268:return Qe+e+en+e+e;case 6165:return Qe+e+en+"flex-"+e+e;case 5187:return Qe+e+et(e,/(\w+).+(:[^]+)/,Qe+"box-$1$2"+en+"flex-$1$2")+e;case 5443:return Qe+e+en+"flex-item-"+et(e,/flex-|-self/,"")+e;case 4675:return Qe+e+en+"flex-line-pack"+et(e,/align-content|flex-|-self/,"")+e;case 5548:return Qe+e+en+et(e,"shrink","negative")+e;case 5292:return Qe+e+en+et(e,"basis","preferred-size")+e;case 6060:return Qe+"box-"+et(e,"-grow","")+Qe+e+en+et(e,"grow","positive")+e;case 4554:return Qe+et(e,/([^-])(transform)/g,"$1"+Qe+"$2")+e;case 6187:return et(et(et(e,/(zoom-|grab)/,Qe+"$1"),/(image-set)/,Qe+"$1"),e,"")+e;case 5495:case 3959:return et(e,/(image-set\([^]*)/,Qe+"$1$`$1");case 4968:return et(et(e,/(.+:)(flex-)?(.*)/,Qe+"box-pack:$3"+en+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qe+e+e;case 4095:case 3583:case 4068:case 2532:return et(e,/(.+)-inline(.+)/,Qe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(br(e)-1-t>6)switch(Yt(e,t+1)){case 109:if(Yt(e,t+4)!==45)break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+Qe+"$2-$3$1"+Qu+(Yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~b0(e,"stretch")?rx(et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yt(e,t+1)!==115)break;case 6444:switch(Yt(e,br(e)-3-(~b0(e,"!important")&&10))){case 107:return et(e,":",":"+Qe)+e;case 101:return et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qe+(Yt(e,14)===45?"inline-":"")+"box$3$1"+Qe+"$2$3$1"+en+"$2box$3")+e}break;case 5936:switch(Yt(e,t+11)){case 114:return Qe+e+en+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qe+e+en+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qe+e+en+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qe+e+en+e+e}return e}var hS=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case um:t.return=rx(t.value,t.length);break;case J3:return Ss([va(t,{value:et(t.value,"@","@"+Qe)})],o);case cm:if(t.length)return X9(t.props,function(i){switch(Z9(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ss([va(t,{props:[et(i,/:(read-\w+)/,":"+Qu+"$1")]})],o);case"::placeholder":return Ss([va(t,{props:[et(i,/:(plac\w+)/,":"+Qe+"input-$1")]}),va(t,{props:[et(i,/:(plac\w+)/,":"+Qu+"$1")]}),va(t,{props:[et(i,/:(plac\w+)/,en+"input-$1")]})],o)}return""})}},mS=[hS],gS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var E=h.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||mS,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var E=h.getAttribute("data-emotion").split(" "),m=1;m<E.length;m++)i[E[m]]=!0;a.push(h)});var l,c=[fS,pS];{var u,d=[sS,lS(function(h){u.insert(h)})],p=aS(c.concat(o,d)),x=function(E){return Ss(oS(E),p)};l=function(E,m,y,C){u=y,x(E?E+"{"+m.styles+"}":m.styles),C&&(g.inserted[m.name]=!0)}}var g={key:n,sheet:new H9({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return g.sheet.hydrate(a),g},ox={exports:{}},rt={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Wt=typeof Symbol=="function"&&Symbol.for,fm=Wt?Symbol.for("react.element"):60103,pm=Wt?Symbol.for("react.portal"):60106,Yd=Wt?Symbol.for("react.fragment"):60107,Gd=Wt?Symbol.for("react.strict_mode"):60108,qd=Wt?Symbol.for("react.profiler"):60114,Kd=Wt?Symbol.for("react.provider"):60109,Zd=Wt?Symbol.for("react.context"):60110,hm=Wt?Symbol.for("react.async_mode"):60111,Xd=Wt?Symbol.for("react.concurrent_mode"):60111,Jd=Wt?Symbol.for("react.forward_ref"):60112,Qd=Wt?Symbol.for("react.suspense"):60113,yS=Wt?Symbol.for("react.suspense_list"):60120,ef=Wt?Symbol.for("react.memo"):60115,tf=Wt?Symbol.for("react.lazy"):60116,vS=Wt?Symbol.for("react.block"):60121,xS=Wt?Symbol.for("react.fundamental"):60117,CS=Wt?Symbol.for("react.responder"):60118,bS=Wt?Symbol.for("react.scope"):60119;function An(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fm:switch(e=e.type,e){case hm:case Xd:case Yd:case qd:case Gd:case Qd:return e;default:switch(e=e&&e.$$typeof,e){case Zd:case Jd:case tf:case ef:case Kd:return e;default:return t}}case pm:return t}}}function ix(e){return An(e)===Xd}rt.AsyncMode=hm;rt.ConcurrentMode=Xd;rt.ContextConsumer=Zd;rt.ContextProvider=Kd;rt.Element=fm;rt.ForwardRef=Jd;rt.Fragment=Yd;rt.Lazy=tf;rt.Memo=ef;rt.Portal=pm;rt.Profiler=qd;rt.StrictMode=Gd;rt.Suspense=Qd;rt.isAsyncMode=function(e){return ix(e)||An(e)===hm};rt.isConcurrentMode=ix;rt.isContextConsumer=function(e){return An(e)===Zd};rt.isContextProvider=function(e){return An(e)===Kd};rt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fm};rt.isForwardRef=function(e){return An(e)===Jd};rt.isFragment=function(e){return An(e)===Yd};rt.isLazy=function(e){return An(e)===tf};rt.isMemo=function(e){return An(e)===ef};rt.isPortal=function(e){return An(e)===pm};rt.isProfiler=function(e){return An(e)===qd};rt.isStrictMode=function(e){return An(e)===Gd};rt.isSuspense=function(e){return An(e)===Qd};rt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yd||e===Xd||e===qd||e===Gd||e===Qd||e===yS||typeof e=="object"&&e!==null&&(e.$$typeof===tf||e.$$typeof===ef||e.$$typeof===Kd||e.$$typeof===Zd||e.$$typeof===Jd||e.$$typeof===xS||e.$$typeof===CS||e.$$typeof===bS||e.$$typeof===vS)};rt.typeOf=An;ox.exports=rt;var wS=ox.exports,sx=wS,SS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ax={};ax[sx.ForwardRef]=SS;ax[sx.Memo]=kS;var ES=!0;function PS(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var lx=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||ES===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},cx=function(t,n,r){lx(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function MS(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var TS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},RS=/[A-Z]|^ms/g,DS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ux=function(t){return t.charCodeAt(1)===45},Q2=function(t){return t!=null&&typeof t!="boolean"},Wp=Z3(function(e){return ux(e)?e:e.replace(RS,"-$&").toLowerCase()}),ey=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(DS,function(r,o,i){return wr={name:o,styles:i,next:wr},o})}return TS[t]!==1&&!ux(t)&&typeof n=="number"&&n!==0?n+"px":n};function Tl(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return wr={name:n.name,styles:n.styles,next:wr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)wr={name:r.name,styles:r.styles,next:wr},r=r.next;var o=n.styles+";";return o}return _S(e,t,n)}case"function":{if(e!==void 0){var i=wr,s=n(e);return wr=i,Tl(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function _S(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Tl(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":Q2(s)&&(r+=Wp(i)+":"+ey(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)Q2(s[a])&&(r+=Wp(i)+":"+ey(i,s[a])+";");else{var l=Tl(e,t,s);switch(i){case"animation":case"animationName":{r+=Wp(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var ty=/label:\s*([^\s;\n{]+)\s*(;|$)/g,wr,mm=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";wr=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Tl(r,n,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=Tl(r,n,t[a]),o&&(i+=s[a]);ty.lastIndex=0;for(var l="",c;(c=ty.exec(i))!==null;)l+="-"+c[1];var u=MS(i)+l;return{name:u,styles:i,next:wr}},OS=function(t){return t()},dx=wh.useInsertionEffect?wh.useInsertionEffect:!1,IS=dx||OS,ny=dx||v.useLayoutEffect,fx=v.createContext(typeof HTMLElement<"u"?gS({key:"css"}):null);fx.Provider;var px=function(t){return v.forwardRef(function(n,r){var o=v.useContext(fx);return t(n,o,r)})},nf=v.createContext({}),$S=px(function(e,t){var n=e.styles,r=mm([n],void 0,v.useContext(nf)),o=v.useRef();return ny(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",i),s.hydrate([l])),o.current=[s,a],function(){s.flush()}},[t]),ny(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&cx(t,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function S0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mm(t)}var Zl=function(){var t=S0.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},FS=z9,AS=function(t){return t!=="theme"},ry=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?FS:AS},oy=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},LS=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return lx(n,r,o),IS(function(){return cx(n,r,o)}),null},jS=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=oy(t,n,r),l=a||ry(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,x=1;x<p;x++)d.push(u[x],u[0][x])}var g=px(function(h,E,m){var y=c&&h.as||o,C="",w=[],S=h;if(h.theme==null){S={};for(var P in h)S[P]=h[P];S.theme=v.useContext(nf)}typeof h.className=="string"?C=PS(E.registered,w,h.className):h.className!=null&&(C=h.className+" ");var k=mm(d.concat(w),E.registered,S);C+=E.key+"-"+k.name,s!==void 0&&(C+=" "+s);var M=c&&a===void 0?ry(y):l,T={};for(var D in h)c&&D==="as"||M(D)&&(T[D]=h[D]);return T.className=C,T.ref=m,v.createElement(v.Fragment,null,v.createElement(LS,{cache:E,serialized:k,isStringTag:typeof y=="string"}),v.createElement(y,T))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=d,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return"."+s}}),g.withComponent=function(h,E){return e(h,b({},n,E,{shouldForwardProp:oy(g,E,!0)})).apply(void 0,d)},g}},NS=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],k0=jS.bind();NS.forEach(function(e){k0[e]=k0(e)});var hx={exports:{}},VS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",zS=VS,BS=zS;function mx(){}function gx(){}gx.resetWarningCache=mx;var WS=function(){function e(r,o,i,s,a,l){if(l!==BS){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:gx,resetWarningCache:mx};return n.PropTypes=n,n};hx.exports=WS();var HS=hx.exports;const N=Cd(HS);function US(e){return e==null||Object.keys(e).length===0}function YS(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(US(o)?n:o):t;return f.jsx($S,{styles:r})}function yx(e,t){return k0(e,t)}const GS=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Gr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vx(e){if(!Gr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=vx(e[n])}),t}function nn(e,t,n={clone:!0}){const r=n.clone?b({},e):e;return Gr(e)&&Gr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Gr(t[o])&&o in e&&Gr(e[o])?r[o]=nn(e[o],t[o],n):n.clone?r[o]=Gr(t[o])?vx(t[o]):t[o]:r[o]=t[o])}),r}const qS=N.oneOfType([N.func,N.object]),xx=qS;function oe(e){if(typeof e!="string")throw new Error(Bo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function E0(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Cx(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function xu(e,t){var n,r;return v.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Pt(e){return e&&e.ownerDocument||document}function Mi(e){return Pt(e).defaultView||window}function P0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Lt=typeof window<"u"?v.useLayoutEffect:v.useEffect;let iy=0;function KS(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(iy+=1,n(`mui-${iy}`))},[t]),r}const sy=wh.useId;function ho(e){if(sy!==void 0){const t=sy();return e??t}return KS(e)}function kn({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=v.useRef(e!==void 0),[i,s]=v.useState(t),a=o?e:i,l=v.useCallback(c=>{o||s(c)},[]);return[a,l]}function Me(e){const t=v.useRef(e);return Lt(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function tt(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{P0(n,t)})},e)}let rf=!0,M0=!1,ay;const ZS={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 XS(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ZS[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function JS(e){e.metaKey||e.altKey||e.ctrlKey||(rf=!0)}function Hp(){rf=!1}function QS(){this.visibilityState==="hidden"&&M0&&(rf=!0)}function ek(e){e.addEventListener("keydown",JS,!0),e.addEventListener("mousedown",Hp,!0),e.addEventListener("pointerdown",Hp,!0),e.addEventListener("touchstart",Hp,!0),e.addEventListener("visibilitychange",QS,!0)}function tk(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return rf||XS(t)}function of(){const e=v.useCallback(o=>{o!=null&&ek(o.ownerDocument)},[]),t=v.useRef(!1);function n(){return t.current?(M0=!0,window.clearTimeout(ay),ay=window.setTimeout(()=>{M0=!1},100),t.current=!1,!0):!1}function r(o){return tk(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function bx(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const nk={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},wx=nk;function gm(e,t){const n=b({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=b({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=b({},i),Object.keys(o).forEach(s=>{n[r][s]=gm(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function De(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const ly=e=>e,rk=()=>{let e=ly;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ly}}},ok=rk(),Sx=ok,kx={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _e(e,t,n="Mui"){const r=kx[t];return r?`${n}-${r}`:`${Sx.generate(e)}-${t}`}function Pe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=_e(e,o,n)}),r}function li(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const ik=["values","unit","step"],sk=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>b({},n,{[r.key]:r.val}),{})};function ak(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=te(e,ik),i=sk(t),s=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,x){const g=s.indexOf(x);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:x)-r/100}${n})`}function u(p){return s.indexOf(p)+1<s.length?c(p,s[s.indexOf(p)+1]):a(p)}function d(p){const x=s.indexOf(p);return x===0?a(s[1]):x===s.length-1?l(s[x]):c(p,s[s.indexOf(p)+1]).replace("@media","@media not all and")}return b({keys:s,values:i,up:a,down:l,between:c,only:u,not:d,unit:n},o)}const lk={borderRadius:4},ck=lk;function Za(e,t){return t?nn(e,t,{clone:!1}):e}const ym={xs:0,sm:600,md:900,lg:1200,xl:1536},cy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ym[e]}px)`};function hr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||cy;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||cy;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||ym).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function Ex(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Px(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function uk(e,...t){const n=Ex(e),r=[n,...t].reduce((o,i)=>nn(o,i),{});return Px(Object.keys(n),r)}function dk(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Up({values:e,breakpoints:t,base:n}){const r=n||dk(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function Ns(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ed(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ns(e,n)||r,t&&(o=t(o,r,e)),o}function Dt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Ns(l,r)||{};return hr(s,a,d=>{let p=ed(c,o,d);return d===p&&typeof d=="string"&&(p=ed(c,o,`${t}${d==="default"?"":oe(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function fk(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const pk={m:"margin",p:"padding"},hk={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},uy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mk=fk(e=>{if(e.length>2)if(uy[e])e=uy[e];else return[e];const[t,n]=e.split(""),r=pk[t],o=hk[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),vm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...vm,...xm];function Xl(e,t,n,r){var o;const i=(o=Ns(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Cm(e){return Xl(e,"spacing",8)}function Ti(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function gk(e,t){return n=>e.reduce((r,o)=>(r[o]=Ti(t,n),r),{})}function yk(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=mk(n),i=gk(o,r),s=e[n];return hr(e,s,i)}function Mx(e,t){const n=Cm(e.theme);return Object.keys(e).map(r=>yk(e,t,r,n)).reduce(Za,{})}function St(e){return Mx(e,vm)}St.propTypes={};St.filterProps=vm;function kt(e){return Mx(e,xm)}kt.propTypes={};kt.filterProps=xm;function vk(e=8){if(e.mui)return e;const t=Cm({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function sf(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Za(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Wn(e){return typeof e!="number"?e:`${e}px solid`}function er(e,t){return Dt({prop:e,themeKey:"borders",transform:t})}const xk=er("border",Wn),Ck=er("borderTop",Wn),bk=er("borderRight",Wn),wk=er("borderBottom",Wn),Sk=er("borderLeft",Wn),kk=er("borderColor"),Ek=er("borderTopColor"),Pk=er("borderRightColor"),Mk=er("borderBottomColor"),Tk=er("borderLeftColor"),Rk=er("outline",Wn),Dk=er("outlineColor"),af=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Xl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ti(t,r)});return hr(e,e.borderRadius,n)}return null};af.propTypes={};af.filterProps=["borderRadius"];sf(xk,Ck,bk,wk,Sk,kk,Ek,Pk,Mk,Tk,af,Rk,Dk);const lf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Xl(e.theme,"spacing",8),n=r=>({gap:Ti(t,r)});return hr(e,e.gap,n)}return null};lf.propTypes={};lf.filterProps=["gap"];const cf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Xl(e.theme,"spacing",8),n=r=>({columnGap:Ti(t,r)});return hr(e,e.columnGap,n)}return null};cf.propTypes={};cf.filterProps=["columnGap"];const uf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Xl(e.theme,"spacing",8),n=r=>({rowGap:Ti(t,r)});return hr(e,e.rowGap,n)}return null};uf.propTypes={};uf.filterProps=["rowGap"];const _k=Dt({prop:"gridColumn"}),Ok=Dt({prop:"gridRow"}),Ik=Dt({prop:"gridAutoFlow"}),$k=Dt({prop:"gridAutoColumns"}),Fk=Dt({prop:"gridAutoRows"}),Ak=Dt({prop:"gridTemplateColumns"}),Lk=Dt({prop:"gridTemplateRows"}),jk=Dt({prop:"gridTemplateAreas"}),Nk=Dt({prop:"gridArea"});sf(lf,cf,uf,_k,Ok,Ik,$k,Fk,Ak,Lk,jk,Nk);function ks(e,t){return t==="grey"?t:e}const Vk=Dt({prop:"color",themeKey:"palette",transform:ks}),zk=Dt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ks}),Bk=Dt({prop:"backgroundColor",themeKey:"palette",transform:ks});sf(Vk,zk,Bk);function Pn(e){return e<=1&&e!==0?`${e*100}%`:e}const Wk=Dt({prop:"width",transform:Pn}),bm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||ym[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Pn(n)}};return hr(e,e.maxWidth,t)}return null};bm.filterProps=["maxWidth"];const Hk=Dt({prop:"minWidth",transform:Pn}),Uk=Dt({prop:"height",transform:Pn}),Yk=Dt({prop:"maxHeight",transform:Pn}),Gk=Dt({prop:"minHeight",transform:Pn});Dt({prop:"size",cssProperty:"width",transform:Pn});Dt({prop:"size",cssProperty:"height",transform:Pn});const qk=Dt({prop:"boxSizing"});sf(Wk,bm,Hk,Uk,Yk,Gk,qk);const Kk={border:{themeKey:"borders",transform:Wn},borderTop:{themeKey:"borders",transform:Wn},borderRight:{themeKey:"borders",transform:Wn},borderBottom:{themeKey:"borders",transform:Wn},borderLeft:{themeKey:"borders",transform:Wn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Wn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:af},color:{themeKey:"palette",transform:ks},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ks},backgroundColor:{themeKey:"palette",transform:ks},p:{style:kt},pt:{style:kt},pr:{style:kt},pb:{style:kt},pl:{style:kt},px:{style:kt},py:{style:kt},padding:{style:kt},paddingTop:{style:kt},paddingRight:{style:kt},paddingBottom:{style:kt},paddingLeft:{style:kt},paddingX:{style:kt},paddingY:{style:kt},paddingInline:{style:kt},paddingInlineStart:{style:kt},paddingInlineEnd:{style:kt},paddingBlock:{style:kt},paddingBlockStart:{style:kt},paddingBlockEnd:{style:kt},m:{style:St},mt:{style:St},mr:{style:St},mb:{style:St},ml:{style:St},mx:{style:St},my:{style:St},margin:{style:St},marginTop:{style:St},marginRight:{style:St},marginBottom:{style:St},marginLeft:{style:St},marginX:{style:St},marginY:{style:St},marginInline:{style:St},marginInlineStart:{style:St},marginInlineEnd:{style:St},marginBlock:{style:St},marginBlockStart:{style:St},marginBlockEnd:{style:St},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:lf},rowGap:{style:uf},columnGap:{style:cf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pn},maxWidth:{style:bm},minWidth:{transform:Pn},height:{transform:Pn},maxHeight:{transform:Pn},minHeight:{transform:Pn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},df=Kk;function Zk(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Xk(e,t){return typeof e=="function"?e(t):e}function Jk(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=Ns(o,c)||{};return d?d(s):hr(s,r,g=>{let h=ed(p,u,g);return g===h&&typeof g=="string"&&(h=ed(p,u,`${n}${g==="default"?"":oe(g)}`,g)),l===!1?h:{[l]:h}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:df;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=Ex(i.breakpoints),d=Object.keys(u);let p=u;return Object.keys(c).forEach(x=>{const g=Xk(c[x],i);if(g!=null)if(typeof g=="object")if(s[x])p=Za(p,e(x,g,i,s));else{const h=hr({theme:i},g,E=>({[x]:E}));Zk(h,g)?p[x]=t({sx:g,theme:i}):p=Za(p,h)}else p=Za(p,e(x,g,i,s))}),Px(d,p)}return Array.isArray(o)?o.map(a):a(o)}return t}const Jl=Jk();Jl.filterProps=["sx"];const Qk=["breakpoints","palette","spacing","shape"];function ff(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=te(e,Qk),a=ak(n),l=vk(o);let c=nn({breakpoints:a,direction:"ltr",components:{},palette:b({mode:"light"},r),spacing:l,shape:b({},ck,i)},s);return c=t.reduce((u,d)=>nn(u,d),c),c.unstable_sxConfig=b({},df,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return Jl({sx:d,theme:this})},c}function eE(e){return Object.keys(e).length===0}function pf(e=null){const t=v.useContext(nf);return!t||eE(t)?e:t}const tE=ff();function ea(e=tE){return pf(e)}function nE({styles:e,themeId:t,defaultTheme:n={}}){const r=ea(n),o=typeof e=="function"?e(t&&r[t]||r):e;return f.jsx(YS,{styles:o})}const rE=["sx"],oE=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:df;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function wm(e){const{sx:t}=e,n=te(e,rE),{systemProps:r,otherProps:o}=oE(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Gr(a)?b({},r,a):r}:i=b({},r,t),b({},o,{sx:i})}function Tx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Tx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ue(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Tx(e))&&(r&&(r+=" "),r+=t);return r}const iE=["className","component"];function sE(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=yx("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Jl);return v.forwardRef(function(l,c){const u=ea(n),d=wm(l),{className:p,component:x="div"}=d,g=te(d,iE);return f.jsx(i,b({as:x,ref:c,className:ue(p,o?o(r):r),theme:t&&u[t]||u},g))})}const aE=["variant"];function dy(e){return e.length===0}function Rx(e){const{variant:t}=e,n=te(e,aE);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=dy(r)?e[o]:oe(e[o]):r+=`${dy(r)?o:oe(o)}${oe(e[o].toString())}`}),r}const lE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function cE(e){return Object.keys(e).length===0}function uE(e){return typeof e=="string"&&e.charCodeAt(0)>96}const dE=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,td=e=>{let t=0;const n={};return e&&e.forEach(r=>{let o="";typeof r.props=="function"?(o=`callback${t}`,t+=1):o=Rx(r.props),n[o]=r.style}),n},fE=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),td(n)},nd=(e,t,n)=>{const{ownerState:r={}}=e,o=[];let i=0;return n&&n.forEach(s=>{let a=!0;if(typeof s.props=="function"){const l=b({},e,r);a=s.props(l)}else Object.keys(s.props).forEach(l=>{r[l]!==s.props[l]&&e[l]!==s.props[l]&&(a=!1)});a&&(typeof s.props=="function"?o.push(t[`callback${i}`]):o.push(t[Rx(s.props)])),typeof s.props=="function"&&(i+=1)}),o},pE=(e,t,n,r)=>{var o;const i=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return nd(e,t,i)};function Xa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const hE=ff(),mE=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Cu({defaultTheme:e,theme:t,themeId:n}){return cE(t)?e:t[n]||t}function gE(e){return e?(t,n)=>n[e]:null}const fy=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(b({},t,{theme:Cu(b({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const s=nd(t,td(i),i);return[o,...s]}return o};function Dx(e={}){const{themeId:t,defaultTheme:n=hE,rootShouldForwardProp:r=Xa,slotShouldForwardProp:o=Xa}=e,i=s=>Jl(b({},s,{theme:Cu(b({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{GS(s,w=>w.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:p=gE(mE(c))}=a,x=te(a,lE),g=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,h=d||!1;let E,m=Xa;c==="Root"||c==="root"?m=r:c?m=o:uE(s)&&(m=void 0);const y=yx(s,b({shouldForwardProp:m,label:E},x)),C=(w,...S)=>{const P=S?S.map(D=>{if(typeof D=="function"&&D.__emotion_real!==D)return _=>fy({styledArg:D,props:_,defaultTheme:n,themeId:t});if(Gr(D)){let _=D,A;return D&&D.variants&&(A=D.variants,delete _.variants,_=$=>{let R=D;return nd($,td(A),A).forEach(L=>{R=nn(R,L)}),R}),_}return D}):[];let k=w;if(Gr(w)){let D;w&&w.variants&&(D=w.variants,delete k.variants,k=_=>{let A=w;return nd(_,td(D),D).forEach(R=>{A=nn(A,R)}),A})}else typeof w=="function"&&w.__emotion_real!==w&&(k=D=>fy({styledArg:w,props:D,defaultTheme:n,themeId:t}));l&&p&&P.push(D=>{const _=Cu(b({},D,{defaultTheme:n,themeId:t})),A=dE(l,_);if(A){const $={};return Object.entries(A).forEach(([R,O])=>{$[R]=typeof O=="function"?O(b({},D,{theme:_})):O}),p(D,$)}return null}),l&&!g&&P.push(D=>{const _=Cu(b({},D,{defaultTheme:n,themeId:t}));return pE(D,fE(l,_),_,l)}),h||P.push(i);const M=P.length-S.length;if(Array.isArray(w)&&M>0){const D=new Array(M).fill("");k=[...w,...D],k.raw=[...w.raw,...D]}const T=y(k,...P);return s.muiName&&(T.muiName=s.muiName),T};return y.withConfig&&(C.withConfig=y.withConfig),C}}const yE=Dx();function _x(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:gm(t.components[n].defaultProps,r)}function Ox({props:e,name:t,defaultTheme:n,themeId:r}){let o=ea(n);return r&&(o=o[r]||o),_x({theme:o,name:t,props:e})}function Sm(e,t=0,n=1){return li(e,t,n)}function vE(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ri(e){if(e.type)return e;if(e.charAt(0)==="#")return Ri(vE(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Bo(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Bo(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function hf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function xE(e){e=Ri(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),hf({type:a,values:l})}function py(e){e=Ri(e);let t=e.type==="hsl"||e.type==="hsla"?Ri(xE(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function CE(e,t){const n=py(e),r=py(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ne(e,t){return e=Ri(e),t=Sm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hf(e)}function Ix(e,t){if(e=Ri(e),t=Sm(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return hf(e)}function $x(e,t){if(e=Ri(e),t=Sm(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return hf(e)}const bE=v.createContext(null),Fx=bE;function Ax(){return v.useContext(Fx)}const wE=typeof Symbol=="function"&&Symbol.for,SE=wE?Symbol.for("mui.nested"):"__THEME_NESTED__";function kE(e,t){return typeof t=="function"?t(e):b({},e,t)}function EE(e){const{children:t,theme:n}=e,r=Ax(),o=v.useMemo(()=>{const i=r===null?n:kE(r,n);return i!=null&&(i[SE]=r!==null),i},[n,r]);return f.jsx(Fx.Provider,{value:o,children:t})}const hy={};function my(e,t,n,r=!1){return v.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?b({},t,{[e]:i}):i;return r?()=>s:s}return e?b({},t,{[e]:n}):b({},t,n)},[e,t,n,r])}function PE(e){const{children:t,theme:n,themeId:r}=e,o=pf(hy),i=Ax()||hy,s=my(r,o,n),a=my(r,i,n,!0);return f.jsx(EE,{theme:a,children:f.jsx(nf.Provider,{value:s,children:t})})}const ME=["component","direction","spacing","divider","children","className","useFlexGap"],TE=ff(),RE=yE("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function DE(e){return Ox({props:e,name:"MuiStack",defaultTheme:TE})}function _E(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(v.cloneElement(t,{key:`separator-${i}`})),r),[])}const OE=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],IE=({ownerState:e,theme:t})=>{let n=b({display:"flex",flexDirection:"column"},hr({theme:t},Up({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Cm(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Up({values:e.direction,base:o}),s=Up({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const p=c>0?i[u[c-1]]:"column";i[l]=p}}),n=nn(n,hr({theme:t},s,(l,c)=>e.useFlexGap?{gap:Ti(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${OE(c?i[c]:e.direction)}`]:Ti(r,l)}}))}return n=uk(t.breakpoints,n),n};function $E(e={}){const{createStyledComponent:t=RE,useThemeProps:n=DE,componentName:r="MuiStack"}=e,o=()=>De({root:["root"]},l=>_e(r,l),{}),i=t(IE);return v.forwardRef(function(l,c){const u=n(l),d=wm(u),{component:p="div",direction:x="column",spacing:g=0,divider:h,children:E,className:m,useFlexGap:y=!1}=d,C=te(d,ME),w={direction:x,spacing:g,useFlexGap:y},S=o();return f.jsx(i,b({as:p,ownerState:w,ref:c,className:ue(S.root,m)},C,{children:h?_E(E,h):E}))})}function FE(e,t){return b({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const AE=["mode","contrastThreshold","tonalOffset"],gy={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:El.white,default:El.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}},Yp={text:{primary:El.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:El.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 yy(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=$x(e.main,o):t==="dark"&&(e.dark=Ix(e.main,i)))}function LE(e="light"){return e==="dark"?{main:Hi[200],light:Hi[50],dark:Hi[400]}:{main:Hi[700],light:Hi[400],dark:Hi[800]}}function jE(e="light"){return e==="dark"?{main:Wi[200],light:Wi[50],dark:Wi[400]}:{main:Wi[500],light:Wi[300],dark:Wi[700]}}function NE(e="light"){return e==="dark"?{main:Bi[500],light:Bi[300],dark:Bi[700]}:{main:Bi[700],light:Bi[400],dark:Bi[800]}}function VE(e="light"){return e==="dark"?{main:Ui[400],light:Ui[300],dark:Ui[700]}:{main:Ui[700],light:Ui[500],dark:Ui[900]}}function zE(e="light"){return e==="dark"?{main:Yi[400],light:Yi[300],dark:Yi[700]}:{main:Yi[800],light:Yi[500],dark:Yi[900]}}function BE(e="light"){return e==="dark"?{main:ya[400],light:ya[300],dark:ya[700]}:{main:"#ed6c02",light:ya[500],dark:ya[900]}}function WE(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=te(e,AE),i=e.primary||LE(t),s=e.secondary||jE(t),a=e.error||NE(t),l=e.info||VE(t),c=e.success||zE(t),u=e.warning||BE(t);function d(h){return CE(h,Yp.text.primary)>=n?Yp.text.primary:gy.text.primary}const p=({color:h,name:E,mainShade:m=500,lightShade:y=300,darkShade:C=700})=>{if(h=b({},h),!h.main&&h[m]&&(h.main=h[m]),!h.hasOwnProperty("main"))throw new Error(Bo(11,E?` (${E})`:"",m));if(typeof h.main!="string")throw new Error(Bo(12,E?` (${E})`:"",JSON.stringify(h.main)));return yy(h,"light",y,r),yy(h,"dark",C,r),h.contrastText||(h.contrastText=d(h.main)),h},x={dark:Yp,light:gy};return nn(b({common:b({},El),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:N9,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},x[t]),o)}const HE=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function UE(e){return Math.round(e*1e5)/1e5}const vy={textTransform:"uppercase"},xy='"Roboto", "Helvetica", "Arial", sans-serif';function YE(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=xy,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=te(n,HE),x=o/14,g=d||(m=>`${m/c*x}rem`),h=(m,y,C,w,S)=>b({fontFamily:r,fontWeight:m,fontSize:g(y),lineHeight:C},r===xy?{letterSpacing:`${UE(w/y)}em`}:{},S,u),E={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(s,48,1.167,0),h4:h(s,34,1.235,.25),h5:h(s,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(s,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(s,16,1.5,.15),body2:h(s,14,1.43,.15),button:h(a,14,1.75,.4,vy),caption:h(s,12,1.66,.4),overline:h(s,12,2.66,1,vy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nn(b({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},E),p,{clone:!1})}const GE=.2,qE=.14,KE=.12;function mt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${GE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${qE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${KE})`].join(",")}const ZE=["none",mt(0,2,1,-1,0,1,1,0,0,1,3,0),mt(0,3,1,-2,0,2,2,0,0,1,5,0),mt(0,3,3,-2,0,3,4,0,0,1,8,0),mt(0,2,4,-1,0,4,5,0,0,1,10,0),mt(0,3,5,-1,0,5,8,0,0,1,14,0),mt(0,3,5,-1,0,6,10,0,0,1,18,0),mt(0,4,5,-2,0,7,10,1,0,2,16,1),mt(0,5,5,-3,0,8,10,1,0,3,14,2),mt(0,5,6,-3,0,9,12,1,0,3,16,2),mt(0,6,6,-3,0,10,14,1,0,4,18,3),mt(0,6,7,-4,0,11,15,1,0,4,20,3),mt(0,7,8,-4,0,12,17,2,0,5,22,4),mt(0,7,8,-4,0,13,19,2,0,5,24,4),mt(0,7,9,-4,0,14,21,2,0,5,26,4),mt(0,8,9,-5,0,15,22,2,0,6,28,5),mt(0,8,10,-5,0,16,24,2,0,6,30,5),mt(0,8,11,-5,0,17,26,2,0,6,32,5),mt(0,9,11,-5,0,18,28,2,0,7,34,6),mt(0,9,12,-6,0,19,29,2,0,7,36,6),mt(0,10,13,-6,0,20,31,3,0,8,38,7),mt(0,10,13,-6,0,21,33,3,0,8,40,7),mt(0,10,14,-6,0,22,35,3,0,8,42,7),mt(0,11,14,-7,0,23,36,3,0,9,44,8),mt(0,11,15,-7,0,24,38,3,0,9,46,8)],XE=["duration","easing","delay"],JE={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},QE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Cy(e){return`${Math.round(e)}ms`}function eP(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function tP(e){const t=b({},JE,e.easing),n=b({},QE,e.duration);return b({getAutoHeightDuration:eP,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return te(i,XE),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:Cy(s)} ${a} ${typeof l=="string"?l:Cy(l)}`).join(",")}},e,{easing:t,duration:n})}const nP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},rP=nP,oP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function sn(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=te(e,oP);if(e.vars)throw new Error(Bo(18));const a=WE(r),l=ff(e);let c=nn(l,{mixins:FE(l.breakpoints,n),palette:a,shadows:ZE.slice(),typography:YE(a,i),transitions:tP(o),zIndex:b({},rP)});return c=nn(c,s),c=t.reduce((u,d)=>nn(u,d),c),c.unstable_sxConfig=b({},df,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return Jl({sx:d,theme:this})},c}function iP(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function sP(e){return parseFloat(e)}const aP=sn(),mf=aP;function Le(){const e=ea(mf);return e[Pi]||e}function Re({props:e,name:t}){return Ox({props:e,name:t,defaultTheme:mf,themeId:Pi})}const an=e=>Xa(e)&&e!=="classes",gf=Xa,Y=Dx({themeId:Pi,defaultTheme:mf,rootShouldForwardProp:an}),lP=["theme"];function Lx(e){let{theme:t}=e,n=te(e,lP);const r=t[Pi];return f.jsx(PE,b({},n,{themeId:r?Pi:void 0,theme:r||t}))}const by=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function cP(e){return _e("MuiSvgIcon",e)}Pe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const uP=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],dP=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${oe(t)}`,`fontSize${oe(n)}`]};return De(o,cP,r)},fP=Y("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${oe(n.color)}`],t[`fontSize${oe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,l,c,u,d,p,x,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),T0=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,x=te(r,uP),g=v.isValidElement(o)&&o.type==="svg",h=b({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:g}),E={};u||(E.viewBox=p);const m=dP(h);return f.jsxs(fP,b({as:a,className:ue(m.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},E,x,g&&o.props,{ownerState:h,children:[g?o.props.children:o,d?f.jsx("title",{children:d}):null]}))});T0.muiName="SvgIcon";function Xt(e,t){function n(r,o){return f.jsx(T0,b({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=T0.muiName,v.memo(v.forwardRef(n))}var it={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var km=Symbol.for("react.element"),Em=Symbol.for("react.portal"),yf=Symbol.for("react.fragment"),vf=Symbol.for("react.strict_mode"),xf=Symbol.for("react.profiler"),Cf=Symbol.for("react.provider"),bf=Symbol.for("react.context"),pP=Symbol.for("react.server_context"),wf=Symbol.for("react.forward_ref"),Sf=Symbol.for("react.suspense"),kf=Symbol.for("react.suspense_list"),Ef=Symbol.for("react.memo"),Pf=Symbol.for("react.lazy"),hP=Symbol.for("react.offscreen"),jx;jx=Symbol.for("react.module.reference");function tr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case km:switch(e=e.type,e){case yf:case xf:case vf:case Sf:case kf:return e;default:switch(e=e&&e.$$typeof,e){case pP:case bf:case wf:case Pf:case Ef:case Cf:return e;default:return t}}case Em:return t}}}it.ContextConsumer=bf;it.ContextProvider=Cf;it.Element=km;it.ForwardRef=wf;it.Fragment=yf;it.Lazy=Pf;it.Memo=Ef;it.Portal=Em;it.Profiler=xf;it.StrictMode=vf;it.Suspense=Sf;it.SuspenseList=kf;it.isAsyncMode=function(){return!1};it.isConcurrentMode=function(){return!1};it.isContextConsumer=function(e){return tr(e)===bf};it.isContextProvider=function(e){return tr(e)===Cf};it.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===km};it.isForwardRef=function(e){return tr(e)===wf};it.isFragment=function(e){return tr(e)===yf};it.isLazy=function(e){return tr(e)===Pf};it.isMemo=function(e){return tr(e)===Ef};it.isPortal=function(e){return tr(e)===Em};it.isProfiler=function(e){return tr(e)===xf};it.isStrictMode=function(e){return tr(e)===vf};it.isSuspense=function(e){return tr(e)===Sf};it.isSuspenseList=function(e){return tr(e)===kf};it.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yf||e===xf||e===vf||e===Sf||e===kf||e===hP||typeof e=="object"&&e!==null&&(e.$$typeof===Pf||e.$$typeof===Ef||e.$$typeof===Cf||e.$$typeof===bf||e.$$typeof===wf||e.$$typeof===jx||e.getModuleId!==void 0)};it.typeOf=tr;function R0(e,t){return R0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},R0(e,t)}function Pm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,R0(e,t)}function mP(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function gP(e,t){e.classList?e.classList.add(t):mP(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function wy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function yP(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=wy(e.className,t):e.setAttribute("class",wy(e.className&&e.className.baseVal||"",t))}const Sy={disabled:!1},rd=Fe.createContext(null);var Nx=function(t){return t.scrollTop},Na="unmounted",oi="exited",ii="entering",Qi="entered",D0="exiting",mo=function(e){Pm(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=oi,i.appearStatus=ii):l=Qi:r.unmountOnExit||r.mountOnEnter?l=Na:l=oi,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Na?{status:oi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==ii&&s!==Qi&&(i=ii):(s===ii||s===Qi)&&(i=D0)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ii){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:_c.findDOMNode(this);s&&Nx(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oi&&this.setState({status:Na})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[_c.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),p=a?d.appear:d.enter;if(!o&&!s||Sy.disabled){this.safeSetState({status:Qi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ii},function(){i.props.onEntering(c,u),i.onTransitionEnd(p,function(){i.safeSetState({status:Qi},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:_c.findDOMNode(this);if(!i||Sy.disabled){this.safeSetState({status:oi},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:D0},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:oi},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:_c.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Na)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=te(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Fe.createElement(rd.Provider,{value:null},typeof s=="function"?s(o,a):Fe.cloneElement(Fe.Children.only(s),a))},t}(Fe.Component);mo.contextType=rd;mo.propTypes={};function Gi(){}mo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gi,onEntering:Gi,onEntered:Gi,onExit:Gi,onExiting:Gi,onExited:Gi};mo.UNMOUNTED=Na;mo.EXITED=oi;mo.ENTERING=ii;mo.ENTERED=Qi;mo.EXITING=D0;const Mm=mo;var vP=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return gP(t,r)})},Gp=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return yP(t,r)})},Tm=function(e){Pm(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1];r.removeClasses(u,"exit"),r.addClass(u,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1],p=d?"appear":"enter";r.addClass(u,p,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1],p=d?"appear":"enter";r.removeClasses(u,p),r.addClass(u,p,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+a:l[a],p=c?d+"-active":l[a+"Active"],x=c?d+"-done":l[a+"Done"];return{baseClassName:d,activeClassName:p,doneClassName:x}},r}var n=t.prototype;return n.addClass=function(o,i,s){var a=this.getClassNames(i)[s+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&s==="done"&&c&&(a+=" "+c),s==="active"&&o&&Nx(o),a&&(this.appliedClasses[i][s]=a,vP(o,a))},n.removeClasses=function(o,i){var s=this.appliedClasses[i],a=s.base,l=s.active,c=s.done;this.appliedClasses[i]={},a&&Gp(o,a),l&&Gp(o,l),c&&Gp(o,c)},n.render=function(){var o=this.props;o.classNames;var i=te(o,["classNames"]);return Fe.createElement(Mm,b({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Fe.Component);Tm.defaultProps={classNames:""};Tm.propTypes={};const xP=Tm;function CP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rm(e,t){var n=function(i){return t&&v.isValidElement(i)?t(i):i},r=Object.create(null);return e&&v.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function bP(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;s<r[l].length;s++){var c=r[l][s];a[r[l][s]]=n(c)}a[l]=n(l)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function pi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function wP(e,t){return Rm(e.children,function(n){return v.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:pi(n,"appear",e),enter:pi(n,"enter",e),exit:pi(n,"exit",e)})})}function SP(e,t,n){var r=Rm(e.children),o=bP(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(v.isValidElement(s)){var a=i in t,l=i in r,c=t[i],u=v.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[i]=v.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:pi(s,"exit",e),enter:pi(s,"enter",e)}):!l&&a&&!u?o[i]=v.cloneElement(s,{in:!1}):l&&a&&v.isValidElement(c)&&(o[i]=v.cloneElement(s,{onExited:n.bind(null,s),in:c.props.in,exit:pi(s,"exit",e),enter:pi(s,"enter",e)}))}}),o}var kP=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},EP={component:"div",childFactory:function(t){return t}},Dm=function(e){Pm(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(CP(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,l=i.firstRender;return{children:l?wP(o,a):SP(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=Rm(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var l=b({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=te(o,["component","childFactory"]),l=this.state.contextValue,c=kP(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?Fe.createElement(rd.Provider,{value:l},c):Fe.createElement(rd.Provider,{value:l},Fe.createElement(i,a,c))},t}(Fe.Component);Dm.propTypes={};Dm.defaultProps=EP;const _m=Dm,Vx=e=>e.scrollTop;function od(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function PP(e){return _e("MuiPaper",e)}Pe("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"]);const MP=["className","component","elevation","square","variant"],TP=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return De(i,PP,o)},RP=Y("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return b({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&b({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ne("#fff",by(t.elevation))}, ${Ne("#fff",by(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),DP=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=te(r,MP),u=b({},r,{component:i,elevation:s,square:a,variant:l}),d=TP(u);return f.jsx(RP,b({as:i,ownerState:u,className:ue(d.root,o),ref:n},c))}),Ql=DP;function _r(e){return typeof e=="string"}function _P(e,t,n){return e===void 0||_r(e)?t:b({},t,{ownerState:b({},t.ownerState,n)})}function OP(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const IP={disableDefaultClasses:!1},$P=v.createContext(IP);function FP(e){const{disableDefaultClasses:t}=v.useContext($P);return n=>t?"":e(n)}function Ja(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Om(e,t,n){return typeof e=="function"?e(t,n):e}function ky(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function AP(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const x=ue(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=b({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=b({},n,o,r);return x.length>0&&(h.className=x),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:void 0}}const s=Ja(b({},o,r)),a=ky(r),l=ky(o),c=t(s),u=ue(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=b({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=b({},c,n,l,a);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}const LP=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function We(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=te(e,LP),a=i?{}:Om(r,o),{props:l,internalRef:c}=AP(b({},s,{externalSlotProps:a})),u=tt(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return _P(n,b({},l,{ref:u}),o)}function jP(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:c}=e,[u,d]=v.useState(!1),p=ue(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),x={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},g=ue(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&d(!0),v.useEffect(()=>{if(!a&&l!=null){const h=setTimeout(l,c);return()=>{clearTimeout(h)}}},[l,a,c]),f.jsx("span",{className:p,style:x,children:f.jsx("span",{className:g})})}const Vn=Pe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),NP=["center","classes","className"];let Mf=e=>e,Ey,Py,My,Ty;const _0=550,VP=80,zP=Zl(Ey||(Ey=Mf`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`)),BP=Zl(Py||(Py=Mf`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`)),WP=Zl(My||(My=Mf`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`)),HP=Y("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),UP=Y(jP,{name:"MuiTouchRipple",slot:"Ripple"})(Ty||(Ty=Mf`
opacity: 0;
position: absolute;
&.${0} {
opacity: 0.3;
transform: scale(1);
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
&.${0} {
animation-duration: ${0}ms;
}
& .${0} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${0} {
opacity: 0;
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
& .${0} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${0};
animation-duration: 2500ms;
animation-timing-function: ${0};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`),Vn.rippleVisible,zP,_0,({theme:e})=>e.transitions.easing.easeInOut,Vn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Vn.child,Vn.childLeaving,BP,_0,({theme:e})=>e.transitions.easing.easeInOut,Vn.childPulsate,WP,({theme:e})=>e.transitions.easing.easeInOut),YP=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=te(r,NP),[l,c]=v.useState([]),u=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=v.useRef(!1),x=v.useRef(0),g=v.useRef(null),h=v.useRef(null);v.useEffect(()=>()=>{x.current&&clearTimeout(x.current)},[]);const E=v.useCallback(w=>{const{pulsate:S,rippleX:P,rippleY:k,rippleSize:M,cb:T}=w;c(D=>[...D,f.jsx(UP,{classes:{ripple:ue(i.ripple,Vn.ripple),rippleVisible:ue(i.rippleVisible,Vn.rippleVisible),ripplePulsate:ue(i.ripplePulsate,Vn.ripplePulsate),child:ue(i.child,Vn.child),childLeaving:ue(i.childLeaving,Vn.childLeaving),childPulsate:ue(i.childPulsate,Vn.childPulsate)},timeout:_0,pulsate:S,rippleX:P,rippleY:k,rippleSize:M},u.current)]),u.current+=1,d.current=T},[i]),m=v.useCallback((w={},S={},P=()=>{})=>{const{pulsate:k=!1,center:M=o||S.pulsate,fakeElement:T=!1}=S;if((w==null?void 0:w.type)==="mousedown"&&p.current){p.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(p.current=!0);const D=T?null:h.current,_=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,$,R;if(M||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)A=Math.round(_.width/2),$=Math.round(_.height/2);else{const{clientX:O,clientY:L}=w.touches&&w.touches.length>0?w.touches[0]:w;A=Math.round(O-_.left),$=Math.round(L-_.top)}if(M)R=Math.sqrt((2*_.width**2+_.height**2)/3),R%2===0&&(R+=1);else{const O=Math.max(Math.abs((D?D.clientWidth:0)-A),A)*2+2,L=Math.max(Math.abs((D?D.clientHeight:0)-$),$)*2+2;R=Math.sqrt(O**2+L**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{E({pulsate:k,rippleX:A,rippleY:$,rippleSize:R,cb:P})},x.current=setTimeout(()=>{g.current&&(g.current(),g.current=null)},VP)):E({pulsate:k,rippleX:A,rippleY:$,rippleSize:R,cb:P})},[o,E]),y=v.useCallback(()=>{m({},{pulsate:!0})},[m]),C=v.useCallback((w,S)=>{if(clearTimeout(x.current),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,x.current=setTimeout(()=>{C(w,S)});return}g.current=null,c(P=>P.length>0?P.slice(1):P),d.current=S},[]);return v.useImperativeHandle(n,()=>({pulsate:y,start:m,stop:C}),[y,m,C]),f.jsx(HP,b({className:ue(Vn.root,i.root,s),ref:h},a,{children:f.jsx(_m,{component:null,exit:!0,children:l})}))}),GP=YP;function qP(e){return _e("MuiButtonBase",e)}const KP=Pe("MuiButtonBase",["root","disabled","focusVisible"]),ZP=["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"],XP=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=De({root:["root",t&&"disabled",n&&"focusVisible"]},qP,o);return n&&r&&(s.root+=` ${r}`),s},JP=Y("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${KP.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),QP=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:x="a",onBlur:g,onClick:h,onContextMenu:E,onDragLeave:m,onFocus:y,onFocusVisible:C,onKeyDown:w,onKeyUp:S,onMouseDown:P,onMouseLeave:k,onMouseUp:M,onTouchEnd:T,onTouchMove:D,onTouchStart:_,tabIndex:A=0,TouchRippleProps:$,touchRippleRef:R,type:O}=r,L=te(r,ZP),V=v.useRef(null),I=v.useRef(null),F=tt(I,R),{isFocusVisibleRef:W,onFocus:se,onBlur:B,ref:H}=of(),[z,ne]=v.useState(!1);c&&z&&ne(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{ne(!0),V.current.focus()}}),[]);const[ce,q]=v.useState(!1);v.useEffect(()=>{q(!0)},[]);const me=ce&&!u&&!c;v.useEffect(()=>{z&&p&&!u&&ce&&I.current.pulsate()},[u,p,z,ce]);function Se(ye,qe,Ve=d){return Me(He=>(qe&&qe(He),!Ve&&I.current&&I.current[ye](He),!0))}const Ee=Se("start",P),re=Se("stop",E),ee=Se("stop",m),j=Se("stop",M),G=Se("stop",ye=>{z&&ye.preventDefault(),k&&k(ye)}),Z=Se("start",_),xe=Se("stop",T),Ie=Se("stop",D),le=Se("stop",ye=>{B(ye),W.current===!1&&ne(!1),g&&g(ye)},!1),pe=Me(ye=>{V.current||(V.current=ye.currentTarget),se(ye),W.current===!0&&(ne(!0),C&&C(ye)),y&&y(ye)}),U=()=>{const ye=V.current;return l&&l!=="button"&&!(ye.tagName==="A"&&ye.href)},Q=v.useRef(!1),we=Me(ye=>{p&&!Q.current&&z&&I.current&&ye.key===" "&&(Q.current=!0,I.current.stop(ye,()=>{I.current.start(ye)})),ye.target===ye.currentTarget&&U()&&ye.key===" "&&ye.preventDefault(),w&&w(ye),ye.target===ye.currentTarget&&U()&&ye.key==="Enter"&&!c&&(ye.preventDefault(),h&&h(ye))}),$e=Me(ye=>{p&&ye.key===" "&&I.current&&z&&!ye.defaultPrevented&&(Q.current=!1,I.current.stop(ye,()=>{I.current.pulsate(ye)})),S&&S(ye),h&&ye.target===ye.currentTarget&&U()&&ye.key===" "&&!ye.defaultPrevented&&h(ye)});let ke=l;ke==="button"&&(L.href||L.to)&&(ke=x);const X={};ke==="button"?(X.type=O===void 0?"button":O,X.disabled=c):(!L.href&&!L.to&&(X.role="button"),c&&(X["aria-disabled"]=c));const he=tt(n,H,V),ve=b({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:A,focusVisible:z}),ge=XP(ve);return f.jsxs(JP,b({as:ke,className:ue(ge.root,a),ownerState:ve,onBlur:le,onClick:h,onContextMenu:re,onFocus:pe,onKeyDown:we,onKeyUp:$e,onMouseDown:Ee,onMouseLeave:G,onMouseUp:j,onDragLeave:ee,onTouchEnd:xe,onTouchMove:Ie,onTouchStart:Z,ref:he,tabIndex:c?-1:A,type:O},X,L,{children:[s,me?f.jsx(GP,b({ref:F,center:i},$)):null]}))}),Ir=QP;function eM(e){return _e("MuiIconButton",e)}const tM=Pe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),nM=["edge","children","className","color","disabled","disableFocusRipple","size"],rM=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${oe(r)}`,o&&`edge${oe(o)}`,`size${oe(i)}`]};return De(s,eM,t)},oM=Y(Ir,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${oe(n.color)}`],n.edge&&t[`edge${oe(n.edge)}`],t[`size${oe(n.size)}`]]}})(({theme:e,ownerState:t})=>b({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return b({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&b({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":b({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${tM.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),iM=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=te(r,nM),p=b({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:u}),x=rM(p);return f.jsx(oM,b({className:ue(x.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},d,{children:i}))}),ta=iM;function sM(e){return _e("MuiTypography",e)}Pe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const aM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],lM=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${oe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return De(a,sM,s)},cM=Y("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${oe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>b({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Ry={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},uM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},dM=e=>uM[e]||e,fM=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTypography"}),o=dM(r.color),i=wm(b({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:p="body1",variantMapping:x=Ry}=i,g=te(i,aM),h=b({},i,{align:s,color:o,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:p,variantMapping:x}),E=l||(d?"p":x[p]||Ry[p])||"span",m=lM(h);return f.jsx(cM,b({as:E,ref:n,ownerState:h,className:ue(m.root,a)},g))}),Te=fM,zx="base";function pM(e){return`${zx}--${e}`}function hM(e,t){return`${zx}-${e}-${t}`}function Bx(e,t){const n=kx[t];return n?pM(n):hM(e,t)}function mM(e,t){const n={};return t.forEach(r=>{n[r]=Bx(e,r)}),n}const gM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function yM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function vM(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function xM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||vM(e))}function CM(e){const t=[],n=[];return Array.from(e.querySelectorAll(gM)).forEach((r,o)=>{const i=yM(r);i===-1||!xM(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function bM(){return!0}function Wx(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=CM,isEnabled:s=bM,open:a}=e,l=v.useRef(!1),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),p=v.useRef(null),x=v.useRef(!1),g=v.useRef(null),h=tt(t.ref,g),E=v.useRef(null);v.useEffect(()=>{!a||!g.current||(x.current=!n)},[n,a]),v.useEffect(()=>{if(!a||!g.current)return;const C=Pt(g.current);return g.current.contains(C.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),x.current&&g.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),v.useEffect(()=>{if(!a||!g.current)return;const C=Pt(g.current),w=k=>{E.current=k,!(r||!s()||k.key!=="Tab")&&C.activeElement===g.current&&k.shiftKey&&(l.current=!0,u.current&&u.current.focus())},S=()=>{const k=g.current;if(k===null)return;if(!C.hasFocus()||!s()||l.current){l.current=!1;return}if(k.contains(C.activeElement)||r&&C.activeElement!==c.current&&C.activeElement!==u.current)return;if(C.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!x.current)return;let M=[];if((C.activeElement===c.current||C.activeElement===u.current)&&(M=i(g.current)),M.length>0){var T,D;const _=!!((T=E.current)!=null&&T.shiftKey&&((D=E.current)==null?void 0:D.key)==="Tab"),A=M[0],$=M[M.length-1];typeof A!="string"&&typeof $!="string"&&(_?$.focus():A.focus())}else k.focus()};C.addEventListener("focusin",S),C.addEventListener("keydown",w,!0);const P=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(P),C.removeEventListener("focusin",S),C.removeEventListener("keydown",w,!0)}},[n,r,o,s,a,i]);const m=C=>{d.current===null&&(d.current=C.relatedTarget),x.current=!0,p.current=C.target;const w=t.props.onFocus;w&&w(C)},y=C=>{d.current===null&&(d.current=C.relatedTarget),x.current=!0};return f.jsxs(v.Fragment,{children:[f.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:h,onFocus:m}),f.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var Cn="top",Xn="bottom",Jn="right",bn="left",Im="auto",ec=[Cn,Xn,Jn,bn],Vs="start",Rl="end",wM="clippingParents",Hx="viewport",xa="popper",SM="reference",Dy=ec.reduce(function(e,t){return e.concat([t+"-"+Vs,t+"-"+Rl])},[]),Ux=[].concat(ec,[Im]).reduce(function(e,t){return e.concat([t,t+"-"+Vs,t+"-"+Rl])},[]),kM="beforeRead",EM="read",PM="afterRead",MM="beforeMain",TM="main",RM="afterMain",DM="beforeWrite",_M="write",OM="afterWrite",IM=[kM,EM,PM,MM,TM,RM,DM,_M,OM];function $r(e){return e?(e.nodeName||"").toLowerCase():null}function _n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Di(e){var t=_n(e).Element;return e instanceof t||e instanceof Element}function qn(e){var t=_n(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $m(e){if(typeof ShadowRoot>"u")return!1;var t=_n(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $M(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!qn(i)||!$r(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function FM(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(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!qn(o)||!$r(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const AM={name:"applyStyles",enabled:!0,phase:"write",fn:$M,effect:FM,requires:["computeStyles"]};function Or(e){return e.split("-")[0]}var yi=Math.max,id=Math.min,zs=Math.round;function O0(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Yx(){return!/^((?!chrome|android).)*safari/i.test(O0())}function Bs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&qn(e)&&(o=e.offsetWidth>0&&zs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zs(r.height)/e.offsetHeight||1);var s=Di(e)?_n(e):window,a=s.visualViewport,l=!Yx()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,p=r.height/i;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function Fm(e){var t=Bs(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 Gx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$m(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function co(e){return _n(e).getComputedStyle(e)}function LM(e){return["table","td","th"].indexOf($r(e))>=0}function qo(e){return((Di(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tf(e){return $r(e)==="html"?e:e.assignedSlot||e.parentNode||($m(e)?e.host:null)||qo(e)}function _y(e){return!qn(e)||co(e).position==="fixed"?null:e.offsetParent}function jM(e){var t=/firefox/i.test(O0()),n=/Trident/i.test(O0());if(n&&qn(e)){var r=co(e);if(r.position==="fixed")return null}var o=Tf(e);for($m(o)&&(o=o.host);qn(o)&&["html","body"].indexOf($r(o))<0;){var i=co(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function tc(e){for(var t=_n(e),n=_y(e);n&&LM(n)&&co(n).position==="static";)n=_y(n);return n&&($r(n)==="html"||$r(n)==="body"&&co(n).position==="static")?t:n||jM(e)||t}function Am(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qa(e,t,n){return yi(e,id(t,n))}function NM(e,t,n){var r=Qa(e,t,n);return r>n?n:r}function qx(){return{top:0,right:0,bottom:0,left:0}}function Kx(e){return Object.assign({},qx(),e)}function Zx(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var VM=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Kx(typeof t!="number"?t:Zx(t,ec))};function zM(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Or(n.placement),l=Am(a),c=[bn,Jn].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!s)){var d=VM(o.padding,n),p=Fm(i),x=l==="y"?Cn:bn,g=l==="y"?Xn:Jn,h=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],E=s[l]-n.rects.reference[l],m=tc(i),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,C=h/2-E/2,w=d[x],S=y-p[u]-d[g],P=y/2-p[u]/2+C,k=Qa(w,P,S),M=l;n.modifiersData[r]=(t={},t[M]=k,t.centerOffset=k-P,t)}}function BM(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Gx(t.elements.popper,o)&&(t.elements.arrow=o))}const WM={name:"arrow",enabled:!0,phase:"main",fn:zM,effect:BM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ws(e){return e.split("-")[1]}var HM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function UM(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zs(n*o)/o||0,y:zs(r*o)/o||0}}function Oy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,x=p===void 0?0:p,g=s.y,h=g===void 0?0:g,E=typeof u=="function"?u({x,y:h}):{x,y:h};x=E.x,h=E.y;var m=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),C=bn,w=Cn,S=window;if(c){var P=tc(n),k="clientHeight",M="clientWidth";if(P===_n(n)&&(P=qo(n),co(P).position!=="static"&&a==="absolute"&&(k="scrollHeight",M="scrollWidth")),P=P,o===Cn||(o===bn||o===Jn)&&i===Rl){w=Xn;var T=d&&P===S&&S.visualViewport?S.visualViewport.height:P[k];h-=T-r.height,h*=l?1:-1}if(o===bn||(o===Cn||o===Xn)&&i===Rl){C=Jn;var D=d&&P===S&&S.visualViewport?S.visualViewport.width:P[M];x-=D-r.width,x*=l?1:-1}}var _=Object.assign({position:a},c&&HM),A=u===!0?UM({x,y:h},_n(n)):{x,y:h};if(x=A.x,h=A.y,l){var $;return Object.assign({},_,($={},$[w]=y?"0":"",$[C]=m?"0":"",$.transform=(S.devicePixelRatio||1)<=1?"translate("+x+"px, "+h+"px)":"translate3d("+x+"px, "+h+"px, 0)",$))}return Object.assign({},_,(t={},t[w]=y?h+"px":"",t[C]=m?x+"px":"",t.transform="",t))}function YM(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Or(t.placement),variation:Ws(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Oy(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Oy(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const GM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:YM,data:{}};var Ic={passive:!0};function qM(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=_n(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ic)}),a&&l.addEventListener("resize",n.update,Ic),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ic)}),a&&l.removeEventListener("resize",n.update,Ic)}}const KM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qM,data:{}};var ZM={left:"right",right:"left",bottom:"top",top:"bottom"};function bu(e){return e.replace(/left|right|bottom|top/g,function(t){return ZM[t]})}var XM={start:"end",end:"start"};function Iy(e){return e.replace(/start|end/g,function(t){return XM[t]})}function Lm(e){var t=_n(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function jm(e){return Bs(qo(e)).left+Lm(e).scrollLeft}function JM(e,t){var n=_n(e),r=qo(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Yx();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+jm(e),y:l}}function QM(e){var t,n=qo(e),r=Lm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=yi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=yi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+jm(e),l=-r.scrollTop;return co(o||n).direction==="rtl"&&(a+=yi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Nm(e){var t=co(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Xx(e){return["html","body","#document"].indexOf($r(e))>=0?e.ownerDocument.body:qn(e)&&Nm(e)?e:Xx(Tf(e))}function el(e,t){var n;t===void 0&&(t=[]);var r=Xx(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=_n(r),s=o?[i].concat(i.visualViewport||[],Nm(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(el(Tf(s)))}function I0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eT(e,t){var n=Bs(e,!1,t==="fixed");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}function $y(e,t,n){return t===Hx?I0(JM(e,n)):Di(t)?eT(t,n):I0(QM(qo(e)))}function tT(e){var t=el(Tf(e)),n=["absolute","fixed"].indexOf(co(e).position)>=0,r=n&&qn(e)?tc(e):e;return Di(r)?t.filter(function(o){return Di(o)&&Gx(o,r)&&$r(o)!=="body"}):[]}function nT(e,t,n,r){var o=t==="clippingParents"?tT(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var u=$y(e,c,r);return l.top=yi(u.top,l.top),l.right=id(u.right,l.right),l.bottom=id(u.bottom,l.bottom),l.left=yi(u.left,l.left),l},$y(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Jx(e){var t=e.reference,n=e.element,r=e.placement,o=r?Or(r):null,i=r?Ws(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Cn:l={x:s,y:t.y-n.height};break;case Xn:l={x:s,y:t.y+t.height};break;case Jn:l={x:t.x+t.width,y:a};break;case bn:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?Am(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Vs:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Rl:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Dl(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?wM:a,c=n.rootBoundary,u=c===void 0?Hx:c,d=n.elementContext,p=d===void 0?xa:d,x=n.altBoundary,g=x===void 0?!1:x,h=n.padding,E=h===void 0?0:h,m=Kx(typeof E!="number"?E:Zx(E,ec)),y=p===xa?SM:xa,C=e.rects.popper,w=e.elements[g?y:p],S=nT(Di(w)?w:w.contextElement||qo(e.elements.popper),l,u,s),P=Bs(e.elements.reference),k=Jx({reference:P,element:C,strategy:"absolute",placement:o}),M=I0(Object.assign({},C,k)),T=p===xa?M:P,D={top:S.top-T.top+m.top,bottom:T.bottom-S.bottom+m.bottom,left:S.left-T.left+m.left,right:T.right-S.right+m.right},_=e.modifiersData.offset;if(p===xa&&_){var A=_[o];Object.keys(D).forEach(function($){var R=[Jn,Xn].indexOf($)>=0?1:-1,O=[Cn,Xn].indexOf($)>=0?"y":"x";D[$]+=A[O]*R})}return D}function rT(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Ux:l,u=Ws(r),d=u?a?Dy:Dy.filter(function(g){return Ws(g)===u}):ec,p=d.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=d);var x=p.reduce(function(g,h){return g[h]=Dl(e,{placement:h,boundary:o,rootBoundary:i,padding:s})[Or(h)],g},{});return Object.keys(x).sort(function(g,h){return x[g]-x[h]})}function oT(e){if(Or(e)===Im)return[];var t=bu(e);return[Iy(e),t,Iy(t)]}function iT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,x=n.flipVariations,g=x===void 0?!0:x,h=n.allowedAutoPlacements,E=t.options.placement,m=Or(E),y=m===E,C=l||(y||!g?[bu(E)]:oT(E)),w=[E].concat(C).reduce(function(z,ne){return z.concat(Or(ne)===Im?rT(t,{placement:ne,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:h}):ne)},[]),S=t.rects.reference,P=t.rects.popper,k=new Map,M=!0,T=w[0],D=0;D<w.length;D++){var _=w[D],A=Or(_),$=Ws(_)===Vs,R=[Cn,Xn].indexOf(A)>=0,O=R?"width":"height",L=Dl(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),V=R?$?Jn:bn:$?Xn:Cn;S[O]>P[O]&&(V=bu(V));var I=bu(V),F=[];if(i&&F.push(L[A]<=0),a&&F.push(L[V]<=0,L[I]<=0),F.every(function(z){return z})){T=_,M=!1;break}k.set(_,F)}if(M)for(var W=g?3:1,se=function(ne){var ce=w.find(function(q){var me=k.get(q);if(me)return me.slice(0,ne).every(function(Se){return Se})});if(ce)return T=ce,"break"},B=W;B>0;B--){var H=se(B);if(H==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const sT={name:"flip",enabled:!0,phase:"main",fn:iT,requiresIfExists:["offset"],data:{_skip:!1}};function Fy(e,t,n){return n===void 0&&(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 Ay(e){return[Cn,Jn,Xn,bn].some(function(t){return e[t]>=0})}function aT(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Dl(t,{elementContext:"reference"}),a=Dl(t,{altBoundary:!0}),l=Fy(s,r),c=Fy(a,o,i),u=Ay(l),d=Ay(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const lT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:aT};function cT(e,t,n){var r=Or(e),o=[bn,Cn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[bn,Jn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function uT(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Ux.reduce(function(u,d){return u[d]=cT(d,t.rects,i),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const dT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uT};function fT(e){var t=e.state,n=e.name;t.modifiersData[n]=Jx({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const pT={name:"popperOffsets",enabled:!0,phase:"read",fn:fT,data:{}};function hT(e){return e==="x"?"y":"x"}function mT(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,x=p===void 0?!0:p,g=n.tetherOffset,h=g===void 0?0:g,E=Dl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),m=Or(t.placement),y=Ws(t.placement),C=!y,w=Am(m),S=hT(w),P=t.modifiersData.popperOffsets,k=t.rects.reference,M=t.rects.popper,T=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,D=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(P){if(i){var $,R=w==="y"?Cn:bn,O=w==="y"?Xn:Jn,L=w==="y"?"height":"width",V=P[w],I=V+E[R],F=V-E[O],W=x?-M[L]/2:0,se=y===Vs?k[L]:M[L],B=y===Vs?-M[L]:-k[L],H=t.elements.arrow,z=x&&H?Fm(H):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qx(),ce=ne[R],q=ne[O],me=Qa(0,k[L],z[L]),Se=C?k[L]/2-W-me-ce-D.mainAxis:se-me-ce-D.mainAxis,Ee=C?-k[L]/2+W+me+q+D.mainAxis:B+me+q+D.mainAxis,re=t.elements.arrow&&tc(t.elements.arrow),ee=re?w==="y"?re.clientTop||0:re.clientLeft||0:0,j=($=_==null?void 0:_[w])!=null?$:0,G=V+Se-j-ee,Z=V+Ee-j,xe=Qa(x?id(I,G):I,V,x?yi(F,Z):F);P[w]=xe,A[w]=xe-V}if(a){var Ie,le=w==="x"?Cn:bn,pe=w==="x"?Xn:Jn,U=P[S],Q=S==="y"?"height":"width",we=U+E[le],$e=U-E[pe],ke=[Cn,bn].indexOf(m)!==-1,X=(Ie=_==null?void 0:_[S])!=null?Ie:0,he=ke?we:U-k[Q]-M[Q]-X+D.altAxis,ve=ke?U+k[Q]+M[Q]-X-D.altAxis:$e,ge=x&&ke?NM(he,U,ve):Qa(x?he:we,U,x?ve:$e);P[S]=ge,A[S]=ge-U}t.modifiersData[r]=A}}const gT={name:"preventOverflow",enabled:!0,phase:"main",fn:mT,requiresIfExists:["offset"]};function yT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vT(e){return e===_n(e)||!qn(e)?Lm(e):yT(e)}function xT(e){var t=e.getBoundingClientRect(),n=zs(t.width)/e.offsetWidth||1,r=zs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function CT(e,t,n){n===void 0&&(n=!1);var r=qn(t),o=qn(t)&&xT(t),i=qo(t),s=Bs(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(($r(t)!=="body"||Nm(i))&&(a=vT(t)),qn(t)?(l=Bs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=jm(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function bT(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function wT(e){var t=bT(e);return IM.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function ST(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kT(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ly={placement:"bottom",modifiers:[],strategy:"absolute"};function jy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ET(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Ly:o;return function(a,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ly,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],p=!1,x={state:u,setOptions:function(m){var y=typeof m=="function"?m(u.options):m;h(),u.options=Object.assign({},i,u.options,y),u.scrollParents={reference:Di(a)?el(a):a.contextElement?el(a.contextElement):[],popper:el(l)};var C=wT(kT([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(w){return w.enabled}),g(),x.update()},forceUpdate:function(){if(!p){var m=u.elements,y=m.reference,C=m.popper;if(jy(y,C)){u.rects={reference:CT(y,tc(C),u.options.strategy==="fixed"),popper:Fm(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var S=u.orderedModifiers[w],P=S.fn,k=S.options,M=k===void 0?{}:k,T=S.name;typeof P=="function"&&(u=P({state:u,options:M,name:T,instance:x})||u)}}}},update:ST(function(){return new Promise(function(E){x.forceUpdate(),E(u)})}),destroy:function(){h(),p=!0}};if(!jy(a,l))return x;x.setOptions(c).then(function(E){!p&&c.onFirstUpdate&&c.onFirstUpdate(E)});function g(){u.orderedModifiers.forEach(function(E){var m=E.name,y=E.options,C=y===void 0?{}:y,w=E.effect;if(typeof w=="function"){var S=w({state:u,name:m,instance:x,options:C}),P=function(){};d.push(S||P)}})}function h(){d.forEach(function(E){return E()}),d=[]}return x}}var PT=[KM,pT,GM,AM,dT,sT,gT,WM,lT],MT=ET({defaultModifiers:PT});function TT(e){return typeof e=="function"?e():e}const Qx=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=v.useState(null),l=tt(v.isValidElement(r)?r.ref:null,n);if(Lt(()=>{i||a(TT(o)||document.body)},[o,i]),Lt(()=>{if(s&&!i)return P0(n,s),()=>{P0(n,null)}},[n,s,i]),i){if(v.isValidElement(r)){const c={ref:l};return v.cloneElement(r,c)}return f.jsx(v.Fragment,{children:r})}return f.jsx(v.Fragment,{children:s&&Yl.createPortal(r,s)})}),e6="Popper";function RT(e){return Bx(e6,e)}mM(e6,["root"]);const DT=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],_T=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function OT(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function $0(e){return typeof e=="function"?e():e}function IT(e){return e.nodeType!==void 0}const $T=()=>De({root:["root"]},FP(RT)),FT={},AT=v.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:x={},slots:g={},TransitionProps:h}=t,E=te(t,DT),m=v.useRef(null),y=tt(m,n),C=v.useRef(null),w=tt(C,p),S=v.useRef(w);Lt(()=>{S.current=w},[w]),v.useImperativeHandle(p,()=>C.current,[]);const P=OT(u,s),[k,M]=v.useState(P),[T,D]=v.useState($0(o));v.useEffect(()=>{C.current&&C.current.forceUpdate()}),v.useEffect(()=>{o&&D($0(o))},[o]),Lt(()=>{if(!T||!c)return;const O=I=>{M(I.placement)};let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{O(I)}}];l!=null&&(L=L.concat(l)),d&&d.modifiers!=null&&(L=L.concat(d.modifiers));const V=MT(T,m.current,b({placement:P},d,{modifiers:L}));return S.current(V),()=>{V.destroy(),S.current(null)}},[T,a,l,c,d,P]);const _={placement:k};h!==null&&(_.TransitionProps=h);const A=$T(),$=(r=g.root)!=null?r:"div",R=We({elementType:$,externalSlotProps:x.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:A.root});return f.jsx($,b({},R,{children:typeof i=="function"?i(_):i}))}),LT=v.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=FT,popperRef:x,style:g,transition:h=!1,slotProps:E={},slots:m={}}=t,y=te(t,_T),[C,w]=v.useState(!0),S=()=>{w(!1)},P=()=>{w(!0)};if(!l&&!u&&(!h||C))return null;let k;if(i)k=i;else if(r){const D=$0(r);k=D&&IT(D)?Pt(D).body:Pt(null).body}const M=!u&&l&&(!h||C)?"none":void 0,T=h?{in:u,onEnter:S,onExited:P}:void 0;return f.jsx(Qx,{disablePortal:a,container:k,children:f.jsx(AT,b({anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:h?!C:u,placement:d,popperOptions:p,popperRef:x,slotProps:E,slots:m},y,{style:b({position:"fixed",top:0,left:0,display:M},g),TransitionProps:T,children:o}))})});function jT(e){const t=Pt(e);return t.body===e?Mi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function tl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ny(e){return parseInt(Mi(e).getComputedStyle(e).paddingRight,10)||0}function NT(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Vy(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!NT(s);a&&l&&tl(s,o)})}function qp(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function VT(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(jT(r)){const s=bx(Pt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ny(r)+s}px`;const a=Pt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Ny(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Pt(r).body;else{const s=r.parentElement,a=Mi(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function zT(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class BT{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&tl(t.modalRef,!1);const o=zT(n);Vy(n,t.mount,t.modalRef,o,!0);const i=qp(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=qp(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=VT(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=qp(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&tl(t.modalRef,n),Vy(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&tl(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function WT(e){return typeof e=="function"?e():e}function HT(e){return e?e.props.hasOwnProperty("in"):!1}const UT=new BT;function YT(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=UT,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,p=v.useRef({}),x=v.useRef(null),g=v.useRef(null),h=tt(g,d),[E,m]=v.useState(!u),y=HT(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>Pt(x.current),S=()=>(p.current.modalRef=g.current,p.current.mount=x.current,p.current),P=()=>{o.mount(S(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},k=Me(()=>{const L=WT(t)||w().body;o.add(S(),L),g.current&&P()}),M=v.useCallback(()=>o.isTopModal(S()),[o]),T=Me(L=>{x.current=L,L&&(u&&M()?P():g.current&&tl(g.current,C))}),D=v.useCallback(()=>{o.remove(S(),C)},[C,o]);v.useEffect(()=>()=>{D()},[D]),v.useEffect(()=>{u?k():(!y||!i)&&D()},[u,D,y,i,k]);const _=L=>V=>{var I;(I=L.onKeyDown)==null||I.call(L,V),!(V.key!=="Escape"||V.which===229||!M())&&(n||(V.stopPropagation(),c&&c(V,"escapeKeyDown")))},A=L=>V=>{var I;(I=L.onClick)==null||I.call(L,V),V.target===V.currentTarget&&c&&c(V,"backdropClick")};return{getRootProps:(L={})=>{const V=Ja(e);delete V.onTransitionEnter,delete V.onTransitionExited;const I=b({},V,L);return b({role:"presentation"},I,{onKeyDown:_(I),ref:h})},getBackdropProps:(L={})=>{const V=L;return b({"aria-hidden":!0},V,{onClick:A(V),open:u})},getTransitionProps:()=>{const L=()=>{m(!1),s&&s()},V=()=>{m(!0),a&&a(),i&&D()};return{onEnter:E0(L,l==null?void 0:l.props.onEnter),onExited:E0(V,l==null?void 0:l.props.onExited)}},rootRef:h,portalRef:T,isTopModal:M,exited:E,hasTransition:y}}const GT=2;function t6(e,t){return e-t}function zy(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a<o.distance||a===o.distance?{distance:a,index:s}:o},null))!=null?n:{};return r}function $c(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function sd(e,t,n){return(e-t)*100/(n-t)}function qT(e,t,n){return(n-t)*e+t}function KT(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function ZT(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(KT(t)))}function By({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(t6)}function Fc({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const i=Pt(e.current);if(!((r=e.current)!=null&&r.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var s;(s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}function Ac(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?OP(e,t):!1}const XT={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},JT=e=>e;let Lc;function Wy(){return Lc===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Lc=CSS.supports("touch-action","none"):Lc=!0),Lc}function QT(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:p="horizontal",rootRef:x,scale:g=JT,step:h=1,tabIndex:E,value:m}=e,y=v.useRef(),[C,w]=v.useState(-1),[S,P]=v.useState(-1),[k,M]=v.useState(!1),T=v.useRef(0),[D,_]=kn({controlled:m,default:n??l,name:"Slider"}),A=u&&((X,he,ve)=>{const ge=X.nativeEvent||X,ye=new ge.constructor(ge.type,ge);Object.defineProperty(ye,"target",{writable:!0,value:{value:he,name:c}}),u(ye,he,ve)}),$=Array.isArray(D);let R=$?D.slice().sort(t6):[D];R=R.map(X=>X==null?l:li(X,l,a));const O=s===!0&&h!==null?[...Array(Math.floor((a-l)/h)+1)].map((X,he)=>({value:l+h*he})):s||[],L=O.map(X=>X.value),{isFocusVisibleRef:V,onBlur:I,onFocus:F,ref:W}=of(),[se,B]=v.useState(-1),H=v.useRef(),z=tt(W,H),ne=tt(x,z),ce=X=>he=>{var ve;const ge=Number(he.currentTarget.getAttribute("data-index"));F(he),V.current===!0&&B(ge),P(ge),X==null||(ve=X.onFocus)==null||ve.call(X,he)},q=X=>he=>{var ve;I(he),V.current===!1&&B(-1),P(-1),X==null||(ve=X.onBlur)==null||ve.call(X,he)};Lt(()=>{if(r&&H.current.contains(document.activeElement)){var X;(X=document.activeElement)==null||X.blur()}},[r]),r&&C!==-1&&w(-1),r&&se!==-1&&B(-1);const me=X=>he=>{var ve;(ve=X.onChange)==null||ve.call(X,he);const ge=Number(he.currentTarget.getAttribute("data-index")),ye=R[ge],qe=L.indexOf(ye);let Ve=he.target.valueAsNumber;if(O&&h==null){const He=L[L.length-1];Ve>He?Ve=He:Ve<L[0]?Ve=L[0]:Ve=Ve<ye?L[qe-1]:L[qe+1]}if(Ve=li(Ve,l,a),$){o&&(Ve=li(Ve,R[ge-1]||-1/0,R[ge+1]||1/0));const He=Ve;Ve=By({values:R,newValue:Ve,index:ge});let fe=ge;o||(fe=Ve.indexOf(He)),Fc({sliderRef:H,activeIndex:fe})}_(Ve),B(ge),A&&!Ac(Ve,D)&&A(he,Ve,ge),d&&d(he,Ve)},Se=v.useRef();let Ee=p;i&&p==="horizontal"&&(Ee+="-reverse");const re=({finger:X,move:he=!1})=>{const{current:ve}=H,{width:ge,height:ye,bottom:qe,left:Ve}=ve.getBoundingClientRect();let He;Ee.indexOf("vertical")===0?He=(qe-X.y)/ye:He=(X.x-Ve)/ge,Ee.indexOf("-reverse")!==-1&&(He=1-He);let fe;if(fe=qT(He,l,a),h)fe=ZT(fe,h,l);else{const ut=zy(L,fe);fe=L[ut]}fe=li(fe,l,a);let je=0;if($){he?je=Se.current:je=zy(R,fe),o&&(fe=li(fe,R[je-1]||-1/0,R[je+1]||1/0));const ut=fe;fe=By({values:R,newValue:fe,index:je}),o&&he||(je=fe.indexOf(ut),Se.current=je)}return{newValue:fe,activeIndex:je}},ee=Me(X=>{const he=$c(X,y);if(!he)return;if(T.current+=1,X.type==="mousemove"&&X.buttons===0){j(X);return}const{newValue:ve,activeIndex:ge}=re({finger:he,move:!0});Fc({sliderRef:H,activeIndex:ge,setActive:w}),_(ve),!k&&T.current>GT&&M(!0),A&&!Ac(ve,D)&&A(X,ve,ge)}),j=Me(X=>{const he=$c(X,y);if(M(!1),!he)return;const{newValue:ve}=re({finger:he,move:!0});w(-1),X.type==="touchend"&&P(-1),d&&d(X,ve),y.current=void 0,Z()}),G=Me(X=>{if(r)return;Wy()||X.preventDefault();const he=X.changedTouches[0];he!=null&&(y.current=he.identifier);const ve=$c(X,y);if(ve!==!1){const{newValue:ye,activeIndex:qe}=re({finger:ve});Fc({sliderRef:H,activeIndex:qe,setActive:w}),_(ye),A&&!Ac(ye,D)&&A(X,ye,qe)}T.current=0;const ge=Pt(H.current);ge.addEventListener("touchmove",ee,{passive:!0}),ge.addEventListener("touchend",j,{passive:!0})}),Z=v.useCallback(()=>{const X=Pt(H.current);X.removeEventListener("mousemove",ee),X.removeEventListener("mouseup",j),X.removeEventListener("touchmove",ee),X.removeEventListener("touchend",j)},[j,ee]);v.useEffect(()=>{const{current:X}=H;return X.addEventListener("touchstart",G,{passive:Wy()}),()=>{X.removeEventListener("touchstart",G),Z()}},[Z,G]),v.useEffect(()=>{r&&Z()},[r,Z]);const xe=X=>he=>{var ve;if((ve=X.onMouseDown)==null||ve.call(X,he),r||he.defaultPrevented||he.button!==0)return;he.preventDefault();const ge=$c(he,y);if(ge!==!1){const{newValue:qe,activeIndex:Ve}=re({finger:ge});Fc({sliderRef:H,activeIndex:Ve,setActive:w}),_(qe),A&&!Ac(qe,D)&&A(he,qe,Ve)}T.current=0;const ye=Pt(H.current);ye.addEventListener("mousemove",ee,{passive:!0}),ye.addEventListener("mouseup",j)},Ie=sd($?R[0]:l,l,a),le=sd(R[R.length-1],l,a)-Ie,pe=(X={})=>{const he=Ja(X),ve={onMouseDown:xe(he||{})},ge=b({},he,ve);return b({},X,{ref:ne},ge)},U=X=>he=>{var ve;(ve=X.onMouseOver)==null||ve.call(X,he);const ge=Number(he.currentTarget.getAttribute("data-index"));P(ge)},Q=X=>he=>{var ve;(ve=X.onMouseLeave)==null||ve.call(X,he),P(-1)};return{active:C,axis:Ee,axisProps:XT,dragging:k,focusedThumbIndex:se,getHiddenInputProps:(X={})=>{var he;const ve=Ja(X),ge={onChange:me(ve||{}),onFocus:ce(ve||{}),onBlur:q(ve||{})},ye=b({},ve,ge);return b({tabIndex:E,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":g(a),"aria-valuemin":g(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(he=e.step)!=null?he:void 0,disabled:r},X,ye,{style:b({},wx,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:pe,getThumbProps:(X={})=>{const he=Ja(X),ve={onMouseOver:U(he||{}),onMouseLeave:Q(he||{})};return b({},X,he,ve)},marks:O,open:S,range:$,rootRef:ne,trackLeap:le,trackOffset:Ie,values:R,getThumbStyle:X=>({pointerEvents:C!==-1&&C!==X?"none":void 0})}}const eR=["onChange","maxRows","minRows","style","value"];function jc(e){return parseInt(e,10)||0}const tR={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Hy(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const nR=v.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=te(t,eR),{current:c}=v.useRef(a!=null),u=v.useRef(null),d=tt(n,u),p=v.useRef(null),x=v.useRef(0),[g,h]=v.useState({outerHeightStyle:0}),E=v.useCallback(()=>{const w=u.current,P=Mi(w).getComputedStyle(w);if(P.width==="0px")return{outerHeightStyle:0};const k=p.current;k.style.width=P.width,k.value=w.value||t.placeholder||"x",k.value.slice(-1)===`
`&&(k.value+=" ");const M=P.boxSizing,T=jc(P.paddingBottom)+jc(P.paddingTop),D=jc(P.borderBottomWidth)+jc(P.borderTopWidth),_=k.scrollHeight;k.value="x";const A=k.scrollHeight;let $=_;i&&($=Math.max(Number(i)*A,$)),o&&($=Math.min(Number(o)*A,$)),$=Math.max($,A);const R=$+(M==="border-box"?T+D:0),O=Math.abs($-_)<=1;return{outerHeightStyle:R,overflow:O}},[o,i,t.placeholder]),m=(w,S)=>{const{outerHeightStyle:P,overflow:k}=S;return x.current<20&&(P>0&&Math.abs((w.outerHeightStyle||0)-P)>1||w.overflow!==k)?(x.current+=1,{overflow:k,outerHeightStyle:P}):w},y=v.useCallback(()=>{const w=E();Hy(w)||h(S=>m(S,w))},[E]);Lt(()=>{const w=()=>{const _=E();Hy(_)||Yl.flushSync(()=>{h(A=>m(A,_))})},S=()=>{x.current=0,w()};let P;const k=Cx(S),M=u.current,T=Mi(M);T.addEventListener("resize",k);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(S),D.observe(M)),()=>{k.clear(),cancelAnimationFrame(P),T.removeEventListener("resize",k),D&&D.disconnect()}},[E]),Lt(()=>{y()}),v.useEffect(()=>{x.current=0},[a]);const C=w=>{x.current=0,c||y(),r&&r(w)};return f.jsxs(v.Fragment,{children:[f.jsx("textarea",b({value:a,onChange:C,ref:d,rows:i,style:b({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},s)},l)),f.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:b({},tR.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),rR=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],oR=Y(LT,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iR=v.forwardRef(function(t,n){var r;const o=pf(),i=Re({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:x,open:g,placement:h,popperOptions:E,popperRef:m,transition:y,slots:C,slotProps:w}=i,S=te(i,rR),P=(r=C==null?void 0:C.root)!=null?r:l==null?void 0:l.Root,k=b({anchorEl:s,container:u,disablePortal:d,keepMounted:p,modifiers:x,open:g,placement:h,popperOptions:E,popperRef:m,transition:y},S);return f.jsx(oR,b({as:a,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:w??c},k,{ref:n}))}),sR=iR,aR=Xt(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function lR(e){return _e("MuiChip",e)}const cR=Pe("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"]),Ke=cR,uR=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],dR=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${oe(r)}`,`color${oe(o)}`,a&&"clickable",a&&`clickableColor${oe(o)}`,s&&"deletable",s&&`deletableColor${oe(o)}`,`${l}${oe(o)}`],label:["label",`label${oe(r)}`],avatar:["avatar",`avatar${oe(r)}`,`avatarColor${oe(o)}`],icon:["icon",`icon${oe(r)}`,`iconColor${oe(i)}`],deleteIcon:["deleteIcon",`deleteIcon${oe(r)}`,`deleteIconColor${oe(o)}`,`deleteIcon${oe(l)}Color${oe(o)}`]};return De(c,lR,t)},fR=Y("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${Ke.avatar}`]:t.avatar},{[`& .${Ke.avatar}`]:t[`avatar${oe(a)}`]},{[`& .${Ke.avatar}`]:t[`avatarColor${oe(r)}`]},{[`& .${Ke.icon}`]:t.icon},{[`& .${Ke.icon}`]:t[`icon${oe(a)}`]},{[`& .${Ke.icon}`]:t[`iconColor${oe(o)}`]},{[`& .${Ke.deleteIcon}`]:t.deleteIcon},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${oe(a)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIconColor${oe(r)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${oe(l)}Color${oe(r)}`]},t.root,t[`size${oe(a)}`],t[`color${oe(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${oe(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${oe(r)}`],t[l],t[`${l}${oe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return b({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ke.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ke.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Ke.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ke.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ke.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ke.icon}`]:b({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&b({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Ke.deleteIcon}`]:b({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ne(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ne(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ne(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>b({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>b({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ke.avatar}`]:{marginLeft:4},[`& .${Ke.avatarSmall}`]:{marginLeft:2},[`& .${Ke.icon}`]:{marginLeft:4},[`& .${Ke.iconSmall}`]:{marginLeft:2},[`& .${Ke.deleteIcon}`]:{marginRight:5},[`& .${Ke.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ne(e.palette[t.color].main,.7)}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ne(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Ke.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ne(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),pR=Y("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${oe(r)}`]]}})(({ownerState:e})=>b({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Uy(e){return e.key==="Backspace"||e.key==="Delete"}const hR=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:x,onDelete:g,onKeyDown:h,onKeyUp:E,size:m="medium",variant:y="filled",tabIndex:C,skipFocusWhenDisabled:w=!1}=r,S=te(r,uR),P=v.useRef(null),k=tt(P,n),M=F=>{F.stopPropagation(),g&&g(F)},T=F=>{F.currentTarget===F.target&&Uy(F)&&F.preventDefault(),h&&h(F)},D=F=>{F.currentTarget===F.target&&(g&&Uy(F)?g(F):F.key==="Escape"&&P.current&&P.current.blur()),E&&E(F)},_=s!==!1&&x?!0:s,A=_||g?Ir:l||"div",$=b({},r,{component:A,disabled:u,size:m,color:a,iconColor:v.isValidElement(d)&&d.props.color||a,onDelete:!!g,clickable:_,variant:y}),R=dR($),O=A===Ir?b({component:l||"div",focusVisibleClassName:R.focusVisible},g&&{disableRipple:!0}):{};let L=null;g&&(L=c&&v.isValidElement(c)?v.cloneElement(c,{className:ue(c.props.className,R.deleteIcon),onClick:M}):f.jsx(aR,{className:ue(R.deleteIcon),onClick:M}));let V=null;o&&v.isValidElement(o)&&(V=v.cloneElement(o,{className:ue(R.avatar,o.props.className)}));let I=null;return d&&v.isValidElement(d)&&(I=v.cloneElement(d,{className:ue(R.icon,d.props.className)})),f.jsxs(fR,b({as:A,className:ue(R.root,i),disabled:_&&u?!0:void 0,onClick:x,onKeyDown:T,onKeyUp:D,ref:k,tabIndex:w&&u?-1:C,ownerState:$},O,S,{children:[V||I,f.jsx(pR,{className:ue(R.label),ownerState:$,children:p}),L]}))}),mR=hR;function Ko({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const gR=v.createContext(void 0),Rf=gR;function Lr(){return v.useContext(Rf)}function n6(e){return f.jsx(nE,b({},e,{defaultTheme:mf,themeId:Pi}))}function Yy(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ad(e,t=!1){return e&&(Yy(e.value)&&e.value!==""||t&&Yy(e.defaultValue)&&e.defaultValue!=="")}function yR(e){return e.startAdornment}function vR(e){return _e("MuiInputBase",e)}const xR=Pe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Hs=xR,CR=["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"],Df=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${oe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_f=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},bR=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:x,type:g}=e,h={root:["root",`color${oe(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",p&&p!=="medium"&&`size${oe(p)}`,u&&"multiline",x&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",x&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return De(h,vR,t)},Of=Y("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Df})(({theme:e,ownerState:t})=>b({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&b({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),If=Y("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_f})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=b({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return b({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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Hs.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Hs.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),wR=f.jsx(n6,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),SR=v.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:x,endAdornment:g,fullWidth:h=!1,id:E,inputComponent:m="input",inputProps:y={},inputRef:C,maxRows:w,minRows:S,multiline:P=!1,name:k,onBlur:M,onChange:T,onClick:D,onFocus:_,onKeyDown:A,onKeyUp:$,placeholder:R,readOnly:O,renderSuffix:L,rows:V,slotProps:I={},slots:F={},startAdornment:W,type:se="text",value:B}=o,H=te(o,CR),z=y.value!=null?y.value:B,{current:ne}=v.useRef(z!=null),ce=v.useRef(),q=v.useCallback(ge=>{},[]),me=tt(ce,C,y.ref,q),[Se,Ee]=v.useState(!1),re=Lr(),ee=Ko({props:o,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ee.focused=re?re.focused:Se,v.useEffect(()=>{!re&&p&&Se&&(Ee(!1),M&&M())},[re,p,Se,M]);const j=re&&re.onFilled,G=re&&re.onEmpty,Z=v.useCallback(ge=>{ad(ge)?j&&j():G&&G()},[j,G]);Lt(()=>{ne&&Z({value:z})},[z,Z,ne]);const xe=ge=>{if(ee.disabled){ge.stopPropagation();return}_&&_(ge),y.onFocus&&y.onFocus(ge),re&&re.onFocus?re.onFocus(ge):Ee(!0)},Ie=ge=>{M&&M(ge),y.onBlur&&y.onBlur(ge),re&&re.onBlur?re.onBlur(ge):Ee(!1)},le=(ge,...ye)=>{if(!ne){const qe=ge.target||ce.current;if(qe==null)throw new Error(Bo(1));Z({value:qe.value})}y.onChange&&y.onChange(ge,...ye),T&&T(ge,...ye)};v.useEffect(()=>{Z(ce.current)},[]);const pe=ge=>{ce.current&&ge.currentTarget===ge.target&&ce.current.focus(),D&&D(ge)};let U=m,Q=y;P&&U==="input"&&(V?Q=b({type:void 0,minRows:V,maxRows:V},Q):Q=b({type:void 0,maxRows:w,minRows:S},Q),U=nR);const we=ge=>{Z(ge.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};v.useEffect(()=>{re&&re.setAdornedStart(!!W)},[re,W]);const $e=b({},o,{color:ee.color||"primary",disabled:ee.disabled,endAdornment:g,error:ee.error,focused:ee.focused,formControl:re,fullWidth:h,hiddenLabel:ee.hiddenLabel,multiline:P,size:ee.size,startAdornment:W,type:se}),ke=bR($e),X=F.root||c.Root||Of,he=I.root||u.root||{},ve=F.input||c.Input||If;return Q=b({},Q,(r=I.input)!=null?r:u.input),f.jsxs(v.Fragment,{children:[!x&&wR,f.jsxs(X,b({},he,!_r(X)&&{ownerState:b({},$e,he.ownerState)},{ref:n,onClick:pe},H,{className:ue(ke.root,he.className,l,O&&"MuiInputBase-readOnly"),children:[W,f.jsx(Rf.Provider,{value:null,children:f.jsx(ve,b({ownerState:$e,"aria-invalid":ee.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:d,disabled:ee.disabled,id:E,onAnimationStart:we,name:k,placeholder:R,readOnly:O,required:ee.required,rows:V,value:z,onKeyDown:A,onKeyUp:$,type:se},Q,!_r(ve)&&{as:U,ownerState:b({},$e,Q.ownerState)},{ref:me,className:ue(ke.input,Q.className,O&&"MuiInputBase-readOnly"),onBlur:Ie,onChange:le,onFocus:xe}))}),g,L?L(b({},ee,{startAdornment:W})):null]}))]})}),Vm=SR;function kR(e){return _e("MuiInput",e)}const ER=b({},Hs,Pe("MuiInput",["root","underline","input"])),Ca=ER;function PR(e){return _e("MuiOutlinedInput",e)}const MR=b({},Hs,Pe("MuiOutlinedInput",["root","notchedOutline","input"])),bo=MR;function TR(e){return _e("MuiFilledInput",e)}const RR=b({},Hs,Pe("MuiFilledInput",["root","underline","input"])),Qo=RR,DR=Xt(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),_R=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],OR={entering:{opacity:1},entered:{opacity:1}},IR=v.forwardRef(function(t,n){const r=Le(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:x,onExited:g,onExiting:h,style:E,timeout:m=o,TransitionComponent:y=Mm}=t,C=te(t,_R),w=v.useRef(null),S=tt(w,a.ref,n),P=R=>O=>{if(R){const L=w.current;O===void 0?R(L):R(L,O)}},k=P(p),M=P((R,O)=>{Vx(R);const L=od({style:E,timeout:m,easing:l},{mode:"enter"});R.style.webkitTransition=r.transitions.create("opacity",L),R.style.transition=r.transitions.create("opacity",L),u&&u(R,O)}),T=P(d),D=P(h),_=P(R=>{const O=od({style:E,timeout:m,easing:l},{mode:"exit"});R.style.webkitTransition=r.transitions.create("opacity",O),R.style.transition=r.transitions.create("opacity",O),x&&x(R)}),A=P(g),$=R=>{i&&i(w.current,R)};return f.jsx(y,b({appear:s,in:c,nodeRef:w,onEnter:M,onEntered:T,onEntering:k,onExit:_,onExited:A,onExiting:D,addEndListener:$,timeout:m},C,{children:(R,O)=>v.cloneElement(a,b({style:b({opacity:0,visibility:R==="exited"&&!c?"hidden":void 0},OR[R],E,a.props.style),ref:S},O))}))}),na=IR;function $R(e){return _e("MuiBackdrop",e)}Pe("MuiBackdrop",["root","invisible"]);const FR=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],AR=e=>{const{classes:t,invisible:n}=e;return De({root:["root",n&&"invisible"]},$R,t)},LR=Y("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>b({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"},e.invisible&&{backgroundColor:"transparent"})),jR=v.forwardRef(function(t,n){var r,o,i;const s=Re({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:u={},componentsProps:d={},invisible:p=!1,open:x,slotProps:g={},slots:h={},TransitionComponent:E=na,transitionDuration:m}=s,y=te(s,FR),C=b({},s,{component:c,invisible:p}),w=AR(C),S=(r=g.root)!=null?r:d.root;return f.jsx(E,b({in:x,timeout:m},y,{children:f.jsx(LR,b({"aria-hidden":!0},S,{as:(o=(i=h.root)!=null?i:u.Root)!=null?o:c,className:ue(w.root,l,S==null?void 0:S.className),ownerState:b({},C,S==null?void 0:S.ownerState),classes:w,ref:n,children:a}))}))}),r6=jR,NR=Pe("MuiBox",["root"]),VR=NR,zR=sn(),BR=sE({themeId:Pi,defaultTheme:zR,defaultClassName:VR.root,generateClassName:Sx.generate}),J=BR;function WR(e){return _e("MuiButton",e)}const HR=Pe("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"]),Nc=HR,UR=v.createContext({}),YR=UR,GR=v.createContext(void 0),qR=GR,KR=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ZR=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${oe(t)}`,`size${oe(o)}`,`${i}Size${oe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${oe(o)}`],endIcon:["endIcon",`iconSize${oe(o)}`]},l=De(a,WR,s);return b({},s,l)},o6=e=>b({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),XR=Y(Ir,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${oe(n.color)}`],t[`size${oe(n.size)}`],t[`${n.variant}Size${oe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return b({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":b({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":b({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Nc.focusVisible}`]:b({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Nc.disabled}`]:b({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ne(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Nc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Nc.disabled}`]:{boxShadow:"none"}}),JR=Y("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${oe(n.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},o6(e))),QR=Y("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${oe(n.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},o6(e))),eD=v.forwardRef(function(t,n){const r=v.useContext(YR),o=v.useContext(qR),i=gm(r,t),s=Re({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:x=!1,endIcon:g,focusVisibleClassName:h,fullWidth:E=!1,size:m="medium",startIcon:y,type:C,variant:w="text"}=s,S=te(s,KR),P=b({},s,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:x,fullWidth:E,size:m,type:C,variant:w}),k=ZR(P),M=y&&f.jsx(JR,{className:k.startIcon,ownerState:P,children:y}),T=g&&f.jsx(QR,{className:k.endIcon,ownerState:P,children:g}),D=o||"";return f.jsxs(XR,b({ownerState:P,className:ue(r.className,k.root,u,D),component:c,disabled:d,focusRipple:!x,focusVisibleClassName:ue(k.focusVisible,h),ref:n,type:C},S,{classes:k,children:[M,a,T]}))}),Mr=eD;function tD(e){return _e("PrivateSwitchBase",e)}Pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const nD=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],rD=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${oe(o)}`],input:["input"]};return De(i,tD,t)},oD=Y(Ir)(({ownerState:e})=>b({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),iD=Y("input",{shouldForwardProp:an})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),sD=v.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:x,inputRef:g,name:h,onBlur:E,onChange:m,onFocus:y,readOnly:C,required:w=!1,tabIndex:S,type:P,value:k}=t,M=te(t,nD),[T,D]=kn({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),_=Lr(),A=F=>{y&&y(F),_&&_.onFocus&&_.onFocus(F)},$=F=>{E&&E(F),_&&_.onBlur&&_.onBlur(F)},R=F=>{if(F.nativeEvent.defaultPrevented)return;const W=F.target.checked;D(W),m&&m(F,W)};let O=l;_&&typeof O>"u"&&(O=_.disabled);const L=P==="checkbox"||P==="radio",V=b({},t,{checked:T,disabled:O,disableFocusRipple:c,edge:u}),I=rD(V);return f.jsxs(oD,b({component:"span",className:ue(I.root,s),centerRipple:!0,focusRipple:!c,disabled:O,tabIndex:null,role:void 0,onFocus:A,onBlur:$,ownerState:V,ref:n},M,{children:[f.jsx(iD,b({autoFocus:r,checked:o,defaultChecked:a,className:I.input,disabled:O,id:L?p:void 0,name:h,onChange:R,readOnly:C,ref:g,required:w,ownerState:V,tabIndex:S,type:P},P==="checkbox"&&k===void 0?{}:{value:k},x)),T?i:d]}))}),i6=sD,aD=Xt(f.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),lD=Xt(f.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),cD=Xt(f.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function uD(e){return _e("MuiCheckbox",e)}const dD=Pe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Kp=dD,fD=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],pD=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${oe(r)}`,`size${oe(o)}`]},s=De(i,uD,t);return b({},t,s)},hD=Y(i6,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${oe(n.size)}`],n.color!=="default"&&t[`color${oe(n.color)}`]]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Kp.checked}, &.${Kp.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Kp.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),mD=f.jsx(lD,{}),gD=f.jsx(aD,{}),yD=f.jsx(cD,{}),vD=v.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiCheckbox"}),{checkedIcon:s=mD,color:a="primary",icon:l=gD,indeterminate:c=!1,indeterminateIcon:u=yD,inputProps:d,size:p="medium",className:x}=i,g=te(i,fD),h=c?u:l,E=c?u:s,m=b({},i,{color:a,indeterminate:c,size:p}),y=pD(m);return f.jsx(hD,b({type:"checkbox",inputProps:b({"data-indeterminate":c},d),icon:v.cloneElement(h,{fontSize:(r=h.props.fontSize)!=null?r:p}),checkedIcon:v.cloneElement(E,{fontSize:(o=E.props.fontSize)!=null?o:p}),ownerState:m,ref:n,className:ue(y.root,x)},g,{classes:y}))}),s6=vD,xD=(e,t)=>b({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),CD=e=>b({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),bD=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=b({html:xD(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:b({margin:0},CD(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function wD(e){const t=Re({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return f.jsxs(v.Fragment,{children:[f.jsx(n6,{styles:o=>bD(o,r)}),n]})}function SD(e){return _e("MuiModal",e)}Pe("MuiModal",["root","hidden","backdrop"]);const kD=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ED=e=>{const{open:t,exited:n,classes:r}=e;return De({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},SD,r)},PD=Y("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>b({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),MD=Y(r6,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),TD=v.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Re({name:"MuiModal",props:t}),{BackdropComponent:u=MD,BackdropProps:d,className:p,closeAfterTransition:x=!1,children:g,container:h,component:E,components:m={},componentsProps:y={},disableAutoFocus:C=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:P=!1,disableRestoreFocus:k=!1,disableScrollLock:M=!1,hideBackdrop:T=!1,keepMounted:D=!1,onBackdropClick:_,open:A,slotProps:$,slots:R}=c,O=te(c,kD),L=b({},c,{closeAfterTransition:x,disableAutoFocus:C,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:P,disableRestoreFocus:k,disableScrollLock:M,hideBackdrop:T,keepMounted:D}),{getRootProps:V,getBackdropProps:I,getTransitionProps:F,portalRef:W,isTopModal:se,exited:B,hasTransition:H}=YT(b({},L,{rootRef:n})),z=b({},L,{exited:B}),ne=ED(z),ce={};if(g.props.tabIndex===void 0&&(ce.tabIndex="-1"),H){const{onEnter:j,onExited:G}=F();ce.onEnter=j,ce.onExited=G}const q=(r=(o=R==null?void 0:R.root)!=null?o:m.Root)!=null?r:PD,me=(i=(s=R==null?void 0:R.backdrop)!=null?s:m.Backdrop)!=null?i:u,Se=(a=$==null?void 0:$.root)!=null?a:y.root,Ee=(l=$==null?void 0:$.backdrop)!=null?l:y.backdrop,re=We({elementType:q,externalSlotProps:Se,externalForwardedProps:O,getSlotProps:V,additionalProps:{ref:n,as:E},ownerState:z,className:ue(p,Se==null?void 0:Se.className,ne==null?void 0:ne.root,!z.open&&z.exited&&(ne==null?void 0:ne.hidden))}),ee=We({elementType:me,externalSlotProps:Ee,additionalProps:d,getSlotProps:j=>I(b({},j,{onClick:G=>{_&&_(G),j!=null&&j.onClick&&j.onClick(G)}})),className:ue(Ee==null?void 0:Ee.className,d==null?void 0:d.className,ne==null?void 0:ne.backdrop),ownerState:z});return!D&&!A&&(!H||B)?null:f.jsx(Qx,{ref:W,container:h,disablePortal:P,children:f.jsxs(q,b({},re,{children:[!T&&u?f.jsx(me,b({},ee)):null,f.jsx(Wx,{disableEnforceFocus:w,disableAutoFocus:C,disableRestoreFocus:k,isEnabled:se,open:A,children:v.cloneElement(g,ce)})]}))})}),zm=TD;function RD(e){return _e("MuiDialog",e)}const nl=Pe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),DD=v.createContext({}),_D=DD,OD=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ID=Y(r6,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),$D=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${oe(n)}`],paper:["paper",`paperScroll${oe(n)}`,`paperWidth${oe(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return De(s,RD,t)},FD=Y(zm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),AD=Y("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${oe(n.scroll)}`]]}})(({ownerState:e})=>b({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),LD=Y(Ql,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${oe(n.scroll)}`],t[`paperWidth${oe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>b({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${nl.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${nl.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${nl.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),jD=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialog"}),o=Le(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:x=!1,fullWidth:g=!1,maxWidth:h="sm",onBackdropClick:E,onClose:m,open:y,PaperComponent:C=Ql,PaperProps:w={},scroll:S="paper",TransitionComponent:P=na,transitionDuration:k=i,TransitionProps:M}=r,T=te(r,OD),D=b({},r,{disableEscapeKeyDown:p,fullScreen:x,fullWidth:g,maxWidth:h,scroll:S}),_=$D(D),A=v.useRef(),$=V=>{A.current=V.target===V.currentTarget},R=V=>{A.current&&(A.current=null,E&&E(V),m&&m(V,"backdropClick"))},O=ho(a),L=v.useMemo(()=>({titleId:O}),[O]);return f.jsx(FD,b({className:ue(_.root,d),closeAfterTransition:!0,components:{Backdrop:ID},componentsProps:{backdrop:b({transitionDuration:k,as:l},c)},disableEscapeKeyDown:p,onClose:m,open:y,ref:n,onClick:R,ownerState:D},T,{children:f.jsx(P,b({appear:!0,in:y,timeout:k,role:"presentation"},M,{children:f.jsx(AD,{className:ue(_.container),onMouseDown:$,ownerState:D,children:f.jsx(LD,b({as:C,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":O},w,{className:ue(_.paper,w.className),ownerState:D,children:f.jsx(_D.Provider,{value:L,children:u})}))})}))}))}),ND=jD;function VD(e){return _e("MuiDialogActions",e)}Pe("MuiDialogActions",["root","spacing"]);const zD=["className","disableSpacing"],BD=e=>{const{classes:t,disableSpacing:n}=e;return De({root:["root",!n&&"spacing"]},VD,t)},WD=Y("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>b({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),HD=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=te(r,zD),a=b({},r,{disableSpacing:i}),l=BD(a);return f.jsx(WD,b({className:ue(l.root,o),ownerState:a,ref:n},s))}),UD=HD;function YD(e){return _e("MuiDialogContent",e)}Pe("MuiDialogContent",["root","dividers"]);const GD=Pe("MuiDialogTitle",["root"]),qD=GD,KD=["className","dividers"],ZD=e=>{const{classes:t,dividers:n}=e;return De({root:["root",n&&"dividers"]},YD,t)},XD=Y("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>b({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${qD.root} + &`]:{paddingTop:0}})),JD=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=te(r,KD),a=b({},r,{dividers:i}),l=ZD(a);return f.jsx(XD,b({className:ue(l.root,o),ownerState:a,ref:n},s))}),QD=JD,e_=Pe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Gy=e_,t_=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],n_=e=>{const{classes:t,disableUnderline:n}=e,o=De({root:["root",!n&&"underline"],input:["input"]},TR,t);return b({},t,o)},r_=Y(Of,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Df(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return b({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Qo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Qo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qo.disabled}, .${Qo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&b({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),o_=Y(If,{name:"MuiFilledInput",slot:"Input",overridesResolver:_f})(({theme:e,ownerState:t})=>b({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),a6=v.forwardRef(function(t,n){var r,o,i,s;const a=Re({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:x,slots:g={},type:h="text"}=a,E=te(a,t_),m=b({},a,{fullWidth:u,inputComponent:d,multiline:p,type:h}),y=n_(a),C={root:{ownerState:m},input:{ownerState:m}},w=x??c?nn(C,x??c):C,S=(r=(o=g.root)!=null?o:l.Root)!=null?r:r_,P=(i=(s=g.input)!=null?s:l.Input)!=null?i:o_;return f.jsx(Vm,b({slots:{root:S,input:P},componentsProps:w,fullWidth:u,inputComponent:d,multiline:p,ref:n,type:h},E,{classes:y}))});a6.muiName="Input";const l6=a6;function i_(e){return _e("MuiFormControl",e)}Pe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const s_=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],a_=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${oe(n)}`,r&&"fullWidth"]};return De(o,i_,t)},l_=Y("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>b({},t.root,t[`margin${oe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>b({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),c_=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:x="none",required:g=!1,size:h="medium",variant:E="outlined"}=r,m=te(r,s_),y=b({},r,{color:s,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:x,required:g,size:h,variant:E}),C=a_(y),[w,S]=v.useState(()=>{let $=!1;return o&&v.Children.forEach(o,R=>{if(!xu(R,["Input","Select"]))return;const O=xu(R,["Select"])?R.props.input:R;O&&yR(O.props)&&($=!0)}),$}),[P,k]=v.useState(()=>{let $=!1;return o&&v.Children.forEach(o,R=>{xu(R,["Input","Select"])&&(ad(R.props,!0)||ad(R.props.inputProps,!0))&&($=!0)}),$}),[M,T]=v.useState(!1);l&&M&&T(!1);const D=u!==void 0&&!l?u:M;let _;const A=v.useMemo(()=>({adornedStart:w,setAdornedStart:S,color:s,disabled:l,error:c,filled:P,focused:D,fullWidth:d,hiddenLabel:p,size:h,onBlur:()=>{T(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{T(!0)},registerEffect:_,required:g,variant:E}),[w,s,l,c,P,D,d,p,_,g,h,E]);return f.jsx(Rf.Provider,{value:A,children:f.jsx(l_,b({as:a,ownerState:y,className:ue(C.root,i),ref:n},m,{children:o}))})}),$f=c_,u_=$E({createStyledComponent:Y("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Re({props:e,name:"MuiStack"})}),d_=u_;function f_(e){return _e("MuiFormControlLabel",e)}const p_=Pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Va=p_,h_=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],m_=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${oe(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return De(s,f_,t)},g_=Y("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.label}`]:t.label},t.root,t[`labelPlacement${oe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>b({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Va.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Va.label}`]:{[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),y_=Y("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),v_=v.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:x,slotProps:g={}}=i,h=te(i,h_),E=Lr(),m=(r=c??l.props.disabled)!=null?r:E==null?void 0:E.disabled,y=x??l.props.required,C={disabled:m,required:y};["checked","name","onChange","value","inputRef"].forEach(T=>{typeof l.props[T]>"u"&&typeof i[T]<"u"&&(C[T]=i[T])});const w=Ko({props:i,muiFormControl:E,states:["error"]}),S=b({},i,{disabled:m,labelPlacement:p,required:y,error:w.error}),P=m_(S),k=(o=g.typography)!=null?o:a.typography;let M=d;return M!=null&&M.type!==Te&&!u&&(M=f.jsx(Te,b({component:"span"},k,{className:ue(P.label,k==null?void 0:k.className),children:M}))),f.jsxs(g_,b({className:ue(P.root,s),ownerState:S,ref:n},h,{children:[v.cloneElement(l,C),y?f.jsxs(d_,{display:"block",children:[M,f.jsxs(y_,{ownerState:S,"aria-hidden":!0,className:P.asterisk,children:["","*"]})]}):M]}))}),nc=v_;function x_(e){return _e("MuiFormGroup",e)}Pe("MuiFormGroup",["root","row","error"]);const C_=["className","row"],b_=e=>{const{classes:t,row:n,error:r}=e;return De({root:["root",n&&"row",r&&"error"]},x_,t)},w_=Y("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>b({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),S_=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=te(r,C_),a=Lr(),l=Ko({props:r,muiFormControl:a,states:["error"]}),c=b({},r,{row:i,error:l.error}),u=b_(c);return f.jsx(w_,b({className:ue(u.root,o),ownerState:c,ref:n},s))}),c6=S_;function k_(e){return _e("MuiFormHelperText",e)}const E_=Pe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),qy=E_;var Ky;const P_=["children","className","component","disabled","error","filled","focused","margin","required","variant"],M_=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${oe(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return De(c,k_,t)},T_=Y("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${oe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${qy.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${qy.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),R_=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=te(r,P_),l=Lr(),c=Ko({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=b({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=M_(u);return f.jsx(T_,b({as:s,ownerState:u,className:ue(d.root,i),ref:n},a,{children:o===" "?Ky||(Ky=f.jsx("span",{className:"notranslate",children:""})):o}))}),D_=R_;function __(e){return _e("MuiFormLabel",e)}const O_=Pe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),rl=O_,I_=["children","className","color","component","disabled","error","filled","focused","required"],$_=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${oe(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return De(l,__,t)},F_=Y("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>b({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${rl.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${rl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rl.error}`]:{color:(e.vars||e).palette.error.main}})),A_=Y("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${rl.error}`]:{color:(e.vars||e).palette.error.main}})),L_=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=te(r,I_),l=Lr(),c=Ko({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=b({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=$_(u);return f.jsxs(F_,b({as:s,ownerState:u,className:ue(d.root,i),ref:n},a,{children:[o,c.required&&f.jsxs(A_,{ownerState:u,"aria-hidden":!0,className:d.asterisk,children:["","*"]})]}))}),j_=L_,N_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function F0(e){return`scale(${e}, ${e**2})`}const V_={entering:{opacity:1,transform:F0(1)},entered:{opacity:1,transform:"none"}},Zp=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),u6=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:x,style:g,timeout:h="auto",TransitionComponent:E=Mm}=t,m=te(t,N_),y=v.useRef(),C=v.useRef(),w=Le(),S=v.useRef(null),P=tt(S,i.ref,n),k=O=>L=>{if(O){const V=S.current;L===void 0?O(V):O(V,L)}},M=k(u),T=k((O,L)=>{Vx(O);const{duration:V,delay:I,easing:F}=od({style:g,timeout:h,easing:s},{mode:"enter"});let W;h==="auto"?(W=w.transitions.getAutoHeightDuration(O.clientHeight),C.current=W):W=V,O.style.transition=[w.transitions.create("opacity",{duration:W,delay:I}),w.transitions.create("transform",{duration:Zp?W:W*.666,delay:I,easing:F})].join(","),l&&l(O,L)}),D=k(c),_=k(x),A=k(O=>{const{duration:L,delay:V,easing:I}=od({style:g,timeout:h,easing:s},{mode:"exit"});let F;h==="auto"?(F=w.transitions.getAutoHeightDuration(O.clientHeight),C.current=F):F=L,O.style.transition=[w.transitions.create("opacity",{duration:F,delay:V}),w.transitions.create("transform",{duration:Zp?F:F*.666,delay:Zp?V:V||F*.333,easing:I})].join(","),O.style.opacity=0,O.style.transform=F0(.75),d&&d(O)}),$=k(p),R=O=>{h==="auto"&&(y.current=setTimeout(O,C.current||0)),r&&r(S.current,O)};return v.useEffect(()=>()=>{clearTimeout(y.current)},[]),f.jsx(E,b({appear:o,in:a,nodeRef:S,onEnter:T,onEntered:D,onEntering:M,onExit:A,onExited:$,onExiting:_,addEndListener:R,timeout:h==="auto"?null:h},m,{children:(O,L)=>v.cloneElement(i,b({style:b({opacity:0,transform:F0(.75),visibility:O==="exited"&&!a?"hidden":void 0},V_[O],g,i.props.style),ref:P},L))}))});u6.muiSupportAuto=!0;const d6=u6;function z_(e,t,n,r,o){const[i,s]=v.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Lt(()=>{let a=!0;if(!n)return;const l=n(e),c=()=>{a&&s(l.matches)};return c(),l.addListener(c),()=>{a=!1,l.removeListener(c)}},[e,n]),i}const f6=v.useSyncExternalStore;function B_(e,t,n,r,o){const i=v.useCallback(()=>t,[t]),s=v.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[a,l]=v.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addListener(d),()=>{u.removeListener(d)})]},[i,n,e]);return f6(l,a,s)}function p6(e,t={}){const n=pf(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=_x({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(f6!==void 0?B_:z_)(l,o,i,s,a)}const W_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],H_=e=>{const{classes:t,disableUnderline:n}=e,o=De({root:["root",!n&&"underline"],input:["input"]},kR,t);return b({},t,o)},U_=Y(Of,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Df(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),b({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ca.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ca.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ca.disabled}, .${Ca.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ca.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Y_=Y(If,{name:"MuiInput",slot:"Input",overridesResolver:_f})({}),h6=v.forwardRef(function(t,n){var r,o,i,s;const a=Re({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:p="input",multiline:x=!1,slotProps:g,slots:h={},type:E="text"}=a,m=te(a,W_),y=H_(a),w={root:{ownerState:{disableUnderline:l}}},S=g??u?nn(g??u,w):w,P=(r=(o=h.root)!=null?o:c.Root)!=null?r:U_,k=(i=(s=h.input)!=null?s:c.Input)!=null?i:Y_;return f.jsx(Vm,b({slots:{root:P,input:k},slotProps:S,fullWidth:d,inputComponent:p,multiline:x,ref:n,type:E},m,{classes:y}))});h6.muiName="Input";const m6=h6;function G_(e){return _e("MuiInputAdornment",e)}const q_=Pe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Zy=q_;var Xy;const K_=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Z_=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${oe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},X_=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${oe(o)}`,s,r&&"hiddenLabel",i&&`size${oe(i)}`]};return De(a,G_,t)},J_=Y("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Z_})(({theme:e,ownerState:t})=>b({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${Zy.positionStart}&:not(.${Zy.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Q_=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u}=r,d=te(r,K_),p=Lr()||{};let x=u;u&&p.variant,p&&!x&&(x=p.variant);const g=b({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:a,position:c,variant:x}),h=X_(g);return f.jsx(Rf.Provider,{value:null,children:f.jsx(J_,b({as:s,ownerState:g,className:ue(h.root,i),ref:n},d,{children:typeof o=="string"&&!l?f.jsx(Te,{color:"text.secondary",children:o}):f.jsxs(v.Fragment,{children:[c==="start"?Xy||(Xy=f.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),Bm=Q_;function eO(e){return _e("MuiInputLabel",e)}Pe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const tO=["disableAnimation","margin","shrink","variant","className"],nO=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${oe(r)}`,s],asterisk:[a&&"asterisk"]},c=De(l,eO,t);return b({},t,c)},rO=Y(j_,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rl.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>b({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&b({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&b({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&b({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),oO=v.forwardRef(function(t,n){const r=Re({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=te(r,tO),l=Lr();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=Ko({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=b({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),p=nO(d);return f.jsx(rO,b({"data-shrink":c,ownerState:d,ref:n,className:ue(p.root,s)},a,{classes:p}))}),iO=oO;function sO(e){return _e("MuiLink",e)}const aO=Pe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),lO=aO,g6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cO=e=>g6[e]||e,uO=({theme:e,ownerState:t})=>{const n=cO(t.color),r=Ns(e,`palette.${n}`,!1)||t.color,o=Ns(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ne(r,.4)},dO=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],fO=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${oe(o)}`,n==="button"&&"button",r&&"focusVisible"]};return De(i,sO,t)},pO=Y(Te,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${oe(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>b({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&b({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:uO({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${lO.focusVisible}`]:{outline:"auto"}})),hO=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:a,onFocus:l,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:p}=r,x=te(r,dO),{isFocusVisibleRef:g,onBlur:h,onFocus:E,ref:m}=of(),[y,C]=v.useState(!1),w=tt(n,m),S=T=>{h(T),g.current===!1&&C(!1),a&&a(T)},P=T=>{E(T),g.current===!0&&C(!0),l&&l(T)},k=b({},r,{color:i,component:s,focusVisible:y,underline:u,variant:d}),M=fO(k);return f.jsx(pO,b({color:i,className:ue(M.root,o),classes:c,component:s,onBlur:S,onFocus:P,ref:w,ownerState:k,variant:d,sx:[...Object.keys(g6).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},x))}),no=hO,mO=v.createContext({}),vi=mO;function gO(e){return _e("MuiList",e)}Pe("MuiList",["root","padding","dense","subheader"]);const yO=["children","className","component","dense","disablePadding","subheader"],vO=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return De({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},gO,t)},xO=Y("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>b({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),CO=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,u=te(r,yO),d=v.useMemo(()=>({dense:a}),[a]),p=b({},r,{component:s,dense:a,disablePadding:l}),x=vO(p);return f.jsx(vi.Provider,{value:d,children:f.jsxs(xO,b({as:s,className:ue(x.root,i),ref:n,ownerState:p},u,{children:[c,o]}))})}),y6=CO;function bO(e){return _e("MuiListItem",e)}const wO=Pe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),es=wO,SO=Pe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),kO=SO;function EO(e){return _e("MuiListItemSecondaryAction",e)}Pe("MuiListItemSecondaryAction",["root","disableGutters"]);const PO=["className"],MO=e=>{const{disableGutters:t,classes:n}=e;return De({root:["root",t&&"disableGutters"]},EO,n)},TO=Y("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>b({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),v6=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=te(r,PO),s=v.useContext(vi),a=b({},r,{disableGutters:s.disableGutters}),l=MO(a);return f.jsx(TO,b({className:ue(l.root,o),ownerState:a,ref:n},i))});v6.muiName="ListItemSecondaryAction";const RO=v6,DO=["className"],_O=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],OO=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},IO=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:u}=e;return De({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},bO,r)},$O=Y("div",{name:"MuiListItem",slot:"Root",overridesResolver:OO})(({theme:e,ownerState:t})=>b({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&b({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${kO.root}`]:{paddingRight:48}},{[`&.${es.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${es.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${es.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${es.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${es.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),FO=Y("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),AO=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:x}={},dense:g=!1,disabled:h=!1,disableGutters:E=!1,disablePadding:m=!1,divider:y=!1,focusVisibleClassName:C,secondaryAction:w,selected:S=!1,slotProps:P={},slots:k={}}=r,M=te(r.ContainerProps,DO),T=te(r,_O),D=v.useContext(vi),_=v.useMemo(()=>({dense:g||D.dense||!1,alignItems:o,disableGutters:E}),[o,D.dense,g,E]),A=v.useRef(null);Lt(()=>{i&&A.current&&A.current.focus()},[i]);const $=v.Children.toArray(a),R=$.length&&xu($[$.length-1],["ListItemSecondaryAction"]),O=b({},r,{alignItems:o,autoFocus:i,button:s,dense:_.dense,disabled:h,disableGutters:E,disablePadding:m,divider:y,hasSecondaryAction:R,selected:S}),L=IO(O),V=tt(A,n),I=k.root||u.Root||$O,F=P.root||d.root||{},W=b({className:ue(L.root,F.className,l),disabled:h},T);let se=c||"li";return s&&(W.component=c||"div",W.focusVisibleClassName=ue(es.focusVisible,C),se=Ir),R?(se=!W.component&&!c?"div":se,p==="li"&&(se==="li"?se="div":W.component==="li"&&(W.component="div")),f.jsx(vi.Provider,{value:_,children:f.jsxs(FO,b({as:p,className:ue(L.container,x),ref:V,ownerState:O},M,{children:[f.jsx(I,b({},F,!_r(I)&&{as:se,ownerState:b({},O,F.ownerState)},W,{children:$})),$.pop()]}))})):f.jsx(vi.Provider,{value:_,children:f.jsxs(I,b({},F,{as:se,ref:V},!_r(I)&&{ownerState:b({},O,F.ownerState)},W,{children:[$,w&&f.jsx(RO,{children:w})]}))})}),LO=AO,jO=Pe("MuiListItemIcon",["root","alignItemsFlexStart"]),Jy=jO,NO=Pe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Qy=NO,VO=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Xp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ev(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function x6(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ba(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!x6(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const zO=v.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,p=te(t,VO),x=v.useRef(null),g=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lt(()=>{o&&x.current.focus()},[o]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,w)=>{const S=!x.current.style.width;if(C.clientHeight<x.current.clientHeight&&S){const P=`${bx(Pt(C))}px`;x.current.style[w.direction==="rtl"?"paddingLeft":"paddingRight"]=P,x.current.style.width=`calc(100% + ${P})`}return x.current}}),[]);const h=C=>{const w=x.current,S=C.key,P=Pt(w).activeElement;if(S==="ArrowDown")C.preventDefault(),ba(w,P,c,l,Xp);else if(S==="ArrowUp")C.preventDefault(),ba(w,P,c,l,ev);else if(S==="Home")C.preventDefault(),ba(w,null,c,l,Xp);else if(S==="End")C.preventDefault(),ba(w,null,c,l,ev);else if(S.length===1){const k=g.current,M=S.toLowerCase(),T=performance.now();k.keys.length>0&&(T-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&M!==k.keys[0]&&(k.repeating=!1)),k.lastTime=T,k.keys.push(M);const D=P&&!k.repeating&&x6(P,k);k.previousKeyMatched&&(D||ba(w,P,!1,l,Xp,k))?C.preventDefault():k.previousKeyMatched=!1}u&&u(C)},E=tt(x,n);let m=-1;v.Children.forEach(s,(C,w)=>{if(!v.isValidElement(C)){m===w&&(m+=1,m>=s.length&&(m=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||m===-1)&&(m=w),m===w&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(m+=1,m>=s.length&&(m=-1))});const y=v.Children.map(s,(C,w)=>{if(w===m){const S={};return i&&(S.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(S.tabIndex=0),v.cloneElement(C,S)}return C});return f.jsx(y6,b({role:"menu",ref:E,className:a,onKeyDown:h,tabIndex:o?0:-1},p,{children:y}))}),BO=zO;function WO(e){return _e("MuiPopover",e)}Pe("MuiPopover",["root","paper"]);const HO=["onEntering"],UO=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],YO=["slotProps"];function tv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function nv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function rv(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Jp(e){return typeof e=="function"?e():e}const GO=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"]},WO,t)},qO=Y(zm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C6=Y(Ql,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),KO=v.forwardRef(function(t,n){var r,o,i;const s=Re({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:x,container:g,elevation:h=8,marginThreshold:E=16,open:m,PaperProps:y={},slots:C,slotProps:w,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:P=d6,transitionDuration:k="auto",TransitionProps:{onEntering:M}={},disableScrollLock:T=!1}=s,D=te(s.TransitionProps,HO),_=te(s,UO),A=(r=w==null?void 0:w.paper)!=null?r:y,$=v.useRef(),R=tt($,A.ref),O=b({},s,{anchorOrigin:c,anchorReference:d,elevation:h,marginThreshold:E,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:P,transitionDuration:k,TransitionProps:D}),L=GO(O),V=v.useCallback(()=>{if(d==="anchorPosition")return u;const j=Jp(l),Z=(j&&j.nodeType===1?j:Pt($.current).body).getBoundingClientRect();return{top:Z.top+tv(Z,c.vertical),left:Z.left+nv(Z,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),I=v.useCallback(j=>({vertical:tv(j,S.vertical),horizontal:nv(j,S.horizontal)}),[S.horizontal,S.vertical]),F=v.useCallback(j=>{const G={width:j.offsetWidth,height:j.offsetHeight},Z=I(G);if(d==="none")return{top:null,left:null,transformOrigin:rv(Z)};const xe=V();let Ie=xe.top-Z.vertical,le=xe.left-Z.horizontal;const pe=Ie+G.height,U=le+G.width,Q=Mi(Jp(l)),we=Q.innerHeight-E,$e=Q.innerWidth-E;if(E!==null&&Ie<E){const ke=Ie-E;Ie-=ke,Z.vertical+=ke}else if(E!==null&&pe>we){const ke=pe-we;Ie-=ke,Z.vertical+=ke}if(E!==null&&le<E){const ke=le-E;le-=ke,Z.horizontal+=ke}else if(U>$e){const ke=U-$e;le-=ke,Z.horizontal+=ke}return{top:`${Math.round(Ie)}px`,left:`${Math.round(le)}px`,transformOrigin:rv(Z)}},[l,d,V,I,E]),[W,se]=v.useState(m),B=v.useCallback(()=>{const j=$.current;if(!j)return;const G=F(j);G.top!==null&&(j.style.top=G.top),G.left!==null&&(j.style.left=G.left),j.style.transformOrigin=G.transformOrigin,se(!0)},[F]);v.useEffect(()=>(T&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[l,T,B]);const H=(j,G)=>{M&&M(j,G),B()},z=()=>{se(!1)};v.useEffect(()=>{m&&B()}),v.useImperativeHandle(a,()=>m?{updatePosition:()=>{B()}}:null,[m,B]),v.useEffect(()=>{if(!m)return;const j=Cx(()=>{B()}),G=Mi(l);return G.addEventListener("resize",j),()=>{j.clear(),G.removeEventListener("resize",j)}},[l,m,B]);let ne=k;k==="auto"&&!P.muiSupportAuto&&(ne=void 0);const ce=g||(l?Pt(Jp(l)).body:void 0),q=(o=C==null?void 0:C.root)!=null?o:qO,me=(i=C==null?void 0:C.paper)!=null?i:C6,Se=We({elementType:me,externalSlotProps:b({},A,{style:W?A.style:b({},A.style,{opacity:0})}),additionalProps:{elevation:h,ref:R},ownerState:O,className:ue(L.paper,A==null?void 0:A.className)}),Ee=We({elementType:q,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:_,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ce,open:m},ownerState:O,className:ue(L.root,x)}),{slotProps:re}=Ee,ee=te(Ee,YO);return f.jsx(q,b({},ee,!_r(q)&&{slotProps:re,disableScrollLock:T},{children:f.jsx(P,b({appear:!0,in:m,onEntering:H,onExited:z,timeout:ne},D,{children:f.jsx(me,b({},Se,{children:p}))}))}))}),ZO=KO;function XO(e){return _e("MuiMenu",e)}Pe("MuiMenu",["root","paper","list"]);const JO=["onEntering"],QO=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],eI={vertical:"top",horizontal:"right"},tI={vertical:"top",horizontal:"left"},nI=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"],list:["list"]},XO,t)},rI=Y(ZO,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oI=Y(C6,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),iI=Y(BO,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),sI=v.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:x={},PopoverClasses:g,transitionDuration:h="auto",TransitionProps:{onEntering:E}={},variant:m="selectedMenu",slots:y={},slotProps:C={}}=i,w=te(i.TransitionProps,JO),S=te(i,QO),P=Le(),k=P.direction==="rtl",M=b({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:E,PaperProps:x,transitionDuration:h,TransitionProps:w,variant:m}),T=nI(M),D=s&&!c&&p,_=v.useRef(null),A=(F,W)=>{_.current&&_.current.adjustStyleForScrollbar(F,P),E&&E(F,W)},$=F=>{F.key==="Tab"&&(F.preventDefault(),d&&d(F,"tabKeyDown"))};let R=-1;v.Children.map(a,(F,W)=>{v.isValidElement(F)&&(F.props.disabled||(m==="selectedMenu"&&F.props.selected||R===-1)&&(R=W))});const O=(r=y.paper)!=null?r:oI,L=(o=C.paper)!=null?o:x,V=We({elementType:y.root,externalSlotProps:C.root,ownerState:M,className:[T.root,l]}),I=We({elementType:O,externalSlotProps:L,ownerState:M,className:T.paper});return f.jsx(rI,b({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?eI:tI,slots:{paper:O,root:y.root},slotProps:{root:V,paper:I},open:p,ref:n,transitionDuration:h,TransitionProps:b({onEntering:A},w),ownerState:M},S,{classes:g,children:f.jsx(iI,b({onKeyDown:$,actions:_,autoFocus:s&&(R===-1||c),autoFocusItem:D,variant:m},u,{className:ue(T.list,u.className),children:a}))}))}),aI=sI;function lI(e){return _e("MuiMenuItem",e)}const cI=Pe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wa=cI,uI=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],dI=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},fI=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=De({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},lI,s);return b({},s,l)},pI=Y(Ir,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:dI})(({theme:e,ownerState:t})=>b({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Gy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Gy.inset}`]:{marginLeft:52},[`& .${Qy.root}`]:{marginTop:0,marginBottom:0},[`& .${Qy.inset}`]:{paddingLeft:36},[`& .${Jy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&b({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Jy.root} svg`]:{fontSize:"1.25rem"}}))),hI=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=r,x=te(r,uI),g=v.useContext(vi),h=v.useMemo(()=>({dense:s||g.dense||!1,disableGutters:l}),[g.dense,s,l]),E=v.useRef(null);Lt(()=>{o&&E.current&&E.current.focus()},[o]);const m=b({},r,{dense:h.dense,divider:a,disableGutters:l}),y=fI(r),C=tt(E,n);let w;return r.disabled||(w=d!==void 0?d:-1),f.jsx(vi.Provider,{value:h,children:f.jsx(pI,b({ref:C,role:u,tabIndex:w,component:i,focusVisibleClassName:ue(y.focusVisible,c),className:ue(y.root,p)},x,{ownerState:m,classes:y}))})}),mI=hI;function gI(e){return _e("MuiNativeSelect",e)}const yI=Pe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Wm=yI,vI=["className","disabled","error","IconComponent","inputRef","variant"],xI=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${oe(n)}`,i&&"iconOpen",r&&"disabled"]};return De(a,gI,t)},b6=({ownerState:e,theme:t})=>b({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":b({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Wm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),CI=Y("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:an,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Wm.multiple}`]:t.multiple}]}})(b6),w6=({ownerState:e,theme:t})=>b({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Wm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),bI=Y("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${oe(n.variant)}`],n.open&&t.iconOpen]}})(w6),wI=v.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=te(t,vI),u=b({},t,{disabled:o,variant:l,error:i}),d=xI(u);return f.jsxs(v.Fragment,{children:[f.jsx(CI,b({ownerState:u,className:ue(d.select,r),disabled:o,ref:a||n},c)),t.multiple?null:f.jsx(bI,{as:s,ownerState:u,className:d.icon})]})}),SI=wI;var ov;const kI=["children","classes","className","label","notched"],EI=Y("fieldset",{shouldForwardProp:an})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),PI=Y("legend",{shouldForwardProp:an})(({ownerState:e,theme:t})=>b({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&b({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function MI(e){const{className:t,label:n,notched:r}=e,o=te(e,kI),i=n!=null&&n!=="",s=b({},e,{notched:r,withLabel:i});return f.jsx(EI,b({"aria-hidden":!0,className:t,ownerState:s},o,{children:f.jsx(PI,{ownerState:s,children:i?f.jsx("span",{children:n}):ov||(ov=f.jsx("span",{className:"notranslate",children:""}))})}))}const TI=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],RI=e=>{const{classes:t}=e,r=De({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},PR,t);return b({},t,r)},DI=Y(Of,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Df})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return b({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${bo.focused} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${bo.error} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bo.disabled} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&b({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),_I=Y(MI,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),OI=Y(If,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_f})(({theme:e,ownerState:t})=>b({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),S6=v.forwardRef(function(t,n){var r,o,i,s,a;const l=Re({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:x=!1,notched:g,slots:h={},type:E="text"}=l,m=te(l,TI),y=RI(l),C=Lr(),w=Ko({props:l,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=b({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:C,fullWidth:u,hiddenLabel:w.hiddenLabel,multiline:x,size:w.size,type:E}),P=(r=(o=h.root)!=null?o:c.Root)!=null?r:DI,k=(i=(s=h.input)!=null?s:c.Input)!=null?i:OI;return f.jsx(Vm,b({slots:{root:P,input:k},renderSuffix:M=>f.jsx(_I,{ownerState:S,className:y.notchedOutline,label:p!=null&&p!==""&&w.required?a||(a=f.jsxs(v.Fragment,{children:[p,"","*"]})):p,notched:typeof g<"u"?g:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:u,inputComponent:d,multiline:x,ref:n,type:E},m,{classes:b({},y,{notchedOutline:null})}))});S6.muiName="Input";const k6=S6,II=Xt(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),$I=Xt(f.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),FI=Y("span",{shouldForwardProp:an})({position:"relative",display:"flex"}),AI=Y(II)({transform:"scale(1)"}),LI=Y($I)(({theme:e,ownerState:t})=>b({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function E6(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=b({},e,{checked:t});return f.jsxs(FI,{className:n.root,ownerState:o,children:[f.jsx(AI,{fontSize:r,className:n.background,ownerState:o}),f.jsx(LI,{fontSize:r,className:n.dot,ownerState:o})]})}const jI=v.createContext(void 0),P6=jI;function NI(){return v.useContext(P6)}function VI(e){return _e("MuiRadio",e)}const iv=Pe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),zI=["checked","checkedIcon","color","icon","name","onChange","size","className"],BI=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${oe(n)}`,r!=="medium"&&`size${oe(r)}`]};return b({},t,De(o,VI,t))},WI=Y(i6,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${oe(n.size)}`],t[`color${oe(n.color)}`]]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${iv.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${iv.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function HI(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const sv=f.jsx(E6,{checked:!0}),av=f.jsx(E6,{}),UI=v.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:a=sv,color:l="primary",icon:c=av,name:u,onChange:d,size:p="medium",className:x}=i,g=te(i,zI),h=b({},i,{color:l,size:p}),E=BI(h),m=NI();let y=s;const C=E0(d,m&&m.onChange);let w=u;return m&&(typeof y>"u"&&(y=HI(m.value,i.value)),typeof w>"u"&&(w=m.name)),f.jsx(WI,b({type:"radio",icon:v.cloneElement(c,{fontSize:(r=av.props.fontSize)!=null?r:p}),checkedIcon:v.cloneElement(a,{fontSize:(o=sv.props.fontSize)!=null?o:p}),ownerState:h,classes:E,name:w,checked:y,onChange:C,ref:n,className:ue(E.root,x)},g))}),Ff=UI,YI=["actions","children","defaultValue","name","onChange","value"],GI=v.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:i,name:s,onChange:a,value:l}=t,c=te(t,YI),u=v.useRef(null),[d,p]=kn({controlled:l,default:i,name:"RadioGroup"});v.useImperativeHandle(r,()=>({focus:()=>{let E=u.current.querySelector("input:not(:disabled):checked");E||(E=u.current.querySelector("input:not(:disabled)")),E&&E.focus()}}),[]);const x=tt(n,u),g=ho(s),h=v.useMemo(()=>({name:g,onChange(E){p(E.target.value),a&&a(E,E.target.value)},value:d}),[g,a,p,d]);return f.jsx(P6.Provider,{value:h,children:f.jsx(c6,b({role:"radiogroup",ref:x},c,{children:o}))})}),Af=GI,qI=Xt(f.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),KI=Xt(f.jsx("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function ZI(e){return _e("MuiRating",e)}const XI=Pe("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]),Sa=XI,JI=["value"],QI=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function e$(e){const t=e.toString().split(".")[1];return t?t.length:0}function Qp(e,t){if(e==null)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(e$(t)))}const t$=e=>{const{classes:t,size:n,readOnly:r,disabled:o,emptyValueFocused:i,focusVisible:s}=e,a={root:["root",`size${oe(n)}`,o&&"disabled",s&&"focusVisible",r&&"readOnly"],label:["label","pristine"],labelEmptyValue:[i&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return De(a,ZI,t)},n$=Y("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Sa.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${oe(n.size)}`],n.readOnly&&t.readOnly]}})(({theme:e,ownerState:t})=>b({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",WebkitTapHighlightColor:"transparent",[`&.${Sa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Sa.focusVisible} .${Sa.iconActive}`]:{outline:"1px solid #999"},[`& .${Sa.visuallyHidden}`]:wx},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(30)},t.readOnly&&{pointerEvents:"none"})),M6=Y("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},t)=>[t.label,e.emptyValueFocused&&t.labelEmptyValueActive]})(({ownerState:e})=>b({cursor:"inherit"},e.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"})),r$=Y("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.iconEmpty&&t.iconEmpty,n.iconFilled&&t.iconFilled,n.iconHover&&t.iconHover,n.iconFocus&&t.iconFocus,n.iconActive&&t.iconActive]}})(({theme:e,ownerState:t})=>b({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none"},t.iconActive&&{transform:"scale(1.2)"},t.iconEmpty&&{color:(e.vars||e).palette.action.disabled})),o$=Y("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>gf(e)&&e!=="iconActive",overridesResolver:(e,t)=>{const{iconActive:n}=e;return[t.decimal,n&&t.iconActive]}})(({iconActive:e})=>b({position:"relative"},e&&{transform:"scale(1.2)"}));function i$(e){const t=te(e,JI);return f.jsx("span",b({},t))}function lv(e){const{classes:t,disabled:n,emptyIcon:r,focus:o,getLabelText:i,highlightSelectedOnly:s,hover:a,icon:l,IconContainerComponent:c,isActive:u,itemValue:d,labelProps:p,name:x,onBlur:g,onChange:h,onClick:E,onFocus:m,readOnly:y,ownerState:C,ratingValue:w,ratingValueRounded:S}=e,P=s?d===w:d<=w,k=d<=a,M=d<=o,T=d===S,D=ho(),_=f.jsx(r$,{as:c,value:d,className:ue(t.icon,P?t.iconFilled:t.iconEmpty,k&&t.iconHover,M&&t.iconFocus,u&&t.iconActive),ownerState:b({},C,{iconEmpty:!P,iconFilled:P,iconHover:k,iconFocus:M,iconActive:u}),children:r&&!P?r:l});return y?f.jsx("span",b({},p,{children:_})):f.jsxs(v.Fragment,{children:[f.jsxs(M6,b({ownerState:b({},C,{emptyValueFocused:void 0}),htmlFor:D},p,{children:[_,f.jsx("span",{className:t.visuallyHidden,children:i(d)})]})),f.jsx("input",{className:t.visuallyHidden,onFocus:m,onBlur:g,onChange:h,onClick:E,disabled:n,value:d,id:D,type:"radio",name:x,checked:T})]})}const s$=f.jsx(qI,{fontSize:"inherit"}),a$=f.jsx(KI,{fontSize:"inherit"});function l$(e){return`${e} Star${e!==1?"s":""}`}const c$=v.forwardRef(function(t,n){const r=Re({name:"MuiRating",props:t}),{className:o,defaultValue:i=null,disabled:s=!1,emptyIcon:a=a$,emptyLabelText:l="Empty",getLabelText:c=l$,highlightSelectedOnly:u=!1,icon:d=s$,IconContainerComponent:p=i$,max:x=5,name:g,onChange:h,onChangeActive:E,onMouseLeave:m,onMouseMove:y,precision:C=1,readOnly:w=!1,size:S="medium",value:P}=r,k=te(r,QI),M=ho(g),[T,D]=kn({controlled:P,default:i,name:"Rating"}),_=Qp(T,C),A=Le(),[{hover:$,focus:R},O]=v.useState({hover:-1,focus:-1});let L=_;$!==-1&&(L=$),R!==-1&&(L=R);const{isFocusVisibleRef:V,onBlur:I,onFocus:F,ref:W}=of(),[se,B]=v.useState(!1),H=v.useRef(),z=tt(W,H,n),ne=Z=>{y&&y(Z);const xe=H.current,{right:Ie,left:le,width:pe}=xe.getBoundingClientRect();let U;A.direction==="rtl"?U=(Ie-Z.clientX)/pe:U=(Z.clientX-le)/pe;let Q=Qp(x*U+C/2,C);Q=li(Q,C,x),O(we=>we.hover===Q&&we.focus===Q?we:{hover:Q,focus:Q}),B(!1),E&&$!==Q&&E(Z,Q)},ce=Z=>{m&&m(Z);const xe=-1;O({hover:xe,focus:xe}),E&&$!==xe&&E(Z,xe)},q=Z=>{let xe=Z.target.value===""?null:parseFloat(Z.target.value);$!==-1&&(xe=$),D(xe),h&&h(Z,xe)},me=Z=>{Z.clientX===0&&Z.clientY===0||(O({hover:-1,focus:-1}),D(null),h&&parseFloat(Z.target.value)===_&&h(Z,null))},Se=Z=>{F(Z),V.current===!0&&B(!0);const xe=parseFloat(Z.target.value);O(Ie=>({hover:Ie.hover,focus:xe}))},Ee=Z=>{if($!==-1)return;I(Z),V.current===!1&&B(!1);const xe=-1;O(Ie=>({hover:Ie.hover,focus:xe}))},[re,ee]=v.useState(!1),j=b({},r,{defaultValue:i,disabled:s,emptyIcon:a,emptyLabelText:l,emptyValueFocused:re,focusVisible:se,getLabelText:c,icon:d,IconContainerComponent:p,max:x,precision:C,readOnly:w,size:S}),G=t$(j);return f.jsxs(n$,b({ref:z,onMouseMove:ne,onMouseLeave:ce,className:ue(G.root,o,w&&"MuiRating-readOnly"),ownerState:j,role:w?"img":null,"aria-label":w?c(L):null},k,{children:[Array.from(new Array(x)).map((Z,xe)=>{const Ie=xe+1,le={classes:G,disabled:s,emptyIcon:a,focus:R,getLabelText:c,highlightSelectedOnly:u,hover:$,icon:d,IconContainerComponent:p,name:M,onBlur:Ee,onChange:q,onClick:me,onFocus:Se,ratingValue:L,ratingValueRounded:_,readOnly:w,ownerState:j},pe=Ie===Math.ceil(L)&&($!==-1||R!==-1);if(C<1){const U=Array.from(new Array(1/C));return f.jsx(o$,{className:ue(G.decimal,pe&&G.iconActive),ownerState:j,iconActive:pe,children:U.map((Q,we)=>{const $e=Qp(Ie-1+(we+1)*C,C);return f.jsx(lv,b({},le,{isActive:!1,itemValue:$e,labelProps:{style:U.length-1===we?{}:{width:$e===L?`${(we+1)*C*100}%`:"0%",overflow:"hidden",position:"absolute"}}}),$e)})},Ie)}return f.jsx(lv,b({},le,{isActive:pe,itemValue:Ie}),Ie)}),!w&&!s&&f.jsxs(M6,{className:ue(G.label,G.labelEmptyValue),ownerState:j,children:[f.jsx("input",{className:G.visuallyHidden,value:"",id:`${M}-empty`,type:"radio",name:M,checked:_==null,onFocus:()=>ee(!0),onBlur:()=>ee(!1),onChange:q}),f.jsx("span",{className:G.visuallyHidden,children:l})]})]}))}),u$=c$;function d$(e){return _e("MuiSelect",e)}const ka=Pe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var cv;const f$=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],p$=Y("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ka.select}`]:t.select},{[`&.${ka.select}`]:t[n.variant]},{[`&.${ka.error}`]:t.error},{[`&.${ka.multiple}`]:t.multiple}]}})(b6,{[`&.${ka.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),h$=Y("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${oe(n.variant)}`],n.open&&t.iconOpen]}})(w6),m$=Y("input",{shouldForwardProp:e=>gf(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function uv(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function g$(e){return e==null||typeof e=="string"&&!e.trim()}const y$=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${oe(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return De(a,d$,t)},v$=v.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:x,error:g=!1,IconComponent:h,inputRef:E,labelId:m,MenuProps:y={},multiple:C,name:w,onBlur:S,onChange:P,onClose:k,onFocus:M,onOpen:T,open:D,readOnly:_,renderValue:A,SelectDisplayProps:$={},tabIndex:R,value:O,variant:L="standard"}=t,V=te(t,f$),[I,F]=kn({controlled:O,default:d,name:"Select"}),[W,se]=kn({controlled:D,default:u,name:"Select"}),B=v.useRef(null),H=v.useRef(null),[z,ne]=v.useState(null),{current:ce}=v.useRef(D!=null),[q,me]=v.useState(),Se=tt(n,E),Ee=v.useCallback(fe=>{H.current=fe,fe&&ne(fe)},[]),re=z==null?void 0:z.parentNode;v.useImperativeHandle(Se,()=>({focus:()=>{H.current.focus()},node:B.current,value:I}),[I]),v.useEffect(()=>{u&&W&&z&&!ce&&(me(a?null:re.clientWidth),H.current.focus())},[z,a]),v.useEffect(()=>{s&&H.current.focus()},[s]),v.useEffect(()=>{if(!m)return;const fe=Pt(H.current).getElementById(m);if(fe){const je=()=>{getSelection().isCollapsed&&H.current.focus()};return fe.addEventListener("click",je),()=>{fe.removeEventListener("click",je)}}},[m]);const ee=(fe,je)=>{fe?T&&T(je):k&&k(je),ce||(me(a?null:re.clientWidth),se(fe))},j=fe=>{fe.button===0&&(fe.preventDefault(),H.current.focus(),ee(!0,fe))},G=fe=>{ee(!1,fe)},Z=v.Children.toArray(l),xe=fe=>{const je=Z.find(ut=>ut.props.value===fe.target.value);je!==void 0&&(F(je.props.value),P&&P(fe,je))},Ie=fe=>je=>{let ut;if(je.currentTarget.hasAttribute("tabindex")){if(C){ut=Array.isArray(I)?I.slice():[];const wt=I.indexOf(fe.props.value);wt===-1?ut.push(fe.props.value):ut.splice(wt,1)}else ut=fe.props.value;if(fe.props.onClick&&fe.props.onClick(je),I!==ut&&(F(ut),P)){const wt=je.nativeEvent||je,vo=new wt.constructor(wt.type,wt);Object.defineProperty(vo,"target",{writable:!0,value:{value:ut,name:w}}),P(vo,fe)}C||ee(!1,je)}},le=fe=>{_||[" ","ArrowUp","ArrowDown","Enter"].indexOf(fe.key)!==-1&&(fe.preventDefault(),ee(!0,fe))},pe=z!==null&&W,U=fe=>{!pe&&S&&(Object.defineProperty(fe,"target",{writable:!0,value:{value:I,name:w}}),S(fe))};delete V["aria-invalid"];let Q,we;const $e=[];let ke=!1;(ad({value:I})||x)&&(A?Q=A(I):ke=!0);const X=Z.map(fe=>{if(!v.isValidElement(fe))return null;let je;if(C){if(!Array.isArray(I))throw new Error(Bo(2));je=I.some(ut=>uv(ut,fe.props.value)),je&&ke&&$e.push(fe.props.children)}else je=uv(I,fe.props.value),je&&ke&&(we=fe.props.children);return v.cloneElement(fe,{"aria-selected":je?"true":"false",onClick:Ie(fe),onKeyUp:ut=>{ut.key===" "&&ut.preventDefault(),fe.props.onKeyUp&&fe.props.onKeyUp(ut)},role:"option",selected:je,value:void 0,"data-value":fe.props.value})});ke&&(C?$e.length===0?Q=null:Q=$e.reduce((fe,je,ut)=>(fe.push(je),ut<$e.length-1&&fe.push(", "),fe),[]):Q=we);let he=q;!a&&ce&&z&&(he=re.clientWidth);let ve;typeof R<"u"?ve=R:ve=p?null:0;const ge=$.id||(w?`mui-component-select-${w}`:void 0),ye=b({},t,{variant:L,value:I,open:pe,error:g}),qe=y$(ye),Ve=b({},y.PaperProps,(r=y.slotProps)==null?void 0:r.paper),He=ho();return f.jsxs(v.Fragment,{children:[f.jsx(p$,b({ref:Ee,tabIndex:ve,role:"combobox","aria-controls":He,"aria-disabled":p?"true":void 0,"aria-expanded":pe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,ge].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:le,onMouseDown:p||_?null:j,onBlur:U,onFocus:M},$,{ownerState:ye,className:ue($.className,qe.select,c),id:ge,children:g$(Q)?cv||(cv=f.jsx("span",{className:"notranslate",children:""})):Q})),f.jsx(m$,b({"aria-invalid":g,value:Array.isArray(I)?I.join(","):I,name:w,ref:B,"aria-hidden":!0,onChange:xe,tabIndex:-1,disabled:p,className:qe.nativeInput,autoFocus:s,ownerState:ye},V)),f.jsx(h$,{as:h,className:qe.icon,ownerState:ye}),f.jsx(aI,b({id:`menu-${w||""}`,anchorEl:re,open:pe,onClose:G,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:b({"aria-labelledby":m,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:He},y.MenuListProps),slotProps:b({},y.slotProps,{paper:b({},Ve,{style:b({minWidth:he},Ve!=null?Ve.style:null)})}),children:X}))]})}),x$=v$,C$=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],b$=["root"],w$=e=>{const{classes:t}=e;return t},Hm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>an(e)&&e!=="variant",slot:"Root"},S$=Y(m6,Hm)(""),k$=Y(k6,Hm)(""),E$=Y(l6,Hm)(""),T6=v.forwardRef(function(t,n){const r=Re({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=DR,id:d,input:p,inputProps:x,label:g,labelId:h,MenuProps:E,multiple:m=!1,native:y=!1,onClose:C,onOpen:w,open:S,renderValue:P,SelectDisplayProps:k,variant:M="outlined"}=r,T=te(r,C$),D=y?SI:x$,_=Lr(),A=Ko({props:r,muiFormControl:_,states:["variant","error"]}),$=A.variant||M,R=b({},r,{variant:$,classes:s}),O=w$(R),L=te(O,b$),V=p||{standard:f.jsx(S$,{ownerState:R}),outlined:f.jsx(k$,{label:g,ownerState:R}),filled:f.jsx(E$,{ownerState:R})}[$],I=tt(n,V.ref);return f.jsx(v.Fragment,{children:v.cloneElement(V,b({inputComponent:D,inputProps:b({children:i,error:A.error,IconComponent:u,variant:$,type:void 0,multiple:m},y?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:h,MenuProps:E,onClose:C,onOpen:w,open:S,renderValue:P,SelectDisplayProps:b({id:d},k)},x,{classes:x?nn(L,x.classes):L},p?p.props.inputProps:{})},m&&y&&$==="outlined"?{notched:!0}:{},{ref:I,className:ue(V.props.className,a,O.root)},!p&&{variant:$},T))})});T6.muiName="Select";const R6=T6;function P$(e){return _e("MuiSkeleton",e)}Pe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const M$=["animation","className","component","height","style","variant","width"];let ld=e=>e,dv,fv,pv,hv;const T$=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:s}=e;return De({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},P$,t)},R$=Zl(dv||(dv=ld`
0% {
opacity: 1;
}
50% {
opacity: 0.4;
}
100% {
opacity: 1;
}
`)),D$=Zl(fv||(fv=ld`
0% {
transform: translateX(-100%);
}
50% {
/* +0.5s of delay between each loop */
transform: translateX(100%);
}
100% {
transform: translateX(100%);
}
`)),_$=Y("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=iP(e.shape.borderRadius)||"px",r=sP(e.shape.borderRadius);return b({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Ne(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&S0(pv||(pv=ld`
animation: ${0} 2s ease-in-out 0.5s infinite;
`),R$),({ownerState:e,theme:t})=>e.animation==="wave"&&S0(hv||(hv=ld`
position: relative;
overflow: hidden;
/* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
-webkit-mask-image: -webkit-radial-gradient(white, black);
&::after {
animation: ${0} 2s linear 0.5s infinite;
background: linear-gradient(
90deg,
transparent,
${0},
transparent
);
content: '';
position: absolute;
transform: translateX(-100%); /* Avoid flash during server-side hydration */
bottom: 0;
left: 0;
right: 0;
top: 0;
}
`),D$,(t.vars||t).palette.action.hover)),O$=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:s="span",height:a,style:l,variant:c="text",width:u}=r,d=te(r,M$),p=b({},r,{animation:o,component:s,variant:c,hasChildren:!!d.children}),x=T$(p);return f.jsx(_$,b({as:s,ref:n,className:ue(x.root,i),ownerState:p},d,{style:b({width:u,height:a},l)}))}),D6=O$,I$=e=>!e||!_r(e);function $$(e){return _e("MuiSlider",e)}const cr=Pe("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),F$=e=>{const{open:t}=e;return{offset:ue(t&&cr.valueLabelOpen),circle:cr.valueLabelCircle,label:cr.valueLabelLabel}};function A$(e){const{children:t,className:n,value:r}=e,o=F$(e);return t?v.cloneElement(t,{className:ue(t.props.className)},f.jsxs(v.Fragment,{children:[t.props.children,f.jsx("span",{className:ue(o.offset,n),"aria-hidden":!0,children:f.jsx("span",{className:o.circle,children:f.jsx("span",{className:o.label,children:r})})})]})):null}const L$=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function mv(e){return e}const j$=Y("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${oe(n.color)}`],n.size!=="medium"&&t[`size${oe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>b({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&b({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&b({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${cr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${cr.dragging}`]:{[`& .${cr.thumb}, & .${cr.track}`]:{transition:"none"}}})),N$=Y("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>b({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),V$=Y("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?$x(e.palette[t.color].main,.62):Ix(e.palette[t.color].main,.5);return b({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),z$=Y("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${oe(n.color)}`],n.size!=="medium"&&t[`thumbSize${oe(n.size)}`]]}})(({theme:e,ownerState:t})=>b({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":b({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${cr.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Ne(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${cr.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Ne(e.palette[t.color].main,.16)}`},[`&.${cr.disabled}`]:{"&:hover":{boxShadow:"none"}}})),B$=Y(A$,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>b({[`&.${cr.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),W$=Y("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>gf(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>b({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),H$=Y("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>gf(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>b({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),U$=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${oe(a)}`,l&&`size${oe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${oe(l)}`,a&&`thumbColor${oe(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return De(c,$$,s)},Y$=({children:e})=>e,G$=v.forwardRef(function(t,n){var r,o,i,s,a,l,c,u,d,p,x,g,h,E,m,y,C,w,S,P,k,M,T,D;const _=Re({props:t,name:"MuiSlider"}),$=Le().direction==="rtl",{"aria-label":R,"aria-valuetext":O,"aria-labelledby":L,component:V="span",components:I={},componentsProps:F={},color:W="primary",classes:se,className:B,disableSwap:H=!1,disabled:z=!1,getAriaLabel:ne,getAriaValueText:ce,marks:q=!1,max:me=100,min:Se=0,orientation:Ee="horizontal",size:re="medium",step:ee=1,scale:j=mv,slotProps:G,slots:Z,track:xe="normal",valueLabelDisplay:Ie="off",valueLabelFormat:le=mv}=_,pe=te(_,L$),U=b({},_,{isRtl:$,max:me,min:Se,classes:se,disabled:z,disableSwap:H,orientation:Ee,marks:q,color:W,size:re,step:ee,scale:j,track:xe,valueLabelDisplay:Ie,valueLabelFormat:le}),{axisProps:Q,getRootProps:we,getHiddenInputProps:$e,getThumbProps:ke,open:X,active:he,axis:ve,focusedThumbIndex:ge,range:ye,dragging:qe,marks:Ve,values:He,trackOffset:fe,trackLeap:je,getThumbStyle:ut}=QT(b({},U,{rootRef:n}));U.marked=Ve.length>0&&Ve.some(_t=>_t.label),U.dragging=qe,U.focusedThumbIndex=ge;const wt=U$(U),vo=(r=(o=Z==null?void 0:Z.root)!=null?o:I.Root)!=null?r:j$,ji=(i=(s=Z==null?void 0:Z.rail)!=null?s:I.Rail)!=null?i:N$,sa=(a=(l=Z==null?void 0:Z.track)!=null?l:I.Track)!=null?a:V$,Ni=(c=(u=Z==null?void 0:Z.thumb)!=null?u:I.Thumb)!=null?c:z$,Vi=(d=(p=Z==null?void 0:Z.valueLabel)!=null?p:I.ValueLabel)!=null?d:B$,Xo=(x=(g=Z==null?void 0:Z.mark)!=null?g:I.Mark)!=null?x:W$,aa=(h=(E=Z==null?void 0:Z.markLabel)!=null?E:I.MarkLabel)!=null?h:H$,at=(m=(y=Z==null?void 0:Z.input)!=null?y:I.Input)!=null?m:"input",fn=(C=G==null?void 0:G.root)!=null?C:F.root,Jo=(w=G==null?void 0:G.rail)!=null?w:F.rail,jn=(S=G==null?void 0:G.track)!=null?S:F.track,ap=(P=G==null?void 0:G.thumb)!=null?P:F.thumb,lp=(k=G==null?void 0:G.valueLabel)!=null?k:F.valueLabel,_7=(M=G==null?void 0:G.mark)!=null?M:F.mark,O7=(T=G==null?void 0:G.markLabel)!=null?T:F.markLabel,I7=(D=G==null?void 0:G.input)!=null?D:F.input,$7=We({elementType:vo,getSlotProps:we,externalSlotProps:fn,externalForwardedProps:pe,additionalProps:b({},I$(vo)&&{as:V}),ownerState:b({},U,fn==null?void 0:fn.ownerState),className:[wt.root,B]}),F7=We({elementType:ji,externalSlotProps:Jo,ownerState:U,className:wt.rail}),A7=We({elementType:sa,externalSlotProps:jn,additionalProps:{style:b({},Q[ve].offset(fe),Q[ve].leap(je))},ownerState:b({},U,jn==null?void 0:jn.ownerState),className:wt.track}),cp=We({elementType:Ni,getSlotProps:ke,externalSlotProps:ap,ownerState:b({},U,ap==null?void 0:ap.ownerState),className:wt.thumb}),L7=We({elementType:Vi,externalSlotProps:lp,ownerState:b({},U,lp==null?void 0:lp.ownerState),className:wt.valueLabel}),up=We({elementType:Xo,externalSlotProps:_7,ownerState:U,className:wt.mark}),dp=We({elementType:aa,externalSlotProps:O7,ownerState:U,className:wt.markLabel}),j7=We({elementType:at,getSlotProps:$e,externalSlotProps:I7,ownerState:U});return f.jsxs(vo,b({},$7,{children:[f.jsx(ji,b({},F7)),f.jsx(sa,b({},A7)),Ve.filter(_t=>_t.value>=Se&&_t.value<=me).map((_t,Ht)=>{const fp=sd(_t.value,Se,me),pc=Q[ve].offset(fp);let Vr;return xe===!1?Vr=He.indexOf(_t.value)!==-1:Vr=xe==="normal"&&(ye?_t.value>=He[0]&&_t.value<=He[He.length-1]:_t.value<=He[0])||xe==="inverted"&&(ye?_t.value<=He[0]||_t.value>=He[He.length-1]:_t.value>=He[0]),f.jsxs(v.Fragment,{children:[f.jsx(Xo,b({"data-index":Ht},up,!_r(Xo)&&{markActive:Vr},{style:b({},pc,up.style),className:ue(up.className,Vr&&wt.markActive)})),_t.label!=null?f.jsx(aa,b({"aria-hidden":!0,"data-index":Ht},dp,!_r(aa)&&{markLabelActive:Vr},{style:b({},pc,dp.style),className:ue(wt.markLabel,dp.className,Vr&&wt.markLabelActive),children:_t.label})):null]},Ht)}),He.map((_t,Ht)=>{const fp=sd(_t,Se,me),pc=Q[ve].offset(fp),Vr=Ie==="off"?Y$:Vi;return f.jsx(Vr,b({},!_r(Vr)&&{valueLabelFormat:le,valueLabelDisplay:Ie,value:typeof le=="function"?le(j(_t),Ht):le,index:Ht,open:X===Ht||he===Ht||Ie==="on",disabled:z},L7,{children:f.jsx(Ni,b({"data-index":Ht},cp,{className:ue(wt.thumb,cp.className,he===Ht&&wt.active,ge===Ht&&wt.focusVisible),style:b({},pc,ut(Ht),cp.style),children:f.jsx(at,b({"data-index":Ht,"aria-label":ne?ne(Ht):R,"aria-valuenow":j(_t),"aria-labelledby":L,"aria-valuetext":ce?ce(j(_t),Ht):O,value:He[Ht]},j7))}))}),Ht)})]}))}),q$=G$;function K$(e){return _e("MuiTextField",e)}Pe("MuiTextField",["root"]);const Z$=["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"],X$={standard:m6,filled:l6,outlined:k6},J$=e=>{const{classes:t}=e;return De({root:["root"]},K$,t)},Q$=Y($f,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eF=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:x=!1,helperText:g,id:h,InputLabelProps:E,inputProps:m,InputProps:y,inputRef:C,label:w,maxRows:S,minRows:P,multiline:k=!1,name:M,onBlur:T,onChange:D,onFocus:_,placeholder:A,required:$=!1,rows:R,select:O=!1,SelectProps:L,type:V,value:I,variant:F="outlined"}=r,W=te(r,Z$),se=b({},r,{autoFocus:i,color:l,disabled:u,error:d,fullWidth:x,multiline:k,required:$,select:O,variant:F}),B=J$(se),H={};F==="outlined"&&(E&&typeof E.shrink<"u"&&(H.notched=E.shrink),H.label=w),O&&((!L||!L.native)&&(H.id=void 0),H["aria-describedby"]=void 0);const z=ho(h),ne=g&&z?`${z}-helper-text`:void 0,ce=w&&z?`${z}-label`:void 0,q=X$[F],me=f.jsx(q,b({"aria-describedby":ne,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:x,multiline:k,name:M,rows:R,maxRows:S,minRows:P,type:V,value:I,id:z,inputRef:C,onBlur:T,onChange:D,onFocus:_,placeholder:A,inputProps:m},H,y));return f.jsxs(Q$,b({className:ue(B.root,a),disabled:u,error:d,fullWidth:x,ref:n,required:$,color:l,variant:F,ownerState:se},W,{children:[w!=null&&w!==""&&f.jsx(iO,b({htmlFor:z,id:ce},E,{children:w})),O?f.jsx(R6,b({"aria-describedby":ne,id:z,labelId:ce,value:I,input:me},L,{children:s})):me,g&&f.jsx(D_,b({id:ne},p,{children:g}))]}))}),rc=eF;function tF(){return f.jsx(D6,{component:"div",variant:"rectangular",sx:{bgcolor:"grey",width:"100%",height:"100%"}})}var _6={exports:{}},O6={};/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Us=v;function nF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rF=typeof Object.is=="function"?Object.is:nF,oF=Us.useState,iF=Us.useEffect,sF=Us.useLayoutEffect,aF=Us.useDebugValue;function lF(e,t){var n=t(),r=oF({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return sF(function(){o.value=n,o.getSnapshot=t,eh(o)&&i({inst:o})},[e,n,t]),iF(function(){return eh(o)&&i({inst:o}),e(function(){eh(o)&&i({inst:o})})},[e]),aF(n),n}function eh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rF(e,n)}catch{return!0}}function cF(e,t){return t()}var uF=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?cF:lF;O6.useSyncExternalStore=Us.useSyncExternalStore!==void 0?Us.useSyncExternalStore:uF;_6.exports=O6;var I6=_6.exports;const To=()=>{},mn=To(),th=Object,Ze=e=>e===mn,Xr=e=>typeof e=="function",Wo=(e,t)=>({...e,...t}),dF=e=>Xr(e.then),Vc=new WeakMap;let fF=0;const _l=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(th(e)===e&&!r&&n!=RegExp){if(o=Vc.get(e),o)return o;if(o=++fF+"~",Vc.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=_l(e[i])+",";Vc.set(e,o)}if(n==th){o="#";const s=th.keys(e).sort();for(;!Ze(i=s.pop());)Ze(e[i])||(o+=i+":"+_l(e[i])+",");Vc.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},qr=new WeakMap,nh={},zc={},Um="undefined",Lf=typeof window!=Um,A0=typeof document!=Um,pF=()=>Lf&&typeof window.requestAnimationFrame!=Um,$6=(e,t)=>{const n=qr.get(e);return[()=>!Ze(t)&&e.get(t)||nh,r=>{if(!Ze(t)){const o=e.get(t);t in zc||(zc[t]=o),n[5](t,Wo(o,r),o||nh)}},n[6],()=>!Ze(t)&&t in zc?zc[t]:!Ze(t)&&e.get(t)||nh]};let L0=!0;const hF=()=>L0,[j0,N0]=Lf&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[To,To],mF=()=>{const e=A0&&document.visibilityState;return Ze(e)||e!=="hidden"},gF=e=>(A0&&document.addEventListener("visibilitychange",e),j0("focus",e),()=>{A0&&document.removeEventListener("visibilitychange",e),N0("focus",e)}),yF=e=>{const t=()=>{L0=!0,e()},n=()=>{L0=!1};return j0("online",t),j0("offline",n),()=>{N0("online",t),N0("offline",n)}},vF={isOnline:hF,isVisible:mF},xF={initFocus:gF,initReconnect:yF},gv=!Fe.useId,Ol=!Lf||"Deno"in window,CF=e=>pF()?window.requestAnimationFrame(e):setTimeout(e,1),rh=Ol?v.useEffect:v.useLayoutEffect,oh=typeof navigator<"u"&&navigator.connection,yv=!Ol&&oh&&(["slow-2g","2g"].includes(oh.effectiveType)||oh.saveData),Ym=e=>{if(Xr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?_l(e):"",[e,t]};let bF=0;const V0=()=>++bF,F6=0,A6=1,L6=2,wF=3;var Ea={__proto__:null,ERROR_REVALIDATE_EVENT:wF,FOCUS_EVENT:F6,MUTATE_EVENT:L6,RECONNECT_EVENT:A6};async function j6(...e){const[t,n,r,o]=e,i=Wo({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const c=i.revalidate!==!1,u=x=>typeof a=="function"?a(x):a!==!1,d=i.throwOnError;if(Xr(n)){const x=n,g=[],h=t.keys();for(const E of h)!/^\$(inf|sub)\$/.test(E)&&x(t.get(E)._k)&&g.push(E);return Promise.all(g.map(p))}return p(n);async function p(x){const[g]=Ym(x);if(!g)return;const[h,E]=$6(t,g),[m,y,C,w]=qr.get(t),S=()=>{const R=m[g];return c&&(delete C[g],delete w[g],R&&R[0])?R[0](L6).then(()=>h().data):h().data};if(e.length<3)return S();let P=r,k;const M=V0();y[g]=[M,0];const T=!Ze(l),D=h(),_=D.data,A=D._c,$=Ze(A)?_:A;if(T&&(l=Xr(l)?l($,_):l,E({data:l,_c:$})),Xr(P))try{P=P($)}catch(R){k=R}if(P&&dF(P))if(P=await P.catch(R=>{k=R}),M!==y[g][0]){if(k)throw k;return P}else k&&T&&u(k)&&(s=!0,E({data:$,_c:mn}));if(s&&!k)if(Xr(s)){const R=s(P,$);E({data:R,error:mn,_c:mn})}else E({data:P,error:mn,_c:mn});if(y[g][1]=V0(),Promise.resolve(S()).then(()=>{E({_c:mn})}),k){if(d)throw k;return}return P}}const vv=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},SF=(e,t)=>{if(!qr.has(e)){const n=Wo(xF,t),r={},o=j6.bind(mn,e);let i=To;const s={},a=(u,d)=>{const p=s[u]||[];return s[u]=p,p.push(d),()=>p.splice(p.indexOf(d),1)},l=(u,d,p)=>{e.set(u,d);const x=s[u];if(x)for(const g of x)g(d,p)},c=()=>{if(!qr.has(e)&&(qr.set(e,[r,{},{},{},o,l,a]),!Ol)){const u=n.initFocus(setTimeout.bind(mn,vv.bind(mn,r,F6))),d=n.initReconnect(setTimeout.bind(mn,vv.bind(mn,r,A6)));i=()=>{u&&u(),d&&d(),qr.delete(e)}}};return c(),[e,o,c,i]}return[e,qr.get(e)[4]]},kF=(e,t,n,r,o)=>{const i=n.errorRetryCount,s=o.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!Ze(i)&&s>i||setTimeout(r,a,o)},EF=(e,t)=>_l(e)==_l(t),[N6,PF]=SF(new Map),MF=Wo({onLoadingSlow:To,onSuccess:To,onError:To,onErrorRetry:kF,onDiscarded:To,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:yv?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:yv?5e3:3e3,compare:EF,isPaused:()=>!1,cache:N6,mutate:PF,fallback:{}},vF),TF=(e,t)=>{const n=Wo(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:s}=t;r&&i&&(n.use=r.concat(i)),o&&s&&(n.fallback=Wo(o,s))}return n},RF=v.createContext({}),DF="$inf$",V6=Lf&&window.__SWR_DEVTOOLS_USE__,_F=V6?window.__SWR_DEVTOOLS_USE__:[],OF=()=>{V6&&(window.__SWR_DEVTOOLS_REACT__=Fe)},IF=e=>Xr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],$F=()=>Wo(MF,v.useContext(RF)),FF=e=>(t,n,r)=>e(t,n&&((...i)=>{const[s]=Ym(t),[,,,a]=qr.get(N6);if(s.startsWith(DF))return n(...i);const l=a[s];return Ze(l)?n(...i):(delete a[s],l)}),r),AF=_F.concat(FF),LF=e=>function(...n){const r=$F(),[o,i,s]=IF(n),a=TF(r,s);let l=e;const{use:c}=a,u=(c||[]).concat(AF);for(let d=u.length;d--;)l=u[d](l);return l(o,i||a.fetcher||null,a)},jF=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};OF();const xv=Fe.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),ih={dedupe:!0},NF=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:s,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:p}=n,[x,g,h,E]=qr.get(r),[m,y]=Ym(e),C=v.useRef(!1),w=v.useRef(!1),S=v.useRef(m),P=v.useRef(t),k=v.useRef(n),M=()=>k.current,T=()=>M().isVisible()&&M().isOnline(),[D,_,A,$]=$6(r,m),R=v.useRef({}).current,O=Ze(s)?n.fallback[m]:s,L=(ee,j)=>{for(const G in R){const Z=G;if(Z==="data"){if(!o(ee[Z],j[Z])&&(!Ze(ee[Z])||!o(ne,j[Z])))return!1}else if(j[Z]!==ee[Z])return!1}return!0},V=v.useMemo(()=>{const ee=!m||!t?!1:Ze(a)?M().isPaused()||i?!1:Ze(l)?!0:l:a,j=pe=>{const U=Wo(pe);return delete U._k,ee?{isValidating:!0,isLoading:!0,...U}:U},G=D(),Z=$(),xe=j(G),Ie=G===Z?xe:j(Z);let le=xe;return[()=>{const pe=j(D());return L(pe,le)?(le.data=pe.data,le.isLoading=pe.isLoading,le.isValidating=pe.isValidating,le.error=pe.error,le):(le=pe,pe)},()=>Ie]},[r,m]),I=I6.useSyncExternalStore(v.useCallback(ee=>A(m,(j,G)=>{L(G,j)||ee()}),[r,m]),V[0],V[1]),F=!C.current,W=x[m]&&x[m].length>0,se=I.data,B=Ze(se)?O:se,H=I.error,z=v.useRef(B),ne=p?Ze(se)?z.current:se:B,ce=W&&!Ze(H)?!1:F&&!Ze(a)?a:M().isPaused()?!1:i?Ze(B)?!1:l:Ze(B)||l,q=!!(m&&t&&F&&ce),me=Ze(I.isValidating)?q:I.isValidating,Se=Ze(I.isLoading)?q:I.isLoading,Ee=v.useCallback(async ee=>{const j=P.current;if(!m||!j||w.current||M().isPaused())return!1;let G,Z,xe=!0;const Ie=ee||{},le=!h[m]||!Ie.dedupe,pe=()=>gv?!w.current&&m===S.current&&C.current:m===S.current,U={isValidating:!1,isLoading:!1},Q=()=>{_(U)},we=()=>{const ke=h[m];ke&&ke[1]===Z&&delete h[m]},$e={isValidating:!0};Ze(D().data)&&($e.isLoading=!0);try{if(le&&(_($e),n.loadingTimeout&&Ze(D().data)&&setTimeout(()=>{xe&&pe()&&M().onLoadingSlow(m,n)},n.loadingTimeout),h[m]=[j(y),V0()]),[G,Z]=h[m],G=await G,le&&setTimeout(we,n.dedupingInterval),!h[m]||h[m][1]!==Z)return le&&pe()&&M().onDiscarded(m),!1;U.error=mn;const ke=g[m];if(!Ze(ke)&&(Z<=ke[0]||Z<=ke[1]||ke[1]===0))return Q(),le&&pe()&&M().onDiscarded(m),!1;const X=D().data;U.data=o(X,G)?X:G,le&&pe()&&M().onSuccess(G,m,n)}catch(ke){we();const X=M(),{shouldRetryOnError:he}=X;X.isPaused()||(U.error=ke,le&&pe()&&(X.onError(ke,m,X),(he===!0||Xr(he)&&he(ke))&&T()&&X.onErrorRetry(ke,m,X,ve=>{const ge=x[m];ge&&ge[0]&&ge[0](Ea.ERROR_REVALIDATE_EVENT,ve)},{retryCount:(Ie.retryCount||0)+1,dedupe:!0})))}return xe=!1,Q(),!0},[m,r]),re=v.useCallback((...ee)=>j6(r,S.current,...ee),[]);if(rh(()=>{P.current=t,k.current=n,Ze(se)||(z.current=se)}),rh(()=>{if(!m)return;const ee=Ee.bind(mn,ih);let j=0;const Z=jF(m,x,(xe,Ie={})=>{if(xe==Ea.FOCUS_EVENT){const le=Date.now();M().revalidateOnFocus&&le>j&&T()&&(j=le+M().focusThrottleInterval,ee())}else if(xe==Ea.RECONNECT_EVENT)M().revalidateOnReconnect&&T()&&ee();else{if(xe==Ea.MUTATE_EVENT)return Ee();if(xe==Ea.ERROR_REVALIDATE_EVENT)return Ee(Ie)}});return w.current=!1,S.current=m,C.current=!0,_({_k:y}),ce&&(Ze(B)||Ol?ee():CF(ee)),()=>{w.current=!0,Z()}},[m]),rh(()=>{let ee;function j(){const Z=Xr(c)?c(D().data):c;Z&&ee!==-1&&(ee=setTimeout(G,Z))}function G(){!D().error&&(u||M().isVisible())&&(d||M().isOnline())?Ee(ih).then(j):j()}return j(),()=>{ee&&(clearTimeout(ee),ee=-1)}},[c,u,d,m]),v.useDebugValue(ne),i&&Ze(B)&&m){if(!gv&&Ol)throw new Error("Fallback data is required when using suspense in SSR.");P.current=t,k.current=n,w.current=!1;const ee=E[m];if(!Ze(ee)){const j=re(ee);xv(j)}if(Ze(H)){const j=Ee(ih);Ze(ne)||(j.status="fulfilled",j.value=!0),xv(j)}else throw H}return{mutate:re,get data(){return R.data=!0,ne},get error(){return R.error=!0,H},get isValidating(){return R.isValidating=!0,me},get isLoading(){return R.isLoading=!0,Se}}},VF=LF(NF),z6=v.createContext(null),jt=()=>{const e=v.useContext(z6);if(e===null)throw new Error("QuizData context is null");return e},zF=["localeText"],z0=v.createContext(null),Gm=function(t){var n;const{localeText:r}=t,o=te(t,zF),{utils:i,localeText:s}=(n=v.useContext(z0))!=null?n:{utils:void 0,localeText:void 0},a=Re({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:p,localeText:x}=a,g=v.useMemo(()=>b({},x,s,r),[x,s,r]),h=v.useMemo(()=>{if(!c)return i||null;const y=new c({locale:p,formats:u,instance:d});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
`));return y},[c,p,u,d,i]),E=v.useMemo(()=>h?{minDate:h.date("1900-01-01T00:00:00.000"),maxDate:h.date("2099-12-31T00:00:00.000")}:null,[h]),m=v.useMemo(()=>({utils:h,defaultDates:E,localeText:g}),[E,h,g]);return f.jsx(z0.Provider,{value:m,children:l})},B6=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:b({},e)}}}}),W6={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},BF=W6;B6(W6);const Fi=()=>{const e=v.useContext(z0);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
`));const t=v.useMemo(()=>b({},BF,e.localeText),[e.localeText]);return v.useMemo(()=>b({},e,{localeText:t}),[e,t])},ct=()=>Fi().utils,oc=()=>Fi().defaultDates,Zo=()=>Fi().localeText,ic=e=>{const t=ct(),n=v.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},WF=Xt(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),HF=Xt(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),UF=Xt(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),YF=Xt(f.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Xt(f.jsxs(v.Fragment,{children:[f.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Xt(f.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");Xt(f.jsxs(v.Fragment,{children:[f.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const GF=Xt(f.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function qF(e){return _e("MuiPickersArrowSwitcher",e)}Pe("MuiPickersArrowSwitcher",["root","spacer","button"]);const KF=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],ZF=["ownerState"],XF=["ownerState"],JF=Y("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),QF=Y("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Cv=Y(ta,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>b({},e.hidden&&{visibility:"hidden"})),eA=e=>{const{classes:t}=e;return De({root:["root"],spacer:["spacer"],button:["button"]},qF,t)},tA=v.forwardRef(function(t,n){var r,o,i,s;const l=Le().direction==="rtl",c=Re({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:d,slots:p,slotProps:x,isNextDisabled:g,isNextHidden:h,onGoToNext:E,nextLabel:m,isPreviousDisabled:y,isPreviousHidden:C,onGoToPrevious:w,previousLabel:S}=c,P=te(c,KF),k=c,M=eA(k),T={isDisabled:g,isHidden:h,goTo:E,label:m},D={isDisabled:y,isHidden:C,goTo:w,label:S},_=(r=p==null?void 0:p.previousIconButton)!=null?r:Cv,A=We({elementType:_,externalSlotProps:x==null?void 0:x.previousIconButton,additionalProps:{size:"medium",title:D.label,"aria-label":D.label,disabled:D.isDisabled,edge:"end",onClick:D.goTo},ownerState:b({},k,{hidden:D.isHidden}),className:M.button}),$=(o=p==null?void 0:p.nextIconButton)!=null?o:Cv,R=We({elementType:$,externalSlotProps:x==null?void 0:x.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:b({},k,{hidden:T.isHidden}),className:M.button}),O=(i=p==null?void 0:p.leftArrowIcon)!=null?i:HF,L=We({elementType:O,externalSlotProps:x==null?void 0:x.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),V=te(L,ZF),I=(s=p==null?void 0:p.rightArrowIcon)!=null?s:UF,F=We({elementType:I,externalSlotProps:x==null?void 0:x.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),W=te(F,XF);return f.jsxs(JF,b({ref:n,className:ue(M.root,d),ownerState:k},P,{children:[f.jsx(_,b({},A,{children:l?f.jsx(I,b({},W)):f.jsx(O,b({},V))})),u?f.jsx(Te,{variant:"subtitle1",component:"span",children:u}):f.jsx(QF,{className:M.spacer,ownerState:k}),f.jsx($,b({},R,{children:l?f.jsx(O,b({},V)):f.jsx(I,b({},W))}))]}))}),Pa=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),nA=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:i}},rA=["hours","minutes","seconds"],oA=e=>rA.includes(e),bv=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),iA=(e,t)=>(n,r)=>e?t.isAfter(n,r):bv(n,t)>bv(r,t);function H6({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:s,onFocusedViewChange:a}){var l,c;const u=v.useRef(n),d=v.useRef(o),p=v.useRef(o.includes(n)?n:o[0]),[x,g]=kn({name:"useViews",state:"view",controlled:r,default:p.current}),h=v.useRef(i?x:null),[E,m]=kn({name:"useViews",state:"focusedView",controlled:s,default:h.current});v.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(T=>!o.includes(T)))&&(g(o.includes(n)?n:o[0]),d.current=o,u.current=n)},[n,g,x,o]);const y=o.indexOf(x),C=(l=o[y-1])!=null?l:null,w=(c=o[y+1])!=null?c:null,S=Me((T,D)=>{m(D?T:_=>T===_?null:_),a==null||a(T,D)}),P=Me(T=>{S(T,!0),T!==x&&(g(T),t&&t(T))}),k=Me(()=>{w&&P(w)}),M=Me((T,D,_)=>{const A=D==="finish",$=_?o.indexOf(_)<o.length-1:!!w;if(e(T,A&&$?"partial":D,_),_&&_!==x){const O=o[o.indexOf(_)+1];O&&P(O)}else A&&k()});return{view:x,setView:P,focusedView:E,setFocusedView:S,nextView:w,previousView:C,defaultView:o.includes(n)?n:o[0],goToNextView:k,setValueAndGoToNextView:M}}function sA(e,{disableFuture:t,maxDate:n,timezone:r}){const o=ct();return v.useMemo(()=>{const i=o.dateWithTimezone(void 0,r),s=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(s,e)},[t,n,e,o,r])}function aA(e,{disablePast:t,minDate:n,timezone:r}){const o=ct();return v.useMemo(()=>{const i=o.dateWithTimezone(void 0,r),s=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(s,e)},[t,n,e,o,r])}const Il=36,jf=2,Nf=320,lA=280,qm=334,cA=Y("div")({overflow:"hidden",width:Nf,maxHeight:qm,display:"flex",flexDirection:"column",margin:"0 auto"}),ol=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:s,timezone:a})=>{const l=s.startOfDay(s.dateWithTimezone(void 0,a));n&&s.isBefore(o,l)&&(o=l),t&&s.isAfter(r,l)&&(r=l);let c=e,u=e;for(s.isBefore(e,o)&&(c=o,u=null),s.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&s.isAfter(c,r)&&(c=null),u&&s.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=s.addDays(c,1)}if(u){if(!i(u))return u;u=s.addDays(u,-1)}}return null},uA=(e,t)=>t==null||!e.isValid(t)?null:t,Qn=(e,t,n)=>t==null||!e.isValid(t)?n:t,dA=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Km=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},B0=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},U6=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),fA=["year","month","day"],wv=e=>fA.includes(e),Zm=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Pa(n,["year"])?o.year:Pa(n,["month"])?o.month:Pa(n,["day"])?o.dayOfMonth:Pa(n,["month","year"])?`${o.month} ${o.year}`:Pa(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},pA=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Xm=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var i,s;const a=ct(),l=v.useRef(n),c=(i=t??l.current)!=null?i:o.emptyValue,u=v.useMemo(()=>o.getTimezone(a,c),[a,o,c]),d=Me(h=>u==null?h:o.setTimezone(a,u,h)),p=(s=e??u)!=null?s:"default",x=v.useMemo(()=>o.setTimezone(a,p,c),[o,a,p,c]),g=Me((h,...E)=>{const m=d(h);r==null||r(m,...E)});return{value:x,handleValueChange:g,timezone:p}},Jm=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:i})=>{const[s,a]=kn({name:e,state:"value",controlled:n,default:r??i.emptyValue}),l=Me((c,...u)=>{a(c),o==null||o(c,...u)});return Xm({timezone:t,value:s,defaultValue:void 0,onChange:l,valueManager:i})},Sr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},hA=e=>Math.max(...e.map(t=>{var n;return(n=Sr[t.type])!=null?n:1})),Ma=(e,t,n)=>{if(t===Sr.year)return e.startOfYear(n);if(t===Sr.month)return e.startOfMonth(n);if(t===Sr.day)return e.startOfDay(n);let r=n;return t<Sr.minutes&&(r=e.setMinutes(r,0)),t<Sr.seconds&&(r=e.setSeconds(r,0)),t<Sr.milliseconds&&(r=e.setMilliseconds(r,0)),r},mA=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{var i;let s=o?o():Ma(t,n,U6(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Ma(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Ma(t,n,e.maxDate));const a=iA((i=e.disableIgnoringDatePartForTimeValidation)!=null?i:!1,t);return e.minTime!=null&&a(e.minTime,s)&&(s=Ma(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:B0(t,s,e.minTime))),e.maxTime!=null&&a(s,e.maxTime)&&(s=Ma(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:B0(t,s,e.maxTime))),s},Y6=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},gA=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Vf=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),i=e.startOfWeek(o),s=e.endOfWeek(o);let a=i;for(;e.isBefore(a,s);)r.push(a),a=e.addDays(a,1);return r.map(l=>e.formatByString(l,n))},G6=(e,t,n,r)=>{switch(n){case"month":return Km(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Vf(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},q6=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length<n;)r=`0${r}`;return r},K6=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const s=e.setDate(r.longestMonth,n);return e.formatByString(s,o.format)}const i=n.toString();return o.hasLeadingZerosInInput?q6(e,i,o.maxLength):i},yA=(e,t,n,r,o,i,s)=>{const a=gA(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,d=()=>{const x=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),g=y=>K6(e,t,y,x,n),h=n.type==="minutes"&&s!=null&&s.minutesStep?s.minutesStep:1;let m=parseInt(n.value,10)+a*h;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);a>0||l?m=x.minimum:m=x.maximum}return m%h!==0&&((a<0||l)&&(m+=h-(h+m)%h),(a>0||c)&&(m-=m%h)),m>x.maximum?g(x.minimum+(m-x.maximum-1)%(x.maximum-x.minimum+1)):m<x.minimum?g(x.maximum-(x.minimum-m-1)%(x.maximum-x.minimum+1)):g(m)},p=()=>{const x=G6(e,t,n.type,n.format);if(x.length===0)return n.value;if(u)return a>0||l?x[0]:x[x.length-1];const h=(x.indexOf(n.value)+x.length+a)%x.length;return x[h]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():p()},Qm=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}`),t==="input-rtl"&&(n=`${n}`),n},hs=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Z6=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let i=0;i<e.length;i+=1){const s=e[i],a=Qm(s,t?"input-rtl":"input-ltr"),l=`${s.startSeparator}${a}${s.endSeparator}`,c=hs(l).length,u=l.length,d=hs(a),p=r+a.indexOf(d[0])+s.startSeparator.length,x=p+d.length;o.push(b({},s,{start:n,end:n+c,startInInput:p,endInInput:x})),n+=c,r+=u}return o},vA=(e,t,n,r,o)=>{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length,format:o});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:o});case"day":return n.fieldDayPlaceholder({format:o});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:o});case"hours":return n.fieldHoursPlaceholder({format:o});case"minutes":return n.fieldMinutesPlaceholder({format:o});case"seconds":return n.fieldSecondsPlaceholder({format:o});case"meridiem":return n.fieldMeridiemPlaceholder({format:o});default:return o}},Sv=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),X6=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,J6=(e,t,n,r,o)=>{if(n!=="digit")return!1;const i=e.dateWithTimezone(void 0,t);switch(r){case"year":return X6(e,t,o)?e.formatByString(e.setYear(i,1),o)==="0001":e.formatByString(e.setYear(i,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(i),o).length>1;case"day":return e.formatByString(e.startOfMonth(i),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),o).length>1;case"hours":return e.formatByString(e.setHours(i,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(i,1),o).length>1;default:throw new Error("Invalid section type")}},xA=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let s=null;for(;s=i.exec(t);)n.push({start:s.index,end:i.lastIndex-1});return n},kv=(e,t,n,r,o,i,s,a)=>{let l="";const c=[],u=e.date(),d=C=>{if(C==="")return null;const w=Y6(e,C),S=J6(e,t,w.contentType,w.type,C),P=s?S:w.contentType==="digit",k=o!=null&&e.isValid(o);let M=k?e.formatByString(o,C):"",T=null;if(P)if(S)T=M===""?e.formatByString(u,C).length:M.length;else{if(w.maxLength==null)throw new Error(`MUI: The token ${C} should have a 'maxDigitNumber' property on it's adapter`);T=w.maxLength,k&&(M=q6(e,M,T))}return c.push(b({},w,{format:C,maxLength:T,value:M,placeholder:vA(e,t,n,w,C),hasLeadingZeros:S,hasLeadingZerosInFormat:S,hasLeadingZerosInInput:P,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,x=r,g=e.expandFormat(r);for(;g!==x;)if(x=g,g=e.expandFormat(x),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const h=g,E=xA(e,h),m=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((C,w)=>w.length-C.length).join("|")})`,"g");let y="";for(let C=0;C<h.length;C+=1){const w=E.find(T=>T.start<=C&&T.end>=C),S=h[C],P=w!=null,k=`${y}${h.slice(C)}`,M=m.test(k);!P&&S.match(/([A-Za-z]+)/)&&M?(y=k.slice(0,m.lastIndex),C+=m.lastIndex-1):P&&(w==null?void 0:w.start)===C||(w==null?void 0:w.end)===C||(d(y),y="",c.length===0?l+=S:c[c.length-1].endSeparator+=S)}return d(y),c.map(C=>{const w=S=>{let P=S;return a&&P!==null&&P.includes(" ")&&(P=`${P}`),i==="spacious"&&["/",".","-"].includes(P)&&(P=` ${P} `),P};return C.startSeparator=w(C.startSeparator),C.endSeparator=w(C.endSeparator),C})},CA=(e,t)=>{const n=t.some(a=>a.type==="day"),r=[],o=[];for(let a=0;a<t.length;a+=1){const l=t[a];n&&l.type==="weekDay"||(r.push(l.format),o.push(Qm(l,"non-input")))}const i=r.join(" "),s=o.join(" ");return e.parse(s,i)},bA=(e,t)=>{const r=e.map(o=>{const i=Qm(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${i}${o.endSeparator}`}).join("");return t?`${r}`:r},wA=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:i,longestMonth:s}=Km(e,n).reduce((a,l)=>{const c=e.getDaysInMonth(l);return c>a.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:a},{maxDaysInMonth:0,longestMonth:null});return{year:({format:a})=>({minimum:0,maximum:X6(e,t,a)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:a})=>({minimum:1,maximum:a!=null&&e.isValid(a)?e.getDaysInMonth(a):i,longestMonth:s}),weekDay:({format:a,contentType:l})=>{if(l==="digit"){const c=Vf(e,t,a).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:a})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),a)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),a))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},SA=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const i=Vf(e,t,n.format),s=e.formatByString(r,n.format),a=i.indexOf(s),c=i.indexOf(n.value)-a;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const i=e.getHours(r)<12,s=e.getHours(o);return i&&s>=12?e.addHours(o,-12):!i&&s<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},Ev={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},Pv=(e,t,n,r,o,i)=>[...r].sort((s,a)=>Ev[s.type]-Ev[a.type]).reduce((s,a)=>!i||a.modified?SA(e,t,a,n,s):s,o),kA=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,EA=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,s=0,a=e.length-1;for(;a>=0;){s=e.findIndex((l,c)=>{var u;return c>=i&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=e.length-1);for(let l=s;l>=i;l-=1)o[l]=a,r[a]=l,a-=1;i=s+1}return e.forEach((l,c)=>{const u=o[c],d=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},PA=["value","referenceDate"],uo={emptyValue:null,getTodayValue:U6,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=te(e,PA);return t!=null&&r.utils.isValid(t)?t:n??mA(r)},cleanValue:uA,areValuesEqual:dA,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},MA={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:Z6(o(t),r),getValueStrFromSections:bA,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Q6=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>b({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function TA(e){return _e("MuiPickersDay",e)}const ei=Pe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),RA=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],DA=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=e,c=s&&!a;return De({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},TA,l)},e4=({theme:e,ownerState:t})=>b({},e.typography.caption,{width:Il,height:Il,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ne(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${ei.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ei.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ei.disabled}:not(.${ei.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ei.disabled}&.${ei.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${jf}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${ei.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),t4=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},_A=Y(Ir,{name:"MuiPickersDay",slot:"Root",overridesResolver:t4})(e4),OA=Y("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:t4})(({theme:e,ownerState:t})=>b({},e4({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Ta=()=>{},IA=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:p,onFocus:x=Ta,onBlur:g=Ta,onKeyDown:h=Ta,onMouseDown:E=Ta,onMouseEnter:m=Ta,outsideCurrentMonth:y,selected:C=!1,showDaysOutsideCurrentMonth:w=!1,children:S,today:P=!1}=r,k=te(r,RA),M=b({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:C,showDaysOutsideCurrentMonth:w,today:P}),T=DA(M),D=ct(),_=v.useRef(null),A=tt(_,n);Lt(()=>{o&&!a&&!u&&!y&&_.current.focus()},[o,a,u,y]);const $=O=>{E(O),y&&O.preventDefault()},R=O=>{a||p(s),y&&O.currentTarget.focus(),d&&d(O)};return y&&!w?f.jsx(OA,{className:ue(T.root,T.hiddenDaySpacingFiller,i),ownerState:M,role:k.role}):f.jsx(_A,b({className:ue(T.root,i),ref:A,centerRipple:!0,disabled:a,tabIndex:C?0:-1,onKeyDown:O=>h(O,s),onFocus:O=>x(O,s),onBlur:O=>g(O,s),onMouseEnter:O=>m(O,s),onClick:R,onMouseDown:$},k,{ownerState:M,children:S||D.format(s,"dayOfMonth")}))}),$A=v.memo(IA),Mv={hours:"часы",minutes:"минуты",seconds:"секунды",meridiem:"меридием"},FA={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerToolbarTitle:"Выбрать дату",dateTimePickerToolbarTitle:"Выбрать дату и время",timePickerToolbarTitle:"Выбрать время",dateRangePickerToolbarTitle:"Выбрать период",clockLabelText:(e,t,n)=>`Выбрать ${Mv[e]}. ${t===null?"Время не выбрано":`Выбрано время ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,selectViewText:e=>`Выбрать ${Mv[e]}`,calendarWeekNumberHeaderLabel:"Номер недели",calendarWeekNumberHeaderText:"№",calendarWeekNumberAriaLabelText:e=>`Неделя ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",fieldClearLabel:"Очистить значение",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату",fieldYearPlaceholder:e=>"Г".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"ММММ":"ММ",fieldDayPlaceholder:()=>"ДД",fieldHoursPlaceholder:()=>"чч",fieldMinutesPlaceholder:()=>"мм",fieldSecondsPlaceholder:()=>"сс",fieldMeridiemPlaceholder:()=>"(д|п)п"},AA=B6(FA);function n4(e,t,n,r){const{value:o,onError:i}=e,s=Fi(),a=v.useRef(r),l=t({adapter:s,value:o,props:e});return v.useEffect(()=>{i&&!n(l,a.current)&&i(l,o),a.current=l},[n,i,a,l,o]),l}const LA=e=>{const t=ct(),n=Zo(),r=Fi(),i=Le().direction==="rtl",{valueManager:s,fieldValueManager:a,valueType:l,validator:c,internalProps:u,internalProps:{value:d,defaultValue:p,referenceDate:x,onChange:g,format:h,formatDensity:E="dense",selectedSections:m,onSelectedSectionsChange:y,shouldRespectLeadingZeros:C=!1,timezone:w}}=e,{timezone:S,value:P,handleValueChange:k}=Xm({timezone:w,value:d,defaultValue:p,onChange:g,valueManager:s}),M=v.useMemo(()=>wA(t,S),[t,S]),T=v.useCallback((z,ne=null)=>a.getSectionsFromValue(t,z,ne,i,ce=>kv(t,S,n,h,ce,E,C,i)),[a,h,n,i,C,t,E,S]),D=v.useMemo(()=>a.getValueStrFromSections(T(s.emptyValue),i),[a,T,s.emptyValue,i]),[_,A]=v.useState(()=>{const z=T(P),ne={sections:z,value:P,referenceValue:s.emptyValue,tempValueStrAndroid:null},ce=hA(z),q=s.getInitialReferenceValue({referenceDate:x,value:P,utils:t,props:u,granularity:ce,timezone:S});return b({},ne,{referenceValue:q})}),[$,R]=kn({controlled:m,default:null,name:"useField",state:"selectedSectionIndexes"}),O=z=>{R(z),y==null||y(z),A(ne=>b({},ne,{selectedSectionQuery:null}))},L=v.useMemo(()=>{if($==null)return null;if($==="all")return{startIndex:0,endIndex:_.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof $=="number")return{startIndex:$,endIndex:$};if(typeof $=="string"){const z=_.sections.findIndex(ne=>ne.type===$);return{startIndex:z,endIndex:z}}return $},[$,_.sections]),V=({value:z,referenceValue:ne,sections:ce})=>{if(A(me=>b({},me,{sections:ce,value:z,referenceValue:ne,tempValueStrAndroid:null})),s.areValuesEqual(t,_.value,z))return;const q={validationError:c({adapter:r,value:z,props:b({},u,{value:z,timezone:S})})};k(z,q)},I=(z,ne)=>{const ce=[..._.sections];return ce[z]=b({},ce[z],{value:ne,modified:!0}),Z6(ce,i)},F=()=>{V({value:s.emptyValue,referenceValue:_.referenceValue,sections:T(s.emptyValue)})},W=()=>{if(L==null)return;const z=_.sections[L.startIndex],ne=a.getActiveDateManager(t,_,z),q=ne.getSections(_.sections).filter(re=>re.value!=="").length===(z.value===""?0:1),me=I(L.startIndex,""),Se=q?null:t.date(new Date("")),Ee=ne.getNewValuesFromNewActiveDate(Se);(Se!=null&&!t.isValid(Se))!=(ne.date!=null&&!t.isValid(ne.date))?V(b({},Ee,{sections:me})):A(re=>b({},re,Ee,{sections:me,tempValueStrAndroid:null}))},se=z=>{const ne=(me,Se)=>{const Ee=t.parse(me,h);if(Ee==null||!t.isValid(Ee))return null;const re=kv(t,S,n,h,Ee,E,C,i);return Pv(t,S,Ee,re,Se,!1)},ce=a.parseValueStr(z,_.referenceValue,ne),q=a.updateReferenceValue(t,ce,_.referenceValue);V({value:ce,referenceValue:q,sections:T(ce,_.sections)})},B=({activeSection:z,newSectionValue:ne,shouldGoToNextSection:ce})=>{ce&&L&&L.startIndex<_.sections.length-1?O(L.startIndex+1):L&&L.startIndex!==L.endIndex&&O(L.startIndex);const q=a.getActiveDateManager(t,_,z),me=I(L.startIndex,ne),Se=q.getSections(me),Ee=CA(t,Se);let re,ee;if(Ee!=null&&t.isValid(Ee)){const j=Pv(t,S,Ee,Se,q.referenceDate,!0);re=q.getNewValuesFromNewActiveDate(j),ee=!0}else re=q.getNewValuesFromNewActiveDate(Ee),ee=(Ee!=null&&!t.isValid(Ee))!=(q.date!=null&&!t.isValid(q.date));return ee?V(b({},re,{sections:me})):A(j=>b({},j,re,{sections:me,tempValueStrAndroid:null}))},H=z=>A(ne=>b({},ne,{tempValueStrAndroid:z}));return v.useEffect(()=>{const z=T(_.value);A(ne=>b({},ne,{sections:z}))},[h,t.locale]),v.useEffect(()=>{let z=!1;s.areValuesEqual(t,_.value,P)?z=s.getTimezone(t,_.value)!==s.getTimezone(t,P):z=!0,z&&A(ne=>b({},ne,{value:P,referenceValue:a.updateReferenceValue(t,P,ne.referenceValue),sections:T(P)}))},[P]),{state:_,selectedSectionIndexes:L,setSelectedSections:O,clearValue:F,clearActiveSection:W,updateSectionValue:B,updateValueFromValueStr:se,setTempAndroidValueStr:H,sectionsValueBoundaries:M,placeholder:D,timezone:S}},jA=5e3,qi=e=>e.saveQuery!=null,NA=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const i=ct(),[s,a]=v.useState(null),l=Me(()=>a(null));v.useEffect(()=>{var x;s!=null&&((x=e[s.sectionIndex])==null?void 0:x.type)!==s.sectionType&&l()},[e,s,l]),v.useEffect(()=>{if(s!=null){const x=setTimeout(()=>l(),jA);return()=>{window.clearTimeout(x)}}return()=>{}},[s,l]);const c=({keyPressed:x,sectionIndex:g},h,E)=>{const m=x.toLowerCase(),y=e[g];if(s!=null&&(!E||E(s.value))&&s.sectionIndex===g){const w=`${s.value}${m}`,S=h(w,y);if(!qi(S))return a({sectionIndex:g,value:w,sectionType:y.type}),S}const C=h(m,y);return qi(C)&&!C.saveQuery?(l(),null):(a({sectionIndex:g,value:m,sectionType:y.type}),qi(C)?null:C)},u=x=>{const g=(m,y,C)=>{const w=y.filter(S=>S.toLowerCase().startsWith(C));return w.length===0?{saveQuery:!1}:{sectionValue:w[0],shouldGoToNextSection:w.length===1}},h=(m,y,C,w)=>{const S=P=>G6(i,o,y.type,P);if(y.contentType==="letter")return g(y.format,S(y.format),m);if(C&&w!=null&&Y6(i,C).contentType==="letter"){const P=S(C),k=g(C,P,m);return qi(k)?{saveQuery:!1}:b({},k,{sectionValue:w(k.sectionValue,P)})}return{saveQuery:!1}};return c(x,(m,y)=>{switch(y.type){case"month":{const C=w=>Sv(i,w,i.formats.month,y.format);return h(m,y,i.formats.month,C)}case"weekDay":{const C=(w,S)=>S.indexOf(w).toString();return h(m,y,i.formats.weekday,C)}case"meridiem":return h(m,y);default:return{saveQuery:!1}}})},d=x=>{const g=(E,m)=>{const y=+`${E}`,C=n[m.type]({currentDate:null,format:m.format,contentType:m.contentType});if(y>C.maximum)return{saveQuery:!1};if(y<C.minimum)return{saveQuery:!0};const w=+`${E}0`>C.maximum||E.length===C.maximum.toString().length;return{sectionValue:K6(i,o,y,C,m),shouldGoToNextSection:w}};return c(x,(E,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return g(E,m);if(m.type==="month"){const y=J6(i,o,"digit","month","MM"),C=g(E,{type:m.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(qi(C))return C;const w=Sv(i,C.sectionValue,"MM",m.format);return b({},C,{sectionValue:w})}if(m.type==="weekDay"){const y=g(E,m);if(qi(y))return y;const C=Vf(i,o,m.format)[Number(y.sectionValue)-1];return b({},y,{sectionValue:C})}return{saveQuery:!1}},E=>!Number.isNaN(Number(E)))};return{applyCharacterEditing:Me(x=>{const g=e[x.sectionIndex],E=!Number.isNaN(Number(x.keyPressed))?d(x):u(x);E==null?r(null):t({activeSection:g,newSectionValue:E.sectionValue,shouldGoToNextSection:E.shouldGoToNextSection})}),resetCharacterQuery:l}};function VA(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const zA=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},cd=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?cd(t.shadowRoot):t:null},BA="@media (pointer: fine)",WA=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],HA=e=>{const t=ct(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:i,clearActiveSection:s,updateSectionValue:a,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:d,timezone:p}=LA(e),{inputRef:x,internalProps:g,internalProps:{readOnly:h=!1,unstableFieldRef:E,minutesStep:m},forwardedProps:{onClick:y,onKeyDown:C,onFocus:w,onBlur:S,onMouseUp:P,onPaste:k,error:M,clearable:T,onClear:D,disabled:_},fieldValueManager:A,valueManager:$,validator:R}=e,O=te(e.forwardedProps,WA),{applyCharacterEditing:L,resetCharacterQuery:V}=NA({sections:n.sections,updateSectionValue:a,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),I=v.useRef(null),F=tt(x,I),W=v.useRef(void 0),B=Le().direction==="rtl",H=v.useMemo(()=>EA(n.sections,B),[n.sections,B]),z=()=>{var U;if(h){o(null);return}const Q=(U=I.current.selectionStart)!=null?U:0;let we;Q<=n.sections[0].startInInput||Q>=n.sections[n.sections.length-1].endInInput?we=1:we=n.sections.findIndex(ke=>ke.startInInput-ke.startSeparator.length>Q);const $e=we===-1?n.sections.length-1:we-1;o($e)},ne=Me((U,...Q)=>{U.isDefaultPrevented()||(y==null||y(U,...Q),z())}),ce=Me(U=>{P==null||P(U),U.preventDefault()}),q=Me((...U)=>{w==null||w(...U);const Q=I.current;window.clearTimeout(W.current),W.current=setTimeout(()=>{!Q||Q!==I.current||r!=null||h||(Q.value.length&&Number(Q.selectionEnd)-Number(Q.selectionStart)===Q.value.length?o("all"):z())})}),me=Me((...U)=>{S==null||S(...U),o(null)}),Se=Me(U=>{if(k==null||k(U),h){U.preventDefault();return}const Q=U.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const we=n.sections[r.startIndex],$e=/^[a-zA-Z]+$/.test(Q),ke=/^[0-9]+$/.test(Q),X=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Q);if(we.contentType==="letter"&&$e||we.contentType==="digit"&&ke||we.contentType==="digit-with-letter"&&X){V(),a({activeSection:we,newSectionValue:Q,shouldGoToNextSection:!0}),U.preventDefault();return}if($e||ke){U.preventDefault();return}}U.preventDefault(),V(),l(Q)}),Ee=Me(U=>{if(h)return;const Q=U.target.value;if(Q===""){V(),i();return}const we=U.nativeEvent.data,$e=we&&we.length>1,ke=$e?we:Q,X=hs(ke);if(r==null||$e){l($e?we:X);return}let he;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&X.length===1)he=X;else{const ve=hs(A.getValueStrFromSections(n.sections,B));let ge=-1,ye=-1;for(let fe=0;fe<ve.length;fe+=1)ge===-1&&ve[fe]!==X[fe]&&(ge=fe),ye===-1&&ve[ve.length-fe-1]!==X[X.length-fe-1]&&(ye=fe);const qe=n.sections[r.startIndex];if(ge<qe.start||ve.length-ye-1>qe.end)return;const He=X.length-ve.length+qe.end-hs(qe.endSeparator||"").length;he=X.slice(qe.start+hs(qe.startSeparator||"").length,He)}if(he.length===0){kA()?c(ke):(V(),s());return}L({keyPressed:he,sectionIndex:r.startIndex})}),re=Me(U=>{switch(C==null||C(U),!0){case(U.key==="a"&&(U.ctrlKey||U.metaKey)):{U.preventDefault(),o("all");break}case U.key==="ArrowRight":{if(U.preventDefault(),r==null)o(H.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const Q=H.neighbors[r.startIndex].rightIndex;Q!==null&&o(Q)}break}case U.key==="ArrowLeft":{if(U.preventDefault(),r==null)o(H.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const Q=H.neighbors[r.startIndex].leftIndex;Q!==null&&o(Q)}break}case U.key==="Delete":{if(U.preventDefault(),h)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?i():s(),V();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(U.key):{if(U.preventDefault(),h||r==null)break;const Q=n.sections[r.startIndex],we=A.getActiveDateManager(t,n,Q),$e=yA(t,p,Q,U.key,u,we.date,{minutesStep:m});a({activeSection:Q,newSectionValue:$e,shouldGoToNextSection:!1});break}}});Lt(()=>{if(!I.current)return;if(r==null){I.current.scrollLeft&&(I.current.scrollLeft=0);return}const U=n.sections[r.startIndex],Q=n.sections[r.endIndex];let we=U.startInInput,$e=Q.endInInput;if(r.shouldSelectBoundarySelectors&&(we-=U.startSeparator.length,$e+=Q.endSeparator.length),we!==I.current.selectionStart||$e!==I.current.selectionEnd){const ke=I.current.scrollTop;I.current===cd(document)&&I.current.setSelectionRange(we,$e),I.current.scrollTop=ke}});const ee=n4(b({},g,{value:n.value,timezone:p}),R,$.isSameError,$.defaultErrorState),j=v.useMemo(()=>M!==void 0?M:$.hasError(ee),[$,ee,M]);v.useEffect(()=>{!j&&!r&&V()},[n.referenceValue,r,j]),v.useEffect(()=>(I.current&&I.current===document.activeElement&&o("all"),()=>window.clearTimeout(W.current)),[]),v.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(V(),s())},[n.tempValueStrAndroid]);const G=v.useMemo(()=>{var U;return(U=n.tempValueStrAndroid)!=null?U:A.getValueStrFromSections(n.sections,B)},[n.sections,A,n.tempValueStrAndroid,B]),Z=v.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),xe=I.current&&I.current===cd(document),Ie=$.areValuesEqual(t,n.value,$.emptyValue),le=!xe&&Ie;v.useImperativeHandle(E,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var U,Q;const we=(U=I.current.selectionStart)!=null?U:0,$e=(Q=I.current.selectionEnd)!=null?Q:0;if(we===0&&$e===0)return null;const ke=we<=n.sections[0].startInInput?1:n.sections.findIndex(X=>X.startInInput-X.startSeparator.length>we);return ke===-1?n.sections.length-1:ke-1},setSelectedSections:U=>o(U)}));const pe=Me((U,...Q)=>{var we;U.preventDefault(),D==null||D(U,...Q),i(),I==null||(we=I.current)==null||we.focus(),o(0)});return b({placeholder:d,autoComplete:"off",disabled:!!_},O,{value:le?"":G,inputMode:Z,readOnly:h,onClick:ne,onFocus:q,onBlur:me,onPaste:Se,onChange:Ee,onKeyDown:re,onMouseUp:ce,onClear:pe,error:j,ref:F,clearable:!!(T&&!Ie&&!h&&!_)})},zf=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:i,disablePast:s,disableFuture:a,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Qn(n.utils,e.minDate,n.defaultDates.minDate),d=Qn(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(a&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&n.utils.isAfterDay(t,d)):return"maxDate";default:return null}},W0=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],H0=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],r4=["minDateTime","maxDateTime"],UA=[...W0,...H0,...r4],o4=e=>UA.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),YA=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],GA=(e,t)=>{const n=b({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return YA.forEach(o),t==="date"?W0.forEach(o):t==="time"?H0.forEach(o):t==="date-time"&&(W0.forEach(o),H0.forEach(o),r4.forEach(o)),{forwardedProps:n,internalProps:r}},qA=e=>{var t,n,r;const o=ct(),i=oc();return b({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Qn(o,e.minDate,i.minDate),maxDate:Qn(o,e.maxDate,i.maxDate)})},KA=({props:e,inputRef:t})=>{const n=qA(e),{forwardedProps:r,internalProps:o}=GA(n,"date");return HA({inputRef:t,forwardedProps:r,internalProps:o,valueManager:uo,fieldValueManager:MA,validator:zf,valueType:"date"})},ZA=Y(ND)({[`& .${nl.container}`]:{outline:0},[`& .${nl.paper}`]:{outline:0,minWidth:Nf}}),XA=Y(QD)({"&:first-of-type":{padding:0}});function JA(e){var t,n;const{children:r,onDismiss:o,open:i,slots:s,slotProps:a}=e,l=(t=s==null?void 0:s.dialog)!=null?t:ZA,c=(n=s==null?void 0:s.mobileTransition)!=null?n:na;return f.jsx(l,b({open:i,onClose:o},a==null?void 0:a.dialog,{TransitionComponent:c,TransitionProps:a==null?void 0:a.mobileTransition,PaperComponent:s==null?void 0:s.mobilePaper,PaperProps:a==null?void 0:a.mobilePaper,children:f.jsx(XA,{children:r})}))}function QA(e){return _e("MuiPickersPopper",e)}Pe("MuiPickersPopper",["root","paper"]);const eL="@media (prefers-reduced-motion: reduce)",Es=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Tv=Es&&Es[1]?parseInt(Es[1],10):null,Rv=Es&&Es[2]?parseInt(Es[2],10):null,tL=Tv&&Tv<10||Rv&&Rv<13||!1,i4=()=>p6(eL,{defaultMatches:!1})||tL,nL=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],rL=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"]},QA,t)},oL=Y(sR,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),iL=Y(Ql,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>b({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function sL(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function aL(e,t){const n=v.useRef(!1),r=v.useRef(!1),o=v.useRef(null),i=v.useRef(!1);v.useEffect(()=>{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const s=Me(l=>{if(!i.current)return;const c=r.current;r.current=!1;const u=Pt(o.current);if(!o.current||"clientX"in l&&sL(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!c&&t(l)}),a=()=>{r.current=!0};return v.useEffect(()=>{if(e){const l=Pt(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",c)}}},[e,s]),v.useEffect(()=>{if(e){const l=Pt(o.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[e,s]),[o,a,a]}const lL=v.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:s,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=te(e,nL),d=b({},o,{placement:r}),p=We({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:d});return f.jsx(n,b({},u,p,{onClick:x=>{var g;l(x),(g=p.onClick)==null||g.call(p,x)},onTouchStart:x=>{var g;c(x),(g=p.onTouchStart)==null||g.call(p,x)},ownerState:d,children:i}))});function cL(e){var t,n,r,o;const i=Re({props:e,name:"MuiPickersPopper"}),{anchorEl:s,children:a,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:d,open:p,role:x,placement:g,slots:h,slotProps:E,reduceAnimations:m}=i;v.useEffect(()=>{function F(W){p&&(W.key==="Escape"||W.key==="Esc")&&d()}return document.addEventListener("keydown",F),()=>{document.removeEventListener("keydown",F)}},[d,p]);const y=v.useRef(null);v.useEffect(()=>{x==="tooltip"||c&&!c()||(p?y.current=cd(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,x,c]);const[C,w,S]=aL(p,u??d),P=v.useRef(null),k=tt(P,l),M=tt(k,C),T=i,D=rL(T),_=i4(),A=m??_,$=F=>{F.key==="Escape"&&(F.stopPropagation(),d())},R=((t=h==null?void 0:h.desktopTransition)!=null?t:A)?na:d6,O=(n=h==null?void 0:h.desktopTrapFocus)!=null?n:Wx,L=(r=h==null?void 0:h.desktopPaper)!=null?r:iL,V=(o=h==null?void 0:h.popper)!=null?o:oL,I=We({elementType:V,externalSlotProps:E==null?void 0:E.popper,additionalProps:{transition:!0,role:x,open:p,anchorEl:s,placement:g,onKeyDown:$},className:D.root,ownerState:i});return f.jsx(V,b({},I,{children:({TransitionProps:F,placement:W})=>f.jsx(O,b({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:x==="tooltip",isEnabled:()=>!0},E==null?void 0:E.desktopTrapFocus,{children:f.jsx(R,b({},F,E==null?void 0:E.desktopTransition,{children:f.jsx(lL,{PaperComponent:L,ownerState:T,popperPlacement:W,ref:M,onPaperClick:w,onPaperTouchStart:S,paperClasses:D.paper,paperSlotProps:E==null?void 0:E.desktopPaper,children:a})}))}))}))}function uL(e){return _e("MuiPickersToolbar",e)}Pe("MuiPickersToolbar",["root","content"]);const dL=e=>{const{classes:t,isLandscape:n}=e;return De({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},uL,t)},fL=Y("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>b({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),pL=Y("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),hL=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:s,hidden:a,titleId:l}=r,c=r,u=dL(c);return a?null:f.jsxs(fL,{ref:n,className:ue(u.root,i),ownerState:c,children:[f.jsx(Te,{color:"text.secondary",variant:"overline",id:l,children:s}),f.jsx(pL,{className:u.content,ownerState:c,children:o})]})}),mL=({open:e,onOpen:t,onClose:n})=>{const r=v.useRef(typeof e=="boolean").current,[o,i]=v.useState(!1);v.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const s=v.useCallback(a=>{r||i(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:s}},gL=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},yL=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},vL=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},xL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:s,value:a,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:d,timezone:p}=e,{current:x}=v.useRef(l),{current:g}=v.useRef(a!==void 0),h=ct(),E=Fi(),[m,y]=kn({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:C,setIsOpen:w}=mL(e),[S,P]=v.useState(()=>{let q;return a!==void 0?q=a:x!==void 0?q=x:q=t.emptyValue,{draft:q,lastPublishedValue:q,lastCommittedValue:q,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),{timezone:k,handleValueChange:M}=Xm({timezone:p,value:a,defaultValue:x,onChange:s,valueManager:t});n4(b({},e,{value:S.draft,timezone:k}),o,t.isSameError,t.defaultErrorState);const T=Me(q=>{const me={action:q,dateState:S,hasChanged:ee=>!t.areValuesEqual(h,q.value,ee),isControlled:g,closeOnSelect:c},Se=gL(me),Ee=yL(me),re=vL(me);if(P(ee=>b({},ee,{draft:q.value,lastPublishedValue:Se?q.value:ee.lastPublishedValue,lastCommittedValue:Ee?q.value:ee.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Se){const j={validationError:q.name==="setValueFromField"?q.context.validationError:o({adapter:E,value:q.value,props:b({},e,{value:q.value,timezone:k})})};q.name==="setValueFromShortcut"&&q.shortcut!=null&&(j.shortcut=q.shortcut),M(q.value,j)}Ee&&i&&i(q.value),re&&w(!1)});if(a!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(h,S.lastControlledValue,a))){const q=t.areValuesEqual(h,S.draft,a);P(me=>b({},me,{lastControlledValue:a},q?{}:{lastCommittedValue:a,lastPublishedValue:a,draft:a,hasBeenModifiedSinceMount:!0}))}const D=Me(()=>{T({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),_=Me(()=>{T({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),A=Me(()=>{T({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Me(()=>{T({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),R=Me(()=>{T({value:t.getTodayValue(h,k,n),name:"setValueFromAction",pickerAction:"today"})}),O=Me(()=>w(!0)),L=Me(()=>w(!1)),V=Me((q,me="partial")=>T({name:"setValueFromView",value:q,selectionState:me})),I=Me((q,me,Se)=>T({name:"setValueFromShortcut",value:q,changeImportance:me??"accept",shortcut:Se})),F=Me((q,me)=>T({name:"setValueFromField",value:q,context:me})),W=Me(q=>{y(q),d==null||d(q)}),se={onClear:D,onAccept:_,onDismiss:A,onCancel:$,onSetToday:R,onOpen:O,onClose:L},B={value:S.draft,onChange:F,selectedSections:m,onSelectedSectionsChange:W},H=v.useMemo(()=>t.cleanValue(h,S.draft),[h,t,S.draft]),z={value:H,onChange:V,onClose:L,open:C,onSelectedSectionsChange:W},ce=b({},se,{value:H,onChange:V,onSelectShortcut:I,isValid:q=>{const me=o({adapter:E,value:q,props:b({},e,{value:q,timezone:k})});return!t.hasError(me)}});return{open:C,fieldProps:B,viewProps:z,layoutProps:ce,actions:se}},CL=["className","sx"],bL=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:i,open:s,onSelectedSectionsChange:a,onClose:l}=t,{views:c,openTo:u,onViewChange:d,disableOpenPicker:p,viewRenderers:x,timezone:g}=e,h=te(e,CL),{view:E,setView:m,defaultView:y,focusedView:C,setFocusedView:w,setValueAndGoToNextView:S}=H6({view:void 0,views:c,openTo:u,onChange:i,onViewChange:d,autoFocus:o}),{hasUIView:P,viewModeLookup:k}=v.useMemo(()=>c.reduce((R,O)=>{let L;return p?L="field":x[O]!=null?L="UI":L="field",R.viewModeLookup[O]=L,L==="UI"&&(R.hasUIView=!0),R},{hasUIView:!1,viewModeLookup:{}}),[p,x,c]),M=v.useMemo(()=>c.reduce((R,O)=>x[O]!=null&&oA(O)?R+1:R,0),[x,c]),T=k[E],D=Me(()=>T==="UI"),[_,A]=v.useState(T==="UI"?E:null);return _!==E&&k[E]==="UI"&&A(E),Lt(()=>{T==="field"&&s&&(l(),setTimeout(()=>{r==null||r.current.focus(),a(E)}))},[E]),Lt(()=>{if(!s)return;let R=E;T==="field"&&_!=null&&(R=_),R!==y&&k[R]==="UI"&&k[y]==="UI"&&(R=y),R!==E&&m(R),w(R,!0)},[s]),{hasUIView:P,shouldRestoreFocus:D,layoutProps:{views:c,view:_,onViewChange:m},renderCurrentView:()=>{if(_==null)return null;const R=x[_];return R==null?null:R(b({},h,n,t,{views:c,timezone:g,onChange:S,view:_,onViewChange:m,focusedView:C,onFocusedViewChange:w,showViewSwitcher:M>1,timeViewsCount:M}))}}};function Dv(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const wL=(e,t)=>{const[n,r]=v.useState(Dv);return Lt(()=>{const i=()=>{r(Dv())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),VA(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},SL=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=wL(n.views,o);return{layoutProps:b({},n,t,{isLandscape:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},kL=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};kL(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const s4=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:i,validator:s,autoFocusView:a})=>{const l=xL({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),c=bL({props:e,inputRef:o,additionalViewProps:i,autoFocusView:a,propsFromPickerValue:l.viewProps}),u=SL({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function a4(e){return _e("MuiPickersLayout",e)}const sh=Pe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),EL=["onAccept","onClear","onCancel","onSetToday","actions"];function PL(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,s=te(e,EL),a=Zo();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return f.jsx(Mr,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return f.jsx(Mr,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return f.jsx(Mr,{onClick:t,children:a.okButtonLabel},c);case"today":return f.jsx(Mr,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return f.jsx(UD,b({},s,{children:l}))}const ML=["items","changeImportance","isLandscape","onChange","isValid"],TL=["getValue"];function RL(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,i=te(e,ML);if(t==null||t.length===0)return null;const s=t.map(a=>{let{getValue:l}=a,c=te(a,TL);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return f.jsx(y6,b({dense:!0,sx:[{maxHeight:qm,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:s.map(a=>f.jsx(LO,{children:f.jsx(mR,b({},a))},a.label))}))}function DL(e){return e.view!==null}const _L=e=>{const{classes:t,isLandscape:n}=e;return De({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},a4,t)},OL=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:i,onCancel:s,onSetToday:a,view:l,views:c,onViewChange:u,value:d,onChange:p,onSelectShortcut:x,isValid:g,isLandscape:h,disabled:E,readOnly:m,children:y,components:C,componentsProps:w,slots:S,slotProps:P}=e,k=S??Q6(C),M=P??w,T=_L(e),D=(t=k==null?void 0:k.actionBar)!=null?t:PL,_=We({elementType:D,externalSlotProps:M==null?void 0:M.actionBar,additionalProps:{onAccept:o,onClear:i,onCancel:s,onSetToday:a,actions:r==="desktop"?[]:["cancel","accept"],className:T.actionBar},ownerState:b({},e,{wrapperVariant:r})}),A=f.jsx(D,b({},_)),$=k==null?void 0:k.toolbar,R=We({elementType:$,externalSlotProps:M==null?void 0:M.toolbar,additionalProps:{isLandscape:h,onChange:p,value:d,view:l,onViewChange:u,views:c,disabled:E,readOnly:m,className:T.toolbar},ownerState:b({},e,{wrapperVariant:r})}),O=DL(R)&&$?f.jsx($,b({},R)):null,L=y,V=k==null?void 0:k.tabs,I=l&&V?f.jsx(V,b({view:l,onViewChange:u},M==null?void 0:M.tabs)):null,F=(n=k==null?void 0:k.shortcuts)!=null?n:RL,W=We({elementType:F,externalSlotProps:M==null?void 0:M.shortcuts,additionalProps:{isValid:g,isLandscape:h,onChange:x,className:T.shortcuts},ownerState:{isValid:g,isLandscape:h,onChange:x,className:T.shortcuts,wrapperVariant:r}}),se=l&&F?f.jsx(F,b({},W)):null;return{toolbar:O,content:L,tabs:I,actionBar:A,shortcuts:se}},IL=e=>{const{isLandscape:t,classes:n}=e;return De({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},a4,n)},l4=Y("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${sh.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${sh.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${sh.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));l4.propTypes={as:N.elementType,ownerState:N.shape({isLandscape:N.bool.isRequired}).isRequired,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object])};const $L=Y("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),c4=function(t){const n=Re({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:i,actionBar:s,shortcuts:a}=OL(n),{sx:l,className:c,isLandscape:u,ref:d,wrapperVariant:p}=n,x=n,g=IL(x);return f.jsxs(l4,{ref:d,sx:l,className:ue(c,g.root),ownerState:x,children:[u?a:r,u?r:a,f.jsx($L,{className:g.contentWrapper,children:p==="desktop"?f.jsxs(v.Fragment,{children:[o,i]}):f.jsxs(v.Fragment,{children:[i,o]})}),s]})},FL=e=>_e("MuiPickersSlideTransition",e),Nn=Pe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),AL=["children","className","reduceAnimations","slideDirection","transKey","classes"],LL=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return De(r,FL,t)},jL=Y(_m,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Nn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Nn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Nn.slideEnterActive}`]:t.slideEnterActive},{[`.${Nn.slideExit}`]:t.slideExit},{[`.${Nn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Nn["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Nn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Nn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Nn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Nn.slideExit}`]:{transform:"translate(0%)"},[`& .${Nn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Nn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function NL(e){const t=Re({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,s=te(t,AL),a=LL(t),l=Le();if(o)return f.jsx("div",{className:ue(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return f.jsx(jL,{className:ue(a.root,r),childFactory:u=>v.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(xP,b({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},s,{children:n}),i)})}const u4=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:a})=>{const l=Fi();return v.useCallback(c=>zf({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:a}})!==null,[l,e,t,n,r,o,i,s,a])},VL=e=>_e("MuiDayCalendar",e);Pe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const zL=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],BL=["ownerState"],WL=e=>{const{classes:t}=e;return De({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},VL,t)},d4=(Il+jf*2)*6,HL=Y("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),UL=Y("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),YL=Y(Te,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),GL=Y(Te,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),qL=Y(Te,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>b({},e.typography.caption,{width:Il,height:Il,padding:0,margin:`0 ${jf}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),KL=Y("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:d4}),ZL=Y(NL,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:d4}),XL=Y("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),JL=Y("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${jf}px 0`,display:"flex",justifyContent:"center"});function QL(e){var t,n,r;let{parentProps:o,day:i,focusableDay:s,selectedDays:a,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,d=te(e,zL);const{disabled:p,disableHighlightToday:x,isMonthSwitchingAnimating:g,showDaysOutsideCurrentMonth:h,components:E,componentsProps:m,slots:y,slotProps:C,timezone:w}=o,S=ct(),P=ic(w),k=s!==null&&S.isSameDay(i,s),M=a.some(V=>S.isSameDay(V,i)),T=S.isSameDay(i,P),D=(t=(n=y==null?void 0:y.day)!=null?n:E==null?void 0:E.Day)!=null?t:$A,_=We({elementType:D,externalSlotProps:(r=C==null?void 0:C.day)!=null?r:m==null?void 0:m.day,additionalProps:b({disableHighlightToday:x,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:g,"data-timestamp":S.toJsDate(i).valueOf()},d),ownerState:b({},o,{day:i,selected:M})}),A=te(_,BL),$=v.useMemo(()=>p||l(i),[p,l,i]),R=v.useMemo(()=>S.getMonth(i)!==c,[S,i,c]),O=v.useMemo(()=>{const V=S.startOfMonth(S.setMonth(i,c));return h?S.isSameDay(i,S.startOfWeek(V)):S.isSameDay(i,V)},[c,i,h,S]),L=v.useMemo(()=>{const V=S.endOfMonth(S.setMonth(i,c));return h?S.isSameDay(i,S.endOfWeek(V)):S.isSameDay(i,V)},[c,i,h,S]);return f.jsx(D,b({},A,{day:i,disabled:$,autoFocus:u&&k,today:T,outsideCurrentMonth:R,isFirstVisibleCell:O,isLastVisibleCell:L,selected:M,tabIndex:k?0:-1,"aria-selected":M,"aria-current":T?"date":void 0}))}function ej(e){const t=Re({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:i,focusedDay:s,loading:a,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:d,renderLoading:p=()=>f.jsx("span",{children:"..."}),slideDirection:x,TransitionProps:g,disablePast:h,disableFuture:E,minDate:m,maxDate:y,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:S,dayOfWeekFormatter:P,hasFocus:k,onFocusedViewChange:M,gridLabelId:T,displayWeekNumber:D,fixedWeekNumber:_,autoFocus:A,timezone:$}=t,R=ic($),O=ct(),L=WL(t),I=Le().direction==="rtl",F=P||((le,pe)=>O.format(pe,"weekdayShort").charAt(0).toUpperCase()),W=u4({shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:S,minDate:m,maxDate:y,disablePast:h,disableFuture:E,timezone:$}),se=Zo(),[B,H]=kn({name:"DayCalendar",state:"hasFocus",controlled:k,default:A??!1}),[z,ne]=v.useState(()=>s||R),ce=Me(le=>{u||l(le)}),q=le=>{W(le)||(n(le),ne(le),M==null||M(!0),H(!0))},me=Me((le,pe)=>{switch(le.key){case"ArrowUp":q(O.addDays(pe,-7)),le.preventDefault();break;case"ArrowDown":q(O.addDays(pe,7)),le.preventDefault();break;case"ArrowLeft":{const U=O.addDays(pe,I?1:-1),Q=O.addMonths(pe,I?1:-1),we=ol({utils:O,date:U,minDate:I?U:O.startOfMonth(Q),maxDate:I?O.endOfMonth(Q):U,isDateDisabled:W,timezone:$});q(we||U),le.preventDefault();break}case"ArrowRight":{const U=O.addDays(pe,I?-1:1),Q=O.addMonths(pe,I?-1:1),we=ol({utils:O,date:U,minDate:I?O.startOfMonth(Q):U,maxDate:I?U:O.endOfMonth(Q),isDateDisabled:W,timezone:$});q(we||U),le.preventDefault();break}case"Home":q(O.startOfWeek(pe)),le.preventDefault();break;case"End":q(O.endOfWeek(pe)),le.preventDefault();break;case"PageUp":q(O.addMonths(pe,1)),le.preventDefault();break;case"PageDown":q(O.addMonths(pe,-1)),le.preventDefault();break}}),Se=Me((le,pe)=>q(pe)),Ee=Me((le,pe)=>{B&&O.isSameDay(z,pe)&&(M==null||M(!1))}),re=O.getMonth(o),ee=v.useMemo(()=>i.filter(le=>!!le).map(le=>O.startOfDay(le)),[O,i]),j=re,G=v.useMemo(()=>v.createRef(),[j]),Z=O.startOfWeek(R),xe=v.useMemo(()=>{const le=O.startOfMonth(o),pe=O.endOfMonth(o);return W(z)||O.isAfterDay(z,pe)||O.isBeforeDay(z,le)?ol({utils:O,date:z,minDate:le,maxDate:pe,disablePast:h,disableFuture:E,isDateDisabled:W,timezone:$}):z},[o,E,h,z,W,O,$]),Ie=v.useMemo(()=>{const le=O.setTimezone(o,$),pe=O.getWeekArray(le);let U=O.addMonths(le,1);for(;_&&pe.length<_;){const Q=O.getWeekArray(U),we=O.isSameDay(pe[pe.length-1][0],Q[0][0]);Q.slice(we?1:0).forEach($e=>{pe.length<_&&pe.push($e)}),U=O.addMonths(U,1)}return pe},[o,_,O,$]);return f.jsxs(HL,{role:"grid","aria-labelledby":T,className:L.root,children:[f.jsxs(UL,{role:"row",className:L.header,children:[D&&f.jsx(GL,{variant:"caption",role:"columnheader","aria-label":se.calendarWeekNumberHeaderLabel,className:L.weekNumberLabel,children:se.calendarWeekNumberHeaderText}),pA(O,R).map((le,pe)=>{var U;const Q=O.format(le,"weekdayShort");return f.jsx(YL,{variant:"caption",role:"columnheader","aria-label":O.format(O.addDays(Z,pe),"weekday"),className:L.weekDayLabel,children:(U=F==null?void 0:F(Q,le))!=null?U:Q},Q+pe.toString())})]}),a?f.jsx(KL,{className:L.loadingContainer,children:p()}):f.jsx(ZL,b({transKey:j,onExited:c,reduceAnimations:d,slideDirection:x,className:ue(r,L.slideTransition)},g,{nodeRef:G,children:f.jsx(XL,{ref:G,role:"rowgroup",className:L.monthContainer,children:Ie.map((le,pe)=>f.jsxs(JL,{role:"row",className:L.weekContainer,"aria-rowindex":pe+1,children:[D&&f.jsx(qL,{className:L.weekNumber,role:"rowheader","aria-label":se.calendarWeekNumberAriaLabelText(O.getWeekNumber(le[0])),children:se.calendarWeekNumberText(O.getWeekNumber(le[0]))}),le.map((U,Q)=>f.jsx(QL,{parentProps:t,day:U,selectedDays:ee,focusableDay:xe,onKeyDown:me,onFocus:Se,onBlur:Ee,onDaySelect:ce,isDateDisabled:W,currentMonthNumber:re,isViewFocused:B,"aria-colindex":Q+1},U.toString()))]},`week-${le[0]}`))})}))]})}const tj=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return b({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return b({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return b({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},nj=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:i,disableSwitchToMonthOnDayFocus:s=!1,maxDate:a,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:p}=e,x=ic(p),g=ct(),h=v.useRef(tj(!!u,s,g)).current,E=v.useMemo(()=>{let M=null;return n?M=n:r&&(M=g.startOfMonth(r)),uo.getInitialReferenceValue({value:t,utils:g,timezone:p,props:e,referenceDate:M,granularity:Sr.day})},[]),[m,y]=v.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:g.isValid(t)?t:x,currentMonth:g.startOfMonth(E),slideDirection:"left"}),C=v.useCallback(M=>{y(b({type:"changeMonth"},M)),c&&c(M.newMonth)},[c]),w=v.useCallback(M=>{const T=M;g.isSameMonth(T,m.currentMonth)||C({newMonth:g.startOfMonth(T),direction:g.isAfterDay(T,m.currentMonth)?"left":"right"})},[m.currentMonth,C,g]),S=u4({shouldDisableDate:d,minDate:l,maxDate:a,disableFuture:o,disablePast:i,timezone:p}),P=v.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),k=Me((M,T)=>{S(M)||y({type:"changeFocusedDay",focusedDay:M,withoutMonthSwitchingAnimation:T})});return{referenceDate:E,calendarState:m,changeMonth:w,changeFocusedDay:k,isDateDisabled:S,onMonthSwitchingAnimationEnd:P,handleChangeMonth:C}},rj=["ownerState"],oj=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:i,components:s,componentsProps:a})=>{var l,c,u,d,p,x;const g=Zo(),h=(l=(c=o==null?void 0:o.clearButton)!=null?c:s==null?void 0:s.ClearButton)!=null?l:ta,E=We({elementType:h,externalSlotProps:(u=i==null?void 0:i.clearButton)!=null?u:a==null?void 0:a.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:g.fieldClearLabel}}),m=te(E,rj),y=(d=(p=o==null?void 0:o.clearIcon)!=null?p:s==null?void 0:s.ClearIcon)!=null?d:GF,C=We({elementType:y,externalSlotProps:(x=i==null?void 0:i.clearIcon)!=null?x:a==null?void 0:a.clearIcon,ownerState:{}}),w=b({},n,{endAdornment:f.jsxs(v.Fragment,{children:[e&&f.jsx(Bm,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:f.jsx(h,b({},m,{onClick:r,children:f.jsx(y,b({fontSize:"small"},C))}))}),n==null?void 0:n.endAdornment]})}),S=b({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:w,fieldProps:S}},ij=["components","componentsProps","slots","slotProps","InputProps","inputProps"],sj=["inputRef"],aj=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],f4=v.forwardRef(function(t,n){var r,o,i;const s=Re({props:t,name:"MuiDateField"}),{components:a,componentsProps:l,slots:c,slotProps:u,InputProps:d,inputProps:p}=s,x=te(s,ij),g=s,h=(r=(o=c==null?void 0:c.textField)!=null?o:a==null?void 0:a.TextField)!=null?r:rc,E=We({elementType:h,externalSlotProps:(i=u==null?void 0:u.textField)!=null?i:l==null?void 0:l.textField,externalForwardedProps:x,ownerState:g}),{inputRef:m}=E,y=te(E,sj);y.inputProps=b({},p,y.inputProps),y.InputProps=b({},d,y.InputProps);const C=KA({props:y,inputRef:m}),{ref:w,onPaste:S,onKeyDown:P,inputMode:k,readOnly:M,clearable:T,onClear:D}=C,_=te(C,aj),{InputProps:A,fieldProps:$}=oj({onClear:D,clearable:T,fieldProps:_,InputProps:_.InputProps,slots:c,slotProps:u,components:a,componentsProps:l});return f.jsx(h,b({ref:n},$,{InputProps:b({},A,{readOnly:M}),inputProps:b({},_.inputProps,{inputMode:k,onPaste:S,onKeyDown:P,ref:w})}))}),lj=e=>_e("MuiPickersFadeTransitionGroup",e);Pe("MuiPickersFadeTransitionGroup",["root"]);const cj=e=>{const{classes:t}=e;return De({root:["root"]},lj,t)},uj=Y(_m,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function p4(e){const t=Re({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,s=cj(t),a=Le();return o?n:f.jsx(uj,{className:ue(s.root,r),children:f.jsx(na,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},i)})}function dj(e){return _e("MuiPickersMonth",e)}const Bc=Pe("MuiPickersMonth",["root","monthButton","disabled","selected"]),fj=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],pj=e=>{const{disabled:t,selected:n,classes:r}=e;return De({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},dj,r)},hj=Y("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),mj=Y("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Bc.disabled}`]:t.disabled},{[`&.${Bc.selected}`]:t.selected}]})(({theme:e})=>b({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Bc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Bc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),gj=v.memo(function(t){const n=Re({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:i,selected:s,value:a,tabIndex:l,onClick:c,onKeyDown:u,onFocus:d,onBlur:p,"aria-current":x,"aria-label":g}=n,h=te(n,fj),E=v.useRef(null),m=pj(n);return Lt(()=>{if(r){var y;(y=E.current)==null||y.focus()}},[r]),f.jsx(hj,b({className:m.root,ownerState:n},h,{children:f.jsx(mj,{ref:E,disabled:i,type:"button",role:"radio",tabIndex:i?-1:l,"aria-current":x,"aria-checked":s,"aria-label":g,onClick:y=>c(y,a),onKeyDown:y=>u(y,a),onFocus:y=>d(y,a),onBlur:y=>p(y,a),className:m.monthButton,ownerState:n,children:o})}))});function yj(e){return _e("MuiMonthCalendar",e)}Pe("MuiMonthCalendar",["root"]);const vj=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],xj=e=>{const{classes:t}=e;return De({root:["root"]},yj,t)};function Cj(e,t){const n=ct(),r=oc(),o=Re({props:e,name:t});return b({disableFuture:!1,disablePast:!1},o,{minDate:Qn(n,o.minDate,r.minDate),maxDate:Qn(n,o.maxDate,r.maxDate)})}const bj=Y("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Nf,boxSizing:"border-box"}),wj=v.forwardRef(function(t,n){const r=Cj(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:s,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:p,onChange:x,shouldDisableMonth:g,readOnly:h,disableHighlightToday:E,autoFocus:m=!1,onMonthFocus:y,hasFocus:C,onFocusedViewChange:w,monthsPerRow:S=3,timezone:P,gridLabelId:k}=r,M=te(r,vj),{value:T,handleValueChange:D,timezone:_}=Jm({name:"MonthCalendar",timezone:P,value:i,defaultValue:s,onChange:x,valueManager:uo}),A=ic(_),$=ea(),R=ct(),O=v.useMemo(()=>uo.getInitialReferenceValue({value:T,utils:R,props:r,timezone:_,referenceDate:a,granularity:Sr.month}),[]),L=r,V=xj(L),I=v.useMemo(()=>R.getMonth(A),[R,A]),F=v.useMemo(()=>T!=null?R.getMonth(T):E?null:R.getMonth(O),[T,R,E,O]),[W,se]=v.useState(()=>F||I),[B,H]=kn({name:"MonthCalendar",state:"hasFocus",controlled:C,default:m??!1}),z=Me(re=>{H(re),w&&w(re)}),ne=v.useCallback(re=>{const ee=R.startOfMonth(u&&R.isAfter(A,p)?A:p),j=R.startOfMonth(c&&R.isBefore(A,d)?A:d),G=R.startOfMonth(re);return R.isBefore(G,ee)||R.isAfter(G,j)?!0:g?g(G):!1},[c,u,d,p,A,g,R]),ce=Me((re,ee)=>{if(h)return;const j=R.setMonth(T??O,ee);D(j)}),q=Me(re=>{ne(R.setMonth(T??O,re))||(se(re),z(!0),y&&y(re))});v.useEffect(()=>{se(re=>F!==null&&re!==F?F:re)},[F]);const me=Me((re,ee)=>{switch(re.key){case"ArrowUp":q((12+ee-3)%12),re.preventDefault();break;case"ArrowDown":q((12+ee+3)%12),re.preventDefault();break;case"ArrowLeft":q((12+ee+($.direction==="ltr"?-1:1))%12),re.preventDefault();break;case"ArrowRight":q((12+ee+($.direction==="ltr"?1:-1))%12),re.preventDefault();break}}),Se=Me((re,ee)=>{q(ee)}),Ee=Me((re,ee)=>{W===ee&&z(!1)});return f.jsx(bj,b({ref:n,className:ue(V.root,o),ownerState:L,role:"radiogroup","aria-labelledby":k},M,{children:Km(R,T??O).map(re=>{const ee=R.getMonth(re),j=R.format(re,"monthShort"),G=R.format(re,"month"),Z=ee===F,xe=l||ne(re);return f.jsx(gj,{selected:Z,value:ee,onClick:ce,onKeyDown:me,autoFocus:B&&ee===W,disabled:xe,tabIndex:ee===W?0:-1,onFocus:Se,onBlur:Ee,"aria-current":I===ee?"date":void 0,"aria-label":G,monthsPerRow:S,children:j},j)})}))});function Sj(e){return _e("MuiPickersYear",e)}const Wc=Pe("MuiPickersYear",["root","yearButton","selected","disabled"]),kj=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],Ej=e=>{const{disabled:t,selected:n,classes:r}=e;return De({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Sj,r)},Pj=Y("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),Mj=Y("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Wc.disabled}`]:t.disabled},{[`&.${Wc.selected}`]:t.selected}]})(({theme:e})=>b({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Ne(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Wc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Wc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Tj=v.memo(function(t){const n=Re({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:p,onBlur:x,"aria-current":g}=n,h=te(n,kj),E=v.useRef(null),m=Ej(n);return v.useEffect(()=>{r&&E.current.focus()},[r]),f.jsx(Pj,b({className:ue(m.root,o),ownerState:n},h,{children:f.jsx(Mj,{ref:E,disabled:s,type:"button",role:"radio",tabIndex:s?-1:c,"aria-current":g,"aria-checked":a,onClick:y=>u(y,l),onKeyDown:y=>d(y,l),onFocus:y=>p(y,l),onBlur:y=>x(y,l),className:m.yearButton,ownerState:n,children:i})}))});function Rj(e){return _e("MuiYearCalendar",e)}Pe("MuiYearCalendar",["root"]);const Dj=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],_j=e=>{const{classes:t}=e;return De({root:["root"]},Rj,t)};function Oj(e,t){var n;const r=ct(),o=oc(),i=Re({props:e,name:t});return b({disablePast:!1,disableFuture:!1},i,{yearsPerRow:(n=i.yearsPerRow)!=null?n:3,minDate:Qn(r,i.minDate,o.minDate),maxDate:Qn(r,i.maxDate,o.maxDate)})}const Ij=Y("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Nf,maxHeight:lA,boxSizing:"border-box",position:"relative"}),$j=v.forwardRef(function(t,n){const r=Oj(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:s,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:p,minDate:x,onChange:g,readOnly:h,shouldDisableYear:E,disableHighlightToday:m,onYearFocus:y,hasFocus:C,onFocusedViewChange:w,yearsPerRow:S,timezone:P,gridLabelId:k}=r,M=te(r,Dj),{value:T,handleValueChange:D,timezone:_}=Jm({name:"YearCalendar",timezone:P,value:s,defaultValue:a,onChange:g,valueManager:uo}),A=ic(_),$=ea(),R=ct(),O=v.useMemo(()=>uo.getInitialReferenceValue({value:T,utils:R,props:r,timezone:_,referenceDate:l,granularity:Sr.year}),[]),L=r,V=_j(L),I=v.useMemo(()=>R.getYear(A),[R,A]),F=v.useMemo(()=>T!=null?R.getYear(T):m?null:R.getYear(O),[T,R,m,O]),[W,se]=v.useState(()=>F||I),[B,H]=kn({name:"YearCalendar",state:"hasFocus",controlled:C,default:o??!1}),z=Me(j=>{H(j),w&&w(j)}),ne=v.useCallback(j=>{if(d&&R.isBeforeYear(j,A)||u&&R.isAfterYear(j,A)||x&&R.isBeforeYear(j,x)||p&&R.isAfterYear(j,p))return!0;if(!E)return!1;const G=R.startOfYear(j);return E(G)},[u,d,p,x,A,E,R]),ce=Me((j,G)=>{if(h)return;const Z=R.setYear(T??O,G);D(Z)}),q=Me(j=>{ne(R.setYear(T??O,j))||(se(j),z(!0),y==null||y(j))});v.useEffect(()=>{se(j=>F!==null&&j!==F?F:j)},[F]);const me=Me((j,G)=>{switch(j.key){case"ArrowUp":q(G-S),j.preventDefault();break;case"ArrowDown":q(G+S),j.preventDefault();break;case"ArrowLeft":q(G+($.direction==="ltr"?-1:1)),j.preventDefault();break;case"ArrowRight":q(G+($.direction==="ltr"?1:-1)),j.preventDefault();break}}),Se=Me((j,G)=>{q(G)}),Ee=Me((j,G)=>{W===G&&z(!1)}),re=v.useRef(null),ee=tt(n,re);return v.useEffect(()=>{if(o||re.current===null)return;const j=re.current.querySelector('[tabindex="0"]');if(!j)return;const G=j.offsetHeight,Z=j.offsetTop,xe=re.current.clientHeight,Ie=re.current.scrollTop,le=Z+G;G>xe||Z<Ie||(re.current.scrollTop=le-xe/2-G/2)},[o]),f.jsx(Ij,b({ref:ee,className:ue(V.root,i),ownerState:L,role:"radiogroup","aria-labelledby":k},M,{children:R.getYearRange(x,p).map(j=>{const G=R.getYear(j),Z=G===F,xe=c||ne(j);return f.jsx(Tj,{selected:Z,value:G,onClick:ce,onKeyDown:me,autoFocus:B&&G===W,disabled:xe,tabIndex:G===W?0:-1,onFocus:Se,onBlur:Ee,"aria-current":I===G?"date":void 0,yearsPerRow:S,children:R.format(j,"year")},R.format(j,"year"))})}))}),Fj=e=>_e("MuiPickersCalendarHeader",e),Aj=Pe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Lj=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],jj=["ownerState"],Nj=e=>{const{classes:t}=e;return De({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Fj,t)},Vj=Y("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),zj=Y("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>b({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Bj=Y("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Wj=Y(ta,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>b({marginRight:"auto"},e.view==="year"&&{[`.${Aj.switchViewIcon}`]:{transform:"rotate(180deg)"}})),Hj=Y(WF,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Uj=v.forwardRef(function(t,n){var r,o,i,s;const a=Zo(),l=ct(),c=Re({props:t,name:"MuiPickersCalendarHeader"}),{slots:u,slotProps:d,components:p,currentMonth:x,disabled:g,disableFuture:h,disablePast:E,maxDate:m,minDate:y,onMonthChange:C,onViewChange:w,view:S,reduceAnimations:P,views:k,labelId:M,className:T,timezone:D}=c,_=te(c,Lj),A=c,$=Nj(c),R=(r=(o=u==null?void 0:u.switchViewButton)!=null?o:p==null?void 0:p.SwitchViewButton)!=null?r:Wj,O=We({elementType:R,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(S)},ownerState:A,className:$.switchViewButton}),L=(i=(s=u==null?void 0:u.switchViewIcon)!=null?s:p==null?void 0:p.SwitchViewIcon)!=null?i:Hj,V=We({elementType:L,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:$.switchViewIcon}),I=te(V,jj),F=()=>C(l.addMonths(x,1),"left"),W=()=>C(l.addMonths(x,-1),"right"),se=sA(x,{disableFuture:h,maxDate:m,timezone:D}),B=aA(x,{disablePast:E,minDate:y,timezone:D}),H=()=>{if(!(k.length===1||!w||g))if(k.length===2)w(k.find(z=>z!==S)||k[0]);else{const z=k.indexOf(S)!==0?0:1;w(k[z])}};return k.length===1&&k[0]==="year"?null:f.jsxs(Vj,b({},_,{ownerState:A,className:ue(T,$.root),ref:n,children:[f.jsxs(zj,{role:"presentation",onClick:H,ownerState:A,"aria-live":"polite",className:$.labelContainer,children:[f.jsx(p4,{reduceAnimations:P,transKey:l.format(x,"monthAndYear"),children:f.jsx(Bj,{id:M,ownerState:A,className:$.label,children:l.format(x,"monthAndYear")})}),k.length>1&&!g&&f.jsx(R,b({},O,{children:f.jsx(L,b({},I))}))]}),f.jsx(na,{in:S==="day",children:f.jsx(tA,{slots:u,slotProps:d,onGoToPrevious:W,isPreviousDisabled:B,previousLabel:a.previousMonth,onGoToNext:F,isNextDisabled:se,nextLabel:a.nextMonth})})]}))}),Yj=e=>_e("MuiDateCalendar",e);Pe("MuiDateCalendar",["root","viewTransitionContainer"]);const Gj=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],qj=e=>{const{classes:t}=e;return De({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Yj,t)};function Kj(e,t){var n,r,o,i,s,a,l;const c=ct(),u=oc(),d=i4(),p=Re({props:e,name:t});return b({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(i=p.openTo)!=null?i:"day",views:(s=p.views)!=null?s:["year","day"],reduceAnimations:(a=p.reduceAnimations)!=null?a:d,renderLoading:(l=p.renderLoading)!=null?l:()=>f.jsx("span",{children:"..."}),minDate:Qn(c,p.minDate,u.minDate),maxDate:Qn(c,p.maxDate,u.maxDate)})}const Zj=Y(cA,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:qm}),Xj=Y(p4,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Jj=v.forwardRef(function(t,n){var r,o,i;const s=ct(),a=ho(),l=Kj(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:d,defaultValue:p,referenceDate:x,disableFuture:g,disablePast:h,defaultCalendarMonth:E,onChange:m,onYearChange:y,onMonthChange:C,reduceAnimations:w,shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:k,view:M,views:T,openTo:D,className:_,disabled:A,readOnly:$,minDate:R,maxDate:O,disableHighlightToday:L,focusedView:V,onFocusedViewChange:I,showDaysOutsideCurrentMonth:F,fixedWeekNumber:W,dayOfWeekFormatter:se,components:B,componentsProps:H,slots:z,slotProps:ne,loading:ce,renderLoading:q,displayWeekNumber:me,yearsPerRow:Se,monthsPerRow:Ee,timezone:re}=l,ee=te(l,Gj),{value:j,handleValueChange:G,timezone:Z}=Jm({name:"DateCalendar",timezone:re,value:d,defaultValue:p,onChange:m,valueManager:uo}),{view:xe,setView:Ie,focusedView:le,setFocusedView:pe,goToNextView:U,setValueAndGoToNextView:Q}=H6({view:M,views:T,openTo:D,onChange:G,onViewChange:u,autoFocus:c,focusedView:V,onFocusedViewChange:I}),{referenceDate:we,calendarState:$e,changeFocusedDay:ke,changeMonth:X,handleChangeMonth:he,isDateDisabled:ve,onMonthSwitchingAnimationEnd:ge}=nj({value:j,defaultCalendarMonth:E,referenceDate:x,reduceAnimations:w,onMonthChange:C,minDate:R,maxDate:O,shouldDisableDate:S,disablePast:h,disableFuture:g,timezone:Z}),ye=A&&j||R,qe=A&&j||O,Ve=`${a}-grid-label`,He=le!==null,fe=(r=(o=z==null?void 0:z.calendarHeader)!=null?o:B==null?void 0:B.CalendarHeader)!=null?r:Uj,je=We({elementType:fe,externalSlotProps:(i=ne==null?void 0:ne.calendarHeader)!=null?i:H==null?void 0:H.calendarHeader,additionalProps:{views:T,view:xe,currentMonth:$e.currentMonth,onViewChange:Ie,onMonthChange:(at,fn)=>he({newMonth:at,direction:fn}),minDate:ye,maxDate:qe,disabled:A,disablePast:h,disableFuture:g,reduceAnimations:w,timezone:Z,labelId:Ve,slots:z,slotProps:ne},ownerState:l}),ut=Me(at=>{const fn=s.startOfMonth(at),Jo=s.endOfMonth(at),jn=ve(at)?ol({utils:s,date:at,minDate:s.isBefore(R,fn)?fn:R,maxDate:s.isAfter(O,Jo)?Jo:O,disablePast:h,disableFuture:g,isDateDisabled:ve,timezone:Z}):at;jn?(Q(jn,"finish"),C==null||C(fn)):(U(),X(fn)),ke(jn,!0)}),wt=Me(at=>{const fn=s.startOfYear(at),Jo=s.endOfYear(at),jn=ve(at)?ol({utils:s,date:at,minDate:s.isBefore(R,fn)?fn:R,maxDate:s.isAfter(O,Jo)?Jo:O,disablePast:h,disableFuture:g,isDateDisabled:ve,timezone:Z}):at;jn?(Q(jn,"finish"),y==null||y(jn)):(U(),X(fn)),ke(jn,!0)}),vo=Me(at=>G(at&&B0(s,at,j??we),"finish",xe));v.useEffect(()=>{j!=null&&s.isValid(j)&&X(j)},[j]);const ji=l,sa=qj(ji),Ni={disablePast:h,disableFuture:g,maxDate:O,minDate:R},Vi={disableHighlightToday:L,readOnly:$,disabled:A,timezone:Z,gridLabelId:Ve},Xo=v.useRef(xe);v.useEffect(()=>{Xo.current!==xe&&(le===Xo.current&&pe(xe,!0),Xo.current=xe)},[le,pe,xe]);const aa=v.useMemo(()=>[j],[j]);return f.jsxs(Zj,b({ref:n,className:ue(sa.root,_),ownerState:ji},ee,{children:[f.jsx(fe,b({},je)),f.jsx(Xj,{reduceAnimations:w,className:sa.viewTransitionContainer,transKey:xe,ownerState:ji,children:f.jsxs("div",{children:[xe==="year"&&f.jsx($j,b({},Ni,Vi,{value:j,onChange:wt,shouldDisableYear:k,hasFocus:He,onFocusedViewChange:at=>pe("year",at),yearsPerRow:Se,referenceDate:we})),xe==="month"&&f.jsx(wj,b({},Ni,Vi,{hasFocus:He,className:_,value:j,onChange:ut,shouldDisableMonth:P,onFocusedViewChange:at=>pe("month",at),monthsPerRow:Ee,referenceDate:we})),xe==="day"&&f.jsx(ej,b({},$e,Ni,Vi,{onMonthSwitchingAnimationEnd:ge,onFocusedDayChange:ke,reduceAnimations:w,selectedDays:aa,onSelectedDaysChange:vo,shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:k,hasFocus:He,onFocusedViewChange:at=>pe("day",at),showDaysOutsideCurrentMonth:F,fixedWeekNumber:W,dayOfWeekFormatter:se,displayWeekNumber:me,components:B,componentsProps:H,slots:z,slotProps:ne,loading:ce,renderLoading:q}))]})})]}))});function Qj(e){return _e("MuiDatePickerToolbar",e)}Pe("MuiDatePickerToolbar",["root","title"]);const eN=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],tN=e=>{const{classes:t}=e;return De({root:["root"],title:["title"]},Qj,t)},nN=Y(hL,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rN=Y(Te,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>b({},e.isLandscape&&{margin:"auto 16px auto auto"})),oN=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:s,toolbarPlaceholder:a="",views:l}=r,c=te(r,eN),u=ct(),d=Zo(),p=tN(r),x=v.useMemo(()=>{if(!o)return a;const h=Zm(u,{format:s,views:l},!0);return u.formatByString(o,h)},[o,s,a,u,l]),g=r;return f.jsx(nN,b({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:i,className:p.root},c,{children:f.jsx(rN,{variant:"h4",align:i?"left":"center",ownerState:g,className:p.title,children:x})}))});function h4(e,t){var n,r,o,i;const s=ct(),a=oc(),l=Re({props:e,name:t}),c=v.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:b({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:Q6(l.components);return b({},l,{localeText:c},nA({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Qn(s,l.minDate,a.minDate),maxDate:Qn(s,l.maxDate,a.maxDate),slots:b({toolbar:oN},u),slotProps:(i=l.slotProps)!=null?i:l.componentsProps})}const iN=["props","getOpenDialogAriaText"],sN=["ownerState"],aN=["ownerState"],lN=e=>{var t,n,r,o,i;let{props:s,getOpenDialogAriaText:a}=e,l=te(e,iN);const{slots:c,slotProps:u,className:d,sx:p,format:x,formatDensity:g,timezone:h,name:E,label:m,inputRef:y,readOnly:C,disabled:w,autoFocus:S,localeText:P,reduceAnimations:k}=s,M=ct(),T=v.useRef(null),D=v.useRef(null),_=ho(),A=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:$,actions:R,hasUIView:O,layoutProps:L,renderCurrentView:V,shouldRestoreFocus:I,fieldProps:F}=s4(b({},l,{props:s,inputRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),W=(r=c.inputAdornment)!=null?r:Bm,se=We({elementType:W,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:s}),B=te(se,sN),H=(o=c.openPickerButton)!=null?o:ta,z=We({elementType:H,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||C,onClick:$?R.onClose:R.onOpen,"aria-label":a(F.value,M),edge:B.position},ownerState:s}),ne=te(z,aN),ce=c.openPickerIcon,q=c.field,me=We({elementType:q,externalSlotProps:u==null?void 0:u.field,additionalProps:b({},F,A&&{id:_},{readOnly:C,disabled:w,className:d,sx:p,format:x,formatDensity:g,timezone:h,label:m,name:E,autoFocus:S&&!s.open,focused:$?!0:void 0}),ownerState:s});O&&(me.InputProps=b({},me.InputProps,{ref:D,[`${B.position}Adornment`]:f.jsx(W,b({},B,{children:f.jsx(H,b({},ne,{children:f.jsx(ce,b({},u==null?void 0:u.openPickerIcon))}))}))}));const Se=b({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},me.slots),Ee=(i=c.layout)!=null?i:c4,re=tt(T,me.inputRef,y);let ee=_;A&&(m?ee=`${_}-label`:ee=void 0);const j=b({},u,{toolbar:b({},u==null?void 0:u.toolbar,{titleId:_}),popper:b({"aria-labelledby":ee},u==null?void 0:u.popper)});return{renderPicker:()=>f.jsxs(Gm,{localeText:P,children:[f.jsx(q,b({},me,{slots:Se,slotProps:j,inputRef:re})),f.jsx(cL,b({role:"dialog",placement:"bottom-start",anchorEl:D.current},R,{open:$,slots:c,slotProps:j,shouldRestoreFocus:I,reduceAnimations:k,children:f.jsx(Ee,b({},L,j==null?void 0:j.layout,{slots:c,slotProps:j,children:V()}))}))]})}},Ps=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minDate:x,maxDate:g,shouldDisableDate:h,shouldDisableMonth:E,shouldDisableYear:m,reduceAnimations:y,onMonthChange:C,monthsPerRow:w,onYearChange:S,yearsPerRow:P,defaultCalendarMonth:k,components:M,componentsProps:T,slots:D,slotProps:_,loading:A,renderLoading:$,disableHighlightToday:R,readOnly:O,disabled:L,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:I,sx:F,autoFocus:W,fixedWeekNumber:se,displayWeekNumber:B,timezone:H})=>f.jsx(Jj,{view:e,onViewChange:t,views:n.filter(wv),focusedView:r&&wv(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minDate:x,maxDate:g,shouldDisableDate:h,shouldDisableMonth:E,shouldDisableYear:m,reduceAnimations:y,onMonthChange:C,monthsPerRow:w,onYearChange:S,yearsPerRow:P,defaultCalendarMonth:k,components:M,componentsProps:T,slots:D,slotProps:_,loading:A,renderLoading:$,disableHighlightToday:R,readOnly:O,disabled:L,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:I,sx:F,autoFocus:W,fixedWeekNumber:se,displayWeekNumber:B,timezone:H}),m4=v.forwardRef(function(t,n){var r,o,i,s;const a=Zo(),l=ct(),c=h4(t,"MuiDesktopDatePicker"),u=b({day:Ps,month:Ps,year:Ps},c.viewRenderers),d=b({},c,{viewRenderers:u,format:Zm(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:b({openPickerIcon:YF,field:f4},c.slots),slotProps:b({},c.slotProps,{field:x=>{var g;return b({},Om((g=c.slotProps)==null?void 0:g.field,x),o4(c),{ref:n})},toolbar:b({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=lN({props:d,valueManager:uo,valueType:"date",getOpenDialogAriaText:(i=(s=d.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:zf});return p()});m4.propTypes={autoFocus:N.bool,className:N.string,closeOnSelect:N.bool,components:N.object,componentsProps:N.object,dayOfWeekFormatter:N.func,defaultCalendarMonth:N.any,defaultValue:N.any,disabled:N.bool,disableFuture:N.bool,disableHighlightToday:N.bool,disableOpenPicker:N.bool,disablePast:N.bool,displayWeekNumber:N.bool,fixedWeekNumber:N.number,format:N.string,formatDensity:N.oneOf(["dense","spacious"]),inputRef:xx,label:N.node,loading:N.bool,localeText:N.object,maxDate:N.any,minDate:N.any,monthsPerRow:N.oneOf([3,4]),name:N.string,onAccept:N.func,onChange:N.func,onClose:N.func,onError:N.func,onMonthChange:N.func,onOpen:N.func,onSelectedSectionsChange:N.func,onViewChange:N.func,onYearChange:N.func,open:N.bool,openTo:N.oneOf(["day","month","year"]),orientation:N.oneOf(["landscape","portrait"]),readOnly:N.bool,reduceAnimations:N.bool,referenceDate:N.any,renderLoading:N.func,selectedSections:N.oneOfType([N.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),N.number,N.shape({endIndex:N.number.isRequired,startIndex:N.number.isRequired})]),shouldDisableDate:N.func,shouldDisableMonth:N.func,shouldDisableYear:N.func,showDaysOutsideCurrentMonth:N.bool,slotProps:N.object,slots:N.object,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object]),timezone:N.string,value:N.any,view:N.oneOf(["day","month","year"]),viewRenderers:N.shape({day:N.func,month:N.func,year:N.func}),views:N.arrayOf(N.oneOf(["day","month","year"]).isRequired),yearsPerRow:N.oneOf([3,4])};const cN=["props","getOpenDialogAriaText"],uN=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:i}=e,s=te(e,cN);const{slots:a,slotProps:l,className:c,sx:u,format:d,formatDensity:p,timezone:x,name:g,label:h,inputRef:E,readOnly:m,disabled:y,localeText:C}=o,w=ct(),S=v.useRef(null),P=ho(),k=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:M,actions:T,layoutProps:D,renderCurrentView:_,fieldProps:A}=s4(b({},s,{props:o,inputRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),$=a.field,R=We({elementType:$,externalSlotProps:l==null?void 0:l.field,additionalProps:b({},A,k&&{id:P},!(y||m)&&{onClick:T.onOpen,onKeyDown:zA(T.onOpen)},{readOnly:m??!0,disabled:y,className:c,sx:u,format:d,formatDensity:p,timezone:x,label:h,name:g}),ownerState:o});R.inputProps=b({},R.inputProps,{"aria-label":i(A.value,w)});const O=b({textField:a.textField},R.slots),L=(r=a.layout)!=null?r:c4,V=tt(S,R.inputRef,E);let I=P;k&&(h?I=`${P}-label`:I=void 0);const F=b({},l,{toolbar:b({},l==null?void 0:l.toolbar,{titleId:P}),mobilePaper:b({"aria-labelledby":I},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>f.jsxs(Gm,{localeText:C,children:[f.jsx($,b({},R,{slots:O,slotProps:F,inputRef:V})),f.jsx(JA,b({},T,{open:M,slots:a,slotProps:F,children:f.jsx(L,b({},D,F==null?void 0:F.layout,{slots:a,slotProps:F,children:_()}))}))]})}},g4=v.forwardRef(function(t,n){var r,o,i;const s=Zo(),a=ct(),l=h4(t,"MuiMobileDatePicker"),c=b({day:Ps,month:Ps,year:Ps},l.viewRenderers),u=b({},l,{viewRenderers:c,format:Zm(a,l,!1),slots:b({field:f4},l.slots),slotProps:b({},l.slotProps,{field:p=>{var x;return b({},Om((x=l.slotProps)==null?void 0:x.field,p),o4(l),{ref:n})},toolbar:b({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=uN({props:u,valueManager:uo,valueType:"date",getOpenDialogAriaText:(o=(i=u.localeText)==null?void 0:i.openDatePickerDialogue)!=null?o:s.openDatePickerDialogue,validator:zf});return d()});g4.propTypes={autoFocus:N.bool,className:N.string,closeOnSelect:N.bool,components:N.object,componentsProps:N.object,dayOfWeekFormatter:N.func,defaultCalendarMonth:N.any,defaultValue:N.any,disabled:N.bool,disableFuture:N.bool,disableHighlightToday:N.bool,disableOpenPicker:N.bool,disablePast:N.bool,displayWeekNumber:N.bool,fixedWeekNumber:N.number,format:N.string,formatDensity:N.oneOf(["dense","spacious"]),inputRef:xx,label:N.node,loading:N.bool,localeText:N.object,maxDate:N.any,minDate:N.any,monthsPerRow:N.oneOf([3,4]),name:N.string,onAccept:N.func,onChange:N.func,onClose:N.func,onError:N.func,onMonthChange:N.func,onOpen:N.func,onSelectedSectionsChange:N.func,onViewChange:N.func,onYearChange:N.func,open:N.bool,openTo:N.oneOf(["day","month","year"]),orientation:N.oneOf(["landscape","portrait"]),readOnly:N.bool,reduceAnimations:N.bool,referenceDate:N.any,renderLoading:N.func,selectedSections:N.oneOfType([N.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),N.number,N.shape({endIndex:N.number.isRequired,startIndex:N.number.isRequired})]),shouldDisableDate:N.func,shouldDisableMonth:N.func,shouldDisableYear:N.func,showDaysOutsideCurrentMonth:N.bool,slotProps:N.object,slots:N.object,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object]),timezone:N.string,value:N.any,view:N.oneOf(["day","month","year"]),viewRenderers:N.shape({day:N.func,month:N.func,year:N.func}),views:N.arrayOf(N.oneOf(["day","month","year"]).isRequired),yearsPerRow:N.oneOf([3,4])};const dN=["desktopModeMediaQuery"],fN=v.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=BA}=r,i=te(r,dN);return p6(o,{defaultMatches:!0})?f.jsx(m4,b({ref:n},i)):f.jsx(g4,b({ref:n},i))});//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var y4;function de(){return y4.apply(null,arguments)}function pN(e){y4=e}function mr(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function xi(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Xe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function eg(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Xe(e,t))return!1;return!0}function pn(e){return e===void 0}function fo(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function sc(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function v4(e,t){var n=[],r,o=e.length;for(r=0;r<o;++r)n.push(t(e[r],r));return n}function Ro(e,t){for(var n in t)Xe(t,n)&&(e[n]=t[n]);return Xe(t,"toString")&&(e.toString=t.toString),Xe(t,"valueOf")&&(e.valueOf=t.valueOf),e}function jr(e,t,n,r){return z4(e,t,n,r,!0).utc()}function hN(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Ae(e){return e._pf==null&&(e._pf=hN()),e._pf}var U0;Array.prototype.some?U0=Array.prototype.some:U0=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function tg(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Ae(e),n=U0.call(t.parsedDateParts,function(o){return o!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Bf(e){var t=jr(NaN);return e!=null?Ro(Ae(t),e):Ae(t).userInvalidated=!0,t}var _v=de.momentProperties=[],ah=!1;function ng(e,t){var n,r,o,i=_v.length;if(pn(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),pn(t._i)||(e._i=t._i),pn(t._f)||(e._f=t._f),pn(t._l)||(e._l=t._l),pn(t._strict)||(e._strict=t._strict),pn(t._tzm)||(e._tzm=t._tzm),pn(t._isUTC)||(e._isUTC=t._isUTC),pn(t._offset)||(e._offset=t._offset),pn(t._pf)||(e._pf=Ae(t)),pn(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)r=_v[n],o=t[r],pn(o)||(e[r]=o);return e}function ac(e){ng(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ah===!1&&(ah=!0,de.updateOffset(this),ah=!1)}function gr(e){return e instanceof ac||e!=null&&e._isAMomentObject!=null}function x4(e){de.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function nr(e,t){var n=!0;return Ro(function(){if(de.deprecationHandler!=null&&de.deprecationHandler(null,e),n){var r=[],o,i,s,a=arguments.length;for(i=0;i<a;i++){if(o="",typeof arguments[i]=="object"){o+=`
[`+i+"] ";for(s in arguments[0])Xe(arguments[0],s)&&(o+=s+": "+arguments[0][s]+", ");o=o.slice(0,-2)}else o=arguments[i];r.push(o)}x4(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Ov={};function C4(e,t){de.deprecationHandler!=null&&de.deprecationHandler(e,t),Ov[e]||(x4(t),Ov[e]=!0)}de.suppressDeprecationWarnings=!1;de.deprecationHandler=null;function Nr(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function mN(e){var t,n;for(n in e)Xe(e,n)&&(t=e[n],Nr(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y0(e,t){var n=Ro({},e),r;for(r in t)Xe(t,r)&&(xi(e[r])&&xi(t[r])?(n[r]={},Ro(n[r],e[r]),Ro(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Xe(e,r)&&!Xe(t,r)&&xi(e[r])&&(n[r]=Ro({},n[r]));return n}function rg(e){e!=null&&this.set(e)}var G0;Object.keys?G0=Object.keys:G0=function(e){var t,n=[];for(t in e)Xe(e,t)&&n.push(t);return n};var gN={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function yN(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Nr(r)?r.call(t,n):r}function Fr(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var og=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Hc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,lh={},Ms={};function Oe(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(Ms[e]=o),t&&(Ms[t[0]]=function(){return Fr(o.apply(this,arguments),t[1],t[2])}),n&&(Ms[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function vN(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function xN(e){var t=e.match(og),n,r;for(n=0,r=t.length;n<r;n++)Ms[t[n]]?t[n]=Ms[t[n]]:t[n]=vN(t[n]);return function(o){var i="",s;for(s=0;s<r;s++)i+=Nr(t[s])?t[s].call(o,e):t[s];return i}}function wu(e,t){return e.isValid()?(t=b4(t,e.localeData()),lh[t]=lh[t]||xN(t),lh[t](e)):e.localeData().invalidDate()}function b4(e,t){var n=5;function r(o){return t.longDateFormat(o)||o}for(Hc.lastIndex=0;n>=0&&Hc.test(e);)e=e.replace(Hc,r),Hc.lastIndex=0,n-=1;return e}var CN={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function bN(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(og).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var wN="Invalid date";function SN(){return this._invalidDate}var kN="%d",EN=/\d{1,2}/;function PN(e){return this._ordinal.replace("%d",e)}var MN={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function TN(e,t,n,r){var o=this._relativeTime[n];return Nr(o)?o(e,t,n,r):o.replace(/%d/i,e)}function RN(e,t){var n=this._relativeTime[e>0?"future":"past"];return Nr(n)?n(t):n.replace(/%s/i,t)}var Iv={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function rr(e){return typeof e=="string"?Iv[e]||Iv[e.toLowerCase()]:void 0}function ig(e){var t={},n,r;for(r in e)Xe(e,r)&&(n=rr(r),n&&(t[n]=e[r]));return t}var DN={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function _N(e){var t=[],n;for(n in e)Xe(e,n)&&t.push({unit:n,priority:DN[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var w4=/\d/,Ln=/\d\d/,S4=/\d{3}/,sg=/\d{4}/,Wf=/[+-]?\d{6}/,ht=/\d\d?/,k4=/\d\d\d\d?/,E4=/\d\d\d\d\d\d?/,Hf=/\d{1,3}/,ag=/\d{1,4}/,Uf=/[+-]?\d{1,6}/,ra=/\d+/,Yf=/[+-]?\d+/,ON=/Z|[+-]\d\d:?\d\d/gi,Gf=/Z|[+-]\d\d(?::?\d\d)?/gi,IN=/[+-]?\d+(\.\d{1,3})?/,lc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oa=/^[1-9]\d?/,lg=/^([1-9]\d|\d)/,ud;ud={};function Ce(e,t,n){ud[e]=Nr(t)?t:function(r,o){return r&&n?n:t}}function $N(e,t){return Xe(ud,e)?ud[e](t._strict,t._locale):new RegExp(FN(e))}function FN(e){return ro(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function ro(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Hn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ze(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Hn(t)),n}var q0={};function st(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),fo(t)&&(r=function(i,s){s[t]=ze(i)}),o=e.length,n=0;n<o;n++)q0[e[n]]=r}function cc(e,t){st(e,function(n,r,o,i){o._w=o._w||{},t(n,o._w,o,i)})}function AN(e,t,n){t!=null&&Xe(q0,e)&&q0[e](t,n._a,n,e)}function qf(e){return e%4===0&&e%100!==0||e%400===0}var rn=0,Jr=1,Er=2,At=3,ur=4,Qr=5,hi=6,LN=7,jN=8;Oe("Y",0,0,function(){var e=this.year();return e<=9999?Fr(e,4):"+"+e});Oe(0,["YY",2],0,function(){return this.year()%100});Oe(0,["YYYY",4],0,"year");Oe(0,["YYYYY",5],0,"year");Oe(0,["YYYYYY",6,!0],0,"year");Ce("Y",Yf);Ce("YY",ht,Ln);Ce("YYYY",ag,sg);Ce("YYYYY",Uf,Wf);Ce("YYYYYY",Uf,Wf);st(["YYYYY","YYYYYY"],rn);st("YYYY",function(e,t){t[rn]=e.length===2?de.parseTwoDigitYear(e):ze(e)});st("YY",function(e,t){t[rn]=de.parseTwoDigitYear(e)});st("Y",function(e,t){t[rn]=parseInt(e,10)});function il(e){return qf(e)?366:365}de.parseTwoDigitYear=function(e){return ze(e)+(ze(e)>68?1900:2e3)};var P4=ia("FullYear",!0);function NN(){return qf(this.year())}function ia(e,t){return function(n){return n!=null?(M4(this,e,n),de.updateOffset(this,t),this):$l(this,e)}}function $l(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function M4(e,t,n){var r,o,i,s,a;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,s=e.month(),a=e.date(),a=a===29&&s===1&&!qf(i)?28:a,o?r.setUTCFullYear(i,s,a):r.setFullYear(i,s,a)}}function VN(e){return e=rr(e),Nr(this[e])?this[e]():this}function zN(e,t){if(typeof e=="object"){e=ig(e);var n=_N(e),r,o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(e=rr(e),Nr(this[e]))return this[e](t);return this}function BN(e,t){return(e%t+t)%t}var Mt;Array.prototype.indexOf?Mt=Array.prototype.indexOf:Mt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function cg(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=BN(t,12);return e+=(t-n)/12,n===1?qf(e)?29:28:31-n%7%2}Oe("M",["MM",2],"Mo",function(){return this.month()+1});Oe("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Oe("MMMM",0,0,function(e){return this.localeData().months(this,e)});Ce("M",ht,oa);Ce("MM",ht,Ln);Ce("MMM",function(e,t){return t.monthsShortRegex(e)});Ce("MMMM",function(e,t){return t.monthsRegex(e)});st(["M","MM"],function(e,t){t[Jr]=ze(e)-1});st(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);o!=null?t[Jr]=o:Ae(n).invalidMonth=e});var WN="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),T4="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),R4=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,HN=lc,UN=lc;function YN(e,t){return e?mr(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||R4).test(t)?"format":"standalone"][e.month()]:mr(this._months)?this._months:this._months.standalone}function GN(e,t){return e?mr(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[R4.test(t)?"format":"standalone"][e.month()]:mr(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function qN(e,t,n){var r,o,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=jr([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(o=Mt.call(this._shortMonthsParse,s),o!==-1?o:null):(o=Mt.call(this._longMonthsParse,s),o!==-1?o:null):t==="MMM"?(o=Mt.call(this._shortMonthsParse,s),o!==-1?o:(o=Mt.call(this._longMonthsParse,s),o!==-1?o:null)):(o=Mt.call(this._longMonthsParse,s),o!==-1?o:(o=Mt.call(this._shortMonthsParse,s),o!==-1?o:null))}function KN(e,t,n){var r,o,i;if(this._monthsParseExact)return qN.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=jr([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function D4(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ze(t);else if(t=e.localeData().monthsParse(t),!fo(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,cg(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function _4(e){return e!=null?(D4(this,e),de.updateOffset(this,!0),this):$l(this,"Month")}function ZN(){return cg(this.year(),this.month())}function XN(e){return this._monthsParseExact?(Xe(this,"_monthsRegex")||O4.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Xe(this,"_monthsShortRegex")||(this._monthsShortRegex=HN),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function JN(e){return this._monthsParseExact?(Xe(this,"_monthsRegex")||O4.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Xe(this,"_monthsRegex")||(this._monthsRegex=UN),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function O4(){function e(l,c){return c.length-l.length}var t=[],n=[],r=[],o,i,s,a;for(o=0;o<12;o++)i=jr([2e3,o]),s=ro(this.monthsShort(i,"")),a=ro(this.months(i,"")),t.push(s),n.push(a),r.push(a),r.push(s);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function QN(e,t,n,r,o,i,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,o,i,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,o,i,s),a}function Fl(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function dd(e,t,n){var r=7+t-n,o=(7+Fl(e,0,r).getUTCDay()-t)%7;return-o+r-1}function I4(e,t,n,r,o){var i=(7+n-r)%7,s=dd(e,r,o),a=1+7*(t-1)+i+s,l,c;return a<=0?(l=e-1,c=il(l)+a):a>il(e)?(l=e+1,c=a-il(e)):(l=e,c=a),{year:l,dayOfYear:c}}function Al(e,t,n){var r=dd(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,s;return o<1?(s=e.year()-1,i=o+oo(s,t,n)):o>oo(e.year(),t,n)?(i=o-oo(e.year(),t,n),s=e.year()+1):(s=e.year(),i=o),{week:i,year:s}}function oo(e,t,n){var r=dd(e,t,n),o=dd(e+1,t,n);return(il(e)-r+o)/7}Oe("w",["ww",2],"wo","week");Oe("W",["WW",2],"Wo","isoWeek");Ce("w",ht,oa);Ce("ww",ht,Ln);Ce("W",ht,oa);Ce("WW",ht,Ln);cc(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ze(e)});function eV(e){return Al(e,this._week.dow,this._week.doy).week}var tV={dow:0,doy:6};function nV(){return this._week.dow}function rV(){return this._week.doy}function oV(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function iV(e){var t=Al(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Oe("d",0,"do","day");Oe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Oe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Oe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Oe("e",0,0,"weekday");Oe("E",0,0,"isoWeekday");Ce("d",ht);Ce("e",ht);Ce("E",ht);Ce("dd",function(e,t){return t.weekdaysMinRegex(e)});Ce("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ce("dddd",function(e,t){return t.weekdaysRegex(e)});cc(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:Ae(n).invalidWeekday=e});cc(["d","e","E"],function(e,t,n,r){t[r]=ze(e)});function sV(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function aV(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ug(e,t){return e.slice(t,7).concat(e.slice(0,t))}var lV="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$4="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),cV="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),uV=lc,dV=lc,fV=lc;function pV(e,t){var n=mr(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ug(n,this._week.dow):e?n[e.day()]:n}function hV(e){return e===!0?ug(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function mV(e){return e===!0?ug(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function gV(e,t,n){var r,o,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=jr([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=Mt.call(this._weekdaysParse,s),o!==-1?o:null):t==="ddd"?(o=Mt.call(this._shortWeekdaysParse,s),o!==-1?o:null):(o=Mt.call(this._minWeekdaysParse,s),o!==-1?o:null):t==="dddd"?(o=Mt.call(this._weekdaysParse,s),o!==-1||(o=Mt.call(this._shortWeekdaysParse,s),o!==-1)?o:(o=Mt.call(this._minWeekdaysParse,s),o!==-1?o:null)):t==="ddd"?(o=Mt.call(this._shortWeekdaysParse,s),o!==-1||(o=Mt.call(this._weekdaysParse,s),o!==-1)?o:(o=Mt.call(this._minWeekdaysParse,s),o!==-1?o:null)):(o=Mt.call(this._minWeekdaysParse,s),o!==-1||(o=Mt.call(this._weekdaysParse,s),o!==-1)?o:(o=Mt.call(this._shortWeekdaysParse,s),o!==-1?o:null))}function yV(e,t,n){var r,o,i;if(this._weekdaysParseExact)return gV.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=jr([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function vV(e){if(!this.isValid())return e!=null?this:NaN;var t=$l(this,"Day");return e!=null?(e=sV(e,this.localeData()),this.add(e-t,"d")):t}function xV(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function CV(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=aV(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function bV(e){return this._weekdaysParseExact?(Xe(this,"_weekdaysRegex")||dg.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Xe(this,"_weekdaysRegex")||(this._weekdaysRegex=uV),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function wV(e){return this._weekdaysParseExact?(Xe(this,"_weekdaysRegex")||dg.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Xe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=dV),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function SV(e){return this._weekdaysParseExact?(Xe(this,"_weekdaysRegex")||dg.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Xe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=fV),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function dg(){function e(u,d){return d.length-u.length}var t=[],n=[],r=[],o=[],i,s,a,l,c;for(i=0;i<7;i++)s=jr([2e3,1]).day(i),a=ro(this.weekdaysMin(s,"")),l=ro(this.weekdaysShort(s,"")),c=ro(this.weekdays(s,"")),t.push(a),n.push(l),r.push(c),o.push(a),o.push(l),o.push(c);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function fg(){return this.hours()%12||12}function kV(){return this.hours()||24}Oe("H",["HH",2],0,"hour");Oe("h",["hh",2],0,fg);Oe("k",["kk",2],0,kV);Oe("hmm",0,0,function(){return""+fg.apply(this)+Fr(this.minutes(),2)});Oe("hmmss",0,0,function(){return""+fg.apply(this)+Fr(this.minutes(),2)+Fr(this.seconds(),2)});Oe("Hmm",0,0,function(){return""+this.hours()+Fr(this.minutes(),2)});Oe("Hmmss",0,0,function(){return""+this.hours()+Fr(this.minutes(),2)+Fr(this.seconds(),2)});function F4(e,t){Oe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}F4("a",!0);F4("A",!1);function A4(e,t){return t._meridiemParse}Ce("a",A4);Ce("A",A4);Ce("H",ht,lg);Ce("h",ht,oa);Ce("k",ht,oa);Ce("HH",ht,Ln);Ce("hh",ht,Ln);Ce("kk",ht,Ln);Ce("hmm",k4);Ce("hmmss",E4);Ce("Hmm",k4);Ce("Hmmss",E4);st(["H","HH"],At);st(["k","kk"],function(e,t,n){var r=ze(e);t[At]=r===24?0:r});st(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});st(["h","hh"],function(e,t,n){t[At]=ze(e),Ae(n).bigHour=!0});st("hmm",function(e,t,n){var r=e.length-2;t[At]=ze(e.substr(0,r)),t[ur]=ze(e.substr(r)),Ae(n).bigHour=!0});st("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[At]=ze(e.substr(0,r)),t[ur]=ze(e.substr(r,2)),t[Qr]=ze(e.substr(o)),Ae(n).bigHour=!0});st("Hmm",function(e,t,n){var r=e.length-2;t[At]=ze(e.substr(0,r)),t[ur]=ze(e.substr(r))});st("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[At]=ze(e.substr(0,r)),t[ur]=ze(e.substr(r,2)),t[Qr]=ze(e.substr(o))});function EV(e){return(e+"").toLowerCase().charAt(0)==="p"}var PV=/[ap]\.?m?\.?/i,MV=ia("Hours",!0);function TV(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var L4={calendar:gN,longDateFormat:CN,invalidDate:wN,ordinal:kN,dayOfMonthOrdinalParse:EN,relativeTime:MN,months:WN,monthsShort:T4,week:tV,weekdays:lV,weekdaysMin:cV,weekdaysShort:$4,meridiemParse:PV},gt={},Ra={},Ll;function RV(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function $v(e){return e&&e.toLowerCase().replace("_","-")}function DV(e){for(var t=0,n,r,o,i;t<e.length;){for(i=$v(e[t]).split("-"),n=i.length,r=$v(e[t+1]),r=r?r.split("-"):null;n>0;){if(o=Kf(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&RV(i,r)>=n-1)break;n--}t++}return Ll}function _V(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Kf(e){var t=null,n;if(gt[e]===void 0&&typeof module<"u"&&module&&module.exports&&_V(e))try{t=Ll._abbr,n=require,n("./locale/"+e),No(t)}catch{gt[e]=null}return gt[e]}function No(e,t){var n;return e&&(pn(t)?n=go(e):n=pg(e,t),n?Ll=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ll._abbr}function pg(e,t){if(t!==null){var n,r=L4;if(t.abbr=e,gt[e]!=null)C4("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=gt[e]._config;else if(t.parentLocale!=null)if(gt[t.parentLocale]!=null)r=gt[t.parentLocale]._config;else if(n=Kf(t.parentLocale),n!=null)r=n._config;else return Ra[t.parentLocale]||(Ra[t.parentLocale]=[]),Ra[t.parentLocale].push({name:e,config:t}),null;return gt[e]=new rg(Y0(r,t)),Ra[e]&&Ra[e].forEach(function(o){pg(o.name,o.config)}),No(e),gt[e]}else return delete gt[e],null}function OV(e,t){if(t!=null){var n,r,o=L4;gt[e]!=null&&gt[e].parentLocale!=null?gt[e].set(Y0(gt[e]._config,t)):(r=Kf(e),r!=null&&(o=r._config),t=Y0(o,t),r==null&&(t.abbr=e),n=new rg(t),n.parentLocale=gt[e],gt[e]=n),No(e)}else gt[e]!=null&&(gt[e].parentLocale!=null?(gt[e]=gt[e].parentLocale,e===No()&&No(e)):gt[e]!=null&&delete gt[e]);return gt[e]}function go(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ll;if(!mr(e)){if(t=Kf(e),t)return t;e=[e]}return DV(e)}function IV(){return G0(gt)}function hg(e){var t,n=e._a;return n&&Ae(e).overflow===-2&&(t=n[Jr]<0||n[Jr]>11?Jr:n[Er]<1||n[Er]>cg(n[rn],n[Jr])?Er:n[At]<0||n[At]>24||n[At]===24&&(n[ur]!==0||n[Qr]!==0||n[hi]!==0)?At:n[ur]<0||n[ur]>59?ur:n[Qr]<0||n[Qr]>59?Qr:n[hi]<0||n[hi]>999?hi:-1,Ae(e)._overflowDayOfYear&&(t<rn||t>Er)&&(t=Er),Ae(e)._overflowWeeks&&t===-1&&(t=LN),Ae(e)._overflowWeekday&&t===-1&&(t=jN),Ae(e).overflow=t),e}var $V=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,FV=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,AV=/Z|[+-]\d\d(?::?\d\d)?/,Uc=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ch=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],LV=/^\/?Date\((-?\d+)/i,jV=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,NV={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function j4(e){var t,n,r=e._i,o=$V.exec(r)||FV.exec(r),i,s,a,l,c=Uc.length,u=ch.length;if(o){for(Ae(e).iso=!0,t=0,n=c;t<n;t++)if(Uc[t][1].exec(o[1])){s=Uc[t][0],i=Uc[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(o[3]){for(t=0,n=u;t<n;t++)if(ch[t][1].exec(o[3])){a=(o[2]||" ")+ch[t][0];break}if(a==null){e._isValid=!1;return}}if(!i&&a!=null){e._isValid=!1;return}if(o[4])if(AV.exec(o[4]))l="Z";else{e._isValid=!1;return}e._f=s+(a||"")+(l||""),gg(e)}else e._isValid=!1}function VV(e,t,n,r,o,i){var s=[zV(e),T4.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&s.push(parseInt(i,10)),s}function zV(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function BV(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function WV(e,t,n){if(e){var r=$4.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return Ae(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function HV(e,t,n){if(e)return NV[e];if(t)return 0;var r=parseInt(n,10),o=r%100,i=(r-o)/100;return i*60+o}function N4(e){var t=jV.exec(BV(e._i)),n;if(t){if(n=VV(t[4],t[3],t[2],t[5],t[6],t[7]),!WV(t[1],n,e))return;e._a=n,e._tzm=HV(t[8],t[9],t[10]),e._d=Fl.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Ae(e).rfc2822=!0}else e._isValid=!1}function UV(e){var t=LV.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(j4(e),e._isValid===!1)delete e._isValid;else return;if(N4(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:de.createFromInputFallback(e)}de.createFromInputFallback=nr("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ts(e,t,n){return e??t??n}function YV(e){var t=new Date(de.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function mg(e){var t,n,r=[],o,i,s;if(!e._d){for(o=YV(e),e._w&&e._a[Er]==null&&e._a[Jr]==null&&GV(e),e._dayOfYear!=null&&(s=ts(e._a[rn],o[rn]),(e._dayOfYear>il(s)||e._dayOfYear===0)&&(Ae(e)._overflowDayOfYear=!0),n=Fl(s,0,e._dayOfYear),e._a[Jr]=n.getUTCMonth(),e._a[Er]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[At]===24&&e._a[ur]===0&&e._a[Qr]===0&&e._a[hi]===0&&(e._nextDay=!0,e._a[At]=0),e._d=(e._useUTC?Fl:QN).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[At]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Ae(e).weekdayMismatch=!0)}}function GV(e){var t,n,r,o,i,s,a,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,s=4,n=ts(t.GG,e._a[rn],Al(pt(),1,4).year),r=ts(t.W,1),o=ts(t.E,1),(o<1||o>7)&&(l=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,c=Al(pt(),i,s),n=ts(t.gg,e._a[rn],c.year),r=ts(t.w,c.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>oo(n,i,s)?Ae(e)._overflowWeeks=!0:l!=null?Ae(e)._overflowWeekday=!0:(a=I4(n,r,o,i,s),e._a[rn]=a.year,e._dayOfYear=a.dayOfYear)}de.ISO_8601=function(){};de.RFC_2822=function(){};function gg(e){if(e._f===de.ISO_8601){j4(e);return}if(e._f===de.RFC_2822){N4(e);return}e._a=[],Ae(e).empty=!0;var t=""+e._i,n,r,o,i,s,a=t.length,l=0,c,u;for(o=b4(e._f,e._locale).match(og)||[],u=o.length,n=0;n<u;n++)i=o[n],r=(t.match($N(i,e))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&Ae(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Ms[i]?(r?Ae(e).empty=!1:Ae(e).unusedTokens.push(i),AN(i,r,e)):e._strict&&!r&&Ae(e).unusedTokens.push(i);Ae(e).charsLeftOver=a-l,t.length>0&&Ae(e).unusedInput.push(t),e._a[At]<=12&&Ae(e).bigHour===!0&&e._a[At]>0&&(Ae(e).bigHour=void 0),Ae(e).parsedDateParts=e._a.slice(0),Ae(e).meridiem=e._meridiem,e._a[At]=qV(e._locale,e._a[At],e._meridiem),c=Ae(e).era,c!==null&&(e._a[rn]=e._locale.erasConvertYear(c,e._a[rn])),mg(e),hg(e)}function qV(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function KV(e){var t,n,r,o,i,s,a=!1,l=e._f.length;if(l===0){Ae(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<l;o++)i=0,s=!1,t=ng({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],gg(t),tg(t)&&(s=!0),i+=Ae(t).charsLeftOver,i+=Ae(t).unusedTokens.length*10,Ae(t).score=i,a?i<r&&(r=i,n=t):(r==null||i<r||s)&&(r=i,n=t,s&&(a=!0));Ro(e,n||t)}function ZV(e){if(!e._d){var t=ig(e._i),n=t.day===void 0?t.date:t.day;e._a=v4([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),mg(e)}}function XV(e){var t=new ac(hg(V4(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function V4(e){var t=e._i,n=e._f;return e._locale=e._locale||go(e._l),t===null||n===void 0&&t===""?Bf({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),gr(t)?new ac(hg(t)):(sc(t)?e._d=t:mr(n)?KV(e):n?gg(e):JV(e),tg(e)||(e._d=null),e))}function JV(e){var t=e._i;pn(t)?e._d=new Date(de.now()):sc(t)?e._d=new Date(t.valueOf()):typeof t=="string"?UV(e):mr(t)?(e._a=v4(t.slice(0),function(n){return parseInt(n,10)}),mg(e)):xi(t)?ZV(e):fo(t)?e._d=new Date(t):de.createFromInputFallback(e)}function z4(e,t,n,r,o){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(xi(e)&&eg(e)||mr(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=n,i._i=e,i._f=t,i._strict=r,XV(i)}function pt(e,t,n,r){return z4(e,t,n,r,!1)}var QV=nr("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=pt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Bf()}),ez=nr("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=pt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Bf()});function B4(e,t){var n,r;if(t.length===1&&mr(t[0])&&(t=t[0]),!t.length)return pt();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function tz(){var e=[].slice.call(arguments,0);return B4("isBefore",e)}function nz(){var e=[].slice.call(arguments,0);return B4("isAfter",e)}var rz=function(){return Date.now?Date.now():+new Date},Da=["year","quarter","month","week","day","hour","minute","second","millisecond"];function oz(e){var t,n=!1,r,o=Da.length;for(t in e)if(Xe(e,t)&&!(Mt.call(Da,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<o;++r)if(e[Da[r]]){if(n)return!1;parseFloat(e[Da[r]])!==ze(e[Da[r]])&&(n=!0)}return!0}function iz(){return this._isValid}function sz(){return yr(NaN)}function Zf(e){var t=ig(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=oz(t),this._milliseconds=+u+c*1e3+l*6e4+a*1e3*60*60,this._days=+s+i*7,this._months=+o+r*3+n*12,this._data={},this._locale=go(),this._bubble()}function Su(e){return e instanceof Zf}function K0(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function az(e,t,n){var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,s;for(s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&ze(e[s])!==ze(t[s]))&&i++;return i+o}function W4(e,t){Oe(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Fr(~~(n/60),2)+t+Fr(~~n%60,2)})}W4("Z",":");W4("ZZ","");Ce("Z",Gf);Ce("ZZ",Gf);st(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=yg(Gf,e)});var lz=/([\+\-]|\d\d)/gi;function yg(e,t){var n=(t||"").match(e),r,o,i;return n===null?null:(r=n[n.length-1]||[],o=(r+"").match(lz)||["-",0,0],i=+(o[1]*60)+ze(o[2]),i===0?0:o[0]==="+"?i:-i)}function vg(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(gr(e)||sc(e)?e.valueOf():pt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),de.updateOffset(n,!1),n):pt(e).local()}function Z0(e){return-Math.round(e._d.getTimezoneOffset())}de.updateOffset=function(){};function cz(e,t,n){var r=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=yg(Gf,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(o=Z0(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?Y4(this,yr(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,de.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Z0(this)}function uz(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function dz(e){return this.utcOffset(0,e)}function fz(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Z0(this),"m")),this}function pz(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=yg(ON,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function hz(e){return this.isValid()?(e=e?pt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function mz(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function gz(){if(!pn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ng(e,this),e=V4(e),e._a?(t=e._isUTC?jr(e._a):pt(e._a),this._isDSTShifted=this.isValid()&&az(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function yz(){return this.isValid()?!this._isUTC:!1}function vz(){return this.isValid()?this._isUTC:!1}function H4(){return this.isValid()?this._isUTC&&this._offset===0:!1}var xz=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Cz=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function yr(e,t){var n=e,r=null,o,i,s;return Su(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:fo(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=xz.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:ze(r[Er])*o,h:ze(r[At])*o,m:ze(r[ur])*o,s:ze(r[Qr])*o,ms:ze(K0(r[hi]*1e3))*o}):(r=Cz.exec(e))?(o=r[1]==="-"?-1:1,n={y:ti(r[2],o),M:ti(r[3],o),w:ti(r[4],o),d:ti(r[5],o),h:ti(r[6],o),m:ti(r[7],o),s:ti(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=bz(pt(n.from),pt(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),i=new Zf(n),Su(e)&&Xe(e,"_locale")&&(i._locale=e._locale),Su(e)&&Xe(e,"_isValid")&&(i._isValid=e._isValid),i}yr.fn=Zf.prototype;yr.invalid=sz;function ti(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Fv(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function bz(e,t){var n;return e.isValid()&&t.isValid()?(t=vg(t,e),e.isBefore(t)?n=Fv(e,t):(n=Fv(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function U4(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(C4(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),o=yr(n,r),Y4(this,o,e),this}}function Y4(e,t,n,r){var o=t._milliseconds,i=K0(t._days),s=K0(t._months);e.isValid()&&(r=r??!0,s&&D4(e,$l(e,"Month")+s*n),i&&M4(e,"Date",$l(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&de.updateOffset(e,i||s))}var wz=U4(1,"add"),Sz=U4(-1,"subtract");function G4(e){return typeof e=="string"||e instanceof String}function kz(e){return gr(e)||sc(e)||G4(e)||fo(e)||Pz(e)||Ez(e)||e===null||e===void 0}function Ez(e){var t=xi(e)&&!eg(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,s=r.length;for(o=0;o<s;o+=1)i=r[o],n=n||Xe(e,i);return t&&n}function Pz(e){var t=mr(e),n=!1;return t&&(n=e.filter(function(r){return!fo(r)&&G4(e)}).length===0),t&&n}function Mz(e){var t=xi(e)&&!eg(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,i;for(o=0;o<r.length;o+=1)i=r[o],n=n||Xe(e,i);return t&&n}function Tz(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Rz(e,t){arguments.length===1&&(arguments[0]?kz(arguments[0])?(e=arguments[0],t=void 0):Mz(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||pt(),r=vg(n,this).startOf("day"),o=de.calendarFormat(this,r)||"sameElse",i=t&&(Nr(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,pt(n)))}function Dz(){return new ac(this)}function _z(e,t){var n=gr(e)?e:pt(e);return this.isValid()&&n.isValid()?(t=rr(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Oz(e,t){var n=gr(e)?e:pt(e);return this.isValid()&&n.isValid()?(t=rr(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Iz(e,t,n,r){var o=gr(e)?e:pt(e),i=gr(t)?t:pt(t);return this.isValid()&&o.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function $z(e,t){var n=gr(e)?e:pt(e),r;return this.isValid()&&n.isValid()?(t=rr(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Fz(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Az(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Lz(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(r=vg(e,this),!r.isValid())return NaN;switch(o=(r.utcOffset()-this.utcOffset())*6e4,t=rr(t),t){case"year":i=ku(this,r)/12;break;case"month":i=ku(this,r);break;case"quarter":i=ku(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:Hn(i)}function ku(e,t){if(e.date()<t.date())return-ku(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),o,i;return t-r<0?(o=e.clone().add(n-1,"months"),i=(t-r)/(r-o)):(o=e.clone().add(n+1,"months"),i=(t-r)/(o-r)),-(n+i)||0}de.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";de.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function jz(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Nz(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?wu(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Nr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",wu(n,"Z")):wu(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Vz(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function zz(e){e||(e=this.isUtc()?de.defaultFormatUtc:de.defaultFormat);var t=wu(this,e);return this.localeData().postformat(t)}function Bz(e,t){return this.isValid()&&(gr(e)&&e.isValid()||pt(e).isValid())?yr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Wz(e){return this.from(pt(),e)}function Hz(e,t){return this.isValid()&&(gr(e)&&e.isValid()||pt(e).isValid())?yr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Uz(e){return this.to(pt(),e)}function q4(e){var t;return e===void 0?this._locale._abbr:(t=go(e),t!=null&&(this._locale=t),this)}var K4=nr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Z4(){return this._locale}var fd=1e3,Ts=60*fd,pd=60*Ts,X4=(365*400+97)*24*pd;function Rs(e,t){return(e%t+t)%t}function J4(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-X4:new Date(e,t,n).valueOf()}function Q4(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-X4:Date.UTC(e,t,n)}function Yz(e){var t,n;if(e=rr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Q4:J4,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Rs(t+(this._isUTC?0:this.utcOffset()*Ts),pd);break;case"minute":t=this._d.valueOf(),t-=Rs(t,Ts);break;case"second":t=this._d.valueOf(),t-=Rs(t,fd);break}return this._d.setTime(t),de.updateOffset(this,!0),this}function Gz(e){var t,n;if(e=rr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Q4:J4,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=pd-Rs(t+(this._isUTC?0:this.utcOffset()*Ts),pd)-1;break;case"minute":t=this._d.valueOf(),t+=Ts-Rs(t,Ts)-1;break;case"second":t=this._d.valueOf(),t+=fd-Rs(t,fd)-1;break}return this._d.setTime(t),de.updateOffset(this,!0),this}function qz(){return this._d.valueOf()-(this._offset||0)*6e4}function Kz(){return Math.floor(this.valueOf()/1e3)}function Zz(){return new Date(this.valueOf())}function Xz(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Jz(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Qz(){return this.isValid()?this.toISOString():null}function eB(){return tg(this)}function tB(){return Ro({},Ae(this))}function nB(){return Ae(this).overflow}function rB(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Oe("N",0,0,"eraAbbr");Oe("NN",0,0,"eraAbbr");Oe("NNN",0,0,"eraAbbr");Oe("NNNN",0,0,"eraName");Oe("NNNNN",0,0,"eraNarrow");Oe("y",["y",1],"yo","eraYear");Oe("y",["yy",2],0,"eraYear");Oe("y",["yyy",3],0,"eraYear");Oe("y",["yyyy",4],0,"eraYear");Ce("N",xg);Ce("NN",xg);Ce("NNN",xg);Ce("NNNN",hB);Ce("NNNNN",mB);st(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?Ae(n).era=o:Ae(n).invalidEra=e});Ce("y",ra);Ce("yy",ra);Ce("yyy",ra);Ce("yyyy",ra);Ce("yo",gB);st(["y","yy","yyy","yyyy"],rn);st(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[rn]=n._locale.eraYearOrdinalParse(e,o):t[rn]=parseInt(e,10)});function oB(e,t){var n,r,o,i=this._eras||go("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=de(i[n].since).startOf("day"),i[n].since=o.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=de(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf();break}}return i}function iB(e,t,n){var r,o,i=this.eras(),s,a,l;for(e=e.toUpperCase(),r=0,o=i.length;r<o;++r)if(s=i[r].name.toUpperCase(),a=i[r].abbr.toUpperCase(),l=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return i[r];break;case"NNNN":if(s===e)return i[r];break;case"NNNNN":if(l===e)return i[r];break}else if([s,a,l].indexOf(e)>=0)return i[r]}function sB(e,t){var n=e.since<=e.until?1:-1;return t===void 0?de(e.since).year():de(e.since).year()+(t-e.offset)*n}function aB(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function lB(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function cB(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function uB(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-de(o[e].since).year())*n+o[e].offset;return this.year()}function dB(e){return Xe(this,"_erasNameRegex")||Cg.call(this),e?this._erasNameRegex:this._erasRegex}function fB(e){return Xe(this,"_erasAbbrRegex")||Cg.call(this),e?this._erasAbbrRegex:this._erasRegex}function pB(e){return Xe(this,"_erasNarrowRegex")||Cg.call(this),e?this._erasNarrowRegex:this._erasRegex}function xg(e,t){return t.erasAbbrRegex(e)}function hB(e,t){return t.erasNameRegex(e)}function mB(e,t){return t.erasNarrowRegex(e)}function gB(e,t){return t._eraYearOrdinalRegex||ra}function Cg(){var e=[],t=[],n=[],r=[],o,i,s,a,l,c=this.eras();for(o=0,i=c.length;o<i;++o)s=ro(c[o].name),a=ro(c[o].abbr),l=ro(c[o].narrow),t.push(s),e.push(a),n.push(l),r.push(s),r.push(a),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Oe(0,["gg",2],0,function(){return this.weekYear()%100});Oe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Xf(e,t){Oe(0,[e,e.length],0,t)}Xf("gggg","weekYear");Xf("ggggg","weekYear");Xf("GGGG","isoWeekYear");Xf("GGGGG","isoWeekYear");Ce("G",Yf);Ce("g",Yf);Ce("GG",ht,Ln);Ce("gg",ht,Ln);Ce("GGGG",ag,sg);Ce("gggg",ag,sg);Ce("GGGGG",Uf,Wf);Ce("ggggg",Uf,Wf);cc(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=ze(e)});cc(["gg","GG"],function(e,t,n,r){t[r]=de.parseTwoDigitYear(e)});function yB(e){return e7.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function vB(e){return e7.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function xB(){return oo(this.year(),1,4)}function CB(){return oo(this.isoWeekYear(),1,4)}function bB(){var e=this.localeData()._week;return oo(this.year(),e.dow,e.doy)}function wB(){var e=this.localeData()._week;return oo(this.weekYear(),e.dow,e.doy)}function e7(e,t,n,r,o){var i;return e==null?Al(this,r,o).year:(i=oo(e,r,o),t>i&&(t=i),SB.call(this,e,t,n,r,o))}function SB(e,t,n,r,o){var i=I4(e,t,n,r,o),s=Fl(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Oe("Q",0,"Qo","quarter");Ce("Q",w4);st("Q",function(e,t){t[Jr]=(ze(e)-1)*3});function kB(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Oe("D",["DD",2],"Do","date");Ce("D",ht,oa);Ce("DD",ht,Ln);Ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});st(["D","DD"],Er);st("Do",function(e,t){t[Er]=ze(e.match(ht)[0])});var t7=ia("Date",!0);Oe("DDD",["DDDD",3],"DDDo","dayOfYear");Ce("DDD",Hf);Ce("DDDD",S4);st(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ze(e)});function EB(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Oe("m",["mm",2],0,"minute");Ce("m",ht,lg);Ce("mm",ht,Ln);st(["m","mm"],ur);var PB=ia("Minutes",!1);Oe("s",["ss",2],0,"second");Ce("s",ht,lg);Ce("ss",ht,Ln);st(["s","ss"],Qr);var MB=ia("Seconds",!1);Oe("S",0,0,function(){return~~(this.millisecond()/100)});Oe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Oe(0,["SSS",3],0,"millisecond");Oe(0,["SSSS",4],0,function(){return this.millisecond()*10});Oe(0,["SSSSS",5],0,function(){return this.millisecond()*100});Oe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Oe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Oe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Oe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ce("S",Hf,w4);Ce("SS",Hf,Ln);Ce("SSS",Hf,S4);var Do,n7;for(Do="SSSS";Do.length<=9;Do+="S")Ce(Do,ra);function TB(e,t){t[hi]=ze(("0."+e)*1e3)}for(Do="S";Do.length<=9;Do+="S")st(Do,TB);n7=ia("Milliseconds",!1);Oe("z",0,0,"zoneAbbr");Oe("zz",0,0,"zoneName");function RB(){return this._isUTC?"UTC":""}function DB(){return this._isUTC?"Coordinated Universal Time":""}var ae=ac.prototype;ae.add=wz;ae.calendar=Rz;ae.clone=Dz;ae.diff=Lz;ae.endOf=Gz;ae.format=zz;ae.from=Bz;ae.fromNow=Wz;ae.to=Hz;ae.toNow=Uz;ae.get=VN;ae.invalidAt=nB;ae.isAfter=_z;ae.isBefore=Oz;ae.isBetween=Iz;ae.isSame=$z;ae.isSameOrAfter=Fz;ae.isSameOrBefore=Az;ae.isValid=eB;ae.lang=K4;ae.locale=q4;ae.localeData=Z4;ae.max=ez;ae.min=QV;ae.parsingFlags=tB;ae.set=zN;ae.startOf=Yz;ae.subtract=Sz;ae.toArray=Xz;ae.toObject=Jz;ae.toDate=Zz;ae.toISOString=Nz;ae.inspect=Vz;typeof Symbol<"u"&&Symbol.for!=null&&(ae[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ae.toJSON=Qz;ae.toString=jz;ae.unix=Kz;ae.valueOf=qz;ae.creationData=rB;ae.eraName=aB;ae.eraNarrow=lB;ae.eraAbbr=cB;ae.eraYear=uB;ae.year=P4;ae.isLeapYear=NN;ae.weekYear=yB;ae.isoWeekYear=vB;ae.quarter=ae.quarters=kB;ae.month=_4;ae.daysInMonth=ZN;ae.week=ae.weeks=oV;ae.isoWeek=ae.isoWeeks=iV;ae.weeksInYear=bB;ae.weeksInWeekYear=wB;ae.isoWeeksInYear=xB;ae.isoWeeksInISOWeekYear=CB;ae.date=t7;ae.day=ae.days=vV;ae.weekday=xV;ae.isoWeekday=CV;ae.dayOfYear=EB;ae.hour=ae.hours=MV;ae.minute=ae.minutes=PB;ae.second=ae.seconds=MB;ae.millisecond=ae.milliseconds=n7;ae.utcOffset=cz;ae.utc=dz;ae.local=fz;ae.parseZone=pz;ae.hasAlignedHourOffset=hz;ae.isDST=mz;ae.isLocal=yz;ae.isUtcOffset=vz;ae.isUtc=H4;ae.isUTC=H4;ae.zoneAbbr=RB;ae.zoneName=DB;ae.dates=nr("dates accessor is deprecated. Use date instead.",t7);ae.months=nr("months accessor is deprecated. Use month instead",_4);ae.years=nr("years accessor is deprecated. Use year instead",P4);ae.zone=nr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",uz);ae.isDSTShifted=nr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",gz);function _B(e){return pt(e*1e3)}function OB(){return pt.apply(null,arguments).parseZone()}function r7(e){return e}var Je=rg.prototype;Je.calendar=yN;Je.longDateFormat=bN;Je.invalidDate=SN;Je.ordinal=PN;Je.preparse=r7;Je.postformat=r7;Je.relativeTime=TN;Je.pastFuture=RN;Je.set=mN;Je.eras=oB;Je.erasParse=iB;Je.erasConvertYear=sB;Je.erasAbbrRegex=fB;Je.erasNameRegex=dB;Je.erasNarrowRegex=pB;Je.months=YN;Je.monthsShort=GN;Je.monthsParse=KN;Je.monthsRegex=JN;Je.monthsShortRegex=XN;Je.week=eV;Je.firstDayOfYear=rV;Je.firstDayOfWeek=nV;Je.weekdays=pV;Je.weekdaysMin=mV;Je.weekdaysShort=hV;Je.weekdaysParse=yV;Je.weekdaysRegex=bV;Je.weekdaysShortRegex=wV;Je.weekdaysMinRegex=SV;Je.isPM=EV;Je.meridiem=TV;function hd(e,t,n,r){var o=go(),i=jr().set(r,t);return o[n](i,e)}function o7(e,t,n){if(fo(e)&&(t=e,e=void 0),e=e||"",t!=null)return hd(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=hd(e,r,n,"month");return o}function bg(e,t,n,r){typeof e=="boolean"?(fo(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,fo(t)&&(n=t,t=void 0),t=t||"");var o=go(),i=e?o._week.dow:0,s,a=[];if(n!=null)return hd(t,(n+i)%7,r,"day");for(s=0;s<7;s++)a[s]=hd(t,(s+i)%7,r,"day");return a}function IB(e,t){return o7(e,t,"months")}function $B(e,t){return o7(e,t,"monthsShort")}function FB(e,t,n){return bg(e,t,n,"weekdays")}function AB(e,t,n){return bg(e,t,n,"weekdaysShort")}function LB(e,t,n){return bg(e,t,n,"weekdaysMin")}No("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ze(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});de.lang=nr("moment.lang is deprecated. Use moment.locale instead.",No);de.langData=nr("moment.langData is deprecated. Use moment.localeData instead.",go);var zr=Math.abs;function jB(){var e=this._data;return this._milliseconds=zr(this._milliseconds),this._days=zr(this._days),this._months=zr(this._months),e.milliseconds=zr(e.milliseconds),e.seconds=zr(e.seconds),e.minutes=zr(e.minutes),e.hours=zr(e.hours),e.months=zr(e.months),e.years=zr(e.years),this}function i7(e,t,n,r){var o=yr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function NB(e,t){return i7(this,e,t,1)}function VB(e,t){return i7(this,e,t,-1)}function Av(e){return e<0?Math.floor(e):Math.ceil(e)}function zB(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,s,a,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Av(X0(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Hn(e/1e3),r.seconds=o%60,i=Hn(o/60),r.minutes=i%60,s=Hn(i/60),r.hours=s%24,t+=Hn(s/24),l=Hn(s7(t)),n+=l,t-=Av(X0(l)),a=Hn(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function s7(e){return e*4800/146097}function X0(e){return e*146097/4800}function BB(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=rr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+s7(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(X0(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function yo(e){return function(){return this.as(e)}}var a7=yo("ms"),WB=yo("s"),HB=yo("m"),UB=yo("h"),YB=yo("d"),GB=yo("w"),qB=yo("M"),KB=yo("Q"),ZB=yo("y"),XB=a7;function JB(){return yr(this)}function QB(e){return e=rr(e),this.isValid()?this[e+"s"]():NaN}function Ai(e){return function(){return this.isValid()?this._data[e]:NaN}}var eW=Ai("milliseconds"),tW=Ai("seconds"),nW=Ai("minutes"),rW=Ai("hours"),oW=Ai("days"),iW=Ai("months"),sW=Ai("years");function aW(){return Hn(this.days()/7)}var Ur=Math.round,ms={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function lW(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function cW(e,t,n,r){var o=yr(e).abs(),i=Ur(o.as("s")),s=Ur(o.as("m")),a=Ur(o.as("h")),l=Ur(o.as("d")),c=Ur(o.as("M")),u=Ur(o.as("w")),d=Ur(o.as("y")),p=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),p=p||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d],p[2]=t,p[3]=+e>0,p[4]=r,lW.apply(null,p)}function uW(e){return e===void 0?Ur:typeof e=="function"?(Ur=e,!0):!1}function dW(e,t){return ms[e]===void 0?!1:t===void 0?ms[e]:(ms[e]=t,e==="s"&&(ms.ss=t-1),!0)}function fW(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=ms,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},ms,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=cW(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var uh=Math.abs;function Ki(e){return(e>0)-(e<0)||+e}function Jf(){if(!this.isValid())return this.localeData().invalidDate();var e=uh(this._milliseconds)/1e3,t=uh(this._days),n=uh(this._months),r,o,i,s,a=this.asSeconds(),l,c,u,d;return a?(r=Hn(e/60),o=Hn(r/60),e%=60,r%=60,i=Hn(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",c=Ki(this._months)!==Ki(a)?"-":"",u=Ki(this._days)!==Ki(a)?"-":"",d=Ki(this._milliseconds)!==Ki(a)?"-":"",l+"P"+(i?c+i+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(o||r||e?"T":"")+(o?d+o+"H":"")+(r?d+r+"M":"")+(e?d+s+"S":"")):"P0D"}var Ye=Zf.prototype;Ye.isValid=iz;Ye.abs=jB;Ye.add=NB;Ye.subtract=VB;Ye.as=BB;Ye.asMilliseconds=a7;Ye.asSeconds=WB;Ye.asMinutes=HB;Ye.asHours=UB;Ye.asDays=YB;Ye.asWeeks=GB;Ye.asMonths=qB;Ye.asQuarters=KB;Ye.asYears=ZB;Ye.valueOf=XB;Ye._bubble=zB;Ye.clone=JB;Ye.get=QB;Ye.milliseconds=eW;Ye.seconds=tW;Ye.minutes=nW;Ye.hours=rW;Ye.days=oW;Ye.weeks=aW;Ye.months=iW;Ye.years=sW;Ye.humanize=fW;Ye.toISOString=Jf;Ye.toString=Jf;Ye.toJSON=Jf;Ye.locale=q4;Ye.localeData=Z4;Ye.toIsoString=nr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jf);Ye.lang=K4;Oe("X",0,0,"unix");Oe("x",0,0,"valueOf");Ce("x",Yf);Ce("X",IN);st("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});st("x",function(e,t,n){n._d=new Date(ze(e))});//! moment.js
de.version="2.30.1";pN(pt);de.fn=ae;de.min=tz;de.max=nz;de.now=rz;de.utc=jr;de.unix=_B;de.months=IB;de.isDate=sc;de.locale=No;de.invalid=Bf;de.duration=yr;de.isMoment=gr;de.weekdays=FB;de.parseZone=OB;de.localeData=go;de.isDuration=Su;de.monthsShort=$B;de.weekdaysMin=LB;de.defineLocale=pg;de.updateLocale=OV;de.locales=IV;de.weekdaysShort=AB;de.normalizeUnits=rr;de.relativeTimeRounding=uW;de.relativeTimeThreshold=dW;de.calendarFormat=Tz;de.prototype=ae;de.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const pW={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},hW={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Lv=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
`);class mW{constructor({locale:t,formats:n,instance:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=pW,this.setLocaleToValue=o=>{const i=this.getCurrentLocaleCode();return i===o.locale()?o:o.locale(i)},this.syncMomentLocale=o=>{var i;const s=de.locale(),a=(i=this.locale)!=null?i:"en-us";if(s!==a){de.locale(a);const l=o();return de.locale(s),l}return o()},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=o=>{const i=this.moment(o).local();return this.locale===void 0?i:i.locale(this.locale)},this.createUTCDate=o=>{const i=this.moment.utc(o);return this.locale===void 0?i:i.locale(this.locale)},this.createTZDate=(o,i)=>{if(!this.hasTimezonePlugin())throw new Error(Lv);const s=i==="default"?this.moment(o):this.moment.tz(o,i);return this.locale===void 0?s:s.locale(this.locale)},this.date=o=>{if(o===null)return null;const i=this.moment(o);return i.locale(this.getCurrentLocaleCode()),i},this.dateWithTimezone=(o,i)=>o===null?null:i==="UTC"?this.createUTCDate(o):i==="system"||i==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(o):this.createTZDate(o,i),this.getTimezone=o=>{var i,s,a;const l=(i=o._z)==null?void 0:i.name,c=o.isUTC()?"UTC":"system";return(s=l??((a=this.moment.defaultZone)==null?void 0:a.name))!=null?s:c},this.setTimezone=(o,i)=>{var s,a;if(this.getTimezone(o)===i)return o;if(i==="UTC")return o.clone().utc();if(i==="system")return o.clone().local();if(!this.hasTimezonePlugin()){if(i!=="default")throw new Error(Lv);return o}const l=i==="default"?(s=(a=this.moment.defaultZone)==null?void 0:a.name)!=null?s:"system":i;if(l==="system")return o.clone().local();const c=o.clone();return c.tz(l),c},this.toJsDate=o=>o.toDate(),this.parseISO=o=>this.moment(o,!0),this.toISO=o=>o.toISOString(),this.parse=(o,i)=>o===""?null:this.locale?this.moment(o,i,this.locale,!0):this.moment(o,i,!0),this.getCurrentLocaleCode=()=>this.locale||de.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(de.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=o=>{const i=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return o.match(i).map(s=>{const a=s[0];return a==="L"||a===";"?de.localeData(this.getCurrentLocaleCode()).longDateFormat(s):s}).join("")},this.getFormatHelperText=o=>this.expandFormat(o).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=o=>o===null,this.isValid=o=>this.moment(o).isValid(),this.format=(o,i)=>this.formatByString(o,this.formats[i]),this.formatByString=(o,i)=>{const s=o.clone();return s.locale(this.getCurrentLocaleCode()),s.format(i)},this.formatNumber=o=>o,this.getDiff=(o,i,s)=>o.diff(i,s),this.isEqual=(o,i)=>o===null&&i===null?!0:this.moment(o).isSame(i),this.isSameYear=(o,i)=>o.isSame(i,"year"),this.isSameMonth=(o,i)=>o.isSame(i,"month"),this.isSameDay=(o,i)=>o.isSame(i,"day"),this.isSameHour=(o,i)=>o.isSame(i,"hour"),this.isAfter=(o,i)=>o.isAfter(i),this.isAfterYear=(o,i)=>o.isAfter(i,"year"),this.isAfterDay=(o,i)=>o.isAfter(i,"day"),this.isBefore=(o,i)=>o.isBefore(i),this.isBeforeYear=(o,i)=>o.isBefore(i,"year"),this.isBeforeDay=(o,i)=>o.isBefore(i,"day"),this.isWithinRange=(o,[i,s])=>o.isBetween(i,s,null,"[]"),this.startOfYear=o=>o.clone().startOf("year"),this.startOfMonth=o=>o.clone().startOf("month"),this.startOfWeek=o=>o.clone().startOf("week"),this.startOfDay=o=>o.clone().startOf("day"),this.endOfYear=o=>o.clone().endOf("year"),this.endOfMonth=o=>o.clone().endOf("month"),this.endOfWeek=o=>o.clone().endOf("week"),this.endOfDay=o=>o.clone().endOf("day"),this.addYears=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"years"):o.clone().add(i,"years"),this.addMonths=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"months"):o.clone().add(i,"months"),this.addWeeks=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"weeks"):o.clone().add(i,"weeks"),this.addDays=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"days"):o.clone().add(i,"days"),this.addHours=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"hours"):o.clone().add(i,"hours"),this.addMinutes=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"minutes"):o.clone().add(i,"minutes"),this.addSeconds=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"seconds"):o.clone().add(i,"seconds"),this.getYear=o=>o.get("year"),this.getMonth=o=>o.get("month"),this.getDate=o=>o.get("date"),this.getHours=o=>o.get("hours"),this.getMinutes=o=>o.get("minutes"),this.getSeconds=o=>o.get("seconds"),this.getMilliseconds=o=>o.get("milliseconds"),this.setYear=(o,i)=>o.clone().year(i),this.setMonth=(o,i)=>o.clone().month(i),this.setDate=(o,i)=>o.clone().date(i),this.setHours=(o,i)=>o.clone().hours(i),this.setMinutes=(o,i)=>o.clone().minutes(i),this.setSeconds=(o,i)=>o.clone().seconds(i),this.setMilliseconds=(o,i)=>o.clone().milliseconds(i),this.getDaysInMonth=o=>o.daysInMonth(),this.getNextMonth=o=>o.clone().add(1,"month"),this.getPreviousMonth=o=>o.clone().subtract(1,"month"),this.getMonthArray=o=>{const s=[this.startOfYear(o)];for(;s.length<12;){const a=s[s.length-1];s.push(this.getNextMonth(a))}return s},this.mergeDateAndTime=(o,i)=>o.clone().hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>this.syncMomentLocale(()=>de.weekdaysShort(!0)),this.getWeekArray=o=>{const i=this.setLocaleToValue(o),s=i.clone().startOf("month").startOf("week"),a=i.clone().endOf("month").endOf("week");let l=0,c=s;const u=[];for(;c.isBefore(a);){const d=Math.floor(l/7);u[d]=u[d]||[],u[d].push(c),c=c.clone().add(1,"day"),l+=1}return u},this.getWeekNumber=o=>o.week(),this.getYearRange=(o,i)=>{const s=this.moment(o).startOf("year"),a=this.moment(i).endOf("year"),l=[];let c=s;for(;c.isBefore(a);)l.push(c),c=c.clone().add(1,"year");return l},this.getMeridiemText=o=>this.is12HourCycleInCurrentLocale()?de.localeData(this.getCurrentLocaleCode()).meridiem(o==="am"?0:13,0,!1):o==="am"?"AM":"PM",this.moment=r||de,this.locale=t,this.formats=b({},hW,n)}}function gW(e,t){const n={timestamp:Math.floor(Date.now()/1e3),message:e.message,callStack:e.stack,componentStack:t.componentStack};yW(n)}let Eu=[],jv;function yW(e){Eu.push(e),clearTimeout(jv),jv=setTimeout(()=>{vW()},1e3)}async function vW(){console.log(`Fake-sending ${Eu.length} errors to server`,Eu),Eu=[]}const Ho=sn({breakpoints:{values:{xs:0,sm:560,md:900,lg:1200,xl:1536}},components:{MuiTypography:{defaultProps:{variantMapping:{p1:"p"}}},MuiButton:{variants:[{props:{variant:"contained"},style:{backgroundColor:"#7E2AEA",padding:"13px 20px",borderRadius:"8px",color:"#ffffff",boxShadow:"none","&:hover":{backgroundColor:"#581CA7"}}},{props:{variant:"outlined"},style:{backgroundColor:"#F2F3F7",padding:"10px 20px",borderRadius:"8px",border:"1px solid #7E2AEA",color:"#9A9AAF","&:hover":{backgroundColor:"#581CA7",border:"1px solid #581CA7"}}}]}},typography:{h5:{fontSize:"24px",lineHeight:"28.44px",fontWeight:500},button:{fontSize:"18px",lineHeight:"24px",fontWeight:400,textTransform:"none"},body1:{fontSize:"18px",lineHeight:"21.33px",fontWeight:400},body2:{fontSize:"16px",lineHeight:"20px",fontWeight:500},p1:{fontSize:"20px",lineHeight:"24px",fontWeight:500},fontFamily:["Twemoji Country Flags","Rubik","-apple-system","BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(",")}});Ho.typography.h2={fontSize:"70px",lineHeight:"70px",fontWeight:500,[Ho.breakpoints.down("md")]:{fontSize:"42px",lineHeight:"50px"}};Ho.typography.h4={fontSize:"36px",lineHeight:"42.66px",fontWeight:500,[Ho.breakpoints.down("md")]:{fontSize:"24px",lineHeight:"28.44px"}};Ho.typography.infographic={fontSize:"80px",lineHeight:"94.8px",fontWeight:400,[Ho.breakpoints.down("md")]:{fontSize:"50px",lineHeight:"59px",fontWeight:400}};const Nv=sn({...Ho,palette:{mode:"light",primary:{main:"#000000"},secondary:{main:"#252734"},text:{primary:"#000000",secondary:"#7E2AEA"},background:{default:"#F2F3F7"},lightPurple:{main:"#333647"},darkPurple:{main:"#252734"},brightPurple:{main:"#7E2AEA"},fadePurple:{main:"#C19AF5"},grey1:{main:"#434657"},grey2:{main:"#9A9AAF"},grey3:{main:"#4D4D4D"},grey4:{main:"#333647"},orange:{main:"#FB5607"},navbarbg:{main:"#FFFFFF"}}});function l7(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=l7(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Li(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=l7(e))&&(r&&(r+=" "),r+=t);return r}let xW={data:""},CW=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||xW,bW=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,wW=/\/\*[^]*?\*\/| +/g,Vv=/\n+/g,ci=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?ci(s,i):i+"{"+ci(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=ci(s,t?t.replace(/([^,])+/g,a=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ci.p?ci.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Br={},c7=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+c7(e[n]);return t}return e},SW=(e,t,n,r,o)=>{let i=c7(e),s=Br[i]||(Br[i]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return"go"+u})(i));if(!Br[s]){let l=i!==e?e:(c=>{let u,d,p=[{}];for(;u=bW.exec(c.replace(wW,""));)u[4]?p.shift():u[3]?(d=u[3].replace(Vv," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][u[1]]=u[2].replace(Vv," ").trim();return p[0]})(e);Br[s]=ci(o?{["@keyframes "+s]:l}:l,n?"":"."+s)}let a=n&&Br.g?Br.g:null;return n&&(Br.g=Br[s]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(Br[s],t,r,a),s},kW=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":ci(a,""):a===!1?"":a}return r+o+(s??"")},"");function wg(e){let t=this||{},n=e.call?e(t.p):e;return SW(n.unshift?n.raw?kW(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,CW(t.target),t.g,t.o,t.k)}wg.bind({g:1});wg.bind({k:1});function zv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u7(e,t,n){return t&&zv(e.prototype,t),n&&zv(e,n),e}function ot(){return ot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ot.apply(this,arguments)}function d7(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function uc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Bv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Wv=function(){return""},EW=Fe.createContext({enqueueSnackbar:Wv,closeSnackbar:Wv}),si={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},Hv=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Sg=function(t){return""+Hv(t.vertical)+Hv(t.horizontal)},Yc=function(t){return!!t||t===0},Gc="unmounted",Zi="exited",Xi="entering",_a="entered",Uv="exiting",kg=function(e){d7(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,s;return o.appearStatus=null,r.in?i?(s=Zi,o.appearStatus=Xi):s=_a:r.unmountOnExit||r.mountOnEnter?s=Gc:s=Zi,o.state={status:s},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Gc?{status:Zi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Xi&&s!==_a&&(i=Xi):(s===Xi||s===_a)&&(i=Uv)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,s=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(s=o.exit,i=o.enter),{exit:s,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===Xi?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Zi&&this.setState({status:Gc})},n.performEnter=function(o){var i=this,s=this.props.enter,a=o,l=this.getTimeouts();if(!o&&!s){this.safeSetState({status:_a},function(){i.props.onEntered&&i.props.onEntered(i.node,a)});return}this.props.onEnter&&this.props.onEnter(this.node,a),this.safeSetState({status:Xi},function(){i.props.onEntering&&i.props.onEntering(i.node,a),i.onTransitionEnd(l.enter,function(){i.safeSetState({status:_a},function(){i.props.onEntered&&i.props.onEntered(i.node,a)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts();if(!i){this.safeSetState({status:Zi},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:Uv},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Zi},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(){s&&(s=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=o==null&&!this.props.addEndListener;if(!this.node||s){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Gc)return null;var i=this.props,s=i.children,a=uc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return s(o,a)},u7(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(Fe.Component);function Ji(){}kg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ji,onEntering:Ji,onEntered:Ji,onExit:Ji,onExiting:Ji,onExited:Ji};function Yv(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function J0(e,t){return v.useMemo(function(){return e==null&&t==null?null:function(n){Yv(e,n),Yv(t,n)}},[e,t])}function md(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var Q0={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},f7=function(t){t.scrollTop=t.scrollTop},Gv=function(t){return Math.round(t)+"ms"};function gs(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,s=i===void 0?Q0.easeInOut:i,a=n.delay,l=a===void 0?0:a,c=Array.isArray(e)?e:[e];return c.map(function(u){var d=typeof o=="string"?o:Gv(o),p=typeof l=="string"?l:Gv(l);return u+" "+d+" "+s+" "+p}).join(",")}function PW(e){return e&&e.ownerDocument||document}function p7(e){var t=PW(e);return t.defaultView||window}function MW(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var l=function(){e.apply(o,s)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=function(){clearTimeout(n)},r}function TW(e,t){var n=t.getBoundingClientRect(),r=p7(t),o;if(t.fakeTransform)o=t.fakeTransform;else{var i=r.getComputedStyle(t);o=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var s=0,a=0;if(o&&o!=="none"&&typeof o=="string"){var l=o.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),a=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+s-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-s)+"px)";case"up":return"translateY("+(r.innerHeight+a-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-a)+"px)"}}function qc(e,t){if(t){var n=TW(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var h7=v.forwardRef(function(e,t){var n=e.children,r=e.direction,o=r===void 0?"down":r,i=e.in,s=e.style,a=e.timeout,l=a===void 0?0:a,c=e.onEnter,u=e.onEntered,d=e.onExit,p=e.onExited,x=uc(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),g=v.useRef(null),h=J0(n.ref,g),E=J0(h,t),m=function(k,M){qc(o,k),f7(k),c&&c(k,M)},y=function(k){var M=(s==null?void 0:s.transitionTimingFunction)||Q0.easeOut,T=md({timeout:l,mode:"enter",style:ot({},s,{transitionTimingFunction:M})});k.style.webkitTransition=gs("-webkit-transform",T),k.style.transition=gs("transform",T),k.style.webkitTransform="none",k.style.transform="none"},C=function(k){var M=(s==null?void 0:s.transitionTimingFunction)||Q0.sharp,T=md({timeout:l,mode:"exit",style:ot({},s,{transitionTimingFunction:M})});k.style.webkitTransition=gs("-webkit-transform",T),k.style.transition=gs("transform",T),qc(o,k),d&&d(k)},w=function(k){k.style.webkitTransition="",k.style.transition="",p&&p(k)},S=v.useCallback(function(){g.current&&qc(o,g.current)},[o]);return v.useEffect(function(){if(!(i||o==="down"||o==="right")){var P=MW(function(){g.current&&qc(o,g.current)}),k=p7(g.current);return k.addEventListener("resize",P),function(){P.clear(),k.removeEventListener("resize",P)}}},[o,i]),v.useEffect(function(){i||S()},[i,S]),v.createElement(kg,Object.assign({appear:!0,nodeRef:g,onEnter:m,onEntered:u,onEntering:y,onExit:C,onExited:w,in:i,timeout:l},x),function(P,k){return v.cloneElement(n,ot({ref:E,style:ot({visibility:P==="exited"&&!i?"hidden":void 0},s,{},n.props.style)},k))})});h7.displayName="Slide";var Qf=function(t){return Fe.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},RW=function(){return Fe.createElement(Qf,null,Fe.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},DW=function(){return Fe.createElement(Qf,null,Fe.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},_W=function(){return Fe.createElement(Qf,null,Fe.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},OW=function(){return Fe.createElement(Qf,null,Fe.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
0 22,12A10,10 0 0,0 12,2Z`}))},IW={default:void 0,success:Fe.createElement(RW,null),warning:Fe.createElement(DW,null),error:Fe.createElement(_W,null),info:Fe.createElement(OW,null)},Ci={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:IW,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:h7,transitionDuration:{enter:225,exit:195}},$W=function(t,n){var r=function(i){return typeof i=="number"||i===null};return r(t)?t:r(n)?n:Ci.autoHideDuration},FW=function(t,n){var r=function(i,s){return s.some(function(a){return typeof i===a})};return r(t,["string","number"])?t:r(t,["object"])?ot({},Ci.transitionDuration,{},r(n,["object"])&&n,{},t):r(n,["string","number"])?n:r(n,["object"])?ot({},Ci.transitionDuration,{},n):Ci.transitionDuration},AW=function(t,n){return function(r,o){return o===void 0&&(o=!1),o?ot({},Ci[r],{},n[r],{},t[r]):r==="autoHideDuration"?$W(t.autoHideDuration,n.autoHideDuration):r==="transitionDuration"?FW(t.transitionDuration,n.transitionDuration):t[r]||n[r]||Ci[r]}};function dc(e){return Object.entries(e).reduce(function(t,n){var r,o=n[0],i=n[1];return ot({},t,(r={},r[o]=wg(i),r))},{})}var Ys={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},qv=dc({root:{height:0},entered:{height:"auto"}}),dh="0px",fh=175,m7=v.forwardRef(function(e,t){var n=e.children,r=e.in,o=e.onExited,i=v.useRef(null),s=v.useRef(null),a=J0(t,s),l=function(){return i.current?i.current.clientHeight:0},c=function(h){h.style.height=dh},u=function(h){var E=l(),m=md({timeout:fh,mode:"enter"}),y=m.duration,C=m.easing;h.style.transitionDuration=typeof y=="string"?y:y+"ms",h.style.height=E+"px",h.style.transitionTimingFunction=C||""},d=function(h){h.style.height="auto"},p=function(h){h.style.height=l()+"px"},x=function(h){f7(h);var E=md({timeout:fh,mode:"exit"}),m=E.duration,y=E.easing;h.style.transitionDuration=typeof m=="string"?m:m+"ms",h.style.height=dh,h.style.transitionTimingFunction=y||""};return v.createElement(kg,{in:r,unmountOnExit:!0,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:o,onExiting:x,nodeRef:s,timeout:fh},function(g,h){return v.createElement("div",Object.assign({ref:a,className:Li(qv.root,g==="entered"&&qv.entered),style:ot({pointerEvents:"all",overflow:"hidden",minHeight:dh,transition:gs("height")},g==="entered"&&{overflow:"visible"},{},g==="exited"&&!r&&{visibility:"hidden"})},h),v.createElement("div",{ref:i,className:Ys.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});m7.displayName="Collapse";var Kv={right:"left",left:"right",bottom:"up",top:"down"},LW=function(t){return t.horizontal!=="center"?Kv[t.horizontal]:Kv[t.vertical]},jW=function(t){return"anchorOrigin"+Sg(t)},NW=function(t){t===void 0&&(t={});var n={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(r){return!n[r]}).reduce(function(r,o){var i;return ot({},r,(i={},i[o]=t[o],i))},{})},VW=function(){};function sl(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var l=[].concat(s);t&&l.indexOf(t)===-1&&l.push(t),n.apply(this,l),r.apply(this,l)}},VW)}var zW=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Zv(e){var t=v.useRef(e);return zW(function(){t.current=e}),v.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var g7=v.forwardRef(function(e,t){var n=e.children,r=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,s=i===void 0?!1:i,a=e.onClose,l=e.id,c=e.open,u=e.SnackbarProps,d=u===void 0?{}:u,p=v.useRef(),x=Zv(function(){a&&a.apply(void 0,arguments)}),g=Zv(function(C){!a||C==null||(p.current&&clearTimeout(p.current),p.current=setTimeout(function(){x(null,"timeout",l)},C))});v.useEffect(function(){return c&&g(o),function(){p.current&&clearTimeout(p.current)}},[c,o,g]);var h=function(){p.current&&clearTimeout(p.current)},E=v.useCallback(function(){o!=null&&g(o*.5)},[o,g]),m=function(w){d.onMouseEnter&&d.onMouseEnter(w),h()},y=function(w){d.onMouseLeave&&d.onMouseLeave(w),E()};return v.useEffect(function(){if(!s&&c)return window.addEventListener("focus",E),window.addEventListener("blur",h),function(){window.removeEventListener("focus",E),window.removeEventListener("blur",h)}},[s,E,c]),v.createElement("div",Object.assign({ref:t},d,{className:Li(Ys.Snackbar,r),onMouseEnter:m,onMouseLeave:y}),n)});g7.displayName="Snackbar";var ph,BW=dc({root:(ph={display:"flex",flexWrap:"wrap",flexGrow:1},ph[si.upSm]={flexGrow:"initial",minWidth:"288px"},ph)}),y7=v.forwardRef(function(e,t){var n=e.className,r=uc(e,["className"]);return Fe.createElement("div",Object.assign({ref:t,className:Li(BW.root,n)},r))});y7.displayName="SnackbarContent";var Oa=dc({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),Xv="notistack-snackbar",v7=v.forwardRef(function(e,t){var n=e.id,r=e.message,o=e.action,i=e.iconVariant,s=e.variant,a=e.hideIconVariant,l=e.style,c=e.className,u=i[s],d=o;return typeof d=="function"&&(d=d(n)),Fe.createElement(y7,{ref:t,role:"alert","aria-describedby":Xv,style:l,className:Li(Ys.MuiContent,Ys.MuiContentVariant(s),Oa.root,Oa[s],c,!a&&u&&Oa.lessPadding)},Fe.createElement("div",{id:Xv,className:Oa.message},a?null:u,r),d&&Fe.createElement("div",{className:Oa.action},d))});v7.displayName="MaterialDesignContent";var WW=v.memo(v7),HW=dc({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),UW=function(t){var n=v.useRef(),r=v.useState(!0),o=r[0],i=r[1],s=sl([t.snack.onClose,t.onClose]),a=function(){t.snack.requestClose&&s(null,"instructed",t.snack.id)},l=v.useCallback(function(){n.current=setTimeout(function(){i(function(T){return!T})},125)},[]);v.useEffect(function(){return function(){n.current&&clearTimeout(n.current)}},[]);var c=t.snack,u=t.classes,d=t.Component,p=d===void 0?WW:d,x=v.useMemo(function(){return NW(u)},[u]),g=c.open,h=c.SnackbarProps,E=c.TransitionComponent,m=c.TransitionProps,y=c.transitionDuration,C=c.disableWindowBlurListener,w=c.content,S=uc(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),P=ot({direction:LW(S.anchorOrigin),timeout:y},m),k=w;typeof k=="function"&&(k=k(S.id,S.message));var M=["onEnter","onEntered","onExit","onExited"].reduce(function(T,D){var _;return ot({},T,(_={},_[D]=sl([t.snack[D],t[D]],S.id),_))},{});return Fe.createElement(m7,{in:o,onExited:M.onExited},Fe.createElement(g7,{open:g,id:S.id,disableWindowBlurListener:C,autoHideDuration:S.autoHideDuration,className:Li(HW.wrappedRoot,x.root,x[jW(S.anchorOrigin)]),SnackbarProps:h,onClose:s},Fe.createElement(E,Object.assign({},P,{appear:!0,in:g,onExit:M.onExit,onExited:l,onEnter:M.onEnter,onEntered:sl([M.onEntered,a],S.id)}),k||Fe.createElement(p,Object.assign({},S)))))},Ia,hh,Kc,Zc,mh,Wr={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Jv="."+Ys.CollapseWrapper,gh=16,Xc=dc({root:(Ia={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:gs(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Ia[Jv]={padding:Wr.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},Ia.maxWidth="calc(100% - "+Wr.view.default*2+"px)",Ia[si.downXs]={width:"100%",maxWidth:"calc(100% - "+gh*2+"px)"},Ia),rootDense:(hh={},hh[Jv]={padding:Wr.snackbar.dense+"px 0px"},hh),top:{top:Wr.view.default-Wr.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:Wr.view.default-Wr.snackbar.default+"px",flexDirection:"column-reverse"},left:(Kc={left:Wr.view.default+"px"},Kc[si.upSm]={alignItems:"flex-start"},Kc[si.downXs]={left:gh+"px"},Kc),right:(Zc={right:Wr.view.default+"px"},Zc[si.upSm]={alignItems:"flex-end"},Zc[si.downXs]={right:gh+"px"},Zc),center:(mh={left:"50%",transform:"translateX(-50%)"},mh[si.upSm]={alignItems:"center"},mh)}),YW=function(t){var n=t.classes,r=n===void 0?{}:n,o=t.anchorOrigin,i=t.dense,s=t.children,a=Li(Ys.SnackbarContainer,Xc[o.vertical],Xc[o.horizontal],Xc.root,r.containerRoot,r["containerAnchorOrigin"+Sg(o)],i&&Xc.rootDense);return Fe.createElement("div",{className:a},s)},GW=v.memo(YW),Qv=function(t){var n=typeof t=="string"||v.isValidElement(t);return!n},xt,qW=function(e){d7(t,e);function t(r){var o;return o=e.call(this,r)||this,o.enqueueSnackbar=function(i,s){if(s===void 0&&(s={}),i==null)throw new Error("enqueueSnackbar called with invalid argument");var a=Qv(i)?i:s,l=Qv(i)?i.message:i,c=a.key,u=a.preventDuplicate,d=uc(a,["key","preventDuplicate"]),p=Yc(c),x=p?c:new Date().getTime()+Math.random(),g=AW(d,o.props),h=ot({id:x},d,{message:l,open:!0,entered:!1,requestClose:!1,persist:g("persist"),action:g("action"),content:g("content"),variant:g("variant"),anchorOrigin:g("anchorOrigin"),disableWindowBlurListener:g("disableWindowBlurListener"),autoHideDuration:g("autoHideDuration"),hideIconVariant:g("hideIconVariant"),TransitionComponent:g("TransitionComponent"),transitionDuration:g("transitionDuration"),TransitionProps:g("TransitionProps",!0),iconVariant:g("iconVariant",!0),style:g("style",!0),SnackbarProps:g("SnackbarProps",!0),className:Li(o.props.className,d.className)});return h.persist&&(h.autoHideDuration=void 0),o.setState(function(E){if(u===void 0&&o.props.preventDuplicate||u){var m=function(S){return p?S.id===x:S.message===l},y=E.queue.findIndex(m)>-1,C=E.snacks.findIndex(m)>-1;if(y||C)return E}return o.handleDisplaySnack(ot({},E,{queue:[].concat(E.queue,[h])}))}),x},o.handleDisplaySnack=function(i){var s=i.snacks;return s.length>=o.maxSnack?o.handleDismissOldest(i):o.processQueue(i)},o.processQueue=function(i){var s=i.queue,a=i.snacks;return s.length>0?ot({},i,{snacks:[].concat(a,[s[0]]),queue:s.slice(1,s.length)}):i},o.handleDismissOldest=function(i){if(i.snacks.some(function(u){return!u.open||u.requestClose}))return i;var s=!1,a=!1,l=i.snacks.reduce(function(u,d){return u+(d.open&&d.persist?1:0)},0);l===o.maxSnack&&(a=!0);var c=i.snacks.map(function(u){return!s&&(!u.persist||a)?(s=!0,u.entered?(u.onClose&&u.onClose(null,"maxsnack",u.id),o.props.onClose&&o.props.onClose(null,"maxsnack",u.id),ot({},u,{open:!1})):ot({},u,{requestClose:!0})):ot({},u)});return ot({},i,{snacks:c})},o.handleEnteredSnack=function(i,s,a){if(!Yc(a))throw new Error("handleEnteredSnack Cannot be called with undefined key");o.setState(function(l){var c=l.snacks;return{snacks:c.map(function(u){return u.id===a?ot({},u,{entered:!0}):ot({},u)})}})},o.handleCloseSnack=function(i,s,a){o.props.onClose&&o.props.onClose(i,s,a);var l=a===void 0;o.setState(function(c){var u=c.snacks,d=c.queue;return{snacks:u.map(function(p){return!l&&p.id!==a?ot({},p):p.entered?ot({},p,{open:!1}):ot({},p,{requestClose:!0})}),queue:d.filter(function(p){return p.id!==a})}})},o.closeSnackbar=function(i){var s=o.state.snacks.find(function(a){return a.id===i});Yc(i)&&s&&s.onClose&&s.onClose(null,"instructed",i),o.handleCloseSnack(null,"instructed",i)},o.handleExitedSnack=function(i,s){if(!Yc(s))throw new Error("handleExitedSnack Cannot be called with undefined key");o.setState(function(a){var l=o.processQueue(ot({},a,{snacks:a.snacks.filter(function(c){return c.id!==s})}));return l.queue.length===0?l:o.handleDismissOldest(l)})},xt=o.enqueueSnackbar,o.closeSnackbar,o.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:o.enqueueSnackbar.bind(Bv(o)),closeSnackbar:o.closeSnackbar.bind(Bv(o))}},o}var n=t.prototype;return n.render=function(){var o=this,i=this.state.contextValue,s=this.props,a=s.domRoot,l=s.children,c=s.dense,u=c===void 0?!1:c,d=s.Components,p=d===void 0?{}:d,x=s.classes,g=this.state.snacks.reduce(function(E,m){var y,C=Sg(m.anchorOrigin),w=E[C]||[];return ot({},E,(y={},y[C]=[].concat(w,[m]),y))},{}),h=Object.keys(g).map(function(E){var m=g[E],y=m[0];return Fe.createElement(GW,{key:E,dense:u,anchorOrigin:y.anchorOrigin,classes:x},m.map(function(C){return Fe.createElement(UW,{key:C.id,snack:C,classes:x,Component:p[C.variant],onClose:o.handleCloseSnack,onEnter:o.props.onEnter,onExit:o.props.onExit,onExited:sl([o.handleExitedSnack,o.props.onExited],C.id),onEntered:sl([o.handleEnteredSnack,o.props.onEntered],C.id)})}))});return Fe.createElement(EW.Provider,{value:i},l,a?Yl.createPortal(h,a):h)},u7(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Ci.maxSnack}}]),t}(v.Component);const KW=v.createContext(null),yh={didCatch:!1,error:null};class ZW extends v.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=yh}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:i,reason:"imperative-api"}),this.setState(yh)}}componentDidCatch(t,n){var r,o;(r=(o=this.props).onError)===null||r===void 0||r.call(o,t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;if(r&&n.error!==null&&XW(t.resetKeys,o)){var i,s;(i=(s=this.props).onReset)===null||i===void 0||i.call(s,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(yh)}}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")a=n(l);else if(r)a=v.createElement(r,l);else if(o===null||v.isValidElement(o))a=o;else throw s}return v.createElement(KW.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function XW(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}const x7=({error:e})=>{let t="Что-то пошло не так";return e.message==="No questions found"&&(t="Нет созданных вопросов"),e.message==="Quiz already completed"&&(t="Вы уже прошли этот опрос"),f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:f.jsx(Te,{sx:{textAlign:"center"},children:t})})};var C7=Symbol.for("immer-nothing"),e5=Symbol.for("immer-draftable"),On=Symbol.for("immer-state");function lr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Gs=Object.getPrototypeOf;function qs(e){return!!e&&!!e[On]}function _i(e){var t;return e?b7(e)||Array.isArray(e)||!!e[e5]||!!((t=e.constructor)!=null&&t[e5])||tp(e)||np(e):!1}var JW=Object.prototype.constructor.toString();function b7(e){if(!e||typeof e!="object")return!1;const t=Gs(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===JW}function jl(e,t){ep(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function ep(e){const t=e[On];return t?t.type_:Array.isArray(e)?1:tp(e)?2:np(e)?3:0}function e1(e,t){return ep(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function w7(e,t,n){const r=ep(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function QW(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function tp(e){return e instanceof Map}function np(e){return e instanceof Set}function ai(e){return e.copy_||e.base_}function t1(e,t){if(tp(e))return new Map(e);if(np(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&b7(e))return Gs(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[On];let r=Reflect.ownKeys(n);for(let o=0;o<r.length;o++){const i=r[o],s=n[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Gs(e),n)}function Eg(e,t=!1){return rp(e)||qs(e)||!_i(e)||(ep(e)>1&&(e.set=e.add=e.clear=e.delete=eH),Object.freeze(e),t&&jl(e,(n,r)=>Eg(r,!0))),e}function eH(){lr(2)}function rp(e){return Object.isFrozen(e)}var tH={};function Oi(e){const t=tH[e];return t||lr(0,e),t}var Nl;function S7(){return Nl}function nH(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function t5(e,t){t&&(Oi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function n1(e){r1(e),e.drafts_.forEach(rH),e.drafts_=null}function r1(e){e===Nl&&(Nl=e.parent_)}function n5(e){return Nl=nH(Nl,e)}function rH(e){const t=e[On];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function r5(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[On].modified_&&(n1(t),lr(4)),_i(e)&&(e=gd(t,e),t.parent_||yd(t,e)),t.patches_&&Oi("Patches").generateReplacementPatches_(n[On].base_,e,t.patches_,t.inversePatches_)):e=gd(t,n,[]),n1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==C7?e:void 0}function gd(e,t,n){if(rp(t))return t;const r=t[On];if(!r)return jl(t,(o,i)=>o5(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return yd(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,s=!1;r.type_===3&&(i=new Set(o),o.clear(),s=!0),jl(i,(a,l)=>o5(e,r,o,a,l,n,s)),yd(e,o,!1),n&&e.patches_&&Oi("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function o5(e,t,n,r,o,i,s){if(qs(o)){const a=i&&t&&t.type_!==3&&!e1(t.assigned_,r)?i.concat(r):void 0,l=gd(e,o,a);if(w7(n,r,l),qs(l))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(_i(o)&&!rp(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;gd(e,o),(!t||!t.scope_.parent_)&&yd(e,o)}}function yd(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Eg(t,n)}function oH(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:S7(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Pg;n&&(o=[r],i=Vl);const{revoke:s,proxy:a}=Proxy.revocable(o,i);return r.draft_=a,r.revoke_=s,a}var Pg={get(e,t){if(t===On)return e;const n=ai(e);if(!e1(n,t))return iH(e,n,t);const r=n[t];return e.finalized_||!_i(r)?r:r===vh(e.base_,t)?(xh(e),e.copy_[t]=i1(r,e)):r},has(e,t){return t in ai(e)},ownKeys(e){return Reflect.ownKeys(ai(e))},set(e,t,n){const r=k7(ai(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=vh(ai(e),t),i=o==null?void 0:o[On];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(QW(n,o)&&(n!==void 0||e1(e.base_,t)))return!0;xh(e),o1(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return vh(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,xh(e),o1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ai(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){lr(11)},getPrototypeOf(e){return Gs(e.base_)},setPrototypeOf(){lr(12)}},Vl={};jl(Pg,(e,t)=>{Vl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Vl.deleteProperty=function(e,t){return Vl.set.call(this,e,t,void 0)};Vl.set=function(e,t,n){return Pg.set.call(this,e[0],t,n,e[0])};function vh(e,t){const n=e[On];return(n?ai(n):e)[t]}function iH(e,t,n){var o;const r=k7(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function k7(e,t){if(!(t in e))return;let n=Gs(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Gs(n)}}function o1(e){e.modified_||(e.modified_=!0,e.parent_&&o1(e.parent_))}function xh(e){e.copy_||(e.copy_=t1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var sH=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const s=this;return function(l=i,...c){return s.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&lr(6),r!==void 0&&typeof r!="function"&&lr(7);let o;if(_i(t)){const i=n5(this),s=i1(t,void 0);let a=!0;try{o=n(s),a=!1}finally{a?n1(i):r1(i)}return t5(i,r),r5(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===C7&&(o=void 0),this.autoFreeze_&&Eg(o,!0),r){const i=[],s=[];Oi("Patches").generateReplacementPatches_(t,o,i,s),r(i,s)}return o}else lr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,o;return[this.produce(t,n,(s,a)=>{r=s,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){_i(e)||lr(8),qs(e)&&(e=aH(e));const t=n5(this),n=i1(e,void 0);return n[On].isManual_=!0,r1(t),n}finishDraft(e,t){const n=e&&e[On];(!n||!n.isManual_)&&lr(9);const{scope_:r}=n;return t5(r,t),r5(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Oi("Patches").applyPatches_;return qs(e)?r(e,t):this.produce(e,o=>r(o,t))}};function i1(e,t){const n=tp(e)?Oi("MapSet").proxyMap_(e,t):np(e)?Oi("MapSet").proxySet_(e,t):oH(e,t);return(t?t.scope_:S7()).drafts_.push(n),n}function aH(e){return qs(e)||lr(10,e),E7(e)}function E7(e){if(!_i(e)||rp(e))return e;const t=e[On];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=t1(e,t.scope_.immer_.useStrictShallowCopy_)}else n=t1(e,!0);return jl(n,(r,o)=>{w7(n,r,E7(o))}),t&&(t.finalized_=!1),n}var In=new sH,lH=In.produce;In.produceWithPatches.bind(In);In.setAutoFreeze.bind(In);In.setUseStrictShallowCopy.bind(In);In.applyPatches.bind(In);In.createDraft.bind(In);In.finishDraft.bind(In);let cH=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var uH={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const i5=e=>{let t;const n=new Set,r=(u,d)=>{const p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){const x=t;t=d??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(g=>g(t,x))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(uH?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,o,l);return l},dH=e=>e?i5(e):i5;var P7={exports:{}},M7={};/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var op=v,fH=I6;function pH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hH=typeof Object.is=="function"?Object.is:pH,mH=fH.useSyncExternalStore,gH=op.useRef,yH=op.useEffect,vH=op.useMemo,xH=op.useDebugValue;M7.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=gH(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=vH(function(){function l(x){if(!c){if(c=!0,u=x,x=r(x),o!==void 0&&s.hasValue){var g=s.value;if(o(g,x))return d=g}return d=x}if(g=d,hH(u,x))return g;var h=r(x);return o!==void 0&&o(g,h)?g:(u=x,d=h)}var c=!1,u,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,o]);var a=mH(e,i[0],i[1]);return yH(function(){s.hasValue=!0,s.value=a},[a]),xH(a),a};P7.exports=M7;var CH=P7.exports;const bH=Cd(CH);var T7={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:wH}=Fe,{useSyncExternalStoreWithSelector:SH}=bH;let s5=!1;const kH=e=>e;function EH(e,t=kH,n){(T7?"production":void 0)!=="production"&&n&&!s5&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),s5=!0);const r=SH(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return wH(r),r}const a5=e=>{(T7?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?dH(e):e,n=(r,o)=>EH(t,r,o);return Object.assign(n,t),n},PH=e=>e?a5(e):a5;var Ch={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const s1=new Map,Jc=e=>{const t=s1.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},MH=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=s1.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return s1.set(n.name,o),{type:"tracked",store:e,...o}},TH=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:a,...l}=t;let c;try{c=(i??(Ch?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(Ch?"production":void 0)!=="production"&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...d}=MH(a,c,l);let p=!0;o.setState=(h,E,m)=>{const y=n(h,E);if(!p)return y;const C=m===void 0?{type:s||"anonymous"}:typeof m=="string"?{type:m}:m;return a===void 0?(u==null||u.send(C,r()),y):(u==null||u.send({...C,type:`${a}/${C.type}`},{...Jc(l.name),[a]:o.getState()}),y)};const x=(...h)=>{const E=p;p=!1,n(...h),p=E},g=e(o.setState,r,o);if(d.type==="untracked"?u==null||u.init(g):(d.stores[d.store]=o,u==null||u.init(Object.fromEntries(Object.entries(d.stores).map(([h,E])=>[h,h===d.store?g:E.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let h=!1;const E=o.dispatch;o.dispatch=(...m)=>{(Ch?"production":void 0)!=="production"&&m[0].type==="__setState"&&!h&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),h=!0),E(...m)}}return u.subscribe(h=>{var E;switch(h.type){case"ACTION":if(typeof h.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return bh(h.payload,m=>{if(m.type==="__setState"){if(a===void 0){x(m.state);return}Object.keys(m.state).length!==1&&console.error(`
[zustand devtools middleware] Unsupported __setState action format.
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
`);const y=m.state[a];if(y==null)return;JSON.stringify(o.getState())!==JSON.stringify(y)&&x(y);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(m)});case"DISPATCH":switch(h.payload.type){case"RESET":return x(g),a===void 0?u==null?void 0:u.init(o.getState()):u==null?void 0:u.init(Jc(l.name));case"COMMIT":if(a===void 0){u==null||u.init(o.getState());return}return u==null?void 0:u.init(Jc(l.name));case"ROLLBACK":return bh(h.state,m=>{if(a===void 0){x(m),u==null||u.init(o.getState());return}x(m[a]),u==null||u.init(Jc(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return bh(h.state,m=>{if(a===void 0){x(m);return}JSON.stringify(o.getState())!==JSON.stringify(m[a])&&x(m[a])});case"IMPORT_STATE":{const{nextLiftedState:m}=h.payload,y=(E=m.computedStates.slice(-1)[0])==null?void 0:E.state;if(!y)return;x(a===void 0?y:y[a]),u==null||u.send(null,m);return}case"PAUSE_RECORDING":return p=!p}return}}),g},RH=TH,bh=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},Nt=PH()(RH((e,t)=>({answers:[],ownVariants:[],points:{},pointsSum:0,currentQuizStep:"startpage"}),{name:"quizView",enabled:!1,trace:!1}));function R7(e,t){Nt.setState(n=>lH(n,e),!1,t)}const DH=()=>{const e=Nt.getState().points;let t=Object.values(e).reduce((n,r)=>n+r);console.log("сумма ",t),Nt.setState({pointsSum:t})},zt=(e,t,n)=>{R7(o=>{const i=o.answers.findIndex(s=>e===s.questionId);i<0?o.answers.push({questionId:e,answer:t}):o.answers[i]={questionId:e,answer:t}},{type:"updateAnswer",questionId:e,answer:t});const r=Nt.getState().points;Nt.setState({points:{...r,[e]:n}}),DH()},fc=e=>Nt.setState(t=>({answers:t.answers.filter(n=>e!==n.questionId)}),!1,{type:"deleteAnswer",questionId:e}),_H=(e,t)=>R7(n=>{const r=n.ownVariants.findIndex(o=>o.id===e);r<0?n.ownVariants.push({id:e,variant:{id:cH(),answer:t,extendedText:"",hints:"",originalImageUrl:""}}):n.ownVariants[r].variant.answer=t},{type:"updateOwnVariant",id:e,answer:t}),vd=e=>Nt.setState({currentQuizStep:e},!1,{type:"setCurrentQuizStep",currentQuizStep:e}),l5=e=>!(e.title.length>0&&e.title!==" "||e.description.length>0&&e.description!==" "||e.content.back.length>0&&e.content.back!==" "||e.content.originalBack.length>0&&e.content.originalBack!==" "||e.content.innerName.length>0&&e.content.innerName!==" "||e.content.text.length>0&&e.content.text!==" "||e.content.video.length>0&&e.content.video!==" "||e.content.hint.text.length>0&&e.content.hint.text!==" ");function OH(){const{settings:e,questions:t}=jt(),[n,r]=v.useState(a),{answers:o,pointsSum:i}=Nt(S=>S),s=t.every(({content:S})=>S.rule.parentId!=="root")?t.indexOf(n):null;function a(){if(t.length===0)throw new Error("No questions found");if(e.cfg.haveRoot){const S=t.find(P=>P.id===e.cfg.haveRoot||P.content.id===e.cfg.haveRoot);if(!S)throw new Error("Root question not found");return S}return t[0]}const l=()=>t.find(S=>S.type==="result"&&S.content.rule.parentId==="line"),c=()=>{var P;const S=o.find(({questionId:k})=>k===n.id);if(S&&!de.isMoment(S.answer)){const k=Array.isArray(S.answer)?S.answer:[S.answer];for(const M of n.content.rule.main)if(k.some(T=>M.rules[0].answers.includes(T)))return M.next}if(!n.required){const k=n.content.rule.default;if(k.length>1&&k!==" ")return k;if(["date","page","text","number"].includes(n.type)&&n.content.rule.children.length===1)return n.content.rule.children[0]}return(P=t.find(k=>k.type==="result"&&k.content.rule.parentId===n.content.id))==null?void 0:P.id},u=v.useMemo(()=>e.cfg.score?l():c(),[o,n,t]),d=s!==null?t[s-1]:t.find(S=>S.id===n.content.rule.parentId||S.content.id===n.content.rule.parentId),p=()=>{const S=t.filter(M=>M.type==="result"&&M.content.rule.minScore!==void 0&&M.content.rule.minScore<=i),P=S.map(M=>M.type==="result"&&M.content.rule.minScore!==void 0?M.content.rule.minScore:0),k=Math.max(...P);return console.log(S),console.log(P),console.log(k),S[P.indexOf(k)]},g=(()=>{let S;if(console.log(11111111111),e.cfg.score?(console.log(222222222),s!==null&&(console.log(33333333333),S=t[s+1],console.log(4444444),console.log("перед ифом",S),((S==null?void 0:S.type)==="result"||S==null)&&(S=p()),console.log(5555555555))):(console.log(6666666),s!==null?(console.log(777777777),S=t[s+1]??t.find(P=>P.type==="result"&&P.content.rule.parentId==="line")):(console.log(88888888888888),S=t.find(P=>P.id===u||P.content.id===u))),console.log("next",S),!S&&n.type!=="result")throw new Error("Не найден следующий вопрос");return S})(),h=v.useCallback(()=>{if((g==null?void 0:g.type)!=="result")throw new Error("Current question is not result");r(g),(e.cfg.resultInfo.showResultForm==="after"||l5(g))&&vd("contactform")},[g,e.cfg.resultInfo.showResultForm]),E=v.useCallback(()=>{if(n.type!=="result")throw new Error("Current question is not result");if(l5(n)){xt("Данные отправлены");return}vd("question")},[n]),m=v.useCallback(()=>{if(!d)throw new Error("Previous question not found");r(d)},[d]),y=v.useCallback(()=>{if(!g)throw new Error("Next question not found");if(g.type==="result")return h();r(g)},[g,h]),C=!!d,w=v.useMemo(()=>{const S=o.some(({questionId:P})=>P===n.id);return"required"in n.content&&n.content.required?S:!!g},[o,n.content,n.id,g]);return v.useDebugValue({linearQuestionIndex:s,currentQuestion:n,prevQuestion:d,nextQuestion:g}),{currentQuestion:n,currentQuestionStepNumber:s===null?null:s+1,isNextButtonEnabled:w,isPreviousButtonEnabled:C,moveToPrevQuestion:m,moveToNextQuestion:y,showResultAfterContactForm:E}}function Mg(e){throw new Error(`Shouldn't reach here: ${e}`)}const vr=sn({...Ho,components:{MuiButton:{variants:[{props:{variant:"contained"},style:{padding:"13px 20px",borderRadius:"8px",boxShadow:"none"}},{props:{variant:"outlined"},style:{padding:"10px 20px",borderRadius:"8px","&:hover":{backgroundColor:"#581CA7",border:"1px solid #581CA7"}}}]}}}),IH=sn({...vr,palette:{primary:{main:"#7E2AEA"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#7E2AEA"},background:{default:"#FFFFFF"}}}),$H=sn({...vr,palette:{primary:{main:"#7E2AEA"},secondary:{main:"#252734"},text:{primary:"#FFFFFF",secondary:"#7E2AEA"},background:{default:"#333647"}}}),FH=sn({...vr,palette:{primary:{main:"#D34085"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#D34085"},background:{default:"#FFF9FC"}}}),AH=sn({...vr,palette:{primary:{main:"#D34085"},secondary:{main:"#252734"},text:{primary:"#FFFFFF",secondary:"#D34085"},background:{default:"#333647"}}}),LH=sn({...vr,palette:{primary:{main:"#4E4D51"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#FFF9FC"},background:{default:"#FFFFFF"}}}),jH=sn({...vr,palette:{primary:{main:"#758E4F"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#758E4F"},background:{default:"#F9FBF1"}}}),NH=sn({...vr,palette:{primary:{main:"#7E2AEA"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#7E2AEA"},background:{default:"#FBF8FF"}}}),VH=sn({...vr,palette:{primary:{main:"#F2B133"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#F2B133"},background:{default:"#FFFCF6"}}}),zH=sn({...vr,palette:{primary:{main:"#E6AA37"},secondary:{main:"#FFFCF6"},text:{primary:"#FFFFFF",secondary:"#F2B133"},background:{default:"#333647"}}}),BH=sn({...vr,palette:{primary:{main:"#4964ED"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#4964ED"},background:{default:"#F5F7FF"}}}),WH=sn({...vr,palette:{primary:{main:"#07A0C3"},secondary:{main:"#252734"},text:{primary:"#FFFFFF",secondary:"#07A0C3"},background:{default:"#333647"}}}),wn={StandardTheme:{theme:IH,isLight:!0},StandardDarkTheme:{theme:$H,isLight:!1},PinkTheme:{theme:FH,isLight:!0},PinkDarkTheme:{theme:AH,isLight:!1},BlackWhiteTheme:{theme:LH,isLight:!0},OliveTheme:{theme:jH,isLight:!0},YellowTheme:{theme:VH,isLight:!0},GoldDarkTheme:{theme:zH,isLight:!1},PurpleTheme:{theme:NH,isLight:!0},BlueTheme:{theme:BH,isLight:!0},BlueDarkTheme:{theme:WH,isLight:!1}},D7=v.createContext(null),Zt=()=>{const e=v.useContext(D7);if(e===null)throw new Error("rootContainerSize context is null");return e};function HH({color:e}){return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M7.5 7.96875C8.53553 7.96875 9.375 7.12928 9.375 6.09375C9.375 5.05822 8.53553 4.21875 7.5 4.21875C6.46447 4.21875 5.625 5.05822 5.625 6.09375C5.625 7.12928 6.46447 7.96875 7.5 7.96875Z",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M12.1875 6.09375C12.1875 10.3125 7.5 13.5938 7.5 13.5938C7.5 13.5938 2.8125 10.3125 2.8125 6.09375C2.8125 4.85055 3.30636 3.65826 4.18544 2.77919C5.06451 1.90011 6.2568 1.40625 7.5 1.40625C8.7432 1.40625 9.93549 1.90011 10.8146 2.77919C11.6936 3.65826 12.1875 4.85055 12.1875 6.09375V6.09375Z",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})]})})}function UH({color:e}){return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M1.875 3.28125H13.125V11.25C13.125 11.3743 13.0756 11.4935 12.9877 11.5815C12.8998 11.6694 12.7806 11.7188 12.6562 11.7188H2.34375C2.21943 11.7188 2.1002 11.6694 2.01229 11.5815C1.92439 11.4935 1.875 11.3743 1.875 11.25V3.28125Z",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M13.125 3.28125L7.5 8.4375L1.875 3.28125",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})]})})}function YH({color:e}){return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M6.5 8.375C8.57107 8.375 10.25 6.69607 10.25 4.625C10.25 2.55393 8.57107 0.875 6.5 0.875C4.42893 0.875 2.75 2.55393 2.75 4.625C2.75 6.69607 4.42893 8.375 6.5 8.375Z",stroke:e,strokeMiterlimit:"10"}),f.jsx("path",{d:"M0.8125 11.6568C1.38844 10.659 2.21689 9.83044 3.21458 9.25436C4.21227 8.67828 5.34403 8.375 6.49609 8.375C7.64816 8.375 8.77992 8.67828 9.77761 9.25436C10.7753 9.83044 11.6037 10.659 12.1797 11.6568",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M0.765625 11.6914H11.9866",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})]})})}function GH({color:e}){return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M5.41992 7.31237C5.90228 8.30847 6.70774 9.11187 7.70508 9.59166C7.77865 9.6265 7.86002 9.64157 7.94118 9.63541C8.02235 9.62925 8.10051 9.60205 8.16797 9.55651L9.63281 8.57799C9.69753 8.5341 9.77232 8.50731 9.85019 8.50014C9.92806 8.49297 10.0065 8.50564 10.0781 8.53698L12.8203 9.71471C12.914 9.75372 12.9923 9.82245 13.0432 9.91033C13.094 9.9982 13.1145 10.1004 13.1016 10.201C13.0146 10.8794 12.6835 11.5029 12.1702 11.9547C11.6568 12.4066 10.9964 12.656 10.3125 12.6561C8.19906 12.6561 6.17217 11.8166 4.67774 10.3221C3.18331 8.82769 2.34375 6.80081 2.34375 4.68737C2.3439 4.00346 2.59325 3.34304 3.04513 2.82968C3.49701 2.31633 4.12047 1.98522 4.79883 1.8983C4.89951 1.88537 5.00166 1.90589 5.08954 1.95671C5.17741 2.00754 5.24615 2.08583 5.28516 2.17955L6.46289 4.9276C6.49352 4.99812 6.50633 5.07508 6.5002 5.15172C6.49407 5.22835 6.46918 5.3023 6.42773 5.36705L5.44922 6.85534C5.40565 6.92265 5.38009 7.00001 5.37496 7.08003C5.36983 7.16005 5.38531 7.24004 5.41992 7.31237V7.31237Z",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})})})}function qH({color:e}){return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M8.67188 1.60156L8.67188 13.3838",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M10.6016 4.21875H13.7768C13.8534 4.21875 13.9268 4.26814 13.9809 4.35604C14.035 4.44395 14.0655 4.56318 14.0655 4.6875V10.3125C14.0655 10.4368 14.035 10.556 13.9809 10.644C13.9268 10.7319 13.8534 10.7812 13.7768 10.7812H10.6016",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M8.67081 10.7812H1.58194C1.41103 10.7812 1.24711 10.7319 1.12625 10.644C1.0054 10.556 0.9375 10.4368 0.9375 10.3125V4.6875C0.9375 4.56318 1.0054 4.44395 1.12625 4.35604C1.24711 4.26814 1.41103 4.21875 1.58194 4.21875H8.67081",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M3.98438 6.5625H5.625",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M7.85156 1.60156H9.49219",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M7.85156 13.3828H9.49219",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M4.80469 6.5625V8.67188",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})]})})}const xd=({checked:e=!1,color:t="#7E2AEA"})=>(Le(),f.jsx(J,{sx:{height:"24px",width:"24px",borderRadius:"6px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:e?t:"#F2F3F7",border:"1px solid #9A9AAF"},children:e&&f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 25 18",fill:"none",children:f.jsx("path",{d:"M2 9L10 16.5L22.5 1.5",stroke:"#ffffff",strokeWidth:"4",strokeLinecap:"round"})})}));function KH({label:e,handleChange:t,checked:n,sx:r,dataCy:o,colorIcon:i}){return f.jsx(nc,{control:f.jsx(s6,{sx:{padding:"0px 13px 1px 11px"},disableRipple:!0,icon:f.jsx(xd,{}),checkedIcon:f.jsx(xd,{checked:!0,color:i}),onChange:t,checked:n,"data-cy":o}),label:e,sx:{color:"#9A9AAF",height:"26px",...r}})}const Tg=e=>f.jsxs("svg",{...e,height:"1em",viewBox:"0 0 89 81",fill:"none",children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.5604 0.0885217C24.3105 -1.09878 17.239 9.91147 10.6615 17.8703C4.88905 24.8549 0.590996 32.7441 0.0917664 41.7955C-0.439369 51.4255 1.3075 61.4545 7.86805 68.5172C14.6258 75.7923 24.7486 80.3889 34.5604 78.9028C43.5576 77.54 47.5388 67.6598 54.2372 61.4939C61.5105 54.799 75.061 51.6851 74.8731 41.7955C74.6848 31.8908 60.3836 29.952 53.5024 22.8328C46.3747 15.4585 44.7425 1.26797 34.5604 0.0885217Z",fill:"#7E2AEA"}),f.jsx("circle",{cx:"60.0543",cy:"75.1555",r:"5.65583",fill:"#7E2AEA"}),f.jsx("circle",{cx:"54.4046",cy:"12.3947",r:"2.1546",fill:"#7E2AEA"}),f.jsx("path",{d:"M88.866 39.4685C88.2378 33.3607 85.3643 27.7037 80.8025 23.594C76.2408 19.4843 70.3156 17.2146 64.1757 17.2248C63.3039 17.2252 62.4328 17.2708 61.5658 17.3614C55.4608 18.0025 49.8093 20.8814 45.7015 25.443C41.5937 30.0046 39.3205 35.9256 39.3203 42.0642V42.0642V77.549H49.9658V62.468C54.128 65.3636 59.0787 66.9119 64.1491 66.9036C65.0208 66.9033 65.8919 66.8577 66.759 66.767C70.0031 66.426 73.1483 65.4494 76.0151 63.8929C78.8818 62.3364 81.4138 60.2305 83.4667 57.6955C85.5195 55.1604 87.0529 52.2458 87.9793 49.1181C88.9058 45.9904 89.2071 42.7109 88.866 39.4667V39.4685ZM75.1937 51.0011C74.0243 52.4537 72.5783 53.6599 70.9395 54.5498C69.3007 55.4397 67.5017 55.9956 65.6465 56.1854C65.149 56.2371 64.6492 56.2631 64.1491 56.2635C60.9296 56.2605 57.8068 55.1631 55.2932 53.1515C52.7796 51.1398 51.0245 48.3334 50.3161 45.1929C49.6077 42.0523 49.988 38.7642 51.3945 35.8683C52.8011 32.9723 55.1504 30.6406 58.0568 29.2558C60.9632 27.871 64.2541 27.5154 67.3892 28.2473C70.5244 28.9793 73.3176 30.7553 75.3103 33.284C77.303 35.8126 78.3769 38.9436 78.3558 42.1629C78.3346 45.3823 77.2196 48.4989 75.1937 51.0011Z",fill:"#151515"})]}),ZH=rc,XH=/^(([^<>()[\].,:\s@"]+(\.[^<>()[\].,:\s@"]+)*)|(".+"))@(([^<>()[\].,:\s@"]+\.)+[^<>()[\].,:\s@"]{2,})$/iu,JH=({currentQuestion:e,onShowResult:t})=>{var A;const n=Le(),{settings:r,questions:o,quizId:i}=jt(),[s,a]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState(""),[p,x]=v.useState(""),[g,h]=v.useState(""),[E,m]=v.useState(""),y=v.useRef(!0),[C,w]=v.useState(!1),S=Zt()<850;if(!(e.type==="result"?e:o.find($=>r!=null&&r.cfg.haveRoot?$.type==="result"&&$.content.rule.parentId===e.content.id:$.type==="result"&&$.content.rule.parentId==="line")))throw new Error("Result question not found");const k=async()=>{const $=r.cfg.formContact.fields||r.cfg.formContact,R={};if(l.length>0&&(R.name=l),u.length>0&&(R.email=u),p.length>0&&(R.phone=p),E.length>0&&(R.address=E),g.length>0&&(R.customs={[$.text.text||"Фамилия"]:g}),Object.keys(R).length>0)try{await D9({questionId:e.id,body:R,qid:i});const O=JSON.parse(localStorage.getItem("sessions")||"{}");localStorage.setItem("sessions",JSON.stringify({...O,[i]:new Date().getTime()}))}catch{xt("ответ не был засчитан")}},M=r.cfg.formContact.fields||r.cfg.formContact,T={};for(const $ in M){const R=M[$];R.used&&(T[$]=R)}const D=Object.keys(T).length>2;async function _(){if(r.cfg.formContact.fields.email.used!==XH.test(u))return xt("введена некорректная почта");if(y.current){if(l.length===0&&u.length===0&&p.length===0&&g.length===0&&E.length===0)return xt("Пожалуйста, заполните поля");w(!0);try{await k(),y.current=!1;const R=JSON.parse(localStorage.getItem("sessions")||"{}");R[i]=Date.now(),localStorage.setItem("sessions",JSON.stringify(R)),xt("Данные успешно отправлены")}catch{xt("повторите попытку позже")}t()}w(!1)}return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n.palette.background.default,height:"100%",overflow:"auto","&::-webkit-scrollbar":{width:"0",display:"none",msOverflowStyle:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:f.jsxs(J,{sx:{width:D&&!S?"100%":S?void 0:"530px",borderRadius:"4px",height:"100%",display:D&&!S?"flex":void 0},children:[f.jsxs(J,{sx:{width:D&&!S?"100%":void 0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRight:D&&!S?"1px solid gray":void 0},children:[f.jsx(Te,{sx:{textAlign:"center",m:"20px 0",fontSize:"28px",color:n.palette.text.primary,wordBreak:"break-word"},children:r.cfg.formContact.title||"Заполните форму, чтобы получить результаты теста"}),r.cfg.formContact.desc&&f.jsx(Te,{sx:{color:n.palette.text.primary,textAlign:"center",m:"20px 0",fontSize:"18px",wordBreak:"break-word"},children:r.cfg.formContact.desc})]}),f.jsxs(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",backgroundColor:n.palette.background.default,p:"30px"},children:[f.jsx(J,{sx:{display:"flex",flexDirection:"column",my:"20px"},children:f.jsx(QH,{name:l,setName:c,email:u,setEmail:d,phone:p,setPhone:x,text:g,setText:h,adress:E,setAdress:m})}),f.jsx(Mr,{disabled:!(s&&!C),variant:"contained",onClick:_,children:((A=r.cfg.formContact)==null?void 0:A.button)||"Получить результаты"}),f.jsxs(J,{sx:{display:"flex",mt:"20px",width:S?"300px":"450px"},children:[f.jsx(KH,{label:"",handleChange:({target:$})=>{a($.checked)},checked:s,colorIcon:n.palette.primary.main}),f.jsxs(Te,{sx:{color:n.palette.text.primary},children:["С",f.jsxs(no,{href:"https://shub.pena.digital/ppdd",target:"_blank",children:["Положением об обработке персональных данных"," "]})," и ",f.jsxs(no,{href:"https://shub.pena.digital/docs/privacy",target:"_blank",children:[" ","Политикой конфиденциальности"," "]})," ознакомлен"]})]}),f.jsxs(J,{component:no,target:"_blank",href:"https://quiz.pena.digital",sx:{display:"flex",alignItems:"center",mt:"20px",gap:"15px",textDecoration:"none"},children:[f.jsx(Tg,{style:{fontSize:"34px",color:wn[r.cfg.theme].isLight?"#151515":"#FFFFFF"}}),f.jsx(Te,{sx:{fontSize:"20px",color:wn[r.cfg.theme].isLight?"#4D4D4D":"#F5F7FF",whiteSpace:"nowrap"},children:"Сделано на PenaQuiz"})]})]})]})})},QH=({name:e,setName:t,email:n,setEmail:r,phone:o,setPhone:i,text:s,setText:a,adress:l,setAdress:c})=>{const{settings:u}=jt(),d=u.cfg.formContact.fields;if(!d)return null;const p=f.jsx($a,{onChange:({target:m})=>t(m.value),id:e,title:d.name.innerText||"Введите имя",desc:d.name.text||"имя",Icon:YH}),x=f.jsx($a,{onChange:({target:m})=>r(m.value),id:n,title:d.email.innerText||"Введите Email",desc:d.email.text||"Email",Icon:UH}),g=f.jsx($a,{onChange:({target:m})=>i(m.value),id:o,title:d.phone.innerText||"Введите номер телефона",desc:d.phone.text||"номер телефона",Icon:GH}),h=f.jsx($a,{onChange:({target:m})=>a(m.value),id:s,title:d.text.text||"Введите фамилию",desc:d.text.innerText||"фамилию",Icon:qH}),E=f.jsx($a,{onChange:({target:m})=>c(m.value),id:l,title:d.address.innerText||"Введите адрес",desc:d.address.text||"адрес",Icon:HH});return Object.values(d).some(m=>m.used)?f.jsxs(f.Fragment,{children:[d.name.used?p:f.jsx(f.Fragment,{}),d.email.used?x:f.jsx(f.Fragment,{}),d.phone.used?g:f.jsx(f.Fragment,{}),d.text.used?h:f.jsx(f.Fragment,{}),d.address.used?E:f.jsx(f.Fragment,{})]}):f.jsxs(f.Fragment,{children:[p,x,g]})},$a=({title:e,desc:t,Icon:n,onChange:r,id:o})=>{const i=Le(),s=Zt()<600;return f.jsxs(J,{m:"15px 0",children:[f.jsx(Te,{mb:"7px",color:i.palette.text.primary,children:e}),f.jsx(ZH,{onChange:r,sx:{width:s?"300px":"350px"},placeholder:t,InputProps:{startAdornment:f.jsx(Bm,{position:"start",children:f.jsx(n,{color:"gray"})})}})]})},eU=({stepNumber:e,nextButton:t,prevButton:n})=>{const r=Le(),{questions:o}=jt();return console.log(o),f.jsx(J,{sx:{position:"relative",padding:"15px 0",borderTop:`1px solid ${r.palette.grey[400]}`,height:"75px",display:"flex"},children:f.jsxs(J,{sx:{width:"100%",maxWidth:"1000px",padding:"0 10px",margin:"0 auto",display:"flex",alignItems:"center",gap:"10px"},children:[e!==null&&f.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:"10px",marginRight:"auto",color:r.palette.text.primary},children:[f.jsx(Te,{children:"Шаг"}),f.jsx(Te,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontWeight:"bold",borderRadius:"50%",width:"30px",height:"30px",color:"#FFF",background:r.palette.primary.main},children:e}),f.jsx(Te,{children:"Из"}),f.jsx(Te,{sx:{fontWeight:"bold"},children:o.filter(i=>i.type!=="result").length})]}),f.jsx(J,{sx:{display:"flex",alignItems:"center",gap:"10px",marginRight:"auto"}}),n,t]})})};function tU({sx:e}){return f.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"&:hover path":{stroke:"#581CA7"},"&:active path":{stroke:"#FB5607"},"&:hover rect":{stroke:"#581CA7"},"&:active rect":{stroke:"#FB5607"},...e},children:f.jsxs("svg",{width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("rect",{x:"1",y:"2.5",width:"18",height:"18",rx:"5",stroke:"#7E2AEA",strokeWidth:"1.5"}),f.jsx("path",{d:"M1 7.5H19",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinejoin:"round"}),f.jsx("path",{d:"M14.5 1L14.5 4",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M5.5 1L5.5 4",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M4.5 11.5H5.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M9.5 11.5H10.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M14.5 11.5H15.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M4.5 15.5H5.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M9.5 15.5H10.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M14.5 15.5H15.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})}const nU=({currentQuestion:e})=>{var c;const t=Le(),{settings:n,quizId:r}=jt(),{answers:o}=Nt(),i=(c=o.find(({questionId:u})=>u===e.id))==null?void 0:c.answer,s=de(i)||de(),[a,l]=v.useState(!1);return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:t.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px"},children:f.jsx(fN,{slots:{openPickerIcon:()=>f.jsx(tU,{sx:{"& path":{stroke:t.palette.primary.main},"& rect":{stroke:t.palette.primary.main}}})},value:s,onChange:async u=>{if(!(a||!u)){l(!0);try{await qt({questionId:e.id,body:de(u).format("YYYY.MM.DD"),qid:r}),zt(e.id,u,0)}catch{xt("ответ не был засчитан")}l(!1)}},slotProps:{openPickerButton:{sx:{p:0},"data-cy":"open-datepicker"},layout:{sx:{backgroundColor:t.palette.background.default}}},sx:{"& .MuiInputBase-root":{backgroundColor:wn[n.cfg.theme].isLight?"white":t.palette.background.default,borderRadius:"10px",maxWidth:"250px",pr:"22px","& input":{py:"11px",pl:"20px",lineHeight:"19px"},"& fieldset":{borderColor:"#9A9AAF"}}}})})]})};function ip({color:e="#7E2AEA"}){return Le(),f.jsx(J,{sx:{height:"26px",width:"26px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("rect",{x:"0.5",y:"0.5",width:"25",height:"25",rx:"12.5",fill:e,stroke:e}),f.jsx("rect",{x:"8",y:"8",width:"10",height:"10",rx:"5",fill:"white"})]})})}function sp(){return Le(),f.jsx(J,{sx:{height:"26px",width:"26px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("rect",{x:"0.5",y:"0.5",width:"25",height:"25",rx:"12.5",fill:"#F2F3F7",stroke:"#9A9AAF"})})})}const rU='"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif';function oU(){const e=document.createElement("canvas");e.width=e.height=1;const t=e.getContext("2d",{willReadFrequently:!0});return t.textBaseline="top",t.font=`100px ${rU}`,t.scale(.01,.01),t}function c5(e,t,n){return e.clearRect(0,0,100,100),e.fillStyle=n,e.fillText(t,0,0),e.getImageData(0,0,1,1).data.join(",")}function u5(e){const t=oU(),n=c5(t,e,"#fff"),r=c5(t,e,"#000");return r===n&&!r.startsWith("0,0,0,")}function iU(e="Twemoji Country Flags",t="https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2"){if(typeof window<"u"&&u5("😊")&&!u5("🇨🇭")){const n=document.createElement("style");return n.textContent=`@font-face {
font-family: "${e}";
unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067,
U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
src: url('${t}') format('woff2');
font-display: swap;
}`,document.head.appendChild(n),!0}return!1}iU();const sU=({currentQuestion:e})=>{const t=Le(),{quizId:n}=jt(),{answers:r}=Nt(),{answer:o}=r.find(({questionId:a})=>a===e.id)??{},[i,s]=v.useState(!1);return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:t.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsx(Af,{name:e.id,value:e.content.variants.findIndex(({id:a})=>o===a),onChange:({target:a})=>{zt(e.id,e.content.variants[Number(a.value)].answer,e.content.variants[Number(a.value)].points||0)},sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between",marginTop:"20px"},children:f.jsx(J,{sx:{display:"flex",width:"100%",gap:"42px",flexWrap:"wrap"},children:e.content.variants.map((a,l)=>f.jsxs($f,{disabled:i,sx:{borderRadius:"12px",border:"1px solid",borderColor:o===a.id?t.palette.primary.main:"#9A9AAF",overflow:"hidden",maxWidth:"317px",width:"100%",height:"255px"},children:[f.jsx(J,{sx:{display:"flex",alignItems:"center",height:"193px",background:"#ffffff"},children:f.jsx(J,{sx:{width:"100%",display:"flex",justifyContent:"center"},children:a.extendedText&&f.jsx(Te,{fontSize:"100px",children:a.extendedText})})}),f.jsx(nc,{sx:{margin:0,padding:"15px",color:t.palette.text.primary,display:"flex",gap:"10px",alignItems:a.answer.length<=60?"center":"flex-start",position:"relative",height:"80px","& .MuiFormControlLabel-label":{wordBreak:"break-word",height:a.answer.length<=60?void 0:"60px",overflow:"auto",paddingLeft:"45px","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#b8babf"}}},value:l,onClick:async c=>{if(c.preventDefault(),!i){s(!0);try{await qt({questionId:e.id,body:e.content.variants[l].extendedText+" "+e.content.variants[l].answer,qid:n}),zt(e.id,e.content.variants[l].id,e.content.variants[l].points||0)}catch{xt("ответ не был засчитан")}if(o===e.content.variants[l].id){fc(e.id);try{await qt({questionId:e.id,body:"",qid:n})}catch{xt("ответ не был засчитан")}}s(!1)}},control:f.jsx(Ff,{checkedIcon:f.jsx(ip,{color:t.palette.primary.main}),icon:f.jsx(sp,{})}),label:f.jsx(J,{sx:{display:"flex",gap:"10px"},children:f.jsx(Te,{sx:{wordBreak:"break-word",lineHeight:"normal"},children:a.answer})})},a.id)]},a.id))})})]})};function aU({width:e}){return Le(),f.jsxs("svg",{width:"35",height:"33",viewBox:"0 0 35 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsxs("g",{id:"Close",children:[f.jsx("g",{id:"Rectangle 57",opacity:"0.3",filter:"url(#filter0_d_4080_12482)",children:f.jsx("rect",{x:"6",y:"4",width:"24",height:"24",rx:"12",fill:"#9A9AAF"})}),f.jsxs("g",{id:"Group 331",children:[f.jsx("path",{id:"Vector 586",d:"M22.8516 10.9517L12.9521 20.8512",stroke:"#FDFDFF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{id:"Vector 587",d:"M22.8516 20.8462L12.9521 10.9467",stroke:"#FDFDFF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),f.jsx("defs",{children:f.jsxs("filter",{id:"filter0_d_4080_12482",x:"0",y:"0",width:"36",height:"36",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[f.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),f.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),f.jsx("feMorphology",{radius:"1",operator:"dilate",in:"SourceAlpha",result:"effect1_dropShadow_4080_12482"}),f.jsx("feOffset",{dy:"2"}),f.jsx("feGaussianBlur",{stdDeviation:"2.5"}),f.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),f.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.416562 0 0 0 0 0.452406 0 0 0 0 0.775 0 0 0 0.18 0"}),f.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4080_12482"}),f.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4080_12482",result:"shape"})]})})]})}function lU({color:e="#9A9AAF"}){return Le(),f.jsx(J,{sx:{height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[f.jsx("path",{d:"M10.75 10.25L16 5L21.25 10.25",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M16 19V5",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M27 19V26C27 26.2652 26.8946 26.5196 26.7071 26.7071C26.5196 26.8946 26.2652 27 26 27H6C5.73478 27 5.48043 26.8946 5.29289 26.7071C5.10536 26.5196 5 26.2652 5 26V19",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function cU({width:e=20,height:t=20,sx:n,onClick:r,className:o,color:i="#7e2aea"}){return f.jsx(ta,{sx:n,className:o,onClick:r,children:f.jsxs("svg",{width:e,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1C5.02944 1 1 5.02944 1 10C1 14.9706 5.02944 19 10 19Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M9.25 9.25H10V14.5H10.75",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M9.8125 7C10.4338 7 10.9375 6.49632 10.9375 5.875C10.9375 5.25368 10.4338 4.75 9.8125 4.75C9.19118 4.75 8.6875 5.25368 8.6875 5.875C8.6875 6.49632 9.19118 7 9.8125 7Z",fill:i})]})})}const d5=419430400,f5={picture:{title:"Добавить изображение",description:"Принимает изображения"},video:{title:"Добавить видео",description:"Принимает .mp4 и .mov формат — максимум 50мб"},audio:{title:"Добавить аудиофайл",description:"Принимает аудиофайлы"},document:{title:"Добавить документ",description:"Принимает документы"}},a1={picture:[".jpeg",".jpg",".png",".ico",".gif",".tiff",".webp",".eps",".svg"],video:[".mp4",".mov",".wmv",".avi",".avchd",".flv",".f4v",".swf",".mkv",".webm",".mpeg-2"],audio:[".aac",".aiff",".dsd",".flac",".mp3",".mqa",".ogg",".wav",".wma"],document:[".doc",".docx",".dotx",".rtf",".odt",".pdf",".txt",".xls",".ppt",".xlsx",".pptx",".pages"]},uU=({currentQuestion:e})=>{var g;const t=Le(),{answers:n}=Nt(),{quizId:r}=jt(),[o,i]=v.useState(null),[s,a]=v.useState(!1),[l,c]=v.useState(!1),u=Zt()<500,d=(g=n.find(({questionId:h})=>h===e.id))==null?void 0:g.answer,p=async h=>{if(s||!h)return;if(console.log(h.size),console.log(d5),h.size>d5)return i("errorSize");if(!a1[e.content.type].some(m=>h.name.toLowerCase().endsWith(m)))return i("errorType");a(!0);try{const m=await R9({questionId:e.id,body:{file:h,name:h.name},qid:r});console.log(m),await qt({questionId:e.id,body:`https://storage.yandexcloud.net/squizanswer/${r}/${e.id}/${m.data.fileIDMap[e.id]}`,qid:r}),zt(e.id,`${h.name}|${URL.createObjectURL(h)}`,0)}catch(m){console.log(m),xt("ответ не был засчитан")}a(!1)},x=h=>{h.preventDefault(),c(!1);const E=h.dataTransfer.files[0];p(E)};return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:t.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsxs(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px",maxWidth:d!=null&&d.split("|")[0]?"640px":"600px"},children:[d!=null&&d.split("|")[0]?f.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:"15px"},children:[f.jsx(Te,{color:t.palette.text.primary,children:"Вы загрузили:"}),f.jsxs(J,{sx:{padding:"5px 5px 5px 16px",backgroundColor:t.palette.primary.main,borderRadius:"8px",color:"#FFFFFF",display:"flex",alignItems:"center",overflow:"hidden",gap:"15px"},children:[f.jsx(Te,{sx:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},children:d==null?void 0:d.split("|")[0]}),f.jsx(ta,{sx:{p:0},onClick:async()=>{d.length>0&&(a(!0),await qt({questionId:e.id,body:"",qid:r})),console.log(d),zt(e.id,"",0),a(!1)},children:f.jsx(aU,{})})]})]}):f.jsxs(J,{sx:{display:"flex",alignItems:"center"},children:[s?f.jsx(D6,{variant:"rounded",sx:{width:"100%",height:"120px",maxWidth:"560px"}}):f.jsxs(Ir,{component:"label",sx:{justifyContent:"flex-start",width:"100%"},children:[f.jsx("input",{onChange:h=>{var E;return p((E=h.target.files)==null?void 0:E[0])},hidden:!0,accept:a1[e.content.type].join(","),multiple:!0,type:"file"}),f.jsxs(J,{onDragEnter:()=>!(d!=null&&d.split("|")[0])&&c(!0),onDragLeave:()=>c(!1),onDragOver:h=>h.preventDefault(),onDrop:x,sx:{width:"100%",height:u?void 0:"120px",display:"flex",gap:"50px",justifyContent:"flex-start",alignItems:"center",padding:"33px 44px 33px 55px",backgroundColor:t.palette.background.default,border:`1px solid ${l?"red":"#9A9AAF"}`,borderRadius:"8px"},children:[f.jsx(lU,{}),f.jsxs(J,{children:[f.jsx(Te,{sx:{color:"#9A9AAF",fontWeight:500},children:f5[e.content.type].title}),f.jsx(Te,{sx:{color:"#9A9AAF",fontSize:"16px",lineHeight:"19px"},children:f5[e.content.type].description})]})]})]}),f.jsx(cU,{sx:{width:"40px",height:"40px"},color:t.palette.primary.main,onClick:()=>i(e.content.type)})]}),d&&e.content.type==="picture"&&f.jsx("img",{src:d.split("|")[1],alt:"",style:{marginTop:"15px",maxWidth:"300px",maxHeight:"300px"}}),d&&e.content.type==="video"&&f.jsx("video",{src:d.split("|")[1],style:{marginTop:"15px",maxWidth:"300px",maxHeight:"300px",objectFit:"cover"}})]}),f.jsx(zm,{open:o!==null,onClose:()=>i(null),children:f.jsx(J,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:u?300:400,bgcolor:"background.paper",borderRadius:3,boxShadow:24,p:4},children:f.jsx(dU,{status:o})})})]})},dU=({status:e})=>{switch(e){case null:return null;case"errorType":return f.jsx(Te,{children:"Выбран некорректный тип файла"});case"errorSize":return f.jsx(Te,{children:"Файл слишком большой. Максимальный размер 50 МБ"});default:return f.jsxs(f.Fragment,{children:[f.jsx(Te,{children:"Допустимые расширения файлов:"}),f.jsx(Te,{children:a1[e].join(" ")})]})}},fU=({currentQuestion:e})=>{var c;const{quizId:t}=jt(),{answers:n}=Nt(),r=Le(),o=(c=n.find(({questionId:u})=>u===e.id))==null?void 0:c.answer,[i,s]=v.useState(!1),a=Zt()<1e3,l=Zt()<500;return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:r.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsx(Af,{name:e.id,value:e.content.variants.findIndex(({id:u})=>o===u),sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between",marginTop:"20px"},children:f.jsx(J,{sx:{display:"grid",gap:"15px",gridTemplateColumns:a?l?"repeat(1, 1fr)":"repeat(2, 1fr)":"repeat(3, 1fr)",width:"100%"},children:e.content.variants.map((u,d)=>f.jsxs(J,{sx:{cursor:"pointer",borderRadius:"5px",border:"1px solid",borderColor:o===u.id?r.palette.primary.main:"#9A9AAF",transition:"opacity 0.5s ease",opacity:i?.5:1,pointerEvents:i?"none":"auto"},onClick:async p=>{if(p.preventDefault(),!i){s(!0);try{await qt({questionId:e.id,body:`${e.content.variants[d].answer} <img style="width:100%; max-width:250px; max-height:250px" src="${e.content.variants[d].extendedText}"/>`,qid:t}),zt(e.id,e.content.variants[d].id,e.content.variants[d].points||0)}catch{xt("ответ не был засчитан")}if(o===e.content.variants[d].id){fc(e.id);try{await qt({questionId:e.id,body:"",qid:t})}catch{xt("ответ не был засчитан")}}s(!1)}},children:[f.jsx(J,{sx:{display:"flex",alignItems:"center",gap:"10px"},children:f.jsx(J,{sx:{width:"100%",height:"300px"},children:u.extendedText&&f.jsx("img",{src:u.extendedText,alt:"",style:{display:"block",width:"100%",height:"100%",objectFit:"cover"}})})}),f.jsx(nc,{sx:{textAlign:"center",color:r.palette.text.primary,marginTop:"10px",marginLeft:0,padding:"10px",display:"flex",alignItems:u.answer.length<=60?"center":"flex-start",position:"relative",height:"80px","& .MuiFormControlLabel-label":{wordBreak:"break-word",height:u.answer.length<=60?void 0:"60px",overflow:"auto",lineHeight:"normal",paddingLeft:"45px","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#b8babf"}}},value:d,control:f.jsx(Ff,{checkedIcon:f.jsx(ip,{color:r.palette.primary.main}),icon:f.jsx(sp,{})}),label:u.answer},u.id)]},d))})})]})};function Pu(e,t,n){var r=this,o=v.useRef(null),i=v.useRef(0),s=v.useRef(null),a=v.useRef([]),l=v.useRef(),c=v.useRef(),u=v.useRef(e),d=v.useRef(!0);v.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var x=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,h="maxWait"in n,E=h?Math.max(+n.maxWait||0,t):null;v.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var m=v.useMemo(function(){var y=function(M){var T=a.current,D=l.current;return a.current=l.current=null,i.current=M,c.current=u.current.apply(D,T)},C=function(M,T){p&&cancelAnimationFrame(s.current),s.current=p?requestAnimationFrame(M):setTimeout(M,T)},w=function(M){if(!d.current)return!1;var T=M-o.current;return!o.current||T>=t||T<0||h&&M-i.current>=E},S=function(M){return s.current=null,g&&a.current?y(M):(a.current=l.current=null,c.current)},P=function M(){var T=Date.now();if(w(T))return S(T);if(d.current){var D=t-(T-o.current),_=h?Math.min(D,E-(T-i.current)):D;C(M,_)}},k=function(){var M=Date.now(),T=w(M);if(a.current=[].slice.call(arguments),l.current=r,o.current=M,T){if(!s.current&&d.current)return i.current=o.current,C(P,t),x?y(o.current):c.current;if(h)return C(P,t),y(o.current)}return s.current||C(P,t),c.current};return k.cancel=function(){s.current&&(p?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=l.current=s.current=null},k.isPending=function(){return!!s.current},k.flush=function(){return s.current?S(Date.now()):c.current},k},[x,h,t,E,g,p]);return m}const pU=({defaultValue:e,value:t,min:n=0,max:r=100,step:o,onChange:i,onChangeCommitted:s,valueLabelFormat:a,sx:l})=>(Le(),f.jsx(q$,{value:t,defaultValue:e,min:n,max:r,step:o,onChange:i,valueLabelDisplay:"on",onChangeCommitted:s,valueLabelFormat:a,onMouseDown:c=>c.stopPropagation(),"data-cy":"slider",sx:{color:"#7E2AEA",padding:"0",marginTop:"75px","& .MuiSlider-valueLabel":{background:"#7E2AEA",borderRadius:"8px",minWidth:"60px",width:"auto",whiteSpace:"nowrap",textAlign:"center",height:"36px"},"& .MuiSlider-valueLabel::before":{width:"6px",height:"2px",transform:"translate(-50%, 50%) rotate(90deg)",bottom:"-5px"},"& .MuiSlider-rail":{backgroundColor:"#F2F3F7",border:"1px solid #9A9AAF",height:"12px"},"& .MuiSlider-thumb":{border:"3px #f2f3f7 solid",height:"23px",width:"23px"},"& .MuiSlider-track":{height:"12px"},...l}})),hU=rc;function Mu({placeholder:e,value:t,text:n,sx:r,error:o,onChange:i,onKeyDown:s,onBlur:a,InputProps:l}){const c=Le();return f.jsx($f,{fullWidth:!0,variant:"standard",sx:{p:0},children:f.jsx(hU,{defaultValue:n,fullWidth:!0,value:t,placeholder:e,error:!!o,label:o,onChange:i,onKeyDown:s,onBlur:a,sx:{"& .MuiInputBase-root":{backgroundColor:c.palette.background.default,height:"48px",borderRadius:"10px"},"& .MuiInputLabel-root":{fontSize:"13.5px",marginTop:"3px"},...r},InputProps:l,inputProps:{sx:{borderRadius:"10px",fontSize:"18px",lineHeight:"21px",py:0}},"data-cy":"textfield"})})}const mU=({currentQuestion:e})=>{var se;const{settings:t,quizId:n}=jt(),[r,o]=v.useState("0"),[i,s]=v.useState("0"),[a,l]=v.useState("100000000000"),[c,u]=v.useState("0"),[d,p]=v.useState("0"),[x,g]=v.useState("100000000000"),h=Le(),{answers:E}=Nt(),[m,y]=v.useState(!1),C=Zt()<650,[w,S]=e.content.range.split("—").map(window.Number),P=w<S?w:S,k=w<S?S:w,M=w>S;v.useEffect(()=>{console.log("reversed:",M)},[M]);const T=async(B,H=!1)=>{y(!0);try{await qt({questionId:e.id,body:B,qid:n}),H||zt(e.id,B,0)}catch{xt("ответ не был засчитан")}y(!1)},D=Pu(async B=>{if(M){const z=window.Number(B)<window.Number(P)?String(P):window.Number(B)>window.Number(k)?String(k):B;u(z),zt(e.id,String(k+P-window.Number(z)),0),await T(String(window.Number(z)),!0);return}const H=window.Number(B)<window.Number(i)?i:window.Number(B)>window.Number(a)?a:B;o(H),await T(H)},1e3),_=Pu(async(B,H=!1)=>{if(M){const ne=H?window.Number(B.split("—")[1]):k+P-window.Number(B.split("—")[0])<P?P:k+P-window.Number(B.split("—")[0]),ce=window.Number(B.split("—")[0])>k?String(k):B.split("—")[0];p(H?String(k+P-window.Number(ce)):ce),zt(e.id,`${ne}${B.split("—")[1]}`,0),await T(`${ce}${B.split("—")[1]}`,!0);return}const z=H?a:window.Number(B.split("—")[0])<P?String(P):B.split("—")[0];s(z),await T(`${z}${B.split("—")[1]}`)},1e3),A=Pu(async(B,H=!1)=>{if(M){const ne=H?window.Number(B.split("—")[1]):k+P-window.Number(B.split("—")[1])>k?k:k+P-window.Number(B.split("—")[1]),ce=window.Number(B.split("—")[1])<P?String(P):B.split("—")[1];g(H?String(k+P-window.Number(ce)):ce),zt(e.id,`${B.split("—")[0]}${ne}`,0),await T(`${B.split("—")[0]}${ce}`,!0);return}const z=H?i:window.Number(B.split("—")[1])>k?String(k):B.split("—")[1];l(z),await T(`${B.split("—")[0]}${z}`)},1e3),$=(se=E.find(({questionId:B})=>B===e.id))==null?void 0:se.answer,R=$||(M?k+P-e.content.start+"—"+k:e.content.start+"—"+k);v.useEffect(()=>{$&&($.includes("—")?M?(p(String(k+P-window.Number($.split("—")[0]))),g(String(k+P-window.Number($.split("—")[1])))):(s($.split("—")[0]),l($.split("—")[1])):M?u(String(k+P-window.Number($))):o($)),$||(s(String(e.content.start)),l(String(k)),e.content.chooseRange&&(p(String(e.content.start)),g(String(P))),u(String(e.content.start)),o(String(e.content.start)))},[]);const O=(B,H)=>{const z=Array.isArray(H)?`${H[0]}${H[1]}`:String(H);zt(e.id,z,0)},L=async(B,H)=>{if(e.content.chooseRange&&Array.isArray(H)){if(M){const z=String(k+P-H[0]),ne=String(k+P-H[1]);s(String(H[0])),l(String(H[1])),p(z),g(ne),await T(`${z}${ne}`,!0);return}s(String(H[0])),l(String(H[1])),await T(`${H[0]}${H[1]}`);return}M?u(String(k+P-window.Number(H))):o(String(H)),await T(String(H))},V=B=>{if(!M)return B;const[H,z]=R.split("—").map(window.Number);return B===H?k+P-H:k+P-z},I=({target:B})=>{const H=B.value.replace(/\D/g,"");M?u(H):o(H),D(H)},F=({target:B})=>{const H=B.value.replace(/\D/g,"");if(M){if(p(H),window.Number(H)<=window.Number(x)){const z=k+P-window.Number(x);_(`${z}${z}`,!0);return}_(`${H}${k+P-window.Number(x)}`);return}if(s(H),window.Number(H)>=window.Number(a)){_(`${a}${a}`,!0);return}_(`${H}${a}`)},W=({target:B})=>{const H=B.value.replace(/\D/g,"");if(M){if(g(H),window.Number(H)>=window.Number(d)){const z=k+P-window.Number(d);A(`${z}${z}`,!0);return}A(`${k+P-window.Number(d)}${H}`);return}if(l(H),window.Number(H)<=window.Number(i)){A(`${i}${i}`,!0);return}A(`${i}${H}`)};return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:h.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsxs(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px",gap:"30px",paddingRight:C?"10px":void 0},children:[f.jsx(pU,{value:e.content.chooseRange?R.split("—").length||0>1?R.split("—").map(B=>window.Number(B)):[P,P+1]:window.Number(R.split("—")[0]),min:P,max:k,step:e.content.step||1,onChange:O,onChangeCommitted:L,valueLabelFormat:V,sx:{color:h.palette.primary.main,"& .MuiSlider-valueLabel":{background:h.palette.primary.main}}}),!e.content.chooseRange&&f.jsx(Mu,{placeholder:"0",value:M?c:r,onChange:I,sx:{maxWidth:"80px",borderColor:h.palette.text.primary,"& .MuiInputBase-input":{textAlign:"center",backgroundColor:wn[t.cfg.theme].isLight?"white":h.palette.background.default}}}),e.content.chooseRange&&f.jsxs(J,{sx:{display:"flex",gap:"15px",alignItems:"center","& .MuiFormControl-root":{width:"auto"}},children:[f.jsx(Mu,{placeholder:"0",value:M?String(d):i,onChange:F,sx:{maxWidth:"80px",borderColor:h.palette.text.primary,"& .MuiInputBase-input":{textAlign:"center",backgroundColor:wn[t.cfg.theme].isLight?"white":h.palette.background.default}}}),f.jsx(Te,{color:h.palette.text.primary,children:"до"}),f.jsx(Mu,{placeholder:"0",value:M?String(x):a,onChange:W,sx:{maxWidth:"80px",borderColor:h.palette.text.primary,"& .MuiInputBase-input":{textAlign:"center",backgroundColor:wn[t.cfg.theme].isLight?"white":h.palette.background.default}}})]})]})]})};function Rg({videoUrl:e,containerSX:t}){var r;return(r=/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/gi.exec(e))==null||r[1],f.jsx(J,{sx:{width:"100%",height:"100%",pointerEvents:"none","& iframe":{width:"100%",height:"100%"},...t},children:f.jsx(J,{component:"video",sx:{width:"100%",height:"100%"},autoPlay:!0,muted:!0,src:e})})}const gU=({currentQuestion:e})=>{const t=Le();return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",sx:{paddingBottom:"25px",color:t.palette.text.primary,wordBreak:"break-word"},children:e.title}),f.jsx(Te,{color:t.palette.text.primary,sx:{wordBreak:"break-word"},children:e.content.text}),f.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px"},children:e.content.useImage?f.jsx(J,{sx:{borderRadius:"12px",border:"1px solid #9A9AAF",overflow:"hidden"},children:f.jsx("img",{src:e.content.back,alt:"",style:{display:"block",width:"100%",height:"100%",objectFit:"contain"}},e.id)}):f.jsx(Rg,{containerSX:{width:"100%",height:"calc(100% - 270px)",maxHeight:"80%",objectFit:"contain"},videoUrl:e.content.video})})]})};function yU({color:e}){return f.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M5 27V6",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M5 21.0016C13 15.0016 19 27.0016 27 21.0016V6.00158C19 12.0016 13 0.00158215 5 6.00158",fill:e}),f.jsx("path",{d:"M5 21.0016C13 15.0016 19 27.0016 27 21.0016V6.00158C19 12.0016 13 0.00158203 5 6.00158",stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function vU({color:e,width:t=30,sx:n}){return f.jsx(J,{sx:{height:"50px",width:t+"px",display:"flex",alignItems:"center",justifyContent:"center",...n},children:f.jsx("svg",{width:t,height:t,viewBox:"0 0 28 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M14.551 21.8375L20.851 25.8375C21.6635 26.35 22.6635 25.5875 22.426 24.65L20.601 17.475C20.5516 17.2762 20.5595 17.0674 20.6236 16.8728C20.6877 16.6781 20.8056 16.5056 20.9635 16.375L26.6135 11.6625C27.351 11.05 26.976 9.81253 26.0135 9.75003L18.6385 9.27503C18.4372 9.26332 18.2438 9.19325 18.0817 9.07338C17.9197 8.95351 17.7961 8.78902 17.726 8.60003L14.976 1.67503C14.9032 1.47491 14.7706 1.30204 14.5961 1.17988C14.4217 1.05772 14.2139 0.992188 14.001 0.992188C13.788 0.992188 13.5802 1.05772 13.4058 1.17988C13.2314 1.30204 13.0988 1.47491 13.026 1.67503L10.276 8.60003C10.2059 8.78902 10.0823 8.95351 9.92021 9.07338C9.75816 9.19325 9.5647 9.26332 9.36347 9.27503L1.98847 9.75003C1.02597 9.81253 0.650971 11.05 1.38847 11.6625L7.03847 16.375C7.19639 16.5056 7.3142 16.6781 7.37834 16.8728C7.44247 17.0674 7.45032 17.2762 7.40097 17.475L5.71347 24.125C5.42597 25.25 6.62597 26.1625 7.58847 25.55L13.451 21.8375C13.6154 21.733 13.8062 21.6775 14.001 21.6775C14.1958 21.6775 14.3866 21.733 14.551 21.8375Z",fill:e,stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})})}function xU({color:e}){return f.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M3 11.3333H29M3 20.6667H29M13.6364 2L8.90909 30M23.0909 2L18.3636 30",stroke:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})})}function CU({color:e}){return f.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M16 27C16 27 3.5 20 3.5 11.5C3.5 9.99737 4.02062 8.54114 4.97328 7.37908C5.92593 6.21703 7.25178 5.42093 8.72525 5.12624C10.1987 4.83154 11.7288 5.05646 13.0551 5.76272C14.3814 6.46898 15.4221 7.61296 16 9.00001C16.5779 7.61296 17.6186 6.46898 18.9449 5.76272C20.2712 5.05646 21.8013 4.83154 23.2748 5.12624C24.7482 5.42093 26.0741 6.21703 27.0267 7.37908C27.9794 8.54114 28.5 9.99737 28.5 11.5C28.5 20 16 27 16 27Z",fill:e,stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})})}function bU({color:e}){return f.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M11 29H21",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M9.83761 20.8739C8.6471 19.9482 7.68288 18.7637 7.01801 17.4102C6.35313 16.0566 6.00504 14.5694 6.00011 13.0614C5.97511 7.6364 10.3376 3.1239 15.7626 2.9989C17.8622 2.94913 19.9242 3.56166 21.6561 4.74961C23.388 5.93756 24.7019 7.64064 25.4115 9.6173C26.1211 11.594 26.1904 13.7439 25.6094 15.7621C25.0285 17.7803 23.827 19.5644 22.1751 20.8614C21.8102 21.1435 21.5146 21.5052 21.311 21.919C21.1073 22.3328 21.001 22.7877 21.0001 23.2489V23.9989C21.0001 24.2641 20.8948 24.5185 20.7072 24.706C20.5197 24.8935 20.2653 24.9989 20.0001 24.9989H12.0001C11.7349 24.9989 11.4805 24.8935 11.293 24.706C11.1055 24.5185 11.0001 24.2641 11.0001 23.9989V23.2489C10.997 22.7912 10.8909 22.34 10.6896 21.9289C10.4884 21.5177 10.1972 21.1572 9.83761 20.8739V20.8739Z",stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.01801 17.4102C7.68288 18.7637 8.6471 19.9482 9.83761 20.8739C10.1972 21.1572 10.4884 21.5177 10.6896 21.9289C10.8909 22.34 10.997 22.7912 11.0001 23.2489V23.9989C11.0001 24.2641 11.1055 24.5185 11.293 24.706C11.4805 24.8935 11.7349 24.9989 12.0001 24.9989H20.0001C20.2653 24.9989 20.5197 24.8935 20.7072 24.706C20.8948 24.5185 21.0001 24.2641 21.0001 23.9989V23.2489C21.001 22.7877 21.1073 22.3328 21.311 21.919C21.5146 21.5052 21.8102 21.1435 22.1751 20.8614C23.827 19.5644 25.0285 17.7803 25.6094 15.7621C26.1904 13.7439 26.1211 11.594 25.4115 9.6173C24.7019 7.64064 23.388 5.93756 21.6561 4.74961C19.9242 3.56166 17.8622 2.94913 15.7626 2.9989C10.3376 3.1239 5.97511 7.6364 6.00011 13.0614C6.00504 14.5694 6.35313 16.0566 7.01801 17.4102ZM17.1464 6.31013C16.7108 6.23629 16.2978 6.52956 16.2239 6.96517C16.1501 7.40078 16.4434 7.81378 16.879 7.88762C17.9379 8.06713 18.915 8.57088 19.6754 9.32936C20.4358 10.0878 20.9421 11.0636 21.1243 12.1221C21.1992 12.5575 21.613 12.8497 22.0484 12.7748C22.4838 12.6998 22.7761 12.2861 22.7011 11.8507C22.4627 10.4657 21.8003 9.18896 20.8053 8.19655C19.8104 7.20413 18.5319 6.545 17.1464 6.31013Z",fill:e})]})})}function wU({color:e}){return f.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M8 17H14V30H8C7.73478 30 7.48043 29.8946 7.29289 29.7071C7.10536 29.5196 7 29.2652 7 29V18C7 17.7348 7.10536 17.4804 7.29289 17.2929C7.48043 17.1054 7.73478 17 8 17V17Z",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M14 17L19 7C20.0609 7 21.0783 7.42143 21.8284 8.17157C22.5786 8.92172 23 9.93913 23 11V14H30.7375C31.0211 13.9993 31.3015 14.0593 31.56 14.176C31.8185 14.2926 32.049 14.4632 32.2361 14.6764C32.4232 14.8895 32.5625 15.1402 32.6447 15.4116C32.7268 15.683 32.75 15.9689 32.7125 16.25L31.2125 28.25C31.1518 28.7317 30.918 29.1749 30.5546 29.4969C30.1912 29.8189 29.723 29.9977 29.2375 30H14",fill:e}),f.jsx("path",{d:"M14 17L19 7C20.0609 7 21.0783 7.42143 21.8284 8.17157C22.5786 8.92172 23 9.93913 23 11V14H30.7375C31.0211 13.9993 31.3015 14.0593 31.56 14.176C31.8185 14.2926 32.049 14.4632 32.2361 14.6764C32.4232 14.8895 32.5625 15.1402 32.6447 15.4116C32.7268 15.683 32.75 15.9689 32.7125 16.25L31.2125 28.25C31.1518 28.7317 30.918 29.1749 30.5546 29.4969C30.1912 29.8189 29.723 29.9977 29.2375 30H14",stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function SU({color:e}){return f.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M7 7V13.8875C7 18.85 10.975 22.9625 15.9375 23C17.1246 23.0082 18.3017 22.7815 19.4008 22.3329C20.5 21.8843 21.4995 21.2227 22.3419 20.3862C23.1843 19.5496 23.8528 18.5547 24.309 17.4586C24.7652 16.3626 25 15.1872 25 14V7C25 6.73478 24.8946 6.48043 24.7071 6.29289C24.5196 6.10536 24.2652 6 24 6H8C7.73478 6 7.48043 6.10536 7.29289 6.29289C7.10536 6.48043 7 6.73478 7 7Z",fill:e,stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M12 28H20",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M16 23V28",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M24.7754 16H26.0004C27.0613 16 28.0787 15.5786 28.8288 14.8284C29.579 14.0783 30.0004 13.0609 30.0004 12V10C30.0004 9.73478 29.895 9.48043 29.7075 9.29289C29.52 9.10536 29.2656 9 29.0004 9H25.0004",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M7.25078 16H5.98828C4.92742 16 3.91 15.5786 3.15985 14.8284C2.40971 14.0783 1.98828 13.0609 1.98828 12V10C1.98828 9.73478 2.09364 9.48043 2.28117 9.29289C2.46871 9.10536 2.72306 9 2.98828 9H6.98828",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}const kU=[{name:"star",icon:e=>f.jsx(vU,{width:50,color:e})},{name:"trophie",icon:e=>f.jsx(SU,{color:e})},{name:"flag",icon:e=>f.jsx(yU,{color:e})},{name:"heart",icon:e=>f.jsx(CU,{color:e})},{name:"like",icon:e=>f.jsx(wU,{color:e})},{name:"bubble",icon:e=>f.jsx(bU,{color:e})},{name:"hashtag",icon:e=>f.jsx(xU,{color:e})}],EU=({currentQuestion:e})=>{const{quizId:t}=jt(),{answers:n}=Nt(),r=Le(),o=Zt()<650,[i,s]=v.useState(!1),{answer:a}=n.find(({questionId:c})=>c===e.id)??{},l=kU.find(({name:c})=>c===e.content.form);return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:r.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsxs(J,{sx:{display:"inline-flex",alignItems:"center",gap:"20px",marginTop:"20px",flexDirection:"column",width:o?"100%":void 0},children:[f.jsx(J,{sx:{display:"inline-block",width:"100%"},children:f.jsx(u$,{disabled:i,value:Number(a||0),onChange:async(c,u)=>{s(!0);try{await qt({questionId:e.id,body:String(u)+" из "+e.content.steps,qid:t}),zt(e.id,String(u),0)}catch{xt("ответ не был засчитан")}s(!1)},sx:{height:"50px",gap:o?void 0:"15px",justifyContent:o?"space-between":void 0,width:o?"100%":void 0,transition:"opacity 0.5s ease"},max:e.content.steps,icon:l==null?void 0:l.icon(r.palette.primary.main),emptyIcon:l==null?void 0:l.icon("#9A9AAF")})}),f.jsxs(J,{sx:{display:"flex",justifyContent:"space-between",gap:2,width:"100%"},children:[f.jsx(Te,{sx:{color:"#9A9AAF"},children:e.content.ratingNegativeDescription}),f.jsx(Te,{sx:{color:"#9A9AAF"},children:e.content.ratingPositiveDescription})]})]})]})};function PU(e,{color:t="#7E2AEA"}){return Le(),f.jsx(J,{...e,sx:{top:"25% !important",height:"24px",width:"24px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:f.jsx("path",{d:"M19.5 9L12 16.5L4.5 9",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}const MU=({items:e,activeItemIndex:t=0,empty:n,onChange:r,sx:o,placeholder:i="",colorMain:s="#7E2AEA",colorPlaceholder:a="#9A9AAF",disabled:l=!1})=>{const[c,u]=v.useState(n?-1:t),d=Le();v.useEffect(()=>{u(t)},[t]);const p=x=>{const g=Number(x.target.value);if(g===c){u(-1),r==null||r("",-1);return}u(g),r==null||r(e[g],g)};return f.jsx($f,{disabled:l,fullWidth:!0,size:"small",sx:{width:"100%",height:"48px",...o},children:f.jsx(R6,{displayEmpty:!0,renderValue:x=>x?e[Number(x)]:f.jsx(Te,{sx:{color:a},children:i}),id:"display-select",variant:"outlined",value:c===-1?"":String(c),onChange:p,sx:{width:"100%",height:"48px",borderRadius:"8px","& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${s} !important`,height:"48px",borderRadius:"10px"}},MenuProps:{PaperProps:{sx:{mt:"8px",p:"4px",borderRadius:"8px",border:"1px solid #EEE4FC",boxShadow:"0px 8px 24px rgba(210, 208, 225, 0.4)"}},MenuListProps:{sx:{py:0,display:"flex",flexDirection:"column",gap:"8px","& .Mui-selected":{backgroundColor:d.palette.background.default,color:s}}}},inputProps:{sx:{color:s,display:"block",px:"9px",gap:"20px","& .MuiTypography-root":{overflow:"hidden",textOverflow:"ellipsis"}}},IconComponent:x=>f.jsx(PU,{...x}),children:e.map((x,g)=>f.jsx(mI,{value:g,sx:{display:"flex",alignItems:"center",gap:"20px",padding:"10px",borderRadius:"5px",color:a,whiteSpace:"normal",wordBreak:"break-word"},children:x},x+g))})})},TU=({currentQuestion:e})=>{const t=Le(),{quizId:n}=jt(),[r,o]=v.useState(!1),{answers:i}=Nt(),{answer:s}=i.find(({questionId:a})=>a===e.id)??{};return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:t.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px"},children:f.jsx(MU,{disabled:r,placeholder:e.content.default,activeItemIndex:s?Number(s):-1,items:e.content.variants.map(({answer:a})=>a),colorMain:t.palette.primary.main,onChange:async(a,l)=>{if(o(!0),l<0){fc(e.id);try{await qt({questionId:e.id,body:"",qid:n})}catch{xt("ответ не был засчитан")}return o(!1)}try{await qt({questionId:e.id,body:String(e.content.variants[Number(l)].answer),qid:n}),zt(e.id,String(l),0)}catch{xt("ответ не был засчитан")}o(!1)}})})]})},RU=rc,DU=[{horizontal:!0},{horizontal:!1},{horizontal:!0},{horizontal:!0},{horizontal:!1},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!1},{horizontal:!0},{horizontal:!1},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!1},{horizontal:!1},{horizontal:!0},{horizontal:!0},{horizontal:!0},{horizontal:!0}],_U=({currentQuestion:e,stepNumber:t})=>{Le();const{settings:n}=jt(),r=n.cfg.spec,{quizId:o}=jt(),{answers:i}=Nt();Zt()<650;const{answer:s}=i.find(({questionId:u})=>u===e.id)??{},[a,l]=v.useState(!1),c=Pu(async u=>{l(!0);try{await qt({questionId:e.id,body:u,qid:o})}catch{xt("ответ не был засчитан")}l(!1)},400);switch(v.useEffect(()=>()=>{c.flush()},[c]),r){case!0:return f.jsx(OU,{currentQuestion:e,answer:s,inputHC:c,stepNumber:t});case void 0:return f.jsx(p5,{currentQuestion:e,answer:s,inputHC:c});default:return f.jsx(p5,{currentQuestion:e,answer:s,inputHC:c})}},p5=({currentQuestion:e,answer:t,inputHC:n})=>{const r=Zt()<650,o=Le();return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:o.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsxs(J,{sx:{display:"flex",width:"100%",marginTop:"20px",flexDirection:r?"column-reverse":void 0,alignItems:"center"},children:[f.jsx(Mu,{placeholder:e.content.placeholder,value:t||"",onChange:async({target:i})=>{zt(e.id,i.value,0),n(i.value)},sx:{"&:focus-visible":{borderColor:o.palette.primary.main}}}),e.content.back&&e.content.back!==" "&&f.jsx(J,{sx:{maxWidth:"400px",width:"100%",height:"300px",margin:"15px"},children:f.jsx("img",{src:e.content.back,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""},e.id)})]})]})},OU=({currentQuestion:e,answer:t,inputHC:n,stepNumber:r})=>{const o=Le(),i=Zt()<650,s=DU[Number(r)-1].horizontal;return f.jsxs(J,{sx:{display:"flex",flexDirection:i?"column":void 0,alignItems:i?"center":void 0},children:[f.jsxs(J,{sx:{display:"flex",width:"100%",marginTop:"20px",flexDirection:"column",alignItems:"center",gap:"20px"},children:[f.jsx(Te,{variant:"h5",color:o.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),s&&e.content.back&&e.content.back!==" "&&f.jsx(J,{sx:{margin:"30px",width:"50vw",maxHeight:"550px"},children:f.jsx("img",{src:e.content.back,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""},e.id)}),f.jsx(RU,{autoFocus:!0,multiline:!0,maxRows:4,placeholder:e.content.placeholder,value:t||"",onChange:async({target:a})=>{zt(e.id,a.value,0),n(a.value)},inputProps:{maxLength:400},sx:{width:"100%","&:focus-visible":{borderColor:o.palette.primary.main}}})]}),!s&&e.content.back&&e.content.back!==" "&&f.jsx(J,{sx:{margin:"15px",width:"40vw"},children:f.jsx("img",{src:e.content.back,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""},e.id)})]})},IU=rc,$U=({currentQuestion:e})=>{const t=Le(),n=Zt()<650,{answers:r,ownVariants:o}=Nt(),{answer:i}=r.find(({questionId:u})=>u===e.id)??{},s=o.find(u=>u.id===e.id),[a,l]=v.useState(!1),c=e.content.multi?c6:Af;if(v.useEffect(()=>{s||_H(e.id,"")},[]),de.isMoment(i))throw new Error("Answer is Moment in Variant question");return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:t.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsxs(J,{sx:{display:"flex",gap:"20px",flexDirection:n?"column-reverse":void 0,alignItems:n?"center":void 0},children:[f.jsx(c,{name:e.id.toString(),value:e.content.variants.findIndex(({id:u})=>i===u),sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between",flexBasis:"100%",marginTop:"20px",width:n?"100%":void 0},children:f.jsxs(J,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",width:"100%",gap:"20px"},children:[e.content.variants.map((u,d)=>f.jsx(h5,{currentQuestion:e,variant:u,answer:i,index:d,isSending:a,setIsSending:l},u.id)),e.content.own&&s&&f.jsx(h5,{own:!0,currentQuestion:e,variant:s.variant,answer:i,index:e.content.variants.length+2,isSending:a,setIsSending:l})]})}),e.content.back&&e.content.back!==" "&&f.jsx(J,{sx:{maxWidth:"400px",width:"100%",height:"300px"},children:f.jsx("img",{src:e.content.back,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""},e.id)})]})]})},h5=({currentQuestion:e,variant:t,answer:n,index:r,own:o=!1,isSending:i,setIsSending:s})=>{const a=Le(),{settings:l,quizId:c}=jt();return f.jsx(nc,{disabled:i,sx:{margin:"0",borderRadius:"12px",color:a.palette.text.primary,padding:"15px",border:"1px solid",borderColor:n===t.id?a.palette.primary.main:"#9A9AAF",backgroundColor:wn[l.cfg.theme].isLight?"white":a.palette.background.default,display:"flex",maxWidth:"685px",maxHeight:"85px",justifyContent:"space-between",width:"100%","&.MuiFormControl-root":{width:"100%"},"& .MuiFormControlLabel-label":{wordBreak:"break-word",height:t.answer.length<=60?void 0:"60px",overflow:"auto",lineHeight:"normal","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#b8babf"}}},value:r,labelPlacement:"start",control:e.content.multi?f.jsx(s6,{checked:!!(n!=null&&n.includes(t.id)),checkedIcon:f.jsx(xd,{checked:!0,color:a.palette.primary.main}),icon:f.jsx(xd,{})}):f.jsx(Ff,{checkedIcon:f.jsx(ip,{color:a.palette.primary.main}),icon:f.jsx(sp,{})}),label:o?f.jsx(IU,{label:"Другое..."}):t.answer,onClick:async u=>{if(u.preventDefault(),i)return;s(!0);const d=e.content.variants[r].id;if(console.log(n),e.content.multi){const p=typeof n!="string"?n||[]:[];try{await qt({questionId:e.id,body:p.includes(d)?p==null?void 0:p.filter(x=>x!==d):[...p,d],qid:c}),zt(e.id,p.includes(d)?p==null?void 0:p.filter(x=>x!==d):[...p,d],e.content.variants[r].points||0)}catch(x){console.log(x),xt("ответ не был засчитан")}s(!1);return}try{await qt({questionId:e.id,body:e.content.variants[r].answer,qid:c}),zt(e.id,d,n===d?0:e.content.variants[r].points||0)}catch(p){console.log(p),xt("ответ не был засчитан")}if(n===d){try{await qt({questionId:e.id,body:"",qid:c})}catch(p){console.log(p),xt("ответ не был засчитан")}fc(e.id)}s(!1)}},t.id)};function FU(){return f.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 -70 800 535",fill:"none",display:"block",preserveAspectRatio:"xMidYMax meet",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{fill:"#F0F0F0",d:"M555 47a47.003 47.003 0 0 1 29.014-43.422 46.999 46.999 0 0 1 61.408 61.408 46.997 46.997 0 0 1-76.656 15.248A47 47 0 0 1 555 47Z"}),f.jsx("path",{fill:"#F3F3F3",d:"M641.874 240.665c7.74-7.74 20.263-7.82 28.102-.181L1051 611.837 779.035 883.805 383.869 498.67l258.005-258.005Z"}),f.jsx("path",{fill:"#EDEDED",d:"M183.393 61.546c7.692-7.037 19.499-6.985 27.129.12l677.42 630.746-690.929 382.738L-397 592.531 183.393 61.546Z"})]})}const AU=({currentQuestion:e})=>{const{settings:t,quizId:n}=jt(),{answers:r}=Nt(),o=Le(),i=Zt()<650,[s,a]=v.useState(!1),{answer:l}=r.find(({questionId:u})=>u===e.id)??{},c=e.content.variants.find(({id:u})=>l===u);return f.jsxs(J,{children:[f.jsx(Te,{variant:"h5",color:o.palette.text.primary,sx:{wordBreak:"break-word"},children:e.title}),f.jsxs(J,{sx:{display:"flex",marginTop:"20px",flexDirection:i?"column-reverse":void 0,gap:i?"30px":void 0,alignItems:i?"center":void 0},children:[f.jsx(Af,{name:e.id,value:e.content.variants.findIndex(({id:u})=>l===u),sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between",flexBasis:"100%",width:i?"100%":void 0},children:f.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",gap:i?"20px":void 0},children:e.content.variants.map((u,d)=>f.jsx(nc,{disabled:s,sx:{marginBottom:"15px",borderRadius:"5px",padding:"15px",color:o.palette.text.primary,backgroundColor:wn[t.cfg.theme].isLight?"white":o.palette.background.default,border:"1px solid",borderColor:l===u.id?o.palette.primary.main:"#9A9AAF",display:"flex",margin:i?0:void 0,"& .MuiFormControlLabel-label":{wordBreak:"break-word",height:u.answer.length<=60?void 0:"60px",overflow:"auto",lineHeight:"normal",paddingLeft:"45px","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#b8babf"}}},value:d,onClick:async p=>{p.preventDefault(),a(!0);try{await qt({questionId:e.id,body:`${e.content.variants[d].answer} <img style="width:100%; max-width:250px; max-height:250px" src="${e.content.variants[d].extendedText}"/>`,qid:n}),zt(e.id,e.content.variants[d].id,e.content.variants[d].points||0)}catch{xt("ответ не был засчитан")}if(l===e.content.variants[d].id){try{await qt({questionId:e.id,body:"",qid:n})}catch{xt("ответ не был засчитан")}fc(e.id)}a(!1)},control:f.jsx(Ff,{checkedIcon:f.jsx(ip,{color:o.palette.primary.main}),icon:f.jsx(sp,{})}),label:u.answer},u.id))})}),f.jsx(J,{sx:{maxWidth:"450px",width:"100%",height:"450px",border:"1px solid #9A9AAF",borderRadius:"12px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#9A9AAF12",color:"#9A9AAF",textAlign:"center"},children:l?c!=null&&c.extendedText?f.jsx("img",{src:c==null?void 0:c.extendedText,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""}):f.jsx(FU,{}):e.content.back!==" "&&e.content.back!==null&&e.content.back.length>0?f.jsx("img",{src:e.content.back,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""}):e.content.replText!==" "&&e.content.replText.length>0?e.content.replText:c!=null&&c.extendedText||i?"Выберите вариант ответа ниже":"Выберите вариант ответа слева"})]})]})},LU=e=>f.jsxs("svg",{...e,width:"750",height:"140",viewBox:"0 0 750 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("rect",{width:"750",height:"140",rx:"70",fill:"white"}),f.jsx("path",{d:"M129.645 88.55C126.272 88.55 123.467 87.9267 121.23 86.68C119.03 85.4333 117.362 83.6917 116.225 81.455C115.088 79.2183 114.465 76.615 114.355 73.645C114.318 72.1417 114.3 70.5283 114.3 68.805C114.3 67.0817 114.318 65.4317 114.355 63.855C114.465 60.885 115.088 58.2817 116.225 56.045C117.362 53.8083 119.03 52.0667 121.23 50.82C123.467 49.5733 126.272 48.95 129.645 48.95C132.175 48.95 134.393 49.2983 136.3 49.995C138.207 50.6917 139.783 51.6267 141.03 52.8C142.313 53.9733 143.285 55.2933 143.945 56.76C144.605 58.19 144.972 59.675 145.045 61.215C145.082 61.545 144.972 61.82 144.715 62.04C144.495 62.26 144.22 62.37 143.89 62.37H140.865C140.535 62.37 140.242 62.2783 139.985 62.095C139.765 61.9117 139.6 61.5817 139.49 61.105C138.867 58.245 137.693 56.2833 135.97 55.22C134.283 54.1567 132.157 53.625 129.59 53.625C126.657 53.625 124.328 54.4683 122.605 56.155C120.882 57.805 119.947 60.4633 119.8 64.13C119.69 67.1367 119.69 70.2167 119.8 73.37C119.947 77.0367 120.882 79.7133 122.605 81.4C124.328 83.05 126.657 83.875 129.59 83.875C132.157 83.875 134.283 83.3433 135.97 82.28C137.693 81.2167 138.867 79.255 139.49 76.395C139.6 75.9183 139.765 75.5883 139.985 75.405C140.242 75.2217 140.535 75.13 140.865 75.13H143.89C144.22 75.13 144.495 75.24 144.715 75.46C144.972 75.68 145.082 75.955 145.045 76.285C144.972 77.825 144.605 79.3283 143.945 80.795C143.285 82.225 142.313 83.5267 141.03 84.7C139.783 85.8733 138.207 86.8083 136.3 87.505C134.393 88.2017 132.175 88.55 129.645 88.55ZM150.051 94.05C149.684 94.05 149.373 93.9217 149.116 93.665C148.896 93.445 148.786 93.1517 148.786 92.785V84.865C148.786 84.4983 148.896 84.205 149.116 83.985C149.373 83.7283 149.684 83.6 150.051 83.6H150.326C151.316 83.5633 152.159 83.0133 152.856 81.95C153.553 80.85 154.084 79.145 154.451 76.835C154.818 74.4883 155.001 71.445 155.001 67.705V60.665C155.001 60.2983 155.111 60.005 155.331 59.785C155.588 59.5283 155.899 59.4 156.266 59.4H173.811C174.178 59.4 174.471 59.5283 174.691 59.785C174.948 60.005 175.076 60.2983 175.076 60.665V83.49H177.661C178.064 83.49 178.376 83.6183 178.596 83.875C178.816 84.095 178.926 84.3883 178.926 84.755V92.785C178.926 93.1517 178.816 93.445 178.596 93.665C178.376 93.9217 178.064 94.05 177.661 94.05H175.076C174.709 94.05 174.398 93.9217 174.141 93.665C173.921 93.445 173.811 93.1517 173.811 92.785V88H153.901V92.785C153.901 93.1517 153.773 93.445 153.516 93.665C153.296 93.9217 153.003 94.05 152.636 94.05H150.051ZM156.871 83.6L169.961 83.49V63.8H160.006V68.31C160.006 72.1967 159.731 75.3867 159.181 77.88C158.631 80.3367 157.861 82.2433 156.871 83.6ZM196.064 88.55C192.288 88.55 189.281 87.395 187.044 85.085C184.808 82.7383 183.579 79.5483 183.359 75.515C183.323 75.0383 183.304 74.4333 183.304 73.7C183.304 72.93 183.323 72.3067 183.359 71.83C183.506 69.2267 184.111 66.9533 185.174 65.01C186.238 63.03 187.686 61.5083 189.519 60.445C191.389 59.3817 193.571 58.85 196.064 58.85C198.851 58.85 201.179 59.4367 203.049 60.61C204.956 61.7833 206.404 63.4517 207.394 65.615C208.384 67.7783 208.879 70.3083 208.879 73.205V74.14C208.879 74.5433 208.751 74.855 208.494 75.075C208.274 75.295 207.981 75.405 207.614 75.405H188.584C188.584 75.4417 188.584 75.515 188.584 75.625C188.584 75.735 188.584 75.8267 188.584 75.9C188.658 77.4033 188.988 78.815 189.574 80.135C190.161 81.4183 191.004 82.4633 192.104 83.27C193.204 84.0767 194.524 84.48 196.064 84.48C197.384 84.48 198.484 84.2783 199.364 83.875C200.244 83.4717 200.959 83.0317 201.509 82.555C202.059 82.0417 202.426 81.6567 202.609 81.4C202.939 80.9233 203.196 80.6483 203.379 80.575C203.563 80.465 203.856 80.41 204.259 80.41H206.899C207.266 80.41 207.559 80.52 207.779 80.74C208.036 80.9233 208.146 81.1983 208.109 81.565C208.073 82.115 207.779 82.7933 207.229 83.6C206.679 84.37 205.891 85.14 204.864 85.91C203.838 86.68 202.591 87.3217 201.124 87.835C199.658 88.3117 197.971 88.55 196.064 88.55ZM188.584 71.61H203.654V71.445C203.654 69.795 203.343 68.3283 202.719 67.045C202.133 65.7617 201.271 64.7533 200.134 64.02C198.998 63.25 197.641 62.865 196.064 62.865C194.488 62.865 193.131 63.25 191.994 64.02C190.894 64.7533 190.051 65.7617 189.464 67.045C188.878 68.3283 188.584 69.795 188.584 71.445V71.61ZM214.081 88C213.714 88 213.402 87.8717 213.146 87.615C212.889 87.3583 212.761 87.0467 212.761 86.68V84.645C212.761 83.875 213.146 83.4717 213.916 83.435C215.052 83.3983 216.006 82.8667 216.776 81.84C217.546 80.7767 218.132 79.1083 218.536 76.835C218.939 74.525 219.141 71.4817 219.141 67.705V60.665C219.141 60.2983 219.251 60.005 219.471 59.785C219.727 59.5283 220.039 59.4 220.406 59.4H237.896C238.262 59.4 238.556 59.5283 238.776 59.785C239.032 60.005 239.161 60.2983 239.161 60.665V86.735C239.161 87.1017 239.032 87.4133 238.776 87.67C238.556 87.89 238.262 88 237.896 88H235.256C234.889 88 234.596 87.89 234.376 87.67C234.156 87.4133 234.046 87.1017 234.046 86.735V63.8H224.146V68.31C224.146 71.83 223.944 74.855 223.541 77.385C223.137 79.8783 222.514 81.9133 221.671 83.49C220.864 85.03 219.819 86.1667 218.536 86.9C217.289 87.6333 215.804 88 214.081 88ZM255.335 88.55C253.502 88.55 251.833 88.1833 250.33 87.45C248.827 86.7167 247.617 85.7267 246.7 84.48C245.783 83.2333 245.325 81.8217 245.325 80.245C245.325 77.715 246.352 75.6983 248.405 74.195C250.458 72.6917 253.135 71.7017 256.435 71.225L264.63 70.07V68.475C264.63 66.715 264.117 65.34 263.09 64.35C262.1 63.36 260.468 62.865 258.195 62.865C256.545 62.865 255.207 63.195 254.18 63.855C253.19 64.515 252.493 65.3583 252.09 66.385C251.87 66.935 251.485 67.21 250.935 67.21H248.46C248.057 67.21 247.745 67.1 247.525 66.88C247.342 66.6233 247.25 66.33 247.25 66C247.25 65.45 247.452 64.7717 247.855 63.965C248.295 63.1583 248.955 62.37 249.835 61.6C250.715 60.83 251.833 60.1883 253.19 59.675C254.583 59.125 256.27 58.85 258.25 58.85C260.45 58.85 262.302 59.1433 263.805 59.73C265.308 60.28 266.482 61.0317 267.325 61.985C268.205 62.9383 268.828 64.02 269.195 65.23C269.598 66.44 269.8 67.6683 269.8 68.915V86.735C269.8 87.1017 269.672 87.4133 269.415 87.67C269.195 87.89 268.902 88 268.535 88H266.005C265.602 88 265.29 87.89 265.07 87.67C264.85 87.4133 264.74 87.1017 264.74 86.735V84.37C264.263 85.03 263.622 85.69 262.815 86.35C262.008 86.9733 261 87.505 259.79 87.945C258.58 88.3483 257.095 88.55 255.335 88.55ZM256.49 84.425C257.993 84.425 259.368 84.1133 260.615 83.49C261.862 82.83 262.833 81.8217 263.53 80.465C264.263 79.1083 264.63 77.4033 264.63 75.35V73.81L258.25 74.745C255.647 75.1117 253.685 75.735 252.365 76.615C251.045 77.4583 250.385 78.54 250.385 79.86C250.385 80.8867 250.678 81.7483 251.265 82.445C251.888 83.105 252.658 83.6 253.575 83.93C254.528 84.26 255.5 84.425 256.49 84.425ZM278.972 88C278.605 88 278.293 87.89 278.037 87.67C277.817 87.4133 277.707 87.1017 277.707 86.735V60.665C277.707 60.2983 277.817 60.005 278.037 59.785C278.293 59.5283 278.605 59.4 278.972 59.4H281.612C281.978 59.4 282.272 59.5283 282.492 59.785C282.712 60.005 282.822 60.2983 282.822 60.665V71.225H297.837V60.665C297.837 60.2983 297.947 60.005 298.167 59.785C298.423 59.5283 298.735 59.4 299.102 59.4H301.687C302.053 59.4 302.347 59.5283 302.567 59.785C302.823 60.005 302.952 60.2983 302.952 60.665V86.735C302.952 87.1017 302.823 87.4133 302.567 87.67C302.347 87.89 302.053 88 301.687 88H299.102C298.735 88 298.423 87.89 298.167 87.67C297.947 87.4133 297.837 87.1017 297.837 86.735V75.625H282.822V86.735C282.822 87.1017 282.712 87.4133 282.492 87.67C282.272 87.89 281.978 88 281.612 88H278.972ZM322.937 88.55C320.151 88.55 317.822 88.0183 315.952 86.955C314.082 85.8917 312.652 84.425 311.662 82.555C310.672 80.6483 310.122 78.485 310.012 76.065C309.976 75.4417 309.957 74.6533 309.957 73.7C309.957 72.71 309.976 71.9217 310.012 71.335C310.122 68.8783 310.672 66.715 311.662 64.845C312.689 62.975 314.137 61.5083 316.007 60.445C317.877 59.3817 320.187 58.85 322.937 58.85C325.687 58.85 327.997 59.3817 329.867 60.445C331.737 61.5083 333.167 62.975 334.157 64.845C335.184 66.715 335.752 68.8783 335.862 71.335C335.899 71.9217 335.917 72.71 335.917 73.7C335.917 74.6533 335.899 75.4417 335.862 76.065C335.752 78.485 335.202 80.6483 334.212 82.555C333.222 84.425 331.792 85.8917 329.922 86.955C328.052 88.0183 325.724 88.55 322.937 88.55ZM322.937 84.315C325.211 84.315 327.026 83.6 328.382 82.17C329.739 80.7033 330.472 78.5767 330.582 75.79C330.619 75.24 330.637 74.5433 330.637 73.7C330.637 72.8567 330.619 72.16 330.582 71.61C330.472 68.8233 329.739 66.715 328.382 65.285C327.026 63.8183 325.211 63.085 322.937 63.085C320.664 63.085 318.831 63.8183 317.437 65.285C316.081 66.715 315.366 68.8233 315.292 71.61C315.256 72.16 315.237 72.8567 315.237 73.7C315.237 74.5433 315.256 75.24 315.292 75.79C315.366 78.5767 316.081 80.7033 317.437 82.17C318.831 83.6 320.664 84.315 322.937 84.315ZM357.551 88C357.184 88 356.872 87.89 356.616 87.67C356.396 87.4133 356.286 87.1017 356.286 86.735V60.665C356.286 60.2983 356.396 60.005 356.616 59.785C356.872 59.5283 357.184 59.4 357.551 59.4H360.191C360.557 59.4 360.851 59.5283 361.071 59.785C361.291 60.005 361.401 60.2983 361.401 60.665V71.225H376.416V60.665C376.416 60.2983 376.526 60.005 376.746 59.785C377.002 59.5283 377.314 59.4 377.681 59.4H380.266C380.632 59.4 380.926 59.5283 381.146 59.785C381.402 60.005 381.531 60.2983 381.531 60.665V86.735C381.531 87.1017 381.402 87.4133 381.146 87.67C380.926 87.89 380.632 88 380.266 88H377.681C377.314 88 377.002 87.89 376.746 87.67C376.526 87.4133 376.416 87.1017 376.416 86.735V75.625H361.401V86.735C361.401 87.1017 361.291 87.4133 361.071 87.67C360.851 87.89 360.557 88 360.191 88H357.551ZM397.776 88.55C395.943 88.55 394.275 88.1833 392.771 87.45C391.268 86.7167 390.058 85.7267 389.141 84.48C388.225 83.2333 387.766 81.8217 387.766 80.245C387.766 77.715 388.793 75.6983 390.846 74.195C392.9 72.6917 395.576 71.7017 398.876 71.225L407.071 70.07V68.475C407.071 66.715 406.558 65.34 405.531 64.35C404.541 63.36 402.91 62.865 400.636 62.865C398.986 62.865 397.648 63.195 396.621 63.855C395.631 64.515 394.935 65.3583 394.531 66.385C394.311 66.935 393.926 67.21 393.376 67.21H390.901C390.498 67.21 390.186 67.1 389.966 66.88C389.783 66.6233 389.691 66.33 389.691 66C389.691 65.45 389.893 64.7717 390.296 63.965C390.736 63.1583 391.396 62.37 392.276 61.6C393.156 60.83 394.275 60.1883 395.631 59.675C397.025 59.125 398.711 58.85 400.691 58.85C402.891 58.85 404.743 59.1433 406.246 59.73C407.75 60.28 408.923 61.0317 409.766 61.985C410.646 62.9383 411.27 64.02 411.636 65.23C412.04 66.44 412.241 67.6683 412.241 68.915V86.735C412.241 87.1017 412.113 87.4133 411.856 87.67C411.636 87.89 411.343 88 410.976 88H408.446C408.043 88 407.731 87.89 407.511 87.67C407.291 87.4133 407.181 87.1017 407.181 86.735V84.37C406.705 85.03 406.063 85.69 405.256 86.35C404.45 86.9733 403.441 87.505 402.231 87.945C401.021 88.3483 399.536 88.55 397.776 88.55ZM398.931 84.425C400.435 84.425 401.81 84.1133 403.056 83.49C404.303 82.83 405.275 81.8217 405.971 80.465C406.705 79.1083 407.071 77.4033 407.071 75.35V73.81L400.691 74.745C398.088 75.1117 396.126 75.735 394.806 76.615C393.486 77.4583 392.826 78.54 392.826 79.86C392.826 80.8867 393.12 81.7483 393.706 82.445C394.33 83.105 395.1 83.6 396.016 83.93C396.97 84.26 397.941 84.425 398.931 84.425Z",fill:"#4D4D4D"}),f.jsxs("g",{clipPath:"url(#clip0_4819_14395)",children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M461.886 33.8256C453.446 32.8479 447.622 41.9149 442.205 48.4691C437.452 54.221 433.912 60.7178 433.501 68.1717C433.064 76.1021 434.502 84.3611 439.905 90.1773C445.47 96.1684 453.806 99.9538 461.886 98.7299C469.296 97.6077 472.574 89.4712 478.091 84.3936C484.08 78.8802 495.239 76.3159 495.084 68.1717C494.929 60.0151 483.152 58.4185 477.485 52.5557C471.616 46.483 470.272 34.7969 461.886 33.8256Z",fill:"#7E2AEA"}),f.jsx("circle",{cx:"482.884",cy:"95.6408",r:"4.65763",fill:"#7E2AEA"}),f.jsx("circle",{cx:"478.227",cy:"43.9516",r:"1.77434",fill:"#7E2AEA"}),f.jsx("path",{d:"M506.606 66.259C506.089 61.2292 503.722 56.5706 499.966 53.1862C496.209 49.8018 491.33 47.9327 486.273 47.9411C485.555 47.9414 484.838 47.979 484.124 48.0536C479.096 48.5815 474.443 50.9524 471.06 54.7089C467.677 58.4654 465.805 63.3414 465.805 68.3966V68.3966V97.6187H474.571V85.1993C477.999 87.5839 482.076 88.8589 486.251 88.8521C486.969 88.8518 487.687 88.8143 488.401 88.7396C491.072 88.4588 493.662 87.6546 496.023 86.3728C498.384 85.091 500.469 83.3568 502.16 81.2691C503.85 79.1814 505.113 76.7812 505.876 74.2056C506.639 71.6299 506.887 68.9291 506.606 66.2575V66.259ZM495.347 75.7562C494.384 76.9524 493.193 77.9458 491.843 78.6786C490.494 79.4115 489.012 79.8693 487.485 80.0255C487.075 80.0681 486.663 80.0895 486.251 80.0898C483.6 80.0874 481.028 79.1837 478.958 77.5271C476.889 75.8705 475.443 73.5593 474.86 70.9731C474.276 68.3868 474.59 65.679 475.748 63.2942C476.906 60.9093 478.841 58.9891 481.234 57.8487C483.628 56.7083 486.338 56.4155 488.92 57.0183C491.502 57.621 493.802 59.0836 495.443 61.166C497.084 63.2483 497.968 65.8267 497.951 68.4779C497.933 71.1291 497.015 73.6956 495.347 75.7562Z",fill:"#151515"}),f.jsx("path",{d:"M529.478 47.9411C528.76 47.9414 528.043 47.979 527.329 48.0536C522.119 48.6022 517.319 51.1284 513.917 55.1114C510.515 59.0944 508.771 64.2307 509.043 69.4618C509.316 74.6928 511.585 79.6198 515.383 83.2274C519.181 86.835 524.218 88.8482 529.456 88.8521C530.174 88.8518 530.891 88.8143 531.605 88.7396C535.361 88.3397 538.934 86.9109 541.93 84.6105C544.926 82.3101 547.229 79.2275 548.585 75.7021H538.592L538.551 75.7532C537.272 77.3353 535.601 78.5558 533.704 79.294C531.808 80.0322 529.752 80.2626 527.739 79.9622C525.726 79.6619 523.827 78.8412 522.229 77.5816C520.63 76.3219 519.389 74.6667 518.626 72.7799H549.456C550.105 69.7933 550.078 66.6993 549.376 63.7246C548.674 60.75 547.316 57.97 545.4 55.5884C543.485 53.2068 541.061 51.284 538.306 49.9607C535.551 48.6375 532.534 47.9474 529.478 47.9411V47.9411ZM518.626 64.0133C519.424 62.0489 520.741 60.338 522.434 59.0627C524.128 57.7875 526.136 56.9958 528.245 56.772C528.655 56.7295 529.066 56.708 529.478 56.7077C531.807 56.7038 534.083 57.3977 536.013 58.6999C537.943 60.0021 539.439 61.8528 540.308 64.0133H518.626Z",fill:"#151515"}),f.jsx("path",{d:"M571.115 47.9411C567.765 47.9358 564.478 48.8571 561.618 50.6033V47.9411H552.852V88.8521H561.618V66.2049C561.618 63.6861 562.619 61.2705 564.4 59.4894C566.181 57.7084 568.597 56.7078 571.115 56.7078C573.634 56.7078 576.05 57.7084 577.831 59.4894C579.612 61.2705 580.613 63.6861 580.613 66.2049V88.8521H589.379V66.2049C589.379 61.3611 587.455 56.7156 584.03 53.2905C580.605 49.8653 575.959 47.9411 571.115 47.9411Z",fill:"#151515"}),f.jsx("path",{d:"M633.214 71.0105V47.9411H624.447V51.5939C621.02 49.2083 616.943 47.9332 612.767 47.9411C612.049 47.9415 611.332 47.979 610.618 48.0536C605.408 48.6023 600.608 51.1284 597.206 55.1114C593.804 59.0944 592.06 64.2308 592.332 69.4618C592.605 74.6928 594.874 79.6199 598.672 83.2275C602.47 86.8351 607.507 88.8483 612.745 88.8521C613.463 88.8518 614.18 88.8143 614.894 88.7396C619.99 88.2181 624.7 85.7909 628.081 81.944C630.708 85.459 634.513 87.9111 638.8 88.8521V79.6617C637.136 78.9083 635.725 77.6919 634.734 76.1577C633.744 74.6236 633.216 72.8367 633.214 71.0105ZM621.841 75.7533C620.877 76.9493 619.687 77.9424 618.337 78.6753C616.987 79.4081 615.506 79.866 613.978 80.0226C613.569 80.0652 613.157 80.0866 612.745 80.0869C609.75 80.0868 606.869 78.9369 604.697 76.8746C602.525 74.8123 601.228 71.9949 601.073 69.0038C600.917 66.0127 601.916 63.0761 603.863 60.8001C605.81 58.524 608.556 57.0822 611.535 56.7721C611.945 56.7295 612.356 56.708 612.767 56.7078C614.974 56.7097 617.135 57.3363 619.001 58.5151C620.867 59.694 622.36 61.3769 623.31 63.3693C624.259 65.3617 624.625 67.582 624.365 69.7736C624.105 71.9651 623.23 74.0383 621.841 75.7533Z",fill:"#151515"}),f.jsx("path",{d:"M600.484 110.378V105.155C600.125 105.617 599.679 105.986 599.144 106.26C598.609 106.527 598.032 106.661 597.413 106.661C596.232 106.661 595.261 106.217 594.498 105.331C593.598 104.294 593.148 102.888 593.148 101.115C593.148 99.4454 593.569 98.1445 594.41 97.212C595.257 96.273 596.307 95.8035 597.559 95.8035C598.251 95.8035 598.847 95.9502 599.349 96.2437C599.858 96.5371 600.308 96.9805 600.699 97.5739V96.0383H603.233V110.378H600.484ZM600.572 101.105C600.572 100.042 600.354 99.2531 599.917 98.7379C599.486 98.2163 598.945 97.9554 598.293 97.9554C597.628 97.9554 597.07 98.2195 596.62 98.7477C596.177 99.2759 595.955 100.114 595.955 101.262C595.955 102.403 596.17 103.228 596.601 103.736C597.031 104.238 597.563 104.489 598.195 104.489C598.828 104.489 599.382 104.206 599.858 103.638C600.334 103.071 600.572 102.227 600.572 101.105ZM612.779 106.426V104.871C612.401 105.425 611.902 105.862 611.283 106.182C610.67 106.501 610.021 106.661 609.336 106.661C608.638 106.661 608.012 106.508 607.458 106.201C606.904 105.895 606.503 105.464 606.255 104.91C606.007 104.356 605.883 103.589 605.883 102.611V96.0383H608.632V100.812C608.632 102.272 608.681 103.169 608.779 103.501C608.883 103.828 609.069 104.088 609.336 104.284C609.603 104.473 609.943 104.568 610.353 104.568C610.823 104.568 611.243 104.44 611.615 104.186C611.987 103.925 612.241 103.606 612.378 103.228C612.515 102.843 612.584 101.907 612.584 100.42V96.0383H615.332V106.426H612.779ZM618.188 94.6297V92.0866H620.937V94.6297H618.188ZM618.188 106.426V96.0383H620.937V106.426H618.188ZM622.658 106.426V104.284L626.551 99.8139C627.19 99.0835 627.663 98.5651 627.97 98.2586C627.65 98.2782 627.229 98.2912 626.708 98.2978L623.04 98.3173V96.0383H631.628V97.9848L627.657 102.562L626.258 104.079C627.021 104.033 627.494 104.01 627.676 104.01H631.931V106.426H622.658Z",fill:"black"})]}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_4819_14395",children:f.jsx("rect",{width:"207",height:"80.129",fill:"white",transform:"translate(432 30)"})})})]}),jU=e=>f.jsxs("svg",{...e,width:"750",height:"140",viewBox:"0 0 750 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("rect",{width:"750",height:"140",rx:"70",fill:"#444757"}),f.jsx("path",{d:"M129.645 88.55C126.272 88.55 123.467 87.9267 121.23 86.68C119.03 85.4333 117.362 83.6917 116.225 81.455C115.088 79.2183 114.465 76.615 114.355 73.645C114.318 72.1417 114.3 70.5283 114.3 68.805C114.3 67.0817 114.318 65.4317 114.355 63.855C114.465 60.885 115.088 58.2817 116.225 56.045C117.362 53.8083 119.03 52.0667 121.23 50.82C123.467 49.5733 126.272 48.95 129.645 48.95C132.175 48.95 134.393 49.2983 136.3 49.995C138.207 50.6917 139.783 51.6267 141.03 52.8C142.313 53.9733 143.285 55.2933 143.945 56.76C144.605 58.19 144.972 59.675 145.045 61.215C145.082 61.545 144.972 61.82 144.715 62.04C144.495 62.26 144.22 62.37 143.89 62.37H140.865C140.535 62.37 140.242 62.2783 139.985 62.095C139.765 61.9117 139.6 61.5817 139.49 61.105C138.867 58.245 137.693 56.2833 135.97 55.22C134.283 54.1567 132.157 53.625 129.59 53.625C126.657 53.625 124.328 54.4683 122.605 56.155C120.882 57.805 119.947 60.4633 119.8 64.13C119.69 67.1367 119.69 70.2167 119.8 73.37C119.947 77.0367 120.882 79.7133 122.605 81.4C124.328 83.05 126.657 83.875 129.59 83.875C132.157 83.875 134.283 83.3433 135.97 82.28C137.693 81.2167 138.867 79.255 139.49 76.395C139.6 75.9183 139.765 75.5883 139.985 75.405C140.242 75.2217 140.535 75.13 140.865 75.13H143.89C144.22 75.13 144.495 75.24 144.715 75.46C144.972 75.68 145.082 75.955 145.045 76.285C144.972 77.825 144.605 79.3283 143.945 80.795C143.285 82.225 142.313 83.5267 141.03 84.7C139.783 85.8733 138.207 86.8083 136.3 87.505C134.393 88.2017 132.175 88.55 129.645 88.55ZM150.051 94.05C149.684 94.05 149.373 93.9217 149.116 93.665C148.896 93.445 148.786 93.1517 148.786 92.785V84.865C148.786 84.4983 148.896 84.205 149.116 83.985C149.373 83.7283 149.684 83.6 150.051 83.6H150.326C151.316 83.5633 152.159 83.0133 152.856 81.95C153.553 80.85 154.084 79.145 154.451 76.835C154.818 74.4883 155.001 71.445 155.001 67.705V60.665C155.001 60.2983 155.111 60.005 155.331 59.785C155.588 59.5283 155.899 59.4 156.266 59.4H173.811C174.178 59.4 174.471 59.5283 174.691 59.785C174.948 60.005 175.076 60.2983 175.076 60.665V83.49H177.661C178.064 83.49 178.376 83.6183 178.596 83.875C178.816 84.095 178.926 84.3883 178.926 84.755V92.785C178.926 93.1517 178.816 93.445 178.596 93.665C178.376 93.9217 178.064 94.05 177.661 94.05H175.076C174.709 94.05 174.398 93.9217 174.141 93.665C173.921 93.445 173.811 93.1517 173.811 92.785V88H153.901V92.785C153.901 93.1517 153.773 93.445 153.516 93.665C153.296 93.9217 153.003 94.05 152.636 94.05H150.051ZM156.871 83.6L169.961 83.49V63.8H160.006V68.31C160.006 72.1967 159.731 75.3867 159.181 77.88C158.631 80.3367 157.861 82.2433 156.871 83.6ZM196.064 88.55C192.288 88.55 189.281 87.395 187.044 85.085C184.808 82.7383 183.579 79.5483 183.359 75.515C183.323 75.0383 183.304 74.4333 183.304 73.7C183.304 72.93 183.323 72.3067 183.359 71.83C183.506 69.2267 184.111 66.9533 185.174 65.01C186.238 63.03 187.686 61.5083 189.519 60.445C191.389 59.3817 193.571 58.85 196.064 58.85C198.851 58.85 201.179 59.4367 203.049 60.61C204.956 61.7833 206.404 63.4517 207.394 65.615C208.384 67.7783 208.879 70.3083 208.879 73.205V74.14C208.879 74.5433 208.751 74.855 208.494 75.075C208.274 75.295 207.981 75.405 207.614 75.405H188.584C188.584 75.4417 188.584 75.515 188.584 75.625C188.584 75.735 188.584 75.8267 188.584 75.9C188.658 77.4033 188.988 78.815 189.574 80.135C190.161 81.4183 191.004 82.4633 192.104 83.27C193.204 84.0767 194.524 84.48 196.064 84.48C197.384 84.48 198.484 84.2783 199.364 83.875C200.244 83.4717 200.959 83.0317 201.509 82.555C202.059 82.0417 202.426 81.6567 202.609 81.4C202.939 80.9233 203.196 80.6483 203.379 80.575C203.563 80.465 203.856 80.41 204.259 80.41H206.899C207.266 80.41 207.559 80.52 207.779 80.74C208.036 80.9233 208.146 81.1983 208.109 81.565C208.073 82.115 207.779 82.7933 207.229 83.6C206.679 84.37 205.891 85.14 204.864 85.91C203.838 86.68 202.591 87.3217 201.124 87.835C199.658 88.3117 197.971 88.55 196.064 88.55ZM188.584 71.61H203.654V71.445C203.654 69.795 203.343 68.3283 202.719 67.045C202.133 65.7617 201.271 64.7533 200.134 64.02C198.998 63.25 197.641 62.865 196.064 62.865C194.488 62.865 193.131 63.25 191.994 64.02C190.894 64.7533 190.051 65.7617 189.464 67.045C188.878 68.3283 188.584 69.795 188.584 71.445V71.61ZM214.081 88C213.714 88 213.402 87.8717 213.146 87.615C212.889 87.3583 212.761 87.0467 212.761 86.68V84.645C212.761 83.875 213.146 83.4717 213.916 83.435C215.052 83.3983 216.006 82.8667 216.776 81.84C217.546 80.7767 218.132 79.1083 218.536 76.835C218.939 74.525 219.141 71.4817 219.141 67.705V60.665C219.141 60.2983 219.251 60.005 219.471 59.785C219.727 59.5283 220.039 59.4 220.406 59.4H237.896C238.262 59.4 238.556 59.5283 238.776 59.785C239.032 60.005 239.161 60.2983 239.161 60.665V86.735C239.161 87.1017 239.032 87.4133 238.776 87.67C238.556 87.89 238.262 88 237.896 88H235.256C234.889 88 234.596 87.89 234.376 87.67C234.156 87.4133 234.046 87.1017 234.046 86.735V63.8H224.146V68.31C224.146 71.83 223.944 74.855 223.541 77.385C223.137 79.8783 222.514 81.9133 221.671 83.49C220.864 85.03 219.819 86.1667 218.536 86.9C217.289 87.6333 215.804 88 214.081 88ZM255.335 88.55C253.502 88.55 251.833 88.1833 250.33 87.45C248.827 86.7167 247.617 85.7267 246.7 84.48C245.783 83.2333 245.325 81.8217 245.325 80.245C245.325 77.715 246.352 75.6983 248.405 74.195C250.458 72.6917 253.135 71.7017 256.435 71.225L264.63 70.07V68.475C264.63 66.715 264.117 65.34 263.09 64.35C262.1 63.36 260.468 62.865 258.195 62.865C256.545 62.865 255.207 63.195 254.18 63.855C253.19 64.515 252.493 65.3583 252.09 66.385C251.87 66.935 251.485 67.21 250.935 67.21H248.46C248.057 67.21 247.745 67.1 247.525 66.88C247.342 66.6233 247.25 66.33 247.25 66C247.25 65.45 247.452 64.7717 247.855 63.965C248.295 63.1583 248.955 62.37 249.835 61.6C250.715 60.83 251.833 60.1883 253.19 59.675C254.583 59.125 256.27 58.85 258.25 58.85C260.45 58.85 262.302 59.1433 263.805 59.73C265.308 60.28 266.482 61.0317 267.325 61.985C268.205 62.9383 268.828 64.02 269.195 65.23C269.598 66.44 269.8 67.6683 269.8 68.915V86.735C269.8 87.1017 269.672 87.4133 269.415 87.67C269.195 87.89 268.902 88 268.535 88H266.005C265.602 88 265.29 87.89 265.07 87.67C264.85 87.4133 264.74 87.1017 264.74 86.735V84.37C264.263 85.03 263.622 85.69 262.815 86.35C262.008 86.9733 261 87.505 259.79 87.945C258.58 88.3483 257.095 88.55 255.335 88.55ZM256.49 84.425C257.993 84.425 259.368 84.1133 260.615 83.49C261.862 82.83 262.833 81.8217 263.53 80.465C264.263 79.1083 264.63 77.4033 264.63 75.35V73.81L258.25 74.745C255.647 75.1117 253.685 75.735 252.365 76.615C251.045 77.4583 250.385 78.54 250.385 79.86C250.385 80.8867 250.678 81.7483 251.265 82.445C251.888 83.105 252.658 83.6 253.575 83.93C254.528 84.26 255.5 84.425 256.49 84.425ZM278.972 88C278.605 88 278.293 87.89 278.037 87.67C277.817 87.4133 277.707 87.1017 277.707 86.735V60.665C277.707 60.2983 277.817 60.005 278.037 59.785C278.293 59.5283 278.605 59.4 278.972 59.4H281.612C281.978 59.4 282.272 59.5283 282.492 59.785C282.712 60.005 282.822 60.2983 282.822 60.665V71.225H297.837V60.665C297.837 60.2983 297.947 60.005 298.167 59.785C298.423 59.5283 298.735 59.4 299.102 59.4H301.687C302.053 59.4 302.347 59.5283 302.567 59.785C302.823 60.005 302.952 60.2983 302.952 60.665V86.735C302.952 87.1017 302.823 87.4133 302.567 87.67C302.347 87.89 302.053 88 301.687 88H299.102C298.735 88 298.423 87.89 298.167 87.67C297.947 87.4133 297.837 87.1017 297.837 86.735V75.625H282.822V86.735C282.822 87.1017 282.712 87.4133 282.492 87.67C282.272 87.89 281.978 88 281.612 88H278.972ZM322.937 88.55C320.151 88.55 317.822 88.0183 315.952 86.955C314.082 85.8917 312.652 84.425 311.662 82.555C310.672 80.6483 310.122 78.485 310.012 76.065C309.976 75.4417 309.957 74.6533 309.957 73.7C309.957 72.71 309.976 71.9217 310.012 71.335C310.122 68.8783 310.672 66.715 311.662 64.845C312.689 62.975 314.137 61.5083 316.007 60.445C317.877 59.3817 320.187 58.85 322.937 58.85C325.687 58.85 327.997 59.3817 329.867 60.445C331.737 61.5083 333.167 62.975 334.157 64.845C335.184 66.715 335.752 68.8783 335.862 71.335C335.899 71.9217 335.917 72.71 335.917 73.7C335.917 74.6533 335.899 75.4417 335.862 76.065C335.752 78.485 335.202 80.6483 334.212 82.555C333.222 84.425 331.792 85.8917 329.922 86.955C328.052 88.0183 325.724 88.55 322.937 88.55ZM322.937 84.315C325.211 84.315 327.026 83.6 328.382 82.17C329.739 80.7033 330.472 78.5767 330.582 75.79C330.619 75.24 330.637 74.5433 330.637 73.7C330.637 72.8567 330.619 72.16 330.582 71.61C330.472 68.8233 329.739 66.715 328.382 65.285C327.026 63.8183 325.211 63.085 322.937 63.085C320.664 63.085 318.831 63.8183 317.437 65.285C316.081 66.715 315.366 68.8233 315.292 71.61C315.256 72.16 315.237 72.8567 315.237 73.7C315.237 74.5433 315.256 75.24 315.292 75.79C315.366 78.5767 316.081 80.7033 317.437 82.17C318.831 83.6 320.664 84.315 322.937 84.315ZM357.551 88C357.184 88 356.872 87.89 356.616 87.67C356.396 87.4133 356.286 87.1017 356.286 86.735V60.665C356.286 60.2983 356.396 60.005 356.616 59.785C356.872 59.5283 357.184 59.4 357.551 59.4H360.191C360.557 59.4 360.851 59.5283 361.071 59.785C361.291 60.005 361.401 60.2983 361.401 60.665V71.225H376.416V60.665C376.416 60.2983 376.526 60.005 376.746 59.785C377.002 59.5283 377.314 59.4 377.681 59.4H380.266C380.632 59.4 380.926 59.5283 381.146 59.785C381.402 60.005 381.531 60.2983 381.531 60.665V86.735C381.531 87.1017 381.402 87.4133 381.146 87.67C380.926 87.89 380.632 88 380.266 88H377.681C377.314 88 377.002 87.89 376.746 87.67C376.526 87.4133 376.416 87.1017 376.416 86.735V75.625H361.401V86.735C361.401 87.1017 361.291 87.4133 361.071 87.67C360.851 87.89 360.557 88 360.191 88H357.551ZM397.776 88.55C395.943 88.55 394.275 88.1833 392.771 87.45C391.268 86.7167 390.058 85.7267 389.141 84.48C388.225 83.2333 387.766 81.8217 387.766 80.245C387.766 77.715 388.793 75.6983 390.846 74.195C392.9 72.6917 395.576 71.7017 398.876 71.225L407.071 70.07V68.475C407.071 66.715 406.558 65.34 405.531 64.35C404.541 63.36 402.91 62.865 400.636 62.865C398.986 62.865 397.648 63.195 396.621 63.855C395.631 64.515 394.935 65.3583 394.531 66.385C394.311 66.935 393.926 67.21 393.376 67.21H390.901C390.498 67.21 390.186 67.1 389.966 66.88C389.783 66.6233 389.691 66.33 389.691 66C389.691 65.45 389.893 64.7717 390.296 63.965C390.736 63.1583 391.396 62.37 392.276 61.6C393.156 60.83 394.275 60.1883 395.631 59.675C397.025 59.125 398.711 58.85 400.691 58.85C402.891 58.85 404.743 59.1433 406.246 59.73C407.75 60.28 408.923 61.0317 409.766 61.985C410.646 62.9383 411.27 64.02 411.636 65.23C412.04 66.44 412.241 67.6683 412.241 68.915V86.735C412.241 87.1017 412.113 87.4133 411.856 87.67C411.636 87.89 411.343 88 410.976 88H408.446C408.043 88 407.731 87.89 407.511 87.67C407.291 87.4133 407.181 87.1017 407.181 86.735V84.37C406.705 85.03 406.063 85.69 405.256 86.35C404.45 86.9733 403.441 87.505 402.231 87.945C401.021 88.3483 399.536 88.55 397.776 88.55ZM398.931 84.425C400.435 84.425 401.81 84.1133 403.056 83.49C404.303 82.83 405.275 81.8217 405.971 80.465C406.705 79.1083 407.071 77.4033 407.071 75.35V73.81L400.691 74.745C398.088 75.1117 396.126 75.735 394.806 76.615C393.486 77.4583 392.826 78.54 392.826 79.86C392.826 80.8867 393.12 81.7483 393.706 82.445C394.33 83.105 395.1 83.6 396.016 83.93C396.97 84.26 397.941 84.425 398.931 84.425Z",fill:"#F2F3F7"}),f.jsxs("g",{clipPath:"url(#clip0_4819_14374)",children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M461.886 33.8256C453.446 32.8478 447.622 41.9149 442.205 48.4691C437.452 54.2209 433.912 60.7178 433.501 68.1717C433.064 76.1021 434.502 84.3611 439.905 90.1773C445.47 96.1684 453.806 99.9538 461.886 98.7299C469.296 97.6077 472.574 89.4712 478.091 84.3936C484.08 78.8802 495.239 76.3159 495.084 68.1717C494.929 60.0151 483.152 58.4185 477.485 52.5557C471.616 46.483 470.272 34.7969 461.886 33.8256Z",fill:"#7E2AEA"}),f.jsx("circle",{cx:"482.884",cy:"95.6408",r:"4.65763",fill:"#7E2AEA"}),f.jsx("circle",{cx:"478.227",cy:"43.9516",r:"1.77434",fill:"#7E2AEA"}),f.jsx("path",{d:"M506.606 66.259C506.089 61.2292 503.722 56.5706 499.966 53.1862C496.209 49.8018 491.33 47.9327 486.273 47.9411C485.555 47.9415 484.838 47.979 484.124 48.0536C479.096 48.5815 474.443 50.9524 471.06 54.7089C467.677 58.4654 465.805 63.3414 465.805 68.3966V68.3966V97.6187H474.571V85.1993C477.999 87.5839 482.076 88.8589 486.251 88.8521C486.969 88.8518 487.687 88.8143 488.401 88.7396C491.072 88.4588 493.662 87.6546 496.023 86.3728C498.384 85.091 500.469 83.3568 502.16 81.2691C503.85 79.1814 505.113 76.7812 505.876 74.2056C506.639 71.6299 506.887 68.9291 506.606 66.2576V66.259ZM495.347 75.7562C494.384 76.9525 493.193 77.9458 491.843 78.6786C490.494 79.4115 489.012 79.8693 487.485 80.0255C487.075 80.0681 486.663 80.0896 486.251 80.0898C483.6 80.0874 481.028 79.1837 478.958 77.5271C476.889 75.8705 475.443 73.5594 474.86 70.9731C474.276 68.3868 474.59 65.679 475.748 63.2942C476.906 60.9093 478.841 58.9891 481.234 57.8487C483.628 56.7083 486.338 56.4155 488.92 57.0183C491.502 57.6211 493.802 59.0836 495.443 61.166C497.084 63.2483 497.968 65.8267 497.951 68.4779C497.933 71.1291 497.015 73.6956 495.347 75.7562Z",fill:"#F9F9F9"}),f.jsx("path",{d:"M529.478 47.9411C528.76 47.9414 528.043 47.979 527.329 48.0536C522.119 48.6022 517.319 51.1284 513.917 55.1114C510.515 59.0944 508.771 64.2307 509.043 69.4618C509.316 74.6928 511.585 79.6199 515.383 83.2274C519.181 86.835 524.218 88.8482 529.456 88.8521C530.174 88.8518 530.891 88.8143 531.605 88.7396C535.361 88.3397 538.934 86.9109 541.93 84.6105C544.926 82.3102 547.229 79.2275 548.585 75.7021H538.592L538.551 75.7532C537.272 77.3353 535.601 78.5558 533.704 79.294C531.808 80.0322 529.752 80.2626 527.739 79.9622C525.726 79.6619 523.827 78.8413 522.229 77.5816C520.63 76.3219 519.389 74.6667 518.626 72.7799H549.456C550.105 69.7933 550.078 66.6993 549.376 63.7246C548.674 60.75 547.316 57.97 545.4 55.5884C543.485 53.2068 541.061 51.284 538.306 49.9607C535.551 48.6375 532.534 47.9474 529.478 47.9411V47.9411ZM518.626 64.0133C519.424 62.0489 520.741 60.338 522.434 59.0627C524.128 57.7875 526.136 56.9958 528.245 56.772C528.655 56.7295 529.066 56.708 529.478 56.7077C531.807 56.7038 534.083 57.3977 536.013 58.6999C537.943 60.0021 539.439 61.8528 540.308 64.0133H518.626Z",fill:"#F9F9F9"}),f.jsx("path",{d:"M571.115 47.9411C567.765 47.9358 564.478 48.8571 561.618 50.6033V47.9411H552.852V88.8521H561.618V66.205C561.618 63.6861 562.619 61.2705 564.4 59.4894C566.181 57.7084 568.597 56.7078 571.115 56.7078C573.634 56.7078 576.05 57.7084 577.831 59.4894C579.612 61.2705 580.613 63.6861 580.613 66.205V88.8521H589.379V66.205C589.379 61.3611 587.455 56.7156 584.03 53.2905C580.605 49.8653 575.959 47.9411 571.115 47.9411Z",fill:"#F9F9F9"}),f.jsx("path",{d:"M633.214 71.0105V47.9411H624.447V51.5939C621.02 49.2083 616.943 47.9332 612.767 47.9411C612.049 47.9415 611.332 47.979 610.618 48.0536C605.408 48.6023 600.608 51.1284 597.206 55.1114C593.804 59.0944 592.06 64.2308 592.332 69.4618C592.605 74.6928 594.874 79.6199 598.672 83.2275C602.47 86.8351 607.507 88.8483 612.745 88.8521C613.463 88.8518 614.18 88.8143 614.894 88.7396C619.99 88.2182 624.7 85.7909 628.081 81.944C630.708 85.459 634.513 87.9112 638.8 88.8521V79.6617C637.136 78.9083 635.725 77.6919 634.734 76.1577C633.744 74.6236 633.216 72.8367 633.214 71.0105ZM621.841 75.7533C620.877 76.9493 619.687 77.9424 618.337 78.6753C616.987 79.4081 615.506 79.866 613.978 80.0226C613.569 80.0652 613.157 80.0866 612.745 80.0869C609.75 80.0868 606.869 78.9369 604.697 76.8746C602.525 74.8123 601.228 71.9949 601.073 69.0038C600.917 66.0127 601.916 63.0761 603.863 60.8001C605.81 58.524 608.556 57.0822 611.535 56.7721C611.945 56.7295 612.356 56.708 612.767 56.7078C614.974 56.7097 617.135 57.3363 619.001 58.5151C620.867 59.694 622.36 61.3769 623.31 63.3693C624.259 65.3617 624.625 67.582 624.365 69.7736C624.105 71.9651 623.23 74.0383 621.841 75.7533Z",fill:"#F9F9F9"}),f.jsx("path",{d:"M600.484 110.378V105.155C600.125 105.617 599.679 105.986 599.144 106.26C598.609 106.527 598.032 106.661 597.413 106.661C596.232 106.661 595.261 106.217 594.498 105.331C593.598 104.294 593.148 102.888 593.148 101.115C593.148 99.4454 593.569 98.1445 594.41 97.212C595.257 96.273 596.307 95.8035 597.559 95.8035C598.251 95.8035 598.847 95.9502 599.349 96.2437C599.858 96.5371 600.308 96.9805 600.699 97.5739V96.0383H603.233V110.378H600.484ZM600.572 101.105C600.572 100.042 600.354 99.2531 599.917 98.7379C599.486 98.2162 598.945 97.9554 598.293 97.9554C597.628 97.9554 597.07 98.2195 596.62 98.7477C596.177 99.2759 595.955 100.114 595.955 101.262C595.955 102.403 596.17 103.228 596.601 103.736C597.031 104.238 597.563 104.489 598.195 104.489C598.828 104.489 599.382 104.206 599.858 103.638C600.334 103.071 600.572 102.227 600.572 101.105ZM612.779 106.426V104.871C612.401 105.425 611.902 105.862 611.283 106.182C610.67 106.501 610.021 106.661 609.336 106.661C608.638 106.661 608.012 106.508 607.458 106.201C606.904 105.895 606.503 105.464 606.255 104.91C606.007 104.356 605.883 103.589 605.883 102.611V96.0383H608.632V100.812C608.632 102.272 608.681 103.169 608.779 103.501C608.883 103.827 609.069 104.088 609.336 104.284C609.603 104.473 609.943 104.568 610.353 104.568C610.823 104.568 611.243 104.44 611.615 104.186C611.987 103.925 612.241 103.606 612.378 103.228C612.515 102.843 612.584 101.907 612.584 100.42V96.0383H615.332V106.426H612.779ZM618.188 94.6297V92.0866H620.937V94.6297H618.188ZM618.188 106.426V96.0383H620.937V106.426H618.188ZM622.658 106.426V104.284L626.551 99.8139C627.19 99.0835 627.663 98.5651 627.97 98.2586C627.65 98.2782 627.229 98.2912 626.708 98.2978L623.04 98.3173V96.0383H631.628V97.9848L627.657 102.562L626.258 104.079C627.021 104.033 627.494 104.01 627.676 104.01H631.931V106.426H622.658Z",fill:"#F7F7F7"})]}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_4819_14374",children:f.jsx("rect",{width:"207",height:"80.129",fill:"white",transform:"translate(432 30)"})})})]}),NU=({currentQuestion:e,currentQuestionStepNumber:t,nextButton:n,prevButton:r})=>{const o=Le(),{settings:i}=jt();return console.log(t),f.jsxs(J,{sx:{backgroundColor:o.palette.background.default,height:"100%"},children:[f.jsxs(J,{sx:{height:"calc(100% - 75px)",width:"100%",maxWidth:"1440px",padding:"40px 25px 20px",margin:"0 auto",overflow:"auto",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[f.jsx(VU,{question:e,stepNumber:t},e.id),wn[i.cfg.theme].isLight?f.jsx(no,{target:"_blank",href:"https://quiz.pena.digital",children:f.jsx(LU,{style:{fontSize:"34px",width:"200px",height:"auto"}})}):f.jsx(no,{target:"_blank",href:"https://quiz.pena.digital",children:f.jsx(jU,{style:{fontSize:"34px",width:"200px",height:"auto"}})})]}),f.jsx(eU,{stepNumber:t,prevButton:r,nextButton:n})]})};function VU({question:e,stepNumber:t}){switch(e.type){case"variant":return f.jsx($U,{currentQuestion:e});case"images":return f.jsx(fU,{currentQuestion:e});case"varimg":return f.jsx(AU,{currentQuestion:e});case"emoji":return f.jsx(sU,{currentQuestion:e});case"text":return f.jsx(_U,{currentQuestion:e,stepNumber:t});case"select":return f.jsx(TU,{currentQuestion:e});case"date":return f.jsx(nU,{currentQuestion:e});case"number":return f.jsx(mU,{currentQuestion:e});case"file":return f.jsx(uU,{currentQuestion:e});case"page":return f.jsx(gU,{currentQuestion:e});case"rating":return f.jsx(EU,{currentQuestion:e});default:Mg(e)}}const zU=({resultQuestion:e})=>{const t=Le(),n=Zt()<650,{settings:r}=jt(),o=r.cfg.spec;return f.jsxs(J,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",height:"100%",width:"100%",pt:"28px",overflow:"auto",backgroundColor:t.palette.background.default},children:[f.jsxs(J,{sx:{display:"flex",flexDirection:"column",alignItems:"start",width:n?"100%":"490px",padding:n?"0 16px":void 0},children:[!(e!=null&&e.content.useImage)&&e.content.video&&f.jsx(Rg,{videoUrl:e.content.video,containerSX:{width:n?"100%":"490px",height:n?"100%":"280px"}}),(e==null?void 0:e.content.useImage)&&e.content.back&&f.jsx(J,{component:"img",src:e.content.back,sx:{width:o||n?"100%":"490px",height:o?"auto":n?"100%":"280px"}}),e.description!==""&&e.description!==" "&&f.jsx(Te,{sx:{fontSize:"23px",fontWeight:700,m:"20px 0",color:t.palette.text.primary,wordBreak:"break-word"},children:e.description}),f.jsx(Te,{sx:{m:"20px 0",color:t.palette.text.primary,wordBreak:"break-word"},children:e.title}),e.content.text!==""&&e.content.text!==" "&&f.jsx(Te,{sx:{fontSize:"18px",m:"20px 0",wordBreak:"break-word",color:t.palette.text.primary},children:e.content.text})]}),f.jsxs(J,{width:"100%",children:[f.jsx(J,{sx:{display:"flex",width:"100%",justifyContent:"end",px:"20px"},children:f.jsxs(J,{component:no,target:"_blank",href:"https://quiz.pena.digital",sx:{display:"flex",alignItems:"center",mt:"15px",gap:"10px",textDecoration:"none",mb:"5px"},children:[f.jsx(Tg,{style:{fontSize:"34px",color:wn[r.cfg.theme].isLight?"#000000":"#F5F7FF"}}),f.jsx(Te,{sx:{fontSize:"20px",color:wn[r.cfg.theme].isLight?"#4D4D4D":"#F5F7FF",whiteSpace:"nowrap"},children:"Сделано на PenaQuiz"})]})}),f.jsxs(J,{sx:{boxShadow:"0 0 15px 0 rgba(0,0,0,.08)",width:"100%",flexDirection:"column",display:"flex",justifyContent:"center",alignItems:"center",p:r.cfg.resultInfo.showResultForm==="before"&&!r.cfg.score||r.cfg.resultInfo.showResultForm==="after"&&e.content.redirect?"20px":"0"},children:[r.cfg.resultInfo.showResultForm==="before"&&!r.cfg.score&&f.jsx(Mr,{onClick:()=>vd("contactform"),variant:"contained",sx:{p:"10px 20px",width:"auto",height:"50px"},children:e.content.hint.text||"Узнать подробнее"}),r.cfg.resultInfo.showResultForm==="after"&&e.content.redirect&&f.jsx(Mr,{href:e.content.redirect,variant:"contained",sx:{p:"10px 20px",width:"auto",height:"50px"},children:e.content.hint.text||"Перейти на сайт"})]})]})]})};function BU(){const[e,t]=v.useState(!1);return v.useEffect(()=>{const n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);t(n)},[navigator.userAgent]),{isMobileDevice:e}}const WU=()=>{const e=Le(),{settings:t}=jt(),{isMobileDevice:n}=BU(),r=Zt()<650,o=Zt()<800,i=()=>{navigator.clipboard.writeText(t.cfg.info.phonenumber)};console.log(t.cfg.startpage.background.type);const s=t.cfg.startpage.background.type==="image"?t.cfg.startpage.background.desktop?f.jsx("img",{src:t.cfg.startpage.background.desktop,alt:"",style:{width:r||t.cfg.startpageType==="expanded"?"100%":void 0,height:"100%",objectFit:"cover",overflow:"hidden"}}):null:t.cfg.startpage.background.type==="video"&&t.cfg.startpage.background.video?f.jsx(Rg,{videoUrl:t.cfg.startpage.background.video,containerSX:{width:t.cfg.startpageType==="centered"?"550px":"100%",height:t.cfg.startpageType==="centered"?"275px":"100%",borderRadius:t.cfg.startpageType==="centered"?"10px":"0",overflow:"hidden","& iframe":{width:"100%",height:"100%",transform:t.cfg.startpageType==="centered"?"":t.cfg.startpageType==="expanded"?"scale(1.5)":"scale(2.4)"}}}):null;return f.jsx(Ql,{className:"settings-preview-draghandle",sx:{height:"100%",width:"100%",background:t.cfg.startpageType==="expanded"&&!r?t.cfg.startpage.position==="left"?"linear-gradient(90deg,#272626,transparent)":t.cfg.startpage.position==="center"?"linear-gradient(180deg,transparent,#272626)":"linear-gradient(270deg,#272626,transparent)":e.palette.background.default,color:t.cfg.startpageType==="expanded"?"white":"black"},children:f.jsx(HU,{quizHeaderBlock:f.jsxs(J,{p:t.cfg.startpageType==="standard"?"":"16px",children:[f.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:"20px",mb:"7px"},children:[t.cfg.startpage.logo&&f.jsx("img",{src:t.cfg.startpage.logo,style:{height:"37px",maxWidth:"43px",objectFit:"cover"},alt:""}),f.jsx(Te,{sx:{fontSize:"14px",color:t.cfg.startpageType==="expanded"&&!r?"white":e.palette.text.primary,wordBreak:"break-word"},children:t.cfg.info.orgname})]}),f.jsx(no,{mb:"16px",href:t.cfg.info.site,children:f.jsx(Te,{sx:{fontSize:"16px",color:e.palette.primary.main,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:o?"200px":"300px"},children:t.cfg.info.site})})]}),quizMainBlock:f.jsxs(f.Fragment,{children:[f.jsxs(J,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:t.cfg.startpageType==="centered"||t.cfg.startpageType==="expanded"&&t.cfg.startpage.position==="center"?"center":"start",mt:"28px",width:"100%"},children:[f.jsx(Te,{sx:{fontWeight:"bold",fontSize:"26px",fontStyle:"normal",fontStretch:"normal",lineHeight:"1.2",overflowWrap:"break-word",width:"100%",textAlign:t.cfg.startpageType==="centered"||t.cfg.startpage.position==="center"?"center":"-moz-initial",color:t.cfg.startpageType==="expanded"&&!r?"white":e.palette.text.primary},children:t.name}),f.jsx(Te,{sx:{fontSize:"16px",m:"16px 0",overflowWrap:"break-word",width:"100%",textAlign:t.cfg.startpageType==="centered"||t.cfg.startpage.position==="center"?"center":"-moz-initial",color:t.cfg.startpageType==="expanded"&&!r?"white":e.palette.text.primary},children:t.cfg.startpage.description}),f.jsx(J,{width:t.cfg.startpageType==="standard"?"100%":"auto",children:f.jsx(Mr,{variant:"contained",sx:{fontSize:"16px",padding:"10px 15px",width:t.cfg.startpageType==="standard"?"100%":"auto"},onClick:()=>vd("question"),children:t.cfg.startpage.button.trim()?t.cfg.startpage.button:"Пройти тест"})})]}),f.jsxs(J,{sx:{mt:"46px",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",flexDirection:"column"},children:[f.jsxs(J,{sx:{maxWidth:o?"240px":"300px",marginBottom:"10px"},children:[t.cfg.info.clickable?n?f.jsx(no,{href:`tel:${t.cfg.info.phonenumber}`,children:f.jsx(Te,{sx:{fontSize:"16px",color:e.palette.primary.main},children:t.cfg.info.phonenumber})}):f.jsx(Ir,{onClick:i,children:f.jsx(Te,{sx:{fontSize:"16px",color:e.palette.primary.main},children:t.cfg.info.phonenumber})}):f.jsx(Te,{sx:{fontSize:"16px",color:e.palette.primary.main},children:t.cfg.info.phonenumber}),f.jsx(Te,{sx:{width:"100%",overflowWrap:"break-word",fontSize:"12px",textAlign:"end",maxHeight:"120px",overflow:"auto","&::-webkit-scrollbar":{width:0},color:t.cfg.startpageType==="expanded"&&!r?"white":e.palette.text.primary},children:t.cfg.info.law})]}),f.jsxs(J,{component:no,target:"_blank",href:"https://quiz.pena.digital",sx:{display:"flex",alignItems:"center",gap:"15px",textDecoration:"none"},children:[f.jsx(Tg,{style:{fontSize:"34px",color:t.cfg.startpageType==="expanded"&&!r?"#FFFFFF":wn[t.cfg.theme].isLight?"#151515":"#FFFFFF"}}),f.jsx(Te,{sx:{fontSize:"20px",color:t.cfg.startpageType==="expanded"&&!r?"#F5F7FF":wn[t.cfg.theme].isLight?"#4D4D4D":"#F5F7FF",whiteSpace:"nowrap"},children:"Сделано на PenaQuiz"})]})]})]}),backgroundBlock:s,startpageType:t.cfg.startpageType,alignType:t.cfg.startpage.position})})};function HU({quizHeaderBlock:e,quizMainBlock:t,backgroundBlock:n,startpageType:r,alignType:o}){const i=Zt()<650;function s(){return f.jsxs(J,{sx:{display:"flex",flexDirection:"column-reverse",flexGrow:1,justifyContent:"flex-end",height:"100%","&::-webkit-scrollbar":{width:0}},children:[f.jsxs(J,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",p:"25px",height:"100%",overflowY:"auto",overflowX:"hidden"},children:[e,f.jsx(J,{sx:{height:"80%",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%"},children:t})]}),f.jsx(J,{sx:{width:"100%",overflow:"hidden"},children:n})]})}switch(r){case null:case"standard":return f.jsx(f.Fragment,{children:i?f.jsx(s,{}):f.jsxs(J,{id:"pain",sx:{display:"flex",flexDirection:o==="left"?i?"column-reverse":"row":"row-reverse",flexGrow:1,justifyContent:i?"flex-end":void 0,height:"100%","&::-webkit-scrollbar":{width:0},overflow:"auto"},children:[f.jsxs(J,{sx:{width:i?"100%":"40%",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",p:"25px",height:i?"80%":void 0},children:[e,t]}),f.jsx(J,{sx:{width:i?"100%":"60%",overflow:"hidden"},children:n})]})});case"expanded":return f.jsx(f.Fragment,{children:i?f.jsx(s,{}):f.jsxs(J,{sx:{overflow:"auto",position:"relative",display:"flex",justifyContent:UU[o],flexGrow:1,height:"100%","&::-webkit-scrollbar":{width:0}},children:[f.jsxs(J,{sx:{width:"40%",position:"relative",padding:"16px",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:o==="center"?"center":"start"},children:[e,t]}),f.jsx(J,{sx:{position:"absolute",zIndex:-1,left:0,top:0,height:"100%",width:"100%",overflow:"hidden"},children:n})]})});case"centered":return f.jsx(f.Fragment,{children:i?f.jsx(s,{}):f.jsxs(J,{sx:{overflow:"auto",padding:"16px",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",height:"100%","&::-webkit-scrollbar":{width:0}},children:[e,n&&f.jsx(J,{sx:{width:"60%",height:"275px",display:"flex",justifyContent:"center"},children:n}),t]})});default:Mg(r)}}const UU={left:"start",center:"center",right:"end"};function YU(){const{settings:e,recentlyCompleted:t}=jt();let n=Nt(p=>p.currentQuizStep);const r=Zt()<382,{currentQuestion:o,currentQuestionStepNumber:i,isNextButtonEnabled:s,isPreviousButtonEnabled:a,moveToPrevQuestion:l,moveToNextQuestion:c,showResultAfterContactForm:u}=OH();if(v.useEffect(function(){const x=document.querySelector('link[rel="icon"]');x&&e.cfg.startpage.favIcon&&x.setAttribute("href",e.cfg.startpage.favIcon),document.title=e.name},[e]),t)throw new Error("Quiz already completed");n==="startpage"&&e.cfg.noStartPage&&(n="question");let d;switch(n){case"startpage":{d=f.jsx(WU,{});break}case"question":{if(o.type==="result"){d=f.jsx(zU,{resultQuestion:o});break}d=f.jsx(NU,{currentQuestion:o,currentQuestionStepNumber:i,prevButton:f.jsx(Mr,{disabled:!a,variant:"contained",sx:{fontSize:"16px",padding:"10px 15px"},onClick:l,children:r?"←":"← Назад"}),nextButton:f.jsx(Mr,{disabled:!s,variant:"contained",sx:{fontSize:"16px",padding:"10px 15px"},onClick:c,children:"Далее →"})});break}case"contactform":{d=f.jsx(JH,{currentQuestion:o,onShowResult:u});break}default:Mg(n)}return f.jsx(Lx,{theme:wn[e.cfg.theme||"StandardTheme"].theme,children:d})}de.locale("ru");const GU=AA.components.MuiLocalizationProvider.defaultProps.localeText;function qU({quizSettings:e,quizId:t,preview:n=!1}){const[r,o]=v.useState(()=>window.innerWidth),i=v.useRef(null);return v.useLayoutEffect(()=>{i.current&&o(i.current.clientWidth)},[]),v.useEffect(()=>{const s=()=>{v.startTransition(()=>{i.current&&o(i.current.clientWidth)})};return window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[]),f.jsx(D7.Provider,{value:r,children:f.jsx(z6.Provider,{value:{...e,quizId:t,preview:n},children:f.jsx(Gm,{dateAdapter:mW,adapterLocale:"ru",localeText:GU,children:f.jsx(Lx,{theme:Nv,children:f.jsxs(qW,{preventDuplicate:!0,style:{backgroundColor:Nv.palette.brightPurple.main},children:[f.jsx(wD,{}),f.jsx(J,{ref:i,sx:{width:"100%",height:"100%"},children:f.jsx(ZW,{FallbackComponent:x7,onError:gW,children:f.jsx(YU,{})})})]})})})})})}function KU({quizId:e}){const{data:t,error:n,isLoading:r}=VF(["quizData",e],o=>T9(o[1]),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1,refreshInterval:0});if(r)return f.jsx(tF,{});if(n)return f.jsx(x7,{error:n});if(!t)throw new Error("Quiz data is null");return f.jsx(qU,{quizSettings:t,quizId:e})}let Qc;const ZU={create({selector:e,quizId:t}){const n=document.getElementById(e);if(!n)throw new Error("Element for widget doesn't exist");Qc=T3(n),Qc.render(f.jsx(KU,{quizId:t}))},unmount(){Qc&&Qc.unmount()}};export{ZU as default};