@pie-element/math-inline 13.0.2-next.20261007003844 → 13.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.
- package/dist/browser/author/index.js +471 -471
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/{dist-DRuFhF6c.js → dist-JjcMlN8y.js} +5368 -4442
- package/dist/browser/dist-JjcMlN8y.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +762 -762
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +1 -1
- package/dist/browser/editor-runtime/{dist-DTpumvp_.js → dist-CMbgPo5-.js} +5368 -4442
- package/dist/browser/editor-runtime/dist-CMbgPo5-.js.map +1 -0
- package/dist/browser/editor-runtime/{main-BhJ6__1J.js → main-CSiqPOLM.js} +186 -186
- package/dist/browser/editor-runtime/{main-BhJ6__1J.js.map → main-CSiqPOLM.js.map} +1 -1
- package/dist/browser/editor-runtime/print/index.js +2 -2
- package/dist/browser/{main-CK_AKSba.js → main-CHivxCym.js} +186 -186
- package/dist/browser/{main-CK_AKSba.js.map → main-CHivxCym.js.map} +1 -1
- package/dist/browser/print/index.js +2 -2
- package/dist/delivery/main.js +66 -65
- package/dist/index.iife.js +62 -60
- package/module/print.js +7898 -6972
- package/module/print.js.map +1 -1
- package/package.json +15 -14
- package/dist/browser/dist-DRuFhF6c.js.map +0 -1
- package/dist/browser/editor-runtime/dist-DTpumvp_.js.map +0 -1
package/dist/index.iife.js
CHANGED
|
@@ -2,13 +2,13 @@ this.MathInlineElement=(function(){var e=Object.create,t=Object.defineProperty,n
|
|
|
2
2
|
`+oe+e}var ce=!1;function le(e,t){if(!e||ce)return``;ce=!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{ce=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?se(e):``}function ue(e){switch(e.tag){case 5:return se(e.type);case 16:return se(`Lazy`);case 13:return se(`Suspense`);case 19:return se(`SuspenseList`);case 0:case 2:case 15:return e=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return``}}function de(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 j:return`Suspense`;case te:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case k:return(e.displayName||`Context`)+`.Consumer`;case ee:return(e._context.displayName||`Context`)+`.Provider`;case A:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case M:return t=e.displayName||null,t===null?de(e.type)||`Memo`:t;case ne:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}function fe(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 de(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 pe(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function me(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function he(e){var t=me(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 ge(e){e._valueTracker||=he(e)}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=me(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function ve(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 ae({},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=pe(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=pe(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,pe(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`||ve(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=``+pe(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 ae({},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:pe(n)}}function ke(e,t){var n=pe(t.value),r=pe(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=ae({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=Gi(e)){if(typeof Ge!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=qi(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 P(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 et(e,t){var n=e.stateNode;if(n===null)return null;var i=qi(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 tt=!1;if(c)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){tt=!0}}),window.addEventListener(`test`,nt,nt),window.removeEventListener(`test`,nt,nt)}catch{tt=!1}function rt(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 it=!1,at=null,ot=!1,st=null,ct={onError:function(e){it=!0,at=e}};function lt(e,t,n,r,i,a,o,s,c){it=!1,at=null,rt.apply(ct,arguments)}function ut(e,t,n,i,a,o,s,c,l){if(lt.apply(this,arguments),it){if(it){var u=at;it=!1,at=null}else throw Error(r(198));ot||(ot=!0,st=u)}}function dt(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 ft(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 pt(e){if(dt(e)!==e)throw Error(r(188))}function mt(e){var t=e.alternate;if(!t){if(t=dt(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 pt(a),e;if(o===i)return pt(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 ht(e){return e=mt(e),e===null?null:gt(e)}function gt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gt(e);if(t!==null)return t;e=e.sibling}return null}var _t=n.unstable_scheduleCallback,vt=n.unstable_cancelCallback,yt=n.unstable_shouldYield,bt=n.unstable_requestPaint,F=n.unstable_now,xt=n.unstable_getCurrentPriorityLevel,St=n.unstable_ImmediatePriority,Ct=n.unstable_UserBlockingPriority,wt=n.unstable_NormalPriority,Tt=n.unstable_LowPriority,Et=n.unstable_IdlePriority,Dt=null,Ot=null;function kt(e){if(Ot&&typeof Ot.onCommitFiberRoot==`function`)try{Ot.onCommitFiberRoot(Dt,e,void 0,(e.current.flags&128)==128)}catch{}}var At=Math.clz32?Math.clz32:Nt,jt=Math.log,Mt=Math.LN2;function Nt(e){return e>>>=0,e===0?32:31-(jt(e)/Mt|0)|0}var Pt=64,Ft=4194304;function It(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 Lt(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=It(a))):r=It(s)}else o=n&~i,o===0?a!==0&&(r=It(a)):r=It(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-At(t),i=1<<n,r|=e[n],t&=~i;return r}function Rt(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 zt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-At(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Rt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Bt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Vt(){var e=Pt;return Pt<<=1,!(Pt&4194240)&&(Pt=64),e}function Ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ut(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-At(t),e[t]=n}function Wt(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-At(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-At(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Kt=0;function qt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Jt,Yt,Xt,Zt,Qt,$t=!1,en=[],tn=null,nn=null,rn=null,an=new Map,on=new Map,sn=[],cn=`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 ln(e,t){switch(e){case`focusin`:case`focusout`:tn=null;break;case`dragenter`:case`dragleave`:nn=null;break;case`mouseover`:case`mouseout`:rn=null;break;case`pointerover`:case`pointerout`:an.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:on.delete(t.pointerId)}}function un(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=Gi(t),t!==null&&Yt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function dn(e,t,n,r,i){switch(t){case`focusin`:return tn=un(tn,e,t,n,r,i),!0;case`dragenter`:return nn=un(nn,e,t,n,r,i),!0;case`mouseover`:return rn=un(rn,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return an.set(a,un(an.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,on.set(a,un(on.get(a)||null,e,t,n,r,i)),!0}return!1}function fn(e){var t=Wi(e.target);if(t!==null){var n=dt(t);if(n!==null){if(t=n.tag,t===13){if(t=ft(n),t!==null){e.blockedOn=t,Qt(e.priority,function(){Xt(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 pn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wn(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=Gi(n),t!==null&&Yt(t),e.blockedOn=n,!1;t.shift()}return!0}function mn(e,t,n){pn(e)&&n.delete(t)}function hn(){$t=!1,tn!==null&&pn(tn)&&(tn=null),nn!==null&&pn(nn)&&(nn=null),rn!==null&&pn(rn)&&(rn=null),an.forEach(mn),on.forEach(mn)}function gn(e,t){e.blockedOn===t&&(e.blockedOn=null,$t||($t=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,hn)))}function _n(e){function t(t){return gn(t,e)}if(0<en.length){gn(en[0],e);for(var n=1;n<en.length;n++){var r=en[n];r.blockedOn===e&&(r.blockedOn=null)}}for(tn!==null&&gn(tn,e),nn!==null&&gn(nn,e),rn!==null&&gn(rn,e),an.forEach(t),on.forEach(t),n=0;n<sn.length;n++)r=sn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<sn.length&&(n=sn[0],n.blockedOn===null);)fn(n),n.blockedOn===null&&sn.shift()}var vn=C.ReactCurrentBatchConfig,yn=!0;function bn(e,t,n,r){var i=Kt,a=vn.transition;vn.transition=null;try{Kt=1,Sn(e,t,n,r)}finally{Kt=i,vn.transition=a}}function xn(e,t,n,r){var i=Kt,a=vn.transition;vn.transition=null;try{Kt=4,Sn(e,t,n,r)}finally{Kt=i,vn.transition=a}}function Sn(e,t,n,r){if(yn){var i=wn(e,t,n,r);if(i===null)gi(e,t,r,Cn,n),ln(e,r);else if(dn(i,e,t,n,r))r.stopPropagation();else if(ln(e,r),t&4&&-1<cn.indexOf(e)){for(;i!==null;){var a=Gi(i);if(a!==null&&Jt(a),a=wn(e,t,n,r),a===null&&gi(e,t,r,Cn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else gi(e,t,r,null,n)}}var Cn=null;function wn(e,t,n,r){if(Cn=null,e=We(r),e=Wi(e),e!==null)if(t=dt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ft(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 Cn=e,null}function Tn(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(xt()){case St:return 1;case Ct:return 4;case wt:case Tt:return 16;case Et:return 536870912;default:return 16}default:return 16}}var En=null,Dn=null,On=null;function kn(){if(On)return On;var e,t=Dn,n=t.length,r,i=`value`in En?En.value:En.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 On=i.slice(e,1<r?1-r:void 0)}function An(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 jn(){return!0}function Mn(){return!1}function Nn(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)?jn:Mn,this.isPropagationStopped=Mn,this}return ae(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=jn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=jn)},persist:function(){},isPersistent:jn}),t}var Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fn=Nn(Pn),I=ae({},Pn,{view:0,detail:0}),In=Nn(I),Ln,Rn,zn,Bn=ae({},I,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zn,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!==zn&&(zn&&e.type===`mousemove`?(Ln=e.screenX-zn.screenX,Rn=e.screenY-zn.screenY):Rn=Ln=0,zn=e),Ln)},movementY:function(e){return`movementY`in e?e.movementY:Rn}}),Vn=Nn(Bn),Hn=Nn(ae({},Bn,{dataTransfer:0})),Un=Nn(ae({},I,{relatedTarget:0})),Wn=Nn(ae({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0})),Gn=Nn(ae({},Pn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Kn=Nn(ae({},Pn,{data:0})),qn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Jn={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`},Yn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yn[e])?!!t[e]:!1}function Zn(){return Xn}var Qn=Nn(ae({},I,{key:function(e){if(e.key){var t=qn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=An(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Jn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zn,charCode:function(e){return e.type===`keypress`?An(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?An(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),$n=Nn(ae({},Bn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),er=Nn(ae({},I,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zn})),tr=Nn(ae({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=Nn(ae({},Bn,{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})),rr=[9,13,27,32],ir=c&&`CompositionEvent`in window,ar=null;c&&`documentMode`in document&&(ar=document.documentMode);var or=c&&`TextEvent`in window&&!ar,sr=c&&(!ir||ar&&8<ar&&11>=ar),cr=` `,L=!1;function lr(e,t){switch(e){case`keyup`:return rr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ur(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var dr=!1;function fr(e,t){switch(e){case`compositionend`:return ur(t);case`keypress`:return t.which===32?(L=!0,cr):null;case`textInput`:return e=t.data,e===cr&&L?null:e;default:return null}}function pr(e,t){if(dr)return e===`compositionend`||!ir&&lr(e,t)?(e=kn(),On=Dn=En=null,dr=!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 sr&&t.locale!==`ko`?null:t.data;default:return null}}var mr={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 hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!mr[e.type]:t===`textarea`}function gr(e,t,n,r){Ye(r),t=vi(t,`onChange`),0<t.length&&(n=new Fn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var _r=null,vr=null;function yr(e){ui(e,0)}function br(e){if(_e(Ki(e)))return e}function xr(e,t){if(e===`change`)return t}var Sr=!1;if(c){var Cr;if(c){var wr=`oninput`in document;if(!wr){var Tr=document.createElement(`div`);Tr.setAttribute(`oninput`,`return;`),wr=typeof Tr.oninput==`function`}Cr=wr}else Cr=!1;Sr=Cr&&(!document.documentMode||9<document.documentMode)}function Er(){_r&&(_r.detachEvent(`onpropertychange`,Dr),vr=_r=null)}function Dr(e){if(e.propertyName===`value`&&br(vr)){var t=[];gr(t,vr,e,We(e)),P(yr,t)}}function Or(e,t,n){e===`focusin`?(Er(),_r=t,vr=n,_r.attachEvent(`onpropertychange`,Dr)):e===`focusout`&&Er()}function kr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return br(vr)}function Ar(e,t){if(e===`click`)return br(t)}function jr(e,t){if(e===`input`||e===`change`)return br(t)}function Mr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Nr=typeof Object.is==`function`?Object.is:Mr;function Pr(e,t){if(Nr(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)||!Nr(e[i],t[i]))return!1}return!0}function Fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ir(e,t){var n=Fr(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=Fr(n)}}function Lr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rr(){for(var e=window,t=ve();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=ve(e.document)}return t}function zr(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 Br(e){var t=Rr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lr(n.ownerDocument.documentElement,n)){if(r!==null&&zr(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=Ir(n,a);var o=Ir(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 Vr=c&&`documentMode`in document&&11>=document.documentMode,Hr=null,Ur=null,Wr=null,Gr=!1;function Kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gr||Hr==null||Hr!==ve(r)||(r=Hr,`selectionStart`in r&&zr(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}),Wr&&Pr(Wr,r)||(Wr=r,r=vi(Ur,`onSelect`),0<r.length&&(t=new Fn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Hr)))}function qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Jr={animationend:qr(`Animation`,`AnimationEnd`),animationiteration:qr(`Animation`,`AnimationIteration`),animationstart:qr(`Animation`,`AnimationStart`),transitionend:qr(`Transition`,`TransitionEnd`)},Yr={},Xr={};c&&(Xr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Jr.animationend.animation,delete Jr.animationiteration.animation,delete Jr.animationstart.animation),`TransitionEvent`in window||delete Jr.transitionend.transition);function Zr(e){if(Yr[e])return Yr[e];if(!Jr[e])return e;var t=Jr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xr)return Yr[e]=t[n];return e}var Qr=Zr(`animationend`),$r=Zr(`animationiteration`),ei=Zr(`animationstart`),ti=Zr(`transitionend`),ni=new Map,ri=`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 ii(e,t){ni.set(e,t),o(t,[e])}for(var ai=0;ai<ri.length;ai++){var oi=ri[ai];ii(oi.toLowerCase(),`on`+(oi[0].toUpperCase()+oi.slice(1)))}ii(Qr,`onAnimationEnd`),ii($r,`onAnimationIteration`),ii(ei,`onAnimationStart`),ii(`dblclick`,`onDoubleClick`),ii(`focusin`,`onFocus`),ii(`focusout`,`onBlur`),ii(ti,`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 si=`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(` `),ci=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(si));function li(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,ut(r,t,void 0,e),e.currentTarget=null}function ui(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;li(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;li(i,s,l),a=c}}}if(ot)throw e=st,ot=!1,st=null,e}function di(e,t){var n=t[Vi];n===void 0&&(n=t[Vi]=new Set);var r=e+`__bubble`;n.has(r)||(hi(t,e,2,!1),n.add(r))}function fi(e,t,n){var r=0;t&&(r|=4),hi(n,e,r,t)}var pi=`_reactListening`+Math.random().toString(36).slice(2);function mi(e){if(!e[pi]){e[pi]=!0,i.forEach(function(t){t!==`selectionchange`&&(ci.has(t)||fi(t,!1,e),fi(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pi]||(t[pi]=!0,fi(`selectionchange`,!1,t))}}function hi(e,t,n,r){switch(Tn(t)){case 1:var i=bn;break;case 4:i=xn;break;default:i=Sn}n=i.bind(null,t,n,e),i=void 0,!tt||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 gi(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=Wi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}P(function(){var r=a,i=We(n),o=[];a:{var s=ni.get(e);if(s!==void 0){var c=Fn,l=e;switch(e){case`keypress`:if(An(n)===0)break a;case`keydown`:case`keyup`:c=Qn;break;case`focusin`:l=`focus`,c=Un;break;case`focusout`:l=`blur`,c=Un;break;case`beforeblur`:case`afterblur`:c=Un;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=Vn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Hn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=er;break;case Qr:case $r:case ei:c=Wn;break;case ti:c=tr;break;case`scroll`:c=In;break;case`wheel`:c=nr;break;case`copy`:case`cut`:case`paste`:c=Gn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=$n}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=et(p,f),h!=null&&u.push(_i(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)&&(Wi(l)||l[Bi]))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?Wi(l):null,l!==null&&(d=dt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Vn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=$n,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ki(c),m=l==null?s:Ki(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Wi(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=yi(m))p++;for(m=0,h=f;h;h=yi(h))m++;for(;0<p-m;)u=yi(u),p--;for(;0<m-p;)f=yi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=yi(u),f=yi(f)}u=null}else u=null;c!==null&&bi(o,s,c,u,!1),l!==null&&d!==null&&bi(o,d,l,u,!0)}}a:{if(s=r?Ki(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=xr;else if(hr(s))if(Sr)g=jr;else{g=kr;var _=Or}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Ar);if(g&&=g(e,r)){gr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&we(s,`number`,s.value)}switch(_=r?Ki(r):window,e){case`focusin`:(hr(_)||_.contentEditable===`true`)&&(Hr=_,Ur=r,Wr=null);break;case`focusout`:Wr=Ur=Hr=null;break;case`mousedown`:Gr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Gr=!1,Kr(o,n,i);break;case`selectionchange`:if(Vr)break;case`keydown`:case`keyup`:Kr(o,n,i)}var v;if(ir)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 dr?lr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(sr&&n.locale!==`ko`&&(dr||y!==`onCompositionStart`?y===`onCompositionEnd`&&dr&&(v=kn()):(En=i,Dn=`value`in En?En.value:En.textContent,dr=!0)),_=vi(r,y),0<_.length&&(y=new Kn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=ur(n),v!==null&&(y.data=v)))),(v=or?fr(e,n):pr(e,n))&&(r=vi(r,`onBeforeInput`),0<r.length&&(i=new Kn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}ui(o,t)})}function _i(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=et(e,n),a!=null&&r.unshift(_i(e,a,i)),a=et(e,t),a!=null&&r.push(_i(e,a,i))),e=e.return}return r}function yi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function bi(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=et(n,a),c!=null&&o.unshift(_i(n,c,s))):i||(c=et(n,a),c!=null&&o.push(_i(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var xi=/\r\n?/g,Si=/\u0000|\uFFFD/g;function Ci(e){return(typeof e==`string`?e:``+e).replace(xi,`
|
|
6
|
-
`).replace(Si,``)}function wi(e,t,n){if(t=Ci(t),Ci(e)!==t&&n)throw Error(r(425))}function Ti(){}var Ei=null,Di=null;function Oi(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 ki=typeof setTimeout==`function`?setTimeout:void 0,Ai=typeof clearTimeout==`function`?clearTimeout:void 0,ji=typeof Promise==`function`?Promise:void 0,Mi=typeof queueMicrotask==`function`?queueMicrotask:ji===void 0?ki:function(e){return ji.resolve(null).then(e).catch(Ni)};function Ni(e){setTimeout(function(){throw e})}function Pi(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),_n(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);_n(t)}function Fi(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 Ii(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 Li=Math.random().toString(36).slice(2),Ri=`__reactFiber$`+Li,zi=`__reactProps$`+Li,Bi=`__reactContainer$`+Li,Vi=`__reactEvents$`+Li,Hi=`__reactListeners$`+Li,Ui=`__reactHandles$`+Li;function Wi(e){var t=e[Ri];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bi]||n[Ri]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ii(e);e!==null;){if(n=e[Ri])return n;e=Ii(e)}return t}e=n,n=e.parentNode}return null}function Gi(e){return e=e[Ri]||e[Bi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ki(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function qi(e){return e[zi]||null}var Ji=[],Yi=-1;function Xi(e){return{current:e}}function R(e){0>Yi||(e.current=Ji[Yi],Ji[Yi]=null,Yi--)}function Zi(e,t){Yi++,Ji[Yi]=e.current,e.current=t}var Qi={},z=Xi(Qi),$i=Xi(!1),ea=Qi;function ta(e,t){var n=e.type.contextTypes;if(!n)return Qi;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 na(e){return e=e.childContextTypes,e!=null}function ra(){R($i),R(z)}function ia(e,t,n){if(z.current!==Qi)throw Error(r(168));Zi(z,t),Zi($i,n)}function aa(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,fe(e)||`Unknown`,a));return ae({},n,i)}function oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qi,ea=z.current,Zi(z,e),Zi($i,$i.current),!0}function sa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=aa(e,t,ea),i.__reactInternalMemoizedMergedChildContext=e,R($i),R(z),Zi(z,e)):R($i),Zi($i,n)}var ca=null,la=!1,ua=!1;function da(e){ca===null?ca=[e]:ca.push(e)}function fa(e){la=!0,da(e)}function pa(){if(!ua&&ca!==null){ua=!0;var e=0,t=Kt;try{var n=ca;for(Kt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ca=null,la=!1}catch(t){throw ca!==null&&(ca=ca.slice(e+1)),_t(St,pa),t}finally{Kt=t,ua=!1}}return null}var ma=[],ha=0,ga=null,_a=0,va=[],ya=0,ba=null,xa=1,Sa=``;function Ca(e,t){ma[ha++]=_a,ma[ha++]=ga,ga=e,_a=t}function wa(e,t,n){va[ya++]=xa,va[ya++]=Sa,va[ya++]=ba,ba=e;var r=xa;e=Sa;var i=32-At(r)-1;r&=~(1<<i),n+=1;var a=32-At(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,xa=1<<32-At(t)+i|n<<i|r,Sa=a+e}else xa=1<<a|n<<i|r,Sa=e}function Ta(e){e.return!==null&&(Ca(e,1),wa(e,1,0))}function Ea(e){for(;e===ga;)ga=ma[--ha],ma[ha]=null,_a=ma[--ha],ma[ha]=null;for(;e===ba;)ba=va[--ya],va[ya]=null,Sa=va[--ya],va[ya]=null,xa=va[--ya],va[ya]=null}var Da=null,Oa=null,ka=!1,Aa=null;function ja(e,t){var n=ru(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 Ma(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,Da=e,Oa=Fi(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Da=e,Oa=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=ba===null?null:{id:xa,overflow:Sa},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ru(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Da=e,Oa=null,!0);default:return!1}}function Na(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Pa(e){if(ka){var t=Oa;if(t){var n=t;if(!Ma(e,t)){if(Na(e))throw Error(r(418));t=Fi(n.nextSibling);var i=Da;t&&Ma(e,t)?ja(i,n):(e.flags=e.flags&-4097|2,ka=!1,Da=e)}}else{if(Na(e))throw Error(r(418));e.flags=e.flags&-4097|2,ka=!1,Da=e}}}function Fa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Da=e}function Ia(e){if(e!==Da)return!1;if(!ka)return Fa(e),ka=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Oi(e.type,e.memoizedProps)),t&&=Oa){if(Na(e))throw La(),Error(r(418));for(;t;)ja(e,t),t=Fi(t.nextSibling)}if(Fa(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){Oa=Fi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Oa=null}}else Oa=Da?Fi(e.stateNode.nextSibling):null;return!0}function La(){for(var e=Oa;e;)e=Fi(e.nextSibling)}function Ra(){Oa=Da=null,ka=!1}function za(e){Aa===null?Aa=[e]:Aa.push(e)}var Ba=C.ReactCurrentBatchConfig;function Va(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 Ha(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ua(e){var t=e._init;return t(e._payload)}function Wa(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=ou(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=uu(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===ne&&Ua(i)===t.type)?(r=a(t,n.props),r.ref=Va(e,t,n),r.return=e,r):(r=su(n.type,n.key,n.props,null,e.mode,r),r.ref=Va(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=du(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=cu(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=uu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=su(t.type,t.key,t.props,null,e.mode,n),n.ref=Va(e,null,t),n.return=e,n;case T:return t=du(t,e.mode,n),t.return=e,t;case ne:var r=t._init;return f(e,r(t._payload),n)}if(Te(t)||ie(t))return t=cu(t,e.mode,n,null),t.return=e,t;Ha(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 ne:return i=n._init,p(e,t,i(n._payload),r)}if(Te(n)||ie(n))return i===null?d(e,t,n,r,null):null;Ha(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 ne:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Te(r)||ie(r))return e=e.get(n)||null,d(t,e,r,i,null);Ha(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),ka&&Ca(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 ka&&Ca(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)}),ka&&Ca(r,h),l}function g(a,s,c,l){var u=ie(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),ka&&Ca(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 ka&&Ca(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)}),ka&&Ca(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===ne&&Ua(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Va(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=cu(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=su(i.type,i.key,i.props,null,e.mode,o),o.ref=Va(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=du(i,e.mode,o),r.return=e,e=r}return s(e);case ne:return l=i._init,_(e,r,l(i._payload),o)}if(Te(i))return h(e,r,i,o);if(ie(i))return g(e,r,i,o);Ha(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=uu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ga=Wa(!0),Ka=Wa(!1),qa=Xi(null),Ja=null,Ya=null,Xa=null;function Za(){Xa=Ya=Ja=null}function Qa(e){var t=qa.current;R(qa),e._currentValue=t}function $a(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 eo(e,t){Ja=e,Xa=Ya=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Hs=!0),e.firstContext=null)}function to(e){var t=e._currentValue;if(Xa!==e)if(e={context:e,memoizedValue:t,next:null},Ya===null){if(Ja===null)throw Error(r(308));Ya=e,Ja.dependencies={lanes:0,firstContext:e}}else Ya=Ya.next=e;return t}var no=null;function ro(e){no===null?no=[e]:no.push(e)}function io(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ro(t)):(n.next=i.next,i.next=n),t.interleaved=n,ao(e,r)}function ao(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var oo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function co(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 lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Zc&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ao(e,n)}return i=r.interleaved,i===null?(t.next=t,ro(r)):(t.next=i.next,i.next=t),r.interleaved=t,ao(e,n)}function fo(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,Gt(e,n)}}function po(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 mo(e,t,n,r){var i=e.updateQueue;oo=!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=ae({},d,f);break a;case 2:oo=!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);al|=o,e.lanes=o,e.memoizedState=d}}function ho(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 go={},_o=Xi(go),vo=Xi(go),yo=Xi(go);function bo(e){if(e===go)throw Error(r(174));return e}function xo(e,t){switch(Zi(yo,t),Zi(vo,e),Zi(_o,go),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)}R(_o),Zi(_o,t)}function So(){R(_o),R(vo),R(yo)}function Co(e){bo(yo.current);var t=bo(_o.current),n=Me(t,e.type);t!==n&&(Zi(vo,e),Zi(_o,n))}function wo(e){vo.current===e&&(R(_o),R(vo))}var To=Xi(0);function Eo(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 Do=[];function Oo(){for(var e=0;e<Do.length;e++)Do[e]._workInProgressVersionPrimary=null;Do.length=0}var ko=C.ReactCurrentDispatcher,Ao=C.ReactCurrentBatchConfig,jo=0,Mo=null,No=null,Po=null,Fo=!1,Io=!1,Lo=0,Ro=0;function zo(){throw Error(r(321))}function Bo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nr(e[n],t[n]))return!1;return!0}function Vo(e,t,n,i,a,o){if(jo=o,Mo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ko.current=e===null||e.memoizedState===null?Cs:ws,e=n(i,a),Io){o=0;do{if(Io=!1,Lo=0,25<=o)throw Error(r(301));o+=1,Po=No=null,t.updateQueue=null,ko.current=Ts,e=n(i,a)}while(Io)}if(ko.current=Ss,t=No!==null&&No.next!==null,jo=0,Po=No=Mo=null,Fo=!1,t)throw Error(r(300));return e}function Ho(){var e=Lo!==0;return Lo=0,e}function Uo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Po===null?Mo.memoizedState=Po=e:Po=Po.next=e,Po}function Wo(){if(No===null){var e=Mo.alternate;e=e===null?null:e.memoizedState}else e=No.next;var t=Po===null?Mo.memoizedState:Po.next;if(t!==null)Po=t,No=e;else{if(e===null)throw Error(r(310));No=e,e={memoizedState:No.memoizedState,baseState:No.baseState,baseQueue:No.baseQueue,queue:No.queue,next:null},Po===null?Mo.memoizedState=Po=e:Po=Po.next=e}return Po}function Go(e,t){return typeof t==`function`?t(e):t}function Ko(e){var t=Wo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=No,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((jo&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,Mo.lanes|=d,al|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Nr(i,t.memoizedState)||(Hs=!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,Mo.lanes|=o,al|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function qo(e){var t=Wo(),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);Nr(o,t.memoizedState)||(Hs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Jo(){}function Yo(e,t){var n=Mo,i=Wo(),a=t(),o=!Nr(i.memoizedState,a);if(o&&(i.memoizedState=a,Hs=!0),i=i.queue,ss(Qo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Po!==null&&Po.memoizedState.tag&1){if(n.flags|=2048,ns(9,Zo.bind(null,n,i,a,t),void 0,null),Qc===null)throw Error(r(349));jo&30||Xo(n,t,a)}return a}function Xo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Mo.updateQueue,t===null?(t={lastEffect:null,stores:null},Mo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Zo(e,t,n,r){t.value=n,t.getSnapshot=r,$o(t)&&es(e)}function Qo(e,t,n){return n(function(){$o(t)&&es(e)})}function $o(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nr(e,n)}catch{return!0}}function es(e){var t=ao(e,1);t!==null&&Tl(t,e,1,-1)}function ts(e){var t=Uo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:e},t.queue=e,e=e.dispatch=ys.bind(null,Mo,e),[t.memoizedState,e]}function ns(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Mo.updateQueue,t===null?(t={lastEffect:null,stores:null},Mo.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 rs(){return Wo().memoizedState}function is(e,t,n,r){var i=Uo();Mo.flags|=e,i.memoizedState=ns(1|t,n,void 0,r===void 0?null:r)}function as(e,t,n,r){var i=Wo();r=r===void 0?null:r;var a=void 0;if(No!==null){var o=No.memoizedState;if(a=o.destroy,r!==null&&Bo(r,o.deps)){i.memoizedState=ns(t,n,a,r);return}}Mo.flags|=e,i.memoizedState=ns(1|t,n,a,r)}function os(e,t){return is(8390656,8,e,t)}function ss(e,t){return as(2048,8,e,t)}function cs(e,t){return as(4,2,e,t)}function ls(e,t){return as(4,4,e,t)}function us(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 ds(e,t,n){return n=n==null?null:n.concat([e]),as(4,4,us.bind(null,t,e),n)}function fs(){}function ps(e,t){var n=Wo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ms(e,t){var n=Wo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hs(e,t,n){return jo&21?(Nr(n,t)||(n=Vt(),Mo.lanes|=n,al|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Hs=!0),e.memoizedState=n)}function gs(e,t){var n=Kt;Kt=n!==0&&4>n?n:4,e(!0);var r=Ao.transition;Ao.transition={};try{e(!1),t()}finally{Kt=n,Ao.transition=r}}function _s(){return Wo().memoizedState}function vs(e,t,n){var r=wl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bs(e))xs(t,n);else if(n=io(e,t,n,r),n!==null){var i=Cl();Tl(n,e,r,i),B(n,t,r)}}function ys(e,t,n){var r=wl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bs(e))xs(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,Nr(s,o)){var c=t.interleaved;c===null?(i.next=i,ro(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=io(e,t,i,r),n!==null&&(i=Cl(),Tl(n,e,r,i),B(n,t,r))}}function bs(e){var t=e.alternate;return e===Mo||t!==null&&t===Mo}function xs(e,t){Io=Fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function B(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gt(e,n)}}var Ss={readContext:to,useCallback:zo,useContext:zo,useEffect:zo,useImperativeHandle:zo,useInsertionEffect:zo,useLayoutEffect:zo,useMemo:zo,useReducer:zo,useRef:zo,useState:zo,useDebugValue:zo,useDeferredValue:zo,useTransition:zo,useMutableSource:zo,useSyncExternalStore:zo,useId:zo,unstable_isNewReconciler:!1},Cs={readContext:to,useCallback:function(e,t){return Uo().memoizedState=[e,t===void 0?null:t],e},useContext:to,useEffect:os,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),is(4194308,4,us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return is(4194308,4,e,t)},useInsertionEffect:function(e,t){return is(4,2,e,t)},useMemo:function(e,t){var n=Uo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Uo();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=vs.bind(null,Mo,e),[r.memoizedState,e]},useRef:function(e){var t=Uo();return e={current:e},t.memoizedState=e},useState:ts,useDebugValue:fs,useDeferredValue:function(e){return Uo().memoizedState=e},useTransition:function(){var e=ts(!1),t=e[0];return e=gs.bind(null,e[1]),Uo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Mo,a=Uo();if(ka){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Qc===null)throw Error(r(349));jo&30||Xo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,os(Qo.bind(null,i,o,e),[e]),i.flags|=2048,ns(9,Zo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Uo(),t=Qc.identifierPrefix;if(ka){var n=Sa,r=xa;n=(r&~(1<<32-At(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Lo++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Ro++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},ws={readContext:to,useCallback:ps,useContext:to,useEffect:ss,useImperativeHandle:ds,useInsertionEffect:cs,useLayoutEffect:ls,useMemo:ms,useReducer:Ko,useRef:rs,useState:function(){return Ko(Go)},useDebugValue:fs,useDeferredValue:function(e){return hs(Wo(),No.memoizedState,e)},useTransition:function(){return[Ko(Go)[0],Wo().memoizedState]},useMutableSource:Jo,useSyncExternalStore:Yo,useId:_s,unstable_isNewReconciler:!1},Ts={readContext:to,useCallback:ps,useContext:to,useEffect:ss,useImperativeHandle:ds,useInsertionEffect:cs,useLayoutEffect:ls,useMemo:ms,useReducer:qo,useRef:rs,useState:function(){return qo(Go)},useDebugValue:fs,useDeferredValue:function(e){var t=Wo();return No===null?t.memoizedState=e:hs(t,No.memoizedState,e)},useTransition:function(){return[qo(Go)[0],Wo().memoizedState]},useMutableSource:Jo,useSyncExternalStore:Yo,useId:_s,unstable_isNewReconciler:!1};function Es(e,t){if(e&&e.defaultProps){for(var n in t=ae({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ds(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Os={isMounted:function(e){return(e=e._reactInternals)?dt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Cl(),i=wl(e),a=lo(r,i);a.payload=t,n!=null&&(a.callback=n),t=uo(e,a,i),t!==null&&(Tl(t,e,i,r),fo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Cl(),i=wl(e),a=lo(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=uo(e,a,i),t!==null&&(Tl(t,e,i,r),fo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cl(),r=wl(e),i=lo(n,r);i.tag=2,t!=null&&(i.callback=t),t=uo(e,i,r),t!==null&&(Tl(t,e,r,n),fo(t,e,r))}};function ks(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?!Pr(n,r)||!Pr(i,a):!0}function As(e,t,n){var r=!1,i=Qi,a=t.contextType;return typeof a==`object`&&a?a=to(a):(i=na(t)?ea:z.current,r=t.contextTypes,a=(r=r!=null)?ta(e,i):Qi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Os,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function js(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&&Os.enqueueReplaceState(t,t.state,null)}function Ms(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},so(e);var a=t.contextType;typeof a==`object`&&a?i.context=to(a):(a=na(t)?ea:z.current,i.context=ta(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Ds(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&&Os.enqueueReplaceState(i,i.state,null),mo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Ns(e,t){try{var n=``,r=t;do n+=ue(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{ce=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?se(e):``}function ue(e){switch(e.tag){case 5:return se(e.type);case 16:return se(`Lazy`);case 13:return se(`Suspense`);case 19:return se(`SuspenseList`);case 0:case 2:case 15:return e=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return``}}function de(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 j:return`Suspense`;case te:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case k:return(e.displayName||`Context`)+`.Consumer`;case ee:return(e._context.displayName||`Context`)+`.Provider`;case A:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case M:return t=e.displayName||null,t===null?de(e.type)||`Memo`:t;case ne:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}function fe(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 de(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 pe(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function me(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function he(e){var t=me(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 P(e){e._valueTracker||=he(e)}function ge(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=me(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function F(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 _e(e,t){var n=t.checked;return ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ve(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=pe(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 ye(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function be(e,t){ye(e,t);var n=pe(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`)?Se(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Se(e,t.type,pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xe(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 Se(e,t,n){(t!==`number`||F(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Ce=Array.isArray;function we(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=``+pe(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 Te(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return ae({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Ee(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(Ce(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:pe(n)}}function De(e,t){var n=pe(t.value),r=pe(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 Oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function ke(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 Ae(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?ke(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var je,Me=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(je||=document.createElement(`div`),je.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=je.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ne(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fe=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Pe).forEach(function(e){Fe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pe[t]=Pe[e]})});function Ie(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Pe.hasOwnProperty(e)&&Pe[e]?(``+t).trim():t+`px`}function Le(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Ie(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Re=ae({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 ze(e,t){if(t){if(Re[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 Be(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 Ve=null;function He(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ue=null,We=null,Ge=null;function Ke(e){if(e=Ui(e)){if(typeof Ue!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Gi(t),Ue(e.stateNode,e.type,t))}}function qe(e){We?Ge?Ge.push(e):Ge=[e]:We=e}function Je(){if(We){var e=We,t=Ge;if(Ge=We=null,Ke(e),t)for(e=0;e<t.length;e++)Ke(t[e])}}function Ye(e,t){return e(t)}function Xe(){}var Ze=!1;function I(e,t,n){if(Ze)return e(t,n);Ze=!0;try{return Ye(e,t,n)}finally{Ze=!1,(We!==null||Ge!==null)&&(Xe(),Je())}}function Qe(e,t){var n=e.stateNode;if(n===null)return null;var i=Gi(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 $e=!1;if(c)try{var et={};Object.defineProperty(et,"passive",{get:function(){$e=!0}}),window.addEventListener(`test`,et,et),window.removeEventListener(`test`,et,et)}catch{$e=!1}function tt(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 nt=!1,rt=null,it=!1,at=null,ot={onError:function(e){nt=!0,rt=e}};function st(e,t,n,r,i,a,o,s,c){nt=!1,rt=null,tt.apply(ot,arguments)}function ct(e,t,n,i,a,o,s,c,l){if(st.apply(this,arguments),nt){if(nt){var u=rt;nt=!1,rt=null}else throw Error(r(198));it||(it=!0,at=u)}}function lt(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 ut(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 dt(e){if(lt(e)!==e)throw Error(r(188))}function ft(e){var t=e.alternate;if(!t){if(t=lt(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 dt(a),e;if(o===i)return dt(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 pt(e){return e=ft(e),e===null?null:mt(e)}function mt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mt(e);if(t!==null)return t;e=e.sibling}return null}var ht=n.unstable_scheduleCallback,gt=n.unstable_cancelCallback,_t=n.unstable_shouldYield,vt=n.unstable_requestPaint,L=n.unstable_now,yt=n.unstable_getCurrentPriorityLevel,bt=n.unstable_ImmediatePriority,xt=n.unstable_UserBlockingPriority,St=n.unstable_NormalPriority,Ct=n.unstable_LowPriority,wt=n.unstable_IdlePriority,Tt=null,Et=null;function Dt(e){if(Et&&typeof Et.onCommitFiberRoot==`function`)try{Et.onCommitFiberRoot(Tt,e,void 0,(e.current.flags&128)==128)}catch{}}var Ot=Math.clz32?Math.clz32:jt,kt=Math.log,At=Math.LN2;function jt(e){return e>>>=0,e===0?32:31-(kt(e)/At|0)|0}var Mt=64,Nt=4194304;function Pt(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 Ft(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=Pt(a))):r=Pt(s)}else o=n&~i,o===0?a!==0&&(r=Pt(a)):r=Pt(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-Ot(t),i=1<<n,r|=e[n],t&=~i;return r}function It(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 Lt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Ot(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=It(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Rt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function zt(){var e=Mt;return Mt<<=1,!(Mt&4194240)&&(Mt=64),e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function Ht(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-Ot(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Ut(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Wt=0;function Gt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Kt,qt,Jt,Yt,Xt,Zt=!1,Qt=[],$t=null,en=null,tn=null,nn=new Map,rn=new Map,an=[],on=`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 sn(e,t){switch(e){case`focusin`:case`focusout`:$t=null;break;case`dragenter`:case`dragleave`:en=null;break;case`mouseover`:case`mouseout`:tn=null;break;case`pointerover`:case`pointerout`:nn.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:rn.delete(t.pointerId)}}function cn(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=Ui(t),t!==null&&qt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ln(e,t,n,r,i){switch(t){case`focusin`:return $t=cn($t,e,t,n,r,i),!0;case`dragenter`:return en=cn(en,e,t,n,r,i),!0;case`mouseover`:return tn=cn(tn,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return nn.set(a,cn(nn.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,rn.set(a,cn(rn.get(a)||null,e,t,n,r,i)),!0}return!1}function un(e){var t=Hi(e.target);if(t!==null){var n=lt(t);if(n!==null){if(t=n.tag,t===13){if(t=ut(n),t!==null){e.blockedOn=t,Xt(e.priority,function(){Jt(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 dn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ve=r,n.target.dispatchEvent(r),Ve=null}else return t=Ui(n),t!==null&&qt(t),e.blockedOn=n,!1;t.shift()}return!0}function fn(e,t,n){dn(e)&&n.delete(t)}function pn(){Zt=!1,$t!==null&&dn($t)&&($t=null),en!==null&&dn(en)&&(en=null),tn!==null&&dn(tn)&&(tn=null),nn.forEach(fn),rn.forEach(fn)}function mn(e,t){e.blockedOn===t&&(e.blockedOn=null,Zt||(Zt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,pn)))}function hn(e){function t(t){return mn(t,e)}if(0<Qt.length){mn(Qt[0],e);for(var n=1;n<Qt.length;n++){var r=Qt[n];r.blockedOn===e&&(r.blockedOn=null)}}for($t!==null&&mn($t,e),en!==null&&mn(en,e),tn!==null&&mn(tn,e),nn.forEach(t),rn.forEach(t),n=0;n<an.length;n++)r=an[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<an.length&&(n=an[0],n.blockedOn===null);)un(n),n.blockedOn===null&&an.shift()}var gn=C.ReactCurrentBatchConfig,_n=!0;function vn(e,t,n,r){var i=Wt,a=gn.transition;gn.transition=null;try{Wt=1,bn(e,t,n,r)}finally{Wt=i,gn.transition=a}}function yn(e,t,n,r){var i=Wt,a=gn.transition;gn.transition=null;try{Wt=4,bn(e,t,n,r)}finally{Wt=i,gn.transition=a}}function bn(e,t,n,r){if(_n){var i=Sn(e,t,n,r);if(i===null)mi(e,t,r,xn,n),sn(e,r);else if(ln(i,e,t,n,r))r.stopPropagation();else if(sn(e,r),t&4&&-1<on.indexOf(e)){for(;i!==null;){var a=Ui(i);if(a!==null&&Kt(a),a=Sn(e,t,n,r),a===null&&mi(e,t,r,xn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else mi(e,t,r,null,n)}}var xn=null;function Sn(e,t,n,r){if(xn=null,e=He(r),e=Hi(e),e!==null)if(t=lt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ut(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 xn=e,null}function Cn(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(yt()){case bt:return 1;case xt:return 4;case St:case Ct:return 16;case wt:return 536870912;default:return 16}default:return 16}}var wn=null,Tn=null,En=null;function Dn(){if(En)return En;var e,t=Tn,n=t.length,r,i=`value`in wn?wn.value:wn.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 En=i.slice(e,1<r?1-r:void 0)}function On(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 kn(){return!0}function An(){return!1}function jn(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)?kn:An,this.isPropagationStopped=An,this}return ae(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=kn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=kn)},persist:function(){},isPersistent:kn}),t}var Mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nn=jn(Mn),R=ae({},Mn,{view:0,detail:0}),Pn=jn(R),Fn,In,Ln,Rn=ae({},R,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yn,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!==Ln&&(Ln&&e.type===`mousemove`?(Fn=e.screenX-Ln.screenX,In=e.screenY-Ln.screenY):In=Fn=0,Ln=e),Fn)},movementY:function(e){return`movementY`in e?e.movementY:In}}),zn=jn(Rn),Bn=jn(ae({},Rn,{dataTransfer:0})),Vn=jn(ae({},R,{relatedTarget:0})),Hn=jn(ae({},Mn,{animationName:0,elapsedTime:0,pseudoElement:0})),Un=jn(ae({},Mn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Wn=jn(ae({},Mn,{data:0})),Gn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Kn={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 Jn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qn[e])?!!t[e]:!1}function Yn(){return Jn}var Xn=jn(ae({},R,{key:function(e){if(e.key){var t=Gn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=On(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Kn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yn,charCode:function(e){return e.type===`keypress`?On(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?On(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Zn=jn(ae({},Rn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Qn=jn(ae({},R,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yn})),$n=jn(ae({},Mn,{propertyName:0,elapsedTime:0,pseudoElement:0})),er=jn(ae({},Rn,{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})),tr=[9,13,27,32],nr=c&&`CompositionEvent`in window,rr=null;c&&`documentMode`in document&&(rr=document.documentMode);var ir=c&&`TextEvent`in window&&!rr,ar=c&&(!nr||rr&&8<rr&&11>=rr),or=` `,z=!1;function sr(e,t){switch(e){case`keyup`:return tr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function cr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var lr=!1;function ur(e,t){switch(e){case`compositionend`:return cr(t);case`keypress`:return t.which===32?(z=!0,or):null;case`textInput`:return e=t.data,e===or&&z?null:e;default:return null}}function dr(e,t){if(lr)return e===`compositionend`||!nr&&sr(e,t)?(e=Dn(),En=Tn=wn=null,lr=!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 ar&&t.locale!==`ko`?null:t.data;default:return null}}var fr={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 pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!fr[e.type]:t===`textarea`}function mr(e,t,n,r){qe(r),t=gi(t,`onChange`),0<t.length&&(n=new Nn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var hr=null,gr=null;function _r(e){ci(e,0)}function vr(e){if(ge(Wi(e)))return e}function yr(e,t){if(e===`change`)return t}var br=!1;if(c){var xr;if(c){var Sr=`oninput`in document;if(!Sr){var Cr=document.createElement(`div`);Cr.setAttribute(`oninput`,`return;`),Sr=typeof Cr.oninput==`function`}xr=Sr}else xr=!1;br=xr&&(!document.documentMode||9<document.documentMode)}function wr(){hr&&(hr.detachEvent(`onpropertychange`,Tr),gr=hr=null)}function Tr(e){if(e.propertyName===`value`&&vr(gr)){var t=[];mr(t,gr,e,He(e)),I(_r,t)}}function Er(e,t,n){e===`focusin`?(wr(),hr=t,gr=n,hr.attachEvent(`onpropertychange`,Tr)):e===`focusout`&&wr()}function Dr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return vr(gr)}function Or(e,t){if(e===`click`)return vr(t)}function kr(e,t){if(e===`input`||e===`change`)return vr(t)}function Ar(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var jr=typeof Object.is==`function`?Object.is:Ar;function Mr(e,t){if(jr(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)||!jr(e[i],t[i]))return!1}return!0}function Nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pr(e,t){var n=Nr(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=Nr(n)}}function Fr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ir(){for(var e=window,t=F();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=F(e.document)}return t}function Lr(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 Rr(e){var t=Ir(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fr(n.ownerDocument.documentElement,n)){if(r!==null&&Lr(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=Pr(n,a);var o=Pr(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 zr=c&&`documentMode`in document&&11>=document.documentMode,Br=null,Vr=null,Hr=null,Ur=!1;function Wr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ur||Br==null||Br!==F(r)||(r=Br,`selectionStart`in r&&Lr(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}),Hr&&Mr(Hr,r)||(Hr=r,r=gi(Vr,`onSelect`),0<r.length&&(t=new Nn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Br)))}function Gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Kr={animationend:Gr(`Animation`,`AnimationEnd`),animationiteration:Gr(`Animation`,`AnimationIteration`),animationstart:Gr(`Animation`,`AnimationStart`),transitionend:Gr(`Transition`,`TransitionEnd`)},qr={},Jr={};c&&(Jr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Kr.animationend.animation,delete Kr.animationiteration.animation,delete Kr.animationstart.animation),`TransitionEvent`in window||delete Kr.transitionend.transition);function Yr(e){if(qr[e])return qr[e];if(!Kr[e])return e;var t=Kr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jr)return qr[e]=t[n];return e}var Xr=Yr(`animationend`),Zr=Yr(`animationiteration`),Qr=Yr(`animationstart`),$r=Yr(`transitionend`),ei=new Map,ti=`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 ni(e,t){ei.set(e,t),o(t,[e])}for(var ri=0;ri<ti.length;ri++){var ii=ti[ri];ni(ii.toLowerCase(),`on`+(ii[0].toUpperCase()+ii.slice(1)))}ni(Xr,`onAnimationEnd`),ni(Zr,`onAnimationIteration`),ni(Qr,`onAnimationStart`),ni(`dblclick`,`onDoubleClick`),ni(`focusin`,`onFocus`),ni(`focusout`,`onBlur`),ni($r,`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 ai=`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(` `),oi=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ai));function si(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,ct(r,t,void 0,e),e.currentTarget=null}function ci(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;si(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;si(i,s,l),a=c}}}if(it)throw e=at,it=!1,at=null,e}function li(e,t){var n=t[zi];n===void 0&&(n=t[zi]=new Set);var r=e+`__bubble`;n.has(r)||(pi(t,e,2,!1),n.add(r))}function ui(e,t,n){var r=0;t&&(r|=4),pi(n,e,r,t)}var di=`_reactListening`+Math.random().toString(36).slice(2);function fi(e){if(!e[di]){e[di]=!0,i.forEach(function(t){t!==`selectionchange`&&(oi.has(t)||ui(t,!1,e),ui(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[di]||(t[di]=!0,ui(`selectionchange`,!1,t))}}function pi(e,t,n,r){switch(Cn(t)){case 1:var i=vn;break;case 4:i=yn;break;default:i=bn}n=i.bind(null,t,n,e),i=void 0,!$e||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 mi(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=Hi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}I(function(){var r=a,i=He(n),o=[];a:{var s=ei.get(e);if(s!==void 0){var c=Nn,l=e;switch(e){case`keypress`:if(On(n)===0)break a;case`keydown`:case`keyup`:c=Xn;break;case`focusin`:l=`focus`,c=Vn;break;case`focusout`:l=`blur`,c=Vn;break;case`beforeblur`:case`afterblur`:c=Vn;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=zn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Bn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Qn;break;case Xr:case Zr:case Qr:c=Hn;break;case $r:c=$n;break;case`scroll`:c=Pn;break;case`wheel`:c=er;break;case`copy`:case`cut`:case`paste`:c=Un;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Zn}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=Qe(p,f),h!=null&&u.push(hi(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!==Ve&&(l=n.relatedTarget||n.fromElement)&&(Hi(l)||l[Ri]))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?Hi(l):null,l!==null&&(d=lt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=zn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Zn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Wi(c),m=l==null?s:Wi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Hi(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=_i(m))p++;for(m=0,h=f;h;h=_i(h))m++;for(;0<p-m;)u=_i(u),p--;for(;0<m-p;)f=_i(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=_i(u),f=_i(f)}u=null}else u=null;c!==null&&vi(o,s,c,u,!1),l!==null&&d!==null&&vi(o,d,l,u,!0)}}a:{if(s=r?Wi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=yr;else if(pr(s))if(br)g=kr;else{g=Dr;var _=Er}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Or);if(g&&=g(e,r)){mr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Se(s,`number`,s.value)}switch(_=r?Wi(r):window,e){case`focusin`:(pr(_)||_.contentEditable===`true`)&&(Br=_,Vr=r,Hr=null);break;case`focusout`:Hr=Vr=Br=null;break;case`mousedown`:Ur=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ur=!1,Wr(o,n,i);break;case`selectionchange`:if(zr)break;case`keydown`:case`keyup`:Wr(o,n,i)}var v;if(nr)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 lr?sr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(ar&&n.locale!==`ko`&&(lr||y!==`onCompositionStart`?y===`onCompositionEnd`&&lr&&(v=Dn()):(wn=i,Tn=`value`in wn?wn.value:wn.textContent,lr=!0)),_=gi(r,y),0<_.length&&(y=new Wn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=cr(n),v!==null&&(y.data=v)))),(v=ir?ur(e,n):dr(e,n))&&(r=gi(r,`onBeforeInput`),0<r.length&&(i=new Wn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}ci(o,t)})}function hi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function gi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Qe(e,n),a!=null&&r.unshift(hi(e,a,i)),a=Qe(e,t),a!=null&&r.push(hi(e,a,i))),e=e.return}return r}function _i(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vi(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=Qe(n,a),c!=null&&o.unshift(hi(n,c,s))):i||(c=Qe(n,a),c!=null&&o.push(hi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var yi=/\r\n?/g,bi=/\u0000|\uFFFD/g;function xi(e){return(typeof e==`string`?e:``+e).replace(yi,`
|
|
6
|
+
`).replace(bi,``)}function Si(e,t,n){if(t=xi(t),xi(e)!==t&&n)throw Error(r(425))}function Ci(){}var wi=null,Ti=null;function Ei(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 Di=typeof setTimeout==`function`?setTimeout:void 0,Oi=typeof clearTimeout==`function`?clearTimeout:void 0,ki=typeof Promise==`function`?Promise:void 0,Ai=typeof queueMicrotask==`function`?queueMicrotask:ki===void 0?Di:function(e){return ki.resolve(null).then(e).catch(ji)};function ji(e){setTimeout(function(){throw e})}function Mi(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),hn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);hn(t)}function Ni(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 Pi(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 Fi=Math.random().toString(36).slice(2),Ii=`__reactFiber$`+Fi,Li=`__reactProps$`+Fi,Ri=`__reactContainer$`+Fi,zi=`__reactEvents$`+Fi,Bi=`__reactListeners$`+Fi,Vi=`__reactHandles$`+Fi;function Hi(e){var t=e[Ii];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ri]||n[Ii]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Pi(e);e!==null;){if(n=e[Ii])return n;e=Pi(e)}return t}e=n,n=e.parentNode}return null}function Ui(e){return e=e[Ii]||e[Ri],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Gi(e){return e[Li]||null}var Ki=[],qi=-1;function Ji(e){return{current:e}}function B(e){0>qi||(e.current=Ki[qi],Ki[qi]=null,qi--)}function Yi(e,t){qi++,Ki[qi]=e.current,e.current=t}var Xi={},Zi=Ji(Xi),Qi=Ji(!1),$i=Xi;function ea(e,t){var n=e.type.contextTypes;if(!n)return Xi;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 ta(e){return e=e.childContextTypes,e!=null}function na(){B(Qi),B(Zi)}function ra(e,t,n){if(Zi.current!==Xi)throw Error(r(168));Yi(Zi,t),Yi(Qi,n)}function ia(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,fe(e)||`Unknown`,a));return ae({},n,i)}function aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xi,$i=Zi.current,Yi(Zi,e),Yi(Qi,Qi.current),!0}function oa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ia(e,t,$i),i.__reactInternalMemoizedMergedChildContext=e,B(Qi),B(Zi),Yi(Zi,e)):B(Qi),Yi(Qi,n)}var sa=null,ca=!1,la=!1;function ua(e){sa===null?sa=[e]:sa.push(e)}function da(e){ca=!0,ua(e)}function fa(){if(!la&&sa!==null){la=!0;var e=0,t=Wt;try{var n=sa;for(Wt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}sa=null,ca=!1}catch(t){throw sa!==null&&(sa=sa.slice(e+1)),ht(bt,fa),t}finally{Wt=t,la=!1}}return null}var pa=[],ma=0,ha=null,ga=0,_a=[],va=0,ya=null,ba=1,xa=``;function Sa(e,t){pa[ma++]=ga,pa[ma++]=ha,ha=e,ga=t}function Ca(e,t,n){_a[va++]=ba,_a[va++]=xa,_a[va++]=ya,ya=e;var r=ba;e=xa;var i=32-Ot(r)-1;r&=~(1<<i),n+=1;var a=32-Ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ba=1<<32-Ot(t)+i|n<<i|r,xa=a+e}else ba=1<<a|n<<i|r,xa=e}function wa(e){e.return!==null&&(Sa(e,1),Ca(e,1,0))}function Ta(e){for(;e===ha;)ha=pa[--ma],pa[ma]=null,ga=pa[--ma],pa[ma]=null;for(;e===ya;)ya=_a[--va],_a[va]=null,xa=_a[--va],_a[va]=null,ba=_a[--va],_a[va]=null}var Ea=null,Da=null,Oa=!1,ka=null;function Aa(e,t){var n=nu(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 ja(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,Ea=e,Da=Ni(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Ea=e,Da=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=ya===null?null:{id:ba,overflow:xa},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=nu(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ea=e,Da=null,!0);default:return!1}}function Ma(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Na(e){if(Oa){var t=Da;if(t){var n=t;if(!ja(e,t)){if(Ma(e))throw Error(r(418));t=Ni(n.nextSibling);var i=Ea;t&&ja(e,t)?Aa(i,n):(e.flags=e.flags&-4097|2,Oa=!1,Ea=e)}}else{if(Ma(e))throw Error(r(418));e.flags=e.flags&-4097|2,Oa=!1,Ea=e}}}function Pa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ea=e}function Fa(e){if(e!==Ea)return!1;if(!Oa)return Pa(e),Oa=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Ei(e.type,e.memoizedProps)),t&&=Da){if(Ma(e))throw Ia(),Error(r(418));for(;t;)Aa(e,t),t=Ni(t.nextSibling)}if(Pa(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){Da=Ni(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Da=null}}else Da=Ea?Ni(e.stateNode.nextSibling):null;return!0}function Ia(){for(var e=Da;e;)e=Ni(e.nextSibling)}function La(){Da=Ea=null,Oa=!1}function Ra(e){ka===null?ka=[e]:ka.push(e)}var za=C.ReactCurrentBatchConfig;function Ba(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 Va(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ha(e){var t=e._init;return t(e._payload)}function Ua(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=au(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=lu(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===ne&&Ha(i)===t.type)?(r=a(t,n.props),r.ref=Ba(e,t,n),r.return=e,r):(r=ou(n.type,n.key,n.props,null,e.mode,r),r.ref=Ba(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=uu(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=su(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=lu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=ou(t.type,t.key,t.props,null,e.mode,n),n.ref=Ba(e,null,t),n.return=e,n;case T:return t=uu(t,e.mode,n),t.return=e,t;case ne:var r=t._init;return f(e,r(t._payload),n)}if(Ce(t)||ie(t))return t=su(t,e.mode,n,null),t.return=e,t;Va(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 ne:return i=n._init,p(e,t,i(n._payload),r)}if(Ce(n)||ie(n))return i===null?d(e,t,n,r,null):null;Va(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 ne:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Ce(r)||ie(r))return e=e.get(n)||null,d(t,e,r,i,null);Va(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),Oa&&Sa(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 Oa&&Sa(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)}),Oa&&Sa(r,h),l}function g(a,s,c,l){var u=ie(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),Oa&&Sa(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 Oa&&Sa(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)}),Oa&&Sa(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===ne&&Ha(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ba(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=su(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=ou(i.type,i.key,i.props,null,e.mode,o),o.ref=Ba(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=uu(i,e.mode,o),r.return=e,e=r}return s(e);case ne:return l=i._init,_(e,r,l(i._payload),o)}if(Ce(i))return h(e,r,i,o);if(ie(i))return g(e,r,i,o);Va(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=lu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Wa=Ua(!0),Ga=Ua(!1),Ka=Ji(null),qa=null,Ja=null,Ya=null;function Xa(){Ya=Ja=qa=null}function Za(e){var t=Ka.current;B(Ka),e._currentValue=t}function Qa(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 $a(e,t){qa=e,Ya=Ja=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Vs=!0),e.firstContext=null)}function eo(e){var t=e._currentValue;if(Ya!==e)if(e={context:e,memoizedValue:t,next:null},Ja===null){if(qa===null)throw Error(r(308));Ja=e,qa.dependencies={lanes:0,firstContext:e}}else Ja=Ja.next=e;return t}var to=null;function no(e){to===null?to=[e]:to.push(e)}function ro(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,no(t)):(n.next=i.next,i.next=n),t.interleaved=n,io(e,r)}function io(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 ao=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function so(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 co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xc&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,io(e,n)}return i=r.interleaved,i===null?(t.next=t,no(r)):(t.next=i.next,i.next=t),r.interleaved=t,io(e,n)}function uo(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,Ut(e,n)}}function fo(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 po(e,t,n,r){var i=e.updateQueue;ao=!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=ae({},d,f);break a;case 2:ao=!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);il|=o,e.lanes=o,e.memoizedState=d}}function mo(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 ho={},go=Ji(ho),_o=Ji(ho),vo=Ji(ho);function yo(e){if(e===ho)throw Error(r(174));return e}function bo(e,t){switch(Yi(vo,t),Yi(_o,e),Yi(go,ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ae(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ae(t,e)}B(go),Yi(go,t)}function xo(){B(go),B(_o),B(vo)}function So(e){yo(vo.current);var t=yo(go.current),n=Ae(t,e.type);t!==n&&(Yi(_o,e),Yi(go,n))}function Co(e){_o.current===e&&(B(go),B(_o))}var wo=Ji(0);function To(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 Eo=[];function Do(){for(var e=0;e<Eo.length;e++)Eo[e]._workInProgressVersionPrimary=null;Eo.length=0}var Oo=C.ReactCurrentDispatcher,ko=C.ReactCurrentBatchConfig,Ao=0,jo=null,Mo=null,No=null,Po=!1,Fo=!1,Io=0,Lo=0;function Ro(){throw Error(r(321))}function zo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jr(e[n],t[n]))return!1;return!0}function Bo(e,t,n,i,a,o){if(Ao=o,jo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Oo.current=e===null||e.memoizedState===null?Ss:Cs,e=n(i,a),Fo){o=0;do{if(Fo=!1,Io=0,25<=o)throw Error(r(301));o+=1,No=Mo=null,t.updateQueue=null,Oo.current=ws,e=n(i,a)}while(Fo)}if(Oo.current=xs,t=Mo!==null&&Mo.next!==null,Ao=0,No=Mo=jo=null,Po=!1,t)throw Error(r(300));return e}function Vo(){var e=Io!==0;return Io=0,e}function Ho(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return No===null?jo.memoizedState=No=e:No=No.next=e,No}function Uo(){if(Mo===null){var e=jo.alternate;e=e===null?null:e.memoizedState}else e=Mo.next;var t=No===null?jo.memoizedState:No.next;if(t!==null)No=t,Mo=e;else{if(e===null)throw Error(r(310));Mo=e,e={memoizedState:Mo.memoizedState,baseState:Mo.baseState,baseQueue:Mo.baseQueue,queue:Mo.queue,next:null},No===null?jo.memoizedState=No=e:No=No.next=e}return No}function Wo(e,t){return typeof t==`function`?t(e):t}function Go(e){var t=Uo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Mo,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((Ao&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,jo.lanes|=d,il|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,jr(i,t.memoizedState)||(Vs=!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,jo.lanes|=o,il|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ko(e){var t=Uo(),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);jr(o,t.memoizedState)||(Vs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function qo(){}function Jo(e,t){var n=jo,i=Uo(),a=t(),o=!jr(i.memoizedState,a);if(o&&(i.memoizedState=a,Vs=!0),i=i.queue,os(Zo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||No!==null&&No.memoizedState.tag&1){if(n.flags|=2048,ts(9,Xo.bind(null,n,i,a,t),void 0,null),Zc===null)throw Error(r(349));Ao&30||Yo(n,t,a)}return a}function Yo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=jo.updateQueue,t===null?(t={lastEffect:null,stores:null},jo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Xo(e,t,n,r){t.value=n,t.getSnapshot=r,Qo(t)&&$o(e)}function Zo(e,t,n){return n(function(){Qo(t)&&$o(e)})}function Qo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jr(e,n)}catch{return!0}}function $o(e){var t=io(e,1);t!==null&&wl(t,e,1,-1)}function es(e){var t=Ho();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wo,lastRenderedState:e},t.queue=e,e=e.dispatch=vs.bind(null,jo,e),[t.memoizedState,e]}function ts(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=jo.updateQueue,t===null?(t={lastEffect:null,stores:null},jo.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 ns(){return Uo().memoizedState}function rs(e,t,n,r){var i=Ho();jo.flags|=e,i.memoizedState=ts(1|t,n,void 0,r===void 0?null:r)}function is(e,t,n,r){var i=Uo();r=r===void 0?null:r;var a=void 0;if(Mo!==null){var o=Mo.memoizedState;if(a=o.destroy,r!==null&&zo(r,o.deps)){i.memoizedState=ts(t,n,a,r);return}}jo.flags|=e,i.memoizedState=ts(1|t,n,a,r)}function as(e,t){return rs(8390656,8,e,t)}function os(e,t){return is(2048,8,e,t)}function ss(e,t){return is(4,2,e,t)}function cs(e,t){return is(4,4,e,t)}function ls(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 us(e,t,n){return n=n==null?null:n.concat([e]),is(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=Uo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=Uo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ms(e,t,n){return Ao&21?(jr(n,t)||(n=zt(),jo.lanes|=n,il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Vs=!0),e.memoizedState=n)}function hs(e,t){var n=Wt;Wt=n!==0&&4>n?n:4,e(!0);var r=ko.transition;ko.transition={};try{e(!1),t()}finally{Wt=n,ko.transition=r}}function gs(){return Uo().memoizedState}function _s(e,t,n){var r=Cl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ys(e))bs(t,n);else if(n=ro(e,t,n,r),n!==null){var i=Sl();wl(n,e,r,i),V(n,t,r)}}function vs(e,t,n){var r=Cl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ys(e))bs(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,jr(s,o)){var c=t.interleaved;c===null?(i.next=i,no(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=ro(e,t,i,r),n!==null&&(i=Sl(),wl(n,e,r,i),V(n,t,r))}}function ys(e){var t=e.alternate;return e===jo||t!==null&&t===jo}function bs(e,t){Fo=Po=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function V(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ut(e,n)}}var xs={readContext:eo,useCallback:Ro,useContext:Ro,useEffect:Ro,useImperativeHandle:Ro,useInsertionEffect:Ro,useLayoutEffect:Ro,useMemo:Ro,useReducer:Ro,useRef:Ro,useState:Ro,useDebugValue:Ro,useDeferredValue:Ro,useTransition:Ro,useMutableSource:Ro,useSyncExternalStore:Ro,useId:Ro,unstable_isNewReconciler:!1},Ss={readContext:eo,useCallback:function(e,t){return Ho().memoizedState=[e,t===void 0?null:t],e},useContext:eo,useEffect:as,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),rs(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rs(4194308,4,e,t)},useInsertionEffect:function(e,t){return rs(4,2,e,t)},useMemo:function(e,t){var n=Ho();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ho();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=_s.bind(null,jo,e),[r.memoizedState,e]},useRef:function(e){var t=Ho();return e={current:e},t.memoizedState=e},useState:es,useDebugValue:ds,useDeferredValue:function(e){return Ho().memoizedState=e},useTransition:function(){var e=es(!1),t=e[0];return e=hs.bind(null,e[1]),Ho().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=jo,a=Ho();if(Oa){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Zc===null)throw Error(r(349));Ao&30||Yo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,as(Zo.bind(null,i,o,e),[e]),i.flags|=2048,ts(9,Xo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Ho(),t=Zc.identifierPrefix;if(Oa){var n=xa,r=ba;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Io++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Lo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Cs={readContext:eo,useCallback:fs,useContext:eo,useEffect:os,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Go,useRef:ns,useState:function(){return Go(Wo)},useDebugValue:ds,useDeferredValue:function(e){return ms(Uo(),Mo.memoizedState,e)},useTransition:function(){return[Go(Wo)[0],Uo().memoizedState]},useMutableSource:qo,useSyncExternalStore:Jo,useId:gs,unstable_isNewReconciler:!1},ws={readContext:eo,useCallback:fs,useContext:eo,useEffect:os,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ko,useRef:ns,useState:function(){return Ko(Wo)},useDebugValue:ds,useDeferredValue:function(e){var t=Uo();return Mo===null?t.memoizedState=e:ms(t,Mo.memoizedState,e)},useTransition:function(){return[Ko(Wo)[0],Uo().memoizedState]},useMutableSource:qo,useSyncExternalStore:Jo,useId:gs,unstable_isNewReconciler:!1};function Ts(e,t){if(e&&e.defaultProps){for(var n in t=ae({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Es(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ds={isMounted:function(e){return(e=e._reactInternals)?lt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Sl(),i=Cl(e),a=co(r,i);a.payload=t,n!=null&&(a.callback=n),t=lo(e,a,i),t!==null&&(wl(t,e,i,r),uo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Sl(),i=Cl(e),a=co(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=lo(e,a,i),t!==null&&(wl(t,e,i,r),uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Sl(),r=Cl(e),i=co(n,r);i.tag=2,t!=null&&(i.callback=t),t=lo(e,i,r),t!==null&&(wl(t,e,r,n),uo(t,e,r))}};function Os(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?!Mr(n,r)||!Mr(i,a):!0}function ks(e,t,n){var r=!1,i=Xi,a=t.contextType;return typeof a==`object`&&a?a=eo(a):(i=ta(t)?$i:Zi.current,r=t.contextTypes,a=(r=r!=null)?ea(e,i):Xi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ds,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function As(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&&Ds.enqueueReplaceState(t,t.state,null)}function js(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},oo(e);var a=t.contextType;typeof a==`object`&&a?i.context=eo(a):(a=ta(t)?$i:Zi.current,i.context=ea(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Es(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&&Ds.enqueueReplaceState(i,i.state,null),po(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Ms(e,t){try{var n=``,r=t;do n+=ue(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 Ps(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function V(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Fs=typeof WeakMap==`function`?WeakMap:Map;function Is(e,t,n){n=lo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,ml=r),V(e,t)},n}function Ls(e,t,n){n=lo(-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(){V(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){V(e,t),typeof r!=`function`&&(hl===null?hl=new Set([this]):hl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Rs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Fs;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=Xl.bind(null,e,t,n),t.then(e,e))}function zs(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 Bs(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=lo(-1,1),t.tag=2,uo(n,t,1))),n.lanes|=1),e)}var Vs=C.ReactCurrentOwner,Hs=!1;function Us(e,t,n,r){t.child=e===null?Ka(t,null,n,r):Ga(t,e.child,n,r)}function Ws(e,t,n,r,i){n=n.render;var a=t.ref;return eo(t,i),r=Vo(e,t,n,r,a,i),n=Ho(),e!==null&&!Hs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,uc(e,t,i)):(ka&&n&&Ta(t),t.flags|=1,Us(e,t,r,i),t.child)}function Gs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!iu(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Ks(e,t,a,r,i)):(e=su(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?Pr:n,n(o,r)&&e.ref===t.ref)return uc(e,t,i)}return t.flags|=1,e=ou(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ks(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Pr(a,r)&&e.ref===t.ref)if(Hs=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Hs=!0);else return t.lanes=e.lanes,uc(e,t,i)}return Ys(e,t,n,r,i)}function qs(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},Zi(nl,tl),tl|=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,Zi(nl,tl),tl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Zi(nl,tl),tl|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Zi(nl,tl),tl|=r;return Us(e,t,i,n),t.child}function Js(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ys(e,t,n,r,i){var a=na(n)?ea:z.current;return a=ta(t,a),eo(t,i),n=Vo(e,t,n,r,a,i),r=Ho(),e!==null&&!Hs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,uc(e,t,i)):(ka&&r&&Ta(t),t.flags|=1,Us(e,t,n,i),t.child)}function Xs(e,t,n,r,i){if(na(n)){var a=!0;oa(t)}else a=!1;if(eo(t,i),t.stateNode===null)lc(e,t),As(t,n,r),Ms(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=to(l):(l=na(n)?ea:z.current,l=ta(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)&&js(t,o,r,l),oo=!1;var f=t.memoizedState;o.state=f,mo(t,r,o,i),c=t.memoizedState,s!==r||f!==c||$i.current||oo?(typeof u==`function`&&(Ds(t,n,u,r),c=t.memoizedState),(s=oo||ks(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,co(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Es(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=to(c):(c=na(n)?ea:z.current,c=ta(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)&&js(t,o,r,c),oo=!1,f=t.memoizedState,o.state=f,mo(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||$i.current||oo?(typeof p==`function`&&(Ds(t,n,p,r),m=t.memoizedState),(l=oo||ks(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 Zs(e,t,n,r,a,i)}function Zs(e,t,n,r,i,a){Js(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&sa(t,n,!1),uc(e,t,a);r=t.stateNode,Vs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ga(t,e.child,null,a),t.child=Ga(t,null,s,a)):Us(e,t,s,a),t.memoizedState=r.state,i&&sa(t,n,!0),t.child}function Qs(e){var t=e.stateNode;t.pendingContext?ia(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ia(e,t.context,!1),xo(e,t.containerInfo)}function $s(e,t,n,r,i){return Ra(),za(i),t.flags|=256,Us(e,t,n,r),t.child}var ec={dehydrated:null,treeContext:null,retryLane:0};function tc(e){return{baseLanes:e,cachePool:null,transitions:null}}function nc(e,t,n){var r=t.pendingProps,i=To.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),Zi(To,i&1),e===null)return Pa(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=lu(o,r,0,null),e=cu(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=tc(n),t.memoizedState=ec,e):rc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return ac(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=ou(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=cu(a,o,n,null),a.flags|=2):a=ou(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?tc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=ec,r}return a=e.child,e=a.sibling,r=ou(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 rc(e,t){return t=lu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function ic(e,t,n,r){return r!==null&&za(r),Ga(t,e.child,null,n),e=rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ac(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ps(Error(r(422))),ic(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=lu({mode:`visible`,children:i.children},a,0,null),o=cu(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ga(t,e.child,null,s),t.child.memoizedState=tc(s),t.memoizedState=ec,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return ic(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=Ps(o,i,void 0),ic(e,t,s,i)}if(c=(s&e.childLanes)!==0,Hs||c){if(i=Qc,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,ao(e,a),Tl(i,e,a,-1))}return zl(),i=Ps(Error(r(421))),ic(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Ql.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Oa=Fi(a.nextSibling),Da=t,ka=!0,Aa=null,e!==null&&(va[ya++]=xa,va[ya++]=Sa,va[ya++]=ba,xa=e.id,Sa=e.overflow,ba=t),t=rc(t,i.children),t.flags|=4096,t)}function oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$a(e.return,t,n)}function sc(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 cc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Us(e,t,r.children,n),r=To.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&&oc(e,n,t);else if(e.tag===19)oc(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(Zi(To,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&&Eo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),sc(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&&Eo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}sc(t,!0,n,null,a);break;case`together`:sc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function uc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),al|=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=ou(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ou(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dc(e,t,n){switch(t.tag){case 3:Qs(t),Ra();break;case 5:Co(t);break;case 1:na(t.type)&&oa(t);break;case 4:xo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Zi(qa,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Zi(To,To.current&1),e=uc(e,t,n),e===null?null:e.sibling):nc(e,t,n):(Zi(To,To.current&1),t.flags|=128,null);Zi(To,To.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return cc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Zi(To,To.current),r)break;return null;case 22:case 23:return t.lanes=0,qs(e,t,n)}return uc(e,t,n)}var fc=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}},pc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,bo(_o.current);var o=null;switch(n){case`input`:i=ye(e,i),r=ye(e,r),o=[];break;case`select`:i=ae({},i,{value:void 0}),r=ae({},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=Ti)}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`&&di(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},mc=function(e,t,n,r){n!==r&&(t.flags|=4)};function hc(e,t){if(!ka)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 gc(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 _c(e,t,n){var i=t.pendingProps;switch(Ea(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gc(t),null;case 1:return na(t.type)&&ra(),gc(t),null;case 3:return i=t.stateNode,So(),R($i),R(z),Oo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ia(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Aa!==null&&(kl(Aa),Aa=null))),gc(t),null;case 5:wo(t);var o=bo(yo.current);if(n=t.type,e!==null&&t.stateNode!=null)pc(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 gc(t),null}if(e=bo(_o.current),Ia(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Ri]=t,i[zi]=s,e=(t.mode&1)!=0,n){case`dialog`:di(`cancel`,i),di(`close`,i);break;case`iframe`:case`object`:case`embed`:di(`load`,i);break;case`video`:case`audio`:for(o=0;o<si.length;o++)di(si[o],i);break;case`source`:di(`error`,i);break;case`img`:case`image`:case`link`:di(`error`,i),di(`load`,i);break;case`details`:di(`toggle`,i);break;case`input`:be(i,s),di(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},di(`invalid`,i);break;case`textarea`:Oe(i,s),di(`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&&wi(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&wi(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&di(`scroll`,i)}switch(n){case`input`:ge(i),Ce(i,s,!0);break;case`textarea`:ge(i),Ae(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Ti)}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[Ri]=t,e[zi]=i,fc(e,t,!1,!1),t.stateNode=e;a:{switch(c=He(n,i),n){case`dialog`:di(`cancel`,e),di(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:di(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<si.length;o++)di(si[o],e);o=i;break;case`source`:di(`error`,e),o=i;break;case`img`:case`image`:case`link`:di(`error`,e),di(`load`,e),o=i;break;case`details`:di(`toggle`,e),o=i;break;case`input`:be(e,i),o=ye(e,i),di(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=ae({},i,{value:void 0}),di(`invalid`,e);break;case`textarea`:Oe(e,i),o=De(e,i),di(`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`&&di(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:ge(e),Ce(e,i,!1);break;case`textarea`:ge(e),Ae(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+pe(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=Ti)}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 gc(t),null;case 6:if(e&&t.stateNode!=null)mc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=bo(yo.current),bo(_o.current),Ia(t)){if(i=t.stateNode,n=t.memoizedProps,i[Ri]=t,(s=i.nodeValue!==n)&&(e=Da,e!==null))switch(e.tag){case 3:wi(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&wi(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Ri]=t,t.stateNode=i}return gc(t),null;case 13:if(R(To),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ka&&Oa!==null&&t.mode&1&&!(t.flags&128))La(),Ra(),t.flags|=98560,s=!1;else if(s=Ia(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[Ri]=t}else Ra(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gc(t),s=!1}else Aa!==null&&(kl(Aa),Aa=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||To.current&1?rl===0&&(rl=3):zl())),t.updateQueue!==null&&(t.flags|=4),gc(t),null);case 4:return So(),e===null&&mi(t.stateNode.containerInfo),gc(t),null;case 10:return Qa(t.type._context),gc(t),null;case 17:return na(t.type)&&ra(),gc(t),null;case 19:if(R(To),s=t.memoizedState,s===null)return gc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)hc(s,!1);else{if(rl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Eo(e),c!==null){for(t.flags|=128,hc(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 Zi(To,To.current&1|2),t.child}e=e.sibling}s.tail!==null&&F()>dl&&(t.flags|=128,i=!0,hc(s,!1),t.lanes=4194304)}else{if(!i)if(e=Eo(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!ka)return gc(t),null}else 2*F()-s.renderingStartTime>dl&&n!==1073741824&&(t.flags|=128,i=!0,hc(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?(gc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=F(),t.sibling=null,n=To.current,Zi(To,i?n&1|2:n&1),t);case 22:case 23:return Fl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?tl&1073741824&&(gc(t),t.subtreeFlags&6&&(t.flags|=8192)):gc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function vc(e,t){switch(Ea(t),t.tag){case 1:return na(t.type)&&ra(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return So(),R($i),R(z),Oo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wo(t),null;case 13:if(R(To),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ra()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(To),null;case 4:return So(),null;case 10:return Qa(t.type._context),null;case 22:case 23:return Fl(),null;case 24:return null;default:return null}}var yc=!1,bc=!1,xc=typeof WeakSet==`function`?WeakSet:Set,H=null;function Sc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Yl(e,t,n)}else n.current=null}function Cc(e,t,n){try{n()}catch(n){Yl(e,t,n)}}var wc=!1;function Tc(e,t){if(Ei=yn,e=Rr(),zr(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(Di={focusedElem:e,selectionRange:n},yn=!1,H=t;H!==null;)if(t=H,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;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:Es(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){Yl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return h=wc,wc=!1,h}function Ec(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&&Cc(t,n,a)}i=i.next}while(i!==r)}}function Dc(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 Oc(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 kc(e){var t=e.alternate;t!==null&&(e.alternate=null,kc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ri],delete t[zi],delete t[Vi],delete t[Hi],delete t[Ui])),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 Ac(e){return e.tag===5||e.tag===3||e.tag===4}function jc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ac(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 Mc(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=Ti));else if(r!==4&&(e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}function Nc(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(Nc(e,t,n),e=e.sibling;e!==null;)Nc(e,t,n),e=e.sibling}var Pc=null,Fc=!1;function Ic(e,t,n){for(n=n.child;n!==null;)Lc(e,t,n),n=n.sibling}function Lc(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount==`function`)try{Ot.onCommitFiberUnmount(Dt,n)}catch{}switch(n.tag){case 5:bc||Sc(n,t);case 6:var r=Pc,i=Fc;Pc=null,Ic(e,t,n),Pc=r,Fc=i,Pc!==null&&(Fc?(e=Pc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pc.removeChild(n.stateNode));break;case 18:Pc!==null&&(Fc?(e=Pc,n=n.stateNode,e.nodeType===8?Pi(e.parentNode,n):e.nodeType===1&&Pi(e,n),_n(e)):Pi(Pc,n.stateNode));break;case 4:r=Pc,i=Fc,Pc=n.stateNode.containerInfo,Fc=!0,Ic(e,t,n),Pc=r,Fc=i;break;case 0:case 11:case 14:case 15:if(!bc&&(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)&&Cc(n,t,o),i=i.next}while(i!==r)}Ic(e,t,n);break;case 1:if(!bc&&(Sc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Yl(n,t,e)}Ic(e,t,n);break;case 21:Ic(e,t,n);break;case 22:n.mode&1?(bc=(r=bc)||n.memoizedState!==null,Ic(e,t,n),bc=r):Ic(e,t,n);break;default:Ic(e,t,n)}}function Rc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xc),t.forEach(function(t){var r=$l.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function zc(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:Pc=c.stateNode,Fc=!1;break a;case 3:Pc=c.stateNode.containerInfo,Fc=!0;break a;case 4:Pc=c.stateNode.containerInfo,Fc=!0;break a}c=c.return}if(Pc===null)throw Error(r(160));Lc(o,s,a),Pc=null,Fc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Yl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Bc(t,e),t=t.sibling}function Bc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(zc(t,e),Vc(e),i&4){try{Ec(3,e,e.return),Dc(3,e)}catch(t){Yl(e,e.return,t)}try{Ec(5,e,e.return)}catch(t){Yl(e,e.return,t)}}break;case 1:zc(t,e),Vc(e),i&512&&n!==null&&Sc(n,n.return);break;case 5:if(zc(t,e),Vc(e),i&512&&n!==null&&Sc(n,n.return),e.flags&32){var a=e.stateNode;try{Fe(a,``)}catch(t){Yl(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[zi]=o}catch(t){Yl(e,e.return,t)}}break;case 6:if(zc(t,e),Vc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Yl(e,e.return,t)}}break;case 3:if(zc(t,e),Vc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{_n(t.containerInfo)}catch(t){Yl(e,e.return,t)}break;case 4:zc(t,e),Vc(e);break;case 13:zc(t,e),Vc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(ul=F())),i&4&&Rc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(bc=(u=bc)||d,zc(t,e),bc=u):zc(t,e),Vc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(H=e,d=e.child;d!==null;){for(f=H=d;H!==null;){switch(p=H,m=p.child,p.tag){case 0:case 11:case 14:case 15:Ec(4,p,p.return);break;case 1:Sc(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){Yl(i,n,e)}}break;case 5:Sc(p,p.return);break;case 22:if(p.memoizedState!==null){Gc(f);continue}}m===null?Gc(f):(m.return=p,H=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){Yl(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Yl(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:zc(t,e),Vc(e),i&4&&Rc(e);break;case 21:break;default:zc(t,e),Vc(e)}}function Vc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Ac(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),Nc(e,jc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Mc(e,jc(e),o);break;default:throw Error(r(161))}}catch(t){Yl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hc(e,t,n){H=e,Uc(e,t,n)}function Uc(e,t,n){for(var r=(e.mode&1)!=0;H!==null;){var i=H,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||yc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||bc;s=yc;var l=bc;if(yc=o,(bc=c)&&!l)for(H=i;H!==null;)o=H,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Kc(i):(c.return=o,H=c);for(;a!==null;)H=a,Uc(a,t,n),a=a.sibling;H=i,yc=s,bc=l}Wc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,H=a):Wc(e,t,n)}}function Wc(e){for(;H!==null;){var t=H;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:bc||Dc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!bc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Es(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ho(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}ho(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&&_n(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}bc||t.flags&512&&Oc(t)}catch(e){Yl(t,t.return,e)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function Gc(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function Kc(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Dc(4,t)}catch(e){Yl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Yl(t,i,e)}}var a=t.return;try{Oc(t)}catch(e){Yl(t,a,e)}break;case 5:var o=t.return;try{Oc(t)}catch(e){Yl(t,o,e)}}}catch(e){Yl(t,t.return,e)}if(t===e){H=null;break}var s=t.sibling;if(s!==null){s.return=t.return,H=s;break}H=t.return}}var qc=Math.ceil,Jc=C.ReactCurrentDispatcher,Yc=C.ReactCurrentOwner,Xc=C.ReactCurrentBatchConfig,Zc=0,Qc=null,$c=null,el=0,tl=0,nl=Xi(0),rl=0,il=null,al=0,ol=0,sl=0,cl=null,ll=null,ul=0,dl=1/0,fl=null,pl=!1,ml=null,hl=null,gl=!1,_l=null,vl=0,yl=0,bl=null,xl=-1,Sl=0;function Cl(){return Zc&6?F():xl===-1?xl=F():xl}function wl(e){return e.mode&1?Zc&2&&el!==0?el&-el:Ba.transition===null?(e=Kt,e===0?(e=window.event,e=e===void 0?16:Tn(e.type),e):e):(Sl===0&&(Sl=Vt()),Sl):1}function Tl(e,t,n,i){if(50<yl)throw yl=0,bl=null,Error(r(185));Ut(e,n,i),(!(Zc&2)||e!==Qc)&&(e===Qc&&(!(Zc&2)&&(ol|=n),rl===4&&jl(e,el)),El(e,i),n===1&&Zc===0&&!(t.mode&1)&&(dl=F()+500,la&&pa()))}function El(e,t){var n=e.callbackNode;zt(e,t);var r=Lt(e,e===Qc?el:0);if(r===0)n!==null&&vt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&vt(n),t===1)e.tag===0?fa(Ml.bind(null,e)):da(Ml.bind(null,e)),Mi(function(){!(Zc&6)&&pa()}),n=null;else{switch(qt(r)){case 1:n=St;break;case 4:n=Ct;break;case 16:n=wt;break;case 536870912:n=Et;break;default:n=wt}n=tu(n,Dl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Dl(e,t){if(xl=-1,Sl=0,Zc&6)throw Error(r(327));var n=e.callbackNode;if(ql()&&e.callbackNode!==n)return null;var i=Lt(e,e===Qc?el:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Bl(e,i);else{t=i;var a=Zc;Zc|=2;var o=Rl();(Qc!==e||el!==t)&&(fl=null,dl=F()+500,Il(e,t));do try{Hl();break}catch(t){Ll(e,t)}while(1);Za(),Jc.current=o,Zc=a,$c===null?(Qc=null,el=0,t=rl):t=0}if(t!==0){if(t===2&&(a=Bt(e),a!==0&&(i=a,t=Ol(e,a))),t===1)throw n=il,Il(e,0),jl(e,i),El(e,F()),n;if(t===6)jl(e,i);else{if(a=e.current.alternate,!(i&30)&&!Al(a)&&(t=Bl(e,i),t===2&&(o=Bt(e),o!==0&&(i=o,t=Ol(e,o))),t===1))throw n=il,Il(e,0),jl(e,i),El(e,F()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Gl(e,ll,fl);break;case 3:if(jl(e,i),(i&130023424)===i&&(t=ul+500-F(),10<t)){if(Lt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Cl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ki(Gl.bind(null,e,ll,fl),t);break}Gl(e,ll,fl);break;case 4:if(jl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-At(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=F()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*qc(i/1960))-i,10<i){e.timeoutHandle=ki(Gl.bind(null,e,ll,fl),i);break}Gl(e,ll,fl);break;case 5:Gl(e,ll,fl);break;default:throw Error(r(329))}}}return El(e,F()),e.callbackNode===n?Dl.bind(null,e):null}function Ol(e,t){var n=cl;return e.current.memoizedState.isDehydrated&&(Il(e,t).flags|=256),e=Bl(e,t),e!==2&&(t=ll,ll=n,t!==null&&kl(t)),e}function kl(e){ll===null?ll=e:ll.push.apply(ll,e)}function Al(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(!Nr(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 jl(e,t){for(t&=~sl,t&=~ol,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-At(t),r=1<<n;e[n]=-1,t&=~r}}function Ml(e){if(Zc&6)throw Error(r(327));ql();var t=Lt(e,0);if(!(t&1))return El(e,F()),null;var n=Bl(e,t);if(e.tag!==0&&n===2){var i=Bt(e);i!==0&&(t=i,n=Ol(e,i))}if(n===1)throw n=il,Il(e,0),jl(e,t),El(e,F()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gl(e,ll,fl),El(e,F()),null}function Nl(e,t){var n=Zc;Zc|=1;try{return e(t)}finally{Zc=n,Zc===0&&(dl=F()+500,la&&pa())}}function Pl(e){_l!==null&&_l.tag===0&&!(Zc&6)&&ql();var t=Zc;Zc|=1;var n=Xc.transition,r=Kt;try{if(Xc.transition=null,Kt=1,e)return e()}finally{Kt=r,Xc.transition=n,Zc=t,!(Zc&6)&&pa()}}function Fl(){tl=nl.current,R(nl)}function Il(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ai(n)),$c!==null)for(n=$c.return;n!==null;){var r=n;switch(Ea(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ra();break;case 3:So(),R($i),R(z),Oo();break;case 5:wo(r);break;case 4:So();break;case 13:R(To);break;case 19:R(To);break;case 10:Qa(r.type._context);break;case 22:case 23:Fl()}n=n.return}if(Qc=e,$c=e=ou(e.current,null),el=tl=t,rl=0,il=null,sl=ol=al=0,ll=cl=null,no!==null){for(t=0;t<no.length;t++)if(n=no[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}no=null}return e}function Ll(e,t){do{var n=$c;try{if(Za(),ko.current=Ss,Fo){for(var i=Mo.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Fo=!1}if(jo=0,Po=No=Mo=null,Io=!1,Lo=0,Yc.current=null,n===null||n.return===null){rl=1,il=t,$c=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=el,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=zs(s);if(m!==null){m.flags&=-257,Bs(m,s,c,o,t),m.mode&1&&Rs(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)){Rs(o,u,t),zl();break a}l=Error(r(426))}}else if(ka&&c.mode&1){var _=zs(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Bs(_,s,c,o,t),za(Ns(l,c));break a}}o=l=Ns(l,c),rl!==4&&(rl=2),cl===null?cl=[o]:cl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Is(o,l,t);po(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`&&(hl===null||!hl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Ls(o,c,t);po(o,x);break a}}o=o.return}while(o!==null)}Wl(n)}catch(e){t=e,$c===n&&n!==null&&($c=n=n.return);continue}break}while(1)}function Rl(){var e=Jc.current;return Jc.current=Ss,e===null?Ss:e}function zl(){(rl===0||rl===3||rl===2)&&(rl=4),Qc===null||!(al&268435455)&&!(ol&268435455)||jl(Qc,el)}function Bl(e,t){var n=Zc;Zc|=2;var i=Rl();(Qc!==e||el!==t)&&(fl=null,Il(e,t));do try{Vl();break}catch(t){Ll(e,t)}while(1);if(Za(),Zc=n,Jc.current=i,$c!==null)throw Error(r(261));return Qc=null,el=0,rl}function Vl(){for(;$c!==null;)Ul($c)}function Hl(){for(;$c!==null&&!yt();)Ul($c)}function Ul(e){var t=eu(e.alternate,e,tl);e.memoizedProps=e.pendingProps,t===null?Wl(e):$c=t,Yc.current=null}function Wl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=vc(n,t),n!==null){n.flags&=32767,$c=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rl=6,$c=null;return}}else if(n=_c(n,t,tl),n!==null){$c=n;return}if(t=t.sibling,t!==null){$c=t;return}$c=t=e}while(t!==null);rl===0&&(rl=5)}function Gl(e,t,n){var r=Kt,i=Xc.transition;try{Xc.transition=null,Kt=1,Kl(e,t,n,r)}finally{Xc.transition=i,Kt=r}return null}function Kl(e,t,n,i){do ql();while(_l!==null);if(Zc&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(Wt(e,o),e===Qc&&($c=Qc=null,el=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||gl||(gl=!0,tu(wt,function(){return ql(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Xc.transition,Xc.transition=null;var s=Kt;Kt=1;var c=Zc;Zc|=4,Yc.current=null,Tc(e,n),Bc(n,e),Br(Di),yn=!!Ei,Di=Ei=null,e.current=n,Hc(n,e,a),bt(),Zc=c,Kt=s,Xc.transition=o}else e.current=n;if(gl&&(gl=!1,_l=e,vl=a),o=e.pendingLanes,o===0&&(hl=null),kt(n.stateNode,i),El(e,F()),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(pl)throw pl=!1,e=ml,ml=null,e;return vl&1&&e.tag!==0&&ql(),o=e.pendingLanes,o&1?e===bl?yl++:(yl=0,bl=e):yl=0,pa(),null}function ql(){if(_l!==null){var e=qt(vl),t=Xc.transition,n=Kt;try{if(Xc.transition=null,Kt=16>e?16:e,_l===null)var i=!1;else{if(e=_l,_l=null,vl=0,Zc&6)throw Error(r(331));var a=Zc;for(Zc|=4,H=e.current;H!==null;){var o=H,s=o.child;if(H.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(H=u;H!==null;){var d=H;switch(d.tag){case 0:case 11:case 15:Ec(8,d,o)}var f=d.child;if(f!==null)f.return=d,H=f;else for(;H!==null;){d=H;var p=d.sibling,m=d.return;if(kc(d),d===u){H=null;break}if(p!==null){p.return=m,H=p;break}H=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)}}H=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,H=s;else b:for(;H!==null;){if(o=H,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ec(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,H=v;break b}H=o.return}}var y=e.current;for(H=y;H!==null;){s=H;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,H=b;else b:for(s=y;H!==null;){if(c=H,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Dc(9,c)}}catch(e){Yl(c,c.return,e)}if(c===s){H=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,H=x;break b}H=c.return}}if(Zc=a,pa(),Ot&&typeof Ot.onPostCommitFiberRoot==`function`)try{Ot.onPostCommitFiberRoot(Dt,e)}catch{}i=!0}return i}finally{Kt=n,Xc.transition=t}}return!1}function Jl(e,t,n){t=Ns(n,t),t=Is(e,t,1),e=uo(e,t,1),t=Cl(),e!==null&&(Ut(e,1,t),El(e,t))}function Yl(e,t,n){if(e.tag===3)Jl(e,e,n);else for(;t!==null;){if(t.tag===3){Jl(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(hl===null||!hl.has(r))){e=Ns(n,e),e=Ls(t,e,1),t=uo(t,e,1),e=Cl(),t!==null&&(Ut(t,1,e),El(t,e));break}}t=t.return}}function Xl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Cl(),e.pingedLanes|=e.suspendedLanes&n,Qc===e&&(el&n)===n&&(rl===4||rl===3&&(el&130023424)===el&&500>F()-ul?Il(e,0):sl|=n),El(e,t)}function Zl(e,t){t===0&&(e.mode&1?(t=Ft,Ft<<=1,!(Ft&130023424)&&(Ft=4194304)):t=1);var n=Cl();e=ao(e,t),e!==null&&(Ut(e,t,n),El(e,n))}function Ql(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zl(e,n)}function $l(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),Zl(e,n)}var eu=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$i.current)Hs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Hs=!1,dc(e,t,n);Hs=!!(e.flags&131072)}else Hs=!1,ka&&t.flags&1048576&&wa(t,_a,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;lc(e,t),e=t.pendingProps;var a=ta(t,z.current);eo(t,n),a=Vo(null,t,i,e,a,n);var o=Ho();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,na(i)?(o=!0,oa(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,so(t),a.updater=Os,t.stateNode=a,a._reactInternals=t,Ms(t,i,e,n),t=Zs(null,t,i,!0,o,n)):(t.tag=0,ka&&o&&Ta(t),Us(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(lc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=au(i),e=Es(i,e),a){case 0:t=Ys(null,t,i,e,n);break a;case 1:t=Xs(null,t,i,e,n);break a;case 11:t=Ws(null,t,i,e,n);break a;case 14:t=Gs(null,t,i,Es(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:Es(i,a),Ys(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Es(i,a),Xs(e,t,i,a,n);case 3:a:{if(Qs(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,co(e,t),mo(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=Ns(Error(r(423)),t),t=$s(e,t,i,n,a);break a}else if(i!==a){a=Ns(Error(r(424)),t),t=$s(e,t,i,n,a);break a}else for(Oa=Fi(t.stateNode.containerInfo.firstChild),Da=t,ka=!0,Aa=null,n=Ka(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ra(),i===a){t=uc(e,t,n);break a}Us(e,t,i,n)}t=t.child}return t;case 5:return Co(t),e===null&&Pa(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Oi(i,a)?s=null:o!==null&&Oi(i,o)&&(t.flags|=32),Js(e,t),Us(e,t,s,n),t.child;case 6:return e===null&&Pa(t),null;case 13:return nc(e,t,n);case 4:return xo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ga(t,null,i,n):Us(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Es(i,a),Ws(e,t,i,a,n);case 7:return Us(e,t,t.pendingProps,n),t.child;case 8:return Us(e,t,t.pendingProps.children,n),t.child;case 12:return Us(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,Zi(qa,i._currentValue),i._currentValue=s,o!==null)if(Nr(o.value,s)){if(o.children===a.children&&!$i.current){t=uc(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=lo(-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),$a(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),$a(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}Us(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,eo(t,n),a=to(a),i=i(a),t.flags|=1,Us(e,t,i,n),t.child;case 14:return i=t.type,a=Es(i,t.pendingProps),a=Es(i.type,a),Gs(e,t,i,a,n);case 15:return Ks(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Es(i,a),lc(e,t),t.tag=1,na(i)?(e=!0,oa(t)):e=!1,eo(t,n),As(t,i,a),Ms(t,i,a,n),Zs(null,t,i,!0,e,n);case 19:return cc(e,t,n);case 22:return qs(e,t,n)}throw Error(r(156,t.tag))};function tu(e,t){return _t(e,t)}function nu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ru(e,t,n,r){return new nu(e,t,n,r)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function au(e){if(typeof e==`function`)return+!!iu(e);if(e!=null){if(e=e.$$typeof,e===A)return 11;if(e===M)return 14}return 2}function ou(e,t){var n=e.alternate;return n===null?(n=ru(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 su(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)iu(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return cu(n.children,a,o,t);case D:s=8,a|=8;break;case O:return e=ru(12,n,t,a|2),e.elementType=O,e.lanes=o,e;case j:return e=ru(13,n,t,a),e.elementType=j,e.lanes=o,e;case te:return e=ru(19,n,t,a),e.elementType=te,e.lanes=o,e;case N:return lu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case ee:s=10;break a;case k:s=9;break a;case A:s=11;break a;case M:s=14;break a;case ne:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=ru(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function cu(e,t,n,r){return e=ru(7,e,r,t),e.lanes=n,e}function lu(e,t,n,r){return e=ru(22,e,r,t),e.elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function uu(e,t,n){return e=ru(6,e,null,t),e.lanes=n,e}function du(e,t,n){return t=ru(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function pu(e,t,n,r,i,a,o,s,c){return e=new fu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=ru(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},so(a),e}function mu(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 hu(e){if(!e)return Qi;e=e._reactInternals;a:{if(dt(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(na(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(na(n))return aa(e,n,t)}return t}function gu(e,t,n,r,i,a,o,s,c){return e=pu(n,r,!0,e,i,a,o,s,c),e.context=hu(null),n=e.current,r=Cl(),i=wl(n),a=lo(r,i),a.callback=t??null,uo(n,a,i),e.current.lanes=i,Ut(e,i,r),El(e,r),e}function _u(e,t,n,r){var i=t.current,a=Cl(),o=wl(i);return n=hu(n),t.context===null?t.context=n:t.pendingContext=n,t=lo(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=uo(i,t,o),e!==null&&(Tl(e,i,o,a),fo(e,i,o)),o}function vu(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 yu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bu(e,t){yu(e,t),(e=e.alternate)&&yu(e,t)}function xu(){return null}var Su=typeof reportError==`function`?reportError:function(e){console.error(e)};function Cu(e){this._internalRoot=e}wu.prototype.render=Cu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));_u(e,t,null,null)},wu.prototype.unmount=Cu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pl(function(){_u(null,e,null,null)}),t[Bi]=null}};function wu(e){this._internalRoot=e}wu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sn.length&&t!==0&&t<sn[n].priority;n++);sn.splice(n,0,e),n===0&&fn(e)}};function Tu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Eu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Du(){}function Ou(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=vu(o);a.call(e)}}var o=gu(t,r,e,0,null,!1,!1,``,Du);return e._reactRootContainer=o,e[Bi]=o.current,mi(e.nodeType===8?e.parentNode:e),Pl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=vu(c);s.call(e)}}var c=pu(e,0,!1,null,null,!1,!1,``,Du);return e._reactRootContainer=c,e[Bi]=c.current,mi(e.nodeType===8?e.parentNode:e),Pl(function(){_u(t,c,n,r)}),c}function ku(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=vu(o);s.call(e)}}_u(t,o,e,i)}else o=Ou(n,t,e,i,r);return vu(o)}Jt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=It(t.pendingLanes);n!==0&&(Gt(t,n|1),El(t,F()),!(Zc&6)&&(dl=F()+500,pa()))}break;case 13:Pl(function(){var t=ao(e,1);t!==null&&Tl(t,e,1,Cl())}),bu(e,1)}},Yt=function(e){if(e.tag===13){var t=ao(e,134217728);t!==null&&Tl(t,e,134217728,Cl()),bu(e,134217728)}},Xt=function(e){if(e.tag===13){var t=wl(e),n=ao(e,t);n!==null&&Tl(n,e,t,Cl()),bu(e,t)}},Zt=function(){return Kt},Qt=function(e,t){var n=Kt;try{return Kt=e,t()}finally{Kt=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=qi(i);if(!a)throw Error(r(90));_e(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=Nl,Qe=Pl;var Au={usingClientEntryPoint:!1,Events:[Gi,Ki,qi,Ye,Xe,Nl]},ju={findFiberByHostInstance:Wi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},Mu={bundleType:ju.bundleType,version:ju.version,rendererPackageName:ju.rendererPackageName,rendererConfig:ju.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=ht(e),e===null?null:e.stateNode},findFiberByHostInstance:ju.findFiberByHostInstance||xu,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 Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{Dt=Nu.inject(Mu),Ot=Nu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Au,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tu(t))throw Error(r(200));return mu(e,t,null,n)},e.createRoot=function(e,t){if(!Tu(e))throw Error(r(299));var n=!1,i=``,a=Su;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=pu(e,1,!1,null,null,n,!1,i,a),e[Bi]=t.current,mi(e.nodeType===8?e.parentNode:e),new Cu(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=ht(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Pl(e)},e.hydrate=function(e,t,n){if(!Eu(t))throw Error(r(200));return ku(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!Tu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=Su;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=gu(t,null,e,1,n??null,a,!1,o,s),e[Bi]=t.current,mi(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 wu(t)},e.render=function(e,t,n){if(!Eu(t))throw Error(r(200));return ku(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Eu(e))throw Error(r(40));return e._reactRootContainer?(Pl(function(){ku(null,null,e,!1,function(){e._reactRootContainer=null,e[Bi]=null})}),!0):!1},e.unstable_batchedUpdates=Nl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Eu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return ku(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})),_=()=>{};function v(){let e=function(){};return e.enabled=!1,e.log=_,e.extend=()=>e,e.destroy=_,e}v.log=_,v.enable=_,v.disable=()=>``,v.enabled=()=>!1;var y=`commitPendingSession`,b=new WeakMap;function x(e,t){let n=b.get(e);n||(n=new Set,b.set(e,n)),n.add(t)}function S(e){return Object.getOwnPropertyDescriptor(e,y)!==void 0}function C(e){if(S(e))return;let t=e[y];Object.defineProperty(e,y,{value:()=>{if(typeof t==`function`)try{t.call(e)}catch{}T(e)},configurable:!0,enumerable:!1,writable:!0})}function w(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 x(e,d),C(e),d}function T(e){let t=b.get(e);if(t)for(let e of[...t])e.flush()}var E=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}},D=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}},O={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`}},ee={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`}},k=e=>typeof e==`string`,A=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},j=e=>e==null?``:``+e,te=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},M=/###/g,ne=e=>e&&e.indexOf(`###`)>-1?e.replace(M,`.`):e,N=e=>!e||k(e),re=(e,t,n)=>{let r=k(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(N(e))return{};let t=ne(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return N(e)?{}:{obj:e,k:ne(r[i])}},ie=(e,t,n)=>{let{obj:r,k:i}=re(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=re(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=re(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},ae=(e,t,n,r)=>{let{obj:i,k:a}=re(e,t,Object);i[a]=i[a]||[],i[a].push(n)},oe=(e,t)=>{let{obj:n,k:r}=re(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},se=(e,t,n)=>{let r=oe(e,n);return r===void 0?oe(t,n):r},ce=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?k(e[r])||e[r]instanceof String||k(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ce(e[r],t[r],n):e[r]=t[r]);return e},le=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),ue={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},de=e=>k(e)?e.replace(/[&<>"'\/]/g,e=>ue[e]):e,fe=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}},pe=[` `,`,`,`?`,`!`,`;`],me=new fe(20),he=(e,t,n)=>{t||=``,n||=``;let r=pe.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=me.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},ge=(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},_e=e=>e?.replace(/_/g,`-`),ve={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)}},ye=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||ve,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:(k(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)}},be=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])})}},xe=class extends be{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):k(n)&&i?o.push(...n.split(i)):o.push(n)));let s=oe(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!k(n)?s:ge(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),ie(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)(k(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=oe(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?ce(s,n,i):s={...s,...n},ie(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}},Se={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}},Ce=Symbol(`i18next/PATH_KEY`);function we(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===Ce?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Te(e,t){let{[Ce]:n}=e(we()),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 Ee={},De=e=>!k(e)&&typeof e!=`boolean`&&typeof e!=`number`,Oe=class e extends be{constructor(e,t={}){super(),te([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=ye.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=De(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&&!he(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:k(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:k(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=Te(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?Te(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&&!k(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=De(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(k(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:De(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&&k(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=k(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&&!k(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=k(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=Se.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 k(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?Te(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&&!k(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(k(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,!Ee[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(Ee[`${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&&!k(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}},ke=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ye.create(`languageUtils`)}getScriptPartFromCode(e){if(e=_e(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=_e(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(k(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)),k(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 k(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))):k(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},Ae={zero:0,one:1,two:2,few:3,many:4,other:5},je={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},Me=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=ye.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=_e(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!`),je;if(!e.match(/-|_/))return je;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)=>Ae[e]-Ae[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))}},Ne=(e,t,n,r=`.`,i=!0)=>{let a=se(e,t,n);return!a&&i&&k(n)&&(a=ge(e,n,r),a===void 0&&(a=ge(t,n,r))),a},Pe=e=>e.replace(/\$/g,`$$$$`),Fe=class{constructor(e={}){this.logger=ye.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?de:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?le(i):a||`{{`,this.suffix=o?le(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?le(d):f||le(`$t(`),this.nestingSuffix=p?le(p):m||le(`)`),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=Ne(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(Ne(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=>Pe(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Pe(this.escape(e)):Pe(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=k(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!k(a)&&!this.useRawValueToEscape&&(a=j(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(`${le(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&&!k(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&&!k(i))return i;k(i)||(i=j(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}},Ie=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}},Le=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(_e(r),i),t[o]=s),s(n)}},Re=e=>(t,n,r)=>e(_e(n),r)(t),ze=class{constructor(e={}){this.logger=ye.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Le:Re;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()]=Le(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}=Ie(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)}},Be=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Ve=class extends be{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=ye.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=>{ae(n.loaded,[i],a),Be(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();k(e)&&(e=this.languageUtils.toResolveHierarchy(e)),k(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)}}},He=()=>({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]),k(e[1])&&(t.defaultValue=e[1]),k(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}),Ue=e=>(k(e.ns)&&(e.ns=[e.ns]),k(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),k(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),We=()=>{},Ge=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Ke=`__i18next_supportNoticeShown`,qe=()=>!!(typeof globalThis<`u`&&globalThis[Ke]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),Je=()=>{typeof globalThis<`u`&&(globalThis[Ke]=!0)},Ye=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)),Xe=class e extends be{constructor(e={},t){if(super(),this.options=Ue(e),this.services={},this.logger=ye,this.modules={external:[]},Ge(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&&(k(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=He();this.options={...n,...this.options,...Ue(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&&!Ye(this)&&!qe()&&(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 💙`),Je());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?ye.init(r(this.modules.logger),this.options):ye.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:ze;let t=new ke(this.options);this.store=new xe(this.options.resources,this.options);let i=this.services;i.logger=ye,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new Me(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 Fe(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Ve(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 Oe(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||=We,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=A(),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=We){let n=t,r=k(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=A();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||=We,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`&&Se.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=A();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=k(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(k(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=Te(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=Te(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=Te(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return k(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=A();return this.options.ns?(k(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=A();k(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 ke(He());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=We){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 xe(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={...He().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new Fe(n)}return a.translator=new Oe(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();Xe.createInstance,Xe.dir,Xe.init,Xe.loadResources,Xe.reloadResources,Xe.use,Xe.changeLanguage,Xe.getFixedT,Xe.t,Xe.exists,Xe.setDefaultNamespace,Xe.hasLoadedNamespace,Xe.loadNamespaces,Xe.loadLanguages,Xe.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:O,es:ee}});var Ze={translator:{...Xe,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 Xe.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},Qe=function(){return null};Qe.isRequired=Qe;var $e=()=>Qe,P={array:Qe,bigint:Qe,bool:Qe,func:Qe,number:Qe,object:Qe,string:Qe,symbol:Qe,any:Qe,element:Qe,elementType:Qe,node:Qe,arrayOf:$e,instanceOf:$e,objectOf:$e,oneOf:$e,oneOfType:$e,shape:$e,exact:$e,checkPropTypes:()=>{},resetWarningCache:()=>{}};P.PropTypes=P;function et(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 tt=`$$material`;function nt(){return nt=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},nt.apply(null,arguments)}function rt(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 it(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 at=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(it(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=rt(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}(),ot=`-ms-`,st=`-moz-`,ct=`-webkit-`,lt=`comm`,ut=`rule`,dt=`decl`,ft=`@import`,pt=`@keyframes`,mt=`@layer`,ht=Math.abs,gt=String.fromCharCode,_t=Object.assign;function vt(e,t){return St(e,0)^45?(((t<<2^St(e,0))<<2^St(e,1))<<2^St(e,2))<<2^St(e,3):0}function yt(e){return e.trim()}function bt(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,n){return e.replace(t,n)}function xt(e,t){return e.indexOf(t)}function St(e,t){return e.charCodeAt(t)|0}function Ct(e,t,n){return e.slice(t,n)}function wt(e){return e.length}function Tt(e){return e.length}function Et(e,t){return t.push(e),e}function Dt(e,t){return e.map(t).join(``)}var Ot=1,kt=1,At=0,jt=0,Mt=0,Nt=``;function Pt(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Ot,column:kt,length:o,return:``}}function Ft(e,t){return _t(Pt(``,null,null,``,null,null,0),e,{length:-e.length},t)}function It(){return Mt}function Lt(){return Mt=jt>0?St(Nt,--jt):0,kt--,Mt===10&&(kt=1,Ot--),Mt}function Rt(){return Mt=jt<At?St(Nt,jt++):0,kt++,Mt===10&&(kt=1,Ot++),Mt}function zt(){return St(Nt,jt)}function Bt(){return jt}function Vt(e,t){return Ct(Nt,e,t)}function Ht(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 Ut(e){return Ot=kt=1,At=wt(Nt=e),jt=0,[]}function Wt(e){return Nt=``,e}function Gt(e){return yt(Vt(jt-1,Jt(e===91?e+2:e===40?e+1:e)))}function Kt(e){for(;(Mt=zt())&&Mt<33;)Rt();return Ht(e)>2||Ht(Mt)>3?``:` `}function qt(e,t){for(;--t&&Rt()&&!(Mt<48||Mt>102||Mt>57&&Mt<65||Mt>70&&Mt<97););return Vt(e,Bt()+(t<6&&zt()==32&&Rt()==32))}function Jt(e){for(;Rt();)switch(Mt){case e:return jt;case 34:case 39:e!==34&&e!==39&&Jt(Mt);break;case 40:e===41&&Jt(e);break;case 92:Rt();break}return jt}function Yt(e,t){for(;Rt()&&e+Mt!==57&&!(e+Mt===84&&zt()===47););return`/*`+Vt(t,jt-1)+`*`+gt(e===47?e:Rt())}function Xt(e){for(;!Ht(zt());)Rt();return Vt(e,jt)}function Zt(e){return Wt(Qt(``,null,null,null,[``],e=Ut(e),0,[0],e))}function Qt(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=Rt()){case 40:if(m!=108&&St(C,d-1)==58){xt(C+=F(Gt(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Gt(v);break;case 9:case 10:case 13:case 32:C+=Kt(m);break;case 92:C+=qt(Bt()-1,7);continue;case 47:switch(zt()){case 42:case 47:Et(en(Yt(Rt(),Bt()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=wt(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=F(C,/\f/g,``)),p>0&&wt(C)-d&&Et(p>32?tn(C+`;`,r,n,d-1):tn(F(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Et(S=$t(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Qt(C,t,S,S,b,a,d,s,x);else switch(f===99&&St(C,3)===110?100:f){case 100:case 108:case 109:case 115:Qt(e,S,S,r&&Et($t(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Qt(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+wt(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Lt()==125)continue}switch(C+=gt(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(wt(C)-1)*_,_=1;break;case 64:zt()===45&&(C+=Gt(Rt())),f=zt(),u=d=wt(y=C+=Xt(Bt())),v++;break;case 45:m===45&&wt(C)==2&&(h=0)}}return a}function $t(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=Tt(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=Ct(e,d+1,d=ht(h=o[m])),y=e;_<p;++_)(y=yt(h>0?f[_]+` `+v:F(v,/&\f/g,f[_])))&&(c[g++]=y);return Pt(e,t,n,i===0?ut:s,c,l,u)}function en(e,t,n){return Pt(e,t,n,lt,gt(It()),Ct(e,2,-2),0)}function tn(e,t,n,r){return Pt(e,t,n,dt,Ct(e,0,r),Ct(e,r+1,-1),r)}function nn(e,t){for(var n=``,r=Tt(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function rn(e,t,n,r){switch(e.type){case mt:if(e.children.length)break;case ft:case dt:return e.return=e.return||e.value;case lt:return``;case pt:return e.return=e.value+`{`+nn(e.children,r)+`}`;case ut:e.value=e.props.join(`,`)}return wt(n=nn(e.children,r))?e.return=e.value+`{`+n+`}`:``}function an(e){var t=Tt(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 on(e){return function(t){t.root||(t=t.return)&&e(t)}}function sn(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var cn=function(e,t,n){for(var r=0,i=0;r=i,i=zt(),r===38&&i===12&&(t[n]=1),!Ht(i);)Rt();return Vt(e,jt)},ln=function(e,t){var n=-1,r=44;do switch(Ht(r)){case 0:r===38&&zt()===12&&(t[n]=1),e[n]+=cn(jt-1,t,n);break;case 2:e[n]+=Gt(r);break;case 4:if(r===44){e[++n]=zt()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=gt(r)}while(r=Rt());return e},un=function(e,t){return Wt(ln(Ut(e),t))},dn=new WeakMap,fn=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&&!dn.get(n))&&!r){dn.set(e,!0);for(var i=[],a=un(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]}}},pn=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function mn(e,t){switch(vt(e,t)){case 5103:return ct+`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 ct+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ct+e+st+e+ot+e+e;case 6828:case 4268:return ct+e+ot+e+e;case 6165:return ct+e+ot+`flex-`+e+e;case 5187:return ct+e+F(e,/(\w+).+(:[^]+)/,ct+`box-$1$2`+ot+`flex-$1$2`)+e;case 5443:return ct+e+ot+`flex-item-`+F(e,/flex-|-self/,``)+e;case 4675:return ct+e+ot+`flex-line-pack`+F(e,/align-content|flex-|-self/,``)+e;case 5548:return ct+e+ot+F(e,`shrink`,`negative`)+e;case 5292:return ct+e+ot+F(e,`basis`,`preferred-size`)+e;case 6060:return ct+`box-`+F(e,`-grow`,``)+ct+e+ot+F(e,`grow`,`positive`)+e;case 4554:return ct+F(e,/([^-])(transform)/g,`$1`+ct+`$2`)+e;case 6187:return F(F(F(e,/(zoom-|grab)/,ct+`$1`),/(image-set)/,ct+`$1`),e,``)+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,ct+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,ct+`box-pack:$3`+ot+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+ct+e+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,ct+`$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(wt(e)-1-t>6)switch(St(e,t+1)){case 109:if(St(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,`$1`+ct+`$2-$3$1`+st+(St(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~xt(e,`stretch`)?mn(F(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(St(e,t+1)!==115)break;case 6444:switch(St(e,wt(e)-3-(~xt(e,`!important`)&&10))){case 107:return F(e,`:`,`:`+ct)+e;case 101:return F(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+ct+(St(e,14)===45?`inline-`:``)+`box$3$1`+ct+`$2$3$1`+ot+`$2box$3`)+e}break;case 5936:switch(St(e,t+11)){case 114:return ct+e+ot+F(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return ct+e+ot+F(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return ct+e+ot+F(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return ct+e+ot+e+e}return e}var hn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case dt:e.return=mn(e.value,e.length);break;case pt:return nn([Ft(e,{value:F(e.value,`@`,`@`+ct)})],r);case ut:if(e.length)return Dt(e.props,function(t){switch(bt(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return nn([Ft(e,{props:[F(t,/:(read-\w+)/,`:`+st+`$1`)]})],r);case`::placeholder`:return nn([Ft(e,{props:[F(t,/:(plac\w+)/,`:`+ct+`input-$1`)]}),Ft(e,{props:[F(t,/:(plac\w+)/,`:`+st+`$1`)]}),Ft(e,{props:[F(t,/:(plac\w+)/,ot+`input-$1`)]})],r)}return``})}}],gn=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||hn,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=[fn,pn],l,u=[rn,on(function(e){l.insert(e)})],d=an(c.concat(r,u)),f=function(e){return nn(Zt(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 at({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},_n=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})),vn=o(((e,t)=>{t.exports=_n()})),yn=o(((e,t)=>{var n=vn(),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 bn(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var xn=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Sn=function(e,t,n){xn(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 Cn(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 wn={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},Tn=/[A-Z]|^ms/g,En=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Dn=function(e){return e.charCodeAt(1)===45},On=function(e){return e!=null&&typeof e!=`boolean`},kn=sn(function(e){return Dn(e)?e:e.replace(Tn,`-$&`).toLowerCase()}),An=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(En,function(e,t,n){return Pn={name:t,styles:n,next:Pn},t})}return wn[e]!==1&&!Dn(e)&&typeof t==`number`&&t!==0?t+`px`:t};function jn(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 Pn={name:i.name,styles:i.styles,next:Pn},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Pn={name:o.name,styles:o.styles,next:Pn},o=o.next;return a.styles+`;`}return Mn(e,t,n);case`function`:if(e!==void 0){var s=Pn,c=n(e);return Pn=s,jn(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Mn(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=jn(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]+`}`:On(s)&&(r+=kn(a)+`:`+An(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++)On(o[c])&&(r+=kn(a)+`:`+An(a,o[c])+`;`);else{var l=jn(e,t,o);switch(a){case`animation`:case`animationName`:r+=kn(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var Nn=/label:\s*([^\s;{]+)\s*(;|$)/g,Pn;function Fn(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=``;Pn=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=jn(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=jn(n,t,e[o]),r&&(i+=a[o]);Nn.lastIndex=0;for(var s=``,c;(c=Nn.exec(i))!==null;)s+=`-`+c[1];return{name:Cn(i)+s,styles:i,next:Pn}}var I=l(d()),In=function(e){return e()},Ln=I.useInsertionEffect?I.useInsertionEffect:!1,Rn=Ln||In,zn=Ln||I.useLayoutEffect,Bn=I.createContext(typeof HTMLElement<`u`?gn({key:`css`}):null),Vn=Bn.Provider,Hn=function(e){return(0,I.forwardRef)(function(t,n){return e(t,(0,I.useContext)(Bn),n)})},Un=I.createContext({}),Wn={}.hasOwnProperty,Gn=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Kn=function(e,t){var n={};for(var r in t)Wn.call(t,r)&&(n[r]=t[r]);return n[Gn]=e,n},qn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return xn(t,n,r),Rn(function(){return Sn(t,n,r)}),null},Jn=Hn(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Gn],a=[r],o=``;typeof e.className==`string`?o=bn(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Fn(a,void 0,I.useContext(Un));o+=t.key+`-`+s.name;var c={};for(var l in e)Wn.call(e,l)&&l!==`css`&&l!==Gn&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),I.createElement(I.Fragment,null,I.createElement(qn,{cache:t,serialized:s,isStringTag:typeof i==`string`}),I.createElement(i,c))});yn();var Yn=function(e,t){var n=arguments;if(t==null||!Wn.call(t,`css`))return I.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Jn,i[1]=Kn(e,t);for(var a=2;a<r;a++)i[a]=n[a];return I.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(Yn||={});var Xn=Hn(function(e,t){var n=e.styles,r=Fn([n],void 0,I.useContext(Un)),i=I.useRef();return zn(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]),zn(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&Sn(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 Zn(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fn(t)}function Qn(){var e=Zn.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 $n=/^((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)-.*))$/,er=sn(function(e){return $n.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),tr=function(e){return e!==`theme`},nr=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?er:tr},rr=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},ir=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return xn(t,n,r),Rn(function(){return Sn(t,n,r)}),null},ar=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=rr(t,n,r),c=s||nr(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=Hn(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=I.useContext(Un)}typeof e.className==`string`?a=bn(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Fn(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?nr(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),I.createElement(I.Fragment,null,I.createElement(ir,{cache:t,serialized:m,isStringTag:typeof r==`string`}),I.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,nt({},n,r,{shouldForwardProp:rr(h,r,!0)})).apply(void 0,d)},h}},or=`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(`.`),sr=ar.bind(null);or.forEach(function(e){sr[e]=sr(e)});var cr=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})),L=o(((e,t)=>{t.exports=cr()}))(),lr=new Map,ur={insert:void 0},dr=(e,t)=>{let n=gn(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},fr;if(typeof document==`object`&&(fr=document.querySelector(`[name="emotion-insertion-point"]`),!fr)){fr=document.createElement(`meta`),fr.setAttribute(`name`,`emotion-insertion-point`),fr.setAttribute(`content`,``);let e=document.querySelector(`head`);e&&e.prepend(fr)}function pr(e,t){if(e||t){class n extends at{insert(e,t){return ur.insert?ur.insert(e,t):(this.key&&this.key.endsWith(`global`)&&(this.before=fr),super.insert(e,t))}}let r=dr({key:`css`,insertionPoint:e?fr: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 mr(e){let{injectFirst:t,enableCssLayer:n,children:r}=e,i=I.useMemo(()=>{let e=`${t}-${n}`;if(typeof document==`object`&&lr.has(e))return lr.get(e);let r=pr(t,n);return lr.set(e,r),r},[t,n]);return i?(0,L.jsx)(Vn,{value:i,children:r}):r}function hr(e){return e==null||Object.keys(e).length===0}function gr(e){let{styles:t,defaultTheme:n={}}=e;return(0,L.jsx)(Xn,{styles:typeof t==`function`?e=>t(hr(e)?n:e):t})}function _r(e,t){return sr(e,t)}function vr(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var yr=[];function br(e){return yr[0]=e,Fn(yr)}var xr=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))}})),Sr=o(((e,t)=>{t.exports=xr()}))();function Cr(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 wr(e){if(I.isValidElement(e)||(0,Sr.isValidElementType)(e)||!Cr(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=wr(e[n])}),t}function Tr(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Cr(e)&&Cr(t)&&Object.keys(t).forEach(i=>{I.isValidElement(t[i])||(0,Sr.isValidElementType)(t[i])?r[i]=t[i]:Cr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Cr(e[i])?r[i]=Tr(e[i],t[i],n):n.clone?r[i]=Cr(t[i])?wr(t[i]):t[i]:r[i]=t[i]}),r}var Er=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 Dr(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Er(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 Or(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 kr(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Ar(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 jr(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 Mr={borderRadius:4};function Nr(e,t){return t?Tr(e,t,{clone:!1}):e}var Pr={xs:0,sm:600,md:900,lg:1200,xl:1536},Fr={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${Pr[e]}px)`},Ir={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:Pr[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Lr(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||Fr;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||Fr;return Object.keys(t).reduce((i,a)=>{if(kr(e.keys,a)){let e=Ar(r.containerQueries?r:Ir,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||Pr).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 Rr(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function zr(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function Br(e){if(typeof e!=`string`)throw Error(et(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Vr(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 Hr(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:Vr(e,n)||r,t&&(i=t(i,r,e)),i}function Ur(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=Vr(o,r)||{};return Lr(e,a,e=>{let r=Hr(s,i,e);return e===r&&typeof e==`string`&&(r=Hr(s,i,`${t}${e==="default"?``:Br(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}function Wr(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Gr={m:`margin`,p:`padding`},Kr={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},qr={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},Jr=Wr(e=>{if(e.length>2)if(qr[e])e=qr[e];else return[e];let[t,n]=e.split(``),r=Gr[t],i=Kr[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),Yr=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],Xr=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],Zr=[...Yr,...Xr];function Qr(e,t,n,r){let i=Vr(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 $r(e){return Qr(e,`spacing`,8,`spacing`)}function ei(e,t){return typeof t==`string`||t==null?t:e(t)}function ti(e,t){return n=>e.reduce((e,r)=>(e[r]=ei(t,n),e),{})}function ni(e,t,n,r){if(!t.includes(n))return null;let i=ti(Jr(n),r),a=e[n];return Lr(e,a,i)}function ri(e,t){let n=$r(e.theme);return Object.keys(e).map(r=>ni(e,t,r,n)).reduce(Nr,{})}function ii(e){return ri(e,Yr)}ii.propTypes={},ii.filterProps=Yr;function ai(e){return ri(e,Xr)}ai.propTypes={},ai.filterProps=Xr;function oi(e){return ri(e,Zr)}oi.propTypes={},oi.filterProps=Zr;function si(e=8,t=$r({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 ci(...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]?Nr(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function li(e){return typeof e==`number`?`${e}px solid`:e}function ui(e,t){return Ur({prop:e,themeKey:`borders`,transform:t})}var di=ui(`border`,li),fi=ui(`borderTop`,li),pi=ui(`borderRight`,li),mi=ui(`borderBottom`,li),hi=ui(`borderLeft`,li),gi=ui(`borderColor`),_i=ui(`borderTopColor`),vi=ui(`borderRightColor`),yi=ui(`borderBottomColor`),bi=ui(`borderLeftColor`),xi=ui(`outline`,li),Si=ui(`outlineColor`),Ci=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=Qr(e.theme,`shape.borderRadius`,4,`borderRadius`);return Lr(e,e.borderRadius,e=>({borderRadius:ei(t,e)}))}return null};Ci.propTypes={},Ci.filterProps=[`borderRadius`],ci(di,fi,pi,mi,hi,gi,_i,vi,yi,bi,Ci,xi,Si);var wi=e=>{if(e.gap!==void 0&&e.gap!==null){let t=Qr(e.theme,`spacing`,8,`gap`);return Lr(e,e.gap,e=>({gap:ei(t,e)}))}return null};wi.propTypes={},wi.filterProps=[`gap`];var Ti=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=Qr(e.theme,`spacing`,8,`columnGap`);return Lr(e,e.columnGap,e=>({columnGap:ei(t,e)}))}return null};Ti.propTypes={},Ti.filterProps=[`columnGap`];var Ei=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=Qr(e.theme,`spacing`,8,`rowGap`);return Lr(e,e.rowGap,e=>({rowGap:ei(t,e)}))}return null};Ei.propTypes={},Ei.filterProps=[`rowGap`],ci(wi,Ti,Ei,Ur({prop:`gridColumn`}),Ur({prop:`gridRow`}),Ur({prop:`gridAutoFlow`}),Ur({prop:`gridAutoColumns`}),Ur({prop:`gridAutoRows`}),Ur({prop:`gridTemplateColumns`}),Ur({prop:`gridTemplateRows`}),Ur({prop:`gridTemplateAreas`}),Ur({prop:`gridArea`}));function Di(e,t){return t===`grey`?t:e}ci(Ur({prop:`color`,themeKey:`palette`,transform:Di}),Ur({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Di}),Ur({prop:`backgroundColor`,themeKey:`palette`,transform:Di}));function Oi(e){return e<=1&&e!==0?`${e*100}%`:e}var ki=Ur({prop:`width`,transform:Oi}),Ai=e=>e.maxWidth!==void 0&&e.maxWidth!==null?Lr(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Pr[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Oi(t)}}):null;Ai.filterProps=[`maxWidth`];var ji=Ur({prop:`minWidth`,transform:Oi}),Mi=Ur({prop:`height`,transform:Oi}),Ni=Ur({prop:`maxHeight`,transform:Oi}),Pi=Ur({prop:`minHeight`,transform:Oi});Ur({prop:`size`,cssProperty:`width`,transform:Oi}),Ur({prop:`size`,cssProperty:`height`,transform:Oi}),ci(ki,Ai,ji,Mi,Ni,Pi,Ur({prop:`boxSizing`}));var Fi={border:{themeKey:`borders`,transform:li},borderTop:{themeKey:`borders`,transform:li},borderRight:{themeKey:`borders`,transform:li},borderBottom:{themeKey:`borders`,transform:li},borderLeft:{themeKey:`borders`,transform:li},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:li},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:Ci},color:{themeKey:`palette`,transform:Di},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Di},backgroundColor:{themeKey:`palette`,transform:Di},p:{style:ai},pt:{style:ai},pr:{style:ai},pb:{style:ai},pl:{style:ai},px:{style:ai},py:{style:ai},padding:{style:ai},paddingTop:{style:ai},paddingRight:{style:ai},paddingBottom:{style:ai},paddingLeft:{style:ai},paddingX:{style:ai},paddingY:{style:ai},paddingInline:{style:ai},paddingInlineStart:{style:ai},paddingInlineEnd:{style:ai},paddingBlock:{style:ai},paddingBlockStart:{style:ai},paddingBlockEnd:{style:ai},m:{style:ii},mt:{style:ii},mr:{style:ii},mb:{style:ii},ml:{style:ii},mx:{style:ii},my:{style:ii},margin:{style:ii},marginTop:{style:ii},marginRight:{style:ii},marginBottom:{style:ii},marginLeft:{style:ii},marginX:{style:ii},marginY:{style:ii},marginInline:{style:ii},marginInlineStart:{style:ii},marginInlineEnd:{style:ii},marginBlock:{style:ii},marginBlockStart:{style:ii},marginBlockEnd:{style:ii},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:wi},rowGap:{style:Ei},columnGap:{style:Ti},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:Oi},maxWidth:{style:Ai},minWidth:{transform:Oi},height:{transform:Oi},maxHeight:{transform:Oi},minHeight:{transform:Oi},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 Ii(...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 Li(e,t){return typeof e==`function`?e(t):e}function Ri(){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=Vr(n,s)||{};return l?l(i):Lr(i,t,t=>{let n=Hr(u,c,t);return t===n&&typeof t==`string`&&(n=Hr(u,c,`${e}${t==="default"?``:Br(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??Fi;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=Rr(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=Li(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=Nr(l,e(n,a,i,o));else{let e=Lr({theme:i},a,e=>({[n]:e}));Ii(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=Nr(l,e)}else l=Nr(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":Or(i,zr(c,l))}:Or(i,zr(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var zi=Ri();zi.filterProps=[`sx`];function Bi(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 Vi(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Dr(n),c=si(i),l=Tr({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...Mr,...a}},o);return l=jr(l),l.applyStyles=Bi,l=t.reduce((e,t)=>Tr(e,t),l),l.unstable_sxConfig={...Fi,...o?.unstable_sxConfig},l.unstable_sx=function(e){return zi({sx:e,theme:this})},l}function Hi(e){return Object.keys(e).length===0}function Ui(e=null){let t=I.useContext(Un);return!t||Hi(t)?e:t}var Wi=Vi();function Gi(e=Wi){return Ui(e)}function Ki(e){let t=br(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function qi({styles:e,themeId:t,defaultTheme:n={}}){let r=Gi(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>Ki(typeof e==`function`?e(i):e)):Ki(a)),(0,L.jsx)(gr,{styles:a})}var Ji=e=>e,Yi=(()=>{let e=Ji;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ji}}})();function Xi(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=Xi(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function R(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Xi(e))&&(r&&(r+=` `),r+=t);return r}var Zi={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 Qi(e,t,n=`Mui`){let r=Zi[t];return r?`${n}-${r}`:`${Yi.generate(e)}-${t}`}function z(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=Qi(e,t,n)}),r}function $i(e){let{variants:t,...n}=e,r={variants:t,style:br(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=br(e.style))}),r}var ea=Vi();function ta(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function na(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ra(e){return e?(t,n)=>n[e]:null}function ia(e,t,n){e.theme=ca(e.theme)?n:e.theme[t]||e.theme}function aa(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>aa(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?na(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?na(br(i),n):i}return oa(e,r.variants,[t],n)}return r?.isProcessed?n?na(br(r.style),n):r.style:n?na(br(r),n):r}function oa(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?na(br(o.style(i)),r):o.style(i))):n.push(r?na(br(o.style),r):o.style)}return n}function sa(e={}){let{themeId:t,defaultTheme:n=ea,rootShouldForwardProp:r=ta,slotShouldForwardProp:i=ta}=e;function a(e){ia(e,t,n)}return(e,t={})=>{vr(e,e=>e.filter(e=>e!==zi));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=ra(ua(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=ta;o===`Root`||o===`root`?m=r:o?m=i:la(e)&&(m=void 0);let h=_r(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return aa(t,e,t.theme.modularCssLayers?d:void 0)};if(Cr(e)){let t=$i(e);return function(e){return t.variants?aa(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?na(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]=aa(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?oa(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(zi),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 ca(e){for(let t in e)return!1;return!0}function la(e){return typeof e==`string`&&e.charCodeAt(0)>96}function ua(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function da(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]=da(i[t],o[t],n)}}}else a===`className`&&n&&t.className?r.className=R(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 fa=typeof window<`u`?I.useLayoutEffect:I.useEffect;function pa(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function ma(e,t=0,n=1){return pa(e,t,n)}function ha(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 ga(e){if(e.type)return e;if(e.charAt(0)===`#`)return ga(ha(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(et(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(et(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var _a=e=>{let t=ga(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},va=(e,t)=>{try{return _a(e)}catch{return e}};function ya(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 ba(e){e=ga(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])),ya({type:s,values:c})}function xa(e){e=ga(e);let t=e.type===`hsl`||e.type===`hsla`?ga(ba(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 Sa(e,t){let n=xa(e),r=xa(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ca(e,t){return e=ga(e),t=ma(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,ya(e)}function wa(e,t,n){try{return Ca(e,t)}catch{return e}}function Ta(e,t){if(e=ga(e),t=ma(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 ya(e)}function Ea(e,t,n){try{return Ta(e,t)}catch{return e}}function Da(e,t){if(e=ga(e),t=ma(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 ya(e)}function Oa(e,t,n){try{return Da(e,t)}catch{return e}}function ka(e,t=.15){return xa(e)>.5?Ta(e,t):Da(e,t)}function Aa(e,t,n){try{return ka(e,t)}catch{return e}}var ja=I.createContext(null);function Ma(){return I.useContext(ja)}var Na=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function Pa(e,t){return typeof t==`function`?t(e):{...e,...t}}function Fa(e){let{children:t,theme:n}=e,r=Ma(),i=I.useMemo(()=>{let e=r===null?{...n}:Pa(r,n);return e!=null&&(e[Na]=r!==null),e},[n,r]);return(0,L.jsx)(ja.Provider,{value:i,children:t})}var Ia=I.createContext();function La({value:e,...t}){return(0,L.jsx)(Ia.Provider,{value:e??!0,...t})}var Ra=()=>I.useContext(Ia)??!1,za=I.createContext(void 0);function Ba({value:e,children:t}){return(0,L.jsx)(za.Provider,{value:e,children:t})}function Va(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?da(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?da(i,r,t.components.mergeClassNameAndStyle):r}function Ha({props:e,name:t}){return Va({props:e,name:t,theme:{components:I.useContext(za)}})}var Ua=0;function Wa(e){let[t,n]=I.useState(e),r=e||t;return I.useEffect(()=>{t??(Ua+=1,n(`mui-${Ua}`))},[t]),r}var Ga={...I}.useId;function Ka(e){if(Ga!==void 0){let t=Ga();return e??t}return Wa(e)}function qa(e){let t=Ui(),n=Ka()||``,{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};`,fa(()=>{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,L.jsx)(qi,{styles:i}):null}var Ja={};function Ya(e,t,n,r=!1){return I.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 Xa(e){let{children:t,theme:n,themeId:r}=e,i=Ui(Ja),a=Ma()||Ja,o=Ya(r,i,n),s=Ya(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=qa(o);return(0,L.jsx)(Fa,{theme:s,children:(0,L.jsx)(Un.Provider,{value:o,children:(0,L.jsx)(La,{value:c,children:(0,L.jsxs)(Ba,{value:r?o[r].components:o.components,children:[l,t]})})})})}var Za={theme:void 0};function Qa(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Za.theme=r.theme,i=$i(e(Za)),t=i,n=r.theme),i}}var $a=`mode`,eo=`color-scheme`,to=`data-color-scheme`;function no(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=$a,colorSchemeStorageKey:a=eo,attribute:o=to,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 Ns(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function H(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ps=typeof WeakMap==`function`?WeakMap:Map;function Fs(e,t,n){n=co(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fl||(fl=!0,pl=r),H(e,t)},n}function Is(e,t,n){n=co(-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(){H(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){H(e,t),typeof r!=`function`&&(ml===null?ml=new Set([this]):ml.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Ls(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ps;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=Yl.bind(null,e,t,n),t.then(e,e))}function Rs(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 zs(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=co(-1,1),t.tag=2,lo(n,t,1))),n.lanes|=1),e)}var Bs=C.ReactCurrentOwner,Vs=!1;function Hs(e,t,n,r){t.child=e===null?Ga(t,null,n,r):Wa(t,e.child,n,r)}function Us(e,t,n,r,i){n=n.render;var a=t.ref;return $a(t,i),r=Bo(e,t,n,r,a,i),n=Vo(),e!==null&&!Vs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,lc(e,t,i)):(Oa&&n&&wa(t),t.flags|=1,Hs(e,t,r,i),t.child)}function Ws(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ru(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Gs(e,t,a,r,i)):(e=ou(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?Mr:n,n(o,r)&&e.ref===t.ref)return lc(e,t,i)}return t.flags|=1,e=au(a,r),e.ref=t.ref,e.return=t,t.child=e}function Gs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Mr(a,r)&&e.ref===t.ref)if(Vs=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Vs=!0);else return t.lanes=e.lanes,lc(e,t,i)}return Js(e,t,n,r,i)}function Ks(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},Yi(tl,el),el|=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,Yi(tl,el),el|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Yi(tl,el),el|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Yi(tl,el),el|=r;return Hs(e,t,i,n),t.child}function qs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Js(e,t,n,r,i){var a=ta(n)?$i:Zi.current;return a=ea(t,a),$a(t,i),n=Bo(e,t,n,r,a,i),r=Vo(),e!==null&&!Vs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,lc(e,t,i)):(Oa&&r&&wa(t),t.flags|=1,Hs(e,t,n,i),t.child)}function Ys(e,t,n,r,i){if(ta(n)){var a=!0;aa(t)}else a=!1;if($a(t,i),t.stateNode===null)cc(e,t),ks(t,n,r),js(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=eo(l):(l=ta(n)?$i:Zi.current,l=ea(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)&&As(t,o,r,l),ao=!1;var f=t.memoizedState;o.state=f,po(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Qi.current||ao?(typeof u==`function`&&(Es(t,n,u,r),c=t.memoizedState),(s=ao||Os(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,so(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Ts(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=eo(c):(c=ta(n)?$i:Zi.current,c=ea(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)&&As(t,o,r,c),ao=!1,f=t.memoizedState,o.state=f,po(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Qi.current||ao?(typeof p==`function`&&(Es(t,n,p,r),m=t.memoizedState),(l=ao||Os(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 Xs(e,t,n,r,a,i)}function Xs(e,t,n,r,i,a){qs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&oa(t,n,!1),lc(e,t,a);r=t.stateNode,Bs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Wa(t,e.child,null,a),t.child=Wa(t,null,s,a)):Hs(e,t,s,a),t.memoizedState=r.state,i&&oa(t,n,!0),t.child}function Zs(e){var t=e.stateNode;t.pendingContext?ra(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ra(e,t.context,!1),bo(e,t.containerInfo)}function Qs(e,t,n,r,i){return La(),Ra(i),t.flags|=256,Hs(e,t,n,r),t.child}var $s={dehydrated:null,treeContext:null,retryLane:0};function ec(e){return{baseLanes:e,cachePool:null,transitions:null}}function tc(e,t,n){var r=t.pendingProps,i=wo.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),Yi(wo,i&1),e===null)return Na(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=cu(o,r,0,null),e=su(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ec(n),t.memoizedState=$s,e):nc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return ic(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=au(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=su(a,o,n,null),a.flags|=2):a=au(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?ec(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=$s,r}return a=e.child,e=a.sibling,r=au(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 nc(e,t){return t=cu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function rc(e,t,n,r){return r!==null&&Ra(r),Wa(t,e.child,null,n),e=nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ic(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ns(Error(r(422))),rc(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=cu({mode:`visible`,children:i.children},a,0,null),o=su(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Wa(t,e.child,null,s),t.child.memoizedState=ec(s),t.memoizedState=$s,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return rc(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=Ns(o,i,void 0),rc(e,t,s,i)}if(c=(s&e.childLanes)!==0,Vs||c){if(i=Zc,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,io(e,a),wl(i,e,a,-1))}return Rl(),i=Ns(Error(r(421))),rc(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Zl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Da=Ni(a.nextSibling),Ea=t,Oa=!0,ka=null,e!==null&&(_a[va++]=ba,_a[va++]=xa,_a[va++]=ya,ba=e.id,xa=e.overflow,ya=t),t=nc(t,i.children),t.flags|=4096,t)}function ac(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qa(e.return,t,n)}function oc(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 sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Hs(e,t,r.children,n),r=wo.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&&ac(e,n,t);else if(e.tag===19)ac(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(Yi(wo,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&&To(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),oc(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&&To(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}oc(t,!0,n,null,a);break;case`together`:oc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),il|=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=au(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=au(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function uc(e,t,n){switch(t.tag){case 3:Zs(t),La();break;case 5:So(t);break;case 1:ta(t.type)&&aa(t);break;case 4:bo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Yi(Ka,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Yi(wo,wo.current&1),e=lc(e,t,n),e===null?null:e.sibling):tc(e,t,n):(Yi(wo,wo.current&1),t.flags|=128,null);Yi(wo,wo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Yi(wo,wo.current),r)break;return null;case 22:case 23:return t.lanes=0,Ks(e,t,n)}return lc(e,t,n)}var dc=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}},fc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,yo(go.current);var o=null;switch(n){case`input`:i=_e(e,i),r=_e(e,r),o=[];break;case`select`:i=ae({},i,{value:void 0}),r=ae({},r,{value:void 0}),o=[];break;case`textarea`:i=Te(e,i),r=Te(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Ci)}ze(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`&&li(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},pc=function(e,t,n,r){n!==r&&(t.flags|=4)};function mc(e,t){if(!Oa)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 hc(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 gc(e,t,n){var i=t.pendingProps;switch(Ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hc(t),null;case 1:return ta(t.type)&&na(),hc(t),null;case 3:return i=t.stateNode,xo(),B(Qi),B(Zi),Do(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Fa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ka!==null&&(Ol(ka),ka=null))),hc(t),null;case 5:Co(t);var o=yo(vo.current);if(n=t.type,e!==null&&t.stateNode!=null)fc(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 hc(t),null}if(e=yo(go.current),Fa(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Ii]=t,i[Li]=s,e=(t.mode&1)!=0,n){case`dialog`:li(`cancel`,i),li(`close`,i);break;case`iframe`:case`object`:case`embed`:li(`load`,i);break;case`video`:case`audio`:for(o=0;o<ai.length;o++)li(ai[o],i);break;case`source`:li(`error`,i);break;case`img`:case`image`:case`link`:li(`error`,i),li(`load`,i);break;case`details`:li(`toggle`,i);break;case`input`:ve(i,s),li(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},li(`invalid`,i);break;case`textarea`:Ee(i,s),li(`invalid`,i)}for(var c in ze(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&Si(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&Si(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&li(`scroll`,i)}switch(n){case`input`:P(i),xe(i,s,!0);break;case`textarea`:P(i),Oe(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Ci)}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=ke(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[Ii]=t,e[Li]=i,dc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Be(n,i),n){case`dialog`:li(`cancel`,e),li(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:li(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ai.length;o++)li(ai[o],e);o=i;break;case`source`:li(`error`,e),o=i;break;case`img`:case`image`:case`link`:li(`error`,e),li(`load`,e),o=i;break;case`details`:li(`toggle`,e),o=i;break;case`input`:ve(e,i),o=_e(e,i),li(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=ae({},i,{value:void 0}),li(`invalid`,e);break;case`textarea`:Ee(e,i),o=Te(e,i),li(`invalid`,e);break;default:o=i}for(s in ze(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Le(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Me(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Ne(e,u):typeof u==`number`&&Ne(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&li(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:P(e),xe(e,i,!1);break;case`textarea`:P(e),Oe(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+pe(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&we(e,!!i.multiple,i.defaultValue,!0):we(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Ci)}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 hc(t),null;case 6:if(e&&t.stateNode!=null)pc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=yo(vo.current),yo(go.current),Fa(t)){if(i=t.stateNode,n=t.memoizedProps,i[Ii]=t,(s=i.nodeValue!==n)&&(e=Ea,e!==null))switch(e.tag){case 3:Si(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Si(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Ii]=t,t.stateNode=i}return hc(t),null;case 13:if(B(wo),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Oa&&Da!==null&&t.mode&1&&!(t.flags&128))Ia(),La(),t.flags|=98560,s=!1;else if(s=Fa(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[Ii]=t}else La(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hc(t),s=!1}else ka!==null&&(Ol(ka),ka=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||wo.current&1?nl===0&&(nl=3):Rl())),t.updateQueue!==null&&(t.flags|=4),hc(t),null);case 4:return xo(),e===null&&fi(t.stateNode.containerInfo),hc(t),null;case 10:return Za(t.type._context),hc(t),null;case 17:return ta(t.type)&&na(),hc(t),null;case 19:if(B(wo),s=t.memoizedState,s===null)return hc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)mc(s,!1);else{if(nl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=To(e),c!==null){for(t.flags|=128,mc(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 Yi(wo,wo.current&1|2),t.child}e=e.sibling}s.tail!==null&&L()>ul&&(t.flags|=128,i=!0,mc(s,!1),t.lanes=4194304)}else{if(!i)if(e=To(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Oa)return hc(t),null}else 2*L()-s.renderingStartTime>ul&&n!==1073741824&&(t.flags|=128,i=!0,mc(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?(hc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=L(),t.sibling=null,n=wo.current,Yi(wo,i?n&1|2:n&1),t);case 22:case 23:return Pl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?el&1073741824&&(hc(t),t.subtreeFlags&6&&(t.flags|=8192)):hc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function _c(e,t){switch(Ta(t),t.tag){case 1:return ta(t.type)&&na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xo(),B(Qi),B(Zi),Do(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Co(t),null;case 13:if(B(wo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(wo),null;case 4:return xo(),null;case 10:return Za(t.type._context),null;case 22:case 23:return Pl(),null;case 24:return null;default:return null}}var vc=!1,yc=!1,bc=typeof WeakSet==`function`?WeakSet:Set,U=null;function xc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Jl(e,t,n)}else n.current=null}function Sc(e,t,n){try{n()}catch(n){Jl(e,t,n)}}var Cc=!1;function wc(e,t){if(wi=_n,e=Ir(),Lr(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(Ti={focusedElem:e,selectionRange:n},_n=!1,U=t;U!==null;)if(t=U,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;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:Ts(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){Jl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return h=Cc,Cc=!1,h}function Tc(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&&Sc(t,n,a)}i=i.next}while(i!==r)}}function Ec(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 Dc(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 Oc(e){var t=e.alternate;t!==null&&(e.alternate=null,Oc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ii],delete t[Li],delete t[zi],delete t[Bi],delete t[Vi])),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 kc(e){return e.tag===5||e.tag===3||e.tag===4}function Ac(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||kc(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 jc(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=Ci));else if(r!==4&&(e=e.child,e!==null))for(jc(e,t,n),e=e.sibling;e!==null;)jc(e,t,n),e=e.sibling}function Mc(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(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}var Nc=null,Pc=!1;function Fc(e,t,n){for(n=n.child;n!==null;)Ic(e,t,n),n=n.sibling}function Ic(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount==`function`)try{Et.onCommitFiberUnmount(Tt,n)}catch{}switch(n.tag){case 5:yc||xc(n,t);case 6:var r=Nc,i=Pc;Nc=null,Fc(e,t,n),Nc=r,Pc=i,Nc!==null&&(Pc?(e=Nc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nc.removeChild(n.stateNode));break;case 18:Nc!==null&&(Pc?(e=Nc,n=n.stateNode,e.nodeType===8?Mi(e.parentNode,n):e.nodeType===1&&Mi(e,n),hn(e)):Mi(Nc,n.stateNode));break;case 4:r=Nc,i=Pc,Nc=n.stateNode.containerInfo,Pc=!0,Fc(e,t,n),Nc=r,Pc=i;break;case 0:case 11:case 14:case 15:if(!yc&&(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)&&Sc(n,t,o),i=i.next}while(i!==r)}Fc(e,t,n);break;case 1:if(!yc&&(xc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Jl(n,t,e)}Fc(e,t,n);break;case 21:Fc(e,t,n);break;case 22:n.mode&1?(yc=(r=yc)||n.memoizedState!==null,Fc(e,t,n),yc=r):Fc(e,t,n);break;default:Fc(e,t,n)}}function Lc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bc),t.forEach(function(t){var r=Ql.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Rc(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:Nc=c.stateNode,Pc=!1;break a;case 3:Nc=c.stateNode.containerInfo,Pc=!0;break a;case 4:Nc=c.stateNode.containerInfo,Pc=!0;break a}c=c.return}if(Nc===null)throw Error(r(160));Ic(o,s,a),Nc=null,Pc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Jl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zc(t,e),t=t.sibling}function zc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rc(t,e),Bc(e),i&4){try{Tc(3,e,e.return),Ec(3,e)}catch(t){Jl(e,e.return,t)}try{Tc(5,e,e.return)}catch(t){Jl(e,e.return,t)}}break;case 1:Rc(t,e),Bc(e),i&512&&n!==null&&xc(n,n.return);break;case 5:if(Rc(t,e),Bc(e),i&512&&n!==null&&xc(n,n.return),e.flags&32){var a=e.stateNode;try{Ne(a,``)}catch(t){Jl(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&&ye(a,o),Be(c,s);var u=Be(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Le(a,f):d===`dangerouslySetInnerHTML`?Me(a,f):d===`children`?Ne(a,f):S(a,d,f,u)}switch(c){case`input`:be(a,o);break;case`textarea`:De(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?we(a,!!o.multiple,o.multiple?[]:``,!1):we(a,!!o.multiple,o.defaultValue,!0)):we(a,!!o.multiple,m,!1)}a[Li]=o}catch(t){Jl(e,e.return,t)}}break;case 6:if(Rc(t,e),Bc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Jl(e,e.return,t)}}break;case 3:if(Rc(t,e),Bc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{hn(t.containerInfo)}catch(t){Jl(e,e.return,t)}break;case 4:Rc(t,e),Bc(e);break;case 13:Rc(t,e),Bc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(ll=L())),i&4&&Lc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(yc=(u=yc)||d,Rc(t,e),yc=u):Rc(t,e),Bc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(U=e,d=e.child;d!==null;){for(f=U=d;U!==null;){switch(p=U,m=p.child,p.tag){case 0:case 11:case 14:case 15:Tc(4,p,p.return);break;case 1:xc(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){Jl(i,n,e)}}break;case 5:xc(p,p.return);break;case 22:if(p.memoizedState!==null){Wc(f);continue}}m===null?Wc(f):(m.return=p,U=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=Ie(`display`,s))}catch(t){Jl(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Jl(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:Rc(t,e),Bc(e),i&4&&Lc(e);break;case 21:break;default:Rc(t,e),Bc(e)}}function Bc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(kc(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&&(Ne(a,``),i.flags&=-33),Mc(e,Ac(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;jc(e,Ac(e),o);break;default:throw Error(r(161))}}catch(t){Jl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vc(e,t,n){U=e,Hc(e,t,n)}function Hc(e,t,n){for(var r=(e.mode&1)!=0;U!==null;){var i=U,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||vc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||yc;s=vc;var l=yc;if(vc=o,(yc=c)&&!l)for(U=i;U!==null;)o=U,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Gc(i):(c.return=o,U=c);for(;a!==null;)U=a,Hc(a,t,n),a=a.sibling;U=i,vc=s,yc=l}Uc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,U=a):Uc(e,t,n)}}function Uc(e){for(;U!==null;){var t=U;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:yc||Ec(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!yc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Ts(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&mo(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}mo(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&&hn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}yc||t.flags&512&&Dc(t)}catch(e){Jl(t,t.return,e)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function Wc(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function Gc(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ec(4,t)}catch(e){Jl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Jl(t,i,e)}}var a=t.return;try{Dc(t)}catch(e){Jl(t,a,e)}break;case 5:var o=t.return;try{Dc(t)}catch(e){Jl(t,o,e)}}}catch(e){Jl(t,t.return,e)}if(t===e){U=null;break}var s=t.sibling;if(s!==null){s.return=t.return,U=s;break}U=t.return}}var Kc=Math.ceil,qc=C.ReactCurrentDispatcher,Jc=C.ReactCurrentOwner,Yc=C.ReactCurrentBatchConfig,Xc=0,Zc=null,Qc=null,$c=0,el=0,tl=Ji(0),nl=0,rl=null,il=0,al=0,ol=0,sl=null,cl=null,ll=0,ul=1/0,dl=null,fl=!1,pl=null,ml=null,hl=!1,gl=null,_l=0,vl=0,yl=null,bl=-1,xl=0;function Sl(){return Xc&6?L():bl===-1?bl=L():bl}function Cl(e){return e.mode&1?Xc&2&&$c!==0?$c&-$c:za.transition===null?(e=Wt,e===0?(e=window.event,e=e===void 0?16:Cn(e.type),e):e):(xl===0&&(xl=zt()),xl):1}function wl(e,t,n,i){if(50<vl)throw vl=0,yl=null,Error(r(185));Vt(e,n,i),(!(Xc&2)||e!==Zc)&&(e===Zc&&(!(Xc&2)&&(al|=n),nl===4&&Al(e,$c)),Tl(e,i),n===1&&Xc===0&&!(t.mode&1)&&(ul=L()+500,ca&&fa()))}function Tl(e,t){var n=e.callbackNode;Lt(e,t);var r=Ft(e,e===Zc?$c:0);if(r===0)n!==null&>(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&>(n),t===1)e.tag===0?da(jl.bind(null,e)):ua(jl.bind(null,e)),Ai(function(){!(Xc&6)&&fa()}),n=null;else{switch(Gt(r)){case 1:n=bt;break;case 4:n=xt;break;case 16:n=St;break;case 536870912:n=wt;break;default:n=St}n=eu(n,El.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function El(e,t){if(bl=-1,xl=0,Xc&6)throw Error(r(327));var n=e.callbackNode;if(Kl()&&e.callbackNode!==n)return null;var i=Ft(e,e===Zc?$c:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=zl(e,i);else{t=i;var a=Xc;Xc|=2;var o=Ll();(Zc!==e||$c!==t)&&(dl=null,ul=L()+500,Fl(e,t));do try{Vl();break}catch(t){Il(e,t)}while(1);Xa(),qc.current=o,Xc=a,Qc===null?(Zc=null,$c=0,t=nl):t=0}if(t!==0){if(t===2&&(a=Rt(e),a!==0&&(i=a,t=Dl(e,a))),t===1)throw n=rl,Fl(e,0),Al(e,i),Tl(e,L()),n;if(t===6)Al(e,i);else{if(a=e.current.alternate,!(i&30)&&!kl(a)&&(t=zl(e,i),t===2&&(o=Rt(e),o!==0&&(i=o,t=Dl(e,o))),t===1))throw n=rl,Fl(e,0),Al(e,i),Tl(e,L()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Wl(e,cl,dl);break;case 3:if(Al(e,i),(i&130023424)===i&&(t=ll+500-L(),10<t)){if(Ft(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Sl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Di(Wl.bind(null,e,cl,dl),t);break}Wl(e,cl,dl);break;case 4:if(Al(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Ot(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=L()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Kc(i/1960))-i,10<i){e.timeoutHandle=Di(Wl.bind(null,e,cl,dl),i);break}Wl(e,cl,dl);break;case 5:Wl(e,cl,dl);break;default:throw Error(r(329))}}}return Tl(e,L()),e.callbackNode===n?El.bind(null,e):null}function Dl(e,t){var n=sl;return e.current.memoizedState.isDehydrated&&(Fl(e,t).flags|=256),e=zl(e,t),e!==2&&(t=cl,cl=n,t!==null&&Ol(t)),e}function Ol(e){cl===null?cl=e:cl.push.apply(cl,e)}function kl(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(!jr(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 Al(e,t){for(t&=~ol,t&=~al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ot(t),r=1<<n;e[n]=-1,t&=~r}}function jl(e){if(Xc&6)throw Error(r(327));Kl();var t=Ft(e,0);if(!(t&1))return Tl(e,L()),null;var n=zl(e,t);if(e.tag!==0&&n===2){var i=Rt(e);i!==0&&(t=i,n=Dl(e,i))}if(n===1)throw n=rl,Fl(e,0),Al(e,t),Tl(e,L()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wl(e,cl,dl),Tl(e,L()),null}function Ml(e,t){var n=Xc;Xc|=1;try{return e(t)}finally{Xc=n,Xc===0&&(ul=L()+500,ca&&fa())}}function Nl(e){gl!==null&&gl.tag===0&&!(Xc&6)&&Kl();var t=Xc;Xc|=1;var n=Yc.transition,r=Wt;try{if(Yc.transition=null,Wt=1,e)return e()}finally{Wt=r,Yc.transition=n,Xc=t,!(Xc&6)&&fa()}}function Pl(){el=tl.current,B(tl)}function Fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Oi(n)),Qc!==null)for(n=Qc.return;n!==null;){var r=n;switch(Ta(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&na();break;case 3:xo(),B(Qi),B(Zi),Do();break;case 5:Co(r);break;case 4:xo();break;case 13:B(wo);break;case 19:B(wo);break;case 10:Za(r.type._context);break;case 22:case 23:Pl()}n=n.return}if(Zc=e,Qc=e=au(e.current,null),$c=el=t,nl=0,rl=null,ol=al=il=0,cl=sl=null,to!==null){for(t=0;t<to.length;t++)if(n=to[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}to=null}return e}function Il(e,t){do{var n=Qc;try{if(Xa(),Oo.current=xs,Po){for(var i=jo.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Po=!1}if(Ao=0,No=Mo=jo=null,Fo=!1,Io=0,Jc.current=null,n===null||n.return===null){nl=1,rl=t,Qc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=$c,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=Rs(s);if(m!==null){m.flags&=-257,zs(m,s,c,o,t),m.mode&1&&Ls(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)){Ls(o,u,t),Rl();break a}l=Error(r(426))}}else if(Oa&&c.mode&1){var _=Rs(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),zs(_,s,c,o,t),Ra(Ms(l,c));break a}}o=l=Ms(l,c),nl!==4&&(nl=2),sl===null?sl=[o]:sl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Fs(o,l,t);fo(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`&&(ml===null||!ml.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Is(o,c,t);fo(o,x);break a}}o=o.return}while(o!==null)}Ul(n)}catch(e){t=e,Qc===n&&n!==null&&(Qc=n=n.return);continue}break}while(1)}function Ll(){var e=qc.current;return qc.current=xs,e===null?xs:e}function Rl(){(nl===0||nl===3||nl===2)&&(nl=4),Zc===null||!(il&268435455)&&!(al&268435455)||Al(Zc,$c)}function zl(e,t){var n=Xc;Xc|=2;var i=Ll();(Zc!==e||$c!==t)&&(dl=null,Fl(e,t));do try{Bl();break}catch(t){Il(e,t)}while(1);if(Xa(),Xc=n,qc.current=i,Qc!==null)throw Error(r(261));return Zc=null,$c=0,nl}function Bl(){for(;Qc!==null;)Hl(Qc)}function Vl(){for(;Qc!==null&&!_t();)Hl(Qc)}function Hl(e){var t=$l(e.alternate,e,el);e.memoizedProps=e.pendingProps,t===null?Ul(e):Qc=t,Jc.current=null}function Ul(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=_c(n,t),n!==null){n.flags&=32767,Qc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{nl=6,Qc=null;return}}else if(n=gc(n,t,el),n!==null){Qc=n;return}if(t=t.sibling,t!==null){Qc=t;return}Qc=t=e}while(t!==null);nl===0&&(nl=5)}function Wl(e,t,n){var r=Wt,i=Yc.transition;try{Yc.transition=null,Wt=1,Gl(e,t,n,r)}finally{Yc.transition=i,Wt=r}return null}function Gl(e,t,n,i){do Kl();while(gl!==null);if(Xc&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(Ht(e,o),e===Zc&&(Qc=Zc=null,$c=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||hl||(hl=!0,eu(St,function(){return Kl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Yc.transition,Yc.transition=null;var s=Wt;Wt=1;var c=Xc;Xc|=4,Jc.current=null,wc(e,n),zc(n,e),Rr(Ti),_n=!!wi,Ti=wi=null,e.current=n,Vc(n,e,a),vt(),Xc=c,Wt=s,Yc.transition=o}else e.current=n;if(hl&&(hl=!1,gl=e,_l=a),o=e.pendingLanes,o===0&&(ml=null),Dt(n.stateNode,i),Tl(e,L()),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(fl)throw fl=!1,e=pl,pl=null,e;return _l&1&&e.tag!==0&&Kl(),o=e.pendingLanes,o&1?e===yl?vl++:(vl=0,yl=e):vl=0,fa(),null}function Kl(){if(gl!==null){var e=Gt(_l),t=Yc.transition,n=Wt;try{if(Yc.transition=null,Wt=16>e?16:e,gl===null)var i=!1;else{if(e=gl,gl=null,_l=0,Xc&6)throw Error(r(331));var a=Xc;for(Xc|=4,U=e.current;U!==null;){var o=U,s=o.child;if(U.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(U=u;U!==null;){var d=U;switch(d.tag){case 0:case 11:case 15:Tc(8,d,o)}var f=d.child;if(f!==null)f.return=d,U=f;else for(;U!==null;){d=U;var p=d.sibling,m=d.return;if(Oc(d),d===u){U=null;break}if(p!==null){p.return=m,U=p;break}U=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)}}U=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,U=s;else b:for(;U!==null;){if(o=U,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Tc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,U=v;break b}U=o.return}}var y=e.current;for(U=y;U!==null;){s=U;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,U=b;else b:for(s=y;U!==null;){if(c=U,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Ec(9,c)}}catch(e){Jl(c,c.return,e)}if(c===s){U=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,U=x;break b}U=c.return}}if(Xc=a,fa(),Et&&typeof Et.onPostCommitFiberRoot==`function`)try{Et.onPostCommitFiberRoot(Tt,e)}catch{}i=!0}return i}finally{Wt=n,Yc.transition=t}}return!1}function ql(e,t,n){t=Ms(n,t),t=Fs(e,t,1),e=lo(e,t,1),t=Sl(),e!==null&&(Vt(e,1,t),Tl(e,t))}function Jl(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`&&(ml===null||!ml.has(r))){e=Ms(n,e),e=Is(t,e,1),t=lo(t,e,1),e=Sl(),t!==null&&(Vt(t,1,e),Tl(t,e));break}}t=t.return}}function Yl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Sl(),e.pingedLanes|=e.suspendedLanes&n,Zc===e&&($c&n)===n&&(nl===4||nl===3&&($c&130023424)===$c&&500>L()-ll?Fl(e,0):ol|=n),Tl(e,t)}function Xl(e,t){t===0&&(e.mode&1?(t=Nt,Nt<<=1,!(Nt&130023424)&&(Nt=4194304)):t=1);var n=Sl();e=io(e,t),e!==null&&(Vt(e,t,n),Tl(e,n))}function Zl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xl(e,n)}function Ql(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),Xl(e,n)}var $l=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qi.current)Vs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Vs=!1,uc(e,t,n);Vs=!!(e.flags&131072)}else Vs=!1,Oa&&t.flags&1048576&&Ca(t,ga,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;cc(e,t),e=t.pendingProps;var a=ea(t,Zi.current);$a(t,n),a=Bo(null,t,i,e,a,n);var o=Vo();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,ta(i)?(o=!0,aa(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,oo(t),a.updater=Ds,t.stateNode=a,a._reactInternals=t,js(t,i,e,n),t=Xs(null,t,i,!0,o,n)):(t.tag=0,Oa&&o&&wa(t),Hs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(cc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=iu(i),e=Ts(i,e),a){case 0:t=Js(null,t,i,e,n);break a;case 1:t=Ys(null,t,i,e,n);break a;case 11:t=Us(null,t,i,e,n);break a;case 14:t=Ws(null,t,i,Ts(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:Ts(i,a),Js(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(i,a),Ys(e,t,i,a,n);case 3:a:{if(Zs(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,so(e,t),po(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=Ms(Error(r(423)),t),t=Qs(e,t,i,n,a);break a}else if(i!==a){a=Ms(Error(r(424)),t),t=Qs(e,t,i,n,a);break a}else for(Da=Ni(t.stateNode.containerInfo.firstChild),Ea=t,Oa=!0,ka=null,n=Ga(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(La(),i===a){t=lc(e,t,n);break a}Hs(e,t,i,n)}t=t.child}return t;case 5:return So(t),e===null&&Na(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ei(i,a)?s=null:o!==null&&Ei(i,o)&&(t.flags|=32),qs(e,t),Hs(e,t,s,n),t.child;case 6:return e===null&&Na(t),null;case 13:return tc(e,t,n);case 4:return bo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Wa(t,null,i,n):Hs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(i,a),Us(e,t,i,a,n);case 7:return Hs(e,t,t.pendingProps,n),t.child;case 8:return Hs(e,t,t.pendingProps.children,n),t.child;case 12:return Hs(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,Yi(Ka,i._currentValue),i._currentValue=s,o!==null)if(jr(o.value,s)){if(o.children===a.children&&!Qi.current){t=lc(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=co(-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),Qa(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),Qa(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}Hs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,$a(t,n),a=eo(a),i=i(a),t.flags|=1,Hs(e,t,i,n),t.child;case 14:return i=t.type,a=Ts(i,t.pendingProps),a=Ts(i.type,a),Ws(e,t,i,a,n);case 15:return Gs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(i,a),cc(e,t),t.tag=1,ta(i)?(e=!0,aa(t)):e=!1,$a(t,n),ks(t,i,a),js(t,i,a,n),Xs(null,t,i,!0,e,n);case 19:return sc(e,t,n);case 22:return Ks(e,t,n)}throw Error(r(156,t.tag))};function eu(e,t){return ht(e,t)}function tu(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 nu(e,t,n,r){return new tu(e,t,n,r)}function ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function iu(e){if(typeof e==`function`)return+!!ru(e);if(e!=null){if(e=e.$$typeof,e===A)return 11;if(e===M)return 14}return 2}function au(e,t){var n=e.alternate;return n===null?(n=nu(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 ou(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ru(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return su(n.children,a,o,t);case D:s=8,a|=8;break;case O:return e=nu(12,n,t,a|2),e.elementType=O,e.lanes=o,e;case j:return e=nu(13,n,t,a),e.elementType=j,e.lanes=o,e;case te:return e=nu(19,n,t,a),e.elementType=te,e.lanes=o,e;case N:return cu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case ee:s=10;break a;case k:s=9;break a;case A:s=11;break a;case M:s=14;break a;case ne:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=nu(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function su(e,t,n,r){return e=nu(7,e,r,t),e.lanes=n,e}function cu(e,t,n,r){return e=nu(22,e,r,t),e.elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function lu(e,t,n){return e=nu(6,e,null,t),e.lanes=n,e}function uu(e,t,n){return t=nu(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function du(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=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function fu(e,t,n,r,i,a,o,s,c){return e=new du(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=nu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},oo(a),e}function pu(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 mu(e){if(!e)return Xi;e=e._reactInternals;a:{if(lt(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(ta(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(ta(n))return ia(e,n,t)}return t}function hu(e,t,n,r,i,a,o,s,c){return e=fu(n,r,!0,e,i,a,o,s,c),e.context=mu(null),n=e.current,r=Sl(),i=Cl(n),a=co(r,i),a.callback=t??null,lo(n,a,i),e.current.lanes=i,Vt(e,i,r),Tl(e,r),e}function gu(e,t,n,r){var i=t.current,a=Sl(),o=Cl(i);return n=mu(n),t.context===null?t.context=n:t.pendingContext=n,t=co(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=lo(i,t,o),e!==null&&(wl(e,i,o,a),uo(e,i,o)),o}function _u(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 vu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yu(e,t){vu(e,t),(e=e.alternate)&&vu(e,t)}function bu(){return null}var xu=typeof reportError==`function`?reportError:function(e){console.error(e)};function Su(e){this._internalRoot=e}Cu.prototype.render=Su.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));gu(e,t,null,null)},Cu.prototype.unmount=Su.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nl(function(){gu(null,e,null,null)}),t[Ri]=null}};function Cu(e){this._internalRoot=e}Cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<an.length&&t!==0&&t<an[n].priority;n++);an.splice(n,0,e),n===0&&un(e)}};function wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Tu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Eu(){}function Du(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=_u(o);a.call(e)}}var o=hu(t,r,e,0,null,!1,!1,``,Eu);return e._reactRootContainer=o,e[Ri]=o.current,fi(e.nodeType===8?e.parentNode:e),Nl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=_u(c);s.call(e)}}var c=fu(e,0,!1,null,null,!1,!1,``,Eu);return e._reactRootContainer=c,e[Ri]=c.current,fi(e.nodeType===8?e.parentNode:e),Nl(function(){gu(t,c,n,r)}),c}function Ou(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=_u(o);s.call(e)}}gu(t,o,e,i)}else o=Du(n,t,e,i,r);return _u(o)}Kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pt(t.pendingLanes);n!==0&&(Ut(t,n|1),Tl(t,L()),!(Xc&6)&&(ul=L()+500,fa()))}break;case 13:Nl(function(){var t=io(e,1);t!==null&&wl(t,e,1,Sl())}),yu(e,1)}},qt=function(e){if(e.tag===13){var t=io(e,134217728);t!==null&&wl(t,e,134217728,Sl()),yu(e,134217728)}},Jt=function(e){if(e.tag===13){var t=Cl(e),n=io(e,t);n!==null&&wl(n,e,t,Sl()),yu(e,t)}},Yt=function(){return Wt},Xt=function(e,t){var n=Wt;try{return Wt=e,t()}finally{Wt=n}},Ue=function(e,t,n){switch(t){case`input`:if(be(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=Gi(i);if(!a)throw Error(r(90));ge(i),be(i,a)}}}break;case`textarea`:De(e,n);break;case`select`:t=n.value,t!=null&&we(e,!!n.multiple,t,!1)}},Ye=Ml,Xe=Nl;var ku={usingClientEntryPoint:!1,Events:[Ui,Wi,Gi,qe,Je,Ml]},Au={findFiberByHostInstance:Hi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},ju={bundleType:Au.bundleType,version:Au.version,rendererPackageName:Au.rendererPackageName,rendererConfig:Au.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=pt(e),e===null?null:e.stateNode},findFiberByHostInstance:Au.findFiberByHostInstance||bu,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 Mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mu.isDisabled&&Mu.supportsFiber)try{Tt=Mu.inject(ju),Et=Mu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ku,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wu(t))throw Error(r(200));return pu(e,t,null,n)},e.createRoot=function(e,t){if(!wu(e))throw Error(r(299));var n=!1,i=``,a=xu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=fu(e,1,!1,null,null,n,!1,i,a),e[Ri]=t.current,fi(e.nodeType===8?e.parentNode:e),new Su(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=pt(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Nl(e)},e.hydrate=function(e,t,n){if(!Tu(t))throw Error(r(200));return Ou(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!wu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=xu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=hu(t,null,e,1,n??null,a,!1,o,s),e[Ri]=t.current,fi(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 Cu(t)},e.render=function(e,t,n){if(!Tu(t))throw Error(r(200));return Ou(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Tu(e))throw Error(r(40));return e._reactRootContainer?(Nl(function(){Ou(null,null,e,!1,function(){e._reactRootContainer=null,e[Ri]=null})}),!0):!1},e.unstable_batchedUpdates=Ml,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Tu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Ou(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})),_=()=>{};function v(){let e=function(){};return e.enabled=!1,e.log=_,e.extend=()=>e,e.destroy=_,e}v.log=_,v.enable=_,v.disable=()=>``,v.enabled=()=>!1;var y=`commitPendingSession`,b=new WeakMap;function x(e,t){let n=b.get(e);n||(n=new Set,b.set(e,n)),n.add(t)}function S(e){return Object.getOwnPropertyDescriptor(e,y)!==void 0}function C(e){if(S(e))return;let t=e[y];Object.defineProperty(e,y,{value:()=>{if(typeof t==`function`)try{t.call(e)}catch{}T(e)},configurable:!0,enumerable:!1,writable:!0})}function w(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 x(e,d),C(e),d}function T(e){let t=b.get(e);if(t)for(let e of[...t])e.flush()}var E=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}},D=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}},O={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`}},ee={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`}},k=e=>typeof e==`string`,A=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},j=e=>e==null?``:``+e,te=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},M=/###/g,ne=e=>e&&e.indexOf(`###`)>-1?e.replace(M,`.`):e,N=e=>!e||k(e),re=(e,t,n)=>{let r=k(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(N(e))return{};let t=ne(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return N(e)?{}:{obj:e,k:ne(r[i])}},ie=(e,t,n)=>{let{obj:r,k:i}=re(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=re(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=re(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},ae=(e,t,n,r)=>{let{obj:i,k:a}=re(e,t,Object);i[a]=i[a]||[],i[a].push(n)},oe=(e,t)=>{let{obj:n,k:r}=re(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},se=(e,t,n)=>{let r=oe(e,n);return r===void 0?oe(t,n):r},ce=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?k(e[r])||e[r]instanceof String||k(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ce(e[r],t[r],n):e[r]=t[r]);return e},le=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),ue={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},de=e=>k(e)?e.replace(/[&<>"'\/]/g,e=>ue[e]):e,fe=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}},pe=[` `,`,`,`?`,`!`,`;`],me=new fe(20),he=(e,t,n)=>{t||=``,n||=``;let r=pe.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=me.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},P=(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},ge=e=>e?.replace(/_/g,`-`),F={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)}},_e=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||F,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:(k(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)}},ve=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])})}},ye=class extends ve{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):k(n)&&i?o.push(...n.split(i)):o.push(n)));let s=oe(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!k(n)?s:P(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),ie(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)(k(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=oe(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?ce(s,n,i):s={...s,...n},ie(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}},be={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}},xe=Symbol(`i18next/PATH_KEY`);function Se(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===xe?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Ce(e,t){let{[xe]:n}=e(Se()),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 we={},Te=e=>!k(e)&&typeof e!=`boolean`&&typeof e!=`number`,Ee=class e extends ve{constructor(e,t={}){super(),te([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=_e.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=Te(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&&!he(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:k(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:k(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=Ce(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?Ce(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&&!k(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=Te(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(k(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:Te(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&&k(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=k(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&&!k(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=k(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=be.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 k(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?Ce(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&&!k(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(k(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,!we[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(we[`${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&&!k(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}},De=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_e.create(`languageUtils`)}getScriptPartFromCode(e){if(e=ge(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=ge(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(k(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)),k(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 k(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))):k(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},Oe={zero:0,one:1,two:2,few:3,many:4,other:5},ke={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},Ae=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=_e.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=ge(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!`),ke;if(!e.match(/-|_/))return ke;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)=>Oe[e]-Oe[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))}},je=(e,t,n,r=`.`,i=!0)=>{let a=se(e,t,n);return!a&&i&&k(n)&&(a=P(e,n,r),a===void 0&&(a=P(t,n,r))),a},Me=e=>e.replace(/\$/g,`$$$$`),Ne=class{constructor(e={}){this.logger=_e.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?de:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?le(i):a||`{{`,this.suffix=o?le(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?le(d):f||le(`$t(`),this.nestingSuffix=p?le(p):m||le(`)`),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=je(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(je(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=>Me(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Me(this.escape(e)):Me(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=k(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!k(a)&&!this.useRawValueToEscape&&(a=j(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(`${le(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&&!k(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&&!k(i))return i;k(i)||(i=j(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}},Pe=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}},Fe=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(ge(r),i),t[o]=s),s(n)}},Ie=e=>(t,n,r)=>e(ge(n),r)(t),Le=class{constructor(e={}){this.logger=_e.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Fe:Ie;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()]=Fe(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}=Pe(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)}},Re=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},ze=class extends ve{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=_e.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=>{ae(n.loaded,[i],a),Re(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();k(e)&&(e=this.languageUtils.toResolveHierarchy(e)),k(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)}}},Be=()=>({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]),k(e[1])&&(t.defaultValue=e[1]),k(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}),Ve=e=>(k(e.ns)&&(e.ns=[e.ns]),k(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),k(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),He=()=>{},Ue=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},We=`__i18next_supportNoticeShown`,Ge=()=>!!(typeof globalThis<`u`&&globalThis[We]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),Ke=()=>{typeof globalThis<`u`&&(globalThis[We]=!0)},qe=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)),Je=class e extends ve{constructor(e={},t){if(super(),this.options=Ve(e),this.services={},this.logger=_e,this.modules={external:[]},Ue(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&&(k(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=Be();this.options={...n,...this.options,...Ve(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&&!qe(this)&&!Ge()&&(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 💙`),Ke());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?_e.init(r(this.modules.logger),this.options):_e.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Le;let t=new De(this.options);this.store=new ye(this.options.resources,this.options);let i=this.services;i.logger=_e,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new Ae(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 Ne(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new ze(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 Ee(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||=He,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=A(),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=He){let n=t,r=k(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=A();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||=He,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`&&be.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=A();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=k(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(k(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=Ce(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=Ce(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=Ce(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return k(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=A();return this.options.ns?(k(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=A();k(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 De(Be());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=He){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 ye(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={...Be().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new Ne(n)}return a.translator=new Ee(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();Je.createInstance,Je.dir,Je.init,Je.loadResources,Je.reloadResources,Je.use,Je.changeLanguage,Je.getFixedT,Je.t,Je.exists,Je.setDefaultNamespace,Je.hasLoadedNamespace,Je.loadNamespaces,Je.loadLanguages,Je.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:O,es:ee}});var Ye={translator:{...Je,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 Je.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},Xe=function(){return null};Xe.isRequired=Xe;var Ze=()=>Xe,I={array:Xe,bigint:Xe,bool:Xe,func:Xe,number:Xe,object:Xe,string:Xe,symbol:Xe,any:Xe,element:Xe,elementType:Xe,node:Xe,arrayOf:Ze,instanceOf:Ze,objectOf:Ze,oneOf:Ze,oneOfType:Ze,shape:Ze,exact:Ze,checkPropTypes:()=>{},resetWarningCache:()=>{}};I.PropTypes=I;function Qe(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 $e=`$$material`;function et(){return et=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},et.apply(null,arguments)}function tt(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 nt(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 rt=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(nt(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=tt(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}(),it=`-ms-`,at=`-moz-`,ot=`-webkit-`,st=`comm`,ct=`rule`,lt=`decl`,ut=`@import`,dt=`@keyframes`,ft=`@layer`,pt=Math.abs,mt=String.fromCharCode,ht=Object.assign;function gt(e,t){return bt(e,0)^45?(((t<<2^bt(e,0))<<2^bt(e,1))<<2^bt(e,2))<<2^bt(e,3):0}function _t(e){return e.trim()}function vt(e,t){return(e=t.exec(e))?e[0]:e}function L(e,t,n){return e.replace(t,n)}function yt(e,t){return e.indexOf(t)}function bt(e,t){return e.charCodeAt(t)|0}function xt(e,t,n){return e.slice(t,n)}function St(e){return e.length}function Ct(e){return e.length}function wt(e,t){return t.push(e),e}function Tt(e,t){return e.map(t).join(``)}var Et=1,Dt=1,Ot=0,kt=0,At=0,jt=``;function Mt(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Et,column:Dt,length:o,return:``}}function Nt(e,t){return ht(Mt(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Pt(){return At}function Ft(){return At=kt>0?bt(jt,--kt):0,Dt--,At===10&&(Dt=1,Et--),At}function It(){return At=kt<Ot?bt(jt,kt++):0,Dt++,At===10&&(Dt=1,Et++),At}function Lt(){return bt(jt,kt)}function Rt(){return kt}function zt(e,t){return xt(jt,e,t)}function Bt(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 Vt(e){return Et=Dt=1,Ot=St(jt=e),kt=0,[]}function Ht(e){return jt=``,e}function Ut(e){return _t(zt(kt-1,Kt(e===91?e+2:e===40?e+1:e)))}function Wt(e){for(;(At=Lt())&&At<33;)It();return Bt(e)>2||Bt(At)>3?``:` `}function Gt(e,t){for(;--t&&It()&&!(At<48||At>102||At>57&&At<65||At>70&&At<97););return zt(e,Rt()+(t<6&&Lt()==32&&It()==32))}function Kt(e){for(;It();)switch(At){case e:return kt;case 34:case 39:e!==34&&e!==39&&Kt(At);break;case 40:e===41&&Kt(e);break;case 92:It();break}return kt}function qt(e,t){for(;It()&&e+At!==57&&!(e+At===84&&Lt()===47););return`/*`+zt(t,kt-1)+`*`+mt(e===47?e:It())}function Jt(e){for(;!Bt(Lt());)It();return zt(e,kt)}function Yt(e){return Ht(Xt(``,null,null,null,[``],e=Vt(e),0,[0],e))}function Xt(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=It()){case 40:if(m!=108&&bt(C,d-1)==58){yt(C+=L(Ut(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Ut(v);break;case 9:case 10:case 13:case 32:C+=Wt(m);break;case 92:C+=Gt(Rt()-1,7);continue;case 47:switch(Lt()){case 42:case 47:wt(Qt(qt(It(),Rt()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=St(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=L(C,/\f/g,``)),p>0&&St(C)-d&&wt(p>32?$t(C+`;`,r,n,d-1):$t(L(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(wt(S=Zt(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Xt(C,t,S,S,b,a,d,s,x);else switch(f===99&&bt(C,3)===110?100:f){case 100:case 108:case 109:case 115:Xt(e,S,S,r&&wt(Zt(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Xt(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+St(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Ft()==125)continue}switch(C+=mt(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(St(C)-1)*_,_=1;break;case 64:Lt()===45&&(C+=Ut(It())),f=Lt(),u=d=St(y=C+=Jt(Rt())),v++;break;case 45:m===45&&St(C)==2&&(h=0)}}return a}function Zt(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=Ct(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=xt(e,d+1,d=pt(h=o[m])),y=e;_<p;++_)(y=_t(h>0?f[_]+` `+v:L(v,/&\f/g,f[_])))&&(c[g++]=y);return Mt(e,t,n,i===0?ct:s,c,l,u)}function Qt(e,t,n){return Mt(e,t,n,st,mt(Pt()),xt(e,2,-2),0)}function $t(e,t,n,r){return Mt(e,t,n,lt,xt(e,0,r),xt(e,r+1,-1),r)}function en(e,t){for(var n=``,r=Ct(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function tn(e,t,n,r){switch(e.type){case ft:if(e.children.length)break;case ut:case lt:return e.return=e.return||e.value;case st:return``;case dt:return e.return=e.value+`{`+en(e.children,r)+`}`;case ct:e.value=e.props.join(`,`)}return St(n=en(e.children,r))?e.return=e.value+`{`+n+`}`:``}function nn(e){var t=Ct(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 rn(e){return function(t){t.root||(t=t.return)&&e(t)}}function an(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var on=function(e,t,n){for(var r=0,i=0;r=i,i=Lt(),r===38&&i===12&&(t[n]=1),!Bt(i);)It();return zt(e,kt)},sn=function(e,t){var n=-1,r=44;do switch(Bt(r)){case 0:r===38&&Lt()===12&&(t[n]=1),e[n]+=on(kt-1,t,n);break;case 2:e[n]+=Ut(r);break;case 4:if(r===44){e[++n]=Lt()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=mt(r)}while(r=It());return e},cn=function(e,t){return Ht(sn(Vt(e),t))},ln=new WeakMap,un=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&&!ln.get(n))&&!r){ln.set(e,!0);for(var i=[],a=cn(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]}}},dn=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function fn(e,t){switch(gt(e,t)){case 5103:return ot+`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 ot+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ot+e+at+e+it+e+e;case 6828:case 4268:return ot+e+it+e+e;case 6165:return ot+e+it+`flex-`+e+e;case 5187:return ot+e+L(e,/(\w+).+(:[^]+)/,ot+`box-$1$2`+it+`flex-$1$2`)+e;case 5443:return ot+e+it+`flex-item-`+L(e,/flex-|-self/,``)+e;case 4675:return ot+e+it+`flex-line-pack`+L(e,/align-content|flex-|-self/,``)+e;case 5548:return ot+e+it+L(e,`shrink`,`negative`)+e;case 5292:return ot+e+it+L(e,`basis`,`preferred-size`)+e;case 6060:return ot+`box-`+L(e,`-grow`,``)+ot+e+it+L(e,`grow`,`positive`)+e;case 4554:return ot+L(e,/([^-])(transform)/g,`$1`+ot+`$2`)+e;case 6187:return L(L(L(e,/(zoom-|grab)/,ot+`$1`),/(image-set)/,ot+`$1`),e,``)+e;case 5495:case 3959:return L(e,/(image-set\([^]*)/,ot+"$1$`$1");case 4968:return L(L(e,/(.+:)(flex-)?(.*)/,ot+`box-pack:$3`+it+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+ot+e+e;case 4095:case 3583:case 4068:case 2532:return L(e,/(.+)-inline(.+)/,ot+`$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(St(e)-1-t>6)switch(bt(e,t+1)){case 109:if(bt(e,t+4)!==45)break;case 102:return L(e,/(.+:)(.+)-([^]+)/,`$1`+ot+`$2-$3$1`+at+(bt(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~yt(e,`stretch`)?fn(L(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(bt(e,t+1)!==115)break;case 6444:switch(bt(e,St(e)-3-(~yt(e,`!important`)&&10))){case 107:return L(e,`:`,`:`+ot)+e;case 101:return L(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+ot+(bt(e,14)===45?`inline-`:``)+`box$3$1`+ot+`$2$3$1`+it+`$2box$3`)+e}break;case 5936:switch(bt(e,t+11)){case 114:return ot+e+it+L(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return ot+e+it+L(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return ot+e+it+L(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return ot+e+it+e+e}return e}var pn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case lt:e.return=fn(e.value,e.length);break;case dt:return en([Nt(e,{value:L(e.value,`@`,`@`+ot)})],r);case ct:if(e.length)return Tt(e.props,function(t){switch(vt(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return en([Nt(e,{props:[L(t,/:(read-\w+)/,`:`+at+`$1`)]})],r);case`::placeholder`:return en([Nt(e,{props:[L(t,/:(plac\w+)/,`:`+ot+`input-$1`)]}),Nt(e,{props:[L(t,/:(plac\w+)/,`:`+at+`$1`)]}),Nt(e,{props:[L(t,/:(plac\w+)/,it+`input-$1`)]})],r)}return``})}}],mn=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||pn,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=[un,dn],l,u=[tn,rn(function(e){l.insert(e)})],d=nn(c.concat(r,u)),f=function(e){return en(Yt(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 rt({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},hn=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})),gn=o(((e,t)=>{t.exports=hn()})),_n=o(((e,t)=>{var n=gn(),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 vn(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var yn=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},bn=function(e,t,n){yn(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 xn(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 Sn={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},Cn=/[A-Z]|^ms/g,wn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tn=function(e){return e.charCodeAt(1)===45},En=function(e){return e!=null&&typeof e!=`boolean`},Dn=an(function(e){return Tn(e)?e:e.replace(Cn,`-$&`).toLowerCase()}),On=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(wn,function(e,t,n){return Mn={name:t,styles:n,next:Mn},t})}return Sn[e]!==1&&!Tn(e)&&typeof t==`number`&&t!==0?t+`px`:t};function kn(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 Mn={name:i.name,styles:i.styles,next:Mn},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Mn={name:o.name,styles:o.styles,next:Mn},o=o.next;return a.styles+`;`}return An(e,t,n);case`function`:if(e!==void 0){var s=Mn,c=n(e);return Mn=s,kn(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function An(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=kn(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]+`}`:En(s)&&(r+=Dn(a)+`:`+On(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++)En(o[c])&&(r+=Dn(a)+`:`+On(a,o[c])+`;`);else{var l=kn(e,t,o);switch(a){case`animation`:case`animationName`:r+=Dn(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var jn=/label:\s*([^\s;{]+)\s*(;|$)/g,Mn;function Nn(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=``;Mn=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=kn(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=kn(n,t,e[o]),r&&(i+=a[o]);jn.lastIndex=0;for(var s=``,c;(c=jn.exec(i))!==null;)s+=`-`+c[1];return{name:xn(i)+s,styles:i,next:Mn}}var R=l(d()),Pn=function(e){return e()},Fn=R.useInsertionEffect?R.useInsertionEffect:!1,In=Fn||Pn,Ln=Fn||R.useLayoutEffect,Rn=R.createContext(typeof HTMLElement<`u`?mn({key:`css`}):null),zn=Rn.Provider,Bn=function(e){return(0,R.forwardRef)(function(t,n){return e(t,(0,R.useContext)(Rn),n)})},Vn=R.createContext({}),Hn={}.hasOwnProperty,Un=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Wn=function(e,t){var n={};for(var r in t)Hn.call(t,r)&&(n[r]=t[r]);return n[Un]=e,n},Gn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return yn(t,n,r),In(function(){return bn(t,n,r)}),null},Kn=Bn(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Un],a=[r],o=``;typeof e.className==`string`?o=vn(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Nn(a,void 0,R.useContext(Vn));o+=t.key+`-`+s.name;var c={};for(var l in e)Hn.call(e,l)&&l!==`css`&&l!==Un&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),R.createElement(R.Fragment,null,R.createElement(Gn,{cache:t,serialized:s,isStringTag:typeof i==`string`}),R.createElement(i,c))});_n();var qn=function(e,t){var n=arguments;if(t==null||!Hn.call(t,`css`))return R.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Kn,i[1]=Wn(e,t);for(var a=2;a<r;a++)i[a]=n[a];return R.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(qn||={});var Jn=Bn(function(e,t){var n=e.styles,r=Nn([n],void 0,R.useContext(Vn)),i=R.useRef();return Ln(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]),Ln(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&bn(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 Yn(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Nn(t)}function Xn(){var e=Yn.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 Zn=/^((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)-.*))$/,Qn=an(function(e){return Zn.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),$n=function(e){return e!==`theme`},er=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?Qn:$n},tr=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},nr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return yn(t,n,r),In(function(){return bn(t,n,r)}),null},rr=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=tr(t,n,r),c=s||er(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=Bn(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=R.useContext(Vn)}typeof e.className==`string`?a=vn(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Nn(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?er(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),R.createElement(R.Fragment,null,R.createElement(nr,{cache:t,serialized:m,isStringTag:typeof r==`string`}),R.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,et({},n,r,{shouldForwardProp:tr(h,r,!0)})).apply(void 0,d)},h}},ir=`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(`.`),ar=rr.bind(null);ir.forEach(function(e){ar[e]=ar(e)});var or=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})),z=o(((e,t)=>{t.exports=or()}))(),sr=new Map,cr={insert:void 0},lr=(e,t)=>{let n=mn(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},ur;if(typeof document==`object`&&(ur=document.querySelector(`[name="emotion-insertion-point"]`),!ur)){ur=document.createElement(`meta`),ur.setAttribute(`name`,`emotion-insertion-point`),ur.setAttribute(`content`,``);let e=document.querySelector(`head`);e&&e.prepend(ur)}function dr(e,t){if(e||t){class n extends rt{insert(e,t){return cr.insert?cr.insert(e,t):(this.key&&this.key.endsWith(`global`)&&(this.before=ur),super.insert(e,t))}}let r=lr({key:`css`,insertionPoint:e?ur: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 fr(e){let{injectFirst:t,enableCssLayer:n,children:r}=e,i=R.useMemo(()=>{let e=`${t}-${n}`;if(typeof document==`object`&&sr.has(e))return sr.get(e);let r=dr(t,n);return sr.set(e,r),r},[t,n]);return i?(0,z.jsx)(zn,{value:i,children:r}):r}function pr(e){return e==null||Object.keys(e).length===0}function mr(e){let{styles:t,defaultTheme:n={}}=e;return(0,z.jsx)(Jn,{styles:typeof t==`function`?e=>t(pr(e)?n:e):t})}function hr(e,t){return ar(e,t)}function gr(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var _r=[];function vr(e){return _r[0]=e,Nn(_r)}var yr=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))}})),br=o(((e,t)=>{t.exports=yr()}))();function xr(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 Sr(e){if(R.isValidElement(e)||(0,br.isValidElementType)(e)||!xr(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=Sr(e[n])}),t}function Cr(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return xr(e)&&xr(t)&&Object.keys(t).forEach(i=>{R.isValidElement(t[i])||(0,br.isValidElementType)(t[i])?r[i]=t[i]:xr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&xr(e[i])?r[i]=Cr(e[i],t[i],n):n.clone?r[i]=xr(t[i])?Sr(t[i]):t[i]:r[i]=t[i]}),r}var wr=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 Tr(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=wr(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 Er(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 Dr(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Or(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 kr(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 Ar={borderRadius:4};function jr(e,t){return t?Cr(e,t,{clone:!1}):e}var Mr={xs:0,sm:600,md:900,lg:1200,xl:1536},Nr={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${Mr[e]}px)`},Pr={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:Mr[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Fr(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||Nr;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||Nr;return Object.keys(t).reduce((i,a)=>{if(Dr(e.keys,a)){let e=Or(r.containerQueries?r:Pr,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||Mr).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 Ir(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function Lr(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function Rr(e){if(typeof e!=`string`)throw Error(Qe(7));return e.charAt(0).toUpperCase()+e.slice(1)}function zr(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 Br(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:zr(e,n)||r,t&&(i=t(i,r,e)),i}function Vr(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=zr(o,r)||{};return Fr(e,a,e=>{let r=Br(s,i,e);return e===r&&typeof e==`string`&&(r=Br(s,i,`${t}${e==="default"?``:Rr(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}function Hr(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Ur={m:`margin`,p:`padding`},Wr={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},Gr={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},Kr=Hr(e=>{if(e.length>2)if(Gr[e])e=Gr[e];else return[e];let[t,n]=e.split(``),r=Ur[t],i=Wr[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),qr=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],Jr=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],Yr=[...qr,...Jr];function Xr(e,t,n,r){let i=zr(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 Zr(e){return Xr(e,`spacing`,8,`spacing`)}function Qr(e,t){return typeof t==`string`||t==null?t:e(t)}function $r(e,t){return n=>e.reduce((e,r)=>(e[r]=Qr(t,n),e),{})}function ei(e,t,n,r){if(!t.includes(n))return null;let i=$r(Kr(n),r),a=e[n];return Fr(e,a,i)}function ti(e,t){let n=Zr(e.theme);return Object.keys(e).map(r=>ei(e,t,r,n)).reduce(jr,{})}function ni(e){return ti(e,qr)}ni.propTypes={},ni.filterProps=qr;function ri(e){return ti(e,Jr)}ri.propTypes={},ri.filterProps=Jr;function ii(e){return ti(e,Yr)}ii.propTypes={},ii.filterProps=Yr;function ai(e=8,t=Zr({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 oi(...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]?jr(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function si(e){return typeof e==`number`?`${e}px solid`:e}function ci(e,t){return Vr({prop:e,themeKey:`borders`,transform:t})}var li=ci(`border`,si),ui=ci(`borderTop`,si),di=ci(`borderRight`,si),fi=ci(`borderBottom`,si),pi=ci(`borderLeft`,si),mi=ci(`borderColor`),hi=ci(`borderTopColor`),gi=ci(`borderRightColor`),_i=ci(`borderBottomColor`),vi=ci(`borderLeftColor`),yi=ci(`outline`,si),bi=ci(`outlineColor`),xi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=Xr(e.theme,`shape.borderRadius`,4,`borderRadius`);return Fr(e,e.borderRadius,e=>({borderRadius:Qr(t,e)}))}return null};xi.propTypes={},xi.filterProps=[`borderRadius`],oi(li,ui,di,fi,pi,mi,hi,gi,_i,vi,xi,yi,bi);var Si=e=>{if(e.gap!==void 0&&e.gap!==null){let t=Xr(e.theme,`spacing`,8,`gap`);return Fr(e,e.gap,e=>({gap:Qr(t,e)}))}return null};Si.propTypes={},Si.filterProps=[`gap`];var Ci=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=Xr(e.theme,`spacing`,8,`columnGap`);return Fr(e,e.columnGap,e=>({columnGap:Qr(t,e)}))}return null};Ci.propTypes={},Ci.filterProps=[`columnGap`];var wi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=Xr(e.theme,`spacing`,8,`rowGap`);return Fr(e,e.rowGap,e=>({rowGap:Qr(t,e)}))}return null};wi.propTypes={},wi.filterProps=[`rowGap`],oi(Si,Ci,wi,Vr({prop:`gridColumn`}),Vr({prop:`gridRow`}),Vr({prop:`gridAutoFlow`}),Vr({prop:`gridAutoColumns`}),Vr({prop:`gridAutoRows`}),Vr({prop:`gridTemplateColumns`}),Vr({prop:`gridTemplateRows`}),Vr({prop:`gridTemplateAreas`}),Vr({prop:`gridArea`}));function Ti(e,t){return t===`grey`?t:e}oi(Vr({prop:`color`,themeKey:`palette`,transform:Ti}),Vr({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Ti}),Vr({prop:`backgroundColor`,themeKey:`palette`,transform:Ti}));function Ei(e){return e<=1&&e!==0?`${e*100}%`:e}var Di=Vr({prop:`width`,transform:Ei}),Oi=e=>e.maxWidth!==void 0&&e.maxWidth!==null?Fr(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Mr[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Ei(t)}}):null;Oi.filterProps=[`maxWidth`];var ki=Vr({prop:`minWidth`,transform:Ei}),Ai=Vr({prop:`height`,transform:Ei}),ji=Vr({prop:`maxHeight`,transform:Ei}),Mi=Vr({prop:`minHeight`,transform:Ei});Vr({prop:`size`,cssProperty:`width`,transform:Ei}),Vr({prop:`size`,cssProperty:`height`,transform:Ei}),oi(Di,Oi,ki,Ai,ji,Mi,Vr({prop:`boxSizing`}));var Ni={border:{themeKey:`borders`,transform:si},borderTop:{themeKey:`borders`,transform:si},borderRight:{themeKey:`borders`,transform:si},borderBottom:{themeKey:`borders`,transform:si},borderLeft:{themeKey:`borders`,transform:si},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:si},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:xi},color:{themeKey:`palette`,transform:Ti},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Ti},backgroundColor:{themeKey:`palette`,transform:Ti},p:{style:ri},pt:{style:ri},pr:{style:ri},pb:{style:ri},pl:{style:ri},px:{style:ri},py:{style:ri},padding:{style:ri},paddingTop:{style:ri},paddingRight:{style:ri},paddingBottom:{style:ri},paddingLeft:{style:ri},paddingX:{style:ri},paddingY:{style:ri},paddingInline:{style:ri},paddingInlineStart:{style:ri},paddingInlineEnd:{style:ri},paddingBlock:{style:ri},paddingBlockStart:{style:ri},paddingBlockEnd:{style:ri},m:{style:ni},mt:{style:ni},mr:{style:ni},mb:{style:ni},ml:{style:ni},mx:{style:ni},my:{style:ni},margin:{style:ni},marginTop:{style:ni},marginRight:{style:ni},marginBottom:{style:ni},marginLeft:{style:ni},marginX:{style:ni},marginY:{style:ni},marginInline:{style:ni},marginInlineStart:{style:ni},marginInlineEnd:{style:ni},marginBlock:{style:ni},marginBlockStart:{style:ni},marginBlockEnd:{style:ni},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:Si},rowGap:{style:wi},columnGap:{style:Ci},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:Ei},maxWidth:{style:Oi},minWidth:{transform:Ei},height:{transform:Ei},maxHeight:{transform:Ei},minHeight:{transform:Ei},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 Pi(...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 Fi(e,t){return typeof e==`function`?e(t):e}function Ii(){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=zr(n,s)||{};return l?l(i):Fr(i,t,t=>{let n=Br(u,c,t);return t===n&&typeof t==`string`&&(n=Br(u,c,`${e}${t==="default"?``:Rr(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??Ni;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=Ir(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=Fi(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=jr(l,e(n,a,i,o));else{let e=Fr({theme:i},a,e=>({[n]:e}));Pi(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=jr(l,e)}else l=jr(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":Er(i,Lr(c,l))}:Er(i,Lr(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var Li=Ii();Li.filterProps=[`sx`];function Ri(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 zi(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Tr(n),c=ai(i),l=Cr({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...Ar,...a}},o);return l=kr(l),l.applyStyles=Ri,l=t.reduce((e,t)=>Cr(e,t),l),l.unstable_sxConfig={...Ni,...o?.unstable_sxConfig},l.unstable_sx=function(e){return Li({sx:e,theme:this})},l}function Bi(e){return Object.keys(e).length===0}function Vi(e=null){let t=R.useContext(Vn);return!t||Bi(t)?e:t}var Hi=zi();function Ui(e=Hi){return Vi(e)}function Wi(e){let t=vr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Gi({styles:e,themeId:t,defaultTheme:n={}}){let r=Ui(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>Wi(typeof e==`function`?e(i):e)):Wi(a)),(0,z.jsx)(mr,{styles:a})}var Ki=e=>e,qi=(()=>{let e=Ki;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ki}}})();function Ji(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=Ji(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function B(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ji(e))&&(r&&(r+=` `),r+=t);return r}var Yi={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 Xi(e,t,n=`Mui`){let r=Yi[t];return r?`${n}-${r}`:`${qi.generate(e)}-${t}`}function Zi(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=Xi(e,t,n)}),r}function Qi(e){let{variants:t,...n}=e,r={variants:t,style:vr(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=vr(e.style))}),r}var $i=zi();function ea(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function ta(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function na(e){return e?(t,n)=>n[e]:null}function ra(e,t,n){e.theme=sa(e.theme)?n:e.theme[t]||e.theme}function ia(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>ia(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?ta(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?ta(vr(i),n):i}return aa(e,r.variants,[t],n)}return r?.isProcessed?n?ta(vr(r.style),n):r.style:n?ta(vr(r),n):r}function aa(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?ta(vr(o.style(i)),r):o.style(i))):n.push(r?ta(vr(o.style),r):o.style)}return n}function oa(e={}){let{themeId:t,defaultTheme:n=$i,rootShouldForwardProp:r=ea,slotShouldForwardProp:i=ea}=e;function a(e){ra(e,t,n)}return(e,t={})=>{gr(e,e=>e.filter(e=>e!==Li));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=na(la(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=ea;o===`Root`||o===`root`?m=r:o?m=i:ca(e)&&(m=void 0);let h=hr(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return ia(t,e,t.theme.modularCssLayers?d:void 0)};if(xr(e)){let t=Qi(e);return function(e){return t.variants?ia(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?ta(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]=ia(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?aa(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(Li),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 sa(e){for(let t in e)return!1;return!0}function ca(e){return typeof e==`string`&&e.charCodeAt(0)>96}function la(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ua(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]=ua(i[t],o[t],n)}}}else a===`className`&&n&&t.className?r.className=B(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 da=typeof window<`u`?R.useLayoutEffect:R.useEffect;function fa(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function pa(e,t=0,n=1){return fa(e,t,n)}function ma(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 ha(e){if(e.type)return e;if(e.charAt(0)===`#`)return ha(ma(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(Qe(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(Qe(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var ga=e=>{let t=ha(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},_a=(e,t)=>{try{return ga(e)}catch{return e}};function va(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 ya(e){e=ha(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])),va({type:s,values:c})}function ba(e){e=ha(e);let t=e.type===`hsl`||e.type===`hsla`?ha(ya(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 xa(e,t){let n=ba(e),r=ba(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Sa(e,t){return e=ha(e),t=pa(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,va(e)}function Ca(e,t,n){try{return Sa(e,t)}catch{return e}}function wa(e,t){if(e=ha(e),t=pa(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 va(e)}function Ta(e,t,n){try{return wa(e,t)}catch{return e}}function Ea(e,t){if(e=ha(e),t=pa(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 va(e)}function Da(e,t,n){try{return Ea(e,t)}catch{return e}}function Oa(e,t=.15){return ba(e)>.5?wa(e,t):Ea(e,t)}function ka(e,t,n){try{return Oa(e,t)}catch{return e}}var Aa=R.createContext(null);function ja(){return R.useContext(Aa)}var Ma=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function Na(e,t){return typeof t==`function`?t(e):{...e,...t}}function Pa(e){let{children:t,theme:n}=e,r=ja(),i=R.useMemo(()=>{let e=r===null?{...n}:Na(r,n);return e!=null&&(e[Ma]=r!==null),e},[n,r]);return(0,z.jsx)(Aa.Provider,{value:i,children:t})}var Fa=R.createContext();function Ia({value:e,...t}){return(0,z.jsx)(Fa.Provider,{value:e??!0,...t})}var La=()=>R.useContext(Fa)??!1,Ra=R.createContext(void 0);function za({value:e,children:t}){return(0,z.jsx)(Ra.Provider,{value:e,children:t})}function Ba(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?ua(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?ua(i,r,t.components.mergeClassNameAndStyle):r}function Va({props:e,name:t}){return Ba({props:e,name:t,theme:{components:R.useContext(Ra)}})}var Ha=0;function Ua(e){let[t,n]=R.useState(e),r=e||t;return R.useEffect(()=>{t??(Ha+=1,n(`mui-${Ha}`))},[t]),r}var Wa={...R}.useId;function Ga(e){if(Wa!==void 0){let t=Wa();return e??t}return Ua(e)}function Ka(e){let t=Vi(),n=Ga()||``,{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};`,da(()=>{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,z.jsx)(Gi,{styles:i}):null}var qa={};function Ja(e,t,n,r=!1){return R.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 Ya(e){let{children:t,theme:n,themeId:r}=e,i=Vi(qa),a=ja()||qa,o=Ja(r,i,n),s=Ja(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=Ka(o);return(0,z.jsx)(Pa,{theme:s,children:(0,z.jsx)(Vn.Provider,{value:o,children:(0,z.jsx)(Ia,{value:c,children:(0,z.jsxs)(za,{value:r?o[r].components:o.components,children:[l,t]})})})})}var Xa={theme:void 0};function Za(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Xa.theme=r.theme,i=Qi(e(Xa)),t=i,n=r.theme),i}}var Qa=`mode`,$a=`color-scheme`,eo=`data-color-scheme`;function to(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=Qa,colorSchemeStorageKey:a=$a,attribute:o=eo,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,
|
|
11
|
+
${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,z.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,55 +32,57 @@ try {
|
|
|
32
32
|
if (colorScheme) {
|
|
33
33
|
${l}
|
|
34
34
|
}
|
|
35
|
-
} catch(e){}})();`}},`mui-color-scheme-init`)}function ro(){}var io=({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 ro;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function ao(){}function oo(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function so(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 co(e){return so(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function lo(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=$a,colorSchemeStorageKey:o=eo,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=io,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=I.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=I.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=I.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=I.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:oo(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=I.useState(l||!d);I.useEffect(()=>{v(!0)},[]);let y=co(h),b=I.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:oo(r)}})},[f,t]),x=I.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 so(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=I.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=I.useRef(S);return C.current=S,I.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]),I.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||ao,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||ao,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||ao;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 uo=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function fo(e){let{themeId:t,theme:n={},modeStorageKey:r=$a,colorSchemeStorageKey:i=eo,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=I.createContext(void 0),u=()=>I.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=I.useRef(!1),E=Ma(),D=I.useContext(l),O=!!D&&!b,ee=I.useMemo(()=>u||(typeof n==`function`?n():n),[u]),k=ee[t],A=k||ee,{colorSchemes:j=d,components:te=f,cssVarPrefix:M}=A,ne=Object.keys(j).filter(e=>!!j[e]).join(`,`),N=I.useMemo(()=>ne.split(`,`),[ne]),re=typeof o==`string`?o:o.light,ie=typeof o==`string`?o:o.dark,{mode:ae,setMode:oe,systemMode:se,lightColorScheme:ce,darkColorScheme:le,colorScheme:ue,setColorScheme:de}=lo({supportedColorSchemes:N,defaultLightColorScheme:re,defaultDarkColorScheme:ie,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:j[re]&&j[ie]?S:j[A.defaultColorScheme]?.palette?.mode||A.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),fe=ae,pe=ue;O&&(fe=D.mode,pe=D.colorScheme);let me=pe||A.defaultColorScheme;A.vars&&!C&&(me=A.defaultColorScheme);let he=I.useMemo(()=>{let e=A.generateThemeVars?.()||A.vars,t={...A,components:te,colorSchemes:j,cssVarPrefix:M,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),me){let e=j[me];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},[A,me,te,j,M]),ge=A.colorSchemeSelector;fa(()=>{if(pe&&y&&ge&&ge!==`media`){let e=ge,t=ge;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...N.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,pe));else{let e=t.replace(`%s`,pe).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||N.forEach(e=>{y.removeAttribute(t.replace(pe,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,pe)}}},[pe,ge,y,N]),I.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(uo)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[pe,h,v]),I.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let _e=I.useMemo(()=>({allColorSchemes:N,colorScheme:pe,darkColorScheme:le,lightColorScheme:ce,mode:fe,setColorScheme:de,setMode:oe,systemMode:se}),[N,pe,le,ce,fe,de,oe,se,he.colorSchemeSelector]),ve=!0;(x||A.cssVariables===!1||O&&E?.cssVarPrefix===M)&&(ve=!1);let ye=(0,L.jsxs)(I.Fragment,{children:[(0,L.jsx)(Xa,{themeId:k?t:void 0,theme:he,children:c}),ve&&(0,L.jsx)(gr,{styles:he.generateStyleSheets?.()||[]})]});return O?ye:(0,L.jsx)(l.Provider,{value:_e,children:ye})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>no({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function po(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 mo=(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])})},ho=(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)},go=(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 _o(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return ho(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=go(e,t);Object.assign(i,{[r]:c}),mo(a,e,`var(${r})`,s),mo(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function vo(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}=_o(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=_o(n,t);p=Tr(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=_o(h,t);p=Tr(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=Tr(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 yo(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 bo(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 xo(e,t){return I.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var So={black:`#000`,white:`#fff`},Co={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`},wo={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`},To={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`},Eo={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`},Do={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`},Oo={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`},ko={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 Ao(){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:So.white,default:So.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 jo=Ao();function Mo(){return{text:{primary:So.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:So.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 No=Mo();function Po(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=Da(e.main,i):t===`dark`&&(e.dark=Ta(e.main,a)))}function Fo(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 Io(e=`light`){return e===`dark`?{main:Do[200],light:Do[50],dark:Do[400]}:{main:Do[700],light:Do[400],dark:Do[800]}}function Lo(e=`light`){return e===`dark`?{main:wo[200],light:wo[50],dark:wo[400]}:{main:wo[500],light:wo[300],dark:wo[700]}}function Ro(e=`light`){return e===`dark`?{main:To[500],light:To[300],dark:To[700]}:{main:To[700],light:To[400],dark:To[800]}}function zo(e=`light`){return e===`dark`?{main:Oo[400],light:Oo[300],dark:Oo[700]}:{main:Oo[700],light:Oo[500],dark:Oo[900]}}function Bo(e=`light`){return e===`dark`?{main:ko[400],light:ko[300],dark:ko[700]}:{main:ko[800],light:ko[500],dark:ko[900]}}function Vo(e=`light`){return e===`dark`?{main:Eo[400],light:Eo[300],dark:Eo[700]}:{main:`#ed6c02`,light:Eo[500],dark:Eo[900]}}function Ho(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Uo(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Io(t),s=e.secondary||Lo(t),c=e.error||Ro(t),l=e.info||zo(t),u=e.success||Bo(t),d=e.warning||Vo(t);function f(e){return i?Ho(e):Sa(e,No.text.primary)>=n?No.text.primary:jo.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(et(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(et(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(Fo(i,e,`light`,a,r),Fo(i,e,`dark`,o,r)):(Po(e,`light`,a,r),Po(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=Ao():t===`dark`&&(m=Mo()),Tr({common:{...So},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:Co,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function Wo(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 Go(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function Ko(e){return Math.round(e*1e5)/1e5}var qo={textTransform:`uppercase`},Jo=`"Roboto", "Helvetica", "Arial", sans-serif`;function Yo(e,t){let{fontFamily:n=Jo,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===Jo?{letterSpacing:`${Ko(i/t)}em`}:{},...a,...l});return Tr({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,qo),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,qo),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var Xo=.2,Zo=.14,Qo=.12;function $o(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Xo})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zo})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Qo})`].join(`,`)}var es=[`none`,$o(0,2,1,-1,0,1,1,0,0,1,3,0),$o(0,3,1,-2,0,2,2,0,0,1,5,0),$o(0,3,3,-2,0,3,4,0,0,1,8,0),$o(0,2,4,-1,0,4,5,0,0,1,10,0),$o(0,3,5,-1,0,5,8,0,0,1,14,0),$o(0,3,5,-1,0,6,10,0,0,1,18,0),$o(0,4,5,-2,0,7,10,1,0,2,16,1),$o(0,5,5,-3,0,8,10,1,0,3,14,2),$o(0,5,6,-3,0,9,12,1,0,3,16,2),$o(0,6,6,-3,0,10,14,1,0,4,18,3),$o(0,6,7,-4,0,11,15,1,0,4,20,3),$o(0,7,8,-4,0,12,17,2,0,5,22,4),$o(0,7,8,-4,0,13,19,2,0,5,24,4),$o(0,7,9,-4,0,14,21,2,0,5,26,4),$o(0,8,9,-5,0,15,22,2,0,6,28,5),$o(0,8,10,-5,0,16,24,2,0,6,30,5),$o(0,8,11,-5,0,17,26,2,0,6,32,5),$o(0,9,11,-5,0,18,28,2,0,7,34,6),$o(0,9,12,-6,0,19,29,2,0,7,36,6),$o(0,10,13,-6,0,20,31,3,0,8,38,7),$o(0,10,13,-6,0,21,33,3,0,8,40,7),$o(0,10,14,-6,0,22,35,3,0,8,42,7),$o(0,11,14,-7,0,23,36,3,0,9,44,8),$o(0,11,15,-7,0,24,38,3,0,9,46,8)],ts={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)`},ns={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rs(e){return`${Math.round(e)}ms`}function is(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function as(e){let t={...ts,...e.easing},n={...ns,...e.duration};return{getAutoHeightDuration:is,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:rs(i)} ${a} ${typeof o==`string`?o:rs(o)}`).join(`,`)},...e,easing:t,duration:n}}var os={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ss(e){return Cr(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function cs(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];!ss(a)||i.startsWith(`unstable_`)?delete e[i]:Cr(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 no(){}var ro=({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 no;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function io(){}function ao(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function oo(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 so(e){return oo(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function co(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Qa,colorSchemeStorageKey:o=$a,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=ro,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=R.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=R.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=R.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=R.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:ao(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=R.useState(l||!d);R.useEffect(()=>{v(!0)},[]);let y=so(h),b=R.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:ao(r)}})},[f,t]),x=R.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 oo(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=R.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=R.useRef(S);return C.current=S,R.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]),R.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||io,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||io,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||io;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 lo=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function uo(e){let{themeId:t,theme:n={},modeStorageKey:r=Qa,colorSchemeStorageKey:i=$a,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=R.createContext(void 0),u=()=>R.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=R.useRef(!1),E=ja(),D=R.useContext(l),O=!!D&&!b,ee=R.useMemo(()=>u||(typeof n==`function`?n():n),[u]),k=ee[t],A=k||ee,{colorSchemes:j=d,components:te=f,cssVarPrefix:M}=A,ne=Object.keys(j).filter(e=>!!j[e]).join(`,`),N=R.useMemo(()=>ne.split(`,`),[ne]),re=typeof o==`string`?o:o.light,ie=typeof o==`string`?o:o.dark,{mode:ae,setMode:oe,systemMode:se,lightColorScheme:ce,darkColorScheme:le,colorScheme:ue,setColorScheme:de}=co({supportedColorSchemes:N,defaultLightColorScheme:re,defaultDarkColorScheme:ie,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:j[re]&&j[ie]?S:j[A.defaultColorScheme]?.palette?.mode||A.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),fe=ae,pe=ue;O&&(fe=D.mode,pe=D.colorScheme);let me=pe||A.defaultColorScheme;A.vars&&!C&&(me=A.defaultColorScheme);let he=R.useMemo(()=>{let e=A.generateThemeVars?.()||A.vars,t={...A,components:te,colorSchemes:j,cssVarPrefix:M,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),me){let e=j[me];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},[A,me,te,j,M]),P=A.colorSchemeSelector;da(()=>{if(pe&&y&&P&&P!==`media`){let e=P,t=P;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...N.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,pe));else{let e=t.replace(`%s`,pe).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||N.forEach(e=>{y.removeAttribute(t.replace(pe,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,pe)}}},[pe,P,y,N]),R.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(lo)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[pe,h,v]),R.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let ge=R.useMemo(()=>({allColorSchemes:N,colorScheme:pe,darkColorScheme:le,lightColorScheme:ce,mode:fe,setColorScheme:de,setMode:oe,systemMode:se}),[N,pe,le,ce,fe,de,oe,se,he.colorSchemeSelector]),F=!0;(x||A.cssVariables===!1||O&&E?.cssVarPrefix===M)&&(F=!1);let _e=(0,z.jsxs)(R.Fragment,{children:[(0,z.jsx)(Ya,{themeId:k?t:void 0,theme:he,children:c}),F&&(0,z.jsx)(mr,{styles:he.generateStyleSheets?.()||[]})]});return O?_e:(0,z.jsx)(l.Provider,{value:ge,children:_e})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>to({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function fo(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 po=(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])})},mo=(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)},ho=(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 go(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return mo(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=ho(e,t);Object.assign(i,{[r]:c}),po(a,e,`var(${r})`,s),po(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function _o(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}=go(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=go(n,t);p=Cr(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=go(h,t);p=Cr(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=Cr(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 vo(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 yo(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 bo(e,t){return R.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var xo={black:`#000`,white:`#fff`},So={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`},Co={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`},wo={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`},To={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`},Eo={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`},Do={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`},Oo={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 ko(){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:xo.white,default:xo.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 Ao=ko();function jo(){return{text:{primary:xo.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:xo.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 Mo=jo();function No(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=Ea(e.main,i):t===`dark`&&(e.dark=wa(e.main,a)))}function Po(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 Fo(e=`light`){return e===`dark`?{main:Eo[200],light:Eo[50],dark:Eo[400]}:{main:Eo[700],light:Eo[400],dark:Eo[800]}}function Io(e=`light`){return e===`dark`?{main:Co[200],light:Co[50],dark:Co[400]}:{main:Co[500],light:Co[300],dark:Co[700]}}function Lo(e=`light`){return e===`dark`?{main:wo[500],light:wo[300],dark:wo[700]}:{main:wo[700],light:wo[400],dark:wo[800]}}function Ro(e=`light`){return e===`dark`?{main:Do[400],light:Do[300],dark:Do[700]}:{main:Do[700],light:Do[500],dark:Do[900]}}function zo(e=`light`){return e===`dark`?{main:Oo[400],light:Oo[300],dark:Oo[700]}:{main:Oo[800],light:Oo[500],dark:Oo[900]}}function Bo(e=`light`){return e===`dark`?{main:To[400],light:To[300],dark:To[700]}:{main:`#ed6c02`,light:To[500],dark:To[900]}}function Vo(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ho(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Fo(t),s=e.secondary||Io(t),c=e.error||Lo(t),l=e.info||Ro(t),u=e.success||zo(t),d=e.warning||Bo(t);function f(e){return i?Vo(e):xa(e,Mo.text.primary)>=n?Mo.text.primary:Ao.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(Qe(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(Qe(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(Po(i,e,`light`,a,r),Po(i,e,`dark`,o,r)):(No(e,`light`,a,r),No(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=ko():t===`dark`&&(m=jo()),Cr({common:{...xo},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:So,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function Uo(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 Wo(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function Go(e){return Math.round(e*1e5)/1e5}var Ko={textTransform:`uppercase`},qo=`"Roboto", "Helvetica", "Arial", sans-serif`;function Jo(e,t){let{fontFamily:n=qo,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===qo?{letterSpacing:`${Go(i/t)}em`}:{},...a,...l});return Cr({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,Ko),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ko),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var Yo=.2,Xo=.14,Zo=.12;function Qo(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Yo})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Xo})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Zo})`].join(`,`)}var $o=[`none`,Qo(0,2,1,-1,0,1,1,0,0,1,3,0),Qo(0,3,1,-2,0,2,2,0,0,1,5,0),Qo(0,3,3,-2,0,3,4,0,0,1,8,0),Qo(0,2,4,-1,0,4,5,0,0,1,10,0),Qo(0,3,5,-1,0,5,8,0,0,1,14,0),Qo(0,3,5,-1,0,6,10,0,0,1,18,0),Qo(0,4,5,-2,0,7,10,1,0,2,16,1),Qo(0,5,5,-3,0,8,10,1,0,3,14,2),Qo(0,5,6,-3,0,9,12,1,0,3,16,2),Qo(0,6,6,-3,0,10,14,1,0,4,18,3),Qo(0,6,7,-4,0,11,15,1,0,4,20,3),Qo(0,7,8,-4,0,12,17,2,0,5,22,4),Qo(0,7,8,-4,0,13,19,2,0,5,24,4),Qo(0,7,9,-4,0,14,21,2,0,5,26,4),Qo(0,8,9,-5,0,15,22,2,0,6,28,5),Qo(0,8,10,-5,0,16,24,2,0,6,30,5),Qo(0,8,11,-5,0,17,26,2,0,6,32,5),Qo(0,9,11,-5,0,18,28,2,0,7,34,6),Qo(0,9,12,-6,0,19,29,2,0,7,36,6),Qo(0,10,13,-6,0,20,31,3,0,8,38,7),Qo(0,10,13,-6,0,21,33,3,0,8,40,7),Qo(0,10,14,-6,0,22,35,3,0,8,42,7),Qo(0,11,14,-7,0,23,36,3,0,9,44,8),Qo(0,11,15,-7,0,24,38,3,0,9,46,8)],es={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)`},ts={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ns(e){return`${Math.round(e)}ms`}function rs(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function is(e){let t={...es,...e.easing},n={...ts,...e.duration};return{getAutoHeightDuration:rs,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:ns(i)} ${a} ${typeof o==`string`?o:ns(o)}`).join(`,`)},...e,easing:t,duration:n}}var as={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function os(e){return xr(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function ss(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];!os(a)||i.startsWith(`unstable_`)?delete e[i]:xr(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
|
|
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 ws(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var Ts=e=>{try{return e()}catch{}},Es=(e=`mui`)=>po(e);function Ds(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=_s({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=fs({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...hs(a),...n?.opacity},overlays:n?.overlays||gs(a)},s}function Os(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=vs,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=Es(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(et(21,f));let b;o&&(b=`oklch`);let x=Ds(b,v,y,u,f);h&&!v.light&&Ds(b,v,h,void 0,`light`),g&&!v.dark&&Ds(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Wo(x.typography),...x.font},spacing:ws(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`&&(B(t.common,`background`,`#fff`),B(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(B(t.common,`background`,`#000`),B(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===wa&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===Ea&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Oa&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(xs(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){B(t.Alert,`errorColor`,r(Ea,o?p(`palette-error-light`):t.error.light,.6)),B(t.Alert,`infoColor`,r(Ea,o?p(`palette-info-light`):t.info.light,.6)),B(t.Alert,`successColor`,r(Ea,o?p(`palette-success-light`):t.success.light,.6)),B(t.Alert,`warningColor`,r(Ea,o?p(`palette-warning-light`):t.warning.light,.6)),B(t.Alert,`errorFilledBg`,n(`palette-error-main`)),B(t.Alert,`infoFilledBg`,n(`palette-info-main`)),B(t.Alert,`successFilledBg`,n(`palette-success-main`)),B(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),B(t.Alert,`errorFilledColor`,Ts(()=>t.getContrastText(t.error.main))),B(t.Alert,`infoFilledColor`,Ts(()=>t.getContrastText(t.info.main))),B(t.Alert,`successFilledColor`,Ts(()=>t.getContrastText(t.success.main))),B(t.Alert,`warningFilledColor`,Ts(()=>t.getContrastText(t.warning.main))),B(t.Alert,`errorStandardBg`,r(Oa,o?p(`palette-error-light`):t.error.light,.9)),B(t.Alert,`infoStandardBg`,r(Oa,o?p(`palette-info-light`):t.info.light,.9)),B(t.Alert,`successStandardBg`,r(Oa,o?p(`palette-success-light`):t.success.light,.9)),B(t.Alert,`warningStandardBg`,r(Oa,o?p(`palette-warning-light`):t.warning.light,.9)),B(t.Alert,`errorIconColor`,n(`palette-error-main`)),B(t.Alert,`infoIconColor`,n(`palette-info-main`)),B(t.Alert,`successIconColor`,n(`palette-success-main`)),B(t.Alert,`warningIconColor`,n(`palette-warning-main`)),B(t.AppBar,`defaultBg`,n(`palette-grey-100`)),B(t.Avatar,`defaultBg`,n(`palette-grey-400`)),B(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),B(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),B(t.Chip,`defaultBorder`,n(`palette-grey-400`)),B(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),B(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),B(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),B(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),B(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),B(t.LinearProgress,`primaryBg`,r(Oa,o?p(`palette-primary-main`):t.primary.main,.62)),B(t.LinearProgress,`secondaryBg`,r(Oa,o?p(`palette-secondary-main`):t.secondary.main,.62)),B(t.LinearProgress,`errorBg`,r(Oa,o?p(`palette-error-main`):t.error.main,.62)),B(t.LinearProgress,`infoBg`,r(Oa,o?p(`palette-info-main`):t.info.main,.62)),B(t.LinearProgress,`successBg`,r(Oa,o?p(`palette-success-main`):t.success.main,.62)),B(t.LinearProgress,`warningBg`,r(Oa,o?p(`palette-warning-light`):t.warning.main,.62)),B(t.Skeleton,`bg`,b?r(wa,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),B(t.Slider,`primaryTrack`,r(Oa,o?p(`palette-primary-main`):t.primary.main,.62)),B(t.Slider,`secondaryTrack`,r(Oa,o?p(`palette-secondary-main`):t.secondary.main,.62)),B(t.Slider,`errorTrack`,r(Oa,o?p(`palette-error-main`):t.error.main,.62)),B(t.Slider,`infoTrack`,r(Oa,o?p(`palette-info-main`):t.info.main,.62)),B(t.Slider,`successTrack`,r(Oa,o?p(`palette-success-main`):t.success.main,.62)),B(t.Slider,`warningTrack`,r(Oa,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(Ea,o?p(`palette-background-default`):t.background.default,.6825):Aa(t.background.default,.8);B(t.SnackbarContent,`bg`,e),B(t.SnackbarContent,`color`,Ts(()=>b?No.text.primary:t.getContrastText(e))),B(t.SpeedDialAction,`fabHoverBg`,Aa(t.background.paper,.15)),B(t.StepConnector,`border`,n(`palette-grey-400`)),B(t.StepContent,`border`,n(`palette-grey-400`)),B(t.Switch,`defaultColor`,n(`palette-common-white`)),B(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),B(t.Switch,`primaryDisabledColor`,r(Oa,o?p(`palette-primary-main`):t.primary.main,.62)),B(t.Switch,`secondaryDisabledColor`,r(Oa,o?p(`palette-secondary-main`):t.secondary.main,.62)),B(t.Switch,`errorDisabledColor`,r(Oa,o?p(`palette-error-main`):t.error.main,.62)),B(t.Switch,`infoDisabledColor`,r(Oa,o?p(`palette-info-main`):t.info.main,.62)),B(t.Switch,`successDisabledColor`,r(Oa,o?p(`palette-success-main`):t.success.main,.62)),B(t.Switch,`warningDisabledColor`,r(Oa,o?p(`palette-warning-main`):t.warning.main,.62)),B(t.TableCell,`border`,r(Oa,wa(o?p(`palette-divider`):t.divider,1),.88)),B(t.Tooltip,`bg`,r(wa,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){B(t.Alert,`errorColor`,r(Oa,o?p(`palette-error-light`):t.error.light,.6)),B(t.Alert,`infoColor`,r(Oa,o?p(`palette-info-light`):t.info.light,.6)),B(t.Alert,`successColor`,r(Oa,o?p(`palette-success-light`):t.success.light,.6)),B(t.Alert,`warningColor`,r(Oa,o?p(`palette-warning-light`):t.warning.light,.6)),B(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),B(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),B(t.Alert,`successFilledBg`,n(`palette-success-dark`)),B(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),B(t.Alert,`errorFilledColor`,Ts(()=>t.getContrastText(t.error.dark))),B(t.Alert,`infoFilledColor`,Ts(()=>t.getContrastText(t.info.dark))),B(t.Alert,`successFilledColor`,Ts(()=>t.getContrastText(t.success.dark))),B(t.Alert,`warningFilledColor`,Ts(()=>t.getContrastText(t.warning.dark))),B(t.Alert,`errorStandardBg`,r(Ea,o?p(`palette-error-light`):t.error.light,.9)),B(t.Alert,`infoStandardBg`,r(Ea,o?p(`palette-info-light`):t.info.light,.9)),B(t.Alert,`successStandardBg`,r(Ea,o?p(`palette-success-light`):t.success.light,.9)),B(t.Alert,`warningStandardBg`,r(Ea,o?p(`palette-warning-light`):t.warning.light,.9)),B(t.Alert,`errorIconColor`,n(`palette-error-main`)),B(t.Alert,`infoIconColor`,n(`palette-info-main`)),B(t.Alert,`successIconColor`,n(`palette-success-main`)),B(t.Alert,`warningIconColor`,n(`palette-warning-main`)),B(t.AppBar,`defaultBg`,n(`palette-grey-900`)),B(t.AppBar,`darkBg`,n(`palette-background-paper`)),B(t.AppBar,`darkColor`,n(`palette-text-primary`)),B(t.Avatar,`defaultBg`,n(`palette-grey-600`)),B(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),B(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),B(t.Chip,`defaultBorder`,n(`palette-grey-700`)),B(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),B(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),B(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),B(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),B(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),B(t.LinearProgress,`primaryBg`,r(Ea,o?p(`palette-primary-main`):t.primary.main,.5)),B(t.LinearProgress,`secondaryBg`,r(Ea,o?p(`palette-secondary-main`):t.secondary.main,.5)),B(t.LinearProgress,`errorBg`,r(Ea,o?p(`palette-error-main`):t.error.main,.5)),B(t.LinearProgress,`infoBg`,r(Ea,o?p(`palette-info-main`):t.info.main,.5)),B(t.LinearProgress,`successBg`,r(Ea,o?p(`palette-success-main`):t.success.main,.5)),B(t.LinearProgress,`warningBg`,r(Ea,o?p(`palette-warning-main`):t.warning.main,.5)),B(t.Skeleton,`bg`,b?r(wa,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),B(t.Slider,`primaryTrack`,r(Ea,o?p(`palette-primary-main`):t.primary.main,.5)),B(t.Slider,`secondaryTrack`,r(Ea,o?p(`palette-secondary-main`):t.secondary.main,.5)),B(t.Slider,`errorTrack`,r(Ea,o?p(`palette-error-main`):t.error.main,.5)),B(t.Slider,`infoTrack`,r(Ea,o?p(`palette-info-main`):t.info.main,.5)),B(t.Slider,`successTrack`,r(Ea,o?p(`palette-success-main`):t.success.main,.5)),B(t.Slider,`warningTrack`,r(Ea,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(Oa,o?p(`palette-background-default`):t.background.default,.985):Aa(t.background.default,.98);B(t.SnackbarContent,`bg`,e),B(t.SnackbarContent,`color`,Ts(()=>b?jo.text.primary:t.getContrastText(e))),B(t.SpeedDialAction,`fabHoverBg`,Aa(t.background.paper,.15)),B(t.StepConnector,`border`,n(`palette-grey-600`)),B(t.StepContent,`border`,n(`palette-grey-600`)),B(t.Switch,`defaultColor`,n(`palette-grey-300`)),B(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),B(t.Switch,`primaryDisabledColor`,r(Ea,o?p(`palette-primary-main`):t.primary.main,.55)),B(t.Switch,`secondaryDisabledColor`,r(Ea,o?p(`palette-secondary-main`):t.secondary.main,.55)),B(t.Switch,`errorDisabledColor`,r(Ea,o?p(`palette-error-main`):t.error.main,.55)),B(t.Switch,`infoDisabledColor`,r(Ea,o?p(`palette-info-main`):t.info.main,.55)),B(t.Switch,`successDisabledColor`,r(Ea,o?p(`palette-success-main`):t.success.main,.55)),B(t.Switch,`warningDisabledColor`,r(Ea,o?p(`palette-warning-light`):t.warning.main,.55)),B(t.TableCell,`border`,r(Ea,wa(o?p(`palette-divider`):t.divider,1),.68)),B(t.Tooltip,`bg`,r(wa,o?p(`palette-grey-700`):t.grey[700],.92))}o||(Cs(t.background,`default`),Cs(t.background,`paper`),Cs(t.common,`background`),Cs(t.common,`onBackground`),Cs(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&B(t[e],`mainChannel`,va(Ss(n.main))),n.light&&B(t[e],`lightChannel`,va(Ss(n.light))),n.dark&&B(t[e],`darkChannel`,va(Ss(n.dark))),n.contrastText&&B(t[e],`contrastTextChannel`,va(Ss(n.contrastText))),e===`text`&&(Cs(t[e],`primary`),Cs(t[e],`secondary`)),e===`action`&&(n.active&&Cs(t[e],`active`),n.selected&&Cs(t[e],`selected`)))})}),S=t.reduce((e,t)=>Tr(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:bs(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=vo(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 si(u.spacing,$r(this))},S.getColorSchemeSelector=yo(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Fi,...u?.unstable_sxConfig},S.unstable_sx=function(e){return zi({sx:e,theme:this})},S.toRuntimeSource=cs,S}function ks(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Uo({...n===!0?{}:n.palette,mode:t})})}function As(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 fs(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=fs({...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},ks(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},ks(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Os({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var js=As();function Ms(){let e=Gi(js);return e.$$material||e}function Ns(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Ps=e=>Ns(e)&&e!==`classes`,V=sa({themeId:tt,defaultTheme:js,rootShouldForwardProp:Ps});function Fs({theme:e,...t}){let n=`$$material`in e?e[tt]:void 0;return(0,L.jsx)(Xa,{...t,themeId:n?tt:void 0,theme:n||e})}var Is={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:Ls,useColorScheme:Rs,getInitColorSchemeScript:zs}=fo({themeId:tt,theme:()=>As({cssVariables:!0}),colorSchemeStorageKey:Is.colorSchemeStorageKey,modeStorageKey:Is.modeStorageKey,defaultColorScheme:{light:Is.defaultLightColorScheme,dark:Is.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Yo(e.palette,e.typography)};return t.unstable_sx=function(e){return zi({sx:e,theme:this})},t}}),Bs=Ls;function Vs({theme:e,...t}){let n=I.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[tt]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,L.jsx)(Fs,{theme:n,...t}):(0,L.jsx)(Bs,{theme:e,...t})}function Hs(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 Us(e,t){return Us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Us(e,t)}function Ws(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Us(e,t)}function Gs(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function Ks(e,t){e.classList?e.classList.add(t):Gs(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function qs(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function Js(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=qs(e.className,t):e.setAttribute(`class`,qs(e.className&&e.className.baseVal||``,t))}var Ys={disabled:!1},Xs=I.createContext(null),Zs=function(e){return e.scrollTop},Qs=l(h()),$s=`unmounted`,ec=`exited`,tc=`entering`,nc=`entered`,rc=`exiting`,ic=function(e){Ws(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=ec,r.appearStatus=tc):o=nc:o=t.unmountOnExit||t.mountOnEnter?$s:ec,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:ec}: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=tc):(n===`entering`||n===`entered`)&&(t=rc)}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:Qs.findDOMNode(this);n&&Zs(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:$s})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Qs.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||Ys.disabled){this.safeSetState({status:nc},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:tc},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:nc},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:Qs.findDOMNode(this);if(!t||Ys.disabled){this.safeSetState({status:ec},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:rc},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ec},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:Qs.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=Hs(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return I.createElement(Xs.Provider,{value:null},typeof n==`function`?n(e,r):I.cloneElement(I.Children.only(n),r))},t}(I.Component);ic.contextType=Xs,ic.propTypes={};function ac(){}ic.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ac,onEntering:ac,onEntered:ac,onExit:ac,onExiting:ac,onExited:ac},ic.UNMOUNTED=$s,ic.EXITED=ec,ic.ENTERING=tc,ic.ENTERED=nc,ic.EXITING=rc;var oc=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Ks(e,t)})},sc=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Js(e,t)})},cc=function(e){Ws(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&&Zs(e),r&&(this.appliedClasses[t][n]=r,oc(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&&sc(e,r),i&&sc(e,i),a&&sc(e,a)},n.render=function(){var e=this.props;e.classNames;var t=Hs(e,[`classNames`]);return I.createElement(ic,nt({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(I.Component);cc.defaultProps={classNames:``},cc.propTypes={};function lc(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function uc(e,t){var n=function(e){return t&&(0,I.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&I.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function dc(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 fc(e,t,n){return n[t]==null?e.props[t]:n[t]}function pc(e,t){return uc(e.children,function(n){return(0,I.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:fc(n,`appear`,e),enter:fc(n,`enter`,e),exit:fc(n,`exit`,e)})})}function mc(e,t,n){var r=uc(e.children),i=dc(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,I.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,I.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,I.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:fc(o,`exit`,e),enter:fc(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,I.cloneElement)(o,{in:!1}):c&&s&&(0,I.isValidElement)(l)&&(i[a]=(0,I.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:fc(o,`exit`,e),enter:fc(o,`enter`,e)}))}}),i}var hc=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gc={component:`div`,childFactory:function(e){return e}},_c=function(e){Ws(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(lc(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?pc(e,r):mc(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=uc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=nt({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Hs(e,[`component`,`childFactory`]),i=this.state.contextValue,a=hc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?I.createElement(Xs.Provider,{value:i},a):I.createElement(Xs.Provider,{value:i},I.createElement(t,r,a))},t}(I.Component);_c.propTypes={},_c.defaultProps=gc;var vc=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,yc=({size:e,children:t})=>(e=vc(e),(0,L.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));yc.propTypes={size:P.number,children:P.oneOfType([P.arrayOf(P.node),P.node]).isRequired};var bc=({size:e,children:t,sx:n})=>(0,L.jsx)(yc,{size:e,children:(0,L.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t})});bc.propTypes={size:P.oneOfType([P.string,P.number]),children:P.oneOfType([P.arrayOf(P.node),P.node]).isRequired,sx:P.object};var xc=({fill:e})=>(0,L.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});xc.propTypes={fill:P.string.isRequired};var H=({fill:e})=>(0,L.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});H.propTypes={fill:P.string.isRequired};var Sc=({fill:e})=>(0,L.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});Sc.propTypes={fill:P.string.isRequired};var Cc=({fill:e})=>(0,L.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});Cc.propTypes={fill:P.string.isRequired};var wc=({fill:e})=>(0,L.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});wc.propTypes={fill:P.string.isRequired};var Tc=(e,t)=>{class n extends I.Component{static propTypes={iconSet:P.oneOf([`emoji`,`check`]),shape:P.oneOf([`round`,`square`]),category:P.oneOf([`feedback`,void 0]),open:P.bool,size:P.oneOfType([P.number,P.string]),fg:P.string,bg:P.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,L.jsx)(e,{fill:s}):(0,L.jsx)(t,{fill:s}),u=n===`check`?(0,L.jsx)(e,{fill:c}):(0,L.jsx)(t,{fill:c});return a?(0,L.jsx)(bc,{size:o,children:u}):(0,L.jsxs)(bc,{size:o,children:[i===`feedback`?r===`round`?(0,L.jsx)(Sc,{fill:c}):(0,L.jsx)(H,{fill:c}):r===`round`?(0,L.jsx)(Cc,{fill:c}):(0,L.jsx)(wc,{fill:c}),l]})}}return n},Ec=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(1, 0)`,children:[(0,L.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
|
|
44
|
-
c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e}),(0,
|
|
45
|
-
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,
|
|
46
|
-
C-97.4,153.5-104.3,160.4-112.9,160.4z`}),(0,
|
|
47
|
-
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,
|
|
48
|
-
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Rc.propTypes={fill:P.string.isRequired};var zc=class extends I.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,L.jsxs)(bc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Ic,{fill:t})]}),emoji:(0,L.jsxs)(bc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Rc,{fill:t})]}),feedback:{check:(0,L.jsxs)(bc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Rc,{fill:t})]}),emoji:(0,L.jsxs)(bc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Rc,{fill:t})]}),square:{check:(0,L.jsxs)(bc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Ic,{fill:t})]}),emoji:(0,L.jsxs)(bc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Rc,{fill:t})]}),open:{check:(0,L.jsx)(bc,{children:(0,L.jsx)(Ic,{fill:n})}),emoji:(0,L.jsx)(bc,{children:(0,L.jsx)(Rc,{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]}};zc.propTypes={iconSet:P.oneOf([`emoji`,`check`,void 0]),shape:P.oneOf([`square`,void 0]),category:P.oneOf([`feedback`,void 0]),open:P.bool,fg:P.string,bg:P.string},zc.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Bc=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,L.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,L.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Bc.propTypes={fill:P.string.isRequired};var Vc=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,L.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.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})]});Vc.propTypes={fill:P.string.isRequired};var Hc=Tc(Bc,Vc);Hc.propTypes={iconSet:P.oneOf([`emoji`,`check`]),shape:P.oneOf([`round`,`square`]),category:P.oneOf([`feedback`,void 0]),open:P.bool,fg:P.string,bg:P.string,size:P.oneOfType([P.string,P.number])},Hc.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Uc(e){return typeof e==`string`}function Wc(e){return(0,L.jsx)(qi,{...e,defaultTheme:js,themeId:tt})}function Gc(e){return function(t){return(0,L.jsx)(Wc,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function Kc(e){return Ha(e)}function qc(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Jc=qc;function Yc(e){return e&&e.ownerDocument||document}var Xc=Yc;function Zc(e){return Yc(e).defaultView||window}var Qc=Zc,$c={};function el(e,t){let n=I.useRef($c);return n.current===$c&&(n.current=e(t)),n}var tl=[];function nl(e){I.useEffect(e,tl)}var rl=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 il(){let e=el(rl.create).current;return nl(e.disposeEffect),e}function al(e){return e?.ref||null}var ol=e=>e.scrollTop;function sl(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function cl(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function ll(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 ul(...e){let t=I.useRef(void 0),n=I.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 I.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var dl=ul;function fl(e){return`scale(${e}, ${e**2})`}var pl={entering:{opacity:1,transform:fl(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:fl(.75)},exited:{opacity:0,transform:fl(.75)}},ml={opacity:0,transform:fl(.75),visibility:`hidden`},hl=I.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=il(),_=I.useRef(),v=Ms(),y=I.useRef(null),b=dl(y,al(i),t),x=sl(y,l),S=sl(y,(e,t)=>{ol(e);let{duration:n,delay:r,easing:i}=ll({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=sl(y,c),w=sl(y,f),T=sl(y,e=>{let{duration:t,delay:n,easing:r}=ll({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=fl(.75),u&&u(e)}),E=sl(y,e=>{e.style.transition=``,d&&d(e)});return(0,L.jsx)(ic,{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=cl(e,o,pl,ml,p,i.props.style);return I.cloneElement(i,{style:r,ref:b,...n})}})});hl&&(hl.muiSupportAuto=!0);function gl(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function _l(e){let t=Yc(e);return t.body===e?Zc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function vl(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function yl(e){return parseFloat(Zc(e).getComputedStyle(e).paddingRight)||0}function bl(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 xl(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!bl(e);t&&n&&vl(e,i)})}function Sl(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function Cl(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(_l(r)){let e=gl(Zc(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${yl(r)+e}px`;let t=Yc(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${yl(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Yc(r).body;else{let t=r.parentElement,n=Zc(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 wl(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var Tl=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&&vl(e.modalRef,!1);let r=wl(t);xl(t,e.mount,e.modalRef,r,!0);let i=Sl(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=Sl(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Cl(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=Sl(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&&vl(e.modalRef,t),xl(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&&vl(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function El(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 Dl=El;function Ol(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var kl=Ol,Al=`data-mui-focusable`;function jl(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Al}]`):null}var Ml=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function Nl(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 Pl(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 Fl(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||Pl(e))}function Il(e){let t=[],n=[];return Array.from(e.querySelectorAll(Ml)).forEach((e,r)=>{let i=Nl(e);i===-1||!Fl(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 Ll(){return!0}function Rl(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Il,isEnabled:o=Ll,open:s}=e,c=I.useRef(!1),l=I.useRef(null),u=I.useRef(null),d=I.useRef(null),f=I.useRef(null),p=I.useRef(!1),m=I.useRef(null),h=ul(al(t),m),g=I.useRef(null);I.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),I.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=kl(Yc(m.current)),t=jl(m.current)??m.current;return Dl(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]),I.useEffect(()=>{if(!s||!m.current)return;let e=Yc(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&kl(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=kl(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(Dl(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=kl(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,L.jsxs)(I.Fragment,{children:[(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),I.cloneElement(t,{ref:h,onFocus:_}),(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function zl(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Bl(e){return typeof e==`function`?e():e}var Vl=I.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=I.useState(null),s=ul(I.isValidElement(n)?al(n):null,t);if(fa(()=>{i||o(Bl(r)||document.body)},[r,i]),fa(()=>{if(a&&!i)return zl(t,a),()=>{zl(t,null)}},[t,a,i]),i){if(I.isValidElement(n)){let e={ref:s};return I.cloneElement(n,e)}return n}return a&&Qs.createPortal(n,a)}),Hl=Qa;function Ul(e,t,n){return e===void 0||Uc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Wl(e,t,n){return typeof e==`function`?e(t,n):e}function Gl(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 Kl(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 ql(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=R(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=Gl({...i,...r}),s=Kl(r),c=Kl(i),l=t(o),u=R(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 Jl(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=Wl(d[e],i),{props:{component:h,...g},internalRef:_}=ql({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=ul(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Ul(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var Yl={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Xl={opacity:0,visibility:`hidden`},Zl=I.forwardRef(function(e,t){let n=Ms(),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=I.useRef(null),y=dl(v,al(o),t),b=sl(v,d),x=sl(v,(e,t)=>{ol(e);let r=ll({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=sl(v,u),C=sl(v,m),w=sl(v,e=>{let t=ll({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=sl(v,e=>{e.style.transition=``,p&&p(e)});return(0,L.jsx)(ic,{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=cl(e,c,Yl,Xl,h,o.props.style);return I.cloneElement(o,{style:r,ref:y,...n})}})});function Ql(e){return Qi(`MuiBackdrop`,e)}z(`MuiBackdrop`,[`root`,`invisible`]);var $l=e=>{let{classes:t,invisible:n}=e;return bo({root:[`root`,n&&`invisible`]},Ql,t)},eu=V(`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`}}]}),tu=I.forwardRef(function(e,t){let n=Kc({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=$l(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Jl(`root`,{elementType:eu,externalForwardedProps:_,className:R(g.root,i),ownerState:h}),[b,x]=Jl(`transition`,{elementType:Zl,externalForwardedProps:_,ownerState:h});return(0,L.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,L.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function nu(e){let t=I.useRef(e);return fa(()=>{t.current=e}),I.useRef((...e)=>(0,t.current)(...e)).current}function ru(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function iu(e){return typeof e==`function`?e():e}function au(e){return e?e.props.hasOwnProperty(`in`):!1}var ou=()=>{},su=new Tl;function cu(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=I.useRef({}),f=I.useRef(null),p=I.useRef(null),m=ul(p,u),[h,g]=I.useState(!l),_=au(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Yc(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{su.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=nu(()=>{let e=iu(t)||y().body;su.add(b(),e),p.current&&x()}),C=()=>su.isTopModal(b()),w=nu(e=>{f.current=e,e&&(l&&C()?x():p.current&&vl(p.current,v))}),T=I.useCallback(()=>{su.remove(b(),v)},[v]);I.useEffect(()=>()=>{T()},[T]),I.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=Gl(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:ru(()=>{g(!1),a&&a()},s?.props.onEnter??ou),onExited:ru(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??ou)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function lu(e){return Qi(`MuiModal`,e)}z(`MuiModal`,[`root`,`hidden`,`backdrop`]);var uu=e=>{let{open:t,exited:n,classes:r}=e;return bo({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},lu,r)},du=V(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Hl(({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`}}]}))),fu=V(tu,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),pu=I.forwardRef(function(e,t){let n=Kc({name:`MuiModal`,props:e}),{BackdropComponent:r=fu,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:k,getBackdropProps:A,getTransitionProps:j,portalRef:te,isTopModal:M,exited:ne,hasTransition:N}=cu({...ee,rootRef:t}),re={...ee,exited:ne},ie=uu(re),ae={};if(c.props.tabIndex===void 0&&(ae.tabIndex=`-1`),N){let{onEnter:e,onExited:t}=j();ae.onEnter=e,ae.onExited=t}let oe={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[se,ce]=Jl(`root`,{ref:t,elementType:du,externalForwardedProps:{...oe,...O,component:u},getSlotProps:k,ownerState:re,className:R(o,ie?.root,!re.open&&re.exited&&ie?.hidden)}),[le,ue]=Jl(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>A({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:R(i?.className,ie?.backdrop),ownerState:re});return!b&&!w&&(!N||ne)?null:(0,L.jsx)(Vl,{ref:te,container:l,disablePortal:g,children:(0,L.jsxs)(se,{...ce,children:[!y&&r?(0,L.jsx)(le,{...ue}):null,(0,L.jsx)(Rl,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:M,open:w,children:I.cloneElement(c,ae)})]})})});function mu(e){return Qi(`MuiPaper`,e)}z(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var hu=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return bo({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},mu,i)},gu=V(`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}`]]}})(Hl(({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)`}}]}))),_u=I.forwardRef(function(e,t){let n=Kc({props:e,name:`MuiPaper`}),r=Ms(),{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=hu(u);return(0,L.jsx)(gu,{as:a,ownerState:u,className:R(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(${Ca(`#fff`,ps(o))}, ${Ca(`#fff`,ps(o))})`}},...l.style}})});function vu(e){return Qi(`MuiPopover`,e)}z(`MuiPopover`,[`root`,`paper`]);var yu=Br;function bu(e){return Qi(`MuiSvgIcon`,e)}z(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var xu=e=>{let{color:t,fontSize:n,classes:r}=e;return bo({root:[`root`,t!==`inherit`&&`color${yu(t)}`,`fontSize${yu(n)}`]},bu,r)},Su=V(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${yu(n.color)}`],t[`fontSize${yu(n.fontSize)}`]]}})(Hl(({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}}]}))),Cu=I.forwardRef(function(e,t){let n=Kc({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=I.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=xu(m);return(0,L.jsxs)(Su,{as:o,className:R(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,L.jsx)(`title`,{children:u}):null]})});Cu.muiName=`SvgIcon`;function wu(e,t){function n(t,n){return(0,L.jsx)(Cu,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Cu.muiName,I.memo(I.forwardRef(n))}var Tu=xo,Eu=fa,Du=Ka;function Ou(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=I.useRef(t!==void 0),[o,s]=I.useState(n);return[a?t:o,I.useCallback(e=>{a||s(e)},[])]}var ku=Ou,Au=nu;function ju(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Mu(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{ju(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=R(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=R(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]]}}}function Nu(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Pu(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Fu(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Iu(e){return typeof e==`function`?e():e}var Lu=e=>{let{classes:t}=e;return bo({root:[`root`],paper:[`paper`]},vu,t)},Ru=V(pu,{name:`MuiPopover`,slot:`Root`})({}),zu=V(_u,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Bu=I.forwardRef(function(e,t){let n=Kc({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=I.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Lu(w),E=I.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Iu(i),t=(e&&e.nodeType===1?e:Xc(C.current).body).getBoundingClientRect();return{top:t.top+Nu(t,a.vertical),left:t.left+Pu(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=I.useCallback(e=>({vertical:Nu(e,_.vertical),horizontal:Pu(e,_.horizontal)}),[_.horizontal,_.vertical]),O=I.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:Fu(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Qc(Iu(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:Fu(n)}},[i,s,E,D,f]),[ee,k]=I.useState(p),A=I.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,k(!0)},[O]);I.useEffect(()=>(x&&window.addEventListener(`scroll`,A),()=>window.removeEventListener(`scroll`,A)),[i,x,A]);let j=()=>{A()},te=()=>{k(!1)};I.useEffect(()=>{p&&A()}),I.useImperativeHandle(r,()=>p?{updatePosition:()=>{A()}}:null,[p,A]),I.useEffect(()=>{if(!p)return;let e=Jc(()=>{A()}),t=Qc(Iu(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,A]);let M=y,ne={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[N,re]=Jl(`transition`,{elementType:hl,externalForwardedProps:ne,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),j()},onExited:t=>{e.onExited?.(t),te()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!N.muiSupportAuto&&(M=void 0);let ie=u||(i?Xc(Iu(i)).body:void 0),[ae,{slots:oe,slotProps:se,...ce}]=Jl(`root`,{ref:t,elementType:Ru,externalForwardedProps:{...ne,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Mu(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:ie,open:p},ownerState:w,className:R(T.root,l)}),[le,ue]=Jl(`paper`,{ref:C,className:T.paper,elementType:zu,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,L.jsx)(ae,{...ce,...!Uc(ae)&&{slots:oe,slotProps:se,disableScrollLock:x},children:(0,L.jsx)(N,{...re,timeout:M,children:(0,L.jsx)(le,{...ue,children:c})})})}),Vu={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`},Hu={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`},Uu=s({background:()=>pd,backgroundDark:()=>md,black:()=>Dd,blueGrey100:()=>Ld,blueGrey300:()=>Rd,blueGrey600:()=>zd,blueGrey900:()=>Bd,border:()=>bd,borderDark:()=>Sd,borderGray:()=>Cd,borderLight:()=>xd,buttonBorder:()=>Zd,buttonFocusOutline:()=>Pd,buttonHoverBg:()=>Qd,correct:()=>Yu,correctSecondary:()=>Xu,correctTertiary:()=>Zu,correctWithIcon:()=>Qu,defaults:()=>U,disabled:()=>Ku,disabledSecondary:()=>qu,disabledText:()=>Ju,dropdownBackground:()=>gd,editorToolbar:()=>Xd,fadedPrimary:()=>cd,focusChecked:()=>Ad,focusCheckedBorder:()=>jd,focusOutline:()=>Fd,focusUnchecked:()=>Md,focusUncheckedBorder:()=>Nd,incorrect:()=>$u,incorrectSecondary:()=>td,incorrectWithIcon:()=>ed,keyBoardFocusIndicator:()=>Id,keypadButton:()=>Ud,keypadButtonHover:()=>Kd,keypadButtonOperator:()=>Wd,keypadButtonOperatorHover:()=>qd,keypadEmptyPlaceholder:()=>Gd,keypadInk:()=>Yd,missing:()=>nd,missingWithIcon:()=>rd,primary:()=>id,primaryDark:()=>od,primaryLight:()=>ad,primaryText:()=>sd,secondary:()=>ld,secondaryBackground:()=>hd,secondaryDark:()=>dd,secondaryLight:()=>ud,secondaryText:()=>fd,surface:()=>_d,tableGrid:()=>wd,tableGridLight:()=>Td,tableStripe:()=>Ed,tertiary:()=>vd,tertiaryLight:()=>yd,text:()=>Gu,transparent:()=>kd,v:()=>Wu,visualElementsColors:()=>$d,white:()=>Od}),U={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:`#208537`,CORRECT_SECONDARY:ko[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:`#a65f00`,INCORRECT_SECONDARY:To[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:To[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Hu[500],PRIMARY_LIGHT:Hu[200],PRIMARY_DARK:Hu[800],SECONDARY:Vu.A400,SECONDARY_LIGHT:Vu[200],SECONDARY_DARK:Vu[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(U);var Wu=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},W=Wu(`pie`),Gu=()=>W(`text`,U.TEXT),Ku=()=>W(`disabled`,U.DISABLED),qu=()=>W(`disabled-secondary`,U.DISABLED_SECONDARY),Ju=()=>W(`disabled-text`,`text`,U.DISABLED_TEXT),Yu=()=>W(`correct`,U.CORRECT),Xu=()=>W(`correct-secondary`,U.CORRECT_SECONDARY),Zu=()=>W(`correct-tertiary`,U.CORRECT_TERTIARY),Qu=()=>W(`correct-icon`,U.CORRECT_WITH_ICON),$u=()=>W(`incorrect`,U.INCORRECT),ed=()=>W(`incorrect-icon`,U.INCORRECT_WITH_ICON),td=()=>W(`incorrect-secondary`,U.INCORRECT_SECONDARY),nd=()=>W(`missing`,U.MISSING),rd=()=>W(`missing-icon`,U.MISSING_WITH_ICON),id=()=>W(`primary`,U.PRIMARY),ad=()=>W(`primary-light`,U.PRIMARY_LIGHT),od=()=>W(`primary-dark`,U.PRIMARY_DARK),sd=()=>W(`primary-text`,`text`,U.TEXT),cd=()=>W(`faded-primary`,U.FADED_PRIMARY),ld=()=>W(`secondary`,U.SECONDARY),ud=()=>W(`secondary-light`,U.SECONDARY_LIGHT),dd=()=>W(`secondary-dark`,U.SECONDARY_DARK),fd=()=>W(`secondary-text`,`text`,U.TEXT),pd=()=>W(`background`,U.BACKGROUND),md=()=>W(`background-dark`,U.BACKGROUND_DARK),hd=()=>W(`secondary-background`,U.SECONDARY_BACKGROUND),gd=()=>W(`dropdown-background`,U.DROPDOWN_BACKGROUND),_d=()=>W(`surface`,U.SURFACE),vd=()=>W(`tertiary`,U.TERTIARY),yd=()=>W(`tertiary-light`,U.TERTIARY_LIGHT),bd=()=>W(`border`,U.BORDER),xd=()=>W(`border-light`,U.BORDER_LIGHT),Sd=()=>W(`border-dark`,U.BORDER_DARK),Cd=()=>W(`border-gray`,U.BORDER_GRAY),wd=()=>W(`table-grid`,`text`,U.TABLE_GRID),Td=()=>W(`table-grid-light`,`border-light`,U.TABLE_GRID_LIGHT),Ed=()=>W(`table-stripe`,`background-dark`,U.TABLE_STRIPE),Dd=()=>W(`black`,U.BLACK),Od=()=>W(`white`,U.WHITE),kd=()=>U.TRANSPARENT,Ad=()=>W(`focus-checked`,U.FOCUS_CHECKED),jd=()=>W(`focus-checked-border`,U.FOCUS_CHECKED_BORDER),Md=()=>W(`focus-unchecked`,U.FOCUS_UNCHECKED),Nd=()=>W(`focus-unchecked-border`,U.FOCUS_UNCHECKED_BORDER),Pd=()=>W(`button-focus-outline`,U.BUTTON_FOCUS_OUTLINE),Fd=()=>W(`focus-outline`,`button-focus-outline`,`focus-checked-border`,U.FOCUS_CHECKED_BORDER),Id=Fd,Ld=()=>W(`blue-grey-100`,U.BLUE_GREY100),Rd=()=>W(`blue-grey-300`,U.BLUE_GREY300),zd=()=>W(`blue-grey-600`,U.BLUE_GREY600),Bd=()=>W(`blue-grey-900`,U.BLUE_GREY900),Vd=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)},Hd=(e,t)=>`color-mix(in srgb, rgb(${Vd(e).map(e=>(e-255*(1-t))/t).join(` `)}) ${t*100}%, ${W(`background`,U.WHITE)})`,Ud=()=>W(`keypad-button`,Hd(U.KEYPAD_BUTTON,.5)),Wd=()=>W(`keypad-button-operator`,Hd(U.KEYPAD_BUTTON_OPERATOR,.5)),Gd=()=>W(`keypad-empty-placeholder`,U.KEYPAD_EMPTY_PLACEHOLDER),Kd=()=>W(`keypad-button-hover`,Hd(U.KEYPAD_BUTTON_HOVER,.25)),qd=()=>W(`keypad-button-operator-hover`,Hd(U.KEYPAD_BUTTON_OPERATOR_HOVER,.25)),Jd=`clamp(0.6, (r + g + b) / 450, 1)`,Yd=()=>`rgb(from ${Gu()} calc(r * ${Jd}) calc(g * ${Jd}) calc(b * ${Jd}))`,Xd=()=>Hd(U.EDITOR_TOOLBAR,.125),Zd=()=>W(`button-border`,U.BUTTON_BORDER),Qd=()=>W(`button-hover-bg`,U.BUTTON_HOVER_BG),$d={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},ef=V(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),tf=V(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${md()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, ${Gu()})`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Xu()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${td()})`}}),nf=V(`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`}}),rf=class extends I.Component{static propTypes={correctness:P.string,feedback:P.string};nodeRef=I.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,L.jsx)(cc,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,L.jsx)(nf,{ref:this.nodeRef,children:(0,L.jsx)(ef,{children:(0,L.jsx)(tf,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,L.jsx)(`div`,{children:(0,L.jsx)(_c,{children:this.renderFeedback()})})}},af=s({Correct:()=>df,Incorrect:()=>ff,NothingSubmitted:()=>mf,PartiallyCorrect:()=>pf}),of=v(`pie-libs:render-ui:response-indicators`),sf=V(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),cf=V(Bu)({cursor:`pointer`}),lf=V(`div`)({padding:`0`,borderRadius:`4px`}),uf=(e,t)=>{class n extends I.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{of(`[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,L.jsxs)(sf,{hasFeedback:!!n,children:[(0,L.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,L.jsx)(e,{})}),n&&(0,L.jsx)(cf,{PaperComponent:lf,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,L.jsx)(rf,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:P.string},n},df=uf(Oc,`correct`),ff=uf(Fc,`incorrect`),pf=uf(Hc,`partially-correct`),mf=uf(zc,`nothing-submitted`);function hf(e){return Qi(`MuiCollapse`,e)}z(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var gf=e=>{let{orientation:t,classes:n}=e;return bo({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},hf,n)},_f=V(`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]}})(Hl(({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`}}]}))),vf=V(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),yf=V(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),bf=I.forwardRef(function(e,t){let n=Kc({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=ns.standard,TransitionComponent:x=ic,...S}=n,C={...n,orientation:g,collapsedSize:o},w=gf(C),T=Ms(),E=il(),D=I.useRef(null),O=I.useRef(),ee=typeof o==`number`?`${o}px`:o,k=g===`horizontal`,A=k?`width`:`height`,j=I.useRef(null),te=dl(t,j),M=()=>D.current?D.current[k?`clientWidth`:`clientHeight`]:0,ne=sl(j,(e,t)=>{D.current&&k&&(D.current.style.position=`absolute`),e.style[A]=ee,u&&u(e,t)}),N=sl(j,(e,t)=>{let n=M();D.current&&k&&(D.current.style.position=``);let{duration:r,easing:i}=ll({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[A]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),re=sl(j,(e,t)=>{e.style[A]=`auto`,d&&d(e,t)}),ie=sl(j,e=>{e.style[A]=`${M()}px`,p&&p(e)}),ae=sl(j,m),oe=sl(j,e=>{let t=M(),{duration:n,easing:r}=ll({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[A]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),se=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(j.current,e)},ce={slots:_,slotProps:v,component:s},[le,ue]=Jl(`root`,{ref:te,className:R(w.root,a),elementType:_f,externalForwardedProps:ce,ownerState:C,additionalProps:{style:{[k?`minWidth`:`minHeight`]:ee,...y}}}),[de,fe]=Jl(`wrapper`,{ref:D,className:w.wrapper,elementType:vf,externalForwardedProps:ce,ownerState:C}),[pe,me]=Jl(`wrapperInner`,{className:w.wrapperInner,elementType:yf,externalForwardedProps:ce,ownerState:C});return(0,L.jsx)(x,{in:l,onEnter:ne,onEntered:re,onEntering:N,onExit:ie,onExited:ae,onExiting:oe,addEndListener:se,nodeRef:j,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,L.jsx)(le,{...ue,className:R(ue.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,L.jsx)(de,{...fe,ownerState:r,children:(0,L.jsx)(pe,{...me,ownerState:r,children:i})})})}})});bf&&(bf.muiSupportAuto=!0);var xf=`4.1.3`,Sf=`https://github.com/pie-framework/pie-elements-ng/blob/develop/docs/MATH-RENDERING.md#assets`,Cf=`@pie-lib/math-rendering@2`,wf=[`nemeth`,`euro`],Tf=`mathjax@${xf}/sre`,Ef=/^[^@]+@[^@]+$/;function Df(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(!Ef.test(r))continue;let i=n[e-1]?.startsWith(`@`)?e-1:e;return t.origin+n.slice(0,i).join(`/`)}}function Of(){let e=globalThis[Cf]?.opts;return e&&typeof e==`object`?e:{}}function kf(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 Af(e){if(!e||typeof e!=`object`)return;let t=new Map;for(let[n,r]of Object.entries(e)){let e=kf(r);e&&t.set(n,e)}return t.size?t:void 0}function jf(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 Mf(e,t){let n=Of(),r=kf(e.assetRoot??n.assetRoot)??Df(t);return{root:r,speechPath:kf(e.speechPath??n.speechPath)??(r?`${r}/${Tf}`:void 0),speechLocales:jf(e.speechLocales??n.speechLocales),urls:Af(e.assetUrls??n.assetUrls)}}function Nf(e,t){if(!(!e||!t)){for(let n of[...e.keys()])!t.has(n)&&!wf.includes(n)&&e.delete(n);for(let[n,r]of t)(r||!e.has(n))&&e.set(n,r??n)}}function Pf(e){if(!(!e||e.has(`en`)))return[...e.keys()].find(e=>!wf.includes(e))}var Ff=`pie-mathjax-no-asset-root`,If={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`},Lf=Symbol.for(`@pie-element/shared-math-rendering-mathjax/no-assets`);function Rf(e){let t=globalThis;t[Lf]??=[];let n=t[Lf];if(n.includes(e))return;n.push(e);let r=`[math-rendering] No asset root for MathJax: ${If[e]}. Set window['${Cf}'].opts.assetRoot to an npm root. See ${Sf}`;e===`untypeset`?console.error(r):console.warn(r),!(typeof window>`u`)&&window.dispatchEvent(new CustomEvent(Ff,{detail:{effect:e,message:r,docsUrl:Sf}}))}var zf=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,Bf=`pie-mathjax-version-conflict`,Vf=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function Hf(e,t){if(typeof window>`u`)return;let n=globalThis;n[Vf]??={logged:!1,conditions:[]};let r=n[Vf];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 ${zf}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(Bf,{detail:{condition:e,message:i,docsUrl:zf}}))}function Uf(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}function Wf(){return window.MathJax}function Gf(e,{root:t,speechPath:n}){t&&(e.loader={...e.loader,paths:{fonts:`${t}/@mathjax`,"mathjax-newcm":`${t}/@mathjax/mathjax-newcm-font@${xf}`,"mathjax-mhchem-extension":`${t}/@mathjax/mathjax-mhchem-font-extension@${xf}`}}),n&&(e.options={...e.options,worker:{path:n,maps:`${n}/mathmaps`}})}function Kf(e,t){let n=t.srcUrl||(t.root?`${t.root}/mathjax@4.1.3/tex-mml-chtml.js`:void 0);return n?(Gf(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)})):(Rf(`untypeset`),Promise.resolve(!1))}var qf=globalThis,Jf=`PIE-MJX-CHTML-styles`,Yf=[`MJX-CHTML-styles`,`MJX-SVG-styles`],Xf=Uf,Zf=`http://www.w3.org/1998/Math/MathML`,Qf=/^([a-z_][\w.-]*):math$/,$f=/^[a-z][a-z0-9-]*$/;function ep(e){for(let t of e.querySelectorAll(`*`)){let n=Qf.exec(t.tagName.toLowerCase())?.[1];!n||!e.contains(t)||t.closest(`mjx-container`)||t.replaceWith(tp(t,`${n}:`))}}function tp(e,t){let n=e.tagName.toLowerCase().slice(t.length);if(!$f.test(n))return e;let r=e.ownerDocument.createElementNS(Zf,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?tp(n,t):n)}return r}var np=new Set([`updiagonalstrike`,`downdiagonalstrike`,`verticalstrike`,`horizontalstrike`]),rp={thin:`0.035em`,medium:`0.07em`,thick:`0.14em`},ip={tight:`0em`,medium:`0.1em`,loose:`0.2em`},ap=/^(\d+(\.\d*)?|\.\d+)(em|ex|px|pt|pc|in|cm|mm)$/,op=/^(#[0-9a-f]{3,8}|[a-z]+)$/i,sp=/^(\d+(\.\d*)?|\.\d+)$/,cp=new Set([`mn`,`mo`,`mi`,`mtext`]),lp=new Set([`stackalign`,`charalign`,`charspacing`,`longdivstyle`]);function up(e,t,n=[],r={}){let i=e.createElementNS(Zf,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 dp(e,t){let n=up(e.document,`mo`);return n.textContent=t,n}function fp(e){let t=up(e.document,`mn`);return t.textContent=`0`,up(e.document,`mphantom`,[t])}function pp(e,t){return e.getAttribute(t)?.trim().toLowerCase()||void 0}function mp(e,t){let n=Number.parseInt(e.getAttribute(t)??``,10);return Number.isFinite(n)?n:0}function hp(e){return e.localName===`none`||e.localName===`mrow`&&e.children.length===0&&!e.textContent?.trim()}function gp(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 _p(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(hp(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 cp.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:gp(r.length,n.stackAlign,i??a),position:t}}function vp(e){return(e??``).toLowerCase().split(/\s+/).filter(e=>np.has(e))}function yp(e,t){let n=[...e.children].filter(e=>!hp(e));return n.length<=1?n[0]??null:up(t.document,`mrow`,n)}function bp(e,t,n){let r=pp(e,`location`)??`n`,i=vp(e.getAttribute(`crossout`)),a=[...e.children].map(e=>hp(e)?null:e.localName===`mscarry`?{content:yp(e,n),location:pp(e,`location`)??r,crossout:e.hasAttribute(`crossout`)?vp(e.getAttribute(`crossout`)):i}:{content:e,location:r,crossout:i}),o=e.getAttribute(`scriptsizemultiplier`)?.trim()??``;return{kind:`carries`,carries:a,anchor:gp(a.length,n.stackAlign),position:t,scale:sp.test(o)?o:`0.6`}}function xp(e){let t=pp(e,`mslinethickness`)??`medium`,n=rp[t]??(ap.test(t)?t:`0.07em`),r=e.getAttribute(`mathcolor`)?.trim()??``;return`${n} solid ${op.test(r)?r:`currentColor`}`}function Sp(e,t,n){let r=Math.max(0,mp(e,`length`));return{kind:`line`,length:r,anchor:gp(r,n.stackAlign),position:t,border:xp(e)}}function Cp(e,t,n,r,i){e.forEach((e,a)=>{let o=t+a*n+mp(e,`position`);switch(e.localName){case`msgroup`:Cp([...e.children],o,mp(e,`shift`),r,i);break;case`msline`:i.push(Sp(e,o,r));break;case`mscarries`:i.push(bp(e,o,r));break;case`msrow`:case`mrow`:i.push(_p([...e.children],o,r));break;default:i.push(_p([e],o,r))}})}function wp(e){return-e.anchor-e.position}function Tp(e){return e.kind===`digits`?e.cells.length:e.kind===`carries`?e.carries.length:e.length}function Ep(e){return wp(e)+Tp(e)-1}function Dp(e,t,n,r){let i=e=>up(r.document,`mpadded`,[t],{width:`0`,...e?{lspace:e}:{}}),a=(e,t)=>up(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 Op(e,t,n){let r=up(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?up(n.document,`mpadded`,[r],{lspace:`-${i}em`,width:`-${2*i}em`}):r}function kp(e,t,n,r,i){let a=e&&t.crossout.length?Op(e,t.crossout,i):e;if(!t.content)return a;let o=up(i.document,`mstyle`,[t.content],{scriptsizemultiplier:r});return Dp(a??fp(i),o,n,i)}function Ap(e,t){return e.carries[t-wp(e)]??null}function jp(e,t,n,r){let i=e.content;n.forEach((e,a)=>{let o=n.length-1-a,s=n[o],c=Ap(s,t),l=n.slice(0,o).some(e=>Ap(e,t));if(!c&&!l)return;let u=c??{content:fp(r),location:`n`,crossout:[]},d=a===0?u.location:`n`;i=kp(i,u,d,s.scale,r)}),e.content=i}function Mp(e,t){let n=e.filter(e=>Tp(e)>0),r=Math.min(0,...n.map(wp)),i=Math.max(r,...n.map(Ep))-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+wp(e)+n),u=[],d=[],f=e=>{let n=c();e.cells.forEach((t,r)=>{n[a+wp(e)+r].content=t}),u.length&&n.forEach((e,n)=>{jp(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 Np(e,{rows:t},n){let r=up(n.document,`mtable`,t.map(e=>up(n.document,`mtr`,e.map(e=>{let t=Object.entries(e.borders).map(([e,t])=>`border-${e}:${t}`).join(`;`);return up(n.document,`mtd`,[e.content],{...t?{style:t}:{},...e.align?{columnalign:e.align}:{}})}))));for(let{name:t,value:n}of[...e.attributes])lp.has(t)||r.setAttribute(t,n);let i=pp(e,`charspacing`)??`medium`,a=pp(e,`charalign`);return r.setAttribute(`columnspacing`,ip[i]??(ap.test(i)?i:ip.medium)),r.setAttribute(`columnalign`,a===`left`||a===`center`?a:`right`),r.setAttribute(`rowspacing`,`0`),r.setAttribute(`align`,e.getAttribute(`align`)??`baseline`),r}function Pp(e){return{document:e.ownerDocument,stackAlign:pp(e,`stackalign`)??`decimalpoint`,decimalPoint:e.closest(`[decimalpoint]`)?.getAttribute(`decimalpoint`)?.trim().charAt(0)||`.`}}function Fp(e){let t=Pp(e),n=[];return Cp([...e.children],0,0,t,n),Np(e,Mp(n,t),t)}function Ip(e,t,n,r,i,a){for(let o=n;o<=r;o++)e[t][o].borders[i]=a}function Lp(e,t){let n=dp(t,`)`);return n.setAttribute(`minsize`,`1.2em`),[up(t.document,`mrow`,[e,up(t.document,`mspace`,[],{width:`0.2em`})]),up(t.document,`mpadded`,[n],{voffset:`0.1em`,lspace:`-0.15em`,depth:`-0.2em`,height:`-0.2em`})]}function Rp(e){let t=Pp(e),[n,r,...i]=[...e.children],a=n&&!hp(n)?n:null,o=r&&!hp(r)?r:null,s=pp(e,`longdivstyle`)??`lefttop`,c=xp(e),l=[];Cp(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(..._p(n,0,t).cells)};switch(s){case`left/\\right`:f(a,dp(t,`/`)),p(dp(t,`\\`),o);break;case`left)(right`:f(a,dp(t,`)`)),p(dp(t,`(`),o);break;case`:right=right`:p(dp(t,`:`),a,dp(t,`=`),o);break;case`righttop`:case`stackedleftlinetop`:case`lefttop`:o&&Cp([o],0,0,t,d),l.splice(l.indexOf(u),0,...d),s===`righttop`?p(a):s===`stackedleftlinetop`?f(a):f(...Lp(a,t));break}let m=Mp(l,t),h=m.rows,g=m.rowOf.get(u)??0,_=e=>m.origin+wp(u)+e,v=Math.max(_(u.cells.length-1),...d.map(e=>m.origin+Ep(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,Ip(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,Ip(h,g,_(1),v,`top`,c);break}case`stackedrightright`:case`mediumstackedrightright`:case`shortstackedrightright`:case`stackedleftleft`:zp(h,g,s,a,o,c,t);break;default:Ip(h,g,_(1),v,`top`,c)}return Np(e,m,t)}function zp(e,t,n,r,i,a,o){let s=n===`stackedleftleft`,c=s?`right`:`left`,l=e=>e&&up(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 Bp(e){for(let t of[...e.querySelectorAll(`mstack, mlongdiv`)])!t.closest(`math`)||t.closest(`mjx-container`)||t.replaceWith(t.localName===`mstack`?Fp(t):Rp(t))}var Vp=`PIE-MJX-explorer-styles`,Hp=`var(--pie-text, black)`,Up=`var(--pie-background, #ffffff)`,Wp=`var(--pie-border-dark, #66686A)`,Gp=`var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565C0)))`,Kp=`color-mix(in srgb, ${Gp} 15%, transparent)`,qp=`
|
|
42
|
+
export default theme;`}function cs(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var ls=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 us(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})`:Sa(t,ls(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${cs(n)})`:Ea(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${cs(n)})`:wa(t,n)}})}function ds(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(Qe(20));let d=Ho({...a,colorSpace:l}),f=zi(e),p=Cr(f,{mixins:Wo(f.breakpoints,r),palette:d,shadows:$o.slice(),typography:Jo(d,s),transitions:is(o),zIndex:{...as}});return p=Cr(p,u),p=t.reduce((e,t)=>Cr(e,t),p),p.unstable_sxConfig={...Ni,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Li({sx:e,theme:this})},p.toRuntimeSource=ss,us(p),p}function fs(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var ps=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=fs(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ms(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function hs(e){return e===`dark`?ps:[]}function gs(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=Ho({...t,colorSpace:i});return{palette:o,opacity:{...ms(o.mode),...n},overlays:r||hs(o.mode),...a}}function _s(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 vs=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],ys=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 vs(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 bs(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function V(e,t,n){!e[t]&&n&&(e[t]=n)}function xs(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:ya(e)}function Ss(e,t){`${t}Channel`in e||(e[`${t}Channel`]=_a(xs(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 Cs(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var ws=e=>{try{return e()}catch{}},Ts=(e=`mui`)=>fo(e);function Es(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=gs({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=ds({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...ms(a),...n?.opacity},overlays:n?.overlays||hs(a)},s}function Ds(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=_s,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=Ts(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(Qe(21,f));let b;o&&(b=`oklch`);let x=Es(b,v,y,u,f);h&&!v.light&&Es(b,v,h,void 0,`light`),g&&!v.dark&&Es(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Uo(x.typography),...x.font},spacing:Cs(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`&&(V(t.common,`background`,`#fff`),V(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(V(t.common,`background`,`#000`),V(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===Ca&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===Ta&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Da&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(bs(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){V(t.Alert,`errorColor`,r(Ta,o?p(`palette-error-light`):t.error.light,.6)),V(t.Alert,`infoColor`,r(Ta,o?p(`palette-info-light`):t.info.light,.6)),V(t.Alert,`successColor`,r(Ta,o?p(`palette-success-light`):t.success.light,.6)),V(t.Alert,`warningColor`,r(Ta,o?p(`palette-warning-light`):t.warning.light,.6)),V(t.Alert,`errorFilledBg`,n(`palette-error-main`)),V(t.Alert,`infoFilledBg`,n(`palette-info-main`)),V(t.Alert,`successFilledBg`,n(`palette-success-main`)),V(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),V(t.Alert,`errorFilledColor`,ws(()=>t.getContrastText(t.error.main))),V(t.Alert,`infoFilledColor`,ws(()=>t.getContrastText(t.info.main))),V(t.Alert,`successFilledColor`,ws(()=>t.getContrastText(t.success.main))),V(t.Alert,`warningFilledColor`,ws(()=>t.getContrastText(t.warning.main))),V(t.Alert,`errorStandardBg`,r(Da,o?p(`palette-error-light`):t.error.light,.9)),V(t.Alert,`infoStandardBg`,r(Da,o?p(`palette-info-light`):t.info.light,.9)),V(t.Alert,`successStandardBg`,r(Da,o?p(`palette-success-light`):t.success.light,.9)),V(t.Alert,`warningStandardBg`,r(Da,o?p(`palette-warning-light`):t.warning.light,.9)),V(t.Alert,`errorIconColor`,n(`palette-error-main`)),V(t.Alert,`infoIconColor`,n(`palette-info-main`)),V(t.Alert,`successIconColor`,n(`palette-success-main`)),V(t.Alert,`warningIconColor`,n(`palette-warning-main`)),V(t.AppBar,`defaultBg`,n(`palette-grey-100`)),V(t.Avatar,`defaultBg`,n(`palette-grey-400`)),V(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),V(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),V(t.Chip,`defaultBorder`,n(`palette-grey-400`)),V(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),V(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),V(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),V(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),V(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),V(t.LinearProgress,`primaryBg`,r(Da,o?p(`palette-primary-main`):t.primary.main,.62)),V(t.LinearProgress,`secondaryBg`,r(Da,o?p(`palette-secondary-main`):t.secondary.main,.62)),V(t.LinearProgress,`errorBg`,r(Da,o?p(`palette-error-main`):t.error.main,.62)),V(t.LinearProgress,`infoBg`,r(Da,o?p(`palette-info-main`):t.info.main,.62)),V(t.LinearProgress,`successBg`,r(Da,o?p(`palette-success-main`):t.success.main,.62)),V(t.LinearProgress,`warningBg`,r(Da,o?p(`palette-warning-light`):t.warning.main,.62)),V(t.Skeleton,`bg`,b?r(Ca,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),V(t.Slider,`primaryTrack`,r(Da,o?p(`palette-primary-main`):t.primary.main,.62)),V(t.Slider,`secondaryTrack`,r(Da,o?p(`palette-secondary-main`):t.secondary.main,.62)),V(t.Slider,`errorTrack`,r(Da,o?p(`palette-error-main`):t.error.main,.62)),V(t.Slider,`infoTrack`,r(Da,o?p(`palette-info-main`):t.info.main,.62)),V(t.Slider,`successTrack`,r(Da,o?p(`palette-success-main`):t.success.main,.62)),V(t.Slider,`warningTrack`,r(Da,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(Ta,o?p(`palette-background-default`):t.background.default,.6825):ka(t.background.default,.8);V(t.SnackbarContent,`bg`,e),V(t.SnackbarContent,`color`,ws(()=>b?Mo.text.primary:t.getContrastText(e))),V(t.SpeedDialAction,`fabHoverBg`,ka(t.background.paper,.15)),V(t.StepConnector,`border`,n(`palette-grey-400`)),V(t.StepContent,`border`,n(`palette-grey-400`)),V(t.Switch,`defaultColor`,n(`palette-common-white`)),V(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),V(t.Switch,`primaryDisabledColor`,r(Da,o?p(`palette-primary-main`):t.primary.main,.62)),V(t.Switch,`secondaryDisabledColor`,r(Da,o?p(`palette-secondary-main`):t.secondary.main,.62)),V(t.Switch,`errorDisabledColor`,r(Da,o?p(`palette-error-main`):t.error.main,.62)),V(t.Switch,`infoDisabledColor`,r(Da,o?p(`palette-info-main`):t.info.main,.62)),V(t.Switch,`successDisabledColor`,r(Da,o?p(`palette-success-main`):t.success.main,.62)),V(t.Switch,`warningDisabledColor`,r(Da,o?p(`palette-warning-main`):t.warning.main,.62)),V(t.TableCell,`border`,r(Da,Ca(o?p(`palette-divider`):t.divider,1),.88)),V(t.Tooltip,`bg`,r(Ca,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){V(t.Alert,`errorColor`,r(Da,o?p(`palette-error-light`):t.error.light,.6)),V(t.Alert,`infoColor`,r(Da,o?p(`palette-info-light`):t.info.light,.6)),V(t.Alert,`successColor`,r(Da,o?p(`palette-success-light`):t.success.light,.6)),V(t.Alert,`warningColor`,r(Da,o?p(`palette-warning-light`):t.warning.light,.6)),V(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),V(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),V(t.Alert,`successFilledBg`,n(`palette-success-dark`)),V(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),V(t.Alert,`errorFilledColor`,ws(()=>t.getContrastText(t.error.dark))),V(t.Alert,`infoFilledColor`,ws(()=>t.getContrastText(t.info.dark))),V(t.Alert,`successFilledColor`,ws(()=>t.getContrastText(t.success.dark))),V(t.Alert,`warningFilledColor`,ws(()=>t.getContrastText(t.warning.dark))),V(t.Alert,`errorStandardBg`,r(Ta,o?p(`palette-error-light`):t.error.light,.9)),V(t.Alert,`infoStandardBg`,r(Ta,o?p(`palette-info-light`):t.info.light,.9)),V(t.Alert,`successStandardBg`,r(Ta,o?p(`palette-success-light`):t.success.light,.9)),V(t.Alert,`warningStandardBg`,r(Ta,o?p(`palette-warning-light`):t.warning.light,.9)),V(t.Alert,`errorIconColor`,n(`palette-error-main`)),V(t.Alert,`infoIconColor`,n(`palette-info-main`)),V(t.Alert,`successIconColor`,n(`palette-success-main`)),V(t.Alert,`warningIconColor`,n(`palette-warning-main`)),V(t.AppBar,`defaultBg`,n(`palette-grey-900`)),V(t.AppBar,`darkBg`,n(`palette-background-paper`)),V(t.AppBar,`darkColor`,n(`palette-text-primary`)),V(t.Avatar,`defaultBg`,n(`palette-grey-600`)),V(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),V(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),V(t.Chip,`defaultBorder`,n(`palette-grey-700`)),V(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),V(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),V(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),V(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),V(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),V(t.LinearProgress,`primaryBg`,r(Ta,o?p(`palette-primary-main`):t.primary.main,.5)),V(t.LinearProgress,`secondaryBg`,r(Ta,o?p(`palette-secondary-main`):t.secondary.main,.5)),V(t.LinearProgress,`errorBg`,r(Ta,o?p(`palette-error-main`):t.error.main,.5)),V(t.LinearProgress,`infoBg`,r(Ta,o?p(`palette-info-main`):t.info.main,.5)),V(t.LinearProgress,`successBg`,r(Ta,o?p(`palette-success-main`):t.success.main,.5)),V(t.LinearProgress,`warningBg`,r(Ta,o?p(`palette-warning-main`):t.warning.main,.5)),V(t.Skeleton,`bg`,b?r(Ca,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),V(t.Slider,`primaryTrack`,r(Ta,o?p(`palette-primary-main`):t.primary.main,.5)),V(t.Slider,`secondaryTrack`,r(Ta,o?p(`palette-secondary-main`):t.secondary.main,.5)),V(t.Slider,`errorTrack`,r(Ta,o?p(`palette-error-main`):t.error.main,.5)),V(t.Slider,`infoTrack`,r(Ta,o?p(`palette-info-main`):t.info.main,.5)),V(t.Slider,`successTrack`,r(Ta,o?p(`palette-success-main`):t.success.main,.5)),V(t.Slider,`warningTrack`,r(Ta,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(Da,o?p(`palette-background-default`):t.background.default,.985):ka(t.background.default,.98);V(t.SnackbarContent,`bg`,e),V(t.SnackbarContent,`color`,ws(()=>b?Ao.text.primary:t.getContrastText(e))),V(t.SpeedDialAction,`fabHoverBg`,ka(t.background.paper,.15)),V(t.StepConnector,`border`,n(`palette-grey-600`)),V(t.StepContent,`border`,n(`palette-grey-600`)),V(t.Switch,`defaultColor`,n(`palette-grey-300`)),V(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),V(t.Switch,`primaryDisabledColor`,r(Ta,o?p(`palette-primary-main`):t.primary.main,.55)),V(t.Switch,`secondaryDisabledColor`,r(Ta,o?p(`palette-secondary-main`):t.secondary.main,.55)),V(t.Switch,`errorDisabledColor`,r(Ta,o?p(`palette-error-main`):t.error.main,.55)),V(t.Switch,`infoDisabledColor`,r(Ta,o?p(`palette-info-main`):t.info.main,.55)),V(t.Switch,`successDisabledColor`,r(Ta,o?p(`palette-success-main`):t.success.main,.55)),V(t.Switch,`warningDisabledColor`,r(Ta,o?p(`palette-warning-light`):t.warning.main,.55)),V(t.TableCell,`border`,r(Ta,Ca(o?p(`palette-divider`):t.divider,1),.68)),V(t.Tooltip,`bg`,r(Ca,o?p(`palette-grey-700`):t.grey[700],.92))}o||(Ss(t.background,`default`),Ss(t.background,`paper`),Ss(t.common,`background`),Ss(t.common,`onBackground`),Ss(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&V(t[e],`mainChannel`,_a(xs(n.main))),n.light&&V(t[e],`lightChannel`,_a(xs(n.light))),n.dark&&V(t[e],`darkChannel`,_a(xs(n.dark))),n.contrastText&&V(t[e],`contrastTextChannel`,_a(xs(n.contrastText))),e===`text`&&(Ss(t[e],`primary`),Ss(t[e],`secondary`)),e===`action`&&(n.active&&Ss(t[e],`active`),n.selected&&Ss(t[e],`selected`)))})}),S=t.reduce((e,t)=>Cr(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:ys(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=_o(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 ai(u.spacing,Zr(this))},S.getColorSchemeSelector=vo(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Ni,...u?.unstable_sxConfig},S.unstable_sx=function(e){return Li({sx:e,theme:this})},S.toRuntimeSource=ss,S}function Os(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ho({...n===!0?{}:n.palette,mode:t})})}function ks(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 ds(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=ds({...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},Os(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Os(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Ds({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var As=ks();function js(){let e=Ui(As);return e.$$material||e}function Ms(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Ns=e=>Ms(e)&&e!==`classes`,H=oa({themeId:$e,defaultTheme:As,rootShouldForwardProp:Ns});function Ps({theme:e,...t}){let n=`$$material`in e?e[$e]:void 0;return(0,z.jsx)(Ya,{...t,themeId:n?$e:void 0,theme:n||e})}var Fs={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:Is,useColorScheme:Ls,getInitColorSchemeScript:Rs}=uo({themeId:$e,theme:()=>ks({cssVariables:!0}),colorSchemeStorageKey:Fs.colorSchemeStorageKey,modeStorageKey:Fs.modeStorageKey,defaultColorScheme:{light:Fs.defaultLightColorScheme,dark:Fs.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Jo(e.palette,e.typography)};return t.unstable_sx=function(e){return Li({sx:e,theme:this})},t}}),zs=Is;function Bs({theme:e,...t}){let n=R.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[$e]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,z.jsx)(Ps,{theme:n,...t}):(0,z.jsx)(zs,{theme:e,...t})}function Vs(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 Hs(e,t){return Hs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hs(e,t)}function Us(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hs(e,t)}function Ws(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function Gs(e,t){e.classList?e.classList.add(t):Ws(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function Ks(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function qs(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=Ks(e.className,t):e.setAttribute(`class`,Ks(e.className&&e.className.baseVal||``,t))}var Js={disabled:!1},Ys=R.createContext(null),Xs=function(e){return e.scrollTop},Zs=l(h()),Qs=`unmounted`,$s=`exited`,ec=`entering`,tc=`entered`,nc=`exiting`,rc=function(e){Us(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=$s,r.appearStatus=ec):o=tc:o=t.unmountOnExit||t.mountOnEnter?Qs:$s,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:$s}: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=ec):(n===`entering`||n===`entered`)&&(t=nc)}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:Zs.findDOMNode(this);n&&Xs(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Qs})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Zs.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||Js.disabled){this.safeSetState({status:tc},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:ec},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:tc},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:Zs.findDOMNode(this);if(!t||Js.disabled){this.safeSetState({status:$s},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:nc},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:$s},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:Zs.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=Vs(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return R.createElement(Ys.Provider,{value:null},typeof n==`function`?n(e,r):R.cloneElement(R.Children.only(n),r))},t}(R.Component);rc.contextType=Ys,rc.propTypes={};function ic(){}rc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ic,onEntering:ic,onEntered:ic,onExit:ic,onExiting:ic,onExited:ic},rc.UNMOUNTED=Qs,rc.EXITED=$s,rc.ENTERING=ec,rc.ENTERED=tc,rc.EXITING=nc;var ac=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Gs(e,t)})},oc=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return qs(e,t)})},sc=function(e){Us(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&&Xs(e),r&&(this.appliedClasses[t][n]=r,ac(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&&oc(e,r),i&&oc(e,i),a&&oc(e,a)},n.render=function(){var e=this.props;e.classNames;var t=Vs(e,[`classNames`]);return R.createElement(rc,et({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(R.Component);sc.defaultProps={classNames:``},sc.propTypes={};function cc(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function lc(e,t){var n=function(e){return t&&(0,R.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&R.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function uc(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 dc(e,t,n){return n[t]==null?e.props[t]:n[t]}function fc(e,t){return lc(e.children,function(n){return(0,R.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:dc(n,`appear`,e),enter:dc(n,`enter`,e),exit:dc(n,`exit`,e)})})}function pc(e,t,n){var r=lc(e.children),i=uc(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,R.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,R.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,R.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:dc(o,`exit`,e),enter:dc(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,R.cloneElement)(o,{in:!1}):c&&s&&(0,R.isValidElement)(l)&&(i[a]=(0,R.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:dc(o,`exit`,e),enter:dc(o,`enter`,e)}))}}),i}var mc=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},hc={component:`div`,childFactory:function(e){return e}},gc=function(e){Us(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(cc(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?fc(e,r):pc(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=lc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=et({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Vs(e,[`component`,`childFactory`]),i=this.state.contextValue,a=mc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?R.createElement(Ys.Provider,{value:i},a):R.createElement(Ys.Provider,{value:i},R.createElement(t,r,a))},t}(R.Component);gc.propTypes={},gc.defaultProps=hc;var _c=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,vc=({size:e,children:t})=>(e=_c(e),(0,z.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));vc.propTypes={size:I.number,children:I.oneOfType([I.arrayOf(I.node),I.node]).isRequired};var yc=({size:e,children:t,sx:n})=>(0,z.jsx)(vc,{size:e,children:(0,z.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t})});yc.propTypes={size:I.oneOfType([I.string,I.number]),children:I.oneOfType([I.arrayOf(I.node),I.node]).isRequired,sx:I.object};var bc=({fill:e})=>(0,z.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});bc.propTypes={fill:I.string.isRequired};var U=({fill:e})=>(0,z.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});U.propTypes={fill:I.string.isRequired};var xc=({fill:e})=>(0,z.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});xc.propTypes={fill:I.string.isRequired};var Sc=({fill:e})=>(0,z.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});Sc.propTypes={fill:I.string.isRequired};var Cc=({fill:e})=>(0,z.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});Cc.propTypes={fill:I.string.isRequired};var wc=(e,t)=>{class n extends R.Component{static propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,size:I.oneOfType([I.number,I.string]),fg:I.string,bg:I.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,z.jsx)(e,{fill:s}):(0,z.jsx)(t,{fill:s}),u=n===`check`?(0,z.jsx)(e,{fill:c}):(0,z.jsx)(t,{fill:c});return a?(0,z.jsx)(yc,{size:o,children:u}):(0,z.jsxs)(yc,{size:o,children:[i===`feedback`?r===`round`?(0,z.jsx)(xc,{fill:c}):(0,z.jsx)(U,{fill:c}):r===`round`?(0,z.jsx)(Sc,{fill:c}):(0,z.jsx)(Cc,{fill:c}),l]})}}return n},Tc=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(1, 0)`,children:[(0,z.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
|
|
44
|
+
c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e}),(0,z.jsx)(`rect`,{x:`21.1`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e}),(0,z.jsx)(`rect`,{x:`12.7`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e})]});Tc.propTypes={fill:I.string.isRequired};var Ec=({fill:e,x:t=0,y:n=0})=>(0,z.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});Ec.propTypes={fill:I.string.isRequired,x:I.number,y:I.number};var Dc=wc(Ec,Tc);Dc.propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string,size:I.oneOfType([I.string,I.number])},Dc.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};var Oc=({bgFill:e,fgFill:t})=>(0,z.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,z.jsx)(`circle`,{cx:`-266`,cy:`375.9`,r:`14`,fill:e}),(0,z.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
|
|
45
|
+
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,z.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})]});Oc.propTypes={bgFill:I.string.isRequired,fgFill:I.string.isRequired};var kc=({bgFill:e,fgFill:t,borderFill:n})=>(0,z.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,z.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
|
|
46
|
+
C-97.4,153.5-104.3,160.4-112.9,160.4z`}),(0,z.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,z.jsx)(`circle`,{cx:`-114.2`,cy:`143.5`,r:`14`,fill:e}),(0,z.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
|
|
47
|
+
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,z.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})]});kc.propTypes={bgFill:I.string.isRequired,fgFill:I.string.isRequired,borderFill:I.string.isRequired};var Ac=H(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),jc=({open:e,size:t})=>(0,z.jsx)(Ac,{size:t,children:e?(0,z.jsx)(Oc,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,z.jsx)(kc,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});jc.propTypes={open:I.bool,size:I.string},jc.defaultProps={open:!1};var Mc=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,z.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,z.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})]});Mc.propTypes={fill:I.string.isRequired};var Nc=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,z.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,z.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,z.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});Nc.propTypes={fill:I.string.isRequired};var Pc=wc(Mc,Nc);Pc.propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string,size:I.oneOfType([I.string,I.number])},Pc.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var Fc=({fill:e})=>(0,z.jsxs)(`g`,{children:[(0,z.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,z.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});Fc.propTypes={fill:I.string.isRequired};var Ic=({fill:e})=>(0,z.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});Ic.propTypes={fill:I.string.isRequired};var Lc=({fill:e})=>(0,z.jsxs)(`g`,{children:[(0,z.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,z.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,z.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
|
|
48
|
+
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Lc.propTypes={fill:I.string.isRequired};var Rc=class extends R.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,z.jsxs)(yc,{children:[(0,z.jsx)(Ic,{fill:n}),(0,z.jsx)(Fc,{fill:t})]}),emoji:(0,z.jsxs)(yc,{children:[(0,z.jsx)(Ic,{fill:n}),(0,z.jsx)(Lc,{fill:t})]}),feedback:{check:(0,z.jsxs)(yc,{children:[(0,z.jsx)(Ic,{fill:n}),(0,z.jsx)(Lc,{fill:t})]}),emoji:(0,z.jsxs)(yc,{children:[(0,z.jsx)(Ic,{fill:n}),(0,z.jsx)(Lc,{fill:t})]}),square:{check:(0,z.jsxs)(yc,{children:[(0,z.jsx)(Ic,{fill:n}),(0,z.jsx)(Fc,{fill:t})]}),emoji:(0,z.jsxs)(yc,{children:[(0,z.jsx)(Ic,{fill:n}),(0,z.jsx)(Lc,{fill:t})]}),open:{check:(0,z.jsx)(yc,{children:(0,z.jsx)(Fc,{fill:n})}),emoji:(0,z.jsx)(yc,{children:(0,z.jsx)(Lc,{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]}};Rc.propTypes={iconSet:I.oneOf([`emoji`,`check`,void 0]),shape:I.oneOf([`square`,void 0]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string},Rc.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var zc=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,z.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,z.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});zc.propTypes={fill:I.string.isRequired};var Bc=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,z.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,z.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,z.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})]});Bc.propTypes={fill:I.string.isRequired};var Vc=wc(zc,Bc);Vc.propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string,size:I.oneOfType([I.string,I.number])},Vc.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Hc(e){return typeof e==`string`}function Uc(e){return(0,z.jsx)(Gi,{...e,defaultTheme:As,themeId:$e})}function Wc(e){return function(t){return(0,z.jsx)(Uc,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function Gc(e){return Va(e)}function Kc(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var qc=Kc;function Jc(e){return e&&e.ownerDocument||document}var Yc=Jc;function Xc(e){return Jc(e).defaultView||window}var Zc=Xc,Qc={};function $c(e,t){let n=R.useRef(Qc);return n.current===Qc&&(n.current=e(t)),n}var el=[];function tl(e){R.useEffect(e,el)}var nl=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 rl(){let e=$c(nl.create).current;return tl(e.disposeEffect),e}function il(e){return e?.ref||null}var al=e=>e.scrollTop;function ol(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function sl(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function cl(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 ll(...e){let t=R.useRef(void 0),n=R.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 R.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var ul=ll;function dl(e){return`scale(${e}, ${e**2})`}var fl={entering:{opacity:1,transform:dl(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:dl(.75)},exited:{opacity:0,transform:dl(.75)}},pl={opacity:0,transform:dl(.75),visibility:`hidden`},ml=R.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=rl(),_=R.useRef(),v=js(),y=R.useRef(null),b=ul(y,il(i),t),x=ol(y,l),S=ol(y,(e,t)=>{al(e);let{duration:n,delay:r,easing:i}=cl({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=ol(y,c),w=ol(y,f),T=ol(y,e=>{let{duration:t,delay:n,easing:r}=cl({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=dl(.75),u&&u(e)}),E=ol(y,e=>{e.style.transition=``,d&&d(e)});return(0,z.jsx)(rc,{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=sl(e,o,fl,pl,p,i.props.style);return R.cloneElement(i,{style:r,ref:b,...n})}})});ml&&(ml.muiSupportAuto=!0);function hl(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function gl(e){let t=Jc(e);return t.body===e?Xc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function _l(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function vl(e){return parseFloat(Xc(e).getComputedStyle(e).paddingRight)||0}function yl(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 bl(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!yl(e);t&&n&&_l(e,i)})}function xl(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function Sl(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(gl(r)){let e=hl(Xc(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${vl(r)+e}px`;let t=Jc(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${vl(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Jc(r).body;else{let t=r.parentElement,n=Xc(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 Cl(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var wl=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&&_l(e.modalRef,!1);let r=Cl(t);bl(t,e.mount,e.modalRef,r,!0);let i=xl(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=xl(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Sl(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=xl(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&&_l(e.modalRef,t),bl(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&&_l(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Tl(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 El=Tl;function Dl(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Ol=Dl,kl=`data-mui-focusable`;function Al(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${kl}]`):null}var jl=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function Ml(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 Nl(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 Pl(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||Nl(e))}function Fl(e){let t=[],n=[];return Array.from(e.querySelectorAll(jl)).forEach((e,r)=>{let i=Ml(e);i===-1||!Pl(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 Il(){return!0}function Ll(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Fl,isEnabled:o=Il,open:s}=e,c=R.useRef(!1),l=R.useRef(null),u=R.useRef(null),d=R.useRef(null),f=R.useRef(null),p=R.useRef(!1),m=R.useRef(null),h=ll(il(t),m),g=R.useRef(null);R.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),R.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Ol(Jc(m.current)),t=Al(m.current)??m.current;return El(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]),R.useEffect(()=>{if(!s||!m.current)return;let e=Jc(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Ol(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Ol(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(El(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=Ol(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,z.jsxs)(R.Fragment,{children:[(0,z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),R.cloneElement(t,{ref:h,onFocus:_}),(0,z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function Rl(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function zl(e){return typeof e==`function`?e():e}var Bl=R.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=R.useState(null),s=ll(R.isValidElement(n)?il(n):null,t);if(da(()=>{i||o(zl(r)||document.body)},[r,i]),da(()=>{if(a&&!i)return Rl(t,a),()=>{Rl(t,null)}},[t,a,i]),i){if(R.isValidElement(n)){let e={ref:s};return R.cloneElement(n,e)}return n}return a&&Zs.createPortal(n,a)}),Vl=Za;function Hl(e,t,n){return e===void 0||Hc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ul(e,t,n){return typeof e==`function`?e(t,n):e}function Wl(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 Gl(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 Kl(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=B(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=Wl({...i,...r}),s=Gl(r),c=Gl(i),l=t(o),u=B(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 ql(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=Ul(d[e],i),{props:{component:h,...g},internalRef:_}=Kl({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=ll(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Hl(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var Jl={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Yl={opacity:0,visibility:`hidden`},Xl=R.forwardRef(function(e,t){let n=js(),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=R.useRef(null),y=ul(v,il(o),t),b=ol(v,d),x=ol(v,(e,t)=>{al(e);let r=cl({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=ol(v,u),C=ol(v,m),w=ol(v,e=>{let t=cl({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=ol(v,e=>{e.style.transition=``,p&&p(e)});return(0,z.jsx)(rc,{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=sl(e,c,Jl,Yl,h,o.props.style);return R.cloneElement(o,{style:r,ref:y,...n})}})});function Zl(e){return Xi(`MuiBackdrop`,e)}Zi(`MuiBackdrop`,[`root`,`invisible`]);var Ql=e=>{let{classes:t,invisible:n}=e;return yo({root:[`root`,n&&`invisible`]},Zl,t)},$l=H(`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`}}]}),eu=R.forwardRef(function(e,t){let n=Gc({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=Ql(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=ql(`root`,{elementType:$l,externalForwardedProps:_,className:B(g.root,i),ownerState:h}),[b,x]=ql(`transition`,{elementType:Xl,externalForwardedProps:_,ownerState:h});return(0,z.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,z.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function tu(e){let t=R.useRef(e);return da(()=>{t.current=e}),R.useRef((...e)=>(0,t.current)(...e)).current}function nu(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function ru(e){return typeof e==`function`?e():e}function iu(e){return e?e.props.hasOwnProperty(`in`):!1}var au=()=>{},ou=new wl;function su(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=R.useRef({}),f=R.useRef(null),p=R.useRef(null),m=ll(p,u),[h,g]=R.useState(!l),_=iu(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Jc(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{ou.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=tu(()=>{let e=ru(t)||y().body;ou.add(b(),e),p.current&&x()}),C=()=>ou.isTopModal(b()),w=tu(e=>{f.current=e,e&&(l&&C()?x():p.current&&_l(p.current,v))}),T=R.useCallback(()=>{ou.remove(b(),v)},[v]);R.useEffect(()=>()=>{T()},[T]),R.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=Wl(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:nu(()=>{g(!1),a&&a()},s?.props.onEnter??au),onExited:nu(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??au)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function cu(e){return Xi(`MuiModal`,e)}Zi(`MuiModal`,[`root`,`hidden`,`backdrop`]);var lu=e=>{let{open:t,exited:n,classes:r}=e;return yo({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},cu,r)},uu=H(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Vl(({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`}}]}))),du=H(eu,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),fu=R.forwardRef(function(e,t){let n=Gc({name:`MuiModal`,props:e}),{BackdropComponent:r=du,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:k,getBackdropProps:A,getTransitionProps:j,portalRef:te,isTopModal:M,exited:ne,hasTransition:N}=su({...ee,rootRef:t}),re={...ee,exited:ne},ie=lu(re),ae={};if(c.props.tabIndex===void 0&&(ae.tabIndex=`-1`),N){let{onEnter:e,onExited:t}=j();ae.onEnter=e,ae.onExited=t}let oe={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[se,ce]=ql(`root`,{ref:t,elementType:uu,externalForwardedProps:{...oe,...O,component:u},getSlotProps:k,ownerState:re,className:B(o,ie?.root,!re.open&&re.exited&&ie?.hidden)}),[le,ue]=ql(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>A({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:B(i?.className,ie?.backdrop),ownerState:re});return!b&&!w&&(!N||ne)?null:(0,z.jsx)(Bl,{ref:te,container:l,disablePortal:g,children:(0,z.jsxs)(se,{...ce,children:[!y&&r?(0,z.jsx)(le,{...ue}):null,(0,z.jsx)(Ll,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:M,open:w,children:R.cloneElement(c,ae)})]})})});function pu(e){return Xi(`MuiPaper`,e)}Zi(`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 mu=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return yo({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},pu,i)},hu=H(`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}`]]}})(Vl(({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)`}}]}))),gu=R.forwardRef(function(e,t){let n=Gc({props:e,name:`MuiPaper`}),r=js(),{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=mu(u);return(0,z.jsx)(hu,{as:a,ownerState:u,className:B(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(${Sa(`#fff`,fs(o))}, ${Sa(`#fff`,fs(o))})`}},...l.style}})});function _u(e){return Xi(`MuiPopover`,e)}Zi(`MuiPopover`,[`root`,`paper`]);var vu=Rr;function yu(e){return Xi(`MuiSvgIcon`,e)}Zi(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var bu=e=>{let{color:t,fontSize:n,classes:r}=e;return yo({root:[`root`,t!==`inherit`&&`color${vu(t)}`,`fontSize${vu(n)}`]},yu,r)},xu=H(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${vu(n.color)}`],t[`fontSize${vu(n.fontSize)}`]]}})(Vl(({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}}]}))),Su=R.forwardRef(function(e,t){let n=Gc({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=R.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=bu(m);return(0,z.jsxs)(xu,{as:o,className:B(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,z.jsx)(`title`,{children:u}):null]})});Su.muiName=`SvgIcon`;function Cu(e,t){function n(t,n){return(0,z.jsx)(Su,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Su.muiName,R.memo(R.forwardRef(n))}var wu=bo,Tu=da,Eu=Ga;function Du(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=R.useRef(t!==void 0),[o,s]=R.useState(n);return[a?t:o,R.useCallback(e=>{a||s(e)},[])]}var Ou=Du,ku=tu;function Au(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function ju(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Au(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=B(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=B(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]]}}}function Mu(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Nu(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Pu(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Fu(e){return typeof e==`function`?e():e}var Iu=e=>{let{classes:t}=e;return yo({root:[`root`],paper:[`paper`]},_u,t)},Lu=H(fu,{name:`MuiPopover`,slot:`Root`})({}),Ru=H(gu,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),zu=R.forwardRef(function(e,t){let n=Gc({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=R.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Iu(w),E=R.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Fu(i),t=(e&&e.nodeType===1?e:Yc(C.current).body).getBoundingClientRect();return{top:t.top+Mu(t,a.vertical),left:t.left+Nu(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=R.useCallback(e=>({vertical:Mu(e,_.vertical),horizontal:Nu(e,_.horizontal)}),[_.horizontal,_.vertical]),O=R.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:Pu(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Zc(Fu(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:Pu(n)}},[i,s,E,D,f]),[ee,k]=R.useState(p),A=R.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,k(!0)},[O]);R.useEffect(()=>(x&&window.addEventListener(`scroll`,A),()=>window.removeEventListener(`scroll`,A)),[i,x,A]);let j=()=>{A()},te=()=>{k(!1)};R.useEffect(()=>{p&&A()}),R.useImperativeHandle(r,()=>p?{updatePosition:()=>{A()}}:null,[p,A]),R.useEffect(()=>{if(!p)return;let e=qc(()=>{A()}),t=Zc(Fu(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,A]);let M=y,ne={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[N,re]=ql(`transition`,{elementType:ml,externalForwardedProps:ne,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),j()},onExited:t=>{e.onExited?.(t),te()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!N.muiSupportAuto&&(M=void 0);let ie=u||(i?Yc(Fu(i)).body:void 0),[ae,{slots:oe,slotProps:se,...ce}]=ql(`root`,{ref:t,elementType:Lu,externalForwardedProps:{...ne,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:ju(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:ie,open:p},ownerState:w,className:B(T.root,l)}),[le,ue]=ql(`paper`,{ref:C,className:T.paper,elementType:Ru,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,z.jsx)(ae,{...ce,...!Hc(ae)&&{slots:oe,slotProps:se,disableScrollLock:x},children:(0,z.jsx)(N,{...re,timeout:M,children:(0,z.jsx)(le,{...ue,children:c})})})});function Bu(e,t){this.v=e,this.k=t}function Vu(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 Hu(e){if(Array.isArray(e))return e}function Uu(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 Wu(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
49
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gu(e,t){return Hu(e)||Uu(e,t)||Ku(e,t)||Wu()}function Ku(e,t){if(e){if(typeof e==`string`)return Vu(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)?Vu(e,t):void 0}}function qu(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof Bu;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)}qu.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},qu.prototype.next=function(e){return this._invoke(`next`,e)},qu.prototype.throw=function(e){return this._invoke(`throw`,e)},qu.prototype.return=function(e){return this._invoke(`return`,e)};var Ju=Object.entries,Yu=Object.setPrototypeOf,Xu=Object.isFrozen,Zu=Object.getPrototypeOf,Qu=Object.getOwnPropertyDescriptor,$u=Object.freeze,ed=Object.seal,td=Object.create,nd=typeof Reflect<`u`&&Reflect,rd=nd.apply,id=nd.construct;$u||=function(e){return e},ed||=function(e){return e},rd||=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)},id||=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 ad=Td(Array.prototype.forEach);Array.prototype.indexOf;var od=Td(Array.prototype.lastIndexOf),sd=Td(Array.prototype.pop),cd=Td(Array.prototype.push);Array.prototype.slice;var ld=Td(Array.prototype.splice),ud=Array.isArray,dd=Td(String.prototype.toLowerCase),fd=Td(String.prototype.toString),pd=Td(String.prototype.match),md=Td(String.prototype.replace),hd=Td(String.prototype.indexOf),gd=Td(String.prototype.trim),_d=Td(Number.prototype.toString),vd=Td(Boolean.prototype.toString),yd=typeof BigInt>`u`?null:Td(BigInt.prototype.toString),bd=typeof Symbol>`u`?null:Td(Symbol.prototype.toString),xd=Td(Object.prototype.hasOwnProperty),Sd=Td(Object.prototype.toString),Cd=Td(RegExp.prototype.test),wd=Ed(TypeError);function Td(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 rd(e,t,r)}}function Ed(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return id(e,n)}}function Dd(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:dd;if(Yu&&Yu(e,null),!ud(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Xu(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Od(e){for(let t=0;t<e.length;t++)xd(e,t)||(e[t]=null);return e}function kd(e){let t=td(null);for(let r of Ju(e)){var n=Gu(r,2);let i=n[0],a=n[1];xd(e,i)&&(ud(a)?t[i]=Od(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=kd(a):t[i]=a)}return t}function Ad(e){switch(typeof e){case`string`:return e;case`number`:return _d(e);case`boolean`:return vd(e);case`bigint`:return yd?yd(e):`0`;case`symbol`:return bd?bd(e):`Symbol()`;case`undefined`:return Sd(e);case`function`:case`object`:{if(e===null)return Sd(e);let t=e,n=jd(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Sd(e)}return Sd(e)}default:return Sd(e)}}function jd(e,t){for(;e!==null;){let n=Qu(e,t);if(n){if(n.get)return Td(n.get);if(typeof n.value==`function`)return Td(n.value)}e=Zu(e)}function n(){return null}return n}function Md(e){try{return Cd(e,``),!0}catch{return!1}}var Nd=$u(`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(`.`)),Pd=$u(`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(`.`)),Fd=$u([`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`]),Id=$u([`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`]),Ld=$u(`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(`.`)),Rd=$u([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),zd=$u([`#text`]),Bd=$u(`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(`.`)),Vd=$u(`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(`.`)),Hd=$u(`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(`.`)),Ud=$u([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Wd=ed(/{{[\w\W]*|^[\w\W]*}}/g),Gd=ed(/<%[\w\W]*|^[\w\W]*%>/g),Kd=ed(/\${[\w\W]*/g),qd=ed(/^data-[\-\w.\u00B7-\uFFFF]+$/),Jd=ed(/^aria-[\-\w]+$/),Yd=ed(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xd=ed(/^(?:\w+script|data):/i),Zd=ed(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qd=ed(/^html$/i),$d=ed(/^[a-z][.\w]*(-[.\w]+)+$/i),ef=ed(/<[/\w!]/g),tf=ed(/<[/\w]/g),nf=ed(/<\/no(script|embed|frames)/i),rf=ed(/\/>/i),af={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},of=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],sf=$u(Dd({},of)),cf=function(){let e={};return ad(of,t=>{e[t]=ed(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),$u(e)}(),lf=function(){return typeof window>`u`?null:window},uf=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}},df=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ff=function(e,t,n,r){return xd(e,t)&&ud(e[t])?Dd(r.base?kd(r.base):{},e[t],r.transform):n},pf=function(e,t,n){let r=xd(e,t)?e[t]:void 0;return r&&typeof r==`object`?kd(r):n()};function mf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lf(),t=e=>mf(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==af.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=jd(d,`cloneNode`),p=jd(d,`remove`),m=jd(d,`removeAttributeNode`),h=jd(d,`nextSibling`),g=jd(d,`childNodes`),_=jd(d,`parentNode`),v=jd(d,`shadowRoot`),y=jd(d,`attributes`),b=o&&o.prototype?jd(o.prototype,`nodeType`):null,x=o&&o.prototype?jd(o.prototype,`nodeName`):null,S=o&&o.prototype?jd(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,k=function(){if(ee>0)throw wd(`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.`)},A=function(e){k(),ee++;try{return T.createHTML(e)}finally{ee--}},j=function(e){k(),ee++;try{return T.createScriptURL(e)}finally{ee--}},te=function(){return O||=(D=uf(u,i),!0),D},M=n,ne=M.implementation,N=M.createNodeIterator,re=M.createDocumentFragment,ie=M.getElementsByTagName,ae=r.importNode,oe=df();t.isSupported=typeof Ju==`function`&&typeof _==`function`&&ne&&ne.createHTMLDocument!==void 0;let se=Wd,ce=Gd,le=Kd,ue=qd,de=Jd,fe=Xd,pe=Zd,me=$d,he=Yd,P=null,ge=Dd({},[...Nd,...Pd,...Fd,...Ld,...zd]),F=null,_e=Dd({},[...Bd,...Vd,...Hd,...Ud]),ve=Object.seal(td(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}})),ye=null,be=null,xe=Object.seal(td(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Se=!0,Ce=!0,we=!1,Te=!0,Ee=!1,De=!0,Oe=!1,ke=!1,Ae=null,je=null,Me=!1,Ne=!1,Pe=!1,Fe=!1,Ie=!0,Le=!1,Re=`user-content-`,ze=!0,Be=!1,Ve={},He=null,Ue=Dd({},`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(`.`)),We=null,Ge=Dd({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ke=null,qe=Dd({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Je=`http://www.w3.org/1998/Math/MathML`,Ye=`http://www.w3.org/2000/svg`,Xe=`http://www.w3.org/1999/xhtml`,Ze=Xe,I=!1,Qe=null,$e=Dd({},[Je,Ye,Xe],fd),et=$u([`mi`,`mo`,`mn`,`ms`,`mtext`]),tt=Dd({},et),nt=$u([`annotation-xml`]),rt=Dd({},nt),it=Dd({},[`title`,`style`,`font`,`a`,`script`]),at=null,ot=[`application/xhtml+xml`,`text/html`],st=null,ct=null,lt=n.createElement(`form`),ut=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ct&&ct===e)return;(!e||typeof e!=`object`)&&(e={}),e=kd(e),at=ot.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,st=at===`application/xhtml+xml`?fd:dd,P=ff(e,`ALLOWED_TAGS`,ge,{transform:st}),F=ff(e,`ALLOWED_ATTR`,_e,{transform:st}),Qe=ff(e,`ALLOWED_NAMESPACES`,$e,{transform:fd}),Ke=ff(e,`ADD_URI_SAFE_ATTR`,qe,{transform:st,base:qe}),We=ff(e,`ADD_DATA_URI_TAGS`,Ge,{transform:st,base:Ge}),He=ff(e,`FORBID_CONTENTS`,Ue,{transform:st}),ye=ff(e,`FORBID_TAGS`,kd({}),{transform:st}),be=ff(e,`FORBID_ATTR`,kd({}),{transform:st}),Ve=xd(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?kd(e.USE_PROFILES):e.USE_PROFILES:!1,Se=e.ALLOW_ARIA_ATTR!==!1,Ce=e.ALLOW_DATA_ATTR!==!1,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=e.SAFE_FOR_TEMPLATES||!1,De=e.SAFE_FOR_XML!==!1,Oe=e.WHOLE_DOCUMENT||!1,Ne=e.RETURN_DOM||!1,Pe=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Ie=e.SANITIZE_DOM!==!1,Le=e.SANITIZE_NAMED_PROPS||!1,ze=e.KEEP_CONTENT!==!1,Be=e.IN_PLACE||!1,he=Md(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Yd,Ze=typeof e.NAMESPACE==`string`?e.NAMESPACE:Xe,tt=pf(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Dd({},et)),rt=pf(e,`HTML_INTEGRATION_POINTS`,()=>Dd({},nt));let t=pf(e,`CUSTOM_ELEMENT_HANDLING`,()=>td(null));if(ve=td(null),xd(t,`tagNameCheck`)&&ut(t.tagNameCheck)&&(ve.tagNameCheck=t.tagNameCheck),xd(t,`attributeNameCheck`)&&ut(t.attributeNameCheck)&&(ve.attributeNameCheck=t.attributeNameCheck),xd(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ve.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),ed(ve),Ee&&(Ce=!1),Pe&&(Ne=!0),Ve&&(P=Dd({},zd),F=td(null),Ve.html===!0&&(Dd(P,Nd),Dd(F,Bd)),Ve.svg===!0&&(Dd(P,Pd),Dd(F,Vd),Dd(F,Ud)),Ve.svgFilters===!0&&(Dd(P,Fd),Dd(F,Vd),Dd(F,Ud)),Ve.mathMl===!0&&(Dd(P,Ld),Dd(F,Hd),Dd(F,Ud))),xe.tagCheck=null,xe.attributeCheck=null,xd(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?xe.tagCheck=e.ADD_TAGS:ud(e.ADD_TAGS)&&(P===ge&&(P=kd(P)),Dd(P,e.ADD_TAGS,st))),xd(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?xe.attributeCheck=e.ADD_ATTR:ud(e.ADD_ATTR)&&(F===_e&&(F=kd(F)),Dd(F,e.ADD_ATTR,st))),xd(e,`ADD_FORBID_CONTENTS`)&&ud(e.ADD_FORBID_CONTENTS)&&(He===Ue&&(He=kd(He)),Dd(He,e.ADD_FORBID_CONTENTS,st)),ze&&(P[`#text`]=!0),Oe&&Dd(P,[`html`,`head`,`body`]),P.table&&(Dd(P,[`tbody`]),delete ye.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw wd(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw wd(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=T;T=e.TRUSTED_TYPES_POLICY;try{E=A(``)}catch(e){throw T=t,e}}else e.TRUSTED_TYPES_POLICY===null?(T=void 0,E=``):(T===void 0&&(T=te()),T&&typeof E==`string`&&(E=A(``)));$u&&$u(e),ct=e},ft=Dd({},[...Pd,...Fd,...Id]),pt=Dd({},[...Ld,...Rd]),mt=function(e,t,n){return t.namespaceURI===Xe?e===`svg`:t.namespaceURI===Je?e===`svg`&&(n===`annotation-xml`||tt[n]):!!ft[e]},ht=function(e,t,n){return t.namespaceURI===Xe?e===`math`:t.namespaceURI===Ye?e===`math`&&rt[n]:!!pt[e]},gt=function(e,t,n){return t.namespaceURI===Ye&&!rt[n]||t.namespaceURI===Je&&!tt[n]?!1:!pt[e]&&(it[e]||!ft[e])},_t=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:Ze,tagName:`template`});let n=dd(e.tagName),r=dd(t.tagName);return Qe[e.namespaceURI]?e.namespaceURI===Ye?mt(n,t,r):e.namespaceURI===Je?ht(n,t,r):e.namespaceURI===Xe?gt(n,t,r):!!(at===`application/xhtml+xml`&&Qe[e.namespaceURI]):!1},vt=function(e){cd(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw wd(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},L=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},yt=function(e){St(e);let t=g(e);if(t){let e=[];ad(t,t=>{cd(e,t)}),ad(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`&&L(e,r,i)}},bt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}cd(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(Ne||Pe)try{vt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},xt=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`||F[st(i)]||L(e,r,i)}},St=function(e){let t=[e];for(;t.length>0;){let e=t.pop();C(e)===af.element&&xt(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Ct=function(e,t){return De?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},wt=function(e){if(!De)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=C(e);if(n===af.processingInstruction||n===af.comment&&Cd(tf,e.data)){try{p(e)}catch{}continue}if(n===af.element){let t=e,n=st(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Ct(`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])}},Tt=function(e){let t=null,r=null;if(Me)e=`<remove></remove>`+e;else{let t=pd(e,/^[\r\n\t ]+/);r=t&&t[0]}at===`application/xhtml+xml`&&Ze===Xe&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=T?A(e):e;if(Ze===Xe)try{t=new l().parseFromString(i,at)}catch{}if(!t||!t.documentElement){t=ne.createDocument(Ze,`template`,null);try{t.documentElement.innerHTML=I?E:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ze===Xe?ie.call(t,Oe?`html`:`body`)[0]:Oe?t.documentElement:a},Et=function(e){let t=S?S(e):e.ownerDocument;return N.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Dt=function(e){return e=md(e,se,` `),e=md(e,ce,` `),e=md(e,le,` `),e},Ot=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=N.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=Dt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&ad(i,e=>{At(e.content)&&Ot(e.content)})},kt=function(e){let t=x?x(e):null;return typeof t!=`string`||st(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)},At=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===af.documentFragment}catch{return!1}},jt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Mt(e,n,r){e.length!==0&&ad(e,e=>{e.call(t,n,r,ct)})}let Nt=function(e,t){return!!(De&&e.hasChildNodes()&&!jt(e.firstElementChild)&&Cd(ef,e.textContent)&&Cd(ef,e.innerHTML)||De&&e.namespaceURI===Xe&&sf[t]&&(jt(e.firstElementChild)||typeof e.textContent==`string`&&Cd(cf[t],e.textContent))||e.nodeType===af.processingInstruction||De&&e.nodeType===af.comment&&Cd(tf,e.data))},Pt=function(e,t){if(e instanceof RegExp)return Cd(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},Ft=function(e,t,n){if(!ye[t]&&Vt(t)&&Pt(ve.tagNameCheck,t))return!1;if(ze&&!He[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 vt(e),!0},It=function(e,t,n,r){return e.length===0?t:t===n||t===r?kd(t):t},Lt=function(e,t){return e===t||_(e)!==null?!1:(Be&&St(e),!0)},Rt=function(e,n){if(Mt(oe.beforeSanitizeElements,e,null),Lt(e,n))return!0;if(kt(e))return vt(e),!0;let r=st(w(e));if(P=It(oe.uponSanitizeElement,P,ge,Ae),Mt(oe.uponSanitizeElement,e,{tagName:r,allowedTags:P}),Lt(e,n))return!0;if(Nt(e,r))return vt(e),!0;if(ye[r]||!(xe.tagCheck instanceof Function&&xe.tagCheck(r))&&!P[r]){let t=Ft(e,r,n);return t===!1&&(Mt(oe.afterSanitizeElements,e,null),Lt(e,n))?!0:t}if(C(e)===af.element&&!_t(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Cd(nf,e.innerHTML))return vt(e),!0;if(Ee&&e.nodeType===af.text){let n=Dt(e.textContent);e.textContent!==n&&(cd(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Mt(oe.afterSanitizeElements,e,null),Lt(e,n)},zt=function(e,t,r){if(be[t]||Ct(t,e)||Ie&&(t===`id`||t===`name`)&&(r in n||r in lt))return!1;let i=F[t]||xe.attributeCheck instanceof Function&&xe.attributeCheck(t,e);return Ce&&Cd(ue,t)||Se&&Cd(de,t)?!0:i?Ke[t]||Cd(he,md(r,pe,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&hd(r,`data:`)===0&&We[e]||we&&!Cd(fe,md(r,pe,``))?!0:!r:Vt(e)&&Pt(ve.tagNameCheck,e)&&Pt(ve.attributeNameCheck,t,e)||t===`is`&&ve.allowCustomizedBuiltInElements&&Pt(ve.tagNameCheck,r)},Bt=Dd({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Vt=function(e){return!Bt[dd(e)]&&Cd(me,e)},Ht=function(e,t,n,r){if(T&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return A(r);case`TrustedScriptURL`:return j(r)}return r},Ut=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),kt(e)?(vt(e),!1):!0}catch{return bt(t,e),!1}},Wt=function(e,n){if(Mt(oe.beforeSanitizeAttributes,e,null),Lt(e,n))return;let r=e.attributes;if(!r||kt(e))return;F=It(oe.uponSanitizeAttribute,F,_e,je);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},a=r.length,o=st(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=st(s),d=l,f=s===`value`?d:gd(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Mt(oe.uponSanitizeAttribute,e,i),f=i.attrValue,Le&&(u===`id`||u===`name`)&&hd(f,Re)!==0&&(bt(s,e,n),f=Re+f,p=!0),De&&Cd(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){bt(s,e,n);continue}if(u===`attributename`&&pd(f,`href`)){bt(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){bt(s,e,n);continue}if(!Te&&Cd(rf,f)){bt(s,e,n);continue}if(Ee&&(f=Dt(f)),!zt(o,u,f)){bt(s,e,n);continue}f=Ht(o,u,c,f),f!==d&&Ut(e,s,c,f)&&p&&sd(t.removed)}}Mt(oe.afterSanitizeAttributes,e,null),Lt(e,n)},Gt=function(e){let t=null,n=Et(e);for(Mt(oe.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Mt(oe.uponSanitizeShadowNode,t,null),Rt(t,e),Wt(t,e),At(t.content)&&Gt(t.content),C(t)===af.element){let e=v(t);At(e)&&(Kt(e),Gt(e))}Mt(oe.afterSanitizeShadowDOM,e,null)},Kt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Gt(e.shadow);continue}let n=e.node,r=C(n)===af.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`&&st(e)===`template`){let e=n.content;At(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);At(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(I=!e,I&&(e=`<!-->`),typeof e!=`string`&&!jt(e)&&(e=Ad(e),typeof e!=`string`))throw wd(`dirty is not a string, aborting`);if(!t.isSupported)return e;ke?(P=Ae,F=je):dt(n),(oe.uponSanitizeElement.length>0||oe.uponSanitizeAttribute.length>0)&&(P=kd(P)),oe.uponSanitizeAttribute.length>0&&(F=kd(F)),t.removed=[];let c=Be&&typeof e!=`string`&&jt(e);if(c){wt(e);let t=w(e);if(typeof t==`string`){let n=st(t);if(!P[n]||ye[n])throw yt(e),wd(`root node is forbidden and cannot be sanitized in-place`)}if(kt(e))throw yt(e),wd(`root node is clobbered and cannot be sanitized in-place`);try{Kt(e)}catch(t){throw yt(e),t}}else if(jt(e))i=Tt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===af.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Kt(i);else{if(!Ne&&!Ee&&!Oe&&e.indexOf(`<`)===-1)return T&&Fe?A(e):e;if(i=Tt(e),!i)return Ne?null:Fe?E:``}i&&Me&&vt(i.firstChild);let l=c?e:i;try{let e=Et(l);for(;o=e.nextNode();)Rt(o,l),Wt(o,l),At(o.content)&&Gt(o.content)}catch(n){throw c&&(yt(e),ad(t.removed,e=>{e.element&&St(e.element)})),n}if(c){let n=!1;if(ad(t.removed,t=>{t.element&&(t.element===e&&(n=!0),St(t.element))}),n)throw wd(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Ee&&Ot(e),e}if(Ne){if(Ee&&Ot(i),Pe)for(s=re.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(F.shadowroot||F.shadowrootmode)&&(s=ae.call(r,s,!0)),s}let u=Oe?i.outerHTML:i.innerHTML;return Oe&&P[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Cd(Qd,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
50
|
+
`+u),Ee&&(u=Dt(u)),T&&Fe?A(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dt(e),ke=!0,Ae=P,je=F},t.clearConfig=function(){ct=null,ke=!1,Ae=null,je=null,T=D,E=``},t.isValidAttribute=function(e,t,n){ct||dt({});let r=st(e),i=st(t);return zt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&xd(oe,e)&&cd(oe[e],t)},t.removeHook=function(e,t){if(xd(oe,e)){if(t!==void 0){let n=od(oe[e],t);return n===-1?void 0:ld(oe[e],n,1)[0]}return sd(oe[e])}},t.removeHooks=function(e){xd(oe,e)&&(oe[e]=[])},t.removeAllHooks=function(){oe=df()},t}var hf=mf(),gf=[`script`,`embed`,`base`,`form`,`meta`,`link`,`style`,`foreignobject`],_f=[`onerror`,`onload`,`onclick`,`onmouseover`,`onmouseout`,`onmouseenter`,`onmouseleave`,`onfocus`,`onblur`,`onkeydown`,`onkeyup`,`onkeypress`,`onsubmit`,`onchange`,`onbeforeunload`,`formaction`,`xlink:href`],vf=new Set([`iframe`,`object`,`semantics`,`annotation`,`none`]),yf=/^[a-z_][\w.-]*:[a-z][\w.-]*$/,bf={ADD_TAGS:e=>vf.has(e)||yf.test(e),ADD_ATTR:[`alignment`,`target`,`allow`,`allowfullscreen`,`frameborder`,`scrolling`,`data`],FORBID_TAGS:gf,FORBID_ATTR:_f,ALLOW_UNKNOWN_PROTOCOLS:!1,RETURN_TRUSTED_TYPE:!1},xf=1e6,Sf=new Map,Cf=0;function wf(e){if(e==null||e===``||!hf.isSupported)return``;let t=typeof e==`string`?e:String(e),n=Sf.get(t);if(n!==void 0)return n;let r=String(hf.sanitize(t,bf)),i=t.length+r.length;if(i>xf)return r;for(let[e,t]of Sf){if(Cf+i<=xf)break;Sf.delete(e),Cf-=e.length+t.length}return Sf.set(t,r),Cf+=i,r}var Tf={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`},Ef={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`},Df=s({background:()=>Zf,backgroundDark:()=>Qf,black:()=>dp,blueGrey100:()=>xp,blueGrey300:()=>Sp,blueGrey600:()=>Cp,blueGrey900:()=>wp,border:()=>ip,borderDark:()=>op,borderGray:()=>sp,borderLight:()=>ap,buttonBorder:()=>Fp,buttonFocusOutline:()=>vp,buttonHoverBg:()=>Ip,correct:()=>Nf,correctSecondary:()=>Pf,correctTertiary:()=>Ff,correctWithIcon:()=>If,defaults:()=>W,disabled:()=>Af,disabledSecondary:()=>jf,disabledText:()=>Mf,dropdownBackground:()=>ep,editorToolbar:()=>Pp,fadedPrimary:()=>Kf,focusChecked:()=>mp,focusCheckedBorder:()=>hp,focusOutline:()=>yp,focusUnchecked:()=>gp,focusUncheckedBorder:()=>_p,incorrect:()=>Lf,incorrectSecondary:()=>zf,incorrectWithIcon:()=>Rf,keyBoardFocusIndicator:()=>bp,keypadButton:()=>Dp,keypadButtonHover:()=>Ap,keypadButtonOperator:()=>Op,keypadButtonOperatorHover:()=>jp,keypadEmptyPlaceholder:()=>kp,keypadInk:()=>Np,missing:()=>Bf,missingWithIcon:()=>Vf,primary:()=>Hf,primaryDark:()=>Wf,primaryLight:()=>Uf,primaryText:()=>Gf,secondary:()=>qf,secondaryBackground:()=>$f,secondaryDark:()=>Yf,secondaryLight:()=>Jf,secondaryText:()=>Xf,surface:()=>tp,tableGrid:()=>cp,tableGridLight:()=>lp,tableStripe:()=>up,tertiary:()=>np,tertiaryLight:()=>rp,text:()=>kf,transparent:()=>pp,v:()=>Of,visualElementsColors:()=>Lp,white:()=>fp}),W={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:`#208537`,CORRECT_SECONDARY:Oo[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:`#a65f00`,INCORRECT_SECONDARY:wo[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:wo[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Ef[500],PRIMARY_LIGHT:Ef[200],PRIMARY_DARK:Ef[800],SECONDARY:Tf.A400,SECONDARY_LIGHT:Tf[200],SECONDARY_DARK:Tf[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(W);var Of=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},G=Of(`pie`),kf=()=>G(`text`,W.TEXT),Af=()=>G(`disabled`,W.DISABLED),jf=()=>G(`disabled-secondary`,W.DISABLED_SECONDARY),Mf=()=>G(`disabled-text`,`text`,W.DISABLED_TEXT),Nf=()=>G(`correct`,W.CORRECT),Pf=()=>G(`correct-secondary`,W.CORRECT_SECONDARY),Ff=()=>G(`correct-tertiary`,W.CORRECT_TERTIARY),If=()=>G(`correct-icon`,W.CORRECT_WITH_ICON),Lf=()=>G(`incorrect`,W.INCORRECT),Rf=()=>G(`incorrect-icon`,W.INCORRECT_WITH_ICON),zf=()=>G(`incorrect-secondary`,W.INCORRECT_SECONDARY),Bf=()=>G(`missing`,W.MISSING),Vf=()=>G(`missing-icon`,W.MISSING_WITH_ICON),Hf=()=>G(`primary`,W.PRIMARY),Uf=()=>G(`primary-light`,W.PRIMARY_LIGHT),Wf=()=>G(`primary-dark`,W.PRIMARY_DARK),Gf=()=>G(`primary-text`,`text`,W.TEXT),Kf=()=>G(`faded-primary`,W.FADED_PRIMARY),qf=()=>G(`secondary`,W.SECONDARY),Jf=()=>G(`secondary-light`,W.SECONDARY_LIGHT),Yf=()=>G(`secondary-dark`,W.SECONDARY_DARK),Xf=()=>G(`secondary-text`,`text`,W.TEXT),Zf=()=>G(`background`,W.BACKGROUND),Qf=()=>G(`background-dark`,W.BACKGROUND_DARK),$f=()=>G(`secondary-background`,W.SECONDARY_BACKGROUND),ep=()=>G(`dropdown-background`,W.DROPDOWN_BACKGROUND),tp=()=>G(`surface`,W.SURFACE),np=()=>G(`tertiary`,W.TERTIARY),rp=()=>G(`tertiary-light`,W.TERTIARY_LIGHT),ip=()=>G(`border`,W.BORDER),ap=()=>G(`border-light`,W.BORDER_LIGHT),op=()=>G(`border-dark`,W.BORDER_DARK),sp=()=>G(`border-gray`,W.BORDER_GRAY),cp=()=>G(`table-grid`,`text`,W.TABLE_GRID),lp=()=>G(`table-grid-light`,`border-light`,W.TABLE_GRID_LIGHT),up=()=>G(`table-stripe`,`background-dark`,W.TABLE_STRIPE),dp=()=>G(`black`,W.BLACK),fp=()=>G(`white`,W.WHITE),pp=()=>W.TRANSPARENT,mp=()=>G(`focus-checked`,W.FOCUS_CHECKED),hp=()=>G(`focus-checked-border`,W.FOCUS_CHECKED_BORDER),gp=()=>G(`focus-unchecked`,W.FOCUS_UNCHECKED),_p=()=>G(`focus-unchecked-border`,W.FOCUS_UNCHECKED_BORDER),vp=()=>G(`button-focus-outline`,W.BUTTON_FOCUS_OUTLINE),yp=()=>G(`focus-outline`,`button-focus-outline`,`focus-checked-border`,W.FOCUS_CHECKED_BORDER),bp=yp,xp=()=>G(`blue-grey-100`,W.BLUE_GREY100),Sp=()=>G(`blue-grey-300`,W.BLUE_GREY300),Cp=()=>G(`blue-grey-600`,W.BLUE_GREY600),wp=()=>G(`blue-grey-900`,W.BLUE_GREY900),Tp=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)},Ep=(e,t)=>`color-mix(in srgb, rgb(${Tp(e).map(e=>(e-255*(1-t))/t).join(` `)}) ${t*100}%, ${G(`background`,W.WHITE)})`,Dp=()=>G(`keypad-button`,Ep(W.KEYPAD_BUTTON,.5)),Op=()=>G(`keypad-button-operator`,Ep(W.KEYPAD_BUTTON_OPERATOR,.5)),kp=()=>G(`keypad-empty-placeholder`,W.KEYPAD_EMPTY_PLACEHOLDER),Ap=()=>G(`keypad-button-hover`,Ep(W.KEYPAD_BUTTON_HOVER,.25)),jp=()=>G(`keypad-button-operator-hover`,Ep(W.KEYPAD_BUTTON_OPERATOR_HOVER,.25)),Mp=`clamp(0.6, (r + g + b) / 450, 1)`,Np=()=>`rgb(from ${kf()} calc(r * ${Mp}) calc(g * ${Mp}) calc(b * ${Mp}))`,Pp=()=>Ep(W.EDITOR_TOOLBAR,.125),Fp=()=>G(`button-border`,W.BUTTON_BORDER),Ip=()=>G(`button-hover-bg`,W.BUTTON_HOVER_BG),Lp={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Rp=H(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),zp=H(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Qf()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, ${kf()})`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Pf()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${zf()})`}}),Bp=H(`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`}}),Vp=class extends R.Component{static propTypes={correctness:I.string,feedback:I.string};nodeRef=R.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,z.jsx)(sc,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,z.jsx)(Bp,{ref:this.nodeRef,children:(0,z.jsx)(Rp,{children:(0,z.jsx)(zp,{className:e,dangerouslySetInnerHTML:{__html:wf(t)}})})})},`hasFeedback`)}render(){return(0,z.jsx)(`div`,{children:(0,z.jsx)(gc,{children:this.renderFeedback()})})}},Hp=s({Correct:()=>Jp,Incorrect:()=>Yp,NothingSubmitted:()=>Zp,PartiallyCorrect:()=>Xp}),Up=v(`pie-libs:render-ui:response-indicators`),Wp=H(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Gp=H(zu)({cursor:`pointer`}),Kp=H(`div`)({padding:`0`,borderRadius:`4px`}),qp=(e,t)=>{class n extends R.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Up(`[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,z.jsxs)(Wp,{hasFeedback:!!n,children:[(0,z.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,z.jsx)(e,{})}),n&&(0,z.jsx)(Gp,{PaperComponent:Kp,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,z.jsx)(Vp,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:I.string},n},Jp=qp(Dc,`correct`),Yp=qp(Pc,`incorrect`),Xp=qp(Vc,`partially-correct`),Zp=qp(Rc,`nothing-submitted`);function Qp(e){return Xi(`MuiCollapse`,e)}Zi(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var $p=e=>{let{orientation:t,classes:n}=e;return yo({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Qp,n)},em=H(`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]}})(Vl(({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`}}]}))),tm=H(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),nm=H(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),rm=R.forwardRef(function(e,t){let n=Gc({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=ts.standard,TransitionComponent:x=rc,...S}=n,C={...n,orientation:g,collapsedSize:o},w=$p(C),T=js(),E=rl(),D=R.useRef(null),O=R.useRef(),ee=typeof o==`number`?`${o}px`:o,k=g===`horizontal`,A=k?`width`:`height`,j=R.useRef(null),te=ul(t,j),M=()=>D.current?D.current[k?`clientWidth`:`clientHeight`]:0,ne=ol(j,(e,t)=>{D.current&&k&&(D.current.style.position=`absolute`),e.style[A]=ee,u&&u(e,t)}),N=ol(j,(e,t)=>{let n=M();D.current&&k&&(D.current.style.position=``);let{duration:r,easing:i}=cl({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[A]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),re=ol(j,(e,t)=>{e.style[A]=`auto`,d&&d(e,t)}),ie=ol(j,e=>{e.style[A]=`${M()}px`,p&&p(e)}),ae=ol(j,m),oe=ol(j,e=>{let t=M(),{duration:n,easing:r}=cl({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[A]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),se=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(j.current,e)},ce={slots:_,slotProps:v,component:s},[le,ue]=ql(`root`,{ref:te,className:B(w.root,a),elementType:em,externalForwardedProps:ce,ownerState:C,additionalProps:{style:{[k?`minWidth`:`minHeight`]:ee,...y}}}),[de,fe]=ql(`wrapper`,{ref:D,className:w.wrapper,elementType:tm,externalForwardedProps:ce,ownerState:C}),[pe,me]=ql(`wrapperInner`,{className:w.wrapperInner,elementType:nm,externalForwardedProps:ce,ownerState:C});return(0,z.jsx)(x,{in:l,onEnter:ne,onEntered:re,onEntering:N,onExit:ie,onExited:ae,onExiting:oe,addEndListener:se,nodeRef:j,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,z.jsx)(le,{...ue,className:B(ue.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,z.jsx)(de,{...fe,ownerState:r,children:(0,z.jsx)(pe,{...me,ownerState:r,children:i})})})}})});rm&&(rm.muiSupportAuto=!0);var im=`4.1.3`,am=`https://github.com/pie-framework/pie-elements-ng/blob/develop/docs/MATH-RENDERING.md#assets`,om=`@pie-lib/math-rendering@2`,sm=[`nemeth`,`euro`],cm=`mathjax@${im}/sre`,lm=/^[^@]+@[^@]+$/;function um(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(!lm.test(r))continue;let i=n[e-1]?.startsWith(`@`)?e-1:e;return t.origin+n.slice(0,i).join(`/`)}}function dm(){let e=globalThis[om]?.opts;return e&&typeof e==`object`?e:{}}function fm(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 pm(e){if(!e||typeof e!=`object`)return;let t=new Map;for(let[n,r]of Object.entries(e)){let e=fm(r);e&&t.set(n,e)}return t.size?t:void 0}function mm(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 hm(e,t){let n=dm(),r=fm(e.assetRoot??n.assetRoot)??um(t);return{root:r,speechPath:fm(e.speechPath??n.speechPath)??(r?`${r}/${cm}`:void 0),speechLocales:mm(e.speechLocales??n.speechLocales),urls:pm(e.assetUrls??n.assetUrls)}}function gm(e,t){if(!(!e||!t)){for(let n of[...e.keys()])!t.has(n)&&!sm.includes(n)&&e.delete(n);for(let[n,r]of t)(r||!e.has(n))&&e.set(n,r??n)}}function _m(e){if(!(!e||e.has(`en`)))return[...e.keys()].find(e=>!sm.includes(e))}var vm=`pie-mathjax-no-asset-root`,ym={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`},bm=Symbol.for(`@pie-element/shared-math-rendering-mathjax/no-assets`);function xm(e){let t=globalThis;t[bm]??=[];let n=t[bm];if(n.includes(e))return;n.push(e);let r=`[math-rendering] No asset root for MathJax: ${ym[e]}. Set window['${om}'].opts.assetRoot to an npm root. See ${am}`;e===`untypeset`?console.error(r):console.warn(r),!(typeof window>`u`)&&window.dispatchEvent(new CustomEvent(vm,{detail:{effect:e,message:r,docsUrl:am}}))}var Sm=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,Cm=`pie-mathjax-version-conflict`,wm=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function Tm(e,t){if(typeof window>`u`)return;let n=globalThis;n[wm]??={logged:!1,conditions:[]};let r=n[wm];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 ${Sm}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(Cm,{detail:{condition:e,message:i,docsUrl:Sm}}))}function Em(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}function Dm(){return window.MathJax}function Om(e,{root:t,speechPath:n}){t&&(e.loader={...e.loader,paths:{fonts:`${t}/@mathjax`,"mathjax-newcm":`${t}/@mathjax/mathjax-newcm-font@${im}`,"mathjax-mhchem-extension":`${t}/@mathjax/mathjax-mhchem-font-extension@${im}`}}),n&&(e.options={...e.options,worker:{path:n,maps:`${n}/mathmaps`}})}function km(e,t){let n=t.srcUrl||(t.root?`${t.root}/mathjax@4.1.3/tex-mml-chtml.js`:void 0);return n?(Om(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)})):(xm(`untypeset`),Promise.resolve(!1))}var Am=globalThis,jm=`PIE-MJX-CHTML-styles`,Mm=[`MJX-CHTML-styles`,`MJX-SVG-styles`],Nm=Em,Pm=`http://www.w3.org/1998/Math/MathML`,Fm=/^([a-z_][\w.-]*):math$/,Im=/^[a-z][a-z0-9-]*$/;function Lm(e){for(let t of e.querySelectorAll(`*`)){let n=Fm.exec(t.tagName.toLowerCase())?.[1];!n||!e.contains(t)||t.closest(`mjx-container`)||t.replaceWith(Rm(t,`${n}:`))}}function Rm(e,t){let n=e.tagName.toLowerCase().slice(t.length);if(!Im.test(n))return e;let r=e.ownerDocument.createElementNS(Pm,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?Rm(n,t):n)}return r}var zm=new Set([`updiagonalstrike`,`downdiagonalstrike`,`verticalstrike`,`horizontalstrike`]),Bm={thin:`0.035em`,medium:`0.07em`,thick:`0.14em`},Vm={tight:`0em`,medium:`0.1em`,loose:`0.2em`},Hm=/^(\d+(\.\d*)?|\.\d+)(em|ex|px|pt|pc|in|cm|mm)$/,Um=/^(#[0-9a-f]{3,8}|[a-z]+)$/i,Wm=/^(\d+(\.\d*)?|\.\d+)$/,Gm=new Set([`mn`,`mo`,`mi`,`mtext`]),Km=new Set([`stackalign`,`charalign`,`charspacing`,`longdivstyle`]);function qm(e,t,n=[],r={}){let i=e.createElementNS(Pm,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 Jm(e,t){let n=qm(e.document,`mo`);return n.textContent=t,n}function Ym(e){let t=qm(e.document,`mn`);return t.textContent=`0`,qm(e.document,`mphantom`,[t])}function Xm(e,t){return e.getAttribute(t)?.trim().toLowerCase()||void 0}function Zm(e,t){let n=Number.parseInt(e.getAttribute(t)??``,10);return Number.isFinite(n)?n:0}function Qm(e){return e.localName===`none`||e.localName===`mrow`&&e.children.length===0&&!e.textContent?.trim()}function $m(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 eh(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(Qm(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 Gm.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:$m(r.length,n.stackAlign,i??a),position:t}}function th(e){return(e??``).toLowerCase().split(/\s+/).filter(e=>zm.has(e))}function nh(e,t){let n=[...e.children].filter(e=>!Qm(e));return n.length<=1?n[0]??null:qm(t.document,`mrow`,n)}function rh(e,t,n){let r=Xm(e,`location`)??`n`,i=th(e.getAttribute(`crossout`)),a=[...e.children].map(e=>Qm(e)?null:e.localName===`mscarry`?{content:nh(e,n),location:Xm(e,`location`)??r,crossout:e.hasAttribute(`crossout`)?th(e.getAttribute(`crossout`)):i}:{content:e,location:r,crossout:i}),o=e.getAttribute(`scriptsizemultiplier`)?.trim()??``;return{kind:`carries`,carries:a,anchor:$m(a.length,n.stackAlign),position:t,scale:Wm.test(o)?o:`0.6`}}function ih(e){let t=Xm(e,`mslinethickness`)??`medium`,n=Bm[t]??(Hm.test(t)?t:`0.07em`),r=e.getAttribute(`mathcolor`)?.trim()??``;return`${n} solid ${Um.test(r)?r:`currentColor`}`}function ah(e,t,n){let r=Math.max(0,Zm(e,`length`));return{kind:`line`,length:r,anchor:$m(r,n.stackAlign),position:t,border:ih(e)}}function oh(e,t,n,r,i){e.forEach((e,a)=>{let o=t+a*n+Zm(e,`position`);switch(e.localName){case`msgroup`:oh([...e.children],o,Zm(e,`shift`),r,i);break;case`msline`:i.push(ah(e,o,r));break;case`mscarries`:i.push(rh(e,o,r));break;case`msrow`:case`mrow`:i.push(eh([...e.children],o,r));break;default:i.push(eh([e],o,r))}})}function sh(e){return-e.anchor-e.position}function ch(e){return e.kind===`digits`?e.cells.length:e.kind===`carries`?e.carries.length:e.length}function lh(e){return sh(e)+ch(e)-1}function uh(e,t,n,r){let i=e=>qm(r.document,`mpadded`,[t],{width:`0`,...e?{lspace:e}:{}}),a=(e,t)=>qm(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 dh(e,t,n){let r=qm(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?qm(n.document,`mpadded`,[r],{lspace:`-${i}em`,width:`-${2*i}em`}):r}function fh(e,t,n,r,i){let a=e&&t.crossout.length?dh(e,t.crossout,i):e;if(!t.content)return a;let o=qm(i.document,`mstyle`,[t.content],{scriptsizemultiplier:r});return uh(a??Ym(i),o,n,i)}function ph(e,t){return e.carries[t-sh(e)]??null}function mh(e,t,n,r){let i=e.content;n.forEach((e,a)=>{let o=n.length-1-a,s=n[o],c=ph(s,t),l=n.slice(0,o).some(e=>ph(e,t));if(!c&&!l)return;let u=c??{content:Ym(r),location:`n`,crossout:[]},d=a===0?u.location:`n`;i=fh(i,u,d,s.scale,r)}),e.content=i}function hh(e,t){let n=e.filter(e=>ch(e)>0),r=Math.min(0,...n.map(sh)),i=Math.max(r,...n.map(lh))-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+sh(e)+n),u=[],d=[],f=e=>{let n=c();e.cells.forEach((t,r)=>{n[a+sh(e)+r].content=t}),u.length&&n.forEach((e,n)=>{mh(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 gh(e,{rows:t},n){let r=qm(n.document,`mtable`,t.map(e=>qm(n.document,`mtr`,e.map(e=>{let t=Object.entries(e.borders).map(([e,t])=>`border-${e}:${t}`).join(`;`);return qm(n.document,`mtd`,[e.content],{...t?{style:t}:{},...e.align?{columnalign:e.align}:{}})}))));for(let{name:t,value:n}of[...e.attributes])Km.has(t)||r.setAttribute(t,n);let i=Xm(e,`charspacing`)??`medium`,a=Xm(e,`charalign`);return r.setAttribute(`columnspacing`,Vm[i]??(Hm.test(i)?i:Vm.medium)),r.setAttribute(`columnalign`,a===`left`||a===`center`?a:`right`),r.setAttribute(`rowspacing`,`0`),r.setAttribute(`align`,e.getAttribute(`align`)??`baseline`),r}function _h(e){return{document:e.ownerDocument,stackAlign:Xm(e,`stackalign`)??`decimalpoint`,decimalPoint:e.closest(`[decimalpoint]`)?.getAttribute(`decimalpoint`)?.trim().charAt(0)||`.`}}function vh(e){let t=_h(e),n=[];return oh([...e.children],0,0,t,n),gh(e,hh(n,t),t)}function yh(e,t,n,r,i,a){for(let o=n;o<=r;o++)e[t][o].borders[i]=a}function bh(e,t){let n=Jm(t,`)`);return n.setAttribute(`minsize`,`1.2em`),[qm(t.document,`mrow`,[e,qm(t.document,`mspace`,[],{width:`0.2em`})]),qm(t.document,`mpadded`,[n],{voffset:`0.1em`,lspace:`-0.15em`,depth:`-0.2em`,height:`-0.2em`})]}function xh(e){let t=_h(e),[n,r,...i]=[...e.children],a=n&&!Qm(n)?n:null,o=r&&!Qm(r)?r:null,s=Xm(e,`longdivstyle`)??`lefttop`,c=ih(e),l=[];oh(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(...eh(n,0,t).cells)};switch(s){case`left/\\right`:f(a,Jm(t,`/`)),p(Jm(t,`\\`),o);break;case`left)(right`:f(a,Jm(t,`)`)),p(Jm(t,`(`),o);break;case`:right=right`:p(Jm(t,`:`),a,Jm(t,`=`),o);break;case`righttop`:case`stackedleftlinetop`:case`lefttop`:o&&oh([o],0,0,t,d),l.splice(l.indexOf(u),0,...d),s===`righttop`?p(a):s===`stackedleftlinetop`?f(a):f(...bh(a,t));break}let m=hh(l,t),h=m.rows,g=m.rowOf.get(u)??0,_=e=>m.origin+sh(u)+e,v=Math.max(_(u.cells.length-1),...d.map(e=>m.origin+lh(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,yh(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,yh(h,g,_(1),v,`top`,c);break}case`stackedrightright`:case`mediumstackedrightright`:case`shortstackedrightright`:case`stackedleftleft`:Sh(h,g,s,a,o,c,t);break;default:yh(h,g,_(1),v,`top`,c)}return gh(e,m,t)}function Sh(e,t,n,r,i,a,o){let s=n===`stackedleftleft`,c=s?`right`:`left`,l=e=>e&&qm(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 Ch(e){for(let t of[...e.querySelectorAll(`mstack, mlongdiv`)])!t.closest(`math`)||t.closest(`mjx-container`)||t.replaceWith(t.localName===`mstack`?vh(t):xh(t))}var wh=`PIE-MJX-explorer-styles`,Th=`var(--pie-text, black)`,Eh=`var(--pie-background, #ffffff)`,Dh=`var(--pie-border-dark, #66686A)`,Oh=`var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565C0)))`,kh=`color-mix(in srgb, ${Oh} 15%, transparent)`,Ah=`
|
|
49
51
|
:root mjx-container [data-sre-highlight-1]:not([data-mjx-collapsed], rect) {
|
|
50
|
-
color: ${
|
|
51
|
-
fill: ${
|
|
52
|
+
color: ${Th} !important;
|
|
53
|
+
fill: ${Th} !important;
|
|
52
54
|
}
|
|
53
55
|
:root mjx-container:not([data-mjx-clone-container]) [data-sre-highlight-1]:not([data-sre-enclosed], rect) {
|
|
54
|
-
background-color: ${
|
|
56
|
+
background-color: ${kh} !important;
|
|
55
57
|
}
|
|
56
58
|
:root mjx-container rect[data-sre-highlight-1]:not([data-sre-enclosed]) {
|
|
57
|
-
fill: ${
|
|
59
|
+
fill: ${kh} !important;
|
|
58
60
|
}
|
|
59
61
|
:root mjx-container .mjx-selected {
|
|
60
|
-
outline: 2px solid ${
|
|
62
|
+
outline: 2px solid ${Oh} !important;
|
|
61
63
|
}
|
|
62
64
|
:root mjx-container [data-sre-highlight-2] {
|
|
63
|
-
color: ${
|
|
65
|
+
color: ${Th} !important;
|
|
64
66
|
background-color: transparent !important;
|
|
65
|
-
fill: ${
|
|
66
|
-
outline: 2px dashed ${
|
|
67
|
+
fill: ${Th} !important;
|
|
68
|
+
outline: 2px dashed ${Oh} !important;
|
|
67
69
|
}
|
|
68
70
|
:root mjx-container rect[data-sre-highlight-2] {
|
|
69
71
|
fill: transparent !important;
|
|
70
|
-
stroke: ${
|
|
72
|
+
stroke: ${Oh} !important;
|
|
71
73
|
stroke-width: 2px !important;
|
|
72
74
|
vector-effect: non-scaling-stroke;
|
|
73
75
|
}
|
|
74
76
|
:root .MJX_LiveRegion, :root .MJX_HoverRegion, :root .MJX_ToolTip {
|
|
75
|
-
color: ${
|
|
76
|
-
background-color: ${
|
|
77
|
-
border-color: ${
|
|
77
|
+
color: ${Th} !important;
|
|
78
|
+
background-color: ${Eh} !important;
|
|
79
|
+
border-color: ${Dh} !important;
|
|
78
80
|
}
|
|
79
81
|
:root .MJX_LiveRegion > div, :root .MJX_HoverRegion > div {
|
|
80
|
-
color: ${
|
|
81
|
-
background-color: ${
|
|
82
|
+
color: ${Th} !important;
|
|
83
|
+
background-color: ${kh} !important;
|
|
82
84
|
}
|
|
83
|
-
`;function
|
|
85
|
+
`;function jh(e=document){if(e.getElementById(`PIE-MJX-explorer-styles`))return;let t=e.createElement(`style`);t.id=wh,t.textContent=Ah,e.head.appendChild(t)}var Mh=Symbol.for(`@pie-element/shared-math-rendering-mathjax/speech-worker-failed`);function Nh(){let e=globalThis;e[Mh]||(e[Mh]=!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 ${am}`))}function Ph(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(),Nh()}function Fh(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`,()=>Ph(e),{once:!0}),a})}`${cm}`;var Ih={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},Lh=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,Rh=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,zh=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,Bh=/\\embed\{newLine\}\[\]/g,Vh=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],Hh=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),Uh=`MJX-CHTML-styles`,Wh=`PIE-MJX-SVG-styles`,Gh=`PIE-MathJax-Menu-Settings`,Kh={'mjx-container[overflow="linebreak"][display]':{overflow:`auto clip`,"min-width":`initial !important`}},qh=200,Jh=201;function Yh(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 Xh(e){for(let[t,n]of Vh)if(e.startsWith(t)&&e.endsWith(n))return e.substring(t.length,e.length-n.length);return e}function Zh(e){return Xh(e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e)}var Qh=`mathjax_ignore`,$h=`mathjax_process`;function eg(e,t){let n=e.closest(`.${Qh}, .${$h}`);return n!==null&&t.contains(n)&&!n.classList.contains($h)}function tg(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`)||eg(t,e))continue;let n=t.textContent;n&&(t.textContent=`\\(${Zh(n)}\\)`.replace(Bh,`\\newline `),t.dataset.mathHandled=`true`)}}function ng(e){for(let t of e.querySelectorAll(`math`))t.closest(`mjx-container`)||t.setAttribute(`displaystyle`,`true`)}function rg(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?zh:Rh).test(e.textContent??``)}function ig(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s=hm(e,{}.url),c={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e),"output/svg":{ready:e=>{let t=Dm();return ag(t)&&og(t),e}}},startup:{typeset:!1,ready:()=>{let e=Dm(),r=e?.startup,i=ag(e);i&&(og(e),sg(e,s.speechLocales),gm(e?._?.a11y?.sre_ts?.locales,s.speechLocales)),r?.defaultReady?.(),i&&(cg(r?.document),r?.document?.addStyles?.(Kh),Fh(r?.document)),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...Ih}},output:{displayOverflow:`linebreak`},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}},a11y:{inTabOrder:!1}}};r&&c.tex&&(console.warn(Lh),c.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],c.tex.processEscapes=!0),a||(c.chtml={fontURL:``});let l=_m(s.speechLocales);l&&c.options&&(c.options.sre={locale:l}),km(c,{...s,srcUrl:o}).then(e=>{e||t()},n)})}function ag(e){return!!e?.version?.startsWith(`4.`)}function og(e){let t=e?._?.output,n=t?.chtml_ts?.CHTML;n&&(n.STYLESHEETID=jm);let r=t?.svg_ts?.SVG;r&&(r.STYLESHEETID=Wh)}function sg(e,t){let n=e?._?.ui?.menu?.Menu?.Menu;if(n){n.MENU_STORAGE=Gh;try{let e=localStorage.getItem(Gh);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(Gh,JSON.stringify(i)):localStorage.removeItem(Gh)}catch{}}}function cg(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(Yh(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,Jh,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&Yh(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===Uh&&(r.id=jm),dg()}function lg(e){return e instanceof HTMLStyleElement&&Mm.includes(e.id)}function ug(e){Tm(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function dg(){let e=document.head,t=[...e.children].find(lg);if(t){ug(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(lg);if(e){ug(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function fg(e){let t=e?.math;if(!t?.remove)return;let n=[...t].filter(e=>(e.state?.()??0)>=qh&&e.typesetRoot?.isConnected===!1);if(n.length!==0){for(let e of[...n].reverse())e.clear?.();t.remove(...n)}}function pg(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=Dm()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function mg(e){let t=Dm();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():pg(t):ig(e)}function hg(e){return mg(e).then(()=>{let e=Dm();e&&typeof e.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function gg(e){let t=Am,n=t[Hh];return n||(n=hg(e),t[Hh]=n),n}function _g(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=Nm();r&&Tm(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),tg(n),Lm(n),ng(n),Ch(n);let i=gg(e);if(!rg(n,t)){i.catch(()=>{});return}await i;let a=Dm();if(await a?.startup?.promise,typeof a?.typesetPromise==`function`){jh(),fg(a.startup?.document);try{await a.typesetPromise([n])}catch(e){throw a.typesetClear?.([n]),e}Yh(n)}}}var vg=`@pie-lib/math-rendering`,yg=`@pie-lib/math-rendering@2`,bg=`pie-print`,xg=50,Sg=1e4,Cg=null;function wg(){return!!window[yg]?.opts?.useSingleDollar}function Tg(){return Cg||=_g({useSingleDollar:wg()}),Cg}function Eg(){if(typeof window>`u`)return null;let e=window[vg];return typeof e?.renderMath==`function`&&e.renderMath!==Ag?e:null}function Dg(e){let t=e;for(;t;){if(t instanceof Element&&t.localName===bg)return t;t=t instanceof ShadowRoot?t.host:t.parentNode}return null}function Og(){let e=window.renderMath;return typeof e==`function`?e:null}async function kg(e){let t=Dg(e);if(!t)return null;let n=Og();if(n||t.mathRenderingModuleUrlImported!==!0)return n;let r=Date.now()+Sg;for(;Date.now()<r;){await new Promise(e=>setTimeout(e,xg));let e=Og();if(e)return e}return null}var Ag=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=Eg(),i=r||t?null:await kg(n);return r?await r.renderMath?.(n):i&&i!==Ag?await i(n):await Tg()(n),t?n.innerHTML:void 0},jg=e=>`${e}-${Math.random().toString(36).slice(2,10)}`,Mg=e=>R.useState(()=>jg(e))[0],{translator:Ng}=Ye,Pg=H(`button`)({display:`inline-block`,minHeight:`24px`,padding:0,border:0,background:`transparent`,font:`inherit`,textAlign:`inherit`,color:np(),cursor:`pointer`}),Fg=H(`span`)({borderBottom:`1px dotted currentColor`}),Ig=H(rm)(({theme:e})=>({paddingTop:e.spacing(2)})),Lg=class extends R.Component{static propTypes={className:I.string,children:I.object,labels:I.shape({visible:I.string,hidden:I.string}),language:I.string};static defaultProps={labels:{}};state={expanded:!1};panelId=jg(`pie-collapsible`);toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Ag(this.root)}componentDidUpdate(){Ag(this.root)}render(){let{labels:e,children:t,className:n,language:r}=this.props,{expanded:i}=this.state,a=i?e.visible||Ng.t(`common:hide`,{lng:r}):e.hidden||Ng.t(`common:show`,{lng:r});return(0,z.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,z.jsx)(`div`,{children:(0,z.jsx)(Pg,{type:`button`,"aria-expanded":i,"aria-controls":this.panelId,onClick:this.toggleExpanded,children:(0,z.jsx)(Fg,{children:a})})}),(0,z.jsx)(`div`,{id:this.panelId,children:(0,z.jsx)(Ig,{in:i,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})})]})}};function Rg(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var zg=class e{static create(){return new e}static use(){let t=$c(e.create).current,[n,r]=R.useState(!1);return t.shouldMount=n,t.setShouldMount=r,R.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=Vg(),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 Bg(){return zg.use()}function Vg(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function Hg(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=R.useState(!1),f=B(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=B(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),R.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,z.jsx)(`span`,{className:f,style:p,children:(0,z.jsx)(`span`,{className:m})})}var Ug=Zi(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Wg=550,Gg=Xn`
|
|
84
86
|
0% {
|
|
85
87
|
transform: scale(0);
|
|
86
88
|
opacity: 0.1;
|
|
@@ -90,7 +92,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
90
92
|
transform: scale(1);
|
|
91
93
|
opacity: 0.3;
|
|
92
94
|
}
|
|
93
|
-
`,
|
|
95
|
+
`,Kg=Xn`
|
|
94
96
|
0% {
|
|
95
97
|
opacity: 1;
|
|
96
98
|
}
|
|
@@ -98,7 +100,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
98
100
|
100% {
|
|
99
101
|
opacity: 0;
|
|
100
102
|
}
|
|
101
|
-
`,
|
|
103
|
+
`,qg=Xn`
|
|
102
104
|
0% {
|
|
103
105
|
transform: scale(1);
|
|
104
106
|
}
|
|
@@ -110,23 +112,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
110
112
|
100% {
|
|
111
113
|
transform: scale(1);
|
|
112
114
|
}
|
|
113
|
-
`,
|
|
115
|
+
`,Jg=H(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Yg=H(Hg,{name:`MuiTouchRipple`,slot:`Ripple`})`
|
|
114
116
|
opacity: 0;
|
|
115
117
|
position: absolute;
|
|
116
118
|
|
|
117
|
-
&.${
|
|
119
|
+
&.${Ug.rippleVisible} {
|
|
118
120
|
opacity: 0.3;
|
|
119
121
|
transform: scale(1);
|
|
120
|
-
animation-name: ${
|
|
121
|
-
animation-duration: ${
|
|
122
|
+
animation-name: ${Gg};
|
|
123
|
+
animation-duration: ${Wg}ms;
|
|
122
124
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
123
125
|
}
|
|
124
126
|
|
|
125
|
-
&.${
|
|
127
|
+
&.${Ug.ripplePulsate} {
|
|
126
128
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
127
129
|
}
|
|
128
130
|
|
|
129
|
-
& .${
|
|
131
|
+
& .${Ug.child} {
|
|
130
132
|
opacity: 1;
|
|
131
133
|
display: block;
|
|
132
134
|
width: 100%;
|
|
@@ -135,25 +137,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
135
137
|
background-color: currentColor;
|
|
136
138
|
}
|
|
137
139
|
|
|
138
|
-
& .${
|
|
140
|
+
& .${Ug.childLeaving} {
|
|
139
141
|
opacity: 0;
|
|
140
|
-
animation-name: ${
|
|
141
|
-
animation-duration: ${
|
|
142
|
+
animation-name: ${Kg};
|
|
143
|
+
animation-duration: ${Wg}ms;
|
|
142
144
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
143
145
|
}
|
|
144
146
|
|
|
145
|
-
& .${
|
|
147
|
+
& .${Ug.childPulsate} {
|
|
146
148
|
position: absolute;
|
|
147
149
|
/* @noflip */
|
|
148
150
|
left: 0px;
|
|
149
151
|
top: 0;
|
|
150
|
-
animation-name: ${
|
|
152
|
+
animation-name: ${qg};
|
|
151
153
|
animation-duration: 2500ms;
|
|
152
154
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
153
155
|
animation-iteration-count: infinite;
|
|
154
156
|
animation-delay: 200ms;
|
|
155
157
|
}
|
|
156
|
-
`,
|
|
158
|
+
`,Xg=R.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=Gc({props:e,name:`MuiTouchRipple`}),[o,s]=R.useState([]),c=R.useRef(0),l=R.useRef(null);R.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=R.useRef(!1),d=rl(),f=R.useRef(null),p=R.useRef(null),m=R.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,z.jsx)(Yg,{classes:{ripple:B(r.ripple,Ug.ripple),rippleVisible:B(r.rippleVisible,Ug.rippleVisible),ripplePulsate:B(r.ripplePulsate,Ug.ripplePulsate),child:B(r.child,Ug.child),childLeaving:B(r.childLeaving,Ug.childLeaving),childPulsate:B(r.childPulsate,Ug.childPulsate)},timeout:Wg,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=R.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=R.useCallback(()=>{h({},{pulsate:!0})},[h]),_=R.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 R.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,z.jsx)(Jg,{className:B(Ug.root,r.root,i),ref:p,...a,children:(0,z.jsx)(gc,{component:null,exit:!0,children:o})})});function Zg(e){return Xi(`MuiButtonBase`,e)}var Qg=Zi(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),$g=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=yo({root:[`root`,t&&`disabled`,n&&`focusVisible`]},Zg,i);return n&&r&&(a.root+=` ${r}`),a},e_=H(`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`},[`&.${Qg.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),t_=R.forwardRef(function(e,t){let n=Gc({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:k,type:A,...j}=n,te=R.useRef(null),M=Bg(),ne=ul(M.ref,k),[N,re]=R.useState(!1);c&&N&&re(!1),R.useImperativeHandle(r,()=>({focusVisible:()=>{re(!0),te.current.focus()}}),[]);let ie=M.shouldMount&&!l&&!c;R.useEffect(()=>{N&&d&&!l&&M.pulsate()},[l,d,N,M]);let ae=n_(M,`start`,S,u),oe=n_(M,`stop`,g,u),se=n_(M,`stop`,_,u),ce=n_(M,`stop`,w,u),le=n_(M,`stop`,e=>{N&&e.preventDefault(),C&&C(e)},u),ue=n_(M,`start`,D,u),de=n_(M,`stop`,T,u),fe=n_(M,`stop`,E,u),pe=n_(M,`stop`,e=>{Rg(e.target)||re(!1),m&&m(e)},!1),me=ku(e=>{te.current||=e.currentTarget,Rg(e.target)&&(re(!0),y&&y(e)),v&&v(e)}),he=()=>{let e=te.current;return e?e.tagName!==`BUTTON`&&!(e.tagName===`A`&&e.href):s&&s!==`button`},P=ku(e=>{d&&!e.repeat&&N&&e.key===` `&&M.stop(e,()=>{M.start(e)}),e.target===e.currentTarget&&he()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&he()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),ge=ku(e=>{d&&e.key===` `&&N&&!e.defaultPrevented&&M.stop(e,()=>{M.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&he()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),F=s;F===`button`&&(j.href||j.to)&&(F=p);let _e={};if(F===`button`){let e=!!j.formAction;_e.type=A===void 0&&!e?`button`:A,_e.disabled=c}else!j.href&&!j.to&&(_e.role=`button`),c&&(_e[`aria-disabled`]=c);let ve=ul(t,te),ye={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:N},be=$g(ye);return(0,z.jsxs)(e_,{as:F,className:B(be.root,o),ownerState:ye,onBlur:pe,onClick:h,onContextMenu:oe,onFocus:me,onKeyDown:P,onKeyUp:ge,onMouseDown:ae,onMouseLeave:le,onMouseUp:ce,onDragLeave:se,onTouchEnd:de,onTouchMove:fe,onTouchStart:ue,ref:ve,tabIndex:c?-1:O,type:A,..._e,...j,children:[a,ie?(0,z.jsx)(Xg,{ref:ne,center:i,...ee}):null]})});function n_(e,t,n,r=!1){return ku(i=>(n&&n(i),r||e[t](i),!0))}function r_(e){return typeof e.main==`string`}function i_(e,t=[]){if(!r_(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function a_(e=[]){return([,t])=>t&&i_(t,e)}function o_(e){return Xi(`MuiCircularProgress`,e)}Zi(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var s_=44,c_=Xn`
|
|
157
159
|
0% {
|
|
158
160
|
transform: rotate(0deg);
|
|
159
161
|
}
|
|
@@ -161,7 +163,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
161
163
|
100% {
|
|
162
164
|
transform: rotate(360deg);
|
|
163
165
|
}
|
|
164
|
-
`,
|
|
166
|
+
`,l_=Xn`
|
|
165
167
|
0% {
|
|
166
168
|
stroke-dasharray: 1px, 200px;
|
|
167
169
|
stroke-dashoffset: 0;
|
|
@@ -176,27 +178,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
176
178
|
stroke-dasharray: 1px, 200px;
|
|
177
179
|
stroke-dashoffset: -126px;
|
|
178
180
|
}
|
|
179
|
-
`,
|
|
180
|
-
animation: ${
|
|
181
|
-
`,
|
|
182
|
-
animation: ${
|
|
183
|
-
`,kh=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return bo({root:[`root`,n,`color${yu(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${yu(n)}`,i&&`circleDisableShrink`]},Ch,t)},Ah=V(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${yu(n.color)}`]]}})(Hl(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:Dh||{animation:`${Th} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Sh()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),jh=V(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),Mh=V(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${yu(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Hl(({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:Oh||{animation:`${Eh} 1.4s ease-in-out infinite`}}]}))),Nh=V(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(Hl(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),Ph=I.forwardRef(function(e,t){let n=Kc({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=kh(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((wh-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,L.jsx)(Ah,{className:R(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,L.jsxs)(jh,{className:m.svg,ownerState:p,viewBox:`${wh/2} ${wh/2} ${wh} ${wh}`,children:[o?(0,L.jsx)(Nh,{className:m.track,ownerState:p,cx:wh,cy:wh,r:(wh-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,L.jsx)(Mh,{className:m.circle,style:h,ownerState:p,cx:wh,cy:wh,r:(wh-l)/2,fill:`none`,strokeWidth:l})]})})});function Fh(e){return Qi(`MuiButton`,e)}var Ih=z(`MuiButton`,`root.text.textInherit.textPrimary.textSecondary.textSuccess.textError.textInfo.textWarning.outlined.outlinedInherit.outlinedPrimary.outlinedSecondary.outlinedSuccess.outlinedError.outlinedInfo.outlinedWarning.contained.containedInherit.containedPrimary.containedSecondary.containedSuccess.containedError.containedInfo.containedWarning.disableElevation.focusVisible.disabled.colorInherit.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(`.`)),Lh=I.createContext({}),Rh=I.createContext(void 0),zh=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=bo({root:[`root`,o&&`loading`,a,`${a}${yu(t)}`,`size${yu(i)}`,`${a}Size${yu(i)}`,`color${yu(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${yu(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${yu(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${yu(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Fh,c);return{...c,...l}},Bh=[{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}}}],Vh=V(vh,{shouldForwardProp:e=>Ps(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${yu(n.color)}`],t[`size${yu(n.size)}`],t[`${n.variant}Size${yu(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Hl(({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`},[`&.${Ih.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]},[`&.${Ih.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ih.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)`,[`&.${Ih.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(Sh()).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`},[`&.${Ih.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${Ih.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}),[`&.${Ih.loading}`]:{color:`transparent`}}}]}})),Hh=V(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${yu(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}},...Bh]})),Uh=V(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${yu(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}},...Bh]})),Wh=V(`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}}]})),Gh=V(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),Kh=I.forwardRef(function(e,t){let n=I.useContext(Lh),r=I.useContext(Rh),i=Kc({props:da(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=Du(h),T=_??(0,L.jsx)(Ph,{"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=zh(E),O=(b||g&&v===`start`)&&(0,L.jsx)(Hh,{className:D.startIcon,ownerState:E,children:b||(0,L.jsx)(Gh,{className:D.loadingIconPlaceholder,ownerState:E})}),ee=(f||g&&v===`end`)&&(0,L.jsx)(Uh,{className:D.endIcon,ownerState:E,children:f||(0,L.jsx)(Gh,{className:D.loadingIconPlaceholder,ownerState:E})}),k=r||``,A=typeof g==`boolean`?(0,L.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,L.jsx)(Wh,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:j,...te}=D;return(0,L.jsxs)(Vh,{ownerState:E,className:R(n.className,D.root,c,k),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:R(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:te,children:[O,v!==`end`&&A,a,v===`end`&&A,ee]})}),qh=wu((0,L.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`),Jh=wu((0,L.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`),Yh=V(`div`)({display:`flex`,flexDirection:`column`}),Xh=V(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),Zh=V(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),Qh=V(Kh)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),$h=e=>{class t extends I.Component{static propTypes={session:P.object,onSessionChange:P.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,L.jsxs)(Yh,{children:[(0,L.jsxs)(Xh,{children:[(0,L.jsxs)(Qh,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,L.jsx)(Zh,{children:(0,L.jsx)(Jh,{})}),`Undo`]}),(0,L.jsxs)(Qh,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,L.jsx)(Zh,{children:(0,L.jsx)(qh,{})}),`Start Over`]})]}),(0,L.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},eg=As({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`}}}}}}),tg=V(`div`)({"& table, th, td":{fontSize:`inherit`}}),ng=class extends I.Component{static propTypes={className:P.string,children:P.array,extraCSSRules:P.shape({names:P.arrayOf(P.string),rules:P.string}),fontSizeFactor:P.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}scopeClass=Jm(`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,L.jsx)(mr,{injectFirst:!0,children:(0,L.jsxs)(Vs,{theme:eg,children:[i?.rules?(0,L.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.${this.scopeClass} { ${i.rules} }`}}):null,(0,L.jsx)(tg,{className:`${t} extraCSSRules ${this.scopeClass}`,...a,...o&&{style:o},children:e})]})})}},rg=V(ng)({display:`flex`,flexDirection:`column`,position:`relative`}),ig=class extends I.Component{static propTypes={ariaLabel:P.string,children:P.oneOfType([P.arrayOf(P.node),P.node]).isRequired,role:P.string,extraCSSRules:P.shape({names:P.arrayOf(P.string),rules:P.string}),fontSizeFactor:P.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,L.jsx)(rg,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},ag=class extends I.Component{static propTypes={tag:P.string,className:P.string,html:P.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,L.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:n}})}};function og({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 sg=I.createContext(void 0);function cg(){return I.useContext(sg)}function lg(e){return Qi(`MuiFormLabel`,e)}var ug=z(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),dg=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return bo({root:[`root`,`color${yu(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},lg,t)},fg=V(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Hl(({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(Sh()).map(([t])=>({props:{color:t},style:{[`&.${ug.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ug.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ug.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),pg=V(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(Hl(({theme:e})=>({[`&.${ug.error}`]:{color:(e.vars||e).palette.error.main}}))),mg=I.forwardRef(function(e,t){let n=Kc({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=og({props:n,muiFormControl:cg(),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=dg(m);return(0,L.jsxs)(fg,{as:o,ownerState:m,className:R(h.root,i),ref:t,...f,children:[r,p.required&&(0,L.jsxs)(pg,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function hg(e){return Qi(`MuiInputLabel`,e)}z(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var gg=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=bo({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${yu(r)}`,o],asterisk:[s&&`asterisk`]},hg,t);return{...t,...c}},_g=V(mg,{shouldForwardProp:e=>Ps(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${ug.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]]}})(Hl(({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)`}}]}))),vg=I.forwardRef(function(e,t){let n=Kc({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=cg(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=og({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=gg(f);return(0,L.jsx)(_g,{"data-shrink":u,ref:t,className:R(p.root,s),...c,ownerState:f,classes:p})});function yg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function bg(e,t=!1){return e&&(yg(e.value)&&e.value!==``||t&&yg(e.defaultValue)&&e.defaultValue!==``)}function xg(e){return e.startAdornment}function Sg(e){return Qi(`MuiFormControl`,e)}z(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var Cg=e=>{let{classes:t,margin:n,fullWidth:r}=e;return bo({root:[`root`,n!==`none`&&`margin${yu(n)}`,r&&`fullWidth`]},Sg,t)},wg=V(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${yu(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%`}}]}),Tg=I.forwardRef(function(e,t){let n=Kc({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=Cg(_),[y,b]=I.useState(()=>{let e=!1;return r&&I.Children.forEach(r,t=>{if(!Tu(t,[`Input`,`Select`]))return;let n=Tu(t,[`Select`])?t.props.input:t;n&&xg(n.props)&&(e=!0)}),e}),[x,S]=I.useState(()=>{let e=!1;return r&&I.Children.forEach(r,t=>{Tu(t,[`Input`,`Select`])&&(bg(t.props,!0)||bg(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=I.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;I.useRef(!1);let E=I.useCallback(()=>{S(!0)},[]),D=I.useCallback(()=>{S(!1)},[]),O=I.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,L.jsx)(sg.Provider,{value:O,children:(0,L.jsx)(wg,{as:o,ownerState:_,className:R(v.root,i),ref:t,...g,children:r})})}),Eg=V(Tg)(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),Dg=V(vg)(()=>({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)`}})),Og=({label:e,className:t,children:n})=>(0,L.jsxs)(Eg,{className:t,children:[(0,L.jsx)(Dg,{shrink:!0,children:e}),n]});Og.propTypes={label:P.oneOfType([P.string,P.object]).isRequired,className:P.string,children:P.oneOfType([P.arrayOf(P.node),P.node]).isRequired};var{translator:kg}=Ze,Ag=`pie-prompt-audio-player`,jg=`play-audio-button`,Mg=e=>`&:not(.MathJax) > table${e}, &:not(.MathJax) > .pie-table-scroll > table${e}`,Ng=V(`div`)(({theme:e,tagName:t})=>({[`& .${jg}:focus-visible`]:{outline:`2px solid ${Fd()}`,outlineOffset:`2px`},[Mg(`: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:wd()},[Mg(`:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)`)]:{backgroundColor:Ed()},[Mg(`:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td`)]:{backgroundColor:Ed()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},[Mg(` td > p.kds-indent`)]:{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:Gu()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${Gu()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),Pg=/\\embed\{newLine\}\[\]/g,Fg=`\\newline `,Ig=`preview-prompt`,Lg=class extends I.Component{static propTypes={prompt:P.string,tagName:P.string,className:P.string,onClick:P.func,defaultClassName:P.string,autoplayAudioEnabled:P.bool,customAudioButton:P.shape({playImage:P.string,pauseImage:P.string}),language:P.string};static defaultProps={onClick:()=>{}};promptRef=I.createRef();audioId=Jm(Ag);playButtonId=Jm(jg);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(Ag),a.appendChild(e),n){a.style.display=`none`;let e=document.createElement(`button`);e.setAttribute(`type`,`button`),e.setAttribute(`aria-label`,kg.t(`common:playAudio`,{lng:r})),e.id=this.playButtonId,e.className=jg,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(`.${jg}`),i=n?.querySelector(`.${Ag}`);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 qm==`function`&&qm(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`:``} ${Ig}`.trim();return(0,L.jsx)(Ng,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(Pg,Fg)}})}},Rg=e=>(0,L.jsx)(L.Fragment,{children:I.Children.map(e.children,t=>I.cloneElement(t,{"data-pie-readable":e.false===void 0}))});Rg.propTypes={children:P.node,false:P.bool};var zg=e=>(0,L.jsx)(L.Fragment,{children:I.Children.map(e.children,t=>I.cloneElement(t,{"data-pie-purpose":e.purpose}))});zg.propTypes={children:P.node,purpose:P.string};var Bg;typeof window<`u`&&(Bg=new DOMParser);var Vg=e=>Bg.parseFromString(e,`text/html`).body.textContent,Hg=e=>{if(!e)return!1;let t=Vg(e);return!!(t&&t.trim())},Ug;typeof window<`u`&&(Ug=new DOMParser);var Wg=e=>{if(!e)return!1;let t=Ug.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},Gg=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTcsEjJDY4QmJ1dpKztMQYMzdEVIKyw9PxQ1hmc3SWJzVFRlZXhJOUldJk/8QAGwEBAQADAQEBAAAAAAAAAAAAAAcEBQYCAQP/xABBEQEAAQIDAgkJBgUFAQEBAAAAAQIDBAYRBSESMUFEYXGCscITNDVRcoGRocEUIjJS0eEVI2KSsjNCU6LwFtLx/9oADAMBAAIRAxEAPwD1TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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`;function Kg(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}function qg(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:Wl(n,r),{props:s,internalRef:c}=ql({...a,externalSlotProps:o}),l=ul(c,o?.ref,e.additionalProps?.ref);return Ul(t,{...s,ref:l},r)}var Jg=I.createContext({});function Yg(e){return Qi(`MuiList`,e)}z(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var Xg=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return bo({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},Yg,t)},Zg=V(`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}}]}),Qg=I.forwardRef(function(e,t){let n=Kc({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=I.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=Xg(d);return(0,L.jsx)(Jg.Provider,{value:u,children:(0,L.jsxs)(Zg,{as:a,className:R(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),$g=gl;function e_(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function t_(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function n_(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 r_(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`)||!n_(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var i_=I.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=I.useRef(null),p=I.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Eu(()=>{r&&f.current.focus()},[r]),I.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${$g(Qc(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=kl(Xc(t));if(n===`ArrowDown`)e.preventDefault(),r_(t,r,c,s,e_);else if(n===`ArrowUp`)e.preventDefault(),r_(t,r,c,s,t_);else if(n===`Home`)e.preventDefault(),r_(t,null,c,s,e_);else if(n===`End`)e.preventDefault(),r_(t,null,c,s,t_);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&&n_(r,i);i.previousKeyMatched&&(c||r_(t,r,!1,s,e_,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=dl(f,t),g=-1;I.Children.forEach(a,(e,t)=>{if(!I.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 _=I.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),I.cloneElement(e,t)}return e});return(0,L.jsx)(Qg,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function a_(e){return Qi(`MuiMenu`,e)}z(`MuiMenu`,[`root`,`paper`,`list`]);var o_={vertical:`top`,horizontal:`right`},s_={vertical:`top`,horizontal:`left`},c_=e=>{let{classes:t}=e;return bo({root:[`root`],paper:[`paper`],list:[`list`]},a_,t)},l_=V(Bu,{shouldForwardProp:e=>Ps(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),u_=V(zu,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),d_=V(i_,{name:`MuiMenu`,slot:`List`})({outline:0}),f_=I.forwardRef(function(e,t){let n=Kc({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=Ra(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=c_(b),S=r&&!o&&l,C=I.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;I.Children.map(i,(e,t)=>{I.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=qg({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[ee,k]=Jl(`paper`,{className:x.paper,elementType:u_,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[A,j]=Jl(`list`,{className:R(x.list,s.className),elementType:d_,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),te=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,L.jsx)(l_,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?o_:s_,slots:{root:g.root,paper:ee,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:k,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...te,onEntering:(...e)=>{w(...e),te?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,L.jsx)(A,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...j,children:i})})}),p_=({slotProps:e,...t})=>(0,L.jsx)(f_,{...t,disableScrollLock:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,...e?.root?.style}},backdrop:{invisible:!0,...e?.backdrop}}}),m_=s({Collapsible:()=>eh,EnableAudioAutoplayImage:()=>Gg,Feedback:()=>rf,HtmlAndMath:()=>ag,InlineMenu:()=>p_,InputContainer:()=>Og,PreviewLayout:()=>ig,PreviewPrompt:()=>Lg,Purpose:()=>zg,Readable:()=>Rg,UiLayout:()=>ng,color:()=>Uu,createUniqueId:()=>Jm,hasMedia:()=>Wg,hasText:()=>Hg,indicators:()=>af,transformDataHeadings:()=>Kg,useUniqueId:()=>Ym,withUndoReset:()=>$h}),h_=`height ease-in 300ms, opacity ease-in 300ms`,g_=V(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:h_,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:h_,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),__=e=>{let{show:t,children:n,className:r}=e,i=(0,I.useRef)(null);return(0,L.jsx)(cc,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,L.jsx)(g_,{ref:i,className:r,children:n})})};__.propTypes={show:P.bool.isRequired,className:P.string,children:P.oneOfType([P.arrayOf(P.node),P.node]).isRequired};function v_(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function y_(e,t){return!e||v_(e)?e:v_(e.default)?e.default:t&&v_(e[t])?e[t]:t&&v_(e[t]?.default)?e[t].default:e}var b_=y_(Rg,`Readable`)||y_(C_.Readable,`Readable`),x_=m_,S_=x_.default,C_=S_&&typeof S_==`object`?S_:x_,{translator:w_}=Ze,T_={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},E_=V(`div`)(()=>({width:`100%`,cursor:`pointer`})),D_=V(`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 ${Pd()}`,outlineOffset:`-2px`}})),O_=V(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${Gu()})`,fontWeight:`normal`,...T_})),k_=V(`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`}})),A_=V(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),j_=class e extends I.Component{static propTypes={onToggle:P.func,toggled:P.bool,show:P.bool,hideMessage:P.string,showMessage:P.string,className:P.string,language:P.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=I.createRef(),this.closedIconRef=I.createRef(),e.defaultProps={...e.defaultProps,showMessage:w_.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:w_.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:w_.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:w_.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,L.jsx)(E_,{className:e,children:(0,L.jsx)(__,{show:this.state.show,children:(0,L.jsxs)(D_,{type:`button`,"aria-pressed":!!t,onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,L.jsxs)(A_,{children:[(0,L.jsx)(cc,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,L.jsx)(k_,{ref:this.openIconRef,children:(0,L.jsx)(Mc,{open:t},`correct-open`)})}),(0,L.jsx)(cc,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,L.jsx)(k_,{ref:this.closedIconRef,children:(0,L.jsx)(Mc,{open:t},`correct-closed`)})})]}),(0,L.jsx)(b_,{false:!0,children:(0,L.jsx)(O_,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}},M_=s({greaterThan:()=>F_,greaterThanEqual:()=>L_,lessThan:()=>P_,lessThanEqual:()=>I_}),N_=e=>({...e,category:`comparison`}),P_=N_({name:`Less than`,latex:`<`,command:`\\lt`}),F_=N_({name:`Greater than`,latex:`>`,command:`\\gt`}),I_=N_({name:`Less than or equal`,latex:`\\le`,symbol:`<=`,command:`\\le`,ariaLabel:`less than or equal to`}),L_=N_({name:`Greater than or equal`,symbol:`>=`,command:`\\ge`,latex:`\\ge`}),R_=1,z_=2,B_=4294967295,V_=9007199254740991,H_=`[object Arguments]`,U_=`[object Array]`,W_=`[object ArrayBuffer]`,G_=`[object AsyncFunction]`,K_=`[object Boolean]`,q_=`[object DataView]`,J_=`[object Date]`,Y_=`[object Error]`,X_=`[object Function]`,Z_=`[object GeneratorFunction]`,Q_=`[object Map]`,$_=`[object Number]`,ev=`[object Object]`,tv=`[object Proxy]`,nv=`[object RegExp]`,rv=`[object Set]`,iv=`[object String]`,av=`[object Symbol]`,ov=new Set([`Float32`,`Float64`,`Int8`,`Int16`,`Int32`,`Uint8`,`Uint8Clamped`,`Uint16`,`Uint32`].map(e=>`[object ${e}Array]`));[...ov];var sv=/^[-+]0x[0-9a-f]+$/i,cv=/^0b[01]+$/i,lv=/^0o[0-7]+$/i,uv=/^(?:0|[1-9]\d*)$/,dv=/^\s+/,fv=/\s/,pv=Object.prototype,mv=pv.hasOwnProperty,hv=pv.toString,gv=pv.propertyIsEnumerable;Function.prototype.toString.call(Object),Symbol.prototype.toString;var _v=Symbol.prototype.valueOf;function vv(e){return typeof e==`object`&&!!e}function yv(e,t){return e===t||e!==e&&t!==t}function bv(e){let t=mv.call(e,Symbol.toStringTag),n=e[Symbol.toStringTag],r=!1;try{e[Symbol.toStringTag]=void 0,r=!0}catch{}let i=hv.call(e);return r&&(t?e[Symbol.toStringTag]=n:delete e[Symbol.toStringTag]),i}function xv(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Symbol.toStringTag in Object(e)?bv(e):hv.call(e)}function Sv(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=V_}function Cv(e,t){let n=typeof e,r=t??V_;return!!r&&(n==`number`||n!=`symbol`&&uv.test(e))&&e>-1&&e%1==0&&e<r}function wv(e){return e!=null&&Sv(e.length)&&!cy(e)}function Tv(e){return vv(e)&&wv(e)}function Ev(e){return vv(e)&&xv(e)==H_}function Dv(e){return vv(e)&&Sv(e.length)&&ov.has(xv(e))}function Ov(e){return typeof e==`symbol`||vv(e)&&xv(e)==av}function kv(e){let t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||pv)}function Av(e){let t=e.length;for(;t--&&fv.test(e.charAt(t)););return t}function jv(e){return e&&e.slice(0,Av(e)+1).replace(dv,``)}function Mv(e){if(typeof e==`number`)return e;if(Ov(e))return NaN;if(ly(e)){let t=typeof e.valueOf==`function`?e.valueOf():e;e=ly(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;let t=jv(e),n=cv.test(t);return n||lv.test(t)?parseInt(t.slice(2),n?2:8):sv.test(t)?NaN:+t}function Nv(e){if(!e)return e===0?e:0;let t=Mv(e);return t===1/0||t===-1/0?t<0?-Number.MAX_VALUE:Number.MAX_VALUE:t===t?t:0}function Pv(e){let t=Nv(e),n=t%1;return n?t-n:t}function Fv(e){return e}function Iv(e){return typeof e==`function`?e:Fv}function Lv(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 Rv(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 zv(e,t){let n=-1,{length:r}=t,i=e.length;for(;++n<r;)e[i+n]=t[n];return e}function Bv(e,t){let n=-1,r=e==null?0:e.length;for(;++n<r;)if(t(e[n],n))return!0;return!1}function Vv(e,t){let n=-1,r=Array(e);for(;++n<e;)r[n]=t(n);return r}function Hv(e){let t=-1,n=Array(e.size);return e.forEach(e=>{n[++t]=e}),n}function Uv(e){let t=-1,n=Array(e.size);return e.forEach((e,r)=>{n[++t]=[r,e]}),n}function Wv(e,t){let n=Array.isArray(e),r=!n&&Ev(e),i=!n&&!r&&Dv(e),a=n||r||i,o=a?Vv(e.length,String):[],{length:s}=o;for(let n in e)(t||mv.call(e,n))&&!(a&&(n==`length`||i&&(n==`buffer`||n==`byteLength`||n==`byteOffset`)||Cv(n,s)))&&o.push(n);return o}function Gv(e){if(!kv(e))return Object.keys(Object(e));let t=[];for(let n in Object(e))mv.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Kv(e){return wv(e)?Wv(e,!1):Gv(e)}function qv(e){if(e==null)return[];let t=Object(e);return Object.getOwnPropertySymbols(t).filter(e=>gv.call(t,e))}function Jv(e){let t=Kv(e);return Array.isArray(e)?t:zv(t,qv(e))}function Yv(e){return Array.isArray(e)||Ev(e)||!!(e&&e[Symbol.isConcatSpreadable])}function Xv(e,t,n=Yv,r=!1,i=[]){let a=-1,{length:o}=e;for(;++a<o;){let o=e[a];t>0&&n(o)?t>1?Xv(o,t-1,n,r,i):zv(i,o):r||(i[i.length]=o)}return i}function Zv(e){return t=>t?.[e]}function Qv(e,t){return e.byteLength==t.byteLength&&ry(new Uint8Array(e),new Uint8Array(t))}function $v(e,t,n,r,i){let a=n&R_,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&z_?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(!Bv(t,(e,t)=>!f.has(t)&&(o===e||ry(o,e,n,r,i))?f.add(t):!1)){d=!1;break}}else if(!(o===s||ry(o,s,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function ey(e,t,n,r,i,a){switch(n){case q_:return e.byteLength==t.byteLength&&e.byteOffset==t.byteOffset&&Qv(e.buffer,t.buffer);case W_:return Qv(e,t);case K_:case J_:case $_:return yv(+e,+t);case Y_:return e.name==t.name&&e.message==t.message;case nv:case iv:return e==t+``;case Q_:case rv:{let o=r&R_;if(e.size!=t.size&&!o)return!1;let s=a.get(e);if(s)return s==t;let c=n==Q_?Uv:Hv;a.set(e,t);let l=$v(c(e),c(t),r|z_,i,a);return a.delete(e),l}case av:return _v.call(e)==_v.call(t)}return!1}function ty(e,t,n,r,i){let a=n&R_,o=Jv(e),s=o.length;if(s!=Jv(t).length&&!a)return!1;let c=s;for(;c--;){let e=o[c];if(!(a?e in t:mv.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||ry(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 ny(e,t,n,r,i){let a=Array.isArray(e),o=Array.isArray(t),s=a?U_:xv(e),c=o?U_:xv(t);s=s==H_?ev:s,c=c==H_?ev:c;let l=s==ev,u=s==c;return u&&!l?a||Dv(e)?$v(e,t,n,r,i||new Map):ey(e,t,s,n,r,i||new Map):u?ty(e,t,n,r,i||new Map):!1}function ry(e,t,n=0,r,i){return e===t?!0:e==null||t==null||!vv(e)&&!vv(t)?e!==e&&t!==t:ny(e,t,n,r,i)}function iy(e){if(!(e&&e.length))return[];let t=0,n=Lv(e,e=>Tv(e)?(t=Math.max(e.length,t),!0):!1);return Vv(t,e=>Rv(n,Zv(e)))}function ay(e){return e!=null&&e.length?Xv(e,1):[]}function oy(e){if(e==null)return!0;if(wv(e)&&(Array.isArray(e)||typeof e==`string`||typeof e.splice==`function`||Dv(e)||Ev(e)))return!e.length;let t=xv(e);if(t==Q_||t==rv)return!e.size;if(kv(e))return!Gv(e).length;for(let t in e)if(mv.call(e,t))return!1;return!0}function sy(e,t){return ry(e,t)}function cy(e){if(!ly(e))return!1;let t=xv(e);return t==X_||t==Z_||t==G_||t==tv}function ly(e){let t=typeof e;return e!=null&&(t==`object`||t==`function`)}function uy(e,t){let n=Pv(e);if(n<1||n>V_)return[];let r=B_,i=Math.min(n,B_),a=Iv(t);n-=B_;let o=Vv(i,a);for(;++r<n;)a(r);return o}function dy(...e){return iy(e)}var fy=e=>t=>({...t,category:e}),py=(e=[])=>{let t=[];uy(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},my=e=>t=>{let n=ay(e),r=n.some(e=>e.latex===t.latex),i=n.some(e=>e.name===t.name);return!r&&!i},hy=(e=[],t=[])=>{t=t.filter(my(e));let n=[];uy(5-e.length,()=>e.push([])),uy(5,()=>n.push([]));let r=py(t);for(let t=0;t<5;t++)n[t]=[...e[t],...r[t]];return n},gy=s({theta:()=>by,x:()=>vy,y:()=>yy}),_y=fy(`vars`),vy=_y({name:`X`,latex:`x`,write:`x`}),yy=_y({name:`Y`,latex:`y`,write:`y`}),by=_y({name:`Theta`,latex:`\\theta`,write:`\\theta`}),xy=s({blankOverBlank:()=>Cy,xBlankBlank:()=>Ty,xOverBlank:()=>wy}),Sy=fy(`fractions`),Cy=Sy({name:`blank/blank`,latex:`\\frac{}{}`,command:`\\frac`,ariaLabel:`fraction`}),wy=Sy({latex:`\\frac{x}{ }`,name:`X/blank`,label:`x/[]`,command:`/`,ariaLabel:`x over blank fraction`}),Ty=Sy({name:`X (blank/blank)`,latex:`x\\frac{}{}`,label:`x([]/[])`,command:`\\frac`,ariaLabel:`mixed number`}),Ey=s({nthRoot:()=>jy,squareRoot:()=>Ay,squared:()=>Oy,xToPowerOfN:()=>ky}),Dy=fy(`exponent`),Oy=Dy({name:`Squared`,latex:`x^2`,write:`^2`}),ky=Dy({name:`X to the power of n`,latex:`x^{}`,command:`^`,ariaLabel:`exponent`}),Ay=Dy({name:`Square root`,latex:`\\sqrt{}`,command:`\\sqrt`}),jy=Dy({name:`Nth root`,latex:`\\sqrt[{}]{}`,command:`\\nthroot`}),My=s({absValue:()=>Fy,approx:()=>zy,brackets:()=>Ly,nApprox:()=>By,notEqual:()=>Vy,notSimilar:()=>Uy,parenthesis:()=>Iy,percentage:()=>Ry,plusMinus:()=>Py,similar:()=>Hy}),Ny=fy(`misc`),Py=Ny({name:`Plus or Minus`,latex:`\\pm`,write:`\\pm`}),Fy=Ny({name:`Absolute Value`,latex:`\\abs{}`,symbol:`| |`,command:`|`}),Iy=Ny({name:`Parenthesis`,latex:`\\left(\\right)`,symbol:`( )`,command:`(`}),Ly=Ny({name:`Brackets`,latex:`\\left[\\right]`,symbol:`[ ]`,command:`[`}),Ry=Ny({name:`Percent`,latex:`%`,command:`%`}),zy=Ny({latex:`\\approx`,command:`\\approx`,ariaLabel:`Approximately equal to`}),By=Ny({latex:`\\napprox`,command:`\\napprox`,ariaLabel:`Not pproximately equal to`}),Vy=Ny({latex:`\\neq`,command:`\\neq`,ariaLabel:`Not equals`}),Hy=Ny({latex:`\\sim`,command:`\\sim`,ariaLabel:`Similar`}),Uy=Ny({latex:`\\nsim`,command:`\\nsim`,ariaLabel:`Not similar`}),Wy=s({eulers:()=>qy,halfInfinity:()=>Yy,infinity:()=>Jy,pi:()=>Ky}),Gy=fy(`constants`),Ky=Gy({name:`Pi`,label:`π`,latex:`\\pi`,command:`\\pi`,category:`constants`}),qy=Gy({name:`Eulers`,label:`e`,latex:`e`,command:`e`,category:`constants`}),Jy=Gy({name:`Infinity`,label:`\\infty`,latex:`\\infty`,command:`\\infty`,category:`constants`}),Yy=Gy({name:`Half Infinity`,label:`\\propto`,latex:`\\propto`,command:`\\propto`,category:`constants`}),Xy=s({cos:()=>$y,cot:()=>rb,csc:()=>nb,sec:()=>tb,sin:()=>Qy,tan:()=>eb}),Zy=fy(`trigonometry`),Qy=Zy({name:`sine`,label:`sin`,command:`\\sin`,latex:`\\sin`}),$y=Zy({name:`cosine`,label:`cos`,command:`\\cos`,latex:`\\cos`}),eb=Zy({name:`tanget`,label:`tan`,command:`\\tan`,latex:`\\tan`}),tb=Zy({name:`secant`,label:`sec`,command:`\\sec`,latex:`\\sec`}),nb=Zy({name:`cosecant`,label:`csc`,command:`\\csc`,latex:`\\csc`}),rb=Zy({name:`cotangent`,label:`cot`,command:`\\cot`,latex:`\\cot`}),ib=s({angle:()=>pb,circledDot:()=>yb,congruentTo:()=>Sb,degree:()=>bb,doublePrimeArcSecond:()=>Tb,leftArrow:()=>Eb,leftrightArrow:()=>Ob,measureOfAngle:()=>hb,notCongruentTo:()=>Cb,notParallel:()=>db,overArc:()=>mb,overLeftRightArrow:()=>cb,overRightArrow:()=>sb,overline:()=>ob,parallel:()=>ub,parallelogram:()=>vb,perpindicular:()=>fb,primeArcminute:()=>wb,rightArrow:()=>Db,segment:()=>lb,similarTo:()=>xb,square:()=>_b,triangle:()=>gb}),ab=e=>({...e,category:`geometry`}),ob=ab({name:`Line`,latex:`\\overline{}`,command:`\\overline`}),sb=ab({name:`Ray`,latex:`\\overrightarrow{}`,command:`\\overrightarrow`}),cb=ab({name:`Segment`,latex:`\\overleftrightarrow{\\overline{}}`,symbol:`AB`,command:`\\overleftrightarrow`}),lb=ab({name:`Segment`,latex:`\\overleftrightarrow{AB}`,write:`\\overleftrightarrow{AB}`,label:`AB`}),ub=ab({name:`Parallel`,latex:`\\parallel`,command:`\\parallel`}),db=ab({name:`Not Parallel`,latex:`\\nparallel`,command:`\\nparallel`}),fb=ab({name:`Perpendicular`,latex:`\\perp`,command:`\\perpendicular`}),pb=ab({name:`Angle`,latex:`\\angle`,command:`\\angle`}),mb=ab({name:`Over arc`,latex:`\\overarc{\\overline{}}`,command:`\\overarc`}),hb=ab({name:`Measured Angle`,latex:`\\measuredangle`,command:[`m`,`\\angle`]}),gb=ab({name:`Triangle`,latex:`\\triangle`,command:`\\triangle`}),_b=ab({name:`Square`,latex:`\\square`,command:`\\square`}),vb=ab({name:`Parallelogram`,latex:`\\parallelogram`,command:`\\parallelogram`}),yb=ab({name:`Circled Dot`,latex:`\\odot`,command:`\\odot`}),bb=ab({name:`Degree`,latex:`\\degree`,command:`\\degree`}),xb=ab({name:`Similar`,command:`\\sim`,latex:`\\sim`}),Sb=ab({name:`Congruent To`,command:`\\cong`,latex:`\\cong`}),Cb=ab({name:`Not Congruent To`,command:`\\ncong`,latex:`\\ncong`}),wb=ab({name:`Prime`,label:`pam`,latex:`'`,write:`'`}),Tb=ab({name:`Double Prime`,latex:`''`,write:`''`}),Eb=ab({name:`Left Arrow`,latex:`\\leftarrow`,command:`\\leftarrow`}),Db=ab({name:`Right Arrow`,latex:`\\rightarrow`,command:`\\rightarrow`}),Ob=ab({name:`Left and Right Arrow`,latex:`\\leftrightarrow`,command:`\\leftrightarrow`}),kb=s({circleDot:()=>Ab}),Ab=fy(`operators`)({name:`CircleDot`,label:`⋅`,write:`\\cdot`,ariaLabel:`Dot multiplier`}),jb=s({ln:()=>Fb,log:()=>Nb,logSubscript:()=>Pb}),Mb=fy(`log`),Nb=Mb({name:`Log`,label:`log`,command:`\\log`,latex:`\\log`}),Pb=Mb({name:`log base n`,label:`log s`,latex:`\\log_{}`,command:[`\\log`,`_`]}),Fb=Mb({name:`natural log`,label:`ln`,command:`\\ln`,latex:`\\ln`}),Ib=s({subscript:()=>zb,superscript:()=>Rb}),Lb=fy(`sub-sup`),Rb=Lb({name:`Superscript`,latex:`x^{}`,command:`^`}),zb=Lb({name:`Subscript`,latex:`x_{}`,command:`_`}),Bb=s({mu:()=>Wb,sigma:()=>Gb,smallSigma:()=>Kb,xBar:()=>Hb,yBar:()=>Ub}),Vb=fy(`statistics`),Hb=Vb({name:`X Bar`,label:`x̄`,latex:`\\overline{x}`,write:`\\overline{x}`}),Ub=Vb({name:`Y Bar`,latex:`\\overline{y}`,write:`\\overline{y}`}),Wb=Vb({name:`mu`,label:`mu`,latex:`\\mu`,write:`\\mu`}),Gb=Vb({name:`Sigma`,ariaLabel:`Uppercase Sigma`,label:`\\Sigma`,latex:`\\Sigma`,write:`\\Sigma`}),Kb=Vb({name:`sigma`,ariaLabel:`Lowercase Sigma`,label:`\\sigma`,latex:`\\sigma`,write:`\\sigma`}),qb=s({divide:()=>Qb,equals:()=>Yb,minus:()=>Zb,multiply:()=>$b,plus:()=>Xb}),Jb=fy(`operators`),Yb=Jb({write:`=`,label:`=`}),Xb=Jb({write:`+`,label:`+`}),Zb=Jb({write:`−`,label:`−`}),Qb=Jb({name:`divide`,label:`÷`,command:`\\divide`,otherNotation:`\\div`}),$b=Jb({name:`multiply`,label:`×`,command:`\\times`}),ex=s({doubleCellMatrix:()=>rx,singleCellMatrix:()=>nx}),tx=fy(`matrices`),nx=tx({name:`Single Cell Matrix`,label:`[ ]`,write:`\\begin{pmatrix}\\end{pmatrix}`}),rx=tx({name:`Double Cell Matrix`,label:`[ ] [ ] \\\\newline [ ] [ ]`,write:`\\begin{bmatrix}&\\\\&\\end{bmatrix}`}),ix={0:`zero`,1:`one`,2:`two`,3:`three`,4:`four`,5:`five`,6:`six`,7:`seven`,8:`eight`,9:`nine`},ax=uy(10,String).map(e=>({name:ix[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`}}),ox=fy(`logic`),sx=ox({name:`Therefore`,label:`∴`,write:`∴`}),cx=ox({name:`Long division`,latex:`\\longdiv{}`,command:`\\longdiv`}),lx=fy(`navigation`),ux=lx({label:`◀`,keystroke:`Left`,ariaLabel:`Move cursor left`}),dx=lx({label:`▶`,keystroke:`Right`,ariaLabel:`Move cursor right`}),fx={label:`⌫`,category:`edit`,keystroke:`Backspace`,ariaLabel:`Delete`},px=[[Cy,Ry,vy,Oy,Ay],[Ab,yy,zb,ky,jy],[Py,P_,F_,I_,L_],[Ky,by,Iy,Ly,Fy],[Vy,Qy,$y,eb,bb]],mx=(()=>{let e=[...px.map(e=>[...e])];return e[0].push({name:`i`,latex:`i`,write:`i`}),e[1].push(Nb),e[2].push(Pb),e[3].push(Fb),e[4].push(qy),e})(),hx=(()=>{let e=[...px.map(e=>[...e])];return e[0].push(Wb),e[1].push(Hb),e[2].push(Ub),e[3].push(Gb),e[4].push(Kb),e})(),gx=[{predicate:e=>e>=3&&e<=5,set:[[P_,F_],[wy,Ty],[vy,cx],[Oy,ky]]},{predicate:e=>e>=6&&e<=7,set:[[bb,P_,F_],[Ab,I_,L_],[vy,yy,Oy,ky],[Py,wy,Ty,Ay],[Ky,Iy,Fy,jy]]},{predicate:e=>e>=8||e===`HS`,set:px},{predicate:`non-negative-integers`,set:[[ax.seven,ax.eight,ax.nine],[ax.four,ax.five,ax.six],[ax.one,ax.two,ax.three],[ax.zero,{name:``,latex:``,write:``},{name:``,latex:``,write:``}],[ux,dx,fx]]},{predicate:`integers`,set:[[ax.seven,ax.eight,ax.nine],[ax.four,ax.five,ax.six],[ax.one,ax.two,ax.three],[ax.zero,{name:``,latex:``,write:``},Zb],[ux,dx,fx]]},{predicate:`decimals`,set:[[ax.seven,ax.eight,ax.nine],[ax.four,ax.five,ax.six],[ax.one,ax.two,ax.three],[ax.zero,ax.decimalPoint,Zb],[ux,dx,fx]]},{predicate:`fractions`,set:[[ax.seven,ax.eight,ax.nine],[ax.four,ax.five,ax.six],[ax.one,ax.two,ax.three],[ax.zero,Cy,Zb],[ux,dx,fx]]},{predicate:`geometry`,set:[[Cy,bb,wb,Tb,Sb,xb],[Ab,pb,hb,gb,Cb,Uy],[Qy,$y,eb,Ky,Ay,jy],[nb,tb,rb,by,zb,ky],[ob,sb,cb,mb,fb,ub]]},{predicate:`advanced-algebra`,set:mx},{predicate:`statistics`,set:hx},{predicate:`item-authoring`,set:[[Qb,Cy,cx,Yy,Oy,Ay,ob,sb,cb,Nb],[$b,Ab,{name:``,latex:``,write:``},zb,ky,jy,fb,ub,mb,Pb],[Py,Ky,by,bb,pb,Eb,Db,gb,_b,Fb],[Vy,Fy,Kb,Wb,sx,Gb,Ob,Qy,$y,eb],[I_,L_,{name:``,latex:``,write:``},{name:``,latex:``,write:``},Jy,{name:``,latex:``,write:``},{name:``,latex:``,write:``},nb,tb,rb]]},{predicate:e=>e>=1&&e<=2,set:[]}],_x=e=>{let t=parseInt(e,10);if(e=isNaN(t)?e:t,!e)return[];let n=gx.find(t=>typeof t.predicate==`string`?t.predicate===e:t.predicate(e));if(n)return n.set||[];if(e!==`language`)return gx[2].set},vx=[...Object.values(qb),...Object.values(M_),...Object.values(Wy),...Object.values(ax),...Object.values(Ey),...Object.values(xy),...Object.values(ib),...Object.values(jb),...Object.values(ex),...Object.values(My),...Object.values(kb),...Object.values(Bb),...Object.values(Ib),...Object.values(Xy),...Object.values(gy)],yx=e=>(e||[]).map(e=>{let{latex:t}=e,n=(vx||[]).find(e=>t===e.latex||t===e.write||t===e.command||t===e.otherNotation);return t&&n||e}),bx=()=>{(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:xx,two:Sx,three:Cx,four:wx,five:Tx,six:Ex,seven:Dx,eight:Ox,nine:kx,zero:Ax,comma:jx,decimalPoint:Mx}=ax,Nx=[[Dx,Ox,kx,Qb],[wx,Tx,Ex,$b],[xx,Sx,Cx,Zb],[Ax,Mx,jx,Xb],[ux,dx,fx,Yb]];function Px(e){return Qi(`MuiIconButton`,e)}var Fx=z(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),Ix=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return bo({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${yu(r)}`,i&&`edge${yu(i)}`,`size${yu(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Px,t)},Lx=V(vh,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${yu(n.color)}`],n.edge&&t[`edge${yu(n.edge)}`],t[`size${yu(n.size)}`]]}})(Hl(({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}}]})),Hl(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(Sh()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Sh()).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)}}],[`&.${Fx.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${Fx.loading}`]:{color:`transparent`}}))),Rx=V(`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`}}]})),zx=I.forwardRef(function(e,t){let n=Kc({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=Du(u),h=f??(0,L.jsx)(Ph,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=Ix(g);return(0,L.jsxs)(Lx,{id:d?m:u,className:R(_.root,a),centerRipple:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,L.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,L.jsx)(Rx,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),{translator:Bx}=Ze;function Vx(e,t){if(!e)return;let n=Bx.t(`mathInput.enterAnswer`,{lng:t});for(let t of e.querySelectorAll(`.mq-editable-field > .mq-textarea > textarea`))t.setAttribute(`aria-label`,n)}function G(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]}G.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},G.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},G.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},G.prototype.attr=function(e,t){return t===Kx?this.elements[0]?this.elements[0].getAttribute(e):Kx:(this.elements.forEach(function(n){n.setAttribute(e,t)}),this)},G.prototype.html=function(e){return e===Kx?this.elements[0]?this.elements[0].innerHTML:``:(this.elements.forEach(function(t){t.innerHTML=e}),this)},G.prototype.append=function(e){var t=e instanceof G?e.elements[0]:e;return this.elements.forEach(function(e){e.appendChild(t)}),this},G.prototype.prepend=function(e){var t=e instanceof G?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},G.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 G)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},G.prototype.appendTo=function(e){var t=e instanceof G?e.elements[0]:e;return t&&this.elements.forEach(function(e){t.appendChild(e)}),this},G.prototype.prependTo=function(e){var t=e instanceof G?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},G.prototype.insertBefore=function(e){var t=e instanceof G?e.elements[0]:e;if(!t)return this;var n=t.parentNode;return n&&this.elements.forEach(function(e){n.insertBefore(e,t)}),this},G.prototype.insertAfter=function(e){var t=e instanceof G?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},G.prototype.replaceWith=function(e){var t=[];return e instanceof G?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},G.prototype.insDirOf=function(e,t){return e===-1?this.insertBefore(t.first()):this.insertAfter(t.last())},G.prototype.insAtDirEnd=function(e,t){return e===-1?this.prependTo(t):this.appendTo(t)},G.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 G(t)},G.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 G(t)},G.prototype.closest=function(e){return new G(this.elements.map(function(t){return t.closest(e)}).filter(Boolean))},G.prototype.contents=function(){var e=[];return this.elements.forEach(function(t){var n=Array.from(t.childNodes);e.push.apply(e,n)}),new G(e)},G.prototype.filter=function(e){return new G(this.elements.filter(function(t,n){return e(n,t)}))},G.prototype.detach=function(){return this.elements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),this},G.prototype.remove=function(){return this.elements.forEach(function(e){e.remove()}),this},G.prototype.empty=function(){return this.elements.forEach(function(e){e.innerHTML=``}),this};function Hx(e){return(e||``).split(`.`)[0]}G.prototype.on=function(e,t){var n=Hx(e);return this.elements.forEach(function(e){e.addEventListener(n,t)}),this},G.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=Hx(e);r.elements.forEach(function(e){e.addEventListener(t,a)})}),this},G.prototype.off=function(e,t){var n=Hx(e);return this.elements.forEach(function(e){e.removeEventListener(n,t)}),this},G.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=Hx(e);this.elements.forEach(function(e){e.removeEventListener(n,t)})}return this},G.prototype.trigger=function(e){var t=new Event(Hx(e),{bubbles:!0,cancelable:!0});return this.elements.forEach(function(e){e.dispatchEvent(t)}),this},G.prototype.focus=function(e){return typeof e==`function`?this.on(`focus`,e):(this.elements.forEach(function(e){e.focus&&e.focus()}),this)},G.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){G.prototype[e]=function(t){return this.on(e,t)}}),G.prototype.next=function(e){return new G(this.elements.map(function(e){return e.nextElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},G.prototype.prev=function(e){return new G(this.elements.map(function(e){return e.previousElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},G.prototype.parent=function(){return new G(this.elements.map(function(e){return e.parentElement}).filter(Boolean))},G.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)}},G.prototype.width=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.width)||e.getBoundingClientRect().width},G.prototype.height=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.height)||e.getBoundingClientRect().height},G.prototype.outerWidth=function(){return this.elements[0]?this.elements[0].offsetWidth:0},G.prototype.outerHeight=function(){return this.elements[0]?this.elements[0].offsetHeight:0},G.prototype.innerWidth=function(){return this.elements[0]?this.elements[0].clientWidth:0},G.prototype.innerHeight=function(){return this.elements[0]?this.elements[0].clientHeight:0},G.prototype.css=function(e,t){if(t===Kx){if(typeof e==`string`){var n=this.elements[0];return n?window.getComputedStyle(n).getPropertyValue(e.replace(/([A-Z])/g,`-$1`).toLowerCase()):Kx}}else this.elements.forEach(function(n){n.style[e]=t});return this},G.prototype.scrollTop=function(e){var t=this.elements[0];return e===Kx?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)},G.prototype.scrollLeft=function(e){var t=this.elements[0];return e===Kx?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)},G.prototype.each=function(e){return this.elements.forEach(function(t,n){e.call(t,n,t)}),this},G.prototype.eq=function(e){return new G([this.elements[e]])},G.prototype.get=function(e){return e===Kx?this.elements:e<0?this.elements[this.elements.length+e]:this.elements[e]},G.prototype.add=function(e){var t=this.elements.slice();return e instanceof G?t.push.apply(t,e.elements):Array.isArray(e)?t.push.apply(t,e):e&&e.nodeType&&t.push(e),new G(t)},G.prototype.first=function(){return new G([this.elements[0]])},G.prototype.last=function(){return new G([this.elements[this.elements.length-1]])},G.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 G?e.elements[0]:e;return this.elements.indexOf(n)},G.prototype.is=function(e){return this.elements.some(function(t){return t.matches(e)})},G.prototype.text=function(e){return e===Kx?this.elements.map(function(e){return e.textContent}).join(``):(this.elements.forEach(function(t){t.textContent=e}),this)},G.prototype.val=function(e){var t=this.elements[0];return t?e===Kx?t.value===Kx?t.textContent:t.value:(this.elements.forEach(function(t){t.value===Kx?t.textContent=e:t.value=e}),this):Kx};function Ux(e){var t=Array.isArray(e)?e:[e].filter(Boolean),n=Object.create(G.prototype);n.elements=t,n.length=t.length;for(var r=0;r<t.length;r++)n[r]=t[r];return n}var Wx=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 G?t.elements[0]:t||document;n=Array.from(i.querySelectorAll(e))}else n=e instanceof G?e.elements:e.length===Kx?[]:Array.from(e);return Ux(n)};Wx.contains=function(e,t){return e!==t&&e.contains(t)};var Gx=Wx,Kx,qx=`mathquill-command-id`,Jx=`mathquill-block-id`,Yx=Math.min,Xx=Math.max;function Zx(){}var Qx=[].slice;function $x(e){var t=e.length-1;return function(){var n=Qx.call(arguments,0,t),r=Qx.call(arguments,t);return e.apply(this,n.concat([r]))}}var eS=$x(function(e,t){return $x(function(n,r){if(e in n)return n[e].apply(n,t.concat(r))})});function tS(e){return $x(function(t,n){return typeof t!=`function`&&(t=eS(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function K(e){var t=Qx.call(arguments,1);return function(){return e.apply(this,t)}}function nS(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 rS(e){nS(`a direction was passed`,e===J||e===Y)}var iS=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 iS(e.parent,e[J],e[Y])}}),aS=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(),aS.byId[this.id]=this,this.ends={},this.ends[J]=0,this.ends[Y]=0},e.dispose=function(){delete aS.byId[this.id]},e.toString=function(){return`{{ MathQuill Node #`+this.id+` }}`},e.jQ=Wx(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){var e=Wx(e||this.html());function t(e){if(e.getAttribute){var n=e.getAttribute(`mathquill-command-id`),r=e.getAttribute(`mathquill-block-id`);n&&aS.byId[n].jQadd(e),r&&aS.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){rS(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 dS(e,t)},e.bubble=tS(function(e){for(var t=this;t&&e(t)!==!1;t=t.parent);return this}),e.postOrder=tS(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 sS(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 sS(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return sS(this,this).adopt(e,t,n),this},e.disown=function(){return sS(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder(`dispose`),this.disown()}});function oS(e,t,n){nS(`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)),nS(`leftward is properly set up`,(function(){return t?t[Y]===n&&t.parent===e:e.ends[J]===n})()),nS(`rightward is properly set up`,(function(){return n?n[J]===t&&n.parent===e:e.ends[Y]===t})())}var sS=q(function(e){e.init=function(e,t,n){if(n===Kx&&(n=J),rS(n),nS(`no half-empty fragments`,!e==!t),this.ends={},e){nS(`withDir is passed to Fragment`,e instanceof aS),nS(`oppDir is passed to Fragment`,t instanceof aS),nS(`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=Wx(),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){oS(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 oS(r,t[J],t),oS(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=tS(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={},cS={},lS={},uS=q(iS,function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=Wx(`<span class="mq-cursor">​</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=Wx(),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 rS(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 rS(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]=iS.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=iS.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 iS&&(i=i[Y]),a instanceof iS&&(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 jS);return t},e.isTooDeep=function(e){if(this.options.maxDepth!==Kx)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}}),dS=q(sS,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]()})}}),fS=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=uS(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}}),pS={},mS=q(),hS={},gS=q(),_S={};function vS(){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:
|
|
181
|
+
`,u_=typeof c_==`string`?null:Yn`
|
|
182
|
+
animation: ${c_} 1.4s linear infinite;
|
|
183
|
+
`,d_=typeof l_==`string`?null:Yn`
|
|
184
|
+
animation: ${l_} 1.4s ease-in-out infinite;
|
|
185
|
+
`,f_=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return yo({root:[`root`,n,`color${vu(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${vu(n)}`,i&&`circleDisableShrink`]},o_,t)},p_=H(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${vu(n.color)}`]]}})(Vl(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:u_||{animation:`${c_} 1.4s linear infinite`}},...Object.entries(e.palette).filter(a_()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),m_=H(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),h_=H(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${vu(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Vl(({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:d_||{animation:`${l_} 1.4s ease-in-out infinite`}}]}))),g_=H(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(Vl(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),__=R.forwardRef(function(e,t){let n=Gc({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=f_(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((s_-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,z.jsx)(p_,{className:B(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,z.jsxs)(m_,{className:m.svg,ownerState:p,viewBox:`${s_/2} ${s_/2} ${s_} ${s_}`,children:[o?(0,z.jsx)(g_,{className:m.track,ownerState:p,cx:s_,cy:s_,r:(s_-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,z.jsx)(h_,{className:m.circle,style:h,ownerState:p,cx:s_,cy:s_,r:(s_-l)/2,fill:`none`,strokeWidth:l})]})})});function v_(e){return Xi(`MuiButton`,e)}var y_=Zi(`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(`.`)),b_=R.createContext({}),x_=R.createContext(void 0),S_=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=yo({root:[`root`,o&&`loading`,a,`${a}${vu(t)}`,`size${vu(i)}`,`${a}Size${vu(i)}`,`color${vu(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${vu(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${vu(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${vu(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},v_,c);return{...c,...l}},C_=[{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}}}],w_=H(t_,{shouldForwardProp:e=>Ns(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${vu(n.color)}`],t[`size${vu(n.size)}`],t[`${n.variant}Size${vu(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Vl(({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`},[`&.${y_.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]},[`&.${y_.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${y_.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)`,[`&.${y_.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(a_()).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`},[`&.${y_.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${y_.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}),[`&.${y_.loading}`]:{color:`transparent`}}}]}})),T_=H(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${vu(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}},...C_]})),E_=H(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${vu(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}},...C_]})),D_=H(`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}}]})),O_=H(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),k_=R.forwardRef(function(e,t){let n=R.useContext(b_),r=R.useContext(x_),i=Gc({props:ua(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=Eu(h),T=_??(0,z.jsx)(__,{"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=S_(E),O=(b||g&&v===`start`)&&(0,z.jsx)(T_,{className:D.startIcon,ownerState:E,children:b||(0,z.jsx)(O_,{className:D.loadingIconPlaceholder,ownerState:E})}),ee=(f||g&&v===`end`)&&(0,z.jsx)(E_,{className:D.endIcon,ownerState:E,children:f||(0,z.jsx)(O_,{className:D.loadingIconPlaceholder,ownerState:E})}),k=r||``,A=typeof g==`boolean`?(0,z.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,z.jsx)(D_,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:j,...te}=D;return(0,z.jsxs)(w_,{ownerState:E,className:B(n.className,D.root,c,k),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:B(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:te,children:[O,v!==`end`&&A,a,v===`end`&&A,ee]})}),A_=Cu((0,z.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`),j_=Cu((0,z.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`),M_=H(`div`)({display:`flex`,flexDirection:`column`}),N_=H(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),P_=H(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),F_=H(k_)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),I_=e=>{class t extends R.Component{static propTypes={session:I.object,onSessionChange:I.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,z.jsxs)(M_,{children:[(0,z.jsxs)(N_,{children:[(0,z.jsxs)(F_,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,z.jsx)(P_,{children:(0,z.jsx)(j_,{})}),`Undo`]}),(0,z.jsxs)(F_,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,z.jsx)(P_,{children:(0,z.jsx)(A_,{})}),`Start Over`]})]}),(0,z.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},L_=ks({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`}}}}}}),R_=H(`div`)({"& table, th, td":{fontSize:`inherit`}}),z_=class extends R.Component{static propTypes={className:I.string,children:I.array,extraCSSRules:I.shape({names:I.arrayOf(I.string),rules:I.string}),fontSizeFactor:I.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}scopeClass=jg(`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,z.jsx)(fr,{injectFirst:!0,children:(0,z.jsxs)(Bs,{theme:L_,children:[i?.rules?(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.${this.scopeClass} { ${i.rules} }`}}):null,(0,z.jsx)(R_,{className:`${t} extraCSSRules ${this.scopeClass}`,...a,...o&&{style:o},children:e})]})})}},B_=H(z_)({display:`flex`,flexDirection:`column`,position:`relative`}),V_=class extends R.Component{static propTypes={ariaLabel:I.string,children:I.oneOfType([I.arrayOf(I.node),I.node]).isRequired,role:I.string,extraCSSRules:I.shape({names:I.arrayOf(I.string),rules:I.string}),fontSizeFactor:I.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,z.jsx)(B_,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},H_=class extends R.Component{static propTypes={tag:I.string,className:I.string,html:I.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,z.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:wf(n)}})}};function U_({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 W_=R.createContext(void 0);function G_(){return R.useContext(W_)}function K_(e){return Xi(`MuiFormLabel`,e)}var q_=Zi(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),J_=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return yo({root:[`root`,`color${vu(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},K_,t)},Y_=H(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Vl(({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(a_()).map(([t])=>({props:{color:t},style:{[`&.${q_.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${q_.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${q_.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),X_=H(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(Vl(({theme:e})=>({[`&.${q_.error}`]:{color:(e.vars||e).palette.error.main}}))),Z_=R.forwardRef(function(e,t){let n=Gc({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=U_({props:n,muiFormControl:G_(),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=J_(m);return(0,z.jsxs)(Y_,{as:o,ownerState:m,className:B(h.root,i),ref:t,...f,children:[r,p.required&&(0,z.jsxs)(X_,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function Q_(e){return Xi(`MuiInputLabel`,e)}Zi(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var $_=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=yo({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${vu(r)}`,o],asterisk:[s&&`asterisk`]},Q_,t);return{...t,...c}},ev=H(Z_,{shouldForwardProp:e=>Ns(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${q_.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]]}})(Vl(({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)`}}]}))),tv=R.forwardRef(function(e,t){let n=Gc({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=G_(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=U_({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=$_(f);return(0,z.jsx)(ev,{"data-shrink":u,ref:t,className:B(p.root,s),...c,ownerState:f,classes:p})});function nv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function rv(e,t=!1){return e&&(nv(e.value)&&e.value!==``||t&&nv(e.defaultValue)&&e.defaultValue!==``)}function iv(e){return e.startAdornment}function av(e){return Xi(`MuiFormControl`,e)}Zi(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var ov=e=>{let{classes:t,margin:n,fullWidth:r}=e;return yo({root:[`root`,n!==`none`&&`margin${vu(n)}`,r&&`fullWidth`]},av,t)},sv=H(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${vu(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%`}}]}),cv=R.forwardRef(function(e,t){let n=Gc({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=ov(_),[y,b]=R.useState(()=>{let e=!1;return r&&R.Children.forEach(r,t=>{if(!wu(t,[`Input`,`Select`]))return;let n=wu(t,[`Select`])?t.props.input:t;n&&iv(n.props)&&(e=!0)}),e}),[x,S]=R.useState(()=>{let e=!1;return r&&R.Children.forEach(r,t=>{wu(t,[`Input`,`Select`])&&(rv(t.props,!0)||rv(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=R.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;R.useRef(!1);let E=R.useCallback(()=>{S(!0)},[]),D=R.useCallback(()=>{S(!1)},[]),O=R.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,z.jsx)(W_.Provider,{value:O,children:(0,z.jsx)(sv,{as:o,ownerState:_,className:B(v.root,i),ref:t,...g,children:r})})}),lv=H(cv)(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),uv=H(tv)(()=>({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)`}})),dv=({label:e,className:t,children:n})=>(0,z.jsxs)(lv,{className:t,children:[(0,z.jsx)(uv,{shrink:!0,children:e}),n]});dv.propTypes={label:I.oneOfType([I.string,I.object]).isRequired,className:I.string,children:I.oneOfType([I.arrayOf(I.node),I.node]).isRequired};var{translator:fv}=Ye,pv=`pie-prompt-audio-player`,mv=`play-audio-button`,hv=e=>`&:not(.MathJax) > table${e}, &:not(.MathJax) > .pie-table-scroll > table${e}`,gv=H(`div`)(({theme:e,tagName:t})=>({[`& .${mv}:focus-visible`]:{outline:`2px solid ${yp()}`,outlineOffset:`2px`},[hv(`: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:cp()},[hv(`:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)`)]:{backgroundColor:up()},[hv(`:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td`)]:{backgroundColor:up()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},[hv(` td > p.kds-indent`)]:{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:kf()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${kf()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),_v=/\\embed\{newLine\}\[\]/g,vv=`\\newline `,yv=`preview-prompt`,bv=class extends R.Component{static propTypes={prompt:I.string,tagName:I.string,className:I.string,onClick:I.func,defaultClassName:I.string,autoplayAudioEnabled:I.bool,customAudioButton:I.shape({playImage:I.string,pauseImage:I.string}),language:I.string};static defaultProps={onClick:()=>{}};promptRef=R.createRef();audioId=jg(pv);playButtonId=jg(mv);parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n,language:r}=this.props,i=document.createElement(`div`);i.innerHTML=wf(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(pv),a.appendChild(e),n){a.style.display=`none`;let e=document.createElement(`button`);e.setAttribute(`type`,`button`),e.setAttribute(`aria-label`,fv.t(`common:playAudio`,{lng:r})),e.id=this.playButtonId,e.className=mv,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(`.${mv}`),i=n?.querySelector(`.${pv}`);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 Ag==`function`&&Ag(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`:``} ${yv}`.trim();return(0,z.jsx)(gv,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(_v,vv)}})}},xv=e=>(0,z.jsx)(z.Fragment,{children:R.Children.map(e.children,t=>R.cloneElement(t,{"data-pie-readable":e.false===void 0}))});xv.propTypes={children:I.node,false:I.bool};var Sv=e=>(0,z.jsx)(z.Fragment,{children:R.Children.map(e.children,t=>R.cloneElement(t,{"data-pie-purpose":e.purpose}))});Sv.propTypes={children:I.node,purpose:I.string};var Cv;typeof window<`u`&&(Cv=new DOMParser);var wv=e=>Cv.parseFromString(e,`text/html`).body.textContent,Tv=e=>{if(!e)return!1;let t=wv(e);return!!(t&&t.trim())},Ev;typeof window<`u`&&(Ev=new DOMParser);var Dv=e=>{if(!e)return!1;let t=Ev.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},Ov=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTcsEjJDY4QmJ1dpKztMQYMzdEVIKyw9PxQ1hmc3SWJzVFRlZXhJOUldJk/8QAGwEBAQADAQEBAAAAAAAAAAAAAAcEBQYCAQP/xABBEQEAAQIDAgkJBgUFAQEBAAAAAQIDBAYRBSESMUFEYXGCscITNDVRcoGRocEUIjJS0eEVI2KSsjNCU6LwFtLx/9oADAMBAAIRAxEAPwD1TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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`;function kv(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}function Av(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:Ul(n,r),{props:s,internalRef:c}=Kl({...a,externalSlotProps:o}),l=ll(c,o?.ref,e.additionalProps?.ref);return Hl(t,{...s,ref:l},r)}var jv=R.createContext({});function Mv(e){return Xi(`MuiList`,e)}Zi(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var Nv=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return yo({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},Mv,t)},Pv=H(`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}}]}),Fv=R.forwardRef(function(e,t){let n=Gc({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=R.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=Nv(d);return(0,z.jsx)(jv.Provider,{value:u,children:(0,z.jsxs)(Pv,{as:a,className:B(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),Iv=hl;function Lv(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Rv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function zv(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 Bv(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`)||!zv(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var Vv=R.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=R.useRef(null),p=R.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Tu(()=>{r&&f.current.focus()},[r]),R.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${Iv(Zc(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=Ol(Yc(t));if(n===`ArrowDown`)e.preventDefault(),Bv(t,r,c,s,Lv);else if(n===`ArrowUp`)e.preventDefault(),Bv(t,r,c,s,Rv);else if(n===`Home`)e.preventDefault(),Bv(t,null,c,s,Lv);else if(n===`End`)e.preventDefault(),Bv(t,null,c,s,Rv);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&&zv(r,i);i.previousKeyMatched&&(c||Bv(t,r,!1,s,Lv,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=ul(f,t),g=-1;R.Children.forEach(a,(e,t)=>{if(!R.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 _=R.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),R.cloneElement(e,t)}return e});return(0,z.jsx)(Fv,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function Hv(e){return Xi(`MuiMenu`,e)}Zi(`MuiMenu`,[`root`,`paper`,`list`]);var Uv={vertical:`top`,horizontal:`right`},Wv={vertical:`top`,horizontal:`left`},Gv=e=>{let{classes:t}=e;return yo({root:[`root`],paper:[`paper`],list:[`list`]},Hv,t)},Kv=H(zu,{shouldForwardProp:e=>Ns(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),qv=H(Ru,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),Jv=H(Vv,{name:`MuiMenu`,slot:`List`})({outline:0}),Yv=R.forwardRef(function(e,t){let n=Gc({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=La(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=Gv(b),S=r&&!o&&l,C=R.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;R.Children.map(i,(e,t)=>{R.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=Av({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[ee,k]=ql(`paper`,{className:x.paper,elementType:qv,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[A,j]=ql(`list`,{className:B(x.list,s.className),elementType:Jv,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),te=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,z.jsx)(Kv,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?Uv:Wv,slots:{root:g.root,paper:ee,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:k,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...te,onEntering:(...e)=>{w(...e),te?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,z.jsx)(A,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...j,children:i})})}),Xv=({slotProps:e,...t})=>(0,z.jsx)(Yv,{...t,disableScrollLock:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,...e?.root?.style}},backdrop:{invisible:!0,...e?.backdrop}}}),Zv=s({Collapsible:()=>Lg,EnableAudioAutoplayImage:()=>Ov,Feedback:()=>Vp,HtmlAndMath:()=>H_,InlineMenu:()=>Xv,InputContainer:()=>dv,PreviewLayout:()=>V_,PreviewPrompt:()=>bv,Purpose:()=>Sv,Readable:()=>xv,UiLayout:()=>z_,color:()=>Df,createUniqueId:()=>jg,hasMedia:()=>Dv,hasText:()=>Tv,indicators:()=>Hp,transformDataHeadings:()=>kv,useUniqueId:()=>Mg,withUndoReset:()=>I_}),Qv=`height ease-in 300ms, opacity ease-in 300ms`,$v=H(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:Qv,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:Qv,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),ey=e=>{let{show:t,children:n,className:r}=e,i=(0,R.useRef)(null);return(0,z.jsx)(sc,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,z.jsx)($v,{ref:i,className:r,children:n})})};ey.propTypes={show:I.bool.isRequired,className:I.string,children:I.oneOfType([I.arrayOf(I.node),I.node]).isRequired};function ty(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function ny(e,t){return!e||ty(e)?e:ty(e.default)?e.default:t&&ty(e[t])?e[t]:t&&ty(e[t]?.default)?e[t].default:e}var ry=ny(xv,`Readable`)||ny(oy.Readable,`Readable`),iy=Zv,ay=iy.default,oy=ay&&typeof ay==`object`?ay:iy,{translator:sy}=Ye,cy={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},ly=H(`div`)(()=>({width:`100%`,cursor:`pointer`})),uy=H(`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 ${vp()}`,outlineOffset:`-2px`}})),dy=H(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${kf()})`,fontWeight:`normal`,...cy})),fy=H(`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`}})),py=H(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),my=class e extends R.Component{static propTypes={onToggle:I.func,toggled:I.bool,show:I.bool,hideMessage:I.string,showMessage:I.string,className:I.string,language:I.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=R.createRef(),this.closedIconRef=R.createRef(),e.defaultProps={...e.defaultProps,showMessage:sy.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:sy.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:sy.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:sy.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,z.jsx)(ly,{className:e,children:(0,z.jsx)(ey,{show:this.state.show,children:(0,z.jsxs)(uy,{type:`button`,"aria-pressed":!!t,onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,z.jsxs)(py,{children:[(0,z.jsx)(sc,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,z.jsx)(fy,{ref:this.openIconRef,children:(0,z.jsx)(jc,{open:t},`correct-open`)})}),(0,z.jsx)(sc,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,z.jsx)(fy,{ref:this.closedIconRef,children:(0,z.jsx)(jc,{open:t},`correct-closed`)})})]}),(0,z.jsx)(ry,{false:!0,children:(0,z.jsx)(dy,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}},hy=s({greaterThan:()=>vy,greaterThanEqual:()=>by,lessThan:()=>_y,lessThanEqual:()=>yy}),gy=e=>({...e,category:`comparison`}),_y=gy({name:`Less than`,latex:`<`,command:`\\lt`}),vy=gy({name:`Greater than`,latex:`>`,command:`\\gt`}),yy=gy({name:`Less than or equal`,latex:`\\le`,symbol:`<=`,command:`\\le`,ariaLabel:`less than or equal to`}),by=gy({name:`Greater than or equal`,symbol:`>=`,command:`\\ge`,latex:`\\ge`}),xy=1,Sy=2,Cy=4294967295,wy=9007199254740991,Ty=`[object Arguments]`,Ey=`[object Array]`,Dy=`[object ArrayBuffer]`,Oy=`[object AsyncFunction]`,ky=`[object Boolean]`,Ay=`[object DataView]`,jy=`[object Date]`,My=`[object Error]`,Ny=`[object Function]`,Py=`[object GeneratorFunction]`,Fy=`[object Map]`,Iy=`[object Number]`,Ly=`[object Object]`,Ry=`[object Proxy]`,zy=`[object RegExp]`,By=`[object Set]`,Vy=`[object String]`,Hy=`[object Symbol]`,Uy=new Set([`Float32`,`Float64`,`Int8`,`Int16`,`Int32`,`Uint8`,`Uint8Clamped`,`Uint16`,`Uint32`].map(e=>`[object ${e}Array]`));[...Uy];var Wy=/^[-+]0x[0-9a-f]+$/i,Gy=/^0b[01]+$/i,Ky=/^0o[0-7]+$/i,qy=/^(?:0|[1-9]\d*)$/,Jy=/^\s+/,Yy=/\s/,Xy=Object.prototype,Zy=Xy.hasOwnProperty,Qy=Xy.toString,$y=Xy.propertyIsEnumerable;Function.prototype.toString.call(Object),Symbol.prototype.toString;var eb=Symbol.prototype.valueOf;function tb(e){return typeof e==`object`&&!!e}function nb(e,t){return e===t||e!==e&&t!==t}function rb(e){let t=Zy.call(e,Symbol.toStringTag),n=e[Symbol.toStringTag],r=!1;try{e[Symbol.toStringTag]=void 0,r=!0}catch{}let i=Qy.call(e);return r&&(t?e[Symbol.toStringTag]=n:delete e[Symbol.toStringTag]),i}function ib(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Symbol.toStringTag in Object(e)?rb(e):Qy.call(e)}function ab(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=wy}function ob(e,t){let n=typeof e,r=t??wy;return!!r&&(n==`number`||n!=`symbol`&&qy.test(e))&&e>-1&&e%1==0&&e<r}function sb(e){return e!=null&&ab(e.length)&&!Gb(e)}function cb(e){return tb(e)&&sb(e)}function lb(e){return tb(e)&&ib(e)==Ty}function ub(e){return tb(e)&&ab(e.length)&&Uy.has(ib(e))}function db(e){return typeof e==`symbol`||tb(e)&&ib(e)==Hy}function fb(e){let t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Xy)}function pb(e){let t=e.length;for(;t--&&Yy.test(e.charAt(t)););return t}function mb(e){return e&&e.slice(0,pb(e)+1).replace(Jy,``)}function hb(e){if(typeof e==`number`)return e;if(db(e))return NaN;if(Kb(e)){let t=typeof e.valueOf==`function`?e.valueOf():e;e=Kb(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;let t=mb(e),n=Gy.test(t);return n||Ky.test(t)?parseInt(t.slice(2),n?2:8):Wy.test(t)?NaN:+t}function gb(e){if(!e)return e===0?e:0;let t=hb(e);return t===1/0||t===-1/0?t<0?-Number.MAX_VALUE:Number.MAX_VALUE:t===t?t:0}function _b(e){let t=gb(e),n=t%1;return n?t-n:t}function vb(e){return e}function yb(e){return typeof e==`function`?e:vb}function bb(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 xb(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 Sb(e,t){let n=-1,{length:r}=t,i=e.length;for(;++n<r;)e[i+n]=t[n];return e}function Cb(e,t){let n=-1,r=e==null?0:e.length;for(;++n<r;)if(t(e[n],n))return!0;return!1}function wb(e,t){let n=-1,r=Array(e);for(;++n<e;)r[n]=t(n);return r}function Tb(e){let t=-1,n=Array(e.size);return e.forEach(e=>{n[++t]=e}),n}function Eb(e){let t=-1,n=Array(e.size);return e.forEach((e,r)=>{n[++t]=[r,e]}),n}function Db(e,t){let n=Array.isArray(e),r=!n&&lb(e),i=!n&&!r&&ub(e),a=n||r||i,o=a?wb(e.length,String):[],{length:s}=o;for(let n in e)(t||Zy.call(e,n))&&!(a&&(n==`length`||i&&(n==`buffer`||n==`byteLength`||n==`byteOffset`)||ob(n,s)))&&o.push(n);return o}function Ob(e){if(!fb(e))return Object.keys(Object(e));let t=[];for(let n in Object(e))Zy.call(e,n)&&n!=`constructor`&&t.push(n);return t}function kb(e){return sb(e)?Db(e,!1):Ob(e)}function Ab(e){if(e==null)return[];let t=Object(e);return Object.getOwnPropertySymbols(t).filter(e=>$y.call(t,e))}function jb(e){let t=kb(e);return Array.isArray(e)?t:Sb(t,Ab(e))}function Mb(e){return Array.isArray(e)||lb(e)||!!(e&&e[Symbol.isConcatSpreadable])}function Nb(e,t,n=Mb,r=!1,i=[]){let a=-1,{length:o}=e;for(;++a<o;){let o=e[a];t>0&&n(o)?t>1?Nb(o,t-1,n,r,i):Sb(i,o):r||(i[i.length]=o)}return i}function Pb(e){return t=>t?.[e]}function Fb(e,t){return e.byteLength==t.byteLength&&Bb(new Uint8Array(e),new Uint8Array(t))}function Ib(e,t,n,r,i){let a=n&xy,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&Sy?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(!Cb(t,(e,t)=>!f.has(t)&&(o===e||Bb(o,e,n,r,i))?f.add(t):!1)){d=!1;break}}else if(!(o===s||Bb(o,s,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function Lb(e,t,n,r,i,a){switch(n){case Ay:return e.byteLength==t.byteLength&&e.byteOffset==t.byteOffset&&Fb(e.buffer,t.buffer);case Dy:return Fb(e,t);case ky:case jy:case Iy:return nb(+e,+t);case My:return e.name==t.name&&e.message==t.message;case zy:case Vy:return e==t+``;case Fy:case By:{let o=r&xy;if(e.size!=t.size&&!o)return!1;let s=a.get(e);if(s)return s==t;let c=n==Fy?Eb:Tb;a.set(e,t);let l=Ib(c(e),c(t),r|Sy,i,a);return a.delete(e),l}case Hy:return eb.call(e)==eb.call(t)}return!1}function Rb(e,t,n,r,i){let a=n&xy,o=jb(e),s=o.length;if(s!=jb(t).length&&!a)return!1;let c=s;for(;c--;){let e=o[c];if(!(a?e in t:Zy.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||Bb(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 zb(e,t,n,r,i){let a=Array.isArray(e),o=Array.isArray(t),s=a?Ey:ib(e),c=o?Ey:ib(t);s=s==Ty?Ly:s,c=c==Ty?Ly:c;let l=s==Ly,u=s==c;return u&&!l?a||ub(e)?Ib(e,t,n,r,i||new Map):Lb(e,t,s,n,r,i||new Map):u?Rb(e,t,n,r,i||new Map):!1}function Bb(e,t,n=0,r,i){return e===t?!0:e==null||t==null||!tb(e)&&!tb(t)?e!==e&&t!==t:zb(e,t,n,r,i)}function Vb(e){if(!(e&&e.length))return[];let t=0,n=bb(e,e=>cb(e)?(t=Math.max(e.length,t),!0):!1);return wb(t,e=>xb(n,Pb(e)))}function Hb(e){return e!=null&&e.length?Nb(e,1):[]}function Ub(e){if(e==null)return!0;if(sb(e)&&(Array.isArray(e)||typeof e==`string`||typeof e.splice==`function`||ub(e)||lb(e)))return!e.length;let t=ib(e);if(t==Fy||t==By)return!e.size;if(fb(e))return!Ob(e).length;for(let t in e)if(Zy.call(e,t))return!1;return!0}function Wb(e,t){return Bb(e,t)}function Gb(e){if(!Kb(e))return!1;let t=ib(e);return t==Ny||t==Py||t==Oy||t==Ry}function Kb(e){let t=typeof e;return e!=null&&(t==`object`||t==`function`)}function qb(e,t){let n=_b(e);if(n<1||n>wy)return[];let r=Cy,i=Math.min(n,Cy),a=yb(t);n-=Cy;let o=wb(i,a);for(;++r<n;)a(r);return o}function Jb(...e){return Vb(e)}var Yb=e=>t=>({...t,category:e}),Xb=(e=[])=>{let t=[];qb(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},Zb=e=>t=>{let n=Hb(e),r=n.some(e=>e.latex===t.latex),i=n.some(e=>e.name===t.name);return!r&&!i},Qb=(e=[],t=[])=>{t=t.filter(Zb(e));let n=[];qb(5-e.length,()=>e.push([])),qb(5,()=>n.push([]));let r=Xb(t);for(let t=0;t<5;t++)n[t]=[...e[t],...r[t]];return n},$b=s({theta:()=>rx,x:()=>tx,y:()=>nx}),ex=Yb(`vars`),tx=ex({name:`X`,latex:`x`,write:`x`}),nx=ex({name:`Y`,latex:`y`,write:`y`}),rx=ex({name:`Theta`,latex:`\\theta`,write:`\\theta`}),ix=s({blankOverBlank:()=>ox,xBlankBlank:()=>cx,xOverBlank:()=>sx}),ax=Yb(`fractions`),ox=ax({name:`blank/blank`,latex:`\\frac{}{}`,command:`\\frac`,ariaLabel:`fraction`}),sx=ax({latex:`\\frac{x}{ }`,name:`X/blank`,label:`x/[]`,command:`/`,ariaLabel:`x over blank fraction`}),cx=ax({name:`X (blank/blank)`,latex:`x\\frac{}{}`,label:`x([]/[])`,command:`\\frac`,ariaLabel:`mixed number`}),lx=s({nthRoot:()=>mx,squareRoot:()=>px,squared:()=>dx,xToPowerOfN:()=>fx}),ux=Yb(`exponent`),dx=ux({name:`Squared`,latex:`x^2`,write:`^2`}),fx=ux({name:`X to the power of n`,latex:`x^{}`,command:`^`,ariaLabel:`exponent`}),px=ux({name:`Square root`,latex:`\\sqrt{}`,command:`\\sqrt`}),mx=ux({name:`Nth root`,latex:`\\sqrt[{}]{}`,command:`\\nthroot`}),hx=s({absValue:()=>vx,approx:()=>Sx,brackets:()=>bx,nApprox:()=>Cx,notEqual:()=>wx,notSimilar:()=>Ex,parenthesis:()=>yx,percentage:()=>xx,plusMinus:()=>_x,similar:()=>Tx}),gx=Yb(`misc`),_x=gx({name:`Plus or Minus`,latex:`\\pm`,write:`\\pm`}),vx=gx({name:`Absolute Value`,latex:`\\abs{}`,symbol:`| |`,command:`|`}),yx=gx({name:`Parenthesis`,latex:`\\left(\\right)`,symbol:`( )`,command:`(`}),bx=gx({name:`Brackets`,latex:`\\left[\\right]`,symbol:`[ ]`,command:`[`}),xx=gx({name:`Percent`,latex:`%`,command:`%`}),Sx=gx({latex:`\\approx`,command:`\\approx`,ariaLabel:`Approximately equal to`}),Cx=gx({latex:`\\napprox`,command:`\\napprox`,ariaLabel:`Not pproximately equal to`}),wx=gx({latex:`\\neq`,command:`\\neq`,ariaLabel:`Not equals`}),Tx=gx({latex:`\\sim`,command:`\\sim`,ariaLabel:`Similar`}),Ex=gx({latex:`\\nsim`,command:`\\nsim`,ariaLabel:`Not similar`}),Dx=s({eulers:()=>Ax,halfInfinity:()=>Mx,infinity:()=>jx,pi:()=>kx}),Ox=Yb(`constants`),kx=Ox({name:`Pi`,label:`π`,latex:`\\pi`,command:`\\pi`,category:`constants`}),Ax=Ox({name:`Eulers`,label:`e`,latex:`e`,command:`e`,category:`constants`}),jx=Ox({name:`Infinity`,label:`\\infty`,latex:`\\infty`,command:`\\infty`,category:`constants`}),Mx=Ox({name:`Half Infinity`,label:`\\propto`,latex:`\\propto`,command:`\\propto`,category:`constants`}),Nx=s({cos:()=>Ix,cot:()=>Bx,csc:()=>zx,sec:()=>Rx,sin:()=>Fx,tan:()=>Lx}),Px=Yb(`trigonometry`),Fx=Px({name:`sine`,label:`sin`,command:`\\sin`,latex:`\\sin`}),Ix=Px({name:`cosine`,label:`cos`,command:`\\cos`,latex:`\\cos`}),Lx=Px({name:`tanget`,label:`tan`,command:`\\tan`,latex:`\\tan`}),Rx=Px({name:`secant`,label:`sec`,command:`\\sec`,latex:`\\sec`}),zx=Px({name:`cosecant`,label:`csc`,command:`\\csc`,latex:`\\csc`}),Bx=Px({name:`cotangent`,label:`cot`,command:`\\cot`,latex:`\\cot`}),Vx=s({angle:()=>Xx,circledDot:()=>nS,congruentTo:()=>aS,degree:()=>rS,doublePrimeArcSecond:()=>cS,leftArrow:()=>lS,leftrightArrow:()=>dS,measureOfAngle:()=>Qx,notCongruentTo:()=>oS,notParallel:()=>Jx,overArc:()=>Zx,overLeftRightArrow:()=>Gx,overRightArrow:()=>Wx,overline:()=>Ux,parallel:()=>qx,parallelogram:()=>tS,perpindicular:()=>Yx,primeArcminute:()=>sS,rightArrow:()=>uS,segment:()=>Kx,similarTo:()=>iS,square:()=>eS,triangle:()=>$x}),Hx=e=>({...e,category:`geometry`}),Ux=Hx({name:`Line`,latex:`\\overline{}`,command:`\\overline`}),Wx=Hx({name:`Ray`,latex:`\\overrightarrow{}`,command:`\\overrightarrow`}),Gx=Hx({name:`Segment`,latex:`\\overleftrightarrow{\\overline{}}`,symbol:`AB`,command:`\\overleftrightarrow`}),Kx=Hx({name:`Segment`,latex:`\\overleftrightarrow{AB}`,write:`\\overleftrightarrow{AB}`,label:`AB`}),qx=Hx({name:`Parallel`,latex:`\\parallel`,command:`\\parallel`}),Jx=Hx({name:`Not Parallel`,latex:`\\nparallel`,command:`\\nparallel`}),Yx=Hx({name:`Perpendicular`,latex:`\\perp`,command:`\\perpendicular`}),Xx=Hx({name:`Angle`,latex:`\\angle`,command:`\\angle`}),Zx=Hx({name:`Over arc`,latex:`\\overarc{\\overline{}}`,command:`\\overarc`}),Qx=Hx({name:`Measured Angle`,latex:`\\measuredangle`,command:[`m`,`\\angle`]}),$x=Hx({name:`Triangle`,latex:`\\triangle`,command:`\\triangle`}),eS=Hx({name:`Square`,latex:`\\square`,command:`\\square`}),tS=Hx({name:`Parallelogram`,latex:`\\parallelogram`,command:`\\parallelogram`}),nS=Hx({name:`Circled Dot`,latex:`\\odot`,command:`\\odot`}),rS=Hx({name:`Degree`,latex:`\\degree`,command:`\\degree`}),iS=Hx({name:`Similar`,command:`\\sim`,latex:`\\sim`}),aS=Hx({name:`Congruent To`,command:`\\cong`,latex:`\\cong`}),oS=Hx({name:`Not Congruent To`,command:`\\ncong`,latex:`\\ncong`}),sS=Hx({name:`Prime`,label:`pam`,latex:`'`,write:`'`}),cS=Hx({name:`Double Prime`,latex:`''`,write:`''`}),lS=Hx({name:`Left Arrow`,latex:`\\leftarrow`,command:`\\leftarrow`}),uS=Hx({name:`Right Arrow`,latex:`\\rightarrow`,command:`\\rightarrow`}),dS=Hx({name:`Left and Right Arrow`,latex:`\\leftrightarrow`,command:`\\leftrightarrow`}),fS=s({circleDot:()=>pS}),pS=Yb(`operators`)({name:`CircleDot`,label:`⋅`,write:`\\cdot`,ariaLabel:`Dot multiplier`}),mS=s({ln:()=>vS,log:()=>gS,logSubscript:()=>_S}),hS=Yb(`log`),gS=hS({name:`Log`,label:`log`,command:`\\log`,latex:`\\log`}),_S=hS({name:`log base n`,label:`log s`,latex:`\\log_{}`,command:[`\\log`,`_`]}),vS=hS({name:`natural log`,label:`ln`,command:`\\ln`,latex:`\\ln`}),yS=s({subscript:()=>SS,superscript:()=>xS}),bS=Yb(`sub-sup`),xS=bS({name:`Superscript`,latex:`x^{}`,command:`^`}),SS=bS({name:`Subscript`,latex:`x_{}`,command:`_`}),CS=s({mu:()=>DS,sigma:()=>OS,smallSigma:()=>kS,xBar:()=>TS,yBar:()=>ES}),wS=Yb(`statistics`),TS=wS({name:`X Bar`,label:`x̄`,latex:`\\overline{x}`,write:`\\overline{x}`}),ES=wS({name:`Y Bar`,latex:`\\overline{y}`,write:`\\overline{y}`}),DS=wS({name:`mu`,label:`mu`,latex:`\\mu`,write:`\\mu`}),OS=wS({name:`Sigma`,ariaLabel:`Uppercase Sigma`,label:`\\Sigma`,latex:`\\Sigma`,write:`\\Sigma`}),kS=wS({name:`sigma`,ariaLabel:`Lowercase Sigma`,label:`\\sigma`,latex:`\\sigma`,write:`\\sigma`}),AS=s({divide:()=>FS,equals:()=>MS,minus:()=>PS,multiply:()=>IS,plus:()=>NS}),jS=Yb(`operators`),MS=jS({write:`=`,label:`=`}),NS=jS({write:`+`,label:`+`}),PS=jS({write:`−`,label:`−`}),FS=jS({name:`divide`,label:`÷`,command:`\\divide`,otherNotation:`\\div`}),IS=jS({name:`multiply`,label:`×`,command:`\\times`}),LS=s({doubleCellMatrix:()=>BS,singleCellMatrix:()=>zS}),RS=Yb(`matrices`),zS=RS({name:`Single Cell Matrix`,label:`[ ]`,write:`\\begin{pmatrix}\\end{pmatrix}`}),BS=RS({name:`Double Cell Matrix`,label:`[ ] [ ] \\\\newline [ ] [ ]`,write:`\\begin{bmatrix}&\\\\&\\end{bmatrix}`}),VS={0:`zero`,1:`one`,2:`two`,3:`three`,4:`four`,5:`five`,6:`six`,7:`seven`,8:`eight`,9:`nine`},HS=qb(10,String).map(e=>({name:VS[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`}}),US=Yb(`logic`),WS=US({name:`Therefore`,label:`∴`,write:`∴`}),GS=US({name:`Long division`,latex:`\\longdiv{}`,command:`\\longdiv`}),KS=Yb(`navigation`),qS=KS({label:`◀`,keystroke:`Left`,ariaLabel:`Move cursor left`}),JS=KS({label:`▶`,keystroke:`Right`,ariaLabel:`Move cursor right`}),YS={label:`⌫`,category:`edit`,keystroke:`Backspace`,ariaLabel:`Delete`},XS=[[ox,xx,tx,dx,px],[pS,nx,SS,fx,mx],[_x,_y,vy,yy,by],[kx,rx,yx,bx,vx],[wx,Fx,Ix,Lx,rS]],ZS=(()=>{let e=[...XS.map(e=>[...e])];return e[0].push({name:`i`,latex:`i`,write:`i`}),e[1].push(gS),e[2].push(_S),e[3].push(vS),e[4].push(Ax),e})(),QS=(()=>{let e=[...XS.map(e=>[...e])];return e[0].push(DS),e[1].push(TS),e[2].push(ES),e[3].push(OS),e[4].push(kS),e})(),$S=[{predicate:e=>e>=3&&e<=5,set:[[_y,vy],[sx,cx],[tx,GS],[dx,fx]]},{predicate:e=>e>=6&&e<=7,set:[[rS,_y,vy],[pS,yy,by],[tx,nx,dx,fx],[_x,sx,cx,px],[kx,yx,vx,mx]]},{predicate:e=>e>=8||e===`HS`,set:XS},{predicate:`non-negative-integers`,set:[[HS.seven,HS.eight,HS.nine],[HS.four,HS.five,HS.six],[HS.one,HS.two,HS.three],[HS.zero,{name:``,latex:``,write:``},{name:``,latex:``,write:``}],[qS,JS,YS]]},{predicate:`integers`,set:[[HS.seven,HS.eight,HS.nine],[HS.four,HS.five,HS.six],[HS.one,HS.two,HS.three],[HS.zero,{name:``,latex:``,write:``},PS],[qS,JS,YS]]},{predicate:`decimals`,set:[[HS.seven,HS.eight,HS.nine],[HS.four,HS.five,HS.six],[HS.one,HS.two,HS.three],[HS.zero,HS.decimalPoint,PS],[qS,JS,YS]]},{predicate:`fractions`,set:[[HS.seven,HS.eight,HS.nine],[HS.four,HS.five,HS.six],[HS.one,HS.two,HS.three],[HS.zero,ox,PS],[qS,JS,YS]]},{predicate:`geometry`,set:[[ox,rS,sS,cS,aS,iS],[pS,Xx,Qx,$x,oS,Ex],[Fx,Ix,Lx,kx,px,mx],[zx,Rx,Bx,rx,SS,fx],[Ux,Wx,Gx,Zx,Yx,qx]]},{predicate:`advanced-algebra`,set:ZS},{predicate:`statistics`,set:QS},{predicate:`item-authoring`,set:[[FS,ox,GS,Mx,dx,px,Ux,Wx,Gx,gS],[IS,pS,{name:``,latex:``,write:``},SS,fx,mx,Yx,qx,Zx,_S],[_x,kx,rx,rS,Xx,lS,uS,$x,eS,vS],[wx,vx,kS,DS,WS,OS,dS,Fx,Ix,Lx],[yy,by,{name:``,latex:``,write:``},{name:``,latex:``,write:``},jx,{name:``,latex:``,write:``},{name:``,latex:``,write:``},zx,Rx,Bx]]},{predicate:e=>e>=1&&e<=2,set:[]}],eC=e=>{let t=parseInt(e,10);if(e=isNaN(t)?e:t,!e)return[];let n=$S.find(t=>typeof t.predicate==`string`?t.predicate===e:t.predicate(e));if(n)return n.set||[];if(e!==`language`)return $S[2].set},tC=[...Object.values(AS),...Object.values(hy),...Object.values(Dx),...Object.values(HS),...Object.values(lx),...Object.values(ix),...Object.values(Vx),...Object.values(mS),...Object.values(LS),...Object.values(hx),...Object.values(fS),...Object.values(CS),...Object.values(yS),...Object.values(Nx),...Object.values($b)],nC=e=>(e||[]).map(e=>{let{latex:t}=e,n=(tC||[]).find(e=>t===e.latex||t===e.write||t===e.command||t===e.otherNotation);return t&&n||e}),rC=()=>{(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:iC,two:aC,three:oC,four:sC,five:cC,six:lC,seven:uC,eight:dC,nine:fC,zero:pC,comma:mC,decimalPoint:hC}=HS,gC=[[uC,dC,fC,FS],[sC,cC,lC,IS],[iC,aC,oC,PS],[pC,hC,mC,NS],[qS,JS,YS,MS]];function _C(e){return Xi(`MuiIconButton`,e)}var vC=Zi(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),yC=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return yo({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${vu(r)}`,i&&`edge${vu(i)}`,`size${vu(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},_C,t)},bC=H(t_,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${vu(n.color)}`],n.edge&&t[`edge${vu(n.edge)}`],t[`size${vu(n.size)}`]]}})(Vl(({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}}]})),Vl(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(a_()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(a_()).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)}}],[`&.${vC.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${vC.loading}`]:{color:`transparent`}}))),xC=H(`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`}}]})),SC=R.forwardRef(function(e,t){let n=Gc({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=Eu(u),h=f??(0,z.jsx)(__,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=yC(g);return(0,z.jsxs)(bC,{id:d?m:u,className:B(_.root,a),centerRipple:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,z.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,z.jsx)(xC,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),{translator:CC}=Ye;function wC(e,t){if(!e)return;let n=CC.t(`mathInput.enterAnswer`,{lng:t});for(let t of e.querySelectorAll(`.mq-editable-field > .mq-textarea > textarea`))t.setAttribute(`aria-label`,n)}function K(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]}K.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},K.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},K.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},K.prototype.attr=function(e,t){return t===kC?this.elements[0]?this.elements[0].getAttribute(e):kC:(this.elements.forEach(function(n){n.setAttribute(e,t)}),this)},K.prototype.html=function(e){return e===kC?this.elements[0]?this.elements[0].innerHTML:``:(this.elements.forEach(function(t){t.innerHTML=e}),this)},K.prototype.append=function(e){var t=e instanceof K?e.elements[0]:e;return this.elements.forEach(function(e){e.appendChild(t)}),this},K.prototype.prepend=function(e){var t=e instanceof K?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},K.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 K)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},K.prototype.appendTo=function(e){var t=e instanceof K?e.elements[0]:e;return t&&this.elements.forEach(function(e){t.appendChild(e)}),this},K.prototype.prependTo=function(e){var t=e instanceof K?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},K.prototype.insertBefore=function(e){var t=e instanceof K?e.elements[0]:e;if(!t)return this;var n=t.parentNode;return n&&this.elements.forEach(function(e){n.insertBefore(e,t)}),this},K.prototype.insertAfter=function(e){var t=e instanceof K?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},K.prototype.replaceWith=function(e){var t=[];return e instanceof K?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},K.prototype.insDirOf=function(e,t){return e===-1?this.insertBefore(t.first()):this.insertAfter(t.last())},K.prototype.insAtDirEnd=function(e,t){return e===-1?this.prependTo(t):this.appendTo(t)},K.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 K(t)},K.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 K(t)},K.prototype.closest=function(e){return new K(this.elements.map(function(t){return t.closest(e)}).filter(Boolean))},K.prototype.contents=function(){var e=[];return this.elements.forEach(function(t){var n=Array.from(t.childNodes);e.push.apply(e,n)}),new K(e)},K.prototype.filter=function(e){return new K(this.elements.filter(function(t,n){return e(n,t)}))},K.prototype.detach=function(){return this.elements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),this},K.prototype.remove=function(){return this.elements.forEach(function(e){e.remove()}),this},K.prototype.empty=function(){return this.elements.forEach(function(e){e.innerHTML=``}),this};function TC(e){return(e||``).split(`.`)[0]}K.prototype.on=function(e,t){var n=TC(e);return this.elements.forEach(function(e){e.addEventListener(n,t)}),this},K.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=TC(e);r.elements.forEach(function(e){e.addEventListener(t,a)})}),this},K.prototype.off=function(e,t){var n=TC(e);return this.elements.forEach(function(e){e.removeEventListener(n,t)}),this},K.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=TC(e);this.elements.forEach(function(e){e.removeEventListener(n,t)})}return this},K.prototype.trigger=function(e){var t=new Event(TC(e),{bubbles:!0,cancelable:!0});return this.elements.forEach(function(e){e.dispatchEvent(t)}),this},K.prototype.focus=function(e){return typeof e==`function`?this.on(`focus`,e):(this.elements.forEach(function(e){e.focus&&e.focus()}),this)},K.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){K.prototype[e]=function(t){return this.on(e,t)}}),K.prototype.next=function(e){return new K(this.elements.map(function(e){return e.nextElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},K.prototype.prev=function(e){return new K(this.elements.map(function(e){return e.previousElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},K.prototype.parent=function(){return new K(this.elements.map(function(e){return e.parentElement}).filter(Boolean))},K.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)}},K.prototype.width=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.width)||e.getBoundingClientRect().width},K.prototype.height=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.height)||e.getBoundingClientRect().height},K.prototype.outerWidth=function(){return this.elements[0]?this.elements[0].offsetWidth:0},K.prototype.outerHeight=function(){return this.elements[0]?this.elements[0].offsetHeight:0},K.prototype.innerWidth=function(){return this.elements[0]?this.elements[0].clientWidth:0},K.prototype.innerHeight=function(){return this.elements[0]?this.elements[0].clientHeight:0},K.prototype.css=function(e,t){if(t===kC){if(typeof e==`string`){var n=this.elements[0];return n?window.getComputedStyle(n).getPropertyValue(e.replace(/([A-Z])/g,`-$1`).toLowerCase()):kC}}else this.elements.forEach(function(n){n.style[e]=t});return this},K.prototype.scrollTop=function(e){var t=this.elements[0];return e===kC?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)},K.prototype.scrollLeft=function(e){var t=this.elements[0];return e===kC?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)},K.prototype.each=function(e){return this.elements.forEach(function(t,n){e.call(t,n,t)}),this},K.prototype.eq=function(e){return new K([this.elements[e]])},K.prototype.get=function(e){return e===kC?this.elements:e<0?this.elements[this.elements.length+e]:this.elements[e]},K.prototype.add=function(e){var t=this.elements.slice();return e instanceof K?t.push.apply(t,e.elements):Array.isArray(e)?t.push.apply(t,e):e&&e.nodeType&&t.push(e),new K(t)},K.prototype.first=function(){return new K([this.elements[0]])},K.prototype.last=function(){return new K([this.elements[this.elements.length-1]])},K.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 K?e.elements[0]:e;return this.elements.indexOf(n)},K.prototype.is=function(e){return this.elements.some(function(t){return t.matches(e)})},K.prototype.text=function(e){return e===kC?this.elements.map(function(e){return e.textContent}).join(``):(this.elements.forEach(function(t){t.textContent=e}),this)},K.prototype.val=function(e){var t=this.elements[0];return t?e===kC?t.value===kC?t.textContent:t.value:(this.elements.forEach(function(t){t.value===kC?t.textContent=e:t.value=e}),this):kC};function EC(e){var t=Array.isArray(e)?e:[e].filter(Boolean),n=Object.create(K.prototype);n.elements=t,n.length=t.length;for(var r=0;r<t.length;r++)n[r]=t[r];return n}var DC=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 K?t.elements[0]:t||document;n=Array.from(i.querySelectorAll(e))}else n=e instanceof K?e.elements:e.length===kC?[]:Array.from(e);return EC(n)};DC.contains=function(e,t){return e!==t&&e.contains(t)};var OC=DC,kC,AC=`mathquill-command-id`,jC=`mathquill-block-id`,MC=Math.min,NC=Math.max;function PC(){}var FC=[].slice;function IC(e){var t=e.length-1;return function(){var n=FC.call(arguments,0,t),r=FC.call(arguments,t);return e.apply(this,n.concat([r]))}}var LC=IC(function(e,t){return IC(function(n,r){if(e in n)return n[e].apply(n,t.concat(r))})});function RC(e){return IC(function(t,n){return typeof t!=`function`&&(t=LC(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function q(e){var t=FC.call(arguments,1);return function(){return e.apply(this,t)}}function zC(e,t){if(!t)throw Error(`prayer failed: `+e)}var J=(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),Y=-1,X=1;function BC(e){zC(`a direction was passed`,e===Y||e===X)}var VC=J(function(e){e.parent=0,e[Y]=0,e[X]=0,e.init=function(e,t,n){this.parent=e,this[Y]=t,this[X]=n},this.copy=function(e){return VC(e.parent,e[Y],e[X])}}),HC=J(function(e){e[Y]=0,e[X]=0,e.parent=0;var t=0;function n(){return t+=1}this.byId={},e.init=function(){this.id=n(),HC.byId[this.id]=this,this.ends={},this.ends[Y]=0,this.ends[X]=0},e.dispose=function(){delete HC.byId[this.id]},e.toString=function(){return`{{ MathQuill Node #`+this.id+` }}`},e.jQ=DC(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){var e=DC(e||this.html());function t(e){if(e.getAttribute){var n=e.getAttribute(`mathquill-command-id`),r=e.getAttribute(`mathquill-block-id`);n&&HC.byId[n].jQadd(e),r&&HC.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){BC(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[Y],t[X]),n},e.createLeftOf=function(e){return this.createDir(Y,e)},e.selectChildren=function(e,t){return JC(e,t)},e.bubble=RC(function(e){for(var t=this;t&&e(t)!==!1;t=t.parent);return this}),e.postOrder=RC(function(e){return(function t(n){n.eachChild(t),e(n)})(this),this}),e.isEmpty=function(){return this.ends[Y]===0&&this.ends[X]===0},e.isStyleBlock=function(){return!1},e.children=function(){return WC(this.ends[Y],this.ends[X])},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 WC(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return WC(this,this).adopt(e,t,n),this},e.disown=function(){return WC(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder(`dispose`),this.disown()}});function UC(e,t,n){zC(`a parent is always present`,e),t&&(t[X]!==n&&(t[X]=n),t.parent!==e&&(t.parent=e)),n&&(n[Y]!==t&&(n[Y]=t),n.parent!==e&&(n.parent=e)),zC(`leftward is properly set up`,(function(){return t?t[X]===n&&t.parent===e:e.ends[Y]===n})()),zC(`rightward is properly set up`,(function(){return n?n[Y]===t&&n.parent===e:e.ends[X]===t})())}var WC=J(function(e){e.init=function(e,t,n){if(n===kC&&(n=Y),BC(n),zC(`no half-empty fragments`,!e==!t),this.ends={},e){zC(`withDir is passed to Fragment`,e instanceof HC),zC(`oppDir is passed to Fragment`,t instanceof HC),zC(`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=DC(),e.withDirAdopt=function(e,t,n,r){return e===Y?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){UC(e,t,n);var r=this;r.disowned=!1;var i=r.ends[Y];if(!i)return this;var a=r.ends[X];return t||(e.ends[Y]=i),n?n[Y]=a:e.ends[X]=a,r.ends[X][X]=n,r.each(function(n){n[Y]=t,n.parent=e,t&&(t[X]=n),t=n}),r},e.disown=function(){var e=this,t=e.ends[Y];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[X],r=t.parent;return UC(r,t[Y],t),UC(r,n,n[X]),t[Y]?t[Y][X]=n[X]:r.ends[Y]=n[X],n[X]?n[X][Y]=t[Y]:r.ends[X]=t[Y],e},e.remove=function(){return this.jQ.remove(),this.each(`postOrder`,`dispose`),this.disown()},e.each=RC(function(e){var t=this,n=t.ends[Y];if(!n)return t;for(;n!==t.ends[X][X]&&e(n)!==!1;n=n[X]);return t}),e.fold=function(e,t){return this.each(function(n){e=t.call(this,e,n)}),e}}),Z={},GC={},KC={},qC=J(VC,function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=DC(`<span class="mq-cursor">​</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[X]?this.selection&&this.selection.ends[Y][Y]===this[Y]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[X].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=DC(),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 BC(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(Y,e)},e.insRightOf=function(e){return this.insDirOf(X,e)},e.insAtDirEnd=function(e,t){return BC(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(Y,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(X,e)},e.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=VC.copy(n);var r=n.upDownCache[t.id];if(r)r[X]?n.insLeftOf(r[X]):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[X],r=this,i=e[Y];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[X])}),!this[X])if(this[Y])this[X]=this[Y][X];else for(;!this[X];)if(this.parent=this.parent[X],this.parent)this[X]=this.parent.ends[Y];else{this[X]=e[X],this.parent=t;break}this[X]?this.insLeftOf(this[X]):this.insAtRightEnd(t),e.jQ.remove(),e[Y].siblingDeleted&&e[Y].siblingDeleted(r.options,X),e[X].siblingDeleted&&e[X].siblingDeleted(r.options,Y)},e.startSelection=function(){for(var e=this.anticursor=VC.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[Y]===e[Y]&&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=X;if(n[Y]!==r){for(var s=n;s;s=s[X])if(s[X]===r[X]){o=Y,i=n,a=r;break}}return o===X&&(i=r,a=n),i instanceof VC&&(i=i[X]),a instanceof VC&&(a=a[Y]),!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[Y]=this.selection.ends[Y][Y],this[X]=this.selection.ends[X][X],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[Y]=e.ends[Y][Y],this[X]=e.ends[X][X],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!==kC)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}}),JC=J(WC,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]()})}}),YC=J(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=qC(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===Y||t===X?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}}),XC={},ZC=J(),QC={},$C=J(),ew={};function tw(){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
|
|
191
|
+
https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)}function nw(e){return tw(),fT(e)}nw.prototype=$C.p,nw.VERSION=`v1.2.1-beta.1`,nw.interfaceVersion=function(e){if(e!==1)throw`Only interface version 1 supported. You specified: `+e;return tw=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`)},vS(),yS},yS.getInterface=SS;var bS=SS.MIN=1,xS=SS.MAX=3;function SS(e){if(!(bS<=e&&e<=xS))throw`Only interface versions between `+bS+` and `+xS+` 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=Wx(e).children(`.mq-root-block`).attr(Jx),r=t&&aS.byId[t].controller;return r?n[r.KIND_OF_MQ](r):null}var n={};t.L=J,t.R=Y,t.saneKeyboardEvents=TS;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=hS[r];e[r]=a?a(i):i}}t.config=function(e){return r(mS.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`;_S[e]=t};var i=n.AbstractMathQuill=q(gS,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=Wx(`<span class="mq-root-block"/>`).attr(Jx,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:Zx});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-Wx(window).scrollLeft(),i=t-Wx(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(Wx(a),e,t),EC().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 Gx.contains(i.jQ[0],n)||(n=i.jQ[0]),r.seek(Wx(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,pS)(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=fS(a.RootBlock(),Wx(n),mS());return s.KIND_OF_MQ=r,a(s).__mathquillify(i,e)},t[r].prototype=a.prototype})(a,pS[a]);return t}yS.noConflict=function(){return window.MathQuill=CS,yS};var CS=window.MathQuill;window.MathQuill=yS;function wS(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){nS(`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 nS(`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){nS(`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)})}),TS=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=Gx(e),o=Gx(n.container||a),s=Zx,c;function l(e){s=e,clearTimeout(c),c=setTimeout(e)}function u(e){l(function(t){s=Zx,clearTimeout(c),e(t)})}o.bind(`keydown keypress input keyup focusout paste`,function(e){s(e)});function d(e){s(),s=Zx,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}}}();fS.open(function(e,t){e.exportText=function(){return this.root.foldChildren(``,function(e,t){return e+t.text()})}}),fS.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()}),Wx(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`),Wx(window).unbind(`blur`,i)}e.blurred=!0,n.hide().parent.blur()}}),fS.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),aS.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(){nS(`overridden or never called on this node`)}}),fS.open(function(e){this.onNotify(function(e){(e===`move`||e===`upDown`)&&this.show().clearSelection()}),e.escapeDir=function(e,t,n){rS(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`)},hS.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){rS(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 aS&&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){rS(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){rS(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify(`edit`),e===J?sS(t.parent.ends[J],t[J]).remove():sS(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;rS(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 ES=/[\\]{2,}/gm,DS=(function(){function e(e){var t=jS();return e.adopt(t,0,0),t}function t(e){for(var t=e[0]||jS(),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 BS(e)}),u=r(/^[^${}\\_^]/).map(function(e){return Q(e)}),d=r(/^\\not\\[a-z]+/).then(function(e){return lS[e]&&lS[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})();fS.open(function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,`$1`)},e.parseLatex=function(e){return DS.parse(e).postOrder(`finalizeTree`,mS.p).join(`latex`).trim()},hS.maxDepth=function(e){return typeof e==`number`?e:Kx},e.writeLatex=function(e){var t=this.notify(`edit`).cursor,n=Z.all,r=Z.eof,i=DS.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(ES,`\\`));var t=this.root,n=this.cursor;n.options;var r=t.jQ,i=Z.all,a=Z.eof,o=DS.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(DS).skip(i(`$`).or(a)).map(function(e){var t=IS(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)}}}),fS.open(function(e){mS.p.ignoreNextMousedown=Zx,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind(`mousedown.mathquill`,function(t){var n=Wx(t.target).closest(`.mq-root-block`),r=aS.byId[n.attr(Jx)||e.attr(Jx)].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=Zx;function s(e){i.anticursor||i.startSelection(),r.seek(Wx(e.target),e.pageX,e.pageY).cursor.select(),e.target&&Wx(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),Wx(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(Wx(t.target),t.pageX,t.pageY).cursor.startSelection(),n.mousemove(s),Wx(t.target.ownerDocument).mousemove(c).mouseup(l)})}}),fS.open(function(e){e.seek=function(e,t,n){var r=this.notify(`select`).cursor;if(e){var i=e.attr(Jx)||e.attr(qx);if(!i){var a=e.parent();i=a.attr(Jx)||a.attr(qx)}}var o=i&&aS.byId[i]?aS.byId[i]:this.root;return r.clearSelection().show(),o.seek(t,r),this.scrollHoriz(),this}}),fS.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)}}),fS.open(function(e){mS.p.substituteTextarea=function(){return Wx(`<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />`)[0]},e.createTextarea=function(){var e=this.textareaSpan=Wx(`<span class="mq-textarea"></span>`),t=this.options.substituteTextarea();if(!t.nodeType)throw`substituteTextarea() must return a DOM element, got `+t;t=this.textarea=Wx(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;eC(e.container[0]),e.textareaSelectionTimeout===Kx&&(e.textareaSelectionTimeout=setTimeout(function(){e.setTextareaSelection()}))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=Kx;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(Gx(`<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()}},mS.p.substituteKeyboardEvents=TS,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 OS=q(aS,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!==Kx){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 jS);t=r[1]+a,t<=e?n.push([i,t]):(a?i.children():i).remove()})}}),kS=q(OS,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=DS.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]=jS()).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 dS(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);nS(`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)===`<`){nS(`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],nS(`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]||``)})}}),AS=q(kS,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=Zx,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=Zx,e.isEmpty=function(){return!0}}),Q=q(AS,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span>`+(n||e)+`</span>`)}}),$=q(AS,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-binary-operator">`+n+`</span>`,r)}}),jS=q(OS,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]$/)?BS(e):/^\d$/.test(e)?RS(e):t&&t.typingSlashWritesDivisionSymbol&&e===`/`?X[`÷`](e):t&&t.typingAsteriskWritesTimesSymbol&&e===`*`?X[`×`](e):(n=cS[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}});mS.p.mouseEvents=!0,pS.StaticMath=function(e){return q(e.AbstractMathQuill,function(t,n){this.RootBlock=jS,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 MS=q(jS,wS);pS.MathField=function(e){return q(e.EditableField,function(e,t){this.RootBlock=MS,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=Zx),t.__mathquillify.call(this,`mq-editable-field mq-math-mode`),delete this.__controller.root.reflow,this}})};var NS=q(aS,function(e,t){e.ctrlSeq=`\\text`,e.replaces=function(e){e instanceof sS?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?sS():(PS(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=kS.prototype.selectTowards,e.deleteTowards=kS.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`)):PS(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=NS(),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=iS.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=iS(this,u[J],u)}}},e.blur=function(e){jS.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:``},nS(`only node in TextBlock span is Text node`,t.nodeType===3);var n=PS(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}e.focus=jS.prototype.focus}),PS=q(aS,function(e,t){e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=Wx(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){rS(t),t===Y?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=PS(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){rS(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):PS(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){rS(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=PS(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=PS(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=NS;function FS(e,t,n){return q(NS,{ctrlSeq:e,htmlTemplate:`<`+t+` `+n+`>&0</`+t+`>`})}X.em=X.italic=X.italics=X.emph=X.textit=X.textsl=FS(`\\textit`,`i`,`class="mq-text-mode"`),X.strong=X.bold=X.textbf=FS(`\\textbf`,`b`,`class="mq-text-mode"`),X.sf=X.textsf=FS(`\\textsf`,`span`,`class="mq-sans-serif mq-text-mode"`),X.tt=X.texttt=FS(`\\texttt`,`span`,`class="mq-monospace mq-text-mode"`),X.textsc=FS(`\\textsc`,`span`,`style="font-variant:small-caps" class="mq-text-mode"`),X.uppercase=FS(`\\uppercase`,`span`,`style="text-transform:uppercase" class="mq-text-mode"`),X.lowercase=FS(`\\lowercase`,`span`,`style="text-transform:lowercase" class="mq-text-mode"`);var IS=q(kS,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]?jS.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent):jS.prototype.write.call(this,e,t)}},e.latex=function(){return`$`+this.ends[J].latex()+`$`}}),LS=q(MS,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===`$`)IS(e).createLeftOf(e);else{var n;t===`<`?n=`<`:t===`>`&&(n=`>`),Q(t,n).createLeftOf(e)}}});pS.TextField=function(e){return q(e.EditableField,function(e,t){this.RootBlock=LS,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()}})},cS[`\\`]=q(kS,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 Wx(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=NS(),n.replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}}),X[`∉`]=X.notin=K($,`\\notin `,`∉`),X[`≅`]=X.cong=K($,`\\cong `,`≅`),X[`≡`]=X.equiv=K($,`\\equiv `,`≡`),X[`⊕`]=X.oplus=K($,`\\oplus `,`⊕`),X[`⊗`]=X.otimes=K($,`\\otimes `,`⊗`),X[`≠`]=X.ne=X.neq=K($,`\\ne `,`≠`),X[`≇`]=X.ncong=K($,`\\ncong `,`≇`),X[`∗`]=X.ast=X.star=X.loast=X.lowast=K($,`\\ast `,`∗`),X.therefor=X.therefore=K($,`\\therefore `,`∴`),X.cuz=X.because=K($,`\\because `,`∵`),X.prop=X.propto=K($,`\\propto `,`∝`),X[`≈`]=X.asymp=X.approx=K($,`\\approx `,`≈`),X[`≉`]=X.nasymp=X.napprox=K($,`\\napprox `,`≉`),X.isin=X.in=K($,`\\in `,`∈`),X.ni=X.contains=K($,`\\ni `,`∋`),X.notni=X.niton=X.notcontains=X.doesnotcontain=lS[`\\not\\ni`]=K($,`\\not\\ni `,`∌`),X.sub=X.subset=K($,`\\subset `,`⊂`),X.sup=X.supset=X.superset=K($,`\\supset `,`⊃`),X.nsub=X.notsub=X.nsubset=X.notsubset=lS[`\\not\\subset`]=K($,`\\not\\subset `,`⊄`),X.nsup=X.notsup=X.nsupset=X.notsupset=X.nsuperset=X.notsuperset=lS[`\\not\\supset`]=K($,`\\not\\supset `,`⊅`),X.sube=X.subeq=X.subsete=X.subseteq=K($,`\\subseteq `,`⊆`),X.supe=X.supeq=X.supsete=X.supseteq=X.supersete=X.superseteq=K($,`\\supseteq `,`⊇`),X.nsube=X.nsubeq=X.notsube=X.notsubeq=X.nsubsete=X.nsubseteq=X.notsubsete=X.notsubseteq=lS[`\\not\\subseteq`]=K($,`\\not\\subseteq `,`⊈`),X.nsupe=X.nsupeq=X.notsupe=X.notsupeq=X.nsupsete=X.nsupseteq=X.notsupsete=X.notsupseteq=X.nsupersete=X.nsuperseteq=X.notsupersete=X.notsuperseteq=lS[`\\not\\supseteq`]=K($,`\\not\\supseteq `,`⊉`),X.N=X.naturals=X.Naturals=K(Q,`\\mathbb{N}`,`ℕ`),X.P=X.primes=X.Primes=X.projective=X.Projective=X.probability=X.Probability=K(Q,`\\mathbb{P}`,`ℙ`),X.Z=X.integers=X.Integers=K(Q,`\\mathbb{Z}`,`ℤ`),X.Q=X.rationals=X.Rationals=K(Q,`\\mathbb{Q}`,`ℚ`),X.R=X.reals=X.Reals=K(Q,`\\mathbb{R}`,`ℝ`),X.C=X.complex=X.Complex=X.complexes=X.Complexes=X.complexplane=X.Complexplane=X.ComplexPlane=K(Q,`\\mathbb{C}`,`ℂ`),X.H=X.Hamiltonian=X.quaternions=X.Quaternions=K(Q,`\\mathbb{H}`,`ℍ`),X.quad=X.emsp=K(Q,`\\quad `,` `),X.qquad=K(Q,`\\qquad `,` `),X.diamond=K(Q,`\\diamond `,`◇`),X.bigtriangleup=K(Q,`\\bigtriangleup `,`△`),X.ominus=K(Q,`\\ominus `,`⊖`),X.uplus=K(Q,`\\uplus `,`⊎`),X.bigtriangledown=K(Q,`\\bigtriangledown `,`▽`),X.sqcap=K(Q,`\\sqcap `,`⊓`),X.triangleleft=K(Q,`\\triangleleft `,`⊲`),X.sqcup=K(Q,`\\sqcup `,`⊔`),X.triangleright=K(Q,`\\triangleright `,`⊳`),X.odot=X.circledot=K(Q,`\\odot `,`⊙`),X.bigcirc=K(Q,`\\bigcirc `,`◯`),X.dagger=K(Q,`\\dagger `,`†`),X.ddagger=K(Q,`\\ddagger `,`‡`),X.wr=K(Q,`\\wr `,`≀`),X.amalg=K(Q,`\\amalg `,`∐`),X.models=K(Q,`\\models `,`⊨`),X.prec=K(Q,`\\prec `,`≺`),X.succ=K(Q,`\\succ `,`≻`),X.preceq=K(Q,`\\preceq `,`≼`),X.succeq=K(Q,`\\succeq `,`≽`),X.simeq=K(Q,`\\simeq `,`≃`),X.mid=K(Q,`\\mid `,`∣`),X.ll=K(Q,`\\ll `,`≪`),X.gg=K(Q,`\\gg `,`≫`),X.parallel=K(Q,`\\parallel `,`∥`),X.nparallel=K(Q,`\\nparallel `,`∦`),X.bowtie=K(Q,`\\bowtie `,`⋈`),X.sqsubset=K(Q,`\\sqsubset `,`⊏`),X.sqsupset=K(Q,`\\sqsupset `,`⊐`),X.smile=K(Q,`\\smile `,`⌣`),X.sqsubseteq=K(Q,`\\sqsubseteq `,`⊑`),X.sqsupseteq=K(Q,`\\sqsupseteq `,`⊒`),X.doteq=K(Q,`\\doteq `,`≐`),X.frown=K(Q,`\\frown `,`⌢`),X.vdash=K(Q,`\\vdash `,`⊦`),X.dashv=K(Q,`\\dashv `,`⊣`),X.nless=K(Q,`\\nless `,`≮`),X.ngtr=K(Q,`\\ngtr `,`≯`),X.longleftarrow=K(Q,`\\longleftarrow `,`←`),X.longrightarrow=K(Q,`\\longrightarrow `,`→`),X.Longleftarrow=K(Q,`\\Longleftarrow `,`⇐`),X.Longrightarrow=K(Q,`\\Longrightarrow `,`⇒`),X.longleftrightarrow=K(Q,`\\longleftrightarrow `,`↔`),X.updownarrow=K(Q,`\\updownarrow `,`↕`),X.Longleftrightarrow=K(Q,`\\Longleftrightarrow `,`⇔`),X.Updownarrow=K(Q,`\\Updownarrow `,`⇕`),X.mapsto=K(Q,`\\mapsto `,`↦`),X.nearrow=K(Q,`\\nearrow `,`↗`),X.hookleftarrow=K(Q,`\\hookleftarrow `,`↩`),X.hookrightarrow=K(Q,`\\hookrightarrow `,`↪`),X.searrow=K(Q,`\\searrow `,`↘`),X.leftharpoonup=K(Q,`\\leftharpoonup `,`↼`),X.rightharpoonup=K(Q,`\\rightharpoonup `,`⇀`),X.swarrow=K(Q,`\\swarrow `,`↙`),X.leftharpoondown=K(Q,`\\leftharpoondown `,`↽`),X.rightharpoondown=K(Q,`\\rightharpoondown `,`⇁`),X.nwarrow=K(Q,`\\nwarrow `,`↖`),X.ldots=K(Q,`\\ldots `,`…`),X.cdots=K(Q,`\\cdots `,`⋯`),X.vdots=K(Q,`\\vdots `,`⋮`),X.ddots=K(Q,`\\ddots `,`⋱`),X.surd=K(Q,`\\surd `,`√`),X.triangle=K(Q,`\\triangle `,`△`),X.ell=K(Q,`\\ell `,`ℓ`),X.top=K(Q,`\\top `,`⊤`),X.flat=K(Q,`\\flat `,`♭`),X.natural=K(Q,`\\natural `,`♮`),X.sharp=K(Q,`\\sharp `,`♯`),X.wp=K(Q,`\\wp `,`℘`),X.bot=K(Q,`\\bot `,`⊥`),X.clubsuit=K(Q,`\\clubsuit `,`♣`),X.diamondsuit=K(Q,`\\diamondsuit `,`♢`),X.heartsuit=K(Q,`\\heartsuit `,`♡`),X.spadesuit=K(Q,`\\spadesuit `,`♠`),X.circledot=K(Q,`\\circledot `,`⊙`),X.middot=K(Q,`\\middot `,`·`),X.dottedsquare=K(Q,`\\dottedsquare `,`⬚`),X.square=K(Q,`\\square `,`⬜`),X.rectangle=K(Q,`\\rectangle `,`▯`),X.oint=K(Q,`\\oint `,`∮`),X.bigcap=K(Q,`\\bigcap `,`∩`),X.bigcup=K(Q,`\\bigcup `,`∪`),X.bigsqcup=K(Q,`\\bigsqcup `,`⊔`),X.bigvee=K(Q,`\\bigvee `,`∨`),X.bigwedge=K(Q,`\\bigwedge `,`∧`),X.bigodot=K(Q,`\\bigodot `,`⊙`),X.bigotimes=K(Q,`\\bigotimes `,`⊗`),X.bigoplus=K(Q,`\\bigoplus `,`⊕`),X.biguplus=K(Q,`\\biguplus `,`⊎`),X.lfloor=K(Q,`\\lfloor `,`⌊`),X.rfloor=K(Q,`\\rfloor `,`⌋`),X.lceil=K(Q,`\\lceil `,`⌈`),X.rceil=K(Q,`\\rceil `,`⌉`),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 `,`⊥`),X.nabla=X.del=K(Q,`\\nabla `,`∇`),X.hbar=K(Q,`\\hbar `,`ℏ`),X.AA=X.Angstrom=X.angstrom=K(Q,`\\text\\AA `,`Å`),X.ring=X.circ=X.circle=K(Q,`\\circ `,`∘`),X.bull=X.bullet=K(Q,`\\bullet `,`•`),X.setminus=X.smallsetminus=K(Q,`\\setminus `,`∖`),X.not=X[`¬`]=X.neg=K(Q,`\\neg `,`¬`),X[`…`]=X.dots=X.ellip=X.hellip=X.ellipsis=X.hellipsis=K(Q,`\\dots `,`…`),X.converges=X.darr=X.dnarr=X.dnarrow=X.downarrow=K(Q,`\\downarrow `,`↓`),X.dArr=X.dnArr=X.dnArrow=X.Downarrow=K(Q,`\\Downarrow `,`⇓`),X.diverges=X.uarr=X.uparrow=K(Q,`\\uparrow `,`↑`),X.uArr=X.Uparrow=K(Q,`\\Uparrow `,`⇑`),X.to=K($,`\\to `,`→`),X.rarr=X.rightarrow=K(Q,`\\rightarrow `,`→`),X.implies=K($,`\\Rightarrow `,`⇒`),X.rArr=X.Rightarrow=K(Q,`\\Rightarrow `,`⇒`),X.gets=K($,`\\gets `,`←`),X.larr=X.leftarrow=K(Q,`\\leftarrow `,`←`),X.impliedby=K($,`\\Leftarrow `,`⇐`),X.lArr=X.Leftarrow=K(Q,`\\Leftarrow `,`⇐`),X.harr=X.lrarr=X.leftrightarrow=K(Q,`\\leftrightarrow `,`↔`),X.iff=K($,`\\Leftrightarrow `,`⇔`),X.hArr=X.lrArr=X.Leftrightarrow=K(Q,`\\Leftrightarrow `,`⇔`),X.Re=X.Real=X.real=K(Q,`\\Re `,`ℜ`),X.Im=X.imag=X.image=X.imagin=X.imaginary=X.Imaginary=K(Q,`\\Im `,`ℑ`),X.part=X.partial=K(Q,`\\partial `,`∂`),X.infty=X.infin=X.infinity=K(Q,`\\infty `,`∞`),X.pounds=K(Q,`\\pounds `,`£`),X.alef=X.alefsym=X.aleph=X.alephsym=K(Q,`\\aleph `,`ℵ`),X.xist=X.xists=X.exist=X.exists=K(Q,`\\exists `,`∃`),X.nexists=X.nexist=K(Q,`\\nexists `,`∄`),X.and=X.land=X.wedge=K($,`\\wedge `,`∧`),X.or=X.lor=X.vee=K($,`\\vee `,`∨`),X.o=X.O=X.empty=X.emptyset=X.oslash=X.Oslash=X.nothing=X.varnothing=K($,`\\varnothing `,`∅`),X.cup=X.union=K($,`\\cup `,`∪`),X.cap=X.intersect=X.intersection=K($,`\\cap `,`∩`),X.deg=X.degree=K(Q,`\\degree `,`°`),X.ang=X.angle=K(Q,`\\angle `,`∠`),X.measuredangle=K(Q,`\\measuredangle `,`m∠`);var RS=q(Q,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[J]instanceof zS&&e[J].isItalic!==!1||e[J]instanceof mC&&e[J][J]instanceof zS&&e[J][J].isItalic!==!1)?(X._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),zS=q(AS,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 zS)&&!(this[J]instanceof $)&&this[J].ctrlSeq!==`\\ `&&(e=`*`+e),this[Y]&&!(this[Y]instanceof $)&&!(this[Y]instanceof mC)&&(e+=`*`)),e}});mS.p.autoCommands={_maxLength:0},hS.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]===WS)throw`"`+a+`" is a built-in operator name`;n[a]=1,r=Xx(r,a.length)}return n._maxLength=r,n};var BS=q(zS,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 BS&&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 sS(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 BS||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 BS;i=i[J])r=i.letter+r;for(var a=this[Y];a instanceof BS;a=a[Y])r+=a.letter;sS(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=Yx(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=VS.hasOwnProperty(l);if(s.ctrlSeq=(p?`\\`:`\\operatorname{`)+s.ctrlSeq,f.ctrlSeq+=p?` `:`}`,US.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 mC){var m=f[Y];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass(`mq-after-operator-name`,!(m[Y]instanceof CC))})()}else f.jQ.toggleClass(`mq-last`,!(f[Y]instanceof CC));o+=c-1,s=f;continue outer}}}};function n(e){return!e||e instanceof $||e instanceof _C}}),VS={},HS=mS.p.autoOperatorNames={_maxLength:9},US={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)VS[e[t]]=HS[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)VS[n[t]]=1;for(var r=`sin cos tan sec cosec csc cotan cot ctg`.split(` `),t=0;t<r.length;t+=1)HS[r[t]]=HS[`arc`+r[t]]=HS[r[t]+`h`]=HS[`ar`+r[t]+`h`]=HS[`arc`+r[t]+`h`]=1;for(var i=`gcf hcf lcm proj span`.split(` `),t=0;t<i.length;t+=1)HS[i[t]]=1})(),hS.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=Xx(r,a.length)}return n._maxLength=r,n};var WS=q(AS,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)BS(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=jS(),n=0;n<e.length;n+=1)BS(e.charAt(n)).adopt(t,t.ends[Y],0);return Z.succeed(t.children())}});for(var GS in HS)HS.hasOwnProperty(GS)&&(X[GS]=WS);X.operatorname=q(kS,function(e){e.createLeftOf=Zx,e.numBlocks=function(){return 1},e.parser=function(){return DS.block.map(function(e){return e.children()})}}),X.f=q(BS,function(e,t){e.init=function(){AS.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,`\\ `,` `),X[`'`]=X.prime=K(Q,`'`,`′`),X[`″`]=X.dprime=K(Q,`″`,`″`),X[`"`]=X.doublePrime=K(Q,`"`,`″`),X.backslash=K(Q,`\\backslash `,`\\`),cS[`\\`]||=X.backslash,X.$=K(Q,`\\$`,`$`);var KS=q(AS,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span class="mq-nonSymbola">`+(n||e)+`</span>`)}});X[`@`]=KS,X[`&`]=K(KS,`\\&`,`&`),X[`%`]=K(KS,`\\%`,`%`),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(zS,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),X.phi=K(zS,`\\phi `,`ϕ`),X.phiv=X.varphi=K(zS,`\\varphi `,`φ`),X.epsilon=K(zS,`\\epsilon `,`ϵ`),X.epsiv=X.varepsilon=K(zS,`\\varepsilon `,`ε`),X.piv=X.varpi=K(zS,`\\varpi `,`ϖ`),X.sigmaf=X.sigmav=X.varsigma=K(zS,`\\varsigma `,`ς`),X.thetav=X.vartheta=X.thetasym=K(zS,`\\vartheta `,`ϑ`),X.upsilon=X.upsi=K(zS,`\\upsilon `,`υ`),X.gammad=X.Gammad=X.digamma=K(zS,`\\digamma `,`ϝ`),X.kappav=X.varkappa=K(zS,`\\varkappa `,`ϰ`),X.rhov=X.varrho=K(zS,`\\varrho `,`ϱ`),X.pi=X.π=K(KS,`\\pi `,`π`),X.lambda=K(KS,`\\lambda `,`λ`),X.Upsilon=X.Upsi=X.upsih=X.Upsih=K(AS,`\\Upsilon `,`<var style="font-family: serif">ϒ</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 `,`∀`);var qS=q(kS,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=DS.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=DS.parse(this.latex).children();return Z.succeed(e)}});X[`¹`]=K(qS,`^1`),X[`²`]=K(qS,`^2`),X[`³`]=K(qS,`^3`),X[`¼`]=K(qS,`\\frac14`),X[`½`]=K(qS,`\\frac12`),X[`¾`]=K(qS,`\\frac34`);var JS=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(JS,`+`,`+`),X[`–`]=X[`-`]=K(JS,`-`,`−`),X[`±`]=X.pm=X.plusmn=X.plusminus=K(JS,`\\pm `,`±`),X.mp=X.mnplus=X.minusplus=K(JS,`\\mp `,`∓`),cS[`*`]=X.sdot=X.cdot=K($,`\\cdot `,`·`,`*`);var YS=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)}}),XS={ctrlSeq:`\\le `,html:`≤`,text:`≤`,ctrlSeqStrict:`<`,htmlStrict:`<`,textStrict:`<`},ZS={ctrlSeq:`\\ge `,html:`≥`,text:`≥`,ctrlSeqStrict:`>`,htmlStrict:`>`,textStrict:`>`};X[`<`]=X.lt=K(YS,XS,!0),X[`>`]=X.gt=K(YS,ZS,!0),X[`≤`]=X.le=X.leq=K(YS,XS,!1),X[`≥`]=X.ge=X.geq=K(YS,ZS,!1);var QS=q($,function(e,t){e.init=function(){t.init.call(this,`=`,`=`)},e.createLeftOf=function(e){if(e[J]instanceof YS&&e[J].strict){e[J].swap(!1),e[J].bubble(`reflow`);return}t.createLeftOf.apply(this,arguments)}});X[`=`]=QS,X[`×`]=X.times=K($,`\\times `,`×`,`[x]`),X[`÷`]=X.div=X.divide=X.divides=K($,`\\div `,`÷`,`[/]`),cS[`~`]=X.sim=K($,`\\sim `,`~`,`~`),cS[`≁`]=X.nsim=K($,`\\nsim `,`≁`,`≁`),X.complement=X[`∁`]=K(Q,`\\complement `,`∁`),X.nexists=X[`∄`]=K(Q,`\\nexists `,`∄`),X.sphericalangle=X[`∢`]=K(Q,`\\sphericalangle `,`∢`),X.iint=X[`∬`]=K(Q,`\\iint `,`∬`),X.iiint=X[`∭`]=K(Q,`\\iiint `,`∭`),X.oiint=X[`∯`]=K(Q,`\\oiint `,`∯`),X.oiiint=X[`∰`]=K(Q,`\\oiiint `,`∰`),X.backsim=X[`∽`]=K(Q,`\\backsim `,`∽`),X.backsimeq=X[`⋍`]=K(Q,`\\backsimeq `,`⋍`),X.eqsim=X[`≂`]=K(Q,`\\eqsim `,`≂`),X.ncong=X[`≇`]=K(Q,`\\ncong `,`≇`),X.approxeq=X[`≊`]=K(Q,`\\approxeq `,`≊`),X.bumpeq=X[`≏`]=K(Q,`\\bumpeq `,`≏`),X.Bumpeq=X[`≎`]=K(Q,`\\Bumpeq `,`≎`),X.doteqdot=X[`≑`]=K(Q,`\\doteqdot `,`≑`),X.fallingdotseq=X[`≒`]=K(Q,`\\fallingdotseq `,`≒`),X.risingdotseq=X[`≓`]=K(Q,`\\risingdotseq `,`≓`),X.eqcirc=X[`≖`]=K(Q,`\\eqcirc `,`≖`),X.circeq=X[`≗`]=K(Q,`\\circeq `,`≗`),X.triangleq=X[`≜`]=K(Q,`\\triangleq `,`≜`),X.leqq=X[`≦`]=K(Q,`\\leqq `,`≦`),X.geqq=X[`≧`]=K(Q,`\\geqq `,`≧`),X.lneqq=X[`≨`]=K(Q,`\\lneqq `,`≨`),X.gneqq=X[`≩`]=K(Q,`\\gneqq `,`≩`),X.between=X[`≬`]=K(Q,`\\between `,`≬`),X.nleq=X[`≰`]=K(Q,`\\nleq `,`≰`),X.ngeq=X[`≱`]=K(Q,`\\ngeq `,`≱`),X.lesssim=X[`≲`]=K(Q,`\\lesssim `,`≲`),X.gtrsim=X[`≳`]=K(Q,`\\gtrsim `,`≳`),X.lessgtr=X[`≶`]=K(Q,`\\lessgtr `,`≶`),X.gtrless=X[`≷`]=K(Q,`\\gtrless `,`≷`),X.preccurlyeq=X[`≼`]=K(Q,`\\preccurlyeq `,`≼`),X.succcurlyeq=X[`≽`]=K(Q,`\\succcurlyeq `,`≽`),X.precsim=X[`≾`]=K(Q,`\\precsim `,`≾`),X.succsim=X[`≿`]=K(Q,`\\succsim `,`≿`),X.nprec=X[`⊀`]=K(Q,`\\nprec `,`⊀`),X.nsucc=X[`⊁`]=K(Q,`\\nsucc `,`⊁`),X.subsetneq=X[`⊊`]=K(Q,`\\subsetneq `,`⊊`),X.supsetneq=X[`⊋`]=K(Q,`\\supsetneq `,`⊋`),X.vDash=X[`⊨`]=K(Q,`\\vDash `,`⊨`),X.Vdash=X[`⊩`]=K(Q,`\\Vdash `,`⊩`),X.Vvdash=X[`⊪`]=K(Q,`\\Vvdash `,`⊪`),X.VDash=X[`⊫`]=K(Q,`\\VDash `,`⊫`),X.nvdash=X[`⊬`]=K(Q,`\\nvdash `,`⊬`),X.nvDash=X[`⊭`]=K(Q,`\\nvDash `,`⊭`),X.nVdash=X[`⊮`]=K(Q,`\\nVdash `,`⊮`),X.nVDash=X[`⊯`]=K(Q,`\\nVDash `,`⊯`),X.vartriangleleft=X[`⊲`]=K(Q,`\\vartriangleleft `,`⊲`),X.vartriangleright=X[`⊳`]=K(Q,`\\vartriangleright `,`⊳`),X.trianglelefteq=X[`⊴`]=K(Q,`\\trianglelefteq `,`⊴`),X.trianglerighteq=X[`⊵`]=K(Q,`\\trianglerighteq `,`⊵`),X.multimap=X[`⊸`]=K(Q,`\\multimap `,`⊸`),X.Subset=X[`⋐`]=K(Q,`\\Subset `,`⋐`),X.Supset=X[`⋑`]=K(Q,`\\Supset `,`⋑`),X.Cap=X[`⋒`]=K(Q,`\\Cap `,`⋒`),X.Cup=X[`⋓`]=K(Q,`\\Cup `,`⋓`),X.pitchfork=X[`⋔`]=K(Q,`\\pitchfork `,`⋔`),X.lessdot=X[`⋖`]=K(Q,`\\lessdot `,`⋖`),X.gtrdot=X[`⋗`]=K(Q,`\\gtrdot `,`⋗`),X.lll=X[`⋘`]=K(Q,`\\lll `,`⋘`),X.ggg=X[`⋙`]=K(Q,`\\ggg `,`⋙`),X.lesseqgtr=X[`⋚`]=K(Q,`\\lesseqgtr `,`⋚`),X.gtreqless=X[`⋛`]=K(Q,`\\gtreqless `,`⋛`),X.curlyeqprec=X[`⋞`]=K(Q,`\\curlyeqprec `,`⋞`),X.curlyeqsucc=X[`⋟`]=K(Q,`\\curlyeqsucc `,`⋟`),X.nsim=X[`≁`]=K(Q,`\\nsim `,`≁`),X.lnsim=X[`⋦`]=K(Q,`\\lnsim `,`⋦`),X.gnsim=X[`⋧`]=K(Q,`\\gnsim `,`⋧`),X.precnsim=X[`⋨`]=K(Q,`\\precnsim `,`⋨`),X.succnsim=X[`⋩`]=K(Q,`\\succnsim `,`⋩`),X.ntriangleleft=X[`⋪`]=K(Q,`\\ntriangleleft `,`⋪`),X.ntriangleright=X[`⋫`]=K(Q,`\\ntriangleright `,`⋫`),X.ntrianglelefteq=X[`⋬`]=K(Q,`\\ntrianglelefteq `,`⋬`),X.ntrianglerighteq=X[`⋭`]=K(Q,`\\ntrianglerighteq `,`⋭`),X.blacksquare=X[`∎`]=K(Q,`\\blacksquare `,`∎`),X.colon=X[`∶`]=K(Q,`\\colon `,`∶`),X.llcorner=X[`∟`]=K(Q,`\\llcorner `,`∟`),X.dotplus=X[`∔`]=K($,`\\dotplus `,`∔`),X.nmid=X[`∤`]=K($,`
|
|
197
|
-
mid `,`∤`),X.intercal=X[`⊺`]=K($,`\\intercal `,`⊺`),X.veebar=X[`⊻`]=K($,`\\veebar `,`⊻`),X.barwedge=X[`⊼`]=K($,`\\barwedge `,`⊼`),X.ltimes=X[`⋉`]=K($,`\\ltimes `,`⋉`),X.rtimes=X[`⋊`]=K($,`\\rtimes `,`⋊`),X.leftthreetimes=X[`⋋`]=K($,`\\leftthreetimes `,`⋋`),X.rightthreetimes=X[`⋌`]=K($,`\\rightthreetimes `,`⋌`),X.curlyvee=X[`⋎`]=K($,`\\curlyvee `,`⋎`),X.curlywedge=X[`⋏`]=K($,`\\curlywedge `,`⋏`),X.circledcirc=X[`⊚`]=K($,`\\circledcirc `,`⊚`),X.circledast=X[`⊛`]=K($,`\\circledast `,`⊛`),X.circleddash=X[`⊝`]=K($,`\\circleddash `,`⊝`),X.boxplus=X[`⊞`]=K($,`\\boxplus `,`⊞`),X.boxminus=X[`⊟`]=K($,`\\boxminus `,`⊟`),X.boxtimes=X[`⊠`]=K($,`\\boxtimes `,`⊠`),X.boxdot=X[`⊡`]=K($,`\\boxdot `,`⊡`),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 $S,eC=Zx,tC=document.createElement(`div`).style,nC={transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1},rC;for(var iC in nC)if(iC in tC){rC=iC;break}rC?$S=function(e,t,n){e.css(rC,`scale(`+t+`,`+n+`)`)}:`filter`in tC?(eC=function(e){e.className=e.className},$S=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);Wx(window).load(function(){clearTimeout(a),i()})}):$S=function(e,t,n){e.css(`fontSize`,n+`em`)};var aC=q(kS,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`>&0</`+n+`>`)}}),oC=q(kS,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 DS.optBlock.then(function(t){return DS.block.map(function(n){var r=sC.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))}}),sC=q(oC,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+`>`,kS.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]}}),cC=function(e){var t=`<span class="`+e+`-inner-right">g</span><span class="`+e+`-inner-left">h</span>`;return q(kS,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+`>`)}})},lC=q(kS,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>`)}}),uC=q(kS,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>`)}}),dC=q(kS,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">˙</span><span class="mq-empty-box">&0</span></span></span>`)}}),fC=q(kS,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>`)}}),pC=function(e,t){return q(AS,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(aC,`\\mathrm`,`span`,`class="mq-roman mq-font"`),X.mathit=K(aC,`\\mathit`,`i`,`class="mq-font"`),X.mathbf=K(aC,`\\mathbf`,`b`,`class="mq-font"`),X.mathsf=K(aC,`\\mathsf`,`span`,`class="mq-sans-serif mq-font"`),X.mathtt=K(aC,`\\mathtt`,`span`,`class="mq-monospace mq-font"`),X.underline=K(aC,`\\underline`,`span`,`class="mq-non-leaf mq-underline"`),X.overline=X.bar=K(cC(`mq-overline`),`\\overline`,`span`,`class="mq-non-leaf mq-overline"`),X.longdiv=K(lC,`\\longdiv`,`span`,`class="mq-non-leaf mq-longdiv"`),X.overrightarrow=K(cC(`mq-overarrow`),`\\overrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-right"`),X.overleftarrow=K(cC(`mq-overarrow`),`\\overleftarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-left"`),X.xleftarrow=K(oC,`\\xleftarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-left"`),X.xrightarrow=K(oC,`\\xrightarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-right"`),X.overleftrightarrow=K(aC,`\\overleftrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-both"`),X.overarc=K(aC,`\\overarc`,`span`,`class="mq-non-leaf mq-overarc"`),X.dot=q(kS,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">˙</span><span class="mq-empty-box">&0</span></span></span>`)}}),X.addmatrixrow=K(uC,`\\addmatrixrow`,`span`,`+`),X.addmatrixcol=K(fC,`\\addmatrixcol`,`span`,`+`),X.ngtr=X[`≯`]=K(pC(`mq-ngtr`,`≯`),`\\ngtr `,`span`,`class="mq-non-leaf mq-ngtr"`),X.nless=X[`≮`]=K(pC(`mq-nless`,`≮`),`\\nless `,`span`,`class="mq-non-leaf mq-nless"`),X.dot=K(dC,`\\dot`),X.parallelogram=K(pC(`mq-parallelogram`,`▱`),`\\parallelogram `,`span`,`class="mq-non-leaf mq-parallelogram"`),X.textcolor=q(kS,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(kS,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 mC=q(kS,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 mC){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=iS(i,0,i.ends[J]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var o=r.children().disown(),a=iS(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}},mS.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 AS?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),jS.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 AS?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=Wx(`<span class="mq-sup"/>`).append(e.jQ.children()).attr(Jx,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=Wx(`<span class="mq-sub"></span>`).append(e.jQ.children()).attr(Jx,e.id).appendTo(this.jQ.removeClass(`mq-sup-only`)),this.jQ.append(`<span style="display:inline-block;width:0">​</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`]=hC,delete e[n].deleteOutOf,t===`sub`&&Wx(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 hC(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(mC,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">​</span></span>`,e.textTemplate=[`_`],e.finalizeTree=function(){this.downInto=this.sub=this.ends[J],this.sub.upOutOf=hC,t.finalizeTree.call(this)}}),X.superscript=X.supscript=X[`^`]=q(mC,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=hC,t.finalizeTree.call(this)}});var gC=q(kS,function(e,t){e.parser=function(){for(var e=Z.string,t=Z.optWhitespace,n=Z.succeed,r=DS.block,i=this,a=i.blocks=[jS(),jS()],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]}}),_C=q(gC,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>`;AS.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&&(BS(`n`).createLeftOf(e),QS().createLeftOf(e))}});X[`∑`]=X.sum=X.summation=K(_C,`\\sum `,`∑`),X[`∏`]=X.prod=X.product=K(_C,`\\prod `,`∏`),X.coprod=X.coproduct=K(_C,`\\coprod `,`∐`),X[`∫`]=X.int=X.integral=q(_C,function(e,t){e.init=function(){AS.prototype.init.call(this,`\\int `,`<span class="mq-int mq-non-leaf"><big>∫</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">​</span></span></span>`)},e.createLeftOf=kS.p.createLeftOf}),X.lim=X.limit=q(gC,function(e,t){e.init=function(){AS.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 vC=X.over=cS[`/`]=q(X.frac=X.dfrac=X.cfrac=X.fraction=q(kS,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">​</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||Zx)||n instanceof _C||n.ctrlSeq===`\\ `||/^[,;:]$/.test(n.ctrlSeq));)n=n[J];n instanceof _C&&n[Y]instanceof mC&&(n=n[Y],n[Y]instanceof mC&&n[Y].ctrlSeq!=n.ctrlSeq&&(n=n[Y])),n!==e[J]&&!e.isTooDeep(1)&&(this.replaces(sS(n[Y]||e.parent.ends[J],e[J])),e[J]=n)}t.createLeftOf.call(this,e)}});X.underset=q(kS,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(kS,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 yC=X.sqrt=X[`√`]=q(kS,function(e,t){e.ctrlSeq=`\\sqrt`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">√</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 DS.optBlock.then(function(e){return DS.block.map(function(t){var n=bC();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();$S(e.prev(),1,e.innerHeight()/+e.css(`fontSize`).slice(0,-2)-.1)}});X.hat=q(kS,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 bC=X.nthroot=q(yC,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">√</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()+`}`}}),xC=q(kS,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(xC,`\\vec`,`→`,[`vec(`,`)`]),X.tilde=K(xC,`\\tilde`,`~`,[`tilde(`,`)`]),X.lrncuberoot=q(yC,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">√</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(kS,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(kS,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(kS,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(kS,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(kS,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"> </span></span></span>`,e.textTemplate=[``,`_`],e.latex=function(){return this.ends[J].latex()+`_`+this.ends[Y].latex()}});function SC(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`));$S(this.delimjQs,Yx(1+.2*(e-1),1.2),1.2*e)}}var CC=q(q(kS,SC),function(e,t){e.init=function(e,n,r,i,a){t.init.call(this,`\\left`+i,Kx,[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 CC&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||wC[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]&&sS(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(sS(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=Zx,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:wC[this.sides[this.side].ch],ctrlSeq:wC[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];sS(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()}}),wC={"(":`)`,")":`(`,"[":`]`,"]":`[`,"{":`}`,"}":`{`,"\\{":`\\}`,"\\}":`\\{`,"⟨":`⟩`,"⟩":`⟨`,"\\langle ":`\\rangle `,"\\rangle ":`\\langle `,"|":`|`,"\\lVert ":`\\rVert `,"\\rVert ":`\\lVert `};function TC(e,t){var t=t||e,n=wC[e],r=wC[t];cS[e]=K(CC,J,e,n,t,r),cS[n]=K(CC,Y,e,n,t,r)}TC(`(`),TC(`[`),TC(`{`,`\\{`),X.langle=K(CC,J,`⟨`,`⟩`,`\\langle `,`\\rangle `),X.rangle=K(CC,Y,`⟨`,`⟩`,`\\langle `,`\\rangle `),cS[`|`]=K(CC,J,`|`,`|`,`|`,`|`),X.lVert=K(CC,J,`∥`,`∥`,`\\lVert `,`\\rVert `),X.rVert=K(CC,Y,`∥`,`∥`,`\\lVert `,`\\rVert `),X.left=q(kS,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=`⟨`,r+=` `),r==`\\lVert`&&(i=`∥`,r+=` `),DS.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=`⟩`,e+=` `),e==`\\rVert`&&(t=`∥`,e+=` `);var n=CC(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n})})})}}),X.right=q(kS,function(e){e.parser=function(){return Z.fail(`unmatched \\right`)}}),X.choose=q(X.binom=X.binomial=q(q(kS,SC),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=vC.prototype.createLeftOf}),X.editable=X.MathQuillMathField=q(kS,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=fS(this.ends[J],this.jQ,e);t.KIND_OF_MQ=`MathField`,t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),wS(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 EC=X.embed=q(AS,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(_S[i](t))})})}});X.MathQuillResponseContainer=q(kS,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(kS,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 DC=X.matrix=q(kS,function(e,t){var n=q(jS,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&&$S(n,Yx(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);DS.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=aS.byId[e.first().attr(Jx)],n=aS.byId[e.last().attr(Jx)],r=e.eq(0).closest(`tr`),i=[];e.each(function(t){var n=aS.byId[Wx(this).attr(Jx)],a=e.eq(t+1),o=Wx(this).closest(`tr`).next(`tr`),s=Wx(this).closest(`tr`).index(),c=Wx(this).index(),l;if(a.length){var u=aS.byId[a.attr(Jx)];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=aS.byId[l.attr(Jx)];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 Wx(this).find(`td`)[n]}),o=this.jQ.find(`td`).length===1,s;function c(){return aS.byId[Wx(this).attr(Jx)].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=aS.byId[this.jQ.find(`tr`).eq(r).find(`td`).eq(n).attr(Jx)]),s},e.addRow=function(e){if(!(this.jQ.find(`tr`).length>=this.maximum.rows)){for(var t=e.find(`td`).length,r=Wx(`<tr></tr>`),i,a,o=0;o<t;o++)i=n(),i.parent=this,i.jQ=Wx(`<td class="mq-empty">`).attr(Jx,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=Wx(`<td class="mq-empty">`).attr(Jx,a.id),a.jQ.insertAfter(Wx(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(DC,function(e,t){e.ctrlSeq=`\\pmatrix`,e.parentheses={left:`(`,right:`)`}}),X.bmatrix=q(DC,function(e,t){e.ctrlSeq=`\\bmatrix`,e.parentheses={left:`[`,right:`]`}}),X.Bmatrix=q(DC,function(e,t){e.ctrlSeq=`\\Bmatrix`,e.parentheses={left:`{`,right:`}`}}),X.vmatrix=q(DC,function(e,t){e.ctrlSeq=`\\vmatrix`,e.parentheses={left:`|`,right:`|`}}),X.Vmatrix=q(DC,function(e,t){e.ctrlSeq=`\\Vmatrix`,e.parentheses={left:`‖`,right:`‖`}});var OC=SS(3);for(var kC in OC)(function(e,t){typeof t==`function`?(yS[e]=function(){return vS(),t.apply(this,arguments)},yS[e].prototype=t.prototype):yS[e]=t})(kC,OC[kC]);var AC=function(e){e.registerEmbed(`newLine`,()=>({htmlString:`<div class="newLine"></div>`,text:()=>`testText`,latex:()=>`\\embed{newLine}[]`}))},jC;typeof window<`u`&&(jC=yS.getInterface(3),jC&&jC.registerEmbed&&AC(jC));function MC(e,t){!jC||!jC.registerEmbed||jC.registerEmbed(e,t)}function NC(e,t,n){if(!(!jC||!e))return t!=null&&(e.textContent=t),jC.StaticMath(e,n)}var PC=e=>`&.mq-math-mode ${e}, & .mq-math-mode ${e}`,FC={"&.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:Sd()},[[`.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(PC).join(`, `)]:{borderTopColor:`currentColor`},[[`.mq-underline`,`.mq-xarrow .mq-xarrow-over`].map(PC).join(`, `)]:{borderBottomColor:`currentColor`},[PC(`.mq-abs`)]:{borderLeftColor:`currentColor`,borderRightColor:`currentColor`},[PC(`.mq-matrix td.mq-empty`)]:{borderColor:`currentColor`}},IC={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`}},LC={"& .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`}},RC={"& .mq-math-mode sup.mq-nthroot":{fontSize:`70% !important`,verticalAlign:`0.5em !important`,paddingRight:`0.15em`},"& .mq-math-mode .mq-supsub":{fontSize:`70.7% !important`},"& .mq-supsub ":{fontSize:`70.7%`},"& .mq-math-mode .mq-supsub.mq-sup-only":{verticalAlign:`-0.1em !important`,"& .mq-sup":{marginBottom:`0px !important`}},"& .mq-math-mode .mq-fraction + .mq-supsub.mq-sup-only":{verticalAlign:`0.4em !important`},"& .mq-math-mode .mq-supsub.mq-sup-only.mq-after-fraction-group":{verticalAlign:`0.4em !important`}},zC={"& *":{...IC,...LC,"& .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`}}},BC={mqInkStyles:FC,commonMqFontStyles:IC,longdivStyles:LC,supsubStyles:RC,commonMqKeyboardStyles:zC},VC=v(`math-input:mq:input`),HC=V(`span`)(FC),UC=class extends I.Component{static propTypes={className:P.string,onClick:P.func,onChange:P.func,latex:P.string,onFocus:P.func,onBlur:P.func,language:P.string};componentDidMount(){if(!jC)throw Error(`MQ is not defined - but component has mounted?`);this.mathField=jC.MathField(this.input,{handlers:{edit:this.onInputEdit.bind(this)}}),this.updateLatex(),Vx(this.input,this.props.language)}componentDidUpdate(){this.updateLatex(),Vx(this.input,this.props.language)}updateLatex(){if(!this.mathField)return;let{latex:e}=this.props;e!=null&&this.mathField.latex(e)}clear(){return this.mathField.latex(``),``}blur(){VC(`blur mathfield`),this.mathField.blur()}focus(){VC(`focus mathfield...`),this.mathField.focus()}command(e){return VC(`command: `,e),Array.isArray(e)?e.forEach(e=>{this.mathField.cmd(e)}):this.mathField.cmd(e),this.mathField.focus(),this.mathField.latex()}keystroke(e){return this.mathField.keystroke(e),this.mathField.focus(),this.mathField.latex()}write(e){return VC(`write: `,e),this.mathField.write(e),this.mathField.focus(),this.mathField.latex()}onInputEdit=()=>{VC(`[onInputEdit] ...`);let{onChange:e}=this.props;this.mathField&&e&&e(this.mathField.latex())};refresh=()=>{this.blur(),this.focus()};onKeyPress=e=>{if(Object.keys(this.mathField.__controller.options).indexOf(`ignoreNextMousedown`)<0&&this.refresh(),e.charCode===13){e.preventDefault();return}};onClick=e=>{let{onClick:t}=this.props;this.refresh(),t&&t(e)};shouldComponentUpdate(e){return VC(`next: `,e.latex),VC(`current: `,this.mathField.latex()),e.latex!==this.mathField.latex()}render(){let{onFocus:e,onBlur:t,className:n}=this.props;return(0,L.jsx)(HC,{className:n,onKeyDown:this.onKeyPress,onClick:this.onClick,onFocus:e,onBlur:t,ref:e=>this.input=e})}},WC=v(`pie-lib:math-input:mq:static`),GC=/\\MathQuillMathField\[r\d*\]\{(.*?)\}/g,KC=/ /g;function qC(e=``){return e.replace(KC,``)}function JC(e){let t=0;for(let n=0;n<(e||``).length;n++)e[n]===`{`&&t++;return t}var YC=V(`span`)(FC),XC=class extends I.Component{static propTypes={latex:P.string.isRequired,onFocus:P.func,onBlur:P.func,className:P.string,getFieldName:P.func,onSubFieldChange:P.func,onSubFieldFocus:P.func,setInput:P.func,language:P.string};static defaultProps={getFieldName:()=>{}};constructor(e){super(e),this.state={announcement:``,previousLatex:``,inputSource:null,isDeleteKeyPressed:!1},this.inputRef=I.createRef()}componentDidMount(){this.update(),bx(),this.createLiveRegion(),this.addEventListeners()}componentDidUpdate(){this.update(),bx()}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(JC(e)>JC(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(!jC)throw Error(`MQ is not defined - but component has mounted?`);this.mathField||=jC.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}Vx(this.inputRef?.current,this.props.language)};blur=()=>{WC(`blur mathfield`),this.mathField.blur()};focus=()=>{WC(`focus mathfield...`),this.mathField.focus()};shouldComponentUpdate(e){try{let t=qC(this.mathField.parseLatex(e.latex)),n=(e.latex.match(GC)||[]).length,r=t!==qC(this.mathField.latex().trim())||n!==Object.keys(this.mathField.innerFields).length/2;return WC(`[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,L.jsx)(YC,{className:t,onFocus:this.onFocus,onBlur:e,ref:this.inputRef})}},ZC=e=>(uy(5-e.length,()=>e.push([])),dy.apply(null,e)),QC=v(`pie-lib:math-inline:keypad`),$C=Wu(`pie`),ew=[Gu(),Yd()],tw={"& .MuiTouchRipple-root":{color:`rgb(from ${Gu()} min(r, 255 - r) min(g, 255 - g) min(b, 255 - b))`}},nw={"&.Mui-focusVisible":{outline:`2px solid ${Fd()}`,outlineOffset:`-2px`,boxShadow:`inset 0 0 0 4px ${$C(`background`,U.WHITE)}`}},rw=V(XC)(({latex:e})=>{let t={pointerEvents:`none`,textTransform:`none !important`,color:ew,"& .mq-scaled.mq-sqrt-prefix":{transform:`scale(1, 0.9) !important`},"& .mq-sup-only .mq-sup":{marginBottom:`0.9px !important`},"& .mq-empty":{backgroundColor:`${Gd()} !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});rw.propTypes={latex:P.string.isRequired};var iw=e=>e?{gridTemplateColumns:`repeat(${e.columns}, minmax(min-content, 150px))`,gridTemplateRows:`repeat(${e.rows}, minmax(40px, 60px))`,gridAutoFlow:`initial`}:{},aw=V(`div`)(()=>({...zC,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`}}})),ow=V(Kh)(({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:ew,backgroundColor:e===`operators`?Wd():Ud(),"&:hover":{backgroundColor:e===`operators`?qd():Kd()},...tw,...nw,borderRadius:0,...t&&{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}})),sw=V(Kh)(({category:e})=>({textTransform:`none`,padding:0,margin:0,fontSize:`110% !important`,minWidth:`auto`,borderRadius:0,backgroundColor:e===`operators`?Wd():Ud(),"&:hover":{backgroundColor:e===`operators`?qd():Kd()},...tw,...nw})),cw=V(zx)(({category:e})=>({minWidth:`auto`,backgroundColor:e===`operators`?Wd():Ud(),"&:hover":{backgroundColor:e===`operators`?qd():Kd()},borderRadius:0,"& .icon":{height:`30px`}})),lw=class extends I.Component{static propTypes={className:P.string,controlledKeypadMode:P.bool,baseSet:P.array,additionalKeys:P.array,layoutForKeyPad:P.object,onPress:P.func.isRequired,onFocus:P.func,noDecimal:P.bool,setKeypadInteraction:P.func,mode:P.oneOfType([P.string,P.number])};static defaultProps={baseSet:Nx,noDecimal:!1};constructor(e){super(e),this.keypadRef=I.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=>{QC(`[buttonClick]`,e);let{onPress:t}=this.props;t(e)};flowKeys=(e,t)=>ay([...ZC(e),...ZC(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))`,...iw(r)};return(0,L.jsx)(aw,{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,L.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,L.jsx)(sw,{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,L.jsx)(rw,{latex:e.latex})},r.key);if(e.label)return(0,L.jsx)(ow,{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,L.jsx)(cw,{tabIndex:`-1`,onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,size:`large`,...e.actions||{},...e.extraProps||{},children:(0,L.jsx)(t,{className:`icon`})},r.key)}})})}},uw=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}},dw=class extends I.Component{static propTypes={className:P.string,controlledKeypadMode:P.bool,mode:P.oneOfType([P.string,P.number]),layoutForKeyPad:P.object,onClick:P.func.isRequired,onFocus:P.func,noDecimal:P.bool,additionalKeys:P.array,setKeypadInteraction:P.func};static defaultProps={mode:`scientific`,noDecimal:!1,additionalKeys:[]};keypadPress=e=>{let{onClick:t}=this.props;t(uw(e))};render(){let{mode:e,onFocus:t,controlledKeypadMode:n,noDecimal:r,className:i,additionalKeys:a,layoutForKeyPad:o,setKeypadInteraction:s}=this.props,c=yx(a);return(0,L.jsx)(lw,{className:i,controlledKeypadMode:n,onFocus:t,noDecimal:r,layoutForKeyPad:o,additionalKeys:hy(_x(e),c),onPress:this.keypadPress,mode:e,setKeypadInteraction:s})}},fw=`bottom`,pw=`right`,mw=`left`,hw=`auto`,gw=[`top`,fw,pw,mw],_w=`start`,vw=`clippingParents`,yw=`viewport`,bw=`popper`,xw=`reference`,Sw=gw.reduce(function(e,t){return e.concat([t+`-`+_w,t+`-end`])},[]),Cw=[].concat(gw,[hw]).reduce(function(e,t){return e.concat([t,t+`-`+_w,t+`-end`])},[]),ww=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function Tw(e){return e?(e.nodeName||``).toLowerCase():null}function Ew(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dw(e){return e instanceof Ew(e).Element||e instanceof Element}function Ow(e){return e instanceof Ew(e).HTMLElement||e instanceof HTMLElement}function kw(e){return typeof ShadowRoot>`u`?!1:e instanceof Ew(e).ShadowRoot||e instanceof ShadowRoot}function Aw(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];!Ow(i)||!Tw(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 jw(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},{});!Ow(r)||!Tw(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var Mw={name:`applyStyles`,enabled:!0,phase:`write`,fn:Aw,effect:jw,requires:[`computeStyles`]};function Nw(e){return e.split(`-`)[0]}var Pw=Math.max,Fw=Math.min,Iw=Math.round;function Lw(){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 Rw(){return!/^((?!chrome|android).)*safari/i.test(Lw())}function zw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Ow(e)&&(i=e.offsetWidth>0&&Iw(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Iw(r.height)/e.offsetHeight||1);var o=(Dw(e)?Ew(e):window).visualViewport,s=!Rw()&&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 Bw(e){var t=zw(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 Vw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&kw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hw(e){return Ew(e).getComputedStyle(e)}function Uw(e){return[`table`,`td`,`th`].indexOf(Tw(e))>=0}function Ww(e){return((Dw(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gw(e){return Tw(e)===`html`?e:e.assignedSlot||e.parentNode||(kw(e)?e.host:null)||Ww(e)}function Kw(e){return!Ow(e)||Hw(e).position===`fixed`?null:e.offsetParent}function qw(e){var t=/firefox/i.test(Lw());if(/Trident/i.test(Lw())&&Ow(e)&&Hw(e).position===`fixed`)return null;var n=Gw(e);for(kw(n)&&(n=n.host);Ow(n)&&[`html`,`body`].indexOf(Tw(n))<0;){var r=Hw(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 Jw(e){for(var t=Ew(e),n=Kw(e);n&&Uw(n)&&Hw(n).position===`static`;)n=Kw(n);return n&&(Tw(n)===`html`||Tw(n)===`body`&&Hw(n).position===`static`)?t:n||qw(e)||t}function Yw(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function Xw(e,t,n){return Pw(e,Fw(t,n))}function Zw(e,t,n){var r=Xw(e,t,n);return r>n?n:r}function Qw(){return{top:0,right:0,bottom:0,left:0}}function $w(e){return Object.assign({},Qw(),e)}function eT(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var tT=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,$w(typeof e==`number`?eT(e,gw):e)};function nT(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Nw(n.placement),c=Yw(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=tT(i.padding,n),d=Bw(a),f=c===`y`?`top`:mw,p=c===`y`?fw:pw,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=Jw(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=Xw(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function rT(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)||Vw(t.elements.popper,r)&&(t.elements.arrow=r))}var iT={name:`arrow`,enabled:!0,phase:`main`,fn:nT,effect:rT,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function aT(e){return e.split(`-`)[1]}var oT={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function sT(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Iw(n*i)/i||0,y:Iw(r*i)/i||0}}function cT(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=mw,b=`top`,x=window;if(l){var S=Jw(n),C=`clientHeight`,w=`clientWidth`;if(S===Ew(n)&&(S=Ww(n),Hw(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=fw;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=pw;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&&oT),O=u===!0?sT({x:p,y:h},Ew(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 lT(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:Nw(t.placement),variation:aT(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,cT(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,cT(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 uT={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:lT,data:{}},dT={passive:!0};function fT(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=Ew(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,dT)}),s&&c.addEventListener(`resize`,n.update,dT),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,dT)}),s&&c.removeEventListener(`resize`,n.update,dT)}}var pT={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:fT,data:{}},mT={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function hT(e){return e.replace(/left|right|bottom|top/g,function(e){return mT[e]})}var gT={start:`end`,end:`start`};function _T(e){return e.replace(/start|end/g,function(e){return gT[e]})}function vT(e){var t=Ew(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function yT(e){return zw(Ww(e)).left+vT(e).scrollLeft}function bT(e,t){var n=Ew(e),r=Ww(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=Rw();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+yT(e),y:c}}function xT(e){var t=Ww(e),n=vT(e),r=e.ownerDocument?.body,i=Pw(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Pw(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+yT(e),s=-n.scrollTop;return Hw(r||t).direction===`rtl`&&(o+=Pw(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function ST(e){var t=Hw(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function CT(e){return[`html`,`body`,`#document`].indexOf(Tw(e))>=0?e.ownerDocument.body:Ow(e)&&ST(e)?e:CT(Gw(e))}function wT(e,t){t===void 0&&(t=[]);var n=CT(e),r=n===e.ownerDocument?.body,i=Ew(n),a=r?[i].concat(i.visualViewport||[],ST(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(wT(Gw(a)))}function TT(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ET(e,t){var n=zw(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 DT(e,t,n){return t===`viewport`?TT(bT(e,n)):Dw(t)?ET(t,n):TT(xT(Ww(e)))}function OT(e){var t=wT(Gw(e)),n=[`absolute`,`fixed`].indexOf(Hw(e).position)>=0&&Ow(e)?Jw(e):e;return Dw(n)?t.filter(function(e){return Dw(e)&&Vw(e,n)&&Tw(e)!==`body`}):[]}function kT(e,t,n,r){var i=t===`clippingParents`?OT(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=DT(e,n,r);return t.top=Pw(i.top,t.top),t.right=Fw(i.right,t.right),t.bottom=Fw(i.bottom,t.bottom),t.left=Pw(i.left,t.left),t},DT(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 AT(e){var t=e.reference,n=e.element,r=e.placement,i=r?Nw(r):null,a=r?aT(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 fw:c={x:o,y:t.y+t.height};break;case pw:c={x:t.x+t.width,y:s};break;case mw:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Yw(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case _w: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 jT(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?vw:s,l=n.rootBoundary,u=l===void 0?yw:l,d=n.elementContext,f=d===void 0?bw:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=$w(typeof g==`number`?eT(g,gw):g),v=f===`popper`?xw:bw,y=e.rects.popper,b=e.elements[m?v:f],x=kT(Dw(b)?b:b.contextElement||Ww(e.elements.popper),c,u,o),S=zw(e.elements.reference),C=AT({reference:S,element:y,strategy:`absolute`,placement:i}),w=TT(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 MT(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?Cw:c,u=aT(r),d=u?s?Sw:Sw.filter(function(e){return aT(e)===u}):gw,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]=jT(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Nw(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function NT(e){if(Nw(e)===`auto`)return[];var t=hT(e);return[_T(e),t,_T(t)]}function PT(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,_=Nw(g)===g,v=c||(_||!m?[hT(g)]:NT(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(Nw(n)===`auto`?MT(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=Nw(E),O=aT(E)===_w,ee=[`top`,fw].indexOf(D)>=0,k=ee?`width`:`height`,A=jT(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),j=ee?O?pw:mw:O?fw:`top`;b[k]>x[k]&&(j=hT(j));var te=hT(j),M=[];if(a&&M.push(A[D]<=0),s&&M.push(A[j]<=0,A[te]<=0),M.every(function(e){return e})){w=E,C=!1;break}S.set(E,M)}if(C)for(var ne=m?3:1,N=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`},re=ne;re>0&&N(re)!==`break`;re--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var FT={name:`flip`,enabled:!0,phase:`main`,fn:PT,requiresIfExists:[`offset`],data:{_skip:!1}};function IT(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 LT(e){return[`top`,pw,fw,mw].some(function(t){return e[t]>=0})}function RT(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=jT(t,{elementContext:`reference`}),s=jT(t,{altBoundary:!0}),c=IT(o,r),l=IT(s,i,a),u=LT(c),d=LT(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 zT={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:RT};function BT(e,t,n){var r=Nw(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 VT(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Cw.reduce(function(e,n){return e[n]=BT(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 HT={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:VT};function UT(e){var t=e.state,n=e.name;t.modifiersData[n]=AT({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var WT={name:`popperOffsets`,enabled:!0,phase:`read`,fn:UT,data:{}};function GT(e){return e===`x`?`y`:`x`}function KT(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=jT(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=Nw(t.placement),v=aT(t.placement),y=!v,b=Yw(_),x=GT(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`:mw,k=b===`y`?fw:pw,A=b===`y`?`height`:`width`,j=S[b],te=j+g[ee],M=j-g[k],ne=p?-w[A]/2:0,N=v===`start`?C[A]:w[A],re=v===`start`?-w[A]:-C[A],ie=t.elements.arrow,ae=p&&ie?Bw(ie):{width:0,height:0},oe=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Qw(),se=oe[ee],ce=oe[k],le=Xw(0,C[A],ae[A]),ue=y?C[A]/2-ne-le-se-E.mainAxis:N-le-se-E.mainAxis,de=y?-C[A]/2+ne+le+ce+E.mainAxis:re+le+ce+E.mainAxis,fe=t.elements.arrow&&Jw(t.elements.arrow),pe=fe?b===`y`?fe.clientTop||0:fe.clientLeft||0:0,me=D?.[b]??0,he=j+ue-me-pe,ge=j+de-me,_e=Xw(p?Fw(te,he):te,j,p?Pw(M,ge):M);S[b]=_e,O[b]=_e-j}if(s){var ve=b===`x`?`top`:mw,ye=b===`x`?fw:pw,be=S[x],xe=x===`y`?`height`:`width`,Se=be+g[ve],Ce=be-g[ye],we=[`top`,mw].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?Zw(Ee,be,De):Xw(p?Ee:Se,be,p?De:Ce);S[x]=Oe,O[x]=Oe-be}t.modifiersData[r]=O}}var qT={name:`preventOverflow`,enabled:!0,phase:`main`,fn:KT,requiresIfExists:[`offset`]};function JT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function YT(e){return e===Ew(e)||!Ow(e)?vT(e):JT(e)}function XT(e){var t=e.getBoundingClientRect(),n=Iw(t.width)/e.offsetWidth||1,r=Iw(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ZT(e,t,n){n===void 0&&(n=!1);var r=Ow(t),i=Ow(t)&&XT(t),a=Ww(t),o=zw(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Tw(t)!==`body`||ST(a))&&(s=YT(t)),Ow(t)?(c=zw(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=yT(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function QT(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 $T(e){var t=QT(e);return ww.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function eE(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function tE(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 nE={placement:`bottom`,modifiers:[],strategy:`absolute`};function rE(){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 iE(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?nE:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},nE,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:Dw(e)?wT(e):e.contextElement?wT(e.contextElement):[],popper:wT(t)};var s=$T(tE([].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(rE(t,n)){i.rects={reference:ZT(t,Jw(n),i.options.strategy===`fixed`),popper:Bw(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:eE(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!rE(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 aE=iE({defaultModifiers:[pT,WT,uT,Mw,HT,FT,qT,iT,zT]});function oE(e){return Qi(`MuiPopper`,e)}z(`MuiPopper`,[`root`]);function sE(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 cE(e){return typeof e==`function`?e():e}function lE(e){return e.nodeType!==void 0}var uE=e=>{let{classes:t}=e;return bo({root:[`root`]},oE,t)},dE={},fE=I.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=I.useRef(null),_=ul(g,t),v=I.useRef(null),y=ul(v,u),b=I.useRef(y);fa(()=>{b.current=y},[y]),I.useImperativeHandle(u,()=>v.current,[]);let x=sE(c,i),[S,C]=I.useState(x),[w,T]=I.useState(cE(n));I.useEffect(()=>{v.current&&v.current.forceUpdate()}),I.useEffect(()=>{n&&T(cE(n))},[n]),fa(()=>{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=aE(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=uE(e),O=f.root??`div`;return(0,L.jsx)(O,{...qg({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root}),children:typeof r==`function`?r(E):r})}),pE=V(I.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=dE,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=I.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=cE(n);S=e&&lE(e)?Yc(e).body:Yc(null).body}let C=!l&&s&&(!m||v)?`none`:void 0,w=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,L.jsx)(Vl,{disablePortal:o,container:S,children:(0,L.jsx)(fE,{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`})({}),mE=I.forwardRef(function(e,t){let n=Ra(),{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}=Kc({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,L.jsx)(pE,{as:i,direction:n?`rtl`:`ltr`,slots:{root:y},slotProps:_??o,...b,ref:t})});function hE(e){return Qi(`MuiTooltip`,e)}var gE=z(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function _E(e){return Math.round(e*1e5)/1e5}var vE=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return bo({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${yu(a.split(`-`)[0])}`],arrow:[`arrow`]},hE,t)},yE=V(mE,{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]}})(Hl(({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"] .${gE.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${gE.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${gE.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${gE.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`0 0`}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${gE.arrow}`]:{left:0,marginLeft:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${gE.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${gE.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${gE.arrow}`]:{left:0,marginLeft:`-0.71em`}}}]}))),bE=V(`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${yu(n.placement.split(`-`)[0])}`]]}})(Hl(({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,[`.${gE.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`},[`.${gE.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`},[`.${gE.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${gE.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:`${_E(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${gE.popper}[data-popper-placement*="left"] &`]:{marginRight:`14px`},[`.${gE.popper}[data-popper-placement*="right"] &`]:{marginLeft:`14px`}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${gE.popper}[data-popper-placement*="left"] &`]:{marginRight:`24px`},[`.${gE.popper}[data-popper-placement*="right"] &`]:{marginLeft:`24px`}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${gE.popper}[data-popper-placement*="left"] &`]:{marginLeft:`14px`},[`.${gE.popper}[data-popper-placement*="right"] &`]:{marginRight:`14px`}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${gE.popper}[data-popper-placement*="left"] &`]:{marginLeft:`24px`},[`.${gE.popper}[data-popper-placement*="right"] &`]:{marginRight:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${gE.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${gE.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),xE=V(`span`,{name:`MuiTooltip`,slot:`Arrow`})(Hl(({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)`}}))),SE=!1,CE=new rl,wE={x:0,y:0};function TE(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var EE=I.forwardRef(function(e,t){let n=Kc({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:k,...A}=n,j=I.isValidElement(i)?i:(0,L.jsx)(`span`,{children:i}),te=Ms(),M=Ra(),[ne,N]=I.useState(),[re,ie]=I.useState(null),ae=I.useRef(!1),oe=d||g,se=il(),ce=il(),le=il(),ue=il(),[de,fe]=ku({controlled:S,default:!1,name:`Tooltip`,state:`open`}),pe=de,me=Du(_),he=I.useRef(),ge=Au(()=>{he.current!==void 0&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ue.clear()});I.useEffect(()=>ge,[ge]);let _e=e=>{CE.clear(),SE=!0,fe(!0),x&&!pe&&x(e)},ve=Au(e=>{CE.start(800+v,()=>{SE=!1}),fe(!1),b&&pe&&b(e),se.start(te.transitions.duration.shortest,()=>{ae.current=!1})}),ye=e=>{ae.current&&e.type!==`touchstart`||(ne&&ne.removeAttribute(`title`),ce.clear(),le.clear(),p||SE&&m?ce.start(SE?m:p,()=>{_e(e)}):_e(e))},be=e=>{ce.clear(),le.start(v,()=>{ve(e)})},[,xe]=I.useState(!1),Se=e=>{let t=e?.target??ne;if(!t||!th(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=>{ne||N(e.currentTarget),th(e.target)&&(xe(!0),ye(e))},we=e=>{ae.current=!0;let t=j.props;t.onTouchStart&&t.onTouchStart(e)},Te=e=>{we(e),le.clear(),se.clear(),ge(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,ue.start(h,()=>{document.body.style.WebkitUserSelect=he.current,ye(e)})},Ee=e=>{j.props.onTouchEnd&&j.props.onTouchEnd(e),ge(),le.start(y,()=>{ve(e)})};I.useEffect(()=>{if(!pe)return;function e(e){e.key===`Escape`&&ve(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[ve,pe]);let De=dl(al(j),N,t);!O&&O!==0&&(pe=!1);let Oe=I.useRef(),ke=e=>{let t=j.props;t.onMouseMove&&t.onMouseMove(e),wE={x:e.clientX,y:e.clientY},Oe.current&&Oe.current.update()},Ae={},je=typeof O==`string`;c?(Ae.title=!pe&&je&&!u?O:null,Ae[`aria-describedby`]=pe?me:null):(Ae[`aria-label`]=je?O:null,Ae[`aria-labelledby`]=pe&&!je?me:null);let Me={...Ae,...A,...j.props,className:R(A.className,j.props.className),onTouchStart:we,ref:De,...g?{onMouseMove:ke}:{}},Ne={};f||(Me.onTouchStart=Te,Me.onTouchEnd=Ee),u||(Me.onMouseOver=TE(ye,Me.onMouseOver),Me.onMouseLeave=TE(be,Me.onMouseLeave),oe||(Ne.onMouseOver=ye,Ne.onMouseLeave=be)),l||(Me.onFocus=TE(Ce,Me.onFocus),Me.onBlur=TE(Se,Me.onBlur),oe||(Ne.onFocus=Ce,Ne.onBlur=Se));let Pe={...n,isRtl:M,arrow:r,disableInteractive:oe,placement:C,PopperComponentProp:w,touch:ae.current},Fe=typeof E.popper==`function`?E.popper(Pe):E.popper,Ie=I.useMemo(()=>{let e=[{name:`arrow`,enabled:!!re,options:{element:re,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}},[re,T.popperOptions,Fe?.popperOptions]),Le=vE(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:{...k,...Re??s.transition}}},[Be,Ve]=Jl(`popper`,{elementType:yE,externalForwardedProps:ze,ownerState:Pe,className:R(Le.popper,T?.className)}),[He,Ue]=Jl(`transition`,{elementType:hl,externalForwardedProps:ze,ownerState:Pe}),[We,Ge]=Jl(`tooltip`,{elementType:bE,className:Le.tooltip,externalForwardedProps:ze,ownerState:Pe}),[Ke,qe]=Jl(`arrow`,{elementType:xE,className:Le.arrow,externalForwardedProps:ze,ownerState:Pe,ref:ie});return(0,L.jsxs)(I.Fragment,{children:[I.cloneElement(j,Me),(0,L.jsx)(Be,{as:w??mE,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:wE.y,left:wE.x,right:wE.x,bottom:wE.y,width:0,height:0})}:ne,popperRef:Oe,open:ne?pe:!1,id:me,transition:!0,...Ne,...Ve,popperOptions:Ie,children:({TransitionProps:e})=>(0,L.jsx)(He,{timeout:te.transitions.duration.shorter,...e,...Ue,children:(0,L.jsxs)(We,{...Ge,children:[O,r?(0,L.jsx)(Ke,{...qe}):null]})})})]})}),DE={advanced:`Advanced Multi`,simple:`Simple`},OE=z(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`light`,`vertical`,`withChildren`,`withChildrenVertical`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),kE=z(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),AE=z(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]);function jE(e){return Qi(`MuiMenuItem`,e)}var ME=z(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);function NE(e){return Qi(`MuiNativeSelect`,e)}var PE=z(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]),FE=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return bo({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${yu(n)}`,a&&`iconOpen`,r&&`disabled`]},NE,t)},IE=V(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${PE.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:`filled`},style:{"&&&":{paddingRight:32}}},{props:{variant:`outlined`},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),LE=V(IE,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:Ps,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${PE.multiple}`]:t.multiple}]}})({}),RE=V(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${PE.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),zE=V(RE,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${yu(n.variant)}`],n.open&&t.iconOpen]}})({}),BE=I.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=FE(l);return(0,L.jsxs)(I.Fragment,{children:[(0,L.jsx)(LE,{ownerState:l,className:R(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,L.jsx)(zE,{as:a,ownerState:l,className:u.icon})]})});function VE(e){return Qi(`MuiSelect`,e)}var HE=z(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);function UE(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function WE(e){return e==null||typeof e==`string`&&!e.trim()}function GE(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var KE=I.createContext(null);function qE(){return I.useContext(KE)}var JE=KE.Provider,YE,XE=V(IE,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${HE.select}`]:t.select},{[`&.${HE.select}`]:t[n.variant]},{[`&.${HE.error}`]:t.error},{[`&.${HE.multiple}`]:t.multiple}]}})({[`&.${HE.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),ZE=V(RE,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${yu(n.variant)}`],n.open&&t.iconOpen]}})({}),QE=V(`input`,{shouldForwardProp:e=>Ns(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),$E=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return bo({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${yu(n)}`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},VE,t)},eD=I.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:_,name:v,onBlur:y,onChange:b,onClose:x,onFocus:S,onKeyDown:C,onMouseDown:w,onOpen:T,open:E,readOnly:D,renderValue:O,required:ee,SelectDisplayProps:k={},tabIndex:A,type:j,value:te,variant:M=`standard`,...ne}=e,[N,re]=ku({controlled:te,default:l,name:`Select`}),[ie,ae]=ku({controlled:E,default:c,name:`Select`}),oe=I.useRef(null),se=I.useRef(null),[ce,le]=I.useState(null),{current:ue}=I.useRef(E!=null),[de,fe]=I.useState(),[pe,me]=I.useState(null),he=dl(t,m),ge=I.useCallback(e=>{se.current=e,e&&le(e)},[]),_e=ce?.parentNode;I.useImperativeHandle(he,()=>({focus:()=>{se.current.focus()},node:oe.current,value:N}),[N]);let ve=ce!==null&&ie;I.useEffect(()=>{if(!ve||!_e||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{fe(_e.clientWidth)});return e.observe(_e),()=>{e.disconnect()}},[ve,_e,a]),I.useEffect(()=>{c&&ie&&ce&&!ue&&(fe(a?null:_e.clientWidth),se.current.focus())},[ce,a]),I.useEffect(()=>{i&&se.current.focus()},[i]),I.useEffect(()=>{if(!h)return;let e=Xc(se.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&se.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let ye=(e,t)=>{e?(me(UE(t)),T&&T(t)):(me(null),x&&x(t)),ue||(fe(a?null:_e.clientWidth),ae(e))},be=e=>{w?.(e),e.button===0&&(e.preventDefault(),se.current.focus(),ye(!0,e))},xe=e=>{ye(!1,e)},Se=I.Children.toArray(o),Ce=e=>{let t=Se.find(t=>t.props.value===e.target.value);t!==void 0&&(re(t.props.value),b&&b(e,t))},we=e=>t=>{let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(N)?N.slice():[];let t=N.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),N!==n&&(re(n),b)){let r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:v}}),b(i,e)}_||ye(!1,t)}},Te=e=>{D||([` `,`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),ye(!0,e)),C?.(e))},Ee=e=>{!ve&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:N,name:v}}),y(e))};delete ne[`aria-invalid`];let De,Oe,ke=[],Ae=!1;(bg({value:N})||d)&&(O?De=O(N):Ae=!0);let je=Se.map(e=>{if(!I.isValidElement(e))return null;let t;if(_){if(!Array.isArray(N))throw Error(et(2));t=N.some(t=>GE(t,e.props.value)),t&&Ae&&ke.push(e.props.children)}else t=GE(N,e.props.value),t&&Ae&&(Oe=e.props.children);return I.cloneElement(e,{"aria-selected":t?`true`:`false`,onClick:we(e),onKeyUp:t=>{t.key===` `&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:`option`,selected:t,value:void 0,"data-value":e.props.value})});Ae&&(De=_?ke.length===0?null:ke.reduce((e,t,n)=>(e.push(t),n<ke.length-1&&e.push(`, `),e),[]):Oe);let Me=de;!a&&ue&&ce&&(Me=_e.clientWidth);let Ne;Ne=A===void 0?u?null:0:A;let Pe=k.id||(v?`mui-component-select-${v}`:void 0),Fe={...e,variant:M,value:N,open:ve,error:f},Ie=$E(Fe),Le={...g.PaperProps,...typeof g.slotProps?.paper==`function`?g.slotProps.paper(Fe):g.slotProps?.paper},Re={...g.MenuListProps,...typeof g.slotProps?.list==`function`?g.slotProps.list(Fe):g.slotProps?.list},ze=Ka();return(0,L.jsxs)(I.Fragment,{children:[(0,L.jsx)(XE,{as:`div`,ref:ge,tabIndex:Ne,role:`combobox`,"aria-controls":ve?ze:void 0,"aria-disabled":u?`true`:void 0,"aria-expanded":ve?`true`:`false`,"aria-haspopup":`listbox`,"aria-label":r,"aria-labelledby":[h,Pe].filter(Boolean).join(` `)||void 0,"aria-describedby":n,"aria-required":ee?`true`:void 0,"aria-invalid":f?`true`:void 0,onKeyDown:Te,onMouseDown:u||D?null:be,onBlur:Ee,onFocus:S,...k,ownerState:Fe,className:R(k.className,Ie.select,s),id:Pe,children:WE(De)?YE||=(0,L.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``}):De}),(0,L.jsx)(QE,{"aria-invalid":f,value:Array.isArray(N)?N.join(`,`):N,name:v,ref:oe,"aria-hidden":!0,onChange:Ce,tabIndex:-1,disabled:u,className:Ie.nativeInput,autoFocus:i,required:ee,...ne,ownerState:Fe}),(0,L.jsx)(ZE,{as:p,className:Ie.icon,ownerState:Fe}),(0,L.jsx)(JE,{value:pe,children:(0,L.jsx)(f_,{id:`menu-${v||``}`,anchorEl:_e,open:ve,onClose:xe,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":h,role:`listbox`,"aria-multiselectable":_?`true`:void 0,disableListWrap:!0,id:ze,...Re},paper:{...Le,style:{minWidth:Me,...Le==null?null:Le.style}}},children:je})})]})}),tD=wu((0,L.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`);function nD(e){return parseInt(e,10)||0}var rD={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function iD(e){for(let t in e)return!1;return!0}function aD(e){return iD(e)||e.outerHeightStyle===0&&!e.overflowing}var oD=I.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=I.useRef(o!=null),l=I.useRef(null),u=ul(t,l),d=I.useRef(null),f=I.useRef(null),p=I.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=Zc(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
|
|
198
|
-
`&&(n.value+=` `);let o=a.boxSizing,s=
|
|
199
|
-
`),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,L.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...rD.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function sD(e){return Qi(`MuiInputBase`,e)}var cD=z(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputSizeSmall`,`inputMultiline`,`inputTypeSearch`,`inputAdornedStart`,`inputAdornedEnd`,`inputHiddenLabel`]),lD,uD=`mui-auto-fill`,dD=`mui-auto-fill-cancel`,fD=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${yu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},pD=(e,t)=>{let{ownerState:n}=e;return[t.input,n.size===`small`&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type===`search`&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},mD=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return bo({root:[`root`,`color${yu(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${yu(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,u&&`inputMultiline`,f===`small`&&`inputSizeSmall`,l&&`inputHiddenLabel`,p&&`inputAdornedStart`,a&&`inputAdornedEnd`,d&&`readOnly`]},sD,t)},hD=V(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:fD})(Hl(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${cD.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),gD=V(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:pD})(Hl(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:`inherit`,letterSpacing:`inherit`,color:`currentColor`,padding:`4px 0 5px`,border:0,boxSizing:`content-box`,background:`none`,height:`1.4375em`,margin:0,WebkitTapHighlightColor:`transparent`,display:`block`,minWidth:0,width:`100%`,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${cD.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${cD.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:dD,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:uD}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),_D=Gc({[`@keyframes ${uD}`]:{from:{animationName:uD}},[`@keyframes ${dD}`]:{from:{animationName:dD}}}),vD=I.forwardRef(function(e,t){let n=Kc({props:e,name:`MuiInputBase`}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:o,color:s,components:c={},componentsProps:l={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,error:m,fullWidth:h=!1,id:g,inputComponent:_=`input`,inputProps:v={},inputRef:y,margin:b,maxRows:x,minRows:S,multiline:C=!1,name:w,onBlur:T,onChange:E,onClick:D,onFocus:O,onKeyDown:ee,onKeyUp:k,placeholder:A,readOnly:j,renderSuffix:te,rows:M,size:ne,slotProps:N={},slots:re={},startAdornment:ie,type:ae=`text`,value:oe,...se}=n,ce=v.value==null?oe:v.value,{current:le}=I.useRef(ce!=null),ue=I.useRef(),de=I.useCallback(e=>{},[]),fe=dl(ue,y,v.ref,de),[pe,me]=I.useState(!1),he=cg(),ge=og({props:n,muiFormControl:he,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});ge.focused=he?he.focused:pe,I.useEffect(()=>{!he&&d&&pe&&(me(!1),T&&T())},[he,d,pe,T]);let _e=he&&he.onFilled,ve=he&&he.onEmpty,ye=I.useCallback(e=>{bg(e)?_e&&_e():ve&&ve()},[_e,ve]);Eu(()=>{le&&ye({value:ce})},[ce,ye,le]),Eu(()=>{if(!a)return;let e=ue.current;if(!e)return;let t=Xc(e),n=kl(t),r=n==null||n===t.body||n===t.documentElement;e===n?he&&he.onFocus?he.onFocus():me(!0):r&&e.focus()},[a]);let be=e=>{O&&O(e),v.onFocus&&v.onFocus(e),he&&he.onFocus?he.onFocus(e):me(!0)},xe=e=>{T&&T(e),v.onBlur&&v.onBlur(e),he&&he.onBlur?he.onBlur(e):me(!1)},Se=(e,...t)=>{if(!le){let t=e.target||ue.current;if(t==null)throw Error(et(1));ye({value:t.value})}v.onChange&&v.onChange(e,...t),E&&E(e,...t)};I.useEffect(()=>{ye(ue.current)},[]);let Ce=e=>{ue.current&&e.currentTarget===e.target&&ue.current.focus(),D&&D(e)},we=_,Te=v;C&&we===`input`&&(Te=M?{type:void 0,minRows:M,maxRows:M,...Te}:{type:void 0,maxRows:x,minRows:S,...Te},we=oD);let Ee=e=>{ye(e.animationName===dD?ue.current:{value:`x`})};I.useEffect(()=>{he&&he.setAdornedStart(!!ie)},[he,ie]);let De={...n,color:ge.color||`primary`,disabled:ge.disabled,endAdornment:p,error:ge.error,focused:ge.focused,formControl:he,fullWidth:h,hiddenLabel:ge.hiddenLabel,multiline:C,size:ge.size,startAdornment:ie,type:ae},Oe=mD(De),ke=re.root||c.Root||hD,Ae=N.root||l.root||{},je=re.input||c.Input||gD;return Te={...Te,...N.input??l.input},(0,L.jsxs)(I.Fragment,{children:[!f&&typeof _D==`function`&&(lD||=(0,L.jsx)(_D,{})),(0,L.jsxs)(ke,{...Ae,ref:t,onClick:Ce,...se,...!Uc(ke)&&{ownerState:{...De,...Ae.ownerState}},className:R(Oe.root,Ae.className,o,j&&`MuiInputBase-readOnly`),children:[ie,(0,L.jsx)(sg.Provider,{value:null,children:(0,L.jsx)(je,{"aria-invalid":ge.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:u,disabled:ge.disabled,id:g,onAnimationStart:Ee,name:w,placeholder:A,readOnly:j,required:ge.required,rows:M,value:ce,onKeyDown:ee,onKeyUp:k,type:ae,...Te,...!Uc(je)&&{as:we,ownerState:{...De,...Te.ownerState}},ref:fe,className:R(Oe.input,Te.className,j&&`MuiInputBase-readOnly`),onBlur:xe,onChange:Se,onFocus:be})}),p,te?te({...ge,startAdornment:ie}):null]})]})});function yD(e){return Qi(`MuiInput`,e)}var bD={...cD,...z(`MuiInput`,[`root`,`underline`,`input`])},xD=e=>{let{classes:t,disableUnderline:n}=e,r=bo({root:[`root`,!n&&`underline`],input:[`input`]},yD,t);return{...t,...r}},SD=V(hD,{shouldForwardProp:e=>Ps(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...fD(e,t),!n.disableUnderline&&t.underline]}})(Hl(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${bD.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${bD.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${bD.disabled}, .${bD.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${bD.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Sh()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),CD=V(gD,{name:`MuiInput`,slot:`Input`,overridesResolver:pD})({}),wD=I.forwardRef(function(e,t){let n=Kc({props:e,name:`MuiInput`}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:o=!1,inputComponent:s=`input`,multiline:c=!1,slotProps:l,slots:u={},type:d=`text`,...f}=n,p=xD(n),m={root:{ownerState:{disableUnderline:r}}},h=l??a?Tr(l??a,m):m;return(0,L.jsx)(vD,{slots:{root:u.root??i.Root??SD,input:u.input??i.Input??CD},slotProps:h,fullWidth:o,inputComponent:s,multiline:c,ref:t,type:d,...f,classes:p})});wD.muiName=`Input`;function TD(e){return Qi(`MuiFilledInput`,e)}var ED={...cD,...z(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])},DD=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=bo({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${yu(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},TD,t);return{...t,...c}},OD=V(hD,{shouldForwardProp:e=>Ps(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...fD(e,t),!n.disableUnderline&&t.underline]}})(Hl(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ED.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ED.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${ED.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${ED.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${ED.disabled}, .${ED.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ED.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Sh()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),kD=V(gD,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:pD})(Hl(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`},[e.getColorSchemeSelector(`dark`)]:{"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`}}},variants:[{props:{size:`small`},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),AD=I.forwardRef(function(e,t){let n=Kc({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:o=!1,hiddenLabel:s,inputComponent:c=`input`,multiline:l=!1,slotProps:u,slots:d={},type:f=`text`,...p}=n,m={...n,disableUnderline:r,fullWidth:o,inputComponent:c,multiline:l,type:f},h=DD(n),g={root:{ownerState:m},input:{ownerState:m}},_=u??a?Tr(g,u??a):g;return(0,L.jsx)(vD,{slots:{root:d.root??i.Root??OD,input:d.input??i.Input??kD},slotProps:_,fullWidth:o,inputComponent:c,multiline:l,ref:t,type:f,...p,classes:h})});AD.muiName=`Input`;var jD,MD=V(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:Ps})({textAlign:`left`,position:`absolute`,bottom:0,right:0,top:-5,left:0,margin:0,padding:`0 8px`,pointerEvents:`none`,borderRadius:`inherit`,borderStyle:`solid`,borderWidth:1,overflow:`hidden`,minWidth:`0%`}),ND=V(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:Ps})(Hl(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,transition:e.transitions.create(`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,transition:e.transitions.create(`max-width`,{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:`nowrap`,"& > span":{paddingLeft:5,paddingRight:5,display:`inline-block`,opacity:0,visibility:`visible`}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:`100%`,transition:e.transitions.create(`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function PD(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,L.jsx)(MD,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,L.jsx)(ND,{ownerState:c,children:s?(0,L.jsx)(`span`,{children:i}):jD||=(0,L.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``})})})}function FD(e){return Qi(`MuiOutlinedInput`,e)}var ID={...cD,...z(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])},LD=e=>{let{classes:t}=e,n=bo({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},FD,t);return{...t,...n}},RD=V(hD,{shouldForwardProp:e=>Ps(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:fD})(Hl(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ID.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ID.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ID.focused} .${ID.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Sh()).map(([t])=>({props:{color:t},style:{[`&.${ID.focused} .${ID.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ID.error} .${ID.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ID.disabled} .${ID.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),zD=V(PD,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(Hl(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),BD=V(gD,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:pD})(Hl(({theme:e})=>({padding:`16.5px 14px`,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderRadius:`inherit`},[e.getColorSchemeSelector(`dark`)]:{"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`}}},variants:[{props:{size:`small`},style:{padding:`8.5px 14px`}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),VD=I.forwardRef(function(e,t){let n=Kc({props:e,name:`MuiOutlinedInput`}),{components:r={},fullWidth:i=!1,inputComponent:a=`input`,label:o,multiline:s=!1,notched:c,slots:l={},slotProps:u={},type:d=`text`,...f}=n,p=LD(n),m=cg(),h=og({props:n,muiFormControl:m,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),g={...n,color:h.color||`primary`,disabled:h.disabled,error:h.error,focused:h.focused,formControl:m,fullWidth:i,hiddenLabel:h.hiddenLabel,multiline:s,size:h.size,type:d},_=l.root??r.Root??RD,v=l.input??r.Input??BD,[y,b]=Jl(`notchedOutline`,{elementType:zD,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:l,slotProps:u},additionalProps:{label:o!=null&&o!==``&&h.required?(0,L.jsxs)(I.Fragment,{children:[o,` `,`*`]}):o}});return(0,L.jsx)(vD,{slots:{root:_,input:v},slotProps:u,renderSuffix:e=>(0,L.jsx)(y,{...b,notched:c===void 0?!!(e.startAdornment||e.filled||e.focused):c}),fullWidth:i,inputComponent:a,multiline:s,ref:t,type:d,...f,classes:{...p,notchedOutline:null}})});VD.muiName=`Input`;var HD=e=>{let{classes:t}=e,n=bo({root:[`root`]},VE,t);return{...t,...n}},UD={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>Ps(e)&&e!==`variant`},WD=V(wD,UD)(``),GD=V(VD,UD)(``),KD=V(AD,UD)(``),qD=I.forwardRef(function(e,t){let n=Kc({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=tD,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:g=!1,native:_=!1,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:S,variant:C=`outlined`,...w}=n,T=_?BE:eD,E=og({props:n,muiFormControl:cg(),states:[`variant`,`error`]}),D=E.variant||C,O={...n,variant:D,classes:a},ee=HD(O),{root:k,...A}=ee,j=d||{standard:(0,L.jsx)(WD,{ownerState:O}),outlined:(0,L.jsx)(GD,{label:p,ownerState:O}),filled:(0,L.jsx)(KD,{ownerState:O})}[D],te=dl(t,al(j));return(0,L.jsx)(I.Fragment,{children:I.cloneElement(j,{inputComponent:T,inputProps:{children:i,error:E.error,IconComponent:l,variant:D,type:void 0,multiple:g,..._?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:{id:u,...S}},...f,classes:f?Tr(A,f.classes):A,...d?d.props.inputProps:{}},...(g&&_||c)&&D===`outlined`?{notched:!0}:{},ref:te,className:R(j.props.className,o,ee.root),...!d&&{variant:D},...w})})});qD.muiName=`Select`;function JD(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}var YD=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},XD=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=bo({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},jE,o);return{...o,...s}},ZD=V(vh,{shouldForwardProp:e=>Ps(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:YD})(Hl(({theme:e})=>({...e.typography.body1,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:`border-box`,whiteSpace:`nowrap`,"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${ME.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${ME.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${ME.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${ME.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ME.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${OE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${OE.inset}`]:{marginLeft:52},[`& .${AE.root}`]:{marginTop:0,marginBottom:0},[`& .${AE.inset}`]:{paddingLeft:36},[`& .${kE.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${kE.root} svg`]:{fontSize:`1.25rem`}}}]}))),QD=I.forwardRef(function(e,t){let n=Kc({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=qE(),m=I.useContext(Jg),h=I.useMemo(()=>({dense:a||m.dense||!1,disableGutters:s}),[m.dense,a,s]),g=I.useRef(null);Eu(()=>{r&&g.current&&JD(g.current,p)},[r]);let _={...n,dense:h.dense,divider:o,disableGutters:s},v=XD(n),y=dl(g,t),{root:b,...x}=v,S;return n.disabled||(S=u===void 0?-1:u),(0,L.jsx)(Jg.Provider,{value:h,children:(0,L.jsx)(ZD,{ref:y,role:l,tabIndex:S,component:i,focusVisibleClassName:R(v.focusVisible,c),className:R(v.root,d),...f,ownerState:_,classes:x})})}),$D=()=>{document.querySelectorAll(`.mq-supsub.mq-sup-only`).forEach(e=>{let t=e.previousElementSibling;t&&t.classList.contains(`mq-non-leaf`)&&t.querySelector(`.mq-fraction`)?e.classList.add(`mq-after-fraction-group`):e.classList.remove(`mq-after-fraction-group`)})},{commonMqFontStyles:eO,commonMqKeyboardStyles:tO,longdivStyles:nO,supsubStyles:rO}=BC,iO=v(`@pie-lib:math-toolbar:editor-and-pad`),aO=/\.|,/g,oO=V(`div`)(({theme:e})=>({zIndex:9,position:`relative`,textAlign:`center`,width:`auto`,"& > .mq-math-mode":{border:`solid 1px lightgrey`},"& > .mq-focused":{outline:`none`,boxShadow:`none`,border:`dotted 1px ${e.palette.primary.main}`,borderRadius:`0px`},"& .mq-overarrow-inner":{border:`none !important`,paddingTop:`0 !important`},"& .mq-overarrow-inner-right":{display:`none !important`},"& .mq-overarrow-inner-left":{display:`none !important`},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-overarrow.mq-arrow-both":{top:`7.8px`,marginTop:`0px`,minWidth:`1.23em`},"& .mq-parallelogram":{lineHeight:.85}})),sO=V(`div`)(({theme:e,hide:t})=>({display:t?`none`:`flex`,alignItems:`center`,"& .mq-editable-field .mq-cursor":{top:`-4px`},"& .mq-math-mode .mq-selection, .mq-editable-field .mq-selection":{paddingTop:`18px`},"& .mq-math-mode .mq-overarrow":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`},"& .mq-math-mode .mq-overline .mq-overline-inner":{paddingTop:`0.4em !important`},"& .mq-overarrow.mq-arrow-both":{minWidth:`1.23em`,"& *":{lineHeight:`1 !important`},"&:before":{top:`-0.45em`,left:`-1px`},"&:after":{position:`absolute !important`,top:`0px !important`,right:`-2px`},"&.mq-empty:after":{top:`-0.45em`}},"& .mq-overarrow.mq-arrow-right":{"&:before":{top:`-0.4em`,right:`-1px`}},"& *":{...eO,...rO,...nO,"& .mq-math-mode .mq-sqrt-prefix":{verticalAlign:`baseline !important`,top:`1px !important`,left:`-0.1em !important`},"& .mq-math-mode .mq-overarc ":{paddingTop:`0.45em !important`},"& .mq-math-mode .mq-empty":{padding:`9px 1px !important`},"& .mq-math-mode .mq-root-block":{paddingTop:`10px`},"& .mq-scaled .mq-sqrt-prefix":{top:`0 !important`},"& .mq-math-mode .mq-longdiv .mq-longdiv-inner":{marginLeft:`4px !important`,paddingTop:`6px !important`,paddingLeft:`6px !important`},"& .mq-math-mode .mq-paren":{verticalAlign:`top !important`,padding:`1px 0.1em !important`},"& .mq-math-mode .mq-sqrt-stem":{borderTop:`0.07em solid`,marginLeft:`-1.5px`,marginTop:`-2px !important`,paddingTop:`5px !important`},"& .mq-math-mode .mq-denominator":{marginTop:`-5px !important`,padding:`0.5em 0.1em 0.1em !important`},"& .mq-math-mode .mq-numerator, .mq-math-mode .mq-over":{padding:`0 0.1em !important`,paddingBottom:`0 !important`,marginBottom:`-2px`}},'& span[data-prime="true"]':{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}})),cO=V(Tg)({flex:`initial`,width:`25%`,minWidth:`100px`,marginLeft:`15px`,marginTop:`5px`,marginBottom:`5px`,marginRight:`5px`,"& label":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`},"& div":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}),lO=V(vg)(()=>({backgroundColor:`transparent`})),uO=V(`div`)(({theme:e,error:t})=>({minWidth:`500px`,maxWidth:`900px`,minHeight:`30px`,width:`100%`,display:`flex`,marginTop:e.spacing(1),marginBottom:e.spacing(1),...t&&{border:`2px solid red`},"& .mq-sqrt-prefix .mq-scaled":{verticalAlign:`middle !important`}})),dO=V(UC)(({controlledKeypadMode:e})=>({maxWidth:e?`400px`:`500px`,color:Gu(),backgroundColor:pd(),padding:`2px`})),fO=V(Kh)({position:`absolute`,right:`12px`,border:`1px solid lightgrey`,color:Gu()}),pO=V(`hr`)(({theme:e})=>({padding:0,margin:0,height:`1px`,border:`none`,borderBottom:`solid 1px ${e.palette.primary.main}`})),mO=V(dw)(({mode:e})=>({...tO,...e===`language`&&{"& *":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}})),hO=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}},gO=class extends I.Component{static propTypes={classNames:P.object,keypadMode:P.oneOfType([P.string,P.number]),autoFocus:P.bool,allowAnswerBlock:P.bool,showKeypad:P.bool,controlledKeypad:P.bool,controlledKeypadMode:P.bool,error:P.string,noDecimal:P.bool,hideInput:P.bool,noLatexHandling:P.bool,layoutForKeyPad:P.object,maxResponseAreas:P.number,additionalKeys:P.array,latex:P.string.isRequired,onAnswerBlockAdd:P.func,onFocus:P.func,onBlur:P.func,onChange:P.func.isRequired,setKeypadInteraction:P.func};constructor(e){super(e),this.state={equationEditor:`item-authoring`,addDisabled:!1}}componentDidMount(){this.input&&this.props.autoFocus&&(this.focusTimeout=setTimeout(()=>{this.focusTimeout=void 0,this.input?.focus()},0))}componentWillUnmount(){this.focusTimeout&&clearTimeout(this.focusTimeout)}onClick=e=>{let{noDecimal:t,noLatexHandling:n,onChange:r}=this.props,i=hO(e);if(iO(`mathChange: `,i),n){r(i.value);return}t&&(i.value===`.`||i.value===`,`)||i&&(i.type===`clear`?(iO(`call clear...`),this.input.clear()):i.type===`command`?this.input.command(i.value):i.type===`cursor`?this.input.keystroke(i.value):i.type===`answer`?this.input.write(`%response%`):this.input.write(i.value))};updateDisable=e=>{let{maxResponseAreas:t}=this.props;if(t){let n=this.checkResponseAreasNumber(t,e);this.setState({addDisabled:n})}};onAnswerBlockClick=()=>{this.props.onAnswerBlockAdd(),this.onClick({type:`answer`}),this.updateDisable(!0)};onEditorChange=e=>{let{onChange:t,noDecimal:n}=this.props;if(bx(),$D(),this.updateDisable(!0),n&&(e.indexOf(`.`)!==-1||e.indexOf(`,`)!==-1)&&this.input){this.input.clear(),this.input.write(e.replace(aO,``));return}let r=e.match(/[0-9]\\ \\frac\{[^\{]*\}\{ \}/);if(this.input&&r&&r?.length){try{this.input.mathField.__controller.cursor.insLeftOf(this.input.mathField.__controller.cursor.parent[-1].parent),this.input.mathField.el().dispatchEvent(new KeyboardEvent(`keydown`,{keyCode:8}))}catch(e){console.error(e.toString())}return}t(e)};shouldComponentUpdate(e,t){let n=this.input.mathField.latex()!==e.latex;return iO(`[shouldComponentUpdate] `,`inputIsDifferent: `,n),!sy(this.props.error,e.error)||!n&&this.props.keypadMode!==e.keypadMode||!n&&this.props.noDecimal!==e.noDecimal||!n&&this.state.equationEditor!==t.equationEditor?!0:!n&&this.props.controlledKeypad?this.props.showKeypad!==e.showKeypad:n}onEditorTypeChange=e=>{this.setState({equationEditor:e.target.value})};checkResponseAreasNumber=(e,t)=>{let{latex:n}=this.input&&this.input.props||{};if(n){let r=(n.match(/answerBlock/g)||[]).length;return t?r===e-1:r===e}return!1};render(){let{classNames:e,keypadMode:t,allowAnswerBlock:n,additionalKeys:r,controlledKeypad:i,controlledKeypadMode:a,showKeypad:o,setKeypadInteraction:s,noDecimal:c,hideInput:l,layoutForKeyPad:u,latex:d,onFocus:f,onBlur:p,error:m}=this.props,h=!i||i&&o,{addDisabled:g}=this.state;return iO(`[render]`,d),(0,L.jsxs)(oO,{className:e.mathToolbar,children:[(0,L.jsxs)(sO,{hide:l,children:[a&&(0,L.jsxs)(cO,{variant:`standard`,children:[(0,L.jsx)(lO,{id:`equation-editor-label`,children:`Equation Editor`}),(0,L.jsxs)(qD,{labelId:`equation-editor-label`,id:`equation-editor-select`,name:`equationEditor`,label:`Equation Editor`,onChange:this.onEditorTypeChange,value:this.state.equationEditor,MenuProps:{transitionDuration:{enter:225,exit:195}},children:[(0,L.jsx)(QD,{value:`non-negative-integers`,children:`Numeric - Non-Negative Integers`}),(0,L.jsx)(QD,{value:`integers`,children:`Numeric - Integers`}),(0,L.jsx)(QD,{value:`decimals`,children:`Numeric - Decimals`}),(0,L.jsx)(QD,{value:`fractions`,children:`Numeric - Fractions`}),(0,L.jsx)(QD,{value:1,children:`Grade 1 - 2`}),(0,L.jsx)(QD,{value:3,children:`Grade 3 - 5`}),(0,L.jsx)(QD,{value:6,children:`Grade 6 - 7`}),(0,L.jsx)(QD,{value:8,children:`Grade 8 - HS`}),(0,L.jsx)(QD,{value:`geometry`,children:`Geometry`}),(0,L.jsx)(QD,{value:`advanced-algebra`,children:`Advanced Algebra`}),(0,L.jsx)(QD,{value:`statistics`,children:`Statistics`}),(0,L.jsx)(QD,{value:`item-authoring`,children:`Item Authoring`})]})]}),(0,L.jsx)(uO,{error:m,children:(0,L.jsx)(dO,{onFocus:()=>{f&&f(),this.updateDisable(!1)},onBlur:e=>{this.updateDisable(!1),p&&p(e)},className:e&&e.editor||``,controlledKeypadMode:a,ref:e=>this.input=e,latex:d,onChange:this.onEditorChange})})]}),n&&(0,L.jsx)(fO,{type:`primary`,style:{bottom:h?`320px`:`20px`},onClick:this.onAnswerBlockClick,disabled:g,children:`+ Response Area`}),(0,L.jsx)(pO,{}),h&&(0,L.jsx)(mO,{mode:a?this.state.equationEditor:t,controlledKeypadMode:a,layoutForKeyPad:u,additionalKeys:r,onClick:this.onClick,noDecimal:c,setKeypadInteraction:s})]})}},_O=wu((0,L.jsx)(`path`,{d:`M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`}),`Check`),vO=V(zx)(({hideBackground:e})=>({verticalAlign:`top`,width:`28px`,height:`28px`,color:Qu(),...e&&{backgroundColor:Wu(`pie`)(`background`,U.WHITE),"&:hover":{backgroundColor:md()}},"& .MuiIconButton-label":{position:`absolute`,top:`2px`}})),yO=({onClick:e,hideBackground:t})=>(0,L.jsx)(vO,{"aria-label":`Done`,onClick:e,hideBackground:t,size:`large`,children:(0,L.jsx)(_O,{})});yO.propTypes={onClick:P.func,hideBackground:P.bool};var bO=yO,xO=V(`div`)({display:`flex`,width:`100%`,zIndex:8,alignItems:`center`}),SO=class extends I.Component{static propTypes={autoFocus:P.bool,allowAnswerBlock:P.bool,controlledKeypad:P.bool,controlledKeypadMode:P.bool,keypadMode:P.oneOfType([P.string,P.number]),classNames:P.object,error:P.string,maxResponseAreas:P.number,showKeypad:P.bool,noDecimal:P.bool,additionalKeys:P.array,latex:P.string.isRequired,onAnswerBlockAdd:P.func,onChange:P.func,onDone:P.func.isRequired,onFocus:P.func,onBlur:P.func,hideDoneButton:P.bool,keyPadCharacterRef:P.func,setKeypadInteraction:P.func};static defaultProps={classNames:{},keypadMode:`item-authoring`,autoFocus:!1,allowAnswerBlock:!1,controlledKeypad:!1,controlledKeypadMode:!1,noDecimal:!1,showKeypad:!0,additionalKeys:[],onChange:()=>{},onAnswerBlockAdd:()=>{},onFocus:()=>{},hideDoneButton:!1};constructor(e){super(e),this.state={latex:e.latex}}done=()=>{this.props.onDone(this.state.latex)};UNSAFE_componentWillReceiveProps(e){this.setState({latex:e.latex})}onChange=e=>{this.setState({latex:e}),this.props.onChange(e)};render(){let{latex:e}=this.state,{classNames:t,autoFocus:n,allowAnswerBlock:r,onAnswerBlockAdd:i,controlledKeypad:a,controlledKeypadMode:o,keypadMode:s,noDecimal:c,additionalKeys:l,showKeypad:u,onFocus:d,onBlur:f,hideDoneButton:p,error:m,keyPadCharacterRef:h,setKeypadInteraction:g,maxResponseAreas:_}=this.props;return(0,L.jsx)(CO,{autoFocus:n,classNames:t,onAnswerBlockAdd:i,allowAnswerBlock:r,latex:e,additionalKeys:l,noDecimal:c,keypadMode:s,keyPadCharacterRef:h,setKeypadInteraction:g,onChange:this.onChange,onDone:this.done,onFocus:d,onBlur:f,showKeypad:u,controlledKeypad:a,controlledKeypadMode:o,hideDoneButton:p,error:m,maxResponseAreas:_})}},CO=class extends I.Component{static propTypes={classNames:P.object,latex:P.string.isRequired,keypadMode:P.oneOfType([P.string,P.number]),hideInput:P.bool,noLatexHandling:P.bool,layoutForKeyPad:P.object,onChange:P.func.isRequired,onDone:P.func.isRequired,onBlur:P.func,onAnswerBlockAdd:P.func,additionalKeys:P.array,onFocus:P.func,autoFocus:P.bool,noDecimal:P.bool,allowAnswerBlock:P.bool,controlledKeypad:P.bool,controlledKeypadMode:P.bool,showKeypad:P.bool,hideDoneButton:P.bool,hideDoneButtonBackground:P.bool,error:P.any,maxResponseAreas:P.number,keyPadCharacterRef:P.object,setKeypadInteraction:P.func};static defaultProps={classNames:{},hideDoneButtonBackground:!1};render(){let{classNames:e,autoFocus:t,allowAnswerBlock:n,onAnswerBlockAdd:r,controlledKeypad:i,controlledKeypadMode:a,additionalKeys:o,showKeypad:s,keypadMode:c,noDecimal:l,hideInput:u,noLatexHandling:d,layoutForKeyPad:f,keyPadCharacterRef:p,setKeypadInteraction:m,latex:h,onChange:g,onDone:_,onFocus:v,onBlur:y,hideDoneButton:b,hideDoneButtonBackground:x,error:S,maxResponseAreas:C}=this.props;return(0,L.jsxs)(xO,{className:e&&e.toolbar||``,ref:p,children:[(0,L.jsx)(`div`,{}),(0,L.jsx)(gO,{autoFocus:t,keypadMode:c,classNames:e||{},controlledKeypad:i,controlledKeypadMode:a,noDecimal:l,hideInput:u,noLatexHandling:d,layoutForKeyPad:f,showKeypad:s,additionalKeys:o,allowAnswerBlock:n,onAnswerBlockAdd:r,latex:h,onChange:g,onFocus:v,onBlur:y,error:S,maxResponseAreas:C,setKeypadInteraction:m}),(!i||i&&s)&&!b&&(0,L.jsx)(bO,{hideBackground:x,onClick:_})]})}},wO=V(`div`)(({theme:e})=>({marginTop:e.spacing(2),marginBottom:e.spacing(2),padding:e.spacing(1)})),TO=V(`div`,{shouldForwardProp:e=>![`isCorrect`,`isIncorrect`].includes(e)})(({theme:e,isCorrect:t,isIncorrect:n})=>({color:Gu(),background:pd(),border:t?`2px solid ${Yu()} !important`:n?`2px solid ${$u()} !important`:`1px solid ${ad()}`,width:`fit-content`,fontSize:`1rem`,padding:t||n?e.spacing(1):e.spacing(.5),letterSpacing:t||n?`0.5px`:`normal`,"& > .mq-math-mode":{"& > .mq-hasCursor":{"& > .mq-cursor":{display:`none`}}}}));if(typeof document<`u`){let e=`math-inline-simple-question-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`)},tw(),nw},nw.getInterface=aw;var rw=aw.MIN=1,iw=aw.MAX=3;function aw(e){if(!(rw<=e&&e<=iw))throw`Only interface versions between `+rw+` and `+iw+` 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=DC(e).children(`.mq-root-block`).attr(jC),r=t&&HC.byId[t].controller;return r?n[r.KIND_OF_MQ](r):null}var n={};t.L=Y,t.R=X,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=QC[r];e[r]=a?a(i):i}}t.config=function(e){return r(ZC.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`;ew[e]=t};var i=n.AbstractMathQuill=J($C,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=DC(`<span class="mq-root-block"/>`).attr(jC,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=J(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[Y]=e.ends[X]=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=Z[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[Y];)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(Y)},e.moveToRightEnd=function(){return this.moveToDirEnd(X)},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:PC});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-DC(window).scrollLeft(),i=t-DC(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(DC(a),e,t),uT().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 OC.contains(i.jQ[0],n)||(n=i.jQ[0]),r.seek(DC(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,XC)(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=YC(a.RootBlock(),DC(n),ZC());return s.KIND_OF_MQ=r,a(s).__mathquillify(i,e)},t[r].prototype=a.prototype})(a,XC[a]);return t}nw.noConflict=function(){return window.MathQuill=ow,nw};var ow=window.MathQuill;window.MathQuill=nw;function sw(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 cw=J(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){zC(`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 zC(`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){zC(`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=OC(e),o=OC(n.container||a),s=PC,c;function l(e){s=e,clearTimeout(c),c=setTimeout(e)}function u(e){l(function(t){s=PC,clearTimeout(c),e(t)})}o.bind(`keydown keypress input keyup focusout paste`,function(e){s(e)});function d(e){s(),s=PC,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}}}();YC.open(function(e,t){e.exportText=function(){return this.root.foldChildren(``,function(e,t){return e+t.text()})}}),YC.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()}),DC(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`),DC(window).unbind(`blur`,i)}e.blurred=!0,n.hide().parent.blur()}}),YC.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),HC.open(function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case`Ctrl-Shift-Backspace`:case`Ctrl-Backspace`:n.ctrlDeleteDir(Y);break;case`Shift-Backspace`:case`Backspace`:n.backspace();break;case`Esc`:case`Tab`:n.escapeDir(X,e,t);return;case`Shift-Tab`:case`Shift-Esc`:n.escapeDir(Y,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[X];)n.selectRight();break;case`Ctrl-Shift-End`:for(;r[X]||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[Y];)n.selectLeft();break;case`Ctrl-Shift-Home`:for(;r[Y]||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[Y])for(;r[Y];)n.selectLeft();else n.selectLeft();case`Shift-Down`:if(r[X])for(;r[X];)n.selectRight();else n.selectRight();case`Ctrl-Up`:break;case`Ctrl-Down`:break;case`Ctrl-Shift-Del`:case`Ctrl-Del`:n.ctrlDeleteDir(X);break;case`Shift-Del`:case`Del`:n.deleteForward();break;case`Meta-A`:case`Ctrl-A`:for(n.notify(`move`).cursor.insAtRightEnd(n.root);r[Y];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){zC(`overridden or never called on this node`)}}),YC.open(function(e){this.onNotify(function(e){(e===`move`||e===`upDown`)&&this.show().clearSelection()}),e.escapeDir=function(e,t,n){BC(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`)},QC.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){BC(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(Y)},e.moveRight=function(){return this.moveDir(X)},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[X][r]?n.insAtLeftEnd(n[X][r]):n[Y][r]?n.insAtRightEnd(n[Y][r]):n.parent.bubble(function(e){var t=e[i];if(t&&(typeof t==`function`&&(t=e[i](n)),t instanceof HC&&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){BC(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[Y].siblingDeleted&&t[Y].siblingDeleted(t.options,X),t[X].siblingDeleted&&t[X].siblingDeleted(t.options,Y),t.parent.bubble(`reflow`),this},e.ctrlDeleteDir=function(e){BC(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify(`edit`),e===Y?WC(t.parent.ends[Y],t[Y]).remove():WC(t[X],t.parent.ends[X]).remove(),t.insAtDirEnd(e,t.parent),t[Y].siblingDeleted&&t[Y].siblingDeleted(t.options,X),t[X].siblingDeleted&&t[X].siblingDeleted(t.options,Y),t.parent.bubble(`reflow`),this)},e.backspace=function(){return this.deleteDir(Y)},e.deleteForward=function(){return this.deleteDir(X)},this.onNotify(function(e){e!==`select`&&this.endSelection()}),e.selectDir=function(e){var t=this.notify(`select`).cursor,n=t.selection;BC(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(Y)},e.selectRight=function(){return this.selectDir(X)}});var uw=/[\\]{2,}/gm,dw=(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[X],0);return t}var n=cw.string,r=cw.regex,i=cw.letter,a=cw.any,o=cw.optWhitespace,s=cw.succeed,c=cw.fail,l=i.map(function(e){return ww(e)}),u=r(/^[^${}\\_^]/).map(function(e){return Q(e)}),d=r(/^\\not\\[a-z]+/).then(function(e){return KC[e]&&KC[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=Z[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})();YC.open(function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,`$1`)},e.parseLatex=function(e){return dw.parse(e).postOrder(`finalizeTree`,ZC.p).join(`latex`).trim()},QC.maxDepth=function(e){return typeof e==`number`?e:kC},e.writeLatex=function(e){var t=this.notify(`edit`).cursor,n=cw.all,r=cw.eof,i=dw.skip(r).or(n.result(!1)).parse(e);return i&&!i.isEmpty()&&i.prepareInsertionAt(t)&&(i.children().adopt(t.parent,t[Y],t[X]),i.jQize().insertBefore(t.jQ),t[Y]=i.ends[X],i.finalizeInsert(t.options,t),i.ends[X][X].siblingCreated&&i.ends[X][X].siblingCreated(t.options,Y),i.ends[Y][Y].siblingCreated&&i.ends[Y][Y].siblingCreated(t.options,X),t.parent.bubble(`reflow`)),this},e.renderLatexMath=function(e){e&&e.replace&&(e=e.replace(uw,`\\`));var t=this.root,n=this.cursor;n.options;var r=t.jQ,i=cw.all,a=cw.eof,o=dw.skip(a).or(i.result(!1)).parse(e);if(t.eachChild(`postOrder`,`dispose`),t.ends[Y]=t.ends[X]=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[Y]=t.ends[X]=0,delete n.selection,n.show().insAtRightEnd(t);var r=cw.regex,i=cw.string,a=cw.eof,o=cw.all,s=i(`$`).then(dw).skip(i(`$`).or(a)).map(function(e){var t=bw(n);t.createBlocks();var r=t.ends[Y];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[X],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}}),YC.open(function(e){ZC.p.ignoreNextMousedown=PC,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind(`mousedown.mathquill`,function(t){var n=DC(t.target).closest(`.mq-root-block`),r=HC.byId[n.attr(jC)||e.attr(jC)].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=PC;function s(e){i.anticursor||i.startSelection(),r.seek(DC(e.target),e.pageX,e.pageY).cursor.select(),e.target&&DC(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),DC(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(DC(t.target),t.pageX,t.pageY).cursor.startSelection(),n.mousemove(s),DC(t.target.ownerDocument).mousemove(c).mouseup(l)})}}),YC.open(function(e){e.seek=function(e,t,n){var r=this.notify(`select`).cursor;if(e){var i=e.attr(jC)||e.attr(AC);if(!i){var a=e.parent();i=a.attr(jC)||a.attr(AC)}}var o=i&&HC.byId[i]?HC.byId[i]:this.root;return r.clearSelection().show(),o.seek(t,r),this.scrollHoriz(),this}}),YC.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[Y]===e[X])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)}}),YC.open(function(e){ZC.p.substituteTextarea=function(){return DC(`<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />`)[0]},e.createTextarea=function(){var e=this.textareaSpan=DC(`<span class="mq-textarea"></span>`),t=this.options.substituteTextarea();if(!t.nodeType)throw`substituteTextarea() must return a DOM element, got `+t;t=this.textarea=DC(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;Rw(e.container[0]),e.textareaSelectionTimeout===kC&&(e.textareaSelectionTimeout=setTimeout(function(){e.setTextareaSelection()}))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=kC;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(OC(`<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()}},ZC.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===`
|
|
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 fw=J(HC,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[X].siblingCreated&&n[X].siblingCreated(e,Y),n[Y].siblingCreated&&n[Y].siblingCreated(e,X),n.bubble(`reflow`)},e.prepareInsertionAt=function(e){var t=e.options.maxDepth;if(t!==kC){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()})}}),pw=J(fw,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=dw.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[X],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[Y],0,0),r.jQ.appendTo(n.ends[Y].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[X],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[Y],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 JC(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[Y]=e.jQ.offset().left,t[X]=t[Y]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[Y])return t.insLeftOf(r);if(e>i[X])return t.insRightOf(r);var a=i[Y];r.eachChild(function(o){var s=n(o);if(e<s[Y])return e-a<s[Y]-e?o[Y]?t.insAtRightEnd(o[Y]):t.insLeftOf(r):t.insAtLeftEnd(o),!1;if(e>s[X])o[X]?a=s[X]:i[X]-e<e-s[X]?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);zC(`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)===`<`){zC(`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],zC(`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]||``)})}}),mw=J(pw,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 cw.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=PC,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=PC,e.isEmpty=function(){return!0}}),Q=J(mw,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span>`+(n||e)+`</span>`)}}),$=J(mw,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-binary-operator">`+n+`</span>`,r)}}),hw=J(fw,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[Y]===this.ends[X]&&this.ends[Y]!==0?this.ends[Y].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`?Y:X,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[X];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[Y].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[Y];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?ww(e):/^\d$/.test(e)?Sw(e):t&&t.typingSlashWritesDivisionSymbol&&e===`/`?Z[`÷`](e):t&&t.typingAsteriskWritesTimesSymbol&&e===`*`?Z[`×`](e):(n=GC[e]||Z[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}});ZC.p.mouseEvents=!0,XC.StaticMath=function(e){return J(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 gw=J(hw,sw);XC.MathField=function(e){return J(e.EditableField,function(e,t){this.RootBlock=gw,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=PC),t.__mathquillify.call(this,`mq-editable-field mq-math-mode`),delete this.__controller.root.reflow,this}})};var _w=J(HC,function(e,t){e.ctrlSeq=`\\text`,e.replaces=function(e){e instanceof WC?this.replacedText=e.remove().jQ.text():typeof e==`string`&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[Y]&&this.ends[Y].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),n[X].siblingCreated&&n[X].siblingCreated(e.options,Y),n[Y].siblingCreated&&n[Y].siblingCreated(e.options,X),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=cw.string,n=cw.regex;return cw.optWhitespace.then(t(`{`)).then(n(/^[^}]*/)).skip(t(`}`)).map(function(t){return t.length===0?WC():(vw(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=pw.prototype.selectTowards,e.deleteTowards=pw.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[Y]?(e[Y].appendText(n),this.bubble(`reflow`)):vw(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),Q(`\\$`,`$`).createLeftOf(e);else if(!e[X])e.insRightOf(this);else if(!e[Y])e.insLeftOf(this);else{var r=_w(),i=this.ends[Y];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?Y:X,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[Y]&&t[Y].text.length;else if(t.anticursor.parent===this){var l=t[Y]&&t[Y].text.length;if(this.anticursorPosition===l)t.anticursor=VC.copy(t);else{if(this.anticursorPosition<l){var u=t[Y].splitRight(this.anticursorPosition);t[Y]=u}else var u=t[X].splitRight(this.anticursorPosition-l);t.anticursor=VC(this,u[Y],u)}}},e.blur=function(e){hw.prototype.blur.call(this),e&&(this.textContents()===``?(this.remove(),e[Y]===this?e[Y]=this[Y]:e[X]===this&&(e[X]=this[X])):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:``},zC(`only node in TextBlock span is Text node`,t.nodeType===3);var n=vw(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}e.focus=hw.prototype.focus}),vw=J(HC,function(e,t){e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=DC(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){BC(t),t===X?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=vw(this.text.slice(e)).adopt(this.parent,this,this[X]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t};function n(e,t){return t.charAt(e===Y?0:-1+t.length)}e.moveTowards=function(e,t){BC(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):vw(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?e===X?(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){BC(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=vw(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=vw(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)}});Z.text=Z.textnormal=Z.textrm=Z.textup=Z.textmd=_w;function yw(e,t,n){return J(_w,{ctrlSeq:e,htmlTemplate:`<`+t+` `+n+`>&0</`+t+`>`})}Z.em=Z.italic=Z.italics=Z.emph=Z.textit=Z.textsl=yw(`\\textit`,`i`,`class="mq-text-mode"`),Z.strong=Z.bold=Z.textbf=yw(`\\textbf`,`b`,`class="mq-text-mode"`),Z.sf=Z.textsf=yw(`\\textsf`,`span`,`class="mq-sans-serif mq-text-mode"`),Z.tt=Z.texttt=yw(`\\texttt`,`span`,`class="mq-monospace mq-text-mode"`),Z.textsc=yw(`\\textsc`,`span`,`style="font-variant:small-caps" class="mq-text-mode"`),Z.uppercase=yw(`\\uppercase`,`span`,`style="text-transform:uppercase" class="mq-text-mode"`),Z.lowercase=yw(`\\lowercase`,`span`,`style="text-transform:lowercase" class="mq-text-mode"`);var bw=J(pw,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[Y].cursor=this.cursor,this.ends[Y].write=function(e,t){t===`$`?this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),Q(`\\$`,`$`).createLeftOf(e.show())):e[X]?e[Y]?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[Y].latex()+`$`}}),xw=J(gw,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===`$`)bw(e).createLeftOf(e);else{var n;t===`<`?n=`<`:t===`>`&&(n=`>`),Q(t,n).createLeftOf(e)}}});XC.TextField=function(e){return J(e.EditableField,function(e,t){this.RootBlock=xw,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()}})},GC[`\\`]=J(pw,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[Y].focus=function(){return this.parent.jQ.addClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.removeClass(`mq-empty`),this},this.ends[Y].blur=function(){return this.parent.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.addClass(`mq-empty`),this},this.ends[Y].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[Y].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 DC(e.target=n).trigger(e),!1}).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return`\\`+this.ends[Y].latex()+` `},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[X]?e.insLeftOf(this[X]):e.insAtRightEnd(this.parent);var t=this.ends[Y].latex();t||=` `;var n=Z[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):(n=_w(),n.replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}}),Z[`∉`]=Z.notin=q($,`\\notin `,`∉`),Z[`≅`]=Z.cong=q($,`\\cong `,`≅`),Z[`≡`]=Z.equiv=q($,`\\equiv `,`≡`),Z[`⊕`]=Z.oplus=q($,`\\oplus `,`⊕`),Z[`⊗`]=Z.otimes=q($,`\\otimes `,`⊗`),Z[`≠`]=Z.ne=Z.neq=q($,`\\ne `,`≠`),Z[`≇`]=Z.ncong=q($,`\\ncong `,`≇`),Z[`∗`]=Z.ast=Z.star=Z.loast=Z.lowast=q($,`\\ast `,`∗`),Z.therefor=Z.therefore=q($,`\\therefore `,`∴`),Z.cuz=Z.because=q($,`\\because `,`∵`),Z.prop=Z.propto=q($,`\\propto `,`∝`),Z[`≈`]=Z.asymp=Z.approx=q($,`\\approx `,`≈`),Z[`≉`]=Z.nasymp=Z.napprox=q($,`\\napprox `,`≉`),Z.isin=Z.in=q($,`\\in `,`∈`),Z.ni=Z.contains=q($,`\\ni `,`∋`),Z.notni=Z.niton=Z.notcontains=Z.doesnotcontain=KC[`\\not\\ni`]=q($,`\\not\\ni `,`∌`),Z.sub=Z.subset=q($,`\\subset `,`⊂`),Z.sup=Z.supset=Z.superset=q($,`\\supset `,`⊃`),Z.nsub=Z.notsub=Z.nsubset=Z.notsubset=KC[`\\not\\subset`]=q($,`\\not\\subset `,`⊄`),Z.nsup=Z.notsup=Z.nsupset=Z.notsupset=Z.nsuperset=Z.notsuperset=KC[`\\not\\supset`]=q($,`\\not\\supset `,`⊅`),Z.sube=Z.subeq=Z.subsete=Z.subseteq=q($,`\\subseteq `,`⊆`),Z.supe=Z.supeq=Z.supsete=Z.supseteq=Z.supersete=Z.superseteq=q($,`\\supseteq `,`⊇`),Z.nsube=Z.nsubeq=Z.notsube=Z.notsubeq=Z.nsubsete=Z.nsubseteq=Z.notsubsete=Z.notsubseteq=KC[`\\not\\subseteq`]=q($,`\\not\\subseteq `,`⊈`),Z.nsupe=Z.nsupeq=Z.notsupe=Z.notsupeq=Z.nsupsete=Z.nsupseteq=Z.notsupsete=Z.notsupseteq=Z.nsupersete=Z.nsuperseteq=Z.notsupersete=Z.notsuperseteq=KC[`\\not\\supseteq`]=q($,`\\not\\supseteq `,`⊉`),Z.N=Z.naturals=Z.Naturals=q(Q,`\\mathbb{N}`,`ℕ`),Z.P=Z.primes=Z.Primes=Z.projective=Z.Projective=Z.probability=Z.Probability=q(Q,`\\mathbb{P}`,`ℙ`),Z.Z=Z.integers=Z.Integers=q(Q,`\\mathbb{Z}`,`ℤ`),Z.Q=Z.rationals=Z.Rationals=q(Q,`\\mathbb{Q}`,`ℚ`),Z.R=Z.reals=Z.Reals=q(Q,`\\mathbb{R}`,`ℝ`),Z.C=Z.complex=Z.Complex=Z.complexes=Z.Complexes=Z.complexplane=Z.Complexplane=Z.ComplexPlane=q(Q,`\\mathbb{C}`,`ℂ`),Z.H=Z.Hamiltonian=Z.quaternions=Z.Quaternions=q(Q,`\\mathbb{H}`,`ℍ`),Z.quad=Z.emsp=q(Q,`\\quad `,` `),Z.qquad=q(Q,`\\qquad `,` `),Z.diamond=q(Q,`\\diamond `,`◇`),Z.bigtriangleup=q(Q,`\\bigtriangleup `,`△`),Z.ominus=q(Q,`\\ominus `,`⊖`),Z.uplus=q(Q,`\\uplus `,`⊎`),Z.bigtriangledown=q(Q,`\\bigtriangledown `,`▽`),Z.sqcap=q(Q,`\\sqcap `,`⊓`),Z.triangleleft=q(Q,`\\triangleleft `,`⊲`),Z.sqcup=q(Q,`\\sqcup `,`⊔`),Z.triangleright=q(Q,`\\triangleright `,`⊳`),Z.odot=Z.circledot=q(Q,`\\odot `,`⊙`),Z.bigcirc=q(Q,`\\bigcirc `,`◯`),Z.dagger=q(Q,`\\dagger `,`†`),Z.ddagger=q(Q,`\\ddagger `,`‡`),Z.wr=q(Q,`\\wr `,`≀`),Z.amalg=q(Q,`\\amalg `,`∐`),Z.models=q(Q,`\\models `,`⊨`),Z.prec=q(Q,`\\prec `,`≺`),Z.succ=q(Q,`\\succ `,`≻`),Z.preceq=q(Q,`\\preceq `,`≼`),Z.succeq=q(Q,`\\succeq `,`≽`),Z.simeq=q(Q,`\\simeq `,`≃`),Z.mid=q(Q,`\\mid `,`∣`),Z.ll=q(Q,`\\ll `,`≪`),Z.gg=q(Q,`\\gg `,`≫`),Z.parallel=q(Q,`\\parallel `,`∥`),Z.nparallel=q(Q,`\\nparallel `,`∦`),Z.bowtie=q(Q,`\\bowtie `,`⋈`),Z.sqsubset=q(Q,`\\sqsubset `,`⊏`),Z.sqsupset=q(Q,`\\sqsupset `,`⊐`),Z.smile=q(Q,`\\smile `,`⌣`),Z.sqsubseteq=q(Q,`\\sqsubseteq `,`⊑`),Z.sqsupseteq=q(Q,`\\sqsupseteq `,`⊒`),Z.doteq=q(Q,`\\doteq `,`≐`),Z.frown=q(Q,`\\frown `,`⌢`),Z.vdash=q(Q,`\\vdash `,`⊦`),Z.dashv=q(Q,`\\dashv `,`⊣`),Z.nless=q(Q,`\\nless `,`≮`),Z.ngtr=q(Q,`\\ngtr `,`≯`),Z.longleftarrow=q(Q,`\\longleftarrow `,`←`),Z.longrightarrow=q(Q,`\\longrightarrow `,`→`),Z.Longleftarrow=q(Q,`\\Longleftarrow `,`⇐`),Z.Longrightarrow=q(Q,`\\Longrightarrow `,`⇒`),Z.longleftrightarrow=q(Q,`\\longleftrightarrow `,`↔`),Z.updownarrow=q(Q,`\\updownarrow `,`↕`),Z.Longleftrightarrow=q(Q,`\\Longleftrightarrow `,`⇔`),Z.Updownarrow=q(Q,`\\Updownarrow `,`⇕`),Z.mapsto=q(Q,`\\mapsto `,`↦`),Z.nearrow=q(Q,`\\nearrow `,`↗`),Z.hookleftarrow=q(Q,`\\hookleftarrow `,`↩`),Z.hookrightarrow=q(Q,`\\hookrightarrow `,`↪`),Z.searrow=q(Q,`\\searrow `,`↘`),Z.leftharpoonup=q(Q,`\\leftharpoonup `,`↼`),Z.rightharpoonup=q(Q,`\\rightharpoonup `,`⇀`),Z.swarrow=q(Q,`\\swarrow `,`↙`),Z.leftharpoondown=q(Q,`\\leftharpoondown `,`↽`),Z.rightharpoondown=q(Q,`\\rightharpoondown `,`⇁`),Z.nwarrow=q(Q,`\\nwarrow `,`↖`),Z.ldots=q(Q,`\\ldots `,`…`),Z.cdots=q(Q,`\\cdots `,`⋯`),Z.vdots=q(Q,`\\vdots `,`⋮`),Z.ddots=q(Q,`\\ddots `,`⋱`),Z.surd=q(Q,`\\surd `,`√`),Z.triangle=q(Q,`\\triangle `,`△`),Z.ell=q(Q,`\\ell `,`ℓ`),Z.top=q(Q,`\\top `,`⊤`),Z.flat=q(Q,`\\flat `,`♭`),Z.natural=q(Q,`\\natural `,`♮`),Z.sharp=q(Q,`\\sharp `,`♯`),Z.wp=q(Q,`\\wp `,`℘`),Z.bot=q(Q,`\\bot `,`⊥`),Z.clubsuit=q(Q,`\\clubsuit `,`♣`),Z.diamondsuit=q(Q,`\\diamondsuit `,`♢`),Z.heartsuit=q(Q,`\\heartsuit `,`♡`),Z.spadesuit=q(Q,`\\spadesuit `,`♠`),Z.circledot=q(Q,`\\circledot `,`⊙`),Z.middot=q(Q,`\\middot `,`·`),Z.dottedsquare=q(Q,`\\dottedsquare `,`⬚`),Z.square=q(Q,`\\square `,`⬜`),Z.rectangle=q(Q,`\\rectangle `,`▯`),Z.oint=q(Q,`\\oint `,`∮`),Z.bigcap=q(Q,`\\bigcap `,`∩`),Z.bigcup=q(Q,`\\bigcup `,`∪`),Z.bigsqcup=q(Q,`\\bigsqcup `,`⊔`),Z.bigvee=q(Q,`\\bigvee `,`∨`),Z.bigwedge=q(Q,`\\bigwedge `,`∧`),Z.bigodot=q(Q,`\\bigodot `,`⊙`),Z.bigotimes=q(Q,`\\bigotimes `,`⊗`),Z.bigoplus=q(Q,`\\bigoplus `,`⊕`),Z.biguplus=q(Q,`\\biguplus `,`⊎`),Z.lfloor=q(Q,`\\lfloor `,`⌊`),Z.rfloor=q(Q,`\\rfloor `,`⌋`),Z.lceil=q(Q,`\\lceil `,`⌈`),Z.rceil=q(Q,`\\rceil `,`⌉`),Z.opencurlybrace=Z.lbrace=q(Q,`\\lbrace `,`{`),Z.closecurlybrace=Z.rbrace=q(Q,`\\rbrace `,`}`),Z.lbrack=q(Q,`[`),Z.rbrack=q(Q,`]`),Z.mug=q(Q,`\\mug `,`µg`),Z.mus=q(Q,`\\mus `,`µs`),Z.mum=q(Q,`\\mum `,`µm`),Z.muL=q(Q,`\\muL `,`µL`),Z.slash=q(Q,`/`),Z.vert=q(Q,`|`),Z.perp=Z.perpendicular=q(Q,`\\perp `,`⊥`),Z.nabla=Z.del=q(Q,`\\nabla `,`∇`),Z.hbar=q(Q,`\\hbar `,`ℏ`),Z.AA=Z.Angstrom=Z.angstrom=q(Q,`\\text\\AA `,`Å`),Z.ring=Z.circ=Z.circle=q(Q,`\\circ `,`∘`),Z.bull=Z.bullet=q(Q,`\\bullet `,`•`),Z.setminus=Z.smallsetminus=q(Q,`\\setminus `,`∖`),Z.not=Z[`¬`]=Z.neg=q(Q,`\\neg `,`¬`),Z[`…`]=Z.dots=Z.ellip=Z.hellip=Z.ellipsis=Z.hellipsis=q(Q,`\\dots `,`…`),Z.converges=Z.darr=Z.dnarr=Z.dnarrow=Z.downarrow=q(Q,`\\downarrow `,`↓`),Z.dArr=Z.dnArr=Z.dnArrow=Z.Downarrow=q(Q,`\\Downarrow `,`⇓`),Z.diverges=Z.uarr=Z.uparrow=q(Q,`\\uparrow `,`↑`),Z.uArr=Z.Uparrow=q(Q,`\\Uparrow `,`⇑`),Z.to=q($,`\\to `,`→`),Z.rarr=Z.rightarrow=q(Q,`\\rightarrow `,`→`),Z.implies=q($,`\\Rightarrow `,`⇒`),Z.rArr=Z.Rightarrow=q(Q,`\\Rightarrow `,`⇒`),Z.gets=q($,`\\gets `,`←`),Z.larr=Z.leftarrow=q(Q,`\\leftarrow `,`←`),Z.impliedby=q($,`\\Leftarrow `,`⇐`),Z.lArr=Z.Leftarrow=q(Q,`\\Leftarrow `,`⇐`),Z.harr=Z.lrarr=Z.leftrightarrow=q(Q,`\\leftrightarrow `,`↔`),Z.iff=q($,`\\Leftrightarrow `,`⇔`),Z.hArr=Z.lrArr=Z.Leftrightarrow=q(Q,`\\Leftrightarrow `,`⇔`),Z.Re=Z.Real=Z.real=q(Q,`\\Re `,`ℜ`),Z.Im=Z.imag=Z.image=Z.imagin=Z.imaginary=Z.Imaginary=q(Q,`\\Im `,`ℑ`),Z.part=Z.partial=q(Q,`\\partial `,`∂`),Z.infty=Z.infin=Z.infinity=q(Q,`\\infty `,`∞`),Z.pounds=q(Q,`\\pounds `,`£`),Z.alef=Z.alefsym=Z.aleph=Z.alephsym=q(Q,`\\aleph `,`ℵ`),Z.xist=Z.xists=Z.exist=Z.exists=q(Q,`\\exists `,`∃`),Z.nexists=Z.nexist=q(Q,`\\nexists `,`∄`),Z.and=Z.land=Z.wedge=q($,`\\wedge `,`∧`),Z.or=Z.lor=Z.vee=q($,`\\vee `,`∨`),Z.o=Z.O=Z.empty=Z.emptyset=Z.oslash=Z.Oslash=Z.nothing=Z.varnothing=q($,`\\varnothing `,`∅`),Z.cup=Z.union=q($,`\\cup `,`∪`),Z.cap=Z.intersect=Z.intersection=q($,`\\cap `,`∩`),Z.deg=Z.degree=q(Q,`\\degree `,`°`),Z.ang=Z.angle=q(Q,`\\angle `,`∠`),Z.measuredangle=q(Q,`\\measuredangle `,`m∠`);var Sw=J(Q,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[Y]instanceof Cw&&e[Y].isItalic!==!1||e[Y]instanceof Qw&&e[Y][Y]instanceof Cw&&e[Y][Y].isItalic!==!1)?(Z._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),Cw=J(mw,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[Y]&&!(this[Y]instanceof Cw)&&!(this[Y]instanceof $)&&this[Y].ctrlSeq!==`\\ `&&(e=`*`+e),this[X]&&!(this[X]instanceof $)&&!(this[X]instanceof Qw)&&(e+=`*`)),e}});ZC.p.autoCommands={_maxLength:0},QC.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(Z[a]===Ow)throw`"`+a+`" is a built-in operator name`;n[a]=1,r=NC(r,a.length)}return n._maxLength=r,n};var ww=J(Cw,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 ww&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[Y],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(var o=1,a=this;o<i.length;o+=1,a=a[Y]);return WC(a,this).remove(),e[Y]=a[Y],Z[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!==Y&&this[X]instanceof ww||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(t._maxLength!==0){for(var r=this.letter,i=this[Y];i instanceof ww;i=i[Y])r=i.letter+r;for(var a=this[X];a instanceof ww;a=a[X])r+=a.letter;WC(i[X]||this.parent.ends[Y],a[Y]||this.parent.ends[X]).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[X]||this.parent.ends[Y];o<r.length;o+=1,s=s[X])for(var c=MC(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[X]){d.italicize(!1);var f=d}var p=Tw.hasOwnProperty(l);if(s.ctrlSeq=(p?`\\`:`\\operatorname{`)+s.ctrlSeq,f.ctrlSeq+=p?` `:`}`,Dw.hasOwnProperty(l)&&f[Y][Y][Y].jQ.addClass(`mq-last`),n(s[Y])||s.jQ.addClass(`mq-first`),!n(f[X]))if(f[X]instanceof Qw){var m=f[X];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass(`mq-after-operator-name`,!(m[X]instanceof sT))})()}else f.jQ.toggleClass(`mq-last`,!(f[X]instanceof sT));o+=c-1,s=f;continue outer}}}};function n(e){return!e||e instanceof $||e instanceof tT}}),Tw={},Ew=ZC.p.autoOperatorNames={_maxLength:9},Dw={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)Tw[e[t]]=Ew[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)Tw[n[t]]=1;for(var r=`sin cos tan sec cosec csc cotan cot ctg`.split(` `),t=0;t<r.length;t+=1)Ew[r[t]]=Ew[`arc`+r[t]]=Ew[r[t]+`h`]=Ew[`ar`+r[t]+`h`]=Ew[`arc`+r[t]+`h`]=1;for(var i=`gcf hcf lcm proj span`.split(` `),t=0;t<i.length;t+=1)Ew[i[t]]=1})(),QC.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=NC(r,a.length)}return n._maxLength=r,n};var Ow=J(mw,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)ww(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=hw(),n=0;n<e.length;n+=1)ww(e.charAt(n)).adopt(t,t.ends[X],0);return cw.succeed(t.children())}});for(var kw in Ew)Ew.hasOwnProperty(kw)&&(Z[kw]=Ow);Z.operatorname=J(pw,function(e){e.createLeftOf=PC,e.numBlocks=function(){return 1},e.parser=function(){return dw.block.map(function(e){return e.children()})}}),Z.f=J(ww,function(e,t){e.init=function(){mw.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)}}),Z[` `]=Z.space=q(Q,`\\ `,` `),Z[`'`]=Z.prime=q(Q,`'`,`′`),Z[`″`]=Z.dprime=q(Q,`″`,`″`),Z[`"`]=Z.doublePrime=q(Q,`"`,`″`),Z.backslash=q(Q,`\\backslash `,`\\`),GC[`\\`]||=Z.backslash,Z.$=q(Q,`\\$`,`$`);var Aw=J(mw,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span class="mq-nonSymbola">`+(n||e)+`</span>`)}});Z[`@`]=Aw,Z[`&`]=q(Aw,`\\&`,`&`),Z[`%`]=q(Aw,`\\%`,`%`),Z.alpha=Z.beta=Z.gamma=Z.delta=Z.zeta=Z.eta=Z.theta=Z.iota=Z.kappa=Z.mu=Z.nu=Z.xi=Z.rho=Z.sigma=Z.tau=Z.chi=Z.psi=Z.omega=J(Cw,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),Z.phi=q(Cw,`\\phi `,`ϕ`),Z.phiv=Z.varphi=q(Cw,`\\varphi `,`φ`),Z.epsilon=q(Cw,`\\epsilon `,`ϵ`),Z.epsiv=Z.varepsilon=q(Cw,`\\varepsilon `,`ε`),Z.piv=Z.varpi=q(Cw,`\\varpi `,`ϖ`),Z.sigmaf=Z.sigmav=Z.varsigma=q(Cw,`\\varsigma `,`ς`),Z.thetav=Z.vartheta=Z.thetasym=q(Cw,`\\vartheta `,`ϑ`),Z.upsilon=Z.upsi=q(Cw,`\\upsilon `,`υ`),Z.gammad=Z.Gammad=Z.digamma=q(Cw,`\\digamma `,`ϝ`),Z.kappav=Z.varkappa=q(Cw,`\\varkappa `,`ϰ`),Z.rhov=Z.varrho=q(Cw,`\\varrho `,`ϱ`),Z.pi=Z.π=q(Aw,`\\pi `,`π`),Z.lambda=q(Aw,`\\lambda `,`λ`),Z.Upsilon=Z.Upsi=Z.upsih=Z.Upsih=q(mw,`\\Upsilon `,`<var style="font-family: serif">ϒ</var>`),Z.Gamma=Z.Delta=Z.Theta=Z.Lambda=Z.Xi=Z.Pi=Z.Sigma=Z.Phi=Z.Psi=Z.Omega=J(Q,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),Z.forall=Z[`∀`]=q(Q,`\\forall `,`∀`);var jw=J(pw,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=dw.parse(this.latex);t.children().adopt(e.parent,e[Y],e[X]),e[Y]=t.ends[X],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[X][X].siblingCreated&&t.ends[X][X].siblingCreated(e.options,Y),t.ends[Y][Y].siblingCreated&&t.ends[Y][Y].siblingCreated(e.options,X),e.parent.bubble(`reflow`)},e.parser=function(){var e=dw.parse(this.latex).children();return cw.succeed(e)}});Z[`¹`]=q(jw,`^1`),Z[`²`]=q(jw,`^2`),Z[`³`]=q(jw,`^3`),Z[`¼`]=q(jw,`\\frac14`),Z[`½`]=q(jw,`\\frac12`),Z[`¾`]=q(jw,`\\frac34`);var Mw=J($,function(e){e.init=Q.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){function n(e){if(e[Y]){if(e[Y]instanceof $||/^[,;:\(\[]$/.test(e[Y].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!==X)return this.jQ[0].className=n(this),this}});Z[`+`]=q(Mw,`+`,`+`),Z[`–`]=Z[`-`]=q(Mw,`-`,`−`),Z[`±`]=Z.pm=Z.plusmn=Z.plusminus=q(Mw,`\\pm `,`±`),Z.mp=Z.mnplus=Z.minusplus=q(Mw,`\\mp `,`∓`),GC[`*`]=Z.sdot=Z.cdot=q($,`\\cdot `,`·`,`*`);var Nw=J($,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===Y&&!this.strict){this.swap(!0),this.bubble(`reflow`);return}t.deleteTowards.apply(this,arguments)}}),Pw={ctrlSeq:`\\le `,html:`≤`,text:`≤`,ctrlSeqStrict:`<`,htmlStrict:`<`,textStrict:`<`},Fw={ctrlSeq:`\\ge `,html:`≥`,text:`≥`,ctrlSeqStrict:`>`,htmlStrict:`>`,textStrict:`>`};Z[`<`]=Z.lt=q(Nw,Pw,!0),Z[`>`]=Z.gt=q(Nw,Fw,!0),Z[`≤`]=Z.le=Z.leq=q(Nw,Pw,!1),Z[`≥`]=Z.ge=Z.geq=q(Nw,Fw,!1);var Iw=J($,function(e,t){e.init=function(){t.init.call(this,`=`,`=`)},e.createLeftOf=function(e){if(e[Y]instanceof Nw&&e[Y].strict){e[Y].swap(!1),e[Y].bubble(`reflow`);return}t.createLeftOf.apply(this,arguments)}});Z[`=`]=Iw,Z[`×`]=Z.times=q($,`\\times `,`×`,`[x]`),Z[`÷`]=Z.div=Z.divide=Z.divides=q($,`\\div `,`÷`,`[/]`),GC[`~`]=Z.sim=q($,`\\sim `,`~`,`~`),GC[`≁`]=Z.nsim=q($,`\\nsim `,`≁`,`≁`),Z.complement=Z[`∁`]=q(Q,`\\complement `,`∁`),Z.nexists=Z[`∄`]=q(Q,`\\nexists `,`∄`),Z.sphericalangle=Z[`∢`]=q(Q,`\\sphericalangle `,`∢`),Z.iint=Z[`∬`]=q(Q,`\\iint `,`∬`),Z.iiint=Z[`∭`]=q(Q,`\\iiint `,`∭`),Z.oiint=Z[`∯`]=q(Q,`\\oiint `,`∯`),Z.oiiint=Z[`∰`]=q(Q,`\\oiiint `,`∰`),Z.backsim=Z[`∽`]=q(Q,`\\backsim `,`∽`),Z.backsimeq=Z[`⋍`]=q(Q,`\\backsimeq `,`⋍`),Z.eqsim=Z[`≂`]=q(Q,`\\eqsim `,`≂`),Z.ncong=Z[`≇`]=q(Q,`\\ncong `,`≇`),Z.approxeq=Z[`≊`]=q(Q,`\\approxeq `,`≊`),Z.bumpeq=Z[`≏`]=q(Q,`\\bumpeq `,`≏`),Z.Bumpeq=Z[`≎`]=q(Q,`\\Bumpeq `,`≎`),Z.doteqdot=Z[`≑`]=q(Q,`\\doteqdot `,`≑`),Z.fallingdotseq=Z[`≒`]=q(Q,`\\fallingdotseq `,`≒`),Z.risingdotseq=Z[`≓`]=q(Q,`\\risingdotseq `,`≓`),Z.eqcirc=Z[`≖`]=q(Q,`\\eqcirc `,`≖`),Z.circeq=Z[`≗`]=q(Q,`\\circeq `,`≗`),Z.triangleq=Z[`≜`]=q(Q,`\\triangleq `,`≜`),Z.leqq=Z[`≦`]=q(Q,`\\leqq `,`≦`),Z.geqq=Z[`≧`]=q(Q,`\\geqq `,`≧`),Z.lneqq=Z[`≨`]=q(Q,`\\lneqq `,`≨`),Z.gneqq=Z[`≩`]=q(Q,`\\gneqq `,`≩`),Z.between=Z[`≬`]=q(Q,`\\between `,`≬`),Z.nleq=Z[`≰`]=q(Q,`\\nleq `,`≰`),Z.ngeq=Z[`≱`]=q(Q,`\\ngeq `,`≱`),Z.lesssim=Z[`≲`]=q(Q,`\\lesssim `,`≲`),Z.gtrsim=Z[`≳`]=q(Q,`\\gtrsim `,`≳`),Z.lessgtr=Z[`≶`]=q(Q,`\\lessgtr `,`≶`),Z.gtrless=Z[`≷`]=q(Q,`\\gtrless `,`≷`),Z.preccurlyeq=Z[`≼`]=q(Q,`\\preccurlyeq `,`≼`),Z.succcurlyeq=Z[`≽`]=q(Q,`\\succcurlyeq `,`≽`),Z.precsim=Z[`≾`]=q(Q,`\\precsim `,`≾`),Z.succsim=Z[`≿`]=q(Q,`\\succsim `,`≿`),Z.nprec=Z[`⊀`]=q(Q,`\\nprec `,`⊀`),Z.nsucc=Z[`⊁`]=q(Q,`\\nsucc `,`⊁`),Z.subsetneq=Z[`⊊`]=q(Q,`\\subsetneq `,`⊊`),Z.supsetneq=Z[`⊋`]=q(Q,`\\supsetneq `,`⊋`),Z.vDash=Z[`⊨`]=q(Q,`\\vDash `,`⊨`),Z.Vdash=Z[`⊩`]=q(Q,`\\Vdash `,`⊩`),Z.Vvdash=Z[`⊪`]=q(Q,`\\Vvdash `,`⊪`),Z.VDash=Z[`⊫`]=q(Q,`\\VDash `,`⊫`),Z.nvdash=Z[`⊬`]=q(Q,`\\nvdash `,`⊬`),Z.nvDash=Z[`⊭`]=q(Q,`\\nvDash `,`⊭`),Z.nVdash=Z[`⊮`]=q(Q,`\\nVdash `,`⊮`),Z.nVDash=Z[`⊯`]=q(Q,`\\nVDash `,`⊯`),Z.vartriangleleft=Z[`⊲`]=q(Q,`\\vartriangleleft `,`⊲`),Z.vartriangleright=Z[`⊳`]=q(Q,`\\vartriangleright `,`⊳`),Z.trianglelefteq=Z[`⊴`]=q(Q,`\\trianglelefteq `,`⊴`),Z.trianglerighteq=Z[`⊵`]=q(Q,`\\trianglerighteq `,`⊵`),Z.multimap=Z[`⊸`]=q(Q,`\\multimap `,`⊸`),Z.Subset=Z[`⋐`]=q(Q,`\\Subset `,`⋐`),Z.Supset=Z[`⋑`]=q(Q,`\\Supset `,`⋑`),Z.Cap=Z[`⋒`]=q(Q,`\\Cap `,`⋒`),Z.Cup=Z[`⋓`]=q(Q,`\\Cup `,`⋓`),Z.pitchfork=Z[`⋔`]=q(Q,`\\pitchfork `,`⋔`),Z.lessdot=Z[`⋖`]=q(Q,`\\lessdot `,`⋖`),Z.gtrdot=Z[`⋗`]=q(Q,`\\gtrdot `,`⋗`),Z.lll=Z[`⋘`]=q(Q,`\\lll `,`⋘`),Z.ggg=Z[`⋙`]=q(Q,`\\ggg `,`⋙`),Z.lesseqgtr=Z[`⋚`]=q(Q,`\\lesseqgtr `,`⋚`),Z.gtreqless=Z[`⋛`]=q(Q,`\\gtreqless `,`⋛`),Z.curlyeqprec=Z[`⋞`]=q(Q,`\\curlyeqprec `,`⋞`),Z.curlyeqsucc=Z[`⋟`]=q(Q,`\\curlyeqsucc `,`⋟`),Z.nsim=Z[`≁`]=q(Q,`\\nsim `,`≁`),Z.lnsim=Z[`⋦`]=q(Q,`\\lnsim `,`⋦`),Z.gnsim=Z[`⋧`]=q(Q,`\\gnsim `,`⋧`),Z.precnsim=Z[`⋨`]=q(Q,`\\precnsim `,`⋨`),Z.succnsim=Z[`⋩`]=q(Q,`\\succnsim `,`⋩`),Z.ntriangleleft=Z[`⋪`]=q(Q,`\\ntriangleleft `,`⋪`),Z.ntriangleright=Z[`⋫`]=q(Q,`\\ntriangleright `,`⋫`),Z.ntrianglelefteq=Z[`⋬`]=q(Q,`\\ntrianglelefteq `,`⋬`),Z.ntrianglerighteq=Z[`⋭`]=q(Q,`\\ntrianglerighteq `,`⋭`),Z.blacksquare=Z[`∎`]=q(Q,`\\blacksquare `,`∎`),Z.colon=Z[`∶`]=q(Q,`\\colon `,`∶`),Z.llcorner=Z[`∟`]=q(Q,`\\llcorner `,`∟`),Z.dotplus=Z[`∔`]=q($,`\\dotplus `,`∔`),Z.nmid=Z[`∤`]=q($,`
|
|
199
|
+
mid `,`∤`),Z.intercal=Z[`⊺`]=q($,`\\intercal `,`⊺`),Z.veebar=Z[`⊻`]=q($,`\\veebar `,`⊻`),Z.barwedge=Z[`⊼`]=q($,`\\barwedge `,`⊼`),Z.ltimes=Z[`⋉`]=q($,`\\ltimes `,`⋉`),Z.rtimes=Z[`⋊`]=q($,`\\rtimes `,`⋊`),Z.leftthreetimes=Z[`⋋`]=q($,`\\leftthreetimes `,`⋋`),Z.rightthreetimes=Z[`⋌`]=q($,`\\rightthreetimes `,`⋌`),Z.curlyvee=Z[`⋎`]=q($,`\\curlyvee `,`⋎`),Z.curlywedge=Z[`⋏`]=q($,`\\curlywedge `,`⋏`),Z.circledcirc=Z[`⊚`]=q($,`\\circledcirc `,`⊚`),Z.circledast=Z[`⊛`]=q($,`\\circledast `,`⊛`),Z.circleddash=Z[`⊝`]=q($,`\\circleddash `,`⊝`),Z.boxplus=Z[`⊞`]=q($,`\\boxplus `,`⊞`),Z.boxminus=Z[`⊟`]=q($,`\\boxminus `,`⊟`),Z.boxtimes=Z[`⊠`]=q($,`\\boxtimes `,`⊠`),Z.boxdot=Z[`⊡`]=q($,`\\boxdot `,`⊡`),Z[`∂`]=Z.partial,Z[`∃`]=Z.exists,Z[`∅`]=Z.varnothing,Z[`∆`]=Z.triangle,Z[`∇`]=Z.nabla,Z[`∈`]=Z.in,Z[`∊`]=Z.in,Z[`∋`]=Z.ni,Z[`∌`]=Z.notni,Z[`∍`]=Z.ni,Z[`∐`]=Z.amalg,Z[`−`]=Z[`-`],Z[`∓`]=Z.mp,Z[`∖`]=Z.setminus,Z[`∘`]=Z.circ,Z[`∙`]=Z.bullet,Z[`∝`]=Z.propto,Z[`∞`]=Z.infty,Z[`∠`]=Z.angle,Z[`∡`]=Z.measuredangle,Z[`∣`]=Z.divides,Z[`∥`]=Z.parallel,Z[`∦`]=Z.nparallel,Z[`∧`]=Z.wedge,Z[`∨`]=Z.vee,Z[`∩`]=Z.cap,Z[`∪`]=Z.cup,Z[`∮`]=Z.oint,Z[`∴`]=Z.therefore,Z[`∵`]=Z.because,Z[`∼`]=Z.sim,Z[`≀`]=Z.wr,Z[`≃`]=Z.simeq,Z[`≍`]=Z.asymp,Z[`≐`]=Z.doteq,Z[`≪`]=Z.ll,Z[`≫`]=Z.gg,Z[`≺`]=Z.prec,Z[`≻`]=Z.succ,Z[`⊂`]=Z.subset,Z[`⊃`]=Z.supset,Z[`⊆`]=Z.subseteq,Z[`⊇`]=Z.supseteq,Z[`⊈`]=Z.nsubseteq,Z[`⊉`]=Z.nsupseteq,Z[`⊏`]=Z.sqsubset,Z[`⊐`]=Z.sqsupset,Z[`⊓`]=Z.sqcap,Z[`⊔`]=Z.sqcup,Z[`⊖`]=Z.ominus,Z[`⊘`]=Z.oslash,Z[`⊙`]=Z.odot,Z[`⊢`]=Z.vdash,Z[`⊣`]=Z.dashv,Z[`⊤`]=Z.top,Z[`⊥`]=Z.bot,Z[`⊧`]=Z.models,Z[`⋀`]=Z.wedge,Z[`⋁`]=Z.vee,Z[`⋂`]=Z.cap,Z[`⋃`]=Z.cup,Z[`⋄`]=Z.diamond,Z[`⋅`]=Z.cdot,Z[`⋆`]=Z.star,Z[`⋈`]=Z.bowtie,Z[`⋮`]=Z.vdots,Z[`⋯`]=Z.cdots,Z[`⋱`]=Z.ddots;var Lw,Rw=PC,zw=document.createElement(`div`).style,Bw={transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1},Vw;for(var Hw in Bw)if(Hw in zw){Vw=Hw;break}Vw?Lw=function(e,t,n){e.css(Vw,`scale(`+t+`,`+n+`)`)}:`filter`in zw?(Rw=function(e){e.className=e.className},Lw=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);DC(window).load(function(){clearTimeout(a),i()})}):Lw=function(e,t,n){e.css(`fontSize`,n+`em`)};var Uw=J(pw,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`>&0</`+n+`>`)}}),Ww=J(pw,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 dw.optBlock.then(function(t){return dw.block.map(function(n){var r=Gw.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))}}),Gw=J(Ww,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+`>`,pw.prototype.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`[`,`](`,`)`]},e.latex=function(){return this.ctrlSeq+`[`+this.ends[Y].latex()+`]{`+this.ends[X].latex()+`}`},e.finalizeTree=function(){this.downInto=this.ends[Y].upOutOf=this.ends[X],this.upInto=this.ends[X].downOutOf=this.ends[Y]}}),Kw=function(e){var t=`<span class="`+e+`-inner-right">g</span><span class="`+e+`-inner-left">h</span>`;return J(pw,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+`>`)}})},qw=J(pw,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>`)}}),Jw=J(pw,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>`)}}),Yw=J(pw,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">˙</span><span class="mq-empty-box">&0</span></span></span>`)}}),Xw=J(pw,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>`)}}),Zw=function(e,t){return J(mw,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`</`+i+`></`+i+`>`)}})};Z.mathrm=q(Uw,`\\mathrm`,`span`,`class="mq-roman mq-font"`),Z.mathit=q(Uw,`\\mathit`,`i`,`class="mq-font"`),Z.mathbf=q(Uw,`\\mathbf`,`b`,`class="mq-font"`),Z.mathsf=q(Uw,`\\mathsf`,`span`,`class="mq-sans-serif mq-font"`),Z.mathtt=q(Uw,`\\mathtt`,`span`,`class="mq-monospace mq-font"`),Z.underline=q(Uw,`\\underline`,`span`,`class="mq-non-leaf mq-underline"`),Z.overline=Z.bar=q(Kw(`mq-overline`),`\\overline`,`span`,`class="mq-non-leaf mq-overline"`),Z.longdiv=q(qw,`\\longdiv`,`span`,`class="mq-non-leaf mq-longdiv"`),Z.overrightarrow=q(Kw(`mq-overarrow`),`\\overrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-right"`),Z.overleftarrow=q(Kw(`mq-overarrow`),`\\overleftarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-left"`),Z.xleftarrow=q(Ww,`\\xleftarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-left"`),Z.xrightarrow=q(Ww,`\\xrightarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-right"`),Z.overleftrightarrow=q(Uw,`\\overleftrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-both"`),Z.overarc=q(Uw,`\\overarc`,`span`,`class="mq-non-leaf mq-overarc"`),Z.dot=J(pw,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">˙</span><span class="mq-empty-box">&0</span></span></span>`)}}),Z.addmatrixrow=q(Jw,`\\addmatrixrow`,`span`,`+`),Z.addmatrixcol=q(Xw,`\\addmatrixcol`,`span`,`+`),Z.ngtr=Z[`≯`]=q(Zw(`mq-ngtr`,`≯`),`\\ngtr `,`span`,`class="mq-non-leaf mq-ngtr"`),Z.nless=Z[`≮`]=q(Zw(`mq-nless`,`≮`),`\\nless `,`span`,`class="mq-non-leaf mq-nless"`),Z.dot=q(Yw,`\\dot`),Z.parallelogram=q(Zw(`mq-parallelogram`,`▱`),`\\parallelogram `,`span`,`class="mq-non-leaf mq-parallelogram"`),Z.textcolor=J(pw,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=cw.optWhitespace,r=cw.string,i=cw.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}}),Z.class=J(pw,function(e,t){e.parser=function(){var e=this,n=cw.string,r=cw.regex;return cw.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 Qw=J(pw,function(e,t){e.ctrlSeq=`_{...}^{...}`,e.createLeftOf=function(e){if(!(!this.replacedFragment&&!e[Y]&&e.options.supSubsRequireOperand))return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=Y;t;t=t===Y&&X)if(this[t]instanceof Qw){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=VC(i,0,i.ends[Y]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var o=r.children().disown(),a=VC(i,o.ends[X],i.ends[Y]);t===Y?o.adopt(i,i.ends[X],0):o.adopt(i,0,i.ends[Y])}this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[Y]===this&&(t===X&&a?a[Y]?e.insRightOf(a[Y]):e.insAtLeftEnd(a.parent):e.insRightOf(this[t]));break}},ZC.p.charsThatBreakOutOfSupSub=``,e.finalizeTree=function(){this.ends[Y].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 mw?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[Y]&&!e[X]&&!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 mw?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(Y,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=DC(`<span class="mq-sup"/>`).append(e.jQ.children()).attr(jC,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=DC(`<span class="mq-sub"></span>`).append(e.jQ.children()).attr(jC,e.id).appendTo(this.jQ.removeClass(`mq-sup-only`)),this.jQ.append(`<span style="display:inline-block;width:0">​</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`]=$w,delete e[n].deleteOutOf,t===`sub`&&DC(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 $w(e){var t=this.parent,n=e;do{if(n[X])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}Z.subscript=Z._=J(Qw,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">​</span></span>`,e.textTemplate=[`_`],e.finalizeTree=function(){this.downInto=this.sub=this.ends[Y],this.sub.upOutOf=$w,t.finalizeTree.call(this)}}),Z.superscript=Z.supscript=Z[`^`]=J(Qw,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[X],this.sup.downOutOf=$w,t.finalizeTree.call(this)}});var eT=J(pw,function(e,t){e.parser=function(){for(var e=cw.string,t=cw.optWhitespace,n=cw.succeed,r=dw.block,i=this,a=i.blocks=[hw(),hw()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[X],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[X],0),n(i)})}).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[Y],this.upInto=this.ends[X],this.ends[Y].upOutOf=this.ends[X],this.ends[X].downOutOf=this.ends[Y]}}),tT=J(eT,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>`;mw.prototype.init.call(this,e,n)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[Y].latex())+`^`+e(this.ends[X].latex())},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(ww(`n`).createLeftOf(e),Iw().createLeftOf(e))}});Z[`∑`]=Z.sum=Z.summation=q(tT,`\\sum `,`∑`),Z[`∏`]=Z.prod=Z.product=q(tT,`\\prod `,`∏`),Z.coprod=Z.coproduct=q(tT,`\\coprod `,`∐`),Z[`∫`]=Z.int=Z.integral=J(tT,function(e,t){e.init=function(){mw.prototype.init.call(this,`\\int `,`<span class="mq-int mq-non-leaf"><big>∫</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">​</span></span></span>`)},e.createLeftOf=pw.p.createLeftOf}),Z.lim=Z.limit=J(eT,function(e,t){e.init=function(){mw.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[Y].latex())}});var nT=Z.over=GC[`/`]=J(Z.frac=Z.dfrac=Z.cfrac=Z.fraction=J(pw,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">​</span></span>`,e.textTemplate=[`(`,`)/(`,`)`],e.finalizeTree=function(){this.upInto=this.ends[X].upOutOf=this.ends[Y],this.downInto=this.ends[Y].downOutOf=this.ends[X]}}),function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[Y];n&&!(n instanceof $||n instanceof(Z.text||PC)||n instanceof tT||n.ctrlSeq===`\\ `||/^[,;:]$/.test(n.ctrlSeq));)n=n[Y];n instanceof tT&&n[X]instanceof Qw&&(n=n[X],n[X]instanceof Qw&&n[X].ctrlSeq!=n.ctrlSeq&&(n=n[X])),n!==e[Y]&&!e.isTooDeep(1)&&(this.replaces(WC(n[X]||e.parent.ends[Y],e[Y])),e[Y]=n)}t.createLeftOf.call(this,e)}});Z.underset=J(pw,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[Y].upOutOf=this.ends[X],this.upInto=this.ends[X].downOutOf=this.ends[Y]}}),Z.overset=J(pw,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[X].upOutOf=this.ends[Y],this.upInto=this.ends[Y].downOutOf=this.ends[X]}});var rT=Z.sqrt=Z[`√`]=J(pw,function(e,t){e.ctrlSeq=`\\sqrt`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">√</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 dw.optBlock.then(function(e){return dw.block.map(function(t){var n=iT();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[X].jQ.parent();Lw(e.prev(),1,e.innerHeight()/+e.css(`fontSize`).slice(0,-2)-.1)}});Z.hat=J(pw,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 iT=Z.nthroot=J(rT,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">√</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[Y].latex()+`]{`+this.ends[X].latex()+`}`}}),aT=J(pw,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)}});Z.vec=q(aT,`\\vec`,`→`,[`vec(`,`)`]),Z.tilde=q(aT,`\\tilde`,`~`,[`tilde(`,`)`]),Z.lrncuberoot=J(rT,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">√</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[Y].latex()+`}`}}),Z.abs=J(pw,function(e){e.ctrlSeq=`\\abs`,e.htmlTemplate=`<span class="mq-abs mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[`|`,`|`]}),Z.lrnplaceholder=J(pw,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[Y].latex()}}),Z.lrnexponent=J(pw,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[X].latex();return e.length>1?e=`{`+e+`}`:e.length===0&&(e=`{ }`),this.ends[Y].latex()+`^`+e}}),Z.lrnsquaredexponent=J(pw,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[Y].latex()+`^2`}}),Z.lrnsubscript=J(pw,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"> </span></span></span>`,e.textTemplate=[``,`_`],e.latex=function(){return this.ends[Y].latex()+`_`+this.ends[X].latex()}});function oT(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`));Lw(this.delimjQs,MC(1+.2*(e-1),1.2),1.2*e)}}var sT=J(J(pw,oT),function(e,t){e.init=function(e,n,r,i,a){t.init.call(this,`\\left`+i,kC,[n,r]),this.side=e,this.sides={},this.sides[Y]={ch:n,ctrlSeq:i},this.sides[X]={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===X?` mq-ghost`:``)+`">`+this.sides[Y].ch+`</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren`+(this.side===Y?` mq-ghost`:``)+`">`+this.sides[X].ch+`</span></span>`,t.html.call(this)},e.latex=function(){return`\\left`+this.sides[Y].ctrlSeq+this.ends[Y].latex()+`\\right`+this.sides[X].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof sT&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||cT[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":`]`,"[":`)`}[this.sides[Y].ch]===n.sides[X].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===Y?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[Y].ch===`|`)var r=this.matchBrack(n,X,e[X])||this.matchBrack(n,Y,e[Y])||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]&&WC(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(WC(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===Y?e.insAtLeftEnd(r.ends[Y]):e.insRightOf(r)},e.placeCursor=PC,e.unwrap=function(){this.ends[Y].children().disown().adopt(this.parent,this,this[X]).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[Y].ends[this.side])){this.closeOpposing(this.ends[Y].ends[this.side]);var c=this.ends[Y].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:cT[this.sides[this.side].ch],ctrlSeq:cT[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass(`mq-ghost`).eq(e===Y?0:1).addClass(`mq-ghost`).html(this.sides[e].ch);if(i){var c=this.ends[Y].ends[e];WC(i,a,-e).disown().withDirAdopt(-e,this.ends[Y],c,0).jQ.insAtDirEnd(e,this.ends[Y].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[Y])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[Y].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(+(this.side===Y)).removeClass(`mq-ghost`),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),cT={"(":`)`,")":`(`,"[":`]`,"]":`[`,"{":`}`,"}":`{`,"\\{":`\\}`,"\\}":`\\{`,"⟨":`⟩`,"⟩":`⟨`,"\\langle ":`\\rangle `,"\\rangle ":`\\langle `,"|":`|`,"\\lVert ":`\\rVert `,"\\rVert ":`\\lVert `};function lT(e,t){var t=t||e,n=cT[e],r=cT[t];GC[e]=q(sT,Y,e,n,t,r),GC[n]=q(sT,X,e,n,t,r)}lT(`(`),lT(`[`),lT(`{`,`\\{`),Z.langle=q(sT,Y,`⟨`,`⟩`,`\\langle `,`\\rangle `),Z.rangle=q(sT,X,`⟨`,`⟩`,`\\langle `,`\\rangle `),GC[`|`]=q(sT,Y,`|`,`|`,`|`,`|`),Z.lVert=q(sT,Y,`∥`,`∥`,`\\lVert `,`\\rVert `),Z.rVert=q(sT,X,`∥`,`∥`,`\\lVert `,`\\rVert `),Z.left=J(pw,function(e){e.parser=function(){var e=cw.regex,t=cw.string;cw.succeed;var n=cw.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=`⟨`,r+=` `),r==`\\lVert`&&(i=`∥`,r+=` `),dw.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=`⟩`,e+=` `),e==`\\rVert`&&(t=`∥`,e+=` `);var n=sT(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n})})})}}),Z.right=J(pw,function(e){e.parser=function(){return cw.fail(`unmatched \\right`)}}),Z.choose=J(Z.binom=Z.binomial=J(J(pw,oT),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=nT.prototype.createLeftOf}),Z.editable=Z.MathQuillMathField=J(pw,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=cw.string,r=cw.regex,i=cw.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=YC(this.ends[Y],this.jQ,e);t.KIND_OF_MQ=`MathField`,t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),sw(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[Y].controller))},e.latex=function(){return this.ends[Y].latex()},e.text=function(){return this.ends[Y].text()}});var uT=Z.embed=J(mw,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=cw.string,n=cw.regex,r=cw.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(ew[i](t))})})}});Z.MathQuillResponseContainer=J(pw,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[Y].text()}}),Z.MathQuillResponseContainerIcon=J(pw,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[Y].text()}});var dT=Z.matrix=J(pw,function(e,t){var n=J(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[X],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&&Lw(n,MC(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=cw.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);dw.parse(u[e]||` `).children().adopt(f,f.ends[X],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[X],0);return cw.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=HC.byId[e.first().attr(jC)],n=HC.byId[e.last().attr(jC)],r=e.eq(0).closest(`tr`),i=[];e.each(function(t){var n=HC.byId[DC(this).attr(jC)],a=e.eq(t+1),o=DC(this).closest(`tr`).next(`tr`),s=DC(this).closest(`tr`).index(),c=DC(this).index(),l;if(a.length){var u=HC.byId[a.attr(jC)];n[X]=u,u[Y]=n}if(l=o.length?o.find(`td`).eq(c):r.find(`td`).eq(c+1),l.length){var d=HC.byId[l.attr(jC)];n.downOutOf=d,d.upOutOf=n}n.column=c,n.row=s,i.push(n)}),this.ends[Y]=t,this.ends[X]=n,t&&t[Y]&&delete t[Y],n&&n[X]&&delete n[X],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 DC(this).find(`td`)[n]}),o=this.jQ.find(`td`).length===1,s;function c(){return HC.byId[DC(this).attr(jC)].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=HC.byId[this.jQ.find(`tr`).eq(r).find(`td`).eq(n).attr(jC)]),s},e.addRow=function(e){if(!(this.jQ.find(`tr`).length>=this.maximum.rows)){for(var t=e.find(`td`).length,r=DC(`<tr></tr>`),i,a,o=0;o<t;o++)i=n(),i.parent=this,i.jQ=DC(`<td class="mq-empty">`).attr(jC,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=DC(`<td class="mq-empty">`).attr(jC,a.id),a.jQ.insertAfter(DC(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`)}}});Z.pmatrix=J(dT,function(e,t){e.ctrlSeq=`\\pmatrix`,e.parentheses={left:`(`,right:`)`}}),Z.bmatrix=J(dT,function(e,t){e.ctrlSeq=`\\bmatrix`,e.parentheses={left:`[`,right:`]`}}),Z.Bmatrix=J(dT,function(e,t){e.ctrlSeq=`\\Bmatrix`,e.parentheses={left:`{`,right:`}`}}),Z.vmatrix=J(dT,function(e,t){e.ctrlSeq=`\\vmatrix`,e.parentheses={left:`|`,right:`|`}}),Z.Vmatrix=J(dT,function(e,t){e.ctrlSeq=`\\Vmatrix`,e.parentheses={left:`‖`,right:`‖`}});var fT=aw(3);for(var pT in fT)(function(e,t){typeof t==`function`?(nw[e]=function(){return tw(),t.apply(this,arguments)},nw[e].prototype=t.prototype):nw[e]=t})(pT,fT[pT]);var mT=function(e){e.registerEmbed(`newLine`,()=>({htmlString:`<div class="newLine"></div>`,text:()=>`testText`,latex:()=>`\\embed{newLine}[]`}))},hT;typeof window<`u`&&(hT=nw.getInterface(3),hT&&hT.registerEmbed&&mT(hT));function gT(e,t){!hT||!hT.registerEmbed||hT.registerEmbed(e,t)}function _T(e,t,n){if(!(!hT||!e))return t!=null&&(e.textContent=t),hT.StaticMath(e,n)}var vT=e=>`&.mq-math-mode ${e}, & .mq-math-mode ${e}`,yT={"&.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:op()},[[`.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(vT).join(`, `)]:{borderTopColor:`currentColor`},[[`.mq-underline`,`.mq-xarrow .mq-xarrow-over`].map(vT).join(`, `)]:{borderBottomColor:`currentColor`},[vT(`.mq-abs`)]:{borderLeftColor:`currentColor`,borderRightColor:`currentColor`},[vT(`.mq-matrix td.mq-empty`)]:{borderColor:`currentColor`}},bT={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`}},xT={"& .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`}},ST={"& .mq-math-mode sup.mq-nthroot":{fontSize:`70% !important`,verticalAlign:`0.5em !important`,paddingRight:`0.15em`},"& .mq-math-mode .mq-supsub":{fontSize:`70.7% !important`},"& .mq-supsub ":{fontSize:`70.7%`},"& .mq-math-mode .mq-supsub.mq-sup-only":{verticalAlign:`-0.1em !important`,"& .mq-sup":{marginBottom:`0px !important`}},"& .mq-math-mode .mq-fraction + .mq-supsub.mq-sup-only":{verticalAlign:`0.4em !important`},"& .mq-math-mode .mq-supsub.mq-sup-only.mq-after-fraction-group":{verticalAlign:`0.4em !important`}},CT={"& *":{...bT,...xT,"& .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`}}},wT={mqInkStyles:yT,commonMqFontStyles:bT,longdivStyles:xT,supsubStyles:ST,commonMqKeyboardStyles:CT},TT=v(`math-input:mq:input`),ET=H(`span`)(yT),DT=class extends R.Component{static propTypes={className:I.string,onClick:I.func,onChange:I.func,latex:I.string,onFocus:I.func,onBlur:I.func,language:I.string};componentDidMount(){if(!hT)throw Error(`MQ is not defined - but component has mounted?`);this.mathField=hT.MathField(this.input,{handlers:{edit:this.onInputEdit.bind(this)}}),this.updateLatex(),wC(this.input,this.props.language)}componentDidUpdate(){this.updateLatex(),wC(this.input,this.props.language)}updateLatex(){if(!this.mathField)return;let{latex:e}=this.props;e!=null&&this.mathField.latex(e)}clear(){return this.mathField.latex(``),``}blur(){TT(`blur mathfield`),this.mathField.blur()}focus(){TT(`focus mathfield...`),this.mathField.focus()}command(e){return TT(`command: `,e),Array.isArray(e)?e.forEach(e=>{this.mathField.cmd(e)}):this.mathField.cmd(e),this.mathField.focus(),this.mathField.latex()}keystroke(e){return this.mathField.keystroke(e),this.mathField.focus(),this.mathField.latex()}write(e){return TT(`write: `,e),this.mathField.write(e),this.mathField.focus(),this.mathField.latex()}onInputEdit=()=>{TT(`[onInputEdit] ...`);let{onChange:e}=this.props;this.mathField&&e&&e(this.mathField.latex())};refresh=()=>{this.blur(),this.focus()};onKeyPress=e=>{if(Object.keys(this.mathField.__controller.options).indexOf(`ignoreNextMousedown`)<0&&this.refresh(),e.charCode===13){e.preventDefault();return}};onClick=e=>{let{onClick:t}=this.props;this.refresh(),t&&t(e)};shouldComponentUpdate(e){return TT(`next: `,e.latex),TT(`current: `,this.mathField.latex()),e.latex!==this.mathField.latex()}render(){let{onFocus:e,onBlur:t,className:n}=this.props;return(0,z.jsx)(ET,{className:n,onKeyDown:this.onKeyPress,onClick:this.onClick,onFocus:e,onBlur:t,ref:e=>this.input=e})}},OT=v(`pie-lib:math-input:mq:static`),kT=/\\MathQuillMathField\[r\d*\]\{(.*?)\}/g,AT=/ /g;function jT(e=``){return e.replace(AT,``)}function MT(e){let t=0;for(let n=0;n<(e||``).length;n++)e[n]===`{`&&t++;return t}var NT=H(`span`)(yT),PT=class extends R.Component{static propTypes={latex:I.string.isRequired,onFocus:I.func,onBlur:I.func,className:I.string,getFieldName:I.func,onSubFieldChange:I.func,onSubFieldFocus:I.func,setInput:I.func,language:I.string};static defaultProps={getFieldName:()=>{}};constructor(e){super(e),this.state={announcement:``,previousLatex:``,inputSource:null,isDeleteKeyPressed:!1},this.inputRef=R.createRef()}componentDidMount(){this.update(),rC(),this.createLiveRegion(),this.addEventListeners()}componentDidUpdate(){this.update(),rC()}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(MT(e)>MT(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}wC(this.inputRef?.current,this.props.language)};blur=()=>{OT(`blur mathfield`),this.mathField.blur()};focus=()=>{OT(`focus mathfield...`),this.mathField.focus()};shouldComponentUpdate(e){try{let t=jT(this.mathField.parseLatex(e.latex)),n=(e.latex.match(kT)||[]).length,r=t!==jT(this.mathField.latex().trim())||n!==Object.keys(this.mathField.innerFields).length/2;return OT(`[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,z.jsx)(NT,{className:t,onFocus:this.onFocus,onBlur:e,ref:this.inputRef})}},FT=e=>(qb(5-e.length,()=>e.push([])),Jb.apply(null,e)),IT=v(`pie-lib:math-inline:keypad`),LT=Of(`pie`),RT=[kf(),Np()],zT={"& .MuiTouchRipple-root":{color:`rgb(from ${kf()} min(r, 255 - r) min(g, 255 - g) min(b, 255 - b))`}},BT={"&.Mui-focusVisible":{outline:`2px solid ${yp()}`,outlineOffset:`-2px`,boxShadow:`inset 0 0 0 4px ${LT(`background`,W.WHITE)}`}},VT=H(PT)(({latex:e})=>{let t={pointerEvents:`none`,textTransform:`none !important`,color:RT,"& .mq-scaled.mq-sqrt-prefix":{transform:`scale(1, 0.9) !important`},"& .mq-sup-only .mq-sup":{marginBottom:`0.9px !important`},"& .mq-empty":{backgroundColor:`${kp()} !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});VT.propTypes={latex:I.string.isRequired};var HT=e=>e?{gridTemplateColumns:`repeat(${e.columns}, minmax(min-content, 150px))`,gridTemplateRows:`repeat(${e.rows}, minmax(40px, 60px))`,gridAutoFlow:`initial`}:{},UT=H(`div`)(()=>({...CT,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`}}})),WT=H(k_)(({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:RT,backgroundColor:e===`operators`?Op():Dp(),"&:hover":{backgroundColor:e===`operators`?jp():Ap()},...zT,...BT,borderRadius:0,...t&&{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}})),GT=H(k_)(({category:e})=>({textTransform:`none`,padding:0,margin:0,fontSize:`110% !important`,minWidth:`auto`,borderRadius:0,backgroundColor:e===`operators`?Op():Dp(),"&:hover":{backgroundColor:e===`operators`?jp():Ap()},...zT,...BT})),KT=H(SC)(({category:e})=>({minWidth:`auto`,backgroundColor:e===`operators`?Op():Dp(),"&:hover":{backgroundColor:e===`operators`?jp():Ap()},borderRadius:0,"& .icon":{height:`30px`}})),qT=class extends R.Component{static propTypes={className:I.string,controlledKeypadMode:I.bool,baseSet:I.array,additionalKeys:I.array,layoutForKeyPad:I.object,onPress:I.func.isRequired,onFocus:I.func,noDecimal:I.bool,setKeypadInteraction:I.func,mode:I.oneOfType([I.string,I.number])};static defaultProps={baseSet:gC,noDecimal:!1};constructor(e){super(e),this.keypadRef=R.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=>{IT(`[buttonClick]`,e);let{onPress:t}=this.props;t(e)};flowKeys=(e,t)=>Hb([...FT(e),...FT(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))`,...HT(r)};return(0,z.jsx)(UT,{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,z.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,z.jsx)(GT,{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,z.jsx)(VT,{latex:e.latex})},r.key);if(e.label)return(0,z.jsx)(WT,{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,z.jsx)(KT,{tabIndex:`-1`,onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,size:`large`,...e.actions||{},...e.extraProps||{},children:(0,z.jsx)(t,{className:`icon`})},r.key)}})})}},JT=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}},YT=class extends R.Component{static propTypes={className:I.string,controlledKeypadMode:I.bool,mode:I.oneOfType([I.string,I.number]),layoutForKeyPad:I.object,onClick:I.func.isRequired,onFocus:I.func,noDecimal:I.bool,additionalKeys:I.array,setKeypadInteraction:I.func};static defaultProps={mode:`scientific`,noDecimal:!1,additionalKeys:[]};keypadPress=e=>{let{onClick:t}=this.props;t(JT(e))};render(){let{mode:e,onFocus:t,controlledKeypadMode:n,noDecimal:r,className:i,additionalKeys:a,layoutForKeyPad:o,setKeypadInteraction:s}=this.props,c=nC(a);return(0,z.jsx)(qT,{className:i,controlledKeypadMode:n,onFocus:t,noDecimal:r,layoutForKeyPad:o,additionalKeys:Qb(eC(e),c),onPress:this.keypadPress,mode:e,setKeypadInteraction:s})}},XT=`bottom`,ZT=`right`,QT=`left`,$T=`auto`,eE=[`top`,XT,ZT,QT],tE=`start`,nE=`clippingParents`,rE=`viewport`,iE=`popper`,aE=`reference`,oE=eE.reduce(function(e,t){return e.concat([t+`-`+tE,t+`-end`])},[]),sE=[].concat(eE,[$T]).reduce(function(e,t){return e.concat([t,t+`-`+tE,t+`-end`])},[]),cE=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function lE(e){return e?(e.nodeName||``).toLowerCase():null}function uE(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dE(e){return e instanceof uE(e).Element||e instanceof Element}function fE(e){return e instanceof uE(e).HTMLElement||e instanceof HTMLElement}function pE(e){return typeof ShadowRoot>`u`?!1:e instanceof uE(e).ShadowRoot||e instanceof ShadowRoot}function mE(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];!fE(i)||!lE(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 hE(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},{});!fE(r)||!lE(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var gE={name:`applyStyles`,enabled:!0,phase:`write`,fn:mE,effect:hE,requires:[`computeStyles`]};function _E(e){return e.split(`-`)[0]}var vE=Math.max,yE=Math.min,bE=Math.round;function xE(){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 SE(){return!/^((?!chrome|android).)*safari/i.test(xE())}function CE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&fE(e)&&(i=e.offsetWidth>0&&bE(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&bE(r.height)/e.offsetHeight||1);var o=(dE(e)?uE(e):window).visualViewport,s=!SE()&&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 wE(e){var t=CE(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 TE(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&pE(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function EE(e){return uE(e).getComputedStyle(e)}function DE(e){return[`table`,`td`,`th`].indexOf(lE(e))>=0}function OE(e){return((dE(e)?e.ownerDocument:e.document)||window.document).documentElement}function kE(e){return lE(e)===`html`?e:e.assignedSlot||e.parentNode||(pE(e)?e.host:null)||OE(e)}function AE(e){return!fE(e)||EE(e).position===`fixed`?null:e.offsetParent}function jE(e){var t=/firefox/i.test(xE());if(/Trident/i.test(xE())&&fE(e)&&EE(e).position===`fixed`)return null;var n=kE(e);for(pE(n)&&(n=n.host);fE(n)&&[`html`,`body`].indexOf(lE(n))<0;){var r=EE(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 ME(e){for(var t=uE(e),n=AE(e);n&&DE(n)&&EE(n).position===`static`;)n=AE(n);return n&&(lE(n)===`html`||lE(n)===`body`&&EE(n).position===`static`)?t:n||jE(e)||t}function NE(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function PE(e,t,n){return vE(e,yE(t,n))}function FE(e,t,n){var r=PE(e,t,n);return r>n?n:r}function IE(){return{top:0,right:0,bottom:0,left:0}}function LE(e){return Object.assign({},IE(),e)}function RE(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var zE=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,LE(typeof e==`number`?RE(e,eE):e)};function BE(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=_E(n.placement),c=NE(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=zE(i.padding,n),d=wE(a),f=c===`y`?`top`:QT,p=c===`y`?XT:ZT,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=ME(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=PE(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function VE(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)||TE(t.elements.popper,r)&&(t.elements.arrow=r))}var HE={name:`arrow`,enabled:!0,phase:`main`,fn:BE,effect:VE,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function UE(e){return e.split(`-`)[1]}var WE={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function GE(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:bE(n*i)/i||0,y:bE(r*i)/i||0}}function KE(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=QT,b=`top`,x=window;if(l){var S=ME(n),C=`clientHeight`,w=`clientWidth`;if(S===uE(n)&&(S=OE(n),EE(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=XT;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=ZT;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&&WE),O=u===!0?GE({x:p,y:h},uE(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 qE(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:_E(t.placement),variation:UE(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,KE(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,KE(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 JE={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:qE,data:{}},YE={passive:!0};function XE(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=uE(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,YE)}),s&&c.addEventListener(`resize`,n.update,YE),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,YE)}),s&&c.removeEventListener(`resize`,n.update,YE)}}var ZE={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:XE,data:{}},QE={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function $E(e){return e.replace(/left|right|bottom|top/g,function(e){return QE[e]})}var eD={start:`end`,end:`start`};function tD(e){return e.replace(/start|end/g,function(e){return eD[e]})}function nD(e){var t=uE(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rD(e){return CE(OE(e)).left+nD(e).scrollLeft}function iD(e,t){var n=uE(e),r=OE(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=SE();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+rD(e),y:c}}function aD(e){var t=OE(e),n=nD(e),r=e.ownerDocument?.body,i=vE(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=vE(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+rD(e),s=-n.scrollTop;return EE(r||t).direction===`rtl`&&(o+=vE(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function oD(e){var t=EE(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function sD(e){return[`html`,`body`,`#document`].indexOf(lE(e))>=0?e.ownerDocument.body:fE(e)&&oD(e)?e:sD(kE(e))}function cD(e,t){t===void 0&&(t=[]);var n=sD(e),r=n===e.ownerDocument?.body,i=uE(n),a=r?[i].concat(i.visualViewport||[],oD(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(cD(kE(a)))}function lD(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function uD(e,t){var n=CE(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 dD(e,t,n){return t===`viewport`?lD(iD(e,n)):dE(t)?uD(t,n):lD(aD(OE(e)))}function fD(e){var t=cD(kE(e)),n=[`absolute`,`fixed`].indexOf(EE(e).position)>=0&&fE(e)?ME(e):e;return dE(n)?t.filter(function(e){return dE(e)&&TE(e,n)&&lE(e)!==`body`}):[]}function pD(e,t,n,r){var i=t===`clippingParents`?fD(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=dD(e,n,r);return t.top=vE(i.top,t.top),t.right=yE(i.right,t.right),t.bottom=yE(i.bottom,t.bottom),t.left=vE(i.left,t.left),t},dD(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 mD(e){var t=e.reference,n=e.element,r=e.placement,i=r?_E(r):null,a=r?UE(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 XT:c={x:o,y:t.y+t.height};break;case ZT:c={x:t.x+t.width,y:s};break;case QT:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?NE(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case tE: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 hD(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?nE:s,l=n.rootBoundary,u=l===void 0?rE:l,d=n.elementContext,f=d===void 0?iE:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=LE(typeof g==`number`?RE(g,eE):g),v=f===`popper`?aE:iE,y=e.rects.popper,b=e.elements[m?v:f],x=pD(dE(b)?b:b.contextElement||OE(e.elements.popper),c,u,o),S=CE(e.elements.reference),C=mD({reference:S,element:y,strategy:`absolute`,placement:i}),w=lD(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 gD(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?sE:c,u=UE(r),d=u?s?oE:oE.filter(function(e){return UE(e)===u}):eE,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]=hD(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[_E(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function _D(e){if(_E(e)===`auto`)return[];var t=$E(e);return[tD(e),t,tD(t)]}function vD(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,_=_E(g)===g,v=c||(_||!m?[$E(g)]:_D(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(_E(n)===`auto`?gD(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=_E(E),O=UE(E)===tE,ee=[`top`,XT].indexOf(D)>=0,k=ee?`width`:`height`,A=hD(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),j=ee?O?ZT:QT:O?XT:`top`;b[k]>x[k]&&(j=$E(j));var te=$E(j),M=[];if(a&&M.push(A[D]<=0),s&&M.push(A[j]<=0,A[te]<=0),M.every(function(e){return e})){w=E,C=!1;break}S.set(E,M)}if(C)for(var ne=m?3:1,N=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`},re=ne;re>0&&N(re)!==`break`;re--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var yD={name:`flip`,enabled:!0,phase:`main`,fn:vD,requiresIfExists:[`offset`],data:{_skip:!1}};function bD(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 xD(e){return[`top`,ZT,XT,QT].some(function(t){return e[t]>=0})}function SD(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=hD(t,{elementContext:`reference`}),s=hD(t,{altBoundary:!0}),c=bD(o,r),l=bD(s,i,a),u=xD(c),d=xD(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 CD={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:SD};function wD(e,t,n){var r=_E(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=sE.reduce(function(e,n){return e[n]=wD(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 ED={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:TD};function DD(e){var t=e.state,n=e.name;t.modifiersData[n]=mD({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var OD={name:`popperOffsets`,enabled:!0,phase:`read`,fn:DD,data:{}};function kD(e){return e===`x`?`y`:`x`}function AD(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=hD(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=_E(t.placement),v=UE(t.placement),y=!v,b=NE(_),x=kD(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`:QT,k=b===`y`?XT:ZT,A=b===`y`?`height`:`width`,j=S[b],te=j+g[ee],M=j-g[k],ne=p?-w[A]/2:0,N=v===`start`?C[A]:w[A],re=v===`start`?-w[A]:-C[A],ie=t.elements.arrow,ae=p&&ie?wE(ie):{width:0,height:0},oe=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:IE(),se=oe[ee],ce=oe[k],le=PE(0,C[A],ae[A]),ue=y?C[A]/2-ne-le-se-E.mainAxis:N-le-se-E.mainAxis,de=y?-C[A]/2+ne+le+ce+E.mainAxis:re+le+ce+E.mainAxis,fe=t.elements.arrow&&ME(t.elements.arrow),pe=fe?b===`y`?fe.clientTop||0:fe.clientLeft||0:0,me=D?.[b]??0,he=j+ue-me-pe,P=j+de-me,ge=PE(p?yE(te,he):te,j,p?vE(M,P):M);S[b]=ge,O[b]=ge-j}if(s){var F=b===`x`?`top`:QT,_e=b===`x`?XT:ZT,ve=S[x],ye=x===`y`?`height`:`width`,be=ve+g[F],xe=ve-g[_e],Se=[`top`,QT].indexOf(_)!==-1,Ce=D?.[x]??0,we=Se?be:ve-C[ye]-w[ye]-Ce+E.altAxis,Te=Se?ve+C[ye]+w[ye]-Ce-E.altAxis:xe,Ee=p&&Se?FE(we,ve,Te):PE(p?we:be,ve,p?Te:xe);S[x]=Ee,O[x]=Ee-ve}t.modifiersData[r]=O}}var jD={name:`preventOverflow`,enabled:!0,phase:`main`,fn:AD,requiresIfExists:[`offset`]};function MD(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ND(e){return e===uE(e)||!fE(e)?nD(e):MD(e)}function PD(e){var t=e.getBoundingClientRect(),n=bE(t.width)/e.offsetWidth||1,r=bE(t.height)/e.offsetHeight||1;return n!==1||r!==1}function FD(e,t,n){n===void 0&&(n=!1);var r=fE(t),i=fE(t)&&PD(t),a=OE(t),o=CE(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((lE(t)!==`body`||oD(a))&&(s=ND(t)),fE(t)?(c=CE(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=rD(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function ID(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 LD(e){var t=ID(e);return cE.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function RD(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function zD(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 BD={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 HD(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?BD:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},BD,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:dE(e)?cD(e):e.contextElement?cD(e.contextElement):[],popper:cD(t)};var s=LD(zD([].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,ME(n),i.options.strategy===`fixed`),popper:wE(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:RD(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 UD=HD({defaultModifiers:[ZE,OD,JE,gE,ED,yD,jD,HE,CD]});function WD(e){return Xi(`MuiPopper`,e)}Zi(`MuiPopper`,[`root`]);function GD(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 KD(e){return typeof e==`function`?e():e}function qD(e){return e.nodeType!==void 0}var JD=e=>{let{classes:t}=e;return yo({root:[`root`]},WD,t)},YD={},XD=R.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=R.useRef(null),_=ll(g,t),v=R.useRef(null),y=ll(v,u),b=R.useRef(y);da(()=>{b.current=y},[y]),R.useImperativeHandle(u,()=>v.current,[]);let x=GD(c,i),[S,C]=R.useState(x),[w,T]=R.useState(KD(n));R.useEffect(()=>{v.current&&v.current.forceUpdate()}),R.useEffect(()=>{n&&T(KD(n))},[n]),da(()=>{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=UD(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=JD(e),O=f.root??`div`;return(0,z.jsx)(O,{...Av({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root}),children:typeof r==`function`?r(E):r})}),ZD=H(R.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=YD,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=R.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=KD(n);S=e&&qD(e)?Jc(e).body:Jc(null).body}let C=!l&&s&&(!m||v)?`none`:void 0,w=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,z.jsx)(Bl,{disablePortal:o,container:S,children:(0,z.jsx)(XD,{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`})({}),QD=R.forwardRef(function(e,t){let n=La(),{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}=Gc({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,z.jsx)(ZD,{as:i,direction:n?`rtl`:`ltr`,slots:{root:y},slotProps:_??o,...b,ref:t})});function $D(e){return Xi(`MuiTooltip`,e)}var eO=Zi(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function tO(e){return Math.round(e*1e5)/1e5}var nO=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return yo({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${vu(a.split(`-`)[0])}`],arrow:[`arrow`]},$D,t)},rO=H(QD,{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]}})(Vl(({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"] .${eO.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${eO.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${eO.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${eO.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`0 0`}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${eO.arrow}`]:{left:0,marginLeft:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${eO.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${eO.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${eO.arrow}`]:{left:0,marginLeft:`-0.71em`}}}]}))),iO=H(`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${vu(n.placement.split(`-`)[0])}`]]}})(Vl(({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,[`.${eO.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`},[`.${eO.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`},[`.${eO.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${eO.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:`${tO(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${eO.popper}[data-popper-placement*="left"] &`]:{marginRight:`14px`},[`.${eO.popper}[data-popper-placement*="right"] &`]:{marginLeft:`14px`}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${eO.popper}[data-popper-placement*="left"] &`]:{marginRight:`24px`},[`.${eO.popper}[data-popper-placement*="right"] &`]:{marginLeft:`24px`}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${eO.popper}[data-popper-placement*="left"] &`]:{marginLeft:`14px`},[`.${eO.popper}[data-popper-placement*="right"] &`]:{marginRight:`14px`}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${eO.popper}[data-popper-placement*="left"] &`]:{marginLeft:`24px`},[`.${eO.popper}[data-popper-placement*="right"] &`]:{marginRight:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${eO.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${eO.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),aO=H(`span`,{name:`MuiTooltip`,slot:`Arrow`})(Vl(({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)`}}))),oO=!1,sO=new nl,cO={x:0,y:0};function lO(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var uO=R.forwardRef(function(e,t){let n=Gc({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:k,...A}=n,j=R.isValidElement(i)?i:(0,z.jsx)(`span`,{children:i}),te=js(),M=La(),[ne,N]=R.useState(),[re,ie]=R.useState(null),ae=R.useRef(!1),oe=d||g,se=rl(),ce=rl(),le=rl(),ue=rl(),[de,fe]=Ou({controlled:S,default:!1,name:`Tooltip`,state:`open`}),pe=de,me=Eu(_),he=R.useRef(),P=ku(()=>{he.current!==void 0&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ue.clear()});R.useEffect(()=>P,[P]);let ge=e=>{sO.clear(),oO=!0,fe(!0),x&&!pe&&x(e)},F=ku(e=>{sO.start(800+v,()=>{oO=!1}),fe(!1),b&&pe&&b(e),se.start(te.transitions.duration.shortest,()=>{ae.current=!1})}),_e=e=>{ae.current&&e.type!==`touchstart`||(ne&&ne.removeAttribute(`title`),ce.clear(),le.clear(),p||oO&&m?ce.start(oO?m:p,()=>{ge(e)}):ge(e))},ve=e=>{ce.clear(),le.start(v,()=>{F(e)})},[,ye]=R.useState(!1),be=e=>{let t=e?.target??ne;if(!t||!Rg(t)){ye(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),ve(n)}},xe=e=>{ne||N(e.currentTarget),Rg(e.target)&&(ye(!0),_e(e))},Se=e=>{ae.current=!0;let t=j.props;t.onTouchStart&&t.onTouchStart(e)},Ce=e=>{Se(e),le.clear(),se.clear(),P(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,ue.start(h,()=>{document.body.style.WebkitUserSelect=he.current,_e(e)})},we=e=>{j.props.onTouchEnd&&j.props.onTouchEnd(e),P(),le.start(y,()=>{F(e)})};R.useEffect(()=>{if(!pe)return;function e(e){e.key===`Escape`&&F(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[F,pe]);let Te=ul(il(j),N,t);!O&&O!==0&&(pe=!1);let Ee=R.useRef(),De=e=>{let t=j.props;t.onMouseMove&&t.onMouseMove(e),cO={x:e.clientX,y:e.clientY},Ee.current&&Ee.current.update()},Oe={},ke=typeof O==`string`;c?(Oe.title=!pe&&ke&&!u?O:null,Oe[`aria-describedby`]=pe?me:null):(Oe[`aria-label`]=ke?O:null,Oe[`aria-labelledby`]=pe&&!ke?me:null);let Ae={...Oe,...A,...j.props,className:B(A.className,j.props.className),onTouchStart:Se,ref:Te,...g?{onMouseMove:De}:{}},je={};f||(Ae.onTouchStart=Ce,Ae.onTouchEnd=we),u||(Ae.onMouseOver=lO(_e,Ae.onMouseOver),Ae.onMouseLeave=lO(ve,Ae.onMouseLeave),oe||(je.onMouseOver=_e,je.onMouseLeave=ve)),l||(Ae.onFocus=lO(xe,Ae.onFocus),Ae.onBlur=lO(be,Ae.onBlur),oe||(je.onFocus=xe,je.onBlur=be));let Me={...n,isRtl:M,arrow:r,disableInteractive:oe,placement:C,PopperComponentProp:w,touch:ae.current},Ne=typeof E.popper==`function`?E.popper(Me):E.popper,Pe=R.useMemo(()=>{let e=[{name:`arrow`,enabled:!!re,options:{element:re,padding:4}}];return T.popperOptions?.modifiers&&(e=e.concat(T.popperOptions.modifiers)),Ne?.popperOptions?.modifiers&&(e=e.concat(Ne.popperOptions.modifiers)),{...T.popperOptions,...Ne?.popperOptions,modifiers:e}},[re,T.popperOptions,Ne?.popperOptions]),Fe=nO(Me),Ie=typeof E.transition==`function`?E.transition(Me):E.transition,Le={slots:{popper:o.Popper,transition:o.Transition??ee,tooltip:o.Tooltip,arrow:o.Arrow,...D},slotProps:{arrow:E.arrow??s.arrow,popper:{...T,...Ne??s.popper},tooltip:E.tooltip??s.tooltip,transition:{...k,...Ie??s.transition}}},[Re,ze]=ql(`popper`,{elementType:rO,externalForwardedProps:Le,ownerState:Me,className:B(Fe.popper,T?.className)}),[Be,Ve]=ql(`transition`,{elementType:ml,externalForwardedProps:Le,ownerState:Me}),[He,Ue]=ql(`tooltip`,{elementType:iO,className:Fe.tooltip,externalForwardedProps:Le,ownerState:Me}),[We,Ge]=ql(`arrow`,{elementType:aO,className:Fe.arrow,externalForwardedProps:Le,ownerState:Me,ref:ie});return(0,z.jsxs)(R.Fragment,{children:[R.cloneElement(j,Ae),(0,z.jsx)(Re,{as:w??QD,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:cO.y,left:cO.x,right:cO.x,bottom:cO.y,width:0,height:0})}:ne,popperRef:Ee,open:ne?pe:!1,id:me,transition:!0,...je,...ze,popperOptions:Pe,children:({TransitionProps:e})=>(0,z.jsx)(Be,{timeout:te.transitions.duration.shorter,...e,...Ve,children:(0,z.jsxs)(He,{...Ue,children:[O,r?(0,z.jsx)(We,{...Ge}):null]})})})]})}),dO={advanced:`Advanced Multi`,simple:`Simple`},fO=Zi(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`light`,`vertical`,`withChildren`,`withChildrenVertical`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),pO=Zi(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),mO=Zi(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]);function hO(e){return Xi(`MuiMenuItem`,e)}var gO=Zi(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);function _O(e){return Xi(`MuiNativeSelect`,e)}var vO=Zi(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]),yO=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return yo({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${vu(n)}`,a&&`iconOpen`,r&&`disabled`]},_O,t)},bO=H(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${vO.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:`filled`},style:{"&&&":{paddingRight:32}}},{props:{variant:`outlined`},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),xO=H(bO,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:Ns,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${vO.multiple}`]:t.multiple}]}})({}),SO=H(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${vO.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),CO=H(SO,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${vu(n.variant)}`],n.open&&t.iconOpen]}})({}),wO=R.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=yO(l);return(0,z.jsxs)(R.Fragment,{children:[(0,z.jsx)(xO,{ownerState:l,className:B(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,z.jsx)(CO,{as:a,ownerState:l,className:u.icon})]})});function TO(e){return Xi(`MuiSelect`,e)}var EO=Zi(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);function DO(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function OO(e){return e==null||typeof e==`string`&&!e.trim()}function kO(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var AO=R.createContext(null);function jO(){return R.useContext(AO)}var MO=AO.Provider,NO,PO=H(bO,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${EO.select}`]:t.select},{[`&.${EO.select}`]:t[n.variant]},{[`&.${EO.error}`]:t.error},{[`&.${EO.multiple}`]:t.multiple}]}})({[`&.${EO.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),FO=H(SO,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${vu(n.variant)}`],n.open&&t.iconOpen]}})({}),IO=H(`input`,{shouldForwardProp:e=>Ms(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),LO=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return yo({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${vu(n)}`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},TO,t)},RO=R.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:_,name:v,onBlur:y,onChange:b,onClose:x,onFocus:S,onKeyDown:C,onMouseDown:w,onOpen:T,open:E,readOnly:D,renderValue:O,required:ee,SelectDisplayProps:k={},tabIndex:A,type:j,value:te,variant:M=`standard`,...ne}=e,[N,re]=Ou({controlled:te,default:l,name:`Select`}),[ie,ae]=Ou({controlled:E,default:c,name:`Select`}),oe=R.useRef(null),se=R.useRef(null),[ce,le]=R.useState(null),{current:ue}=R.useRef(E!=null),[de,fe]=R.useState(),[pe,me]=R.useState(null),he=ul(t,m),P=R.useCallback(e=>{se.current=e,e&&le(e)},[]),ge=ce?.parentNode;R.useImperativeHandle(he,()=>({focus:()=>{se.current.focus()},node:oe.current,value:N}),[N]);let F=ce!==null&&ie;R.useEffect(()=>{if(!F||!ge||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{fe(ge.clientWidth)});return e.observe(ge),()=>{e.disconnect()}},[F,ge,a]),R.useEffect(()=>{c&&ie&&ce&&!ue&&(fe(a?null:ge.clientWidth),se.current.focus())},[ce,a]),R.useEffect(()=>{i&&se.current.focus()},[i]),R.useEffect(()=>{if(!h)return;let e=Yc(se.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&se.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let _e=(e,t)=>{e?(me(DO(t)),T&&T(t)):(me(null),x&&x(t)),ue||(fe(a?null:ge.clientWidth),ae(e))},ve=e=>{w?.(e),e.button===0&&(e.preventDefault(),se.current.focus(),_e(!0,e))},ye=e=>{_e(!1,e)},be=R.Children.toArray(o),xe=e=>{let t=be.find(t=>t.props.value===e.target.value);t!==void 0&&(re(t.props.value),b&&b(e,t))},Se=e=>t=>{let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(N)?N.slice():[];let t=N.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),N!==n&&(re(n),b)){let r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:v}}),b(i,e)}_||_e(!1,t)}},Ce=e=>{D||([` `,`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),_e(!0,e)),C?.(e))},we=e=>{!F&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:N,name:v}}),y(e))};delete ne[`aria-invalid`];let Te,Ee,De=[],Oe=!1;(rv({value:N})||d)&&(O?Te=O(N):Oe=!0);let ke=be.map(e=>{if(!R.isValidElement(e))return null;let t;if(_){if(!Array.isArray(N))throw Error(Qe(2));t=N.some(t=>kO(t,e.props.value)),t&&Oe&&De.push(e.props.children)}else t=kO(N,e.props.value),t&&Oe&&(Ee=e.props.children);return R.cloneElement(e,{"aria-selected":t?`true`:`false`,onClick:Se(e),onKeyUp:t=>{t.key===` `&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:`option`,selected:t,value:void 0,"data-value":e.props.value})});Oe&&(Te=_?De.length===0?null:De.reduce((e,t,n)=>(e.push(t),n<De.length-1&&e.push(`, `),e),[]):Ee);let Ae=de;!a&&ue&&ce&&(Ae=ge.clientWidth);let je;je=A===void 0?u?null:0:A;let Me=k.id||(v?`mui-component-select-${v}`:void 0),Ne={...e,variant:M,value:N,open:F,error:f},Pe=LO(Ne),Fe={...g.PaperProps,...typeof g.slotProps?.paper==`function`?g.slotProps.paper(Ne):g.slotProps?.paper},Ie={...g.MenuListProps,...typeof g.slotProps?.list==`function`?g.slotProps.list(Ne):g.slotProps?.list},Le=Ga();return(0,z.jsxs)(R.Fragment,{children:[(0,z.jsx)(PO,{as:`div`,ref:P,tabIndex:je,role:`combobox`,"aria-controls":F?Le:void 0,"aria-disabled":u?`true`:void 0,"aria-expanded":F?`true`:`false`,"aria-haspopup":`listbox`,"aria-label":r,"aria-labelledby":[h,Me].filter(Boolean).join(` `)||void 0,"aria-describedby":n,"aria-required":ee?`true`:void 0,"aria-invalid":f?`true`:void 0,onKeyDown:Ce,onMouseDown:u||D?null:ve,onBlur:we,onFocus:S,...k,ownerState:Ne,className:B(k.className,Pe.select,s),id:Me,children:OO(Te)?NO||=(0,z.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``}):Te}),(0,z.jsx)(IO,{"aria-invalid":f,value:Array.isArray(N)?N.join(`,`):N,name:v,ref:oe,"aria-hidden":!0,onChange:xe,tabIndex:-1,disabled:u,className:Pe.nativeInput,autoFocus:i,required:ee,...ne,ownerState:Ne}),(0,z.jsx)(FO,{as:p,className:Pe.icon,ownerState:Ne}),(0,z.jsx)(MO,{value:pe,children:(0,z.jsx)(Yv,{id:`menu-${v||``}`,anchorEl:ge,open:F,onClose:ye,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":h,role:`listbox`,"aria-multiselectable":_?`true`:void 0,disableListWrap:!0,id:Le,...Ie},paper:{...Fe,style:{minWidth:Ae,...Fe==null?null:Fe.style}}},children:ke})})]})}),zO=Cu((0,z.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`);function BO(e){return parseInt(e,10)||0}var VO={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function HO(e){for(let t in e)return!1;return!0}function UO(e){return HO(e)||e.outerHeightStyle===0&&!e.overflowing}var WO=R.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=R.useRef(o!=null),l=R.useRef(null),u=ll(t,l),d=R.useRef(null),f=R.useRef(null),p=R.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=Xc(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
|
|
200
|
+
`&&(n.value+=` `);let o=a.boxSizing,s=BO(a.paddingBottom)+BO(a.paddingTop),c=BO(a.borderBottomWidth)+BO(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),m=tu(()=>{let e=l.current,t=p();if(!e||!t||UO(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=R.useCallback(()=>{let e=l.current,t=p();if(!e||!t||UO(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[p]),g=R.useRef(-1);return da(()=>{let e=Kc(h),t=l?.current;if(!t)return;let n=Xc(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[p,h,m]),da(()=>{h()}),(0,z.jsxs)(R.Fragment,{children:[(0,z.jsx)(`textarea`,{value:o,onChange:e=>{c||h();let t=e.target,r=t.value.length,i=t.value.endsWith(`
|
|
201
|
+
`),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,z.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...VO.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function GO(e){return Xi(`MuiInputBase`,e)}var KO=Zi(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputSizeSmall`,`inputMultiline`,`inputTypeSearch`,`inputAdornedStart`,`inputAdornedEnd`,`inputHiddenLabel`]),qO,JO=`mui-auto-fill`,YO=`mui-auto-fill-cancel`,XO=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${vu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ZO=(e,t)=>{let{ownerState:n}=e;return[t.input,n.size===`small`&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type===`search`&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},QO=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return yo({root:[`root`,`color${vu(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${vu(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,u&&`inputMultiline`,f===`small`&&`inputSizeSmall`,l&&`inputHiddenLabel`,p&&`inputAdornedStart`,a&&`inputAdornedEnd`,d&&`readOnly`]},GO,t)},$O=H(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:XO})(Vl(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${KO.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),ek=H(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:ZO})(Vl(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:`inherit`,letterSpacing:`inherit`,color:`currentColor`,padding:`4px 0 5px`,border:0,boxSizing:`content-box`,background:`none`,height:`1.4375em`,margin:0,WebkitTapHighlightColor:`transparent`,display:`block`,minWidth:0,width:`100%`,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${KO.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${KO.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:YO,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:JO}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),tk=Wc({[`@keyframes ${JO}`]:{from:{animationName:JO}},[`@keyframes ${YO}`]:{from:{animationName:YO}}}),nk=R.forwardRef(function(e,t){let n=Gc({props:e,name:`MuiInputBase`}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:o,color:s,components:c={},componentsProps:l={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,error:m,fullWidth:h=!1,id:g,inputComponent:_=`input`,inputProps:v={},inputRef:y,margin:b,maxRows:x,minRows:S,multiline:C=!1,name:w,onBlur:T,onChange:E,onClick:D,onFocus:O,onKeyDown:ee,onKeyUp:k,placeholder:A,readOnly:j,renderSuffix:te,rows:M,size:ne,slotProps:N={},slots:re={},startAdornment:ie,type:ae=`text`,value:oe,...se}=n,ce=v.value==null?oe:v.value,{current:le}=R.useRef(ce!=null),ue=R.useRef(),de=R.useCallback(e=>{},[]),fe=ul(ue,y,v.ref,de),[pe,me]=R.useState(!1),he=G_(),P=U_({props:n,muiFormControl:he,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});P.focused=he?he.focused:pe,R.useEffect(()=>{!he&&d&&pe&&(me(!1),T&&T())},[he,d,pe,T]);let ge=he&&he.onFilled,F=he&&he.onEmpty,_e=R.useCallback(e=>{rv(e)?ge&&ge():F&&F()},[ge,F]);Tu(()=>{le&&_e({value:ce})},[ce,_e,le]),Tu(()=>{if(!a)return;let e=ue.current;if(!e)return;let t=Yc(e),n=Ol(t),r=n==null||n===t.body||n===t.documentElement;e===n?he&&he.onFocus?he.onFocus():me(!0):r&&e.focus()},[a]);let ve=e=>{O&&O(e),v.onFocus&&v.onFocus(e),he&&he.onFocus?he.onFocus(e):me(!0)},ye=e=>{T&&T(e),v.onBlur&&v.onBlur(e),he&&he.onBlur?he.onBlur(e):me(!1)},be=(e,...t)=>{if(!le){let t=e.target||ue.current;if(t==null)throw Error(Qe(1));_e({value:t.value})}v.onChange&&v.onChange(e,...t),E&&E(e,...t)};R.useEffect(()=>{_e(ue.current)},[]);let xe=e=>{ue.current&&e.currentTarget===e.target&&ue.current.focus(),D&&D(e)},Se=_,Ce=v;C&&Se===`input`&&(Ce=M?{type:void 0,minRows:M,maxRows:M,...Ce}:{type:void 0,maxRows:x,minRows:S,...Ce},Se=WO);let we=e=>{_e(e.animationName===YO?ue.current:{value:`x`})};R.useEffect(()=>{he&&he.setAdornedStart(!!ie)},[he,ie]);let Te={...n,color:P.color||`primary`,disabled:P.disabled,endAdornment:p,error:P.error,focused:P.focused,formControl:he,fullWidth:h,hiddenLabel:P.hiddenLabel,multiline:C,size:P.size,startAdornment:ie,type:ae},Ee=QO(Te),De=re.root||c.Root||$O,Oe=N.root||l.root||{},ke=re.input||c.Input||ek;return Ce={...Ce,...N.input??l.input},(0,z.jsxs)(R.Fragment,{children:[!f&&typeof tk==`function`&&(qO||=(0,z.jsx)(tk,{})),(0,z.jsxs)(De,{...Oe,ref:t,onClick:xe,...se,...!Hc(De)&&{ownerState:{...Te,...Oe.ownerState}},className:B(Ee.root,Oe.className,o,j&&`MuiInputBase-readOnly`),children:[ie,(0,z.jsx)(W_.Provider,{value:null,children:(0,z.jsx)(ke,{"aria-invalid":P.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:u,disabled:P.disabled,id:g,onAnimationStart:we,name:w,placeholder:A,readOnly:j,required:P.required,rows:M,value:ce,onKeyDown:ee,onKeyUp:k,type:ae,...Ce,...!Hc(ke)&&{as:Se,ownerState:{...Te,...Ce.ownerState}},ref:fe,className:B(Ee.input,Ce.className,j&&`MuiInputBase-readOnly`),onBlur:ye,onChange:be,onFocus:ve})}),p,te?te({...P,startAdornment:ie}):null]})]})});function rk(e){return Xi(`MuiInput`,e)}var ik={...KO,...Zi(`MuiInput`,[`root`,`underline`,`input`])},ak=e=>{let{classes:t,disableUnderline:n}=e,r=yo({root:[`root`,!n&&`underline`],input:[`input`]},rk,t);return{...t,...r}},ok=H($O,{shouldForwardProp:e=>Ns(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...XO(e,t),!n.disableUnderline&&t.underline]}})(Vl(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${ik.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${ik.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${ik.disabled}, .${ik.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${ik.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(a_()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),sk=H(ek,{name:`MuiInput`,slot:`Input`,overridesResolver:ZO})({}),ck=R.forwardRef(function(e,t){let n=Gc({props:e,name:`MuiInput`}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:o=!1,inputComponent:s=`input`,multiline:c=!1,slotProps:l,slots:u={},type:d=`text`,...f}=n,p=ak(n),m={root:{ownerState:{disableUnderline:r}}},h=l??a?Cr(l??a,m):m;return(0,z.jsx)(nk,{slots:{root:u.root??i.Root??ok,input:u.input??i.Input??sk},slotProps:h,fullWidth:o,inputComponent:s,multiline:c,ref:t,type:d,...f,classes:p})});ck.muiName=`Input`;function lk(e){return Xi(`MuiFilledInput`,e)}var uk={...KO,...Zi(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])},dk=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=yo({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${vu(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},lk,t);return{...t,...c}},fk=H($O,{shouldForwardProp:e=>Ns(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...XO(e,t),!n.disableUnderline&&t.underline]}})(Vl(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${uk.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${uk.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${uk.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${uk.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${uk.disabled}, .${uk.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${uk.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(a_()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),pk=H(ek,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:ZO})(Vl(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`},[e.getColorSchemeSelector(`dark`)]:{"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`}}},variants:[{props:{size:`small`},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),mk=R.forwardRef(function(e,t){let n=Gc({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:o=!1,hiddenLabel:s,inputComponent:c=`input`,multiline:l=!1,slotProps:u,slots:d={},type:f=`text`,...p}=n,m={...n,disableUnderline:r,fullWidth:o,inputComponent:c,multiline:l,type:f},h=dk(n),g={root:{ownerState:m},input:{ownerState:m}},_=u??a?Cr(g,u??a):g;return(0,z.jsx)(nk,{slots:{root:d.root??i.Root??fk,input:d.input??i.Input??pk},slotProps:_,fullWidth:o,inputComponent:c,multiline:l,ref:t,type:f,...p,classes:h})});mk.muiName=`Input`;var hk,gk=H(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:Ns})({textAlign:`left`,position:`absolute`,bottom:0,right:0,top:-5,left:0,margin:0,padding:`0 8px`,pointerEvents:`none`,borderRadius:`inherit`,borderStyle:`solid`,borderWidth:1,overflow:`hidden`,minWidth:`0%`}),_k=H(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:Ns})(Vl(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,transition:e.transitions.create(`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,transition:e.transitions.create(`max-width`,{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:`nowrap`,"& > span":{paddingLeft:5,paddingRight:5,display:`inline-block`,opacity:0,visibility:`visible`}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:`100%`,transition:e.transitions.create(`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function vk(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,z.jsx)(gk,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,z.jsx)(_k,{ownerState:c,children:s?(0,z.jsx)(`span`,{children:i}):hk||=(0,z.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``})})})}function yk(e){return Xi(`MuiOutlinedInput`,e)}var bk={...KO,...Zi(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])},xk=e=>{let{classes:t}=e,n=yo({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},yk,t);return{...t,...n}},Sk=H($O,{shouldForwardProp:e=>Ns(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:XO})(Vl(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bk.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bk.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${bk.focused} .${bk.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(a_()).map(([t])=>({props:{color:t},style:{[`&.${bk.focused} .${bk.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${bk.error} .${bk.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bk.disabled} .${bk.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),Ck=H(vk,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(Vl(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),wk=H(ek,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:ZO})(Vl(({theme:e})=>({padding:`16.5px 14px`,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderRadius:`inherit`},[e.getColorSchemeSelector(`dark`)]:{"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`}}},variants:[{props:{size:`small`},style:{padding:`8.5px 14px`}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Tk=R.forwardRef(function(e,t){let n=Gc({props:e,name:`MuiOutlinedInput`}),{components:r={},fullWidth:i=!1,inputComponent:a=`input`,label:o,multiline:s=!1,notched:c,slots:l={},slotProps:u={},type:d=`text`,...f}=n,p=xk(n),m=G_(),h=U_({props:n,muiFormControl:m,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),g={...n,color:h.color||`primary`,disabled:h.disabled,error:h.error,focused:h.focused,formControl:m,fullWidth:i,hiddenLabel:h.hiddenLabel,multiline:s,size:h.size,type:d},_=l.root??r.Root??Sk,v=l.input??r.Input??wk,[y,b]=ql(`notchedOutline`,{elementType:Ck,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:l,slotProps:u},additionalProps:{label:o!=null&&o!==``&&h.required?(0,z.jsxs)(R.Fragment,{children:[o,` `,`*`]}):o}});return(0,z.jsx)(nk,{slots:{root:_,input:v},slotProps:u,renderSuffix:e=>(0,z.jsx)(y,{...b,notched:c===void 0?!!(e.startAdornment||e.filled||e.focused):c}),fullWidth:i,inputComponent:a,multiline:s,ref:t,type:d,...f,classes:{...p,notchedOutline:null}})});Tk.muiName=`Input`;var Ek=e=>{let{classes:t}=e,n=yo({root:[`root`]},TO,t);return{...t,...n}},Dk={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>Ns(e)&&e!==`variant`},Ok=H(ck,Dk)(``),kk=H(Tk,Dk)(``),Ak=H(mk,Dk)(``),jk=R.forwardRef(function(e,t){let n=Gc({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=zO,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:g=!1,native:_=!1,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:S,variant:C=`outlined`,...w}=n,T=_?wO:RO,E=U_({props:n,muiFormControl:G_(),states:[`variant`,`error`]}),D=E.variant||C,O={...n,variant:D,classes:a},ee=Ek(O),{root:k,...A}=ee,j=d||{standard:(0,z.jsx)(Ok,{ownerState:O}),outlined:(0,z.jsx)(kk,{label:p,ownerState:O}),filled:(0,z.jsx)(Ak,{ownerState:O})}[D],te=ul(t,il(j));return(0,z.jsx)(R.Fragment,{children:R.cloneElement(j,{inputComponent:T,inputProps:{children:i,error:E.error,IconComponent:l,variant:D,type:void 0,multiple:g,..._?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:{id:u,...S}},...f,classes:f?Cr(A,f.classes):A,...d?d.props.inputProps:{}},...(g&&_||c)&&D===`outlined`?{notched:!0}:{},ref:te,className:B(j.props.className,o,ee.root),...!d&&{variant:D},...w})})});jk.muiName=`Select`;function Mk(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}var Nk=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Pk=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=yo({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},hO,o);return{...o,...s}},Fk=H(t_,{shouldForwardProp:e=>Ns(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:Nk})(Vl(({theme:e})=>({...e.typography.body1,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:`border-box`,whiteSpace:`nowrap`,"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${gO.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${gO.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${gO.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${gO.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gO.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fO.inset}`]:{marginLeft:52},[`& .${mO.root}`]:{marginTop:0,marginBottom:0},[`& .${mO.inset}`]:{paddingLeft:36},[`& .${pO.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${pO.root} svg`]:{fontSize:`1.25rem`}}}]}))),Ik=R.forwardRef(function(e,t){let n=Gc({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=jO(),m=R.useContext(jv),h=R.useMemo(()=>({dense:a||m.dense||!1,disableGutters:s}),[m.dense,a,s]),g=R.useRef(null);Tu(()=>{r&&g.current&&Mk(g.current,p)},[r]);let _={...n,dense:h.dense,divider:o,disableGutters:s},v=Pk(n),y=ul(g,t),{root:b,...x}=v,S;return n.disabled||(S=u===void 0?-1:u),(0,z.jsx)(jv.Provider,{value:h,children:(0,z.jsx)(Fk,{ref:y,role:l,tabIndex:S,component:i,focusVisibleClassName:B(v.focusVisible,c),className:B(v.root,d),...f,ownerState:_,classes:x})})}),Lk=()=>{document.querySelectorAll(`.mq-supsub.mq-sup-only`).forEach(e=>{let t=e.previousElementSibling;t&&t.classList.contains(`mq-non-leaf`)&&t.querySelector(`.mq-fraction`)?e.classList.add(`mq-after-fraction-group`):e.classList.remove(`mq-after-fraction-group`)})},{commonMqFontStyles:Rk,commonMqKeyboardStyles:zk,longdivStyles:Bk,supsubStyles:Vk}=wT,Hk=v(`@pie-lib:math-toolbar:editor-and-pad`),Uk=/\.|,/g,Wk=H(`div`)(({theme:e})=>({zIndex:9,position:`relative`,textAlign:`center`,width:`auto`,"& > .mq-math-mode":{border:`solid 1px lightgrey`},"& > .mq-focused":{outline:`none`,boxShadow:`none`,border:`dotted 1px ${e.palette.primary.main}`,borderRadius:`0px`},"& .mq-overarrow-inner":{border:`none !important`,paddingTop:`0 !important`},"& .mq-overarrow-inner-right":{display:`none !important`},"& .mq-overarrow-inner-left":{display:`none !important`},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-overarrow.mq-arrow-both":{top:`7.8px`,marginTop:`0px`,minWidth:`1.23em`},"& .mq-parallelogram":{lineHeight:.85}})),Gk=H(`div`)(({theme:e,hide:t})=>({display:t?`none`:`flex`,alignItems:`center`,"& .mq-editable-field .mq-cursor":{top:`-4px`},"& .mq-math-mode .mq-selection, .mq-editable-field .mq-selection":{paddingTop:`18px`},"& .mq-math-mode .mq-overarrow":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`},"& .mq-math-mode .mq-overline .mq-overline-inner":{paddingTop:`0.4em !important`},"& .mq-overarrow.mq-arrow-both":{minWidth:`1.23em`,"& *":{lineHeight:`1 !important`},"&:before":{top:`-0.45em`,left:`-1px`},"&:after":{position:`absolute !important`,top:`0px !important`,right:`-2px`},"&.mq-empty:after":{top:`-0.45em`}},"& .mq-overarrow.mq-arrow-right":{"&:before":{top:`-0.4em`,right:`-1px`}},"& *":{...Rk,...Vk,...Bk,"& .mq-math-mode .mq-sqrt-prefix":{verticalAlign:`baseline !important`,top:`1px !important`,left:`-0.1em !important`},"& .mq-math-mode .mq-overarc ":{paddingTop:`0.45em !important`},"& .mq-math-mode .mq-empty":{padding:`9px 1px !important`},"& .mq-math-mode .mq-root-block":{paddingTop:`10px`},"& .mq-scaled .mq-sqrt-prefix":{top:`0 !important`},"& .mq-math-mode .mq-longdiv .mq-longdiv-inner":{marginLeft:`4px !important`,paddingTop:`6px !important`,paddingLeft:`6px !important`},"& .mq-math-mode .mq-paren":{verticalAlign:`top !important`,padding:`1px 0.1em !important`},"& .mq-math-mode .mq-sqrt-stem":{borderTop:`0.07em solid`,marginLeft:`-1.5px`,marginTop:`-2px !important`,paddingTop:`5px !important`},"& .mq-math-mode .mq-denominator":{marginTop:`-5px !important`,padding:`0.5em 0.1em 0.1em !important`},"& .mq-math-mode .mq-numerator, .mq-math-mode .mq-over":{padding:`0 0.1em !important`,paddingBottom:`0 !important`,marginBottom:`-2px`}},'& span[data-prime="true"]':{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}})),Kk=H(cv)({flex:`initial`,width:`25%`,minWidth:`100px`,marginLeft:`15px`,marginTop:`5px`,marginBottom:`5px`,marginRight:`5px`,"& label":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`},"& div":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}),qk=H(tv)(()=>({backgroundColor:`transparent`})),Jk=H(`div`)(({theme:e,error:t})=>({minWidth:`500px`,maxWidth:`900px`,minHeight:`30px`,width:`100%`,display:`flex`,marginTop:e.spacing(1),marginBottom:e.spacing(1),...t&&{border:`2px solid red`},"& .mq-sqrt-prefix .mq-scaled":{verticalAlign:`middle !important`}})),Yk=H(DT)(({controlledKeypadMode:e})=>({maxWidth:e?`400px`:`500px`,color:kf(),backgroundColor:Zf(),padding:`2px`})),Xk=H(k_)({position:`absolute`,right:`12px`,border:`1px solid lightgrey`,color:kf()}),Zk=H(`hr`)(({theme:e})=>({padding:0,margin:0,height:`1px`,border:`none`,borderBottom:`solid 1px ${e.palette.primary.main}`})),Qk=H(YT)(({mode:e})=>({...zk,...e===`language`&&{"& *":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}})),$k=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}},eA=class extends R.Component{static propTypes={classNames:I.object,keypadMode:I.oneOfType([I.string,I.number]),autoFocus:I.bool,allowAnswerBlock:I.bool,showKeypad:I.bool,controlledKeypad:I.bool,controlledKeypadMode:I.bool,error:I.string,noDecimal:I.bool,hideInput:I.bool,noLatexHandling:I.bool,layoutForKeyPad:I.object,maxResponseAreas:I.number,additionalKeys:I.array,latex:I.string.isRequired,onAnswerBlockAdd:I.func,onFocus:I.func,onBlur:I.func,onChange:I.func.isRequired,setKeypadInteraction:I.func};constructor(e){super(e),this.state={equationEditor:`item-authoring`,addDisabled:!1}}componentDidMount(){this.input&&this.props.autoFocus&&(this.focusTimeout=setTimeout(()=>{this.focusTimeout=void 0,this.input?.focus()},0))}componentWillUnmount(){this.focusTimeout&&clearTimeout(this.focusTimeout)}onClick=e=>{let{noDecimal:t,noLatexHandling:n,onChange:r}=this.props,i=$k(e);if(Hk(`mathChange: `,i),n){r(i.value);return}t&&(i.value===`.`||i.value===`,`)||i&&(i.type===`clear`?(Hk(`call clear...`),this.input.clear()):i.type===`command`?this.input.command(i.value):i.type===`cursor`?this.input.keystroke(i.value):i.type===`answer`?this.input.write(`%response%`):this.input.write(i.value))};updateDisable=e=>{let{maxResponseAreas:t}=this.props;if(t){let n=this.checkResponseAreasNumber(t,e);this.setState({addDisabled:n})}};onAnswerBlockClick=()=>{this.props.onAnswerBlockAdd(),this.onClick({type:`answer`}),this.updateDisable(!0)};onEditorChange=e=>{let{onChange:t,noDecimal:n}=this.props;if(rC(),Lk(),this.updateDisable(!0),n&&(e.indexOf(`.`)!==-1||e.indexOf(`,`)!==-1)&&this.input){this.input.clear(),this.input.write(e.replace(Uk,``));return}let r=e.match(/[0-9]\\ \\frac\{[^\{]*\}\{ \}/);if(this.input&&r&&r?.length){try{this.input.mathField.__controller.cursor.insLeftOf(this.input.mathField.__controller.cursor.parent[-1].parent),this.input.mathField.el().dispatchEvent(new KeyboardEvent(`keydown`,{keyCode:8}))}catch(e){console.error(e.toString())}return}t(e)};shouldComponentUpdate(e,t){let n=this.input.mathField.latex()!==e.latex;return Hk(`[shouldComponentUpdate] `,`inputIsDifferent: `,n),!Wb(this.props.error,e.error)||!n&&this.props.keypadMode!==e.keypadMode||!n&&this.props.noDecimal!==e.noDecimal||!n&&this.state.equationEditor!==t.equationEditor?!0:!n&&this.props.controlledKeypad?this.props.showKeypad!==e.showKeypad:n}onEditorTypeChange=e=>{this.setState({equationEditor:e.target.value})};checkResponseAreasNumber=(e,t)=>{let{latex:n}=this.input&&this.input.props||{};if(n){let r=(n.match(/answerBlock/g)||[]).length;return t?r===e-1:r===e}return!1};render(){let{classNames:e,keypadMode:t,allowAnswerBlock:n,additionalKeys:r,controlledKeypad:i,controlledKeypadMode:a,showKeypad:o,setKeypadInteraction:s,noDecimal:c,hideInput:l,layoutForKeyPad:u,latex:d,onFocus:f,onBlur:p,error:m}=this.props,h=!i||i&&o,{addDisabled:g}=this.state;return Hk(`[render]`,d),(0,z.jsxs)(Wk,{className:e.mathToolbar,children:[(0,z.jsxs)(Gk,{hide:l,children:[a&&(0,z.jsxs)(Kk,{variant:`standard`,children:[(0,z.jsx)(qk,{id:`equation-editor-label`,children:`Equation Editor`}),(0,z.jsxs)(jk,{labelId:`equation-editor-label`,id:`equation-editor-select`,name:`equationEditor`,label:`Equation Editor`,onChange:this.onEditorTypeChange,value:this.state.equationEditor,MenuProps:{transitionDuration:{enter:225,exit:195}},children:[(0,z.jsx)(Ik,{value:`non-negative-integers`,children:`Numeric - Non-Negative Integers`}),(0,z.jsx)(Ik,{value:`integers`,children:`Numeric - Integers`}),(0,z.jsx)(Ik,{value:`decimals`,children:`Numeric - Decimals`}),(0,z.jsx)(Ik,{value:`fractions`,children:`Numeric - Fractions`}),(0,z.jsx)(Ik,{value:1,children:`Grade 1 - 2`}),(0,z.jsx)(Ik,{value:3,children:`Grade 3 - 5`}),(0,z.jsx)(Ik,{value:6,children:`Grade 6 - 7`}),(0,z.jsx)(Ik,{value:8,children:`Grade 8 - HS`}),(0,z.jsx)(Ik,{value:`geometry`,children:`Geometry`}),(0,z.jsx)(Ik,{value:`advanced-algebra`,children:`Advanced Algebra`}),(0,z.jsx)(Ik,{value:`statistics`,children:`Statistics`}),(0,z.jsx)(Ik,{value:`item-authoring`,children:`Item Authoring`})]})]}),(0,z.jsx)(Jk,{error:m,children:(0,z.jsx)(Yk,{onFocus:()=>{f&&f(),this.updateDisable(!1)},onBlur:e=>{this.updateDisable(!1),p&&p(e)},className:e&&e.editor||``,controlledKeypadMode:a,ref:e=>this.input=e,latex:d,onChange:this.onEditorChange})})]}),n&&(0,z.jsx)(Xk,{type:`primary`,style:{bottom:h?`320px`:`20px`},onClick:this.onAnswerBlockClick,disabled:g,children:`+ Response Area`}),(0,z.jsx)(Zk,{}),h&&(0,z.jsx)(Qk,{mode:a?this.state.equationEditor:t,controlledKeypadMode:a,layoutForKeyPad:u,additionalKeys:r,onClick:this.onClick,noDecimal:c,setKeypadInteraction:s})]})}},tA=Cu((0,z.jsx)(`path`,{d:`M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`}),`Check`),nA=H(SC)(({hideBackground:e})=>({verticalAlign:`top`,width:`28px`,height:`28px`,color:If(),...e&&{backgroundColor:Of(`pie`)(`background`,W.WHITE),"&:hover":{backgroundColor:Qf()}},"& .MuiIconButton-label":{position:`absolute`,top:`2px`}})),rA=({onClick:e,hideBackground:t})=>(0,z.jsx)(nA,{"aria-label":`Done`,onClick:e,hideBackground:t,size:`large`,children:(0,z.jsx)(tA,{})});rA.propTypes={onClick:I.func,hideBackground:I.bool};var iA=rA,aA=H(`div`)({display:`flex`,width:`100%`,zIndex:8,alignItems:`center`}),oA=class extends R.Component{static propTypes={autoFocus:I.bool,allowAnswerBlock:I.bool,controlledKeypad:I.bool,controlledKeypadMode:I.bool,keypadMode:I.oneOfType([I.string,I.number]),classNames:I.object,error:I.string,maxResponseAreas:I.number,showKeypad:I.bool,noDecimal:I.bool,additionalKeys:I.array,latex:I.string.isRequired,onAnswerBlockAdd:I.func,onChange:I.func,onDone:I.func.isRequired,onFocus:I.func,onBlur:I.func,hideDoneButton:I.bool,keyPadCharacterRef:I.func,setKeypadInteraction:I.func};static defaultProps={classNames:{},keypadMode:`item-authoring`,autoFocus:!1,allowAnswerBlock:!1,controlledKeypad:!1,controlledKeypadMode:!1,noDecimal:!1,showKeypad:!0,additionalKeys:[],onChange:()=>{},onAnswerBlockAdd:()=>{},onFocus:()=>{},hideDoneButton:!1};constructor(e){super(e),this.state={latex:e.latex}}done=()=>{this.props.onDone(this.state.latex)};UNSAFE_componentWillReceiveProps(e){this.setState({latex:e.latex})}onChange=e=>{this.setState({latex:e}),this.props.onChange(e)};render(){let{latex:e}=this.state,{classNames:t,autoFocus:n,allowAnswerBlock:r,onAnswerBlockAdd:i,controlledKeypad:a,controlledKeypadMode:o,keypadMode:s,noDecimal:c,additionalKeys:l,showKeypad:u,onFocus:d,onBlur:f,hideDoneButton:p,error:m,keyPadCharacterRef:h,setKeypadInteraction:g,maxResponseAreas:_}=this.props;return(0,z.jsx)(sA,{autoFocus:n,classNames:t,onAnswerBlockAdd:i,allowAnswerBlock:r,latex:e,additionalKeys:l,noDecimal:c,keypadMode:s,keyPadCharacterRef:h,setKeypadInteraction:g,onChange:this.onChange,onDone:this.done,onFocus:d,onBlur:f,showKeypad:u,controlledKeypad:a,controlledKeypadMode:o,hideDoneButton:p,error:m,maxResponseAreas:_})}},sA=class extends R.Component{static propTypes={classNames:I.object,latex:I.string.isRequired,keypadMode:I.oneOfType([I.string,I.number]),hideInput:I.bool,noLatexHandling:I.bool,layoutForKeyPad:I.object,onChange:I.func.isRequired,onDone:I.func.isRequired,onBlur:I.func,onAnswerBlockAdd:I.func,additionalKeys:I.array,onFocus:I.func,autoFocus:I.bool,noDecimal:I.bool,allowAnswerBlock:I.bool,controlledKeypad:I.bool,controlledKeypadMode:I.bool,showKeypad:I.bool,hideDoneButton:I.bool,hideDoneButtonBackground:I.bool,error:I.any,maxResponseAreas:I.number,keyPadCharacterRef:I.object,setKeypadInteraction:I.func};static defaultProps={classNames:{},hideDoneButtonBackground:!1};render(){let{classNames:e,autoFocus:t,allowAnswerBlock:n,onAnswerBlockAdd:r,controlledKeypad:i,controlledKeypadMode:a,additionalKeys:o,showKeypad:s,keypadMode:c,noDecimal:l,hideInput:u,noLatexHandling:d,layoutForKeyPad:f,keyPadCharacterRef:p,setKeypadInteraction:m,latex:h,onChange:g,onDone:_,onFocus:v,onBlur:y,hideDoneButton:b,hideDoneButtonBackground:x,error:S,maxResponseAreas:C}=this.props;return(0,z.jsxs)(aA,{className:e&&e.toolbar||``,ref:p,children:[(0,z.jsx)(`div`,{}),(0,z.jsx)(eA,{autoFocus:t,keypadMode:c,classNames:e||{},controlledKeypad:i,controlledKeypadMode:a,noDecimal:l,hideInput:u,noLatexHandling:d,layoutForKeyPad:f,showKeypad:s,additionalKeys:o,allowAnswerBlock:n,onAnswerBlockAdd:r,latex:h,onChange:g,onFocus:v,onBlur:y,error:S,maxResponseAreas:C,setKeypadInteraction:m}),(!i||i&&s)&&!b&&(0,z.jsx)(iA,{hideBackground:x,onClick:_})]})}},cA=H(`div`)(({theme:e})=>({marginTop:e.spacing(2),marginBottom:e.spacing(2),padding:e.spacing(1)})),lA=H(`div`,{shouldForwardProp:e=>![`isCorrect`,`isIncorrect`].includes(e)})(({theme:e,isCorrect:t,isIncorrect:n})=>({color:kf(),background:Zf(),border:t?`2px solid ${Nf()} !important`:n?`2px solid ${Lf()} !important`:`1px solid ${Uf()}`,width:`fit-content`,fontSize:`1rem`,padding:t||n?e.spacing(1):e.spacing(.5),letterSpacing:t||n?`0.5px`:`normal`,"& > .mq-math-mode":{"& > .mq-hasCursor":{"& > .mq-cursor":{display:`none`}}}}));if(typeof document<`u`){let e=`math-inline-simple-question-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=`
|
|
200
202
|
.response-editor {
|
|
201
203
|
display: flex;
|
|
202
204
|
justify-content: center;
|
|
@@ -207,14 +209,14 @@ mid `,`∤`),X.intercal=X[`⊺`]=K($,`\\intercal `,`⊺`),X.veebar=X[`
|
|
|
207
209
|
padding: 8px;
|
|
208
210
|
}
|
|
209
211
|
.response-editor.mq-math-mode {
|
|
210
|
-
border: 1px solid ${
|
|
212
|
+
border: 1px solid ${Uf()};
|
|
211
213
|
}
|
|
212
|
-
`,document.head.appendChild(t)}}var
|
|
214
|
+
`,document.head.appendChild(t)}}var uA=class extends R.Component{static propTypes={onSimpleResponseChange:I.func,model:I.object.isRequired,emptyResponse:I.bool,session:I.object.isRequired,showCorrect:I.bool,onSubFieldFocus:I.func.isRequired,showKeypad:I.bool.isRequired};constructor(e){super(e),this.mathToolBarId=jg(`math-toolbar`)}mathToolBarContainsTarget=e=>document.getElementById(this.mathToolBarId).contains(e.target);handleClick=e=>{try{this.mathToolBarContainsTarget(e)||this.setState({showKeypad:!1})}catch{}};onFocus=()=>{let{onSubFieldFocus:e}=this.props;e(this.mathToolBarId)};render(){let{model:e,showCorrect:t,session:n,emptyResponse:r,onSimpleResponseChange:i,showKeypad:a}=this.props,{config:o,disabled:s,correctness:c}=e||{};if(!o)return;let l=c&&c.correct,{responses:u,equationEditor:d}=o;return(0,z.jsx)(cA,{"data-keypad":!0,children:t||s?(0,z.jsx)(lA,{isIncorrect:!r&&!l&&!t,isCorrect:!r&&(l||t),children:(0,z.jsx)(PT,{latex:t?u&&u.length&&u[0].answer:n.response||``})}):(0,z.jsx)(`div`,{id:this.mathToolBarId,children:(0,z.jsx)(oA,{classNames:{editor:`response-editor`},latex:n.response,keypadMode:d,onChange:i,onDone:()=>{},onFocus:this.onFocus,controlledKeypad:!0,showKeypad:a,hideDoneButton:!0})})})}};function dA(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function fA(e,t){return!e||dA(e)?e:dA(e.default)?e.default:t&&dA(e[t])?e[t]:t&&dA(e[t]?.default)?e[t].default:e}var pA=fA(z_,`UiLayout`)||fA(bA.UiLayout,`UiLayout`),mA=fA(bv,`PreviewPrompt`)||fA(bA.PreviewPrompt,`PreviewPrompt`),hA=fA(xv,`Readable`)||fA(bA.Readable,`Readable`),gA=fA(Lg,`Collapsible`)||fA(bA.Collapsible,`Collapsible`),_A=fA(Vp,`Feedback`)||fA(bA.Feedback,`Feedback`),vA=Zv,yA=vA.default,bA=yA&&typeof yA==`object`?yA:vA,{translator:xA}=Ye,SA=!1,CA=/\\newline/g,wA=/{{response}}/gm,TA=6,EA=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function DA(e=[]){return e.map(e=>({name:e,latex:e,write:e,label:e}))}function OA(e,t){let n=e;for(;n!==null;){if(t&&n===t)return!0;n=n.parentNode}return!1}function kA(e=[],t){return Math.floor(e.length/5)*30+(t===`miscellaneous`?600:500)}function AA(e,t){let{config:n,disabled:r}=e||{},{expression:i,responses:a,printMode:o,alwaysShowCorrect:s}=n||{};if(n&&i){let e=i;if(t.showCorrect)return a&&a.length&&a[0].answer;let n=1;return(e||``).replace(wA,function(){let e=t.session.answers[`r${n}`];if(o&&!s){let e=`\\ \\ `.repeat(30)+`\\newline `;return`\\MathQuillMathField[r${n++}]{${e.repeat(3)}}`}return r?`\\embed{answerBlock}[r${n++}]`:`\\MathQuillMathField[r${n++}]{${e&&e.value||``}}`}).replace(CA,`\\embed{newLine}[]`)}}function jA(e,t){let n={};if(t.config&&t.config.expression){let r=1;(t.config.expression||``).replace(wA,()=>{n[`r${r}`]={value:e&&e.answers&&e.answers[`r${r}`]&&e.answers[`r${r}`].value||``},r+=1})}return n}var MA=class extends R.Component{static propTypes={session:I.object.isRequired,onSessionChange:I.func,model:I.object.isRequired};constructor(e){super(e);let{model:t,session:n}=e,r=jA(n,t);this.state={session:{...e.session,answers:r},activeAnswerBlock:``,showCorrect:this.props.model.config.alwaysShowCorrect||!1,tooltipContainerRef:R.createRef()},this.instructionsIdPrefix=jg(`math-inline-instructions`)}UNSAFE_componentWillMount(){typeof window<`u`&&(SA||=(gT(`answerBlock`,e=>{let t=NA();return{htmlString:`<div class="${t.blockContainer}">
|
|
213
215
|
<div class="${t.blockResponse}" data-answer-block-index="${e}">R</div>
|
|
214
216
|
<div class="${t.blockMath}">
|
|
215
217
|
<span data-answer-block="${e}"></span>
|
|
216
218
|
</div>
|
|
217
|
-
</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];NC(n,a&&a.value||``),e.view&&(n.parentElement.parentElement.classList.remove(`correct`),n.parentElement.parentElement.classList.remove(`incorrect`)),i.textContent=`R`}}),qm(this.root)};countResponseOccurrences(e){let t=e?.match(/\{\{response\}\}/g);return t?t.length:0}UNSAFE_componentWillReceiveProps(e){let{config:t}=this.props.model,{config:n={}}=e.model||{},{session:r}=this.props,{session:i={}}=e||{};if(r&&i&&!sy(r.answers,i.answers)&&this.setState({session:{...i,answers:qO(i,this.props.model)}}),t.note&&t.language&&t.language!==n.language&&t.note===LO.t(`mathInline.primaryCorrectWithAlternates`,{lng:t.language})&&(t.note=LO.t(`mathInline.primaryCorrectWithAlternates`,{lng:n.language})),(t.env&&t.env.mode!==`evaluate`||n.env&&n.env.mode!==`evaluate`)&&this.setState({...this.state.session,showCorrect:!1}),n.alwaysShowCorrect&&this.setState({showCorrect:!0}),this.countResponseOccurrences(t.expression)<this.countResponseOccurrences(n.expression)&&setTimeout(()=>this.updateAria(),100),t&&t.responses&&t.responses.length!==n.responses.length||!t&&n&&n.responses||t&&n&&t.expression!==n.expression){let e={},t=this.state.session.answers,r=1;(n.expression||``).replace(BO,()=>{e[`r${r}`]={value:t&&t[`r${r}`]&&t[`r${r}`].value||``},r++}),this.setState(t=>({session:{...t.session,completeAnswer:this.mqStatic&&this.mqStatic.mathField.latex(),answers:e}}),this.handleAnswerBlockDomUpdate)}}shouldComponentUpdate(e,t){let n=sy(this.props.model,e.model),r=sy(this.state,t);return!n||!r}componentDidMount(){this.handleAnswerBlockDomUpdate(),this.updateAria(),setTimeout(()=>qm(this.root),100)}componentDidUpdate(e,t){this.handleAnswerBlockDomUpdate(),(e.model?.config?.responseType!==this.props.model?.config?.responseType||e.model?.language!==this.props.model?.language)&&this.updateAria()}updateAria=()=>{if(this.root){this.root.querySelectorAll(`.mq-selectable`).forEach(e=>e.setAttribute(`aria-hidden`,`true`));let e=LO.t(`mathInline.keypadInstructions`,{lng:this.props.model?.language});this.root.querySelectorAll(`textarea`).forEach((t,n)=>{let r=`${this.instructionsIdPrefix}-${n}`,i=t.closest(`.mq-textarea`);if(i){let n=i.querySelector(`#${r}`);n||(n=document.createElement(`span`),n.id=r,n.className=`sr-only`,i.insertBefore(n,t)),n.textContent=e,t.setAttribute(`aria-describedby`,r)}})}};focusFirstKeypadElement=()=>{setTimeout(()=>{let e=document.querySelector(`[data-keypad]`);if(e){let t=e.querySelector(`button, [role='button']`);t&&t.focus()}},0)};handleKeyDown=(e,t)=>{let n=WO(e.target,this.root),r=this.mqStatic&&this.mqStatic.inputRef?.current?this.mqStatic.inputRef?.current.contains(document.activeElement):!!document.activeElement?.closest(`.mq-editable-field`),{key:i,type:a}=e;r&&(i===`ArrowDown`||a===`click`||a===`touchstart`)?this.state.activeAnswerBlock!==t&&n&&(this.cleanupKeyDownListener(),this.setState({activeAnswerBlock:t},()=>{this.onSubFieldFocus(t),i===`ArrowDown`&&this.focusFirstKeypadElement()})):e.key===`Escape`&&this.setState({activeAnswerBlock:``})};onSubFieldFocus=e=>{this.handleEvent||(this.handleEvent=t=>{this.handleKeyDown(t,e)},document.addEventListener(`keydown`,this.handleEvent),document.addEventListener(`click`,this.handleEvent),document.addEventListener(`touchstart`,this.handleEvent))};cleanupKeyDownListener=()=>{this.handleEvent&&=(document.removeEventListener(`keydown`,this.handleEvent),document.removeEventListener(`click`,this.handleEvent),document.removeEventListener(`touchstart`,this.handleEvent),null)};componentWillUnmount(){this.cleanupKeyDownListener&&this.cleanupKeyDownListener()}onDone=()=>{};onSimpleResponseChange=e=>{this.setState(t=>({session:{...t.session,response:e}}),this.callOnSessionChange)};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=window.scrollX,n=window.scrollY,r=this.toNodeData(e);r.type===`clear`?this.input.clear():r.type===`command`?Array.isArray(r.value)?r.value.forEach(e=>{this.input.cmd(e)}):this.input.cmd(r.value):r.type===`cursor`?this.input.keystroke(r.value):this.input.write(r.value),this.input.focus(),requestAnimationFrame(()=>{window.scrollTo(t,n),requestAnimationFrame(()=>window.scrollTo(t,n))})};callOnSessionChange=()=>{let{onSessionChange:e}=this.props;e&&e(this.state.session)};toggleShowCorrect=e=>{this.setState({showCorrect:e},this.handleAnswerBlockDomUpdate)};subFieldChanged=(e,t)=>{if(bx(),e){let n=window.scrollX,r=window.scrollY;this.setState(n=>({session:{...n.session,completeAnswer:this.mqStatic&&this.mqStatic.mathField.latex(),answers:{...n.session.answers,[e]:{value:t}}}}),()=>{this.callOnSessionChange(),requestAnimationFrame(()=>{window.scrollTo(n,r)})})}};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||{},r=n&&n.closest(`[role=tooltip]`);function i(e,t=0){if(!e||t>=16)return null;let n=e.offsetParent;return n?n.getAttribute(`role`)===`tooltip`?n:i(n,t+1):null}function a(e,t=0){if(!e||t>=4)return null;let n=e?.children?.[0];return n?n.attributes&&n.attributes[`data-keypad`]?n:a(n,t+1):null}let o=i(t),s=o?a(o):null;(!t||!n||!s?.attributes[`data-keypad`])&&(r||this.setState({activeAnswerBlock:``}))};setTooltipRef(e){setTimeout(()=>{if(e&&HO){let e=document.querySelector(`[role='tooltip']`);e&&e.firstChild.setAttribute(`tabindex`,`-1`)}},1)}render(){let{model:e}=this.props,{activeAnswerBlock:t,showCorrect:n,session:r,tooltipContainerRef:i}=this.state,{config:a,correctness:o,disabled:s,extraCSSRules:c,view:l,teacherInstructions:u,rationale:d,feedback:f,animationsDisabled:p,printMode:m,alwaysShowCorrect:h,language:g}=e||{};if(!a)return null;let{showNote:_,note:v,prompt:y,responses:b,responseType:x,equationEditor:S,customKeys:C,env:{mode:w,role:T}={}}=a||{},E=(n||w===`view`&&T===`instructor`)&&_&&v,D=oy(b),O=!D&&o&&o.correctness!==`correct`,ee=s&&o,k=UO(C),A=o&&o.correct,j=KO(e,this.state)||``,te=s&&!o,M=m&&!h,ne=d&&(Hg(d)||Wg(d)),N=u&&(Hg(u)||Wg(u)),re=(0,L.jsx)(ak,{children:(0,L.jsx)(XC,{className:`static-math`,ref:e=>{e&&(this.mqStatic=e)},latex:j,language:g,onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur})}),ie=(0,L.jsxs)($O,{children:[w===`gather`&&(0,L.jsx)(ok,{children:LO.t(`mathInline.mathEquationResponseQuestion`,{lng:g})}),te&&N&&(p?(0,L.jsx)(`div`,{dangerouslySetInnerHTML:{__html:u}}):(0,L.jsx)(tk,{labels:{hidden:LO.t(`common:showTeacherInstructions`,{lng:g}),visible:LO.t(`common:hideTeacherInstructions`,{lng:g})},children:(0,L.jsx)(`div`,{dangerouslySetInnerHTML:{__html:u}})})),y&&(0,L.jsx)(QO,{children:(0,L.jsx)(AO,{prompt:y})}),M?re:(0,L.jsx)(jO,{false:!0,children:(0,L.jsxs)(ik,{tabIndex:0,children:[x===DE.simple&&(0,L.jsx)(EO,{onSimpleResponseChange:this.onSimpleResponseChange,showCorrect:n,emptyResponse:D,model:e,session:r,onSubFieldFocus:this.onSubFieldFocus,showKeypad:!!t}),x===DE.advanced&&(0,L.jsx)(rk,{ref:i,isIncorrect:!D&&!A&&!n,isCorrect:!D&&(A||n),showCorrectness:!D&&s&&o&&!l,correctAnswerShown:n,printCorrect:m&&h,children:(0,L.jsx)(EE,{ref:e=>this.setTooltipRef(e),enterTouchDelay:0,interactive:!0,open:!!t,slotProps:{popper:{container:i?.current||void 0,placement:`bottom-start`,sx:{backgroundColor:`transparent`,width:`650px`,opacity:1,"& .MuiTooltip-arrow":{display:`none`}},modifiers:[{name:`offset`,options:{offset:[0,8]}},{name:`preventOverflow`,enabled:!0,options:{boundary:`viewport`,padding:8}},{name:`computeStyles`,options:{adaptive:!0,gpuAcceleration:!0}},{name:`flip`,enabled:!1}]},tooltip:{sx:{fontSize:`initial`,backgroundColor:`transparent`,width:`600px`,marginTop:0,paddingTop:0,boxShadow:`none`}}},title:Object.keys(r.answers).map(e=>e===t&&!(n||s)&&(0,L.jsx)(nk,{"data-keypad":!0,style:{width:GO(k,S)},children:(0,L.jsx)(dw,{additionalKeys:k,mode:S||VO,onClick:this.onClick})},e)||null),children:(0,L.jsx)(`div`,{children:(0,L.jsx)(XC,{className:`static-math`,ref:e=>{e&&(this.mqStatic=e)},latex:j,language:g,onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur})})})})]})}),te&&E&&(0,L.jsx)(ek,{dangerouslySetInnerHTML:{__html:`<strong>Note:</strong> ${v}`}}),te&&ne&&(p?(0,L.jsx)(`div`,{dangerouslySetInnerHTML:{__html:d}}):(0,L.jsx)(MO,{labels:{hidden:LO.t(`common:showRationale`,{lng:g}),visible:LO.t(`common:hideRationale`,{lng:g})},children:(0,L.jsx)(`div`,{dangerouslySetInnerHTML:{__html:d}})}))]});return ee&&(O||N||ne||f)?(0,L.jsx)(XO,{extraCSSRules:c,ref:e=>{let t=Qs.findDOMNode(e);this.root=t||this.root},children:(0,L.jsx)(ZO,{interactive:!0,enterTouchDelay:0,placement:`bottom-start`,slotProps:{tooltip:{sx:e=>({background:`${ad()} !important`,color:Gu(),padding:e.spacing(2),border:`1px solid ${ld()}`,fontSize:`16px`,"& :not(.MathJax) > table tr":{"&:nth-child(2n)":{backgroundColor:`unset !important`}}})},popper:{sx:{opacity:1},modifiers:[{name:`offset`,options:{offset:[0,2]}}]}},title:(0,L.jsxs)(`div`,{children:[(0,L.jsx)($O,{children:O&&(0,L.jsx)(sk,{language:g,show:!0,toggled:n,onToggle:this.toggleShowCorrect})}),N&&(0,L.jsx)(tk,{labels:{hidden:LO.t(`common:showTeacherInstructions`,{lng:g}),visible:LO.t(`common:hideTeacherInstructions`,{lng:g})},children:(0,L.jsx)(AO,{prompt:u})},`collapsible-teacher-instructions`),E&&Hg(v)&&(0,L.jsx)(tk,{labels:{hidden:LO.t(`common:showNote`,{lng:g}),visible:LO.t(`common:hideNote`,{lng:g})},children:(0,L.jsx)(AO,{prompt:v})},`collapsible-note`),ne&&(0,L.jsx)(tk,{labels:{hidden:LO.t(`common:showRationale`,{lng:g}),visible:LO.t(`common:hideRationale`,{lng:g})},children:(0,L.jsx)(AO,{prompt:d})},`collapsible-rationale`),f&&(0,L.jsx)(NO,{correctness:o.correctness,feedback:f})]}),children:ie})}):(0,L.jsx)(XO,{extraCSSRules:c,ref:e=>{let t=Qs.findDOMNode(e);this.root=t||this.root},children:ie})}},YO=()=>({blockContainer:`block-container`,blockResponse:`block-response`,blockMath:`block-math`});if(typeof document<`u`){let e=`math-inline-block-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=`
|
|
219
|
+
</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];_T(n,a&&a.value||``),e.view&&(n.parentElement.parentElement.classList.remove(`correct`),n.parentElement.parentElement.classList.remove(`incorrect`)),i.textContent=`R`}}),Ag(this.root)};countResponseOccurrences(e){let t=e?.match(/\{\{response\}\}/g);return t?t.length:0}UNSAFE_componentWillReceiveProps(e){let{config:t}=this.props.model,{config:n={}}=e.model||{},{session:r}=this.props,{session:i={}}=e||{};if(r&&i&&!Wb(r.answers,i.answers)&&this.setState({session:{...i,answers:jA(i,this.props.model)}}),t.note&&t.language&&t.language!==n.language&&t.note===xA.t(`mathInline.primaryCorrectWithAlternates`,{lng:t.language})&&(t.note=xA.t(`mathInline.primaryCorrectWithAlternates`,{lng:n.language})),(t.env&&t.env.mode!==`evaluate`||n.env&&n.env.mode!==`evaluate`)&&this.setState({...this.state.session,showCorrect:!1}),n.alwaysShowCorrect&&this.setState({showCorrect:!0}),this.countResponseOccurrences(t.expression)<this.countResponseOccurrences(n.expression)&&setTimeout(()=>this.updateAria(),100),t&&t.responses&&t.responses.length!==n.responses.length||!t&&n&&n.responses||t&&n&&t.expression!==n.expression){let e={},t=this.state.session.answers,r=1;(n.expression||``).replace(wA,()=>{e[`r${r}`]={value:t&&t[`r${r}`]&&t[`r${r}`].value||``},r++}),this.setState(t=>({session:{...t.session,completeAnswer:this.mqStatic&&this.mqStatic.mathField.latex(),answers:e}}),this.handleAnswerBlockDomUpdate)}}shouldComponentUpdate(e,t){let n=Wb(this.props.model,e.model),r=Wb(this.state,t);return!n||!r}componentDidMount(){this.handleAnswerBlockDomUpdate(),this.updateAria(),setTimeout(()=>Ag(this.root),100)}componentDidUpdate(e,t){this.handleAnswerBlockDomUpdate(),(e.model?.config?.responseType!==this.props.model?.config?.responseType||e.model?.language!==this.props.model?.language)&&this.updateAria()}updateAria=()=>{if(this.root){this.root.querySelectorAll(`.mq-selectable`).forEach(e=>e.setAttribute(`aria-hidden`,`true`));let e=xA.t(`mathInline.keypadInstructions`,{lng:this.props.model?.language});this.root.querySelectorAll(`textarea`).forEach((t,n)=>{let r=`${this.instructionsIdPrefix}-${n}`,i=t.closest(`.mq-textarea`);if(i){let n=i.querySelector(`#${r}`);n||(n=document.createElement(`span`),n.id=r,n.className=`sr-only`,i.insertBefore(n,t)),n.textContent=e,t.setAttribute(`aria-describedby`,r)}})}};focusFirstKeypadElement=()=>{setTimeout(()=>{let e=document.querySelector(`[data-keypad]`);if(e){let t=e.querySelector(`button, [role='button']`);t&&t.focus()}},0)};handleKeyDown=(e,t)=>{let n=OA(e.target,this.root),r=this.mqStatic&&this.mqStatic.inputRef?.current?this.mqStatic.inputRef?.current.contains(document.activeElement):!!document.activeElement?.closest(`.mq-editable-field`),{key:i,type:a}=e;r&&(i===`ArrowDown`||a===`click`||a===`touchstart`)?this.state.activeAnswerBlock!==t&&n&&(this.cleanupKeyDownListener(),this.setState({activeAnswerBlock:t},()=>{this.onSubFieldFocus(t),i===`ArrowDown`&&this.focusFirstKeypadElement()})):e.key===`Escape`&&this.setState({activeAnswerBlock:``})};onSubFieldFocus=e=>{this.handleEvent||(this.handleEvent=t=>{this.handleKeyDown(t,e)},document.addEventListener(`keydown`,this.handleEvent),document.addEventListener(`click`,this.handleEvent),document.addEventListener(`touchstart`,this.handleEvent))};cleanupKeyDownListener=()=>{this.handleEvent&&=(document.removeEventListener(`keydown`,this.handleEvent),document.removeEventListener(`click`,this.handleEvent),document.removeEventListener(`touchstart`,this.handleEvent),null)};componentWillUnmount(){this.cleanupKeyDownListener&&this.cleanupKeyDownListener()}onDone=()=>{};onSimpleResponseChange=e=>{this.setState(t=>({session:{...t.session,response:e}}),this.callOnSessionChange)};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=window.scrollX,n=window.scrollY,r=this.toNodeData(e);r.type===`clear`?this.input.clear():r.type===`command`?Array.isArray(r.value)?r.value.forEach(e=>{this.input.cmd(e)}):this.input.cmd(r.value):r.type===`cursor`?this.input.keystroke(r.value):this.input.write(r.value),this.input.focus(),requestAnimationFrame(()=>{window.scrollTo(t,n),requestAnimationFrame(()=>window.scrollTo(t,n))})};callOnSessionChange=()=>{let{onSessionChange:e}=this.props;e&&e(this.state.session)};toggleShowCorrect=e=>{this.setState({showCorrect:e},this.handleAnswerBlockDomUpdate)};subFieldChanged=(e,t)=>{if(rC(),e){let n=window.scrollX,r=window.scrollY;this.setState(n=>({session:{...n.session,completeAnswer:this.mqStatic&&this.mqStatic.mathField.latex(),answers:{...n.session.answers,[e]:{value:t}}}}),()=>{this.callOnSessionChange(),requestAnimationFrame(()=>{window.scrollTo(n,r)})})}};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||{},r=n&&n.closest(`[role=tooltip]`);function i(e,t=0){if(!e||t>=16)return null;let n=e.offsetParent;return n?n.getAttribute(`role`)===`tooltip`?n:i(n,t+1):null}function a(e,t=0){if(!e||t>=4)return null;let n=e?.children?.[0];return n?n.attributes&&n.attributes[`data-keypad`]?n:a(n,t+1):null}let o=i(t),s=o?a(o):null;(!t||!n||!s?.attributes[`data-keypad`])&&(r||this.setState({activeAnswerBlock:``}))};setTooltipRef(e){setTimeout(()=>{if(e&&EA){let e=document.querySelector(`[role='tooltip']`);e&&e.firstChild.setAttribute(`tabindex`,`-1`)}},1)}render(){let{model:e}=this.props,{activeAnswerBlock:t,showCorrect:n,session:r,tooltipContainerRef:i}=this.state,{config:a,correctness:o,disabled:s,extraCSSRules:c,view:l,teacherInstructions:u,rationale:d,feedback:f,animationsDisabled:p,printMode:m,alwaysShowCorrect:h,language:g}=e||{};if(!a)return null;let{showNote:_,note:v,prompt:y,responses:b,responseType:x,equationEditor:S,customKeys:C,env:{mode:w,role:T}={}}=a||{},E=(n||w===`view`&&T===`instructor`)&&_&&v,D=Ub(b),O=!D&&o&&o.correctness!==`correct`,ee=s&&o,k=DA(C),A=o&&o.correct,j=AA(e,this.state)||``,te=s&&!o,M=m&&!h,ne=d&&(Tv(d)||Dv(d)),N=u&&(Tv(u)||Dv(u)),re=(0,z.jsx)(UA,{children:(0,z.jsx)(PT,{className:`static-math`,ref:e=>{e&&(this.mqStatic=e)},latex:j,language:g,onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur})}),ie=(0,z.jsxs)(LA,{children:[w===`gather`&&(0,z.jsx)(WA,{children:xA.t(`mathInline.mathEquationResponseQuestion`,{lng:g})}),te&&N&&(p?(0,z.jsx)(`div`,{dangerouslySetInnerHTML:{__html:wf(u)}}):(0,z.jsx)(zA,{labels:{hidden:xA.t(`common:showTeacherInstructions`,{lng:g}),visible:xA.t(`common:hideTeacherInstructions`,{lng:g})},children:(0,z.jsx)(`div`,{dangerouslySetInnerHTML:{__html:wf(u)}})})),y&&(0,z.jsx)(IA,{children:(0,z.jsx)(mA,{prompt:y})}),M?re:(0,z.jsx)(hA,{false:!0,children:(0,z.jsxs)(HA,{tabIndex:0,children:[x===dO.simple&&(0,z.jsx)(uA,{onSimpleResponseChange:this.onSimpleResponseChange,showCorrect:n,emptyResponse:D,model:e,session:r,onSubFieldFocus:this.onSubFieldFocus,showKeypad:!!t}),x===dO.advanced&&(0,z.jsx)(VA,{ref:i,isIncorrect:!D&&!A&&!n,isCorrect:!D&&(A||n),showCorrectness:!D&&s&&o&&!l,correctAnswerShown:n,printCorrect:m&&h,children:(0,z.jsx)(uO,{ref:e=>this.setTooltipRef(e),enterTouchDelay:0,interactive:!0,open:!!t,slotProps:{popper:{container:i?.current||void 0,placement:`bottom-start`,sx:{backgroundColor:`transparent`,width:`650px`,opacity:1,"& .MuiTooltip-arrow":{display:`none`}},modifiers:[{name:`offset`,options:{offset:[0,8]}},{name:`preventOverflow`,enabled:!0,options:{boundary:`viewport`,padding:8}},{name:`computeStyles`,options:{adaptive:!0,gpuAcceleration:!0}},{name:`flip`,enabled:!1}]},tooltip:{sx:{fontSize:`initial`,backgroundColor:`transparent`,width:`600px`,marginTop:0,paddingTop:0,boxShadow:`none`}}},title:Object.keys(r.answers).map(e=>e===t&&!(n||s)&&(0,z.jsx)(BA,{"data-keypad":!0,style:{width:kA(k,S)},children:(0,z.jsx)(YT,{additionalKeys:k,mode:S||TA,onClick:this.onClick})},e)||null),children:(0,z.jsx)(`div`,{children:(0,z.jsx)(PT,{className:`static-math`,ref:e=>{e&&(this.mqStatic=e)},latex:j,language:g,onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur})})})})]})}),te&&E&&(0,z.jsx)(RA,{dangerouslySetInnerHTML:{__html:`<strong>Note:</strong> ${wf(v)}`}}),te&&ne&&(p?(0,z.jsx)(`div`,{dangerouslySetInnerHTML:{__html:wf(d)}}):(0,z.jsx)(gA,{labels:{hidden:xA.t(`common:showRationale`,{lng:g}),visible:xA.t(`common:hideRationale`,{lng:g})},children:(0,z.jsx)(`div`,{dangerouslySetInnerHTML:{__html:wf(d)}})}))]});return ee&&(O||N||ne||f)?(0,z.jsx)(PA,{extraCSSRules:c,ref:e=>{let t=Zs.findDOMNode(e);this.root=t||this.root},children:(0,z.jsx)(FA,{interactive:!0,enterTouchDelay:0,placement:`bottom-start`,slotProps:{tooltip:{sx:e=>({background:`${Uf()} !important`,color:kf(),padding:e.spacing(2),border:`1px solid ${qf()}`,fontSize:`16px`,"& :not(.MathJax) > table tr":{"&:nth-child(2n)":{backgroundColor:`unset !important`}}})},popper:{sx:{opacity:1},modifiers:[{name:`offset`,options:{offset:[0,2]}}]}},title:(0,z.jsxs)(`div`,{children:[(0,z.jsx)(LA,{children:O&&(0,z.jsx)(GA,{language:g,show:!0,toggled:n,onToggle:this.toggleShowCorrect})}),N&&(0,z.jsx)(zA,{labels:{hidden:xA.t(`common:showTeacherInstructions`,{lng:g}),visible:xA.t(`common:hideTeacherInstructions`,{lng:g})},children:(0,z.jsx)(mA,{prompt:u})},`collapsible-teacher-instructions`),E&&Tv(v)&&(0,z.jsx)(zA,{labels:{hidden:xA.t(`common:showNote`,{lng:g}),visible:xA.t(`common:hideNote`,{lng:g})},children:(0,z.jsx)(mA,{prompt:v})},`collapsible-note`),ne&&(0,z.jsx)(zA,{labels:{hidden:xA.t(`common:showRationale`,{lng:g}),visible:xA.t(`common:hideRationale`,{lng:g})},children:(0,z.jsx)(mA,{prompt:d})},`collapsible-rationale`),f&&(0,z.jsx)(_A,{correctness:o.correctness,feedback:f})]}),children:ie})}):(0,z.jsx)(PA,{extraCSSRules:c,ref:e=>{let t=Zs.findDOMNode(e);this.root=t||this.root},children:ie})}},NA=()=>({blockContainer:`block-container`,blockResponse:`block-response`,blockMath:`block-math`});if(typeof document<`u`){let e=`math-inline-block-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=`
|
|
218
220
|
.block-container {
|
|
219
221
|
margin: 8px !important;
|
|
220
222
|
display: inline-flex;
|
|
@@ -234,8 +236,8 @@ mid `,`∤`),X.intercal=X[`⊺`]=K($,`\\intercal `,`⊺`),X.veebar=X[`
|
|
|
234
236
|
flex-basis: auto;
|
|
235
237
|
}
|
|
236
238
|
.block-math {
|
|
237
|
-
color: ${
|
|
238
|
-
background-color: ${
|
|
239
|
+
color: ${kf()};
|
|
240
|
+
background-color: ${Zf()};
|
|
239
241
|
padding: 4px !important;
|
|
240
242
|
display: flex;
|
|
241
243
|
align-items: center;
|
|
@@ -254,6 +256,6 @@ mid `,`∤`),X.intercal=X[`⊺`]=K($,`\\intercal `,`⊺`),X.veebar=X[`
|
|
|
254
256
|
overflow: hidden;
|
|
255
257
|
}
|
|
256
258
|
.static-math > .mq-root-block > .mq-editable-field {
|
|
257
|
-
border-color: ${
|
|
259
|
+
border-color: ${kf()};
|
|
258
260
|
}
|
|
259
|
-
`,document.head.appendChild(t)}}var
|
|
261
|
+
`,document.head.appendChild(t)}}var PA=H(pA)(()=>({color:kf(),backgroundColor:Zf(),display:`inline-block`})),FA=H(uO)({}),IA=H(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),LA=H(`div`)({width:`100%`,position:`relative`,backgroundColor:Zf(),color:kf()}),RA=H(`div`)(({theme:e})=>({paddingBottom:e.spacing(2)})),zA=H(gA)(({theme:e})=>({marginBottom:e.spacing(2)})),BA=H(`div`)(({theme:e})=>({zIndex:10,minWidth:`400px`,marginTop:e.spacing(2)})),VA=H(`div`,{shouldForwardProp:e=>![`isIncorrect`,`isCorrect`,`showCorrectness`,`correctAnswerShown`,`printCorrect`].includes(e)})(({theme:e,isIncorrect:t,isCorrect:n,showCorrectness:r,correctAnswerShown:i,printCorrect:a})=>{let o=t?Lf():n?Nf():void 0;return{maxWidth:`fit-content`,padding:e.spacing(.25),...r&&{border:o?`2px solid ${o} !important`:`2px solid`},...!r&&o&&{borderColor:`${o} !important`},...i&&{padding:e.spacing(1),letterSpacing:`0.5px`},...a&&{border:`2px solid ${Nf()} !important`},"& .mq-math-mode":{"& .mq-root-block":{paddingRight:`0 !important`,paddingLeft:`0 !important`,"& .mq-editable-field":{minWidth:`10px`,padding:e.spacing(.4)}},"& sup":{top:0}}}}),HA=H(`div`)({position:`relative`,"& .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}}),UA=H(`div`)(({theme:e})=>({marginBottom:e.spacing(1),pointerEvents:`none`})),WA=H(`h2`)({position:`absolute`,left:`-10000px`,top:`auto`,width:`1px`,height:`1px`,overflow:`hidden`}),GA=H(my)(({theme:e})=>({color:kf(),marginBottom:e.spacing(2)})),KA=g(),{translator:qA}=Ye,JA={configuration:{}},YA=v(`pie-ui:math-inline`),XA=class extends HTMLElement{constructor(){super(),this._root=null,this._configuration=JA.configuration,this._sessionNotifier=w(this,()=>{this.dispatchEvent(new D(this.tagName.toLowerCase(),!0))},{delayMs:1e3}),this.sessionChangedEventCaller=()=>this._sessionNotifier.notify()}setLangAttribute(){let e=this._model&&typeof this._model.language?this._model.language:``,t=e?e.slice(0,2):`en`;this.setAttribute(`lang`,t);let n=this.closest(`.player-container`);n&&n.setAttribute(`lang`,t)}setRegionLabel(){this.setAttribute(`aria-label`,qA.t(`mathInline.mathResponseQuestion`,{lng:this._model?.language}))}set model(e){this._model=e,this.dispatchEvent(new E(this._model,!0,!!this._model)),this.setLangAttribute(),this.setRegionLabel(),this._render()}set session(e){this._session=e,this._render()}get session(){return this._session}set configuration(e){this._configuration=e,this._render()}sessionChanged(e){Object.keys(e).map(t=>{this._session[t]=e[t]}),this.sessionChangedEventCaller(),YA(`session: `,this._session)}connectedCallback(){this.setRegionLabel(),this.setAttribute(`role`,`region`),this._render()}_render(){if(!this._model||!this._session)return;let e=R.createElement(MA,{model:this._model,session:this._session,configuration:this._configuration,onSessionChange:this.sessionChanged.bind(this)});this._root||=(0,KA.createRoot)(this),this._root.render(e)}disconnectedCallback(){T(this),this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`math-inline-element`)&&customElements.define(`math-inline-element`,XA),XA})();
|