@pie-element/number-line 13.1.2-next.11 → 13.1.2-next.13
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/author.js +2 -0
- package/dist/browser/author/index.js +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/{delivery-ZqHtCtAW.js → delivery-BdkL8rkM.js} +108 -6
- package/dist/browser/delivery-BdkL8rkM.js.map +1 -0
- package/dist/index.iife.js +31 -31
- package/package.json +4 -3
- package/dist/browser/delivery-ZqHtCtAW.js.map +0 -1
package/dist/index.iife.js
CHANGED
|
@@ -40,7 +40,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
40
40
|
`+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{ie=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?I(e):``}function oe(e){switch(e.tag){case 5:return I(e.type);case 16:return I(`Lazy`);case 13:return I(`Suspense`);case 19:return I(`SuspenseList`);case 0:case 2:case 15:return e=ae(e.type,!1),e;case 11:return e=ae(e.type.render,!1),e;case 1:return e=ae(e.type,!0),e;default:return``}}function se(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 T:return`Fragment`;case w:return`Portal`;case D:return`Profiler`;case E:return`StrictMode`;case j:return`Suspense`;case M:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case k:return(e.displayName||`Context`)+`.Consumer`;case O: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 N:return t=e.displayName||null,t===null?se(e.type)||`Memo`:t;case P:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}function ce(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 se(t);case 8:return t===E?`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 le(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function ue(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function de(e){var t=ue(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 fe(e){e._valueTracker||=de(e)}function pe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ue(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function me(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 he(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ge(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=le(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 _e(e,t){t=t.checked,t!=null&&x(e,`checked`,t,!1)}function ve(e,t){_e(e,t);var n=le(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`)?be(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&be(e,t.type,le(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ye(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 be(e,t,n){(t!==`number`||me(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var xe=Array.isArray;function Se(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=``+le(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 Ce(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return F({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function we(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(xe(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:le(n)}}function Te(e,t){var n=le(t.value),r=le(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 Ee(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function De(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 Oe(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?De(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var ke,Ae=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(ke||=document.createElement(`div`),ke.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=ke.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function je(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Me={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},Ne=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Me).forEach(function(e){Ne.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Me[t]=Me[e]})});function Pe(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Me.hasOwnProperty(e)&&Me[e]?(``+t).trim():t+`px`}function Fe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Pe(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Ie=F({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 Le(e,t){if(t){if(Ie[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 Re(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 ze=null;function Be(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ve=null,He=null,Ue=null;function We(e){if(e=Hi(e)){if(typeof Ve!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Wi(t),Ve(e.stateNode,e.type,t))}}function Ge(e){He?Ue?Ue.push(e):Ue=[e]:He=e}function Ke(){if(He){var e=He,t=Ue;if(Ue=He=null,We(e),t)for(e=0;e<t.length;e++)We(t[e])}}function qe(e,t){return e(t)}function Je(){}var Ye=!1;function Xe(e,t,n){if(Ye)return e(t,n);Ye=!0;try{return qe(e,t,n)}finally{Ye=!1,(He!==null||Ue!==null)&&(Je(),Ke())}}function Ze(e,t){var n=e.stateNode;if(n===null)return null;var i=Wi(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 Qe=!1;if(c)try{var $e={};Object.defineProperty($e,"passive",{get:function(){Qe=!0}}),window.addEventListener(`test`,$e,$e),window.removeEventListener(`test`,$e,$e)}catch{Qe=!1}function et(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 tt=!1,nt=null,rt=!1,it=null,at={onError:function(e){tt=!0,nt=e}};function ot(e,t,n,r,i,a,o,s,c){tt=!1,nt=null,et.apply(at,arguments)}function st(e,t,n,i,a,o,s,c,l){if(ot.apply(this,arguments),tt){if(tt){var u=nt;tt=!1,nt=null}else throw Error(r(198));rt||(rt=!0,it=u)}}function ct(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 lt(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 ut(e){if(ct(e)!==e)throw Error(r(188))}function dt(e){var t=e.alternate;if(!t){if(t=ct(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 ut(a),e;if(o===i)return ut(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 ft(e){return e=dt(e),e===null?null:pt(e)}function pt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pt(e);if(t!==null)return t;e=e.sibling}return null}var mt=n.unstable_scheduleCallback,ht=n.unstable_cancelCallback,L=n.unstable_shouldYield,gt=n.unstable_requestPaint,_t=n.unstable_now,vt=n.unstable_getCurrentPriorityLevel,yt=n.unstable_ImmediatePriority,bt=n.unstable_UserBlockingPriority,xt=n.unstable_NormalPriority,St=n.unstable_LowPriority,Ct=n.unstable_IdlePriority,wt=null,Tt=null;function Et(e){if(Tt&&typeof Tt.onCommitFiberRoot==`function`)try{Tt.onCommitFiberRoot(wt,e,void 0,(e.current.flags&128)==128)}catch{}}var Dt=Math.clz32?Math.clz32:At,Ot=Math.log,kt=Math.LN2;function At(e){return e>>>=0,e===0?32:31-(Ot(e)/kt|0)|0}var jt=64,Mt=4194304;function Nt(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 Pt(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=Nt(a))):r=Nt(s)}else o=n&~i,o===0?a!==0&&(r=Nt(a)):r=Nt(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-Dt(t),i=1<<n,r|=e[n],t&=~i;return r}function Ft(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 It(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Dt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ft(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Lt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Rt(){var e=jt;return jt<<=1,!(jt&4194240)&&(jt=64),e}function zt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=n}function Vt(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-Dt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Ht(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Dt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ut=0;function R(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Wt,z,Gt,Kt,qt,Jt=!1,Yt=[],Xt=null,Zt=null,Qt=null,$t=new Map,en=new Map,tn=[],nn=`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 rn(e,t){switch(e){case`focusin`:case`focusout`:Xt=null;break;case`dragenter`:case`dragleave`:Zt=null;break;case`mouseover`:case`mouseout`:Qt=null;break;case`pointerover`:case`pointerout`:$t.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:en.delete(t.pointerId)}}function an(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=Hi(t),t!==null&&z(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function on(e,t,n,r,i){switch(t){case`focusin`:return Xt=an(Xt,e,t,n,r,i),!0;case`dragenter`:return Zt=an(Zt,e,t,n,r,i),!0;case`mouseover`:return Qt=an(Qt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return $t.set(a,an($t.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,en.set(a,an(en.get(a)||null,e,t,n,r,i)),!0}return!1}function sn(e){var t=Vi(e.target);if(t!==null){var n=ct(t);if(n!==null){if(t=n.tag,t===13){if(t=lt(n),t!==null){e.blockedOn=t,qt(e.priority,function(){Gt(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 cn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ze=r,n.target.dispatchEvent(r),ze=null}else return t=Hi(n),t!==null&&z(t),e.blockedOn=n,!1;t.shift()}return!0}function ln(e,t,n){cn(e)&&n.delete(t)}function un(){Jt=!1,Xt!==null&&cn(Xt)&&(Xt=null),Zt!==null&&cn(Zt)&&(Zt=null),Qt!==null&&cn(Qt)&&(Qt=null),$t.forEach(ln),en.forEach(ln)}function dn(e,t){e.blockedOn===t&&(e.blockedOn=null,Jt||(Jt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,un)))}function fn(e){function t(t){return dn(t,e)}if(0<Yt.length){dn(Yt[0],e);for(var n=1;n<Yt.length;n++){var r=Yt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Xt!==null&&dn(Xt,e),Zt!==null&&dn(Zt,e),Qt!==null&&dn(Qt,e),$t.forEach(t),en.forEach(t),n=0;n<tn.length;n++)r=tn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<tn.length&&(n=tn[0],n.blockedOn===null);)sn(n),n.blockedOn===null&&tn.shift()}var pn=S.ReactCurrentBatchConfig,mn=!0;function hn(e,t,n,r){var i=Ut,a=pn.transition;pn.transition=null;try{Ut=1,_n(e,t,n,r)}finally{Ut=i,pn.transition=a}}function gn(e,t,n,r){var i=Ut,a=pn.transition;pn.transition=null;try{Ut=4,_n(e,t,n,r)}finally{Ut=i,pn.transition=a}}function _n(e,t,n,r){if(mn){var i=yn(e,t,n,r);if(i===null)pi(e,t,r,vn,n),rn(e,r);else if(on(i,e,t,n,r))r.stopPropagation();else if(rn(e,r),t&4&&-1<nn.indexOf(e)){for(;i!==null;){var a=Hi(i);if(a!==null&&Wt(a),a=yn(e,t,n,r),a===null&&pi(e,t,r,vn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else pi(e,t,r,null,n)}}var vn=null;function yn(e,t,n,r){if(vn=null,e=Be(r),e=Vi(e),e!==null)if(t=ct(e),t===null)e=null;else if(n=t.tag,n===13){if(e=lt(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 vn=e,null}function bn(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(vt()){case yt:return 1;case bt:return 4;case xt:case St:return 16;case Ct:return 536870912;default:return 16}default:return 16}}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.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 Cn=i.slice(e,1<r?1-r:void 0)}function Tn(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 En(){return!0}function Dn(){return!1}function On(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)?En:Dn,this.isPropagationStopped=Dn,this}return F(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=En)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=En)},persist:function(){},isPersistent:En}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},An=On(kn),jn=F({},kn,{view:0,detail:0}),Mn=On(jn),Nn,Pn,Fn,In=F({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qn,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!==Fn&&(Fn&&e.type===`mousemove`?(Nn=e.screenX-Fn.screenX,Pn=e.screenY-Fn.screenY):Pn=Nn=0,Fn=e),Nn)},movementY:function(e){return`movementY`in e?e.movementY:Pn}}),Ln=On(In),Rn=On(F({},In,{dataTransfer:0})),zn=On(F({},jn,{relatedTarget:0})),Bn=On(F({},kn,{animationName:0,elapsedTime:0,pseudoElement:0})),Vn=On(F({},kn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Hn=On(F({},kn,{data:0})),Un={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Wn={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`},Gn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gn[e])?!!t[e]:!1}function qn(){return Kn}var Jn=On(F({},jn,{key:function(e){if(e.key){var t=Un[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Tn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Wn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qn,charCode:function(e){return e.type===`keypress`?Tn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Tn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Yn=On(F({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Xn=On(F({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qn})),Zn=On(F({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Qn=On(F({},In,{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})),$n=[9,13,27,32],er=c&&`CompositionEvent`in window,tr=null;c&&`documentMode`in document&&(tr=document.documentMode);var nr=c&&`TextEvent`in window&&!tr,rr=c&&(!er||tr&&8<tr&&11>=tr),ir=` `,ar=!1;function or(e,t){switch(e){case`keyup`:return $n.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function sr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var cr=!1;function lr(e,t){switch(e){case`compositionend`:return sr(t);case`keypress`:return t.which===32?(ar=!0,ir):null;case`textInput`:return e=t.data,e===ir&&ar?null:e;default:return null}}function ur(e,t){if(cr)return e===`compositionend`||!er&&or(e,t)?(e=wn(),Cn=Sn=xn=null,cr=!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 rr&&t.locale!==`ko`?null:t.data;default:return null}}var dr={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 fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!dr[e.type]:t===`textarea`}function pr(e,t,n,r){Ge(r),t=hi(t,`onChange`),0<t.length&&(n=new An(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var mr=null,hr=null;function gr(e){si(e,0)}function _r(e){if(pe(Ui(e)))return e}function vr(e,t){if(e===`change`)return t}var yr=!1;if(c){var br;if(c){var xr=`oninput`in document;if(!xr){var Sr=document.createElement(`div`);Sr.setAttribute(`oninput`,`return;`),xr=typeof Sr.oninput==`function`}br=xr}else br=!1;yr=br&&(!document.documentMode||9<document.documentMode)}function Cr(){mr&&(mr.detachEvent(`onpropertychange`,wr),hr=mr=null)}function wr(e){if(e.propertyName===`value`&&_r(hr)){var t=[];pr(t,hr,e,Be(e)),Xe(gr,t)}}function Tr(e,t,n){e===`focusin`?(Cr(),mr=t,hr=n,mr.attachEvent(`onpropertychange`,wr)):e===`focusout`&&Cr()}function Er(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return _r(hr)}function Dr(e,t){if(e===`click`)return _r(t)}function Or(e,t){if(e===`input`||e===`change`)return _r(t)}function kr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ar=typeof Object.is==`function`?Object.is:kr;function jr(e,t){if(Ar(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)||!Ar(e[i],t[i]))return!1}return!0}function Mr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nr(e,t){var n=Mr(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=Mr(n)}}function Pr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fr(){for(var e=window,t=me();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=me(e.document)}return t}function Ir(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 Lr(e){var t=Fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pr(n.ownerDocument.documentElement,n)){if(r!==null&&Ir(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=Nr(n,a);var o=Nr(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 Rr=c&&`documentMode`in document&&11>=document.documentMode,zr=null,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||zr==null||zr!==me(r)||(r=zr,`selectionStart`in r&&Ir(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}),Vr&&jr(Vr,r)||(Vr=r,r=hi(Br,`onSelect`),0<r.length&&(t=new An(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=zr)))}function Wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Gr={animationend:Wr(`Animation`,`AnimationEnd`),animationiteration:Wr(`Animation`,`AnimationIteration`),animationstart:Wr(`Animation`,`AnimationStart`),transitionend:Wr(`Transition`,`TransitionEnd`)},Kr={},qr={};c&&(qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),`TransitionEvent`in window||delete Gr.transitionend.transition);function Jr(e){if(Kr[e])return Kr[e];if(!Gr[e])return e;var t=Gr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qr)return Kr[e]=t[n];return e}var Yr=Jr(`animationend`),Xr=Jr(`animationiteration`),Zr=Jr(`animationstart`),Qr=Jr(`transitionend`),$r=new Map,ei=`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 ti(e,t){$r.set(e,t),o(t,[e])}for(var ni=0;ni<ei.length;ni++){var ri=ei[ni];ti(ri.toLowerCase(),`on`+(ri[0].toUpperCase()+ri.slice(1)))}ti(Yr,`onAnimationEnd`),ti(Xr,`onAnimationIteration`),ti(Zr,`onAnimationStart`),ti(`dblclick`,`onDoubleClick`),ti(`focusin`,`onFocus`),ti(`focusout`,`onBlur`),ti(Qr,`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 ii=`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(` `),ai=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ii));function oi(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,st(r,t,void 0,e),e.currentTarget=null}function si(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;oi(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;oi(i,s,l),a=c}}}if(rt)throw e=it,rt=!1,it=null,e}function ci(e,t){var n=t[Ri];n===void 0&&(n=t[Ri]=new Set);var r=e+`__bubble`;n.has(r)||(fi(t,e,2,!1),n.add(r))}function li(e,t,n){var r=0;t&&(r|=4),fi(n,e,r,t)}var ui=`_reactListening`+Math.random().toString(36).slice(2);function di(e){if(!e[ui]){e[ui]=!0,i.forEach(function(t){t!==`selectionchange`&&(ai.has(t)||li(t,!1,e),li(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ui]||(t[ui]=!0,li(`selectionchange`,!1,t))}}function fi(e,t,n,r){switch(bn(t)){case 1:var i=hn;break;case 4:i=gn;break;default:i=_n}n=i.bind(null,t,n,e),i=void 0,!Qe||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 pi(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=Vi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}Xe(function(){var r=a,i=Be(n),o=[];a:{var s=$r.get(e);if(s!==void 0){var c=An,l=e;switch(e){case`keypress`:if(Tn(n)===0)break a;case`keydown`:case`keyup`:c=Jn;break;case`focusin`:l=`focus`,c=zn;break;case`focusout`:l=`blur`,c=zn;break;case`beforeblur`:case`afterblur`:c=zn;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=Ln;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Rn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Xn;break;case Yr:case Xr:case Zr:c=Bn;break;case Qr:c=Zn;break;case`scroll`:c=Mn;break;case`wheel`:c=Qn;break;case`copy`:case`cut`:case`paste`:c=Vn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Yn}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=Ze(p,f),h!=null&&u.push(mi(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!==ze&&(l=n.relatedTarget||n.fromElement)&&(Vi(l)||l[Li]))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?Vi(l):null,l!==null&&(d=ct(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Ln,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Yn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ui(c),m=l==null?s:Ui(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Vi(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=gi(m))p++;for(m=0,h=f;h;h=gi(h))m++;for(;0<p-m;)u=gi(u),p--;for(;0<m-p;)f=gi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=gi(u),f=gi(f)}u=null}else u=null;c!==null&&_i(o,s,c,u,!1),l!==null&&d!==null&&_i(o,d,l,u,!0)}}a:{if(s=r?Ui(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=vr;else if(fr(s))if(yr)g=Or;else{g=Er;var _=Tr}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Dr);if(g&&=g(e,r)){pr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&be(s,`number`,s.value)}switch(_=r?Ui(r):window,e){case`focusin`:(fr(_)||_.contentEditable===`true`)&&(zr=_,Br=r,Vr=null);break;case`focusout`:Vr=Br=zr=null;break;case`mousedown`:Hr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Hr=!1,Ur(o,n,i);break;case`selectionchange`:if(Rr)break;case`keydown`:case`keyup`:Ur(o,n,i)}var v;if(er)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 cr?or(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(rr&&n.locale!==`ko`&&(cr||y!==`onCompositionStart`?y===`onCompositionEnd`&&cr&&(v=wn()):(xn=i,Sn=`value`in xn?xn.value:xn.textContent,cr=!0)),_=hi(r,y),0<_.length&&(y=new Hn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=sr(n),v!==null&&(y.data=v)))),(v=nr?lr(e,n):ur(e,n))&&(r=hi(r,`onBeforeInput`),0<r.length&&(i=new Hn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}si(o,t)})}function mi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Ze(e,n),a!=null&&r.unshift(mi(e,a,i)),a=Ze(e,t),a!=null&&r.push(mi(e,a,i))),e=e.return}return r}function gi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _i(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=Ze(n,a),c!=null&&o.unshift(mi(n,c,s))):i||(c=Ze(n,a),c!=null&&o.push(mi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var vi=/\r\n?/g,yi=/\u0000|\uFFFD/g;function bi(e){return(typeof e==`string`?e:``+e).replace(vi,`
|
|
41
41
|
`).replace(yi,``)}function xi(e,t,n){if(t=bi(t),bi(e)!==t&&n)throw Error(r(425))}function Si(){}var Ci=null,wi=null;function Ti(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 Ei=typeof setTimeout==`function`?setTimeout:void 0,Di=typeof clearTimeout==`function`?clearTimeout:void 0,Oi=typeof Promise==`function`?Promise:void 0,ki=typeof queueMicrotask==`function`?queueMicrotask:Oi===void 0?Ei:function(e){return Oi.resolve(null).then(e).catch(Ai)};function Ai(e){setTimeout(function(){throw e})}function ji(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),fn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);fn(t)}function Mi(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 Ni(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 Pi=Math.random().toString(36).slice(2),Fi=`__reactFiber$`+Pi,Ii=`__reactProps$`+Pi,Li=`__reactContainer$`+Pi,Ri=`__reactEvents$`+Pi,zi=`__reactListeners$`+Pi,Bi=`__reactHandles$`+Pi;function Vi(e){var t=e[Fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Li]||n[Fi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ni(e);e!==null;){if(n=e[Fi])return n;e=Ni(e)}return t}e=n,n=e.parentNode}return null}function Hi(e){return e=e[Fi]||e[Li],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ui(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Wi(e){return e[Ii]||null}var Gi=[],Ki=-1;function qi(e){return{current:e}}function Ji(e){0>Ki||(e.current=Gi[Ki],Gi[Ki]=null,Ki--)}function Yi(e,t){Ki++,Gi[Ki]=e.current,e.current=t}var Xi={},Zi=qi(Xi),Qi=qi(!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(){Ji(Qi),Ji(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,ce(e)||`Unknown`,a));return F({},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,Ji(Qi),Ji(Zi),Yi(Zi,e)):Ji(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=Ut;try{var n=sa;for(Ut=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)),mt(yt,fa),t}finally{Ut=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-Dt(r)-1;r&=~(1<<i),n+=1;var a=32-Dt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ba=1<<32-Dt(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=Mi(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=Mi(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`&&!Ti(e.type,e.memoizedProps)),t&&=Da){if(Ma(e))throw Ia(),Error(r(418));for(;t;)Aa(e,t),t=Mi(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=Mi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Da=null}}else Da=Ea?Mi(e.stateNode.nextSibling):null;return!0}function Ia(){for(var e=Da;e;)e=Mi(e.nextSibling)}function La(){Da=Ea=null,Oa=!1}function Ra(e){ka===null?ka=[e]:ka.push(e)}var za=S.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===T?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===P&&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 C:return n=ou(t.type,t.key,t.props,null,e.mode,n),n.ref=Ba(e,null,t),n.return=e,n;case w:return t=uu(t,e.mode,n),t.return=e,t;case P:var r=t._init;return f(e,r(t._payload),n)}if(xe(t)||ne(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 C:return n.key===i?l(e,t,n,r):null;case w:return n.key===i?u(e,t,n,r):null;case P:return i=n._init,p(e,t,i(n._payload),r)}if(xe(n)||ne(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 C:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case w:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case P:var a=r._init;return m(e,t,n,a(r._payload),i)}if(xe(r)||ne(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=ne(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===T&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case C:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===T){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===P&&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===T?(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 w: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 P:return l=i._init,_(e,r,l(i._payload),o)}if(xe(i))return h(e,r,i,o);if(ne(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=qi(null),qa=null,Ja=null,Ya=null;function Xa(){Ya=Ja=qa=null}function Za(e){var t=Ka.current;Ji(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&&(Hs=!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 B(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oo(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 so(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function co(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 lo(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,Ht(e,n)}}function uo(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 fo(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=F({},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 po(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 mo={},ho=qi(mo),go=qi(mo),_o=qi(mo);function vo(e){if(e===mo)throw Error(r(174));return e}function yo(e,t){switch(Yi(_o,t),Yi(go,e),Yi(ho,mo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oe(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Oe(t,e)}Ji(ho),Yi(ho,t)}function V(){Ji(ho),Ji(go),Ji(_o)}function bo(e){vo(_o.current);var t=vo(ho.current),n=Oe(t,e.type);t!==n&&(Yi(go,e),Yi(ho,n))}function xo(e){go.current===e&&(Ji(ho),Ji(go))}var So=qi(0);function Co(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 wo=[];function To(){for(var e=0;e<wo.length;e++)wo[e]._workInProgressVersionPrimary=null;wo.length=0}var Eo=S.ReactCurrentDispatcher,Do=S.ReactCurrentBatchConfig,Oo=0,ko=null,Ao=null,jo=null,Mo=!1,No=!1,Po=0,Fo=0;function Io(){throw Error(r(321))}function Lo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ar(e[n],t[n]))return!1;return!0}function Ro(e,t,n,i,a,o){if(Oo=o,ko=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Eo.current=e===null||e.memoizedState===null?Ss:Cs,e=n(i,a),No){o=0;do{if(No=!1,Po=0,25<=o)throw Error(r(301));o+=1,jo=Ao=null,t.updateQueue=null,Eo.current=ws,e=n(i,a)}while(No)}if(Eo.current=xs,t=Ao!==null&&Ao.next!==null,Oo=0,jo=Ao=ko=null,Mo=!1,t)throw Error(r(300));return e}function zo(){var e=Po!==0;return Po=0,e}function Bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jo===null?ko.memoizedState=jo=e:jo=jo.next=e,jo}function Vo(){if(Ao===null){var e=ko.alternate;e=e===null?null:e.memoizedState}else e=Ao.next;var t=jo===null?ko.memoizedState:jo.next;if(t!==null)jo=t,Ao=e;else{if(e===null)throw Error(r(310));Ao=e,e={memoizedState:Ao.memoizedState,baseState:Ao.baseState,baseQueue:Ao.baseQueue,queue:Ao.queue,next:null},jo===null?ko.memoizedState=jo=e:jo=jo.next=e}return jo}function Ho(e,t){return typeof t==`function`?t(e):t}function Uo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Ao,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((Oo&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,ko.lanes|=d,il|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Ar(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,ko.lanes|=o,il|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wo(e){var t=Vo(),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);Ar(o,t.memoizedState)||(Hs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Go(){}function Ko(e,t){var n=ko,i=Vo(),a=t(),o=!Ar(i.memoizedState,a);if(o&&(i.memoizedState=a,Hs=!0),i=i.queue,is(Yo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||jo!==null&&jo.memoizedState.tag&1){if(n.flags|=2048,$o(9,Jo.bind(null,n,i,a,t),void 0,null),Zc===null)throw Error(r(349));Oo&30||qo(n,t,a)}return a}function qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ko.updateQueue,t===null?(t={lastEffect:null,stores:null},ko.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jo(e,t,n,r){t.value=n,t.getSnapshot=r,Xo(t)&&Zo(e)}function Yo(e,t,n){return n(function(){Xo(t)&&Zo(e)})}function Xo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ar(e,n)}catch{return!0}}function Zo(e){var t=io(e,1);t!==null&&wl(t,e,1,-1)}function Qo(e){var t=Bo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:e},t.queue=e,e=e.dispatch=_s.bind(null,ko,e),[t.memoizedState,e]}function $o(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ko.updateQueue,t===null?(t={lastEffect:null,stores:null},ko.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 es(){return Vo().memoizedState}function ts(e,t,n,r){var i=Bo();ko.flags|=e,i.memoizedState=$o(1|t,n,void 0,r===void 0?null:r)}function ns(e,t,n,r){var i=Vo();r=r===void 0?null:r;var a=void 0;if(Ao!==null){var o=Ao.memoizedState;if(a=o.destroy,r!==null&&Lo(r,o.deps)){i.memoizedState=$o(t,n,a,r);return}}ko.flags|=e,i.memoizedState=$o(1|t,n,a,r)}function rs(e,t){return ts(8390656,8,e,t)}function is(e,t){return ns(2048,8,e,t)}function as(e,t){return ns(4,2,e,t)}function os(e,t){return ns(4,4,e,t)}function ss(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 cs(e,t,n){return n=n==null?null:n.concat([e]),ns(4,4,ss.bind(null,t,e),n)}function ls(){}function us(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ds(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ps(e,t,n){return Oo&21?(Ar(n,t)||(n=Rt(),ko.lanes|=n,il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Hs=!0),e.memoizedState=n)}function ms(e,t){var n=Ut;Ut=n!==0&&4>n?n:4,e(!0);var r=Do.transition;Do.transition={};try{e(!1),t()}finally{Ut=n,Do.transition=r}}function hs(){return Vo().memoizedState}function gs(e,t,n){var r=Cl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vs(e))ys(t,n);else if(n=ro(e,t,n,r),n!==null){var i=Sl();wl(n,e,r,i),bs(n,t,r)}}function _s(e,t,n){var r=Cl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vs(e))ys(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,Ar(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),bs(n,t,r))}}function vs(e){var t=e.alternate;return e===ko||t!==null&&t===ko}function ys(e,t){No=Mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bs(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ht(e,n)}}var xs={readContext:eo,useCallback:Io,useContext:Io,useEffect:Io,useImperativeHandle:Io,useInsertionEffect:Io,useLayoutEffect:Io,useMemo:Io,useReducer:Io,useRef:Io,useState:Io,useDebugValue:Io,useDeferredValue:Io,useTransition:Io,useMutableSource:Io,useSyncExternalStore:Io,useId:Io,unstable_isNewReconciler:!1},Ss={readContext:eo,useCallback:function(e,t){return Bo().memoizedState=[e,t===void 0?null:t],e},useContext:eo,useEffect:rs,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),ts(4194308,4,ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return ts(4,2,e,t)},useMemo:function(e,t){var n=Bo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bo();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=gs.bind(null,ko,e),[r.memoizedState,e]},useRef:function(e){var t=Bo();return e={current:e},t.memoizedState=e},useState:Qo,useDebugValue:ls,useDeferredValue:function(e){return Bo().memoizedState=e},useTransition:function(){var e=Qo(!1),t=e[0];return e=ms.bind(null,e[1]),Bo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ko,a=Bo();if(Oa){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Zc===null)throw Error(r(349));Oo&30||qo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Yo.bind(null,i,o,e),[e]),i.flags|=2048,$o(9,Jo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Bo(),t=Zc.identifierPrefix;if(Oa){var n=xa,r=ba;n=(r&~(1<<32-Dt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Po++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Fo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Cs={readContext:eo,useCallback:us,useContext:eo,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:Uo,useRef:es,useState:function(){return Uo(Ho)},useDebugValue:ls,useDeferredValue:function(e){return ps(Vo(),Ao.memoizedState,e)},useTransition:function(){return[Uo(Ho)[0],Vo().memoizedState]},useMutableSource:Go,useSyncExternalStore:Ko,useId:hs,unstable_isNewReconciler:!1},ws={readContext:eo,useCallback:us,useContext:eo,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:Wo,useRef:es,useState:function(){return Wo(Ho)},useDebugValue:ls,useDeferredValue:function(e){var t=Vo();return Ao===null?t.memoizedState=e:ps(t,Ao.memoizedState,e)},useTransition:function(){return[Wo(Ho)[0],Vo().memoizedState]},useMutableSource:Go,useSyncExternalStore:Ko,useId:hs,unstable_isNewReconciler:!1};function Ts(e,t){if(e&&e.defaultProps){for(var n in t=F({},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:F({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ds={isMounted:function(e){return(e=e._reactInternals)?ct(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Sl(),i=Cl(e),a=so(r,i);a.payload=t,n!=null&&(a.callback=n),t=co(e,a,i),t!==null&&(wl(t,e,i,r),lo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Sl(),i=Cl(e),a=so(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=co(e,a,i),t!==null&&(wl(t,e,i,r),lo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Sl(),r=Cl(e),i=so(n,r);i.tag=2,t!=null&&(i.callback=t),t=co(e,i,r),t!==null&&(wl(t,e,r,n),lo(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?!jr(n,r)||!jr(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={},B(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),fo(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+=oe(r),r=r.return;while(r);var i=n}catch(e){i=`
|
|
42
42
|
Error generating stack: `+e.message+`
|
|
43
|
-
`+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 Ps(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=so(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fl||(fl=!0,pl=r),Ps(e,t)},n}function Ls(e,t,n){n=so(-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(){Ps(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ps(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 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=Yl.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=so(-1,1),t.tag=2,co(n,t,1))),n.lanes|=1),e)}var Vs=S.ReactCurrentOwner,Hs=!1;function Us(e,t,n,r){t.child=e===null?Ga(t,null,n,r):Wa(t,e.child,n,r)}function Ws(e,t,n,r,i){n=n.render;var a=t.ref;return $a(t,i),r=Ro(e,t,n,r,a,i),n=zo(),e!==null&&!Hs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,uc(e,t,i)):(Oa&&n&&wa(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`&&!ru(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=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?jr:n,n(o,r)&&e.ref===t.ref)return uc(e,t,i)}return t.flags|=1,e=au(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(jr(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},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 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=ta(n)?$i:Zi.current;return a=ea(t,a),$a(t,i),n=Ro(e,t,n,r,a,i),r=zo(),e!==null&&!Hs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,uc(e,t,i)):(Oa&&r&&wa(t),t.flags|=1,Us(e,t,n,i),t.child)}function Xs(e,t,n,r,i){if(ta(n)){var a=!0;aa(t)}else a=!1;if($a(t,i),t.stateNode===null)lc(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,fo(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,oo(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,fo(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 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&&oa(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=Wa(t,e.child,null,a),t.child=Wa(t,null,s,a)):Us(e,t,s,a),t.memoizedState=r.state,i&&oa(t,n,!0),t.child}function Qs(e){var t=e.stateNode;t.pendingContext?ra(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ra(e,t.context,!1),yo(e,t.containerInfo)}function $s(e,t,n,r,i){return La(),Ra(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=So.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(So,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=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=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?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=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 rc(e,t){return t=cu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function ic(e,t,n,r){return r!==null&&Ra(r),Wa(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=Ns(Error(r(422))),ic(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=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=Ns(o,i,void 0),ic(e,t,s,i)}if(c=(s&e.childLanes)!==0,Hs||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))),ic(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=Mi(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=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),Qa(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=So.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(Yi(So,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&&Co(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&&Co(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),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 dc(e,t,n){switch(t.tag){case 3:Qs(t),La();break;case 5:bo(t);break;case 1:ta(t.type)&&aa(t);break;case 4:yo(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(So,So.current&1),e=uc(e,t,n),e===null?null:e.sibling):nc(e,t,n):(Yi(So,So.current&1),t.flags|=128,null);Yi(So,So.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),Yi(So,So.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,vo(ho.current);var o=null;switch(n){case`input`:i=he(e,i),r=he(e,r),o=[];break;case`select`:i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),o=[];break;case`textarea`:i=Ce(e,i),r=Ce(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Si)}Le(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`&&ci(`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(!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 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(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 gc(t),null;case 1:return ta(t.type)&&na(),gc(t),null;case 3:return i=t.stateNode,V(),Ji(Qi),Ji(Zi),To(),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))),gc(t),null;case 5:xo(t);var o=vo(_o.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=vo(ho.current),Fa(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Fi]=t,i[Ii]=s,e=(t.mode&1)!=0,n){case`dialog`:ci(`cancel`,i),ci(`close`,i);break;case`iframe`:case`object`:case`embed`:ci(`load`,i);break;case`video`:case`audio`:for(o=0;o<ii.length;o++)ci(ii[o],i);break;case`source`:ci(`error`,i);break;case`img`:case`image`:case`link`:ci(`error`,i),ci(`load`,i);break;case`details`:ci(`toggle`,i);break;case`input`:ge(i,s),ci(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},ci(`invalid`,i);break;case`textarea`:we(i,s),ci(`invalid`,i)}for(var c in Le(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&xi(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&xi(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&ci(`scroll`,i)}switch(n){case`input`:fe(i),ye(i,s,!0);break;case`textarea`:fe(i),Ee(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Si)}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=De(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[Fi]=t,e[Ii]=i,fc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Re(n,i),n){case`dialog`:ci(`cancel`,e),ci(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:ci(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ii.length;o++)ci(ii[o],e);o=i;break;case`source`:ci(`error`,e),o=i;break;case`img`:case`image`:case`link`:ci(`error`,e),ci(`load`,e),o=i;break;case`details`:ci(`toggle`,e),o=i;break;case`input`:ge(e,i),o=he(e,i),ci(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=F({},i,{value:void 0}),ci(`invalid`,e);break;case`textarea`:we(e,i),o=Ce(e,i),ci(`invalid`,e);break;default:o=i}for(s in Le(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Fe(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Ae(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&je(e,u):typeof u==`number`&&je(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&ci(`scroll`,e):u!=null&&x(e,s,u,c))}switch(n){case`input`:fe(e),ye(e,i,!1);break;case`textarea`:fe(e),Ee(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+le(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Se(e,!!i.multiple,i.defaultValue,!0):Se(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Si)}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=vo(_o.current),vo(ho.current),Fa(t)){if(i=t.stateNode,n=t.memoizedProps,i[Fi]=t,(s=i.nodeValue!==n)&&(e=Ea,e!==null))switch(e.tag){case 3:xi(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&xi(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Fi]=t,t.stateNode=i}return gc(t),null;case 13:if(Ji(So),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[Fi]=t}else La(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gc(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||So.current&1?nl===0&&(nl=3):Rl())),t.updateQueue!==null&&(t.flags|=4),gc(t),null);case 4:return V(),e===null&&di(t.stateNode.containerInfo),gc(t),null;case 10:return Za(t.type._context),gc(t),null;case 17:return ta(t.type)&&na(),gc(t),null;case 19:if(Ji(So),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(nl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Co(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 Yi(So,So.current&1|2),t.child}e=e.sibling}s.tail!==null&&_t()>ul&&(t.flags|=128,i=!0,hc(s,!1),t.lanes=4194304)}else{if(!i)if(e=Co(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&&!Oa)return gc(t),null}else 2*_t()-s.renderingStartTime>ul&&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=_t(),t.sibling=null,n=So.current,Yi(So,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&&(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(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 V(),Ji(Qi),Ji(Zi),To(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xo(t),null;case 13:if(Ji(So),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 Ji(So),null;case 4:return V(),null;case 10:return Za(t.type._context),null;case 22:case 23:return Pl(),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){Jl(e,t,n)}else n.current=null}function Cc(e,t,n){try{n()}catch(n){Jl(e,t,n)}}var wc=!1;function Tc(e,t){if(Ci=mn,e=Fr(),Ir(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(wi={focusedElem:e,selectionRange:n},mn=!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: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,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[Fi],delete t[Ii],delete t[Ri],delete t[zi],delete t[Bi])),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 U(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 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=Si));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(Tt&&typeof Tt.onCommitFiberUnmount==`function`)try{Tt.onCommitFiberUnmount(wt,n)}catch{}switch(n.tag){case 5:bc||Sc(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?ji(e.parentNode,n):e.nodeType===1&&ji(e,n),fn(e)):ji(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(!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)}Fc(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){Jl(n,t,e)}Fc(e,t,n);break;case 21:Fc(e,t,n);break;case 22:n.mode&1?(bc=(r=bc)||n.memoizedState!==null,Fc(e,t,n),bc=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 xc),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{Ec(3,e,e.return),Dc(3,e)}catch(t){Jl(e,e.return,t)}try{Ec(5,e,e.return)}catch(t){Jl(e,e.return,t)}}break;case 1:Rc(t,e),Bc(e),i&512&&n!==null&&Sc(n,n.return);break;case 5:if(Rc(t,e),Bc(e),i&512&&n!==null&&Sc(n,n.return),e.flags&32){var a=e.stateNode;try{je(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&&_e(a,o),Re(c,s);var u=Re(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Fe(a,f):d===`dangerouslySetInnerHTML`?Ae(a,f):d===`children`?je(a,f):x(a,d,f,u)}switch(c){case`input`:ve(a,o);break;case`textarea`:Te(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?Se(a,!!o.multiple,o.multiple?[]:``,!1):Se(a,!!o.multiple,o.defaultValue,!0)):Se(a,!!o.multiple,m,!1)}a[Ii]=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{fn(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=_t())),i&4&&Lc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(bc=(u=bc)||d,Rc(t,e),bc=u):Rc(t,e),Bc(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){Jl(i,n,e)}}break;case 5:Sc(p,p.return);break;case 22:if(p.memoizedState!==null){Wc(f);continue}}m===null?Wc(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=Pe(`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(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&&(je(a,``),i.flags&=-33),Mc(e,U(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;jc(e,U(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){H=e,Hc(e,t,n)}function Hc(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?Gc(i):(c.return=o,H=c);for(;a!==null;)H=a,Hc(a,t,n),a=a.sibling;H=i,yc=s,bc=l}Uc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,H=a):Uc(e,t,n)}}function Uc(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:Ts(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&po(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}po(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&&fn(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){Jl(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 Wc(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 Gc(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){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{Oc(t)}catch(e){Jl(t,a,e)}break;case 5:var o=t.return;try{Oc(t)}catch(e){Jl(t,o,e)}}}catch(e){Jl(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 Kc=Math.ceil,qc=S.ReactCurrentDispatcher,Jc=S.ReactCurrentOwner,Yc=S.ReactCurrentBatchConfig,Xc=0,Zc=null,Qc=null,$c=0,el=0,tl=qi(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?_t():bl===-1?bl=_t():bl}function Cl(e){return e.mode&1?Xc&2&&$c!==0?$c&-$c:za.transition===null?(e=Ut,e===0?(e=window.event,e=e===void 0?16:bn(e.type),e):e):(xl===0&&(xl=Rt()),xl):1}function wl(e,t,n,i){if(50<vl)throw vl=0,yl=null,Error(r(185));Bt(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=_t()+500,ca&&fa()))}function Tl(e,t){var n=e.callbackNode;It(e,t);var r=Pt(e,e===Zc?$c:0);if(r===0)n!==null&&ht(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ht(n),t===1)e.tag===0?da(jl.bind(null,e)):ua(jl.bind(null,e)),ki(function(){!(Xc&6)&&fa()}),n=null;else{switch(R(r)){case 1:n=yt;break;case 4:n=bt;break;case 16:n=xt;break;case 536870912:n=Ct;break;default:n=xt}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=Pt(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=_t()+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=Lt(e),a!==0&&(i=a,t=Dl(e,a))),t===1)throw n=rl,Fl(e,0),Al(e,i),Tl(e,_t()),n;if(t===6)Al(e,i);else{if(a=e.current.alternate,!(i&30)&&!kl(a)&&(t=zl(e,i),t===2&&(o=Lt(e),o!==0&&(i=o,t=Dl(e,o))),t===1))throw n=rl,Fl(e,0),Al(e,i),Tl(e,_t()),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-_t(),10<t)){if(Pt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Sl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ei(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-Dt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=_t()-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=Ei(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,_t()),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(!Ar(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-Dt(t),r=1<<n;e[n]=-1,t&=~r}}function jl(e){if(Xc&6)throw Error(r(327));Kl();var t=Pt(e,0);if(!(t&1))return Tl(e,_t()),null;var n=zl(e,t);if(e.tag!==0&&n===2){var i=Lt(e);i!==0&&(t=i,n=Dl(e,i))}if(n===1)throw n=rl,Fl(e,0),Al(e,t),Tl(e,_t()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wl(e,cl,dl),Tl(e,_t()),null}function Ml(e,t){var n=Xc;Xc|=1;try{return e(t)}finally{Xc=n,Xc===0&&(ul=_t()+500,ca&&fa())}}function Nl(e){gl!==null&&gl.tag===0&&!(Xc&6)&&Kl();var t=Xc;Xc|=1;var n=Yc.transition,r=Ut;try{if(Yc.transition=null,Ut=1,e)return e()}finally{Ut=r,Yc.transition=n,Xc=t,!(Xc&6)&&fa()}}function Pl(){el=tl.current,Ji(tl)}function Fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Di(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:V(),Ji(Qi),Ji(Zi),To();break;case 5:xo(r);break;case 4:V();break;case 13:Ji(So);break;case 19:Ji(So);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(),Eo.current=xs,Mo){for(var i=ko.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Mo=!1}if(Oo=0,jo=Ao=ko=null,No=!1,Po=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=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),Rl();break a}l=Error(r(426))}}else if(Oa&&c.mode&1){var _=zs(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Bs(_,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=Is(o,l,t);uo(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=Ls(o,c,t);uo(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&&!L();)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=vc(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=_c(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=Ut,i=Yc.transition;try{Yc.transition=null,Ut=1,Gl(e,t,n,r)}finally{Yc.transition=i,Ut=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(Vt(e,o),e===Zc&&(Qc=Zc=null,$c=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||hl||(hl=!0,eu(xt,function(){return Kl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Yc.transition,Yc.transition=null;var s=Ut;Ut=1;var c=Xc;Xc|=4,Jc.current=null,Tc(e,n),zc(n,e),Lr(wi),mn=!!Ci,wi=Ci=null,e.current=n,Vc(n,e,a),gt(),Xc=c,Ut=s,Yc.transition=o}else e.current=n;if(hl&&(hl=!1,gl=e,_l=a),o=e.pendingLanes,o===0&&(ml=null),Et(n.stateNode,i),Tl(e,_t()),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=R(_l),t=Yc.transition,n=Ut;try{if(Yc.transition=null,Ut=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,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){Jl(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(Xc=a,fa(),Tt&&typeof Tt.onPostCommitFiberRoot==`function`)try{Tt.onPostCommitFiberRoot(wt,e)}catch{}i=!0}return i}finally{Ut=n,Yc.transition=t}}return!1}function ql(e,t,n){t=Ms(n,t),t=Is(e,t,1),e=co(e,t,1),t=Sl(),e!==null&&(Bt(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=Ls(t,e,1),t=co(t,e,1),e=Sl(),t!==null&&(Bt(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>_t()-ll?Fl(e,0):ol|=n),Tl(e,t)}function Xl(e,t){t===0&&(e.mode&1?(t=Mt,Mt<<=1,!(Mt&130023424)&&(Mt=4194304)):t=1);var n=Sl();e=io(e,t),e!==null&&(Bt(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)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,Oa&&t.flags&1048576&&Ca(t,ga,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;lc(e,t),e=t.pendingProps;var a=ea(t,Zi.current);$a(t,n),a=Ro(null,t,i,e,a,n);var o=zo();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,B(t),a.updater=Ds,t.stateNode=a,a._reactInternals=t,js(t,i,e,n),t=Zs(null,t,i,!0,o,n)):(t.tag=0,Oa&&o&&wa(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=iu(i),e=Ts(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,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),Ys(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(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,oo(e,t),fo(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=$s(e,t,i,n,a);break a}else if(i!==a){a=Ms(Error(r(424)),t),t=$s(e,t,i,n,a);break a}else for(Da=Mi(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=uc(e,t,n);break a}Us(e,t,i,n)}t=t.child}return t;case 5:return bo(t),e===null&&Na(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ti(i,a)?s=null:o!==null&&Ti(i,o)&&(t.flags|=32),Js(e,t),Us(e,t,s,n),t.child;case 6:return e===null&&Na(t),null;case 13:return nc(e,t,n);case 4:return yo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Wa(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:Ts(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,Yi(Ka,i._currentValue),i._currentValue=s,o!==null)if(Ar(o.value,s)){if(o.children===a.children&&!Qi.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=so(-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}Us(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,Us(e,t,i,n),t.child;case 14:return i=t.type,a=Ts(i,t.pendingProps),a=Ts(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:Ts(i,a),lc(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),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 eu(e,t){return mt(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===N)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 T:return su(n.children,a,o,t);case E:s=8,a|=8;break;case D:return e=nu(12,n,t,a|2),e.elementType=D,e.lanes=o,e;case j:return e=nu(13,n,t,a),e.elementType=j,e.lanes=o,e;case M:return e=nu(19,n,t,a),e.elementType=M,e.lanes=o,e;case ee:return cu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case O:s=10;break a;case k:s=9;break a;case A:s=11;break a;case N:s=14;break a;case P: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=ee,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=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(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},B(a),e}function pu(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:w,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function mu(e){if(!e)return Xi;e=e._reactInternals;a:{if(ct(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=so(r,i),a.callback=t??null,co(n,a,i),e.current.lanes=i,Bt(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=so(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=co(i,t,o),e!==null&&(wl(e,i,o,a),lo(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[Li]=null}};function Cu(e){this._internalRoot=e}Cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tn.length&&t!==0&&t<tn[n].priority;n++);tn.splice(n,0,e),n===0&&sn(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[Li]=o.current,di(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[Li]=c.current,di(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)}Wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Nt(t.pendingLanes);n!==0&&(Ht(t,n|1),Tl(t,_t()),!(Xc&6)&&(ul=_t()+500,fa()))}break;case 13:Nl(function(){var t=io(e,1);t!==null&&wl(t,e,1,Sl())}),yu(e,1)}},z=function(e){if(e.tag===13){var t=io(e,134217728);t!==null&&wl(t,e,134217728,Sl()),yu(e,134217728)}},Gt=function(e){if(e.tag===13){var t=Cl(e),n=io(e,t);n!==null&&wl(n,e,t,Sl()),yu(e,t)}},Kt=function(){return Ut},qt=function(e,t){var n=Ut;try{return Ut=e,t()}finally{Ut=n}},Ve=function(e,t,n){switch(t){case`input`:if(ve(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=Wi(i);if(!a)throw Error(r(90));pe(i),ve(i,a)}}}break;case`textarea`:Te(e,n);break;case`select`:t=n.value,t!=null&&Se(e,!!n.multiple,t,!1)}},qe=Ml,Je=Nl;var ku={usingClientEntryPoint:!1,Events:[Hi,Ui,Wi,Ge,Ke,Ml]},Au={findFiberByHostInstance:Vi,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:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ft(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{wt=Mu.inject(ju),Tt=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[Li]=t.current,di(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=ft(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[Li]=t.current,di(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[Li]=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`})),ms=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=ps()})),hs={disabled:!1},gs=L.createContext(null),_s=function(e){return e.scrollTop},vs=l(ms()),ys=`unmounted`,bs=`exited`,xs=`entering`,Ss=`entered`,Cs=`exiting`,ws=function(e){os(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=bs,r.appearStatus=xs):o=Ss:o=t.unmountOnExit||t.mountOnEnter?ys:bs,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:bs}: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=xs):(n===`entering`||n===`entered`)&&(t=Cs)}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:vs.findDOMNode(this);n&&_s(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:ys})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[vs.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||hs.disabled){this.safeSetState({status:Ss},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:xs},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Ss},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:vs.findDOMNode(this);if(!t||hs.disabled){this.safeSetState({status:bs},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Cs},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:bs},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:vs.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=is(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return L.createElement(gs.Provider,{value:null},typeof n==`function`?n(e,r):L.cloneElement(L.Children.only(n),r))},t}(L.Component);ws.contextType=gs,ws.propTypes={};function Ts(){}ws.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ts,onEntering:Ts,onEntered:Ts,onExit:Ts,onExiting:Ts,onExited:Ts},ws.UNMOUNTED=ys,ws.EXITED=bs,ws.ENTERING=xs,ws.ENTERED=Ss,ws.EXITING=Cs;var Es=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return cs(e,t)})},Ds=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return us(e,t)})},Os=function(e){os(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&&_s(e),r&&(this.appliedClasses[t][n]=r,Es(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&&Ds(e,r),i&&Ds(e,i),a&&Ds(e,a)},n.render=function(){var e=this.props;e.classNames;var t=is(e,[`classNames`]);return L.createElement(ws,y({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(L.Component);Os.defaultProps={classNames:``},Os.propTypes={};function ks(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function As(e,t){var n=function(e){return t&&(0,L.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&L.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function js(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 Ms(e,t,n){return n[t]==null?e.props[t]:n[t]}function Ns(e,t){return As(e.children,function(n){return(0,L.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Ms(n,`appear`,e),enter:Ms(n,`enter`,e),exit:Ms(n,`exit`,e)})})}function Ps(e,t,n){var r=As(e.children),i=js(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,L.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,L.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,L.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:Ms(o,`exit`,e),enter:Ms(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,L.cloneElement)(o,{in:!1}):c&&s&&(0,L.isValidElement)(l)&&(i[a]=(0,L.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:Ms(o,`exit`,e),enter:Ms(o,`enter`,e)}))}}),i}var Fs=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Is={component:`div`,childFactory:function(e){return e}},Ls=function(e){os(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(ks(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?Ns(e,r):Ps(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=As(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=y({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=is(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Fs(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?L.createElement(gs.Provider,{value:i},a):L.createElement(gs.Provider,{value:i},L.createElement(t,r,a))},t}(L.Component);Ls.propTypes={},Ls.defaultProps=Is;var Rs=[];function zs(e){L.useEffect(e,Rs)}var Bs=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 Vs(){let e=es(Bs.create).current;return zs(e.disposeEffect),e}function Hs(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=L.useState(!1),f=Pr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=Pr(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),L.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 Us=Lr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Ws=550,Gs=Nt`
|
|
43
|
+
`+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 Ps(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=so(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fl||(fl=!0,pl=r),Ps(e,t)},n}function Ls(e,t,n){n=so(-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(){Ps(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ps(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 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=Yl.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=so(-1,1),t.tag=2,co(n,t,1))),n.lanes|=1),e)}var Vs=S.ReactCurrentOwner,Hs=!1;function Us(e,t,n,r){t.child=e===null?Ga(t,null,n,r):Wa(t,e.child,n,r)}function Ws(e,t,n,r,i){n=n.render;var a=t.ref;return $a(t,i),r=Ro(e,t,n,r,a,i),n=zo(),e!==null&&!Hs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,uc(e,t,i)):(Oa&&n&&wa(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`&&!ru(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=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?jr:n,n(o,r)&&e.ref===t.ref)return uc(e,t,i)}return t.flags|=1,e=au(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(jr(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},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 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=ta(n)?$i:Zi.current;return a=ea(t,a),$a(t,i),n=Ro(e,t,n,r,a,i),r=zo(),e!==null&&!Hs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,uc(e,t,i)):(Oa&&r&&wa(t),t.flags|=1,Us(e,t,n,i),t.child)}function Xs(e,t,n,r,i){if(ta(n)){var a=!0;aa(t)}else a=!1;if($a(t,i),t.stateNode===null)lc(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,fo(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,oo(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,fo(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 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&&oa(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=Wa(t,e.child,null,a),t.child=Wa(t,null,s,a)):Us(e,t,s,a),t.memoizedState=r.state,i&&oa(t,n,!0),t.child}function Qs(e){var t=e.stateNode;t.pendingContext?ra(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ra(e,t.context,!1),yo(e,t.containerInfo)}function $s(e,t,n,r,i){return La(),Ra(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=So.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(So,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=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=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?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=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 rc(e,t){return t=cu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function ic(e,t,n,r){return r!==null&&Ra(r),Wa(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=Ns(Error(r(422))),ic(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=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=Ns(o,i,void 0),ic(e,t,s,i)}if(c=(s&e.childLanes)!==0,Hs||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))),ic(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=Mi(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=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),Qa(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=So.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(Yi(So,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&&Co(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&&Co(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),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 dc(e,t,n){switch(t.tag){case 3:Qs(t),La();break;case 5:bo(t);break;case 1:ta(t.type)&&aa(t);break;case 4:yo(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(So,So.current&1),e=uc(e,t,n),e===null?null:e.sibling):nc(e,t,n):(Yi(So,So.current&1),t.flags|=128,null);Yi(So,So.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),Yi(So,So.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,vo(ho.current);var o=null;switch(n){case`input`:i=he(e,i),r=he(e,r),o=[];break;case`select`:i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),o=[];break;case`textarea`:i=Ce(e,i),r=Ce(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Si)}Le(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`&&ci(`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(!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 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(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 gc(t),null;case 1:return ta(t.type)&&na(),gc(t),null;case 3:return i=t.stateNode,V(),Ji(Qi),Ji(Zi),To(),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))),gc(t),null;case 5:xo(t);var o=vo(_o.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=vo(ho.current),Fa(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Fi]=t,i[Ii]=s,e=(t.mode&1)!=0,n){case`dialog`:ci(`cancel`,i),ci(`close`,i);break;case`iframe`:case`object`:case`embed`:ci(`load`,i);break;case`video`:case`audio`:for(o=0;o<ii.length;o++)ci(ii[o],i);break;case`source`:ci(`error`,i);break;case`img`:case`image`:case`link`:ci(`error`,i),ci(`load`,i);break;case`details`:ci(`toggle`,i);break;case`input`:ge(i,s),ci(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},ci(`invalid`,i);break;case`textarea`:we(i,s),ci(`invalid`,i)}for(var c in Le(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&xi(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&xi(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&ci(`scroll`,i)}switch(n){case`input`:fe(i),ye(i,s,!0);break;case`textarea`:fe(i),Ee(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Si)}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=De(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[Fi]=t,e[Ii]=i,fc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Re(n,i),n){case`dialog`:ci(`cancel`,e),ci(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:ci(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ii.length;o++)ci(ii[o],e);o=i;break;case`source`:ci(`error`,e),o=i;break;case`img`:case`image`:case`link`:ci(`error`,e),ci(`load`,e),o=i;break;case`details`:ci(`toggle`,e),o=i;break;case`input`:ge(e,i),o=he(e,i),ci(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=F({},i,{value:void 0}),ci(`invalid`,e);break;case`textarea`:we(e,i),o=Ce(e,i),ci(`invalid`,e);break;default:o=i}for(s in Le(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Fe(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Ae(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&je(e,u):typeof u==`number`&&je(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&ci(`scroll`,e):u!=null&&x(e,s,u,c))}switch(n){case`input`:fe(e),ye(e,i,!1);break;case`textarea`:fe(e),Ee(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+le(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Se(e,!!i.multiple,i.defaultValue,!0):Se(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Si)}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=vo(_o.current),vo(ho.current),Fa(t)){if(i=t.stateNode,n=t.memoizedProps,i[Fi]=t,(s=i.nodeValue!==n)&&(e=Ea,e!==null))switch(e.tag){case 3:xi(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&xi(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Fi]=t,t.stateNode=i}return gc(t),null;case 13:if(Ji(So),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[Fi]=t}else La(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gc(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||So.current&1?nl===0&&(nl=3):Rl())),t.updateQueue!==null&&(t.flags|=4),gc(t),null);case 4:return V(),e===null&&di(t.stateNode.containerInfo),gc(t),null;case 10:return Za(t.type._context),gc(t),null;case 17:return ta(t.type)&&na(),gc(t),null;case 19:if(Ji(So),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(nl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Co(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 Yi(So,So.current&1|2),t.child}e=e.sibling}s.tail!==null&&_t()>ul&&(t.flags|=128,i=!0,hc(s,!1),t.lanes=4194304)}else{if(!i)if(e=Co(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&&!Oa)return gc(t),null}else 2*_t()-s.renderingStartTime>ul&&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=_t(),t.sibling=null,n=So.current,Yi(So,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&&(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(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 V(),Ji(Qi),Ji(Zi),To(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xo(t),null;case 13:if(Ji(So),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 Ji(So),null;case 4:return V(),null;case 10:return Za(t.type._context),null;case 22:case 23:return Pl(),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){Jl(e,t,n)}else n.current=null}function Cc(e,t,n){try{n()}catch(n){Jl(e,t,n)}}var wc=!1;function Tc(e,t){if(Ci=mn,e=Fr(),Ir(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(wi={focusedElem:e,selectionRange:n},mn=!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: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,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[Fi],delete t[Ii],delete t[Ri],delete t[zi],delete t[Bi])),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=Si));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 U(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(U(e,t,n),e=e.sibling;e!==null;)U(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(Tt&&typeof Tt.onCommitFiberUnmount==`function`)try{Tt.onCommitFiberUnmount(wt,n)}catch{}switch(n.tag){case 5:bc||Sc(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?ji(e.parentNode,n):e.nodeType===1&&ji(e,n),fn(e)):ji(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(!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)}Fc(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){Jl(n,t,e)}Fc(e,t,n);break;case 21:Fc(e,t,n);break;case 22:n.mode&1?(bc=(r=bc)||n.memoizedState!==null,Fc(e,t,n),bc=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 xc),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{Ec(3,e,e.return),Dc(3,e)}catch(t){Jl(e,e.return,t)}try{Ec(5,e,e.return)}catch(t){Jl(e,e.return,t)}}break;case 1:Rc(t,e),Bc(e),i&512&&n!==null&&Sc(n,n.return);break;case 5:if(Rc(t,e),Bc(e),i&512&&n!==null&&Sc(n,n.return),e.flags&32){var a=e.stateNode;try{je(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&&_e(a,o),Re(c,s);var u=Re(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Fe(a,f):d===`dangerouslySetInnerHTML`?Ae(a,f):d===`children`?je(a,f):x(a,d,f,u)}switch(c){case`input`:ve(a,o);break;case`textarea`:Te(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?Se(a,!!o.multiple,o.multiple?[]:``,!1):Se(a,!!o.multiple,o.defaultValue,!0)):Se(a,!!o.multiple,m,!1)}a[Ii]=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{fn(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=_t())),i&4&&Lc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(bc=(u=bc)||d,Rc(t,e),bc=u):Rc(t,e),Bc(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){Jl(i,n,e)}}break;case 5:Sc(p,p.return);break;case 22:if(p.memoizedState!==null){Wc(f);continue}}m===null?Wc(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=Pe(`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(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&&(je(a,``),i.flags&=-33),U(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){Jl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vc(e,t,n){H=e,Hc(e,t,n)}function Hc(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?Gc(i):(c.return=o,H=c);for(;a!==null;)H=a,Hc(a,t,n),a=a.sibling;H=i,yc=s,bc=l}Uc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,H=a):Uc(e,t,n)}}function Uc(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:Ts(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&po(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}po(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&&fn(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){Jl(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 Wc(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 Gc(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){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{Oc(t)}catch(e){Jl(t,a,e)}break;case 5:var o=t.return;try{Oc(t)}catch(e){Jl(t,o,e)}}}catch(e){Jl(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 Kc=Math.ceil,qc=S.ReactCurrentDispatcher,Jc=S.ReactCurrentOwner,Yc=S.ReactCurrentBatchConfig,Xc=0,Zc=null,Qc=null,$c=0,el=0,tl=qi(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?_t():bl===-1?bl=_t():bl}function Cl(e){return e.mode&1?Xc&2&&$c!==0?$c&-$c:za.transition===null?(e=Ut,e===0?(e=window.event,e=e===void 0?16:bn(e.type),e):e):(xl===0&&(xl=Rt()),xl):1}function wl(e,t,n,i){if(50<vl)throw vl=0,yl=null,Error(r(185));Bt(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=_t()+500,ca&&fa()))}function Tl(e,t){var n=e.callbackNode;It(e,t);var r=Pt(e,e===Zc?$c:0);if(r===0)n!==null&&ht(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ht(n),t===1)e.tag===0?da(jl.bind(null,e)):ua(jl.bind(null,e)),ki(function(){!(Xc&6)&&fa()}),n=null;else{switch(R(r)){case 1:n=yt;break;case 4:n=bt;break;case 16:n=xt;break;case 536870912:n=Ct;break;default:n=xt}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=Pt(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=_t()+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=Lt(e),a!==0&&(i=a,t=Dl(e,a))),t===1)throw n=rl,Fl(e,0),Al(e,i),Tl(e,_t()),n;if(t===6)Al(e,i);else{if(a=e.current.alternate,!(i&30)&&!kl(a)&&(t=zl(e,i),t===2&&(o=Lt(e),o!==0&&(i=o,t=Dl(e,o))),t===1))throw n=rl,Fl(e,0),Al(e,i),Tl(e,_t()),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-_t(),10<t)){if(Pt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Sl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ei(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-Dt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=_t()-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=Ei(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,_t()),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(!Ar(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-Dt(t),r=1<<n;e[n]=-1,t&=~r}}function jl(e){if(Xc&6)throw Error(r(327));Kl();var t=Pt(e,0);if(!(t&1))return Tl(e,_t()),null;var n=zl(e,t);if(e.tag!==0&&n===2){var i=Lt(e);i!==0&&(t=i,n=Dl(e,i))}if(n===1)throw n=rl,Fl(e,0),Al(e,t),Tl(e,_t()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wl(e,cl,dl),Tl(e,_t()),null}function Ml(e,t){var n=Xc;Xc|=1;try{return e(t)}finally{Xc=n,Xc===0&&(ul=_t()+500,ca&&fa())}}function Nl(e){gl!==null&&gl.tag===0&&!(Xc&6)&&Kl();var t=Xc;Xc|=1;var n=Yc.transition,r=Ut;try{if(Yc.transition=null,Ut=1,e)return e()}finally{Ut=r,Yc.transition=n,Xc=t,!(Xc&6)&&fa()}}function Pl(){el=tl.current,Ji(tl)}function Fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Di(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:V(),Ji(Qi),Ji(Zi),To();break;case 5:xo(r);break;case 4:V();break;case 13:Ji(So);break;case 19:Ji(So);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(),Eo.current=xs,Mo){for(var i=ko.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Mo=!1}if(Oo=0,jo=Ao=ko=null,No=!1,Po=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=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),Rl();break a}l=Error(r(426))}}else if(Oa&&c.mode&1){var _=zs(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Bs(_,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=Is(o,l,t);uo(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=Ls(o,c,t);uo(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&&!L();)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=vc(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=_c(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=Ut,i=Yc.transition;try{Yc.transition=null,Ut=1,Gl(e,t,n,r)}finally{Yc.transition=i,Ut=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(Vt(e,o),e===Zc&&(Qc=Zc=null,$c=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||hl||(hl=!0,eu(xt,function(){return Kl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Yc.transition,Yc.transition=null;var s=Ut;Ut=1;var c=Xc;Xc|=4,Jc.current=null,Tc(e,n),zc(n,e),Lr(wi),mn=!!Ci,wi=Ci=null,e.current=n,Vc(n,e,a),gt(),Xc=c,Ut=s,Yc.transition=o}else e.current=n;if(hl&&(hl=!1,gl=e,_l=a),o=e.pendingLanes,o===0&&(ml=null),Et(n.stateNode,i),Tl(e,_t()),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=R(_l),t=Yc.transition,n=Ut;try{if(Yc.transition=null,Ut=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,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){Jl(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(Xc=a,fa(),Tt&&typeof Tt.onPostCommitFiberRoot==`function`)try{Tt.onPostCommitFiberRoot(wt,e)}catch{}i=!0}return i}finally{Ut=n,Yc.transition=t}}return!1}function ql(e,t,n){t=Ms(n,t),t=Is(e,t,1),e=co(e,t,1),t=Sl(),e!==null&&(Bt(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=Ls(t,e,1),t=co(t,e,1),e=Sl(),t!==null&&(Bt(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>_t()-ll?Fl(e,0):ol|=n),Tl(e,t)}function Xl(e,t){t===0&&(e.mode&1?(t=Mt,Mt<<=1,!(Mt&130023424)&&(Mt=4194304)):t=1);var n=Sl();e=io(e,t),e!==null&&(Bt(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)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,Oa&&t.flags&1048576&&Ca(t,ga,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;lc(e,t),e=t.pendingProps;var a=ea(t,Zi.current);$a(t,n),a=Ro(null,t,i,e,a,n);var o=zo();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,B(t),a.updater=Ds,t.stateNode=a,a._reactInternals=t,js(t,i,e,n),t=Zs(null,t,i,!0,o,n)):(t.tag=0,Oa&&o&&wa(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=iu(i),e=Ts(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,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),Ys(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(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,oo(e,t),fo(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=$s(e,t,i,n,a);break a}else if(i!==a){a=Ms(Error(r(424)),t),t=$s(e,t,i,n,a);break a}else for(Da=Mi(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=uc(e,t,n);break a}Us(e,t,i,n)}t=t.child}return t;case 5:return bo(t),e===null&&Na(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ti(i,a)?s=null:o!==null&&Ti(i,o)&&(t.flags|=32),Js(e,t),Us(e,t,s,n),t.child;case 6:return e===null&&Na(t),null;case 13:return nc(e,t,n);case 4:return yo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Wa(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:Ts(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,Yi(Ka,i._currentValue),i._currentValue=s,o!==null)if(Ar(o.value,s)){if(o.children===a.children&&!Qi.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=so(-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}Us(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,Us(e,t,i,n),t.child;case 14:return i=t.type,a=Ts(i,t.pendingProps),a=Ts(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:Ts(i,a),lc(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),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 eu(e,t){return mt(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===N)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 T:return su(n.children,a,o,t);case E:s=8,a|=8;break;case D:return e=nu(12,n,t,a|2),e.elementType=D,e.lanes=o,e;case j:return e=nu(13,n,t,a),e.elementType=j,e.lanes=o,e;case M:return e=nu(19,n,t,a),e.elementType=M,e.lanes=o,e;case ee:return cu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case O:s=10;break a;case k:s=9;break a;case A:s=11;break a;case N:s=14;break a;case P: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=ee,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=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(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},B(a),e}function pu(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:w,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function mu(e){if(!e)return Xi;e=e._reactInternals;a:{if(ct(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=so(r,i),a.callback=t??null,co(n,a,i),e.current.lanes=i,Bt(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=so(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=co(i,t,o),e!==null&&(wl(e,i,o,a),lo(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[Li]=null}};function Cu(e){this._internalRoot=e}Cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tn.length&&t!==0&&t<tn[n].priority;n++);tn.splice(n,0,e),n===0&&sn(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[Li]=o.current,di(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[Li]=c.current,di(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)}Wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Nt(t.pendingLanes);n!==0&&(Ht(t,n|1),Tl(t,_t()),!(Xc&6)&&(ul=_t()+500,fa()))}break;case 13:Nl(function(){var t=io(e,1);t!==null&&wl(t,e,1,Sl())}),yu(e,1)}},z=function(e){if(e.tag===13){var t=io(e,134217728);t!==null&&wl(t,e,134217728,Sl()),yu(e,134217728)}},Gt=function(e){if(e.tag===13){var t=Cl(e),n=io(e,t);n!==null&&wl(n,e,t,Sl()),yu(e,t)}},Kt=function(){return Ut},qt=function(e,t){var n=Ut;try{return Ut=e,t()}finally{Ut=n}},Ve=function(e,t,n){switch(t){case`input`:if(ve(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=Wi(i);if(!a)throw Error(r(90));pe(i),ve(i,a)}}}break;case`textarea`:Te(e,n);break;case`select`:t=n.value,t!=null&&Se(e,!!n.multiple,t,!1)}},qe=Ml,Je=Nl;var ku={usingClientEntryPoint:!1,Events:[Hi,Ui,Wi,Ge,Ke,Ml]},Au={findFiberByHostInstance:Vi,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:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ft(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{wt=Mu.inject(ju),Tt=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[Li]=t.current,di(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=ft(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[Li]=t.current,di(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[Li]=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`})),ms=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=ps()})),hs={disabled:!1},gs=L.createContext(null),_s=function(e){return e.scrollTop},vs=l(ms()),ys=`unmounted`,bs=`exited`,xs=`entering`,Ss=`entered`,Cs=`exiting`,ws=function(e){os(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=bs,r.appearStatus=xs):o=Ss:o=t.unmountOnExit||t.mountOnEnter?ys:bs,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:bs}: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=xs):(n===`entering`||n===`entered`)&&(t=Cs)}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:vs.findDOMNode(this);n&&_s(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:ys})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[vs.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||hs.disabled){this.safeSetState({status:Ss},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:xs},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Ss},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:vs.findDOMNode(this);if(!t||hs.disabled){this.safeSetState({status:bs},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Cs},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:bs},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:vs.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=is(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return L.createElement(gs.Provider,{value:null},typeof n==`function`?n(e,r):L.cloneElement(L.Children.only(n),r))},t}(L.Component);ws.contextType=gs,ws.propTypes={};function Ts(){}ws.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ts,onEntering:Ts,onEntered:Ts,onExit:Ts,onExiting:Ts,onExited:Ts},ws.UNMOUNTED=ys,ws.EXITED=bs,ws.ENTERING=xs,ws.ENTERED=Ss,ws.EXITING=Cs;var Es=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return cs(e,t)})},Ds=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return us(e,t)})},Os=function(e){os(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&&_s(e),r&&(this.appliedClasses[t][n]=r,Es(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&&Ds(e,r),i&&Ds(e,i),a&&Ds(e,a)},n.render=function(){var e=this.props;e.classNames;var t=is(e,[`classNames`]);return L.createElement(ws,y({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(L.Component);Os.defaultProps={classNames:``},Os.propTypes={};function ks(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function As(e,t){var n=function(e){return t&&(0,L.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&L.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function js(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 Ms(e,t,n){return n[t]==null?e.props[t]:n[t]}function Ns(e,t){return As(e.children,function(n){return(0,L.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Ms(n,`appear`,e),enter:Ms(n,`enter`,e),exit:Ms(n,`exit`,e)})})}function Ps(e,t,n){var r=As(e.children),i=js(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,L.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,L.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,L.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:Ms(o,`exit`,e),enter:Ms(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,L.cloneElement)(o,{in:!1}):c&&s&&(0,L.isValidElement)(l)&&(i[a]=(0,L.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:Ms(o,`exit`,e),enter:Ms(o,`enter`,e)}))}}),i}var Fs=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Is={component:`div`,childFactory:function(e){return e}},Ls=function(e){os(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(ks(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?Ns(e,r):Ps(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=As(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=y({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=is(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Fs(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?L.createElement(gs.Provider,{value:i},a):L.createElement(gs.Provider,{value:i},L.createElement(t,r,a))},t}(L.Component);Ls.propTypes={},Ls.defaultProps=Is;var Rs=[];function zs(e){L.useEffect(e,Rs)}var Bs=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 Vs(){let e=es(Bs.create).current;return zs(e.disposeEffect),e}function Hs(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=L.useState(!1),f=Pr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=Pr(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),L.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 Us=Lr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Ws=550,Gs=Nt`
|
|
44
44
|
0% {
|
|
45
45
|
transform: scale(0);
|
|
46
46
|
opacity: 0.1;
|
|
@@ -140,58 +140,58 @@ Error generating stack: `+e.message+`
|
|
|
140
140
|
animation: ${cc} 1.4s linear infinite;
|
|
141
141
|
`,dc=typeof lc==`string`?null:Mt`
|
|
142
142
|
animation: ${lc} 1.4s ease-in-out infinite;
|
|
143
|
-
`,fc=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return ia({root:[`root`,n,`color${Do(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${Do(n)}`,i&&`circleDisableShrink`]},oc,t)},pc=V(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Do(n.color)}`]]}})(ko(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:uc||{animation:`${cc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ac()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),mc=V(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),hc=V(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${Do(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ko(({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:dc||{animation:`${lc} 1.4s ease-in-out infinite`}}]}))),gc=V(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(ko(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),_c=L.forwardRef(function(e,t){let n=Ao({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=fc(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((sc-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)(pc,{className:Pr(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,z.jsxs)(mc,{className:m.svg,ownerState:p,viewBox:`${sc/2} ${sc/2} ${sc} ${sc}`,children:[o?(0,z.jsx)(gc,{className:m.track,ownerState:p,cx:sc,cy:sc,r:(sc-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,z.jsx)(hc,{className:m.circle,style:h,ownerState:p,cx:sc,cy:sc,r:(sc-l)/2,fill:`none`,strokeWidth:l})]})})});function vc(e){return Ir(`MuiButton`,e)}var yc=Lr(`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(`.`)),bc=L.createContext({}),xc=L.createContext(void 0),H=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=ia({root:[`root`,o&&`loading`,a,`${a}${Do(t)}`,`size${Do(i)}`,`${a}Size${Do(i)}`,`color${Do(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${Do(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${Do(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${Do(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},vc,c);return{...c,...l}},Sc=[{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}}}],Cc=V(tc,{shouldForwardProp:e=>yo(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Do(n.color)}`],t[`size${Do(n.size)}`],t[`${n.variant}Size${Do(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ko(({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`},[`&.${yc.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]},[`&.${yc.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${yc.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)`,[`&.${yc.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(ac()).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`},[`&.${yc.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${yc.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}),[`&.${yc.loading}`]:{color:`transparent`}}}]}})),wc=V(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Do(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}},...Sc]})),Tc=V(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Do(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}},...Sc]})),Ec=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}}]})),Dc=V(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),Oc=L.forwardRef(function(e,t){let n=L.useContext(bc),r=L.useContext(xc),i=Ao({props:Xr(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=Go(h),T=_??(0,z.jsx)(_c,{"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=H(E),O=(b||g&&v===`start`)&&(0,z.jsx)(wc,{className:D.startIcon,ownerState:E,children:b||(0,z.jsx)(Dc,{className:D.loadingIconPlaceholder,ownerState:E})}),k=(f||g&&v===`end`)&&(0,z.jsx)(Tc,{className:D.endIcon,ownerState:E,children:f||(0,z.jsx)(Dc,{className:D.loadingIconPlaceholder,ownerState:E})}),A=r||``,j=typeof g==`boolean`?(0,z.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,z.jsx)(Ec,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:M,...N}=D;return(0,z.jsxs)(Cc,{ownerState:E,className:Pr(n.className,D.root,c,A),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:Pr(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:N,children:[O,v!==`end`&&j,a,v===`end`&&j,k]})}),kc=V(Oc)({fontSize:`0.9em`,marginLeft:8,minWidth:32,height:32,"& span":{"& svg":{width:`1.3em !important`,height:`1.3em !important`}}}),Ac=({label:e,onClick:t,disabled:n,title:r})=>(0,z.jsx)(kc,{title:r,onClick:t,disabled:n,size:`small`,variant:`contained`,children:e});Ac.propTypes={disabled:R.bool,label:R.oneOfType([R.string,R.object]),onClick:R.func,title:R.string},Ac.defaultProps={disabled:!1,label:`Add`,onClick:()=>{},title:``};var U=e=>typeof e==`string`,jc=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Mc=e=>e==null?``:``+e,Nc=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Pc=/###/g,Fc=e=>e&&e.indexOf(`###`)>-1?e.replace(Pc,`.`):e,Ic=e=>!e||U(e),Lc=(e,t,n)=>{let r=U(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Ic(e))return{};let t=Fc(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ic(e)?{}:{obj:e,k:Fc(r[i])}},Rc=(e,t,n)=>{let{obj:r,k:i}=Lc(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=Lc(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Lc(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},zc=(e,t,n,r)=>{let{obj:i,k:a}=Lc(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Bc=(e,t)=>{let{obj:n,k:r}=Lc(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Vc=(e,t,n)=>{let r=Bc(e,n);return r===void 0?Bc(t,n):r},Hc=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?U(e[r])||e[r]instanceof String||U(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Hc(e[r],t[r],n):e[r]=t[r]);return e},Uc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Wc={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},Gc=e=>U(e)?e.replace(/[&<>"'\/]/g,e=>Wc[e]):e,Kc=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}},qc=[` `,`,`,`?`,`!`,`;`],Jc=new Kc(20),Yc=(e,t,n)=>{t||=``,n||=``;let r=qc.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=Jc.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},Xc=(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},Zc=e=>e?.replace(/_/g,`-`),Qc={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)}},$c=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||Qc,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(U(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},el=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])})}},tl=class extends el{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):U(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Bc(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!U(n)?s:Xc(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),Rc(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(U(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Bc(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Hc(s,n,i):s={...s,...n},Rc(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}},nl={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}},rl=Symbol(`i18next/PATH_KEY`);function il(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===rl?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function al(e,t){let{[rl]:n}=e(il()),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 ol={},sl=e=>!U(e)&&typeof e!=`boolean`&&typeof e!=`number`,cl=class e extends el{constructor(e,t={}){super(),Nc([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=$c.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=sl(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&&!Yc(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:U(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:U(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=al(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?al(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!U(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=sl(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(U(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:sl(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&U(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=U(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!U(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=U(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=nl.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return U(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?al(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!U(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(U(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!ol[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(ol[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!U(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},ll=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$c.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Zc(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=Zc(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(U(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),U(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return U(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):U(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},ul={zero:0,one:1,two:2,few:3,many:4,other:5},dl={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},fl=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=$c.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=Zc(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!`),dl;if(!e.match(/-|_/))return dl;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)=>ul[e]-ul[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))}},pl=(e,t,n,r=`.`,i=!0)=>{let a=Vc(e,t,n);return!a&&i&&U(n)&&(a=Xc(e,n,r),a===void 0&&(a=Xc(t,n,r))),a},ml=e=>e.replace(/\$/g,`$$$$`),hl=class{constructor(e={}){this.logger=$c.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?Gc:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Uc(i):a||`{{`,this.suffix=o?Uc(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?Uc(d):f||Uc(`$t(`),this.nestingSuffix=p?Uc(p):m||Uc(`)`),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=pl(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(pl(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=>ml(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?ml(this.escape(e)):ml(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=U(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!U(a)&&!this.useRawValueToEscape&&(a=Mc(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(`${Uc(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!U(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!U(i))return i;U(i)||(i=Mc(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}},gl=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}},_l=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(Zc(r),i),t[o]=s),s(n)}},vl=e=>(t,n,r)=>e(Zc(n),r)(t),yl=class{constructor(e={}){this.logger=$c.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?_l:vl;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()]=_l(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}=gl(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)}},bl=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},xl=class extends el{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=$c.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=>{zc(n.loaded,[i],a),bl(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();U(e)&&(e=this.languageUtils.toResolveHierarchy(e)),U(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Sl=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),U(e[1])&&(t.defaultValue=e[1]),U(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Cl=e=>(U(e.ns)&&(e.ns=[e.ns]),U(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),U(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),wl=()=>{},Tl=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},El=`__i18next_supportNoticeShown`,Dl=()=>!!(typeof globalThis<`u`&&globalThis[El]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),Ol=()=>{typeof globalThis<`u`&&(globalThis[El]=!0)},kl=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)),Al=class e extends el{constructor(e={},t){if(super(),this.options=Cl(e),this.services={},this.logger=$c,this.modules={external:[]},Tl(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(U(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=Sl();this.options={...n,...this.options,...Cl(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&&!kl(this)&&!Dl()&&(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 💙`),Ol());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?$c.init(r(this.modules.logger),this.options):$c.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:yl;let t=new ll(this.options);this.store=new tl(this.options.resources,this.options);let i=this.services;i.logger=$c,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new fl(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 hl(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new xl(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 cl(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||=wl,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=jc(),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=wl){let n=t,r=U(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=jc();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||=wl,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`&&nl.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=jc();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=U(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(U(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=al(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=al(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=al(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return U(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=jc();return this.options.ns?(U(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=jc();U(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new ll(Sl());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=wl){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 tl(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={...Sl().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new hl(n)}return a.translator=new cl(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();Al.createInstance,Al.dir,Al.init,Al.loadResources,Al.reloadResources,Al.use,Al.changeLanguage,Al.getFixedT,Al.t,Al.exists,Al.setDefaultNamespace,Al.hasLoadedNamespace,Al.loadNamespaces,Al.loadLanguages,Al.init({fallbackLng:`en`,lng:`en`,debug:!0,resources:{en:{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].`},ebsr:{part:`Part {{index}}`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`},imageClozeAssociation:{reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`},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.`},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`}},graphing:{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`,redo:`Redo`,reset:`Reset`},mathInline:{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.`},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}}.`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,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`}},es:{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`},ebsr:{part:`Parte {{index}}`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`},imageClozeAssociation:{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`},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`},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,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`}},graphing:{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`,redo:`Rehacer`,reset:`Reiniciar`},mathInline:{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.`},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}}.`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,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`}}}});var jl={translator:{...Al,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 Al.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},Ml=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaIAAAB6CAYAAAD9EVeZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA35pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZ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19i3ljSO3xreJBZ7o6Q+3DdS84tNYZey03zc9h9DRGHPwMBAAARIVCBAAAFCIAAKAQAQAAUIgAAIBCBAAAQCECAAAKEQAAQLBC9EH7Nyw06Gj6s/AUOtGJTnSis4E6pRCtbm5uJifww4cP8lC8ux460YlOdKKzgTqlEM28e/duQ+4d9OnTp+jCRINoWV9fl5/6mym8hE50ohOd6GygTrnX3C+tVuvk27dv5/I2mf97d2SNUrblBy6m8/aq8Dw60YlOdKKzgTr/I8AAfqzhPjCMsb4AAAAASUVORK5CYII=`,{translator:Nl}=jl,Pl=41,Fl=42,Il=V(`svg`)({fill:`black`,cursor:`pointer`,transition:`opacity 100ms linear`,"&:hover":{opacity:`0.5`}}),Ll=()=>(0,z.jsxs)(Il,{fill:`#000000`,height:`24`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,z.jsx)(`path`,{d:`M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z`}),(0,z.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]}),Rl={pf:0,lff:1,lef:2,lfe:3,lee:4,rfn:5,rfp:6,ren:7,rep:8},zl=V(`a`)(({$iconIndex:e,$active:t})=>({display:`inline-block`,width:Fl,height:Pl,position:`relative`,top:`1px`,cursor:`pointer`,background:`url(${Ml}) -${e*Fl}px 0px`,...t&&{backgroundPosition:`-${e*Fl}px -${2*Pl}px`},"&:hover":{textDecoration:`none`,backgroundPosition:`-${e*Fl}px -${Pl}px`},...t&&{"&:hover":{backgroundPosition:`-${e*Fl}px -${2*Pl}px`}}})),Bl=e=>{let{iconKey:t,active:n,onClick:r}=e,i=Rl[t.toLowerCase()]??0;return(0,z.jsx)(`span`,{role:`presentation`,onClick:r,children:(0,z.jsx)(zl,{$iconIndex:i,$active:n,children:`\xA0`})},t)};Bl.propTypes={iconKey:R.string.isRequired,active:R.bool,onClick:R.func};var Vl=Bl,Hl=V(`div`)({width:`55%`,padding:`1px`,"-webkit-touch-callout":`none`,"-webkit-user-select":`none`,"-khtml-user-select":`none`,"-moz-user-select":`none`,"-ms-user-select":`none`,"user-select":`none`}),Ul=({selectPoint:e,selected:t,icons:n})=>{let r=n.map(n=>{let r=n===t,i=r?()=>{}:e.bind(null,n);return(0,z.jsx)(Vl,{iconKey:n.toLowerCase(),active:r,onClick:i},n.toLowerCase())});return(0,z.jsx)(Hl,{children:r})};Ul.propTypes={selectPoint:R.func.isRequired,selected:R.string,icons:R.array};var Wl=V(`div`)({display:`flex`,justifyContent:`space-between`,borderRadius:`4px`,padding:`1px`}),Gl=V(`div`)({display:`flex`,paddingTop:`7px`}),Kl=V(`span`)({position:`relative`,top:`3px`,width:`30px`}),ql=class e extends L.Component{static defaultProps={showDeleteButton:!1,elementType:e.DEFAULT_TYPE,icons:[`pf`,`lff`,`lef`,`lfe`,`lee`,`rfn`,`rfp`,`ren`,`rep`]};static propTypes={elementType:R.string,showDeleteButton:R.bool,onDeleteClick:R.func.isRequired,onElementType:R.func.isRequired,onUndoElement:R.func.isRequired,onClearElements:R.func.isRequired,icons:R.array,language:R.string};render(){let{elementType:e,showDeleteButton:t,onDeleteClick:n,onUndoElement:r,onClearElements:i,icons:a,onElementType:o,language:s}=this.props;return(0,z.jsxs)(Wl,{children:[(0,z.jsx)(Ul,{selected:e,selectPoint:o,icons:a}),(0,z.jsxs)(Gl,{children:[t&&(0,z.jsx)(Kl,{onClick:n,children:(0,z.jsx)(Ll,{})}),(0,z.jsx)(Ac,{onClick:r,label:Nl.t(`common:undo`,{lng:s})}),(0,z.jsx)(Ac,{onClick:i,label:Nl.t(`numberLine.clearAll`,{lng:s})})]})]})}};ql.DEFAULT_TYPE=`pf`;var Jl={relTol:1e-12,absTol:1e-15,matrix:`Matrix`,number:`number`,numberFallback:`number`,precision:64,predictable:!1,randomSeed:null};function Yl(e,t){if(Zl(e,t))return e[t];throw typeof e[t]==`function`&&Ql(e,t)?Error(`Cannot access method "`+t+`" as a property`):Error(`No access to property "`+t+`"`)}function Xl(e,t,n){if(Zl(e,t))return e[t]=n,n;throw Error(`No access to property "`+t+`"`)}function Zl(e,t){return!$l(e)&&!Array.isArray(e)?!1:Xu(eu,t)?!0:!(t in Object.prototype||t in Function.prototype)}function Ql(e,t){return e==null||typeof e[t]!=`function`||Xu(e,t)&&Object.getPrototypeOf&&t in Object.getPrototypeOf(e)?!1:Xu(tu,t)?!0:!(t in Object.prototype||t in Function.prototype)}function $l(e){return typeof e==`object`&&e&&e.constructor===Object}var eu={length:!0,name:!0},tu={toString:!0,valueOf:!0,toLocaleString:!0},nu=class{constructor(e){this.wrappedObject=e,this[Symbol.iterator]=this.entries}keys(){return Object.keys(this.wrappedObject).filter(e=>this.has(e)).values()}get(e){return Yl(this.wrappedObject,e)}set(e,t){return Xl(this.wrappedObject,e,t),this}has(e){return Zl(this.wrappedObject,e)&&e in this.wrappedObject}entries(){return ru(this.keys(),e=>[e,this.get(e)])}forEach(e){for(var t of this.keys())e(this.get(t),t,this)}delete(e){Zl(this.wrappedObject,e)&&delete this.wrappedObject[e]}clear(){for(var e of this.keys())this.delete(e)}get size(){return Object.keys(this.wrappedObject).length}};function ru(e,t){return{next:()=>{var n=e.next();return n.done?n:{value:t(n.value),done:!1}}}}function iu(e){return typeof e==`number`}function au(e){return!e||typeof e!=`object`||typeof e.constructor!=`function`?!1:e.isBigNumber===!0&&typeof e.constructor.prototype==`object`&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal==`function`&&e.constructor.isDecimal(e)===!0}function ou(e){return typeof e==`bigint`}function su(e){return e&&typeof e==`object`&&Object.getPrototypeOf(e).isComplex===!0||!1}function cu(e){return e&&typeof e==`object`&&Object.getPrototypeOf(e).isFraction===!0||!1}function lu(e){return e&&e.constructor.prototype.isUnit===!0||!1}function uu(e){return typeof e==`string`}var du=Array.isArray;function fu(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function pu(e){return Array.isArray(e)||fu(e)}function mu(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function hu(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function gu(e){return e&&e.constructor.prototype.isRange===!0||!1}function _u(e){return e&&e.constructor.prototype.isIndex===!0||!1}function vu(e){return typeof e==`boolean`}function yu(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function bu(e){return e&&e.constructor.prototype.isHelp===!0||!1}function xu(e){return typeof e==`function`}function Su(e){return e instanceof Date}function Cu(e){return e instanceof RegExp}function wu(e){return!!(e&&typeof e==`object`&&e.constructor===Object&&!su(e)&&!cu(e))}function Tu(e){return e?e instanceof Map||e instanceof nu||typeof e.set==`function`&&typeof e.get==`function`&&typeof e.keys==`function`&&typeof e.has==`function`:!1}function Eu(e){return e===null}function Du(e){return e===void 0}function Ou(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function ku(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function Au(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function ju(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function Mu(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Nu(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Pu(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Fu(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function Iu(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function Lu(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ru(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function zu(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Bu(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function Vu(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function Hu(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Uu(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function Wu(e){return e&&e.constructor.prototype.isChain===!0||!1}function Gu(e){var t=typeof e;return t===`object`?e===null?`null`:au(e)?`BigNumber`:e.constructor&&e.constructor.name?e.constructor.name:`Object`:t}function Ku(e){var t=typeof e;if(t===`number`||t===`bigint`||t===`string`||t===`boolean`||e==null)return e;if(typeof e.clone==`function`)return e.clone();if(Array.isArray(e))return e.map(function(e){return Ku(e)});if(e instanceof Date)return new Date(e.valueOf());if(au(e))return e;if(wu(e))return qu(e,Ku);if(t===`function`)return e;throw TypeError(`Cannot clone: unknown type of value (value: ${e})`)}function qu(e,t){var n={};for(var r in e)Xu(e,r)&&(n[r]=t(e[r]));return n}function Ju(e,t){for(var n in t)Xu(t,n)&&(e[n]=t[n]);return e}function Yu(e,t){var n,r,i;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,i=e.length;r<i;r++)if(!Yu(e[r],t[r]))return!1;return!0}else if(typeof e==`function`)return e===t;else if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!Yu(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}else return e===t}function Xu(e,t){return e&&Object.hasOwnProperty.call(e,t)}function Zu(e,t){for(var n={},r=0;r<t.length;r++){var i=t[r],a=e[i];a!==void 0&&(n[i]=a)}return n}var Qu=[`Matrix`,`Array`],$u=[`number`,`BigNumber`,`Fraction`],ed=function(e){if(e)throw Error(`The global config is readonly.
|
|
143
|
+
`,fc=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return ia({root:[`root`,n,`color${Do(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${Do(n)}`,i&&`circleDisableShrink`]},oc,t)},pc=V(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Do(n.color)}`]]}})(ko(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:uc||{animation:`${cc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ac()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),mc=V(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),hc=V(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${Do(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ko(({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:dc||{animation:`${lc} 1.4s ease-in-out infinite`}}]}))),gc=V(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(ko(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),_c=L.forwardRef(function(e,t){let n=Ao({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=fc(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((sc-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)(pc,{className:Pr(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,z.jsxs)(mc,{className:m.svg,ownerState:p,viewBox:`${sc/2} ${sc/2} ${sc} ${sc}`,children:[o?(0,z.jsx)(gc,{className:m.track,ownerState:p,cx:sc,cy:sc,r:(sc-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,z.jsx)(hc,{className:m.circle,style:h,ownerState:p,cx:sc,cy:sc,r:(sc-l)/2,fill:`none`,strokeWidth:l})]})})});function vc(e){return Ir(`MuiButton`,e)}var yc=Lr(`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(`.`)),bc=L.createContext({}),xc=L.createContext(void 0),H=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=ia({root:[`root`,o&&`loading`,a,`${a}${Do(t)}`,`size${Do(i)}`,`${a}Size${Do(i)}`,`color${Do(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${Do(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${Do(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${Do(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},vc,c);return{...c,...l}},Sc=[{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}}}],Cc=V(tc,{shouldForwardProp:e=>yo(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Do(n.color)}`],t[`size${Do(n.size)}`],t[`${n.variant}Size${Do(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ko(({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`},[`&.${yc.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]},[`&.${yc.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${yc.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)`,[`&.${yc.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(ac()).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`},[`&.${yc.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${yc.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}),[`&.${yc.loading}`]:{color:`transparent`}}}]}})),wc=V(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Do(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}},...Sc]})),Tc=V(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Do(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}},...Sc]})),Ec=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}}]})),Dc=V(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),Oc=L.forwardRef(function(e,t){let n=L.useContext(bc),r=L.useContext(xc),i=Ao({props:Xr(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=Go(h),T=_??(0,z.jsx)(_c,{"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=H(E),O=(b||g&&v===`start`)&&(0,z.jsx)(wc,{className:D.startIcon,ownerState:E,children:b||(0,z.jsx)(Dc,{className:D.loadingIconPlaceholder,ownerState:E})}),k=(f||g&&v===`end`)&&(0,z.jsx)(Tc,{className:D.endIcon,ownerState:E,children:f||(0,z.jsx)(Dc,{className:D.loadingIconPlaceholder,ownerState:E})}),A=r||``,j=typeof g==`boolean`?(0,z.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,z.jsx)(Ec,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:M,...N}=D;return(0,z.jsxs)(Cc,{ownerState:E,className:Pr(n.className,D.root,c,A),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:Pr(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:N,children:[O,v!==`end`&&j,a,v===`end`&&j,k]})}),kc=V(Oc)({fontSize:`0.9em`,marginLeft:8,minWidth:32,height:32,"& span":{"& svg":{width:`1.3em !important`,height:`1.3em !important`}}}),Ac=({label:e,onClick:t,disabled:n,title:r})=>(0,z.jsx)(kc,{title:r,onClick:t,disabled:n,size:`small`,variant:`contained`,children:e});Ac.propTypes={disabled:R.bool,label:R.oneOfType([R.string,R.object]),onClick:R.func,title:R.string},Ac.defaultProps={disabled:!1,label:`Add`,onClick:()=>{},title:``};var jc={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].`},ebsr:{part:`Part {{index}}`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`},imageClozeAssociation:{reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`},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.`},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`}},graphing:{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`,redo:`Redo`,reset:`Reset`},mathInline:{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.`},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}}.`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`},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`,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`}},Mc={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`},ebsr:{part:`Parte {{index}}`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`},imageClozeAssociation:{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`},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`},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,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`}},graphing:{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`,redo:`Rehacer`,reset:`Reiniciar`},mathInline:{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.`},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}}.`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`},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`,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`}},U=e=>typeof e==`string`,Nc=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Pc=e=>e==null?``:``+e,Fc=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Ic=/###/g,Lc=e=>e&&e.indexOf(`###`)>-1?e.replace(Ic,`.`):e,Rc=e=>!e||U(e),zc=(e,t,n)=>{let r=U(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Rc(e))return{};let t=Lc(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Rc(e)?{}:{obj:e,k:Lc(r[i])}},Bc=(e,t,n)=>{let{obj:r,k:i}=zc(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=zc(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=zc(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Vc=(e,t,n,r)=>{let{obj:i,k:a}=zc(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Hc=(e,t)=>{let{obj:n,k:r}=zc(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Uc=(e,t,n)=>{let r=Hc(e,n);return r===void 0?Hc(t,n):r},Wc=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?U(e[r])||e[r]instanceof String||U(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Wc(e[r],t[r],n):e[r]=t[r]);return e},Gc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Kc={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},qc=e=>U(e)?e.replace(/[&<>"'\/]/g,e=>Kc[e]):e,Jc=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}},Yc=[` `,`,`,`?`,`!`,`;`],Xc=new Jc(20),Zc=(e,t,n)=>{t||=``,n||=``;let r=Yc.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=Xc.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},Qc=(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},$c=e=>e?.replace(/_/g,`-`),el={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)}},tl=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||el,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(U(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},nl=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])})}},rl=class extends nl{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):U(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Hc(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!U(n)?s:Qc(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),Bc(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(U(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Hc(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Wc(s,n,i):s={...s,...n},Bc(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}},il={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}},al=Symbol(`i18next/PATH_KEY`);function ol(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===al?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function sl(e,t){let{[al]:n}=e(ol()),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 cl={},ll=e=>!U(e)&&typeof e!=`boolean`&&typeof e!=`number`,ul=class e extends nl{constructor(e,t={}){super(),Fc([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=tl.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=ll(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&&!Zc(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:U(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:U(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=sl(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?sl(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!U(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=ll(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(U(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:ll(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&U(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=U(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!U(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=U(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=il.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return U(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?sl(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!U(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(U(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!cl[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(cl[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!U(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},dl=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tl.create(`languageUtils`)}getScriptPartFromCode(e){if(e=$c(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=$c(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(U(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),U(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return U(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):U(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},fl={zero:0,one:1,two:2,few:3,many:4,other:5},pl={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},ml=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=tl.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=$c(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!`),pl;if(!e.match(/-|_/))return pl;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)=>fl[e]-fl[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))}},hl=(e,t,n,r=`.`,i=!0)=>{let a=Uc(e,t,n);return!a&&i&&U(n)&&(a=Qc(e,n,r),a===void 0&&(a=Qc(t,n,r))),a},gl=e=>e.replace(/\$/g,`$$$$`),_l=class{constructor(e={}){this.logger=tl.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?qc:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Gc(i):a||`{{`,this.suffix=o?Gc(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?Gc(d):f||Gc(`$t(`),this.nestingSuffix=p?Gc(p):m||Gc(`)`),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=hl(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(hl(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=>gl(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?gl(this.escape(e)):gl(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=U(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!U(a)&&!this.useRawValueToEscape&&(a=Pc(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(`${Gc(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!U(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!U(i))return i;U(i)||(i=Pc(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}},vl=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}},yl=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($c(r),i),t[o]=s),s(n)}},bl=e=>(t,n,r)=>e($c(n),r)(t),xl=class{constructor(e={}){this.logger=tl.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?yl:bl;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()]=yl(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}=vl(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)}},Sl=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Cl=class extends nl{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=tl.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=>{Vc(n.loaded,[i],a),Sl(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();U(e)&&(e=this.languageUtils.toResolveHierarchy(e)),U(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},wl=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),U(e[1])&&(t.defaultValue=e[1]),U(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Tl=e=>(U(e.ns)&&(e.ns=[e.ns]),U(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),U(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),El=()=>{},Dl=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Ol=`__i18next_supportNoticeShown`,kl=()=>!!(typeof globalThis<`u`&&globalThis[Ol]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),Al=()=>{typeof globalThis<`u`&&(globalThis[Ol]=!0)},jl=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)),Ml=class e extends nl{constructor(e={},t){if(super(),this.options=Tl(e),this.services={},this.logger=tl,this.modules={external:[]},Dl(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(U(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=wl();this.options={...n,...this.options,...Tl(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&&!jl(this)&&!kl()&&(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 💙`),Al());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?tl.init(r(this.modules.logger),this.options):tl.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:xl;let t=new dl(this.options);this.store=new rl(this.options.resources,this.options);let i=this.services;i.logger=tl,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new ml(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 _l(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Cl(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 ul(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||=El,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=Nc(),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=El){let n=t,r=U(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=Nc();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||=El,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`&&il.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=Nc();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=U(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(U(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=sl(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=sl(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=sl(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return U(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Nc();return this.options.ns?(U(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Nc();U(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new dl(wl());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=El){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 rl(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={...wl().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new _l(n)}return a.translator=new ul(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();Ml.createInstance,Ml.dir,Ml.init,Ml.loadResources,Ml.reloadResources,Ml.use,Ml.changeLanguage,Ml.getFixedT,Ml.t,Ml.exists,Ml.setDefaultNamespace,Ml.hasLoadedNamespace,Ml.loadNamespaces,Ml.loadLanguages,Ml.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:jc,es:Mc}});var Nl={translator:{...Ml,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 Ml.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},Pl=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaIAAAB6CAYAAAD9EVeZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA35pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoyQzdFRkQ1NzFFMjA2ODExOTRGRkRERDNFOEEwRDAxQyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0M0FGNEM3RUQwRDkxMU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uxOZgs6q/Z44caL09bGxMae4rfzsnsPeDk2N2yXNQb6FnPOYa0kSpyQw1wSs7afVvMdY976easbhm+e9T82tr687bb+xsaG6I7uOr03VeIo6Dx482HebAwcOJKVTo1/XuGP7qalR68jdes5jryX5EDy2nxbzHnPdu3qqHYdvnvcuRMUj3irIz8Jq4jq+NlXjKep8/fp1323Kno+lU6Nf17hj+6mpsUusHyJz1RljLclRdNkRdkg/LeY91rr38VQ7Dt88712IXN8OHzt2TNUg1/GnpqaytbW10iavW8RT1Fl2NCdHeinp1OjXNW4rP6uiqbGLnK+/evVq8CTvqlN7LfVrGgnTwk+LebdY91aeasfhm+e9PyOSi5iqnHsvbq+J9vhW8RT7ffz4cTY9Pd2+7kHezsqRhEzio0ePktJZdfu5ubnS1+WiN824ff28d+9e6cV2ovHixYvqGnuTp9D9MFnoTSLbUdRpsdZCruUrV654Xfdj5afVvGuve0tPU4jDuxB1r6it8o0bi6vTtce3iqe330EfnqekU9vPunFb9GulsUryTGmthVrLWglT20+LeQ+1b1kWoZBx1Lqg9dq1a+0ragchr8t2FmiPbxUPOtPVGWofrntayVqndf/aCTN1P4fR05he1bpnidzO4caNG9np06fbFVO+uiffmpAPrORcofV9urTHt4oHnenqDLkP17nGw1qndf8WCTNlP4fV02heab19i3ljSO3xreJBZ7o6Q+3DdS84tNYZey03zc9h9DRGHPwMBAAARIVCBAAAFCIAAKAQAQAAUIgAAIBCBAAAQCECAAAKEQAAQLBC9EH7Nyw06Gj6s/AUOtGJTnSis4E6pRCtbm5uJifww4cP8lC8ux460YlOdKKzgTqlEM28e/duQ+4d9OnTp+jCRINoWV9fl5/6mym8hE50ohOd6GygTrnX3C+tVuvk27dv5/I2mf97d2SNUrblBy6m8/aq8Dw60YlOdKKzgTr/I8AAfqzhPjCMsb4AAAAASUVORK5CYII=`,{translator:Fl}=Nl,Il=41,Ll=42,Rl=V(`svg`)({fill:`black`,cursor:`pointer`,transition:`opacity 100ms linear`,"&:hover":{opacity:`0.5`}}),zl=()=>(0,z.jsxs)(Rl,{fill:`#000000`,height:`24`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,z.jsx)(`path`,{d:`M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z`}),(0,z.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]}),Bl={pf:0,lff:1,lef:2,lfe:3,lee:4,rfn:5,rfp:6,ren:7,rep:8},Vl=V(`a`)(({$iconIndex:e,$active:t})=>({display:`inline-block`,width:Ll,height:Il,position:`relative`,top:`1px`,cursor:`pointer`,background:`url(${Pl}) -${e*Ll}px 0px`,...t&&{backgroundPosition:`-${e*Ll}px -${2*Il}px`},"&:hover":{textDecoration:`none`,backgroundPosition:`-${e*Ll}px -${Il}px`},...t&&{"&:hover":{backgroundPosition:`-${e*Ll}px -${2*Il}px`}}})),Hl=e=>{let{iconKey:t,active:n,onClick:r}=e,i=Bl[t.toLowerCase()]??0;return(0,z.jsx)(`span`,{role:`presentation`,onClick:r,children:(0,z.jsx)(Vl,{$iconIndex:i,$active:n,children:`\xA0`})},t)};Hl.propTypes={iconKey:R.string.isRequired,active:R.bool,onClick:R.func};var Ul=Hl,Wl=V(`div`)({width:`55%`,padding:`1px`,"-webkit-touch-callout":`none`,"-webkit-user-select":`none`,"-khtml-user-select":`none`,"-moz-user-select":`none`,"-ms-user-select":`none`,"user-select":`none`}),Gl=({selectPoint:e,selected:t,icons:n})=>{let r=n.map(n=>{let r=n===t,i=r?()=>{}:e.bind(null,n);return(0,z.jsx)(Ul,{iconKey:n.toLowerCase(),active:r,onClick:i},n.toLowerCase())});return(0,z.jsx)(Wl,{children:r})};Gl.propTypes={selectPoint:R.func.isRequired,selected:R.string,icons:R.array};var Kl=V(`div`)({display:`flex`,justifyContent:`space-between`,borderRadius:`4px`,padding:`1px`}),ql=V(`div`)({display:`flex`,paddingTop:`7px`}),Jl=V(`span`)({position:`relative`,top:`3px`,width:`30px`}),Yl=class e extends L.Component{static defaultProps={showDeleteButton:!1,elementType:e.DEFAULT_TYPE,icons:[`pf`,`lff`,`lef`,`lfe`,`lee`,`rfn`,`rfp`,`ren`,`rep`]};static propTypes={elementType:R.string,showDeleteButton:R.bool,onDeleteClick:R.func.isRequired,onElementType:R.func.isRequired,onUndoElement:R.func.isRequired,onClearElements:R.func.isRequired,icons:R.array,language:R.string};render(){let{elementType:e,showDeleteButton:t,onDeleteClick:n,onUndoElement:r,onClearElements:i,icons:a,onElementType:o,language:s}=this.props;return(0,z.jsxs)(Kl,{children:[(0,z.jsx)(Gl,{selected:e,selectPoint:o,icons:a}),(0,z.jsxs)(ql,{children:[t&&(0,z.jsx)(Jl,{onClick:n,children:(0,z.jsx)(zl,{})}),(0,z.jsx)(Ac,{onClick:r,label:Fl.t(`common:undo`,{lng:s})}),(0,z.jsx)(Ac,{onClick:i,label:Fl.t(`numberLine.clearAll`,{lng:s})})]})]})}};Yl.DEFAULT_TYPE=`pf`;var Xl={relTol:1e-12,absTol:1e-15,matrix:`Matrix`,number:`number`,numberFallback:`number`,precision:64,predictable:!1,randomSeed:null};function Zl(e,t){if($l(e,t))return e[t];throw typeof e[t]==`function`&&eu(e,t)?Error(`Cannot access method "`+t+`" as a property`):Error(`No access to property "`+t+`"`)}function Ql(e,t,n){if($l(e,t))return e[t]=n,n;throw Error(`No access to property "`+t+`"`)}function $l(e,t){return!tu(e)&&!Array.isArray(e)?!1:Qu(nu,t)?!0:!(t in Object.prototype||t in Function.prototype)}function eu(e,t){return e==null||typeof e[t]!=`function`||Qu(e,t)&&Object.getPrototypeOf&&t in Object.getPrototypeOf(e)?!1:Qu(ru,t)?!0:!(t in Object.prototype||t in Function.prototype)}function tu(e){return typeof e==`object`&&e&&e.constructor===Object}var nu={length:!0,name:!0},ru={toString:!0,valueOf:!0,toLocaleString:!0},iu=class{constructor(e){this.wrappedObject=e,this[Symbol.iterator]=this.entries}keys(){return Object.keys(this.wrappedObject).filter(e=>this.has(e)).values()}get(e){return Zl(this.wrappedObject,e)}set(e,t){return Ql(this.wrappedObject,e,t),this}has(e){return $l(this.wrappedObject,e)&&e in this.wrappedObject}entries(){return au(this.keys(),e=>[e,this.get(e)])}forEach(e){for(var t of this.keys())e(this.get(t),t,this)}delete(e){$l(this.wrappedObject,e)&&delete this.wrappedObject[e]}clear(){for(var e of this.keys())this.delete(e)}get size(){return Object.keys(this.wrappedObject).length}};function au(e,t){return{next:()=>{var n=e.next();return n.done?n:{value:t(n.value),done:!1}}}}function ou(e){return typeof e==`number`}function su(e){return!e||typeof e!=`object`||typeof e.constructor!=`function`?!1:e.isBigNumber===!0&&typeof e.constructor.prototype==`object`&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal==`function`&&e.constructor.isDecimal(e)===!0}function cu(e){return typeof e==`bigint`}function lu(e){return e&&typeof e==`object`&&Object.getPrototypeOf(e).isComplex===!0||!1}function uu(e){return e&&typeof e==`object`&&Object.getPrototypeOf(e).isFraction===!0||!1}function du(e){return e&&e.constructor.prototype.isUnit===!0||!1}function fu(e){return typeof e==`string`}var pu=Array.isArray;function mu(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function hu(e){return Array.isArray(e)||mu(e)}function gu(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function _u(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function vu(e){return e&&e.constructor.prototype.isRange===!0||!1}function yu(e){return e&&e.constructor.prototype.isIndex===!0||!1}function bu(e){return typeof e==`boolean`}function xu(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function Su(e){return e&&e.constructor.prototype.isHelp===!0||!1}function Cu(e){return typeof e==`function`}function wu(e){return e instanceof Date}function Tu(e){return e instanceof RegExp}function Eu(e){return!!(e&&typeof e==`object`&&e.constructor===Object&&!lu(e)&&!uu(e))}function Du(e){return e?e instanceof Map||e instanceof iu||typeof e.set==`function`&&typeof e.get==`function`&&typeof e.keys==`function`&&typeof e.has==`function`:!1}function Ou(e){return e===null}function ku(e){return e===void 0}function Au(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function ju(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function Mu(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Nu(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function Pu(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Fu(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Iu(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Lu(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ru(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function zu(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function Bu(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function Vu(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Hu(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function Uu(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function Wu(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Gu(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ku(e){return e&&e.constructor.prototype.isChain===!0||!1}function qu(e){var t=typeof e;return t===`object`?e===null?`null`:su(e)?`BigNumber`:e.constructor&&e.constructor.name?e.constructor.name:`Object`:t}function Ju(e){var t=typeof e;if(t===`number`||t===`bigint`||t===`string`||t===`boolean`||e==null)return e;if(typeof e.clone==`function`)return e.clone();if(Array.isArray(e))return e.map(function(e){return Ju(e)});if(e instanceof Date)return new Date(e.valueOf());if(su(e))return e;if(Eu(e))return Yu(e,Ju);if(t===`function`)return e;throw TypeError(`Cannot clone: unknown type of value (value: ${e})`)}function Yu(e,t){var n={};for(var r in e)Qu(e,r)&&(n[r]=t(e[r]));return n}function Xu(e,t){for(var n in t)Qu(t,n)&&(e[n]=t[n]);return e}function Zu(e,t){var n,r,i;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,i=e.length;r<i;r++)if(!Zu(e[r],t[r]))return!1;return!0}else if(typeof e==`function`)return e===t;else if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!Zu(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}else return e===t}function Qu(e,t){return e&&Object.hasOwnProperty.call(e,t)}function $u(e,t){for(var n={},r=0;r<t.length;r++){var i=t[r],a=e[i];a!==void 0&&(n[i]=a)}return n}var ed=[`Matrix`,`Array`],td=[`number`,`BigNumber`,`Fraction`],nd=function(e){if(e)throw Error(`The global config is readonly.
|
|
144
144
|
Please create a mathjs instance if you want to change the default configuration.
|
|
145
145
|
Example:
|
|
146
146
|
|
|
147
147
|
import { create, all } from 'mathjs';
|
|
148
148
|
const mathjs = create(all);
|
|
149
149
|
mathjs.config({ number: 'BigNumber' });
|
|
150
|
-
`);return Object.freeze(Jl)};y(ed,Jl,{MATRIX_OPTIONS:Qu,NUMBER_OPTIONS:$u});var td=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.typed=r())})(e,(function(){"use strict";function e(){return!0}function t(){return!1}function n(){}let r=`Argument is not a typed-function.`;function i(){function a(e){return typeof e==`object`&&!!e&&e.constructor===Object}let o=[{name:`number`,test:function(e){return typeof e==`number`}},{name:`string`,test:function(e){return typeof e==`string`}},{name:`boolean`,test:function(e){return typeof e==`boolean`}},{name:`Function`,test:function(e){return typeof e==`function`}},{name:`Array`,test:Array.isArray},{name:`Date`,test:function(e){return e instanceof Date}},{name:`RegExp`,test:function(e){return e instanceof RegExp}},{name:`Object`,test:a},{name:`null`,test:function(e){return e===null}},{name:`undefined`,test:function(e){return e===void 0}}],s={name:`any`,test:e,isAny:!0},c,l,u=0,d={createCount:0};function f(e){let t=c.get(e);if(t)return t;let n=`Unknown type "`+e+`"`,r=e.toLowerCase(),i;for(i of l)if(i.toLowerCase()===r){n+=`. Did you mean "`+i+`" ?`;break}throw TypeError(n)}function p(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`any`,n=t?f(t).index:l.length,r=[];for(let t=0;t<e.length;++t){if(!e[t]||typeof e[t].name!=`string`||typeof e[t].test!=`function`)throw TypeError(`Object with properties {name: string, test: function} expected`);let i=e[t].name;if(c.has(i))throw TypeError(`Duplicate type name "`+i+`"`);r.push(i),c.set(i,{name:i,test:e[t].test,isAny:e[t].isAny,index:n+t,conversionsTo:[]})}let i=l.slice(n);l=l.slice(0,n).concat(r).concat(i);for(let e=n+r.length;e<l.length;++e)c.get(l[e]).index=e}function m(){c=new Map,l=[],u=0,p([s],!1)}m(),p(o);function h(){let e;for(e of l)c.get(e).conversionsTo=[];u=0}function g(e){let t=l.filter(t=>{let n=c.get(t);return!n.isAny&&n.test(e)});return t.length?t:[`any`]}function _(e){return e&&typeof e==`function`&&`_typedFunctionData`in e}function v(e,t,n){if(!_(e))throw TypeError(r);let i=n&&n.exact,a=T(Array.isArray(t)?t.join(`,`):t),o=x(a);if(!i||o in e.signatures){let t=e._typedFunctionData.signatureMap.get(o);if(t)return t}let s=a.length,c;if(i){c=[];let t;for(t in e.signatures)c.push(e._typedFunctionData.signatureMap.get(t))}else c=e._typedFunctionData.signatures;for(let e=0;e<s;++e){let t=a[e],n=[],r;for(r of c){let i=k(r.params,e);if(!(!i||t.restParam&&!i.restParam)){if(!i.hasAny){let e=w(i);if(t.types.some(t=>!e.has(t.name)))continue}n.push(r)}}if(c=n,c.length===0)break}let l;for(l of c)if(l.params.length<=s)return l;throw TypeError(`Signature not found (signature: `+(e.name||`unnamed`)+`(`+x(a,`, `)+`))`)}function y(e,t,n){return v(e,t,n).implementation}function b(e,t){let n=f(t);if(n.test(e))return e;let r=n.conversionsTo;if(r.length===0)throw Error(`There are no conversions to `+t+` defined.`);for(let t=0;t<r.length;t++)if(f(r[t].from).test(e))return r[t].convert(e);throw Error(`Cannot convert `+e+` to `+t)}function x(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`,`;return e.map(e=>e.name).join(t)}function S(e){let t=e.indexOf(`...`)===0,n=(t?e.length>3?e.slice(3):`any`:e).split(`|`).map(e=>f(e.trim())),r=!1,i=t?`...`:``;return{types:n.map(function(e){return r=e.isAny||r,i+=e.name+`|`,{name:e.name,typeIndex:e.index,test:e.test,isAny:e.isAny,conversion:null,conversionIndex:-1}}),name:i.slice(0,-1),hasAny:r,hasConversion:!1,restParam:t}}function C(e){let t=F(e.types.map(e=>e.name)),n=e.hasAny,r=e.name,i=t.map(function(e){let t=f(e.from);return n=t.isAny||n,r+=`|`+e.from,{name:e.from,typeIndex:t.index,test:t.test,isAny:t.isAny,conversion:e,conversionIndex:e.index}});return{types:e.types.concat(i),name:r,hasAny:n,hasConversion:i.length>0,restParam:e.restParam}}function w(e){return e.typeSet||(e.typeSet=new Set,e.types.forEach(t=>e.typeSet.add(t.name))),e.typeSet}function T(e){let t=[];if(typeof e!=`string`)throw TypeError(`Signatures must be strings`);let n=e.trim();if(n===``)return t;let r=n.split(`,`);for(let e=0;e<r.length;++e){let n=S(r[e].trim());if(n.restParam&&e!==r.length-1)throw SyntaxError(`Unexpected rest parameter "`+r[e]+`": only allowed for the last parameter`);if(n.types.length===0)return null;t.push(n)}return t}function E(e){let t=pe(e);return t?t.restParam:!1}function D(t){if(!t||t.types.length===0)return e;if(t.types.length===1)return f(t.types[0].name).test;if(t.types.length===2){let e=f(t.types[0].name).test,n=f(t.types[1].name).test;return function(t){return e(t)||n(t)}}else{let e=t.types.map(function(e){return f(e.name).test});return function(t){for(let n=0;n<e.length;n++)if(e[n](t))return!0;return!1}}}function O(e){let t,n,r;if(E(e)){t=fe(e).map(D);let n=t.length,r=D(pe(e)),i=function(e){for(let t=n;t<e.length;t++)if(!r(e[t]))return!1;return!0};return function(e){for(let n=0;n<t.length;n++)if(!t[n](e[n]))return!1;return i(e)&&e.length>=n+1}}else if(e.length===0)return function(e){return e.length===0};else if(e.length===1)return n=D(e[0]),function(e){return n(e[0])&&e.length===1};else if(e.length===2)return n=D(e[0]),r=D(e[1]),function(e){return n(e[0])&&r(e[1])&&e.length===2};else return t=e.map(D),function(e){for(let n=0;n<t.length;n++)if(!t[n](e[n]))return!1;return e.length===t.length}}function k(e,t){return t<e.length?e[t]:E(e)?pe(e):null}function A(e,t){let n=k(e,t);return n?w(n):new Set}function j(e){return e.conversion===null||e.conversion===void 0}function M(e,t){let n=new Set;return e.forEach(e=>{let r=A(e.params,t),i;for(i of r)n.add(i)}),n.has(`any`)?[`any`]:Array.from(n)}function N(e,t,n){let r,i,a=e||`unnamed`,o=n,s;for(s=0;s<t.length;s++){let e=[];if(o.forEach(n=>{let r=D(k(n.params,s));(s<n.params.length||E(n.params))&&r(t[s])&&e.push(n)}),e.length===0){if(i=M(o,s),i.length>0){let e=g(t[s]);return r=TypeError(`Unexpected type of argument in function `+a+` (expected: `+i.join(` or `)+`, actual: `+e.join(` | `)+`, index: `+s+`)`),r.data={category:`wrongType`,fn:a,index:s,actual:e,expected:i},r}}else o=e}let c=o.map(function(e){return E(e.params)?1/0:e.params.length});if(t.length<Math.min.apply(null,c))return i=M(o,s),r=TypeError(`Too few arguments in function `+a+` (expected: `+i.join(` or `)+`, index: `+t.length+`)`),r.data={category:`tooFewArgs`,fn:a,index:t.length,expected:i},r;let l=Math.max.apply(null,c);if(t.length>l)return r=TypeError(`Too many arguments in function `+a+` (expected: `+l+`, actual: `+t.length+`)`),r.data={category:`tooManyArgs`,fn:a,index:t.length,expectedLength:l},r;let u=[];for(let e=0;e<t.length;++e)u.push(g(t[e]).join(`|`));return r=TypeError(`Arguments of type "`+u.join(`, `)+`" do not match any of the defined signatures of function `+a+`.`),r.data={category:`mismatch`,actual:u},r}function P(e){let t=l.length+1;for(let n=0;n<e.types.length;n++)t=Math.min(t,e.types[n].typeIndex);return t}function ee(e){let t=u+1;for(let n=0;n<e.types.length;n++)j(e.types[n])||(t=Math.min(t,e.types[n].conversionIndex));return t}function te(e,t){if(e.hasAny){if(!t.hasAny)return .1}else if(t.hasAny)return-.1;if(e.restParam){if(!t.restParam)return .01}else if(t.restParam)return-.01;let n=P(e)-P(t);if(n<0)return-.001;if(n>0)return .001;let r=ee(e),i=ee(t);if(e.hasConversion){if(!t.hasConversion)return(1+r)*1e-6}else if(t.hasConversion)return-(1+i)*1e-6;let a=r-i;return a<0?-1e-7:a>0?1e-7:0}function ne(e,t){let n=e.params,r=t.params,i=pe(n),a=pe(r),o=E(n),s=E(r);if(o&&i.hasAny){if(!s||!a.hasAny)return 1e7}else if(s&&a.hasAny)return-1e7;let c=0,l=0,u;for(u of n)u.hasAny&&++c,u.hasConversion&&++l;let d=0,f=0;for(u of r)u.hasAny&&++d,u.hasConversion&&++f;if(c!==d)return(c-d)*1e6;if(o&&i.hasConversion){if(!s||!a.hasConversion)return 1e5}else if(s&&a.hasConversion)return-1e5;if(l!==f)return(l-f)*1e4;if(o){if(!s)return 1e3}else if(s)return-1e3;let p=(n.length-r.length)*(o?-100:100);if(p!==0)return p;let m=[],h=0;for(let e=0;e<n.length;++e){let t=te(n[e],r[e]);m.push(t),h+=t}if(h!==0)return(h<0?-10:10)+h;let g,_=9,v=_/(m.length+1);for(g of m){if(g!==0)return(g<0?-_:_)+g;_-=v}return 0}function F(e){if(e.length===0)return[];let t=e.map(f);if(e.length===1)return t[0].conversionsTo;let n=new Set(e),r=new Set;for(let e=0;e<t.length;++e)for(let i of t[e].conversionsTo)n.has(i.from)||r.add(i.from);let i=[];for(let e of r){let n=u+1,r=null;for(let i=0;i<t.length;++i)for(let a of t[i].conversionsTo)a.from===e&&a.index<n&&(n=a.index,r=a);i.push(r)}return i}function re(e,t){let n=t,r=``;if(e.some(e=>e.hasConversion)){let i=E(e),a=e.map(I);r=a.map(e=>e.name).join(`;`),n=function(){let e=[],n=i?arguments.length-1:arguments.length;for(let t=0;t<n;t++)e[t]=a[t](arguments[t]);return i&&(e[n]=arguments[n].map(a[n])),t.apply(this,e)}}let i=n;if(E(e)){let t=e.length-1;i=function(){return n.apply(this,me(arguments,0,t).concat([me(arguments,t)]))}}return r&&Object.defineProperty(i,"name",{value:r}),i}function I(e){let t,n,r,i,a=[],o=[],s=``;e.types.forEach(function(e){e.conversion&&(s+=e.conversion.from+`~>`+e.conversion.to+`,`,a.push(f(e.conversion.from).test),o.push(e.conversion.convert))}),s=s?s.slice(0,-1):`pass`;let c=e=>e;switch(o.length){case 0:break;case 1:t=a[0],r=o[0],c=function(e){return t(e)?r(e):e};break;case 2:t=a[0],n=a[1],r=o[0],i=o[1],c=function(e){return t(e)?r(e):n(e)?i(e):e};break;default:c=function(e){for(let t=0;t<o.length;t++)if(a[t](e))return o[t](e);return e}}return Object.defineProperty(c,"name",{value:s}),c}function ie(e){function t(e,n,r){if(n<e.length){let i=e[n],a=[];if(i.restParam){let e=i.types.filter(j);e.length<i.types.length&&a.push({types:e,name:`...`+e.map(e=>e.name).join(`|`),hasAny:e.some(e=>e.isAny),hasConversion:!1,restParam:!0}),a.push(i)}else a=i.types.map(function(e){return{types:[e],name:e.name,hasAny:e.isAny,hasConversion:e.conversion,restParam:!1}});return ge(a,function(i){return t(e,n+1,r.concat([i]))})}else return[r]}return t(e,0,[])}function ae(e,t){let n=Math.max(e.length,t.length);for(let r=0;r<n;r++){let n=A(e,r),i=A(t,r),a=!1,o;for(o of i)if(n.has(o)){a=!0;break}if(!a)return!1}let r=e.length,i=t.length,a=E(e),o=E(t);return a?o?r===i:i>=r:o?r>=i:r===i}function oe(e){return e.map(e=>xe(e)?ye(e.referToSelf.callback):be(e)?ve(e.referTo.references,e.referTo.callback):e)}function se(e,t,n){let r=[],i;for(i of e){let e=n[i];if(typeof e!=`number`)throw TypeError(`No definition for referenced signature "`+i+`"`);if(e=t[e],typeof e!=`function`)return!1;r.push(e)}return r}function ce(e,t,n){let r=oe(e),i=Array(r.length).fill(!1),a=!0;for(;a;){a=!1;let e=!0;for(let o=0;o<r.length;++o){if(i[o])continue;let s=r[o];if(xe(s))r[o]=s.referToSelf.callback(n),r[o].referToSelf=s.referToSelf,i[o]=!0,e=!1;else if(be(s)){let n=se(s.referTo.references,r,t);n?(r[o]=s.referTo.callback.apply(this,n),r[o].referTo=s.referTo,i[o]=!0,e=!1):a=!0}}if(e&&a)throw SyntaxError(`Circular reference detected in resolving typed.referTo`)}return r}function le(e){let t=/\bthis(\(|\.signatures\b)/;Object.keys(e).forEach(n=>{let r=e[n];if(t.test(r.toString()))throw SyntaxError("Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.")})}function ue(e,r){if(d.createCount++,Object.keys(r).length===0)throw SyntaxError(`No signatures provided`);d.warnAgainstDeprecatedThis&&le(r);let i=[],a=[],o={},s=[],c;for(c in r){if(!Object.prototype.hasOwnProperty.call(r,c))continue;let e=T(c);if(!e)continue;i.forEach(function(t){if(ae(t,e))throw TypeError(`Conflicting signatures "`+x(t)+`" and "`+x(e)+`".`)}),i.push(e);let t=a.length;a.push(r[c]);let n=e.map(C),l;for(l of ie(n)){let e=x(l);s.push({params:l,name:e,fn:t}),l.every(e=>!e.hasConversion)&&(o[e]=t)}}s.sort(ne);let l=ce(a,o,Te),u;for(u in o)Object.prototype.hasOwnProperty.call(o,u)&&(o[u]=l[o[u]]);let f=[],p=new Map;for(u of s)p.has(u.name)||(u.fn=l[u.fn],f.push(u),p.set(u.name,u));let m=f[0]&&f[0].params.length<=2&&!E(f[0].params),h=f[1]&&f[1].params.length<=2&&!E(f[1].params),g=f[2]&&f[2].params.length<=2&&!E(f[2].params),_=f[3]&&f[3].params.length<=2&&!E(f[3].params),v=f[4]&&f[4].params.length<=2&&!E(f[4].params),y=f[5]&&f[5].params.length<=2&&!E(f[5].params),b=m&&h&&g&&_&&v&&y;for(let e=0;e<f.length;++e)f[e].test=O(f[e].params);let S=m?D(f[0].params[0]):t,w=h?D(f[1].params[0]):t,k=g?D(f[2].params[0]):t,A=_?D(f[3].params[0]):t,j=v?D(f[4].params[0]):t,M=y?D(f[5].params[0]):t,N=m?D(f[0].params[1]):t,P=h?D(f[1].params[1]):t,ee=g?D(f[2].params[1]):t,te=_?D(f[3].params[1]):t,F=v?D(f[4].params[1]):t,I=y?D(f[5].params[1]):t;for(let e=0;e<f.length;++e)f[e].implementation=re(f[e].params,f[e].fn);let oe=m?f[0].implementation:n,se=h?f[1].implementation:n,ue=g?f[2].implementation:n,de=_?f[3].implementation:n,fe=v?f[4].implementation:n,pe=y?f[5].implementation:n,me=m?f[0].params.length:-1,he=h?f[1].params.length:-1,ge=g?f[2].params.length:-1,_e=_?f[3].params.length:-1,ve=v?f[4].params.length:-1,ye=y?f[5].params.length:-1,be=b?6:0,xe=f.length,Se=f.map(e=>e.test),Ce=f.map(e=>e.implementation),we=function(){for(let e=be;e<xe;e++)if(Se[e](arguments))return Ce[e].apply(this,arguments);return d.onMismatch(e,arguments,f)};function Te(e,t){return arguments.length===me&&S(e)&&N(t)?oe.apply(this,arguments):arguments.length===he&&w(e)&&P(t)?se.apply(this,arguments):arguments.length===ge&&k(e)&&ee(t)?ue.apply(this,arguments):arguments.length===_e&&A(e)&&te(t)?de.apply(this,arguments):arguments.length===ve&&j(e)&&F(t)?fe.apply(this,arguments):arguments.length===ye&&M(e)&&I(t)?pe.apply(this,arguments):we.apply(this,arguments)}try{Object.defineProperty(Te,"name",{value:e})}catch{}return Te.signatures=o,Te._typedFunctionData={signatures:f,signatureMap:p},Te}function de(e,t,n){throw N(e,t,n)}function fe(e){return me(e,0,e.length-1)}function pe(e){return e[e.length-1]}function me(e,t,n){return Array.prototype.slice.call(e,t,n)}function he(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}function ge(e,t){return Array.prototype.concat.apply([],e.map(t))}function _e(){let e=fe(arguments).map(e=>x(T(e))),t=pe(arguments);if(typeof t!=`function`)throw TypeError(`Callback function expected as last argument`);return ve(e,t)}function ve(e,t){return{referTo:{references:e,callback:t}}}function ye(e){if(typeof e!=`function`)throw TypeError(`Callback function expected as first argument`);return{referToSelf:{callback:e}}}function be(e){return e&&typeof e.referTo==`object`&&Array.isArray(e.referTo.references)&&typeof e.referTo.callback==`function`}function xe(e){return e&&typeof e.referToSelf==`object`&&typeof e.referToSelf.callback==`function`}function Se(e,t){if(!e)return t;if(t&&t!==e){let n=Error(`Function names do not match (expected: `+e+`, actual: `+t+`)`);throw n.data={actual:t,expected:e},n}return e}function Ce(e){let t;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(_(e[n])||typeof e[n].signature==`string`)&&(t=Se(t,e[n].name));return t}function we(e,t){let n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(n in e&&t[n]!==e[n]){let r=Error(`Signature "`+n+`" is defined twice`);throw r.data={signature:n,sourceFunction:t[n],destFunction:e[n]},r}e[n]=t[n]}}let Te=d;d=function(e){let t=typeof e==`string`,n=+!!t,r=t?e:``,i={};for(let e=n;e<arguments.length;++e){let n=arguments[e],o={},s;if(typeof n==`function`?(s=n.name,typeof n.signature==`string`?o[n.signature]=n:_(n)&&(o=n.signatures)):a(n)&&(o=n,t||(s=Ce(n))),Object.keys(o).length===0){let t=TypeError(`Argument to 'typed' at index `+e+` is not a (typed) function, nor an object with signatures as keys and functions as values.`);throw t.data={index:e,argument:n},t}t||(r=Se(r,s)),we(i,o)}return ue(r||``,i)},d.create=i,d.createCount=Te.createCount,d.onMismatch=de,d.throwMismatchError=de,d.createError=N,d.clear=m,d.clearConversions=h,d.addTypes=p,d._findType=f,d.referTo=_e,d.referToSelf=ye,d.convert=b,d.findSignature=v,d.find=y,d.isTypedFunction=_,d.warnAgainstDeprecatedThis=!0,d.addType=function(e,t){let n=`any`;t!==!1&&c.has(`Object`)&&(n=`Object`),d.addTypes([e],n)};function Ee(e){if(!e||typeof e.from!=`string`||typeof e.to!=`string`||typeof e.convert!=`function`)throw TypeError(`Object with properties {from: string, to: string, convert: function} expected`);if(e.to===e.from)throw SyntaxError(`Illegal to define conversion from "`+e.from+`" to itself.`)}return d.addConversion=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{override:!1};Ee(e);let n=f(e.to),r=n.conversionsTo.find(t=>t.from===e.from);if(r)if(t&&t.override)d.removeConversion({from:r.from,to:e.to,convert:r.convert});else throw Error(`There is already a conversion from "`+e.from+`" to "`+n.name+`"`);n.conversionsTo.push({from:e.from,to:n.name,convert:e.convert,index:u++})},d.addConversions=function(e,t){e.forEach(e=>d.addConversion(e,t))},d.removeConversion=function(e){Ee(e);let t=f(e.to),n=he(t.conversionsTo,t=>t.from===e.from);if(!n)throw Error(`Attempt to remove nonexistent conversion from `+e.from+` to `+e.to);if(n.convert!==e.convert)throw Error(`Conversion to remove does not match existing conversion`);let r=t.conversionsTo.indexOf(n);t.conversionsTo.splice(r,1)},d.resolve=function(e,t){if(!_(e))throw TypeError(r);let n=e._typedFunctionData.signatures;for(let e=0;e<n.length;++e)if(n[e].test(t))return n[e];return null},d}return i()}))}));function W(e,t,n,r){function i(r){var i=Zu(r,t.map(id));return nd(e,t,r),n(i)}return i.isFactory=!0,i.fn=e,i.dependencies=t.slice().sort(),r&&(i.meta=r),i}function nd(e,t,n){if(!t.filter(e=>!rd(e)).every(e=>n[e]!==void 0)){var r=t.filter(e=>n[e]===void 0);throw Error(`Cannot create function "${e}", some dependencies are missing: ${r.map(e=>`"${e}"`).join(`, `)}.`)}}function rd(e){return e&&e[0]===`?`}function id(e){return e&&e[0]===`?`?e.slice(1):e}function ad(e){return typeof e==`boolean`?!0:isFinite(e)?e===Math.round(e):!1}var od=Math.sign||function(e){return e>0?1:e<0?-1:0},sd=Math.log2||function(e){return Math.log(e)/Math.LN2},cd=Math.log10||function(e){return Math.log(e)/Math.LN10},ld=Math.log1p||function(e){return Math.log(e+1)},ud=Math.cbrt||function(e){if(e===0)return e;var t=e<0,n;return t&&(e=-e),isFinite(e)?(n=Math.exp(Math.log(e)/3),n=(e/(n*n)+2*n)/3):n=e,t?-n:n},dd=Math.expm1||function(e){return e>=2e-4||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function fd(e,t,n){var r={2:`0b`,8:`0o`,16:`0x`}[t],i=``;if(n){if(n<1)throw Error(`size must be in greater than 0`);if(!ad(n))throw Error(`size must be an integer`);if(e>2**(n-1)-1||e<-(2**(n-1)))throw Error(`Value must be in range [-2^${n-1}, 2^${n-1}-1]`);if(!ad(e))throw Error(`Value must be an integer`);e<0&&(e+=2**n),i=`i${n}`}var a=``;return e<0&&(e=-e,a=`-`),`${a}${r}${e.toString(t)}${i}`}function pd(e,t){if(typeof t==`function`)return t(e);if(e===1/0)return`Infinity`;if(e===-1/0)return`-Infinity`;if(isNaN(e))return`NaN`;var{notation:n,precision:r,wordSize:i}=md(t);switch(n){case`fixed`:return _d(e,r);case`exponential`:return vd(e,r);case`engineering`:return gd(e,r);case`bin`:return fd(e,2,i);case`oct`:return fd(e,8,i);case`hex`:return fd(e,16,i);case`auto`:return yd(e,r,t).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return e===`.`?t:e+t});default:throw Error(`Unknown notation "`+n+`". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.`)}}function md(e){var t=`auto`,n,r;if(e!==void 0)if(iu(e))n=e;else if(au(e))n=e.toNumber();else if(wu(e))e.precision!==void 0&&(n=wd(e.precision,()=>{throw Error(`Option "precision" must be a number or BigNumber`)})),e.wordSize!==void 0&&(r=wd(e.wordSize,()=>{throw Error(`Option "wordSize" must be a number or BigNumber`)})),e.notation&&(t=e.notation);else throw Error(`Unsupported type of options, number, BigNumber, or object expected`);return{notation:t,precision:n,wordSize:r}}function hd(e){var t=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw SyntaxError(`Invalid number `+e);var n=t[1],r=t[2],i=parseFloat(t[4]||`0`),a=r.indexOf(`.`);i+=a===-1?r.length-1:a-1;var o=r.replace(`.`,``).replace(/^0*/,function(e){return i-=e.length,``}).replace(/0*$/,``).split(``).map(function(e){return parseInt(e)});return o.length===0&&(o.push(0),i++),{sign:n,coefficients:o,exponent:i}}function gd(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=bd(hd(e),t),r=n.exponent,i=n.coefficients,a=r%3==0?r:r<0?r-3-r%3:r-r%3;if(iu(t))for(;t>i.length||r-a+1>i.length;)i.push(0);else for(var o=Math.abs(r-a)-(i.length-1),s=0;s<o;s++)i.push(0);for(var c=Math.abs(r-a),l=1;c>0;)l++,c--;var u=i.slice(l).join(``),d=iu(t)&&u.length||u.match(/[1-9]/)?`.`+u:``,f=i.slice(0,l).join(``)+d+`e`+(r>=0?`+`:``)+a.toString();return n.sign+f}function _d(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=hd(e),r=typeof t==`number`?bd(n,n.exponent+1+t):n,i=r.coefficients,a=r.exponent+1,o=a+(t||0);return i.length<o&&(i=i.concat(xd(o-i.length))),a<0&&(i=xd(-a+1).concat(i),a=1),a<i.length&&i.splice(a,0,a===0?`0.`:`.`),r.sign+i.join(``)}function vd(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=hd(e),r=t?bd(n,t):n,i=r.coefficients,a=r.exponent;i.length<t&&(i=i.concat(xd(t-i.length)));var o=i.shift();return r.sign+o+(i.length>0?`.`+i.join(``):``)+`e`+(a>=0?`+`:``)+a}function yd(e,t,n){if(isNaN(e)||!isFinite(e))return String(e);var r=Td(n?.lowerExp,-3),i=Td(n?.upperExp,5),a=hd(e),o=t?bd(a,t):a;if(o.exponent<r||o.exponent>=i)return vd(e,t);var s=o.coefficients,c=o.exponent;s.length<t&&(s=s.concat(xd(t-s.length))),s=s.concat(xd(c-s.length+1+(s.length<t?t-s.length:0))),s=xd(-c).concat(s);var l=c>0?c:0;return l<s.length-1&&s.splice(l+1,0,`.`),o.sign+s.join(``)}function bd(e,t){for(var n={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},r=n.coefficients;t<=0;)r.unshift(0),n.exponent++,t++;if(r.length>t&&r.splice(t,r.length-t)[0]>=5){var i=t-1;for(r[i]++;r[i]===10;)r.pop(),i===0&&(r.unshift(0),n.exponent++,i++),i--,r[i]++}return n}function xd(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function Sd(e){return e.toExponential().replace(/e.*$/,``).replace(/^0\.?0*|\./,``).length}function Cd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e-8,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(n<=0)throw Error(`Relative tolerance must be greater than 0`);if(r<0)throw Error(`Absolute tolerance must be at least 0`);return isNaN(e)||isNaN(t)?!1:!isFinite(e)||!isFinite(t)?e===t:e===t||Math.abs(e-t)<=Math.max(n*Math.max(Math.abs(e),Math.abs(t)),r)}function wd(e,t){if(iu(e))return e;if(au(e))return e.toNumber();t()}function Td(e,t){return iu(e)?e:au(e)?e.toNumber():t}var Ed=l(td(),1),Dd=function(){return Dd=Ed.default.create,Ed.default},Od=W(`typed`,[`?BigNumber`,`?Complex`,`?DenseMatrix`,`?Fraction`],function(e){var{BigNumber:t,Complex:n,DenseMatrix:r,Fraction:i}=e,a=Dd();return a.clear(),a.addTypes([{name:`number`,test:iu},{name:`Complex`,test:su},{name:`BigNumber`,test:au},{name:`bigint`,test:ou},{name:`Fraction`,test:cu},{name:`Unit`,test:lu},{name:`identifier`,test:e=>uu&&/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\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\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\u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u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\u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uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\u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D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*$/.test(e)},{name:`string`,test:uu},{name:`Chain`,test:Wu},{name:`Array`,test:du},{name:`Matrix`,test:fu},{name:`DenseMatrix`,test:mu},{name:`SparseMatrix`,test:hu},{name:`Range`,test:gu},{name:`Index`,test:_u},{name:`boolean`,test:vu},{name:`ResultSet`,test:yu},{name:`Help`,test:bu},{name:`function`,test:xu},{name:`Date`,test:Su},{name:`RegExp`,test:Cu},{name:`null`,test:Eu},{name:`undefined`,test:Du},{name:`AccessorNode`,test:Ou},{name:`ArrayNode`,test:ku},{name:`AssignmentNode`,test:Au},{name:`BlockNode`,test:ju},{name:`ConditionalNode`,test:Mu},{name:`ConstantNode`,test:Nu},{name:`FunctionNode`,test:Fu},{name:`FunctionAssignmentNode`,test:Pu},{name:`IndexNode`,test:Iu},{name:`Node`,test:Lu},{name:`ObjectNode`,test:Ru},{name:`OperatorNode`,test:zu},{name:`ParenthesisNode`,test:Bu},{name:`RangeNode`,test:Vu},{name:`RelationalNode`,test:Hu},{name:`SymbolNode`,test:Uu},{name:`Map`,test:Tu},{name:`Object`,test:wu}]),a.addConversions([{from:`number`,to:`BigNumber`,convert:function(e){if(t||kd(e),Sd(e)>15)throw TypeError(`Cannot implicitly convert a number with >15 significant digits to BigNumber (value: `+e+`). Use function bignumber(x) to convert to BigNumber.`);return new t(e)}},{from:`number`,to:`Complex`,convert:function(e){return n||Ad(e),new n(e,0)}},{from:`BigNumber`,to:`Complex`,convert:function(e){return n||Ad(e),new n(e.toNumber(),0)}},{from:`bigint`,to:`number`,convert:function(e){if(e>2**53-1)throw TypeError(`Cannot implicitly convert bigint to number: value exceeds the max safe integer value (value: `+e+`)`);return Number(e)}},{from:`bigint`,to:`BigNumber`,convert:function(e){return t||kd(e),new t(e.toString())}},{from:`bigint`,to:`Fraction`,convert:function(e){return i||Md(e),new i(e.toString())}},{from:`Fraction`,to:`BigNumber`,convert:function(e){throw TypeError(`Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.`)}},{from:`Fraction`,to:`Complex`,convert:function(e){return n||Ad(e),new n(e.valueOf(),0)}},{from:`number`,to:`Fraction`,convert:function(e){i||Md(e);var t=new i(e);if(t.valueOf()!==e)throw TypeError(`Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: `+e+`). Use function fraction(x) to convert to Fraction.`);return t}},{from:`string`,to:`number`,convert:function(e){var t=Number(e);if(isNaN(t))throw Error(`Cannot convert "`+e+`" to a number`);return t}},{from:`string`,to:`BigNumber`,convert:function(e){t||kd(e);try{return new t(e)}catch{throw Error(`Cannot convert "`+e+`" to BigNumber`)}}},{from:`string`,to:`bigint`,convert:function(e){try{return BigInt(e)}catch{throw Error(`Cannot convert "`+e+`" to BigInt`)}}},{from:`string`,to:`Fraction`,convert:function(e){i||Md(e);try{return new i(e)}catch{throw Error(`Cannot convert "`+e+`" to Fraction`)}}},{from:`string`,to:`Complex`,convert:function(e){n||Ad(e);try{return new n(e)}catch{throw Error(`Cannot convert "`+e+`" to Complex`)}}},{from:`boolean`,to:`number`,convert:function(e){return+e}},{from:`boolean`,to:`BigNumber`,convert:function(e){return t||kd(e),new t(+e)}},{from:`boolean`,to:`bigint`,convert:function(e){return BigInt(+e)}},{from:`boolean`,to:`Fraction`,convert:function(e){return i||Md(e),new i(+e)}},{from:`boolean`,to:`string`,convert:function(e){return String(e)}},{from:`Array`,to:`Matrix`,convert:function(e){return r||jd(),new r(e)}},{from:`Matrix`,to:`Array`,convert:function(e){return e.valueOf()}}]),a.onMismatch=(e,t,n)=>{var r=a.createError(e,t,n);if([`wrongType`,`mismatch`].includes(r.data.category)&&t.length===1&&pu(t[0])&&n.some(e=>!e.params.includes(`,`))){var i=TypeError(`Function '${e}' doesn't apply to matrices. To call it elementwise on a matrix 'M', try 'map(M, ${e})'.`);throw i.data=r.data,i}throw r},a.onMismatch=(e,t,n)=>{var r=a.createError(e,t,n);if([`wrongType`,`mismatch`].includes(r.data.category)&&t.length===1&&pu(t[0])&&n.some(e=>!e.params.includes(`,`))){var i=TypeError(`Function '${e}' doesn't apply to matrices. To call it elementwise on a matrix 'M', try 'map(M, ${e})'.`);throw i.data=r.data,i}throw r},a});function kd(e){throw Error(`Cannot convert value ${e} into a BigNumber: no class 'BigNumber' provided`)}function Ad(e){throw Error(`Cannot convert value ${e} into a Complex number: no class 'Complex' provided`)}function jd(){throw Error(`Cannot convert array into a Matrix: no class 'DenseMatrix' provided`)}function Md(e){throw Error(`Cannot convert value ${e} into a Fraction, no class 'Fraction' provided.`)}var Nd=9e15,Pd=1e9,Fd=`0123456789abcdef`,Id=`2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058`,Ld=`3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789`,Rd={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Nd,maxE:Nd,crypto:!1},zd,Bd,G=!0,Vd=`[DecimalError] `,Hd=Vd+`Invalid argument: `,Ud=Vd+`Precision limit exceeded`,Wd=Vd+`crypto unavailable`,Gd=`[object Decimal]`,Kd=Math.floor,qd=Math.pow,Jd=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Yd=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Xd=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Zd=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Qd=1e7,K=7,$d=9007199254740991,ef=Id.length-1,tf=Ld.length-1,q={toStringTag:Gd};q.absoluteValue=q.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),J(e)},q.ceil=function(){return J(new this.constructor(this),this.e+1,2)},q.clampedTo=q.clamp=function(e,t){var n,r=this,i=r.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(Hd+t);return n=r.cmp(e),n<0?e:r.cmp(t)>0?t:new i(r)},q.comparedTo=q.cmp=function(e){var t,n,r,i,a=this,o=a.d,s=(e=new a.constructor(e)).d,c=a.s,l=e.s;if(!o||!s)return!c||!l?NaN:c===l?o===s?0:!o^c<0?1:-1:c;if(!o[0]||!s[0])return o[0]?c:s[0]?-l:0;if(c!==l)return c;if(a.e!==e.e)return a.e>e.e^c<0?1:-1;for(r=o.length,i=s.length,t=0,n=r<i?r:i;t<n;++t)if(o[t]!==s[t])return o[t]>s[t]^c<0?1:-1;return r===i?0:r>i^c<0?1:-1},q.cosine=q.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+K,r.rounding=1,n=sf(r,Ef(r,n)),r.precision=e,r.rounding=t,J(Bd==2||Bd==3?n.neg():n,e,t,!0)):new r(1):new r(NaN)},q.cubeRoot=q.cbrt=function(){var e,t,n,r,i,a,o,s,c,l,u=this,d=u.constructor;if(!u.isFinite()||u.isZero())return new d(u);for(G=!1,a=u.s*qd(u.s*u,1/3),!a||Math.abs(a)==1/0?(n=nf(u.d),e=u.e,(a=(e-n.length+1)%3)&&(n+=a==1||a==-2?`0`:`00`),a=qd(n,1/3),e=Kd((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?n=`5e`+e:(n=a.toExponential(),n=n.slice(0,n.indexOf(`e`)+1)+e),r=new d(n),r.s=u.s):r=new d(a.toString()),o=(e=d.precision)+3;;)if(s=r,c=s.times(s).times(s),l=c.plus(u),r=cf(l.plus(u).times(s),l.plus(c),o+2,1),nf(s.d).slice(0,o)===(n=nf(r.d)).slice(0,o))if(n=n.slice(o-3,o+1),n==`9999`||!i&&n==`4999`){if(!i&&(J(s,e+1,0),s.times(s).times(s).eq(u))){r=s;break}o+=4,i=1}else{(!+n||!+n.slice(1)&&n.charAt(0)==`5`)&&(J(r,e+1,1),t=!r.times(r).times(r).eq(u));break}return G=!0,J(r,e,d.rounding,t)},q.decimalPlaces=q.dp=function(){var e,t=this.d,n=NaN;if(t){if(e=t.length-1,n=(e-Kd(this.e/K))*K,e=t[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},q.dividedBy=q.div=function(e){return cf(this,new this.constructor(e))},q.dividedToIntegerBy=q.divToInt=function(e){var t=this,n=t.constructor;return J(cf(t,new n(e),0,1,1),n.precision,n.rounding)},q.equals=q.eq=function(e){return this.cmp(e)===0},q.floor=function(){return J(new this.constructor(this),this.e+1,3)},q.greaterThan=q.gt=function(e){return this.cmp(e)>0},q.greaterThanOrEqualTo=q.gte=function(e){var t=this.cmp(e);return t==1||t===0},q.hyperbolicCosine=q.cosh=function(){var e,t,n,r,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;n=o.precision,r=o.rounding,o.precision=n+Math.max(a.e,a.sd())+4,o.rounding=1,i=a.d.length,i<32?(e=Math.ceil(i/3),t=(1/Tf(4,e)).toString()):(e=16,t=`2.3283064365386962890625e-10`),a=wf(o,1,a.times(t),new o(1),!0);for(var c,l=e,u=new o(8);l--;)c=a.times(a),a=s.minus(c.times(u.minus(c.times(u))));return J(a,o.precision=n,o.rounding=r,!0)},q.hyperbolicSine=q.sinh=function(){var e,t,n,r,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,n=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,r=i.d.length,r<3)i=wf(a,2,i,i,!0);else{e=1.4*Math.sqrt(r),e=e>16?16:e|0,i=i.times(1/Tf(5,e)),i=wf(a,2,i,i,!0);for(var o,s=new a(5),c=new a(16),l=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(c.times(o).plus(l))))}return a.precision=t,a.rounding=n,J(i,t,n,!0)},q.hyperbolicTangent=q.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,cf(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},q.inverseCosine=q.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,i=t.rounding;return n===-1?e.isZero()?ff(t,r+4,i).times(.5):(t.precision=r+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=r,t.rounding=i,e.times(2)):n===0?e.isNeg()?ff(t,r,i):new t(0):new t(NaN)},q.inverseHyperbolicCosine=q.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,G=!1,n=n.times(n).minus(1).sqrt().plus(n),G=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},q.inverseHyperbolicSine=q.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,G=!1,n=n.times(n).plus(1).sqrt().plus(n),G=!0,r.precision=e,r.rounding=t,n.ln())},q.inverseHyperbolicTangent=q.atanh=function(){var e,t,n,r,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,r=i.sd(),Math.max(r,e)<2*-i.e-1?J(new a(i),e,t,!0):(a.precision=n=r-i.e,i=cf(i.plus(1),new a(1).minus(i),n+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5))):new a(NaN)},q.inverseSine=q.asin=function(){var e,t,n,r,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),n=a.precision,r=a.rounding,t===-1?(a.precision=n+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=r,i.times(2)):t===0?(e=ff(a,n+4,r).times(.5),e.s=i.s,e):new a(NaN))},q.inverseTangent=q.atan=function(){var e,t,n,r,i,a,o,s,c,l=this,u=l.constructor,d=u.precision,f=u.rounding;if(!l.isFinite()){if(!l.s)return new u(NaN);if(d+4<=tf)return o=ff(u,d+4,f).times(.5),o.s=l.s,o}else if(l.isZero())return new u(l);else if(l.abs().eq(1)&&d+4<=tf)return o=ff(u,d+4,f).times(.25),o.s=l.s,o;for(u.precision=s=d+10,u.rounding=1,n=Math.min(28,s/K+2|0),e=n;e;--e)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(G=!1,t=Math.ceil(s/K),r=1,c=l.times(l),o=new u(l),i=l;e!==-1;)if(i=i.times(c),a=o.minus(i.div(r+=2)),i=i.times(c),o=a.plus(i.div(r+=2)),o.d[t]!==void 0)for(e=t;o.d[e]===a.d[e]&&e--;);return n&&(o=o.times(2<<n-1)),G=!0,J(o,u.precision=d,u.rounding=f,!0)},q.isFinite=function(){return!!this.d},q.isInteger=q.isInt=function(){return!!this.d&&Kd(this.e/K)>this.d.length-2},q.isNaN=function(){return!this.s},q.isNegative=q.isNeg=function(){return this.s<0},q.isPositive=q.isPos=function(){return this.s>0},q.isZero=function(){return!!this.d&&this.d[0]===0},q.lessThan=q.lt=function(e){return this.cmp(e)<0},q.lessThanOrEqualTo=q.lte=function(e){return this.cmp(e)<1},q.logarithm=q.log=function(e){var t,n,r,i,a,o,s,c,l=this,u=l.constructor,d=u.precision,f=u.rounding,p=5;if(e==null)e=new u(10),t=!0;else{if(e=new u(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(n=l.d,l.s<0||!n||!n[0]||l.eq(1))return new u(n&&!n[0]?-1/0:l.s==1?n?0:1/0:NaN);if(t)if(n.length>1)a=!0;else{for(i=n[0];i%10==0;)i/=10;a=i!==1}if(G=!1,s=d+p,o=yf(l,s),r=t?df(u,s+10):yf(e,s),c=cf(o,r,s,1),af(c.d,i=d,f))do if(s+=10,o=yf(l,s),r=t?df(u,s+10):yf(e,s),c=cf(o,r,s,1),!a){+nf(c.d).slice(i+1,i+15)+1==0x5af3107a4000&&(c=J(c,d+1,0));break}while(af(c.d,i+=10,f));return G=!0,J(c,d,f)},q.minus=q.sub=function(e){var t,n,r,i,a,o,s,c,l,u,d,f,p=this,m=p.constructor;if(e=new m(e),!p.d||!e.d)return!p.s||!e.s?e=new m(NaN):p.d?e.s=-e.s:e=new m(e.d||p.s!==e.s?p:NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(l=p.d,f=e.d,s=m.precision,c=m.rounding,!l[0]||!f[0]){if(f[0])e.s=-e.s;else if(l[0])e=new m(p);else return new m(c===3?-0:0);return G?J(e,s,c):e}if(n=Kd(e.e/K),u=Kd(p.e/K),l=l.slice(),a=u-n,a){for(d=a<0,d?(t=l,a=-a,o=f.length):(t=f,n=u,o=l.length),r=Math.max(Math.ceil(s/K),o)+2,a>r&&(a=r,t.length=1),t.reverse(),r=a;r--;)t.push(0);t.reverse()}else{for(r=l.length,o=f.length,d=r<o,d&&(o=r),r=0;r<o;r++)if(l[r]!=f[r]){d=l[r]<f[r];break}a=0}for(d&&(t=l,l=f,f=t,e.s=-e.s),o=l.length,r=f.length-o;r>0;--r)l[o++]=0;for(r=f.length;r>a;){if(l[--r]<f[r]){for(i=r;i&&l[--i]===0;)l[i]=Qd-1;--l[i],l[r]+=Qd}l[r]-=f[r]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(e.d=l,e.e=uf(l,n),G?J(e,s,c):e):new m(c===3?-0:0)},q.modulo=q.mod=function(e){var t,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?J(new r(n),r.precision,r.rounding):(G=!1,r.modulo==9?(t=cf(n,e.abs(),0,3,1),t.s*=e.s):t=cf(n,e,0,r.modulo,1),t=t.times(e),G=!0,n.minus(t))},q.naturalExponential=q.exp=function(){return vf(this)},q.naturalLogarithm=q.ln=function(){return yf(this)},q.negated=q.neg=function(){var e=new this.constructor(this);return e.s=-e.s,J(e)},q.plus=q.add=function(e){var t,n,r,i,a,o,s,c,l,u,d=this,f=d.constructor;if(e=new f(e),!d.d||!e.d)return!d.s||!e.s?e=new f(NaN):d.d||(e=new f(e.d||d.s===e.s?d:NaN)),e;if(d.s!=e.s)return e.s=-e.s,d.minus(e);if(l=d.d,u=e.d,s=f.precision,c=f.rounding,!l[0]||!u[0])return u[0]||(e=new f(d)),G?J(e,s,c):e;if(a=Kd(d.e/K),r=Kd(e.e/K),l=l.slice(),i=a-r,i){for(i<0?(n=l,i=-i,o=u.length):(n=u,r=a,o=l.length),a=Math.ceil(s/K),o=a>o?a+1:o+1,i>o&&(i=o,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(o=l.length,i=u.length,o-i<0&&(i=o,n=u,u=l,l=n),t=0;i;)t=(l[--i]=l[i]+u[i]+t)/Qd|0,l[i]%=Qd;for(t&&(l.unshift(t),++r),o=l.length;l[--o]==0;)l.pop();return e.d=l,e.e=uf(l,r),G?J(e,s,c):e},q.precision=q.sd=function(e){var t,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Hd+e);return n.d?(t=pf(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},q.round=function(){var e=this,t=e.constructor;return J(new t(e),e.e+1,t.rounding)},q.sine=q.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+K,r.rounding=1,n=Cf(r,Ef(r,n)),r.precision=e,r.rounding=t,J(Bd>2?n.neg():n,e,t,!0)):new r(NaN)},q.squareRoot=q.sqrt=function(){var e,t,n,r,i,a,o=this,s=o.d,c=o.e,l=o.s,u=o.constructor;if(l!==1||!s||!s[0])return new u(!l||l<0&&(!s||s[0])?NaN:s?o:1/0);for(G=!1,l=Math.sqrt(+o),l==0||l==1/0?(t=nf(s),(t.length+c)%2==0&&(t+=`0`),l=Math.sqrt(t),c=Kd((c+1)/2)-(c<0||c%2),l==1/0?t=`5e`+c:(t=l.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+c),r=new u(t)):r=new u(l.toString()),n=(c=u.precision)+3;;)if(a=r,r=a.plus(cf(o,a,n+2,1)).times(.5),nf(a.d).slice(0,n)===(t=nf(r.d)).slice(0,n))if(t=t.slice(n-3,n+1),t==`9999`||!i&&t==`4999`){if(!i&&(J(a,c+1,0),a.times(a).eq(o))){r=a;break}n+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)==`5`)&&(J(r,c+1,1),e=!r.times(r).eq(o));break}return G=!0,J(r,c,u.rounding,e)},q.tangent=q.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,n=n.sin(),n.s=1,n=cf(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,J(Bd==2||Bd==4?n.neg():n,e,t,!0)):new r(NaN)},q.times=q.mul=function(e){var t,n,r,i,a,o,s,c,l,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(e.s*=u.s,!f||!f[0]||!p||!p[0])return new d(!e.s||f&&!f[0]&&!p||p&&!p[0]&&!f?NaN:!f||!p?e.s/0:e.s*0);for(n=Kd(u.e/K)+Kd(e.e/K),c=f.length,l=p.length,c<l&&(a=f,f=p,p=a,o=c,c=l,l=o),a=[],o=c+l,r=o;r--;)a.push(0);for(r=l;--r>=0;){for(t=0,i=c+r;i>r;)s=a[i]+p[r]*f[i-r-1]+t,a[i--]=s%Qd|0,t=s/Qd|0;a[i]=(a[i]+t)%Qd|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=uf(a,n),G?J(e,d.precision,d.rounding):e},q.toBinary=function(e,t){return Df(this,2,e,t)},q.toDecimalPlaces=q.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(rf(e,0,Pd),t===void 0?t=r.rounding:rf(t,0,8),J(n,e+n.e+1,t))},q.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=lf(r,!0):(rf(e,0,Pd),t===void 0?t=i.rounding:rf(t,0,8),r=J(new i(r),e+1,t),n=lf(r,!0,e+1)),r.isNeg()&&!r.isZero()?`-`+n:n},q.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?n=lf(i):(rf(e,0,Pd),t===void 0?t=a.rounding:rf(t,0,8),r=J(new a(i),e+i.e+1,t),n=lf(r,!1,e+r.e+1)),i.isNeg()&&!i.isZero()?`-`+n:n},q.toFraction=function(e){var t,n,r,i,a,o,s,c,l,u,d,f,p=this,m=p.d,h=p.constructor;if(!m)return new h(p);if(l=n=new h(1),r=c=new h(0),t=new h(r),a=t.e=pf(m)-p.e-1,o=a%K,t.d[0]=qd(10,o<0?K+o:o),e==null)e=a>0?t:l;else{if(s=new h(e),!s.isInt()||s.lt(l))throw Error(Hd+s);e=s.gt(t)?a>0?t:l:s}for(G=!1,s=new h(nf(m)),u=h.precision,h.precision=a=m.length*K*2;d=cf(s,t,0,1,1),i=n.plus(d.times(r)),i.cmp(e)!=1;)n=r,r=i,i=l,l=c.plus(d.times(i)),c=i,i=t,t=s.minus(d.times(i)),s=i;return i=cf(e.minus(n),r,0,1,1),c=c.plus(i.times(l)),n=n.plus(i.times(r)),c.s=l.s=p.s,f=cf(l,r,a,1).minus(p).abs().cmp(cf(c,n,a,1).minus(p).abs())<1?[l,r]:[c,n],h.precision=u,G=!0,f},q.toHexadecimal=q.toHex=function(e,t){return Df(this,16,e,t)},q.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),e==null){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),t===void 0?t=r.rounding:rf(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&=n.s,e}return e.d[0]?(G=!1,n=cf(n,e,0,t,1).times(e),G=!0,J(n)):(e.s=n.s,n=e),n},q.toNumber=function(){return+this},q.toOctal=function(e,t){return Df(this,8,e,t)},q.toPower=q.pow=function(e){var t,n,r,i,a,o,s=this,c=s.constructor,l=+(e=new c(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new c(qd(+s,l));if(s=new c(s),s.eq(1))return s;if(r=c.precision,a=c.rounding,e.eq(1))return J(s,r,a);if(t=Kd(e.e/K),t>=e.d.length-1&&(n=l<0?-l:l)<=$d)return i=hf(c,s,n,r),e.s<0?new c(1).div(i):J(i,r,a);if(o=s.s,o<0){if(t<e.d.length-1)return new c(NaN);if(e.d[t]&1||(o=1),s.e==0&&s.d[0]==1&&s.d.length==1)return s.s=o,s}return n=qd(+s,l),t=n==0||!isFinite(n)?Kd(l*(Math.log(`0.`+nf(s.d))/Math.LN10+s.e+1)):new c(n+``).e,t>c.maxE+1||t<c.minE-1?new c(t>0?o/0:0):(G=!1,c.rounding=s.s=1,n=Math.min(12,(t+``).length),i=vf(e.times(yf(s,r+n)),r),i.d&&(i=J(i,r+5,1),af(i.d,r,a)&&(t=r+10,i=J(vf(e.times(yf(s,t+n)),t),t+5,1),+nf(i.d).slice(r+1,r+15)+1==0x5af3107a4000&&(i=J(i,r+1,0)))),i.s=o,G=!0,c.rounding=a,J(i,r,a))},q.toPrecision=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=lf(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(rf(e,1,Pd),t===void 0?t=i.rounding:rf(t,0,8),r=J(new i(r),e,t),n=lf(r,e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?`-`+n:n},q.toSignificantDigits=q.toSD=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(rf(e,1,Pd),t===void 0?t=r.rounding:rf(t,0,8)),J(new r(n),e,t)},q.toString=function(){var e=this,t=e.constructor,n=lf(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?`-`+n:n},q.truncated=q.trunc=function(){return J(new this.constructor(this),this.e+1,1)},q.valueOf=q.toJSON=function(){var e=this,t=e.constructor,n=lf(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?`-`+n:n};function nf(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=K-r.length,n&&(a+=mf(n)),a+=r;o=e[t],r=o+``,n=K-r.length,n&&(a+=mf(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}function rf(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Hd+e)}function af(e,t,n,r){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=K,i=0):(i=Math.ceil((t+1)/K),t%=K),a=qd(10,K-t),s=e[i]%a|0,r==null?t<3?(t==0?s=s/100|0:t==1&&(s=s/10|0),o=n<4&&s==99999||n>3&&s==49999||s==5e4||s==0):o=(n<4&&s+1==a||n>3&&s+1==a/2)&&(e[i+1]/a/100|0)==qd(10,t-2)-1||(s==a/2||s==0)&&(e[i+1]/a/100|0)==0:t<4?(t==0?s=s/1e3|0:t==1?s=s/100|0:t==2&&(s=s/10|0),o=(r||n<4)&&s==9999||!r&&n>3&&s==4999):o=((r||n<4)&&s+1==a||!r&&n>3&&s+1==a/2)&&(e[i+1]/a/1e3|0)==qd(10,t-3)-1,o}function of(e,t,n){for(var r,i=[0],a,o=0,s=e.length;o<s;){for(a=i.length;a--;)i[a]*=t;for(i[0]+=Fd.indexOf(e.charAt(o++)),r=0;r<i.length;r++)i[r]>n-1&&(i[r+1]===void 0&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}function sf(e,t){var n,r,i;if(t.isZero())return t;r=t.d.length,r<32?(n=Math.ceil(r/3),i=(1/Tf(4,n)).toString()):(n=16,i=`2.3283064365386962890625e-10`),e.precision+=n,t=wf(e,1,t.times(i),new e(1));for(var a=n;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,t}var cf=(function(){function e(e,t,n){var r,i=0,a=e.length;for(e=e.slice();a--;)r=e[a]*t+i,e[a]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=+(e[n]<t[n]),e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,a,o,s,c){var l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k=r.constructor,A=r.s==i.s?1:-1,j=r.d,M=i.d;if(!j||!j[0]||!M||!M[0])return new k(!r.s||!i.s||(j?M&&j[0]==M[0]:!M)?NaN:j&&j[0]==0||!M?A*0:A/0);for(c?(p=1,u=r.e-i.e):(c=Qd,p=K,u=Kd(r.e/p)-Kd(i.e/p)),D=M.length,T=j.length,_=new k(A),v=_.d=[],d=0;M[d]==(j[d]||0);d++);if(M[d]>(j[d]||0)&&u--,a==null?(S=a=k.precision,o=k.rounding):S=s?a+(r.e-i.e)+1:a,S<0)v.push(1),m=!0;else{if(S=S/p+2|0,d=0,D==1){for(f=0,M=M[0],S++;(d<T||f)&&S--;d++)C=f*c+(j[d]||0),v[d]=C/M|0,f=C%M|0;m=f||d<T}else{for(f=c/(M[0]+1)|0,f>1&&(M=e(M,f,c),j=e(j,f,c),D=M.length,T=j.length),w=D,y=j.slice(0,D),b=y.length;b<D;)y[b++]=0;O=M.slice(),O.unshift(0),E=M[0],M[1]>=c/2&&++E;do f=0,l=t(M,y,D,b),l<0?(x=y[0],D!=b&&(x=x*c+(y[1]||0)),f=x/E|0,f>1?(f>=c&&(f=c-1),h=e(M,f,c),g=h.length,b=y.length,l=t(h,y,g,b),l==1&&(f--,n(h,D<g?O:M,g,c))):(f==0&&(l=f=1),h=M.slice()),g=h.length,g<b&&h.unshift(0),n(y,h,b,c),l==-1&&(b=y.length,l=t(M,y,D,b),l<1&&(f++,n(y,D<b?O:M,b,c))),b=y.length):l===0&&(f++,y=[0]),v[d++]=f,l&&y[0]?y[b++]=j[w]||0:(y=[j[w]],b=1);while((w++<T||y[0]!==void 0)&&S--);m=y[0]!==void 0}v[0]||v.shift()}if(p==1)_.e=u,zd=m;else{for(d=1,f=v[0];f>=10;f/=10)d++;_.e=d+u*p-1,J(_,s?a+_.e+1:a,o,m)}return _}})();function J(e,t,n,r){var i,a,o,s,c,l,u,d,f,p=e.constructor;out:if(t!=null){if(d=e.d,!d)return e;for(i=1,s=d[0];s>=10;s/=10)i++;if(a=t-i,a<0)a+=K,o=t,u=d[f=0],c=u/qd(10,i-o-1)%10|0;else if(f=Math.ceil((a+1)/K),s=d.length,f>=s)if(r){for(;s++<=f;)d.push(0);u=c=0,i=1,a%=K,o=a-K+1}else break out;else{for(u=s=d[f],i=1;s>=10;s/=10)i++;a%=K,o=a-K+i,c=o<0?0:u/qd(10,i-o-1)%10|0}if(r=r||t<0||d[f+1]!==void 0||(o<0?u:u%qd(10,i-o-1)),l=n<4?(c||r)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||r||n==6&&(a>0?o>0?u/qd(10,i-o):0:d[f-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,l?(t-=e.e+1,d[0]=qd(10,(K-t%K)%K),e.e=-t||0):d[0]=e.e=0,e;if(a==0?(d.length=f,s=1,f--):(d.length=f+1,s=qd(10,K-a),d[f]=o>0?(u/qd(10,i-o)%qd(10,o)|0)*s:0),l)for(;;)if(f==0){for(a=1,o=d[0];o>=10;o/=10)a++;for(o=d[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(e.e++,d[0]==Qd&&(d[0]=1));break}else{if(d[f]+=s,d[f]!=Qd)break;d[f--]=0,s=1}for(a=d.length;d[--a]===0;)d.pop()}return G&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function lf(e,t,n){if(!e.isFinite())return bf(e);var r,i=e.e,a=nf(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+mf(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(e.e<0?`e`:`e+`)+e.e):i<0?(a=`0.`+mf(-i-1)+a,n&&(r=n-o)>0&&(a+=mf(r))):i>=o?(a+=mf(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+mf(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=mf(r))),a}function uf(e,t){var n=e[0];for(t*=K;n>=10;n/=10)t++;return t}function df(e,t,n){if(t>ef)throw G=!0,n&&(e.precision=n),Error(Ud);return J(new e(Id),t,1,!0)}function ff(e,t,n){if(t>tf)throw Error(Ud);return J(new e(Ld),t,n,!0)}function pf(e){var t=e.length-1,n=t*K+1;if(t=e[t],t){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function mf(e){for(var t=``;e--;)t+=`0`;return t}function hf(e,t,n,r){var i,a=new e(1),o=Math.ceil(r/K+4);for(G=!1;;){if(n%2&&(a=a.times(t),Of(a.d,o)&&(i=!0)),n=Kd(n/2),n===0){n=a.d.length-1,i&&a.d[n]===0&&++a.d[n];break}t=t.times(t),Of(t.d,o)}return G=!0,a}function gf(e){return e.d[e.d.length-1]&1}function _f(e,t,n){for(var r,i,a=new e(t[0]),o=0;++o<t.length;){if(i=new e(t[o]),!i.s){a=i;break}r=a.cmp(i),(r===n||r===0&&a.s===n)&&(a=i)}return a}function vf(e,t){var n,r,i,a,o,s,c,l=0,u=0,d=0,f=e.constructor,p=f.rounding,m=f.precision;if(!e.d||!e.d[0]||e.e>17)return new f(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(G=!1,c=m):c=t,s=new f(.03125);e.e>-2;)e=e.times(s),d+=5;for(r=Math.log(qd(2,d))/Math.LN10*2+5|0,c+=r,n=a=o=new f(1),f.precision=c;;){if(a=J(a.times(e),c,1),n=n.times(++u),s=o.plus(cf(a,n,c,1)),nf(s.d).slice(0,c)===nf(o.d).slice(0,c)){for(i=d;i--;)o=J(o.times(o),c,1);if(t==null)if(l<3&&af(o.d,c-r,p,l))f.precision=c+=10,n=a=s=new f(1),u=0,l++;else return J(o,f.precision=m,p,G=!0);else return f.precision=m,o}o=s}}function yf(e,t){var n,r,i,a,o,s,c,l,u,d,f,p=1,m=10,h=e,g=h.d,_=h.constructor,v=_.rounding,y=_.precision;if(h.s<0||!g||!g[0]||!h.e&&g[0]==1&&g.length==1)return new _(g&&!g[0]?-1/0:h.s==1?g?0:h:NaN);if(t==null?(G=!1,u=y):u=t,_.precision=u+=m,n=nf(g),r=n.charAt(0),Math.abs(a=h.e)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=nf(h.d),r=n.charAt(0),p++;a=h.e,r>1?(h=new _(`0.`+n),a++):h=new _(r+`.`+n.slice(1))}else return l=df(_,u+2,y).times(a+``),h=yf(new _(r+`.`+n.slice(1)),u-m).plus(l),_.precision=y,t==null?J(h,y,v,G=!0):h;for(d=h,c=o=h=cf(h.minus(1),h.plus(1),u,1),f=J(h.times(h),u,1),i=3;;){if(o=J(o.times(f),u,1),l=c.plus(cf(o,new _(i),u,1)),nf(l.d).slice(0,u)===nf(c.d).slice(0,u))if(c=c.times(2),a!==0&&(c=c.plus(df(_,u+2,y).times(a+``))),c=cf(c,new _(p),u,1),t==null)if(af(c.d,u-m,v,s))_.precision=u+=m,l=o=h=cf(d.minus(1),d.plus(1),u,1),f=J(h.times(h),u,1),i=s=1;else return J(c,_.precision=y,v,G=!0);else return _.precision=y,c;c=l,i+=2}}function bf(e){return String(e.s*e.s/0)}function xf(e,t){var n,r,i;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;r++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(r,i),t){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%K,n<0&&(r+=K),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=K;r<i;)e.d.push(+t.slice(r,r+=K));t=t.slice(r),r=K-t.length}else r-=i;for(;r--;)t+=`0`;e.d.push(+t),G&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function Sf(e,t){var n,r,i,a,o,s,c,l,u;if(t.indexOf(`_`)>-1){if(t=t.replace(/(\d)_(?=\d)/g,`$1`),Zd.test(t))return xf(e,t)}else if(t===`Infinity`||t===`NaN`)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Yd.test(t))n=16,t=t.toLowerCase();else if(Jd.test(t))n=2;else if(Xd.test(t))n=8;else throw Error(Hd+t);for(a=t.search(/p/i),a>0?(c=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),a=t.indexOf(`.`),o=a>=0,r=e.constructor,o&&(t=t.replace(`.`,``),s=t.length,a=s-a,i=hf(r,new r(n),a,a*2)),l=of(t,n,Qd),u=l.length-1,a=u;l[a]===0;--a)l.pop();return a<0?new r(e.s*0):(e.e=uf(l,u),e.d=l,G=!1,o&&(e=cf(e,i,s*4)),c&&(e=e.times(Math.abs(c)<54?qd(2,c):gp.pow(2,c))),G=!0,e)}function Cf(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:wf(e,2,t,t);n=1.4*Math.sqrt(r),n=n>16?16:n|0,t=t.times(1/Tf(5,n)),t=wf(e,2,t,t);for(var i,a=new e(5),o=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}function wf(e,t,n,r,i){var a,o,s,c,l=1,u=e.precision,d=Math.ceil(u/K);for(G=!1,c=n.times(n),s=new e(r);;){if(o=cf(s.times(c),new e(t++*t++),u,1),s=i?r.plus(o):r.minus(o),r=cf(o.times(c),new e(t++*t++),u,1),o=s.plus(r),o.d[d]!==void 0){for(a=d;o.d[a]===s.d[a]&&a--;);if(a==-1)break}a=s,s=r,r=o,o=a,l++}return G=!0,o.d.length=d+1,o}function Tf(e,t){for(var n=e;--t;)n*=e;return n}function Ef(e,t){var n,r=t.s<0,i=ff(e,e.precision,1),a=i.times(.5);if(t=t.abs(),t.lte(a))return Bd=r?4:1,t;if(n=t.divToInt(i),n.isZero())Bd=r?3:2;else{if(t=t.minus(n.times(i)),t.lte(a))return Bd=gf(n)?r?2:3:r?4:1,t;Bd=gf(n)?r?1:4:r?3:2}return t.minus(i).abs()}function Df(e,t,n,r){var i,a,o,s,c,l,u,d,f,p=e.constructor,m=n!==void 0;if(m?(rf(n,1,Pd),r===void 0?r=p.rounding:rf(r,0,8)):(n=p.precision,r=p.rounding),!e.isFinite())u=bf(e);else{for(u=lf(e),o=u.indexOf(`.`),m?(i=2,t==16?n=n*4-3:t==8&&(n=n*3-2)):i=t,o>=0&&(u=u.replace(`.`,``),f=new p(1),f.e=u.length-o,f.d=of(lf(f),10,i),f.e=f.d.length),d=of(u,10,i),a=c=d.length;d[--c]==0;)d.pop();if(!d[0])u=m?`0p+0`:`0`;else{if(o<0?a--:(e=new p(e),e.d=d,e.e=a,e=cf(e,f,n,r,0,i),d=e.d,a=e.e,l=zd),o=d[n],s=i/2,l||=d[n+1]!==void 0,l=r<4?(o!==void 0||l)&&(r===0||r===(e.s<0?3:2)):o>s||o===s&&(r===4||l||r===6&&d[n-1]&1||r===(e.s<0?8:7)),d.length=n,l)for(;++d[--n]>i-1;)d[n]=0,n||(++a,d.unshift(1));for(c=d.length;!d[c-1];--c);for(o=0,u=``;o<c;o++)u+=Fd.charAt(d[o]);if(m){if(c>1)if(t==16||t==8){for(o=t==16?4:3,--c;c%o;c++)u+=`0`;for(d=of(u,i,t),c=d.length;!d[c-1];--c);for(o=1,u=`1.`;o<c;o++)u+=Fd.charAt(d[o])}else u=u.charAt(0)+`.`+u.slice(1);u=u+(a<0?`p`:`p+`)+a}else if(a<0){for(;++a;)u=`0`+u;u=`0.`+u}else if(++a>c)for(a-=c;a--;)u+=`0`;else a<c&&(u=u.slice(0,a)+`.`+u.slice(a))}u=(t==16?`0x`:t==2?`0b`:t==8?`0o`:``)+u}return e.s<0?`-`+u:u}function Of(e,t){if(e.length>t)return e.length=t,!0}function kf(e){return new this(e).abs()}function Af(e){return new this(e).acos()}function jf(e){return new this(e).acosh()}function Mf(e,t){return new this(e).plus(t)}function Nf(e){return new this(e).asin()}function Pf(e){return new this(e).asinh()}function Ff(e){return new this(e).atan()}function If(e){return new this(e).atanh()}function Lf(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,a=r+4;return!e.s||!t.s?n=new this(NaN):!e.d&&!t.d?(n=ff(this,a,1).times(t.s>0?.25:.75),n.s=e.s):!t.d||e.isZero()?(n=t.s<0?ff(this,r,i):new this(0),n.s=e.s):!e.d||t.isZero()?(n=ff(this,a,1).times(.5),n.s=e.s):t.s<0?(this.precision=a,this.rounding=1,n=this.atan(cf(e,t,a,1)),t=ff(this,a,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(cf(e,t,a,1)),n}function Rf(e){return new this(e).cbrt()}function zf(e){return J(e=new this(e),e.e+1,2)}function Bf(e,t,n){return new this(e).clamp(t,n)}function Vf(e){if(!e||typeof e!=`object`)throw Error(Vd+`Object expected`);var t,n,r,i=e.defaults===!0,a=[`precision`,1,Pd,`rounding`,0,8,`toExpNeg`,-Nd,0,`toExpPos`,0,Nd,`maxE`,0,Nd,`minE`,-Nd,0,`modulo`,0,9];for(t=0;t<a.length;t+=3)if(n=a[t],i&&(this[n]=Rd[n]),(r=e[n])!==void 0)if(Kd(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Hd+n+`: `+r);if(n=`crypto`,i&&(this[n]=Rd[n]),(r=e[n])!==void 0)if(r===!0||r===!1||r===0||r===1)if(r)if(typeof crypto<`u`&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(Wd);else this[n]=!1;else throw Error(Hd+n+`: `+r);return this}function Hf(e){return new this(e).cos()}function Uf(e){return new this(e).cosh()}function Wf(e){var t,n,r;function i(e){var t,n,r,a=this;if(!(a instanceof i))return new i(e);if(a.constructor=i,Yf(e)){a.s=e.s,G?!e.d||e.e>i.maxE?(a.e=NaN,a.d=null):e.e<i.minE?(a.e=0,a.d=[0]):(a.e=e.e,a.d=e.d.slice()):(a.e=e.e,a.d=e.d?e.d.slice():e.d);return}if(r=typeof e,r===`number`){if(e===0){a.s=1/e<0?-1:1,a.e=0,a.d=[0];return}if(e<0?(e=-e,a.s=-1):a.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;G?t>i.maxE?(a.e=NaN,a.d=null):t<i.minE?(a.e=0,a.d=[0]):(a.e=t,a.d=[e]):(a.e=t,a.d=[e]);return}if(e*0!=0){e||(a.s=NaN),a.e=NaN,a.d=null;return}return xf(a,e.toString())}if(r===`string`)return(n=e.charCodeAt(0))===45?(e=e.slice(1),a.s=-1):(n===43&&(e=e.slice(1)),a.s=1),Zd.test(e)?xf(a,e):Sf(a,e);if(r===`bigint`)return e<0?(e=-e,a.s=-1):a.s=1,xf(a,e.toString());throw Error(Hd+e)}if(i.prototype=q,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=Vf,i.clone=Wf,i.isDecimal=Yf,i.abs=kf,i.acos=Af,i.acosh=jf,i.add=Mf,i.asin=Nf,i.asinh=Pf,i.atan=Ff,i.atanh=If,i.atan2=Lf,i.cbrt=Rf,i.ceil=zf,i.clamp=Bf,i.cos=Hf,i.cosh=Uf,i.div=Gf,i.exp=Kf,i.floor=qf,i.hypot=Jf,i.ln=Xf,i.log=Zf,i.log10=$f,i.log2=Qf,i.max=ep,i.min=tp,i.mod=np,i.mul=rp,i.pow=ip,i.random=ap,i.round=op,i.sign=sp,i.sin=cp,i.sinh=lp,i.sqrt=up,i.sub=dp,i.sum=fp,i.tan=pp,i.tanh=mp,i.trunc=hp,e===void 0&&(e={}),e&&e.defaults!==!0)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`maxE`,`minE`,`modulo`,`crypto`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function Gf(e,t){return new this(e).div(t)}function Kf(e){return new this(e).exp()}function qf(e){return J(e=new this(e),e.e+1,3)}function Jf(){var e,t,n=new this(0);for(G=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return G=!0,new this(1/0);n=t}return G=!0,n.sqrt()}function Yf(e){return e instanceof gp||e&&e.toStringTag===Gd||!1}function Xf(e){return new this(e).ln()}function Zf(e,t){return new this(e).log(t)}function Qf(e){return new this(e).log(2)}function $f(e){return new this(e).log(10)}function ep(){return _f(this,arguments,-1)}function tp(){return _f(this,arguments,1)}function np(e,t){return new this(e).mod(t)}function rp(e,t){return new this(e).mul(t)}function ip(e,t){return new this(e).pow(t)}function ap(e){var t,n,r,i,a=0,o=new this(1),s=[];if(e===void 0?e=this.precision:rf(e,1,Pd),r=Math.ceil(e/K),!this.crypto)for(;a<r;)s[a++]=Math.random()*1e7|0;else if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));a<r;)i=t[a],i>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);a<r;)i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((t[a+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(t,a):(s.push(i%1e7),a+=4);a=r/4}else throw Error(Wd);for(r=s[--a],e%=K,r&&e&&(i=qd(10,K-e),s[a]=(r/i|0)*i);s[a]===0;a--)s.pop();if(a<0)n=0,s=[0];else{for(n=-1;s[0]===0;n-=K)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<K&&(n-=K-r)}return o.e=n,o.d=s,o}function op(e){return J(e=new this(e),e.e+1,this.rounding)}function sp(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function cp(e){return new this(e).sin()}function lp(e){return new this(e).sinh()}function up(e){return new this(e).sqrt()}function dp(e,t){return new this(e).sub(t)}function fp(){var e=0,t=arguments,n=new this(t[e]);for(G=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return G=!0,J(n,this.precision,this.rounding)}function pp(e){return new this(e).tan()}function mp(e){return new this(e).tanh()}function hp(e){return J(e=new this(e),e.e+1,1)}q[Symbol.for(`nodejs.util.inspect.custom`)]=q.toString,q[Symbol.toStringTag]=`Decimal`;var gp=q.constructor=Wf(Rd);Id=new gp(Id),Ld=new gp(Ld);var _p=W(`BigNumber`,[`?on`,`config`],e=>{var{on:t,config:n}=e,r=gp.clone({precision:n.precision,modulo:gp.EUCLID});return r.prototype=Object.create(r.prototype),r.prototype.type=`BigNumber`,r.prototype.isBigNumber=!0,r.prototype.toJSON=function(){return{mathjs:`BigNumber`,value:this.toString()}},r.fromJSON=function(e){return new r(e.value)},t&&t(`config`,function(e,t){e.precision!==t.precision&&r.config({precision:e.precision})}),r},{isClass:!0}),vp=Math.cosh||function(e){return Math.abs(e)<1e-9?1-e:(Math.exp(e)+Math.exp(-e))*.5},yp=Math.sinh||function(e){return Math.abs(e)<1e-9?e:(Math.exp(e)-Math.exp(-e))*.5},bp=e=>{let t=Math.sin(.5*e);return-2*t*t},xp=function(e,t){return e=Math.abs(e),t=Math.abs(t),e<t&&([e,t]=[t,e]),e<1e8?Math.sqrt(e*e+t*t):(t/=e,e*Math.sqrt(1+t*t))},Sp=function(){throw SyntaxError(`Invalid Param`)};function Cp(e,t){let n=Math.abs(e),r=Math.abs(t);return e===0?Math.log(r):t===0?Math.log(n):n<3e3&&r<3e3?Math.log(e*e+t*t)*.5:(e*=.5,t*=.5,.5*Math.log(e*e+t*t)+Math.LN2)}var wp={re:0,im:0},Tp=function(e,t){let n=wp;if(e==null)n.re=n.im=0;else if(t!==void 0)n.re=e,n.im=t;else switch(typeof e){case`object`:if(`im`in e&&`re`in e)n.re=e.re,n.im=e.im;else if(`abs`in e&&`arg`in e){if(!isFinite(e.abs)&&isFinite(e.arg))return Y.INFINITY;n.re=e.abs*Math.cos(e.arg),n.im=e.abs*Math.sin(e.arg)}else if(`r`in e&&`phi`in e){if(!isFinite(e.r)&&isFinite(e.phi))return Y.INFINITY;n.re=e.r*Math.cos(e.phi),n.im=e.r*Math.sin(e.phi)}else e.length===2?(n.re=e[0],n.im=e[1]):Sp();break;case`string`:n.im=n.re=0;let t=e.replace(/_/g,``).match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),r=1,i=0;t===null&&Sp();for(let e=0;e<t.length;e++){let a=t[e];a===` `||a===` `||a===`
|
|
151
|
-
`||(a===`+`?r++:a===`-`?i++:a===`i`||a===`I`?(r+i===0&&Sp(),t[e+1]!==` `&&!isNaN(t[e+1])?(n.im+=parseFloat((i%2?`-`:``)+t[e+1]),e++):n.im+=parseFloat((i%2?`-`:``)+`1`),r=i=0):((r+i===0||isNaN(a))&&Sp(),t[e+1]===`i`||t[e+1]===`I`?(n.im+=parseFloat((i%2?`-`:``)+a),e++):n.re+=parseFloat((i%2?`-`:``)+a),r=i=0))}r+i>0&&Sp();break;case`number`:n.im=0,n.re=e;break;default:Sp()}return isNaN(n.re)||isNaN(n.im),n};function Y(e,t){if(!(this instanceof Y))return new Y(e,t);let n=Tp(e,t);this.re=n.re,this.im=n.im}Y.prototype={re:0,im:0,sign:function(){let e=xp(this.re,this.im);return new Y(this.re/e,this.im/e)},add:function(e,t){let n=Tp(e,t),r=this.isInfinite(),i=!(isFinite(n.re)&&isFinite(n.im));return r||i?r&&i?Y.NAN:Y.INFINITY:new Y(this.re+n.re,this.im+n.im)},sub:function(e,t){let n=Tp(e,t),r=this.isInfinite(),i=!(isFinite(n.re)&&isFinite(n.im));return r||i?r&&i?Y.NAN:Y.INFINITY:new Y(this.re-n.re,this.im-n.im)},mul:function(e,t){let n=Tp(e,t),r=this.isInfinite(),i=!(isFinite(n.re)&&isFinite(n.im)),a=this.re===0&&this.im===0,o=n.re===0&&n.im===0;return r&&o||i&&a?Y.NAN:r||i?Y.INFINITY:n.im===0&&this.im===0?new Y(this.re*n.re,0):new Y(this.re*n.re-this.im*n.im,this.re*n.im+this.im*n.re)},div:function(e,t){let n=Tp(e,t),r=this.isInfinite(),i=!(isFinite(n.re)&&isFinite(n.im)),a=this.re===0&&this.im===0,o=n.re===0&&n.im===0;if(a&&o||r&&i)return Y.NAN;if(o||r)return Y.INFINITY;if(a||i)return Y.ZERO;if(n.im===0)return new Y(this.re/n.re,this.im/n.re);if(Math.abs(n.re)<Math.abs(n.im)){let e=n.re/n.im,t=n.re*e+n.im;return new Y((this.re*e+this.im)/t,(this.im*e-this.re)/t)}else{let e=n.im/n.re,t=n.im*e+n.re;return new Y((this.re+this.im*e)/t,(this.im-this.re*e)/t)}},pow:function(e,t){let n=Tp(e,t),r=this.re===0&&this.im===0;if(n.re===0&&n.im===0)return Y.ONE;if(n.im===0){if(this.im===0&&this.re>0)return new Y(this.re**+n.re,0);if(this.re===0)switch((n.re%4+4)%4){case 0:return new Y(this.im**+n.re,0);case 1:return new Y(0,this.im**+n.re);case 2:return new Y(-(this.im**+n.re),0);case 3:return new Y(0,-(this.im**+n.re))}}if(r&&n.re>0)return Y.ZERO;let i=Math.atan2(this.im,this.re),a=Cp(this.re,this.im),o=Math.exp(n.re*a-n.im*i),s=n.im*a+n.re*i;return new Y(o*Math.cos(s),o*Math.sin(s))},sqrt:function(){let e=this.re,t=this.im;if(t===0)return e>=0?new Y(Math.sqrt(e),0):new Y(0,Math.sqrt(-e));let n=xp(e,t),r=Math.sqrt(.5*(n+Math.abs(e))),i=Math.abs(t)/(2*r);return e>=0?new Y(r,t<0?-i:i):new Y(i,t<0?-r:r)},exp:function(){let e=Math.exp(this.re);return this.im===0?new Y(e,0):new Y(e*Math.cos(this.im),e*Math.sin(this.im))},expm1:function(){let e=this.re,t=this.im;return new Y(Math.expm1(e)*Math.cos(t)+bp(t),Math.exp(e)*Math.sin(t))},log:function(){let e=this.re,t=this.im;return t===0&&e>0?new Y(Math.log(e),0):new Y(Cp(e,t),Math.atan2(t,e))},abs:function(){return xp(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){let e=this.re,t=this.im;return new Y(Math.sin(e)*vp(t),Math.cos(e)*yp(t))},cos:function(){let e=this.re,t=this.im;return new Y(Math.cos(e)*vp(t),-Math.sin(e)*yp(t))},tan:function(){let e=2*this.re,t=2*this.im,n=Math.cos(e)+vp(t);return new Y(Math.sin(e)/n,yp(t)/n)},cot:function(){let e=2*this.re,t=2*this.im,n=Math.cos(e)-vp(t);return new Y(-Math.sin(e)/n,yp(t)/n)},sec:function(){let e=this.re,t=this.im,n=.5*vp(2*t)+.5*Math.cos(2*e);return new Y(Math.cos(e)*vp(t)/n,Math.sin(e)*yp(t)/n)},csc:function(){let e=this.re,t=this.im,n=.5*vp(2*t)-.5*Math.cos(2*e);return new Y(Math.sin(e)*vp(t)/n,-Math.cos(e)*yp(t)/n)},asin:function(){let e=this.re,t=this.im,n=new Y(t*t-e*e+1,-2*e*t).sqrt(),r=new Y(n.re-t,n.im+e).log();return new Y(r.im,-r.re)},acos:function(){let e=this.re,t=this.im,n=new Y(t*t-e*e+1,-2*e*t).sqrt(),r=new Y(n.re-t,n.im+e).log();return new Y(Math.PI/2-r.im,r.re)},atan:function(){let e=this.re,t=this.im;if(e===0){if(t===1)return new Y(0,1/0);if(t===-1)return new Y(0,-1/0)}let n=e*e+(1-t)*(1-t),r=new Y((1-t*t-e*e)/n,-2*e/n).log();return new Y(-.5*r.im,.5*r.re)},acot:function(){let e=this.re,t=this.im;if(t===0)return new Y(Math.atan2(1,e),0);let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).atan():new Y(e/n,-t/n).atan()},asec:function(){let e=this.re,t=this.im;if(e===0&&t===0)return new Y(0,1/0);let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).acos():new Y(e/n,-t/n).acos()},acsc:function(){let e=this.re,t=this.im;if(e===0&&t===0)return new Y(Math.PI/2,1/0);let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).asin():new Y(e/n,-t/n).asin()},sinh:function(){let e=this.re,t=this.im;return new Y(yp(e)*Math.cos(t),vp(e)*Math.sin(t))},cosh:function(){let e=this.re,t=this.im;return new Y(vp(e)*Math.cos(t),yp(e)*Math.sin(t))},tanh:function(){let e=2*this.re,t=2*this.im,n=vp(e)+Math.cos(t);return new Y(yp(e)/n,Math.sin(t)/n)},coth:function(){let e=2*this.re,t=2*this.im,n=vp(e)-Math.cos(t);return new Y(yp(e)/n,-Math.sin(t)/n)},csch:function(){let e=this.re,t=this.im,n=Math.cos(2*t)-vp(2*e);return new Y(-2*yp(e)*Math.cos(t)/n,2*vp(e)*Math.sin(t)/n)},sech:function(){let e=this.re,t=this.im,n=Math.cos(2*t)+vp(2*e);return new Y(2*vp(e)*Math.cos(t)/n,-2*yp(e)*Math.sin(t)/n)},asinh:function(){let e=this.re,t=this.im;if(t===0){if(e===0)return new Y(0,0);let t=Math.abs(e),n=Math.log(t+Math.sqrt(t*t+1));return new Y(e<0?-n:n,0)}let n=new Y(e*e-t*t+1,2*e*t).sqrt();return new Y(e+n.re,t+n.im).log()},acosh:function(){let e=this.re,t=this.im;if(t===0){if(e>1)return new Y(Math.log(e+Math.sqrt(e-1)*Math.sqrt(e+1)),0);if(e<-1){let t=Math.sqrt(e*e-1);return new Y(Math.log(-e+t),Math.PI)}return new Y(0,Math.acos(e))}let n=new Y(e-1,t).sqrt(),r=new Y(e+1,t).sqrt();return new Y(e+n.re*r.re-n.im*r.im,t+n.re*r.im+n.im*r.re).log()},atanh:function(){let e=this.re,t=this.im;if(t===0){if(e===0)return new Y(0,0);if(e===1)return new Y(1/0,0);if(e===-1)return new Y(-1/0,0);if(-1<e&&e<1)return new Y(.5*Math.log((1+e)/(1-e)),0);if(e>1){let t=(e+1)/(e-1);return new Y(.5*Math.log(t),-Math.PI/2)}let t=(1+e)/(1-e);return new Y(.5*Math.log(-t),Math.PI/2)}let n=1-e,r=1+e,i=n*n+t*t;if(i===0)return new Y(e===-1?0:e/0,t===0?0:t/0);let a=(r*n-t*t)/i,o=(t*n+r*t)/i;return new Y(Cp(a,o)/2,Math.atan2(o,a)/2)},acoth:function(){let e=this.re,t=this.im;if(e===0&&t===0)return new Y(0,Math.PI/2);let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).atanh():new Y(e/n,-t/n).atanh()},acsch:function(){let e=this.re,t=this.im;if(t===0){if(e===0)return new Y(1/0,0);let t=1/e;return new Y(Math.log(t+Math.sqrt(t*t+1)),0)}let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).asinh():new Y(e/n,-t/n).asinh()},asech:function(){let e=this.re,t=this.im;if(this.isZero())return Y.INFINITY;let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).acosh():new Y(e/n,-t/n).acosh()},inverse:function(){if(this.isZero())return Y.INFINITY;if(this.isInfinite())return Y.ZERO;let e=this.re,t=this.im,n=e*e+t*t;return new Y(e/n,-t/n)},conjugate:function(){return new Y(this.re,-this.im)},neg:function(){return new Y(-this.re,-this.im)},ceil:function(e){return e=10**(e||0),new Y(Math.ceil(this.re*e)/e,Math.ceil(this.im*e)/e)},floor:function(e){return e=10**(e||0),new Y(Math.floor(this.re*e)/e,Math.floor(this.im*e)/e)},round:function(e){return e=10**(e||0),new Y(Math.round(this.re*e)/e,Math.round(this.im*e)/e)},equals:function(e,t){let n=Tp(e,t);return Math.abs(n.re-this.re)<=Y.EPSILON&&Math.abs(n.im-this.im)<=Y.EPSILON},clone:function(){return new Y(this.re,this.im)},toString:function(){let e=this.re,t=this.im,n=``;return this.isNaN()?`NaN`:this.isInfinite()?`Infinity`:(Math.abs(e)<Y.EPSILON&&(e=0),Math.abs(t)<Y.EPSILON&&(t=0),t===0?n+e:(e===0?t<0&&(t=-t,n+=`-`):(n+=e,n+=` `,t<0?(t=-t,n+=`-`):n+=`+`,n+=` `),t!==1&&(n+=t),n+`i`))},toVector:function(){return[this.re,this.im]},valueOf:function(){return this.im===0?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return this.im===0&&this.re===0},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!this.isFinite()}},Y.ZERO=new Y(0,0),Y.ONE=new Y(1,0),Y.I=new Y(0,1),Y.PI=new Y(Math.PI,0),Y.E=new Y(Math.E,0),Y.INFINITY=new Y(1/0,1/0),Y.NAN=new Y(NaN,NaN),Y.EPSILON=1e-15;var Ep=W(`Complex`,[],()=>(Object.defineProperty(Y,"name",{value:`Complex`}),Y.prototype.constructor=Y,Y.prototype.type=`Complex`,Y.prototype.isComplex=!0,Y.prototype.toJSON=function(){return{mathjs:`Complex`,re:this.re,im:this.im}},Y.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},Y.prototype.format=function(e){var t=``,n=this.im,r=this.re,i=pd(this.re,e),a=pd(this.im,e),o=iu(e)?e:e?e.precision:null;if(o!==null){var s=10**-o;Math.abs(r/n)<s&&(r=0),Math.abs(n/r)<s&&(n=0)}return t=n===0?i:r===0?n===1?`i`:n===-1?`-i`:a+`i`:n<0?n===-1?i+` - i`:i+` - `+a.substring(1)+`i`:n===1?i+` + i`:i+` + `+a+`i`,t},Y.fromPolar=function(e){switch(arguments.length){case 1:var t=arguments[0];if(typeof t==`object`)return Y(t);throw TypeError(`Input has to be an object with r and phi keys.`);case 2:var n=arguments[0],r=arguments[1];if(iu(n)){if(lu(r)&&r.hasBase(`ANGLE`)&&(r=r.toNumber(`rad`)),iu(r))return new Y({r:n,phi:r});throw TypeError(`Phi is not a number nor an angle unit.`)}else throw TypeError(`Radius r is not a number.`);default:throw SyntaxError(`Wrong number of arguments in function fromPolar`)}},Y.prototype.valueOf=Y.prototype.toString,Y.fromJSON=function(e){return new Y(e)},Y.compare=function(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0},Y),{isClass:!0}),Dp=2e3,X={s:1,n:0,d:1};function Op(e,t){if(isNaN(e=parseInt(e,10)))throw Rp();return e*t}function kp(e,t){if(t===0)throw Lp();var n=Object.create(Ip.prototype);n.s=e<0?-1:1,e=e<0?-e:e;var r=Fp(e,t);return n.n=e/r,n.d=t/r,n}function Ap(e){for(var t={},n=e,r=2,i=4;i<=n;){for(;n%r===0;)n/=r,t[r]=(t[r]||0)+1;i+=1+2*r++}return n===e?t[e]=(t[e]||0)+1:n>1&&(t[n]=(t[n]||0)+1),t}var jp=function(e,t){var n=0,r=1,i=1,a=0,o=0,s=0,c=1,l=1,u=0,d=1,f=1,p=1,m=1e7,h;if(e!=null)if(t!==void 0){if(n=e,r=t,i=n*r,n%1!=0||r%1!=0)throw zp()}else switch(typeof e){case`object`:if(`d`in e&&`n`in e)n=e.n,r=e.d,`s`in e&&(n*=e.s);else if(0 in e)n=e[0],1 in e&&(r=e[1]);else throw Rp();i=n*r;break;case`number`:if(e<0&&(i=e,e=-e),e%1==0)n=e;else if(e>0){for(e>=1&&(l=10**Math.floor(1+Math.log(e)/Math.LN10),e/=l);d<=m&&p<=m;)if(h=(u+f)/(d+p),e===h){d+p<=m?(n=u+f,r=d+p):p>d?(n=f,r=p):(n=u,r=d);break}else e>h?(u+=f,d+=p):(f+=u,p+=d),d>m?(n=f,r=p):(n=u,r=d);n*=l}else(isNaN(e)||isNaN(t))&&(r=n=NaN);break;case`string`:if(d=e.match(/\d+|./g),d===null)throw Rp();if(d[u]===`-`?(i=-1,u++):d[u]===`+`&&u++,d.length===u+1?o=Op(d[u++],i):d[u+1]===`.`||d[u]===`.`?(d[u]!==`.`&&(a=Op(d[u++],i)),u++,(u+1===d.length||d[u+1]===`(`&&d[u+3]===`)`||d[u+1]===`'`&&d[u+3]===`'`)&&(o=Op(d[u],i),c=10**d[u].length,u++),(d[u]===`(`&&d[u+2]===`)`||d[u]===`'`&&d[u+2]===`'`)&&(s=Op(d[u+1],i),l=10**d[u+1].length-1,u+=3)):d[u+1]===`/`||d[u+1]===`:`?(o=Op(d[u],i),c=Op(d[u+2],1),u+=3):d[u+3]===`/`&&d[u+1]===` `&&(a=Op(d[u],i),o=Op(d[u+2],i),c=Op(d[u+4],1),u+=5),d.length<=u){r=c*l,i=n=s+r*a+l*o;break}default:throw Rp()}if(r===0)throw Lp();X.s=i<0?-1:1,X.n=Math.abs(n),X.d=Math.abs(r)};function Mp(e,t,n){for(var r=1;t>0;e=e*e%n,t>>=1)t&1&&(r=r*e%n);return r}function Np(e,t){for(;t%2==0;t/=2);for(;t%5==0;t/=5);if(t===1)return 0;for(var n=10%t,r=1;n!==1;r++)if(n=n*10%t,r>Dp)return 0;return r}function Pp(e,t,n){for(var r=1,i=Mp(10,n,t),a=0;a<300;a++){if(r===i)return a;r=r*10%t,i=i*10%t}return 0}function Fp(e,t){if(!e)return t;if(!t)return e;for(;;){if(e%=t,!e)return t;if(t%=e,!t)return e}}function Ip(e,t){if(jp(e,t),this instanceof Ip)e=Fp(X.d,X.n),this.s=X.s,this.n=X.n/e,this.d=X.d/e;else return kp(X.s*X.n,X.d)}var Lp=function(){return Error(`Division by Zero`)},Rp=function(){return Error(`Invalid argument`)},zp=function(){return Error(`Parameters must be integer`)};Ip.prototype={s:1,n:0,d:1,abs:function(){return kp(this.n,this.d)},neg:function(){return kp(-this.s*this.n,this.d)},add:function(e,t){return jp(e,t),kp(this.s*this.n*X.d+X.s*this.d*X.n,this.d*X.d)},sub:function(e,t){return jp(e,t),kp(this.s*this.n*X.d-X.s*this.d*X.n,this.d*X.d)},mul:function(e,t){return jp(e,t),kp(this.s*X.s*this.n*X.n,this.d*X.d)},div:function(e,t){return jp(e,t),kp(this.s*X.s*this.n*X.d,this.d*X.n)},clone:function(){return kp(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new Ip(NaN);if(e===void 0)return kp(this.s*this.n%this.d,1);if(jp(e,t),X.n===0&&this.d===0)throw Lp();return kp(this.s*(X.d*this.n)%(X.n*this.d),X.d*this.d)},gcd:function(e,t){return jp(e,t),kp(Fp(X.n,this.n)*Fp(X.d,this.d),X.d*this.d)},lcm:function(e,t){return jp(e,t),X.n===0&&this.n===0?kp(0,1):kp(X.n*this.n,Fp(X.n,this.n)*Fp(X.d,this.d))},ceil:function(e){return e=10**(e||0),isNaN(this.n)||isNaN(this.d)?new Ip(NaN):kp(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return e=10**(e||0),isNaN(this.n)||isNaN(this.d)?new Ip(NaN):kp(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return e=10**(e||0),isNaN(this.n)||isNaN(this.d)?new Ip(NaN):kp(Math.round(e*this.s*this.n/this.d),e)},roundTo:function(e,t){return jp(e,t),kp(this.s*Math.round(this.n*X.d/(this.d*X.n))*X.n,X.d)},inverse:function(){return kp(this.s*this.d,this.n)},pow:function(e,t){if(jp(e,t),X.d===1)return X.s<0?kp((this.s*this.d)**+X.n,this.n**+X.n):kp((this.s*this.n)**+X.n,this.d**+X.n);if(this.s<0)return null;var n=Ap(this.n),r=Ap(this.d),i=1,a=1;for(var o in n)if(o!==`1`){if(o===`0`){i=0;break}if(n[o]*=X.n,n[o]%X.d===0)n[o]/=X.d;else return null;i*=o**+n[o]}for(var o in r)if(o!==`1`){if(r[o]*=X.n,r[o]%X.d===0)r[o]/=X.d;else return null;a*=o**+r[o]}return X.s<0?kp(a,i):kp(i,a)},equals:function(e,t){return jp(e,t),this.s*this.n*X.d===X.s*X.n*this.d},compare:function(e,t){jp(e,t);var n=this.s*this.n*X.d-X.s*X.n*this.d;return(0<n)-(n<0)},simplify:function(e){if(isNaN(this.n)||isNaN(this.d))return this;e||=.001;for(var t=this.abs(),n=t.toContinued(),r=1;r<n.length;r++){for(var i=kp(n[r-1],1),a=r-2;a>=0;a--)i=i.inverse().add(n[a]);if(Math.abs(i.sub(t).valueOf())<e)return i.mul(this.s)}return this},divisible:function(e,t){return jp(e,t),!(!(X.n*this.d)||this.n*X.d%(X.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(e){var t,n=``,r=this.n,i=this.d;return this.s<0&&(n+=`-`),i===1?n+=r:(e&&(t=Math.floor(r/i))>0&&(n+=t,n+=` `,r%=i),n+=r,n+=`/`,n+=i),n},toLatex:function(e){var t,n=``,r=this.n,i=this.d;return this.s<0&&(n+=`-`),i===1?n+=r:(e&&(t=Math.floor(r/i))>0&&(n+=t,r%=i),n+=`\\frac{`,n+=r,n+=`}{`,n+=i,n+=`}`),n},toContinued:function(){var e,t=this.n,n=this.d,r=[];if(isNaN(t)||isNaN(n))return r;do r.push(Math.floor(t/n)),e=t%n,t=n,n=e;while(t!==1);return r},toString:function(e){var t=this.n,n=this.d;if(isNaN(t)||isNaN(n))return`NaN`;e||=15;var r=Np(t,n),i=Pp(t,n,r),a=this.s<0?`-`:``;if(a+=t/n|0,t%=n,t*=10,t&&(a+=`.`),r){for(var o=i;o--;)a+=t/n|0,t%=n,t*=10;a+=`(`;for(var o=r;o--;)a+=t/n|0,t%=n,t*=10;a+=`)`}else for(var o=e;t&&o--;)a+=t/n|0,t%=n,t*=10;return a}};var Bp=W(`Fraction`,[],()=>(Object.defineProperty(Ip,"name",{value:`Fraction`}),Ip.prototype.constructor=Ip,Ip.prototype.type=`Fraction`,Ip.prototype.isFraction=!0,Ip.prototype.toJSON=function(){return{mathjs:`Fraction`,n:this.s*this.n,d:this.d}},Ip.fromJSON=function(e){return new Ip(e)},Ip),{isClass:!0}),Vp=W(`Matrix`,[],()=>{function e(){if(!(this instanceof e))throw SyntaxError(`Constructor must be called with the new operator`)}return e.prototype.type=`Matrix`,e.prototype.isMatrix=!0,e.prototype.storage=function(){throw Error(`Cannot invoke storage on a Matrix interface`)},e.prototype.datatype=function(){throw Error(`Cannot invoke datatype on a Matrix interface`)},e.prototype.create=function(e,t){throw Error(`Cannot invoke create on a Matrix interface`)},e.prototype.subset=function(e,t,n){throw Error(`Cannot invoke subset on a Matrix interface`)},e.prototype.get=function(e){throw Error(`Cannot invoke get on a Matrix interface`)},e.prototype.set=function(e,t,n){throw Error(`Cannot invoke set on a Matrix interface`)},e.prototype.resize=function(e,t){throw Error(`Cannot invoke resize on a Matrix interface`)},e.prototype.reshape=function(e,t){throw Error(`Cannot invoke reshape on a Matrix interface`)},e.prototype.clone=function(){throw Error(`Cannot invoke clone on a Matrix interface`)},e.prototype.size=function(){throw Error(`Cannot invoke size on a Matrix interface`)},e.prototype.map=function(e,t){throw Error(`Cannot invoke map on a Matrix interface`)},e.prototype.forEach=function(e){throw Error(`Cannot invoke forEach on a Matrix interface`)},e.prototype[Symbol.iterator]=function(){throw Error(`Cannot iterate a Matrix interface`)},e.prototype.toArray=function(){throw Error(`Cannot invoke toArray on a Matrix interface`)},e.prototype.valueOf=function(){throw Error(`Cannot invoke valueOf on a Matrix interface`)},e.prototype.format=function(e){throw Error(`Cannot invoke format on a Matrix interface`)},e.prototype.toString=function(){throw Error(`Cannot invoke toString on a Matrix interface`)},e},{isClass:!0});function Hp(e,t,n){var r=e.constructor,i=new r(2),a=``;if(n){if(n<1)throw Error(`size must be in greater than 0`);if(!ad(n))throw Error(`size must be an integer`);if(e.greaterThan(i.pow(n-1).sub(1))||e.lessThan(i.pow(n-1).mul(-1)))throw Error(`Value must be in range [-2^${n-1}, 2^${n-1}-1]`);if(!e.isInteger())throw Error(`Value must be an integer`);e.lessThan(0)&&(e=e.add(i.pow(n))),a=`i${n}`}switch(t){case 2:return`${e.toBinary()}${a}`;case 8:return`${e.toOctal()}${a}`;case 16:return`${e.toHexadecimal()}${a}`;default:throw Error(`Base ${t} not supported `)}}function Up(e,t){if(typeof t==`function`)return t(e);if(!e.isFinite())return e.isNaN()?`NaN`:e.gt(0)?`Infinity`:`-Infinity`;var{notation:n,precision:r,wordSize:i}=md(t);switch(n){case`fixed`:return Kp(e,r);case`exponential`:return Gp(e,r);case`engineering`:return Wp(e,r);case`bin`:return Hp(e,2,i);case`oct`:return Hp(e,8,i);case`hex`:return Hp(e,16,i);case`auto`:var a=qp(t?.lowerExp,-3),o=qp(t?.upperExp,5);if(e.isZero())return`0`;var s,c=e.toSignificantDigits(r),l=c.e;return s=l>=a&&l<o?c.toFixed():Gp(e,r),s.replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return e===`.`?t:e+t});default:throw Error(`Unknown notation "`+n+`". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.`)}}function Wp(e,t){var n=e.e,r=n%3==0?n:n<0?n-3-n%3:n-n%3,i=e.mul(10**-r).toPrecision(t);if(i.includes(`e`)){var a=e.constructor;i=new a(i).toFixed()}return i+`e`+(n>=0?`+`:``)+r.toString()}function Gp(e,t){return t===void 0?e.toExponential():e.toExponential(t-1)}function Kp(e,t){return e.toFixed(t)}function qp(e,t){return iu(e)?e:au(e)?e.toNumber():t}function Jp(e,t){var n=Yp(e,t);return t&&typeof t==`object`&&`truncate`in t&&n.length>t.truncate?n.substring(0,t.truncate-3)+`...`:n}function Yp(e,t){return typeof e==`number`?pd(e,t):au(e)?Up(e,t):$p(e)?!t||t.fraction!==`decimal`?e.s*e.n+`/`+e.d:e.toString():Array.isArray(e)?Qp(e,t):uu(e)?Xp(e):typeof e==`function`?e.syntax?String(e.syntax):`function`:e&&typeof e==`object`?typeof e.format==`function`?e.format(t):e&&e.toString(t)!=={}.toString()?e.toString(t):`{`+Object.keys(e).map(n=>Xp(n)+`: `+Jp(e[n],t)).join(`, `)+`}`:String(e)}function Xp(e){for(var t=String(e),n=``,r=0;r<t.length;){var i=t.charAt(r);n+=i in Zp?Zp[i]:i,r++}return`"`+n+`"`}var Zp={'"':`\\"`,"\\":`\\\\`,"\b":`\\b`,"\f":`\\f`,"\n":`\\n`,"\r":`\\r`," ":`\\t`};function Qp(e,t){if(Array.isArray(e)){for(var n=`[`,r=e.length,i=0;i<r;i++)i!==0&&(n+=`, `),n+=Qp(e[i],t);return n+=`]`,n}else return Jp(e,t)}function $p(e){return e&&typeof e==`object`&&typeof e.s==`number`&&typeof e.n==`number`&&typeof e.d==`number`||!1}function em(e,t,n){if(!(this instanceof em))throw SyntaxError(`Constructor must be called with the new operator`);this.actual=e,this.expected=t,this.relation=n,this.message=`Dimension mismatch (`+(Array.isArray(e)?`[`+e.join(`, `)+`]`:e)+` `+(this.relation||`!=`)+` `+(Array.isArray(t)?`[`+t.join(`, `)+`]`:t)+`)`,this.stack=Error().stack}em.prototype=RangeError(),em.prototype.constructor=RangeError,em.prototype.name=`DimensionError`,em.prototype.isDimensionError=!0;function tm(e,t,n){if(!(this instanceof tm))throw SyntaxError(`Constructor must be called with the new operator`);this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=n),this.min!==void 0&&this.index<this.min?this.message=`Index out of range (`+this.index+` < `+this.min+`)`:this.max!==void 0&&this.index>=this.max?this.message=`Index out of range (`+this.index+` > `+(this.max-1)+`)`:this.message=`Index out of range (`+this.index+`)`,this.stack=Error().stack}tm.prototype=RangeError(),tm.prototype.constructor=RangeError,tm.prototype.name=`IndexError`,tm.prototype.isIndexError=!0;function nm(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function rm(e,t,n){var r,i=e.length;if(i!==t[n])throw new em(i,t[n]);if(n<t.length-1){var a=n+1;for(r=0;r<i;r++){var o=e[r];if(!Array.isArray(o))throw new em(t.length-1,t.length,`<`);rm(e[r],t,a)}}else for(r=0;r<i;r++)if(Array.isArray(e[r]))throw new em(t.length+1,t.length,`>`)}function im(e,t){if(t.length===0){if(Array.isArray(e))throw new em(e.length,0)}else rm(e,t,0)}function am(e,t){if(e!==void 0){if(!iu(e)||!ad(e))throw TypeError(`Index must be an integer (value: `+e+`)`);if(e<0||typeof t==`number`&&e>=t)throw new tm(e,t)}}function om(e,t,n){if(!Array.isArray(t))throw TypeError(`Array expected`);if(t.length===0)throw Error(`Resizing to scalar is not supported`);return t.forEach(function(e){if(!iu(e)||!ad(e)||e<0)throw TypeError(`Invalid size, must contain positive integers (size: `+Jp(t)+`)`)}),(iu(e)||au(e))&&(e=[e]),sm(e,t,0,n===void 0?0:n),e}function sm(e,t,n,r){var i,a,o=e.length,s=t[n],c=Math.min(o,s);if(e.length=s,n<t.length-1){var l=n+1;for(i=0;i<c;i++)a=e[i],Array.isArray(a)||(a=[a],e[i]=a),sm(a,t,l,r);for(i=c;i<s;i++)a=[],e[i]=a,sm(a,t,l,r)}else{for(i=0;i<c;i++)for(;Array.isArray(e[i]);)e[i]=e[i][0];for(i=c;i<s;i++)e[i]=r}}function cm(e,t){var n=mm(e),r=n.length;if(!Array.isArray(e)||!Array.isArray(t))throw TypeError(`Array expected`);if(t.length===0)throw new em(0,r,`!=`);t=lm(t,r);var i=um(t);if(r!==i)throw new em(i,r,`!=`);try{return dm(n,t)}catch(e){throw e instanceof em?new em(i,r,`!=`):e}}function lm(e,t){var n=um(e),r=e.slice(),i=-1,a=e.indexOf(i);if(e.indexOf(i,a+1)>=0)throw Error(`More than one wildcard in sizes`);var o=a>=0,s=t%n===0;if(o)if(s)r[a]=-t/n;else throw Error(`Could not replace wildcard, since `+t+` is no multiple of `+-n);return r}function um(e){return e.reduce((e,t)=>e*t,1)}function dm(e,t){for(var n=e,r,i=t.length-1;i>0;i--){var a=t[i];r=[];for(var o=n.length/a,s=0;s<o;s++)r.push(n.slice(s*a,(s+1)*a));n=r}return n}function fm(e,t,n,r){var i=r||nm(e);if(n)for(var a=0;a<n;a++)e=[e],i.unshift(1);for(e=pm(e,t,0);i.length<t;)i.push(1);return e}function pm(e,t,n){var r,i;if(Array.isArray(e)){var a=n+1;for(r=0,i=e.length;r<i;r++)e[r]=pm(e[r],t,a)}else for(var o=n;o<t;o++)e=[e];return e}function mm(e){if(!Array.isArray(e))return e;var t=[];return e.forEach(function e(n){Array.isArray(n)?n.forEach(e):t.push(n)}),t}function hm(e,t){for(var n,r=0,i=0;i<e.length;i++){var a=e[i],o=Array.isArray(a);if(i===0&&o&&(r=a.length),o&&a.length!==r)return;var s=o?hm(a,t):t(a);if(n===void 0)n=s;else if(n!==s)return`mixed`}return n}function gm(e,t,n,r){if(r<n){if(e.length!==t.length)throw new em(e.length,t.length);for(var i=[],a=0;a<e.length;a++)i[a]=gm(e[a],t[a],n,r+1);return i}else return e.concat(t)}function _m(){var e=Array.prototype.slice.call(arguments,0,-1),t=Array.prototype.slice.call(arguments,-1);if(e.length===1)return e[0];if(e.length>1)return e.slice(1).reduce(function(e,n){return gm(e,n,t,0)},e[0]);throw Error(`Wrong number of arguments in function concat`)}function vm(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t.map(e=>e.length),i=Math.max(...r),a=Array(i).fill(null),o=0;o<t.length;o++)for(var s=t[o],c=r[o],l=0;l<c;l++){var u=i-c+l;s[l]>a[u]&&(a[u]=s[l])}for(var d=0;d<t.length;d++)ym(t[d],a);return a}function ym(e,t){for(var n=t.length,r=e.length,i=0;i<r;i++){var a=n-r+i;if(e[i]<t[a]&&e[i]>1||e[i]>t[a])throw Error(`shape missmatch: missmatch is found in arg with shape (${e}) not possible to broadcast dimension ${r} with size ${e[i]} to size ${t[a]}`)}}function bm(e,t){var n=nm(e);if(Yu(n,t))return e;ym(n,t);var r=vm(n,t),i=r.length,a=[...Array(i-n.length).fill(1),...n],o=Cm(e);n.length<i&&(o=cm(o,a),n=nm(o));for(var s=0;s<i;s++)n[s]<r[s]&&(o=xm(o,r[s],s),n=nm(o));return o}function xm(e,t,n){return _m(...Array(t).fill(e),n)}function Sm(e,t){if(!Array.isArray(e))throw Error(`Array expected`);var n=nm(e);if(t.length!==n.length)throw new em(t.length,n.length);for(var r=0;r<t.length;r++)am(t[r],n[r]);return t.reduce((e,t)=>e[t],e)}function Cm(e){return y([],e)}function wm(e,t,n){if(Ed.default.isTypedFunction(e)){var r=(t.isMatrix?t.size():nm(t)).map(()=>0),i=t.isMatrix?t.get(r):Sm(t,r),a=Object.keys(e.signatures).length===1,o=Tm(e,i,r,t),s=a?Object.values(e.signatures)[0]:e;return o>=1&&o<=3?function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return Em(s,r.slice(0,o),n,e.name)}:function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return Em(s,r,n,e.name)}}return e}function Tm(e,t,n,r){for(var i=[t,n,r],a=3;a>0;a--){var o=i.slice(0,a);if(Ed.default.resolve(e,o)!==null)return a}}function Em(e,t,n,r){try{return e(...t)}catch(e){Dm(e,t,n,r)}}function Dm(e,t,n,r){if(e instanceof TypeError&&e.data?.category===`wrongType`){var i=[];throw i.push(`value: ${Gu(t[0])}`),t.length>=2&&i.push(`index: ${Gu(t[1])}`),t.length>=3&&i.push(`array: ${Gu(t[2])}`),TypeError(`Function ${n} cannot apply callback arguments ${r}(${i.join(`, `)}) at index ${JSON.stringify(t[1])}`)}else throw TypeError(`Function ${n} cannot apply callback arguments to function ${r}: ${e.message}`)}var Om=W(`DenseMatrix`,[`Matrix`],e=>{var{Matrix:t}=e;function n(e,t){if(!(this instanceof n))throw SyntaxError(`Constructor must be called with the new operator`);if(t&&!uu(t))throw Error(`Invalid datatype: `+t);if(fu(e))e.type===`DenseMatrix`?(this._data=Ku(e._data),this._size=Ku(e._size),this._datatype=t||e._datatype):(this._data=e.toArray(),this._size=e.size(),this._datatype=t||e._datatype);else if(e&&du(e.data)&&du(e.size))this._data=e.data,this._size=e.size,im(this._data,this._size),this._datatype=t||e.datatype;else if(du(e))this._data=l(e),this._size=nm(this._data),im(this._data,this._size),this._datatype=t;else if(e)throw TypeError(`Unsupported type of data (`+Gu(e)+`)`);else this._data=[],this._size=[0],this._datatype=t}n.prototype=new t,n.prototype.createDenseMatrix=function(e,t){return new n(e,t)},Object.defineProperty(n,"name",{value:`DenseMatrix`}),n.prototype.constructor=n,n.prototype.type=`DenseMatrix`,n.prototype.isDenseMatrix=!0,n.prototype.getDataType=function(){return hm(this._data,Gu)},n.prototype.storage=function(){return`dense`},n.prototype.datatype=function(){return this._datatype},n.prototype.create=function(e,t){return new n(e,t)},n.prototype.subset=function(e,t,n){switch(arguments.length){case 1:return r(this,e);case 2:case 3:return a(this,e,t,n);default:throw SyntaxError(`Wrong number of arguments`)}},n.prototype.get=function(e){return Sm(this._data,e)},n.prototype.set=function(e,t,n){if(!du(e))throw TypeError(`Array expected`);if(e.length<this._size.length)throw new em(e.length,this._size.length,`<`);var r,i,a,o=e.map(function(e){return e+1});c(this,o,n);var s=this._data;for(r=0,i=e.length-1;r<i;r++)a=e[r],am(a,s.length),s=s[a];return a=e[e.length-1],am(a,s.length),s[a]=t,this};function r(e,t){if(!_u(t))throw TypeError(`Invalid index`);if(t.isScalar())return e.get(t.min());var r=t.size();if(r.length!==e._size.length)throw new em(r.length,e._size.length);for(var a=t.min(),o=t.max(),s=0,c=e._size.length;s<c;s++)am(a[s],e._size[s]),am(o[s],e._size[s]);return new n(i(e._data,t,r.length,0),e._datatype)}function i(e,t,n,r){var a=r===n-1,o=t.dimension(r);return a?o.map(function(t){return am(t,e.length),e[t]}).valueOf():o.map(function(a){am(a,e.length);var o=e[a];return i(o,t,n,r+1)}).valueOf()}function a(e,t,n,r){if(!t||t.isIndex!==!0)throw TypeError(`Invalid index`);var i=t.size(),a=t.isScalar(),s;if(fu(n)?(s=n.size(),n=n.valueOf()):s=nm(n),a){if(s.length!==0)throw TypeError(`Scalar expected`);e.set(t.min(),n,r)}else{if(!Yu(s,i))try{n=s.length===0?bm([n],i):bm(n,i),s=nm(n)}catch{}if(i.length<e._size.length)throw new em(i.length,e._size.length,`<`);if(s.length<i.length){for(var l=0,u=0;i[l]===1&&s[l]===1;)l++;for(;i[l]===1;)u++,l++;n=fm(n,i.length,u,s)}if(!Yu(i,s))throw new em(i,s,`>`);c(e,t.max().map(function(e){return e+1}),r);var d=i.length;o(e._data,t,n,d,0)}return e}function o(e,t,n,r,i){var a=i===r-1,s=t.dimension(i);a?s.forEach(function(t,r){am(t),e[t]=n[r[0]]}):s.forEach(function(a,s){am(a),o(e[a],t,n[s[0]],r,i+1)})}n.prototype.resize=function(e,t,n){if(!pu(e))throw TypeError(`Array or Matrix expected`);var r=e.valueOf().map(e=>Array.isArray(e)&&e.length===1?e[0]:e);return s(n?this.clone():this,r,t)};function s(e,t,n){if(t.length===0){for(var r=e._data;du(r);)r=r[0];return r}return e._size=t.slice(0),e._data=om(e._data,e._size,n),e}n.prototype.reshape=function(e,t){var n=t?this.clone():this;return n._data=cm(n._data,e),n._size=lm(e,n._size.reduce((e,t)=>e*t)),n};function c(e,t,n){for(var r=e._size.slice(0),i=!1;r.length<t.length;)r.push(0),i=!0;for(var a=0,o=t.length;a<o;a++)t[a]>r[a]&&(r[a]=t[a],i=!0);i&&s(e,r,n)}n.prototype.clone=function(){return new n({data:Ku(this._data),size:Ku(this._size),datatype:this._datatype})},n.prototype.size=function(){return this._size.slice(0)},n.prototype._forEach=function(e){var t=this,n=t.size();if(n.length===1){for(var r=0;r<n[0];r++)e(t._data,r,[r]);return}var i=Array(n.length).fill(0),a=Array(n.length-1),o=a.length-1;a[0]=t._data[0];for(var s=0;s<o;s++)a[s+1]=a[s][0];for(i[o]=-1;;){var c=void 0;for(c=o;c>=0;c--){if(i[c]++,i[c]===n[c]){i[c]=0;continue}a[c]=c===0?t._data[i[c]]:a[c-1][i[c]];for(var l=c;l<o;l++)a[l+1]=a[l][0];for(var u=0;u<n[a.length];u++)i[a.length]=u,e(a[o],u,i.slice(0));break}if(c===-1)break}},n.prototype.map=function(e){var t=this,r=new n(t),i=wm(e,t._data,`map`);return r._forEach(function(e,n,r){e[n]=i(e[n],r,t)}),r},n.prototype.forEach=function(e){var t=this,n=wm(e,t._data,`map`);t._forEach(function(e,r,i){n(e[r],i,t)})},n.prototype[Symbol.iterator]=function*(){var e=function*(t,n){if(du(t))for(var r=0;r<t.length;r++)yield*e(t[r],n.concat(r));else yield{value:t,index:n}};yield*e(this._data,[])},n.prototype.rows=function(){var e=[];if(this.size().length!==2)throw TypeError(`Rows can only be returned for a 2D matrix.`);for(var t of this._data)e.push(new n([t],this._datatype));return e},n.prototype.columns=function(){var e=this,t=[],r=this.size();if(r.length!==2)throw TypeError(`Rows can only be returned for a 2D matrix.`);for(var i=this._data,a=function(r){var a=i.map(e=>[e[r]]);t.push(new n(a,e._datatype))},o=0;o<r[1];o++)a(o);return t},n.prototype.toArray=function(){return Ku(this._data)},n.prototype.valueOf=function(){return this._data},n.prototype.format=function(e){return Jp(this._data,e)},n.prototype.toString=function(){return Jp(this._data)},n.prototype.toJSON=function(){return{mathjs:`DenseMatrix`,data:this._data,size:this._size,datatype:this._datatype}},n.prototype.diagonal=function(e){if(e){if(au(e)&&(e=e.toNumber()),!iu(e)||!ad(e))throw TypeError(`The parameter k must be an integer number`)}else e=0;for(var t=e>0?e:0,r=e<0?-e:0,i=this._size[0],a=this._size[1],o=Math.min(i-r,a-t),s=[],c=0;c<o;c++)s[c]=this._data[c+r][c+t];return new n({data:s,size:[o],datatype:this._datatype})},n.diagonal=function(e,t,r,i){if(!du(e))throw TypeError(`Array expected, size parameter`);if(e.length!==2)throw Error(`Only two dimensions matrix are supported`);if(e=e.map(function(e){if(au(e)&&(e=e.toNumber()),!iu(e)||!ad(e)||e<1)throw Error(`Size values must be positive integers`);return e}),r){if(au(r)&&(r=r.toNumber()),!iu(r)||!ad(r))throw TypeError(`The parameter k must be an integer number`)}else r=0;var a=r>0?r:0,o=r<0?-r:0,s=e[0],c=e[1],l=Math.min(s-o,c-a),u;if(du(t)){if(t.length!==l)throw Error(`Invalid value array length`);u=function(e){return t[e]}}else if(fu(t)){var d=t.size();if(d.length!==1||d[0]!==l)throw Error(`Invalid matrix length`);u=function(e){return t.get([e])}}else u=function(){return t};i||=au(u(0))?u(0).mul(0):0;var f=[];if(e.length>0){f=om(f,e,i);for(var p=0;p<l;p++)f[p+o][p+a]=u(p)}return new n({data:f,size:[s,c]})},n.fromJSON=function(e){return new n(e)},n.prototype.swapRows=function(e,t){if(!iu(e)||!ad(e)||!iu(t)||!ad(t))throw Error(`Row index must be positive integers`);if(this._size.length!==2)throw Error(`Only two dimensional matrix is supported`);return am(e,this._size[0]),am(t,this._size[0]),n._swapRows(e,t,this._data),this},n._swapRows=function(e,t,n){var r=n[e];n[e]=n[t],n[t]=r};function l(e){return fu(e)?l(e.valueOf()):du(e)?e.map(l):e}return n},{isClass:!0});function km(e,t,n){return e&&typeof e.map==`function`?e.map(function(e){return km(e,t,n)}):t(e)}var Am=`isInteger`,jm=W(Am,[`typed`],e=>{var{typed:t}=e;return t(Am,{number:ad,BigNumber:function(e){return e.isInt()},bigint:function(e){return!0},Fraction:function(e){return e.d===1&&isFinite(e.n)},"Array | Matrix":t.referToSelf(e=>t=>km(t,e))})}),Mm=`number`,Nm=`number, number`;function Pm(e){return Math.abs(e)}Pm.signature=Mm;function Fm(e,t){return e+t}Fm.signature=Nm;function Im(e,t){return e-t}Im.signature=Nm;function Lm(e,t){return e*t}Lm.signature=Nm;function Rm(e,t){return e/t}Rm.signature=Nm;function zm(e){return-e}zm.signature=Mm;function Bm(e){return e}Bm.signature=Mm;function Vm(e){return ud(e)}Vm.signature=Mm;function Hm(e){return e*e*e}Hm.signature=Mm;function Um(e){return Math.exp(e)}Um.signature=Mm;function Wm(e){return dd(e)}Wm.signature=Mm;function Gm(e,t){if(!ad(e)||!ad(t))throw Error(`Parameters in function gcd must be integer numbers`);for(var n;t!==0;)n=e%t,e=t,t=n;return e<0?-e:e}Gm.signature=Nm;function Km(e,t){if(!ad(e)||!ad(t))throw Error(`Parameters in function lcm must be integer numbers`);if(e===0||t===0)return 0;for(var n,r=e*t;t!==0;)n=t,t=e%n,e=n;return Math.abs(r/e)}Km.signature=Nm;function qm(e){return cd(e)}qm.signature=Mm;function Jm(e){return sd(e)}Jm.signature=Mm;function Ym(e){return ld(e)}Ym.signature=Mm;function Xm(e,t){return t===0?e:e-t*Math.floor(e/t)}Xm.signature=Nm;function Zm(e){return od(e)}Zm.signature=Mm;function Qm(e){return Math.sqrt(e)}Qm.signature=Mm;function $m(e){return e*e}$m.signature=Mm;function eh(e,t){var n,r,i,a=0,o=1,s=1,c=0;if(!ad(e)||!ad(t))throw Error(`Parameters in function xgcd must be integer numbers`);for(;t;)r=Math.floor(e/t),i=e-r*t,n=a,a=o-r*a,o=n,n=s,s=c-r*s,c=n,e=t,t=i;return e<0?[-e,-o,-c]:[e,e?o:0,c]}eh.signature=Nm;function th(e,t){return e*e<1&&t===1/0||e*e>1&&t===-1/0?0:e**+t}th.signature=Nm;function nh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!ad(t)||t<0||t>15)throw Error(`Number of decimals in function round must be an integer from 0 to 15 inclusive`);return parseFloat(_d(e,t))}function rh(e){return Math.abs(e)}rh.signature=Mm;function ih(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e-9,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(n<=0)throw Error(`Relative tolerance must be greater than 0`);if(r<0)throw Error(`Absolute tolerance must be at least 0`);return e.isNaN()||t.isNaN()?!1:!e.isFinite()||!t.isFinite()?e.eq(t):e.eq(t)?!0:e.minus(t).abs().lte(e.constructor.max(e.constructor.max(e.abs(),t.abs()).mul(n),r))}var ah=`isZero`,oh=W(ah,[`typed`,`equalScalar`],e=>{var{typed:t,equalScalar:n}=e;return t(ah,{"number | BigNumber | Complex | Fraction":e=>n(e,0),bigint:e=>e===0n,Unit:t.referToSelf(e=>n=>t.find(e,n.valueType())(n.value)),"Array | Matrix":t.referToSelf(e=>t=>km(t,e))})});function sh(e,t,n,r){return Cd(e.re,t.re,n,r)&&Cd(e.im,t.im,n,r)}var ch=W(`compareUnits`,[`typed`],e=>{var{typed:t}=e;return{"Unit, Unit":t.referToSelf(e=>(n,r)=>{if(!n.equalBase(r))throw Error(`Cannot compare units with different base`);return t.find(e,[n.valueType(),r.valueType()])(n.value,r.value)})}}),lh=`equalScalar`,uh=W(lh,[`typed`,`config`],e=>{var{typed:t,config:n}=e;return t(lh,{"boolean, boolean":function(e,t){return e===t},"number, number":function(e,t){return Cd(e,t,n.relTol,n.absTol)},"BigNumber, BigNumber":function(e,t){return e.eq(t)||ih(e,t,n.relTol,n.absTol)},"bigint, bigint":function(e,t){return e===t},"Fraction, Fraction":function(e,t){return e.equals(t)},"Complex, Complex":function(e,t){return sh(e,t,n.relTol,n.absTol)}},ch({typed:t}))});W(lh,[`typed`,`config`],e=>{var{typed:t,config:n}=e;return t(lh,{"number, number":function(e,t){return Cd(e,t,n.relTol,n.absTol)}})});var dh=W(`SparseMatrix`,[`typed`,`equalScalar`,`Matrix`],e=>{var{typed:t,equalScalar:n,Matrix:r}=e;function i(e,t){if(!(this instanceof i))throw SyntaxError(`Constructor must be called with the new operator`);if(t&&!uu(t))throw Error(`Invalid datatype: `+t);if(fu(e))a(this,e,t);else if(e&&du(e.index)&&du(e.ptr)&&du(e.size))this._values=e.values,this._index=e.index,this._ptr=e.ptr,this._size=e.size,this._datatype=t||e.datatype;else if(du(e))o(this,e,t);else if(e)throw TypeError(`Unsupported type of data (`+Gu(e)+`)`);else this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=t}function a(e,t,n){t.type===`SparseMatrix`?(e._values=t._values?Ku(t._values):void 0,e._index=Ku(t._index),e._ptr=Ku(t._ptr),e._size=Ku(t._size),e._datatype=n||t._datatype):o(e,t.valueOf(),n||t._datatype)}function o(e,r,i){e._values=[],e._index=[],e._ptr=[],e._datatype=i;var a=r.length,o=0,s=n,c=0;if(uu(i)&&(s=t.find(n,[i,i])||n,c=t.convert(0,i)),a>0){var l=0;do{e._ptr.push(e._index.length);for(var u=0;u<a;u++){var d=r[u];if(du(d)){if(l===0&&o<d.length&&(o=d.length),l<d.length){var f=d[l];s(f,c)||(e._values.push(f),e._index.push(u))}}else l===0&&o<1&&(o=1),s(d,c)||(e._values.push(d),e._index.push(u))}l++}while(l<o)}e._ptr.push(e._index.length),e._size=[a,o]}i.prototype=new r,i.prototype.createSparseMatrix=function(e,t){return new i(e,t)},Object.defineProperty(i,"name",{value:`SparseMatrix`}),i.prototype.constructor=i,i.prototype.type=`SparseMatrix`,i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return hm(this._values,Gu)},i.prototype.storage=function(){return`sparse`},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(e,t){return new i(e,t)},i.prototype.density=function(){var e=this._size[0],t=this._size[1];return e!==0&&t!==0?this._index.length/(e*t):0},i.prototype.subset=function(e,t,n){if(!this._values)throw Error(`Cannot invoke subset on a Pattern only matrix`);switch(arguments.length){case 1:return s(this,e);case 2:case 3:return c(this,e,t,n);default:throw SyntaxError(`Wrong number of arguments`)}};function s(e,t){if(!_u(t))throw TypeError(`Invalid index`);if(t.isScalar())return e.get(t.min());var n=t.size();if(n.length!==e._size.length)throw new em(n.length,e._size.length);var r,a,o,s,c=t.min(),l=t.max();for(r=0,a=e._size.length;r<a;r++)am(c[r],e._size[r]),am(l[r],e._size[r]);var u=e._values,d=e._index,f=e._ptr,p=t.dimension(0),m=t.dimension(1),h=[],g=[];p.forEach(function(e,t){g[e]=t[0],h[e]=!0});var _=u?[]:void 0,v=[],y=[];return m.forEach(function(e){for(y.push(v.length),o=f[e],s=f[e+1];o<s;o++)r=d[o],h[r]===!0&&(v.push(g[r]),_&&_.push(u[o]))}),y.push(v.length),new i({values:_,index:v,ptr:y,size:n,datatype:e._datatype})}function c(e,t,n,r){if(!t||t.isIndex!==!0)throw TypeError(`Invalid index`);var i=t.size(),a=t.isScalar(),o;if(fu(n)?(o=n.size(),n=n.toArray()):o=nm(n),a){if(o.length!==0)throw TypeError(`Scalar expected`);e.set(t.min(),n,r)}else{if(i.length!==1&&i.length!==2)throw new em(i.length,e._size.length,`<`);if(o.length<i.length){for(var s=0,c=0;i[s]===1&&o[s]===1;)s++;for(;i[s]===1;)c++,s++;n=fm(n,i.length,c,o)}if(!Yu(i,o))throw new em(i,o,`>`);if(i.length===1)t.dimension(0).forEach(function(t,i){am(t),e.set([t,0],n[i[0]],r)});else{var l=t.dimension(0),u=t.dimension(1);l.forEach(function(t,i){am(t),u.forEach(function(a,o){am(a),e.set([t,a],n[i[0]][o[0]],r)})})}}return e}i.prototype.get=function(e){if(!du(e))throw TypeError(`Array expected`);if(e.length!==this._size.length)throw new em(e.length,this._size.length);if(!this._values)throw Error(`Cannot invoke get on a Pattern only matrix`);var t=e[0],n=e[1];am(t,this._size[0]),am(n,this._size[1]);var r=l(t,this._ptr[n],this._ptr[n+1],this._index);return r<this._ptr[n+1]&&this._index[r]===t?this._values[r]:0},i.prototype.set=function(e,r,i){if(!du(e))throw TypeError(`Array expected`);if(e.length!==this._size.length)throw new em(e.length,this._size.length);if(!this._values)throw Error(`Cannot invoke set on a Pattern only matrix`);var a=e[0],o=e[1],s=this._size[0],c=this._size[1],p=n,m=0;uu(this._datatype)&&(p=t.find(n,[this._datatype,this._datatype])||n,m=t.convert(0,this._datatype)),(a>s-1||o>c-1)&&(f(this,Math.max(a+1,s),Math.max(o+1,c),i),s=this._size[0],c=this._size[1]),am(a,s),am(o,c);var h=l(a,this._ptr[o],this._ptr[o+1],this._index);return h<this._ptr[o+1]&&this._index[h]===a?p(r,m)?u(h,o,this._values,this._index,this._ptr):this._values[h]=r:p(r,m)||d(h,a,o,r,this._values,this._index,this._ptr),this};function l(e,t,n,r){if(n-t===0)return n;for(var i=t;i<n;i++)if(r[i]===e)return i;return t}function u(e,t,n,r,i){n.splice(e,1),r.splice(e,1);for(var a=t+1;a<i.length;a++)i[a]--}function d(e,t,n,r,i,a,o){i.splice(e,0,r),a.splice(e,0,t);for(var s=n+1;s<o.length;s++)o[s]++}i.prototype.resize=function(e,t,n){if(!pu(e))throw TypeError(`Array or Matrix expected`);var r=e.valueOf().map(e=>Array.isArray(e)&&e.length===1?e[0]:e);if(r.length!==2)throw Error(`Only two dimensions matrix are supported`);return r.forEach(function(e){if(!iu(e)||!ad(e)||e<0)throw TypeError(`Invalid size, must contain positive integers (size: `+Jp(r)+`)`)}),f(n?this.clone():this,r[0],r[1],t)};function f(e,r,i,a){var o=a||0,s=n,c=0;uu(e._datatype)&&(s=t.find(n,[e._datatype,e._datatype])||n,c=t.convert(0,e._datatype),o=t.convert(o,e._datatype));var l=!s(o,c),u=e._size[0],d=e._size[1],f,p,m;if(i>d){for(p=d;p<i;p++)if(e._ptr[p]=e._values.length,l)for(f=0;f<u;f++)e._values.push(o),e._index.push(f);e._ptr[i]=e._values.length}else i<d&&(e._ptr.splice(i+1,d-i),e._values.splice(e._ptr[i],e._values.length),e._index.splice(e._ptr[i],e._index.length));if(d=i,r>u){if(l){var h=0;for(p=0;p<d;p++){e._ptr[p]=e._ptr[p]+h,m=e._ptr[p+1]+h;var g=0;for(f=u;f<r;f++,g++)e._values.splice(m+g,0,o),e._index.splice(m+g,0,f),h++}e._ptr[d]=e._values.length}}else if(r<u){var _=0;for(p=0;p<d;p++){e._ptr[p]=e._ptr[p]-_;var v=e._ptr[p],y=e._ptr[p+1]-_;for(m=v;m<y;m++)f=e._index[m],f>r-1&&(e._values.splice(m,1),e._index.splice(m,1),_++)}e._ptr[p]=e._values.length}return e._size[0]=r,e._size[1]=i,e}i.prototype.reshape=function(e,t){if(!du(e))throw TypeError(`Array expected`);if(e.length!==2)throw Error(`Sparse matrices can only be reshaped in two dimensions`);e.forEach(function(t){if(!iu(t)||!ad(t)||t<=-2||t===0)throw TypeError(`Invalid size, must contain positive integers or -1 (size: `+Jp(e)+`)`)});var n=this._size[0]*this._size[1];if(e=lm(e,n),n!==e[0]*e[1])throw Error(`Reshaping sparse matrix will result in the wrong number of elements`);var r=t?this.clone():this;if(this._size[0]===e[0]&&this._size[1]===e[1])return r;for(var i=[],a=0;a<r._ptr.length;a++)for(var o=0;o<r._ptr[a+1]-r._ptr[a];o++)i.push(a);for(var s=r._values.slice(),c=r._index.slice(),u=0;u<r._index.length;u++){var f=c[u],p=i[u],m=f*r._size[1]+p;i[u]=m%e[1],c[u]=Math.floor(m/e[1])}r._values.length=0,r._index.length=0,r._ptr.length=e[1]+1,r._size=e.slice();for(var h=0;h<r._ptr.length;h++)r._ptr[h]=0;for(var g=0;g<s.length;g++){var _=c[g],v=i[g],y=s[g];d(l(_,r._ptr[v],r._ptr[v+1],r._index),_,v,y,r._values,r._index,r._ptr)}return r},i.prototype.clone=function(){return new i({values:this._values?Ku(this._values):void 0,index:Ku(this._index),ptr:Ku(this._ptr),size:Ku(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(e,t){if(!this._values)throw Error(`Cannot invoke map on a Pattern only matrix`);var n=this,r=this._size[0],i=this._size[1],a=wm(e,n,`map`);return p(this,0,r-1,0,i-1,function(e,t,r){return a(e,[t,r],n)},t)};function p(e,r,a,o,s,c,l){var u=[],d=[],f=[],p=n,m=0;uu(e._datatype)&&(p=t.find(n,[e._datatype,e._datatype])||n,m=t.convert(0,e._datatype));for(var h=function(e,t,n){var r=c(e,t,n);p(r,m)||(u.push(r),d.push(t))},g=o;g<=s;g++){f.push(u.length);var _=e._ptr[g],v=e._ptr[g+1];if(l)for(var y=_;y<v;y++){var b=e._index[y];b>=r&&b<=a&&h(e._values[y],b-r,g-o)}else{for(var x={},S=_;S<v;S++){var C=e._index[S];x[C]=e._values[S]}for(var w=r;w<=a;w++)h(w in x?x[w]:0,w-r,g-o)}}return f.push(u.length),new i({values:u,index:d,ptr:f,size:[a-r+1,s-o+1]})}i.prototype.forEach=function(e,t){if(!this._values)throw Error(`Cannot invoke forEach on a Pattern only matrix`);for(var n=this,r=this._size[0],i=this._size[1],a=wm(e,n,`forEach`),o=0;o<i;o++){var s=this._ptr[o],c=this._ptr[o+1];if(t)for(var l=s;l<c;l++){var u=this._index[l];a(this._values[l],[u,o],n)}else{for(var d={},f=s;f<c;f++){var p=this._index[f];d[p]=this._values[f]}for(var m=0;m<r;m++)a(m in d?d[m]:0,[m,o],n)}}},i.prototype[Symbol.iterator]=function*(){if(!this._values)throw Error(`Cannot iterate a Pattern only matrix`);for(var e=this._size[1],t=0;t<e;t++)for(var n=this._ptr[t],r=this._ptr[t+1],i=n;i<r;i++){var a=this._index[i];yield{value:this._values[i],index:[a,t]}}},i.prototype.toArray=function(){return m(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return m(this._values,this._index,this._ptr,this._size,!1)};function m(e,t,n,r,i){var a=r[0],o=r[1],s=[],c,l;for(c=0;c<a;c++)for(s[c]=[],l=0;l<o;l++)s[c][l]=0;for(l=0;l<o;l++)for(var u=n[l],d=n[l+1],f=u;f<d;f++)c=t[f],s[c][l]=e?i?Ku(e[f]):e[f]:1;return s}return i.prototype.format=function(e){for(var t=this._size[0],n=this._size[1],r=this.density(),i=`Sparse Matrix [`+Jp(t,e)+` x `+Jp(n,e)+`] density: `+Jp(r,e)+`
|
|
150
|
+
`);return Object.freeze(Xl)};y(nd,Xl,{MATRIX_OPTIONS:ed,NUMBER_OPTIONS:td});var rd=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.typed=r())})(e,(function(){"use strict";function e(){return!0}function t(){return!1}function n(){}let r=`Argument is not a typed-function.`;function i(){function a(e){return typeof e==`object`&&!!e&&e.constructor===Object}let o=[{name:`number`,test:function(e){return typeof e==`number`}},{name:`string`,test:function(e){return typeof e==`string`}},{name:`boolean`,test:function(e){return typeof e==`boolean`}},{name:`Function`,test:function(e){return typeof e==`function`}},{name:`Array`,test:Array.isArray},{name:`Date`,test:function(e){return e instanceof Date}},{name:`RegExp`,test:function(e){return e instanceof RegExp}},{name:`Object`,test:a},{name:`null`,test:function(e){return e===null}},{name:`undefined`,test:function(e){return e===void 0}}],s={name:`any`,test:e,isAny:!0},c,l,u=0,d={createCount:0};function f(e){let t=c.get(e);if(t)return t;let n=`Unknown type "`+e+`"`,r=e.toLowerCase(),i;for(i of l)if(i.toLowerCase()===r){n+=`. Did you mean "`+i+`" ?`;break}throw TypeError(n)}function p(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`any`,n=t?f(t).index:l.length,r=[];for(let t=0;t<e.length;++t){if(!e[t]||typeof e[t].name!=`string`||typeof e[t].test!=`function`)throw TypeError(`Object with properties {name: string, test: function} expected`);let i=e[t].name;if(c.has(i))throw TypeError(`Duplicate type name "`+i+`"`);r.push(i),c.set(i,{name:i,test:e[t].test,isAny:e[t].isAny,index:n+t,conversionsTo:[]})}let i=l.slice(n);l=l.slice(0,n).concat(r).concat(i);for(let e=n+r.length;e<l.length;++e)c.get(l[e]).index=e}function m(){c=new Map,l=[],u=0,p([s],!1)}m(),p(o);function h(){let e;for(e of l)c.get(e).conversionsTo=[];u=0}function g(e){let t=l.filter(t=>{let n=c.get(t);return!n.isAny&&n.test(e)});return t.length?t:[`any`]}function _(e){return e&&typeof e==`function`&&`_typedFunctionData`in e}function v(e,t,n){if(!_(e))throw TypeError(r);let i=n&&n.exact,a=T(Array.isArray(t)?t.join(`,`):t),o=x(a);if(!i||o in e.signatures){let t=e._typedFunctionData.signatureMap.get(o);if(t)return t}let s=a.length,c;if(i){c=[];let t;for(t in e.signatures)c.push(e._typedFunctionData.signatureMap.get(t))}else c=e._typedFunctionData.signatures;for(let e=0;e<s;++e){let t=a[e],n=[],r;for(r of c){let i=k(r.params,e);if(!(!i||t.restParam&&!i.restParam)){if(!i.hasAny){let e=w(i);if(t.types.some(t=>!e.has(t.name)))continue}n.push(r)}}if(c=n,c.length===0)break}let l;for(l of c)if(l.params.length<=s)return l;throw TypeError(`Signature not found (signature: `+(e.name||`unnamed`)+`(`+x(a,`, `)+`))`)}function y(e,t,n){return v(e,t,n).implementation}function b(e,t){let n=f(t);if(n.test(e))return e;let r=n.conversionsTo;if(r.length===0)throw Error(`There are no conversions to `+t+` defined.`);for(let t=0;t<r.length;t++)if(f(r[t].from).test(e))return r[t].convert(e);throw Error(`Cannot convert `+e+` to `+t)}function x(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`,`;return e.map(e=>e.name).join(t)}function S(e){let t=e.indexOf(`...`)===0,n=(t?e.length>3?e.slice(3):`any`:e).split(`|`).map(e=>f(e.trim())),r=!1,i=t?`...`:``;return{types:n.map(function(e){return r=e.isAny||r,i+=e.name+`|`,{name:e.name,typeIndex:e.index,test:e.test,isAny:e.isAny,conversion:null,conversionIndex:-1}}),name:i.slice(0,-1),hasAny:r,hasConversion:!1,restParam:t}}function C(e){let t=F(e.types.map(e=>e.name)),n=e.hasAny,r=e.name,i=t.map(function(e){let t=f(e.from);return n=t.isAny||n,r+=`|`+e.from,{name:e.from,typeIndex:t.index,test:t.test,isAny:t.isAny,conversion:e,conversionIndex:e.index}});return{types:e.types.concat(i),name:r,hasAny:n,hasConversion:i.length>0,restParam:e.restParam}}function w(e){return e.typeSet||(e.typeSet=new Set,e.types.forEach(t=>e.typeSet.add(t.name))),e.typeSet}function T(e){let t=[];if(typeof e!=`string`)throw TypeError(`Signatures must be strings`);let n=e.trim();if(n===``)return t;let r=n.split(`,`);for(let e=0;e<r.length;++e){let n=S(r[e].trim());if(n.restParam&&e!==r.length-1)throw SyntaxError(`Unexpected rest parameter "`+r[e]+`": only allowed for the last parameter`);if(n.types.length===0)return null;t.push(n)}return t}function E(e){let t=pe(e);return t?t.restParam:!1}function D(t){if(!t||t.types.length===0)return e;if(t.types.length===1)return f(t.types[0].name).test;if(t.types.length===2){let e=f(t.types[0].name).test,n=f(t.types[1].name).test;return function(t){return e(t)||n(t)}}else{let e=t.types.map(function(e){return f(e.name).test});return function(t){for(let n=0;n<e.length;n++)if(e[n](t))return!0;return!1}}}function O(e){let t,n,r;if(E(e)){t=fe(e).map(D);let n=t.length,r=D(pe(e)),i=function(e){for(let t=n;t<e.length;t++)if(!r(e[t]))return!1;return!0};return function(e){for(let n=0;n<t.length;n++)if(!t[n](e[n]))return!1;return i(e)&&e.length>=n+1}}else if(e.length===0)return function(e){return e.length===0};else if(e.length===1)return n=D(e[0]),function(e){return n(e[0])&&e.length===1};else if(e.length===2)return n=D(e[0]),r=D(e[1]),function(e){return n(e[0])&&r(e[1])&&e.length===2};else return t=e.map(D),function(e){for(let n=0;n<t.length;n++)if(!t[n](e[n]))return!1;return e.length===t.length}}function k(e,t){return t<e.length?e[t]:E(e)?pe(e):null}function A(e,t){let n=k(e,t);return n?w(n):new Set}function j(e){return e.conversion===null||e.conversion===void 0}function M(e,t){let n=new Set;return e.forEach(e=>{let r=A(e.params,t),i;for(i of r)n.add(i)}),n.has(`any`)?[`any`]:Array.from(n)}function N(e,t,n){let r,i,a=e||`unnamed`,o=n,s;for(s=0;s<t.length;s++){let e=[];if(o.forEach(n=>{let r=D(k(n.params,s));(s<n.params.length||E(n.params))&&r(t[s])&&e.push(n)}),e.length===0){if(i=M(o,s),i.length>0){let e=g(t[s]);return r=TypeError(`Unexpected type of argument in function `+a+` (expected: `+i.join(` or `)+`, actual: `+e.join(` | `)+`, index: `+s+`)`),r.data={category:`wrongType`,fn:a,index:s,actual:e,expected:i},r}}else o=e}let c=o.map(function(e){return E(e.params)?1/0:e.params.length});if(t.length<Math.min.apply(null,c))return i=M(o,s),r=TypeError(`Too few arguments in function `+a+` (expected: `+i.join(` or `)+`, index: `+t.length+`)`),r.data={category:`tooFewArgs`,fn:a,index:t.length,expected:i},r;let l=Math.max.apply(null,c);if(t.length>l)return r=TypeError(`Too many arguments in function `+a+` (expected: `+l+`, actual: `+t.length+`)`),r.data={category:`tooManyArgs`,fn:a,index:t.length,expectedLength:l},r;let u=[];for(let e=0;e<t.length;++e)u.push(g(t[e]).join(`|`));return r=TypeError(`Arguments of type "`+u.join(`, `)+`" do not match any of the defined signatures of function `+a+`.`),r.data={category:`mismatch`,actual:u},r}function P(e){let t=l.length+1;for(let n=0;n<e.types.length;n++)t=Math.min(t,e.types[n].typeIndex);return t}function ee(e){let t=u+1;for(let n=0;n<e.types.length;n++)j(e.types[n])||(t=Math.min(t,e.types[n].conversionIndex));return t}function te(e,t){if(e.hasAny){if(!t.hasAny)return .1}else if(t.hasAny)return-.1;if(e.restParam){if(!t.restParam)return .01}else if(t.restParam)return-.01;let n=P(e)-P(t);if(n<0)return-.001;if(n>0)return .001;let r=ee(e),i=ee(t);if(e.hasConversion){if(!t.hasConversion)return(1+r)*1e-6}else if(t.hasConversion)return-(1+i)*1e-6;let a=r-i;return a<0?-1e-7:a>0?1e-7:0}function ne(e,t){let n=e.params,r=t.params,i=pe(n),a=pe(r),o=E(n),s=E(r);if(o&&i.hasAny){if(!s||!a.hasAny)return 1e7}else if(s&&a.hasAny)return-1e7;let c=0,l=0,u;for(u of n)u.hasAny&&++c,u.hasConversion&&++l;let d=0,f=0;for(u of r)u.hasAny&&++d,u.hasConversion&&++f;if(c!==d)return(c-d)*1e6;if(o&&i.hasConversion){if(!s||!a.hasConversion)return 1e5}else if(s&&a.hasConversion)return-1e5;if(l!==f)return(l-f)*1e4;if(o){if(!s)return 1e3}else if(s)return-1e3;let p=(n.length-r.length)*(o?-100:100);if(p!==0)return p;let m=[],h=0;for(let e=0;e<n.length;++e){let t=te(n[e],r[e]);m.push(t),h+=t}if(h!==0)return(h<0?-10:10)+h;let g,_=9,v=_/(m.length+1);for(g of m){if(g!==0)return(g<0?-_:_)+g;_-=v}return 0}function F(e){if(e.length===0)return[];let t=e.map(f);if(e.length===1)return t[0].conversionsTo;let n=new Set(e),r=new Set;for(let e=0;e<t.length;++e)for(let i of t[e].conversionsTo)n.has(i.from)||r.add(i.from);let i=[];for(let e of r){let n=u+1,r=null;for(let i=0;i<t.length;++i)for(let a of t[i].conversionsTo)a.from===e&&a.index<n&&(n=a.index,r=a);i.push(r)}return i}function re(e,t){let n=t,r=``;if(e.some(e=>e.hasConversion)){let i=E(e),a=e.map(I);r=a.map(e=>e.name).join(`;`),n=function(){let e=[],n=i?arguments.length-1:arguments.length;for(let t=0;t<n;t++)e[t]=a[t](arguments[t]);return i&&(e[n]=arguments[n].map(a[n])),t.apply(this,e)}}let i=n;if(E(e)){let t=e.length-1;i=function(){return n.apply(this,me(arguments,0,t).concat([me(arguments,t)]))}}return r&&Object.defineProperty(i,"name",{value:r}),i}function I(e){let t,n,r,i,a=[],o=[],s=``;e.types.forEach(function(e){e.conversion&&(s+=e.conversion.from+`~>`+e.conversion.to+`,`,a.push(f(e.conversion.from).test),o.push(e.conversion.convert))}),s=s?s.slice(0,-1):`pass`;let c=e=>e;switch(o.length){case 0:break;case 1:t=a[0],r=o[0],c=function(e){return t(e)?r(e):e};break;case 2:t=a[0],n=a[1],r=o[0],i=o[1],c=function(e){return t(e)?r(e):n(e)?i(e):e};break;default:c=function(e){for(let t=0;t<o.length;t++)if(a[t](e))return o[t](e);return e}}return Object.defineProperty(c,"name",{value:s}),c}function ie(e){function t(e,n,r){if(n<e.length){let i=e[n],a=[];if(i.restParam){let e=i.types.filter(j);e.length<i.types.length&&a.push({types:e,name:`...`+e.map(e=>e.name).join(`|`),hasAny:e.some(e=>e.isAny),hasConversion:!1,restParam:!0}),a.push(i)}else a=i.types.map(function(e){return{types:[e],name:e.name,hasAny:e.isAny,hasConversion:e.conversion,restParam:!1}});return ge(a,function(i){return t(e,n+1,r.concat([i]))})}else return[r]}return t(e,0,[])}function ae(e,t){let n=Math.max(e.length,t.length);for(let r=0;r<n;r++){let n=A(e,r),i=A(t,r),a=!1,o;for(o of i)if(n.has(o)){a=!0;break}if(!a)return!1}let r=e.length,i=t.length,a=E(e),o=E(t);return a?o?r===i:i>=r:o?r>=i:r===i}function oe(e){return e.map(e=>xe(e)?ye(e.referToSelf.callback):be(e)?ve(e.referTo.references,e.referTo.callback):e)}function se(e,t,n){let r=[],i;for(i of e){let e=n[i];if(typeof e!=`number`)throw TypeError(`No definition for referenced signature "`+i+`"`);if(e=t[e],typeof e!=`function`)return!1;r.push(e)}return r}function ce(e,t,n){let r=oe(e),i=Array(r.length).fill(!1),a=!0;for(;a;){a=!1;let e=!0;for(let o=0;o<r.length;++o){if(i[o])continue;let s=r[o];if(xe(s))r[o]=s.referToSelf.callback(n),r[o].referToSelf=s.referToSelf,i[o]=!0,e=!1;else if(be(s)){let n=se(s.referTo.references,r,t);n?(r[o]=s.referTo.callback.apply(this,n),r[o].referTo=s.referTo,i[o]=!0,e=!1):a=!0}}if(e&&a)throw SyntaxError(`Circular reference detected in resolving typed.referTo`)}return r}function le(e){let t=/\bthis(\(|\.signatures\b)/;Object.keys(e).forEach(n=>{let r=e[n];if(t.test(r.toString()))throw SyntaxError("Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.")})}function ue(e,r){if(d.createCount++,Object.keys(r).length===0)throw SyntaxError(`No signatures provided`);d.warnAgainstDeprecatedThis&&le(r);let i=[],a=[],o={},s=[],c;for(c in r){if(!Object.prototype.hasOwnProperty.call(r,c))continue;let e=T(c);if(!e)continue;i.forEach(function(t){if(ae(t,e))throw TypeError(`Conflicting signatures "`+x(t)+`" and "`+x(e)+`".`)}),i.push(e);let t=a.length;a.push(r[c]);let n=e.map(C),l;for(l of ie(n)){let e=x(l);s.push({params:l,name:e,fn:t}),l.every(e=>!e.hasConversion)&&(o[e]=t)}}s.sort(ne);let l=ce(a,o,Te),u;for(u in o)Object.prototype.hasOwnProperty.call(o,u)&&(o[u]=l[o[u]]);let f=[],p=new Map;for(u of s)p.has(u.name)||(u.fn=l[u.fn],f.push(u),p.set(u.name,u));let m=f[0]&&f[0].params.length<=2&&!E(f[0].params),h=f[1]&&f[1].params.length<=2&&!E(f[1].params),g=f[2]&&f[2].params.length<=2&&!E(f[2].params),_=f[3]&&f[3].params.length<=2&&!E(f[3].params),v=f[4]&&f[4].params.length<=2&&!E(f[4].params),y=f[5]&&f[5].params.length<=2&&!E(f[5].params),b=m&&h&&g&&_&&v&&y;for(let e=0;e<f.length;++e)f[e].test=O(f[e].params);let S=m?D(f[0].params[0]):t,w=h?D(f[1].params[0]):t,k=g?D(f[2].params[0]):t,A=_?D(f[3].params[0]):t,j=v?D(f[4].params[0]):t,M=y?D(f[5].params[0]):t,N=m?D(f[0].params[1]):t,P=h?D(f[1].params[1]):t,ee=g?D(f[2].params[1]):t,te=_?D(f[3].params[1]):t,F=v?D(f[4].params[1]):t,I=y?D(f[5].params[1]):t;for(let e=0;e<f.length;++e)f[e].implementation=re(f[e].params,f[e].fn);let oe=m?f[0].implementation:n,se=h?f[1].implementation:n,ue=g?f[2].implementation:n,de=_?f[3].implementation:n,fe=v?f[4].implementation:n,pe=y?f[5].implementation:n,me=m?f[0].params.length:-1,he=h?f[1].params.length:-1,ge=g?f[2].params.length:-1,_e=_?f[3].params.length:-1,ve=v?f[4].params.length:-1,ye=y?f[5].params.length:-1,be=b?6:0,xe=f.length,Se=f.map(e=>e.test),Ce=f.map(e=>e.implementation),we=function(){for(let e=be;e<xe;e++)if(Se[e](arguments))return Ce[e].apply(this,arguments);return d.onMismatch(e,arguments,f)};function Te(e,t){return arguments.length===me&&S(e)&&N(t)?oe.apply(this,arguments):arguments.length===he&&w(e)&&P(t)?se.apply(this,arguments):arguments.length===ge&&k(e)&&ee(t)?ue.apply(this,arguments):arguments.length===_e&&A(e)&&te(t)?de.apply(this,arguments):arguments.length===ve&&j(e)&&F(t)?fe.apply(this,arguments):arguments.length===ye&&M(e)&&I(t)?pe.apply(this,arguments):we.apply(this,arguments)}try{Object.defineProperty(Te,"name",{value:e})}catch{}return Te.signatures=o,Te._typedFunctionData={signatures:f,signatureMap:p},Te}function de(e,t,n){throw N(e,t,n)}function fe(e){return me(e,0,e.length-1)}function pe(e){return e[e.length-1]}function me(e,t,n){return Array.prototype.slice.call(e,t,n)}function he(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}function ge(e,t){return Array.prototype.concat.apply([],e.map(t))}function _e(){let e=fe(arguments).map(e=>x(T(e))),t=pe(arguments);if(typeof t!=`function`)throw TypeError(`Callback function expected as last argument`);return ve(e,t)}function ve(e,t){return{referTo:{references:e,callback:t}}}function ye(e){if(typeof e!=`function`)throw TypeError(`Callback function expected as first argument`);return{referToSelf:{callback:e}}}function be(e){return e&&typeof e.referTo==`object`&&Array.isArray(e.referTo.references)&&typeof e.referTo.callback==`function`}function xe(e){return e&&typeof e.referToSelf==`object`&&typeof e.referToSelf.callback==`function`}function Se(e,t){if(!e)return t;if(t&&t!==e){let n=Error(`Function names do not match (expected: `+e+`, actual: `+t+`)`);throw n.data={actual:t,expected:e},n}return e}function Ce(e){let t;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(_(e[n])||typeof e[n].signature==`string`)&&(t=Se(t,e[n].name));return t}function we(e,t){let n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(n in e&&t[n]!==e[n]){let r=Error(`Signature "`+n+`" is defined twice`);throw r.data={signature:n,sourceFunction:t[n],destFunction:e[n]},r}e[n]=t[n]}}let Te=d;d=function(e){let t=typeof e==`string`,n=+!!t,r=t?e:``,i={};for(let e=n;e<arguments.length;++e){let n=arguments[e],o={},s;if(typeof n==`function`?(s=n.name,typeof n.signature==`string`?o[n.signature]=n:_(n)&&(o=n.signatures)):a(n)&&(o=n,t||(s=Ce(n))),Object.keys(o).length===0){let t=TypeError(`Argument to 'typed' at index `+e+` is not a (typed) function, nor an object with signatures as keys and functions as values.`);throw t.data={index:e,argument:n},t}t||(r=Se(r,s)),we(i,o)}return ue(r||``,i)},d.create=i,d.createCount=Te.createCount,d.onMismatch=de,d.throwMismatchError=de,d.createError=N,d.clear=m,d.clearConversions=h,d.addTypes=p,d._findType=f,d.referTo=_e,d.referToSelf=ye,d.convert=b,d.findSignature=v,d.find=y,d.isTypedFunction=_,d.warnAgainstDeprecatedThis=!0,d.addType=function(e,t){let n=`any`;t!==!1&&c.has(`Object`)&&(n=`Object`),d.addTypes([e],n)};function Ee(e){if(!e||typeof e.from!=`string`||typeof e.to!=`string`||typeof e.convert!=`function`)throw TypeError(`Object with properties {from: string, to: string, convert: function} expected`);if(e.to===e.from)throw SyntaxError(`Illegal to define conversion from "`+e.from+`" to itself.`)}return d.addConversion=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{override:!1};Ee(e);let n=f(e.to),r=n.conversionsTo.find(t=>t.from===e.from);if(r)if(t&&t.override)d.removeConversion({from:r.from,to:e.to,convert:r.convert});else throw Error(`There is already a conversion from "`+e.from+`" to "`+n.name+`"`);n.conversionsTo.push({from:e.from,to:n.name,convert:e.convert,index:u++})},d.addConversions=function(e,t){e.forEach(e=>d.addConversion(e,t))},d.removeConversion=function(e){Ee(e);let t=f(e.to),n=he(t.conversionsTo,t=>t.from===e.from);if(!n)throw Error(`Attempt to remove nonexistent conversion from `+e.from+` to `+e.to);if(n.convert!==e.convert)throw Error(`Conversion to remove does not match existing conversion`);let r=t.conversionsTo.indexOf(n);t.conversionsTo.splice(r,1)},d.resolve=function(e,t){if(!_(e))throw TypeError(r);let n=e._typedFunctionData.signatures;for(let e=0;e<n.length;++e)if(n[e].test(t))return n[e];return null},d}return i()}))}));function W(e,t,n,r){function i(r){var i=$u(r,t.map(od));return id(e,t,r),n(i)}return i.isFactory=!0,i.fn=e,i.dependencies=t.slice().sort(),r&&(i.meta=r),i}function id(e,t,n){if(!t.filter(e=>!ad(e)).every(e=>n[e]!==void 0)){var r=t.filter(e=>n[e]===void 0);throw Error(`Cannot create function "${e}", some dependencies are missing: ${r.map(e=>`"${e}"`).join(`, `)}.`)}}function ad(e){return e&&e[0]===`?`}function od(e){return e&&e[0]===`?`?e.slice(1):e}function sd(e){return typeof e==`boolean`?!0:isFinite(e)?e===Math.round(e):!1}var cd=Math.sign||function(e){return e>0?1:e<0?-1:0},ld=Math.log2||function(e){return Math.log(e)/Math.LN2},ud=Math.log10||function(e){return Math.log(e)/Math.LN10},dd=Math.log1p||function(e){return Math.log(e+1)},fd=Math.cbrt||function(e){if(e===0)return e;var t=e<0,n;return t&&(e=-e),isFinite(e)?(n=Math.exp(Math.log(e)/3),n=(e/(n*n)+2*n)/3):n=e,t?-n:n},pd=Math.expm1||function(e){return e>=2e-4||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function md(e,t,n){var r={2:`0b`,8:`0o`,16:`0x`}[t],i=``;if(n){if(n<1)throw Error(`size must be in greater than 0`);if(!sd(n))throw Error(`size must be an integer`);if(e>2**(n-1)-1||e<-(2**(n-1)))throw Error(`Value must be in range [-2^${n-1}, 2^${n-1}-1]`);if(!sd(e))throw Error(`Value must be an integer`);e<0&&(e+=2**n),i=`i${n}`}var a=``;return e<0&&(e=-e,a=`-`),`${a}${r}${e.toString(t)}${i}`}function hd(e,t){if(typeof t==`function`)return t(e);if(e===1/0)return`Infinity`;if(e===-1/0)return`-Infinity`;if(isNaN(e))return`NaN`;var{notation:n,precision:r,wordSize:i}=gd(t);switch(n){case`fixed`:return yd(e,r);case`exponential`:return bd(e,r);case`engineering`:return vd(e,r);case`bin`:return md(e,2,i);case`oct`:return md(e,8,i);case`hex`:return md(e,16,i);case`auto`:return xd(e,r,t).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return e===`.`?t:e+t});default:throw Error(`Unknown notation "`+n+`". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.`)}}function gd(e){var t=`auto`,n,r;if(e!==void 0)if(ou(e))n=e;else if(su(e))n=e.toNumber();else if(Eu(e))e.precision!==void 0&&(n=Ed(e.precision,()=>{throw Error(`Option "precision" must be a number or BigNumber`)})),e.wordSize!==void 0&&(r=Ed(e.wordSize,()=>{throw Error(`Option "wordSize" must be a number or BigNumber`)})),e.notation&&(t=e.notation);else throw Error(`Unsupported type of options, number, BigNumber, or object expected`);return{notation:t,precision:n,wordSize:r}}function _d(e){var t=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw SyntaxError(`Invalid number `+e);var n=t[1],r=t[2],i=parseFloat(t[4]||`0`),a=r.indexOf(`.`);i+=a===-1?r.length-1:a-1;var o=r.replace(`.`,``).replace(/^0*/,function(e){return i-=e.length,``}).replace(/0*$/,``).split(``).map(function(e){return parseInt(e)});return o.length===0&&(o.push(0),i++),{sign:n,coefficients:o,exponent:i}}function vd(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=Sd(_d(e),t),r=n.exponent,i=n.coefficients,a=r%3==0?r:r<0?r-3-r%3:r-r%3;if(ou(t))for(;t>i.length||r-a+1>i.length;)i.push(0);else for(var o=Math.abs(r-a)-(i.length-1),s=0;s<o;s++)i.push(0);for(var c=Math.abs(r-a),l=1;c>0;)l++,c--;var u=i.slice(l).join(``),d=ou(t)&&u.length||u.match(/[1-9]/)?`.`+u:``,f=i.slice(0,l).join(``)+d+`e`+(r>=0?`+`:``)+a.toString();return n.sign+f}function yd(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=_d(e),r=typeof t==`number`?Sd(n,n.exponent+1+t):n,i=r.coefficients,a=r.exponent+1,o=a+(t||0);return i.length<o&&(i=i.concat(Cd(o-i.length))),a<0&&(i=Cd(-a+1).concat(i),a=1),a<i.length&&i.splice(a,0,a===0?`0.`:`.`),r.sign+i.join(``)}function bd(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=_d(e),r=t?Sd(n,t):n,i=r.coefficients,a=r.exponent;i.length<t&&(i=i.concat(Cd(t-i.length)));var o=i.shift();return r.sign+o+(i.length>0?`.`+i.join(``):``)+`e`+(a>=0?`+`:``)+a}function xd(e,t,n){if(isNaN(e)||!isFinite(e))return String(e);var r=Dd(n?.lowerExp,-3),i=Dd(n?.upperExp,5),a=_d(e),o=t?Sd(a,t):a;if(o.exponent<r||o.exponent>=i)return bd(e,t);var s=o.coefficients,c=o.exponent;s.length<t&&(s=s.concat(Cd(t-s.length))),s=s.concat(Cd(c-s.length+1+(s.length<t?t-s.length:0))),s=Cd(-c).concat(s);var l=c>0?c:0;return l<s.length-1&&s.splice(l+1,0,`.`),o.sign+s.join(``)}function Sd(e,t){for(var n={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},r=n.coefficients;t<=0;)r.unshift(0),n.exponent++,t++;if(r.length>t&&r.splice(t,r.length-t)[0]>=5){var i=t-1;for(r[i]++;r[i]===10;)r.pop(),i===0&&(r.unshift(0),n.exponent++,i++),i--,r[i]++}return n}function Cd(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function wd(e){return e.toExponential().replace(/e.*$/,``).replace(/^0\.?0*|\./,``).length}function Td(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e-8,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(n<=0)throw Error(`Relative tolerance must be greater than 0`);if(r<0)throw Error(`Absolute tolerance must be at least 0`);return isNaN(e)||isNaN(t)?!1:!isFinite(e)||!isFinite(t)?e===t:e===t||Math.abs(e-t)<=Math.max(n*Math.max(Math.abs(e),Math.abs(t)),r)}function Ed(e,t){if(ou(e))return e;if(su(e))return e.toNumber();t()}function Dd(e,t){return ou(e)?e:su(e)?e.toNumber():t}var Od=l(rd(),1),kd=function(){return kd=Od.default.create,Od.default},Ad=W(`typed`,[`?BigNumber`,`?Complex`,`?DenseMatrix`,`?Fraction`],function(e){var{BigNumber:t,Complex:n,DenseMatrix:r,Fraction:i}=e,a=kd();return a.clear(),a.addTypes([{name:`number`,test:ou},{name:`Complex`,test:lu},{name:`BigNumber`,test:su},{name:`bigint`,test:cu},{name:`Fraction`,test:uu},{name:`Unit`,test:du},{name:`identifier`,test:e=>fu&&/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-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DC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\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FE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36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F99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*$/.test(e)},{name:`string`,test:fu},{name:`Chain`,test:Ku},{name:`Array`,test:pu},{name:`Matrix`,test:mu},{name:`DenseMatrix`,test:gu},{name:`SparseMatrix`,test:_u},{name:`Range`,test:vu},{name:`Index`,test:yu},{name:`boolean`,test:bu},{name:`ResultSet`,test:xu},{name:`Help`,test:Su},{name:`function`,test:Cu},{name:`Date`,test:wu},{name:`RegExp`,test:Tu},{name:`null`,test:Ou},{name:`undefined`,test:ku},{name:`AccessorNode`,test:Au},{name:`ArrayNode`,test:ju},{name:`AssignmentNode`,test:Mu},{name:`BlockNode`,test:Nu},{name:`ConditionalNode`,test:Pu},{name:`ConstantNode`,test:Fu},{name:`FunctionNode`,test:Lu},{name:`FunctionAssignmentNode`,test:Iu},{name:`IndexNode`,test:Ru},{name:`Node`,test:zu},{name:`ObjectNode`,test:Bu},{name:`OperatorNode`,test:Vu},{name:`ParenthesisNode`,test:Hu},{name:`RangeNode`,test:Uu},{name:`RelationalNode`,test:Wu},{name:`SymbolNode`,test:Gu},{name:`Map`,test:Du},{name:`Object`,test:Eu}]),a.addConversions([{from:`number`,to:`BigNumber`,convert:function(e){if(t||jd(e),wd(e)>15)throw TypeError(`Cannot implicitly convert a number with >15 significant digits to BigNumber (value: `+e+`). Use function bignumber(x) to convert to BigNumber.`);return new t(e)}},{from:`number`,to:`Complex`,convert:function(e){return n||Md(e),new n(e,0)}},{from:`BigNumber`,to:`Complex`,convert:function(e){return n||Md(e),new n(e.toNumber(),0)}},{from:`bigint`,to:`number`,convert:function(e){if(e>2**53-1)throw TypeError(`Cannot implicitly convert bigint to number: value exceeds the max safe integer value (value: `+e+`)`);return Number(e)}},{from:`bigint`,to:`BigNumber`,convert:function(e){return t||jd(e),new t(e.toString())}},{from:`bigint`,to:`Fraction`,convert:function(e){return i||Pd(e),new i(e.toString())}},{from:`Fraction`,to:`BigNumber`,convert:function(e){throw TypeError(`Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.`)}},{from:`Fraction`,to:`Complex`,convert:function(e){return n||Md(e),new n(e.valueOf(),0)}},{from:`number`,to:`Fraction`,convert:function(e){i||Pd(e);var t=new i(e);if(t.valueOf()!==e)throw TypeError(`Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: `+e+`). Use function fraction(x) to convert to Fraction.`);return t}},{from:`string`,to:`number`,convert:function(e){var t=Number(e);if(isNaN(t))throw Error(`Cannot convert "`+e+`" to a number`);return t}},{from:`string`,to:`BigNumber`,convert:function(e){t||jd(e);try{return new t(e)}catch{throw Error(`Cannot convert "`+e+`" to BigNumber`)}}},{from:`string`,to:`bigint`,convert:function(e){try{return BigInt(e)}catch{throw Error(`Cannot convert "`+e+`" to BigInt`)}}},{from:`string`,to:`Fraction`,convert:function(e){i||Pd(e);try{return new i(e)}catch{throw Error(`Cannot convert "`+e+`" to Fraction`)}}},{from:`string`,to:`Complex`,convert:function(e){n||Md(e);try{return new n(e)}catch{throw Error(`Cannot convert "`+e+`" to Complex`)}}},{from:`boolean`,to:`number`,convert:function(e){return+e}},{from:`boolean`,to:`BigNumber`,convert:function(e){return t||jd(e),new t(+e)}},{from:`boolean`,to:`bigint`,convert:function(e){return BigInt(+e)}},{from:`boolean`,to:`Fraction`,convert:function(e){return i||Pd(e),new i(+e)}},{from:`boolean`,to:`string`,convert:function(e){return String(e)}},{from:`Array`,to:`Matrix`,convert:function(e){return r||Nd(),new r(e)}},{from:`Matrix`,to:`Array`,convert:function(e){return e.valueOf()}}]),a.onMismatch=(e,t,n)=>{var r=a.createError(e,t,n);if([`wrongType`,`mismatch`].includes(r.data.category)&&t.length===1&&hu(t[0])&&n.some(e=>!e.params.includes(`,`))){var i=TypeError(`Function '${e}' doesn't apply to matrices. To call it elementwise on a matrix 'M', try 'map(M, ${e})'.`);throw i.data=r.data,i}throw r},a.onMismatch=(e,t,n)=>{var r=a.createError(e,t,n);if([`wrongType`,`mismatch`].includes(r.data.category)&&t.length===1&&hu(t[0])&&n.some(e=>!e.params.includes(`,`))){var i=TypeError(`Function '${e}' doesn't apply to matrices. To call it elementwise on a matrix 'M', try 'map(M, ${e})'.`);throw i.data=r.data,i}throw r},a});function jd(e){throw Error(`Cannot convert value ${e} into a BigNumber: no class 'BigNumber' provided`)}function Md(e){throw Error(`Cannot convert value ${e} into a Complex number: no class 'Complex' provided`)}function Nd(){throw Error(`Cannot convert array into a Matrix: no class 'DenseMatrix' provided`)}function Pd(e){throw Error(`Cannot convert value ${e} into a Fraction, no class 'Fraction' provided.`)}var Fd=9e15,Id=1e9,Ld=`0123456789abcdef`,Rd=`2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058`,zd=`3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789`,Bd={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Fd,maxE:Fd,crypto:!1},Vd,Hd,G=!0,Ud=`[DecimalError] `,Wd=Ud+`Invalid argument: `,Gd=Ud+`Precision limit exceeded`,Kd=Ud+`crypto unavailable`,qd=`[object Decimal]`,Jd=Math.floor,Yd=Math.pow,Xd=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Zd=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Qd=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,$d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ef=1e7,K=7,tf=9007199254740991,nf=Rd.length-1,rf=zd.length-1,q={toStringTag:qd};q.absoluteValue=q.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),J(e)},q.ceil=function(){return J(new this.constructor(this),this.e+1,2)},q.clampedTo=q.clamp=function(e,t){var n,r=this,i=r.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(Wd+t);return n=r.cmp(e),n<0?e:r.cmp(t)>0?t:new i(r)},q.comparedTo=q.cmp=function(e){var t,n,r,i,a=this,o=a.d,s=(e=new a.constructor(e)).d,c=a.s,l=e.s;if(!o||!s)return!c||!l?NaN:c===l?o===s?0:!o^c<0?1:-1:c;if(!o[0]||!s[0])return o[0]?c:s[0]?-l:0;if(c!==l)return c;if(a.e!==e.e)return a.e>e.e^c<0?1:-1;for(r=o.length,i=s.length,t=0,n=r<i?r:i;t<n;++t)if(o[t]!==s[t])return o[t]>s[t]^c<0?1:-1;return r===i?0:r>i^c<0?1:-1},q.cosine=q.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+K,r.rounding=1,n=lf(r,Of(r,n)),r.precision=e,r.rounding=t,J(Hd==2||Hd==3?n.neg():n,e,t,!0)):new r(1):new r(NaN)},q.cubeRoot=q.cbrt=function(){var e,t,n,r,i,a,o,s,c,l,u=this,d=u.constructor;if(!u.isFinite()||u.isZero())return new d(u);for(G=!1,a=u.s*Yd(u.s*u,1/3),!a||Math.abs(a)==1/0?(n=af(u.d),e=u.e,(a=(e-n.length+1)%3)&&(n+=a==1||a==-2?`0`:`00`),a=Yd(n,1/3),e=Jd((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?n=`5e`+e:(n=a.toExponential(),n=n.slice(0,n.indexOf(`e`)+1)+e),r=new d(n),r.s=u.s):r=new d(a.toString()),o=(e=d.precision)+3;;)if(s=r,c=s.times(s).times(s),l=c.plus(u),r=uf(l.plus(u).times(s),l.plus(c),o+2,1),af(s.d).slice(0,o)===(n=af(r.d)).slice(0,o))if(n=n.slice(o-3,o+1),n==`9999`||!i&&n==`4999`){if(!i&&(J(s,e+1,0),s.times(s).times(s).eq(u))){r=s;break}o+=4,i=1}else{(!+n||!+n.slice(1)&&n.charAt(0)==`5`)&&(J(r,e+1,1),t=!r.times(r).times(r).eq(u));break}return G=!0,J(r,e,d.rounding,t)},q.decimalPlaces=q.dp=function(){var e,t=this.d,n=NaN;if(t){if(e=t.length-1,n=(e-Jd(this.e/K))*K,e=t[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},q.dividedBy=q.div=function(e){return uf(this,new this.constructor(e))},q.dividedToIntegerBy=q.divToInt=function(e){var t=this,n=t.constructor;return J(uf(t,new n(e),0,1,1),n.precision,n.rounding)},q.equals=q.eq=function(e){return this.cmp(e)===0},q.floor=function(){return J(new this.constructor(this),this.e+1,3)},q.greaterThan=q.gt=function(e){return this.cmp(e)>0},q.greaterThanOrEqualTo=q.gte=function(e){var t=this.cmp(e);return t==1||t===0},q.hyperbolicCosine=q.cosh=function(){var e,t,n,r,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;n=o.precision,r=o.rounding,o.precision=n+Math.max(a.e,a.sd())+4,o.rounding=1,i=a.d.length,i<32?(e=Math.ceil(i/3),t=(1/Df(4,e)).toString()):(e=16,t=`2.3283064365386962890625e-10`),a=Ef(o,1,a.times(t),new o(1),!0);for(var c,l=e,u=new o(8);l--;)c=a.times(a),a=s.minus(c.times(u.minus(c.times(u))));return J(a,o.precision=n,o.rounding=r,!0)},q.hyperbolicSine=q.sinh=function(){var e,t,n,r,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,n=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,r=i.d.length,r<3)i=Ef(a,2,i,i,!0);else{e=1.4*Math.sqrt(r),e=e>16?16:e|0,i=i.times(1/Df(5,e)),i=Ef(a,2,i,i,!0);for(var o,s=new a(5),c=new a(16),l=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(c.times(o).plus(l))))}return a.precision=t,a.rounding=n,J(i,t,n,!0)},q.hyperbolicTangent=q.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,uf(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},q.inverseCosine=q.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,i=t.rounding;return n===-1?e.isZero()?mf(t,r+4,i).times(.5):(t.precision=r+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=r,t.rounding=i,e.times(2)):n===0?e.isNeg()?mf(t,r,i):new t(0):new t(NaN)},q.inverseHyperbolicCosine=q.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,G=!1,n=n.times(n).minus(1).sqrt().plus(n),G=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},q.inverseHyperbolicSine=q.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,G=!1,n=n.times(n).plus(1).sqrt().plus(n),G=!0,r.precision=e,r.rounding=t,n.ln())},q.inverseHyperbolicTangent=q.atanh=function(){var e,t,n,r,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,r=i.sd(),Math.max(r,e)<2*-i.e-1?J(new a(i),e,t,!0):(a.precision=n=r-i.e,i=uf(i.plus(1),new a(1).minus(i),n+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5))):new a(NaN)},q.inverseSine=q.asin=function(){var e,t,n,r,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),n=a.precision,r=a.rounding,t===-1?(a.precision=n+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=r,i.times(2)):t===0?(e=mf(a,n+4,r).times(.5),e.s=i.s,e):new a(NaN))},q.inverseTangent=q.atan=function(){var e,t,n,r,i,a,o,s,c,l=this,u=l.constructor,d=u.precision,f=u.rounding;if(!l.isFinite()){if(!l.s)return new u(NaN);if(d+4<=rf)return o=mf(u,d+4,f).times(.5),o.s=l.s,o}else if(l.isZero())return new u(l);else if(l.abs().eq(1)&&d+4<=rf)return o=mf(u,d+4,f).times(.25),o.s=l.s,o;for(u.precision=s=d+10,u.rounding=1,n=Math.min(28,s/K+2|0),e=n;e;--e)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(G=!1,t=Math.ceil(s/K),r=1,c=l.times(l),o=new u(l),i=l;e!==-1;)if(i=i.times(c),a=o.minus(i.div(r+=2)),i=i.times(c),o=a.plus(i.div(r+=2)),o.d[t]!==void 0)for(e=t;o.d[e]===a.d[e]&&e--;);return n&&(o=o.times(2<<n-1)),G=!0,J(o,u.precision=d,u.rounding=f,!0)},q.isFinite=function(){return!!this.d},q.isInteger=q.isInt=function(){return!!this.d&&Jd(this.e/K)>this.d.length-2},q.isNaN=function(){return!this.s},q.isNegative=q.isNeg=function(){return this.s<0},q.isPositive=q.isPos=function(){return this.s>0},q.isZero=function(){return!!this.d&&this.d[0]===0},q.lessThan=q.lt=function(e){return this.cmp(e)<0},q.lessThanOrEqualTo=q.lte=function(e){return this.cmp(e)<1},q.logarithm=q.log=function(e){var t,n,r,i,a,o,s,c,l=this,u=l.constructor,d=u.precision,f=u.rounding,p=5;if(e==null)e=new u(10),t=!0;else{if(e=new u(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(n=l.d,l.s<0||!n||!n[0]||l.eq(1))return new u(n&&!n[0]?-1/0:l.s==1?n?0:1/0:NaN);if(t)if(n.length>1)a=!0;else{for(i=n[0];i%10==0;)i/=10;a=i!==1}if(G=!1,s=d+p,o=xf(l,s),r=t?pf(u,s+10):xf(e,s),c=uf(o,r,s,1),sf(c.d,i=d,f))do if(s+=10,o=xf(l,s),r=t?pf(u,s+10):xf(e,s),c=uf(o,r,s,1),!a){+af(c.d).slice(i+1,i+15)+1==0x5af3107a4000&&(c=J(c,d+1,0));break}while(sf(c.d,i+=10,f));return G=!0,J(c,d,f)},q.minus=q.sub=function(e){var t,n,r,i,a,o,s,c,l,u,d,f,p=this,m=p.constructor;if(e=new m(e),!p.d||!e.d)return!p.s||!e.s?e=new m(NaN):p.d?e.s=-e.s:e=new m(e.d||p.s!==e.s?p:NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(l=p.d,f=e.d,s=m.precision,c=m.rounding,!l[0]||!f[0]){if(f[0])e.s=-e.s;else if(l[0])e=new m(p);else return new m(c===3?-0:0);return G?J(e,s,c):e}if(n=Jd(e.e/K),u=Jd(p.e/K),l=l.slice(),a=u-n,a){for(d=a<0,d?(t=l,a=-a,o=f.length):(t=f,n=u,o=l.length),r=Math.max(Math.ceil(s/K),o)+2,a>r&&(a=r,t.length=1),t.reverse(),r=a;r--;)t.push(0);t.reverse()}else{for(r=l.length,o=f.length,d=r<o,d&&(o=r),r=0;r<o;r++)if(l[r]!=f[r]){d=l[r]<f[r];break}a=0}for(d&&(t=l,l=f,f=t,e.s=-e.s),o=l.length,r=f.length-o;r>0;--r)l[o++]=0;for(r=f.length;r>a;){if(l[--r]<f[r]){for(i=r;i&&l[--i]===0;)l[i]=ef-1;--l[i],l[r]+=ef}l[r]-=f[r]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(e.d=l,e.e=ff(l,n),G?J(e,s,c):e):new m(c===3?-0:0)},q.modulo=q.mod=function(e){var t,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?J(new r(n),r.precision,r.rounding):(G=!1,r.modulo==9?(t=uf(n,e.abs(),0,3,1),t.s*=e.s):t=uf(n,e,0,r.modulo,1),t=t.times(e),G=!0,n.minus(t))},q.naturalExponential=q.exp=function(){return bf(this)},q.naturalLogarithm=q.ln=function(){return xf(this)},q.negated=q.neg=function(){var e=new this.constructor(this);return e.s=-e.s,J(e)},q.plus=q.add=function(e){var t,n,r,i,a,o,s,c,l,u,d=this,f=d.constructor;if(e=new f(e),!d.d||!e.d)return!d.s||!e.s?e=new f(NaN):d.d||(e=new f(e.d||d.s===e.s?d:NaN)),e;if(d.s!=e.s)return e.s=-e.s,d.minus(e);if(l=d.d,u=e.d,s=f.precision,c=f.rounding,!l[0]||!u[0])return u[0]||(e=new f(d)),G?J(e,s,c):e;if(a=Jd(d.e/K),r=Jd(e.e/K),l=l.slice(),i=a-r,i){for(i<0?(n=l,i=-i,o=u.length):(n=u,r=a,o=l.length),a=Math.ceil(s/K),o=a>o?a+1:o+1,i>o&&(i=o,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(o=l.length,i=u.length,o-i<0&&(i=o,n=u,u=l,l=n),t=0;i;)t=(l[--i]=l[i]+u[i]+t)/ef|0,l[i]%=ef;for(t&&(l.unshift(t),++r),o=l.length;l[--o]==0;)l.pop();return e.d=l,e.e=ff(l,r),G?J(e,s,c):e},q.precision=q.sd=function(e){var t,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Wd+e);return n.d?(t=hf(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},q.round=function(){var e=this,t=e.constructor;return J(new t(e),e.e+1,t.rounding)},q.sine=q.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+K,r.rounding=1,n=Tf(r,Of(r,n)),r.precision=e,r.rounding=t,J(Hd>2?n.neg():n,e,t,!0)):new r(NaN)},q.squareRoot=q.sqrt=function(){var e,t,n,r,i,a,o=this,s=o.d,c=o.e,l=o.s,u=o.constructor;if(l!==1||!s||!s[0])return new u(!l||l<0&&(!s||s[0])?NaN:s?o:1/0);for(G=!1,l=Math.sqrt(+o),l==0||l==1/0?(t=af(s),(t.length+c)%2==0&&(t+=`0`),l=Math.sqrt(t),c=Jd((c+1)/2)-(c<0||c%2),l==1/0?t=`5e`+c:(t=l.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+c),r=new u(t)):r=new u(l.toString()),n=(c=u.precision)+3;;)if(a=r,r=a.plus(uf(o,a,n+2,1)).times(.5),af(a.d).slice(0,n)===(t=af(r.d)).slice(0,n))if(t=t.slice(n-3,n+1),t==`9999`||!i&&t==`4999`){if(!i&&(J(a,c+1,0),a.times(a).eq(o))){r=a;break}n+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)==`5`)&&(J(r,c+1,1),e=!r.times(r).eq(o));break}return G=!0,J(r,c,u.rounding,e)},q.tangent=q.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,n=n.sin(),n.s=1,n=uf(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,J(Hd==2||Hd==4?n.neg():n,e,t,!0)):new r(NaN)},q.times=q.mul=function(e){var t,n,r,i,a,o,s,c,l,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(e.s*=u.s,!f||!f[0]||!p||!p[0])return new d(!e.s||f&&!f[0]&&!p||p&&!p[0]&&!f?NaN:!f||!p?e.s/0:e.s*0);for(n=Jd(u.e/K)+Jd(e.e/K),c=f.length,l=p.length,c<l&&(a=f,f=p,p=a,o=c,c=l,l=o),a=[],o=c+l,r=o;r--;)a.push(0);for(r=l;--r>=0;){for(t=0,i=c+r;i>r;)s=a[i]+p[r]*f[i-r-1]+t,a[i--]=s%ef|0,t=s/ef|0;a[i]=(a[i]+t)%ef|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=ff(a,n),G?J(e,d.precision,d.rounding):e},q.toBinary=function(e,t){return kf(this,2,e,t)},q.toDecimalPlaces=q.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(of(e,0,Id),t===void 0?t=r.rounding:of(t,0,8),J(n,e+n.e+1,t))},q.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=df(r,!0):(of(e,0,Id),t===void 0?t=i.rounding:of(t,0,8),r=J(new i(r),e+1,t),n=df(r,!0,e+1)),r.isNeg()&&!r.isZero()?`-`+n:n},q.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?n=df(i):(of(e,0,Id),t===void 0?t=a.rounding:of(t,0,8),r=J(new a(i),e+i.e+1,t),n=df(r,!1,e+r.e+1)),i.isNeg()&&!i.isZero()?`-`+n:n},q.toFraction=function(e){var t,n,r,i,a,o,s,c,l,u,d,f,p=this,m=p.d,h=p.constructor;if(!m)return new h(p);if(l=n=new h(1),r=c=new h(0),t=new h(r),a=t.e=hf(m)-p.e-1,o=a%K,t.d[0]=Yd(10,o<0?K+o:o),e==null)e=a>0?t:l;else{if(s=new h(e),!s.isInt()||s.lt(l))throw Error(Wd+s);e=s.gt(t)?a>0?t:l:s}for(G=!1,s=new h(af(m)),u=h.precision,h.precision=a=m.length*K*2;d=uf(s,t,0,1,1),i=n.plus(d.times(r)),i.cmp(e)!=1;)n=r,r=i,i=l,l=c.plus(d.times(i)),c=i,i=t,t=s.minus(d.times(i)),s=i;return i=uf(e.minus(n),r,0,1,1),c=c.plus(i.times(l)),n=n.plus(i.times(r)),c.s=l.s=p.s,f=uf(l,r,a,1).minus(p).abs().cmp(uf(c,n,a,1).minus(p).abs())<1?[l,r]:[c,n],h.precision=u,G=!0,f},q.toHexadecimal=q.toHex=function(e,t){return kf(this,16,e,t)},q.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),e==null){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),t===void 0?t=r.rounding:of(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&=n.s,e}return e.d[0]?(G=!1,n=uf(n,e,0,t,1).times(e),G=!0,J(n)):(e.s=n.s,n=e),n},q.toNumber=function(){return+this},q.toOctal=function(e,t){return kf(this,8,e,t)},q.toPower=q.pow=function(e){var t,n,r,i,a,o,s=this,c=s.constructor,l=+(e=new c(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new c(Yd(+s,l));if(s=new c(s),s.eq(1))return s;if(r=c.precision,a=c.rounding,e.eq(1))return J(s,r,a);if(t=Jd(e.e/K),t>=e.d.length-1&&(n=l<0?-l:l)<=tf)return i=_f(c,s,n,r),e.s<0?new c(1).div(i):J(i,r,a);if(o=s.s,o<0){if(t<e.d.length-1)return new c(NaN);if(e.d[t]&1||(o=1),s.e==0&&s.d[0]==1&&s.d.length==1)return s.s=o,s}return n=Yd(+s,l),t=n==0||!isFinite(n)?Jd(l*(Math.log(`0.`+af(s.d))/Math.LN10+s.e+1)):new c(n+``).e,t>c.maxE+1||t<c.minE-1?new c(t>0?o/0:0):(G=!1,c.rounding=s.s=1,n=Math.min(12,(t+``).length),i=bf(e.times(xf(s,r+n)),r),i.d&&(i=J(i,r+5,1),sf(i.d,r,a)&&(t=r+10,i=J(bf(e.times(xf(s,t+n)),t),t+5,1),+af(i.d).slice(r+1,r+15)+1==0x5af3107a4000&&(i=J(i,r+1,0)))),i.s=o,G=!0,c.rounding=a,J(i,r,a))},q.toPrecision=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=df(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(of(e,1,Id),t===void 0?t=i.rounding:of(t,0,8),r=J(new i(r),e,t),n=df(r,e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?`-`+n:n},q.toSignificantDigits=q.toSD=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(of(e,1,Id),t===void 0?t=r.rounding:of(t,0,8)),J(new r(n),e,t)},q.toString=function(){var e=this,t=e.constructor,n=df(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?`-`+n:n},q.truncated=q.trunc=function(){return J(new this.constructor(this),this.e+1,1)},q.valueOf=q.toJSON=function(){var e=this,t=e.constructor,n=df(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?`-`+n:n};function af(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=K-r.length,n&&(a+=gf(n)),a+=r;o=e[t],r=o+``,n=K-r.length,n&&(a+=gf(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}function of(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Wd+e)}function sf(e,t,n,r){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=K,i=0):(i=Math.ceil((t+1)/K),t%=K),a=Yd(10,K-t),s=e[i]%a|0,r==null?t<3?(t==0?s=s/100|0:t==1&&(s=s/10|0),o=n<4&&s==99999||n>3&&s==49999||s==5e4||s==0):o=(n<4&&s+1==a||n>3&&s+1==a/2)&&(e[i+1]/a/100|0)==Yd(10,t-2)-1||(s==a/2||s==0)&&(e[i+1]/a/100|0)==0:t<4?(t==0?s=s/1e3|0:t==1?s=s/100|0:t==2&&(s=s/10|0),o=(r||n<4)&&s==9999||!r&&n>3&&s==4999):o=((r||n<4)&&s+1==a||!r&&n>3&&s+1==a/2)&&(e[i+1]/a/1e3|0)==Yd(10,t-3)-1,o}function cf(e,t,n){for(var r,i=[0],a,o=0,s=e.length;o<s;){for(a=i.length;a--;)i[a]*=t;for(i[0]+=Ld.indexOf(e.charAt(o++)),r=0;r<i.length;r++)i[r]>n-1&&(i[r+1]===void 0&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}function lf(e,t){var n,r,i;if(t.isZero())return t;r=t.d.length,r<32?(n=Math.ceil(r/3),i=(1/Df(4,n)).toString()):(n=16,i=`2.3283064365386962890625e-10`),e.precision+=n,t=Ef(e,1,t.times(i),new e(1));for(var a=n;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,t}var uf=(function(){function e(e,t,n){var r,i=0,a=e.length;for(e=e.slice();a--;)r=e[a]*t+i,e[a]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=+(e[n]<t[n]),e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,a,o,s,c){var l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k=r.constructor,A=r.s==i.s?1:-1,j=r.d,M=i.d;if(!j||!j[0]||!M||!M[0])return new k(!r.s||!i.s||(j?M&&j[0]==M[0]:!M)?NaN:j&&j[0]==0||!M?A*0:A/0);for(c?(p=1,u=r.e-i.e):(c=ef,p=K,u=Jd(r.e/p)-Jd(i.e/p)),D=M.length,T=j.length,_=new k(A),v=_.d=[],d=0;M[d]==(j[d]||0);d++);if(M[d]>(j[d]||0)&&u--,a==null?(S=a=k.precision,o=k.rounding):S=s?a+(r.e-i.e)+1:a,S<0)v.push(1),m=!0;else{if(S=S/p+2|0,d=0,D==1){for(f=0,M=M[0],S++;(d<T||f)&&S--;d++)C=f*c+(j[d]||0),v[d]=C/M|0,f=C%M|0;m=f||d<T}else{for(f=c/(M[0]+1)|0,f>1&&(M=e(M,f,c),j=e(j,f,c),D=M.length,T=j.length),w=D,y=j.slice(0,D),b=y.length;b<D;)y[b++]=0;O=M.slice(),O.unshift(0),E=M[0],M[1]>=c/2&&++E;do f=0,l=t(M,y,D,b),l<0?(x=y[0],D!=b&&(x=x*c+(y[1]||0)),f=x/E|0,f>1?(f>=c&&(f=c-1),h=e(M,f,c),g=h.length,b=y.length,l=t(h,y,g,b),l==1&&(f--,n(h,D<g?O:M,g,c))):(f==0&&(l=f=1),h=M.slice()),g=h.length,g<b&&h.unshift(0),n(y,h,b,c),l==-1&&(b=y.length,l=t(M,y,D,b),l<1&&(f++,n(y,D<b?O:M,b,c))),b=y.length):l===0&&(f++,y=[0]),v[d++]=f,l&&y[0]?y[b++]=j[w]||0:(y=[j[w]],b=1);while((w++<T||y[0]!==void 0)&&S--);m=y[0]!==void 0}v[0]||v.shift()}if(p==1)_.e=u,Vd=m;else{for(d=1,f=v[0];f>=10;f/=10)d++;_.e=d+u*p-1,J(_,s?a+_.e+1:a,o,m)}return _}})();function J(e,t,n,r){var i,a,o,s,c,l,u,d,f,p=e.constructor;out:if(t!=null){if(d=e.d,!d)return e;for(i=1,s=d[0];s>=10;s/=10)i++;if(a=t-i,a<0)a+=K,o=t,u=d[f=0],c=u/Yd(10,i-o-1)%10|0;else if(f=Math.ceil((a+1)/K),s=d.length,f>=s)if(r){for(;s++<=f;)d.push(0);u=c=0,i=1,a%=K,o=a-K+1}else break out;else{for(u=s=d[f],i=1;s>=10;s/=10)i++;a%=K,o=a-K+i,c=o<0?0:u/Yd(10,i-o-1)%10|0}if(r=r||t<0||d[f+1]!==void 0||(o<0?u:u%Yd(10,i-o-1)),l=n<4?(c||r)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||r||n==6&&(a>0?o>0?u/Yd(10,i-o):0:d[f-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,l?(t-=e.e+1,d[0]=Yd(10,(K-t%K)%K),e.e=-t||0):d[0]=e.e=0,e;if(a==0?(d.length=f,s=1,f--):(d.length=f+1,s=Yd(10,K-a),d[f]=o>0?(u/Yd(10,i-o)%Yd(10,o)|0)*s:0),l)for(;;)if(f==0){for(a=1,o=d[0];o>=10;o/=10)a++;for(o=d[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(e.e++,d[0]==ef&&(d[0]=1));break}else{if(d[f]+=s,d[f]!=ef)break;d[f--]=0,s=1}for(a=d.length;d[--a]===0;)d.pop()}return G&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function df(e,t,n){if(!e.isFinite())return Sf(e);var r,i=e.e,a=af(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+gf(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(e.e<0?`e`:`e+`)+e.e):i<0?(a=`0.`+gf(-i-1)+a,n&&(r=n-o)>0&&(a+=gf(r))):i>=o?(a+=gf(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+gf(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=gf(r))),a}function ff(e,t){var n=e[0];for(t*=K;n>=10;n/=10)t++;return t}function pf(e,t,n){if(t>nf)throw G=!0,n&&(e.precision=n),Error(Gd);return J(new e(Rd),t,1,!0)}function mf(e,t,n){if(t>rf)throw Error(Gd);return J(new e(zd),t,n,!0)}function hf(e){var t=e.length-1,n=t*K+1;if(t=e[t],t){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function gf(e){for(var t=``;e--;)t+=`0`;return t}function _f(e,t,n,r){var i,a=new e(1),o=Math.ceil(r/K+4);for(G=!1;;){if(n%2&&(a=a.times(t),Af(a.d,o)&&(i=!0)),n=Jd(n/2),n===0){n=a.d.length-1,i&&a.d[n]===0&&++a.d[n];break}t=t.times(t),Af(t.d,o)}return G=!0,a}function vf(e){return e.d[e.d.length-1]&1}function yf(e,t,n){for(var r,i,a=new e(t[0]),o=0;++o<t.length;){if(i=new e(t[o]),!i.s){a=i;break}r=a.cmp(i),(r===n||r===0&&a.s===n)&&(a=i)}return a}function bf(e,t){var n,r,i,a,o,s,c,l=0,u=0,d=0,f=e.constructor,p=f.rounding,m=f.precision;if(!e.d||!e.d[0]||e.e>17)return new f(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(G=!1,c=m):c=t,s=new f(.03125);e.e>-2;)e=e.times(s),d+=5;for(r=Math.log(Yd(2,d))/Math.LN10*2+5|0,c+=r,n=a=o=new f(1),f.precision=c;;){if(a=J(a.times(e),c,1),n=n.times(++u),s=o.plus(uf(a,n,c,1)),af(s.d).slice(0,c)===af(o.d).slice(0,c)){for(i=d;i--;)o=J(o.times(o),c,1);if(t==null)if(l<3&&sf(o.d,c-r,p,l))f.precision=c+=10,n=a=s=new f(1),u=0,l++;else return J(o,f.precision=m,p,G=!0);else return f.precision=m,o}o=s}}function xf(e,t){var n,r,i,a,o,s,c,l,u,d,f,p=1,m=10,h=e,g=h.d,_=h.constructor,v=_.rounding,y=_.precision;if(h.s<0||!g||!g[0]||!h.e&&g[0]==1&&g.length==1)return new _(g&&!g[0]?-1/0:h.s==1?g?0:h:NaN);if(t==null?(G=!1,u=y):u=t,_.precision=u+=m,n=af(g),r=n.charAt(0),Math.abs(a=h.e)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=af(h.d),r=n.charAt(0),p++;a=h.e,r>1?(h=new _(`0.`+n),a++):h=new _(r+`.`+n.slice(1))}else return l=pf(_,u+2,y).times(a+``),h=xf(new _(r+`.`+n.slice(1)),u-m).plus(l),_.precision=y,t==null?J(h,y,v,G=!0):h;for(d=h,c=o=h=uf(h.minus(1),h.plus(1),u,1),f=J(h.times(h),u,1),i=3;;){if(o=J(o.times(f),u,1),l=c.plus(uf(o,new _(i),u,1)),af(l.d).slice(0,u)===af(c.d).slice(0,u))if(c=c.times(2),a!==0&&(c=c.plus(pf(_,u+2,y).times(a+``))),c=uf(c,new _(p),u,1),t==null)if(sf(c.d,u-m,v,s))_.precision=u+=m,l=o=h=uf(d.minus(1),d.plus(1),u,1),f=J(h.times(h),u,1),i=s=1;else return J(c,_.precision=y,v,G=!0);else return _.precision=y,c;c=l,i+=2}}function Sf(e){return String(e.s*e.s/0)}function Cf(e,t){var n,r,i;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;r++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(r,i),t){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%K,n<0&&(r+=K),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=K;r<i;)e.d.push(+t.slice(r,r+=K));t=t.slice(r),r=K-t.length}else r-=i;for(;r--;)t+=`0`;e.d.push(+t),G&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function wf(e,t){var n,r,i,a,o,s,c,l,u;if(t.indexOf(`_`)>-1){if(t=t.replace(/(\d)_(?=\d)/g,`$1`),$d.test(t))return Cf(e,t)}else if(t===`Infinity`||t===`NaN`)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Zd.test(t))n=16,t=t.toLowerCase();else if(Xd.test(t))n=2;else if(Qd.test(t))n=8;else throw Error(Wd+t);for(a=t.search(/p/i),a>0?(c=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),a=t.indexOf(`.`),o=a>=0,r=e.constructor,o&&(t=t.replace(`.`,``),s=t.length,a=s-a,i=_f(r,new r(n),a,a*2)),l=cf(t,n,ef),u=l.length-1,a=u;l[a]===0;--a)l.pop();return a<0?new r(e.s*0):(e.e=ff(l,u),e.d=l,G=!1,o&&(e=uf(e,i,s*4)),c&&(e=e.times(Math.abs(c)<54?Yd(2,c):vp.pow(2,c))),G=!0,e)}function Tf(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:Ef(e,2,t,t);n=1.4*Math.sqrt(r),n=n>16?16:n|0,t=t.times(1/Df(5,n)),t=Ef(e,2,t,t);for(var i,a=new e(5),o=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}function Ef(e,t,n,r,i){var a,o,s,c,l=1,u=e.precision,d=Math.ceil(u/K);for(G=!1,c=n.times(n),s=new e(r);;){if(o=uf(s.times(c),new e(t++*t++),u,1),s=i?r.plus(o):r.minus(o),r=uf(o.times(c),new e(t++*t++),u,1),o=s.plus(r),o.d[d]!==void 0){for(a=d;o.d[a]===s.d[a]&&a--;);if(a==-1)break}a=s,s=r,r=o,o=a,l++}return G=!0,o.d.length=d+1,o}function Df(e,t){for(var n=e;--t;)n*=e;return n}function Of(e,t){var n,r=t.s<0,i=mf(e,e.precision,1),a=i.times(.5);if(t=t.abs(),t.lte(a))return Hd=r?4:1,t;if(n=t.divToInt(i),n.isZero())Hd=r?3:2;else{if(t=t.minus(n.times(i)),t.lte(a))return Hd=vf(n)?r?2:3:r?4:1,t;Hd=vf(n)?r?1:4:r?3:2}return t.minus(i).abs()}function kf(e,t,n,r){var i,a,o,s,c,l,u,d,f,p=e.constructor,m=n!==void 0;if(m?(of(n,1,Id),r===void 0?r=p.rounding:of(r,0,8)):(n=p.precision,r=p.rounding),!e.isFinite())u=Sf(e);else{for(u=df(e),o=u.indexOf(`.`),m?(i=2,t==16?n=n*4-3:t==8&&(n=n*3-2)):i=t,o>=0&&(u=u.replace(`.`,``),f=new p(1),f.e=u.length-o,f.d=cf(df(f),10,i),f.e=f.d.length),d=cf(u,10,i),a=c=d.length;d[--c]==0;)d.pop();if(!d[0])u=m?`0p+0`:`0`;else{if(o<0?a--:(e=new p(e),e.d=d,e.e=a,e=uf(e,f,n,r,0,i),d=e.d,a=e.e,l=Vd),o=d[n],s=i/2,l||=d[n+1]!==void 0,l=r<4?(o!==void 0||l)&&(r===0||r===(e.s<0?3:2)):o>s||o===s&&(r===4||l||r===6&&d[n-1]&1||r===(e.s<0?8:7)),d.length=n,l)for(;++d[--n]>i-1;)d[n]=0,n||(++a,d.unshift(1));for(c=d.length;!d[c-1];--c);for(o=0,u=``;o<c;o++)u+=Ld.charAt(d[o]);if(m){if(c>1)if(t==16||t==8){for(o=t==16?4:3,--c;c%o;c++)u+=`0`;for(d=cf(u,i,t),c=d.length;!d[c-1];--c);for(o=1,u=`1.`;o<c;o++)u+=Ld.charAt(d[o])}else u=u.charAt(0)+`.`+u.slice(1);u=u+(a<0?`p`:`p+`)+a}else if(a<0){for(;++a;)u=`0`+u;u=`0.`+u}else if(++a>c)for(a-=c;a--;)u+=`0`;else a<c&&(u=u.slice(0,a)+`.`+u.slice(a))}u=(t==16?`0x`:t==2?`0b`:t==8?`0o`:``)+u}return e.s<0?`-`+u:u}function Af(e,t){if(e.length>t)return e.length=t,!0}function jf(e){return new this(e).abs()}function Mf(e){return new this(e).acos()}function Nf(e){return new this(e).acosh()}function Pf(e,t){return new this(e).plus(t)}function Ff(e){return new this(e).asin()}function If(e){return new this(e).asinh()}function Lf(e){return new this(e).atan()}function Rf(e){return new this(e).atanh()}function zf(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,a=r+4;return!e.s||!t.s?n=new this(NaN):!e.d&&!t.d?(n=mf(this,a,1).times(t.s>0?.25:.75),n.s=e.s):!t.d||e.isZero()?(n=t.s<0?mf(this,r,i):new this(0),n.s=e.s):!e.d||t.isZero()?(n=mf(this,a,1).times(.5),n.s=e.s):t.s<0?(this.precision=a,this.rounding=1,n=this.atan(uf(e,t,a,1)),t=mf(this,a,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(uf(e,t,a,1)),n}function Bf(e){return new this(e).cbrt()}function Vf(e){return J(e=new this(e),e.e+1,2)}function Hf(e,t,n){return new this(e).clamp(t,n)}function Uf(e){if(!e||typeof e!=`object`)throw Error(Ud+`Object expected`);var t,n,r,i=e.defaults===!0,a=[`precision`,1,Id,`rounding`,0,8,`toExpNeg`,-Fd,0,`toExpPos`,0,Fd,`maxE`,0,Fd,`minE`,-Fd,0,`modulo`,0,9];for(t=0;t<a.length;t+=3)if(n=a[t],i&&(this[n]=Bd[n]),(r=e[n])!==void 0)if(Jd(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Wd+n+`: `+r);if(n=`crypto`,i&&(this[n]=Bd[n]),(r=e[n])!==void 0)if(r===!0||r===!1||r===0||r===1)if(r)if(typeof crypto<`u`&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(Kd);else this[n]=!1;else throw Error(Wd+n+`: `+r);return this}function Wf(e){return new this(e).cos()}function Gf(e){return new this(e).cosh()}function Kf(e){var t,n,r;function i(e){var t,n,r,a=this;if(!(a instanceof i))return new i(e);if(a.constructor=i,Zf(e)){a.s=e.s,G?!e.d||e.e>i.maxE?(a.e=NaN,a.d=null):e.e<i.minE?(a.e=0,a.d=[0]):(a.e=e.e,a.d=e.d.slice()):(a.e=e.e,a.d=e.d?e.d.slice():e.d);return}if(r=typeof e,r===`number`){if(e===0){a.s=1/e<0?-1:1,a.e=0,a.d=[0];return}if(e<0?(e=-e,a.s=-1):a.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;G?t>i.maxE?(a.e=NaN,a.d=null):t<i.minE?(a.e=0,a.d=[0]):(a.e=t,a.d=[e]):(a.e=t,a.d=[e]);return}if(e*0!=0){e||(a.s=NaN),a.e=NaN,a.d=null;return}return Cf(a,e.toString())}if(r===`string`)return(n=e.charCodeAt(0))===45?(e=e.slice(1),a.s=-1):(n===43&&(e=e.slice(1)),a.s=1),$d.test(e)?Cf(a,e):wf(a,e);if(r===`bigint`)return e<0?(e=-e,a.s=-1):a.s=1,Cf(a,e.toString());throw Error(Wd+e)}if(i.prototype=q,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=Uf,i.clone=Kf,i.isDecimal=Zf,i.abs=jf,i.acos=Mf,i.acosh=Nf,i.add=Pf,i.asin=Ff,i.asinh=If,i.atan=Lf,i.atanh=Rf,i.atan2=zf,i.cbrt=Bf,i.ceil=Vf,i.clamp=Hf,i.cos=Wf,i.cosh=Gf,i.div=qf,i.exp=Jf,i.floor=Yf,i.hypot=Xf,i.ln=Qf,i.log=$f,i.log10=tp,i.log2=ep,i.max=np,i.min=rp,i.mod=ip,i.mul=ap,i.pow=op,i.random=sp,i.round=cp,i.sign=lp,i.sin=up,i.sinh=dp,i.sqrt=fp,i.sub=pp,i.sum=mp,i.tan=hp,i.tanh=gp,i.trunc=_p,e===void 0&&(e={}),e&&e.defaults!==!0)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`maxE`,`minE`,`modulo`,`crypto`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function qf(e,t){return new this(e).div(t)}function Jf(e){return new this(e).exp()}function Yf(e){return J(e=new this(e),e.e+1,3)}function Xf(){var e,t,n=new this(0);for(G=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return G=!0,new this(1/0);n=t}return G=!0,n.sqrt()}function Zf(e){return e instanceof vp||e&&e.toStringTag===qd||!1}function Qf(e){return new this(e).ln()}function $f(e,t){return new this(e).log(t)}function ep(e){return new this(e).log(2)}function tp(e){return new this(e).log(10)}function np(){return yf(this,arguments,-1)}function rp(){return yf(this,arguments,1)}function ip(e,t){return new this(e).mod(t)}function ap(e,t){return new this(e).mul(t)}function op(e,t){return new this(e).pow(t)}function sp(e){var t,n,r,i,a=0,o=new this(1),s=[];if(e===void 0?e=this.precision:of(e,1,Id),r=Math.ceil(e/K),!this.crypto)for(;a<r;)s[a++]=Math.random()*1e7|0;else if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));a<r;)i=t[a],i>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);a<r;)i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((t[a+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(t,a):(s.push(i%1e7),a+=4);a=r/4}else throw Error(Kd);for(r=s[--a],e%=K,r&&e&&(i=Yd(10,K-e),s[a]=(r/i|0)*i);s[a]===0;a--)s.pop();if(a<0)n=0,s=[0];else{for(n=-1;s[0]===0;n-=K)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<K&&(n-=K-r)}return o.e=n,o.d=s,o}function cp(e){return J(e=new this(e),e.e+1,this.rounding)}function lp(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function up(e){return new this(e).sin()}function dp(e){return new this(e).sinh()}function fp(e){return new this(e).sqrt()}function pp(e,t){return new this(e).sub(t)}function mp(){var e=0,t=arguments,n=new this(t[e]);for(G=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return G=!0,J(n,this.precision,this.rounding)}function hp(e){return new this(e).tan()}function gp(e){return new this(e).tanh()}function _p(e){return J(e=new this(e),e.e+1,1)}q[Symbol.for(`nodejs.util.inspect.custom`)]=q.toString,q[Symbol.toStringTag]=`Decimal`;var vp=q.constructor=Kf(Bd);Rd=new vp(Rd),zd=new vp(zd);var yp=W(`BigNumber`,[`?on`,`config`],e=>{var{on:t,config:n}=e,r=vp.clone({precision:n.precision,modulo:vp.EUCLID});return r.prototype=Object.create(r.prototype),r.prototype.type=`BigNumber`,r.prototype.isBigNumber=!0,r.prototype.toJSON=function(){return{mathjs:`BigNumber`,value:this.toString()}},r.fromJSON=function(e){return new r(e.value)},t&&t(`config`,function(e,t){e.precision!==t.precision&&r.config({precision:e.precision})}),r},{isClass:!0}),bp=Math.cosh||function(e){return Math.abs(e)<1e-9?1-e:(Math.exp(e)+Math.exp(-e))*.5},xp=Math.sinh||function(e){return Math.abs(e)<1e-9?e:(Math.exp(e)-Math.exp(-e))*.5},Sp=e=>{let t=Math.sin(.5*e);return-2*t*t},Cp=function(e,t){return e=Math.abs(e),t=Math.abs(t),e<t&&([e,t]=[t,e]),e<1e8?Math.sqrt(e*e+t*t):(t/=e,e*Math.sqrt(1+t*t))},wp=function(){throw SyntaxError(`Invalid Param`)};function Tp(e,t){let n=Math.abs(e),r=Math.abs(t);return e===0?Math.log(r):t===0?Math.log(n):n<3e3&&r<3e3?Math.log(e*e+t*t)*.5:(e*=.5,t*=.5,.5*Math.log(e*e+t*t)+Math.LN2)}var Ep={re:0,im:0},Dp=function(e,t){let n=Ep;if(e==null)n.re=n.im=0;else if(t!==void 0)n.re=e,n.im=t;else switch(typeof e){case`object`:if(`im`in e&&`re`in e)n.re=e.re,n.im=e.im;else if(`abs`in e&&`arg`in e){if(!isFinite(e.abs)&&isFinite(e.arg))return Y.INFINITY;n.re=e.abs*Math.cos(e.arg),n.im=e.abs*Math.sin(e.arg)}else if(`r`in e&&`phi`in e){if(!isFinite(e.r)&&isFinite(e.phi))return Y.INFINITY;n.re=e.r*Math.cos(e.phi),n.im=e.r*Math.sin(e.phi)}else e.length===2?(n.re=e[0],n.im=e[1]):wp();break;case`string`:n.im=n.re=0;let t=e.replace(/_/g,``).match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),r=1,i=0;t===null&&wp();for(let e=0;e<t.length;e++){let a=t[e];a===` `||a===` `||a===`
|
|
151
|
+
`||(a===`+`?r++:a===`-`?i++:a===`i`||a===`I`?(r+i===0&&wp(),t[e+1]!==` `&&!isNaN(t[e+1])?(n.im+=parseFloat((i%2?`-`:``)+t[e+1]),e++):n.im+=parseFloat((i%2?`-`:``)+`1`),r=i=0):((r+i===0||isNaN(a))&&wp(),t[e+1]===`i`||t[e+1]===`I`?(n.im+=parseFloat((i%2?`-`:``)+a),e++):n.re+=parseFloat((i%2?`-`:``)+a),r=i=0))}r+i>0&&wp();break;case`number`:n.im=0,n.re=e;break;default:wp()}return isNaN(n.re)||isNaN(n.im),n};function Y(e,t){if(!(this instanceof Y))return new Y(e,t);let n=Dp(e,t);this.re=n.re,this.im=n.im}Y.prototype={re:0,im:0,sign:function(){let e=Cp(this.re,this.im);return new Y(this.re/e,this.im/e)},add:function(e,t){let n=Dp(e,t),r=this.isInfinite(),i=!(isFinite(n.re)&&isFinite(n.im));return r||i?r&&i?Y.NAN:Y.INFINITY:new Y(this.re+n.re,this.im+n.im)},sub:function(e,t){let n=Dp(e,t),r=this.isInfinite(),i=!(isFinite(n.re)&&isFinite(n.im));return r||i?r&&i?Y.NAN:Y.INFINITY:new Y(this.re-n.re,this.im-n.im)},mul:function(e,t){let n=Dp(e,t),r=this.isInfinite(),i=!(isFinite(n.re)&&isFinite(n.im)),a=this.re===0&&this.im===0,o=n.re===0&&n.im===0;return r&&o||i&&a?Y.NAN:r||i?Y.INFINITY:n.im===0&&this.im===0?new Y(this.re*n.re,0):new Y(this.re*n.re-this.im*n.im,this.re*n.im+this.im*n.re)},div:function(e,t){let n=Dp(e,t),r=this.isInfinite(),i=!(isFinite(n.re)&&isFinite(n.im)),a=this.re===0&&this.im===0,o=n.re===0&&n.im===0;if(a&&o||r&&i)return Y.NAN;if(o||r)return Y.INFINITY;if(a||i)return Y.ZERO;if(n.im===0)return new Y(this.re/n.re,this.im/n.re);if(Math.abs(n.re)<Math.abs(n.im)){let e=n.re/n.im,t=n.re*e+n.im;return new Y((this.re*e+this.im)/t,(this.im*e-this.re)/t)}else{let e=n.im/n.re,t=n.im*e+n.re;return new Y((this.re+this.im*e)/t,(this.im-this.re*e)/t)}},pow:function(e,t){let n=Dp(e,t),r=this.re===0&&this.im===0;if(n.re===0&&n.im===0)return Y.ONE;if(n.im===0){if(this.im===0&&this.re>0)return new Y(this.re**+n.re,0);if(this.re===0)switch((n.re%4+4)%4){case 0:return new Y(this.im**+n.re,0);case 1:return new Y(0,this.im**+n.re);case 2:return new Y(-(this.im**+n.re),0);case 3:return new Y(0,-(this.im**+n.re))}}if(r&&n.re>0)return Y.ZERO;let i=Math.atan2(this.im,this.re),a=Tp(this.re,this.im),o=Math.exp(n.re*a-n.im*i),s=n.im*a+n.re*i;return new Y(o*Math.cos(s),o*Math.sin(s))},sqrt:function(){let e=this.re,t=this.im;if(t===0)return e>=0?new Y(Math.sqrt(e),0):new Y(0,Math.sqrt(-e));let n=Cp(e,t),r=Math.sqrt(.5*(n+Math.abs(e))),i=Math.abs(t)/(2*r);return e>=0?new Y(r,t<0?-i:i):new Y(i,t<0?-r:r)},exp:function(){let e=Math.exp(this.re);return this.im===0?new Y(e,0):new Y(e*Math.cos(this.im),e*Math.sin(this.im))},expm1:function(){let e=this.re,t=this.im;return new Y(Math.expm1(e)*Math.cos(t)+Sp(t),Math.exp(e)*Math.sin(t))},log:function(){let e=this.re,t=this.im;return t===0&&e>0?new Y(Math.log(e),0):new Y(Tp(e,t),Math.atan2(t,e))},abs:function(){return Cp(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){let e=this.re,t=this.im;return new Y(Math.sin(e)*bp(t),Math.cos(e)*xp(t))},cos:function(){let e=this.re,t=this.im;return new Y(Math.cos(e)*bp(t),-Math.sin(e)*xp(t))},tan:function(){let e=2*this.re,t=2*this.im,n=Math.cos(e)+bp(t);return new Y(Math.sin(e)/n,xp(t)/n)},cot:function(){let e=2*this.re,t=2*this.im,n=Math.cos(e)-bp(t);return new Y(-Math.sin(e)/n,xp(t)/n)},sec:function(){let e=this.re,t=this.im,n=.5*bp(2*t)+.5*Math.cos(2*e);return new Y(Math.cos(e)*bp(t)/n,Math.sin(e)*xp(t)/n)},csc:function(){let e=this.re,t=this.im,n=.5*bp(2*t)-.5*Math.cos(2*e);return new Y(Math.sin(e)*bp(t)/n,-Math.cos(e)*xp(t)/n)},asin:function(){let e=this.re,t=this.im,n=new Y(t*t-e*e+1,-2*e*t).sqrt(),r=new Y(n.re-t,n.im+e).log();return new Y(r.im,-r.re)},acos:function(){let e=this.re,t=this.im,n=new Y(t*t-e*e+1,-2*e*t).sqrt(),r=new Y(n.re-t,n.im+e).log();return new Y(Math.PI/2-r.im,r.re)},atan:function(){let e=this.re,t=this.im;if(e===0){if(t===1)return new Y(0,1/0);if(t===-1)return new Y(0,-1/0)}let n=e*e+(1-t)*(1-t),r=new Y((1-t*t-e*e)/n,-2*e/n).log();return new Y(-.5*r.im,.5*r.re)},acot:function(){let e=this.re,t=this.im;if(t===0)return new Y(Math.atan2(1,e),0);let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).atan():new Y(e/n,-t/n).atan()},asec:function(){let e=this.re,t=this.im;if(e===0&&t===0)return new Y(0,1/0);let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).acos():new Y(e/n,-t/n).acos()},acsc:function(){let e=this.re,t=this.im;if(e===0&&t===0)return new Y(Math.PI/2,1/0);let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).asin():new Y(e/n,-t/n).asin()},sinh:function(){let e=this.re,t=this.im;return new Y(xp(e)*Math.cos(t),bp(e)*Math.sin(t))},cosh:function(){let e=this.re,t=this.im;return new Y(bp(e)*Math.cos(t),xp(e)*Math.sin(t))},tanh:function(){let e=2*this.re,t=2*this.im,n=bp(e)+Math.cos(t);return new Y(xp(e)/n,Math.sin(t)/n)},coth:function(){let e=2*this.re,t=2*this.im,n=bp(e)-Math.cos(t);return new Y(xp(e)/n,-Math.sin(t)/n)},csch:function(){let e=this.re,t=this.im,n=Math.cos(2*t)-bp(2*e);return new Y(-2*xp(e)*Math.cos(t)/n,2*bp(e)*Math.sin(t)/n)},sech:function(){let e=this.re,t=this.im,n=Math.cos(2*t)+bp(2*e);return new Y(2*bp(e)*Math.cos(t)/n,-2*xp(e)*Math.sin(t)/n)},asinh:function(){let e=this.re,t=this.im;if(t===0){if(e===0)return new Y(0,0);let t=Math.abs(e),n=Math.log(t+Math.sqrt(t*t+1));return new Y(e<0?-n:n,0)}let n=new Y(e*e-t*t+1,2*e*t).sqrt();return new Y(e+n.re,t+n.im).log()},acosh:function(){let e=this.re,t=this.im;if(t===0){if(e>1)return new Y(Math.log(e+Math.sqrt(e-1)*Math.sqrt(e+1)),0);if(e<-1){let t=Math.sqrt(e*e-1);return new Y(Math.log(-e+t),Math.PI)}return new Y(0,Math.acos(e))}let n=new Y(e-1,t).sqrt(),r=new Y(e+1,t).sqrt();return new Y(e+n.re*r.re-n.im*r.im,t+n.re*r.im+n.im*r.re).log()},atanh:function(){let e=this.re,t=this.im;if(t===0){if(e===0)return new Y(0,0);if(e===1)return new Y(1/0,0);if(e===-1)return new Y(-1/0,0);if(-1<e&&e<1)return new Y(.5*Math.log((1+e)/(1-e)),0);if(e>1){let t=(e+1)/(e-1);return new Y(.5*Math.log(t),-Math.PI/2)}let t=(1+e)/(1-e);return new Y(.5*Math.log(-t),Math.PI/2)}let n=1-e,r=1+e,i=n*n+t*t;if(i===0)return new Y(e===-1?0:e/0,t===0?0:t/0);let a=(r*n-t*t)/i,o=(t*n+r*t)/i;return new Y(Tp(a,o)/2,Math.atan2(o,a)/2)},acoth:function(){let e=this.re,t=this.im;if(e===0&&t===0)return new Y(0,Math.PI/2);let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).atanh():new Y(e/n,-t/n).atanh()},acsch:function(){let e=this.re,t=this.im;if(t===0){if(e===0)return new Y(1/0,0);let t=1/e;return new Y(Math.log(t+Math.sqrt(t*t+1)),0)}let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).asinh():new Y(e/n,-t/n).asinh()},asech:function(){let e=this.re,t=this.im;if(this.isZero())return Y.INFINITY;let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).acosh():new Y(e/n,-t/n).acosh()},inverse:function(){if(this.isZero())return Y.INFINITY;if(this.isInfinite())return Y.ZERO;let e=this.re,t=this.im,n=e*e+t*t;return new Y(e/n,-t/n)},conjugate:function(){return new Y(this.re,-this.im)},neg:function(){return new Y(-this.re,-this.im)},ceil:function(e){return e=10**(e||0),new Y(Math.ceil(this.re*e)/e,Math.ceil(this.im*e)/e)},floor:function(e){return e=10**(e||0),new Y(Math.floor(this.re*e)/e,Math.floor(this.im*e)/e)},round:function(e){return e=10**(e||0),new Y(Math.round(this.re*e)/e,Math.round(this.im*e)/e)},equals:function(e,t){let n=Dp(e,t);return Math.abs(n.re-this.re)<=Y.EPSILON&&Math.abs(n.im-this.im)<=Y.EPSILON},clone:function(){return new Y(this.re,this.im)},toString:function(){let e=this.re,t=this.im,n=``;return this.isNaN()?`NaN`:this.isInfinite()?`Infinity`:(Math.abs(e)<Y.EPSILON&&(e=0),Math.abs(t)<Y.EPSILON&&(t=0),t===0?n+e:(e===0?t<0&&(t=-t,n+=`-`):(n+=e,n+=` `,t<0?(t=-t,n+=`-`):n+=`+`,n+=` `),t!==1&&(n+=t),n+`i`))},toVector:function(){return[this.re,this.im]},valueOf:function(){return this.im===0?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return this.im===0&&this.re===0},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!this.isFinite()}},Y.ZERO=new Y(0,0),Y.ONE=new Y(1,0),Y.I=new Y(0,1),Y.PI=new Y(Math.PI,0),Y.E=new Y(Math.E,0),Y.INFINITY=new Y(1/0,1/0),Y.NAN=new Y(NaN,NaN),Y.EPSILON=1e-15;var Op=W(`Complex`,[],()=>(Object.defineProperty(Y,"name",{value:`Complex`}),Y.prototype.constructor=Y,Y.prototype.type=`Complex`,Y.prototype.isComplex=!0,Y.prototype.toJSON=function(){return{mathjs:`Complex`,re:this.re,im:this.im}},Y.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},Y.prototype.format=function(e){var t=``,n=this.im,r=this.re,i=hd(this.re,e),a=hd(this.im,e),o=ou(e)?e:e?e.precision:null;if(o!==null){var s=10**-o;Math.abs(r/n)<s&&(r=0),Math.abs(n/r)<s&&(n=0)}return t=n===0?i:r===0?n===1?`i`:n===-1?`-i`:a+`i`:n<0?n===-1?i+` - i`:i+` - `+a.substring(1)+`i`:n===1?i+` + i`:i+` + `+a+`i`,t},Y.fromPolar=function(e){switch(arguments.length){case 1:var t=arguments[0];if(typeof t==`object`)return Y(t);throw TypeError(`Input has to be an object with r and phi keys.`);case 2:var n=arguments[0],r=arguments[1];if(ou(n)){if(du(r)&&r.hasBase(`ANGLE`)&&(r=r.toNumber(`rad`)),ou(r))return new Y({r:n,phi:r});throw TypeError(`Phi is not a number nor an angle unit.`)}else throw TypeError(`Radius r is not a number.`);default:throw SyntaxError(`Wrong number of arguments in function fromPolar`)}},Y.prototype.valueOf=Y.prototype.toString,Y.fromJSON=function(e){return new Y(e)},Y.compare=function(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0},Y),{isClass:!0}),kp=2e3,X={s:1,n:0,d:1};function Ap(e,t){if(isNaN(e=parseInt(e,10)))throw Bp();return e*t}function jp(e,t){if(t===0)throw zp();var n=Object.create(Rp.prototype);n.s=e<0?-1:1,e=e<0?-e:e;var r=Lp(e,t);return n.n=e/r,n.d=t/r,n}function Mp(e){for(var t={},n=e,r=2,i=4;i<=n;){for(;n%r===0;)n/=r,t[r]=(t[r]||0)+1;i+=1+2*r++}return n===e?t[e]=(t[e]||0)+1:n>1&&(t[n]=(t[n]||0)+1),t}var Np=function(e,t){var n=0,r=1,i=1,a=0,o=0,s=0,c=1,l=1,u=0,d=1,f=1,p=1,m=1e7,h;if(e!=null)if(t!==void 0){if(n=e,r=t,i=n*r,n%1!=0||r%1!=0)throw Vp()}else switch(typeof e){case`object`:if(`d`in e&&`n`in e)n=e.n,r=e.d,`s`in e&&(n*=e.s);else if(0 in e)n=e[0],1 in e&&(r=e[1]);else throw Bp();i=n*r;break;case`number`:if(e<0&&(i=e,e=-e),e%1==0)n=e;else if(e>0){for(e>=1&&(l=10**Math.floor(1+Math.log(e)/Math.LN10),e/=l);d<=m&&p<=m;)if(h=(u+f)/(d+p),e===h){d+p<=m?(n=u+f,r=d+p):p>d?(n=f,r=p):(n=u,r=d);break}else e>h?(u+=f,d+=p):(f+=u,p+=d),d>m?(n=f,r=p):(n=u,r=d);n*=l}else(isNaN(e)||isNaN(t))&&(r=n=NaN);break;case`string`:if(d=e.match(/\d+|./g),d===null)throw Bp();if(d[u]===`-`?(i=-1,u++):d[u]===`+`&&u++,d.length===u+1?o=Ap(d[u++],i):d[u+1]===`.`||d[u]===`.`?(d[u]!==`.`&&(a=Ap(d[u++],i)),u++,(u+1===d.length||d[u+1]===`(`&&d[u+3]===`)`||d[u+1]===`'`&&d[u+3]===`'`)&&(o=Ap(d[u],i),c=10**d[u].length,u++),(d[u]===`(`&&d[u+2]===`)`||d[u]===`'`&&d[u+2]===`'`)&&(s=Ap(d[u+1],i),l=10**d[u+1].length-1,u+=3)):d[u+1]===`/`||d[u+1]===`:`?(o=Ap(d[u],i),c=Ap(d[u+2],1),u+=3):d[u+3]===`/`&&d[u+1]===` `&&(a=Ap(d[u],i),o=Ap(d[u+2],i),c=Ap(d[u+4],1),u+=5),d.length<=u){r=c*l,i=n=s+r*a+l*o;break}default:throw Bp()}if(r===0)throw zp();X.s=i<0?-1:1,X.n=Math.abs(n),X.d=Math.abs(r)};function Pp(e,t,n){for(var r=1;t>0;e=e*e%n,t>>=1)t&1&&(r=r*e%n);return r}function Fp(e,t){for(;t%2==0;t/=2);for(;t%5==0;t/=5);if(t===1)return 0;for(var n=10%t,r=1;n!==1;r++)if(n=n*10%t,r>kp)return 0;return r}function Ip(e,t,n){for(var r=1,i=Pp(10,n,t),a=0;a<300;a++){if(r===i)return a;r=r*10%t,i=i*10%t}return 0}function Lp(e,t){if(!e)return t;if(!t)return e;for(;;){if(e%=t,!e)return t;if(t%=e,!t)return e}}function Rp(e,t){if(Np(e,t),this instanceof Rp)e=Lp(X.d,X.n),this.s=X.s,this.n=X.n/e,this.d=X.d/e;else return jp(X.s*X.n,X.d)}var zp=function(){return Error(`Division by Zero`)},Bp=function(){return Error(`Invalid argument`)},Vp=function(){return Error(`Parameters must be integer`)};Rp.prototype={s:1,n:0,d:1,abs:function(){return jp(this.n,this.d)},neg:function(){return jp(-this.s*this.n,this.d)},add:function(e,t){return Np(e,t),jp(this.s*this.n*X.d+X.s*this.d*X.n,this.d*X.d)},sub:function(e,t){return Np(e,t),jp(this.s*this.n*X.d-X.s*this.d*X.n,this.d*X.d)},mul:function(e,t){return Np(e,t),jp(this.s*X.s*this.n*X.n,this.d*X.d)},div:function(e,t){return Np(e,t),jp(this.s*X.s*this.n*X.d,this.d*X.n)},clone:function(){return jp(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new Rp(NaN);if(e===void 0)return jp(this.s*this.n%this.d,1);if(Np(e,t),X.n===0&&this.d===0)throw zp();return jp(this.s*(X.d*this.n)%(X.n*this.d),X.d*this.d)},gcd:function(e,t){return Np(e,t),jp(Lp(X.n,this.n)*Lp(X.d,this.d),X.d*this.d)},lcm:function(e,t){return Np(e,t),X.n===0&&this.n===0?jp(0,1):jp(X.n*this.n,Lp(X.n,this.n)*Lp(X.d,this.d))},ceil:function(e){return e=10**(e||0),isNaN(this.n)||isNaN(this.d)?new Rp(NaN):jp(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return e=10**(e||0),isNaN(this.n)||isNaN(this.d)?new Rp(NaN):jp(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return e=10**(e||0),isNaN(this.n)||isNaN(this.d)?new Rp(NaN):jp(Math.round(e*this.s*this.n/this.d),e)},roundTo:function(e,t){return Np(e,t),jp(this.s*Math.round(this.n*X.d/(this.d*X.n))*X.n,X.d)},inverse:function(){return jp(this.s*this.d,this.n)},pow:function(e,t){if(Np(e,t),X.d===1)return X.s<0?jp((this.s*this.d)**+X.n,this.n**+X.n):jp((this.s*this.n)**+X.n,this.d**+X.n);if(this.s<0)return null;var n=Mp(this.n),r=Mp(this.d),i=1,a=1;for(var o in n)if(o!==`1`){if(o===`0`){i=0;break}if(n[o]*=X.n,n[o]%X.d===0)n[o]/=X.d;else return null;i*=o**+n[o]}for(var o in r)if(o!==`1`){if(r[o]*=X.n,r[o]%X.d===0)r[o]/=X.d;else return null;a*=o**+r[o]}return X.s<0?jp(a,i):jp(i,a)},equals:function(e,t){return Np(e,t),this.s*this.n*X.d===X.s*X.n*this.d},compare:function(e,t){Np(e,t);var n=this.s*this.n*X.d-X.s*X.n*this.d;return(0<n)-(n<0)},simplify:function(e){if(isNaN(this.n)||isNaN(this.d))return this;e||=.001;for(var t=this.abs(),n=t.toContinued(),r=1;r<n.length;r++){for(var i=jp(n[r-1],1),a=r-2;a>=0;a--)i=i.inverse().add(n[a]);if(Math.abs(i.sub(t).valueOf())<e)return i.mul(this.s)}return this},divisible:function(e,t){return Np(e,t),!(!(X.n*this.d)||this.n*X.d%(X.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(e){var t,n=``,r=this.n,i=this.d;return this.s<0&&(n+=`-`),i===1?n+=r:(e&&(t=Math.floor(r/i))>0&&(n+=t,n+=` `,r%=i),n+=r,n+=`/`,n+=i),n},toLatex:function(e){var t,n=``,r=this.n,i=this.d;return this.s<0&&(n+=`-`),i===1?n+=r:(e&&(t=Math.floor(r/i))>0&&(n+=t,r%=i),n+=`\\frac{`,n+=r,n+=`}{`,n+=i,n+=`}`),n},toContinued:function(){var e,t=this.n,n=this.d,r=[];if(isNaN(t)||isNaN(n))return r;do r.push(Math.floor(t/n)),e=t%n,t=n,n=e;while(t!==1);return r},toString:function(e){var t=this.n,n=this.d;if(isNaN(t)||isNaN(n))return`NaN`;e||=15;var r=Fp(t,n),i=Ip(t,n,r),a=this.s<0?`-`:``;if(a+=t/n|0,t%=n,t*=10,t&&(a+=`.`),r){for(var o=i;o--;)a+=t/n|0,t%=n,t*=10;a+=`(`;for(var o=r;o--;)a+=t/n|0,t%=n,t*=10;a+=`)`}else for(var o=e;t&&o--;)a+=t/n|0,t%=n,t*=10;return a}};var Hp=W(`Fraction`,[],()=>(Object.defineProperty(Rp,"name",{value:`Fraction`}),Rp.prototype.constructor=Rp,Rp.prototype.type=`Fraction`,Rp.prototype.isFraction=!0,Rp.prototype.toJSON=function(){return{mathjs:`Fraction`,n:this.s*this.n,d:this.d}},Rp.fromJSON=function(e){return new Rp(e)},Rp),{isClass:!0}),Up=W(`Matrix`,[],()=>{function e(){if(!(this instanceof e))throw SyntaxError(`Constructor must be called with the new operator`)}return e.prototype.type=`Matrix`,e.prototype.isMatrix=!0,e.prototype.storage=function(){throw Error(`Cannot invoke storage on a Matrix interface`)},e.prototype.datatype=function(){throw Error(`Cannot invoke datatype on a Matrix interface`)},e.prototype.create=function(e,t){throw Error(`Cannot invoke create on a Matrix interface`)},e.prototype.subset=function(e,t,n){throw Error(`Cannot invoke subset on a Matrix interface`)},e.prototype.get=function(e){throw Error(`Cannot invoke get on a Matrix interface`)},e.prototype.set=function(e,t,n){throw Error(`Cannot invoke set on a Matrix interface`)},e.prototype.resize=function(e,t){throw Error(`Cannot invoke resize on a Matrix interface`)},e.prototype.reshape=function(e,t){throw Error(`Cannot invoke reshape on a Matrix interface`)},e.prototype.clone=function(){throw Error(`Cannot invoke clone on a Matrix interface`)},e.prototype.size=function(){throw Error(`Cannot invoke size on a Matrix interface`)},e.prototype.map=function(e,t){throw Error(`Cannot invoke map on a Matrix interface`)},e.prototype.forEach=function(e){throw Error(`Cannot invoke forEach on a Matrix interface`)},e.prototype[Symbol.iterator]=function(){throw Error(`Cannot iterate a Matrix interface`)},e.prototype.toArray=function(){throw Error(`Cannot invoke toArray on a Matrix interface`)},e.prototype.valueOf=function(){throw Error(`Cannot invoke valueOf on a Matrix interface`)},e.prototype.format=function(e){throw Error(`Cannot invoke format on a Matrix interface`)},e.prototype.toString=function(){throw Error(`Cannot invoke toString on a Matrix interface`)},e},{isClass:!0});function Wp(e,t,n){var r=e.constructor,i=new r(2),a=``;if(n){if(n<1)throw Error(`size must be in greater than 0`);if(!sd(n))throw Error(`size must be an integer`);if(e.greaterThan(i.pow(n-1).sub(1))||e.lessThan(i.pow(n-1).mul(-1)))throw Error(`Value must be in range [-2^${n-1}, 2^${n-1}-1]`);if(!e.isInteger())throw Error(`Value must be an integer`);e.lessThan(0)&&(e=e.add(i.pow(n))),a=`i${n}`}switch(t){case 2:return`${e.toBinary()}${a}`;case 8:return`${e.toOctal()}${a}`;case 16:return`${e.toHexadecimal()}${a}`;default:throw Error(`Base ${t} not supported `)}}function Gp(e,t){if(typeof t==`function`)return t(e);if(!e.isFinite())return e.isNaN()?`NaN`:e.gt(0)?`Infinity`:`-Infinity`;var{notation:n,precision:r,wordSize:i}=gd(t);switch(n){case`fixed`:return Jp(e,r);case`exponential`:return qp(e,r);case`engineering`:return Kp(e,r);case`bin`:return Wp(e,2,i);case`oct`:return Wp(e,8,i);case`hex`:return Wp(e,16,i);case`auto`:var a=Yp(t?.lowerExp,-3),o=Yp(t?.upperExp,5);if(e.isZero())return`0`;var s,c=e.toSignificantDigits(r),l=c.e;return s=l>=a&&l<o?c.toFixed():qp(e,r),s.replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return e===`.`?t:e+t});default:throw Error(`Unknown notation "`+n+`". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.`)}}function Kp(e,t){var n=e.e,r=n%3==0?n:n<0?n-3-n%3:n-n%3,i=e.mul(10**-r).toPrecision(t);if(i.includes(`e`)){var a=e.constructor;i=new a(i).toFixed()}return i+`e`+(n>=0?`+`:``)+r.toString()}function qp(e,t){return t===void 0?e.toExponential():e.toExponential(t-1)}function Jp(e,t){return e.toFixed(t)}function Yp(e,t){return ou(e)?e:su(e)?e.toNumber():t}function Xp(e,t){var n=Zp(e,t);return t&&typeof t==`object`&&`truncate`in t&&n.length>t.truncate?n.substring(0,t.truncate-3)+`...`:n}function Zp(e,t){return typeof e==`number`?hd(e,t):su(e)?Gp(e,t):tm(e)?!t||t.fraction!==`decimal`?e.s*e.n+`/`+e.d:e.toString():Array.isArray(e)?em(e,t):fu(e)?Qp(e):typeof e==`function`?e.syntax?String(e.syntax):`function`:e&&typeof e==`object`?typeof e.format==`function`?e.format(t):e&&e.toString(t)!=={}.toString()?e.toString(t):`{`+Object.keys(e).map(n=>Qp(n)+`: `+Xp(e[n],t)).join(`, `)+`}`:String(e)}function Qp(e){for(var t=String(e),n=``,r=0;r<t.length;){var i=t.charAt(r);n+=i in $p?$p[i]:i,r++}return`"`+n+`"`}var $p={'"':`\\"`,"\\":`\\\\`,"\b":`\\b`,"\f":`\\f`,"\n":`\\n`,"\r":`\\r`," ":`\\t`};function em(e,t){if(Array.isArray(e)){for(var n=`[`,r=e.length,i=0;i<r;i++)i!==0&&(n+=`, `),n+=em(e[i],t);return n+=`]`,n}else return Xp(e,t)}function tm(e){return e&&typeof e==`object`&&typeof e.s==`number`&&typeof e.n==`number`&&typeof e.d==`number`||!1}function nm(e,t,n){if(!(this instanceof nm))throw SyntaxError(`Constructor must be called with the new operator`);this.actual=e,this.expected=t,this.relation=n,this.message=`Dimension mismatch (`+(Array.isArray(e)?`[`+e.join(`, `)+`]`:e)+` `+(this.relation||`!=`)+` `+(Array.isArray(t)?`[`+t.join(`, `)+`]`:t)+`)`,this.stack=Error().stack}nm.prototype=RangeError(),nm.prototype.constructor=RangeError,nm.prototype.name=`DimensionError`,nm.prototype.isDimensionError=!0;function rm(e,t,n){if(!(this instanceof rm))throw SyntaxError(`Constructor must be called with the new operator`);this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=n),this.min!==void 0&&this.index<this.min?this.message=`Index out of range (`+this.index+` < `+this.min+`)`:this.max!==void 0&&this.index>=this.max?this.message=`Index out of range (`+this.index+` > `+(this.max-1)+`)`:this.message=`Index out of range (`+this.index+`)`,this.stack=Error().stack}rm.prototype=RangeError(),rm.prototype.constructor=RangeError,rm.prototype.name=`IndexError`,rm.prototype.isIndexError=!0;function im(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function am(e,t,n){var r,i=e.length;if(i!==t[n])throw new nm(i,t[n]);if(n<t.length-1){var a=n+1;for(r=0;r<i;r++){var o=e[r];if(!Array.isArray(o))throw new nm(t.length-1,t.length,`<`);am(e[r],t,a)}}else for(r=0;r<i;r++)if(Array.isArray(e[r]))throw new nm(t.length+1,t.length,`>`)}function om(e,t){if(t.length===0){if(Array.isArray(e))throw new nm(e.length,0)}else am(e,t,0)}function sm(e,t){if(e!==void 0){if(!ou(e)||!sd(e))throw TypeError(`Index must be an integer (value: `+e+`)`);if(e<0||typeof t==`number`&&e>=t)throw new rm(e,t)}}function cm(e,t,n){if(!Array.isArray(t))throw TypeError(`Array expected`);if(t.length===0)throw Error(`Resizing to scalar is not supported`);return t.forEach(function(e){if(!ou(e)||!sd(e)||e<0)throw TypeError(`Invalid size, must contain positive integers (size: `+Xp(t)+`)`)}),(ou(e)||su(e))&&(e=[e]),lm(e,t,0,n===void 0?0:n),e}function lm(e,t,n,r){var i,a,o=e.length,s=t[n],c=Math.min(o,s);if(e.length=s,n<t.length-1){var l=n+1;for(i=0;i<c;i++)a=e[i],Array.isArray(a)||(a=[a],e[i]=a),lm(a,t,l,r);for(i=c;i<s;i++)a=[],e[i]=a,lm(a,t,l,r)}else{for(i=0;i<c;i++)for(;Array.isArray(e[i]);)e[i]=e[i][0];for(i=c;i<s;i++)e[i]=r}}function um(e,t){var n=gm(e),r=n.length;if(!Array.isArray(e)||!Array.isArray(t))throw TypeError(`Array expected`);if(t.length===0)throw new nm(0,r,`!=`);t=dm(t,r);var i=fm(t);if(r!==i)throw new nm(i,r,`!=`);try{return pm(n,t)}catch(e){throw e instanceof nm?new nm(i,r,`!=`):e}}function dm(e,t){var n=fm(e),r=e.slice(),i=-1,a=e.indexOf(i);if(e.indexOf(i,a+1)>=0)throw Error(`More than one wildcard in sizes`);var o=a>=0,s=t%n===0;if(o)if(s)r[a]=-t/n;else throw Error(`Could not replace wildcard, since `+t+` is no multiple of `+-n);return r}function fm(e){return e.reduce((e,t)=>e*t,1)}function pm(e,t){for(var n=e,r,i=t.length-1;i>0;i--){var a=t[i];r=[];for(var o=n.length/a,s=0;s<o;s++)r.push(n.slice(s*a,(s+1)*a));n=r}return n}function mm(e,t,n,r){var i=r||im(e);if(n)for(var a=0;a<n;a++)e=[e],i.unshift(1);for(e=hm(e,t,0);i.length<t;)i.push(1);return e}function hm(e,t,n){var r,i;if(Array.isArray(e)){var a=n+1;for(r=0,i=e.length;r<i;r++)e[r]=hm(e[r],t,a)}else for(var o=n;o<t;o++)e=[e];return e}function gm(e){if(!Array.isArray(e))return e;var t=[];return e.forEach(function e(n){Array.isArray(n)?n.forEach(e):t.push(n)}),t}function _m(e,t){for(var n,r=0,i=0;i<e.length;i++){var a=e[i],o=Array.isArray(a);if(i===0&&o&&(r=a.length),o&&a.length!==r)return;var s=o?_m(a,t):t(a);if(n===void 0)n=s;else if(n!==s)return`mixed`}return n}function vm(e,t,n,r){if(r<n){if(e.length!==t.length)throw new nm(e.length,t.length);for(var i=[],a=0;a<e.length;a++)i[a]=vm(e[a],t[a],n,r+1);return i}else return e.concat(t)}function ym(){var e=Array.prototype.slice.call(arguments,0,-1),t=Array.prototype.slice.call(arguments,-1);if(e.length===1)return e[0];if(e.length>1)return e.slice(1).reduce(function(e,n){return vm(e,n,t,0)},e[0]);throw Error(`Wrong number of arguments in function concat`)}function bm(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t.map(e=>e.length),i=Math.max(...r),a=Array(i).fill(null),o=0;o<t.length;o++)for(var s=t[o],c=r[o],l=0;l<c;l++){var u=i-c+l;s[l]>a[u]&&(a[u]=s[l])}for(var d=0;d<t.length;d++)xm(t[d],a);return a}function xm(e,t){for(var n=t.length,r=e.length,i=0;i<r;i++){var a=n-r+i;if(e[i]<t[a]&&e[i]>1||e[i]>t[a])throw Error(`shape missmatch: missmatch is found in arg with shape (${e}) not possible to broadcast dimension ${r} with size ${e[i]} to size ${t[a]}`)}}function Sm(e,t){var n=im(e);if(Zu(n,t))return e;xm(n,t);var r=bm(n,t),i=r.length,a=[...Array(i-n.length).fill(1),...n],o=Tm(e);n.length<i&&(o=um(o,a),n=im(o));for(var s=0;s<i;s++)n[s]<r[s]&&(o=Cm(o,r[s],s),n=im(o));return o}function Cm(e,t,n){return ym(...Array(t).fill(e),n)}function wm(e,t){if(!Array.isArray(e))throw Error(`Array expected`);var n=im(e);if(t.length!==n.length)throw new nm(t.length,n.length);for(var r=0;r<t.length;r++)sm(t[r],n[r]);return t.reduce((e,t)=>e[t],e)}function Tm(e){return y([],e)}function Em(e,t,n){if(Od.default.isTypedFunction(e)){var r=(t.isMatrix?t.size():im(t)).map(()=>0),i=t.isMatrix?t.get(r):wm(t,r),a=Object.keys(e.signatures).length===1,o=Dm(e,i,r,t),s=a?Object.values(e.signatures)[0]:e;return o>=1&&o<=3?function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return Om(s,r.slice(0,o),n,e.name)}:function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return Om(s,r,n,e.name)}}return e}function Dm(e,t,n,r){for(var i=[t,n,r],a=3;a>0;a--){var o=i.slice(0,a);if(Od.default.resolve(e,o)!==null)return a}}function Om(e,t,n,r){try{return e(...t)}catch(e){km(e,t,n,r)}}function km(e,t,n,r){if(e instanceof TypeError&&e.data?.category===`wrongType`){var i=[];throw i.push(`value: ${qu(t[0])}`),t.length>=2&&i.push(`index: ${qu(t[1])}`),t.length>=3&&i.push(`array: ${qu(t[2])}`),TypeError(`Function ${n} cannot apply callback arguments ${r}(${i.join(`, `)}) at index ${JSON.stringify(t[1])}`)}else throw TypeError(`Function ${n} cannot apply callback arguments to function ${r}: ${e.message}`)}var Am=W(`DenseMatrix`,[`Matrix`],e=>{var{Matrix:t}=e;function n(e,t){if(!(this instanceof n))throw SyntaxError(`Constructor must be called with the new operator`);if(t&&!fu(t))throw Error(`Invalid datatype: `+t);if(mu(e))e.type===`DenseMatrix`?(this._data=Ju(e._data),this._size=Ju(e._size),this._datatype=t||e._datatype):(this._data=e.toArray(),this._size=e.size(),this._datatype=t||e._datatype);else if(e&&pu(e.data)&&pu(e.size))this._data=e.data,this._size=e.size,om(this._data,this._size),this._datatype=t||e.datatype;else if(pu(e))this._data=l(e),this._size=im(this._data),om(this._data,this._size),this._datatype=t;else if(e)throw TypeError(`Unsupported type of data (`+qu(e)+`)`);else this._data=[],this._size=[0],this._datatype=t}n.prototype=new t,n.prototype.createDenseMatrix=function(e,t){return new n(e,t)},Object.defineProperty(n,"name",{value:`DenseMatrix`}),n.prototype.constructor=n,n.prototype.type=`DenseMatrix`,n.prototype.isDenseMatrix=!0,n.prototype.getDataType=function(){return _m(this._data,qu)},n.prototype.storage=function(){return`dense`},n.prototype.datatype=function(){return this._datatype},n.prototype.create=function(e,t){return new n(e,t)},n.prototype.subset=function(e,t,n){switch(arguments.length){case 1:return r(this,e);case 2:case 3:return a(this,e,t,n);default:throw SyntaxError(`Wrong number of arguments`)}},n.prototype.get=function(e){return wm(this._data,e)},n.prototype.set=function(e,t,n){if(!pu(e))throw TypeError(`Array expected`);if(e.length<this._size.length)throw new nm(e.length,this._size.length,`<`);var r,i,a,o=e.map(function(e){return e+1});c(this,o,n);var s=this._data;for(r=0,i=e.length-1;r<i;r++)a=e[r],sm(a,s.length),s=s[a];return a=e[e.length-1],sm(a,s.length),s[a]=t,this};function r(e,t){if(!yu(t))throw TypeError(`Invalid index`);if(t.isScalar())return e.get(t.min());var r=t.size();if(r.length!==e._size.length)throw new nm(r.length,e._size.length);for(var a=t.min(),o=t.max(),s=0,c=e._size.length;s<c;s++)sm(a[s],e._size[s]),sm(o[s],e._size[s]);return new n(i(e._data,t,r.length,0),e._datatype)}function i(e,t,n,r){var a=r===n-1,o=t.dimension(r);return a?o.map(function(t){return sm(t,e.length),e[t]}).valueOf():o.map(function(a){sm(a,e.length);var o=e[a];return i(o,t,n,r+1)}).valueOf()}function a(e,t,n,r){if(!t||t.isIndex!==!0)throw TypeError(`Invalid index`);var i=t.size(),a=t.isScalar(),s;if(mu(n)?(s=n.size(),n=n.valueOf()):s=im(n),a){if(s.length!==0)throw TypeError(`Scalar expected`);e.set(t.min(),n,r)}else{if(!Zu(s,i))try{n=s.length===0?Sm([n],i):Sm(n,i),s=im(n)}catch{}if(i.length<e._size.length)throw new nm(i.length,e._size.length,`<`);if(s.length<i.length){for(var l=0,u=0;i[l]===1&&s[l]===1;)l++;for(;i[l]===1;)u++,l++;n=mm(n,i.length,u,s)}if(!Zu(i,s))throw new nm(i,s,`>`);c(e,t.max().map(function(e){return e+1}),r);var d=i.length;o(e._data,t,n,d,0)}return e}function o(e,t,n,r,i){var a=i===r-1,s=t.dimension(i);a?s.forEach(function(t,r){sm(t),e[t]=n[r[0]]}):s.forEach(function(a,s){sm(a),o(e[a],t,n[s[0]],r,i+1)})}n.prototype.resize=function(e,t,n){if(!hu(e))throw TypeError(`Array or Matrix expected`);var r=e.valueOf().map(e=>Array.isArray(e)&&e.length===1?e[0]:e);return s(n?this.clone():this,r,t)};function s(e,t,n){if(t.length===0){for(var r=e._data;pu(r);)r=r[0];return r}return e._size=t.slice(0),e._data=cm(e._data,e._size,n),e}n.prototype.reshape=function(e,t){var n=t?this.clone():this;return n._data=um(n._data,e),n._size=dm(e,n._size.reduce((e,t)=>e*t)),n};function c(e,t,n){for(var r=e._size.slice(0),i=!1;r.length<t.length;)r.push(0),i=!0;for(var a=0,o=t.length;a<o;a++)t[a]>r[a]&&(r[a]=t[a],i=!0);i&&s(e,r,n)}n.prototype.clone=function(){return new n({data:Ju(this._data),size:Ju(this._size),datatype:this._datatype})},n.prototype.size=function(){return this._size.slice(0)},n.prototype._forEach=function(e){var t=this,n=t.size();if(n.length===1){for(var r=0;r<n[0];r++)e(t._data,r,[r]);return}var i=Array(n.length).fill(0),a=Array(n.length-1),o=a.length-1;a[0]=t._data[0];for(var s=0;s<o;s++)a[s+1]=a[s][0];for(i[o]=-1;;){var c=void 0;for(c=o;c>=0;c--){if(i[c]++,i[c]===n[c]){i[c]=0;continue}a[c]=c===0?t._data[i[c]]:a[c-1][i[c]];for(var l=c;l<o;l++)a[l+1]=a[l][0];for(var u=0;u<n[a.length];u++)i[a.length]=u,e(a[o],u,i.slice(0));break}if(c===-1)break}},n.prototype.map=function(e){var t=this,r=new n(t),i=Em(e,t._data,`map`);return r._forEach(function(e,n,r){e[n]=i(e[n],r,t)}),r},n.prototype.forEach=function(e){var t=this,n=Em(e,t._data,`map`);t._forEach(function(e,r,i){n(e[r],i,t)})},n.prototype[Symbol.iterator]=function*(){var e=function*(t,n){if(pu(t))for(var r=0;r<t.length;r++)yield*e(t[r],n.concat(r));else yield{value:t,index:n}};yield*e(this._data,[])},n.prototype.rows=function(){var e=[];if(this.size().length!==2)throw TypeError(`Rows can only be returned for a 2D matrix.`);for(var t of this._data)e.push(new n([t],this._datatype));return e},n.prototype.columns=function(){var e=this,t=[],r=this.size();if(r.length!==2)throw TypeError(`Rows can only be returned for a 2D matrix.`);for(var i=this._data,a=function(r){var a=i.map(e=>[e[r]]);t.push(new n(a,e._datatype))},o=0;o<r[1];o++)a(o);return t},n.prototype.toArray=function(){return Ju(this._data)},n.prototype.valueOf=function(){return this._data},n.prototype.format=function(e){return Xp(this._data,e)},n.prototype.toString=function(){return Xp(this._data)},n.prototype.toJSON=function(){return{mathjs:`DenseMatrix`,data:this._data,size:this._size,datatype:this._datatype}},n.prototype.diagonal=function(e){if(e){if(su(e)&&(e=e.toNumber()),!ou(e)||!sd(e))throw TypeError(`The parameter k must be an integer number`)}else e=0;for(var t=e>0?e:0,r=e<0?-e:0,i=this._size[0],a=this._size[1],o=Math.min(i-r,a-t),s=[],c=0;c<o;c++)s[c]=this._data[c+r][c+t];return new n({data:s,size:[o],datatype:this._datatype})},n.diagonal=function(e,t,r,i){if(!pu(e))throw TypeError(`Array expected, size parameter`);if(e.length!==2)throw Error(`Only two dimensions matrix are supported`);if(e=e.map(function(e){if(su(e)&&(e=e.toNumber()),!ou(e)||!sd(e)||e<1)throw Error(`Size values must be positive integers`);return e}),r){if(su(r)&&(r=r.toNumber()),!ou(r)||!sd(r))throw TypeError(`The parameter k must be an integer number`)}else r=0;var a=r>0?r:0,o=r<0?-r:0,s=e[0],c=e[1],l=Math.min(s-o,c-a),u;if(pu(t)){if(t.length!==l)throw Error(`Invalid value array length`);u=function(e){return t[e]}}else if(mu(t)){var d=t.size();if(d.length!==1||d[0]!==l)throw Error(`Invalid matrix length`);u=function(e){return t.get([e])}}else u=function(){return t};i||=su(u(0))?u(0).mul(0):0;var f=[];if(e.length>0){f=cm(f,e,i);for(var p=0;p<l;p++)f[p+o][p+a]=u(p)}return new n({data:f,size:[s,c]})},n.fromJSON=function(e){return new n(e)},n.prototype.swapRows=function(e,t){if(!ou(e)||!sd(e)||!ou(t)||!sd(t))throw Error(`Row index must be positive integers`);if(this._size.length!==2)throw Error(`Only two dimensional matrix is supported`);return sm(e,this._size[0]),sm(t,this._size[0]),n._swapRows(e,t,this._data),this},n._swapRows=function(e,t,n){var r=n[e];n[e]=n[t],n[t]=r};function l(e){return mu(e)?l(e.valueOf()):pu(e)?e.map(l):e}return n},{isClass:!0});function jm(e,t,n){return e&&typeof e.map==`function`?e.map(function(e){return jm(e,t,n)}):t(e)}var Mm=`isInteger`,Nm=W(Mm,[`typed`],e=>{var{typed:t}=e;return t(Mm,{number:sd,BigNumber:function(e){return e.isInt()},bigint:function(e){return!0},Fraction:function(e){return e.d===1&&isFinite(e.n)},"Array | Matrix":t.referToSelf(e=>t=>jm(t,e))})}),Pm=`number`,Fm=`number, number`;function Im(e){return Math.abs(e)}Im.signature=Pm;function Lm(e,t){return e+t}Lm.signature=Fm;function Rm(e,t){return e-t}Rm.signature=Fm;function zm(e,t){return e*t}zm.signature=Fm;function Bm(e,t){return e/t}Bm.signature=Fm;function Vm(e){return-e}Vm.signature=Pm;function Hm(e){return e}Hm.signature=Pm;function Um(e){return fd(e)}Um.signature=Pm;function Wm(e){return e*e*e}Wm.signature=Pm;function Gm(e){return Math.exp(e)}Gm.signature=Pm;function Km(e){return pd(e)}Km.signature=Pm;function qm(e,t){if(!sd(e)||!sd(t))throw Error(`Parameters in function gcd must be integer numbers`);for(var n;t!==0;)n=e%t,e=t,t=n;return e<0?-e:e}qm.signature=Fm;function Jm(e,t){if(!sd(e)||!sd(t))throw Error(`Parameters in function lcm must be integer numbers`);if(e===0||t===0)return 0;for(var n,r=e*t;t!==0;)n=t,t=e%n,e=n;return Math.abs(r/e)}Jm.signature=Fm;function Ym(e){return ud(e)}Ym.signature=Pm;function Xm(e){return ld(e)}Xm.signature=Pm;function Zm(e){return dd(e)}Zm.signature=Pm;function Qm(e,t){return t===0?e:e-t*Math.floor(e/t)}Qm.signature=Fm;function $m(e){return cd(e)}$m.signature=Pm;function eh(e){return Math.sqrt(e)}eh.signature=Pm;function th(e){return e*e}th.signature=Pm;function nh(e,t){var n,r,i,a=0,o=1,s=1,c=0;if(!sd(e)||!sd(t))throw Error(`Parameters in function xgcd must be integer numbers`);for(;t;)r=Math.floor(e/t),i=e-r*t,n=a,a=o-r*a,o=n,n=s,s=c-r*s,c=n,e=t,t=i;return e<0?[-e,-o,-c]:[e,e?o:0,c]}nh.signature=Fm;function rh(e,t){return e*e<1&&t===1/0||e*e>1&&t===-1/0?0:e**+t}rh.signature=Fm;function ih(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!sd(t)||t<0||t>15)throw Error(`Number of decimals in function round must be an integer from 0 to 15 inclusive`);return parseFloat(yd(e,t))}function ah(e){return Math.abs(e)}ah.signature=Pm;function oh(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e-9,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(n<=0)throw Error(`Relative tolerance must be greater than 0`);if(r<0)throw Error(`Absolute tolerance must be at least 0`);return e.isNaN()||t.isNaN()?!1:!e.isFinite()||!t.isFinite()?e.eq(t):e.eq(t)?!0:e.minus(t).abs().lte(e.constructor.max(e.constructor.max(e.abs(),t.abs()).mul(n),r))}var sh=`isZero`,ch=W(sh,[`typed`,`equalScalar`],e=>{var{typed:t,equalScalar:n}=e;return t(sh,{"number | BigNumber | Complex | Fraction":e=>n(e,0),bigint:e=>e===0n,Unit:t.referToSelf(e=>n=>t.find(e,n.valueType())(n.value)),"Array | Matrix":t.referToSelf(e=>t=>jm(t,e))})});function lh(e,t,n,r){return Td(e.re,t.re,n,r)&&Td(e.im,t.im,n,r)}var uh=W(`compareUnits`,[`typed`],e=>{var{typed:t}=e;return{"Unit, Unit":t.referToSelf(e=>(n,r)=>{if(!n.equalBase(r))throw Error(`Cannot compare units with different base`);return t.find(e,[n.valueType(),r.valueType()])(n.value,r.value)})}}),dh=`equalScalar`,fh=W(dh,[`typed`,`config`],e=>{var{typed:t,config:n}=e;return t(dh,{"boolean, boolean":function(e,t){return e===t},"number, number":function(e,t){return Td(e,t,n.relTol,n.absTol)},"BigNumber, BigNumber":function(e,t){return e.eq(t)||oh(e,t,n.relTol,n.absTol)},"bigint, bigint":function(e,t){return e===t},"Fraction, Fraction":function(e,t){return e.equals(t)},"Complex, Complex":function(e,t){return lh(e,t,n.relTol,n.absTol)}},uh({typed:t}))});W(dh,[`typed`,`config`],e=>{var{typed:t,config:n}=e;return t(dh,{"number, number":function(e,t){return Td(e,t,n.relTol,n.absTol)}})});var ph=W(`SparseMatrix`,[`typed`,`equalScalar`,`Matrix`],e=>{var{typed:t,equalScalar:n,Matrix:r}=e;function i(e,t){if(!(this instanceof i))throw SyntaxError(`Constructor must be called with the new operator`);if(t&&!fu(t))throw Error(`Invalid datatype: `+t);if(mu(e))a(this,e,t);else if(e&&pu(e.index)&&pu(e.ptr)&&pu(e.size))this._values=e.values,this._index=e.index,this._ptr=e.ptr,this._size=e.size,this._datatype=t||e.datatype;else if(pu(e))o(this,e,t);else if(e)throw TypeError(`Unsupported type of data (`+qu(e)+`)`);else this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=t}function a(e,t,n){t.type===`SparseMatrix`?(e._values=t._values?Ju(t._values):void 0,e._index=Ju(t._index),e._ptr=Ju(t._ptr),e._size=Ju(t._size),e._datatype=n||t._datatype):o(e,t.valueOf(),n||t._datatype)}function o(e,r,i){e._values=[],e._index=[],e._ptr=[],e._datatype=i;var a=r.length,o=0,s=n,c=0;if(fu(i)&&(s=t.find(n,[i,i])||n,c=t.convert(0,i)),a>0){var l=0;do{e._ptr.push(e._index.length);for(var u=0;u<a;u++){var d=r[u];if(pu(d)){if(l===0&&o<d.length&&(o=d.length),l<d.length){var f=d[l];s(f,c)||(e._values.push(f),e._index.push(u))}}else l===0&&o<1&&(o=1),s(d,c)||(e._values.push(d),e._index.push(u))}l++}while(l<o)}e._ptr.push(e._index.length),e._size=[a,o]}i.prototype=new r,i.prototype.createSparseMatrix=function(e,t){return new i(e,t)},Object.defineProperty(i,"name",{value:`SparseMatrix`}),i.prototype.constructor=i,i.prototype.type=`SparseMatrix`,i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return _m(this._values,qu)},i.prototype.storage=function(){return`sparse`},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(e,t){return new i(e,t)},i.prototype.density=function(){var e=this._size[0],t=this._size[1];return e!==0&&t!==0?this._index.length/(e*t):0},i.prototype.subset=function(e,t,n){if(!this._values)throw Error(`Cannot invoke subset on a Pattern only matrix`);switch(arguments.length){case 1:return s(this,e);case 2:case 3:return c(this,e,t,n);default:throw SyntaxError(`Wrong number of arguments`)}};function s(e,t){if(!yu(t))throw TypeError(`Invalid index`);if(t.isScalar())return e.get(t.min());var n=t.size();if(n.length!==e._size.length)throw new nm(n.length,e._size.length);var r,a,o,s,c=t.min(),l=t.max();for(r=0,a=e._size.length;r<a;r++)sm(c[r],e._size[r]),sm(l[r],e._size[r]);var u=e._values,d=e._index,f=e._ptr,p=t.dimension(0),m=t.dimension(1),h=[],g=[];p.forEach(function(e,t){g[e]=t[0],h[e]=!0});var _=u?[]:void 0,v=[],y=[];return m.forEach(function(e){for(y.push(v.length),o=f[e],s=f[e+1];o<s;o++)r=d[o],h[r]===!0&&(v.push(g[r]),_&&_.push(u[o]))}),y.push(v.length),new i({values:_,index:v,ptr:y,size:n,datatype:e._datatype})}function c(e,t,n,r){if(!t||t.isIndex!==!0)throw TypeError(`Invalid index`);var i=t.size(),a=t.isScalar(),o;if(mu(n)?(o=n.size(),n=n.toArray()):o=im(n),a){if(o.length!==0)throw TypeError(`Scalar expected`);e.set(t.min(),n,r)}else{if(i.length!==1&&i.length!==2)throw new nm(i.length,e._size.length,`<`);if(o.length<i.length){for(var s=0,c=0;i[s]===1&&o[s]===1;)s++;for(;i[s]===1;)c++,s++;n=mm(n,i.length,c,o)}if(!Zu(i,o))throw new nm(i,o,`>`);if(i.length===1)t.dimension(0).forEach(function(t,i){sm(t),e.set([t,0],n[i[0]],r)});else{var l=t.dimension(0),u=t.dimension(1);l.forEach(function(t,i){sm(t),u.forEach(function(a,o){sm(a),e.set([t,a],n[i[0]][o[0]],r)})})}}return e}i.prototype.get=function(e){if(!pu(e))throw TypeError(`Array expected`);if(e.length!==this._size.length)throw new nm(e.length,this._size.length);if(!this._values)throw Error(`Cannot invoke get on a Pattern only matrix`);var t=e[0],n=e[1];sm(t,this._size[0]),sm(n,this._size[1]);var r=l(t,this._ptr[n],this._ptr[n+1],this._index);return r<this._ptr[n+1]&&this._index[r]===t?this._values[r]:0},i.prototype.set=function(e,r,i){if(!pu(e))throw TypeError(`Array expected`);if(e.length!==this._size.length)throw new nm(e.length,this._size.length);if(!this._values)throw Error(`Cannot invoke set on a Pattern only matrix`);var a=e[0],o=e[1],s=this._size[0],c=this._size[1],p=n,m=0;fu(this._datatype)&&(p=t.find(n,[this._datatype,this._datatype])||n,m=t.convert(0,this._datatype)),(a>s-1||o>c-1)&&(f(this,Math.max(a+1,s),Math.max(o+1,c),i),s=this._size[0],c=this._size[1]),sm(a,s),sm(o,c);var h=l(a,this._ptr[o],this._ptr[o+1],this._index);return h<this._ptr[o+1]&&this._index[h]===a?p(r,m)?u(h,o,this._values,this._index,this._ptr):this._values[h]=r:p(r,m)||d(h,a,o,r,this._values,this._index,this._ptr),this};function l(e,t,n,r){if(n-t===0)return n;for(var i=t;i<n;i++)if(r[i]===e)return i;return t}function u(e,t,n,r,i){n.splice(e,1),r.splice(e,1);for(var a=t+1;a<i.length;a++)i[a]--}function d(e,t,n,r,i,a,o){i.splice(e,0,r),a.splice(e,0,t);for(var s=n+1;s<o.length;s++)o[s]++}i.prototype.resize=function(e,t,n){if(!hu(e))throw TypeError(`Array or Matrix expected`);var r=e.valueOf().map(e=>Array.isArray(e)&&e.length===1?e[0]:e);if(r.length!==2)throw Error(`Only two dimensions matrix are supported`);return r.forEach(function(e){if(!ou(e)||!sd(e)||e<0)throw TypeError(`Invalid size, must contain positive integers (size: `+Xp(r)+`)`)}),f(n?this.clone():this,r[0],r[1],t)};function f(e,r,i,a){var o=a||0,s=n,c=0;fu(e._datatype)&&(s=t.find(n,[e._datatype,e._datatype])||n,c=t.convert(0,e._datatype),o=t.convert(o,e._datatype));var l=!s(o,c),u=e._size[0],d=e._size[1],f,p,m;if(i>d){for(p=d;p<i;p++)if(e._ptr[p]=e._values.length,l)for(f=0;f<u;f++)e._values.push(o),e._index.push(f);e._ptr[i]=e._values.length}else i<d&&(e._ptr.splice(i+1,d-i),e._values.splice(e._ptr[i],e._values.length),e._index.splice(e._ptr[i],e._index.length));if(d=i,r>u){if(l){var h=0;for(p=0;p<d;p++){e._ptr[p]=e._ptr[p]+h,m=e._ptr[p+1]+h;var g=0;for(f=u;f<r;f++,g++)e._values.splice(m+g,0,o),e._index.splice(m+g,0,f),h++}e._ptr[d]=e._values.length}}else if(r<u){var _=0;for(p=0;p<d;p++){e._ptr[p]=e._ptr[p]-_;var v=e._ptr[p],y=e._ptr[p+1]-_;for(m=v;m<y;m++)f=e._index[m],f>r-1&&(e._values.splice(m,1),e._index.splice(m,1),_++)}e._ptr[p]=e._values.length}return e._size[0]=r,e._size[1]=i,e}i.prototype.reshape=function(e,t){if(!pu(e))throw TypeError(`Array expected`);if(e.length!==2)throw Error(`Sparse matrices can only be reshaped in two dimensions`);e.forEach(function(t){if(!ou(t)||!sd(t)||t<=-2||t===0)throw TypeError(`Invalid size, must contain positive integers or -1 (size: `+Xp(e)+`)`)});var n=this._size[0]*this._size[1];if(e=dm(e,n),n!==e[0]*e[1])throw Error(`Reshaping sparse matrix will result in the wrong number of elements`);var r=t?this.clone():this;if(this._size[0]===e[0]&&this._size[1]===e[1])return r;for(var i=[],a=0;a<r._ptr.length;a++)for(var o=0;o<r._ptr[a+1]-r._ptr[a];o++)i.push(a);for(var s=r._values.slice(),c=r._index.slice(),u=0;u<r._index.length;u++){var f=c[u],p=i[u],m=f*r._size[1]+p;i[u]=m%e[1],c[u]=Math.floor(m/e[1])}r._values.length=0,r._index.length=0,r._ptr.length=e[1]+1,r._size=e.slice();for(var h=0;h<r._ptr.length;h++)r._ptr[h]=0;for(var g=0;g<s.length;g++){var _=c[g],v=i[g],y=s[g];d(l(_,r._ptr[v],r._ptr[v+1],r._index),_,v,y,r._values,r._index,r._ptr)}return r},i.prototype.clone=function(){return new i({values:this._values?Ju(this._values):void 0,index:Ju(this._index),ptr:Ju(this._ptr),size:Ju(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(e,t){if(!this._values)throw Error(`Cannot invoke map on a Pattern only matrix`);var n=this,r=this._size[0],i=this._size[1],a=Em(e,n,`map`);return p(this,0,r-1,0,i-1,function(e,t,r){return a(e,[t,r],n)},t)};function p(e,r,a,o,s,c,l){var u=[],d=[],f=[],p=n,m=0;fu(e._datatype)&&(p=t.find(n,[e._datatype,e._datatype])||n,m=t.convert(0,e._datatype));for(var h=function(e,t,n){var r=c(e,t,n);p(r,m)||(u.push(r),d.push(t))},g=o;g<=s;g++){f.push(u.length);var _=e._ptr[g],v=e._ptr[g+1];if(l)for(var y=_;y<v;y++){var b=e._index[y];b>=r&&b<=a&&h(e._values[y],b-r,g-o)}else{for(var x={},S=_;S<v;S++){var C=e._index[S];x[C]=e._values[S]}for(var w=r;w<=a;w++)h(w in x?x[w]:0,w-r,g-o)}}return f.push(u.length),new i({values:u,index:d,ptr:f,size:[a-r+1,s-o+1]})}i.prototype.forEach=function(e,t){if(!this._values)throw Error(`Cannot invoke forEach on a Pattern only matrix`);for(var n=this,r=this._size[0],i=this._size[1],a=Em(e,n,`forEach`),o=0;o<i;o++){var s=this._ptr[o],c=this._ptr[o+1];if(t)for(var l=s;l<c;l++){var u=this._index[l];a(this._values[l],[u,o],n)}else{for(var d={},f=s;f<c;f++){var p=this._index[f];d[p]=this._values[f]}for(var m=0;m<r;m++)a(m in d?d[m]:0,[m,o],n)}}},i.prototype[Symbol.iterator]=function*(){if(!this._values)throw Error(`Cannot iterate a Pattern only matrix`);for(var e=this._size[1],t=0;t<e;t++)for(var n=this._ptr[t],r=this._ptr[t+1],i=n;i<r;i++){var a=this._index[i];yield{value:this._values[i],index:[a,t]}}},i.prototype.toArray=function(){return m(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return m(this._values,this._index,this._ptr,this._size,!1)};function m(e,t,n,r,i){var a=r[0],o=r[1],s=[],c,l;for(c=0;c<a;c++)for(s[c]=[],l=0;l<o;l++)s[c][l]=0;for(l=0;l<o;l++)for(var u=n[l],d=n[l+1],f=u;f<d;f++)c=t[f],s[c][l]=e?i?Ju(e[f]):e[f]:1;return s}return i.prototype.format=function(e){for(var t=this._size[0],n=this._size[1],r=this.density(),i=`Sparse Matrix [`+Xp(t,e)+` x `+Xp(n,e)+`] density: `+Xp(r,e)+`
|
|
152
152
|
`,a=0;a<n;a++)for(var o=this._ptr[a],s=this._ptr[a+1],c=o;c<s;c++){var l=this._index[c];i+=`
|
|
153
|
-
(`+Jp(l,e)+`, `+Jp(a,e)+`) ==> `+(this._values?Jp(this._values[c],e):`X`)}return i},i.prototype.toString=function(){return Jp(this.toArray())},i.prototype.toJSON=function(){return{mathjs:`SparseMatrix`,values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(e){if(e){if(au(e)&&(e=e.toNumber()),!iu(e)||!ad(e))throw TypeError(`The parameter k must be an integer number`)}else e=0;var t=e>0?e:0,n=e<0?-e:0,r=this._size[0],a=this._size[1],o=Math.min(r-n,a-t),s=[],c=[],l=[];l[0]=0;for(var u=t;u<a&&s.length<o;u++)for(var d=this._ptr[u],f=this._ptr[u+1],p=d;p<f;p++){var m=this._index[p];if(m===u-t+n){s.push(this._values[p]),c[s.length-1]=m-n;break}}return l.push(s.length),new i({values:s,index:c,ptr:l,size:[o,1]})},i.fromJSON=function(e){return new i(e)},i.diagonal=function(e,r,a,o,s){if(!du(e))throw TypeError(`Array expected, size parameter`);if(e.length!==2)throw Error(`Only two dimensions matrix are supported`);if(e=e.map(function(e){if(au(e)&&(e=e.toNumber()),!iu(e)||!ad(e)||e<1)throw Error(`Size values must be positive integers`);return e}),a){if(au(a)&&(a=a.toNumber()),!iu(a)||!ad(a))throw TypeError(`The parameter k must be an integer number`)}else a=0;var c=n,l=0;uu(s)&&(c=t.find(n,[s,s])||n,l=t.convert(0,s));var u=a>0?a:0,d=a<0?-a:0,f=e[0],p=e[1],m=Math.min(f-d,p-u),h;if(du(r)){if(r.length!==m)throw Error(`Invalid value array length`);h=function(e){return r[e]}}else if(fu(r)){var g=r.size();if(g.length!==1||g[0]!==m)throw Error(`Invalid matrix length`);h=function(e){return r.get([e])}}else h=function(){return r};for(var _=[],v=[],y=[],b=0;b<p;b++){y.push(_.length);var x=b-u;if(x>=0&&x<m){var S=h(x);c(S,l)||(v.push(x+d),_.push(S))}}return y.push(_.length),new i({values:_,index:v,ptr:y,size:[f,p]})},i.prototype.swapRows=function(e,t){if(!iu(e)||!ad(e)||!iu(t)||!ad(t))throw Error(`Row index must be positive integers`);if(this._size.length!==2)throw Error(`Only two dimensional matrix is supported`);return am(e,this._size[0]),am(t,this._size[0]),i._swapRows(e,t,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(e,t,n,r,i){for(var a=r[e],o=r[e+1],s=a;s<o;s++)i(n[s],t[s])},i._swapRows=function(e,t,n,r,i,a){for(var o=0;o<n;o++){var s=a[o],c=a[o+1],u=l(e,s,c,i),d=l(t,s,c,i);if(u<c&&d<c&&i[u]===e&&i[d]===t){if(r){var f=r[u];r[u]=r[d],r[d]=f}continue}if(u<c&&i[u]===e&&(d>=c||i[d]!==t)){var p=r?r[u]:void 0;i.splice(d,0,t),r&&r.splice(d,0,p),i.splice(d<=u?u+1:u,1),r&&r.splice(d<=u?u+1:u,1);continue}if(d<c&&i[d]===t&&(u>=c||i[u]!==e)){var m=r?r[d]:void 0;i.splice(u,0,e),r&&r.splice(u,0,m),i.splice(u<=d?d+1:d,1),r&&r.splice(u<=d?d+1:d,1)}}},i},{isClass:!0}),fh=`number`,ph=[`typed`];function mh(e){var t=e.match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/);return t?{input:e,radix:{"0b":2,"0o":8,"0x":16}[t[1]],integerPart:t[2],fractionalPart:t[3]}:null}function hh(e){for(var t=parseInt(e.integerPart,e.radix),n=0,r=0;r<e.fractionalPart.length;r++){var i=parseInt(e.fractionalPart[r],e.radix);n+=i/e.radix**+(r+1)}var a=t+n;if(isNaN(a))throw SyntaxError(`String "`+e.input+`" is not a valid number`);return a}var gh=W(fh,ph,e=>{var{typed:t}=e,n=t(`number`,{"":function(){return 0},number:function(e){return e},string:function(e){if(e===`NaN`)return NaN;var t=mh(e);if(t)return hh(t);var n=0,r=e.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);r&&(n=Number(r[2]),e=r[1]);var i=Number(e);if(isNaN(i))throw SyntaxError(`String "`+e+`" is not a valid number`);if(r){if(i>2**n-1)throw SyntaxError(`String "${e}" is out of range`);i>=2**(n-1)&&(i-=2**n)}return i},BigNumber:function(e){return e.toNumber()},bigint:function(e){return Number(e)},Fraction:function(e){return e.valueOf()},Unit:t.referToSelf(e=>t=>{var n=t.clone();return n.value=e(t.value),n}),null:function(e){return 0},"Unit, string | Unit":function(e,t){return e.toNumber(t)},"Array | Matrix":t.referToSelf(e=>t=>km(t,e))});return n.fromJSON=function(e){return parseFloat(e.value)},n}),_h=W(`bignumber`,[`typed`,`BigNumber`],e=>{var{typed:t,BigNumber:n}=e;return t(`bignumber`,{"":function(){return new n(0)},number:function(e){return new n(e+``)},string:function(e){var t=e.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(t){var r=t[2],i=n(t[1]),a=new n(2).pow(Number(r));if(i.gt(a.sub(1)))throw SyntaxError(`String "${e}" is out of range`);var o=new n(2).pow(Number(r)-1);return i.gte(o)?i.sub(a):i}return new n(e)},BigNumber:function(e){return e},bigint:function(e){return new n(e.toString())},Unit:t.referToSelf(e=>t=>{var n=t.clone();return n.value=e(t.value),n}),Fraction:function(e){return new n(e.n).div(e.d).times(e.s)},null:function(e){return new n(0)},"Array | Matrix":t.referToSelf(e=>t=>km(t,e))})}),vh=W(`fraction`,[`typed`,`Fraction`],e=>{var{typed:t,Fraction:n}=e;return t(`fraction`,{number:function(e){if(!isFinite(e)||isNaN(e))throw Error(e+` cannot be represented as a fraction`);return new n(e)},string:function(e){return new n(e)},"number, number":function(e,t){return new n(e,t)},null:function(e){return new n(0)},BigNumber:function(e){return new n(e.toString())},bigint:function(e){return new n(e.toString())},Fraction:function(e){return e},Unit:t.referToSelf(e=>t=>{var n=t.clone();return n.value=e(t.value),n}),Object:function(e){return new n(e)},"Array | Matrix":t.referToSelf(e=>t=>km(t,e))})}),yh=`matrix`,bh=W(yh,[`typed`,`Matrix`,`DenseMatrix`,`SparseMatrix`],e=>{var{typed:t,Matrix:n,DenseMatrix:r,SparseMatrix:i}=e;return t(yh,{"":function(){return a([])},string:function(e){return a([],e)},"string, string":function(e,t){return a([],e,t)},Array:function(e){return a(e)},Matrix:function(e){return a(e,e.storage())},"Array | Matrix, string":a,"Array | Matrix, string, string":a});function a(e,t,n){if(t===`dense`||t==="default"||t===void 0)return new r(e,n);if(t===`sparse`)return new i(e,n);throw TypeError(`Unknown matrix type `+JSON.stringify(t)+`.`)}}),xh=`unaryMinus`,Sh=W(xh,[`typed`],e=>{var{typed:t}=e;return t(xh,{number:zm,"Complex | BigNumber | Fraction":e=>e.neg(),bigint:e=>-e,Unit:t.referToSelf(e=>n=>{var r=n.clone();return r.value=t.find(e,r.valueType())(n.value),r}),"Array | Matrix":t.referToSelf(e=>t=>km(t,e,!0))})}),Ch=`abs`,wh=W(Ch,[`typed`],e=>{var{typed:t}=e;return t(Ch,{number:Pm,"Complex | BigNumber | Fraction | Unit":e=>e.abs(),bigint:e=>e<0n?-e:e,"Array | Matrix":t.referToSelf(e=>t=>km(t,e,!0))})}),Th=`addScalar`,Eh=W(Th,[`typed`],e=>{var{typed:t}=e;return t(Th,{"number, number":Fm,"Complex, Complex":function(e,t){return e.add(t)},"BigNumber, BigNumber":function(e,t){return e.plus(t)},"bigint, bigint":function(e,t){return e+t},"Fraction, Fraction":function(e,t){return e.add(t)},"Unit, Unit":t.referToSelf(e=>(n,r)=>{if(n.value===null||n.value===void 0)throw Error(`Parameter x contains a unit with undefined value`);if(r.value===null||r.value===void 0)throw Error(`Parameter y contains a unit with undefined value`);if(!n.equalBase(r))throw Error(`Units do not match`);var i=n.clone();return i.value=t.find(e,[i.valueType(),r.valueType()])(i.value,r.value),i.fixPrefix=!1,i})})}),Dh=`subtractScalar`,Oh=W(Dh,[`typed`],e=>{var{typed:t}=e;return t(Dh,{"number, number":Im,"Complex, Complex":function(e,t){return e.sub(t)},"BigNumber, BigNumber":function(e,t){return e.minus(t)},"bigint, bigint":function(e,t){return e-t},"Fraction, Fraction":function(e,t){return e.sub(t)},"Unit, Unit":t.referToSelf(e=>(n,r)=>{if(n.value===null||n.value===void 0)throw Error(`Parameter x contains a unit with undefined value`);if(r.value===null||r.value===void 0)throw Error(`Parameter y contains a unit with undefined value`);if(!n.equalBase(r))throw Error(`Units do not match`);var i=n.clone();return i.value=t.find(e,[i.valueType(),r.valueType()])(i.value,r.value),i.fixPrefix=!1,i})})}),kh=W(`matAlgo11xS0s`,[`typed`,`equalScalar`],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i,a){var o=e._values,s=e._index,c=e._ptr,l=e._size,u=e._datatype;if(!o)throw Error(`Cannot perform operation on Pattern Sparse Matrix and Scalar value`);var d=l[0],f=l[1],p,m=n,h=0,g=i;typeof u==`string`&&(p=u,m=t.find(n,[p,p]),h=t.convert(0,p),r=t.convert(r,p),g=t.find(i,[p,p]));for(var _=[],v=[],y=[],b=0;b<f;b++){y[b]=v.length;for(var x=c[b],S=c[b+1],C=x;C<S;C++){var w=s[C],T=a?g(r,o[C]):g(o[C],r);m(T,h)||(v.push(w),_.push(T))}}return y[f]=v.length,e.createSparseMatrix({values:_,index:v,ptr:y,size:[d,f],datatype:p})}}),Ah=W(`matAlgo12xSfs`,[`typed`,`DenseMatrix`],e=>{var{typed:t,DenseMatrix:n}=e;return function(e,r,i,a){var o=e._values,s=e._index,c=e._ptr,l=e._size,u=e._datatype;if(!o)throw Error(`Cannot perform operation on Pattern Sparse Matrix and Scalar value`);var d=l[0],f=l[1],p,m=i;typeof u==`string`&&(p=u,r=t.convert(r,p),m=t.find(i,[p,p]));for(var h=[],g=[],_=[],v=0;v<f;v++){for(var y=v+1,b=c[v],x=c[v+1],S=b;S<x;S++){var C=s[S];g[C]=o[S],_[C]=y}for(var w=0;w<d;w++)v===0&&(h[w]=[]),_[w]===y?h[w][v]=a?m(r,g[w]):m(g[w],r):h[w][v]=a?m(r,0):m(0,r)}return new n({data:h,size:[d,f],datatype:p})}}),jh=W(`matAlgo14xDs`,[`typed`],e=>{var{typed:t}=e;return function(e,r,i,a){var o=e._data,s=e._size,c=e._datatype,l,u=i;typeof c==`string`&&(l=c,r=t.convert(r,l),u=t.find(i,[l,l]));var d=s.length>0?n(u,0,s,s[0],o,r,a):[];return e.createDenseMatrix({data:d,size:Ku(s),datatype:l})};function n(e,t,r,i,a,o,s){var c=[];if(t===r.length-1)for(var l=0;l<i;l++)c[l]=s?e(o,a[l]):e(a[l],o);else for(var u=0;u<i;u++)c[u]=n(e,t+1,r,r[t+1],a[u],o,s);return c}}),Mh=`floor`,Nh=[`typed`,`config`,`round`,`matrix`,`equalScalar`,`zeros`,`DenseMatrix`],Ph=W(Mh,[`typed`,`config`,`round`],e=>{var{typed:t,config:n,round:r}=e;return t(Mh,{number:function(e){return Cd(e,r(e),n.relTol,n.absTol)?r(e):Math.floor(e)},"number, number":function(e,t){if(Cd(e,r(e,t),n.relTol,n.absTol))return r(e,t);var[i,a]=`${e}e`.split(`e`),o=Math.floor(Number(`${i}e${Number(a)+t}`));return[i,a]=`${o}e`.split(`e`),Number(`${i}e${Number(a)-t}`)}})}),Fh=W(Mh,Nh,e=>{var{typed:t,config:n,round:r,matrix:i,equalScalar:a,zeros:o,DenseMatrix:s}=e,c=kh({typed:t,equalScalar:a}),l=Ah({typed:t,DenseMatrix:s}),u=jh({typed:t}),d=Ph({typed:t,config:n,round:r});return t(`floor`,{number:d.signatures.number,"number,number":d.signatures[`number,number`],Complex:function(e){return e.floor()},"Complex, number":function(e,t){return e.floor(t)},"Complex, BigNumber":function(e,t){return e.floor(t.toNumber())},BigNumber:function(e){return ih(e,r(e),n.relTol,n.absTol)?r(e):e.floor()},"BigNumber, BigNumber":function(e,t){return ih(e,r(e,t),n.relTol,n.absTol)?r(e,t):e.toDecimalPlaces(t.toNumber(),gp.ROUND_FLOOR)},Fraction:function(e){return e.floor()},"Fraction, number":function(e,t){return e.floor(t)},"Fraction, BigNumber":function(e,t){return e.floor(t.toNumber())},"Array | Matrix":t.referToSelf(e=>t=>km(t,e,!0)),"Array, number | BigNumber":t.referToSelf(e=>(t,n)=>km(t,t=>e(t,n),!0)),"SparseMatrix, number | BigNumber":t.referToSelf(e=>(t,n)=>c(t,n,e,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(e=>(t,n)=>u(t,n,e,!1)),"number | Complex | Fraction | BigNumber, Array":t.referToSelf(e=>(t,n)=>u(i(n),t,e,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":t.referToSelf(e=>(t,n)=>a(t,0)?o(n.size(),n.storage()):n.storage()===`dense`?u(n,t,e,!0):l(n,t,e,!0))})}),Ih=W(`matAlgo02xDS0`,[`typed`,`equalScalar`],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i,a){var o=e._data,s=e._size,c=e._datatype||e.getDataType(),l=r._values,u=r._index,d=r._ptr,f=r._size,p=r._datatype||r._data===void 0?r._datatype:r.getDataType();if(s.length!==f.length)throw new em(s.length,f.length);if(s[0]!==f[0]||s[1]!==f[1])throw RangeError(`Dimension mismatch. Matrix A (`+s+`) must match Matrix B (`+f+`)`);if(!l)throw Error(`Cannot perform operation on Dense Matrix and Pattern Sparse Matrix`);var m=s[0],h=s[1],g,_=n,v=0,y=i;typeof c==`string`&&c===p&&c!==`mixed`&&(g=c,_=t.find(n,[g,g]),v=t.convert(0,g),y=t.find(i,[g,g]));for(var b=[],x=[],S=[],C=0;C<h;C++){S[C]=x.length;for(var w=d[C],T=d[C+1],E=w;E<T;E++){var D=u[E],O=a?y(l[E],o[D][C]):y(o[D][C],l[E]);_(O,v)||(x.push(D),b.push(O))}}return S[h]=x.length,r.createSparseMatrix({values:b,index:x,ptr:S,size:[m,h],datatype:c===e._datatype&&p===r._datatype?g:void 0})}}),Lh=W(`matAlgo03xDSf`,[`typed`],e=>{var{typed:t}=e;return function(e,n,r,i){var a=e._data,o=e._size,s=e._datatype||e.getDataType(),c=n._values,l=n._index,u=n._ptr,d=n._size,f=n._datatype||n._data===void 0?n._datatype:n.getDataType();if(o.length!==d.length)throw new em(o.length,d.length);if(o[0]!==d[0]||o[1]!==d[1])throw RangeError(`Dimension mismatch. Matrix A (`+o+`) must match Matrix B (`+d+`)`);if(!c)throw Error(`Cannot perform operation on Dense Matrix and Pattern Sparse Matrix`);var p=o[0],m=o[1],h,g=0,_=r;typeof s==`string`&&s===f&&s!==`mixed`&&(h=s,g=t.convert(0,h),_=t.find(r,[h,h]));for(var v=[],y=0;y<p;y++)v[y]=[];for(var b=[],x=[],S=0;S<m;S++){for(var C=S+1,w=u[S],T=u[S+1],E=w;E<T;E++){var D=l[E];b[D]=i?_(c[E],a[D][S]):_(a[D][S],c[E]),x[D]=C}for(var O=0;O<p;O++)x[O]===C?v[O][S]=b[O]:v[O][S]=i?_(g,a[O][S]):_(a[O][S],g)}return e.createDenseMatrix({data:v,size:[p,m],datatype:s===e._datatype&&f===n._datatype?h:void 0})}}),Rh=W(`matAlgo05xSfSf`,[`typed`,`equalScalar`],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i){var a=e._values,o=e._index,s=e._ptr,c=e._size,l=e._datatype||e._data===void 0?e._datatype:e.getDataType(),u=r._values,d=r._index,f=r._ptr,p=r._size,m=r._datatype||r._data===void 0?r._datatype:r.getDataType();if(c.length!==p.length)throw new em(c.length,p.length);if(c[0]!==p[0]||c[1]!==p[1])throw RangeError(`Dimension mismatch. Matrix A (`+c+`) must match Matrix B (`+p+`)`);var h=c[0],g=c[1],_,v=n,y=0,b=i;typeof l==`string`&&l===m&&l!==`mixed`&&(_=l,v=t.find(n,[_,_]),y=t.convert(0,_),b=t.find(i,[_,_]));var x=a&&u?[]:void 0,S=[],C=[],w=x?[]:void 0,T=x?[]:void 0,E=[],D=[],O,k,A,j;for(k=0;k<g;k++){C[k]=S.length;var M=k+1;for(A=s[k],j=s[k+1];A<j;A++)O=o[A],S.push(O),E[O]=M,w&&(w[O]=a[A]);for(A=f[k],j=f[k+1];A<j;A++)O=d[A],E[O]!==M&&S.push(O),D[O]=M,T&&(T[O]=u[A]);if(x)for(A=C[k];A<S.length;){O=S[A];var N=E[O],P=D[O];if(N===M||P===M){var ee=N===M?w[O]:y,te=P===M?T[O]:y,ne=b(ee,te);v(ne,y)?S.splice(A,1):(x.push(ne),A++)}}}return C[g]=S.length,e.createSparseMatrix({values:x,index:S,ptr:C,size:[h,g],datatype:l===e._datatype&&m===r._datatype?_:void 0})}}),zh=W(`matAlgo13xDD`,[`typed`],e=>{var{typed:t}=e;return function(e,r,i){var a=e._data,o=e._size,s=e._datatype,c=r._data,l=r._size,u=r._datatype,d=[];if(o.length!==l.length)throw new em(o.length,l.length);for(var f=0;f<o.length;f++){if(o[f]!==l[f])throw RangeError(`Dimension mismatch. Matrix A (`+o+`) must match Matrix B (`+l+`)`);d[f]=o[f]}var p,m=i;typeof s==`string`&&s===u&&(p=s,m=t.find(i,[p,p]));var h=d.length>0?n(m,0,d,d[0],a,c):[];return e.createDenseMatrix({data:h,size:d,datatype:p})};function n(e,t,r,i,a,o){var s=[];if(t===r.length-1)for(var c=0;c<i;c++)s[c]=e(a[c],o[c]);else for(var l=0;l<i;l++)s[l]=n(e,t+1,r,r[t+1],a[l],o[l]);return s}});function Bh(e,t){if(Yu(e.size(),t.size()))return[e,t];var n=vm(e.size(),t.size());return[e,t].map(e=>Vh(e,n))}function Vh(e,t){return Yu(e.size(),t)?e:e.create(bm(e.valueOf(),t),e.datatype())}var Hh=W(`matrixAlgorithmSuite`,[`typed`,`matrix`],e=>{var{typed:t,matrix:n}=e,r=zh({typed:t}),i=jh({typed:t});return function(e){var a=e.elop,o=e.SD||e.DS,s;a?(s={"DenseMatrix, DenseMatrix":(e,t)=>r(...Bh(e,t),a),"Array, Array":(e,t)=>r(...Bh(n(e),n(t)),a).valueOf(),"Array, DenseMatrix":(e,t)=>r(...Bh(n(e),t),a),"DenseMatrix, Array":(e,t)=>r(...Bh(e,n(t)),a)},e.SS&&(s[`SparseMatrix, SparseMatrix`]=(t,n)=>e.SS(...Bh(t,n),a,!1)),e.DS&&(s[`DenseMatrix, SparseMatrix`]=(t,n)=>e.DS(...Bh(t,n),a,!1),s[`Array, SparseMatrix`]=(t,r)=>e.DS(...Bh(n(t),r),a,!1)),o&&(s[`SparseMatrix, DenseMatrix`]=(e,t)=>o(...Bh(t,e),a,!0),s[`SparseMatrix, Array`]=(e,t)=>o(...Bh(n(t),e),a,!0))):(s={"DenseMatrix, DenseMatrix":t.referToSelf(e=>(t,n)=>r(...Bh(t,n),e)),"Array, Array":t.referToSelf(e=>(t,i)=>r(...Bh(n(t),n(i)),e).valueOf()),"Array, DenseMatrix":t.referToSelf(e=>(t,i)=>r(...Bh(n(t),i),e)),"DenseMatrix, Array":t.referToSelf(e=>(t,i)=>r(...Bh(t,n(i)),e))},e.SS&&(s[`SparseMatrix, SparseMatrix`]=t.referToSelf(t=>(n,r)=>e.SS(...Bh(n,r),t,!1))),e.DS&&(s[`DenseMatrix, SparseMatrix`]=t.referToSelf(t=>(n,r)=>e.DS(...Bh(n,r),t,!1)),s[`Array, SparseMatrix`]=t.referToSelf(t=>(r,i)=>e.DS(...Bh(n(r),i),t,!1))),o&&(s[`SparseMatrix, DenseMatrix`]=t.referToSelf(e=>(t,n)=>o(...Bh(n,t),e,!0)),s[`SparseMatrix, Array`]=t.referToSelf(e=>(t,r)=>o(...Bh(n(r),t),e,!0))));var c=e.scalar||`any`;(e.Ds||e.Ss)&&(a?(s[`DenseMatrix,`+c]=(e,t)=>i(e,t,a,!1),s[c+`, DenseMatrix`]=(e,t)=>i(t,e,a,!0),s[`Array,`+c]=(e,t)=>i(n(e),t,a,!1).valueOf(),s[c+`, Array`]=(e,t)=>i(n(t),e,a,!0).valueOf()):(s[`DenseMatrix,`+c]=t.referToSelf(e=>(t,n)=>i(t,n,e,!1)),s[c+`, DenseMatrix`]=t.referToSelf(e=>(t,n)=>i(n,t,e,!0)),s[`Array,`+c]=t.referToSelf(e=>(t,r)=>i(n(t),r,e,!1).valueOf()),s[c+`, Array`]=t.referToSelf(e=>(t,r)=>i(n(r),t,e,!0).valueOf())));var l=e.sS===void 0?e.Ss:e.sS;return a?(e.Ss&&(s[`SparseMatrix,`+c]=(t,n)=>e.Ss(t,n,a,!1)),l&&(s[c+`, SparseMatrix`]=(e,t)=>l(t,e,a,!0))):(e.Ss&&(s[`SparseMatrix,`+c]=t.referToSelf(t=>(n,r)=>e.Ss(n,r,t,!1))),l&&(s[c+`, SparseMatrix`]=t.referToSelf(e=>(t,n)=>l(n,t,e,!0)))),a&&a.signatures&&Ju(s,a.signatures),s}}),Uh=`mod`,Wh=W(Uh,[`typed`,`config`,`round`,`matrix`,`equalScalar`,`zeros`,`DenseMatrix`,`concat`],e=>{var{typed:t,config:n,round:r,matrix:i,equalScalar:a,zeros:o,DenseMatrix:s,concat:c}=e,l=Fh({typed:t,config:n,round:r,matrix:i,equalScalar:a,zeros:o,DenseMatrix:s}),u=Ih({typed:t,equalScalar:a}),d=Lh({typed:t}),f=Rh({typed:t,equalScalar:a}),p=kh({typed:t,equalScalar:a}),m=Ah({typed:t,DenseMatrix:s}),h=Hh({typed:t,matrix:i,concat:c});return t(Uh,{"number, number":g,"BigNumber, BigNumber":function(e,t){return t.isZero()?e:e.sub(t.mul(l(e.div(t))))},"bigint, bigint":function(e,t){if(t===0n)return e;if(e<0){var n=e%t;return n===0n?n:n+t}return e%t},"Fraction, Fraction":function(e,t){return t.equals(0)?e:e.sub(t.mul(l(e.div(t))))}},h({SS:f,DS:d,SD:u,Ss:p,sS:m}));function g(e,t){return t===0?e:e-t*l(e/t)}}),Gh=W(`matAlgo01xDSid`,[`typed`],e=>{var{typed:t}=e;return function(e,n,r,i){var a=e._data,o=e._size,s=e._datatype||e.getDataType(),c=n._values,l=n._index,u=n._ptr,d=n._size,f=n._datatype||n._data===void 0?n._datatype:n.getDataType();if(o.length!==d.length)throw new em(o.length,d.length);if(o[0]!==d[0]||o[1]!==d[1])throw RangeError(`Dimension mismatch. Matrix A (`+o+`) must match Matrix B (`+d+`)`);if(!c)throw Error(`Cannot perform operation on Dense Matrix and Pattern Sparse Matrix`);var p=o[0],m=o[1],h=typeof s==`string`&&s!==`mixed`&&s===f?s:void 0,g=h?t.find(r,[h,h]):r,_,v,y=[];for(_=0;_<p;_++)y[_]=[];var b=[],x=[];for(v=0;v<m;v++){for(var S=v+1,C=u[v],w=u[v+1],T=C;T<w;T++)_=l[T],b[_]=i?g(c[T],a[_][v]):g(a[_][v],c[T]),x[_]=S;for(_=0;_<p;_++)x[_]===S?y[_][v]=b[_]:y[_][v]=a[_][v]}return e.createDenseMatrix({data:y,size:[p,m],datatype:s===e._datatype&&f===n._datatype?h:void 0})}}),Kh=W(`matAlgo04xSidSid`,[`typed`,`equalScalar`],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i){var a=e._values,o=e._index,s=e._ptr,c=e._size,l=e._datatype||e._data===void 0?e._datatype:e.getDataType(),u=r._values,d=r._index,f=r._ptr,p=r._size,m=r._datatype||r._data===void 0?r._datatype:r.getDataType();if(c.length!==p.length)throw new em(c.length,p.length);if(c[0]!==p[0]||c[1]!==p[1])throw RangeError(`Dimension mismatch. Matrix A (`+c+`) must match Matrix B (`+p+`)`);var h=c[0],g=c[1],_,v=n,y=0,b=i;typeof l==`string`&&l===m&&l!==`mixed`&&(_=l,v=t.find(n,[_,_]),y=t.convert(0,_),b=t.find(i,[_,_]));var x=a&&u?[]:void 0,S=[],C=[],w=a&&u?[]:void 0,T=a&&u?[]:void 0,E=[],D=[],O,k,A,j,M;for(k=0;k<g;k++){C[k]=S.length;var N=k+1;for(j=s[k],M=s[k+1],A=j;A<M;A++)O=o[A],S.push(O),E[O]=N,w&&(w[O]=a[A]);for(j=f[k],M=f[k+1],A=j;A<M;A++)if(O=d[A],E[O]===N){if(w){var P=b(w[O],u[A]);v(P,y)?E[O]=null:w[O]=P}}else S.push(O),D[O]=N,T&&(T[O]=u[A]);if(w&&T)for(A=C[k];A<S.length;)O=S[A],E[O]===N?(x[A]=w[O],A++):D[O]===N?(x[A]=T[O],A++):S.splice(A,1)}return C[g]=S.length,e.createSparseMatrix({values:x,index:S,ptr:C,size:[h,g],datatype:l===e._datatype&&m===r._datatype?_:void 0})}}),qh=W(`matAlgo10xSids`,[`typed`,`DenseMatrix`],e=>{var{typed:t,DenseMatrix:n}=e;return function(e,r,i,a){var o=e._values,s=e._index,c=e._ptr,l=e._size,u=e._datatype;if(!o)throw Error(`Cannot perform operation on Pattern Sparse Matrix and Scalar value`);var d=l[0],f=l[1],p,m=i;typeof u==`string`&&(p=u,r=t.convert(r,p),m=t.find(i,[p,p]));for(var h=[],g=[],_=[],v=0;v<f;v++){for(var y=v+1,b=c[v],x=c[v+1],S=b;S<x;S++){var C=s[S];g[C]=o[S],_[C]=y}for(var w=0;w<d;w++)v===0&&(h[w]=[]),_[w]===y?h[w][v]=a?m(r,g[w]):m(g[w],r):h[w][v]=r}return new n({data:h,size:[d,f],datatype:p})}}),Jh=W(`multiplyScalar`,[`typed`],e=>{var{typed:t}=e;return t(`multiplyScalar`,{"number, number":Lm,"Complex, Complex":function(e,t){return e.mul(t)},"BigNumber, BigNumber":function(e,t){return e.times(t)},"bigint, bigint":function(e,t){return e*t},"Fraction, Fraction":function(e,t){return e.mul(t)},"number | Fraction | BigNumber | Complex, Unit":(e,t)=>t.multiply(e),"Unit, number | Fraction | BigNumber | Complex | Unit":(e,t)=>e.multiply(t)})}),Yh=`multiply`,Xh=W(Yh,[`typed`,`matrix`,`addScalar`,`multiplyScalar`,`equalScalar`,`dot`],e=>{var{typed:t,matrix:n,addScalar:r,multiplyScalar:i,equalScalar:a,dot:o}=e,s=kh({typed:t,equalScalar:a}),c=jh({typed:t});function l(e,t){switch(e.length){case 1:switch(t.length){case 1:if(e[0]!==t[0])throw RangeError(`Dimension mismatch in multiplication. Vectors must have the same length`);break;case 2:if(e[0]!==t[0])throw RangeError(`Dimension mismatch in multiplication. Vector length (`+e[0]+`) must match Matrix rows (`+t[0]+`)`);break;default:throw Error(`Can only multiply a 1 or 2 dimensional matrix (Matrix B has `+t.length+` dimensions)`)}break;case 2:switch(t.length){case 1:if(e[1]!==t[0])throw RangeError(`Dimension mismatch in multiplication. Matrix columns (`+e[1]+`) must match Vector length (`+t[0]+`)`);break;case 2:if(e[1]!==t[0])throw RangeError(`Dimension mismatch in multiplication. Matrix A columns (`+e[1]+`) must match Matrix B rows (`+t[0]+`)`);break;default:throw Error(`Can only multiply a 1 or 2 dimensional matrix (Matrix B has `+t.length+` dimensions)`)}break;default:throw Error(`Can only multiply a 1 or 2 dimensional matrix (Matrix A has `+e.length+` dimensions)`)}}function u(e,t,n){if(n===0)throw Error(`Cannot multiply two empty vectors`);return o(e,t)}function d(e,t){if(t.storage()!==`dense`)throw Error(`Support for SparseMatrix not implemented`);return f(e,t)}function f(e,n){var a=e._data,o=e._size,s=e._datatype||e.getDataType(),c=n._data,l=n._size,u=n._datatype||n.getDataType(),d=o[0],f=l[1],p,m=r,h=i;s&&u&&s===u&&typeof s==`string`&&s!==`mixed`&&(p=s,m=t.find(r,[p,p]),h=t.find(i,[p,p]));for(var g=[],_=0;_<f;_++){for(var v=h(a[0],c[0][_]),y=1;y<d;y++)v=m(v,h(a[y],c[y][_]));g[_]=v}return e.createDenseMatrix({data:g,size:[f],datatype:s===e._datatype&&u===n._datatype?p:void 0})}var p=t(`_multiplyMatrixVector`,{"DenseMatrix, any":h,"SparseMatrix, any":v}),m=t(`_multiplyMatrixMatrix`,{"DenseMatrix, DenseMatrix":g,"DenseMatrix, SparseMatrix":_,"SparseMatrix, DenseMatrix":y,"SparseMatrix, SparseMatrix":b});function h(e,n){var a=e._data,o=e._size,s=e._datatype||e.getDataType(),c=n._data,l=n._datatype||n.getDataType(),u=o[0],d=o[1],f,p=r,m=i;s&&l&&s===l&&typeof s==`string`&&s!==`mixed`&&(f=s,p=t.find(r,[f,f]),m=t.find(i,[f,f]));for(var h=[],g=0;g<u;g++){for(var _=a[g],v=m(_[0],c[0]),y=1;y<d;y++)v=p(v,m(_[y],c[y]));h[g]=v}return e.createDenseMatrix({data:h,size:[u],datatype:s===e._datatype&&l===n._datatype?f:void 0})}function g(e,n){var a=e._data,o=e._size,s=e._datatype||e.getDataType(),c=n._data,l=n._size,u=n._datatype||n.getDataType(),d=o[0],f=o[1],p=l[1],m,h=r,g=i;s&&u&&s===u&&typeof s==`string`&&s!==`mixed`&&s!==`mixed`&&(m=s,h=t.find(r,[m,m]),g=t.find(i,[m,m]));for(var _=[],v=0;v<d;v++){var y=a[v];_[v]=[];for(var b=0;b<p;b++){for(var x=g(y[0],c[0][b]),S=1;S<f;S++)x=h(x,g(y[S],c[S][b]));_[v][b]=x}}return e.createDenseMatrix({data:_,size:[d,p],datatype:s===e._datatype&&u===n._datatype?m:void 0})}function _(e,n){var o=e._data,s=e._size,c=e._datatype||e.getDataType(),l=n._values,u=n._index,d=n._ptr,f=n._size,p=n._datatype||n._data===void 0?n._datatype:n.getDataType();if(!l)throw Error(`Cannot multiply Dense Matrix times Pattern only Matrix`);var m=s[0],h=f[1],g,_=r,v=i,y=a,b=0;c&&p&&c===p&&typeof c==`string`&&c!==`mixed`&&(g=c,_=t.find(r,[g,g]),v=t.find(i,[g,g]),y=t.find(a,[g,g]),b=t.convert(0,g));for(var x=[],S=[],C=[],w=n.createSparseMatrix({values:x,index:S,ptr:C,size:[m,h],datatype:c===e._datatype&&p===n._datatype?g:void 0}),T=0;T<h;T++){C[T]=S.length;var E=d[T],D=d[T+1];if(D>E)for(var O=0,k=0;k<m;k++){for(var A=k+1,j=void 0,M=E;M<D;M++){var N=u[M];O===A?j=_(j,v(o[k][N],l[M])):(j=v(o[k][N],l[M]),O=A)}O===A&&!y(j,b)&&(S.push(k),x.push(j))}}return C[h]=S.length,w}function v(e,n){var o=e._values,s=e._index,c=e._ptr,l=e._datatype||e._data===void 0?e._datatype:e.getDataType();if(!o)throw Error(`Cannot multiply Pattern only Matrix times Dense Matrix`);var u=n._data,d=n._datatype||n.getDataType(),f=e._size[0],p=n._size[0],m=[],h=[],g=[],_,v=r,y=i,b=a,x=0;l&&d&&l===d&&typeof l==`string`&&l!==`mixed`&&(_=l,v=t.find(r,[_,_]),y=t.find(i,[_,_]),b=t.find(a,[_,_]),x=t.convert(0,_));var S=[],C=[];g[0]=0;for(var w=0;w<p;w++){var T=u[w];if(!b(T,x))for(var E=c[w],D=c[w+1],O=E;O<D;O++){var k=s[O];C[k]?S[k]=v(S[k],y(T,o[O])):(C[k]=!0,h.push(k),S[k]=y(T,o[O]))}}for(var A=h.length,j=0;j<A;j++)m[j]=S[h[j]];return g[1]=h.length,e.createSparseMatrix({values:m,index:h,ptr:g,size:[f,1],datatype:l===e._datatype&&d===n._datatype?_:void 0})}function y(e,n){var o=e._values,s=e._index,c=e._ptr,l=e._datatype||e._data===void 0?e._datatype:e.getDataType();if(!o)throw Error(`Cannot multiply Pattern only Matrix times Dense Matrix`);var u=n._data,d=n._datatype||n.getDataType(),f=e._size[0],p=n._size[0],m=n._size[1],h,g=r,_=i,v=a,y=0;l&&d&&l===d&&typeof l==`string`&&l!==`mixed`&&(h=l,g=t.find(r,[h,h]),_=t.find(i,[h,h]),v=t.find(a,[h,h]),y=t.convert(0,h));for(var b=[],x=[],S=[],C=e.createSparseMatrix({values:b,index:x,ptr:S,size:[f,m],datatype:l===e._datatype&&d===n._datatype?h:void 0}),w=[],T=[],E=0;E<m;E++){S[E]=x.length;for(var D=E+1,O=0;O<p;O++){var k=u[O][E];if(!v(k,y))for(var A=c[O],j=c[O+1],M=A;M<j;M++){var N=s[M];T[N]===D?w[N]=g(w[N],_(k,o[M])):(T[N]=D,x.push(N),w[N]=_(k,o[M]))}}for(var P=S[E],ee=x.length,te=P;te<ee;te++)b[te]=w[x[te]]}return S[m]=x.length,C}function b(e,n){var a=e._values,o=e._index,s=e._ptr,c=e._datatype||e._data===void 0?e._datatype:e.getDataType(),l=n._values,u=n._index,d=n._ptr,f=n._datatype||n._data===void 0?n._datatype:n.getDataType(),p=e._size[0],m=n._size[1],h=a&&l,g,_=r,v=i;c&&f&&c===f&&typeof c==`string`&&c!==`mixed`&&(g=c,_=t.find(r,[g,g]),v=t.find(i,[g,g]));for(var y=h?[]:void 0,b=[],x=[],S=e.createSparseMatrix({values:y,index:b,ptr:x,size:[p,m],datatype:c===e._datatype&&f===n._datatype?g:void 0}),C=h?[]:void 0,w=[],T,E,D,O,k,A,j,M,N=0;N<m;N++){x[N]=b.length;var P=N+1;for(k=d[N],A=d[N+1],O=k;O<A;O++)if(M=u[O],h)for(E=s[M],D=s[M+1],T=E;T<D;T++)j=o[T],w[j]===P?C[j]=_(C[j],v(l[O],a[T])):(w[j]=P,b.push(j),C[j]=v(l[O],a[T]));else for(E=s[M],D=s[M+1],T=E;T<D;T++)j=o[T],w[j]!==P&&(w[j]=P,b.push(j));if(h)for(var ee=x[N],te=b.length,ne=ee;ne<te;ne++)y[ne]=C[b[ne]]}return x[m]=b.length,S}return t(Yh,i,{"Array, Array":t.referTo(`Matrix, Matrix`,e=>(t,r)=>{l(nm(t),nm(r));var i=e(n(t),n(r));return fu(i)?i.valueOf():i}),"Matrix, Matrix":function(e,t){var n=e.size(),r=t.size();return l(n,r),n.length===1?r.length===1?u(e,t,n[0]):d(e,t):r.length===1?p(e,t):m(e,t)},"Matrix, Array":t.referTo(`Matrix,Matrix`,e=>(t,r)=>e(t,n(r))),"Array, Matrix":t.referToSelf(e=>(t,r)=>e(n(t,r.storage()),r)),"SparseMatrix, any":function(e,t){return s(e,t,i,!1)},"DenseMatrix, any":function(e,t){return c(e,t,i,!1)},"any, SparseMatrix":function(e,t){return s(t,e,i,!0)},"any, DenseMatrix":function(e,t){return c(t,e,i,!0)},"Array, any":function(e,t){return c(n(e),t,i,!1).valueOf()},"any, Array":function(e,t){return c(n(t),e,i,!0).valueOf()},"any, any":i,"any, any, ...any":t.referToSelf(e=>(t,n,r)=>{for(var i=e(t,n),a=0;a<r.length;a++)i=e(i,r[a]);return i})})}),Zh=`subtract`,Qh=W(Zh,[`typed`,`matrix`,`equalScalar`,`subtractScalar`,`unaryMinus`,`DenseMatrix`,`concat`],e=>{var{typed:t,matrix:n,equalScalar:r,subtractScalar:i,unaryMinus:a,DenseMatrix:o,concat:s}=e,c=Gh({typed:t}),l=Lh({typed:t}),u=Rh({typed:t,equalScalar:r}),d=qh({typed:t,DenseMatrix:o}),f=Ah({typed:t,DenseMatrix:o}),p=Hh({typed:t,matrix:n,concat:s});return t(Zh,{"any, any":i},p({elop:i,SS:u,DS:c,SD:l,Ss:f,sS:d}))}),$h=W(`matAlgo07xSSf`,[`typed`,`DenseMatrix`],e=>{var{typed:t,DenseMatrix:n}=e;return function(e,i,a){var o=e._size,s=e._datatype||e._data===void 0?e._datatype:e.getDataType(),c=i._size,l=i._datatype||i._data===void 0?i._datatype:i.getDataType();if(o.length!==c.length)throw new em(o.length,c.length);if(o[0]!==c[0]||o[1]!==c[1])throw RangeError(`Dimension mismatch. Matrix A (`+o+`) must match Matrix B (`+c+`)`);var u=o[0],d=o[1],f,p=0,m=a;typeof s==`string`&&s===l&&s!==`mixed`&&(f=s,p=t.convert(0,f),m=t.find(a,[f,f]));var h,g,_=[];for(h=0;h<u;h++)_[h]=[];var v=[],y=[],b=[],x=[];for(g=0;g<d;g++){var S=g+1;for(r(e,g,b,v,S),r(i,g,x,y,S),h=0;h<u;h++){var C=b[h]===S?v[h]:p,w=x[h]===S?y[h]:p;_[h][g]=m(C,w)}}return new n({data:_,size:[u,d],datatype:s===e._datatype&&l===i._datatype?f:void 0})};function r(e,t,n,r,i){for(var a=e._values,o=e._index,s=e._ptr,c=s[t],l=s[t+1];c<l;c++){var u=o[c];n[u]=i,r[u]=a[c]}}}),eg=`conj`,tg=W(eg,[`typed`],e=>{var{typed:t}=e;return t(eg,{"number | BigNumber | Fraction":e=>e,Complex:e=>e.conjugate(),"Array | Matrix":t.referToSelf(e=>t=>km(t,e))})}),ng=`concat`,rg=W(ng,[`typed`,`matrix`,`isInteger`],e=>{var{typed:t,matrix:n,isInteger:r}=e;return t(ng,{"...Array | Matrix | number | BigNumber":function(e){var t,i=e.length,a=-1,o,s=!1,c=[];for(t=0;t<i;t++){var l=e[t];if(fu(l)&&(s=!0),iu(l)||au(l)){if(t!==i-1)throw Error(`Dimension must be specified as last argument`);if(o=a,a=l.valueOf(),!r(a))throw TypeError(`Integer number expected for dimension`);if(a<0||t>0&&a>o)throw new tm(a,o+1)}else{var u=Ku(l).valueOf(),d=nm(u);if(c[t]=u,o=a,a=d.length-1,t>0&&a!==o)throw new em(o+1,a+1)}}if(c.length===0)throw SyntaxError(`At least one matrix expected`);for(var f=c.shift();c.length;)f=_m(f,c.shift(),a);return s?n(f):f},"...string":function(e){return e.join(``)}})}),ig=`identity`,ag=W(ig,[`typed`,`config`,`matrix`,`BigNumber`,`DenseMatrix`,`SparseMatrix`],e=>{var{typed:t,config:n,matrix:r,BigNumber:i,DenseMatrix:a,SparseMatrix:o}=e;return t(ig,{"":function(){return n.matrix===`Matrix`?r([]):[]},string:function(e){return r(e)},"number | BigNumber":function(e){return c(e,e,n.matrix===`Matrix`?`dense`:void 0)},"number | BigNumber, string":function(e,t){return c(e,e,t)},"number | BigNumber, number | BigNumber":function(e,t){return c(e,t,n.matrix===`Matrix`?`dense`:void 0)},"number | BigNumber, number | BigNumber, string":function(e,t,n){return c(e,t,n)},Array:function(e){return s(e)},"Array, string":function(e,t){return s(e,t)},Matrix:function(e){return s(e.valueOf(),e.storage())},"Matrix, string":function(e,t){return s(e.valueOf(),t)}});function s(e,t){switch(e.length){case 0:return t?r(t):[];case 1:return c(e[0],e[0],t);case 2:return c(e[0],e[1],t);default:throw Error(`Vector containing two values expected`)}}function c(e,t,n){var r=au(e)||au(t)?i:null;if(au(e)&&(e=e.toNumber()),au(t)&&(t=t.toNumber()),!ad(e)||e<1||!ad(t)||t<1)throw Error(`Parameters in function identity must be positive integers`);var s=r?new i(1):1,c=r?new r(0):0,l=[e,t];if(n){if(n===`sparse`)return o.diagonal(l,s,0,c);if(n===`dense`)return a.diagonal(l,s,0,c);throw TypeError(`Unknown matrix type "${n}"`)}for(var u=om([],l,c),d=e<t?e:t,f=0;f<d;f++)u[f][f]=s;return u}});function og(){throw Error(`No "bignumber" implementation available`)}function sg(){throw Error(`No "fraction" implementation available`)}function cg(){throw Error(`No "matrix" implementation available`)}var lg=`size`,ug=W(lg,[`typed`,`config`,`?matrix`],e=>{var{typed:t,config:n,matrix:r}=e;return t(lg,{Matrix:function(e){return e.create(e.size(),`number`)},Array:nm,string:function(e){return n.matrix===`Array`?[e.length]:r([e.length],`dense`,`number`)},"number | Complex | BigNumber | Unit | boolean | null":function(e){return n.matrix===`Array`?[]:r?r([],`dense`,`number`):cg()}})}),dg=`zeros`,fg=W(dg,[`typed`,`config`,`matrix`,`BigNumber`],e=>{var{typed:t,config:n,matrix:r,BigNumber:i}=e;return t(dg,{"":function(){return n.matrix===`Array`?a([]):a([],`default`)},"...number | BigNumber | string":function(e){return typeof e[e.length-1]==`string`?a(e,e.pop()):n.matrix===`Array`?a(e):a(e,`default`)},Array:a,Matrix:function(e){var t=e.storage();return a(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return a(e.valueOf(),t)}});function a(e,t){var n=o(e)?new i(0):0;if(s(e),t){var a=r(t);return e.length>0?a.resize(e,n):a}else{var c=[];return e.length>0?om(c,e,n):c}}function o(e){var t=!1;return e.forEach(function(e,n,r){au(e)&&(t=!0,r[n]=e.toNumber())}),t}function s(e){e.forEach(function(e){if(typeof e!=`number`||!ad(e)||e<0)throw Error(`Parameters in function zeros must be positive integers`)})}});function pg(e){"@babel/helpers - typeof";return pg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pg(e)}function mg(e,t){if(pg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(pg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function hg(e){var t=mg(e,`string`);return pg(t)==`symbol`?t:t+``}var gg=W(`numeric`,[`number`,`?bignumber`,`?fraction`],e=>{var{number:t,bignumber:n,fraction:r}=e,i={string:!0,number:!0,BigNumber:!0,Fraction:!0},a={number:e=>t(e),BigNumber:n?e=>n(e):og,bigint:e=>BigInt(e),Fraction:r?e=>r(e):sg};return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`number`;if((arguments.length>2?arguments[2]:void 0)!==void 0)throw SyntaxError(`numeric() takes one or two arguments`);var n=Gu(e);if(!(n in i))throw TypeError(`Cannot convert `+e+` of type "`+n+`"; valid input types are `+Object.keys(i).join(`, `));if(!(t in a))throw TypeError(`Cannot convert `+e+` to type "`+t+`"; valid output types are `+Object.keys(a).join(`, `));return t===n?e:a[t](e)}}),_g=`divideScalar`,vg=W(_g,[`typed`,`numeric`],e=>{var{typed:t,numeric:n}=e;return t(_g,{"number, number":function(e,t){return e/t},"Complex, Complex":function(e,t){return e.div(t)},"BigNumber, BigNumber":function(e,t){return e.div(t)},"bigint, bigint":function(e,t){return e/t},"Fraction, Fraction":function(e,t){return e.div(t)},"Unit, number | Complex | Fraction | BigNumber | Unit":(e,t)=>e.divide(t),"number | Fraction | Complex | BigNumber, Unit":(e,t)=>t.divideInto(e)})}),yg=`Number of decimals in function round must be an integer`,bg=`round`,xg=W(bg,[`typed`,`config`,`matrix`,`equalScalar`,`zeros`,`BigNumber`,`DenseMatrix`],e=>{var{typed:t,config:n,matrix:r,equalScalar:i,zeros:a,BigNumber:o,DenseMatrix:s}=e,c=kh({typed:t,equalScalar:i}),l=Ah({typed:t,DenseMatrix:s}),u=jh({typed:t});function d(e){return Math.abs(hd(e).exponent)}return t(bg,{number:function(e){var t=nh(e,d(n.relTol));return nh(Cd(e,t,n.relTol,n.absTol)?t:e)},"number, number":function(e,t){var r=d(n.relTol);if(t>=r)return nh(e,t);var i=nh(e,r);return nh(Cd(e,i,n.relTol,n.absTol)?i:e,t)},"number, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(yg);return new o(e).toDecimalPlaces(t.toNumber())},Complex:function(e){return e.round()},"Complex, number":function(e,t){if(t%1)throw TypeError(yg);return e.round(t)},"Complex, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(yg);var n=t.toNumber();return e.round(n)},BigNumber:function(e){var t=new o(e).toDecimalPlaces(d(n.relTol));return(ih(e,t,n.relTol,n.absTol)?t:e).toDecimalPlaces(0)},"BigNumber, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(yg);var r=d(n.relTol);if(t>=r)return e.toDecimalPlaces(t.toNumber());var i=e.toDecimalPlaces(r);return(ih(e,i,n.relTol,n.absTol)?i:e).toDecimalPlaces(t.toNumber())},Fraction:function(e){return e.round()},"Fraction, number":function(e,t){if(t%1)throw TypeError(yg);return e.round(t)},"Fraction, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(yg);return e.round(t.toNumber())},"Unit, number, Unit":t.referToSelf(e=>function(t,n,r){var i=t.toNumeric(r);return r.multiply(e(i,n))}),"Unit, BigNumber, Unit":t.referToSelf(e=>(t,n,r)=>e(t,n.toNumber(),r)),"Unit, Unit":t.referToSelf(e=>(t,n)=>e(t,0,n)),"Array | Matrix, number, Unit":t.referToSelf(e=>(t,n,r)=>km(t,t=>e(t,n,r),!0)),"Array | Matrix, BigNumber, Unit":t.referToSelf(e=>(t,n,r)=>e(t,n.toNumber(),r)),"Array | Matrix, Unit":t.referToSelf(e=>(t,n)=>e(t,0,n)),"Array | Matrix":t.referToSelf(e=>t=>km(t,e,!0)),"SparseMatrix, number | BigNumber":t.referToSelf(e=>(t,n)=>c(t,n,e,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(e=>(t,n)=>u(t,n,e,!1)),"Array, number | BigNumber":t.referToSelf(e=>(t,n)=>u(r(t),n,e,!1).valueOf()),"number | Complex | BigNumber | Fraction, SparseMatrix":t.referToSelf(e=>(t,n)=>i(t,0)?a(n.size(),n.storage()):l(n,t,e,!0)),"number | Complex | BigNumber | Fraction, DenseMatrix":t.referToSelf(e=>(t,n)=>i(t,0)?a(n.size(),n.storage()):u(n,t,e,!0)),"number | Complex | BigNumber | Fraction, Array":t.referToSelf(e=>(t,n)=>u(r(n),t,e,!0).valueOf())})}),Sg=`equal`,Cg=W(Sg,[`typed`,`matrix`,`equalScalar`,`DenseMatrix`,`concat`],e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:i,concat:a}=e,o=Lh({typed:t}),s=$h({typed:t,DenseMatrix:i}),c=Ah({typed:t,DenseMatrix:i}),l=Hh({typed:t,matrix:n,concat:a});return t(Sg,wg({typed:t,equalScalar:r}),l({elop:r,SS:s,DS:o,Ss:c}))}),wg=W(Sg,[`typed`,`equalScalar`],e=>{var{typed:t,equalScalar:n}=e;return t(Sg,{"any, any":function(e,t){return e===null?t===null:t===null?e===null:e===void 0?t===void 0:t===void 0?e===void 0:n(e,t)}})}),Tg=`smaller`,Eg=W(Tg,[`typed`,`config`,`matrix`,`DenseMatrix`,`concat`],e=>{var{typed:t,config:n,matrix:r,DenseMatrix:i,concat:a}=e,o=Lh({typed:t}),s=$h({typed:t,DenseMatrix:i}),c=Ah({typed:t,DenseMatrix:i}),l=Hh({typed:t,matrix:r,concat:a}),u=ch({typed:t});return t(Tg,Dg({typed:t,config:n}),{"boolean, boolean":(e,t)=>e<t,"BigNumber, BigNumber":function(e,t){return e.lt(t)&&!ih(e,t,n.relTol,n.absTol)},"bigint, bigint":(e,t)=>e<t,"Fraction, Fraction":(e,t)=>e.compare(t)===-1,"Complex, Complex":function(e,t){throw TypeError(`No ordering relation is defined for complex numbers`)}},u,l({SS:s,DS:o,Ss:c}))}),Dg=W(Tg,[`typed`,`config`],e=>{var{typed:t,config:n}=e;return t(Tg,{"number, number":function(e,t){return e<t&&!Cd(e,t,n.relTol,n.absTol)}})}),Og=`smallerEq`,kg=W(Og,[`typed`,`config`,`matrix`,`DenseMatrix`,`concat`],e=>{var{typed:t,config:n,matrix:r,DenseMatrix:i,concat:a}=e,o=Lh({typed:t}),s=$h({typed:t,DenseMatrix:i}),c=Ah({typed:t,DenseMatrix:i}),l=Hh({typed:t,matrix:r,concat:a}),u=ch({typed:t});return t(Og,Ag({typed:t,config:n}),{"boolean, boolean":(e,t)=>e<=t,"BigNumber, BigNumber":function(e,t){return e.lte(t)||ih(e,t,n.relTol,n.absTol)},"bigint, bigint":(e,t)=>e<=t,"Fraction, Fraction":(e,t)=>e.compare(t)!==1,"Complex, Complex":function(){throw TypeError(`No ordering relation is defined for complex numbers`)}},u,l({SS:s,DS:o,Ss:c}))}),Ag=W(Og,[`typed`,`config`],e=>{var{typed:t,config:n}=e;return t(Og,{"number, number":function(e,t){return e<=t||Cd(e,t,n.relTol,n.absTol)}})}),jg=`larger`,Mg=W(jg,[`typed`,`config`,`matrix`,`DenseMatrix`,`concat`],e=>{var{typed:t,config:n,matrix:r,DenseMatrix:i,concat:a}=e,o=Lh({typed:t}),s=$h({typed:t,DenseMatrix:i}),c=Ah({typed:t,DenseMatrix:i}),l=Hh({typed:t,matrix:r,concat:a}),u=ch({typed:t});return t(jg,Ng({typed:t,config:n}),{"boolean, boolean":(e,t)=>e>t,"BigNumber, BigNumber":function(e,t){return e.gt(t)&&!ih(e,t,n.relTol,n.absTol)},"bigint, bigint":(e,t)=>e>t,"Fraction, Fraction":(e,t)=>e.compare(t)===1,"Complex, Complex":function(){throw TypeError(`No ordering relation is defined for complex numbers`)}},u,l({SS:s,DS:o,Ss:c}))}),Ng=W(jg,[`typed`,`config`],e=>{var{typed:t,config:n}=e;return t(jg,{"number, number":function(e,t){return e>t&&!Cd(e,t,n.relTol,n.absTol)}})}),Pg=`largerEq`,Fg=W(Pg,[`typed`,`config`,`matrix`,`DenseMatrix`,`concat`],e=>{var{typed:t,config:n,matrix:r,DenseMatrix:i,concat:a}=e,o=Lh({typed:t}),s=$h({typed:t,DenseMatrix:i}),c=Ah({typed:t,DenseMatrix:i}),l=Hh({typed:t,matrix:r,concat:a}),u=ch({typed:t});return t(Pg,Ig({typed:t,config:n}),{"boolean, boolean":(e,t)=>e>=t,"BigNumber, BigNumber":function(e,t){return e.gte(t)||ih(e,t,n.relTol,n.absTol)},"bigint, bigint":function(e,t){return e>=t},"Fraction, Fraction":(e,t)=>e.compare(t)!==-1,"Complex, Complex":function(){throw TypeError(`No ordering relation is defined for complex numbers`)}},u,l({SS:s,DS:o,Ss:c}))}),Ig=W(Pg,[`typed`,`config`],e=>{var{typed:t,config:n}=e;return t(Pg,{"number, number":function(e,t){return e>=t||Cd(e,t,n.relTol,n.absTol)}})}),Lg=`add`,Rg=W(Lg,[`typed`,`matrix`,`addScalar`,`equalScalar`,`DenseMatrix`,`SparseMatrix`,`concat`],e=>{var{typed:t,matrix:n,addScalar:r,equalScalar:i,DenseMatrix:a,SparseMatrix:o,concat:s}=e,c=Gh({typed:t}),l=Kh({typed:t,equalScalar:i}),u=qh({typed:t,DenseMatrix:a}),d=Hh({typed:t,matrix:n,concat:s});return t(Lg,{"any, any":r,"any, any, ...any":t.referToSelf(e=>(t,n,r)=>{for(var i=e(t,n),a=0;a<r.length;a++)i=e(i,r[a]);return i})},d({elop:r,DS:c,SS:l,Ss:u}))}),zg=`dot`,Bg=W(zg,[`typed`,`addScalar`,`multiplyScalar`,`conj`,`size`],e=>{var{typed:t,addScalar:n,multiplyScalar:r,conj:i,size:a}=e;return t(zg,{"Array | DenseMatrix, Array | DenseMatrix":s,"SparseMatrix, SparseMatrix":c});function o(e,t){var n=l(e),r=l(t),i,a;if(n.length===1)i=n[0];else if(n.length===2&&n[1]===1)i=n[0];else throw RangeError(`Expected a column vector, instead got a matrix of size (`+n.join(`, `)+`)`);if(r.length===1)a=r[0];else if(r.length===2&&r[1]===1)a=r[0];else throw RangeError(`Expected a column vector, instead got a matrix of size (`+r.join(`, `)+`)`);if(i!==a)throw RangeError(`Vectors must have equal length (`+i+` != `+a+`)`);if(i===0)throw RangeError(`Cannot calculate the dot product of empty vectors`);return i}function s(e,a){var s=o(e,a),c=fu(e)?e._data:e,u=fu(e)?e._datatype||e.getDataType():void 0,d=fu(a)?a._data:a,f=fu(a)?a._datatype||a.getDataType():void 0,p=l(e).length===2,m=l(a).length===2,h=n,g=r;if(u&&f&&u===f&&typeof u==`string`&&u!==`mixed`){var _=u;h=t.find(n,[_,_]),g=t.find(r,[_,_])}if(!p&&!m){for(var v=g(i(c[0]),d[0]),y=1;y<s;y++)v=h(v,g(i(c[y]),d[y]));return v}if(!p&&m){for(var b=g(i(c[0]),d[0][0]),x=1;x<s;x++)b=h(b,g(i(c[x]),d[x][0]));return b}if(p&&!m){for(var S=g(i(c[0][0]),d[0]),C=1;C<s;C++)S=h(S,g(i(c[C][0]),d[C]));return S}if(p&&m){for(var w=g(i(c[0][0]),d[0][0]),T=1;T<s;T++)w=h(w,g(i(c[T][0]),d[T][0]));return w}}function c(e,t){o(e,t);for(var i=e._index,a=e._values,s=t._index,c=t._values,l=0,u=n,d=r,f=0,p=0;f<i.length&&p<s.length;){var m=i[f],h=s[p];if(m<h){f++;continue}if(m>h){p++;continue}m===h&&(l=u(l,d(a[f],c[p])),f++,p++)}return l}function l(e){return fu(e)?e.size():a(e)}}),Vg=`det`,Hg=W(Vg,[`typed`,`matrix`,`subtractScalar`,`multiply`,`divideScalar`,`isZero`,`unaryMinus`],e=>{var{typed:t,matrix:n,subtractScalar:r,multiply:i,divideScalar:a,isZero:o,unaryMinus:s}=e;return t(Vg,{any:function(e){return Ku(e)},"Array | Matrix":function(e){var t;switch(fu(e)?t=e.size():Array.isArray(e)?(e=n(e),t=e.size()):t=[],t.length){case 0:return Ku(e);case 1:if(t[0]===1)return Ku(e.valueOf()[0]);if(t[0]===0)return 1;throw RangeError(`Matrix must be square (size: `+Jp(t)+`)`);case 2:var r=t[0],i=t[1];if(r===i)return c(e.clone().valueOf(),r,i);if(i===0)return 1;throw RangeError(`Matrix must be square (size: `+Jp(t)+`)`);default:throw RangeError(`Matrix must be two dimensional (size: `+Jp(t)+`)`)}}});function c(e,t,n){if(t===1)return Ku(e[0][0]);if(t===2)return r(i(e[0][0],e[1][1]),i(e[1][0],e[0][1]));for(var c=!1,l=Array(t).fill(0).map((e,t)=>t),u=0;u<t;u++){var d=l[u];if(o(e[d][u])){var f=void 0;for(f=u+1;f<t;f++)if(!o(e[l[f]][u])){d=l[f],l[f]=l[u],l[u]=d,c=!c;break}if(f===t)return e[d][u]}for(var p=e[d][u],m=u===0?1:e[l[u-1]][u-1],h=u+1;h<t;h++)for(var g=l[h],_=u+1;_<t;_++)e[g][_]=a(r(i(e[g][_],p),i(e[g][u],e[d][_])),m)}var v=e[l[t-1]][t-1];return c?s(v):v}}),Ug=`inv`,Wg=W(Ug,[`typed`,`matrix`,`divideScalar`,`addScalar`,`multiply`,`unaryMinus`,`det`,`identity`,`abs`],e=>{var{typed:t,matrix:n,divideScalar:r,addScalar:i,multiply:a,unaryMinus:o,det:s,identity:c,abs:l}=e;return t(Ug,{"Array | Matrix":function(e){var t=fu(e)?e.size():nm(e);switch(t.length){case 1:if(t[0]===1)return fu(e)?n([r(1,e.valueOf()[0])]):[r(1,e[0])];throw RangeError(`Matrix must be square (size: `+Jp(t)+`)`);case 2:var i=t[0],a=t[1];if(i===a)return fu(e)?n(u(e.valueOf(),i,a),e.storage()):u(e,i,a);throw RangeError(`Matrix must be square (size: `+Jp(t)+`)`);default:throw RangeError(`Matrix must be two dimensional (size: `+Jp(t)+`)`)}},any:function(e){return r(1,e)}});function u(e,t,n){var u,d,f,p,m;if(t===1){if(p=e[0][0],p===0)throw Error(`Cannot calculate inverse, determinant is zero`);return[[r(1,p)]]}else if(t===2){var h=s(e);if(h===0)throw Error(`Cannot calculate inverse, determinant is zero`);return[[r(e[1][1],h),r(o(e[0][1]),h)],[r(o(e[1][0]),h),r(e[0][0],h)]]}else{var g=e.concat();for(u=0;u<t;u++)g[u]=g[u].concat();for(var _=c(t).valueOf(),v=0;v<n;v++){var y=l(g[v][v]),b=v;for(u=v+1;u<t;)l(g[u][v])>y&&(y=l(g[u][v]),b=u),u++;if(y===0)throw Error(`Cannot calculate inverse, determinant is zero`);u=b,u!==v&&(m=g[v],g[v]=g[u],g[u]=m,m=_[v],_[v]=_[u],_[u]=m);var x=g[v],S=_[v];for(u=0;u<t;u++){var C=g[u],w=_[u];if(u!==v){if(C[v]!==0){for(f=r(o(C[v]),x[v]),d=v;d<n;d++)C[d]=i(C[d],a(f,x[d]));for(d=0;d<n;d++)w[d]=i(w[d],a(f,S[d]))}}else{for(f=x[v],d=v;d<n;d++)C[d]=r(C[d],f);for(d=0;d<n;d++)w[d]=r(w[d],f)}}}return _}}}),Gg=W(`divide`,[`typed`,`matrix`,`multiply`,`equalScalar`,`divideScalar`,`inv`],e=>{var{typed:t,matrix:n,multiply:r,equalScalar:i,divideScalar:a,inv:o}=e,s=kh({typed:t,equalScalar:i}),c=jh({typed:t});return t(`divide`,Ju({"Array | Matrix, Array | Matrix":function(e,t){return r(e,o(t))},"DenseMatrix, any":function(e,t){return c(e,t,a,!1)},"SparseMatrix, any":function(e,t){return s(e,t,a,!1)},"Array, any":function(e,t){return c(n(e),t,a,!1).valueOf()},"any, Array | Matrix":function(e,t){return r(e,o(t))}},a.signatures))}),Kg=_p({config:ed}),qg=Ep({}),Jg=Bp({}),Yg=Vp({}),Xg=Om({Matrix:Yg}),Zg=Od({BigNumber:Kg,Complex:qg,DenseMatrix:Xg,Fraction:Jg}),Qg=wh({typed:Zg}),$g=Eh({typed:Zg}),e_=tg({typed:Zg}),t_=uh({config:ed,typed:Zg}),n_=jm({typed:Zg}),r_=oh({equalScalar:t_,typed:Zg}),i_=Jh({typed:Zg}),a_=gh({typed:Zg}),o_=dh({Matrix:Yg,equalScalar:t_,typed:Zg}),s_=Oh({typed:Zg}),c_=_h({BigNumber:Kg,typed:Zg}),l_=Sh({typed:Zg}),u_=vh({Fraction:Jg,typed:Zg}),d_=bh({DenseMatrix:Xg,Matrix:Yg,SparseMatrix:o_,typed:Zg}),f_=gg({bignumber:c_,fraction:u_,number:a_}),p_=ug({matrix:d_,config:ed,typed:Zg}),m_=fg({BigNumber:Kg,config:ed,matrix:d_,typed:Zg}),h_=rg({isInteger:n_,matrix:d_,typed:Zg}),g_=vg({numeric:f_,typed:Zg}),__=Cg({DenseMatrix:Xg,concat:h_,equalScalar:t_,matrix:d_,typed:Zg}),v_=ag({BigNumber:Kg,DenseMatrix:Xg,SparseMatrix:o_,config:ed,matrix:d_,typed:Zg}),y_=Fg({DenseMatrix:Xg,concat:h_,config:ed,matrix:d_,typed:Zg}),b_=xg({BigNumber:Kg,DenseMatrix:Xg,config:ed,equalScalar:t_,matrix:d_,typed:Zg,zeros:m_}),x_=Eg({DenseMatrix:Xg,concat:h_,config:ed,matrix:d_,typed:Zg}),S_=Qh({DenseMatrix:Xg,concat:h_,equalScalar:t_,matrix:d_,subtractScalar:s_,typed:Zg,unaryMinus:l_}),C_=Rg({DenseMatrix:Xg,SparseMatrix:o_,addScalar:$g,concat:h_,equalScalar:t_,matrix:d_,typed:Zg}),w_=Bg({addScalar:$g,conj:e_,multiplyScalar:i_,size:p_,typed:Zg}),T_=Mg({DenseMatrix:Xg,concat:h_,config:ed,matrix:d_,typed:Zg}),E_=Wh({DenseMatrix:Xg,concat:h_,config:ed,equalScalar:t_,matrix:d_,round:b_,typed:Zg,zeros:m_}),D_=Xh({addScalar:$g,dot:w_,equalScalar:t_,matrix:d_,multiplyScalar:i_,typed:Zg}),O_=Hg({divideScalar:g_,isZero:r_,matrix:d_,multiply:D_,subtractScalar:s_,typed:Zg,unaryMinus:l_}),k_=kg({DenseMatrix:Xg,concat:h_,config:ed,matrix:d_,typed:Zg}),A_=Gg({divideScalar:g_,equalScalar:t_,inv:Wg({abs:Qg,addScalar:$g,det:O_,divideScalar:g_,identity:v_,matrix:d_,multiply:D_,typed:Zg,unaryMinus:l_}),matrix:d_,multiply:D_,typed:Zg}),j_=Object.prototype;function M_(e){return typeof e==`object`&&!!e}function N_(e){if(!M_(e))return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e))return e.map(e=>N_(e));let t={};for(let[n,r]of Object.entries(e))t[n]=N_(r);return t}function P_(e){return Array.isArray(e)}function F_(e,t,n){let r=n?.(e,t);if(r!==void 0)return!!r;if(Object.is(e,t))return!0;if(!M_(e)||!M_(t))return!1;if(e instanceof Date||t instanceof Date)return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime();if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,r)=>F_(e,t[r],n));let i=Object.keys(e),a=Object.keys(t);return i.length===a.length&&i.every(r=>j_.hasOwnProperty.call(t,r)&&F_(e[r],t[r],n))}function I_(e,t){return F_(e,t)}function L_(e){return typeof e==`number`||e instanceof Number}function R_(e){return typeof e==`object`&&!!e||typeof e==`function`}function z_(e,t){let n=[];for(let r of e??[])n.some(e=>t(r,e))||n.push(r);return n}var B_=(e,t,n)=>{if(!__(E_(Qg(e),Qg(n)),0))throw Error(`start point must be divisible by interval`);if(__(e,t))return[];let r=S_(t,E_(t,Qg(n))),i=T_(n,0)?`positive`:`negative`;if(i===`negative`&&y_(t,e))throw Error(`start must be > than end when doing a negative decrement`);if(i===`positive`&&k_(t,e))throw Error(`start must be < end when doing increments`);let a;a=i===`positive`?k_:__(r,t)?y_:T_;let o=[],s=e;for(;a(s,r);)o.push(s),s=C_(s,n);return o},V_=(e,t)=>`Can only do a positive or negative range, but got: start: ${e} and end:${t}`,H_=(e,t,n)=>{if(e=u_(e),t=u_(t),n=u_(n),T_(Qg(S_(t,e)),Qg(t)))throw Error(V_(e,t));let r={start:Qg(e),end:Qg(t),interval:Qg(n),multiplier:x_(n,0)?-1:1},i=E_(r.start,r.interval),a=B_(T_(i,0)?C_(S_(r.start,i),r.interval):r.start,r.end,r.interval),o=r.multiplier===-1?a.map(e=>D_(e,-1)):a;return x_(n,0)&&o.reverse(),o},U_=(e,t)=>(e=u_(e),t=u_(t),x_(e,t)?e:t),W_=(e,t)=>(e=u_(e),t=u_(t),T_(e,t)?e:t),G_=(e,t,n)=>{e=u_(e),t=u_(t),n=u_(n);let r=T_(t,0)?H_(W_(0,e),t,n):[];return z_((x_(e,0)?H_(U_(0,t),e,D_(n,-1)):[]).concat(r),__)},K_=(e,t,n)=>{n||=2;let r=10**-n/2;return Math.abs(e-t)<r},q_=(e,t,n)=>x_(X_(e),X_(t))?t:T_(X_(e),X_(n))?n:e,J_=(e,t)=>{let n=a_(D_(10,A_(u_(e.max-e.min),t)));return{min:n,max:a_(D_(20,n))}},Y_=(e,t)=>__(E_(e,t),0),X_=e=>{if(R_(e))return u_(e.n*e.s,e.d);if(L_(e))return u_(e)},Z_=(e,t,n,r)=>{let i=!r||r.limit!==!1,a=J_(e,t),o=i?q_(X_(n.minor),a.min,a.max):X_(n.minor),s=i?q_(X_(n.major),o,D_(o,20)):X_(n.major);if(!Y_(s,o)){let e=A_(s,o);return{minor:o,major:D_(o,e<=2?2:Math.round(e))}}return{major:s,minor:o}},Q_=(e,t,n,r)=>(n=Z_(e,t,n,r),G_(e.min,e.max,n.minor).filter(t=>k_(t,u_(e.max))).map(e=>{let t=`minor`;return K_(a_(E_(e,n.major)),0)&&(t=`major`),{x:e,type:t}})),$_=(e,t,n,r)=>Q_(e,t,n,r).map(e=>r.fraction?e:{...e,x:a_(e.x)||0}),ev=(e,t,n,r)=>{r=W_(U_(r,t),e);let i=r.mod(n),a,o=n.div(2);if(y_(Qg(i),o)){let e=n.sub(Qg(i)),t=y_(r,0)?`add`:`sub`;a=r[t](e)}else{let e=y_(r,0)?`sub`:`add`;a=r[e](Qg(i))}return a},tv=(e,t,n,r)=>a_(ev(u_(e),u_(t),u_(n),u_(r)));function nv(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rv(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function iv(e){let t,n,r;e.length===2?(t=e===nv||e===rv?e:av,n=e,r=e):(t=nv,n=(t,n)=>nv(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function av(){return 0}function ov(e){return e===null?NaN:+e}var sv=iv(nv),cv=sv.right;sv.left,iv(ov).center;var lv=Math.sqrt(50),uv=Math.sqrt(10),dv=Math.sqrt(2);function fv(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=lv?10:a>=uv?5:a>=dv?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?fv(e,t,n*2):[s,c,l]}function pv(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?fv(t,e,n):fv(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function mv(e,t,n){return t=+t,e=+e,n=+n,fv(e,t,n)[2]}function hv(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?mv(t,e,n):mv(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function gv(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function _v(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function vv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function yv(){}var bv=.7,xv=1/bv,Sv=`\\s*([+-]?\\d+)\\s*`,Cv=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,wv=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Tv=/^#([0-9a-f]{3,8})$/,Ev=RegExp(`^rgb\\(${Sv},${Sv},${Sv}\\)$`),Dv=RegExp(`^rgb\\(${wv},${wv},${wv}\\)$`),Ov=RegExp(`^rgba\\(${Sv},${Sv},${Sv},${Cv}\\)$`),kv=RegExp(`^rgba\\(${wv},${wv},${wv},${Cv}\\)$`),Av=RegExp(`^hsl\\(${Cv},${wv},${wv}\\)$`),jv=RegExp(`^hsla\\(${Cv},${wv},${wv},${Cv}\\)$`),Mv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};_v(yv,Lv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Nv,formatHex:Nv,formatHex8:Pv,formatHsl:Fv,formatRgb:Iv,toString:Iv});function Nv(){return this.rgb().formatHex()}function Pv(){return this.rgb().formatHex8()}function Fv(){return Xv(this).formatHsl()}function Iv(){return this.rgb().formatRgb()}function Lv(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Tv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Rv(t):n===3?new Hv(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?zv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?zv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Ev.exec(e))?new Hv(t[1],t[2],t[3],1):(t=Dv.exec(e))?new Hv(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ov.exec(e))?zv(t[1],t[2],t[3],t[4]):(t=kv.exec(e))?zv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Av.exec(e))?Yv(t[1],t[2]/100,t[3]/100,1):(t=jv.exec(e))?Yv(t[1],t[2]/100,t[3]/100,t[4]):Mv.hasOwnProperty(e)?Rv(Mv[e]):e===`transparent`?new Hv(NaN,NaN,NaN,0):null}function Rv(e){return new Hv(e>>16&255,e>>8&255,e&255,1)}function zv(e,t,n,r){return r<=0&&(e=t=n=NaN),new Hv(e,t,n,r)}function Bv(e){return e instanceof yv||(e=Lv(e)),e?(e=e.rgb(),new Hv(e.r,e.g,e.b,e.opacity)):new Hv}function Vv(e,t,n,r){return arguments.length===1?Bv(e):new Hv(e,t,n,r??1)}function Hv(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}_v(Hv,Vv,vv(yv,{brighter(e){return e=e==null?xv:xv**+e,new Hv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?bv:bv**+e,new Hv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Hv(qv(this.r),qv(this.g),qv(this.b),Kv(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Uv,formatHex:Uv,formatHex8:Wv,formatRgb:Gv,toString:Gv}));function Uv(){return`#${Jv(this.r)}${Jv(this.g)}${Jv(this.b)}`}function Wv(){return`#${Jv(this.r)}${Jv(this.g)}${Jv(this.b)}${Jv((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gv(){let e=Kv(this.opacity);return`${e===1?`rgb(`:`rgba(`}${qv(this.r)}, ${qv(this.g)}, ${qv(this.b)}${e===1?`)`:`, ${e})`}`}function Kv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jv(e){return e=qv(e),(e<16?`0`:``)+e.toString(16)}function Yv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Qv(e,t,n,r)}function Xv(e){if(e instanceof Qv)return new Qv(e.h,e.s,e.l,e.opacity);if(e instanceof yv||(e=Lv(e)),!e)return new Qv;if(e instanceof Qv)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Qv(o,s,c,e.opacity)}function Zv(e,t,n,r){return arguments.length===1?Xv(e):new Qv(e,t,n,r??1)}function Qv(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}_v(Qv,Zv,vv(yv,{brighter(e){return e=e==null?xv:xv**+e,new Qv(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?bv:bv**+e,new Qv(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Hv(ty(e>=240?e-240:e+120,i,r),ty(e,i,r),ty(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Qv($v(this.h),ey(this.s),ey(this.l),Kv(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Kv(this.opacity);return`${e===1?`hsl(`:`hsla(`}${$v(this.h)}, ${ey(this.s)*100}%, ${ey(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function $v(e){return e=(e||0)%360,e<0?e+360:e}function ey(e){return Math.max(0,Math.min(1,e||0))}function ty(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var ny=e=>()=>e;function ry(e,t){return function(n){return e+n*t}}function iy(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function ay(e){return(e=+e)==1?oy:function(t,n){return n-t?iy(t,n,e):ny(isNaN(t)?n:t)}}function oy(e,t){var n=t-e;return n?ry(e,n):ny(isNaN(e)?t:e)}var sy=(function e(t){var n=ay(t);function r(e,t){var r=n((e=Vv(e)).r,(t=Vv(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=oy(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function cy(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function ly(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function uy(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=yy(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function dy(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function fy(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function py(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=yy(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var my=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hy=new RegExp(my.source,`g`);function gy(e){return function(){return e}}function _y(e){return function(t){return e(t)+``}}function vy(e,t){var n=my.lastIndex=hy.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=my.exec(e))&&(i=hy.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:fy(r,i)})),n=hy.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?_y(c[0].x):gy(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function yy(e,t){var n=typeof t,r;return t==null||n===`boolean`?ny(t):(n===`number`?fy:n===`string`?(r=Lv(t))?(t=r,sy):vy:t instanceof Lv?sy:t instanceof Date?dy:ly(t)?cy:Array.isArray(t)?uy:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?py:fy)(e,t)}function by(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function xy(e){return function(){return e}}function Sy(e){return+e}var Cy=[0,1];function wy(e){return e}function Ty(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:xy(isNaN(t)?NaN:.5)}function Ey(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function Dy(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Ty(i,r),a=n(o,a)):(r=Ty(r,i),a=n(a,o)),function(e){return a(r(e))}}function Oy(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Ty(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=cv(e,t,1,r)-1;return a[n](i[n](t))}}function ky(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ay(){var e=Cy,t=Cy,n=yy,r,i,a,o=wy,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==wy&&(o=Ey(e[0],e[n-1])),s=n>2?Oy:Dy,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),fy))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Sy),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=by,u()},d.clamp=function(e){return arguments.length?(o=e?!0:wy,u()):o!==wy},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function jy(){return Ay()(wy,wy)}function My(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Ny(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Py(e){return e=Ny(Math.abs(e)),e?e[1]:NaN}function Fy(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Iy(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Ly=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ry(e){if(!(t=Ly.exec(e)))throw Error(`invalid format: `+e);var t;return new zy({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ry.prototype=zy.prototype;function zy(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}zy.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function By(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Vy;function Hy(e,t){var n=Ny(e,t);if(!n)return Vy=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Vy=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Ny(e,Math.max(0,t+a-1))[0]}function Uy(e,t){var n=Ny(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Wy={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:My,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Uy(e*100,t),r:Uy,s:Hy,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Gy(e){return e}var Ky=Array.prototype.map,qy=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function Jy(e){var t=e.grouping===void 0||e.thousands===void 0?Gy:Fy(Ky.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Gy:Iy(Ky.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=Ry(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):Wy[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=Wy[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=By(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&Vy!==void 0?qy[8+Vy/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Py(t)/3)))*3,r=10**-n,i=l((e=Ry(e),e.type=`f`,e),{suffix:qy[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var Yy,Xy,Zy;Qy({thousands:`,`,grouping:[3],currency:[`$`,``]});function Qy(e){return Yy=Jy(e),Xy=Yy.format,Zy=Yy.formatPrefix,Yy}function $y(e){return Math.max(0,-Py(Math.abs(e)))}function eb(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Py(t)/3)))*3-Py(Math.abs(e)))}function tb(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Py(t)-Py(e))+1}function nb(e,t,n,r){var i=hv(e,t,n),a;switch(r=Ry(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=eb(i,o))&&(r.precision=a),Zy(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=tb(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=$y(i))&&(r.precision=a-(r.type===`%`)*2);break}return Xy(r)}function rb(e){var t=e.domain;return e.ticks=function(e){var n=t();return pv(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return nb(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=mv(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function ib(){var e=jy();return e.copy=function(){return ky(e,ib())},gv.apply(e,arguments),rb(e)}var ab={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function ob(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),ab.hasOwnProperty(t)?{space:ab[t],local:e}:e}function sb(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function cb(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function lb(e){var t=ob(e);return(t.local?cb:sb)(t)}function ub(){}function db(e){return e==null?ub:function(){return this.querySelector(e)}}function fb(e){typeof e!=`function`&&(e=db(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new eS(r,this._parents)}function pb(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function mb(){return[]}function hb(e){return e==null?mb:function(){return this.querySelectorAll(e)}}function gb(e){return function(){return pb(e.apply(this,arguments))}}function _b(e){e=typeof e==`function`?gb(e):hb(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new eS(r,i)}function vb(e){return function(){return this.matches(e)}}function yb(e){return function(t){return t.matches(e)}}var bb=Array.prototype.find;function xb(e){return function(){return bb.call(this.children,e)}}function Sb(){return this.firstElementChild}function Cb(e){return this.select(e==null?Sb:xb(typeof e==`function`?e:yb(e)))}var wb=Array.prototype.filter;function Tb(){return Array.from(this.children)}function Eb(e){return function(){return wb.call(this.children,e)}}function Db(e){return this.selectAll(e==null?Tb:Eb(typeof e==`function`?e:yb(e)))}function Ob(e){typeof e!=`function`&&(e=vb(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new eS(r,this._parents)}function kb(e){return Array(e.length)}function Ab(){return new eS(this._enter||this._groups.map(kb),this._parents)}function jb(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}jb.prototype={constructor:jb,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Mb(e){return function(){return e}}function Nb(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new jb(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Pb(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new jb(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Fb(e){return e.__data__}function Ib(e,t){if(!arguments.length)return Array.from(this,Fb);var n=t?Pb:Nb,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Mb(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Lb(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new eS(o,r),o._enter=s,o._exit=c,o}function Lb(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Rb(){return new eS(this._exit||this._groups.map(kb),this._parents)}function zb(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Bb(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new eS(s,this._parents)}function Vb(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Hb(e){e||=Ub;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new eS(i,this._parents).order()}function Ub(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Wb(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Gb(){return Array.from(this)}function Kb(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function qb(){let e=0;for(let t of this)++e;return e}function Jb(){return!this.node()}function Yb(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Xb(e){return function(){this.removeAttribute(e)}}function Zb(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Qb(e,t){return function(){this.setAttribute(e,t)}}function $b(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ex(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function tx(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function nx(e,t){var n=ob(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Zb:Xb:typeof t==`function`?n.local?tx:ex:n.local?$b:Qb)(n,t))}function rx(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ix(e){return function(){this.style.removeProperty(e)}}function ax(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ox(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function sx(e,t,n){return arguments.length>1?this.each((t==null?ix:typeof t==`function`?ox:ax)(e,t,n??``)):cx(this.node(),e)}function cx(e,t){return e.style.getPropertyValue(t)||rx(e).getComputedStyle(e,null).getPropertyValue(t)}function lx(e){return function(){delete this[e]}}function ux(e,t){return function(){this[e]=t}}function dx(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function fx(e,t){return arguments.length>1?this.each((t==null?lx:typeof t==`function`?dx:ux)(e,t)):this.node()[e]}function px(e){return e.trim().split(/^|\s+/)}function mx(e){return e.classList||new hx(e)}function hx(e){this._node=e,this._names=px(e.getAttribute(`class`)||``)}hx.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function gx(e,t){for(var n=mx(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function _x(e,t){for(var n=mx(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function vx(e){return function(){gx(this,e)}}function yx(e){return function(){_x(this,e)}}function bx(e,t){return function(){(t.apply(this,arguments)?gx:_x)(this,e)}}function xx(e,t){var n=px(e+``);if(arguments.length<2){for(var r=mx(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?bx:t?vx:yx)(n,t))}function Sx(){this.textContent=``}function Cx(e){return function(){this.textContent=e}}function wx(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Tx(e){return arguments.length?this.each(e==null?Sx:(typeof e==`function`?wx:Cx)(e)):this.node().textContent}function Ex(){this.innerHTML=``}function Dx(e){return function(){this.innerHTML=e}}function Ox(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function kx(e){return arguments.length?this.each(e==null?Ex:(typeof e==`function`?Ox:Dx)(e)):this.node().innerHTML}function Ax(){this.nextSibling&&this.parentNode.appendChild(this)}function jx(){return this.each(Ax)}function Mx(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Nx(){return this.each(Mx)}function Px(e){var t=typeof e==`function`?e:lb(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Fx(){return null}function Ix(e,t){var n=typeof e==`function`?e:lb(e),r=t==null?Fx:typeof t==`function`?t:db(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Lx(){var e=this.parentNode;e&&e.removeChild(this)}function Rx(){return this.each(Lx)}function zx(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Bx(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Vx(e){return this.select(e?Bx:zx)}function Hx(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Ux(e){return function(t){e.call(this,t,this.__data__)}}function Wx(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Gx(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Kx(e,t,n){return function(){var r=this.__on,i,a=Ux(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function qx(e,t,n){var r=Wx(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Kx:Gx,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Jx(e,t,n){var r=rx(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Yx(e,t){return function(){return Jx(this,e,t)}}function Xx(e,t){return function(){return Jx(this,e,t.apply(this,arguments))}}function Zx(e,t){return this.each((typeof t==`function`?Xx:Yx)(e,t))}function*Qx(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var $x=[null];function eS(e,t){this._groups=e,this._parents=t}function tS(){return new eS([[document.documentElement]],$x)}function nS(){return this}eS.prototype=tS.prototype={constructor:eS,select:fb,selectAll:_b,selectChild:Cb,selectChildren:Db,filter:Ob,data:Ib,enter:Ab,exit:Rb,join:zb,merge:Bb,selection:nS,order:Vb,sort:Hb,call:Wb,nodes:Gb,node:Kb,size:qb,empty:Jb,each:Yb,attr:nx,style:sx,property:fx,classed:xx,text:Tx,html:kx,raise:jx,lower:Nx,append:Px,insert:Ix,remove:Rx,clone:Vx,datum:Hx,on:qx,dispatch:Zx,[Symbol.iterator]:Qx};function rS(e){return typeof e==`string`?new eS([[document.querySelector(e)]],[document.documentElement]):new eS([[e]],$x)}function iS(e){let t;for(;t=e.sourceEvent;)e=t;return e}function aS(e,t){if(e=iS(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var oS=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,sS=({size:e,children:t})=>(e=oS(e),(0,z.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));sS.propTypes={size:R.number,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired};var cS=({size:e,children:t,sx:n})=>(0,z.jsx)(sS,{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})});cS.propTypes={size:R.oneOfType([R.string,R.number]),children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,sx:R.object};var lS=({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});lS.propTypes={fill:R.string.isRequired};var uS=({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});uS.propTypes={fill:R.string.isRequired};var dS=({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});dS.propTypes={fill:R.string.isRequired};var fS=({fill:e})=>(0,z.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});fS.propTypes={fill:R.string.isRequired};var pS=({fill:e})=>(0,z.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});pS.propTypes={fill:R.string.isRequired};var mS=(e,t)=>{class n extends L.Component{static propTypes={iconSet:R.oneOf([`emoji`,`check`]),shape:R.oneOf([`round`,`square`]),category:R.oneOf([`feedback`,void 0]),open:R.bool,size:R.oneOfType([R.number,R.string]),fg:R.string,bg:R.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)(cS,{size:o,children:u}):(0,z.jsxs)(cS,{size:o,children:[i===`feedback`?r===`round`?(0,z.jsx)(dS,{fill:c}):(0,z.jsx)(uS,{fill:c}):r===`round`?(0,z.jsx)(fS,{fill:c}):(0,z.jsx)(pS,{fill:c}),l]})}}return n},hS=({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
|
|
154
|
-
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})]});
|
|
155
|
-
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})]});
|
|
153
|
+
(`+Xp(l,e)+`, `+Xp(a,e)+`) ==> `+(this._values?Xp(this._values[c],e):`X`)}return i},i.prototype.toString=function(){return Xp(this.toArray())},i.prototype.toJSON=function(){return{mathjs:`SparseMatrix`,values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(e){if(e){if(su(e)&&(e=e.toNumber()),!ou(e)||!sd(e))throw TypeError(`The parameter k must be an integer number`)}else e=0;var t=e>0?e:0,n=e<0?-e:0,r=this._size[0],a=this._size[1],o=Math.min(r-n,a-t),s=[],c=[],l=[];l[0]=0;for(var u=t;u<a&&s.length<o;u++)for(var d=this._ptr[u],f=this._ptr[u+1],p=d;p<f;p++){var m=this._index[p];if(m===u-t+n){s.push(this._values[p]),c[s.length-1]=m-n;break}}return l.push(s.length),new i({values:s,index:c,ptr:l,size:[o,1]})},i.fromJSON=function(e){return new i(e)},i.diagonal=function(e,r,a,o,s){if(!pu(e))throw TypeError(`Array expected, size parameter`);if(e.length!==2)throw Error(`Only two dimensions matrix are supported`);if(e=e.map(function(e){if(su(e)&&(e=e.toNumber()),!ou(e)||!sd(e)||e<1)throw Error(`Size values must be positive integers`);return e}),a){if(su(a)&&(a=a.toNumber()),!ou(a)||!sd(a))throw TypeError(`The parameter k must be an integer number`)}else a=0;var c=n,l=0;fu(s)&&(c=t.find(n,[s,s])||n,l=t.convert(0,s));var u=a>0?a:0,d=a<0?-a:0,f=e[0],p=e[1],m=Math.min(f-d,p-u),h;if(pu(r)){if(r.length!==m)throw Error(`Invalid value array length`);h=function(e){return r[e]}}else if(mu(r)){var g=r.size();if(g.length!==1||g[0]!==m)throw Error(`Invalid matrix length`);h=function(e){return r.get([e])}}else h=function(){return r};for(var _=[],v=[],y=[],b=0;b<p;b++){y.push(_.length);var x=b-u;if(x>=0&&x<m){var S=h(x);c(S,l)||(v.push(x+d),_.push(S))}}return y.push(_.length),new i({values:_,index:v,ptr:y,size:[f,p]})},i.prototype.swapRows=function(e,t){if(!ou(e)||!sd(e)||!ou(t)||!sd(t))throw Error(`Row index must be positive integers`);if(this._size.length!==2)throw Error(`Only two dimensional matrix is supported`);return sm(e,this._size[0]),sm(t,this._size[0]),i._swapRows(e,t,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(e,t,n,r,i){for(var a=r[e],o=r[e+1],s=a;s<o;s++)i(n[s],t[s])},i._swapRows=function(e,t,n,r,i,a){for(var o=0;o<n;o++){var s=a[o],c=a[o+1],u=l(e,s,c,i),d=l(t,s,c,i);if(u<c&&d<c&&i[u]===e&&i[d]===t){if(r){var f=r[u];r[u]=r[d],r[d]=f}continue}if(u<c&&i[u]===e&&(d>=c||i[d]!==t)){var p=r?r[u]:void 0;i.splice(d,0,t),r&&r.splice(d,0,p),i.splice(d<=u?u+1:u,1),r&&r.splice(d<=u?u+1:u,1);continue}if(d<c&&i[d]===t&&(u>=c||i[u]!==e)){var m=r?r[d]:void 0;i.splice(u,0,e),r&&r.splice(u,0,m),i.splice(u<=d?d+1:d,1),r&&r.splice(u<=d?d+1:d,1)}}},i},{isClass:!0}),mh=`number`,hh=[`typed`];function gh(e){var t=e.match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/);return t?{input:e,radix:{"0b":2,"0o":8,"0x":16}[t[1]],integerPart:t[2],fractionalPart:t[3]}:null}function _h(e){for(var t=parseInt(e.integerPart,e.radix),n=0,r=0;r<e.fractionalPart.length;r++){var i=parseInt(e.fractionalPart[r],e.radix);n+=i/e.radix**+(r+1)}var a=t+n;if(isNaN(a))throw SyntaxError(`String "`+e.input+`" is not a valid number`);return a}var vh=W(mh,hh,e=>{var{typed:t}=e,n=t(`number`,{"":function(){return 0},number:function(e){return e},string:function(e){if(e===`NaN`)return NaN;var t=gh(e);if(t)return _h(t);var n=0,r=e.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);r&&(n=Number(r[2]),e=r[1]);var i=Number(e);if(isNaN(i))throw SyntaxError(`String "`+e+`" is not a valid number`);if(r){if(i>2**n-1)throw SyntaxError(`String "${e}" is out of range`);i>=2**(n-1)&&(i-=2**n)}return i},BigNumber:function(e){return e.toNumber()},bigint:function(e){return Number(e)},Fraction:function(e){return e.valueOf()},Unit:t.referToSelf(e=>t=>{var n=t.clone();return n.value=e(t.value),n}),null:function(e){return 0},"Unit, string | Unit":function(e,t){return e.toNumber(t)},"Array | Matrix":t.referToSelf(e=>t=>jm(t,e))});return n.fromJSON=function(e){return parseFloat(e.value)},n}),yh=W(`bignumber`,[`typed`,`BigNumber`],e=>{var{typed:t,BigNumber:n}=e;return t(`bignumber`,{"":function(){return new n(0)},number:function(e){return new n(e+``)},string:function(e){var t=e.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(t){var r=t[2],i=n(t[1]),a=new n(2).pow(Number(r));if(i.gt(a.sub(1)))throw SyntaxError(`String "${e}" is out of range`);var o=new n(2).pow(Number(r)-1);return i.gte(o)?i.sub(a):i}return new n(e)},BigNumber:function(e){return e},bigint:function(e){return new n(e.toString())},Unit:t.referToSelf(e=>t=>{var n=t.clone();return n.value=e(t.value),n}),Fraction:function(e){return new n(e.n).div(e.d).times(e.s)},null:function(e){return new n(0)},"Array | Matrix":t.referToSelf(e=>t=>jm(t,e))})}),bh=W(`fraction`,[`typed`,`Fraction`],e=>{var{typed:t,Fraction:n}=e;return t(`fraction`,{number:function(e){if(!isFinite(e)||isNaN(e))throw Error(e+` cannot be represented as a fraction`);return new n(e)},string:function(e){return new n(e)},"number, number":function(e,t){return new n(e,t)},null:function(e){return new n(0)},BigNumber:function(e){return new n(e.toString())},bigint:function(e){return new n(e.toString())},Fraction:function(e){return e},Unit:t.referToSelf(e=>t=>{var n=t.clone();return n.value=e(t.value),n}),Object:function(e){return new n(e)},"Array | Matrix":t.referToSelf(e=>t=>jm(t,e))})}),xh=`matrix`,Sh=W(xh,[`typed`,`Matrix`,`DenseMatrix`,`SparseMatrix`],e=>{var{typed:t,Matrix:n,DenseMatrix:r,SparseMatrix:i}=e;return t(xh,{"":function(){return a([])},string:function(e){return a([],e)},"string, string":function(e,t){return a([],e,t)},Array:function(e){return a(e)},Matrix:function(e){return a(e,e.storage())},"Array | Matrix, string":a,"Array | Matrix, string, string":a});function a(e,t,n){if(t===`dense`||t==="default"||t===void 0)return new r(e,n);if(t===`sparse`)return new i(e,n);throw TypeError(`Unknown matrix type `+JSON.stringify(t)+`.`)}}),Ch=`unaryMinus`,wh=W(Ch,[`typed`],e=>{var{typed:t}=e;return t(Ch,{number:Vm,"Complex | BigNumber | Fraction":e=>e.neg(),bigint:e=>-e,Unit:t.referToSelf(e=>n=>{var r=n.clone();return r.value=t.find(e,r.valueType())(n.value),r}),"Array | Matrix":t.referToSelf(e=>t=>jm(t,e,!0))})}),Th=`abs`,Eh=W(Th,[`typed`],e=>{var{typed:t}=e;return t(Th,{number:Im,"Complex | BigNumber | Fraction | Unit":e=>e.abs(),bigint:e=>e<0n?-e:e,"Array | Matrix":t.referToSelf(e=>t=>jm(t,e,!0))})}),Dh=`addScalar`,Oh=W(Dh,[`typed`],e=>{var{typed:t}=e;return t(Dh,{"number, number":Lm,"Complex, Complex":function(e,t){return e.add(t)},"BigNumber, BigNumber":function(e,t){return e.plus(t)},"bigint, bigint":function(e,t){return e+t},"Fraction, Fraction":function(e,t){return e.add(t)},"Unit, Unit":t.referToSelf(e=>(n,r)=>{if(n.value===null||n.value===void 0)throw Error(`Parameter x contains a unit with undefined value`);if(r.value===null||r.value===void 0)throw Error(`Parameter y contains a unit with undefined value`);if(!n.equalBase(r))throw Error(`Units do not match`);var i=n.clone();return i.value=t.find(e,[i.valueType(),r.valueType()])(i.value,r.value),i.fixPrefix=!1,i})})}),kh=`subtractScalar`,Ah=W(kh,[`typed`],e=>{var{typed:t}=e;return t(kh,{"number, number":Rm,"Complex, Complex":function(e,t){return e.sub(t)},"BigNumber, BigNumber":function(e,t){return e.minus(t)},"bigint, bigint":function(e,t){return e-t},"Fraction, Fraction":function(e,t){return e.sub(t)},"Unit, Unit":t.referToSelf(e=>(n,r)=>{if(n.value===null||n.value===void 0)throw Error(`Parameter x contains a unit with undefined value`);if(r.value===null||r.value===void 0)throw Error(`Parameter y contains a unit with undefined value`);if(!n.equalBase(r))throw Error(`Units do not match`);var i=n.clone();return i.value=t.find(e,[i.valueType(),r.valueType()])(i.value,r.value),i.fixPrefix=!1,i})})}),jh=W(`matAlgo11xS0s`,[`typed`,`equalScalar`],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i,a){var o=e._values,s=e._index,c=e._ptr,l=e._size,u=e._datatype;if(!o)throw Error(`Cannot perform operation on Pattern Sparse Matrix and Scalar value`);var d=l[0],f=l[1],p,m=n,h=0,g=i;typeof u==`string`&&(p=u,m=t.find(n,[p,p]),h=t.convert(0,p),r=t.convert(r,p),g=t.find(i,[p,p]));for(var _=[],v=[],y=[],b=0;b<f;b++){y[b]=v.length;for(var x=c[b],S=c[b+1],C=x;C<S;C++){var w=s[C],T=a?g(r,o[C]):g(o[C],r);m(T,h)||(v.push(w),_.push(T))}}return y[f]=v.length,e.createSparseMatrix({values:_,index:v,ptr:y,size:[d,f],datatype:p})}}),Mh=W(`matAlgo12xSfs`,[`typed`,`DenseMatrix`],e=>{var{typed:t,DenseMatrix:n}=e;return function(e,r,i,a){var o=e._values,s=e._index,c=e._ptr,l=e._size,u=e._datatype;if(!o)throw Error(`Cannot perform operation on Pattern Sparse Matrix and Scalar value`);var d=l[0],f=l[1],p,m=i;typeof u==`string`&&(p=u,r=t.convert(r,p),m=t.find(i,[p,p]));for(var h=[],g=[],_=[],v=0;v<f;v++){for(var y=v+1,b=c[v],x=c[v+1],S=b;S<x;S++){var C=s[S];g[C]=o[S],_[C]=y}for(var w=0;w<d;w++)v===0&&(h[w]=[]),_[w]===y?h[w][v]=a?m(r,g[w]):m(g[w],r):h[w][v]=a?m(r,0):m(0,r)}return new n({data:h,size:[d,f],datatype:p})}}),Nh=W(`matAlgo14xDs`,[`typed`],e=>{var{typed:t}=e;return function(e,r,i,a){var o=e._data,s=e._size,c=e._datatype,l,u=i;typeof c==`string`&&(l=c,r=t.convert(r,l),u=t.find(i,[l,l]));var d=s.length>0?n(u,0,s,s[0],o,r,a):[];return e.createDenseMatrix({data:d,size:Ju(s),datatype:l})};function n(e,t,r,i,a,o,s){var c=[];if(t===r.length-1)for(var l=0;l<i;l++)c[l]=s?e(o,a[l]):e(a[l],o);else for(var u=0;u<i;u++)c[u]=n(e,t+1,r,r[t+1],a[u],o,s);return c}}),Ph=`floor`,Fh=[`typed`,`config`,`round`,`matrix`,`equalScalar`,`zeros`,`DenseMatrix`],Ih=W(Ph,[`typed`,`config`,`round`],e=>{var{typed:t,config:n,round:r}=e;return t(Ph,{number:function(e){return Td(e,r(e),n.relTol,n.absTol)?r(e):Math.floor(e)},"number, number":function(e,t){if(Td(e,r(e,t),n.relTol,n.absTol))return r(e,t);var[i,a]=`${e}e`.split(`e`),o=Math.floor(Number(`${i}e${Number(a)+t}`));return[i,a]=`${o}e`.split(`e`),Number(`${i}e${Number(a)-t}`)}})}),Lh=W(Ph,Fh,e=>{var{typed:t,config:n,round:r,matrix:i,equalScalar:a,zeros:o,DenseMatrix:s}=e,c=jh({typed:t,equalScalar:a}),l=Mh({typed:t,DenseMatrix:s}),u=Nh({typed:t}),d=Ih({typed:t,config:n,round:r});return t(`floor`,{number:d.signatures.number,"number,number":d.signatures[`number,number`],Complex:function(e){return e.floor()},"Complex, number":function(e,t){return e.floor(t)},"Complex, BigNumber":function(e,t){return e.floor(t.toNumber())},BigNumber:function(e){return oh(e,r(e),n.relTol,n.absTol)?r(e):e.floor()},"BigNumber, BigNumber":function(e,t){return oh(e,r(e,t),n.relTol,n.absTol)?r(e,t):e.toDecimalPlaces(t.toNumber(),vp.ROUND_FLOOR)},Fraction:function(e){return e.floor()},"Fraction, number":function(e,t){return e.floor(t)},"Fraction, BigNumber":function(e,t){return e.floor(t.toNumber())},"Array | Matrix":t.referToSelf(e=>t=>jm(t,e,!0)),"Array, number | BigNumber":t.referToSelf(e=>(t,n)=>jm(t,t=>e(t,n),!0)),"SparseMatrix, number | BigNumber":t.referToSelf(e=>(t,n)=>c(t,n,e,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(e=>(t,n)=>u(t,n,e,!1)),"number | Complex | Fraction | BigNumber, Array":t.referToSelf(e=>(t,n)=>u(i(n),t,e,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":t.referToSelf(e=>(t,n)=>a(t,0)?o(n.size(),n.storage()):n.storage()===`dense`?u(n,t,e,!0):l(n,t,e,!0))})}),Rh=W(`matAlgo02xDS0`,[`typed`,`equalScalar`],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i,a){var o=e._data,s=e._size,c=e._datatype||e.getDataType(),l=r._values,u=r._index,d=r._ptr,f=r._size,p=r._datatype||r._data===void 0?r._datatype:r.getDataType();if(s.length!==f.length)throw new nm(s.length,f.length);if(s[0]!==f[0]||s[1]!==f[1])throw RangeError(`Dimension mismatch. Matrix A (`+s+`) must match Matrix B (`+f+`)`);if(!l)throw Error(`Cannot perform operation on Dense Matrix and Pattern Sparse Matrix`);var m=s[0],h=s[1],g,_=n,v=0,y=i;typeof c==`string`&&c===p&&c!==`mixed`&&(g=c,_=t.find(n,[g,g]),v=t.convert(0,g),y=t.find(i,[g,g]));for(var b=[],x=[],S=[],C=0;C<h;C++){S[C]=x.length;for(var w=d[C],T=d[C+1],E=w;E<T;E++){var D=u[E],O=a?y(l[E],o[D][C]):y(o[D][C],l[E]);_(O,v)||(x.push(D),b.push(O))}}return S[h]=x.length,r.createSparseMatrix({values:b,index:x,ptr:S,size:[m,h],datatype:c===e._datatype&&p===r._datatype?g:void 0})}}),zh=W(`matAlgo03xDSf`,[`typed`],e=>{var{typed:t}=e;return function(e,n,r,i){var a=e._data,o=e._size,s=e._datatype||e.getDataType(),c=n._values,l=n._index,u=n._ptr,d=n._size,f=n._datatype||n._data===void 0?n._datatype:n.getDataType();if(o.length!==d.length)throw new nm(o.length,d.length);if(o[0]!==d[0]||o[1]!==d[1])throw RangeError(`Dimension mismatch. Matrix A (`+o+`) must match Matrix B (`+d+`)`);if(!c)throw Error(`Cannot perform operation on Dense Matrix and Pattern Sparse Matrix`);var p=o[0],m=o[1],h,g=0,_=r;typeof s==`string`&&s===f&&s!==`mixed`&&(h=s,g=t.convert(0,h),_=t.find(r,[h,h]));for(var v=[],y=0;y<p;y++)v[y]=[];for(var b=[],x=[],S=0;S<m;S++){for(var C=S+1,w=u[S],T=u[S+1],E=w;E<T;E++){var D=l[E];b[D]=i?_(c[E],a[D][S]):_(a[D][S],c[E]),x[D]=C}for(var O=0;O<p;O++)x[O]===C?v[O][S]=b[O]:v[O][S]=i?_(g,a[O][S]):_(a[O][S],g)}return e.createDenseMatrix({data:v,size:[p,m],datatype:s===e._datatype&&f===n._datatype?h:void 0})}}),Bh=W(`matAlgo05xSfSf`,[`typed`,`equalScalar`],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i){var a=e._values,o=e._index,s=e._ptr,c=e._size,l=e._datatype||e._data===void 0?e._datatype:e.getDataType(),u=r._values,d=r._index,f=r._ptr,p=r._size,m=r._datatype||r._data===void 0?r._datatype:r.getDataType();if(c.length!==p.length)throw new nm(c.length,p.length);if(c[0]!==p[0]||c[1]!==p[1])throw RangeError(`Dimension mismatch. Matrix A (`+c+`) must match Matrix B (`+p+`)`);var h=c[0],g=c[1],_,v=n,y=0,b=i;typeof l==`string`&&l===m&&l!==`mixed`&&(_=l,v=t.find(n,[_,_]),y=t.convert(0,_),b=t.find(i,[_,_]));var x=a&&u?[]:void 0,S=[],C=[],w=x?[]:void 0,T=x?[]:void 0,E=[],D=[],O,k,A,j;for(k=0;k<g;k++){C[k]=S.length;var M=k+1;for(A=s[k],j=s[k+1];A<j;A++)O=o[A],S.push(O),E[O]=M,w&&(w[O]=a[A]);for(A=f[k],j=f[k+1];A<j;A++)O=d[A],E[O]!==M&&S.push(O),D[O]=M,T&&(T[O]=u[A]);if(x)for(A=C[k];A<S.length;){O=S[A];var N=E[O],P=D[O];if(N===M||P===M){var ee=N===M?w[O]:y,te=P===M?T[O]:y,ne=b(ee,te);v(ne,y)?S.splice(A,1):(x.push(ne),A++)}}}return C[g]=S.length,e.createSparseMatrix({values:x,index:S,ptr:C,size:[h,g],datatype:l===e._datatype&&m===r._datatype?_:void 0})}}),Vh=W(`matAlgo13xDD`,[`typed`],e=>{var{typed:t}=e;return function(e,r,i){var a=e._data,o=e._size,s=e._datatype,c=r._data,l=r._size,u=r._datatype,d=[];if(o.length!==l.length)throw new nm(o.length,l.length);for(var f=0;f<o.length;f++){if(o[f]!==l[f])throw RangeError(`Dimension mismatch. Matrix A (`+o+`) must match Matrix B (`+l+`)`);d[f]=o[f]}var p,m=i;typeof s==`string`&&s===u&&(p=s,m=t.find(i,[p,p]));var h=d.length>0?n(m,0,d,d[0],a,c):[];return e.createDenseMatrix({data:h,size:d,datatype:p})};function n(e,t,r,i,a,o){var s=[];if(t===r.length-1)for(var c=0;c<i;c++)s[c]=e(a[c],o[c]);else for(var l=0;l<i;l++)s[l]=n(e,t+1,r,r[t+1],a[l],o[l]);return s}});function Hh(e,t){if(Zu(e.size(),t.size()))return[e,t];var n=bm(e.size(),t.size());return[e,t].map(e=>Uh(e,n))}function Uh(e,t){return Zu(e.size(),t)?e:e.create(Sm(e.valueOf(),t),e.datatype())}var Wh=W(`matrixAlgorithmSuite`,[`typed`,`matrix`],e=>{var{typed:t,matrix:n}=e,r=Vh({typed:t}),i=Nh({typed:t});return function(e){var a=e.elop,o=e.SD||e.DS,s;a?(s={"DenseMatrix, DenseMatrix":(e,t)=>r(...Hh(e,t),a),"Array, Array":(e,t)=>r(...Hh(n(e),n(t)),a).valueOf(),"Array, DenseMatrix":(e,t)=>r(...Hh(n(e),t),a),"DenseMatrix, Array":(e,t)=>r(...Hh(e,n(t)),a)},e.SS&&(s[`SparseMatrix, SparseMatrix`]=(t,n)=>e.SS(...Hh(t,n),a,!1)),e.DS&&(s[`DenseMatrix, SparseMatrix`]=(t,n)=>e.DS(...Hh(t,n),a,!1),s[`Array, SparseMatrix`]=(t,r)=>e.DS(...Hh(n(t),r),a,!1)),o&&(s[`SparseMatrix, DenseMatrix`]=(e,t)=>o(...Hh(t,e),a,!0),s[`SparseMatrix, Array`]=(e,t)=>o(...Hh(n(t),e),a,!0))):(s={"DenseMatrix, DenseMatrix":t.referToSelf(e=>(t,n)=>r(...Hh(t,n),e)),"Array, Array":t.referToSelf(e=>(t,i)=>r(...Hh(n(t),n(i)),e).valueOf()),"Array, DenseMatrix":t.referToSelf(e=>(t,i)=>r(...Hh(n(t),i),e)),"DenseMatrix, Array":t.referToSelf(e=>(t,i)=>r(...Hh(t,n(i)),e))},e.SS&&(s[`SparseMatrix, SparseMatrix`]=t.referToSelf(t=>(n,r)=>e.SS(...Hh(n,r),t,!1))),e.DS&&(s[`DenseMatrix, SparseMatrix`]=t.referToSelf(t=>(n,r)=>e.DS(...Hh(n,r),t,!1)),s[`Array, SparseMatrix`]=t.referToSelf(t=>(r,i)=>e.DS(...Hh(n(r),i),t,!1))),o&&(s[`SparseMatrix, DenseMatrix`]=t.referToSelf(e=>(t,n)=>o(...Hh(n,t),e,!0)),s[`SparseMatrix, Array`]=t.referToSelf(e=>(t,r)=>o(...Hh(n(r),t),e,!0))));var c=e.scalar||`any`;(e.Ds||e.Ss)&&(a?(s[`DenseMatrix,`+c]=(e,t)=>i(e,t,a,!1),s[c+`, DenseMatrix`]=(e,t)=>i(t,e,a,!0),s[`Array,`+c]=(e,t)=>i(n(e),t,a,!1).valueOf(),s[c+`, Array`]=(e,t)=>i(n(t),e,a,!0).valueOf()):(s[`DenseMatrix,`+c]=t.referToSelf(e=>(t,n)=>i(t,n,e,!1)),s[c+`, DenseMatrix`]=t.referToSelf(e=>(t,n)=>i(n,t,e,!0)),s[`Array,`+c]=t.referToSelf(e=>(t,r)=>i(n(t),r,e,!1).valueOf()),s[c+`, Array`]=t.referToSelf(e=>(t,r)=>i(n(r),t,e,!0).valueOf())));var l=e.sS===void 0?e.Ss:e.sS;return a?(e.Ss&&(s[`SparseMatrix,`+c]=(t,n)=>e.Ss(t,n,a,!1)),l&&(s[c+`, SparseMatrix`]=(e,t)=>l(t,e,a,!0))):(e.Ss&&(s[`SparseMatrix,`+c]=t.referToSelf(t=>(n,r)=>e.Ss(n,r,t,!1))),l&&(s[c+`, SparseMatrix`]=t.referToSelf(e=>(t,n)=>l(n,t,e,!0)))),a&&a.signatures&&Xu(s,a.signatures),s}}),Gh=`mod`,Kh=W(Gh,[`typed`,`config`,`round`,`matrix`,`equalScalar`,`zeros`,`DenseMatrix`,`concat`],e=>{var{typed:t,config:n,round:r,matrix:i,equalScalar:a,zeros:o,DenseMatrix:s,concat:c}=e,l=Lh({typed:t,config:n,round:r,matrix:i,equalScalar:a,zeros:o,DenseMatrix:s}),u=Rh({typed:t,equalScalar:a}),d=zh({typed:t}),f=Bh({typed:t,equalScalar:a}),p=jh({typed:t,equalScalar:a}),m=Mh({typed:t,DenseMatrix:s}),h=Wh({typed:t,matrix:i,concat:c});return t(Gh,{"number, number":g,"BigNumber, BigNumber":function(e,t){return t.isZero()?e:e.sub(t.mul(l(e.div(t))))},"bigint, bigint":function(e,t){if(t===0n)return e;if(e<0){var n=e%t;return n===0n?n:n+t}return e%t},"Fraction, Fraction":function(e,t){return t.equals(0)?e:e.sub(t.mul(l(e.div(t))))}},h({SS:f,DS:d,SD:u,Ss:p,sS:m}));function g(e,t){return t===0?e:e-t*l(e/t)}}),qh=W(`matAlgo01xDSid`,[`typed`],e=>{var{typed:t}=e;return function(e,n,r,i){var a=e._data,o=e._size,s=e._datatype||e.getDataType(),c=n._values,l=n._index,u=n._ptr,d=n._size,f=n._datatype||n._data===void 0?n._datatype:n.getDataType();if(o.length!==d.length)throw new nm(o.length,d.length);if(o[0]!==d[0]||o[1]!==d[1])throw RangeError(`Dimension mismatch. Matrix A (`+o+`) must match Matrix B (`+d+`)`);if(!c)throw Error(`Cannot perform operation on Dense Matrix and Pattern Sparse Matrix`);var p=o[0],m=o[1],h=typeof s==`string`&&s!==`mixed`&&s===f?s:void 0,g=h?t.find(r,[h,h]):r,_,v,y=[];for(_=0;_<p;_++)y[_]=[];var b=[],x=[];for(v=0;v<m;v++){for(var S=v+1,C=u[v],w=u[v+1],T=C;T<w;T++)_=l[T],b[_]=i?g(c[T],a[_][v]):g(a[_][v],c[T]),x[_]=S;for(_=0;_<p;_++)x[_]===S?y[_][v]=b[_]:y[_][v]=a[_][v]}return e.createDenseMatrix({data:y,size:[p,m],datatype:s===e._datatype&&f===n._datatype?h:void 0})}}),Jh=W(`matAlgo04xSidSid`,[`typed`,`equalScalar`],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i){var a=e._values,o=e._index,s=e._ptr,c=e._size,l=e._datatype||e._data===void 0?e._datatype:e.getDataType(),u=r._values,d=r._index,f=r._ptr,p=r._size,m=r._datatype||r._data===void 0?r._datatype:r.getDataType();if(c.length!==p.length)throw new nm(c.length,p.length);if(c[0]!==p[0]||c[1]!==p[1])throw RangeError(`Dimension mismatch. Matrix A (`+c+`) must match Matrix B (`+p+`)`);var h=c[0],g=c[1],_,v=n,y=0,b=i;typeof l==`string`&&l===m&&l!==`mixed`&&(_=l,v=t.find(n,[_,_]),y=t.convert(0,_),b=t.find(i,[_,_]));var x=a&&u?[]:void 0,S=[],C=[],w=a&&u?[]:void 0,T=a&&u?[]:void 0,E=[],D=[],O,k,A,j,M;for(k=0;k<g;k++){C[k]=S.length;var N=k+1;for(j=s[k],M=s[k+1],A=j;A<M;A++)O=o[A],S.push(O),E[O]=N,w&&(w[O]=a[A]);for(j=f[k],M=f[k+1],A=j;A<M;A++)if(O=d[A],E[O]===N){if(w){var P=b(w[O],u[A]);v(P,y)?E[O]=null:w[O]=P}}else S.push(O),D[O]=N,T&&(T[O]=u[A]);if(w&&T)for(A=C[k];A<S.length;)O=S[A],E[O]===N?(x[A]=w[O],A++):D[O]===N?(x[A]=T[O],A++):S.splice(A,1)}return C[g]=S.length,e.createSparseMatrix({values:x,index:S,ptr:C,size:[h,g],datatype:l===e._datatype&&m===r._datatype?_:void 0})}}),Yh=W(`matAlgo10xSids`,[`typed`,`DenseMatrix`],e=>{var{typed:t,DenseMatrix:n}=e;return function(e,r,i,a){var o=e._values,s=e._index,c=e._ptr,l=e._size,u=e._datatype;if(!o)throw Error(`Cannot perform operation on Pattern Sparse Matrix and Scalar value`);var d=l[0],f=l[1],p,m=i;typeof u==`string`&&(p=u,r=t.convert(r,p),m=t.find(i,[p,p]));for(var h=[],g=[],_=[],v=0;v<f;v++){for(var y=v+1,b=c[v],x=c[v+1],S=b;S<x;S++){var C=s[S];g[C]=o[S],_[C]=y}for(var w=0;w<d;w++)v===0&&(h[w]=[]),_[w]===y?h[w][v]=a?m(r,g[w]):m(g[w],r):h[w][v]=r}return new n({data:h,size:[d,f],datatype:p})}}),Xh=W(`multiplyScalar`,[`typed`],e=>{var{typed:t}=e;return t(`multiplyScalar`,{"number, number":zm,"Complex, Complex":function(e,t){return e.mul(t)},"BigNumber, BigNumber":function(e,t){return e.times(t)},"bigint, bigint":function(e,t){return e*t},"Fraction, Fraction":function(e,t){return e.mul(t)},"number | Fraction | BigNumber | Complex, Unit":(e,t)=>t.multiply(e),"Unit, number | Fraction | BigNumber | Complex | Unit":(e,t)=>e.multiply(t)})}),Zh=`multiply`,Qh=W(Zh,[`typed`,`matrix`,`addScalar`,`multiplyScalar`,`equalScalar`,`dot`],e=>{var{typed:t,matrix:n,addScalar:r,multiplyScalar:i,equalScalar:a,dot:o}=e,s=jh({typed:t,equalScalar:a}),c=Nh({typed:t});function l(e,t){switch(e.length){case 1:switch(t.length){case 1:if(e[0]!==t[0])throw RangeError(`Dimension mismatch in multiplication. Vectors must have the same length`);break;case 2:if(e[0]!==t[0])throw RangeError(`Dimension mismatch in multiplication. Vector length (`+e[0]+`) must match Matrix rows (`+t[0]+`)`);break;default:throw Error(`Can only multiply a 1 or 2 dimensional matrix (Matrix B has `+t.length+` dimensions)`)}break;case 2:switch(t.length){case 1:if(e[1]!==t[0])throw RangeError(`Dimension mismatch in multiplication. Matrix columns (`+e[1]+`) must match Vector length (`+t[0]+`)`);break;case 2:if(e[1]!==t[0])throw RangeError(`Dimension mismatch in multiplication. Matrix A columns (`+e[1]+`) must match Matrix B rows (`+t[0]+`)`);break;default:throw Error(`Can only multiply a 1 or 2 dimensional matrix (Matrix B has `+t.length+` dimensions)`)}break;default:throw Error(`Can only multiply a 1 or 2 dimensional matrix (Matrix A has `+e.length+` dimensions)`)}}function u(e,t,n){if(n===0)throw Error(`Cannot multiply two empty vectors`);return o(e,t)}function d(e,t){if(t.storage()!==`dense`)throw Error(`Support for SparseMatrix not implemented`);return f(e,t)}function f(e,n){var a=e._data,o=e._size,s=e._datatype||e.getDataType(),c=n._data,l=n._size,u=n._datatype||n.getDataType(),d=o[0],f=l[1],p,m=r,h=i;s&&u&&s===u&&typeof s==`string`&&s!==`mixed`&&(p=s,m=t.find(r,[p,p]),h=t.find(i,[p,p]));for(var g=[],_=0;_<f;_++){for(var v=h(a[0],c[0][_]),y=1;y<d;y++)v=m(v,h(a[y],c[y][_]));g[_]=v}return e.createDenseMatrix({data:g,size:[f],datatype:s===e._datatype&&u===n._datatype?p:void 0})}var p=t(`_multiplyMatrixVector`,{"DenseMatrix, any":h,"SparseMatrix, any":v}),m=t(`_multiplyMatrixMatrix`,{"DenseMatrix, DenseMatrix":g,"DenseMatrix, SparseMatrix":_,"SparseMatrix, DenseMatrix":y,"SparseMatrix, SparseMatrix":b});function h(e,n){var a=e._data,o=e._size,s=e._datatype||e.getDataType(),c=n._data,l=n._datatype||n.getDataType(),u=o[0],d=o[1],f,p=r,m=i;s&&l&&s===l&&typeof s==`string`&&s!==`mixed`&&(f=s,p=t.find(r,[f,f]),m=t.find(i,[f,f]));for(var h=[],g=0;g<u;g++){for(var _=a[g],v=m(_[0],c[0]),y=1;y<d;y++)v=p(v,m(_[y],c[y]));h[g]=v}return e.createDenseMatrix({data:h,size:[u],datatype:s===e._datatype&&l===n._datatype?f:void 0})}function g(e,n){var a=e._data,o=e._size,s=e._datatype||e.getDataType(),c=n._data,l=n._size,u=n._datatype||n.getDataType(),d=o[0],f=o[1],p=l[1],m,h=r,g=i;s&&u&&s===u&&typeof s==`string`&&s!==`mixed`&&s!==`mixed`&&(m=s,h=t.find(r,[m,m]),g=t.find(i,[m,m]));for(var _=[],v=0;v<d;v++){var y=a[v];_[v]=[];for(var b=0;b<p;b++){for(var x=g(y[0],c[0][b]),S=1;S<f;S++)x=h(x,g(y[S],c[S][b]));_[v][b]=x}}return e.createDenseMatrix({data:_,size:[d,p],datatype:s===e._datatype&&u===n._datatype?m:void 0})}function _(e,n){var o=e._data,s=e._size,c=e._datatype||e.getDataType(),l=n._values,u=n._index,d=n._ptr,f=n._size,p=n._datatype||n._data===void 0?n._datatype:n.getDataType();if(!l)throw Error(`Cannot multiply Dense Matrix times Pattern only Matrix`);var m=s[0],h=f[1],g,_=r,v=i,y=a,b=0;c&&p&&c===p&&typeof c==`string`&&c!==`mixed`&&(g=c,_=t.find(r,[g,g]),v=t.find(i,[g,g]),y=t.find(a,[g,g]),b=t.convert(0,g));for(var x=[],S=[],C=[],w=n.createSparseMatrix({values:x,index:S,ptr:C,size:[m,h],datatype:c===e._datatype&&p===n._datatype?g:void 0}),T=0;T<h;T++){C[T]=S.length;var E=d[T],D=d[T+1];if(D>E)for(var O=0,k=0;k<m;k++){for(var A=k+1,j=void 0,M=E;M<D;M++){var N=u[M];O===A?j=_(j,v(o[k][N],l[M])):(j=v(o[k][N],l[M]),O=A)}O===A&&!y(j,b)&&(S.push(k),x.push(j))}}return C[h]=S.length,w}function v(e,n){var o=e._values,s=e._index,c=e._ptr,l=e._datatype||e._data===void 0?e._datatype:e.getDataType();if(!o)throw Error(`Cannot multiply Pattern only Matrix times Dense Matrix`);var u=n._data,d=n._datatype||n.getDataType(),f=e._size[0],p=n._size[0],m=[],h=[],g=[],_,v=r,y=i,b=a,x=0;l&&d&&l===d&&typeof l==`string`&&l!==`mixed`&&(_=l,v=t.find(r,[_,_]),y=t.find(i,[_,_]),b=t.find(a,[_,_]),x=t.convert(0,_));var S=[],C=[];g[0]=0;for(var w=0;w<p;w++){var T=u[w];if(!b(T,x))for(var E=c[w],D=c[w+1],O=E;O<D;O++){var k=s[O];C[k]?S[k]=v(S[k],y(T,o[O])):(C[k]=!0,h.push(k),S[k]=y(T,o[O]))}}for(var A=h.length,j=0;j<A;j++)m[j]=S[h[j]];return g[1]=h.length,e.createSparseMatrix({values:m,index:h,ptr:g,size:[f,1],datatype:l===e._datatype&&d===n._datatype?_:void 0})}function y(e,n){var o=e._values,s=e._index,c=e._ptr,l=e._datatype||e._data===void 0?e._datatype:e.getDataType();if(!o)throw Error(`Cannot multiply Pattern only Matrix times Dense Matrix`);var u=n._data,d=n._datatype||n.getDataType(),f=e._size[0],p=n._size[0],m=n._size[1],h,g=r,_=i,v=a,y=0;l&&d&&l===d&&typeof l==`string`&&l!==`mixed`&&(h=l,g=t.find(r,[h,h]),_=t.find(i,[h,h]),v=t.find(a,[h,h]),y=t.convert(0,h));for(var b=[],x=[],S=[],C=e.createSparseMatrix({values:b,index:x,ptr:S,size:[f,m],datatype:l===e._datatype&&d===n._datatype?h:void 0}),w=[],T=[],E=0;E<m;E++){S[E]=x.length;for(var D=E+1,O=0;O<p;O++){var k=u[O][E];if(!v(k,y))for(var A=c[O],j=c[O+1],M=A;M<j;M++){var N=s[M];T[N]===D?w[N]=g(w[N],_(k,o[M])):(T[N]=D,x.push(N),w[N]=_(k,o[M]))}}for(var P=S[E],ee=x.length,te=P;te<ee;te++)b[te]=w[x[te]]}return S[m]=x.length,C}function b(e,n){var a=e._values,o=e._index,s=e._ptr,c=e._datatype||e._data===void 0?e._datatype:e.getDataType(),l=n._values,u=n._index,d=n._ptr,f=n._datatype||n._data===void 0?n._datatype:n.getDataType(),p=e._size[0],m=n._size[1],h=a&&l,g,_=r,v=i;c&&f&&c===f&&typeof c==`string`&&c!==`mixed`&&(g=c,_=t.find(r,[g,g]),v=t.find(i,[g,g]));for(var y=h?[]:void 0,b=[],x=[],S=e.createSparseMatrix({values:y,index:b,ptr:x,size:[p,m],datatype:c===e._datatype&&f===n._datatype?g:void 0}),C=h?[]:void 0,w=[],T,E,D,O,k,A,j,M,N=0;N<m;N++){x[N]=b.length;var P=N+1;for(k=d[N],A=d[N+1],O=k;O<A;O++)if(M=u[O],h)for(E=s[M],D=s[M+1],T=E;T<D;T++)j=o[T],w[j]===P?C[j]=_(C[j],v(l[O],a[T])):(w[j]=P,b.push(j),C[j]=v(l[O],a[T]));else for(E=s[M],D=s[M+1],T=E;T<D;T++)j=o[T],w[j]!==P&&(w[j]=P,b.push(j));if(h)for(var ee=x[N],te=b.length,ne=ee;ne<te;ne++)y[ne]=C[b[ne]]}return x[m]=b.length,S}return t(Zh,i,{"Array, Array":t.referTo(`Matrix, Matrix`,e=>(t,r)=>{l(im(t),im(r));var i=e(n(t),n(r));return mu(i)?i.valueOf():i}),"Matrix, Matrix":function(e,t){var n=e.size(),r=t.size();return l(n,r),n.length===1?r.length===1?u(e,t,n[0]):d(e,t):r.length===1?p(e,t):m(e,t)},"Matrix, Array":t.referTo(`Matrix,Matrix`,e=>(t,r)=>e(t,n(r))),"Array, Matrix":t.referToSelf(e=>(t,r)=>e(n(t,r.storage()),r)),"SparseMatrix, any":function(e,t){return s(e,t,i,!1)},"DenseMatrix, any":function(e,t){return c(e,t,i,!1)},"any, SparseMatrix":function(e,t){return s(t,e,i,!0)},"any, DenseMatrix":function(e,t){return c(t,e,i,!0)},"Array, any":function(e,t){return c(n(e),t,i,!1).valueOf()},"any, Array":function(e,t){return c(n(t),e,i,!0).valueOf()},"any, any":i,"any, any, ...any":t.referToSelf(e=>(t,n,r)=>{for(var i=e(t,n),a=0;a<r.length;a++)i=e(i,r[a]);return i})})}),$h=`subtract`,eg=W($h,[`typed`,`matrix`,`equalScalar`,`subtractScalar`,`unaryMinus`,`DenseMatrix`,`concat`],e=>{var{typed:t,matrix:n,equalScalar:r,subtractScalar:i,unaryMinus:a,DenseMatrix:o,concat:s}=e,c=qh({typed:t}),l=zh({typed:t}),u=Bh({typed:t,equalScalar:r}),d=Yh({typed:t,DenseMatrix:o}),f=Mh({typed:t,DenseMatrix:o}),p=Wh({typed:t,matrix:n,concat:s});return t($h,{"any, any":i},p({elop:i,SS:u,DS:c,SD:l,Ss:f,sS:d}))}),tg=W(`matAlgo07xSSf`,[`typed`,`DenseMatrix`],e=>{var{typed:t,DenseMatrix:n}=e;return function(e,i,a){var o=e._size,s=e._datatype||e._data===void 0?e._datatype:e.getDataType(),c=i._size,l=i._datatype||i._data===void 0?i._datatype:i.getDataType();if(o.length!==c.length)throw new nm(o.length,c.length);if(o[0]!==c[0]||o[1]!==c[1])throw RangeError(`Dimension mismatch. Matrix A (`+o+`) must match Matrix B (`+c+`)`);var u=o[0],d=o[1],f,p=0,m=a;typeof s==`string`&&s===l&&s!==`mixed`&&(f=s,p=t.convert(0,f),m=t.find(a,[f,f]));var h,g,_=[];for(h=0;h<u;h++)_[h]=[];var v=[],y=[],b=[],x=[];for(g=0;g<d;g++){var S=g+1;for(r(e,g,b,v,S),r(i,g,x,y,S),h=0;h<u;h++){var C=b[h]===S?v[h]:p,w=x[h]===S?y[h]:p;_[h][g]=m(C,w)}}return new n({data:_,size:[u,d],datatype:s===e._datatype&&l===i._datatype?f:void 0})};function r(e,t,n,r,i){for(var a=e._values,o=e._index,s=e._ptr,c=s[t],l=s[t+1];c<l;c++){var u=o[c];n[u]=i,r[u]=a[c]}}}),ng=`conj`,rg=W(ng,[`typed`],e=>{var{typed:t}=e;return t(ng,{"number | BigNumber | Fraction":e=>e,Complex:e=>e.conjugate(),"Array | Matrix":t.referToSelf(e=>t=>jm(t,e))})}),ig=`concat`,ag=W(ig,[`typed`,`matrix`,`isInteger`],e=>{var{typed:t,matrix:n,isInteger:r}=e;return t(ig,{"...Array | Matrix | number | BigNumber":function(e){var t,i=e.length,a=-1,o,s=!1,c=[];for(t=0;t<i;t++){var l=e[t];if(mu(l)&&(s=!0),ou(l)||su(l)){if(t!==i-1)throw Error(`Dimension must be specified as last argument`);if(o=a,a=l.valueOf(),!r(a))throw TypeError(`Integer number expected for dimension`);if(a<0||t>0&&a>o)throw new rm(a,o+1)}else{var u=Ju(l).valueOf(),d=im(u);if(c[t]=u,o=a,a=d.length-1,t>0&&a!==o)throw new nm(o+1,a+1)}}if(c.length===0)throw SyntaxError(`At least one matrix expected`);for(var f=c.shift();c.length;)f=ym(f,c.shift(),a);return s?n(f):f},"...string":function(e){return e.join(``)}})}),og=`identity`,sg=W(og,[`typed`,`config`,`matrix`,`BigNumber`,`DenseMatrix`,`SparseMatrix`],e=>{var{typed:t,config:n,matrix:r,BigNumber:i,DenseMatrix:a,SparseMatrix:o}=e;return t(og,{"":function(){return n.matrix===`Matrix`?r([]):[]},string:function(e){return r(e)},"number | BigNumber":function(e){return c(e,e,n.matrix===`Matrix`?`dense`:void 0)},"number | BigNumber, string":function(e,t){return c(e,e,t)},"number | BigNumber, number | BigNumber":function(e,t){return c(e,t,n.matrix===`Matrix`?`dense`:void 0)},"number | BigNumber, number | BigNumber, string":function(e,t,n){return c(e,t,n)},Array:function(e){return s(e)},"Array, string":function(e,t){return s(e,t)},Matrix:function(e){return s(e.valueOf(),e.storage())},"Matrix, string":function(e,t){return s(e.valueOf(),t)}});function s(e,t){switch(e.length){case 0:return t?r(t):[];case 1:return c(e[0],e[0],t);case 2:return c(e[0],e[1],t);default:throw Error(`Vector containing two values expected`)}}function c(e,t,n){var r=su(e)||su(t)?i:null;if(su(e)&&(e=e.toNumber()),su(t)&&(t=t.toNumber()),!sd(e)||e<1||!sd(t)||t<1)throw Error(`Parameters in function identity must be positive integers`);var s=r?new i(1):1,c=r?new r(0):0,l=[e,t];if(n){if(n===`sparse`)return o.diagonal(l,s,0,c);if(n===`dense`)return a.diagonal(l,s,0,c);throw TypeError(`Unknown matrix type "${n}"`)}for(var u=cm([],l,c),d=e<t?e:t,f=0;f<d;f++)u[f][f]=s;return u}});function cg(){throw Error(`No "bignumber" implementation available`)}function lg(){throw Error(`No "fraction" implementation available`)}function ug(){throw Error(`No "matrix" implementation available`)}var dg=`size`,fg=W(dg,[`typed`,`config`,`?matrix`],e=>{var{typed:t,config:n,matrix:r}=e;return t(dg,{Matrix:function(e){return e.create(e.size(),`number`)},Array:im,string:function(e){return n.matrix===`Array`?[e.length]:r([e.length],`dense`,`number`)},"number | Complex | BigNumber | Unit | boolean | null":function(e){return n.matrix===`Array`?[]:r?r([],`dense`,`number`):ug()}})}),pg=`zeros`,mg=W(pg,[`typed`,`config`,`matrix`,`BigNumber`],e=>{var{typed:t,config:n,matrix:r,BigNumber:i}=e;return t(pg,{"":function(){return n.matrix===`Array`?a([]):a([],`default`)},"...number | BigNumber | string":function(e){return typeof e[e.length-1]==`string`?a(e,e.pop()):n.matrix===`Array`?a(e):a(e,`default`)},Array:a,Matrix:function(e){var t=e.storage();return a(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return a(e.valueOf(),t)}});function a(e,t){var n=o(e)?new i(0):0;if(s(e),t){var a=r(t);return e.length>0?a.resize(e,n):a}else{var c=[];return e.length>0?cm(c,e,n):c}}function o(e){var t=!1;return e.forEach(function(e,n,r){su(e)&&(t=!0,r[n]=e.toNumber())}),t}function s(e){e.forEach(function(e){if(typeof e!=`number`||!sd(e)||e<0)throw Error(`Parameters in function zeros must be positive integers`)})}});function hg(e){"@babel/helpers - typeof";return hg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hg(e)}function gg(e,t){if(hg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _g(e){var t=gg(e,`string`);return hg(t)==`symbol`?t:t+``}var vg=W(`numeric`,[`number`,`?bignumber`,`?fraction`],e=>{var{number:t,bignumber:n,fraction:r}=e,i={string:!0,number:!0,BigNumber:!0,Fraction:!0},a={number:e=>t(e),BigNumber:n?e=>n(e):cg,bigint:e=>BigInt(e),Fraction:r?e=>r(e):lg};return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`number`;if((arguments.length>2?arguments[2]:void 0)!==void 0)throw SyntaxError(`numeric() takes one or two arguments`);var n=qu(e);if(!(n in i))throw TypeError(`Cannot convert `+e+` of type "`+n+`"; valid input types are `+Object.keys(i).join(`, `));if(!(t in a))throw TypeError(`Cannot convert `+e+` to type "`+t+`"; valid output types are `+Object.keys(a).join(`, `));return t===n?e:a[t](e)}}),yg=`divideScalar`,bg=W(yg,[`typed`,`numeric`],e=>{var{typed:t,numeric:n}=e;return t(yg,{"number, number":function(e,t){return e/t},"Complex, Complex":function(e,t){return e.div(t)},"BigNumber, BigNumber":function(e,t){return e.div(t)},"bigint, bigint":function(e,t){return e/t},"Fraction, Fraction":function(e,t){return e.div(t)},"Unit, number | Complex | Fraction | BigNumber | Unit":(e,t)=>e.divide(t),"number | Fraction | Complex | BigNumber, Unit":(e,t)=>t.divideInto(e)})}),xg=`Number of decimals in function round must be an integer`,Sg=`round`,Cg=W(Sg,[`typed`,`config`,`matrix`,`equalScalar`,`zeros`,`BigNumber`,`DenseMatrix`],e=>{var{typed:t,config:n,matrix:r,equalScalar:i,zeros:a,BigNumber:o,DenseMatrix:s}=e,c=jh({typed:t,equalScalar:i}),l=Mh({typed:t,DenseMatrix:s}),u=Nh({typed:t});function d(e){return Math.abs(_d(e).exponent)}return t(Sg,{number:function(e){var t=ih(e,d(n.relTol));return ih(Td(e,t,n.relTol,n.absTol)?t:e)},"number, number":function(e,t){var r=d(n.relTol);if(t>=r)return ih(e,t);var i=ih(e,r);return ih(Td(e,i,n.relTol,n.absTol)?i:e,t)},"number, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(xg);return new o(e).toDecimalPlaces(t.toNumber())},Complex:function(e){return e.round()},"Complex, number":function(e,t){if(t%1)throw TypeError(xg);return e.round(t)},"Complex, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(xg);var n=t.toNumber();return e.round(n)},BigNumber:function(e){var t=new o(e).toDecimalPlaces(d(n.relTol));return(oh(e,t,n.relTol,n.absTol)?t:e).toDecimalPlaces(0)},"BigNumber, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(xg);var r=d(n.relTol);if(t>=r)return e.toDecimalPlaces(t.toNumber());var i=e.toDecimalPlaces(r);return(oh(e,i,n.relTol,n.absTol)?i:e).toDecimalPlaces(t.toNumber())},Fraction:function(e){return e.round()},"Fraction, number":function(e,t){if(t%1)throw TypeError(xg);return e.round(t)},"Fraction, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(xg);return e.round(t.toNumber())},"Unit, number, Unit":t.referToSelf(e=>function(t,n,r){var i=t.toNumeric(r);return r.multiply(e(i,n))}),"Unit, BigNumber, Unit":t.referToSelf(e=>(t,n,r)=>e(t,n.toNumber(),r)),"Unit, Unit":t.referToSelf(e=>(t,n)=>e(t,0,n)),"Array | Matrix, number, Unit":t.referToSelf(e=>(t,n,r)=>jm(t,t=>e(t,n,r),!0)),"Array | Matrix, BigNumber, Unit":t.referToSelf(e=>(t,n,r)=>e(t,n.toNumber(),r)),"Array | Matrix, Unit":t.referToSelf(e=>(t,n)=>e(t,0,n)),"Array | Matrix":t.referToSelf(e=>t=>jm(t,e,!0)),"SparseMatrix, number | BigNumber":t.referToSelf(e=>(t,n)=>c(t,n,e,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(e=>(t,n)=>u(t,n,e,!1)),"Array, number | BigNumber":t.referToSelf(e=>(t,n)=>u(r(t),n,e,!1).valueOf()),"number | Complex | BigNumber | Fraction, SparseMatrix":t.referToSelf(e=>(t,n)=>i(t,0)?a(n.size(),n.storage()):l(n,t,e,!0)),"number | Complex | BigNumber | Fraction, DenseMatrix":t.referToSelf(e=>(t,n)=>i(t,0)?a(n.size(),n.storage()):u(n,t,e,!0)),"number | Complex | BigNumber | Fraction, Array":t.referToSelf(e=>(t,n)=>u(r(n),t,e,!0).valueOf())})}),wg=`equal`,Tg=W(wg,[`typed`,`matrix`,`equalScalar`,`DenseMatrix`,`concat`],e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:i,concat:a}=e,o=zh({typed:t}),s=tg({typed:t,DenseMatrix:i}),c=Mh({typed:t,DenseMatrix:i}),l=Wh({typed:t,matrix:n,concat:a});return t(wg,Eg({typed:t,equalScalar:r}),l({elop:r,SS:s,DS:o,Ss:c}))}),Eg=W(wg,[`typed`,`equalScalar`],e=>{var{typed:t,equalScalar:n}=e;return t(wg,{"any, any":function(e,t){return e===null?t===null:t===null?e===null:e===void 0?t===void 0:t===void 0?e===void 0:n(e,t)}})}),Dg=`smaller`,Og=W(Dg,[`typed`,`config`,`matrix`,`DenseMatrix`,`concat`],e=>{var{typed:t,config:n,matrix:r,DenseMatrix:i,concat:a}=e,o=zh({typed:t}),s=tg({typed:t,DenseMatrix:i}),c=Mh({typed:t,DenseMatrix:i}),l=Wh({typed:t,matrix:r,concat:a}),u=uh({typed:t});return t(Dg,kg({typed:t,config:n}),{"boolean, boolean":(e,t)=>e<t,"BigNumber, BigNumber":function(e,t){return e.lt(t)&&!oh(e,t,n.relTol,n.absTol)},"bigint, bigint":(e,t)=>e<t,"Fraction, Fraction":(e,t)=>e.compare(t)===-1,"Complex, Complex":function(e,t){throw TypeError(`No ordering relation is defined for complex numbers`)}},u,l({SS:s,DS:o,Ss:c}))}),kg=W(Dg,[`typed`,`config`],e=>{var{typed:t,config:n}=e;return t(Dg,{"number, number":function(e,t){return e<t&&!Td(e,t,n.relTol,n.absTol)}})}),Ag=`smallerEq`,jg=W(Ag,[`typed`,`config`,`matrix`,`DenseMatrix`,`concat`],e=>{var{typed:t,config:n,matrix:r,DenseMatrix:i,concat:a}=e,o=zh({typed:t}),s=tg({typed:t,DenseMatrix:i}),c=Mh({typed:t,DenseMatrix:i}),l=Wh({typed:t,matrix:r,concat:a}),u=uh({typed:t});return t(Ag,Mg({typed:t,config:n}),{"boolean, boolean":(e,t)=>e<=t,"BigNumber, BigNumber":function(e,t){return e.lte(t)||oh(e,t,n.relTol,n.absTol)},"bigint, bigint":(e,t)=>e<=t,"Fraction, Fraction":(e,t)=>e.compare(t)!==1,"Complex, Complex":function(){throw TypeError(`No ordering relation is defined for complex numbers`)}},u,l({SS:s,DS:o,Ss:c}))}),Mg=W(Ag,[`typed`,`config`],e=>{var{typed:t,config:n}=e;return t(Ag,{"number, number":function(e,t){return e<=t||Td(e,t,n.relTol,n.absTol)}})}),Ng=`larger`,Pg=W(Ng,[`typed`,`config`,`matrix`,`DenseMatrix`,`concat`],e=>{var{typed:t,config:n,matrix:r,DenseMatrix:i,concat:a}=e,o=zh({typed:t}),s=tg({typed:t,DenseMatrix:i}),c=Mh({typed:t,DenseMatrix:i}),l=Wh({typed:t,matrix:r,concat:a}),u=uh({typed:t});return t(Ng,Fg({typed:t,config:n}),{"boolean, boolean":(e,t)=>e>t,"BigNumber, BigNumber":function(e,t){return e.gt(t)&&!oh(e,t,n.relTol,n.absTol)},"bigint, bigint":(e,t)=>e>t,"Fraction, Fraction":(e,t)=>e.compare(t)===1,"Complex, Complex":function(){throw TypeError(`No ordering relation is defined for complex numbers`)}},u,l({SS:s,DS:o,Ss:c}))}),Fg=W(Ng,[`typed`,`config`],e=>{var{typed:t,config:n}=e;return t(Ng,{"number, number":function(e,t){return e>t&&!Td(e,t,n.relTol,n.absTol)}})}),Ig=`largerEq`,Lg=W(Ig,[`typed`,`config`,`matrix`,`DenseMatrix`,`concat`],e=>{var{typed:t,config:n,matrix:r,DenseMatrix:i,concat:a}=e,o=zh({typed:t}),s=tg({typed:t,DenseMatrix:i}),c=Mh({typed:t,DenseMatrix:i}),l=Wh({typed:t,matrix:r,concat:a}),u=uh({typed:t});return t(Ig,Rg({typed:t,config:n}),{"boolean, boolean":(e,t)=>e>=t,"BigNumber, BigNumber":function(e,t){return e.gte(t)||oh(e,t,n.relTol,n.absTol)},"bigint, bigint":function(e,t){return e>=t},"Fraction, Fraction":(e,t)=>e.compare(t)!==-1,"Complex, Complex":function(){throw TypeError(`No ordering relation is defined for complex numbers`)}},u,l({SS:s,DS:o,Ss:c}))}),Rg=W(Ig,[`typed`,`config`],e=>{var{typed:t,config:n}=e;return t(Ig,{"number, number":function(e,t){return e>=t||Td(e,t,n.relTol,n.absTol)}})}),zg=`add`,Bg=W(zg,[`typed`,`matrix`,`addScalar`,`equalScalar`,`DenseMatrix`,`SparseMatrix`,`concat`],e=>{var{typed:t,matrix:n,addScalar:r,equalScalar:i,DenseMatrix:a,SparseMatrix:o,concat:s}=e,c=qh({typed:t}),l=Jh({typed:t,equalScalar:i}),u=Yh({typed:t,DenseMatrix:a}),d=Wh({typed:t,matrix:n,concat:s});return t(zg,{"any, any":r,"any, any, ...any":t.referToSelf(e=>(t,n,r)=>{for(var i=e(t,n),a=0;a<r.length;a++)i=e(i,r[a]);return i})},d({elop:r,DS:c,SS:l,Ss:u}))}),Vg=`dot`,Hg=W(Vg,[`typed`,`addScalar`,`multiplyScalar`,`conj`,`size`],e=>{var{typed:t,addScalar:n,multiplyScalar:r,conj:i,size:a}=e;return t(Vg,{"Array | DenseMatrix, Array | DenseMatrix":s,"SparseMatrix, SparseMatrix":c});function o(e,t){var n=l(e),r=l(t),i,a;if(n.length===1)i=n[0];else if(n.length===2&&n[1]===1)i=n[0];else throw RangeError(`Expected a column vector, instead got a matrix of size (`+n.join(`, `)+`)`);if(r.length===1)a=r[0];else if(r.length===2&&r[1]===1)a=r[0];else throw RangeError(`Expected a column vector, instead got a matrix of size (`+r.join(`, `)+`)`);if(i!==a)throw RangeError(`Vectors must have equal length (`+i+` != `+a+`)`);if(i===0)throw RangeError(`Cannot calculate the dot product of empty vectors`);return i}function s(e,a){var s=o(e,a),c=mu(e)?e._data:e,u=mu(e)?e._datatype||e.getDataType():void 0,d=mu(a)?a._data:a,f=mu(a)?a._datatype||a.getDataType():void 0,p=l(e).length===2,m=l(a).length===2,h=n,g=r;if(u&&f&&u===f&&typeof u==`string`&&u!==`mixed`){var _=u;h=t.find(n,[_,_]),g=t.find(r,[_,_])}if(!p&&!m){for(var v=g(i(c[0]),d[0]),y=1;y<s;y++)v=h(v,g(i(c[y]),d[y]));return v}if(!p&&m){for(var b=g(i(c[0]),d[0][0]),x=1;x<s;x++)b=h(b,g(i(c[x]),d[x][0]));return b}if(p&&!m){for(var S=g(i(c[0][0]),d[0]),C=1;C<s;C++)S=h(S,g(i(c[C][0]),d[C]));return S}if(p&&m){for(var w=g(i(c[0][0]),d[0][0]),T=1;T<s;T++)w=h(w,g(i(c[T][0]),d[T][0]));return w}}function c(e,t){o(e,t);for(var i=e._index,a=e._values,s=t._index,c=t._values,l=0,u=n,d=r,f=0,p=0;f<i.length&&p<s.length;){var m=i[f],h=s[p];if(m<h){f++;continue}if(m>h){p++;continue}m===h&&(l=u(l,d(a[f],c[p])),f++,p++)}return l}function l(e){return mu(e)?e.size():a(e)}}),Ug=`det`,Wg=W(Ug,[`typed`,`matrix`,`subtractScalar`,`multiply`,`divideScalar`,`isZero`,`unaryMinus`],e=>{var{typed:t,matrix:n,subtractScalar:r,multiply:i,divideScalar:a,isZero:o,unaryMinus:s}=e;return t(Ug,{any:function(e){return Ju(e)},"Array | Matrix":function(e){var t;switch(mu(e)?t=e.size():Array.isArray(e)?(e=n(e),t=e.size()):t=[],t.length){case 0:return Ju(e);case 1:if(t[0]===1)return Ju(e.valueOf()[0]);if(t[0]===0)return 1;throw RangeError(`Matrix must be square (size: `+Xp(t)+`)`);case 2:var r=t[0],i=t[1];if(r===i)return c(e.clone().valueOf(),r,i);if(i===0)return 1;throw RangeError(`Matrix must be square (size: `+Xp(t)+`)`);default:throw RangeError(`Matrix must be two dimensional (size: `+Xp(t)+`)`)}}});function c(e,t,n){if(t===1)return Ju(e[0][0]);if(t===2)return r(i(e[0][0],e[1][1]),i(e[1][0],e[0][1]));for(var c=!1,l=Array(t).fill(0).map((e,t)=>t),u=0;u<t;u++){var d=l[u];if(o(e[d][u])){var f=void 0;for(f=u+1;f<t;f++)if(!o(e[l[f]][u])){d=l[f],l[f]=l[u],l[u]=d,c=!c;break}if(f===t)return e[d][u]}for(var p=e[d][u],m=u===0?1:e[l[u-1]][u-1],h=u+1;h<t;h++)for(var g=l[h],_=u+1;_<t;_++)e[g][_]=a(r(i(e[g][_],p),i(e[g][u],e[d][_])),m)}var v=e[l[t-1]][t-1];return c?s(v):v}}),Gg=`inv`,Kg=W(Gg,[`typed`,`matrix`,`divideScalar`,`addScalar`,`multiply`,`unaryMinus`,`det`,`identity`,`abs`],e=>{var{typed:t,matrix:n,divideScalar:r,addScalar:i,multiply:a,unaryMinus:o,det:s,identity:c,abs:l}=e;return t(Gg,{"Array | Matrix":function(e){var t=mu(e)?e.size():im(e);switch(t.length){case 1:if(t[0]===1)return mu(e)?n([r(1,e.valueOf()[0])]):[r(1,e[0])];throw RangeError(`Matrix must be square (size: `+Xp(t)+`)`);case 2:var i=t[0],a=t[1];if(i===a)return mu(e)?n(u(e.valueOf(),i,a),e.storage()):u(e,i,a);throw RangeError(`Matrix must be square (size: `+Xp(t)+`)`);default:throw RangeError(`Matrix must be two dimensional (size: `+Xp(t)+`)`)}},any:function(e){return r(1,e)}});function u(e,t,n){var u,d,f,p,m;if(t===1){if(p=e[0][0],p===0)throw Error(`Cannot calculate inverse, determinant is zero`);return[[r(1,p)]]}else if(t===2){var h=s(e);if(h===0)throw Error(`Cannot calculate inverse, determinant is zero`);return[[r(e[1][1],h),r(o(e[0][1]),h)],[r(o(e[1][0]),h),r(e[0][0],h)]]}else{var g=e.concat();for(u=0;u<t;u++)g[u]=g[u].concat();for(var _=c(t).valueOf(),v=0;v<n;v++){var y=l(g[v][v]),b=v;for(u=v+1;u<t;)l(g[u][v])>y&&(y=l(g[u][v]),b=u),u++;if(y===0)throw Error(`Cannot calculate inverse, determinant is zero`);u=b,u!==v&&(m=g[v],g[v]=g[u],g[u]=m,m=_[v],_[v]=_[u],_[u]=m);var x=g[v],S=_[v];for(u=0;u<t;u++){var C=g[u],w=_[u];if(u!==v){if(C[v]!==0){for(f=r(o(C[v]),x[v]),d=v;d<n;d++)C[d]=i(C[d],a(f,x[d]));for(d=0;d<n;d++)w[d]=i(w[d],a(f,S[d]))}}else{for(f=x[v],d=v;d<n;d++)C[d]=r(C[d],f);for(d=0;d<n;d++)w[d]=r(w[d],f)}}}return _}}}),qg=W(`divide`,[`typed`,`matrix`,`multiply`,`equalScalar`,`divideScalar`,`inv`],e=>{var{typed:t,matrix:n,multiply:r,equalScalar:i,divideScalar:a,inv:o}=e,s=jh({typed:t,equalScalar:i}),c=Nh({typed:t});return t(`divide`,Xu({"Array | Matrix, Array | Matrix":function(e,t){return r(e,o(t))},"DenseMatrix, any":function(e,t){return c(e,t,a,!1)},"SparseMatrix, any":function(e,t){return s(e,t,a,!1)},"Array, any":function(e,t){return c(n(e),t,a,!1).valueOf()},"any, Array | Matrix":function(e,t){return r(e,o(t))}},a.signatures))}),Jg=yp({config:nd}),Yg=Op({}),Xg=Hp({}),Zg=Up({}),Qg=Am({Matrix:Zg}),$g=Ad({BigNumber:Jg,Complex:Yg,DenseMatrix:Qg,Fraction:Xg}),e_=Eh({typed:$g}),t_=Oh({typed:$g}),n_=rg({typed:$g}),r_=fh({config:nd,typed:$g}),i_=Nm({typed:$g}),a_=ch({equalScalar:r_,typed:$g}),o_=Xh({typed:$g}),s_=vh({typed:$g}),c_=ph({Matrix:Zg,equalScalar:r_,typed:$g}),l_=Ah({typed:$g}),u_=yh({BigNumber:Jg,typed:$g}),d_=wh({typed:$g}),f_=bh({Fraction:Xg,typed:$g}),p_=Sh({DenseMatrix:Qg,Matrix:Zg,SparseMatrix:c_,typed:$g}),m_=vg({bignumber:u_,fraction:f_,number:s_}),h_=fg({matrix:p_,config:nd,typed:$g}),g_=mg({BigNumber:Jg,config:nd,matrix:p_,typed:$g}),__=ag({isInteger:i_,matrix:p_,typed:$g}),v_=bg({numeric:m_,typed:$g}),y_=Tg({DenseMatrix:Qg,concat:__,equalScalar:r_,matrix:p_,typed:$g}),b_=sg({BigNumber:Jg,DenseMatrix:Qg,SparseMatrix:c_,config:nd,matrix:p_,typed:$g}),x_=Lg({DenseMatrix:Qg,concat:__,config:nd,matrix:p_,typed:$g}),S_=Cg({BigNumber:Jg,DenseMatrix:Qg,config:nd,equalScalar:r_,matrix:p_,typed:$g,zeros:g_}),C_=Og({DenseMatrix:Qg,concat:__,config:nd,matrix:p_,typed:$g}),w_=eg({DenseMatrix:Qg,concat:__,equalScalar:r_,matrix:p_,subtractScalar:l_,typed:$g,unaryMinus:d_}),T_=Bg({DenseMatrix:Qg,SparseMatrix:c_,addScalar:t_,concat:__,equalScalar:r_,matrix:p_,typed:$g}),E_=Hg({addScalar:t_,conj:n_,multiplyScalar:o_,size:h_,typed:$g}),D_=Pg({DenseMatrix:Qg,concat:__,config:nd,matrix:p_,typed:$g}),O_=Kh({DenseMatrix:Qg,concat:__,config:nd,equalScalar:r_,matrix:p_,round:S_,typed:$g,zeros:g_}),k_=Qh({addScalar:t_,dot:E_,equalScalar:r_,matrix:p_,multiplyScalar:o_,typed:$g}),A_=Wg({divideScalar:v_,isZero:a_,matrix:p_,multiply:k_,subtractScalar:l_,typed:$g,unaryMinus:d_}),j_=jg({DenseMatrix:Qg,concat:__,config:nd,matrix:p_,typed:$g}),M_=qg({divideScalar:v_,equalScalar:r_,inv:Kg({abs:e_,addScalar:t_,det:A_,divideScalar:v_,identity:b_,matrix:p_,multiply:k_,typed:$g,unaryMinus:d_}),matrix:p_,multiply:k_,typed:$g}),N_=Object.prototype;function P_(e){return typeof e==`object`&&!!e}function F_(e){if(!P_(e))return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e))return e.map(e=>F_(e));let t={};for(let[n,r]of Object.entries(e))t[n]=F_(r);return t}function I_(e){return Array.isArray(e)}function L_(e,t,n){let r=n?.(e,t);if(r!==void 0)return!!r;if(Object.is(e,t))return!0;if(!P_(e)||!P_(t))return!1;if(e instanceof Date||t instanceof Date)return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime();if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,r)=>L_(e,t[r],n));let i=Object.keys(e),a=Object.keys(t);return i.length===a.length&&i.every(r=>N_.hasOwnProperty.call(t,r)&&L_(e[r],t[r],n))}function R_(e,t){return L_(e,t)}function z_(e){return typeof e==`number`||e instanceof Number}function B_(e){return typeof e==`object`&&!!e||typeof e==`function`}function V_(e,t){let n=[];for(let r of e??[])n.some(e=>t(r,e))||n.push(r);return n}var H_=(e,t,n)=>{if(!y_(O_(e_(e),e_(n)),0))throw Error(`start point must be divisible by interval`);if(y_(e,t))return[];let r=w_(t,O_(t,e_(n))),i=D_(n,0)?`positive`:`negative`;if(i===`negative`&&x_(t,e))throw Error(`start must be > than end when doing a negative decrement`);if(i===`positive`&&j_(t,e))throw Error(`start must be < end when doing increments`);let a;a=i===`positive`?j_:y_(r,t)?x_:D_;let o=[],s=e;for(;a(s,r);)o.push(s),s=T_(s,n);return o},U_=(e,t)=>`Can only do a positive or negative range, but got: start: ${e} and end:${t}`,W_=(e,t,n)=>{if(e=f_(e),t=f_(t),n=f_(n),D_(e_(w_(t,e)),e_(t)))throw Error(U_(e,t));let r={start:e_(e),end:e_(t),interval:e_(n),multiplier:C_(n,0)?-1:1},i=O_(r.start,r.interval),a=H_(D_(i,0)?T_(w_(r.start,i),r.interval):r.start,r.end,r.interval),o=r.multiplier===-1?a.map(e=>k_(e,-1)):a;return C_(n,0)&&o.reverse(),o},G_=(e,t)=>(e=f_(e),t=f_(t),C_(e,t)?e:t),K_=(e,t)=>(e=f_(e),t=f_(t),D_(e,t)?e:t),q_=(e,t,n)=>{e=f_(e),t=f_(t),n=f_(n);let r=D_(t,0)?W_(K_(0,e),t,n):[];return V_((C_(e,0)?W_(G_(0,t),e,k_(n,-1)):[]).concat(r),y_)},J_=(e,t,n)=>{n||=2;let r=10**-n/2;return Math.abs(e-t)<r},Y_=(e,t,n)=>C_(Q_(e),Q_(t))?t:D_(Q_(e),Q_(n))?n:e,X_=(e,t)=>{let n=s_(k_(10,M_(f_(e.max-e.min),t)));return{min:n,max:s_(k_(20,n))}},Z_=(e,t)=>y_(O_(e,t),0),Q_=e=>{if(B_(e))return f_(e.n*e.s,e.d);if(z_(e))return f_(e)},$_=(e,t,n,r)=>{let i=!r||r.limit!==!1,a=X_(e,t),o=i?Y_(Q_(n.minor),a.min,a.max):Q_(n.minor),s=i?Y_(Q_(n.major),o,k_(o,20)):Q_(n.major);if(!Z_(s,o)){let e=M_(s,o);return{minor:o,major:k_(o,e<=2?2:Math.round(e))}}return{major:s,minor:o}},ev=(e,t,n,r)=>(n=$_(e,t,n,r),q_(e.min,e.max,n.minor).filter(t=>j_(t,f_(e.max))).map(e=>{let t=`minor`;return J_(s_(O_(e,n.major)),0)&&(t=`major`),{x:e,type:t}})),tv=(e,t,n,r)=>ev(e,t,n,r).map(e=>r.fraction?e:{...e,x:s_(e.x)||0}),nv=(e,t,n,r)=>{r=K_(G_(r,t),e);let i=r.mod(n),a,o=n.div(2);if(x_(e_(i),o)){let e=n.sub(e_(i)),t=x_(r,0)?`add`:`sub`;a=r[t](e)}else{let e=x_(r,0)?`sub`:`add`;a=r[e](e_(i))}return a},rv=(e,t,n,r)=>s_(nv(f_(e),f_(t),f_(n),f_(r)));function iv(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function av(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ov(e){let t,n,r;e.length===2?(t=e===iv||e===av?e:sv,n=e,r=e):(t=iv,n=(t,n)=>iv(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function sv(){return 0}function cv(e){return e===null?NaN:+e}var lv=ov(iv),uv=lv.right;lv.left,ov(cv).center;var dv=Math.sqrt(50),fv=Math.sqrt(10),pv=Math.sqrt(2);function mv(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=dv?10:a>=fv?5:a>=pv?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?mv(e,t,n*2):[s,c,l]}function hv(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?mv(t,e,n):mv(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function gv(e,t,n){return t=+t,e=+e,n=+n,mv(e,t,n)[2]}function _v(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?gv(t,e,n):gv(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function vv(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function yv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function bv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xv(){}var Sv=.7,Cv=1/Sv,wv=`\\s*([+-]?\\d+)\\s*`,Tv=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Ev=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Dv=/^#([0-9a-f]{3,8})$/,Ov=RegExp(`^rgb\\(${wv},${wv},${wv}\\)$`),kv=RegExp(`^rgb\\(${Ev},${Ev},${Ev}\\)$`),Av=RegExp(`^rgba\\(${wv},${wv},${wv},${Tv}\\)$`),jv=RegExp(`^rgba\\(${Ev},${Ev},${Ev},${Tv}\\)$`),Mv=RegExp(`^hsl\\(${Tv},${Ev},${Ev}\\)$`),Nv=RegExp(`^hsla\\(${Tv},${Ev},${Ev},${Tv}\\)$`),Pv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};yv(xv,zv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fv,formatHex:Fv,formatHex8:Iv,formatHsl:Lv,formatRgb:Rv,toString:Rv});function Fv(){return this.rgb().formatHex()}function Iv(){return this.rgb().formatHex8()}function Lv(){return Qv(this).formatHsl()}function Rv(){return this.rgb().formatRgb()}function zv(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Dv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Bv(t):n===3?new Wv(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Vv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Vv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Ov.exec(e))?new Wv(t[1],t[2],t[3],1):(t=kv.exec(e))?new Wv(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Av.exec(e))?Vv(t[1],t[2],t[3],t[4]):(t=jv.exec(e))?Vv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Mv.exec(e))?Zv(t[1],t[2]/100,t[3]/100,1):(t=Nv.exec(e))?Zv(t[1],t[2]/100,t[3]/100,t[4]):Pv.hasOwnProperty(e)?Bv(Pv[e]):e===`transparent`?new Wv(NaN,NaN,NaN,0):null}function Bv(e){return new Wv(e>>16&255,e>>8&255,e&255,1)}function Vv(e,t,n,r){return r<=0&&(e=t=n=NaN),new Wv(e,t,n,r)}function Hv(e){return e instanceof xv||(e=zv(e)),e?(e=e.rgb(),new Wv(e.r,e.g,e.b,e.opacity)):new Wv}function Uv(e,t,n,r){return arguments.length===1?Hv(e):new Wv(e,t,n,r??1)}function Wv(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}yv(Wv,Uv,bv(xv,{brighter(e){return e=e==null?Cv:Cv**+e,new Wv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Sv:Sv**+e,new Wv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Wv(Yv(this.r),Yv(this.g),Yv(this.b),Jv(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gv,formatHex:Gv,formatHex8:Kv,formatRgb:qv,toString:qv}));function Gv(){return`#${Xv(this.r)}${Xv(this.g)}${Xv(this.b)}`}function Kv(){return`#${Xv(this.r)}${Xv(this.g)}${Xv(this.b)}${Xv((isNaN(this.opacity)?1:this.opacity)*255)}`}function qv(){let e=Jv(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Yv(this.r)}, ${Yv(this.g)}, ${Yv(this.b)}${e===1?`)`:`, ${e})`}`}function Jv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xv(e){return e=Yv(e),(e<16?`0`:``)+e.toString(16)}function Zv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ey(e,t,n,r)}function Qv(e){if(e instanceof ey)return new ey(e.h,e.s,e.l,e.opacity);if(e instanceof xv||(e=zv(e)),!e)return new ey;if(e instanceof ey)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new ey(o,s,c,e.opacity)}function $v(e,t,n,r){return arguments.length===1?Qv(e):new ey(e,t,n,r??1)}function ey(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}yv(ey,$v,bv(xv,{brighter(e){return e=e==null?Cv:Cv**+e,new ey(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Sv:Sv**+e,new ey(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Wv(ry(e>=240?e-240:e+120,i,r),ry(e,i,r),ry(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ey(ty(this.h),ny(this.s),ny(this.l),Jv(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Jv(this.opacity);return`${e===1?`hsl(`:`hsla(`}${ty(this.h)}, ${ny(this.s)*100}%, ${ny(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function ty(e){return e=(e||0)%360,e<0?e+360:e}function ny(e){return Math.max(0,Math.min(1,e||0))}function ry(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var iy=e=>()=>e;function ay(e,t){return function(n){return e+n*t}}function oy(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function sy(e){return(e=+e)==1?cy:function(t,n){return n-t?oy(t,n,e):iy(isNaN(t)?n:t)}}function cy(e,t){var n=t-e;return n?ay(e,n):iy(isNaN(e)?t:e)}var ly=(function e(t){var n=sy(t);function r(e,t){var r=n((e=Uv(e)).r,(t=Uv(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=cy(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function uy(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function dy(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function fy(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=xy(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function py(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function my(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function hy(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=xy(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var gy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_y=new RegExp(gy.source,`g`);function vy(e){return function(){return e}}function yy(e){return function(t){return e(t)+``}}function by(e,t){var n=gy.lastIndex=_y.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=gy.exec(e))&&(i=_y.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:my(r,i)})),n=_y.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?yy(c[0].x):vy(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function xy(e,t){var n=typeof t,r;return t==null||n===`boolean`?iy(t):(n===`number`?my:n===`string`?(r=zv(t))?(t=r,ly):by:t instanceof zv?ly:t instanceof Date?py:dy(t)?uy:Array.isArray(t)?fy:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?hy:my)(e,t)}function Sy(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Cy(e){return function(){return e}}function wy(e){return+e}var Ty=[0,1];function Ey(e){return e}function Dy(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Cy(isNaN(t)?NaN:.5)}function Oy(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function ky(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Dy(i,r),a=n(o,a)):(r=Dy(r,i),a=n(a,o)),function(e){return a(r(e))}}function Ay(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Dy(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=uv(e,t,1,r)-1;return a[n](i[n](t))}}function jy(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function My(){var e=Ty,t=Ty,n=xy,r,i,a,o=Ey,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==Ey&&(o=Oy(e[0],e[n-1])),s=n>2?Ay:ky,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),my))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,wy),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=Sy,u()},d.clamp=function(e){return arguments.length?(o=e?!0:Ey,u()):o!==Ey},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function Ny(){return My()(Ey,Ey)}function Py(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Fy(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Iy(e){return e=Fy(Math.abs(e)),e?e[1]:NaN}function Ly(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Ry(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var zy=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function By(e){if(!(t=zy.exec(e)))throw Error(`invalid format: `+e);var t;return new Vy({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}By.prototype=Vy.prototype;function Vy(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}Vy.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function Hy(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Uy;function Wy(e,t){var n=Fy(e,t);if(!n)return Uy=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Uy=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Fy(e,Math.max(0,t+a-1))[0]}function Gy(e,t){var n=Fy(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Ky={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Py,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Gy(e*100,t),r:Gy,s:Wy,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function qy(e){return e}var Jy=Array.prototype.map,Yy=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function Xy(e){var t=e.grouping===void 0||e.thousands===void 0?qy:Ly(Jy.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?qy:Ry(Jy.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=By(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):Ky[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=Ky[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=Hy(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&Uy!==void 0?Yy[8+Uy/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Iy(t)/3)))*3,r=10**-n,i=l((e=By(e),e.type=`f`,e),{suffix:Yy[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var Zy,Qy,$y;eb({thousands:`,`,grouping:[3],currency:[`$`,``]});function eb(e){return Zy=Xy(e),Qy=Zy.format,$y=Zy.formatPrefix,Zy}function tb(e){return Math.max(0,-Iy(Math.abs(e)))}function nb(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Iy(t)/3)))*3-Iy(Math.abs(e)))}function rb(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Iy(t)-Iy(e))+1}function ib(e,t,n,r){var i=_v(e,t,n),a;switch(r=By(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=nb(i,o))&&(r.precision=a),$y(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=rb(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=tb(i))&&(r.precision=a-(r.type===`%`)*2);break}return Qy(r)}function ab(e){var t=e.domain;return e.ticks=function(e){var n=t();return hv(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return ib(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=gv(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function ob(){var e=Ny();return e.copy=function(){return jy(e,ob())},vv.apply(e,arguments),ab(e)}var sb={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function cb(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),sb.hasOwnProperty(t)?{space:sb[t],local:e}:e}function lb(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function ub(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function db(e){var t=cb(e);return(t.local?ub:lb)(t)}function fb(){}function pb(e){return e==null?fb:function(){return this.querySelector(e)}}function mb(e){typeof e!=`function`&&(e=pb(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new nS(r,this._parents)}function hb(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function gb(){return[]}function _b(e){return e==null?gb:function(){return this.querySelectorAll(e)}}function vb(e){return function(){return hb(e.apply(this,arguments))}}function yb(e){e=typeof e==`function`?vb(e):_b(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new nS(r,i)}function bb(e){return function(){return this.matches(e)}}function xb(e){return function(t){return t.matches(e)}}var Sb=Array.prototype.find;function Cb(e){return function(){return Sb.call(this.children,e)}}function wb(){return this.firstElementChild}function Tb(e){return this.select(e==null?wb:Cb(typeof e==`function`?e:xb(e)))}var Eb=Array.prototype.filter;function Db(){return Array.from(this.children)}function Ob(e){return function(){return Eb.call(this.children,e)}}function kb(e){return this.selectAll(e==null?Db:Ob(typeof e==`function`?e:xb(e)))}function Ab(e){typeof e!=`function`&&(e=bb(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new nS(r,this._parents)}function jb(e){return Array(e.length)}function Mb(){return new nS(this._enter||this._groups.map(jb),this._parents)}function Nb(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Nb.prototype={constructor:Nb,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Pb(e){return function(){return e}}function Fb(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Nb(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Ib(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new Nb(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Lb(e){return e.__data__}function Rb(e,t){if(!arguments.length)return Array.from(this,Lb);var n=t?Ib:Fb,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Pb(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=zb(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new nS(o,r),o._enter=s,o._exit=c,o}function zb(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Bb(){return new nS(this._exit||this._groups.map(jb),this._parents)}function Vb(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Hb(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new nS(s,this._parents)}function Ub(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Wb(e){e||=Gb;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new nS(i,this._parents).order()}function Gb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Kb(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function qb(){return Array.from(this)}function Jb(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Yb(){let e=0;for(let t of this)++e;return e}function Xb(){return!this.node()}function Zb(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Qb(e){return function(){this.removeAttribute(e)}}function $b(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ex(e,t){return function(){this.setAttribute(e,t)}}function tx(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function nx(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function rx(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function ix(e,t){var n=cb(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?$b:Qb:typeof t==`function`?n.local?rx:nx:n.local?tx:ex)(n,t))}function ax(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ox(e){return function(){this.style.removeProperty(e)}}function sx(e,t,n){return function(){this.style.setProperty(e,t,n)}}function cx(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function lx(e,t,n){return arguments.length>1?this.each((t==null?ox:typeof t==`function`?cx:sx)(e,t,n??``)):ux(this.node(),e)}function ux(e,t){return e.style.getPropertyValue(t)||ax(e).getComputedStyle(e,null).getPropertyValue(t)}function dx(e){return function(){delete this[e]}}function fx(e,t){return function(){this[e]=t}}function px(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function mx(e,t){return arguments.length>1?this.each((t==null?dx:typeof t==`function`?px:fx)(e,t)):this.node()[e]}function hx(e){return e.trim().split(/^|\s+/)}function gx(e){return e.classList||new _x(e)}function _x(e){this._node=e,this._names=hx(e.getAttribute(`class`)||``)}_x.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function vx(e,t){for(var n=gx(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function yx(e,t){for(var n=gx(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function bx(e){return function(){vx(this,e)}}function xx(e){return function(){yx(this,e)}}function Sx(e,t){return function(){(t.apply(this,arguments)?vx:yx)(this,e)}}function Cx(e,t){var n=hx(e+``);if(arguments.length<2){for(var r=gx(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Sx:t?bx:xx)(n,t))}function wx(){this.textContent=``}function Tx(e){return function(){this.textContent=e}}function Ex(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Dx(e){return arguments.length?this.each(e==null?wx:(typeof e==`function`?Ex:Tx)(e)):this.node().textContent}function Ox(){this.innerHTML=``}function kx(e){return function(){this.innerHTML=e}}function Ax(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function jx(e){return arguments.length?this.each(e==null?Ox:(typeof e==`function`?Ax:kx)(e)):this.node().innerHTML}function Mx(){this.nextSibling&&this.parentNode.appendChild(this)}function Nx(){return this.each(Mx)}function Px(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Fx(){return this.each(Px)}function Ix(e){var t=typeof e==`function`?e:db(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Lx(){return null}function Rx(e,t){var n=typeof e==`function`?e:db(e),r=t==null?Lx:typeof t==`function`?t:pb(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function zx(){var e=this.parentNode;e&&e.removeChild(this)}function Bx(){return this.each(zx)}function Vx(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Hx(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ux(e){return this.select(e?Hx:Vx)}function Wx(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Gx(e){return function(t){e.call(this,t,this.__data__)}}function Kx(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function qx(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Jx(e,t,n){return function(){var r=this.__on,i,a=Gx(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Yx(e,t,n){var r=Kx(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Jx:qx,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Xx(e,t,n){var r=ax(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Zx(e,t){return function(){return Xx(this,e,t)}}function Qx(e,t){return function(){return Xx(this,e,t.apply(this,arguments))}}function $x(e,t){return this.each((typeof t==`function`?Qx:Zx)(e,t))}function*eS(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var tS=[null];function nS(e,t){this._groups=e,this._parents=t}function rS(){return new nS([[document.documentElement]],tS)}function iS(){return this}nS.prototype=rS.prototype={constructor:nS,select:mb,selectAll:yb,selectChild:Tb,selectChildren:kb,filter:Ab,data:Rb,enter:Mb,exit:Bb,join:Vb,merge:Hb,selection:iS,order:Ub,sort:Wb,call:Kb,nodes:qb,node:Jb,size:Yb,empty:Xb,each:Zb,attr:ix,style:lx,property:mx,classed:Cx,text:Dx,html:jx,raise:Nx,lower:Fx,append:Ix,insert:Rx,remove:Bx,clone:Ux,datum:Wx,on:Yx,dispatch:$x,[Symbol.iterator]:eS};function aS(e){return typeof e==`string`?new nS([[document.querySelector(e)]],[document.documentElement]):new nS([[e]],tS)}function oS(e){let t;for(;t=e.sourceEvent;)e=t;return e}function sS(e,t){if(e=oS(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var cS=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,lS=({size:e,children:t})=>(e=cS(e),(0,z.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));lS.propTypes={size:R.number,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired};var uS=({size:e,children:t,sx:n})=>(0,z.jsx)(lS,{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})});uS.propTypes={size:R.oneOfType([R.string,R.number]),children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,sx:R.object};var dS=({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});dS.propTypes={fill:R.string.isRequired};var fS=({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});fS.propTypes={fill:R.string.isRequired};var pS=({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});pS.propTypes={fill:R.string.isRequired};var mS=({fill:e})=>(0,z.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});mS.propTypes={fill:R.string.isRequired};var hS=({fill:e})=>(0,z.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});hS.propTypes={fill:R.string.isRequired};var gS=(e,t)=>{class n extends L.Component{static propTypes={iconSet:R.oneOf([`emoji`,`check`]),shape:R.oneOf([`round`,`square`]),category:R.oneOf([`feedback`,void 0]),open:R.bool,size:R.oneOfType([R.number,R.string]),fg:R.string,bg:R.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)(uS,{size:o,children:u}):(0,z.jsxs)(uS,{size:o,children:[i===`feedback`?r===`round`?(0,z.jsx)(pS,{fill:c}):(0,z.jsx)(fS,{fill:c}):r===`round`?(0,z.jsx)(mS,{fill:c}):(0,z.jsx)(hS,{fill:c}),l]})}}return n},_S=({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
|
|
154
|
+
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})]});_S.propTypes={fill:R.string.isRequired};var vS=({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});vS.propTypes={fill:R.string.isRequired,x:R.number,y:R.number};var yS=gS(vS,_S);yS.propTypes={iconSet:R.oneOf([`emoji`,`check`]),shape:R.oneOf([`round`,`square`]),category:R.oneOf([`feedback`,void 0]),open:R.bool,fg:R.string,bg:R.string,size:R.oneOfType([R.string,R.number])},yS.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};var bS=({bgFill:e,fgFill:t})=>(0,z.jsxs)(`svg`,{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
|
|
155
|
+
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})]});bS.propTypes={bgFill:R.string.isRequired,fgFill:R.string.isRequired};var xS=({bgFill:e,fgFill:t,borderFill:n})=>(0,z.jsxs)(`svg`,{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
|
|
156
156
|
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
|
|
157
|
-
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})]});
|
|
158
|
-
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});
|
|
159
|
-
M-113,130.5c-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-105.6,130.5-113,130.5z`,fill:e});NS.propTypes={fill:R.string.isRequired};var PS=({fill:e=`#FFFFFF`})=>(0,z.jsxs)(`g`,{children:[(0,z.jsx)(`path`,{style:{fill:`#D0CAC5`,stroke:`#E6E3E0`,strokeWidth:.75,strokeMiterlimit:10},d:`M-111.7,160.9c-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.5C-96.2,154-103.1,160.9-111.7,160.9z`}),(0,z.jsx)(`path`,{style:{fill:`#B3ABA4`,stroke:`#CDC7C2`,strokeWidth:.5,strokeMiterlimit:10},d:`M-112,159.5c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-104,159.5-112,159.5z`}),(0,z.jsx)(`circle`,{cx:`-113`,cy:`144`,r:`14`,fill:e})]});PS.propTypes={fill:R.string};var FS=({children:e,size:t})=>{let n=oS(t);return(0,z.jsx)(`div`,{style:{height:n,width:n,display:`inline-block`,position:`relative`},children:(0,z.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`-129 128 34 34`,children:e})})};FS.propTypes={children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,size:R.oneOfType([R.string,R.number])};var IS=class extends L.Component{render(){let{iconSet:e,open:t,fg:n=`#1a9cff`,bg:r=`#bce2ff`,border:i=`#bbe3fd`}=this.props,a=(0,z.jsx)(MS,{fill:n}),o={check:(0,z.jsxs)(FS,{size:this.props.size,children:[(0,z.jsx)(PS,{}),a,(0,z.jsx)(NS,{fill:i})]}),emoji:(0,z.jsxs)(FS,{size:this.props.size,children:[(0,z.jsx)(PS,{}),a,(0,z.jsx)(NS,{fill:i})]}),open:{check:(0,z.jsxs)(FS,{size:this.props.size,children:[(0,z.jsx)(`circle`,{cx:`-113`,cy:`144`,r:`14`,fill:`#FFFFFF`}),(0,z.jsx)(MS,{fill:r}),(0,z.jsx)(NS,{fill:`#FFFFFF`})]}),emoji:(0,z.jsxs)(FS,{size:this.props.size,children:[(0,z.jsx)(`circle`,{cx:`-113`,cy:`144`,r:`14`,fill:`#FFFFFF`}),(0,z.jsx)(MS,{fill:r}),(0,z.jsx)(NS,{fill:i})]})}};return t===!0?o.open[e]:o[e]}};IS.propTypes={iconSet:R.oneOf([`emoji`,`check`]),open:R.bool,fg:R.string,bg:R.string,border:R.string,size:R.oneOfType([R.string,R.number])},IS.defaultProps={iconSet:`check`,open:!1,fg:`#1a9cff`,bg:`#bce2ff`,border:`#bbe3fd`,size:30};function LS(e){return typeof e==`string`}function RS(e){return e?.ref||null}var zS=e=>e.scrollTop;function BS(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function VS(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function HS(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 US(e){return`scale(${e}, ${e**2})`}var WS={entering:{opacity:1,transform:US(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:US(.75)},exited:{opacity:0,transform:US(.75)}},GS={opacity:0,transform:US(.75),visibility:`hidden`},KS=L.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=Vs(),_=L.useRef(),v=_o(),y=L.useRef(null),b=Yo(y,RS(i),t),x=BS(y,l),S=BS(y,(e,t)=>{zS(e);let{duration:n,delay:r,easing:i}=HS({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=BS(y,c),w=BS(y,f),T=BS(y,e=>{let{duration:t,delay:n,easing:r}=HS({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=US(.75),u&&u(e)}),E=BS(y,e=>{e.style.transition=``,d&&d(e)});return(0,z.jsx)(ws,{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=VS(e,o,WS,GS,p,i.props.style);return L.cloneElement(i,{style:r,ref:b,...n})}})});KS&&(KS.muiSupportAuto=!0);function qS(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function JS(e){let t=zo(e);return t.body===e?Vo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function YS(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function XS(e){return parseFloat(Vo(e).getComputedStyle(e).paddingRight)||0}function ZS(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 QS(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!ZS(e);t&&n&&YS(e,i)})}function $S(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function eC(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(JS(r)){let e=qS(Vo(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${XS(r)+e}px`;let t=zo(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${XS(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=zo(r).body;else{let t=r.parentElement,n=Vo(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 tC(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var nC=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&&YS(e.modalRef,!1);let r=tC(t);QS(t,e.mount,e.modalRef,r,!0);let i=$S(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=$S(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=eC(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=$S(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&&YS(e.modalRef,t),QS(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&&YS(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function rC(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 iC=rC;function aC(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var oC=aC,sC=`data-mui-focusable`;function cC(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${sC}]`):null}var lC=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function uC(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 dC(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 fC(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||dC(e))}function pC(e){let t=[],n=[];return Array.from(e.querySelectorAll(lC)).forEach((e,r)=>{let i=uC(e);i===-1||!fC(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 mC(){return!0}function hC(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=pC,isEnabled:o=mC,open:s}=e,c=L.useRef(!1),l=L.useRef(null),u=L.useRef(null),d=L.useRef(null),f=L.useRef(null),p=L.useRef(!1),m=L.useRef(null),h=Jo(RS(t),m),g=L.useRef(null);L.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),L.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=oC(zo(m.current)),t=cC(m.current)??m.current;return iC(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]),L.useEffect(()=>{if(!s||!m.current)return;let e=zo(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&oC(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=oC(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(iC(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=oC(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)(L.Fragment,{children:[(0,z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),L.cloneElement(t,{ref:h,onFocus:_}),(0,z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function gC(e){return typeof e==`function`?e():e}var _C=L.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=L.useState(null),s=Jo(L.isValidElement(n)?RS(n):null,t);if(Zr(()=>{i||o(gC(r)||document.body)},[r,i]),Zr(()=>{if(a&&!i)return Uo(t,a),()=>{Uo(t,null)}},[t,a,i]),i){if(L.isValidElement(n)){let e={ref:s};return L.cloneElement(n,e)}return n}return a&&vs.createPortal(n,a)});function vC(e,t,n){return e===void 0||LS(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function yC(e,t,n){return typeof e==`function`?e(t,n):e}function bC(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 xC(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 SC(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=Pr(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=bC({...i,...r}),s=xC(r),c=xC(i),l=t(o),u=Pr(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 CC(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=yC(d[e],i),{props:{component:h,...g},internalRef:_}=SC({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Jo(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,vC(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 wC={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},TC={opacity:0,visibility:`hidden`},EC=L.forwardRef(function(e,t){let n=_o(),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=L.useRef(null),y=Yo(v,RS(o),t),b=BS(v,d),x=BS(v,(e,t)=>{zS(e);let r=HS({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=BS(v,u),C=BS(v,m),w=BS(v,e=>{let t=HS({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=BS(v,e=>{e.style.transition=``,p&&p(e)});return(0,z.jsx)(ws,{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=VS(e,c,wC,TC,h,o.props.style);return L.cloneElement(o,{style:r,ref:y,...n})}})});function DC(e){return Ir(`MuiBackdrop`,e)}Lr(`MuiBackdrop`,[`root`,`invisible`]);var OC=e=>{let{classes:t,invisible:n}=e;return ia({root:[`root`,n&&`invisible`]},DC,t)},kC=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`}}]}),AC=L.forwardRef(function(e,t){let n=Ao({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=OC(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=CC(`root`,{elementType:kC,externalForwardedProps:_,className:Pr(g.root,i),ownerState:h}),[b,x]=CC(`transition`,{elementType:EC,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 jC(e){return typeof e==`function`?e():e}function MC(e){return e?e.props.hasOwnProperty(`in`):!1}var NC=()=>{},PC=new nC;function FC(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=L.useRef({}),f=L.useRef(null),p=L.useRef(null),m=Jo(p,u),[h,g]=L.useState(!l),_=MC(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>zo(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{PC.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Ko(()=>{let e=jC(t)||y().body;PC.add(b(),e),p.current&&x()}),C=()=>PC.isTopModal(b()),w=Ko(e=>{f.current=e,e&&(l&&C()?x():p.current&&YS(p.current,v))}),T=L.useCallback(()=>{PC.remove(b(),v)},[v]);L.useEffect(()=>()=>{T()},[T]),L.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=bC(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:Oo(()=>{g(!1),a&&a()},s?.props.onEnter??NC),onExited:Oo(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??NC)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function IC(e){return Ir(`MuiModal`,e)}Lr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var LC=e=>{let{open:t,exited:n,classes:r}=e;return ia({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},IC,r)},RC=V(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ko(({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`}}]}))),zC=V(AC,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),BC=L.forwardRef(function(e,t){let n=Ao({name:`MuiModal`,props:e}),{BackdropComponent:r=zC,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,k={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:A,getBackdropProps:j,getTransitionProps:M,portalRef:N,isTopModal:P,exited:ee,hasTransition:te}=FC({...k,rootRef:t}),ne={...k,exited:ee},F=LC(ne),re={};if(c.props.tabIndex===void 0&&(re.tabIndex=`-1`),te){let{onEnter:e,onExited:t}=M();re.onEnter=e,re.onExited=t}let I={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ie,ae]=CC(`root`,{ref:t,elementType:RC,externalForwardedProps:{...I,...O,component:u},getSlotProps:A,ownerState:ne,className:Pr(o,F?.root,!ne.open&&ne.exited&&F?.hidden)}),[oe,se]=CC(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:I,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>j({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:Pr(i?.className,F?.backdrop),ownerState:ne});return!b&&!w&&(!te||ee)?null:(0,z.jsx)(_C,{ref:N,container:l,disablePortal:g,children:(0,z.jsxs)(ie,{...ae,children:[!y&&r?(0,z.jsx)(oe,{...se}):null,(0,z.jsx)(hC,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:P,open:w,children:L.cloneElement(c,re)})]})})});function VC(e){return Ir(`MuiPaper`,e)}Lr(`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 HC=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ia({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},VC,i)},UC=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}`]]}})(ko(({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)`}}]}))),WC=L.forwardRef(function(e,t){let n=Ao({props:e,name:`MuiPaper`}),r=_o(),{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=HC(u);return(0,z.jsx)(UC,{as:a,ownerState:u,className:Pr(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(${ci(`#fff`,Za(o))}, ${ci(`#fff`,Za(o))})`}},...l.style}})});function GC(e){return Ir(`MuiPopover`,e)}Lr(`MuiPopover`,[`root`,`paper`]);function KC(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function qC(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function JC(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function YC(e){return typeof e==`function`?e():e}var XC=e=>{let{classes:t}=e;return ia({root:[`root`],paper:[`paper`]},GC,t)},ZC=V(BC,{name:`MuiPopover`,slot:`Root`})({}),QC=V(WC,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),$C=L.forwardRef(function(e,t){let n=Ao({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=L.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=XC(w),E=L.useCallback(()=>{if(s===`anchorPosition`)return o;let e=YC(i),t=(e&&e.nodeType===1?e:Bo(C.current).body).getBoundingClientRect();return{top:t.top+KC(t,a.vertical),left:t.left+qC(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=L.useCallback(e=>({vertical:KC(e,_.vertical),horizontal:qC(e,_.horizontal)}),[_.horizontal,_.vertical]),O=L.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:JC(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Ho(YC(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:JC(n)}},[i,s,E,D,f]),[k,A]=L.useState(p),j=L.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,A(!0)},[O]);L.useEffect(()=>(x&&window.addEventListener(`scroll`,j),()=>window.removeEventListener(`scroll`,j)),[i,x,j]);let M=()=>{j()},N=()=>{A(!1)};L.useEffect(()=>{p&&j()}),L.useImperativeHandle(r,()=>p?{updatePosition:()=>{j()}}:null,[p,j]),L.useEffect(()=>{if(!p)return;let e=Lo(()=>{j()}),t=Ho(YC(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,j]);let P=y,ee={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[te,ne]=CC(`transition`,{elementType:KS,externalForwardedProps:ee,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),M()},onExited:t=>{e.onExited?.(t),N()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!te.muiSupportAuto&&(P=void 0);let F=u||(i?Bo(YC(i)).body:void 0),[re,{slots:I,slotProps:ie,...ae}]=CC(`root`,{ref:t,elementType:ZC,externalForwardedProps:{...ee,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Zo(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:F,open:p},ownerState:w,className:Pr(T.root,l)}),[oe,se]=CC(`paper`,{ref:C,className:T.paper,elementType:QC,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:k?void 0:{opacity:0}},ownerState:w});return(0,z.jsx)(re,{...ae,...!LS(re)&&{slots:I,slotProps:ie,disableScrollLock:x},children:(0,z.jsx)(te,{...ne,timeout:P,children:(0,z.jsx)(oe,{...se,children:c})})})}),ew={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`},tw={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`},nw=s({background:()=>Ew,backgroundDark:()=>Dw,black:()=>Bw,blueGrey100:()=>Jw,blueGrey300:()=>Yw,blueGrey600:()=>Xw,blueGrey900:()=>Zw,border:()=>Nw,borderDark:()=>Fw,borderGray:()=>Iw,borderLight:()=>Pw,buttonBorder:()=>iT,buttonFocusOutline:()=>qw,buttonHoverBg:()=>aT,correct:()=>cw,correctSecondary:()=>lw,correctTertiary:()=>uw,correctWithIcon:()=>dw,defaults:()=>Z,disabled:()=>aw,disabledSecondary:()=>ow,disabledText:()=>sw,dropdownBackground:()=>kw,fadedPrimary:()=>xw,focusChecked:()=>Uw,focusCheckedBorder:()=>Ww,focusUnchecked:()=>Gw,focusUncheckedBorder:()=>Kw,incorrect:()=>fw,incorrectSecondary:()=>mw,incorrectWithIcon:()=>pw,keyBoardFocusIndicator:()=>rT,keypadButton:()=>Qw,keypadButtonHover:()=>tT,keypadButtonOperator:()=>$w,keypadButtonOperatorHover:()=>nT,keypadEmptyPlaceholder:()=>eT,missing:()=>hw,missingWithIcon:()=>gw,primary:()=>_w,primaryDark:()=>yw,primaryLight:()=>vw,primaryText:()=>bw,secondary:()=>Sw,secondaryBackground:()=>Ow,secondaryDark:()=>ww,secondaryLight:()=>Cw,secondaryText:()=>Tw,surface:()=>Aw,tableGrid:()=>Lw,tableGridLight:()=>Rw,tableStripe:()=>zw,tertiary:()=>jw,tertiaryLight:()=>Mw,text:()=>iw,transparent:()=>Hw,v:()=>rw,visualElementsColors:()=>oT,white:()=>Vw}),Z={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:pa[500],CORRECT_SECONDARY:pa[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ua[500],INCORRECT_SECONDARY:la[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:la[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:tw[500],PRIMARY_LIGHT:tw[200],PRIMARY_DARK:tw[800],SECONDARY:ew.A400,SECONDARY_LIGHT:ew[200],SECONDARY_DARK:ew[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:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,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:`#C0C3CF`,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)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(Z);var rw=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Q=rw(`pie`),iw=()=>Q(`text`,Z.TEXT),aw=()=>Q(`disabled`,Z.DISABLED),ow=()=>Q(`disabled-secondary`,Z.DISABLED_SECONDARY),sw=()=>Q(`disabled-text`,`text`,Z.DISABLED_TEXT),cw=()=>Q(`correct`,Z.CORRECT),lw=()=>Q(`correct-secondary`,Z.CORRECT_SECONDARY),uw=()=>Q(`correct-tertiary`,Z.CORRECT_TERTIARY),dw=()=>Q(`correct-icon`,Z.CORRECT_WITH_ICON),fw=()=>Q(`incorrect`,Z.INCORRECT),pw=()=>Q(`incorrect-icon`,Z.INCORRECT_WITH_ICON),mw=()=>Q(`incorrect-secondary`,Z.INCORRECT_SECONDARY),hw=()=>Q(`missing`,Z.MISSING),gw=()=>Q(`missing-icon`,Z.MISSING_WITH_ICON),_w=()=>Q(`primary`,Z.PRIMARY),vw=()=>Q(`primary-light`,Z.PRIMARY_LIGHT),yw=()=>Q(`primary-dark`,Z.PRIMARY_DARK),bw=()=>Q(`primary-text`,`text`,Z.TEXT),xw=()=>Q(`faded-primary`,Z.FADED_PRIMARY),Sw=()=>Q(`secondary`,Z.SECONDARY),Cw=()=>Q(`secondary-light`,Z.SECONDARY_LIGHT),ww=()=>Q(`secondary-dark`,Z.SECONDARY_DARK),Tw=()=>Q(`secondary-text`,`text`,Z.TEXT),Ew=()=>Q(`background`,Z.BACKGROUND),Dw=()=>Q(`background-dark`,Z.BACKGROUND_DARK),Ow=()=>Q(`secondary-background`,Z.SECONDARY_BACKGROUND),kw=()=>Q(`dropdown-background`,Z.DROPDOWN_BACKGROUND),Aw=()=>Q(`surface`,Z.SURFACE),jw=()=>Q(`tertiary`,Z.TERTIARY),Mw=()=>Q(`tertiary-light`,Z.TERTIARY_LIGHT),Nw=()=>Q(`border`,Z.BORDER),Pw=()=>Q(`border-light`,Z.BORDER_LIGHT),Fw=()=>Q(`border-dark`,Z.BORDER_DARK),Iw=()=>Q(`border-gray`,Z.BORDER_GRAY),Lw=()=>Q(`table-grid`,`text`,Z.TABLE_GRID),Rw=()=>Q(`table-grid-light`,`border-light`,Z.TABLE_GRID_LIGHT),zw=()=>Q(`table-stripe`,`background-dark`,Z.TABLE_STRIPE),Bw=()=>Q(`black`,Z.BLACK),Vw=()=>Q(`white`,Z.WHITE),Hw=()=>Z.TRANSPARENT,Uw=()=>Q(`focus-checked`,Z.FOCUS_CHECKED),Ww=()=>Q(`focus-checked-border`,Z.FOCUS_CHECKED_BORDER),Gw=()=>Q(`focus-unchecked`,Z.FOCUS_UNCHECKED),Kw=()=>Q(`focus-unchecked-border`,Z.FOCUS_UNCHECKED_BORDER),qw=()=>Q(`button-focus-outline`,Z.BUTTON_FOCUS_OUTLINE),Jw=()=>Q(`blue-grey-100`,Z.BLUE_GREY100),Yw=()=>Q(`blue-grey-300`,Z.BLUE_GREY300),Xw=()=>Q(`blue-grey-600`,Z.BLUE_GREY600),Zw=()=>Q(`blue-grey-900`,Z.BLUE_GREY900),Qw=()=>Q(`keypad-button`,Z.KEYPAD_BUTTON),$w=()=>Q(`keypad-button-operator`,Z.KEYPAD_BUTTON_OPERATOR),eT=()=>Q(`keypad-empty-placeholder`,Z.KEYPAD_EMPTY_PLACEHOLDER),tT=()=>Q(`keypad-button-hover`,Z.KEYPAD_BUTTON_HOVER),nT=()=>Q(`keypad-button-operator-hover`,Z.KEYPAD_BUTTON_OPERATOR_HOVER),rT=()=>Q(`keyboard-focus-indicator`,Z.KEY_BOARD_FOCUS_INDICATOR),iT=()=>Q(`button-border`,Z.BUTTON_BORDER),aT=()=>Q(`button-hover-bg`,Z.BUTTON_HOVER_BG),oT={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},sT=V(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),cT=V(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${aw()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${cw()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${fw()})`}}),lT=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`}}),uT=class extends L.Component{static propTypes={correctness:R.string,feedback:R.string};nodeRef=L.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,z.jsx)(Os,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,z.jsx)(lT,{ref:this.nodeRef,children:(0,z.jsx)(sT,{children:(0,z.jsx)(cT,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,z.jsx)(`div`,{children:(0,z.jsx)(Ls,{children:this.renderFeedback()})})}};function dT(){return()=>{}}var fT=s({Correct:()=>vT,Incorrect:()=>yT,NothingSubmitted:()=>xT,PartiallyCorrect:()=>bT}),pT=dT(`pie-libs:render-ui:response-indicators`),mT=V(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),hT=V($C)({cursor:`pointer`}),gT=V(`div`)({padding:`0`,borderRadius:`4px`}),_T=(e,t)=>{class n extends L.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{pT(`[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)(mT,{hasFeedback:!!n,children:[(0,z.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,z.jsx)(e,{})}),n&&(0,z.jsx)(hT,{PaperComponent:gT,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,z.jsx)(uT,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:R.string},n},vT=_T(_S,`correct`),yT=_T(wS,`incorrect`),bT=_T(jS,`partially-correct`),xT=_T(OS,`nothing-submitted`);function ST(e){return Ir(`MuiCollapse`,e)}Lr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var CT=e=>{let{orientation:t,classes:n}=e;return ia({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},ST,n)},wT=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]}})(ko(({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`}}]}))),TT=V(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),ET=V(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),DT=L.forwardRef(function(e,t){let n=Ao({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=Ba.standard,TransitionComponent:x=ws,...S}=n,C={...n,orientation:g,collapsedSize:o},w=CT(C),T=_o(),E=Vs(),D=L.useRef(null),O=L.useRef(),k=typeof o==`number`?`${o}px`:o,A=g===`horizontal`,j=A?`width`:`height`,M=L.useRef(null),N=Yo(t,M),P=()=>D.current?D.current[A?`clientWidth`:`clientHeight`]:0,ee=BS(M,(e,t)=>{D.current&&A&&(D.current.style.position=`absolute`),e.style[j]=k,u&&u(e,t)}),te=BS(M,(e,t)=>{let n=P();D.current&&A&&(D.current.style.position=``);let{duration:r,easing:i}=HS({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[j]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ne=BS(M,(e,t)=>{e.style[j]=`auto`,d&&d(e,t)}),F=BS(M,e=>{e.style[j]=`${P()}px`,p&&p(e)}),re=BS(M,m),I=BS(M,e=>{let t=P(),{duration:n,easing:r}=HS({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[j]=k,e.style.transitionTimingFunction=r,h&&h(e)}),ie=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(M.current,e)},ae={slots:_,slotProps:v,component:s},[oe,se]=CC(`root`,{ref:N,className:Pr(w.root,a),elementType:wT,externalForwardedProps:ae,ownerState:C,additionalProps:{style:{[A?`minWidth`:`minHeight`]:k,...y}}}),[ce,le]=CC(`wrapper`,{ref:D,className:w.wrapper,elementType:TT,externalForwardedProps:ae,ownerState:C}),[ue,de]=CC(`wrapperInner`,{className:w.wrapperInner,elementType:ET,externalForwardedProps:ae,ownerState:C});return(0,z.jsx)(x,{in:l,onEnter:ee,onEntered:ne,onEntering:te,onExit:F,onExited:re,onExiting:I,addEndListener:ie,nodeRef:M,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,z.jsx)(oe,{...se,className:Pr(se.className,{entered:w.entered,exited:!l&&k===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,z.jsx)(ce,{...le,ownerState:r,children:(0,z.jsx)(ue,{...de,ownerState:r,children:i})})})}})});DT&&(DT.muiSupportAuto=!0);var OT=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,kT=null;function AT(e){return typeof window>`u`||window.MathJax?.typesetPromise?Promise.resolve():kT||(kT=new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[]},tex:{packages:[`base`,`ams`,`autoload`],macros:{parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`}},options:{enableMenu:i,enableExplorer:i,enableAssistiveMml:i},startup:{ready:()=>{window.MathJax?.startup.defaultReady&&(window.MathJax.startup.defaultReady(),t())},defaultReady:()=>{}}};r&&s.tex&&(s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||OT,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)}),kT)}function jT(){let e=window.MathJax?.startup?.document;if(typeof e?.assistiveMml==`function`)try{e.assistiveMml().updateDocument?.()}catch(e){console.warn(`[mathjax-renderer] Failed to attach assistive MathML:`,e)}}function MT(e={}){return async t=>{if(await AT(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),jT()}}var NT=`@pie-lib/math-rendering`,PT=null;function FT(){return PT||=MT({accessibility:!0,useSingleDollar:!0}),PT}function IT(){if(typeof window>`u`)return null;let e=window[NT];return typeof e?.renderMath==`function`?e:null}var LT=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=IT();return r?await r.renderMath?.(n):await FT()(n),t?n.innerHTML:void 0},RT=V(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),zT=V(DT)(({theme:e})=>({paddingTop:e.spacing(2)})),BT=class extends L.Component{static propTypes={className:R.string,children:R.object,labels:R.shape({visible:R.string,hidden:R.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){LT(this.root)}componentDidUpdate(){LT(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,z.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,z.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,z.jsx)(RT,{children:r})}),(0,z.jsx)(zT,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}},VT=Fo((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`),HT=Fo((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`),UT=V(`div`)({display:`flex`,flexDirection:`column`}),WT=V(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),GT=V(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),KT=V(Oc)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),qT=e=>{class t extends L.Component{static propTypes={session:R.object,onSessionChange:R.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)(UT,{children:[(0,z.jsxs)(WT,{children:[(0,z.jsxs)(KT,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,z.jsx)(GT,{children:(0,z.jsx)(HT,{})}),`Undo`]}),(0,z.jsxs)(KT,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,z.jsx)(GT,{children:(0,z.jsx)(VT,{})}),`Start Over`]})]}),(0,z.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},JT=ho({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`}}}}}}),YT=V(`div`)({"& table, th, td":{fontSize:`inherit`}}),XT=class extends L.Component{static propTypes={className:R.string,children:R.array,extraCSSRules:R.shape({names:R.arrayOf(R.string),rules:R.string}),fontSizeFactor:R.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}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)(Xt,{injectFirst:!0,children:(0,z.jsxs)(Eo,{theme:JT,children:[i?.rules?(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.extraCSSRules { ${i.rules} }`}}):null,(0,z.jsx)(YT,{className:`${t} extraCSSRules`,...a,...o&&{style:o},children:e})]})})}},ZT=V(XT)({display:`flex`,flexDirection:`column`,position:`relative`}),QT=class extends L.Component{static propTypes={ariaLabel:R.string,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,role:R.string,extraCSSRules:R.shape({names:R.arrayOf(R.string),rules:R.string}),fontSizeFactor:R.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,z.jsx)(ZT,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},$T=class extends L.Component{static propTypes={tag:R.string,className:R.string,html:R.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:n}})}};function eE({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 tE=L.createContext(void 0);function nE(){return L.useContext(tE)}function rE(e){return Ir(`MuiFormLabel`,e)}var iE=Lr(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),aE=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return ia({root:[`root`,`color${Do(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},rE,t)},oE=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]}})(ko(({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(ac()).map(([t])=>({props:{color:t},style:{[`&.${iE.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${iE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${iE.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),sE=V(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(ko(({theme:e})=>({[`&.${iE.error}`]:{color:(e.vars||e).palette.error.main}}))),cE=L.forwardRef(function(e,t){let n=Ao({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=eE({props:n,muiFormControl:nE(),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=aE(m);return(0,z.jsxs)(oE,{as:o,ownerState:m,className:Pr(h.root,i),ref:t,...f,children:[r,p.required&&(0,z.jsxs)(sE,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function lE(e){return Ir(`MuiInputLabel`,e)}Lr(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var uE=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=ia({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${Do(r)}`,o],asterisk:[s&&`asterisk`]},lE,t);return{...t,...c}},dE=V(cE,{shouldForwardProp:e=>yo(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${iE.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]]}})(ko(({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)`}}]}))),fE=L.forwardRef(function(e,t){let n=Ao({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=nE(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=eE({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=uE(f);return(0,z.jsx)(dE,{"data-shrink":u,ref:t,className:Pr(p.root,s),...c,ownerState:f,classes:p})});function pE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mE(e,t=!1){return e&&(pE(e.value)&&e.value!==``||t&&pE(e.defaultValue)&&e.defaultValue!==``)}function hE(e){return e.startAdornment}function gE(e){return Ir(`MuiFormControl`,e)}Lr(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var _E=e=>{let{classes:t,margin:n,fullWidth:r}=e;return ia({root:[`root`,n!==`none`&&`margin${Do(n)}`,r&&`fullWidth`]},gE,t)},vE=V(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${Do(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%`}}]}),yE=V(L.forwardRef(function(e,t){let n=Ao({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=_E(_),[y,b]=L.useState(()=>{let e=!1;return r&&L.Children.forEach(r,t=>{if(!Ro(t,[`Input`,`Select`]))return;let n=Ro(t,[`Select`])?t.props.input:t;n&&hE(n.props)&&(e=!0)}),e}),[x,S]=L.useState(()=>{let e=!1;return r&&L.Children.forEach(r,t=>{Ro(t,[`Input`,`Select`])&&(mE(t.props,!0)||mE(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=L.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;L.useRef(!1);let E=L.useCallback(()=>{S(!0)},[]),D=L.useCallback(()=>{S(!1)},[]),O=L.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)(tE.Provider,{value:O,children:(0,z.jsx)(vE,{as:o,ownerState:_,className:Pr(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),bE=V(fE)(()=>({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)`}})),xE=({label:e,className:t,children:n})=>(0,z.jsxs)(yE,{className:t,children:[(0,z.jsx)(bE,{shrink:!0,children:e}),n]});xE.propTypes={label:R.oneOfType([R.string,R.object]).isRequired,className:R.string,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired};var SE=V(`div`)(({theme:e,tagName:t})=>({'&:not(.MathJax) > table: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:Lw()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)':{backgroundColor:zw()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td':{backgroundColor:zw()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},"&:not(.MathJax) > table td > p.kds-indent":{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:iw()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${iw()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),CE=/\\embed\{newLine\}\[\]/g,wE=`\\newline `,TE=`preview-prompt`,EE=class extends L.Component{static propTypes={prompt:R.string,tagName:R.string,className:R.string,onClick:R.func,defaultClassName:R.string,autoplayAudioEnabled:R.bool,customAudioButton:R.shape({playImage:R.string,pauseImage:R.string})};static defaultProps={onClick:()=>{}};promptRef=L.createRef();parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n}=this.props,r=document.createElement(`div`);r.innerHTML=e;let i=r.querySelector(`audio`);if(i){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,i.getAttribute(`src`)),i.removeAttribute(`src`),i.setAttribute(`id`,`pie-prompt-audio-player`),i.appendChild(e),n){i.style.display=`none`;let e=document.createElement(`div`);e.id=`play-audio-button`,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),i.parentNode.insertBefore(e,i)}}return r.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=document.getElementById(`play-audio-button`),r=document.getElementById(`pie-prompt-audio-player`);if(e&&r&&r.play().then(()=>{n&&t&&r.addEventListener(`ended`,a)}).catch(e=>{n&&t&&(n.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!n||!r||!t)return;let i=()=>{r.paused&&r.play()},a=()=>{n.style.backgroundImage=`url(${t.playImage})`},o=()=>{Object.assign(n.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},s=()=>{Object.assign(n.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};n.addEventListener(`click`,i),r.addEventListener(`play`,o),r.addEventListener(`pause`,s),r.addEventListener(`ended`,a),this._handlePlayClick=i,this._handleAudioPlay=o,this._handleAudioPause=s,this._handleAudioEnded=a}removeCustomAudioButtonListeners(){let e=document.getElementById(`play-audio-button`),t=document.querySelector(`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 LT==`function`&<(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`:``} ${TE}`.trim();return(0,z.jsx)(SE,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(CE,wE)}})}},DE=e=>(0,z.jsx)(z.Fragment,{children:L.Children.map(e.children,t=>L.cloneElement(t,{"data-pie-readable":e.false===void 0}))});DE.propTypes={children:R.node,false:R.bool};var OE=e=>(0,z.jsx)(z.Fragment,{children:L.Children.map(e.children,t=>L.cloneElement(t,{"data-pie-purpose":e.purpose}))});OE.propTypes={children:R.node,purpose:R.string};var kE;typeof window<`u`&&(kE=new DOMParser);var AE=e=>kE.parseFromString(e,`text/html`).body.textContent,jE=e=>{if(!e)return!1;let t=AE(e);return!!(t&&t.trim())},ME;typeof window<`u`&&(ME=new DOMParser);var NE=e=>{if(!e)return!1;let t=ME.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},PE=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAg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3+YCgAI3ZNvkBQAAAAAAAAAAAAivzYFAAAAETTuk+HECgAAAAAAAAJZXvbVcwCvrdegCgAAAAAAAAAAAAAltbgUCN2TaV/MBQAAAAAAAAAAAAjV+dgKAAAAIndJrmBQAAAAAAAAACO+ln6QKAAAAAEaTs2uHACgAAAAAAAAAEbSTbdkuLAoEd+SAoAAAAjVwKAAAAAAAAAAAAAABG+Gl7/AEAUAAAltb3+YCgAAAAAAAAAAAAAAAAETuk1zAoE1vx0AoAAAAARJLRKwFAAAAAAAAAAAEbSTbdkuLAoEV+aAoAABLa3AoAAAAAAAAAAAAAAACJ8dLW+kCgAJbW9/mAoAAAAARtKyb48AKAAAAAAAAAAAAEStzuBQAACX1tb5wKAAAAAAAAAAAAAAAAiSSSSslwQFAmt+OgFAAAAACJ3AoAAAAAAAAAAAARq9vMBQAACa34aAUAAAAAAETTuk+HECgAAAAAAAAAEavzsBQAAABG7crgUAAAAAAAAAAAAAACJJXaXHiBQAE1vx0AoAAAAAf/Z`;function FE(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 IE(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:yC(n,r),{props:s,internalRef:c}=SC({...a,externalSlotProps:o}),l=Jo(c,o?.ref,e.additionalProps?.ref);return vC(t,{...s,ref:l},r)}var LE=L.createContext({});function RE(e){return Ir(`MuiList`,e)}Lr(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var zE=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ia({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},RE,t)},BE=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}}]}),VE=L.forwardRef(function(e,t){let n=Ao({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=L.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=zE(d);return(0,z.jsx)(LE.Provider,{value:u,children:(0,z.jsxs)(BE,{as:a,className:Pr(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),HE=qS;function UE(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function WE(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function GE(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 KE(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`)||!GE(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var qE=L.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=L.useRef(null),p=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wo(()=>{r&&f.current.focus()},[r]),L.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${HE(Ho(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=oC(Bo(t));if(n===`ArrowDown`)e.preventDefault(),KE(t,r,c,s,UE);else if(n===`ArrowUp`)e.preventDefault(),KE(t,r,c,s,WE);else if(n===`Home`)e.preventDefault(),KE(t,null,c,s,UE);else if(n===`End`)e.preventDefault(),KE(t,null,c,s,WE);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&&GE(r,i);i.previousKeyMatched&&(c||KE(t,r,!1,s,UE,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=Yo(f,t),g=-1;L.Children.forEach(a,(e,t)=>{if(!L.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 _=L.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),L.cloneElement(e,t)}return e});return(0,z.jsx)(VE,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function JE(e){return Ir(`MuiMenu`,e)}Lr(`MuiMenu`,[`root`,`paper`,`list`]);var YE={vertical:`top`,horizontal:`right`},XE={vertical:`top`,horizontal:`left`},ZE=e=>{let{classes:t}=e;return ia({root:[`root`],paper:[`paper`],list:[`list`]},JE,t)},QE=V($C,{shouldForwardProp:e=>yo(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),$E=V(QC,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),eD=V(qE,{name:`MuiMenu`,slot:`List`})({outline:0}),tD=L.forwardRef(function(e,t){let n=Ao({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=Ci(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=ZE(b),S=r&&!o&&l,C=L.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;L.Children.map(i,(e,t)=>{L.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=IE({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[k,A]=CC(`paper`,{className:x.paper,elementType:$E,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[j,M]=CC(`list`,{className:Pr(x.list,s.className),elementType:eD,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),N=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,z.jsx)(QE,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?YE:XE,slots:{root:g.root,paper:k,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:A,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...N,onEntering:(...e)=>{w(...e),N?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,z.jsx)(j,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...M,children:i})})}),nD=({slotProps:e,...t})=>(0,z.jsx)(tD,{...t,disableScrollLock:!0,hideBackdrop:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,pointerEvents:`none`,...e?.root?.style}},paper:{...e?.paper,style:{pointerEvents:`auto`,...e?.paper?.style}}}}),rD=s({Collapsible:()=>BT,EnableAudioAutoplayImage:()=>PE,Feedback:()=>uT,HtmlAndMath:()=>$T,InlineMenu:()=>nD,InputContainer:()=>xE,PreviewLayout:()=>QT,PreviewPrompt:()=>EE,Purpose:()=>OE,Readable:()=>DE,UiLayout:()=>XT,color:()=>nw,hasMedia:()=>NE,hasText:()=>jE,indicators:()=>fT,transformDataHeadings:()=>FE,withUndoReset:()=>qT}),iD=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function aD(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function oD(e){return`nodeType`in e}function sD(e){return e?aD(e)?e:oD(e)?e.ownerDocument?.defaultView??window:window:window}function cD(e){let{Document:t}=sD(e);return e instanceof t}function lD(e){return!aD(e)&&e instanceof sD(e).HTMLElement}function uD(e){return e instanceof sD(e).SVGElement}function dD(e){return e?aD(e)?e.document:oD(e)?cD(e)?e:lD(e)||uD(e)?e.ownerDocument:document:document:document}var fD=iD?L.useLayoutEffect:L.useEffect;function pD(e){let t=(0,L.useRef)(e);return fD(()=>{t.current=e}),(0,L.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current==null?void 0:t.current(...n)},[])}function mD(){let e=(0,L.useRef)(null);return[(0,L.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,L.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function hD(e,t){t===void 0&&(t=[e]);let n=(0,L.useRef)(e);return fD(()=>{n.current!==e&&(n.current=e)},t),n}function gD(e,t){let n=(0,L.useRef)();return(0,L.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function _D(e){let t=pD(e),n=(0,L.useRef)(null);return[n,(0,L.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function vD(e){let t=(0,L.useRef)();return(0,L.useEffect)(()=>{t.current=e},[e]),t.current}var yD={};function bD(e,t){return(0,L.useMemo)(()=>{if(t)return t;let n=yD[e]==null?0:yD[e]+1;return yD[e]=n,e+`-`+n},[e,t])}function xD(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var SD=xD(1),CD=xD(-1);function wD(e){return`clientX`in e&&`clientY`in e}function TD(e){if(!e)return!1;let{KeyboardEvent:t}=sD(e.target);return t&&e instanceof t}function ED(e){if(!e)return!1;let{TouchEvent:t}=sD(e.target);return t&&e instanceof t}function DD(e){if(ED(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return wD(e)?{x:e.clientX,y:e.clientY}:null}var OD=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function kD(e){return e.matches(OD)?e:e.querySelector(OD)}var AD={display:`none`};function jD(e){let{id:t,value:n}=e;return L.createElement(`div`,{id:t,style:AD},n)}function MD(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return L.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function ND(){let[e,t]=(0,L.useState)(``);return{announce:(0,L.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var PD=(0,L.createContext)(null);function FD(e){let t=(0,L.useContext)(PD);(0,L.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function ID(){let[e]=(0,L.useState)(()=>new Set),t=(0,L.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,L.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var LD={draggable:`
|
|
157
|
+
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})]});xS.propTypes={bgFill:R.string.isRequired,fgFill:R.string.isRequired,borderFill:R.string.isRequired};var SS=V(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),CS=({open:e,size:t})=>(0,z.jsx)(SS,{size:t,children:e?(0,z.jsx)(bS,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,z.jsx)(xS,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});CS.propTypes={open:R.bool,size:R.string},CS.defaultProps={open:!1};var wS=({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})]});wS.propTypes={fill:R.string.isRequired};var TS=({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})]});TS.propTypes={fill:R.string.isRequired};var ES=gS(wS,TS);ES.propTypes={iconSet:R.oneOf([`emoji`,`check`]),shape:R.oneOf([`round`,`square`]),category:R.oneOf([`feedback`,void 0]),open:R.bool,fg:R.string,bg:R.string,size:R.oneOfType([R.string,R.number])},ES.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var DS=({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})]});DS.propTypes={fill:R.string.isRequired};var OS=({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});OS.propTypes={fill:R.string.isRequired};var kS=({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
|
|
158
|
+
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});kS.propTypes={fill:R.string.isRequired};var AS=class extends L.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,z.jsxs)(uS,{children:[(0,z.jsx)(OS,{fill:n}),(0,z.jsx)(DS,{fill:t})]}),emoji:(0,z.jsxs)(uS,{children:[(0,z.jsx)(OS,{fill:n}),(0,z.jsx)(kS,{fill:t})]}),feedback:{check:(0,z.jsxs)(uS,{children:[(0,z.jsx)(OS,{fill:n}),(0,z.jsx)(kS,{fill:t})]}),emoji:(0,z.jsxs)(uS,{children:[(0,z.jsx)(OS,{fill:n}),(0,z.jsx)(kS,{fill:t})]}),square:{check:(0,z.jsxs)(uS,{children:[(0,z.jsx)(OS,{fill:n}),(0,z.jsx)(DS,{fill:t})]}),emoji:(0,z.jsxs)(uS,{children:[(0,z.jsx)(OS,{fill:n}),(0,z.jsx)(kS,{fill:t})]}),open:{check:(0,z.jsx)(uS,{children:(0,z.jsx)(DS,{fill:n})}),emoji:(0,z.jsx)(uS,{children:(0,z.jsx)(kS,{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]}};AS.propTypes={iconSet:R.oneOf([`emoji`,`check`,void 0]),shape:R.oneOf([`square`,void 0]),category:R.oneOf([`feedback`,void 0]),open:R.bool,fg:R.string,bg:R.string},AS.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var jS=({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})]});jS.propTypes={fill:R.string.isRequired};var MS=({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})]});MS.propTypes={fill:R.string.isRequired};var NS=gS(jS,MS);NS.propTypes={iconSet:R.oneOf([`emoji`,`check`]),shape:R.oneOf([`round`,`square`]),category:R.oneOf([`feedback`,void 0]),open:R.bool,fg:R.string,bg:R.string,size:R.oneOfType([R.string,R.number])},NS.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};var PS=({fill:e})=>(0,z.jsxs)(`g`,{children:[(0,z.jsx)(`rect`,{x:`-115`,y:`136.7`,width:`3`,height:`3`,fill:e}),(0,z.jsx)(`polygon`,{points:`-112,147.7 -112,141.7 -115.8,141.7 -115.8,143.7 -114,143.7 -114,147.7 -116.2,147.7 -116.2,149.7 -109.8,149.7 -109.8,147.7`,fill:e})]});PS.propTypes={fill:R.string.isRequired};var FS=({fill:e})=>(0,z.jsx)(`path`,{d:`M-113,158.5c-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,158.5-113,158.5z
|
|
159
|
+
M-113,130.5c-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-105.6,130.5-113,130.5z`,fill:e});FS.propTypes={fill:R.string.isRequired};var IS=({fill:e=`#FFFFFF`})=>(0,z.jsxs)(`g`,{children:[(0,z.jsx)(`path`,{style:{fill:`#D0CAC5`,stroke:`#E6E3E0`,strokeWidth:.75,strokeMiterlimit:10},d:`M-111.7,160.9c-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.5C-96.2,154-103.1,160.9-111.7,160.9z`}),(0,z.jsx)(`path`,{style:{fill:`#B3ABA4`,stroke:`#CDC7C2`,strokeWidth:.5,strokeMiterlimit:10},d:`M-112,159.5c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-104,159.5-112,159.5z`}),(0,z.jsx)(`circle`,{cx:`-113`,cy:`144`,r:`14`,fill:e})]});IS.propTypes={fill:R.string};var LS=({children:e,size:t})=>{let n=cS(t);return(0,z.jsx)(`div`,{style:{height:n,width:n,display:`inline-block`,position:`relative`},children:(0,z.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`-129 128 34 34`,children:e})})};LS.propTypes={children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,size:R.oneOfType([R.string,R.number])};var RS=class extends L.Component{render(){let{iconSet:e,open:t,fg:n=`#1a9cff`,bg:r=`#bce2ff`,border:i=`#bbe3fd`}=this.props,a=(0,z.jsx)(PS,{fill:n}),o={check:(0,z.jsxs)(LS,{size:this.props.size,children:[(0,z.jsx)(IS,{}),a,(0,z.jsx)(FS,{fill:i})]}),emoji:(0,z.jsxs)(LS,{size:this.props.size,children:[(0,z.jsx)(IS,{}),a,(0,z.jsx)(FS,{fill:i})]}),open:{check:(0,z.jsxs)(LS,{size:this.props.size,children:[(0,z.jsx)(`circle`,{cx:`-113`,cy:`144`,r:`14`,fill:`#FFFFFF`}),(0,z.jsx)(PS,{fill:r}),(0,z.jsx)(FS,{fill:`#FFFFFF`})]}),emoji:(0,z.jsxs)(LS,{size:this.props.size,children:[(0,z.jsx)(`circle`,{cx:`-113`,cy:`144`,r:`14`,fill:`#FFFFFF`}),(0,z.jsx)(PS,{fill:r}),(0,z.jsx)(FS,{fill:i})]})}};return t===!0?o.open[e]:o[e]}};RS.propTypes={iconSet:R.oneOf([`emoji`,`check`]),open:R.bool,fg:R.string,bg:R.string,border:R.string,size:R.oneOfType([R.string,R.number])},RS.defaultProps={iconSet:`check`,open:!1,fg:`#1a9cff`,bg:`#bce2ff`,border:`#bbe3fd`,size:30};function zS(e){return typeof e==`string`}function BS(e){return e?.ref||null}var VS=e=>e.scrollTop;function HS(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function US(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function WS(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 GS(e){return`scale(${e}, ${e**2})`}var KS={entering:{opacity:1,transform:GS(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:GS(.75)},exited:{opacity:0,transform:GS(.75)}},qS={opacity:0,transform:GS(.75),visibility:`hidden`},JS=L.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=Vs(),_=L.useRef(),v=_o(),y=L.useRef(null),b=Yo(y,BS(i),t),x=HS(y,l),S=HS(y,(e,t)=>{VS(e);let{duration:n,delay:r,easing:i}=WS({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=HS(y,c),w=HS(y,f),T=HS(y,e=>{let{duration:t,delay:n,easing:r}=WS({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=GS(.75),u&&u(e)}),E=HS(y,e=>{e.style.transition=``,d&&d(e)});return(0,z.jsx)(ws,{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=US(e,o,KS,qS,p,i.props.style);return L.cloneElement(i,{style:r,ref:b,...n})}})});JS&&(JS.muiSupportAuto=!0);function YS(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function XS(e){let t=zo(e);return t.body===e?Vo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ZS(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function QS(e){return parseFloat(Vo(e).getComputedStyle(e).paddingRight)||0}function $S(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 eC(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!$S(e);t&&n&&ZS(e,i)})}function tC(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function nC(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(XS(r)){let e=YS(Vo(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${QS(r)+e}px`;let t=zo(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${QS(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=zo(r).body;else{let t=r.parentElement,n=Vo(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 rC(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var iC=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&&ZS(e.modalRef,!1);let r=rC(t);eC(t,e.mount,e.modalRef,r,!0);let i=tC(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=tC(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=nC(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=tC(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&&ZS(e.modalRef,t),eC(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&&ZS(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function aC(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 oC=aC;function sC(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var cC=sC,lC=`data-mui-focusable`;function uC(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${lC}]`):null}var dC=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function fC(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 pC(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 mC(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||pC(e))}function hC(e){let t=[],n=[];return Array.from(e.querySelectorAll(dC)).forEach((e,r)=>{let i=fC(e);i===-1||!mC(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 gC(){return!0}function _C(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=hC,isEnabled:o=gC,open:s}=e,c=L.useRef(!1),l=L.useRef(null),u=L.useRef(null),d=L.useRef(null),f=L.useRef(null),p=L.useRef(!1),m=L.useRef(null),h=Jo(BS(t),m),g=L.useRef(null);L.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),L.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=cC(zo(m.current)),t=uC(m.current)??m.current;return oC(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]),L.useEffect(()=>{if(!s||!m.current)return;let e=zo(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&cC(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=cC(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(oC(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=cC(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)(L.Fragment,{children:[(0,z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),L.cloneElement(t,{ref:h,onFocus:_}),(0,z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function vC(e){return typeof e==`function`?e():e}var yC=L.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=L.useState(null),s=Jo(L.isValidElement(n)?BS(n):null,t);if(Zr(()=>{i||o(vC(r)||document.body)},[r,i]),Zr(()=>{if(a&&!i)return Uo(t,a),()=>{Uo(t,null)}},[t,a,i]),i){if(L.isValidElement(n)){let e={ref:s};return L.cloneElement(n,e)}return n}return a&&vs.createPortal(n,a)});function bC(e,t,n){return e===void 0||zS(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function xC(e,t,n){return typeof e==`function`?e(t,n):e}function SC(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 CC(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 wC(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=Pr(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=SC({...i,...r}),s=CC(r),c=CC(i),l=t(o),u=Pr(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 TC(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=xC(d[e],i),{props:{component:h,...g},internalRef:_}=wC({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Jo(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,bC(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 EC={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},DC={opacity:0,visibility:`hidden`},OC=L.forwardRef(function(e,t){let n=_o(),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=L.useRef(null),y=Yo(v,BS(o),t),b=HS(v,d),x=HS(v,(e,t)=>{VS(e);let r=WS({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=HS(v,u),C=HS(v,m),w=HS(v,e=>{let t=WS({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=HS(v,e=>{e.style.transition=``,p&&p(e)});return(0,z.jsx)(ws,{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=US(e,c,EC,DC,h,o.props.style);return L.cloneElement(o,{style:r,ref:y,...n})}})});function kC(e){return Ir(`MuiBackdrop`,e)}Lr(`MuiBackdrop`,[`root`,`invisible`]);var AC=e=>{let{classes:t,invisible:n}=e;return ia({root:[`root`,n&&`invisible`]},kC,t)},jC=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`}}]}),MC=L.forwardRef(function(e,t){let n=Ao({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=AC(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=TC(`root`,{elementType:jC,externalForwardedProps:_,className:Pr(g.root,i),ownerState:h}),[b,x]=TC(`transition`,{elementType:OC,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 NC(e){return typeof e==`function`?e():e}function PC(e){return e?e.props.hasOwnProperty(`in`):!1}var FC=()=>{},IC=new iC;function LC(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=L.useRef({}),f=L.useRef(null),p=L.useRef(null),m=Jo(p,u),[h,g]=L.useState(!l),_=PC(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>zo(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{IC.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Ko(()=>{let e=NC(t)||y().body;IC.add(b(),e),p.current&&x()}),C=()=>IC.isTopModal(b()),w=Ko(e=>{f.current=e,e&&(l&&C()?x():p.current&&ZS(p.current,v))}),T=L.useCallback(()=>{IC.remove(b(),v)},[v]);L.useEffect(()=>()=>{T()},[T]),L.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=SC(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:Oo(()=>{g(!1),a&&a()},s?.props.onEnter??FC),onExited:Oo(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??FC)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function RC(e){return Ir(`MuiModal`,e)}Lr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var zC=e=>{let{open:t,exited:n,classes:r}=e;return ia({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},RC,r)},BC=V(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ko(({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`}}]}))),VC=V(MC,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),HC=L.forwardRef(function(e,t){let n=Ao({name:`MuiModal`,props:e}),{BackdropComponent:r=VC,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,k={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:A,getBackdropProps:j,getTransitionProps:M,portalRef:N,isTopModal:P,exited:ee,hasTransition:te}=LC({...k,rootRef:t}),ne={...k,exited:ee},F=zC(ne),re={};if(c.props.tabIndex===void 0&&(re.tabIndex=`-1`),te){let{onEnter:e,onExited:t}=M();re.onEnter=e,re.onExited=t}let I={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ie,ae]=TC(`root`,{ref:t,elementType:BC,externalForwardedProps:{...I,...O,component:u},getSlotProps:A,ownerState:ne,className:Pr(o,F?.root,!ne.open&&ne.exited&&F?.hidden)}),[oe,se]=TC(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:I,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>j({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:Pr(i?.className,F?.backdrop),ownerState:ne});return!b&&!w&&(!te||ee)?null:(0,z.jsx)(yC,{ref:N,container:l,disablePortal:g,children:(0,z.jsxs)(ie,{...ae,children:[!y&&r?(0,z.jsx)(oe,{...se}):null,(0,z.jsx)(_C,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:P,open:w,children:L.cloneElement(c,re)})]})})});function UC(e){return Ir(`MuiPaper`,e)}Lr(`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 WC=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ia({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},UC,i)},GC=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}`]]}})(ko(({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)`}}]}))),KC=L.forwardRef(function(e,t){let n=Ao({props:e,name:`MuiPaper`}),r=_o(),{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=WC(u);return(0,z.jsx)(GC,{as:a,ownerState:u,className:Pr(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(${ci(`#fff`,Za(o))}, ${ci(`#fff`,Za(o))})`}},...l.style}})});function qC(e){return Ir(`MuiPopover`,e)}Lr(`MuiPopover`,[`root`,`paper`]);function JC(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function YC(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function XC(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function ZC(e){return typeof e==`function`?e():e}var QC=e=>{let{classes:t}=e;return ia({root:[`root`],paper:[`paper`]},qC,t)},$C=V(HC,{name:`MuiPopover`,slot:`Root`})({}),ew=V(KC,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),tw=L.forwardRef(function(e,t){let n=Ao({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=L.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=QC(w),E=L.useCallback(()=>{if(s===`anchorPosition`)return o;let e=ZC(i),t=(e&&e.nodeType===1?e:Bo(C.current).body).getBoundingClientRect();return{top:t.top+JC(t,a.vertical),left:t.left+YC(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=L.useCallback(e=>({vertical:JC(e,_.vertical),horizontal:YC(e,_.horizontal)}),[_.horizontal,_.vertical]),O=L.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:XC(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Ho(ZC(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:XC(n)}},[i,s,E,D,f]),[k,A]=L.useState(p),j=L.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,A(!0)},[O]);L.useEffect(()=>(x&&window.addEventListener(`scroll`,j),()=>window.removeEventListener(`scroll`,j)),[i,x,j]);let M=()=>{j()},N=()=>{A(!1)};L.useEffect(()=>{p&&j()}),L.useImperativeHandle(r,()=>p?{updatePosition:()=>{j()}}:null,[p,j]),L.useEffect(()=>{if(!p)return;let e=Lo(()=>{j()}),t=Ho(ZC(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,j]);let P=y,ee={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[te,ne]=TC(`transition`,{elementType:JS,externalForwardedProps:ee,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),M()},onExited:t=>{e.onExited?.(t),N()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!te.muiSupportAuto&&(P=void 0);let F=u||(i?Bo(ZC(i)).body:void 0),[re,{slots:I,slotProps:ie,...ae}]=TC(`root`,{ref:t,elementType:$C,externalForwardedProps:{...ee,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Zo(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:F,open:p},ownerState:w,className:Pr(T.root,l)}),[oe,se]=TC(`paper`,{ref:C,className:T.paper,elementType:ew,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:k?void 0:{opacity:0}},ownerState:w});return(0,z.jsx)(re,{...ae,...!zS(re)&&{slots:I,slotProps:ie,disableScrollLock:x},children:(0,z.jsx)(te,{...ne,timeout:P,children:(0,z.jsx)(oe,{...se,children:c})})})}),nw={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`},rw={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`},iw=s({background:()=>Ow,backgroundDark:()=>kw,black:()=>Hw,blueGrey100:()=>Xw,blueGrey300:()=>Zw,blueGrey600:()=>Qw,blueGrey900:()=>$w,border:()=>Fw,borderDark:()=>Lw,borderGray:()=>Rw,borderLight:()=>Iw,buttonBorder:()=>oT,buttonFocusOutline:()=>Yw,buttonHoverBg:()=>sT,correct:()=>uw,correctSecondary:()=>dw,correctTertiary:()=>fw,correctWithIcon:()=>pw,defaults:()=>Z,disabled:()=>sw,disabledSecondary:()=>cw,disabledText:()=>lw,dropdownBackground:()=>jw,fadedPrimary:()=>Cw,focusChecked:()=>Gw,focusCheckedBorder:()=>Kw,focusUnchecked:()=>qw,focusUncheckedBorder:()=>Jw,incorrect:()=>mw,incorrectSecondary:()=>gw,incorrectWithIcon:()=>hw,keyBoardFocusIndicator:()=>aT,keypadButton:()=>eT,keypadButtonHover:()=>rT,keypadButtonOperator:()=>tT,keypadButtonOperatorHover:()=>iT,keypadEmptyPlaceholder:()=>nT,missing:()=>_w,missingWithIcon:()=>vw,primary:()=>yw,primaryDark:()=>xw,primaryLight:()=>bw,primaryText:()=>Sw,secondary:()=>ww,secondaryBackground:()=>Aw,secondaryDark:()=>Ew,secondaryLight:()=>Tw,secondaryText:()=>Dw,surface:()=>Mw,tableGrid:()=>zw,tableGridLight:()=>Bw,tableStripe:()=>Vw,tertiary:()=>Nw,tertiaryLight:()=>Pw,text:()=>ow,transparent:()=>Ww,v:()=>aw,visualElementsColors:()=>cT,white:()=>Uw}),Z={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:pa[500],CORRECT_SECONDARY:pa[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ua[500],INCORRECT_SECONDARY:la[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:la[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:rw[500],PRIMARY_LIGHT:rw[200],PRIMARY_DARK:rw[800],SECONDARY:nw.A400,SECONDARY_LIGHT:nw[200],SECONDARY_DARK:nw[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:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,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:`#C0C3CF`,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)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(Z);var aw=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Q=aw(`pie`),ow=()=>Q(`text`,Z.TEXT),sw=()=>Q(`disabled`,Z.DISABLED),cw=()=>Q(`disabled-secondary`,Z.DISABLED_SECONDARY),lw=()=>Q(`disabled-text`,`text`,Z.DISABLED_TEXT),uw=()=>Q(`correct`,Z.CORRECT),dw=()=>Q(`correct-secondary`,Z.CORRECT_SECONDARY),fw=()=>Q(`correct-tertiary`,Z.CORRECT_TERTIARY),pw=()=>Q(`correct-icon`,Z.CORRECT_WITH_ICON),mw=()=>Q(`incorrect`,Z.INCORRECT),hw=()=>Q(`incorrect-icon`,Z.INCORRECT_WITH_ICON),gw=()=>Q(`incorrect-secondary`,Z.INCORRECT_SECONDARY),_w=()=>Q(`missing`,Z.MISSING),vw=()=>Q(`missing-icon`,Z.MISSING_WITH_ICON),yw=()=>Q(`primary`,Z.PRIMARY),bw=()=>Q(`primary-light`,Z.PRIMARY_LIGHT),xw=()=>Q(`primary-dark`,Z.PRIMARY_DARK),Sw=()=>Q(`primary-text`,`text`,Z.TEXT),Cw=()=>Q(`faded-primary`,Z.FADED_PRIMARY),ww=()=>Q(`secondary`,Z.SECONDARY),Tw=()=>Q(`secondary-light`,Z.SECONDARY_LIGHT),Ew=()=>Q(`secondary-dark`,Z.SECONDARY_DARK),Dw=()=>Q(`secondary-text`,`text`,Z.TEXT),Ow=()=>Q(`background`,Z.BACKGROUND),kw=()=>Q(`background-dark`,Z.BACKGROUND_DARK),Aw=()=>Q(`secondary-background`,Z.SECONDARY_BACKGROUND),jw=()=>Q(`dropdown-background`,Z.DROPDOWN_BACKGROUND),Mw=()=>Q(`surface`,Z.SURFACE),Nw=()=>Q(`tertiary`,Z.TERTIARY),Pw=()=>Q(`tertiary-light`,Z.TERTIARY_LIGHT),Fw=()=>Q(`border`,Z.BORDER),Iw=()=>Q(`border-light`,Z.BORDER_LIGHT),Lw=()=>Q(`border-dark`,Z.BORDER_DARK),Rw=()=>Q(`border-gray`,Z.BORDER_GRAY),zw=()=>Q(`table-grid`,`text`,Z.TABLE_GRID),Bw=()=>Q(`table-grid-light`,`border-light`,Z.TABLE_GRID_LIGHT),Vw=()=>Q(`table-stripe`,`background-dark`,Z.TABLE_STRIPE),Hw=()=>Q(`black`,Z.BLACK),Uw=()=>Q(`white`,Z.WHITE),Ww=()=>Z.TRANSPARENT,Gw=()=>Q(`focus-checked`,Z.FOCUS_CHECKED),Kw=()=>Q(`focus-checked-border`,Z.FOCUS_CHECKED_BORDER),qw=()=>Q(`focus-unchecked`,Z.FOCUS_UNCHECKED),Jw=()=>Q(`focus-unchecked-border`,Z.FOCUS_UNCHECKED_BORDER),Yw=()=>Q(`button-focus-outline`,Z.BUTTON_FOCUS_OUTLINE),Xw=()=>Q(`blue-grey-100`,Z.BLUE_GREY100),Zw=()=>Q(`blue-grey-300`,Z.BLUE_GREY300),Qw=()=>Q(`blue-grey-600`,Z.BLUE_GREY600),$w=()=>Q(`blue-grey-900`,Z.BLUE_GREY900),eT=()=>Q(`keypad-button`,Z.KEYPAD_BUTTON),tT=()=>Q(`keypad-button-operator`,Z.KEYPAD_BUTTON_OPERATOR),nT=()=>Q(`keypad-empty-placeholder`,Z.KEYPAD_EMPTY_PLACEHOLDER),rT=()=>Q(`keypad-button-hover`,Z.KEYPAD_BUTTON_HOVER),iT=()=>Q(`keypad-button-operator-hover`,Z.KEYPAD_BUTTON_OPERATOR_HOVER),aT=()=>Q(`keyboard-focus-indicator`,Z.KEY_BOARD_FOCUS_INDICATOR),oT=()=>Q(`button-border`,Z.BUTTON_BORDER),sT=()=>Q(`button-hover-bg`,Z.BUTTON_HOVER_BG),cT={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},lT=V(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),uT=V(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${sw()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${uw()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${mw()})`}}),dT=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`}}),fT=class extends L.Component{static propTypes={correctness:R.string,feedback:R.string};nodeRef=L.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,z.jsx)(Os,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,z.jsx)(dT,{ref:this.nodeRef,children:(0,z.jsx)(lT,{children:(0,z.jsx)(uT,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,z.jsx)(`div`,{children:(0,z.jsx)(Ls,{children:this.renderFeedback()})})}};function pT(){return()=>{}}var mT=s({Correct:()=>bT,Incorrect:()=>xT,NothingSubmitted:()=>CT,PartiallyCorrect:()=>ST}),hT=pT(`pie-libs:render-ui:response-indicators`),gT=V(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),_T=V(tw)({cursor:`pointer`}),vT=V(`div`)({padding:`0`,borderRadius:`4px`}),yT=(e,t)=>{class n extends L.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{hT(`[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)(gT,{hasFeedback:!!n,children:[(0,z.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,z.jsx)(e,{})}),n&&(0,z.jsx)(_T,{PaperComponent:vT,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,z.jsx)(fT,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:R.string},n},bT=yT(yS,`correct`),xT=yT(ES,`incorrect`),ST=yT(NS,`partially-correct`),CT=yT(AS,`nothing-submitted`);function wT(e){return Ir(`MuiCollapse`,e)}Lr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var TT=e=>{let{orientation:t,classes:n}=e;return ia({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},wT,n)},ET=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]}})(ko(({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`}}]}))),DT=V(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),OT=V(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),kT=L.forwardRef(function(e,t){let n=Ao({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=Ba.standard,TransitionComponent:x=ws,...S}=n,C={...n,orientation:g,collapsedSize:o},w=TT(C),T=_o(),E=Vs(),D=L.useRef(null),O=L.useRef(),k=typeof o==`number`?`${o}px`:o,A=g===`horizontal`,j=A?`width`:`height`,M=L.useRef(null),N=Yo(t,M),P=()=>D.current?D.current[A?`clientWidth`:`clientHeight`]:0,ee=HS(M,(e,t)=>{D.current&&A&&(D.current.style.position=`absolute`),e.style[j]=k,u&&u(e,t)}),te=HS(M,(e,t)=>{let n=P();D.current&&A&&(D.current.style.position=``);let{duration:r,easing:i}=WS({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[j]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ne=HS(M,(e,t)=>{e.style[j]=`auto`,d&&d(e,t)}),F=HS(M,e=>{e.style[j]=`${P()}px`,p&&p(e)}),re=HS(M,m),I=HS(M,e=>{let t=P(),{duration:n,easing:r}=WS({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[j]=k,e.style.transitionTimingFunction=r,h&&h(e)}),ie=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(M.current,e)},ae={slots:_,slotProps:v,component:s},[oe,se]=TC(`root`,{ref:N,className:Pr(w.root,a),elementType:ET,externalForwardedProps:ae,ownerState:C,additionalProps:{style:{[A?`minWidth`:`minHeight`]:k,...y}}}),[ce,le]=TC(`wrapper`,{ref:D,className:w.wrapper,elementType:DT,externalForwardedProps:ae,ownerState:C}),[ue,de]=TC(`wrapperInner`,{className:w.wrapperInner,elementType:OT,externalForwardedProps:ae,ownerState:C});return(0,z.jsx)(x,{in:l,onEnter:ee,onEntered:ne,onEntering:te,onExit:F,onExited:re,onExiting:I,addEndListener:ie,nodeRef:M,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,z.jsx)(oe,{...se,className:Pr(se.className,{entered:w.entered,exited:!l&&k===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,z.jsx)(ce,{...le,ownerState:r,children:(0,z.jsx)(ue,{...de,ownerState:r,children:i})})})}})});kT&&(kT.muiSupportAuto=!0);var AT=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,jT=null;function MT(e){return typeof window>`u`||window.MathJax?.typesetPromise?Promise.resolve():jT||(jT=new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[]},tex:{packages:[`base`,`ams`,`autoload`],macros:{parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`}},options:{enableMenu:i,enableExplorer:i,enableAssistiveMml:i},startup:{ready:()=>{window.MathJax?.startup.defaultReady&&(window.MathJax.startup.defaultReady(),t())},defaultReady:()=>{}}};r&&s.tex&&(s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||AT,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)}),jT)}function NT(){let e=window.MathJax?.startup?.document;if(typeof e?.assistiveMml==`function`)try{e.assistiveMml().updateDocument?.()}catch(e){console.warn(`[mathjax-renderer] Failed to attach assistive MathML:`,e)}}function PT(e={}){return async t=>{if(await MT(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),NT()}}var FT=`@pie-lib/math-rendering`,IT=null;function LT(){return IT||=PT({accessibility:!0,useSingleDollar:!0}),IT}function RT(){if(typeof window>`u`)return null;let e=window[FT];return typeof e?.renderMath==`function`?e:null}var zT=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=RT();return r?await r.renderMath?.(n):await LT()(n),t?n.innerHTML:void 0},BT=V(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),VT=V(kT)(({theme:e})=>({paddingTop:e.spacing(2)})),HT=class extends L.Component{static propTypes={className:R.string,children:R.object,labels:R.shape({visible:R.string,hidden:R.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){zT(this.root)}componentDidUpdate(){zT(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,z.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,z.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,z.jsx)(BT,{children:r})}),(0,z.jsx)(VT,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}},UT=Fo((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`),WT=Fo((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`),GT=V(`div`)({display:`flex`,flexDirection:`column`}),KT=V(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),qT=V(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),JT=V(Oc)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),YT=e=>{class t extends L.Component{static propTypes={session:R.object,onSessionChange:R.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)(GT,{children:[(0,z.jsxs)(KT,{children:[(0,z.jsxs)(JT,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,z.jsx)(qT,{children:(0,z.jsx)(WT,{})}),`Undo`]}),(0,z.jsxs)(JT,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,z.jsx)(qT,{children:(0,z.jsx)(UT,{})}),`Start Over`]})]}),(0,z.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},XT=ho({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`}}}}}}),ZT=V(`div`)({"& table, th, td":{fontSize:`inherit`}}),QT=class extends L.Component{static propTypes={className:R.string,children:R.array,extraCSSRules:R.shape({names:R.arrayOf(R.string),rules:R.string}),fontSizeFactor:R.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}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)(Xt,{injectFirst:!0,children:(0,z.jsxs)(Eo,{theme:XT,children:[i?.rules?(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.extraCSSRules { ${i.rules} }`}}):null,(0,z.jsx)(ZT,{className:`${t} extraCSSRules`,...a,...o&&{style:o},children:e})]})})}},$T=V(QT)({display:`flex`,flexDirection:`column`,position:`relative`}),eE=class extends L.Component{static propTypes={ariaLabel:R.string,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,role:R.string,extraCSSRules:R.shape({names:R.arrayOf(R.string),rules:R.string}),fontSizeFactor:R.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,z.jsx)($T,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},tE=class extends L.Component{static propTypes={tag:R.string,className:R.string,html:R.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:n}})}};function nE({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 rE=L.createContext(void 0);function iE(){return L.useContext(rE)}function aE(e){return Ir(`MuiFormLabel`,e)}var oE=Lr(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),sE=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return ia({root:[`root`,`color${Do(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},aE,t)},cE=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]}})(ko(({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(ac()).map(([t])=>({props:{color:t},style:{[`&.${oE.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${oE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${oE.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),lE=V(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(ko(({theme:e})=>({[`&.${oE.error}`]:{color:(e.vars||e).palette.error.main}}))),uE=L.forwardRef(function(e,t){let n=Ao({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=nE({props:n,muiFormControl:iE(),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=sE(m);return(0,z.jsxs)(cE,{as:o,ownerState:m,className:Pr(h.root,i),ref:t,...f,children:[r,p.required&&(0,z.jsxs)(lE,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function dE(e){return Ir(`MuiInputLabel`,e)}Lr(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var fE=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=ia({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${Do(r)}`,o],asterisk:[s&&`asterisk`]},dE,t);return{...t,...c}},pE=V(uE,{shouldForwardProp:e=>yo(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${oE.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]]}})(ko(({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)`}}]}))),mE=L.forwardRef(function(e,t){let n=Ao({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=iE(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=nE({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=fE(f);return(0,z.jsx)(pE,{"data-shrink":u,ref:t,className:Pr(p.root,s),...c,ownerState:f,classes:p})});function hE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function gE(e,t=!1){return e&&(hE(e.value)&&e.value!==``||t&&hE(e.defaultValue)&&e.defaultValue!==``)}function _E(e){return e.startAdornment}function vE(e){return Ir(`MuiFormControl`,e)}Lr(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var yE=e=>{let{classes:t,margin:n,fullWidth:r}=e;return ia({root:[`root`,n!==`none`&&`margin${Do(n)}`,r&&`fullWidth`]},vE,t)},bE=V(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${Do(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%`}}]}),xE=V(L.forwardRef(function(e,t){let n=Ao({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=yE(_),[y,b]=L.useState(()=>{let e=!1;return r&&L.Children.forEach(r,t=>{if(!Ro(t,[`Input`,`Select`]))return;let n=Ro(t,[`Select`])?t.props.input:t;n&&_E(n.props)&&(e=!0)}),e}),[x,S]=L.useState(()=>{let e=!1;return r&&L.Children.forEach(r,t=>{Ro(t,[`Input`,`Select`])&&(gE(t.props,!0)||gE(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=L.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;L.useRef(!1);let E=L.useCallback(()=>{S(!0)},[]),D=L.useCallback(()=>{S(!1)},[]),O=L.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)(rE.Provider,{value:O,children:(0,z.jsx)(bE,{as:o,ownerState:_,className:Pr(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),SE=V(mE)(()=>({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)`}})),CE=({label:e,className:t,children:n})=>(0,z.jsxs)(xE,{className:t,children:[(0,z.jsx)(SE,{shrink:!0,children:e}),n]});CE.propTypes={label:R.oneOfType([R.string,R.object]).isRequired,className:R.string,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired};var wE=V(`div`)(({theme:e,tagName:t})=>({'&:not(.MathJax) > table: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:zw()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)':{backgroundColor:Vw()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td':{backgroundColor:Vw()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},"&:not(.MathJax) > table td > p.kds-indent":{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:ow()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${ow()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),TE=/\\embed\{newLine\}\[\]/g,EE=`\\newline `,DE=`preview-prompt`,OE=class extends L.Component{static propTypes={prompt:R.string,tagName:R.string,className:R.string,onClick:R.func,defaultClassName:R.string,autoplayAudioEnabled:R.bool,customAudioButton:R.shape({playImage:R.string,pauseImage:R.string})};static defaultProps={onClick:()=>{}};promptRef=L.createRef();parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n}=this.props,r=document.createElement(`div`);r.innerHTML=e;let i=r.querySelector(`audio`);if(i){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,i.getAttribute(`src`)),i.removeAttribute(`src`),i.setAttribute(`id`,`pie-prompt-audio-player`),i.appendChild(e),n){i.style.display=`none`;let e=document.createElement(`div`);e.id=`play-audio-button`,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),i.parentNode.insertBefore(e,i)}}return r.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=document.getElementById(`play-audio-button`),r=document.getElementById(`pie-prompt-audio-player`);if(e&&r&&r.play().then(()=>{n&&t&&r.addEventListener(`ended`,a)}).catch(e=>{n&&t&&(n.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!n||!r||!t)return;let i=()=>{r.paused&&r.play()},a=()=>{n.style.backgroundImage=`url(${t.playImage})`},o=()=>{Object.assign(n.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},s=()=>{Object.assign(n.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};n.addEventListener(`click`,i),r.addEventListener(`play`,o),r.addEventListener(`pause`,s),r.addEventListener(`ended`,a),this._handlePlayClick=i,this._handleAudioPlay=o,this._handleAudioPause=s,this._handleAudioEnded=a}removeCustomAudioButtonListeners(){let e=document.getElementById(`play-audio-button`),t=document.querySelector(`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 zT==`function`&&zT(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`:``} ${DE}`.trim();return(0,z.jsx)(wE,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(TE,EE)}})}},kE=e=>(0,z.jsx)(z.Fragment,{children:L.Children.map(e.children,t=>L.cloneElement(t,{"data-pie-readable":e.false===void 0}))});kE.propTypes={children:R.node,false:R.bool};var AE=e=>(0,z.jsx)(z.Fragment,{children:L.Children.map(e.children,t=>L.cloneElement(t,{"data-pie-purpose":e.purpose}))});AE.propTypes={children:R.node,purpose:R.string};var jE;typeof window<`u`&&(jE=new DOMParser);var ME=e=>jE.parseFromString(e,`text/html`).body.textContent,NE=e=>{if(!e)return!1;let t=ME(e);return!!(t&&t.trim())},PE;typeof window<`u`&&(PE=new DOMParser);var FE=e=>{if(!e)return!1;let t=PE.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},IE=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTcsEjJDY4QmJ1dpKztMQYMzdEVIKyw9PxQ1hmc3SWJzVFRlZXhJOUldJk/8QAGwEBAQADAQEBAAAAAAAAAAAAAAcEBQYCAQP/xABBEQEAAQIDAgkJBgUFAQEBAAAAAQIDBAYRBSESMUFEYXGCscITNDVRcoGRocEUIjJS0eEVI2KSsjNCU6LwFtLx/9oADAMBAAIRAxEAPwD1TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAf/Z`;function LE(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 RE(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:xC(n,r),{props:s,internalRef:c}=wC({...a,externalSlotProps:o}),l=Jo(c,o?.ref,e.additionalProps?.ref);return bC(t,{...s,ref:l},r)}var zE=L.createContext({});function BE(e){return Ir(`MuiList`,e)}Lr(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var VE=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ia({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},BE,t)},HE=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}}]}),UE=L.forwardRef(function(e,t){let n=Ao({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=L.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=VE(d);return(0,z.jsx)(zE.Provider,{value:u,children:(0,z.jsxs)(HE,{as:a,className:Pr(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),WE=YS;function GE(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function KE(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function qE(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 JE(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`)||!qE(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var YE=L.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=L.useRef(null),p=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wo(()=>{r&&f.current.focus()},[r]),L.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${WE(Ho(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=cC(Bo(t));if(n===`ArrowDown`)e.preventDefault(),JE(t,r,c,s,GE);else if(n===`ArrowUp`)e.preventDefault(),JE(t,r,c,s,KE);else if(n===`Home`)e.preventDefault(),JE(t,null,c,s,GE);else if(n===`End`)e.preventDefault(),JE(t,null,c,s,KE);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&&qE(r,i);i.previousKeyMatched&&(c||JE(t,r,!1,s,GE,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=Yo(f,t),g=-1;L.Children.forEach(a,(e,t)=>{if(!L.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 _=L.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),L.cloneElement(e,t)}return e});return(0,z.jsx)(UE,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function XE(e){return Ir(`MuiMenu`,e)}Lr(`MuiMenu`,[`root`,`paper`,`list`]);var ZE={vertical:`top`,horizontal:`right`},QE={vertical:`top`,horizontal:`left`},$E=e=>{let{classes:t}=e;return ia({root:[`root`],paper:[`paper`],list:[`list`]},XE,t)},eD=V(tw,{shouldForwardProp:e=>yo(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),tD=V(ew,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),nD=V(YE,{name:`MuiMenu`,slot:`List`})({outline:0}),rD=L.forwardRef(function(e,t){let n=Ao({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=Ci(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=$E(b),S=r&&!o&&l,C=L.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;L.Children.map(i,(e,t)=>{L.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=RE({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[k,A]=TC(`paper`,{className:x.paper,elementType:tD,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[j,M]=TC(`list`,{className:Pr(x.list,s.className),elementType:nD,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),N=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,z.jsx)(eD,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?ZE:QE,slots:{root:g.root,paper:k,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:A,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...N,onEntering:(...e)=>{w(...e),N?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,z.jsx)(j,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...M,children:i})})}),iD=({slotProps:e,...t})=>(0,z.jsx)(rD,{...t,disableScrollLock:!0,hideBackdrop:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,pointerEvents:`none`,...e?.root?.style}},paper:{...e?.paper,style:{pointerEvents:`auto`,...e?.paper?.style}}}}),aD=s({Collapsible:()=>HT,EnableAudioAutoplayImage:()=>IE,Feedback:()=>fT,HtmlAndMath:()=>tE,InlineMenu:()=>iD,InputContainer:()=>CE,PreviewLayout:()=>eE,PreviewPrompt:()=>OE,Purpose:()=>AE,Readable:()=>kE,UiLayout:()=>QT,color:()=>iw,hasMedia:()=>FE,hasText:()=>NE,indicators:()=>mT,transformDataHeadings:()=>LE,withUndoReset:()=>YT}),oD=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function sD(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function cD(e){return`nodeType`in e}function lD(e){return e?sD(e)?e:cD(e)?e.ownerDocument?.defaultView??window:window:window}function uD(e){let{Document:t}=lD(e);return e instanceof t}function dD(e){return!sD(e)&&e instanceof lD(e).HTMLElement}function fD(e){return e instanceof lD(e).SVGElement}function pD(e){return e?sD(e)?e.document:cD(e)?uD(e)?e:dD(e)||fD(e)?e.ownerDocument:document:document:document}var mD=oD?L.useLayoutEffect:L.useEffect;function hD(e){let t=(0,L.useRef)(e);return mD(()=>{t.current=e}),(0,L.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current==null?void 0:t.current(...n)},[])}function gD(){let e=(0,L.useRef)(null);return[(0,L.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,L.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function _D(e,t){t===void 0&&(t=[e]);let n=(0,L.useRef)(e);return mD(()=>{n.current!==e&&(n.current=e)},t),n}function vD(e,t){let n=(0,L.useRef)();return(0,L.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function yD(e){let t=hD(e),n=(0,L.useRef)(null);return[n,(0,L.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function bD(e){let t=(0,L.useRef)();return(0,L.useEffect)(()=>{t.current=e},[e]),t.current}var xD={};function SD(e,t){return(0,L.useMemo)(()=>{if(t)return t;let n=xD[e]==null?0:xD[e]+1;return xD[e]=n,e+`-`+n},[e,t])}function CD(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var wD=CD(1),TD=CD(-1);function ED(e){return`clientX`in e&&`clientY`in e}function DD(e){if(!e)return!1;let{KeyboardEvent:t}=lD(e.target);return t&&e instanceof t}function OD(e){if(!e)return!1;let{TouchEvent:t}=lD(e.target);return t&&e instanceof t}function kD(e){if(OD(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ED(e)?{x:e.clientX,y:e.clientY}:null}var AD=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function jD(e){return e.matches(AD)?e:e.querySelector(AD)}var MD={display:`none`};function ND(e){let{id:t,value:n}=e;return L.createElement(`div`,{id:t,style:MD},n)}function PD(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return L.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function FD(){let[e,t]=(0,L.useState)(``);return{announce:(0,L.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var ID=(0,L.createContext)(null);function LD(e){let t=(0,L.useContext)(ID);(0,L.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function RD(){let[e]=(0,L.useState)(()=>new Set),t=(0,L.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,L.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var zD={draggable:`
|
|
160
160
|
To pick up a draggable item, press the space bar.
|
|
161
161
|
While dragging, use the arrow keys to move the item.
|
|
162
162
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
163
|
-
`},RD={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function zD(e){let{announcements:t=RD,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=LD}=e,{announce:a,announcement:o}=ND(),s=bD(`DndLiveRegion`),[c,l]=(0,L.useState)(!1);if((0,L.useEffect)(()=>{l(!0)},[]),FD((0,L.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=L.createElement(L.Fragment,null,L.createElement(jD,{id:r,value:i.draggable}),L.createElement(MD,{id:s,announcement:o}));return n?(0,vs.createPortal)(u,n):u}var BD;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(BD||={});function VD(){}var HD=Object.freeze({x:0,y:0});function UD(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function WD(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function GD(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var KD=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=GD(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(UD)};function qD(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function JD(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:HD}function YD(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var XD=YD(1);function ZD(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function QD(e,t,n){let r=ZD(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var $D={ignoreTransform:!1};function eO(e,t){t===void 0&&(t=$D);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=sD(e).getComputedStyle(e);t&&(n=QD(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function tO(e){return eO(e,{ignoreTransform:!0})}function nO(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function rO(e,t){return t===void 0&&(t=sD(e).getComputedStyle(e)),t.position===`fixed`}function iO(e,t){t===void 0&&(t=sD(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function aO(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(cD(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!lD(i)||uD(i)||n.includes(i))return n;let a=sD(e).getComputedStyle(i);return i!==e&&iO(i,a)&&n.push(i),rO(i,a)?n:r(i.parentNode)}return e?r(e):n}function oO(e){let[t]=aO(e,1);return t??null}function sO(e){return!iD||!e?null:aD(e)?e:oD(e)?cD(e)||e===dD(e).scrollingElement?window:lD(e)?e:null:null}function cO(e){return aD(e)?e.scrollX:e.scrollLeft}function lO(e){return aD(e)?e.scrollY:e.scrollTop}function uO(e){return{x:cO(e),y:lO(e)}}var dO;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(dO||={});function fO(e){return!iD||!e?!1:e===document.scrollingElement}function pO(e){let t={x:0,y:0},n=fO(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var mO={x:.2,y:.2};function hO(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=mO);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=pO(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=dO.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=dO.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=dO.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=dO.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function gO(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function _O(e){return e.reduce((e,t)=>SD(e,uO(t)),HD)}function vO(e){return e.reduce((e,t)=>e+cO(t),0)}function yO(e){return e.reduce((e,t)=>e+lO(t),0)}function bO(e,t){if(t===void 0&&(t=eO),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);oO(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var xO=[[`x`,[`left`,`right`],vO],[`y`,[`top`,`bottom`],yO]],SO=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=aO(t),r=_O(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of xO)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},CO=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function wO(e){let{EventTarget:t}=sD(e);return e instanceof t?e:dD(e)}function TO(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var EO;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(EO||={});function DO(e){e.preventDefault()}function OO(e){e.stopPropagation()}var kO;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(kO||={});var AO={start:[kO.Space,kO.Enter],cancel:[kO.Esc],end:[kO.Space,kO.Enter,kO.Tab]},jO=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case kO.Right:return{...n,x:n.x+25};case kO.Left:return{...n,x:n.x-25};case kO.Down:return{...n,y:n.y+25};case kO.Up:return{...n,y:n.y-25}}},MO=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new CO(dD(t)),this.windowListeners=new CO(sD(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(EO.Resize,this.handleCancel),this.windowListeners.add(EO.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(EO.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&bO(n),t(HD)}handleKeyDown(e){if(TD(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=AO,coordinateGetter:a=jO,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:HD;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=CD(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=pO(n),p=gO(n),m={x:Math.min(i===kO.Right?p.right-p.width/2:p.right,Math.max(i===kO.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===kO.Down?p.bottom-p.height/2:p.bottom,Math.max(i===kO.Down?p.top:p.top+p.height/2,u.y))},h=i===kO.Right&&!s||i===kO.Left&&!c,g=i===kO.Down&&!l||i===kO.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===kO.Right&&e<=d.x||i===kO.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===kO.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}else if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===kO.Down&&e<=d.y||i===kO.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===kO.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,SD(CD(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};MO.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=AO,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function NO(e){return!!(e&&`distance`in e)}function PO(e){return!!(e&&`delay`in e)}var FO=class{constructor(e,t,n){n===void 0&&(n=wO(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=dD(i),this.documentListeners=new CO(this.document),this.listeners=new CO(n),this.windowListeners=new CO(sD(i)),this.initialCoordinates=DD(r)??HD,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(EO.Resize,this.handleCancel),this.windowListeners.add(EO.DragStart,DO),this.windowListeners.add(EO.VisibilityChange,this.handleCancel),this.windowListeners.add(EO.ContextMenu,DO),this.documentListeners.add(EO.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(PO(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(NO(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(EO.Click,OO,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(EO.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=DD(e)??HD,s=CD(n,o);if(!t&&a){if(NO(a)){if(a.tolerance!=null&&TO(s,a.tolerance))return this.handleCancel();if(TO(s,a.distance))return this.handleStart()}if(PO(a)&&TO(s,a.tolerance))return this.handleCancel();this.handlePending(a,s);return}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===kO.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},IO={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},LO=class extends FO{constructor(e){let{event:t}=e,n=dD(t.target);super(e,IO,n)}};LO.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var RO={move:{name:`mousemove`},end:{name:`mouseup`}},zO;(function(e){e[e.RightClick=2]=`RightClick`})(zO||={});var BO=class extends FO{constructor(e){super(e,RO,dD(e.event.target))}};BO.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===zO.RightClick?!1:(r?.({event:n}),!0)}}];var VO={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},HO=class extends FO{constructor(e){super(e,VO)}static setup(){return window.addEventListener(VO.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(VO.move.name,e)};function e(){}}};HO.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var UO;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(UO||={});var WO;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(WO||={});function GO(e){let{acceleration:t,activator:n=UO.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=WO.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,p=qO({delta:d,disabled:!a}),[m,h]=mD(),g=(0,L.useRef)({x:0,y:0}),_=(0,L.useRef)({x:0,y:0}),v=(0,L.useMemo)(()=>{switch(n){case UO.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case UO.DraggableRect:return i}},[n,i,c]),y=(0,L.useRef)(null),b=(0,L.useCallback)(()=>{let e=y.current;if(!e)return;let t=g.current.x*_.current.x,n=g.current.y*_.current.y;e.scrollBy(t,n)},[]),x=(0,L.useMemo)(()=>s===WO.TreeOrder?[...l].reverse():l,[s,l]);(0,L.useEffect)(()=>{if(!a||!l.length||!v){h();return}for(let e of x){if(r?.(e)===!1)continue;let n=l.indexOf(e),i=u[n];if(!i)continue;let{direction:a,speed:s}=hO(e,i,v,t,f);for(let e of[`x`,`y`])p[e][a[e]]||(s[e]=0,a[e]=0);if(s.x>0||s.y>0){h(),y.current=e,m(b,o),g.current=s,_.current=a;return}}g.current={x:0,y:0},_.current={x:0,y:0},h()},[t,b,r,h,a,o,JSON.stringify(v),JSON.stringify(p),m,l,x,u,JSON.stringify(f)])}var KO={x:{[dO.Backward]:!1,[dO.Forward]:!1},y:{[dO.Backward]:!1,[dO.Forward]:!1}};function qO(e){let{delta:t,disabled:n}=e,r=vD(t);return gD(e=>{if(n||!r||!e)return KO;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[dO.Backward]:e.x[dO.Backward]||i.x===-1,[dO.Forward]:e.x[dO.Forward]||i.x===1},y:{[dO.Backward]:e.y[dO.Backward]||i.y===-1,[dO.Forward]:e.y[dO.Forward]||i.y===1}}},[n,t,r])}function JO(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return gD(e=>t==null?null:r??e??null,[r,t])}function YO(e,t){return(0,L.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var XO;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(XO||={});var ZO;(function(e){e.Optimized=`optimized`})(ZO||={});var QO=new Map;function $O(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,L.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,L.useRef)(e),d=g(),f=hD(d),p=(0,L.useCallback)(function(e){e===void 0&&(e=[]),!f.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=(0,L.useRef)(null),h=gD(t=>{if(d&&!n)return QO;if(!t||t===QO||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new SO(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,L.useEffect)(()=>{u.current=e},[e]),(0,L.useEffect)(()=>{d||p()},[n,d]),(0,L.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,L.useEffect)(()=>{d||typeof s!=`number`||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,d,p,...r]),{droppableRects:h,measureDroppableContainers:p,measuringScheduled:a!=null};function g(){switch(l){case XO.Always:return!1;case XO.BeforeDragging:return n;default:return!n}}}function ek(e,t){return gD(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function tk(e,t){return ek(e,t)}function nk(e){let{callback:t,disabled:n}=e,r=pD(t),i=(0,L.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,L.useEffect)(()=>()=>i?.disconnect(),[i]),i}function rk(e){let{callback:t,disabled:n}=e,r=pD(t),i=(0,L.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,L.useEffect)(()=>()=>i?.disconnect(),[i]),i}function ik(e){return new SO(eO(e),e)}function ak(e,t,n){t===void 0&&(t=ik);let[r,i]=(0,L.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=nk({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=rk({callback:a});return fD(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function ok(e){return JD(e,ek(e))}var sk=[];function ck(e){let t=(0,L.useRef)(e),n=gD(n=>e?n&&n!==sk&&e&&t.current&&e.parentNode===t.current.parentNode?n:aO(e):sk,[e]);return(0,L.useEffect)(()=>{t.current=e},[e]),n}function lk(e){let[t,n]=(0,L.useState)(null),r=(0,L.useRef)(e),i=(0,L.useCallback)(e=>{let t=sO(e.target);t&&n(e=>e?(e.set(t,uO(t)),new Map(e)):null)},[]);return(0,L.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=sO(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,uO(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{sO(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,L.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>SD(e,t),HD):_O(e):HD,[e,t])}function uk(e,t){t===void 0&&(t=[]);let n=(0,L.useRef)(null);return(0,L.useEffect)(()=>{n.current=null},t),(0,L.useEffect)(()=>{let t=e!==HD;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?CD(e,n.current):HD}function dk(e){(0,L.useEffect)(()=>{if(!iD)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function fk(e,t){return(0,L.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function pk(e){return(0,L.useMemo)(()=>e?nO(e):null,[e])}var mk=[];function hk(e,t){t===void 0&&(t=eO);let[n]=e,r=pk(n?sD(n):null),[i,a]=(0,L.useState)(mk);function o(){a(()=>e.length?e.map(e=>fO(e)?r:new SO(t(e),e)):mk)}let s=rk({callback:o});return fD(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function gk(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return lD(t)?t:e}function _k(e){let{measure:t}=e,[n,r]=(0,L.useState)(null),i=rk({callback:(0,L.useCallback)(e=>{for(let{target:n}of e)if(lD(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=_D((0,L.useCallback)(e=>{let n=gk(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,L.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var vk=[{sensor:LO,options:{}},{sensor:MO,options:{}}],yk={current:{}},bk={draggable:{measure:tO},droppable:{measure:tO,strategy:XO.WhileDragging,frequency:ZO.Optimized},dragOverlay:{measure:eO}},xk=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},Sk={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new xk,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:VD},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:bk,measureDroppableContainers:VD,windowRect:null,measuringScheduled:!1},Ck={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:VD,draggableNodes:new Map,over:null,measureDroppableContainers:VD},wk=(0,L.createContext)(Ck),Tk=(0,L.createContext)(Sk);function Ek(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new xk}}}function Dk(e,t){switch(t.type){case BD.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case BD.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case BD.DragEnd:case BD.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case BD.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new xk(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case BD.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new xk(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case BD.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new xk(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Ok(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,L.useContext)(wk),a=vD(r),o=vD(n?.id);return(0,L.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!TD(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=kD(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function kk(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function Ak(e){return(0,L.useMemo)(()=>({draggable:{...bk.draggable,...e?.draggable},droppable:{...bk.droppable,...e?.droppable},dragOverlay:{...bk.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function jk(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,L.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;fD(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=JD(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=oO(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var Mk=(0,L.createContext)({...HD,scaleX:1,scaleY:1}),Nk;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(Nk||={});var Pk=(0,L.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=vk,collisionDetection:o=KD,measuring:s,modifiers:c,...l}=e,[u,d]=(0,L.useReducer)(Dk,void 0,Ek),[f,p]=ID(),[m,h]=(0,L.useState)(Nk.Uninitialized),g=m===Nk.Initialized,{draggable:{active:_,nodes:v,translate:y},droppable:{containers:b}}=u,x=_==null?null:v.get(_),S=(0,L.useRef)({initial:null,translated:null}),C=(0,L.useMemo)(()=>_==null?null:{id:_,data:x?.data??yk,rect:S},[_,x]),w=(0,L.useRef)(null),[T,E]=(0,L.useState)(null),[D,O]=(0,L.useState)(null),k=hD(l,Object.values(l)),A=bD(`DndDescribedBy`,t),j=(0,L.useMemo)(()=>b.getEnabled(),[b]),M=Ak(s),{droppableRects:N,measureDroppableContainers:P,measuringScheduled:ee}=$O(j,{dragging:g,dependencies:[y.x,y.y],config:M.droppable}),te=JO(v,_),ne=(0,L.useMemo)(()=>D?DD(D):null,[D]),F=Me(),re=tk(te,M.draggable.measure);jk({activeNode:_==null?null:v.get(_),config:F.layoutShiftCompensation,initialRect:re,measure:M.draggable.measure});let I=ak(te,M.draggable.measure,re),ie=ak(te?te.parentElement:null),ae=(0,L.useRef)({activatorEvent:null,active:null,activeNode:te,collisionRect:null,collisions:null,droppableRects:N,draggableNodes:v,draggingNode:null,draggingNodeRect:null,droppableContainers:b,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),oe=b.getNodeFor(ae.current.over?.id),se=_k({measure:M.dragOverlay.measure}),ce=se.nodeRef.current??te,le=g?se.rect??I:null,ue=!!(se.nodeRef.current&&se.rect),de=ok(ue?null:I),fe=pk(ce?sD(ce):null),pe=ck(g?oe??te:null),me=hk(pe),he=kk(c,{transform:{x:y.x-de.x,y:y.y-de.y,scaleX:1,scaleY:1},activatorEvent:D,active:C,activeNodeRect:I,containerNodeRect:ie,draggingNodeRect:le,over:ae.current.over,overlayNodeRect:se.rect,scrollableAncestors:pe,scrollableAncestorRects:me,windowRect:fe}),ge=ne?SD(ne,y):null,_e=lk(pe),ve=uk(_e),ye=uk(_e,[I]),be=SD(he,ve),xe=le?XD(le,he):null,Se=C&&xe?o({active:C,collisionRect:xe,droppableRects:N,droppableContainers:j,pointerCoordinates:ge}):null,Ce=WD(Se,`id`),[we,Te]=(0,L.useState)(null),Ee=qD(ue?he:SD(he,ye),we?.rect??null,I),De=(0,L.useRef)(null),Oe=(0,L.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(w.current==null)return;let i=v.get(w.current);if(!i)return;let a=e.nativeEvent,o=new n({active:w.current,activeNode:i,event:a,options:r,context:ae,onAbort(e){if(!v.get(e))return;let{onDragAbort:t}=k.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!v.get(e))return;let{onDragPending:i}=k.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=w.current;if(t==null)return;let n=v.get(t);if(!n)return;let{onDragStart:r}=k.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:S}};(0,vs.unstable_batchedUpdates)(()=>{r?.(i),h(Nk.Initializing),d({type:BD.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),E(De.current),O(a)})},onMove(e){d({type:BD.DragMove,coordinates:e})},onEnd:s(BD.DragEnd),onCancel:s(BD.DragCancel)});De.current=o;function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ae.current,o=null;if(t&&i){let{cancelDrop:s}=k.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===BD.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=BD.DragCancel)}w.current=null,(0,vs.unstable_batchedUpdates)(()=>{d({type:e}),h(Nk.Uninitialized),Te(null),E(null),O(null),De.current=null;let t=e===BD.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=k.current[t];e?.(o),f({type:t,event:o})}})}}},[v]),ke=YO(a,(0,L.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=v.get(r);if(w.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},w.current=r,Oe(n,t))},[v,Oe]));dk(a),fD(()=>{I&&m===Nk.Initializing&&h(Nk.Initialized)},[I,m]),(0,L.useEffect)(()=>{let{onDragMove:e}=k.current,{active:t,activatorEvent:n,collisions:r,over:i}=ae.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:be.x,y:be.y},over:i};(0,vs.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[be.x,be.y]),(0,L.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ae.current;if(!e||w.current==null||!t||!i)return;let{onDragOver:a}=k.current,o=r.get(Ce),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,vs.unstable_batchedUpdates)(()=>{Te(s),a?.(c),f({type:`onDragOver`,event:c})})},[Ce]),fD(()=>{ae.current={activatorEvent:D,active:C,activeNode:te,collisionRect:xe,collisions:Se,droppableRects:N,draggableNodes:v,draggingNode:ce,draggingNodeRect:le,droppableContainers:b,over:we,scrollableAncestors:pe,scrollAdjustedTranslate:be},S.current={initial:le,translated:xe}},[C,te,Se,xe,v,ce,le,N,b,we,pe,be]),GO({...F,delta:y,draggingRect:xe,pointerCoordinates:ge,scrollableAncestors:pe,scrollableAncestorRects:me});let Ae=(0,L.useMemo)(()=>({active:C,activeNode:te,activeNodeRect:I,activatorEvent:D,collisions:Se,containerNodeRect:ie,dragOverlay:se,draggableNodes:v,droppableContainers:b,droppableRects:N,over:we,measureDroppableContainers:P,scrollableAncestors:pe,scrollableAncestorRects:me,measuringConfiguration:M,measuringScheduled:ee,windowRect:fe}),[C,te,I,D,Se,ie,se,v,b,N,we,P,pe,me,M,ee,fe]),je=(0,L.useMemo)(()=>({activatorEvent:D,activators:ke,active:C,activeNodeRect:I,ariaDescribedById:{draggable:A},dispatch:d,draggableNodes:v,over:we,measureDroppableContainers:P}),[D,ke,C,I,d,A,v,we,P]);return L.createElement(PD.Provider,{value:p},L.createElement(wk.Provider,{value:je},L.createElement(Tk.Provider,{value:Ae},L.createElement(Mk.Provider,{value:Ee},i)),L.createElement(Ok,{disabled:n?.restoreFocus===!1})),L.createElement(zD,{...n,hiddenTextDescribedById:A}));function Me(){let e=T?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=g&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),Fk=(0,L.createContext)(null),Ik=`button`,Lk=`Draggable`;function Rk(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=bD(Lk),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,L.useContext)(wk),{role:p=Ik,roleDescription:m=`draggable`,tabIndex:h=0}=i??{},g=c?.id===t,_=(0,L.useContext)(g?Mk:Fk),[v,y]=_D(),[b,x]=_D(),S=fk(o,t),C=hD(n);return fD(()=>(d.set(t,{id:t,key:a,node:v,activatorNode:b,data:C}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,L.useMemo)(()=>({role:p,tabIndex:h,"aria-disabled":r,"aria-pressed":g&&p===Ik?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,h,g,m,u.draggable]),isDragging:g,listeners:r?void 0:S,node:v,over:f,setNodeRef:y,setActivatorNodeRef:x,transform:_}}function zk({id:e,disabled:t,grid:n,bounds:r,onMouseDown:i,onDragStart:a,onDragMove:o,onDragEnd:s,children:c}){let{attributes:l,listeners:u,setNodeRef:d,transform:f}=Rk({id:e,disabled:t}),p=n&&n[0]?n[0]:null,m=f?.x??0;p&&(m=Math.round(m/p)*p),r&&(typeof r.left==`number`&&(m=Math.max(r.left,m)),typeof r.right==`number`&&(m=Math.min(r.right,m)));let h=m,g=!!f,_=e=>{let t=e;return p&&(t=Math.round(t/p)*p),r&&(typeof r.left==`number`&&(t=Math.max(r.left,t)),typeof r.right==`number`&&(t=Math.min(r.right,t))),t};return FD({onDragStart(n){n.active.id!==e||t||a?.()},onDragMove(n){if(n.active.id!==e||t)return;let r=n.delta.x||0;o?.(_(r))},onDragEnd(n){if(n.active.id!==e||t)return;let r=n.delta.x||0;s?.(_(r))}}),c({setNodeRef:d,attributes:l,listeners:u,translateX:h,isDragging:g,onMouseDown:e=>{e.nativeEvent.preventDefault(),i?.(e)}})}var Bk=`150ms`,Vk=V(`circle`)(({$selected:e,$disabled:t,$correct:n,$empty:r})=>({cursor:`pointer`,transition:`r ${Bk} linear,
|
|
164
|
-
opacity ${
|
|
165
|
-
fill ${
|
|
166
|
-
stroke ${
|
|
167
|
-
stroke-width ${
|
|
168
|
-
stroke ${
|
|
169
|
-
`,space:` `}}function
|
|
170
|
-
`);return t}return this.key+` `+this.value+`;`},e}(),
|
|
171
|
-
`,e},
|
|
163
|
+
`},BD={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function VD(e){let{announcements:t=BD,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=zD}=e,{announce:a,announcement:o}=FD(),s=SD(`DndLiveRegion`),[c,l]=(0,L.useState)(!1);if((0,L.useEffect)(()=>{l(!0)},[]),LD((0,L.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=L.createElement(L.Fragment,null,L.createElement(ND,{id:r,value:i.draggable}),L.createElement(PD,{id:s,announcement:o}));return n?(0,vs.createPortal)(u,n):u}var HD;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(HD||={});function UD(){}var WD=Object.freeze({x:0,y:0});function GD(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function KD(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function qD(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var JD=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=qD(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(GD)};function YD(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function XD(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:WD}function ZD(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var QD=ZD(1);function $D(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function eO(e,t,n){let r=$D(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var tO={ignoreTransform:!1};function nO(e,t){t===void 0&&(t=tO);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=lD(e).getComputedStyle(e);t&&(n=eO(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function rO(e){return nO(e,{ignoreTransform:!0})}function iO(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function aO(e,t){return t===void 0&&(t=lD(e).getComputedStyle(e)),t.position===`fixed`}function oO(e,t){t===void 0&&(t=lD(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function sO(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(uD(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!dD(i)||fD(i)||n.includes(i))return n;let a=lD(e).getComputedStyle(i);return i!==e&&oO(i,a)&&n.push(i),aO(i,a)?n:r(i.parentNode)}return e?r(e):n}function cO(e){let[t]=sO(e,1);return t??null}function lO(e){return!oD||!e?null:sD(e)?e:cD(e)?uD(e)||e===pD(e).scrollingElement?window:dD(e)?e:null:null}function uO(e){return sD(e)?e.scrollX:e.scrollLeft}function dO(e){return sD(e)?e.scrollY:e.scrollTop}function fO(e){return{x:uO(e),y:dO(e)}}var pO;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(pO||={});function mO(e){return!oD||!e?!1:e===document.scrollingElement}function hO(e){let t={x:0,y:0},n=mO(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var gO={x:.2,y:.2};function _O(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=gO);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=hO(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=pO.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=pO.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=pO.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=pO.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function vO(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function yO(e){return e.reduce((e,t)=>wD(e,fO(t)),WD)}function bO(e){return e.reduce((e,t)=>e+uO(t),0)}function xO(e){return e.reduce((e,t)=>e+dO(t),0)}function SO(e,t){if(t===void 0&&(t=nO),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);cO(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var CO=[[`x`,[`left`,`right`],bO],[`y`,[`top`,`bottom`],xO]],wO=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=sO(t),r=yO(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of CO)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},TO=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function EO(e){let{EventTarget:t}=lD(e);return e instanceof t?e:pD(e)}function DO(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var OO;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(OO||={});function kO(e){e.preventDefault()}function AO(e){e.stopPropagation()}var jO;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(jO||={});var MO={start:[jO.Space,jO.Enter],cancel:[jO.Esc],end:[jO.Space,jO.Enter,jO.Tab]},NO=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case jO.Right:return{...n,x:n.x+25};case jO.Left:return{...n,x:n.x-25};case jO.Down:return{...n,y:n.y+25};case jO.Up:return{...n,y:n.y-25}}},PO=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new TO(pD(t)),this.windowListeners=new TO(lD(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(OO.Resize,this.handleCancel),this.windowListeners.add(OO.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(OO.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&SO(n),t(WD)}handleKeyDown(e){if(DD(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=MO,coordinateGetter:a=NO,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:WD;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=TD(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=hO(n),p=vO(n),m={x:Math.min(i===jO.Right?p.right-p.width/2:p.right,Math.max(i===jO.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===jO.Down?p.bottom-p.height/2:p.bottom,Math.max(i===jO.Down?p.top:p.top+p.height/2,u.y))},h=i===jO.Right&&!s||i===jO.Left&&!c,g=i===jO.Down&&!l||i===jO.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===jO.Right&&e<=d.x||i===jO.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===jO.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}else if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===jO.Down&&e<=d.y||i===jO.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===jO.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,wD(TD(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};PO.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=MO,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function FO(e){return!!(e&&`distance`in e)}function IO(e){return!!(e&&`delay`in e)}var LO=class{constructor(e,t,n){n===void 0&&(n=EO(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=pD(i),this.documentListeners=new TO(this.document),this.listeners=new TO(n),this.windowListeners=new TO(lD(i)),this.initialCoordinates=kD(r)??WD,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(OO.Resize,this.handleCancel),this.windowListeners.add(OO.DragStart,kO),this.windowListeners.add(OO.VisibilityChange,this.handleCancel),this.windowListeners.add(OO.ContextMenu,kO),this.documentListeners.add(OO.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(IO(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(FO(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(OO.Click,AO,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(OO.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=kD(e)??WD,s=TD(n,o);if(!t&&a){if(FO(a)){if(a.tolerance!=null&&DO(s,a.tolerance))return this.handleCancel();if(DO(s,a.distance))return this.handleStart()}if(IO(a)&&DO(s,a.tolerance))return this.handleCancel();this.handlePending(a,s);return}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===jO.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},RO={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},zO=class extends LO{constructor(e){let{event:t}=e,n=pD(t.target);super(e,RO,n)}};zO.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var BO={move:{name:`mousemove`},end:{name:`mouseup`}},VO;(function(e){e[e.RightClick=2]=`RightClick`})(VO||={});var HO=class extends LO{constructor(e){super(e,BO,pD(e.event.target))}};HO.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===VO.RightClick?!1:(r?.({event:n}),!0)}}];var UO={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},WO=class extends LO{constructor(e){super(e,UO)}static setup(){return window.addEventListener(UO.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(UO.move.name,e)};function e(){}}};WO.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var GO;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(GO||={});var KO;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(KO||={});function qO(e){let{acceleration:t,activator:n=GO.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=KO.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,p=YO({delta:d,disabled:!a}),[m,h]=gD(),g=(0,L.useRef)({x:0,y:0}),_=(0,L.useRef)({x:0,y:0}),v=(0,L.useMemo)(()=>{switch(n){case GO.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case GO.DraggableRect:return i}},[n,i,c]),y=(0,L.useRef)(null),b=(0,L.useCallback)(()=>{let e=y.current;if(!e)return;let t=g.current.x*_.current.x,n=g.current.y*_.current.y;e.scrollBy(t,n)},[]),x=(0,L.useMemo)(()=>s===KO.TreeOrder?[...l].reverse():l,[s,l]);(0,L.useEffect)(()=>{if(!a||!l.length||!v){h();return}for(let e of x){if(r?.(e)===!1)continue;let n=l.indexOf(e),i=u[n];if(!i)continue;let{direction:a,speed:s}=_O(e,i,v,t,f);for(let e of[`x`,`y`])p[e][a[e]]||(s[e]=0,a[e]=0);if(s.x>0||s.y>0){h(),y.current=e,m(b,o),g.current=s,_.current=a;return}}g.current={x:0,y:0},_.current={x:0,y:0},h()},[t,b,r,h,a,o,JSON.stringify(v),JSON.stringify(p),m,l,x,u,JSON.stringify(f)])}var JO={x:{[pO.Backward]:!1,[pO.Forward]:!1},y:{[pO.Backward]:!1,[pO.Forward]:!1}};function YO(e){let{delta:t,disabled:n}=e,r=bD(t);return vD(e=>{if(n||!r||!e)return JO;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[pO.Backward]:e.x[pO.Backward]||i.x===-1,[pO.Forward]:e.x[pO.Forward]||i.x===1},y:{[pO.Backward]:e.y[pO.Backward]||i.y===-1,[pO.Forward]:e.y[pO.Forward]||i.y===1}}},[n,t,r])}function XO(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return vD(e=>t==null?null:r??e??null,[r,t])}function ZO(e,t){return(0,L.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var QO;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(QO||={});var $O;(function(e){e.Optimized=`optimized`})($O||={});var ek=new Map;function tk(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,L.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,L.useRef)(e),d=g(),f=_D(d),p=(0,L.useCallback)(function(e){e===void 0&&(e=[]),!f.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=(0,L.useRef)(null),h=vD(t=>{if(d&&!n)return ek;if(!t||t===ek||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new wO(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,L.useEffect)(()=>{u.current=e},[e]),(0,L.useEffect)(()=>{d||p()},[n,d]),(0,L.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,L.useEffect)(()=>{d||typeof s!=`number`||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,d,p,...r]),{droppableRects:h,measureDroppableContainers:p,measuringScheduled:a!=null};function g(){switch(l){case QO.Always:return!1;case QO.BeforeDragging:return n;default:return!n}}}function nk(e,t){return vD(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function rk(e,t){return nk(e,t)}function ik(e){let{callback:t,disabled:n}=e,r=hD(t),i=(0,L.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,L.useEffect)(()=>()=>i?.disconnect(),[i]),i}function ak(e){let{callback:t,disabled:n}=e,r=hD(t),i=(0,L.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,L.useEffect)(()=>()=>i?.disconnect(),[i]),i}function ok(e){return new wO(nO(e),e)}function sk(e,t,n){t===void 0&&(t=ok);let[r,i]=(0,L.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=ik({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=ak({callback:a});return mD(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function ck(e){return XD(e,nk(e))}var lk=[];function uk(e){let t=(0,L.useRef)(e),n=vD(n=>e?n&&n!==lk&&e&&t.current&&e.parentNode===t.current.parentNode?n:sO(e):lk,[e]);return(0,L.useEffect)(()=>{t.current=e},[e]),n}function dk(e){let[t,n]=(0,L.useState)(null),r=(0,L.useRef)(e),i=(0,L.useCallback)(e=>{let t=lO(e.target);t&&n(e=>e?(e.set(t,fO(t)),new Map(e)):null)},[]);return(0,L.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=lO(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,fO(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{lO(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,L.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>wD(e,t),WD):yO(e):WD,[e,t])}function fk(e,t){t===void 0&&(t=[]);let n=(0,L.useRef)(null);return(0,L.useEffect)(()=>{n.current=null},t),(0,L.useEffect)(()=>{let t=e!==WD;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?TD(e,n.current):WD}function pk(e){(0,L.useEffect)(()=>{if(!oD)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function mk(e,t){return(0,L.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function hk(e){return(0,L.useMemo)(()=>e?iO(e):null,[e])}var gk=[];function _k(e,t){t===void 0&&(t=nO);let[n]=e,r=hk(n?lD(n):null),[i,a]=(0,L.useState)(gk);function o(){a(()=>e.length?e.map(e=>mO(e)?r:new wO(t(e),e)):gk)}let s=ak({callback:o});return mD(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function vk(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return dD(t)?t:e}function yk(e){let{measure:t}=e,[n,r]=(0,L.useState)(null),i=ak({callback:(0,L.useCallback)(e=>{for(let{target:n}of e)if(dD(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=yD((0,L.useCallback)(e=>{let n=vk(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,L.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var bk=[{sensor:zO,options:{}},{sensor:PO,options:{}}],xk={current:{}},Sk={draggable:{measure:rO},droppable:{measure:rO,strategy:QO.WhileDragging,frequency:$O.Optimized},dragOverlay:{measure:nO}},Ck=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},wk={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ck,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:UD},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Sk,measureDroppableContainers:UD,windowRect:null,measuringScheduled:!1},Tk={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:UD,draggableNodes:new Map,over:null,measureDroppableContainers:UD},Ek=(0,L.createContext)(Tk),Dk=(0,L.createContext)(wk);function Ok(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ck}}}function kk(e,t){switch(t.type){case HD.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case HD.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case HD.DragEnd:case HD.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case HD.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new Ck(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case HD.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new Ck(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case HD.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new Ck(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Ak(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,L.useContext)(Ek),a=bD(r),o=bD(n?.id);return(0,L.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!DD(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=jD(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function jk(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function Mk(e){return(0,L.useMemo)(()=>({draggable:{...Sk.draggable,...e?.draggable},droppable:{...Sk.droppable,...e?.droppable},dragOverlay:{...Sk.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Nk(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,L.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;mD(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=XD(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=cO(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var Pk=(0,L.createContext)({...WD,scaleX:1,scaleY:1}),Fk;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(Fk||={});var Ik=(0,L.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=bk,collisionDetection:o=JD,measuring:s,modifiers:c,...l}=e,[u,d]=(0,L.useReducer)(kk,void 0,Ok),[f,p]=RD(),[m,h]=(0,L.useState)(Fk.Uninitialized),g=m===Fk.Initialized,{draggable:{active:_,nodes:v,translate:y},droppable:{containers:b}}=u,x=_==null?null:v.get(_),S=(0,L.useRef)({initial:null,translated:null}),C=(0,L.useMemo)(()=>_==null?null:{id:_,data:x?.data??xk,rect:S},[_,x]),w=(0,L.useRef)(null),[T,E]=(0,L.useState)(null),[D,O]=(0,L.useState)(null),k=_D(l,Object.values(l)),A=SD(`DndDescribedBy`,t),j=(0,L.useMemo)(()=>b.getEnabled(),[b]),M=Mk(s),{droppableRects:N,measureDroppableContainers:P,measuringScheduled:ee}=tk(j,{dragging:g,dependencies:[y.x,y.y],config:M.droppable}),te=XO(v,_),ne=(0,L.useMemo)(()=>D?kD(D):null,[D]),F=Me(),re=rk(te,M.draggable.measure);Nk({activeNode:_==null?null:v.get(_),config:F.layoutShiftCompensation,initialRect:re,measure:M.draggable.measure});let I=sk(te,M.draggable.measure,re),ie=sk(te?te.parentElement:null),ae=(0,L.useRef)({activatorEvent:null,active:null,activeNode:te,collisionRect:null,collisions:null,droppableRects:N,draggableNodes:v,draggingNode:null,draggingNodeRect:null,droppableContainers:b,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),oe=b.getNodeFor(ae.current.over?.id),se=yk({measure:M.dragOverlay.measure}),ce=se.nodeRef.current??te,le=g?se.rect??I:null,ue=!!(se.nodeRef.current&&se.rect),de=ck(ue?null:I),fe=hk(ce?lD(ce):null),pe=uk(g?oe??te:null),me=_k(pe),he=jk(c,{transform:{x:y.x-de.x,y:y.y-de.y,scaleX:1,scaleY:1},activatorEvent:D,active:C,activeNodeRect:I,containerNodeRect:ie,draggingNodeRect:le,over:ae.current.over,overlayNodeRect:se.rect,scrollableAncestors:pe,scrollableAncestorRects:me,windowRect:fe}),ge=ne?wD(ne,y):null,_e=dk(pe),ve=fk(_e),ye=fk(_e,[I]),be=wD(he,ve),xe=le?QD(le,he):null,Se=C&&xe?o({active:C,collisionRect:xe,droppableRects:N,droppableContainers:j,pointerCoordinates:ge}):null,Ce=KD(Se,`id`),[we,Te]=(0,L.useState)(null),Ee=YD(ue?he:wD(he,ye),we?.rect??null,I),De=(0,L.useRef)(null),Oe=(0,L.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(w.current==null)return;let i=v.get(w.current);if(!i)return;let a=e.nativeEvent,o=new n({active:w.current,activeNode:i,event:a,options:r,context:ae,onAbort(e){if(!v.get(e))return;let{onDragAbort:t}=k.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!v.get(e))return;let{onDragPending:i}=k.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=w.current;if(t==null)return;let n=v.get(t);if(!n)return;let{onDragStart:r}=k.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:S}};(0,vs.unstable_batchedUpdates)(()=>{r?.(i),h(Fk.Initializing),d({type:HD.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),E(De.current),O(a)})},onMove(e){d({type:HD.DragMove,coordinates:e})},onEnd:s(HD.DragEnd),onCancel:s(HD.DragCancel)});De.current=o;function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ae.current,o=null;if(t&&i){let{cancelDrop:s}=k.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===HD.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=HD.DragCancel)}w.current=null,(0,vs.unstable_batchedUpdates)(()=>{d({type:e}),h(Fk.Uninitialized),Te(null),E(null),O(null),De.current=null;let t=e===HD.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=k.current[t];e?.(o),f({type:t,event:o})}})}}},[v]),ke=ZO(a,(0,L.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=v.get(r);if(w.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},w.current=r,Oe(n,t))},[v,Oe]));pk(a),mD(()=>{I&&m===Fk.Initializing&&h(Fk.Initialized)},[I,m]),(0,L.useEffect)(()=>{let{onDragMove:e}=k.current,{active:t,activatorEvent:n,collisions:r,over:i}=ae.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:be.x,y:be.y},over:i};(0,vs.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[be.x,be.y]),(0,L.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ae.current;if(!e||w.current==null||!t||!i)return;let{onDragOver:a}=k.current,o=r.get(Ce),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,vs.unstable_batchedUpdates)(()=>{Te(s),a?.(c),f({type:`onDragOver`,event:c})})},[Ce]),mD(()=>{ae.current={activatorEvent:D,active:C,activeNode:te,collisionRect:xe,collisions:Se,droppableRects:N,draggableNodes:v,draggingNode:ce,draggingNodeRect:le,droppableContainers:b,over:we,scrollableAncestors:pe,scrollAdjustedTranslate:be},S.current={initial:le,translated:xe}},[C,te,Se,xe,v,ce,le,N,b,we,pe,be]),qO({...F,delta:y,draggingRect:xe,pointerCoordinates:ge,scrollableAncestors:pe,scrollableAncestorRects:me});let Ae=(0,L.useMemo)(()=>({active:C,activeNode:te,activeNodeRect:I,activatorEvent:D,collisions:Se,containerNodeRect:ie,dragOverlay:se,draggableNodes:v,droppableContainers:b,droppableRects:N,over:we,measureDroppableContainers:P,scrollableAncestors:pe,scrollableAncestorRects:me,measuringConfiguration:M,measuringScheduled:ee,windowRect:fe}),[C,te,I,D,Se,ie,se,v,b,N,we,P,pe,me,M,ee,fe]),je=(0,L.useMemo)(()=>({activatorEvent:D,activators:ke,active:C,activeNodeRect:I,ariaDescribedById:{draggable:A},dispatch:d,draggableNodes:v,over:we,measureDroppableContainers:P}),[D,ke,C,I,d,A,v,we,P]);return L.createElement(ID.Provider,{value:p},L.createElement(Ek.Provider,{value:je},L.createElement(Dk.Provider,{value:Ae},L.createElement(Pk.Provider,{value:Ee},i)),L.createElement(Ak,{disabled:n?.restoreFocus===!1})),L.createElement(VD,{...n,hiddenTextDescribedById:A}));function Me(){let e=T?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=g&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),Lk=(0,L.createContext)(null),Rk=`button`,zk=`Draggable`;function Bk(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=SD(zk),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,L.useContext)(Ek),{role:p=Rk,roleDescription:m=`draggable`,tabIndex:h=0}=i??{},g=c?.id===t,_=(0,L.useContext)(g?Pk:Lk),[v,y]=yD(),[b,x]=yD(),S=mk(o,t),C=_D(n);return mD(()=>(d.set(t,{id:t,key:a,node:v,activatorNode:b,data:C}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,L.useMemo)(()=>({role:p,tabIndex:h,"aria-disabled":r,"aria-pressed":g&&p===Rk?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,h,g,m,u.draggable]),isDragging:g,listeners:r?void 0:S,node:v,over:f,setNodeRef:y,setActivatorNodeRef:x,transform:_}}function Vk({id:e,disabled:t,grid:n,bounds:r,onMouseDown:i,onDragStart:a,onDragMove:o,onDragEnd:s,children:c}){let{attributes:l,listeners:u,setNodeRef:d,transform:f}=Bk({id:e,disabled:t}),p=n&&n[0]?n[0]:null,m=f?.x??0;p&&(m=Math.round(m/p)*p),r&&(typeof r.left==`number`&&(m=Math.max(r.left,m)),typeof r.right==`number`&&(m=Math.min(r.right,m)));let h=m,g=!!f,_=e=>{let t=e;return p&&(t=Math.round(t/p)*p),r&&(typeof r.left==`number`&&(t=Math.max(r.left,t)),typeof r.right==`number`&&(t=Math.min(r.right,t))),t};return LD({onDragStart(n){n.active.id!==e||t||a?.()},onDragMove(n){if(n.active.id!==e||t)return;let r=n.delta.x||0;o?.(_(r))},onDragEnd(n){if(n.active.id!==e||t)return;let r=n.delta.x||0;s?.(_(r))}}),c({setNodeRef:d,attributes:l,listeners:u,translateX:h,isDragging:g,onMouseDown:e=>{e.nativeEvent.preventDefault(),i?.(e)}})}var Hk=`150ms`,Uk=V(`circle`)(({$selected:e,$disabled:t,$correct:n,$empty:r})=>({cursor:`pointer`,transition:`r ${Hk} linear,
|
|
164
|
+
opacity ${Hk} linear,
|
|
165
|
+
fill ${Hk} linear,
|
|
166
|
+
stroke ${Hk} linear`,stroke:yw(),fill:yw(),"&.dnd-kit-dragging":{opacity:.25,r:`10px`},"&:hover":{stroke:xw()},...e&&{stroke:xw()},...t&&{cursor:`not-allowed`,opacity:.8},...n===!0&&{cursor:`inherit`,stroke:uw(),fill:uw()},...n===!1&&{cursor:`inherit`,stroke:mw(),fill:mw()},...r&&{fill:`white`}})),Wk=class extends L.Component{static defaultProps={y:0,selected:!1,empty:!1,disabled:!1,correct:void 0};static propTypes={interval:R.number.isRequired,position:R.number.isRequired,bounds:R.shape({left:R.number.isRequired,right:R.number.isRequired}),selected:R.bool,disabled:R.bool,correct:R.bool,empty:R.bool,y:R.number,onMove:R.func.isRequired,onClick:R.func,onDrag:R.func,onDragStop:R.func,onDragStart:R.func};static contextTypes={xScale:R.func.isRequired,snapValue:R.func.isRequired};render(){let{onDragStop:e,onDragStart:t,onDrag:n,onClick:r,onMove:i,interval:a,y:o,bounds:s,selected:c,position:l,disabled:u,correct:d,empty:f}=this.props,{snapValue:p,xScale:m}=this.context,h=m(a)-m(0),g=e=>{let t=e+m(0),n=m.invert(t);return p(l+n)},_=s?{left:s.left/a*h,right:s.right/a*h}:null;return(0,z.jsx)(Vk,{id:`point-${l}-${o}`,disabled:u,grid:[h],bounds:_,onMouseDown:e=>e.nativeEvent.preventDefault(),onDragStart:()=>{t&&t()},onDragMove:e=>{let t=g(e);n&&n(t)},onDragEnd:t=>{if(e&&e(),Math.abs(t)<h/10){r&&r();return}let n=g(t);i(n)},children:({setNodeRef:e,attributes:t,listeners:n,translateX:r,isDragging:i,onMouseDown:a})=>(0,z.jsxs)(`g`,{ref:e,onMouseDown:a,transform:`translate(${r}, 0)`,...t,...n,children:[(0,z.jsx)(`circle`,{r:`20`,strokeWidth:`3`,style:{fill:`transparent`,pointerEvents:`visibleStroke`},cx:m(l),cy:o,stroke:c?xw():`none`}),(0,z.jsx)(Uk,{r:`5`,strokeWidth:`3`,cx:m(l),cy:o,$selected:c,$disabled:u,$correct:d,$empty:f,className:i?`dnd-kit-dragging`:void 0})]})})}},Gk=()=>({interval:R.number.isRequired,domain:R.shape({min:R.number.isRequired,max:R.number.isRequired})}),Kk=`150ms`,qk=V(`g`)(({$disabled:e,$selected:t,$correct:n})=>({"& .line-handle":{stroke:yw(),cursor:`pointer`,strokeWidth:`5px`,transition:`opacity ${Kk} linear,
|
|
167
|
+
stroke-width ${Kk} linear,
|
|
168
|
+
stroke ${Kk} linear`},"&.dnd-kit-dragging":{opacity:.6,"& .line-handle":{opacity:1,strokeWidth:`12px`}},...e&&{cursor:`not-allowed`,opacity:.8},...t&&{"& .line-handle":{stroke:xw()}},...n===!0&&{"& .line-handle":{cursor:`inherit`,stroke:uw()}},...n===!1&&{"& .line-handle":{cursor:`inherit`,stroke:mw()}}})),Jk=class extends L.Component{static propTypes={...Gk(),empty:R.shape({left:R.bool.isRequired,right:R.bool.isRequired}).isRequired,position:R.shape({left:R.number.isRequired,right:R.number.isRequired}).isRequired,y:R.number,selected:R.bool,disabled:R.bool,correct:R.bool,onMoveLine:R.func.isRequired,onToggleSelect:R.func.isRequired,onDragStart:R.func,onDragStop:R.func};static defaultProps={selected:!1,y:0,disabled:!1,correct:void 0};static contextTypes={xScale:R.func.isRequired,snapValue:R.func.isRequired};constructor(e){super(e),this.state={left:null,right:null}}UNSAFE_componentWillReceiveProps(e){if(e){let{position:t}=e;this.setState({left:t.left,right:t.right})}}onDrag(e,t){let{domain:n}=this.props;if(t>=n.min&&t<=n.max){let n={};n[e]=t,this.setState(n)}}onMove(e,t){let{position:n}=this.props,r={left:n.left,right:n.right};r[e]=t,this.props.onMoveLine(r)}render(){let{interval:e,empty:t,position:n,domain:r,y:i,selected:a,disabled:o,correct:s}=this.props,{xScale:c}=this.context,{onDrag:l,onMove:u}=this,d=u.bind(this,`left`),f=u.bind(this,`right`),p=l.bind(this,`left`),m=l.bind(this,`right`),h=z_(this.state.left)?this.state.left:n.left,g=z_(this.state.right)?this.state.right:n.right,_=c(e)-c(0),v=e=>e.nativeEvent.preventDefault(),y=()=>{this.props.onToggleSelect()},b=()=>{this.props.onToggleSelect()},x=e=>{if(Math.abs(e)<_/10){this.props.onToggleSelect();return}let t=c.invert(e+c(0)),r={left:n.left+t,right:n.right+t};R_(r,this.props.position)||this.props.onMoveLine(r)},S={left:(r.min-n.left)/e*_,right:(r.max-n.right)/e*_},C={interval:e,selected:a,disabled:o,correct:s};return(0,z.jsx)(Vk,{id:`line-${n.left}-${n.right}-${i}`,disabled:o,grid:[_],bounds:S,onMouseDown:v,onDragEnd:x,children:({setNodeRef:e,attributes:l,listeners:u,translateX:_,isDragging:v,onMouseDown:x})=>(0,z.jsx)(qk,{ref:e,$disabled:o,$selected:a,$correct:s,className:v?`dnd-kit-dragging`:void 0,onMouseDown:x,...l,children:(0,z.jsxs)(`g`,{transform:`translate(${_}, ${i})`,children:[(0,z.jsx)(`rect`,{x:c(h),width:Math.abs(c(g)-c(h)),fill:`red`,fillOpacity:`0.0`,y:`-8`,height:16,onClick:b}),(0,z.jsx)(`line`,{className:`line-handle`,x1:c(h),x2:c(g),onClick:y,...u}),(0,z.jsx)(Wk,{...C,empty:t.left,bounds:{left:r.min-n.left,right:r.max-n.left},position:n.left,onDrag:p,onMove:d,onClick:b}),(0,z.jsx)(Wk,{...C,empty:t.right,bounds:{left:r.min-n.right,right:r.max-n.right},position:n.right,onDrag:m,onMove:f,onClick:b})]})})})}},Yk=xw(),Xk=uw(),Zk=mw(),Qk=V(`path`)({fill:yw()});function $k({x:e,y:t,direction:n,className:r}){let i=`translate(${e||0},${t})`;return n&&n===`right`&&(i+=` rotate(180)`),(0,z.jsx)(Qk,{d:`m 0,0 8,-5 0,10 -8,-5`,transform:i,className:r})}$k.propTypes={y:R.number,x:R.number,direction:R.oneOf([`left`,`right`]),className:R.string},$k.defaultProps={y:0,x:0,direction:`left`};var eA=V(`g`)(({$selected:e,$correct:t})=>({"& line":{cursor:`pointer`,strokeWidth:`5px`,stroke:yw()},"& line, & .arrow":{transition:`stroke 150ms linear, fill 150ms linear`},...e&&{"& line":{stroke:Yk},"& .arrow":{fill:Yk,strokeWidth:`1px`,stroke:Yk}},...t===!0&&{"& line":{stroke:Xk},"& .arrow":{fill:Xk,strokeWidth:`1px`,stroke:Xk}},...t===!1&&{"& line":{stroke:Zk},"& .arrow":{fill:Zk,strokeWidth:`1px`,stroke:Zk}}})),tA=V($k)(({$correct:e,$selected:t})=>({fill:yw(),...e===!0&&{fill:Xk,"--arrow-color":Xk},...e===!1&&{fill:Zk,"--arrow-color":Zk},...t&&{fill:Yk,"--arrow-color":Yk}})),nA=class extends L.Component{static propTypes={...Gk(),width:R.number.isRequired,selected:R.bool,disabled:R.bool,empty:R.bool,direction:R.oneOf([`positive`,`negative`]),y:R.number,position:R.number.isRequired,onMove:R.func.isRequired,onToggleSelect:R.func.isRequired};static defaultProps={selected:!1,direction:`positive`,y:0,disabled:!1};static contextTypes={xScale:R.func.isRequired,snapValue:R.func.isRequired};constructor(e){super(e),this.state={dragPosition:null}}drag(e){let{domain:t}=this.props;e>=t.min&&e<=t.max&&this.setState({dragPosition:e})}stopDrag(){this.setState({dragPosition:null})}render(){let{interval:e,empty:t,position:n,direction:r,domain:i,y:a,selected:o,disabled:s,width:c,correct:l}=this.props,{xScale:u}=this.context,d=this.drag.bind(this),f=this.stopDrag.bind(this),p=z_(this.state.dragPosition)?this.state.dragPosition:n,m=r===`positive`,h=m?p:i.min,g=m?i.max:p,_=m?u(h):8,v=m?c-8:u(g),y=m?c:0,b=m?`right`:`left`;return(0,z.jsxs)(eA,{$selected:o,$correct:l,transform:`translate(0, ${a})`,children:[(0,z.jsx)(`line`,{onClick:s?()=>{}:this.props.onToggleSelect,className:`line-handle`,x1:_,x2:v}),(0,z.jsx)(Wk,{disabled:s,correct:l,selected:o,empty:t,interval:e,bounds:{left:i.min-n,right:i.max-n},position:n,onDrag:d,onDragStop:f,onMove:this.props.onMove,onClick:this.props.onToggleSelect}),(0,z.jsx)(tA,{x:y,$correct:l,$selected:o,direction:b})]})}};o((e=>{Object.defineProperty(e,"__esModule",{value:!0})}))();function rA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iA(){return iA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iA.apply(this,arguments)}function aA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function oA(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function sA(e){return function(t){aA(n,t);function n(){for(var n,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i))||this,rA(oA(oA(n)),`cachedTheme`,void 0),rA(oA(oA(n)),`lastOuterTheme`,void 0),rA(oA(oA(n)),`lastTheme`,void 0),rA(oA(oA(n)),`renderProvider`,function(t){var r=n.props.children;return L.createElement(e.Provider,{value:n.getTheme(t)},r)}),n}var r=n.prototype;return r.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,typeof this.lastTheme==`function`){var t=this.props.theme;this.cachedTheme=t(e)}else{var n=this.props.theme;this.cachedTheme=e?iA({},e,n):n}return this.cachedTheme},r.render=function(){return this.props.children?L.createElement(e.Consumer,null,this.renderProvider):null},n}(L.Component)}function cA(e){return function(t){var n=L.forwardRef(function(n,r){return L.createElement(e.Consumer,null,function(e){return L.createElement(t,iA({theme:e,ref:r},n))})});return(0,kt.default)(n,t),n}}function lA(e){return function(){return L.useContext(e)}}function uA(e){return{context:e,withTheme:cA(e),useTheme:lA(e),ThemeProvider:sA(e)}}var dA=(0,L.createContext)(),fA=uA(dA);fA.withTheme,fA.ThemeProvider,fA.useTheme;var pA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mA=(typeof window>`u`?`undefined`:pA(window))===`object`&&(typeof document>`u`?`undefined`:pA(document))===`object`&&document.nodeType===9;function hA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,_g(r.key),r)}}function gA(e,t,n){return t&&hA(e.prototype,t),n&&hA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var _A={}.constructor;function vA(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(vA);if(e.constructor!==_A)return e;var t={};for(var n in e)t[n]=vA(e[n]);return t}function yA(e,t,n){e===void 0&&(e=`unnamed`);var r=n.jss,i=vA(t);return r.plugins.onCreateRule(e,i,n)||(e[0],null)}var bA=function(e,t){for(var n=``,r=0;r<e.length&&e[r]!==`!important`;r++)n&&(n+=t),n+=e[r];return n},xA=function(e){if(!Array.isArray(e))return e;var t=``;if(Array.isArray(e[0]))for(var n=0;n<e.length&&e[n]!==`!important`;n++)t&&(t+=`, `),t+=bA(e[n],` `);else t=bA(e,`, `);return e[e.length-1]===`!important`&&(t+=` !important`),t};function SA(e){return e&&e.format===!1?{linebreak:``,space:``}:{linebreak:`
|
|
169
|
+
`,space:` `}}function CA(e,t){for(var n=``,r=0;r<t;r++)n+=` `;return n+e}function wA(e,t,n){n===void 0&&(n={});var r=``;if(!t)return r;var i=n.indent,a=i===void 0?0:i,o=t.fallbacks;n.format===!1&&(a=-1/0);var s=SA(n),c=s.linebreak,l=s.space;if(e&&a++,o)if(Array.isArray(o))for(var u=0;u<o.length;u++){var d=o[u];for(var f in d){var p=d[f];p!=null&&(r&&(r+=c),r+=CA(f+`:`+l+xA(p)+`;`,a))}}else for(var m in o){var h=o[m];h!=null&&(r&&(r+=c),r+=CA(m+`:`+l+xA(h)+`;`,a))}for(var g in t){var _=t[g];_!=null&&g!==`fallbacks`&&(r&&(r+=c),r+=CA(g+`:`+l+xA(_)+`;`,a))}return!r&&!n.allowEmpty||!e?r:(a--,r&&=``+c+r+c,CA(``+e+l+`{`+r,a)+CA(`}`,a))}var TA=/([[\].#*$><+~=|^:(),"'`\s])/g,EA=typeof CSS<`u`&&CSS.escape,DA=(function(e){return EA?EA(e):e.replace(TA,`\\$1`)}),OA=function(){function e(e,t,n){this.type=`style`,this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}var t=e.prototype;return t.prop=function(e,t,n){if(t===void 0)return this.style[e];var r=n?n.force:!1;if(!r&&this.style[e]===t)return this;var i=t;(!n||n.process!==!1)&&(i=this.options.jss.plugins.onChangeValue(t,e,this));var a=i==null||i===!1,o=e in this.style;if(a&&!o&&!r)return this;var s=a&&o;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var c=this.options.sheet;return c&&c.attached,this},e}(),kA=function(e){os(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this,a=r.selector,o=r.scoped,s=r.sheet,c=r.generateId;return a?i.selectorText=a:o!==!1&&(i.id=c(ks(ks(i)),s),i.selectorText=`.`+DA(i.id)),i}var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];typeof n==`object`?Array.isArray(n)&&(e[t]=xA(n)):e[t]=n}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?y({},e,{allowEmpty:!0}):e;return wA(this.selectorText,this.style,n)},gA(t,[{key:`selector`,set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;!n||!t||t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(OA),AA={onCreateRule:function(e,t,n){return e[0]===`@`||n.parent&&n.parent.type===`keyframes`?null:new kA(e,t,n)}},jA={indent:1,children:!0},MA=/@([\w-]+)/,NA=function(){function e(e,t,n){this.type=`conditional`,this.isProcessed=!1,this.key=e;var r=e.match(MA);for(var i in this.at=r?r[1]:`unknown`,this.query=n.name||`@`+this.at,this.options=n,this.rules=new nj(y({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){e===void 0&&(e=jA);var t=SA(e).linebreak;if(e.indent??=jA.indent,e.children??=jA.children,e.children===!1)return this.query+` {}`;var n=this.rules.toString(e);return n?this.query+` {`+t+n+t+`}`:``},e}(),PA=/@container|@media|@supports\s+/,FA={onCreateRule:function(e,t,n){return PA.test(e)?new NA(e,t,n):null}},IA={indent:1,children:!0},LA=/@keyframes\s+([\w-]+)/,RA=function(){function e(e,t,n){this.type=`keyframes`,this.at=`@keyframes`,this.isProcessed=!1;var r=e.match(LA);r&&r[1]?this.name=r[1]:this.name=`noname`,this.key=this.type+`-`+this.name,this.options=n;var i=n.scoped,a=n.sheet,o=n.generateId;for(var s in this.id=i===!1?this.name:DA(o(this,a)),this.rules=new nj(y({},n,{parent:this})),t)this.rules.add(s,t[s],y({},n,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(e){e===void 0&&(e=IA);var t=SA(e).linebreak;if(e.indent??=IA.indent,e.children??=IA.children,e.children===!1)return this.at+` `+this.id+` {}`;var n=this.rules.toString(e);return n&&=``+t+n+t,this.at+` `+this.id+` {`+n+`}`},e}(),zA=/@keyframes\s+/,BA=/\$([\w-]+)/g,VA=function(e,t){return typeof e==`string`?e.replace(BA,function(e,n){return n in t?t[n]:e}):e},HA=function(e,t,n){var r=e[t],i=VA(r,n);i!==r&&(e[t]=i)},UA={onCreateRule:function(e,t,n){return typeof e==`string`&&zA.test(e)?new RA(e,t,n):null},onProcessStyle:function(e,t,n){return t.type!==`style`||!n?e:(`animation-name`in e&&HA(e,`animation-name`,n.keyframes),`animation`in e&&HA(e,`animation`,n.keyframes),e)},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case`animation`:return VA(e,r.keyframes);case`animation-name`:return VA(e,r.keyframes);default:return e}}},WA=function(e){os(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?y({},e,{allowEmpty:!0}):e;return wA(this.key,this.style,n)},t}(OA),GA={onCreateRule:function(e,t,n){return n.parent&&n.parent.type===`keyframes`?new WA(e,t,n):null}},KA=function(){function e(e,t,n){this.type=`font-face`,this.at=`@font-face`,this.isProcessed=!1,this.key=e,this.style=t,this.options=n}var t=e.prototype;return t.toString=function(e){var t=SA(e).linebreak;if(Array.isArray(this.style)){for(var n=``,r=0;r<this.style.length;r++)n+=wA(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return wA(this.at,this.style,e)},e}(),qA=/@font-face/,JA={onCreateRule:function(e,t,n){return qA.test(e)?new KA(e,t,n):null}},YA=function(){function e(e,t,n){this.type=`viewport`,this.at=`@viewport`,this.isProcessed=!1,this.key=e,this.style=t,this.options=n}var t=e.prototype;return t.toString=function(e){return wA(this.key,this.style,e)},e}(),XA={onCreateRule:function(e,t,n){return e===`@viewport`||e===`@-ms-viewport`?new YA(e,t,n):null}},ZA=function(){function e(e,t,n){this.type=`simple`,this.isProcessed=!1,this.key=e,this.value=t,this.options=n}var t=e.prototype;return t.toString=function(e){if(Array.isArray(this.value)){for(var t=``,n=0;n<this.value.length;n++)t+=this.key+` `+this.value[n]+`;`,this.value[n+1]&&(t+=`
|
|
170
|
+
`);return t}return this.key+` `+this.value+`;`},e}(),QA={"@charset":!0,"@import":!0,"@namespace":!0},$A=[AA,FA,UA,GA,JA,XA,{onCreateRule:function(e,t,n){return e in QA?new ZA(e,t,n):null}}],ej={process:!0},tj={force:!0,process:!0},nj=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,o=r.jss,s=r.Renderer,c=r.generateId,l=r.scoped,u=y({classes:this.classes,parent:i,sheet:a,jss:o,Renderer:s,generateId:c,scoped:l,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+`-d`+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector=`.`+DA(this.classes[d]));var f=yA(d,t,u);if(!f)return null;this.register(f);var p=u.index===void 0?this.index.length:u.index;return this.index.splice(p,0,f),f},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var a=n;return i!==-1&&(a=y({},n,{index:i})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof kA?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof RA&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof kA?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof RA&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if(typeof(arguments.length<=0?void 0:arguments[0])==`string`?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){r===void 0&&(r=ej);var i=this.options,a=i.jss.plugins,o=i.sheet;if(t.rules instanceof e){t.rules.update(n,r);return}var s=t.style;if(a.onUpdate(n,t,o,r),r.process&&s&&s!==t.style){for(var c in a.onProcessStyle(t.style,t,o),t.style){var l=t.style[c];l!==s[c]&&t.prop(c,l,tj)}for(var u in s){var d=t.style[u],f=s[u];d==null&&d!==f&&t.prop(u,null,tj)}}},t.toString=function(e){for(var t=``,n=this.options.sheet,r=n?n.options.link:!1,i=SA(e).linebreak,a=0;a<this.index.length;a++){var o=this.index[a].toString(e);!o&&!r||(t&&(t+=i),t+=o)}return t},e}(),rj=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=y({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new nj(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?(this.deployed&&(r?r.push(i):(this.insertRule(i),this.queue&&=(this.queue.forEach(this.insertRule,this),void 0))),i):(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?(this.deployed&&this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t=typeof e==`object`?e:this.rules.get(e);return!t||this.attached&&!t.renderable?!1:(this.rules.remove(t),this.attached&&t.renderable&&this.renderer?this.renderer.deleteRule(t.renderable):!0)},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),ij=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){t===void 0&&(t={queue:`external`});var n=this.plugins[t.queue];n.indexOf(e)===-1&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),aj=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(t.indexOf(e)===-1){if(t.length===0||n>=this.index){t.push(e);return}for(var r=0;r<t.length;r++)if(t[r].options.index>n){t.splice(r,0,e);return}}},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=e===void 0?{}:e,n=t.attached,r=is(t,[`attached`]),i=SA(r).linebreak,a=``,o=0;o<this.registry.length;o++){var s=this.registry[o];n!=null&&s.attached!==n||(a&&(a+=i),a+=s.toString(r))}return a},gA(e,[{key:`index`,get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}()),oj=typeof globalThis<`u`?globalThis:typeof window<`u`&&window.Math===Math?window:typeof self<`u`&&self.Math===Math?self:Function(`return this`)(),sj=`2f1acc6c3a606b082e5eef5e54414ffb`;oj[sj]??(oj[sj]=0);var cj=oj[sj]++,lj=function(e){e===void 0&&(e={});var t=0;return function(n,r){t+=1;var i=``,a=``;return r&&(r.options.classNamePrefix&&(a=r.options.classNamePrefix),r.options.jss.id!=null&&(i=String(r.options.jss.id))),e.minify?``+(a||`c`)+cj+i+t:a+n.key+`-`+cj+(i?`-`+i:``)+`-`+t}},uj=function(e){var t;return function(){return t||=e(),t}},dj=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch{return``}},fj=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=xA(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf(`!important`):-1,a=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,a,i>-1?`important`:``)}}catch{return!1}return!0},pj=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch{}},mj=function(e,t){return e.selectorText=t,e.selectorText===t},hj=uj(function(){return document.querySelector(`head`)});function gj(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function _j(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function vj(e){for(var t=hj(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(r.nodeType===8&&r.nodeValue.trim()===e)return r}return null}function yj(e){var t=aj.registry;if(t.length>0){var n=gj(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=_j(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&typeof r==`string`){var i=vj(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function bj(e,t){var n=t.insertionPoint,r=yj(t);if(r!==!1&&r.parent){r.parent.insertBefore(e,r.node);return}if(n&&typeof n.nodeType==`number`){var i=n,a=i.parentNode;a&&a.insertBefore(e,i.nextSibling);return}hj().appendChild(e)}var xj=uj(function(){var e=document.querySelector(`meta[property="csp-nonce"]`);return e?e.getAttribute(`content`):null}),Sj=function(e,t,n){try{`insertRule`in e?e.insertRule(t,n):`appendRule`in e&&e.appendRule(t)}catch{return!1}return e.cssRules[n]},Cj=function(e,t){var n=e.cssRules.length;return t===void 0||t>n?n:t},wj=function(){var e=document.createElement(`style`);return e.textContent=`
|
|
171
|
+
`,e},Tj=function(){function e(e){this.getPropertyValue=dj,this.setProperty=fj,this.removeProperty=pj,this.setSelector=mj,this.hasInsertedRules=!1,this.cssRules=[],e&&aj.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||wj(),this.element.setAttribute(`data-jss`,``),n&&this.element.setAttribute(`media`,n),r&&this.element.setAttribute(`data-meta`,r);var a=xj();a&&this.element.setAttribute(`nonce`,a)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){bj(this.element,this.sheet.options);var e=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
|
|
172
172
|
`)}},t.deploy=function(){var e=this.sheet;if(e){if(e.options.link){this.insertRules(e.rules);return}this.element.textContent=`
|
|
173
173
|
`+e.toString()+`
|
|
174
|
-
`}},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(n===void 0&&(n=this.element.sheet),e.rules){var r=e,i=n;if(e.type===`conditional`||e.type===`keyframes`){var a=xj(n,t);if(i=bj(n,r.toString({children:!1}),a),i===!1)return!1;this.refCssRule(e,a,i)}return this.insertRules(r.rules,i),i}var o=e.toString();if(!o)return!1;var s=xj(n,t),c=bj(n,o,s);return c===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(e,s,c),c)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof tj&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return n===-1?!1:(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return n===-1?!1:(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),wj=0,Tj=function(){function e(e){this.id=wj++,this.version=`10.10.0`,this.plugins=new nj,this.options={id:{minify:!1},createGenerateId:sj,Renderer:fA?Cj:null,plugins:[]},this.generateId=sj({minify:!1});for(var t=0;t<ZA.length;t++)this.plugins.use(ZA[t],{queue:`internal`});this.setup(e)}var t=e.prototype;return t.setup=function(e){return e===void 0&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=y({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),e.insertionPoint!=null&&(this.options.insertionPoint=e.insertionPoint),`Renderer`in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){t===void 0&&(t={});var n=t.index;typeof n!=`number`&&(n=rj.index===0?0:rj.index+1);var r=new tj(e,y({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),rj.remove(e),this},t.createRule=function(e,t,n){if(t===void 0&&(t={}),n===void 0&&(n={}),typeof e==`object`)return this.createRule(void 0,e,t);var r=y({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||=this.generateId,r.classes||={},r.keyframes||={};var i=_A(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),Ej=function(e){return new Tj(e)},Dj=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return t.refs===0&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,t.refs===0&&t.sheet.detach())},mA(e,[{key:`size`,get:function(){return this.length}}]),e}(),Oj=typeof CSS==`object`&&CSS!=null&&`number`in CSS;function kj(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if(i===`function`)t||={},t[n]=r;else if(i===`object`&&r!==null&&!Array.isArray(r)){var a=kj(r);a&&(t||={},t[n]=a)}}return t}Ej();var Aj=Date.now(),jj=`fnValues`+Aj,Mj=`fnStyle`+ ++Aj,Nj=function(){return{onCreateRule:function(e,t,n){if(typeof t!=`function`)return null;var r=_A(e,{},n);return r[Mj]=t,r},onProcessStyle:function(e,t){if(jj in t||Mj in t)return e;var n={};for(var r in e){var i=e[r];typeof i==`function`&&(delete e[r],n[r]=i)}return t[jj]=n,e},onUpdate:function(e,t,n,r){var i=t,a=i[Mj];a&&(i.style=a(e)||{});var o=i[jj];if(o)for(var s in o)i.prop(s,o[s](e),r)}}};function Pj(e){var t,n=e.Symbol;return typeof n==`function`?n.observable?t=n.observable:(t=n(`observable`),n.observable=t):t=`@@observable`,t}var Fj=Pj(typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:typeof module<`u`?module:Function(`return this`)()),Ij=function(e){return e&&e[Fj]&&e===e[Fj]()},Lj=function(e){return{onCreateRule:function(t,n,r){if(!Ij(n))return null;var i=n,a=_A(t,{},r);return i.subscribe(function(t){for(var n in t)a.prop(n,t[n],e)}),a},onProcessRule:function(t){if(!(t&&t.type!==`style`)){var n=t,r=n.style,i=function(t){var i=r[t];if(!Ij(i))return`continue`;delete r[t],i.subscribe({next:function(r){n.prop(t,r,e)}})};for(var a in r)if(i(a)===`continue`)continue}}}},Rj=/;\n/,zj=function(e){for(var t={},n=e.split(Rj),r=0;r<n.length;r++){var i=(n[r]||``).trim();if(i){var a=i.indexOf(`:`);if(a!==-1){var o=i.substr(0,a).trim();t[o]=i.substr(a+1).trim()}}}return t},Bj=function(e){typeof e.style==`string`&&(e.style=zj(e.style))};function Vj(){return{onProcessRule:Bj}}var Hj=`@global`,Uj=`@global `,Wj=function(){function e(e,t,n){for(var r in this.type=`global`,this.at=Hj,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new ej(y({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Gj=function(){function e(e,t,n){this.type=`global`,this.at=Hj,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Uj.length);this.rule=n.jss.createRule(r,t,y({},n,{parent:this}))}var t=e.prototype;return t.toString=function(e){return this.rule?this.rule.toString(e):``},e}(),Kj=/\s*,\s*/g;function qj(e,t){for(var n=e.split(Kj),r=``,i=0;i<n.length;i++)r+=t+` `+n[i].trim(),n[i+1]&&(r+=`, `);return r}function Jj(e,t){var n=e.options,r=e.style,i=r?r[Hj]:null;if(i){for(var a in i)t.addRule(a,i[a],y({},n,{selector:qj(a,e.selector)}));delete r[Hj]}}function Yj(e,t){var n=e.options,r=e.style;for(var i in r)if(!(i[0]!==`@`||i.substr(0,Hj.length)!==Hj)){var a=qj(i.substr(Hj.length),e.selector);t.addRule(a,r[i],y({},n,{selector:a})),delete r[i]}}function Xj(){function e(e,t,n){if(!e)return null;if(e===Hj)return new Wj(e,t,n);if(e[0]===`@`&&e.substr(0,Uj.length)===Uj)return new Gj(e,t,n);var r=n.parent;return r&&(r.type===`global`||r.options.parent&&r.options.parent.type===`global`)&&(n.scoped=!1),!n.selector&&n.scoped===!1&&(n.selector=e),null}function t(e,t){e.type!==`style`||!t||(Jj(e,t),Yj(e,t))}return{onCreateRule:e,onProcessRule:t}}var Zj=function(e){return e&&typeof e==`object`&&!Array.isArray(e)},Qj=`extendCurrValue`+Date.now();function $j(e,t,n,r){if(typeof e.extend==`string`){if(!n)return;var i=n.getRule(e.extend);if(!i||i===t)return;var a=i.options.parent;if(a){var o=a.rules.raw[e.extend];tM(o,t,n,r)}return}if(Array.isArray(e.extend)){for(var s=0;s<e.extend.length;s++){var c=e.extend[s];tM(typeof c==`string`?y({},e,{extend:c}):e.extend[s],t,n,r)}return}for(var l in e.extend){if(l===`extend`){tM(e.extend.extend,t,n,r);continue}if(Zj(e.extend[l])){l in r||(r[l]={}),tM(e.extend[l],t,n,r[l]);continue}r[l]=e.extend[l]}}function eM(e,t,n,r){for(var i in e)if(i!==`extend`){if(Zj(r[i])&&Zj(e[i])){tM(e[i],t,n,r[i]);continue}if(Zj(e[i])){r[i]=tM(e[i],t,n);continue}r[i]=e[i]}}function tM(e,t,n,r){return r===void 0&&(r={}),$j(e,t,n,r),eM(e,t,n,r),r}function nM(){function e(e,t,n){return`extend`in e?tM(e,t,n):e}function t(e,t,n){if(t!==`extend`)return e;if(e==null||e===!1){for(var r in n[Qj])n.prop(r,null);return n[Qj]=null,null}if(typeof e==`object`){for(var i in e)n.prop(i,e[i]);n[Qj]=e}return null}return{onProcessStyle:e,onChangeValue:t}}var rM=/\s*,\s*/g,iM=/&/g,aM=/\$([\w-]+)/g;function oM(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(rM),r=e.split(rM),i=``,a=0;a<n.length;a++)for(var o=n[a],s=0;s<r.length;s++){var c=r[s];i&&(i+=`, `),i+=c.indexOf(`&`)===-1?o+` `+c:c.replace(iM,o)}return i}function n(e,t,n){if(n)return y({},n,{index:n.index+1});var r=e.options.nestingLevel;r=r===void 0?1:r+1;var i=y({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}function r(r,i,a){if(i.type!==`style`)return r;var o=i,s=o.options.parent,c,l;for(var u in r){var d=u.indexOf(`&`)!==-1,f=u[0]===`@`;if(!(!d&&!f)){if(c=n(o,s,c),d){var p=t(u,o.selector);l||=e(s,a),p=p.replace(aM,l);var m=o.key+`-`+u;`replaceRule`in s?s.replaceRule(m,r[u],y({},c,{selector:p})):s.addRule(m,r[u],y({},c,{selector:p}))}else f&&s.addRule(u,{},c).addRule(o.key,r[u],{selector:o.selector});delete r[u]}}return r}return{onProcessStyle:r}}function sM(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(!sM(e,t[n]))return!1;return!0}if(t.indexOf(` `)>-1)return sM(e,t.split(` `));var r=e.options.parent;if(t[0]===`$`){var i=r.getRule(t.substr(1));return!i||i===e?!1:(r.classes[e.key]+=` `+r.classes[i.key],!0)}return r.classes[e.key]+=` `+t,!0}function cM(){function e(e,t){return`composes`in e?(sM(t,e.composes),delete e.composes,e):e}return{onProcessStyle:e}}var lM=/[A-Z]/g,uM=/^ms-/,dM={};function fM(e){return`-`+e.toLowerCase()}function pM(e){if(dM.hasOwnProperty(e))return dM[e];var t=e.replace(lM,fM);return dM[e]=uM.test(t)?`-`+t:t}function mM(e){var t={};for(var n in e){var r=n.indexOf(`--`)===0?n:pM(n);t[r]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(mM):t.fallbacks=mM(e.fallbacks)),t}function hM(){function e(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=mM(e[t]);return e}return mM(e)}function t(e,t,n){if(t.indexOf(`--`)===0)return e;var r=pM(t);return t===r?e:(n.prop(r,e),null)}return{onProcessStyle:e,onChangeValue:t}}var $=Oj&&CSS?CSS.px:`px`,gM=Oj&&CSS?CSS.ms:`ms`,_M=Oj&&CSS?CSS.percent:`%`,vM={"animation-delay":gM,"animation-duration":gM,"background-position":$,"background-position-x":$,"background-position-y":$,"background-size":$,border:$,"border-bottom":$,"border-bottom-left-radius":$,"border-bottom-right-radius":$,"border-bottom-width":$,"border-left":$,"border-left-width":$,"border-radius":$,"border-right":$,"border-right-width":$,"border-top":$,"border-top-left-radius":$,"border-top-right-radius":$,"border-top-width":$,"border-width":$,"border-block":$,"border-block-end":$,"border-block-end-width":$,"border-block-start":$,"border-block-start-width":$,"border-block-width":$,"border-inline":$,"border-inline-end":$,"border-inline-end-width":$,"border-inline-start":$,"border-inline-start-width":$,"border-inline-width":$,"border-start-start-radius":$,"border-start-end-radius":$,"border-end-start-radius":$,"border-end-end-radius":$,margin:$,"margin-bottom":$,"margin-left":$,"margin-right":$,"margin-top":$,"margin-block":$,"margin-block-end":$,"margin-block-start":$,"margin-inline":$,"margin-inline-end":$,"margin-inline-start":$,padding:$,"padding-bottom":$,"padding-left":$,"padding-right":$,"padding-top":$,"padding-block":$,"padding-block-end":$,"padding-block-start":$,"padding-inline":$,"padding-inline-end":$,"padding-inline-start":$,"mask-position-x":$,"mask-position-y":$,"mask-size":$,height:$,width:$,"min-height":$,"max-height":$,"min-width":$,"max-width":$,bottom:$,left:$,top:$,right:$,inset:$,"inset-block":$,"inset-block-end":$,"inset-block-start":$,"inset-inline":$,"inset-inline-end":$,"inset-inline-start":$,"box-shadow":$,"text-shadow":$,"column-gap":$,"column-rule":$,"column-rule-width":$,"column-width":$,"font-size":$,"font-size-delta":$,"letter-spacing":$,"text-decoration-thickness":$,"text-indent":$,"text-stroke":$,"text-stroke-width":$,"word-spacing":$,motion:$,"motion-offset":$,outline:$,"outline-offset":$,"outline-width":$,perspective:$,"perspective-origin-x":_M,"perspective-origin-y":_M,"transform-origin":_M,"transform-origin-x":_M,"transform-origin-y":_M,"transform-origin-z":_M,"transition-delay":gM,"transition-duration":gM,"vertical-align":$,"flex-basis":$,"shape-margin":$,size:$,gap:$,grid:$,"grid-gap":$,"row-gap":$,"grid-row-gap":$,"grid-column-gap":$,"grid-template-rows":$,"grid-template-columns":$,"grid-auto-rows":$,"grid-auto-columns":$,"box-shadow-x":$,"box-shadow-y":$,"box-shadow-blur":$,"box-shadow-spread":$,"font-line-height":$,"text-shadow-x":$,"text-shadow-y":$,"text-shadow-blur":$};function yM(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var bM=yM(vM);function xM(e,t,n){if(t==null)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=xM(e,t[r],n);else if(typeof t==`object`)if(e===`fallbacks`)for(var i in t)t[i]=xM(i,t[i],n);else for(var a in t)t[a]=xM(e+`-`+a,t[a],n);else if(typeof t==`number`&&isNaN(t)===!1){var o=n[e]||bM[e];return o&&!(t===0&&o===$)?typeof o==`function`?o(t).toString():``+t+o:t.toString()}return t}function SM(e){e===void 0&&(e={});var t=yM(e);function n(e,n){if(n.type!==`style`)return e;for(var r in e)e[r]=xM(r,e[r],t);return e}function r(e,n){return xM(n,e,t)}return{onProcessStyle:n,onChangeValue:r}}var CM={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},wM={position:!0,size:!0},TM={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},EM={border:{radius:`border-radius`,image:`border-image`,width:`border-width`,style:`border-style`,color:`border-color`},"border-bottom":{width:`border-bottom-width`,style:`border-bottom-style`,color:`border-bottom-color`},"border-top":{width:`border-top-width`,style:`border-top-style`,color:`border-top-color`},"border-left":{width:`border-left-width`,style:`border-left-style`,color:`border-left-color`},"border-right":{width:`border-right-width`,style:`border-right-style`,color:`border-right-color`},background:{size:`background-size`,image:`background-image`},font:{style:`font-style`,variant:`font-variant`,weight:`font-weight`,stretch:`font-stretch`,size:`font-size`,family:`font-family`,lineHeight:`line-height`,"line-height":`line-height`},flex:{grow:`flex-grow`,basis:`flex-basis`,direction:`flex-direction`,wrap:`flex-wrap`,flow:`flex-flow`,shrink:`flex-shrink`},align:{self:`align-self`,items:`align-items`,content:`align-content`},grid:{"template-columns":`grid-template-columns`,templateColumns:`grid-template-columns`,"template-rows":`grid-template-rows`,templateRows:`grid-template-rows`,"template-areas":`grid-template-areas`,templateAreas:`grid-template-areas`,template:`grid-template`,"auto-columns":`grid-auto-columns`,autoColumns:`grid-auto-columns`,"auto-rows":`grid-auto-rows`,autoRows:`grid-auto-rows`,"auto-flow":`grid-auto-flow`,autoFlow:`grid-auto-flow`,row:`grid-row`,column:`grid-column`,"row-start":`grid-row-start`,rowStart:`grid-row-start`,"row-end":`grid-row-end`,rowEnd:`grid-row-end`,"column-start":`grid-column-start`,columnStart:`grid-column-start`,"column-end":`grid-column-end`,columnEnd:`grid-column-end`,area:`grid-area`,gap:`grid-gap`,"row-gap":`grid-row-gap`,rowGap:`grid-row-gap`,"column-gap":`grid-column-gap`,columnGap:`grid-column-gap`}};function DM(e,t,n){return e.map(function(e){return kM(e,t,n,!1,!0)})}function OM(e,t,n,r){return n[t]==null?e:e.length===0?[]:Array.isArray(e[0])?OM(e[0],t,n,r):typeof e[0]==`object`?DM(e,t,r):[e]}function kM(e,t,n,r,i){if(!(TM[t]||EM[t]))return[];var a=[];if(EM[t]&&(e=AM(e,n,EM[t],r)),Object.keys(e).length)for(var o in TM[t]){if(e[o]){Array.isArray(e[o])?a.push(wM[o]===null?e[o]:e[o].join(` `)):a.push(e[o]);continue}TM[t][o]!=null&&a.push(TM[t][o])}return!a.length||i?a:[a]}function AM(e,t,n,r){for(var i in n){var a=n[i];if(e[i]!==void 0&&(r||!t.prop(a))){var o,s=jM((o={},o[a]=e[i],o),t)[a];r?t.style.fallbacks[a]=s:t.style[a]=s}delete e[i]}return e}function jM(e,t,n){for(var r in e){var i=e[r];if(Array.isArray(i)){if(!Array.isArray(i[0])){if(r===`fallbacks`){for(var a=0;a<e.fallbacks.length;a++)e.fallbacks[a]=jM(e.fallbacks[a],t,!0);continue}e[r]=OM(i,r,CM,t),e[r].length||delete e[r]}}else if(typeof i==`object`){if(r===`fallbacks`){e.fallbacks=jM(e.fallbacks,t,!0);continue}e[r]=kM(i,r,t,n),e[r].length||delete e[r]}else e[r]===``&&delete e[r]}return e}function MM(){function e(e,t){if(!e||t.type!==`style`)return e;if(Array.isArray(e)){for(var n=0;n<e.length;n++)e[n]=jM(e[n],t);return e}return jM(e,t)}return{onProcessStyle:e}}function NM(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 PM(e){if(Array.isArray(e))return NM(e)}function FM(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function IM(e,t){if(e){if(typeof e==`string`)return NM(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)?NM(e,t):void 0}}function LM(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
175
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RM(e){return PM(e)||FM(e)||IM(e)||LM()}var zM=``,BM=``,VM=``,HM=``,UM=fA&&`ontouchstart`in document.documentElement;if(fA){var WM={Moz:`-moz-`,ms:`-ms-`,O:`-o-`,Webkit:`-webkit-`},GM=document.createElement(`p`).style,KM=`Transform`;for(var qM in WM)if(qM+KM in GM){zM=qM,BM=WM[qM];break}zM===`Webkit`&&`msHyphens`in GM&&(zM=`ms`,BM=WM.ms,HM=`edge`),zM===`Webkit`&&`-apple-trailing-word`in GM&&(VM=`apple`)}var JM={js:zM,css:BM,vendor:VM,browser:HM,isTouch:UM};function YM(e){return e[1]===`-`||JM.js===`ms`?e:`@`+JM.css+`keyframes`+e.substr(10)}var XM={noPrefill:[`appearance`],supportedProperty:function(e){return e===`appearance`?JM.js===`ms`?`-webkit-`+e:JM.css+e:!1}},ZM={noPrefill:[`color-adjust`],supportedProperty:function(e){return e===`color-adjust`?JM.js===`Webkit`?JM.css+`print-`+e:e:!1}},QM=/[-\s]+(.)?/g;function $M(e,t){return t?t.toUpperCase():``}function eN(e){return e.replace(QM,$M)}function tN(e){return eN(`-`+e)}var nN={noPrefill:[`mask`],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if(JM.js===`Webkit`){var n=`mask-image`;if(eN(n)in t)return e;if(JM.js+tN(n)in t)return JM.css+e}return e}},rN={noPrefill:[`text-orientation`],supportedProperty:function(e){return e===`text-orientation`?JM.vendor===`apple`&&!JM.isTouch?JM.css+e:e:!1}},iN={noPrefill:[`transform`],supportedProperty:function(e,t,n){return e===`transform`?n.transform?e:JM.css+e:!1}},aN={noPrefill:[`transition`],supportedProperty:function(e,t,n){return e===`transition`?n.transition?e:JM.css+e:!1}},oN={noPrefill:[`writing-mode`],supportedProperty:function(e){return e===`writing-mode`?JM.js===`Webkit`||JM.js===`ms`&&JM.browser!==`edge`?JM.css+e:e:!1}},sN={noPrefill:[`user-select`],supportedProperty:function(e){return e===`user-select`?JM.js===`Moz`||JM.js===`ms`||JM.vendor===`apple`?JM.css+e:e:!1}},cN={supportedProperty:function(e,t){return/^break-/.test(e)?JM.js===`Webkit`?`WebkitColumn`+tN(e)in t&&JM.css+`column-`+e:JM.js===`Moz`&&`page`+tN(e)in t&&`page-`+e:!1}},lN={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(JM.js===`Moz`)return e;var n=e.replace(`-inline`,``);return JM.js+tN(n)in t&&JM.css+n}},uN={supportedProperty:function(e,t){return eN(e)in t&&e}},dN={supportedProperty:function(e,t){var n=tN(e);return e[0]===`-`||e[0]===`-`&&e[1]===`-`?e:JM.js+n in t?JM.css+e:JM.js!==`Webkit`&&`Webkit`+n in t&&`-webkit-`+e}},fN={supportedProperty:function(e){return e.substring(0,11)===`scroll-snap`?JM.js===`ms`?``+JM.css+e:e:!1}},pN={supportedProperty:function(e){return e===`overscroll-behavior`?JM.js===`ms`?JM.css+`scroll-chaining`:e:!1}},mN={"flex-grow":`flex-positive`,"flex-shrink":`flex-negative`,"flex-basis":`flex-preferred-size`,"justify-content":`flex-pack`,order:`flex-order`,"align-items":`flex-align`,"align-content":`flex-line-pack`},hN={supportedProperty:function(e,t){var n=mN[e];return n?JM.js+tN(n)in t&&JM.css+n:!1}},gN={flex:`box-flex`,"flex-grow":`box-flex`,"flex-direction":[`box-orient`,`box-direction`],order:`box-ordinal-group`,"align-items":`box-align`,"flex-flow":[`box-orient`,`box-direction`],"justify-content":`box-pack`},_N=Object.keys(gN),vN=function(e){return JM.css+e},yN=[XM,ZM,nN,rN,iN,aN,oN,sN,cN,lN,uN,dN,fN,pN,hN,{supportedProperty:function(e,t,n){var r=n.multiple;if(_N.indexOf(e)>-1){var i=gN[e];if(!Array.isArray(i))return JM.js+tN(i)in t&&JM.css+i;if(!r)return!1;for(var a=0;a<i.length;a++)if(!(JM.js+tN(i[0])in t))return!1;return i.map(vN)}return!1}}],bN=yN.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),xN=yN.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,RM(t.noPrefill)),e},[]),SN,CN={};if(fA){SN=document.createElement(`p`);var wN=window.getComputedStyle(document.documentElement,``);for(var TN in wN)isNaN(TN)||(CN[wN[TN]]=wN[TN]);xN.forEach(function(e){return delete CN[e]})}function EN(e,t){if(t===void 0&&(t={}),!SN)return e;if(CN[e]!=null)return CN[e];(e===`transition`||e===`transform`)&&(t[e]=e in SN.style);for(var n=0;n<bN.length&&(CN[e]=bN[n](e,SN.style,t),!CN[e]);n++);try{SN.style[e]=``}catch{return!1}return CN[e]}var DN={},ON={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},kN=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,AN;function jN(e,t,n){return t===`var`?`var`:t===`all`?`all`:n===`all`?`, all`:(t?EN(t):`, `+EN(n))||t||n}fA&&(AN=document.createElement(`p`));function MN(e,t){var n=t;if(!AN||e===`content`)return t;if(typeof n!=`string`||!isNaN(parseInt(n,10)))return n;var r=e+n;if(DN[r]!=null)return DN[r];try{AN.style[e]=n}catch{return DN[r]=!1,!1}if(ON[e])n=n.replace(kN,jN);else if(AN.style[e]===``&&(n=JM.css+n,n===`-ms-flex`&&(AN.style[e]=`-ms-flexbox`),AN.style[e]=n,AN.style[e]===``))return DN[r]=!1,!1;return AN.style[e]=``,DN[r]=n,DN[r]}function NN(){function e(e){if(e.type===`keyframes`){var t=e;t.at=YM(t.at)}}function t(e){for(var n in e){var r=e[n];if(n===`fallbacks`&&Array.isArray(r)){e[n]=r.map(t);continue}var i=!1,a=EN(n);a&&a!==n&&(i=!0);var o=!1,s=MN(a,yA(r));s&&s!==r&&(o=!0),(i||o)&&(i&&delete e[n],e[a||n]=s||r)}return e}function n(e,n){return n.type===`style`?t(e):e}function r(e,t){return MN(t,yA(e))||e}return{onProcessRule:e,onProcessStyle:n,onChangeValue:r}}function PN(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if(n.type!==`style`)return t;for(var r={},i=Object.keys(t).sort(e),a=0;a<i.length;a++)r[i[a]]=t[i[a]];return r}}}var FN=function(e){return e===void 0&&(e={}),{plugins:[Nj(),Lj(e.observable),Vj(),Xj(),nM(),oM(),cM(),hM(),SM(e.defaultUnit),MM(),NN(),PN()]}},IN=1e4,LN=Ej(FN()),RN=function(e){e===void 0&&(e=LN);var t=new Map,n=0,r,i=function(){return(!r||r.rules.index.length>IN)&&(r=e.createStyleSheet().attach()),r};function a(){var e=arguments,r=JSON.stringify(e),a=t.get(r);if(a)return a.className;var o=[];for(var s in e){var c=e[s];if(!Array.isArray(c)){o.push(c);continue}for(var l=0;l<c.length;l++)o.push(c[l])}for(var u={},d=[],f=0;f<o.length;f++){var p=o[f];if(p){var m=p;if(typeof p==`string`){var h=t.get(p);h&&(h.labels.length&&d.push.apply(d,h.labels),m=h.style)}m.label&&d.indexOf(m.label)===-1&&d.push(m.label),Object.assign(u,m)}}delete u.label;var g=(d.length===0?`css`:d.join(`-`))+`-`+n++;i().addRule(g,u);var _=i().classes[g],v={style:u,labels:d,className:_};return t.set(r,v),t.set(_,v),_}return a.getSheet=i,a}(),zN=function(e){return e.displayName||e.name||`Component`},BN=function(e){var t,n;return function(){for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];if(Array.isArray(t)&&i.length===t.length){for(var o=!0,s=0;s<i.length;s++)i[s]!==t[s]&&(o=!1);if(o)return n}return t=i,n=e.apply(void 0,i),n}},VN=function(e,t){var n=y({},e);for(var r in t)n[r]=r in n?n[r]+` `+t[r]:t[r];return n},HN=-(2**53-1)||-1e9,UN=function(){return HN++},WN=(0,L.createContext)({classNamePrefix:``,disableStylesGeneration:!1,isSSR:!fA}),GN=new Map,KN=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new Dj),n[t];var r=GN.get(t);return r||(r=new Dj,GN.set(t,r)),r},qN=function(e){var t=e.sheet,n=e.context,r=e.index,i=e.theme;t&&(KN(n,r).manage(i),n.registry&&n.registry.add(t))},JN=function(e){e.sheet&&KN(e.context,e.index).unmanage(e.theme)},YN=Ej(FN()),XN=new WeakMap,ZN=function(e){return XN.get(e)},QN=function(e,t){XN.set(e,t)},$N=function(e){var t=e.styles;return typeof t==`function`?t(e.theme):t};function eP(e,t){var n;e.context.id&&e.context.id.minify!=null&&(n=e.context.id.minify);var r=e.context.classNamePrefix||``;e.name&&!n&&(r+=e.name.replace(/\s/g,`-`)+`-`);var i=``;return e.name&&(i=e.name+`, `),i+=typeof e.styles==`function`?`Themed`:`Unthemed`,y({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:r,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}var tP=function(e){if(!e.context.disableStylesGeneration){var t=KN(e.context,e.index),n=t.get(e.theme);if(n)return n;var r=e.context.jss||YN,i=$N(e),a=kj(i),o=r.createStyleSheet(i,eP(e,a!==null));return QN(o,{dynamicStyles:a,styles:i}),t.add(e.theme,o),o}},nP=function(e,t){for(var n in t)e.deleteRule(t[n])},rP=function(e,t,n){for(var r in n)t.updateOne(n[r],e)},iP=function(e,t){var n=ZN(e);if(n){var r={};for(var i in n.dynamicStyles)for(var a=e.rules.index.length,o=e.addRule(i,n.dynamicStyles[i]),s=a;s<e.rules.index.length;s++){var c=e.rules.index[s];e.updateOne(c,t),r[o===c?i:c.key]=c}return r}},aP=function(e,t){if(!t)return e.classes;var n=ZN(e);if(!n)return e.classes;var r={};for(var i in n.styles)r[i]=e.classes[i],i in t&&(r[i]+=` `+e.classes[t[i].key]);return r};function oP(e){return e?L.useEffect:L.useInsertionEffect||L.useLayoutEffect}var sP={},cP=function(e,t){t===void 0&&(t={});var n=t,r=n.index,i=r===void 0?UN():r,a=n.theming,o=n.name,s=is(n,[`index`,`theming`,`name`]),c=a&&a.context||lA,l=function(t){return typeof e==`function`&&(t||(0,L.useContext)(c))||sP},u={};return function(t){var n=(0,L.useRef)(!0),r=(0,L.useContext)(WN),a=l(t&&t.theme),c=(0,L.useMemo)(function(){var n=tP({context:r,styles:e,name:o,theme:a,index:i,sheetOptions:s});return n&&r.isSSR&&qN({index:i,context:r,sheet:n,theme:a}),[n,n?iP(n,t):null]},[r,a]),d=c[0],f=c[1];oP(r.isSSR)(function(){d&&f&&!n.current&&rP(t,d,f)},[t]),oP(r.isSSR)(function(){return d&&qN({index:i,context:r,sheet:d,theme:a}),function(){d&&(JN({index:i,context:r,sheet:d,theme:a}),f&&nP(d,f))}},[d]);var p=(0,L.useMemo)(function(){return d&&f?aP(d,f):u},[d,f]);return(0,L.useDebugValue)(p),(0,L.useDebugValue)(a===sP?`No theme`:a),(0,L.useEffect)(function(){n.current=!1}),p}},lP=function(e){return e.children||null},uP=function(e,t){t===void 0&&(t={});var n=t,r=n.index,i=r===void 0?UN():r,a=n.theming,o=n.injectTheme,s=is(n,[`index`,`theming`,`injectTheme`]),c=a?a.context:lA;return function(t){t===void 0&&(t=lP);var n=zN(t),r=BN(function(e,t){return t?VN(e,t):e}),l=cP(e,Object.assign(s,{theming:a,index:i,name:n})),u=(0,L.forwardRef)(function(e,n){var i=(0,L.useContext)(c),a=y({},e);o&&a.theme==null&&(a.theme=i);var s=r(l(a),e.classes);return(0,L.createElement)(t,y({},a,{classes:s,ref:n}))});return u.displayName=`WithStyles(`+n+`)`,u.defaultProps=y({},t.defaultProps),u.InnerComponent=t,(0,kt.default)(u,t)}};(function(e){return e===void 0&&(e=RN),function(t,n){var r=arguments;if(n&&n.css){var i=e(n.css),a=Object.assign({},n);a.className=n.className?n.className+` `+i:i,delete a.css,r[1]=a}return L.createElement.apply(void 0,r)}})();var dP={root:{strokeWidth:2,stroke:_w()}};function fP({y:e,width:t,classes:n}){return(0,z.jsx)(`line`,{x1:0,y1:e,x2:t,y2:e,className:n.root})}fP.propTypes={y:R.number.isRequired,width:R.number.isRequired,classes:R.object.isRequired};var pP=uP(dP)(fP),mP=V(`text`)({userSelect:`none`,textAlign:`center`,fill:_w()}),hP=V(`line`)({stroke:_w()}),gP=R.shape({major:(e,t)=>{},minor:(e,t,n)=>{if(e[t]<=0)return Error(`Invalid prop ${t} must be > 0. ${n}`)}}).isRequired,_P=class extends L.Component{static propTypes={y:R.number.isRequired,x:R.number.isRequired,major:R.bool,fraction:R.bool,xScale:R.func,type:R.string};static defaultProps={major:!1};constructor(e){super(e),this.wasRendered=!1,this.state={textBox:{width:0,height:0,x:0,y:0}},this.resizeObserver=null}updateTextBox(){if(this.text){let{width:e,height:t,x:n,y:r}=this.text.getBBox();this.text.setAttribute(`x`,e/2*-1),this.setState({textBox:{width:e,height:t,x:n,y:r}})}}componentDidMount(){this.resizeObserver=new ResizeObserver(()=>{this.updateTextBox()}),this.text&&this.resizeObserver.observe(this.text)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}render(){let{x:e,y:t,type:n,xScale:r,fraction:i}=this.props,a=i?Number(e.n):e.n,o=i?Number(e.d):e.d,s=i?Number(e.s):e.s,c=i&&a!==o&&a!==0&&o!==1,l=n===`major`,u=l?20:10,{width:d=0,height:f=0,x:p=0,y:m=0}=this.state.textBox,h=i?c?(0,z.jsxs)(L.Fragment,{children:[(0,z.jsx)(`tspan`,{x:`0`,dy:`0.71em`,children:a*s}),(0,z.jsx)(`tspan`,{x:`0`,dy:`1.11em`,children:o})]}):a*s:Number(e.toFixed(3));return(0,z.jsxs)(`g`,{opacity:`1`,transform:`translate(${r(e)}, ${t})`,children:[(0,z.jsx)(hP,{y1:u/2*-1,y2:u/2,x1:`0.5`,x2:`0.5`}),c&&(0,z.jsx)(hP,{x1:p,x2:p+d,y1:m+f/2,y2:m+f/2}),l&&(0,z.jsx)(mP,{ref:e=>this.text=e,y:`14`,width:`10`,dy:`0.71em`,textAnchor:c&&`middle`,children:h})]})}},vP=class extends L.Component{static contextTypes={xScale:R.func.isRequired};static propTypes={domain:R.shape({min:R.number.isRequired,max:R.number.isRequired}).isRequired,fraction:R.bool,width:R.number,ticks:gP,y:R.number.isRequired};render(){let{domain:e,width:t,ticks:n,y:r,fraction:i}=this.props,{xScale:a}=this.context;return(0,z.jsx)(`g`,{children:$_(e,t,n,{fraction:i}).map(({x:e,type:t})=>(0,z.jsx)(_P,{fraction:i,x:e,y:r,type:t,xScale:a},`${e}-${t}-${i}`))})}};function yP(e){let t=[new bP(e)];this.add=function(n){let r=t.find(e=>e.add(n));return t.indexOf(r)===-1&&(r=new bP(e),t.push(r),r.add(n)),t.indexOf(r)}}function bP(e){let t=[];this.add=function(i){let a=r(i);return a.left<e.min||a.right>e.max||t.some(e=>n(e,a))?!1:(t.push(i),!0)},this.elements=function(){return t};let n=(e,t)=>{let n=r(e),i=t.left<n.left&&t.right<n.left,a=t.left>n.right&&t.right>n.right;return!(i||a)},r=t=>{let{type:n,position:r}=t;switch(n){case`point`:return{left:r,right:r};case`line`:return r;case`ray`:return t.direction===`positive`?{left:r,right:e.max}:{left:e.min,right:r};default:return null}}}var xP=200,SP=`fade-transition`,CP=`
|
|
176
|
-
.${
|
|
174
|
+
`}},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(n===void 0&&(n=this.element.sheet),e.rules){var r=e,i=n;if(e.type===`conditional`||e.type===`keyframes`){var a=Cj(n,t);if(i=Sj(n,r.toString({children:!1}),a),i===!1)return!1;this.refCssRule(e,a,i)}return this.insertRules(r.rules,i),i}var o=e.toString();if(!o)return!1;var s=Cj(n,t),c=Sj(n,o,s);return c===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(e,s,c),c)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof rj&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return n===-1?!1:(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return n===-1?!1:(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ej=0,Dj=function(){function e(e){this.id=Ej++,this.version=`10.10.0`,this.plugins=new ij,this.options={id:{minify:!1},createGenerateId:lj,Renderer:mA?Tj:null,plugins:[]},this.generateId=lj({minify:!1});for(var t=0;t<$A.length;t++)this.plugins.use($A[t],{queue:`internal`});this.setup(e)}var t=e.prototype;return t.setup=function(e){return e===void 0&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=y({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),e.insertionPoint!=null&&(this.options.insertionPoint=e.insertionPoint),`Renderer`in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){t===void 0&&(t={});var n=t.index;typeof n!=`number`&&(n=aj.index===0?0:aj.index+1);var r=new rj(e,y({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),aj.remove(e),this},t.createRule=function(e,t,n){if(t===void 0&&(t={}),n===void 0&&(n={}),typeof e==`object`)return this.createRule(void 0,e,t);var r=y({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||=this.generateId,r.classes||={},r.keyframes||={};var i=yA(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),Oj=function(e){return new Dj(e)},kj=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return t.refs===0&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,t.refs===0&&t.sheet.detach())},gA(e,[{key:`size`,get:function(){return this.length}}]),e}(),Aj=typeof CSS==`object`&&CSS!=null&&`number`in CSS;function jj(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if(i===`function`)t||={},t[n]=r;else if(i===`object`&&r!==null&&!Array.isArray(r)){var a=jj(r);a&&(t||={},t[n]=a)}}return t}Oj();var Mj=Date.now(),Nj=`fnValues`+Mj,Pj=`fnStyle`+ ++Mj,Fj=function(){return{onCreateRule:function(e,t,n){if(typeof t!=`function`)return null;var r=yA(e,{},n);return r[Pj]=t,r},onProcessStyle:function(e,t){if(Nj in t||Pj in t)return e;var n={};for(var r in e){var i=e[r];typeof i==`function`&&(delete e[r],n[r]=i)}return t[Nj]=n,e},onUpdate:function(e,t,n,r){var i=t,a=i[Pj];a&&(i.style=a(e)||{});var o=i[Nj];if(o)for(var s in o)i.prop(s,o[s](e),r)}}};function Ij(e){var t,n=e.Symbol;return typeof n==`function`?n.observable?t=n.observable:(t=n(`observable`),n.observable=t):t=`@@observable`,t}var Lj=Ij(typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:typeof module<`u`?module:Function(`return this`)()),Rj=function(e){return e&&e[Lj]&&e===e[Lj]()},zj=function(e){return{onCreateRule:function(t,n,r){if(!Rj(n))return null;var i=n,a=yA(t,{},r);return i.subscribe(function(t){for(var n in t)a.prop(n,t[n],e)}),a},onProcessRule:function(t){if(!(t&&t.type!==`style`)){var n=t,r=n.style,i=function(t){var i=r[t];if(!Rj(i))return`continue`;delete r[t],i.subscribe({next:function(r){n.prop(t,r,e)}})};for(var a in r)if(i(a)===`continue`)continue}}}},Bj=/;\n/,Vj=function(e){for(var t={},n=e.split(Bj),r=0;r<n.length;r++){var i=(n[r]||``).trim();if(i){var a=i.indexOf(`:`);if(a!==-1){var o=i.substr(0,a).trim();t[o]=i.substr(a+1).trim()}}}return t},Hj=function(e){typeof e.style==`string`&&(e.style=Vj(e.style))};function Uj(){return{onProcessRule:Hj}}var Wj=`@global`,Gj=`@global `,Kj=function(){function e(e,t,n){for(var r in this.type=`global`,this.at=Wj,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new nj(y({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),qj=function(){function e(e,t,n){this.type=`global`,this.at=Wj,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Gj.length);this.rule=n.jss.createRule(r,t,y({},n,{parent:this}))}var t=e.prototype;return t.toString=function(e){return this.rule?this.rule.toString(e):``},e}(),Jj=/\s*,\s*/g;function Yj(e,t){for(var n=e.split(Jj),r=``,i=0;i<n.length;i++)r+=t+` `+n[i].trim(),n[i+1]&&(r+=`, `);return r}function Xj(e,t){var n=e.options,r=e.style,i=r?r[Wj]:null;if(i){for(var a in i)t.addRule(a,i[a],y({},n,{selector:Yj(a,e.selector)}));delete r[Wj]}}function Zj(e,t){var n=e.options,r=e.style;for(var i in r)if(!(i[0]!==`@`||i.substr(0,Wj.length)!==Wj)){var a=Yj(i.substr(Wj.length),e.selector);t.addRule(a,r[i],y({},n,{selector:a})),delete r[i]}}function Qj(){function e(e,t,n){if(!e)return null;if(e===Wj)return new Kj(e,t,n);if(e[0]===`@`&&e.substr(0,Gj.length)===Gj)return new qj(e,t,n);var r=n.parent;return r&&(r.type===`global`||r.options.parent&&r.options.parent.type===`global`)&&(n.scoped=!1),!n.selector&&n.scoped===!1&&(n.selector=e),null}function t(e,t){e.type!==`style`||!t||(Xj(e,t),Zj(e,t))}return{onCreateRule:e,onProcessRule:t}}var $j=function(e){return e&&typeof e==`object`&&!Array.isArray(e)},eM=`extendCurrValue`+Date.now();function tM(e,t,n,r){if(typeof e.extend==`string`){if(!n)return;var i=n.getRule(e.extend);if(!i||i===t)return;var a=i.options.parent;if(a){var o=a.rules.raw[e.extend];rM(o,t,n,r)}return}if(Array.isArray(e.extend)){for(var s=0;s<e.extend.length;s++){var c=e.extend[s];rM(typeof c==`string`?y({},e,{extend:c}):e.extend[s],t,n,r)}return}for(var l in e.extend){if(l===`extend`){rM(e.extend.extend,t,n,r);continue}if($j(e.extend[l])){l in r||(r[l]={}),rM(e.extend[l],t,n,r[l]);continue}r[l]=e.extend[l]}}function nM(e,t,n,r){for(var i in e)if(i!==`extend`){if($j(r[i])&&$j(e[i])){rM(e[i],t,n,r[i]);continue}if($j(e[i])){r[i]=rM(e[i],t,n);continue}r[i]=e[i]}}function rM(e,t,n,r){return r===void 0&&(r={}),tM(e,t,n,r),nM(e,t,n,r),r}function iM(){function e(e,t,n){return`extend`in e?rM(e,t,n):e}function t(e,t,n){if(t!==`extend`)return e;if(e==null||e===!1){for(var r in n[eM])n.prop(r,null);return n[eM]=null,null}if(typeof e==`object`){for(var i in e)n.prop(i,e[i]);n[eM]=e}return null}return{onProcessStyle:e,onChangeValue:t}}var aM=/\s*,\s*/g,oM=/&/g,sM=/\$([\w-]+)/g;function cM(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(aM),r=e.split(aM),i=``,a=0;a<n.length;a++)for(var o=n[a],s=0;s<r.length;s++){var c=r[s];i&&(i+=`, `),i+=c.indexOf(`&`)===-1?o+` `+c:c.replace(oM,o)}return i}function n(e,t,n){if(n)return y({},n,{index:n.index+1});var r=e.options.nestingLevel;r=r===void 0?1:r+1;var i=y({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}function r(r,i,a){if(i.type!==`style`)return r;var o=i,s=o.options.parent,c,l;for(var u in r){var d=u.indexOf(`&`)!==-1,f=u[0]===`@`;if(!(!d&&!f)){if(c=n(o,s,c),d){var p=t(u,o.selector);l||=e(s,a),p=p.replace(sM,l);var m=o.key+`-`+u;`replaceRule`in s?s.replaceRule(m,r[u],y({},c,{selector:p})):s.addRule(m,r[u],y({},c,{selector:p}))}else f&&s.addRule(u,{},c).addRule(o.key,r[u],{selector:o.selector});delete r[u]}}return r}return{onProcessStyle:r}}function lM(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(!lM(e,t[n]))return!1;return!0}if(t.indexOf(` `)>-1)return lM(e,t.split(` `));var r=e.options.parent;if(t[0]===`$`){var i=r.getRule(t.substr(1));return!i||i===e?!1:(r.classes[e.key]+=` `+r.classes[i.key],!0)}return r.classes[e.key]+=` `+t,!0}function uM(){function e(e,t){return`composes`in e?(lM(t,e.composes),delete e.composes,e):e}return{onProcessStyle:e}}var dM=/[A-Z]/g,fM=/^ms-/,pM={};function mM(e){return`-`+e.toLowerCase()}function hM(e){if(pM.hasOwnProperty(e))return pM[e];var t=e.replace(dM,mM);return pM[e]=fM.test(t)?`-`+t:t}function gM(e){var t={};for(var n in e){var r=n.indexOf(`--`)===0?n:hM(n);t[r]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(gM):t.fallbacks=gM(e.fallbacks)),t}function _M(){function e(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=gM(e[t]);return e}return gM(e)}function t(e,t,n){if(t.indexOf(`--`)===0)return e;var r=hM(t);return t===r?e:(n.prop(r,e),null)}return{onProcessStyle:e,onChangeValue:t}}var $=Aj&&CSS?CSS.px:`px`,vM=Aj&&CSS?CSS.ms:`ms`,yM=Aj&&CSS?CSS.percent:`%`,bM={"animation-delay":vM,"animation-duration":vM,"background-position":$,"background-position-x":$,"background-position-y":$,"background-size":$,border:$,"border-bottom":$,"border-bottom-left-radius":$,"border-bottom-right-radius":$,"border-bottom-width":$,"border-left":$,"border-left-width":$,"border-radius":$,"border-right":$,"border-right-width":$,"border-top":$,"border-top-left-radius":$,"border-top-right-radius":$,"border-top-width":$,"border-width":$,"border-block":$,"border-block-end":$,"border-block-end-width":$,"border-block-start":$,"border-block-start-width":$,"border-block-width":$,"border-inline":$,"border-inline-end":$,"border-inline-end-width":$,"border-inline-start":$,"border-inline-start-width":$,"border-inline-width":$,"border-start-start-radius":$,"border-start-end-radius":$,"border-end-start-radius":$,"border-end-end-radius":$,margin:$,"margin-bottom":$,"margin-left":$,"margin-right":$,"margin-top":$,"margin-block":$,"margin-block-end":$,"margin-block-start":$,"margin-inline":$,"margin-inline-end":$,"margin-inline-start":$,padding:$,"padding-bottom":$,"padding-left":$,"padding-right":$,"padding-top":$,"padding-block":$,"padding-block-end":$,"padding-block-start":$,"padding-inline":$,"padding-inline-end":$,"padding-inline-start":$,"mask-position-x":$,"mask-position-y":$,"mask-size":$,height:$,width:$,"min-height":$,"max-height":$,"min-width":$,"max-width":$,bottom:$,left:$,top:$,right:$,inset:$,"inset-block":$,"inset-block-end":$,"inset-block-start":$,"inset-inline":$,"inset-inline-end":$,"inset-inline-start":$,"box-shadow":$,"text-shadow":$,"column-gap":$,"column-rule":$,"column-rule-width":$,"column-width":$,"font-size":$,"font-size-delta":$,"letter-spacing":$,"text-decoration-thickness":$,"text-indent":$,"text-stroke":$,"text-stroke-width":$,"word-spacing":$,motion:$,"motion-offset":$,outline:$,"outline-offset":$,"outline-width":$,perspective:$,"perspective-origin-x":yM,"perspective-origin-y":yM,"transform-origin":yM,"transform-origin-x":yM,"transform-origin-y":yM,"transform-origin-z":yM,"transition-delay":vM,"transition-duration":vM,"vertical-align":$,"flex-basis":$,"shape-margin":$,size:$,gap:$,grid:$,"grid-gap":$,"row-gap":$,"grid-row-gap":$,"grid-column-gap":$,"grid-template-rows":$,"grid-template-columns":$,"grid-auto-rows":$,"grid-auto-columns":$,"box-shadow-x":$,"box-shadow-y":$,"box-shadow-blur":$,"box-shadow-spread":$,"font-line-height":$,"text-shadow-x":$,"text-shadow-y":$,"text-shadow-blur":$};function xM(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var SM=xM(bM);function CM(e,t,n){if(t==null)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=CM(e,t[r],n);else if(typeof t==`object`)if(e===`fallbacks`)for(var i in t)t[i]=CM(i,t[i],n);else for(var a in t)t[a]=CM(e+`-`+a,t[a],n);else if(typeof t==`number`&&isNaN(t)===!1){var o=n[e]||SM[e];return o&&!(t===0&&o===$)?typeof o==`function`?o(t).toString():``+t+o:t.toString()}return t}function wM(e){e===void 0&&(e={});var t=xM(e);function n(e,n){if(n.type!==`style`)return e;for(var r in e)e[r]=CM(r,e[r],t);return e}function r(e,n){return CM(n,e,t)}return{onProcessStyle:n,onChangeValue:r}}var TM={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},EM={position:!0,size:!0},DM={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},OM={border:{radius:`border-radius`,image:`border-image`,width:`border-width`,style:`border-style`,color:`border-color`},"border-bottom":{width:`border-bottom-width`,style:`border-bottom-style`,color:`border-bottom-color`},"border-top":{width:`border-top-width`,style:`border-top-style`,color:`border-top-color`},"border-left":{width:`border-left-width`,style:`border-left-style`,color:`border-left-color`},"border-right":{width:`border-right-width`,style:`border-right-style`,color:`border-right-color`},background:{size:`background-size`,image:`background-image`},font:{style:`font-style`,variant:`font-variant`,weight:`font-weight`,stretch:`font-stretch`,size:`font-size`,family:`font-family`,lineHeight:`line-height`,"line-height":`line-height`},flex:{grow:`flex-grow`,basis:`flex-basis`,direction:`flex-direction`,wrap:`flex-wrap`,flow:`flex-flow`,shrink:`flex-shrink`},align:{self:`align-self`,items:`align-items`,content:`align-content`},grid:{"template-columns":`grid-template-columns`,templateColumns:`grid-template-columns`,"template-rows":`grid-template-rows`,templateRows:`grid-template-rows`,"template-areas":`grid-template-areas`,templateAreas:`grid-template-areas`,template:`grid-template`,"auto-columns":`grid-auto-columns`,autoColumns:`grid-auto-columns`,"auto-rows":`grid-auto-rows`,autoRows:`grid-auto-rows`,"auto-flow":`grid-auto-flow`,autoFlow:`grid-auto-flow`,row:`grid-row`,column:`grid-column`,"row-start":`grid-row-start`,rowStart:`grid-row-start`,"row-end":`grid-row-end`,rowEnd:`grid-row-end`,"column-start":`grid-column-start`,columnStart:`grid-column-start`,"column-end":`grid-column-end`,columnEnd:`grid-column-end`,area:`grid-area`,gap:`grid-gap`,"row-gap":`grid-row-gap`,rowGap:`grid-row-gap`,"column-gap":`grid-column-gap`,columnGap:`grid-column-gap`}};function kM(e,t,n){return e.map(function(e){return jM(e,t,n,!1,!0)})}function AM(e,t,n,r){return n[t]==null?e:e.length===0?[]:Array.isArray(e[0])?AM(e[0],t,n,r):typeof e[0]==`object`?kM(e,t,r):[e]}function jM(e,t,n,r,i){if(!(DM[t]||OM[t]))return[];var a=[];if(OM[t]&&(e=MM(e,n,OM[t],r)),Object.keys(e).length)for(var o in DM[t]){if(e[o]){Array.isArray(e[o])?a.push(EM[o]===null?e[o]:e[o].join(` `)):a.push(e[o]);continue}DM[t][o]!=null&&a.push(DM[t][o])}return!a.length||i?a:[a]}function MM(e,t,n,r){for(var i in n){var a=n[i];if(e[i]!==void 0&&(r||!t.prop(a))){var o,s=NM((o={},o[a]=e[i],o),t)[a];r?t.style.fallbacks[a]=s:t.style[a]=s}delete e[i]}return e}function NM(e,t,n){for(var r in e){var i=e[r];if(Array.isArray(i)){if(!Array.isArray(i[0])){if(r===`fallbacks`){for(var a=0;a<e.fallbacks.length;a++)e.fallbacks[a]=NM(e.fallbacks[a],t,!0);continue}e[r]=AM(i,r,TM,t),e[r].length||delete e[r]}}else if(typeof i==`object`){if(r===`fallbacks`){e.fallbacks=NM(e.fallbacks,t,!0);continue}e[r]=jM(i,r,t,n),e[r].length||delete e[r]}else e[r]===``&&delete e[r]}return e}function PM(){function e(e,t){if(!e||t.type!==`style`)return e;if(Array.isArray(e)){for(var n=0;n<e.length;n++)e[n]=NM(e[n],t);return e}return NM(e,t)}return{onProcessStyle:e}}function FM(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 IM(e){if(Array.isArray(e))return FM(e)}function LM(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function RM(e,t){if(e){if(typeof e==`string`)return FM(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)?FM(e,t):void 0}}function zM(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
175
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BM(e){return IM(e)||LM(e)||RM(e)||zM()}var VM=``,HM=``,UM=``,WM=``,GM=mA&&`ontouchstart`in document.documentElement;if(mA){var KM={Moz:`-moz-`,ms:`-ms-`,O:`-o-`,Webkit:`-webkit-`},qM=document.createElement(`p`).style,JM=`Transform`;for(var YM in KM)if(YM+JM in qM){VM=YM,HM=KM[YM];break}VM===`Webkit`&&`msHyphens`in qM&&(VM=`ms`,HM=KM.ms,WM=`edge`),VM===`Webkit`&&`-apple-trailing-word`in qM&&(UM=`apple`)}var XM={js:VM,css:HM,vendor:UM,browser:WM,isTouch:GM};function ZM(e){return e[1]===`-`||XM.js===`ms`?e:`@`+XM.css+`keyframes`+e.substr(10)}var QM={noPrefill:[`appearance`],supportedProperty:function(e){return e===`appearance`?XM.js===`ms`?`-webkit-`+e:XM.css+e:!1}},$M={noPrefill:[`color-adjust`],supportedProperty:function(e){return e===`color-adjust`?XM.js===`Webkit`?XM.css+`print-`+e:e:!1}},eN=/[-\s]+(.)?/g;function tN(e,t){return t?t.toUpperCase():``}function nN(e){return e.replace(eN,tN)}function rN(e){return nN(`-`+e)}var iN={noPrefill:[`mask`],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if(XM.js===`Webkit`){var n=`mask-image`;if(nN(n)in t)return e;if(XM.js+rN(n)in t)return XM.css+e}return e}},aN={noPrefill:[`text-orientation`],supportedProperty:function(e){return e===`text-orientation`?XM.vendor===`apple`&&!XM.isTouch?XM.css+e:e:!1}},oN={noPrefill:[`transform`],supportedProperty:function(e,t,n){return e===`transform`?n.transform?e:XM.css+e:!1}},sN={noPrefill:[`transition`],supportedProperty:function(e,t,n){return e===`transition`?n.transition?e:XM.css+e:!1}},cN={noPrefill:[`writing-mode`],supportedProperty:function(e){return e===`writing-mode`?XM.js===`Webkit`||XM.js===`ms`&&XM.browser!==`edge`?XM.css+e:e:!1}},lN={noPrefill:[`user-select`],supportedProperty:function(e){return e===`user-select`?XM.js===`Moz`||XM.js===`ms`||XM.vendor===`apple`?XM.css+e:e:!1}},uN={supportedProperty:function(e,t){return/^break-/.test(e)?XM.js===`Webkit`?`WebkitColumn`+rN(e)in t&&XM.css+`column-`+e:XM.js===`Moz`&&`page`+rN(e)in t&&`page-`+e:!1}},dN={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(XM.js===`Moz`)return e;var n=e.replace(`-inline`,``);return XM.js+rN(n)in t&&XM.css+n}},fN={supportedProperty:function(e,t){return nN(e)in t&&e}},pN={supportedProperty:function(e,t){var n=rN(e);return e[0]===`-`||e[0]===`-`&&e[1]===`-`?e:XM.js+n in t?XM.css+e:XM.js!==`Webkit`&&`Webkit`+n in t&&`-webkit-`+e}},mN={supportedProperty:function(e){return e.substring(0,11)===`scroll-snap`?XM.js===`ms`?``+XM.css+e:e:!1}},hN={supportedProperty:function(e){return e===`overscroll-behavior`?XM.js===`ms`?XM.css+`scroll-chaining`:e:!1}},gN={"flex-grow":`flex-positive`,"flex-shrink":`flex-negative`,"flex-basis":`flex-preferred-size`,"justify-content":`flex-pack`,order:`flex-order`,"align-items":`flex-align`,"align-content":`flex-line-pack`},_N={supportedProperty:function(e,t){var n=gN[e];return n?XM.js+rN(n)in t&&XM.css+n:!1}},vN={flex:`box-flex`,"flex-grow":`box-flex`,"flex-direction":[`box-orient`,`box-direction`],order:`box-ordinal-group`,"align-items":`box-align`,"flex-flow":[`box-orient`,`box-direction`],"justify-content":`box-pack`},yN=Object.keys(vN),bN=function(e){return XM.css+e},xN=[QM,$M,iN,aN,oN,sN,cN,lN,uN,dN,fN,pN,mN,hN,_N,{supportedProperty:function(e,t,n){var r=n.multiple;if(yN.indexOf(e)>-1){var i=vN[e];if(!Array.isArray(i))return XM.js+rN(i)in t&&XM.css+i;if(!r)return!1;for(var a=0;a<i.length;a++)if(!(XM.js+rN(i[0])in t))return!1;return i.map(bN)}return!1}}],SN=xN.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),CN=xN.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,BM(t.noPrefill)),e},[]),wN,TN={};if(mA){wN=document.createElement(`p`);var EN=window.getComputedStyle(document.documentElement,``);for(var DN in EN)isNaN(DN)||(TN[EN[DN]]=EN[DN]);CN.forEach(function(e){return delete TN[e]})}function ON(e,t){if(t===void 0&&(t={}),!wN)return e;if(TN[e]!=null)return TN[e];(e===`transition`||e===`transform`)&&(t[e]=e in wN.style);for(var n=0;n<SN.length&&(TN[e]=SN[n](e,wN.style,t),!TN[e]);n++);try{wN.style[e]=``}catch{return!1}return TN[e]}var kN={},AN={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},jN=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,MN;function NN(e,t,n){return t===`var`?`var`:t===`all`?`all`:n===`all`?`, all`:(t?ON(t):`, `+ON(n))||t||n}mA&&(MN=document.createElement(`p`));function PN(e,t){var n=t;if(!MN||e===`content`)return t;if(typeof n!=`string`||!isNaN(parseInt(n,10)))return n;var r=e+n;if(kN[r]!=null)return kN[r];try{MN.style[e]=n}catch{return kN[r]=!1,!1}if(AN[e])n=n.replace(jN,NN);else if(MN.style[e]===``&&(n=XM.css+n,n===`-ms-flex`&&(MN.style[e]=`-ms-flexbox`),MN.style[e]=n,MN.style[e]===``))return kN[r]=!1,!1;return MN.style[e]=``,kN[r]=n,kN[r]}function FN(){function e(e){if(e.type===`keyframes`){var t=e;t.at=ZM(t.at)}}function t(e){for(var n in e){var r=e[n];if(n===`fallbacks`&&Array.isArray(r)){e[n]=r.map(t);continue}var i=!1,a=ON(n);a&&a!==n&&(i=!0);var o=!1,s=PN(a,xA(r));s&&s!==r&&(o=!0),(i||o)&&(i&&delete e[n],e[a||n]=s||r)}return e}function n(e,n){return n.type===`style`?t(e):e}function r(e,t){return PN(t,xA(e))||e}return{onProcessRule:e,onProcessStyle:n,onChangeValue:r}}function IN(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if(n.type!==`style`)return t;for(var r={},i=Object.keys(t).sort(e),a=0;a<i.length;a++)r[i[a]]=t[i[a]];return r}}}var LN=function(e){return e===void 0&&(e={}),{plugins:[Fj(),zj(e.observable),Uj(),Qj(),iM(),cM(),uM(),_M(),wM(e.defaultUnit),PM(),FN(),IN()]}},RN=1e4,zN=Oj(LN()),BN=function(e){e===void 0&&(e=zN);var t=new Map,n=0,r,i=function(){return(!r||r.rules.index.length>RN)&&(r=e.createStyleSheet().attach()),r};function a(){var e=arguments,r=JSON.stringify(e),a=t.get(r);if(a)return a.className;var o=[];for(var s in e){var c=e[s];if(!Array.isArray(c)){o.push(c);continue}for(var l=0;l<c.length;l++)o.push(c[l])}for(var u={},d=[],f=0;f<o.length;f++){var p=o[f];if(p){var m=p;if(typeof p==`string`){var h=t.get(p);h&&(h.labels.length&&d.push.apply(d,h.labels),m=h.style)}m.label&&d.indexOf(m.label)===-1&&d.push(m.label),Object.assign(u,m)}}delete u.label;var g=(d.length===0?`css`:d.join(`-`))+`-`+n++;i().addRule(g,u);var _=i().classes[g],v={style:u,labels:d,className:_};return t.set(r,v),t.set(_,v),_}return a.getSheet=i,a}(),VN=function(e){return e.displayName||e.name||`Component`},HN=function(e){var t,n;return function(){for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];if(Array.isArray(t)&&i.length===t.length){for(var o=!0,s=0;s<i.length;s++)i[s]!==t[s]&&(o=!1);if(o)return n}return t=i,n=e.apply(void 0,i),n}},UN=function(e,t){var n=y({},e);for(var r in t)n[r]=r in n?n[r]+` `+t[r]:t[r];return n},WN=-(2**53-1)||-1e9,GN=function(){return WN++},KN=(0,L.createContext)({classNamePrefix:``,disableStylesGeneration:!1,isSSR:!mA}),qN=new Map,JN=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new kj),n[t];var r=qN.get(t);return r||(r=new kj,qN.set(t,r)),r},YN=function(e){var t=e.sheet,n=e.context,r=e.index,i=e.theme;t&&(JN(n,r).manage(i),n.registry&&n.registry.add(t))},XN=function(e){e.sheet&&JN(e.context,e.index).unmanage(e.theme)},ZN=Oj(LN()),QN=new WeakMap,$N=function(e){return QN.get(e)},eP=function(e,t){QN.set(e,t)},tP=function(e){var t=e.styles;return typeof t==`function`?t(e.theme):t};function nP(e,t){var n;e.context.id&&e.context.id.minify!=null&&(n=e.context.id.minify);var r=e.context.classNamePrefix||``;e.name&&!n&&(r+=e.name.replace(/\s/g,`-`)+`-`);var i=``;return e.name&&(i=e.name+`, `),i+=typeof e.styles==`function`?`Themed`:`Unthemed`,y({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:r,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}var rP=function(e){if(!e.context.disableStylesGeneration){var t=JN(e.context,e.index),n=t.get(e.theme);if(n)return n;var r=e.context.jss||ZN,i=tP(e),a=jj(i),o=r.createStyleSheet(i,nP(e,a!==null));return eP(o,{dynamicStyles:a,styles:i}),t.add(e.theme,o),o}},iP=function(e,t){for(var n in t)e.deleteRule(t[n])},aP=function(e,t,n){for(var r in n)t.updateOne(n[r],e)},oP=function(e,t){var n=$N(e);if(n){var r={};for(var i in n.dynamicStyles)for(var a=e.rules.index.length,o=e.addRule(i,n.dynamicStyles[i]),s=a;s<e.rules.index.length;s++){var c=e.rules.index[s];e.updateOne(c,t),r[o===c?i:c.key]=c}return r}},sP=function(e,t){if(!t)return e.classes;var n=$N(e);if(!n)return e.classes;var r={};for(var i in n.styles)r[i]=e.classes[i],i in t&&(r[i]+=` `+e.classes[t[i].key]);return r};function cP(e){return e?L.useEffect:L.useInsertionEffect||L.useLayoutEffect}var lP={},uP=function(e,t){t===void 0&&(t={});var n=t,r=n.index,i=r===void 0?GN():r,a=n.theming,o=n.name,s=is(n,[`index`,`theming`,`name`]),c=a&&a.context||dA,l=function(t){return typeof e==`function`&&(t||(0,L.useContext)(c))||lP},u={};return function(t){var n=(0,L.useRef)(!0),r=(0,L.useContext)(KN),a=l(t&&t.theme),c=(0,L.useMemo)(function(){var n=rP({context:r,styles:e,name:o,theme:a,index:i,sheetOptions:s});return n&&r.isSSR&&YN({index:i,context:r,sheet:n,theme:a}),[n,n?oP(n,t):null]},[r,a]),d=c[0],f=c[1];cP(r.isSSR)(function(){d&&f&&!n.current&&aP(t,d,f)},[t]),cP(r.isSSR)(function(){return d&&YN({index:i,context:r,sheet:d,theme:a}),function(){d&&(XN({index:i,context:r,sheet:d,theme:a}),f&&iP(d,f))}},[d]);var p=(0,L.useMemo)(function(){return d&&f?sP(d,f):u},[d,f]);return(0,L.useDebugValue)(p),(0,L.useDebugValue)(a===lP?`No theme`:a),(0,L.useEffect)(function(){n.current=!1}),p}},dP=function(e){return e.children||null},fP=function(e,t){t===void 0&&(t={});var n=t,r=n.index,i=r===void 0?GN():r,a=n.theming,o=n.injectTheme,s=is(n,[`index`,`theming`,`injectTheme`]),c=a?a.context:dA;return function(t){t===void 0&&(t=dP);var n=VN(t),r=HN(function(e,t){return t?UN(e,t):e}),l=uP(e,Object.assign(s,{theming:a,index:i,name:n})),u=(0,L.forwardRef)(function(e,n){var i=(0,L.useContext)(c),a=y({},e);o&&a.theme==null&&(a.theme=i);var s=r(l(a),e.classes);return(0,L.createElement)(t,y({},a,{classes:s,ref:n}))});return u.displayName=`WithStyles(`+n+`)`,u.defaultProps=y({},t.defaultProps),u.InnerComponent=t,(0,kt.default)(u,t)}};(function(e){return e===void 0&&(e=BN),function(t,n){var r=arguments;if(n&&n.css){var i=e(n.css),a=Object.assign({},n);a.className=n.className?n.className+` `+i:i,delete a.css,r[1]=a}return L.createElement.apply(void 0,r)}})();var pP={root:{strokeWidth:2,stroke:yw()}};function mP({y:e,width:t,classes:n}){return(0,z.jsx)(`line`,{x1:0,y1:e,x2:t,y2:e,className:n.root})}mP.propTypes={y:R.number.isRequired,width:R.number.isRequired,classes:R.object.isRequired};var hP=fP(pP)(mP),gP=V(`text`)({userSelect:`none`,textAlign:`center`,fill:yw()}),_P=V(`line`)({stroke:yw()}),vP=R.shape({major:(e,t)=>{},minor:(e,t,n)=>{if(e[t]<=0)return Error(`Invalid prop ${t} must be > 0. ${n}`)}}).isRequired,yP=class extends L.Component{static propTypes={y:R.number.isRequired,x:R.number.isRequired,major:R.bool,fraction:R.bool,xScale:R.func,type:R.string};static defaultProps={major:!1};constructor(e){super(e),this.wasRendered=!1,this.state={textBox:{width:0,height:0,x:0,y:0}},this.resizeObserver=null}updateTextBox(){if(this.text){let{width:e,height:t,x:n,y:r}=this.text.getBBox();this.text.setAttribute(`x`,e/2*-1),this.setState({textBox:{width:e,height:t,x:n,y:r}})}}componentDidMount(){this.resizeObserver=new ResizeObserver(()=>{this.updateTextBox()}),this.text&&this.resizeObserver.observe(this.text)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}render(){let{x:e,y:t,type:n,xScale:r,fraction:i}=this.props,a=i?Number(e.n):e.n,o=i?Number(e.d):e.d,s=i?Number(e.s):e.s,c=i&&a!==o&&a!==0&&o!==1,l=n===`major`,u=l?20:10,{width:d=0,height:f=0,x:p=0,y:m=0}=this.state.textBox,h=i?c?(0,z.jsxs)(L.Fragment,{children:[(0,z.jsx)(`tspan`,{x:`0`,dy:`0.71em`,children:a*s}),(0,z.jsx)(`tspan`,{x:`0`,dy:`1.11em`,children:o})]}):a*s:Number(e.toFixed(3));return(0,z.jsxs)(`g`,{opacity:`1`,transform:`translate(${r(e)}, ${t})`,children:[(0,z.jsx)(_P,{y1:u/2*-1,y2:u/2,x1:`0.5`,x2:`0.5`}),c&&(0,z.jsx)(_P,{x1:p,x2:p+d,y1:m+f/2,y2:m+f/2}),l&&(0,z.jsx)(gP,{ref:e=>this.text=e,y:`14`,width:`10`,dy:`0.71em`,textAnchor:c&&`middle`,children:h})]})}},bP=class extends L.Component{static contextTypes={xScale:R.func.isRequired};static propTypes={domain:R.shape({min:R.number.isRequired,max:R.number.isRequired}).isRequired,fraction:R.bool,width:R.number,ticks:vP,y:R.number.isRequired};render(){let{domain:e,width:t,ticks:n,y:r,fraction:i}=this.props,{xScale:a}=this.context;return(0,z.jsx)(`g`,{children:tv(e,t,n,{fraction:i}).map(({x:e,type:t})=>(0,z.jsx)(yP,{fraction:i,x:e,y:r,type:t,xScale:a},`${e}-${t}-${i}`))})}};function xP(e){let t=[new SP(e)];this.add=function(n){let r=t.find(e=>e.add(n));return t.indexOf(r)===-1&&(r=new SP(e),t.push(r),r.add(n)),t.indexOf(r)}}function SP(e){let t=[];this.add=function(i){let a=r(i);return a.left<e.min||a.right>e.max||t.some(e=>n(e,a))?!1:(t.push(i),!0)},this.elements=function(){return t};let n=(e,t)=>{let n=r(e),i=t.left<n.left&&t.right<n.left,a=t.left>n.right&&t.right>n.right;return!(i||a)},r=t=>{let{type:n,position:r}=t;switch(n){case`point`:return{left:r,right:r};case`line`:return r;case`ray`:return t.direction===`positive`?{left:r,right:e.max}:{left:e.min,right:r};default:return null}}}var CP=200,wP=`fade-transition`,TP=`
|
|
176
|
+
.${wP}-appear {
|
|
177
177
|
opacity: 0;
|
|
178
178
|
}
|
|
179
|
-
.${
|
|
179
|
+
.${wP}-appear-active {
|
|
180
180
|
opacity: 1;
|
|
181
|
-
transition: opacity ${
|
|
181
|
+
transition: opacity ${CP}ms ease-in;
|
|
182
182
|
}
|
|
183
|
-
.${
|
|
183
|
+
.${wP}-enter {
|
|
184
184
|
opacity: 0;
|
|
185
185
|
}
|
|
186
|
-
.${
|
|
186
|
+
.${wP}-enter-active {
|
|
187
187
|
opacity: 1;
|
|
188
|
-
transition: opacity ${
|
|
188
|
+
transition: opacity ${CP}ms ease-in;
|
|
189
189
|
}
|
|
190
|
-
.${
|
|
190
|
+
.${wP}-exit {
|
|
191
191
|
opacity: 1;
|
|
192
192
|
}
|
|
193
|
-
.${
|
|
193
|
+
.${wP}-exit-active {
|
|
194
194
|
opacity: 0;
|
|
195
|
-
transition: opacity ${
|
|
195
|
+
transition: opacity ${CP}ms ease-in;
|
|
196
196
|
}
|
|
197
|
-
`,wP=e=>{let t=(0,L.useRef)(null),n=L.Children.only(e.children);return(0,L.useEffect)(()=>{if(!document.getElementById(`${SP}-styles`)){let e=document.createElement(`style`);e.id=`${SP}-styles`,e.textContent=CP,document.head.appendChild(e)}},[]),(0,z.jsx)(Os,{...e,nodeRef:t,appear:!0,classNames:{enter:`${SP}-enter`,enterActive:`${SP}-enter-active`,exit:`${SP}-exit`,exitActive:`${SP}-exit-active`,appear:`${SP}-appear`,appearActive:`${SP}-appear-active`},timeout:xP,children:(0,z.jsx)(`g`,{ref:t,children:n})})};wP.propTypes={children:R.node,in:R.bool,mountOnEnter:R.bool,unmountOnExit:R.bool,appear:R.bool,enter:R.bool,exit:R.bool,timeout:R.oneOfType([R.number,R.shape({enter:R.number,exit:R.number})]),addEndListener:R.func,onEnter:R.func,onEntering:R.func,onEntered:R.func,onExit:R.func,onExiting:R.func,onExited:R.func};var TP=(e,t,n,r)=>{if(e===void 0||t===void 0||n===void 0)throw Error(`missing min/max/width`);return ib().domain([e,t]).range([r,n-r])},EP=class extends L.Component{static childContextTypes={xScale:R.func.isRequired,snapValue:R.func.isRequired};static propTypes={domain:R.shape({min:R.number.isRequired,max:R.number.isRequired}).isRequired,ticks:R.shape({minor:R.number,major:R.number}).isRequired,fraction:R.bool,width:R.number.isRequired,height:R.number.isRequired,onToggleElement:R.func.isRequired,onMoveElement:R.func.isRequired,onAddElement:R.func.isRequired,debug:R.bool,elements:R.array,disabled:R.bool,onDeselectElements:R.func,arrows:R.shape({left:R.bool,right:R.bool})};static defaultProps={debug:!1};constructor(e){super(e),this.state={}}xScaleFn(){let{domain:e,width:t}=this.props,{max:n,min:r}=e||{},i=20;return n&&(i=n.toString().length*4+15),TP(r,n,t,i)}snapValueFn(){let{domain:e,ticks:t}=this.props;return tv.bind(null,e.min,e.max,t.minor)}getChildContext(){return{xScale:this.xScaleFn(),snapValue:this.snapValueFn()}}onRectClick(e){let{elements:t,disabled:n}=this.props;if(!n)if(t.some(e=>e.selected))this.props.onDeselectElements();else{let t=aS(e,this.rect),n=this.xScaleFn().invert(t[0]);this.addElement(n)}}componentDidMount(){rS(this.rect).on(`click`,this.onRectClick.bind(this))}addElement(e){let t=this.snapValueFn()(e);this.props.onAddElement(t)}render(){let{domain:e,width:t,ticks:n,height:r,onToggleElement:i,onMoveElement:a,disabled:o,fraction:s}=this.props,{arrows:c}=this.props;c||={left:!0,right:!0};let{min:l,max:u}=e;if(e.max<=e.min)return(0,z.jsxs)(`div`,{children:[e.max,` is less than or equal to `,e.min]});{let d=r-30,f=new yP(e),p=this.props.elements.map((e,r)=>{let s=f.add(e);if(s===-1)throw Error(`stack index is -1, cant add element`);let c={key:r,y:d-s*25,selected:e.selected&&!o,interval:n.minor,disabled:o,correct:e.correct},p=i.bind(null,r,e),m=a.bind(null,r,e);if(e.type===`line`){let t={left:e.leftPoint===`empty`,right:e.rightPoint===`empty`};return(0,L.createElement)(Kk,{...c,domain:{min:l,max:u},onMoveLine:m,onToggleSelect:p,position:e.position,empty:t,key:r})}else if(e.type===`point`){let t={left:l-e.position,right:u-e.position};return(0,L.createElement)(Hk,{...c,empty:e.pointType===`empty`,position:e.position,bounds:t,onClick:p,onMove:m,key:r})}else if(e.type===`ray`)return(0,L.createElement)(eA,{...c,domain:{min:l,max:u},direction:e.direction,position:e.position,onMove:m,onToggleSelect:p,width:t,empty:e.pointType===`empty`,key:r})});return(0,z.jsx)(Pk,{children:(0,z.jsx)(`div`,{style:{display:`inline-block`},children:(0,z.jsxs)(`svg`,{width:t,height:s?r+20:r,children:[!1,(0,z.jsx)(pP,{y:d,width:t}),c.left&&(0,z.jsx)(Zk,{y:d}),c.right&&(0,z.jsx)(Zk,{x:t,y:d,direction:`right`}),(0,z.jsx)(vP,{y:d,domain:e,width:t,ticks:n,fraction:s}),(0,z.jsx)(`rect`,{ref:e=>this.rect=e,fill:_w(),fillOpacity:`0.0`,width:t,height:r}),(0,z.jsx)(Ls,{component:`g`,children:p.map((e,t)=>(0,z.jsx)(wP,{children:e},t))})]})})})}}},DP=`height ease-in 300ms, opacity ease-in 300ms`,OP=V(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:DP,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:DP,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),kP=e=>{let{show:t,children:n,className:r}=e,i=(0,L.useRef)(null);return(0,z.jsx)(Os,{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)(OP,{ref:i,className:r,children:n})})};kP.propTypes={show:R.bool.isRequired,className:R.string,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired};function AP(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function jP(e,t){return!e||AP(e)?e:AP(e.default)?e.default:t&&AP(e[t])?e[t]:t&&AP(e[t]?.default)?e[t].default:e}var MP=jP(DE,`Readable`)||jP(FP.Readable,`Readable`),NP=rD,PP=NP.default,FP=PP&&typeof PP==`object`?PP:NP,{translator:IP}=jl,LP={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},RP=V(`div`)(()=>({width:`100%`,cursor:`pointer`})),zP=V(`div`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`})),BP=V(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${iw()})`,fontWeight:`normal`,...LP})),VP=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`}})),HP=V(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),UP=class e extends L.Component{static propTypes={onToggle:R.func,toggled:R.bool,show:R.bool,hideMessage:R.string,showMessage:R.string,className:R.string,language:R.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=L.createRef(),this.closedIconRef=L.createRef(),e.defaultProps={...e.defaultProps,showMessage:IP.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:IP.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:IP.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:IP.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,z.jsx)(RP,{className:e,children:(0,z.jsx)(kP,{show:this.state.show,children:(0,z.jsxs)(zP,{onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,z.jsxs)(HP,{children:[(0,z.jsx)(Os,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,z.jsx)(VP,{ref:this.openIconRef,children:(0,z.jsx)(xS,{open:t},`correct-open`)})}),(0,z.jsx)(Os,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,z.jsx)(VP,{ref:this.closedIconRef,children:(0,z.jsx)(xS,{open:t},`correct-closed`)})})]}),(0,z.jsx)(MP,{false:!0,children:(0,z.jsx)(BP,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}},WP=e=>{switch(e){case`unanswered`:return OS;case`correct`:return _S;case`incorrect`:return wS;case`partial`:return jS;case`info`:return IS;default:return}},GP=V(`div`)(({$type:e})=>({marginTop:`10px`,backgroundColor:`#dddddd`,padding:`10px`,display:`flex`,alignItems:`center`,...e===`correct`&&{backgroundColor:cw()},...e===`incorrect`&&{backgroundColor:fw()},"& svg":{height:`30px`},"& h1":{padding:`0px`,margin:`0px`}})),KP=V(`span`)({paddingLeft:`5px`,userSelect:`none`}),qP=e=>{let{type:t,width:n,message:r}=e,i=WP(t),a=(0,L.useRef)(null);return(0,z.jsx)(Ls,{children:(0,z.jsx)(Os,{classNames:`fb`,timeout:300,nodeRef:a,children:(0,z.jsxs)(GP,{ref:a,$type:t,style:{width:n},children:[(0,z.jsx)(i,{iconSet:`emoji`,shape:`square`}),(0,z.jsx)(KP,{dangerouslySetInnerHTML:{__html:r}})]},`panel`)},`fb`)})};qP.propTypes={width:R.number,message:R.string,type:R.string};function JP(e,t,n,r){if(t.startsWith(`p`))return{position:e,type:`point`,pointType:t.endsWith(`e`)?`empty`:`full`};if(t.startsWith(`l`)){let i=e+r<=n.max?e:e-r,a=i+r;return{type:`line`,leftPoint:t.charAt(1)===`e`?`empty`:`full`,rightPoint:t.charAt(2)===`e`?`empty`:`full`,position:{left:i,right:a}}}else if(t.startsWith(`r`)){let n=t.charAt(1)===`f`;return{type:`ray`,direction:t.charAt(2)===`p`?`positive`:`negative`,pointType:n?`full`:`empty`,position:e}}}function YP(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function XP(e,t){return!e||YP(e)?e:YP(e.default)?e.default:t&&YP(e[t])?e[t]:t&&YP(e[t]?.default)?e[t].default:e}var ZP=XP(XT,`UiLayout`)||XP(nF.UiLayout,`UiLayout`),QP=XP(EE,`PreviewPrompt`)||XP(nF.PreviewPrompt,`PreviewPrompt`),$P=XP(BT,`Collapsible`)||XP(nF.Collapsible,`Collapsible`),eF=rD,tF=eF.default,nF=tF&&typeof tF==`object`?tF:eF,{translator:rF}=jl,iF=V(ZP)(({$colorContrast:e})=>({color:iw(),backgroundColor:Ew(),...e===`black_on_rose`&&{backgroundColor:`mistyrose`},...e===`white_on_black`&&{backgroundColor:`black`,"--correct-answer-toggle-label-color":`white`,"--tick-color":`white`,"--line-stroke":`white`,"--arrow-color":`white`,"--point-stroke":`white`,"--point-fill":`black`}})),aF=V(`div`)(({$colorContrast:e})=>({boxSizing:`unset`,color:iw(),backgroundColor:Ew(),...e===`black_on_rose`&&{backgroundColor:`mistyrose`},...e===`white_on_black`&&{backgroundColor:`black`,"--correct-answer-toggle-label-color":`white`,"--tick-color":`white`,"--line-stroke":`white`,"--arrow-color":`white`,"--point-stroke":`white`,"--point-fill":`black`}})),oF=V(`div`)({textAlign:`center`,pointerEvents:`none`,userSelect:`none`}),sF=V(`div`)({marginBottom:`16px`}),cF=V(`div`)({verticalAlign:`middle`,marginBottom:`16px`}),lF=V($P)(({theme:e})=>({paddingBottom:e.spacing(2)})),uF=class extends L.Component{static propTypes={onMoveElement:R.func.isRequired,onDeleteElements:R.func.isRequired,onAddElement:R.func.isRequired,onUndoElement:R.func.isRequired,onClearElements:R.func.isRequired,model:R.object.isRequired,answer:R.array};constructor(e,t){super(e,t);let n=e.model.graph?e.model.graph.initialType:null;n=n?n.toLowerCase():ql.DEFAULT_TYPE,this.state={selectedElements:[],elementType:n,answers:e.answer}}toggleElement(e){let t=[];t=this.state.selectedElements.indexOf(e)===-1?this.state.selectedElements.concat([e]):this.state.selectedElements.filter(t=>t!==e),this.setState({selectedElements:t})}elementTypeSelected(e){this.setState({elementType:e})}addElement(e){if(this.hasMaxNoOfPoints()){this.setState({showMaxPointsWarning:!0}),setTimeout(()=>{this.setState({showMaxPointsWarning:!1})},2e3);return}let{ticks:t,domain:n,availableTypes:r}=this.props.model.graph;if(r&&!r[this.state.elementType.toUpperCase()])return;let i=JP(e,this.state.elementType,n,t.minor);if(i){let{answers:e}=this.state;e.some(e=>I_(e,i))||(e.push(i),this.setState({answers:e}),this.props.onAddElement(i))}}hasMaxNoOfPoints(){let{answer:e,model:{graph:{maxNumberOfPoints:t}}}=this.props;return L_(t)&&t>0&&(e||[]).length>=t}UNSAFE_componentWillReceiveProps(e){let{answer:t}=e;I_(this.state.answers,t)||this.setState({showCorrectAnswer:!1,answers:t})}deselectElements(){this.setState({selectedElements:[]})}getSize(e,t,n,r){let{model:{graph:i}}=this.props;return i&&i[e]?Math.max(t,Math.min(n,i[e])):r}undo(){let{answers:e}=this.state,{onUndoElement:t}=this.props;e.pop(),this.setState({answers:e}),t()}clearAll(){let{onClearElements:e}=this.props;this.setState({answers:[]}),e()}render(){let{model:e,onDeleteElements:t,onMoveElement:n,minWidth:r=400,maxWidth:i=1600,maxHeight:a}=this.props,{showCorrectAnswer:o,answers:s,selectedElements:c,showMaxPointsWarning:l,elementType:u}=this.state,{corrected:d={correct:[],incorrect:[]},disabled:f,extraCSSRules:p,graph:m,correctResponse:h,prompt:g,emptyAnswer:_,feedback:v,colorContrast:y,language:b,teacherInstructions:x}=e,S=this.addElement.bind(this),C=!f&&c&&c.length>0,{ticks:w,domain:T,arrows:E,maxNumberOfPoints:D,height:O=100,availableTypes:k,title:A,fraction:j}=m,M=this.getSize(`width`,r,i,600),N=x&&(jE(x)||NE(x)),P={disabled:f,domain:T,ticks:w,width:M,height:(O>a?a:O)||100,arrows:E,fraction:j},ee=o&&h?(h||[]).map(e=>(e.correct=!0,e)):(s||[]).map((e,t)=>{let n=N_(e);return n.selected=c.indexOf(t)!==-1,d.correct.includes(t)?n.correct=!0:d.incorrect.includes(t)?n.correct=!1:n.correct=void 0,n}),te=()=>D==1?rF.t(`numberLine.addElementLimit_one`,{lng:b,count:1}):rF.t(`numberLine.addElementLimit_other`,{lng:b,count:D}),ne=()=>{t(c),s=s.filter((e,t)=>!c.some(e=>e===t)),this.setState({selectedElements:[],answers:s})},F=()=>{if(k)return Object.keys(k).filter(e=>k[e]).map(e=>e.toLowerCase())},re=e=>{this.setState({showCorrectAnswer:e})},I=P.width-20;return(0,z.jsxs)(iF,{extraCSSRules:p,$colorContrast:y,children:[N&&(0,z.jsx)(lF,{labels:{hidden:`Show Teacher Instructions`,visible:`Hide Teacher Instructions`},children:(0,z.jsx)(QP,{prompt:x})}),g&&(0,z.jsx)(cF,{children:(0,z.jsx)(QP,{prompt:g})}),(0,z.jsxs)(aF,{$colorContrast:y,style:{width:M},children:[(0,z.jsx)(sF,{style:{width:I},children:(0,z.jsx)(UP,{show:P_(h)&&h.length&&!_,toggled:o,onToggle:re,initialValue:!1,language:b})}),!f&&(0,z.jsx)(ql,{elementType:u,showDeleteButton:C,onDeleteClick:ne,onElementType:this.elementTypeSelected.bind(this),onClearElements:this.clearAll.bind(this),onUndoElement:this.undo.bind(this),icons:F(),language:b}),(0,z.jsx)(EP,{...P,elements:ee,onAddElement:S,onMoveElement:n,onToggleElement:this.toggleElement.bind(this),onDeselectElements:this.deselectElements.bind(this),debug:!1}),A&&(0,z.jsx)(oF,{dangerouslySetInnerHTML:{__html:A}}),l&&(0,z.jsx)(qP,{type:`info`,width:I,message:te()}),v&&!o&&(0,z.jsx)(qP,{...v,width:I})]})]})}},dF=o((e=>{var t=ms();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}))(),fF=class extends HTMLElement{constructor(){super(),this._root=null,this._mathObserver=null,this._mathRenderPending=!1}_scheduleMathRender=()=>{this._mathRenderPending||(this._mathRenderPending=!0,requestAnimationFrame(()=>{this._mathObserver&&this._mathObserver.disconnect(),LT(this),this._mathRenderPending=!1,setTimeout(()=>{this._mathObserver&&this._mathObserver.observe(this,{childList:!0,subtree:!0,characterData:!1})},50)}))};_initMathObserver(){this._mathObserver||(this._mathObserver=new MutationObserver(()=>{this._scheduleMathRender()}),this._mathObserver.observe(this,{childList:!0,subtree:!0,characterData:!1}))}_disconnectMathObserver(){this._mathObserver&&=(this._mathObserver.disconnect(),null)}set model(e){this._model=e,this._applyInitialElements(),this._render(),this.dispatch(`model-set`)}set session(e){this._session=e,this._applyInitialElements(),this._render()}get session(){return this._session}connectedCallback(){this._initMathObserver(),this._render()}isComplete(){return this._session?(this._session.answer||[]).length>0:!1}dispatch(e){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:{complete:this.isComplete()}}))}dispatchSessionChanged(){this.dispatch(`session-changed`)}addElement(e){this._session&&(this._session.answer=this._session.answer||[],this._session.answer.push(p(e)),this.dispatchSessionChanged(),this._render())}moveElement(e,t,n){if(!this._session.answer[e])throw Error(`cant find element at index: `,e);if(t.type===`line`&&n.left===n.right){this._render();return}t.position=n;let r=t.type===`line`&&u(t)?d(t):t;this._session.answer.splice(e,1,p(r)),this.dispatchSessionChanged(),this._render()}deleteElements(e){this._session.answer=this._session.answer.filter((t,n)=>!e.some(e=>e===n)),this.dispatchSessionChanged(),this._render()}undoElement(){this._session.answer.pop(),this.dispatchSessionChanged(),this._render()}clearElements(){this._session.answer=[],this.dispatchSessionChanged(),this._render()}_applyInitialElements(){this._model&&this._model.graph&&this._model.graph.initialElements&&this._session&&(!this._session.answer||!this._session.answer.length)&&(this._session.answer=N_(this._model.graph.initialElements))}_render(){if(this._model&&this._session){this._session.answer||this._applyInitialElements();let e=(this._session.answer||[]).map(m),t=N_(this._model);t.correctResponse=t.correctResponse&&t.correctResponse.map(m);let n={model:t,answer:e,onAddElement:this.addElement.bind(this),onMoveElement:this.moveElement.bind(this),onDeleteElements:this.deleteElements.bind(this),onUndoElement:this.undoElement.bind(this),onClearElements:this.clearElements.bind(this)},r=L.createElement(uF,n);this._root||=(0,dF.createRoot)(this),this._root.render(r),this._scheduleMathRender()}}disconnectedCallback(){this._disconnectMathObserver(),this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`number-line-element`)&&customElements.define(`number-line-element`,fF),fF})();
|
|
197
|
+
`,EP=e=>{let t=(0,L.useRef)(null),n=L.Children.only(e.children);return(0,L.useEffect)(()=>{if(!document.getElementById(`${wP}-styles`)){let e=document.createElement(`style`);e.id=`${wP}-styles`,e.textContent=TP,document.head.appendChild(e)}},[]),(0,z.jsx)(Os,{...e,nodeRef:t,appear:!0,classNames:{enter:`${wP}-enter`,enterActive:`${wP}-enter-active`,exit:`${wP}-exit`,exitActive:`${wP}-exit-active`,appear:`${wP}-appear`,appearActive:`${wP}-appear-active`},timeout:CP,children:(0,z.jsx)(`g`,{ref:t,children:n})})};EP.propTypes={children:R.node,in:R.bool,mountOnEnter:R.bool,unmountOnExit:R.bool,appear:R.bool,enter:R.bool,exit:R.bool,timeout:R.oneOfType([R.number,R.shape({enter:R.number,exit:R.number})]),addEndListener:R.func,onEnter:R.func,onEntering:R.func,onEntered:R.func,onExit:R.func,onExiting:R.func,onExited:R.func};var DP=(e,t,n,r)=>{if(e===void 0||t===void 0||n===void 0)throw Error(`missing min/max/width`);return ob().domain([e,t]).range([r,n-r])},OP=class extends L.Component{static childContextTypes={xScale:R.func.isRequired,snapValue:R.func.isRequired};static propTypes={domain:R.shape({min:R.number.isRequired,max:R.number.isRequired}).isRequired,ticks:R.shape({minor:R.number,major:R.number}).isRequired,fraction:R.bool,width:R.number.isRequired,height:R.number.isRequired,onToggleElement:R.func.isRequired,onMoveElement:R.func.isRequired,onAddElement:R.func.isRequired,debug:R.bool,elements:R.array,disabled:R.bool,onDeselectElements:R.func,arrows:R.shape({left:R.bool,right:R.bool})};static defaultProps={debug:!1};constructor(e){super(e),this.state={}}xScaleFn(){let{domain:e,width:t}=this.props,{max:n,min:r}=e||{},i=20;return n&&(i=n.toString().length*4+15),DP(r,n,t,i)}snapValueFn(){let{domain:e,ticks:t}=this.props;return rv.bind(null,e.min,e.max,t.minor)}getChildContext(){return{xScale:this.xScaleFn(),snapValue:this.snapValueFn()}}onRectClick(e){let{elements:t,disabled:n}=this.props;if(!n)if(t.some(e=>e.selected))this.props.onDeselectElements();else{let t=sS(e,this.rect),n=this.xScaleFn().invert(t[0]);this.addElement(n)}}componentDidMount(){aS(this.rect).on(`click`,this.onRectClick.bind(this))}addElement(e){let t=this.snapValueFn()(e);this.props.onAddElement(t)}render(){let{domain:e,width:t,ticks:n,height:r,onToggleElement:i,onMoveElement:a,disabled:o,fraction:s}=this.props,{arrows:c}=this.props;c||={left:!0,right:!0};let{min:l,max:u}=e;if(e.max<=e.min)return(0,z.jsxs)(`div`,{children:[e.max,` is less than or equal to `,e.min]});{let d=r-30,f=new xP(e),p=this.props.elements.map((e,r)=>{let s=f.add(e);if(s===-1)throw Error(`stack index is -1, cant add element`);let c={key:r,y:d-s*25,selected:e.selected&&!o,interval:n.minor,disabled:o,correct:e.correct},p=i.bind(null,r,e),m=a.bind(null,r,e);if(e.type===`line`){let t={left:e.leftPoint===`empty`,right:e.rightPoint===`empty`};return(0,L.createElement)(Jk,{...c,domain:{min:l,max:u},onMoveLine:m,onToggleSelect:p,position:e.position,empty:t,key:r})}else if(e.type===`point`){let t={left:l-e.position,right:u-e.position};return(0,L.createElement)(Wk,{...c,empty:e.pointType===`empty`,position:e.position,bounds:t,onClick:p,onMove:m,key:r})}else if(e.type===`ray`)return(0,L.createElement)(nA,{...c,domain:{min:l,max:u},direction:e.direction,position:e.position,onMove:m,onToggleSelect:p,width:t,empty:e.pointType===`empty`,key:r})});return(0,z.jsx)(Ik,{children:(0,z.jsx)(`div`,{style:{display:`inline-block`},children:(0,z.jsxs)(`svg`,{width:t,height:s?r+20:r,children:[!1,(0,z.jsx)(hP,{y:d,width:t}),c.left&&(0,z.jsx)($k,{y:d}),c.right&&(0,z.jsx)($k,{x:t,y:d,direction:`right`}),(0,z.jsx)(bP,{y:d,domain:e,width:t,ticks:n,fraction:s}),(0,z.jsx)(`rect`,{ref:e=>this.rect=e,fill:yw(),fillOpacity:`0.0`,width:t,height:r}),(0,z.jsx)(Ls,{component:`g`,children:p.map((e,t)=>(0,z.jsx)(EP,{children:e},t))})]})})})}}},kP=`height ease-in 300ms, opacity ease-in 300ms`,AP=V(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:kP,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:kP,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),jP=e=>{let{show:t,children:n,className:r}=e,i=(0,L.useRef)(null);return(0,z.jsx)(Os,{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)(AP,{ref:i,className:r,children:n})})};jP.propTypes={show:R.bool.isRequired,className:R.string,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired};function MP(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function NP(e,t){return!e||MP(e)?e:MP(e.default)?e.default:t&&MP(e[t])?e[t]:t&&MP(e[t]?.default)?e[t].default:e}var PP=NP(kE,`Readable`)||NP(LP.Readable,`Readable`),FP=aD,IP=FP.default,LP=IP&&typeof IP==`object`?IP:FP,{translator:RP}=Nl,zP={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},BP=V(`div`)(()=>({width:`100%`,cursor:`pointer`})),VP=V(`div`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`})),HP=V(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${ow()})`,fontWeight:`normal`,...zP})),UP=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`}})),WP=V(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),GP=class e extends L.Component{static propTypes={onToggle:R.func,toggled:R.bool,show:R.bool,hideMessage:R.string,showMessage:R.string,className:R.string,language:R.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=L.createRef(),this.closedIconRef=L.createRef(),e.defaultProps={...e.defaultProps,showMessage:RP.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:RP.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:RP.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:RP.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,z.jsx)(BP,{className:e,children:(0,z.jsx)(jP,{show:this.state.show,children:(0,z.jsxs)(VP,{onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,z.jsxs)(WP,{children:[(0,z.jsx)(Os,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,z.jsx)(UP,{ref:this.openIconRef,children:(0,z.jsx)(CS,{open:t},`correct-open`)})}),(0,z.jsx)(Os,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,z.jsx)(UP,{ref:this.closedIconRef,children:(0,z.jsx)(CS,{open:t},`correct-closed`)})})]}),(0,z.jsx)(PP,{false:!0,children:(0,z.jsx)(HP,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}},KP=e=>{switch(e){case`unanswered`:return AS;case`correct`:return yS;case`incorrect`:return ES;case`partial`:return NS;case`info`:return RS;default:return}},qP=V(`div`)(({$type:e})=>({marginTop:`10px`,backgroundColor:`#dddddd`,padding:`10px`,display:`flex`,alignItems:`center`,...e===`correct`&&{backgroundColor:uw()},...e===`incorrect`&&{backgroundColor:mw()},"& svg":{height:`30px`},"& h1":{padding:`0px`,margin:`0px`}})),JP=V(`span`)({paddingLeft:`5px`,userSelect:`none`}),YP=e=>{let{type:t,width:n,message:r}=e,i=KP(t),a=(0,L.useRef)(null);return(0,z.jsx)(Ls,{children:(0,z.jsx)(Os,{classNames:`fb`,timeout:300,nodeRef:a,children:(0,z.jsxs)(qP,{ref:a,$type:t,style:{width:n},children:[(0,z.jsx)(i,{iconSet:`emoji`,shape:`square`}),(0,z.jsx)(JP,{dangerouslySetInnerHTML:{__html:r}})]},`panel`)},`fb`)})};YP.propTypes={width:R.number,message:R.string,type:R.string};function XP(e,t,n,r){if(t.startsWith(`p`))return{position:e,type:`point`,pointType:t.endsWith(`e`)?`empty`:`full`};if(t.startsWith(`l`)){let i=e+r<=n.max?e:e-r,a=i+r;return{type:`line`,leftPoint:t.charAt(1)===`e`?`empty`:`full`,rightPoint:t.charAt(2)===`e`?`empty`:`full`,position:{left:i,right:a}}}else if(t.startsWith(`r`)){let n=t.charAt(1)===`f`;return{type:`ray`,direction:t.charAt(2)===`p`?`positive`:`negative`,pointType:n?`full`:`empty`,position:e}}}function ZP(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function QP(e,t){return!e||ZP(e)?e:ZP(e.default)?e.default:t&&ZP(e[t])?e[t]:t&&ZP(e[t]?.default)?e[t].default:e}var $P=QP(QT,`UiLayout`)||QP(iF.UiLayout,`UiLayout`),eF=QP(OE,`PreviewPrompt`)||QP(iF.PreviewPrompt,`PreviewPrompt`),tF=QP(HT,`Collapsible`)||QP(iF.Collapsible,`Collapsible`),nF=aD,rF=nF.default,iF=rF&&typeof rF==`object`?rF:nF,{translator:aF}=Nl,oF=V($P)(({$colorContrast:e})=>({color:ow(),backgroundColor:Ow(),...e===`black_on_rose`&&{backgroundColor:`mistyrose`},...e===`white_on_black`&&{backgroundColor:`black`,"--correct-answer-toggle-label-color":`white`,"--tick-color":`white`,"--line-stroke":`white`,"--arrow-color":`white`,"--point-stroke":`white`,"--point-fill":`black`}})),sF=V(`div`)(({$colorContrast:e})=>({boxSizing:`unset`,color:ow(),backgroundColor:Ow(),...e===`black_on_rose`&&{backgroundColor:`mistyrose`},...e===`white_on_black`&&{backgroundColor:`black`,"--correct-answer-toggle-label-color":`white`,"--tick-color":`white`,"--line-stroke":`white`,"--arrow-color":`white`,"--point-stroke":`white`,"--point-fill":`black`}})),cF=V(`div`)({textAlign:`center`,pointerEvents:`none`,userSelect:`none`}),lF=V(`div`)({marginBottom:`16px`}),uF=V(`div`)({verticalAlign:`middle`,marginBottom:`16px`}),dF=V(tF)(({theme:e})=>({paddingBottom:e.spacing(2)})),fF=class extends L.Component{static propTypes={onMoveElement:R.func.isRequired,onDeleteElements:R.func.isRequired,onAddElement:R.func.isRequired,onUndoElement:R.func.isRequired,onClearElements:R.func.isRequired,model:R.object.isRequired,answer:R.array};constructor(e,t){super(e,t);let n=e.model.graph?e.model.graph.initialType:null;n=n?n.toLowerCase():Yl.DEFAULT_TYPE,this.state={selectedElements:[],elementType:n,answers:e.answer}}toggleElement(e){let t=[];t=this.state.selectedElements.indexOf(e)===-1?this.state.selectedElements.concat([e]):this.state.selectedElements.filter(t=>t!==e),this.setState({selectedElements:t})}elementTypeSelected(e){this.setState({elementType:e})}addElement(e){if(this.hasMaxNoOfPoints()){this.setState({showMaxPointsWarning:!0}),setTimeout(()=>{this.setState({showMaxPointsWarning:!1})},2e3);return}let{ticks:t,domain:n,availableTypes:r}=this.props.model.graph;if(r&&!r[this.state.elementType.toUpperCase()])return;let i=XP(e,this.state.elementType,n,t.minor);if(i){let{answers:e}=this.state;e.some(e=>R_(e,i))||(e.push(i),this.setState({answers:e}),this.props.onAddElement(i))}}hasMaxNoOfPoints(){let{answer:e,model:{graph:{maxNumberOfPoints:t}}}=this.props;return z_(t)&&t>0&&(e||[]).length>=t}UNSAFE_componentWillReceiveProps(e){let{answer:t}=e;R_(this.state.answers,t)||this.setState({showCorrectAnswer:!1,answers:t})}deselectElements(){this.setState({selectedElements:[]})}getSize(e,t,n,r){let{model:{graph:i}}=this.props;return i&&i[e]?Math.max(t,Math.min(n,i[e])):r}undo(){let{answers:e}=this.state,{onUndoElement:t}=this.props;e.pop(),this.setState({answers:e}),t()}clearAll(){let{onClearElements:e}=this.props;this.setState({answers:[]}),e()}render(){let{model:e,onDeleteElements:t,onMoveElement:n,minWidth:r=400,maxWidth:i=1600,maxHeight:a}=this.props,{showCorrectAnswer:o,answers:s,selectedElements:c,showMaxPointsWarning:l,elementType:u}=this.state,{corrected:d={correct:[],incorrect:[]},disabled:f,extraCSSRules:p,graph:m,correctResponse:h,prompt:g,emptyAnswer:_,feedback:v,colorContrast:y,language:b,teacherInstructions:x}=e,S=this.addElement.bind(this),C=!f&&c&&c.length>0,{ticks:w,domain:T,arrows:E,maxNumberOfPoints:D,height:O=100,availableTypes:k,title:A,fraction:j}=m,M=this.getSize(`width`,r,i,600),N=x&&(NE(x)||FE(x)),P={disabled:f,domain:T,ticks:w,width:M,height:(O>a?a:O)||100,arrows:E,fraction:j},ee=o&&h?(h||[]).map(e=>(e.correct=!0,e)):(s||[]).map((e,t)=>{let n=F_(e);return n.selected=c.indexOf(t)!==-1,d.correct.includes(t)?n.correct=!0:d.incorrect.includes(t)?n.correct=!1:n.correct=void 0,n}),te=()=>D==1?aF.t(`numberLine.addElementLimit_one`,{lng:b,count:1}):aF.t(`numberLine.addElementLimit_other`,{lng:b,count:D}),ne=()=>{t(c),s=s.filter((e,t)=>!c.some(e=>e===t)),this.setState({selectedElements:[],answers:s})},F=()=>{if(k)return Object.keys(k).filter(e=>k[e]).map(e=>e.toLowerCase())},re=e=>{this.setState({showCorrectAnswer:e})},I=P.width-20;return(0,z.jsxs)(oF,{extraCSSRules:p,$colorContrast:y,children:[N&&(0,z.jsx)(dF,{labels:{hidden:`Show Teacher Instructions`,visible:`Hide Teacher Instructions`},children:(0,z.jsx)(eF,{prompt:x})}),g&&(0,z.jsx)(uF,{children:(0,z.jsx)(eF,{prompt:g})}),(0,z.jsxs)(sF,{$colorContrast:y,style:{width:M},children:[(0,z.jsx)(lF,{style:{width:I},children:(0,z.jsx)(GP,{show:I_(h)&&h.length&&!_,toggled:o,onToggle:re,initialValue:!1,language:b})}),!f&&(0,z.jsx)(Yl,{elementType:u,showDeleteButton:C,onDeleteClick:ne,onElementType:this.elementTypeSelected.bind(this),onClearElements:this.clearAll.bind(this),onUndoElement:this.undo.bind(this),icons:F(),language:b}),(0,z.jsx)(OP,{...P,elements:ee,onAddElement:S,onMoveElement:n,onToggleElement:this.toggleElement.bind(this),onDeselectElements:this.deselectElements.bind(this),debug:!1}),A&&(0,z.jsx)(cF,{dangerouslySetInnerHTML:{__html:A}}),l&&(0,z.jsx)(YP,{type:`info`,width:I,message:te()}),v&&!o&&(0,z.jsx)(YP,{...v,width:I})]})]})}},pF=o((e=>{var t=ms();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}))(),mF=class extends HTMLElement{constructor(){super(),this._root=null,this._mathObserver=null,this._mathRenderPending=!1}_scheduleMathRender=()=>{this._mathRenderPending||(this._mathRenderPending=!0,requestAnimationFrame(()=>{this._mathObserver&&this._mathObserver.disconnect(),zT(this),this._mathRenderPending=!1,setTimeout(()=>{this._mathObserver&&this._mathObserver.observe(this,{childList:!0,subtree:!0,characterData:!1})},50)}))};_initMathObserver(){this._mathObserver||(this._mathObserver=new MutationObserver(()=>{this._scheduleMathRender()}),this._mathObserver.observe(this,{childList:!0,subtree:!0,characterData:!1}))}_disconnectMathObserver(){this._mathObserver&&=(this._mathObserver.disconnect(),null)}set model(e){this._model=e,this._applyInitialElements(),this._render(),this.dispatch(`model-set`)}set session(e){this._session=e,this._applyInitialElements(),this._render()}get session(){return this._session}connectedCallback(){this._initMathObserver(),this._render()}isComplete(){return this._session?(this._session.answer||[]).length>0:!1}dispatch(e){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:{complete:this.isComplete()}}))}dispatchSessionChanged(){this.dispatch(`session-changed`)}addElement(e){this._session&&(this._session.answer=this._session.answer||[],this._session.answer.push(p(e)),this.dispatchSessionChanged(),this._render())}moveElement(e,t,n){if(!this._session.answer[e])throw Error(`cant find element at index: `,e);if(t.type===`line`&&n.left===n.right){this._render();return}t.position=n;let r=t.type===`line`&&u(t)?d(t):t;this._session.answer.splice(e,1,p(r)),this.dispatchSessionChanged(),this._render()}deleteElements(e){this._session.answer=this._session.answer.filter((t,n)=>!e.some(e=>e===n)),this.dispatchSessionChanged(),this._render()}undoElement(){this._session.answer.pop(),this.dispatchSessionChanged(),this._render()}clearElements(){this._session.answer=[],this.dispatchSessionChanged(),this._render()}_applyInitialElements(){this._model&&this._model.graph&&this._model.graph.initialElements&&this._session&&(!this._session.answer||!this._session.answer.length)&&(this._session.answer=F_(this._model.graph.initialElements))}_render(){if(this._model&&this._session){this._session.answer||this._applyInitialElements();let e=(this._session.answer||[]).map(m),t=F_(this._model);t.correctResponse=t.correctResponse&&t.correctResponse.map(m);let n={model:t,answer:e,onAddElement:this.addElement.bind(this),onMoveElement:this.moveElement.bind(this),onDeleteElements:this.deleteElements.bind(this),onUndoElement:this.undoElement.bind(this),onClearElements:this.clearElements.bind(this)},r=L.createElement(fF,n);this._root||=(0,pF.createRoot)(this),this._root.render(r),this._scheduleMathRender()}}disconnectedCallback(){this._disconnectMathObserver(),this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`number-line-element`)&&customElements.define(`number-line-element`,mF),mF})();
|