@pie-element/math-templated 8.0.2-next.20261007003844 → 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- this.MathTemplatedElement=(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.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`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function k(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+te(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(ee,`$&/`)+`/`),k(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+te(s,l);c+=k(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+te(s,l++),c+=k(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function A(e,t,n){if(e==null)return e;var r=[],i=0;return k(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ne(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var j={current:null},re={transition:null},ie={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:re,ReactCurrentOwner:C};function ae(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ie,e.act=ae,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ne}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=re.transition;re.transition={};try{e()}finally{re.transition=t}},e.unstable_act=ae,e.useCallback=function(e,t){return j.current.useCallback(e,t)},e.useContext=function(e){return j.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return j.current.useDeferredValue(e)},e.useEffect=function(e,t){return j.current.useEffect(e,t)},e.useId=function(){return j.current.useId()},e.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return j.current.useMemo(e,t)},e.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},e.useRef=function(e){return j.current.useRef(e)},e.useState=function(e){return j.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return j.current.useTransition()},e.version=`18.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,A(x);else{var t=n(l);t!==null&&ne(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&ne(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?ee():(S=!1,C=null)}}else S=!1}var ee;if(typeof v==`function`)ee=function(){v(O)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,k=te.port2;te.port1.onmessage=O,ee=function(){k.postMessage(null)}}else ee=function(){g(O,0)};function A(e){C=e,S||(S=!0,ee())}function ne(t,n){w=g(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,A(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,ne(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,A(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d(),n=p();function r(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 i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,f={},m={};function h(e){return l.call(m,e)?!0:l.call(f,e)?!1:u.test(e)?m[e]=!0:(f[e]=!0,!1)}function g(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?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(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(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?h(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),E=Symbol.for(`react.fragment`),D=Symbol.for(`react.strict_mode`),O=Symbol.for(`react.profiler`),ee=Symbol.for(`react.provider`),te=Symbol.for(`react.context`),k=Symbol.for(`react.forward_ref`),A=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),j=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.offscreen`),ae=Symbol.iterator;function oe(e){return typeof e!=`object`||!e?null:(e=ae&&e[ae]||e[`@@iterator`],typeof e==`function`?e:null)}var M=Object.assign,se;function ce(e){if(se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);se=t&&t[1]||``}return`
2
- `+se+e}var le=!1;function ue(e,t){if(!e||le)return``;le=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
1
+ this.MathTemplatedElement=(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.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`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function k(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+te(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(ee,`$&/`)+`/`),k(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+te(s,l);c+=k(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+te(s,l++),c+=k(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function A(e,t,n){if(e==null)return e;var r=[],i=0;return k(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ne(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var j={current:null},re={transition:null},ie={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:re,ReactCurrentOwner:C};function ae(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ie,e.act=ae,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ne}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=re.transition;re.transition={};try{e()}finally{re.transition=t}},e.unstable_act=ae,e.useCallback=function(e,t){return j.current.useCallback(e,t)},e.useContext=function(e){return j.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return j.current.useDeferredValue(e)},e.useEffect=function(e,t){return j.current.useEffect(e,t)},e.useId=function(){return j.current.useId()},e.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return j.current.useMemo(e,t)},e.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},e.useRef=function(e){return j.current.useRef(e)},e.useState=function(e){return j.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return j.current.useTransition()},e.version=`18.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,A(x);else{var t=n(l);t!==null&&ne(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&ne(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?ee():(S=!1,C=null)}}else S=!1}var ee;if(typeof v==`function`)ee=function(){v(O)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,k=te.port2;te.port1.onmessage=O,ee=function(){k.postMessage(null)}}else ee=function(){g(O,0)};function A(e){C=e,S||(S=!0,ee())}function ne(t,n){w=g(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,A(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,ne(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,A(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d(),n=p();function r(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 i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,f={},m={};function h(e){return l.call(m,e)?!0:l.call(f,e)?!1:u.test(e)?m[e]=!0:(f[e]=!0,!1)}function g(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?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(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(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?h(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),E=Symbol.for(`react.fragment`),D=Symbol.for(`react.strict_mode`),O=Symbol.for(`react.profiler`),ee=Symbol.for(`react.provider`),te=Symbol.for(`react.context`),k=Symbol.for(`react.forward_ref`),A=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),j=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.offscreen`),ae=Symbol.iterator;function oe(e){return typeof e!=`object`||!e?null:(e=ae&&e[ae]||e[`@@iterator`],typeof e==`function`?e:null)}var se=Object.assign,M;function ce(e){if(M===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||``}return`
2
+ `+M+e}var le=!1;function ue(e,t){if(!e||le)return``;le=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
3
3
  `),a=r.stack.split(`
4
4
  `),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
5
- `+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{le=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ce(e):``}function de(e){switch(e.tag){case 5:return ce(e.type);case 16:return ce(`Lazy`);case 13:return ce(`Suspense`);case 19:return ce(`SuspenseList`);case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return``}}function fe(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 E:return`Fragment`;case T:return`Portal`;case O:return`Profiler`;case D:return`StrictMode`;case A:return`Suspense`;case ne:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case te:return(e.displayName||`Context`)+`.Consumer`;case ee:return(e._context.displayName||`Context`)+`.Provider`;case k:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case j:return t=e.displayName||null,t===null?fe(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function pe(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`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return fe(t);case 8:return t===D?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function me(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function he(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function ge(e){var t=he(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _e(e){e._valueTracker||=ge(e)}function ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=he(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function ye(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function be(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xe(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=me(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function Se(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function Ce(e,t){Se(e,t);var n=me(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`)?Te(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Te(e,t.type,me(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function we(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 Te(e,t,n){(t!==`number`||ye(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Ee=Array.isArray;function De(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+me(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Oe(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return M({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function ke(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(Ee(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:me(n)}}function Ae(e,t){var n=me(t.value),r=me(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 je(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Me(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 Ne(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Me(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Pe,Fe=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Pe||=document.createElement(`div`),Pe.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ie(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Le={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},Re=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Le).forEach(function(e){Re.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Le[t]=Le[e]})});function ze(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Le.hasOwnProperty(e)&&Le[e]?(``+t).trim():t+`px`}function Be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=ze(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Ve=M({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 He(e,t){if(t){if(Ve[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Ue(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 We=null;function Ge(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ke=null,qe=null,Je=null;function Ye(e){if(e=Ji(e)){if(typeof Ke!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Xi(t),Ke(e.stateNode,e.type,t))}}function Xe(e){qe?Je?Je.push(e):Je=[e]:qe=e}function Ze(){if(qe){var e=qe,t=Je;if(Je=qe=null,Ye(e),t)for(e=0;e<t.length;e++)Ye(t[e])}}function Qe(e,t){return e(t)}function $e(){}var et=!1;function tt(e,t,n){if(et)return e(t,n);et=!0;try{return Qe(e,t,n)}finally{et=!1,(qe!==null||Je!==null)&&($e(),Ze())}}function nt(e,t){var n=e.stateNode;if(n===null)return null;var i=Xi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var rt=!1;if(c)try{var it={};Object.defineProperty(it,"passive",{get:function(){rt=!0}}),window.addEventListener(`test`,it,it),window.removeEventListener(`test`,it,it)}catch{rt=!1}function at(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var ot=!1,st=null,ct=!1,lt=null,ut={onError:function(e){ot=!0,st=e}};function dt(e,t,n,r,i,a,o,s,c){ot=!1,st=null,at.apply(ut,arguments)}function ft(e,t,n,i,a,o,s,c,l){if(dt.apply(this,arguments),ot){if(ot){var u=st;ot=!1,st=null}else throw Error(r(198));ct||(ct=!0,lt=u)}}function pt(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 mt(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 ht(e){if(pt(e)!==e)throw Error(r(188))}function gt(e){var t=e.alternate;if(!t){if(t=pt(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return ht(a),e;if(o===i)return ht(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function _t(e){return e=gt(e),e===null?null:vt(e)}function vt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vt(e);if(t!==null)return t;e=e.sibling}return null}var yt=n.unstable_scheduleCallback,bt=n.unstable_cancelCallback,xt=n.unstable_shouldYield,St=n.unstable_requestPaint,Ct=n.unstable_now,wt=n.unstable_getCurrentPriorityLevel,Tt=n.unstable_ImmediatePriority,Et=n.unstable_UserBlockingPriority,Dt=n.unstable_NormalPriority,Ot=n.unstable_LowPriority,kt=n.unstable_IdlePriority,At=null,jt=null;function Mt(e){if(jt&&typeof jt.onCommitFiberRoot==`function`)try{jt.onCommitFiberRoot(At,e,void 0,(e.current.flags&128)==128)}catch{}}var Nt=Math.clz32?Math.clz32:It,Pt=Math.log,Ft=Math.LN2;function It(e){return e>>>=0,e===0?32:31-(Pt(e)/Ft|0)|0}var Lt=64,Rt=4194304;function zt(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 Bt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=zt(a))):r=zt(s)}else o=n&~i,o===0?a!==0&&(r=zt(a)):r=zt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Nt(t),i=1<<n,r|=e[n],t&=~i;return r}function Vt(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 Ht(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Nt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Vt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Ut(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Wt(){var e=Lt;return Lt<<=1,!(Lt&4194240)&&(Lt=64),e}function Gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Kt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=n}function qt(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 i=31-Nt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Jt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Yt=0;function Xt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Zt,Qt,$t,en,tn,nn=!1,rn=[],an=null,on=null,sn=null,cn=new Map,ln=new Map,un=[],dn=`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 fn(e,t){switch(e){case`focusin`:case`focusout`:an=null;break;case`dragenter`:case`dragleave`:on=null;break;case`mouseover`:case`mouseout`:sn=null;break;case`pointerover`:case`pointerout`:cn.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:ln.delete(t.pointerId)}}function pn(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ji(t),t!==null&&Qt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function mn(e,t,n,r,i){switch(t){case`focusin`:return an=pn(an,e,t,n,r,i),!0;case`dragenter`:return on=pn(on,e,t,n,r,i),!0;case`mouseover`:return sn=pn(sn,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return cn.set(a,pn(cn.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,ln.set(a,pn(ln.get(a)||null,e,t,n,r,i)),!0}return!1}function hn(e){var t=qi(e.target);if(t!==null){var n=pt(t);if(n!==null){if(t=n.tag,t===13){if(t=mt(n),t!==null){e.blockedOn=t,tn(e.priority,function(){$t(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 gn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Dn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);We=r,n.target.dispatchEvent(r),We=null}else return t=Ji(n),t!==null&&Qt(t),e.blockedOn=n,!1;t.shift()}return!0}function _n(e,t,n){gn(e)&&n.delete(t)}function vn(){nn=!1,an!==null&&gn(an)&&(an=null),on!==null&&gn(on)&&(on=null),sn!==null&&gn(sn)&&(sn=null),cn.forEach(_n),ln.forEach(_n)}function yn(e,t){e.blockedOn===t&&(e.blockedOn=null,nn||(nn=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,vn)))}function bn(e){function t(t){return yn(t,e)}if(0<rn.length){yn(rn[0],e);for(var n=1;n<rn.length;n++){var r=rn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(an!==null&&yn(an,e),on!==null&&yn(on,e),sn!==null&&yn(sn,e),cn.forEach(t),ln.forEach(t),n=0;n<un.length;n++)r=un[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<un.length&&(n=un[0],n.blockedOn===null);)hn(n),n.blockedOn===null&&un.shift()}var xn=C.ReactCurrentBatchConfig,Sn=!0;function Cn(e,t,n,r){var i=Yt,a=xn.transition;xn.transition=null;try{Yt=1,Tn(e,t,n,r)}finally{Yt=i,xn.transition=a}}function wn(e,t,n,r){var i=Yt,a=xn.transition;xn.transition=null;try{Yt=4,Tn(e,t,n,r)}finally{Yt=i,xn.transition=a}}function Tn(e,t,n,r){if(Sn){var i=Dn(e,t,n,r);if(i===null)yi(e,t,r,En,n),fn(e,r);else if(mn(i,e,t,n,r))r.stopPropagation();else if(fn(e,r),t&4&&-1<dn.indexOf(e)){for(;i!==null;){var a=Ji(i);if(a!==null&&Zt(a),a=Dn(e,t,n,r),a===null&&yi(e,t,r,En,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else yi(e,t,r,null,n)}}var En=null;function Dn(e,t,n,r){if(En=null,e=Ge(r),e=qi(e),e!==null)if(t=pt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mt(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 En=e,null}function On(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(wt()){case Tt:return 1;case Et:return 4;case Dt:case Ot:return 16;case kt:return 536870912;default:return 16}default:return 16}}var kn=null,An=null,jn=null;function Mn(){if(jn)return jn;var e,t=An,n=t.length,r,i=`value`in kn?kn.value:kn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return jn=i.slice(e,1<r?1-r:void 0)}function Nn(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 Pn(){return!0}function Fn(){return!1}function In(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Pn:Fn,this.isPropagationStopped=Fn,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Pn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Pn)},persist:function(){},isPersistent:Pn}),t}var Ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rn=In(Ln),zn=M({},Ln,{view:0,detail:0}),Bn=In(zn),Vn,Hn,Un,Wn=M({},zn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tr,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!==Un&&(Un&&e.type===`mousemove`?(Vn=e.screenX-Un.screenX,Hn=e.screenY-Un.screenY):Hn=Vn=0,Un=e),Vn)},movementY:function(e){return`movementY`in e?e.movementY:Hn}}),Gn=In(Wn),Kn=In(M({},Wn,{dataTransfer:0})),qn=In(M({},zn,{relatedTarget:0})),Jn=In(M({},Ln,{animationName:0,elapsedTime:0,pseudoElement:0})),Yn=In(M({},Ln,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Xn=In(M({},Ln,{data:0})),Zn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Qn={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`},$n={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function er(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$n[e])?!!t[e]:!1}function tr(){return er}var nr=In(M({},zn,{key:function(e){if(e.key){var t=Zn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Nn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tr,charCode:function(e){return e.type===`keypress`?Nn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Nn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),rr=In(M({},Wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ir=In(M({},zn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tr})),ar=In(M({},Ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),or=In(M({},Wn,{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})),sr=[9,13,27,32],cr=c&&`CompositionEvent`in window,lr=null;c&&`documentMode`in document&&(lr=document.documentMode);var ur=c&&`TextEvent`in window&&!lr,dr=c&&(!cr||lr&&8<lr&&11>=lr),fr=` `,pr=!1;function mr(e,t){switch(e){case`keyup`:return sr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function hr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var gr=!1;function _r(e,t){switch(e){case`compositionend`:return hr(t);case`keypress`:return t.which===32?(pr=!0,fr):null;case`textInput`:return e=t.data,e===fr&&pr?null:e;default:return null}}function vr(e,t){if(gr)return e===`compositionend`||!cr&&mr(e,t)?(e=Mn(),jn=An=kn=null,gr=!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 dr&&t.locale!==`ko`?null:t.data;default:return null}}var yr={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 br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!yr[e.type]:t===`textarea`}function xr(e,t,n,r){Xe(r),t=xi(t,`onChange`),0<t.length&&(n=new Rn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Sr=null,N=null;function Cr(e){pi(e,0)}function wr(e){if(ve(Yi(e)))return e}function Tr(e,t){if(e===`change`)return t}var Er=!1;if(c){var Dr;if(c){var Or=`oninput`in document;if(!Or){var kr=document.createElement(`div`);kr.setAttribute(`oninput`,`return;`),Or=typeof kr.oninput==`function`}Dr=Or}else Dr=!1;Er=Dr&&(!document.documentMode||9<document.documentMode)}function Ar(){Sr&&(Sr.detachEvent(`onpropertychange`,jr),N=Sr=null)}function jr(e){if(e.propertyName===`value`&&wr(N)){var t=[];xr(t,N,e,Ge(e)),tt(Cr,t)}}function Mr(e,t,n){e===`focusin`?(Ar(),Sr=t,N=n,Sr.attachEvent(`onpropertychange`,jr)):e===`focusout`&&Ar()}function Nr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return wr(N)}function Pr(e,t){if(e===`click`)return wr(t)}function Fr(e,t){if(e===`input`||e===`change`)return wr(t)}function Ir(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Lr=typeof Object.is==`function`?Object.is:Ir;function Rr(e,t){if(Lr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Lr(e[i],t[i]))return!1}return!0}function zr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Br(e,t){var n=zr(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}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=zr(n)}}function Vr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hr(){for(var e=window,t=ye();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=ye(e.document)}return t}function Ur(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 Wr(e){var t=Hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Vr(n.ownerDocument.documentElement,n)){if(r!==null&&Ur(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 i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Br(n,a);var o=Br(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 Gr=c&&`documentMode`in document&&11>=document.documentMode,Kr=null,qr=null,Jr=null,Yr=!1;function P(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yr||Kr==null||Kr!==ye(r)||(r=Kr,`selectionStart`in r&&Ur(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}),Jr&&Rr(Jr,r)||(Jr=r,r=xi(qr,`onSelect`),0<r.length&&(t=new Rn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Kr)))}function Xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Zr={animationend:Xr(`Animation`,`AnimationEnd`),animationiteration:Xr(`Animation`,`AnimationIteration`),animationstart:Xr(`Animation`,`AnimationStart`),transitionend:Xr(`Transition`,`TransitionEnd`)},Qr={},$r={};c&&($r=document.createElement(`div`).style,`AnimationEvent`in window||(delete Zr.animationend.animation,delete Zr.animationiteration.animation,delete Zr.animationstart.animation),`TransitionEvent`in window||delete Zr.transitionend.transition);function ei(e){if(Qr[e])return Qr[e];if(!Zr[e])return e;var t=Zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $r)return Qr[e]=t[n];return e}var ti=ei(`animationend`),ni=ei(`animationiteration`),ri=ei(`animationstart`),ii=ei(`transitionend`),ai=new Map,oi=`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 si(e,t){ai.set(e,t),o(t,[e])}for(var ci=0;ci<oi.length;ci++){var li=oi[ci];si(li.toLowerCase(),`on`+(li[0].toUpperCase()+li.slice(1)))}si(ti,`onAnimationEnd`),si(ni,`onAnimationIteration`),si(ri,`onAnimationStart`),si(`dblclick`,`onDoubleClick`),si(`focusin`,`onFocus`),si(`focusout`,`onBlur`),si(ii,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ui=`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(` `),di=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ui));function fi(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,ft(r,t,void 0,e),e.currentTarget=null}function pi(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;fi(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;fi(i,s,l),a=c}}}if(ct)throw e=lt,ct=!1,lt=null,e}function mi(e,t){var n=t[Wi];n===void 0&&(n=t[Wi]=new Set);var r=e+`__bubble`;n.has(r)||(vi(t,e,2,!1),n.add(r))}function hi(e,t,n){var r=0;t&&(r|=4),vi(n,e,r,t)}var gi=`_reactListening`+Math.random().toString(36).slice(2);function _i(e){if(!e[gi]){e[gi]=!0,i.forEach(function(t){t!==`selectionchange`&&(di.has(t)||hi(t,!1,e),hi(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gi]||(t[gi]=!0,hi(`selectionchange`,!1,t))}}function vi(e,t,n,r){switch(On(t)){case 1:var i=Cn;break;case 4:i=wn;break;default:i=Tn}n=i.bind(null,t,n,e),i=void 0,!rt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function yi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=qi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}tt(function(){var r=a,i=Ge(n),o=[];a:{var s=ai.get(e);if(s!==void 0){var c=Rn,l=e;switch(e){case`keypress`:if(Nn(n)===0)break a;case`keydown`:case`keyup`:c=nr;break;case`focusin`:l=`focus`,c=qn;break;case`focusout`:l=`blur`,c=qn;break;case`beforeblur`:case`afterblur`:c=qn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Gn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=ir;break;case ti:case ni:case ri:c=Jn;break;case ii:c=ar;break;case`scroll`:c=Bn;break;case`wheel`:c=or;break;case`copy`:case`cut`:case`paste`:c=Yn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=rr}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=nt(p,f),h!=null&&u.push(bi(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==We&&(l=n.relatedTarget||n.fromElement)&&(qi(l)||l[Ui]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?qi(l):null,l!==null&&(d=pt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Gn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=rr,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Yi(c),m=l==null?s:Yi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,qi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=Si(m))p++;for(m=0,h=f;h;h=Si(h))m++;for(;0<p-m;)u=Si(u),p--;for(;0<m-p;)f=Si(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=Si(u),f=Si(f)}u=null}else u=null;c!==null&&Ci(o,s,c,u,!1),l!==null&&d!==null&&Ci(o,d,l,u,!0)}}a:{if(s=r?Yi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=Tr;else if(br(s))if(Er)g=Fr;else{g=Nr;var _=Mr}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Pr);if(g&&=g(e,r)){xr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Te(s,`number`,s.value)}switch(_=r?Yi(r):window,e){case`focusin`:(br(_)||_.contentEditable===`true`)&&(Kr=_,qr=r,Jr=null);break;case`focusout`:Jr=qr=Kr=null;break;case`mousedown`:Yr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Yr=!1,P(o,n,i);break;case`selectionchange`:if(Gr)break;case`keydown`:case`keyup`:P(o,n,i)}var v;if(cr)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else gr?mr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(dr&&n.locale!==`ko`&&(gr||y!==`onCompositionStart`?y===`onCompositionEnd`&&gr&&(v=Mn()):(kn=i,An=`value`in kn?kn.value:kn.textContent,gr=!0)),_=xi(r,y),0<_.length&&(y=new Xn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=hr(n),v!==null&&(y.data=v)))),(v=ur?_r(e,n):vr(e,n))&&(r=xi(r,`onBeforeInput`),0<r.length&&(i=new Xn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}pi(o,t)})}function bi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=nt(e,n),a!=null&&r.unshift(bi(e,a,i)),a=nt(e,t),a!=null&&r.push(bi(e,a,i))),e=e.return}return r}function Si(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ci(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=nt(n,a),c!=null&&o.unshift(bi(n,c,s))):i||(c=nt(n,a),c!=null&&o.push(bi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var wi=/\r\n?/g,Ti=/\u0000|\uFFFD/g;function Ei(e){return(typeof e==`string`?e:``+e).replace(wi,`
6
- `).replace(Ti,``)}function Di(e,t,n){if(t=Ei(t),Ei(e)!==t&&n)throw Error(r(425))}function Oi(){}var ki=null,Ai=null;function ji(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 Mi=typeof setTimeout==`function`?setTimeout:void 0,Ni=typeof clearTimeout==`function`?clearTimeout:void 0,Pi=typeof Promise==`function`?Promise:void 0,Fi=typeof queueMicrotask==`function`?queueMicrotask:Pi===void 0?Mi:function(e){return Pi.resolve(null).then(e).catch(Ii)};function Ii(e){setTimeout(function(){throw e})}function Li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),bn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);bn(t)}function Ri(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 zi(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 Bi=Math.random().toString(36).slice(2),Vi=`__reactFiber$`+Bi,Hi=`__reactProps$`+Bi,Ui=`__reactContainer$`+Bi,Wi=`__reactEvents$`+Bi,Gi=`__reactListeners$`+Bi,Ki=`__reactHandles$`+Bi;function qi(e){var t=e[Vi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ui]||n[Vi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zi(e);e!==null;){if(n=e[Vi])return n;e=zi(e)}return t}e=n,n=e.parentNode}return null}function Ji(e){return e=e[Vi]||e[Ui],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Xi(e){return e[Hi]||null}var Zi=[],Qi=-1;function $i(e){return{current:e}}function ea(e){0>Qi||(e.current=Zi[Qi],Zi[Qi]=null,Qi--)}function ta(e,t){Qi++,Zi[Qi]=e.current,e.current=t}var na={},ra=$i(na),ia=$i(!1),aa=na;function oa(e,t){var n=e.type.contextTypes;if(!n)return na;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function sa(e){return e=e.childContextTypes,e!=null}function ca(){ea(ia),ea(ra)}function la(e,t,n){if(ra.current!==na)throw Error(r(168));ta(ra,t),ta(ia,n)}function ua(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,pe(e)||`Unknown`,a));return M({},n,i)}function da(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||na,aa=ra.current,ta(ra,e),ta(ia,ia.current),!0}function fa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ua(e,t,aa),i.__reactInternalMemoizedMergedChildContext=e,ea(ia),ea(ra),ta(ra,e)):ea(ia),ta(ia,n)}var pa=null,ma=!1,ha=!1;function ga(e){pa===null?pa=[e]:pa.push(e)}function _a(e){ma=!0,ga(e)}function va(){if(!ha&&pa!==null){ha=!0;var e=0,t=Yt;try{var n=pa;for(Yt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}pa=null,ma=!1}catch(t){throw pa!==null&&(pa=pa.slice(e+1)),yt(Tt,va),t}finally{Yt=t,ha=!1}}return null}var ya=[],ba=0,xa=null,Sa=0,Ca=[],wa=0,Ta=null,Ea=1,Da=``;function Oa(e,t){ya[ba++]=Sa,ya[ba++]=xa,xa=e,Sa=t}function ka(e,t,n){Ca[wa++]=Ea,Ca[wa++]=Da,Ca[wa++]=Ta,Ta=e;var r=Ea;e=Da;var i=32-Nt(r)-1;r&=~(1<<i),n+=1;var a=32-Nt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ea=1<<32-Nt(t)+i|n<<i|r,Da=a+e}else Ea=1<<a|n<<i|r,Da=e}function Aa(e){e.return!==null&&(Oa(e,1),ka(e,1,0))}function ja(e){for(;e===xa;)xa=ya[--ba],ya[ba]=null,Sa=ya[--ba],ya[ba]=null;for(;e===Ta;)Ta=Ca[--wa],Ca[wa]=null,Da=Ca[--wa],Ca[wa]=null,Ea=Ca[--wa],Ca[wa]=null}var Ma=null,Na=null,Pa=!1,Fa=null;function Ia(e,t){var n=su(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 La(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?!1:(e.stateNode=t,Ma=e,Na=Ri(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Ma=e,Na=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=Ta===null?null:{id:Ea,overflow:Da},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=su(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ma=e,Na=null,!0);default:return!1}}function Ra(e){return(e.mode&1)!=0&&(e.flags&128)==0}function za(e){if(Pa){var t=Na;if(t){var n=t;if(!La(e,t)){if(Ra(e))throw Error(r(418));t=Ri(n.nextSibling);var i=Ma;t&&La(e,t)?Ia(i,n):(e.flags=e.flags&-4097|2,Pa=!1,Ma=e)}}else{if(Ra(e))throw Error(r(418));e.flags=e.flags&-4097|2,Pa=!1,Ma=e}}}function Ba(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ma=e}function Va(e){if(e!==Ma)return!1;if(!Pa)return Ba(e),Pa=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!ji(e.type,e.memoizedProps)),t&&=Na){if(Ra(e))throw Ha(),Error(r(418));for(;t;)Ia(e,t),t=Ri(t.nextSibling)}if(Ba(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Na=Ri(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Na=null}}else Na=Ma?Ri(e.stateNode.nextSibling):null;return!0}function Ha(){for(var e=Na;e;)e=Ri(e.nextSibling)}function Ua(){Na=Ma=null,Pa=!1}function Wa(e){Fa===null?Fa=[e]:Fa.push(e)}var Ga=C.ReactCurrentBatchConfig;function Ka(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(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function qa(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ja(e){var t=e._init;return t(e._payload)}function Ya(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=uu(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mu(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===re&&Ja(i)===t.type)?(r=a(t,n.props),r.ref=Ka(e,t,n),r.return=e,r):(r=du(n.type,n.key,n.props,null,e.mode,r),r.ref=Ka(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=hu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=fu(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=mu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=du(t.type,t.key,t.props,null,e.mode,n),n.ref=Ka(e,null,t),n.return=e,n;case T:return t=hu(t,e.mode,n),t.return=e,t;case re:var r=t._init;return f(e,r(t._payload),n)}if(Ee(t)||oe(t))return t=fu(t,e.mode,n,null),t.return=e,t;qa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case re:return i=n._init,p(e,t,i(n._payload),r)}if(Ee(n)||oe(n))return i===null?d(e,t,n,r,null):null;qa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Ee(r)||oe(r))return e=e.get(n)||null,d(t,e,r,i,null);qa(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Pa&&Oa(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Pa&&Oa(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Pa&&Oa(r,h),l}function g(a,s,c,l){var u=oe(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Pa&&Oa(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Pa&&Oa(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Pa&&Oa(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===re&&Ja(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ka(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===E?(r=fu(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=du(i.type,i.key,i.props,null,e.mode,o),o.ref=Ka(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=hu(i,e.mode,o),r.return=e,e=r}return s(e);case re:return l=i._init,_(e,r,l(i._payload),o)}if(Ee(i))return h(e,r,i,o);if(oe(i))return g(e,r,i,o);qa(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=mu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Xa=Ya(!0),Za=Ya(!1),Qa=$i(null),$a=null,eo=null,to=null;function no(){to=eo=$a=null}function ro(e){var t=Qa.current;ea(Qa),e._currentValue=t}function io(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ao(e,t){$a=e,to=eo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ys=!0),e.firstContext=null)}function oo(e){var t=e._currentValue;if(to!==e)if(e={context:e,memoizedValue:t,next:null},eo===null){if($a===null)throw Error(r(308));eo=e,$a.dependencies={lanes:0,firstContext:e}}else eo=eo.next=e;return t}var so=null;function co(e){so===null?so=[e]:so.push(e)}function lo(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,co(t)):(n.next=i.next,i.next=n),t.interleaved=n,uo(e,r)}function uo(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 fo=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mo(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 ho(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function go(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,tl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,uo(e,n)}return i=r.interleaved,i===null?(t.next=t,co(r)):(t.next=i.next,i.next=t),r.interleaved=t,uo(e,n)}function _o(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Jt(e,n)}}function vo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 yo(e,t,n,r){var i=e.updateQueue;fo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=M({},d,f);break a;case 2:fo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ll|=o,e.lanes=o,e.memoizedState=d}}function bo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var xo={},So=$i(xo),Co=$i(xo),wo=$i(xo);function To(e){if(e===xo)throw Error(r(174));return e}function Eo(e,t){switch(ta(wo,t),ta(Co,e),ta(So,xo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ne(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ne(t,e)}ea(So),ta(So,t)}function Do(){ea(So),ea(Co),ea(wo)}function Oo(e){To(wo.current);var t=To(So.current),n=Ne(t,e.type);t!==n&&(ta(Co,e),ta(So,n))}function ko(e){Co.current===e&&(ea(So),ea(Co))}var Ao=$i(0);function jo(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 Mo=[];function No(){for(var e=0;e<Mo.length;e++)Mo[e]._workInProgressVersionPrimary=null;Mo.length=0}var Po=C.ReactCurrentDispatcher,Fo=C.ReactCurrentBatchConfig,Io=0,Lo=null,Ro=null,zo=null,Bo=!1,Vo=!1,Ho=0,Uo=0;function Wo(){throw Error(r(321))}function Go(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lr(e[n],t[n]))return!1;return!0}function Ko(e,t,n,i,a,o){if(Io=o,Lo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Po.current=e===null||e.memoizedState===null?ks:As,e=n(i,a),Vo){o=0;do{if(Vo=!1,Ho=0,25<=o)throw Error(r(301));o+=1,zo=Ro=null,t.updateQueue=null,Po.current=js,e=n(i,a)}while(Vo)}if(Po.current=Os,t=Ro!==null&&Ro.next!==null,Io=0,zo=Ro=Lo=null,Bo=!1,t)throw Error(r(300));return e}function qo(){var e=Ho!==0;return Ho=0,e}function Jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zo===null?Lo.memoizedState=zo=e:zo=zo.next=e,zo}function Yo(){if(Ro===null){var e=Lo.alternate;e=e===null?null:e.memoizedState}else e=Ro.next;var t=zo===null?Lo.memoizedState:zo.next;if(t!==null)zo=t,Ro=e;else{if(e===null)throw Error(r(310));Ro=e,e={memoizedState:Ro.memoizedState,baseState:Ro.baseState,baseQueue:Ro.baseQueue,queue:Ro.queue,next:null},zo===null?Lo.memoizedState=zo=e:zo=zo.next=e}return zo}function Xo(e,t){return typeof t==`function`?t(e):t}function Zo(e){var t=Yo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Ro,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Io&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,Lo.lanes|=d,ll|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Lr(i,t.memoizedState)||(Ys=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,Lo.lanes|=o,ll|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Qo(e){var t=Yo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Lr(o,t.memoizedState)||(Ys=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function $o(){}function es(e,t){var n=Lo,i=Yo(),a=t(),o=!Lr(i.memoizedState,a);if(o&&(i.memoizedState=a,Ys=!0),i=i.queue,fs(rs.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||zo!==null&&zo.memoizedState.tag&1){if(n.flags|=2048,ss(9,ns.bind(null,n,i,a,t),void 0,null),nl===null)throw Error(r(349));Io&30||ts(n,t,a)}return a}function ts(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Lo.updateQueue,t===null?(t={lastEffect:null,stores:null},Lo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ns(e,t,n,r){t.value=n,t.getSnapshot=r,is(t)&&as(e)}function rs(e,t,n){return n(function(){is(t)&&as(e)})}function is(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lr(e,n)}catch{return!0}}function as(e){var t=uo(e,1);t!==null&&kl(t,e,1,-1)}function os(e){var t=Jo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:e},t.queue=e,e=e.dispatch=ws.bind(null,Lo,e),[t.memoizedState,e]}function ss(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Lo.updateQueue,t===null?(t={lastEffect:null,stores:null},Lo.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 cs(){return Yo().memoizedState}function ls(e,t,n,r){var i=Jo();Lo.flags|=e,i.memoizedState=ss(1|t,n,void 0,r===void 0?null:r)}function us(e,t,n,r){var i=Yo();r=r===void 0?null:r;var a=void 0;if(Ro!==null){var o=Ro.memoizedState;if(a=o.destroy,r!==null&&Go(r,o.deps)){i.memoizedState=ss(t,n,a,r);return}}Lo.flags|=e,i.memoizedState=ss(1|t,n,a,r)}function ds(e,t){return ls(8390656,8,e,t)}function fs(e,t){return us(2048,8,e,t)}function ps(e,t){return us(4,2,e,t)}function ms(e,t){return us(4,4,e,t)}function hs(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 gs(e,t,n){return n=n==null?null:n.concat([e]),us(4,4,hs.bind(null,t,e),n)}function _s(){}function vs(e,t){var n=Yo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ys(e,t){var n=Yo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Go(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function bs(e,t,n){return Io&21?(Lr(n,t)||(n=Wt(),Lo.lanes|=n,ll|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ys=!0),e.memoizedState=n)}function xs(e,t){var n=Yt;Yt=n!==0&&4>n?n:4,e(!0);var r=Fo.transition;Fo.transition={};try{e(!1),t()}finally{Yt=n,Fo.transition=r}}function Ss(){return Yo().memoizedState}function Cs(e,t,n){var r=Ol(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ts(e))Es(t,n);else if(n=lo(e,t,n,r),n!==null){var i=Dl();kl(n,e,r,i),Ds(n,t,r)}}function ws(e,t,n){var r=Ol(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ts(e))Es(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Lr(s,o)){var c=t.interleaved;c===null?(i.next=i,co(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=lo(e,t,i,r),n!==null&&(i=Dl(),kl(n,e,r,i),Ds(n,t,r))}}function Ts(e){var t=e.alternate;return e===Lo||t!==null&&t===Lo}function Es(e,t){Vo=Bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ds(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Jt(e,n)}}var Os={readContext:oo,useCallback:Wo,useContext:Wo,useEffect:Wo,useImperativeHandle:Wo,useInsertionEffect:Wo,useLayoutEffect:Wo,useMemo:Wo,useReducer:Wo,useRef:Wo,useState:Wo,useDebugValue:Wo,useDeferredValue:Wo,useTransition:Wo,useMutableSource:Wo,useSyncExternalStore:Wo,useId:Wo,unstable_isNewReconciler:!1},ks={readContext:oo,useCallback:function(e,t){return Jo().memoizedState=[e,t===void 0?null:t],e},useContext:oo,useEffect:ds,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),ls(4194308,4,hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return ls(4,2,e,t)},useMemo:function(e,t){var n=Jo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jo();return t=n===void 0?t:n(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=Cs.bind(null,Lo,e),[r.memoizedState,e]},useRef:function(e){var t=Jo();return e={current:e},t.memoizedState=e},useState:os,useDebugValue:_s,useDeferredValue:function(e){return Jo().memoizedState=e},useTransition:function(){var e=os(!1),t=e[0];return e=xs.bind(null,e[1]),Jo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Lo,a=Jo();if(Pa){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),nl===null)throw Error(r(349));Io&30||ts(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ds(rs.bind(null,i,o,e),[e]),i.flags|=2048,ss(9,ns.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Jo(),t=nl.identifierPrefix;if(Pa){var n=Da,r=Ea;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Ho++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Uo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},As={readContext:oo,useCallback:vs,useContext:oo,useEffect:fs,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:Zo,useRef:cs,useState:function(){return Zo(Xo)},useDebugValue:_s,useDeferredValue:function(e){return bs(Yo(),Ro.memoizedState,e)},useTransition:function(){return[Zo(Xo)[0],Yo().memoizedState]},useMutableSource:$o,useSyncExternalStore:es,useId:Ss,unstable_isNewReconciler:!1},js={readContext:oo,useCallback:vs,useContext:oo,useEffect:fs,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:Qo,useRef:cs,useState:function(){return Qo(Xo)},useDebugValue:_s,useDeferredValue:function(e){var t=Yo();return Ro===null?t.memoizedState=e:bs(t,Ro.memoizedState,e)},useTransition:function(){return[Qo(Xo)[0],Yo().memoizedState]},useMutableSource:$o,useSyncExternalStore:es,useId:Ss,unstable_isNewReconciler:!1};function Ms(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ns(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:M({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ps={isMounted:function(e){return(e=e._reactInternals)?pt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Dl(),i=Ol(e),a=ho(r,i);a.payload=t,n!=null&&(a.callback=n),t=go(e,a,i),t!==null&&(kl(t,e,i,r),_o(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Dl(),i=Ol(e),a=ho(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=go(e,a,i),t!==null&&(kl(t,e,i,r),_o(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dl(),r=Ol(e),i=ho(n,r);i.tag=2,t!=null&&(i.callback=t),t=go(e,i,r),t!==null&&(kl(t,e,r,n),_o(t,e,r))}};function Fs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Rr(n,r)||!Rr(i,a):!0}function Is(e,t,n){var r=!1,i=na,a=t.contextType;return typeof a==`object`&&a?a=oo(a):(i=sa(t)?aa:ra.current,r=t.contextTypes,a=(r=r!=null)?oa(e,i):na),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ps,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ls(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&&Ps.enqueueReplaceState(t,t.state,null)}function Rs(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},po(e);var a=t.contextType;typeof a==`object`&&a?i.context=oo(a):(a=sa(t)?aa:ra.current,i.context=oa(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Ns(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Ps.enqueueReplaceState(i,i.state,null),yo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function zs(e,t){try{var n=``,r=t;do n+=de(r),r=r.return;while(r);var i=n}catch(e){i=`
5
+ `+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{le=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ce(e):``}function de(e){switch(e.tag){case 5:return ce(e.type);case 16:return ce(`Lazy`);case 13:return ce(`Suspense`);case 19:return ce(`SuspenseList`);case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return``}}function fe(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 E:return`Fragment`;case T:return`Portal`;case O:return`Profiler`;case D:return`StrictMode`;case A:return`Suspense`;case ne:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case te:return(e.displayName||`Context`)+`.Consumer`;case ee:return(e._context.displayName||`Context`)+`.Provider`;case k:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case j:return t=e.displayName||null,t===null?fe(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function pe(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`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return fe(t);case 8:return t===D?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function me(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function he(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function ge(e){var t=he(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _e(e){e._valueTracker||=ge(e)}function ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=he(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function N(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ye(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function be(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=me(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function xe(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function Se(e,t){xe(e,t);var n=me(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`)?we(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&we(e,t.type,me(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ce(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 we(e,t,n){(t!==`number`||N(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Te=Array.isArray;function Ee(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+me(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function De(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return se({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Oe(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(Te(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:me(n)}}function ke(e,t){var n=me(t.value),r=me(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 Ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function je(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Me(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?je(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Ne,Pe=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Ne||=document.createElement(`div`),Ne.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Ne.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ie={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},Le=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Ie).forEach(function(e){Le.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ie[t]=Ie[e]})});function Re(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Ie.hasOwnProperty(e)&&Ie[e]?(``+t).trim():t+`px`}function ze(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Re(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Be=se({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 Ve(e,t){if(t){if(Be[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function He(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 Ue=null;function We(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ge=null,Ke=null,qe=null;function Je(e){if(e=qi(e)){if(typeof Ge!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Yi(t),Ge(e.stateNode,e.type,t))}}function Ye(e){Ke?qe?qe.push(e):qe=[e]:Ke=e}function Xe(){if(Ke){var e=Ke,t=qe;if(qe=Ke=null,Je(e),t)for(e=0;e<t.length;e++)Je(t[e])}}function Ze(e,t){return e(t)}function Qe(){}var $e=!1;function et(e,t,n){if($e)return e(t,n);$e=!0;try{return Ze(e,t,n)}finally{$e=!1,(Ke!==null||qe!==null)&&(Qe(),Xe())}}function tt(e,t){var n=e.stateNode;if(n===null)return null;var i=Yi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var nt=!1;if(c)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener(`test`,rt,rt),window.removeEventListener(`test`,rt,rt)}catch{nt=!1}function it(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var at=!1,ot=null,st=!1,ct=null,lt={onError:function(e){at=!0,ot=e}};function ut(e,t,n,r,i,a,o,s,c){at=!1,ot=null,it.apply(lt,arguments)}function dt(e,t,n,i,a,o,s,c,l){if(ut.apply(this,arguments),at){if(at){var u=ot;at=!1,ot=null}else throw Error(r(198));st||(st=!0,ct=u)}}function ft(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 pt(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 mt(e){if(ft(e)!==e)throw Error(r(188))}function ht(e){var t=e.alternate;if(!t){if(t=ft(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return mt(a),e;if(o===i)return mt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function gt(e){return e=ht(e),e===null?null:_t(e)}function _t(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_t(e);if(t!==null)return t;e=e.sibling}return null}var vt=n.unstable_scheduleCallback,yt=n.unstable_cancelCallback,bt=n.unstable_shouldYield,xt=n.unstable_requestPaint,St=n.unstable_now,Ct=n.unstable_getCurrentPriorityLevel,wt=n.unstable_ImmediatePriority,Tt=n.unstable_UserBlockingPriority,Et=n.unstable_NormalPriority,Dt=n.unstable_LowPriority,Ot=n.unstable_IdlePriority,kt=null,At=null;function jt(e){if(At&&typeof At.onCommitFiberRoot==`function`)try{At.onCommitFiberRoot(kt,e,void 0,(e.current.flags&128)==128)}catch{}}var Mt=Math.clz32?Math.clz32:Ft,Nt=Math.log,Pt=Math.LN2;function Ft(e){return e>>>=0,e===0?32:31-(Nt(e)/Pt|0)|0}var It=64,Lt=4194304;function Rt(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 zt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Rt(a))):r=Rt(s)}else o=n&~i,o===0?a!==0&&(r=Rt(a)):r=Rt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Mt(t),i=1<<n,r|=e[n],t&=~i;return r}function Bt(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 Vt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Mt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Bt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Ht(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Ut(){var e=It;return It<<=1,!(It&4194240)&&(It=64),e}function Wt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Gt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mt(t),e[t]=n}function Kt(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 i=31-Mt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function qt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Jt=0;function Yt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Xt,Zt,Qt,$t,en,tn=!1,nn=[],rn=null,an=null,on=null,sn=new Map,cn=new Map,ln=[],un=`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 dn(e,t){switch(e){case`focusin`:case`focusout`:rn=null;break;case`dragenter`:case`dragleave`:an=null;break;case`mouseover`:case`mouseout`:on=null;break;case`pointerover`:case`pointerout`:sn.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:cn.delete(t.pointerId)}}function fn(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=qi(t),t!==null&&Zt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function pn(e,t,n,r,i){switch(t){case`focusin`:return rn=fn(rn,e,t,n,r,i),!0;case`dragenter`:return an=fn(an,e,t,n,r,i),!0;case`mouseover`:return on=fn(on,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return sn.set(a,fn(sn.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,cn.set(a,fn(cn.get(a)||null,e,t,n,r,i)),!0}return!1}function mn(e){var t=Ki(e.target);if(t!==null){var n=ft(t);if(n!==null){if(t=n.tag,t===13){if(t=pt(n),t!==null){e.blockedOn=t,en(e.priority,function(){Qt(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 hn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=En(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ue=r,n.target.dispatchEvent(r),Ue=null}else return t=qi(n),t!==null&&Zt(t),e.blockedOn=n,!1;t.shift()}return!0}function gn(e,t,n){hn(e)&&n.delete(t)}function _n(){tn=!1,rn!==null&&hn(rn)&&(rn=null),an!==null&&hn(an)&&(an=null),on!==null&&hn(on)&&(on=null),sn.forEach(gn),cn.forEach(gn)}function vn(e,t){e.blockedOn===t&&(e.blockedOn=null,tn||(tn=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,_n)))}function yn(e){function t(t){return vn(t,e)}if(0<nn.length){vn(nn[0],e);for(var n=1;n<nn.length;n++){var r=nn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(rn!==null&&vn(rn,e),an!==null&&vn(an,e),on!==null&&vn(on,e),sn.forEach(t),cn.forEach(t),n=0;n<ln.length;n++)r=ln[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ln.length&&(n=ln[0],n.blockedOn===null);)mn(n),n.blockedOn===null&&ln.shift()}var bn=C.ReactCurrentBatchConfig,xn=!0;function Sn(e,t,n,r){var i=Jt,a=bn.transition;bn.transition=null;try{Jt=1,wn(e,t,n,r)}finally{Jt=i,bn.transition=a}}function Cn(e,t,n,r){var i=Jt,a=bn.transition;bn.transition=null;try{Jt=4,wn(e,t,n,r)}finally{Jt=i,bn.transition=a}}function wn(e,t,n,r){if(xn){var i=En(e,t,n,r);if(i===null)vi(e,t,r,Tn,n),dn(e,r);else if(pn(i,e,t,n,r))r.stopPropagation();else if(dn(e,r),t&4&&-1<un.indexOf(e)){for(;i!==null;){var a=qi(i);if(a!==null&&Xt(a),a=En(e,t,n,r),a===null&&vi(e,t,r,Tn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else vi(e,t,r,null,n)}}var Tn=null;function En(e,t,n,r){if(Tn=null,e=We(r),e=Ki(e),e!==null)if(t=ft(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pt(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 Tn=e,null}function Dn(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(Ct()){case wt:return 1;case Tt:return 4;case Et:case Dt:return 16;case Ot:return 536870912;default:return 16}default:return 16}}var On=null,kn=null,An=null;function jn(){if(An)return An;var e,t=kn,n=t.length,r,i=`value`in On?On.value:On.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return An=i.slice(e,1<r?1-r:void 0)}function Mn(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 Nn(){return!0}function Pn(){return!1}function Fn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Nn:Pn,this.isPropagationStopped=Pn,this}return se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Nn)},persist:function(){},isPersistent:Nn}),t}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ln=Fn(In),Rn=se({},In,{view:0,detail:0}),zn=Fn(Rn),Bn,Vn,Hn,Un=se({},Rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:er,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!==Hn&&(Hn&&e.type===`mousemove`?(Bn=e.screenX-Hn.screenX,Vn=e.screenY-Hn.screenY):Vn=Bn=0,Hn=e),Bn)},movementY:function(e){return`movementY`in e?e.movementY:Vn}}),Wn=Fn(Un),Gn=Fn(se({},Un,{dataTransfer:0})),Kn=Fn(se({},Rn,{relatedTarget:0})),qn=Fn(se({},In,{animationName:0,elapsedTime:0,pseudoElement:0})),Jn=Fn(se({},In,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Yn=Fn(se({},In,{data:0})),Xn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Zn={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`},Qn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function $n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qn[e])?!!t[e]:!1}function er(){return $n}var tr=Fn(se({},Rn,{key:function(e){if(e.key){var t=Xn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Mn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Zn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:er,charCode:function(e){return e.type===`keypress`?Mn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Mn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),nr=Fn(se({},Un,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),rr=Fn(se({},Rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:er})),ir=Fn(se({},In,{propertyName:0,elapsedTime:0,pseudoElement:0})),ar=Fn(se({},Un,{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})),or=[9,13,27,32],sr=c&&`CompositionEvent`in window,cr=null;c&&`documentMode`in document&&(cr=document.documentMode);var lr=c&&`TextEvent`in window&&!cr,ur=c&&(!sr||cr&&8<cr&&11>=cr),dr=` `,fr=!1;function pr(e,t){switch(e){case`keyup`:return or.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function mr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var hr=!1;function gr(e,t){switch(e){case`compositionend`:return mr(t);case`keypress`:return t.which===32?(fr=!0,dr):null;case`textInput`:return e=t.data,e===dr&&fr?null:e;default:return null}}function _r(e,t){if(hr)return e===`compositionend`||!sr&&pr(e,t)?(e=jn(),An=kn=On=null,hr=!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 ur&&t.locale!==`ko`?null:t.data;default:return null}}var vr={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 yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!vr[e.type]:t===`textarea`}function br(e,t,n,r){Ye(r),t=bi(t,`onChange`),0<t.length&&(n=new Ln(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var xr=null,P=null;function Sr(e){fi(e,0)}function Cr(e){if(ve(Ji(e)))return e}function wr(e,t){if(e===`change`)return t}var Tr=!1;if(c){var Er;if(c){var Dr=`oninput`in document;if(!Dr){var Or=document.createElement(`div`);Or.setAttribute(`oninput`,`return;`),Dr=typeof Or.oninput==`function`}Er=Dr}else Er=!1;Tr=Er&&(!document.documentMode||9<document.documentMode)}function kr(){xr&&(xr.detachEvent(`onpropertychange`,Ar),P=xr=null)}function Ar(e){if(e.propertyName===`value`&&Cr(P)){var t=[];br(t,P,e,We(e)),et(Sr,t)}}function jr(e,t,n){e===`focusin`?(kr(),xr=t,P=n,xr.attachEvent(`onpropertychange`,Ar)):e===`focusout`&&kr()}function Mr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Cr(P)}function Nr(e,t){if(e===`click`)return Cr(t)}function Pr(e,t){if(e===`input`||e===`change`)return Cr(t)}function Fr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ir=typeof Object.is==`function`?Object.is:Fr;function Lr(e,t){if(Ir(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Ir(e[i],t[i]))return!1}return!0}function Rr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zr(e,t){var n=Rr(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}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Rr(n)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vr(){for(var e=window,t=N();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=N(e.document)}return t}function Hr(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 Ur(e){var t=Vr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Br(n.ownerDocument.documentElement,n)){if(r!==null&&Hr(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 i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=zr(n,a);var o=zr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 Wr=c&&`documentMode`in document&&11>=document.documentMode,Gr=null,Kr=null,qr=null,Jr=!1;function F(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jr||Gr==null||Gr!==N(r)||(r=Gr,`selectionStart`in r&&Hr(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}),qr&&Lr(qr,r)||(qr=r,r=bi(Kr,`onSelect`),0<r.length&&(t=new Ln(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Gr)))}function Yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Xr={animationend:Yr(`Animation`,`AnimationEnd`),animationiteration:Yr(`Animation`,`AnimationIteration`),animationstart:Yr(`Animation`,`AnimationStart`),transitionend:Yr(`Transition`,`TransitionEnd`)},Zr={},Qr={};c&&(Qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Xr.animationend.animation,delete Xr.animationiteration.animation,delete Xr.animationstart.animation),`TransitionEvent`in window||delete Xr.transitionend.transition);function $r(e){if(Zr[e])return Zr[e];if(!Xr[e])return e;var t=Xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qr)return Zr[e]=t[n];return e}var ei=$r(`animationend`),ti=$r(`animationiteration`),ni=$r(`animationstart`),ri=$r(`transitionend`),ii=new Map,ai=`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 oi(e,t){ii.set(e,t),o(t,[e])}for(var si=0;si<ai.length;si++){var ci=ai[si];oi(ci.toLowerCase(),`on`+(ci[0].toUpperCase()+ci.slice(1)))}oi(ei,`onAnimationEnd`),oi(ti,`onAnimationIteration`),oi(ni,`onAnimationStart`),oi(`dblclick`,`onDoubleClick`),oi(`focusin`,`onFocus`),oi(`focusout`,`onBlur`),oi(ri,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var li=`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(` `),ui=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(li));function di(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,dt(r,t,void 0,e),e.currentTarget=null}function fi(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;di(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;di(i,s,l),a=c}}}if(st)throw e=ct,st=!1,ct=null,e}function pi(e,t){var n=t[Ui];n===void 0&&(n=t[Ui]=new Set);var r=e+`__bubble`;n.has(r)||(_i(t,e,2,!1),n.add(r))}function mi(e,t,n){var r=0;t&&(r|=4),_i(n,e,r,t)}var hi=`_reactListening`+Math.random().toString(36).slice(2);function gi(e){if(!e[hi]){e[hi]=!0,i.forEach(function(t){t!==`selectionchange`&&(ui.has(t)||mi(t,!1,e),mi(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hi]||(t[hi]=!0,mi(`selectionchange`,!1,t))}}function _i(e,t,n,r){switch(Dn(t)){case 1:var i=Sn;break;case 4:i=Cn;break;default:i=wn}n=i.bind(null,t,n,e),i=void 0,!nt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function vi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Ki(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}et(function(){var r=a,i=We(n),o=[];a:{var s=ii.get(e);if(s!==void 0){var c=Ln,l=e;switch(e){case`keypress`:if(Mn(n)===0)break a;case`keydown`:case`keyup`:c=tr;break;case`focusin`:l=`focus`,c=Kn;break;case`focusout`:l=`blur`,c=Kn;break;case`beforeblur`:case`afterblur`:c=Kn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Wn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Gn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=rr;break;case ei:case ti:case ni:c=qn;break;case ri:c=ir;break;case`scroll`:c=zn;break;case`wheel`:c=ar;break;case`copy`:case`cut`:case`paste`:c=Jn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=nr}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=tt(p,f),h!=null&&u.push(yi(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Ue&&(l=n.relatedTarget||n.fromElement)&&(Ki(l)||l[Hi]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ki(l):null,l!==null&&(d=ft(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Wn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=nr,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ji(c),m=l==null?s:Ji(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ki(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=xi(m))p++;for(m=0,h=f;h;h=xi(h))m++;for(;0<p-m;)u=xi(u),p--;for(;0<m-p;)f=xi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=xi(u),f=xi(f)}u=null}else u=null;c!==null&&Si(o,s,c,u,!1),l!==null&&d!==null&&Si(o,d,l,u,!0)}}a:{if(s=r?Ji(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=wr;else if(yr(s))if(Tr)g=Pr;else{g=Mr;var _=jr}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Nr);if(g&&=g(e,r)){br(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&we(s,`number`,s.value)}switch(_=r?Ji(r):window,e){case`focusin`:(yr(_)||_.contentEditable===`true`)&&(Gr=_,Kr=r,qr=null);break;case`focusout`:qr=Kr=Gr=null;break;case`mousedown`:Jr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Jr=!1,F(o,n,i);break;case`selectionchange`:if(Wr)break;case`keydown`:case`keyup`:F(o,n,i)}var v;if(sr)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else hr?pr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(ur&&n.locale!==`ko`&&(hr||y!==`onCompositionStart`?y===`onCompositionEnd`&&hr&&(v=jn()):(On=i,kn=`value`in On?On.value:On.textContent,hr=!0)),_=bi(r,y),0<_.length&&(y=new Yn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=mr(n),v!==null&&(y.data=v)))),(v=lr?gr(e,n):_r(e,n))&&(r=bi(r,`onBeforeInput`),0<r.length&&(i=new Yn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}fi(o,t)})}function yi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=tt(e,n),a!=null&&r.unshift(yi(e,a,i)),a=tt(e,t),a!=null&&r.push(yi(e,a,i))),e=e.return}return r}function xi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Si(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=tt(n,a),c!=null&&o.unshift(yi(n,c,s))):i||(c=tt(n,a),c!=null&&o.push(yi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ci=/\r\n?/g,wi=/\u0000|\uFFFD/g;function Ti(e){return(typeof e==`string`?e:``+e).replace(Ci,`
6
+ `).replace(wi,``)}function Ei(e,t,n){if(t=Ti(t),Ti(e)!==t&&n)throw Error(r(425))}function Di(){}var Oi=null,ki=null;function Ai(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 ji=typeof setTimeout==`function`?setTimeout:void 0,Mi=typeof clearTimeout==`function`?clearTimeout:void 0,Ni=typeof Promise==`function`?Promise:void 0,Pi=typeof queueMicrotask==`function`?queueMicrotask:Ni===void 0?ji:function(e){return Ni.resolve(null).then(e).catch(Fi)};function Fi(e){setTimeout(function(){throw e})}function Ii(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),yn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);yn(t)}function Li(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 Ri(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 zi=Math.random().toString(36).slice(2),Bi=`__reactFiber$`+zi,Vi=`__reactProps$`+zi,Hi=`__reactContainer$`+zi,Ui=`__reactEvents$`+zi,Wi=`__reactListeners$`+zi,Gi=`__reactHandles$`+zi;function Ki(e){var t=e[Bi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hi]||n[Bi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ri(e);e!==null;){if(n=e[Bi])return n;e=Ri(e)}return t}e=n,n=e.parentNode}return null}function qi(e){return e=e[Bi]||e[Hi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ji(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Yi(e){return e[Vi]||null}var Xi=[],Zi=-1;function Qi(e){return{current:e}}function $i(e){0>Zi||(e.current=Xi[Zi],Xi[Zi]=null,Zi--)}function ea(e,t){Zi++,Xi[Zi]=e.current,e.current=t}var ta={},na=Qi(ta),ra=Qi(!1),ia=ta;function aa(e,t){var n=e.type.contextTypes;if(!n)return ta;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function oa(e){return e=e.childContextTypes,e!=null}function sa(){$i(ra),$i(na)}function ca(e,t,n){if(na.current!==ta)throw Error(r(168));ea(na,t),ea(ra,n)}function la(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,pe(e)||`Unknown`,a));return se({},n,i)}function ua(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ta,ia=na.current,ea(na,e),ea(ra,ra.current),!0}function da(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=la(e,t,ia),i.__reactInternalMemoizedMergedChildContext=e,$i(ra),$i(na),ea(na,e)):$i(ra),ea(ra,n)}var fa=null,pa=!1,ma=!1;function ha(e){fa===null?fa=[e]:fa.push(e)}function ga(e){pa=!0,ha(e)}function _a(){if(!ma&&fa!==null){ma=!0;var e=0,t=Jt;try{var n=fa;for(Jt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}fa=null,pa=!1}catch(t){throw fa!==null&&(fa=fa.slice(e+1)),vt(wt,_a),t}finally{Jt=t,ma=!1}}return null}var va=[],ya=0,ba=null,xa=0,Sa=[],Ca=0,wa=null,Ta=1,Ea=``;function Da(e,t){va[ya++]=xa,va[ya++]=ba,ba=e,xa=t}function Oa(e,t,n){Sa[Ca++]=Ta,Sa[Ca++]=Ea,Sa[Ca++]=wa,wa=e;var r=Ta;e=Ea;var i=32-Mt(r)-1;r&=~(1<<i),n+=1;var a=32-Mt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ta=1<<32-Mt(t)+i|n<<i|r,Ea=a+e}else Ta=1<<a|n<<i|r,Ea=e}function ka(e){e.return!==null&&(Da(e,1),Oa(e,1,0))}function Aa(e){for(;e===ba;)ba=va[--ya],va[ya]=null,xa=va[--ya],va[ya]=null;for(;e===wa;)wa=Sa[--Ca],Sa[Ca]=null,Ea=Sa[--Ca],Sa[Ca]=null,Ta=Sa[--Ca],Sa[Ca]=null}var ja=null,Ma=null,Na=!1,Pa=null;function Fa(e,t){var n=ou(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 Ia(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?!1:(e.stateNode=t,ja=e,Ma=Li(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,ja=e,Ma=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=wa===null?null:{id:Ta,overflow:Ea},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ou(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ja=e,Ma=null,!0);default:return!1}}function La(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Ra(e){if(Na){var t=Ma;if(t){var n=t;if(!Ia(e,t)){if(La(e))throw Error(r(418));t=Li(n.nextSibling);var i=ja;t&&Ia(e,t)?Fa(i,n):(e.flags=e.flags&-4097|2,Na=!1,ja=e)}}else{if(La(e))throw Error(r(418));e.flags=e.flags&-4097|2,Na=!1,ja=e}}}function za(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ja=e}function Ba(e){if(e!==ja)return!1;if(!Na)return za(e),Na=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Ai(e.type,e.memoizedProps)),t&&=Ma){if(La(e))throw Va(),Error(r(418));for(;t;)Fa(e,t),t=Li(t.nextSibling)}if(za(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Ma=Li(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Ma=null}}else Ma=ja?Li(e.stateNode.nextSibling):null;return!0}function Va(){for(var e=Ma;e;)e=Li(e.nextSibling)}function Ha(){Ma=ja=null,Na=!1}function Ua(e){Pa===null?Pa=[e]:Pa.push(e)}var Wa=C.ReactCurrentBatchConfig;function Ga(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(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Ka(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function qa(e){var t=e._init;return t(e._payload)}function Ja(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=lu(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=pu(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===re&&qa(i)===t.type)?(r=a(t,n.props),r.ref=Ga(e,t,n),r.return=e,r):(r=uu(n.type,n.key,n.props,null,e.mode,r),r.ref=Ga(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=mu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=du(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=pu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=uu(t.type,t.key,t.props,null,e.mode,n),n.ref=Ga(e,null,t),n.return=e,n;case T:return t=mu(t,e.mode,n),t.return=e,t;case re:var r=t._init;return f(e,r(t._payload),n)}if(Te(t)||oe(t))return t=du(t,e.mode,n,null),t.return=e,t;Ka(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case re:return i=n._init,p(e,t,i(n._payload),r)}if(Te(n)||oe(n))return i===null?d(e,t,n,r,null):null;Ka(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Te(r)||oe(r))return e=e.get(n)||null,d(t,e,r,i,null);Ka(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Na&&Da(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Na&&Da(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Na&&Da(r,h),l}function g(a,s,c,l){var u=oe(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Na&&Da(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Na&&Da(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Na&&Da(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===re&&qa(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ga(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===E?(r=du(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=uu(i.type,i.key,i.props,null,e.mode,o),o.ref=Ga(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=mu(i,e.mode,o),r.return=e,e=r}return s(e);case re:return l=i._init,_(e,r,l(i._payload),o)}if(Te(i))return h(e,r,i,o);if(oe(i))return g(e,r,i,o);Ka(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=pu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ya=Ja(!0),Xa=Ja(!1),Za=Qi(null),Qa=null,$a=null,eo=null;function to(){eo=$a=Qa=null}function no(e){var t=Za.current;$i(Za),e._currentValue=t}function ro(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function io(e,t){Qa=e,eo=$a=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Js=!0),e.firstContext=null)}function ao(e){var t=e._currentValue;if(eo!==e)if(e={context:e,memoizedValue:t,next:null},$a===null){if(Qa===null)throw Error(r(308));$a=e,Qa.dependencies={lanes:0,firstContext:e}}else $a=$a.next=e;return t}var oo=null;function so(e){oo===null?oo=[e]:oo.push(e)}function co(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,so(t)):(n.next=i.next,i.next=n),t.interleaved=n,lo(e,r)}function lo(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 uo=!1;function fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function po(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 mo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ho(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,el&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,lo(e,n)}return i=r.interleaved,i===null?(t.next=t,so(r)):(t.next=i.next,i.next=t),r.interleaved=t,lo(e,n)}function go(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qt(e,n)}}function _o(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 vo(e,t,n,r){var i=e.updateQueue;uo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=se({},d,f);break a;case 2:uo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);cl|=o,e.lanes=o,e.memoizedState=d}}function yo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var bo={},xo=Qi(bo),So=Qi(bo),Co=Qi(bo);function wo(e){if(e===bo)throw Error(r(174));return e}function To(e,t){switch(ea(Co,t),ea(So,e),ea(xo,bo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Me(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Me(t,e)}$i(xo),ea(xo,t)}function Eo(){$i(xo),$i(So),$i(Co)}function Do(e){wo(Co.current);var t=wo(xo.current),n=Me(t,e.type);t!==n&&(ea(So,e),ea(xo,n))}function Oo(e){So.current===e&&($i(xo),$i(So))}var ko=Qi(0);function Ao(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 jo=[];function Mo(){for(var e=0;e<jo.length;e++)jo[e]._workInProgressVersionPrimary=null;jo.length=0}var No=C.ReactCurrentDispatcher,Po=C.ReactCurrentBatchConfig,Fo=0,Io=null,Lo=null,Ro=null,zo=!1,Bo=!1,Vo=0,Ho=0;function Uo(){throw Error(r(321))}function Wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ir(e[n],t[n]))return!1;return!0}function Go(e,t,n,i,a,o){if(Fo=o,Io=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,No.current=e===null||e.memoizedState===null?Os:ks,e=n(i,a),Bo){o=0;do{if(Bo=!1,Vo=0,25<=o)throw Error(r(301));o+=1,Ro=Lo=null,t.updateQueue=null,No.current=As,e=n(i,a)}while(Bo)}if(No.current=Ds,t=Lo!==null&&Lo.next!==null,Fo=0,Ro=Lo=Io=null,zo=!1,t)throw Error(r(300));return e}function Ko(){var e=Vo!==0;return Vo=0,e}function qo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ro===null?Io.memoizedState=Ro=e:Ro=Ro.next=e,Ro}function Jo(){if(Lo===null){var e=Io.alternate;e=e===null?null:e.memoizedState}else e=Lo.next;var t=Ro===null?Io.memoizedState:Ro.next;if(t!==null)Ro=t,Lo=e;else{if(e===null)throw Error(r(310));Lo=e,e={memoizedState:Lo.memoizedState,baseState:Lo.baseState,baseQueue:Lo.baseQueue,queue:Lo.queue,next:null},Ro===null?Io.memoizedState=Ro=e:Ro=Ro.next=e}return Ro}function Yo(e,t){return typeof t==`function`?t(e):t}function Xo(e){var t=Jo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Lo,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Fo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,Io.lanes|=d,cl|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Ir(i,t.memoizedState)||(Js=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,Io.lanes|=o,cl|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zo(e){var t=Jo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Ir(o,t.memoizedState)||(Js=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Qo(){}function $o(e,t){var n=Io,i=Jo(),a=t(),o=!Ir(i.memoizedState,a);if(o&&(i.memoizedState=a,Js=!0),i=i.queue,ds(ns.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Ro!==null&&Ro.memoizedState.tag&1){if(n.flags|=2048,os(9,ts.bind(null,n,i,a,t),void 0,null),tl===null)throw Error(r(349));Fo&30||es(n,t,a)}return a}function es(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Io.updateQueue,t===null?(t={lastEffect:null,stores:null},Io.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ts(e,t,n,r){t.value=n,t.getSnapshot=r,rs(t)&&is(e)}function ns(e,t,n){return n(function(){rs(t)&&is(e)})}function rs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ir(e,n)}catch{return!0}}function is(e){var t=lo(e,1);t!==null&&Ol(t,e,1,-1)}function as(e){var t=qo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:e},t.queue=e,e=e.dispatch=Cs.bind(null,Io,e),[t.memoizedState,e]}function os(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Io.updateQueue,t===null?(t={lastEffect:null,stores:null},Io.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 ss(){return Jo().memoizedState}function cs(e,t,n,r){var i=qo();Io.flags|=e,i.memoizedState=os(1|t,n,void 0,r===void 0?null:r)}function ls(e,t,n,r){var i=Jo();r=r===void 0?null:r;var a=void 0;if(Lo!==null){var o=Lo.memoizedState;if(a=o.destroy,r!==null&&Wo(r,o.deps)){i.memoizedState=os(t,n,a,r);return}}Io.flags|=e,i.memoizedState=os(1|t,n,a,r)}function us(e,t){return cs(8390656,8,e,t)}function ds(e,t){return ls(2048,8,e,t)}function fs(e,t){return ls(4,2,e,t)}function ps(e,t){return ls(4,4,e,t)}function ms(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 hs(e,t,n){return n=n==null?null:n.concat([e]),ls(4,4,ms.bind(null,t,e),n)}function gs(){}function _s(e,t){var n=Jo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function vs(e,t){var n=Jo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ys(e,t,n){return Fo&21?(Ir(n,t)||(n=Ut(),Io.lanes|=n,cl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Js=!0),e.memoizedState=n)}function bs(e,t){var n=Jt;Jt=n!==0&&4>n?n:4,e(!0);var r=Po.transition;Po.transition={};try{e(!1),t()}finally{Jt=n,Po.transition=r}}function xs(){return Jo().memoizedState}function Ss(e,t,n){var r=Dl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ws(e))Ts(t,n);else if(n=co(e,t,n,r),n!==null){var i=El();Ol(n,e,r,i),Es(n,t,r)}}function Cs(e,t,n){var r=Dl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ws(e))Ts(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ir(s,o)){var c=t.interleaved;c===null?(i.next=i,so(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=co(e,t,i,r),n!==null&&(i=El(),Ol(n,e,r,i),Es(n,t,r))}}function ws(e){var t=e.alternate;return e===Io||t!==null&&t===Io}function Ts(e,t){Bo=zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Es(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qt(e,n)}}var Ds={readContext:ao,useCallback:Uo,useContext:Uo,useEffect:Uo,useImperativeHandle:Uo,useInsertionEffect:Uo,useLayoutEffect:Uo,useMemo:Uo,useReducer:Uo,useRef:Uo,useState:Uo,useDebugValue:Uo,useDeferredValue:Uo,useTransition:Uo,useMutableSource:Uo,useSyncExternalStore:Uo,useId:Uo,unstable_isNewReconciler:!1},Os={readContext:ao,useCallback:function(e,t){return qo().memoizedState=[e,t===void 0?null:t],e},useContext:ao,useEffect:us,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),cs(4194308,4,ms.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){return cs(4,2,e,t)},useMemo:function(e,t){var n=qo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qo();return t=n===void 0?t:n(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=Ss.bind(null,Io,e),[r.memoizedState,e]},useRef:function(e){var t=qo();return e={current:e},t.memoizedState=e},useState:as,useDebugValue:gs,useDeferredValue:function(e){return qo().memoizedState=e},useTransition:function(){var e=as(!1),t=e[0];return e=bs.bind(null,e[1]),qo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Io,a=qo();if(Na){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),tl===null)throw Error(r(349));Fo&30||es(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,us(ns.bind(null,i,o,e),[e]),i.flags|=2048,os(9,ts.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=qo(),t=tl.identifierPrefix;if(Na){var n=Ea,r=Ta;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Vo++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Ho++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},ks={readContext:ao,useCallback:_s,useContext:ao,useEffect:ds,useImperativeHandle:hs,useInsertionEffect:fs,useLayoutEffect:ps,useMemo:vs,useReducer:Xo,useRef:ss,useState:function(){return Xo(Yo)},useDebugValue:gs,useDeferredValue:function(e){return ys(Jo(),Lo.memoizedState,e)},useTransition:function(){return[Xo(Yo)[0],Jo().memoizedState]},useMutableSource:Qo,useSyncExternalStore:$o,useId:xs,unstable_isNewReconciler:!1},As={readContext:ao,useCallback:_s,useContext:ao,useEffect:ds,useImperativeHandle:hs,useInsertionEffect:fs,useLayoutEffect:ps,useMemo:vs,useReducer:Zo,useRef:ss,useState:function(){return Zo(Yo)},useDebugValue:gs,useDeferredValue:function(e){var t=Jo();return Lo===null?t.memoizedState=e:ys(t,Lo.memoizedState,e)},useTransition:function(){return[Zo(Yo)[0],Jo().memoizedState]},useMutableSource:Qo,useSyncExternalStore:$o,useId:xs,unstable_isNewReconciler:!1};function js(e,t){if(e&&e.defaultProps){for(var n in t=se({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ms(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ns={isMounted:function(e){return(e=e._reactInternals)?ft(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=El(),i=Dl(e),a=mo(r,i);a.payload=t,n!=null&&(a.callback=n),t=ho(e,a,i),t!==null&&(Ol(t,e,i,r),go(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=El(),i=Dl(e),a=mo(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=ho(e,a,i),t!==null&&(Ol(t,e,i,r),go(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=El(),r=Dl(e),i=mo(n,r);i.tag=2,t!=null&&(i.callback=t),t=ho(e,i,r),t!==null&&(Ol(t,e,r,n),go(t,e,r))}};function Ps(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Lr(n,r)||!Lr(i,a):!0}function Fs(e,t,n){var r=!1,i=ta,a=t.contextType;return typeof a==`object`&&a?a=ao(a):(i=oa(t)?ia:na.current,r=t.contextTypes,a=(r=r!=null)?aa(e,i):ta),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ns,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Is(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&&Ns.enqueueReplaceState(t,t.state,null)}function Ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},fo(e);var a=t.contextType;typeof a==`object`&&a?i.context=ao(a):(a=oa(t)?ia:na.current,i.context=aa(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Ms(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Ns.enqueueReplaceState(i,i.state,null),vo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Rs(e,t){try{var n=``,r=t;do n+=de(r),r=r.return;while(r);var i=n}catch(e){i=`
7
7
  Error generating stack: `+e.message+`
8
- `+e.stack}return{value:e,source:t,stack:i,digest:null}}function Bs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Vs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Hs=typeof WeakMap==`function`?WeakMap:Map;function Us(e,t,n){n=ho(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_l||(_l=!0,vl=r),Vs(e,t)},n}function Ws(e,t,n){n=ho(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Vs(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Vs(e,t),typeof r!=`function`&&(yl===null?yl=new Set([this]):yl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Gs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Hs;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=eu.bind(null,e,t,n),t.then(e,e))}function Ks(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function qs(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=ho(-1,1),t.tag=2,go(n,t,1))),n.lanes|=1),e)}var Js=C.ReactCurrentOwner,Ys=!1;function Xs(e,t,n,r){t.child=e===null?Za(t,null,n,r):Xa(t,e.child,n,r)}function Zs(e,t,n,r,i){n=n.render;var a=t.ref;return ao(t,i),r=Ko(e,t,n,r,a,i),n=qo(),e!==null&&!Ys?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gc(e,t,i)):(Pa&&n&&Aa(t),t.flags|=1,Xs(e,t,r,i),t.child)}function Qs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!cu(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,$s(e,t,a,r,i)):(e=du(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Rr:n,n(o,r)&&e.ref===t.ref)return gc(e,t,i)}return t.flags|=1,e=uu(a,r),e.ref=t.ref,e.return=t,t.child=e}function $s(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Rr(a,r)&&e.ref===t.ref)if(Ys=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ys=!0);else return t.lanes=e.lanes,gc(e,t,i)}return nc(e,t,n,r,i)}function ec(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ta(ol,al),al|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ta(ol,al),al|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,ta(ol,al),al|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),ta(ol,al),al|=r;return Xs(e,t,i,n),t.child}function tc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function nc(e,t,n,r,i){var a=sa(n)?aa:ra.current;return a=oa(t,a),ao(t,i),n=Ko(e,t,n,r,a,i),r=qo(),e!==null&&!Ys?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gc(e,t,i)):(Pa&&r&&Aa(t),t.flags|=1,Xs(e,t,n,i),t.child)}function rc(e,t,n,r,i){if(sa(n)){var a=!0;da(t)}else a=!1;if(ao(t,i),t.stateNode===null)hc(e,t),Is(t,n,r),Rs(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=oo(l):(l=sa(n)?aa:ra.current,l=oa(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Ls(t,o,r,l),fo=!1;var f=t.memoizedState;o.state=f,yo(t,r,o,i),c=t.memoizedState,s!==r||f!==c||ia.current||fo?(typeof u==`function`&&(Ns(t,n,u,r),c=t.memoizedState),(s=fo||Fs(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,mo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Ms(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=oo(c):(c=sa(n)?aa:ra.current,c=oa(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Ls(t,o,r,c),fo=!1,f=t.memoizedState,o.state=f,yo(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||ia.current||fo?(typeof p==`function`&&(Ns(t,n,p,r),m=t.memoizedState),(l=fo||Fs(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return ic(e,t,n,r,a,i)}function ic(e,t,n,r,i,a){tc(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&fa(t,n,!1),gc(e,t,a);r=t.stateNode,Js.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Xa(t,e.child,null,a),t.child=Xa(t,null,s,a)):Xs(e,t,s,a),t.memoizedState=r.state,i&&fa(t,n,!0),t.child}function ac(e){var t=e.stateNode;t.pendingContext?la(e,t.pendingContext,t.pendingContext!==t.context):t.context&&la(e,t.context,!1),Eo(e,t.containerInfo)}function oc(e,t,n,r,i){return Ua(),Wa(i),t.flags|=256,Xs(e,t,n,r),t.child}var sc={dehydrated:null,treeContext:null,retryLane:0};function cc(e){return{baseLanes:e,cachePool:null,transitions:null}}function lc(e,t,n){var r=t.pendingProps,i=Ao.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ta(Ao,i&1),e===null)return za(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):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=pu(o,r,0,null),e=fu(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=cc(n),t.memoizedState=sc,e):uc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return dc(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=uu(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=fu(a,o,n,null),a.flags|=2):a=uu(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?cc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=sc,r}return a=e.child,e=a.sibling,r=uu(a,{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 uc(e,t){return t=pu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function F(e,t,n,r){return r!==null&&Wa(r),Xa(t,e.child,null,n),e=uc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dc(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Bs(Error(r(422))),F(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=pu({mode:`visible`,children:i.children},a,0,null),o=fu(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Xa(t,e.child,null,s),t.child.memoizedState=cc(s),t.memoizedState=sc,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return F(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Bs(o,i,void 0),F(e,t,s,i)}if(c=(s&e.childLanes)!==0,Ys||c){if(i=nl,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,uo(e,a),kl(i,e,a,-1))}return Ul(),i=Bs(Error(r(421))),F(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=nu.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Na=Ri(a.nextSibling),Ma=t,Pa=!0,Fa=null,e!==null&&(Ca[wa++]=Ea,Ca[wa++]=Da,Ca[wa++]=Ta,Ea=e.id,Da=e.overflow,Ta=t),t=uc(t,i.children),t.flags|=4096,t)}function fc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),io(e.return,t,n)}function pc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function mc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Xs(e,t,r.children,n),r=Ao.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fc(e,n,t);else if(e.tag===19)fc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ta(Ao,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&jo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),pc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&jo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}pc(t,!0,n,null,a);break;case`together`:pc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ll|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=uu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=uu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _c(e,t,n){switch(t.tag){case 3:ac(t),Ua();break;case 5:Oo(t);break;case 1:sa(t.type)&&da(t);break;case 4:Eo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ta(Qa,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ta(Ao,Ao.current&1),e=gc(e,t,n),e===null?null:e.sibling):lc(e,t,n):(ta(Ao,Ao.current&1),t.flags|=128,null);ta(Ao,Ao.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ta(Ao,Ao.current),r)break;return null;case 22:case 23:return t.lanes=0,ec(e,t,n)}return gc(e,t,n)}var vc=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}},yc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,To(So.current);var o=null;switch(n){case`input`:i=be(e,i),r=be(e,r),o=[];break;case`select`:i=M({},i,{value:void 0}),r=M({},r,{value:void 0}),o=[];break;case`textarea`:i=Oe(e,i),r=Oe(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Oi)}He(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&mi(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},bc=function(e,t,n,r){n!==r&&(t.flags|=4)};function xc(e,t){if(!Pa)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 Sc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Cc(e,t,n){var i=t.pendingProps;switch(ja(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sc(t),null;case 1:return sa(t.type)&&ca(),Sc(t),null;case 3:return i=t.stateNode,Do(),ea(ia),ea(ra),No(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Va(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fa!==null&&(Nl(Fa),Fa=null))),Sc(t),null;case 5:ko(t);var o=To(wo.current);if(n=t.type,e!==null&&t.stateNode!=null)yc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Sc(t),null}if(e=To(So.current),Va(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Vi]=t,i[Hi]=s,e=(t.mode&1)!=0,n){case`dialog`:mi(`cancel`,i),mi(`close`,i);break;case`iframe`:case`object`:case`embed`:mi(`load`,i);break;case`video`:case`audio`:for(o=0;o<ui.length;o++)mi(ui[o],i);break;case`source`:mi(`error`,i);break;case`img`:case`image`:case`link`:mi(`error`,i),mi(`load`,i);break;case`details`:mi(`toggle`,i);break;case`input`:xe(i,s),mi(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},mi(`invalid`,i);break;case`textarea`:ke(i,s),mi(`invalid`,i)}for(var c in He(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&Di(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&Di(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&mi(`scroll`,i)}switch(n){case`input`:_e(i),we(i,s,!0);break;case`textarea`:_e(i),je(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Oi)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Me(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Vi]=t,e[Hi]=i,vc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Ue(n,i),n){case`dialog`:mi(`cancel`,e),mi(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:mi(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ui.length;o++)mi(ui[o],e);o=i;break;case`source`:mi(`error`,e),o=i;break;case`img`:case`image`:case`link`:mi(`error`,e),mi(`load`,e),o=i;break;case`details`:mi(`toggle`,e),o=i;break;case`input`:xe(e,i),o=be(e,i),mi(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=M({},i,{value:void 0}),mi(`invalid`,e);break;case`textarea`:ke(e,i),o=Oe(e,i),mi(`invalid`,e);break;default:o=i}for(s in He(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Be(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Fe(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Ie(e,u):typeof u==`number`&&Ie(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&mi(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:_e(e),we(e,i,!1);break;case`textarea`:_e(e),je(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+me(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&De(e,!!i.multiple,i.defaultValue,!0):De(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Oi)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Sc(t),null;case 6:if(e&&t.stateNode!=null)bc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=To(wo.current),To(So.current),Va(t)){if(i=t.stateNode,n=t.memoizedProps,i[Vi]=t,(s=i.nodeValue!==n)&&(e=Ma,e!==null))switch(e.tag){case 3:Di(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Di(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Vi]=t,t.stateNode=i}return Sc(t),null;case 13:if(ea(Ao),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pa&&Na!==null&&t.mode&1&&!(t.flags&128))Ha(),Ua(),t.flags|=98560,s=!1;else if(s=Va(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Vi]=t}else Ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sc(t),s=!1}else Fa!==null&&(Nl(Fa),Fa=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||Ao.current&1?sl===0&&(sl=3):Ul())),t.updateQueue!==null&&(t.flags|=4),Sc(t),null);case 4:return Do(),e===null&&_i(t.stateNode.containerInfo),Sc(t),null;case 10:return ro(t.type._context),Sc(t),null;case 17:return sa(t.type)&&ca(),Sc(t),null;case 19:if(ea(Ao),s=t.memoizedState,s===null)return Sc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)xc(s,!1);else{if(sl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=jo(e),c!==null){for(t.flags|=128,xc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ta(Ao,Ao.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ct()>hl&&(t.flags|=128,i=!0,xc(s,!1),t.lanes=4194304)}else{if(!i)if(e=jo(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Pa)return Sc(t),null}else 2*Ct()-s.renderingStartTime>hl&&n!==1073741824&&(t.flags|=128,i=!0,xc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(Sc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ct(),t.sibling=null,n=Ao.current,ta(Ao,i?n&1|2:n&1),t);case 22:case 23:return zl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?al&1073741824&&(Sc(t),t.subtreeFlags&6&&(t.flags|=8192)):Sc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function I(e,t){switch(ja(t),t.tag){case 1:return sa(t.type)&&ca(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Do(),ea(ia),ea(ra),No(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ko(t),null;case 13:if(ea(Ao),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ea(Ao),null;case 4:return Do(),null;case 10:return ro(t.type._context),null;case 22:case 23:return zl(),null;case 24:return null;default:return null}}var wc=!1,Tc=!1,Ec=typeof WeakSet==`function`?WeakSet:Set,L=null;function Dc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){$l(e,t,n)}else n.current=null}function Oc(e,t,n){try{n()}catch(n){$l(e,t,n)}}var kc=!1;function Ac(e,t){if(ki=Sn,e=Hr(),Ur(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ai={focusedElem:e,selectionRange:n},Sn=!1,L=t;L!==null;)if(t=L,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ms(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){$l(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return h=kc,kc=!1,h}function jc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Oc(t,n,a)}i=i.next}while(i!==r)}}function Mc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,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 Nc(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 Pc(e){var t=e.alternate;t!==null&&(e.alternate=null,Pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vi],delete t[Hi],delete t[Wi],delete t[Gi],delete t[Ki])),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 Fc(e){return e.tag===5||e.tag===3||e.tag===4}function Ic(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Fc(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 a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lc(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=Oi));else if(r!==4&&(e=e.child,e!==null))for(Lc(e,t,n),e=e.sibling;e!==null;)Lc(e,t,n),e=e.sibling}function Rc(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(Rc(e,t,n),e=e.sibling;e!==null;)Rc(e,t,n),e=e.sibling}var zc=null,R=!1;function Bc(e,t,n){for(n=n.child;n!==null;)Vc(e,t,n),n=n.sibling}function Vc(e,t,n){if(jt&&typeof jt.onCommitFiberUnmount==`function`)try{jt.onCommitFiberUnmount(At,n)}catch{}switch(n.tag){case 5:Tc||Dc(n,t);case 6:var r=zc,i=R;zc=null,Bc(e,t,n),zc=r,R=i,zc!==null&&(R?(e=zc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):zc.removeChild(n.stateNode));break;case 18:zc!==null&&(R?(e=zc,n=n.stateNode,e.nodeType===8?Li(e.parentNode,n):e.nodeType===1&&Li(e,n),bn(e)):Li(zc,n.stateNode));break;case 4:r=zc,i=R,zc=n.stateNode.containerInfo,R=!0,Bc(e,t,n),zc=r,R=i;break;case 0:case 11:case 14:case 15:if(!Tc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Oc(n,t,o),i=i.next}while(i!==r)}Bc(e,t,n);break;case 1:if(!Tc&&(Dc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){$l(n,t,e)}Bc(e,t,n);break;case 21:Bc(e,t,n);break;case 22:n.mode&1?(Tc=(r=Tc)||n.memoizedState!==null,Bc(e,t,n),Tc=r):Bc(e,t,n);break;default:Bc(e,t,n)}}function Hc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ec),t.forEach(function(t){var r=ru.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Uc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:zc=c.stateNode,R=!1;break a;case 3:zc=c.stateNode.containerInfo,R=!0;break a;case 4:zc=c.stateNode.containerInfo,R=!0;break a}c=c.return}if(zc===null)throw Error(r(160));Vc(o,s,a),zc=null,R=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){$l(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Wc(t,e),t=t.sibling}function Wc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Uc(t,e),Gc(e),i&4){try{jc(3,e,e.return),Mc(3,e)}catch(t){$l(e,e.return,t)}try{jc(5,e,e.return)}catch(t){$l(e,e.return,t)}}break;case 1:Uc(t,e),Gc(e),i&512&&n!==null&&Dc(n,n.return);break;case 5:if(Uc(t,e),Gc(e),i&512&&n!==null&&Dc(n,n.return),e.flags&32){var a=e.stateNode;try{Ie(a,``)}catch(t){$l(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&Se(a,o),Ue(c,s);var u=Ue(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Be(a,f):d===`dangerouslySetInnerHTML`?Fe(a,f):d===`children`?Ie(a,f):S(a,d,f,u)}switch(c){case`input`:Ce(a,o);break;case`textarea`:Ae(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?De(a,!!o.multiple,o.multiple?[]:``,!1):De(a,!!o.multiple,o.defaultValue,!0)):De(a,!!o.multiple,m,!1)}a[Hi]=o}catch(t){$l(e,e.return,t)}}break;case 6:if(Uc(t,e),Gc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){$l(e,e.return,t)}}break;case 3:if(Uc(t,e),Gc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{bn(t.containerInfo)}catch(t){$l(e,e.return,t)}break;case 4:Uc(t,e),Gc(e);break;case 13:Uc(t,e),Gc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(ml=Ct())),i&4&&Hc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Tc=(u=Tc)||d,Uc(t,e),Tc=u):Uc(t,e),Gc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(L=e,d=e.child;d!==null;){for(f=L=d;L!==null;){switch(p=L,m=p.child,p.tag){case 0:case 11:case 14:case 15:jc(4,p,p.return);break;case 1:Dc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){$l(i,n,e)}}break;case 5:Dc(p,p.return);break;case 22:if(p.memoizedState!==null){Yc(f);continue}}m===null?Yc(f):(m.return=p,L=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=ze(`display`,s))}catch(t){$l(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){$l(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Uc(t,e),Gc(e),i&4&&Hc(e);break;case 21:break;default:Uc(t,e),Gc(e)}}function Gc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Fc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Ie(a,``),i.flags&=-33),Rc(e,Ic(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Lc(e,Ic(e),o);break;default:throw Error(r(161))}}catch(t){$l(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Kc(e,t,n){L=e,qc(e,t,n)}function qc(e,t,n){for(var r=(e.mode&1)!=0;L!==null;){var i=L,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||wc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||Tc;s=wc;var l=Tc;if(wc=o,(Tc=c)&&!l)for(L=i;L!==null;)o=L,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Xc(i):(c.return=o,L=c);for(;a!==null;)L=a,qc(a,t,n),a=a.sibling;L=i,wc=s,Tc=l}Jc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,L=a):Jc(e,t,n)}}function Jc(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Tc||Mc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!Tc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Ms(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&bo(t,o,i);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}bo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;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 u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&bn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Tc||t.flags&512&&Nc(t)}catch(e){$l(t,t.return,e)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function Yc(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function Xc(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Mc(4,t)}catch(e){$l(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){$l(t,i,e)}}var a=t.return;try{Nc(t)}catch(e){$l(t,a,e)}break;case 5:var o=t.return;try{Nc(t)}catch(e){$l(t,o,e)}}}catch(e){$l(t,t.return,e)}if(t===e){L=null;break}var s=t.sibling;if(s!==null){s.return=t.return,L=s;break}L=t.return}}var Zc=Math.ceil,Qc=C.ReactCurrentDispatcher,$c=C.ReactCurrentOwner,el=C.ReactCurrentBatchConfig,tl=0,nl=null,rl=null,il=0,al=0,ol=$i(0),sl=0,cl=null,ll=0,ul=0,dl=0,fl=null,pl=null,ml=0,hl=1/0,gl=null,_l=!1,vl=null,yl=null,bl=!1,xl=null,Sl=0,Cl=0,wl=null,Tl=-1,El=0;function Dl(){return tl&6?Ct():Tl===-1?Tl=Ct():Tl}function Ol(e){return e.mode&1?tl&2&&il!==0?il&-il:Ga.transition===null?(e=Yt,e===0?(e=window.event,e=e===void 0?16:On(e.type),e):e):(El===0&&(El=Wt()),El):1}function kl(e,t,n,i){if(50<Cl)throw Cl=0,wl=null,Error(r(185));Kt(e,n,i),(!(tl&2)||e!==nl)&&(e===nl&&(!(tl&2)&&(ul|=n),sl===4&&Fl(e,il)),Al(e,i),n===1&&tl===0&&!(t.mode&1)&&(hl=Ct()+500,ma&&va()))}function Al(e,t){var n=e.callbackNode;Ht(e,t);var r=Bt(e,e===nl?il:0);if(r===0)n!==null&&bt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&bt(n),t===1)e.tag===0?_a(Il.bind(null,e)):ga(Il.bind(null,e)),Fi(function(){!(tl&6)&&va()}),n=null;else{switch(Xt(r)){case 1:n=Tt;break;case 4:n=Et;break;case 16:n=Dt;break;case 536870912:n=kt;break;default:n=Dt}n=au(n,jl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jl(e,t){if(Tl=-1,El=0,tl&6)throw Error(r(327));var n=e.callbackNode;if(Zl()&&e.callbackNode!==n)return null;var i=Bt(e,e===nl?il:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Wl(e,i);else{t=i;var a=tl;tl|=2;var o=Hl();(nl!==e||il!==t)&&(gl=null,hl=Ct()+500,Bl(e,t));do try{Kl();break}catch(t){Vl(e,t)}while(1);no(),Qc.current=o,tl=a,rl===null?(nl=null,il=0,t=sl):t=0}if(t!==0){if(t===2&&(a=Ut(e),a!==0&&(i=a,t=Ml(e,a))),t===1)throw n=cl,Bl(e,0),Fl(e,i),Al(e,Ct()),n;if(t===6)Fl(e,i);else{if(a=e.current.alternate,!(i&30)&&!Pl(a)&&(t=Wl(e,i),t===2&&(o=Ut(e),o!==0&&(i=o,t=Ml(e,o))),t===1))throw n=cl,Bl(e,0),Fl(e,i),Al(e,Ct()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Yl(e,pl,gl);break;case 3:if(Fl(e,i),(i&130023424)===i&&(t=ml+500-Ct(),10<t)){if(Bt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Dl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Mi(Yl.bind(null,e,pl,gl),t);break}Yl(e,pl,gl);break;case 4:if(Fl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Nt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=Ct()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Zc(i/1960))-i,10<i){e.timeoutHandle=Mi(Yl.bind(null,e,pl,gl),i);break}Yl(e,pl,gl);break;case 5:Yl(e,pl,gl);break;default:throw Error(r(329))}}}return Al(e,Ct()),e.callbackNode===n?jl.bind(null,e):null}function Ml(e,t){var n=fl;return e.current.memoizedState.isDehydrated&&(Bl(e,t).flags|=256),e=Wl(e,t),e!==2&&(t=pl,pl=n,t!==null&&Nl(t)),e}function Nl(e){pl===null?pl=e:pl.push.apply(pl,e)}function Pl(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 i=n[r],a=i.getSnapshot;i=i.value;try{if(!Lr(a(),i))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 Fl(e,t){for(t&=~dl,t&=~ul,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nt(t),r=1<<n;e[n]=-1,t&=~r}}function Il(e){if(tl&6)throw Error(r(327));Zl();var t=Bt(e,0);if(!(t&1))return Al(e,Ct()),null;var n=Wl(e,t);if(e.tag!==0&&n===2){var i=Ut(e);i!==0&&(t=i,n=Ml(e,i))}if(n===1)throw n=cl,Bl(e,0),Fl(e,t),Al(e,Ct()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yl(e,pl,gl),Al(e,Ct()),null}function Ll(e,t){var n=tl;tl|=1;try{return e(t)}finally{tl=n,tl===0&&(hl=Ct()+500,ma&&va())}}function Rl(e){xl!==null&&xl.tag===0&&!(tl&6)&&Zl();var t=tl;tl|=1;var n=el.transition,r=Yt;try{if(el.transition=null,Yt=1,e)return e()}finally{Yt=r,el.transition=n,tl=t,!(tl&6)&&va()}}function zl(){al=ol.current,ea(ol)}function Bl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ni(n)),rl!==null)for(n=rl.return;n!==null;){var r=n;switch(ja(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ca();break;case 3:Do(),ea(ia),ea(ra),No();break;case 5:ko(r);break;case 4:Do();break;case 13:ea(Ao);break;case 19:ea(Ao);break;case 10:ro(r.type._context);break;case 22:case 23:zl()}n=n.return}if(nl=e,rl=e=uu(e.current,null),il=al=t,sl=0,cl=null,dl=ul=ll=0,pl=fl=null,so!==null){for(t=0;t<so.length;t++)if(n=so[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}so=null}return e}function Vl(e,t){do{var n=rl;try{if(no(),Po.current=Os,Bo){for(var i=Lo.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Bo=!1}if(Io=0,zo=Ro=Lo=null,Vo=!1,Ho=0,$c.current=null,n===null||n.return===null){sl=1,cl=t,rl=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=il,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Ks(s);if(m!==null){m.flags&=-257,qs(m,s,c,o,t),m.mode&1&&Gs(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Gs(o,u,t),Ul();break a}l=Error(r(426))}}else if(Pa&&c.mode&1){var _=Ks(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),qs(_,s,c,o,t),Wa(zs(l,c));break a}}o=l=zs(l,c),sl!==4&&(sl=2),fl===null?fl=[o]:fl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Us(o,l,t);vo(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(yl===null||!yl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Ws(o,c,t);vo(o,x);break a}}o=o.return}while(o!==null)}Jl(n)}catch(e){t=e,rl===n&&n!==null&&(rl=n=n.return);continue}break}while(1)}function Hl(){var e=Qc.current;return Qc.current=Os,e===null?Os:e}function Ul(){(sl===0||sl===3||sl===2)&&(sl=4),nl===null||!(ll&268435455)&&!(ul&268435455)||Fl(nl,il)}function Wl(e,t){var n=tl;tl|=2;var i=Hl();(nl!==e||il!==t)&&(gl=null,Bl(e,t));do try{Gl();break}catch(t){Vl(e,t)}while(1);if(no(),tl=n,Qc.current=i,rl!==null)throw Error(r(261));return nl=null,il=0,sl}function Gl(){for(;rl!==null;)ql(rl)}function Kl(){for(;rl!==null&&!xt();)ql(rl)}function ql(e){var t=iu(e.alternate,e,al);e.memoizedProps=e.pendingProps,t===null?Jl(e):rl=t,$c.current=null}function Jl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=I(n,t),n!==null){n.flags&=32767,rl=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{sl=6,rl=null;return}}else if(n=Cc(n,t,al),n!==null){rl=n;return}if(t=t.sibling,t!==null){rl=t;return}rl=t=e}while(t!==null);sl===0&&(sl=5)}function Yl(e,t,n){var r=Yt,i=el.transition;try{el.transition=null,Yt=1,Xl(e,t,n,r)}finally{el.transition=i,Yt=r}return null}function Xl(e,t,n,i){do Zl();while(xl!==null);if(tl&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(qt(e,o),e===nl&&(rl=nl=null,il=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||bl||(bl=!0,au(Dt,function(){return Zl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=el.transition,el.transition=null;var s=Yt;Yt=1;var c=tl;tl|=4,$c.current=null,Ac(e,n),Wc(n,e),Wr(Ai),Sn=!!ki,Ai=ki=null,e.current=n,Kc(n,e,a),St(),tl=c,Yt=s,el.transition=o}else e.current=n;if(bl&&(bl=!1,xl=e,Sl=a),o=e.pendingLanes,o===0&&(yl=null),Mt(n.stateNode,i),Al(e,Ct()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(_l)throw _l=!1,e=vl,vl=null,e;return Sl&1&&e.tag!==0&&Zl(),o=e.pendingLanes,o&1?e===wl?Cl++:(Cl=0,wl=e):Cl=0,va(),null}function Zl(){if(xl!==null){var e=Xt(Sl),t=el.transition,n=Yt;try{if(el.transition=null,Yt=16>e?16:e,xl===null)var i=!1;else{if(e=xl,xl=null,Sl=0,tl&6)throw Error(r(331));var a=tl;for(tl|=4,L=e.current;L!==null;){var o=L,s=o.child;if(L.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(L=u;L!==null;){var d=L;switch(d.tag){case 0:case 11:case 15:jc(8,d,o)}var f=d.child;if(f!==null)f.return=d,L=f;else for(;L!==null;){d=L;var p=d.sibling,m=d.return;if(Pc(d),d===u){L=null;break}if(p!==null){p.return=m,L=p;break}L=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}L=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,L=s;else b:for(;L!==null;){if(o=L,o.flags&2048)switch(o.tag){case 0:case 11:case 15:jc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,L=v;break b}L=o.return}}var y=e.current;for(L=y;L!==null;){s=L;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,L=b;else b:for(s=y;L!==null;){if(c=L,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Mc(9,c)}}catch(e){$l(c,c.return,e)}if(c===s){L=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,L=x;break b}L=c.return}}if(tl=a,va(),jt&&typeof jt.onPostCommitFiberRoot==`function`)try{jt.onPostCommitFiberRoot(At,e)}catch{}i=!0}return i}finally{Yt=n,el.transition=t}}return!1}function Ql(e,t,n){t=zs(n,t),t=Us(e,t,1),e=go(e,t,1),t=Dl(),e!==null&&(Kt(e,1,t),Al(e,t))}function $l(e,t,n){if(e.tag===3)Ql(e,e,n);else for(;t!==null;){if(t.tag===3){Ql(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yl===null||!yl.has(r))){e=zs(n,e),e=Ws(t,e,1),t=go(t,e,1),e=Dl(),t!==null&&(Kt(t,1,e),Al(t,e));break}}t=t.return}}function eu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Dl(),e.pingedLanes|=e.suspendedLanes&n,nl===e&&(il&n)===n&&(sl===4||sl===3&&(il&130023424)===il&&500>Ct()-ml?Bl(e,0):dl|=n),Al(e,t)}function tu(e,t){t===0&&(e.mode&1?(t=Rt,Rt<<=1,!(Rt&130023424)&&(Rt=4194304)):t=1);var n=Dl();e=uo(e,t),e!==null&&(Kt(e,t,n),Al(e,n))}function nu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tu(e,n)}function ru(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),tu(e,n)}var iu=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ia.current)Ys=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Ys=!1,_c(e,t,n);Ys=!!(e.flags&131072)}else Ys=!1,Pa&&t.flags&1048576&&ka(t,Sa,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;hc(e,t),e=t.pendingProps;var a=oa(t,ra.current);ao(t,n),a=Ko(null,t,i,e,a,n);var o=qo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,sa(i)?(o=!0,da(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,po(t),a.updater=Ps,t.stateNode=a,a._reactInternals=t,Rs(t,i,e,n),t=ic(null,t,i,!0,o,n)):(t.tag=0,Pa&&o&&Aa(t),Xs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(hc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=lu(i),e=Ms(i,e),a){case 0:t=nc(null,t,i,e,n);break a;case 1:t=rc(null,t,i,e,n);break a;case 11:t=Zs(null,t,i,e,n);break a;case 14:t=Qs(null,t,i,Ms(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ms(i,a),nc(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ms(i,a),rc(e,t,i,a,n);case 3:a:{if(ac(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,mo(e,t),yo(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=zs(Error(r(423)),t),t=oc(e,t,i,n,a);break a}else if(i!==a){a=zs(Error(r(424)),t),t=oc(e,t,i,n,a);break a}else for(Na=Ri(t.stateNode.containerInfo.firstChild),Ma=t,Pa=!0,Fa=null,n=Za(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ua(),i===a){t=gc(e,t,n);break a}Xs(e,t,i,n)}t=t.child}return t;case 5:return Oo(t),e===null&&za(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,ji(i,a)?s=null:o!==null&&ji(i,o)&&(t.flags|=32),tc(e,t),Xs(e,t,s,n),t.child;case 6:return e===null&&za(t),null;case 13:return lc(e,t,n);case 4:return Eo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Xa(t,null,i,n):Xs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ms(i,a),Zs(e,t,i,a,n);case 7:return Xs(e,t,t.pendingProps,n),t.child;case 8:return Xs(e,t,t.pendingProps.children,n),t.child;case 12:return Xs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,ta(Qa,i._currentValue),i._currentValue=s,o!==null)if(Lr(o.value,s)){if(o.children===a.children&&!ia.current){t=gc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=ho(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),io(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),io(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Xs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,ao(t,n),a=oo(a),i=i(a),t.flags|=1,Xs(e,t,i,n),t.child;case 14:return i=t.type,a=Ms(i,t.pendingProps),a=Ms(i.type,a),Qs(e,t,i,a,n);case 15:return $s(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ms(i,a),hc(e,t),t.tag=1,sa(i)?(e=!0,da(t)):e=!1,ao(t,n),Is(t,i,a),Rs(t,i,a,n),ic(null,t,i,!0,e,n);case 19:return mc(e,t,n);case 22:return ec(e,t,n)}throw Error(r(156,t.tag))};function au(e,t){return yt(e,t)}function ou(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 su(e,t,n,r){return new ou(e,t,n,r)}function cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lu(e){if(typeof e==`function`)return+!!cu(e);if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===j)return 14}return 2}function uu(e,t){var n=e.alternate;return n===null?(n=su(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,i,a,o){var s=2;if(i=e,typeof e==`function`)cu(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return fu(n.children,a,o,t);case D:s=8,a|=8;break;case O:return e=su(12,n,t,a|2),e.elementType=O,e.lanes=o,e;case A:return e=su(13,n,t,a),e.elementType=A,e.lanes=o,e;case ne:return e=su(19,n,t,a),e.elementType=ne,e.lanes=o,e;case ie:return pu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case ee:s=10;break a;case te:s=9;break a;case k:s=11;break a;case j:s=14;break a;case re:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=su(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function fu(e,t,n,r){return e=su(7,e,r,t),e.lanes=n,e}function pu(e,t,n,r){return e=su(22,e,r,t),e.elementType=ie,e.lanes=n,e.stateNode={isHidden:!1},e}function mu(e,t,n){return e=su(6,e,null,t),e.lanes=n,e}function hu(e,t,n){return t=su(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gt(0),this.expirationTimes=Gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _u(e,t,n,r,i,a,o,s,c){return e=new gu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=su(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},po(a),e}function vu(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function yu(e){if(!e)return na;e=e._reactInternals;a:{if(pt(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(sa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(sa(n))return ua(e,n,t)}return t}function bu(e,t,n,r,i,a,o,s,c){return e=_u(n,r,!0,e,i,a,o,s,c),e.context=yu(null),n=e.current,r=Dl(),i=Ol(n),a=ho(r,i),a.callback=t??null,go(n,a,i),e.current.lanes=i,Kt(e,i,r),Al(e,r),e}function xu(e,t,n,r){var i=t.current,a=Dl(),o=Ol(i);return n=yu(n),t.context===null?t.context=n:t.pendingContext=n,t=ho(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=go(i,t,o),e!==null&&(kl(e,i,o,a),_o(e,i,o)),o}function Su(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 Cu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wu(e,t){Cu(e,t),(e=e.alternate)&&Cu(e,t)}function Tu(){return null}var Eu=typeof reportError==`function`?reportError:function(e){console.error(e)};function Du(e){this._internalRoot=e}Ou.prototype.render=Du.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));xu(e,t,null,null)},Ou.prototype.unmount=Du.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rl(function(){xu(null,e,null,null)}),t[Ui]=null}};function Ou(e){this._internalRoot=e}Ou.prototype.unstable_scheduleHydration=function(e){if(e){var t=en();e={blockedOn:null,target:e,priority:t};for(var n=0;n<un.length&&t!==0&&t<un[n].priority;n++);un.splice(n,0,e),n===0&&hn(e)}};function ku(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Au(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function ju(){}function Mu(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=Su(o);a.call(e)}}var o=bu(t,r,e,0,null,!1,!1,``,ju);return e._reactRootContainer=o,e[Ui]=o.current,_i(e.nodeType===8?e.parentNode:e),Rl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=Su(c);s.call(e)}}var c=_u(e,0,!1,null,null,!1,!1,``,ju);return e._reactRootContainer=c,e[Ui]=c.current,_i(e.nodeType===8?e.parentNode:e),Rl(function(){xu(t,c,n,r)}),c}function Nu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=Su(o);s.call(e)}}xu(t,o,e,i)}else o=Mu(n,t,e,i,r);return Su(o)}Zt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=zt(t.pendingLanes);n!==0&&(Jt(t,n|1),Al(t,Ct()),!(tl&6)&&(hl=Ct()+500,va()))}break;case 13:Rl(function(){var t=uo(e,1);t!==null&&kl(t,e,1,Dl())}),wu(e,1)}},Qt=function(e){if(e.tag===13){var t=uo(e,134217728);t!==null&&kl(t,e,134217728,Dl()),wu(e,134217728)}},$t=function(e){if(e.tag===13){var t=Ol(e),n=uo(e,t);n!==null&&kl(n,e,t,Dl()),wu(e,t)}},en=function(){return Yt},tn=function(e,t){var n=Yt;try{return Yt=e,t()}finally{Yt=n}},Ke=function(e,t,n){switch(t){case`input`:if(Ce(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 i=n[t];if(i!==e&&i.form===e.form){var a=Xi(i);if(!a)throw Error(r(90));ve(i),Ce(i,a)}}}break;case`textarea`:Ae(e,n);break;case`select`:t=n.value,t!=null&&De(e,!!n.multiple,t,!1)}},Qe=Ll,$e=Rl;var Pu={usingClientEntryPoint:!1,Events:[Ji,Yi,Xi,Xe,Ze,Ll]},Fu={findFiberByHostInstance:qi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},Iu={bundleType:Fu.bundleType,version:Fu.version,rendererPackageName:Fu.rendererPackageName,rendererConfig:Fu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_t(e),e===null?null:e.stateNode},findFiberByHostInstance:Fu.findFiberByHostInstance||Tu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lu.isDisabled&&Lu.supportsFiber)try{At=Lu.inject(Iu),jt=Lu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ku(t))throw Error(r(200));return vu(e,t,null,n)},e.createRoot=function(e,t){if(!ku(e))throw Error(r(299));var n=!1,i=``,a=Eu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=_u(e,1,!1,null,null,n,!1,i,a),e[Ui]=t.current,_i(e.nodeType===8?e.parentNode:e),new Du(t)},e.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(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=_t(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Rl(e)},e.hydrate=function(e,t,n){if(!Au(t))throw Error(r(200));return Nu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!ku(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=Eu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=bu(t,null,e,1,n??null,a,!1,o,s),e[Ui]=t.current,_i(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Ou(t)},e.render=function(e,t,n){if(!Au(t))throw Error(r(200));return Nu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Au(e))throw Error(r(40));return e._reactRootContainer?(Rl(function(){Nu(null,null,e,!1,function(){e._reactRootContainer=null,e[Ui]=null})}),!0):!1},e.unstable_batchedUpdates=Ll,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Au(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Nu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=h();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),_=`commitPendingSession`,v=new WeakMap;function y(e,t){let n=v.get(e);n||(n=new Set,v.set(e,n)),n.add(t)}function b(e){return Object.getOwnPropertyDescriptor(e,_)!==void 0}function x(e){if(b(e))return;let t=e[_];Object.defineProperty(e,_,{value:()=>{if(typeof t==`function`)try{t.call(e)}catch{}C(e)},configurable:!0,enumerable:!1,writable:!0})}function S(e,t,n={}){let r=n.delayMs,i=typeof r==`function`?r:()=>r??0,a=n.maxWaitMs,o=null,s=null,c=!1,l=()=>{o!==null&&(clearTimeout(o),o=null),s!==null&&(clearTimeout(s),s=null)},u=()=>{l(),c&&(c=!1,t())},d={notify(){c=!0,o!==null&&clearTimeout(o),o=setTimeout(u,Math.max(0,i())),a!==void 0&&s===null&&(s=setTimeout(u,Math.max(0,a)))},flush(){if(!c){l();return}try{u()}catch(e){console.warn(`[session-notifier] a committed session-changed dispatch threw`,e)}}};return y(e,d),x(e),d}function C(e){let t=v.get(e);if(t)for(let e of[...t])e.flush()}var w=class e extends CustomEvent{static{this.TYPE=`model-set`}constructor(t,n,r){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t,hasModel:r}}),this.component=t,this.complete=n}},T=class e extends CustomEvent{static{this.TYPE=`session-changed`}constructor(t,n){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t}}),this.component=t,this.complete=n}},E=function(){return null};E.isRequired=E;var D=()=>E,O={array:E,bigint:E,bool:E,func:E,number:E,object:E,string:E,symbol:E,any:E,element:E,elementType:E,node:E,arrayOf:D,instanceOf:D,objectOf:D,oneOf:D,oneOfType:D,shape:D,exact:D,checkPropTypes:()=>{},resetWarningCache:()=>{}};O.PropTypes=O;var ee=1,te=2,k=4294967295,A=500,ne=9007199254740991,j=`[object Arguments]`,re=`[object Array]`,ie=`[object ArrayBuffer]`,ae=`[object AsyncFunction]`,oe=`[object Boolean]`,M=`[object DataView]`,se=`[object Date]`,ce=`[object Error]`,le=`[object Function]`,ue=`[object GeneratorFunction]`,de=`[object Map]`,fe=`[object Number]`,pe=`[object Object]`,me=`[object Proxy]`,he=`[object RegExp]`,ge=`[object Set]`,_e=`[object String]`,ve=`[object Symbol]`,ye=new Set([`Float32`,`Float64`,`Int8`,`Int16`,`Int32`,`Uint8`,`Uint8Clamped`,`Uint16`,`Uint32`].map(e=>`[object ${e}Array]`));[...ye];var be=/\\(\\)?/g,xe=/^[-+]0x[0-9a-f]+$/i,Se=/^0b[01]+$/i,Ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,we=/^0o[0-7]+$/i,Te=/^\w*$/,Ee=/^(?:0|[1-9]\d*)$/,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/^\s+/,ke=/\s/,Ae=Object.prototype,je=Ae.hasOwnProperty,Me=Ae.toString,Ne=Ae.propertyIsEnumerable;Function.prototype.toString.call(Object);var Pe=Symbol.prototype.toString,Fe=Symbol.prototype.valueOf;function Ie(e){return typeof e==`object`&&!!e}function Le(e,t){return e===t||e!==e&&t!==t}function Re(e){let t=je.call(e,Symbol.toStringTag),n=e[Symbol.toStringTag],r=!1;try{e[Symbol.toStringTag]=void 0,r=!0}catch{}let i=Me.call(e);return r&&(t?e[Symbol.toStringTag]=n:delete e[Symbol.toStringTag]),i}function ze(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Symbol.toStringTag in Object(e)?Re(e):Me.call(e)}function Be(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=ne}function Ve(e,t){let n=typeof e,r=t??ne;return!!r&&(n==`number`||n!=`symbol`&&Ee.test(e))&&e>-1&&e%1==0&&e<r}function He(e){return e!=null&&Be(e.length)&&!It(e)}function Ue(e){return Ie(e)&&He(e)}function We(e){return Ie(e)&&ze(e)==j}function Ge(e){return Ie(e)&&Be(e.length)&&ye.has(ze(e))}function Ke(e){return typeof e==`symbol`||Ie(e)&&ze(e)==ve}function qe(e){let t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Ae)}function Je(e){let t=e.length;for(;t--&&ke.test(e.charAt(t)););return t}function Ye(e){return e&&e.slice(0,Je(e)+1).replace(Oe,``)}function Xe(e){if(typeof e==`number`)return e;if(Ke(e))return NaN;if(Lt(e)){let t=typeof e.valueOf==`function`?e.valueOf():e;e=Lt(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;let t=Ye(e),n=Se.test(t);return n||we.test(t)?parseInt(t.slice(2),n?2:8):xe.test(t)?NaN:+t}function Ze(e){if(!e)return e===0?e:0;let t=Xe(e);return t===1/0||t===-1/0?t<0?-Number.MAX_VALUE:Number.MAX_VALUE:t===t?t:0}function Qe(e){let t=Ze(e),n=t%1;return n?t-n:t}function $e(e){if(typeof e==`string`)return e;if(Array.isArray(e))return at(e,$e)+``;if(Ke(e))return Pe.call(e);let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function et(e){return e==null?``:$e(e)}function tt(e){if(typeof e==`string`||Ke(e))return e;let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function nt(e){return e}function rt(e){return typeof e==`function`?e:nt}function it(e,t){let n=-1,r=e==null?0:e.length,i=[];for(;++n<r;){let r=e[n];t(r,n,e)&&i.push(r)}return i}function at(e,t){let n=-1,r=e==null?0:e.length,i=Array(r);for(;++n<r;)i[n]=t(e[n],n,e);return i}function ot(e,t){let n=-1,{length:r}=t,i=e.length;for(;++n<r;)e[i+n]=t[n];return e}function st(e,t){let n=-1,r=e==null?0:e.length;for(;++n<r;)if(t(e[n],n))return!0;return!1}function ct(e,t){let n=-1,r=Array(e);for(;++n<e;)r[n]=t(n);return r}function lt(e){let t=-1,n=Array(e.size);return e.forEach(e=>{n[++t]=e}),n}function ut(e){let t=-1,n=Array(e.size);return e.forEach((e,r)=>{n[++t]=[r,e]}),n}function dt(e,t){let n=Array.isArray(e),r=!n&&We(e),i=!n&&!r&&Ge(e),a=n||r||i,o=a?ct(e.length,String):[],{length:s}=o;for(let n in e)(t||je.call(e,n))&&!(a&&(n==`length`||i&&(n==`buffer`||n==`byteLength`||n==`byteOffset`)||Ve(n,s)))&&o.push(n);return o}function ft(e){if(!qe(e))return Object.keys(Object(e));let t=[];for(let n in Object(e))je.call(e,n)&&n!=`constructor`&&t.push(n);return t}function pt(e){return He(e)?dt(e,!1):ft(e)}function mt(e){if(e==null)return[];let t=Object(e);return Object.getOwnPropertySymbols(t).filter(e=>Ne.call(t,e))}function ht(e){let t=pt(e);return Array.isArray(e)?t:ot(t,mt(e))}function gt(e){return Array.isArray(e)||We(e)||!!(e&&e[Symbol.isConcatSpreadable])}function _t(e,t,n=gt,r=!1,i=[]){let a=-1,{length:o}=e;for(;++a<o;){let o=e[a];t>0&&n(o)?t>1?_t(o,t-1,n,r,i):ot(i,o):r||(i[i.length]=o)}return i}function vt(e){let t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(De,(e,n,r,i)=>(t.push(r?i.replace(be,`$1`):n||e),e)),t}var yt=new Map;function bt(e){yt.size===A&&yt.clear();let t=yt.get(e);return t===void 0&&(t=vt(e),yt.set(e,t)),t}function xt(e,t){if(Array.isArray(e))return!1;let n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Ke(e)?!0:Te.test(e)||!Ce.test(e)||t!=null&&e in Object(t)}function St(e,t){return Array.isArray(e)?e:xt(e,t)?[e]:bt(et(e))}function Ct(e,t){let n=St(t,e),r=0,{length:i}=n,a=e;for(;a!=null&&r<i;)a=a[tt(n[r++])];return r&&r==i?a:void 0}function wt(e){return t=>t?.[e]}function Tt(e,t){return e.byteLength==t.byteLength&&At(new Uint8Array(e),new Uint8Array(t))}function Et(e,t,n,r,i){let a=n&ee,o=e.length,s=t.length;if(o!=s&&!(a&&s>o))return!1;let c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;let u=-1,d=!0,f=n&te?new Set:void 0;for(i.set(e,t),i.set(t,e);++u<o;){let o=e[u],s=t[u],c;if(r&&(c=a?r(s,o,u,t,e,i):r(o,s,u,e,t,i)),c!==void 0){if(c)continue;d=!1;break}if(f){if(!st(t,(e,t)=>!f.has(t)&&(o===e||At(o,e,n,r,i))?f.add(t):!1)){d=!1;break}}else if(!(o===s||At(o,s,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function Dt(e,t,n,r,i,a){switch(n){case M:return e.byteLength==t.byteLength&&e.byteOffset==t.byteOffset&&Tt(e.buffer,t.buffer);case ie:return Tt(e,t);case oe:case se:case fe:return Le(+e,+t);case ce:return e.name==t.name&&e.message==t.message;case he:case _e:return e==t+``;case de:case ge:{let o=r&ee;if(e.size!=t.size&&!o)return!1;let s=a.get(e);if(s)return s==t;let c=n==de?ut:lt;a.set(e,t);let l=Et(c(e),c(t),r|te,i,a);return a.delete(e),l}case ve:return Fe.call(e)==Fe.call(t)}return!1}function Ot(e,t,n,r,i){let a=n&ee,o=ht(e),s=o.length;if(s!=ht(t).length&&!a)return!1;let c=s;for(;c--;){let e=o[c];if(!(a?e in t:je.call(t,e)))return!1}let l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;let d=!0;i.set(e,t),i.set(t,e);let f=!!a;for(;++c<s;){let s=o[c],l=e[s],u=t[s],p;if(r&&(p=a?r(u,l,s,t,e,i):r(l,u,s,e,t,i)),!(p===void 0?l===u||At(l,u,n,r,i):p)){d=!1;break}f||=s==`constructor`}if(d&&!f){let n=e.constructor,r=t.constructor;n!=r&&`constructor`in e&&`constructor`in t&&!(typeof n==`function`&&n instanceof n&&typeof r==`function`&&r instanceof r)&&(d=!1)}return i.delete(e),i.delete(t),d}function kt(e,t,n,r,i){let a=Array.isArray(e),o=Array.isArray(t),s=a?re:ze(e),c=o?re:ze(t);s=s==j?pe:s,c=c==j?pe:c;let l=s==pe,u=s==c;return u&&!l?a||Ge(e)?Et(e,t,n,r,i||new Map):Dt(e,t,s,n,r,i||new Map):u?Ot(e,t,n,r,i||new Map):!1}function At(e,t,n=0,r,i){return e===t?!0:e==null||t==null||!Ie(e)&&!Ie(t)?e!==e&&t!==t:kt(e,t,n,r,i)}function jt(e){if(!(e&&e.length))return[];let t=0,n=it(e,e=>Ue(e)?(t=Math.max(e.length,t),!0):!1);return ct(t,e=>at(n,wt(e)))}function Mt(e){return e!=null&&e.length?_t(e,1):[]}function Nt(e,t,n){let r=e==null?void 0:Ct(e,t);return r===void 0?n:r}function Pt(e){if(e==null)return!0;if(He(e)&&(Array.isArray(e)||typeof e==`string`||typeof e.splice==`function`||Ge(e)||We(e)))return!e.length;let t=ze(e);if(t==de||t==ge)return!e.size;if(qe(e))return!ft(e).length;for(let t in e)if(je.call(e,t))return!1;return!0}function Ft(e,t){return At(e,t)}function It(e){if(!Lt(e))return!1;let t=ze(e);return t==le||t==ue||t==ae||t==me}function Lt(e){let t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Rt(e,t){let n=Qe(e);if(n<1||n>ne)return[];let r=k,i=Math.min(n,k),a=rt(t);n-=k;let o=ct(i,a);for(;++r<n;)a(r);return o}function zt(...e){return jt(e)}function Bt(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Vt=`$$material`;function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ht.apply(null,arguments)}function Ut(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 Wt(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 Gt=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Wt(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=Ut(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Kt=`-ms-`,qt=`-moz-`,Jt=`-webkit-`,Yt=`comm`,Xt=`rule`,Zt=`decl`,Qt=`@import`,$t=`@keyframes`,en=`@layer`,tn=Math.abs,nn=String.fromCharCode,rn=Object.assign;function an(e,t){return un(e,0)^45?(((t<<2^un(e,0))<<2^un(e,1))<<2^un(e,2))<<2^un(e,3):0}function on(e){return e.trim()}function sn(e,t){return(e=t.exec(e))?e[0]:e}function cn(e,t,n){return e.replace(t,n)}function ln(e,t){return e.indexOf(t)}function un(e,t){return e.charCodeAt(t)|0}function dn(e,t,n){return e.slice(t,n)}function fn(e){return e.length}function pn(e){return e.length}function mn(e,t){return t.push(e),e}function hn(e,t){return e.map(t).join(``)}var gn=1,_n=1,vn=0,yn=0,bn=0,xn=``;function Sn(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:gn,column:_n,length:o,return:``}}function Cn(e,t){return rn(Sn(``,null,null,``,null,null,0),e,{length:-e.length},t)}function wn(){return bn}function Tn(){return bn=yn>0?un(xn,--yn):0,_n--,bn===10&&(_n=1,gn--),bn}function En(){return bn=yn<vn?un(xn,yn++):0,_n++,bn===10&&(_n=1,gn++),bn}function Dn(){return un(xn,yn)}function On(){return yn}function kn(e,t){return dn(xn,e,t)}function An(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 jn(e){return gn=_n=1,vn=fn(xn=e),yn=0,[]}function Mn(e){return xn=``,e}function Nn(e){return on(kn(yn-1,In(e===91?e+2:e===40?e+1:e)))}function Pn(e){for(;(bn=Dn())&&bn<33;)En();return An(e)>2||An(bn)>3?``:` `}function Fn(e,t){for(;--t&&En()&&!(bn<48||bn>102||bn>57&&bn<65||bn>70&&bn<97););return kn(e,On()+(t<6&&Dn()==32&&En()==32))}function In(e){for(;En();)switch(bn){case e:return yn;case 34:case 39:e!==34&&e!==39&&In(bn);break;case 40:e===41&&In(e);break;case 92:En();break}return yn}function Ln(e,t){for(;En()&&e+bn!==57&&!(e+bn===84&&Dn()===47););return`/*`+kn(t,yn-1)+`*`+nn(e===47?e:En())}function Rn(e){for(;!An(Dn());)En();return kn(e,yn)}function zn(e){return Mn(Bn(``,null,null,null,[``],e=jn(e),0,[0],e))}function Bn(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=En()){case 40:if(m!=108&&un(C,d-1)==58){ln(C+=cn(Nn(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Nn(v);break;case 9:case 10:case 13:case 32:C+=Pn(m);break;case 92:C+=Fn(On()-1,7);continue;case 47:switch(Dn()){case 42:case 47:mn(Hn(Ln(En(),On()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=fn(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=cn(C,/\f/g,``)),p>0&&fn(C)-d&&mn(p>32?Un(C+`;`,r,n,d-1):Un(cn(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(mn(S=Vn(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Bn(C,t,S,S,b,a,d,s,x);else switch(f===99&&un(C,3)===110?100:f){case 100:case 108:case 109:case 115:Bn(e,S,S,r&&mn(Vn(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Bn(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+fn(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Tn()==125)continue}switch(C+=nn(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(fn(C)-1)*_,_=1;break;case 64:Dn()===45&&(C+=Nn(En())),f=Dn(),u=d=fn(y=C+=Rn(On())),v++;break;case 45:m===45&&fn(C)==2&&(h=0)}}return a}function Vn(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=pn(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=dn(e,d+1,d=tn(h=o[m])),y=e;_<p;++_)(y=on(h>0?f[_]+` `+v:cn(v,/&\f/g,f[_])))&&(c[g++]=y);return Sn(e,t,n,i===0?Xt:s,c,l,u)}function Hn(e,t,n){return Sn(e,t,n,Yt,nn(wn()),dn(e,2,-2),0)}function Un(e,t,n,r){return Sn(e,t,n,Zt,dn(e,0,r),dn(e,r+1,-1),r)}function Wn(e,t){for(var n=``,r=pn(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Gn(e,t,n,r){switch(e.type){case en:if(e.children.length)break;case Qt:case Zt:return e.return=e.return||e.value;case Yt:return``;case $t:return e.return=e.value+`{`+Wn(e.children,r)+`}`;case Xt:e.value=e.props.join(`,`)}return fn(n=Wn(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Kn(e){var t=pn(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function qn(e){return function(t){t.root||(t=t.return)&&e(t)}}function Jn(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yn=function(e,t,n){for(var r=0,i=0;r=i,i=Dn(),r===38&&i===12&&(t[n]=1),!An(i);)En();return kn(e,yn)},Xn=function(e,t){var n=-1,r=44;do switch(An(r)){case 0:r===38&&Dn()===12&&(t[n]=1),e[n]+=Yn(yn-1,t,n);break;case 2:e[n]+=Nn(r);break;case 4:if(r===44){e[++n]=Dn()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=nn(r)}while(r=En());return e},Zn=function(e,t){return Mn(Xn(jn(e),t))},Qn=new WeakMap,$n=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Qn.get(n))&&!r){Qn.set(e,!0);for(var i=[],a=Zn(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},er=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function tr(e,t){switch(an(e,t)){case 5103:return Jt+`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 Jt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Jt+e+qt+e+Kt+e+e;case 6828:case 4268:return Jt+e+Kt+e+e;case 6165:return Jt+e+Kt+`flex-`+e+e;case 5187:return Jt+e+cn(e,/(\w+).+(:[^]+)/,Jt+`box-$1$2`+Kt+`flex-$1$2`)+e;case 5443:return Jt+e+Kt+`flex-item-`+cn(e,/flex-|-self/,``)+e;case 4675:return Jt+e+Kt+`flex-line-pack`+cn(e,/align-content|flex-|-self/,``)+e;case 5548:return Jt+e+Kt+cn(e,`shrink`,`negative`)+e;case 5292:return Jt+e+Kt+cn(e,`basis`,`preferred-size`)+e;case 6060:return Jt+`box-`+cn(e,`-grow`,``)+Jt+e+Kt+cn(e,`grow`,`positive`)+e;case 4554:return Jt+cn(e,/([^-])(transform)/g,`$1`+Jt+`$2`)+e;case 6187:return cn(cn(cn(e,/(zoom-|grab)/,Jt+`$1`),/(image-set)/,Jt+`$1`),e,``)+e;case 5495:case 3959:return cn(e,/(image-set\([^]*)/,Jt+"$1$`$1");case 4968:return cn(cn(e,/(.+:)(flex-)?(.*)/,Jt+`box-pack:$3`+Kt+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+Jt+e+e;case 4095:case 3583:case 4068:case 2532:return cn(e,/(.+)-inline(.+)/,Jt+`$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(fn(e)-1-t>6)switch(un(e,t+1)){case 109:if(un(e,t+4)!==45)break;case 102:return cn(e,/(.+:)(.+)-([^]+)/,`$1`+Jt+`$2-$3$1`+qt+(un(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~ln(e,`stretch`)?tr(cn(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(un(e,t+1)!==115)break;case 6444:switch(un(e,fn(e)-3-(~ln(e,`!important`)&&10))){case 107:return cn(e,`:`,`:`+Jt)+e;case 101:return cn(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+Jt+(un(e,14)===45?`inline-`:``)+`box$3$1`+Jt+`$2$3$1`+Kt+`$2box$3`)+e}break;case 5936:switch(un(e,t+11)){case 114:return Jt+e+Kt+cn(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return Jt+e+Kt+cn(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return Jt+e+Kt+cn(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return Jt+e+Kt+e+e}return e}var nr=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Zt:e.return=tr(e.value,e.length);break;case $t:return Wn([Cn(e,{value:cn(e.value,`@`,`@`+Jt)})],r);case Xt:if(e.length)return hn(e.props,function(t){switch(sn(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Wn([Cn(e,{props:[cn(t,/:(read-\w+)/,`:`+qt+`$1`)]})],r);case`::placeholder`:return Wn([Cn(e,{props:[cn(t,/:(plac\w+)/,`:`+Jt+`input-$1`)]}),Cn(e,{props:[cn(t,/:(plac\w+)/,`:`+qt+`$1`)]}),Cn(e,{props:[cn(t,/:(plac\w+)/,Kt+`input-$1`)]})],r)}return``})}}],rr=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||nr,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[$n,er],l,u=[Gn,qn(function(e){l.insert(e)})],d=Kn(c.concat(r,u)),f=function(e){return Wn(zn(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Gt({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},ir=o((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),ar=o(((e,t)=>{t.exports=ir()})),or=o(((e,t)=>{var n=ar(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function sr(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var cr=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},lr=function(e,t,n){cr(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function ur(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 dr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fr=/[A-Z]|^ms/g,pr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mr=function(e){return e.charCodeAt(1)===45},hr=function(e){return e!=null&&typeof e!=`boolean`},gr=Jn(function(e){return mr(e)?e:e.replace(fr,`-$&`).toLowerCase()}),_r=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(pr,function(e,t,n){return xr={name:t,styles:n,next:xr},t})}return dr[e]!==1&&!mr(e)&&typeof t==`number`&&t!==0?t+`px`:t};function vr(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return xr={name:i.name,styles:i.styles,next:xr},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)xr={name:o.name,styles:o.styles,next:xr},o=o.next;return a.styles+`;`}return yr(e,t,n);case`function`:if(e!==void 0){var s=xr,c=n(e);return xr=s,vr(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function yr(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=vr(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:hr(s)&&(r+=gr(a)+`:`+_r(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)hr(o[c])&&(r+=gr(a)+`:`+_r(a,o[c])+`;`);else{var l=vr(e,t,o);switch(a){case`animation`:case`animationName`:r+=gr(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var br=/label:\s*([^\s;{]+)\s*(;|$)/g,xr;function Sr(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;xr=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=vr(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=vr(n,t,e[o]),r&&(i+=a[o]);br.lastIndex=0;for(var s=``,c;(c=br.exec(i))!==null;)s+=`-`+c[1];return{name:ur(i)+s,styles:i,next:xr}}var N=l(d()),Cr=function(e){return e()},wr=N.useInsertionEffect?N.useInsertionEffect:!1,Tr=wr||Cr,Er=wr||N.useLayoutEffect,Dr=N.createContext(typeof HTMLElement<`u`?rr({key:`css`}):null),Or=Dr.Provider,kr=function(e){return(0,N.forwardRef)(function(t,n){return e(t,(0,N.useContext)(Dr),n)})},Ar=N.createContext({}),jr={}.hasOwnProperty,Mr=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Nr=function(e,t){var n={};for(var r in t)jr.call(t,r)&&(n[r]=t[r]);return n[Mr]=e,n},Pr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return cr(t,n,r),Tr(function(){return lr(t,n,r)}),null},Fr=kr(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Mr],a=[r],o=``;typeof e.className==`string`?o=sr(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Sr(a,void 0,N.useContext(Ar));o+=t.key+`-`+s.name;var c={};for(var l in e)jr.call(e,l)&&l!==`css`&&l!==Mr&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),N.createElement(N.Fragment,null,N.createElement(Pr,{cache:t,serialized:s,isStringTag:typeof i==`string`}),N.createElement(i,c))});or();var Ir=function(e,t){var n=arguments;if(t==null||!jr.call(t,`css`))return N.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Fr,i[1]=Nr(e,t);for(var a=2;a<r;a++)i[a]=n[a];return N.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(Ir||={});var Lr=kr(function(e,t){var n=e.styles,r=Sr([n],void 0,N.useContext(Ar)),i=N.useRef();return Er(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Er(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&lr(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function Rr(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Sr(t)}function zr(){var e=Rr.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var Br=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Vr=Jn(function(e){return Br.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Hr=function(e){return e!==`theme`},Ur=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?Vr:Hr},Wr=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},Gr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return cr(t,n,r),Tr(function(){return lr(t,n,r)}),null},Kr=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=Wr(t,n,r),c=s||Ur(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=kr(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=N.useContext(Ar)}typeof e.className==`string`?a=sr(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Sr(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?Ur(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),N.createElement(N.Fragment,null,N.createElement(Gr,{cache:t,serialized:m,isStringTag:typeof r==`string`}),N.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return`.`+o}}),h.withComponent=function(t,r){return e(t,Ht({},n,r,{shouldForwardProp:Wr(h,r,!0)})).apply(void 0,d)},h}},qr=`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`.split(`.`),Jr=Kr.bind(null);qr.forEach(function(e){Jr[e]=Jr(e)});var Yr=o((e=>{var t=d(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),P=o(((e,t)=>{t.exports=Yr()}))(),Xr=new Map,Zr={insert:void 0},Qr=(e,t)=>{let n=rr(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n},$r;if(typeof document==`object`&&($r=document.querySelector(`[name="emotion-insertion-point"]`),!$r)){$r=document.createElement(`meta`),$r.setAttribute(`name`,`emotion-insertion-point`),$r.setAttribute(`content`,``);let e=document.querySelector(`head`);e&&e.prepend($r)}function ei(e,t){if(e||t){class n extends Gt{insert(e,t){return Zr.insert?Zr.insert(e,t):(this.key&&this.key.endsWith(`global`)&&(this.before=$r),super.insert(e,t))}}let r=Qr({key:`css`,insertionPoint:e?$r:void 0},n);if(t){let e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}function ti(e){let{injectFirst:t,enableCssLayer:n,children:r}=e,i=N.useMemo(()=>{let e=`${t}-${n}`;if(typeof document==`object`&&Xr.has(e))return Xr.get(e);let r=ei(t,n);return Xr.set(e,r),r},[t,n]);return i?(0,P.jsx)(Or,{value:i,children:r}):r}function ni(e){return e==null||Object.keys(e).length===0}function ri(e){let{styles:t,defaultTheme:n={}}=e;return(0,P.jsx)(Lr,{styles:typeof t==`function`?e=>t(ni(e)?n:e):t})}function ii(e,t){return Jr(e,t)}function ai(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var oi=[];function si(e){return oi[0]=e,Sr(oi)}var ci=o((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),li=o(((e,t)=>{t.exports=ci()}))();function ui(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function di(e){if(N.isValidElement(e)||(0,li.isValidElementType)(e)||!ui(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=di(e[n])}),t}function fi(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return ui(e)&&ui(t)&&Object.keys(t).forEach(i=>{N.isValidElement(t[i])||(0,li.isValidElementType)(t[i])?r[i]=t[i]:ui(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&ui(e[i])?r[i]=fi(e[i],t[i],n):n.clone?r[i]=ui(t[i])?di(t[i]):t[i]:r[i]=t[i]}),r}var pi=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function mi(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=pi(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,...i}}function hi(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(e=>e.startsWith(`@container`)).sort((e,t)=>{let n=/min-width:\s*([0-9.]+)/;return(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{let r=t[n];return delete e[n],e[n]=r,e},{...t}):t}function gi(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function _i(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function vi(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var yi={borderRadius:4};function bi(e,t){return t?fi(e,t,{clone:!1}):e}var xi={xs:0,sm:600,md:900,lg:1200,xl:1536},Si={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${xi[e]}px)`},Ci={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:xi[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function wi(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||Si;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||Si;return Object.keys(t).reduce((i,a)=>{if(gi(e.keys,a)){let e=_i(r.containerQueries?r:Ci,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||xi).includes(a)){let r=e.up(a);i[r]=n(t[a],a)}else{let e=a;i[e]=t[e]}return i},{})}return n(t)}function Ti(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function Ei(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function Di(e){if(typeof e!=`string`)throw Error(Bt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Oi(e,t,n=!0){if(!t||typeof t!=`string`)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:null,e);if(n!=null)return n}return t.split(`.`).reduce((e,t)=>e&&e[t]!=null?e[t]:null,e)}function ki(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:Oi(e,n)||r,t&&(i=t(i,r,e)),i}function Ai(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=Oi(o,r)||{};return wi(e,a,e=>{let r=ki(s,i,e);return e===r&&typeof e==`string`&&(r=ki(s,i,`${t}${e==="default"?``:Di(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}function ji(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Mi={m:`margin`,p:`padding`},Ni={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},Pi={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},Fi=ji(e=>{if(e.length>2)if(Pi[e])e=Pi[e];else return[e];let[t,n]=e.split(``),r=Mi[t],i=Ni[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),Ii=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],Li=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],Ri=[...Ii,...Li];function zi(e,t,n,r){let i=Oi(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function Bi(e){return zi(e,`spacing`,8,`spacing`)}function Vi(e,t){return typeof t==`string`||t==null?t:e(t)}function Hi(e,t){return n=>e.reduce((e,r)=>(e[r]=Vi(t,n),e),{})}function Ui(e,t,n,r){if(!t.includes(n))return null;let i=Hi(Fi(n),r),a=e[n];return wi(e,a,i)}function Wi(e,t){let n=Bi(e.theme);return Object.keys(e).map(r=>Ui(e,t,r,n)).reduce(bi,{})}function Gi(e){return Wi(e,Ii)}Gi.propTypes={},Gi.filterProps=Ii;function Ki(e){return Wi(e,Li)}Ki.propTypes={},Ki.filterProps=Li;function qi(e){return Wi(e,Ri)}qi.propTypes={},qi.filterProps=Ri;function Ji(e=8,t=Bi({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function Yi(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?bi(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Xi(e){return typeof e==`number`?`${e}px solid`:e}function Zi(e,t){return Ai({prop:e,themeKey:`borders`,transform:t})}var Qi=Zi(`border`,Xi),$i=Zi(`borderTop`,Xi),ea=Zi(`borderRight`,Xi),ta=Zi(`borderBottom`,Xi),na=Zi(`borderLeft`,Xi),ra=Zi(`borderColor`),ia=Zi(`borderTopColor`),aa=Zi(`borderRightColor`),oa=Zi(`borderBottomColor`),sa=Zi(`borderLeftColor`),ca=Zi(`outline`,Xi),la=Zi(`outlineColor`),ua=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=zi(e.theme,`shape.borderRadius`,4,`borderRadius`);return wi(e,e.borderRadius,e=>({borderRadius:Vi(t,e)}))}return null};ua.propTypes={},ua.filterProps=[`borderRadius`],Yi(Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ua,ca,la);var da=e=>{if(e.gap!==void 0&&e.gap!==null){let t=zi(e.theme,`spacing`,8,`gap`);return wi(e,e.gap,e=>({gap:Vi(t,e)}))}return null};da.propTypes={},da.filterProps=[`gap`];var fa=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=zi(e.theme,`spacing`,8,`columnGap`);return wi(e,e.columnGap,e=>({columnGap:Vi(t,e)}))}return null};fa.propTypes={},fa.filterProps=[`columnGap`];var pa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=zi(e.theme,`spacing`,8,`rowGap`);return wi(e,e.rowGap,e=>({rowGap:Vi(t,e)}))}return null};pa.propTypes={},pa.filterProps=[`rowGap`],Yi(da,fa,pa,Ai({prop:`gridColumn`}),Ai({prop:`gridRow`}),Ai({prop:`gridAutoFlow`}),Ai({prop:`gridAutoColumns`}),Ai({prop:`gridAutoRows`}),Ai({prop:`gridTemplateColumns`}),Ai({prop:`gridTemplateRows`}),Ai({prop:`gridTemplateAreas`}),Ai({prop:`gridArea`}));function ma(e,t){return t===`grey`?t:e}Yi(Ai({prop:`color`,themeKey:`palette`,transform:ma}),Ai({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:ma}),Ai({prop:`backgroundColor`,themeKey:`palette`,transform:ma}));function ha(e){return e<=1&&e!==0?`${e*100}%`:e}var ga=Ai({prop:`width`,transform:ha}),_a=e=>e.maxWidth!==void 0&&e.maxWidth!==null?wi(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||xi[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:ha(t)}}):null;_a.filterProps=[`maxWidth`];var va=Ai({prop:`minWidth`,transform:ha}),ya=Ai({prop:`height`,transform:ha}),ba=Ai({prop:`maxHeight`,transform:ha}),xa=Ai({prop:`minHeight`,transform:ha});Ai({prop:`size`,cssProperty:`width`,transform:ha}),Ai({prop:`size`,cssProperty:`height`,transform:ha}),Yi(ga,_a,va,ya,ba,xa,Ai({prop:`boxSizing`}));var Sa={border:{themeKey:`borders`,transform:Xi},borderTop:{themeKey:`borders`,transform:Xi},borderRight:{themeKey:`borders`,transform:Xi},borderBottom:{themeKey:`borders`,transform:Xi},borderLeft:{themeKey:`borders`,transform:Xi},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:Xi},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:ua},color:{themeKey:`palette`,transform:ma},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:ma},backgroundColor:{themeKey:`palette`,transform:ma},p:{style:Ki},pt:{style:Ki},pr:{style:Ki},pb:{style:Ki},pl:{style:Ki},px:{style:Ki},py:{style:Ki},padding:{style:Ki},paddingTop:{style:Ki},paddingRight:{style:Ki},paddingBottom:{style:Ki},paddingLeft:{style:Ki},paddingX:{style:Ki},paddingY:{style:Ki},paddingInline:{style:Ki},paddingInlineStart:{style:Ki},paddingInlineEnd:{style:Ki},paddingBlock:{style:Ki},paddingBlockStart:{style:Ki},paddingBlockEnd:{style:Ki},m:{style:Gi},mt:{style:Gi},mr:{style:Gi},mb:{style:Gi},ml:{style:Gi},mx:{style:Gi},my:{style:Gi},margin:{style:Gi},marginTop:{style:Gi},marginRight:{style:Gi},marginBottom:{style:Gi},marginLeft:{style:Gi},marginX:{style:Gi},marginY:{style:Gi},marginInline:{style:Gi},marginInlineStart:{style:Gi},marginInlineEnd:{style:Gi},marginBlock:{style:Gi},marginBlockStart:{style:Gi},marginBlockEnd:{style:Gi},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:da},rowGap:{style:pa},columnGap:{style:fa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:ha},maxWidth:{style:_a},minWidth:{transform:ha},height:{transform:ha},maxHeight:{transform:ha},minHeight:{transform:ha},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}};function Ca(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function wa(e,t){return typeof e==`function`?e(t):e}function Ta(){function e(e,t,n,r){let i={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};let{cssProperty:o=e,themeKey:s,transform:c,style:l}=a;if(t==null)return null;if(s===`typography`&&t===`inherit`)return{[e]:t};let u=Oi(n,s)||{};return l?l(i):wi(i,t,t=>{let n=ki(u,c,t);return t===n&&typeof t==`string`&&(n=ki(u,c,`${e}${t==="default"?``:Di(t)}`,t)),o===!1?n:{[o]:n}})}function t(n){let{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;let o=i.unstable_sxConfig??Sa;function s(n){let r=n;if(typeof n==`function`)r=n(i);else if(typeof n!=`object`)return n;if(!r)return null;let s=Ti(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=wa(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=bi(l,e(n,a,i,o));else{let e=wi({theme:i},a,e=>({[n]:e}));Ca(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=bi(l,e)}else l=bi(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":hi(i,Ei(c,l))}:hi(i,Ei(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var Ea=Ta();Ea.filterProps=[`sx`];function Da(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Oa(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=mi(n),c=Ji(i),l=fi({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...yi,...a}},o);return l=vi(l),l.applyStyles=Da,l=t.reduce((e,t)=>fi(e,t),l),l.unstable_sxConfig={...Sa,...o?.unstable_sxConfig},l.unstable_sx=function(e){return Ea({sx:e,theme:this})},l}function ka(e){return Object.keys(e).length===0}function Aa(e=null){let t=N.useContext(Ar);return!t||ka(t)?e:t}var ja=Oa();function Ma(e=ja){return Aa(e)}function Na(e){let t=si(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Pa({styles:e,themeId:t,defaultTheme:n={}}){let r=Ma(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>Na(typeof e==`function`?e(i):e)):Na(a)),(0,P.jsx)(ri,{styles:a})}var Fa=e=>e,Ia=(()=>{let e=Fa;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Fa}}})();function La(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=La(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Ra(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=La(e))&&(r&&(r+=` `),r+=t);return r}var za={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 Ba(e,t,n=`Mui`){let r=za[t];return r?`${n}-${r}`:`${Ia.generate(e)}-${t}`}function Va(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=Ba(e,t,n)}),r}function Ha(e){let{variants:t,...n}=e,r={variants:t,style:si(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=si(e.style))}),r}var Ua=Oa();function Wa(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function Ga(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Ka(e){return e?(t,n)=>n[e]:null}function qa(e,t,n){e.theme=Za(e.theme)?n:e.theme[t]||e.theme}function Ja(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Ja(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Ga(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?Ga(si(i),n):i}return Ya(e,r.variants,[t],n)}return r?.isProcessed?n?Ga(si(r.style),n):r.style:n?Ga(si(r),n):r}function Ya(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Ga(si(o.style(i)),r):o.style(i))):n.push(r?Ga(si(o.style),r):o.style)}return n}function Xa(e={}){let{themeId:t,defaultTheme:n=Ua,rootShouldForwardProp:r=Wa,slotShouldForwardProp:i=Wa}=e;function a(e){qa(e,t,n)}return(e,t={})=>{ai(e,e=>e.filter(e=>e!==Ea));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=Ka($a(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=Wa;o===`Root`||o===`root`?m=r:o?m=i:Qa(e)&&(m=void 0);let h=ii(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return Ja(t,e,t.theme.modularCssLayers?d:void 0)};if(ui(e)){let t=Ha(e);return function(e){return t.variants?Ja(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Ga(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=Ja(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?Ya(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(Ea),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function Za(e){for(let t in e)return!1;return!0}function Qa(e){return typeof e==`string`&&e.charCodeAt(0)>96}function $a(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function eo(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=eo(i[t],o[t],n)}}}else a===`className`&&n&&t.className?r.className=Ra(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}var to=typeof window<`u`?N.useLayoutEffect:N.useEffect;function no(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function ro(e,t=0,n=1){return no(e,t,n)}function io(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function ao(e){if(e.type)return e;if(e.charAt(0)===`#`)return ao(io(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(Bt(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(Bt(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var oo=e=>{let t=ao(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},so=(e,t)=>{try{return oo(e)}catch{return e}};function co(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function lo(e){e=ao(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),co({type:s,values:c})}function uo(e){e=ao(e);let t=e.type===`hsl`||e.type===`hsla`?ao(lo(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function fo(e,t){let n=uo(e),r=uo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function po(e,t){return e=ao(e),t=ro(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,co(e)}function mo(e,t,n){try{return po(e,t)}catch{return e}}function ho(e,t){if(e=ao(e),t=ro(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return co(e)}function go(e,t,n){try{return ho(e,t)}catch{return e}}function _o(e,t){if(e=ao(e),t=ro(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return co(e)}function vo(e,t,n){try{return _o(e,t)}catch{return e}}function yo(e,t=.15){return uo(e)>.5?ho(e,t):_o(e,t)}function bo(e,t,n){try{return yo(e,t)}catch{return e}}var xo=N.createContext(null);function So(){return N.useContext(xo)}var Co=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function wo(e,t){return typeof t==`function`?t(e):{...e,...t}}function To(e){let{children:t,theme:n}=e,r=So(),i=N.useMemo(()=>{let e=r===null?{...n}:wo(r,n);return e!=null&&(e[Co]=r!==null),e},[n,r]);return(0,P.jsx)(xo.Provider,{value:i,children:t})}var Eo=N.createContext();function Do({value:e,...t}){return(0,P.jsx)(Eo.Provider,{value:e??!0,...t})}var Oo=()=>N.useContext(Eo)??!1,ko=N.createContext(void 0);function Ao({value:e,children:t}){return(0,P.jsx)(ko.Provider,{value:e,children:t})}function jo(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?eo(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?eo(i,r,t.components.mergeClassNameAndStyle):r}function Mo({props:e,name:t}){return jo({props:e,name:t,theme:{components:N.useContext(ko)}})}var No=0;function Po(e){let[t,n]=N.useState(e),r=e||t;return N.useEffect(()=>{t??(No+=1,n(`mui-${No}`))},[t]),r}var Fo={...N}.useId;function Io(e){if(Fo!==void 0){let t=Fo();return e??t}return Po(e)}function Lo(e){let t=Aa(),n=Io()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,to(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,P.jsx)(Pa,{styles:i}):null}var Ro={};function zo(e,t,n,r=!1){return N.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Bo(e){let{children:t,theme:n,themeId:r}=e,i=Aa(Ro),a=So()||Ro,o=zo(r,i,n),s=zo(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=Lo(o);return(0,P.jsx)(To,{theme:s,children:(0,P.jsx)(Ar.Provider,{value:o,children:(0,P.jsx)(Do,{value:c,children:(0,P.jsxs)(Ao,{value:r?o[r].components:o.components,children:[l,t]})})})})}var Vo={theme:void 0};function Ho(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Vo.theme=r.theme,i=Ha(e(Vo)),t=i,n=r.theme),i}}var Uo=`mode`,Wo=`color-scheme`,Go=`data-color-scheme`;function Ko(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=Uo,colorSchemeStorageKey:a=Wo,attribute:o=Go,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
8
+ `+e.stack}return{value:e,source:t,stack:i,digest:null}}function zs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Vs=typeof WeakMap==`function`?WeakMap:Map;function Hs(e,t,n){n=mo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){gl||(gl=!0,_l=r),Bs(e,t)},n}function Us(e,t,n){n=mo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Bs(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Bs(e,t),typeof r!=`function`&&(vl===null?vl=new Set([this]):vl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Ws(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vs;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=$l.bind(null,e,t,n),t.then(e,e))}function Gs(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Ks(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=mo(-1,1),t.tag=2,ho(n,t,1))),n.lanes|=1),e)}var qs=C.ReactCurrentOwner,Js=!1;function Ys(e,t,n,r){t.child=e===null?Xa(t,null,n,r):Ya(t,e.child,n,r)}function Xs(e,t,n,r,i){n=n.render;var a=t.ref;return io(t,i),r=Go(e,t,n,r,a,i),n=Ko(),e!==null&&!Js?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,hc(e,t,i)):(Na&&n&&ka(t),t.flags|=1,Ys(e,t,r,i),t.child)}function Zs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!su(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Qs(e,t,a,r,i)):(e=uu(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Lr:n,n(o,r)&&e.ref===t.ref)return hc(e,t,i)}return t.flags|=1,e=lu(a,r),e.ref=t.ref,e.return=t,t.child=e}function Qs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Lr(a,r)&&e.ref===t.ref)if(Js=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Js=!0);else return t.lanes=e.lanes,hc(e,t,i)}return tc(e,t,n,r,i)}function $s(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ea(al,il),il|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ea(al,il),il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,ea(al,il),il|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),ea(al,il),il|=r;return Ys(e,t,i,n),t.child}function ec(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function tc(e,t,n,r,i){var a=oa(n)?ia:na.current;return a=aa(t,a),io(t,i),n=Go(e,t,n,r,a,i),r=Ko(),e!==null&&!Js?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,hc(e,t,i)):(Na&&r&&ka(t),t.flags|=1,Ys(e,t,n,i),t.child)}function nc(e,t,n,r,i){if(oa(n)){var a=!0;ua(t)}else a=!1;if(io(t,i),t.stateNode===null)mc(e,t),Fs(t,n,r),Ls(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=ao(l):(l=oa(n)?ia:na.current,l=aa(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Is(t,o,r,l),uo=!1;var f=t.memoizedState;o.state=f,vo(t,r,o,i),c=t.memoizedState,s!==r||f!==c||ra.current||uo?(typeof u==`function`&&(Ms(t,n,u,r),c=t.memoizedState),(s=uo||Ps(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,po(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:js(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=ao(c):(c=oa(n)?ia:na.current,c=aa(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Is(t,o,r,c),uo=!1,f=t.memoizedState,o.state=f,vo(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||ra.current||uo?(typeof p==`function`&&(Ms(t,n,p,r),m=t.memoizedState),(l=uo||Ps(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return rc(e,t,n,r,a,i)}function rc(e,t,n,r,i,a){ec(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&da(t,n,!1),hc(e,t,a);r=t.stateNode,qs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,s,a)):Ys(e,t,s,a),t.memoizedState=r.state,i&&da(t,n,!0),t.child}function ic(e){var t=e.stateNode;t.pendingContext?ca(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ca(e,t.context,!1),To(e,t.containerInfo)}function ac(e,t,n,r,i){return Ha(),Ua(i),t.flags|=256,Ys(e,t,n,r),t.child}var oc={dehydrated:null,treeContext:null,retryLane:0};function sc(e){return{baseLanes:e,cachePool:null,transitions:null}}function cc(e,t,n){var r=t.pendingProps,i=ko.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ea(ko,i&1),e===null)return Ra(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):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=fu(o,r,0,null),e=du(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=sc(n),t.memoizedState=oc,e):lc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return uc(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=lu(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=du(a,o,n,null),a.flags|=2):a=lu(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?sc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=oc,r}return a=e.child,e=a.sibling,r=lu(a,{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 lc(e,t){return t=fu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function I(e,t,n,r){return r!==null&&Ua(r),Ya(t,e.child,null,n),e=lc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uc(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=zs(Error(r(422))),I(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=fu({mode:`visible`,children:i.children},a,0,null),o=du(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ya(t,e.child,null,s),t.child.memoizedState=sc(s),t.memoizedState=oc,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return I(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=zs(o,i,void 0),I(e,t,s,i)}if(c=(s&e.childLanes)!==0,Js||c){if(i=tl,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,lo(e,a),Ol(i,e,a,-1))}return Hl(),i=zs(Error(r(421))),I(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=tu.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Ma=Li(a.nextSibling),ja=t,Na=!0,Pa=null,e!==null&&(Sa[Ca++]=Ta,Sa[Ca++]=Ea,Sa[Ca++]=wa,Ta=e.id,Ea=e.overflow,wa=t),t=lc(t,i.children),t.flags|=4096,t)}function dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ro(e.return,t,n)}function fc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function pc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Ys(e,t,r.children,n),r=ko.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dc(e,n,t);else if(e.tag===19)dc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ea(ko,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ao(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),fc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ao(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}fc(t,!0,n,null,a);break;case`together`:fc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function hc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cl|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=lu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gc(e,t,n){switch(t.tag){case 3:ic(t),Ha();break;case 5:Do(t);break;case 1:oa(t.type)&&ua(t);break;case 4:To(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ea(Za,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ea(ko,ko.current&1),e=hc(e,t,n),e===null?null:e.sibling):cc(e,t,n):(ea(ko,ko.current&1),t.flags|=128,null);ea(ko,ko.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return pc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ea(ko,ko.current),r)break;return null;case 22:case 23:return t.lanes=0,$s(e,t,n)}return hc(e,t,n)}var _c=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}},vc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,wo(xo.current);var o=null;switch(n){case`input`:i=ye(e,i),r=ye(e,r),o=[];break;case`select`:i=se({},i,{value:void 0}),r=se({},r,{value:void 0}),o=[];break;case`textarea`:i=De(e,i),r=De(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Di)}Ve(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&pi(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},yc=function(e,t,n,r){n!==r&&(t.flags|=4)};function bc(e,t){if(!Na)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 xc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Sc(e,t,n){var i=t.pendingProps;switch(Aa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xc(t),null;case 1:return oa(t.type)&&sa(),xc(t),null;case 3:return i=t.stateNode,Eo(),$i(ra),$i(na),Mo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ba(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Pa!==null&&(Ml(Pa),Pa=null))),xc(t),null;case 5:Oo(t);var o=wo(Co.current);if(n=t.type,e!==null&&t.stateNode!=null)vc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return xc(t),null}if(e=wo(xo.current),Ba(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Bi]=t,i[Vi]=s,e=(t.mode&1)!=0,n){case`dialog`:pi(`cancel`,i),pi(`close`,i);break;case`iframe`:case`object`:case`embed`:pi(`load`,i);break;case`video`:case`audio`:for(o=0;o<li.length;o++)pi(li[o],i);break;case`source`:pi(`error`,i);break;case`img`:case`image`:case`link`:pi(`error`,i),pi(`load`,i);break;case`details`:pi(`toggle`,i);break;case`input`:be(i,s),pi(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},pi(`invalid`,i);break;case`textarea`:Oe(i,s),pi(`invalid`,i)}for(var c in Ve(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&Ei(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&Ei(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&pi(`scroll`,i)}switch(n){case`input`:_e(i),Ce(i,s,!0);break;case`textarea`:_e(i),Ae(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Di)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=je(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Bi]=t,e[Vi]=i,_c(e,t,!1,!1),t.stateNode=e;a:{switch(c=He(n,i),n){case`dialog`:pi(`cancel`,e),pi(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:pi(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<li.length;o++)pi(li[o],e);o=i;break;case`source`:pi(`error`,e),o=i;break;case`img`:case`image`:case`link`:pi(`error`,e),pi(`load`,e),o=i;break;case`details`:pi(`toggle`,e),o=i;break;case`input`:be(e,i),o=ye(e,i),pi(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=se({},i,{value:void 0}),pi(`invalid`,e);break;case`textarea`:Oe(e,i),o=De(e,i),pi(`invalid`,e);break;default:o=i}for(s in Ve(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?ze(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Pe(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Fe(e,u):typeof u==`number`&&Fe(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&pi(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:_e(e),Ce(e,i,!1);break;case`textarea`:_e(e),Ae(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+me(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Ee(e,!!i.multiple,i.defaultValue,!0):Ee(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Di)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xc(t),null;case 6:if(e&&t.stateNode!=null)yc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=wo(Co.current),wo(xo.current),Ba(t)){if(i=t.stateNode,n=t.memoizedProps,i[Bi]=t,(s=i.nodeValue!==n)&&(e=ja,e!==null))switch(e.tag){case 3:Ei(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ei(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Bi]=t,t.stateNode=i}return xc(t),null;case 13:if($i(ko),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Na&&Ma!==null&&t.mode&1&&!(t.flags&128))Va(),Ha(),t.flags|=98560,s=!1;else if(s=Ba(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Bi]=t}else Ha(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xc(t),s=!1}else Pa!==null&&(Ml(Pa),Pa=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||ko.current&1?ol===0&&(ol=3):Hl())),t.updateQueue!==null&&(t.flags|=4),xc(t),null);case 4:return Eo(),e===null&&gi(t.stateNode.containerInfo),xc(t),null;case 10:return no(t.type._context),xc(t),null;case 17:return oa(t.type)&&sa(),xc(t),null;case 19:if($i(ko),s=t.memoizedState,s===null)return xc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)bc(s,!1);else{if(ol!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Ao(e),c!==null){for(t.flags|=128,bc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ea(ko,ko.current&1|2),t.child}e=e.sibling}s.tail!==null&&St()>ml&&(t.flags|=128,i=!0,bc(s,!1),t.lanes=4194304)}else{if(!i)if(e=Ao(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Na)return xc(t),null}else 2*St()-s.renderingStartTime>ml&&n!==1073741824&&(t.flags|=128,i=!0,bc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(xc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=St(),t.sibling=null,n=ko.current,ea(ko,i?n&1|2:n&1),t);case 22:case 23:return Rl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?il&1073741824&&(xc(t),t.subtreeFlags&6&&(t.flags|=8192)):xc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function L(e,t){switch(Aa(t),t.tag){case 1:return oa(t.type)&&sa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Eo(),$i(ra),$i(na),Mo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Oo(t),null;case 13:if($i(ko),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $i(ko),null;case 4:return Eo(),null;case 10:return no(t.type._context),null;case 22:case 23:return Rl(),null;case 24:return null;default:return null}}var Cc=!1,wc=!1,Tc=typeof WeakSet==`function`?WeakSet:Set,R=null;function Ec(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Ql(e,t,n)}else n.current=null}function Dc(e,t,n){try{n()}catch(n){Ql(e,t,n)}}var Oc=!1;function kc(e,t){if(Oi=xn,e=Vr(),Hr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(ki={focusedElem:e,selectionRange:n},xn=!1,R=t;R!==null;)if(t=R,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:js(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Ql(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return h=Oc,Oc=!1,h}function Ac(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Dc(t,n,a)}i=i.next}while(i!==r)}}function jc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,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 Mc(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 Nc(e){var t=e.alternate;t!==null&&(e.alternate=null,Nc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bi],delete t[Vi],delete t[Ui],delete t[Wi],delete t[Gi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pc(e){return e.tag===5||e.tag===3||e.tag===4}function Fc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Pc(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 a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ic(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=Di));else if(r!==4&&(e=e.child,e!==null))for(Ic(e,t,n),e=e.sibling;e!==null;)Ic(e,t,n),e=e.sibling}function Lc(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(Lc(e,t,n),e=e.sibling;e!==null;)Lc(e,t,n),e=e.sibling}var Rc=null,z=!1;function zc(e,t,n){for(n=n.child;n!==null;)Bc(e,t,n),n=n.sibling}function Bc(e,t,n){if(At&&typeof At.onCommitFiberUnmount==`function`)try{At.onCommitFiberUnmount(kt,n)}catch{}switch(n.tag){case 5:wc||Ec(n,t);case 6:var r=Rc,i=z;Rc=null,zc(e,t,n),Rc=r,z=i,Rc!==null&&(z?(e=Rc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rc.removeChild(n.stateNode));break;case 18:Rc!==null&&(z?(e=Rc,n=n.stateNode,e.nodeType===8?Ii(e.parentNode,n):e.nodeType===1&&Ii(e,n),yn(e)):Ii(Rc,n.stateNode));break;case 4:r=Rc,i=z,Rc=n.stateNode.containerInfo,z=!0,zc(e,t,n),Rc=r,z=i;break;case 0:case 11:case 14:case 15:if(!wc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Dc(n,t,o),i=i.next}while(i!==r)}zc(e,t,n);break;case 1:if(!wc&&(Ec(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Ql(n,t,e)}zc(e,t,n);break;case 21:zc(e,t,n);break;case 22:n.mode&1?(wc=(r=wc)||n.memoizedState!==null,zc(e,t,n),wc=r):zc(e,t,n);break;default:zc(e,t,n)}}function Vc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tc),t.forEach(function(t){var r=nu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Hc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Rc=c.stateNode,z=!1;break a;case 3:Rc=c.stateNode.containerInfo,z=!0;break a;case 4:Rc=c.stateNode.containerInfo,z=!0;break a}c=c.return}if(Rc===null)throw Error(r(160));Bc(o,s,a),Rc=null,z=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Ql(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Uc(t,e),t=t.sibling}function Uc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Hc(t,e),Wc(e),i&4){try{Ac(3,e,e.return),jc(3,e)}catch(t){Ql(e,e.return,t)}try{Ac(5,e,e.return)}catch(t){Ql(e,e.return,t)}}break;case 1:Hc(t,e),Wc(e),i&512&&n!==null&&Ec(n,n.return);break;case 5:if(Hc(t,e),Wc(e),i&512&&n!==null&&Ec(n,n.return),e.flags&32){var a=e.stateNode;try{Fe(a,``)}catch(t){Ql(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&xe(a,o),He(c,s);var u=He(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?ze(a,f):d===`dangerouslySetInnerHTML`?Pe(a,f):d===`children`?Fe(a,f):S(a,d,f,u)}switch(c){case`input`:Se(a,o);break;case`textarea`:ke(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Ee(a,!!o.multiple,o.multiple?[]:``,!1):Ee(a,!!o.multiple,o.defaultValue,!0)):Ee(a,!!o.multiple,m,!1)}a[Vi]=o}catch(t){Ql(e,e.return,t)}}break;case 6:if(Hc(t,e),Wc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Ql(e,e.return,t)}}break;case 3:if(Hc(t,e),Wc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{yn(t.containerInfo)}catch(t){Ql(e,e.return,t)}break;case 4:Hc(t,e),Wc(e);break;case 13:Hc(t,e),Wc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(pl=St())),i&4&&Vc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(wc=(u=wc)||d,Hc(t,e),wc=u):Hc(t,e),Wc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(R=e,d=e.child;d!==null;){for(f=R=d;R!==null;){switch(p=R,m=p.child,p.tag){case 0:case 11:case 14:case 15:Ac(4,p,p.return);break;case 1:Ec(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Ql(i,n,e)}}break;case 5:Ec(p,p.return);break;case 22:if(p.memoizedState!==null){Jc(f);continue}}m===null?Jc(f):(m.return=p,R=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Re(`display`,s))}catch(t){Ql(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Ql(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Hc(t,e),Wc(e),i&4&&Vc(e);break;case 21:break;default:Hc(t,e),Wc(e)}}function Wc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Pc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Fe(a,``),i.flags&=-33),Lc(e,Fc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Ic(e,Fc(e),o);break;default:throw Error(r(161))}}catch(t){Ql(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gc(e,t,n){R=e,Kc(e,t,n)}function Kc(e,t,n){for(var r=(e.mode&1)!=0;R!==null;){var i=R,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Cc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||wc;s=Cc;var l=wc;if(Cc=o,(wc=c)&&!l)for(R=i;R!==null;)o=R,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Yc(i):(c.return=o,R=c);for(;a!==null;)R=a,Kc(a,t,n),a=a.sibling;R=i,Cc=s,wc=l}qc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,R=a):qc(e,t,n)}}function qc(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:wc||jc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!wc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:js(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&yo(t,o,i);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}yo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;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 u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&yn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}wc||t.flags&512&&Mc(t)}catch(e){Ql(t,t.return,e)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function Jc(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function Yc(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{jc(4,t)}catch(e){Ql(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Ql(t,i,e)}}var a=t.return;try{Mc(t)}catch(e){Ql(t,a,e)}break;case 5:var o=t.return;try{Mc(t)}catch(e){Ql(t,o,e)}}}catch(e){Ql(t,t.return,e)}if(t===e){R=null;break}var s=t.sibling;if(s!==null){s.return=t.return,R=s;break}R=t.return}}var Xc=Math.ceil,Zc=C.ReactCurrentDispatcher,Qc=C.ReactCurrentOwner,$c=C.ReactCurrentBatchConfig,el=0,tl=null,nl=null,rl=0,il=0,al=Qi(0),ol=0,sl=null,cl=0,ll=0,ul=0,dl=null,fl=null,pl=0,ml=1/0,hl=null,gl=!1,_l=null,vl=null,yl=!1,bl=null,xl=0,Sl=0,Cl=null,wl=-1,Tl=0;function El(){return el&6?St():wl===-1?wl=St():wl}function Dl(e){return e.mode&1?el&2&&rl!==0?rl&-rl:Wa.transition===null?(e=Jt,e===0?(e=window.event,e=e===void 0?16:Dn(e.type),e):e):(Tl===0&&(Tl=Ut()),Tl):1}function Ol(e,t,n,i){if(50<Sl)throw Sl=0,Cl=null,Error(r(185));Gt(e,n,i),(!(el&2)||e!==tl)&&(e===tl&&(!(el&2)&&(ll|=n),ol===4&&Pl(e,rl)),kl(e,i),n===1&&el===0&&!(t.mode&1)&&(ml=St()+500,pa&&_a()))}function kl(e,t){var n=e.callbackNode;Vt(e,t);var r=zt(e,e===tl?rl:0);if(r===0)n!==null&&yt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yt(n),t===1)e.tag===0?ga(Fl.bind(null,e)):ha(Fl.bind(null,e)),Pi(function(){!(el&6)&&_a()}),n=null;else{switch(Yt(r)){case 1:n=wt;break;case 4:n=Tt;break;case 16:n=Et;break;case 536870912:n=Ot;break;default:n=Et}n=iu(n,Al.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Al(e,t){if(wl=-1,Tl=0,el&6)throw Error(r(327));var n=e.callbackNode;if(Xl()&&e.callbackNode!==n)return null;var i=zt(e,e===tl?rl:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Ul(e,i);else{t=i;var a=el;el|=2;var o=Vl();(tl!==e||rl!==t)&&(hl=null,ml=St()+500,zl(e,t));do try{Gl();break}catch(t){Bl(e,t)}while(1);to(),Zc.current=o,el=a,nl===null?(tl=null,rl=0,t=ol):t=0}if(t!==0){if(t===2&&(a=Ht(e),a!==0&&(i=a,t=jl(e,a))),t===1)throw n=sl,zl(e,0),Pl(e,i),kl(e,St()),n;if(t===6)Pl(e,i);else{if(a=e.current.alternate,!(i&30)&&!Nl(a)&&(t=Ul(e,i),t===2&&(o=Ht(e),o!==0&&(i=o,t=jl(e,o))),t===1))throw n=sl,zl(e,0),Pl(e,i),kl(e,St()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Jl(e,fl,hl);break;case 3:if(Pl(e,i),(i&130023424)===i&&(t=pl+500-St(),10<t)){if(zt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){El(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ji(Jl.bind(null,e,fl,hl),t);break}Jl(e,fl,hl);break;case 4:if(Pl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Mt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=St()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Xc(i/1960))-i,10<i){e.timeoutHandle=ji(Jl.bind(null,e,fl,hl),i);break}Jl(e,fl,hl);break;case 5:Jl(e,fl,hl);break;default:throw Error(r(329))}}}return kl(e,St()),e.callbackNode===n?Al.bind(null,e):null}function jl(e,t){var n=dl;return e.current.memoizedState.isDehydrated&&(zl(e,t).flags|=256),e=Ul(e,t),e!==2&&(t=fl,fl=n,t!==null&&Ml(t)),e}function Ml(e){fl===null?fl=e:fl.push.apply(fl,e)}function Nl(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 i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ir(a(),i))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 Pl(e,t){for(t&=~ul,t&=~ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mt(t),r=1<<n;e[n]=-1,t&=~r}}function Fl(e){if(el&6)throw Error(r(327));Xl();var t=zt(e,0);if(!(t&1))return kl(e,St()),null;var n=Ul(e,t);if(e.tag!==0&&n===2){var i=Ht(e);i!==0&&(t=i,n=jl(e,i))}if(n===1)throw n=sl,zl(e,0),Pl(e,t),kl(e,St()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Jl(e,fl,hl),kl(e,St()),null}function Il(e,t){var n=el;el|=1;try{return e(t)}finally{el=n,el===0&&(ml=St()+500,pa&&_a())}}function Ll(e){bl!==null&&bl.tag===0&&!(el&6)&&Xl();var t=el;el|=1;var n=$c.transition,r=Jt;try{if($c.transition=null,Jt=1,e)return e()}finally{Jt=r,$c.transition=n,el=t,!(el&6)&&_a()}}function Rl(){il=al.current,$i(al)}function zl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Mi(n)),nl!==null)for(n=nl.return;n!==null;){var r=n;switch(Aa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&sa();break;case 3:Eo(),$i(ra),$i(na),Mo();break;case 5:Oo(r);break;case 4:Eo();break;case 13:$i(ko);break;case 19:$i(ko);break;case 10:no(r.type._context);break;case 22:case 23:Rl()}n=n.return}if(tl=e,nl=e=lu(e.current,null),rl=il=t,ol=0,sl=null,ul=ll=cl=0,fl=dl=null,oo!==null){for(t=0;t<oo.length;t++)if(n=oo[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}oo=null}return e}function Bl(e,t){do{var n=nl;try{if(to(),No.current=Ds,zo){for(var i=Io.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}zo=!1}if(Fo=0,Ro=Lo=Io=null,Bo=!1,Vo=0,Qc.current=null,n===null||n.return===null){ol=1,sl=t,nl=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=rl,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Gs(s);if(m!==null){m.flags&=-257,Ks(m,s,c,o,t),m.mode&1&&Ws(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Ws(o,u,t),Hl();break a}l=Error(r(426))}}else if(Na&&c.mode&1){var _=Gs(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Ks(_,s,c,o,t),Ua(Rs(l,c));break a}}o=l=Rs(l,c),ol!==4&&(ol=2),dl===null?dl=[o]:dl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Hs(o,l,t);_o(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(vl===null||!vl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Us(o,c,t);_o(o,x);break a}}o=o.return}while(o!==null)}ql(n)}catch(e){t=e,nl===n&&n!==null&&(nl=n=n.return);continue}break}while(1)}function Vl(){var e=Zc.current;return Zc.current=Ds,e===null?Ds:e}function Hl(){(ol===0||ol===3||ol===2)&&(ol=4),tl===null||!(cl&268435455)&&!(ll&268435455)||Pl(tl,rl)}function Ul(e,t){var n=el;el|=2;var i=Vl();(tl!==e||rl!==t)&&(hl=null,zl(e,t));do try{Wl();break}catch(t){Bl(e,t)}while(1);if(to(),el=n,Zc.current=i,nl!==null)throw Error(r(261));return tl=null,rl=0,ol}function Wl(){for(;nl!==null;)Kl(nl)}function Gl(){for(;nl!==null&&!bt();)Kl(nl)}function Kl(e){var t=ru(e.alternate,e,il);e.memoizedProps=e.pendingProps,t===null?ql(e):nl=t,Qc.current=null}function ql(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=L(n,t),n!==null){n.flags&=32767,nl=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ol=6,nl=null;return}}else if(n=Sc(n,t,il),n!==null){nl=n;return}if(t=t.sibling,t!==null){nl=t;return}nl=t=e}while(t!==null);ol===0&&(ol=5)}function Jl(e,t,n){var r=Jt,i=$c.transition;try{$c.transition=null,Jt=1,Yl(e,t,n,r)}finally{$c.transition=i,Jt=r}return null}function Yl(e,t,n,i){do Xl();while(bl!==null);if(el&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Kt(e,o),e===tl&&(nl=tl=null,rl=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||yl||(yl=!0,iu(Et,function(){return Xl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=$c.transition,$c.transition=null;var s=Jt;Jt=1;var c=el;el|=4,Qc.current=null,kc(e,n),Uc(n,e),Ur(ki),xn=!!Oi,ki=Oi=null,e.current=n,Gc(n,e,a),xt(),el=c,Jt=s,$c.transition=o}else e.current=n;if(yl&&(yl=!1,bl=e,xl=a),o=e.pendingLanes,o===0&&(vl=null),jt(n.stateNode,i),kl(e,St()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(gl)throw gl=!1,e=_l,_l=null,e;return xl&1&&e.tag!==0&&Xl(),o=e.pendingLanes,o&1?e===Cl?Sl++:(Sl=0,Cl=e):Sl=0,_a(),null}function Xl(){if(bl!==null){var e=Yt(xl),t=$c.transition,n=Jt;try{if($c.transition=null,Jt=16>e?16:e,bl===null)var i=!1;else{if(e=bl,bl=null,xl=0,el&6)throw Error(r(331));var a=el;for(el|=4,R=e.current;R!==null;){var o=R,s=o.child;if(R.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(R=u;R!==null;){var d=R;switch(d.tag){case 0:case 11:case 15:Ac(8,d,o)}var f=d.child;if(f!==null)f.return=d,R=f;else for(;R!==null;){d=R;var p=d.sibling,m=d.return;if(Nc(d),d===u){R=null;break}if(p!==null){p.return=m,R=p;break}R=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}R=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,R=s;else b:for(;R!==null;){if(o=R,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ac(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,R=v;break b}R=o.return}}var y=e.current;for(R=y;R!==null;){s=R;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,R=b;else b:for(s=y;R!==null;){if(c=R,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:jc(9,c)}}catch(e){Ql(c,c.return,e)}if(c===s){R=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,R=x;break b}R=c.return}}if(el=a,_a(),At&&typeof At.onPostCommitFiberRoot==`function`)try{At.onPostCommitFiberRoot(kt,e)}catch{}i=!0}return i}finally{Jt=n,$c.transition=t}}return!1}function Zl(e,t,n){t=Rs(n,t),t=Hs(e,t,1),e=ho(e,t,1),t=El(),e!==null&&(Gt(e,1,t),kl(e,t))}function Ql(e,t,n){if(e.tag===3)Zl(e,e,n);else for(;t!==null;){if(t.tag===3){Zl(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vl===null||!vl.has(r))){e=Rs(n,e),e=Us(t,e,1),t=ho(t,e,1),e=El(),t!==null&&(Gt(t,1,e),kl(t,e));break}}t=t.return}}function $l(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=El(),e.pingedLanes|=e.suspendedLanes&n,tl===e&&(rl&n)===n&&(ol===4||ol===3&&(rl&130023424)===rl&&500>St()-pl?zl(e,0):ul|=n),kl(e,t)}function eu(e,t){t===0&&(e.mode&1?(t=Lt,Lt<<=1,!(Lt&130023424)&&(Lt=4194304)):t=1);var n=El();e=lo(e,t),e!==null&&(Gt(e,t,n),kl(e,n))}function tu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eu(e,n)}function nu(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),eu(e,n)}var ru=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ra.current)Js=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Js=!1,gc(e,t,n);Js=!!(e.flags&131072)}else Js=!1,Na&&t.flags&1048576&&Oa(t,xa,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;mc(e,t),e=t.pendingProps;var a=aa(t,na.current);io(t,n),a=Go(null,t,i,e,a,n);var o=Ko();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,oa(i)?(o=!0,ua(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,fo(t),a.updater=Ns,t.stateNode=a,a._reactInternals=t,Ls(t,i,e,n),t=rc(null,t,i,!0,o,n)):(t.tag=0,Na&&o&&ka(t),Ys(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(mc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=cu(i),e=js(i,e),a){case 0:t=tc(null,t,i,e,n);break a;case 1:t=nc(null,t,i,e,n);break a;case 11:t=Xs(null,t,i,e,n);break a;case 14:t=Zs(null,t,i,js(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:js(i,a),tc(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:js(i,a),nc(e,t,i,a,n);case 3:a:{if(ic(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,po(e,t),vo(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Rs(Error(r(423)),t),t=ac(e,t,i,n,a);break a}else if(i!==a){a=Rs(Error(r(424)),t),t=ac(e,t,i,n,a);break a}else for(Ma=Li(t.stateNode.containerInfo.firstChild),ja=t,Na=!0,Pa=null,n=Xa(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ha(),i===a){t=hc(e,t,n);break a}Ys(e,t,i,n)}t=t.child}return t;case 5:return Do(t),e===null&&Ra(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ai(i,a)?s=null:o!==null&&Ai(i,o)&&(t.flags|=32),ec(e,t),Ys(e,t,s,n),t.child;case 6:return e===null&&Ra(t),null;case 13:return cc(e,t,n);case 4:return To(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ya(t,null,i,n):Ys(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:js(i,a),Xs(e,t,i,a,n);case 7:return Ys(e,t,t.pendingProps,n),t.child;case 8:return Ys(e,t,t.pendingProps.children,n),t.child;case 12:return Ys(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,ea(Za,i._currentValue),i._currentValue=s,o!==null)if(Ir(o.value,s)){if(o.children===a.children&&!ra.current){t=hc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=mo(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ro(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),ro(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ys(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,io(t,n),a=ao(a),i=i(a),t.flags|=1,Ys(e,t,i,n),t.child;case 14:return i=t.type,a=js(i,t.pendingProps),a=js(i.type,a),Zs(e,t,i,a,n);case 15:return Qs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:js(i,a),mc(e,t),t.tag=1,oa(i)?(e=!0,ua(t)):e=!1,io(t,n),Fs(t,i,a),Ls(t,i,a,n),rc(null,t,i,!0,e,n);case 19:return pc(e,t,n);case 22:return $s(e,t,n)}throw Error(r(156,t.tag))};function iu(e,t){return vt(e,t)}function au(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ou(e,t,n,r){return new au(e,t,n,r)}function su(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cu(e){if(typeof e==`function`)return+!!su(e);if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===j)return 14}return 2}function lu(e,t){var n=e.alternate;return n===null?(n=ou(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 uu(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)su(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return du(n.children,a,o,t);case D:s=8,a|=8;break;case O:return e=ou(12,n,t,a|2),e.elementType=O,e.lanes=o,e;case A:return e=ou(13,n,t,a),e.elementType=A,e.lanes=o,e;case ne:return e=ou(19,n,t,a),e.elementType=ne,e.lanes=o,e;case ie:return fu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case ee:s=10;break a;case te:s=9;break a;case k:s=11;break a;case j:s=14;break a;case re:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=ou(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function du(e,t,n,r){return e=ou(7,e,r,t),e.lanes=n,e}function fu(e,t,n,r){return e=ou(22,e,r,t),e.elementType=ie,e.lanes=n,e.stateNode={isHidden:!1},e}function pu(e,t,n){return e=ou(6,e,null,t),e.lanes=n,e}function mu(e,t,n){return t=ou(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wt(0),this.expirationTimes=Wt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function gu(e,t,n,r,i,a,o,s,c){return e=new hu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=ou(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fo(a),e}function _u(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function vu(e){if(!e)return ta;e=e._reactInternals;a:{if(ft(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(oa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(oa(n))return la(e,n,t)}return t}function yu(e,t,n,r,i,a,o,s,c){return e=gu(n,r,!0,e,i,a,o,s,c),e.context=vu(null),n=e.current,r=El(),i=Dl(n),a=mo(r,i),a.callback=t??null,ho(n,a,i),e.current.lanes=i,Gt(e,i,r),kl(e,r),e}function bu(e,t,n,r){var i=t.current,a=El(),o=Dl(i);return n=vu(n),t.context===null?t.context=n:t.pendingContext=n,t=mo(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ho(i,t,o),e!==null&&(Ol(e,i,o,a),go(e,i,o)),o}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 Su(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Cu(e,t){Su(e,t),(e=e.alternate)&&Su(e,t)}function wu(){return null}var Tu=typeof reportError==`function`?reportError:function(e){console.error(e)};function Eu(e){this._internalRoot=e}Du.prototype.render=Eu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));bu(e,t,null,null)},Du.prototype.unmount=Eu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ll(function(){bu(null,e,null,null)}),t[Hi]=null}};function Du(e){this._internalRoot=e}Du.prototype.unstable_scheduleHydration=function(e){if(e){var t=$t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ln.length&&t!==0&&t<ln[n].priority;n++);ln.splice(n,0,e),n===0&&mn(e)}};function Ou(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ku(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Au(){}function ju(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=xu(o);a.call(e)}}var o=yu(t,r,e,0,null,!1,!1,``,Au);return e._reactRootContainer=o,e[Hi]=o.current,gi(e.nodeType===8?e.parentNode:e),Ll(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=xu(c);s.call(e)}}var c=gu(e,0,!1,null,null,!1,!1,``,Au);return e._reactRootContainer=c,e[Hi]=c.current,gi(e.nodeType===8?e.parentNode:e),Ll(function(){bu(t,c,n,r)}),c}function Mu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=xu(o);s.call(e)}}bu(t,o,e,i)}else o=ju(n,t,e,i,r);return xu(o)}Xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Rt(t.pendingLanes);n!==0&&(qt(t,n|1),kl(t,St()),!(el&6)&&(ml=St()+500,_a()))}break;case 13:Ll(function(){var t=lo(e,1);t!==null&&Ol(t,e,1,El())}),Cu(e,1)}},Zt=function(e){if(e.tag===13){var t=lo(e,134217728);t!==null&&Ol(t,e,134217728,El()),Cu(e,134217728)}},Qt=function(e){if(e.tag===13){var t=Dl(e),n=lo(e,t);n!==null&&Ol(n,e,t,El()),Cu(e,t)}},$t=function(){return Jt},en=function(e,t){var n=Jt;try{return Jt=e,t()}finally{Jt=n}},Ge=function(e,t,n){switch(t){case`input`:if(Se(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 i=n[t];if(i!==e&&i.form===e.form){var a=Yi(i);if(!a)throw Error(r(90));ve(i),Se(i,a)}}}break;case`textarea`:ke(e,n);break;case`select`:t=n.value,t!=null&&Ee(e,!!n.multiple,t,!1)}},Ze=Il,Qe=Ll;var Nu={usingClientEntryPoint:!1,Events:[qi,Ji,Yi,Ye,Xe,Il]},Pu={findFiberByHostInstance:Ki,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},Fu={bundleType:Pu.bundleType,version:Pu.version,rendererPackageName:Pu.rendererPackageName,rendererConfig:Pu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gt(e),e===null?null:e.stateNode},findFiberByHostInstance:Pu.findFiberByHostInstance||wu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Iu.isDisabled&&Iu.supportsFiber)try{kt=Iu.inject(Fu),At=Iu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Nu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ou(t))throw Error(r(200));return _u(e,t,null,n)},e.createRoot=function(e,t){if(!Ou(e))throw Error(r(299));var n=!1,i=``,a=Tu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=gu(e,1,!1,null,null,n,!1,i,a),e[Hi]=t.current,gi(e.nodeType===8?e.parentNode:e),new Eu(t)},e.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(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=gt(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Ll(e)},e.hydrate=function(e,t,n){if(!ku(t))throw Error(r(200));return Mu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!Ou(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=Tu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=yu(t,null,e,1,n??null,a,!1,o,s),e[Hi]=t.current,gi(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Du(t)},e.render=function(e,t,n){if(!ku(t))throw Error(r(200));return Mu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!ku(e))throw Error(r(40));return e._reactRootContainer?(Ll(function(){Mu(null,null,e,!1,function(){e._reactRootContainer=null,e[Hi]=null})}),!0):!1},e.unstable_batchedUpdates=Il,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!ku(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Mu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=h();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),_=`commitPendingSession`,v=new WeakMap;function y(e,t){let n=v.get(e);n||(n=new Set,v.set(e,n)),n.add(t)}function b(e){return Object.getOwnPropertyDescriptor(e,_)!==void 0}function x(e){if(b(e))return;let t=e[_];Object.defineProperty(e,_,{value:()=>{if(typeof t==`function`)try{t.call(e)}catch{}C(e)},configurable:!0,enumerable:!1,writable:!0})}function S(e,t,n={}){let r=n.delayMs,i=typeof r==`function`?r:()=>r??0,a=n.maxWaitMs,o=null,s=null,c=!1,l=()=>{o!==null&&(clearTimeout(o),o=null),s!==null&&(clearTimeout(s),s=null)},u=()=>{l(),c&&(c=!1,t())},d={notify(){c=!0,o!==null&&clearTimeout(o),o=setTimeout(u,Math.max(0,i())),a!==void 0&&s===null&&(s=setTimeout(u,Math.max(0,a)))},flush(){if(!c){l();return}try{u()}catch(e){console.warn(`[session-notifier] a committed session-changed dispatch threw`,e)}}};return y(e,d),x(e),d}function C(e){let t=v.get(e);if(t)for(let e of[...t])e.flush()}var w=class e extends CustomEvent{static{this.TYPE=`model-set`}constructor(t,n,r){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t,hasModel:r}}),this.component=t,this.complete=n}},T=class e extends CustomEvent{static{this.TYPE=`session-changed`}constructor(t,n){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t}}),this.component=t,this.complete=n}},E=function(){return null};E.isRequired=E;var D=()=>E,O={array:E,bigint:E,bool:E,func:E,number:E,object:E,string:E,symbol:E,any:E,element:E,elementType:E,node:E,arrayOf:D,instanceOf:D,objectOf:D,oneOf:D,oneOfType:D,shape:D,exact:D,checkPropTypes:()=>{},resetWarningCache:()=>{}};O.PropTypes=O;var ee=1,te=2,k=4294967295,A=500,ne=9007199254740991,j=`[object Arguments]`,re=`[object Array]`,ie=`[object ArrayBuffer]`,ae=`[object AsyncFunction]`,oe=`[object Boolean]`,se=`[object DataView]`,M=`[object Date]`,ce=`[object Error]`,le=`[object Function]`,ue=`[object GeneratorFunction]`,de=`[object Map]`,fe=`[object Number]`,pe=`[object Object]`,me=`[object Proxy]`,he=`[object RegExp]`,ge=`[object Set]`,_e=`[object String]`,ve=`[object Symbol]`,N=new Set([`Float32`,`Float64`,`Int8`,`Int16`,`Int32`,`Uint8`,`Uint8Clamped`,`Uint16`,`Uint32`].map(e=>`[object ${e}Array]`));[...N];var ye=/\\(\\)?/g,be=/^[-+]0x[0-9a-f]+$/i,xe=/^0b[01]+$/i,Se=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^0o[0-7]+$/i,we=/^\w*$/,Te=/^(?:0|[1-9]\d*)$/,Ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,De=/^\s+/,Oe=/\s/,ke=Object.prototype,Ae=ke.hasOwnProperty,je=ke.toString,Me=ke.propertyIsEnumerable;Function.prototype.toString.call(Object);var Ne=Symbol.prototype.toString,Pe=Symbol.prototype.valueOf;function Fe(e){return typeof e==`object`&&!!e}function Ie(e,t){return e===t||e!==e&&t!==t}function Le(e){let t=Ae.call(e,Symbol.toStringTag),n=e[Symbol.toStringTag],r=!1;try{e[Symbol.toStringTag]=void 0,r=!0}catch{}let i=je.call(e);return r&&(t?e[Symbol.toStringTag]=n:delete e[Symbol.toStringTag]),i}function Re(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Symbol.toStringTag in Object(e)?Le(e):je.call(e)}function ze(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=ne}function Be(e,t){let n=typeof e,r=t??ne;return!!r&&(n==`number`||n!=`symbol`&&Te.test(e))&&e>-1&&e%1==0&&e<r}function Ve(e){return e!=null&&ze(e.length)&&!Ft(e)}function He(e){return Fe(e)&&Ve(e)}function Ue(e){return Fe(e)&&Re(e)==j}function We(e){return Fe(e)&&ze(e.length)&&N.has(Re(e))}function Ge(e){return typeof e==`symbol`||Fe(e)&&Re(e)==ve}function Ke(e){let t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ke)}function qe(e){let t=e.length;for(;t--&&Oe.test(e.charAt(t)););return t}function Je(e){return e&&e.slice(0,qe(e)+1).replace(De,``)}function Ye(e){if(typeof e==`number`)return e;if(Ge(e))return NaN;if(It(e)){let t=typeof e.valueOf==`function`?e.valueOf():e;e=It(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;let t=Je(e),n=xe.test(t);return n||Ce.test(t)?parseInt(t.slice(2),n?2:8):be.test(t)?NaN:+t}function Xe(e){if(!e)return e===0?e:0;let t=Ye(e);return t===1/0||t===-1/0?t<0?-Number.MAX_VALUE:Number.MAX_VALUE:t===t?t:0}function Ze(e){let t=Xe(e),n=t%1;return n?t-n:t}function Qe(e){if(typeof e==`string`)return e;if(Array.isArray(e))return it(e,Qe)+``;if(Ge(e))return Ne.call(e);let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function $e(e){return e==null?``:Qe(e)}function et(e){if(typeof e==`string`||Ge(e))return e;let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function tt(e){return e}function nt(e){return typeof e==`function`?e:tt}function rt(e,t){let n=-1,r=e==null?0:e.length,i=[];for(;++n<r;){let r=e[n];t(r,n,e)&&i.push(r)}return i}function it(e,t){let n=-1,r=e==null?0:e.length,i=Array(r);for(;++n<r;)i[n]=t(e[n],n,e);return i}function at(e,t){let n=-1,{length:r}=t,i=e.length;for(;++n<r;)e[i+n]=t[n];return e}function ot(e,t){let n=-1,r=e==null?0:e.length;for(;++n<r;)if(t(e[n],n))return!0;return!1}function st(e,t){let n=-1,r=Array(e);for(;++n<e;)r[n]=t(n);return r}function ct(e){let t=-1,n=Array(e.size);return e.forEach(e=>{n[++t]=e}),n}function lt(e){let t=-1,n=Array(e.size);return e.forEach((e,r)=>{n[++t]=[r,e]}),n}function ut(e,t){let n=Array.isArray(e),r=!n&&Ue(e),i=!n&&!r&&We(e),a=n||r||i,o=a?st(e.length,String):[],{length:s}=o;for(let n in e)(t||Ae.call(e,n))&&!(a&&(n==`length`||i&&(n==`buffer`||n==`byteLength`||n==`byteOffset`)||Be(n,s)))&&o.push(n);return o}function dt(e){if(!Ke(e))return Object.keys(Object(e));let t=[];for(let n in Object(e))Ae.call(e,n)&&n!=`constructor`&&t.push(n);return t}function ft(e){return Ve(e)?ut(e,!1):dt(e)}function pt(e){if(e==null)return[];let t=Object(e);return Object.getOwnPropertySymbols(t).filter(e=>Me.call(t,e))}function mt(e){let t=ft(e);return Array.isArray(e)?t:at(t,pt(e))}function ht(e){return Array.isArray(e)||Ue(e)||!!(e&&e[Symbol.isConcatSpreadable])}function gt(e,t,n=ht,r=!1,i=[]){let a=-1,{length:o}=e;for(;++a<o;){let o=e[a];t>0&&n(o)?t>1?gt(o,t-1,n,r,i):at(i,o):r||(i[i.length]=o)}return i}function _t(e){let t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Ee,(e,n,r,i)=>(t.push(r?i.replace(ye,`$1`):n||e),e)),t}var vt=new Map;function yt(e){vt.size===A&&vt.clear();let t=vt.get(e);return t===void 0&&(t=_t(e),vt.set(e,t)),t}function bt(e,t){if(Array.isArray(e))return!1;let n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Ge(e)?!0:we.test(e)||!Se.test(e)||t!=null&&e in Object(t)}function xt(e,t){return Array.isArray(e)?e:bt(e,t)?[e]:yt($e(e))}function St(e,t){let n=xt(t,e),r=0,{length:i}=n,a=e;for(;a!=null&&r<i;)a=a[et(n[r++])];return r&&r==i?a:void 0}function Ct(e){return t=>t?.[e]}function wt(e,t){return e.byteLength==t.byteLength&&kt(new Uint8Array(e),new Uint8Array(t))}function Tt(e,t,n,r,i){let a=n&ee,o=e.length,s=t.length;if(o!=s&&!(a&&s>o))return!1;let c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;let u=-1,d=!0,f=n&te?new Set:void 0;for(i.set(e,t),i.set(t,e);++u<o;){let o=e[u],s=t[u],c;if(r&&(c=a?r(s,o,u,t,e,i):r(o,s,u,e,t,i)),c!==void 0){if(c)continue;d=!1;break}if(f){if(!ot(t,(e,t)=>!f.has(t)&&(o===e||kt(o,e,n,r,i))?f.add(t):!1)){d=!1;break}}else if(!(o===s||kt(o,s,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function Et(e,t,n,r,i,a){switch(n){case se:return e.byteLength==t.byteLength&&e.byteOffset==t.byteOffset&&wt(e.buffer,t.buffer);case ie:return wt(e,t);case oe:case M:case fe:return Ie(+e,+t);case ce:return e.name==t.name&&e.message==t.message;case he:case _e:return e==t+``;case de:case ge:{let o=r&ee;if(e.size!=t.size&&!o)return!1;let s=a.get(e);if(s)return s==t;let c=n==de?lt:ct;a.set(e,t);let l=Tt(c(e),c(t),r|te,i,a);return a.delete(e),l}case ve:return Pe.call(e)==Pe.call(t)}return!1}function Dt(e,t,n,r,i){let a=n&ee,o=mt(e),s=o.length;if(s!=mt(t).length&&!a)return!1;let c=s;for(;c--;){let e=o[c];if(!(a?e in t:Ae.call(t,e)))return!1}let l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;let d=!0;i.set(e,t),i.set(t,e);let f=!!a;for(;++c<s;){let s=o[c],l=e[s],u=t[s],p;if(r&&(p=a?r(u,l,s,t,e,i):r(l,u,s,e,t,i)),!(p===void 0?l===u||kt(l,u,n,r,i):p)){d=!1;break}f||=s==`constructor`}if(d&&!f){let n=e.constructor,r=t.constructor;n!=r&&`constructor`in e&&`constructor`in t&&!(typeof n==`function`&&n instanceof n&&typeof r==`function`&&r instanceof r)&&(d=!1)}return i.delete(e),i.delete(t),d}function Ot(e,t,n,r,i){let a=Array.isArray(e),o=Array.isArray(t),s=a?re:Re(e),c=o?re:Re(t);s=s==j?pe:s,c=c==j?pe:c;let l=s==pe,u=s==c;return u&&!l?a||We(e)?Tt(e,t,n,r,i||new Map):Et(e,t,s,n,r,i||new Map):u?Dt(e,t,n,r,i||new Map):!1}function kt(e,t,n=0,r,i){return e===t?!0:e==null||t==null||!Fe(e)&&!Fe(t)?e!==e&&t!==t:Ot(e,t,n,r,i)}function At(e){if(!(e&&e.length))return[];let t=0,n=rt(e,e=>He(e)?(t=Math.max(e.length,t),!0):!1);return st(t,e=>it(n,Ct(e)))}function jt(e){return e!=null&&e.length?gt(e,1):[]}function Mt(e,t,n){let r=e==null?void 0:St(e,t);return r===void 0?n:r}function Nt(e){if(e==null)return!0;if(Ve(e)&&(Array.isArray(e)||typeof e==`string`||typeof e.splice==`function`||We(e)||Ue(e)))return!e.length;let t=Re(e);if(t==de||t==ge)return!e.size;if(Ke(e))return!dt(e).length;for(let t in e)if(Ae.call(e,t))return!1;return!0}function Pt(e,t){return kt(e,t)}function Ft(e){if(!It(e))return!1;let t=Re(e);return t==le||t==ue||t==ae||t==me}function It(e){let t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Lt(e,t){let n=Ze(e);if(n<1||n>ne)return[];let r=k,i=Math.min(n,k),a=nt(t);n-=k;let o=st(i,a);for(;++r<n;)a(r);return o}function Rt(...e){return At(e)}function zt(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Bt=`$$material`;function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(null,arguments)}function Ht(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 Ut(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 Wt=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Ut(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=Ht(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Gt=`-ms-`,Kt=`-moz-`,qt=`-webkit-`,Jt=`comm`,Yt=`rule`,Xt=`decl`,Zt=`@import`,Qt=`@keyframes`,$t=`@layer`,en=Math.abs,tn=String.fromCharCode,nn=Object.assign;function rn(e,t){return ln(e,0)^45?(((t<<2^ln(e,0))<<2^ln(e,1))<<2^ln(e,2))<<2^ln(e,3):0}function an(e){return e.trim()}function on(e,t){return(e=t.exec(e))?e[0]:e}function sn(e,t,n){return e.replace(t,n)}function cn(e,t){return e.indexOf(t)}function ln(e,t){return e.charCodeAt(t)|0}function un(e,t,n){return e.slice(t,n)}function dn(e){return e.length}function fn(e){return e.length}function pn(e,t){return t.push(e),e}function mn(e,t){return e.map(t).join(``)}var hn=1,gn=1,_n=0,vn=0,yn=0,bn=``;function xn(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:hn,column:gn,length:o,return:``}}function Sn(e,t){return nn(xn(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Cn(){return yn}function wn(){return yn=vn>0?ln(bn,--vn):0,gn--,yn===10&&(gn=1,hn--),yn}function Tn(){return yn=vn<_n?ln(bn,vn++):0,gn++,yn===10&&(gn=1,hn++),yn}function En(){return ln(bn,vn)}function Dn(){return vn}function On(e,t){return un(bn,e,t)}function kn(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 An(e){return hn=gn=1,_n=dn(bn=e),vn=0,[]}function jn(e){return bn=``,e}function Mn(e){return an(On(vn-1,Fn(e===91?e+2:e===40?e+1:e)))}function Nn(e){for(;(yn=En())&&yn<33;)Tn();return kn(e)>2||kn(yn)>3?``:` `}function Pn(e,t){for(;--t&&Tn()&&!(yn<48||yn>102||yn>57&&yn<65||yn>70&&yn<97););return On(e,Dn()+(t<6&&En()==32&&Tn()==32))}function Fn(e){for(;Tn();)switch(yn){case e:return vn;case 34:case 39:e!==34&&e!==39&&Fn(yn);break;case 40:e===41&&Fn(e);break;case 92:Tn();break}return vn}function In(e,t){for(;Tn()&&e+yn!==57&&!(e+yn===84&&En()===47););return`/*`+On(t,vn-1)+`*`+tn(e===47?e:Tn())}function Ln(e){for(;!kn(En());)Tn();return On(e,vn)}function Rn(e){return jn(zn(``,null,null,null,[``],e=An(e),0,[0],e))}function zn(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Tn()){case 40:if(m!=108&&ln(C,d-1)==58){cn(C+=sn(Mn(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Mn(v);break;case 9:case 10:case 13:case 32:C+=Nn(m);break;case 92:C+=Pn(Dn()-1,7);continue;case 47:switch(En()){case 42:case 47:pn(Vn(In(Tn(),Dn()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=dn(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=sn(C,/\f/g,``)),p>0&&dn(C)-d&&pn(p>32?Hn(C+`;`,r,n,d-1):Hn(sn(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(pn(S=Bn(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)zn(C,t,S,S,b,a,d,s,x);else switch(f===99&&ln(C,3)===110?100:f){case 100:case 108:case 109:case 115:zn(e,S,S,r&&pn(Bn(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:zn(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+dn(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&wn()==125)continue}switch(C+=tn(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(dn(C)-1)*_,_=1;break;case 64:En()===45&&(C+=Mn(Tn())),f=En(),u=d=dn(y=C+=Ln(Dn())),v++;break;case 45:m===45&&dn(C)==2&&(h=0)}}return a}function Bn(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=fn(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=un(e,d+1,d=en(h=o[m])),y=e;_<p;++_)(y=an(h>0?f[_]+` `+v:sn(v,/&\f/g,f[_])))&&(c[g++]=y);return xn(e,t,n,i===0?Yt:s,c,l,u)}function Vn(e,t,n){return xn(e,t,n,Jt,tn(Cn()),un(e,2,-2),0)}function Hn(e,t,n,r){return xn(e,t,n,Xt,un(e,0,r),un(e,r+1,-1),r)}function Un(e,t){for(var n=``,r=fn(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Wn(e,t,n,r){switch(e.type){case $t:if(e.children.length)break;case Zt:case Xt:return e.return=e.return||e.value;case Jt:return``;case Qt:return e.return=e.value+`{`+Un(e.children,r)+`}`;case Yt:e.value=e.props.join(`,`)}return dn(n=Un(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Gn(e){var t=fn(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Kn(e){return function(t){t.root||(t=t.return)&&e(t)}}function qn(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Jn=function(e,t,n){for(var r=0,i=0;r=i,i=En(),r===38&&i===12&&(t[n]=1),!kn(i);)Tn();return On(e,vn)},Yn=function(e,t){var n=-1,r=44;do switch(kn(r)){case 0:r===38&&En()===12&&(t[n]=1),e[n]+=Jn(vn-1,t,n);break;case 2:e[n]+=Mn(r);break;case 4:if(r===44){e[++n]=En()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=tn(r)}while(r=Tn());return e},Xn=function(e,t){return jn(Yn(An(e),t))},Zn=new WeakMap,Qn=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Zn.get(n))&&!r){Zn.set(e,!0);for(var i=[],a=Xn(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},$n=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function er(e,t){switch(rn(e,t)){case 5103:return qt+`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 qt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qt+e+Kt+e+Gt+e+e;case 6828:case 4268:return qt+e+Gt+e+e;case 6165:return qt+e+Gt+`flex-`+e+e;case 5187:return qt+e+sn(e,/(\w+).+(:[^]+)/,qt+`box-$1$2`+Gt+`flex-$1$2`)+e;case 5443:return qt+e+Gt+`flex-item-`+sn(e,/flex-|-self/,``)+e;case 4675:return qt+e+Gt+`flex-line-pack`+sn(e,/align-content|flex-|-self/,``)+e;case 5548:return qt+e+Gt+sn(e,`shrink`,`negative`)+e;case 5292:return qt+e+Gt+sn(e,`basis`,`preferred-size`)+e;case 6060:return qt+`box-`+sn(e,`-grow`,``)+qt+e+Gt+sn(e,`grow`,`positive`)+e;case 4554:return qt+sn(e,/([^-])(transform)/g,`$1`+qt+`$2`)+e;case 6187:return sn(sn(sn(e,/(zoom-|grab)/,qt+`$1`),/(image-set)/,qt+`$1`),e,``)+e;case 5495:case 3959:return sn(e,/(image-set\([^]*)/,qt+"$1$`$1");case 4968:return sn(sn(e,/(.+:)(flex-)?(.*)/,qt+`box-pack:$3`+Gt+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+qt+e+e;case 4095:case 3583:case 4068:case 2532:return sn(e,/(.+)-inline(.+)/,qt+`$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(dn(e)-1-t>6)switch(ln(e,t+1)){case 109:if(ln(e,t+4)!==45)break;case 102:return sn(e,/(.+:)(.+)-([^]+)/,`$1`+qt+`$2-$3$1`+Kt+(ln(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~cn(e,`stretch`)?er(sn(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(ln(e,t+1)!==115)break;case 6444:switch(ln(e,dn(e)-3-(~cn(e,`!important`)&&10))){case 107:return sn(e,`:`,`:`+qt)+e;case 101:return sn(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+qt+(ln(e,14)===45?`inline-`:``)+`box$3$1`+qt+`$2$3$1`+Gt+`$2box$3`)+e}break;case 5936:switch(ln(e,t+11)){case 114:return qt+e+Gt+sn(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return qt+e+Gt+sn(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return qt+e+Gt+sn(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return qt+e+Gt+e+e}return e}var tr=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xt:e.return=er(e.value,e.length);break;case Qt:return Un([Sn(e,{value:sn(e.value,`@`,`@`+qt)})],r);case Yt:if(e.length)return mn(e.props,function(t){switch(on(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Un([Sn(e,{props:[sn(t,/:(read-\w+)/,`:`+Kt+`$1`)]})],r);case`::placeholder`:return Un([Sn(e,{props:[sn(t,/:(plac\w+)/,`:`+qt+`input-$1`)]}),Sn(e,{props:[sn(t,/:(plac\w+)/,`:`+Kt+`$1`)]}),Sn(e,{props:[sn(t,/:(plac\w+)/,Gt+`input-$1`)]})],r)}return``})}}],nr=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||tr,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[Qn,$n],l,u=[Wn,Kn(function(e){l.insert(e)})],d=Gn(c.concat(r,u)),f=function(e){return Un(Rn(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Wt({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},rr=o((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),ir=o(((e,t)=>{t.exports=rr()})),ar=o(((e,t)=>{var n=ir(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function or(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var sr=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},cr=function(e,t,n){sr(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function lr(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 ur={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dr=/[A-Z]|^ms/g,fr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pr=function(e){return e.charCodeAt(1)===45},mr=function(e){return e!=null&&typeof e!=`boolean`},hr=qn(function(e){return pr(e)?e:e.replace(dr,`-$&`).toLowerCase()}),gr=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(fr,function(e,t,n){return br={name:t,styles:n,next:br},t})}return ur[e]!==1&&!pr(e)&&typeof t==`number`&&t!==0?t+`px`:t};function _r(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return br={name:i.name,styles:i.styles,next:br},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)br={name:o.name,styles:o.styles,next:br},o=o.next;return a.styles+`;`}return vr(e,t,n);case`function`:if(e!==void 0){var s=br,c=n(e);return br=s,_r(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function vr(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=_r(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:mr(s)&&(r+=hr(a)+`:`+gr(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)mr(o[c])&&(r+=hr(a)+`:`+gr(a,o[c])+`;`);else{var l=_r(e,t,o);switch(a){case`animation`:case`animationName`:r+=hr(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var yr=/label:\s*([^\s;{]+)\s*(;|$)/g,br;function xr(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;br=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=_r(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=_r(n,t,e[o]),r&&(i+=a[o]);yr.lastIndex=0;for(var s=``,c;(c=yr.exec(i))!==null;)s+=`-`+c[1];return{name:lr(i)+s,styles:i,next:br}}var P=l(d()),Sr=function(e){return e()},Cr=P.useInsertionEffect?P.useInsertionEffect:!1,wr=Cr||Sr,Tr=Cr||P.useLayoutEffect,Er=P.createContext(typeof HTMLElement<`u`?nr({key:`css`}):null),Dr=Er.Provider,Or=function(e){return(0,P.forwardRef)(function(t,n){return e(t,(0,P.useContext)(Er),n)})},kr=P.createContext({}),Ar={}.hasOwnProperty,jr=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Mr=function(e,t){var n={};for(var r in t)Ar.call(t,r)&&(n[r]=t[r]);return n[jr]=e,n},Nr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return sr(t,n,r),wr(function(){return cr(t,n,r)}),null},Pr=Or(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[jr],a=[r],o=``;typeof e.className==`string`?o=or(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=xr(a,void 0,P.useContext(kr));o+=t.key+`-`+s.name;var c={};for(var l in e)Ar.call(e,l)&&l!==`css`&&l!==jr&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),P.createElement(P.Fragment,null,P.createElement(Nr,{cache:t,serialized:s,isStringTag:typeof i==`string`}),P.createElement(i,c))});ar();var Fr=function(e,t){var n=arguments;if(t==null||!Ar.call(t,`css`))return P.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Pr,i[1]=Mr(e,t);for(var a=2;a<r;a++)i[a]=n[a];return P.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(Fr||={});var Ir=Or(function(e,t){var n=e.styles,r=xr([n],void 0,P.useContext(kr)),i=P.useRef();return Tr(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Tr(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&cr(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function Lr(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return xr(t)}function Rr(){var e=Lr.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var zr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Br=qn(function(e){return zr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Vr=function(e){return e!==`theme`},Hr=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?Br:Vr},Ur=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},Wr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return sr(t,n,r),wr(function(){return cr(t,n,r)}),null},Gr=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=Ur(t,n,r),c=s||Hr(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=Or(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=P.useContext(kr)}typeof e.className==`string`?a=or(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=xr(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?Hr(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),P.createElement(P.Fragment,null,P.createElement(Wr,{cache:t,serialized:m,isStringTag:typeof r==`string`}),P.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return`.`+o}}),h.withComponent=function(t,r){return e(t,Vt({},n,r,{shouldForwardProp:Ur(h,r,!0)})).apply(void 0,d)},h}},Kr=`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`.split(`.`),qr=Gr.bind(null);Kr.forEach(function(e){qr[e]=qr(e)});var Jr=o((e=>{var t=d(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),F=o(((e,t)=>{t.exports=Jr()}))(),Yr=new Map,Xr={insert:void 0},Zr=(e,t)=>{let n=nr(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n},Qr;if(typeof document==`object`&&(Qr=document.querySelector(`[name="emotion-insertion-point"]`),!Qr)){Qr=document.createElement(`meta`),Qr.setAttribute(`name`,`emotion-insertion-point`),Qr.setAttribute(`content`,``);let e=document.querySelector(`head`);e&&e.prepend(Qr)}function $r(e,t){if(e||t){class n extends Wt{insert(e,t){return Xr.insert?Xr.insert(e,t):(this.key&&this.key.endsWith(`global`)&&(this.before=Qr),super.insert(e,t))}}let r=Zr({key:`css`,insertionPoint:e?Qr:void 0},n);if(t){let e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}function ei(e){let{injectFirst:t,enableCssLayer:n,children:r}=e,i=P.useMemo(()=>{let e=`${t}-${n}`;if(typeof document==`object`&&Yr.has(e))return Yr.get(e);let r=$r(t,n);return Yr.set(e,r),r},[t,n]);return i?(0,F.jsx)(Dr,{value:i,children:r}):r}function ti(e){return e==null||Object.keys(e).length===0}function ni(e){let{styles:t,defaultTheme:n={}}=e;return(0,F.jsx)(Ir,{styles:typeof t==`function`?e=>t(ti(e)?n:e):t})}function ri(e,t){return qr(e,t)}function ii(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var ai=[];function oi(e){return ai[0]=e,xr(ai)}var si=o((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),ci=o(((e,t)=>{t.exports=si()}))();function li(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ui(e){if(P.isValidElement(e)||(0,ci.isValidElementType)(e)||!li(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=ui(e[n])}),t}function di(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return li(e)&&li(t)&&Object.keys(t).forEach(i=>{P.isValidElement(t[i])||(0,ci.isValidElementType)(t[i])?r[i]=t[i]:li(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&li(e[i])?r[i]=di(e[i],t[i],n):n.clone?r[i]=li(t[i])?ui(t[i]):t[i]:r[i]=t[i]}),r}var fi=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function pi(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=fi(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,...i}}function mi(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(e=>e.startsWith(`@container`)).sort((e,t)=>{let n=/min-width:\s*([0-9.]+)/;return(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{let r=t[n];return delete e[n],e[n]=r,e},{...t}):t}function hi(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function gi(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function _i(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var vi={borderRadius:4};function yi(e,t){return t?di(e,t,{clone:!1}):e}var bi={xs:0,sm:600,md:900,lg:1200,xl:1536},xi={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${bi[e]}px)`},Si={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:bi[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ci(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||xi;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||xi;return Object.keys(t).reduce((i,a)=>{if(hi(e.keys,a)){let e=gi(r.containerQueries?r:Si,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||bi).includes(a)){let r=e.up(a);i[r]=n(t[a],a)}else{let e=a;i[e]=t[e]}return i},{})}return n(t)}function wi(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function Ti(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function Ei(e){if(typeof e!=`string`)throw Error(zt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Di(e,t,n=!0){if(!t||typeof t!=`string`)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:null,e);if(n!=null)return n}return t.split(`.`).reduce((e,t)=>e&&e[t]!=null?e[t]:null,e)}function Oi(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:Di(e,n)||r,t&&(i=t(i,r,e)),i}function ki(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=Di(o,r)||{};return Ci(e,a,e=>{let r=Oi(s,i,e);return e===r&&typeof e==`string`&&(r=Oi(s,i,`${t}${e==="default"?``:Ei(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}function Ai(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var ji={m:`margin`,p:`padding`},Mi={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},Ni={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},Pi=Ai(e=>{if(e.length>2)if(Ni[e])e=Ni[e];else return[e];let[t,n]=e.split(``),r=ji[t],i=Mi[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),Fi=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],Ii=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],Li=[...Fi,...Ii];function Ri(e,t,n,r){let i=Di(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function zi(e){return Ri(e,`spacing`,8,`spacing`)}function Bi(e,t){return typeof t==`string`||t==null?t:e(t)}function Vi(e,t){return n=>e.reduce((e,r)=>(e[r]=Bi(t,n),e),{})}function Hi(e,t,n,r){if(!t.includes(n))return null;let i=Vi(Pi(n),r),a=e[n];return Ci(e,a,i)}function Ui(e,t){let n=zi(e.theme);return Object.keys(e).map(r=>Hi(e,t,r,n)).reduce(yi,{})}function Wi(e){return Ui(e,Fi)}Wi.propTypes={},Wi.filterProps=Fi;function Gi(e){return Ui(e,Ii)}Gi.propTypes={},Gi.filterProps=Ii;function Ki(e){return Ui(e,Li)}Ki.propTypes={},Ki.filterProps=Li;function qi(e=8,t=zi({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function Ji(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?yi(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Yi(e){return typeof e==`number`?`${e}px solid`:e}function Xi(e,t){return ki({prop:e,themeKey:`borders`,transform:t})}var Zi=Xi(`border`,Yi),Qi=Xi(`borderTop`,Yi),$i=Xi(`borderRight`,Yi),ea=Xi(`borderBottom`,Yi),ta=Xi(`borderLeft`,Yi),na=Xi(`borderColor`),ra=Xi(`borderTopColor`),ia=Xi(`borderRightColor`),aa=Xi(`borderBottomColor`),oa=Xi(`borderLeftColor`),sa=Xi(`outline`,Yi),ca=Xi(`outlineColor`),la=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=Ri(e.theme,`shape.borderRadius`,4,`borderRadius`);return Ci(e,e.borderRadius,e=>({borderRadius:Bi(t,e)}))}return null};la.propTypes={},la.filterProps=[`borderRadius`],Ji(Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,la,sa,ca);var ua=e=>{if(e.gap!==void 0&&e.gap!==null){let t=Ri(e.theme,`spacing`,8,`gap`);return Ci(e,e.gap,e=>({gap:Bi(t,e)}))}return null};ua.propTypes={},ua.filterProps=[`gap`];var da=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=Ri(e.theme,`spacing`,8,`columnGap`);return Ci(e,e.columnGap,e=>({columnGap:Bi(t,e)}))}return null};da.propTypes={},da.filterProps=[`columnGap`];var fa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=Ri(e.theme,`spacing`,8,`rowGap`);return Ci(e,e.rowGap,e=>({rowGap:Bi(t,e)}))}return null};fa.propTypes={},fa.filterProps=[`rowGap`],Ji(ua,da,fa,ki({prop:`gridColumn`}),ki({prop:`gridRow`}),ki({prop:`gridAutoFlow`}),ki({prop:`gridAutoColumns`}),ki({prop:`gridAutoRows`}),ki({prop:`gridTemplateColumns`}),ki({prop:`gridTemplateRows`}),ki({prop:`gridTemplateAreas`}),ki({prop:`gridArea`}));function pa(e,t){return t===`grey`?t:e}Ji(ki({prop:`color`,themeKey:`palette`,transform:pa}),ki({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:pa}),ki({prop:`backgroundColor`,themeKey:`palette`,transform:pa}));function ma(e){return e<=1&&e!==0?`${e*100}%`:e}var ha=ki({prop:`width`,transform:ma}),ga=e=>e.maxWidth!==void 0&&e.maxWidth!==null?Ci(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||bi[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:ma(t)}}):null;ga.filterProps=[`maxWidth`];var _a=ki({prop:`minWidth`,transform:ma}),va=ki({prop:`height`,transform:ma}),ya=ki({prop:`maxHeight`,transform:ma}),ba=ki({prop:`minHeight`,transform:ma});ki({prop:`size`,cssProperty:`width`,transform:ma}),ki({prop:`size`,cssProperty:`height`,transform:ma}),Ji(ha,ga,_a,va,ya,ba,ki({prop:`boxSizing`}));var xa={border:{themeKey:`borders`,transform:Yi},borderTop:{themeKey:`borders`,transform:Yi},borderRight:{themeKey:`borders`,transform:Yi},borderBottom:{themeKey:`borders`,transform:Yi},borderLeft:{themeKey:`borders`,transform:Yi},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:Yi},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:la},color:{themeKey:`palette`,transform:pa},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:pa},backgroundColor:{themeKey:`palette`,transform:pa},p:{style:Gi},pt:{style:Gi},pr:{style:Gi},pb:{style:Gi},pl:{style:Gi},px:{style:Gi},py:{style:Gi},padding:{style:Gi},paddingTop:{style:Gi},paddingRight:{style:Gi},paddingBottom:{style:Gi},paddingLeft:{style:Gi},paddingX:{style:Gi},paddingY:{style:Gi},paddingInline:{style:Gi},paddingInlineStart:{style:Gi},paddingInlineEnd:{style:Gi},paddingBlock:{style:Gi},paddingBlockStart:{style:Gi},paddingBlockEnd:{style:Gi},m:{style:Wi},mt:{style:Wi},mr:{style:Wi},mb:{style:Wi},ml:{style:Wi},mx:{style:Wi},my:{style:Wi},margin:{style:Wi},marginTop:{style:Wi},marginRight:{style:Wi},marginBottom:{style:Wi},marginLeft:{style:Wi},marginX:{style:Wi},marginY:{style:Wi},marginInline:{style:Wi},marginInlineStart:{style:Wi},marginInlineEnd:{style:Wi},marginBlock:{style:Wi},marginBlockStart:{style:Wi},marginBlockEnd:{style:Wi},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:ua},rowGap:{style:fa},columnGap:{style:da},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:ma},maxWidth:{style:ga},minWidth:{transform:ma},height:{transform:ma},maxHeight:{transform:ma},minHeight:{transform:ma},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}};function Sa(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function Ca(e,t){return typeof e==`function`?e(t):e}function wa(){function e(e,t,n,r){let i={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};let{cssProperty:o=e,themeKey:s,transform:c,style:l}=a;if(t==null)return null;if(s===`typography`&&t===`inherit`)return{[e]:t};let u=Di(n,s)||{};return l?l(i):Ci(i,t,t=>{let n=Oi(u,c,t);return t===n&&typeof t==`string`&&(n=Oi(u,c,`${e}${t==="default"?``:Ei(t)}`,t)),o===!1?n:{[o]:n}})}function t(n){let{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;let o=i.unstable_sxConfig??xa;function s(n){let r=n;if(typeof n==`function`)r=n(i);else if(typeof n!=`object`)return n;if(!r)return null;let s=wi(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=Ca(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=yi(l,e(n,a,i,o));else{let e=Ci({theme:i},a,e=>({[n]:e}));Sa(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=yi(l,e)}else l=yi(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":mi(i,Ti(c,l))}:mi(i,Ti(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var Ta=wa();Ta.filterProps=[`sx`];function Ea(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Da(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=pi(n),c=qi(i),l=di({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...vi,...a}},o);return l=_i(l),l.applyStyles=Ea,l=t.reduce((e,t)=>di(e,t),l),l.unstable_sxConfig={...xa,...o?.unstable_sxConfig},l.unstable_sx=function(e){return Ta({sx:e,theme:this})},l}function Oa(e){return Object.keys(e).length===0}function ka(e=null){let t=P.useContext(kr);return!t||Oa(t)?e:t}var Aa=Da();function ja(e=Aa){return ka(e)}function Ma(e){let t=oi(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Na({styles:e,themeId:t,defaultTheme:n={}}){let r=ja(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>Ma(typeof e==`function`?e(i):e)):Ma(a)),(0,F.jsx)(ni,{styles:a})}var Pa=e=>e,Fa=(()=>{let e=Pa;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Pa}}})();function Ia(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ia(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function La(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ia(e))&&(r&&(r+=` `),r+=t);return r}var Ra={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 za(e,t,n=`Mui`){let r=Ra[t];return r?`${n}-${r}`:`${Fa.generate(e)}-${t}`}function Ba(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=za(e,t,n)}),r}function Va(e){let{variants:t,...n}=e,r={variants:t,style:oi(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=oi(e.style))}),r}var Ha=Da();function Ua(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function Wa(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Ga(e){return e?(t,n)=>n[e]:null}function Ka(e,t,n){e.theme=Xa(e.theme)?n:e.theme[t]||e.theme}function qa(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>qa(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Wa(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?Wa(oi(i),n):i}return Ja(e,r.variants,[t],n)}return r?.isProcessed?n?Wa(oi(r.style),n):r.style:n?Wa(oi(r),n):r}function Ja(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Wa(oi(o.style(i)),r):o.style(i))):n.push(r?Wa(oi(o.style),r):o.style)}return n}function Ya(e={}){let{themeId:t,defaultTheme:n=Ha,rootShouldForwardProp:r=Ua,slotShouldForwardProp:i=Ua}=e;function a(e){Ka(e,t,n)}return(e,t={})=>{ii(e,e=>e.filter(e=>e!==Ta));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=Ga(Qa(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=Ua;o===`Root`||o===`root`?m=r:o?m=i:Za(e)&&(m=void 0);let h=ri(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return qa(t,e,t.theme.modularCssLayers?d:void 0)};if(li(e)){let t=Va(e);return function(e){return t.variants?qa(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Wa(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=qa(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?Ja(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(Ta),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function Xa(e){for(let t in e)return!1;return!0}function Za(e){return typeof e==`string`&&e.charCodeAt(0)>96}function Qa(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function $a(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=$a(i[t],o[t],n)}}}else a===`className`&&n&&t.className?r.className=La(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}var eo=typeof window<`u`?P.useLayoutEffect:P.useEffect;function to(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function no(e,t=0,n=1){return to(e,t,n)}function ro(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function io(e){if(e.type)return e;if(e.charAt(0)===`#`)return io(ro(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(zt(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(zt(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var ao=e=>{let t=io(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},oo=(e,t)=>{try{return ao(e)}catch{return e}};function so(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function co(e){e=io(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),so({type:s,values:c})}function lo(e){e=io(e);let t=e.type===`hsl`||e.type===`hsla`?io(co(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function uo(e,t){let n=lo(e),r=lo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function fo(e,t){return e=io(e),t=no(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,so(e)}function po(e,t,n){try{return fo(e,t)}catch{return e}}function mo(e,t){if(e=io(e),t=no(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return so(e)}function ho(e,t,n){try{return mo(e,t)}catch{return e}}function go(e,t){if(e=io(e),t=no(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return so(e)}function _o(e,t,n){try{return go(e,t)}catch{return e}}function vo(e,t=.15){return lo(e)>.5?mo(e,t):go(e,t)}function yo(e,t,n){try{return vo(e,t)}catch{return e}}var bo=P.createContext(null);function xo(){return P.useContext(bo)}var So=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function Co(e,t){return typeof t==`function`?t(e):{...e,...t}}function wo(e){let{children:t,theme:n}=e,r=xo(),i=P.useMemo(()=>{let e=r===null?{...n}:Co(r,n);return e!=null&&(e[So]=r!==null),e},[n,r]);return(0,F.jsx)(bo.Provider,{value:i,children:t})}var To=P.createContext();function Eo({value:e,...t}){return(0,F.jsx)(To.Provider,{value:e??!0,...t})}var Do=()=>P.useContext(To)??!1,Oo=P.createContext(void 0);function ko({value:e,children:t}){return(0,F.jsx)(Oo.Provider,{value:e,children:t})}function Ao(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?$a(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?$a(i,r,t.components.mergeClassNameAndStyle):r}function jo({props:e,name:t}){return Ao({props:e,name:t,theme:{components:P.useContext(Oo)}})}var Mo=0;function No(e){let[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{t??(Mo+=1,n(`mui-${Mo}`))},[t]),r}var Po={...P}.useId;function Fo(e){if(Po!==void 0){let t=Po();return e??t}return No(e)}function Io(e){let t=ka(),n=Fo()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,eo(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,F.jsx)(Na,{styles:i}):null}var Lo={};function Ro(e,t,n,r=!1){return P.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function zo(e){let{children:t,theme:n,themeId:r}=e,i=ka(Lo),a=xo()||Lo,o=Ro(r,i,n),s=Ro(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=Io(o);return(0,F.jsx)(wo,{theme:s,children:(0,F.jsx)(kr.Provider,{value:o,children:(0,F.jsx)(Eo,{value:c,children:(0,F.jsxs)(ko,{value:r?o[r].components:o.components,children:[l,t]})})})})}var Bo={theme:void 0};function Vo(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Bo.theme=r.theme,i=Va(e(Bo)),t=i,n=r.theme),i}}var Ho=`mode`,Uo=`color-scheme`,Wo=`data-color-scheme`;function Go(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=Ho,colorSchemeStorageKey:a=Uo,attribute:o=Wo,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
9
9
  ${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
10
10
  ${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
11
- ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,P.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
11
+ ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,F.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
12
12
  try {
13
13
  let colorScheme = '';
14
14
  const mode = localStorage.getItem('${i}') || '${t}';
@@ -32,15 +32,15 @@ try {
32
32
  if (colorScheme) {
33
33
  ${l}
34
34
  }
35
- } catch(e){}})();`}},`mui-color-scheme-init`)}function qo(){}var Jo=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return qo;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function Yo(){}function Xo(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Zo(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Qo(e){return Zo(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function $o(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Uo,colorSchemeStorageKey:o=Wo,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=Jo,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=N.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=N.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=N.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=N.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Xo(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=N.useState(l||!d);N.useEffect(()=>{v(!0)},[]);let y=Qo(h),b=N.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Xo(r)}})},[f,t]),x=N.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return Zo(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=N.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=N.useRef(S);return C.current=S,N.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),N.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||Yo,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||Yo,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||Yo;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var es=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function ts(e){let{themeId:t,theme:n={},modeStorageKey:r=Uo,colorSchemeStorageKey:i=Wo,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=N.createContext(void 0),u=()=>N.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=N.useRef(!1),E=So(),D=N.useContext(l),O=!!D&&!b,ee=N.useMemo(()=>u||(typeof n==`function`?n():n),[u]),te=ee[t],k=te||ee,{colorSchemes:A=d,components:ne=f,cssVarPrefix:j}=k,re=Object.keys(A).filter(e=>!!A[e]).join(`,`),ie=N.useMemo(()=>re.split(`,`),[re]),ae=typeof o==`string`?o:o.light,oe=typeof o==`string`?o:o.dark,{mode:M,setMode:se,systemMode:ce,lightColorScheme:le,darkColorScheme:ue,colorScheme:de,setColorScheme:fe}=$o({supportedColorSchemes:ie,defaultLightColorScheme:ae,defaultDarkColorScheme:oe,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:A[ae]&&A[oe]?S:A[k.defaultColorScheme]?.palette?.mode||k.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),pe=M,me=de;O&&(pe=D.mode,me=D.colorScheme);let he=me||k.defaultColorScheme;k.vars&&!C&&(he=k.defaultColorScheme);let ge=N.useMemo(()=>{let e=k.generateThemeVars?.()||k.vars,t={...k,components:ne,colorSchemes:A,cssVarPrefix:j,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),he){let e=A[he];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[k,he,ne,A,j]),_e=k.colorSchemeSelector;to(()=>{if(me&&y&&_e&&_e!==`media`){let e=_e,t=_e;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...ie.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,me));else{let e=t.replace(`%s`,me).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||ie.forEach(e=>{y.removeAttribute(t.replace(me,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,me)}}},[me,_e,y,ie]),N.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(es)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[me,h,v]),N.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let ve=N.useMemo(()=>({allColorSchemes:ie,colorScheme:me,darkColorScheme:ue,lightColorScheme:le,mode:pe,setColorScheme:fe,setMode:se,systemMode:ce}),[ie,me,ue,le,pe,fe,se,ce,ge.colorSchemeSelector]),ye=!0;(x||k.cssVariables===!1||O&&E?.cssVarPrefix===j)&&(ye=!1);let be=(0,P.jsxs)(N.Fragment,{children:[(0,P.jsx)(Bo,{themeId:te?t:void 0,theme:ge,children:c}),ye&&(0,P.jsx)(ri,{styles:ge.generateStyleSheets?.()||[]})]});return O?be:(0,P.jsx)(l.Provider,{value:ve,children:be})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>Ko({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function ns(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var rs=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},is=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},as=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function os(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return is(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=as(e,t);Object.assign(i,{[r]:c}),rs(a,e,`var(${r})`,s),rs(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function ss(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=os(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=os(n,t);p=fi(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=os(h,t);p=fi(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=fi(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function cs(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function ls(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function us(e,t){return N.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var ds={black:`#000`,white:`#fff`},fs={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`},ps={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`},ms={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`},hs={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`},gs={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`},_s={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`},vs={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function ys(){return{text:{primary:`rgba(0, 0, 0, 0.87)`,secondary:`rgba(0, 0, 0, 0.6)`,disabled:`rgba(0, 0, 0, 0.38)`},divider:`rgba(0, 0, 0, 0.12)`,background:{paper:ds.white,default:ds.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}}}var bs=ys();function xs(){return{text:{primary:ds.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:ds.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}}}var Ss=xs();function Cs(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=_o(e.main,i):t===`dark`&&(e.dark=ho(e.main,a)))}function ws(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function Ts(e=`light`){return e===`dark`?{main:gs[200],light:gs[50],dark:gs[400]}:{main:gs[700],light:gs[400],dark:gs[800]}}function Es(e=`light`){return e===`dark`?{main:ps[200],light:ps[50],dark:ps[400]}:{main:ps[500],light:ps[300],dark:ps[700]}}function Ds(e=`light`){return e===`dark`?{main:ms[500],light:ms[300],dark:ms[700]}:{main:ms[700],light:ms[400],dark:ms[800]}}function Os(e=`light`){return e===`dark`?{main:_s[400],light:_s[300],dark:_s[700]}:{main:_s[700],light:_s[500],dark:_s[900]}}function ks(e=`light`){return e===`dark`?{main:vs[400],light:vs[300],dark:vs[700]}:{main:vs[800],light:vs[500],dark:vs[900]}}function As(e=`light`){return e===`dark`?{main:hs[400],light:hs[300],dark:hs[700]}:{main:`#ed6c02`,light:hs[500],dark:hs[900]}}function js(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ms(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Ts(t),s=e.secondary||Es(t),c=e.error||Ds(t),l=e.info||Os(t),u=e.success||ks(t),d=e.warning||As(t);function f(e){return i?js(e):fo(e,Ss.text.primary)>=n?Ss.text.primary:bs.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(Bt(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(Bt(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(ws(i,e,`light`,a,r),ws(i,e,`dark`,o,r)):(Cs(e,`light`,a,r),Cs(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=ys():t===`dark`&&(m=xs()),fi({common:{...ds},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:fs,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function Ns(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function Ps(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function Fs(e){return Math.round(e*1e5)/1e5}var Is={textTransform:`uppercase`},Ls=`"Roboto", "Helvetica", "Arial", sans-serif`;function Rs(e,t){let{fontFamily:n=Ls,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Ls?{letterSpacing:`${Fs(i/t)}em`}:{},...a,...l});return fi({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,Is),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Is),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var zs=.2,Bs=.14,Vs=.12;function Hs(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${zs})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Bs})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Vs})`].join(`,`)}var Us=[`none`,Hs(0,2,1,-1,0,1,1,0,0,1,3,0),Hs(0,3,1,-2,0,2,2,0,0,1,5,0),Hs(0,3,3,-2,0,3,4,0,0,1,8,0),Hs(0,2,4,-1,0,4,5,0,0,1,10,0),Hs(0,3,5,-1,0,5,8,0,0,1,14,0),Hs(0,3,5,-1,0,6,10,0,0,1,18,0),Hs(0,4,5,-2,0,7,10,1,0,2,16,1),Hs(0,5,5,-3,0,8,10,1,0,3,14,2),Hs(0,5,6,-3,0,9,12,1,0,3,16,2),Hs(0,6,6,-3,0,10,14,1,0,4,18,3),Hs(0,6,7,-4,0,11,15,1,0,4,20,3),Hs(0,7,8,-4,0,12,17,2,0,5,22,4),Hs(0,7,8,-4,0,13,19,2,0,5,24,4),Hs(0,7,9,-4,0,14,21,2,0,5,26,4),Hs(0,8,9,-5,0,15,22,2,0,6,28,5),Hs(0,8,10,-5,0,16,24,2,0,6,30,5),Hs(0,8,11,-5,0,17,26,2,0,6,32,5),Hs(0,9,11,-5,0,18,28,2,0,7,34,6),Hs(0,9,12,-6,0,19,29,2,0,7,36,6),Hs(0,10,13,-6,0,20,31,3,0,8,38,7),Hs(0,10,13,-6,0,21,33,3,0,8,40,7),Hs(0,10,14,-6,0,22,35,3,0,8,42,7),Hs(0,11,14,-7,0,23,36,3,0,9,44,8),Hs(0,11,15,-7,0,24,38,3,0,9,46,8)],Ws={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)`},Gs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ks(e){return`${Math.round(e)}ms`}function qs(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Js(e){let t={...Ws,...e.easing},n={...Gs,...e.duration};return{getAutoHeightDuration:qs,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:Ks(i)} ${a} ${typeof o==`string`?o:Ks(o)}`).join(`,`)},...e,easing:t,duration:n}}var Ys={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Xs(e){return ui(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function Zs(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!Xs(a)||i.startsWith(`unstable_`)?delete e[i]:ui(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
35
+ } catch(e){}})();`}},`mui-color-scheme-init`)}function Ko(){}var qo=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Ko;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function Jo(){}function Yo(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Xo(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Zo(e){return Xo(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function Qo(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Ho,colorSchemeStorageKey:o=Uo,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=qo,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=P.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=P.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=P.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=P.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Yo(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=P.useState(l||!d);P.useEffect(()=>{v(!0)},[]);let y=Zo(h),b=P.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Yo(r)}})},[f,t]),x=P.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return Xo(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=P.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=P.useRef(S);return C.current=S,P.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),P.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||Jo,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||Jo,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||Jo;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var $o=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function es(e){let{themeId:t,theme:n={},modeStorageKey:r=Ho,colorSchemeStorageKey:i=Uo,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=P.createContext(void 0),u=()=>P.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=P.useRef(!1),E=xo(),D=P.useContext(l),O=!!D&&!b,ee=P.useMemo(()=>u||(typeof n==`function`?n():n),[u]),te=ee[t],k=te||ee,{colorSchemes:A=d,components:ne=f,cssVarPrefix:j}=k,re=Object.keys(A).filter(e=>!!A[e]).join(`,`),ie=P.useMemo(()=>re.split(`,`),[re]),ae=typeof o==`string`?o:o.light,oe=typeof o==`string`?o:o.dark,{mode:se,setMode:M,systemMode:ce,lightColorScheme:le,darkColorScheme:ue,colorScheme:de,setColorScheme:fe}=Qo({supportedColorSchemes:ie,defaultLightColorScheme:ae,defaultDarkColorScheme:oe,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:A[ae]&&A[oe]?S:A[k.defaultColorScheme]?.palette?.mode||k.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),pe=se,me=de;O&&(pe=D.mode,me=D.colorScheme);let he=me||k.defaultColorScheme;k.vars&&!C&&(he=k.defaultColorScheme);let ge=P.useMemo(()=>{let e=k.generateThemeVars?.()||k.vars,t={...k,components:ne,colorSchemes:A,cssVarPrefix:j,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),he){let e=A[he];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[k,he,ne,A,j]),_e=k.colorSchemeSelector;eo(()=>{if(me&&y&&_e&&_e!==`media`){let e=_e,t=_e;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...ie.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,me));else{let e=t.replace(`%s`,me).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||ie.forEach(e=>{y.removeAttribute(t.replace(me,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,me)}}},[me,_e,y,ie]),P.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode($o)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[me,h,v]),P.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let ve=P.useMemo(()=>({allColorSchemes:ie,colorScheme:me,darkColorScheme:ue,lightColorScheme:le,mode:pe,setColorScheme:fe,setMode:M,systemMode:ce}),[ie,me,ue,le,pe,fe,M,ce,ge.colorSchemeSelector]),N=!0;(x||k.cssVariables===!1||O&&E?.cssVarPrefix===j)&&(N=!1);let ye=(0,F.jsxs)(P.Fragment,{children:[(0,F.jsx)(zo,{themeId:te?t:void 0,theme:ge,children:c}),N&&(0,F.jsx)(ni,{styles:ge.generateStyleSheets?.()||[]})]});return O?ye:(0,F.jsx)(l.Provider,{value:ve,children:ye})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>Go({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function ts(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var ns=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},rs=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},is=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function as(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return rs(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=is(e,t);Object.assign(i,{[r]:c}),ns(a,e,`var(${r})`,s),ns(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function os(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=as(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=as(n,t);p=di(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=as(h,t);p=di(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=di(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function ss(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function cs(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function ls(e,t){return P.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var us={black:`#000`,white:`#fff`},ds={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`},fs={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`},ps={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`},ms={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`},hs={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`},gs={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`},_s={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function vs(){return{text:{primary:`rgba(0, 0, 0, 0.87)`,secondary:`rgba(0, 0, 0, 0.6)`,disabled:`rgba(0, 0, 0, 0.38)`},divider:`rgba(0, 0, 0, 0.12)`,background:{paper:us.white,default:us.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}}}var ys=vs();function bs(){return{text:{primary:us.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:us.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}}}var xs=bs();function Ss(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=go(e.main,i):t===`dark`&&(e.dark=mo(e.main,a)))}function Cs(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function ws(e=`light`){return e===`dark`?{main:hs[200],light:hs[50],dark:hs[400]}:{main:hs[700],light:hs[400],dark:hs[800]}}function Ts(e=`light`){return e===`dark`?{main:fs[200],light:fs[50],dark:fs[400]}:{main:fs[500],light:fs[300],dark:fs[700]}}function Es(e=`light`){return e===`dark`?{main:ps[500],light:ps[300],dark:ps[700]}:{main:ps[700],light:ps[400],dark:ps[800]}}function Ds(e=`light`){return e===`dark`?{main:gs[400],light:gs[300],dark:gs[700]}:{main:gs[700],light:gs[500],dark:gs[900]}}function Os(e=`light`){return e===`dark`?{main:_s[400],light:_s[300],dark:_s[700]}:{main:_s[800],light:_s[500],dark:_s[900]}}function ks(e=`light`){return e===`dark`?{main:ms[400],light:ms[300],dark:ms[700]}:{main:`#ed6c02`,light:ms[500],dark:ms[900]}}function As(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function js(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||ws(t),s=e.secondary||Ts(t),c=e.error||Es(t),l=e.info||Ds(t),u=e.success||Os(t),d=e.warning||ks(t);function f(e){return i?As(e):uo(e,xs.text.primary)>=n?xs.text.primary:ys.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(zt(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(zt(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(Cs(i,e,`light`,a,r),Cs(i,e,`dark`,o,r)):(Ss(e,`light`,a,r),Ss(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=vs():t===`dark`&&(m=bs()),di({common:{...us},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:ds,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function Ms(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function Ns(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function Ps(e){return Math.round(e*1e5)/1e5}var Fs={textTransform:`uppercase`},Is=`"Roboto", "Helvetica", "Arial", sans-serif`;function Ls(e,t){let{fontFamily:n=Is,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Is?{letterSpacing:`${Ps(i/t)}em`}:{},...a,...l});return di({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,Fs),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Fs),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var Rs=.2,zs=.14,Bs=.12;function Vs(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Rs})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${zs})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Bs})`].join(`,`)}var Hs=[`none`,Vs(0,2,1,-1,0,1,1,0,0,1,3,0),Vs(0,3,1,-2,0,2,2,0,0,1,5,0),Vs(0,3,3,-2,0,3,4,0,0,1,8,0),Vs(0,2,4,-1,0,4,5,0,0,1,10,0),Vs(0,3,5,-1,0,5,8,0,0,1,14,0),Vs(0,3,5,-1,0,6,10,0,0,1,18,0),Vs(0,4,5,-2,0,7,10,1,0,2,16,1),Vs(0,5,5,-3,0,8,10,1,0,3,14,2),Vs(0,5,6,-3,0,9,12,1,0,3,16,2),Vs(0,6,6,-3,0,10,14,1,0,4,18,3),Vs(0,6,7,-4,0,11,15,1,0,4,20,3),Vs(0,7,8,-4,0,12,17,2,0,5,22,4),Vs(0,7,8,-4,0,13,19,2,0,5,24,4),Vs(0,7,9,-4,0,14,21,2,0,5,26,4),Vs(0,8,9,-5,0,15,22,2,0,6,28,5),Vs(0,8,10,-5,0,16,24,2,0,6,30,5),Vs(0,8,11,-5,0,17,26,2,0,6,32,5),Vs(0,9,11,-5,0,18,28,2,0,7,34,6),Vs(0,9,12,-6,0,19,29,2,0,7,36,6),Vs(0,10,13,-6,0,20,31,3,0,8,38,7),Vs(0,10,13,-6,0,21,33,3,0,8,40,7),Vs(0,10,14,-6,0,22,35,3,0,8,42,7),Vs(0,11,14,-7,0,23,36,3,0,9,44,8),Vs(0,11,15,-7,0,24,38,3,0,9,46,8)],Us={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)`},Ws={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gs(e){return`${Math.round(e)}ms`}function Ks(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function qs(e){let t={...Us,...e.easing},n={...Ws,...e.duration};return{getAutoHeightDuration:Ks,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:Gs(i)} ${a} ${typeof o==`string`?o:Gs(o)}`).join(`,`)},...e,easing:t,duration:n}}var Js={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ys(e){return li(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function Xs(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!Ys(a)||i.startsWith(`unstable_`)?delete e[i]:li(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
36
36
 
37
37
  const theme = ${JSON.stringify(t,null,2)};
38
38
 
39
39
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
40
40
  theme.transitions = createTransitions(theme.transitions || {});
41
41
 
42
- export default theme;`}function Qs(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var $s=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function ec(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:po(t,$s(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Qs(n)})`:_o(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Qs(n)})`:ho(t,n)}})}function tc(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(Bt(20));let d=Ms({...a,colorSpace:l}),f=Oa(e),p=fi(f,{mixins:Ps(f.breakpoints,r),palette:d,shadows:Us.slice(),typography:Rs(d,s),transitions:Js(o),zIndex:{...Ys}});return p=fi(p,u),p=t.reduce((e,t)=>fi(e,t),p),p.unstable_sxConfig={...Sa,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Ea({sx:e,theme:this})},p.toRuntimeSource=Zs,ec(p),p}function nc(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var rc=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=nc(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ic(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function ac(e){return e===`dark`?rc:[]}function oc(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=Ms({...t,colorSpace:i});return{palette:o,opacity:{...ic(o.mode),...n},overlays:r||ac(o.mode),...a}}function sc(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var cc=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],lc=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return cc(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function uc(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function F(e,t,n){!e[t]&&n&&(e[t]=n)}function dc(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:lo(e)}function fc(e,t){`${t}Channel`in e||(e[`${t}Channel`]=so(dc(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
43
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function pc(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var mc=e=>{try{return e()}catch{}},hc=(e=`mui`)=>ns(e);function gc(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=oc({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=tc({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...ic(a),...n?.opacity},overlays:n?.overlays||ac(a)},s}function _c(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=sc,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=hc(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(Bt(21,f));let b;o&&(b=`oklch`);let x=gc(b,v,y,u,f);h&&!v.light&&gc(b,v,h,void 0,`light`),g&&!v.dark&&gc(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Ns(x.typography),...x.font},spacing:pc(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(F(t.common,`background`,`#fff`),F(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(F(t.common,`background`,`#000`),F(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===mo&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===go&&(r=`#000 ${(n*100).toFixed(0)}%`),e===vo&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(uc(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){F(t.Alert,`errorColor`,r(go,o?p(`palette-error-light`):t.error.light,.6)),F(t.Alert,`infoColor`,r(go,o?p(`palette-info-light`):t.info.light,.6)),F(t.Alert,`successColor`,r(go,o?p(`palette-success-light`):t.success.light,.6)),F(t.Alert,`warningColor`,r(go,o?p(`palette-warning-light`):t.warning.light,.6)),F(t.Alert,`errorFilledBg`,n(`palette-error-main`)),F(t.Alert,`infoFilledBg`,n(`palette-info-main`)),F(t.Alert,`successFilledBg`,n(`palette-success-main`)),F(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),F(t.Alert,`errorFilledColor`,mc(()=>t.getContrastText(t.error.main))),F(t.Alert,`infoFilledColor`,mc(()=>t.getContrastText(t.info.main))),F(t.Alert,`successFilledColor`,mc(()=>t.getContrastText(t.success.main))),F(t.Alert,`warningFilledColor`,mc(()=>t.getContrastText(t.warning.main))),F(t.Alert,`errorStandardBg`,r(vo,o?p(`palette-error-light`):t.error.light,.9)),F(t.Alert,`infoStandardBg`,r(vo,o?p(`palette-info-light`):t.info.light,.9)),F(t.Alert,`successStandardBg`,r(vo,o?p(`palette-success-light`):t.success.light,.9)),F(t.Alert,`warningStandardBg`,r(vo,o?p(`palette-warning-light`):t.warning.light,.9)),F(t.Alert,`errorIconColor`,n(`palette-error-main`)),F(t.Alert,`infoIconColor`,n(`palette-info-main`)),F(t.Alert,`successIconColor`,n(`palette-success-main`)),F(t.Alert,`warningIconColor`,n(`palette-warning-main`)),F(t.AppBar,`defaultBg`,n(`palette-grey-100`)),F(t.Avatar,`defaultBg`,n(`palette-grey-400`)),F(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),F(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),F(t.Chip,`defaultBorder`,n(`palette-grey-400`)),F(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),F(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),F(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),F(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),F(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),F(t.LinearProgress,`primaryBg`,r(vo,o?p(`palette-primary-main`):t.primary.main,.62)),F(t.LinearProgress,`secondaryBg`,r(vo,o?p(`palette-secondary-main`):t.secondary.main,.62)),F(t.LinearProgress,`errorBg`,r(vo,o?p(`palette-error-main`):t.error.main,.62)),F(t.LinearProgress,`infoBg`,r(vo,o?p(`palette-info-main`):t.info.main,.62)),F(t.LinearProgress,`successBg`,r(vo,o?p(`palette-success-main`):t.success.main,.62)),F(t.LinearProgress,`warningBg`,r(vo,o?p(`palette-warning-light`):t.warning.main,.62)),F(t.Skeleton,`bg`,b?r(mo,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),F(t.Slider,`primaryTrack`,r(vo,o?p(`palette-primary-main`):t.primary.main,.62)),F(t.Slider,`secondaryTrack`,r(vo,o?p(`palette-secondary-main`):t.secondary.main,.62)),F(t.Slider,`errorTrack`,r(vo,o?p(`palette-error-main`):t.error.main,.62)),F(t.Slider,`infoTrack`,r(vo,o?p(`palette-info-main`):t.info.main,.62)),F(t.Slider,`successTrack`,r(vo,o?p(`palette-success-main`):t.success.main,.62)),F(t.Slider,`warningTrack`,r(vo,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(go,o?p(`palette-background-default`):t.background.default,.6825):bo(t.background.default,.8);F(t.SnackbarContent,`bg`,e),F(t.SnackbarContent,`color`,mc(()=>b?Ss.text.primary:t.getContrastText(e))),F(t.SpeedDialAction,`fabHoverBg`,bo(t.background.paper,.15)),F(t.StepConnector,`border`,n(`palette-grey-400`)),F(t.StepContent,`border`,n(`palette-grey-400`)),F(t.Switch,`defaultColor`,n(`palette-common-white`)),F(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),F(t.Switch,`primaryDisabledColor`,r(vo,o?p(`palette-primary-main`):t.primary.main,.62)),F(t.Switch,`secondaryDisabledColor`,r(vo,o?p(`palette-secondary-main`):t.secondary.main,.62)),F(t.Switch,`errorDisabledColor`,r(vo,o?p(`palette-error-main`):t.error.main,.62)),F(t.Switch,`infoDisabledColor`,r(vo,o?p(`palette-info-main`):t.info.main,.62)),F(t.Switch,`successDisabledColor`,r(vo,o?p(`palette-success-main`):t.success.main,.62)),F(t.Switch,`warningDisabledColor`,r(vo,o?p(`palette-warning-main`):t.warning.main,.62)),F(t.TableCell,`border`,r(vo,mo(o?p(`palette-divider`):t.divider,1),.88)),F(t.Tooltip,`bg`,r(mo,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){F(t.Alert,`errorColor`,r(vo,o?p(`palette-error-light`):t.error.light,.6)),F(t.Alert,`infoColor`,r(vo,o?p(`palette-info-light`):t.info.light,.6)),F(t.Alert,`successColor`,r(vo,o?p(`palette-success-light`):t.success.light,.6)),F(t.Alert,`warningColor`,r(vo,o?p(`palette-warning-light`):t.warning.light,.6)),F(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),F(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),F(t.Alert,`successFilledBg`,n(`palette-success-dark`)),F(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),F(t.Alert,`errorFilledColor`,mc(()=>t.getContrastText(t.error.dark))),F(t.Alert,`infoFilledColor`,mc(()=>t.getContrastText(t.info.dark))),F(t.Alert,`successFilledColor`,mc(()=>t.getContrastText(t.success.dark))),F(t.Alert,`warningFilledColor`,mc(()=>t.getContrastText(t.warning.dark))),F(t.Alert,`errorStandardBg`,r(go,o?p(`palette-error-light`):t.error.light,.9)),F(t.Alert,`infoStandardBg`,r(go,o?p(`palette-info-light`):t.info.light,.9)),F(t.Alert,`successStandardBg`,r(go,o?p(`palette-success-light`):t.success.light,.9)),F(t.Alert,`warningStandardBg`,r(go,o?p(`palette-warning-light`):t.warning.light,.9)),F(t.Alert,`errorIconColor`,n(`palette-error-main`)),F(t.Alert,`infoIconColor`,n(`palette-info-main`)),F(t.Alert,`successIconColor`,n(`palette-success-main`)),F(t.Alert,`warningIconColor`,n(`palette-warning-main`)),F(t.AppBar,`defaultBg`,n(`palette-grey-900`)),F(t.AppBar,`darkBg`,n(`palette-background-paper`)),F(t.AppBar,`darkColor`,n(`palette-text-primary`)),F(t.Avatar,`defaultBg`,n(`palette-grey-600`)),F(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),F(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),F(t.Chip,`defaultBorder`,n(`palette-grey-700`)),F(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),F(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),F(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),F(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),F(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),F(t.LinearProgress,`primaryBg`,r(go,o?p(`palette-primary-main`):t.primary.main,.5)),F(t.LinearProgress,`secondaryBg`,r(go,o?p(`palette-secondary-main`):t.secondary.main,.5)),F(t.LinearProgress,`errorBg`,r(go,o?p(`palette-error-main`):t.error.main,.5)),F(t.LinearProgress,`infoBg`,r(go,o?p(`palette-info-main`):t.info.main,.5)),F(t.LinearProgress,`successBg`,r(go,o?p(`palette-success-main`):t.success.main,.5)),F(t.LinearProgress,`warningBg`,r(go,o?p(`palette-warning-main`):t.warning.main,.5)),F(t.Skeleton,`bg`,b?r(mo,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),F(t.Slider,`primaryTrack`,r(go,o?p(`palette-primary-main`):t.primary.main,.5)),F(t.Slider,`secondaryTrack`,r(go,o?p(`palette-secondary-main`):t.secondary.main,.5)),F(t.Slider,`errorTrack`,r(go,o?p(`palette-error-main`):t.error.main,.5)),F(t.Slider,`infoTrack`,r(go,o?p(`palette-info-main`):t.info.main,.5)),F(t.Slider,`successTrack`,r(go,o?p(`palette-success-main`):t.success.main,.5)),F(t.Slider,`warningTrack`,r(go,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(vo,o?p(`palette-background-default`):t.background.default,.985):bo(t.background.default,.98);F(t.SnackbarContent,`bg`,e),F(t.SnackbarContent,`color`,mc(()=>b?bs.text.primary:t.getContrastText(e))),F(t.SpeedDialAction,`fabHoverBg`,bo(t.background.paper,.15)),F(t.StepConnector,`border`,n(`palette-grey-600`)),F(t.StepContent,`border`,n(`palette-grey-600`)),F(t.Switch,`defaultColor`,n(`palette-grey-300`)),F(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),F(t.Switch,`primaryDisabledColor`,r(go,o?p(`palette-primary-main`):t.primary.main,.55)),F(t.Switch,`secondaryDisabledColor`,r(go,o?p(`palette-secondary-main`):t.secondary.main,.55)),F(t.Switch,`errorDisabledColor`,r(go,o?p(`palette-error-main`):t.error.main,.55)),F(t.Switch,`infoDisabledColor`,r(go,o?p(`palette-info-main`):t.info.main,.55)),F(t.Switch,`successDisabledColor`,r(go,o?p(`palette-success-main`):t.success.main,.55)),F(t.Switch,`warningDisabledColor`,r(go,o?p(`palette-warning-light`):t.warning.main,.55)),F(t.TableCell,`border`,r(go,mo(o?p(`palette-divider`):t.divider,1),.68)),F(t.Tooltip,`bg`,r(mo,o?p(`palette-grey-700`):t.grey[700],.92))}o||(fc(t.background,`default`),fc(t.background,`paper`),fc(t.common,`background`),fc(t.common,`onBackground`),fc(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&F(t[e],`mainChannel`,so(dc(n.main))),n.light&&F(t[e],`lightChannel`,so(dc(n.light))),n.dark&&F(t[e],`darkChannel`,so(dc(n.dark))),n.contrastText&&F(t[e],`contrastTextChannel`,so(dc(n.contrastText))),e===`text`&&(fc(t[e],`primary`),fc(t[e],`secondary`)),e===`action`&&(n.active&&fc(t[e],`active`),n.selected&&fc(t[e],`selected`)))})}),S=t.reduce((e,t)=>fi(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:lc(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=ss(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return Ji(u.spacing,Bi(this))},S.getColorSchemeSelector=cs(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Sa,...u?.unstable_sxConfig},S.unstable_sx=function(e){return Ea({sx:e,theme:this})},S.toRuntimeSource=Zs,S}function vc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ms({...n===!0?{}:n.palette,mode:t})})}function yc(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return tc(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=tc({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},vc(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},vc(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),_c({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var bc=yc();function xc(){let e=Ma(bc);return e.$$material||e}function Sc(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Cc=e=>Sc(e)&&e!==`classes`,I=Xa({themeId:Vt,defaultTheme:bc,rootShouldForwardProp:Cc});function wc({theme:e,...t}){let n=`$$material`in e?e[Vt]:void 0;return(0,P.jsx)(Bo,{...t,themeId:n?Vt:void 0,theme:n||e})}var Tc={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:Ec,useColorScheme:L,getInitColorSchemeScript:Dc}=ts({themeId:Vt,theme:()=>yc({cssVariables:!0}),colorSchemeStorageKey:Tc.colorSchemeStorageKey,modeStorageKey:Tc.modeStorageKey,defaultColorScheme:{light:Tc.defaultLightColorScheme,dark:Tc.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Rs(e.palette,e.typography)};return t.unstable_sx=function(e){return Ea({sx:e,theme:this})},t}}),Oc=Ec;function kc({theme:e,...t}){let n=N.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[Vt]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,P.jsx)(wc,{theme:n,...t}):(0,P.jsx)(Oc,{theme:e,...t})}var Ac={};function jc(e,t){let n=N.useRef(Ac);return n.current===Ac&&(n.current=e(t)),n}var Mc=[];function Nc(e){N.useEffect(e,Mc)}var Pc=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function Fc(){let e=jc(Pc.create).current;return Nc(e.disposeEffect),e}function Ic(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function Lc(e){return e?.ref||null}var Rc=Ho;function zc(e){return Mo(e)}var R=Di;function Bc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Vc(e,t){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vc(e,t)}function Hc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vc(e,t)}function Uc(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function Wc(e,t){e.classList?e.classList.add(t):Uc(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function Gc(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function Kc(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=Gc(e.className,t):e.setAttribute(`class`,Gc(e.className&&e.className.baseVal||``,t))}var qc={disabled:!1},Jc=N.createContext(null),Yc=function(e){return e.scrollTop},Xc=l(h()),Zc=`unmounted`,Qc=`exited`,$c=`entering`,el=`entered`,tl=`exiting`,nl=function(e){Hc(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=Qc,r.appearStatus=$c):o=el:o=t.unmountOnExit||t.mountOnEnter?Zc:Qc,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Qc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=$c):(n===`entering`||n===`entered`)&&(t=tl)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Xc.findDOMNode(this);n&&Yc(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Zc})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Xc.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||qc.disabled){this.safeSetState({status:el},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:$c},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:el},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Xc.findDOMNode(this);if(!t||qc.disabled){this.safeSetState({status:Qc},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:tl},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Qc},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Xc.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Bc(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return N.createElement(Jc.Provider,{value:null},typeof n==`function`?n(e,r):N.cloneElement(N.Children.only(n),r))},t}(N.Component);nl.contextType=Jc,nl.propTypes={};function rl(){}nl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rl,onEntering:rl,onEntered:rl,onExit:rl,onExiting:rl,onExited:rl},nl.UNMOUNTED=Zc,nl.EXITED=Qc,nl.ENTERING=$c,nl.ENTERED=el,nl.EXITING=tl;var il=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Wc(e,t)})},al=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Kc(e,t)})},ol=function(e){Hc(t,e);function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&Yc(e),r&&(this.appliedClasses[t][n]=r,il(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&al(e,r),i&&al(e,i),a&&al(e,a)},n.render=function(){var e=this.props;e.classNames;var t=Bc(e,[`classNames`]);return N.createElement(nl,Ht({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(N.Component);ol.defaultProps={classNames:``},ol.propTypes={};function sl(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function cl(e,t){var n=function(e){return t&&(0,N.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&N.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function ll(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function ul(e,t,n){return n[t]==null?e.props[t]:n[t]}function dl(e,t){return cl(e.children,function(n){return(0,N.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:ul(n,`appear`,e),enter:ul(n,`enter`,e),exit:ul(n,`exit`,e)})})}function fl(e,t,n){var r=cl(e.children),i=ll(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,N.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,N.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,N.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:ul(o,`exit`,e),enter:ul(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,N.cloneElement)(o,{in:!1}):c&&s&&(0,N.isValidElement)(l)&&(i[a]=(0,N.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:ul(o,`exit`,e),enter:ul(o,`enter`,e)}))}}),i}var pl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ml={component:`div`,childFactory:function(e){return e}},hl=function(e){Hc(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(sl(r)),firstRender:!0},r}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(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?dl(e,r):fl(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=cl(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Ht({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Bc(e,[`component`,`childFactory`]),i=this.state.contextValue,a=pl(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?N.createElement(Jc.Provider,{value:i},a):N.createElement(Jc.Provider,{value:i},N.createElement(t,r,a))},t}(N.Component);hl.propTypes={},hl.defaultProps=ml;var gl=e=>e.scrollTop;function _l(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function vl(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function yl(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function bl(...e){let t=N.useRef(void 0),n=N.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return N.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var xl=bl;function Sl(e){return`scale(${e}, ${e**2})`}var Cl={entering:{opacity:1,transform:Sl(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Sl(.75)},exited:{opacity:0,transform:Sl(.75)}},wl={opacity:0,transform:Sl(.75),visibility:`hidden`},Tl=N.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=Fc(),_=N.useRef(),v=xc(),y=N.useRef(null),b=xl(y,Lc(i),t),x=_l(y,l),S=_l(y,(e,t)=>{gl(e);let{duration:n,delay:r,easing:i}=yl({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=_l(y,c),w=_l(y,f),T=_l(y,e=>{let{duration:t,delay:n,easing:r}=yl({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=Sl(.75),u&&u(e)}),E=_l(y,e=>{e.style.transition=``,d&&d(e)});return(0,P.jsx)(nl,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=vl(e,o,Cl,wl,p,i.props.style);return N.cloneElement(i,{style:r,ref:b,...n})}})});Tl&&(Tl.muiSupportAuto=!0);function El(e){return e&&e.ownerDocument||document}var Dl=`bottom`,Ol=`right`,kl=`left`,Al=`auto`,jl=[`top`,Dl,Ol,kl],Ml=`start`,Nl=`clippingParents`,Pl=`viewport`,Fl=`popper`,Il=`reference`,Ll=jl.reduce(function(e,t){return e.concat([t+`-`+Ml,t+`-end`])},[]),Rl=[].concat(jl,[Al]).reduce(function(e,t){return e.concat([t,t+`-`+Ml,t+`-end`])},[]),zl=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function Bl(e){return e?(e.nodeName||``).toLowerCase():null}function Vl(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hl(e){return e instanceof Vl(e).Element||e instanceof Element}function Ul(e){return e instanceof Vl(e).HTMLElement||e instanceof HTMLElement}function Wl(e){return typeof ShadowRoot>`u`?!1:e instanceof Vl(e).ShadowRoot||e instanceof ShadowRoot}function Gl(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!Ul(i)||!Bl(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Kl(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!Ul(r)||!Bl(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var ql={name:`applyStyles`,enabled:!0,phase:`write`,fn:Gl,effect:Kl,requires:[`computeStyles`]};function Jl(e){return e.split(`-`)[0]}var Yl=Math.max,Xl=Math.min,Zl=Math.round;function Ql(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function $l(){return!/^((?!chrome|android).)*safari/i.test(Ql())}function eu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Ul(e)&&(i=e.offsetWidth>0&&Zl(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Zl(r.height)/e.offsetHeight||1);var o=(Hl(e)?Vl(e):window).visualViewport,s=!$l()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function tu(e){var t=eu(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 nu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Wl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ru(e){return Vl(e).getComputedStyle(e)}function iu(e){return[`table`,`td`,`th`].indexOf(Bl(e))>=0}function au(e){return((Hl(e)?e.ownerDocument:e.document)||window.document).documentElement}function ou(e){return Bl(e)===`html`?e:e.assignedSlot||e.parentNode||(Wl(e)?e.host:null)||au(e)}function su(e){return!Ul(e)||ru(e).position===`fixed`?null:e.offsetParent}function cu(e){var t=/firefox/i.test(Ql());if(/Trident/i.test(Ql())&&Ul(e)&&ru(e).position===`fixed`)return null;var n=ou(e);for(Wl(n)&&(n=n.host);Ul(n)&&[`html`,`body`].indexOf(Bl(n))<0;){var r=ru(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function lu(e){for(var t=Vl(e),n=su(e);n&&iu(n)&&ru(n).position===`static`;)n=su(n);return n&&(Bl(n)===`html`||Bl(n)===`body`&&ru(n).position===`static`)?t:n||cu(e)||t}function uu(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function du(e,t,n){return Yl(e,Xl(t,n))}function fu(e,t,n){var r=du(e,t,n);return r>n?n:r}function pu(){return{top:0,right:0,bottom:0,left:0}}function mu(e){return Object.assign({},pu(),e)}function hu(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var gu=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,mu(typeof e==`number`?hu(e,jl):e)};function _u(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Jl(n.placement),c=uu(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=gu(i.padding,n),d=tu(a),f=c===`y`?`top`:kl,p=c===`y`?Dl:Ol,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=lu(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=du(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function vu(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||nu(t.elements.popper,r)&&(t.elements.arrow=r))}var yu={name:`arrow`,enabled:!0,phase:`main`,fn:_u,effect:vu,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function bu(e){return e.split(`-`)[1]}var xu={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Su(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Zl(n*i)/i||0,y:Zl(r*i)/i||0}}function Cu(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=kl,b=`top`,x=window;if(l){var S=lu(n),C=`clientHeight`,w=`clientWidth`;if(S===Vl(n)&&(S=au(n),ru(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Dl;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=Ol;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&xu),O=u===!0?Su({x:p,y:h},Vl(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var ee;return Object.assign({},D,(ee={},ee[b]=v?`0`:``,ee[y]=_?`0`:``,ee.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ee))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function wu(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:Jl(t.placement),variation:bu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Cu(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cu(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Tu={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:wu,data:{}},Eu={passive:!0};function Du(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=Vl(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Eu)}),s&&c.addEventListener(`resize`,n.update,Eu),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Eu)}),s&&c.removeEventListener(`resize`,n.update,Eu)}}var Ou={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Du,data:{}},ku={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Au(e){return e.replace(/left|right|bottom|top/g,function(e){return ku[e]})}var ju={start:`end`,end:`start`};function Mu(e){return e.replace(/start|end/g,function(e){return ju[e]})}function Nu(e){var t=Vl(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Pu(e){return eu(au(e)).left+Nu(e).scrollLeft}function Fu(e,t){var n=Vl(e),r=au(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=$l();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Pu(e),y:c}}function Iu(e){var t=au(e),n=Nu(e),r=e.ownerDocument?.body,i=Yl(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Yl(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Pu(e),s=-n.scrollTop;return ru(r||t).direction===`rtl`&&(o+=Yl(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Lu(e){var t=ru(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Ru(e){return[`html`,`body`,`#document`].indexOf(Bl(e))>=0?e.ownerDocument.body:Ul(e)&&Lu(e)?e:Ru(ou(e))}function zu(e,t){t===void 0&&(t=[]);var n=Ru(e),r=n===e.ownerDocument?.body,i=Vl(n),a=r?[i].concat(i.visualViewport||[],Lu(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(zu(ou(a)))}function Bu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Vu(e,t){var n=eu(e,!1,t===`fixed`);return n.top+=e.clientTop,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 Hu(e,t,n){return t===`viewport`?Bu(Fu(e,n)):Hl(t)?Vu(t,n):Bu(Iu(au(e)))}function Uu(e){var t=zu(ou(e)),n=[`absolute`,`fixed`].indexOf(ru(e).position)>=0&&Ul(e)?lu(e):e;return Hl(n)?t.filter(function(e){return Hl(e)&&nu(e,n)&&Bl(e)!==`body`}):[]}function Wu(e,t,n,r){var i=t===`clippingParents`?Uu(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Hu(e,n,r);return t.top=Yl(i.top,t.top),t.right=Xl(i.right,t.right),t.bottom=Xl(i.bottom,t.bottom),t.left=Yl(i.left,t.left),t},Hu(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Gu(e){var t=e.reference,n=e.element,r=e.placement,i=r?Jl(r):null,a=r?bu(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case Dl:c={x:o,y:t.y+t.height};break;case Ol:c={x:t.x+t.width,y:s};break;case kl:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?uu(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Ml:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function Ku(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Nl:s,l=n.rootBoundary,u=l===void 0?Pl:l,d=n.elementContext,f=d===void 0?Fl:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=mu(typeof g==`number`?hu(g,jl):g),v=f===`popper`?Il:Fl,y=e.rects.popper,b=e.elements[m?v:f],x=Wu(Hl(b)?b:b.contextElement||au(e.elements.popper),c,u,o),S=eu(e.elements.reference),C=Gu({reference:S,element:y,strategy:`absolute`,placement:i}),w=Bu(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function qu(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Rl:c,u=bu(r),d=u?s?Ll:Ll.filter(function(e){return bu(e)===u}):jl,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Ku(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Jl(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Ju(e){if(Jl(e)===`auto`)return[];var t=Au(e);return[Mu(e),t,Mu(t)]}function Yu(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=Jl(g)===g,v=c||(_||!m?[Au(g)]:Ju(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(Jl(n)===`auto`?qu(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=Jl(E),O=bu(E)===Ml,ee=[`top`,Dl].indexOf(D)>=0,te=ee?`width`:`height`,k=Ku(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),A=ee?O?Ol:kl:O?Dl:`top`;b[te]>x[te]&&(A=Au(A));var ne=Au(A),j=[];if(a&&j.push(k[D]<=0),s&&j.push(k[A]<=0,k[ne]<=0),j.every(function(e){return e})){w=E,C=!1;break}S.set(E,j)}if(C)for(var re=m?3:1,ie=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ae=re;ae>0&&ie(ae)!==`break`;ae--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var Xu={name:`flip`,enabled:!0,phase:`main`,fn:Yu,requiresIfExists:[`offset`],data:{_skip:!1}};function Zu(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 Qu(e){return[`top`,Ol,Dl,kl].some(function(t){return e[t]>=0})}function $u(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Ku(t,{elementContext:`reference`}),s=Ku(t,{altBoundary:!0}),c=Zu(o,r),l=Zu(s,i,a),u=Qu(c),d=Qu(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var ed={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:$u};function td(e,t,n){var r=Jl(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function nd(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Rl.reduce(function(e,n){return e[n]=td(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var rd={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:nd};function id(e){var t=e.state,n=e.name;t.modifiersData[n]=Gu({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var ad={name:`popperOffsets`,enabled:!0,phase:`read`,fn:id,data:{}};function od(e){return e===`x`?`y`:`x`}function sd(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=Ku(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=Jl(t.placement),v=bu(t.placement),y=!v,b=uu(_),x=od(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var ee=b===`y`?`top`:kl,te=b===`y`?Dl:Ol,k=b===`y`?`height`:`width`,A=S[b],ne=A+g[ee],j=A-g[te],re=p?-w[k]/2:0,ie=v===`start`?C[k]:w[k],ae=v===`start`?-w[k]:-C[k],oe=t.elements.arrow,M=p&&oe?tu(oe):{width:0,height:0},se=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:pu(),ce=se[ee],le=se[te],ue=du(0,C[k],M[k]),de=y?C[k]/2-re-ue-ce-E.mainAxis:ie-ue-ce-E.mainAxis,fe=y?-C[k]/2+re+ue+le+E.mainAxis:ae+ue+le+E.mainAxis,pe=t.elements.arrow&&lu(t.elements.arrow),me=pe?b===`y`?pe.clientTop||0:pe.clientLeft||0:0,he=D?.[b]??0,ge=A+de-he-me,_e=A+fe-he,ve=du(p?Xl(ne,ge):ne,A,p?Yl(j,_e):j);S[b]=ve,O[b]=ve-A}if(s){var ye=b===`x`?`top`:kl,be=b===`x`?Dl:Ol,xe=S[x],Se=x===`y`?`height`:`width`,Ce=xe+g[ye],we=xe-g[be],Te=[`top`,kl].indexOf(_)!==-1,Ee=D?.[x]??0,De=Te?Ce:xe-C[Se]-w[Se]-Ee+E.altAxis,Oe=Te?xe+C[Se]+w[Se]-Ee-E.altAxis:we,ke=p&&Te?fu(De,xe,Oe):du(p?De:Ce,xe,p?Oe:we);S[x]=ke,O[x]=ke-xe}t.modifiersData[r]=O}}var cd={name:`preventOverflow`,enabled:!0,phase:`main`,fn:sd,requiresIfExists:[`offset`]};function ld(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ud(e){return e===Vl(e)||!Ul(e)?Nu(e):ld(e)}function dd(e){var t=e.getBoundingClientRect(),n=Zl(t.width)/e.offsetWidth||1,r=Zl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function fd(e,t,n){n===void 0&&(n=!1);var r=Ul(t),i=Ul(t)&&dd(t),a=au(t),o=eu(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Bl(t)!==`body`||Lu(a))&&(s=ud(t)),Ul(t)?(c=eu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Pu(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function pd(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function md(e){var t=pd(e);return zl.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function hd(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function gd(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var _d={placement:`bottom`,modifiers:[],strategy:`absolute`};function vd(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function yd(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?_d:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},_d,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:Hl(e)?zu(e):e.contextElement?zu(e.contextElement):[],popper:zu(t)};var s=md(gd([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(vd(t,n)){i.rects={reference:fd(t,lu(n),i.options.strategy===`fixed`),popper:tu(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:hd(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!vd(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var bd=yd({defaultModifiers:[Ou,ad,Tu,ql,rd,Xu,cd,yu,ed]});function xd(e){return typeof e==`string`}function Sd(e,t,n){return e===void 0||xd(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Cd(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function wd(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function Td(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=Ra(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=Cd({...i,...r}),s=wd(r),c=wd(i),l=t(o),u=Ra(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function Ed(e,t,n){return typeof e==`function`?e(t,n):e}function Dd(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:Ed(n,r),{props:s,internalRef:c}=Td({...a,externalSlotProps:o}),l=bl(c,o?.ref,e.additionalProps?.ref);return Sd(t,{...s,ref:l},r)}function Od(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function kd(e){return typeof e==`function`?e():e}var Ad=N.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=N.useState(null),s=bl(N.isValidElement(n)?Lc(n):null,t);if(to(()=>{i||o(kd(r)||document.body)},[r,i]),to(()=>{if(a&&!i)return Od(t,a),()=>{Od(t,null)}},[t,a,i]),i){if(N.isValidElement(n)){let e={ref:s};return N.cloneElement(n,e)}return n}return a&&Xc.createPortal(n,a)});function jd(e){return Ba(`MuiPopper`,e)}Va(`MuiPopper`,[`root`]);function Md(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 Nd(e){return typeof e==`function`?e():e}function Pd(e){return e.nodeType!==void 0}var Fd=e=>{let{classes:t}=e;return ls({root:[`root`]},jd,t)},Id={},Ld=N.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=N.useRef(null),_=bl(g,t),v=N.useRef(null),y=bl(v,u),b=N.useRef(y);to(()=>{b.current=y},[y]),N.useImperativeHandle(u,()=>v.current,[]);let x=Md(c,i),[S,C]=N.useState(x),[w,T]=N.useState(Nd(n));N.useEffect(()=>{v.current&&v.current.forceUpdate()}),N.useEffect(()=>{n&&T(Nd(n))},[n]),to(()=>{if(!w||!s)return;let e=e=>{C(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=bd(w,g.current,{placement:x,...l,modifiers:t});b.current(n);let r=g.current;return()=>{if(r){let{style:e}=r,t=e.position,i=e.top,a=e.left,o=e.transform;n.destroy(),e.position=t,e.top=i,e.left=a,e.transform=o}else n.destroy();b.current(null)}},[w,a,o,s,l,x]);let E={placement:S};p!==null&&(E.TransitionProps=p);let D=Fd(e),O=f.root??`div`;return(0,P.jsx)(O,{...Dd({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root}),children:typeof r==`function`?r(E):r})}),Rd=I(N.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=Id,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=N.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let S;if(i)S=i;else if(n){let e=Nd(n);S=e&&Pd(e)?El(e).body:El(null).body}let C=!l&&s&&(!m||v)?`none`:void 0,w=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,P.jsx)(Ad,{disablePortal:o,container:S,children:(0,P.jsx)(Ld,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:C,...p},TransitionProps:w,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),zd=N.forwardRef(function(e,t){let n=Oo(),{anchorEl:r,component:i,components:a,componentsProps:o,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,slots:g,slotProps:_,...v}=zc({props:e,name:`MuiPopper`}),y=g?.root??a?.Root,b={anchorEl:r,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,...v};return(0,P.jsx)(Rd,{as:i,direction:n?`rtl`:`ltr`,slots:{root:y},slotProps:_??o,...b,ref:t})});function Bd(e){let t=N.useRef(e);return to(()=>{t.current=e}),N.useRef((...e)=>(0,t.current)(...e)).current}var Vd=Bd,Hd=Io;function Ud(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=N.useRef(t!==void 0),[o,s]=N.useState(n);return[a?t:o,N.useCallback(e=>{a||s(e)},[])]}var Wd=Ud;function Gd(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=Ed(d[e],i),{props:{component:h,...g},internalRef:_}=Td({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=bl(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Sd(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function Kd(e){return Ba(`MuiTooltip`,e)}var qd=Va(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function Jd(e){return Math.round(e*1e5)/1e5}var Yd=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return ls({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${R(a.split(`-`)[0])}`],arrow:[`arrow`]},Kd,t)},Xd=I(zd,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Rc(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:`none`,variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:`auto`}},{props:({open:e})=>!e,style:{pointerEvents:`none`}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${qd.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${qd.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${qd.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${qd.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`0 0`}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${qd.arrow}`]:{left:0,marginLeft:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${qd.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${qd.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${qd.arrow}`]:{left:0,marginLeft:`-0.71em`}}}]}))),Zd=I(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${R(n.placement.split(`-`)[0])}`]]}})(Rc(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${qd.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`},[`.${qd.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`},[`.${qd.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${qd.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:`center top`,marginTop:`14px`},variants:[{props:({ownerState:e})=>e.arrow,style:{position:`relative`,margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:`8px 16px`,fontSize:e.typography.pxToRem(14),lineHeight:`${Jd(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${qd.popper}[data-popper-placement*="left"] &`]:{marginRight:`14px`},[`.${qd.popper}[data-popper-placement*="right"] &`]:{marginLeft:`14px`}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${qd.popper}[data-popper-placement*="left"] &`]:{marginRight:`24px`},[`.${qd.popper}[data-popper-placement*="right"] &`]:{marginLeft:`24px`}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${qd.popper}[data-popper-placement*="left"] &`]:{marginLeft:`14px`},[`.${qd.popper}[data-popper-placement*="right"] &`]:{marginRight:`14px`}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${qd.popper}[data-popper-placement*="left"] &`]:{marginLeft:`24px`},[`.${qd.popper}[data-popper-placement*="right"] &`]:{marginRight:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${qd.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${qd.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),Qd=I(`span`,{name:`MuiTooltip`,slot:`Arrow`})(Rc(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),$d=!1,ef=new Pc,tf={x:0,y:0};function nf(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var rf=N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,components:o={},componentsProps:s={},describeChild:c=!1,disableFocusListener:l=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:f=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:h=700,followCursor:g=!1,id:_,leaveDelay:v=0,leaveTouchDelay:y=1500,onClose:b,onOpen:x,open:S,placement:C=`bottom`,PopperComponent:w,PopperProps:T={},slotProps:E={},slots:D={},title:O,TransitionComponent:ee,TransitionProps:te,...k}=n,A=N.isValidElement(i)?i:(0,P.jsx)(`span`,{children:i}),ne=xc(),j=Oo(),[re,ie]=N.useState(),[ae,oe]=N.useState(null),M=N.useRef(!1),se=d||g,ce=Fc(),le=Fc(),ue=Fc(),de=Fc(),[fe,pe]=Wd({controlled:S,default:!1,name:`Tooltip`,state:`open`}),me=fe,he=Hd(_),ge=N.useRef(),_e=Vd(()=>{ge.current!==void 0&&(document.body.style.WebkitUserSelect=ge.current,ge.current=void 0),de.clear()});N.useEffect(()=>_e,[_e]);let ve=e=>{ef.clear(),$d=!0,pe(!0),x&&!me&&x(e)},ye=Vd(e=>{ef.start(800+v,()=>{$d=!1}),pe(!1),b&&me&&b(e),ce.start(ne.transitions.duration.shortest,()=>{M.current=!1})}),be=e=>{M.current&&e.type!==`touchstart`||(re&&re.removeAttribute(`title`),le.clear(),ue.clear(),p||$d&&m?le.start($d?m:p,()=>{ve(e)}):ve(e))},xe=e=>{le.clear(),ue.start(v,()=>{ye(e)})},[,Se]=N.useState(!1),Ce=e=>{let t=e?.target??re;if(!t||!Ic(t)){Se(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),xe(n)}},we=e=>{re||ie(e.currentTarget),Ic(e.target)&&(Se(!0),be(e))},Te=e=>{M.current=!0;let t=A.props;t.onTouchStart&&t.onTouchStart(e)},Ee=e=>{Te(e),ue.clear(),ce.clear(),_e(),ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,de.start(h,()=>{document.body.style.WebkitUserSelect=ge.current,be(e)})},De=e=>{A.props.onTouchEnd&&A.props.onTouchEnd(e),_e(),ue.start(y,()=>{ye(e)})};N.useEffect(()=>{if(!me)return;function e(e){e.key===`Escape`&&ye(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[ye,me]);let Oe=xl(Lc(A),ie,t);!O&&O!==0&&(me=!1);let ke=N.useRef(),Ae=e=>{let t=A.props;t.onMouseMove&&t.onMouseMove(e),tf={x:e.clientX,y:e.clientY},ke.current&&ke.current.update()},je={},Me=typeof O==`string`;c?(je.title=!me&&Me&&!u?O:null,je[`aria-describedby`]=me?he:null):(je[`aria-label`]=Me?O:null,je[`aria-labelledby`]=me&&!Me?he:null);let Ne={...je,...k,...A.props,className:Ra(k.className,A.props.className),onTouchStart:Te,ref:Oe,...g?{onMouseMove:Ae}:{}},Pe={};f||(Ne.onTouchStart=Ee,Ne.onTouchEnd=De),u||(Ne.onMouseOver=nf(be,Ne.onMouseOver),Ne.onMouseLeave=nf(xe,Ne.onMouseLeave),se||(Pe.onMouseOver=be,Pe.onMouseLeave=xe)),l||(Ne.onFocus=nf(we,Ne.onFocus),Ne.onBlur=nf(Ce,Ne.onBlur),se||(Pe.onFocus=we,Pe.onBlur=Ce));let Fe={...n,isRtl:j,arrow:r,disableInteractive:se,placement:C,PopperComponentProp:w,touch:M.current},Ie=typeof E.popper==`function`?E.popper(Fe):E.popper,Le=N.useMemo(()=>{let e=[{name:`arrow`,enabled:!!ae,options:{element:ae,padding:4}}];return T.popperOptions?.modifiers&&(e=e.concat(T.popperOptions.modifiers)),Ie?.popperOptions?.modifiers&&(e=e.concat(Ie.popperOptions.modifiers)),{...T.popperOptions,...Ie?.popperOptions,modifiers:e}},[ae,T.popperOptions,Ie?.popperOptions]),Re=Yd(Fe),ze=typeof E.transition==`function`?E.transition(Fe):E.transition,Be={slots:{popper:o.Popper,transition:o.Transition??ee,tooltip:o.Tooltip,arrow:o.Arrow,...D},slotProps:{arrow:E.arrow??s.arrow,popper:{...T,...Ie??s.popper},tooltip:E.tooltip??s.tooltip,transition:{...te,...ze??s.transition}}},[Ve,He]=Gd(`popper`,{elementType:Xd,externalForwardedProps:Be,ownerState:Fe,className:Ra(Re.popper,T?.className)}),[Ue,We]=Gd(`transition`,{elementType:Tl,externalForwardedProps:Be,ownerState:Fe}),[Ge,Ke]=Gd(`tooltip`,{elementType:Zd,className:Re.tooltip,externalForwardedProps:Be,ownerState:Fe}),[qe,Je]=Gd(`arrow`,{elementType:Qd,className:Re.arrow,externalForwardedProps:Be,ownerState:Fe,ref:oe});return(0,P.jsxs)(N.Fragment,{children:[N.cloneElement(A,Ne),(0,P.jsx)(Ve,{as:w??zd,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:tf.y,left:tf.x,right:tf.x,bottom:tf.y,width:0,height:0})}:re,popperRef:ke,open:re?me:!1,id:he,transition:!0,...Pe,...He,popperOptions:Le,children:({TransitionProps:e})=>(0,P.jsx)(Ue,{timeout:ne.transitions.duration.shorter,...e,...We,children:(0,P.jsxs)(Ge,{...Ke,children:[O,r?(0,P.jsx)(qe,{...Je}):null]})})})]})}),af=s({greaterThan:()=>cf,greaterThanEqual:()=>uf,lessThan:()=>sf,lessThanEqual:()=>lf}),of=e=>({...e,category:`comparison`}),sf=of({name:`Less than`,latex:`<`,command:`\\lt`}),cf=of({name:`Greater than`,latex:`>`,command:`\\gt`}),lf=of({name:`Less than or equal`,latex:`\\le`,symbol:`<=`,command:`\\le`,ariaLabel:`less than or equal to`}),uf=of({name:`Greater than or equal`,symbol:`>=`,command:`\\ge`,latex:`\\ge`}),df=e=>t=>({...t,category:e}),ff=(e=[])=>{let t=[];Rt(5,()=>t.push([]));let n=e.length,r=0,i=0;for(;i<n;)t[r++].push(e[i++]),r===5&&(r=0);return t},pf=e=>t=>{let n=Mt(e),r=n.some(e=>e.latex===t.latex),i=n.some(e=>e.name===t.name);return!r&&!i},mf=(e=[],t=[])=>{t=t.filter(pf(e));let n=[];Rt(5-e.length,()=>e.push([])),Rt(5,()=>n.push([]));let r=ff(t);for(let t=0;t<5;t++)n[t]=[...e[t],...r[t]];return n},hf=s({theta:()=>yf,x:()=>_f,y:()=>vf}),gf=df(`vars`),_f=gf({name:`X`,latex:`x`,write:`x`}),vf=gf({name:`Y`,latex:`y`,write:`y`}),yf=gf({name:`Theta`,latex:`\\theta`,write:`\\theta`}),bf=s({blankOverBlank:()=>Sf,xBlankBlank:()=>wf,xOverBlank:()=>Cf}),xf=df(`fractions`),Sf=xf({name:`blank/blank`,latex:`\\frac{}{}`,command:`\\frac`,ariaLabel:`fraction`}),Cf=xf({latex:`\\frac{x}{ }`,name:`X/blank`,label:`x/[]`,command:`/`,ariaLabel:`x over blank fraction`}),wf=xf({name:`X (blank/blank)`,latex:`x\\frac{}{}`,label:`x([]/[])`,command:`\\frac`,ariaLabel:`mixed number`}),Tf=s({nthRoot:()=>Af,squareRoot:()=>kf,squared:()=>Df,xToPowerOfN:()=>Of}),Ef=df(`exponent`),Df=Ef({name:`Squared`,latex:`x^2`,write:`^2`}),Of=Ef({name:`X to the power of n`,latex:`x^{}`,command:`^`,ariaLabel:`exponent`}),kf=Ef({name:`Square root`,latex:`\\sqrt{}`,command:`\\sqrt`}),Af=Ef({name:`Nth root`,latex:`\\sqrt[{}]{}`,command:`\\nthroot`}),jf=s({absValue:()=>Pf,approx:()=>Rf,brackets:()=>If,nApprox:()=>zf,notEqual:()=>Bf,notSimilar:()=>Hf,parenthesis:()=>Ff,percentage:()=>Lf,plusMinus:()=>Nf,similar:()=>Vf}),Mf=df(`misc`),Nf=Mf({name:`Plus or Minus`,latex:`\\pm`,write:`\\pm`}),Pf=Mf({name:`Absolute Value`,latex:`\\abs{}`,symbol:`| |`,command:`|`}),Ff=Mf({name:`Parenthesis`,latex:`\\left(\\right)`,symbol:`( )`,command:`(`}),If=Mf({name:`Brackets`,latex:`\\left[\\right]`,symbol:`[ ]`,command:`[`}),Lf=Mf({name:`Percent`,latex:`%`,command:`%`}),Rf=Mf({latex:`\\approx`,command:`\\approx`,ariaLabel:`Approximately equal to`}),zf=Mf({latex:`\\napprox`,command:`\\napprox`,ariaLabel:`Not pproximately equal to`}),Bf=Mf({latex:`\\neq`,command:`\\neq`,ariaLabel:`Not equals`}),Vf=Mf({latex:`\\sim`,command:`\\sim`,ariaLabel:`Similar`}),Hf=Mf({latex:`\\nsim`,command:`\\nsim`,ariaLabel:`Not similar`}),Uf=s({eulers:()=>Kf,halfInfinity:()=>Jf,infinity:()=>qf,pi:()=>Gf}),Wf=df(`constants`),Gf=Wf({name:`Pi`,label:`π`,latex:`\\pi`,command:`\\pi`,category:`constants`}),Kf=Wf({name:`Eulers`,label:`e`,latex:`e`,command:`e`,category:`constants`}),qf=Wf({name:`Infinity`,label:`\\infty`,latex:`\\infty`,command:`\\infty`,category:`constants`}),Jf=Wf({name:`Half Infinity`,label:`\\propto`,latex:`\\propto`,command:`\\propto`,category:`constants`}),Yf=s({cos:()=>Qf,cot:()=>np,csc:()=>tp,sec:()=>ep,sin:()=>Zf,tan:()=>$f}),Xf=df(`trigonometry`),Zf=Xf({name:`sine`,label:`sin`,command:`\\sin`,latex:`\\sin`}),Qf=Xf({name:`cosine`,label:`cos`,command:`\\cos`,latex:`\\cos`}),$f=Xf({name:`tanget`,label:`tan`,command:`\\tan`,latex:`\\tan`}),ep=Xf({name:`secant`,label:`sec`,command:`\\sec`,latex:`\\sec`}),tp=Xf({name:`cosecant`,label:`csc`,command:`\\csc`,latex:`\\csc`}),np=Xf({name:`cotangent`,label:`cot`,command:`\\cot`,latex:`\\cot`}),rp=s({angle:()=>fp,circledDot:()=>vp,congruentTo:()=>xp,degree:()=>yp,doublePrimeArcSecond:()=>wp,leftArrow:()=>Tp,leftrightArrow:()=>Dp,measureOfAngle:()=>mp,notCongruentTo:()=>Sp,notParallel:()=>up,overArc:()=>pp,overLeftRightArrow:()=>sp,overRightArrow:()=>op,overline:()=>ap,parallel:()=>lp,parallelogram:()=>_p,perpindicular:()=>dp,primeArcminute:()=>Cp,rightArrow:()=>Ep,segment:()=>cp,similarTo:()=>bp,square:()=>gp,triangle:()=>hp}),ip=e=>({...e,category:`geometry`}),ap=ip({name:`Line`,latex:`\\overline{}`,command:`\\overline`}),op=ip({name:`Ray`,latex:`\\overrightarrow{}`,command:`\\overrightarrow`}),sp=ip({name:`Segment`,latex:`\\overleftrightarrow{\\overline{}}`,symbol:`AB`,command:`\\overleftrightarrow`}),cp=ip({name:`Segment`,latex:`\\overleftrightarrow{AB}`,write:`\\overleftrightarrow{AB}`,label:`AB`}),lp=ip({name:`Parallel`,latex:`\\parallel`,command:`\\parallel`}),up=ip({name:`Not Parallel`,latex:`\\nparallel`,command:`\\nparallel`}),dp=ip({name:`Perpendicular`,latex:`\\perp`,command:`\\perpendicular`}),fp=ip({name:`Angle`,latex:`\\angle`,command:`\\angle`}),pp=ip({name:`Over arc`,latex:`\\overarc{\\overline{}}`,command:`\\overarc`}),mp=ip({name:`Measured Angle`,latex:`\\measuredangle`,command:[`m`,`\\angle`]}),hp=ip({name:`Triangle`,latex:`\\triangle`,command:`\\triangle`}),gp=ip({name:`Square`,latex:`\\square`,command:`\\square`}),_p=ip({name:`Parallelogram`,latex:`\\parallelogram`,command:`\\parallelogram`}),vp=ip({name:`Circled Dot`,latex:`\\odot`,command:`\\odot`}),yp=ip({name:`Degree`,latex:`\\degree`,command:`\\degree`}),bp=ip({name:`Similar`,command:`\\sim`,latex:`\\sim`}),xp=ip({name:`Congruent To`,command:`\\cong`,latex:`\\cong`}),Sp=ip({name:`Not Congruent To`,command:`\\ncong`,latex:`\\ncong`}),Cp=ip({name:`Prime`,label:`pam`,latex:`'`,write:`'`}),wp=ip({name:`Double Prime`,latex:`''`,write:`''`}),Tp=ip({name:`Left Arrow`,latex:`\\leftarrow`,command:`\\leftarrow`}),Ep=ip({name:`Right Arrow`,latex:`\\rightarrow`,command:`\\rightarrow`}),Dp=ip({name:`Left and Right Arrow`,latex:`\\leftrightarrow`,command:`\\leftrightarrow`}),Op=s({circleDot:()=>kp}),kp=df(`operators`)({name:`CircleDot`,label:`⋅`,write:`\\cdot`,ariaLabel:`Dot multiplier`}),Ap=s({ln:()=>Pp,log:()=>Mp,logSubscript:()=>Np}),jp=df(`log`),Mp=jp({name:`Log`,label:`log`,command:`\\log`,latex:`\\log`}),Np=jp({name:`log base n`,label:`log s`,latex:`\\log_{}`,command:[`\\log`,`_`]}),Pp=jp({name:`natural log`,label:`ln`,command:`\\ln`,latex:`\\ln`}),Fp=s({subscript:()=>Rp,superscript:()=>Lp}),Ip=df(`sub-sup`),Lp=Ip({name:`Superscript`,latex:`x^{}`,command:`^`}),Rp=Ip({name:`Subscript`,latex:`x_{}`,command:`_`}),zp=s({mu:()=>Up,sigma:()=>Wp,smallSigma:()=>Gp,xBar:()=>Vp,yBar:()=>Hp}),Bp=df(`statistics`),Vp=Bp({name:`X Bar`,label:`x̄`,latex:`\\overline{x}`,write:`\\overline{x}`}),Hp=Bp({name:`Y Bar`,latex:`\\overline{y}`,write:`\\overline{y}`}),Up=Bp({name:`mu`,label:`mu`,latex:`\\mu`,write:`\\mu`}),Wp=Bp({name:`Sigma`,ariaLabel:`Uppercase Sigma`,label:`\\Sigma`,latex:`\\Sigma`,write:`\\Sigma`}),Gp=Bp({name:`sigma`,ariaLabel:`Lowercase Sigma`,label:`\\sigma`,latex:`\\sigma`,write:`\\sigma`}),Kp=s({divide:()=>Zp,equals:()=>Jp,minus:()=>Xp,multiply:()=>Qp,plus:()=>Yp}),qp=df(`operators`),Jp=qp({write:`=`,label:`=`}),Yp=qp({write:`+`,label:`+`}),Xp=qp({write:`−`,label:`−`}),Zp=qp({name:`divide`,label:`÷`,command:`\\divide`,otherNotation:`\\div`}),Qp=qp({name:`multiply`,label:`×`,command:`\\times`}),$p=s({doubleCellMatrix:()=>nm,singleCellMatrix:()=>tm}),em=df(`matrices`),tm=em({name:`Single Cell Matrix`,label:`[ ]`,write:`\\begin{pmatrix}\\end{pmatrix}`}),nm=em({name:`Double Cell Matrix`,label:`[ ] [ ] \\\\newline [ ] [ ]`,write:`\\begin{bmatrix}&\\\\&\\end{bmatrix}`}),rm={0:`zero`,1:`one`,2:`two`,3:`three`,4:`four`,5:`five`,6:`six`,7:`seven`,8:`eight`,9:`nine`},z=Rt(10,String).map(e=>({name:rm[e],write:e,label:e,category:`digit`})).reduce((e,t)=>(e[t.name]=t,e),{comma:{name:`comma`,label:`,`,write:`,`,category:`digit`},decimalPoint:{name:`decimal-point`,label:`.`,write:`.`,category:`digit`}}),im=df(`logic`),am=im({name:`Therefore`,label:`∴`,write:`∴`}),om=im({name:`Long division`,latex:`\\longdiv{}`,command:`\\longdiv`}),sm=df(`navigation`),cm=sm({label:`◀`,keystroke:`Left`,ariaLabel:`Move cursor left`}),lm=sm({label:`▶`,keystroke:`Right`,ariaLabel:`Move cursor right`}),um={label:`⌫`,category:`edit`,keystroke:`Backspace`,ariaLabel:`Delete`},dm=[[Sf,Lf,_f,Df,kf],[kp,vf,Rp,Of,Af],[Nf,sf,cf,lf,uf],[Gf,yf,Ff,If,Pf],[Bf,Zf,Qf,$f,yp]],fm=(()=>{let e=[...dm.map(e=>[...e])];return e[0].push({name:`i`,latex:`i`,write:`i`}),e[1].push(Mp),e[2].push(Np),e[3].push(Pp),e[4].push(Kf),e})(),pm=(()=>{let e=[...dm.map(e=>[...e])];return e[0].push(Up),e[1].push(Vp),e[2].push(Hp),e[3].push(Wp),e[4].push(Gp),e})(),mm=[{predicate:e=>e>=3&&e<=5,set:[[sf,cf],[Cf,wf],[_f,om],[Df,Of]]},{predicate:e=>e>=6&&e<=7,set:[[yp,sf,cf],[kp,lf,uf],[_f,vf,Df,Of],[Nf,Cf,wf,kf],[Gf,Ff,Pf,Af]]},{predicate:e=>e>=8||e===`HS`,set:dm},{predicate:`non-negative-integers`,set:[[z.seven,z.eight,z.nine],[z.four,z.five,z.six],[z.one,z.two,z.three],[z.zero,{name:``,latex:``,write:``},{name:``,latex:``,write:``}],[cm,lm,um]]},{predicate:`integers`,set:[[z.seven,z.eight,z.nine],[z.four,z.five,z.six],[z.one,z.two,z.three],[z.zero,{name:``,latex:``,write:``},Xp],[cm,lm,um]]},{predicate:`decimals`,set:[[z.seven,z.eight,z.nine],[z.four,z.five,z.six],[z.one,z.two,z.three],[z.zero,z.decimalPoint,Xp],[cm,lm,um]]},{predicate:`fractions`,set:[[z.seven,z.eight,z.nine],[z.four,z.five,z.six],[z.one,z.two,z.three],[z.zero,Sf,Xp],[cm,lm,um]]},{predicate:`geometry`,set:[[Sf,yp,Cp,wp,xp,bp],[kp,fp,mp,hp,Sp,Hf],[Zf,Qf,$f,Gf,kf,Af],[tp,ep,np,yf,Rp,Of],[ap,op,sp,pp,dp,lp]]},{predicate:`advanced-algebra`,set:fm},{predicate:`statistics`,set:pm},{predicate:`item-authoring`,set:[[Zp,Sf,om,Jf,Df,kf,ap,op,sp,Mp],[Qp,kp,{name:``,latex:``,write:``},Rp,Of,Af,dp,lp,pp,Np],[Nf,Gf,yf,yp,fp,Tp,Ep,hp,gp,Pp],[Bf,Pf,Gp,Up,am,Wp,Dp,Zf,Qf,$f],[lf,uf,{name:``,latex:``,write:``},{name:``,latex:``,write:``},qf,{name:``,latex:``,write:``},{name:``,latex:``,write:``},tp,ep,np]]},{predicate:e=>e>=1&&e<=2,set:[]}],hm=e=>{let t=parseInt(e,10);if(e=isNaN(t)?e:t,!e)return[];let n=mm.find(t=>typeof t.predicate==`string`?t.predicate===e:t.predicate(e));if(n)return n.set||[];if(e!==`language`)return mm[2].set},gm=[...Object.values(Kp),...Object.values(af),...Object.values(Uf),...Object.values(z),...Object.values(Tf),...Object.values(bf),...Object.values(rp),...Object.values(Ap),...Object.values($p),...Object.values(jf),...Object.values(Op),...Object.values(zp),...Object.values(Fp),...Object.values(Yf),...Object.values(hf)],_m=e=>(e||[]).map(e=>{let{latex:t}=e,n=(gm||[]).find(e=>t===e.latex||t===e.write||t===e.command||t===e.otherNotation);return t&&n||e}),vm=()=>{(Array.from(document.querySelectorAll(`span[mathquill-command-id]`))||[]).forEach(e=>{e&&e.innerText===`∥`&&e.className!==`mq-editable-field`&&(e.style.fontSize=`32px`),(e.innerText===`′`||e.innerText===`′′`)&&!e.hasAttribute(`data-prime`)&&e.setAttribute(`data-prime`,`true`)})},{one:ym,two:bm,three:xm,four:Sm,five:Cm,six:wm,seven:Tm,eight:Em,nine:Dm,zero:Om,comma:km,decimalPoint:Am}=z,jm=[[Tm,Em,Dm,Zp],[Sm,Cm,wm,Qp],[ym,bm,xm,Xp],[Om,Am,km,Yp],[cm,lm,um,Jp]];function Mm(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Nm(e){return Ba(`MuiSvgIcon`,e)}Va(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Pm=e=>{let{color:t,fontSize:n,classes:r}=e;return ls({root:[`root`,t!==`inherit`&&`color${R(t)}`,`fontSize${R(n)}`]},Nm,r)},Fm=I(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${R(n.color)}`],t[`fontSize${R(n.fontSize)}`]]}})(Rc(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),Im=N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=N.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=Pm(m);return(0,P.jsxs)(Fm,{as:o,className:Ra(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,P.jsx)(`title`,{children:u}):null]})});Im.muiName=`SvgIcon`;function Lm(e,t){function n(t,n){return(0,P.jsx)(Im,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Im.muiName,N.memo(N.forwardRef(n))}function Rm(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var zm=Rm,Bm=us,Vm=El;function Hm(e){return El(e).defaultView||window}var Um=Hm,Wm=to;function Gm(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Km(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Gm(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=Ra(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=Ra(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var qm=class e{static create(){return new e}static use(){let t=jc(e.create).current,[n,r]=N.useState(!1);return t.shouldMount=n,t.setShouldMount=r,N.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Ym(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function Jm(){return qm.use()}function Ym(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function Xm(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=N.useState(!1),f=Ra(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=Ra(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),N.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,P.jsx)(`span`,{className:f,style:p,children:(0,P.jsx)(`span`,{className:m})})}var Zm=Va(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Qm=550,$m=zr`
42
+ export default theme;`}function Zs(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var Qs=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function $s(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:fo(t,Qs(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Zs(n)})`:go(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Zs(n)})`:mo(t,n)}})}function ec(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(zt(20));let d=js({...a,colorSpace:l}),f=Da(e),p=di(f,{mixins:Ns(f.breakpoints,r),palette:d,shadows:Hs.slice(),typography:Ls(d,s),transitions:qs(o),zIndex:{...Js}});return p=di(p,u),p=t.reduce((e,t)=>di(e,t),p),p.unstable_sxConfig={...xa,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Ta({sx:e,theme:this})},p.toRuntimeSource=Xs,$s(p),p}function tc(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var nc=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=tc(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function rc(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function ic(e){return e===`dark`?nc:[]}function ac(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=js({...t,colorSpace:i});return{palette:o,opacity:{...rc(o.mode),...n},overlays:r||ic(o.mode),...a}}function oc(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var sc=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],cc=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return sc(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function lc(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function I(e,t,n){!e[t]&&n&&(e[t]=n)}function uc(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:co(e)}function dc(e,t){`${t}Channel`in e||(e[`${t}Channel`]=oo(uc(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
43
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function fc(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var pc=e=>{try{return e()}catch{}},mc=(e=`mui`)=>ts(e);function hc(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=ac({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=ec({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...rc(a),...n?.opacity},overlays:n?.overlays||ic(a)},s}function gc(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=oc,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=mc(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(zt(21,f));let b;o&&(b=`oklch`);let x=hc(b,v,y,u,f);h&&!v.light&&hc(b,v,h,void 0,`light`),g&&!v.dark&&hc(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Ms(x.typography),...x.font},spacing:fc(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(I(t.common,`background`,`#fff`),I(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(I(t.common,`background`,`#000`),I(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===po&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===ho&&(r=`#000 ${(n*100).toFixed(0)}%`),e===_o&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(lc(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){I(t.Alert,`errorColor`,r(ho,o?p(`palette-error-light`):t.error.light,.6)),I(t.Alert,`infoColor`,r(ho,o?p(`palette-info-light`):t.info.light,.6)),I(t.Alert,`successColor`,r(ho,o?p(`palette-success-light`):t.success.light,.6)),I(t.Alert,`warningColor`,r(ho,o?p(`palette-warning-light`):t.warning.light,.6)),I(t.Alert,`errorFilledBg`,n(`palette-error-main`)),I(t.Alert,`infoFilledBg`,n(`palette-info-main`)),I(t.Alert,`successFilledBg`,n(`palette-success-main`)),I(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),I(t.Alert,`errorFilledColor`,pc(()=>t.getContrastText(t.error.main))),I(t.Alert,`infoFilledColor`,pc(()=>t.getContrastText(t.info.main))),I(t.Alert,`successFilledColor`,pc(()=>t.getContrastText(t.success.main))),I(t.Alert,`warningFilledColor`,pc(()=>t.getContrastText(t.warning.main))),I(t.Alert,`errorStandardBg`,r(_o,o?p(`palette-error-light`):t.error.light,.9)),I(t.Alert,`infoStandardBg`,r(_o,o?p(`palette-info-light`):t.info.light,.9)),I(t.Alert,`successStandardBg`,r(_o,o?p(`palette-success-light`):t.success.light,.9)),I(t.Alert,`warningStandardBg`,r(_o,o?p(`palette-warning-light`):t.warning.light,.9)),I(t.Alert,`errorIconColor`,n(`palette-error-main`)),I(t.Alert,`infoIconColor`,n(`palette-info-main`)),I(t.Alert,`successIconColor`,n(`palette-success-main`)),I(t.Alert,`warningIconColor`,n(`palette-warning-main`)),I(t.AppBar,`defaultBg`,n(`palette-grey-100`)),I(t.Avatar,`defaultBg`,n(`palette-grey-400`)),I(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),I(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),I(t.Chip,`defaultBorder`,n(`palette-grey-400`)),I(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),I(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),I(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),I(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),I(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),I(t.LinearProgress,`primaryBg`,r(_o,o?p(`palette-primary-main`):t.primary.main,.62)),I(t.LinearProgress,`secondaryBg`,r(_o,o?p(`palette-secondary-main`):t.secondary.main,.62)),I(t.LinearProgress,`errorBg`,r(_o,o?p(`palette-error-main`):t.error.main,.62)),I(t.LinearProgress,`infoBg`,r(_o,o?p(`palette-info-main`):t.info.main,.62)),I(t.LinearProgress,`successBg`,r(_o,o?p(`palette-success-main`):t.success.main,.62)),I(t.LinearProgress,`warningBg`,r(_o,o?p(`palette-warning-light`):t.warning.main,.62)),I(t.Skeleton,`bg`,b?r(po,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),I(t.Slider,`primaryTrack`,r(_o,o?p(`palette-primary-main`):t.primary.main,.62)),I(t.Slider,`secondaryTrack`,r(_o,o?p(`palette-secondary-main`):t.secondary.main,.62)),I(t.Slider,`errorTrack`,r(_o,o?p(`palette-error-main`):t.error.main,.62)),I(t.Slider,`infoTrack`,r(_o,o?p(`palette-info-main`):t.info.main,.62)),I(t.Slider,`successTrack`,r(_o,o?p(`palette-success-main`):t.success.main,.62)),I(t.Slider,`warningTrack`,r(_o,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(ho,o?p(`palette-background-default`):t.background.default,.6825):yo(t.background.default,.8);I(t.SnackbarContent,`bg`,e),I(t.SnackbarContent,`color`,pc(()=>b?xs.text.primary:t.getContrastText(e))),I(t.SpeedDialAction,`fabHoverBg`,yo(t.background.paper,.15)),I(t.StepConnector,`border`,n(`palette-grey-400`)),I(t.StepContent,`border`,n(`palette-grey-400`)),I(t.Switch,`defaultColor`,n(`palette-common-white`)),I(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),I(t.Switch,`primaryDisabledColor`,r(_o,o?p(`palette-primary-main`):t.primary.main,.62)),I(t.Switch,`secondaryDisabledColor`,r(_o,o?p(`palette-secondary-main`):t.secondary.main,.62)),I(t.Switch,`errorDisabledColor`,r(_o,o?p(`palette-error-main`):t.error.main,.62)),I(t.Switch,`infoDisabledColor`,r(_o,o?p(`palette-info-main`):t.info.main,.62)),I(t.Switch,`successDisabledColor`,r(_o,o?p(`palette-success-main`):t.success.main,.62)),I(t.Switch,`warningDisabledColor`,r(_o,o?p(`palette-warning-main`):t.warning.main,.62)),I(t.TableCell,`border`,r(_o,po(o?p(`palette-divider`):t.divider,1),.88)),I(t.Tooltip,`bg`,r(po,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){I(t.Alert,`errorColor`,r(_o,o?p(`palette-error-light`):t.error.light,.6)),I(t.Alert,`infoColor`,r(_o,o?p(`palette-info-light`):t.info.light,.6)),I(t.Alert,`successColor`,r(_o,o?p(`palette-success-light`):t.success.light,.6)),I(t.Alert,`warningColor`,r(_o,o?p(`palette-warning-light`):t.warning.light,.6)),I(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),I(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),I(t.Alert,`successFilledBg`,n(`palette-success-dark`)),I(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),I(t.Alert,`errorFilledColor`,pc(()=>t.getContrastText(t.error.dark))),I(t.Alert,`infoFilledColor`,pc(()=>t.getContrastText(t.info.dark))),I(t.Alert,`successFilledColor`,pc(()=>t.getContrastText(t.success.dark))),I(t.Alert,`warningFilledColor`,pc(()=>t.getContrastText(t.warning.dark))),I(t.Alert,`errorStandardBg`,r(ho,o?p(`palette-error-light`):t.error.light,.9)),I(t.Alert,`infoStandardBg`,r(ho,o?p(`palette-info-light`):t.info.light,.9)),I(t.Alert,`successStandardBg`,r(ho,o?p(`palette-success-light`):t.success.light,.9)),I(t.Alert,`warningStandardBg`,r(ho,o?p(`palette-warning-light`):t.warning.light,.9)),I(t.Alert,`errorIconColor`,n(`palette-error-main`)),I(t.Alert,`infoIconColor`,n(`palette-info-main`)),I(t.Alert,`successIconColor`,n(`palette-success-main`)),I(t.Alert,`warningIconColor`,n(`palette-warning-main`)),I(t.AppBar,`defaultBg`,n(`palette-grey-900`)),I(t.AppBar,`darkBg`,n(`palette-background-paper`)),I(t.AppBar,`darkColor`,n(`palette-text-primary`)),I(t.Avatar,`defaultBg`,n(`palette-grey-600`)),I(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),I(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),I(t.Chip,`defaultBorder`,n(`palette-grey-700`)),I(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),I(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),I(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),I(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),I(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),I(t.LinearProgress,`primaryBg`,r(ho,o?p(`palette-primary-main`):t.primary.main,.5)),I(t.LinearProgress,`secondaryBg`,r(ho,o?p(`palette-secondary-main`):t.secondary.main,.5)),I(t.LinearProgress,`errorBg`,r(ho,o?p(`palette-error-main`):t.error.main,.5)),I(t.LinearProgress,`infoBg`,r(ho,o?p(`palette-info-main`):t.info.main,.5)),I(t.LinearProgress,`successBg`,r(ho,o?p(`palette-success-main`):t.success.main,.5)),I(t.LinearProgress,`warningBg`,r(ho,o?p(`palette-warning-main`):t.warning.main,.5)),I(t.Skeleton,`bg`,b?r(po,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),I(t.Slider,`primaryTrack`,r(ho,o?p(`palette-primary-main`):t.primary.main,.5)),I(t.Slider,`secondaryTrack`,r(ho,o?p(`palette-secondary-main`):t.secondary.main,.5)),I(t.Slider,`errorTrack`,r(ho,o?p(`palette-error-main`):t.error.main,.5)),I(t.Slider,`infoTrack`,r(ho,o?p(`palette-info-main`):t.info.main,.5)),I(t.Slider,`successTrack`,r(ho,o?p(`palette-success-main`):t.success.main,.5)),I(t.Slider,`warningTrack`,r(ho,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(_o,o?p(`palette-background-default`):t.background.default,.985):yo(t.background.default,.98);I(t.SnackbarContent,`bg`,e),I(t.SnackbarContent,`color`,pc(()=>b?ys.text.primary:t.getContrastText(e))),I(t.SpeedDialAction,`fabHoverBg`,yo(t.background.paper,.15)),I(t.StepConnector,`border`,n(`palette-grey-600`)),I(t.StepContent,`border`,n(`palette-grey-600`)),I(t.Switch,`defaultColor`,n(`palette-grey-300`)),I(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),I(t.Switch,`primaryDisabledColor`,r(ho,o?p(`palette-primary-main`):t.primary.main,.55)),I(t.Switch,`secondaryDisabledColor`,r(ho,o?p(`palette-secondary-main`):t.secondary.main,.55)),I(t.Switch,`errorDisabledColor`,r(ho,o?p(`palette-error-main`):t.error.main,.55)),I(t.Switch,`infoDisabledColor`,r(ho,o?p(`palette-info-main`):t.info.main,.55)),I(t.Switch,`successDisabledColor`,r(ho,o?p(`palette-success-main`):t.success.main,.55)),I(t.Switch,`warningDisabledColor`,r(ho,o?p(`palette-warning-light`):t.warning.main,.55)),I(t.TableCell,`border`,r(ho,po(o?p(`palette-divider`):t.divider,1),.68)),I(t.Tooltip,`bg`,r(po,o?p(`palette-grey-700`):t.grey[700],.92))}o||(dc(t.background,`default`),dc(t.background,`paper`),dc(t.common,`background`),dc(t.common,`onBackground`),dc(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&I(t[e],`mainChannel`,oo(uc(n.main))),n.light&&I(t[e],`lightChannel`,oo(uc(n.light))),n.dark&&I(t[e],`darkChannel`,oo(uc(n.dark))),n.contrastText&&I(t[e],`contrastTextChannel`,oo(uc(n.contrastText))),e===`text`&&(dc(t[e],`primary`),dc(t[e],`secondary`)),e===`action`&&(n.active&&dc(t[e],`active`),n.selected&&dc(t[e],`selected`)))})}),S=t.reduce((e,t)=>di(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:cc(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=os(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return qi(u.spacing,zi(this))},S.getColorSchemeSelector=ss(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...xa,...u?.unstable_sxConfig},S.unstable_sx=function(e){return Ta({sx:e,theme:this})},S.toRuntimeSource=Xs,S}function _c(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:js({...n===!0?{}:n.palette,mode:t})})}function vc(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return ec(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=ec({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},_c(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},_c(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),gc({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var yc=vc();function bc(){let e=ja(yc);return e.$$material||e}function xc(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Sc=e=>xc(e)&&e!==`classes`,L=Ya({themeId:Bt,defaultTheme:yc,rootShouldForwardProp:Sc});function Cc({theme:e,...t}){let n=`$$material`in e?e[Bt]:void 0;return(0,F.jsx)(zo,{...t,themeId:n?Bt:void 0,theme:n||e})}var wc={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:Tc,useColorScheme:R,getInitColorSchemeScript:Ec}=es({themeId:Bt,theme:()=>vc({cssVariables:!0}),colorSchemeStorageKey:wc.colorSchemeStorageKey,modeStorageKey:wc.modeStorageKey,defaultColorScheme:{light:wc.defaultLightColorScheme,dark:wc.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Ls(e.palette,e.typography)};return t.unstable_sx=function(e){return Ta({sx:e,theme:this})},t}}),Dc=Tc;function Oc({theme:e,...t}){let n=P.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[Bt]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,F.jsx)(Cc,{theme:n,...t}):(0,F.jsx)(Dc,{theme:e,...t})}var kc={};function Ac(e,t){let n=P.useRef(kc);return n.current===kc&&(n.current=e(t)),n}var jc=[];function Mc(e){P.useEffect(e,jc)}var Nc=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function Pc(){let e=Ac(Nc.create).current;return Mc(e.disposeEffect),e}function Fc(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function Ic(e){return e?.ref||null}var Lc=Vo;function Rc(e){return jo(e)}var z=Ei;function zc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Bc(e,t){return Bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bc(e,t)}function Vc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bc(e,t)}function Hc(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function Uc(e,t){e.classList?e.classList.add(t):Hc(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function Wc(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function Gc(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=Wc(e.className,t):e.setAttribute(`class`,Wc(e.className&&e.className.baseVal||``,t))}var Kc={disabled:!1},qc=P.createContext(null),Jc=function(e){return e.scrollTop},Yc=l(h()),Xc=`unmounted`,Zc=`exited`,Qc=`entering`,$c=`entered`,el=`exiting`,tl=function(e){Vc(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=Zc,r.appearStatus=Qc):o=$c:o=t.unmountOnExit||t.mountOnEnter?Xc:Zc,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Zc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=Qc):(n===`entering`||n===`entered`)&&(t=el)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Yc.findDOMNode(this);n&&Jc(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Xc})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Yc.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||Kc.disabled){this.safeSetState({status:$c},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:Qc},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:$c},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Yc.findDOMNode(this);if(!t||Kc.disabled){this.safeSetState({status:Zc},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:el},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Zc},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Yc.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=zc(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return P.createElement(qc.Provider,{value:null},typeof n==`function`?n(e,r):P.cloneElement(P.Children.only(n),r))},t}(P.Component);tl.contextType=qc,tl.propTypes={};function nl(){}tl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nl,onEntering:nl,onEntered:nl,onExit:nl,onExiting:nl,onExited:nl},tl.UNMOUNTED=Xc,tl.EXITED=Zc,tl.ENTERING=Qc,tl.ENTERED=$c,tl.EXITING=el;var rl=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Uc(e,t)})},il=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Gc(e,t)})},al=function(e){Vc(t,e);function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&Jc(e),r&&(this.appliedClasses[t][n]=r,rl(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&il(e,r),i&&il(e,i),a&&il(e,a)},n.render=function(){var e=this.props;e.classNames;var t=zc(e,[`classNames`]);return P.createElement(tl,Vt({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(P.Component);al.defaultProps={classNames:``},al.propTypes={};function ol(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function sl(e,t){var n=function(e){return t&&(0,P.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&P.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function cl(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function ll(e,t,n){return n[t]==null?e.props[t]:n[t]}function ul(e,t){return sl(e.children,function(n){return(0,P.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:ll(n,`appear`,e),enter:ll(n,`enter`,e),exit:ll(n,`exit`,e)})})}function dl(e,t,n){var r=sl(e.children),i=cl(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,P.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,P.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,P.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:ll(o,`exit`,e),enter:ll(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,P.cloneElement)(o,{in:!1}):c&&s&&(0,P.isValidElement)(l)&&(i[a]=(0,P.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:ll(o,`exit`,e),enter:ll(o,`enter`,e)}))}}),i}var fl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},pl={component:`div`,childFactory:function(e){return e}},ml=function(e){Vc(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(ol(r)),firstRender:!0},r}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(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?ul(e,r):dl(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=sl(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Vt({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=zc(e,[`component`,`childFactory`]),i=this.state.contextValue,a=fl(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?P.createElement(qc.Provider,{value:i},a):P.createElement(qc.Provider,{value:i},P.createElement(t,r,a))},t}(P.Component);ml.propTypes={},ml.defaultProps=pl;var hl=e=>e.scrollTop;function gl(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function _l(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function vl(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function yl(...e){let t=P.useRef(void 0),n=P.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return P.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var bl=yl;function xl(e){return`scale(${e}, ${e**2})`}var Sl={entering:{opacity:1,transform:xl(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:xl(.75)},exited:{opacity:0,transform:xl(.75)}},Cl={opacity:0,transform:xl(.75),visibility:`hidden`},wl=P.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=Pc(),_=P.useRef(),v=bc(),y=P.useRef(null),b=bl(y,Ic(i),t),x=gl(y,l),S=gl(y,(e,t)=>{hl(e);let{duration:n,delay:r,easing:i}=vl({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=gl(y,c),w=gl(y,f),T=gl(y,e=>{let{duration:t,delay:n,easing:r}=vl({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=xl(.75),u&&u(e)}),E=gl(y,e=>{e.style.transition=``,d&&d(e)});return(0,F.jsx)(tl,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=_l(e,o,Sl,Cl,p,i.props.style);return P.cloneElement(i,{style:r,ref:b,...n})}})});wl&&(wl.muiSupportAuto=!0);function Tl(e){return e&&e.ownerDocument||document}var El=`bottom`,Dl=`right`,Ol=`left`,kl=`auto`,Al=[`top`,El,Dl,Ol],jl=`start`,Ml=`clippingParents`,Nl=`viewport`,Pl=`popper`,Fl=`reference`,Il=Al.reduce(function(e,t){return e.concat([t+`-`+jl,t+`-end`])},[]),Ll=[].concat(Al,[kl]).reduce(function(e,t){return e.concat([t,t+`-`+jl,t+`-end`])},[]),Rl=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function zl(e){return e?(e.nodeName||``).toLowerCase():null}function Bl(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vl(e){return e instanceof Bl(e).Element||e instanceof Element}function Hl(e){return e instanceof Bl(e).HTMLElement||e instanceof HTMLElement}function Ul(e){return typeof ShadowRoot>`u`?!1:e instanceof Bl(e).ShadowRoot||e instanceof ShadowRoot}function Wl(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!Hl(i)||!zl(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Gl(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!Hl(r)||!zl(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var Kl={name:`applyStyles`,enabled:!0,phase:`write`,fn:Wl,effect:Gl,requires:[`computeStyles`]};function ql(e){return e.split(`-`)[0]}var Jl=Math.max,Yl=Math.min,Xl=Math.round;function Zl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function Ql(){return!/^((?!chrome|android).)*safari/i.test(Zl())}function $l(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Hl(e)&&(i=e.offsetWidth>0&&Xl(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Xl(r.height)/e.offsetHeight||1);var o=(Vl(e)?Bl(e):window).visualViewport,s=!Ql()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function eu(e){var t=$l(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 tu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ul(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function nu(e){return Bl(e).getComputedStyle(e)}function ru(e){return[`table`,`td`,`th`].indexOf(zl(e))>=0}function iu(e){return((Vl(e)?e.ownerDocument:e.document)||window.document).documentElement}function au(e){return zl(e)===`html`?e:e.assignedSlot||e.parentNode||(Ul(e)?e.host:null)||iu(e)}function ou(e){return!Hl(e)||nu(e).position===`fixed`?null:e.offsetParent}function su(e){var t=/firefox/i.test(Zl());if(/Trident/i.test(Zl())&&Hl(e)&&nu(e).position===`fixed`)return null;var n=au(e);for(Ul(n)&&(n=n.host);Hl(n)&&[`html`,`body`].indexOf(zl(n))<0;){var r=nu(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function cu(e){for(var t=Bl(e),n=ou(e);n&&ru(n)&&nu(n).position===`static`;)n=ou(n);return n&&(zl(n)===`html`||zl(n)===`body`&&nu(n).position===`static`)?t:n||su(e)||t}function lu(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function uu(e,t,n){return Jl(e,Yl(t,n))}function du(e,t,n){var r=uu(e,t,n);return r>n?n:r}function fu(){return{top:0,right:0,bottom:0,left:0}}function pu(e){return Object.assign({},fu(),e)}function mu(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var hu=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,pu(typeof e==`number`?mu(e,Al):e)};function gu(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=ql(n.placement),c=lu(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=hu(i.padding,n),d=eu(a),f=c===`y`?`top`:Ol,p=c===`y`?El:Dl,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=cu(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=uu(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function _u(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||tu(t.elements.popper,r)&&(t.elements.arrow=r))}var vu={name:`arrow`,enabled:!0,phase:`main`,fn:gu,effect:_u,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function yu(e){return e.split(`-`)[1]}var bu={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function xu(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Xl(n*i)/i||0,y:Xl(r*i)/i||0}}function Su(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=Ol,b=`top`,x=window;if(l){var S=cu(n),C=`clientHeight`,w=`clientWidth`;if(S===Bl(n)&&(S=iu(n),nu(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=El;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=Dl;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&bu),O=u===!0?xu({x:p,y:h},Bl(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var ee;return Object.assign({},D,(ee={},ee[b]=v?`0`:``,ee[y]=_?`0`:``,ee.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ee))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Cu(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:ql(t.placement),variation:yu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Su(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Su(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var wu={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Cu,data:{}},Tu={passive:!0};function Eu(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=Bl(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Tu)}),s&&c.addEventListener(`resize`,n.update,Tu),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Tu)}),s&&c.removeEventListener(`resize`,n.update,Tu)}}var Du={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Eu,data:{}},Ou={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ku(e){return e.replace(/left|right|bottom|top/g,function(e){return Ou[e]})}var Au={start:`end`,end:`start`};function ju(e){return e.replace(/start|end/g,function(e){return Au[e]})}function Mu(e){var t=Bl(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Nu(e){return $l(iu(e)).left+Mu(e).scrollLeft}function Pu(e,t){var n=Bl(e),r=iu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=Ql();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Nu(e),y:c}}function Fu(e){var t=iu(e),n=Mu(e),r=e.ownerDocument?.body,i=Jl(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Jl(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Nu(e),s=-n.scrollTop;return nu(r||t).direction===`rtl`&&(o+=Jl(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Iu(e){var t=nu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Lu(e){return[`html`,`body`,`#document`].indexOf(zl(e))>=0?e.ownerDocument.body:Hl(e)&&Iu(e)?e:Lu(au(e))}function Ru(e,t){t===void 0&&(t=[]);var n=Lu(e),r=n===e.ownerDocument?.body,i=Bl(n),a=r?[i].concat(i.visualViewport||[],Iu(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Ru(au(a)))}function zu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Bu(e,t){var n=$l(e,!1,t===`fixed`);return n.top+=e.clientTop,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 Vu(e,t,n){return t===`viewport`?zu(Pu(e,n)):Vl(t)?Bu(t,n):zu(Fu(iu(e)))}function Hu(e){var t=Ru(au(e)),n=[`absolute`,`fixed`].indexOf(nu(e).position)>=0&&Hl(e)?cu(e):e;return Vl(n)?t.filter(function(e){return Vl(e)&&tu(e,n)&&zl(e)!==`body`}):[]}function Uu(e,t,n,r){var i=t===`clippingParents`?Hu(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Vu(e,n,r);return t.top=Jl(i.top,t.top),t.right=Yl(i.right,t.right),t.bottom=Yl(i.bottom,t.bottom),t.left=Jl(i.left,t.left),t},Vu(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Wu(e){var t=e.reference,n=e.element,r=e.placement,i=r?ql(r):null,a=r?yu(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case El:c={x:o,y:t.y+t.height};break;case Dl:c={x:t.x+t.width,y:s};break;case Ol:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?lu(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case jl:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function Gu(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Ml:s,l=n.rootBoundary,u=l===void 0?Nl:l,d=n.elementContext,f=d===void 0?Pl:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=pu(typeof g==`number`?mu(g,Al):g),v=f===`popper`?Fl:Pl,y=e.rects.popper,b=e.elements[m?v:f],x=Uu(Vl(b)?b:b.contextElement||iu(e.elements.popper),c,u,o),S=$l(e.elements.reference),C=Wu({reference:S,element:y,strategy:`absolute`,placement:i}),w=zu(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function Ku(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Ll:c,u=yu(r),d=u?s?Il:Il.filter(function(e){return yu(e)===u}):Al,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Gu(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[ql(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function qu(e){if(ql(e)===`auto`)return[];var t=ku(e);return[ju(e),t,ju(t)]}function Ju(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=ql(g)===g,v=c||(_||!m?[ku(g)]:qu(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(ql(n)===`auto`?Ku(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=ql(E),O=yu(E)===jl,ee=[`top`,El].indexOf(D)>=0,te=ee?`width`:`height`,k=Gu(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),A=ee?O?Dl:Ol:O?El:`top`;b[te]>x[te]&&(A=ku(A));var ne=ku(A),j=[];if(a&&j.push(k[D]<=0),s&&j.push(k[A]<=0,k[ne]<=0),j.every(function(e){return e})){w=E,C=!1;break}S.set(E,j)}if(C)for(var re=m?3:1,ie=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ae=re;ae>0&&ie(ae)!==`break`;ae--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var Yu={name:`flip`,enabled:!0,phase:`main`,fn:Ju,requiresIfExists:[`offset`],data:{_skip:!1}};function Xu(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 Zu(e){return[`top`,Dl,El,Ol].some(function(t){return e[t]>=0})}function Qu(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Gu(t,{elementContext:`reference`}),s=Gu(t,{altBoundary:!0}),c=Xu(o,r),l=Xu(s,i,a),u=Zu(c),d=Zu(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var $u={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:Qu};function ed(e,t,n){var r=ql(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function td(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Ll.reduce(function(e,n){return e[n]=ed(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var nd={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:td};function rd(e){var t=e.state,n=e.name;t.modifiersData[n]=Wu({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var id={name:`popperOffsets`,enabled:!0,phase:`read`,fn:rd,data:{}};function ad(e){return e===`x`?`y`:`x`}function od(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=Gu(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=ql(t.placement),v=yu(t.placement),y=!v,b=lu(_),x=ad(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var ee=b===`y`?`top`:Ol,te=b===`y`?El:Dl,k=b===`y`?`height`:`width`,A=S[b],ne=A+g[ee],j=A-g[te],re=p?-w[k]/2:0,ie=v===`start`?C[k]:w[k],ae=v===`start`?-w[k]:-C[k],oe=t.elements.arrow,se=p&&oe?eu(oe):{width:0,height:0},M=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:fu(),ce=M[ee],le=M[te],ue=uu(0,C[k],se[k]),de=y?C[k]/2-re-ue-ce-E.mainAxis:ie-ue-ce-E.mainAxis,fe=y?-C[k]/2+re+ue+le+E.mainAxis:ae+ue+le+E.mainAxis,pe=t.elements.arrow&&cu(t.elements.arrow),me=pe?b===`y`?pe.clientTop||0:pe.clientLeft||0:0,he=D?.[b]??0,ge=A+de-he-me,_e=A+fe-he,ve=uu(p?Yl(ne,ge):ne,A,p?Jl(j,_e):j);S[b]=ve,O[b]=ve-A}if(s){var N=b===`x`?`top`:Ol,ye=b===`x`?El:Dl,be=S[x],xe=x===`y`?`height`:`width`,Se=be+g[N],Ce=be-g[ye],we=[`top`,Ol].indexOf(_)!==-1,Te=D?.[x]??0,Ee=we?Se:be-C[xe]-w[xe]-Te+E.altAxis,De=we?be+C[xe]+w[xe]-Te-E.altAxis:Ce,Oe=p&&we?du(Ee,be,De):uu(p?Ee:Se,be,p?De:Ce);S[x]=Oe,O[x]=Oe-be}t.modifiersData[r]=O}}var sd={name:`preventOverflow`,enabled:!0,phase:`main`,fn:od,requiresIfExists:[`offset`]};function cd(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ld(e){return e===Bl(e)||!Hl(e)?Mu(e):cd(e)}function ud(e){var t=e.getBoundingClientRect(),n=Xl(t.width)/e.offsetWidth||1,r=Xl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function dd(e,t,n){n===void 0&&(n=!1);var r=Hl(t),i=Hl(t)&&ud(t),a=iu(t),o=$l(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((zl(t)!==`body`||Iu(a))&&(s=ld(t)),Hl(t)?(c=$l(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Nu(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function fd(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function pd(e){var t=fd(e);return Rl.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function md(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function hd(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var gd={placement:`bottom`,modifiers:[],strategy:`absolute`};function _d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function vd(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?gd:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},gd,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:Vl(e)?Ru(e):e.contextElement?Ru(e.contextElement):[],popper:Ru(t)};var s=pd(hd([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(_d(t,n)){i.rects={reference:dd(t,cu(n),i.options.strategy===`fixed`),popper:eu(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:md(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!_d(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var yd=vd({defaultModifiers:[Du,id,wu,Kl,nd,Yu,sd,vu,$u]});function bd(e){return typeof e==`string`}function xd(e,t,n){return e===void 0||bd(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Sd(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Cd(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function wd(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=La(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=Sd({...i,...r}),s=Cd(r),c=Cd(i),l=t(o),u=La(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function Td(e,t,n){return typeof e==`function`?e(t,n):e}function Ed(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:Td(n,r),{props:s,internalRef:c}=wd({...a,externalSlotProps:o}),l=yl(c,o?.ref,e.additionalProps?.ref);return xd(t,{...s,ref:l},r)}function Dd(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Od(e){return typeof e==`function`?e():e}var kd=P.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=P.useState(null),s=yl(P.isValidElement(n)?Ic(n):null,t);if(eo(()=>{i||o(Od(r)||document.body)},[r,i]),eo(()=>{if(a&&!i)return Dd(t,a),()=>{Dd(t,null)}},[t,a,i]),i){if(P.isValidElement(n)){let e={ref:s};return P.cloneElement(n,e)}return n}return a&&Yc.createPortal(n,a)});function Ad(e){return za(`MuiPopper`,e)}Ba(`MuiPopper`,[`root`]);function jd(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 Md(e){return typeof e==`function`?e():e}function Nd(e){return e.nodeType!==void 0}var Pd=e=>{let{classes:t}=e;return cs({root:[`root`]},Ad,t)},Fd={},Id=P.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=P.useRef(null),_=yl(g,t),v=P.useRef(null),y=yl(v,u),b=P.useRef(y);eo(()=>{b.current=y},[y]),P.useImperativeHandle(u,()=>v.current,[]);let x=jd(c,i),[S,C]=P.useState(x),[w,T]=P.useState(Md(n));P.useEffect(()=>{v.current&&v.current.forceUpdate()}),P.useEffect(()=>{n&&T(Md(n))},[n]),eo(()=>{if(!w||!s)return;let e=e=>{C(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=yd(w,g.current,{placement:x,...l,modifiers:t});b.current(n);let r=g.current;return()=>{if(r){let{style:e}=r,t=e.position,i=e.top,a=e.left,o=e.transform;n.destroy(),e.position=t,e.top=i,e.left=a,e.transform=o}else n.destroy();b.current(null)}},[w,a,o,s,l,x]);let E={placement:S};p!==null&&(E.TransitionProps=p);let D=Pd(e),O=f.root??`div`;return(0,F.jsx)(O,{...Ed({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root}),children:typeof r==`function`?r(E):r})}),Ld=L(P.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=Fd,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=P.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let S;if(i)S=i;else if(n){let e=Md(n);S=e&&Nd(e)?Tl(e).body:Tl(null).body}let C=!l&&s&&(!m||v)?`none`:void 0,w=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,F.jsx)(kd,{disablePortal:o,container:S,children:(0,F.jsx)(Id,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:C,...p},TransitionProps:w,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),Rd=P.forwardRef(function(e,t){let n=Do(),{anchorEl:r,component:i,components:a,componentsProps:o,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,slots:g,slotProps:_,...v}=Rc({props:e,name:`MuiPopper`}),y=g?.root??a?.Root,b={anchorEl:r,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,...v};return(0,F.jsx)(Ld,{as:i,direction:n?`rtl`:`ltr`,slots:{root:y},slotProps:_??o,...b,ref:t})});function zd(e){let t=P.useRef(e);return eo(()=>{t.current=e}),P.useRef((...e)=>(0,t.current)(...e)).current}var Bd=zd,Vd=Fo;function Hd(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=P.useRef(t!==void 0),[o,s]=P.useState(n);return[a?t:o,P.useCallback(e=>{a||s(e)},[])]}var Ud=Hd;function Wd(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=Td(d[e],i),{props:{component:h,...g},internalRef:_}=wd({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=yl(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,xd(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function Gd(e){return za(`MuiTooltip`,e)}var Kd=Ba(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function qd(e){return Math.round(e*1e5)/1e5}var Jd=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return cs({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${z(a.split(`-`)[0])}`],arrow:[`arrow`]},Gd,t)},Yd=L(Rd,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Lc(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:`none`,variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:`auto`}},{props:({open:e})=>!e,style:{pointerEvents:`none`}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Kd.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${Kd.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${Kd.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${Kd.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`0 0`}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Kd.arrow}`]:{left:0,marginLeft:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Kd.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Kd.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Kd.arrow}`]:{left:0,marginLeft:`-0.71em`}}}]}))),Xd=L(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${z(n.placement.split(`-`)[0])}`]]}})(Lc(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${Kd.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`},[`.${Kd.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`},[`.${Kd.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${Kd.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:`center top`,marginTop:`14px`},variants:[{props:({ownerState:e})=>e.arrow,style:{position:`relative`,margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:`8px 16px`,fontSize:e.typography.pxToRem(14),lineHeight:`${qd(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Kd.popper}[data-popper-placement*="left"] &`]:{marginRight:`14px`},[`.${Kd.popper}[data-popper-placement*="right"] &`]:{marginLeft:`14px`}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Kd.popper}[data-popper-placement*="left"] &`]:{marginRight:`24px`},[`.${Kd.popper}[data-popper-placement*="right"] &`]:{marginLeft:`24px`}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Kd.popper}[data-popper-placement*="left"] &`]:{marginLeft:`14px`},[`.${Kd.popper}[data-popper-placement*="right"] &`]:{marginRight:`14px`}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Kd.popper}[data-popper-placement*="left"] &`]:{marginLeft:`24px`},[`.${Kd.popper}[data-popper-placement*="right"] &`]:{marginRight:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${Kd.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${Kd.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),Zd=L(`span`,{name:`MuiTooltip`,slot:`Arrow`})(Lc(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),Qd=!1,$d=new Nc,ef={x:0,y:0};function tf(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var nf=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,components:o={},componentsProps:s={},describeChild:c=!1,disableFocusListener:l=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:f=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:h=700,followCursor:g=!1,id:_,leaveDelay:v=0,leaveTouchDelay:y=1500,onClose:b,onOpen:x,open:S,placement:C=`bottom`,PopperComponent:w,PopperProps:T={},slotProps:E={},slots:D={},title:O,TransitionComponent:ee,TransitionProps:te,...k}=n,A=P.isValidElement(i)?i:(0,F.jsx)(`span`,{children:i}),ne=bc(),j=Do(),[re,ie]=P.useState(),[ae,oe]=P.useState(null),se=P.useRef(!1),M=d||g,ce=Pc(),le=Pc(),ue=Pc(),de=Pc(),[fe,pe]=Ud({controlled:S,default:!1,name:`Tooltip`,state:`open`}),me=fe,he=Vd(_),ge=P.useRef(),_e=Bd(()=>{ge.current!==void 0&&(document.body.style.WebkitUserSelect=ge.current,ge.current=void 0),de.clear()});P.useEffect(()=>_e,[_e]);let ve=e=>{$d.clear(),Qd=!0,pe(!0),x&&!me&&x(e)},N=Bd(e=>{$d.start(800+v,()=>{Qd=!1}),pe(!1),b&&me&&b(e),ce.start(ne.transitions.duration.shortest,()=>{se.current=!1})}),ye=e=>{se.current&&e.type!==`touchstart`||(re&&re.removeAttribute(`title`),le.clear(),ue.clear(),p||Qd&&m?le.start(Qd?m:p,()=>{ve(e)}):ve(e))},be=e=>{le.clear(),ue.start(v,()=>{N(e)})},[,xe]=P.useState(!1),Se=e=>{let t=e?.target??re;if(!t||!Fc(t)){xe(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),be(n)}},Ce=e=>{re||ie(e.currentTarget),Fc(e.target)&&(xe(!0),ye(e))},we=e=>{se.current=!0;let t=A.props;t.onTouchStart&&t.onTouchStart(e)},Te=e=>{we(e),ue.clear(),ce.clear(),_e(),ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,de.start(h,()=>{document.body.style.WebkitUserSelect=ge.current,ye(e)})},Ee=e=>{A.props.onTouchEnd&&A.props.onTouchEnd(e),_e(),ue.start(y,()=>{N(e)})};P.useEffect(()=>{if(!me)return;function e(e){e.key===`Escape`&&N(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[N,me]);let De=bl(Ic(A),ie,t);!O&&O!==0&&(me=!1);let Oe=P.useRef(),ke=e=>{let t=A.props;t.onMouseMove&&t.onMouseMove(e),ef={x:e.clientX,y:e.clientY},Oe.current&&Oe.current.update()},Ae={},je=typeof O==`string`;c?(Ae.title=!me&&je&&!u?O:null,Ae[`aria-describedby`]=me?he:null):(Ae[`aria-label`]=je?O:null,Ae[`aria-labelledby`]=me&&!je?he:null);let Me={...Ae,...k,...A.props,className:La(k.className,A.props.className),onTouchStart:we,ref:De,...g?{onMouseMove:ke}:{}},Ne={};f||(Me.onTouchStart=Te,Me.onTouchEnd=Ee),u||(Me.onMouseOver=tf(ye,Me.onMouseOver),Me.onMouseLeave=tf(be,Me.onMouseLeave),M||(Ne.onMouseOver=ye,Ne.onMouseLeave=be)),l||(Me.onFocus=tf(Ce,Me.onFocus),Me.onBlur=tf(Se,Me.onBlur),M||(Ne.onFocus=Ce,Ne.onBlur=Se));let Pe={...n,isRtl:j,arrow:r,disableInteractive:M,placement:C,PopperComponentProp:w,touch:se.current},Fe=typeof E.popper==`function`?E.popper(Pe):E.popper,Ie=P.useMemo(()=>{let e=[{name:`arrow`,enabled:!!ae,options:{element:ae,padding:4}}];return T.popperOptions?.modifiers&&(e=e.concat(T.popperOptions.modifiers)),Fe?.popperOptions?.modifiers&&(e=e.concat(Fe.popperOptions.modifiers)),{...T.popperOptions,...Fe?.popperOptions,modifiers:e}},[ae,T.popperOptions,Fe?.popperOptions]),Le=Jd(Pe),Re=typeof E.transition==`function`?E.transition(Pe):E.transition,ze={slots:{popper:o.Popper,transition:o.Transition??ee,tooltip:o.Tooltip,arrow:o.Arrow,...D},slotProps:{arrow:E.arrow??s.arrow,popper:{...T,...Fe??s.popper},tooltip:E.tooltip??s.tooltip,transition:{...te,...Re??s.transition}}},[Be,Ve]=Wd(`popper`,{elementType:Yd,externalForwardedProps:ze,ownerState:Pe,className:La(Le.popper,T?.className)}),[He,Ue]=Wd(`transition`,{elementType:wl,externalForwardedProps:ze,ownerState:Pe}),[We,Ge]=Wd(`tooltip`,{elementType:Xd,className:Le.tooltip,externalForwardedProps:ze,ownerState:Pe}),[Ke,qe]=Wd(`arrow`,{elementType:Zd,className:Le.arrow,externalForwardedProps:ze,ownerState:Pe,ref:oe});return(0,F.jsxs)(P.Fragment,{children:[P.cloneElement(A,Me),(0,F.jsx)(Be,{as:w??Rd,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:ef.y,left:ef.x,right:ef.x,bottom:ef.y,width:0,height:0})}:re,popperRef:Oe,open:re?me:!1,id:he,transition:!0,...Ne,...Ve,popperOptions:Ie,children:({TransitionProps:e})=>(0,F.jsx)(He,{timeout:ne.transitions.duration.shorter,...e,...Ue,children:(0,F.jsxs)(We,{...Ge,children:[O,r?(0,F.jsx)(Ke,{...qe}):null]})})})]})}),rf=s({greaterThan:()=>sf,greaterThanEqual:()=>lf,lessThan:()=>of,lessThanEqual:()=>cf}),af=e=>({...e,category:`comparison`}),of=af({name:`Less than`,latex:`<`,command:`\\lt`}),sf=af({name:`Greater than`,latex:`>`,command:`\\gt`}),cf=af({name:`Less than or equal`,latex:`\\le`,symbol:`<=`,command:`\\le`,ariaLabel:`less than or equal to`}),lf=af({name:`Greater than or equal`,symbol:`>=`,command:`\\ge`,latex:`\\ge`}),uf=e=>t=>({...t,category:e}),df=(e=[])=>{let t=[];Lt(5,()=>t.push([]));let n=e.length,r=0,i=0;for(;i<n;)t[r++].push(e[i++]),r===5&&(r=0);return t},ff=e=>t=>{let n=jt(e),r=n.some(e=>e.latex===t.latex),i=n.some(e=>e.name===t.name);return!r&&!i},pf=(e=[],t=[])=>{t=t.filter(ff(e));let n=[];Lt(5-e.length,()=>e.push([])),Lt(5,()=>n.push([]));let r=df(t);for(let t=0;t<5;t++)n[t]=[...e[t],...r[t]];return n},mf=s({theta:()=>vf,x:()=>gf,y:()=>_f}),hf=uf(`vars`),gf=hf({name:`X`,latex:`x`,write:`x`}),_f=hf({name:`Y`,latex:`y`,write:`y`}),vf=hf({name:`Theta`,latex:`\\theta`,write:`\\theta`}),yf=s({blankOverBlank:()=>xf,xBlankBlank:()=>Cf,xOverBlank:()=>Sf}),bf=uf(`fractions`),xf=bf({name:`blank/blank`,latex:`\\frac{}{}`,command:`\\frac`,ariaLabel:`fraction`}),Sf=bf({latex:`\\frac{x}{ }`,name:`X/blank`,label:`x/[]`,command:`/`,ariaLabel:`x over blank fraction`}),Cf=bf({name:`X (blank/blank)`,latex:`x\\frac{}{}`,label:`x([]/[])`,command:`\\frac`,ariaLabel:`mixed number`}),wf=s({nthRoot:()=>kf,squareRoot:()=>Of,squared:()=>Ef,xToPowerOfN:()=>Df}),Tf=uf(`exponent`),Ef=Tf({name:`Squared`,latex:`x^2`,write:`^2`}),Df=Tf({name:`X to the power of n`,latex:`x^{}`,command:`^`,ariaLabel:`exponent`}),Of=Tf({name:`Square root`,latex:`\\sqrt{}`,command:`\\sqrt`}),kf=Tf({name:`Nth root`,latex:`\\sqrt[{}]{}`,command:`\\nthroot`}),Af=s({absValue:()=>Nf,approx:()=>Lf,brackets:()=>Ff,nApprox:()=>Rf,notEqual:()=>zf,notSimilar:()=>Vf,parenthesis:()=>Pf,percentage:()=>If,plusMinus:()=>Mf,similar:()=>Bf}),jf=uf(`misc`),Mf=jf({name:`Plus or Minus`,latex:`\\pm`,write:`\\pm`}),Nf=jf({name:`Absolute Value`,latex:`\\abs{}`,symbol:`| |`,command:`|`}),Pf=jf({name:`Parenthesis`,latex:`\\left(\\right)`,symbol:`( )`,command:`(`}),Ff=jf({name:`Brackets`,latex:`\\left[\\right]`,symbol:`[ ]`,command:`[`}),If=jf({name:`Percent`,latex:`%`,command:`%`}),Lf=jf({latex:`\\approx`,command:`\\approx`,ariaLabel:`Approximately equal to`}),Rf=jf({latex:`\\napprox`,command:`\\napprox`,ariaLabel:`Not pproximately equal to`}),zf=jf({latex:`\\neq`,command:`\\neq`,ariaLabel:`Not equals`}),Bf=jf({latex:`\\sim`,command:`\\sim`,ariaLabel:`Similar`}),Vf=jf({latex:`\\nsim`,command:`\\nsim`,ariaLabel:`Not similar`}),Hf=s({eulers:()=>Gf,halfInfinity:()=>qf,infinity:()=>Kf,pi:()=>Wf}),Uf=uf(`constants`),Wf=Uf({name:`Pi`,label:`π`,latex:`\\pi`,command:`\\pi`,category:`constants`}),Gf=Uf({name:`Eulers`,label:`e`,latex:`e`,command:`e`,category:`constants`}),Kf=Uf({name:`Infinity`,label:`\\infty`,latex:`\\infty`,command:`\\infty`,category:`constants`}),qf=Uf({name:`Half Infinity`,label:`\\propto`,latex:`\\propto`,command:`\\propto`,category:`constants`}),Jf=s({cos:()=>Zf,cot:()=>tp,csc:()=>ep,sec:()=>$f,sin:()=>Xf,tan:()=>Qf}),Yf=uf(`trigonometry`),Xf=Yf({name:`sine`,label:`sin`,command:`\\sin`,latex:`\\sin`}),Zf=Yf({name:`cosine`,label:`cos`,command:`\\cos`,latex:`\\cos`}),Qf=Yf({name:`tanget`,label:`tan`,command:`\\tan`,latex:`\\tan`}),$f=Yf({name:`secant`,label:`sec`,command:`\\sec`,latex:`\\sec`}),ep=Yf({name:`cosecant`,label:`csc`,command:`\\csc`,latex:`\\csc`}),tp=Yf({name:`cotangent`,label:`cot`,command:`\\cot`,latex:`\\cot`}),np=s({angle:()=>dp,circledDot:()=>_p,congruentTo:()=>bp,degree:()=>vp,doublePrimeArcSecond:()=>Cp,leftArrow:()=>wp,leftrightArrow:()=>Ep,measureOfAngle:()=>pp,notCongruentTo:()=>xp,notParallel:()=>lp,overArc:()=>fp,overLeftRightArrow:()=>op,overRightArrow:()=>ap,overline:()=>ip,parallel:()=>cp,parallelogram:()=>gp,perpindicular:()=>up,primeArcminute:()=>Sp,rightArrow:()=>Tp,segment:()=>sp,similarTo:()=>yp,square:()=>hp,triangle:()=>mp}),rp=e=>({...e,category:`geometry`}),ip=rp({name:`Line`,latex:`\\overline{}`,command:`\\overline`}),ap=rp({name:`Ray`,latex:`\\overrightarrow{}`,command:`\\overrightarrow`}),op=rp({name:`Segment`,latex:`\\overleftrightarrow{\\overline{}}`,symbol:`AB`,command:`\\overleftrightarrow`}),sp=rp({name:`Segment`,latex:`\\overleftrightarrow{AB}`,write:`\\overleftrightarrow{AB}`,label:`AB`}),cp=rp({name:`Parallel`,latex:`\\parallel`,command:`\\parallel`}),lp=rp({name:`Not Parallel`,latex:`\\nparallel`,command:`\\nparallel`}),up=rp({name:`Perpendicular`,latex:`\\perp`,command:`\\perpendicular`}),dp=rp({name:`Angle`,latex:`\\angle`,command:`\\angle`}),fp=rp({name:`Over arc`,latex:`\\overarc{\\overline{}}`,command:`\\overarc`}),pp=rp({name:`Measured Angle`,latex:`\\measuredangle`,command:[`m`,`\\angle`]}),mp=rp({name:`Triangle`,latex:`\\triangle`,command:`\\triangle`}),hp=rp({name:`Square`,latex:`\\square`,command:`\\square`}),gp=rp({name:`Parallelogram`,latex:`\\parallelogram`,command:`\\parallelogram`}),_p=rp({name:`Circled Dot`,latex:`\\odot`,command:`\\odot`}),vp=rp({name:`Degree`,latex:`\\degree`,command:`\\degree`}),yp=rp({name:`Similar`,command:`\\sim`,latex:`\\sim`}),bp=rp({name:`Congruent To`,command:`\\cong`,latex:`\\cong`}),xp=rp({name:`Not Congruent To`,command:`\\ncong`,latex:`\\ncong`}),Sp=rp({name:`Prime`,label:`pam`,latex:`'`,write:`'`}),Cp=rp({name:`Double Prime`,latex:`''`,write:`''`}),wp=rp({name:`Left Arrow`,latex:`\\leftarrow`,command:`\\leftarrow`}),Tp=rp({name:`Right Arrow`,latex:`\\rightarrow`,command:`\\rightarrow`}),Ep=rp({name:`Left and Right Arrow`,latex:`\\leftrightarrow`,command:`\\leftrightarrow`}),Dp=s({circleDot:()=>Op}),Op=uf(`operators`)({name:`CircleDot`,label:`⋅`,write:`\\cdot`,ariaLabel:`Dot multiplier`}),kp=s({ln:()=>Np,log:()=>jp,logSubscript:()=>Mp}),Ap=uf(`log`),jp=Ap({name:`Log`,label:`log`,command:`\\log`,latex:`\\log`}),Mp=Ap({name:`log base n`,label:`log s`,latex:`\\log_{}`,command:[`\\log`,`_`]}),Np=Ap({name:`natural log`,label:`ln`,command:`\\ln`,latex:`\\ln`}),Pp=s({subscript:()=>Lp,superscript:()=>Ip}),Fp=uf(`sub-sup`),Ip=Fp({name:`Superscript`,latex:`x^{}`,command:`^`}),Lp=Fp({name:`Subscript`,latex:`x_{}`,command:`_`}),Rp=s({mu:()=>Hp,sigma:()=>Up,smallSigma:()=>Wp,xBar:()=>Bp,yBar:()=>Vp}),zp=uf(`statistics`),Bp=zp({name:`X Bar`,label:`x̄`,latex:`\\overline{x}`,write:`\\overline{x}`}),Vp=zp({name:`Y Bar`,latex:`\\overline{y}`,write:`\\overline{y}`}),Hp=zp({name:`mu`,label:`mu`,latex:`\\mu`,write:`\\mu`}),Up=zp({name:`Sigma`,ariaLabel:`Uppercase Sigma`,label:`\\Sigma`,latex:`\\Sigma`,write:`\\Sigma`}),Wp=zp({name:`sigma`,ariaLabel:`Lowercase Sigma`,label:`\\sigma`,latex:`\\sigma`,write:`\\sigma`}),Gp=s({divide:()=>Xp,equals:()=>qp,minus:()=>Yp,multiply:()=>Zp,plus:()=>Jp}),Kp=uf(`operators`),qp=Kp({write:`=`,label:`=`}),Jp=Kp({write:`+`,label:`+`}),Yp=Kp({write:`−`,label:`−`}),Xp=Kp({name:`divide`,label:`÷`,command:`\\divide`,otherNotation:`\\div`}),Zp=Kp({name:`multiply`,label:`×`,command:`\\times`}),Qp=s({doubleCellMatrix:()=>tm,singleCellMatrix:()=>em}),$p=uf(`matrices`),em=$p({name:`Single Cell Matrix`,label:`[ ]`,write:`\\begin{pmatrix}\\end{pmatrix}`}),tm=$p({name:`Double Cell Matrix`,label:`[ ] [ ] \\\\newline [ ] [ ]`,write:`\\begin{bmatrix}&\\\\&\\end{bmatrix}`}),nm={0:`zero`,1:`one`,2:`two`,3:`three`,4:`four`,5:`five`,6:`six`,7:`seven`,8:`eight`,9:`nine`},B=Lt(10,String).map(e=>({name:nm[e],write:e,label:e,category:`digit`})).reduce((e,t)=>(e[t.name]=t,e),{comma:{name:`comma`,label:`,`,write:`,`,category:`digit`},decimalPoint:{name:`decimal-point`,label:`.`,write:`.`,category:`digit`}}),rm=uf(`logic`),im=rm({name:`Therefore`,label:`∴`,write:`∴`}),am=rm({name:`Long division`,latex:`\\longdiv{}`,command:`\\longdiv`}),om=uf(`navigation`),sm=om({label:`◀`,keystroke:`Left`,ariaLabel:`Move cursor left`}),cm=om({label:`▶`,keystroke:`Right`,ariaLabel:`Move cursor right`}),lm={label:`⌫`,category:`edit`,keystroke:`Backspace`,ariaLabel:`Delete`},um=[[xf,If,gf,Ef,Of],[Op,_f,Lp,Df,kf],[Mf,of,sf,cf,lf],[Wf,vf,Pf,Ff,Nf],[zf,Xf,Zf,Qf,vp]],dm=(()=>{let e=[...um.map(e=>[...e])];return e[0].push({name:`i`,latex:`i`,write:`i`}),e[1].push(jp),e[2].push(Mp),e[3].push(Np),e[4].push(Gf),e})(),fm=(()=>{let e=[...um.map(e=>[...e])];return e[0].push(Hp),e[1].push(Bp),e[2].push(Vp),e[3].push(Up),e[4].push(Wp),e})(),pm=[{predicate:e=>e>=3&&e<=5,set:[[of,sf],[Sf,Cf],[gf,am],[Ef,Df]]},{predicate:e=>e>=6&&e<=7,set:[[vp,of,sf],[Op,cf,lf],[gf,_f,Ef,Df],[Mf,Sf,Cf,Of],[Wf,Pf,Nf,kf]]},{predicate:e=>e>=8||e===`HS`,set:um},{predicate:`non-negative-integers`,set:[[B.seven,B.eight,B.nine],[B.four,B.five,B.six],[B.one,B.two,B.three],[B.zero,{name:``,latex:``,write:``},{name:``,latex:``,write:``}],[sm,cm,lm]]},{predicate:`integers`,set:[[B.seven,B.eight,B.nine],[B.four,B.five,B.six],[B.one,B.two,B.three],[B.zero,{name:``,latex:``,write:``},Yp],[sm,cm,lm]]},{predicate:`decimals`,set:[[B.seven,B.eight,B.nine],[B.four,B.five,B.six],[B.one,B.two,B.three],[B.zero,B.decimalPoint,Yp],[sm,cm,lm]]},{predicate:`fractions`,set:[[B.seven,B.eight,B.nine],[B.four,B.five,B.six],[B.one,B.two,B.three],[B.zero,xf,Yp],[sm,cm,lm]]},{predicate:`geometry`,set:[[xf,vp,Sp,Cp,bp,yp],[Op,dp,pp,mp,xp,Vf],[Xf,Zf,Qf,Wf,Of,kf],[ep,$f,tp,vf,Lp,Df],[ip,ap,op,fp,up,cp]]},{predicate:`advanced-algebra`,set:dm},{predicate:`statistics`,set:fm},{predicate:`item-authoring`,set:[[Xp,xf,am,qf,Ef,Of,ip,ap,op,jp],[Zp,Op,{name:``,latex:``,write:``},Lp,Df,kf,up,cp,fp,Mp],[Mf,Wf,vf,vp,dp,wp,Tp,mp,hp,Np],[zf,Nf,Wp,Hp,im,Up,Ep,Xf,Zf,Qf],[cf,lf,{name:``,latex:``,write:``},{name:``,latex:``,write:``},Kf,{name:``,latex:``,write:``},{name:``,latex:``,write:``},ep,$f,tp]]},{predicate:e=>e>=1&&e<=2,set:[]}],mm=e=>{let t=parseInt(e,10);if(e=isNaN(t)?e:t,!e)return[];let n=pm.find(t=>typeof t.predicate==`string`?t.predicate===e:t.predicate(e));if(n)return n.set||[];if(e!==`language`)return pm[2].set},hm=[...Object.values(Gp),...Object.values(rf),...Object.values(Hf),...Object.values(B),...Object.values(wf),...Object.values(yf),...Object.values(np),...Object.values(kp),...Object.values(Qp),...Object.values(Af),...Object.values(Dp),...Object.values(Rp),...Object.values(Pp),...Object.values(Jf),...Object.values(mf)],gm=e=>(e||[]).map(e=>{let{latex:t}=e,n=(hm||[]).find(e=>t===e.latex||t===e.write||t===e.command||t===e.otherNotation);return t&&n||e}),_m=()=>{(Array.from(document.querySelectorAll(`span[mathquill-command-id]`))||[]).forEach(e=>{e&&e.innerText===`∥`&&e.className!==`mq-editable-field`&&(e.style.fontSize=`32px`),(e.innerText===`′`||e.innerText===`′′`)&&!e.hasAttribute(`data-prime`)&&e.setAttribute(`data-prime`,`true`)})},{one:vm,two:ym,three:bm,four:xm,five:Sm,six:Cm,seven:wm,eight:Tm,nine:Em,zero:Dm,comma:Om,decimalPoint:km}=B,Am=[[wm,Tm,Em,Xp],[xm,Sm,Cm,Zp],[vm,ym,bm,Yp],[Dm,km,Om,Jp],[sm,cm,lm,qp]];function jm(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Mm(e){return za(`MuiSvgIcon`,e)}Ba(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Nm=e=>{let{color:t,fontSize:n,classes:r}=e;return cs({root:[`root`,t!==`inherit`&&`color${z(t)}`,`fontSize${z(n)}`]},Mm,r)},Pm=L(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${z(n.color)}`],t[`fontSize${z(n.fontSize)}`]]}})(Lc(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),Fm=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=P.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=Nm(m);return(0,F.jsxs)(Pm,{as:o,className:La(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,F.jsx)(`title`,{children:u}):null]})});Fm.muiName=`SvgIcon`;function Im(e,t){function n(t,n){return(0,F.jsx)(Fm,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Fm.muiName,P.memo(P.forwardRef(n))}function Lm(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Rm=Lm,zm=ls,Bm=Tl;function Vm(e){return Tl(e).defaultView||window}var Hm=Vm,Um=eo;function Wm(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Gm(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Wm(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=La(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=La(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var Km=class e{static create(){return new e}static use(){let t=Ac(e.create).current,[n,r]=P.useState(!1);return t.shouldMount=n,t.setShouldMount=r,P.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Jm(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function qm(){return Km.use()}function Jm(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function Ym(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=P.useState(!1),f=La(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=La(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),P.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,F.jsx)(`span`,{className:f,style:p,children:(0,F.jsx)(`span`,{className:m})})}var Xm=Ba(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Zm=550,Qm=Rr`
44
44
  0% {
45
45
  transform: scale(0);
46
46
  opacity: 0.1;
@@ -50,7 +50,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
50
50
  transform: scale(1);
51
51
  opacity: 0.3;
52
52
  }
53
- `,eh=zr`
53
+ `,$m=Rr`
54
54
  0% {
55
55
  opacity: 1;
56
56
  }
@@ -58,7 +58,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
58
58
  100% {
59
59
  opacity: 0;
60
60
  }
61
- `,th=zr`
61
+ `,eh=Rr`
62
62
  0% {
63
63
  transform: scale(1);
64
64
  }
@@ -70,23 +70,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
70
70
  100% {
71
71
  transform: scale(1);
72
72
  }
73
- `,nh=I(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),rh=I(Xm,{name:`MuiTouchRipple`,slot:`Ripple`})`
73
+ `,th=L(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),nh=L(Ym,{name:`MuiTouchRipple`,slot:`Ripple`})`
74
74
  opacity: 0;
75
75
  position: absolute;
76
76
 
77
- &.${Zm.rippleVisible} {
77
+ &.${Xm.rippleVisible} {
78
78
  opacity: 0.3;
79
79
  transform: scale(1);
80
- animation-name: ${$m};
81
- animation-duration: ${Qm}ms;
80
+ animation-name: ${Qm};
81
+ animation-duration: ${Zm}ms;
82
82
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
83
83
  }
84
84
 
85
- &.${Zm.ripplePulsate} {
85
+ &.${Xm.ripplePulsate} {
86
86
  animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
87
87
  }
88
88
 
89
- & .${Zm.child} {
89
+ & .${Xm.child} {
90
90
  opacity: 1;
91
91
  display: block;
92
92
  width: 100%;
@@ -95,25 +95,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
95
95
  background-color: currentColor;
96
96
  }
97
97
 
98
- & .${Zm.childLeaving} {
98
+ & .${Xm.childLeaving} {
99
99
  opacity: 0;
100
- animation-name: ${eh};
101
- animation-duration: ${Qm}ms;
100
+ animation-name: ${$m};
101
+ animation-duration: ${Zm}ms;
102
102
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
103
103
  }
104
104
 
105
- & .${Zm.childPulsate} {
105
+ & .${Xm.childPulsate} {
106
106
  position: absolute;
107
107
  /* @noflip */
108
108
  left: 0px;
109
109
  top: 0;
110
- animation-name: ${th};
110
+ animation-name: ${eh};
111
111
  animation-duration: 2500ms;
112
112
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
113
113
  animation-iteration-count: infinite;
114
114
  animation-delay: 200ms;
115
115
  }
116
- `,ih=N.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=zc({props:e,name:`MuiTouchRipple`}),[o,s]=N.useState([]),c=N.useRef(0),l=N.useRef(null);N.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=N.useRef(!1),d=Fc(),f=N.useRef(null),p=N.useRef(null),m=N.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,P.jsx)(rh,{classes:{ripple:Ra(r.ripple,Zm.ripple),rippleVisible:Ra(r.rippleVisible,Zm.rippleVisible),ripplePulsate:Ra(r.ripplePulsate,Zm.ripplePulsate),child:Ra(r.child,Zm.child),childLeaving:Ra(r.childLeaving,Zm.childLeaving),childPulsate:Ra(r.childPulsate,Zm.childPulsate)},timeout:Qm,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=N.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=N.useCallback(()=>{h({},{pulsate:!0})},[h]),_=N.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return N.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,P.jsx)(nh,{className:Ra(Zm.root,r.root,i),ref:p,...a,children:(0,P.jsx)(hl,{component:null,exit:!0,children:o})})});function ah(e){return Ba(`MuiButtonBase`,e)}var oh=Va(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),sh=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=ls({root:[`root`,t&&`disabled`,n&&`focusVisible`]},ah,i);return n&&r&&(a.root+=` ${r}`),a},ch=I(`button`,{name:`MuiButtonBase`,slot:`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`},[`&.${oh.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),lh=N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p=`a`,onBlur:m,onClick:h,onContextMenu:g,onDragLeave:_,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:O=0,TouchRippleProps:ee,touchRippleRef:te,type:k,...A}=n,ne=N.useRef(null),j=Jm(),re=xl(j.ref,te),[ie,ae]=N.useState(!1);c&&ie&&ae(!1),N.useImperativeHandle(r,()=>({focusVisible:()=>{ae(!0),ne.current.focus()}}),[]);let oe=j.shouldMount&&!l&&!c;N.useEffect(()=>{ie&&d&&!l&&j.pulsate()},[l,d,ie,j]);let M=uh(j,`start`,S,u),se=uh(j,`stop`,g,u),ce=uh(j,`stop`,_,u),le=uh(j,`stop`,w,u),ue=uh(j,`stop`,e=>{ie&&e.preventDefault(),C&&C(e)},u),de=uh(j,`start`,D,u),fe=uh(j,`stop`,T,u),pe=uh(j,`stop`,E,u),me=uh(j,`stop`,e=>{Ic(e.target)||ae(!1),m&&m(e)},!1),he=Vd(e=>{ne.current||=e.currentTarget,Ic(e.target)&&(ae(!0),y&&y(e)),v&&v(e)}),ge=()=>{let e=ne.current;return e?e.tagName!==`BUTTON`&&!(e.tagName===`A`&&e.href):s&&s!==`button`},_e=Vd(e=>{d&&!e.repeat&&ie&&e.key===` `&&j.stop(e,()=>{j.start(e)}),e.target===e.currentTarget&&ge()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ge()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),ve=Vd(e=>{d&&e.key===` `&&ie&&!e.defaultPrevented&&j.stop(e,()=>{j.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&ge()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),ye=s;ye===`button`&&(A.href||A.to)&&(ye=p);let be={};if(ye===`button`){let e=!!A.formAction;be.type=k===void 0&&!e?`button`:k,be.disabled=c}else!A.href&&!A.to&&(be.role=`button`),c&&(be[`aria-disabled`]=c);let xe=xl(t,ne),Se={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:ie},Ce=sh(Se);return(0,P.jsxs)(ch,{as:ye,className:Ra(Ce.root,o),ownerState:Se,onBlur:me,onClick:h,onContextMenu:se,onFocus:he,onKeyDown:_e,onKeyUp:ve,onMouseDown:M,onMouseLeave:ue,onMouseUp:le,onDragLeave:ce,onTouchEnd:fe,onTouchMove:pe,onTouchStart:de,ref:xe,tabIndex:c?-1:O,type:k,...be,...A,children:[a,oe?(0,P.jsx)(ih,{ref:re,center:i,...ee}):null]})});function uh(e,t,n,r=!1){return Vd(i=>(n&&n(i),r||e[t](i),!0))}function dh(e){return typeof e.main==`string`}function fh(e,t=[]){if(!dh(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function ph(e=[]){return([,t])=>t&&fh(t,e)}function mh(e){return Ba(`MuiCircularProgress`,e)}Va(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var hh=44,gh=zr`
116
+ `,rh=P.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=Rc({props:e,name:`MuiTouchRipple`}),[o,s]=P.useState([]),c=P.useRef(0),l=P.useRef(null);P.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=P.useRef(!1),d=Pc(),f=P.useRef(null),p=P.useRef(null),m=P.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,F.jsx)(nh,{classes:{ripple:La(r.ripple,Xm.ripple),rippleVisible:La(r.rippleVisible,Xm.rippleVisible),ripplePulsate:La(r.ripplePulsate,Xm.ripplePulsate),child:La(r.child,Xm.child),childLeaving:La(r.childLeaving,Xm.childLeaving),childPulsate:La(r.childPulsate,Xm.childPulsate)},timeout:Zm,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=P.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=P.useCallback(()=>{h({},{pulsate:!0})},[h]),_=P.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return P.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,F.jsx)(th,{className:La(Xm.root,r.root,i),ref:p,...a,children:(0,F.jsx)(ml,{component:null,exit:!0,children:o})})});function ih(e){return za(`MuiButtonBase`,e)}var ah=Ba(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),oh=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=cs({root:[`root`,t&&`disabled`,n&&`focusVisible`]},ih,i);return n&&r&&(a.root+=` ${r}`),a},sh=L(`button`,{name:`MuiButtonBase`,slot:`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`},[`&.${ah.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),ch=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p=`a`,onBlur:m,onClick:h,onContextMenu:g,onDragLeave:_,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:O=0,TouchRippleProps:ee,touchRippleRef:te,type:k,...A}=n,ne=P.useRef(null),j=qm(),re=bl(j.ref,te),[ie,ae]=P.useState(!1);c&&ie&&ae(!1),P.useImperativeHandle(r,()=>({focusVisible:()=>{ae(!0),ne.current.focus()}}),[]);let oe=j.shouldMount&&!l&&!c;P.useEffect(()=>{ie&&d&&!l&&j.pulsate()},[l,d,ie,j]);let se=lh(j,`start`,S,u),M=lh(j,`stop`,g,u),ce=lh(j,`stop`,_,u),le=lh(j,`stop`,w,u),ue=lh(j,`stop`,e=>{ie&&e.preventDefault(),C&&C(e)},u),de=lh(j,`start`,D,u),fe=lh(j,`stop`,T,u),pe=lh(j,`stop`,E,u),me=lh(j,`stop`,e=>{Fc(e.target)||ae(!1),m&&m(e)},!1),he=Bd(e=>{ne.current||=e.currentTarget,Fc(e.target)&&(ae(!0),y&&y(e)),v&&v(e)}),ge=()=>{let e=ne.current;return e?e.tagName!==`BUTTON`&&!(e.tagName===`A`&&e.href):s&&s!==`button`},_e=Bd(e=>{d&&!e.repeat&&ie&&e.key===` `&&j.stop(e,()=>{j.start(e)}),e.target===e.currentTarget&&ge()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ge()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),ve=Bd(e=>{d&&e.key===` `&&ie&&!e.defaultPrevented&&j.stop(e,()=>{j.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&ge()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),N=s;N===`button`&&(A.href||A.to)&&(N=p);let ye={};if(N===`button`){let e=!!A.formAction;ye.type=k===void 0&&!e?`button`:k,ye.disabled=c}else!A.href&&!A.to&&(ye.role=`button`),c&&(ye[`aria-disabled`]=c);let be=bl(t,ne),xe={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:ie},Se=oh(xe);return(0,F.jsxs)(sh,{as:N,className:La(Se.root,o),ownerState:xe,onBlur:me,onClick:h,onContextMenu:M,onFocus:he,onKeyDown:_e,onKeyUp:ve,onMouseDown:se,onMouseLeave:ue,onMouseUp:le,onDragLeave:ce,onTouchEnd:fe,onTouchMove:pe,onTouchStart:de,ref:be,tabIndex:c?-1:O,type:k,...ye,...A,children:[a,oe?(0,F.jsx)(rh,{ref:re,center:i,...ee}):null]})});function lh(e,t,n,r=!1){return Bd(i=>(n&&n(i),r||e[t](i),!0))}function uh(e){return typeof e.main==`string`}function dh(e,t=[]){if(!uh(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function fh(e=[]){return([,t])=>t&&dh(t,e)}function ph(e){return za(`MuiCircularProgress`,e)}Ba(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var mh=44,hh=Rr`
117
117
  0% {
118
118
  transform: rotate(0deg);
119
119
  }
@@ -121,7 +121,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
121
121
  100% {
122
122
  transform: rotate(360deg);
123
123
  }
124
- `,_h=zr`
124
+ `,gh=Rr`
125
125
  0% {
126
126
  stroke-dasharray: 1px, 200px;
127
127
  stroke-dashoffset: 0;
@@ -136,65 +136,67 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
136
136
  stroke-dasharray: 1px, 200px;
137
137
  stroke-dashoffset: -126px;
138
138
  }
139
- `,vh=typeof gh==`string`?null:Rr`
140
- animation: ${gh} 1.4s linear infinite;
141
- `,yh=typeof _h==`string`?null:Rr`
142
- animation: ${_h} 1.4s ease-in-out infinite;
143
- `,bh=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return ls({root:[`root`,n,`color${R(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${R(n)}`,i&&`circleDisableShrink`]},mh,t)},xh=I(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${R(n.color)}`]]}})(Rc(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:vh||{animation:`${gh} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ph()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Sh=I(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),Ch=I(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${R(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Rc(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:yh||{animation:`${_h} 1.4s ease-in-out infinite`}}]}))),wh=I(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(Rc(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),Th=N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d=`indeterminate`,...f}=n,p={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d,enableTrackSlot:o},m=bh(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((hh-l)/2);h.strokeDasharray=e.toFixed(3),_[`aria-valuenow`]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform=`rotate(-90deg)`}return(0,P.jsx)(xh,{className:Ra(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,P.jsxs)(Sh,{className:m.svg,ownerState:p,viewBox:`${hh/2} ${hh/2} ${hh} ${hh}`,children:[o?(0,P.jsx)(wh,{className:m.track,ownerState:p,cx:hh,cy:hh,r:(hh-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,P.jsx)(Ch,{className:m.circle,style:h,ownerState:p,cx:hh,cy:hh,r:(hh-l)/2,fill:`none`,strokeWidth:l})]})})});function Eh(e){return Ba(`MuiButton`,e)}var Dh=Va(`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.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.textSizeSmall.textSizeMedium.textSizeLarge.outlinedSizeSmall.outlinedSizeMedium.outlinedSizeLarge.containedSizeSmall.containedSizeMedium.containedSizeLarge.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.iconSizeSmall.iconSizeMedium.iconSizeLarge.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),Oh=N.createContext({}),kh=N.createContext(void 0),Ah=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=ls({root:[`root`,o&&`loading`,a,`${a}${R(t)}`,`size${R(i)}`,`${a}Size${R(i)}`,`color${R(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${R(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${R(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${R(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Eh,c);return{...c,...l}},jh=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Mh=I(lh,{shouldForwardProp:e=>Cc(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${R(n.color)}`],t[`size${R(n.size)}`],t[`${n.variant}Size${R(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Rc(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${Dh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&e.loadingPosition===`start`,style:{"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`}}},{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Dh.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Dh.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${Dh.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(ph()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${Dh.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${Dh.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${Dh.loading}`]:{color:`transparent`}}}]}})),Nh=I(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${R(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...jh]})),Ph=I(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${R(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...jh]})),Fh=I(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),Ih=I(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),Lh=N.forwardRef(function(e,t){let n=N.useContext(Oh),r=N.useContext(kh),i=zc({props:eo(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...C}=i,w=Hd(h),T=_??(0,P.jsx)(Th,{"aria-labelledby":w,color:`inherit`,size:16}),E={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:T,loadingPosition:v,size:y,type:x,variant:S},D=Ah(E),O=(b||g&&v===`start`)&&(0,P.jsx)(Nh,{className:D.startIcon,ownerState:E,children:b||(0,P.jsx)(Ih,{className:D.loadingIconPlaceholder,ownerState:E})}),ee=(f||g&&v===`end`)&&(0,P.jsx)(Ph,{className:D.endIcon,ownerState:E,children:f||(0,P.jsx)(Ih,{className:D.loadingIconPlaceholder,ownerState:E})}),te=r||``,k=typeof g==`boolean`?(0,P.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,P.jsx)(Fh,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:A,...ne}=D;return(0,P.jsxs)(Mh,{ownerState:E,className:Ra(n.className,D.root,c,te),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:Ra(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:ne,children:[O,v!==`end`&&k,a,v===`end`&&k,ee]})});function Rh(e){return Ba(`MuiIconButton`,e)}var zh=Va(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),Bh=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return ls({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${R(r)}`,i&&`edge${R(i)}`,`size${R(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Rh,t)},Vh=I(lh,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${R(n.color)}`],n.edge&&t[`edge${R(n.edge)}`],t[`size${R(n.size)}`]]}})(Rc(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),Rc(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(ph()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ph()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${zh.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${zh.loading}`]:{color:`transparent`}}))),Hh=I(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),Uh=N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=Hd(u),h=f??(0,P.jsx)(Th,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=Bh(g);return(0,P.jsxs)(Vh,{id:d?m:u,className:Ra(_.root,a),centerRipple:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,P.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,P.jsx)(Hh,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),Wh=()=>{};function Gh(){let e=function(){};return e.enabled=!1,e.log=Wh,e.extend=()=>e,e.destroy=Wh,e}Gh.log=Wh,Gh.enable=Wh,Gh.disable=()=>``,Gh.enabled=()=>!1;var Kh=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,qh=({size:e,children:t})=>(e=Kh(e),(0,P.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));qh.propTypes={size:O.number,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var Jh=({size:e,children:t,sx:n})=>(0,P.jsx)(qh,{size:e,children:(0,P.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t})});Jh.propTypes={size:O.oneOfType([O.string,O.number]),children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,sx:O.object};var Yh=({fill:e})=>(0,P.jsx)(`polygon`,{points:`17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7`,fill:e});Yh.propTypes={fill:O.string.isRequired};var Xh=({fill:e})=>(0,P.jsx)(`polygon`,{transform:`translate(2, 0)`,points:`34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3`,fill:e});Xh.propTypes={fill:O.string.isRequired};var Zh=({fill:e})=>(0,P.jsx)(`path`,{transform:`translate(1, 0)`,d:`M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z`,fill:e});Zh.propTypes={fill:O.string.isRequired};var Qh=({fill:e})=>(0,P.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});Qh.propTypes={fill:O.string.isRequired};var $h=({fill:e})=>(0,P.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});$h.propTypes={fill:O.string.isRequired};var eg=(e,t)=>{class n extends N.Component{static propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,size:O.oneOfType([O.number,O.string]),fg:O.string,bg:O.string};static defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,size:30,fg:`#4aaf46`,bg:`#f8ffe2`};render(){let{iconSet:n,shape:r,category:i,open:a,size:o,fg:s,bg:c}=this.props,l=n===`check`?(0,P.jsx)(e,{fill:s}):(0,P.jsx)(t,{fill:s}),u=n===`check`?(0,P.jsx)(e,{fill:c}):(0,P.jsx)(t,{fill:c});return a?(0,P.jsx)(Jh,{size:o,children:u}):(0,P.jsxs)(Jh,{size:o,children:[i===`feedback`?r===`round`?(0,P.jsx)(Zh,{fill:c}):(0,P.jsx)(Xh,{fill:c}):r===`round`?(0,P.jsx)(Qh,{fill:c}):(0,P.jsx)($h,{fill:c}),l]})}}return n},tg=({fill:e})=>(0,P.jsxs)(`g`,{transform:`translate(1, 0)`,children:[(0,P.jsx)(`path`,{d:`M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2
144
- c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e}),(0,P.jsx)(`rect`,{x:`21.1`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e}),(0,P.jsx)(`rect`,{x:`12.7`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e})]});tg.propTypes={fill:O.string.isRequired};var ng=({fill:e,x:t=0,y:n=0})=>(0,P.jsx)(`polygon`,{transform:`translate(${t}, ${n})`,points:`19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4`,fill:e});ng.propTypes={fill:O.string.isRequired,x:O.number,y:O.number};var rg=eg(ng,tg);rg.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},rg.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};var ig=({bgFill:e,fgFill:t})=>(0,P.jsxs)(`svg`,{"aria-hidden":`true`,focusable:`false`,preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-283 359 34 35`,style:{enableBackground:`new -283 359 34 35`},children:[(0,P.jsx)(`circle`,{cx:`-266`,cy:`375.9`,r:`14`,fill:e}),(0,P.jsx)(`path`,{d:`M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z
145
- M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z`,fill:e}),(0,P.jsx)(`polygon`,{points:`-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6`,fill:t})]});ig.propTypes={bgFill:O.string.isRequired,fgFill:O.string.isRequired};var ag=({bgFill:e,fgFill:t,borderFill:n})=>(0,P.jsxs)(`svg`,{"aria-hidden":`true`,focusable:`false`,preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-129.5 127 34 35`,style:{enableBackground:`new -129.5 127 34 35`},children:[(0,P.jsx)(`path`,{style:{fill:`#D0CAC5`,stroke:`#E6E3E0`,strokeWidth:.75,strokeMiterlimit:10},d:`M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5
146
- C-97.4,153.5-104.3,160.4-112.9,160.4z`}),(0,P.jsx)(`path`,{style:{fill:`#B3ABA4`,stroke:`#CDC7C2`,strokeWidth:.5,strokeMiterlimit:10},d:`M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z`}),(0,P.jsx)(`circle`,{cx:`-114.2`,cy:`143.5`,r:`14`,fill:e}),(0,P.jsx)(`path`,{d:`M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z
147
- M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z`,fill:n}),(0,P.jsx)(`polygon`,{points:`-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2`,fill:t})]});ag.propTypes={bgFill:O.string.isRequired,fgFill:O.string.isRequired,borderFill:O.string.isRequired};var og=I(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),sg=({open:e,size:t})=>(0,P.jsx)(og,{size:t,children:e?(0,P.jsx)(ig,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,P.jsx)(ag,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});sg.propTypes={open:O.bool,size:O.string},sg.defaultProps={open:!1};var cg=({fill:e})=>(0,P.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,P.jsx)(`rect`,{x:`11`,y:`17.3`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)`,width:`16.6`,height:`3.7`,fill:e}),(0,P.jsx)(`rect`,{x:`17.4`,y:`10.7`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)`,width:`3.7`,height:`16.6`,fill:e})]});cg.propTypes={fill:O.string.isRequired};var lg=({fill:e})=>(0,P.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,P.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,P.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,P.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});lg.propTypes={fill:O.string.isRequired};var ug=eg(cg,lg);ug.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},ug.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var dg=({fill:e})=>(0,P.jsxs)(`g`,{children:[(0,P.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,P.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});dg.propTypes={fill:O.string.isRequired};var fg=({fill:e})=>(0,P.jsx)(`polygon`,{points:`14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5`,fill:e});fg.propTypes={fill:O.string.isRequired};var pg=({fill:e})=>(0,P.jsxs)(`g`,{children:[(0,P.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,P.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,P.jsx)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
148
- C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});pg.propTypes={fill:O.string.isRequired};var mg=class extends N.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,P.jsxs)(Jh,{children:[(0,P.jsx)(fg,{fill:n}),(0,P.jsx)(dg,{fill:t})]}),emoji:(0,P.jsxs)(Jh,{children:[(0,P.jsx)(fg,{fill:n}),(0,P.jsx)(pg,{fill:t})]}),feedback:{check:(0,P.jsxs)(Jh,{children:[(0,P.jsx)(fg,{fill:n}),(0,P.jsx)(pg,{fill:t})]}),emoji:(0,P.jsxs)(Jh,{children:[(0,P.jsx)(fg,{fill:n}),(0,P.jsx)(pg,{fill:t})]}),square:{check:(0,P.jsxs)(Jh,{children:[(0,P.jsx)(fg,{fill:n}),(0,P.jsx)(dg,{fill:t})]}),emoji:(0,P.jsxs)(Jh,{children:[(0,P.jsx)(fg,{fill:n}),(0,P.jsx)(pg,{fill:t})]}),open:{check:(0,P.jsx)(Jh,{children:(0,P.jsx)(dg,{fill:n})}),emoji:(0,P.jsx)(Jh,{children:(0,P.jsx)(pg,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};mg.propTypes={iconSet:O.oneOf([`emoji`,`check`,void 0]),shape:O.oneOf([`square`,void 0]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string},mg.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var hg=({fill:e})=>(0,P.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,P.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,P.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});hg.propTypes={fill:O.string.isRequired};var gg=({fill:e})=>(0,P.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,P.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,P.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,P.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});gg.propTypes={fill:O.string.isRequired};var _g=eg(hg,gg);_g.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},_g.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function vg(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function yg(e){let t=El(e);return t.body===e?Hm(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function bg(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function xg(e){return parseFloat(Hm(e).getComputedStyle(e).paddingRight)||0}function Sg(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Cg(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Sg(e);t&&n&&bg(e,i)})}function wg(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function Tg(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(yg(r)){let e=vg(Hm(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${xg(r)+e}px`;let t=El(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${xg(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=El(r).body;else{let t=r.parentElement,n=Hm(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function Eg(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var Dg=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&bg(e.modalRef,!1);let r=Eg(t);Cg(t,e.mount,e.modalRef,r,!0);let i=wg(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=wg(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Tg(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=wg(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&bg(e.modalRef,t),Cg(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&bg(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Og(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var kg=Og;function Ag(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var jg=Ag,Mg=`data-mui-focusable`;function Ng(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Mg}]`):null}var Pg=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function Fg(e){let 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 Ig(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function Lg(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||Ig(e))}function Rg(e){let t=[],n=[];return Array.from(e.querySelectorAll(Pg)).forEach((e,r)=>{let i=Fg(e);i===-1||!Lg(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function zg(){return!0}function Bg(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Rg,isEnabled:o=zg,open:s}=e,c=N.useRef(!1),l=N.useRef(null),u=N.useRef(null),d=N.useRef(null),f=N.useRef(null),p=N.useRef(!1),m=N.useRef(null),h=bl(Lc(t),m),g=N.useRef(null);N.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),N.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=jg(El(m.current)),t=Ng(m.current)??m.current;return kg(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),N.useEffect(()=>{if(!s||!m.current)return;let e=El(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&jg(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=jg(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(kg(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=jg(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,P.jsxs)(N.Fragment,{children:[(0,P.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),N.cloneElement(t,{ref:h,onFocus:_}),(0,P.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}var Vg={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Hg={opacity:0,visibility:`hidden`},Ug=N.forwardRef(function(e,t){let n=xc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=N.useRef(null),y=xl(v,Lc(o),t),b=_l(v,d),x=_l(v,(e,t)=>{gl(e);let r=yl({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=_l(v,u),C=_l(v,m),w=_l(v,e=>{let t=yl({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=_l(v,e=>{e.style.transition=``,p&&p(e)});return(0,P.jsx)(nl,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=vl(e,c,Vg,Hg,h,o.props.style);return N.cloneElement(o,{style:r,ref:y,...n})}})});function Wg(e){return Ba(`MuiBackdrop`,e)}Va(`MuiBackdrop`,[`root`,`invisible`]);var Gg=e=>{let{classes:t,invisible:n}=e;return ls({root:[`root`,n&&`invisible`]},Wg,t)},Kg=I(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),qg=N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=Gg(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Gd(`root`,{elementType:Kg,externalForwardedProps:_,className:Ra(g.root,i),ownerState:h}),[b,x]=Gd(`transition`,{elementType:Ug,externalForwardedProps:_,ownerState:h});return(0,P.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,P.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Jg(e){return typeof e==`function`?e():e}function Yg(e){return e?e.props.hasOwnProperty(`in`):!1}var Xg=()=>{},Zg=new Dg;function Qg(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=N.useRef({}),f=N.useRef(null),p=N.useRef(null),m=bl(p,u),[h,g]=N.useState(!l),_=Yg(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>El(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Zg.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Bd(()=>{let e=Jg(t)||y().body;Zg.add(b(),e),p.current&&x()}),C=()=>Zg.isTopModal(b()),w=Bd(e=>{f.current=e,e&&(l&&C()?x():p.current&&bg(p.current,v))}),T=N.useCallback(()=>{Zg.remove(b(),v)},[v]);N.useEffect(()=>()=>{T()},[T]),N.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=Cd(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:Mm(()=>{g(!1),a&&a()},s?.props.onEnter??Xg),onExited:Mm(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Xg)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function $g(e){return Ba(`MuiModal`,e)}Va(`MuiModal`,[`root`,`hidden`,`backdrop`]);var e_=e=>{let{open:t,exited:n,classes:r}=e;return ls({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},$g,r)},t_=I(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Rc(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),n_=I(qg,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),r_=N.forwardRef(function(e,t){let n=zc({name:`MuiModal`,props:e}),{BackdropComponent:r=n_,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,ee={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:te,getBackdropProps:k,getTransitionProps:A,portalRef:ne,isTopModal:j,exited:re,hasTransition:ie}=Qg({...ee,rootRef:t}),ae={...ee,exited:re},oe=e_(ae),M={};if(c.props.tabIndex===void 0&&(M.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=A();M.onEnter=e,M.onExited=t}let se={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ce,le]=Gd(`root`,{ref:t,elementType:t_,externalForwardedProps:{...se,...O,component:u},getSlotProps:te,ownerState:ae,className:Ra(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[ue,de]=Gd(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:Ra(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||re)?null:(0,P.jsx)(Ad,{ref:ne,container:l,disablePortal:g,children:(0,P.jsxs)(ce,{...le,children:[!y&&r?(0,P.jsx)(ue,{...de}):null,(0,P.jsx)(Bg,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:N.cloneElement(c,M)})]})})});function i_(e){return Ba(`MuiPaper`,e)}Va(`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`.split(`.`));var a_=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ls({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},i_,i)},o_=I(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(Rc(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),s_=N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiPaper`}),r=xc(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=a_(u);return(0,P.jsx)(o_,{as:a,ownerState:u,className:Ra(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${po(`#fff`,nc(o))}, ${po(`#fff`,nc(o))})`}},...l.style}})});function c_(e){return Ba(`MuiPopover`,e)}Va(`MuiPopover`,[`root`,`paper`]);function l_(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function u_(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function d_(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function f_(e){return typeof e==`function`?e():e}var p_=e=>{let{classes:t}=e;return ls({root:[`root`],paper:[`paper`]},c_,t)},m_=I(r_,{name:`MuiPopover`,slot:`Root`})({}),h_=I(s_,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),g_=N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=N.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=p_(w),E=N.useCallback(()=>{if(s===`anchorPosition`)return o;let e=f_(i),t=(e&&e.nodeType===1?e:Vm(C.current).body).getBoundingClientRect();return{top:t.top+l_(t,a.vertical),left:t.left+u_(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=N.useCallback(e=>({vertical:l_(e,_.vertical),horizontal:u_(e,_.horizontal)}),[_.horizontal,_.vertical]),O=N.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:d_(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Um(f_(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:d_(n)}},[i,s,E,D,f]),[ee,te]=N.useState(p),k=N.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,te(!0)},[O]);N.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},ne=()=>{te(!1)};N.useEffect(()=>{p&&k()}),N.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),N.useEffect(()=>{if(!p)return;let e=zm(()=>{k()}),t=Um(f_(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let j=y,re={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=Gd(`transition`,{elementType:Tl,externalForwardedProps:re,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),ne()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(j=void 0);let oe=u||(i?Vm(f_(i)).body:void 0),[M,{slots:se,slotProps:ce,...le}]=Gd(`root`,{ref:t,elementType:m_,externalForwardedProps:{...re,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Km(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:Ra(T.root,l)}),[ue,de]=Gd(`paper`,{ref:C,className:T.paper,elementType:h_,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,P.jsx)(M,{...le,...!xd(M)&&{slots:se,slotProps:ce,disableScrollLock:x},children:(0,P.jsx)(ie,{...ae,timeout:j,children:(0,P.jsx)(ue,{...de,children:c})})})}),__={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},v_={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},y_=s({background:()=>U_,backgroundDark:()=>W_,black:()=>rv,blueGrey100:()=>pv,blueGrey300:()=>mv,blueGrey600:()=>hv,blueGrey900:()=>gv,border:()=>X_,borderDark:()=>Q_,borderGray:()=>$_,borderLight:()=>Z_,buttonBorder:()=>Dv,buttonFocusOutline:()=>uv,buttonHoverBg:()=>Ov,correct:()=>T_,correctSecondary:()=>E_,correctTertiary:()=>D_,correctWithIcon:()=>O_,defaults:()=>B,disabled:()=>S_,disabledSecondary:()=>C_,disabledText:()=>w_,dropdownBackground:()=>K_,editorToolbar:()=>Ev,fadedPrimary:()=>R_,focusChecked:()=>ov,focusCheckedBorder:()=>sv,focusOutline:()=>dv,focusUnchecked:()=>cv,focusUncheckedBorder:()=>lv,incorrect:()=>k_,incorrectSecondary:()=>j_,incorrectWithIcon:()=>A_,keyBoardFocusIndicator:()=>fv,keypadButton:()=>yv,keypadButtonHover:()=>Sv,keypadButtonOperator:()=>bv,keypadButtonOperatorHover:()=>Cv,keypadEmptyPlaceholder:()=>xv,keypadInk:()=>Tv,missing:()=>M_,missingWithIcon:()=>N_,primary:()=>P_,primaryDark:()=>I_,primaryLight:()=>F_,primaryText:()=>L_,secondary:()=>z_,secondaryBackground:()=>G_,secondaryDark:()=>V_,secondaryLight:()=>B_,secondaryText:()=>H_,surface:()=>q_,tableGrid:()=>ev,tableGridLight:()=>tv,tableStripe:()=>nv,tertiary:()=>J_,tertiaryLight:()=>Y_,text:()=>x_,transparent:()=>av,v:()=>b_,visualElementsColors:()=>kv,white:()=>iv}),B={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:`#208537`,CORRECT_SECONDARY:vs[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:`#a65f00`,INCORRECT_SECONDARY:ms[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:ms[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:v_[500],PRIMARY_LIGHT:v_[200],PRIMARY_DARK:v_[800],SECONDARY:__.A400,SECONDARY_LIGHT:__[200],SECONDARY_DARK:__[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#EBECF1`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#66686A`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#81848F`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,EDITOR_TOOLBAR:`#efefef`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(B);var b_=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},V=b_(`pie`),x_=()=>V(`text`,B.TEXT),S_=()=>V(`disabled`,B.DISABLED),C_=()=>V(`disabled-secondary`,B.DISABLED_SECONDARY),w_=()=>V(`disabled-text`,`text`,B.DISABLED_TEXT),T_=()=>V(`correct`,B.CORRECT),E_=()=>V(`correct-secondary`,B.CORRECT_SECONDARY),D_=()=>V(`correct-tertiary`,B.CORRECT_TERTIARY),O_=()=>V(`correct-icon`,B.CORRECT_WITH_ICON),k_=()=>V(`incorrect`,B.INCORRECT),A_=()=>V(`incorrect-icon`,B.INCORRECT_WITH_ICON),j_=()=>V(`incorrect-secondary`,B.INCORRECT_SECONDARY),M_=()=>V(`missing`,B.MISSING),N_=()=>V(`missing-icon`,B.MISSING_WITH_ICON),P_=()=>V(`primary`,B.PRIMARY),F_=()=>V(`primary-light`,B.PRIMARY_LIGHT),I_=()=>V(`primary-dark`,B.PRIMARY_DARK),L_=()=>V(`primary-text`,`text`,B.TEXT),R_=()=>V(`faded-primary`,B.FADED_PRIMARY),z_=()=>V(`secondary`,B.SECONDARY),B_=()=>V(`secondary-light`,B.SECONDARY_LIGHT),V_=()=>V(`secondary-dark`,B.SECONDARY_DARK),H_=()=>V(`secondary-text`,`text`,B.TEXT),U_=()=>V(`background`,B.BACKGROUND),W_=()=>V(`background-dark`,B.BACKGROUND_DARK),G_=()=>V(`secondary-background`,B.SECONDARY_BACKGROUND),K_=()=>V(`dropdown-background`,B.DROPDOWN_BACKGROUND),q_=()=>V(`surface`,B.SURFACE),J_=()=>V(`tertiary`,B.TERTIARY),Y_=()=>V(`tertiary-light`,B.TERTIARY_LIGHT),X_=()=>V(`border`,B.BORDER),Z_=()=>V(`border-light`,B.BORDER_LIGHT),Q_=()=>V(`border-dark`,B.BORDER_DARK),$_=()=>V(`border-gray`,B.BORDER_GRAY),ev=()=>V(`table-grid`,`text`,B.TABLE_GRID),tv=()=>V(`table-grid-light`,`border-light`,B.TABLE_GRID_LIGHT),nv=()=>V(`table-stripe`,`background-dark`,B.TABLE_STRIPE),rv=()=>V(`black`,B.BLACK),iv=()=>V(`white`,B.WHITE),av=()=>B.TRANSPARENT,ov=()=>V(`focus-checked`,B.FOCUS_CHECKED),sv=()=>V(`focus-checked-border`,B.FOCUS_CHECKED_BORDER),cv=()=>V(`focus-unchecked`,B.FOCUS_UNCHECKED),lv=()=>V(`focus-unchecked-border`,B.FOCUS_UNCHECKED_BORDER),uv=()=>V(`button-focus-outline`,B.BUTTON_FOCUS_OUTLINE),dv=()=>V(`focus-outline`,`button-focus-outline`,`focus-checked-border`,B.FOCUS_CHECKED_BORDER),fv=dv,pv=()=>V(`blue-grey-100`,B.BLUE_GREY100),mv=()=>V(`blue-grey-300`,B.BLUE_GREY300),hv=()=>V(`blue-grey-600`,B.BLUE_GREY600),gv=()=>V(`blue-grey-900`,B.BLUE_GREY900),_v=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);return t?t.slice(1).map(e=>parseInt(e,16)):e.match(/\d+/g).slice(0,3).map(Number)},vv=(e,t)=>`color-mix(in srgb, rgb(${_v(e).map(e=>(e-255*(1-t))/t).join(` `)}) ${t*100}%, ${V(`background`,B.WHITE)})`,yv=()=>V(`keypad-button`,vv(B.KEYPAD_BUTTON,.5)),bv=()=>V(`keypad-button-operator`,vv(B.KEYPAD_BUTTON_OPERATOR,.5)),xv=()=>V(`keypad-empty-placeholder`,B.KEYPAD_EMPTY_PLACEHOLDER),Sv=()=>V(`keypad-button-hover`,vv(B.KEYPAD_BUTTON_HOVER,.25)),Cv=()=>V(`keypad-button-operator-hover`,vv(B.KEYPAD_BUTTON_OPERATOR_HOVER,.25)),wv=`clamp(0.6, (r + g + b) / 450, 1)`,Tv=()=>`rgb(from ${x_()} calc(r * ${wv}) calc(g * ${wv}) calc(b * ${wv}))`,Ev=()=>vv(B.EDITOR_TOOLBAR,.125),Dv=()=>V(`button-border`,B.BUTTON_BORDER),Ov=()=>V(`button-hover-bg`,B.BUTTON_HOVER_BG),kv={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Av=I(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),jv=I(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${W_()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, ${x_()})`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${E_()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${j_()})`}}),Mv=I(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),Nv=class extends N.Component{static propTypes={correctness:O.string,feedback:O.string};nodeRef=N.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,P.jsx)(ol,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,P.jsx)(Mv,{ref:this.nodeRef,children:(0,P.jsx)(Av,{children:(0,P.jsx)(jv,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,P.jsx)(`div`,{children:(0,P.jsx)(hl,{children:this.renderFeedback()})})}},Pv=s({Correct:()=>Bv,Incorrect:()=>Vv,NothingSubmitted:()=>Uv,PartiallyCorrect:()=>Hv}),Fv=Gh(`pie-libs:render-ui:response-indicators`),Iv=I(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Lv=I(g_)({cursor:`pointer`}),Rv=I(`div`)({padding:`0`,borderRadius:`4px`}),zv=(e,t)=>{class n extends N.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Fv(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,P.jsxs)(Iv,{hasFeedback:!!n,children:[(0,P.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,P.jsx)(e,{})}),n&&(0,P.jsx)(Lv,{PaperComponent:Rv,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,P.jsx)(Nv,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:O.string},n},Bv=zv(rg,`correct`),Vv=zv(ug,`incorrect`),Hv=zv(_g,`partially-correct`),Uv=zv(mg,`nothing-submitted`);function Wv(e){return Ba(`MuiCollapse`,e)}Va(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Gv=e=>{let{orientation:t,classes:n}=e;return ls({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Wv,n)},Kv=I(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(Rc(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),qv=I(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Jv=I(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Yv=N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=Gs.standard,TransitionComponent:x=nl,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Gv(C),T=xc(),E=Fc(),D=N.useRef(null),O=N.useRef(),ee=typeof o==`number`?`${o}px`:o,te=g===`horizontal`,k=te?`width`:`height`,A=N.useRef(null),ne=xl(t,A),j=()=>D.current?D.current[te?`clientWidth`:`clientHeight`]:0,re=_l(A,(e,t)=>{D.current&&te&&(D.current.style.position=`absolute`),e.style[k]=ee,u&&u(e,t)}),ie=_l(A,(e,t)=>{let n=j();D.current&&te&&(D.current.style.position=``);let{duration:r,easing:i}=yl({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=_l(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),oe=_l(A,e=>{e.style[k]=`${j()}px`,p&&p(e)}),M=_l(A,m),se=_l(A,e=>{let t=j(),{duration:n,easing:r}=yl({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),ce=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(A.current,e)},le={slots:_,slotProps:v,component:s},[ue,de]=Gd(`root`,{ref:ne,className:Ra(w.root,a),elementType:Kv,externalForwardedProps:le,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:ee,...y}}}),[fe,pe]=Gd(`wrapper`,{ref:D,className:w.wrapper,elementType:qv,externalForwardedProps:le,ownerState:C}),[me,he]=Gd(`wrapperInner`,{className:w.wrapperInner,elementType:Jv,externalForwardedProps:le,ownerState:C});return(0,P.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:se,addEndListener:ce,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,P.jsx)(ue,{...de,className:Ra(de.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,P.jsx)(fe,{...pe,ownerState:r,children:(0,P.jsx)(me,{...he,ownerState:r,children:i})})})}})});Yv&&(Yv.muiSupportAuto=!0);var Xv=`4.1.3`,Zv=`https://github.com/pie-framework/pie-elements-ng/blob/develop/docs/MATH-RENDERING.md#assets`,Qv=`@pie-lib/math-rendering@2`,$v=[`nemeth`,`euro`],ey=`mathjax@${Xv}/sre`,ty=/^[^@]+@[^@]+$/;function ny(e){if(!e)return;let t;try{t=new URL(e)}catch{return}if(t.origin===`null`)return;let n=t.pathname.split(`/`);for(let e=n.length-1;e>0;e--){let r=n[e];if(r===`node_modules`)return;if(!ty.test(r))continue;let i=n[e-1]?.startsWith(`@`)?e-1:e;return t.origin+n.slice(0,i).join(`/`)}}function ry(){let e=globalThis[Qv]?.opts;return e&&typeof e==`object`?e:{}}function iy(e){if(typeof e!=`string`||!e)return;let t=typeof document>`u`?void 0:document.baseURI;try{return new URL(e,t).href.replace(/\/+$/,``)}catch{return}}function ay(e){if(!e||typeof e!=`object`)return;let t=new Map;for(let[n,r]of Object.entries(e)){let e=iy(r);e&&t.set(n,e)}return t.size?t:void 0}function oy(e){if(Array.isArray(e))return new Map(e.filter(e=>typeof e==`string`).map(e=>[e,void 0]));if(e&&typeof e==`object`)return new Map(Object.entries(e).map(([e,t])=>[e,typeof t==`string`?t:void 0]))}function sy(e,t){let n=ry(),r=iy(e.assetRoot??n.assetRoot)??ny(t);return{root:r,speechPath:iy(e.speechPath??n.speechPath)??(r?`${r}/${ey}`:void 0),speechLocales:oy(e.speechLocales??n.speechLocales),urls:ay(e.assetUrls??n.assetUrls)}}function cy(e,t){if(!(!e||!t)){for(let n of[...e.keys()])!t.has(n)&&!$v.includes(n)&&e.delete(n);for(let[n,r]of t)(r||!e.has(n))&&e.set(n,r??n)}}function ly(e){if(!(!e||e.has(`en`)))return[...e.keys()].find(e=>!$v.includes(e))}var uy=`pie-mathjax-no-asset-root`,dy={untypeset:`no MathJax loads, so math stays untypeset`,"no-web-fonts":`math renders without web fonts`,"no-web-fonts-or-speech":`math renders without web fonts and speech`},fy=Symbol.for(`@pie-element/shared-math-rendering-mathjax/no-assets`);function py(e){let t=globalThis;t[fy]??=[];let n=t[fy];if(n.includes(e))return;n.push(e);let r=`[math-rendering] No asset root for MathJax: ${dy[e]}. Set window['${Qv}'].opts.assetRoot to an npm root. See ${Zv}`;e===`untypeset`?console.error(r):console.warn(r),!(typeof window>`u`)&&window.dispatchEvent(new CustomEvent(uy,{detail:{effect:e,message:r,docsUrl:Zv}}))}var my=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,hy=`pie-mathjax-version-conflict`,gy=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function _y(e,t){if(typeof window>`u`)return;let n=globalThis;n[gy]??={logged:!1,conditions:[]};let r=n[gy];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${my}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(hy,{detail:{condition:e,message:i,docsUrl:my}}))}function vy(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}function yy(){return window.MathJax}function by(e,{root:t,speechPath:n}){t&&(e.loader={...e.loader,paths:{fonts:`${t}/@mathjax`,"mathjax-newcm":`${t}/@mathjax/mathjax-newcm-font@${Xv}`,"mathjax-mhchem-extension":`${t}/@mathjax/mathjax-mhchem-font-extension@${Xv}`}}),n&&(e.options={...e.options,worker:{path:n,maps:`${n}/mathmaps`}})}function xy(e,t){let n=t.srcUrl||(t.root?`${t.root}/mathjax@4.1.3/tex-mml-chtml.js`:void 0);return n?(by(e,t),new Promise((t,r)=>{window.MathJax=e;let i=document.createElement(`script`);i.src=n,i.async=!0,i.onload=()=>t(!0),i.onerror=()=>r(Error(`Failed to load MathJax`)),document.head.appendChild(i)})):(py(`untypeset`),Promise.resolve(!1))}var Sy=globalThis,Cy=`PIE-MJX-CHTML-styles`,wy=[`MJX-CHTML-styles`,`MJX-SVG-styles`],Ty=vy,Ey=`http://www.w3.org/1998/Math/MathML`,Dy=/^([a-z_][\w.-]*):math$/,Oy=/^[a-z][a-z0-9-]*$/;function ky(e){for(let t of e.querySelectorAll(`*`)){let n=Dy.exec(t.tagName.toLowerCase())?.[1];!n||!e.contains(t)||t.closest(`mjx-container`)||t.replaceWith(Ay(t,`${n}:`))}}function Ay(e,t){let n=e.tagName.toLowerCase().slice(t.length);if(!Oy.test(n))return e;let r=e.ownerDocument.createElementNS(Ey,n);for(let t of e.attributes)r.setAttribute(t.name,t.value);for(let n of[...e.childNodes]){let e=n instanceof Element&&n.tagName.toLowerCase().startsWith(t);r.appendChild(e?Ay(n,t):n)}return r}var jy=new Set([`updiagonalstrike`,`downdiagonalstrike`,`verticalstrike`,`horizontalstrike`]),My={thin:`0.035em`,medium:`0.07em`,thick:`0.14em`},Ny={tight:`0em`,medium:`0.1em`,loose:`0.2em`},Py=/^(\d+(\.\d*)?|\.\d+)(em|ex|px|pt|pc|in|cm|mm)$/,Fy=/^(#[0-9a-f]{3,8}|[a-z]+)$/i,Iy=/^(\d+(\.\d*)?|\.\d+)$/,Ly=new Set([`mn`,`mo`,`mi`,`mtext`]),Ry=new Set([`stackalign`,`charalign`,`charspacing`,`longdivstyle`]);function zy(e,t,n=[],r={}){let i=e.createElementNS(Ey,t);for(let[e,t]of Object.entries(r))i.setAttribute(e,t);for(let e of n)e&&i.appendChild(e);return i}function By(e,t){let n=zy(e.document,`mo`);return n.textContent=t,n}function Vy(e){let t=zy(e.document,`mn`);return t.textContent=`0`,zy(e.document,`mphantom`,[t])}function Hy(e,t){return e.getAttribute(t)?.trim().toLowerCase()||void 0}function Uy(e,t){let n=Number.parseInt(e.getAttribute(t)??``,10);return Number.isFinite(n)?n:0}function Wy(e){return e.localName===`none`||e.localName===`mrow`&&e.children.length===0&&!e.textContent?.trim()}function Gy(e,t,n=e){switch(t){case`left`:return 0;case`center`:return Math.floor(e/2);case`right`:return e;default:return n}}function Ky(e,t,n){let r=[],i,a,o=(e,t)=>{let s=e=>t.reduceRight((e,t)=>{let n=t.cloneNode(!1);return n.appendChild(e),n},e);if(e.localName===`mstyle`)for(let n of[...e.children])o(n,[...t,e]);else if(Wy(e))r.push(null);else if(e.localName===`mn`&&e.children.length===0){let t=[...(e.textContent??``).trim()];for(let a of t){a===n.decimalPoint&&(i??=r.length);let t=e.cloneNode(!1);t.textContent=a,r.push(s(t))}t.length&&(a??=r.length)}else Ly.has(e.localName)&&e.textContent?.trim()===n.decimalPoint&&(i??=r.length),r.push(s(e))};for(let t of e)o(t,[]);return{kind:`digits`,cells:r,anchor:Gy(r.length,n.stackAlign,i??a),position:t}}function qy(e){return(e??``).toLowerCase().split(/\s+/).filter(e=>jy.has(e))}function Jy(e,t){let n=[...e.children].filter(e=>!Wy(e));return n.length<=1?n[0]??null:zy(t.document,`mrow`,n)}function Yy(e,t,n){let r=Hy(e,`location`)??`n`,i=qy(e.getAttribute(`crossout`)),a=[...e.children].map(e=>Wy(e)?null:e.localName===`mscarry`?{content:Jy(e,n),location:Hy(e,`location`)??r,crossout:e.hasAttribute(`crossout`)?qy(e.getAttribute(`crossout`)):i}:{content:e,location:r,crossout:i}),o=e.getAttribute(`scriptsizemultiplier`)?.trim()??``;return{kind:`carries`,carries:a,anchor:Gy(a.length,n.stackAlign),position:t,scale:Iy.test(o)?o:`0.6`}}function Xy(e){let t=Hy(e,`mslinethickness`)??`medium`,n=My[t]??(Py.test(t)?t:`0.07em`),r=e.getAttribute(`mathcolor`)?.trim()??``;return`${n} solid ${Fy.test(r)?r:`currentColor`}`}function Zy(e,t,n){let r=Math.max(0,Uy(e,`length`));return{kind:`line`,length:r,anchor:Gy(r,n.stackAlign),position:t,border:Xy(e)}}function Qy(e,t,n,r,i){e.forEach((e,a)=>{let o=t+a*n+Uy(e,`position`);switch(e.localName){case`msgroup`:Qy([...e.children],o,Uy(e,`shift`),r,i);break;case`msline`:i.push(Zy(e,o,r));break;case`mscarries`:i.push(Yy(e,o,r));break;case`msrow`:case`mrow`:i.push(Ky([...e.children],o,r));break;default:i.push(Ky([e],o,r))}})}function $y(e){return-e.anchor-e.position}function eb(e){return e.kind===`digits`?e.cells.length:e.kind===`carries`?e.carries.length:e.length}function tb(e){return $y(e)+eb(e)-1}function nb(e,t,n,r){let i=e=>zy(r.document,`mpadded`,[t],{width:`0`,...e?{lspace:e}:{}}),a=(e,t)=>zy(r.document,e,t);switch(n){case`s`:return a(`munder`,[e,i(`-0.5width`)]);case`ne`:return a(`msup`,[e,i()]);case`se`:return a(`msub`,[e,i()]);case`nw`:return a(`mmultiscripts`,[e,a(`mprescripts`,[]),a(`none`,[]),i(`-1width`)]);case`sw`:return a(`mmultiscripts`,[e,a(`mprescripts`,[]),i(`-1width`),a(`none`,[])]);case`w`:return t.setAttribute(`scriptlevel`,`+1`),a(`mrow`,[i(`-1width`),e]);case`e`:return t.setAttribute(`scriptlevel`,`+1`),a(`mrow`,[e,i()]);default:return a(`mover`,[e,i(`-0.5width`)])}}function rb(e,t,n){let r=zy(n.document,`menclose`,[e],{notation:t.join(` `),"data-padding":`0.1em`,"data-thickness":`0.067em`}),i=t.some(e=>e.endsWith(`diagonalstrike`))?.167:t.includes(`horizontalstrike`)?.1:0;return i?zy(n.document,`mpadded`,[r],{lspace:`-${i}em`,width:`-${2*i}em`}):r}function ib(e,t,n,r,i){let a=e&&t.crossout.length?rb(e,t.crossout,i):e;if(!t.content)return a;let o=zy(i.document,`mstyle`,[t.content],{scriptsizemultiplier:r});return nb(a??Vy(i),o,n,i)}function ab(e,t){return e.carries[t-$y(e)]??null}function ob(e,t,n,r){let i=e.content;n.forEach((e,a)=>{let o=n.length-1-a,s=n[o],c=ab(s,t),l=n.slice(0,o).some(e=>ab(e,t));if(!c&&!l)return;let u=c??{content:Vy(r),location:`n`,crossout:[]},d=a===0?u.location:`n`;i=ib(i,u,d,s.scale,r)}),e.content=i}function sb(e,t){let n=e.filter(e=>eb(e)>0),r=Math.min(0,...n.map($y)),i=Math.max(r,...n.map(tb))-r+1,a=-r,o=[],s=new Map,c=()=>Array.from({length:i},()=>({content:null,borders:{}})),l=e=>e.length===0?Array.from({length:i},(e,t)=>t):Array.from({length:e.length},(t,n)=>a+$y(e)+n),u=[],d=[],f=e=>{let n=c();e.cells.forEach((t,r)=>{n[a+$y(e)+r].content=t}),u.length&&n.forEach((e,n)=>{ob(e,n-a,u,t)});for(let e of d)for(let t of l(e))n[t].borders.top=e.border;u=[],d=[],s.set(e,o.length),o.push(n)};for(let t of e)t.kind===`digits`?f(t):t.kind===`carries`?u.push(t):d.push(t);(u.length||!o.length)&&f({kind:`digits`,cells:[],anchor:0,position:0});let p=o[o.length-1];for(let e of d)for(let t of l(e))p[t].borders.bottom=e.border;return{rows:o,rowOf:s,origin:a}}function cb(e,{rows:t},n){let r=zy(n.document,`mtable`,t.map(e=>zy(n.document,`mtr`,e.map(e=>{let t=Object.entries(e.borders).map(([e,t])=>`border-${e}:${t}`).join(`;`);return zy(n.document,`mtd`,[e.content],{...t?{style:t}:{},...e.align?{columnalign:e.align}:{}})}))));for(let{name:t,value:n}of[...e.attributes])Ry.has(t)||r.setAttribute(t,n);let i=Hy(e,`charspacing`)??`medium`,a=Hy(e,`charalign`);return r.setAttribute(`columnspacing`,Ny[i]??(Py.test(i)?i:Ny.medium)),r.setAttribute(`columnalign`,a===`left`||a===`center`?a:`right`),r.setAttribute(`rowspacing`,`0`),r.setAttribute(`align`,e.getAttribute(`align`)??`baseline`),r}function lb(e){return{document:e.ownerDocument,stackAlign:Hy(e,`stackalign`)??`decimalpoint`,decimalPoint:e.closest(`[decimalpoint]`)?.getAttribute(`decimalpoint`)?.trim().charAt(0)||`.`}}function ub(e){let t=lb(e),n=[];return Qy([...e.children],0,0,t,n),cb(e,sb(n,t),t)}function db(e,t,n,r,i,a){for(let o=n;o<=r;o++)e[t][o].borders[i]=a}function fb(e,t){let n=By(t,`)`);return n.setAttribute(`minsize`,`1.2em`),[zy(t.document,`mrow`,[e,zy(t.document,`mspace`,[],{width:`0.2em`})]),zy(t.document,`mpadded`,[n],{voffset:`0.1em`,lspace:`-0.15em`,depth:`-0.2em`,height:`-0.2em`})]}function pb(e){let t=lb(e),[n,r,...i]=[...e.children],a=n&&!Wy(n)?n:null,o=r&&!Wy(r)?r:null,s=Hy(e,`longdivstyle`)??`lefttop`,c=Xy(e),l=[];Qy(i,0,0,t,l);let u=l.find(e=>e.kind===`digits`);u||(u={kind:`digits`,cells:[],anchor:0,position:0},l.unshift(u));let d=[],f=(...e)=>{u.cells.unshift(...e),u.anchor+=e.length},p=(...e)=>{let n=e.flatMap(e=>e?e.localName===`mrow`?[...e.children]:[e]:[]);u.cells.push(...Ky(n,0,t).cells)};switch(s){case`left/\\right`:f(a,By(t,`/`)),p(By(t,`\\`),o);break;case`left)(right`:f(a,By(t,`)`)),p(By(t,`(`),o);break;case`:right=right`:p(By(t,`:`),a,By(t,`=`),o);break;case`righttop`:case`stackedleftlinetop`:case`lefttop`:o&&Qy([o],0,0,t,d),l.splice(l.indexOf(u),0,...d),s===`righttop`?p(a):s===`stackedleftlinetop`?f(a):f(...fb(a,t));break}let m=sb(l,t),h=m.rows,g=m.rowOf.get(u)??0,_=e=>m.origin+$y(u)+e,v=Math.max(_(u.cells.length-1),...d.map(e=>m.origin+tb(e)));switch(s){case`left/\\right`:case`left)(right`:case`:right=right`:break;case`righttop`:{let e=h[g][_(u.cells.length-1)];e.borders.left=c,e.borders.bottom=c,db(h,g,_(0),_(u.cells.length-1),`top`,c);break}case`stackedleftlinetop`:{let e=h[g][_(0)];e.borders.right=c,e.borders.bottom=c,db(h,g,_(1),v,`top`,c);break}case`stackedrightright`:case`mediumstackedrightright`:case`shortstackedrightright`:case`stackedleftleft`:mb(h,g,s,a,o,c,t);break;default:db(h,g,_(1),v,`top`,c)}return cb(e,m,t)}function mb(e,t,n,r,i,a,o){let s=n===`stackedleftleft`,c=s?`right`:`left`,l=e=>e&&zy(o.document,`mpadded`,[e],{lspace:`0.2em`,width:`+0.4em`});e.length<t+2&&e.push(e[0].map(()=>({content:null,borders:{}}))),e.forEach((e,o)=>{let u={content:null,borders:{},align:s?`right`:`left`};o===t?(u.content=l(r),u.borders={[c]:a,bottom:a}):o===t+1?(u.content=l(i),n!==`shortstackedrightright`&&(u.borders[c]=a)):o>t+1&&(n===`stackedrightright`||s)&&(u.borders[c]=a),s?e.unshift(u):e.push(u)})}function hb(e){for(let t of[...e.querySelectorAll(`mstack, mlongdiv`)])!t.closest(`math`)||t.closest(`mjx-container`)||t.replaceWith(t.localName===`mstack`?ub(t):pb(t))}var gb=`PIE-MJX-explorer-styles`,_b=`var(--pie-text, black)`,vb=`var(--pie-background, #ffffff)`,yb=`var(--pie-border-dark, #66686A)`,bb=`var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565C0)))`,xb=`color-mix(in srgb, ${bb} 15%, transparent)`,Sb=`
139
+ `,_h=typeof hh==`string`?null:Lr`
140
+ animation: ${hh} 1.4s linear infinite;
141
+ `,vh=typeof gh==`string`?null:Lr`
142
+ animation: ${gh} 1.4s ease-in-out infinite;
143
+ `,yh=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return cs({root:[`root`,n,`color${z(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${z(n)}`,i&&`circleDisableShrink`]},ph,t)},bh=L(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${z(n.color)}`]]}})(Lc(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:_h||{animation:`${hh} 1.4s linear infinite`}},...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),xh=L(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),Sh=L(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${z(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Lc(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:vh||{animation:`${gh} 1.4s ease-in-out infinite`}}]}))),Ch=L(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(Lc(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),wh=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d=`indeterminate`,...f}=n,p={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d,enableTrackSlot:o},m=yh(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((mh-l)/2);h.strokeDasharray=e.toFixed(3),_[`aria-valuenow`]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform=`rotate(-90deg)`}return(0,F.jsx)(bh,{className:La(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,F.jsxs)(xh,{className:m.svg,ownerState:p,viewBox:`${mh/2} ${mh/2} ${mh} ${mh}`,children:[o?(0,F.jsx)(Ch,{className:m.track,ownerState:p,cx:mh,cy:mh,r:(mh-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,F.jsx)(Sh,{className:m.circle,style:h,ownerState:p,cx:mh,cy:mh,r:(mh-l)/2,fill:`none`,strokeWidth:l})]})})});function Th(e){return za(`MuiButton`,e)}var Eh=Ba(`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.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.textSizeSmall.textSizeMedium.textSizeLarge.outlinedSizeSmall.outlinedSizeMedium.outlinedSizeLarge.containedSizeSmall.containedSizeMedium.containedSizeLarge.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.iconSizeSmall.iconSizeMedium.iconSizeLarge.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),Dh=P.createContext({}),Oh=P.createContext(void 0),kh=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=cs({root:[`root`,o&&`loading`,a,`${a}${z(t)}`,`size${z(i)}`,`${a}Size${z(i)}`,`color${z(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${z(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${z(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${z(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Th,c);return{...c,...l}},Ah=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],jh=L(ch,{shouldForwardProp:e=>Sc(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${z(n.color)}`],t[`size${z(n.size)}`],t[`${n.variant}Size${z(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Lc(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${Eh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&e.loadingPosition===`start`,style:{"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`}}},{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Eh.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Eh.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${Eh.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${Eh.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${Eh.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${Eh.loading}`]:{color:`transparent`}}}]}})),Mh=L(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${z(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ah]})),Nh=L(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${z(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ah]})),Ph=L(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),Fh=L(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),Ih=P.forwardRef(function(e,t){let n=P.useContext(Dh),r=P.useContext(Oh),i=Rc({props:$a(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...C}=i,w=Vd(h),T=_??(0,F.jsx)(wh,{"aria-labelledby":w,color:`inherit`,size:16}),E={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:T,loadingPosition:v,size:y,type:x,variant:S},D=kh(E),O=(b||g&&v===`start`)&&(0,F.jsx)(Mh,{className:D.startIcon,ownerState:E,children:b||(0,F.jsx)(Fh,{className:D.loadingIconPlaceholder,ownerState:E})}),ee=(f||g&&v===`end`)&&(0,F.jsx)(Nh,{className:D.endIcon,ownerState:E,children:f||(0,F.jsx)(Fh,{className:D.loadingIconPlaceholder,ownerState:E})}),te=r||``,k=typeof g==`boolean`?(0,F.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,F.jsx)(Ph,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:A,...ne}=D;return(0,F.jsxs)(jh,{ownerState:E,className:La(n.className,D.root,c,te),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:La(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:ne,children:[O,v!==`end`&&k,a,v===`end`&&k,ee]})});function Lh(e){return za(`MuiIconButton`,e)}var Rh=Ba(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),zh=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return cs({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${z(r)}`,i&&`edge${z(i)}`,`size${z(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Lh,t)},Bh=L(ch,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${z(n.color)}`],n.edge&&t[`edge${z(n.edge)}`],t[`size${z(n.size)}`]]}})(Lc(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),Lc(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Rh.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${Rh.loading}`]:{color:`transparent`}}))),Vh=L(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),Hh=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=Vd(u),h=f??(0,F.jsx)(wh,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=zh(g);return(0,F.jsxs)(Bh,{id:d?m:u,className:La(_.root,a),centerRipple:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,F.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,F.jsx)(Vh,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),Uh=()=>{};function Wh(){let e=function(){};return e.enabled=!1,e.log=Uh,e.extend=()=>e,e.destroy=Uh,e}Wh.log=Uh,Wh.enable=Uh,Wh.disable=()=>``,Wh.enabled=()=>!1;var Gh=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,Kh=({size:e,children:t})=>(e=Gh(e),(0,F.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));Kh.propTypes={size:O.number,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var qh=({size:e,children:t,sx:n})=>(0,F.jsx)(Kh,{size:e,children:(0,F.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t})});qh.propTypes={size:O.oneOfType([O.string,O.number]),children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,sx:O.object};var Jh=({fill:e})=>(0,F.jsx)(`polygon`,{points:`17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7`,fill:e});Jh.propTypes={fill:O.string.isRequired};var Yh=({fill:e})=>(0,F.jsx)(`polygon`,{transform:`translate(2, 0)`,points:`34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3`,fill:e});Yh.propTypes={fill:O.string.isRequired};var Xh=({fill:e})=>(0,F.jsx)(`path`,{transform:`translate(1, 0)`,d:`M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z`,fill:e});Xh.propTypes={fill:O.string.isRequired};var Zh=({fill:e})=>(0,F.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});Zh.propTypes={fill:O.string.isRequired};var Qh=({fill:e})=>(0,F.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});Qh.propTypes={fill:O.string.isRequired};var $h=(e,t)=>{class n extends P.Component{static propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,size:O.oneOfType([O.number,O.string]),fg:O.string,bg:O.string};static defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,size:30,fg:`#4aaf46`,bg:`#f8ffe2`};render(){let{iconSet:n,shape:r,category:i,open:a,size:o,fg:s,bg:c}=this.props,l=n===`check`?(0,F.jsx)(e,{fill:s}):(0,F.jsx)(t,{fill:s}),u=n===`check`?(0,F.jsx)(e,{fill:c}):(0,F.jsx)(t,{fill:c});return a?(0,F.jsx)(qh,{size:o,children:u}):(0,F.jsxs)(qh,{size:o,children:[i===`feedback`?r===`round`?(0,F.jsx)(Xh,{fill:c}):(0,F.jsx)(Yh,{fill:c}):r===`round`?(0,F.jsx)(Zh,{fill:c}):(0,F.jsx)(Qh,{fill:c}),l]})}}return n},eg=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(1, 0)`,children:[(0,F.jsx)(`path`,{d:`M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2
144
+ c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e}),(0,F.jsx)(`rect`,{x:`21.1`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e}),(0,F.jsx)(`rect`,{x:`12.7`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e})]});eg.propTypes={fill:O.string.isRequired};var tg=({fill:e,x:t=0,y:n=0})=>(0,F.jsx)(`polygon`,{transform:`translate(${t}, ${n})`,points:`19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4`,fill:e});tg.propTypes={fill:O.string.isRequired,x:O.number,y:O.number};var ng=$h(tg,eg);ng.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},ng.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};var rg=({bgFill:e,fgFill:t})=>(0,F.jsxs)(`svg`,{"aria-hidden":`true`,focusable:`false`,preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-283 359 34 35`,style:{enableBackground:`new -283 359 34 35`},children:[(0,F.jsx)(`circle`,{cx:`-266`,cy:`375.9`,r:`14`,fill:e}),(0,F.jsx)(`path`,{d:`M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z
145
+ M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z`,fill:e}),(0,F.jsx)(`polygon`,{points:`-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6`,fill:t})]});rg.propTypes={bgFill:O.string.isRequired,fgFill:O.string.isRequired};var ig=({bgFill:e,fgFill:t,borderFill:n})=>(0,F.jsxs)(`svg`,{"aria-hidden":`true`,focusable:`false`,preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-129.5 127 34 35`,style:{enableBackground:`new -129.5 127 34 35`},children:[(0,F.jsx)(`path`,{style:{fill:`#D0CAC5`,stroke:`#E6E3E0`,strokeWidth:.75,strokeMiterlimit:10},d:`M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5
146
+ C-97.4,153.5-104.3,160.4-112.9,160.4z`}),(0,F.jsx)(`path`,{style:{fill:`#B3ABA4`,stroke:`#CDC7C2`,strokeWidth:.5,strokeMiterlimit:10},d:`M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z`}),(0,F.jsx)(`circle`,{cx:`-114.2`,cy:`143.5`,r:`14`,fill:e}),(0,F.jsx)(`path`,{d:`M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z
147
+ M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z`,fill:n}),(0,F.jsx)(`polygon`,{points:`-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2`,fill:t})]});ig.propTypes={bgFill:O.string.isRequired,fgFill:O.string.isRequired,borderFill:O.string.isRequired};var ag=L(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),og=({open:e,size:t})=>(0,F.jsx)(ag,{size:t,children:e?(0,F.jsx)(rg,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,F.jsx)(ig,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});og.propTypes={open:O.bool,size:O.string},og.defaultProps={open:!1};var sg=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,F.jsx)(`rect`,{x:`11`,y:`17.3`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)`,width:`16.6`,height:`3.7`,fill:e}),(0,F.jsx)(`rect`,{x:`17.4`,y:`10.7`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)`,width:`3.7`,height:`16.6`,fill:e})]});sg.propTypes={fill:O.string.isRequired};var cg=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,F.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,F.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,F.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});cg.propTypes={fill:O.string.isRequired};var lg=$h(sg,cg);lg.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},lg.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var ug=({fill:e})=>(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,F.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});ug.propTypes={fill:O.string.isRequired};var dg=({fill:e})=>(0,F.jsx)(`polygon`,{points:`14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5`,fill:e});dg.propTypes={fill:O.string.isRequired};var fg=({fill:e})=>(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,F.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,F.jsx)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
148
+ C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});fg.propTypes={fill:O.string.isRequired};var pg=class extends P.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,F.jsxs)(qh,{children:[(0,F.jsx)(dg,{fill:n}),(0,F.jsx)(ug,{fill:t})]}),emoji:(0,F.jsxs)(qh,{children:[(0,F.jsx)(dg,{fill:n}),(0,F.jsx)(fg,{fill:t})]}),feedback:{check:(0,F.jsxs)(qh,{children:[(0,F.jsx)(dg,{fill:n}),(0,F.jsx)(fg,{fill:t})]}),emoji:(0,F.jsxs)(qh,{children:[(0,F.jsx)(dg,{fill:n}),(0,F.jsx)(fg,{fill:t})]}),square:{check:(0,F.jsxs)(qh,{children:[(0,F.jsx)(dg,{fill:n}),(0,F.jsx)(ug,{fill:t})]}),emoji:(0,F.jsxs)(qh,{children:[(0,F.jsx)(dg,{fill:n}),(0,F.jsx)(fg,{fill:t})]}),open:{check:(0,F.jsx)(qh,{children:(0,F.jsx)(ug,{fill:n})}),emoji:(0,F.jsx)(qh,{children:(0,F.jsx)(fg,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};pg.propTypes={iconSet:O.oneOf([`emoji`,`check`,void 0]),shape:O.oneOf([`square`,void 0]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string},pg.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var mg=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,F.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,F.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});mg.propTypes={fill:O.string.isRequired};var hg=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,F.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});hg.propTypes={fill:O.string.isRequired};var gg=$h(mg,hg);gg.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},gg.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function _g(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function vg(e){let t=Tl(e);return t.body===e?Vm(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function yg(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function bg(e){return parseFloat(Vm(e).getComputedStyle(e).paddingRight)||0}function xg(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Sg(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!xg(e);t&&n&&yg(e,i)})}function Cg(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function wg(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(vg(r)){let e=_g(Vm(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${bg(r)+e}px`;let t=Tl(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${bg(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Tl(r).body;else{let t=r.parentElement,n=Vm(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function Tg(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var Eg=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&yg(e.modalRef,!1);let r=Tg(t);Sg(t,e.mount,e.modalRef,r,!0);let i=Cg(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=Cg(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=wg(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=Cg(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&yg(e.modalRef,t),Sg(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&yg(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Dg(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var Og=Dg;function kg(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Ag=kg,jg=`data-mui-focusable`;function Mg(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${jg}]`):null}var Ng=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function Pg(e){let 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 Fg(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function Ig(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||Fg(e))}function Lg(e){let t=[],n=[];return Array.from(e.querySelectorAll(Ng)).forEach((e,r)=>{let i=Pg(e);i===-1||!Ig(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Rg(){return!0}function zg(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Lg,isEnabled:o=Rg,open:s}=e,c=P.useRef(!1),l=P.useRef(null),u=P.useRef(null),d=P.useRef(null),f=P.useRef(null),p=P.useRef(!1),m=P.useRef(null),h=yl(Ic(t),m),g=P.useRef(null);P.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),P.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Ag(Tl(m.current)),t=Mg(m.current)??m.current;return Og(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),P.useEffect(()=>{if(!s||!m.current)return;let e=Tl(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Ag(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Ag(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(Og(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=Ag(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,F.jsxs)(P.Fragment,{children:[(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),P.cloneElement(t,{ref:h,onFocus:_}),(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}var Bg={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Vg={opacity:0,visibility:`hidden`},Hg=P.forwardRef(function(e,t){let n=bc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=P.useRef(null),y=bl(v,Ic(o),t),b=gl(v,d),x=gl(v,(e,t)=>{hl(e);let r=vl({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=gl(v,u),C=gl(v,m),w=gl(v,e=>{let t=vl({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=gl(v,e=>{e.style.transition=``,p&&p(e)});return(0,F.jsx)(tl,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=_l(e,c,Bg,Vg,h,o.props.style);return P.cloneElement(o,{style:r,ref:y,...n})}})});function Ug(e){return za(`MuiBackdrop`,e)}Ba(`MuiBackdrop`,[`root`,`invisible`]);var Wg=e=>{let{classes:t,invisible:n}=e;return cs({root:[`root`,n&&`invisible`]},Ug,t)},Gg=L(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),Kg=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=Wg(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Wd(`root`,{elementType:Gg,externalForwardedProps:_,className:La(g.root,i),ownerState:h}),[b,x]=Wd(`transition`,{elementType:Hg,externalForwardedProps:_,ownerState:h});return(0,F.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,F.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function qg(e){return typeof e==`function`?e():e}function Jg(e){return e?e.props.hasOwnProperty(`in`):!1}var Yg=()=>{},Xg=new Eg;function Zg(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=P.useRef({}),f=P.useRef(null),p=P.useRef(null),m=yl(p,u),[h,g]=P.useState(!l),_=Jg(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Tl(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Xg.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=zd(()=>{let e=qg(t)||y().body;Xg.add(b(),e),p.current&&x()}),C=()=>Xg.isTopModal(b()),w=zd(e=>{f.current=e,e&&(l&&C()?x():p.current&&yg(p.current,v))}),T=P.useCallback(()=>{Xg.remove(b(),v)},[v]);P.useEffect(()=>()=>{T()},[T]),P.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=Sd(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:jm(()=>{g(!1),a&&a()},s?.props.onEnter??Yg),onExited:jm(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Yg)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function Qg(e){return za(`MuiModal`,e)}Ba(`MuiModal`,[`root`,`hidden`,`backdrop`]);var $g=e=>{let{open:t,exited:n,classes:r}=e;return cs({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Qg,r)},e_=L(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Lc(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),t_=L(Kg,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),n_=P.forwardRef(function(e,t){let n=Rc({name:`MuiModal`,props:e}),{BackdropComponent:r=t_,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,ee={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:te,getBackdropProps:k,getTransitionProps:A,portalRef:ne,isTopModal:j,exited:re,hasTransition:ie}=Zg({...ee,rootRef:t}),ae={...ee,exited:re},oe=$g(ae),se={};if(c.props.tabIndex===void 0&&(se.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=A();se.onEnter=e,se.onExited=t}let M={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ce,le]=Wd(`root`,{ref:t,elementType:e_,externalForwardedProps:{...M,...O,component:u},getSlotProps:te,ownerState:ae,className:La(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[ue,de]=Wd(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:La(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||re)?null:(0,F.jsx)(kd,{ref:ne,container:l,disablePortal:g,children:(0,F.jsxs)(ce,{...le,children:[!y&&r?(0,F.jsx)(ue,{...de}):null,(0,F.jsx)(zg,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:P.cloneElement(c,se)})]})})});function r_(e){return za(`MuiPaper`,e)}Ba(`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`.split(`.`));var i_=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return cs({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},r_,i)},a_=L(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(Lc(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),o_=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiPaper`}),r=bc(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=i_(u);return(0,F.jsx)(a_,{as:a,ownerState:u,className:La(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${fo(`#fff`,tc(o))}, ${fo(`#fff`,tc(o))})`}},...l.style}})});function s_(e){return za(`MuiPopover`,e)}Ba(`MuiPopover`,[`root`,`paper`]);function c_(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function l_(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function u_(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function d_(e){return typeof e==`function`?e():e}var f_=e=>{let{classes:t}=e;return cs({root:[`root`],paper:[`paper`]},s_,t)},p_=L(n_,{name:`MuiPopover`,slot:`Root`})({}),m_=L(o_,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),h_=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=P.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=f_(w),E=P.useCallback(()=>{if(s===`anchorPosition`)return o;let e=d_(i),t=(e&&e.nodeType===1?e:Bm(C.current).body).getBoundingClientRect();return{top:t.top+c_(t,a.vertical),left:t.left+l_(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=P.useCallback(e=>({vertical:c_(e,_.vertical),horizontal:l_(e,_.horizontal)}),[_.horizontal,_.vertical]),O=P.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:u_(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Hm(d_(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:u_(n)}},[i,s,E,D,f]),[ee,te]=P.useState(p),k=P.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,te(!0)},[O]);P.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},ne=()=>{te(!1)};P.useEffect(()=>{p&&k()}),P.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),P.useEffect(()=>{if(!p)return;let e=Rm(()=>{k()}),t=Hm(d_(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let j=y,re={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=Wd(`transition`,{elementType:wl,externalForwardedProps:re,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),ne()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(j=void 0);let oe=u||(i?Bm(d_(i)).body:void 0),[se,{slots:M,slotProps:ce,...le}]=Wd(`root`,{ref:t,elementType:p_,externalForwardedProps:{...re,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Gm(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:La(T.root,l)}),[ue,de]=Wd(`paper`,{ref:C,className:T.paper,elementType:m_,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,F.jsx)(se,{...le,...!bd(se)&&{slots:M,slotProps:ce,disableScrollLock:x},children:(0,F.jsx)(ie,{...ae,timeout:j,children:(0,F.jsx)(ue,{...de,children:c})})})});function g_(e,t){this.v=e,this.k=t}function __(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v_(e){if(Array.isArray(e))return e}function y_(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function b_(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
149
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x_(e,t){return v_(e)||y_(e,t)||S_(e,t)||b_()}function S_(e,t){if(e){if(typeof e==`string`)return __(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?__(e,t):void 0}}function C_(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof g_;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}C_.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},C_.prototype.next=function(e){return this._invoke(`next`,e)},C_.prototype.throw=function(e){return this._invoke(`throw`,e)},C_.prototype.return=function(e){return this._invoke(`return`,e)};var w_=Object.entries,T_=Object.setPrototypeOf,E_=Object.isFrozen,D_=Object.getPrototypeOf,O_=Object.getOwnPropertyDescriptor,k_=Object.freeze,A_=Object.seal,j_=Object.create,M_=typeof Reflect<`u`&&Reflect,N_=M_.apply,P_=M_.construct;k_||=function(e){return e},A_||=function(e){return e},N_||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},P_||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)};var F_=tv(Array.prototype.forEach);Array.prototype.indexOf;var I_=tv(Array.prototype.lastIndexOf),L_=tv(Array.prototype.pop),R_=tv(Array.prototype.push);Array.prototype.slice;var z_=tv(Array.prototype.splice),B_=Array.isArray,V_=tv(String.prototype.toLowerCase),H_=tv(String.prototype.toString),U_=tv(String.prototype.match),W_=tv(String.prototype.replace),G_=tv(String.prototype.indexOf),K_=tv(String.prototype.trim),q_=tv(Number.prototype.toString),J_=tv(Boolean.prototype.toString),Y_=typeof BigInt>`u`?null:tv(BigInt.prototype.toString),X_=typeof Symbol>`u`?null:tv(Symbol.prototype.toString),Z_=tv(Object.prototype.hasOwnProperty),Q_=tv(Object.prototype.toString),$_=tv(RegExp.prototype.test),ev=nv(TypeError);function tv(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return N_(e,t,r)}}function nv(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return P_(e,n)}}function rv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V_;if(T_&&T_(e,null),!B_(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(E_(t)||(t[r]=e),i=e)}e[i]=!0}return e}function iv(e){for(let t=0;t<e.length;t++)Z_(e,t)||(e[t]=null);return e}function av(e){let t=j_(null);for(let r of w_(e)){var n=x_(r,2);let i=n[0],a=n[1];Z_(e,i)&&(B_(a)?t[i]=iv(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=av(a):t[i]=a)}return t}function ov(e){switch(typeof e){case`string`:return e;case`number`:return q_(e);case`boolean`:return J_(e);case`bigint`:return Y_?Y_(e):`0`;case`symbol`:return X_?X_(e):`Symbol()`;case`undefined`:return Q_(e);case`function`:case`object`:{if(e===null)return Q_(e);let t=e,n=sv(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Q_(e)}return Q_(e)}default:return Q_(e)}}function sv(e,t){for(;e!==null;){let n=O_(e,t);if(n){if(n.get)return tv(n.get);if(typeof n.value==`function`)return tv(n.value)}e=D_(e)}function n(){return null}return n}function cv(e){try{return $_(e,``),!0}catch{return!1}}var lv=k_(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),uv=k_(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),dv=k_([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),fv=k_([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),pv=k_(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),mv=k_([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),hv=k_([`#text`]),gv=k_(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),_v=k_(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),vv=k_(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),yv=k_([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),bv=A_(/{{[\w\W]*|^[\w\W]*}}/g),xv=A_(/<%[\w\W]*|^[\w\W]*%>/g),Sv=A_(/\${[\w\W]*/g),Cv=A_(/^data-[\-\w.\u00B7-\uFFFF]+$/),wv=A_(/^aria-[\-\w]+$/),Tv=A_(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ev=A_(/^(?:\w+script|data):/i),Dv=A_(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ov=A_(/^html$/i),kv=A_(/^[a-z][.\w]*(-[.\w]+)+$/i),Av=A_(/<[/\w!]/g),jv=A_(/<[/\w]/g),Mv=A_(/<\/no(script|embed|frames)/i),Nv=A_(/\/>/i),Pv={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Fv=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],Iv=k_(rv({},Fv)),Lv=function(){let e={};return F_(Fv,t=>{e[t]=A_(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),k_(e)}(),Rv=function(){return typeof window>`u`?null:window},zv=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Bv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Vv=function(e,t,n,r){return Z_(e,t)&&B_(e[t])?rv(r.base?av(r.base):{},e[t],r.transform):n},Hv=function(e,t,n){let r=Z_(e,t)?e[t]:void 0;return r&&typeof r==`object`?av(r):n()};function Uv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rv(),t=e=>Uv(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==Pv.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=sv(d,`cloneNode`),p=sv(d,`remove`),m=sv(d,`removeAttributeNode`),h=sv(d,`nextSibling`),g=sv(d,`childNodes`),_=sv(d,`parentNode`),v=sv(d,`shadowRoot`),y=sv(d,`attributes`),b=o&&o.prototype?sv(o.prototype,`nodeType`):null,x=o&&o.prototype?sv(o.prototype,`nodeName`):null,S=o&&o.prototype?sv(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let T,E=``,D,O=!1,ee=0,te=function(){if(ee>0)throw ev(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},k=function(e){te(),ee++;try{return T.createHTML(e)}finally{ee--}},A=function(e){te(),ee++;try{return T.createScriptURL(e)}finally{ee--}},ne=function(){return O||=(D=zv(u,i),!0),D},j=n,re=j.implementation,ie=j.createNodeIterator,ae=j.createDocumentFragment,oe=j.getElementsByTagName,se=r.importNode,M=Bv();t.isSupported=typeof w_==`function`&&typeof _==`function`&&re&&re.createHTMLDocument!==void 0;let ce=bv,le=xv,ue=Sv,de=Cv,fe=wv,pe=Ev,me=Dv,he=kv,ge=Tv,_e=null,ve=rv({},[...lv,...uv,...dv,...pv,...hv]),N=null,ye=rv({},[...gv,..._v,...vv,...yv]),be=Object.seal(j_(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Se=null,Ce=Object.seal(j_(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),we=!0,Te=!0,Ee=!1,De=!0,Oe=!1,ke=!0,Ae=!1,je=!1,Me=null,Ne=null,Pe=!1,Fe=!1,Ie=!1,Le=!1,Re=!0,ze=!1,Be=`user-content-`,Ve=!0,He=!1,Ue={},We=null,Ge=rv({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ke=null,qe=rv({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Je=null,Ye=rv({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Xe=`http://www.w3.org/1998/Math/MathML`,Ze=`http://www.w3.org/2000/svg`,Qe=`http://www.w3.org/1999/xhtml`,$e=Qe,et=!1,tt=null,nt=rv({},[Xe,Ze,Qe],H_),rt=k_([`mi`,`mo`,`mn`,`ms`,`mtext`]),it=rv({},rt),at=k_([`annotation-xml`]),ot=rv({},at),st=rv({},[`title`,`style`,`font`,`a`,`script`]),ct=null,lt=[`application/xhtml+xml`,`text/html`],ut=null,dt=null,ft=n.createElement(`form`),pt=function(e){return e instanceof RegExp||e instanceof Function},mt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(dt&&dt===e)return;(!e||typeof e!=`object`)&&(e={}),e=av(e),ct=lt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,ut=ct===`application/xhtml+xml`?H_:V_,_e=Vv(e,`ALLOWED_TAGS`,ve,{transform:ut}),N=Vv(e,`ALLOWED_ATTR`,ye,{transform:ut}),tt=Vv(e,`ALLOWED_NAMESPACES`,nt,{transform:H_}),Je=Vv(e,`ADD_URI_SAFE_ATTR`,Ye,{transform:ut,base:Ye}),Ke=Vv(e,`ADD_DATA_URI_TAGS`,qe,{transform:ut,base:qe}),We=Vv(e,`FORBID_CONTENTS`,Ge,{transform:ut}),xe=Vv(e,`FORBID_TAGS`,av({}),{transform:ut}),Se=Vv(e,`FORBID_ATTR`,av({}),{transform:ut}),Ue=Z_(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?av(e.USE_PROFILES):e.USE_PROFILES:!1,we=e.ALLOW_ARIA_ATTR!==!1,Te=e.ALLOW_DATA_ATTR!==!1,Ee=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Oe=e.SAFE_FOR_TEMPLATES||!1,ke=e.SAFE_FOR_XML!==!1,Ae=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,Le=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Re=e.SANITIZE_DOM!==!1,ze=e.SANITIZE_NAMED_PROPS||!1,Ve=e.KEEP_CONTENT!==!1,He=e.IN_PLACE||!1,ge=cv(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Tv,$e=typeof e.NAMESPACE==`string`?e.NAMESPACE:Qe,it=Hv(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>rv({},rt)),ot=Hv(e,`HTML_INTEGRATION_POINTS`,()=>rv({},at));let t=Hv(e,`CUSTOM_ELEMENT_HANDLING`,()=>j_(null));if(be=j_(null),Z_(t,`tagNameCheck`)&&pt(t.tagNameCheck)&&(be.tagNameCheck=t.tagNameCheck),Z_(t,`attributeNameCheck`)&&pt(t.attributeNameCheck)&&(be.attributeNameCheck=t.attributeNameCheck),Z_(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(be.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),A_(be),Oe&&(Te=!1),Ie&&(Fe=!0),Ue&&(_e=rv({},hv),N=j_(null),Ue.html===!0&&(rv(_e,lv),rv(N,gv)),Ue.svg===!0&&(rv(_e,uv),rv(N,_v),rv(N,yv)),Ue.svgFilters===!0&&(rv(_e,dv),rv(N,_v),rv(N,yv)),Ue.mathMl===!0&&(rv(_e,pv),rv(N,vv),rv(N,yv))),Ce.tagCheck=null,Ce.attributeCheck=null,Z_(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Ce.tagCheck=e.ADD_TAGS:B_(e.ADD_TAGS)&&(_e===ve&&(_e=av(_e)),rv(_e,e.ADD_TAGS,ut))),Z_(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Ce.attributeCheck=e.ADD_ATTR:B_(e.ADD_ATTR)&&(N===ye&&(N=av(N)),rv(N,e.ADD_ATTR,ut))),Z_(e,`ADD_FORBID_CONTENTS`)&&B_(e.ADD_FORBID_CONTENTS)&&(We===Ge&&(We=av(We)),rv(We,e.ADD_FORBID_CONTENTS,ut)),Ve&&(_e[`#text`]=!0),Ae&&rv(_e,[`html`,`head`,`body`]),_e.table&&(rv(_e,[`tbody`]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw ev(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw ev(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=T;T=e.TRUSTED_TYPES_POLICY;try{E=k(``)}catch(e){throw T=t,e}}else e.TRUSTED_TYPES_POLICY===null?(T=void 0,E=``):(T===void 0&&(T=ne()),T&&typeof E==`string`&&(E=k(``)));k_&&k_(e),dt=e},ht=rv({},[...uv,...dv,...fv]),gt=rv({},[...pv,...mv]),_t=function(e,t,n){return t.namespaceURI===Qe?e===`svg`:t.namespaceURI===Xe?e===`svg`&&(n===`annotation-xml`||it[n]):!!ht[e]},vt=function(e,t,n){return t.namespaceURI===Qe?e===`math`:t.namespaceURI===Ze?e===`math`&&ot[n]:!!gt[e]},yt=function(e,t,n){return t.namespaceURI===Ze&&!ot[n]||t.namespaceURI===Xe&&!it[n]?!1:!gt[e]&&(st[e]||!ht[e])},bt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:$e,tagName:`template`});let n=V_(e.tagName),r=V_(t.tagName);return tt[e.namespaceURI]?e.namespaceURI===Ze?_t(n,t,r):e.namespaceURI===Xe?vt(n,t,r):e.namespaceURI===Qe?yt(n,t,r):!!(ct===`application/xhtml+xml`&&tt[e.namespaceURI]):!1},xt=function(e){R_(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw ev(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},St=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},Ct=function(e){Et(e);let t=g(e);if(t){let e=[];F_(t,t=>{R_(e,t)}),F_(e,e=>{try{p(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&St(e,r,i)}},wt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}R_(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`)if(Fe||Ie)try{xt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Tt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||N[ut(i)]||St(e,r,i)}},Et=function(e){let t=[e];for(;t.length>0;){let e=t.pop();C(e)===Pv.element&&Tt(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Dt=function(e,t){return ke?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Ot=function(e){if(!ke)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=C(e);if(n===Pv.processingInstruction||n===Pv.comment&&$_(jv,e.data)){try{p(e)}catch{}continue}if(n===Pv.element){let t=e,n=ut(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Dt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},kt=function(e){let t=null,r=null;if(Pe)e=`<remove></remove>`+e;else{let t=U_(e,/^[\r\n\t ]+/);r=t&&t[0]}ct===`application/xhtml+xml`&&$e===Qe&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=T?k(e):e;if($e===Qe)try{t=new l().parseFromString(i,ct)}catch{}if(!t||!t.documentElement){t=re.createDocument($e,`template`,null);try{t.documentElement.innerHTML=et?E:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),$e===Qe?oe.call(t,Ae?`html`:`body`)[0]:Ae?t.documentElement:a},At=function(e){let t=S?S(e):e.ownerDocument;return ie.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},jt=function(e){return e=W_(e,ce,` `),e=W_(e,le,` `),e=W_(e,ue,` `),e},Mt=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=ie.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=jt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&F_(i,e=>{Pt(e.content)&&Mt(e.content)})},Nt=function(e){let t=x?x(e):null;return typeof t!=`string`||ut(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Pt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===Pv.documentFragment}catch{return!1}},Ft=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function It(e,n,r){e.length!==0&&F_(e,e=>{e.call(t,n,r,dt)})}let Lt=function(e,t){return!!(ke&&e.hasChildNodes()&&!Ft(e.firstElementChild)&&$_(Av,e.textContent)&&$_(Av,e.innerHTML)||ke&&e.namespaceURI===Qe&&Iv[t]&&(Ft(e.firstElementChild)||typeof e.textContent==`string`&&$_(Lv[t],e.textContent))||e.nodeType===Pv.processingInstruction||ke&&e.nodeType===Pv.comment&&$_(jv,e.data))},Rt=function(e,t){if(e instanceof RegExp)return $_(e,t);if(e instanceof Function){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return!!e(t,...r)}return!1},zt=function(e,t,n){if(!xe[t]&&Gt(t)&&Rt(be.tagNameCheck,t))return!1;if(Ve&&!We[t]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return xt(e),!0},Bt=function(e,t,n,r){return e.length===0?t:t===n||t===r?av(t):t},Vt=function(e,t){return e===t||_(e)!==null?!1:(He&&Et(e),!0)},Ht=function(e,n){if(It(M.beforeSanitizeElements,e,null),Vt(e,n))return!0;if(Nt(e))return xt(e),!0;let r=ut(w(e));if(_e=Bt(M.uponSanitizeElement,_e,ve,Me),It(M.uponSanitizeElement,e,{tagName:r,allowedTags:_e}),Vt(e,n))return!0;if(Lt(e,r))return xt(e),!0;if(xe[r]||!(Ce.tagCheck instanceof Function&&Ce.tagCheck(r))&&!_e[r]){let t=zt(e,r,n);return t===!1&&(It(M.afterSanitizeElements,e,null),Vt(e,n))?!0:t}if(C(e)===Pv.element&&!bt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&$_(Mv,e.innerHTML))return xt(e),!0;if(Oe&&e.nodeType===Pv.text){let n=jt(e.textContent);e.textContent!==n&&(R_(t.removed,{element:e.cloneNode()}),e.textContent=n)}return It(M.afterSanitizeElements,e,null),Vt(e,n)},Ut=function(e,t,r){if(Se[t]||Dt(t,e)||Re&&(t===`id`||t===`name`)&&(r in n||r in ft))return!1;let i=N[t]||Ce.attributeCheck instanceof Function&&Ce.attributeCheck(t,e);return Te&&$_(de,t)||we&&$_(fe,t)?!0:i?Je[t]||$_(ge,W_(r,me,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&G_(r,`data:`)===0&&Ke[e]||Ee&&!$_(pe,W_(r,me,``))?!0:!r:Gt(e)&&Rt(be.tagNameCheck,e)&&Rt(be.attributeNameCheck,t,e)||t===`is`&&be.allowCustomizedBuiltInElements&&Rt(be.tagNameCheck,r)},Wt=rv({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Gt=function(e){return!Wt[V_(e)]&&$_(he,e)},Kt=function(e,t,n,r){if(T&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return k(r);case`TrustedScriptURL`:return A(r)}return r},qt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),Nt(e)?(xt(e),!1):!0}catch{return wt(t,e),!1}},Jt=function(e,n){if(It(M.beforeSanitizeAttributes,e,null),Vt(e,n))return;let r=e.attributes;if(!r||Nt(e))return;N=Bt(M.uponSanitizeAttribute,N,ye,Ne);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:N,forceKeepAttr:void 0},a=r.length,o=ut(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=ut(s),d=l,f=s===`value`?d:K_(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,It(M.uponSanitizeAttribute,e,i),f=i.attrValue,ze&&(u===`id`||u===`name`)&&G_(f,Be)!==0&&(wt(s,e,n),f=Be+f,p=!0),ke&&$_(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){wt(s,e,n);continue}if(u===`attributename`&&U_(f,`href`)){wt(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){wt(s,e,n);continue}if(!De&&$_(Nv,f)){wt(s,e,n);continue}if(Oe&&(f=jt(f)),!Ut(o,u,f)){wt(s,e,n);continue}f=Kt(o,u,c,f),f!==d&&qt(e,s,c,f)&&p&&L_(t.removed)}}It(M.afterSanitizeAttributes,e,null),Vt(e,n)},Yt=function(e){let t=null,n=At(e);for(It(M.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(It(M.uponSanitizeShadowNode,t,null),Ht(t,e),Jt(t,e),Pt(t.content)&&Yt(t.content),C(t)===Pv.element){let e=v(t);Pt(e)&&(Xt(e),Yt(e))}It(M.afterSanitizeShadowDOM,e,null)},Xt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Yt(e.shadow);continue}let n=e.node,r=C(n)===Pv.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&ut(e)===`template`){let e=n.content;Pt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Pt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(et=!e,et&&(e=`<!-->`),typeof e!=`string`&&!Ft(e)&&(e=ov(e),typeof e!=`string`))throw ev(`dirty is not a string, aborting`);if(!t.isSupported)return e;je?(_e=Me,N=Ne):mt(n),(M.uponSanitizeElement.length>0||M.uponSanitizeAttribute.length>0)&&(_e=av(_e)),M.uponSanitizeAttribute.length>0&&(N=av(N)),t.removed=[];let c=He&&typeof e!=`string`&&Ft(e);if(c){Ot(e);let t=w(e);if(typeof t==`string`){let n=ut(t);if(!_e[n]||xe[n])throw Ct(e),ev(`root node is forbidden and cannot be sanitized in-place`)}if(Nt(e))throw Ct(e),ev(`root node is clobbered and cannot be sanitized in-place`);try{Xt(e)}catch(t){throw Ct(e),t}}else if(Ft(e))i=kt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Pv.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Xt(i);else{if(!Fe&&!Oe&&!Ae&&e.indexOf(`<`)===-1)return T&&Le?k(e):e;if(i=kt(e),!i)return Fe?null:Le?E:``}i&&Pe&&xt(i.firstChild);let l=c?e:i;try{let e=At(l);for(;o=e.nextNode();)Ht(o,l),Jt(o,l),Pt(o.content)&&Yt(o.content)}catch(n){throw c&&(Ct(e),F_(t.removed,e=>{e.element&&Et(e.element)})),n}if(c){let n=!1;if(F_(t.removed,t=>{t.element&&(t.element===e&&(n=!0),Et(t.element))}),n)throw ev(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Oe&&Mt(e),e}if(Fe){if(Oe&&Mt(i),Ie)for(s=ae.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(N.shadowroot||N.shadowrootmode)&&(s=se.call(r,s,!0)),s}let u=Ae?i.outerHTML:i.innerHTML;return Ae&&_e[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&$_(Ov,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
150
+ `+u),Oe&&(u=jt(u)),T&&Le?k(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};mt(e),je=!0,Me=_e,Ne=N},t.clearConfig=function(){dt=null,je=!1,Me=null,Ne=null,T=D,E=``},t.isValidAttribute=function(e,t,n){dt||mt({});let r=ut(e),i=ut(t);return Ut(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Z_(M,e)&&R_(M[e],t)},t.removeHook=function(e,t){if(Z_(M,e)){if(t!==void 0){let n=I_(M[e],t);return n===-1?void 0:z_(M[e],n,1)[0]}return L_(M[e])}},t.removeHooks=function(e){Z_(M,e)&&(M[e]=[])},t.removeAllHooks=function(){M=Bv()},t}var Wv=Uv(),Gv=[`script`,`embed`,`base`,`form`,`meta`,`link`,`style`,`foreignobject`],Kv=[`onerror`,`onload`,`onclick`,`onmouseover`,`onmouseout`,`onmouseenter`,`onmouseleave`,`onfocus`,`onblur`,`onkeydown`,`onkeyup`,`onkeypress`,`onsubmit`,`onchange`,`onbeforeunload`,`formaction`,`xlink:href`],qv=new Set([`iframe`,`object`,`semantics`,`annotation`,`none`]),Jv=/^[a-z_][\w.-]*:[a-z][\w.-]*$/,Yv={ADD_TAGS:e=>qv.has(e)||Jv.test(e),ADD_ATTR:[`alignment`,`target`,`allow`,`allowfullscreen`,`frameborder`,`scrolling`,`data`],FORBID_TAGS:Gv,FORBID_ATTR:Kv,ALLOW_UNKNOWN_PROTOCOLS:!1,RETURN_TRUSTED_TYPE:!1},Xv=1e6,Zv=new Map,Qv=0;function $v(e){if(e==null||e===``||!Wv.isSupported)return``;let t=typeof e==`string`?e:String(e),n=Zv.get(t);if(n!==void 0)return n;let r=String(Wv.sanitize(t,Yv)),i=t.length+r.length;if(i>Xv)return r;for(let[e,t]of Zv){if(Qv+i<=Xv)break;Zv.delete(e),Qv-=e.length+t.length}return Zv.set(t,r),Qv+=i,r}var ey={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},ty={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},ny=s({background:()=>Ey,backgroundDark:()=>Dy,black:()=>By,blueGrey100:()=>Xy,blueGrey300:()=>Zy,blueGrey600:()=>Qy,blueGrey900:()=>$y,border:()=>Ny,borderDark:()=>Fy,borderGray:()=>Iy,borderLight:()=>Py,buttonBorder:()=>ub,buttonFocusOutline:()=>qy,buttonHoverBg:()=>db,correct:()=>cy,correctSecondary:()=>ly,correctTertiary:()=>uy,correctWithIcon:()=>dy,defaults:()=>V,disabled:()=>ay,disabledSecondary:()=>oy,disabledText:()=>sy,dropdownBackground:()=>ky,editorToolbar:()=>lb,fadedPrimary:()=>xy,focusChecked:()=>Uy,focusCheckedBorder:()=>Wy,focusOutline:()=>Jy,focusUnchecked:()=>Gy,focusUncheckedBorder:()=>Ky,incorrect:()=>fy,incorrectSecondary:()=>my,incorrectWithIcon:()=>py,keyBoardFocusIndicator:()=>Yy,keypadButton:()=>nb,keypadButtonHover:()=>ab,keypadButtonOperator:()=>rb,keypadButtonOperatorHover:()=>ob,keypadEmptyPlaceholder:()=>ib,keypadInk:()=>cb,missing:()=>hy,missingWithIcon:()=>gy,primary:()=>_y,primaryDark:()=>yy,primaryLight:()=>vy,primaryText:()=>by,secondary:()=>Sy,secondaryBackground:()=>Oy,secondaryDark:()=>wy,secondaryLight:()=>Cy,secondaryText:()=>Ty,surface:()=>Ay,tableGrid:()=>Ly,tableGridLight:()=>Ry,tableStripe:()=>zy,tertiary:()=>jy,tertiaryLight:()=>My,text:()=>iy,transparent:()=>Hy,v:()=>ry,visualElementsColors:()=>fb,white:()=>Vy}),V={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:`#208537`,CORRECT_SECONDARY:_s[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:`#a65f00`,INCORRECT_SECONDARY:ps[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:ps[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:ty[500],PRIMARY_LIGHT:ty[200],PRIMARY_DARK:ty[800],SECONDARY:ey.A400,SECONDARY_LIGHT:ey[200],SECONDARY_DARK:ey[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#EBECF1`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#66686A`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#81848F`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,EDITOR_TOOLBAR:`#efefef`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(V);var ry=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},H=ry(`pie`),iy=()=>H(`text`,V.TEXT),ay=()=>H(`disabled`,V.DISABLED),oy=()=>H(`disabled-secondary`,V.DISABLED_SECONDARY),sy=()=>H(`disabled-text`,`text`,V.DISABLED_TEXT),cy=()=>H(`correct`,V.CORRECT),ly=()=>H(`correct-secondary`,V.CORRECT_SECONDARY),uy=()=>H(`correct-tertiary`,V.CORRECT_TERTIARY),dy=()=>H(`correct-icon`,V.CORRECT_WITH_ICON),fy=()=>H(`incorrect`,V.INCORRECT),py=()=>H(`incorrect-icon`,V.INCORRECT_WITH_ICON),my=()=>H(`incorrect-secondary`,V.INCORRECT_SECONDARY),hy=()=>H(`missing`,V.MISSING),gy=()=>H(`missing-icon`,V.MISSING_WITH_ICON),_y=()=>H(`primary`,V.PRIMARY),vy=()=>H(`primary-light`,V.PRIMARY_LIGHT),yy=()=>H(`primary-dark`,V.PRIMARY_DARK),by=()=>H(`primary-text`,`text`,V.TEXT),xy=()=>H(`faded-primary`,V.FADED_PRIMARY),Sy=()=>H(`secondary`,V.SECONDARY),Cy=()=>H(`secondary-light`,V.SECONDARY_LIGHT),wy=()=>H(`secondary-dark`,V.SECONDARY_DARK),Ty=()=>H(`secondary-text`,`text`,V.TEXT),Ey=()=>H(`background`,V.BACKGROUND),Dy=()=>H(`background-dark`,V.BACKGROUND_DARK),Oy=()=>H(`secondary-background`,V.SECONDARY_BACKGROUND),ky=()=>H(`dropdown-background`,V.DROPDOWN_BACKGROUND),Ay=()=>H(`surface`,V.SURFACE),jy=()=>H(`tertiary`,V.TERTIARY),My=()=>H(`tertiary-light`,V.TERTIARY_LIGHT),Ny=()=>H(`border`,V.BORDER),Py=()=>H(`border-light`,V.BORDER_LIGHT),Fy=()=>H(`border-dark`,V.BORDER_DARK),Iy=()=>H(`border-gray`,V.BORDER_GRAY),Ly=()=>H(`table-grid`,`text`,V.TABLE_GRID),Ry=()=>H(`table-grid-light`,`border-light`,V.TABLE_GRID_LIGHT),zy=()=>H(`table-stripe`,`background-dark`,V.TABLE_STRIPE),By=()=>H(`black`,V.BLACK),Vy=()=>H(`white`,V.WHITE),Hy=()=>V.TRANSPARENT,Uy=()=>H(`focus-checked`,V.FOCUS_CHECKED),Wy=()=>H(`focus-checked-border`,V.FOCUS_CHECKED_BORDER),Gy=()=>H(`focus-unchecked`,V.FOCUS_UNCHECKED),Ky=()=>H(`focus-unchecked-border`,V.FOCUS_UNCHECKED_BORDER),qy=()=>H(`button-focus-outline`,V.BUTTON_FOCUS_OUTLINE),Jy=()=>H(`focus-outline`,`button-focus-outline`,`focus-checked-border`,V.FOCUS_CHECKED_BORDER),Yy=Jy,Xy=()=>H(`blue-grey-100`,V.BLUE_GREY100),Zy=()=>H(`blue-grey-300`,V.BLUE_GREY300),Qy=()=>H(`blue-grey-600`,V.BLUE_GREY600),$y=()=>H(`blue-grey-900`,V.BLUE_GREY900),eb=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);return t?t.slice(1).map(e=>parseInt(e,16)):e.match(/\d+/g).slice(0,3).map(Number)},tb=(e,t)=>`color-mix(in srgb, rgb(${eb(e).map(e=>(e-255*(1-t))/t).join(` `)}) ${t*100}%, ${H(`background`,V.WHITE)})`,nb=()=>H(`keypad-button`,tb(V.KEYPAD_BUTTON,.5)),rb=()=>H(`keypad-button-operator`,tb(V.KEYPAD_BUTTON_OPERATOR,.5)),ib=()=>H(`keypad-empty-placeholder`,V.KEYPAD_EMPTY_PLACEHOLDER),ab=()=>H(`keypad-button-hover`,tb(V.KEYPAD_BUTTON_HOVER,.25)),ob=()=>H(`keypad-button-operator-hover`,tb(V.KEYPAD_BUTTON_OPERATOR_HOVER,.25)),sb=`clamp(0.6, (r + g + b) / 450, 1)`,cb=()=>`rgb(from ${iy()} calc(r * ${sb}) calc(g * ${sb}) calc(b * ${sb}))`,lb=()=>tb(V.EDITOR_TOOLBAR,.125),ub=()=>H(`button-border`,V.BUTTON_BORDER),db=()=>H(`button-hover-bg`,V.BUTTON_HOVER_BG),fb={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},pb=L(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),mb=L(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Dy()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, ${iy()})`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${ly()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${my()})`}}),hb=L(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),gb=class extends P.Component{static propTypes={correctness:O.string,feedback:O.string};nodeRef=P.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,F.jsx)(al,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,F.jsx)(hb,{ref:this.nodeRef,children:(0,F.jsx)(pb,{children:(0,F.jsx)(mb,{className:e,dangerouslySetInnerHTML:{__html:$v(t)}})})})},`hasFeedback`)}render(){return(0,F.jsx)(`div`,{children:(0,F.jsx)(ml,{children:this.renderFeedback()})})}},_b=s({Correct:()=>Cb,Incorrect:()=>wb,NothingSubmitted:()=>Eb,PartiallyCorrect:()=>Tb}),vb=Wh(`pie-libs:render-ui:response-indicators`),yb=L(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),bb=L(h_)({cursor:`pointer`}),xb=L(`div`)({padding:`0`,borderRadius:`4px`}),Sb=(e,t)=>{class n extends P.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{vb(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,F.jsxs)(yb,{hasFeedback:!!n,children:[(0,F.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,F.jsx)(e,{})}),n&&(0,F.jsx)(bb,{PaperComponent:xb,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,F.jsx)(gb,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:O.string},n},Cb=Sb(ng,`correct`),wb=Sb(lg,`incorrect`),Tb=Sb(gg,`partially-correct`),Eb=Sb(pg,`nothing-submitted`);function Db(e){return za(`MuiCollapse`,e)}Ba(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Ob=e=>{let{orientation:t,classes:n}=e;return cs({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Db,n)},kb=L(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(Lc(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),Ab=L(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),jb=L(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Mb=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=Ws.standard,TransitionComponent:x=tl,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Ob(C),T=bc(),E=Pc(),D=P.useRef(null),O=P.useRef(),ee=typeof o==`number`?`${o}px`:o,te=g===`horizontal`,k=te?`width`:`height`,A=P.useRef(null),ne=bl(t,A),j=()=>D.current?D.current[te?`clientWidth`:`clientHeight`]:0,re=gl(A,(e,t)=>{D.current&&te&&(D.current.style.position=`absolute`),e.style[k]=ee,u&&u(e,t)}),ie=gl(A,(e,t)=>{let n=j();D.current&&te&&(D.current.style.position=``);let{duration:r,easing:i}=vl({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=gl(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),oe=gl(A,e=>{e.style[k]=`${j()}px`,p&&p(e)}),se=gl(A,m),M=gl(A,e=>{let t=j(),{duration:n,easing:r}=vl({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),ce=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(A.current,e)},le={slots:_,slotProps:v,component:s},[ue,de]=Wd(`root`,{ref:ne,className:La(w.root,a),elementType:kb,externalForwardedProps:le,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:ee,...y}}}),[fe,pe]=Wd(`wrapper`,{ref:D,className:w.wrapper,elementType:Ab,externalForwardedProps:le,ownerState:C}),[me,he]=Wd(`wrapperInner`,{className:w.wrapperInner,elementType:jb,externalForwardedProps:le,ownerState:C});return(0,F.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:se,onExiting:M,addEndListener:ce,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,F.jsx)(ue,{...de,className:La(de.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,F.jsx)(fe,{...pe,ownerState:r,children:(0,F.jsx)(me,{...he,ownerState:r,children:i})})})}})});Mb&&(Mb.muiSupportAuto=!0);var Nb=`4.1.3`,Pb=`https://github.com/pie-framework/pie-elements-ng/blob/develop/docs/MATH-RENDERING.md#assets`,Fb=`@pie-lib/math-rendering@2`,Ib=[`nemeth`,`euro`],Lb=`mathjax@${Nb}/sre`,Rb=/^[^@]+@[^@]+$/;function zb(e){if(!e)return;let t;try{t=new URL(e)}catch{return}if(t.origin===`null`)return;let n=t.pathname.split(`/`);for(let e=n.length-1;e>0;e--){let r=n[e];if(r===`node_modules`)return;if(!Rb.test(r))continue;let i=n[e-1]?.startsWith(`@`)?e-1:e;return t.origin+n.slice(0,i).join(`/`)}}function Bb(){let e=globalThis[Fb]?.opts;return e&&typeof e==`object`?e:{}}function Vb(e){if(typeof e!=`string`||!e)return;let t=typeof document>`u`?void 0:document.baseURI;try{return new URL(e,t).href.replace(/\/+$/,``)}catch{return}}function Hb(e){if(!e||typeof e!=`object`)return;let t=new Map;for(let[n,r]of Object.entries(e)){let e=Vb(r);e&&t.set(n,e)}return t.size?t:void 0}function Ub(e){if(Array.isArray(e))return new Map(e.filter(e=>typeof e==`string`).map(e=>[e,void 0]));if(e&&typeof e==`object`)return new Map(Object.entries(e).map(([e,t])=>[e,typeof t==`string`?t:void 0]))}function Wb(e,t){let n=Bb(),r=Vb(e.assetRoot??n.assetRoot)??zb(t);return{root:r,speechPath:Vb(e.speechPath??n.speechPath)??(r?`${r}/${Lb}`:void 0),speechLocales:Ub(e.speechLocales??n.speechLocales),urls:Hb(e.assetUrls??n.assetUrls)}}function Gb(e,t){if(!(!e||!t)){for(let n of[...e.keys()])!t.has(n)&&!Ib.includes(n)&&e.delete(n);for(let[n,r]of t)(r||!e.has(n))&&e.set(n,r??n)}}function Kb(e){if(!(!e||e.has(`en`)))return[...e.keys()].find(e=>!Ib.includes(e))}var qb=`pie-mathjax-no-asset-root`,Jb={untypeset:`no MathJax loads, so math stays untypeset`,"no-web-fonts":`math renders without web fonts`,"no-web-fonts-or-speech":`math renders without web fonts and speech`},Yb=Symbol.for(`@pie-element/shared-math-rendering-mathjax/no-assets`);function Xb(e){let t=globalThis;t[Yb]??=[];let n=t[Yb];if(n.includes(e))return;n.push(e);let r=`[math-rendering] No asset root for MathJax: ${Jb[e]}. Set window['${Fb}'].opts.assetRoot to an npm root. See ${Pb}`;e===`untypeset`?console.error(r):console.warn(r),!(typeof window>`u`)&&window.dispatchEvent(new CustomEvent(qb,{detail:{effect:e,message:r,docsUrl:Pb}}))}var Zb=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,Qb=`pie-mathjax-version-conflict`,$b=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function ex(e,t){if(typeof window>`u`)return;let n=globalThis;n[$b]??={logged:!1,conditions:[]};let r=n[$b];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${Zb}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(Qb,{detail:{condition:e,message:i,docsUrl:Zb}}))}function tx(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}function nx(){return window.MathJax}function rx(e,{root:t,speechPath:n}){t&&(e.loader={...e.loader,paths:{fonts:`${t}/@mathjax`,"mathjax-newcm":`${t}/@mathjax/mathjax-newcm-font@${Nb}`,"mathjax-mhchem-extension":`${t}/@mathjax/mathjax-mhchem-font-extension@${Nb}`}}),n&&(e.options={...e.options,worker:{path:n,maps:`${n}/mathmaps`}})}function ix(e,t){let n=t.srcUrl||(t.root?`${t.root}/mathjax@4.1.3/tex-mml-chtml.js`:void 0);return n?(rx(e,t),new Promise((t,r)=>{window.MathJax=e;let i=document.createElement(`script`);i.src=n,i.async=!0,i.onload=()=>t(!0),i.onerror=()=>r(Error(`Failed to load MathJax`)),document.head.appendChild(i)})):(Xb(`untypeset`),Promise.resolve(!1))}var ax=globalThis,ox=`PIE-MJX-CHTML-styles`,sx=[`MJX-CHTML-styles`,`MJX-SVG-styles`],cx=tx,lx=`http://www.w3.org/1998/Math/MathML`,ux=/^([a-z_][\w.-]*):math$/,dx=/^[a-z][a-z0-9-]*$/;function fx(e){for(let t of e.querySelectorAll(`*`)){let n=ux.exec(t.tagName.toLowerCase())?.[1];!n||!e.contains(t)||t.closest(`mjx-container`)||t.replaceWith(px(t,`${n}:`))}}function px(e,t){let n=e.tagName.toLowerCase().slice(t.length);if(!dx.test(n))return e;let r=e.ownerDocument.createElementNS(lx,n);for(let t of e.attributes)r.setAttribute(t.name,t.value);for(let n of[...e.childNodes]){let e=n instanceof Element&&n.tagName.toLowerCase().startsWith(t);r.appendChild(e?px(n,t):n)}return r}var mx=new Set([`updiagonalstrike`,`downdiagonalstrike`,`verticalstrike`,`horizontalstrike`]),hx={thin:`0.035em`,medium:`0.07em`,thick:`0.14em`},gx={tight:`0em`,medium:`0.1em`,loose:`0.2em`},_x=/^(\d+(\.\d*)?|\.\d+)(em|ex|px|pt|pc|in|cm|mm)$/,vx=/^(#[0-9a-f]{3,8}|[a-z]+)$/i,yx=/^(\d+(\.\d*)?|\.\d+)$/,bx=new Set([`mn`,`mo`,`mi`,`mtext`]),xx=new Set([`stackalign`,`charalign`,`charspacing`,`longdivstyle`]);function Sx(e,t,n=[],r={}){let i=e.createElementNS(lx,t);for(let[e,t]of Object.entries(r))i.setAttribute(e,t);for(let e of n)e&&i.appendChild(e);return i}function Cx(e,t){let n=Sx(e.document,`mo`);return n.textContent=t,n}function wx(e){let t=Sx(e.document,`mn`);return t.textContent=`0`,Sx(e.document,`mphantom`,[t])}function Tx(e,t){return e.getAttribute(t)?.trim().toLowerCase()||void 0}function Ex(e,t){let n=Number.parseInt(e.getAttribute(t)??``,10);return Number.isFinite(n)?n:0}function Dx(e){return e.localName===`none`||e.localName===`mrow`&&e.children.length===0&&!e.textContent?.trim()}function Ox(e,t,n=e){switch(t){case`left`:return 0;case`center`:return Math.floor(e/2);case`right`:return e;default:return n}}function kx(e,t,n){let r=[],i,a,o=(e,t)=>{let s=e=>t.reduceRight((e,t)=>{let n=t.cloneNode(!1);return n.appendChild(e),n},e);if(e.localName===`mstyle`)for(let n of[...e.children])o(n,[...t,e]);else if(Dx(e))r.push(null);else if(e.localName===`mn`&&e.children.length===0){let t=[...(e.textContent??``).trim()];for(let a of t){a===n.decimalPoint&&(i??=r.length);let t=e.cloneNode(!1);t.textContent=a,r.push(s(t))}t.length&&(a??=r.length)}else bx.has(e.localName)&&e.textContent?.trim()===n.decimalPoint&&(i??=r.length),r.push(s(e))};for(let t of e)o(t,[]);return{kind:`digits`,cells:r,anchor:Ox(r.length,n.stackAlign,i??a),position:t}}function Ax(e){return(e??``).toLowerCase().split(/\s+/).filter(e=>mx.has(e))}function jx(e,t){let n=[...e.children].filter(e=>!Dx(e));return n.length<=1?n[0]??null:Sx(t.document,`mrow`,n)}function Mx(e,t,n){let r=Tx(e,`location`)??`n`,i=Ax(e.getAttribute(`crossout`)),a=[...e.children].map(e=>Dx(e)?null:e.localName===`mscarry`?{content:jx(e,n),location:Tx(e,`location`)??r,crossout:e.hasAttribute(`crossout`)?Ax(e.getAttribute(`crossout`)):i}:{content:e,location:r,crossout:i}),o=e.getAttribute(`scriptsizemultiplier`)?.trim()??``;return{kind:`carries`,carries:a,anchor:Ox(a.length,n.stackAlign),position:t,scale:yx.test(o)?o:`0.6`}}function Nx(e){let t=Tx(e,`mslinethickness`)??`medium`,n=hx[t]??(_x.test(t)?t:`0.07em`),r=e.getAttribute(`mathcolor`)?.trim()??``;return`${n} solid ${vx.test(r)?r:`currentColor`}`}function Px(e,t,n){let r=Math.max(0,Ex(e,`length`));return{kind:`line`,length:r,anchor:Ox(r,n.stackAlign),position:t,border:Nx(e)}}function Fx(e,t,n,r,i){e.forEach((e,a)=>{let o=t+a*n+Ex(e,`position`);switch(e.localName){case`msgroup`:Fx([...e.children],o,Ex(e,`shift`),r,i);break;case`msline`:i.push(Px(e,o,r));break;case`mscarries`:i.push(Mx(e,o,r));break;case`msrow`:case`mrow`:i.push(kx([...e.children],o,r));break;default:i.push(kx([e],o,r))}})}function Ix(e){return-e.anchor-e.position}function Lx(e){return e.kind===`digits`?e.cells.length:e.kind===`carries`?e.carries.length:e.length}function Rx(e){return Ix(e)+Lx(e)-1}function zx(e,t,n,r){let i=e=>Sx(r.document,`mpadded`,[t],{width:`0`,...e?{lspace:e}:{}}),a=(e,t)=>Sx(r.document,e,t);switch(n){case`s`:return a(`munder`,[e,i(`-0.5width`)]);case`ne`:return a(`msup`,[e,i()]);case`se`:return a(`msub`,[e,i()]);case`nw`:return a(`mmultiscripts`,[e,a(`mprescripts`,[]),a(`none`,[]),i(`-1width`)]);case`sw`:return a(`mmultiscripts`,[e,a(`mprescripts`,[]),i(`-1width`),a(`none`,[])]);case`w`:return t.setAttribute(`scriptlevel`,`+1`),a(`mrow`,[i(`-1width`),e]);case`e`:return t.setAttribute(`scriptlevel`,`+1`),a(`mrow`,[e,i()]);default:return a(`mover`,[e,i(`-0.5width`)])}}function Bx(e,t,n){let r=Sx(n.document,`menclose`,[e],{notation:t.join(` `),"data-padding":`0.1em`,"data-thickness":`0.067em`}),i=t.some(e=>e.endsWith(`diagonalstrike`))?.167:t.includes(`horizontalstrike`)?.1:0;return i?Sx(n.document,`mpadded`,[r],{lspace:`-${i}em`,width:`-${2*i}em`}):r}function Vx(e,t,n,r,i){let a=e&&t.crossout.length?Bx(e,t.crossout,i):e;if(!t.content)return a;let o=Sx(i.document,`mstyle`,[t.content],{scriptsizemultiplier:r});return zx(a??wx(i),o,n,i)}function Hx(e,t){return e.carries[t-Ix(e)]??null}function Ux(e,t,n,r){let i=e.content;n.forEach((e,a)=>{let o=n.length-1-a,s=n[o],c=Hx(s,t),l=n.slice(0,o).some(e=>Hx(e,t));if(!c&&!l)return;let u=c??{content:wx(r),location:`n`,crossout:[]},d=a===0?u.location:`n`;i=Vx(i,u,d,s.scale,r)}),e.content=i}function Wx(e,t){let n=e.filter(e=>Lx(e)>0),r=Math.min(0,...n.map(Ix)),i=Math.max(r,...n.map(Rx))-r+1,a=-r,o=[],s=new Map,c=()=>Array.from({length:i},()=>({content:null,borders:{}})),l=e=>e.length===0?Array.from({length:i},(e,t)=>t):Array.from({length:e.length},(t,n)=>a+Ix(e)+n),u=[],d=[],f=e=>{let n=c();e.cells.forEach((t,r)=>{n[a+Ix(e)+r].content=t}),u.length&&n.forEach((e,n)=>{Ux(e,n-a,u,t)});for(let e of d)for(let t of l(e))n[t].borders.top=e.border;u=[],d=[],s.set(e,o.length),o.push(n)};for(let t of e)t.kind===`digits`?f(t):t.kind===`carries`?u.push(t):d.push(t);(u.length||!o.length)&&f({kind:`digits`,cells:[],anchor:0,position:0});let p=o[o.length-1];for(let e of d)for(let t of l(e))p[t].borders.bottom=e.border;return{rows:o,rowOf:s,origin:a}}function Gx(e,{rows:t},n){let r=Sx(n.document,`mtable`,t.map(e=>Sx(n.document,`mtr`,e.map(e=>{let t=Object.entries(e.borders).map(([e,t])=>`border-${e}:${t}`).join(`;`);return Sx(n.document,`mtd`,[e.content],{...t?{style:t}:{},...e.align?{columnalign:e.align}:{}})}))));for(let{name:t,value:n}of[...e.attributes])xx.has(t)||r.setAttribute(t,n);let i=Tx(e,`charspacing`)??`medium`,a=Tx(e,`charalign`);return r.setAttribute(`columnspacing`,gx[i]??(_x.test(i)?i:gx.medium)),r.setAttribute(`columnalign`,a===`left`||a===`center`?a:`right`),r.setAttribute(`rowspacing`,`0`),r.setAttribute(`align`,e.getAttribute(`align`)??`baseline`),r}function Kx(e){return{document:e.ownerDocument,stackAlign:Tx(e,`stackalign`)??`decimalpoint`,decimalPoint:e.closest(`[decimalpoint]`)?.getAttribute(`decimalpoint`)?.trim().charAt(0)||`.`}}function qx(e){let t=Kx(e),n=[];return Fx([...e.children],0,0,t,n),Gx(e,Wx(n,t),t)}function Jx(e,t,n,r,i,a){for(let o=n;o<=r;o++)e[t][o].borders[i]=a}function Yx(e,t){let n=Cx(t,`)`);return n.setAttribute(`minsize`,`1.2em`),[Sx(t.document,`mrow`,[e,Sx(t.document,`mspace`,[],{width:`0.2em`})]),Sx(t.document,`mpadded`,[n],{voffset:`0.1em`,lspace:`-0.15em`,depth:`-0.2em`,height:`-0.2em`})]}function Xx(e){let t=Kx(e),[n,r,...i]=[...e.children],a=n&&!Dx(n)?n:null,o=r&&!Dx(r)?r:null,s=Tx(e,`longdivstyle`)??`lefttop`,c=Nx(e),l=[];Fx(i,0,0,t,l);let u=l.find(e=>e.kind===`digits`);u||(u={kind:`digits`,cells:[],anchor:0,position:0},l.unshift(u));let d=[],f=(...e)=>{u.cells.unshift(...e),u.anchor+=e.length},p=(...e)=>{let n=e.flatMap(e=>e?e.localName===`mrow`?[...e.children]:[e]:[]);u.cells.push(...kx(n,0,t).cells)};switch(s){case`left/\\right`:f(a,Cx(t,`/`)),p(Cx(t,`\\`),o);break;case`left)(right`:f(a,Cx(t,`)`)),p(Cx(t,`(`),o);break;case`:right=right`:p(Cx(t,`:`),a,Cx(t,`=`),o);break;case`righttop`:case`stackedleftlinetop`:case`lefttop`:o&&Fx([o],0,0,t,d),l.splice(l.indexOf(u),0,...d),s===`righttop`?p(a):s===`stackedleftlinetop`?f(a):f(...Yx(a,t));break}let m=Wx(l,t),h=m.rows,g=m.rowOf.get(u)??0,_=e=>m.origin+Ix(u)+e,v=Math.max(_(u.cells.length-1),...d.map(e=>m.origin+Rx(e)));switch(s){case`left/\\right`:case`left)(right`:case`:right=right`:break;case`righttop`:{let e=h[g][_(u.cells.length-1)];e.borders.left=c,e.borders.bottom=c,Jx(h,g,_(0),_(u.cells.length-1),`top`,c);break}case`stackedleftlinetop`:{let e=h[g][_(0)];e.borders.right=c,e.borders.bottom=c,Jx(h,g,_(1),v,`top`,c);break}case`stackedrightright`:case`mediumstackedrightright`:case`shortstackedrightright`:case`stackedleftleft`:Zx(h,g,s,a,o,c,t);break;default:Jx(h,g,_(1),v,`top`,c)}return Gx(e,m,t)}function Zx(e,t,n,r,i,a,o){let s=n===`stackedleftleft`,c=s?`right`:`left`,l=e=>e&&Sx(o.document,`mpadded`,[e],{lspace:`0.2em`,width:`+0.4em`});e.length<t+2&&e.push(e[0].map(()=>({content:null,borders:{}}))),e.forEach((e,o)=>{let u={content:null,borders:{},align:s?`right`:`left`};o===t?(u.content=l(r),u.borders={[c]:a,bottom:a}):o===t+1?(u.content=l(i),n!==`shortstackedrightright`&&(u.borders[c]=a)):o>t+1&&(n===`stackedrightright`||s)&&(u.borders[c]=a),s?e.unshift(u):e.push(u)})}function Qx(e){for(let t of[...e.querySelectorAll(`mstack, mlongdiv`)])!t.closest(`math`)||t.closest(`mjx-container`)||t.replaceWith(t.localName===`mstack`?qx(t):Xx(t))}var $x=`PIE-MJX-explorer-styles`,eS=`var(--pie-text, black)`,tS=`var(--pie-background, #ffffff)`,nS=`var(--pie-border-dark, #66686A)`,rS=`var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565C0)))`,iS=`color-mix(in srgb, ${rS} 15%, transparent)`,aS=`
149
151
  :root mjx-container [data-sre-highlight-1]:not([data-mjx-collapsed], rect) {
150
- color: ${_b} !important;
151
- fill: ${_b} !important;
152
+ color: ${eS} !important;
153
+ fill: ${eS} !important;
152
154
  }
153
155
  :root mjx-container:not([data-mjx-clone-container]) [data-sre-highlight-1]:not([data-sre-enclosed], rect) {
154
- background-color: ${xb} !important;
156
+ background-color: ${iS} !important;
155
157
  }
156
158
  :root mjx-container rect[data-sre-highlight-1]:not([data-sre-enclosed]) {
157
- fill: ${xb} !important;
159
+ fill: ${iS} !important;
158
160
  }
159
161
  :root mjx-container .mjx-selected {
160
- outline: 2px solid ${bb} !important;
162
+ outline: 2px solid ${rS} !important;
161
163
  }
162
164
  :root mjx-container [data-sre-highlight-2] {
163
- color: ${_b} !important;
165
+ color: ${eS} !important;
164
166
  background-color: transparent !important;
165
- fill: ${_b} !important;
166
- outline: 2px dashed ${bb} !important;
167
+ fill: ${eS} !important;
168
+ outline: 2px dashed ${rS} !important;
167
169
  }
168
170
  :root mjx-container rect[data-sre-highlight-2] {
169
171
  fill: transparent !important;
170
- stroke: ${bb} !important;
172
+ stroke: ${rS} !important;
171
173
  stroke-width: 2px !important;
172
174
  vector-effect: non-scaling-stroke;
173
175
  }
174
176
  :root .MJX_LiveRegion, :root .MJX_HoverRegion, :root .MJX_ToolTip {
175
- color: ${_b} !important;
176
- background-color: ${vb} !important;
177
- border-color: ${yb} !important;
177
+ color: ${eS} !important;
178
+ background-color: ${tS} !important;
179
+ border-color: ${nS} !important;
178
180
  }
179
181
  :root .MJX_LiveRegion > div, :root .MJX_HoverRegion > div {
180
- color: ${_b} !important;
181
- background-color: ${xb} !important;
182
+ color: ${eS} !important;
183
+ background-color: ${iS} !important;
182
184
  }
183
- `;function Cb(e=document){if(e.getElementById(`PIE-MJX-explorer-styles`))return;let t=e.createElement(`style`);t.id=gb,t.textContent=Sb,e.head.appendChild(t)}var wb=Symbol.for(`@pie-element/shared-math-rendering-mathjax/speech-worker-failed`);function Tb(){let e=globalThis;e[wb]||(e[wb]=!0,console.warn(`[math-rendering] MathJax's speech worker did not start, so speech, braille and the explorer are off. A content security policy must allow blob: workers, and scripts and fetches from the asset root. See ${Zv}`))}function Eb(e){let t=e.webworker;if(!t||t.ready)return;e.options??={};let n=e.options;n.enableSpeech=!1,n.enableBraille=!1,n.speechError=()=>{},t.Post=()=>Promise.reject(Error(`The speech worker did not start`)),t.Terminate(),Tb()}function Db(e){let t=e?.adaptor,n=t?.createWorker;!e||!t||!n||(t.createWorker=async(r,i)=>{let a=await n.call(t,r,i);return a.addEventListener(`error`,()=>Eb(e),{once:!0}),a})}`${ey}`;var Ob={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},kb=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,Ab=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,jb=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,Mb=/\\embed\{newLine\}\[\]/g,Nb=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],Pb=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),Fb=`MJX-CHTML-styles`,Ib=`PIE-MJX-SVG-styles`,Lb=`PIE-MathJax-Menu-Settings`,Rb={'mjx-container[overflow="linebreak"][display]':{overflow:`auto clip`,"min-width":`initial !important`}},zb=200,Bb=201;function Vb(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function Hb(e){for(let[t,n]of Nb)if(e.startsWith(t)&&e.endsWith(n))return e.substring(t.length,e.length-n.length);return e}function Ub(e){return Hb(e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e)}var Wb=`mathjax_ignore`,Gb=`mathjax_process`;function Kb(e,t){let n=e.closest(`.${Wb}, .${Gb}`);return n!==null&&t.contains(n)&&!n.classList.contains(Gb)}function qb(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`)||Kb(t,e))continue;let n=t.textContent;n&&(t.textContent=`\\(${Ub(n)}\\)`.replace(Mb,`\\newline `),t.dataset.mathHandled=`true`)}}function Jb(e){for(let t of e.querySelectorAll(`math`))t.closest(`mjx-container`)||t.setAttribute(`displaystyle`,`true`)}function Yb(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?jb:Ab).test(e.textContent??``)}function Xb(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s=sy(e,{}.url),c={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e),"output/svg":{ready:e=>{let t=yy();return Zb(t)&&Qb(t),e}}},startup:{typeset:!1,ready:()=>{let e=yy(),r=e?.startup,i=Zb(e);i&&(Qb(e),$b(e,s.speechLocales),cy(e?._?.a11y?.sre_ts?.locales,s.speechLocales)),r?.defaultReady?.(),i&&(ex(r?.document),r?.document?.addStyles?.(Rb),Db(r?.document)),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...Ob}},output:{displayOverflow:`linebreak`},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}},a11y:{inTabOrder:!1}}};r&&c.tex&&(console.warn(kb),c.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],c.tex.processEscapes=!0),a||(c.chtml={fontURL:``});let l=ly(s.speechLocales);l&&c.options&&(c.options.sre={locale:l}),xy(c,{...s,srcUrl:o}).then(e=>{e||t()},n)})}function Zb(e){return!!e?.version?.startsWith(`4.`)}function Qb(e){let t=e?._?.output,n=t?.chtml_ts?.CHTML;n&&(n.STYLESHEETID=Cy);let r=t?.svg_ts?.SVG;r&&(r.STYLESHEETID=Ib)}function $b(e,t){let n=e?._?.ui?.menu?.Menu?.Menu;if(n){n.MENU_STORAGE=Lb;try{let e=localStorage.getItem(Lb);if(!e)return;let{assistiveMml:n,locale:r,...i}=JSON.parse(e),a=r===void 0||!t||t.has(r);if(n===void 0&&a)return;a&&r!==void 0&&(i.locale=r),Object.keys(i).length?localStorage.setItem(Lb,JSON.stringify(i)):localStorage.removeItem(Lb)}catch{}}}function ex(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(Vb(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,Bb,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&Vb(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===Fb&&(r.id=Cy),rx()}function tx(e){return e instanceof HTMLStyleElement&&wy.includes(e.id)}function nx(e){_y(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function rx(){let e=document.head,t=[...e.children].find(tx);if(t){nx(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(tx);if(e){nx(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function ix(e){let t=e?.math;if(!t?.remove)return;let n=[...t].filter(e=>(e.state?.()??0)>=zb&&e.typesetRoot?.isConnected===!1);if(n.length!==0){for(let e of[...n].reverse())e.clear?.();t.remove(...n)}}function ax(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=yy()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function ox(e){let t=yy();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():ax(t):Xb(e)}function sx(e){return ox(e).then(()=>{let e=yy();e&&typeof e.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function cx(e){let t=Sy,n=t[Pb];return n||(n=sx(e),t[Pb]=n),n}function lx(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=Ty();r&&_y(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),qb(n),ky(n),Jb(n),hb(n);let i=cx(e);if(!Yb(n,t)){i.catch(()=>{});return}await i;let a=yy();if(await a?.startup?.promise,typeof a?.typesetPromise==`function`){Cb(),ix(a.startup?.document);try{await a.typesetPromise([n])}catch(e){throw a.typesetClear?.([n]),e}Vb(n)}}}var ux=`@pie-lib/math-rendering`,dx=`@pie-lib/math-rendering@2`,fx=`pie-print`,px=50,mx=1e4,hx=null;function gx(){return!!window[dx]?.opts?.useSingleDollar}function _x(){return hx||=lx({useSingleDollar:gx()}),hx}function vx(){if(typeof window>`u`)return null;let e=window[ux];return typeof e?.renderMath==`function`&&e.renderMath!==Sx?e:null}function yx(e){let t=e;for(;t;){if(t instanceof Element&&t.localName===fx)return t;t=t instanceof ShadowRoot?t.host:t.parentNode}return null}function bx(){let e=window.renderMath;return typeof e==`function`?e:null}async function xx(e){let t=yx(e);if(!t)return null;let n=bx();if(n||t.mathRenderingModuleUrlImported!==!0)return n;let r=Date.now()+mx;for(;Date.now()<r;){await new Promise(e=>setTimeout(e,px));let e=bx();if(e)return e}return null}var Sx=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=vx(),i=r||t?null:await xx(n);return r?await r.renderMath?.(n):i&&i!==Sx?await i(n):await _x()(n),t?n.innerHTML:void 0},Cx={translation:{categorize:{limitMaxChoicesPerCategory:`You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.`,maxChoicesPerCategoryRestriction:`To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].`},dragInTheBlank:{blank:`Blank {{index}}`},ebsr:{part:`Part {{index}}`,twoPartQuestion:`Two-Part Question`},editableHtml:{responseAreaToolbar:`Response area`,toolbar:`Editing tools`,buttons:{insertTable:`Insert table`,addTableRow:`Add table row`,removeTableRow:`Remove table row`,addTableColumn:`Add table column`,removeTableColumn:`Remove table column`,removeTable:`Remove table`,tableBorders:`Table borders`,bold:`Bold`,italic:`Italic`,strikethrough:`Strikethrough`,code:`Code`,underline:`Underline`,subscript:`Subscript`,superscript:`Superscript`,insertImage:`Insert image`,insertVideo:`Insert video`,insertAudio:`Insert audio`,cssClasses:`CSS classes`,blockquote:`Blockquote`,heading:`Heading`,insertMath:`Insert math`,spanishCharacters:`Spanish characters (ñ)`,specialCharacters:`Special characters (€)`,textAlignment:`Text alignment`,bulletedList:`Bulleted list`,numberedList:`Numbered list`,done:`Done`}},explicitConstructedResponse:{fillInTheBlankQuestion:`Fill in the Blank Question`,response:`Response {{index}} of {{total}}`},extendedTextEntry:{comment:`Comment`,constructedResponseQuestion:`Constructed Response Question`,response:`Your response`,writtenResponseQuestion:`Written Response Question`},fractionModel:{modelLabel_one:`Model {{index}} of {{total}}: {{selected}} of {{count}} part selected`,modelLabel_other:`Model {{index}} of {{total}}: {{selected}} of {{count}} parts selected`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`,closedEnd:`closed`,elementCorrect:`Correct.`,elementIncorrect:`Incorrect.`,graphLabel:`Number line from {{min}} to {{max}}, with a tick every {{interval}}`,line:`Line from {{left}} ({{leftEnd}}) to {{right}} ({{rightEnd}}).`,openEnd:`open`,plottedNone:`Nothing is plotted.`,pointClosed:`Closed point at {{position}}.`,pointOpen:`Open point at {{position}}.`,rayLeft:`Ray from {{position}} ({{end}}) to the left.`,rayRight:`Ray from {{position}} ({{end}}) to the right.`},hotspot:{correctlySelected:`Correctly selected`,image_one:`Image with {{count}} hotspot`,image_other:`Image with {{count}} hotspots`,shape:`Hotspot {{index}} of {{total}}`,shouldHaveBeenSelected:`Should have been selected`,shouldNotHaveBeenSelected:`Should not have been selected`},imageClozeAssociation:{answerChoice:`Answer choice {{index}} of {{total}}`,image_one:`Image with {{count}} response area`,image_other:`Image with {{count}} response areas`,reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`,responseArea:`Response area {{index}} of {{total}}`},inlineDropdown:{inlineDropdownQuestion:`Inline Dropdown Question`,query:`Query`,queryNumber:`Query {{index}}`,showRationaleForChoices:`Show Rationale for choices`,hideRationaleForChoices:`Hide Rationale for choices`},drawingResponse:{fillColor:`Fill color`,outlineColor:`Outline color`,noFill:`No fill`,lightblue:`Light blue`,lightyellow:`Light yellow`,red:`Red`,orange:`Orange`,yellow:`Yellow`,violet:`Violet`,blue:`Blue`,green:`Green`,white:`White`,black:`Black`,onDoubleClick:`Double click to edit this text. Press Enter to submit.`,drawingArea:`Drawing area`,drawingAreaOverImage:`Drawing area over a background image`,tools:{select:`Select`,freeDraw:`Free Draw`,line:`Line`,rectangle:`Rectangle`,circle:`Circle`,textEntry:`Text Entry`,eraser:`Eraser`}},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,categoryLabel:`Category {{index}} label`,categoryLabelValue:`Category {{index}} label: {{label}}`,category:`Category {{index}}`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`},chartTypes:{bar:`Bar chart`,histogram:`Histogram`,lineDot:`Line chart with dots`,lineCross:`Line chart with crosses`,dotPlot:`Dot plot`,linePlot:`Line plot`},categories_zero:`No categories.`,categories_one:`{{count}} category: {{categories}}.`,categories_other:`{{count}} categories: {{categories}}.`,valueRange:`Values from {{min}} to {{max}}.`,labelledValueRange:`{{label}} from {{min}} to {{max}}.`},graphing:{graph:`Coordinate graph`,axisRange:`{{axis}} axis from {{min}} to {{max}}.`,plotted_zero:`Nothing plotted.`,plotted_one:`{{count}} object plotted: {{marks}}.`,plotted_other:`{{count}} objects plotted: {{marks}}.`,shadedRegion:`Shaded region`,point:`Point`,circle:`Circle`,line:`Line`,parabola:`Parabola`,absolute:`Absolute Value`,exponential:`Exponential`,polygon:`Polygon`,ray:`Ray`,segment:`Segment`,sine:`Sine`,vector:`Vector`,label:`Label`,markLabel:`Label at ({{x}}, {{y}})`,correctMarkLabel:`Correct label at ({{x}}, {{y}})`,redo:`Redo`,reset:`Reset`,keyLegend:{missingRequiredLabel:`Missing Required Label`,answerKeyCorrect:`Answer Key Correct`,answerKeyCorrectLabel:`Answer Key Correct Label`,studentIncorrect:`Student Incorrect`,incorrectStudentLabel:`Incorrect Student Label`,studentCorrect:`Student Correct`,studentCorrectLabel:`Student Correct Label`}},mathInline:{keypadInstructions:`This field supports both keypad and keyboard input. Use the keyboard to access and interact with the on-screen math keypad, which accepts LaTeX markup. Use the down arrow key to open the keypad and navigate its buttons. Use the escape key to close the keypad and return to the input field.`,mathEquationResponseQuestion:`Math Equation Response Question`,mathResponseQuestion:`Math Response Question`,primaryCorrectWithAlternates:`Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.`},mathInput:{enterAnswer:`Enter answer`},mcPopulatedBlank:{answerChoices:`Answer choices`,blankLabel:`blank`,emptyBlank:`(blank)`,blankPreSelectionHint:`The answer you choose will appear on the blank line above.`,correctAnswerSelected:`Correct answer selected`,incorrectAnswerSelected:`Incorrect answer selected`,selectedAnswerImage:`Selected answer image`,choiceImage:`Choice {{id}}`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,listen:`Listen`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,printAudio:`Audio:`,printTranscript:`Transcript:`},multipleChoice:{minSelections:`Select at least {{minSelections}}.`,maxSelections_one:`Only {{maxSelections}} answer is allowed.`,maxSelections_other:`Only {{maxSelections}} answers are allowed.`,minmaxSelections_equal:`Select {{minSelections}}.`,minmaxSelections_range:`Select between {{minSelections}} and {{maxSelections}}.`,multipleChoiceQuestion:`Multiple Choice Question`,multipleCorrectAnswerQuestion:`Multiple Correct Answer Question`,multipleSelectQuestion:`Multiple Select Question`},rubric:{rubric:`Rubric`,showRubric:`Show Rubric`,hideRubric:`Hide Rubric`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`,textGroup:`Selectable text`,textGroupWithLimit:`Selectable text, select up to {{max}}`,tokenPosition:`{{index}} of {{total}}`},simpleCloze:{correctAnswerShown:`Correct answer`,correct:`Correct`,incorrect:`Incorrect`,unanswered:`No answer`,placeholder:`Enter your answer...`,answerInput:`Your answer`,printCorrectAnswer:`Correct answer:`,printAnswerBlank:`Answer blank`},vennClassification:{tray:`Tiles to classify`,unknownTarget:`unknown`,cancelled:`Cancelled`,returnedToTray:`{{name}} returned to tray`,placedIn:`{{name}} placed in {{target}}`,pickedUp:`Picked up {{name}}`,pickedUpWithKeyboard:`Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.`,dropTarget:`Drop target: {{target}}`,unsupportedCircles_one:`This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.`,unsupportedCircles_other:`This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.`,setNumber:`Set {{number}}`,regionOnly:`{{set}} only`,regionNeither:`Neither {{first}} nor {{second}}`,regionNoneOf:`None of {{sets}}`,regionAndSeparator:` and `,tileFallbackName:`Tile`,tileNotPlaced:`not placed`,tileInRegion:`in {{region}}`,tileCorrect:`correct`,tileIncorrect:`incorrect`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,showTeacherInstructions:`Show Teacher Instructions`,hideTeacherInstructions:`Hide Teacher Instructions`,show:`Show`,hide:`Hide`,showRationale:`Show Rationale`,hideRationale:`Hide Rationale`,commonCorrectAnswerWithAlternates:`Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.`,warning:`Warning`,showNote:`Show Note`,hideNote:`Hide Note`,cancel:`Cancel`,playAudio:`Play audio`}},wx={translation:{categorize:{limitMaxChoicesPerCategory:`Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,maxChoicesPerCategoryRestriction:`Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta`},dragInTheBlank:{blank:`Espacio en blanco {{index}}`},ebsr:{part:`Parte {{index}}`,twoPartQuestion:`Pregunta de dos partes`},editableHtml:{responseAreaToolbar:`Área de respuesta`,toolbar:`Herramientas de edición`,buttons:{insertTable:`Insertar tabla`,addTableRow:`Agregar fila a la tabla`,removeTableRow:`Eliminar fila de la tabla`,addTableColumn:`Agregar columna a la tabla`,removeTableColumn:`Eliminar columna de la tabla`,removeTable:`Eliminar tabla`,tableBorders:`Bordes de la tabla`,bold:`Negrita`,italic:`Cursiva`,strikethrough:`Tachado`,code:`Código`,underline:`Subrayado`,subscript:`Subíndice`,superscript:`Superíndice`,insertImage:`Insertar imagen`,insertVideo:`Insertar video`,insertAudio:`Insertar audio`,cssClasses:`Clases CSS`,blockquote:`Cita en bloque`,heading:`Encabezado`,insertMath:`Insertar expresión matemática`,spanishCharacters:`Caracteres del español (ñ)`,specialCharacters:`Caracteres especiales (€)`,textAlignment:`Alineación del texto`,bulletedList:`Lista con viñetas`,numberedList:`Lista numerada`,done:`Listo`}},explicitConstructedResponse:{fillInTheBlankQuestion:`Pregunta para completar espacios en blanco`,response:`Respuesta {{index}} de {{total}}`},extendedTextEntry:{comment:`Comentario`,constructedResponseQuestion:`Pregunta de respuesta construida`,response:`Tu respuesta`,writtenResponseQuestion:`Pregunta de respuesta escrita`},fractionModel:{modelLabel_one:`Modelo {{index}} de {{total}}: {{selected}} de {{count}} parte seleccionada`,modelLabel_other:`Modelo {{index}} de {{total}}: {{selected}} de {{count}} partes seleccionadas`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`,closedEnd:`cerrado`,elementCorrect:`Correcto.`,elementIncorrect:`Incorrecto.`,graphLabel:`Recta numérica de {{min}} a {{max}}, con una marca cada {{interval}}`,line:`Línea de {{left}} ({{leftEnd}}) a {{right}} ({{rightEnd}}).`,openEnd:`abierto`,plottedNone:`No hay nada marcado en la recta.`,pointClosed:`Punto cerrado en {{position}}.`,pointOpen:`Punto abierto en {{position}}.`,rayLeft:`Rayo desde {{position}} ({{end}}) hacia la izquierda.`,rayRight:`Rayo desde {{position}} ({{end}}) hacia la derecha.`},hotspot:{correctlySelected:`Seleccionada correctamente`,image_one:`Imagen con {{count}} zona activa`,image_other:`Imagen con {{count}} zonas activas`,shape:`Zona activa {{index}} de {{total}}`,shouldHaveBeenSelected:`Debía seleccionarse`,shouldNotHaveBeenSelected:`No debía seleccionarse`},imageClozeAssociation:{answerChoice:`Opción de respuesta {{index}} de {{total}}`,image_one:`Imagen con {{count}} área de respuesta`,image_other:`Imagen con {{count}} áreas de respuesta`,reachedLimit_one:`Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,reachedLimit_other:`Lleno`,responseArea:`Área de respuesta {{index}} de {{total}}`},inlineDropdown:{inlineDropdownQuestion:`Pregunta con menú desplegable`,query:`Consulta`,queryNumber:`Consulta {{index}}`,showRationaleForChoices:`Mostrar justificación de las opciones`,hideRationaleForChoices:`Ocultar justificación de las opciones`},drawingResponse:{fillColor:`Color de relleno`,outlineColor:`Color del contorno`,noFill:`Sin relleno`,lightblue:`Azul claro`,lightyellow:`Amarillo claro`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,violet:`Violeta`,blue:`Azul`,green:`Verde`,white:`Blanco`,black:`Negro`,onDoubleClick:`Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar`,drawingArea:`Área de dibujo`,drawingAreaOverImage:`Área de dibujo sobre una imagen de fondo`,tools:{select:`Seleccionar`,freeDraw:`Dibujo libre`,line:`Línea`,rectangle:`Rectángulo`,circle:`Círculo`,textEntry:`Entrada de texto`,eraser:`Borrador`}},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,categoryLabel:`Etiqueta de la categoría {{index}}`,categoryLabelValue:`Etiqueta de la categoría {{index}}: {{label}}`,category:`Categoría {{index}}`,reachedLimit_other:`No puede haber más de {{count}} categorías.`,keyLegend:{incorrectAnswer:`Respuesta incorrecta del estudiante`,correctAnswer:`Respuesta correcta del estudiante`,correctKeyAnswer:`Clave de respuesta correcta`},chartTypes:{bar:`Gráfico de barras`,histogram:`Histograma`,lineDot:`Gráfico de líneas con puntos`,lineCross:`Gráfico de líneas con cruces`,dotPlot:`Diagrama de puntos`,linePlot:`Diagrama de líneas`},categories_zero:`Sin categorías.`,categories_one:`{{count}} categoría: {{categories}}.`,categories_other:`{{count}} categorías: {{categories}}.`,valueRange:`Valores de {{min}} a {{max}}.`,labelledValueRange:`{{label}} de {{min}} a {{max}}.`},graphing:{graph:`Gráfica de coordenadas`,axisRange:`Eje {{axis}} de {{min}} a {{max}}.`,plotted_zero:`Nada trazado.`,plotted_one:`{{count}} objeto trazado: {{marks}}.`,plotted_other:`{{count}} objetos trazados: {{marks}}.`,shadedRegion:`Región sombreada`,point:`Punto`,circle:`Circulo`,line:`Línea`,parabola:`Parábola`,absolute:`Valor absoluto`,exponential:`Exponencial`,polygon:`Polígono`,ray:`Semirrecta`,segment:`Segmento `,sine:`Seno`,vector:`Vector`,label:`Etiqueta`,markLabel:`Etiqueta en ({{x}}, {{y}})`,correctMarkLabel:`Etiqueta correcta en ({{x}}, {{y}})`,redo:`Rehacer`,reset:`Reiniciar`,keyLegend:{missingRequiredLabel:`Falta una etiqueta obligatoria`,answerKeyCorrect:`Clave de respuesta correcta`,answerKeyCorrectLabel:`Etiqueta correcta de la clave de respuesta`,studentIncorrect:`Respuesta incorrecta del estudiante`,incorrectStudentLabel:`Etiqueta incorrecta del estudiante`,studentCorrect:`Respuesta correcta del estudiante`,studentCorrectLabel:`Etiqueta correcta del estudiante`}},mathInline:{keypadInstructions:`Este campo admite la entrada con el teclado en pantalla y con el teclado físico. Usa el teclado físico para acceder al teclado matemático en pantalla e interactuar con él; este acepta notación LaTeX. Usa la tecla de flecha hacia abajo para abrir el teclado en pantalla y recorrer sus botones. Usa la tecla Escape para cerrar el teclado en pantalla y volver al campo de entrada.`,mathEquationResponseQuestion:`Pregunta de respuesta con ecuación matemática`,mathResponseQuestion:`Pregunta de respuesta matemática`,primaryCorrectWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.`},mathInput:{enterAnswer:`Escribe la respuesta`},mcPopulatedBlank:{answerChoices:`Opciones de respuesta`,blankLabel:`espacio en blanco`,emptyBlank:`(en blanco)`,blankPreSelectionHint:`La respuesta que elijas aparecerá en la línea en blanco de arriba.`,correctAnswerSelected:`Respuesta correcta seleccionada`,incorrectAnswerSelected:`Respuesta incorrecta seleccionada`,selectedAnswerImage:`Imagen de la respuesta seleccionada`,choiceImage:`Opción {{id}}`,clickToEnableAutoplay:`Haz clic para activar la reproducción automática del audio`,audioResourceUnavailable:`El audio está activado, pero no hay una URL de audio reproducible configurada.`,listen:`Escuchar`,listenSilentAlt:`Escuchar. Repetir las instrucciones.`,listenPlayingAlt:`Escuchar. Estas son las instrucciones.`,printAudio:`Audio:`,printTranscript:`Transcripción:`},multipleChoice:{minSelections:`Seleccione al menos {{minSelections}}.`,maxSelections_one:`Sólo se permite {{maxSelections}} respuesta.`,maxSelections_other:`Sólo se permiten {{maxSelections}} respuestas.`,minmaxSelections_equal:`Seleccione {{minSelections}}.`,minmaxSelections_range:`Seleccione entre {{minSelections}} y {{maxSelections}}.`,multipleChoiceQuestion:`Pregunta de opción múltiple`,multipleCorrectAnswerQuestion:`Pregunta con varias respuestas correctas`,multipleSelectQuestion:`Pregunta de selección múltiple`},rubric:{rubric:`Rúbrica`,showRubric:`Mostrar rúbrica`,hideRubric:`Ocultar rúbrica`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`,textGroup:`Texto seleccionable`,textGroupWithLimit:`Texto seleccionable, selecciona hasta {{max}}`,tokenPosition:`{{index}} de {{total}}`},simpleCloze:{correctAnswerShown:`Respuesta correcta`,correct:`Correcto`,incorrect:`Incorrecto`,unanswered:`Sin respuesta`,placeholder:`Escribe tu respuesta...`,answerInput:`Tu respuesta`,printCorrectAnswer:`Respuesta correcta:`,printAnswerBlank:`Espacio para la respuesta`},vennClassification:{tray:`Fichas para clasificar`,unknownTarget:`desconocido`,cancelled:`Cancelado`,returnedToTray:`Se devolvió {{name}} a la bandeja`,placedIn:`Se colocó {{name}} en {{target}}`,pickedUp:`Se tomó {{name}}`,pickedUpWithKeyboard:`Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.`,dropTarget:`Destino: {{target}}`,unsupportedCircles_one:`No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.`,unsupportedCircles_other:`No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.`,setNumber:`Conjunto {{number}}`,regionOnly:`Solo {{set}}`,regionNeither:`Ni {{first}} ni {{second}}`,regionNoneOf:`Ninguno de {{sets}}`,regionAndSeparator:` y `,tileFallbackName:`Ficha`,tileNotPlaced:`sin colocar`,tileInRegion:`en {{region}}`,tileCorrect:`correcta`,tileIncorrect:`incorrecta`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correcto`,incorrect:`Incorrecto`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,showTeacherInstructions:`Mostrar instrucciones para el maestro`,hideTeacherInstructions:`Ocultar instrucciones para el maestro`,show:`Mostrar`,hide:`Ocultar`,showRationale:`Mostrar justificación`,hideRationale:`Ocultar justificación`,commonCorrectAnswerWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.`,warning:`Advertencia`,showNote:`Mostrar Nota`,hideNote:`Ocultar Nota`,cancel:`Cancelar`,playAudio:`Reproducir audio`}},H=e=>typeof e==`string`,Tx=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Ex=e=>e==null?``:``+e,Dx=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Ox=/###/g,kx=e=>e&&e.indexOf(`###`)>-1?e.replace(Ox,`.`):e,Ax=e=>!e||H(e),jx=(e,t,n)=>{let r=H(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Ax(e))return{};let t=kx(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ax(e)?{}:{obj:e,k:kx(r[i])}},Mx=(e,t,n)=>{let{obj:r,k:i}=jx(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=jx(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=jx(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Nx=(e,t,n,r)=>{let{obj:i,k:a}=jx(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Px=(e,t)=>{let{obj:n,k:r}=jx(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Fx=(e,t,n)=>{let r=Px(e,n);return r===void 0?Px(t,n):r},Ix=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?H(e[r])||e[r]instanceof String||H(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ix(e[r],t[r],n):e[r]=t[r]);return e},Lx=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Rx={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},zx=e=>H(e)?e.replace(/[&<>"'\/]/g,e=>Rx[e]):e,Bx=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},Vx=[` `,`,`,`?`,`!`,`;`],Hx=new Bx(20),Ux=(e,t,n)=>{t||=``,n||=``;let r=Vx.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=Hx.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Wx=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Gx=e=>e?.replace(/_/g,`-`),Kx={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},qx=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||Kx,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(H(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Jx=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},Yx=class extends Jx{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):H(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Px(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!H(n)?s:Wx(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Mx(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(H(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Px(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Ix(s,n,i):s={...s,...n},Mx(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},Xx={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},Zx=Symbol(`i18next/PATH_KEY`);function Qx(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===Zx?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function $x(e,t){let{[Zx]:n}=e(Qx()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var eS={},tS=e=>!H(e)&&typeof e!=`boolean`&&typeof e!=`number`,nS=class e extends Jx{constructor(e,t={}){super(),Dx([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=qx.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=tS(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Ux(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:H(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:H(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=$x(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?$x(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!H(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=tS(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(H(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:tS(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&H(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=H(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!H(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=H(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=Xx.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return H(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?$x(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!H(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(H(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!eS[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(eS[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!H(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},rS=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=qx.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Gx(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Gx(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(H(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),H(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return H(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):H(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},iS={zero:0,one:1,two:2,few:3,many:4,other:5},aS={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},oS=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=qx.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=Gx(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),aS;if(!e.match(/-|_/))return aS;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>iS[e]-iS[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},sS=(e,t,n,r=`.`,i=!0)=>{let a=Fx(e,t,n);return!a&&i&&H(n)&&(a=Wx(e,n,r),a===void 0&&(a=Wx(t,n,r))),a},cS=e=>e.replace(/\$/g,`$$$$`),lS=class{constructor(e={}){this.logger=qx.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?zx:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Lx(i):a||`{{`,this.suffix=o?Lx(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?Lx(d):f||Lx(`$t(`),this.nestingSuffix=p?Lx(p):m||Lx(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=sS(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(sS(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>cS(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?cS(this.escape(e)):cS(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=H(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!H(a)&&!this.useRawValueToEscape&&(a=Ex(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${Lx(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!H(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!H(i))return i;H(i)||(i=Ex(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},uS=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},dS=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Gx(r),i),t[o]=s),s(n)}},fS=e=>(t,n,r)=>e(Gx(n),r)(t),pS=class{constructor(e={}){this.logger=qx.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?dS:fS;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=dS(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=uS(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},mS=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},hS=class extends Jx{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=qx.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Nx(n.loaded,[i],a),mS(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();H(e)&&(e=this.languageUtils.toResolveHierarchy(e)),H(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},gS=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),H(e[1])&&(t.defaultValue=e[1]),H(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),_S=e=>(H(e.ns)&&(e.ns=[e.ns]),H(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),H(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),vS=()=>{},yS=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},bS=`__i18next_supportNoticeShown`,xS=()=>!!(typeof globalThis<`u`&&globalThis[bS]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),SS=()=>{typeof globalThis<`u`&&(globalThis[bS]=!0)},CS=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),wS=class e extends Jx{constructor(e={},t){if(super(),this.options=_S(e),this.services={},this.logger=qx,this.modules={external:[]},yS(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(H(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=gS();this.options={...n,...this.options,..._S(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!CS(this)&&!xS()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),SS());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?qx.init(r(this.modules.logger),this.options):qx.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:pS;let t=new rS(this.options);this.store=new Yx(this.options.resources,this.options);let i=this.services;i.logger=qx,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new oS(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new lS(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new hS(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new nS(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=vS,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=Tx(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=vS){let n=t,r=H(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=Tx();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=vS,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&Xx.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Tx();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=H(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(H(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=$x(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=$x(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=$x(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return H(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Tx();return this.options.ns?(H(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Tx();H(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new rS(gS());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=vS){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Yx(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...gS().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new lS(n)}return a.translator=new nS(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();wS.createInstance,wS.dir,wS.init,wS.loadResources,wS.reloadResources,wS.use,wS.changeLanguage,wS.getFixedT,wS.t,wS.exists,wS.setDefaultNamespace,wS.hasLoadedNamespace,wS.loadNamespaces,wS.loadLanguages,wS.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:Cx,es:wx}});var TS={translator:{...wS,t:(e,t)=>{let{lng:n}=t;switch(n){case`en_US`:case`en-US`:t.lng=`en`;break;case`es_ES`:case`es-ES`:case`es_MX`:case`es-MX`:t.lng=`es`;break;default:break}return wS.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},ES=e=>`${e}-${Math.random().toString(36).slice(2,10)}`,DS=e=>N.useState(()=>ES(e))[0],{translator:OS}=TS,kS=I(`button`)({display:`inline-block`,minHeight:`24px`,padding:0,border:0,background:`transparent`,font:`inherit`,textAlign:`inherit`,color:J_(),cursor:`pointer`}),AS=I(`span`)({borderBottom:`1px dotted currentColor`}),jS=I(Yv)(({theme:e})=>({paddingTop:e.spacing(2)})),MS=class extends N.Component{static propTypes={className:O.string,children:O.object,labels:O.shape({visible:O.string,hidden:O.string}),language:O.string};static defaultProps={labels:{}};state={expanded:!1};panelId=ES(`pie-collapsible`);toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Sx(this.root)}componentDidUpdate(){Sx(this.root)}render(){let{labels:e,children:t,className:n,language:r}=this.props,{expanded:i}=this.state,a=i?e.visible||OS.t(`common:hide`,{lng:r}):e.hidden||OS.t(`common:show`,{lng:r});return(0,P.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,P.jsx)(`div`,{children:(0,P.jsx)(kS,{type:`button`,"aria-expanded":i,"aria-controls":this.panelId,onClick:this.toggleExpanded,children:(0,P.jsx)(AS,{children:a})})}),(0,P.jsx)(`div`,{id:this.panelId,children:(0,P.jsx)(jS,{in:i,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})})]})}},NS=Lm((0,P.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),PS=Lm((0,P.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`),FS=I(`div`)({display:`flex`,flexDirection:`column`}),IS=I(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),LS=I(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),RS=I(Lh)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),zS=e=>{class t extends N.Component{static propTypes={session:O.object,onSessionChange:O.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,P.jsxs)(FS,{children:[(0,P.jsxs)(IS,{children:[(0,P.jsxs)(RS,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,P.jsx)(LS,{children:(0,P.jsx)(PS,{})}),`Undo`]}),(0,P.jsxs)(RS,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,P.jsx)(LS,{children:(0,P.jsx)(NS,{})}),`Start Over`]})]}),(0,P.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},BS=yc({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),VS=I(`div`)({"& table, th, td":{fontSize:`inherit`}}),HS=class extends N.Component{static propTypes={className:O.string,children:O.array,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}scopeClass=ES(`extra-css-rules`);computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,P.jsx)(ti,{injectFirst:!0,children:(0,P.jsxs)(kc,{theme:BS,children:[i?.rules?(0,P.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.${this.scopeClass} { ${i.rules} }`}}):null,(0,P.jsx)(VS,{className:`${t} extraCSSRules ${this.scopeClass}`,...a,...o&&{style:o},children:e})]})})}},US=I(HS)({display:`flex`,flexDirection:`column`,position:`relative`}),WS=class extends N.Component{static propTypes={ariaLabel:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,role:O.string,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,P.jsx)(US,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},GS=class extends N.Component{static propTypes={tag:O.string,className:O.string,html:O.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,P.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:n}})}};function KS({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var qS=N.createContext(void 0);function JS(){return N.useContext(qS)}function YS(e){return Ba(`MuiFormLabel`,e)}var XS=Va(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),ZS=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return ls({root:[`root`,`color${R(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},YS,t)},QS=I(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Rc(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(ph()).map(([t])=>({props:{color:t},style:{[`&.${XS.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${XS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${XS.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),$S=I(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(Rc(({theme:e})=>({[`&.${XS.error}`]:{color:(e.vars||e).palette.error.main}}))),eC=N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=KS({props:n,muiFormControl:JS(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=ZS(m);return(0,P.jsxs)(QS,{as:o,ownerState:m,className:Ra(h.root,i),ref:t,...f,children:[r,p.required&&(0,P.jsxs)($S,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function tC(e){return Ba(`MuiInputLabel`,e)}Va(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var nC=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=ls({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${R(r)}`,o],asterisk:[s&&`asterisk`]},tC,t);return{...t,...c}},rC=I(eC,{shouldForwardProp:e=>Cc(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${XS.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]]}})(Rc(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),iC=N.forwardRef(function(e,t){let n=zc({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=JS(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=KS({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=nC(f);return(0,P.jsx)(rC,{"data-shrink":u,ref:t,className:Ra(p.root,s),...c,ownerState:f,classes:p})});function aC(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function oC(e,t=!1){return e&&(aC(e.value)&&e.value!==``||t&&aC(e.defaultValue)&&e.defaultValue!==``)}function sC(e){return e.startAdornment}function cC(e){return Ba(`MuiFormControl`,e)}Va(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var lC=e=>{let{classes:t,margin:n,fullWidth:r}=e;return ls({root:[`root`,n!==`none`&&`margin${R(n)}`,r&&`fullWidth`]},cC,t)},uC=I(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${R(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),dC=I(N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=lC(_),[y,b]=N.useState(()=>{let e=!1;return r&&N.Children.forEach(r,t=>{if(!Bm(t,[`Input`,`Select`]))return;let n=Bm(t,[`Select`])?t.props.input:t;n&&sC(n.props)&&(e=!0)}),e}),[x,S]=N.useState(()=>{let e=!1;return r&&N.Children.forEach(r,t=>{Bm(t,[`Input`,`Select`])&&(oC(t.props,!0)||oC(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=N.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;N.useRef(!1);let E=N.useCallback(()=>{S(!0)},[]),D=N.useCallback(()=>{S(!1)},[]),O=N.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,P.jsx)(qS.Provider,{value:O,children:(0,P.jsx)(uC,{as:o,ownerState:_,className:Ra(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),fC=I(iC)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),pC=({label:e,className:t,children:n})=>(0,P.jsxs)(dC,{className:t,children:[(0,P.jsx)(fC,{shrink:!0,children:e}),n]});pC.propTypes={label:O.oneOfType([O.string,O.object]).isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var{translator:mC}=TS,hC=`pie-prompt-audio-player`,gC=`play-audio-button`,_C=e=>`&:not(.MathJax) > table${e}, &:not(.MathJax) > .pie-table-scroll > table${e}`,vC=I(`div`)(({theme:e,tagName:t})=>({[`& .${gC}:focus-visible`]:{outline:`2px solid ${dv()}`,outlineOffset:`2px`},[_C(`:not([role="presentation"])`)]:{borderCollapse:`collapse`},'&:not(.MathJax) table[border]:not([role="presentation"]), &:not(.MathJax) table[border]:not([role="presentation"]) td, &:not(.MathJax) table[border]:not([role="presentation"]) th':{borderStyle:`solid`,borderColor:ev()},[_C(`:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)`)]:{backgroundColor:nv()},[_C(`:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td`)]:{backgroundColor:nv()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},[_C(` td > p.kds-indent`)]:{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:x_()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${x_()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),yC=/\\embed\{newLine\}\[\]/g,bC=`\\newline `,xC=`preview-prompt`,SC=class extends N.Component{static propTypes={prompt:O.string,tagName:O.string,className:O.string,onClick:O.func,defaultClassName:O.string,autoplayAudioEnabled:O.bool,customAudioButton:O.shape({playImage:O.string,pauseImage:O.string}),language:O.string};static defaultProps={onClick:()=>{}};promptRef=N.createRef();audioId=ES(hC);playButtonId=ES(gC);parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n,language:r}=this.props,i=document.createElement(`div`);i.innerHTML=e;let a=i.querySelector(`audio`);if(a){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,a.getAttribute(`src`)),a.removeAttribute(`src`),a.id=this.audioId,a.classList.add(hC),a.appendChild(e),n){a.style.display=`none`;let e=document.createElement(`button`);e.setAttribute(`type`,`button`),e.setAttribute(`aria-label`,mC.t(`common:playAudio`,{lng:r})),e.id=this.playButtonId,e.className=gC,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,margin:`0`,padding:`0`,font:`inherit`,backgroundColor:`transparent`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),a.parentNode.insertBefore(e,a)}}return i.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=this.promptRef.current,r=n?.querySelector(`.${gC}`),i=n?.querySelector(`.${hC}`);if(e&&i&&i.play().then(()=>{r&&t&&i.addEventListener(`ended`,o)}).catch(e=>{r&&t&&(r.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!r||!i||!t)return;let a=()=>{i.paused&&i.play()},o=()=>{r.style.backgroundImage=`url(${t.playImage})`},s=()=>{Object.assign(r.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},c=()=>{Object.assign(r.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};r.addEventListener(`click`,a),i.addEventListener(`play`,s),i.addEventListener(`pause`,c),i.addEventListener(`ended`,o),this._playButton=r,this._audio=i,this._handlePlayClick=a,this._handleAudioPlay=s,this._handleAudioPause=c,this._handleAudioEnded=o}removeCustomAudioButtonListeners(){let e=this._playButton,t=this._audio;!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=this.promptRef.current;e&&typeof Sx==`function`&&Sx(e)}alignImages(){let e=this.promptRef.current;if(!e)return;let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.attributes.alignment.value,n=t===`center`?`center`:t===`right`?`flex-end`:`flex-start`,r=e.parentElement;if(r.tagName===`DIV`&&r.style.display===`flex`&&r.style.width===`100%`)r.style.justifyContent=n;else{let t=document.createElement(`div`);t.style.display=`flex`,t.style.width=`100%`,t.style.justifyContent=n;let i=e.cloneNode(!0);t.appendChild(i),r.replaceChild(t,e)}}}}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``} ${xC}`.trim();return(0,P.jsx)(vC,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(yC,bC)}})}},CC=e=>(0,P.jsx)(P.Fragment,{children:N.Children.map(e.children,t=>N.cloneElement(t,{"data-pie-readable":e.false===void 0}))});CC.propTypes={children:O.node,false:O.bool};var wC=e=>(0,P.jsx)(P.Fragment,{children:N.Children.map(e.children,t=>N.cloneElement(t,{"data-pie-purpose":e.purpose}))});wC.propTypes={children:O.node,purpose:O.string};var TC;typeof window<`u`&&(TC=new DOMParser);var EC=e=>TC.parseFromString(e,`text/html`).body.textContent,DC=e=>{if(!e)return!1;let t=EC(e);return!!(t&&t.trim())},OC;typeof window<`u`&&(OC=new DOMParser);var kC=e=>{if(!e)return!1;let t=OC.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},AC=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTcsEjJDY4QmJ1dpKztMQYMzdEVIKyw9PxQ1hmc3SWJzVFRlZXhJOUldJk/8QAGwEBAQADAQEBAAAAAAAAAAAAAAcEBQYCAQP/xABBEQEAAQIDAgkJBgUFAQEBAAAAAQIDBAYRBSESMUFEYXGCscITNDVRcoGRocEUIjJS0eEVI2KSsjNCU6LwFtLx/9oADAMBAAIRAxEAPwD1TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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`;function jC(e=``,t=2){if(!e)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}var MC=N.createContext({});function NC(e){return Ba(`MuiList`,e)}Va(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var PC=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ls({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},NC,t)},FC=I(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),IC=N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=N.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=PC(d);return(0,P.jsx)(MC.Provider,{value:u,children:(0,P.jsxs)(FC,{as:a,className:Ra(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),LC=vg;function RC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function zC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function BC(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.startsWith(t.keys.join(``))}function VC(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!BC(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var HC=N.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=N.useRef(null),p=N.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wm(()=>{r&&f.current.focus()},[r]),N.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${LC(Um(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=jg(Vm(t));if(n===`ArrowDown`)e.preventDefault(),VC(t,r,c,s,RC);else if(n===`ArrowUp`)e.preventDefault(),VC(t,r,c,s,zC);else if(n===`Home`)e.preventDefault(),VC(t,null,c,s,RC);else if(n===`End`)e.preventDefault(),VC(t,null,c,s,zC);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&BC(r,i);i.previousKeyMatched&&(c||VC(t,r,!1,s,RC,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=xl(f,t),g=-1;N.Children.forEach(a,(e,t)=>{if(!N.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=N.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),N.cloneElement(e,t)}return e});return(0,P.jsx)(IC,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function UC(e){return Ba(`MuiMenu`,e)}Va(`MuiMenu`,[`root`,`paper`,`list`]);var WC={vertical:`top`,horizontal:`right`},GC={vertical:`top`,horizontal:`left`},KC=e=>{let{classes:t}=e;return ls({root:[`root`],paper:[`paper`],list:[`list`]},UC,t)},qC=I(g_,{shouldForwardProp:e=>Cc(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),JC=I(h_,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),YC=I(HC,{name:`MuiMenu`,slot:`List`})({outline:0}),XC=N.forwardRef(function(e,t){let n=zc({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=Oo(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=KC(b),S=r&&!o&&l,C=N.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;N.Children.map(i,(e,t)=>{N.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=Dd({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[ee,te]=Gd(`paper`,{className:x.paper,elementType:JC,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[k,A]=Gd(`list`,{className:Ra(x.list,s.className),elementType:YC,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),ne=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,P.jsx)(qC,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?WC:GC,slots:{root:g.root,paper:ee,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:te,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...ne,onEntering:(...e)=>{w(...e),ne?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,P.jsx)(k,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...A,children:i})})}),ZC=({slotProps:e,...t})=>(0,P.jsx)(XC,{...t,disableScrollLock:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,...e?.root?.style}},backdrop:{invisible:!0,...e?.backdrop}}}),QC=s({Collapsible:()=>MS,EnableAudioAutoplayImage:()=>AC,Feedback:()=>Nv,HtmlAndMath:()=>GS,InlineMenu:()=>ZC,InputContainer:()=>pC,PreviewLayout:()=>WS,PreviewPrompt:()=>SC,Purpose:()=>wC,Readable:()=>CC,UiLayout:()=>HS,color:()=>y_,createUniqueId:()=>ES,hasMedia:()=>kC,hasText:()=>DC,indicators:()=>Pv,transformDataHeadings:()=>jC,useUniqueId:()=>DS,withUndoReset:()=>zS}),{translator:$C}=TS;function ew(e,t){if(!e)return;let n=$C.t(`mathInput.enterAnswer`,{lng:t});for(let t of e.querySelectorAll(`.mq-editable-field > .mq-textarea > textarea`))t.setAttribute(`aria-label`,n)}function U(e){this.elements=Array.isArray(e)?e:[e].filter(Boolean),this.length=this.elements.length;for(var t=0;t<this.elements.length;t++)this[t]=this.elements[t]}U.prototype.addClass=function(e){var t=(e||``).split(/\s+/).filter(Boolean);return this.elements.forEach(function(e){t.forEach(function(t){e.classList.add(t)})}),this},U.prototype.removeClass=function(e){return this.elements.forEach(function(t){e?(e||``).split(/\s+/).filter(Boolean).forEach(function(e){t.classList.remove(e)}):t.className=``}),this},U.prototype.toggleClass=function(e,t){var n=(e||``).split(/\s+/).filter(Boolean),r=arguments.length>1?!!t:null;return this.elements.forEach(function(e){n.forEach(function(t){r===null?e.classList.toggle(t):e.classList.toggle(t,r)})}),this},U.prototype.attr=function(e,t){return t===iw?this.elements[0]?this.elements[0].getAttribute(e):iw:(this.elements.forEach(function(n){n.setAttribute(e,t)}),this)},U.prototype.html=function(e){return e===iw?this.elements[0]?this.elements[0].innerHTML:``:(this.elements.forEach(function(t){t.innerHTML=e}),this)},U.prototype.append=function(e){var t=e instanceof U?e.elements[0]:e;return this.elements.forEach(function(e){e.appendChild(t)}),this},U.prototype.prepend=function(e){var t=e instanceof U?e.elements[0]:e;return this.elements.forEach(function(e,n){var r=n===0?t:t.cloneNode(!0);e.insertBefore(r,e.firstChild)}),this},U.prototype.wrapAll=function(e){if(!this.elements.length)return this;var t;if(typeof e==`string`&&e.trim().indexOf(`<`)===0){var n=document.createElement(`div`);n.innerHTML=e.trim(),t=n.firstChild}else if(e instanceof U)t=e.elements[0];else if(e&&e.nodeType)t=e;else return this;var r=this.elements[0],i=r.parentNode;return i&&(i.insertBefore(t,r),this.elements.forEach(function(e){t.appendChild(e)})),this},U.prototype.appendTo=function(e){var t=e instanceof U?e.elements[0]:e;return t&&this.elements.forEach(function(e){t.appendChild(e)}),this},U.prototype.prependTo=function(e){var t=e instanceof U?e.elements[0]:e;if(!t)return this;var n=t.firstChild;return this.elements.forEach(function(e){t.insertBefore(e,n),n=e}),this},U.prototype.insertBefore=function(e){var t=e instanceof U?e.elements[0]:e;if(!t)return this;var n=t.parentNode;return n&&this.elements.forEach(function(e){n.insertBefore(e,t)}),this},U.prototype.insertAfter=function(e){var t=e instanceof U?e.elements[0]:e;if(!t)return this;var n=t.parentNode,r=t.nextSibling;return n&&this.elements.forEach(function(e){n.insertBefore(e,r),r=e}),this},U.prototype.replaceWith=function(e){var t=[];return e instanceof U?t=e.elements.slice():e&&typeof e.length==`number`&&!e.tagName?t=Array.from(e):e&&e.nodeType&&(t=[e]),this.elements.forEach(function(e){var n=e.parentNode;n&&(t.forEach(function(t){n.insertBefore(t,e)}),n.removeChild(e))}),this},U.prototype.insDirOf=function(e,t){return e===-1?this.insertBefore(t.first()):this.insertAfter(t.last())},U.prototype.insAtDirEnd=function(e,t){return e===-1?this.prependTo(t):this.appendTo(t)},U.prototype.children=function(e){var t=[];return this.elements.forEach(function(n){var r;if(!e)r=Array.from(n.children);else if(e===`:first`)r=n.firstElementChild?[n.firstElementChild]:[];else if(e===`:last`)r=n.lastElementChild?[n.lastElementChild]:[];else{var i=/^:eq\((\d+)\)$/.exec(e);if(i){var a=parseInt(i[1],10),o=Array.from(n.children);r=o[a]?[o[a]]:[]}else r=Array.from(n.querySelectorAll(`:scope > `+e))}t.push.apply(t,r)}),new U(t)},U.prototype.find=function(e){var t=[];return this.elements.forEach(function(n){var r=Array.from(n.querySelectorAll(e));t.push.apply(t,r)}),new U(t)},U.prototype.closest=function(e){return new U(this.elements.map(function(t){return t.closest(e)}).filter(Boolean))},U.prototype.contents=function(){var e=[];return this.elements.forEach(function(t){var n=Array.from(t.childNodes);e.push.apply(e,n)}),new U(e)},U.prototype.filter=function(e){return new U(this.elements.filter(function(t,n){return e(n,t)}))},U.prototype.detach=function(){return this.elements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),this},U.prototype.remove=function(){return this.elements.forEach(function(e){e.remove()}),this},U.prototype.empty=function(){return this.elements.forEach(function(e){e.innerHTML=``}),this};function tw(e){return(e||``).split(`.`)[0]}U.prototype.on=function(e,t){var n=tw(e);return this.elements.forEach(function(e){e.addEventListener(n,t)}),this},U.prototype.bind=function(e,t,n){var r=this;if(typeof e==`object`){for(var i in e)e.hasOwnProperty(i)&&r.bind(i,e[i]);return this}var a=typeof t==`function`?t:n;return a===!1&&(a=function(e){e.preventDefault()}),(e||``).split(/\s+/).filter(Boolean).forEach(function(e){var t=tw(e);r.elements.forEach(function(e){e.addEventListener(t,a)})}),this},U.prototype.off=function(e,t){var n=tw(e);return this.elements.forEach(function(e){e.removeEventListener(n,t)}),this},U.prototype.unbind=function(e,t){if(e&&e.includes(`.`))this.elements.forEach(function(e){var t=e.cloneNode(!0);e.parentNode&&e.parentNode.replaceChild(t,e)});else if(e&&t){var n=tw(e);this.elements.forEach(function(e){e.removeEventListener(n,t)})}return this},U.prototype.trigger=function(e){var t=new Event(tw(e),{bubbles:!0,cancelable:!0});return this.elements.forEach(function(e){e.dispatchEvent(t)}),this},U.prototype.focus=function(e){return typeof e==`function`?this.on(`focus`,e):(this.elements.forEach(function(e){e.focus&&e.focus()}),this)},U.prototype.blur=function(e){return typeof e==`function`?this.on(`blur`,e):(this.elements.forEach(function(e){e.blur&&e.blur()}),this)},[`mousemove`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`click`,`keydown`,`keypress`,`keyup`,`focusout`,`paste`,`cut`,`copy`,`input`,`load`].forEach(function(e){U.prototype[e]=function(t){return this.on(e,t)}}),U.prototype.next=function(e){return new U(this.elements.map(function(e){return e.nextElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},U.prototype.prev=function(e){return new U(this.elements.map(function(e){return e.previousElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},U.prototype.parent=function(){return new U(this.elements.map(function(e){return e.parentElement}).filter(Boolean))},U.prototype.offset=function(){if(!this.elements[0])return{top:0,left:0};var e=this.elements[0].getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}},U.prototype.width=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.width)||e.getBoundingClientRect().width},U.prototype.height=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.height)||e.getBoundingClientRect().height},U.prototype.outerWidth=function(){return this.elements[0]?this.elements[0].offsetWidth:0},U.prototype.outerHeight=function(){return this.elements[0]?this.elements[0].offsetHeight:0},U.prototype.innerWidth=function(){return this.elements[0]?this.elements[0].clientWidth:0},U.prototype.innerHeight=function(){return this.elements[0]?this.elements[0].clientHeight:0},U.prototype.css=function(e,t){if(t===iw){if(typeof e==`string`){var n=this.elements[0];return n?window.getComputedStyle(n).getPropertyValue(e.replace(/([A-Z])/g,`-$1`).toLowerCase()):iw}}else this.elements.forEach(function(n){n.style[e]=t});return this},U.prototype.scrollTop=function(e){var t=this.elements[0];return e===iw?t?t===window?window.pageYOffset||document.documentElement.scrollTop:t.scrollTop:0:(t===window?window.scrollTo(window.pageXOffset||0,e):this.elements.forEach(function(t){t.scrollTop=e}),this)},U.prototype.scrollLeft=function(e){var t=this.elements[0];return e===iw?t?t===window?window.pageXOffset||document.documentElement.scrollLeft:t.scrollLeft:0:(t===window?window.scrollTo(e,window.pageYOffset||0):this.elements.forEach(function(t){t.scrollLeft=e}),this)},U.prototype.each=function(e){return this.elements.forEach(function(t,n){e.call(t,n,t)}),this},U.prototype.eq=function(e){return new U([this.elements[e]])},U.prototype.get=function(e){return e===iw?this.elements:e<0?this.elements[this.elements.length+e]:this.elements[e]},U.prototype.add=function(e){var t=this.elements.slice();return e instanceof U?t.push.apply(t,e.elements):Array.isArray(e)?t.push.apply(t,e):e&&e.nodeType&&t.push(e),new U(t)},U.prototype.first=function(){return new U([this.elements[0]])},U.prototype.last=function(){return new U([this.elements[this.elements.length-1]])},U.prototype.index=function(e){if(!e){var t=this.elements[0]&&this.elements[0].parentElement;return t?Array.from(t.children).indexOf(this.elements[0]):-1}var n=e instanceof U?e.elements[0]:e;return this.elements.indexOf(n)},U.prototype.is=function(e){return this.elements.some(function(t){return t.matches(e)})},U.prototype.text=function(e){return e===iw?this.elements.map(function(e){return e.textContent}).join(``):(this.elements.forEach(function(t){t.textContent=e}),this)},U.prototype.val=function(e){var t=this.elements[0];return t?e===iw?t.value===iw?t.textContent:t.value:(this.elements.forEach(function(t){t.value===iw?t.textContent=e:t.value=e}),this):iw};function nw(e){var t=Array.isArray(e)?e:[e].filter(Boolean),n=Object.create(U.prototype);n.elements=t,n.length=t.length;for(var r=0;r<t.length;r++)n[r]=t[r];return n}var W=function(e,t){var n;if(!e)n=[];else if(e===window||e===document)n=[e];else if(e.nodeType)n=[e];else if(e&&e.current&&e.current.nodeType)n=[e.current];else if(typeof e==`string`&&e[0]===`<`){var r=document.createElement(`div`);r.innerHTML=e.trim(),n=Array.from(r.children)}else if(typeof e==`string`){var i=t instanceof U?t.elements[0]:t||document;n=Array.from(i.querySelectorAll(e))}else n=e instanceof U?e.elements:e.length===iw?[]:Array.from(e);return nw(n)};W.contains=function(e,t){return e!==t&&e.contains(t)};var rw=W,iw,aw=`mathquill-command-id`,ow=`mathquill-block-id`,sw=Math.min,cw=Math.max;function lw(){}var uw=[].slice;function dw(e){var t=e.length-1;return function(){var n=uw.call(arguments,0,t),r=uw.call(arguments,t);return e.apply(this,n.concat([r]))}}var fw=dw(function(e,t){return dw(function(n,r){if(e in n)return n[e].apply(n,t.concat(r))})});function pw(e){return dw(function(t,n){return typeof t!=`function`&&(t=fw(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function G(e){var t=uw.call(arguments,1);return function(){return e.apply(this,t)}}function mw(e,t){if(!t)throw Error(`prayer failed: `+e)}var K=(function(e,t,n){function r(e){return typeof e==`object`}function i(e){return typeof e==`function`}function a(){}return function o(s,c){c===n&&(c=s,s=Object);function l(){var e=new u;return i(e.init)&&e.init.apply(e,arguments),e}function u(){}l.Bare=u;var d=a[e]=s[e],f=u[e]=l[e]=l.p=new a,p;return f.constructor=l,l.extend=function(e){return o(l,e)},(l.open=function(e){if(p={},i(e)?p=e.call(l,f,d,l,s):r(e)&&(p=e),r(p))for(var n in p)t.call(p,n)&&(f[n]=p[n]);return i(f.init)||(f.init=s),l})(c)}})(`prototype`,{}.hasOwnProperty),q=-1,J=1;function hw(e){mw(`a direction was passed`,e===q||e===J)}var gw=K(function(e){e.parent=0,e[q]=0,e[J]=0,e.init=function(e,t,n){this.parent=e,this[q]=t,this[J]=n},this.copy=function(e){return gw(e.parent,e[q],e[J])}}),_w=K(function(e){e[q]=0,e[J]=0,e.parent=0;var t=0;function n(){return t+=1}this.byId={},e.init=function(){this.id=n(),_w.byId[this.id]=this,this.ends={},this.ends[q]=0,this.ends[J]=0},e.dispose=function(){delete _w.byId[this.id]},e.toString=function(){return`{{ MathQuill Node #`+this.id+` }}`},e.jQ=W(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){var e=W(e||this.html());function t(e){if(e.getAttribute){var n=e.getAttribute(`mathquill-command-id`),r=e.getAttribute(`mathquill-block-id`);n&&_w.byId[n].jQadd(e),r&&_w.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){hw(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[q],t[J]),n},e.createLeftOf=function(e){return this.createDir(q,e)},e.selectChildren=function(e,t){return Cw(e,t)},e.bubble=pw(function(e){for(var t=this;t&&e(t)!==!1;t=t.parent);return this}),e.postOrder=pw(function(e){return(function t(n){n.eachChild(t),e(n)})(this),this}),e.isEmpty=function(){return this.ends[q]===0&&this.ends[J]===0},e.isStyleBlock=function(){return!1},e.children=function(){return yw(this.ends[q],this.ends[J])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return yw(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return yw(this,this).adopt(e,t,n),this},e.disown=function(){return yw(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder(`dispose`),this.disown()}});function vw(e,t,n){mw(`a parent is always present`,e),t&&(t[J]!==n&&(t[J]=n),t.parent!==e&&(t.parent=e)),n&&(n[q]!==t&&(n[q]=t),n.parent!==e&&(n.parent=e)),mw(`leftward is properly set up`,(function(){return t?t[J]===n&&t.parent===e:e.ends[q]===n})()),mw(`rightward is properly set up`,(function(){return n?n[q]===t&&n.parent===e:e.ends[J]===t})())}var yw=K(function(e){e.init=function(e,t,n){if(n===iw&&(n=q),hw(n),mw(`no half-empty fragments`,!e==!t),this.ends={},e){mw(`withDir is passed to Fragment`,e instanceof _w),mw(`oppDir is passed to Fragment`,t instanceof _w),mw(`withDir and oppDir have the same parent`,e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],function(e,t){return e.push.apply(e,t.jQ.get()),e});this.jQ=this.jQ.add(r)}},e.jQ=W(),e.withDirAdopt=function(e,t,n,r){return e===q?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){vw(e,t,n);var r=this;r.disowned=!1;var i=r.ends[q];if(!i)return this;var a=r.ends[J];return t||(e.ends[q]=i),n?n[q]=a:e.ends[J]=a,r.ends[J][J]=n,r.each(function(n){n[q]=t,n.parent=e,t&&(t[J]=n),t=n}),r},e.disown=function(){var e=this,t=e.ends[q];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[J],r=t.parent;return vw(r,t[q],t),vw(r,n,n[J]),t[q]?t[q][J]=n[J]:r.ends[q]=n[J],n[J]?n[J][q]=t[q]:r.ends[J]=t[q],e},e.remove=function(){return this.jQ.remove(),this.each(`postOrder`,`dispose`),this.disown()},e.each=pw(function(e){var t=this,n=t.ends[q];if(!n)return t;for(;n!==t.ends[J][J]&&e(n)!==!1;n=n[J]);return t}),e.fold=function(e,t){return this.each(function(n){e=t.call(this,e,n)}),e}}),Y={},bw={},xw={},Sw=K(gw,function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=W(`<span class="mq-cursor">&#8203;</span>`);this.blink=function(){n.toggleClass(`mq-blink`)},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass(`mq-blink`),`intervalId`in this?clearInterval(this.intervalId):(this[J]?this.selection&&this.selection.ends[q][q]===this[q]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[J].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return`intervalId`in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=W(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return hw(e),!t||!t.jQ?this:(this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass(`mq-hasCursor`),this)},e.insLeftOf=function(e){return this.insDirOf(q,e)},e.insRightOf=function(e){return this.insDirOf(J,e)},e.insAtDirEnd=function(e,t){return hw(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(q,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(J,e)},e.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=gw.copy(n);var r=n.upDownCache[t.id];if(r)r[J]?n.insLeftOf(r[J]):n.insAtRightEnd(r.parent);else{var i=n.offset().left;t.seek(i,n)}},e.offset=function(){var e=this,t=e.jQ.removeClass(`mq-cursor`).offset();return e.jQ.addClass(`mq-cursor`),t},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[J],r=this,i=e[q];if(e.disown().eachChild(function(r){r.isEmpty()||(r.children().adopt(t,i,n).each(function(t){t.jQ.insertBefore(e.jQ.first())}),i=r.ends[J])}),!this[J])if(this[q])this[J]=this[q][J];else for(;!this[J];)if(this.parent=this.parent[J],this.parent)this[J]=this.parent.ends[q];else{this[J]=e[J],this.parent=t;break}this[J]?this.insLeftOf(this[J]):this.insAtRightEnd(t),e.jQ.remove(),e[q].siblingDeleted&&e[q].siblingDeleted(r.options,J),e[J].siblingDeleted&&e[J].siblingDeleted(r.options,q)},e.startSelection=function(){for(var e=this.anticursor=gw.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},e.endSelection=function(){delete this.anticursor},e.select=function(){var e=this.anticursor;if(!e||!e.ancestors||this[q]===e[q]&&this.parent===e.parent)return!1;for(var t,n=this;n.parent;n=n.parent)if(n.parent.id in e.ancestors){t=n.parent;break}if(!t)return!1;var r=e.ancestors[t.id],i,a,o=J;if(n[q]!==r){for(var s=n;s;s=s[J])if(s[J]===r[J]){o=q,i=n,a=r;break}}return o===J&&(i=r,a=n),i instanceof gw&&(i=i[J]),a instanceof gw&&(a=a[q]),!i||!a?!1:(this.hide().selection=t.selectChildren(i,a),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0)},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[q]=this.selection.ends[q][q],this[J]=this.selection.ends[J][J],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[q]=e.ends[q][q],this[J]=e.ends[J][J],delete this.selection),e},e.depth=function(){for(var e=this,t=0;e=e.parent;)t+=+(e instanceof Hw);return t},e.isTooDeep=function(e){if(this.options.maxDepth!==iw)return this.depth()+(e||0)>this.options.maxDepth},e.howDeep=function(){for(var e=0,t=this;t=t.parent;)e++;return 1+Math.floor(e/2)},e.tooDeep=function(){var e=this.options.maxDepth;return e&&this.howDeep()>e}}),Cw=K(yw,function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll(`<span class="mq-selection"></span>`).parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){var e=this.jQ[0];return e&&this.jQ.replaceWith(e.childNodes),this},e.join=function(e){return this.fold(``,function(t,n){return t+n[e]()})}}),ww=K(function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=Sw(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===q||t===J?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}}),Tw={},Ew=K(),Dw={},Ow=K(),kw={};function Aw(){window.console&&console.warn(`You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:
185
+ `;function oS(e=document){if(e.getElementById(`PIE-MJX-explorer-styles`))return;let t=e.createElement(`style`);t.id=$x,t.textContent=aS,e.head.appendChild(t)}var sS=Symbol.for(`@pie-element/shared-math-rendering-mathjax/speech-worker-failed`);function cS(){let e=globalThis;e[sS]||(e[sS]=!0,console.warn(`[math-rendering] MathJax's speech worker did not start, so speech, braille and the explorer are off. A content security policy must allow blob: workers, and scripts and fetches from the asset root. See ${Pb}`))}function lS(e){let t=e.webworker;if(!t||t.ready)return;e.options??={};let n=e.options;n.enableSpeech=!1,n.enableBraille=!1,n.speechError=()=>{},t.Post=()=>Promise.reject(Error(`The speech worker did not start`)),t.Terminate(),cS()}function uS(e){let t=e?.adaptor,n=t?.createWorker;!e||!t||!n||(t.createWorker=async(r,i)=>{let a=await n.call(t,r,i);return a.addEventListener(`error`,()=>lS(e),{once:!0}),a})}`${Lb}`;var dS={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},fS=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,pS=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,mS=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,hS=/\\embed\{newLine\}\[\]/g,gS=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],_S=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),vS=`MJX-CHTML-styles`,yS=`PIE-MJX-SVG-styles`,bS=`PIE-MathJax-Menu-Settings`,xS={'mjx-container[overflow="linebreak"][display]':{overflow:`auto clip`,"min-width":`initial !important`}},SS=200,CS=201;function wS(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function TS(e){for(let[t,n]of gS)if(e.startsWith(t)&&e.endsWith(n))return e.substring(t.length,e.length-n.length);return e}function ES(e){return TS(e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e)}var DS=`mathjax_ignore`,OS=`mathjax_process`;function kS(e,t){let n=e.closest(`.${DS}, .${OS}`);return n!==null&&t.contains(n)&&!n.classList.contains(OS)}function AS(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`)||kS(t,e))continue;let n=t.textContent;n&&(t.textContent=`\\(${ES(n)}\\)`.replace(hS,`\\newline `),t.dataset.mathHandled=`true`)}}function jS(e){for(let t of e.querySelectorAll(`math`))t.closest(`mjx-container`)||t.setAttribute(`displaystyle`,`true`)}function MS(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?mS:pS).test(e.textContent??``)}function NS(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s=Wb(e,{}.url),c={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e),"output/svg":{ready:e=>{let t=nx();return PS(t)&&FS(t),e}}},startup:{typeset:!1,ready:()=>{let e=nx(),r=e?.startup,i=PS(e);i&&(FS(e),IS(e,s.speechLocales),Gb(e?._?.a11y?.sre_ts?.locales,s.speechLocales)),r?.defaultReady?.(),i&&(LS(r?.document),r?.document?.addStyles?.(xS),uS(r?.document)),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...dS}},output:{displayOverflow:`linebreak`},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}},a11y:{inTabOrder:!1}}};r&&c.tex&&(console.warn(fS),c.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],c.tex.processEscapes=!0),a||(c.chtml={fontURL:``});let l=Kb(s.speechLocales);l&&c.options&&(c.options.sre={locale:l}),ix(c,{...s,srcUrl:o}).then(e=>{e||t()},n)})}function PS(e){return!!e?.version?.startsWith(`4.`)}function FS(e){let t=e?._?.output,n=t?.chtml_ts?.CHTML;n&&(n.STYLESHEETID=ox);let r=t?.svg_ts?.SVG;r&&(r.STYLESHEETID=yS)}function IS(e,t){let n=e?._?.ui?.menu?.Menu?.Menu;if(n){n.MENU_STORAGE=bS;try{let e=localStorage.getItem(bS);if(!e)return;let{assistiveMml:n,locale:r,...i}=JSON.parse(e),a=r===void 0||!t||t.has(r);if(n===void 0&&a)return;a&&r!==void 0&&(i.locale=r),Object.keys(i).length?localStorage.setItem(bS,JSON.stringify(i)):localStorage.removeItem(bS)}catch{}}}function LS(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(wS(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,CS,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&wS(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===vS&&(r.id=ox),BS()}function RS(e){return e instanceof HTMLStyleElement&&sx.includes(e.id)}function zS(e){ex(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function BS(){let e=document.head,t=[...e.children].find(RS);if(t){zS(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(RS);if(e){zS(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function VS(e){let t=e?.math;if(!t?.remove)return;let n=[...t].filter(e=>(e.state?.()??0)>=SS&&e.typesetRoot?.isConnected===!1);if(n.length!==0){for(let e of[...n].reverse())e.clear?.();t.remove(...n)}}function HS(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=nx()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function US(e){let t=nx();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():HS(t):NS(e)}function WS(e){return US(e).then(()=>{let e=nx();e&&typeof e.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function GS(e){let t=ax,n=t[_S];return n||(n=WS(e),t[_S]=n),n}function KS(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=cx();r&&ex(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),AS(n),fx(n),jS(n),Qx(n);let i=GS(e);if(!MS(n,t)){i.catch(()=>{});return}await i;let a=nx();if(await a?.startup?.promise,typeof a?.typesetPromise==`function`){oS(),VS(a.startup?.document);try{await a.typesetPromise([n])}catch(e){throw a.typesetClear?.([n]),e}wS(n)}}}var qS=`@pie-lib/math-rendering`,JS=`@pie-lib/math-rendering@2`,YS=`pie-print`,XS=50,ZS=1e4,QS=null;function $S(){return!!window[JS]?.opts?.useSingleDollar}function eC(){return QS||=KS({useSingleDollar:$S()}),QS}function tC(){if(typeof window>`u`)return null;let e=window[qS];return typeof e?.renderMath==`function`&&e.renderMath!==aC?e:null}function nC(e){let t=e;for(;t;){if(t instanceof Element&&t.localName===YS)return t;t=t instanceof ShadowRoot?t.host:t.parentNode}return null}function rC(){let e=window.renderMath;return typeof e==`function`?e:null}async function iC(e){let t=nC(e);if(!t)return null;let n=rC();if(n||t.mathRenderingModuleUrlImported!==!0)return n;let r=Date.now()+ZS;for(;Date.now()<r;){await new Promise(e=>setTimeout(e,XS));let e=rC();if(e)return e}return null}var aC=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=tC(),i=r||t?null:await iC(n);return r?await r.renderMath?.(n):i&&i!==aC?await i(n):await eC()(n),t?n.innerHTML:void 0},oC={translation:{categorize:{limitMaxChoicesPerCategory:`You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.`,maxChoicesPerCategoryRestriction:`To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].`},dragInTheBlank:{blank:`Blank {{index}}`},ebsr:{part:`Part {{index}}`,twoPartQuestion:`Two-Part Question`},editableHtml:{responseAreaToolbar:`Response area`,toolbar:`Editing tools`,buttons:{insertTable:`Insert table`,addTableRow:`Add table row`,removeTableRow:`Remove table row`,addTableColumn:`Add table column`,removeTableColumn:`Remove table column`,removeTable:`Remove table`,tableBorders:`Table borders`,bold:`Bold`,italic:`Italic`,strikethrough:`Strikethrough`,code:`Code`,underline:`Underline`,subscript:`Subscript`,superscript:`Superscript`,insertImage:`Insert image`,insertVideo:`Insert video`,insertAudio:`Insert audio`,cssClasses:`CSS classes`,blockquote:`Blockquote`,heading:`Heading`,insertMath:`Insert math`,spanishCharacters:`Spanish characters (ñ)`,specialCharacters:`Special characters (€)`,textAlignment:`Text alignment`,bulletedList:`Bulleted list`,numberedList:`Numbered list`,done:`Done`}},explicitConstructedResponse:{fillInTheBlankQuestion:`Fill in the Blank Question`,response:`Response {{index}} of {{total}}`},extendedTextEntry:{comment:`Comment`,constructedResponseQuestion:`Constructed Response Question`,response:`Your response`,writtenResponseQuestion:`Written Response Question`},fractionModel:{modelLabel_one:`Model {{index}} of {{total}}: {{selected}} of {{count}} part selected`,modelLabel_other:`Model {{index}} of {{total}}: {{selected}} of {{count}} parts selected`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`,closedEnd:`closed`,elementCorrect:`Correct.`,elementIncorrect:`Incorrect.`,graphLabel:`Number line from {{min}} to {{max}}, with a tick every {{interval}}`,line:`Line from {{left}} ({{leftEnd}}) to {{right}} ({{rightEnd}}).`,openEnd:`open`,plottedNone:`Nothing is plotted.`,pointClosed:`Closed point at {{position}}.`,pointOpen:`Open point at {{position}}.`,rayLeft:`Ray from {{position}} ({{end}}) to the left.`,rayRight:`Ray from {{position}} ({{end}}) to the right.`},hotspot:{correctlySelected:`Correctly selected`,image_one:`Image with {{count}} hotspot`,image_other:`Image with {{count}} hotspots`,shape:`Hotspot {{index}} of {{total}}`,shouldHaveBeenSelected:`Should have been selected`,shouldNotHaveBeenSelected:`Should not have been selected`},imageClozeAssociation:{answerChoice:`Answer choice {{index}} of {{total}}`,image_one:`Image with {{count}} response area`,image_other:`Image with {{count}} response areas`,reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`,responseArea:`Response area {{index}} of {{total}}`},inlineDropdown:{inlineDropdownQuestion:`Inline Dropdown Question`,query:`Query`,queryNumber:`Query {{index}}`,showRationaleForChoices:`Show Rationale for choices`,hideRationaleForChoices:`Hide Rationale for choices`},drawingResponse:{fillColor:`Fill color`,outlineColor:`Outline color`,noFill:`No fill`,lightblue:`Light blue`,lightyellow:`Light yellow`,red:`Red`,orange:`Orange`,yellow:`Yellow`,violet:`Violet`,blue:`Blue`,green:`Green`,white:`White`,black:`Black`,onDoubleClick:`Double click to edit this text. Press Enter to submit.`,drawingArea:`Drawing area`,drawingAreaOverImage:`Drawing area over a background image`,tools:{select:`Select`,freeDraw:`Free Draw`,line:`Line`,rectangle:`Rectangle`,circle:`Circle`,textEntry:`Text Entry`,eraser:`Eraser`}},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,categoryLabel:`Category {{index}} label`,categoryLabelValue:`Category {{index}} label: {{label}}`,category:`Category {{index}}`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`},chartTypes:{bar:`Bar chart`,histogram:`Histogram`,lineDot:`Line chart with dots`,lineCross:`Line chart with crosses`,dotPlot:`Dot plot`,linePlot:`Line plot`},categories_zero:`No categories.`,categories_one:`{{count}} category: {{categories}}.`,categories_other:`{{count}} categories: {{categories}}.`,valueRange:`Values from {{min}} to {{max}}.`,labelledValueRange:`{{label}} from {{min}} to {{max}}.`},graphing:{graph:`Coordinate graph`,axisRange:`{{axis}} axis from {{min}} to {{max}}.`,plotted_zero:`Nothing plotted.`,plotted_one:`{{count}} object plotted: {{marks}}.`,plotted_other:`{{count}} objects plotted: {{marks}}.`,shadedRegion:`Shaded region`,point:`Point`,circle:`Circle`,line:`Line`,parabola:`Parabola`,absolute:`Absolute Value`,exponential:`Exponential`,polygon:`Polygon`,ray:`Ray`,segment:`Segment`,sine:`Sine`,vector:`Vector`,label:`Label`,markLabel:`Label at ({{x}}, {{y}})`,correctMarkLabel:`Correct label at ({{x}}, {{y}})`,redo:`Redo`,reset:`Reset`,keyLegend:{missingRequiredLabel:`Missing Required Label`,answerKeyCorrect:`Answer Key Correct`,answerKeyCorrectLabel:`Answer Key Correct Label`,studentIncorrect:`Student Incorrect`,incorrectStudentLabel:`Incorrect Student Label`,studentCorrect:`Student Correct`,studentCorrectLabel:`Student Correct Label`}},mathInline:{keypadInstructions:`This field supports both keypad and keyboard input. Use the keyboard to access and interact with the on-screen math keypad, which accepts LaTeX markup. Use the down arrow key to open the keypad and navigate its buttons. Use the escape key to close the keypad and return to the input field.`,mathEquationResponseQuestion:`Math Equation Response Question`,mathResponseQuestion:`Math Response Question`,primaryCorrectWithAlternates:`Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.`},mathInput:{enterAnswer:`Enter answer`},mcPopulatedBlank:{answerChoices:`Answer choices`,blankLabel:`blank`,emptyBlank:`(blank)`,blankPreSelectionHint:`The answer you choose will appear on the blank line above.`,correctAnswerSelected:`Correct answer selected`,incorrectAnswerSelected:`Incorrect answer selected`,selectedAnswerImage:`Selected answer image`,choiceImage:`Choice {{id}}`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,listen:`Listen`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,printAudio:`Audio:`,printTranscript:`Transcript:`},multipleChoice:{minSelections:`Select at least {{minSelections}}.`,maxSelections_one:`Only {{maxSelections}} answer is allowed.`,maxSelections_other:`Only {{maxSelections}} answers are allowed.`,minmaxSelections_equal:`Select {{minSelections}}.`,minmaxSelections_range:`Select between {{minSelections}} and {{maxSelections}}.`,multipleChoiceQuestion:`Multiple Choice Question`,multipleCorrectAnswerQuestion:`Multiple Correct Answer Question`,multipleSelectQuestion:`Multiple Select Question`},rubric:{rubric:`Rubric`,showRubric:`Show Rubric`,hideRubric:`Hide Rubric`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`,textGroup:`Selectable text`,textGroupWithLimit:`Selectable text, select up to {{max}}`,tokenPosition:`{{index}} of {{total}}`},simpleCloze:{correctAnswerShown:`Correct answer`,correct:`Correct`,incorrect:`Incorrect`,unanswered:`No answer`,placeholder:`Enter your answer...`,answerInput:`Your answer`,printCorrectAnswer:`Correct answer:`,printAnswerBlank:`Answer blank`},vennClassification:{tray:`Tiles to classify`,unknownTarget:`unknown`,cancelled:`Cancelled`,returnedToTray:`{{name}} returned to tray`,placedIn:`{{name}} placed in {{target}}`,pickedUp:`Picked up {{name}}`,pickedUpWithKeyboard:`Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.`,dropTarget:`Drop target: {{target}}`,unsupportedCircles_one:`This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.`,unsupportedCircles_other:`This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.`,setNumber:`Set {{number}}`,regionOnly:`{{set}} only`,regionNeither:`Neither {{first}} nor {{second}}`,regionNoneOf:`None of {{sets}}`,regionAndSeparator:` and `,tileFallbackName:`Tile`,tileNotPlaced:`not placed`,tileInRegion:`in {{region}}`,tileCorrect:`correct`,tileIncorrect:`incorrect`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,showTeacherInstructions:`Show Teacher Instructions`,hideTeacherInstructions:`Hide Teacher Instructions`,show:`Show`,hide:`Hide`,showRationale:`Show Rationale`,hideRationale:`Hide Rationale`,commonCorrectAnswerWithAlternates:`Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.`,warning:`Warning`,showNote:`Show Note`,hideNote:`Hide Note`,cancel:`Cancel`,playAudio:`Play audio`}},sC={translation:{categorize:{limitMaxChoicesPerCategory:`Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,maxChoicesPerCategoryRestriction:`Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta`},dragInTheBlank:{blank:`Espacio en blanco {{index}}`},ebsr:{part:`Parte {{index}}`,twoPartQuestion:`Pregunta de dos partes`},editableHtml:{responseAreaToolbar:`Área de respuesta`,toolbar:`Herramientas de edición`,buttons:{insertTable:`Insertar tabla`,addTableRow:`Agregar fila a la tabla`,removeTableRow:`Eliminar fila de la tabla`,addTableColumn:`Agregar columna a la tabla`,removeTableColumn:`Eliminar columna de la tabla`,removeTable:`Eliminar tabla`,tableBorders:`Bordes de la tabla`,bold:`Negrita`,italic:`Cursiva`,strikethrough:`Tachado`,code:`Código`,underline:`Subrayado`,subscript:`Subíndice`,superscript:`Superíndice`,insertImage:`Insertar imagen`,insertVideo:`Insertar video`,insertAudio:`Insertar audio`,cssClasses:`Clases CSS`,blockquote:`Cita en bloque`,heading:`Encabezado`,insertMath:`Insertar expresión matemática`,spanishCharacters:`Caracteres del español (ñ)`,specialCharacters:`Caracteres especiales (€)`,textAlignment:`Alineación del texto`,bulletedList:`Lista con viñetas`,numberedList:`Lista numerada`,done:`Listo`}},explicitConstructedResponse:{fillInTheBlankQuestion:`Pregunta para completar espacios en blanco`,response:`Respuesta {{index}} de {{total}}`},extendedTextEntry:{comment:`Comentario`,constructedResponseQuestion:`Pregunta de respuesta construida`,response:`Tu respuesta`,writtenResponseQuestion:`Pregunta de respuesta escrita`},fractionModel:{modelLabel_one:`Modelo {{index}} de {{total}}: {{selected}} de {{count}} parte seleccionada`,modelLabel_other:`Modelo {{index}} de {{total}}: {{selected}} de {{count}} partes seleccionadas`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`,closedEnd:`cerrado`,elementCorrect:`Correcto.`,elementIncorrect:`Incorrecto.`,graphLabel:`Recta numérica de {{min}} a {{max}}, con una marca cada {{interval}}`,line:`Línea de {{left}} ({{leftEnd}}) a {{right}} ({{rightEnd}}).`,openEnd:`abierto`,plottedNone:`No hay nada marcado en la recta.`,pointClosed:`Punto cerrado en {{position}}.`,pointOpen:`Punto abierto en {{position}}.`,rayLeft:`Rayo desde {{position}} ({{end}}) hacia la izquierda.`,rayRight:`Rayo desde {{position}} ({{end}}) hacia la derecha.`},hotspot:{correctlySelected:`Seleccionada correctamente`,image_one:`Imagen con {{count}} zona activa`,image_other:`Imagen con {{count}} zonas activas`,shape:`Zona activa {{index}} de {{total}}`,shouldHaveBeenSelected:`Debía seleccionarse`,shouldNotHaveBeenSelected:`No debía seleccionarse`},imageClozeAssociation:{answerChoice:`Opción de respuesta {{index}} de {{total}}`,image_one:`Imagen con {{count}} área de respuesta`,image_other:`Imagen con {{count}} áreas de respuesta`,reachedLimit_one:`Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,reachedLimit_other:`Lleno`,responseArea:`Área de respuesta {{index}} de {{total}}`},inlineDropdown:{inlineDropdownQuestion:`Pregunta con menú desplegable`,query:`Consulta`,queryNumber:`Consulta {{index}}`,showRationaleForChoices:`Mostrar justificación de las opciones`,hideRationaleForChoices:`Ocultar justificación de las opciones`},drawingResponse:{fillColor:`Color de relleno`,outlineColor:`Color del contorno`,noFill:`Sin relleno`,lightblue:`Azul claro`,lightyellow:`Amarillo claro`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,violet:`Violeta`,blue:`Azul`,green:`Verde`,white:`Blanco`,black:`Negro`,onDoubleClick:`Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar`,drawingArea:`Área de dibujo`,drawingAreaOverImage:`Área de dibujo sobre una imagen de fondo`,tools:{select:`Seleccionar`,freeDraw:`Dibujo libre`,line:`Línea`,rectangle:`Rectángulo`,circle:`Círculo`,textEntry:`Entrada de texto`,eraser:`Borrador`}},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,categoryLabel:`Etiqueta de la categoría {{index}}`,categoryLabelValue:`Etiqueta de la categoría {{index}}: {{label}}`,category:`Categoría {{index}}`,reachedLimit_other:`No puede haber más de {{count}} categorías.`,keyLegend:{incorrectAnswer:`Respuesta incorrecta del estudiante`,correctAnswer:`Respuesta correcta del estudiante`,correctKeyAnswer:`Clave de respuesta correcta`},chartTypes:{bar:`Gráfico de barras`,histogram:`Histograma`,lineDot:`Gráfico de líneas con puntos`,lineCross:`Gráfico de líneas con cruces`,dotPlot:`Diagrama de puntos`,linePlot:`Diagrama de líneas`},categories_zero:`Sin categorías.`,categories_one:`{{count}} categoría: {{categories}}.`,categories_other:`{{count}} categorías: {{categories}}.`,valueRange:`Valores de {{min}} a {{max}}.`,labelledValueRange:`{{label}} de {{min}} a {{max}}.`},graphing:{graph:`Gráfica de coordenadas`,axisRange:`Eje {{axis}} de {{min}} a {{max}}.`,plotted_zero:`Nada trazado.`,plotted_one:`{{count}} objeto trazado: {{marks}}.`,plotted_other:`{{count}} objetos trazados: {{marks}}.`,shadedRegion:`Región sombreada`,point:`Punto`,circle:`Circulo`,line:`Línea`,parabola:`Parábola`,absolute:`Valor absoluto`,exponential:`Exponencial`,polygon:`Polígono`,ray:`Semirrecta`,segment:`Segmento `,sine:`Seno`,vector:`Vector`,label:`Etiqueta`,markLabel:`Etiqueta en ({{x}}, {{y}})`,correctMarkLabel:`Etiqueta correcta en ({{x}}, {{y}})`,redo:`Rehacer`,reset:`Reiniciar`,keyLegend:{missingRequiredLabel:`Falta una etiqueta obligatoria`,answerKeyCorrect:`Clave de respuesta correcta`,answerKeyCorrectLabel:`Etiqueta correcta de la clave de respuesta`,studentIncorrect:`Respuesta incorrecta del estudiante`,incorrectStudentLabel:`Etiqueta incorrecta del estudiante`,studentCorrect:`Respuesta correcta del estudiante`,studentCorrectLabel:`Etiqueta correcta del estudiante`}},mathInline:{keypadInstructions:`Este campo admite la entrada con el teclado en pantalla y con el teclado físico. Usa el teclado físico para acceder al teclado matemático en pantalla e interactuar con él; este acepta notación LaTeX. Usa la tecla de flecha hacia abajo para abrir el teclado en pantalla y recorrer sus botones. Usa la tecla Escape para cerrar el teclado en pantalla y volver al campo de entrada.`,mathEquationResponseQuestion:`Pregunta de respuesta con ecuación matemática`,mathResponseQuestion:`Pregunta de respuesta matemática`,primaryCorrectWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.`},mathInput:{enterAnswer:`Escribe la respuesta`},mcPopulatedBlank:{answerChoices:`Opciones de respuesta`,blankLabel:`espacio en blanco`,emptyBlank:`(en blanco)`,blankPreSelectionHint:`La respuesta que elijas aparecerá en la línea en blanco de arriba.`,correctAnswerSelected:`Respuesta correcta seleccionada`,incorrectAnswerSelected:`Respuesta incorrecta seleccionada`,selectedAnswerImage:`Imagen de la respuesta seleccionada`,choiceImage:`Opción {{id}}`,clickToEnableAutoplay:`Haz clic para activar la reproducción automática del audio`,audioResourceUnavailable:`El audio está activado, pero no hay una URL de audio reproducible configurada.`,listen:`Escuchar`,listenSilentAlt:`Escuchar. Repetir las instrucciones.`,listenPlayingAlt:`Escuchar. Estas son las instrucciones.`,printAudio:`Audio:`,printTranscript:`Transcripción:`},multipleChoice:{minSelections:`Seleccione al menos {{minSelections}}.`,maxSelections_one:`Sólo se permite {{maxSelections}} respuesta.`,maxSelections_other:`Sólo se permiten {{maxSelections}} respuestas.`,minmaxSelections_equal:`Seleccione {{minSelections}}.`,minmaxSelections_range:`Seleccione entre {{minSelections}} y {{maxSelections}}.`,multipleChoiceQuestion:`Pregunta de opción múltiple`,multipleCorrectAnswerQuestion:`Pregunta con varias respuestas correctas`,multipleSelectQuestion:`Pregunta de selección múltiple`},rubric:{rubric:`Rúbrica`,showRubric:`Mostrar rúbrica`,hideRubric:`Ocultar rúbrica`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`,textGroup:`Texto seleccionable`,textGroupWithLimit:`Texto seleccionable, selecciona hasta {{max}}`,tokenPosition:`{{index}} de {{total}}`},simpleCloze:{correctAnswerShown:`Respuesta correcta`,correct:`Correcto`,incorrect:`Incorrecto`,unanswered:`Sin respuesta`,placeholder:`Escribe tu respuesta...`,answerInput:`Tu respuesta`,printCorrectAnswer:`Respuesta correcta:`,printAnswerBlank:`Espacio para la respuesta`},vennClassification:{tray:`Fichas para clasificar`,unknownTarget:`desconocido`,cancelled:`Cancelado`,returnedToTray:`Se devolvió {{name}} a la bandeja`,placedIn:`Se colocó {{name}} en {{target}}`,pickedUp:`Se tomó {{name}}`,pickedUpWithKeyboard:`Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.`,dropTarget:`Destino: {{target}}`,unsupportedCircles_one:`No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.`,unsupportedCircles_other:`No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.`,setNumber:`Conjunto {{number}}`,regionOnly:`Solo {{set}}`,regionNeither:`Ni {{first}} ni {{second}}`,regionNoneOf:`Ninguno de {{sets}}`,regionAndSeparator:` y `,tileFallbackName:`Ficha`,tileNotPlaced:`sin colocar`,tileInRegion:`en {{region}}`,tileCorrect:`correcta`,tileIncorrect:`incorrecta`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correcto`,incorrect:`Incorrecto`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,showTeacherInstructions:`Mostrar instrucciones para el maestro`,hideTeacherInstructions:`Ocultar instrucciones para el maestro`,show:`Mostrar`,hide:`Ocultar`,showRationale:`Mostrar justificación`,hideRationale:`Ocultar justificación`,commonCorrectAnswerWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.`,warning:`Advertencia`,showNote:`Mostrar Nota`,hideNote:`Ocultar Nota`,cancel:`Cancelar`,playAudio:`Reproducir audio`}},U=e=>typeof e==`string`,cC=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},lC=e=>e==null?``:``+e,uC=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},dC=/###/g,fC=e=>e&&e.indexOf(`###`)>-1?e.replace(dC,`.`):e,pC=e=>!e||U(e),mC=(e,t,n)=>{let r=U(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(pC(e))return{};let t=fC(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return pC(e)?{}:{obj:e,k:fC(r[i])}},hC=(e,t,n)=>{let{obj:r,k:i}=mC(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=mC(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=mC(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},gC=(e,t,n,r)=>{let{obj:i,k:a}=mC(e,t,Object);i[a]=i[a]||[],i[a].push(n)},_C=(e,t)=>{let{obj:n,k:r}=mC(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},vC=(e,t,n)=>{let r=_C(e,n);return r===void 0?_C(t,n):r},yC=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?U(e[r])||e[r]instanceof String||U(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):yC(e[r],t[r],n):e[r]=t[r]);return e},bC=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),xC={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},SC=e=>U(e)?e.replace(/[&<>"'\/]/g,e=>xC[e]):e,CC=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},wC=[` `,`,`,`?`,`!`,`;`],TC=new CC(20),EC=(e,t,n)=>{t||=``,n||=``;let r=wC.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=TC.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},DC=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},OC=e=>e?.replace(/_/g,`-`),kC={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},AC=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||kC,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(U(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},jC=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},MC=class extends jC{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):U(n)&&i?o.push(...n.split(i)):o.push(n)));let s=_C(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!U(n)?s:DC(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),hC(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(U(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=_C(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?yC(s,n,i):s={...s,...n},hC(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},NC={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},PC=Symbol(`i18next/PATH_KEY`);function FC(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===PC?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function IC(e,t){let{[PC]:n}=e(FC()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var LC={},RC=e=>!U(e)&&typeof e!=`boolean`&&typeof e!=`number`,zC=class e extends jC{constructor(e,t={}){super(),uC([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=AC.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=RC(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!EC(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:U(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:U(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=IC(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?IC(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!U(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=RC(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(U(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:RC(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&U(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=U(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!U(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=U(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=NC.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return U(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?IC(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!U(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(U(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!LC[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(LC[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!U(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},BC=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=AC.create(`languageUtils`)}getScriptPartFromCode(e){if(e=OC(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=OC(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(U(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),U(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return U(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):U(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},VC={zero:0,one:1,two:2,few:3,many:4,other:5},HC={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},UC=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=AC.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=OC(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),HC;if(!e.match(/-|_/))return HC;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>VC[e]-VC[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},WC=(e,t,n,r=`.`,i=!0)=>{let a=vC(e,t,n);return!a&&i&&U(n)&&(a=DC(e,n,r),a===void 0&&(a=DC(t,n,r))),a},GC=e=>e.replace(/\$/g,`$$$$`),KC=class{constructor(e={}){this.logger=AC.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?SC:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?bC(i):a||`{{`,this.suffix=o?bC(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?bC(d):f||bC(`$t(`),this.nestingSuffix=p?bC(p):m||bC(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=WC(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(WC(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>GC(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?GC(this.escape(e)):GC(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=U(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!U(a)&&!this.useRawValueToEscape&&(a=lC(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${bC(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!U(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!U(i))return i;U(i)||(i=lC(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},qC=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},JC=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(OC(r),i),t[o]=s),s(n)}},YC=e=>(t,n,r)=>e(OC(n),r)(t),XC=class{constructor(e={}){this.logger=AC.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?JC:YC;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=JC(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=qC(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},ZC=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},QC=class extends jC{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=AC.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{gC(n.loaded,[i],a),ZC(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();U(e)&&(e=this.languageUtils.toResolveHierarchy(e)),U(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},$C=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),U(e[1])&&(t.defaultValue=e[1]),U(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ew=e=>(U(e.ns)&&(e.ns=[e.ns]),U(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),U(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),tw=()=>{},nw=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},rw=`__i18next_supportNoticeShown`,iw=()=>!!(typeof globalThis<`u`&&globalThis[rw]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),aw=()=>{typeof globalThis<`u`&&(globalThis[rw]=!0)},ow=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),sw=class e extends jC{constructor(e={},t){if(super(),this.options=ew(e),this.services={},this.logger=AC,this.modules={external:[]},nw(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(U(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=$C();this.options={...n,...this.options,...ew(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!ow(this)&&!iw()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),aw());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?AC.init(r(this.modules.logger),this.options):AC.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:XC;let t=new BC(this.options);this.store=new MC(this.options.resources,this.options);let i=this.services;i.logger=AC,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new UC(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new KC(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new QC(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new zC(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=tw,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=cC(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=tw){let n=t,r=U(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=cC();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=tw,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&NC.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=cC();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=U(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(U(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=IC(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=IC(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=IC(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return U(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=cC();return this.options.ns?(U(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=cC();U(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new BC($C());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=tw){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new MC(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...$C().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new KC(n)}return a.translator=new zC(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();sw.createInstance,sw.dir,sw.init,sw.loadResources,sw.reloadResources,sw.use,sw.changeLanguage,sw.getFixedT,sw.t,sw.exists,sw.setDefaultNamespace,sw.hasLoadedNamespace,sw.loadNamespaces,sw.loadLanguages,sw.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:oC,es:sC}});var cw={translator:{...sw,t:(e,t)=>{let{lng:n}=t;switch(n){case`en_US`:case`en-US`:t.lng=`en`;break;case`es_ES`:case`es-ES`:case`es_MX`:case`es-MX`:t.lng=`es`;break;default:break}return sw.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},lw=e=>`${e}-${Math.random().toString(36).slice(2,10)}`,uw=e=>P.useState(()=>lw(e))[0],{translator:dw}=cw,fw=L(`button`)({display:`inline-block`,minHeight:`24px`,padding:0,border:0,background:`transparent`,font:`inherit`,textAlign:`inherit`,color:jy(),cursor:`pointer`}),pw=L(`span`)({borderBottom:`1px dotted currentColor`}),mw=L(Mb)(({theme:e})=>({paddingTop:e.spacing(2)})),hw=class extends P.Component{static propTypes={className:O.string,children:O.object,labels:O.shape({visible:O.string,hidden:O.string}),language:O.string};static defaultProps={labels:{}};state={expanded:!1};panelId=lw(`pie-collapsible`);toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){aC(this.root)}componentDidUpdate(){aC(this.root)}render(){let{labels:e,children:t,className:n,language:r}=this.props,{expanded:i}=this.state,a=i?e.visible||dw.t(`common:hide`,{lng:r}):e.hidden||dw.t(`common:show`,{lng:r});return(0,F.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,F.jsx)(`div`,{children:(0,F.jsx)(fw,{type:`button`,"aria-expanded":i,"aria-controls":this.panelId,onClick:this.toggleExpanded,children:(0,F.jsx)(pw,{children:a})})}),(0,F.jsx)(`div`,{id:this.panelId,children:(0,F.jsx)(mw,{in:i,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})})]})}},gw=Im((0,F.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),_w=Im((0,F.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`),vw=L(`div`)({display:`flex`,flexDirection:`column`}),yw=L(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),bw=L(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),xw=L(Ih)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),Sw=e=>{class t extends P.Component{static propTypes={session:O.object,onSessionChange:O.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,F.jsxs)(vw,{children:[(0,F.jsxs)(yw,{children:[(0,F.jsxs)(xw,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,F.jsx)(bw,{children:(0,F.jsx)(_w,{})}),`Undo`]}),(0,F.jsxs)(xw,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,F.jsx)(bw,{children:(0,F.jsx)(gw,{})}),`Start Over`]})]}),(0,F.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},Cw=vc({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),ww=L(`div`)({"& table, th, td":{fontSize:`inherit`}}),Tw=class extends P.Component{static propTypes={className:O.string,children:O.array,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}scopeClass=lw(`extra-css-rules`);computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,F.jsx)(ei,{injectFirst:!0,children:(0,F.jsxs)(Oc,{theme:Cw,children:[i?.rules?(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.${this.scopeClass} { ${i.rules} }`}}):null,(0,F.jsx)(ww,{className:`${t} extraCSSRules ${this.scopeClass}`,...a,...o&&{style:o},children:e})]})})}},Ew=L(Tw)({display:`flex`,flexDirection:`column`,position:`relative`}),Dw=class extends P.Component{static propTypes={ariaLabel:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,role:O.string,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,F.jsx)(Ew,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},Ow=class extends P.Component{static propTypes={tag:O.string,className:O.string,html:O.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,F.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:$v(n)}})}};function kw({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var Aw=P.createContext(void 0);function jw(){return P.useContext(Aw)}function Mw(e){return za(`MuiFormLabel`,e)}var Nw=Ba(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),Pw=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return cs({root:[`root`,`color${z(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},Mw,t)},Fw=L(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Lc(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t},style:{[`&.${Nw.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Nw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nw.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Iw=L(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(Lc(({theme:e})=>({[`&.${Nw.error}`]:{color:(e.vars||e).palette.error.main}}))),Lw=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=kw({props:n,muiFormControl:jw(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=Pw(m);return(0,F.jsxs)(Fw,{as:o,ownerState:m,className:La(h.root,i),ref:t,...f,children:[r,p.required&&(0,F.jsxs)(Iw,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function Rw(e){return za(`MuiInputLabel`,e)}Ba(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var zw=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=cs({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${z(r)}`,o],asterisk:[s&&`asterisk`]},Rw,t);return{...t,...c}},Bw=L(Lw,{shouldForwardProp:e=>Sc(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Nw.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]]}})(Lc(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),Vw=P.forwardRef(function(e,t){let n=Rc({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=jw(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=kw({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=zw(f);return(0,F.jsx)(Bw,{"data-shrink":u,ref:t,className:La(p.root,s),...c,ownerState:f,classes:p})});function Hw(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Uw(e,t=!1){return e&&(Hw(e.value)&&e.value!==``||t&&Hw(e.defaultValue)&&e.defaultValue!==``)}function Ww(e){return e.startAdornment}function Gw(e){return za(`MuiFormControl`,e)}Ba(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var Kw=e=>{let{classes:t,margin:n,fullWidth:r}=e;return cs({root:[`root`,n!==`none`&&`margin${z(n)}`,r&&`fullWidth`]},Gw,t)},qw=L(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${z(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),Jw=L(P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=Kw(_),[y,b]=P.useState(()=>{let e=!1;return r&&P.Children.forEach(r,t=>{if(!zm(t,[`Input`,`Select`]))return;let n=zm(t,[`Select`])?t.props.input:t;n&&Ww(n.props)&&(e=!0)}),e}),[x,S]=P.useState(()=>{let e=!1;return r&&P.Children.forEach(r,t=>{zm(t,[`Input`,`Select`])&&(Uw(t.props,!0)||Uw(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=P.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;P.useRef(!1);let E=P.useCallback(()=>{S(!0)},[]),D=P.useCallback(()=>{S(!1)},[]),O=P.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,F.jsx)(Aw.Provider,{value:O,children:(0,F.jsx)(qw,{as:o,ownerState:_,className:La(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),Yw=L(Vw)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),Xw=({label:e,className:t,children:n})=>(0,F.jsxs)(Jw,{className:t,children:[(0,F.jsx)(Yw,{shrink:!0,children:e}),n]});Xw.propTypes={label:O.oneOfType([O.string,O.object]).isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var{translator:Zw}=cw,Qw=`pie-prompt-audio-player`,$w=`play-audio-button`,eT=e=>`&:not(.MathJax) > table${e}, &:not(.MathJax) > .pie-table-scroll > table${e}`,tT=L(`div`)(({theme:e,tagName:t})=>({[`& .${$w}:focus-visible`]:{outline:`2px solid ${Jy()}`,outlineOffset:`2px`},[eT(`:not([role="presentation"])`)]:{borderCollapse:`collapse`},'&:not(.MathJax) table[border]:not([role="presentation"]), &:not(.MathJax) table[border]:not([role="presentation"]) td, &:not(.MathJax) table[border]:not([role="presentation"]) th':{borderStyle:`solid`,borderColor:Ly()},[eT(`:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)`)]:{backgroundColor:zy()},[eT(`:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td`)]:{backgroundColor:zy()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},[eT(` td > p.kds-indent`)]:{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:iy()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${iy()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),nT=/\\embed\{newLine\}\[\]/g,rT=`\\newline `,iT=`preview-prompt`,aT=class extends P.Component{static propTypes={prompt:O.string,tagName:O.string,className:O.string,onClick:O.func,defaultClassName:O.string,autoplayAudioEnabled:O.bool,customAudioButton:O.shape({playImage:O.string,pauseImage:O.string}),language:O.string};static defaultProps={onClick:()=>{}};promptRef=P.createRef();audioId=lw(Qw);playButtonId=lw($w);parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n,language:r}=this.props,i=document.createElement(`div`);i.innerHTML=$v(e);let a=i.querySelector(`audio`);if(a){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,a.getAttribute(`src`)),a.removeAttribute(`src`),a.id=this.audioId,a.classList.add(Qw),a.appendChild(e),n){a.style.display=`none`;let e=document.createElement(`button`);e.setAttribute(`type`,`button`),e.setAttribute(`aria-label`,Zw.t(`common:playAudio`,{lng:r})),e.id=this.playButtonId,e.className=$w,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,margin:`0`,padding:`0`,font:`inherit`,backgroundColor:`transparent`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),a.parentNode.insertBefore(e,a)}}return i.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=this.promptRef.current,r=n?.querySelector(`.${$w}`),i=n?.querySelector(`.${Qw}`);if(e&&i&&i.play().then(()=>{r&&t&&i.addEventListener(`ended`,o)}).catch(e=>{r&&t&&(r.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!r||!i||!t)return;let a=()=>{i.paused&&i.play()},o=()=>{r.style.backgroundImage=`url(${t.playImage})`},s=()=>{Object.assign(r.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},c=()=>{Object.assign(r.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};r.addEventListener(`click`,a),i.addEventListener(`play`,s),i.addEventListener(`pause`,c),i.addEventListener(`ended`,o),this._playButton=r,this._audio=i,this._handlePlayClick=a,this._handleAudioPlay=s,this._handleAudioPause=c,this._handleAudioEnded=o}removeCustomAudioButtonListeners(){let e=this._playButton,t=this._audio;!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=this.promptRef.current;e&&typeof aC==`function`&&aC(e)}alignImages(){let e=this.promptRef.current;if(!e)return;let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.attributes.alignment.value,n=t===`center`?`center`:t===`right`?`flex-end`:`flex-start`,r=e.parentElement;if(r.tagName===`DIV`&&r.style.display===`flex`&&r.style.width===`100%`)r.style.justifyContent=n;else{let t=document.createElement(`div`);t.style.display=`flex`,t.style.width=`100%`,t.style.justifyContent=n;let i=e.cloneNode(!0);t.appendChild(i),r.replaceChild(t,e)}}}}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``} ${iT}`.trim();return(0,F.jsx)(tT,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(nT,rT)}})}},oT=e=>(0,F.jsx)(F.Fragment,{children:P.Children.map(e.children,t=>P.cloneElement(t,{"data-pie-readable":e.false===void 0}))});oT.propTypes={children:O.node,false:O.bool};var sT=e=>(0,F.jsx)(F.Fragment,{children:P.Children.map(e.children,t=>P.cloneElement(t,{"data-pie-purpose":e.purpose}))});sT.propTypes={children:O.node,purpose:O.string};var cT;typeof window<`u`&&(cT=new DOMParser);var lT=e=>cT.parseFromString(e,`text/html`).body.textContent,uT=e=>{if(!e)return!1;let t=lT(e);return!!(t&&t.trim())},dT;typeof window<`u`&&(dT=new DOMParser);var fT=e=>{if(!e)return!1;let t=dT.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},pT=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTcsEjJDY4QmJ1dpKztMQYMzdEVIKyw9PxQ1hmc3SWJzVFRlZXhJOUldJk/8QAGwEBAQADAQEBAAAAAAAAAAAAAAcEBQYCAQP/xABBEQEAAQIDAgkJBgUFAQEBAAAAAQIDBAYRBSESMUFEYXGCscITNDVRcoGRocEUIjJS0eEVI2KSsjNCU6LwFtLx/9oADAMBAAIRAxEAPwD1TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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`;function mT(e=``,t=2){if(!e)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}var hT=P.createContext({});function gT(e){return za(`MuiList`,e)}Ba(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var _T=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return cs({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},gT,t)},vT=L(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),yT=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=P.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=_T(d);return(0,F.jsx)(hT.Provider,{value:u,children:(0,F.jsxs)(vT,{as:a,className:La(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),bT=_g;function xT(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ST(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function CT(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.startsWith(t.keys.join(``))}function wT(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!CT(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var TT=P.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=P.useRef(null),p=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Um(()=>{r&&f.current.focus()},[r]),P.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${bT(Hm(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=Ag(Bm(t));if(n===`ArrowDown`)e.preventDefault(),wT(t,r,c,s,xT);else if(n===`ArrowUp`)e.preventDefault(),wT(t,r,c,s,ST);else if(n===`Home`)e.preventDefault(),wT(t,null,c,s,xT);else if(n===`End`)e.preventDefault(),wT(t,null,c,s,ST);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&CT(r,i);i.previousKeyMatched&&(c||wT(t,r,!1,s,xT,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=bl(f,t),g=-1;P.Children.forEach(a,(e,t)=>{if(!P.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=P.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),P.cloneElement(e,t)}return e});return(0,F.jsx)(yT,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function ET(e){return za(`MuiMenu`,e)}Ba(`MuiMenu`,[`root`,`paper`,`list`]);var DT={vertical:`top`,horizontal:`right`},OT={vertical:`top`,horizontal:`left`},kT=e=>{let{classes:t}=e;return cs({root:[`root`],paper:[`paper`],list:[`list`]},ET,t)},AT=L(h_,{shouldForwardProp:e=>Sc(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),jT=L(m_,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),MT=L(TT,{name:`MuiMenu`,slot:`List`})({outline:0}),NT=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=Do(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=kT(b),S=r&&!o&&l,C=P.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;P.Children.map(i,(e,t)=>{P.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=Ed({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[ee,te]=Wd(`paper`,{className:x.paper,elementType:jT,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[k,A]=Wd(`list`,{className:La(x.list,s.className),elementType:MT,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),ne=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,F.jsx)(AT,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?DT:OT,slots:{root:g.root,paper:ee,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:te,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...ne,onEntering:(...e)=>{w(...e),ne?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,F.jsx)(k,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...A,children:i})})}),PT=({slotProps:e,...t})=>(0,F.jsx)(NT,{...t,disableScrollLock:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,...e?.root?.style}},backdrop:{invisible:!0,...e?.backdrop}}}),FT=s({Collapsible:()=>hw,EnableAudioAutoplayImage:()=>pT,Feedback:()=>gb,HtmlAndMath:()=>Ow,InlineMenu:()=>PT,InputContainer:()=>Xw,PreviewLayout:()=>Dw,PreviewPrompt:()=>aT,Purpose:()=>sT,Readable:()=>oT,UiLayout:()=>Tw,color:()=>ny,createUniqueId:()=>lw,hasMedia:()=>fT,hasText:()=>uT,indicators:()=>_b,transformDataHeadings:()=>mT,useUniqueId:()=>uw,withUndoReset:()=>Sw}),{translator:IT}=cw;function LT(e,t){if(!e)return;let n=IT.t(`mathInput.enterAnswer`,{lng:t});for(let t of e.querySelectorAll(`.mq-editable-field > .mq-textarea > textarea`))t.setAttribute(`aria-label`,n)}function W(e){this.elements=Array.isArray(e)?e:[e].filter(Boolean),this.length=this.elements.length;for(var t=0;t<this.elements.length;t++)this[t]=this.elements[t]}W.prototype.addClass=function(e){var t=(e||``).split(/\s+/).filter(Boolean);return this.elements.forEach(function(e){t.forEach(function(t){e.classList.add(t)})}),this},W.prototype.removeClass=function(e){return this.elements.forEach(function(t){e?(e||``).split(/\s+/).filter(Boolean).forEach(function(e){t.classList.remove(e)}):t.className=``}),this},W.prototype.toggleClass=function(e,t){var n=(e||``).split(/\s+/).filter(Boolean),r=arguments.length>1?!!t:null;return this.elements.forEach(function(e){n.forEach(function(t){r===null?e.classList.toggle(t):e.classList.toggle(t,r)})}),this},W.prototype.attr=function(e,t){return t===VT?this.elements[0]?this.elements[0].getAttribute(e):VT:(this.elements.forEach(function(n){n.setAttribute(e,t)}),this)},W.prototype.html=function(e){return e===VT?this.elements[0]?this.elements[0].innerHTML:``:(this.elements.forEach(function(t){t.innerHTML=e}),this)},W.prototype.append=function(e){var t=e instanceof W?e.elements[0]:e;return this.elements.forEach(function(e){e.appendChild(t)}),this},W.prototype.prepend=function(e){var t=e instanceof W?e.elements[0]:e;return this.elements.forEach(function(e,n){var r=n===0?t:t.cloneNode(!0);e.insertBefore(r,e.firstChild)}),this},W.prototype.wrapAll=function(e){if(!this.elements.length)return this;var t;if(typeof e==`string`&&e.trim().indexOf(`<`)===0){var n=document.createElement(`div`);n.innerHTML=e.trim(),t=n.firstChild}else if(e instanceof W)t=e.elements[0];else if(e&&e.nodeType)t=e;else return this;var r=this.elements[0],i=r.parentNode;return i&&(i.insertBefore(t,r),this.elements.forEach(function(e){t.appendChild(e)})),this},W.prototype.appendTo=function(e){var t=e instanceof W?e.elements[0]:e;return t&&this.elements.forEach(function(e){t.appendChild(e)}),this},W.prototype.prependTo=function(e){var t=e instanceof W?e.elements[0]:e;if(!t)return this;var n=t.firstChild;return this.elements.forEach(function(e){t.insertBefore(e,n),n=e}),this},W.prototype.insertBefore=function(e){var t=e instanceof W?e.elements[0]:e;if(!t)return this;var n=t.parentNode;return n&&this.elements.forEach(function(e){n.insertBefore(e,t)}),this},W.prototype.insertAfter=function(e){var t=e instanceof W?e.elements[0]:e;if(!t)return this;var n=t.parentNode,r=t.nextSibling;return n&&this.elements.forEach(function(e){n.insertBefore(e,r),r=e}),this},W.prototype.replaceWith=function(e){var t=[];return e instanceof W?t=e.elements.slice():e&&typeof e.length==`number`&&!e.tagName?t=Array.from(e):e&&e.nodeType&&(t=[e]),this.elements.forEach(function(e){var n=e.parentNode;n&&(t.forEach(function(t){n.insertBefore(t,e)}),n.removeChild(e))}),this},W.prototype.insDirOf=function(e,t){return e===-1?this.insertBefore(t.first()):this.insertAfter(t.last())},W.prototype.insAtDirEnd=function(e,t){return e===-1?this.prependTo(t):this.appendTo(t)},W.prototype.children=function(e){var t=[];return this.elements.forEach(function(n){var r;if(!e)r=Array.from(n.children);else if(e===`:first`)r=n.firstElementChild?[n.firstElementChild]:[];else if(e===`:last`)r=n.lastElementChild?[n.lastElementChild]:[];else{var i=/^:eq\((\d+)\)$/.exec(e);if(i){var a=parseInt(i[1],10),o=Array.from(n.children);r=o[a]?[o[a]]:[]}else r=Array.from(n.querySelectorAll(`:scope > `+e))}t.push.apply(t,r)}),new W(t)},W.prototype.find=function(e){var t=[];return this.elements.forEach(function(n){var r=Array.from(n.querySelectorAll(e));t.push.apply(t,r)}),new W(t)},W.prototype.closest=function(e){return new W(this.elements.map(function(t){return t.closest(e)}).filter(Boolean))},W.prototype.contents=function(){var e=[];return this.elements.forEach(function(t){var n=Array.from(t.childNodes);e.push.apply(e,n)}),new W(e)},W.prototype.filter=function(e){return new W(this.elements.filter(function(t,n){return e(n,t)}))},W.prototype.detach=function(){return this.elements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),this},W.prototype.remove=function(){return this.elements.forEach(function(e){e.remove()}),this},W.prototype.empty=function(){return this.elements.forEach(function(e){e.innerHTML=``}),this};function RT(e){return(e||``).split(`.`)[0]}W.prototype.on=function(e,t){var n=RT(e);return this.elements.forEach(function(e){e.addEventListener(n,t)}),this},W.prototype.bind=function(e,t,n){var r=this;if(typeof e==`object`){for(var i in e)e.hasOwnProperty(i)&&r.bind(i,e[i]);return this}var a=typeof t==`function`?t:n;return a===!1&&(a=function(e){e.preventDefault()}),(e||``).split(/\s+/).filter(Boolean).forEach(function(e){var t=RT(e);r.elements.forEach(function(e){e.addEventListener(t,a)})}),this},W.prototype.off=function(e,t){var n=RT(e);return this.elements.forEach(function(e){e.removeEventListener(n,t)}),this},W.prototype.unbind=function(e,t){if(e&&e.includes(`.`))this.elements.forEach(function(e){var t=e.cloneNode(!0);e.parentNode&&e.parentNode.replaceChild(t,e)});else if(e&&t){var n=RT(e);this.elements.forEach(function(e){e.removeEventListener(n,t)})}return this},W.prototype.trigger=function(e){var t=new Event(RT(e),{bubbles:!0,cancelable:!0});return this.elements.forEach(function(e){e.dispatchEvent(t)}),this},W.prototype.focus=function(e){return typeof e==`function`?this.on(`focus`,e):(this.elements.forEach(function(e){e.focus&&e.focus()}),this)},W.prototype.blur=function(e){return typeof e==`function`?this.on(`blur`,e):(this.elements.forEach(function(e){e.blur&&e.blur()}),this)},[`mousemove`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`click`,`keydown`,`keypress`,`keyup`,`focusout`,`paste`,`cut`,`copy`,`input`,`load`].forEach(function(e){W.prototype[e]=function(t){return this.on(e,t)}}),W.prototype.next=function(e){return new W(this.elements.map(function(e){return e.nextElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},W.prototype.prev=function(e){return new W(this.elements.map(function(e){return e.previousElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},W.prototype.parent=function(){return new W(this.elements.map(function(e){return e.parentElement}).filter(Boolean))},W.prototype.offset=function(){if(!this.elements[0])return{top:0,left:0};var e=this.elements[0].getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}},W.prototype.width=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.width)||e.getBoundingClientRect().width},W.prototype.height=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.height)||e.getBoundingClientRect().height},W.prototype.outerWidth=function(){return this.elements[0]?this.elements[0].offsetWidth:0},W.prototype.outerHeight=function(){return this.elements[0]?this.elements[0].offsetHeight:0},W.prototype.innerWidth=function(){return this.elements[0]?this.elements[0].clientWidth:0},W.prototype.innerHeight=function(){return this.elements[0]?this.elements[0].clientHeight:0},W.prototype.css=function(e,t){if(t===VT){if(typeof e==`string`){var n=this.elements[0];return n?window.getComputedStyle(n).getPropertyValue(e.replace(/([A-Z])/g,`-$1`).toLowerCase()):VT}}else this.elements.forEach(function(n){n.style[e]=t});return this},W.prototype.scrollTop=function(e){var t=this.elements[0];return e===VT?t?t===window?window.pageYOffset||document.documentElement.scrollTop:t.scrollTop:0:(t===window?window.scrollTo(window.pageXOffset||0,e):this.elements.forEach(function(t){t.scrollTop=e}),this)},W.prototype.scrollLeft=function(e){var t=this.elements[0];return e===VT?t?t===window?window.pageXOffset||document.documentElement.scrollLeft:t.scrollLeft:0:(t===window?window.scrollTo(e,window.pageYOffset||0):this.elements.forEach(function(t){t.scrollLeft=e}),this)},W.prototype.each=function(e){return this.elements.forEach(function(t,n){e.call(t,n,t)}),this},W.prototype.eq=function(e){return new W([this.elements[e]])},W.prototype.get=function(e){return e===VT?this.elements:e<0?this.elements[this.elements.length+e]:this.elements[e]},W.prototype.add=function(e){var t=this.elements.slice();return e instanceof W?t.push.apply(t,e.elements):Array.isArray(e)?t.push.apply(t,e):e&&e.nodeType&&t.push(e),new W(t)},W.prototype.first=function(){return new W([this.elements[0]])},W.prototype.last=function(){return new W([this.elements[this.elements.length-1]])},W.prototype.index=function(e){if(!e){var t=this.elements[0]&&this.elements[0].parentElement;return t?Array.from(t.children).indexOf(this.elements[0]):-1}var n=e instanceof W?e.elements[0]:e;return this.elements.indexOf(n)},W.prototype.is=function(e){return this.elements.some(function(t){return t.matches(e)})},W.prototype.text=function(e){return e===VT?this.elements.map(function(e){return e.textContent}).join(``):(this.elements.forEach(function(t){t.textContent=e}),this)},W.prototype.val=function(e){var t=this.elements[0];return t?e===VT?t.value===VT?t.textContent:t.value:(this.elements.forEach(function(t){t.value===VT?t.textContent=e:t.value=e}),this):VT};function zT(e){var t=Array.isArray(e)?e:[e].filter(Boolean),n=Object.create(W.prototype);n.elements=t,n.length=t.length;for(var r=0;r<t.length;r++)n[r]=t[r];return n}var G=function(e,t){var n;if(!e)n=[];else if(e===window||e===document)n=[e];else if(e.nodeType)n=[e];else if(e&&e.current&&e.current.nodeType)n=[e.current];else if(typeof e==`string`&&e[0]===`<`){var r=document.createElement(`div`);r.innerHTML=e.trim(),n=Array.from(r.children)}else if(typeof e==`string`){var i=t instanceof W?t.elements[0]:t||document;n=Array.from(i.querySelectorAll(e))}else n=e instanceof W?e.elements:e.length===VT?[]:Array.from(e);return zT(n)};G.contains=function(e,t){return e!==t&&e.contains(t)};var BT=G,VT,HT=`mathquill-command-id`,UT=`mathquill-block-id`,WT=Math.min,GT=Math.max;function KT(){}var qT=[].slice;function JT(e){var t=e.length-1;return function(){var n=qT.call(arguments,0,t),r=qT.call(arguments,t);return e.apply(this,n.concat([r]))}}var YT=JT(function(e,t){return JT(function(n,r){if(e in n)return n[e].apply(n,t.concat(r))})});function XT(e){return JT(function(t,n){return typeof t!=`function`&&(t=YT(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function K(e){var t=qT.call(arguments,1);return function(){return e.apply(this,t)}}function ZT(e,t){if(!t)throw Error(`prayer failed: `+e)}var q=(function(e,t,n){function r(e){return typeof e==`object`}function i(e){return typeof e==`function`}function a(){}return function o(s,c){c===n&&(c=s,s=Object);function l(){var e=new u;return i(e.init)&&e.init.apply(e,arguments),e}function u(){}l.Bare=u;var d=a[e]=s[e],f=u[e]=l[e]=l.p=new a,p;return f.constructor=l,l.extend=function(e){return o(l,e)},(l.open=function(e){if(p={},i(e)?p=e.call(l,f,d,l,s):r(e)&&(p=e),r(p))for(var n in p)t.call(p,n)&&(f[n]=p[n]);return i(f.init)||(f.init=s),l})(c)}})(`prototype`,{}.hasOwnProperty),J=-1,Y=1;function QT(e){ZT(`a direction was passed`,e===J||e===Y)}var $T=q(function(e){e.parent=0,e[J]=0,e[Y]=0,e.init=function(e,t,n){this.parent=e,this[J]=t,this[Y]=n},this.copy=function(e){return $T(e.parent,e[J],e[Y])}}),eE=q(function(e){e[J]=0,e[Y]=0,e.parent=0;var t=0;function n(){return t+=1}this.byId={},e.init=function(){this.id=n(),eE.byId[this.id]=this,this.ends={},this.ends[J]=0,this.ends[Y]=0},e.dispose=function(){delete eE.byId[this.id]},e.toString=function(){return`{{ MathQuill Node #`+this.id+` }}`},e.jQ=G(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){var e=G(e||this.html());function t(e){if(e.getAttribute){var n=e.getAttribute(`mathquill-command-id`),r=e.getAttribute(`mathquill-block-id`);n&&eE.byId[n].jQadd(e),r&&eE.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){QT(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[J],t[Y]),n},e.createLeftOf=function(e){return this.createDir(J,e)},e.selectChildren=function(e,t){return oE(e,t)},e.bubble=XT(function(e){for(var t=this;t&&e(t)!==!1;t=t.parent);return this}),e.postOrder=XT(function(e){return(function t(n){n.eachChild(t),e(n)})(this),this}),e.isEmpty=function(){return this.ends[J]===0&&this.ends[Y]===0},e.isStyleBlock=function(){return!1},e.children=function(){return nE(this.ends[J],this.ends[Y])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return nE(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return nE(this,this).adopt(e,t,n),this},e.disown=function(){return nE(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder(`dispose`),this.disown()}});function tE(e,t,n){ZT(`a parent is always present`,e),t&&(t[Y]!==n&&(t[Y]=n),t.parent!==e&&(t.parent=e)),n&&(n[J]!==t&&(n[J]=t),n.parent!==e&&(n.parent=e)),ZT(`leftward is properly set up`,(function(){return t?t[Y]===n&&t.parent===e:e.ends[J]===n})()),ZT(`rightward is properly set up`,(function(){return n?n[J]===t&&n.parent===e:e.ends[Y]===t})())}var nE=q(function(e){e.init=function(e,t,n){if(n===VT&&(n=J),QT(n),ZT(`no half-empty fragments`,!e==!t),this.ends={},e){ZT(`withDir is passed to Fragment`,e instanceof eE),ZT(`oppDir is passed to Fragment`,t instanceof eE),ZT(`withDir and oppDir have the same parent`,e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],function(e,t){return e.push.apply(e,t.jQ.get()),e});this.jQ=this.jQ.add(r)}},e.jQ=G(),e.withDirAdopt=function(e,t,n,r){return e===J?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){tE(e,t,n);var r=this;r.disowned=!1;var i=r.ends[J];if(!i)return this;var a=r.ends[Y];return t||(e.ends[J]=i),n?n[J]=a:e.ends[Y]=a,r.ends[Y][Y]=n,r.each(function(n){n[J]=t,n.parent=e,t&&(t[Y]=n),t=n}),r},e.disown=function(){var e=this,t=e.ends[J];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[Y],r=t.parent;return tE(r,t[J],t),tE(r,n,n[Y]),t[J]?t[J][Y]=n[Y]:r.ends[J]=n[Y],n[Y]?n[Y][J]=t[J]:r.ends[Y]=t[J],e},e.remove=function(){return this.jQ.remove(),this.each(`postOrder`,`dispose`),this.disown()},e.each=XT(function(e){var t=this,n=t.ends[J];if(!n)return t;for(;n!==t.ends[Y][Y]&&e(n)!==!1;n=n[Y]);return t}),e.fold=function(e,t){return this.each(function(n){e=t.call(this,e,n)}),e}}),X={},rE={},iE={},aE=q($T,function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=G(`<span class="mq-cursor">&#8203;</span>`);this.blink=function(){n.toggleClass(`mq-blink`)},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass(`mq-blink`),`intervalId`in this?clearInterval(this.intervalId):(this[Y]?this.selection&&this.selection.ends[J][J]===this[J]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[Y].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return`intervalId`in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=G(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return QT(e),!t||!t.jQ?this:(this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass(`mq-hasCursor`),this)},e.insLeftOf=function(e){return this.insDirOf(J,e)},e.insRightOf=function(e){return this.insDirOf(Y,e)},e.insAtDirEnd=function(e,t){return QT(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(J,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(Y,e)},e.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=$T.copy(n);var r=n.upDownCache[t.id];if(r)r[Y]?n.insLeftOf(r[Y]):n.insAtRightEnd(r.parent);else{var i=n.offset().left;t.seek(i,n)}},e.offset=function(){var e=this,t=e.jQ.removeClass(`mq-cursor`).offset();return e.jQ.addClass(`mq-cursor`),t},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[Y],r=this,i=e[J];if(e.disown().eachChild(function(r){r.isEmpty()||(r.children().adopt(t,i,n).each(function(t){t.jQ.insertBefore(e.jQ.first())}),i=r.ends[Y])}),!this[Y])if(this[J])this[Y]=this[J][Y];else for(;!this[Y];)if(this.parent=this.parent[Y],this.parent)this[Y]=this.parent.ends[J];else{this[Y]=e[Y],this.parent=t;break}this[Y]?this.insLeftOf(this[Y]):this.insAtRightEnd(t),e.jQ.remove(),e[J].siblingDeleted&&e[J].siblingDeleted(r.options,Y),e[Y].siblingDeleted&&e[Y].siblingDeleted(r.options,J)},e.startSelection=function(){for(var e=this.anticursor=$T.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},e.endSelection=function(){delete this.anticursor},e.select=function(){var e=this.anticursor;if(!e||!e.ancestors||this[J]===e[J]&&this.parent===e.parent)return!1;for(var t,n=this;n.parent;n=n.parent)if(n.parent.id in e.ancestors){t=n.parent;break}if(!t)return!1;var r=e.ancestors[t.id],i,a,o=Y;if(n[J]!==r){for(var s=n;s;s=s[Y])if(s[Y]===r[Y]){o=J,i=n,a=r;break}}return o===Y&&(i=r,a=n),i instanceof $T&&(i=i[Y]),a instanceof $T&&(a=a[J]),!i||!a?!1:(this.hide().selection=t.selectChildren(i,a),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0)},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[J]=this.selection.ends[J][J],this[Y]=this.selection.ends[Y][Y],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[J]=e.ends[J][J],this[Y]=e.ends[Y][Y],delete this.selection),e},e.depth=function(){for(var e=this,t=0;e=e.parent;)t+=+(e instanceof EE);return t},e.isTooDeep=function(e){if(this.options.maxDepth!==VT)return this.depth()+(e||0)>this.options.maxDepth},e.howDeep=function(){for(var e=0,t=this;t=t.parent;)e++;return 1+Math.floor(e/2)},e.tooDeep=function(){var e=this.options.maxDepth;return e&&this.howDeep()>e}}),oE=q(nE,function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll(`<span class="mq-selection"></span>`).parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){var e=this.jQ[0];return e&&this.jQ.replaceWith(e.childNodes),this},e.join=function(e){return this.fold(``,function(t,n){return t+n[e]()})}}),sE=q(function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=aE(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===J||t===Y?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}}),cE={},lE=q(),uE={},dE=q(),fE={};function pE(){window.console&&console.warn(`You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:
184
186
 
185
187
  MathQuill = MathQuill.getInterface(1);
186
188
  // now MathQuill.MathField() works like it used to
187
189
 
188
190
  See also the "\`dev\` branch (2014–2015) → v0.10.0 Migration Guide" at
189
- https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)}function jw(e){return Aw(),zT(e)}jw.prototype=Ow.p,jw.VERSION=`v1.2.1-beta.1`,jw.interfaceVersion=function(e){if(e!==1)throw`Only interface version 1 supported. You specified: `+e;return Aw=function(){window.console&&console.warn(`You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:
191
+ https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)}function mE(e){return pE(),CD(e)}mE.prototype=dE.p,mE.VERSION=`v1.2.1-beta.1`,mE.interfaceVersion=function(e){if(e!==1)throw`Only interface version 1 supported. You specified: `+e;return pE=function(){window.console&&console.warn(`You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:
190
192
 
191
193
  MathQuill = MathQuill.getInterface(1);
192
194
  // now MathQuill.MathField() works like it used to
193
195
 
194
196
  See also the "\`dev\` branch (2014–2015) → v0.10.0 Migration Guide" at
195
- https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)},Aw(),jw},jw.getInterface=Pw;var Mw=Pw.MIN=1,Nw=Pw.MAX=3;function Pw(e){if(!(Mw<=e&&e<=Nw))throw`Only interface versions between `+Mw+` and `+Nw+` supported. You specified: `+e;if(e<3&&typeof window<`u`&&!window.jQuery)throw`MathQuill interface version `+e+` requires jQuery 1.5.2+ to be loaded first`;function t(e){if(!e||!e.nodeType)return null;var t=W(e).children(`.mq-root-block`).attr(ow),r=t&&_w.byId[t].controller;return r?n[r.KIND_OF_MQ](r):null}var n={};t.L=q,t.R=J,t.saneKeyboardEvents=Lw;function r(e,t){for(var r in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:n}),t)if(t.hasOwnProperty(r)){var i=t[r],a=Dw[r];e[r]=a?a(i):i}}t.config=function(e){return r(Ew.p,e),this},t.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw`Embed name must start with letter and be only letters and digits`;kw[e]=t};var i=n.AbstractMathQuill=K(Ow,function(t){t.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},t.parseLatex=function(e){return this.__controller.parseLatex(e)},t.__mathquillify=function(t){var n=this.__controller,r=n.root,i=n.container;n.createTextarea();var a=i.addClass(t).contents().detach();r.jQ=W(`<span class="mq-root-block"/>`).attr(ow,r.id).appendTo(i),this.latex(a.text()),this.revert=function(){var t=i.empty().unbind(`.mathquill`).removeClass(`mq-editable-field mq-math-mode mq-text-mode`).append(a);return e>=3?t[0]:t}},t.config=function(e){return r(this.__options,e),this},t.el=function(){return this.__controller.container[0]},t.text=function(){return this.__controller.exportText()},t.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},t.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,``).replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,``).replace(/ mq-hasCursor|mq-hasCursor ?/,``).replace(/ class=(""|(?= |>))/g,``)},t.reflow=function(){return this.__controller.root.postOrder(`reflow`),this}});for(var a in t.prototype=i.prototype,n.EditableField=K(i,function(e,t){e.__mathquillify=function(){return t.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild(`postOrder`,`dispose`),e.ends[q]=e.ends[J]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)&&!n.isTooDeep()){e=e.slice(1);var r=Y[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify(`move`).cursor.insAtRightEnd(e.root);e.cursor[q];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify(`move`).cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(q)},e.moveToRightEnd=function(){return this.moveToDirEnd(J)},e.keystroke=function(e){for(var e=e.replace(/^\s+|\s+$/g,``).split(/\s+/),t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:lw});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-W(window).scrollLeft(),i=t-W(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(W(a),e,t),LT().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,t,n){n||=document.elementFromPoint(e,t);var r=this.__controller,i=r.root;return rw.contains(i.jQ[0],n)||(n=i.jQ[0]),r.seek(W(n),e+pageXOffset,t+pageYOffset),r.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}}),t.EditableField=function(){throw`wtf don't call me, I'm 'abstract'`},t.EditableField.prototype=n.EditableField.prototype,Tw)(function(r,i){var a=n[r]=i(n);t[r]=function(n,i){var o=t(n);if(o instanceof a||!n||!n.nodeType)return o;var s=ww(a.RootBlock(),W(n),Ew());return s.KIND_OF_MQ=r,a(s).__mathquillify(i,e)},t[r].prototype=a.prototype})(a,Tw[a]);return t}jw.noConflict=function(){return window.MathQuill=Fw,jw};var Fw=window.MathQuill;window.MathQuill=jw;function Iw(e){for(var t=`moveOutOf deleteOutOf selectOutOf upOutOf downOutOf`.split(` `),n=0;n<t.length;n+=1)(function(t){e[t]=function(e){this.controller.handle(t,e)}})(t[n]);e.reflow=function(){this.controller.handle(`reflow`),this.controller.handle(`edited`),this.controller.handle(`edit`)}}var X=K(function(e,t,n){function r(e,t){throw e=e?`'`+e+`'`:`EOF`,`Parse Error: `+t+` at `+e}e.init=function(e){this._=e},e.parse=function(e){return this.skip(o)._(``+e,t,r);function t(e,t){return t}},e.or=function(e){mw(`or is passed a parser`,e instanceof n);var t=this;return n(function(n,r,i){return t._(n,r,a);function a(t){return e._(n,r,i)}})},e.then=function(e){var t=this;return n(function(r,i,a){return t._(r,o,a);function o(t,r){var o=e instanceof n?e:e(r);return mw(`a parser is returned`,o instanceof n),o._(t,i,a)}})},e.many=function(){var e=this;return n(function(t,n,r){for(var i=[];e._(t,a,o););return n(t,i);function a(e,n){return t=e,i.push(n),!0}function o(){return!1}})},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n(function(n,i,a){for(var o=[],s=!0,c,l=0;l<e;l+=1)if(s=r._(n,u,d),!s)return a(n,c);for(;l<t&&s;l+=1)s=r._(n,u,f);return i(n,o);function u(e,t){return o.push(t),n=e,!0}function d(e,t){return c=t,n=e,!1}function f(e,t){return!1}})},e.result=function(e){return this.then(a(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then(function(e){return t.many().map(function(t){return e.concat(t)})})},e.map=function(e){return this.then(function(t){return a(e(t))})},e.skip=function(e){return this.then(function(t){return e.result(t)})},this.string=function(e){var t=e.length,r=`expected '`+e+`'`;return n(function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)})};var i=this.regex=function(e){mw(`regexp parser is anchored`,e.toString().charAt(1)===`^`);var t=`expected `+e;return n(function(n,r,i){var a=e.exec(n);if(a){var o=a[0];return r(n.slice(o.length),o)}else return i(n,t)})},a=n.succeed=function(e){return n(function(t,n){return n(t,e)})};n.fail=function(e){return n(function(t,n,r){return r(t,e)})},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n(function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,`expected any character`)}),n.all=n(function(e,t,n){return t(``,e)});var o=n.eof=n(function(e,t,n){return e?n(e,`expected EOF`):t(e,e)})}),Lw=function(){var e={8:`Backspace`,9:`Tab`,10:`Enter`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Esc`,32:`Spacebar`,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`Left`,38:`Up`,39:`Right`,40:`Down`,45:`Insert`,46:`Del`,144:`NumLock`};function t(t){var n=t.which||t.keyCode,r=e[n],i,a=[];return t.ctrlKey&&a.push(`Ctrl`),t.originalEvent&&t.originalEvent.metaKey&&a.push(`Meta`),t.altKey&&a.push(`Alt`),t.shiftKey&&a.push(`Shift`),i=r||String.fromCharCode(n),!a.length&&!r?i:(a.push(i),a.join(`-`))}return function(e,n){var r=null,i=null,a=rw(e),o=rw(n.container||a),s=lw,c;function l(e){s=e,clearTimeout(c),c=setTimeout(e)}function u(e){l(function(t){s=lw,clearTimeout(c),e(t)})}o.bind(`keydown keypress input keyup focusout paste`,function(e){s(e)});function d(e){s(),s=lw,clearTimeout(c),a.val(e),e&&a[0]&&a[0].select&&a[0].select(),f=!!e}var f=!1;function p(){var e=a[0];return`selectionStart`in e&&e.selectionStart!==e.selectionEnd}function m(){n.keystroke(t(r),r)}function h(e){r=e,i=null,f&&u(function(e){!(e&&e.type===`focusout`)&&a[0]&&a[0].select&&a[0].select()}),m()}function g(e){r&&i&&m(),i=e,l(v)}function _(e){r&&!i&&l(v)}function v(){if(!p()){var e=a.val();e.length===1?(a.val(``),n.typedText(e)):e&&a[0]&&a[0].select&&a[0].select()}}function y(){r=i=null}function b(e){a.focus(),l(x)}function x(){var e=a.val();a.val(``),e&&n.paste(e)}return o.bind({keydown:h,keypress:g,keyup:_,focusout:y,cut:function(){u(function(){n.cut()})},copy:function(){u(function(){n.copy()})},paste:b}),{select:d}}}();ww.open(function(e,t){e.exportText=function(){return this.root.foldChildren(``,function(e,t){return e+t.text()})}}),ww.open(function(e){e.focusBlurEvents=function(){var e=this,t=e.root,n=e.cursor,r;e.textarea.focus(function(){e.blurred=!1,clearTimeout(r),e.container.addClass(`mq-focused`),n.parent||n.insAtRightEnd(t),n.selection?(n.selection.jQ.removeClass(`mq-blur`),e.selectionChanged()):n.show()}).blur(function(){e.blurred=!0,r=setTimeout(function(){t.postOrder(`intentionalBlur`),n.clearSelection().endSelection(),a()}),W(window).bind(`blur`,i)});function i(){clearTimeout(r),n.selection&&n.selection.jQ.addClass(`mq-blur`),a()}function a(){n.hide().parent.blur(),e.container.removeClass(`mq-focused`),W(window).unbind(`blur`,i)}e.blurred=!0,n.hide().parent.blur()}}),ww.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),_w.open(function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case`Ctrl-Shift-Backspace`:case`Ctrl-Backspace`:n.ctrlDeleteDir(q);break;case`Shift-Backspace`:case`Backspace`:n.backspace();break;case`Esc`:case`Tab`:n.escapeDir(J,e,t);return;case`Shift-Tab`:case`Shift-Esc`:n.escapeDir(q,e,t);return;case`End`:n.notify(`move`).cursor.insAtRightEnd(r.parent);break;case`Ctrl-End`:n.notify(`move`).cursor.insAtRightEnd(n.root);break;case`Shift-End`:for(;r[J];)n.selectRight();break;case`Ctrl-Shift-End`:for(;r[J]||r.parent!==n.root;)n.selectRight();break;case`Home`:n.notify(`move`).cursor.insAtLeftEnd(r.parent);break;case`Ctrl-Home`:n.notify(`move`).cursor.insAtLeftEnd(n.root);break;case`Shift-Home`:for(;r[q];)n.selectLeft();break;case`Ctrl-Shift-Home`:for(;r[q]||r.parent!==n.root;)n.selectLeft();break;case`Left`:n.moveLeft();break;case`Shift-Left`:n.selectLeft();break;case`Ctrl-Left`:break;case`Right`:n.moveRight();break;case`Shift-Right`:n.selectRight();break;case`Ctrl-Right`:break;case`Up`:n.moveUp();break;case`Down`:n.moveDown();break;case`Shift-Up`:if(r[q])for(;r[q];)n.selectLeft();else n.selectLeft();case`Shift-Down`:if(r[J])for(;r[J];)n.selectRight();else n.selectRight();case`Ctrl-Up`:break;case`Ctrl-Down`:break;case`Ctrl-Shift-Del`:case`Ctrl-Del`:n.ctrlDeleteDir(J);break;case`Shift-Del`:case`Del`:n.deleteForward();break;case`Meta-A`:case`Ctrl-A`:for(n.notify(`move`).cursor.insAtRightEnd(n.root);r[q];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){mw(`overridden or never called on this node`)}}),ww.open(function(e){this.onNotify(function(e){(e===`move`||e===`upDown`)&&this.show().clearSelection()}),e.escapeDir=function(e,t,n){hw(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify(`move`)},Dw.leftRightIntoCmdGoes=function(e){if(e&&e!==`up`&&e!==`down`)throw`"up" or "down" required for leftRightIntoCmdGoes option, got "`+e+`"`;return e},e.moveDir=function(e){hw(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify(`move`)},e.moveLeft=function(){return this.moveDir(q)},e.moveRight=function(){return this.moveDir(J)},e.moveUp=function(){return t(this,`up`)},e.moveDown=function(){return t(this,`down`)};function t(e,t){var n=e.notify(`upDown`).cursor,r=t+`Into`,i=t+`OutOf`;return n[J][r]?n.insAtLeftEnd(n[J][r]):n[q][r]?n.insAtRightEnd(n[q][r]):n.parent.bubble(function(e){var t=e[i];if(t&&(typeof t==`function`&&(t=e[i](n)),t instanceof _w&&n.jumpUpDown(e,t),t!==!0))return!1}),e}this.onNotify(function(e){e!==`upDown`&&(this.upDownCache={})}),this.onNotify(function(e){e===`edit`&&this.show().deleteSelection()}),e.deleteDir=function(e){hw(e);var t=this.cursor,n=t.selection;return this.notify(`edit`),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[q].siblingDeleted&&t[q].siblingDeleted(t.options,J),t[J].siblingDeleted&&t[J].siblingDeleted(t.options,q),t.parent.bubble(`reflow`),this},e.ctrlDeleteDir=function(e){hw(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify(`edit`),e===q?yw(t.parent.ends[q],t[q]).remove():yw(t[J],t.parent.ends[J]).remove(),t.insAtDirEnd(e,t.parent),t[q].siblingDeleted&&t[q].siblingDeleted(t.options,J),t[J].siblingDeleted&&t[J].siblingDeleted(t.options,q),t.parent.bubble(`reflow`),this)},e.backspace=function(){return this.deleteDir(q)},e.deleteForward=function(){return this.deleteDir(J)},this.onNotify(function(e){e!==`select`&&this.endSelection()}),e.selectDir=function(e){var t=this.notify(`select`).cursor,n=t.selection;hw(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(q)},e.selectRight=function(){return this.selectDir(J)}});var Rw=/[\\]{2,}/gm,zw=(function(){function e(e){var t=Hw();return e.adopt(t,0,0),t}function t(e){for(var t=e[0]||Hw(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[J],0);return t}var n=X.string,r=X.regex,i=X.letter,a=X.any,o=X.optWhitespace,s=X.succeed,c=X.fail,l=i.map(function(e){return Zw(e)}),u=r(/^[^${}\\_^]/).map(function(e){return Q(e)}),d=r(/^\\not\\[a-z]+/).then(function(e){return xw[e]&&xw[e]().parser()||c(`unknown compound command: `+e)}),f=r(/^[^\\a-eg-zA-Z]/).or(n(`\\`).then(r(/^begin\{.?matrix\}/).or(r(/^[a-z]+/i)).or(r(/^\s+/).result(` `)).or(a))).then(function(e){e=e.replace(/^begin\{(.?matrix)\}$/,`$1`);var t=Y[e];return t?t(e).parser():c(`unknown command: \\`+e)}),p=d.or(f).or(l).or(u),m=n(`{`).then(function(){return g}).skip(n(`}`)),h=o.then(m.or(p.map(e))),g=h.many().map(t).skip(o),_=n(`[`).then(h.then(function(e){return e.join(`latex`)===`]`?c():s(e)}).many().map(t).skip(o)).skip(n(`]`)),v=g;return v.block=h,v.optBlock=_,v})();ww.open(function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,`$1`)},e.parseLatex=function(e){return zw.parse(e).postOrder(`finalizeTree`,Ew.p).join(`latex`).trim()},Dw.maxDepth=function(e){return typeof e==`number`?e:iw},e.writeLatex=function(e){var t=this.notify(`edit`).cursor,n=X.all,r=X.eof,i=zw.skip(r).or(n.result(!1)).parse(e);return i&&!i.isEmpty()&&i.prepareInsertionAt(t)&&(i.children().adopt(t.parent,t[q],t[J]),i.jQize().insertBefore(t.jQ),t[q]=i.ends[J],i.finalizeInsert(t.options,t),i.ends[J][J].siblingCreated&&i.ends[J][J].siblingCreated(t.options,q),i.ends[q][q].siblingCreated&&i.ends[q][q].siblingCreated(t.options,J),t.parent.bubble(`reflow`)),this},e.renderLatexMath=function(e){e&&e.replace&&(e=e.replace(Rw,`\\`));var t=this.root,n=this.cursor;n.options;var r=t.jQ,i=X.all,a=X.eof,o=zw.skip(a).or(i.result(!1)).parse(e);if(t.eachChild(`postOrder`,`dispose`),t.ends[q]=t.ends[J]=0,o&&o.prepareInsertionAt(n)){o.children().adopt(t,0,0);var s=o.join(`html`);r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)}else r.empty();delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild(`postOrder`,`dispose`),t.ends[q]=t.ends[J]=0,delete n.selection,n.show().insAtRightEnd(t);var r=X.regex,i=X.string,a=X.eof,o=X.all,s=i(`$`).then(zw).skip(i(`$`).or(a)).map(function(e){var t=qw(n);t.createBlocks();var r=t.ends[q];return e.children().adopt(r,0,0),t}),c=i(`\\$`).result(`$`).or(r(/^[^$]/)).map(Q),l=s.or(c).many().skip(a).or(o.result(!1)).parse(e);if(l){for(var u=0;u<l.length;u+=1)l[u].adopt(t,t.ends[J],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}}),ww.open(function(e){Ew.p.ignoreNextMousedown=lw,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind(`mousedown.mathquill`,function(t){var n=W(t.target).closest(`.mq-root-block`),r=_w.byId[n.attr(ow)||e.attr(ow)].controller,i=r.cursor;i.blink;var a=r.textareaSpan,o=r.textarea;if(t.preventDefault(),t.target.unselectable=!0,i.options.ignoreNextMousedown(t))return;i.options.ignoreNextMousedown=lw;function s(e){i.anticursor||i.startSelection(),r.seek(W(e.target),e.pageX,e.pageY).cursor.select(),e.target&&W(e.target.ownerDocument).unbind(`mousemove`,c)}function c(e){return delete e.target,s(e)}function l(e){!i.selection&&!r.editable&&a.detach(),n.unbind(`mousemove`,s),W(e.target.ownerDocument).unbind(`mousemove`,c).unbind(`mouseup`,l)}if(a.parent().length===0)return!1;r.blurred&&(r.editable||n.prepend(a),document.body.focus(),o.focus()),t.preventDefault(),t.target.unselectable=!0,i.show(),r.seek(W(t.target),t.pageX,t.pageY).cursor.startSelection(),n.mousemove(s),W(t.target.ownerDocument).mousemove(c).mouseup(l)})}}),ww.open(function(e){e.seek=function(e,t,n){var r=this.notify(`select`).cursor;if(e){var i=e.attr(ow)||e.attr(aw);if(!i){var a=e.parent();i=a.attr(ow)||a.attr(aw)}}var o=i&&_w.byId[i]?_w.byId[i]:this.root;return r.clearSelection().show(),o.seek(t,r),this.scrollHoriz(),this}}),ww.open(function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=this.root.jQ[0].getBoundingClientRect();if(t){var r=t.jQ[0].getBoundingClientRect(),i=r.left-(n.left+20),a=r.right-(n.right-20);if(t.ends[q]===e[J])if(i<0)var o=i;else if(a>0)if(r.left-a<n.left+20)var o=i;else var o=a;else return;else if(a>0)var o=a;else if(i<0)if(r.right-i>n.right-20)var o=a;else var o=i;else return}else{var s=e.jQ[0].getBoundingClientRect().left;if(s>n.right-20)var o=s-(n.right-20);else if(s<n.left+20)var o=s-(n.left+20);else return}this.root.jQ.stop&&typeof this.root.jQ.stop==`function`&&this.root.jQ.stop().animate({scrollLeft:`+=`+o},100)}}),ww.open(function(e){Ew.p.substituteTextarea=function(){return W(`<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />`)[0]},e.createTextarea=function(){var e=this.textareaSpan=W(`<span class="mq-textarea"></span>`),t=this.options.substituteTextarea();if(!t.nodeType)throw`substituteTextarea() must return a DOM element, got `+t;t=this.textarea=W(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;dT(e.container[0]),e.textareaSelectionTimeout===iw&&(e.textareaSelectionTimeout=setTimeout(function(){e.setTextareaSelection()}))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=iw;var e=``;this.cursor.selection&&(e=this.cursor.selection.join(`latex`),this.options.statelessClipboard&&(e=`$`+e+`$`)),this.selectFn(e)},e.staticMathTextareaEvents=function(){var e=this;e.root;var t=e.cursor,n=e.textarea,r=e.textareaSpan;this.container.prepend(rw(`<span class="mq-selectable">`).text(`$`+e.exportLatex()+`$`)),e.blurred=!0,n.bind(`cut paste`,!1).bind(`copy`,function(){e.setTextareaSelection()}).focus(function(){e.blurred=!1}).blur(function(){t.selection&&t.selection.clear(),setTimeout(i)});function i(){r.detach(),e.blurred=!0}e.selectFn=function(e){n.val(e),e&&n.select()}},Ew.p.substituteKeyboardEvents=Lw,e.editablesTextareaEvents=function(){var e=this,t=e.textarea,n=e.textareaSpan,r=this.options.substituteKeyboardEvents(t,this);this.selectFn=function(e){r.select(e)},this.container.prepend(n),this.focusBlurEvents()},e.typedText=function(e){if(e===`
196
- `)return this.handle(`enter`);var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout(function(){e.notify(`edit`),t.parent.bubble(`reflow`)})},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e=e.slice(0,1)===`$`&&e.slice(-1)===`$`?e.slice(1,-1):`\\text{`+e+`}`),this.writeLatex(e).cursor.show()}});var Bw=K(_w,function(e,t){e.finalizeInsert=function(e,t){var n=this;n.postOrder(`finalizeTree`,e),n.postOrder(`contactWeld`,t),n.postOrder(`blur`),n.postOrder(`reflow`),n[J].siblingCreated&&n[J].siblingCreated(e,q),n[q].siblingCreated&&n[q].siblingCreated(e,J),n.bubble(`reflow`)},e.prepareInsertionAt=function(e){var t=e.options.maxDepth;if(t!==iw){var n=e.depth();if(n>t)return!1;this.removeNodesDeeperThan(t-n)}return!0},e.removeNodesDeeperThan=function(e){for(var t=0,n=[[this,t]],r;n.length;)r=n.shift(),r[0].children().each(function(i){var a=+(i instanceof Hw);t=r[1]+a,t<=e?n.push([i,t]):(a?i.children():i).remove()})}}),Z=K(Bw,function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||=e,n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,function(e,t){return e&&t.isEmpty()})},e.parser=function(){var e=zw.block,t=this;return e.times(t.numBlocks()).map(function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[J],0);return t})},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[q],0,0),r.jQ.appendTo(n.ends[q].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){for(var e=this,t=e.numBlocks(),n=e.blocks=Array(t),r=0;r<t;r+=1)(n[r]=Hw()).adopt(e,e.ends[J],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[q],function(e,t){return e.isEmpty()?e:t}))},e.moveTowards=function(e,t,n){var r=n&&this[n+`Into`];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return Cw(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[q]=e.jQ.offset().left,t[J]=t[q]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[q])return t.insLeftOf(r);if(e>i[J])return t.insRightOf(r);var a=i[q];r.eachChild(function(o){var s=n(o);if(e<s[q])return e-a<s[q]-e?o[q]?t.insAtRightEnd(o[q]):t.insLeftOf(r):t.insAtLeftEnd(o),!1;if(e>s[J])o[J]?a=s[J]:i[J]-e<e-s[J]?t.insRightOf(r):t.insAtRightEnd(o);else return o.seek(e,t),!1})},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this,t=e.blocks,n=` mathquill-command-id=`+e.id,r=e.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);mw(`no unmatched angle brackets`,r.join(``)===this.htmlTemplate);for(var i=0,a=r[0];a;i+=1,a=r[i])if(a.slice(-2)===`/>`)r[i]=a.slice(0,-2)+n+`/>`;else if(a.charAt(0)===`<`){mw(`not an unmatched top-level close tag`,a.charAt(1)!==`/`),r[i]=a.slice(0,-1)+n+`>`;var o=1;do i+=1,a=r[i],mw(`no missing close tags`,a),a.slice(0,2)===`</`?--o:a.charAt(0)===`<`&&a.slice(-2)!==`/>`&&(o+=1);while(o>0)}return r.join(``).replace(/>&(\d+)/g,function(e,n){return` mathquill-block-id=`+t[n].id+`>`+t[n].join(`html`)})},e.latex=function(){return this.foldChildren(this.ctrlSeq,function(e,t){return e+`{`+(t.latex()||` `)+`}`})},e.textTemplate=[``],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],function(n,r){t+=1;var i=r.text();return n&&e.textTemplate[t]===`(`&&i[0]===`(`&&i.slice(-1)===`)`?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||``)})}}),Vw=K(Z,function(e,t){e.init=function(e,n,r){r||=e&&e.length>1?e.slice(1):e,t.init.call(this,e,n,[r])},e.parser=function(){return X.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=lw,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=lw,e.isEmpty=function(){return!0}}),Q=K(Vw,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span>`+(n||e)+`</span>`)}}),$=K(Vw,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-binary-operator">`+n+`</span>`,r)}}),Hw=K(Bw,function(e,t){e.join=function(e){return this.foldChildren(``,function(t,n){return t+n[e]()})},e.html=function(){return this.join(`html`)},e.latex=function(){return this.join(`latex`)},e.text=function(){return this.ends[q]===this.ends[J]&&this.ends[q]!==0?this.ends[q].text():this.join(`text`)},e.keystroke=function(e,n,r){if(r.options.spaceBehavesLikeTab&&(e===`Spacebar`||e===`Shift-Spacebar`)){n.preventDefault(),r.escapeDir(e===`Shift-Spacebar`?q:J,e,n);return}return t.keystroke.apply(this,arguments)},e.moveOutOf=function(e,t,n){!(n&&this.parent[n+`Into`])&&this[e]?t.insAtDirEnd(-e,this[e]):t.insDirOf(e,this.parent)},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[J];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[q].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[q];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?Zw(e):/^\d$/.test(e)?Yw(e):t&&t.typingSlashWritesDivisionSymbol&&e===`/`?Y[`÷`](e):t&&t.typingAsteriskWritesTimesSymbol&&e===`*`?Y[`×`](e):(n=bw[e]||Y[e])?n(e):Q(e)},e.write=function(e,t){var n;if(e.tooDeep())return!1;n=this.chToCmd(t,e.options),e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass(`mq-hasCursor`),this.jQ.removeClass(`mq-empty`),this},e.blur=function(){return this.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.jQ.addClass(`mq-empty`),this}});Ew.p.mouseEvents=!0,Tw.StaticMath=function(e){return K(e.AbstractMathQuill,function(t,n){this.RootBlock=Hw,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,`mq-math-mode`),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField),t}})};var Uw=K(Hw,Iw);Tw.MathField=function(e){return K(e.EditableField,function(e,t){this.RootBlock=Uw,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=lw),t.__mathquillify.call(this,`mq-editable-field mq-math-mode`),delete this.__controller.root.reflow,this}})};var Ww=K(_w,function(e,t){e.ctrlSeq=`\\text`,e.replaces=function(e){e instanceof yw?this.replacedText=e.remove().jQ.text():typeof e==`string`&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[q]&&this.ends[q].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),n[J].siblingCreated&&n[J].siblingCreated(e.options,q),n[q].siblingCreated&&n[q].siblingCreated(e.options,J),n.bubble(`reflow`),e.insAtRightEnd(n),n.replacedText)for(var r=0;r<n.replacedText.length;r+=1)n.write(e,n.replacedText.charAt(r))},e.parser=function(){var e=this,t=X.string,n=X.regex;return X.optWhitespace.then(t(`{`)).then(n(/^[^}]*/)).skip(t(`}`)).map(function(t){return t.length===0?yw():(Gw(t).adopt(e,0,0),e)})},e.textContents=function(){return this.foldChildren(``,function(e,t){return e+t.text})},e.text=function(){return`"`+this.textContents()+`"`},e.latex=function(){var e=this.textContents();return e.length===0?``:`\\text{`+e.replace(/\\/g,`\\backslash `).replace(/[{}]/g,`\\$&`)+`}`},e.html=function(){return`<span class="mq-text-mode" mathquill-command-id=`+this.id+`>`+this.textContents()+`</span>`},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=Z.prototype.selectTowards,e.deleteTowards=Z.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),n!==`$`)e[q]?(e[q].appendText(n),this.bubble(`reflow`)):Gw(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),Q(`\\$`,`$`).createLeftOf(e);else if(!e[J])e.insRightOf(this);else if(!e[q])e.insLeftOf(this);else{var r=Ww(),i=this.ends[q];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i);a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a));for(var o=e-t.show().offset().left,s=o&&o<0?q:J,c=s;t[s]&&o*c>0;)t[s].moveTowards(s,t),c=o,o=e-t.offset().left;if(s*o<-s*c&&t[-s].moveTowards(-s,t),!t.anticursor)this.anticursorPosition=t[q]&&t[q].text.length;else if(t.anticursor.parent===this){var l=t[q]&&t[q].text.length;if(this.anticursorPosition===l)t.anticursor=gw.copy(t);else{if(this.anticursorPosition<l){var u=t[q].splitRight(this.anticursorPosition);t[q]=u}else var u=t[J].splitRight(this.anticursorPosition-l);t.anticursor=gw(this,u[q],u)}}},e.blur=function(e){Hw.prototype.blur.call(this),e&&(this.textContents()===``?(this.remove(),e[q]===this?e[q]=this[q]:e[J]===this&&(e[J]=this[J])):n(this))};function n(e){e.jQ[0].normalize();var t=e.jQ.contents().filter(function(e,t){return t.nodeType===3})[0];t||={data:``},mw(`only node in TextBlock span is Text node`,t.nodeType===3);var n=Gw(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}e.focus=Hw.prototype.focus}),Gw=K(_w,function(e,t){e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=W(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){hw(t),t===J?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=Gw(this.text.slice(e)).adopt(this.parent,this,this[J]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t};function n(e,t){return t.charAt(e===q?0:-1+t.length)}e.moveTowards=function(e,t){hw(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):Gw(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?e===J?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){hw(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=Gw(i).createDir(e,t);r[e]=a,t.insDirOf(e,a)}else{var o=this[-e];if(o)o.insTextAtDirEnd(i,e);else{var a=Gw(i).createDir(-e,t);a.jQ.insDirOf(-e,t.selection.jQ)}this.text.length===1&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}});Y.text=Y.textnormal=Y.textrm=Y.textup=Y.textmd=Ww;function Kw(e,t,n){return K(Ww,{ctrlSeq:e,htmlTemplate:`<`+t+` `+n+`>&0</`+t+`>`})}Y.em=Y.italic=Y.italics=Y.emph=Y.textit=Y.textsl=Kw(`\\textit`,`i`,`class="mq-text-mode"`),Y.strong=Y.bold=Y.textbf=Kw(`\\textbf`,`b`,`class="mq-text-mode"`),Y.sf=Y.textsf=Kw(`\\textsf`,`span`,`class="mq-sans-serif mq-text-mode"`),Y.tt=Y.texttt=Kw(`\\texttt`,`span`,`class="mq-monospace mq-text-mode"`),Y.textsc=Kw(`\\textsc`,`span`,`style="font-variant:small-caps" class="mq-text-mode"`),Y.uppercase=Kw(`\\uppercase`,`span`,`style="text-transform:uppercase" class="mq-text-mode"`),Y.lowercase=Kw(`\\lowercase`,`span`,`style="text-transform:lowercase" class="mq-text-mode"`);var qw=K(Z,function(e,t){e.init=function(e){t.init.call(this,`$`),this.cursor=e},e.htmlTemplate=`<span class="mq-math-mode">&0</span>`,e.createBlocks=function(){t.createBlocks.call(this),this.ends[q].cursor=this.cursor,this.ends[q].write=function(e,t){t===`$`?this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),Q(`\\$`,`$`).createLeftOf(e.show())):e[J]?e[q]?Hw.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent):Hw.prototype.write.call(this,e,t)}},e.latex=function(){return`$`+this.ends[q].latex()+`$`}}),Jw=K(Uw,function(e,t){e.keystroke=function(e){if(!(e===`Spacebar`||e===`Shift-Spacebar`))return t.keystroke.apply(this,arguments)},e.write=function(e,t){if(e.show().deleteSelection(),t===`$`)qw(e).createLeftOf(e);else{var n;t===`<`?n=`&lt;`:t===`>`&&(n=`&gt;`),Q(t,n).createLeftOf(e)}}});Tw.TextField=function(e){return K(e.EditableField,function(e,t){this.RootBlock=Jw,e.__mathquillify=function(){return t.__mathquillify.call(this,`mq-editable-field mq-text-mode`)},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}})},bw[`\\`]=K(Z,function(e,t){e.ctrlSeq=`\\`,e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate=`<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>`,e.textTemplate=[`\\`],e.createBlocks=function(){t.createBlocks.call(this),this.ends[q].focus=function(){return this.parent.jQ.addClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.removeClass(`mq-empty`),this},this.ends[q].blur=function(){return this.parent.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.addClass(`mq-empty`),this},this.ends[q].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?Q(t).createLeftOf(e):(this.parent.renderCommand(e),(t!==`\\`||!this.isEmpty())&&e.parent.write(e,t))},this.ends[q].keystroke=function(e,n,r){if(e===`Tab`||e===`Enter`||e===`Spacebar`){this.parent.renderCommand(r.cursor),n.preventDefault();return}return t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass(`mq-blur`).bind(`mousedown mousemove`,function(e){return W(e.target=n).trigger(e),!1}).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return`\\`+this.ends[q].latex()+` `},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[J]?e.insLeftOf(this[J]):e.insAtRightEnd(this.parent);var t=this.ends[q].latex();t||=` `;var n=Y[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):(n=Ww(),n.replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}}),Y[`∉`]=Y.notin=G($,`\\notin `,`&#8713;`),Y[`≅`]=Y.cong=G($,`\\cong `,`&#8773;`),Y[`≡`]=Y.equiv=G($,`\\equiv `,`&#8801;`),Y[`⊕`]=Y.oplus=G($,`\\oplus `,`&#8853;`),Y[`⊗`]=Y.otimes=G($,`\\otimes `,`&#8855;`),Y[`≠`]=Y.ne=Y.neq=G($,`\\ne `,`&ne;`),Y[`≇`]=Y.ncong=G($,`\\ncong `,`&ncong;`),Y[`∗`]=Y.ast=Y.star=Y.loast=Y.lowast=G($,`\\ast `,`&lowast;`),Y.therefor=Y.therefore=G($,`\\therefore `,`&there4;`),Y.cuz=Y.because=G($,`\\because `,`&#8757;`),Y.prop=Y.propto=G($,`\\propto `,`&prop;`),Y[`≈`]=Y.asymp=Y.approx=G($,`\\approx `,`&asymp;`),Y[`≉`]=Y.nasymp=Y.napprox=G($,`\\napprox `,`&nap;`),Y.isin=Y.in=G($,`\\in `,`&isin;`),Y.ni=Y.contains=G($,`\\ni `,`&ni;`),Y.notni=Y.niton=Y.notcontains=Y.doesnotcontain=xw[`\\not\\ni`]=G($,`\\not\\ni `,`&#8716;`),Y.sub=Y.subset=G($,`\\subset `,`&sub;`),Y.sup=Y.supset=Y.superset=G($,`\\supset `,`&sup;`),Y.nsub=Y.notsub=Y.nsubset=Y.notsubset=xw[`\\not\\subset`]=G($,`\\not\\subset `,`&#8836;`),Y.nsup=Y.notsup=Y.nsupset=Y.notsupset=Y.nsuperset=Y.notsuperset=xw[`\\not\\supset`]=G($,`\\not\\supset `,`&#8837;`),Y.sube=Y.subeq=Y.subsete=Y.subseteq=G($,`\\subseteq `,`&sube;`),Y.supe=Y.supeq=Y.supsete=Y.supseteq=Y.supersete=Y.superseteq=G($,`\\supseteq `,`&supe;`),Y.nsube=Y.nsubeq=Y.notsube=Y.notsubeq=Y.nsubsete=Y.nsubseteq=Y.notsubsete=Y.notsubseteq=xw[`\\not\\subseteq`]=G($,`\\not\\subseteq `,`&#8840;`),Y.nsupe=Y.nsupeq=Y.notsupe=Y.notsupeq=Y.nsupsete=Y.nsupseteq=Y.notsupsete=Y.notsupseteq=Y.nsupersete=Y.nsuperseteq=Y.notsupersete=Y.notsuperseteq=xw[`\\not\\supseteq`]=G($,`\\not\\supseteq `,`&#8841;`),Y.N=Y.naturals=Y.Naturals=G(Q,`\\mathbb{N}`,`&#8469;`),Y.P=Y.primes=Y.Primes=Y.projective=Y.Projective=Y.probability=Y.Probability=G(Q,`\\mathbb{P}`,`&#8473;`),Y.Z=Y.integers=Y.Integers=G(Q,`\\mathbb{Z}`,`&#8484;`),Y.Q=Y.rationals=Y.Rationals=G(Q,`\\mathbb{Q}`,`&#8474;`),Y.R=Y.reals=Y.Reals=G(Q,`\\mathbb{R}`,`&#8477;`),Y.C=Y.complex=Y.Complex=Y.complexes=Y.Complexes=Y.complexplane=Y.Complexplane=Y.ComplexPlane=G(Q,`\\mathbb{C}`,`&#8450;`),Y.H=Y.Hamiltonian=Y.quaternions=Y.Quaternions=G(Q,`\\mathbb{H}`,`&#8461;`),Y.quad=Y.emsp=G(Q,`\\quad `,` `),Y.qquad=G(Q,`\\qquad `,` `),Y.diamond=G(Q,`\\diamond `,`&#9671;`),Y.bigtriangleup=G(Q,`\\bigtriangleup `,`&#9651;`),Y.ominus=G(Q,`\\ominus `,`&#8854;`),Y.uplus=G(Q,`\\uplus `,`&#8846;`),Y.bigtriangledown=G(Q,`\\bigtriangledown `,`&#9661;`),Y.sqcap=G(Q,`\\sqcap `,`&#8851;`),Y.triangleleft=G(Q,`\\triangleleft `,`&#8882;`),Y.sqcup=G(Q,`\\sqcup `,`&#8852;`),Y.triangleright=G(Q,`\\triangleright `,`&#8883;`),Y.odot=Y.circledot=G(Q,`\\odot `,`&#8857;`),Y.bigcirc=G(Q,`\\bigcirc `,`&#9711;`),Y.dagger=G(Q,`\\dagger `,`&#0134;`),Y.ddagger=G(Q,`\\ddagger `,`&#135;`),Y.wr=G(Q,`\\wr `,`&#8768;`),Y.amalg=G(Q,`\\amalg `,`&#8720;`),Y.models=G(Q,`\\models `,`&#8872;`),Y.prec=G(Q,`\\prec `,`&#8826;`),Y.succ=G(Q,`\\succ `,`&#8827;`),Y.preceq=G(Q,`\\preceq `,`&#8828;`),Y.succeq=G(Q,`\\succeq `,`&#8829;`),Y.simeq=G(Q,`\\simeq `,`&#8771;`),Y.mid=G(Q,`\\mid `,`&#8739;`),Y.ll=G(Q,`\\ll `,`&#8810;`),Y.gg=G(Q,`\\gg `,`&#8811;`),Y.parallel=G(Q,`\\parallel `,`&#8741;`),Y.nparallel=G(Q,`\\nparallel `,`&#8742;`),Y.bowtie=G(Q,`\\bowtie `,`&#8904;`),Y.sqsubset=G(Q,`\\sqsubset `,`&#8847;`),Y.sqsupset=G(Q,`\\sqsupset `,`&#8848;`),Y.smile=G(Q,`\\smile `,`&#8995;`),Y.sqsubseteq=G(Q,`\\sqsubseteq `,`&#8849;`),Y.sqsupseteq=G(Q,`\\sqsupseteq `,`&#8850;`),Y.doteq=G(Q,`\\doteq `,`&#8784;`),Y.frown=G(Q,`\\frown `,`&#8994;`),Y.vdash=G(Q,`\\vdash `,`&#8870;`),Y.dashv=G(Q,`\\dashv `,`&#8867;`),Y.nless=G(Q,`\\nless `,`&#8814;`),Y.ngtr=G(Q,`\\ngtr `,`&#8815;`),Y.longleftarrow=G(Q,`\\longleftarrow `,`&#8592;`),Y.longrightarrow=G(Q,`\\longrightarrow `,`&#8594;`),Y.Longleftarrow=G(Q,`\\Longleftarrow `,`&#8656;`),Y.Longrightarrow=G(Q,`\\Longrightarrow `,`&#8658;`),Y.longleftrightarrow=G(Q,`\\longleftrightarrow `,`&#8596;`),Y.updownarrow=G(Q,`\\updownarrow `,`&#8597;`),Y.Longleftrightarrow=G(Q,`\\Longleftrightarrow `,`&#8660;`),Y.Updownarrow=G(Q,`\\Updownarrow `,`&#8661;`),Y.mapsto=G(Q,`\\mapsto `,`&#8614;`),Y.nearrow=G(Q,`\\nearrow `,`&#8599;`),Y.hookleftarrow=G(Q,`\\hookleftarrow `,`&#8617;`),Y.hookrightarrow=G(Q,`\\hookrightarrow `,`&#8618;`),Y.searrow=G(Q,`\\searrow `,`&#8600;`),Y.leftharpoonup=G(Q,`\\leftharpoonup `,`&#8636;`),Y.rightharpoonup=G(Q,`\\rightharpoonup `,`&#8640;`),Y.swarrow=G(Q,`\\swarrow `,`&#8601;`),Y.leftharpoondown=G(Q,`\\leftharpoondown `,`&#8637;`),Y.rightharpoondown=G(Q,`\\rightharpoondown `,`&#8641;`),Y.nwarrow=G(Q,`\\nwarrow `,`&#8598;`),Y.ldots=G(Q,`\\ldots `,`&#8230;`),Y.cdots=G(Q,`\\cdots `,`&#8943;`),Y.vdots=G(Q,`\\vdots `,`&#8942;`),Y.ddots=G(Q,`\\ddots `,`&#8945;`),Y.surd=G(Q,`\\surd `,`&#8730;`),Y.triangle=G(Q,`\\triangle `,`&#9651;`),Y.ell=G(Q,`\\ell `,`&#8467;`),Y.top=G(Q,`\\top `,`&#8868;`),Y.flat=G(Q,`\\flat `,`&#9837;`),Y.natural=G(Q,`\\natural `,`&#9838;`),Y.sharp=G(Q,`\\sharp `,`&#9839;`),Y.wp=G(Q,`\\wp `,`&#8472;`),Y.bot=G(Q,`\\bot `,`&#8869;`),Y.clubsuit=G(Q,`\\clubsuit `,`&#9827;`),Y.diamondsuit=G(Q,`\\diamondsuit `,`&#9826;`),Y.heartsuit=G(Q,`\\heartsuit `,`&#9825;`),Y.spadesuit=G(Q,`\\spadesuit `,`&#9824;`),Y.circledot=G(Q,`\\circledot `,`&#8857;`),Y.middot=G(Q,`\\middot `,`&middot;`),Y.dottedsquare=G(Q,`\\dottedsquare `,`&#11034;`),Y.square=G(Q,`\\square `,`&#11036;`),Y.rectangle=G(Q,`\\rectangle `,`&#9647;`),Y.oint=G(Q,`\\oint `,`&#8750;`),Y.bigcap=G(Q,`\\bigcap `,`&#8745;`),Y.bigcup=G(Q,`\\bigcup `,`&#8746;`),Y.bigsqcup=G(Q,`\\bigsqcup `,`&#8852;`),Y.bigvee=G(Q,`\\bigvee `,`&#8744;`),Y.bigwedge=G(Q,`\\bigwedge `,`&#8743;`),Y.bigodot=G(Q,`\\bigodot `,`&#8857;`),Y.bigotimes=G(Q,`\\bigotimes `,`&#8855;`),Y.bigoplus=G(Q,`\\bigoplus `,`&#8853;`),Y.biguplus=G(Q,`\\biguplus `,`&#8846;`),Y.lfloor=G(Q,`\\lfloor `,`&#8970;`),Y.rfloor=G(Q,`\\rfloor `,`&#8971;`),Y.lceil=G(Q,`\\lceil `,`&#8968;`),Y.rceil=G(Q,`\\rceil `,`&#8969;`),Y.opencurlybrace=Y.lbrace=G(Q,`\\lbrace `,`{`),Y.closecurlybrace=Y.rbrace=G(Q,`\\rbrace `,`}`),Y.lbrack=G(Q,`[`),Y.rbrack=G(Q,`]`),Y.mug=G(Q,`\\mug `,`µg`),Y.mus=G(Q,`\\mus `,`µs`),Y.mum=G(Q,`\\mum `,`µm`),Y.muL=G(Q,`\\muL `,`µL`),Y.slash=G(Q,`/`),Y.vert=G(Q,`|`),Y.perp=Y.perpendicular=G(Q,`\\perp `,`&perp;`),Y.nabla=Y.del=G(Q,`\\nabla `,`&nabla;`),Y.hbar=G(Q,`\\hbar `,`&#8463;`),Y.AA=Y.Angstrom=Y.angstrom=G(Q,`\\text\\AA `,`&#8491;`),Y.ring=Y.circ=Y.circle=G(Q,`\\circ `,`&#8728;`),Y.bull=Y.bullet=G(Q,`\\bullet `,`&bull;`),Y.setminus=Y.smallsetminus=G(Q,`\\setminus `,`&#8726;`),Y.not=Y[`¬`]=Y.neg=G(Q,`\\neg `,`&not;`),Y[`…`]=Y.dots=Y.ellip=Y.hellip=Y.ellipsis=Y.hellipsis=G(Q,`\\dots `,`&hellip;`),Y.converges=Y.darr=Y.dnarr=Y.dnarrow=Y.downarrow=G(Q,`\\downarrow `,`&darr;`),Y.dArr=Y.dnArr=Y.dnArrow=Y.Downarrow=G(Q,`\\Downarrow `,`&dArr;`),Y.diverges=Y.uarr=Y.uparrow=G(Q,`\\uparrow `,`&uarr;`),Y.uArr=Y.Uparrow=G(Q,`\\Uparrow `,`&uArr;`),Y.to=G($,`\\to `,`&rarr;`),Y.rarr=Y.rightarrow=G(Q,`\\rightarrow `,`&rarr;`),Y.implies=G($,`\\Rightarrow `,`&rArr;`),Y.rArr=Y.Rightarrow=G(Q,`\\Rightarrow `,`&rArr;`),Y.gets=G($,`\\gets `,`&larr;`),Y.larr=Y.leftarrow=G(Q,`\\leftarrow `,`&larr;`),Y.impliedby=G($,`\\Leftarrow `,`&lArr;`),Y.lArr=Y.Leftarrow=G(Q,`\\Leftarrow `,`&lArr;`),Y.harr=Y.lrarr=Y.leftrightarrow=G(Q,`\\leftrightarrow `,`&harr;`),Y.iff=G($,`\\Leftrightarrow `,`&hArr;`),Y.hArr=Y.lrArr=Y.Leftrightarrow=G(Q,`\\Leftrightarrow `,`&hArr;`),Y.Re=Y.Real=Y.real=G(Q,`\\Re `,`&real;`),Y.Im=Y.imag=Y.image=Y.imagin=Y.imaginary=Y.Imaginary=G(Q,`\\Im `,`&image;`),Y.part=Y.partial=G(Q,`\\partial `,`&part;`),Y.infty=Y.infin=Y.infinity=G(Q,`\\infty `,`&infin;`),Y.pounds=G(Q,`\\pounds `,`&pound;`),Y.alef=Y.alefsym=Y.aleph=Y.alephsym=G(Q,`\\aleph `,`&alefsym;`),Y.xist=Y.xists=Y.exist=Y.exists=G(Q,`\\exists `,`&exist;`),Y.nexists=Y.nexist=G(Q,`\\nexists `,`&#8708;`),Y.and=Y.land=Y.wedge=G($,`\\wedge `,`&and;`),Y.or=Y.lor=Y.vee=G($,`\\vee `,`&or;`),Y.o=Y.O=Y.empty=Y.emptyset=Y.oslash=Y.Oslash=Y.nothing=Y.varnothing=G($,`\\varnothing `,`&empty;`),Y.cup=Y.union=G($,`\\cup `,`&cup;`),Y.cap=Y.intersect=Y.intersection=G($,`\\cap `,`&cap;`),Y.deg=Y.degree=G(Q,`\\degree `,`&deg;`),Y.ang=Y.angle=G(Q,`\\angle `,`&ang;`),Y.measuredangle=G(Q,`\\measuredangle `,`m&ang;`);var Yw=K(Q,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[q]instanceof Xw&&e[q].isItalic!==!1||e[q]instanceof TT&&e[q][q]instanceof Xw&&e[q][q].isItalic!==!1)?(Y._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),Xw=K(Vw,function(e,t){e.init=function(e,n){t.init.call(this,e,`<var>`+(n||e)+`</var>`)},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?e[0]==`\\`?e=e.slice(1,e.length):e[e.length-1]==` `&&(e=e.slice(0,-1)):(this[q]&&!(this[q]instanceof Xw)&&!(this[q]instanceof $)&&this[q].ctrlSeq!==`\\ `&&(e=`*`+e),this[J]&&!(this[J]instanceof $)&&!(this[J]instanceof TT)&&(e+=`*`)),e}});Ew.p.autoCommands={_maxLength:0},Dw.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`autocommand "`+a+`" not minimum length of 2`;if(Y[a]===tT)throw`"`+a+`" is a built-in operator name`;n[a]=1,r=cw(r,a.length)}return n._maxLength=r,n};var Zw=K(Xw,function(e,t){e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i=``,a=this,o=0;a instanceof Zw&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[q],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(var o=1,a=this;o<i.length;o+=1,a=a[q]);return yw(a,this).remove(),e[q]=a[q],Y[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass(`mq-operator-name`,!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==q&&this[J]instanceof Zw||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(t._maxLength!==0){for(var r=this.letter,i=this[q];i instanceof Zw;i=i[q])r=i.letter+r;for(var a=this[J];a instanceof Zw;a=a[J])r+=a.letter;yw(i[J]||this.parent.ends[q],a[q]||this.parent.ends[J]).each(function(e){e.italicize(!0).jQ.removeClass(`mq-first mq-last mq-followed-by-supsub`),e.ctrlSeq=e.letter});outer:for(var o=0,s=i[J]||this.parent.ends[q];o<r.length;o+=1,s=s[J])for(var c=sw(t._maxLength,r.length-o);c>0;--c){var l=r.slice(o,o+c);if(t.hasOwnProperty(l)){for(var u=0,d=s;u<c;u+=1,d=d[J]){d.italicize(!1);var f=d}var p=Qw.hasOwnProperty(l);if(s.ctrlSeq=(p?`\\`:`\\operatorname{`)+s.ctrlSeq,f.ctrlSeq+=p?` `:`}`,eT.hasOwnProperty(l)&&f[q][q][q].jQ.addClass(`mq-last`),n(s[q])||s.jQ.addClass(`mq-first`),!n(f[J]))if(f[J]instanceof TT){var m=f[J];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass(`mq-after-operator-name`,!(m[J]instanceof PT))})()}else f.jQ.toggleClass(`mq-last`,!(f[J]instanceof PT));o+=c-1,s=f;continue outer}}}};function n(e){return!e||e instanceof $||e instanceof OT}}),Qw={},$w=Ew.p.autoOperatorNames={_maxLength:9},eT={limsup:1,liminf:1,projlim:1,injlim:1};(function(){for(var e=`arg deg det dim exp gcd hom inf ker lg ln log max min sup limsup liminf injlim projlim Pr`.split(` `),t=0;t<e.length;t+=1)Qw[e[t]]=$w[e[t]]=1;for(var n=`sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth`.split(` `),t=0;t<n.length;t+=1)Qw[n[t]]=1;for(var r=`sin cos tan sec cosec csc cotan cot ctg`.split(` `),t=0;t<r.length;t+=1)$w[r[t]]=$w[`arc`+r[t]]=$w[r[t]+`h`]=$w[`ar`+r[t]+`h`]=$w[`arc`+r[t]+`h`]=1;for(var i=`gcf hcf lcm proj span`.split(` `),t=0;t<i.length;t+=1)$w[i[t]]=1})(),Dw.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`"`+a+`" not minimum length of 2`;n[a]=1,r=cw(r,a.length)}return n._maxLength=r,n};var tT=K(Vw,function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)Zw(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=Hw(),n=0;n<e.length;n+=1)Zw(e.charAt(n)).adopt(t,t.ends[J],0);return X.succeed(t.children())}});for(var nT in $w)$w.hasOwnProperty(nT)&&(Y[nT]=tT);Y.operatorname=K(Z,function(e){e.createLeftOf=lw,e.numBlocks=function(){return 1},e.parser=function(){return zw.block.map(function(e){return e.children()})}}),Y.f=K(Zw,function(e,t){e.init=function(){Vw.p.init.call(this,this.letter=`f`,`<var class="mq-f">f</var>`)},e.italicize=function(e){return this.jQ.html(`f`).toggleClass(`mq-f`,e),t.italicize.apply(this,arguments)}}),Y[` `]=Y.space=G(Q,`\\ `,`&nbsp;`),Y[`'`]=Y.prime=G(Q,`'`,`&prime;`),Y[`″`]=Y.dprime=G(Q,`″`,`&Prime;`),Y[`"`]=Y.doublePrime=G(Q,`"`,`&Prime;`),Y.backslash=G(Q,`\\backslash `,`\\`),bw[`\\`]||=Y.backslash,Y.$=G(Q,`\\$`,`$`);var rT=K(Vw,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span class="mq-nonSymbola">`+(n||e)+`</span>`)}});Y[`@`]=rT,Y[`&`]=G(rT,`\\&`,`&amp;`),Y[`%`]=G(rT,`\\%`,`%`),Y.alpha=Y.beta=Y.gamma=Y.delta=Y.zeta=Y.eta=Y.theta=Y.iota=Y.kappa=Y.mu=Y.nu=Y.xi=Y.rho=Y.sigma=Y.tau=Y.chi=Y.psi=Y.omega=K(Xw,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),Y.phi=G(Xw,`\\phi `,`&#981;`),Y.phiv=Y.varphi=G(Xw,`\\varphi `,`&phi;`),Y.epsilon=G(Xw,`\\epsilon `,`&#1013;`),Y.epsiv=Y.varepsilon=G(Xw,`\\varepsilon `,`&epsilon;`),Y.piv=Y.varpi=G(Xw,`\\varpi `,`&piv;`),Y.sigmaf=Y.sigmav=Y.varsigma=G(Xw,`\\varsigma `,`&sigmaf;`),Y.thetav=Y.vartheta=Y.thetasym=G(Xw,`\\vartheta `,`&thetasym;`),Y.upsilon=Y.upsi=G(Xw,`\\upsilon `,`&upsilon;`),Y.gammad=Y.Gammad=Y.digamma=G(Xw,`\\digamma `,`&#989;`),Y.kappav=Y.varkappa=G(Xw,`\\varkappa `,`&#1008;`),Y.rhov=Y.varrho=G(Xw,`\\varrho `,`&#1009;`),Y.pi=Y.π=G(rT,`\\pi `,`&pi;`),Y.lambda=G(rT,`\\lambda `,`&lambda;`),Y.Upsilon=Y.Upsi=Y.upsih=Y.Upsih=G(Vw,`\\Upsilon `,`<var style="font-family: serif">&upsih;</var>`),Y.Gamma=Y.Delta=Y.Theta=Y.Lambda=Y.Xi=Y.Pi=Y.Sigma=Y.Phi=Y.Psi=Y.Omega=K(Q,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),Y.forall=Y[`∀`]=G(Q,`\\forall `,`&#8704;`);var iT=K(Z,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=zw.parse(this.latex);t.children().adopt(e.parent,e[q],e[J]),e[q]=t.ends[J],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[J][J].siblingCreated&&t.ends[J][J].siblingCreated(e.options,q),t.ends[q][q].siblingCreated&&t.ends[q][q].siblingCreated(e.options,J),e.parent.bubble(`reflow`)},e.parser=function(){var e=zw.parse(this.latex).children();return X.succeed(e)}});Y[`¹`]=G(iT,`^1`),Y[`²`]=G(iT,`^2`),Y[`³`]=G(iT,`^3`),Y[`¼`]=G(iT,`\\frac14`),Y[`½`]=G(iT,`\\frac12`),Y[`¾`]=G(iT,`\\frac34`);var aT=K($,function(e){e.init=Q.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){function n(e){if(e[q]){if(e[q]instanceof $||/^[,;:\(\[]$/.test(e[q].ctrlSeq))return``}else if(e.parent&&e.parent.parent&&e.parent.parent.isStyleBlock())return n(e.parent.parent);else return``;return`mq-binary-operator`}if(t!==J)return this.jQ[0].className=n(this),this}});Y[`+`]=G(aT,`+`,`+`),Y[`–`]=Y[`-`]=G(aT,`-`,`&minus;`),Y[`±`]=Y.pm=Y.plusmn=Y.plusminus=G(aT,`\\pm `,`&plusmn;`),Y.mp=Y.mnplus=Y.minusplus=G(aT,`\\mp `,`&#8723;`),bw[`*`]=Y.sdot=Y.cdot=G($,`\\cdot `,`&middot;`,`*`);var oT=K($,function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?`Strict`:``;t.init.call(this,e[`ctrlSeq`+r],e[`html`+r],e[`text`+r])},e.swap=function(e){this.strict=e;var t=e?`Strict`:``;this.ctrlSeq=this.data[`ctrlSeq`+t],this.jQ.html(this.data[`html`+t]),this.textTemplate=[this.data[`text`+t]]},e.deleteTowards=function(e,n){if(e===q&&!this.strict){this.swap(!0),this.bubble(`reflow`);return}t.deleteTowards.apply(this,arguments)}}),sT={ctrlSeq:`\\le `,html:`&le;`,text:`≤`,ctrlSeqStrict:`<`,htmlStrict:`&lt;`,textStrict:`<`},cT={ctrlSeq:`\\ge `,html:`&ge;`,text:`≥`,ctrlSeqStrict:`>`,htmlStrict:`&gt;`,textStrict:`>`};Y[`<`]=Y.lt=G(oT,sT,!0),Y[`>`]=Y.gt=G(oT,cT,!0),Y[`≤`]=Y.le=Y.leq=G(oT,sT,!1),Y[`≥`]=Y.ge=Y.geq=G(oT,cT,!1);var lT=K($,function(e,t){e.init=function(){t.init.call(this,`=`,`=`)},e.createLeftOf=function(e){if(e[q]instanceof oT&&e[q].strict){e[q].swap(!1),e[q].bubble(`reflow`);return}t.createLeftOf.apply(this,arguments)}});Y[`=`]=lT,Y[`×`]=Y.times=G($,`\\times `,`&times;`,`[x]`),Y[`÷`]=Y.div=Y.divide=Y.divides=G($,`\\div `,`&divide;`,`[/]`),bw[`~`]=Y.sim=G($,`\\sim `,`~`,`~`),bw[`≁`]=Y.nsim=G($,`\\nsim `,`≁`,`≁`),Y.complement=Y[`∁`]=G(Q,`\\complement `,`&#8705;`),Y.nexists=Y[`∄`]=G(Q,`\\nexists `,`&#8708;`),Y.sphericalangle=Y[`∢`]=G(Q,`\\sphericalangle `,`&#8738;`),Y.iint=Y[`∬`]=G(Q,`\\iint `,`&#8748;`),Y.iiint=Y[`∭`]=G(Q,`\\iiint `,`&#8749;`),Y.oiint=Y[`∯`]=G(Q,`\\oiint `,`&#8751;`),Y.oiiint=Y[`∰`]=G(Q,`\\oiiint `,`&#8752;`),Y.backsim=Y[`∽`]=G(Q,`\\backsim `,`&#8765;`),Y.backsimeq=Y[`⋍`]=G(Q,`\\backsimeq `,`&#8909;`),Y.eqsim=Y[`≂`]=G(Q,`\\eqsim `,`&#8770;`),Y.ncong=Y[`≇`]=G(Q,`\\ncong `,`&#8775;`),Y.approxeq=Y[`≊`]=G(Q,`\\approxeq `,`&#8778;`),Y.bumpeq=Y[`≏`]=G(Q,`\\bumpeq `,`&#8783;`),Y.Bumpeq=Y[`≎`]=G(Q,`\\Bumpeq `,`&#8782;`),Y.doteqdot=Y[`≑`]=G(Q,`\\doteqdot `,`&#8785;`),Y.fallingdotseq=Y[`≒`]=G(Q,`\\fallingdotseq `,`&#8786;`),Y.risingdotseq=Y[`≓`]=G(Q,`\\risingdotseq `,`&#8787;`),Y.eqcirc=Y[`≖`]=G(Q,`\\eqcirc `,`&#8790;`),Y.circeq=Y[`≗`]=G(Q,`\\circeq `,`&#8791;`),Y.triangleq=Y[`≜`]=G(Q,`\\triangleq `,`&#8796;`),Y.leqq=Y[`≦`]=G(Q,`\\leqq `,`&#8806;`),Y.geqq=Y[`≧`]=G(Q,`\\geqq `,`&#8807;`),Y.lneqq=Y[`≨`]=G(Q,`\\lneqq `,`&#8808;`),Y.gneqq=Y[`≩`]=G(Q,`\\gneqq `,`&#8809;`),Y.between=Y[`≬`]=G(Q,`\\between `,`&#8812;`),Y.nleq=Y[`≰`]=G(Q,`\\nleq `,`&#8816;`),Y.ngeq=Y[`≱`]=G(Q,`\\ngeq `,`&#8817;`),Y.lesssim=Y[`≲`]=G(Q,`\\lesssim `,`&#8818;`),Y.gtrsim=Y[`≳`]=G(Q,`\\gtrsim `,`&#8819;`),Y.lessgtr=Y[`≶`]=G(Q,`\\lessgtr `,`&#8822;`),Y.gtrless=Y[`≷`]=G(Q,`\\gtrless `,`&#8823;`),Y.preccurlyeq=Y[`≼`]=G(Q,`\\preccurlyeq `,`&#8828;`),Y.succcurlyeq=Y[`≽`]=G(Q,`\\succcurlyeq `,`&#8829;`),Y.precsim=Y[`≾`]=G(Q,`\\precsim `,`&#8830;`),Y.succsim=Y[`≿`]=G(Q,`\\succsim `,`&#8831;`),Y.nprec=Y[`⊀`]=G(Q,`\\nprec `,`&#8832;`),Y.nsucc=Y[`⊁`]=G(Q,`\\nsucc `,`&#8833;`),Y.subsetneq=Y[`⊊`]=G(Q,`\\subsetneq `,`&#8842;`),Y.supsetneq=Y[`⊋`]=G(Q,`\\supsetneq `,`&#8843;`),Y.vDash=Y[`⊨`]=G(Q,`\\vDash `,`&#8872;`),Y.Vdash=Y[`⊩`]=G(Q,`\\Vdash `,`&#8873;`),Y.Vvdash=Y[`⊪`]=G(Q,`\\Vvdash `,`&#8874;`),Y.VDash=Y[`⊫`]=G(Q,`\\VDash `,`&#8875;`),Y.nvdash=Y[`⊬`]=G(Q,`\\nvdash `,`&#8876;`),Y.nvDash=Y[`⊭`]=G(Q,`\\nvDash `,`&#8877;`),Y.nVdash=Y[`⊮`]=G(Q,`\\nVdash `,`&#8878;`),Y.nVDash=Y[`⊯`]=G(Q,`\\nVDash `,`&#8879;`),Y.vartriangleleft=Y[`⊲`]=G(Q,`\\vartriangleleft `,`&#8882;`),Y.vartriangleright=Y[`⊳`]=G(Q,`\\vartriangleright `,`&#8883;`),Y.trianglelefteq=Y[`⊴`]=G(Q,`\\trianglelefteq `,`&#8884;`),Y.trianglerighteq=Y[`⊵`]=G(Q,`\\trianglerighteq `,`&#8885;`),Y.multimap=Y[`⊸`]=G(Q,`\\multimap `,`&#8888;`),Y.Subset=Y[`⋐`]=G(Q,`\\Subset `,`&#8912;`),Y.Supset=Y[`⋑`]=G(Q,`\\Supset `,`&#8913;`),Y.Cap=Y[`⋒`]=G(Q,`\\Cap `,`&#8914;`),Y.Cup=Y[`⋓`]=G(Q,`\\Cup `,`&#8915;`),Y.pitchfork=Y[`⋔`]=G(Q,`\\pitchfork `,`&#8916;`),Y.lessdot=Y[`⋖`]=G(Q,`\\lessdot `,`&#8918;`),Y.gtrdot=Y[`⋗`]=G(Q,`\\gtrdot `,`&#8919;`),Y.lll=Y[`⋘`]=G(Q,`\\lll `,`&#8920;`),Y.ggg=Y[`⋙`]=G(Q,`\\ggg `,`&#8921;`),Y.lesseqgtr=Y[`⋚`]=G(Q,`\\lesseqgtr `,`&#8922;`),Y.gtreqless=Y[`⋛`]=G(Q,`\\gtreqless `,`&#8923;`),Y.curlyeqprec=Y[`⋞`]=G(Q,`\\curlyeqprec `,`&#8926;`),Y.curlyeqsucc=Y[`⋟`]=G(Q,`\\curlyeqsucc `,`&#8927;`),Y.nsim=Y[`≁`]=G(Q,`\\nsim `,`&#8769;`),Y.lnsim=Y[`⋦`]=G(Q,`\\lnsim `,`&#8934;`),Y.gnsim=Y[`⋧`]=G(Q,`\\gnsim `,`&#8935;`),Y.precnsim=Y[`⋨`]=G(Q,`\\precnsim `,`&#8936;`),Y.succnsim=Y[`⋩`]=G(Q,`\\succnsim `,`&#8937;`),Y.ntriangleleft=Y[`⋪`]=G(Q,`\\ntriangleleft `,`&#8938;`),Y.ntriangleright=Y[`⋫`]=G(Q,`\\ntriangleright `,`&#8939;`),Y.ntrianglelefteq=Y[`⋬`]=G(Q,`\\ntrianglelefteq `,`&#8940;`),Y.ntrianglerighteq=Y[`⋭`]=G(Q,`\\ntrianglerighteq `,`&#8941;`),Y.blacksquare=Y[`∎`]=G(Q,`\\blacksquare `,`&#8718;`),Y.colon=Y[`∶`]=G(Q,`\\colon `,`&#8758;`),Y.llcorner=Y[`∟`]=G(Q,`\\llcorner `,`&#8735;`),Y.dotplus=Y[`∔`]=G($,`\\dotplus `,`&#8724;`),Y.nmid=Y[`∤`]=G($,`
197
- mid `,`&#8740;`),Y.intercal=Y[`⊺`]=G($,`\\intercal `,`&#8890;`),Y.veebar=Y[`⊻`]=G($,`\\veebar `,`&#8891;`),Y.barwedge=Y[`⊼`]=G($,`\\barwedge `,`&#8892;`),Y.ltimes=Y[`⋉`]=G($,`\\ltimes `,`&#8905;`),Y.rtimes=Y[`⋊`]=G($,`\\rtimes `,`&#8906;`),Y.leftthreetimes=Y[`⋋`]=G($,`\\leftthreetimes `,`&#8907;`),Y.rightthreetimes=Y[`⋌`]=G($,`\\rightthreetimes `,`&#8908;`),Y.curlyvee=Y[`⋎`]=G($,`\\curlyvee `,`&#8910;`),Y.curlywedge=Y[`⋏`]=G($,`\\curlywedge `,`&#8911;`),Y.circledcirc=Y[`⊚`]=G($,`\\circledcirc `,`&#8858;`),Y.circledast=Y[`⊛`]=G($,`\\circledast `,`&#8859;`),Y.circleddash=Y[`⊝`]=G($,`\\circleddash `,`&#8861;`),Y.boxplus=Y[`⊞`]=G($,`\\boxplus `,`&#8862;`),Y.boxminus=Y[`⊟`]=G($,`\\boxminus `,`&#8863;`),Y.boxtimes=Y[`⊠`]=G($,`\\boxtimes `,`&#8864;`),Y.boxdot=Y[`⊡`]=G($,`\\boxdot `,`&#8865;`),Y[`∂`]=Y.partial,Y[`∃`]=Y.exists,Y[`∅`]=Y.varnothing,Y[`∆`]=Y.triangle,Y[`∇`]=Y.nabla,Y[`∈`]=Y.in,Y[`∊`]=Y.in,Y[`∋`]=Y.ni,Y[`∌`]=Y.notni,Y[`∍`]=Y.ni,Y[`∐`]=Y.amalg,Y[`−`]=Y[`-`],Y[`∓`]=Y.mp,Y[`∖`]=Y.setminus,Y[`∘`]=Y.circ,Y[`∙`]=Y.bullet,Y[`∝`]=Y.propto,Y[`∞`]=Y.infty,Y[`∠`]=Y.angle,Y[`∡`]=Y.measuredangle,Y[`∣`]=Y.divides,Y[`∥`]=Y.parallel,Y[`∦`]=Y.nparallel,Y[`∧`]=Y.wedge,Y[`∨`]=Y.vee,Y[`∩`]=Y.cap,Y[`∪`]=Y.cup,Y[`∮`]=Y.oint,Y[`∴`]=Y.therefore,Y[`∵`]=Y.because,Y[`∼`]=Y.sim,Y[`≀`]=Y.wr,Y[`≃`]=Y.simeq,Y[`≍`]=Y.asymp,Y[`≐`]=Y.doteq,Y[`≪`]=Y.ll,Y[`≫`]=Y.gg,Y[`≺`]=Y.prec,Y[`≻`]=Y.succ,Y[`⊂`]=Y.subset,Y[`⊃`]=Y.supset,Y[`⊆`]=Y.subseteq,Y[`⊇`]=Y.supseteq,Y[`⊈`]=Y.nsubseteq,Y[`⊉`]=Y.nsupseteq,Y[`⊏`]=Y.sqsubset,Y[`⊐`]=Y.sqsupset,Y[`⊓`]=Y.sqcap,Y[`⊔`]=Y.sqcup,Y[`⊖`]=Y.ominus,Y[`⊘`]=Y.oslash,Y[`⊙`]=Y.odot,Y[`⊢`]=Y.vdash,Y[`⊣`]=Y.dashv,Y[`⊤`]=Y.top,Y[`⊥`]=Y.bot,Y[`⊧`]=Y.models,Y[`⋀`]=Y.wedge,Y[`⋁`]=Y.vee,Y[`⋂`]=Y.cap,Y[`⋃`]=Y.cup,Y[`⋄`]=Y.diamond,Y[`⋅`]=Y.cdot,Y[`⋆`]=Y.star,Y[`⋈`]=Y.bowtie,Y[`⋮`]=Y.vdots,Y[`⋯`]=Y.cdots,Y[`⋱`]=Y.ddots;var uT,dT=lw,fT=document.createElement(`div`).style,pT={transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1},mT;for(var hT in pT)if(hT in fT){mT=hT;break}mT?uT=function(e,t,n){e.css(mT,`scale(`+t+`,`+n+`)`)}:`filter`in fT?(dT=function(e){e.className=e.className},uT=function(e,t,n){t/=1+(n-1)/2,e.css(`fontSize`,n+`em`),e.hasClass(`mq-matrixed-container`)||e.addClass(`mq-matrixed-container`).wrapInner(`<span class="mq-matrixed"></span>`);var r=e.children().css(`filter`,`progid:DXImageTransform.Microsoft.Matrix(M11=`+t+`,SizingMethod='auto expand')`);function i(){e.css(`marginRight`,(r.width()-1)*(t-1)/t+`px`)}i();var a=setInterval(i);W(window).load(function(){clearTimeout(a),i()})}):uT=function(e,t,n){e.css(`fontSize`,n+`em`)};var gT=K(Z,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`>&0</`+n+`>`)}}),_T=K(Z,function(e,t){e.init=function(e,n,r){this.args=arguments,this.htmlTemplate=`<`+n+` `+r+`><`+n+` class="mq-xarrow-over">&0</`+n+`><`+n+` class="mq-xarrow-under"></`+n+`></`+n+`>`,t.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`(`,`)`]},e.parser=function(){var e=this;return zw.optBlock.then(function(t){return zw.block.map(function(n){var r=vT.apply(null,e.args);return r.blocks=[t,n],t.adopt(r,0,0),n.adopt(r,t,0),r})}).or(t.parser.call(this))}}),vT=K(_T,function(e,t){e.init=function(e,t,n){this.htmlTemplate=`<`+t+` `+n+`><`+t+` class="mq-xarrow-over">&1</`+t+`><`+t+` class="mq-xarrow-under">&0</`+t+`></`+t+`>`,Z.prototype.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`[`,`](`,`)`]},e.latex=function(){return this.ctrlSeq+`[`+this.ends[q].latex()+`]{`+this.ends[J].latex()+`}`},e.finalizeTree=function(){this.downInto=this.ends[q].upOutOf=this.ends[J],this.upInto=this.ends[J].downOutOf=this.ends[q]}}),yT=function(e){var t=`<span class="`+e+`-inner-right">g</span><span class="`+e+`-inner-left">h</span>`;return K(Z,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`<span class="mq-empty-box">&0</span></`+i+`></`+i+`>`)}})},bT=K(Z,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`><span class="mq-longdiv-curve-border">)</span><span class="mq-longdiv-inner"><span class="mq-empty">&0</span></`+n+`></span>`)}}),xT=K(Z,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-row"><p>`+r+`</p><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td><td class="mq-empty"></td><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),ST=K(Z,function(e,t){e.init=function(e){t.init.call(this,e,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),CT=K(Z,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-col"><p>`+r+`</p></span><span class="matrix-edit-content-col"><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),wT=function(e,t){return K(Vw,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`</`+i+`></`+i+`>`)}})};Y.mathrm=G(gT,`\\mathrm`,`span`,`class="mq-roman mq-font"`),Y.mathit=G(gT,`\\mathit`,`i`,`class="mq-font"`),Y.mathbf=G(gT,`\\mathbf`,`b`,`class="mq-font"`),Y.mathsf=G(gT,`\\mathsf`,`span`,`class="mq-sans-serif mq-font"`),Y.mathtt=G(gT,`\\mathtt`,`span`,`class="mq-monospace mq-font"`),Y.underline=G(gT,`\\underline`,`span`,`class="mq-non-leaf mq-underline"`),Y.overline=Y.bar=G(yT(`mq-overline`),`\\overline`,`span`,`class="mq-non-leaf mq-overline"`),Y.longdiv=G(bT,`\\longdiv`,`span`,`class="mq-non-leaf mq-longdiv"`),Y.overrightarrow=G(yT(`mq-overarrow`),`\\overrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-right"`),Y.overleftarrow=G(yT(`mq-overarrow`),`\\overleftarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-left"`),Y.xleftarrow=G(_T,`\\xleftarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-left"`),Y.xrightarrow=G(_T,`\\xrightarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-right"`),Y.overleftrightarrow=G(gT,`\\overleftrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-both"`),Y.overarc=G(gT,`\\overarc`,`span`,`class="mq-non-leaf mq-overarc"`),Y.dot=K(Z,function(e,t){e.init=function(){t.init.call(this,`\\dot`,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),Y.addmatrixrow=G(xT,`\\addmatrixrow`,`span`,`+`),Y.addmatrixcol=G(CT,`\\addmatrixcol`,`span`,`+`),Y.ngtr=Y[`≯`]=G(wT(`mq-ngtr`,`&#8815;`),`\\ngtr `,`span`,`class="mq-non-leaf mq-ngtr"`),Y.nless=Y[`≮`]=G(wT(`mq-nless`,`&#8814;`),`\\nless `,`span`,`class="mq-non-leaf mq-nless"`),Y.dot=G(ST,`\\dot`),Y.parallelogram=G(wT(`mq-parallelogram`,`&#9649;`),`\\parallelogram `,`span`,`class="mq-non-leaf mq-parallelogram"`),Y.textcolor=K(Z,function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate=`<span class="mq-textcolor" style="color:`+e+`">&0</span>`},e.latex=function(){return`\\textcolor{`+this.color+`}{`+this.blocks[0].latex()+`}`},e.parser=function(){var e=this,n=X.optWhitespace,r=X.string,i=X.regex;return n.then(r(`{`)).then(i(/^[#\w\s.,()%-]*/)).skip(r(`}`)).then(function(n){return e.setColor(n),t.parser.call(e)})},e.isStyleBlock=function(){return!0}}),Y.class=K(Z,function(e,t){e.parser=function(){var e=this,n=X.string,r=X.regex;return X.optWhitespace.then(n(`{`)).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n(`}`)).then(function(n){return e.cls=n||``,e.htmlTemplate=`<span class="mq-class `+n+`">&0</span>`,t.parser.call(e)})},e.latex=function(){return`\\class{`+this.cls+`}{`+this.blocks[0].latex()+`}`},e.isStyleBlock=function(){return!0}});var TT=K(Z,function(e,t){e.ctrlSeq=`_{...}^{...}`,e.createLeftOf=function(e){if(!(!this.replacedFragment&&!e[q]&&e.options.supSubsRequireOperand))return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=q;t;t=t===q&&J)if(this[t]instanceof TT){for(var n=`sub`;n;n=n===`sub`&&`sup`){var r=this[n],i=this[t][n];if(r){if(!i)this[t].addBlock(r.disown());else if(r.isEmpty())var a=gw(i,0,i.ends[q]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var o=r.children().disown(),a=gw(i,o.ends[J],i.ends[q]);t===q?o.adopt(i,i.ends[J],0):o.adopt(i,0,i.ends[q])}this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[q]===this&&(t===J&&a?a[q]?e.insRightOf(a[q]):e.insAtLeftEnd(a.parent):e.insRightOf(this[t]));break}},Ew.p.charsThatBreakOutOfSupSub=``,e.finalizeTree=function(){this.ends[q].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if(t===`_`)return;var n=this.chToCmd(t,e.options);return n instanceof Vw?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[q]&&!e[J]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),Hw.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof Vw?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(q,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(n.length===1?n:`{`+(n||` `)+`}`):``}return e(`_`,this.sub)+e(`^`,this.sup)},e.addBlock=function(e){this.supsub===`sub`?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=W(`<span class="mq-sup"/>`).append(e.jQ.children()).attr(ow,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=W(`<span class="mq-sub"></span>`).append(e.jQ.children()).attr(ow,e.id).appendTo(this.jQ.removeClass(`mq-sup-only`)),this.jQ.append(`<span style="display:inline-block;width:0">&#8203;</span>`));for(var t=0;t<2;t+=1)(function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+`Into`],e[n][r+`OutOf`]=ET,delete e[n].deleteOutOf,t===`sub`&&W(e.jQ.addClass(`mq-sup-only`)[0].lastChild).remove(),this.remove()}})(this,`sub sup`.split(` `)[t],`sup sub`.split(` `)[t],`down up`.split(` `)[t])},e.reflow=function(){var e=this.jQ,t=e.prev();if(t.length){var n=e.children(`.mq-sup`);if(n.length){var r=parseInt(n.css(`font-size`)),i=n.offset().top+n.height()-t.offset().top-.7*r,a=parseInt(n.css(`margin-bottom`));n.css(`margin-bottom`,a+i)}}}});function ET(e){var t=this.parent,n=e;do{if(n[J])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}Y.subscript=Y._=K(TT,function(e,t){e.supsub=`sub`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&0</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`_`],e.finalizeTree=function(){this.downInto=this.sub=this.ends[q],this.sub.upOutOf=ET,t.finalizeTree.call(this)}}),Y.superscript=Y.supscript=Y[`^`]=K(TT,function(e,t){e.supsub=`sup`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`^`],e.finalizeTree=function(){this.upInto=this.sup=this.ends[J],this.sup.downOutOf=ET,t.finalizeTree.call(this)}});var DT=K(Z,function(e,t){e.parser=function(){for(var e=X.string,t=X.optWhitespace,n=X.succeed,r=zw.block,i=this,a=i.blocks=[Hw(),Hw()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[J],0);return t.then(e(`_`).or(e(`^`))).then(function(e){var t=a[e===`_`?0:1];return r.then(function(e){return e.children().adopt(t,t.ends[J],0),n(i)})}).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[q],this.upInto=this.ends[J],this.ends[q].upOutOf=this.ends[J],this.ends[J].downOutOf=this.ends[q]}}),OT=K(DT,function(e,t){e.init=function(e,t){var n=`<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>`+t+`</big><span class="mq-from"><span>&0</span></span></span>`;Vw.prototype.init.call(this,e,n)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[q].latex())+`^`+e(this.ends[J].latex())},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(Zw(`n`).createLeftOf(e),lT().createLeftOf(e))}});Y[`∑`]=Y.sum=Y.summation=G(OT,`\\sum `,`&sum;`),Y[`∏`]=Y.prod=Y.product=G(OT,`\\prod `,`&prod;`),Y.coprod=Y.coproduct=G(OT,`\\coprod `,`&#8720;`),Y[`∫`]=Y.int=Y.integral=K(OT,function(e,t){e.init=function(){Vw.prototype.init.call(this,`\\int `,`<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>`)},e.createLeftOf=Z.p.createLeftOf}),Y.lim=Y.limit=K(DT,function(e,t){e.init=function(){Vw.prototype.init.call(this,`\\lim `,`<span class="mq-lim mq-non-leaf"><span class="mq-un-italicized">lim</span><span class="mq-approaches"><span>&0</span></span></span>`)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[q].latex())}});var kT=Y.over=bw[`/`]=K(Y.frac=Y.dfrac=Y.cfrac=Y.fraction=K(Z,function(e,t){e.ctrlSeq=`\\frac`,e.htmlTemplate=`<span class="mq-fraction mq-non-leaf"><span class="mq-numerator"><span class="mq-empty-box">&0</span></span><span class="mq-denominator"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`(`,`)/(`,`)`],e.finalizeTree=function(){this.upInto=this.ends[J].upOutOf=this.ends[q],this.downInto=this.ends[q].downOutOf=this.ends[J]}}),function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[q];n&&!(n instanceof $||n instanceof(Y.text||lw)||n instanceof OT||n.ctrlSeq===`\\ `||/^[,;:]$/.test(n.ctrlSeq));)n=n[q];n instanceof OT&&n[J]instanceof TT&&(n=n[J],n[J]instanceof TT&&n[J].ctrlSeq!=n.ctrlSeq&&(n=n[J])),n!==e[q]&&!e.isTooDeep(1)&&(this.replaces(yw(n[J]||e.parent.ends[q],e[q])),e[q]=n)}t.createLeftOf.call(this,e)}});Y.underset=K(Z,function(e,t){e.ctrlSeq=`\\underset`,e.htmlTemplate=`<span class="mq-underset mq-overunder mq-non-leaf"><span class="mq-over">&1</span><span class="mq-under">&0</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[q].upOutOf=this.ends[J],this.upInto=this.ends[J].downOutOf=this.ends[q]}}),Y.overset=K(Z,function(e,t){e.ctrlSeq=`\\overset`,e.htmlTemplate=`<span class="mq-overset mq-overunder mq-non-leaf"><span class="mq-over">&0</span><span class="mq-under">&1</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[J].upOutOf=this.ends[q],this.upInto=this.ends[q].downOutOf=this.ends[J]}});var AT=Y.sqrt=Y[`√`]=K(Z,function(e,t){e.ctrlSeq=`\\sqrt`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt(`,`)`],e.parser=function(){return zw.optBlock.then(function(e){return zw.block.map(function(t){var n=jT();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[J].jQ.parent();uT(e.prev(),1,e.innerHeight()/+e.css(`fontSize`).slice(0,-2)-.1)}});Y.hat=K(Z,function(e,t){e.ctrlSeq=`\\hat`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>`,e.textTemplate=[`hat(`,`)`]});var jT=Y.nthroot=K(AT,function(e,t){e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">&0</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&1</span></span></span>`,e.textTemplate=[`sqrt[`,`](`,`)`],e.latex=function(){return`\\sqrt[`+this.ends[q].latex()+`]{`+this.ends[J].latex()+`}`}}),MT=K(Z,function(e,t){e.init=function(e,n,r){var i=`<span class="mq-non-leaf"><span class="mq-diacritic-above">`+n+`</span><span class="mq-diacritic-stem">&0</span></span>`;t.init.call(this,e,i,r)}});Y.vec=G(MT,`\\vec`,`&rarr;`,[`vec(`,`)`]),Y.tilde=G(MT,`\\tilde`,`~`,[`tilde(`,`)`]),Y.lrncuberoot=K(AT,function(e,t){e.ctrlSeq=`\\lrncuberoot`,e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">3</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt[3](`,`)`],e.latex=function(){return`\\sqrt[3]{`+this.ends[q].latex()+`}`}}),Y.abs=K(Z,function(e){e.ctrlSeq=`\\abs`,e.htmlTemplate=`<span class="mq-abs mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[`|`,`|`]}),Y.lrnplaceholder=K(Z,function(e,t){e.ctrlSeq=`\\lrnplaceholder`,e.htmlTemplate=`<span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[``],e.latex=function(){return this.ends[q].latex()}}),Y.lrnexponent=K(Z,function(e,t){e.ctrSeq=`\\lrnexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&1</span></span></span></span>`,e.textTemplate=[``,`**`],e.latex=function(){var e=this.ends[J].latex();return e.length>1?e=`{`+e+`}`:e.length===0&&(e=`{ }`),this.ends[q].latex()+`^`+e}}),Y.lrnsquaredexponent=K(Z,function(e,t){e.ctrSeq=`\\lrnsquaredexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">2</span></span></span></span>`,e.textTemplate=[``,`**2`],e.latex=function(){return this.ends[q].latex()+`^2`}}),Y.lrnsubscript=K(Z,function(e,t){e.ctrSeq=`\\lrnsubscript`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&nbsp;</span></span></span>`,e.textTemplate=[``,`_`],e.latex=function(){return this.ends[q].latex()+`_`+this.ends[J].latex()}});function NT(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(`:first`).add(this.jQ.children(`:last`)),this.contentjQ=this.jQ.children(`:eq(1)`)},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css(`fontSize`));uT(this.delimjQs,sw(1+.2*(e-1),1.2),1.2*e)}}var PT=K(K(Z,NT),function(e,t){e.init=function(e,n,r,i,a){t.init.call(this,`\\left`+i,iw,[n,r]),this.side=e,this.sides={},this.sides[q]={ch:n,ctrlSeq:i},this.sides[J]={ch:r,ctrlSeq:a}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-paren`+(this.side===J?` mq-ghost`:``)+`">`+this.sides[q].ch+`</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren`+(this.side===q?` mq-ghost`:``)+`">`+this.sides[J].ch+`</span></span>`,t.html.call(this)},e.latex=function(){return`\\left`+this.sides[q].ctrlSeq+this.ends[q].latex()+`\\right`+this.sides[J].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof PT&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||FT[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":`]`,"[":`)`}[this.sides[q].ch]===n.sides[J].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===q?0:1).removeClass(`mq-ghost`).html(this.sides[this.side].ch)},e.createLeftOf=function(e){if(!this.replacedFragment){var n=e.options;if(this.sides[q].ch===`|`)var r=this.matchBrack(n,J,e[J])||this.matchBrack(n,q,e[q])||this.matchBrack(n,0,e.parent.parent);else var r=this.matchBrack(n,-this.side,e[-this.side])||this.matchBrack(n,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&yw(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble(`reflow`)}else r=this,i=r.side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(yw(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===q?e.insAtLeftEnd(r.ends[q]):e.insRightOf(r)},e.placeCursor=lw,e.unwrap=function(){this.ends[q].children().disown().adopt(this.parent,this,this[J]).jQ.insertAfter(this.jQ),this.remove()},e.deleteSide=function(e,t,n){var r=this.parent,i=this[e],a=r.ends[e];if(e===this.side){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}var o=n.options,s=!this.side;if(this.side=-e,this.matchBrack(o,e,this.ends[q].ends[this.side])){this.closeOpposing(this.ends[q].ends[this.side]);var c=this.ends[q].ends[e];this.unwrap(),c.siblingCreated&&c.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(o,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else if(t&&s){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}else this.sides[e]={ch:FT[this.sides[this.side].ch],ctrlSeq:FT[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass(`mq-ghost`).eq(e===q?0:1).addClass(`mq-ghost`).html(this.sides[e].ch);if(i){var c=this.ends[q].ends[e];yw(i,a,-e).disown().withDirAdopt(-e,this.ends[q],c,0).jQ.insAtDirEnd(e,this.ends[q].jQ.removeClass(`mq-empty`)),c.siblingCreated&&c.siblingCreated(n.options,e),n.insDirOf(-e,i)}else t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[q])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[q].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(+(this.side===q)).removeClass(`mq-ghost`),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),FT={"(":`)`,")":`(`,"[":`]`,"]":`[`,"{":`}`,"}":`{`,"\\{":`\\}`,"\\}":`\\{`,"&lang;":`&rang;`,"&rang;":`&lang;`,"\\langle ":`\\rangle `,"\\rangle ":`\\langle `,"|":`|`,"\\lVert ":`\\rVert `,"\\rVert ":`\\lVert `};function IT(e,t){var t=t||e,n=FT[e],r=FT[t];bw[e]=G(PT,q,e,n,t,r),bw[n]=G(PT,J,e,n,t,r)}IT(`(`),IT(`[`),IT(`{`,`\\{`),Y.langle=G(PT,q,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),Y.rangle=G(PT,J,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),bw[`|`]=G(PT,q,`|`,`|`,`|`,`|`),Y.lVert=G(PT,q,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),Y.rVert=G(PT,J,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),Y.left=K(Z,function(e){e.parser=function(){var e=X.regex,t=X.string;X.succeed;var n=X.optWhitespace;return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then(function(r){var i=r.charAt(0)===`\\`?r.slice(1):r;return r==`\\langle`&&(i=`&lang;`,r+=` `),r==`\\lVert`&&(i=`&#8741;`,r+=` `),zw.then(function(a){return t(`\\right`).skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map(function(e){var t=e.charAt(0)===`\\`?e.slice(1):e;e==`\\rangle`&&(t=`&rang;`,e+=` `),e==`\\rVert`&&(t=`&#8741;`,e+=` `);var n=PT(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n})})})}}),Y.right=K(Z,function(e){e.parser=function(){return X.fail(`unmatched \\right`)}}),Y.choose=K(Y.binom=Y.binomial=K(K(Z,NT),function(e,t){e.ctrlSeq=`\\binom`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>`,e.textTemplate=[`choose(`,`,`,`)`]}),function(e){e.createLeftOf=kT.prototype.createLeftOf}),Y.editable=Y.MathQuillMathField=K(Z,function(e,t){e.ctrlSeq=`\\MathQuillMathField`,e.htmlTemplate=`<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>`,e.parser=function(){var e=this,n=X.string,r=X.regex,i=X.succeed;return n(`[`).then(r(/^[a-z][a-z0-9]*/i)).skip(n(`]`)).map(function(t){e.name=t}).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=ww(this.ends[q],this.jQ,e);t.KIND_OF_MQ=`MathField`,t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),Iw(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[q].controller))},e.latex=function(){return this.ends[q].latex()},e.text=function(){return this.ends[q].text()}});var LT=Y.embed=K(Vw,function(e,t){e.setOptions=function(e){function t(){return``}return this.text=e.text||t,this.htmlTemplate=e.htmlString||``,this.latex=e.latex||t,this},e.parser=function(){var e=this,t=X.string,n=X.regex,r=X.succeed;return t(`{`).then(n(/^[a-z][a-z0-9]*/i)).skip(t(`}`)).then(function(i){return t(`[`).then(n(/^[-\w\s]*/)).skip(t(`]`)).or(r()).map(function(t){return e.setOptions(kw[i](t))})})}});Y.MathQuillResponseContainer=K(Z,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainer`,e.htmlTemplate=`<span class="lrn-mq-response-container"><marker class="lrn-qe-keyboard-i-response"></marker><content>Response</content></span>`,e.latex=function(){return`\\MathQuillResponseContainer`},e.text=function(){return this.ends[q].text()}}),Y.MathQuillResponseContainerIcon=K(Z,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainerIcon`,e.htmlTemplate=`<span class="lrn-mq-response-container-icon"><span class="lrn-qe-keyboard-i-response"></span></span>`,e.latex=function(){return`\\MathQuillResponseContainerIcon`},e.text=function(){return this.ends[q].text()}});var RT=Y.matrix=K(Z,function(e,t){var n=K(Hw,function(e,t){e.init=function(e,n){return this.column=e,this.row=n,t.init.call(this)},e.keystroke=function(e,n,r){switch(e){case`Shift-Spacebar`:return n.preventDefault(),this.parent.insertColumn(this);case`Shift-Enter`:return this.parent.insertRow(this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,function(){return t.deleteOutOf.apply(r,i)})}}),r={column:`&`,row:`\\\\`};e.parentheses={left:null,right:null},e.maximum={rows:5,columns:5},e.defaults={rows:2,columns:2},e.ctrlSeq=`\\matrix`,e.createBlocks=function(){var e=this,t=e.blocks=[],r,i,a=0;this.htmlTemplate.replace(/&\d+/g,function(o,s){var c=e.htmlTemplate.substring(0,s).match(/<tr[^>]*>/gi).length-1;i=r===c?i+1:0,t[a]=n(i,c),t[a].adopt(e,e.ends[J],0),r=c,a++})},e.reflow=function(){var e=this.jQ.children(`table`),t=e.outerHeight()/+e.css(`fontSize`).slice(0,-2),n=this.jQ.children(`.mq-paren`);n.length&&uT(n,sw(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e=this.getMatrixName(),t=`\\begin{`+e+`}`,n,i,a;for(a=0;a<this.blocks.length;a++)n=this.blocks[a].row,i!==void 0&&(i===n?t+=r.column:t+=r.row),i=n,t+=this.blocks[a].latex();return t+=`\\end{`+e+`}`,t},e.createLeftOf=function(n){this.cursor=n;var r=Math.min(this.defaults.rows,this.maximum.rows),i=Math.min(this.defaults.columns,this.maximum.columns);this.defaultHtmlTemplate=this.defaultHtmlTemplate||this.generateHtmlTemplate(r,i),e.htmlTemplate=this.defaultHtmlTemplate,t.createLeftOf.call(this,n)},e.getMatrixName=function(){return this.ctrlSeq.replace(`\\`,``)},e.generateHtmlTemplate=function(e,t){var n=`<span class="mq-matrix mq-non-leaf">`+o(this.parentheses.left);n+=`<table class="mq-non-leaf">`,e=Math.min(e,this.maximum.rows),t=Math.min(t,this.maximum.columns);for(var r=0,i=0;i<e;i++){n+=`<tr>`;for(var a=0;a<t;a++)n+=`<td>&`+r+`</td>`,r++;n+=`</tr>`}return n+=`</table>`,n+=o(this.parentheses.right)+`</span>`,n;function o(e){return e?`<span class="mq-paren mq-scaled">`+e+`</span>`:``}},e.htmlTemplate=e.generateHtmlTemplate(1,1),e.parser=function(){var e=X.regex,t=this,i=this.getMatrixName(),a=RegExp(`^(.*?)\\\\end{`+i+`}`),o=RegExp(`\\\\end{`+i+`}`);return e(a).then(function(e){var i=e.replace(o,``),a=[],s=i.split(r.row),c=Math.min(s.length,t.maximum.rows),l=0,u,d;for(d=0;d<c;d++)u=s[d].split(r.column),l=Math.max(l,u.length);for(l=Math.min(l,t.maximum.columns),d=0;d<c;d++){u=s[d].split(r.column);for(var e=0;e<l;e++){var f=n(e,d);zw.parse(u[e]||` `).children().adopt(f,f.ends[J],0),a.push(f)}}t.htmlTemplate=t.generateHtmlTemplate(c,l),t.blocks=a;for(var d=0;d<a.length;d+=1)a[d].adopt(t,t.ends[J],0);return X.succeed(t)})},e.finalizeTree=function(){var e=this.jQ.find(`table`);e.length&&(this.relink(),e.removeClass(function(e,t){var n=t.match(/mq-rows-\d+/g);return n&&n.join(` `)||``}),e.addClass(`mq-rows-`+e.find(`tr`).length))},e.relink=function(){var e=this.jQ.find(`td`),t=_w.byId[e.first().attr(ow)],n=_w.byId[e.last().attr(ow)],r=e.eq(0).closest(`tr`),i=[];e.each(function(t){var n=_w.byId[W(this).attr(ow)],a=e.eq(t+1),o=W(this).closest(`tr`).next(`tr`),s=W(this).closest(`tr`).index(),c=W(this).index(),l;if(a.length){var u=_w.byId[a.attr(ow)];n[J]=u,u[q]=n}if(l=o.length?o.find(`td`).eq(c):r.find(`td`).eq(c+1),l.length){var d=_w.byId[l.attr(ow)];n.downOutOf=d,d.upOutOf=n}n.column=c,n.row=s,i.push(n)}),this.ends[q]=t,this.ends[J]=n,t&&t[q]&&delete t[q],n&&n[J]&&delete n[J],this.blocks=i},e.deleteCell=function(e){var t=e.jQ.closest(`tr`),n=e.jQ.index(),r=t.index(),i=t.find(`td`).not(e.jQ),a=this.jQ.find(`tr`).not(t).map(function(){return W(this).find(`td`)[n]}),o=this.jQ.find(`td`).length===1,s;function c(){return _w.byId[W(this).attr(ow)].isEmpty()}return i.filter(c).length===i.length&&a.length&&(i.remove(),e.jQ.remove(),t.remove(),this.finalizeTree()),a.filter(c).length===a.length&&i.length&&(a.remove(),e.jQ.remove(),this.finalizeTree()),o||(r=Math.min(r,this.jQ.find(`tr`).length-1),n=Math.min(n,this.jQ.find(`tr`).eq(r).find(`td`).length-1),s=_w.byId[this.jQ.find(`tr`).eq(r).find(`td`).eq(n).attr(ow)]),s},e.addRow=function(e){if(!(this.jQ.find(`tr`).length>=this.maximum.rows)){for(var t=e.find(`td`).length,r=W(`<tr></tr>`),i,a,o=0;o<t;o++)i=n(),i.parent=this,i.jQ=W(`<td class="mq-empty">`).attr(ow,i.id),r.append(i.jQ),a||=i;return r.insertAfter(e),a}},e.addColumn=function(e){if(!(e.closest(`tr`).find(`td`).length>=this.maximum.columns)){var t=e.index(),r=e.closest(`tr`).index(),i=this,a,o=[];return this.jQ.find(`tr`).each(function(){a=n(),a.parent=i,a.jQ=W(`<td class="mq-empty">`).attr(ow,a.id),a.jQ.insertAfter(W(this).find(`td`).eq(t)),o.push(a)}),o[r]}},e.insertColumn=function(e){newBlock=this.addColumn(e.jQ),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.insertRow=function(e){newBlock=this.addRow(e.jQ.closest(`tr`)),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.backspace=function(e,t,n,r){if(e.isEmpty()){var i=this.deleteCell(e);i?n.insAtRightEnd(i):(r(),this.finalizeTree()),this.bubble(`edited`)}}});Y.pmatrix=K(RT,function(e,t){e.ctrlSeq=`\\pmatrix`,e.parentheses={left:`(`,right:`)`}}),Y.bmatrix=K(RT,function(e,t){e.ctrlSeq=`\\bmatrix`,e.parentheses={left:`[`,right:`]`}}),Y.Bmatrix=K(RT,function(e,t){e.ctrlSeq=`\\Bmatrix`,e.parentheses={left:`{`,right:`}`}}),Y.vmatrix=K(RT,function(e,t){e.ctrlSeq=`\\vmatrix`,e.parentheses={left:`|`,right:`|`}}),Y.Vmatrix=K(RT,function(e,t){e.ctrlSeq=`\\Vmatrix`,e.parentheses={left:`‖`,right:`‖`}});var zT=Pw(3);for(var BT in zT)(function(e,t){typeof t==`function`?(jw[e]=function(){return Aw(),t.apply(this,arguments)},jw[e].prototype=t.prototype):jw[e]=t})(BT,zT[BT]);var VT=function(e){e.registerEmbed(`newLine`,()=>({htmlString:`<div class="newLine"></div>`,text:()=>`testText`,latex:()=>`\\embed{newLine}[]`}))},HT;typeof window<`u`&&(HT=jw.getInterface(3),HT&&HT.registerEmbed&&VT(HT));function UT(e,t){!HT||!HT.registerEmbed||HT.registerEmbed(e,t)}function WT(e,t,n){if(!(!HT||!e))return t!=null&&(e.textContent=t),HT.StaticMath(e,n)}var GT=e=>`&.mq-math-mode ${e}, & .mq-math-mode ${e}`,KT={"&.mq-editable-field .mq-cursor, & .mq-editable-field .mq-cursor":{borderLeftColor:`currentColor`},"&.mq-editable-field:not(.mq-focused), & .mq-editable-field:not(.mq-focused)":{borderColor:Q_()},[[`.mq-overline .mq-overline-inner`,`.mq-overarrow`,`.mq-overarrow .mq-overarrow-inner`,`.mq-overleftrightarrow .mq-overleftrightarrow-inner`,`.mq-overarc`,`.mq-longdiv .mq-longdiv-inner`].map(GT).join(`, `)]:{borderTopColor:`currentColor`},[[`.mq-underline`,`.mq-xarrow .mq-xarrow-over`].map(GT).join(`, `)]:{borderBottomColor:`currentColor`},[GT(`.mq-abs`)]:{borderLeftColor:`currentColor`,borderRightColor:`currentColor`},[GT(`.mq-matrix td.mq-empty`)]:{borderColor:`currentColor`}},qT={fontFamily:`MJXZERO, MJXTEX !important`,"-webkit-font-smoothing":`antialiased !important`,"& .mq-math-mode > span > var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode span var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode .mq-nonSymbola":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode > span > var.mq-operator-name":{fontFamily:`MJXZERO, MJXTEX !important`}},JT={"& .mq-longdiv-inner":{marginTop:`-1px`,marginLeft:`5px !important;`,"& > .mq-empty":{padding:`0 !important`,marginLeft:`0px !important`,marginTop:`2px`}},"& .mq-math-mode .mq-longdiv":{display:`inline-flex !important`}},YT={"& *":{...qT,...JT,"& .mq-math-mode .mq-sqrt-prefix":{top:`0 !important`},"& .mq-math-mode .mq-empty":{padding:`9px 1px !important`},"& .mq-math-mode .mq-longdiv-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-supsub":{fontSize:`70.7% !important`},"& .mq-math-mode .mq-sqrt-stem":{marginTop:`-5px`,paddingTop:`4px`},"& .mq-math-mode .mq-paren":{verticalAlign:`middle !important`},"& .mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-overline .mq-overline-inner .mq-empty ":{padding:`0 !important`}}},XT=Gh(`pie-lib:math-input:mq:static`),ZT=/\\MathQuillMathField\[r\d*\]\{(.*?)\}/g,QT=/ /g;function $T(e=``){return e.replace(QT,``)}function eE(e){let t=0;for(let n=0;n<(e||``).length;n++)e[n]===`{`&&t++;return t}var tE=I(`span`)(KT),nE=class extends N.Component{static propTypes={latex:O.string.isRequired,onFocus:O.func,onBlur:O.func,className:O.string,getFieldName:O.func,onSubFieldChange:O.func,onSubFieldFocus:O.func,setInput:O.func,language:O.string};static defaultProps={getFieldName:()=>{}};constructor(e){super(e),this.state={announcement:``,previousLatex:``,inputSource:null,isDeleteKeyPressed:!1},this.inputRef=N.createRef()}componentDidMount(){this.update(),vm(),this.createLiveRegion(),this.addEventListeners()}componentDidUpdate(){this.update(),vm()}componentWillUnmount(){this.removeLiveRegion(),this.removeEventListeners()}createLiveRegion=()=>{this.liveRegion=document.createElement(`div`),this.liveRegion.style.position=`absolute`,this.liveRegion.style.width=`1px`,this.liveRegion.style.height=`1px`,this.liveRegion.style.marginTop=`-1px`,this.liveRegion.style.clip=`rect(1px, 1px, 1px, 1px)`,this.liveRegion.style.overflow=`hidden`,this.liveRegion.setAttribute(`aria-live`,`polite`),this.liveRegion.setAttribute(`aria-atomic`,`true`),document.body.appendChild(this.liveRegion)};addEventListeners=()=>{let e=this.inputRef.current;e&&(e.addEventListener(`keydown`,this.handleKeyDown),e.addEventListener(`click`,this.handleMathKeyboardClick))};removeEventListeners=()=>{let e=this.inputRef.current;e&&(e.removeEventListener(`keydown`,this.handleKeyDown),e.removeEventListener(`click`,this.handleMathKeyboardClick))};removeLiveRegion=()=>{this.liveRegion&&=(document.body.removeChild(this.liveRegion),null)};handleKeyDown=e=>{(e?.key===`Backspace`||e?.key===`Delete`)&&this.setState({isDeleteKeyPressed:!0}),this.setState({inputSource:`keyboard`})};handleMathKeyboardClick=()=>{this.setState({inputSource:`mathKeyboard`})};onInputEdit=e=>{if(!this.mathField||this._isProgrammaticUpdate)return;let t=this.props.getFieldName(e,this.mathField.innerFields);if(this.props.onSubFieldChange){let n=e.latex().match(/[0-9]\\ \\frac\{[^\{]*\}\{ \}/);if(this.inputRef?.current&&n&&n?.length)try{e.__controller.cursor.insLeftOf(e.__controller.cursor.parent[-1].parent),e.el().dispatchEvent(new KeyboardEvent(`keydown`,{keyCode:8}))}catch(e){console.error(e.toString())}else this.props.onSubFieldChange(t,e.latex())}this.announceLatexConversion(e.latex())};announceLatexConversion=e=>{if(!this.state){console.error(`State is not initialized`);return}let{previousLatex:t,inputSource:n,isDeleteKeyPressed:r}=this.state,i=`Converted to math symbol`;if(n===`keyboard`&&!r)if(eE(e)>eE(t))this.announceMessage(i);else try{this.mathField.parseLatex(t),this.mathField.parseLatex(e),e==t&&this.announceMessage(i)}catch(e){console.warn(`Error parsing latex:`,e.message),console.warn(e)}(this.state.previousLatex!==e||this.state.isDeleteKeyPressed)&&this.setState({previousLatex:e,isDeleteKeyPressed:!1})};announceMessage=e=>{this.setState({previousLatex:``}),this.liveRegion&&(this.liveRegion.textContent=e,setTimeout(()=>{this.liveRegion.textContent=``},500))};update=()=>{if(!HT)throw Error(`MQ is not defined - but component has mounted?`);this.mathField||=HT.StaticMath(this.inputRef?.current,{handlers:{edit:this.onInputEdit.bind(this)}});try{this._isProgrammaticUpdate=!0,this.mathField.parseLatex(this.props.latex),this.mathField.latex(this.props.latex)}catch{this.mathField.latex(`\\MathQuillMathField[r1]{}`)}finally{this._isProgrammaticUpdate=!1}ew(this.inputRef?.current,this.props.language)};blur=()=>{XT(`blur mathfield`),this.mathField.blur()};focus=()=>{XT(`focus mathfield...`),this.mathField.focus()};shouldComponentUpdate(e){try{let t=$T(this.mathField.parseLatex(e.latex)),n=(e.latex.match(ZT)||[]).length,r=t!==$T(this.mathField.latex().trim())||n!==Object.keys(this.mathField.innerFields).length/2;return XT(`[shouldComponentUpdate] `,r),r}catch(e){return console.warn(`Error parsing latex:`,e.message,`skip update`),console.warn(e),!1}}onFocus=e=>{try{let t=e.target.parentElement.nextSibling,n=parseInt(t.getAttribute(`mathquill-block-id`),10);n||=(t=t.parentElement,parseInt(t.getAttribute(`mathquill-block-id`),10));let r=this.mathField.innerFields.find(e=>e.id===n);if(r){let e=this.props.getFieldName(r,this.mathField.innerFields);this.props.setInput&&this.props.setInput(r),this.props.onSubFieldFocus(e,r)}}catch(e){console.error(`error finding root block`,e.message)}};render(){let{onBlur:e,className:t}=this.props;return(0,P.jsx)(tE,{className:t,onFocus:this.onFocus,onBlur:e,ref:this.inputRef})}},rE=e=>(Rt(5-e.length,()=>e.push([])),zt.apply(null,e)),iE=Gh(`pie-lib:math-inline:keypad`),aE=b_(`pie`),oE=[x_(),Tv()],sE={"& .MuiTouchRipple-root":{color:`rgb(from ${x_()} min(r, 255 - r) min(g, 255 - g) min(b, 255 - b))`}},cE={"&.Mui-focusVisible":{outline:`2px solid ${dv()}`,outlineOffset:`-2px`,boxShadow:`inset 0 0 0 4px ${aE(`background`,B.WHITE)}`}},lE=I(nE)(({latex:e})=>{let t={pointerEvents:`none`,textTransform:`none !important`,color:oE,"& .mq-scaled.mq-sqrt-prefix":{transform:`scale(1, 0.9) !important`},"& .mq-sup-only .mq-sup":{marginBottom:`0.9px !important`},"& .mq-empty":{backgroundColor:`${xv()} !important`},"& .mq-overline .mq-overline-inner":{borderTop:`2px solid currentColor`},"& .mq-non-leaf.mq-overline":{borderTop:`none !important`},"& .mq-overarrow":{width:`30px`,marginTop:`0 !important`,borderTop:`2px solid currentColor`,fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`,"&.mq-arrow-both":{top:`0px !important`,"& *":{lineHeight:`1 !important`,borderTop:`none !important`},"&:before":{fontSize:`80%`,left:`calc(-13%) !important`,top:`-0.31em !important`},"&:after":{fontSize:`80% !important`,right:`calc(-13%) !important`,top:`-1.5em`},"&.mq-empty:before":{fontSize:`80%`,left:`calc(-13%)`,top:`-0.26em`},"&.mq-empty:after":{fontSize:`80%`,right:`calc(-13%)`,top:`-0.26em`},"&.mq-empty":{minHeight:`1.4em`}},"&.mq-arrow-right:before":{fontSize:`80%`,right:`calc(-13%) !important`,top:`-0.26em !important`},"& .mq-overarrow-inner":{border:`none !important`},"& .mq-overarrow-inner .mq-overarrow-inner-right":{display:`none !important`}},"& .mq-root-block":{padding:`5px !important`},"& .mq-overarrow.mq-arrow-both.mq-empty:after":{right:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-right.mq-empty:before":{right:`-5px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-both.mq-empty:before":{left:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85},"& .mq-overarc":{borderTop:`2px solid currentColor !important`,"& .mq-overline":{borderTop:`none !important`},"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`}}};return e===`\\parallel`?{...t,fontStyle:`italic !important`}:e===`\\overleftrightarrow{\\overline{}}`?{...t,"& .mq-overarrow.mq-arrow-both":{"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`},"&:after":{position:`absolute !important`,top:`0px !important`}}}:t});lE.propTypes={latex:O.string.isRequired};var uE=e=>e?{gridTemplateColumns:`repeat(${e.columns}, minmax(min-content, 150px))`,gridTemplateRows:`repeat(${e.rows}, minmax(40px, 60px))`,gridAutoFlow:`initial`}:{},dE=I(`div`)(()=>({...YT,width:`100%`,display:`grid`,gridTemplateRows:`repeat(5, minmax(40px, 60px))`,gridRowGap:`0px`,gridColumnGap:`0px`,gridAutoFlow:`column`,"&.character":{textTransform:`initial !important`,gridTemplateRows:`repeat(5, minmax(40px, 50px)) !important`},"&.language":{gridTemplateRows:`repeat(4, minmax(40px, 50px)) !important`,"& *":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}})),fE=I(Lh)(({category:e,isDelete:t,isComma:n,isDot:r})=>({minWidth:`auto`,textTransform:`none`,fontSize:n||r?`200% !important`:`140% !important`,lineHeight:n||r?`100%`:`normal`,color:oE,backgroundColor:e===`operators`?bv():yv(),"&:hover":{backgroundColor:e===`operators`?Cv():Sv()},...sE,...cE,borderRadius:0,...t&&{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}})),pE=I(Lh)(({category:e})=>({textTransform:`none`,padding:0,margin:0,fontSize:`110% !important`,minWidth:`auto`,borderRadius:0,backgroundColor:e===`operators`?bv():yv(),"&:hover":{backgroundColor:e===`operators`?Cv():Sv()},...sE,...cE})),mE=I(Uh)(({category:e})=>({minWidth:`auto`,backgroundColor:e===`operators`?bv():yv(),"&:hover":{backgroundColor:e===`operators`?Cv():Sv()},borderRadius:0,"& .icon":{height:`30px`}})),hE=class extends N.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,baseSet:O.array,additionalKeys:O.array,layoutForKeyPad:O.object,onPress:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,setKeypadInteraction:O.func,mode:O.oneOfType([O.string,O.number])};static defaultProps={baseSet:jm,noDecimal:!1};constructor(e){super(e),this.keypadRef=N.createRef()}componentDidMount(){let e=this.keypadRef?.current,t=e?.closest(`.main-container`),n=e?.closest(`.pie-toolbar`);if(this.props.controlledKeypadMode&&t&&n){let e=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=e.top+e.height-(r.top+r.height);if(i<0){let n=e.height+e.top-i;t&&(t.style.height=`${n}px`)}}e&&(e.addEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.addEventListener(`mousedown`,this.handleKeypadInteraction,!0))}componentWillUnmount(){let e=this.keypadRef?.current;if(this.props.controlledKeypadMode&&e){let t=e.closest(`.main-container`);t&&(t.style.height=`unset`)}e&&(e.removeEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.removeEventListener(`mousedown`,this.handleKeypadInteraction,!0))}handleKeypadInteraction=()=>{this.props.setKeypadInteraction&&this.props.setKeypadInteraction(!0)};buttonClick=e=>{iE(`[buttonClick]`,e);let{onPress:t}=this.props;t(e)};flowKeys=(e,t)=>Mt([...rE(e),...rE(t)]);keyIsNotAllowed=e=>{let{noDecimal:t}=this.props;return!!((e.write===`.`&&e.label===`.`||e.write===`,`&&e.label===`,`)&&t)};render(){let{className:e,baseSet:t,additionalKeys:n,layoutForKeyPad:r,onFocus:i,mode:a}=this.props,o=[`non-negative-integers`,`integers`,`decimals`,`fractions`,`item-authoring`,`language`].includes(a),s=o?this.flowKeys([],n||[]):this.flowKeys(t,n||[]),c=s.length%5?1:0,l={gridTemplateColumns:`repeat(${Math.floor(s.length/5)+c}, minmax(min-content, 150px))`,...uE(r)};return(0,P.jsx)(dE,{ref:this.keypadRef,className:[e,a].filter(Boolean).join(` `),style:l,onFocus:i,children:s.map((e,t)=>{let n=this.buttonClick.bind(this,e);if(!e)return(0,P.jsx)(`span`,{},`empty-${t}`);let r={onClick:n,disabled:this.keyIsNotAllowed(e),key:`${e.label||e.latex||e.command}-${t}`,...e.actions||{},...e.extraProps||{}};if(e.latex)return(0,P.jsx)(pE,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:(0,P.jsx)(lE,{latex:e.latex})},r.key);if(e.label)return(0,P.jsx)(fE,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,isDelete:e.label===`⌫`,isComma:e.label===`,`,isDot:e.label===`.`,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:e.label},r.key);{let t=e.icon?e.icon:`div`;return(0,P.jsx)(mE,{tabIndex:`-1`,onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,size:`large`,...e.actions||{},...e.extraProps||{},children:(0,P.jsx)(t,{className:`icon`})},r.key)}})})}},gE=e=>{if(e.command)return{value:e.command,type:`command`};if(e.write)return{value:e.write};if(e.keystroke)return{type:`cursor`,value:e.keystroke}},_E=class extends N.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,mode:O.oneOfType([O.string,O.number]),layoutForKeyPad:O.object,onClick:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,additionalKeys:O.array,setKeypadInteraction:O.func};static defaultProps={mode:`scientific`,noDecimal:!1,additionalKeys:[]};keypadPress=e=>{let{onClick:t}=this.props;t(gE(e))};render(){let{mode:e,onFocus:t,controlledKeypadMode:n,noDecimal:r,className:i,additionalKeys:a,layoutForKeyPad:o,setKeypadInteraction:s}=this.props,c=_m(a);return(0,P.jsx)(hE,{className:i,controlledKeypadMode:n,onFocus:t,noDecimal:r,layoutForKeyPad:o,additionalKeys:mf(hm(e),c),onPress:this.keypadPress,mode:e,setKeypadInteraction:s})}},vE=o(((e,t)=>{t.exports={"border-radius":1,"border-top-left-radius":1,"border-top-right-radius":1,"border-bottom-left-radius":1,"border-bottom-right-radius":1,"box-shadow":1,order:1,flex:function(e,t){return[t+`box-flex`]},"box-flex":1,"box-align":1,animation:1,"animation-duration":1,"animation-name":1,transition:1,"transition-duration":1,transform:1,"transform-style":1,"transform-origin":1,"backface-visibility":1,perspective:1,"box-pack":1}})),yE=o(((e,t)=>{t.exports={animation:1,"column-count":1,columns:1,"font-weight":1,opacity:1,"order ":1,"z-index":1,zoom:1,flex:1,"box-flex":1,transform:1,perspective:1,"box-pack":1,"box-align":1,colspan:1,rowspan:1}})),bE=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toUpperCase()+e.substring(1):e}})),xE=o(((e,t)=>{var n=bE(),r=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=typeof document>`u`?{}:document.documentElement.style;t.exports=(function(){var e=(function(){for(var e in i)if(r.test(e))return e.match(r)[0];return`WebkitOpacity`in i?`Webkit`:`KhtmlOpacity`in i?`Khtml`:``})();return{style:e,css:`-`+e.toLowerCase()+`-`,dom:{Webkit:`WebKit`,ms:`MS`,o:`WebKit`}[e]||n(e)}})()})),SE=o(((e,t)=>{t.exports=/[-\s]+(.)?/g})),CE=o(((e,t)=>{var n=function(e,t){return t?t.toUpperCase():``},r=SE();t.exports=function(e){return e?e.replace(r,n):``}})),wE=o(((e,t)=>{var n=/::/g,r=/([A-Z]+)([A-Z][a-z])/g,i=/([a-z\d])([A-Z])/g,a=/_/g;t.exports=function(e,t){return e?e.replace(n,`/`).replace(r,`$1_$2`).replace(i,`$1_$2`).replace(a,t||`-`):``}})),TE=o(((e,t)=>{var n=wE();t.exports=function(e){return n(e).toLowerCase()}})),EE=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toLowerCase()+e.substring(1):e}})),DE=o(((e,t)=>{var n=CE(),r=TE(),i=EE(),a=bE(),o=xE(),s=vE(),c=typeof document>`u`?{}:document.documentElement.style;t.exports=function(e){return function(t,l){l||={};var u=i(n(t)),d=r(t),f=e?u:d,p=o.style?e?o.style:o.css:``;if(u in c)return l.asString?f:[f];var m=f,h=s[d],g=[];if(e&&(m=a(f)),typeof h==`function`){var _=h(f,p)||[];_&&!Array.isArray(_)&&(_=[_]),_.length&&(_=_.map(function(t){return e?i(n(t)):r(t)})),g=g.concat(_)}return p&&g.push(p+m),g.push(f),l.asString||g.length==1?g[0]:g}}})),OE=o(((e,t)=>{t.exports=DE()()})),kE=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}})),AE=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return!!e&&n.call(e)===`[object Object]`}})),jE=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return n.apply(e)===`[object Function]`}})),ME=o(((e,t)=>{xE();var n=OE(),r=TE(),i=CE(),a=kE(),o=AE(),s=jE(),c=function(e,t,r,i){n(t).forEach(function(t){e[i?i(t):t]=r})},l=function(e){e=(e||``).split(`;`);var t={};return e.forEach(function(e){var n=e.split(`:`);n.length==2&&(t[n[0].trim()]=n[1].trim())}),t},u={cssUnitless:yE()},d=function(e,t,n,f){typeof e==`string`&&(e=l(e)),t||=u,t.cssUnitless=t.cssUnitless||u.cssUnitless,f||={};var p=t.scope||{},m=t.addUnits==null?p&&p.addUnits!=null?p.addUnits:!0:t.addUnits,h=(t.cssUnitless==null?p?p.cssUnitless:null:t.cssUnitless)||{},g=(t.cssUnit||p?p.cssUnit:null)||`px`,_=t.prefixProperties||(p?p.prefixProperties:null)||{},v=t.camelize?i:r,y,b,x,S,C,w,T,E;for(x in e)if(a(e,x)){if(S=e[x],b=r(n?n+x:x),y=!1,E=!1,s(S)&&(T=S.call(p||e,S,x,b,e),o(T)&&T.value!=null?(S=T.value,E=T.prefix,b=T.name?r(T.name):b):S=T),C=typeof S,w=C==`number`||C==`string`&&S!=``&&S*1==S,S==null||b==null||b===``)continue;if((w||C==`string`)&&(y=!0),!y&&S.value!=null&&S.prefix&&(y=!0,E=S.prefix,S=S.value),y){if(E||=!!_[b],w&&(S=m&&!(b in h)?S+g:S+``),(b==`border`||!b.indexOf(`border`)&&!~b.indexOf(`radius`)&&!~b.indexOf(`width`))&&w&&(b+=`-width`),!b.indexOf(`border-radius-`)&&(b.replace(/border(-radius)(-(.*))/,function(e,t,n){var r={"-top":[`-top-left`,`-top-right`],"-left":[`-top-left`,`-bottom-left`],"-right":[`-top-right`,`-bottom-right`],"-bottom":[`-bottom-left`,`-bottom-right`]};n in r?(b=[],r[n].forEach(function(e){b.push(`border`+e+t)})):b=`border`+n+t}),Array.isArray(b))){b.forEach(function(e){E?c(f,e,S,v):f[v(e)]=S});continue}E?c(f,b,S,v):f[v(b)]=S}else d(S,t,b+`-`,f)}return f};t.exports=d})),NE=o(((e,t)=>{var n=ME(),r=kE();t.exports=function(e,t){e=n(e,t);var i=[],a;for(a in e)r(e,a)&&i.push(a+`: `+e[a]);return i.join(`; `)}})),PE=o(((e,t)=>{t.exports={prefixProperties:vE(),cssUnitless:yE(),object:ME(),string:NE()}}))(),FE=Gh(`@pie-lib:mask-markup:serialization`),IE=[`span`],LE=[`em`,`strong`,`u`],RE=3,zE=8,BE=1,VE=e=>{if(!e.attributes||e.attributes.length<=0)return;let t={},n;for(n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t},HE=e=>IE.includes(e)?`inline`:LE.includes(e)?`mark`:`block`,UE=e=>{let t=/([\w-]*)\s*:\s*([^;]*)/g,n,r={};for(;n=t.exec(e);)r[n[1]]=n[2].trim();return r},WE=e=>(0,PE.object)(e,{camelize:!0,addUnits:!1}),GE=(e,t)=>WE(UE(e.getAttribute(t))),KE=(e,t,n)=>{let r=e.getAttribute(n);return delete t.class,r},qE=e=>(t,n)=>{if(!e.getAttribute)return t;if(e.getAttribute(n))switch(n){case`style`:t.style=GE(e,n);break;case`class`:t.className=KE(e,t,n);break;default:t[n]=e.getAttribute(n);break}return t},JE=[`border`,`class`,`style`],YE={b:`bold`,em:`italic`,u:`underline`,s:`strikethrough`,code:`code`,strong:`strong`},XE=(e,t=[])=>{if(e.nodeType===zE)return null;if(e.nodeType===RE){let n={text:e.textContent};return t.length>0&&(n.marks=t.map(e=>({type:e,data:void 0}))),{object:`text`,leaves:[n]}}if(e.nodeType===BE){let n=e.tagName.toLowerCase(),r=YE[n];if(r)return FE(`[deserialize] mark: `,r),{_flatten:!0,nodes:ZE(e.childNodes,[...t,r])};if(n===`math`)return{isMath:!0,nodes:[e]};let i=VE(e)||{};n===`audio`&&i.controls===``&&(i.controls=!0);let a=JE.reduce(qE(e),{...i}),o=HE(n),s=ZE(e.childNodes,t);return{object:o,type:n,data:{dataset:{...e.dataset},attributes:{...a}},nodes:s}}return null},ZE=(e,t=[])=>{let n=[];for(let r=0;r<e.length;r++){let i=XE(e[r],t);i!==null&&(i._flatten&&i.nodes?n.push(...i.nodes):n.push(i))}return n},QE=e=>{if(!e||!e.trim())return{object:`value`,document:{object:`document`,data:{},nodes:[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]}};let t=ZE(new DOMParser().parseFromString(e,`text/html`).body.childNodes);return!t.some(e=>e.object===`block`||e.object===`inline`)&&t.length>0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:t}]),t.length===0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]),{object:`value`,document:{object:`document`,data:{},nodes:t}}},$E=I(`div`)(({theme:e})=>({paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5)})),eD=I(`span`)(()=>({display:`inline-block`,width:`.75em`})),tD=[`tbody`,`tr`],nD=(e,t)=>{let n=t.trim()===``,r=e&&e.type;if(!(n&&tD.includes(r)))return t},rD=e=>{let t=e.leaves.find(e=>Nt(e,`marks`,[]).length);return t?t.marks:null},iD=(e,t,n,r,i,a)=>{if(!t)return null;let o=[];return(e.nodes||[]).forEach((e,s)=>{let c=e.type?`${e.type}-${s}`:`${s}`;if(e.isMath)return o.push((0,P.jsx)(`span`,{dangerouslySetInnerHTML:{__html:`<math displaystyle="true">${e.nodes[0].innerHTML}</math>`}})),o;if(r){let a=r(e,t,n);if(a){let t=e.data?.dataset?.component===`blank`&&i?.type!==`td`;t&&o.push((0,P.jsx)(eD,{},`spacer-${s}-before`)),o.push(a),t&&o.push((0,P.jsx)(eD,{},`spacer-${s}-after`));return}}if(e.object===`text`){let t=e.leaves.reduce((e,t)=>{let n=t.text,r=nD(i,n);return r?e+r:e},``),n=rD(e);if(n?.length>0){let e=n.map(e=>Object.keys(YE).find(t=>YE[t]===e.type)).filter(Boolean);e.length>0?o.push(e.reduceRight((e,t,n)=>(0,P.jsx)(t,{children:e},`${c}-${t}-${n}`),t)):o.push(t)}else t.length>0&&o.push(t)}else{let i=iD(e,t,n,r,e,a);if(e.type===`p`||e.type===`paragraph`)o.push((0,P.jsx)($E,{children:i},c));else{let t=e.type;e.nodes&&e.nodes.length>0?o.push((0,P.jsx)(t,{...e.data.attributes,children:i},c)):o.push((0,P.jsx)(t,{...e.data.attributes},c))}}}),o},aD=I(`div`)(()=>({display:`initial`,"&:not(.MathJax) table":{borderCollapse:`collapse`},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:`8px 12px`,textAlign:`left`}})),oD=class extends N.Component{constructor(e){super(e),this.internalContainerRef=N.createRef()}static propTypes={renderChildren:O.func,layout:O.object,value:O.object,onChange:O.func,elementType:O.string,containerRef:O.oneOfType([O.func,O.shape({current:O.instanceOf(Element)})])};componentDidMount(){let e=this.props.containerRef||this.internalContainerRef;e.current&&typeof Sx==`function`&&Sx(e.current)}handleChange=(e,t)=>{let n={...this.props.value,[e]:t};this.props.onChange(n)};render(){let{value:e,layout:t,elementType:n,containerRef:r}=this.props,i=iD(t,e,this.handleChange,this.props.renderChildren,null,n),a=r||this.internalContainerRef;return(0,P.jsx)(aD,{ref:a,children:i})}},sD=/\{\{(\d+)\}\}/g,cD=(e,t)=>e?{markup:e.replace(sD,(e,n)=>`<span data-component="${t}" data-id="${n}"></span>`)}:{markup:``},lD=(e,t)=>{let{markup:n}=cD(e,t);return QE(n).document},uD=((e,t)=>class extends N.Component{static propTypes={markup:O.string,layout:O.object,value:O.object,onChange:O.func,customMarkMarkupComponent:O.func,elementType:O.string};constructor(e){super(e),this.containerRef=N.createRef()}componentDidUpdate(e){if(this.props.markup!==e.markup){let e=this.containerRef.current;(e&&e.querySelectorAll(`[data-latex][data-math-handled="true"]`)||[]).forEach(e=>{let t=e.querySelector(`mjx-container`);t&&e.removeChild(t),e.innerHTML=e.getAttribute(`data-raw`),e.removeAttribute(`data-math-handled`)})}}render(){let{markup:n,layout:r,value:i,onChange:a,elementType:o}=this.props,s=r||lD(n,e);return(0,P.jsx)(oD,{containerRef:this.containerRef,elementType:o,layout:s,value:i,onChange:a,renderChildren:t(this.props)})}})(`input`,e=>(t,n,r)=>{let i=t.data&&t.data.dataset||{};if(i.component===`input`)return e.customMarkMarkupComponent(i.id)}),dD=`height ease-in 300ms, opacity ease-in 300ms`,fD=I(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:dD,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:dD,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),pD=e=>{let{show:t,children:n,className:r}=e,i=(0,N.useRef)(null);return(0,P.jsx)(ol,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,P.jsx)(fD,{ref:i,className:r,children:n})})};pD.propTypes={show:O.bool.isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};function mD(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function hD(e,t){return!e||mD(e)?e:mD(e.default)?e.default:t&&mD(e[t])?e[t]:t&&mD(e[t]?.default)?e[t].default:e}var gD=hD(CC,`Readable`)||hD(yD.Readable,`Readable`),_D=QC,vD=_D.default,yD=vD&&typeof vD==`object`?vD:_D,{translator:bD}=TS,xD={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},SD=I(`div`)(()=>({width:`100%`,cursor:`pointer`})),CD=I(`button`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`,minWidth:`24px`,minHeight:`24px`,padding:0,border:0,background:`none`,color:`inherit`,font:`inherit`,cursor:`pointer`,"&:focus-visible":{outline:`2px solid ${uv()}`,outlineOffset:`-2px`}})),wD=I(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${x_()})`,fontWeight:`normal`,...xD})),TD=I(`div`)(()=>({position:`absolute`,width:`25px`,"&.enter":{opacity:`0`},"&.enter-active":{opacity:`1`,transition:`opacity 0.3s ease-in`},"&.exit":{opacity:`1`},"&.exit-active":{opacity:`0`,transition:`opacity 0.3s ease-in`}})),ED=I(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),DD=class e extends N.Component{static propTypes={onToggle:O.func,toggled:O.bool,show:O.bool,hideMessage:O.string,showMessage:O.string,className:O.string,language:O.string};static defaultProps={showMessage:`Show correct answer`,hideMessage:`Hide correct answer`,show:!1,toggled:!1};constructor(t){super(t),this.state={show:t.show},this.openIconRef=N.createRef(),this.closedIconRef=N.createRef(),e.defaultProps={...e.defaultProps,showMessage:bD.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:bD.t(`common:hideCorrectAnswer`,{lng:t.language})}}onClick(){this.props.onToggle(!this.props.toggled)}onTouch(e){e.preventDefault(),this.props.onToggle(!this.props.toggled)}UNSAFE_componentWillReceiveProps(t){this.setState({show:t.show}),t.language!==this.props?.language&&(e.defaultProps={...e.defaultProps,showMessage:bD.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:bD.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,P.jsx)(SD,{className:e,children:(0,P.jsx)(pD,{show:this.state.show,children:(0,P.jsxs)(CD,{type:`button`,"aria-pressed":!!t,onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,P.jsxs)(ED,{children:[(0,P.jsx)(ol,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,P.jsx)(TD,{ref:this.openIconRef,children:(0,P.jsx)(sg,{open:t},`correct-open`)})}),(0,P.jsx)(ol,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,P.jsx)(TD,{ref:this.closedIconRef,children:(0,P.jsx)(sg,{open:t},`correct-closed`)})})]}),(0,P.jsx)(gD,{false:!0,children:(0,P.jsx)(wD,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}};function OD(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function kD(e,t){return!e||OD(e)?e:OD(e.default)?e.default:t&&OD(e[t])?e[t]:t&&OD(e[t]?.default)?e[t].default:e}var AD=kD(HS,`UiLayout`)||kD(ID.UiLayout,`UiLayout`),jD=kD(SC,`PreviewPrompt`)||kD(ID.PreviewPrompt,`PreviewPrompt`),MD=kD(CC,`Readable`)||kD(ID.Readable,`Readable`),ND=kD(MS,`Collapsible`)||kD(ID.Collapsible,`Collapsible`),PD=QC,FD=PD.default,ID=FD&&typeof FD==`object`?FD:PD,{translator:LD}=TS,RD=I(AD)({color:x_(),backgroundColor:U_(),display:`inline-block`}),zD=I(`div`)({width:`100%`,position:`relative`,backgroundColor:U_(),color:x_()}),BD=I(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),VD=I(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),HD=I(`div`)({position:`relative`,"& > div > div":{display:`flex`,alignItems:`baseline`,flexWrap:`wrap`},"& .mq-overarrow-inner":{border:`none !important`,padding:`0 !important`},"& .mq-overarrow-inner-right":{display:`none !important`},"& .mq-overarrow-inner-left":{display:`none !important`},"& .mq-overarrow.mq-arrow-both":{minWidth:`1.23em`,"& *":{lineHeight:`1 !important`},"&:before":{top:`-0.4em`,left:`-1px`},"&:after":{top:`-2.4em`,right:`-1px`},"&.mq-empty:after":{top:`-0.45em`}},"& .mq-overarrow.mq-arrow-right":{"&:before":{top:`-0.4em`,right:`-1px`}},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85}}),UD=I(`div`)(({theme:e,$incorrect:t,$correct:n,$showCorrectness:r,$correctAnswerShown:i})=>({maxWidth:`fit-content`,...t&&{borderColor:`${k_()} !important`},...n&&{borderColor:`${T_()} !important`},...r&&{border:`2px solid`},...i&&{padding:e.spacing(1),letterSpacing:`0.5px`},"& > .mq-math-mode":{"& > .mq-root-block":{"& > .mq-editable-field":{minWidth:`10px`,padding:e.spacing(.25)}},"& sup":{top:0}}})),WD=I(nE)({"& > .mq-root-block":{"& > .mq-editable-field":{borderColor:x_()}}}),GD=I(`div`)(({theme:e})=>({zIndex:10,minWidth:`400px`,marginTop:e.spacing(2)})),KD=I(`div`)(({theme:e})=>({marginBottom:e.spacing(1),pointerEvents:`none`})),qD=I(`h2`)({position:`absolute`,left:`-10000px`,top:`auto`,width:`1px`,height:`1px`,overflow:`hidden`}),JD=I(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),YD=I(DD)(({theme:e})=>({color:x_(),marginBottom:e.spacing(2)}));if(typeof document<`u`){let e=`math-templated-main-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=`
197
+ https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)},pE(),mE},mE.getInterface=_E;var hE=_E.MIN=1,gE=_E.MAX=3;function _E(e){if(!(hE<=e&&e<=gE))throw`Only interface versions between `+hE+` and `+gE+` supported. You specified: `+e;if(e<3&&typeof window<`u`&&!window.jQuery)throw`MathQuill interface version `+e+` requires jQuery 1.5.2+ to be loaded first`;function t(e){if(!e||!e.nodeType)return null;var t=G(e).children(`.mq-root-block`).attr(UT),r=t&&eE.byId[t].controller;return r?n[r.KIND_OF_MQ](r):null}var n={};t.L=J,t.R=Y,t.saneKeyboardEvents=bE;function r(e,t){for(var r in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:n}),t)if(t.hasOwnProperty(r)){var i=t[r],a=uE[r];e[r]=a?a(i):i}}t.config=function(e){return r(lE.p,e),this},t.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw`Embed name must start with letter and be only letters and digits`;fE[e]=t};var i=n.AbstractMathQuill=q(dE,function(t){t.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},t.parseLatex=function(e){return this.__controller.parseLatex(e)},t.__mathquillify=function(t){var n=this.__controller,r=n.root,i=n.container;n.createTextarea();var a=i.addClass(t).contents().detach();r.jQ=G(`<span class="mq-root-block"/>`).attr(UT,r.id).appendTo(i),this.latex(a.text()),this.revert=function(){var t=i.empty().unbind(`.mathquill`).removeClass(`mq-editable-field mq-math-mode mq-text-mode`).append(a);return e>=3?t[0]:t}},t.config=function(e){return r(this.__options,e),this},t.el=function(){return this.__controller.container[0]},t.text=function(){return this.__controller.exportText()},t.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},t.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,``).replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,``).replace(/ mq-hasCursor|mq-hasCursor ?/,``).replace(/ class=(""|(?= |>))/g,``)},t.reflow=function(){return this.__controller.root.postOrder(`reflow`),this}});for(var a in t.prototype=i.prototype,n.EditableField=q(i,function(e,t){e.__mathquillify=function(){return t.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild(`postOrder`,`dispose`),e.ends[J]=e.ends[Y]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)&&!n.isTooDeep()){e=e.slice(1);var r=X[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify(`move`).cursor.insAtRightEnd(e.root);e.cursor[J];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify(`move`).cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(J)},e.moveToRightEnd=function(){return this.moveToDirEnd(Y)},e.keystroke=function(e){for(var e=e.replace(/^\s+|\s+$/g,``).split(/\s+/),t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:KT});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-G(window).scrollLeft(),i=t-G(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(G(a),e,t),xD().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,t,n){n||=document.elementFromPoint(e,t);var r=this.__controller,i=r.root;return BT.contains(i.jQ[0],n)||(n=i.jQ[0]),r.seek(G(n),e+pageXOffset,t+pageYOffset),r.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}}),t.EditableField=function(){throw`wtf don't call me, I'm 'abstract'`},t.EditableField.prototype=n.EditableField.prototype,cE)(function(r,i){var a=n[r]=i(n);t[r]=function(n,i){var o=t(n);if(o instanceof a||!n||!n.nodeType)return o;var s=sE(a.RootBlock(),G(n),lE());return s.KIND_OF_MQ=r,a(s).__mathquillify(i,e)},t[r].prototype=a.prototype})(a,cE[a]);return t}mE.noConflict=function(){return window.MathQuill=vE,mE};var vE=window.MathQuill;window.MathQuill=mE;function yE(e){for(var t=`moveOutOf deleteOutOf selectOutOf upOutOf downOutOf`.split(` `),n=0;n<t.length;n+=1)(function(t){e[t]=function(e){this.controller.handle(t,e)}})(t[n]);e.reflow=function(){this.controller.handle(`reflow`),this.controller.handle(`edited`),this.controller.handle(`edit`)}}var Z=q(function(e,t,n){function r(e,t){throw e=e?`'`+e+`'`:`EOF`,`Parse Error: `+t+` at `+e}e.init=function(e){this._=e},e.parse=function(e){return this.skip(o)._(``+e,t,r);function t(e,t){return t}},e.or=function(e){ZT(`or is passed a parser`,e instanceof n);var t=this;return n(function(n,r,i){return t._(n,r,a);function a(t){return e._(n,r,i)}})},e.then=function(e){var t=this;return n(function(r,i,a){return t._(r,o,a);function o(t,r){var o=e instanceof n?e:e(r);return ZT(`a parser is returned`,o instanceof n),o._(t,i,a)}})},e.many=function(){var e=this;return n(function(t,n,r){for(var i=[];e._(t,a,o););return n(t,i);function a(e,n){return t=e,i.push(n),!0}function o(){return!1}})},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n(function(n,i,a){for(var o=[],s=!0,c,l=0;l<e;l+=1)if(s=r._(n,u,d),!s)return a(n,c);for(;l<t&&s;l+=1)s=r._(n,u,f);return i(n,o);function u(e,t){return o.push(t),n=e,!0}function d(e,t){return c=t,n=e,!1}function f(e,t){return!1}})},e.result=function(e){return this.then(a(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then(function(e){return t.many().map(function(t){return e.concat(t)})})},e.map=function(e){return this.then(function(t){return a(e(t))})},e.skip=function(e){return this.then(function(t){return e.result(t)})},this.string=function(e){var t=e.length,r=`expected '`+e+`'`;return n(function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)})};var i=this.regex=function(e){ZT(`regexp parser is anchored`,e.toString().charAt(1)===`^`);var t=`expected `+e;return n(function(n,r,i){var a=e.exec(n);if(a){var o=a[0];return r(n.slice(o.length),o)}else return i(n,t)})},a=n.succeed=function(e){return n(function(t,n){return n(t,e)})};n.fail=function(e){return n(function(t,n,r){return r(t,e)})},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n(function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,`expected any character`)}),n.all=n(function(e,t,n){return t(``,e)});var o=n.eof=n(function(e,t,n){return e?n(e,`expected EOF`):t(e,e)})}),bE=function(){var e={8:`Backspace`,9:`Tab`,10:`Enter`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Esc`,32:`Spacebar`,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`Left`,38:`Up`,39:`Right`,40:`Down`,45:`Insert`,46:`Del`,144:`NumLock`};function t(t){var n=t.which||t.keyCode,r=e[n],i,a=[];return t.ctrlKey&&a.push(`Ctrl`),t.originalEvent&&t.originalEvent.metaKey&&a.push(`Meta`),t.altKey&&a.push(`Alt`),t.shiftKey&&a.push(`Shift`),i=r||String.fromCharCode(n),!a.length&&!r?i:(a.push(i),a.join(`-`))}return function(e,n){var r=null,i=null,a=BT(e),o=BT(n.container||a),s=KT,c;function l(e){s=e,clearTimeout(c),c=setTimeout(e)}function u(e){l(function(t){s=KT,clearTimeout(c),e(t)})}o.bind(`keydown keypress input keyup focusout paste`,function(e){s(e)});function d(e){s(),s=KT,clearTimeout(c),a.val(e),e&&a[0]&&a[0].select&&a[0].select(),f=!!e}var f=!1;function p(){var e=a[0];return`selectionStart`in e&&e.selectionStart!==e.selectionEnd}function m(){n.keystroke(t(r),r)}function h(e){r=e,i=null,f&&u(function(e){!(e&&e.type===`focusout`)&&a[0]&&a[0].select&&a[0].select()}),m()}function g(e){r&&i&&m(),i=e,l(v)}function _(e){r&&!i&&l(v)}function v(){if(!p()){var e=a.val();e.length===1?(a.val(``),n.typedText(e)):e&&a[0]&&a[0].select&&a[0].select()}}function y(){r=i=null}function b(e){a.focus(),l(x)}function x(){var e=a.val();a.val(``),e&&n.paste(e)}return o.bind({keydown:h,keypress:g,keyup:_,focusout:y,cut:function(){u(function(){n.cut()})},copy:function(){u(function(){n.copy()})},paste:b}),{select:d}}}();sE.open(function(e,t){e.exportText=function(){return this.root.foldChildren(``,function(e,t){return e+t.text()})}}),sE.open(function(e){e.focusBlurEvents=function(){var e=this,t=e.root,n=e.cursor,r;e.textarea.focus(function(){e.blurred=!1,clearTimeout(r),e.container.addClass(`mq-focused`),n.parent||n.insAtRightEnd(t),n.selection?(n.selection.jQ.removeClass(`mq-blur`),e.selectionChanged()):n.show()}).blur(function(){e.blurred=!0,r=setTimeout(function(){t.postOrder(`intentionalBlur`),n.clearSelection().endSelection(),a()}),G(window).bind(`blur`,i)});function i(){clearTimeout(r),n.selection&&n.selection.jQ.addClass(`mq-blur`),a()}function a(){n.hide().parent.blur(),e.container.removeClass(`mq-focused`),G(window).unbind(`blur`,i)}e.blurred=!0,n.hide().parent.blur()}}),sE.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),eE.open(function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case`Ctrl-Shift-Backspace`:case`Ctrl-Backspace`:n.ctrlDeleteDir(J);break;case`Shift-Backspace`:case`Backspace`:n.backspace();break;case`Esc`:case`Tab`:n.escapeDir(Y,e,t);return;case`Shift-Tab`:case`Shift-Esc`:n.escapeDir(J,e,t);return;case`End`:n.notify(`move`).cursor.insAtRightEnd(r.parent);break;case`Ctrl-End`:n.notify(`move`).cursor.insAtRightEnd(n.root);break;case`Shift-End`:for(;r[Y];)n.selectRight();break;case`Ctrl-Shift-End`:for(;r[Y]||r.parent!==n.root;)n.selectRight();break;case`Home`:n.notify(`move`).cursor.insAtLeftEnd(r.parent);break;case`Ctrl-Home`:n.notify(`move`).cursor.insAtLeftEnd(n.root);break;case`Shift-Home`:for(;r[J];)n.selectLeft();break;case`Ctrl-Shift-Home`:for(;r[J]||r.parent!==n.root;)n.selectLeft();break;case`Left`:n.moveLeft();break;case`Shift-Left`:n.selectLeft();break;case`Ctrl-Left`:break;case`Right`:n.moveRight();break;case`Shift-Right`:n.selectRight();break;case`Ctrl-Right`:break;case`Up`:n.moveUp();break;case`Down`:n.moveDown();break;case`Shift-Up`:if(r[J])for(;r[J];)n.selectLeft();else n.selectLeft();case`Shift-Down`:if(r[Y])for(;r[Y];)n.selectRight();else n.selectRight();case`Ctrl-Up`:break;case`Ctrl-Down`:break;case`Ctrl-Shift-Del`:case`Ctrl-Del`:n.ctrlDeleteDir(Y);break;case`Shift-Del`:case`Del`:n.deleteForward();break;case`Meta-A`:case`Ctrl-A`:for(n.notify(`move`).cursor.insAtRightEnd(n.root);r[J];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){ZT(`overridden or never called on this node`)}}),sE.open(function(e){this.onNotify(function(e){(e===`move`||e===`upDown`)&&this.show().clearSelection()}),e.escapeDir=function(e,t,n){QT(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify(`move`)},uE.leftRightIntoCmdGoes=function(e){if(e&&e!==`up`&&e!==`down`)throw`"up" or "down" required for leftRightIntoCmdGoes option, got "`+e+`"`;return e},e.moveDir=function(e){QT(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify(`move`)},e.moveLeft=function(){return this.moveDir(J)},e.moveRight=function(){return this.moveDir(Y)},e.moveUp=function(){return t(this,`up`)},e.moveDown=function(){return t(this,`down`)};function t(e,t){var n=e.notify(`upDown`).cursor,r=t+`Into`,i=t+`OutOf`;return n[Y][r]?n.insAtLeftEnd(n[Y][r]):n[J][r]?n.insAtRightEnd(n[J][r]):n.parent.bubble(function(e){var t=e[i];if(t&&(typeof t==`function`&&(t=e[i](n)),t instanceof eE&&n.jumpUpDown(e,t),t!==!0))return!1}),e}this.onNotify(function(e){e!==`upDown`&&(this.upDownCache={})}),this.onNotify(function(e){e===`edit`&&this.show().deleteSelection()}),e.deleteDir=function(e){QT(e);var t=this.cursor,n=t.selection;return this.notify(`edit`),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[J].siblingDeleted&&t[J].siblingDeleted(t.options,Y),t[Y].siblingDeleted&&t[Y].siblingDeleted(t.options,J),t.parent.bubble(`reflow`),this},e.ctrlDeleteDir=function(e){QT(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify(`edit`),e===J?nE(t.parent.ends[J],t[J]).remove():nE(t[Y],t.parent.ends[Y]).remove(),t.insAtDirEnd(e,t.parent),t[J].siblingDeleted&&t[J].siblingDeleted(t.options,Y),t[Y].siblingDeleted&&t[Y].siblingDeleted(t.options,J),t.parent.bubble(`reflow`),this)},e.backspace=function(){return this.deleteDir(J)},e.deleteForward=function(){return this.deleteDir(Y)},this.onNotify(function(e){e!==`select`&&this.endSelection()}),e.selectDir=function(e){var t=this.notify(`select`).cursor,n=t.selection;QT(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(J)},e.selectRight=function(){return this.selectDir(Y)}});var xE=/[\\]{2,}/gm,SE=(function(){function e(e){var t=EE();return e.adopt(t,0,0),t}function t(e){for(var t=e[0]||EE(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[Y],0);return t}var n=Z.string,r=Z.regex,i=Z.letter,a=Z.any,o=Z.optWhitespace,s=Z.succeed,c=Z.fail,l=i.map(function(e){return FE(e)}),u=r(/^[^${}\\_^]/).map(function(e){return Q(e)}),d=r(/^\\not\\[a-z]+/).then(function(e){return iE[e]&&iE[e]().parser()||c(`unknown compound command: `+e)}),f=r(/^[^\\a-eg-zA-Z]/).or(n(`\\`).then(r(/^begin\{.?matrix\}/).or(r(/^[a-z]+/i)).or(r(/^\s+/).result(` `)).or(a))).then(function(e){e=e.replace(/^begin\{(.?matrix)\}$/,`$1`);var t=X[e];return t?t(e).parser():c(`unknown command: \\`+e)}),p=d.or(f).or(l).or(u),m=n(`{`).then(function(){return g}).skip(n(`}`)),h=o.then(m.or(p.map(e))),g=h.many().map(t).skip(o),_=n(`[`).then(h.then(function(e){return e.join(`latex`)===`]`?c():s(e)}).many().map(t).skip(o)).skip(n(`]`)),v=g;return v.block=h,v.optBlock=_,v})();sE.open(function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,`$1`)},e.parseLatex=function(e){return SE.parse(e).postOrder(`finalizeTree`,lE.p).join(`latex`).trim()},uE.maxDepth=function(e){return typeof e==`number`?e:VT},e.writeLatex=function(e){var t=this.notify(`edit`).cursor,n=Z.all,r=Z.eof,i=SE.skip(r).or(n.result(!1)).parse(e);return i&&!i.isEmpty()&&i.prepareInsertionAt(t)&&(i.children().adopt(t.parent,t[J],t[Y]),i.jQize().insertBefore(t.jQ),t[J]=i.ends[Y],i.finalizeInsert(t.options,t),i.ends[Y][Y].siblingCreated&&i.ends[Y][Y].siblingCreated(t.options,J),i.ends[J][J].siblingCreated&&i.ends[J][J].siblingCreated(t.options,Y),t.parent.bubble(`reflow`)),this},e.renderLatexMath=function(e){e&&e.replace&&(e=e.replace(xE,`\\`));var t=this.root,n=this.cursor;n.options;var r=t.jQ,i=Z.all,a=Z.eof,o=SE.skip(a).or(i.result(!1)).parse(e);if(t.eachChild(`postOrder`,`dispose`),t.ends[J]=t.ends[Y]=0,o&&o.prepareInsertionAt(n)){o.children().adopt(t,0,0);var s=o.join(`html`);r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)}else r.empty();delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild(`postOrder`,`dispose`),t.ends[J]=t.ends[Y]=0,delete n.selection,n.show().insAtRightEnd(t);var r=Z.regex,i=Z.string,a=Z.eof,o=Z.all,s=i(`$`).then(SE).skip(i(`$`).or(a)).map(function(e){var t=jE(n);t.createBlocks();var r=t.ends[J];return e.children().adopt(r,0,0),t}),c=i(`\\$`).result(`$`).or(r(/^[^$]/)).map(Q),l=s.or(c).many().skip(a).or(o.result(!1)).parse(e);if(l){for(var u=0;u<l.length;u+=1)l[u].adopt(t,t.ends[Y],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}}),sE.open(function(e){lE.p.ignoreNextMousedown=KT,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind(`mousedown.mathquill`,function(t){var n=G(t.target).closest(`.mq-root-block`),r=eE.byId[n.attr(UT)||e.attr(UT)].controller,i=r.cursor;i.blink;var a=r.textareaSpan,o=r.textarea;if(t.preventDefault(),t.target.unselectable=!0,i.options.ignoreNextMousedown(t))return;i.options.ignoreNextMousedown=KT;function s(e){i.anticursor||i.startSelection(),r.seek(G(e.target),e.pageX,e.pageY).cursor.select(),e.target&&G(e.target.ownerDocument).unbind(`mousemove`,c)}function c(e){return delete e.target,s(e)}function l(e){!i.selection&&!r.editable&&a.detach(),n.unbind(`mousemove`,s),G(e.target.ownerDocument).unbind(`mousemove`,c).unbind(`mouseup`,l)}if(a.parent().length===0)return!1;r.blurred&&(r.editable||n.prepend(a),document.body.focus(),o.focus()),t.preventDefault(),t.target.unselectable=!0,i.show(),r.seek(G(t.target),t.pageX,t.pageY).cursor.startSelection(),n.mousemove(s),G(t.target.ownerDocument).mousemove(c).mouseup(l)})}}),sE.open(function(e){e.seek=function(e,t,n){var r=this.notify(`select`).cursor;if(e){var i=e.attr(UT)||e.attr(HT);if(!i){var a=e.parent();i=a.attr(UT)||a.attr(HT)}}var o=i&&eE.byId[i]?eE.byId[i]:this.root;return r.clearSelection().show(),o.seek(t,r),this.scrollHoriz(),this}}),sE.open(function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=this.root.jQ[0].getBoundingClientRect();if(t){var r=t.jQ[0].getBoundingClientRect(),i=r.left-(n.left+20),a=r.right-(n.right-20);if(t.ends[J]===e[Y])if(i<0)var o=i;else if(a>0)if(r.left-a<n.left+20)var o=i;else var o=a;else return;else if(a>0)var o=a;else if(i<0)if(r.right-i>n.right-20)var o=a;else var o=i;else return}else{var s=e.jQ[0].getBoundingClientRect().left;if(s>n.right-20)var o=s-(n.right-20);else if(s<n.left+20)var o=s-(n.left+20);else return}this.root.jQ.stop&&typeof this.root.jQ.stop==`function`&&this.root.jQ.stop().animate({scrollLeft:`+=`+o},100)}}),sE.open(function(e){lE.p.substituteTextarea=function(){return G(`<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />`)[0]},e.createTextarea=function(){var e=this.textareaSpan=G(`<span class="mq-textarea"></span>`),t=this.options.substituteTextarea();if(!t.nodeType)throw`substituteTextarea() must return a DOM element, got `+t;t=this.textarea=G(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;YE(e.container[0]),e.textareaSelectionTimeout===VT&&(e.textareaSelectionTimeout=setTimeout(function(){e.setTextareaSelection()}))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=VT;var e=``;this.cursor.selection&&(e=this.cursor.selection.join(`latex`),this.options.statelessClipboard&&(e=`$`+e+`$`)),this.selectFn(e)},e.staticMathTextareaEvents=function(){var e=this;e.root;var t=e.cursor,n=e.textarea,r=e.textareaSpan;this.container.prepend(BT(`<span class="mq-selectable">`).text(`$`+e.exportLatex()+`$`)),e.blurred=!0,n.bind(`cut paste`,!1).bind(`copy`,function(){e.setTextareaSelection()}).focus(function(){e.blurred=!1}).blur(function(){t.selection&&t.selection.clear(),setTimeout(i)});function i(){r.detach(),e.blurred=!0}e.selectFn=function(e){n.val(e),e&&n.select()}},lE.p.substituteKeyboardEvents=bE,e.editablesTextareaEvents=function(){var e=this,t=e.textarea,n=e.textareaSpan,r=this.options.substituteKeyboardEvents(t,this);this.selectFn=function(e){r.select(e)},this.container.prepend(n),this.focusBlurEvents()},e.typedText=function(e){if(e===`
198
+ `)return this.handle(`enter`);var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout(function(){e.notify(`edit`),t.parent.bubble(`reflow`)})},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e=e.slice(0,1)===`$`&&e.slice(-1)===`$`?e.slice(1,-1):`\\text{`+e+`}`),this.writeLatex(e).cursor.show()}});var CE=q(eE,function(e,t){e.finalizeInsert=function(e,t){var n=this;n.postOrder(`finalizeTree`,e),n.postOrder(`contactWeld`,t),n.postOrder(`blur`),n.postOrder(`reflow`),n[Y].siblingCreated&&n[Y].siblingCreated(e,J),n[J].siblingCreated&&n[J].siblingCreated(e,Y),n.bubble(`reflow`)},e.prepareInsertionAt=function(e){var t=e.options.maxDepth;if(t!==VT){var n=e.depth();if(n>t)return!1;this.removeNodesDeeperThan(t-n)}return!0},e.removeNodesDeeperThan=function(e){for(var t=0,n=[[this,t]],r;n.length;)r=n.shift(),r[0].children().each(function(i){var a=+(i instanceof EE);t=r[1]+a,t<=e?n.push([i,t]):(a?i.children():i).remove()})}}),wE=q(CE,function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||=e,n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,function(e,t){return e&&t.isEmpty()})},e.parser=function(){var e=SE.block,t=this;return e.times(t.numBlocks()).map(function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[Y],0);return t})},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[J],0,0),r.jQ.appendTo(n.ends[J].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){for(var e=this,t=e.numBlocks(),n=e.blocks=Array(t),r=0;r<t;r+=1)(n[r]=EE()).adopt(e,e.ends[Y],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[J],function(e,t){return e.isEmpty()?e:t}))},e.moveTowards=function(e,t,n){var r=n&&this[n+`Into`];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return oE(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[J]=e.jQ.offset().left,t[Y]=t[J]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[J])return t.insLeftOf(r);if(e>i[Y])return t.insRightOf(r);var a=i[J];r.eachChild(function(o){var s=n(o);if(e<s[J])return e-a<s[J]-e?o[J]?t.insAtRightEnd(o[J]):t.insLeftOf(r):t.insAtLeftEnd(o),!1;if(e>s[Y])o[Y]?a=s[Y]:i[Y]-e<e-s[Y]?t.insRightOf(r):t.insAtRightEnd(o);else return o.seek(e,t),!1})},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this,t=e.blocks,n=` mathquill-command-id=`+e.id,r=e.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);ZT(`no unmatched angle brackets`,r.join(``)===this.htmlTemplate);for(var i=0,a=r[0];a;i+=1,a=r[i])if(a.slice(-2)===`/>`)r[i]=a.slice(0,-2)+n+`/>`;else if(a.charAt(0)===`<`){ZT(`not an unmatched top-level close tag`,a.charAt(1)!==`/`),r[i]=a.slice(0,-1)+n+`>`;var o=1;do i+=1,a=r[i],ZT(`no missing close tags`,a),a.slice(0,2)===`</`?--o:a.charAt(0)===`<`&&a.slice(-2)!==`/>`&&(o+=1);while(o>0)}return r.join(``).replace(/>&(\d+)/g,function(e,n){return` mathquill-block-id=`+t[n].id+`>`+t[n].join(`html`)})},e.latex=function(){return this.foldChildren(this.ctrlSeq,function(e,t){return e+`{`+(t.latex()||` `)+`}`})},e.textTemplate=[``],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],function(n,r){t+=1;var i=r.text();return n&&e.textTemplate[t]===`(`&&i[0]===`(`&&i.slice(-1)===`)`?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||``)})}}),TE=q(wE,function(e,t){e.init=function(e,n,r){r||=e&&e.length>1?e.slice(1):e,t.init.call(this,e,n,[r])},e.parser=function(){return Z.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=KT,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=KT,e.isEmpty=function(){return!0}}),Q=q(TE,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span>`+(n||e)+`</span>`)}}),$=q(TE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-binary-operator">`+n+`</span>`,r)}}),EE=q(CE,function(e,t){e.join=function(e){return this.foldChildren(``,function(t,n){return t+n[e]()})},e.html=function(){return this.join(`html`)},e.latex=function(){return this.join(`latex`)},e.text=function(){return this.ends[J]===this.ends[Y]&&this.ends[J]!==0?this.ends[J].text():this.join(`text`)},e.keystroke=function(e,n,r){if(r.options.spaceBehavesLikeTab&&(e===`Spacebar`||e===`Shift-Spacebar`)){n.preventDefault(),r.escapeDir(e===`Shift-Spacebar`?J:Y,e,n);return}return t.keystroke.apply(this,arguments)},e.moveOutOf=function(e,t,n){!(n&&this.parent[n+`Into`])&&this[e]?t.insAtDirEnd(-e,this[e]):t.insDirOf(e,this.parent)},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[Y];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[J].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[J];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?FE(e):/^\d$/.test(e)?NE(e):t&&t.typingSlashWritesDivisionSymbol&&e===`/`?X[`÷`](e):t&&t.typingAsteriskWritesTimesSymbol&&e===`*`?X[`×`](e):(n=rE[e]||X[e])?n(e):Q(e)},e.write=function(e,t){var n;if(e.tooDeep())return!1;n=this.chToCmd(t,e.options),e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass(`mq-hasCursor`),this.jQ.removeClass(`mq-empty`),this},e.blur=function(){return this.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.jQ.addClass(`mq-empty`),this}});lE.p.mouseEvents=!0,cE.StaticMath=function(e){return q(e.AbstractMathQuill,function(t,n){this.RootBlock=EE,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,`mq-math-mode`),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField),t}})};var DE=q(EE,yE);cE.MathField=function(e){return q(e.EditableField,function(e,t){this.RootBlock=DE,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=KT),t.__mathquillify.call(this,`mq-editable-field mq-math-mode`),delete this.__controller.root.reflow,this}})};var OE=q(eE,function(e,t){e.ctrlSeq=`\\text`,e.replaces=function(e){e instanceof nE?this.replacedText=e.remove().jQ.text():typeof e==`string`&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[J]&&this.ends[J].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),n[Y].siblingCreated&&n[Y].siblingCreated(e.options,J),n[J].siblingCreated&&n[J].siblingCreated(e.options,Y),n.bubble(`reflow`),e.insAtRightEnd(n),n.replacedText)for(var r=0;r<n.replacedText.length;r+=1)n.write(e,n.replacedText.charAt(r))},e.parser=function(){var e=this,t=Z.string,n=Z.regex;return Z.optWhitespace.then(t(`{`)).then(n(/^[^}]*/)).skip(t(`}`)).map(function(t){return t.length===0?nE():(kE(t).adopt(e,0,0),e)})},e.textContents=function(){return this.foldChildren(``,function(e,t){return e+t.text})},e.text=function(){return`"`+this.textContents()+`"`},e.latex=function(){var e=this.textContents();return e.length===0?``:`\\text{`+e.replace(/\\/g,`\\backslash `).replace(/[{}]/g,`\\$&`)+`}`},e.html=function(){return`<span class="mq-text-mode" mathquill-command-id=`+this.id+`>`+this.textContents()+`</span>`},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=wE.prototype.selectTowards,e.deleteTowards=wE.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),n!==`$`)e[J]?(e[J].appendText(n),this.bubble(`reflow`)):kE(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),Q(`\\$`,`$`).createLeftOf(e);else if(!e[Y])e.insRightOf(this);else if(!e[J])e.insLeftOf(this);else{var r=OE(),i=this.ends[J];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i);a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a));for(var o=e-t.show().offset().left,s=o&&o<0?J:Y,c=s;t[s]&&o*c>0;)t[s].moveTowards(s,t),c=o,o=e-t.offset().left;if(s*o<-s*c&&t[-s].moveTowards(-s,t),!t.anticursor)this.anticursorPosition=t[J]&&t[J].text.length;else if(t.anticursor.parent===this){var l=t[J]&&t[J].text.length;if(this.anticursorPosition===l)t.anticursor=$T.copy(t);else{if(this.anticursorPosition<l){var u=t[J].splitRight(this.anticursorPosition);t[J]=u}else var u=t[Y].splitRight(this.anticursorPosition-l);t.anticursor=$T(this,u[J],u)}}},e.blur=function(e){EE.prototype.blur.call(this),e&&(this.textContents()===``?(this.remove(),e[J]===this?e[J]=this[J]:e[Y]===this&&(e[Y]=this[Y])):n(this))};function n(e){e.jQ[0].normalize();var t=e.jQ.contents().filter(function(e,t){return t.nodeType===3})[0];t||={data:``},ZT(`only node in TextBlock span is Text node`,t.nodeType===3);var n=kE(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}e.focus=EE.prototype.focus}),kE=q(eE,function(e,t){e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=G(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){QT(t),t===Y?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=kE(this.text.slice(e)).adopt(this.parent,this,this[Y]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t};function n(e,t){return t.charAt(e===J?0:-1+t.length)}e.moveTowards=function(e,t){QT(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):kE(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?e===Y?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){QT(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=kE(i).createDir(e,t);r[e]=a,t.insDirOf(e,a)}else{var o=this[-e];if(o)o.insTextAtDirEnd(i,e);else{var a=kE(i).createDir(-e,t);a.jQ.insDirOf(-e,t.selection.jQ)}this.text.length===1&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}});X.text=X.textnormal=X.textrm=X.textup=X.textmd=OE;function AE(e,t,n){return q(OE,{ctrlSeq:e,htmlTemplate:`<`+t+` `+n+`>&0</`+t+`>`})}X.em=X.italic=X.italics=X.emph=X.textit=X.textsl=AE(`\\textit`,`i`,`class="mq-text-mode"`),X.strong=X.bold=X.textbf=AE(`\\textbf`,`b`,`class="mq-text-mode"`),X.sf=X.textsf=AE(`\\textsf`,`span`,`class="mq-sans-serif mq-text-mode"`),X.tt=X.texttt=AE(`\\texttt`,`span`,`class="mq-monospace mq-text-mode"`),X.textsc=AE(`\\textsc`,`span`,`style="font-variant:small-caps" class="mq-text-mode"`),X.uppercase=AE(`\\uppercase`,`span`,`style="text-transform:uppercase" class="mq-text-mode"`),X.lowercase=AE(`\\lowercase`,`span`,`style="text-transform:lowercase" class="mq-text-mode"`);var jE=q(wE,function(e,t){e.init=function(e){t.init.call(this,`$`),this.cursor=e},e.htmlTemplate=`<span class="mq-math-mode">&0</span>`,e.createBlocks=function(){t.createBlocks.call(this),this.ends[J].cursor=this.cursor,this.ends[J].write=function(e,t){t===`$`?this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),Q(`\\$`,`$`).createLeftOf(e.show())):e[Y]?e[J]?EE.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent):EE.prototype.write.call(this,e,t)}},e.latex=function(){return`$`+this.ends[J].latex()+`$`}}),ME=q(DE,function(e,t){e.keystroke=function(e){if(!(e===`Spacebar`||e===`Shift-Spacebar`))return t.keystroke.apply(this,arguments)},e.write=function(e,t){if(e.show().deleteSelection(),t===`$`)jE(e).createLeftOf(e);else{var n;t===`<`?n=`&lt;`:t===`>`&&(n=`&gt;`),Q(t,n).createLeftOf(e)}}});cE.TextField=function(e){return q(e.EditableField,function(e,t){this.RootBlock=ME,e.__mathquillify=function(){return t.__mathquillify.call(this,`mq-editable-field mq-text-mode`)},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}})},rE[`\\`]=q(wE,function(e,t){e.ctrlSeq=`\\`,e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate=`<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>`,e.textTemplate=[`\\`],e.createBlocks=function(){t.createBlocks.call(this),this.ends[J].focus=function(){return this.parent.jQ.addClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.removeClass(`mq-empty`),this},this.ends[J].blur=function(){return this.parent.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.addClass(`mq-empty`),this},this.ends[J].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?Q(t).createLeftOf(e):(this.parent.renderCommand(e),(t!==`\\`||!this.isEmpty())&&e.parent.write(e,t))},this.ends[J].keystroke=function(e,n,r){if(e===`Tab`||e===`Enter`||e===`Spacebar`){this.parent.renderCommand(r.cursor),n.preventDefault();return}return t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass(`mq-blur`).bind(`mousedown mousemove`,function(e){return G(e.target=n).trigger(e),!1}).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return`\\`+this.ends[J].latex()+` `},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[Y]?e.insLeftOf(this[Y]):e.insAtRightEnd(this.parent);var t=this.ends[J].latex();t||=` `;var n=X[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):(n=OE(),n.replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}}),X[`∉`]=X.notin=K($,`\\notin `,`&#8713;`),X[`≅`]=X.cong=K($,`\\cong `,`&#8773;`),X[`≡`]=X.equiv=K($,`\\equiv `,`&#8801;`),X[`⊕`]=X.oplus=K($,`\\oplus `,`&#8853;`),X[`⊗`]=X.otimes=K($,`\\otimes `,`&#8855;`),X[`≠`]=X.ne=X.neq=K($,`\\ne `,`&ne;`),X[`≇`]=X.ncong=K($,`\\ncong `,`&ncong;`),X[`∗`]=X.ast=X.star=X.loast=X.lowast=K($,`\\ast `,`&lowast;`),X.therefor=X.therefore=K($,`\\therefore `,`&there4;`),X.cuz=X.because=K($,`\\because `,`&#8757;`),X.prop=X.propto=K($,`\\propto `,`&prop;`),X[`≈`]=X.asymp=X.approx=K($,`\\approx `,`&asymp;`),X[`≉`]=X.nasymp=X.napprox=K($,`\\napprox `,`&nap;`),X.isin=X.in=K($,`\\in `,`&isin;`),X.ni=X.contains=K($,`\\ni `,`&ni;`),X.notni=X.niton=X.notcontains=X.doesnotcontain=iE[`\\not\\ni`]=K($,`\\not\\ni `,`&#8716;`),X.sub=X.subset=K($,`\\subset `,`&sub;`),X.sup=X.supset=X.superset=K($,`\\supset `,`&sup;`),X.nsub=X.notsub=X.nsubset=X.notsubset=iE[`\\not\\subset`]=K($,`\\not\\subset `,`&#8836;`),X.nsup=X.notsup=X.nsupset=X.notsupset=X.nsuperset=X.notsuperset=iE[`\\not\\supset`]=K($,`\\not\\supset `,`&#8837;`),X.sube=X.subeq=X.subsete=X.subseteq=K($,`\\subseteq `,`&sube;`),X.supe=X.supeq=X.supsete=X.supseteq=X.supersete=X.superseteq=K($,`\\supseteq `,`&supe;`),X.nsube=X.nsubeq=X.notsube=X.notsubeq=X.nsubsete=X.nsubseteq=X.notsubsete=X.notsubseteq=iE[`\\not\\subseteq`]=K($,`\\not\\subseteq `,`&#8840;`),X.nsupe=X.nsupeq=X.notsupe=X.notsupeq=X.nsupsete=X.nsupseteq=X.notsupsete=X.notsupseteq=X.nsupersete=X.nsuperseteq=X.notsupersete=X.notsuperseteq=iE[`\\not\\supseteq`]=K($,`\\not\\supseteq `,`&#8841;`),X.N=X.naturals=X.Naturals=K(Q,`\\mathbb{N}`,`&#8469;`),X.P=X.primes=X.Primes=X.projective=X.Projective=X.probability=X.Probability=K(Q,`\\mathbb{P}`,`&#8473;`),X.Z=X.integers=X.Integers=K(Q,`\\mathbb{Z}`,`&#8484;`),X.Q=X.rationals=X.Rationals=K(Q,`\\mathbb{Q}`,`&#8474;`),X.R=X.reals=X.Reals=K(Q,`\\mathbb{R}`,`&#8477;`),X.C=X.complex=X.Complex=X.complexes=X.Complexes=X.complexplane=X.Complexplane=X.ComplexPlane=K(Q,`\\mathbb{C}`,`&#8450;`),X.H=X.Hamiltonian=X.quaternions=X.Quaternions=K(Q,`\\mathbb{H}`,`&#8461;`),X.quad=X.emsp=K(Q,`\\quad `,` `),X.qquad=K(Q,`\\qquad `,` `),X.diamond=K(Q,`\\diamond `,`&#9671;`),X.bigtriangleup=K(Q,`\\bigtriangleup `,`&#9651;`),X.ominus=K(Q,`\\ominus `,`&#8854;`),X.uplus=K(Q,`\\uplus `,`&#8846;`),X.bigtriangledown=K(Q,`\\bigtriangledown `,`&#9661;`),X.sqcap=K(Q,`\\sqcap `,`&#8851;`),X.triangleleft=K(Q,`\\triangleleft `,`&#8882;`),X.sqcup=K(Q,`\\sqcup `,`&#8852;`),X.triangleright=K(Q,`\\triangleright `,`&#8883;`),X.odot=X.circledot=K(Q,`\\odot `,`&#8857;`),X.bigcirc=K(Q,`\\bigcirc `,`&#9711;`),X.dagger=K(Q,`\\dagger `,`&#0134;`),X.ddagger=K(Q,`\\ddagger `,`&#135;`),X.wr=K(Q,`\\wr `,`&#8768;`),X.amalg=K(Q,`\\amalg `,`&#8720;`),X.models=K(Q,`\\models `,`&#8872;`),X.prec=K(Q,`\\prec `,`&#8826;`),X.succ=K(Q,`\\succ `,`&#8827;`),X.preceq=K(Q,`\\preceq `,`&#8828;`),X.succeq=K(Q,`\\succeq `,`&#8829;`),X.simeq=K(Q,`\\simeq `,`&#8771;`),X.mid=K(Q,`\\mid `,`&#8739;`),X.ll=K(Q,`\\ll `,`&#8810;`),X.gg=K(Q,`\\gg `,`&#8811;`),X.parallel=K(Q,`\\parallel `,`&#8741;`),X.nparallel=K(Q,`\\nparallel `,`&#8742;`),X.bowtie=K(Q,`\\bowtie `,`&#8904;`),X.sqsubset=K(Q,`\\sqsubset `,`&#8847;`),X.sqsupset=K(Q,`\\sqsupset `,`&#8848;`),X.smile=K(Q,`\\smile `,`&#8995;`),X.sqsubseteq=K(Q,`\\sqsubseteq `,`&#8849;`),X.sqsupseteq=K(Q,`\\sqsupseteq `,`&#8850;`),X.doteq=K(Q,`\\doteq `,`&#8784;`),X.frown=K(Q,`\\frown `,`&#8994;`),X.vdash=K(Q,`\\vdash `,`&#8870;`),X.dashv=K(Q,`\\dashv `,`&#8867;`),X.nless=K(Q,`\\nless `,`&#8814;`),X.ngtr=K(Q,`\\ngtr `,`&#8815;`),X.longleftarrow=K(Q,`\\longleftarrow `,`&#8592;`),X.longrightarrow=K(Q,`\\longrightarrow `,`&#8594;`),X.Longleftarrow=K(Q,`\\Longleftarrow `,`&#8656;`),X.Longrightarrow=K(Q,`\\Longrightarrow `,`&#8658;`),X.longleftrightarrow=K(Q,`\\longleftrightarrow `,`&#8596;`),X.updownarrow=K(Q,`\\updownarrow `,`&#8597;`),X.Longleftrightarrow=K(Q,`\\Longleftrightarrow `,`&#8660;`),X.Updownarrow=K(Q,`\\Updownarrow `,`&#8661;`),X.mapsto=K(Q,`\\mapsto `,`&#8614;`),X.nearrow=K(Q,`\\nearrow `,`&#8599;`),X.hookleftarrow=K(Q,`\\hookleftarrow `,`&#8617;`),X.hookrightarrow=K(Q,`\\hookrightarrow `,`&#8618;`),X.searrow=K(Q,`\\searrow `,`&#8600;`),X.leftharpoonup=K(Q,`\\leftharpoonup `,`&#8636;`),X.rightharpoonup=K(Q,`\\rightharpoonup `,`&#8640;`),X.swarrow=K(Q,`\\swarrow `,`&#8601;`),X.leftharpoondown=K(Q,`\\leftharpoondown `,`&#8637;`),X.rightharpoondown=K(Q,`\\rightharpoondown `,`&#8641;`),X.nwarrow=K(Q,`\\nwarrow `,`&#8598;`),X.ldots=K(Q,`\\ldots `,`&#8230;`),X.cdots=K(Q,`\\cdots `,`&#8943;`),X.vdots=K(Q,`\\vdots `,`&#8942;`),X.ddots=K(Q,`\\ddots `,`&#8945;`),X.surd=K(Q,`\\surd `,`&#8730;`),X.triangle=K(Q,`\\triangle `,`&#9651;`),X.ell=K(Q,`\\ell `,`&#8467;`),X.top=K(Q,`\\top `,`&#8868;`),X.flat=K(Q,`\\flat `,`&#9837;`),X.natural=K(Q,`\\natural `,`&#9838;`),X.sharp=K(Q,`\\sharp `,`&#9839;`),X.wp=K(Q,`\\wp `,`&#8472;`),X.bot=K(Q,`\\bot `,`&#8869;`),X.clubsuit=K(Q,`\\clubsuit `,`&#9827;`),X.diamondsuit=K(Q,`\\diamondsuit `,`&#9826;`),X.heartsuit=K(Q,`\\heartsuit `,`&#9825;`),X.spadesuit=K(Q,`\\spadesuit `,`&#9824;`),X.circledot=K(Q,`\\circledot `,`&#8857;`),X.middot=K(Q,`\\middot `,`&middot;`),X.dottedsquare=K(Q,`\\dottedsquare `,`&#11034;`),X.square=K(Q,`\\square `,`&#11036;`),X.rectangle=K(Q,`\\rectangle `,`&#9647;`),X.oint=K(Q,`\\oint `,`&#8750;`),X.bigcap=K(Q,`\\bigcap `,`&#8745;`),X.bigcup=K(Q,`\\bigcup `,`&#8746;`),X.bigsqcup=K(Q,`\\bigsqcup `,`&#8852;`),X.bigvee=K(Q,`\\bigvee `,`&#8744;`),X.bigwedge=K(Q,`\\bigwedge `,`&#8743;`),X.bigodot=K(Q,`\\bigodot `,`&#8857;`),X.bigotimes=K(Q,`\\bigotimes `,`&#8855;`),X.bigoplus=K(Q,`\\bigoplus `,`&#8853;`),X.biguplus=K(Q,`\\biguplus `,`&#8846;`),X.lfloor=K(Q,`\\lfloor `,`&#8970;`),X.rfloor=K(Q,`\\rfloor `,`&#8971;`),X.lceil=K(Q,`\\lceil `,`&#8968;`),X.rceil=K(Q,`\\rceil `,`&#8969;`),X.opencurlybrace=X.lbrace=K(Q,`\\lbrace `,`{`),X.closecurlybrace=X.rbrace=K(Q,`\\rbrace `,`}`),X.lbrack=K(Q,`[`),X.rbrack=K(Q,`]`),X.mug=K(Q,`\\mug `,`µg`),X.mus=K(Q,`\\mus `,`µs`),X.mum=K(Q,`\\mum `,`µm`),X.muL=K(Q,`\\muL `,`µL`),X.slash=K(Q,`/`),X.vert=K(Q,`|`),X.perp=X.perpendicular=K(Q,`\\perp `,`&perp;`),X.nabla=X.del=K(Q,`\\nabla `,`&nabla;`),X.hbar=K(Q,`\\hbar `,`&#8463;`),X.AA=X.Angstrom=X.angstrom=K(Q,`\\text\\AA `,`&#8491;`),X.ring=X.circ=X.circle=K(Q,`\\circ `,`&#8728;`),X.bull=X.bullet=K(Q,`\\bullet `,`&bull;`),X.setminus=X.smallsetminus=K(Q,`\\setminus `,`&#8726;`),X.not=X[`¬`]=X.neg=K(Q,`\\neg `,`&not;`),X[`…`]=X.dots=X.ellip=X.hellip=X.ellipsis=X.hellipsis=K(Q,`\\dots `,`&hellip;`),X.converges=X.darr=X.dnarr=X.dnarrow=X.downarrow=K(Q,`\\downarrow `,`&darr;`),X.dArr=X.dnArr=X.dnArrow=X.Downarrow=K(Q,`\\Downarrow `,`&dArr;`),X.diverges=X.uarr=X.uparrow=K(Q,`\\uparrow `,`&uarr;`),X.uArr=X.Uparrow=K(Q,`\\Uparrow `,`&uArr;`),X.to=K($,`\\to `,`&rarr;`),X.rarr=X.rightarrow=K(Q,`\\rightarrow `,`&rarr;`),X.implies=K($,`\\Rightarrow `,`&rArr;`),X.rArr=X.Rightarrow=K(Q,`\\Rightarrow `,`&rArr;`),X.gets=K($,`\\gets `,`&larr;`),X.larr=X.leftarrow=K(Q,`\\leftarrow `,`&larr;`),X.impliedby=K($,`\\Leftarrow `,`&lArr;`),X.lArr=X.Leftarrow=K(Q,`\\Leftarrow `,`&lArr;`),X.harr=X.lrarr=X.leftrightarrow=K(Q,`\\leftrightarrow `,`&harr;`),X.iff=K($,`\\Leftrightarrow `,`&hArr;`),X.hArr=X.lrArr=X.Leftrightarrow=K(Q,`\\Leftrightarrow `,`&hArr;`),X.Re=X.Real=X.real=K(Q,`\\Re `,`&real;`),X.Im=X.imag=X.image=X.imagin=X.imaginary=X.Imaginary=K(Q,`\\Im `,`&image;`),X.part=X.partial=K(Q,`\\partial `,`&part;`),X.infty=X.infin=X.infinity=K(Q,`\\infty `,`&infin;`),X.pounds=K(Q,`\\pounds `,`&pound;`),X.alef=X.alefsym=X.aleph=X.alephsym=K(Q,`\\aleph `,`&alefsym;`),X.xist=X.xists=X.exist=X.exists=K(Q,`\\exists `,`&exist;`),X.nexists=X.nexist=K(Q,`\\nexists `,`&#8708;`),X.and=X.land=X.wedge=K($,`\\wedge `,`&and;`),X.or=X.lor=X.vee=K($,`\\vee `,`&or;`),X.o=X.O=X.empty=X.emptyset=X.oslash=X.Oslash=X.nothing=X.varnothing=K($,`\\varnothing `,`&empty;`),X.cup=X.union=K($,`\\cup `,`&cup;`),X.cap=X.intersect=X.intersection=K($,`\\cap `,`&cap;`),X.deg=X.degree=K(Q,`\\degree `,`&deg;`),X.ang=X.angle=K(Q,`\\angle `,`&ang;`),X.measuredangle=K(Q,`\\measuredangle `,`m&ang;`);var NE=q(Q,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[J]instanceof PE&&e[J].isItalic!==!1||e[J]instanceof lD&&e[J][J]instanceof PE&&e[J][J].isItalic!==!1)?(X._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),PE=q(TE,function(e,t){e.init=function(e,n){t.init.call(this,e,`<var>`+(n||e)+`</var>`)},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?e[0]==`\\`?e=e.slice(1,e.length):e[e.length-1]==` `&&(e=e.slice(0,-1)):(this[J]&&!(this[J]instanceof PE)&&!(this[J]instanceof $)&&this[J].ctrlSeq!==`\\ `&&(e=`*`+e),this[Y]&&!(this[Y]instanceof $)&&!(this[Y]instanceof lD)&&(e+=`*`)),e}});lE.p.autoCommands={_maxLength:0},uE.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`autocommand "`+a+`" not minimum length of 2`;if(X[a]===zE)throw`"`+a+`" is a built-in operator name`;n[a]=1,r=GT(r,a.length)}return n._maxLength=r,n};var FE=q(PE,function(e,t){e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i=``,a=this,o=0;a instanceof FE&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[J],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(var o=1,a=this;o<i.length;o+=1,a=a[J]);return nE(a,this).remove(),e[J]=a[J],X[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass(`mq-operator-name`,!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==J&&this[Y]instanceof FE||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(t._maxLength!==0){for(var r=this.letter,i=this[J];i instanceof FE;i=i[J])r=i.letter+r;for(var a=this[Y];a instanceof FE;a=a[Y])r+=a.letter;nE(i[Y]||this.parent.ends[J],a[J]||this.parent.ends[Y]).each(function(e){e.italicize(!0).jQ.removeClass(`mq-first mq-last mq-followed-by-supsub`),e.ctrlSeq=e.letter});outer:for(var o=0,s=i[Y]||this.parent.ends[J];o<r.length;o+=1,s=s[Y])for(var c=WT(t._maxLength,r.length-o);c>0;--c){var l=r.slice(o,o+c);if(t.hasOwnProperty(l)){for(var u=0,d=s;u<c;u+=1,d=d[Y]){d.italicize(!1);var f=d}var p=IE.hasOwnProperty(l);if(s.ctrlSeq=(p?`\\`:`\\operatorname{`)+s.ctrlSeq,f.ctrlSeq+=p?` `:`}`,RE.hasOwnProperty(l)&&f[J][J][J].jQ.addClass(`mq-last`),n(s[J])||s.jQ.addClass(`mq-first`),!n(f[Y]))if(f[Y]instanceof lD){var m=f[Y];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass(`mq-after-operator-name`,!(m[Y]instanceof vD))})()}else f.jQ.toggleClass(`mq-last`,!(f[Y]instanceof vD));o+=c-1,s=f;continue outer}}}};function n(e){return!e||e instanceof $||e instanceof fD}}),IE={},LE=lE.p.autoOperatorNames={_maxLength:9},RE={limsup:1,liminf:1,projlim:1,injlim:1};(function(){for(var e=`arg deg det dim exp gcd hom inf ker lg ln log max min sup limsup liminf injlim projlim Pr`.split(` `),t=0;t<e.length;t+=1)IE[e[t]]=LE[e[t]]=1;for(var n=`sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth`.split(` `),t=0;t<n.length;t+=1)IE[n[t]]=1;for(var r=`sin cos tan sec cosec csc cotan cot ctg`.split(` `),t=0;t<r.length;t+=1)LE[r[t]]=LE[`arc`+r[t]]=LE[r[t]+`h`]=LE[`ar`+r[t]+`h`]=LE[`arc`+r[t]+`h`]=1;for(var i=`gcf hcf lcm proj span`.split(` `),t=0;t<i.length;t+=1)LE[i[t]]=1})(),uE.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`"`+a+`" not minimum length of 2`;n[a]=1,r=GT(r,a.length)}return n._maxLength=r,n};var zE=q(TE,function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)FE(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=EE(),n=0;n<e.length;n+=1)FE(e.charAt(n)).adopt(t,t.ends[Y],0);return Z.succeed(t.children())}});for(var BE in LE)LE.hasOwnProperty(BE)&&(X[BE]=zE);X.operatorname=q(wE,function(e){e.createLeftOf=KT,e.numBlocks=function(){return 1},e.parser=function(){return SE.block.map(function(e){return e.children()})}}),X.f=q(FE,function(e,t){e.init=function(){TE.p.init.call(this,this.letter=`f`,`<var class="mq-f">f</var>`)},e.italicize=function(e){return this.jQ.html(`f`).toggleClass(`mq-f`,e),t.italicize.apply(this,arguments)}}),X[` `]=X.space=K(Q,`\\ `,`&nbsp;`),X[`'`]=X.prime=K(Q,`'`,`&prime;`),X[`″`]=X.dprime=K(Q,`″`,`&Prime;`),X[`"`]=X.doublePrime=K(Q,`"`,`&Prime;`),X.backslash=K(Q,`\\backslash `,`\\`),rE[`\\`]||=X.backslash,X.$=K(Q,`\\$`,`$`);var VE=q(TE,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span class="mq-nonSymbola">`+(n||e)+`</span>`)}});X[`@`]=VE,X[`&`]=K(VE,`\\&`,`&amp;`),X[`%`]=K(VE,`\\%`,`%`),X.alpha=X.beta=X.gamma=X.delta=X.zeta=X.eta=X.theta=X.iota=X.kappa=X.mu=X.nu=X.xi=X.rho=X.sigma=X.tau=X.chi=X.psi=X.omega=q(PE,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),X.phi=K(PE,`\\phi `,`&#981;`),X.phiv=X.varphi=K(PE,`\\varphi `,`&phi;`),X.epsilon=K(PE,`\\epsilon `,`&#1013;`),X.epsiv=X.varepsilon=K(PE,`\\varepsilon `,`&epsilon;`),X.piv=X.varpi=K(PE,`\\varpi `,`&piv;`),X.sigmaf=X.sigmav=X.varsigma=K(PE,`\\varsigma `,`&sigmaf;`),X.thetav=X.vartheta=X.thetasym=K(PE,`\\vartheta `,`&thetasym;`),X.upsilon=X.upsi=K(PE,`\\upsilon `,`&upsilon;`),X.gammad=X.Gammad=X.digamma=K(PE,`\\digamma `,`&#989;`),X.kappav=X.varkappa=K(PE,`\\varkappa `,`&#1008;`),X.rhov=X.varrho=K(PE,`\\varrho `,`&#1009;`),X.pi=X.π=K(VE,`\\pi `,`&pi;`),X.lambda=K(VE,`\\lambda `,`&lambda;`),X.Upsilon=X.Upsi=X.upsih=X.Upsih=K(TE,`\\Upsilon `,`<var style="font-family: serif">&upsih;</var>`),X.Gamma=X.Delta=X.Theta=X.Lambda=X.Xi=X.Pi=X.Sigma=X.Phi=X.Psi=X.Omega=q(Q,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),X.forall=X[`∀`]=K(Q,`\\forall `,`&#8704;`);var HE=q(wE,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=SE.parse(this.latex);t.children().adopt(e.parent,e[J],e[Y]),e[J]=t.ends[Y],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[Y][Y].siblingCreated&&t.ends[Y][Y].siblingCreated(e.options,J),t.ends[J][J].siblingCreated&&t.ends[J][J].siblingCreated(e.options,Y),e.parent.bubble(`reflow`)},e.parser=function(){var e=SE.parse(this.latex).children();return Z.succeed(e)}});X[`¹`]=K(HE,`^1`),X[`²`]=K(HE,`^2`),X[`³`]=K(HE,`^3`),X[`¼`]=K(HE,`\\frac14`),X[`½`]=K(HE,`\\frac12`),X[`¾`]=K(HE,`\\frac34`);var UE=q($,function(e){e.init=Q.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){function n(e){if(e[J]){if(e[J]instanceof $||/^[,;:\(\[]$/.test(e[J].ctrlSeq))return``}else if(e.parent&&e.parent.parent&&e.parent.parent.isStyleBlock())return n(e.parent.parent);else return``;return`mq-binary-operator`}if(t!==Y)return this.jQ[0].className=n(this),this}});X[`+`]=K(UE,`+`,`+`),X[`–`]=X[`-`]=K(UE,`-`,`&minus;`),X[`±`]=X.pm=X.plusmn=X.plusminus=K(UE,`\\pm `,`&plusmn;`),X.mp=X.mnplus=X.minusplus=K(UE,`\\mp `,`&#8723;`),rE[`*`]=X.sdot=X.cdot=K($,`\\cdot `,`&middot;`,`*`);var WE=q($,function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?`Strict`:``;t.init.call(this,e[`ctrlSeq`+r],e[`html`+r],e[`text`+r])},e.swap=function(e){this.strict=e;var t=e?`Strict`:``;this.ctrlSeq=this.data[`ctrlSeq`+t],this.jQ.html(this.data[`html`+t]),this.textTemplate=[this.data[`text`+t]]},e.deleteTowards=function(e,n){if(e===J&&!this.strict){this.swap(!0),this.bubble(`reflow`);return}t.deleteTowards.apply(this,arguments)}}),GE={ctrlSeq:`\\le `,html:`&le;`,text:`≤`,ctrlSeqStrict:`<`,htmlStrict:`&lt;`,textStrict:`<`},KE={ctrlSeq:`\\ge `,html:`&ge;`,text:`≥`,ctrlSeqStrict:`>`,htmlStrict:`&gt;`,textStrict:`>`};X[`<`]=X.lt=K(WE,GE,!0),X[`>`]=X.gt=K(WE,KE,!0),X[`≤`]=X.le=X.leq=K(WE,GE,!1),X[`≥`]=X.ge=X.geq=K(WE,KE,!1);var qE=q($,function(e,t){e.init=function(){t.init.call(this,`=`,`=`)},e.createLeftOf=function(e){if(e[J]instanceof WE&&e[J].strict){e[J].swap(!1),e[J].bubble(`reflow`);return}t.createLeftOf.apply(this,arguments)}});X[`=`]=qE,X[`×`]=X.times=K($,`\\times `,`&times;`,`[x]`),X[`÷`]=X.div=X.divide=X.divides=K($,`\\div `,`&divide;`,`[/]`),rE[`~`]=X.sim=K($,`\\sim `,`~`,`~`),rE[`≁`]=X.nsim=K($,`\\nsim `,`≁`,`≁`),X.complement=X[`∁`]=K(Q,`\\complement `,`&#8705;`),X.nexists=X[`∄`]=K(Q,`\\nexists `,`&#8708;`),X.sphericalangle=X[`∢`]=K(Q,`\\sphericalangle `,`&#8738;`),X.iint=X[`∬`]=K(Q,`\\iint `,`&#8748;`),X.iiint=X[`∭`]=K(Q,`\\iiint `,`&#8749;`),X.oiint=X[`∯`]=K(Q,`\\oiint `,`&#8751;`),X.oiiint=X[`∰`]=K(Q,`\\oiiint `,`&#8752;`),X.backsim=X[`∽`]=K(Q,`\\backsim `,`&#8765;`),X.backsimeq=X[`⋍`]=K(Q,`\\backsimeq `,`&#8909;`),X.eqsim=X[`≂`]=K(Q,`\\eqsim `,`&#8770;`),X.ncong=X[`≇`]=K(Q,`\\ncong `,`&#8775;`),X.approxeq=X[`≊`]=K(Q,`\\approxeq `,`&#8778;`),X.bumpeq=X[`≏`]=K(Q,`\\bumpeq `,`&#8783;`),X.Bumpeq=X[`≎`]=K(Q,`\\Bumpeq `,`&#8782;`),X.doteqdot=X[`≑`]=K(Q,`\\doteqdot `,`&#8785;`),X.fallingdotseq=X[`≒`]=K(Q,`\\fallingdotseq `,`&#8786;`),X.risingdotseq=X[`≓`]=K(Q,`\\risingdotseq `,`&#8787;`),X.eqcirc=X[`≖`]=K(Q,`\\eqcirc `,`&#8790;`),X.circeq=X[`≗`]=K(Q,`\\circeq `,`&#8791;`),X.triangleq=X[`≜`]=K(Q,`\\triangleq `,`&#8796;`),X.leqq=X[`≦`]=K(Q,`\\leqq `,`&#8806;`),X.geqq=X[`≧`]=K(Q,`\\geqq `,`&#8807;`),X.lneqq=X[`≨`]=K(Q,`\\lneqq `,`&#8808;`),X.gneqq=X[`≩`]=K(Q,`\\gneqq `,`&#8809;`),X.between=X[`≬`]=K(Q,`\\between `,`&#8812;`),X.nleq=X[`≰`]=K(Q,`\\nleq `,`&#8816;`),X.ngeq=X[`≱`]=K(Q,`\\ngeq `,`&#8817;`),X.lesssim=X[`≲`]=K(Q,`\\lesssim `,`&#8818;`),X.gtrsim=X[`≳`]=K(Q,`\\gtrsim `,`&#8819;`),X.lessgtr=X[`≶`]=K(Q,`\\lessgtr `,`&#8822;`),X.gtrless=X[`≷`]=K(Q,`\\gtrless `,`&#8823;`),X.preccurlyeq=X[`≼`]=K(Q,`\\preccurlyeq `,`&#8828;`),X.succcurlyeq=X[`≽`]=K(Q,`\\succcurlyeq `,`&#8829;`),X.precsim=X[`≾`]=K(Q,`\\precsim `,`&#8830;`),X.succsim=X[`≿`]=K(Q,`\\succsim `,`&#8831;`),X.nprec=X[`⊀`]=K(Q,`\\nprec `,`&#8832;`),X.nsucc=X[`⊁`]=K(Q,`\\nsucc `,`&#8833;`),X.subsetneq=X[`⊊`]=K(Q,`\\subsetneq `,`&#8842;`),X.supsetneq=X[`⊋`]=K(Q,`\\supsetneq `,`&#8843;`),X.vDash=X[`⊨`]=K(Q,`\\vDash `,`&#8872;`),X.Vdash=X[`⊩`]=K(Q,`\\Vdash `,`&#8873;`),X.Vvdash=X[`⊪`]=K(Q,`\\Vvdash `,`&#8874;`),X.VDash=X[`⊫`]=K(Q,`\\VDash `,`&#8875;`),X.nvdash=X[`⊬`]=K(Q,`\\nvdash `,`&#8876;`),X.nvDash=X[`⊭`]=K(Q,`\\nvDash `,`&#8877;`),X.nVdash=X[`⊮`]=K(Q,`\\nVdash `,`&#8878;`),X.nVDash=X[`⊯`]=K(Q,`\\nVDash `,`&#8879;`),X.vartriangleleft=X[`⊲`]=K(Q,`\\vartriangleleft `,`&#8882;`),X.vartriangleright=X[`⊳`]=K(Q,`\\vartriangleright `,`&#8883;`),X.trianglelefteq=X[`⊴`]=K(Q,`\\trianglelefteq `,`&#8884;`),X.trianglerighteq=X[`⊵`]=K(Q,`\\trianglerighteq `,`&#8885;`),X.multimap=X[`⊸`]=K(Q,`\\multimap `,`&#8888;`),X.Subset=X[`⋐`]=K(Q,`\\Subset `,`&#8912;`),X.Supset=X[`⋑`]=K(Q,`\\Supset `,`&#8913;`),X.Cap=X[`⋒`]=K(Q,`\\Cap `,`&#8914;`),X.Cup=X[`⋓`]=K(Q,`\\Cup `,`&#8915;`),X.pitchfork=X[`⋔`]=K(Q,`\\pitchfork `,`&#8916;`),X.lessdot=X[`⋖`]=K(Q,`\\lessdot `,`&#8918;`),X.gtrdot=X[`⋗`]=K(Q,`\\gtrdot `,`&#8919;`),X.lll=X[`⋘`]=K(Q,`\\lll `,`&#8920;`),X.ggg=X[`⋙`]=K(Q,`\\ggg `,`&#8921;`),X.lesseqgtr=X[`⋚`]=K(Q,`\\lesseqgtr `,`&#8922;`),X.gtreqless=X[`⋛`]=K(Q,`\\gtreqless `,`&#8923;`),X.curlyeqprec=X[`⋞`]=K(Q,`\\curlyeqprec `,`&#8926;`),X.curlyeqsucc=X[`⋟`]=K(Q,`\\curlyeqsucc `,`&#8927;`),X.nsim=X[`≁`]=K(Q,`\\nsim `,`&#8769;`),X.lnsim=X[`⋦`]=K(Q,`\\lnsim `,`&#8934;`),X.gnsim=X[`⋧`]=K(Q,`\\gnsim `,`&#8935;`),X.precnsim=X[`⋨`]=K(Q,`\\precnsim `,`&#8936;`),X.succnsim=X[`⋩`]=K(Q,`\\succnsim `,`&#8937;`),X.ntriangleleft=X[`⋪`]=K(Q,`\\ntriangleleft `,`&#8938;`),X.ntriangleright=X[`⋫`]=K(Q,`\\ntriangleright `,`&#8939;`),X.ntrianglelefteq=X[`⋬`]=K(Q,`\\ntrianglelefteq `,`&#8940;`),X.ntrianglerighteq=X[`⋭`]=K(Q,`\\ntrianglerighteq `,`&#8941;`),X.blacksquare=X[`∎`]=K(Q,`\\blacksquare `,`&#8718;`),X.colon=X[`∶`]=K(Q,`\\colon `,`&#8758;`),X.llcorner=X[`∟`]=K(Q,`\\llcorner `,`&#8735;`),X.dotplus=X[`∔`]=K($,`\\dotplus `,`&#8724;`),X.nmid=X[`∤`]=K($,`
199
+ mid `,`&#8740;`),X.intercal=X[`⊺`]=K($,`\\intercal `,`&#8890;`),X.veebar=X[`⊻`]=K($,`\\veebar `,`&#8891;`),X.barwedge=X[`⊼`]=K($,`\\barwedge `,`&#8892;`),X.ltimes=X[`⋉`]=K($,`\\ltimes `,`&#8905;`),X.rtimes=X[`⋊`]=K($,`\\rtimes `,`&#8906;`),X.leftthreetimes=X[`⋋`]=K($,`\\leftthreetimes `,`&#8907;`),X.rightthreetimes=X[`⋌`]=K($,`\\rightthreetimes `,`&#8908;`),X.curlyvee=X[`⋎`]=K($,`\\curlyvee `,`&#8910;`),X.curlywedge=X[`⋏`]=K($,`\\curlywedge `,`&#8911;`),X.circledcirc=X[`⊚`]=K($,`\\circledcirc `,`&#8858;`),X.circledast=X[`⊛`]=K($,`\\circledast `,`&#8859;`),X.circleddash=X[`⊝`]=K($,`\\circleddash `,`&#8861;`),X.boxplus=X[`⊞`]=K($,`\\boxplus `,`&#8862;`),X.boxminus=X[`⊟`]=K($,`\\boxminus `,`&#8863;`),X.boxtimes=X[`⊠`]=K($,`\\boxtimes `,`&#8864;`),X.boxdot=X[`⊡`]=K($,`\\boxdot `,`&#8865;`),X[`∂`]=X.partial,X[`∃`]=X.exists,X[`∅`]=X.varnothing,X[`∆`]=X.triangle,X[`∇`]=X.nabla,X[`∈`]=X.in,X[`∊`]=X.in,X[`∋`]=X.ni,X[`∌`]=X.notni,X[`∍`]=X.ni,X[`∐`]=X.amalg,X[`−`]=X[`-`],X[`∓`]=X.mp,X[`∖`]=X.setminus,X[`∘`]=X.circ,X[`∙`]=X.bullet,X[`∝`]=X.propto,X[`∞`]=X.infty,X[`∠`]=X.angle,X[`∡`]=X.measuredangle,X[`∣`]=X.divides,X[`∥`]=X.parallel,X[`∦`]=X.nparallel,X[`∧`]=X.wedge,X[`∨`]=X.vee,X[`∩`]=X.cap,X[`∪`]=X.cup,X[`∮`]=X.oint,X[`∴`]=X.therefore,X[`∵`]=X.because,X[`∼`]=X.sim,X[`≀`]=X.wr,X[`≃`]=X.simeq,X[`≍`]=X.asymp,X[`≐`]=X.doteq,X[`≪`]=X.ll,X[`≫`]=X.gg,X[`≺`]=X.prec,X[`≻`]=X.succ,X[`⊂`]=X.subset,X[`⊃`]=X.supset,X[`⊆`]=X.subseteq,X[`⊇`]=X.supseteq,X[`⊈`]=X.nsubseteq,X[`⊉`]=X.nsupseteq,X[`⊏`]=X.sqsubset,X[`⊐`]=X.sqsupset,X[`⊓`]=X.sqcap,X[`⊔`]=X.sqcup,X[`⊖`]=X.ominus,X[`⊘`]=X.oslash,X[`⊙`]=X.odot,X[`⊢`]=X.vdash,X[`⊣`]=X.dashv,X[`⊤`]=X.top,X[`⊥`]=X.bot,X[`⊧`]=X.models,X[`⋀`]=X.wedge,X[`⋁`]=X.vee,X[`⋂`]=X.cap,X[`⋃`]=X.cup,X[`⋄`]=X.diamond,X[`⋅`]=X.cdot,X[`⋆`]=X.star,X[`⋈`]=X.bowtie,X[`⋮`]=X.vdots,X[`⋯`]=X.cdots,X[`⋱`]=X.ddots;var JE,YE=KT,XE=document.createElement(`div`).style,ZE={transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1},QE;for(var $E in ZE)if($E in XE){QE=$E;break}QE?JE=function(e,t,n){e.css(QE,`scale(`+t+`,`+n+`)`)}:`filter`in XE?(YE=function(e){e.className=e.className},JE=function(e,t,n){t/=1+(n-1)/2,e.css(`fontSize`,n+`em`),e.hasClass(`mq-matrixed-container`)||e.addClass(`mq-matrixed-container`).wrapInner(`<span class="mq-matrixed"></span>`);var r=e.children().css(`filter`,`progid:DXImageTransform.Microsoft.Matrix(M11=`+t+`,SizingMethod='auto expand')`);function i(){e.css(`marginRight`,(r.width()-1)*(t-1)/t+`px`)}i();var a=setInterval(i);G(window).load(function(){clearTimeout(a),i()})}):JE=function(e,t,n){e.css(`fontSize`,n+`em`)};var eD=q(wE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`>&0</`+n+`>`)}}),tD=q(wE,function(e,t){e.init=function(e,n,r){this.args=arguments,this.htmlTemplate=`<`+n+` `+r+`><`+n+` class="mq-xarrow-over">&0</`+n+`><`+n+` class="mq-xarrow-under"></`+n+`></`+n+`>`,t.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`(`,`)`]},e.parser=function(){var e=this;return SE.optBlock.then(function(t){return SE.block.map(function(n){var r=nD.apply(null,e.args);return r.blocks=[t,n],t.adopt(r,0,0),n.adopt(r,t,0),r})}).or(t.parser.call(this))}}),nD=q(tD,function(e,t){e.init=function(e,t,n){this.htmlTemplate=`<`+t+` `+n+`><`+t+` class="mq-xarrow-over">&1</`+t+`><`+t+` class="mq-xarrow-under">&0</`+t+`></`+t+`>`,wE.prototype.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`[`,`](`,`)`]},e.latex=function(){return this.ctrlSeq+`[`+this.ends[J].latex()+`]{`+this.ends[Y].latex()+`}`},e.finalizeTree=function(){this.downInto=this.ends[J].upOutOf=this.ends[Y],this.upInto=this.ends[Y].downOutOf=this.ends[J]}}),rD=function(e){var t=`<span class="`+e+`-inner-right">g</span><span class="`+e+`-inner-left">h</span>`;return q(wE,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`<span class="mq-empty-box">&0</span></`+i+`></`+i+`>`)}})},iD=q(wE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`><span class="mq-longdiv-curve-border">)</span><span class="mq-longdiv-inner"><span class="mq-empty">&0</span></`+n+`></span>`)}}),aD=q(wE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-row"><p>`+r+`</p><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td><td class="mq-empty"></td><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),oD=q(wE,function(e,t){e.init=function(e){t.init.call(this,e,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),sD=q(wE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-col"><p>`+r+`</p></span><span class="matrix-edit-content-col"><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),cD=function(e,t){return q(TE,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`</`+i+`></`+i+`>`)}})};X.mathrm=K(eD,`\\mathrm`,`span`,`class="mq-roman mq-font"`),X.mathit=K(eD,`\\mathit`,`i`,`class="mq-font"`),X.mathbf=K(eD,`\\mathbf`,`b`,`class="mq-font"`),X.mathsf=K(eD,`\\mathsf`,`span`,`class="mq-sans-serif mq-font"`),X.mathtt=K(eD,`\\mathtt`,`span`,`class="mq-monospace mq-font"`),X.underline=K(eD,`\\underline`,`span`,`class="mq-non-leaf mq-underline"`),X.overline=X.bar=K(rD(`mq-overline`),`\\overline`,`span`,`class="mq-non-leaf mq-overline"`),X.longdiv=K(iD,`\\longdiv`,`span`,`class="mq-non-leaf mq-longdiv"`),X.overrightarrow=K(rD(`mq-overarrow`),`\\overrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-right"`),X.overleftarrow=K(rD(`mq-overarrow`),`\\overleftarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-left"`),X.xleftarrow=K(tD,`\\xleftarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-left"`),X.xrightarrow=K(tD,`\\xrightarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-right"`),X.overleftrightarrow=K(eD,`\\overleftrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-both"`),X.overarc=K(eD,`\\overarc`,`span`,`class="mq-non-leaf mq-overarc"`),X.dot=q(wE,function(e,t){e.init=function(){t.init.call(this,`\\dot`,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),X.addmatrixrow=K(aD,`\\addmatrixrow`,`span`,`+`),X.addmatrixcol=K(sD,`\\addmatrixcol`,`span`,`+`),X.ngtr=X[`≯`]=K(cD(`mq-ngtr`,`&#8815;`),`\\ngtr `,`span`,`class="mq-non-leaf mq-ngtr"`),X.nless=X[`≮`]=K(cD(`mq-nless`,`&#8814;`),`\\nless `,`span`,`class="mq-non-leaf mq-nless"`),X.dot=K(oD,`\\dot`),X.parallelogram=K(cD(`mq-parallelogram`,`&#9649;`),`\\parallelogram `,`span`,`class="mq-non-leaf mq-parallelogram"`),X.textcolor=q(wE,function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate=`<span class="mq-textcolor" style="color:`+e+`">&0</span>`},e.latex=function(){return`\\textcolor{`+this.color+`}{`+this.blocks[0].latex()+`}`},e.parser=function(){var e=this,n=Z.optWhitespace,r=Z.string,i=Z.regex;return n.then(r(`{`)).then(i(/^[#\w\s.,()%-]*/)).skip(r(`}`)).then(function(n){return e.setColor(n),t.parser.call(e)})},e.isStyleBlock=function(){return!0}}),X.class=q(wE,function(e,t){e.parser=function(){var e=this,n=Z.string,r=Z.regex;return Z.optWhitespace.then(n(`{`)).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n(`}`)).then(function(n){return e.cls=n||``,e.htmlTemplate=`<span class="mq-class `+n+`">&0</span>`,t.parser.call(e)})},e.latex=function(){return`\\class{`+this.cls+`}{`+this.blocks[0].latex()+`}`},e.isStyleBlock=function(){return!0}});var lD=q(wE,function(e,t){e.ctrlSeq=`_{...}^{...}`,e.createLeftOf=function(e){if(!(!this.replacedFragment&&!e[J]&&e.options.supSubsRequireOperand))return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=J;t;t=t===J&&Y)if(this[t]instanceof lD){for(var n=`sub`;n;n=n===`sub`&&`sup`){var r=this[n],i=this[t][n];if(r){if(!i)this[t].addBlock(r.disown());else if(r.isEmpty())var a=$T(i,0,i.ends[J]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var o=r.children().disown(),a=$T(i,o.ends[Y],i.ends[J]);t===J?o.adopt(i,i.ends[Y],0):o.adopt(i,0,i.ends[J])}this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[J]===this&&(t===Y&&a?a[J]?e.insRightOf(a[J]):e.insAtLeftEnd(a.parent):e.insRightOf(this[t]));break}},lE.p.charsThatBreakOutOfSupSub=``,e.finalizeTree=function(){this.ends[J].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if(t===`_`)return;var n=this.chToCmd(t,e.options);return n instanceof TE?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[J]&&!e[Y]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),EE.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof TE?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(J,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(n.length===1?n:`{`+(n||` `)+`}`):``}return e(`_`,this.sub)+e(`^`,this.sup)},e.addBlock=function(e){this.supsub===`sub`?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=G(`<span class="mq-sup"/>`).append(e.jQ.children()).attr(UT,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=G(`<span class="mq-sub"></span>`).append(e.jQ.children()).attr(UT,e.id).appendTo(this.jQ.removeClass(`mq-sup-only`)),this.jQ.append(`<span style="display:inline-block;width:0">&#8203;</span>`));for(var t=0;t<2;t+=1)(function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+`Into`],e[n][r+`OutOf`]=uD,delete e[n].deleteOutOf,t===`sub`&&G(e.jQ.addClass(`mq-sup-only`)[0].lastChild).remove(),this.remove()}})(this,`sub sup`.split(` `)[t],`sup sub`.split(` `)[t],`down up`.split(` `)[t])},e.reflow=function(){var e=this.jQ,t=e.prev();if(t.length){var n=e.children(`.mq-sup`);if(n.length){var r=parseInt(n.css(`font-size`)),i=n.offset().top+n.height()-t.offset().top-.7*r,a=parseInt(n.css(`margin-bottom`));n.css(`margin-bottom`,a+i)}}}});function uD(e){var t=this.parent,n=e;do{if(n[Y])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}X.subscript=X._=q(lD,function(e,t){e.supsub=`sub`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&0</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`_`],e.finalizeTree=function(){this.downInto=this.sub=this.ends[J],this.sub.upOutOf=uD,t.finalizeTree.call(this)}}),X.superscript=X.supscript=X[`^`]=q(lD,function(e,t){e.supsub=`sup`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`^`],e.finalizeTree=function(){this.upInto=this.sup=this.ends[Y],this.sup.downOutOf=uD,t.finalizeTree.call(this)}});var dD=q(wE,function(e,t){e.parser=function(){for(var e=Z.string,t=Z.optWhitespace,n=Z.succeed,r=SE.block,i=this,a=i.blocks=[EE(),EE()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[Y],0);return t.then(e(`_`).or(e(`^`))).then(function(e){var t=a[e===`_`?0:1];return r.then(function(e){return e.children().adopt(t,t.ends[Y],0),n(i)})}).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[J],this.upInto=this.ends[Y],this.ends[J].upOutOf=this.ends[Y],this.ends[Y].downOutOf=this.ends[J]}}),fD=q(dD,function(e,t){e.init=function(e,t){var n=`<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>`+t+`</big><span class="mq-from"><span>&0</span></span></span>`;TE.prototype.init.call(this,e,n)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[J].latex())+`^`+e(this.ends[Y].latex())},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(FE(`n`).createLeftOf(e),qE().createLeftOf(e))}});X[`∑`]=X.sum=X.summation=K(fD,`\\sum `,`&sum;`),X[`∏`]=X.prod=X.product=K(fD,`\\prod `,`&prod;`),X.coprod=X.coproduct=K(fD,`\\coprod `,`&#8720;`),X[`∫`]=X.int=X.integral=q(fD,function(e,t){e.init=function(){TE.prototype.init.call(this,`\\int `,`<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>`)},e.createLeftOf=wE.p.createLeftOf}),X.lim=X.limit=q(dD,function(e,t){e.init=function(){TE.prototype.init.call(this,`\\lim `,`<span class="mq-lim mq-non-leaf"><span class="mq-un-italicized">lim</span><span class="mq-approaches"><span>&0</span></span></span>`)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[J].latex())}});var pD=X.over=rE[`/`]=q(X.frac=X.dfrac=X.cfrac=X.fraction=q(wE,function(e,t){e.ctrlSeq=`\\frac`,e.htmlTemplate=`<span class="mq-fraction mq-non-leaf"><span class="mq-numerator"><span class="mq-empty-box">&0</span></span><span class="mq-denominator"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`(`,`)/(`,`)`],e.finalizeTree=function(){this.upInto=this.ends[Y].upOutOf=this.ends[J],this.downInto=this.ends[J].downOutOf=this.ends[Y]}}),function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[J];n&&!(n instanceof $||n instanceof(X.text||KT)||n instanceof fD||n.ctrlSeq===`\\ `||/^[,;:]$/.test(n.ctrlSeq));)n=n[J];n instanceof fD&&n[Y]instanceof lD&&(n=n[Y],n[Y]instanceof lD&&n[Y].ctrlSeq!=n.ctrlSeq&&(n=n[Y])),n!==e[J]&&!e.isTooDeep(1)&&(this.replaces(nE(n[Y]||e.parent.ends[J],e[J])),e[J]=n)}t.createLeftOf.call(this,e)}});X.underset=q(wE,function(e,t){e.ctrlSeq=`\\underset`,e.htmlTemplate=`<span class="mq-underset mq-overunder mq-non-leaf"><span class="mq-over">&1</span><span class="mq-under">&0</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[J].upOutOf=this.ends[Y],this.upInto=this.ends[Y].downOutOf=this.ends[J]}}),X.overset=q(wE,function(e,t){e.ctrlSeq=`\\overset`,e.htmlTemplate=`<span class="mq-overset mq-overunder mq-non-leaf"><span class="mq-over">&0</span><span class="mq-under">&1</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[Y].upOutOf=this.ends[J],this.upInto=this.ends[J].downOutOf=this.ends[Y]}});var mD=X.sqrt=X[`√`]=q(wE,function(e,t){e.ctrlSeq=`\\sqrt`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt(`,`)`],e.parser=function(){return SE.optBlock.then(function(e){return SE.block.map(function(t){var n=hD();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[Y].jQ.parent();JE(e.prev(),1,e.innerHeight()/+e.css(`fontSize`).slice(0,-2)-.1)}});X.hat=q(wE,function(e,t){e.ctrlSeq=`\\hat`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>`,e.textTemplate=[`hat(`,`)`]});var hD=X.nthroot=q(mD,function(e,t){e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">&0</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&1</span></span></span>`,e.textTemplate=[`sqrt[`,`](`,`)`],e.latex=function(){return`\\sqrt[`+this.ends[J].latex()+`]{`+this.ends[Y].latex()+`}`}}),gD=q(wE,function(e,t){e.init=function(e,n,r){var i=`<span class="mq-non-leaf"><span class="mq-diacritic-above">`+n+`</span><span class="mq-diacritic-stem">&0</span></span>`;t.init.call(this,e,i,r)}});X.vec=K(gD,`\\vec`,`&rarr;`,[`vec(`,`)`]),X.tilde=K(gD,`\\tilde`,`~`,[`tilde(`,`)`]),X.lrncuberoot=q(mD,function(e,t){e.ctrlSeq=`\\lrncuberoot`,e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">3</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt[3](`,`)`],e.latex=function(){return`\\sqrt[3]{`+this.ends[J].latex()+`}`}}),X.abs=q(wE,function(e){e.ctrlSeq=`\\abs`,e.htmlTemplate=`<span class="mq-abs mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[`|`,`|`]}),X.lrnplaceholder=q(wE,function(e,t){e.ctrlSeq=`\\lrnplaceholder`,e.htmlTemplate=`<span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[``],e.latex=function(){return this.ends[J].latex()}}),X.lrnexponent=q(wE,function(e,t){e.ctrSeq=`\\lrnexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&1</span></span></span></span>`,e.textTemplate=[``,`**`],e.latex=function(){var e=this.ends[Y].latex();return e.length>1?e=`{`+e+`}`:e.length===0&&(e=`{ }`),this.ends[J].latex()+`^`+e}}),X.lrnsquaredexponent=q(wE,function(e,t){e.ctrSeq=`\\lrnsquaredexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">2</span></span></span></span>`,e.textTemplate=[``,`**2`],e.latex=function(){return this.ends[J].latex()+`^2`}}),X.lrnsubscript=q(wE,function(e,t){e.ctrSeq=`\\lrnsubscript`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&nbsp;</span></span></span>`,e.textTemplate=[``,`_`],e.latex=function(){return this.ends[J].latex()+`_`+this.ends[Y].latex()}});function _D(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(`:first`).add(this.jQ.children(`:last`)),this.contentjQ=this.jQ.children(`:eq(1)`)},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css(`fontSize`));JE(this.delimjQs,WT(1+.2*(e-1),1.2),1.2*e)}}var vD=q(q(wE,_D),function(e,t){e.init=function(e,n,r,i,a){t.init.call(this,`\\left`+i,VT,[n,r]),this.side=e,this.sides={},this.sides[J]={ch:n,ctrlSeq:i},this.sides[Y]={ch:r,ctrlSeq:a}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-paren`+(this.side===Y?` mq-ghost`:``)+`">`+this.sides[J].ch+`</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren`+(this.side===J?` mq-ghost`:``)+`">`+this.sides[Y].ch+`</span></span>`,t.html.call(this)},e.latex=function(){return`\\left`+this.sides[J].ctrlSeq+this.ends[J].latex()+`\\right`+this.sides[Y].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof vD&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||yD[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":`]`,"[":`)`}[this.sides[J].ch]===n.sides[Y].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===J?0:1).removeClass(`mq-ghost`).html(this.sides[this.side].ch)},e.createLeftOf=function(e){if(!this.replacedFragment){var n=e.options;if(this.sides[J].ch===`|`)var r=this.matchBrack(n,Y,e[Y])||this.matchBrack(n,J,e[J])||this.matchBrack(n,0,e.parent.parent);else var r=this.matchBrack(n,-this.side,e[-this.side])||this.matchBrack(n,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&nE(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble(`reflow`)}else r=this,i=r.side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(nE(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===J?e.insAtLeftEnd(r.ends[J]):e.insRightOf(r)},e.placeCursor=KT,e.unwrap=function(){this.ends[J].children().disown().adopt(this.parent,this,this[Y]).jQ.insertAfter(this.jQ),this.remove()},e.deleteSide=function(e,t,n){var r=this.parent,i=this[e],a=r.ends[e];if(e===this.side){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}var o=n.options,s=!this.side;if(this.side=-e,this.matchBrack(o,e,this.ends[J].ends[this.side])){this.closeOpposing(this.ends[J].ends[this.side]);var c=this.ends[J].ends[e];this.unwrap(),c.siblingCreated&&c.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(o,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else if(t&&s){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}else this.sides[e]={ch:yD[this.sides[this.side].ch],ctrlSeq:yD[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass(`mq-ghost`).eq(e===J?0:1).addClass(`mq-ghost`).html(this.sides[e].ch);if(i){var c=this.ends[J].ends[e];nE(i,a,-e).disown().withDirAdopt(-e,this.ends[J],c,0).jQ.insAtDirEnd(e,this.ends[J].jQ.removeClass(`mq-empty`)),c.siblingCreated&&c.siblingCreated(n.options,e),n.insDirOf(-e,i)}else t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[J])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[J].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(+(this.side===J)).removeClass(`mq-ghost`),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),yD={"(":`)`,")":`(`,"[":`]`,"]":`[`,"{":`}`,"}":`{`,"\\{":`\\}`,"\\}":`\\{`,"&lang;":`&rang;`,"&rang;":`&lang;`,"\\langle ":`\\rangle `,"\\rangle ":`\\langle `,"|":`|`,"\\lVert ":`\\rVert `,"\\rVert ":`\\lVert `};function bD(e,t){var t=t||e,n=yD[e],r=yD[t];rE[e]=K(vD,J,e,n,t,r),rE[n]=K(vD,Y,e,n,t,r)}bD(`(`),bD(`[`),bD(`{`,`\\{`),X.langle=K(vD,J,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),X.rangle=K(vD,Y,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),rE[`|`]=K(vD,J,`|`,`|`,`|`,`|`),X.lVert=K(vD,J,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),X.rVert=K(vD,Y,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),X.left=q(wE,function(e){e.parser=function(){var e=Z.regex,t=Z.string;Z.succeed;var n=Z.optWhitespace;return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then(function(r){var i=r.charAt(0)===`\\`?r.slice(1):r;return r==`\\langle`&&(i=`&lang;`,r+=` `),r==`\\lVert`&&(i=`&#8741;`,r+=` `),SE.then(function(a){return t(`\\right`).skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map(function(e){var t=e.charAt(0)===`\\`?e.slice(1):e;e==`\\rangle`&&(t=`&rang;`,e+=` `),e==`\\rVert`&&(t=`&#8741;`,e+=` `);var n=vD(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n})})})}}),X.right=q(wE,function(e){e.parser=function(){return Z.fail(`unmatched \\right`)}}),X.choose=q(X.binom=X.binomial=q(q(wE,_D),function(e,t){e.ctrlSeq=`\\binom`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>`,e.textTemplate=[`choose(`,`,`,`)`]}),function(e){e.createLeftOf=pD.prototype.createLeftOf}),X.editable=X.MathQuillMathField=q(wE,function(e,t){e.ctrlSeq=`\\MathQuillMathField`,e.htmlTemplate=`<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>`,e.parser=function(){var e=this,n=Z.string,r=Z.regex,i=Z.succeed;return n(`[`).then(r(/^[a-z][a-z0-9]*/i)).skip(n(`]`)).map(function(t){e.name=t}).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=sE(this.ends[J],this.jQ,e);t.KIND_OF_MQ=`MathField`,t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),yE(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[J].controller))},e.latex=function(){return this.ends[J].latex()},e.text=function(){return this.ends[J].text()}});var xD=X.embed=q(TE,function(e,t){e.setOptions=function(e){function t(){return``}return this.text=e.text||t,this.htmlTemplate=e.htmlString||``,this.latex=e.latex||t,this},e.parser=function(){var e=this,t=Z.string,n=Z.regex,r=Z.succeed;return t(`{`).then(n(/^[a-z][a-z0-9]*/i)).skip(t(`}`)).then(function(i){return t(`[`).then(n(/^[-\w\s]*/)).skip(t(`]`)).or(r()).map(function(t){return e.setOptions(fE[i](t))})})}});X.MathQuillResponseContainer=q(wE,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainer`,e.htmlTemplate=`<span class="lrn-mq-response-container"><marker class="lrn-qe-keyboard-i-response"></marker><content>Response</content></span>`,e.latex=function(){return`\\MathQuillResponseContainer`},e.text=function(){return this.ends[J].text()}}),X.MathQuillResponseContainerIcon=q(wE,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainerIcon`,e.htmlTemplate=`<span class="lrn-mq-response-container-icon"><span class="lrn-qe-keyboard-i-response"></span></span>`,e.latex=function(){return`\\MathQuillResponseContainerIcon`},e.text=function(){return this.ends[J].text()}});var SD=X.matrix=q(wE,function(e,t){var n=q(EE,function(e,t){e.init=function(e,n){return this.column=e,this.row=n,t.init.call(this)},e.keystroke=function(e,n,r){switch(e){case`Shift-Spacebar`:return n.preventDefault(),this.parent.insertColumn(this);case`Shift-Enter`:return this.parent.insertRow(this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,function(){return t.deleteOutOf.apply(r,i)})}}),r={column:`&`,row:`\\\\`};e.parentheses={left:null,right:null},e.maximum={rows:5,columns:5},e.defaults={rows:2,columns:2},e.ctrlSeq=`\\matrix`,e.createBlocks=function(){var e=this,t=e.blocks=[],r,i,a=0;this.htmlTemplate.replace(/&\d+/g,function(o,s){var c=e.htmlTemplate.substring(0,s).match(/<tr[^>]*>/gi).length-1;i=r===c?i+1:0,t[a]=n(i,c),t[a].adopt(e,e.ends[Y],0),r=c,a++})},e.reflow=function(){var e=this.jQ.children(`table`),t=e.outerHeight()/+e.css(`fontSize`).slice(0,-2),n=this.jQ.children(`.mq-paren`);n.length&&JE(n,WT(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e=this.getMatrixName(),t=`\\begin{`+e+`}`,n,i,a;for(a=0;a<this.blocks.length;a++)n=this.blocks[a].row,i!==void 0&&(i===n?t+=r.column:t+=r.row),i=n,t+=this.blocks[a].latex();return t+=`\\end{`+e+`}`,t},e.createLeftOf=function(n){this.cursor=n;var r=Math.min(this.defaults.rows,this.maximum.rows),i=Math.min(this.defaults.columns,this.maximum.columns);this.defaultHtmlTemplate=this.defaultHtmlTemplate||this.generateHtmlTemplate(r,i),e.htmlTemplate=this.defaultHtmlTemplate,t.createLeftOf.call(this,n)},e.getMatrixName=function(){return this.ctrlSeq.replace(`\\`,``)},e.generateHtmlTemplate=function(e,t){var n=`<span class="mq-matrix mq-non-leaf">`+o(this.parentheses.left);n+=`<table class="mq-non-leaf">`,e=Math.min(e,this.maximum.rows),t=Math.min(t,this.maximum.columns);for(var r=0,i=0;i<e;i++){n+=`<tr>`;for(var a=0;a<t;a++)n+=`<td>&`+r+`</td>`,r++;n+=`</tr>`}return n+=`</table>`,n+=o(this.parentheses.right)+`</span>`,n;function o(e){return e?`<span class="mq-paren mq-scaled">`+e+`</span>`:``}},e.htmlTemplate=e.generateHtmlTemplate(1,1),e.parser=function(){var e=Z.regex,t=this,i=this.getMatrixName(),a=RegExp(`^(.*?)\\\\end{`+i+`}`),o=RegExp(`\\\\end{`+i+`}`);return e(a).then(function(e){var i=e.replace(o,``),a=[],s=i.split(r.row),c=Math.min(s.length,t.maximum.rows),l=0,u,d;for(d=0;d<c;d++)u=s[d].split(r.column),l=Math.max(l,u.length);for(l=Math.min(l,t.maximum.columns),d=0;d<c;d++){u=s[d].split(r.column);for(var e=0;e<l;e++){var f=n(e,d);SE.parse(u[e]||` `).children().adopt(f,f.ends[Y],0),a.push(f)}}t.htmlTemplate=t.generateHtmlTemplate(c,l),t.blocks=a;for(var d=0;d<a.length;d+=1)a[d].adopt(t,t.ends[Y],0);return Z.succeed(t)})},e.finalizeTree=function(){var e=this.jQ.find(`table`);e.length&&(this.relink(),e.removeClass(function(e,t){var n=t.match(/mq-rows-\d+/g);return n&&n.join(` `)||``}),e.addClass(`mq-rows-`+e.find(`tr`).length))},e.relink=function(){var e=this.jQ.find(`td`),t=eE.byId[e.first().attr(UT)],n=eE.byId[e.last().attr(UT)],r=e.eq(0).closest(`tr`),i=[];e.each(function(t){var n=eE.byId[G(this).attr(UT)],a=e.eq(t+1),o=G(this).closest(`tr`).next(`tr`),s=G(this).closest(`tr`).index(),c=G(this).index(),l;if(a.length){var u=eE.byId[a.attr(UT)];n[Y]=u,u[J]=n}if(l=o.length?o.find(`td`).eq(c):r.find(`td`).eq(c+1),l.length){var d=eE.byId[l.attr(UT)];n.downOutOf=d,d.upOutOf=n}n.column=c,n.row=s,i.push(n)}),this.ends[J]=t,this.ends[Y]=n,t&&t[J]&&delete t[J],n&&n[Y]&&delete n[Y],this.blocks=i},e.deleteCell=function(e){var t=e.jQ.closest(`tr`),n=e.jQ.index(),r=t.index(),i=t.find(`td`).not(e.jQ),a=this.jQ.find(`tr`).not(t).map(function(){return G(this).find(`td`)[n]}),o=this.jQ.find(`td`).length===1,s;function c(){return eE.byId[G(this).attr(UT)].isEmpty()}return i.filter(c).length===i.length&&a.length&&(i.remove(),e.jQ.remove(),t.remove(),this.finalizeTree()),a.filter(c).length===a.length&&i.length&&(a.remove(),e.jQ.remove(),this.finalizeTree()),o||(r=Math.min(r,this.jQ.find(`tr`).length-1),n=Math.min(n,this.jQ.find(`tr`).eq(r).find(`td`).length-1),s=eE.byId[this.jQ.find(`tr`).eq(r).find(`td`).eq(n).attr(UT)]),s},e.addRow=function(e){if(!(this.jQ.find(`tr`).length>=this.maximum.rows)){for(var t=e.find(`td`).length,r=G(`<tr></tr>`),i,a,o=0;o<t;o++)i=n(),i.parent=this,i.jQ=G(`<td class="mq-empty">`).attr(UT,i.id),r.append(i.jQ),a||=i;return r.insertAfter(e),a}},e.addColumn=function(e){if(!(e.closest(`tr`).find(`td`).length>=this.maximum.columns)){var t=e.index(),r=e.closest(`tr`).index(),i=this,a,o=[];return this.jQ.find(`tr`).each(function(){a=n(),a.parent=i,a.jQ=G(`<td class="mq-empty">`).attr(UT,a.id),a.jQ.insertAfter(G(this).find(`td`).eq(t)),o.push(a)}),o[r]}},e.insertColumn=function(e){newBlock=this.addColumn(e.jQ),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.insertRow=function(e){newBlock=this.addRow(e.jQ.closest(`tr`)),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.backspace=function(e,t,n,r){if(e.isEmpty()){var i=this.deleteCell(e);i?n.insAtRightEnd(i):(r(),this.finalizeTree()),this.bubble(`edited`)}}});X.pmatrix=q(SD,function(e,t){e.ctrlSeq=`\\pmatrix`,e.parentheses={left:`(`,right:`)`}}),X.bmatrix=q(SD,function(e,t){e.ctrlSeq=`\\bmatrix`,e.parentheses={left:`[`,right:`]`}}),X.Bmatrix=q(SD,function(e,t){e.ctrlSeq=`\\Bmatrix`,e.parentheses={left:`{`,right:`}`}}),X.vmatrix=q(SD,function(e,t){e.ctrlSeq=`\\vmatrix`,e.parentheses={left:`|`,right:`|`}}),X.Vmatrix=q(SD,function(e,t){e.ctrlSeq=`\\Vmatrix`,e.parentheses={left:`‖`,right:`‖`}});var CD=_E(3);for(var wD in CD)(function(e,t){typeof t==`function`?(mE[e]=function(){return pE(),t.apply(this,arguments)},mE[e].prototype=t.prototype):mE[e]=t})(wD,CD[wD]);var TD=function(e){e.registerEmbed(`newLine`,()=>({htmlString:`<div class="newLine"></div>`,text:()=>`testText`,latex:()=>`\\embed{newLine}[]`}))},ED;typeof window<`u`&&(ED=mE.getInterface(3),ED&&ED.registerEmbed&&TD(ED));function DD(e,t){!ED||!ED.registerEmbed||ED.registerEmbed(e,t)}function OD(e,t,n){if(!(!ED||!e))return t!=null&&(e.textContent=t),ED.StaticMath(e,n)}var kD=e=>`&.mq-math-mode ${e}, & .mq-math-mode ${e}`,AD={"&.mq-editable-field .mq-cursor, & .mq-editable-field .mq-cursor":{borderLeftColor:`currentColor`},"&.mq-editable-field:not(.mq-focused), & .mq-editable-field:not(.mq-focused)":{borderColor:Fy()},[[`.mq-overline .mq-overline-inner`,`.mq-overarrow`,`.mq-overarrow .mq-overarrow-inner`,`.mq-overleftrightarrow .mq-overleftrightarrow-inner`,`.mq-overarc`,`.mq-longdiv .mq-longdiv-inner`].map(kD).join(`, `)]:{borderTopColor:`currentColor`},[[`.mq-underline`,`.mq-xarrow .mq-xarrow-over`].map(kD).join(`, `)]:{borderBottomColor:`currentColor`},[kD(`.mq-abs`)]:{borderLeftColor:`currentColor`,borderRightColor:`currentColor`},[kD(`.mq-matrix td.mq-empty`)]:{borderColor:`currentColor`}},jD={fontFamily:`MJXZERO, MJXTEX !important`,"-webkit-font-smoothing":`antialiased !important`,"& .mq-math-mode > span > var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode span var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode .mq-nonSymbola":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode > span > var.mq-operator-name":{fontFamily:`MJXZERO, MJXTEX !important`}},MD={"& .mq-longdiv-inner":{marginTop:`-1px`,marginLeft:`5px !important;`,"& > .mq-empty":{padding:`0 !important`,marginLeft:`0px !important`,marginTop:`2px`}},"& .mq-math-mode .mq-longdiv":{display:`inline-flex !important`}},ND={"& *":{...jD,...MD,"& .mq-math-mode .mq-sqrt-prefix":{top:`0 !important`},"& .mq-math-mode .mq-empty":{padding:`9px 1px !important`},"& .mq-math-mode .mq-longdiv-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-supsub":{fontSize:`70.7% !important`},"& .mq-math-mode .mq-sqrt-stem":{marginTop:`-5px`,paddingTop:`4px`},"& .mq-math-mode .mq-paren":{verticalAlign:`middle !important`},"& .mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-overline .mq-overline-inner .mq-empty ":{padding:`0 !important`}}},PD=Wh(`pie-lib:math-input:mq:static`),FD=/\\MathQuillMathField\[r\d*\]\{(.*?)\}/g,ID=/ /g;function LD(e=``){return e.replace(ID,``)}function RD(e){let t=0;for(let n=0;n<(e||``).length;n++)e[n]===`{`&&t++;return t}var zD=L(`span`)(AD),BD=class extends P.Component{static propTypes={latex:O.string.isRequired,onFocus:O.func,onBlur:O.func,className:O.string,getFieldName:O.func,onSubFieldChange:O.func,onSubFieldFocus:O.func,setInput:O.func,language:O.string};static defaultProps={getFieldName:()=>{}};constructor(e){super(e),this.state={announcement:``,previousLatex:``,inputSource:null,isDeleteKeyPressed:!1},this.inputRef=P.createRef()}componentDidMount(){this.update(),_m(),this.createLiveRegion(),this.addEventListeners()}componentDidUpdate(){this.update(),_m()}componentWillUnmount(){this.removeLiveRegion(),this.removeEventListeners()}createLiveRegion=()=>{this.liveRegion=document.createElement(`div`),this.liveRegion.style.position=`absolute`,this.liveRegion.style.width=`1px`,this.liveRegion.style.height=`1px`,this.liveRegion.style.marginTop=`-1px`,this.liveRegion.style.clip=`rect(1px, 1px, 1px, 1px)`,this.liveRegion.style.overflow=`hidden`,this.liveRegion.setAttribute(`aria-live`,`polite`),this.liveRegion.setAttribute(`aria-atomic`,`true`),document.body.appendChild(this.liveRegion)};addEventListeners=()=>{let e=this.inputRef.current;e&&(e.addEventListener(`keydown`,this.handleKeyDown),e.addEventListener(`click`,this.handleMathKeyboardClick))};removeEventListeners=()=>{let e=this.inputRef.current;e&&(e.removeEventListener(`keydown`,this.handleKeyDown),e.removeEventListener(`click`,this.handleMathKeyboardClick))};removeLiveRegion=()=>{this.liveRegion&&=(document.body.removeChild(this.liveRegion),null)};handleKeyDown=e=>{(e?.key===`Backspace`||e?.key===`Delete`)&&this.setState({isDeleteKeyPressed:!0}),this.setState({inputSource:`keyboard`})};handleMathKeyboardClick=()=>{this.setState({inputSource:`mathKeyboard`})};onInputEdit=e=>{if(!this.mathField||this._isProgrammaticUpdate)return;let t=this.props.getFieldName(e,this.mathField.innerFields);if(this.props.onSubFieldChange){let n=e.latex().match(/[0-9]\\ \\frac\{[^\{]*\}\{ \}/);if(this.inputRef?.current&&n&&n?.length)try{e.__controller.cursor.insLeftOf(e.__controller.cursor.parent[-1].parent),e.el().dispatchEvent(new KeyboardEvent(`keydown`,{keyCode:8}))}catch(e){console.error(e.toString())}else this.props.onSubFieldChange(t,e.latex())}this.announceLatexConversion(e.latex())};announceLatexConversion=e=>{if(!this.state){console.error(`State is not initialized`);return}let{previousLatex:t,inputSource:n,isDeleteKeyPressed:r}=this.state,i=`Converted to math symbol`;if(n===`keyboard`&&!r)if(RD(e)>RD(t))this.announceMessage(i);else try{this.mathField.parseLatex(t),this.mathField.parseLatex(e),e==t&&this.announceMessage(i)}catch(e){console.warn(`Error parsing latex:`,e.message),console.warn(e)}(this.state.previousLatex!==e||this.state.isDeleteKeyPressed)&&this.setState({previousLatex:e,isDeleteKeyPressed:!1})};announceMessage=e=>{this.setState({previousLatex:``}),this.liveRegion&&(this.liveRegion.textContent=e,setTimeout(()=>{this.liveRegion.textContent=``},500))};update=()=>{if(!ED)throw Error(`MQ is not defined - but component has mounted?`);this.mathField||=ED.StaticMath(this.inputRef?.current,{handlers:{edit:this.onInputEdit.bind(this)}});try{this._isProgrammaticUpdate=!0,this.mathField.parseLatex(this.props.latex),this.mathField.latex(this.props.latex)}catch{this.mathField.latex(`\\MathQuillMathField[r1]{}`)}finally{this._isProgrammaticUpdate=!1}LT(this.inputRef?.current,this.props.language)};blur=()=>{PD(`blur mathfield`),this.mathField.blur()};focus=()=>{PD(`focus mathfield...`),this.mathField.focus()};shouldComponentUpdate(e){try{let t=LD(this.mathField.parseLatex(e.latex)),n=(e.latex.match(FD)||[]).length,r=t!==LD(this.mathField.latex().trim())||n!==Object.keys(this.mathField.innerFields).length/2;return PD(`[shouldComponentUpdate] `,r),r}catch(e){return console.warn(`Error parsing latex:`,e.message,`skip update`),console.warn(e),!1}}onFocus=e=>{try{let t=e.target.parentElement.nextSibling,n=parseInt(t.getAttribute(`mathquill-block-id`),10);n||=(t=t.parentElement,parseInt(t.getAttribute(`mathquill-block-id`),10));let r=this.mathField.innerFields.find(e=>e.id===n);if(r){let e=this.props.getFieldName(r,this.mathField.innerFields);this.props.setInput&&this.props.setInput(r),this.props.onSubFieldFocus(e,r)}}catch(e){console.error(`error finding root block`,e.message)}};render(){let{onBlur:e,className:t}=this.props;return(0,F.jsx)(zD,{className:t,onFocus:this.onFocus,onBlur:e,ref:this.inputRef})}},VD=e=>(Lt(5-e.length,()=>e.push([])),Rt.apply(null,e)),HD=Wh(`pie-lib:math-inline:keypad`),UD=ry(`pie`),WD=[iy(),cb()],GD={"& .MuiTouchRipple-root":{color:`rgb(from ${iy()} min(r, 255 - r) min(g, 255 - g) min(b, 255 - b))`}},KD={"&.Mui-focusVisible":{outline:`2px solid ${Jy()}`,outlineOffset:`-2px`,boxShadow:`inset 0 0 0 4px ${UD(`background`,V.WHITE)}`}},qD=L(BD)(({latex:e})=>{let t={pointerEvents:`none`,textTransform:`none !important`,color:WD,"& .mq-scaled.mq-sqrt-prefix":{transform:`scale(1, 0.9) !important`},"& .mq-sup-only .mq-sup":{marginBottom:`0.9px !important`},"& .mq-empty":{backgroundColor:`${ib()} !important`},"& .mq-overline .mq-overline-inner":{borderTop:`2px solid currentColor`},"& .mq-non-leaf.mq-overline":{borderTop:`none !important`},"& .mq-overarrow":{width:`30px`,marginTop:`0 !important`,borderTop:`2px solid currentColor`,fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`,"&.mq-arrow-both":{top:`0px !important`,"& *":{lineHeight:`1 !important`,borderTop:`none !important`},"&:before":{fontSize:`80%`,left:`calc(-13%) !important`,top:`-0.31em !important`},"&:after":{fontSize:`80% !important`,right:`calc(-13%) !important`,top:`-1.5em`},"&.mq-empty:before":{fontSize:`80%`,left:`calc(-13%)`,top:`-0.26em`},"&.mq-empty:after":{fontSize:`80%`,right:`calc(-13%)`,top:`-0.26em`},"&.mq-empty":{minHeight:`1.4em`}},"&.mq-arrow-right:before":{fontSize:`80%`,right:`calc(-13%) !important`,top:`-0.26em !important`},"& .mq-overarrow-inner":{border:`none !important`},"& .mq-overarrow-inner .mq-overarrow-inner-right":{display:`none !important`}},"& .mq-root-block":{padding:`5px !important`},"& .mq-overarrow.mq-arrow-both.mq-empty:after":{right:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-right.mq-empty:before":{right:`-5px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-both.mq-empty:before":{left:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85},"& .mq-overarc":{borderTop:`2px solid currentColor !important`,"& .mq-overline":{borderTop:`none !important`},"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`}}};return e===`\\parallel`?{...t,fontStyle:`italic !important`}:e===`\\overleftrightarrow{\\overline{}}`?{...t,"& .mq-overarrow.mq-arrow-both":{"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`},"&:after":{position:`absolute !important`,top:`0px !important`}}}:t});qD.propTypes={latex:O.string.isRequired};var JD=e=>e?{gridTemplateColumns:`repeat(${e.columns}, minmax(min-content, 150px))`,gridTemplateRows:`repeat(${e.rows}, minmax(40px, 60px))`,gridAutoFlow:`initial`}:{},YD=L(`div`)(()=>({...ND,width:`100%`,display:`grid`,gridTemplateRows:`repeat(5, minmax(40px, 60px))`,gridRowGap:`0px`,gridColumnGap:`0px`,gridAutoFlow:`column`,"&.character":{textTransform:`initial !important`,gridTemplateRows:`repeat(5, minmax(40px, 50px)) !important`},"&.language":{gridTemplateRows:`repeat(4, minmax(40px, 50px)) !important`,"& *":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}})),XD=L(Ih)(({category:e,isDelete:t,isComma:n,isDot:r})=>({minWidth:`auto`,textTransform:`none`,fontSize:n||r?`200% !important`:`140% !important`,lineHeight:n||r?`100%`:`normal`,color:WD,backgroundColor:e===`operators`?rb():nb(),"&:hover":{backgroundColor:e===`operators`?ob():ab()},...GD,...KD,borderRadius:0,...t&&{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}})),ZD=L(Ih)(({category:e})=>({textTransform:`none`,padding:0,margin:0,fontSize:`110% !important`,minWidth:`auto`,borderRadius:0,backgroundColor:e===`operators`?rb():nb(),"&:hover":{backgroundColor:e===`operators`?ob():ab()},...GD,...KD})),QD=L(Hh)(({category:e})=>({minWidth:`auto`,backgroundColor:e===`operators`?rb():nb(),"&:hover":{backgroundColor:e===`operators`?ob():ab()},borderRadius:0,"& .icon":{height:`30px`}})),$D=class extends P.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,baseSet:O.array,additionalKeys:O.array,layoutForKeyPad:O.object,onPress:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,setKeypadInteraction:O.func,mode:O.oneOfType([O.string,O.number])};static defaultProps={baseSet:Am,noDecimal:!1};constructor(e){super(e),this.keypadRef=P.createRef()}componentDidMount(){let e=this.keypadRef?.current,t=e?.closest(`.main-container`),n=e?.closest(`.pie-toolbar`);if(this.props.controlledKeypadMode&&t&&n){let e=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=e.top+e.height-(r.top+r.height);if(i<0){let n=e.height+e.top-i;t&&(t.style.height=`${n}px`)}}e&&(e.addEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.addEventListener(`mousedown`,this.handleKeypadInteraction,!0))}componentWillUnmount(){let e=this.keypadRef?.current;if(this.props.controlledKeypadMode&&e){let t=e.closest(`.main-container`);t&&(t.style.height=`unset`)}e&&(e.removeEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.removeEventListener(`mousedown`,this.handleKeypadInteraction,!0))}handleKeypadInteraction=()=>{this.props.setKeypadInteraction&&this.props.setKeypadInteraction(!0)};buttonClick=e=>{HD(`[buttonClick]`,e);let{onPress:t}=this.props;t(e)};flowKeys=(e,t)=>jt([...VD(e),...VD(t)]);keyIsNotAllowed=e=>{let{noDecimal:t}=this.props;return!!((e.write===`.`&&e.label===`.`||e.write===`,`&&e.label===`,`)&&t)};render(){let{className:e,baseSet:t,additionalKeys:n,layoutForKeyPad:r,onFocus:i,mode:a}=this.props,o=[`non-negative-integers`,`integers`,`decimals`,`fractions`,`item-authoring`,`language`].includes(a),s=o?this.flowKeys([],n||[]):this.flowKeys(t,n||[]),c=s.length%5?1:0,l={gridTemplateColumns:`repeat(${Math.floor(s.length/5)+c}, minmax(min-content, 150px))`,...JD(r)};return(0,F.jsx)(YD,{ref:this.keypadRef,className:[e,a].filter(Boolean).join(` `),style:l,onFocus:i,children:s.map((e,t)=>{let n=this.buttonClick.bind(this,e);if(!e)return(0,F.jsx)(`span`,{},`empty-${t}`);let r={onClick:n,disabled:this.keyIsNotAllowed(e),key:`${e.label||e.latex||e.command}-${t}`,...e.actions||{},...e.extraProps||{}};if(e.latex)return(0,F.jsx)(ZD,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:(0,F.jsx)(qD,{latex:e.latex})},r.key);if(e.label)return(0,F.jsx)(XD,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,isDelete:e.label===`⌫`,isComma:e.label===`,`,isDot:e.label===`.`,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:e.label},r.key);{let t=e.icon?e.icon:`div`;return(0,F.jsx)(QD,{tabIndex:`-1`,onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,size:`large`,...e.actions||{},...e.extraProps||{},children:(0,F.jsx)(t,{className:`icon`})},r.key)}})})}},eO=e=>{if(e.command)return{value:e.command,type:`command`};if(e.write)return{value:e.write};if(e.keystroke)return{type:`cursor`,value:e.keystroke}},tO=class extends P.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,mode:O.oneOfType([O.string,O.number]),layoutForKeyPad:O.object,onClick:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,additionalKeys:O.array,setKeypadInteraction:O.func};static defaultProps={mode:`scientific`,noDecimal:!1,additionalKeys:[]};keypadPress=e=>{let{onClick:t}=this.props;t(eO(e))};render(){let{mode:e,onFocus:t,controlledKeypadMode:n,noDecimal:r,className:i,additionalKeys:a,layoutForKeyPad:o,setKeypadInteraction:s}=this.props,c=gm(a);return(0,F.jsx)($D,{className:i,controlledKeypadMode:n,onFocus:t,noDecimal:r,layoutForKeyPad:o,additionalKeys:pf(mm(e),c),onPress:this.keypadPress,mode:e,setKeypadInteraction:s})}},nO=o(((e,t)=>{t.exports={"border-radius":1,"border-top-left-radius":1,"border-top-right-radius":1,"border-bottom-left-radius":1,"border-bottom-right-radius":1,"box-shadow":1,order:1,flex:function(e,t){return[t+`box-flex`]},"box-flex":1,"box-align":1,animation:1,"animation-duration":1,"animation-name":1,transition:1,"transition-duration":1,transform:1,"transform-style":1,"transform-origin":1,"backface-visibility":1,perspective:1,"box-pack":1}})),rO=o(((e,t)=>{t.exports={animation:1,"column-count":1,columns:1,"font-weight":1,opacity:1,"order ":1,"z-index":1,zoom:1,flex:1,"box-flex":1,transform:1,perspective:1,"box-pack":1,"box-align":1,colspan:1,rowspan:1}})),iO=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toUpperCase()+e.substring(1):e}})),aO=o(((e,t)=>{var n=iO(),r=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=typeof document>`u`?{}:document.documentElement.style;t.exports=(function(){var e=(function(){for(var e in i)if(r.test(e))return e.match(r)[0];return`WebkitOpacity`in i?`Webkit`:`KhtmlOpacity`in i?`Khtml`:``})();return{style:e,css:`-`+e.toLowerCase()+`-`,dom:{Webkit:`WebKit`,ms:`MS`,o:`WebKit`}[e]||n(e)}})()})),oO=o(((e,t)=>{t.exports=/[-\s]+(.)?/g})),sO=o(((e,t)=>{var n=function(e,t){return t?t.toUpperCase():``},r=oO();t.exports=function(e){return e?e.replace(r,n):``}})),cO=o(((e,t)=>{var n=/::/g,r=/([A-Z]+)([A-Z][a-z])/g,i=/([a-z\d])([A-Z])/g,a=/_/g;t.exports=function(e,t){return e?e.replace(n,`/`).replace(r,`$1_$2`).replace(i,`$1_$2`).replace(a,t||`-`):``}})),lO=o(((e,t)=>{var n=cO();t.exports=function(e){return n(e).toLowerCase()}})),uO=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toLowerCase()+e.substring(1):e}})),dO=o(((e,t)=>{var n=sO(),r=lO(),i=uO(),a=iO(),o=aO(),s=nO(),c=typeof document>`u`?{}:document.documentElement.style;t.exports=function(e){return function(t,l){l||={};var u=i(n(t)),d=r(t),f=e?u:d,p=o.style?e?o.style:o.css:``;if(u in c)return l.asString?f:[f];var m=f,h=s[d],g=[];if(e&&(m=a(f)),typeof h==`function`){var _=h(f,p)||[];_&&!Array.isArray(_)&&(_=[_]),_.length&&(_=_.map(function(t){return e?i(n(t)):r(t)})),g=g.concat(_)}return p&&g.push(p+m),g.push(f),l.asString||g.length==1?g[0]:g}}})),fO=o(((e,t)=>{t.exports=dO()()})),pO=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}})),mO=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return!!e&&n.call(e)===`[object Object]`}})),hO=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return n.apply(e)===`[object Function]`}})),gO=o(((e,t)=>{aO();var n=fO(),r=lO(),i=sO(),a=pO(),o=mO(),s=hO(),c=function(e,t,r,i){n(t).forEach(function(t){e[i?i(t):t]=r})},l=function(e){e=(e||``).split(`;`);var t={};return e.forEach(function(e){var n=e.split(`:`);n.length==2&&(t[n[0].trim()]=n[1].trim())}),t},u={cssUnitless:rO()},d=function(e,t,n,f){typeof e==`string`&&(e=l(e)),t||=u,t.cssUnitless=t.cssUnitless||u.cssUnitless,f||={};var p=t.scope||{},m=t.addUnits==null?p&&p.addUnits!=null?p.addUnits:!0:t.addUnits,h=(t.cssUnitless==null?p?p.cssUnitless:null:t.cssUnitless)||{},g=(t.cssUnit||p?p.cssUnit:null)||`px`,_=t.prefixProperties||(p?p.prefixProperties:null)||{},v=t.camelize?i:r,y,b,x,S,C,w,T,E;for(x in e)if(a(e,x)){if(S=e[x],b=r(n?n+x:x),y=!1,E=!1,s(S)&&(T=S.call(p||e,S,x,b,e),o(T)&&T.value!=null?(S=T.value,E=T.prefix,b=T.name?r(T.name):b):S=T),C=typeof S,w=C==`number`||C==`string`&&S!=``&&S*1==S,S==null||b==null||b===``)continue;if((w||C==`string`)&&(y=!0),!y&&S.value!=null&&S.prefix&&(y=!0,E=S.prefix,S=S.value),y){if(E||=!!_[b],w&&(S=m&&!(b in h)?S+g:S+``),(b==`border`||!b.indexOf(`border`)&&!~b.indexOf(`radius`)&&!~b.indexOf(`width`))&&w&&(b+=`-width`),!b.indexOf(`border-radius-`)&&(b.replace(/border(-radius)(-(.*))/,function(e,t,n){var r={"-top":[`-top-left`,`-top-right`],"-left":[`-top-left`,`-bottom-left`],"-right":[`-top-right`,`-bottom-right`],"-bottom":[`-bottom-left`,`-bottom-right`]};n in r?(b=[],r[n].forEach(function(e){b.push(`border`+e+t)})):b=`border`+n+t}),Array.isArray(b))){b.forEach(function(e){E?c(f,e,S,v):f[v(e)]=S});continue}E?c(f,b,S,v):f[v(b)]=S}else d(S,t,b+`-`,f)}return f};t.exports=d})),_O=o(((e,t)=>{var n=gO(),r=pO();t.exports=function(e,t){e=n(e,t);var i=[],a;for(a in e)r(e,a)&&i.push(a+`: `+e[a]);return i.join(`; `)}})),vO=o(((e,t)=>{t.exports={prefixProperties:nO(),cssUnitless:rO(),object:gO(),string:_O()}}))(),yO=Wh(`@pie-lib:mask-markup:serialization`),bO=[`span`],xO=[`em`,`strong`,`u`],SO=3,CO=8,wO=1,TO=e=>{if(!e.attributes||e.attributes.length<=0)return;let t={},n;for(n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t},EO=e=>bO.includes(e)?`inline`:xO.includes(e)?`mark`:`block`,DO=e=>{let t=/([\w-]*)\s*:\s*([^;]*)/g,n,r={};for(;n=t.exec(e);)r[n[1]]=n[2].trim();return r},OO=e=>(0,vO.object)(e,{camelize:!0,addUnits:!1}),kO=(e,t)=>OO(DO(e.getAttribute(t))),AO=(e,t,n)=>{let r=e.getAttribute(n);return delete t.class,r},jO=e=>(t,n)=>{if(!e.getAttribute)return t;if(e.getAttribute(n))switch(n){case`style`:t.style=kO(e,n);break;case`class`:t.className=AO(e,t,n);break;default:t[n]=e.getAttribute(n);break}return t},MO=[`border`,`class`,`style`],NO={b:`bold`,em:`italic`,u:`underline`,s:`strikethrough`,code:`code`,strong:`strong`},PO=(e,t=[])=>{if(e.nodeType===CO)return null;if(e.nodeType===SO){let n={text:e.textContent};return t.length>0&&(n.marks=t.map(e=>({type:e,data:void 0}))),{object:`text`,leaves:[n]}}if(e.nodeType===wO){let n=e.tagName.toLowerCase(),r=NO[n];if(r)return yO(`[deserialize] mark: `,r),{_flatten:!0,nodes:FO(e.childNodes,[...t,r])};if(n===`math`)return{isMath:!0,nodes:[e]};let i=TO(e)||{};n===`audio`&&i.controls===``&&(i.controls=!0);let a=MO.reduce(jO(e),{...i}),o=EO(n),s=FO(e.childNodes,t);return{object:o,type:n,data:{dataset:{...e.dataset},attributes:{...a}},nodes:s}}return null},FO=(e,t=[])=>{let n=[];for(let r=0;r<e.length;r++){let i=PO(e[r],t);i!==null&&(i._flatten&&i.nodes?n.push(...i.nodes):n.push(i))}return n},IO=e=>{if(!e||!e.trim())return{object:`value`,document:{object:`document`,data:{},nodes:[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]}};let t=FO(new DOMParser().parseFromString(e,`text/html`).body.childNodes);return!t.some(e=>e.object===`block`||e.object===`inline`)&&t.length>0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:t}]),t.length===0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]),{object:`value`,document:{object:`document`,data:{},nodes:t}}},LO=L(`div`)(({theme:e})=>({paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5)})),RO=L(`span`)(()=>({display:`inline-block`,width:`.75em`})),zO=[`tbody`,`tr`],BO=(e,t)=>{let n=t.trim()===``,r=e&&e.type;if(!(n&&zO.includes(r)))return t},VO=e=>{let t=e.leaves.find(e=>Mt(e,`marks`,[]).length);return t?t.marks:null},HO=(e,t,n,r,i,a)=>{if(!t)return null;let o=[];return(e.nodes||[]).forEach((e,s)=>{let c=e.type?`${e.type}-${s}`:`${s}`;if(e.isMath)return o.push((0,F.jsx)(`span`,{dangerouslySetInnerHTML:{__html:$v(`<math displaystyle="true">${e.nodes[0].innerHTML}</math>`)}})),o;if(r){let a=r(e,t,n);if(a){let t=e.data?.dataset?.component===`blank`&&i?.type!==`td`;t&&o.push((0,F.jsx)(RO,{},`spacer-${s}-before`)),o.push(a),t&&o.push((0,F.jsx)(RO,{},`spacer-${s}-after`));return}}if(e.object===`text`){let t=e.leaves.reduce((e,t)=>{let n=t.text,r=BO(i,n);return r?e+r:e},``),n=VO(e);if(n?.length>0){let e=n.map(e=>Object.keys(NO).find(t=>NO[t]===e.type)).filter(Boolean);e.length>0?o.push(e.reduceRight((e,t,n)=>(0,F.jsx)(t,{children:e},`${c}-${t}-${n}`),t)):o.push(t)}else t.length>0&&o.push(t)}else{let i=HO(e,t,n,r,e,a);if(e.type===`p`||e.type===`paragraph`)o.push((0,F.jsx)(LO,{children:i},c));else{let t=e.type;e.nodes&&e.nodes.length>0?o.push((0,F.jsx)(t,{...e.data.attributes,children:i},c)):o.push((0,F.jsx)(t,{...e.data.attributes},c))}}}),o},UO=L(`div`)(()=>({display:`initial`,"&:not(.MathJax) table":{borderCollapse:`collapse`},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:`8px 12px`,textAlign:`left`}})),WO=class extends P.Component{constructor(e){super(e),this.internalContainerRef=P.createRef()}static propTypes={renderChildren:O.func,layout:O.object,value:O.object,onChange:O.func,elementType:O.string,containerRef:O.oneOfType([O.func,O.shape({current:O.instanceOf(Element)})])};componentDidMount(){let e=this.props.containerRef||this.internalContainerRef;e.current&&typeof aC==`function`&&aC(e.current)}handleChange=(e,t)=>{let n={...this.props.value,[e]:t};this.props.onChange(n)};render(){let{value:e,layout:t,elementType:n,containerRef:r}=this.props,i=HO(t,e,this.handleChange,this.props.renderChildren,null,n),a=r||this.internalContainerRef;return(0,F.jsx)(UO,{ref:a,children:i})}},GO=/\{\{(\d+)\}\}/g,KO=(e,t)=>e?{markup:e.replace(GO,(e,n)=>`<span data-component="${t}" data-id="${n}"></span>`)}:{markup:``},qO=(e,t)=>{let{markup:n}=KO(e,t);return IO($v(n)).document},JO=((e,t)=>class extends P.Component{static propTypes={markup:O.string,layout:O.object,value:O.object,onChange:O.func,customMarkMarkupComponent:O.func,elementType:O.string};constructor(e){super(e),this.containerRef=P.createRef()}componentDidUpdate(e){if(this.props.markup!==e.markup){let e=this.containerRef.current;(e&&e.querySelectorAll(`[data-latex][data-math-handled="true"]`)||[]).forEach(e=>{let t=e.querySelector(`mjx-container`);t&&e.removeChild(t),e.textContent=e.getAttribute(`data-raw`),e.removeAttribute(`data-math-handled`)})}}render(){let{markup:n,layout:r,value:i,onChange:a,elementType:o}=this.props,s=r||qO(n,e);return(0,F.jsx)(WO,{containerRef:this.containerRef,elementType:o,layout:s,value:i,onChange:a,renderChildren:t(this.props)})}})(`input`,e=>(t,n,r)=>{let i=t.data&&t.data.dataset||{};if(i.component===`input`)return e.customMarkMarkupComponent(i.id)}),YO=`height ease-in 300ms, opacity ease-in 300ms`,XO=L(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:YO,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:YO,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),ZO=e=>{let{show:t,children:n,className:r}=e,i=(0,P.useRef)(null);return(0,F.jsx)(al,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,F.jsx)(XO,{ref:i,className:r,children:n})})};ZO.propTypes={show:O.bool.isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};function QO(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function $O(e,t){return!e||QO(e)?e:QO(e.default)?e.default:t&&QO(e[t])?e[t]:t&&QO(e[t]?.default)?e[t].default:e}var ek=$O(oT,`Readable`)||$O(rk.Readable,`Readable`),tk=FT,nk=tk.default,rk=nk&&typeof nk==`object`?nk:tk,{translator:ik}=cw,ak={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},ok=L(`div`)(()=>({width:`100%`,cursor:`pointer`})),sk=L(`button`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`,minWidth:`24px`,minHeight:`24px`,padding:0,border:0,background:`none`,color:`inherit`,font:`inherit`,cursor:`pointer`,"&:focus-visible":{outline:`2px solid ${qy()}`,outlineOffset:`-2px`}})),ck=L(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${iy()})`,fontWeight:`normal`,...ak})),lk=L(`div`)(()=>({position:`absolute`,width:`25px`,"&.enter":{opacity:`0`},"&.enter-active":{opacity:`1`,transition:`opacity 0.3s ease-in`},"&.exit":{opacity:`1`},"&.exit-active":{opacity:`0`,transition:`opacity 0.3s ease-in`}})),uk=L(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),dk=class e extends P.Component{static propTypes={onToggle:O.func,toggled:O.bool,show:O.bool,hideMessage:O.string,showMessage:O.string,className:O.string,language:O.string};static defaultProps={showMessage:`Show correct answer`,hideMessage:`Hide correct answer`,show:!1,toggled:!1};constructor(t){super(t),this.state={show:t.show},this.openIconRef=P.createRef(),this.closedIconRef=P.createRef(),e.defaultProps={...e.defaultProps,showMessage:ik.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:ik.t(`common:hideCorrectAnswer`,{lng:t.language})}}onClick(){this.props.onToggle(!this.props.toggled)}onTouch(e){e.preventDefault(),this.props.onToggle(!this.props.toggled)}UNSAFE_componentWillReceiveProps(t){this.setState({show:t.show}),t.language!==this.props?.language&&(e.defaultProps={...e.defaultProps,showMessage:ik.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:ik.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,F.jsx)(ok,{className:e,children:(0,F.jsx)(ZO,{show:this.state.show,children:(0,F.jsxs)(sk,{type:`button`,"aria-pressed":!!t,onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,F.jsxs)(uk,{children:[(0,F.jsx)(al,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,F.jsx)(lk,{ref:this.openIconRef,children:(0,F.jsx)(og,{open:t},`correct-open`)})}),(0,F.jsx)(al,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,F.jsx)(lk,{ref:this.closedIconRef,children:(0,F.jsx)(og,{open:t},`correct-closed`)})})]}),(0,F.jsx)(ek,{false:!0,children:(0,F.jsx)(ck,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}};function fk(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function pk(e,t){return!e||fk(e)?e:fk(e.default)?e.default:t&&fk(e[t])?e[t]:t&&fk(e[t]?.default)?e[t].default:e}var mk=pk(Tw,`UiLayout`)||pk(bk.UiLayout,`UiLayout`),hk=pk(aT,`PreviewPrompt`)||pk(bk.PreviewPrompt,`PreviewPrompt`),gk=pk(oT,`Readable`)||pk(bk.Readable,`Readable`),_k=pk(hw,`Collapsible`)||pk(bk.Collapsible,`Collapsible`),vk=FT,yk=vk.default,bk=yk&&typeof yk==`object`?yk:vk,{translator:xk}=cw,Sk=L(mk)({color:iy(),backgroundColor:Ey(),display:`inline-block`}),Ck=L(`div`)({width:`100%`,position:`relative`,backgroundColor:Ey(),color:iy()}),wk=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),Tk=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),Ek=L(`div`)({position:`relative`,"& > div > div":{display:`flex`,alignItems:`baseline`,flexWrap:`wrap`},"& .mq-overarrow-inner":{border:`none !important`,padding:`0 !important`},"& .mq-overarrow-inner-right":{display:`none !important`},"& .mq-overarrow-inner-left":{display:`none !important`},"& .mq-overarrow.mq-arrow-both":{minWidth:`1.23em`,"& *":{lineHeight:`1 !important`},"&:before":{top:`-0.4em`,left:`-1px`},"&:after":{top:`-2.4em`,right:`-1px`},"&.mq-empty:after":{top:`-0.45em`}},"& .mq-overarrow.mq-arrow-right":{"&:before":{top:`-0.4em`,right:`-1px`}},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85}}),Dk=L(`div`)(({theme:e,$incorrect:t,$correct:n,$showCorrectness:r,$correctAnswerShown:i})=>({maxWidth:`fit-content`,...t&&{borderColor:`${fy()} !important`},...n&&{borderColor:`${cy()} !important`},...r&&{border:`2px solid`},...i&&{padding:e.spacing(1),letterSpacing:`0.5px`},"& > .mq-math-mode":{"& > .mq-root-block":{"& > .mq-editable-field":{minWidth:`10px`,padding:e.spacing(.25)}},"& sup":{top:0}}})),Ok=L(BD)({"& > .mq-root-block":{"& > .mq-editable-field":{borderColor:iy()}}}),kk=L(`div`)(({theme:e})=>({zIndex:10,minWidth:`400px`,marginTop:e.spacing(2)})),Ak=L(`div`)(({theme:e})=>({marginBottom:e.spacing(1),pointerEvents:`none`})),jk=L(`h2`)({position:`absolute`,left:`-10000px`,top:`auto`,width:`1px`,height:`1px`,overflow:`hidden`}),Mk=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),Nk=L(dk)(({theme:e})=>({color:iy(),marginBottom:e.spacing(2)}));if(typeof document<`u`){let e=`math-templated-main-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=`
198
200
  .block-container {
199
201
  margin: 8px !important;
200
202
  display: inline-flex;
@@ -212,8 +214,8 @@ mid `,`&#8740;`),Y.intercal=Y[`⊺`]=G($,`\\intercal `,`&#8890;`),Y.veebar=Y[`
212
214
  border-right: 2px solid #bdbdbd !important;
213
215
  }
214
216
  .block-math {
215
- color: ${x_()};
216
- background-color: ${U_()};
217
+ color: ${iy()};
218
+ background-color: ${Ey()};
217
219
  padding: 4px !important;
218
220
  display: flex;
219
221
  align-items: center;
@@ -224,14 +226,14 @@ mid `,`&#8740;`),Y.intercal=Y[`⊺`]=G($,`\\intercal `,`&#8890;`),Y.veebar=Y[`
224
226
  display: none;
225
227
  }
226
228
  .correct {
227
- border-color: ${T_()} !important;
229
+ border-color: ${cy()} !important;
228
230
  }
229
231
  .incorrect {
230
- border-color: ${k_()} !important;
232
+ border-color: ${fy()} !important;
231
233
  }
232
- `,document.head.appendChild(t)}}var XD=!1,ZD=/(\{\{\d+\}\})/gm,QD=6,$D=8,eO=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function tO(e=[]){return e.map(e=>({name:e,latex:e,write:e,label:e}))}function nO(e=[],t){return Math.floor(e.length/5)*30+(t===`miscellaneous`?600:500)}function rO(e){return e.split(ZD).filter(e=>e)}function iO(e,t){let{responses:n,disabled:r,markup:i,printMode:a,alwaysShowCorrect:o}=e||{};if(i)return t.showCorrect?Object.keys(n||{}).reduce((e,t)=>(e[t]=n?.[t]?.answer,e),{}):rO(i).reduce((e,n)=>{if(n.match(ZD)){let i=oO.getResponseKey(n),s=t.session.answers[`r${i}`];if(a&&!o){let t=`\\ \\ `.repeat(30)+`\\embed{newLine}[] `;return{...e,[i]:`\\MathQuillMathField[r${i}]{${t.repeat(3)}}`}}return r?{...e,[i]:`\\embed{answerBlock}[r${i}]`}:{...e,[i]:`\\MathQuillMathField[r${i}]{${s&&s.value||``}}`}}return e},{})}var aO={name:`smartHorizontalPlacement`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:({state:e})=>{let t=e.modifiersData.popperOffsets;if(!t)return;let n=window.innerWidth||document.documentElement.clientWidth,r=e.rects.popper.width,i=e.elements.reference.getBoundingClientRect().left,a=e.elements.popper?.offsetParent,o=a?.getBoundingClientRect?.()||{left:0},s=a?.scrollLeft||0,c=i-o.left+s,l=c-i,u=l+$D,d=l+n-r-$D;i+r<=n?t.x=c:t.x=c-r,d<u?t.x=u:t.x=Math.min(Math.max(t.x,u),d)}},oO=class e extends N.Component{static getResponseKey=e=>(e||``).replaceAll(`{{`,``).replaceAll(`}}`,``);static propTypes={session:O.object.isRequired,onSessionChange:O.func,model:O.object.isRequired};constructor(t){super(t);let n={},{model:r,session:i}=t||{},{markup:a,alwaysShowCorrect:o}=r||{},{answers:s}=i||{};a&&(a||``).replace(ZD,t=>{let r=e.getResponseKey(t),i=s&&s[`r${r}`];n[`r${r}`]={value:i?.value||``}}),this.state={session:{...t.session,answers:n},activeAnswerBlock:``,showCorrect:o||!1,tooltipContainerRef:N.createRef()}}UNSAFE_componentWillMount(){typeof window<`u`&&(XD||=(UT(`answerBlock`,e=>({htmlString:`<div class="block-container">
234
+ `,document.head.appendChild(t)}}var Pk=!1,Fk=/(\{\{\d+\}\})/gm,Ik=6,Lk=8,Rk=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function zk(e=[]){return e.map(e=>({name:e,latex:e,write:e,label:e}))}function Bk(e=[],t){return Math.floor(e.length/5)*30+(t===`miscellaneous`?600:500)}function Vk(e){return e.split(Fk).filter(e=>e)}function Hk(e,t){let{responses:n,disabled:r,markup:i,printMode:a,alwaysShowCorrect:o}=e||{};if(i)return t.showCorrect?Object.keys(n||{}).reduce((e,t)=>(e[t]=n?.[t]?.answer,e),{}):Vk(i).reduce((e,n)=>{if(n.match(Fk)){let i=Wk.getResponseKey(n),s=t.session.answers[`r${i}`];if(a&&!o){let t=`\\ \\ `.repeat(30)+`\\embed{newLine}[] `;return{...e,[i]:`\\MathQuillMathField[r${i}]{${t.repeat(3)}}`}}return r?{...e,[i]:`\\embed{answerBlock}[r${i}]`}:{...e,[i]:`\\MathQuillMathField[r${i}]{${s&&s.value||``}}`}}return e},{})}var Uk={name:`smartHorizontalPlacement`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:({state:e})=>{let t=e.modifiersData.popperOffsets;if(!t)return;let n=window.innerWidth||document.documentElement.clientWidth,r=e.rects.popper.width,i=e.elements.reference.getBoundingClientRect().left,a=e.elements.popper?.offsetParent,o=a?.getBoundingClientRect?.()||{left:0},s=a?.scrollLeft||0,c=i-o.left+s,l=c-i,u=l+Lk,d=l+n-r-Lk;i+r<=n?t.x=c:t.x=c-r,d<u?t.x=u:t.x=Math.min(Math.max(t.x,u),d)}},Wk=class e extends P.Component{static getResponseKey=e=>(e||``).replaceAll(`{{`,``).replaceAll(`}}`,``);static propTypes={session:O.object.isRequired,onSessionChange:O.func,model:O.object.isRequired};constructor(t){super(t);let n={},{model:r,session:i}=t||{},{markup:a,alwaysShowCorrect:o}=r||{},{answers:s}=i||{};a&&(a||``).replace(Fk,t=>{let r=e.getResponseKey(t),i=s&&s[`r${r}`];n[`r${r}`]={value:i?.value||``}}),this.state={session:{...t.session,answers:n},activeAnswerBlock:``,showCorrect:o||!1,tooltipContainerRef:P.createRef()}}UNSAFE_componentWillMount(){typeof window<`u`&&(Pk||=(DD(`answerBlock`,e=>({htmlString:`<div class="block-container">
233
235
  <div class="block-response" data-answer-block-index="${e}">R</div>
234
236
  <div class="block-math">
235
237
  <span data-answer-block="${e}"></span>
236
238
  </div>
237
- </div>`,text:()=>`text`,latex:()=>`\\embed{answerBlock}[${e}]`})),!0))}handleAnswerBlockDomUpdate=()=>{let{model:e}=this.props,{session:t,showCorrect:n}=this.state,r=t.answers;this.root&&e.disabled&&!n&&Object.keys(r).forEach(t=>{let n=this.root.querySelector(`[data-answer-block="${t}"]`),i=this.root.querySelector(`[data-answer-block-index="${t}"]`);if(n){let a=r[t];WT(n,a&&a.value||``),e.view&&(n.parentElement.parentElement.classList.remove(`correct`),n.parentElement.parentElement.classList.remove(`incorrect`)),i.textContent=`R`}}),Sx(this.root)};UNSAFE_componentWillReceiveProps(t){let{model:n}=this.props,{model:r={}}=t||{},{markup:i=``,env:a={}}=n||{},{markup:o=``,env:s={},alwaysShowCorrect:c=!1}=r,l=e=>e&&e.mode===`evaluate`;(!l(a)||!l(s))&&this.setState(e=>({...e.session,showCorrect:!1})),c&&this.setState({showCorrect:!0});let u=i.match(ZD),d=o.match(ZD);if(!Ft(u,d)){let t={},n=this.state.session.answers;(d||[]).forEach(r=>{let i=e.getResponseKey(r),a=n&&n[`r${i}`];t[`r${i}`]={value:a?.value||``}}),this.setState(e=>({session:{...e.session,answers:t}}),()=>{this.props.onSessionChange(this.state.session),this.handleAnswerBlockDomUpdate()})}}shouldComponentUpdate(e,t){let n=Ft(this.props.model,e.model),r=Ft(this.state,t);return!n||!r}componentDidMount(){this.handleAnswerBlockDomUpdate(),setTimeout(()=>Sx(this.root),100)}componentDidUpdate(){this.handleAnswerBlockDomUpdate()}onSubFieldFocus=e=>{let t=Array.from(this.root?.querySelectorAll(`.mq-editable-field`)||[]).map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),n=()=>{t.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n})};this.setState({activeAnswerBlock:e},()=>{n(),requestAnimationFrame(n),setTimeout(n,0)})};toNodeData=e=>{if(!e)return;let{type:t,value:n}=e;return t===`command`||t===`cursor`?e:t===`answer`?{type:`answer`,...e}:n===`clear`?{type:`clear`}:{type:`write`,value:n}};setInput=e=>{this.input=e};onClick=e=>{let t=this.toNodeData(e);t.type===`clear`?this.input.clear():t.type===`command`?Array.isArray(t.value)?t.value.forEach(e=>{this.input.cmd(e)}):this.input.cmd(t.value):t.type===`cursor`?this.input.keystroke(t.value):this.input.write(t.value);let n=this.input?.el?.()||this.root,r=[],i=n;for(;i&&i!==document.body&&i!==document.documentElement;)(i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight)&&r.push(i),i=i.parentElement;document.scrollingElement&&r.push(document.scrollingElement);let a=r.map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),o={x:window.scrollX,y:window.scrollY},s=()=>{a.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n}),window.scrollTo(o.x,o.y)};this.input.focus(),s(),requestAnimationFrame(s),setTimeout(s,0)};callOnSessionChange=()=>{let{onSessionChange:e}=this.props;e&&e(this.state.session)};toggleShowCorrect=e=>{this.setState({showCorrect:e},this.handleAnswerBlockDomUpdate)};subFieldChanged=(e,t)=>{vm(),e&&this.setState(n=>({session:{...n.session,answers:{...n.session.answers,[e]:{value:t}}}}),this.callOnSessionChange)};getFieldName=(e,t)=>{let{answers:n}=this.state.session;if(Object.keys(n||{}).length)return Object.keys(n).find(n=>{let r=t[n];return r&&r.id==e.id})};onBlur=e=>{let{relatedTarget:t,currentTarget:n}=e||{};function r(e,t=0){if(!e||t>=16)return null;let n=e.offsetParent;return n?n.getAttribute(`role`)===`tooltip`?n:r(n,t+1):null}function i(e,t=0){if(!e||t>=4)return null;let n=e?.children?.[0];return n?n.attributes&&n.attributes[`data-keypad`]?n:i(n,t+1):null}let a=r(t),o=a?i(a):null;(!t||!n||!o?.attributes[`data-keypad`])&&this.setState({activeAnswerBlock:``})};setTooltipRef(e){setTimeout(()=>{if(e&&eO){let e=document.querySelector(`[role='tooltip']`);e&&e.firstChild.setAttribute(`tabindex`,`-1`)}},1)}renderTeacherInstructions=()=>{let{model:e}=this.props,{teacherInstructions:t,animationsDisabled:n}=e||{},r=t&&(DC(t)||kC(t)),i=(0,P.jsx)(jD,{defaultClassName:`teacher-instructions`,prompt:t});return r&&(0,P.jsx)(VD,{children:n?i:(0,P.jsx)(ND,{labels:{hidden:LD.t(`common:showTeacherInstructions`,{lng:e?.language}),visible:LD.t(`common:hideTeacherInstructions`,{lng:e?.language})},children:i})})};renderRationale=()=>{let{model:e}=this.props,{rationale:t,animationsDisabled:n}=e||{},r=(0,P.jsx)(jD,{prompt:t});return t&&(DC(t)||kC(t))&&(0,P.jsx)(VD,{children:n?r:(0,P.jsx)(ND,{labels:{hidden:LD.t(`common:showRationale`,{lng:e?.language}),visible:LD.t(`common:hideRationale`,{lng:e?.language})},children:r})})};renderPlayerContent=()=>{let{model:e}=this.props,{activeAnswerBlock:t,showCorrect:n,session:r,tooltipContainerRef:i}=this.state,{correctness:a,disabled:o,view:s,responses:c,equationEditor:l,customKeys:u,feedback:d,env:{mode:f}={},printMode:p,alwaysShowCorrect:m,language:h}=e||{},g=Pt(c),_=tO(u),v=iO(e,this.state)||``,y=p&&!m;return(0,P.jsx)(HD,{children:(0,P.jsx)(uD,{disabled:o,markup:e.markup,value:{},customMarkMarkupComponent:e=>{let c=f===`evaluate`&&d&&d[e],u=(0,P.jsx)(WD,{ref:e=>{this.mqStatic=e||this.mqStatic},latex:v[e],language:h,onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur});return(0,P.jsx)(UD,{ref:i,$incorrect:!g&&!c&&!n,$correct:!g&&(c||n),$showCorrectness:!g&&o&&a&&!s,$correctAnswerShown:n,children:(0,P.jsx)(rf,{ref:e=>this.setTooltipRef(e),enterTouchDelay:0,interactive:!0,open:t===`r${e}`,slotProps:{popper:{container:i?.current||void 0,placement:`bottom-start`,sx:{backgroundColor:`transparent`,width:`auto`,opacity:1,"& .MuiTooltip-arrow":{display:`none`}},modifiers:[{name:`preventOverflow`,enabled:!1},{name:`flip`,enabled:!1},aO]},tooltip:{sx:{fontSize:`initial`,backgroundColor:`transparent`,width:`auto`,maxWidth:`none`,marginTop:0,paddingTop:0,boxShadow:`none`}}},title:Object.keys(r.answers).map(e=>e===t&&!(n||o)&&(0,P.jsx)(GD,{"data-keypad":!0,style:{width:nO(_,l)},children:(0,P.jsx)(_E,{additionalKeys:_,mode:l||QD,onClick:this.onClick})},e)||null),children:y?(0,P.jsx)(KD,{children:u}):(0,P.jsx)(`div`,{children:u})})})}})})};render(){let{model:e}=this.props,{showCorrect:t}=this.state,{prompt:n,env:{mode:r,role:i}={},extraCSSRules:a,correctness:o,responses:s,language:c,showNote:l,note:u}=e||{},d=!Pt(s)&&o&&o.correctness!==`correct`,f=(t||r===`view`&&i===`instructor`)&&l&&u;return(0,P.jsx)(RD,{extraCSSRules:a,ref:e=>{let t=Xc.findDOMNode(e);this.root=t||this.root},children:(0,P.jsxs)(zD,{children:[r===`gather`&&(0,P.jsx)(qD,{children:LD.t(`mathInline.mathEquationResponseQuestion`,{lng:c})}),(0,P.jsx)(zD,{children:d&&(0,P.jsx)(YD,{language:c,show:!0,toggled:t,onToggle:this.toggleShowCorrect})}),this.renderTeacherInstructions(),n&&(0,P.jsx)(BD,{children:(0,P.jsx)(jD,{prompt:n})}),(0,P.jsx)(MD,{false:!0,children:this.renderPlayerContent()}),f&&(0,P.jsx)(JD,{className:`note`,dangerouslySetInnerHTML:{__html:u}}),this.renderRationale()]})})}},sO=g(),cO=class extends HTMLElement{constructor(){super(),this._root=null,this._sessionNotifier=S(this,()=>{this.dispatchEvent(new T(this.tagName.toLowerCase(),!0))},{delayMs:1e3}),this.sessionChangedEventCaller=()=>this._sessionNotifier.notify()}set model(e){this._model=e,this.render(),this.dispatchEvent(new w(this.tagName.toLowerCase(),this.isSessionComplete(),this._model!==void 0))}get model(){return this._model}set session(e){this._session=e,this.render()}get session(){return this._session}isSessionComplete(){return!0}onSessionChange(e){Object.keys(e).map(t=>{this._session[t]=e[t]}),this.sessionChangedEventCaller(),this.render()}connectedCallback(){this.render()}render(){if(!(!this._model||!this._session)&&this._model&&this._session){let e=N.createElement(oO,{model:this._model,session:this._session,onSessionChange:this.onSessionChange.bind(this)});this._root||=(0,sO.createRoot)(this),this._root.render(e)}}disconnectedCallback(){C(this),this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`math-templated-element`)&&customElements.define(`math-templated-element`,cO),cO})();
239
+ </div>`,text:()=>`text`,latex:()=>`\\embed{answerBlock}[${e}]`})),!0))}handleAnswerBlockDomUpdate=()=>{let{model:e}=this.props,{session:t,showCorrect:n}=this.state,r=t.answers;this.root&&e.disabled&&!n&&Object.keys(r).forEach(t=>{let n=this.root.querySelector(`[data-answer-block="${t}"]`),i=this.root.querySelector(`[data-answer-block-index="${t}"]`);if(n){let a=r[t];OD(n,a&&a.value||``),e.view&&(n.parentElement.parentElement.classList.remove(`correct`),n.parentElement.parentElement.classList.remove(`incorrect`)),i.textContent=`R`}}),aC(this.root)};UNSAFE_componentWillReceiveProps(t){let{model:n}=this.props,{model:r={}}=t||{},{markup:i=``,env:a={}}=n||{},{markup:o=``,env:s={},alwaysShowCorrect:c=!1}=r,l=e=>e&&e.mode===`evaluate`;(!l(a)||!l(s))&&this.setState(e=>({...e.session,showCorrect:!1})),c&&this.setState({showCorrect:!0});let u=i.match(Fk),d=o.match(Fk);if(!Pt(u,d)){let t={},n=this.state.session.answers;(d||[]).forEach(r=>{let i=e.getResponseKey(r),a=n&&n[`r${i}`];t[`r${i}`]={value:a?.value||``}}),this.setState(e=>({session:{...e.session,answers:t}}),()=>{this.props.onSessionChange(this.state.session),this.handleAnswerBlockDomUpdate()})}}shouldComponentUpdate(e,t){let n=Pt(this.props.model,e.model),r=Pt(this.state,t);return!n||!r}componentDidMount(){this.handleAnswerBlockDomUpdate(),setTimeout(()=>aC(this.root),100)}componentDidUpdate(){this.handleAnswerBlockDomUpdate()}onSubFieldFocus=e=>{let t=Array.from(this.root?.querySelectorAll(`.mq-editable-field`)||[]).map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),n=()=>{t.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n})};this.setState({activeAnswerBlock:e},()=>{n(),requestAnimationFrame(n),setTimeout(n,0)})};toNodeData=e=>{if(!e)return;let{type:t,value:n}=e;return t===`command`||t===`cursor`?e:t===`answer`?{type:`answer`,...e}:n===`clear`?{type:`clear`}:{type:`write`,value:n}};setInput=e=>{this.input=e};onClick=e=>{let t=this.toNodeData(e);t.type===`clear`?this.input.clear():t.type===`command`?Array.isArray(t.value)?t.value.forEach(e=>{this.input.cmd(e)}):this.input.cmd(t.value):t.type===`cursor`?this.input.keystroke(t.value):this.input.write(t.value);let n=this.input?.el?.()||this.root,r=[],i=n;for(;i&&i!==document.body&&i!==document.documentElement;)(i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight)&&r.push(i),i=i.parentElement;document.scrollingElement&&r.push(document.scrollingElement);let a=r.map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),o={x:window.scrollX,y:window.scrollY},s=()=>{a.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n}),window.scrollTo(o.x,o.y)};this.input.focus(),s(),requestAnimationFrame(s),setTimeout(s,0)};callOnSessionChange=()=>{let{onSessionChange:e}=this.props;e&&e(this.state.session)};toggleShowCorrect=e=>{this.setState({showCorrect:e},this.handleAnswerBlockDomUpdate)};subFieldChanged=(e,t)=>{_m(),e&&this.setState(n=>({session:{...n.session,answers:{...n.session.answers,[e]:{value:t}}}}),this.callOnSessionChange)};getFieldName=(e,t)=>{let{answers:n}=this.state.session;if(Object.keys(n||{}).length)return Object.keys(n).find(n=>{let r=t[n];return r&&r.id==e.id})};onBlur=e=>{let{relatedTarget:t,currentTarget:n}=e||{};function r(e,t=0){if(!e||t>=16)return null;let n=e.offsetParent;return n?n.getAttribute(`role`)===`tooltip`?n:r(n,t+1):null}function i(e,t=0){if(!e||t>=4)return null;let n=e?.children?.[0];return n?n.attributes&&n.attributes[`data-keypad`]?n:i(n,t+1):null}let a=r(t),o=a?i(a):null;(!t||!n||!o?.attributes[`data-keypad`])&&this.setState({activeAnswerBlock:``})};setTooltipRef(e){setTimeout(()=>{if(e&&Rk){let e=document.querySelector(`[role='tooltip']`);e&&e.firstChild.setAttribute(`tabindex`,`-1`)}},1)}renderTeacherInstructions=()=>{let{model:e}=this.props,{teacherInstructions:t,animationsDisabled:n}=e||{},r=t&&(uT(t)||fT(t)),i=(0,F.jsx)(hk,{defaultClassName:`teacher-instructions`,prompt:t});return r&&(0,F.jsx)(Tk,{children:n?i:(0,F.jsx)(_k,{labels:{hidden:xk.t(`common:showTeacherInstructions`,{lng:e?.language}),visible:xk.t(`common:hideTeacherInstructions`,{lng:e?.language})},children:i})})};renderRationale=()=>{let{model:e}=this.props,{rationale:t,animationsDisabled:n}=e||{},r=(0,F.jsx)(hk,{prompt:t});return t&&(uT(t)||fT(t))&&(0,F.jsx)(Tk,{children:n?r:(0,F.jsx)(_k,{labels:{hidden:xk.t(`common:showRationale`,{lng:e?.language}),visible:xk.t(`common:hideRationale`,{lng:e?.language})},children:r})})};renderPlayerContent=()=>{let{model:e}=this.props,{activeAnswerBlock:t,showCorrect:n,session:r,tooltipContainerRef:i}=this.state,{correctness:a,disabled:o,view:s,responses:c,equationEditor:l,customKeys:u,feedback:d,env:{mode:f}={},printMode:p,alwaysShowCorrect:m,language:h}=e||{},g=Nt(c),_=zk(u),v=Hk(e,this.state)||``,y=p&&!m;return(0,F.jsx)(Ek,{children:(0,F.jsx)(JO,{disabled:o,markup:e.markup,value:{},customMarkMarkupComponent:e=>{let c=f===`evaluate`&&d&&d[e],u=(0,F.jsx)(Ok,{ref:e=>{this.mqStatic=e||this.mqStatic},latex:v[e],language:h,onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur});return(0,F.jsx)(Dk,{ref:i,$incorrect:!g&&!c&&!n,$correct:!g&&(c||n),$showCorrectness:!g&&o&&a&&!s,$correctAnswerShown:n,children:(0,F.jsx)(nf,{ref:e=>this.setTooltipRef(e),enterTouchDelay:0,interactive:!0,open:t===`r${e}`,slotProps:{popper:{container:i?.current||void 0,placement:`bottom-start`,sx:{backgroundColor:`transparent`,width:`auto`,opacity:1,"& .MuiTooltip-arrow":{display:`none`}},modifiers:[{name:`preventOverflow`,enabled:!1},{name:`flip`,enabled:!1},Uk]},tooltip:{sx:{fontSize:`initial`,backgroundColor:`transparent`,width:`auto`,maxWidth:`none`,marginTop:0,paddingTop:0,boxShadow:`none`}}},title:Object.keys(r.answers).map(e=>e===t&&!(n||o)&&(0,F.jsx)(kk,{"data-keypad":!0,style:{width:Bk(_,l)},children:(0,F.jsx)(tO,{additionalKeys:_,mode:l||Ik,onClick:this.onClick})},e)||null),children:y?(0,F.jsx)(Ak,{children:u}):(0,F.jsx)(`div`,{children:u})})})}})})};render(){let{model:e}=this.props,{showCorrect:t}=this.state,{prompt:n,env:{mode:r,role:i}={},extraCSSRules:a,correctness:o,responses:s,language:c,showNote:l,note:u}=e||{},d=!Nt(s)&&o&&o.correctness!==`correct`,f=(t||r===`view`&&i===`instructor`)&&l&&u;return(0,F.jsx)(Sk,{extraCSSRules:a,ref:e=>{let t=Yc.findDOMNode(e);this.root=t||this.root},children:(0,F.jsxs)(Ck,{children:[r===`gather`&&(0,F.jsx)(jk,{children:xk.t(`mathInline.mathEquationResponseQuestion`,{lng:c})}),(0,F.jsx)(Ck,{children:d&&(0,F.jsx)(Nk,{language:c,show:!0,toggled:t,onToggle:this.toggleShowCorrect})}),this.renderTeacherInstructions(),n&&(0,F.jsx)(wk,{children:(0,F.jsx)(hk,{prompt:n})}),(0,F.jsx)(gk,{false:!0,children:this.renderPlayerContent()}),f&&(0,F.jsx)(Mk,{className:`note`,dangerouslySetInnerHTML:{__html:$v(u)}}),this.renderRationale()]})})}},Gk=g(),Kk=class extends HTMLElement{constructor(){super(),this._root=null,this._sessionNotifier=S(this,()=>{this.dispatchEvent(new T(this.tagName.toLowerCase(),!0))},{delayMs:1e3}),this.sessionChangedEventCaller=()=>this._sessionNotifier.notify()}set model(e){this._model=e,this.render(),this.dispatchEvent(new w(this.tagName.toLowerCase(),this.isSessionComplete(),this._model!==void 0))}get model(){return this._model}set session(e){this._session=e,this.render()}get session(){return this._session}isSessionComplete(){return!0}onSessionChange(e){Object.keys(e).map(t=>{this._session[t]=e[t]}),this.sessionChangedEventCaller(),this.render()}connectedCallback(){this.render()}render(){if(!(!this._model||!this._session)&&this._model&&this._session){let e=P.createElement(Wk,{model:this._model,session:this._session,onSessionChange:this.onSessionChange.bind(this)});this._root||=(0,Gk.createRoot)(this),this._root.render(e)}}disconnectedCallback(){C(this),this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`math-templated-element`)&&customElements.define(`math-templated-element`,Kk),Kk})();