@dao42/d42paas-front 0.7.16 → 0.7.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DaoPaaS.es.js +0 -19
- package/dist/DaoPaaS.umd.js +20 -20
- package/package.json +1 -1
package/dist/DaoPaaS.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var n$t=Object.defineProperty,i$t=Object.defineProperties;var r$t=Object.getOwnPropertyDescriptors;var xF=Object.getOwnPropertySymbols;var FLe=Object.prototype.hasOwnProperty,BLe=Object.prototype.propertyIsEnumerable;var XZ=(Un,rr,Ot)=>rr in Un?n$t(Un,rr,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Un[rr]=Ot,Te=(Un,rr)=>{for(var Ot in rr||(rr={}))FLe.call(rr,Ot)&&XZ(Un,Ot,rr[Ot]);if(xF)for(var Ot of xF(rr))BLe.call(rr,Ot)&&XZ(Un,Ot,rr[Ot]);return Un},
|
|
1
|
+
var n$t=Object.defineProperty,i$t=Object.defineProperties;var r$t=Object.getOwnPropertyDescriptors;var xF=Object.getOwnPropertySymbols;var FLe=Object.prototype.hasOwnProperty,BLe=Object.prototype.propertyIsEnumerable;var XZ=(Un,rr,Ot)=>rr in Un?n$t(Un,rr,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Un[rr]=Ot,Te=(Un,rr)=>{for(var Ot in rr||(rr={}))FLe.call(rr,Ot)&&XZ(Un,Ot,rr[Ot]);if(xF)for(var Ot of xF(rr))BLe.call(rr,Ot)&&XZ(Un,Ot,rr[Ot]);return Un},st=(Un,rr)=>i$t(Un,r$t(rr));var gr=(Un,rr)=>{var Ot={};for(var Jo in Un)FLe.call(Un,Jo)&&rr.indexOf(Jo)<0&&(Ot[Jo]=Un[Jo]);if(Un!=null&&xF)for(var Jo of xF(Un))rr.indexOf(Jo)<0&&BLe.call(Un,Jo)&&(Ot[Jo]=Un[Jo]);return Ot};var Qi=(Un,rr,Ot)=>(XZ(Un,typeof rr!="symbol"?rr+"":rr,Ot),Ot);(function(Un,rr){typeof exports=="object"&&typeof module!="undefined"?rr(exports):typeof define=="function"&&define.amd?define(["exports"],rr):(Un=typeof globalThis!="undefined"?globalThis:Un||self,rr(Un.DaoPaaS={}))})(this,function(Un){"use strict";function rr(n,e){return e.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(i){if(i!=="default"&&!(i in n)){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}})}),Object.freeze(n)}var Ot=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Jo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function qD(n){if(n.__esModule)return n;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(n).forEach(function(t){var i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:function(){return n[t]}})}),e}var O={exports:{}},_i={};/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
@@ -31,16 +31,16 @@ object-assign
|
|
|
31
31
|
Error generating stack: `+o.message+`
|
|
32
32
|
`+o.stack}return{value:n,source:e,stack:r}}function m8(n,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var KDe=typeof WeakMap=="function"?WeakMap:Map;function qJ(n,e,t){t=hp(-1,t),t.tag=3,t.payload={element:null};var i=e.value;return t.callback=function(){zI||(zI=!0,k8=i),m8(n,e)},t}function KJ(n,e,t){t=hp(-1,t),t.tag=3;var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var r=e.value;t.payload=function(){return m8(n,e),i(r)}}var o=n.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){typeof i!="function"&&(Bd===null?Bd=new Set([this]):Bd.add(this),m8(n,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),t}var GDe=typeof WeakSet=="function"?WeakSet:Set;function GJ(n){var e=n.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(t){bp(n,t)}else e.current=null}function YDe(n,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(e.flags&256&&n!==null){var t=n.memoizedProps,i=n.memoizedState;n=e.stateNode,e=n.getSnapshotBeforeUpdate(e.elementType===e.type?t:Nu(e.type,t),i),n.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&W3(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(bt(163))}function ZDe(n,e,t){switch(t.tag){case 0:case 11:case 15:case 22:if(e=t.updateQueue,e=e!==null?e.lastEffect:null,e!==null){n=e=e.next;do{if((n.tag&3)==3){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}if(e=t.updateQueue,e=e!==null?e.lastEffect:null,e!==null){n=e=e.next;do{var r=n;i=r.next,r=r.tag,(r&4)!=0&&(r&1)!=0&&(cee(t,n),rIe(t,n)),n=i}while(n!==e)}return;case 1:n=t.stateNode,t.flags&4&&(e===null?n.componentDidMount():(i=t.elementType===t.type?e.memoizedProps:Nu(t.type,e.memoizedProps),n.componentDidUpdate(i,e.memoizedState,n.__reactInternalSnapshotBeforeUpdate))),e=t.updateQueue,e!==null&&uJ(t,e,n);return;case 3:if(e=t.updateQueue,e!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}uJ(t,e,n)}return;case 5:n=t.stateNode,e===null&&t.flags&4&&jQ(t.type,t.memoizedProps)&&n.focus();return;case 6:return;case 4:return;case 12:return;case 13:t.memoizedState===null&&(t=t.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&sQ(t))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(bt(163))}function YJ(n,e){for(var t=n;;){if(t.tag===5){var i=t.stateNode;if(e)i=i.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{i=t.stateNode;var r=t.memoizedProps.style;r=r!=null&&r.hasOwnProperty("display")?r.display:null,i.style.display=zX("display",r)}}else if(t.tag===6)t.stateNode.nodeValue=e?"":t.memoizedProps;else if((t.tag!==23&&t.tag!==24||t.memoizedState===null||t===n)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function ZJ(n,e){if(T_&&typeof T_.onCommitFiberUnmount=="function")try{T_.onCommitFiberUnmount(z3,e)}catch{}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(n=e.updateQueue,n!==null&&(n=n.lastEffect,n!==null)){var t=n=n.next;do{var i=t,r=i.destroy;if(i=i.tag,r!==void 0)if((i&4)!=0)cee(e,t);else{i=e;try{r()}catch(o){bp(i,o)}}t=t.next}while(t!==n)}break;case 1:if(GJ(e),n=e.stateNode,typeof n.componentWillUnmount=="function")try{n.props=e.memoizedProps,n.state=e.memoizedState,n.componentWillUnmount()}catch(o){bp(e,o)}break;case 5:GJ(e);break;case 4:eee(n,e)}}function XJ(n){n.alternate=null,n.child=null,n.dependencies=null,n.firstEffect=null,n.lastEffect=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.return=null,n.updateQueue=null}function QJ(n){return n.tag===5||n.tag===3||n.tag===4}function JJ(n){e:{for(var e=n.return;e!==null;){if(QJ(e))break e;e=e.return}throw Error(bt(160))}var t=e;switch(e=t.stateNode,t.tag){case 5:var i=!1;break;case 3:e=e.containerInfo,i=!0;break;case 4:e=e.containerInfo,i=!0;break;default:throw Error(bt(161))}t.flags&16&&(MS(e,""),t.flags&=-17);e:t:for(t=n;;){for(;t.sibling===null;){if(t.return===null||QJ(t.return)){t=null;break e}t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2)){t=t.stateNode;break e}}i?_8(n,t,e):v8(n,t,e)}function _8(n,e,t){var i=n.tag,r=i===5||i===6;if(r)n=r?n.stateNode:n.stateNode.instance,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=_I));else if(i!==4&&(n=n.child,n!==null))for(_8(n,e,t),n=n.sibling;n!==null;)_8(n,e,t),n=n.sibling}function v8(n,e,t){var i=n.tag,r=i===5||i===6;if(r)n=r?n.stateNode:n.stateNode.instance,e?t.insertBefore(n,e):t.appendChild(n);else if(i!==4&&(n=n.child,n!==null))for(v8(n,e,t),n=n.sibling;n!==null;)v8(n,e,t),n=n.sibling}function eee(n,e){for(var t=e,i=!1,r,o;;){if(!i){i=t.return;e:for(;;){if(i===null)throw Error(bt(160));switch(r=i.stateNode,i.tag){case 5:o=!1;break e;case 3:r=r.containerInfo,o=!0;break e;case 4:r=r.containerInfo,o=!0;break e}i=i.return}i=!0}if(t.tag===5||t.tag===6){e:for(var s=n,a=t,l=a;;)if(ZJ(s,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(s=r,a=t.stateNode,s.nodeType===8?s.parentNode.removeChild(a):s.removeChild(a)):r.removeChild(t.stateNode)}else if(t.tag===4){if(t.child!==null){r=t.stateNode.containerInfo,o=!0,t.child.return=t,t=t.child;continue}}else if(ZJ(n,t),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;t=t.return,t.tag===4&&(i=!1)}t.sibling.return=t.return,t=t.sibling}}function b8(n,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var t=e.updateQueue;if(t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do(i.tag&3)==3&&(n=i.destroy,i.destroy=void 0,n!==void 0&&n()),i=i.next;while(i!==t)}return;case 1:return;case 5:if(t=e.stateNode,t!=null){i=e.memoizedProps;var r=n!==null?n.memoizedProps:i;n=e.type;var o=e.updateQueue;if(e.updateQueue=null,o!==null){for(t[bI]=i,n==="input"&&i.type==="radio"&&i.name!=null&&MX(t,i),s3(n,r),e=s3(n,i),r=0;r<o.length;r+=2){var s=o[r],a=o[r+1];s==="style"?UX(t,a):s==="dangerouslySetInnerHTML"?VX(t,a):s==="children"?MS(t,a):HF(t,s,a,e)}switch(n){case"input":JF(t,i);break;case"textarea":$X(t,i);break;case"select":n=t._wrapperState.wasMultiple,t._wrapperState.wasMultiple=!!i.multiple,o=i.value,o!=null?qb(t,!!i.multiple,o,!1):n!==!!i.multiple&&(i.defaultValue!=null?qb(t,!!i.multiple,i.defaultValue,!0):qb(t,!!i.multiple,i.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(bt(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:t=e.stateNode,t.hydrate&&(t.hydrate=!1,sQ(t.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(x8=ia(),YJ(e.child,!0)),tee(e);return;case 19:tee(e);return;case 17:return;case 23:case 24:YJ(e,e.memoizedState!==null);return}throw Error(bt(163))}function tee(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new GDe),e.forEach(function(i){var r=aIe.bind(null,n,i);t.has(i)||(t.add(i),i.then(r,r))})}}function XDe(n,e){return n!==null&&(n=n.memoizedState,n===null||n.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var QDe=Math.ceil,HI=w_.ReactCurrentDispatcher,y8=w_.ReactCurrentOwner,yn=0,Aa=null,es=null,oa=0,A_=0,C8=cp(0),Ms=0,VI=null,h1=0,mx=0,f1=0,w8=0,S8=null,x8=0,E8=1/0;function g1(){E8=ia()+500}var Wt=null,zI=!1,k8=null,Bd=null,pp=!1,_x=null,vx=90,L8=[],T8=[],Cf=null,bx=0,D8=null,UI=-1,wf=0,jI=0,yx=null,qI=!1;function Ql(){return(yn&48)!=0?ia():UI!==-1?UI:UI=ia()}function mp(n){if(n=n.mode,(n&2)==0)return 1;if((n&4)==0)return a1()===99?1:2;if(wf===0&&(wf=h1),$De.transition!==0){jI!==0&&(jI=S8!==null?S8.pendingLanes:0),n=wf;var e=4186112&~jI;return e&=-e,e===0&&(n=4186112&~n,e=n&-n,e===0&&(e=8192)),e}return n=a1(),(yn&4)!=0&&n===98?n=lI(12,wf):(n=VTe(n),n=lI(n,wf)),n}function _p(n,e,t){if(50<bx)throw bx=0,D8=null,Error(bt(185));if(n=KI(n,e),n===null)return null;cI(n,e,t),n===Aa&&(f1|=e,Ms===4&&p1(n,oa));var i=a1();e===1?(yn&8)!=0&&(yn&48)==0?I8(n):(qc(n,t),yn===0&&(g1(),Od())):((yn&4)==0||i!==98&&i!==99||(Cf===null?Cf=new Set([n]):Cf.add(n)),qc(n,t)),S8=n}function KI(n,e){n.lanes|=e;var t=n.alternate;for(t!==null&&(t.lanes|=e),t=n,n=n.return;n!==null;)n.childLanes|=e,t=n.alternate,t!==null&&(t.childLanes|=e),t=n,n=n.return;return t.tag===3?t.stateNode:null}function qc(n,e){for(var t=n.callbackNode,i=n.suspendedLanes,r=n.pingedLanes,o=n.expirationTimes,s=n.pendingLanes;0<s;){var a=31-sp(s),l=1<<a,c=o[a];if(c===-1){if((l&i)==0||(l&r)!=0){c=e,Zb(l);var u=or;o[a]=10<=u?c+250:6<=u?c+5e3:-1}}else c<=e&&(n.expiredLanes|=l);s&=~l}if(i=qS(n,n===Aa?oa:0),e=or,i===0)t!==null&&(t!==K3&&j3(t),n.callbackNode=null,n.callbackPriority=0);else{if(t!==null){if(n.callbackPriority===e)return;t!==K3&&j3(t)}e===15?(t=I8.bind(null,n),vf===null?(vf=[t],xI=U3(SI,sJ)):vf.push(t),t=K3):e===14?t=ix(99,I8.bind(null,n)):(t=zTe(e),t=ix(t,nee.bind(null,n))),n.callbackPriority=e,n.callbackNode=t}}function nee(n){if(UI=-1,jI=wf=0,(yn&48)!=0)throw Error(bt(327));var e=n.callbackNode;if(vp()&&n.callbackNode!==e)return null;var t=qS(n,n===Aa?oa:0);if(t===0)return null;var i=t,r=yn;yn|=16;var o=see();(Aa!==n||oa!==i)&&(g1(),m1(n,i));do try{tIe();break}catch(a){oee(n,a)}while(1);if(Y3(),HI.current=o,yn=r,es!==null?i=0:(Aa=null,oa=0,i=Ms),(h1&f1)!=0)m1(n,0);else if(i!==0){if(i===2&&(yn|=64,n.hydrate&&(n.hydrate=!1,W3(n.containerInfo)),t=fQ(n),t!==0&&(i=Cx(n,t))),i===1)throw e=VI,m1(n,0),p1(n,t),qc(n,ia()),e;switch(n.finishedWork=n.current.alternate,n.finishedLanes=t,i){case 0:case 1:throw Error(bt(345));case 2:O_(n);break;case 3:if(p1(n,t),(t&62914560)===t&&(i=x8+500-ia(),10<i)){if(qS(n,0)!==0)break;if(r=n.suspendedLanes,(r&t)!==t){Ql(),n.pingedLanes|=n.suspendedLanes&r;break}n.timeoutHandle=qQ(O_.bind(null,n),i);break}O_(n);break;case 4:if(p1(n,t),(t&4186112)===t)break;for(i=n.eventTimes,r=-1;0<t;){var s=31-sp(t);o=1<<s,s=i[s],s>r&&(r=s),t&=~o}if(t=r,t=ia()-t,t=(120>t?120:480>t?480:1080>t?1080:1920>t?1920:3e3>t?3e3:4320>t?4320:1960*QDe(t/1960))-t,10<t){n.timeoutHandle=qQ(O_.bind(null,n),t);break}O_(n);break;case 5:O_(n);break;default:throw Error(bt(329))}}return qc(n,ia()),n.callbackNode===e?nee.bind(null,n):null}function p1(n,e){for(e&=~w8,e&=~f1,n.suspendedLanes|=e,n.pingedLanes&=~e,n=n.expirationTimes;0<e;){var t=31-sp(e),i=1<<t;n[t]=-1,e&=~i}}function I8(n){if((yn&48)!=0)throw Error(bt(327));if(vp(),n===Aa&&(n.expiredLanes&oa)!=0){var e=oa,t=Cx(n,e);(h1&f1)!=0&&(e=qS(n,e),t=Cx(n,e))}else e=qS(n,0),t=Cx(n,e);if(n.tag!==0&&t===2&&(yn|=64,n.hydrate&&(n.hydrate=!1,W3(n.containerInfo)),e=fQ(n),e!==0&&(t=Cx(n,e))),t===1)throw t=VI,m1(n,0),p1(n,e),qc(n,ia()),t;return n.finishedWork=n.current.alternate,n.finishedLanes=e,O_(n),qc(n,ia()),null}function JDe(){if(Cf!==null){var n=Cf;Cf=null,n.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,qc(e,ia())})}Od()}function iee(n,e){var t=yn;yn|=1;try{return n(e)}finally{yn=t,yn===0&&(g1(),Od())}}function ree(n,e){var t=yn;yn&=-2,yn|=8;try{return n(e)}finally{yn=t,yn===0&&(g1(),Od())}}function GI(n,e){Kr(C8,A_),A_|=e,h1|=e}function R8(){A_=C8.current,mr(C8)}function m1(n,e){n.finishedWork=null,n.finishedLanes=0;var t=n.timeoutHandle;if(t!==-1&&(n.timeoutHandle=-1,ADe(t)),es!==null)for(t=es.return;t!==null;){var i=t;switch(i.tag){case 1:i=i.type.childContextTypes,i!=null&&CI();break;case 3:u1(),mr(gl),mr(na),i8();break;case 5:e8(i);break;case 4:u1();break;case 13:mr(Gr);break;case 19:mr(Gr);break;case 10:Z3(i);break;case 23:case 24:R8()}t=t.return}Aa=n,es=yp(n.current,null),oa=A_=h1=e,Ms=0,VI=null,w8=f1=mx=0}function oee(n,e){do{var t=es;try{if(Y3(),cx.current=$I,PI){for(var i=vo.memoizedState;i!==null;){var r=i.queue;r!==null&&(r.pending=null),i=i.next}PI=!1}if(ux=0,Ps=ra=vo=null,dx=!1,y8.current=null,t===null||t.return===null){Ms=1,VI=e,es=null;break}e:{var o=n,s=t.return,a=t,l=e;if(e=oa,a.flags|=2048,a.firstEffect=a.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if((a.mode&2)==0){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=(Gr.current&1)!=0,h=s;do{var f;if(f=h.tag===13){var g=h.memoizedState;if(g!==null)f=g.dehydrated!==null;else{var p=h.memoizedProps;f=p.fallback===void 0?!1:p.unstable_avoidThisFallback!==!0?!0:!d}}if(f){var m=h.updateQueue;if(m===null){var v=new Set;v.add(c),h.updateQueue=v}else m.add(c);if((h.mode&2)==0){if(h.flags|=64,a.flags|=16384,a.flags&=-2981,a.tag===1)if(a.alternate===null)a.tag=17;else{var _=hp(-1,1);_.tag=2,fp(a,_)}a.lanes|=1;break e}l=void 0,a=e;var y=o.pingCache;if(y===null?(y=o.pingCache=new KDe,l=new Set,y.set(c,l)):(l=y.get(c),l===void 0&&(l=new Set,y.set(c,l))),!l.has(a)){l.add(a);var b=sIe.bind(null,o,c,a);c.then(b,b)}h.flags|=4096,h.lanes=e;break e}h=h.return}while(h!==null);l=Error((jb(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
33
33
|
|
|
34
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ms!==5&&(Ms=2),l=p8(l,a),h=s;do{switch(h.tag){case 3:o=l,h.flags|=4096,e&=-e,h.lanes|=e;var w=qJ(h,o,e);cJ(h,w);break e;case 1:o=l;var x=h.type,S=h.stateNode;if((h.flags&64)==0&&(typeof x.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Bd===null||!Bd.has(S)))){h.flags|=4096,e&=-e,h.lanes|=e;var k=KJ(h,o,e);cJ(h,k);break e}}h=h.return}while(h!==null)}lee(t)}catch(T){e=T,es===t&&t!==null&&(es=t=t.return);continue}break}while(1)}function see(){var n=HI.current;return HI.current=$I,n===null?$I:n}function Cx(n,e){var t=yn;yn|=16;var i=see();Aa===n&&oa===e||m1(n,e);do try{eIe();break}catch(r){oee(n,r)}while(1);if(Y3(),yn=t,HI.current=i,es!==null)throw Error(bt(261));return Aa=null,oa=0,Ms}function eIe(){for(;es!==null;)aee(es)}function tIe(){for(;es!==null&&!MDe();)aee(es)}function aee(n){var e=dee(n.alternate,n,A_);n.memoizedProps=n.pendingProps,e===null?lee(n):es=e,y8.current=null}function lee(n){var e=n;do{var t=e.alternate;if(n=e.return,(e.flags&2048)==0){if(t=jDe(t,e,A_),t!==null){es=t;return}if(t=e,t.tag!==24&&t.tag!==23||t.memoizedState===null||(A_&1073741824)!=0||(t.mode&4)==0){for(var i=0,r=t.child;r!==null;)i|=r.lanes|r.childLanes,r=r.sibling;t.childLanes=i}n!==null&&(n.flags&2048)==0&&(n.firstEffect===null&&(n.firstEffect=e.firstEffect),e.lastEffect!==null&&(n.lastEffect!==null&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.flags&&(n.lastEffect!==null?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(t=qDe(e),t!==null){t.flags&=2047,es=t;return}n!==null&&(n.firstEffect=n.lastEffect=null,n.flags|=2048)}if(e=e.sibling,e!==null){es=e;return}es=e=n}while(e!==null);Ms===0&&(Ms=5)}function O_(n){var e=a1();return D_(99,nIe.bind(null,n,e)),null}function nIe(n,e){do vp();while(_x!==null);if((yn&48)!=0)throw Error(bt(327));var t=n.finishedWork;if(t===null)return null;if(n.finishedWork=null,n.finishedLanes=0,t===n.current)throw Error(bt(177));n.callbackNode=null;var i=t.lanes|t.childLanes,r=i,o=n.pendingLanes&~r;n.pendingLanes=r,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=r,n.mutableReadLanes&=r,n.entangledLanes&=r,r=n.entanglements;for(var s=n.eventTimes,a=n.expirationTimes;0<o;){var l=31-sp(o),c=1<<l;r[l]=0,s[l]=-1,a[l]=-1,o&=~c}if(Cf!==null&&(i&24)==0&&Cf.has(n)&&Cf.delete(n),n===Aa&&(es=Aa=null,oa=0),1<t.flags?t.lastEffect!==null?(t.lastEffect.nextEffect=t,i=t.firstEffect):i=t:i=t.firstEffect,i!==null){if(r=yn,yn|=32,y8.current=null,F3=uI,s=AQ(),A3(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(c=a.getSelection&&a.getSelection())&&c.rangeCount!==0){a=c.anchorNode,o=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var u=0,d=-1,h=-1,f=0,g=0,p=s,m=null;t:for(;;){for(var v;p!==a||o!==0&&p.nodeType!==3||(d=u+o),p!==l||c!==0&&p.nodeType!==3||(h=u+c),p.nodeType===3&&(u+=p.nodeValue.length),(v=p.firstChild)!==null;)m=p,p=v;for(;;){if(p===s)break t;if(m===a&&++f===o&&(d=u),m===l&&++g===c&&(h=u),(v=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=v}a=d===-1||h===-1?null:{start:d,end:h}}else a=null;a=a||{start:0,end:0}}else a=null;B3={focusedElem:s,selectionRange:a},uI=!1,yx=null,qI=!1,Wt=i;do try{iIe()}catch(T){if(Wt===null)throw Error(bt(330));bp(Wt,T),Wt=Wt.nextEffect}while(Wt!==null);yx=null,Wt=i;do try{for(s=n;Wt!==null;){var _=Wt.flags;if(_&16&&MS(Wt.stateNode,""),_&128){var y=Wt.alternate;if(y!==null){var b=y.ref;b!==null&&(typeof b=="function"?b(null):b.current=null)}}switch(_&1038){case 2:JJ(Wt),Wt.flags&=-3;break;case 6:JJ(Wt),Wt.flags&=-3,b8(Wt.alternate,Wt);break;case 1024:Wt.flags&=-1025;break;case 1028:Wt.flags&=-1025,b8(Wt.alternate,Wt);break;case 4:b8(Wt.alternate,Wt);break;case 8:a=Wt,eee(s,a);var w=a.alternate;XJ(a),w!==null&&XJ(w)}Wt=Wt.nextEffect}}catch(T){if(Wt===null)throw Error(bt(330));bp(Wt,T),Wt=Wt.nextEffect}while(Wt!==null);if(b=B3,y=AQ(),_=b.focusedElem,s=b.selectionRange,y!==_&&_&&_.ownerDocument&&NQ(_.ownerDocument.documentElement,_)){for(s!==null&&A3(_)&&(y=s.start,b=s.end,b===void 0&&(b=y),"selectionStart"in _?(_.selectionStart=y,_.selectionEnd=Math.min(b,_.value.length)):(b=(y=_.ownerDocument||document)&&y.defaultView||window,b.getSelection&&(b=b.getSelection(),a=_.textContent.length,w=Math.min(s.start,a),s=s.end===void 0?w:Math.min(s.end,a),!b.extend&&w>s&&(a=s,s=w,w=a),a=RQ(_,w),o=RQ(_,s),a&&o&&(b.rangeCount!==1||b.anchorNode!==a.node||b.anchorOffset!==a.offset||b.focusNode!==o.node||b.focusOffset!==o.offset)&&(y=y.createRange(),y.setStart(a.node,a.offset),b.removeAllRanges(),w>s?(b.addRange(y),b.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),b.addRange(y)))))),y=[],b=_;b=b.parentNode;)b.nodeType===1&&y.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<y.length;_++)b=y[_],b.element.scrollLeft=b.left,b.element.scrollTop=b.top}uI=!!F3,B3=F3=null,n.current=t,Wt=i;do try{for(_=n;Wt!==null;){var x=Wt.flags;if(x&36&&ZDe(_,Wt.alternate,Wt),x&128){y=void 0;var S=Wt.ref;if(S!==null){var k=Wt.stateNode;switch(Wt.tag){case 5:y=k;break;default:y=k}typeof S=="function"?S(y):S.current=y}}Wt=Wt.nextEffect}}catch(T){if(Wt===null)throw Error(bt(330));bp(Wt,T),Wt=Wt.nextEffect}while(Wt!==null);Wt=null,BDe(),yn=r}else n.current=t;if(pp)pp=!1,_x=n,vx=e;else for(Wt=i;Wt!==null;)e=Wt.nextEffect,Wt.nextEffect=null,Wt.flags&8&&(x=Wt,x.sibling=null,x.stateNode=null),Wt=e;if(i=n.pendingLanes,i===0&&(Bd=null),i===1?n===D8?bx++:(bx=0,D8=n):bx=0,t=t.stateNode,T_&&typeof T_.onCommitFiberRoot=="function")try{T_.onCommitFiberRoot(z3,t,void 0,(t.current.flags&64)==64)}catch{}if(qc(n,ia()),zI)throw zI=!1,n=k8,k8=null,n;return(yn&8)!=0||Od(),null}function iIe(){for(;Wt!==null;){var n=Wt.alternate;qI||yx===null||((Wt.flags&8)!=0?JX(Wt,yx)&&(qI=!0):Wt.tag===13&&XDe(n,Wt)&&JX(Wt,yx)&&(qI=!0));var e=Wt.flags;(e&256)!=0&&YDe(n,Wt),(e&512)==0||pp||(pp=!0,ix(97,function(){return vp(),null})),Wt=Wt.nextEffect}}function vp(){if(vx!==90){var n=97<vx?97:vx;return vx=90,D_(n,oIe)}return!1}function rIe(n,e){L8.push(e,n),pp||(pp=!0,ix(97,function(){return vp(),null}))}function cee(n,e){T8.push(e,n),pp||(pp=!0,ix(97,function(){return vp(),null}))}function oIe(){if(_x===null)return!1;var n=_x;if(_x=null,(yn&48)!=0)throw Error(bt(331));var e=yn;yn|=32;var t=T8;T8=[];for(var i=0;i<t.length;i+=2){var r=t[i],o=t[i+1],s=r.destroy;if(r.destroy=void 0,typeof s=="function")try{s()}catch(l){if(o===null)throw Error(bt(330));bp(o,l)}}for(t=L8,L8=[],i=0;i<t.length;i+=2){r=t[i],o=t[i+1];try{var a=r.create;r.destroy=a()}catch(l){if(o===null)throw Error(bt(330));bp(o,l)}}for(a=n.current.firstEffect;a!==null;)n=a.nextEffect,a.nextEffect=null,a.flags&8&&(a.sibling=null,a.stateNode=null),a=n;return yn=e,Od(),!0}function uee(n,e,t){e=p8(t,e),e=qJ(n,e,1),fp(n,e),e=Ql(),n=KI(n,1),n!==null&&(cI(n,1,e),qc(n,e))}function bp(n,e){if(n.tag===3)uee(n,n,e);else for(var t=n.return;t!==null;){if(t.tag===3){uee(t,n,e);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Bd===null||!Bd.has(i))){n=p8(e,n);var r=KJ(t,n,1);if(fp(t,r),r=Ql(),t=KI(t,1),t!==null)cI(t,1,r),qc(t,r);else if(typeof i.componentDidCatch=="function"&&(Bd===null||!Bd.has(i)))try{i.componentDidCatch(e,n)}catch{}break}}t=t.return}}function sIe(n,e,t){var i=n.pingCache;i!==null&&i.delete(e),e=Ql(),n.pingedLanes|=n.suspendedLanes&t,Aa===n&&(oa&t)===t&&(Ms===4||Ms===3&&(oa&62914560)===oa&&500>ia()-x8?m1(n,0):w8|=t),qc(n,e)}function aIe(n,e){var t=n.stateNode;t!==null&&t.delete(e),e=0,e===0&&(e=n.mode,(e&2)==0?e=1:(e&4)==0?e=a1()===99?1:2:(wf===0&&(wf=h1),e=Xb(62914560&~wf),e===0&&(e=4194304))),t=Ql(),n=KI(n,e),n!==null&&(cI(n,e,t),qc(n,t))}var dee;dee=function(n,e,t){var i=e.lanes;if(n!==null)if(n.memoizedProps!==e.pendingProps||gl.current)Au=!0;else if((t&i)!=0)Au=(n.flags&16384)!=0;else{switch(Au=!1,e.tag){case 3:MJ(e),n8();break;case 5:_J(e);break;case 1:pl(e.type)&&wI(e);break;case 4:J3(e,e.stateNode.containerInfo);break;case 10:i=e.memoizedProps.value;var r=e.type._context;Kr(EI,r._currentValue),r._currentValue=i;break;case 13:if(e.memoizedState!==null)return(t&e.child.childLanes)!=0?FJ(n,e,t):(Kr(Gr,Gr.current&1),e=yf(n,e,t),e!==null?e.sibling:null);Kr(Gr,Gr.current&1);break;case 19:if(i=(t&e.childLanes)!=0,(n.flags&64)!=0){if(i)return VJ(n,e,t);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Kr(Gr,Gr.current),i)break;return null;case 23:case 24:return e.lanes=0,u8(n,e,t)}return yf(n,e,t)}else Au=!1;switch(e.lanes=0,e.tag){case 2:if(i=e.type,n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2),n=e.pendingProps,r=s1(e,na.current),c1(e,t),r=o8(null,e,i,n,r,t),e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,pl(i)){var o=!0;wI(e)}else o=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,X3(e);var s=i.getDerivedStateFromProps;typeof s=="function"&&TI(e,i,s,n),r.updater=DI,e.stateNode=r,r._reactInternals=e,Q3(e,i,n,t),e=h8(null,e,i,!0,o,t)}else e.tag=0,_l(null,e,r,t),e=e.child;return e;case 16:r=e.elementType;e:{switch(n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2),n=e.pendingProps,o=r._init,r=o(r._payload),e.type=r,o=e.tag=cIe(r),n=Nu(r,n),o){case 0:e=d8(null,e,r,n,t);break e;case 1:e=PJ(null,e,r,n,t);break e;case 11:e=RJ(null,e,r,n,t);break e;case 14:e=NJ(null,e,r,Nu(r.type,n),i,t);break e}throw Error(bt(306,r,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Nu(i,r),d8(n,e,i,r,t);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Nu(i,r),PJ(n,e,i,r,t);case 3:if(MJ(e),i=e.updateQueue,n===null||i===null)throw Error(bt(282));if(i=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,lJ(n,e),rx(e,i,null,t),i=e.memoizedState.element,i===r)n8(),e=yf(n,e,t);else{if(r=e.stateNode,(o=r.hydrate)&&(gp=n1(e.stateNode.containerInfo.firstChild),bf=e,o=Md=!0),o){if(n=r.mutableSourceEagerHydrationData,n!=null)for(r=0;r<n.length;r+=2)o=n[r],o._workInProgressVersionPrimary=n[r+1],d1.push(o);for(t=mJ(e,null,i,t),e.child=t;t;)t.flags=t.flags&-3|1024,t=t.sibling}else _l(n,e,i,t),n8();e=e.child}return e;case 5:return _J(e),n===null&&t8(e),i=e.type,r=e.pendingProps,o=n!==null?n.memoizedProps:null,s=r.children,$3(i,r)?s=null:o!==null&&$3(i,o)&&(e.flags|=16),OJ(n,e),_l(n,e,s,t),e.child;case 6:return n===null&&t8(e),null;case 13:return FJ(n,e,t);case 4:return J3(e,e.stateNode.containerInfo),i=e.pendingProps,n===null?e.child=NI(e,null,i,t):_l(n,e,i,t),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Nu(i,r),RJ(n,e,i,r,t);case 7:return _l(n,e,e.pendingProps,t),e.child;case 8:return _l(n,e,e.pendingProps.children,t),e.child;case 12:return _l(n,e,e.pendingProps.children,t),e.child;case 10:e:{i=e.type._context,r=e.pendingProps,s=e.memoizedProps,o=r.value;var a=e.type._context;if(Kr(EI,a._currentValue),a._currentValue=o,s!==null)if(a=s.value,o=zc(a,o)?0:(typeof i._calculateChangedBits=="function"?i._calculateChangedBits(a,o):1073741823)|0,o===0){if(s.children===r.children&&!gl.current){e=yf(n,e,t);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===i&&(c.observedBits&o)!=0){a.tag===1&&(c=hp(-1,t&-t),c.tag=2,fp(a,c)),a.lanes|=t,c=a.alternate,c!==null&&(c.lanes|=t),aJ(a.return,t),l.lanes|=t;break}c=c.next}}else s=a.tag===10&&a.type===e.type?null:a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}_l(n,e,r.children,t),e=e.child}return e;case 9:return r=e.type,o=e.pendingProps,i=o.children,c1(e,t),r=Uc(r,o.unstable_observedBits),i=i(r),e.flags|=1,_l(n,e,i,t),e.child;case 14:return r=e.type,o=Nu(r,e.pendingProps),o=Nu(r.type,o),NJ(n,e,r,o,i,t);case 15:return AJ(n,e,e.type,e.pendingProps,i,t);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Nu(i,r),n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,pl(i)?(n=!0,wI(e)):n=!1,c1(e,t),fJ(e,i,r),Q3(e,i,r,t),h8(null,e,i,!0,n,t);case 19:return VJ(n,e,t);case 23:return u8(n,e,t);case 24:return u8(n,e,t)}throw Error(bt(156,e.tag))};function lIe(n,e,t,i){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Kc(n,e,t,i){return new lIe(n,e,t,i)}function N8(n){return n=n.prototype,!(!n||!n.isReactComponent)}function cIe(n){if(typeof n=="function")return N8(n)?1:0;if(n!=null){if(n=n.$$typeof,n===ZD)return 11;if(n===QD)return 14}return 2}function yp(n,e){var t=n.alternate;return t===null?(t=Kc(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.nextEffect=null,t.firstEffect=null,t.lastEffect=null),t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function YI(n,e,t,i,r,o){var s=2;if(i=n,typeof n=="function")N8(n)&&(s=1);else if(typeof n=="string")s=5;else e:switch(n){case tp:return _1(t.children,r,o,e);case RX:s=8,r|=16;break;case VF:s=8,r|=1;break;case NS:return n=Kc(12,t,e,r|8),n.elementType=NS,n.type=NS,n.lanes=o,n;case AS:return n=Kc(13,t,e,r),n.type=AS,n.elementType=AS,n.lanes=o,n;case XD:return n=Kc(19,t,e,r),n.elementType=XD,n.lanes=o,n;case GF:return A8(t,r,o,e);case YF:return n=Kc(24,t,e,r),n.elementType=YF,n.lanes=o,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case zF:s=10;break e;case UF:s=9;break e;case ZD:s=11;break e;case QD:s=14;break e;case jF:s=16,i=null;break e;case qF:s=22;break e}throw Error(bt(130,n==null?n:typeof n,""))}return e=Kc(s,t,e,r),e.elementType=n,e.type=i,e.lanes=o,e}function _1(n,e,t,i){return n=Kc(7,n,i,e),n.lanes=t,n}function A8(n,e,t,i){return n=Kc(23,n,i,e),n.elementType=GF,n.lanes=t,n}function O8(n,e,t){return n=Kc(6,n,null,e),n.lanes=t,n}function P8(n,e,t){return e=Kc(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function uIe(n,e,t){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=C3(0),this.expirationTimes=C3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=C3(0),this.mutableSourceEagerHydrationData=null}function dIe(n,e,t){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:S_,key:i==null?null:""+i,children:n,containerInfo:e,implementation:t}}function ZI(n,e,t,i){var r=e.current,o=Ql(),s=mp(r);e:if(t){t=t._reactInternals;t:{if(E_(t)!==t||t.tag!==1)throw Error(bt(170));var a=t;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(pl(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(bt(171))}if(t.tag===1){var l=t.type;if(pl(l)){t=XQ(t,l,a);break e}}t=a}else t=up;return e.context===null?e.context=t:e.pendingContext=t,e=hp(o,s),e.payload={element:n},i=i===void 0?null:i,i!==null&&(e.callback=i),fp(r,e),_p(r,s,o),s}function M8(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function hee(n,e){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var t=n.retryLane;n.retryLane=t!==0&&t<e?t:e}}function F8(n,e){hee(n,e),(n=n.alternate)&&hee(n,e)}function hIe(){return null}function B8(n,e,t){var i=t!=null&&t.hydrationOptions!=null&&t.hydrationOptions.mutableSources||null;if(t=new uIe(n,e,t!=null&&t.hydrate===!0),e=Kc(3,null,null,e===2?7:e===1?3:0),t.current=e,e.stateNode=t,X3(e),n[i1]=t.current,WQ(n.nodeType===8?n.parentNode:n),i)for(n=0;n<i.length;n++){e=i[n];var r=e._getVersion;r=r(e._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[e,r]:t.mutableSourceEagerHydrationData.push(e,r)}this._internalRoot=t}B8.prototype.render=function(n){ZI(n,this._internalRoot,null,null)},B8.prototype.unmount=function(){var n=this._internalRoot,e=n.containerInfo;ZI(null,n,null,function(){e[i1]=null})};function wx(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function fIe(n,e){if(e||(e=n?n.nodeType===9?n.documentElement:n.firstChild:null,e=!(!e||e.nodeType!==1||!e.hasAttribute("data-reactroot"))),!e)for(var t;t=n.lastChild;)n.removeChild(t);return new B8(n,0,e?{hydrate:!0}:void 0)}function XI(n,e,t,i,r){var o=t._reactRootContainer;if(o){var s=o._internalRoot;if(typeof r=="function"){var a=r;r=function(){var c=M8(s);a.call(c)}}ZI(e,s,n,r)}else{if(o=t._reactRootContainer=fIe(t,i),s=o._internalRoot,typeof r=="function"){var l=r;r=function(){var c=M8(s);l.call(c)}}ree(function(){ZI(e,s,n,r)})}return M8(s)}eQ=function(n){if(n.tag===13){var e=Ql();_p(n,4,e),F8(n,4)}},p3=function(n){if(n.tag===13){var e=Ql();_p(n,67108864,e),F8(n,67108864)}},tQ=function(n){if(n.tag===13){var e=Ql(),t=mp(n);_p(n,t,e),F8(n,t)}},nQ=function(n,e){return e()},l3=function(n,e,t){switch(e){case"input":if(JF(n,t),e=t.name,t.type==="radio"&&e!=null){for(t=n;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<t.length;e++){var i=t[e];if(i!==n&&i.form===n.form){var r=yI(i);if(!r)throw Error(bt(90));OX(i),JF(i,r)}}}break;case"textarea":$X(n,t);break;case"select":e=t.value,e!=null&&qb(n,!!t.multiple,e,!1)}},c3=iee,GX=function(n,e,t,i,r){var o=yn;yn|=4;try{return D_(98,n.bind(null,e,t,i,r))}finally{yn=o,yn===0&&(g1(),Od())}},u3=function(){(yn&49)==0&&(JDe(),vp())},YX=function(n,e){var t=yn;yn|=2;try{return n(e)}finally{yn=t,yn===0&&(g1(),Od())}};function fee(n,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wx(e))throw Error(bt(200));return dIe(n,e,null,t)}var gIe={Events:[nx,r1,yI,qX,KX,vp,{current:!1}]},Sx={findFiberByHostInstance:k_,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},pIe={bundleType:Sx.bundleType,version:Sx.version,rendererPackageName:Sx.rendererPackageName,rendererConfig:Sx.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w_.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=QX(n),n===null?null:n.stateNode},findFiberByHostInstance:Sx.findFiberByHostInstance||hIe,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var QI=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!QI.isDisabled&&QI.supportsFiber)try{z3=QI.inject(pIe),T_=QI}catch{}}Vc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gIe,Vc.createPortal=fee,Vc.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var e=n._reactInternals;if(e===void 0)throw typeof n.render=="function"?Error(bt(188)):Error(bt(268,Object.keys(n)));return n=QX(e),n=n===null?null:n.stateNode,n},Vc.flushSync=function(n,e){var t=yn;if((t&48)!=0)return n(e);yn|=1;try{if(n)return D_(99,n.bind(null,e))}finally{yn=t,Od()}},Vc.hydrate=function(n,e,t){if(!wx(e))throw Error(bt(200));return XI(null,n,e,!0,t)},Vc.render=function(n,e,t){if(!wx(e))throw Error(bt(200));return XI(null,n,e,!1,t)},Vc.unmountComponentAtNode=function(n){if(!wx(n))throw Error(bt(40));return n._reactRootContainer?(ree(function(){XI(null,null,n,!1,function(){n._reactRootContainer=null,n[i1]=null})}),!0):!1},Vc.unstable_batchedUpdates=iee,Vc.unstable_createPortal=function(n,e){return fee(n,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Vc.unstable_renderSubtreeIntoContainer=function(n,e,t,i){if(!wx(t))throw Error(bt(200));if(n==null||n._reactInternals===void 0)throw Error(bt(38));return XI(n,e,t,!1,i)},Vc.version="17.0.2";function gee(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gee)}catch(n){console.error(n)}}gee(),fl.exports=Vc;var pee=fl.exports,mIe=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,_Ie=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],$8=function(e){var t=e,i=e.indexOf("["),r=e.indexOf("]");i!=-1&&r!=-1&&(e=e.substring(0,i)+e.substring(i,r).replace(/:/g,";")+e.substring(r,e.length));for(var o=mIe.exec(e||""),s={},a=14;a--;)s[_Ie[a]]=o[a]||"";return i!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=vIe(s,s.path),s.queryKey=bIe(s,s.query),s};function vIe(n,e){var t=/\/{2,9}/g,i=e.replace(t,"/").split("/");return(e.substr(0,1)=="/"||e.length===0)&&i.splice(0,1),e.substr(e.length-1,1)=="/"&&i.splice(i.length-1,1),i}function bIe(n,e){var t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,r,o){r&&(t[r]=o)}),t}function yIe(n,e="",t){let i=n;t=t||typeof location!="undefined"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t!="undefined"?n=t.protocol+"//"+n:n="https://"+n),i=$8(n)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const o=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+o+":"+i.port+e,i.href=i.protocol+"://"+o+(t&&t.port===i.port?"":":"+i.port),i}var W8={exports:{}};try{W8.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch{W8.exports=!1}var CIe=W8.exports,Cp=(()=>typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")())();function mee(n){const e=n.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!e||CIe))return new XMLHttpRequest}catch{}if(!e)try{return new Cp[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function _ee(n,...e){return e.reduce((t,i)=>(n.hasOwnProperty(i)&&(t[i]=n[i]),t),{})}const wIe=setTimeout,SIe=clearTimeout;function JI(n,e){e.useNativeTimers?(n.setTimeoutFn=wIe.bind(Cp),n.clearTimeoutFn=SIe.bind(Cp)):(n.setTimeoutFn=setTimeout.bind(Cp),n.clearTimeoutFn=clearTimeout.bind(Cp))}var v1=Oa;function Oa(n){if(n)return xIe(n)}function xIe(n){for(var e in Oa.prototype)n[e]=Oa.prototype[e];return n}Oa.prototype.on=Oa.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this},Oa.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this},Oa.prototype.off=Oa.prototype.removeListener=Oa.prototype.removeAllListeners=Oa.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var i,r=0;r<t.length;r++)if(i=t[r],i===e||i.fn===e){t.splice(r,1);break}return t.length===0&&delete this._callbacks["$"+n],this},Oa.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(t){t=t.slice(0);for(var i=0,r=t.length;i<r;++i)t[i].apply(this,e)}return this},Oa.prototype.emitReserved=Oa.prototype.emit,Oa.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},Oa.prototype.hasListeners=function(n){return!!this.listeners(n).length};const $d=Object.create(null);$d.open="0",$d.close="1",$d.ping="2",$d.pong="3",$d.message="4",$d.upgrade="5",$d.noop="6";const eR=Object.create(null);Object.keys($d).forEach(n=>{eR[$d[n]]=n});const EIe={type:"error",data:"parser error"},kIe=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",LIe=typeof ArrayBuffer=="function",TIe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,vee=({type:n,data:e},t,i)=>kIe&&e instanceof Blob?t?i(e):bee(e,i):LIe&&(e instanceof ArrayBuffer||TIe(e))?t?i(e):bee(new Blob([e]),i):i($d[n]+(e||"")),bee=(n,e)=>{const t=new FileReader;return t.onload=function(){const i=t.result.split(",")[1];e("b"+i)},t.readAsDataURL(n)};for(var yee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xx=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),tR=0;tR<yee.length;tR++)xx[yee.charCodeAt(tR)]=tR;var DIe=function(n){var e=n.length*.75,t=n.length,i,r=0,o,s,a,l;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var c=new ArrayBuffer(e),u=new Uint8Array(c);for(i=0;i<t;i+=4)o=xx[n.charCodeAt(i)],s=xx[n.charCodeAt(i+1)],a=xx[n.charCodeAt(i+2)],l=xx[n.charCodeAt(i+3)],u[r++]=o<<2|s>>4,u[r++]=(s&15)<<4|a>>2,u[r++]=(a&3)<<6|l&63;return c};const IIe=typeof ArrayBuffer=="function",Cee=(n,e)=>{if(typeof n!="string")return{type:"message",data:wee(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:RIe(n.substring(1),e)}:eR[t]?n.length>1?{type:eR[t],data:n.substring(1)}:{type:eR[t]}:EIe},RIe=(n,e)=>{if(IIe){const t=DIe(n);return wee(t,e)}else return{base64:!0,data:n}},wee=(n,e)=>{switch(e){case"blob":return n instanceof ArrayBuffer?new Blob([n]):n;case"arraybuffer":default:return n}},See=String.fromCharCode(30),NIe=(n,e)=>{const t=n.length,i=new Array(t);let r=0;n.forEach((o,s)=>{vee(o,!1,a=>{i[s]=a,++r===t&&e(i.join(See))})})},AIe=(n,e)=>{const t=n.split(See),i=[];for(let r=0;r<t.length;r++){const o=Cee(t[r],e);if(i.push(o),o.type==="error")break}return i},xee=4;class Eee extends v1{constructor(e){super();this.writable=!1,JI(this,e),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t){const i=new Error(e);return i.type="TransportError",i.description=t,super.emit("error",i),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emit("open")}onData(e){const t=Cee(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emit("packet",e)}onClose(){this.readyState="closed",super.emit("close")}}var kee="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),nR=64,Lee={},Tee=0,wp=0,Dee;function H8(n){var e="";do e=kee[n%nR]+e,n=Math.floor(n/nR);while(n>0);return e}function OIe(n){var e=0;for(wp=0;wp<n.length;wp++)e=e*nR+Lee[n.charAt(wp)];return e}function V8(){var n=H8(+new Date);return n!==Dee?(Tee=0,Dee=n):n+"."+H8(Tee++)}for(;wp<nR;wp++)Lee[kee[wp]]=wp;V8.encode=H8,V8.decode=OIe;var Iee=V8,Ex={};Ex.encode=function(n){var e="";for(var t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e},Ex.decode=function(n){for(var e={},t=n.split("&"),i=0,r=t.length;i<r;i++){var o=t[i].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e};class PIe extends Eee{constructor(){super(...arguments);this.polling=!1}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||t()})),this.writable||(i++,this.once("drain",function(){--i||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emit("poll")}onData(e){const t=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose(),!1;this.onPacket(i)};AIe(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,NIe(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emit("drain")})})}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=Iee()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&(t==="https"&&Number(this.opts.port)!==443||t==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const r=Ex.encode(e),o=this.opts.hostname.indexOf(":")!==-1;return t+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(r.length?"?"+r:"")}}function MIe(){}const FIe=function(){return new mee({xdomain:!1}).responseType!=null}();class BIe extends PIe{constructor(e){super(e);if(typeof location!="undefined"){const i=location.protocol==="https:";let r=location.port;r||(r=i?"443":"80"),this.xd=typeof location!="undefined"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==i}const t=e&&e.forceBase64;this.supportsBinary=FIe&&!t}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new Wd(this.uri(),e)}doWrite(e,t){const i=this.request({method:"POST",data:e});i.on("success",t),i.on("error",r=>{this.onError("xhr post error",r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",t=>{this.onError("xhr poll error",t)}),this.pollXhr=e}}class Wd extends v1{constructor(e,t){super();JI(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=t.async!==!1,this.data=t.data!==void 0?t.data:null,this.create()}create(){const e=_ee(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new mee(e);try{t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&t.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{t.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{t.readyState===4&&(t.status===200||t.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof t.status=="number"?t.status:0)},0))},t.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document!="undefined"&&(this.index=Wd.requestsCount++,Wd.requests[this.index]=this)}onSuccess(){this.emit("success"),this.cleanup()}onData(e){this.emit("data",e),this.onSuccess()}onError(e){this.emit("error",e),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.xhr.onreadystatechange=MIe,e)try{this.xhr.abort()}catch{}typeof document!="undefined"&&delete Wd.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&this.onData(e)}abort(){this.cleanup()}}if(Wd.requestsCount=0,Wd.requests={},typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Ree);else if(typeof addEventListener=="function"){const n="onpagehide"in Cp?"pagehide":"unload";addEventListener(n,Ree,!1)}}function Ree(){for(let n in Wd.requests)Wd.requests.hasOwnProperty(n)&&Wd.requests[n].abort()}const $Ie=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0))(),kx=Cp.WebSocket||Cp.MozWebSocket,Nee=!0,WIe="arraybuffer",Aee=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class z8 extends Eee{constructor(e){super(e);this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,i=Aee?{}:_ee(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=Nee&&!Aee?t?new kx(e,t):new kx(e):new kx(e,t,i)}catch(r){return this.emit("error",r)}this.ws.binaryType=this.socket.binaryType||WIe,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const i=e[t],r=t===e.length-1;vee(i,this.supportsBinary,o=>{const s={};try{Nee&&this.ws.send(o)}catch{}r&&$Ie(()=>{this.writable=!0,this.emit("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(t==="wss"&&Number(this.opts.port)!==443||t==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=Iee()),this.supportsBinary||(e.b64=1);const r=Ex.encode(e),o=this.opts.hostname.indexOf(":")!==-1;return t+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(r.length?"?"+r:"")}check(){return!!kx&&!("__initialize"in kx&&this.name===z8.prototype.name)}}const HIe={websocket:z8,polling:BIe};class Sf extends v1{constructor(e,t={}){super();e&&typeof e=="object"&&(t=e,e=null),e?(e=$8(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=$8(t.host).host),JI(this,t),this.secure=t.secure!=null?t.secure:typeof location!="undefined"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=t.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=Ex.decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close")},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=VIe(this.opts.query);t.EIO=xee,t.transport=e,this.id&&(t.sid=this.id);const i=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new HIe[e](i)}open(){let e;if(this.opts.rememberUpgrade&&Sf.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",()=>{this.onClose("transport close")})}probe(e){let t=this.createTransport(e),i=!1;Sf.priorWebsocketSuccess=!1;const r=()=>{i||(t.send([{type:"ping",data:"probe"}]),t.once("packet",d=>{if(!i)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Sf.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=t.name,this.emitReserved("upgradeError",h)}}))};function o(){i||(i=!0,u(),t.close(),t=null)}const s=d=>{const h=new Error("probe error: "+d);h.transport=t.name,o(),this.emitReserved("upgradeError",h)};function a(){s("transport closed")}function l(){s("socket closed")}function c(d){t&&d.name!==t.name&&o()}const u=()=>{t.removeListener("open",r),t.removeListener("error",s),t.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};t.once("open",r),t.once("error",s),t.once("close",a),this.once("close",l),this.once("upgrading",c),t.open()}onOpen(){if(this.readyState="open",Sf.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emitReserved("flush"))}write(e,t,i){return this.sendPacket("message",e,t,i),this}send(e,t,i){return this.sendPacket("message",e,t,i),this}sendPacket(e,t,i,r){if(typeof t=="function"&&(r=t,t=void 0),typeof i=="function"&&(r=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const o={type:e,data:t,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},i=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}onError(e){Sf.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let i=0;const r=e.length;for(;i<r;i++)~this.transports.indexOf(e[i])&&t.push(e[i]);return t}}Sf.protocol=xee;function VIe(n){const e={};for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}Sf.protocol;const zIe=typeof ArrayBuffer=="function",UIe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Oee=Object.prototype.toString,jIe=typeof Blob=="function"||typeof Blob!="undefined"&&Oee.call(Blob)==="[object BlobConstructor]",qIe=typeof File=="function"||typeof File!="undefined"&&Oee.call(File)==="[object FileConstructor]";function U8(n){return zIe&&(n instanceof ArrayBuffer||UIe(n))||jIe&&n instanceof Blob||qIe&&n instanceof File}function iR(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,i=n.length;t<i;t++)if(iR(n[t]))return!0;return!1}if(U8(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return iR(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&iR(n[t]))return!0;return!1}function KIe(n){const e=[],t=n.data,i=n;return i.data=j8(t,e),i.attachments=e.length,{packet:i,buffers:e}}function j8(n,e){if(!n)return n;if(U8(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}else if(Array.isArray(n)){const t=new Array(n.length);for(let i=0;i<n.length;i++)t[i]=j8(n[i],e);return t}else if(typeof n=="object"&&!(n instanceof Date)){const t={};for(const i in n)n.hasOwnProperty(i)&&(t[i]=j8(n[i],e));return t}return n}function GIe(n,e){return n.data=q8(n.data,e),n.attachments=void 0,n}function q8(n,e){if(!n)return n;if(n&&n._placeholder)return e[n.num];if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=q8(n[t],e);else if(typeof n=="object")for(const t in n)n.hasOwnProperty(t)&&(n[t]=q8(n[t],e));return n}const YIe=5;var ai;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(ai||(ai={}));class ZIe{encode(e){return(e.type===ai.EVENT||e.type===ai.ACK)&&iR(e)?(e.type=e.type===ai.EVENT?ai.BINARY_EVENT:ai.BINARY_ACK,this.encodeAsBinary(e)):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===ai.BINARY_EVENT||e.type===ai.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data)),t}encodeAsBinary(e){const t=KIe(e),i=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(i),r}}class K8 extends v1{constructor(){super()}add(e){let t;if(typeof e=="string")t=this.decodeString(e),t.type===ai.BINARY_EVENT||t.type===ai.BINARY_ACK?(this.reconstructor=new QIe(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t);else if(U8(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const i={type:Number(e.charAt(0))};if(ai[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===ai.BINARY_EVENT||i.type===ai.BINARY_ACK){const o=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const s=e.substring(o,t);if(s!=Number(s)||e.charAt(t)!=="-")throw new Error("Illegal attachments");i.attachments=Number(s)}if(e.charAt(t+1)==="/"){const o=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););i.nsp=e.substring(o,t)}else i.nsp="/";const r=e.charAt(t+1);if(r!==""&&Number(r)==r){const o=t+1;for(;++t;){const s=e.charAt(t);if(s==null||Number(s)!=s){--t;break}if(t===e.length)break}i.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){const o=XIe(e.substr(t));if(K8.isPayloadValid(i.type,o))i.data=o;else throw new Error("invalid payload")}return i}static isPayloadValid(e,t){switch(e){case ai.CONNECT:return typeof t=="object";case ai.DISCONNECT:return t===void 0;case ai.CONNECT_ERROR:return typeof t=="string"||typeof t=="object";case ai.EVENT:case ai.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case ai.ACK:case ai.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}function XIe(n){try{return JSON.parse(n)}catch{return!1}}class QIe{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=GIe(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var JIe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",protocol:YIe,get PacketType(){return ai},Encoder:ZIe,Decoder:K8});function Ou(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const eRe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Pee extends v1{constructor(e,t,i){super();this.connected=!1,this.disconnected=!0,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,i&&i.auth&&(this.auth=i.auth),this.io._autoConnect&&this.open()}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Ou(e,"open",this.onopen.bind(this)),Ou(e,"packet",this.onpacket.bind(this)),Ou(e,"error",this.onerror.bind(this)),Ou(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(eRe.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const i={type:ai.EVENT,data:t};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const s=this.ids++,a=t.pop();this._registerAckCallback(s,a),i.id=s}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?this.packet(i):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){const i=this.flags.timeout;if(i===void 0){this.acks[e]=t;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===e&&this.sendBuffer.splice(o,1);t.call(this,new Error("operation has timed out"))},i);this.acks[e]=(...o)=>{this.io.clearTimeoutFn(r),t.apply(this,[null,...o])}}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this.packet({type:ai.CONNECT,data:e})}):this.packet({type:ai.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e){this.connected=!1,this.disconnected=!0,delete this.id,this.emitReserved("disconnect",e)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ai.CONNECT:if(e.data&&e.data.sid){const r=e.data.sid;this.onconnect(r)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ai.EVENT:this.onevent(e);break;case ai.BINARY_EVENT:this.onevent(e);break;case ai.ACK:this.onack(e);break;case ai.BINARY_ACK:this.onack(e);break;case ai.DISCONNECT:this.ondisconnect();break;case ai.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const i of t)i.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let i=!1;return function(...r){i||(i=!0,t.packet({type:ai.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e){this.id=e,this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>this.packet(e)),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ai.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let i=0;i<t.length;i++)if(e===t[i])return t.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}}var tRe=b1;function b1(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}b1.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=(Math.floor(e*10)&1)==0?n-t:n+t}return Math.min(n,this.max)|0},b1.prototype.reset=function(){this.attempts=0},b1.prototype.setMin=function(n){this.ms=n},b1.prototype.setMax=function(n){this.max=n},b1.prototype.setJitter=function(n){this.jitter=n};class G8 extends v1{constructor(e,t){var i;super();this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,JI(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((i=t.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new tRe({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||JIe;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Sf(this.uri,this.opts);const t=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const r=Ou(t,"open",function(){i.onopen(),e&&e()}),o=Ou(t,"error",s=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",s),e?e(s):i.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&r();const a=this.setTimeoutFn(()=>{r(),t.close(),t.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Ou(e,"ping",this.onping.bind(this)),Ou(e,"data",this.ondata.bind(this)),Ou(e,"error",this.onerror.bind(this)),Ou(e,"close",this.onclose.bind(this)),Ou(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){this.decoder.add(e)}ondecoded(e){this.emitReserved("packet",e)}onerror(e){this.emitReserved("error",e)}socket(e,t){let i=this.nsps[e];return i||(i=new Pee(this,e,t),this.nsps[e]=i),i}_destroy(e){const t=Object.keys(this.nsps);for(const i of t)if(this.nsps[i].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let i=0;i<t.length;i++)this.engine.write(t[i],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Lx={};function rR(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=yIe(n,e.path||"/socket.io"),i=t.source,r=t.id,o=t.path,s=Lx[r]&&o in Lx[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s;let l;return a?l=new G8(i,e):(Lx[r]||(Lx[r]=new G8(i,e)),l=Lx[r]),t.query&&!e.query&&(e.query=t.queryKey),l.socket(t.path,e)}Object.assign(rR,{Manager:G8,Socket:Pee,io:rR,connect:rR});function nRe(n){let e;const t=new Set,i=(c,u)=>{const d=typeof c=="function"?c(e):c;if(d!==e){const h=e;e=u?d:Object.assign({},e,d),t.forEach(f=>f(e,h))}},r=()=>e,o=(c,u=r,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let h=u(e);function f(){const g=u(e);if(!d(h,g)){const p=h;c(h=g,p)}}return t.add(f),()=>t.delete(f)},l={setState:i,getState:r,subscribe:(c,u,d)=>u||d?o(c,u,d):(t.add(c),()=>t.delete(c)),destroy:()=>t.clear()};return e=n(i,r,l),l}const Mee=typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?O.exports.useEffect:O.exports.useLayoutEffect;function Jl(n){const e=typeof n=="function"?nRe(n):n,t=(i=e.getState,r=Object.is)=>{const[,o]=O.exports.useReducer(m=>m+1,0),s=e.getState(),a=O.exports.useRef(s),l=O.exports.useRef(i),c=O.exports.useRef(r),u=O.exports.useRef(!1),d=O.exports.useRef();d.current===void 0&&(d.current=i(s));let h,f=!1;(a.current!==s||l.current!==i||c.current!==r||u.current)&&(h=i(s),f=!r(d.current,h)),Mee(()=>{f&&(d.current=h),a.current=s,l.current=i,c.current=r,u.current=!1});const g=O.exports.useRef(s);Mee(()=>{const m=()=>{try{const _=e.getState(),y=l.current(_);c.current(d.current,y)||(a.current=_,d.current=y,o())}catch{u.current=!0,o()}},v=e.subscribe(m);return e.getState()!==g.current&&m(),v},[]);const p=f?h:d.current;return O.exports.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const i=[t,e];return{next(){const r=i.length<=0;return{value:i.shift(),done:r}}}},t}const Yr=Jl(n=>({socket:void 0,setSocket:e=>n(()=>({socket:e}))}));class iRe{constructor(e){return rR(e.ioPath,{transports:["websocket"],auth:ot(Te({},e),{uuid:e.userId})})}}const rRe=(n,e)=>e.some(t=>n instanceof t);let Fee,Bee;function oRe(){return Fee||(Fee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function sRe(){return Bee||(Bee=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const $ee=new WeakMap,Y8=new WeakMap,Wee=new WeakMap,Z8=new WeakMap,X8=new WeakMap;function aRe(n){const e=new Promise((t,i)=>{const r=()=>{n.removeEventListener("success",o),n.removeEventListener("error",s)},o=()=>{t(Sp(n.result)),r()},s=()=>{i(n.error),r()};n.addEventListener("success",o),n.addEventListener("error",s)});return e.then(t=>{t instanceof IDBCursor&&$ee.set(t,n)}).catch(()=>{}),X8.set(e,n),e}function lRe(n){if(Y8.has(n))return;const e=new Promise((t,i)=>{const r=()=>{n.removeEventListener("complete",o),n.removeEventListener("error",s),n.removeEventListener("abort",s)},o=()=>{t(),r()},s=()=>{i(n.error||new DOMException("AbortError","AbortError")),r()};n.addEventListener("complete",o),n.addEventListener("error",s),n.addEventListener("abort",s)});Y8.set(n,e)}let Q8={get(n,e,t){if(n instanceof IDBTransaction){if(e==="done")return Y8.get(n);if(e==="objectStoreNames")return n.objectStoreNames||Wee.get(n);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return Sp(n[e])},set(n,e,t){return n[e]=t,!0},has(n,e){return n instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in n}};function cRe(n){Q8=n(Q8)}function uRe(n){return n===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const i=n.call(J8(this),e,...t);return Wee.set(i,e.sort?e.sort():[e]),Sp(i)}:sRe().includes(n)?function(...e){return n.apply(J8(this),e),Sp($ee.get(this))}:function(...e){return Sp(n.apply(J8(this),e))}}function dRe(n){return typeof n=="function"?uRe(n):(n instanceof IDBTransaction&&lRe(n),rRe(n,oRe())?new Proxy(n,Q8):n)}function Sp(n){if(n instanceof IDBRequest)return aRe(n);if(Z8.has(n))return Z8.get(n);const e=dRe(n);return e!==n&&(Z8.set(n,e),X8.set(e,n)),e}const J8=n=>X8.get(n);function hRe(n,e,{blocked:t,upgrade:i,blocking:r,terminated:o}={}){const s=indexedDB.open(n,e),a=Sp(s);return i&&s.addEventListener("upgradeneeded",l=>{i(Sp(s.result),l.oldVersion,l.newVersion,Sp(s.transaction))}),t&&s.addEventListener("blocked",()=>t()),a.then(l=>{o&&l.addEventListener("close",()=>o()),r&&l.addEventListener("versionchange",()=>r())}).catch(()=>{}),a}const fRe=["get","getKey","getAll","getAllKeys","count"],gRe=["put","add","delete","clear"],e6=new Map;function Hee(n,e){if(!(n instanceof IDBDatabase&&!(e in n)&&typeof e=="string"))return;if(e6.get(e))return e6.get(e);const t=e.replace(/FromIndex$/,""),i=e!==t,r=gRe.includes(t);if(!(t in(i?IDBIndex:IDBObjectStore).prototype)||!(r||fRe.includes(t)))return;const o=async function(s,...a){const l=this.transaction(s,r?"readwrite":"readonly");let c=l.store;return i&&(c=c.index(a.shift())),(await Promise.all([c[t](...a),r&&l.done]))[0]};return e6.set(e,o),o}cRe(n=>ot(Te({},n),{get:(e,t,i)=>Hee(e,t)||n.get(e,t,i),has:(e,t)=>!!Hee(e,t)||n.has(e,t)}));var oR,pRe=new Uint8Array(16);function mRe(){if(!oR&&(oR=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!oR))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oR(pRe)}var _Re=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function vRe(n){return typeof n=="string"&&_Re.test(n)}for(var Fs=[],t6=0;t6<256;++t6)Fs.push((t6+256).toString(16).substr(1));function bRe(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(Fs[n[e+0]]+Fs[n[e+1]]+Fs[n[e+2]]+Fs[n[e+3]]+"-"+Fs[n[e+4]]+Fs[n[e+5]]+"-"+Fs[n[e+6]]+Fs[n[e+7]]+"-"+Fs[n[e+8]]+Fs[n[e+9]]+"-"+Fs[n[e+10]]+Fs[n[e+11]]+Fs[n[e+12]]+Fs[n[e+13]]+Fs[n[e+14]]+Fs[n[e+15]]).toLowerCase();if(!vRe(t))throw TypeError("Stringified UUID is invalid");return t}function n6(n,e,t){n=n||{};var i=n.random||(n.rng||mRe)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(var r=0;r<16;++r)e[t+r]=i[r];return e}return bRe(i)}var ec={exports:{}};/**
|
|
34
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ms!==5&&(Ms=2),l=p8(l,a),h=s;do{switch(h.tag){case 3:o=l,h.flags|=4096,e&=-e,h.lanes|=e;var w=qJ(h,o,e);cJ(h,w);break e;case 1:o=l;var x=h.type,S=h.stateNode;if((h.flags&64)==0&&(typeof x.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Bd===null||!Bd.has(S)))){h.flags|=4096,e&=-e,h.lanes|=e;var k=KJ(h,o,e);cJ(h,k);break e}}h=h.return}while(h!==null)}lee(t)}catch(T){e=T,es===t&&t!==null&&(es=t=t.return);continue}break}while(1)}function see(){var n=HI.current;return HI.current=$I,n===null?$I:n}function Cx(n,e){var t=yn;yn|=16;var i=see();Aa===n&&oa===e||m1(n,e);do try{eIe();break}catch(r){oee(n,r)}while(1);if(Y3(),yn=t,HI.current=i,es!==null)throw Error(bt(261));return Aa=null,oa=0,Ms}function eIe(){for(;es!==null;)aee(es)}function tIe(){for(;es!==null&&!MDe();)aee(es)}function aee(n){var e=dee(n.alternate,n,A_);n.memoizedProps=n.pendingProps,e===null?lee(n):es=e,y8.current=null}function lee(n){var e=n;do{var t=e.alternate;if(n=e.return,(e.flags&2048)==0){if(t=jDe(t,e,A_),t!==null){es=t;return}if(t=e,t.tag!==24&&t.tag!==23||t.memoizedState===null||(A_&1073741824)!=0||(t.mode&4)==0){for(var i=0,r=t.child;r!==null;)i|=r.lanes|r.childLanes,r=r.sibling;t.childLanes=i}n!==null&&(n.flags&2048)==0&&(n.firstEffect===null&&(n.firstEffect=e.firstEffect),e.lastEffect!==null&&(n.lastEffect!==null&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.flags&&(n.lastEffect!==null?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(t=qDe(e),t!==null){t.flags&=2047,es=t;return}n!==null&&(n.firstEffect=n.lastEffect=null,n.flags|=2048)}if(e=e.sibling,e!==null){es=e;return}es=e=n}while(e!==null);Ms===0&&(Ms=5)}function O_(n){var e=a1();return D_(99,nIe.bind(null,n,e)),null}function nIe(n,e){do vp();while(_x!==null);if((yn&48)!=0)throw Error(bt(327));var t=n.finishedWork;if(t===null)return null;if(n.finishedWork=null,n.finishedLanes=0,t===n.current)throw Error(bt(177));n.callbackNode=null;var i=t.lanes|t.childLanes,r=i,o=n.pendingLanes&~r;n.pendingLanes=r,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=r,n.mutableReadLanes&=r,n.entangledLanes&=r,r=n.entanglements;for(var s=n.eventTimes,a=n.expirationTimes;0<o;){var l=31-sp(o),c=1<<l;r[l]=0,s[l]=-1,a[l]=-1,o&=~c}if(Cf!==null&&(i&24)==0&&Cf.has(n)&&Cf.delete(n),n===Aa&&(es=Aa=null,oa=0),1<t.flags?t.lastEffect!==null?(t.lastEffect.nextEffect=t,i=t.firstEffect):i=t:i=t.firstEffect,i!==null){if(r=yn,yn|=32,y8.current=null,F3=uI,s=AQ(),A3(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(c=a.getSelection&&a.getSelection())&&c.rangeCount!==0){a=c.anchorNode,o=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var u=0,d=-1,h=-1,f=0,g=0,p=s,m=null;t:for(;;){for(var v;p!==a||o!==0&&p.nodeType!==3||(d=u+o),p!==l||c!==0&&p.nodeType!==3||(h=u+c),p.nodeType===3&&(u+=p.nodeValue.length),(v=p.firstChild)!==null;)m=p,p=v;for(;;){if(p===s)break t;if(m===a&&++f===o&&(d=u),m===l&&++g===c&&(h=u),(v=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=v}a=d===-1||h===-1?null:{start:d,end:h}}else a=null;a=a||{start:0,end:0}}else a=null;B3={focusedElem:s,selectionRange:a},uI=!1,yx=null,qI=!1,Wt=i;do try{iIe()}catch(T){if(Wt===null)throw Error(bt(330));bp(Wt,T),Wt=Wt.nextEffect}while(Wt!==null);yx=null,Wt=i;do try{for(s=n;Wt!==null;){var _=Wt.flags;if(_&16&&MS(Wt.stateNode,""),_&128){var y=Wt.alternate;if(y!==null){var b=y.ref;b!==null&&(typeof b=="function"?b(null):b.current=null)}}switch(_&1038){case 2:JJ(Wt),Wt.flags&=-3;break;case 6:JJ(Wt),Wt.flags&=-3,b8(Wt.alternate,Wt);break;case 1024:Wt.flags&=-1025;break;case 1028:Wt.flags&=-1025,b8(Wt.alternate,Wt);break;case 4:b8(Wt.alternate,Wt);break;case 8:a=Wt,eee(s,a);var w=a.alternate;XJ(a),w!==null&&XJ(w)}Wt=Wt.nextEffect}}catch(T){if(Wt===null)throw Error(bt(330));bp(Wt,T),Wt=Wt.nextEffect}while(Wt!==null);if(b=B3,y=AQ(),_=b.focusedElem,s=b.selectionRange,y!==_&&_&&_.ownerDocument&&NQ(_.ownerDocument.documentElement,_)){for(s!==null&&A3(_)&&(y=s.start,b=s.end,b===void 0&&(b=y),"selectionStart"in _?(_.selectionStart=y,_.selectionEnd=Math.min(b,_.value.length)):(b=(y=_.ownerDocument||document)&&y.defaultView||window,b.getSelection&&(b=b.getSelection(),a=_.textContent.length,w=Math.min(s.start,a),s=s.end===void 0?w:Math.min(s.end,a),!b.extend&&w>s&&(a=s,s=w,w=a),a=RQ(_,w),o=RQ(_,s),a&&o&&(b.rangeCount!==1||b.anchorNode!==a.node||b.anchorOffset!==a.offset||b.focusNode!==o.node||b.focusOffset!==o.offset)&&(y=y.createRange(),y.setStart(a.node,a.offset),b.removeAllRanges(),w>s?(b.addRange(y),b.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),b.addRange(y)))))),y=[],b=_;b=b.parentNode;)b.nodeType===1&&y.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<y.length;_++)b=y[_],b.element.scrollLeft=b.left,b.element.scrollTop=b.top}uI=!!F3,B3=F3=null,n.current=t,Wt=i;do try{for(_=n;Wt!==null;){var x=Wt.flags;if(x&36&&ZDe(_,Wt.alternate,Wt),x&128){y=void 0;var S=Wt.ref;if(S!==null){var k=Wt.stateNode;switch(Wt.tag){case 5:y=k;break;default:y=k}typeof S=="function"?S(y):S.current=y}}Wt=Wt.nextEffect}}catch(T){if(Wt===null)throw Error(bt(330));bp(Wt,T),Wt=Wt.nextEffect}while(Wt!==null);Wt=null,BDe(),yn=r}else n.current=t;if(pp)pp=!1,_x=n,vx=e;else for(Wt=i;Wt!==null;)e=Wt.nextEffect,Wt.nextEffect=null,Wt.flags&8&&(x=Wt,x.sibling=null,x.stateNode=null),Wt=e;if(i=n.pendingLanes,i===0&&(Bd=null),i===1?n===D8?bx++:(bx=0,D8=n):bx=0,t=t.stateNode,T_&&typeof T_.onCommitFiberRoot=="function")try{T_.onCommitFiberRoot(z3,t,void 0,(t.current.flags&64)==64)}catch{}if(qc(n,ia()),zI)throw zI=!1,n=k8,k8=null,n;return(yn&8)!=0||Od(),null}function iIe(){for(;Wt!==null;){var n=Wt.alternate;qI||yx===null||((Wt.flags&8)!=0?JX(Wt,yx)&&(qI=!0):Wt.tag===13&&XDe(n,Wt)&&JX(Wt,yx)&&(qI=!0));var e=Wt.flags;(e&256)!=0&&YDe(n,Wt),(e&512)==0||pp||(pp=!0,ix(97,function(){return vp(),null})),Wt=Wt.nextEffect}}function vp(){if(vx!==90){var n=97<vx?97:vx;return vx=90,D_(n,oIe)}return!1}function rIe(n,e){L8.push(e,n),pp||(pp=!0,ix(97,function(){return vp(),null}))}function cee(n,e){T8.push(e,n),pp||(pp=!0,ix(97,function(){return vp(),null}))}function oIe(){if(_x===null)return!1;var n=_x;if(_x=null,(yn&48)!=0)throw Error(bt(331));var e=yn;yn|=32;var t=T8;T8=[];for(var i=0;i<t.length;i+=2){var r=t[i],o=t[i+1],s=r.destroy;if(r.destroy=void 0,typeof s=="function")try{s()}catch(l){if(o===null)throw Error(bt(330));bp(o,l)}}for(t=L8,L8=[],i=0;i<t.length;i+=2){r=t[i],o=t[i+1];try{var a=r.create;r.destroy=a()}catch(l){if(o===null)throw Error(bt(330));bp(o,l)}}for(a=n.current.firstEffect;a!==null;)n=a.nextEffect,a.nextEffect=null,a.flags&8&&(a.sibling=null,a.stateNode=null),a=n;return yn=e,Od(),!0}function uee(n,e,t){e=p8(t,e),e=qJ(n,e,1),fp(n,e),e=Ql(),n=KI(n,1),n!==null&&(cI(n,1,e),qc(n,e))}function bp(n,e){if(n.tag===3)uee(n,n,e);else for(var t=n.return;t!==null;){if(t.tag===3){uee(t,n,e);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Bd===null||!Bd.has(i))){n=p8(e,n);var r=KJ(t,n,1);if(fp(t,r),r=Ql(),t=KI(t,1),t!==null)cI(t,1,r),qc(t,r);else if(typeof i.componentDidCatch=="function"&&(Bd===null||!Bd.has(i)))try{i.componentDidCatch(e,n)}catch{}break}}t=t.return}}function sIe(n,e,t){var i=n.pingCache;i!==null&&i.delete(e),e=Ql(),n.pingedLanes|=n.suspendedLanes&t,Aa===n&&(oa&t)===t&&(Ms===4||Ms===3&&(oa&62914560)===oa&&500>ia()-x8?m1(n,0):w8|=t),qc(n,e)}function aIe(n,e){var t=n.stateNode;t!==null&&t.delete(e),e=0,e===0&&(e=n.mode,(e&2)==0?e=1:(e&4)==0?e=a1()===99?1:2:(wf===0&&(wf=h1),e=Xb(62914560&~wf),e===0&&(e=4194304))),t=Ql(),n=KI(n,e),n!==null&&(cI(n,e,t),qc(n,t))}var dee;dee=function(n,e,t){var i=e.lanes;if(n!==null)if(n.memoizedProps!==e.pendingProps||gl.current)Au=!0;else if((t&i)!=0)Au=(n.flags&16384)!=0;else{switch(Au=!1,e.tag){case 3:MJ(e),n8();break;case 5:_J(e);break;case 1:pl(e.type)&&wI(e);break;case 4:J3(e,e.stateNode.containerInfo);break;case 10:i=e.memoizedProps.value;var r=e.type._context;Kr(EI,r._currentValue),r._currentValue=i;break;case 13:if(e.memoizedState!==null)return(t&e.child.childLanes)!=0?FJ(n,e,t):(Kr(Gr,Gr.current&1),e=yf(n,e,t),e!==null?e.sibling:null);Kr(Gr,Gr.current&1);break;case 19:if(i=(t&e.childLanes)!=0,(n.flags&64)!=0){if(i)return VJ(n,e,t);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Kr(Gr,Gr.current),i)break;return null;case 23:case 24:return e.lanes=0,u8(n,e,t)}return yf(n,e,t)}else Au=!1;switch(e.lanes=0,e.tag){case 2:if(i=e.type,n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2),n=e.pendingProps,r=s1(e,na.current),c1(e,t),r=o8(null,e,i,n,r,t),e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,pl(i)){var o=!0;wI(e)}else o=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,X3(e);var s=i.getDerivedStateFromProps;typeof s=="function"&&TI(e,i,s,n),r.updater=DI,e.stateNode=r,r._reactInternals=e,Q3(e,i,n,t),e=h8(null,e,i,!0,o,t)}else e.tag=0,_l(null,e,r,t),e=e.child;return e;case 16:r=e.elementType;e:{switch(n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2),n=e.pendingProps,o=r._init,r=o(r._payload),e.type=r,o=e.tag=cIe(r),n=Nu(r,n),o){case 0:e=d8(null,e,r,n,t);break e;case 1:e=PJ(null,e,r,n,t);break e;case 11:e=RJ(null,e,r,n,t);break e;case 14:e=NJ(null,e,r,Nu(r.type,n),i,t);break e}throw Error(bt(306,r,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Nu(i,r),d8(n,e,i,r,t);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Nu(i,r),PJ(n,e,i,r,t);case 3:if(MJ(e),i=e.updateQueue,n===null||i===null)throw Error(bt(282));if(i=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,lJ(n,e),rx(e,i,null,t),i=e.memoizedState.element,i===r)n8(),e=yf(n,e,t);else{if(r=e.stateNode,(o=r.hydrate)&&(gp=n1(e.stateNode.containerInfo.firstChild),bf=e,o=Md=!0),o){if(n=r.mutableSourceEagerHydrationData,n!=null)for(r=0;r<n.length;r+=2)o=n[r],o._workInProgressVersionPrimary=n[r+1],d1.push(o);for(t=mJ(e,null,i,t),e.child=t;t;)t.flags=t.flags&-3|1024,t=t.sibling}else _l(n,e,i,t),n8();e=e.child}return e;case 5:return _J(e),n===null&&t8(e),i=e.type,r=e.pendingProps,o=n!==null?n.memoizedProps:null,s=r.children,$3(i,r)?s=null:o!==null&&$3(i,o)&&(e.flags|=16),OJ(n,e),_l(n,e,s,t),e.child;case 6:return n===null&&t8(e),null;case 13:return FJ(n,e,t);case 4:return J3(e,e.stateNode.containerInfo),i=e.pendingProps,n===null?e.child=NI(e,null,i,t):_l(n,e,i,t),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Nu(i,r),RJ(n,e,i,r,t);case 7:return _l(n,e,e.pendingProps,t),e.child;case 8:return _l(n,e,e.pendingProps.children,t),e.child;case 12:return _l(n,e,e.pendingProps.children,t),e.child;case 10:e:{i=e.type._context,r=e.pendingProps,s=e.memoizedProps,o=r.value;var a=e.type._context;if(Kr(EI,a._currentValue),a._currentValue=o,s!==null)if(a=s.value,o=zc(a,o)?0:(typeof i._calculateChangedBits=="function"?i._calculateChangedBits(a,o):1073741823)|0,o===0){if(s.children===r.children&&!gl.current){e=yf(n,e,t);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===i&&(c.observedBits&o)!=0){a.tag===1&&(c=hp(-1,t&-t),c.tag=2,fp(a,c)),a.lanes|=t,c=a.alternate,c!==null&&(c.lanes|=t),aJ(a.return,t),l.lanes|=t;break}c=c.next}}else s=a.tag===10&&a.type===e.type?null:a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}_l(n,e,r.children,t),e=e.child}return e;case 9:return r=e.type,o=e.pendingProps,i=o.children,c1(e,t),r=Uc(r,o.unstable_observedBits),i=i(r),e.flags|=1,_l(n,e,i,t),e.child;case 14:return r=e.type,o=Nu(r,e.pendingProps),o=Nu(r.type,o),NJ(n,e,r,o,i,t);case 15:return AJ(n,e,e.type,e.pendingProps,i,t);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Nu(i,r),n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,pl(i)?(n=!0,wI(e)):n=!1,c1(e,t),fJ(e,i,r),Q3(e,i,r,t),h8(null,e,i,!0,n,t);case 19:return VJ(n,e,t);case 23:return u8(n,e,t);case 24:return u8(n,e,t)}throw Error(bt(156,e.tag))};function lIe(n,e,t,i){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Kc(n,e,t,i){return new lIe(n,e,t,i)}function N8(n){return n=n.prototype,!(!n||!n.isReactComponent)}function cIe(n){if(typeof n=="function")return N8(n)?1:0;if(n!=null){if(n=n.$$typeof,n===ZD)return 11;if(n===QD)return 14}return 2}function yp(n,e){var t=n.alternate;return t===null?(t=Kc(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.nextEffect=null,t.firstEffect=null,t.lastEffect=null),t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function YI(n,e,t,i,r,o){var s=2;if(i=n,typeof n=="function")N8(n)&&(s=1);else if(typeof n=="string")s=5;else e:switch(n){case tp:return _1(t.children,r,o,e);case RX:s=8,r|=16;break;case VF:s=8,r|=1;break;case NS:return n=Kc(12,t,e,r|8),n.elementType=NS,n.type=NS,n.lanes=o,n;case AS:return n=Kc(13,t,e,r),n.type=AS,n.elementType=AS,n.lanes=o,n;case XD:return n=Kc(19,t,e,r),n.elementType=XD,n.lanes=o,n;case GF:return A8(t,r,o,e);case YF:return n=Kc(24,t,e,r),n.elementType=YF,n.lanes=o,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case zF:s=10;break e;case UF:s=9;break e;case ZD:s=11;break e;case QD:s=14;break e;case jF:s=16,i=null;break e;case qF:s=22;break e}throw Error(bt(130,n==null?n:typeof n,""))}return e=Kc(s,t,e,r),e.elementType=n,e.type=i,e.lanes=o,e}function _1(n,e,t,i){return n=Kc(7,n,i,e),n.lanes=t,n}function A8(n,e,t,i){return n=Kc(23,n,i,e),n.elementType=GF,n.lanes=t,n}function O8(n,e,t){return n=Kc(6,n,null,e),n.lanes=t,n}function P8(n,e,t){return e=Kc(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function uIe(n,e,t){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=C3(0),this.expirationTimes=C3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=C3(0),this.mutableSourceEagerHydrationData=null}function dIe(n,e,t){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:S_,key:i==null?null:""+i,children:n,containerInfo:e,implementation:t}}function ZI(n,e,t,i){var r=e.current,o=Ql(),s=mp(r);e:if(t){t=t._reactInternals;t:{if(E_(t)!==t||t.tag!==1)throw Error(bt(170));var a=t;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(pl(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(bt(171))}if(t.tag===1){var l=t.type;if(pl(l)){t=XQ(t,l,a);break e}}t=a}else t=up;return e.context===null?e.context=t:e.pendingContext=t,e=hp(o,s),e.payload={element:n},i=i===void 0?null:i,i!==null&&(e.callback=i),fp(r,e),_p(r,s,o),s}function M8(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function hee(n,e){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var t=n.retryLane;n.retryLane=t!==0&&t<e?t:e}}function F8(n,e){hee(n,e),(n=n.alternate)&&hee(n,e)}function hIe(){return null}function B8(n,e,t){var i=t!=null&&t.hydrationOptions!=null&&t.hydrationOptions.mutableSources||null;if(t=new uIe(n,e,t!=null&&t.hydrate===!0),e=Kc(3,null,null,e===2?7:e===1?3:0),t.current=e,e.stateNode=t,X3(e),n[i1]=t.current,WQ(n.nodeType===8?n.parentNode:n),i)for(n=0;n<i.length;n++){e=i[n];var r=e._getVersion;r=r(e._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[e,r]:t.mutableSourceEagerHydrationData.push(e,r)}this._internalRoot=t}B8.prototype.render=function(n){ZI(n,this._internalRoot,null,null)},B8.prototype.unmount=function(){var n=this._internalRoot,e=n.containerInfo;ZI(null,n,null,function(){e[i1]=null})};function wx(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function fIe(n,e){if(e||(e=n?n.nodeType===9?n.documentElement:n.firstChild:null,e=!(!e||e.nodeType!==1||!e.hasAttribute("data-reactroot"))),!e)for(var t;t=n.lastChild;)n.removeChild(t);return new B8(n,0,e?{hydrate:!0}:void 0)}function XI(n,e,t,i,r){var o=t._reactRootContainer;if(o){var s=o._internalRoot;if(typeof r=="function"){var a=r;r=function(){var c=M8(s);a.call(c)}}ZI(e,s,n,r)}else{if(o=t._reactRootContainer=fIe(t,i),s=o._internalRoot,typeof r=="function"){var l=r;r=function(){var c=M8(s);l.call(c)}}ree(function(){ZI(e,s,n,r)})}return M8(s)}eQ=function(n){if(n.tag===13){var e=Ql();_p(n,4,e),F8(n,4)}},p3=function(n){if(n.tag===13){var e=Ql();_p(n,67108864,e),F8(n,67108864)}},tQ=function(n){if(n.tag===13){var e=Ql(),t=mp(n);_p(n,t,e),F8(n,t)}},nQ=function(n,e){return e()},l3=function(n,e,t){switch(e){case"input":if(JF(n,t),e=t.name,t.type==="radio"&&e!=null){for(t=n;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<t.length;e++){var i=t[e];if(i!==n&&i.form===n.form){var r=yI(i);if(!r)throw Error(bt(90));OX(i),JF(i,r)}}}break;case"textarea":$X(n,t);break;case"select":e=t.value,e!=null&&qb(n,!!t.multiple,e,!1)}},c3=iee,GX=function(n,e,t,i,r){var o=yn;yn|=4;try{return D_(98,n.bind(null,e,t,i,r))}finally{yn=o,yn===0&&(g1(),Od())}},u3=function(){(yn&49)==0&&(JDe(),vp())},YX=function(n,e){var t=yn;yn|=2;try{return n(e)}finally{yn=t,yn===0&&(g1(),Od())}};function fee(n,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wx(e))throw Error(bt(200));return dIe(n,e,null,t)}var gIe={Events:[nx,r1,yI,qX,KX,vp,{current:!1}]},Sx={findFiberByHostInstance:k_,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},pIe={bundleType:Sx.bundleType,version:Sx.version,rendererPackageName:Sx.rendererPackageName,rendererConfig:Sx.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w_.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=QX(n),n===null?null:n.stateNode},findFiberByHostInstance:Sx.findFiberByHostInstance||hIe,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var QI=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!QI.isDisabled&&QI.supportsFiber)try{z3=QI.inject(pIe),T_=QI}catch{}}Vc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gIe,Vc.createPortal=fee,Vc.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var e=n._reactInternals;if(e===void 0)throw typeof n.render=="function"?Error(bt(188)):Error(bt(268,Object.keys(n)));return n=QX(e),n=n===null?null:n.stateNode,n},Vc.flushSync=function(n,e){var t=yn;if((t&48)!=0)return n(e);yn|=1;try{if(n)return D_(99,n.bind(null,e))}finally{yn=t,Od()}},Vc.hydrate=function(n,e,t){if(!wx(e))throw Error(bt(200));return XI(null,n,e,!0,t)},Vc.render=function(n,e,t){if(!wx(e))throw Error(bt(200));return XI(null,n,e,!1,t)},Vc.unmountComponentAtNode=function(n){if(!wx(n))throw Error(bt(40));return n._reactRootContainer?(ree(function(){XI(null,null,n,!1,function(){n._reactRootContainer=null,n[i1]=null})}),!0):!1},Vc.unstable_batchedUpdates=iee,Vc.unstable_createPortal=function(n,e){return fee(n,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Vc.unstable_renderSubtreeIntoContainer=function(n,e,t,i){if(!wx(t))throw Error(bt(200));if(n==null||n._reactInternals===void 0)throw Error(bt(38));return XI(n,e,t,!1,i)},Vc.version="17.0.2";function gee(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gee)}catch(n){console.error(n)}}gee(),fl.exports=Vc;var pee=fl.exports,mIe=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,_Ie=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],$8=function(e){var t=e,i=e.indexOf("["),r=e.indexOf("]");i!=-1&&r!=-1&&(e=e.substring(0,i)+e.substring(i,r).replace(/:/g,";")+e.substring(r,e.length));for(var o=mIe.exec(e||""),s={},a=14;a--;)s[_Ie[a]]=o[a]||"";return i!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=vIe(s,s.path),s.queryKey=bIe(s,s.query),s};function vIe(n,e){var t=/\/{2,9}/g,i=e.replace(t,"/").split("/");return(e.substr(0,1)=="/"||e.length===0)&&i.splice(0,1),e.substr(e.length-1,1)=="/"&&i.splice(i.length-1,1),i}function bIe(n,e){var t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,r,o){r&&(t[r]=o)}),t}function yIe(n,e="",t){let i=n;t=t||typeof location!="undefined"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t!="undefined"?n=t.protocol+"//"+n:n="https://"+n),i=$8(n)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const o=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+o+":"+i.port+e,i.href=i.protocol+"://"+o+(t&&t.port===i.port?"":":"+i.port),i}var W8={exports:{}};try{W8.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch{W8.exports=!1}var CIe=W8.exports,Cp=(()=>typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")())();function mee(n){const e=n.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!e||CIe))return new XMLHttpRequest}catch{}if(!e)try{return new Cp[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function _ee(n,...e){return e.reduce((t,i)=>(n.hasOwnProperty(i)&&(t[i]=n[i]),t),{})}const wIe=setTimeout,SIe=clearTimeout;function JI(n,e){e.useNativeTimers?(n.setTimeoutFn=wIe.bind(Cp),n.clearTimeoutFn=SIe.bind(Cp)):(n.setTimeoutFn=setTimeout.bind(Cp),n.clearTimeoutFn=clearTimeout.bind(Cp))}var v1=Oa;function Oa(n){if(n)return xIe(n)}function xIe(n){for(var e in Oa.prototype)n[e]=Oa.prototype[e];return n}Oa.prototype.on=Oa.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this},Oa.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this},Oa.prototype.off=Oa.prototype.removeListener=Oa.prototype.removeAllListeners=Oa.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var i,r=0;r<t.length;r++)if(i=t[r],i===e||i.fn===e){t.splice(r,1);break}return t.length===0&&delete this._callbacks["$"+n],this},Oa.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(t){t=t.slice(0);for(var i=0,r=t.length;i<r;++i)t[i].apply(this,e)}return this},Oa.prototype.emitReserved=Oa.prototype.emit,Oa.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},Oa.prototype.hasListeners=function(n){return!!this.listeners(n).length};const $d=Object.create(null);$d.open="0",$d.close="1",$d.ping="2",$d.pong="3",$d.message="4",$d.upgrade="5",$d.noop="6";const eR=Object.create(null);Object.keys($d).forEach(n=>{eR[$d[n]]=n});const EIe={type:"error",data:"parser error"},kIe=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",LIe=typeof ArrayBuffer=="function",TIe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,vee=({type:n,data:e},t,i)=>kIe&&e instanceof Blob?t?i(e):bee(e,i):LIe&&(e instanceof ArrayBuffer||TIe(e))?t?i(e):bee(new Blob([e]),i):i($d[n]+(e||"")),bee=(n,e)=>{const t=new FileReader;return t.onload=function(){const i=t.result.split(",")[1];e("b"+i)},t.readAsDataURL(n)};for(var yee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xx=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),tR=0;tR<yee.length;tR++)xx[yee.charCodeAt(tR)]=tR;var DIe=function(n){var e=n.length*.75,t=n.length,i,r=0,o,s,a,l;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var c=new ArrayBuffer(e),u=new Uint8Array(c);for(i=0;i<t;i+=4)o=xx[n.charCodeAt(i)],s=xx[n.charCodeAt(i+1)],a=xx[n.charCodeAt(i+2)],l=xx[n.charCodeAt(i+3)],u[r++]=o<<2|s>>4,u[r++]=(s&15)<<4|a>>2,u[r++]=(a&3)<<6|l&63;return c};const IIe=typeof ArrayBuffer=="function",Cee=(n,e)=>{if(typeof n!="string")return{type:"message",data:wee(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:RIe(n.substring(1),e)}:eR[t]?n.length>1?{type:eR[t],data:n.substring(1)}:{type:eR[t]}:EIe},RIe=(n,e)=>{if(IIe){const t=DIe(n);return wee(t,e)}else return{base64:!0,data:n}},wee=(n,e)=>{switch(e){case"blob":return n instanceof ArrayBuffer?new Blob([n]):n;case"arraybuffer":default:return n}},See=String.fromCharCode(30),NIe=(n,e)=>{const t=n.length,i=new Array(t);let r=0;n.forEach((o,s)=>{vee(o,!1,a=>{i[s]=a,++r===t&&e(i.join(See))})})},AIe=(n,e)=>{const t=n.split(See),i=[];for(let r=0;r<t.length;r++){const o=Cee(t[r],e);if(i.push(o),o.type==="error")break}return i},xee=4;class Eee extends v1{constructor(e){super();this.writable=!1,JI(this,e),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t){const i=new Error(e);return i.type="TransportError",i.description=t,super.emit("error",i),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emit("open")}onData(e){const t=Cee(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emit("packet",e)}onClose(){this.readyState="closed",super.emit("close")}}var kee="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),nR=64,Lee={},Tee=0,wp=0,Dee;function H8(n){var e="";do e=kee[n%nR]+e,n=Math.floor(n/nR);while(n>0);return e}function OIe(n){var e=0;for(wp=0;wp<n.length;wp++)e=e*nR+Lee[n.charAt(wp)];return e}function V8(){var n=H8(+new Date);return n!==Dee?(Tee=0,Dee=n):n+"."+H8(Tee++)}for(;wp<nR;wp++)Lee[kee[wp]]=wp;V8.encode=H8,V8.decode=OIe;var Iee=V8,Ex={};Ex.encode=function(n){var e="";for(var t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e},Ex.decode=function(n){for(var e={},t=n.split("&"),i=0,r=t.length;i<r;i++){var o=t[i].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e};class PIe extends Eee{constructor(){super(...arguments);this.polling=!1}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||t()})),this.writable||(i++,this.once("drain",function(){--i||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emit("poll")}onData(e){const t=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose(),!1;this.onPacket(i)};AIe(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,NIe(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emit("drain")})})}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=Iee()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&(t==="https"&&Number(this.opts.port)!==443||t==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const r=Ex.encode(e),o=this.opts.hostname.indexOf(":")!==-1;return t+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(r.length?"?"+r:"")}}function MIe(){}const FIe=function(){return new mee({xdomain:!1}).responseType!=null}();class BIe extends PIe{constructor(e){super(e);if(typeof location!="undefined"){const i=location.protocol==="https:";let r=location.port;r||(r=i?"443":"80"),this.xd=typeof location!="undefined"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==i}const t=e&&e.forceBase64;this.supportsBinary=FIe&&!t}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new Wd(this.uri(),e)}doWrite(e,t){const i=this.request({method:"POST",data:e});i.on("success",t),i.on("error",r=>{this.onError("xhr post error",r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",t=>{this.onError("xhr poll error",t)}),this.pollXhr=e}}class Wd extends v1{constructor(e,t){super();JI(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=t.async!==!1,this.data=t.data!==void 0?t.data:null,this.create()}create(){const e=_ee(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new mee(e);try{t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&t.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{t.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{t.readyState===4&&(t.status===200||t.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof t.status=="number"?t.status:0)},0))},t.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document!="undefined"&&(this.index=Wd.requestsCount++,Wd.requests[this.index]=this)}onSuccess(){this.emit("success"),this.cleanup()}onData(e){this.emit("data",e),this.onSuccess()}onError(e){this.emit("error",e),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.xhr.onreadystatechange=MIe,e)try{this.xhr.abort()}catch{}typeof document!="undefined"&&delete Wd.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&this.onData(e)}abort(){this.cleanup()}}if(Wd.requestsCount=0,Wd.requests={},typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Ree);else if(typeof addEventListener=="function"){const n="onpagehide"in Cp?"pagehide":"unload";addEventListener(n,Ree,!1)}}function Ree(){for(let n in Wd.requests)Wd.requests.hasOwnProperty(n)&&Wd.requests[n].abort()}const $Ie=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0))(),kx=Cp.WebSocket||Cp.MozWebSocket,Nee=!0,WIe="arraybuffer",Aee=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class z8 extends Eee{constructor(e){super(e);this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,i=Aee?{}:_ee(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=Nee&&!Aee?t?new kx(e,t):new kx(e):new kx(e,t,i)}catch(r){return this.emit("error",r)}this.ws.binaryType=this.socket.binaryType||WIe,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const i=e[t],r=t===e.length-1;vee(i,this.supportsBinary,o=>{const s={};try{Nee&&this.ws.send(o)}catch{}r&&$Ie(()=>{this.writable=!0,this.emit("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(t==="wss"&&Number(this.opts.port)!==443||t==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=Iee()),this.supportsBinary||(e.b64=1);const r=Ex.encode(e),o=this.opts.hostname.indexOf(":")!==-1;return t+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(r.length?"?"+r:"")}check(){return!!kx&&!("__initialize"in kx&&this.name===z8.prototype.name)}}const HIe={websocket:z8,polling:BIe};class Sf extends v1{constructor(e,t={}){super();e&&typeof e=="object"&&(t=e,e=null),e?(e=$8(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=$8(t.host).host),JI(this,t),this.secure=t.secure!=null?t.secure:typeof location!="undefined"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=t.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=Ex.decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close")},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=VIe(this.opts.query);t.EIO=xee,t.transport=e,this.id&&(t.sid=this.id);const i=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new HIe[e](i)}open(){let e;if(this.opts.rememberUpgrade&&Sf.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",()=>{this.onClose("transport close")})}probe(e){let t=this.createTransport(e),i=!1;Sf.priorWebsocketSuccess=!1;const r=()=>{i||(t.send([{type:"ping",data:"probe"}]),t.once("packet",d=>{if(!i)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Sf.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=t.name,this.emitReserved("upgradeError",h)}}))};function o(){i||(i=!0,u(),t.close(),t=null)}const s=d=>{const h=new Error("probe error: "+d);h.transport=t.name,o(),this.emitReserved("upgradeError",h)};function a(){s("transport closed")}function l(){s("socket closed")}function c(d){t&&d.name!==t.name&&o()}const u=()=>{t.removeListener("open",r),t.removeListener("error",s),t.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};t.once("open",r),t.once("error",s),t.once("close",a),this.once("close",l),this.once("upgrading",c),t.open()}onOpen(){if(this.readyState="open",Sf.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emitReserved("flush"))}write(e,t,i){return this.sendPacket("message",e,t,i),this}send(e,t,i){return this.sendPacket("message",e,t,i),this}sendPacket(e,t,i,r){if(typeof t=="function"&&(r=t,t=void 0),typeof i=="function"&&(r=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const o={type:e,data:t,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},i=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}onError(e){Sf.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let i=0;const r=e.length;for(;i<r;i++)~this.transports.indexOf(e[i])&&t.push(e[i]);return t}}Sf.protocol=xee;function VIe(n){const e={};for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}Sf.protocol;const zIe=typeof ArrayBuffer=="function",UIe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Oee=Object.prototype.toString,jIe=typeof Blob=="function"||typeof Blob!="undefined"&&Oee.call(Blob)==="[object BlobConstructor]",qIe=typeof File=="function"||typeof File!="undefined"&&Oee.call(File)==="[object FileConstructor]";function U8(n){return zIe&&(n instanceof ArrayBuffer||UIe(n))||jIe&&n instanceof Blob||qIe&&n instanceof File}function iR(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,i=n.length;t<i;t++)if(iR(n[t]))return!0;return!1}if(U8(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return iR(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&iR(n[t]))return!0;return!1}function KIe(n){const e=[],t=n.data,i=n;return i.data=j8(t,e),i.attachments=e.length,{packet:i,buffers:e}}function j8(n,e){if(!n)return n;if(U8(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}else if(Array.isArray(n)){const t=new Array(n.length);for(let i=0;i<n.length;i++)t[i]=j8(n[i],e);return t}else if(typeof n=="object"&&!(n instanceof Date)){const t={};for(const i in n)n.hasOwnProperty(i)&&(t[i]=j8(n[i],e));return t}return n}function GIe(n,e){return n.data=q8(n.data,e),n.attachments=void 0,n}function q8(n,e){if(!n)return n;if(n&&n._placeholder)return e[n.num];if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=q8(n[t],e);else if(typeof n=="object")for(const t in n)n.hasOwnProperty(t)&&(n[t]=q8(n[t],e));return n}const YIe=5;var ai;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(ai||(ai={}));class ZIe{encode(e){return(e.type===ai.EVENT||e.type===ai.ACK)&&iR(e)?(e.type=e.type===ai.EVENT?ai.BINARY_EVENT:ai.BINARY_ACK,this.encodeAsBinary(e)):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===ai.BINARY_EVENT||e.type===ai.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data)),t}encodeAsBinary(e){const t=KIe(e),i=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(i),r}}class K8 extends v1{constructor(){super()}add(e){let t;if(typeof e=="string")t=this.decodeString(e),t.type===ai.BINARY_EVENT||t.type===ai.BINARY_ACK?(this.reconstructor=new QIe(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t);else if(U8(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const i={type:Number(e.charAt(0))};if(ai[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===ai.BINARY_EVENT||i.type===ai.BINARY_ACK){const o=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const s=e.substring(o,t);if(s!=Number(s)||e.charAt(t)!=="-")throw new Error("Illegal attachments");i.attachments=Number(s)}if(e.charAt(t+1)==="/"){const o=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););i.nsp=e.substring(o,t)}else i.nsp="/";const r=e.charAt(t+1);if(r!==""&&Number(r)==r){const o=t+1;for(;++t;){const s=e.charAt(t);if(s==null||Number(s)!=s){--t;break}if(t===e.length)break}i.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){const o=XIe(e.substr(t));if(K8.isPayloadValid(i.type,o))i.data=o;else throw new Error("invalid payload")}return i}static isPayloadValid(e,t){switch(e){case ai.CONNECT:return typeof t=="object";case ai.DISCONNECT:return t===void 0;case ai.CONNECT_ERROR:return typeof t=="string"||typeof t=="object";case ai.EVENT:case ai.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case ai.ACK:case ai.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}function XIe(n){try{return JSON.parse(n)}catch{return!1}}class QIe{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=GIe(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var JIe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",protocol:YIe,get PacketType(){return ai},Encoder:ZIe,Decoder:K8});function Ou(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const eRe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Pee extends v1{constructor(e,t,i){super();this.connected=!1,this.disconnected=!0,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,i&&i.auth&&(this.auth=i.auth),this.io._autoConnect&&this.open()}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Ou(e,"open",this.onopen.bind(this)),Ou(e,"packet",this.onpacket.bind(this)),Ou(e,"error",this.onerror.bind(this)),Ou(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(eRe.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const i={type:ai.EVENT,data:t};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const s=this.ids++,a=t.pop();this._registerAckCallback(s,a),i.id=s}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?this.packet(i):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){const i=this.flags.timeout;if(i===void 0){this.acks[e]=t;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===e&&this.sendBuffer.splice(o,1);t.call(this,new Error("operation has timed out"))},i);this.acks[e]=(...o)=>{this.io.clearTimeoutFn(r),t.apply(this,[null,...o])}}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this.packet({type:ai.CONNECT,data:e})}):this.packet({type:ai.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e){this.connected=!1,this.disconnected=!0,delete this.id,this.emitReserved("disconnect",e)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ai.CONNECT:if(e.data&&e.data.sid){const r=e.data.sid;this.onconnect(r)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ai.EVENT:this.onevent(e);break;case ai.BINARY_EVENT:this.onevent(e);break;case ai.ACK:this.onack(e);break;case ai.BINARY_ACK:this.onack(e);break;case ai.DISCONNECT:this.ondisconnect();break;case ai.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const i of t)i.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let i=!1;return function(...r){i||(i=!0,t.packet({type:ai.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e){this.id=e,this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>this.packet(e)),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ai.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let i=0;i<t.length;i++)if(e===t[i])return t.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}}var tRe=b1;function b1(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}b1.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=(Math.floor(e*10)&1)==0?n-t:n+t}return Math.min(n,this.max)|0},b1.prototype.reset=function(){this.attempts=0},b1.prototype.setMin=function(n){this.ms=n},b1.prototype.setMax=function(n){this.max=n},b1.prototype.setJitter=function(n){this.jitter=n};class G8 extends v1{constructor(e,t){var i;super();this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,JI(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((i=t.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new tRe({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||JIe;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Sf(this.uri,this.opts);const t=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const r=Ou(t,"open",function(){i.onopen(),e&&e()}),o=Ou(t,"error",s=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",s),e?e(s):i.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&r();const a=this.setTimeoutFn(()=>{r(),t.close(),t.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Ou(e,"ping",this.onping.bind(this)),Ou(e,"data",this.ondata.bind(this)),Ou(e,"error",this.onerror.bind(this)),Ou(e,"close",this.onclose.bind(this)),Ou(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){this.decoder.add(e)}ondecoded(e){this.emitReserved("packet",e)}onerror(e){this.emitReserved("error",e)}socket(e,t){let i=this.nsps[e];return i||(i=new Pee(this,e,t),this.nsps[e]=i),i}_destroy(e){const t=Object.keys(this.nsps);for(const i of t)if(this.nsps[i].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let i=0;i<t.length;i++)this.engine.write(t[i],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Lx={};function rR(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=yIe(n,e.path||"/socket.io"),i=t.source,r=t.id,o=t.path,s=Lx[r]&&o in Lx[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s;let l;return a?l=new G8(i,e):(Lx[r]||(Lx[r]=new G8(i,e)),l=Lx[r]),t.query&&!e.query&&(e.query=t.queryKey),l.socket(t.path,e)}Object.assign(rR,{Manager:G8,Socket:Pee,io:rR,connect:rR});function nRe(n){let e;const t=new Set,i=(c,u)=>{const d=typeof c=="function"?c(e):c;if(d!==e){const h=e;e=u?d:Object.assign({},e,d),t.forEach(f=>f(e,h))}},r=()=>e,o=(c,u=r,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let h=u(e);function f(){const g=u(e);if(!d(h,g)){const p=h;c(h=g,p)}}return t.add(f),()=>t.delete(f)},l={setState:i,getState:r,subscribe:(c,u,d)=>u||d?o(c,u,d):(t.add(c),()=>t.delete(c)),destroy:()=>t.clear()};return e=n(i,r,l),l}const Mee=typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?O.exports.useEffect:O.exports.useLayoutEffect;function Jl(n){const e=typeof n=="function"?nRe(n):n,t=(i=e.getState,r=Object.is)=>{const[,o]=O.exports.useReducer(m=>m+1,0),s=e.getState(),a=O.exports.useRef(s),l=O.exports.useRef(i),c=O.exports.useRef(r),u=O.exports.useRef(!1),d=O.exports.useRef();d.current===void 0&&(d.current=i(s));let h,f=!1;(a.current!==s||l.current!==i||c.current!==r||u.current)&&(h=i(s),f=!r(d.current,h)),Mee(()=>{f&&(d.current=h),a.current=s,l.current=i,c.current=r,u.current=!1});const g=O.exports.useRef(s);Mee(()=>{const m=()=>{try{const _=e.getState(),y=l.current(_);c.current(d.current,y)||(a.current=_,d.current=y,o())}catch{u.current=!0,o()}},v=e.subscribe(m);return e.getState()!==g.current&&m(),v},[]);const p=f?h:d.current;return O.exports.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const i=[t,e];return{next(){const r=i.length<=0;return{value:i.shift(),done:r}}}},t}const Yr=Jl(n=>({socket:void 0,setSocket:e=>n(()=>({socket:e}))}));class iRe{constructor(e){return rR(e.ioPath,{transports:["websocket"],auth:st(Te({},e),{uuid:e.userId})})}}const rRe=(n,e)=>e.some(t=>n instanceof t);let Fee,Bee;function oRe(){return Fee||(Fee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function sRe(){return Bee||(Bee=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const $ee=new WeakMap,Y8=new WeakMap,Wee=new WeakMap,Z8=new WeakMap,X8=new WeakMap;function aRe(n){const e=new Promise((t,i)=>{const r=()=>{n.removeEventListener("success",o),n.removeEventListener("error",s)},o=()=>{t(Sp(n.result)),r()},s=()=>{i(n.error),r()};n.addEventListener("success",o),n.addEventListener("error",s)});return e.then(t=>{t instanceof IDBCursor&&$ee.set(t,n)}).catch(()=>{}),X8.set(e,n),e}function lRe(n){if(Y8.has(n))return;const e=new Promise((t,i)=>{const r=()=>{n.removeEventListener("complete",o),n.removeEventListener("error",s),n.removeEventListener("abort",s)},o=()=>{t(),r()},s=()=>{i(n.error||new DOMException("AbortError","AbortError")),r()};n.addEventListener("complete",o),n.addEventListener("error",s),n.addEventListener("abort",s)});Y8.set(n,e)}let Q8={get(n,e,t){if(n instanceof IDBTransaction){if(e==="done")return Y8.get(n);if(e==="objectStoreNames")return n.objectStoreNames||Wee.get(n);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return Sp(n[e])},set(n,e,t){return n[e]=t,!0},has(n,e){return n instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in n}};function cRe(n){Q8=n(Q8)}function uRe(n){return n===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const i=n.call(J8(this),e,...t);return Wee.set(i,e.sort?e.sort():[e]),Sp(i)}:sRe().includes(n)?function(...e){return n.apply(J8(this),e),Sp($ee.get(this))}:function(...e){return Sp(n.apply(J8(this),e))}}function dRe(n){return typeof n=="function"?uRe(n):(n instanceof IDBTransaction&&lRe(n),rRe(n,oRe())?new Proxy(n,Q8):n)}function Sp(n){if(n instanceof IDBRequest)return aRe(n);if(Z8.has(n))return Z8.get(n);const e=dRe(n);return e!==n&&(Z8.set(n,e),X8.set(e,n)),e}const J8=n=>X8.get(n);function hRe(n,e,{blocked:t,upgrade:i,blocking:r,terminated:o}={}){const s=indexedDB.open(n,e),a=Sp(s);return i&&s.addEventListener("upgradeneeded",l=>{i(Sp(s.result),l.oldVersion,l.newVersion,Sp(s.transaction))}),t&&s.addEventListener("blocked",()=>t()),a.then(l=>{o&&l.addEventListener("close",()=>o()),r&&l.addEventListener("versionchange",()=>r())}).catch(()=>{}),a}const fRe=["get","getKey","getAll","getAllKeys","count"],gRe=["put","add","delete","clear"],e6=new Map;function Hee(n,e){if(!(n instanceof IDBDatabase&&!(e in n)&&typeof e=="string"))return;if(e6.get(e))return e6.get(e);const t=e.replace(/FromIndex$/,""),i=e!==t,r=gRe.includes(t);if(!(t in(i?IDBIndex:IDBObjectStore).prototype)||!(r||fRe.includes(t)))return;const o=async function(s,...a){const l=this.transaction(s,r?"readwrite":"readonly");let c=l.store;return i&&(c=c.index(a.shift())),(await Promise.all([c[t](...a),r&&l.done]))[0]};return e6.set(e,o),o}cRe(n=>st(Te({},n),{get:(e,t,i)=>Hee(e,t)||n.get(e,t,i),has:(e,t)=>!!Hee(e,t)||n.has(e,t)}));var oR,pRe=new Uint8Array(16);function mRe(){if(!oR&&(oR=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!oR))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oR(pRe)}var _Re=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function vRe(n){return typeof n=="string"&&_Re.test(n)}for(var Fs=[],t6=0;t6<256;++t6)Fs.push((t6+256).toString(16).substr(1));function bRe(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(Fs[n[e+0]]+Fs[n[e+1]]+Fs[n[e+2]]+Fs[n[e+3]]+"-"+Fs[n[e+4]]+Fs[n[e+5]]+"-"+Fs[n[e+6]]+Fs[n[e+7]]+"-"+Fs[n[e+8]]+Fs[n[e+9]]+"-"+Fs[n[e+10]]+Fs[n[e+11]]+Fs[n[e+12]]+Fs[n[e+13]]+Fs[n[e+14]]+Fs[n[e+15]]).toLowerCase();if(!vRe(t))throw TypeError("Stringified UUID is invalid");return t}function n6(n,e,t){n=n||{};var i=n.random||(n.rng||mRe)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(var r=0;r<16;++r)e[t+r]=i[r];return e}return bRe(i)}var ec={exports:{}};/**
|
|
35
35
|
* @license
|
|
36
36
|
* Lodash <https://lodash.com/>
|
|
37
37
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
38
38
|
* Released under MIT license <https://lodash.com/license>
|
|
39
39
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
40
40
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
41
|
-
*/(function(n,e){(function(){var t,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,h=2,f=4,g=1,p=2,m=1,v=2,_=4,y=8,b=16,w=32,x=64,S=128,k=256,T=512,D=30,R="...",N=800,A=16,V=1,P=2,U=3,F=1/0,M=9007199254740991,W=17976931348623157e292,j=0/0,$=4294967295,Q=$-1,ee=$>>>1,ge=[["ary",S],["bind",m],["bindKey",v],["curry",y],["curryRight",b],["flip",T],["partial",w],["partialRight",x],["rearg",k]],_e="[object Arguments]",Ie="[object Array]",K="[object AsyncFunction]",se="[object Boolean]",oe="[object Date]",Ne="[object DOMException]",pe="[object Error]",Me="[object Function]",at="[object GeneratorFunction]",_t="[object Map]",qe="[object Number]",kt="[object Null]",ve="[object Object]",B="[object Promise]",G="[object Proxy]",te="[object RegExp]",Se="[object Set]",Ee="[object String]",Ce="[object Symbol]",He="[object Undefined]",We="[object WeakMap]",ht="[object WeakSet]",Tt="[object ArrayBuffer]",$t="[object DataView]",pn="[object Float32Array]",ln="[object Float64Array]",fe="[object Int8Array]",Be="[object Int16Array]",It="[object Int32Array]",jt="[object Uint8Array]",Yn="[object Uint8ClampedArray]",ho="[object Uint16Array]",Ns="[object Uint32Array]",Ea=/\b__p \+= '';/g,fo=/\b(__p \+=) '' \+/g,Ir=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ka=/&(?:amp|lt|gt|quot|#39);/g,Rr=/[&<>"']/g,Yo=RegExp(ka.source),La=RegExp(Rr.source),Ta=/<%-([\s\S]+?)%>/g,en=/<%([\s\S]+?)%>/g,Zo=/<%=([\s\S]+?)%>/g,z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,re=RegExp(Z.source),ce=/^\s+/,J=/\s/,be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,it=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ft=/[()=,{}\[\]\/\s]/,wt=/\\(\\)?/g,Nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ut=/\w*$/,xt=/^[-+]0x[0-9a-f]+$/i,Xi=/^0b[01]+$/i,Ln=/^\[object .+?Constructor\]$/,go=/^0o[0-7]+$/i,Ac=/^(?:0|[1-9]\d*)$/,Nr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sl=/($^)/,Vg=/['\n\r\u2028\u2029\\]/g,al="\\ud800-\\udfff",af="\\u0300-\\u036f",zg="\\ufe20-\\ufe2f",Ug="\\u20d0-\\u20ff",_b=af+zg+Ug,vb="\\u2700-\\u27bf",bb="a-z\\xdf-\\xf6\\xf8-\\xff",nS="\\xac\\xb1\\xd7\\xf7",iS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rS="\\u2000-\\u206f",oS=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",yb="A-Z\\xc0-\\xd6\\xd8-\\xde",Cb="\\ufe0e\\ufe0f",wb=nS+iS+rS+oS,Sb="['\u2019]",SD="["+al+"]",sS="["+wb+"]",d_="["+_b+"]",aS="\\d+",xD="["+vb+"]",lS="["+bb+"]",cS="[^"+al+wb+aS+vb+bb+yb+"]",xb="\\ud83c[\\udffb-\\udfff]",ED="(?:"+d_+"|"+xb+")",uS="[^"+al+"]",Eb="(?:\\ud83c[\\udde6-\\uddff]){2}",kb="[\\ud800-\\udbff][\\udc00-\\udfff]",lf="["+yb+"]",dS="\\u200d",hS="(?:"+lS+"|"+cS+")",P5="(?:"+lf+"|"+cS+")",M5="(?:"+Sb+"(?:d|ll|m|re|s|t|ve))?",kD="(?:"+Sb+"(?:D|LL|M|RE|S|T|VE))?",LD=ED+"?",F5="["+Cb+"]?",KY="(?:"+dS+"(?:"+[uS,Eb,kb].join("|")+")"+F5+LD+")*",et="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Oc=F5+LD+KY,Lb="(?:"+[xD,Eb,kb].join("|")+")"+Oc,Tb="(?:"+[uS+d_+"?",d_,Eb,kb,SD].join("|")+")",Xo=RegExp(Sb,"g"),wu=RegExp(d_,"g"),jl=RegExp(xb+"(?="+xb+")|"+Tb+Oc,"g"),Db=RegExp([lf+"?"+lS+"+"+M5+"(?="+[sS,lf,"$"].join("|")+")",P5+"+"+kD+"(?="+[sS,lf+hS,"$"].join("|")+")",lf+"?"+hS+"+"+M5,lf+"+"+kD,je,et,aS,Lb].join("|"),"g"),Da=RegExp("["+dS+al+_b+Cb+"]"),Su=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ib=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rb=-1,xi={};xi[pn]=xi[ln]=xi[fe]=xi[Be]=xi[It]=xi[jt]=xi[Yn]=xi[ho]=xi[Ns]=!0,xi[_e]=xi[Ie]=xi[Tt]=xi[se]=xi[$t]=xi[oe]=xi[pe]=xi[Me]=xi[_t]=xi[qe]=xi[ve]=xi[te]=xi[Se]=xi[Ee]=xi[We]=!1;var vi={};vi[_e]=vi[Ie]=vi[Tt]=vi[$t]=vi[se]=vi[oe]=vi[pn]=vi[ln]=vi[fe]=vi[Be]=vi[It]=vi[_t]=vi[qe]=vi[ve]=vi[te]=vi[Se]=vi[Ee]=vi[Ce]=vi[jt]=vi[Yn]=vi[ho]=vi[Ns]=!0,vi[pe]=vi[Me]=vi[We]=!1;var ql={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ll={"&":"&","<":"<",">":">",'"':""","'":"'"},po={"&":"&","<":"<",">":">",""":'"',"'":"'"},Td={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pc=parseFloat,jg=parseInt,cf=typeof Ot=="object"&&Ot&&Ot.Object===Object&&Ot,fS=typeof self=="object"&&self&&self.Object===Object&&self,fr=cf||fS||Function("return this")(),uf=e&&!e.nodeType&&e,cl=uf&&!0&&n&&!n.nodeType&&n,gS=cl&&cl.exports===uf,Nb=gS&&cf.process,Qo=function(){try{var Re=cl&&cl.require&&cl.require("util").types;return Re||Nb&&Nb.binding&&Nb.binding("util")}catch{}}(),df=Qo&&Qo.isArrayBuffer,B5=Qo&&Qo.isDate,OEe=Qo&&Qo.isMap,PEe=Qo&&Qo.isRegExp,MEe=Qo&&Qo.isSet,FEe=Qo&&Qo.isTypedArray;function Mc(Re,nt,ze){switch(ze.length){case 0:return Re.call(nt);case 1:return Re.call(nt,ze[0]);case 2:return Re.call(nt,ze[0],ze[1]);case 3:return Re.call(nt,ze[0],ze[1],ze[2])}return Re.apply(nt,ze)}function EFt(Re,nt,ze,Ft){for(var Tn=-1,Di=Re==null?0:Re.length;++Tn<Di;){var hs=Re[Tn];nt(Ft,hs,ze(hs),Re)}return Ft}function xu(Re,nt){for(var ze=-1,Ft=Re==null?0:Re.length;++ze<Ft&&nt(Re[ze],ze,Re)!==!1;);return Re}function kFt(Re,nt){for(var ze=Re==null?0:Re.length;ze--&&nt(Re[ze],ze,Re)!==!1;);return Re}function BEe(Re,nt){for(var ze=-1,Ft=Re==null?0:Re.length;++ze<Ft;)if(!nt(Re[ze],ze,Re))return!1;return!0}function h_(Re,nt){for(var ze=-1,Ft=Re==null?0:Re.length,Tn=0,Di=[];++ze<Ft;){var hs=Re[ze];nt(hs,ze,Re)&&(Di[Tn++]=hs)}return Di}function $5(Re,nt){var ze=Re==null?0:Re.length;return!!ze&&pS(Re,nt,0)>-1}function GY(Re,nt,ze){for(var Ft=-1,Tn=Re==null?0:Re.length;++Ft<Tn;)if(ze(nt,Re[Ft]))return!0;return!1}function Ar(Re,nt){for(var ze=-1,Ft=Re==null?0:Re.length,Tn=Array(Ft);++ze<Ft;)Tn[ze]=nt(Re[ze],ze,Re);return Tn}function f_(Re,nt){for(var ze=-1,Ft=nt.length,Tn=Re.length;++ze<Ft;)Re[Tn+ze]=nt[ze];return Re}function YY(Re,nt,ze,Ft){var Tn=-1,Di=Re==null?0:Re.length;for(Ft&&Di&&(ze=Re[++Tn]);++Tn<Di;)ze=nt(ze,Re[Tn],Tn,Re);return ze}function LFt(Re,nt,ze,Ft){var Tn=Re==null?0:Re.length;for(Ft&&Tn&&(ze=Re[--Tn]);Tn--;)ze=nt(ze,Re[Tn],Tn,Re);return ze}function ZY(Re,nt){for(var ze=-1,Ft=Re==null?0:Re.length;++ze<Ft;)if(nt(Re[ze],ze,Re))return!0;return!1}var TFt=XY("length");function DFt(Re){return Re.split("")}function IFt(Re){return Re.match(it)||[]}function $Ee(Re,nt,ze){var Ft;return ze(Re,function(Tn,Di,hs){if(nt(Tn,Di,hs))return Ft=Di,!1}),Ft}function W5(Re,nt,ze,Ft){for(var Tn=Re.length,Di=ze+(Ft?1:-1);Ft?Di--:++Di<Tn;)if(nt(Re[Di],Di,Re))return Di;return-1}function pS(Re,nt,ze){return nt===nt?VFt(Re,nt,ze):W5(Re,WEe,ze)}function RFt(Re,nt,ze,Ft){for(var Tn=ze-1,Di=Re.length;++Tn<Di;)if(Ft(Re[Tn],nt))return Tn;return-1}function WEe(Re){return Re!==Re}function HEe(Re,nt){var ze=Re==null?0:Re.length;return ze?JY(Re,nt)/ze:j}function XY(Re){return function(nt){return nt==null?t:nt[Re]}}function QY(Re){return function(nt){return Re==null?t:Re[nt]}}function VEe(Re,nt,ze,Ft,Tn){return Tn(Re,function(Di,hs,ir){ze=Ft?(Ft=!1,Di):nt(ze,Di,hs,ir)}),ze}function NFt(Re,nt){var ze=Re.length;for(Re.sort(nt);ze--;)Re[ze]=Re[ze].value;return Re}function JY(Re,nt){for(var ze,Ft=-1,Tn=Re.length;++Ft<Tn;){var Di=nt(Re[Ft]);Di!==t&&(ze=ze===t?Di:ze+Di)}return ze}function eZ(Re,nt){for(var ze=-1,Ft=Array(Re);++ze<Re;)Ft[ze]=nt(ze);return Ft}function AFt(Re,nt){return Ar(nt,function(ze){return[ze,Re[ze]]})}function zEe(Re){return Re&&Re.slice(0,KEe(Re)+1).replace(ce,"")}function Fc(Re){return function(nt){return Re(nt)}}function tZ(Re,nt){return Ar(nt,function(ze){return Re[ze]})}function TD(Re,nt){return Re.has(nt)}function UEe(Re,nt){for(var ze=-1,Ft=Re.length;++ze<Ft&&pS(nt,Re[ze],0)>-1;);return ze}function jEe(Re,nt){for(var ze=Re.length;ze--&&pS(nt,Re[ze],0)>-1;);return ze}function OFt(Re,nt){for(var ze=Re.length,Ft=0;ze--;)Re[ze]===nt&&++Ft;return Ft}var PFt=QY(ql),MFt=QY(ll);function FFt(Re){return"\\"+Td[Re]}function BFt(Re,nt){return Re==null?t:Re[nt]}function mS(Re){return Da.test(Re)}function $Ft(Re){return Su.test(Re)}function WFt(Re){for(var nt,ze=[];!(nt=Re.next()).done;)ze.push(nt.value);return ze}function nZ(Re){var nt=-1,ze=Array(Re.size);return Re.forEach(function(Ft,Tn){ze[++nt]=[Tn,Ft]}),ze}function qEe(Re,nt){return function(ze){return Re(nt(ze))}}function g_(Re,nt){for(var ze=-1,Ft=Re.length,Tn=0,Di=[];++ze<Ft;){var hs=Re[ze];(hs===nt||hs===u)&&(Re[ze]=u,Di[Tn++]=ze)}return Di}function H5(Re){var nt=-1,ze=Array(Re.size);return Re.forEach(function(Ft){ze[++nt]=Ft}),ze}function HFt(Re){var nt=-1,ze=Array(Re.size);return Re.forEach(function(Ft){ze[++nt]=[Ft,Ft]}),ze}function VFt(Re,nt,ze){for(var Ft=ze-1,Tn=Re.length;++Ft<Tn;)if(Re[Ft]===nt)return Ft;return-1}function zFt(Re,nt,ze){for(var Ft=ze+1;Ft--;)if(Re[Ft]===nt)return Ft;return Ft}function _S(Re){return mS(Re)?jFt(Re):TFt(Re)}function Dd(Re){return mS(Re)?qFt(Re):DFt(Re)}function KEe(Re){for(var nt=Re.length;nt--&&J.test(Re.charAt(nt)););return nt}var UFt=QY(po);function jFt(Re){for(var nt=jl.lastIndex=0;jl.test(Re);)++nt;return nt}function qFt(Re){return Re.match(jl)||[]}function KFt(Re){return Re.match(Db)||[]}var GFt=function Re(nt){nt=nt==null?fr:vS.defaults(fr.Object(),nt,vS.pick(fr,Ib));var ze=nt.Array,Ft=nt.Date,Tn=nt.Error,Di=nt.Function,hs=nt.Math,ir=nt.Object,iZ=nt.RegExp,YFt=nt.String,Eu=nt.TypeError,V5=ze.prototype,ZFt=Di.prototype,bS=ir.prototype,z5=nt["__core-js_shared__"],U5=ZFt.toString,Hi=bS.hasOwnProperty,XFt=0,GEe=function(){var C=/[^.]+$/.exec(z5&&z5.keys&&z5.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),j5=bS.toString,QFt=U5.call(ir),JFt=fr._,e3t=iZ("^"+U5.call(Hi).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q5=gS?nt.Buffer:t,p_=nt.Symbol,K5=nt.Uint8Array,YEe=q5?q5.allocUnsafe:t,G5=qEe(ir.getPrototypeOf,ir),ZEe=ir.create,XEe=bS.propertyIsEnumerable,Y5=V5.splice,QEe=p_?p_.isConcatSpreadable:t,DD=p_?p_.iterator:t,Ab=p_?p_.toStringTag:t,Z5=function(){try{var C=Bb(ir,"defineProperty");return C({},"",{}),C}catch{}}(),t3t=nt.clearTimeout!==fr.clearTimeout&&nt.clearTimeout,n3t=Ft&&Ft.now!==fr.Date.now&&Ft.now,i3t=nt.setTimeout!==fr.setTimeout&&nt.setTimeout,X5=hs.ceil,Q5=hs.floor,rZ=ir.getOwnPropertySymbols,r3t=q5?q5.isBuffer:t,JEe=nt.isFinite,o3t=V5.join,s3t=qEe(ir.keys,ir),fs=hs.max,Ia=hs.min,a3t=Ft.now,l3t=nt.parseInt,eke=hs.random,c3t=V5.reverse,oZ=Bb(nt,"DataView"),ID=Bb(nt,"Map"),sZ=Bb(nt,"Promise"),yS=Bb(nt,"Set"),RD=Bb(nt,"WeakMap"),ND=Bb(ir,"create"),J5=RD&&new RD,CS={},u3t=$b(oZ),d3t=$b(ID),h3t=$b(sZ),f3t=$b(yS),g3t=$b(RD),eF=p_?p_.prototype:t,AD=eF?eF.valueOf:t,tke=eF?eF.toString:t;function ae(C){if(mo(C)&&!Rn(C)&&!(C instanceof ni)){if(C instanceof ku)return C;if(Hi.call(C,"__wrapped__"))return nLe(C)}return new ku(C)}var wS=function(){function C(){}return function(E){if(!qr(E))return{};if(ZEe)return ZEe(E);C.prototype=E;var I=new C;return C.prototype=t,I}}();function tF(){}function ku(C,E){this.__wrapped__=C,this.__actions__=[],this.__chain__=!!E,this.__index__=0,this.__values__=t}ae.templateSettings={escape:Ta,evaluate:en,interpolate:Zo,variable:"",imports:{_:ae}},ae.prototype=tF.prototype,ae.prototype.constructor=ae,ku.prototype=wS(tF.prototype),ku.prototype.constructor=ku;function ni(C){this.__wrapped__=C,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function p3t(){var C=new ni(this.__wrapped__);return C.__actions__=Kl(this.__actions__),C.__dir__=this.__dir__,C.__filtered__=this.__filtered__,C.__iteratees__=Kl(this.__iteratees__),C.__takeCount__=this.__takeCount__,C.__views__=Kl(this.__views__),C}function m3t(){if(this.__filtered__){var C=new ni(this);C.__dir__=-1,C.__filtered__=!0}else C=this.clone(),C.__dir__*=-1;return C}function _3t(){var C=this.__wrapped__.value(),E=this.__dir__,I=Rn(C),H=E<0,ie=I?C.length:0,he=D8t(0,ie,this.__views__),we=he.start,Le=he.end,Ae=Le-we,rt=H?Le:we-1,st=this.__iteratees__,ut=st.length,Rt=0,Gt=Ia(Ae,this.__takeCount__);if(!I||!H&&ie==Ae&&Gt==Ae)return Eke(C,this.__actions__);var cn=[];e:for(;Ae--&&Rt<Gt;){rt+=E;for(var Wn=-1,un=C[rt];++Wn<ut;){var Jn=st[Wn],si=Jn.iteratee,Wc=Jn.type,hl=si(un);if(Wc==P)un=hl;else if(!hl){if(Wc==V)continue e;break e}}cn[Rt++]=un}return cn}ni.prototype=wS(tF.prototype),ni.prototype.constructor=ni;function Ob(C){var E=-1,I=C==null?0:C.length;for(this.clear();++E<I;){var H=C[E];this.set(H[0],H[1])}}function v3t(){this.__data__=ND?ND(null):{},this.size=0}function b3t(C){var E=this.has(C)&&delete this.__data__[C];return this.size-=E?1:0,E}function y3t(C){var E=this.__data__;if(ND){var I=E[C];return I===l?t:I}return Hi.call(E,C)?E[C]:t}function C3t(C){var E=this.__data__;return ND?E[C]!==t:Hi.call(E,C)}function w3t(C,E){var I=this.__data__;return this.size+=this.has(C)?0:1,I[C]=ND&&E===t?l:E,this}Ob.prototype.clear=v3t,Ob.prototype.delete=b3t,Ob.prototype.get=y3t,Ob.prototype.has=C3t,Ob.prototype.set=w3t;function qg(C){var E=-1,I=C==null?0:C.length;for(this.clear();++E<I;){var H=C[E];this.set(H[0],H[1])}}function S3t(){this.__data__=[],this.size=0}function x3t(C){var E=this.__data__,I=nF(E,C);if(I<0)return!1;var H=E.length-1;return I==H?E.pop():Y5.call(E,I,1),--this.size,!0}function E3t(C){var E=this.__data__,I=nF(E,C);return I<0?t:E[I][1]}function k3t(C){return nF(this.__data__,C)>-1}function L3t(C,E){var I=this.__data__,H=nF(I,C);return H<0?(++this.size,I.push([C,E])):I[H][1]=E,this}qg.prototype.clear=S3t,qg.prototype.delete=x3t,qg.prototype.get=E3t,qg.prototype.has=k3t,qg.prototype.set=L3t;function Kg(C){var E=-1,I=C==null?0:C.length;for(this.clear();++E<I;){var H=C[E];this.set(H[0],H[1])}}function T3t(){this.size=0,this.__data__={hash:new Ob,map:new(ID||qg),string:new Ob}}function D3t(C){var E=gF(this,C).delete(C);return this.size-=E?1:0,E}function I3t(C){return gF(this,C).get(C)}function R3t(C){return gF(this,C).has(C)}function N3t(C,E){var I=gF(this,C),H=I.size;return I.set(C,E),this.size+=I.size==H?0:1,this}Kg.prototype.clear=T3t,Kg.prototype.delete=D3t,Kg.prototype.get=I3t,Kg.prototype.has=R3t,Kg.prototype.set=N3t;function Pb(C){var E=-1,I=C==null?0:C.length;for(this.__data__=new Kg;++E<I;)this.add(C[E])}function A3t(C){return this.__data__.set(C,l),this}function O3t(C){return this.__data__.has(C)}Pb.prototype.add=Pb.prototype.push=A3t,Pb.prototype.has=O3t;function Id(C){var E=this.__data__=new qg(C);this.size=E.size}function P3t(){this.__data__=new qg,this.size=0}function M3t(C){var E=this.__data__,I=E.delete(C);return this.size=E.size,I}function F3t(C){return this.__data__.get(C)}function B3t(C){return this.__data__.has(C)}function $3t(C,E){var I=this.__data__;if(I instanceof qg){var H=I.__data__;if(!ID||H.length<r-1)return H.push([C,E]),this.size=++I.size,this;I=this.__data__=new Kg(H)}return I.set(C,E),this.size=I.size,this}Id.prototype.clear=P3t,Id.prototype.delete=M3t,Id.prototype.get=F3t,Id.prototype.has=B3t,Id.prototype.set=$3t;function nke(C,E){var I=Rn(C),H=!I&&Wb(C),ie=!I&&!H&&y_(C),he=!I&&!H&&!ie&&kS(C),we=I||H||ie||he,Le=we?eZ(C.length,YFt):[],Ae=Le.length;for(var rt in C)(E||Hi.call(C,rt))&&!(we&&(rt=="length"||ie&&(rt=="offset"||rt=="parent")||he&&(rt=="buffer"||rt=="byteLength"||rt=="byteOffset")||Xg(rt,Ae)))&&Le.push(rt);return Le}function ike(C){var E=C.length;return E?C[_Z(0,E-1)]:t}function W3t(C,E){return pF(Kl(C),Mb(E,0,C.length))}function H3t(C){return pF(Kl(C))}function aZ(C,E,I){(I!==t&&!Rd(C[E],I)||I===t&&!(E in C))&&Gg(C,E,I)}function OD(C,E,I){var H=C[E];(!(Hi.call(C,E)&&Rd(H,I))||I===t&&!(E in C))&&Gg(C,E,I)}function nF(C,E){for(var I=C.length;I--;)if(Rd(C[I][0],E))return I;return-1}function V3t(C,E,I,H){return m_(C,function(ie,he,we){E(H,ie,I(ie),we)}),H}function rke(C,E){return C&&ff(E,As(E),C)}function z3t(C,E){return C&&ff(E,Yl(E),C)}function Gg(C,E,I){E=="__proto__"&&Z5?Z5(C,E,{configurable:!0,enumerable:!0,value:I,writable:!0}):C[E]=I}function lZ(C,E){for(var I=-1,H=E.length,ie=ze(H),he=C==null;++I<H;)ie[I]=he?t:VZ(C,E[I]);return ie}function Mb(C,E,I){return C===C&&(I!==t&&(C=C<=I?C:I),E!==t&&(C=C>=E?C:E)),C}function Lu(C,E,I,H,ie,he){var we,Le=E&d,Ae=E&h,rt=E&f;if(I&&(we=ie?I(C,H,ie,he):I(C)),we!==t)return we;if(!qr(C))return C;var st=Rn(C);if(st){if(we=R8t(C),!Le)return Kl(C,we)}else{var ut=Ra(C),Rt=ut==Me||ut==at;if(y_(C))return Tke(C,Le);if(ut==ve||ut==_e||Rt&&!ie){if(we=Ae||Rt?{}:Kke(C),!Le)return Ae?y8t(C,z3t(we,C)):b8t(C,rke(we,C))}else{if(!vi[ut])return ie?C:{};we=N8t(C,ut,Le)}}he||(he=new Id);var Gt=he.get(C);if(Gt)return Gt;he.set(C,we),wLe(C)?C.forEach(function(un){we.add(Lu(un,E,I,un,C,he))}):yLe(C)&&C.forEach(function(un,Jn){we.set(Jn,Lu(un,E,I,Jn,C,he))});var cn=rt?Ae?TZ:LZ:Ae?Yl:As,Wn=st?t:cn(C);return xu(Wn||C,function(un,Jn){Wn&&(Jn=un,un=C[Jn]),OD(we,Jn,Lu(un,E,I,Jn,C,he))}),we}function U3t(C){var E=As(C);return function(I){return oke(I,C,E)}}function oke(C,E,I){var H=I.length;if(C==null)return!H;for(C=ir(C);H--;){var ie=I[H],he=E[ie],we=C[ie];if(we===t&&!(ie in C)||!he(we))return!1}return!0}function ske(C,E,I){if(typeof C!="function")throw new Eu(s);return HD(function(){C.apply(t,I)},E)}function PD(C,E,I,H){var ie=-1,he=$5,we=!0,Le=C.length,Ae=[],rt=E.length;if(!Le)return Ae;I&&(E=Ar(E,Fc(I))),H?(he=GY,we=!1):E.length>=r&&(he=TD,we=!1,E=new Pb(E));e:for(;++ie<Le;){var st=C[ie],ut=I==null?st:I(st);if(st=H||st!==0?st:0,we&&ut===ut){for(var Rt=rt;Rt--;)if(E[Rt]===ut)continue e;Ae.push(st)}else he(E,ut,H)||Ae.push(st)}return Ae}var m_=Ake(hf),ake=Ake(uZ,!0);function j3t(C,E){var I=!0;return m_(C,function(H,ie,he){return I=!!E(H,ie,he),I}),I}function iF(C,E,I){for(var H=-1,ie=C.length;++H<ie;){var he=C[H],we=E(he);if(we!=null&&(Le===t?we===we&&!$c(we):I(we,Le)))var Le=we,Ae=he}return Ae}function q3t(C,E,I,H){var ie=C.length;for(I=Bn(I),I<0&&(I=-I>ie?0:ie+I),H=H===t||H>ie?ie:Bn(H),H<0&&(H+=ie),H=I>H?0:xLe(H);I<H;)C[I++]=E;return C}function lke(C,E){var I=[];return m_(C,function(H,ie,he){E(H,ie,he)&&I.push(H)}),I}function ta(C,E,I,H,ie){var he=-1,we=C.length;for(I||(I=O8t),ie||(ie=[]);++he<we;){var Le=C[he];E>0&&I(Le)?E>1?ta(Le,E-1,I,H,ie):f_(ie,Le):H||(ie[ie.length]=Le)}return ie}var cZ=Oke(),cke=Oke(!0);function hf(C,E){return C&&cZ(C,E,As)}function uZ(C,E){return C&&cke(C,E,As)}function rF(C,E){return h_(E,function(I){return Qg(C[I])})}function Fb(C,E){E=v_(E,C);for(var I=0,H=E.length;C!=null&&I<H;)C=C[gf(E[I++])];return I&&I==H?C:t}function uke(C,E,I){var H=E(C);return Rn(C)?H:f_(H,I(C))}function ul(C){return C==null?C===t?He:kt:Ab&&Ab in ir(C)?T8t(C):H8t(C)}function dZ(C,E){return C>E}function K3t(C,E){return C!=null&&Hi.call(C,E)}function G3t(C,E){return C!=null&&E in ir(C)}function Y3t(C,E,I){return C>=Ia(E,I)&&C<fs(E,I)}function hZ(C,E,I){for(var H=I?GY:$5,ie=C[0].length,he=C.length,we=he,Le=ze(he),Ae=1/0,rt=[];we--;){var st=C[we];we&&E&&(st=Ar(st,Fc(E))),Ae=Ia(st.length,Ae),Le[we]=!I&&(E||ie>=120&&st.length>=120)?new Pb(we&&st):t}st=C[0];var ut=-1,Rt=Le[0];e:for(;++ut<ie&&rt.length<Ae;){var Gt=st[ut],cn=E?E(Gt):Gt;if(Gt=I||Gt!==0?Gt:0,!(Rt?TD(Rt,cn):H(rt,cn,I))){for(we=he;--we;){var Wn=Le[we];if(!(Wn?TD(Wn,cn):H(C[we],cn,I)))continue e}Rt&&Rt.push(cn),rt.push(Gt)}}return rt}function Z3t(C,E,I,H){return hf(C,function(ie,he,we){E(H,I(ie),he,we)}),H}function MD(C,E,I){E=v_(E,C),C=Xke(C,E);var H=C==null?C:C[gf(Du(E))];return H==null?t:Mc(H,C,I)}function dke(C){return mo(C)&&ul(C)==_e}function X3t(C){return mo(C)&&ul(C)==Tt}function Q3t(C){return mo(C)&&ul(C)==oe}function FD(C,E,I,H,ie){return C===E?!0:C==null||E==null||!mo(C)&&!mo(E)?C!==C&&E!==E:J3t(C,E,I,H,FD,ie)}function J3t(C,E,I,H,ie,he){var we=Rn(C),Le=Rn(E),Ae=we?Ie:Ra(C),rt=Le?Ie:Ra(E);Ae=Ae==_e?ve:Ae,rt=rt==_e?ve:rt;var st=Ae==ve,ut=rt==ve,Rt=Ae==rt;if(Rt&&y_(C)){if(!y_(E))return!1;we=!0,st=!1}if(Rt&&!st)return he||(he=new Id),we||kS(C)?Uke(C,E,I,H,ie,he):k8t(C,E,Ae,I,H,ie,he);if(!(I&g)){var Gt=st&&Hi.call(C,"__wrapped__"),cn=ut&&Hi.call(E,"__wrapped__");if(Gt||cn){var Wn=Gt?C.value():C,un=cn?E.value():E;return he||(he=new Id),ie(Wn,un,I,H,he)}}return Rt?(he||(he=new Id),L8t(C,E,I,H,ie,he)):!1}function e8t(C){return mo(C)&&Ra(C)==_t}function fZ(C,E,I,H){var ie=I.length,he=ie,we=!H;if(C==null)return!he;for(C=ir(C);ie--;){var Le=I[ie];if(we&&Le[2]?Le[1]!==C[Le[0]]:!(Le[0]in C))return!1}for(;++ie<he;){Le=I[ie];var Ae=Le[0],rt=C[Ae],st=Le[1];if(we&&Le[2]){if(rt===t&&!(Ae in C))return!1}else{var ut=new Id;if(H)var Rt=H(rt,st,Ae,C,E,ut);if(!(Rt===t?FD(st,rt,g|p,H,ut):Rt))return!1}}return!0}function hke(C){if(!qr(C)||M8t(C))return!1;var E=Qg(C)?e3t:Ln;return E.test($b(C))}function t8t(C){return mo(C)&&ul(C)==te}function n8t(C){return mo(C)&&Ra(C)==Se}function i8t(C){return mo(C)&&CF(C.length)&&!!xi[ul(C)]}function fke(C){return typeof C=="function"?C:C==null?Zl:typeof C=="object"?Rn(C)?mke(C[0],C[1]):pke(C):PLe(C)}function gZ(C){if(!WD(C))return s3t(C);var E=[];for(var I in ir(C))Hi.call(C,I)&&I!="constructor"&&E.push(I);return E}function r8t(C){if(!qr(C))return W8t(C);var E=WD(C),I=[];for(var H in C)H=="constructor"&&(E||!Hi.call(C,H))||I.push(H);return I}function pZ(C,E){return C<E}function gke(C,E){var I=-1,H=Gl(C)?ze(C.length):[];return m_(C,function(ie,he,we){H[++I]=E(ie,he,we)}),H}function pke(C){var E=IZ(C);return E.length==1&&E[0][2]?Yke(E[0][0],E[0][1]):function(I){return I===C||fZ(I,C,E)}}function mke(C,E){return NZ(C)&&Gke(E)?Yke(gf(C),E):function(I){var H=VZ(I,C);return H===t&&H===E?zZ(I,C):FD(E,H,g|p)}}function oF(C,E,I,H,ie){C!==E&&cZ(E,function(he,we){if(ie||(ie=new Id),qr(he))o8t(C,E,we,I,oF,H,ie);else{var Le=H?H(OZ(C,we),he,we+"",C,E,ie):t;Le===t&&(Le=he),aZ(C,we,Le)}},Yl)}function o8t(C,E,I,H,ie,he,we){var Le=OZ(C,I),Ae=OZ(E,I),rt=we.get(Ae);if(rt){aZ(C,I,rt);return}var st=he?he(Le,Ae,I+"",C,E,we):t,ut=st===t;if(ut){var Rt=Rn(Ae),Gt=!Rt&&y_(Ae),cn=!Rt&&!Gt&&kS(Ae);st=Ae,Rt||Gt||cn?Rn(Le)?st=Le:Lo(Le)?st=Kl(Le):Gt?(ut=!1,st=Tke(Ae,!0)):cn?(ut=!1,st=Dke(Ae,!0)):st=[]:VD(Ae)||Wb(Ae)?(st=Le,Wb(Le)?st=ELe(Le):(!qr(Le)||Qg(Le))&&(st=Kke(Ae))):ut=!1}ut&&(we.set(Ae,st),ie(st,Ae,H,he,we),we.delete(Ae)),aZ(C,I,st)}function _ke(C,E){var I=C.length;if(!!I)return E+=E<0?I:0,Xg(E,I)?C[E]:t}function vke(C,E,I){E.length?E=Ar(E,function(he){return Rn(he)?function(we){return Fb(we,he.length===1?he[0]:he)}:he}):E=[Zl];var H=-1;E=Ar(E,Fc(on()));var ie=gke(C,function(he,we,Le){var Ae=Ar(E,function(rt){return rt(he)});return{criteria:Ae,index:++H,value:he}});return NFt(ie,function(he,we){return v8t(he,we,I)})}function s8t(C,E){return bke(C,E,function(I,H){return zZ(C,H)})}function bke(C,E,I){for(var H=-1,ie=E.length,he={};++H<ie;){var we=E[H],Le=Fb(C,we);I(Le,we)&&BD(he,v_(we,C),Le)}return he}function a8t(C){return function(E){return Fb(E,C)}}function mZ(C,E,I,H){var ie=H?RFt:pS,he=-1,we=E.length,Le=C;for(C===E&&(E=Kl(E)),I&&(Le=Ar(C,Fc(I)));++he<we;)for(var Ae=0,rt=E[he],st=I?I(rt):rt;(Ae=ie(Le,st,Ae,H))>-1;)Le!==C&&Y5.call(Le,Ae,1),Y5.call(C,Ae,1);return C}function yke(C,E){for(var I=C?E.length:0,H=I-1;I--;){var ie=E[I];if(I==H||ie!==he){var he=ie;Xg(ie)?Y5.call(C,ie,1):yZ(C,ie)}}return C}function _Z(C,E){return C+Q5(eke()*(E-C+1))}function l8t(C,E,I,H){for(var ie=-1,he=fs(X5((E-C)/(I||1)),0),we=ze(he);he--;)we[H?he:++ie]=C,C+=I;return we}function vZ(C,E){var I="";if(!C||E<1||E>M)return I;do E%2&&(I+=C),E=Q5(E/2),E&&(C+=C);while(E);return I}function zn(C,E){return PZ(Zke(C,E,Zl),C+"")}function c8t(C){return ike(LS(C))}function u8t(C,E){var I=LS(C);return pF(I,Mb(E,0,I.length))}function BD(C,E,I,H){if(!qr(C))return C;E=v_(E,C);for(var ie=-1,he=E.length,we=he-1,Le=C;Le!=null&&++ie<he;){var Ae=gf(E[ie]),rt=I;if(Ae==="__proto__"||Ae==="constructor"||Ae==="prototype")return C;if(ie!=we){var st=Le[Ae];rt=H?H(st,Ae,Le):t,rt===t&&(rt=qr(st)?st:Xg(E[ie+1])?[]:{})}OD(Le,Ae,rt),Le=Le[Ae]}return C}var Cke=J5?function(C,E){return J5.set(C,E),C}:Zl,d8t=Z5?function(C,E){return Z5(C,"toString",{configurable:!0,enumerable:!1,value:jZ(E),writable:!0})}:Zl;function h8t(C){return pF(LS(C))}function Tu(C,E,I){var H=-1,ie=C.length;E<0&&(E=-E>ie?0:ie+E),I=I>ie?ie:I,I<0&&(I+=ie),ie=E>I?0:I-E>>>0,E>>>=0;for(var he=ze(ie);++H<ie;)he[H]=C[H+E];return he}function f8t(C,E){var I;return m_(C,function(H,ie,he){return I=E(H,ie,he),!I}),!!I}function sF(C,E,I){var H=0,ie=C==null?H:C.length;if(typeof E=="number"&&E===E&&ie<=ee){for(;H<ie;){var he=H+ie>>>1,we=C[he];we!==null&&!$c(we)&&(I?we<=E:we<E)?H=he+1:ie=he}return ie}return bZ(C,E,Zl,I)}function bZ(C,E,I,H){var ie=0,he=C==null?0:C.length;if(he===0)return 0;E=I(E);for(var we=E!==E,Le=E===null,Ae=$c(E),rt=E===t;ie<he;){var st=Q5((ie+he)/2),ut=I(C[st]),Rt=ut!==t,Gt=ut===null,cn=ut===ut,Wn=$c(ut);if(we)var un=H||cn;else rt?un=cn&&(H||Rt):Le?un=cn&&Rt&&(H||!Gt):Ae?un=cn&&Rt&&!Gt&&(H||!Wn):Gt||Wn?un=!1:un=H?ut<=E:ut<E;un?ie=st+1:he=st}return Ia(he,Q)}function wke(C,E){for(var I=-1,H=C.length,ie=0,he=[];++I<H;){var we=C[I],Le=E?E(we):we;if(!I||!Rd(Le,Ae)){var Ae=Le;he[ie++]=we===0?0:we}}return he}function Ske(C){return typeof C=="number"?C:$c(C)?j:+C}function Bc(C){if(typeof C=="string")return C;if(Rn(C))return Ar(C,Bc)+"";if($c(C))return tke?tke.call(C):"";var E=C+"";return E=="0"&&1/C==-F?"-0":E}function __(C,E,I){var H=-1,ie=$5,he=C.length,we=!0,Le=[],Ae=Le;if(I)we=!1,ie=GY;else if(he>=r){var rt=E?null:x8t(C);if(rt)return H5(rt);we=!1,ie=TD,Ae=new Pb}else Ae=E?[]:Le;e:for(;++H<he;){var st=C[H],ut=E?E(st):st;if(st=I||st!==0?st:0,we&&ut===ut){for(var Rt=Ae.length;Rt--;)if(Ae[Rt]===ut)continue e;E&&Ae.push(ut),Le.push(st)}else ie(Ae,ut,I)||(Ae!==Le&&Ae.push(ut),Le.push(st))}return Le}function yZ(C,E){return E=v_(E,C),C=Xke(C,E),C==null||delete C[gf(Du(E))]}function xke(C,E,I,H){return BD(C,E,I(Fb(C,E)),H)}function aF(C,E,I,H){for(var ie=C.length,he=H?ie:-1;(H?he--:++he<ie)&&E(C[he],he,C););return I?Tu(C,H?0:he,H?he+1:ie):Tu(C,H?he+1:0,H?ie:he)}function Eke(C,E){var I=C;return I instanceof ni&&(I=I.value()),YY(E,function(H,ie){return ie.func.apply(ie.thisArg,f_([H],ie.args))},I)}function CZ(C,E,I){var H=C.length;if(H<2)return H?__(C[0]):[];for(var ie=-1,he=ze(H);++ie<H;)for(var we=C[ie],Le=-1;++Le<H;)Le!=ie&&(he[ie]=PD(he[ie]||we,C[Le],E,I));return __(ta(he,1),E,I)}function kke(C,E,I){for(var H=-1,ie=C.length,he=E.length,we={};++H<ie;){var Le=H<he?E[H]:t;I(we,C[H],Le)}return we}function wZ(C){return Lo(C)?C:[]}function SZ(C){return typeof C=="function"?C:Zl}function v_(C,E){return Rn(C)?C:NZ(C,E)?[C]:tLe(Mi(C))}var g8t=zn;function b_(C,E,I){var H=C.length;return I=I===t?H:I,!E&&I>=H?C:Tu(C,E,I)}var Lke=t3t||function(C){return fr.clearTimeout(C)};function Tke(C,E){if(E)return C.slice();var I=C.length,H=YEe?YEe(I):new C.constructor(I);return C.copy(H),H}function xZ(C){var E=new C.constructor(C.byteLength);return new K5(E).set(new K5(C)),E}function p8t(C,E){var I=E?xZ(C.buffer):C.buffer;return new C.constructor(I,C.byteOffset,C.byteLength)}function m8t(C){var E=new C.constructor(C.source,Ut.exec(C));return E.lastIndex=C.lastIndex,E}function _8t(C){return AD?ir(AD.call(C)):{}}function Dke(C,E){var I=E?xZ(C.buffer):C.buffer;return new C.constructor(I,C.byteOffset,C.length)}function Ike(C,E){if(C!==E){var I=C!==t,H=C===null,ie=C===C,he=$c(C),we=E!==t,Le=E===null,Ae=E===E,rt=$c(E);if(!Le&&!rt&&!he&&C>E||he&&we&&Ae&&!Le&&!rt||H&&we&&Ae||!I&&Ae||!ie)return 1;if(!H&&!he&&!rt&&C<E||rt&&I&&ie&&!H&&!he||Le&&I&&ie||!we&&ie||!Ae)return-1}return 0}function v8t(C,E,I){for(var H=-1,ie=C.criteria,he=E.criteria,we=ie.length,Le=I.length;++H<we;){var Ae=Ike(ie[H],he[H]);if(Ae){if(H>=Le)return Ae;var rt=I[H];return Ae*(rt=="desc"?-1:1)}}return C.index-E.index}function Rke(C,E,I,H){for(var ie=-1,he=C.length,we=I.length,Le=-1,Ae=E.length,rt=fs(he-we,0),st=ze(Ae+rt),ut=!H;++Le<Ae;)st[Le]=E[Le];for(;++ie<we;)(ut||ie<he)&&(st[I[ie]]=C[ie]);for(;rt--;)st[Le++]=C[ie++];return st}function Nke(C,E,I,H){for(var ie=-1,he=C.length,we=-1,Le=I.length,Ae=-1,rt=E.length,st=fs(he-Le,0),ut=ze(st+rt),Rt=!H;++ie<st;)ut[ie]=C[ie];for(var Gt=ie;++Ae<rt;)ut[Gt+Ae]=E[Ae];for(;++we<Le;)(Rt||ie<he)&&(ut[Gt+I[we]]=C[ie++]);return ut}function Kl(C,E){var I=-1,H=C.length;for(E||(E=ze(H));++I<H;)E[I]=C[I];return E}function ff(C,E,I,H){var ie=!I;I||(I={});for(var he=-1,we=E.length;++he<we;){var Le=E[he],Ae=H?H(I[Le],C[Le],Le,I,C):t;Ae===t&&(Ae=C[Le]),ie?Gg(I,Le,Ae):OD(I,Le,Ae)}return I}function b8t(C,E){return ff(C,RZ(C),E)}function y8t(C,E){return ff(C,jke(C),E)}function lF(C,E){return function(I,H){var ie=Rn(I)?EFt:V3t,he=E?E():{};return ie(I,C,on(H,2),he)}}function SS(C){return zn(function(E,I){var H=-1,ie=I.length,he=ie>1?I[ie-1]:t,we=ie>2?I[2]:t;for(he=C.length>3&&typeof he=="function"?(ie--,he):t,we&&dl(I[0],I[1],we)&&(he=ie<3?t:he,ie=1),E=ir(E);++H<ie;){var Le=I[H];Le&&C(E,Le,H,he)}return E})}function Ake(C,E){return function(I,H){if(I==null)return I;if(!Gl(I))return C(I,H);for(var ie=I.length,he=E?ie:-1,we=ir(I);(E?he--:++he<ie)&&H(we[he],he,we)!==!1;);return I}}function Oke(C){return function(E,I,H){for(var ie=-1,he=ir(E),we=H(E),Le=we.length;Le--;){var Ae=we[C?Le:++ie];if(I(he[Ae],Ae,he)===!1)break}return E}}function C8t(C,E,I){var H=E&m,ie=$D(C);function he(){var we=this&&this!==fr&&this instanceof he?ie:C;return we.apply(H?I:this,arguments)}return he}function Pke(C){return function(E){E=Mi(E);var I=mS(E)?Dd(E):t,H=I?I[0]:E.charAt(0),ie=I?b_(I,1).join(""):E.slice(1);return H[C]()+ie}}function xS(C){return function(E){return YY(ALe(NLe(E).replace(Xo,"")),C,"")}}function $D(C){return function(){var E=arguments;switch(E.length){case 0:return new C;case 1:return new C(E[0]);case 2:return new C(E[0],E[1]);case 3:return new C(E[0],E[1],E[2]);case 4:return new C(E[0],E[1],E[2],E[3]);case 5:return new C(E[0],E[1],E[2],E[3],E[4]);case 6:return new C(E[0],E[1],E[2],E[3],E[4],E[5]);case 7:return new C(E[0],E[1],E[2],E[3],E[4],E[5],E[6])}var I=wS(C.prototype),H=C.apply(I,E);return qr(H)?H:I}}function w8t(C,E,I){var H=$D(C);function ie(){for(var he=arguments.length,we=ze(he),Le=he,Ae=ES(ie);Le--;)we[Le]=arguments[Le];var rt=he<3&&we[0]!==Ae&&we[he-1]!==Ae?[]:g_(we,Ae);if(he-=rt.length,he<I)return Wke(C,E,cF,ie.placeholder,t,we,rt,t,t,I-he);var st=this&&this!==fr&&this instanceof ie?H:C;return Mc(st,this,we)}return ie}function Mke(C){return function(E,I,H){var ie=ir(E);if(!Gl(E)){var he=on(I,3);E=As(E),I=function(Le){return he(ie[Le],Le,ie)}}var we=C(E,I,H);return we>-1?ie[he?E[we]:we]:t}}function Fke(C){return Zg(function(E){var I=E.length,H=I,ie=ku.prototype.thru;for(C&&E.reverse();H--;){var he=E[H];if(typeof he!="function")throw new Eu(s);if(ie&&!we&&fF(he)=="wrapper")var we=new ku([],!0)}for(H=we?H:I;++H<I;){he=E[H];var Le=fF(he),Ae=Le=="wrapper"?DZ(he):t;Ae&&AZ(Ae[0])&&Ae[1]==(S|y|w|k)&&!Ae[4].length&&Ae[9]==1?we=we[fF(Ae[0])].apply(we,Ae[3]):we=he.length==1&&AZ(he)?we[Le]():we.thru(he)}return function(){var rt=arguments,st=rt[0];if(we&&rt.length==1&&Rn(st))return we.plant(st).value();for(var ut=0,Rt=I?E[ut].apply(this,rt):st;++ut<I;)Rt=E[ut].call(this,Rt);return Rt}})}function cF(C,E,I,H,ie,he,we,Le,Ae,rt){var st=E&S,ut=E&m,Rt=E&v,Gt=E&(y|b),cn=E&T,Wn=Rt?t:$D(C);function un(){for(var Jn=arguments.length,si=ze(Jn),Wc=Jn;Wc--;)si[Wc]=arguments[Wc];if(Gt)var hl=ES(un),Hc=OFt(si,hl);if(H&&(si=Rke(si,H,ie,Gt)),he&&(si=Nke(si,he,we,Gt)),Jn-=Hc,Gt&&Jn<rt){var To=g_(si,hl);return Wke(C,E,cF,un.placeholder,I,si,To,Le,Ae,rt-Jn)}var Nd=ut?I:this,ep=Rt?Nd[C]:C;return Jn=si.length,Le?si=V8t(si,Le):cn&&Jn>1&&si.reverse(),st&&Ae<Jn&&(si.length=Ae),this&&this!==fr&&this instanceof un&&(ep=Wn||$D(ep)),ep.apply(Nd,si)}return un}function Bke(C,E){return function(I,H){return Z3t(I,C,E(H),{})}}function uF(C,E){return function(I,H){var ie;if(I===t&&H===t)return E;if(I!==t&&(ie=I),H!==t){if(ie===t)return H;typeof I=="string"||typeof H=="string"?(I=Bc(I),H=Bc(H)):(I=Ske(I),H=Ske(H)),ie=C(I,H)}return ie}}function EZ(C){return Zg(function(E){return E=Ar(E,Fc(on())),zn(function(I){var H=this;return C(E,function(ie){return Mc(ie,H,I)})})})}function dF(C,E){E=E===t?" ":Bc(E);var I=E.length;if(I<2)return I?vZ(E,C):E;var H=vZ(E,X5(C/_S(E)));return mS(E)?b_(Dd(H),0,C).join(""):H.slice(0,C)}function S8t(C,E,I,H){var ie=E&m,he=$D(C);function we(){for(var Le=-1,Ae=arguments.length,rt=-1,st=H.length,ut=ze(st+Ae),Rt=this&&this!==fr&&this instanceof we?he:C;++rt<st;)ut[rt]=H[rt];for(;Ae--;)ut[rt++]=arguments[++Le];return Mc(Rt,ie?I:this,ut)}return we}function $ke(C){return function(E,I,H){return H&&typeof H!="number"&&dl(E,I,H)&&(I=H=t),E=Jg(E),I===t?(I=E,E=0):I=Jg(I),H=H===t?E<I?1:-1:Jg(H),l8t(E,I,H,C)}}function hF(C){return function(E,I){return typeof E=="string"&&typeof I=="string"||(E=Iu(E),I=Iu(I)),C(E,I)}}function Wke(C,E,I,H,ie,he,we,Le,Ae,rt){var st=E&y,ut=st?we:t,Rt=st?t:we,Gt=st?he:t,cn=st?t:he;E|=st?w:x,E&=~(st?x:w),E&_||(E&=~(m|v));var Wn=[C,E,ie,Gt,ut,cn,Rt,Le,Ae,rt],un=I.apply(t,Wn);return AZ(C)&&Qke(un,Wn),un.placeholder=H,Jke(un,C,E)}function kZ(C){var E=hs[C];return function(I,H){if(I=Iu(I),H=H==null?0:Ia(Bn(H),292),H&&JEe(I)){var ie=(Mi(I)+"e").split("e"),he=E(ie[0]+"e"+(+ie[1]+H));return ie=(Mi(he)+"e").split("e"),+(ie[0]+"e"+(+ie[1]-H))}return E(I)}}var x8t=yS&&1/H5(new yS([,-0]))[1]==F?function(C){return new yS(C)}:GZ;function Hke(C){return function(E){var I=Ra(E);return I==_t?nZ(E):I==Se?HFt(E):AFt(E,C(E))}}function Yg(C,E,I,H,ie,he,we,Le){var Ae=E&v;if(!Ae&&typeof C!="function")throw new Eu(s);var rt=H?H.length:0;if(rt||(E&=~(w|x),H=ie=t),we=we===t?we:fs(Bn(we),0),Le=Le===t?Le:Bn(Le),rt-=ie?ie.length:0,E&x){var st=H,ut=ie;H=ie=t}var Rt=Ae?t:DZ(C),Gt=[C,E,I,H,ie,st,ut,he,we,Le];if(Rt&&$8t(Gt,Rt),C=Gt[0],E=Gt[1],I=Gt[2],H=Gt[3],ie=Gt[4],Le=Gt[9]=Gt[9]===t?Ae?0:C.length:fs(Gt[9]-rt,0),!Le&&E&(y|b)&&(E&=~(y|b)),!E||E==m)var cn=C8t(C,E,I);else E==y||E==b?cn=w8t(C,E,Le):(E==w||E==(m|w))&&!ie.length?cn=S8t(C,E,I,H):cn=cF.apply(t,Gt);var Wn=Rt?Cke:Qke;return Jke(Wn(cn,Gt),C,E)}function Vke(C,E,I,H){return C===t||Rd(C,bS[I])&&!Hi.call(H,I)?E:C}function zke(C,E,I,H,ie,he){return qr(C)&&qr(E)&&(he.set(E,C),oF(C,E,t,zke,he),he.delete(E)),C}function E8t(C){return VD(C)?t:C}function Uke(C,E,I,H,ie,he){var we=I&g,Le=C.length,Ae=E.length;if(Le!=Ae&&!(we&&Ae>Le))return!1;var rt=he.get(C),st=he.get(E);if(rt&&st)return rt==E&&st==C;var ut=-1,Rt=!0,Gt=I&p?new Pb:t;for(he.set(C,E),he.set(E,C);++ut<Le;){var cn=C[ut],Wn=E[ut];if(H)var un=we?H(Wn,cn,ut,E,C,he):H(cn,Wn,ut,C,E,he);if(un!==t){if(un)continue;Rt=!1;break}if(Gt){if(!ZY(E,function(Jn,si){if(!TD(Gt,si)&&(cn===Jn||ie(cn,Jn,I,H,he)))return Gt.push(si)})){Rt=!1;break}}else if(!(cn===Wn||ie(cn,Wn,I,H,he))){Rt=!1;break}}return he.delete(C),he.delete(E),Rt}function k8t(C,E,I,H,ie,he,we){switch(I){case $t:if(C.byteLength!=E.byteLength||C.byteOffset!=E.byteOffset)return!1;C=C.buffer,E=E.buffer;case Tt:return!(C.byteLength!=E.byteLength||!he(new K5(C),new K5(E)));case se:case oe:case qe:return Rd(+C,+E);case pe:return C.name==E.name&&C.message==E.message;case te:case Ee:return C==E+"";case _t:var Le=nZ;case Se:var Ae=H&g;if(Le||(Le=H5),C.size!=E.size&&!Ae)return!1;var rt=we.get(C);if(rt)return rt==E;H|=p,we.set(C,E);var st=Uke(Le(C),Le(E),H,ie,he,we);return we.delete(C),st;case Ce:if(AD)return AD.call(C)==AD.call(E)}return!1}function L8t(C,E,I,H,ie,he){var we=I&g,Le=LZ(C),Ae=Le.length,rt=LZ(E),st=rt.length;if(Ae!=st&&!we)return!1;for(var ut=Ae;ut--;){var Rt=Le[ut];if(!(we?Rt in E:Hi.call(E,Rt)))return!1}var Gt=he.get(C),cn=he.get(E);if(Gt&&cn)return Gt==E&&cn==C;var Wn=!0;he.set(C,E),he.set(E,C);for(var un=we;++ut<Ae;){Rt=Le[ut];var Jn=C[Rt],si=E[Rt];if(H)var Wc=we?H(si,Jn,Rt,E,C,he):H(Jn,si,Rt,C,E,he);if(!(Wc===t?Jn===si||ie(Jn,si,I,H,he):Wc)){Wn=!1;break}un||(un=Rt=="constructor")}if(Wn&&!un){var hl=C.constructor,Hc=E.constructor;hl!=Hc&&"constructor"in C&&"constructor"in E&&!(typeof hl=="function"&&hl instanceof hl&&typeof Hc=="function"&&Hc instanceof Hc)&&(Wn=!1)}return he.delete(C),he.delete(E),Wn}function Zg(C){return PZ(Zke(C,t,oLe),C+"")}function LZ(C){return uke(C,As,RZ)}function TZ(C){return uke(C,Yl,jke)}var DZ=J5?function(C){return J5.get(C)}:GZ;function fF(C){for(var E=C.name+"",I=CS[E],H=Hi.call(CS,E)?I.length:0;H--;){var ie=I[H],he=ie.func;if(he==null||he==C)return ie.name}return E}function ES(C){var E=Hi.call(ae,"placeholder")?ae:C;return E.placeholder}function on(){var C=ae.iteratee||qZ;return C=C===qZ?fke:C,arguments.length?C(arguments[0],arguments[1]):C}function gF(C,E){var I=C.__data__;return P8t(E)?I[typeof E=="string"?"string":"hash"]:I.map}function IZ(C){for(var E=As(C),I=E.length;I--;){var H=E[I],ie=C[H];E[I]=[H,ie,Gke(ie)]}return E}function Bb(C,E){var I=BFt(C,E);return hke(I)?I:t}function T8t(C){var E=Hi.call(C,Ab),I=C[Ab];try{C[Ab]=t;var H=!0}catch{}var ie=j5.call(C);return H&&(E?C[Ab]=I:delete C[Ab]),ie}var RZ=rZ?function(C){return C==null?[]:(C=ir(C),h_(rZ(C),function(E){return XEe.call(C,E)}))}:YZ,jke=rZ?function(C){for(var E=[];C;)f_(E,RZ(C)),C=G5(C);return E}:YZ,Ra=ul;(oZ&&Ra(new oZ(new ArrayBuffer(1)))!=$t||ID&&Ra(new ID)!=_t||sZ&&Ra(sZ.resolve())!=B||yS&&Ra(new yS)!=Se||RD&&Ra(new RD)!=We)&&(Ra=function(C){var E=ul(C),I=E==ve?C.constructor:t,H=I?$b(I):"";if(H)switch(H){case u3t:return $t;case d3t:return _t;case h3t:return B;case f3t:return Se;case g3t:return We}return E});function D8t(C,E,I){for(var H=-1,ie=I.length;++H<ie;){var he=I[H],we=he.size;switch(he.type){case"drop":C+=we;break;case"dropRight":E-=we;break;case"take":E=Ia(E,C+we);break;case"takeRight":C=fs(C,E-we);break}}return{start:C,end:E}}function I8t(C){var E=C.match(Fe);return E?E[1].split(Pe):[]}function qke(C,E,I){E=v_(E,C);for(var H=-1,ie=E.length,he=!1;++H<ie;){var we=gf(E[H]);if(!(he=C!=null&&I(C,we)))break;C=C[we]}return he||++H!=ie?he:(ie=C==null?0:C.length,!!ie&&CF(ie)&&Xg(we,ie)&&(Rn(C)||Wb(C)))}function R8t(C){var E=C.length,I=new C.constructor(E);return E&&typeof C[0]=="string"&&Hi.call(C,"index")&&(I.index=C.index,I.input=C.input),I}function Kke(C){return typeof C.constructor=="function"&&!WD(C)?wS(G5(C)):{}}function N8t(C,E,I){var H=C.constructor;switch(E){case Tt:return xZ(C);case se:case oe:return new H(+C);case $t:return p8t(C,I);case pn:case ln:case fe:case Be:case It:case jt:case Yn:case ho:case Ns:return Dke(C,I);case _t:return new H;case qe:case Ee:return new H(C);case te:return m8t(C);case Se:return new H;case Ce:return _8t(C)}}function A8t(C,E){var I=E.length;if(!I)return C;var H=I-1;return E[H]=(I>1?"& ":"")+E[H],E=E.join(I>2?", ":" "),C.replace(be,`{
|
|
41
|
+
*/(function(n,e){(function(){var t,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,h=2,f=4,g=1,p=2,m=1,v=2,_=4,y=8,b=16,w=32,x=64,S=128,k=256,T=512,D=30,R="...",N=800,A=16,V=1,P=2,U=3,F=1/0,M=9007199254740991,W=17976931348623157e292,j=0/0,$=4294967295,Q=$-1,ee=$>>>1,ge=[["ary",S],["bind",m],["bindKey",v],["curry",y],["curryRight",b],["flip",T],["partial",w],["partialRight",x],["rearg",k]],_e="[object Arguments]",Ie="[object Array]",K="[object AsyncFunction]",se="[object Boolean]",oe="[object Date]",Ne="[object DOMException]",pe="[object Error]",Me="[object Function]",at="[object GeneratorFunction]",_t="[object Map]",qe="[object Number]",kt="[object Null]",ve="[object Object]",B="[object Promise]",G="[object Proxy]",te="[object RegExp]",Se="[object Set]",Ee="[object String]",Ce="[object Symbol]",He="[object Undefined]",We="[object WeakMap]",ht="[object WeakSet]",Tt="[object ArrayBuffer]",$t="[object DataView]",pn="[object Float32Array]",ln="[object Float64Array]",fe="[object Int8Array]",Be="[object Int16Array]",It="[object Int32Array]",jt="[object Uint8Array]",Yn="[object Uint8ClampedArray]",ho="[object Uint16Array]",Ns="[object Uint32Array]",Ea=/\b__p \+= '';/g,fo=/\b(__p \+=) '' \+/g,Ir=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ka=/&(?:amp|lt|gt|quot|#39);/g,Rr=/[&<>"']/g,Yo=RegExp(ka.source),La=RegExp(Rr.source),Ta=/<%-([\s\S]+?)%>/g,en=/<%([\s\S]+?)%>/g,Zo=/<%=([\s\S]+?)%>/g,z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,re=RegExp(Z.source),ce=/^\s+/,J=/\s/,be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,it=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ft=/[()=,{}\[\]\/\s]/,wt=/\\(\\)?/g,Nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ut=/\w*$/,xt=/^[-+]0x[0-9a-f]+$/i,Xi=/^0b[01]+$/i,Ln=/^\[object .+?Constructor\]$/,go=/^0o[0-7]+$/i,Ac=/^(?:0|[1-9]\d*)$/,Nr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sl=/($^)/,Vg=/['\n\r\u2028\u2029\\]/g,al="\\ud800-\\udfff",af="\\u0300-\\u036f",zg="\\ufe20-\\ufe2f",Ug="\\u20d0-\\u20ff",_b=af+zg+Ug,vb="\\u2700-\\u27bf",bb="a-z\\xdf-\\xf6\\xf8-\\xff",nS="\\xac\\xb1\\xd7\\xf7",iS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rS="\\u2000-\\u206f",oS=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",yb="A-Z\\xc0-\\xd6\\xd8-\\xde",Cb="\\ufe0e\\ufe0f",wb=nS+iS+rS+oS,Sb="['\u2019]",SD="["+al+"]",sS="["+wb+"]",d_="["+_b+"]",aS="\\d+",xD="["+vb+"]",lS="["+bb+"]",cS="[^"+al+wb+aS+vb+bb+yb+"]",xb="\\ud83c[\\udffb-\\udfff]",ED="(?:"+d_+"|"+xb+")",uS="[^"+al+"]",Eb="(?:\\ud83c[\\udde6-\\uddff]){2}",kb="[\\ud800-\\udbff][\\udc00-\\udfff]",lf="["+yb+"]",dS="\\u200d",hS="(?:"+lS+"|"+cS+")",P5="(?:"+lf+"|"+cS+")",M5="(?:"+Sb+"(?:d|ll|m|re|s|t|ve))?",kD="(?:"+Sb+"(?:D|LL|M|RE|S|T|VE))?",LD=ED+"?",F5="["+Cb+"]?",KY="(?:"+dS+"(?:"+[uS,Eb,kb].join("|")+")"+F5+LD+")*",et="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Oc=F5+LD+KY,Lb="(?:"+[xD,Eb,kb].join("|")+")"+Oc,Tb="(?:"+[uS+d_+"?",d_,Eb,kb,SD].join("|")+")",Xo=RegExp(Sb,"g"),wu=RegExp(d_,"g"),jl=RegExp(xb+"(?="+xb+")|"+Tb+Oc,"g"),Db=RegExp([lf+"?"+lS+"+"+M5+"(?="+[sS,lf,"$"].join("|")+")",P5+"+"+kD+"(?="+[sS,lf+hS,"$"].join("|")+")",lf+"?"+hS+"+"+M5,lf+"+"+kD,je,et,aS,Lb].join("|"),"g"),Da=RegExp("["+dS+al+_b+Cb+"]"),Su=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ib=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rb=-1,xi={};xi[pn]=xi[ln]=xi[fe]=xi[Be]=xi[It]=xi[jt]=xi[Yn]=xi[ho]=xi[Ns]=!0,xi[_e]=xi[Ie]=xi[Tt]=xi[se]=xi[$t]=xi[oe]=xi[pe]=xi[Me]=xi[_t]=xi[qe]=xi[ve]=xi[te]=xi[Se]=xi[Ee]=xi[We]=!1;var vi={};vi[_e]=vi[Ie]=vi[Tt]=vi[$t]=vi[se]=vi[oe]=vi[pn]=vi[ln]=vi[fe]=vi[Be]=vi[It]=vi[_t]=vi[qe]=vi[ve]=vi[te]=vi[Se]=vi[Ee]=vi[Ce]=vi[jt]=vi[Yn]=vi[ho]=vi[Ns]=!0,vi[pe]=vi[Me]=vi[We]=!1;var ql={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ll={"&":"&","<":"<",">":">",'"':""","'":"'"},po={"&":"&","<":"<",">":">",""":'"',"'":"'"},Td={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pc=parseFloat,jg=parseInt,cf=typeof Ot=="object"&&Ot&&Ot.Object===Object&&Ot,fS=typeof self=="object"&&self&&self.Object===Object&&self,fr=cf||fS||Function("return this")(),uf=e&&!e.nodeType&&e,cl=uf&&!0&&n&&!n.nodeType&&n,gS=cl&&cl.exports===uf,Nb=gS&&cf.process,Qo=function(){try{var Re=cl&&cl.require&&cl.require("util").types;return Re||Nb&&Nb.binding&&Nb.binding("util")}catch{}}(),df=Qo&&Qo.isArrayBuffer,B5=Qo&&Qo.isDate,OEe=Qo&&Qo.isMap,PEe=Qo&&Qo.isRegExp,MEe=Qo&&Qo.isSet,FEe=Qo&&Qo.isTypedArray;function Mc(Re,nt,ze){switch(ze.length){case 0:return Re.call(nt);case 1:return Re.call(nt,ze[0]);case 2:return Re.call(nt,ze[0],ze[1]);case 3:return Re.call(nt,ze[0],ze[1],ze[2])}return Re.apply(nt,ze)}function EFt(Re,nt,ze,Ft){for(var Tn=-1,Di=Re==null?0:Re.length;++Tn<Di;){var hs=Re[Tn];nt(Ft,hs,ze(hs),Re)}return Ft}function xu(Re,nt){for(var ze=-1,Ft=Re==null?0:Re.length;++ze<Ft&&nt(Re[ze],ze,Re)!==!1;);return Re}function kFt(Re,nt){for(var ze=Re==null?0:Re.length;ze--&&nt(Re[ze],ze,Re)!==!1;);return Re}function BEe(Re,nt){for(var ze=-1,Ft=Re==null?0:Re.length;++ze<Ft;)if(!nt(Re[ze],ze,Re))return!1;return!0}function h_(Re,nt){for(var ze=-1,Ft=Re==null?0:Re.length,Tn=0,Di=[];++ze<Ft;){var hs=Re[ze];nt(hs,ze,Re)&&(Di[Tn++]=hs)}return Di}function $5(Re,nt){var ze=Re==null?0:Re.length;return!!ze&&pS(Re,nt,0)>-1}function GY(Re,nt,ze){for(var Ft=-1,Tn=Re==null?0:Re.length;++Ft<Tn;)if(ze(nt,Re[Ft]))return!0;return!1}function Ar(Re,nt){for(var ze=-1,Ft=Re==null?0:Re.length,Tn=Array(Ft);++ze<Ft;)Tn[ze]=nt(Re[ze],ze,Re);return Tn}function f_(Re,nt){for(var ze=-1,Ft=nt.length,Tn=Re.length;++ze<Ft;)Re[Tn+ze]=nt[ze];return Re}function YY(Re,nt,ze,Ft){var Tn=-1,Di=Re==null?0:Re.length;for(Ft&&Di&&(ze=Re[++Tn]);++Tn<Di;)ze=nt(ze,Re[Tn],Tn,Re);return ze}function LFt(Re,nt,ze,Ft){var Tn=Re==null?0:Re.length;for(Ft&&Tn&&(ze=Re[--Tn]);Tn--;)ze=nt(ze,Re[Tn],Tn,Re);return ze}function ZY(Re,nt){for(var ze=-1,Ft=Re==null?0:Re.length;++ze<Ft;)if(nt(Re[ze],ze,Re))return!0;return!1}var TFt=XY("length");function DFt(Re){return Re.split("")}function IFt(Re){return Re.match(it)||[]}function $Ee(Re,nt,ze){var Ft;return ze(Re,function(Tn,Di,hs){if(nt(Tn,Di,hs))return Ft=Di,!1}),Ft}function W5(Re,nt,ze,Ft){for(var Tn=Re.length,Di=ze+(Ft?1:-1);Ft?Di--:++Di<Tn;)if(nt(Re[Di],Di,Re))return Di;return-1}function pS(Re,nt,ze){return nt===nt?VFt(Re,nt,ze):W5(Re,WEe,ze)}function RFt(Re,nt,ze,Ft){for(var Tn=ze-1,Di=Re.length;++Tn<Di;)if(Ft(Re[Tn],nt))return Tn;return-1}function WEe(Re){return Re!==Re}function HEe(Re,nt){var ze=Re==null?0:Re.length;return ze?JY(Re,nt)/ze:j}function XY(Re){return function(nt){return nt==null?t:nt[Re]}}function QY(Re){return function(nt){return Re==null?t:Re[nt]}}function VEe(Re,nt,ze,Ft,Tn){return Tn(Re,function(Di,hs,ir){ze=Ft?(Ft=!1,Di):nt(ze,Di,hs,ir)}),ze}function NFt(Re,nt){var ze=Re.length;for(Re.sort(nt);ze--;)Re[ze]=Re[ze].value;return Re}function JY(Re,nt){for(var ze,Ft=-1,Tn=Re.length;++Ft<Tn;){var Di=nt(Re[Ft]);Di!==t&&(ze=ze===t?Di:ze+Di)}return ze}function eZ(Re,nt){for(var ze=-1,Ft=Array(Re);++ze<Re;)Ft[ze]=nt(ze);return Ft}function AFt(Re,nt){return Ar(nt,function(ze){return[ze,Re[ze]]})}function zEe(Re){return Re&&Re.slice(0,KEe(Re)+1).replace(ce,"")}function Fc(Re){return function(nt){return Re(nt)}}function tZ(Re,nt){return Ar(nt,function(ze){return Re[ze]})}function TD(Re,nt){return Re.has(nt)}function UEe(Re,nt){for(var ze=-1,Ft=Re.length;++ze<Ft&&pS(nt,Re[ze],0)>-1;);return ze}function jEe(Re,nt){for(var ze=Re.length;ze--&&pS(nt,Re[ze],0)>-1;);return ze}function OFt(Re,nt){for(var ze=Re.length,Ft=0;ze--;)Re[ze]===nt&&++Ft;return Ft}var PFt=QY(ql),MFt=QY(ll);function FFt(Re){return"\\"+Td[Re]}function BFt(Re,nt){return Re==null?t:Re[nt]}function mS(Re){return Da.test(Re)}function $Ft(Re){return Su.test(Re)}function WFt(Re){for(var nt,ze=[];!(nt=Re.next()).done;)ze.push(nt.value);return ze}function nZ(Re){var nt=-1,ze=Array(Re.size);return Re.forEach(function(Ft,Tn){ze[++nt]=[Tn,Ft]}),ze}function qEe(Re,nt){return function(ze){return Re(nt(ze))}}function g_(Re,nt){for(var ze=-1,Ft=Re.length,Tn=0,Di=[];++ze<Ft;){var hs=Re[ze];(hs===nt||hs===u)&&(Re[ze]=u,Di[Tn++]=ze)}return Di}function H5(Re){var nt=-1,ze=Array(Re.size);return Re.forEach(function(Ft){ze[++nt]=Ft}),ze}function HFt(Re){var nt=-1,ze=Array(Re.size);return Re.forEach(function(Ft){ze[++nt]=[Ft,Ft]}),ze}function VFt(Re,nt,ze){for(var Ft=ze-1,Tn=Re.length;++Ft<Tn;)if(Re[Ft]===nt)return Ft;return-1}function zFt(Re,nt,ze){for(var Ft=ze+1;Ft--;)if(Re[Ft]===nt)return Ft;return Ft}function _S(Re){return mS(Re)?jFt(Re):TFt(Re)}function Dd(Re){return mS(Re)?qFt(Re):DFt(Re)}function KEe(Re){for(var nt=Re.length;nt--&&J.test(Re.charAt(nt)););return nt}var UFt=QY(po);function jFt(Re){for(var nt=jl.lastIndex=0;jl.test(Re);)++nt;return nt}function qFt(Re){return Re.match(jl)||[]}function KFt(Re){return Re.match(Db)||[]}var GFt=function Re(nt){nt=nt==null?fr:vS.defaults(fr.Object(),nt,vS.pick(fr,Ib));var ze=nt.Array,Ft=nt.Date,Tn=nt.Error,Di=nt.Function,hs=nt.Math,ir=nt.Object,iZ=nt.RegExp,YFt=nt.String,Eu=nt.TypeError,V5=ze.prototype,ZFt=Di.prototype,bS=ir.prototype,z5=nt["__core-js_shared__"],U5=ZFt.toString,Hi=bS.hasOwnProperty,XFt=0,GEe=function(){var C=/[^.]+$/.exec(z5&&z5.keys&&z5.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),j5=bS.toString,QFt=U5.call(ir),JFt=fr._,e3t=iZ("^"+U5.call(Hi).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q5=gS?nt.Buffer:t,p_=nt.Symbol,K5=nt.Uint8Array,YEe=q5?q5.allocUnsafe:t,G5=qEe(ir.getPrototypeOf,ir),ZEe=ir.create,XEe=bS.propertyIsEnumerable,Y5=V5.splice,QEe=p_?p_.isConcatSpreadable:t,DD=p_?p_.iterator:t,Ab=p_?p_.toStringTag:t,Z5=function(){try{var C=Bb(ir,"defineProperty");return C({},"",{}),C}catch{}}(),t3t=nt.clearTimeout!==fr.clearTimeout&&nt.clearTimeout,n3t=Ft&&Ft.now!==fr.Date.now&&Ft.now,i3t=nt.setTimeout!==fr.setTimeout&&nt.setTimeout,X5=hs.ceil,Q5=hs.floor,rZ=ir.getOwnPropertySymbols,r3t=q5?q5.isBuffer:t,JEe=nt.isFinite,o3t=V5.join,s3t=qEe(ir.keys,ir),fs=hs.max,Ia=hs.min,a3t=Ft.now,l3t=nt.parseInt,eke=hs.random,c3t=V5.reverse,oZ=Bb(nt,"DataView"),ID=Bb(nt,"Map"),sZ=Bb(nt,"Promise"),yS=Bb(nt,"Set"),RD=Bb(nt,"WeakMap"),ND=Bb(ir,"create"),J5=RD&&new RD,CS={},u3t=$b(oZ),d3t=$b(ID),h3t=$b(sZ),f3t=$b(yS),g3t=$b(RD),eF=p_?p_.prototype:t,AD=eF?eF.valueOf:t,tke=eF?eF.toString:t;function ae(C){if(mo(C)&&!Rn(C)&&!(C instanceof ni)){if(C instanceof ku)return C;if(Hi.call(C,"__wrapped__"))return nLe(C)}return new ku(C)}var wS=function(){function C(){}return function(E){if(!qr(E))return{};if(ZEe)return ZEe(E);C.prototype=E;var I=new C;return C.prototype=t,I}}();function tF(){}function ku(C,E){this.__wrapped__=C,this.__actions__=[],this.__chain__=!!E,this.__index__=0,this.__values__=t}ae.templateSettings={escape:Ta,evaluate:en,interpolate:Zo,variable:"",imports:{_:ae}},ae.prototype=tF.prototype,ae.prototype.constructor=ae,ku.prototype=wS(tF.prototype),ku.prototype.constructor=ku;function ni(C){this.__wrapped__=C,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function p3t(){var C=new ni(this.__wrapped__);return C.__actions__=Kl(this.__actions__),C.__dir__=this.__dir__,C.__filtered__=this.__filtered__,C.__iteratees__=Kl(this.__iteratees__),C.__takeCount__=this.__takeCount__,C.__views__=Kl(this.__views__),C}function m3t(){if(this.__filtered__){var C=new ni(this);C.__dir__=-1,C.__filtered__=!0}else C=this.clone(),C.__dir__*=-1;return C}function _3t(){var C=this.__wrapped__.value(),E=this.__dir__,I=Rn(C),H=E<0,ie=I?C.length:0,he=D8t(0,ie,this.__views__),we=he.start,Le=he.end,Ae=Le-we,rt=H?Le:we-1,ot=this.__iteratees__,ut=ot.length,Rt=0,Gt=Ia(Ae,this.__takeCount__);if(!I||!H&&ie==Ae&&Gt==Ae)return Eke(C,this.__actions__);var cn=[];e:for(;Ae--&&Rt<Gt;){rt+=E;for(var Wn=-1,un=C[rt];++Wn<ut;){var Jn=ot[Wn],si=Jn.iteratee,Wc=Jn.type,hl=si(un);if(Wc==P)un=hl;else if(!hl){if(Wc==V)continue e;break e}}cn[Rt++]=un}return cn}ni.prototype=wS(tF.prototype),ni.prototype.constructor=ni;function Ob(C){var E=-1,I=C==null?0:C.length;for(this.clear();++E<I;){var H=C[E];this.set(H[0],H[1])}}function v3t(){this.__data__=ND?ND(null):{},this.size=0}function b3t(C){var E=this.has(C)&&delete this.__data__[C];return this.size-=E?1:0,E}function y3t(C){var E=this.__data__;if(ND){var I=E[C];return I===l?t:I}return Hi.call(E,C)?E[C]:t}function C3t(C){var E=this.__data__;return ND?E[C]!==t:Hi.call(E,C)}function w3t(C,E){var I=this.__data__;return this.size+=this.has(C)?0:1,I[C]=ND&&E===t?l:E,this}Ob.prototype.clear=v3t,Ob.prototype.delete=b3t,Ob.prototype.get=y3t,Ob.prototype.has=C3t,Ob.prototype.set=w3t;function qg(C){var E=-1,I=C==null?0:C.length;for(this.clear();++E<I;){var H=C[E];this.set(H[0],H[1])}}function S3t(){this.__data__=[],this.size=0}function x3t(C){var E=this.__data__,I=nF(E,C);if(I<0)return!1;var H=E.length-1;return I==H?E.pop():Y5.call(E,I,1),--this.size,!0}function E3t(C){var E=this.__data__,I=nF(E,C);return I<0?t:E[I][1]}function k3t(C){return nF(this.__data__,C)>-1}function L3t(C,E){var I=this.__data__,H=nF(I,C);return H<0?(++this.size,I.push([C,E])):I[H][1]=E,this}qg.prototype.clear=S3t,qg.prototype.delete=x3t,qg.prototype.get=E3t,qg.prototype.has=k3t,qg.prototype.set=L3t;function Kg(C){var E=-1,I=C==null?0:C.length;for(this.clear();++E<I;){var H=C[E];this.set(H[0],H[1])}}function T3t(){this.size=0,this.__data__={hash:new Ob,map:new(ID||qg),string:new Ob}}function D3t(C){var E=gF(this,C).delete(C);return this.size-=E?1:0,E}function I3t(C){return gF(this,C).get(C)}function R3t(C){return gF(this,C).has(C)}function N3t(C,E){var I=gF(this,C),H=I.size;return I.set(C,E),this.size+=I.size==H?0:1,this}Kg.prototype.clear=T3t,Kg.prototype.delete=D3t,Kg.prototype.get=I3t,Kg.prototype.has=R3t,Kg.prototype.set=N3t;function Pb(C){var E=-1,I=C==null?0:C.length;for(this.__data__=new Kg;++E<I;)this.add(C[E])}function A3t(C){return this.__data__.set(C,l),this}function O3t(C){return this.__data__.has(C)}Pb.prototype.add=Pb.prototype.push=A3t,Pb.prototype.has=O3t;function Id(C){var E=this.__data__=new qg(C);this.size=E.size}function P3t(){this.__data__=new qg,this.size=0}function M3t(C){var E=this.__data__,I=E.delete(C);return this.size=E.size,I}function F3t(C){return this.__data__.get(C)}function B3t(C){return this.__data__.has(C)}function $3t(C,E){var I=this.__data__;if(I instanceof qg){var H=I.__data__;if(!ID||H.length<r-1)return H.push([C,E]),this.size=++I.size,this;I=this.__data__=new Kg(H)}return I.set(C,E),this.size=I.size,this}Id.prototype.clear=P3t,Id.prototype.delete=M3t,Id.prototype.get=F3t,Id.prototype.has=B3t,Id.prototype.set=$3t;function nke(C,E){var I=Rn(C),H=!I&&Wb(C),ie=!I&&!H&&y_(C),he=!I&&!H&&!ie&&kS(C),we=I||H||ie||he,Le=we?eZ(C.length,YFt):[],Ae=Le.length;for(var rt in C)(E||Hi.call(C,rt))&&!(we&&(rt=="length"||ie&&(rt=="offset"||rt=="parent")||he&&(rt=="buffer"||rt=="byteLength"||rt=="byteOffset")||Xg(rt,Ae)))&&Le.push(rt);return Le}function ike(C){var E=C.length;return E?C[_Z(0,E-1)]:t}function W3t(C,E){return pF(Kl(C),Mb(E,0,C.length))}function H3t(C){return pF(Kl(C))}function aZ(C,E,I){(I!==t&&!Rd(C[E],I)||I===t&&!(E in C))&&Gg(C,E,I)}function OD(C,E,I){var H=C[E];(!(Hi.call(C,E)&&Rd(H,I))||I===t&&!(E in C))&&Gg(C,E,I)}function nF(C,E){for(var I=C.length;I--;)if(Rd(C[I][0],E))return I;return-1}function V3t(C,E,I,H){return m_(C,function(ie,he,we){E(H,ie,I(ie),we)}),H}function rke(C,E){return C&&ff(E,As(E),C)}function z3t(C,E){return C&&ff(E,Yl(E),C)}function Gg(C,E,I){E=="__proto__"&&Z5?Z5(C,E,{configurable:!0,enumerable:!0,value:I,writable:!0}):C[E]=I}function lZ(C,E){for(var I=-1,H=E.length,ie=ze(H),he=C==null;++I<H;)ie[I]=he?t:VZ(C,E[I]);return ie}function Mb(C,E,I){return C===C&&(I!==t&&(C=C<=I?C:I),E!==t&&(C=C>=E?C:E)),C}function Lu(C,E,I,H,ie,he){var we,Le=E&d,Ae=E&h,rt=E&f;if(I&&(we=ie?I(C,H,ie,he):I(C)),we!==t)return we;if(!qr(C))return C;var ot=Rn(C);if(ot){if(we=R8t(C),!Le)return Kl(C,we)}else{var ut=Ra(C),Rt=ut==Me||ut==at;if(y_(C))return Tke(C,Le);if(ut==ve||ut==_e||Rt&&!ie){if(we=Ae||Rt?{}:Kke(C),!Le)return Ae?y8t(C,z3t(we,C)):b8t(C,rke(we,C))}else{if(!vi[ut])return ie?C:{};we=N8t(C,ut,Le)}}he||(he=new Id);var Gt=he.get(C);if(Gt)return Gt;he.set(C,we),wLe(C)?C.forEach(function(un){we.add(Lu(un,E,I,un,C,he))}):yLe(C)&&C.forEach(function(un,Jn){we.set(Jn,Lu(un,E,I,Jn,C,he))});var cn=rt?Ae?TZ:LZ:Ae?Yl:As,Wn=ot?t:cn(C);return xu(Wn||C,function(un,Jn){Wn&&(Jn=un,un=C[Jn]),OD(we,Jn,Lu(un,E,I,Jn,C,he))}),we}function U3t(C){var E=As(C);return function(I){return oke(I,C,E)}}function oke(C,E,I){var H=I.length;if(C==null)return!H;for(C=ir(C);H--;){var ie=I[H],he=E[ie],we=C[ie];if(we===t&&!(ie in C)||!he(we))return!1}return!0}function ske(C,E,I){if(typeof C!="function")throw new Eu(s);return HD(function(){C.apply(t,I)},E)}function PD(C,E,I,H){var ie=-1,he=$5,we=!0,Le=C.length,Ae=[],rt=E.length;if(!Le)return Ae;I&&(E=Ar(E,Fc(I))),H?(he=GY,we=!1):E.length>=r&&(he=TD,we=!1,E=new Pb(E));e:for(;++ie<Le;){var ot=C[ie],ut=I==null?ot:I(ot);if(ot=H||ot!==0?ot:0,we&&ut===ut){for(var Rt=rt;Rt--;)if(E[Rt]===ut)continue e;Ae.push(ot)}else he(E,ut,H)||Ae.push(ot)}return Ae}var m_=Ake(hf),ake=Ake(uZ,!0);function j3t(C,E){var I=!0;return m_(C,function(H,ie,he){return I=!!E(H,ie,he),I}),I}function iF(C,E,I){for(var H=-1,ie=C.length;++H<ie;){var he=C[H],we=E(he);if(we!=null&&(Le===t?we===we&&!$c(we):I(we,Le)))var Le=we,Ae=he}return Ae}function q3t(C,E,I,H){var ie=C.length;for(I=Bn(I),I<0&&(I=-I>ie?0:ie+I),H=H===t||H>ie?ie:Bn(H),H<0&&(H+=ie),H=I>H?0:xLe(H);I<H;)C[I++]=E;return C}function lke(C,E){var I=[];return m_(C,function(H,ie,he){E(H,ie,he)&&I.push(H)}),I}function ta(C,E,I,H,ie){var he=-1,we=C.length;for(I||(I=O8t),ie||(ie=[]);++he<we;){var Le=C[he];E>0&&I(Le)?E>1?ta(Le,E-1,I,H,ie):f_(ie,Le):H||(ie[ie.length]=Le)}return ie}var cZ=Oke(),cke=Oke(!0);function hf(C,E){return C&&cZ(C,E,As)}function uZ(C,E){return C&&cke(C,E,As)}function rF(C,E){return h_(E,function(I){return Qg(C[I])})}function Fb(C,E){E=v_(E,C);for(var I=0,H=E.length;C!=null&&I<H;)C=C[gf(E[I++])];return I&&I==H?C:t}function uke(C,E,I){var H=E(C);return Rn(C)?H:f_(H,I(C))}function ul(C){return C==null?C===t?He:kt:Ab&&Ab in ir(C)?T8t(C):H8t(C)}function dZ(C,E){return C>E}function K3t(C,E){return C!=null&&Hi.call(C,E)}function G3t(C,E){return C!=null&&E in ir(C)}function Y3t(C,E,I){return C>=Ia(E,I)&&C<fs(E,I)}function hZ(C,E,I){for(var H=I?GY:$5,ie=C[0].length,he=C.length,we=he,Le=ze(he),Ae=1/0,rt=[];we--;){var ot=C[we];we&&E&&(ot=Ar(ot,Fc(E))),Ae=Ia(ot.length,Ae),Le[we]=!I&&(E||ie>=120&&ot.length>=120)?new Pb(we&&ot):t}ot=C[0];var ut=-1,Rt=Le[0];e:for(;++ut<ie&&rt.length<Ae;){var Gt=ot[ut],cn=E?E(Gt):Gt;if(Gt=I||Gt!==0?Gt:0,!(Rt?TD(Rt,cn):H(rt,cn,I))){for(we=he;--we;){var Wn=Le[we];if(!(Wn?TD(Wn,cn):H(C[we],cn,I)))continue e}Rt&&Rt.push(cn),rt.push(Gt)}}return rt}function Z3t(C,E,I,H){return hf(C,function(ie,he,we){E(H,I(ie),he,we)}),H}function MD(C,E,I){E=v_(E,C),C=Xke(C,E);var H=C==null?C:C[gf(Du(E))];return H==null?t:Mc(H,C,I)}function dke(C){return mo(C)&&ul(C)==_e}function X3t(C){return mo(C)&&ul(C)==Tt}function Q3t(C){return mo(C)&&ul(C)==oe}function FD(C,E,I,H,ie){return C===E?!0:C==null||E==null||!mo(C)&&!mo(E)?C!==C&&E!==E:J3t(C,E,I,H,FD,ie)}function J3t(C,E,I,H,ie,he){var we=Rn(C),Le=Rn(E),Ae=we?Ie:Ra(C),rt=Le?Ie:Ra(E);Ae=Ae==_e?ve:Ae,rt=rt==_e?ve:rt;var ot=Ae==ve,ut=rt==ve,Rt=Ae==rt;if(Rt&&y_(C)){if(!y_(E))return!1;we=!0,ot=!1}if(Rt&&!ot)return he||(he=new Id),we||kS(C)?Uke(C,E,I,H,ie,he):k8t(C,E,Ae,I,H,ie,he);if(!(I&g)){var Gt=ot&&Hi.call(C,"__wrapped__"),cn=ut&&Hi.call(E,"__wrapped__");if(Gt||cn){var Wn=Gt?C.value():C,un=cn?E.value():E;return he||(he=new Id),ie(Wn,un,I,H,he)}}return Rt?(he||(he=new Id),L8t(C,E,I,H,ie,he)):!1}function e8t(C){return mo(C)&&Ra(C)==_t}function fZ(C,E,I,H){var ie=I.length,he=ie,we=!H;if(C==null)return!he;for(C=ir(C);ie--;){var Le=I[ie];if(we&&Le[2]?Le[1]!==C[Le[0]]:!(Le[0]in C))return!1}for(;++ie<he;){Le=I[ie];var Ae=Le[0],rt=C[Ae],ot=Le[1];if(we&&Le[2]){if(rt===t&&!(Ae in C))return!1}else{var ut=new Id;if(H)var Rt=H(rt,ot,Ae,C,E,ut);if(!(Rt===t?FD(ot,rt,g|p,H,ut):Rt))return!1}}return!0}function hke(C){if(!qr(C)||M8t(C))return!1;var E=Qg(C)?e3t:Ln;return E.test($b(C))}function t8t(C){return mo(C)&&ul(C)==te}function n8t(C){return mo(C)&&Ra(C)==Se}function i8t(C){return mo(C)&&CF(C.length)&&!!xi[ul(C)]}function fke(C){return typeof C=="function"?C:C==null?Zl:typeof C=="object"?Rn(C)?mke(C[0],C[1]):pke(C):PLe(C)}function gZ(C){if(!WD(C))return s3t(C);var E=[];for(var I in ir(C))Hi.call(C,I)&&I!="constructor"&&E.push(I);return E}function r8t(C){if(!qr(C))return W8t(C);var E=WD(C),I=[];for(var H in C)H=="constructor"&&(E||!Hi.call(C,H))||I.push(H);return I}function pZ(C,E){return C<E}function gke(C,E){var I=-1,H=Gl(C)?ze(C.length):[];return m_(C,function(ie,he,we){H[++I]=E(ie,he,we)}),H}function pke(C){var E=IZ(C);return E.length==1&&E[0][2]?Yke(E[0][0],E[0][1]):function(I){return I===C||fZ(I,C,E)}}function mke(C,E){return NZ(C)&&Gke(E)?Yke(gf(C),E):function(I){var H=VZ(I,C);return H===t&&H===E?zZ(I,C):FD(E,H,g|p)}}function oF(C,E,I,H,ie){C!==E&&cZ(E,function(he,we){if(ie||(ie=new Id),qr(he))o8t(C,E,we,I,oF,H,ie);else{var Le=H?H(OZ(C,we),he,we+"",C,E,ie):t;Le===t&&(Le=he),aZ(C,we,Le)}},Yl)}function o8t(C,E,I,H,ie,he,we){var Le=OZ(C,I),Ae=OZ(E,I),rt=we.get(Ae);if(rt){aZ(C,I,rt);return}var ot=he?he(Le,Ae,I+"",C,E,we):t,ut=ot===t;if(ut){var Rt=Rn(Ae),Gt=!Rt&&y_(Ae),cn=!Rt&&!Gt&&kS(Ae);ot=Ae,Rt||Gt||cn?Rn(Le)?ot=Le:Lo(Le)?ot=Kl(Le):Gt?(ut=!1,ot=Tke(Ae,!0)):cn?(ut=!1,ot=Dke(Ae,!0)):ot=[]:VD(Ae)||Wb(Ae)?(ot=Le,Wb(Le)?ot=ELe(Le):(!qr(Le)||Qg(Le))&&(ot=Kke(Ae))):ut=!1}ut&&(we.set(Ae,ot),ie(ot,Ae,H,he,we),we.delete(Ae)),aZ(C,I,ot)}function _ke(C,E){var I=C.length;if(!!I)return E+=E<0?I:0,Xg(E,I)?C[E]:t}function vke(C,E,I){E.length?E=Ar(E,function(he){return Rn(he)?function(we){return Fb(we,he.length===1?he[0]:he)}:he}):E=[Zl];var H=-1;E=Ar(E,Fc(on()));var ie=gke(C,function(he,we,Le){var Ae=Ar(E,function(rt){return rt(he)});return{criteria:Ae,index:++H,value:he}});return NFt(ie,function(he,we){return v8t(he,we,I)})}function s8t(C,E){return bke(C,E,function(I,H){return zZ(C,H)})}function bke(C,E,I){for(var H=-1,ie=E.length,he={};++H<ie;){var we=E[H],Le=Fb(C,we);I(Le,we)&&BD(he,v_(we,C),Le)}return he}function a8t(C){return function(E){return Fb(E,C)}}function mZ(C,E,I,H){var ie=H?RFt:pS,he=-1,we=E.length,Le=C;for(C===E&&(E=Kl(E)),I&&(Le=Ar(C,Fc(I)));++he<we;)for(var Ae=0,rt=E[he],ot=I?I(rt):rt;(Ae=ie(Le,ot,Ae,H))>-1;)Le!==C&&Y5.call(Le,Ae,1),Y5.call(C,Ae,1);return C}function yke(C,E){for(var I=C?E.length:0,H=I-1;I--;){var ie=E[I];if(I==H||ie!==he){var he=ie;Xg(ie)?Y5.call(C,ie,1):yZ(C,ie)}}return C}function _Z(C,E){return C+Q5(eke()*(E-C+1))}function l8t(C,E,I,H){for(var ie=-1,he=fs(X5((E-C)/(I||1)),0),we=ze(he);he--;)we[H?he:++ie]=C,C+=I;return we}function vZ(C,E){var I="";if(!C||E<1||E>M)return I;do E%2&&(I+=C),E=Q5(E/2),E&&(C+=C);while(E);return I}function zn(C,E){return PZ(Zke(C,E,Zl),C+"")}function c8t(C){return ike(LS(C))}function u8t(C,E){var I=LS(C);return pF(I,Mb(E,0,I.length))}function BD(C,E,I,H){if(!qr(C))return C;E=v_(E,C);for(var ie=-1,he=E.length,we=he-1,Le=C;Le!=null&&++ie<he;){var Ae=gf(E[ie]),rt=I;if(Ae==="__proto__"||Ae==="constructor"||Ae==="prototype")return C;if(ie!=we){var ot=Le[Ae];rt=H?H(ot,Ae,Le):t,rt===t&&(rt=qr(ot)?ot:Xg(E[ie+1])?[]:{})}OD(Le,Ae,rt),Le=Le[Ae]}return C}var Cke=J5?function(C,E){return J5.set(C,E),C}:Zl,d8t=Z5?function(C,E){return Z5(C,"toString",{configurable:!0,enumerable:!1,value:jZ(E),writable:!0})}:Zl;function h8t(C){return pF(LS(C))}function Tu(C,E,I){var H=-1,ie=C.length;E<0&&(E=-E>ie?0:ie+E),I=I>ie?ie:I,I<0&&(I+=ie),ie=E>I?0:I-E>>>0,E>>>=0;for(var he=ze(ie);++H<ie;)he[H]=C[H+E];return he}function f8t(C,E){var I;return m_(C,function(H,ie,he){return I=E(H,ie,he),!I}),!!I}function sF(C,E,I){var H=0,ie=C==null?H:C.length;if(typeof E=="number"&&E===E&&ie<=ee){for(;H<ie;){var he=H+ie>>>1,we=C[he];we!==null&&!$c(we)&&(I?we<=E:we<E)?H=he+1:ie=he}return ie}return bZ(C,E,Zl,I)}function bZ(C,E,I,H){var ie=0,he=C==null?0:C.length;if(he===0)return 0;E=I(E);for(var we=E!==E,Le=E===null,Ae=$c(E),rt=E===t;ie<he;){var ot=Q5((ie+he)/2),ut=I(C[ot]),Rt=ut!==t,Gt=ut===null,cn=ut===ut,Wn=$c(ut);if(we)var un=H||cn;else rt?un=cn&&(H||Rt):Le?un=cn&&Rt&&(H||!Gt):Ae?un=cn&&Rt&&!Gt&&(H||!Wn):Gt||Wn?un=!1:un=H?ut<=E:ut<E;un?ie=ot+1:he=ot}return Ia(he,Q)}function wke(C,E){for(var I=-1,H=C.length,ie=0,he=[];++I<H;){var we=C[I],Le=E?E(we):we;if(!I||!Rd(Le,Ae)){var Ae=Le;he[ie++]=we===0?0:we}}return he}function Ske(C){return typeof C=="number"?C:$c(C)?j:+C}function Bc(C){if(typeof C=="string")return C;if(Rn(C))return Ar(C,Bc)+"";if($c(C))return tke?tke.call(C):"";var E=C+"";return E=="0"&&1/C==-F?"-0":E}function __(C,E,I){var H=-1,ie=$5,he=C.length,we=!0,Le=[],Ae=Le;if(I)we=!1,ie=GY;else if(he>=r){var rt=E?null:x8t(C);if(rt)return H5(rt);we=!1,ie=TD,Ae=new Pb}else Ae=E?[]:Le;e:for(;++H<he;){var ot=C[H],ut=E?E(ot):ot;if(ot=I||ot!==0?ot:0,we&&ut===ut){for(var Rt=Ae.length;Rt--;)if(Ae[Rt]===ut)continue e;E&&Ae.push(ut),Le.push(ot)}else ie(Ae,ut,I)||(Ae!==Le&&Ae.push(ut),Le.push(ot))}return Le}function yZ(C,E){return E=v_(E,C),C=Xke(C,E),C==null||delete C[gf(Du(E))]}function xke(C,E,I,H){return BD(C,E,I(Fb(C,E)),H)}function aF(C,E,I,H){for(var ie=C.length,he=H?ie:-1;(H?he--:++he<ie)&&E(C[he],he,C););return I?Tu(C,H?0:he,H?he+1:ie):Tu(C,H?he+1:0,H?ie:he)}function Eke(C,E){var I=C;return I instanceof ni&&(I=I.value()),YY(E,function(H,ie){return ie.func.apply(ie.thisArg,f_([H],ie.args))},I)}function CZ(C,E,I){var H=C.length;if(H<2)return H?__(C[0]):[];for(var ie=-1,he=ze(H);++ie<H;)for(var we=C[ie],Le=-1;++Le<H;)Le!=ie&&(he[ie]=PD(he[ie]||we,C[Le],E,I));return __(ta(he,1),E,I)}function kke(C,E,I){for(var H=-1,ie=C.length,he=E.length,we={};++H<ie;){var Le=H<he?E[H]:t;I(we,C[H],Le)}return we}function wZ(C){return Lo(C)?C:[]}function SZ(C){return typeof C=="function"?C:Zl}function v_(C,E){return Rn(C)?C:NZ(C,E)?[C]:tLe(Mi(C))}var g8t=zn;function b_(C,E,I){var H=C.length;return I=I===t?H:I,!E&&I>=H?C:Tu(C,E,I)}var Lke=t3t||function(C){return fr.clearTimeout(C)};function Tke(C,E){if(E)return C.slice();var I=C.length,H=YEe?YEe(I):new C.constructor(I);return C.copy(H),H}function xZ(C){var E=new C.constructor(C.byteLength);return new K5(E).set(new K5(C)),E}function p8t(C,E){var I=E?xZ(C.buffer):C.buffer;return new C.constructor(I,C.byteOffset,C.byteLength)}function m8t(C){var E=new C.constructor(C.source,Ut.exec(C));return E.lastIndex=C.lastIndex,E}function _8t(C){return AD?ir(AD.call(C)):{}}function Dke(C,E){var I=E?xZ(C.buffer):C.buffer;return new C.constructor(I,C.byteOffset,C.length)}function Ike(C,E){if(C!==E){var I=C!==t,H=C===null,ie=C===C,he=$c(C),we=E!==t,Le=E===null,Ae=E===E,rt=$c(E);if(!Le&&!rt&&!he&&C>E||he&&we&&Ae&&!Le&&!rt||H&&we&&Ae||!I&&Ae||!ie)return 1;if(!H&&!he&&!rt&&C<E||rt&&I&&ie&&!H&&!he||Le&&I&&ie||!we&&ie||!Ae)return-1}return 0}function v8t(C,E,I){for(var H=-1,ie=C.criteria,he=E.criteria,we=ie.length,Le=I.length;++H<we;){var Ae=Ike(ie[H],he[H]);if(Ae){if(H>=Le)return Ae;var rt=I[H];return Ae*(rt=="desc"?-1:1)}}return C.index-E.index}function Rke(C,E,I,H){for(var ie=-1,he=C.length,we=I.length,Le=-1,Ae=E.length,rt=fs(he-we,0),ot=ze(Ae+rt),ut=!H;++Le<Ae;)ot[Le]=E[Le];for(;++ie<we;)(ut||ie<he)&&(ot[I[ie]]=C[ie]);for(;rt--;)ot[Le++]=C[ie++];return ot}function Nke(C,E,I,H){for(var ie=-1,he=C.length,we=-1,Le=I.length,Ae=-1,rt=E.length,ot=fs(he-Le,0),ut=ze(ot+rt),Rt=!H;++ie<ot;)ut[ie]=C[ie];for(var Gt=ie;++Ae<rt;)ut[Gt+Ae]=E[Ae];for(;++we<Le;)(Rt||ie<he)&&(ut[Gt+I[we]]=C[ie++]);return ut}function Kl(C,E){var I=-1,H=C.length;for(E||(E=ze(H));++I<H;)E[I]=C[I];return E}function ff(C,E,I,H){var ie=!I;I||(I={});for(var he=-1,we=E.length;++he<we;){var Le=E[he],Ae=H?H(I[Le],C[Le],Le,I,C):t;Ae===t&&(Ae=C[Le]),ie?Gg(I,Le,Ae):OD(I,Le,Ae)}return I}function b8t(C,E){return ff(C,RZ(C),E)}function y8t(C,E){return ff(C,jke(C),E)}function lF(C,E){return function(I,H){var ie=Rn(I)?EFt:V3t,he=E?E():{};return ie(I,C,on(H,2),he)}}function SS(C){return zn(function(E,I){var H=-1,ie=I.length,he=ie>1?I[ie-1]:t,we=ie>2?I[2]:t;for(he=C.length>3&&typeof he=="function"?(ie--,he):t,we&&dl(I[0],I[1],we)&&(he=ie<3?t:he,ie=1),E=ir(E);++H<ie;){var Le=I[H];Le&&C(E,Le,H,he)}return E})}function Ake(C,E){return function(I,H){if(I==null)return I;if(!Gl(I))return C(I,H);for(var ie=I.length,he=E?ie:-1,we=ir(I);(E?he--:++he<ie)&&H(we[he],he,we)!==!1;);return I}}function Oke(C){return function(E,I,H){for(var ie=-1,he=ir(E),we=H(E),Le=we.length;Le--;){var Ae=we[C?Le:++ie];if(I(he[Ae],Ae,he)===!1)break}return E}}function C8t(C,E,I){var H=E&m,ie=$D(C);function he(){var we=this&&this!==fr&&this instanceof he?ie:C;return we.apply(H?I:this,arguments)}return he}function Pke(C){return function(E){E=Mi(E);var I=mS(E)?Dd(E):t,H=I?I[0]:E.charAt(0),ie=I?b_(I,1).join(""):E.slice(1);return H[C]()+ie}}function xS(C){return function(E){return YY(ALe(NLe(E).replace(Xo,"")),C,"")}}function $D(C){return function(){var E=arguments;switch(E.length){case 0:return new C;case 1:return new C(E[0]);case 2:return new C(E[0],E[1]);case 3:return new C(E[0],E[1],E[2]);case 4:return new C(E[0],E[1],E[2],E[3]);case 5:return new C(E[0],E[1],E[2],E[3],E[4]);case 6:return new C(E[0],E[1],E[2],E[3],E[4],E[5]);case 7:return new C(E[0],E[1],E[2],E[3],E[4],E[5],E[6])}var I=wS(C.prototype),H=C.apply(I,E);return qr(H)?H:I}}function w8t(C,E,I){var H=$D(C);function ie(){for(var he=arguments.length,we=ze(he),Le=he,Ae=ES(ie);Le--;)we[Le]=arguments[Le];var rt=he<3&&we[0]!==Ae&&we[he-1]!==Ae?[]:g_(we,Ae);if(he-=rt.length,he<I)return Wke(C,E,cF,ie.placeholder,t,we,rt,t,t,I-he);var ot=this&&this!==fr&&this instanceof ie?H:C;return Mc(ot,this,we)}return ie}function Mke(C){return function(E,I,H){var ie=ir(E);if(!Gl(E)){var he=on(I,3);E=As(E),I=function(Le){return he(ie[Le],Le,ie)}}var we=C(E,I,H);return we>-1?ie[he?E[we]:we]:t}}function Fke(C){return Zg(function(E){var I=E.length,H=I,ie=ku.prototype.thru;for(C&&E.reverse();H--;){var he=E[H];if(typeof he!="function")throw new Eu(s);if(ie&&!we&&fF(he)=="wrapper")var we=new ku([],!0)}for(H=we?H:I;++H<I;){he=E[H];var Le=fF(he),Ae=Le=="wrapper"?DZ(he):t;Ae&&AZ(Ae[0])&&Ae[1]==(S|y|w|k)&&!Ae[4].length&&Ae[9]==1?we=we[fF(Ae[0])].apply(we,Ae[3]):we=he.length==1&&AZ(he)?we[Le]():we.thru(he)}return function(){var rt=arguments,ot=rt[0];if(we&&rt.length==1&&Rn(ot))return we.plant(ot).value();for(var ut=0,Rt=I?E[ut].apply(this,rt):ot;++ut<I;)Rt=E[ut].call(this,Rt);return Rt}})}function cF(C,E,I,H,ie,he,we,Le,Ae,rt){var ot=E&S,ut=E&m,Rt=E&v,Gt=E&(y|b),cn=E&T,Wn=Rt?t:$D(C);function un(){for(var Jn=arguments.length,si=ze(Jn),Wc=Jn;Wc--;)si[Wc]=arguments[Wc];if(Gt)var hl=ES(un),Hc=OFt(si,hl);if(H&&(si=Rke(si,H,ie,Gt)),he&&(si=Nke(si,he,we,Gt)),Jn-=Hc,Gt&&Jn<rt){var To=g_(si,hl);return Wke(C,E,cF,un.placeholder,I,si,To,Le,Ae,rt-Jn)}var Nd=ut?I:this,ep=Rt?Nd[C]:C;return Jn=si.length,Le?si=V8t(si,Le):cn&&Jn>1&&si.reverse(),ot&&Ae<Jn&&(si.length=Ae),this&&this!==fr&&this instanceof un&&(ep=Wn||$D(ep)),ep.apply(Nd,si)}return un}function Bke(C,E){return function(I,H){return Z3t(I,C,E(H),{})}}function uF(C,E){return function(I,H){var ie;if(I===t&&H===t)return E;if(I!==t&&(ie=I),H!==t){if(ie===t)return H;typeof I=="string"||typeof H=="string"?(I=Bc(I),H=Bc(H)):(I=Ske(I),H=Ske(H)),ie=C(I,H)}return ie}}function EZ(C){return Zg(function(E){return E=Ar(E,Fc(on())),zn(function(I){var H=this;return C(E,function(ie){return Mc(ie,H,I)})})})}function dF(C,E){E=E===t?" ":Bc(E);var I=E.length;if(I<2)return I?vZ(E,C):E;var H=vZ(E,X5(C/_S(E)));return mS(E)?b_(Dd(H),0,C).join(""):H.slice(0,C)}function S8t(C,E,I,H){var ie=E&m,he=$D(C);function we(){for(var Le=-1,Ae=arguments.length,rt=-1,ot=H.length,ut=ze(ot+Ae),Rt=this&&this!==fr&&this instanceof we?he:C;++rt<ot;)ut[rt]=H[rt];for(;Ae--;)ut[rt++]=arguments[++Le];return Mc(Rt,ie?I:this,ut)}return we}function $ke(C){return function(E,I,H){return H&&typeof H!="number"&&dl(E,I,H)&&(I=H=t),E=Jg(E),I===t?(I=E,E=0):I=Jg(I),H=H===t?E<I?1:-1:Jg(H),l8t(E,I,H,C)}}function hF(C){return function(E,I){return typeof E=="string"&&typeof I=="string"||(E=Iu(E),I=Iu(I)),C(E,I)}}function Wke(C,E,I,H,ie,he,we,Le,Ae,rt){var ot=E&y,ut=ot?we:t,Rt=ot?t:we,Gt=ot?he:t,cn=ot?t:he;E|=ot?w:x,E&=~(ot?x:w),E&_||(E&=~(m|v));var Wn=[C,E,ie,Gt,ut,cn,Rt,Le,Ae,rt],un=I.apply(t,Wn);return AZ(C)&&Qke(un,Wn),un.placeholder=H,Jke(un,C,E)}function kZ(C){var E=hs[C];return function(I,H){if(I=Iu(I),H=H==null?0:Ia(Bn(H),292),H&&JEe(I)){var ie=(Mi(I)+"e").split("e"),he=E(ie[0]+"e"+(+ie[1]+H));return ie=(Mi(he)+"e").split("e"),+(ie[0]+"e"+(+ie[1]-H))}return E(I)}}var x8t=yS&&1/H5(new yS([,-0]))[1]==F?function(C){return new yS(C)}:GZ;function Hke(C){return function(E){var I=Ra(E);return I==_t?nZ(E):I==Se?HFt(E):AFt(E,C(E))}}function Yg(C,E,I,H,ie,he,we,Le){var Ae=E&v;if(!Ae&&typeof C!="function")throw new Eu(s);var rt=H?H.length:0;if(rt||(E&=~(w|x),H=ie=t),we=we===t?we:fs(Bn(we),0),Le=Le===t?Le:Bn(Le),rt-=ie?ie.length:0,E&x){var ot=H,ut=ie;H=ie=t}var Rt=Ae?t:DZ(C),Gt=[C,E,I,H,ie,ot,ut,he,we,Le];if(Rt&&$8t(Gt,Rt),C=Gt[0],E=Gt[1],I=Gt[2],H=Gt[3],ie=Gt[4],Le=Gt[9]=Gt[9]===t?Ae?0:C.length:fs(Gt[9]-rt,0),!Le&&E&(y|b)&&(E&=~(y|b)),!E||E==m)var cn=C8t(C,E,I);else E==y||E==b?cn=w8t(C,E,Le):(E==w||E==(m|w))&&!ie.length?cn=S8t(C,E,I,H):cn=cF.apply(t,Gt);var Wn=Rt?Cke:Qke;return Jke(Wn(cn,Gt),C,E)}function Vke(C,E,I,H){return C===t||Rd(C,bS[I])&&!Hi.call(H,I)?E:C}function zke(C,E,I,H,ie,he){return qr(C)&&qr(E)&&(he.set(E,C),oF(C,E,t,zke,he),he.delete(E)),C}function E8t(C){return VD(C)?t:C}function Uke(C,E,I,H,ie,he){var we=I&g,Le=C.length,Ae=E.length;if(Le!=Ae&&!(we&&Ae>Le))return!1;var rt=he.get(C),ot=he.get(E);if(rt&&ot)return rt==E&&ot==C;var ut=-1,Rt=!0,Gt=I&p?new Pb:t;for(he.set(C,E),he.set(E,C);++ut<Le;){var cn=C[ut],Wn=E[ut];if(H)var un=we?H(Wn,cn,ut,E,C,he):H(cn,Wn,ut,C,E,he);if(un!==t){if(un)continue;Rt=!1;break}if(Gt){if(!ZY(E,function(Jn,si){if(!TD(Gt,si)&&(cn===Jn||ie(cn,Jn,I,H,he)))return Gt.push(si)})){Rt=!1;break}}else if(!(cn===Wn||ie(cn,Wn,I,H,he))){Rt=!1;break}}return he.delete(C),he.delete(E),Rt}function k8t(C,E,I,H,ie,he,we){switch(I){case $t:if(C.byteLength!=E.byteLength||C.byteOffset!=E.byteOffset)return!1;C=C.buffer,E=E.buffer;case Tt:return!(C.byteLength!=E.byteLength||!he(new K5(C),new K5(E)));case se:case oe:case qe:return Rd(+C,+E);case pe:return C.name==E.name&&C.message==E.message;case te:case Ee:return C==E+"";case _t:var Le=nZ;case Se:var Ae=H&g;if(Le||(Le=H5),C.size!=E.size&&!Ae)return!1;var rt=we.get(C);if(rt)return rt==E;H|=p,we.set(C,E);var ot=Uke(Le(C),Le(E),H,ie,he,we);return we.delete(C),ot;case Ce:if(AD)return AD.call(C)==AD.call(E)}return!1}function L8t(C,E,I,H,ie,he){var we=I&g,Le=LZ(C),Ae=Le.length,rt=LZ(E),ot=rt.length;if(Ae!=ot&&!we)return!1;for(var ut=Ae;ut--;){var Rt=Le[ut];if(!(we?Rt in E:Hi.call(E,Rt)))return!1}var Gt=he.get(C),cn=he.get(E);if(Gt&&cn)return Gt==E&&cn==C;var Wn=!0;he.set(C,E),he.set(E,C);for(var un=we;++ut<Ae;){Rt=Le[ut];var Jn=C[Rt],si=E[Rt];if(H)var Wc=we?H(si,Jn,Rt,E,C,he):H(Jn,si,Rt,C,E,he);if(!(Wc===t?Jn===si||ie(Jn,si,I,H,he):Wc)){Wn=!1;break}un||(un=Rt=="constructor")}if(Wn&&!un){var hl=C.constructor,Hc=E.constructor;hl!=Hc&&"constructor"in C&&"constructor"in E&&!(typeof hl=="function"&&hl instanceof hl&&typeof Hc=="function"&&Hc instanceof Hc)&&(Wn=!1)}return he.delete(C),he.delete(E),Wn}function Zg(C){return PZ(Zke(C,t,oLe),C+"")}function LZ(C){return uke(C,As,RZ)}function TZ(C){return uke(C,Yl,jke)}var DZ=J5?function(C){return J5.get(C)}:GZ;function fF(C){for(var E=C.name+"",I=CS[E],H=Hi.call(CS,E)?I.length:0;H--;){var ie=I[H],he=ie.func;if(he==null||he==C)return ie.name}return E}function ES(C){var E=Hi.call(ae,"placeholder")?ae:C;return E.placeholder}function on(){var C=ae.iteratee||qZ;return C=C===qZ?fke:C,arguments.length?C(arguments[0],arguments[1]):C}function gF(C,E){var I=C.__data__;return P8t(E)?I[typeof E=="string"?"string":"hash"]:I.map}function IZ(C){for(var E=As(C),I=E.length;I--;){var H=E[I],ie=C[H];E[I]=[H,ie,Gke(ie)]}return E}function Bb(C,E){var I=BFt(C,E);return hke(I)?I:t}function T8t(C){var E=Hi.call(C,Ab),I=C[Ab];try{C[Ab]=t;var H=!0}catch{}var ie=j5.call(C);return H&&(E?C[Ab]=I:delete C[Ab]),ie}var RZ=rZ?function(C){return C==null?[]:(C=ir(C),h_(rZ(C),function(E){return XEe.call(C,E)}))}:YZ,jke=rZ?function(C){for(var E=[];C;)f_(E,RZ(C)),C=G5(C);return E}:YZ,Ra=ul;(oZ&&Ra(new oZ(new ArrayBuffer(1)))!=$t||ID&&Ra(new ID)!=_t||sZ&&Ra(sZ.resolve())!=B||yS&&Ra(new yS)!=Se||RD&&Ra(new RD)!=We)&&(Ra=function(C){var E=ul(C),I=E==ve?C.constructor:t,H=I?$b(I):"";if(H)switch(H){case u3t:return $t;case d3t:return _t;case h3t:return B;case f3t:return Se;case g3t:return We}return E});function D8t(C,E,I){for(var H=-1,ie=I.length;++H<ie;){var he=I[H],we=he.size;switch(he.type){case"drop":C+=we;break;case"dropRight":E-=we;break;case"take":E=Ia(E,C+we);break;case"takeRight":C=fs(C,E-we);break}}return{start:C,end:E}}function I8t(C){var E=C.match(Fe);return E?E[1].split(Pe):[]}function qke(C,E,I){E=v_(E,C);for(var H=-1,ie=E.length,he=!1;++H<ie;){var we=gf(E[H]);if(!(he=C!=null&&I(C,we)))break;C=C[we]}return he||++H!=ie?he:(ie=C==null?0:C.length,!!ie&&CF(ie)&&Xg(we,ie)&&(Rn(C)||Wb(C)))}function R8t(C){var E=C.length,I=new C.constructor(E);return E&&typeof C[0]=="string"&&Hi.call(C,"index")&&(I.index=C.index,I.input=C.input),I}function Kke(C){return typeof C.constructor=="function"&&!WD(C)?wS(G5(C)):{}}function N8t(C,E,I){var H=C.constructor;switch(E){case Tt:return xZ(C);case se:case oe:return new H(+C);case $t:return p8t(C,I);case pn:case ln:case fe:case Be:case It:case jt:case Yn:case ho:case Ns:return Dke(C,I);case _t:return new H;case qe:case Ee:return new H(C);case te:return m8t(C);case Se:return new H;case Ce:return _8t(C)}}function A8t(C,E){var I=E.length;if(!I)return C;var H=I-1;return E[H]=(I>1?"& ":"")+E[H],E=E.join(I>2?", ":" "),C.replace(be,`{
|
|
42
42
|
/* [wrapped with `+E+`] */
|
|
43
|
-
`)}function O8t(C){return Rn(C)||Wb(C)||!!(QEe&&C&&C[QEe])}function Xg(C,E){var I=typeof C;return E=E==null?M:E,!!E&&(I=="number"||I!="symbol"&&Ac.test(C))&&C>-1&&C%1==0&&C<E}function dl(C,E,I){if(!qr(I))return!1;var H=typeof E;return(H=="number"?Gl(I)&&Xg(E,I.length):H=="string"&&E in I)?Rd(I[E],C):!1}function NZ(C,E){if(Rn(C))return!1;var I=typeof C;return I=="number"||I=="symbol"||I=="boolean"||C==null||$c(C)?!0:q.test(C)||!z.test(C)||E!=null&&C in ir(E)}function P8t(C){var E=typeof C;return E=="string"||E=="number"||E=="symbol"||E=="boolean"?C!=="__proto__":C===null}function AZ(C){var E=fF(C),I=ae[E];if(typeof I!="function"||!(E in ni.prototype))return!1;if(C===I)return!0;var H=DZ(I);return!!H&&C===H[0]}function M8t(C){return!!GEe&&GEe in C}var F8t=z5?Qg:ZZ;function WD(C){var E=C&&C.constructor,I=typeof E=="function"&&E.prototype||bS;return C===I}function Gke(C){return C===C&&!qr(C)}function Yke(C,E){return function(I){return I==null?!1:I[C]===E&&(E!==t||C in ir(I))}}function B8t(C){var E=bF(C,function(H){return I.size===c&&I.clear(),H}),I=E.cache;return E}function $8t(C,E){var I=C[1],H=E[1],ie=I|H,he=ie<(m|v|S),we=H==S&&I==y||H==S&&I==k&&C[7].length<=E[8]||H==(S|k)&&E[7].length<=E[8]&&I==y;if(!(he||we))return C;H&m&&(C[2]=E[2],ie|=I&m?0:_);var Le=E[3];if(Le){var Ae=C[3];C[3]=Ae?Rke(Ae,Le,E[4]):Le,C[4]=Ae?g_(C[3],u):E[4]}return Le=E[5],Le&&(Ae=C[5],C[5]=Ae?Nke(Ae,Le,E[6]):Le,C[6]=Ae?g_(C[5],u):E[6]),Le=E[7],Le&&(C[7]=Le),H&S&&(C[8]=C[8]==null?E[8]:Ia(C[8],E[8])),C[9]==null&&(C[9]=E[9]),C[0]=E[0],C[1]=ie,C}function W8t(C){var E=[];if(C!=null)for(var I in ir(C))E.push(I);return E}function H8t(C){return j5.call(C)}function Zke(C,E,I){return E=fs(E===t?C.length-1:E,0),function(){for(var H=arguments,ie=-1,he=fs(H.length-E,0),we=ze(he);++ie<he;)we[ie]=H[E+ie];ie=-1;for(var Le=ze(E+1);++ie<E;)Le[ie]=H[ie];return Le[E]=I(we),Mc(C,this,Le)}}function Xke(C,E){return E.length<2?C:Fb(C,Tu(E,0,-1))}function V8t(C,E){for(var I=C.length,H=Ia(E.length,I),ie=Kl(C);H--;){var he=E[H];C[H]=Xg(he,I)?ie[he]:t}return C}function OZ(C,E){if(!(E==="constructor"&&typeof C[E]=="function")&&E!="__proto__")return C[E]}var Qke=eLe(Cke),HD=i3t||function(C,E){return fr.setTimeout(C,E)},PZ=eLe(d8t);function Jke(C,E,I){var H=E+"";return PZ(C,A8t(H,z8t(I8t(H),I)))}function eLe(C){var E=0,I=0;return function(){var H=a3t(),ie=A-(H-I);if(I=H,ie>0){if(++E>=N)return arguments[0]}else E=0;return C.apply(t,arguments)}}function pF(C,E){var I=-1,H=C.length,ie=H-1;for(E=E===t?H:E;++I<E;){var he=_Z(I,ie),we=C[he];C[he]=C[I],C[I]=we}return C.length=E,C}var tLe=B8t(function(C){var E=[];return C.charCodeAt(0)===46&&E.push(""),C.replace(le,function(I,H,ie,he){E.push(ie?he.replace(wt,"$1"):H||I)}),E});function gf(C){if(typeof C=="string"||$c(C))return C;var E=C+"";return E=="0"&&1/C==-F?"-0":E}function $b(C){if(C!=null){try{return U5.call(C)}catch{}try{return C+""}catch{}}return""}function z8t(C,E){return xu(ge,function(I){var H="_."+I[0];E&I[1]&&!$5(C,H)&&C.push(H)}),C.sort()}function nLe(C){if(C instanceof ni)return C.clone();var E=new ku(C.__wrapped__,C.__chain__);return E.__actions__=Kl(C.__actions__),E.__index__=C.__index__,E.__values__=C.__values__,E}function U8t(C,E,I){(I?dl(C,E,I):E===t)?E=1:E=fs(Bn(E),0);var H=C==null?0:C.length;if(!H||E<1)return[];for(var ie=0,he=0,we=ze(X5(H/E));ie<H;)we[he++]=Tu(C,ie,ie+=E);return we}function j8t(C){for(var E=-1,I=C==null?0:C.length,H=0,ie=[];++E<I;){var he=C[E];he&&(ie[H++]=he)}return ie}function q8t(){var C=arguments.length;if(!C)return[];for(var E=ze(C-1),I=arguments[0],H=C;H--;)E[H-1]=arguments[H];return f_(Rn(I)?Kl(I):[I],ta(E,1))}var K8t=zn(function(C,E){return Lo(C)?PD(C,ta(E,1,Lo,!0)):[]}),G8t=zn(function(C,E){var I=Du(E);return Lo(I)&&(I=t),Lo(C)?PD(C,ta(E,1,Lo,!0),on(I,2)):[]}),Y8t=zn(function(C,E){var I=Du(E);return Lo(I)&&(I=t),Lo(C)?PD(C,ta(E,1,Lo,!0),t,I):[]});function Z8t(C,E,I){var H=C==null?0:C.length;return H?(E=I||E===t?1:Bn(E),Tu(C,E<0?0:E,H)):[]}function X8t(C,E,I){var H=C==null?0:C.length;return H?(E=I||E===t?1:Bn(E),E=H-E,Tu(C,0,E<0?0:E)):[]}function Q8t(C,E){return C&&C.length?aF(C,on(E,3),!0,!0):[]}function J8t(C,E){return C&&C.length?aF(C,on(E,3),!0):[]}function e6t(C,E,I,H){var ie=C==null?0:C.length;return ie?(I&&typeof I!="number"&&dl(C,E,I)&&(I=0,H=ie),q3t(C,E,I,H)):[]}function iLe(C,E,I){var H=C==null?0:C.length;if(!H)return-1;var ie=I==null?0:Bn(I);return ie<0&&(ie=fs(H+ie,0)),W5(C,on(E,3),ie)}function rLe(C,E,I){var H=C==null?0:C.length;if(!H)return-1;var ie=H-1;return I!==t&&(ie=Bn(I),ie=I<0?fs(H+ie,0):Ia(ie,H-1)),W5(C,on(E,3),ie,!0)}function oLe(C){var E=C==null?0:C.length;return E?ta(C,1):[]}function t6t(C){var E=C==null?0:C.length;return E?ta(C,F):[]}function n6t(C,E){var I=C==null?0:C.length;return I?(E=E===t?1:Bn(E),ta(C,E)):[]}function i6t(C){for(var E=-1,I=C==null?0:C.length,H={};++E<I;){var ie=C[E];H[ie[0]]=ie[1]}return H}function sLe(C){return C&&C.length?C[0]:t}function r6t(C,E,I){var H=C==null?0:C.length;if(!H)return-1;var ie=I==null?0:Bn(I);return ie<0&&(ie=fs(H+ie,0)),pS(C,E,ie)}function o6t(C){var E=C==null?0:C.length;return E?Tu(C,0,-1):[]}var s6t=zn(function(C){var E=Ar(C,wZ);return E.length&&E[0]===C[0]?hZ(E):[]}),a6t=zn(function(C){var E=Du(C),I=Ar(C,wZ);return E===Du(I)?E=t:I.pop(),I.length&&I[0]===C[0]?hZ(I,on(E,2)):[]}),l6t=zn(function(C){var E=Du(C),I=Ar(C,wZ);return E=typeof E=="function"?E:t,E&&I.pop(),I.length&&I[0]===C[0]?hZ(I,t,E):[]});function c6t(C,E){return C==null?"":o3t.call(C,E)}function Du(C){var E=C==null?0:C.length;return E?C[E-1]:t}function u6t(C,E,I){var H=C==null?0:C.length;if(!H)return-1;var ie=H;return I!==t&&(ie=Bn(I),ie=ie<0?fs(H+ie,0):Ia(ie,H-1)),E===E?zFt(C,E,ie):W5(C,WEe,ie,!0)}function d6t(C,E){return C&&C.length?_ke(C,Bn(E)):t}var h6t=zn(aLe);function aLe(C,E){return C&&C.length&&E&&E.length?mZ(C,E):C}function f6t(C,E,I){return C&&C.length&&E&&E.length?mZ(C,E,on(I,2)):C}function g6t(C,E,I){return C&&C.length&&E&&E.length?mZ(C,E,t,I):C}var p6t=Zg(function(C,E){var I=C==null?0:C.length,H=lZ(C,E);return yke(C,Ar(E,function(ie){return Xg(ie,I)?+ie:ie}).sort(Ike)),H});function m6t(C,E){var I=[];if(!(C&&C.length))return I;var H=-1,ie=[],he=C.length;for(E=on(E,3);++H<he;){var we=C[H];E(we,H,C)&&(I.push(we),ie.push(H))}return yke(C,ie),I}function MZ(C){return C==null?C:c3t.call(C)}function _6t(C,E,I){var H=C==null?0:C.length;return H?(I&&typeof I!="number"&&dl(C,E,I)?(E=0,I=H):(E=E==null?0:Bn(E),I=I===t?H:Bn(I)),Tu(C,E,I)):[]}function v6t(C,E){return sF(C,E)}function b6t(C,E,I){return bZ(C,E,on(I,2))}function y6t(C,E){var I=C==null?0:C.length;if(I){var H=sF(C,E);if(H<I&&Rd(C[H],E))return H}return-1}function C6t(C,E){return sF(C,E,!0)}function w6t(C,E,I){return bZ(C,E,on(I,2),!0)}function S6t(C,E){var I=C==null?0:C.length;if(I){var H=sF(C,E,!0)-1;if(Rd(C[H],E))return H}return-1}function x6t(C){return C&&C.length?wke(C):[]}function E6t(C,E){return C&&C.length?wke(C,on(E,2)):[]}function k6t(C){var E=C==null?0:C.length;return E?Tu(C,1,E):[]}function L6t(C,E,I){return C&&C.length?(E=I||E===t?1:Bn(E),Tu(C,0,E<0?0:E)):[]}function T6t(C,E,I){var H=C==null?0:C.length;return H?(E=I||E===t?1:Bn(E),E=H-E,Tu(C,E<0?0:E,H)):[]}function D6t(C,E){return C&&C.length?aF(C,on(E,3),!1,!0):[]}function I6t(C,E){return C&&C.length?aF(C,on(E,3)):[]}var R6t=zn(function(C){return __(ta(C,1,Lo,!0))}),N6t=zn(function(C){var E=Du(C);return Lo(E)&&(E=t),__(ta(C,1,Lo,!0),on(E,2))}),A6t=zn(function(C){var E=Du(C);return E=typeof E=="function"?E:t,__(ta(C,1,Lo,!0),t,E)});function O6t(C){return C&&C.length?__(C):[]}function P6t(C,E){return C&&C.length?__(C,on(E,2)):[]}function M6t(C,E){return E=typeof E=="function"?E:t,C&&C.length?__(C,t,E):[]}function FZ(C){if(!(C&&C.length))return[];var E=0;return C=h_(C,function(I){if(Lo(I))return E=fs(I.length,E),!0}),eZ(E,function(I){return Ar(C,XY(I))})}function lLe(C,E){if(!(C&&C.length))return[];var I=FZ(C);return E==null?I:Ar(I,function(H){return Mc(E,t,H)})}var F6t=zn(function(C,E){return Lo(C)?PD(C,E):[]}),B6t=zn(function(C){return CZ(h_(C,Lo))}),$6t=zn(function(C){var E=Du(C);return Lo(E)&&(E=t),CZ(h_(C,Lo),on(E,2))}),W6t=zn(function(C){var E=Du(C);return E=typeof E=="function"?E:t,CZ(h_(C,Lo),t,E)}),H6t=zn(FZ);function V6t(C,E){return kke(C||[],E||[],OD)}function z6t(C,E){return kke(C||[],E||[],BD)}var U6t=zn(function(C){var E=C.length,I=E>1?C[E-1]:t;return I=typeof I=="function"?(C.pop(),I):t,lLe(C,I)});function cLe(C){var E=ae(C);return E.__chain__=!0,E}function j6t(C,E){return E(C),C}function mF(C,E){return E(C)}var q6t=Zg(function(C){var E=C.length,I=E?C[0]:0,H=this.__wrapped__,ie=function(he){return lZ(he,C)};return E>1||this.__actions__.length||!(H instanceof ni)||!Xg(I)?this.thru(ie):(H=H.slice(I,+I+(E?1:0)),H.__actions__.push({func:mF,args:[ie],thisArg:t}),new ku(H,this.__chain__).thru(function(he){return E&&!he.length&&he.push(t),he}))});function K6t(){return cLe(this)}function G6t(){return new ku(this.value(),this.__chain__)}function Y6t(){this.__values__===t&&(this.__values__=SLe(this.value()));var C=this.__index__>=this.__values__.length,E=C?t:this.__values__[this.__index__++];return{done:C,value:E}}function Z6t(){return this}function X6t(C){for(var E,I=this;I instanceof tF;){var H=nLe(I);H.__index__=0,H.__values__=t,E?ie.__wrapped__=H:E=H;var ie=H;I=I.__wrapped__}return ie.__wrapped__=C,E}function Q6t(){var C=this.__wrapped__;if(C instanceof ni){var E=C;return this.__actions__.length&&(E=new ni(this)),E=E.reverse(),E.__actions__.push({func:mF,args:[MZ],thisArg:t}),new ku(E,this.__chain__)}return this.thru(MZ)}function J6t(){return Eke(this.__wrapped__,this.__actions__)}var eBt=lF(function(C,E,I){Hi.call(C,I)?++C[I]:Gg(C,I,1)});function tBt(C,E,I){var H=Rn(C)?BEe:j3t;return I&&dl(C,E,I)&&(E=t),H(C,on(E,3))}function nBt(C,E){var I=Rn(C)?h_:lke;return I(C,on(E,3))}var iBt=Mke(iLe),rBt=Mke(rLe);function oBt(C,E){return ta(_F(C,E),1)}function sBt(C,E){return ta(_F(C,E),F)}function aBt(C,E,I){return I=I===t?1:Bn(I),ta(_F(C,E),I)}function uLe(C,E){var I=Rn(C)?xu:m_;return I(C,on(E,3))}function dLe(C,E){var I=Rn(C)?kFt:ake;return I(C,on(E,3))}var lBt=lF(function(C,E,I){Hi.call(C,I)?C[I].push(E):Gg(C,I,[E])});function cBt(C,E,I,H){C=Gl(C)?C:LS(C),I=I&&!H?Bn(I):0;var ie=C.length;return I<0&&(I=fs(ie+I,0)),wF(C)?I<=ie&&C.indexOf(E,I)>-1:!!ie&&pS(C,E,I)>-1}var uBt=zn(function(C,E,I){var H=-1,ie=typeof E=="function",he=Gl(C)?ze(C.length):[];return m_(C,function(we){he[++H]=ie?Mc(E,we,I):MD(we,E,I)}),he}),dBt=lF(function(C,E,I){Gg(C,I,E)});function _F(C,E){var I=Rn(C)?Ar:gke;return I(C,on(E,3))}function hBt(C,E,I,H){return C==null?[]:(Rn(E)||(E=E==null?[]:[E]),I=H?t:I,Rn(I)||(I=I==null?[]:[I]),vke(C,E,I))}var fBt=lF(function(C,E,I){C[I?0:1].push(E)},function(){return[[],[]]});function gBt(C,E,I){var H=Rn(C)?YY:VEe,ie=arguments.length<3;return H(C,on(E,4),I,ie,m_)}function pBt(C,E,I){var H=Rn(C)?LFt:VEe,ie=arguments.length<3;return H(C,on(E,4),I,ie,ake)}function mBt(C,E){var I=Rn(C)?h_:lke;return I(C,yF(on(E,3)))}function _Bt(C){var E=Rn(C)?ike:c8t;return E(C)}function vBt(C,E,I){(I?dl(C,E,I):E===t)?E=1:E=Bn(E);var H=Rn(C)?W3t:u8t;return H(C,E)}function bBt(C){var E=Rn(C)?H3t:h8t;return E(C)}function yBt(C){if(C==null)return 0;if(Gl(C))return wF(C)?_S(C):C.length;var E=Ra(C);return E==_t||E==Se?C.size:gZ(C).length}function CBt(C,E,I){var H=Rn(C)?ZY:f8t;return I&&dl(C,E,I)&&(E=t),H(C,on(E,3))}var wBt=zn(function(C,E){if(C==null)return[];var I=E.length;return I>1&&dl(C,E[0],E[1])?E=[]:I>2&&dl(E[0],E[1],E[2])&&(E=[E[0]]),vke(C,ta(E,1),[])}),vF=n3t||function(){return fr.Date.now()};function SBt(C,E){if(typeof E!="function")throw new Eu(s);return C=Bn(C),function(){if(--C<1)return E.apply(this,arguments)}}function hLe(C,E,I){return E=I?t:E,E=C&&E==null?C.length:E,Yg(C,S,t,t,t,t,E)}function fLe(C,E){var I;if(typeof E!="function")throw new Eu(s);return C=Bn(C),function(){return--C>0&&(I=E.apply(this,arguments)),C<=1&&(E=t),I}}var BZ=zn(function(C,E,I){var H=m;if(I.length){var ie=g_(I,ES(BZ));H|=w}return Yg(C,H,E,I,ie)}),gLe=zn(function(C,E,I){var H=m|v;if(I.length){var ie=g_(I,ES(gLe));H|=w}return Yg(E,H,C,I,ie)});function pLe(C,E,I){E=I?t:E;var H=Yg(C,y,t,t,t,t,t,E);return H.placeholder=pLe.placeholder,H}function mLe(C,E,I){E=I?t:E;var H=Yg(C,b,t,t,t,t,t,E);return H.placeholder=mLe.placeholder,H}function _Le(C,E,I){var H,ie,he,we,Le,Ae,rt=0,st=!1,ut=!1,Rt=!0;if(typeof C!="function")throw new Eu(s);E=Iu(E)||0,qr(I)&&(st=!!I.leading,ut="maxWait"in I,he=ut?fs(Iu(I.maxWait)||0,E):he,Rt="trailing"in I?!!I.trailing:Rt);function Gt(To){var Nd=H,ep=ie;return H=ie=t,rt=To,we=C.apply(ep,Nd),we}function cn(To){return rt=To,Le=HD(Jn,E),st?Gt(To):we}function Wn(To){var Nd=To-Ae,ep=To-rt,MLe=E-Nd;return ut?Ia(MLe,he-ep):MLe}function un(To){var Nd=To-Ae,ep=To-rt;return Ae===t||Nd>=E||Nd<0||ut&&ep>=he}function Jn(){var To=vF();if(un(To))return si(To);Le=HD(Jn,Wn(To))}function si(To){return Le=t,Rt&&H?Gt(To):(H=ie=t,we)}function Wc(){Le!==t&&Lke(Le),rt=0,H=Ae=ie=Le=t}function hl(){return Le===t?we:si(vF())}function Hc(){var To=vF(),Nd=un(To);if(H=arguments,ie=this,Ae=To,Nd){if(Le===t)return cn(Ae);if(ut)return Lke(Le),Le=HD(Jn,E),Gt(Ae)}return Le===t&&(Le=HD(Jn,E)),we}return Hc.cancel=Wc,Hc.flush=hl,Hc}var xBt=zn(function(C,E){return ske(C,1,E)}),EBt=zn(function(C,E,I){return ske(C,Iu(E)||0,I)});function kBt(C){return Yg(C,T)}function bF(C,E){if(typeof C!="function"||E!=null&&typeof E!="function")throw new Eu(s);var I=function(){var H=arguments,ie=E?E.apply(this,H):H[0],he=I.cache;if(he.has(ie))return he.get(ie);var we=C.apply(this,H);return I.cache=he.set(ie,we)||he,we};return I.cache=new(bF.Cache||Kg),I}bF.Cache=Kg;function yF(C){if(typeof C!="function")throw new Eu(s);return function(){var E=arguments;switch(E.length){case 0:return!C.call(this);case 1:return!C.call(this,E[0]);case 2:return!C.call(this,E[0],E[1]);case 3:return!C.call(this,E[0],E[1],E[2])}return!C.apply(this,E)}}function LBt(C){return fLe(2,C)}var TBt=g8t(function(C,E){E=E.length==1&&Rn(E[0])?Ar(E[0],Fc(on())):Ar(ta(E,1),Fc(on()));var I=E.length;return zn(function(H){for(var ie=-1,he=Ia(H.length,I);++ie<he;)H[ie]=E[ie].call(this,H[ie]);return Mc(C,this,H)})}),$Z=zn(function(C,E){var I=g_(E,ES($Z));return Yg(C,w,t,E,I)}),vLe=zn(function(C,E){var I=g_(E,ES(vLe));return Yg(C,x,t,E,I)}),DBt=Zg(function(C,E){return Yg(C,k,t,t,t,E)});function IBt(C,E){if(typeof C!="function")throw new Eu(s);return E=E===t?E:Bn(E),zn(C,E)}function RBt(C,E){if(typeof C!="function")throw new Eu(s);return E=E==null?0:fs(Bn(E),0),zn(function(I){var H=I[E],ie=b_(I,0,E);return H&&f_(ie,H),Mc(C,this,ie)})}function NBt(C,E,I){var H=!0,ie=!0;if(typeof C!="function")throw new Eu(s);return qr(I)&&(H="leading"in I?!!I.leading:H,ie="trailing"in I?!!I.trailing:ie),_Le(C,E,{leading:H,maxWait:E,trailing:ie})}function ABt(C){return hLe(C,1)}function OBt(C,E){return $Z(SZ(E),C)}function PBt(){if(!arguments.length)return[];var C=arguments[0];return Rn(C)?C:[C]}function MBt(C){return Lu(C,f)}function FBt(C,E){return E=typeof E=="function"?E:t,Lu(C,f,E)}function BBt(C){return Lu(C,d|f)}function $Bt(C,E){return E=typeof E=="function"?E:t,Lu(C,d|f,E)}function WBt(C,E){return E==null||oke(C,E,As(E))}function Rd(C,E){return C===E||C!==C&&E!==E}var HBt=hF(dZ),VBt=hF(function(C,E){return C>=E}),Wb=dke(function(){return arguments}())?dke:function(C){return mo(C)&&Hi.call(C,"callee")&&!XEe.call(C,"callee")},Rn=ze.isArray,zBt=df?Fc(df):X3t;function Gl(C){return C!=null&&CF(C.length)&&!Qg(C)}function Lo(C){return mo(C)&&Gl(C)}function UBt(C){return C===!0||C===!1||mo(C)&&ul(C)==se}var y_=r3t||ZZ,jBt=B5?Fc(B5):Q3t;function qBt(C){return mo(C)&&C.nodeType===1&&!VD(C)}function KBt(C){if(C==null)return!0;if(Gl(C)&&(Rn(C)||typeof C=="string"||typeof C.splice=="function"||y_(C)||kS(C)||Wb(C)))return!C.length;var E=Ra(C);if(E==_t||E==Se)return!C.size;if(WD(C))return!gZ(C).length;for(var I in C)if(Hi.call(C,I))return!1;return!0}function GBt(C,E){return FD(C,E)}function YBt(C,E,I){I=typeof I=="function"?I:t;var H=I?I(C,E):t;return H===t?FD(C,E,t,I):!!H}function WZ(C){if(!mo(C))return!1;var E=ul(C);return E==pe||E==Ne||typeof C.message=="string"&&typeof C.name=="string"&&!VD(C)}function ZBt(C){return typeof C=="number"&&JEe(C)}function Qg(C){if(!qr(C))return!1;var E=ul(C);return E==Me||E==at||E==K||E==G}function bLe(C){return typeof C=="number"&&C==Bn(C)}function CF(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=M}function qr(C){var E=typeof C;return C!=null&&(E=="object"||E=="function")}function mo(C){return C!=null&&typeof C=="object"}var yLe=OEe?Fc(OEe):e8t;function XBt(C,E){return C===E||fZ(C,E,IZ(E))}function QBt(C,E,I){return I=typeof I=="function"?I:t,fZ(C,E,IZ(E),I)}function JBt(C){return CLe(C)&&C!=+C}function e9t(C){if(F8t(C))throw new Tn(o);return hke(C)}function t9t(C){return C===null}function n9t(C){return C==null}function CLe(C){return typeof C=="number"||mo(C)&&ul(C)==qe}function VD(C){if(!mo(C)||ul(C)!=ve)return!1;var E=G5(C);if(E===null)return!0;var I=Hi.call(E,"constructor")&&E.constructor;return typeof I=="function"&&I instanceof I&&U5.call(I)==QFt}var HZ=PEe?Fc(PEe):t8t;function i9t(C){return bLe(C)&&C>=-M&&C<=M}var wLe=MEe?Fc(MEe):n8t;function wF(C){return typeof C=="string"||!Rn(C)&&mo(C)&&ul(C)==Ee}function $c(C){return typeof C=="symbol"||mo(C)&&ul(C)==Ce}var kS=FEe?Fc(FEe):i8t;function r9t(C){return C===t}function o9t(C){return mo(C)&&Ra(C)==We}function s9t(C){return mo(C)&&ul(C)==ht}var a9t=hF(pZ),l9t=hF(function(C,E){return C<=E});function SLe(C){if(!C)return[];if(Gl(C))return wF(C)?Dd(C):Kl(C);if(DD&&C[DD])return WFt(C[DD]());var E=Ra(C),I=E==_t?nZ:E==Se?H5:LS;return I(C)}function Jg(C){if(!C)return C===0?C:0;if(C=Iu(C),C===F||C===-F){var E=C<0?-1:1;return E*W}return C===C?C:0}function Bn(C){var E=Jg(C),I=E%1;return E===E?I?E-I:E:0}function xLe(C){return C?Mb(Bn(C),0,$):0}function Iu(C){if(typeof C=="number")return C;if($c(C))return j;if(qr(C)){var E=typeof C.valueOf=="function"?C.valueOf():C;C=qr(E)?E+"":E}if(typeof C!="string")return C===0?C:+C;C=zEe(C);var I=Xi.test(C);return I||go.test(C)?jg(C.slice(2),I?2:8):xt.test(C)?j:+C}function ELe(C){return ff(C,Yl(C))}function c9t(C){return C?Mb(Bn(C),-M,M):C===0?C:0}function Mi(C){return C==null?"":Bc(C)}var u9t=SS(function(C,E){if(WD(E)||Gl(E)){ff(E,As(E),C);return}for(var I in E)Hi.call(E,I)&&OD(C,I,E[I])}),kLe=SS(function(C,E){ff(E,Yl(E),C)}),SF=SS(function(C,E,I,H){ff(E,Yl(E),C,H)}),d9t=SS(function(C,E,I,H){ff(E,As(E),C,H)}),h9t=Zg(lZ);function f9t(C,E){var I=wS(C);return E==null?I:rke(I,E)}var g9t=zn(function(C,E){C=ir(C);var I=-1,H=E.length,ie=H>2?E[2]:t;for(ie&&dl(E[0],E[1],ie)&&(H=1);++I<H;)for(var he=E[I],we=Yl(he),Le=-1,Ae=we.length;++Le<Ae;){var rt=we[Le],st=C[rt];(st===t||Rd(st,bS[rt])&&!Hi.call(C,rt))&&(C[rt]=he[rt])}return C}),p9t=zn(function(C){return C.push(t,zke),Mc(LLe,t,C)});function m9t(C,E){return $Ee(C,on(E,3),hf)}function _9t(C,E){return $Ee(C,on(E,3),uZ)}function v9t(C,E){return C==null?C:cZ(C,on(E,3),Yl)}function b9t(C,E){return C==null?C:cke(C,on(E,3),Yl)}function y9t(C,E){return C&&hf(C,on(E,3))}function C9t(C,E){return C&&uZ(C,on(E,3))}function w9t(C){return C==null?[]:rF(C,As(C))}function S9t(C){return C==null?[]:rF(C,Yl(C))}function VZ(C,E,I){var H=C==null?t:Fb(C,E);return H===t?I:H}function x9t(C,E){return C!=null&&qke(C,E,K3t)}function zZ(C,E){return C!=null&&qke(C,E,G3t)}var E9t=Bke(function(C,E,I){E!=null&&typeof E.toString!="function"&&(E=j5.call(E)),C[E]=I},jZ(Zl)),k9t=Bke(function(C,E,I){E!=null&&typeof E.toString!="function"&&(E=j5.call(E)),Hi.call(C,E)?C[E].push(I):C[E]=[I]},on),L9t=zn(MD);function As(C){return Gl(C)?nke(C):gZ(C)}function Yl(C){return Gl(C)?nke(C,!0):r8t(C)}function T9t(C,E){var I={};return E=on(E,3),hf(C,function(H,ie,he){Gg(I,E(H,ie,he),H)}),I}function D9t(C,E){var I={};return E=on(E,3),hf(C,function(H,ie,he){Gg(I,ie,E(H,ie,he))}),I}var I9t=SS(function(C,E,I){oF(C,E,I)}),LLe=SS(function(C,E,I,H){oF(C,E,I,H)}),R9t=Zg(function(C,E){var I={};if(C==null)return I;var H=!1;E=Ar(E,function(he){return he=v_(he,C),H||(H=he.length>1),he}),ff(C,TZ(C),I),H&&(I=Lu(I,d|h|f,E8t));for(var ie=E.length;ie--;)yZ(I,E[ie]);return I});function N9t(C,E){return TLe(C,yF(on(E)))}var A9t=Zg(function(C,E){return C==null?{}:s8t(C,E)});function TLe(C,E){if(C==null)return{};var I=Ar(TZ(C),function(H){return[H]});return E=on(E),bke(C,I,function(H,ie){return E(H,ie[0])})}function O9t(C,E,I){E=v_(E,C);var H=-1,ie=E.length;for(ie||(ie=1,C=t);++H<ie;){var he=C==null?t:C[gf(E[H])];he===t&&(H=ie,he=I),C=Qg(he)?he.call(C):he}return C}function P9t(C,E,I){return C==null?C:BD(C,E,I)}function M9t(C,E,I,H){return H=typeof H=="function"?H:t,C==null?C:BD(C,E,I,H)}var DLe=Hke(As),ILe=Hke(Yl);function F9t(C,E,I){var H=Rn(C),ie=H||y_(C)||kS(C);if(E=on(E,4),I==null){var he=C&&C.constructor;ie?I=H?new he:[]:qr(C)?I=Qg(he)?wS(G5(C)):{}:I={}}return(ie?xu:hf)(C,function(we,Le,Ae){return E(I,we,Le,Ae)}),I}function B9t(C,E){return C==null?!0:yZ(C,E)}function $9t(C,E,I){return C==null?C:xke(C,E,SZ(I))}function W9t(C,E,I,H){return H=typeof H=="function"?H:t,C==null?C:xke(C,E,SZ(I),H)}function LS(C){return C==null?[]:tZ(C,As(C))}function H9t(C){return C==null?[]:tZ(C,Yl(C))}function V9t(C,E,I){return I===t&&(I=E,E=t),I!==t&&(I=Iu(I),I=I===I?I:0),E!==t&&(E=Iu(E),E=E===E?E:0),Mb(Iu(C),E,I)}function z9t(C,E,I){return E=Jg(E),I===t?(I=E,E=0):I=Jg(I),C=Iu(C),Y3t(C,E,I)}function U9t(C,E,I){if(I&&typeof I!="boolean"&&dl(C,E,I)&&(E=I=t),I===t&&(typeof E=="boolean"?(I=E,E=t):typeof C=="boolean"&&(I=C,C=t)),C===t&&E===t?(C=0,E=1):(C=Jg(C),E===t?(E=C,C=0):E=Jg(E)),C>E){var H=C;C=E,E=H}if(I||C%1||E%1){var ie=eke();return Ia(C+ie*(E-C+Pc("1e-"+((ie+"").length-1))),E)}return _Z(C,E)}var j9t=xS(function(C,E,I){return E=E.toLowerCase(),C+(I?RLe(E):E)});function RLe(C){return UZ(Mi(C).toLowerCase())}function NLe(C){return C=Mi(C),C&&C.replace(Nr,PFt).replace(wu,"")}function q9t(C,E,I){C=Mi(C),E=Bc(E);var H=C.length;I=I===t?H:Mb(Bn(I),0,H);var ie=I;return I-=E.length,I>=0&&C.slice(I,ie)==E}function K9t(C){return C=Mi(C),C&&La.test(C)?C.replace(Rr,MFt):C}function G9t(C){return C=Mi(C),C&&re.test(C)?C.replace(Z,"\\$&"):C}var Y9t=xS(function(C,E,I){return C+(I?"-":"")+E.toLowerCase()}),Z9t=xS(function(C,E,I){return C+(I?" ":"")+E.toLowerCase()}),X9t=Pke("toLowerCase");function Q9t(C,E,I){C=Mi(C),E=Bn(E);var H=E?_S(C):0;if(!E||H>=E)return C;var ie=(E-H)/2;return dF(Q5(ie),I)+C+dF(X5(ie),I)}function J9t(C,E,I){C=Mi(C),E=Bn(E);var H=E?_S(C):0;return E&&H<E?C+dF(E-H,I):C}function e7t(C,E,I){C=Mi(C),E=Bn(E);var H=E?_S(C):0;return E&&H<E?dF(E-H,I)+C:C}function t7t(C,E,I){return I||E==null?E=0:E&&(E=+E),l3t(Mi(C).replace(ce,""),E||0)}function n7t(C,E,I){return(I?dl(C,E,I):E===t)?E=1:E=Bn(E),vZ(Mi(C),E)}function i7t(){var C=arguments,E=Mi(C[0]);return C.length<3?E:E.replace(C[1],C[2])}var r7t=xS(function(C,E,I){return C+(I?"_":"")+E.toLowerCase()});function o7t(C,E,I){return I&&typeof I!="number"&&dl(C,E,I)&&(E=I=t),I=I===t?$:I>>>0,I?(C=Mi(C),C&&(typeof E=="string"||E!=null&&!HZ(E))&&(E=Bc(E),!E&&mS(C))?b_(Dd(C),0,I):C.split(E,I)):[]}var s7t=xS(function(C,E,I){return C+(I?" ":"")+UZ(E)});function a7t(C,E,I){return C=Mi(C),I=I==null?0:Mb(Bn(I),0,C.length),E=Bc(E),C.slice(I,I+E.length)==E}function l7t(C,E,I){var H=ae.templateSettings;I&&dl(C,E,I)&&(E=t),C=Mi(C),E=SF({},E,H,Vke);var ie=SF({},E.imports,H.imports,Vke),he=As(ie),we=tZ(ie,he),Le,Ae,rt=0,st=E.interpolate||sl,ut="__p += '",Rt=iZ((E.escape||sl).source+"|"+st.source+"|"+(st===Zo?Nt:sl).source+"|"+(E.evaluate||sl).source+"|$","g"),Gt="//# sourceURL="+(Hi.call(E,"sourceURL")?(E.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rb+"]")+`
|
|
43
|
+
`)}function O8t(C){return Rn(C)||Wb(C)||!!(QEe&&C&&C[QEe])}function Xg(C,E){var I=typeof C;return E=E==null?M:E,!!E&&(I=="number"||I!="symbol"&&Ac.test(C))&&C>-1&&C%1==0&&C<E}function dl(C,E,I){if(!qr(I))return!1;var H=typeof E;return(H=="number"?Gl(I)&&Xg(E,I.length):H=="string"&&E in I)?Rd(I[E],C):!1}function NZ(C,E){if(Rn(C))return!1;var I=typeof C;return I=="number"||I=="symbol"||I=="boolean"||C==null||$c(C)?!0:q.test(C)||!z.test(C)||E!=null&&C in ir(E)}function P8t(C){var E=typeof C;return E=="string"||E=="number"||E=="symbol"||E=="boolean"?C!=="__proto__":C===null}function AZ(C){var E=fF(C),I=ae[E];if(typeof I!="function"||!(E in ni.prototype))return!1;if(C===I)return!0;var H=DZ(I);return!!H&&C===H[0]}function M8t(C){return!!GEe&&GEe in C}var F8t=z5?Qg:ZZ;function WD(C){var E=C&&C.constructor,I=typeof E=="function"&&E.prototype||bS;return C===I}function Gke(C){return C===C&&!qr(C)}function Yke(C,E){return function(I){return I==null?!1:I[C]===E&&(E!==t||C in ir(I))}}function B8t(C){var E=bF(C,function(H){return I.size===c&&I.clear(),H}),I=E.cache;return E}function $8t(C,E){var I=C[1],H=E[1],ie=I|H,he=ie<(m|v|S),we=H==S&&I==y||H==S&&I==k&&C[7].length<=E[8]||H==(S|k)&&E[7].length<=E[8]&&I==y;if(!(he||we))return C;H&m&&(C[2]=E[2],ie|=I&m?0:_);var Le=E[3];if(Le){var Ae=C[3];C[3]=Ae?Rke(Ae,Le,E[4]):Le,C[4]=Ae?g_(C[3],u):E[4]}return Le=E[5],Le&&(Ae=C[5],C[5]=Ae?Nke(Ae,Le,E[6]):Le,C[6]=Ae?g_(C[5],u):E[6]),Le=E[7],Le&&(C[7]=Le),H&S&&(C[8]=C[8]==null?E[8]:Ia(C[8],E[8])),C[9]==null&&(C[9]=E[9]),C[0]=E[0],C[1]=ie,C}function W8t(C){var E=[];if(C!=null)for(var I in ir(C))E.push(I);return E}function H8t(C){return j5.call(C)}function Zke(C,E,I){return E=fs(E===t?C.length-1:E,0),function(){for(var H=arguments,ie=-1,he=fs(H.length-E,0),we=ze(he);++ie<he;)we[ie]=H[E+ie];ie=-1;for(var Le=ze(E+1);++ie<E;)Le[ie]=H[ie];return Le[E]=I(we),Mc(C,this,Le)}}function Xke(C,E){return E.length<2?C:Fb(C,Tu(E,0,-1))}function V8t(C,E){for(var I=C.length,H=Ia(E.length,I),ie=Kl(C);H--;){var he=E[H];C[H]=Xg(he,I)?ie[he]:t}return C}function OZ(C,E){if(!(E==="constructor"&&typeof C[E]=="function")&&E!="__proto__")return C[E]}var Qke=eLe(Cke),HD=i3t||function(C,E){return fr.setTimeout(C,E)},PZ=eLe(d8t);function Jke(C,E,I){var H=E+"";return PZ(C,A8t(H,z8t(I8t(H),I)))}function eLe(C){var E=0,I=0;return function(){var H=a3t(),ie=A-(H-I);if(I=H,ie>0){if(++E>=N)return arguments[0]}else E=0;return C.apply(t,arguments)}}function pF(C,E){var I=-1,H=C.length,ie=H-1;for(E=E===t?H:E;++I<E;){var he=_Z(I,ie),we=C[he];C[he]=C[I],C[I]=we}return C.length=E,C}var tLe=B8t(function(C){var E=[];return C.charCodeAt(0)===46&&E.push(""),C.replace(le,function(I,H,ie,he){E.push(ie?he.replace(wt,"$1"):H||I)}),E});function gf(C){if(typeof C=="string"||$c(C))return C;var E=C+"";return E=="0"&&1/C==-F?"-0":E}function $b(C){if(C!=null){try{return U5.call(C)}catch{}try{return C+""}catch{}}return""}function z8t(C,E){return xu(ge,function(I){var H="_."+I[0];E&I[1]&&!$5(C,H)&&C.push(H)}),C.sort()}function nLe(C){if(C instanceof ni)return C.clone();var E=new ku(C.__wrapped__,C.__chain__);return E.__actions__=Kl(C.__actions__),E.__index__=C.__index__,E.__values__=C.__values__,E}function U8t(C,E,I){(I?dl(C,E,I):E===t)?E=1:E=fs(Bn(E),0);var H=C==null?0:C.length;if(!H||E<1)return[];for(var ie=0,he=0,we=ze(X5(H/E));ie<H;)we[he++]=Tu(C,ie,ie+=E);return we}function j8t(C){for(var E=-1,I=C==null?0:C.length,H=0,ie=[];++E<I;){var he=C[E];he&&(ie[H++]=he)}return ie}function q8t(){var C=arguments.length;if(!C)return[];for(var E=ze(C-1),I=arguments[0],H=C;H--;)E[H-1]=arguments[H];return f_(Rn(I)?Kl(I):[I],ta(E,1))}var K8t=zn(function(C,E){return Lo(C)?PD(C,ta(E,1,Lo,!0)):[]}),G8t=zn(function(C,E){var I=Du(E);return Lo(I)&&(I=t),Lo(C)?PD(C,ta(E,1,Lo,!0),on(I,2)):[]}),Y8t=zn(function(C,E){var I=Du(E);return Lo(I)&&(I=t),Lo(C)?PD(C,ta(E,1,Lo,!0),t,I):[]});function Z8t(C,E,I){var H=C==null?0:C.length;return H?(E=I||E===t?1:Bn(E),Tu(C,E<0?0:E,H)):[]}function X8t(C,E,I){var H=C==null?0:C.length;return H?(E=I||E===t?1:Bn(E),E=H-E,Tu(C,0,E<0?0:E)):[]}function Q8t(C,E){return C&&C.length?aF(C,on(E,3),!0,!0):[]}function J8t(C,E){return C&&C.length?aF(C,on(E,3),!0):[]}function e6t(C,E,I,H){var ie=C==null?0:C.length;return ie?(I&&typeof I!="number"&&dl(C,E,I)&&(I=0,H=ie),q3t(C,E,I,H)):[]}function iLe(C,E,I){var H=C==null?0:C.length;if(!H)return-1;var ie=I==null?0:Bn(I);return ie<0&&(ie=fs(H+ie,0)),W5(C,on(E,3),ie)}function rLe(C,E,I){var H=C==null?0:C.length;if(!H)return-1;var ie=H-1;return I!==t&&(ie=Bn(I),ie=I<0?fs(H+ie,0):Ia(ie,H-1)),W5(C,on(E,3),ie,!0)}function oLe(C){var E=C==null?0:C.length;return E?ta(C,1):[]}function t6t(C){var E=C==null?0:C.length;return E?ta(C,F):[]}function n6t(C,E){var I=C==null?0:C.length;return I?(E=E===t?1:Bn(E),ta(C,E)):[]}function i6t(C){for(var E=-1,I=C==null?0:C.length,H={};++E<I;){var ie=C[E];H[ie[0]]=ie[1]}return H}function sLe(C){return C&&C.length?C[0]:t}function r6t(C,E,I){var H=C==null?0:C.length;if(!H)return-1;var ie=I==null?0:Bn(I);return ie<0&&(ie=fs(H+ie,0)),pS(C,E,ie)}function o6t(C){var E=C==null?0:C.length;return E?Tu(C,0,-1):[]}var s6t=zn(function(C){var E=Ar(C,wZ);return E.length&&E[0]===C[0]?hZ(E):[]}),a6t=zn(function(C){var E=Du(C),I=Ar(C,wZ);return E===Du(I)?E=t:I.pop(),I.length&&I[0]===C[0]?hZ(I,on(E,2)):[]}),l6t=zn(function(C){var E=Du(C),I=Ar(C,wZ);return E=typeof E=="function"?E:t,E&&I.pop(),I.length&&I[0]===C[0]?hZ(I,t,E):[]});function c6t(C,E){return C==null?"":o3t.call(C,E)}function Du(C){var E=C==null?0:C.length;return E?C[E-1]:t}function u6t(C,E,I){var H=C==null?0:C.length;if(!H)return-1;var ie=H;return I!==t&&(ie=Bn(I),ie=ie<0?fs(H+ie,0):Ia(ie,H-1)),E===E?zFt(C,E,ie):W5(C,WEe,ie,!0)}function d6t(C,E){return C&&C.length?_ke(C,Bn(E)):t}var h6t=zn(aLe);function aLe(C,E){return C&&C.length&&E&&E.length?mZ(C,E):C}function f6t(C,E,I){return C&&C.length&&E&&E.length?mZ(C,E,on(I,2)):C}function g6t(C,E,I){return C&&C.length&&E&&E.length?mZ(C,E,t,I):C}var p6t=Zg(function(C,E){var I=C==null?0:C.length,H=lZ(C,E);return yke(C,Ar(E,function(ie){return Xg(ie,I)?+ie:ie}).sort(Ike)),H});function m6t(C,E){var I=[];if(!(C&&C.length))return I;var H=-1,ie=[],he=C.length;for(E=on(E,3);++H<he;){var we=C[H];E(we,H,C)&&(I.push(we),ie.push(H))}return yke(C,ie),I}function MZ(C){return C==null?C:c3t.call(C)}function _6t(C,E,I){var H=C==null?0:C.length;return H?(I&&typeof I!="number"&&dl(C,E,I)?(E=0,I=H):(E=E==null?0:Bn(E),I=I===t?H:Bn(I)),Tu(C,E,I)):[]}function v6t(C,E){return sF(C,E)}function b6t(C,E,I){return bZ(C,E,on(I,2))}function y6t(C,E){var I=C==null?0:C.length;if(I){var H=sF(C,E);if(H<I&&Rd(C[H],E))return H}return-1}function C6t(C,E){return sF(C,E,!0)}function w6t(C,E,I){return bZ(C,E,on(I,2),!0)}function S6t(C,E){var I=C==null?0:C.length;if(I){var H=sF(C,E,!0)-1;if(Rd(C[H],E))return H}return-1}function x6t(C){return C&&C.length?wke(C):[]}function E6t(C,E){return C&&C.length?wke(C,on(E,2)):[]}function k6t(C){var E=C==null?0:C.length;return E?Tu(C,1,E):[]}function L6t(C,E,I){return C&&C.length?(E=I||E===t?1:Bn(E),Tu(C,0,E<0?0:E)):[]}function T6t(C,E,I){var H=C==null?0:C.length;return H?(E=I||E===t?1:Bn(E),E=H-E,Tu(C,E<0?0:E,H)):[]}function D6t(C,E){return C&&C.length?aF(C,on(E,3),!1,!0):[]}function I6t(C,E){return C&&C.length?aF(C,on(E,3)):[]}var R6t=zn(function(C){return __(ta(C,1,Lo,!0))}),N6t=zn(function(C){var E=Du(C);return Lo(E)&&(E=t),__(ta(C,1,Lo,!0),on(E,2))}),A6t=zn(function(C){var E=Du(C);return E=typeof E=="function"?E:t,__(ta(C,1,Lo,!0),t,E)});function O6t(C){return C&&C.length?__(C):[]}function P6t(C,E){return C&&C.length?__(C,on(E,2)):[]}function M6t(C,E){return E=typeof E=="function"?E:t,C&&C.length?__(C,t,E):[]}function FZ(C){if(!(C&&C.length))return[];var E=0;return C=h_(C,function(I){if(Lo(I))return E=fs(I.length,E),!0}),eZ(E,function(I){return Ar(C,XY(I))})}function lLe(C,E){if(!(C&&C.length))return[];var I=FZ(C);return E==null?I:Ar(I,function(H){return Mc(E,t,H)})}var F6t=zn(function(C,E){return Lo(C)?PD(C,E):[]}),B6t=zn(function(C){return CZ(h_(C,Lo))}),$6t=zn(function(C){var E=Du(C);return Lo(E)&&(E=t),CZ(h_(C,Lo),on(E,2))}),W6t=zn(function(C){var E=Du(C);return E=typeof E=="function"?E:t,CZ(h_(C,Lo),t,E)}),H6t=zn(FZ);function V6t(C,E){return kke(C||[],E||[],OD)}function z6t(C,E){return kke(C||[],E||[],BD)}var U6t=zn(function(C){var E=C.length,I=E>1?C[E-1]:t;return I=typeof I=="function"?(C.pop(),I):t,lLe(C,I)});function cLe(C){var E=ae(C);return E.__chain__=!0,E}function j6t(C,E){return E(C),C}function mF(C,E){return E(C)}var q6t=Zg(function(C){var E=C.length,I=E?C[0]:0,H=this.__wrapped__,ie=function(he){return lZ(he,C)};return E>1||this.__actions__.length||!(H instanceof ni)||!Xg(I)?this.thru(ie):(H=H.slice(I,+I+(E?1:0)),H.__actions__.push({func:mF,args:[ie],thisArg:t}),new ku(H,this.__chain__).thru(function(he){return E&&!he.length&&he.push(t),he}))});function K6t(){return cLe(this)}function G6t(){return new ku(this.value(),this.__chain__)}function Y6t(){this.__values__===t&&(this.__values__=SLe(this.value()));var C=this.__index__>=this.__values__.length,E=C?t:this.__values__[this.__index__++];return{done:C,value:E}}function Z6t(){return this}function X6t(C){for(var E,I=this;I instanceof tF;){var H=nLe(I);H.__index__=0,H.__values__=t,E?ie.__wrapped__=H:E=H;var ie=H;I=I.__wrapped__}return ie.__wrapped__=C,E}function Q6t(){var C=this.__wrapped__;if(C instanceof ni){var E=C;return this.__actions__.length&&(E=new ni(this)),E=E.reverse(),E.__actions__.push({func:mF,args:[MZ],thisArg:t}),new ku(E,this.__chain__)}return this.thru(MZ)}function J6t(){return Eke(this.__wrapped__,this.__actions__)}var eBt=lF(function(C,E,I){Hi.call(C,I)?++C[I]:Gg(C,I,1)});function tBt(C,E,I){var H=Rn(C)?BEe:j3t;return I&&dl(C,E,I)&&(E=t),H(C,on(E,3))}function nBt(C,E){var I=Rn(C)?h_:lke;return I(C,on(E,3))}var iBt=Mke(iLe),rBt=Mke(rLe);function oBt(C,E){return ta(_F(C,E),1)}function sBt(C,E){return ta(_F(C,E),F)}function aBt(C,E,I){return I=I===t?1:Bn(I),ta(_F(C,E),I)}function uLe(C,E){var I=Rn(C)?xu:m_;return I(C,on(E,3))}function dLe(C,E){var I=Rn(C)?kFt:ake;return I(C,on(E,3))}var lBt=lF(function(C,E,I){Hi.call(C,I)?C[I].push(E):Gg(C,I,[E])});function cBt(C,E,I,H){C=Gl(C)?C:LS(C),I=I&&!H?Bn(I):0;var ie=C.length;return I<0&&(I=fs(ie+I,0)),wF(C)?I<=ie&&C.indexOf(E,I)>-1:!!ie&&pS(C,E,I)>-1}var uBt=zn(function(C,E,I){var H=-1,ie=typeof E=="function",he=Gl(C)?ze(C.length):[];return m_(C,function(we){he[++H]=ie?Mc(E,we,I):MD(we,E,I)}),he}),dBt=lF(function(C,E,I){Gg(C,I,E)});function _F(C,E){var I=Rn(C)?Ar:gke;return I(C,on(E,3))}function hBt(C,E,I,H){return C==null?[]:(Rn(E)||(E=E==null?[]:[E]),I=H?t:I,Rn(I)||(I=I==null?[]:[I]),vke(C,E,I))}var fBt=lF(function(C,E,I){C[I?0:1].push(E)},function(){return[[],[]]});function gBt(C,E,I){var H=Rn(C)?YY:VEe,ie=arguments.length<3;return H(C,on(E,4),I,ie,m_)}function pBt(C,E,I){var H=Rn(C)?LFt:VEe,ie=arguments.length<3;return H(C,on(E,4),I,ie,ake)}function mBt(C,E){var I=Rn(C)?h_:lke;return I(C,yF(on(E,3)))}function _Bt(C){var E=Rn(C)?ike:c8t;return E(C)}function vBt(C,E,I){(I?dl(C,E,I):E===t)?E=1:E=Bn(E);var H=Rn(C)?W3t:u8t;return H(C,E)}function bBt(C){var E=Rn(C)?H3t:h8t;return E(C)}function yBt(C){if(C==null)return 0;if(Gl(C))return wF(C)?_S(C):C.length;var E=Ra(C);return E==_t||E==Se?C.size:gZ(C).length}function CBt(C,E,I){var H=Rn(C)?ZY:f8t;return I&&dl(C,E,I)&&(E=t),H(C,on(E,3))}var wBt=zn(function(C,E){if(C==null)return[];var I=E.length;return I>1&&dl(C,E[0],E[1])?E=[]:I>2&&dl(E[0],E[1],E[2])&&(E=[E[0]]),vke(C,ta(E,1),[])}),vF=n3t||function(){return fr.Date.now()};function SBt(C,E){if(typeof E!="function")throw new Eu(s);return C=Bn(C),function(){if(--C<1)return E.apply(this,arguments)}}function hLe(C,E,I){return E=I?t:E,E=C&&E==null?C.length:E,Yg(C,S,t,t,t,t,E)}function fLe(C,E){var I;if(typeof E!="function")throw new Eu(s);return C=Bn(C),function(){return--C>0&&(I=E.apply(this,arguments)),C<=1&&(E=t),I}}var BZ=zn(function(C,E,I){var H=m;if(I.length){var ie=g_(I,ES(BZ));H|=w}return Yg(C,H,E,I,ie)}),gLe=zn(function(C,E,I){var H=m|v;if(I.length){var ie=g_(I,ES(gLe));H|=w}return Yg(E,H,C,I,ie)});function pLe(C,E,I){E=I?t:E;var H=Yg(C,y,t,t,t,t,t,E);return H.placeholder=pLe.placeholder,H}function mLe(C,E,I){E=I?t:E;var H=Yg(C,b,t,t,t,t,t,E);return H.placeholder=mLe.placeholder,H}function _Le(C,E,I){var H,ie,he,we,Le,Ae,rt=0,ot=!1,ut=!1,Rt=!0;if(typeof C!="function")throw new Eu(s);E=Iu(E)||0,qr(I)&&(ot=!!I.leading,ut="maxWait"in I,he=ut?fs(Iu(I.maxWait)||0,E):he,Rt="trailing"in I?!!I.trailing:Rt);function Gt(To){var Nd=H,ep=ie;return H=ie=t,rt=To,we=C.apply(ep,Nd),we}function cn(To){return rt=To,Le=HD(Jn,E),ot?Gt(To):we}function Wn(To){var Nd=To-Ae,ep=To-rt,MLe=E-Nd;return ut?Ia(MLe,he-ep):MLe}function un(To){var Nd=To-Ae,ep=To-rt;return Ae===t||Nd>=E||Nd<0||ut&&ep>=he}function Jn(){var To=vF();if(un(To))return si(To);Le=HD(Jn,Wn(To))}function si(To){return Le=t,Rt&&H?Gt(To):(H=ie=t,we)}function Wc(){Le!==t&&Lke(Le),rt=0,H=Ae=ie=Le=t}function hl(){return Le===t?we:si(vF())}function Hc(){var To=vF(),Nd=un(To);if(H=arguments,ie=this,Ae=To,Nd){if(Le===t)return cn(Ae);if(ut)return Lke(Le),Le=HD(Jn,E),Gt(Ae)}return Le===t&&(Le=HD(Jn,E)),we}return Hc.cancel=Wc,Hc.flush=hl,Hc}var xBt=zn(function(C,E){return ske(C,1,E)}),EBt=zn(function(C,E,I){return ske(C,Iu(E)||0,I)});function kBt(C){return Yg(C,T)}function bF(C,E){if(typeof C!="function"||E!=null&&typeof E!="function")throw new Eu(s);var I=function(){var H=arguments,ie=E?E.apply(this,H):H[0],he=I.cache;if(he.has(ie))return he.get(ie);var we=C.apply(this,H);return I.cache=he.set(ie,we)||he,we};return I.cache=new(bF.Cache||Kg),I}bF.Cache=Kg;function yF(C){if(typeof C!="function")throw new Eu(s);return function(){var E=arguments;switch(E.length){case 0:return!C.call(this);case 1:return!C.call(this,E[0]);case 2:return!C.call(this,E[0],E[1]);case 3:return!C.call(this,E[0],E[1],E[2])}return!C.apply(this,E)}}function LBt(C){return fLe(2,C)}var TBt=g8t(function(C,E){E=E.length==1&&Rn(E[0])?Ar(E[0],Fc(on())):Ar(ta(E,1),Fc(on()));var I=E.length;return zn(function(H){for(var ie=-1,he=Ia(H.length,I);++ie<he;)H[ie]=E[ie].call(this,H[ie]);return Mc(C,this,H)})}),$Z=zn(function(C,E){var I=g_(E,ES($Z));return Yg(C,w,t,E,I)}),vLe=zn(function(C,E){var I=g_(E,ES(vLe));return Yg(C,x,t,E,I)}),DBt=Zg(function(C,E){return Yg(C,k,t,t,t,E)});function IBt(C,E){if(typeof C!="function")throw new Eu(s);return E=E===t?E:Bn(E),zn(C,E)}function RBt(C,E){if(typeof C!="function")throw new Eu(s);return E=E==null?0:fs(Bn(E),0),zn(function(I){var H=I[E],ie=b_(I,0,E);return H&&f_(ie,H),Mc(C,this,ie)})}function NBt(C,E,I){var H=!0,ie=!0;if(typeof C!="function")throw new Eu(s);return qr(I)&&(H="leading"in I?!!I.leading:H,ie="trailing"in I?!!I.trailing:ie),_Le(C,E,{leading:H,maxWait:E,trailing:ie})}function ABt(C){return hLe(C,1)}function OBt(C,E){return $Z(SZ(E),C)}function PBt(){if(!arguments.length)return[];var C=arguments[0];return Rn(C)?C:[C]}function MBt(C){return Lu(C,f)}function FBt(C,E){return E=typeof E=="function"?E:t,Lu(C,f,E)}function BBt(C){return Lu(C,d|f)}function $Bt(C,E){return E=typeof E=="function"?E:t,Lu(C,d|f,E)}function WBt(C,E){return E==null||oke(C,E,As(E))}function Rd(C,E){return C===E||C!==C&&E!==E}var HBt=hF(dZ),VBt=hF(function(C,E){return C>=E}),Wb=dke(function(){return arguments}())?dke:function(C){return mo(C)&&Hi.call(C,"callee")&&!XEe.call(C,"callee")},Rn=ze.isArray,zBt=df?Fc(df):X3t;function Gl(C){return C!=null&&CF(C.length)&&!Qg(C)}function Lo(C){return mo(C)&&Gl(C)}function UBt(C){return C===!0||C===!1||mo(C)&&ul(C)==se}var y_=r3t||ZZ,jBt=B5?Fc(B5):Q3t;function qBt(C){return mo(C)&&C.nodeType===1&&!VD(C)}function KBt(C){if(C==null)return!0;if(Gl(C)&&(Rn(C)||typeof C=="string"||typeof C.splice=="function"||y_(C)||kS(C)||Wb(C)))return!C.length;var E=Ra(C);if(E==_t||E==Se)return!C.size;if(WD(C))return!gZ(C).length;for(var I in C)if(Hi.call(C,I))return!1;return!0}function GBt(C,E){return FD(C,E)}function YBt(C,E,I){I=typeof I=="function"?I:t;var H=I?I(C,E):t;return H===t?FD(C,E,t,I):!!H}function WZ(C){if(!mo(C))return!1;var E=ul(C);return E==pe||E==Ne||typeof C.message=="string"&&typeof C.name=="string"&&!VD(C)}function ZBt(C){return typeof C=="number"&&JEe(C)}function Qg(C){if(!qr(C))return!1;var E=ul(C);return E==Me||E==at||E==K||E==G}function bLe(C){return typeof C=="number"&&C==Bn(C)}function CF(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=M}function qr(C){var E=typeof C;return C!=null&&(E=="object"||E=="function")}function mo(C){return C!=null&&typeof C=="object"}var yLe=OEe?Fc(OEe):e8t;function XBt(C,E){return C===E||fZ(C,E,IZ(E))}function QBt(C,E,I){return I=typeof I=="function"?I:t,fZ(C,E,IZ(E),I)}function JBt(C){return CLe(C)&&C!=+C}function e9t(C){if(F8t(C))throw new Tn(o);return hke(C)}function t9t(C){return C===null}function n9t(C){return C==null}function CLe(C){return typeof C=="number"||mo(C)&&ul(C)==qe}function VD(C){if(!mo(C)||ul(C)!=ve)return!1;var E=G5(C);if(E===null)return!0;var I=Hi.call(E,"constructor")&&E.constructor;return typeof I=="function"&&I instanceof I&&U5.call(I)==QFt}var HZ=PEe?Fc(PEe):t8t;function i9t(C){return bLe(C)&&C>=-M&&C<=M}var wLe=MEe?Fc(MEe):n8t;function wF(C){return typeof C=="string"||!Rn(C)&&mo(C)&&ul(C)==Ee}function $c(C){return typeof C=="symbol"||mo(C)&&ul(C)==Ce}var kS=FEe?Fc(FEe):i8t;function r9t(C){return C===t}function o9t(C){return mo(C)&&Ra(C)==We}function s9t(C){return mo(C)&&ul(C)==ht}var a9t=hF(pZ),l9t=hF(function(C,E){return C<=E});function SLe(C){if(!C)return[];if(Gl(C))return wF(C)?Dd(C):Kl(C);if(DD&&C[DD])return WFt(C[DD]());var E=Ra(C),I=E==_t?nZ:E==Se?H5:LS;return I(C)}function Jg(C){if(!C)return C===0?C:0;if(C=Iu(C),C===F||C===-F){var E=C<0?-1:1;return E*W}return C===C?C:0}function Bn(C){var E=Jg(C),I=E%1;return E===E?I?E-I:E:0}function xLe(C){return C?Mb(Bn(C),0,$):0}function Iu(C){if(typeof C=="number")return C;if($c(C))return j;if(qr(C)){var E=typeof C.valueOf=="function"?C.valueOf():C;C=qr(E)?E+"":E}if(typeof C!="string")return C===0?C:+C;C=zEe(C);var I=Xi.test(C);return I||go.test(C)?jg(C.slice(2),I?2:8):xt.test(C)?j:+C}function ELe(C){return ff(C,Yl(C))}function c9t(C){return C?Mb(Bn(C),-M,M):C===0?C:0}function Mi(C){return C==null?"":Bc(C)}var u9t=SS(function(C,E){if(WD(E)||Gl(E)){ff(E,As(E),C);return}for(var I in E)Hi.call(E,I)&&OD(C,I,E[I])}),kLe=SS(function(C,E){ff(E,Yl(E),C)}),SF=SS(function(C,E,I,H){ff(E,Yl(E),C,H)}),d9t=SS(function(C,E,I,H){ff(E,As(E),C,H)}),h9t=Zg(lZ);function f9t(C,E){var I=wS(C);return E==null?I:rke(I,E)}var g9t=zn(function(C,E){C=ir(C);var I=-1,H=E.length,ie=H>2?E[2]:t;for(ie&&dl(E[0],E[1],ie)&&(H=1);++I<H;)for(var he=E[I],we=Yl(he),Le=-1,Ae=we.length;++Le<Ae;){var rt=we[Le],ot=C[rt];(ot===t||Rd(ot,bS[rt])&&!Hi.call(C,rt))&&(C[rt]=he[rt])}return C}),p9t=zn(function(C){return C.push(t,zke),Mc(LLe,t,C)});function m9t(C,E){return $Ee(C,on(E,3),hf)}function _9t(C,E){return $Ee(C,on(E,3),uZ)}function v9t(C,E){return C==null?C:cZ(C,on(E,3),Yl)}function b9t(C,E){return C==null?C:cke(C,on(E,3),Yl)}function y9t(C,E){return C&&hf(C,on(E,3))}function C9t(C,E){return C&&uZ(C,on(E,3))}function w9t(C){return C==null?[]:rF(C,As(C))}function S9t(C){return C==null?[]:rF(C,Yl(C))}function VZ(C,E,I){var H=C==null?t:Fb(C,E);return H===t?I:H}function x9t(C,E){return C!=null&&qke(C,E,K3t)}function zZ(C,E){return C!=null&&qke(C,E,G3t)}var E9t=Bke(function(C,E,I){E!=null&&typeof E.toString!="function"&&(E=j5.call(E)),C[E]=I},jZ(Zl)),k9t=Bke(function(C,E,I){E!=null&&typeof E.toString!="function"&&(E=j5.call(E)),Hi.call(C,E)?C[E].push(I):C[E]=[I]},on),L9t=zn(MD);function As(C){return Gl(C)?nke(C):gZ(C)}function Yl(C){return Gl(C)?nke(C,!0):r8t(C)}function T9t(C,E){var I={};return E=on(E,3),hf(C,function(H,ie,he){Gg(I,E(H,ie,he),H)}),I}function D9t(C,E){var I={};return E=on(E,3),hf(C,function(H,ie,he){Gg(I,ie,E(H,ie,he))}),I}var I9t=SS(function(C,E,I){oF(C,E,I)}),LLe=SS(function(C,E,I,H){oF(C,E,I,H)}),R9t=Zg(function(C,E){var I={};if(C==null)return I;var H=!1;E=Ar(E,function(he){return he=v_(he,C),H||(H=he.length>1),he}),ff(C,TZ(C),I),H&&(I=Lu(I,d|h|f,E8t));for(var ie=E.length;ie--;)yZ(I,E[ie]);return I});function N9t(C,E){return TLe(C,yF(on(E)))}var A9t=Zg(function(C,E){return C==null?{}:s8t(C,E)});function TLe(C,E){if(C==null)return{};var I=Ar(TZ(C),function(H){return[H]});return E=on(E),bke(C,I,function(H,ie){return E(H,ie[0])})}function O9t(C,E,I){E=v_(E,C);var H=-1,ie=E.length;for(ie||(ie=1,C=t);++H<ie;){var he=C==null?t:C[gf(E[H])];he===t&&(H=ie,he=I),C=Qg(he)?he.call(C):he}return C}function P9t(C,E,I){return C==null?C:BD(C,E,I)}function M9t(C,E,I,H){return H=typeof H=="function"?H:t,C==null?C:BD(C,E,I,H)}var DLe=Hke(As),ILe=Hke(Yl);function F9t(C,E,I){var H=Rn(C),ie=H||y_(C)||kS(C);if(E=on(E,4),I==null){var he=C&&C.constructor;ie?I=H?new he:[]:qr(C)?I=Qg(he)?wS(G5(C)):{}:I={}}return(ie?xu:hf)(C,function(we,Le,Ae){return E(I,we,Le,Ae)}),I}function B9t(C,E){return C==null?!0:yZ(C,E)}function $9t(C,E,I){return C==null?C:xke(C,E,SZ(I))}function W9t(C,E,I,H){return H=typeof H=="function"?H:t,C==null?C:xke(C,E,SZ(I),H)}function LS(C){return C==null?[]:tZ(C,As(C))}function H9t(C){return C==null?[]:tZ(C,Yl(C))}function V9t(C,E,I){return I===t&&(I=E,E=t),I!==t&&(I=Iu(I),I=I===I?I:0),E!==t&&(E=Iu(E),E=E===E?E:0),Mb(Iu(C),E,I)}function z9t(C,E,I){return E=Jg(E),I===t?(I=E,E=0):I=Jg(I),C=Iu(C),Y3t(C,E,I)}function U9t(C,E,I){if(I&&typeof I!="boolean"&&dl(C,E,I)&&(E=I=t),I===t&&(typeof E=="boolean"?(I=E,E=t):typeof C=="boolean"&&(I=C,C=t)),C===t&&E===t?(C=0,E=1):(C=Jg(C),E===t?(E=C,C=0):E=Jg(E)),C>E){var H=C;C=E,E=H}if(I||C%1||E%1){var ie=eke();return Ia(C+ie*(E-C+Pc("1e-"+((ie+"").length-1))),E)}return _Z(C,E)}var j9t=xS(function(C,E,I){return E=E.toLowerCase(),C+(I?RLe(E):E)});function RLe(C){return UZ(Mi(C).toLowerCase())}function NLe(C){return C=Mi(C),C&&C.replace(Nr,PFt).replace(wu,"")}function q9t(C,E,I){C=Mi(C),E=Bc(E);var H=C.length;I=I===t?H:Mb(Bn(I),0,H);var ie=I;return I-=E.length,I>=0&&C.slice(I,ie)==E}function K9t(C){return C=Mi(C),C&&La.test(C)?C.replace(Rr,MFt):C}function G9t(C){return C=Mi(C),C&&re.test(C)?C.replace(Z,"\\$&"):C}var Y9t=xS(function(C,E,I){return C+(I?"-":"")+E.toLowerCase()}),Z9t=xS(function(C,E,I){return C+(I?" ":"")+E.toLowerCase()}),X9t=Pke("toLowerCase");function Q9t(C,E,I){C=Mi(C),E=Bn(E);var H=E?_S(C):0;if(!E||H>=E)return C;var ie=(E-H)/2;return dF(Q5(ie),I)+C+dF(X5(ie),I)}function J9t(C,E,I){C=Mi(C),E=Bn(E);var H=E?_S(C):0;return E&&H<E?C+dF(E-H,I):C}function e7t(C,E,I){C=Mi(C),E=Bn(E);var H=E?_S(C):0;return E&&H<E?dF(E-H,I)+C:C}function t7t(C,E,I){return I||E==null?E=0:E&&(E=+E),l3t(Mi(C).replace(ce,""),E||0)}function n7t(C,E,I){return(I?dl(C,E,I):E===t)?E=1:E=Bn(E),vZ(Mi(C),E)}function i7t(){var C=arguments,E=Mi(C[0]);return C.length<3?E:E.replace(C[1],C[2])}var r7t=xS(function(C,E,I){return C+(I?"_":"")+E.toLowerCase()});function o7t(C,E,I){return I&&typeof I!="number"&&dl(C,E,I)&&(E=I=t),I=I===t?$:I>>>0,I?(C=Mi(C),C&&(typeof E=="string"||E!=null&&!HZ(E))&&(E=Bc(E),!E&&mS(C))?b_(Dd(C),0,I):C.split(E,I)):[]}var s7t=xS(function(C,E,I){return C+(I?" ":"")+UZ(E)});function a7t(C,E,I){return C=Mi(C),I=I==null?0:Mb(Bn(I),0,C.length),E=Bc(E),C.slice(I,I+E.length)==E}function l7t(C,E,I){var H=ae.templateSettings;I&&dl(C,E,I)&&(E=t),C=Mi(C),E=SF({},E,H,Vke);var ie=SF({},E.imports,H.imports,Vke),he=As(ie),we=tZ(ie,he),Le,Ae,rt=0,ot=E.interpolate||sl,ut="__p += '",Rt=iZ((E.escape||sl).source+"|"+ot.source+"|"+(ot===Zo?Nt:sl).source+"|"+(E.evaluate||sl).source+"|$","g"),Gt="//# sourceURL="+(Hi.call(E,"sourceURL")?(E.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rb+"]")+`
|
|
44
44
|
`;C.replace(Rt,function(un,Jn,si,Wc,hl,Hc){return si||(si=Wc),ut+=C.slice(rt,Hc).replace(Vg,FFt),Jn&&(Le=!0,ut+=`' +
|
|
45
45
|
__e(`+Jn+`) +
|
|
46
46
|
'`),hl&&(Ae=!0,ut+=`';
|
|
@@ -57,7 +57,7 @@ __p += '`),si&&(ut+=`' +
|
|
|
57
57
|
function print() { __p += __j.call(arguments, '') }
|
|
58
58
|
`:`;
|
|
59
59
|
`)+ut+`return __p
|
|
60
|
-
}`;var Wn=OLe(function(){return Di(he,Gt+"return "+ut).apply(t,we)});if(Wn.source=ut,WZ(Wn))throw Wn;return Wn}function c7t(C){return Mi(C).toLowerCase()}function u7t(C){return Mi(C).toUpperCase()}function d7t(C,E,I){if(C=Mi(C),C&&(I||E===t))return zEe(C);if(!C||!(E=Bc(E)))return C;var H=Dd(C),ie=Dd(E),he=UEe(H,ie),we=jEe(H,ie)+1;return b_(H,he,we).join("")}function h7t(C,E,I){if(C=Mi(C),C&&(I||E===t))return C.slice(0,KEe(C)+1);if(!C||!(E=Bc(E)))return C;var H=Dd(C),ie=jEe(H,Dd(E))+1;return b_(H,0,ie).join("")}function f7t(C,E,I){if(C=Mi(C),C&&(I||E===t))return C.replace(ce,"");if(!C||!(E=Bc(E)))return C;var H=Dd(C),ie=UEe(H,Dd(E));return b_(H,ie).join("")}function g7t(C,E){var I=D,H=R;if(qr(E)){var ie="separator"in E?E.separator:ie;I="length"in E?Bn(E.length):I,H="omission"in E?Bc(E.omission):H}C=Mi(C);var he=C.length;if(mS(C)){var we=Dd(C);he=we.length}if(I>=he)return C;var Le=I-_S(H);if(Le<1)return H;var Ae=we?b_(we,0,Le).join(""):C.slice(0,Le);if(ie===t)return Ae+H;if(we&&(Le+=Ae.length-Le),HZ(ie)){if(C.slice(Le).search(ie)){var rt,st=Ae;for(ie.global||(ie=iZ(ie.source,Mi(Ut.exec(ie))+"g")),ie.lastIndex=0;rt=ie.exec(st);)var ut=rt.index;Ae=Ae.slice(0,ut===t?Le:ut)}}else if(C.indexOf(Bc(ie),Le)!=Le){var Rt=Ae.lastIndexOf(ie);Rt>-1&&(Ae=Ae.slice(0,Rt))}return Ae+H}function p7t(C){return C=Mi(C),C&&Yo.test(C)?C.replace(ka,UFt):C}var m7t=xS(function(C,E,I){return C+(I?" ":"")+E.toUpperCase()}),UZ=Pke("toUpperCase");function ALe(C,E,I){return C=Mi(C),E=I?t:E,E===t?$Ft(C)?KFt(C):IFt(C):C.match(E)||[]}var OLe=zn(function(C,E){try{return Mc(C,t,E)}catch(I){return WZ(I)?I:new Tn(I)}}),_7t=Zg(function(C,E){return xu(E,function(I){I=gf(I),Gg(C,I,BZ(C[I],C))}),C});function v7t(C){var E=C==null?0:C.length,I=on();return C=E?Ar(C,function(H){if(typeof H[1]!="function")throw new Eu(s);return[I(H[0]),H[1]]}):[],zn(function(H){for(var ie=-1;++ie<E;){var he=C[ie];if(Mc(he[0],this,H))return Mc(he[1],this,H)}})}function b7t(C){return U3t(Lu(C,d))}function jZ(C){return function(){return C}}function y7t(C,E){return C==null||C!==C?E:C}var C7t=Fke(),w7t=Fke(!0);function Zl(C){return C}function qZ(C){return fke(typeof C=="function"?C:Lu(C,d))}function S7t(C){return pke(Lu(C,d))}function x7t(C,E){return mke(C,Lu(E,d))}var E7t=zn(function(C,E){return function(I){return MD(I,C,E)}}),k7t=zn(function(C,E){return function(I){return MD(C,I,E)}});function KZ(C,E,I){var H=As(E),ie=rF(E,H);I==null&&!(qr(E)&&(ie.length||!H.length))&&(I=E,E=C,C=this,ie=rF(E,As(E)));var he=!(qr(I)&&"chain"in I)||!!I.chain,we=Qg(C);return xu(ie,function(Le){var Ae=E[Le];C[Le]=Ae,we&&(C.prototype[Le]=function(){var rt=this.__chain__;if(he||rt){var st=C(this.__wrapped__),ut=st.__actions__=Kl(this.__actions__);return ut.push({func:Ae,args:arguments,thisArg:C}),st.__chain__=rt,st}return Ae.apply(C,f_([this.value()],arguments))})}),C}function L7t(){return fr._===this&&(fr._=JFt),this}function GZ(){}function T7t(C){return C=Bn(C),zn(function(E){return _ke(E,C)})}var D7t=EZ(Ar),I7t=EZ(BEe),R7t=EZ(ZY);function PLe(C){return NZ(C)?XY(gf(C)):a8t(C)}function N7t(C){return function(E){return C==null?t:Fb(C,E)}}var A7t=$ke(),O7t=$ke(!0);function YZ(){return[]}function ZZ(){return!1}function P7t(){return{}}function M7t(){return""}function F7t(){return!0}function B7t(C,E){if(C=Bn(C),C<1||C>M)return[];var I=$,H=Ia(C,$);E=on(E),C-=$;for(var ie=eZ(H,E);++I<C;)E(I);return ie}function $7t(C){return Rn(C)?Ar(C,gf):$c(C)?[C]:Kl(tLe(Mi(C)))}function W7t(C){var E=++XFt;return Mi(C)+E}var H7t=uF(function(C,E){return C+E},0),V7t=kZ("ceil"),z7t=uF(function(C,E){return C/E},1),U7t=kZ("floor");function j7t(C){return C&&C.length?iF(C,Zl,dZ):t}function q7t(C,E){return C&&C.length?iF(C,on(E,2),dZ):t}function K7t(C){return HEe(C,Zl)}function G7t(C,E){return HEe(C,on(E,2))}function Y7t(C){return C&&C.length?iF(C,Zl,pZ):t}function Z7t(C,E){return C&&C.length?iF(C,on(E,2),pZ):t}var X7t=uF(function(C,E){return C*E},1),Q7t=kZ("round"),J7t=uF(function(C,E){return C-E},0);function e$t(C){return C&&C.length?JY(C,Zl):0}function t$t(C,E){return C&&C.length?JY(C,on(E,2)):0}return ae.after=SBt,ae.ary=hLe,ae.assign=u9t,ae.assignIn=kLe,ae.assignInWith=SF,ae.assignWith=d9t,ae.at=h9t,ae.before=fLe,ae.bind=BZ,ae.bindAll=_7t,ae.bindKey=gLe,ae.castArray=PBt,ae.chain=cLe,ae.chunk=U8t,ae.compact=j8t,ae.concat=q8t,ae.cond=v7t,ae.conforms=b7t,ae.constant=jZ,ae.countBy=eBt,ae.create=f9t,ae.curry=pLe,ae.curryRight=mLe,ae.debounce=_Le,ae.defaults=g9t,ae.defaultsDeep=p9t,ae.defer=xBt,ae.delay=EBt,ae.difference=K8t,ae.differenceBy=G8t,ae.differenceWith=Y8t,ae.drop=Z8t,ae.dropRight=X8t,ae.dropRightWhile=Q8t,ae.dropWhile=J8t,ae.fill=e6t,ae.filter=nBt,ae.flatMap=oBt,ae.flatMapDeep=sBt,ae.flatMapDepth=aBt,ae.flatten=oLe,ae.flattenDeep=t6t,ae.flattenDepth=n6t,ae.flip=kBt,ae.flow=C7t,ae.flowRight=w7t,ae.fromPairs=i6t,ae.functions=w9t,ae.functionsIn=S9t,ae.groupBy=lBt,ae.initial=o6t,ae.intersection=s6t,ae.intersectionBy=a6t,ae.intersectionWith=l6t,ae.invert=E9t,ae.invertBy=k9t,ae.invokeMap=uBt,ae.iteratee=qZ,ae.keyBy=dBt,ae.keys=As,ae.keysIn=Yl,ae.map=_F,ae.mapKeys=T9t,ae.mapValues=D9t,ae.matches=S7t,ae.matchesProperty=x7t,ae.memoize=bF,ae.merge=I9t,ae.mergeWith=LLe,ae.method=E7t,ae.methodOf=k7t,ae.mixin=KZ,ae.negate=yF,ae.nthArg=T7t,ae.omit=R9t,ae.omitBy=N9t,ae.once=LBt,ae.orderBy=hBt,ae.over=D7t,ae.overArgs=TBt,ae.overEvery=I7t,ae.overSome=R7t,ae.partial=$Z,ae.partialRight=vLe,ae.partition=fBt,ae.pick=A9t,ae.pickBy=TLe,ae.property=PLe,ae.propertyOf=N7t,ae.pull=h6t,ae.pullAll=aLe,ae.pullAllBy=f6t,ae.pullAllWith=g6t,ae.pullAt=p6t,ae.range=A7t,ae.rangeRight=O7t,ae.rearg=DBt,ae.reject=mBt,ae.remove=m6t,ae.rest=IBt,ae.reverse=MZ,ae.sampleSize=vBt,ae.set=P9t,ae.setWith=M9t,ae.shuffle=bBt,ae.slice=_6t,ae.sortBy=wBt,ae.sortedUniq=x6t,ae.sortedUniqBy=E6t,ae.split=o7t,ae.spread=RBt,ae.tail=k6t,ae.take=L6t,ae.takeRight=T6t,ae.takeRightWhile=D6t,ae.takeWhile=I6t,ae.tap=j6t,ae.throttle=NBt,ae.thru=mF,ae.toArray=SLe,ae.toPairs=DLe,ae.toPairsIn=ILe,ae.toPath=$7t,ae.toPlainObject=ELe,ae.transform=F9t,ae.unary=ABt,ae.union=R6t,ae.unionBy=N6t,ae.unionWith=A6t,ae.uniq=O6t,ae.uniqBy=P6t,ae.uniqWith=M6t,ae.unset=B9t,ae.unzip=FZ,ae.unzipWith=lLe,ae.update=$9t,ae.updateWith=W9t,ae.values=LS,ae.valuesIn=H9t,ae.without=F6t,ae.words=ALe,ae.wrap=OBt,ae.xor=B6t,ae.xorBy=$6t,ae.xorWith=W6t,ae.zip=H6t,ae.zipObject=V6t,ae.zipObjectDeep=z6t,ae.zipWith=U6t,ae.entries=DLe,ae.entriesIn=ILe,ae.extend=kLe,ae.extendWith=SF,KZ(ae,ae),ae.add=H7t,ae.attempt=OLe,ae.camelCase=j9t,ae.capitalize=RLe,ae.ceil=V7t,ae.clamp=V9t,ae.clone=MBt,ae.cloneDeep=BBt,ae.cloneDeepWith=$Bt,ae.cloneWith=FBt,ae.conformsTo=WBt,ae.deburr=NLe,ae.defaultTo=y7t,ae.divide=z7t,ae.endsWith=q9t,ae.eq=Rd,ae.escape=K9t,ae.escapeRegExp=G9t,ae.every=tBt,ae.find=iBt,ae.findIndex=iLe,ae.findKey=m9t,ae.findLast=rBt,ae.findLastIndex=rLe,ae.findLastKey=_9t,ae.floor=U7t,ae.forEach=uLe,ae.forEachRight=dLe,ae.forIn=v9t,ae.forInRight=b9t,ae.forOwn=y9t,ae.forOwnRight=C9t,ae.get=VZ,ae.gt=HBt,ae.gte=VBt,ae.has=x9t,ae.hasIn=zZ,ae.head=sLe,ae.identity=Zl,ae.includes=cBt,ae.indexOf=r6t,ae.inRange=z9t,ae.invoke=L9t,ae.isArguments=Wb,ae.isArray=Rn,ae.isArrayBuffer=zBt,ae.isArrayLike=Gl,ae.isArrayLikeObject=Lo,ae.isBoolean=UBt,ae.isBuffer=y_,ae.isDate=jBt,ae.isElement=qBt,ae.isEmpty=KBt,ae.isEqual=GBt,ae.isEqualWith=YBt,ae.isError=WZ,ae.isFinite=ZBt,ae.isFunction=Qg,ae.isInteger=bLe,ae.isLength=CF,ae.isMap=yLe,ae.isMatch=XBt,ae.isMatchWith=QBt,ae.isNaN=JBt,ae.isNative=e9t,ae.isNil=n9t,ae.isNull=t9t,ae.isNumber=CLe,ae.isObject=qr,ae.isObjectLike=mo,ae.isPlainObject=VD,ae.isRegExp=HZ,ae.isSafeInteger=i9t,ae.isSet=wLe,ae.isString=wF,ae.isSymbol=$c,ae.isTypedArray=kS,ae.isUndefined=r9t,ae.isWeakMap=o9t,ae.isWeakSet=s9t,ae.join=c6t,ae.kebabCase=Y9t,ae.last=Du,ae.lastIndexOf=u6t,ae.lowerCase=Z9t,ae.lowerFirst=X9t,ae.lt=a9t,ae.lte=l9t,ae.max=j7t,ae.maxBy=q7t,ae.mean=K7t,ae.meanBy=G7t,ae.min=Y7t,ae.minBy=Z7t,ae.stubArray=YZ,ae.stubFalse=ZZ,ae.stubObject=P7t,ae.stubString=M7t,ae.stubTrue=F7t,ae.multiply=X7t,ae.nth=d6t,ae.noConflict=L7t,ae.noop=GZ,ae.now=vF,ae.pad=Q9t,ae.padEnd=J9t,ae.padStart=e7t,ae.parseInt=t7t,ae.random=U9t,ae.reduce=gBt,ae.reduceRight=pBt,ae.repeat=n7t,ae.replace=i7t,ae.result=O9t,ae.round=Q7t,ae.runInContext=Re,ae.sample=_Bt,ae.size=yBt,ae.snakeCase=r7t,ae.some=CBt,ae.sortedIndex=v6t,ae.sortedIndexBy=b6t,ae.sortedIndexOf=y6t,ae.sortedLastIndex=C6t,ae.sortedLastIndexBy=w6t,ae.sortedLastIndexOf=S6t,ae.startCase=s7t,ae.startsWith=a7t,ae.subtract=J7t,ae.sum=e$t,ae.sumBy=t$t,ae.template=l7t,ae.times=B7t,ae.toFinite=Jg,ae.toInteger=Bn,ae.toLength=xLe,ae.toLower=c7t,ae.toNumber=Iu,ae.toSafeInteger=c9t,ae.toString=Mi,ae.toUpper=u7t,ae.trim=d7t,ae.trimEnd=h7t,ae.trimStart=f7t,ae.truncate=g7t,ae.unescape=p7t,ae.uniqueId=W7t,ae.upperCase=m7t,ae.upperFirst=UZ,ae.each=uLe,ae.eachRight=dLe,ae.first=sLe,KZ(ae,function(){var C={};return hf(ae,function(E,I){Hi.call(ae.prototype,I)||(C[I]=E)}),C}(),{chain:!1}),ae.VERSION=i,xu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(C){ae[C].placeholder=ae}),xu(["drop","take"],function(C,E){ni.prototype[C]=function(I){I=I===t?1:fs(Bn(I),0);var H=this.__filtered__&&!E?new ni(this):this.clone();return H.__filtered__?H.__takeCount__=Ia(I,H.__takeCount__):H.__views__.push({size:Ia(I,$),type:C+(H.__dir__<0?"Right":"")}),H},ni.prototype[C+"Right"]=function(I){return this.reverse()[C](I).reverse()}}),xu(["filter","map","takeWhile"],function(C,E){var I=E+1,H=I==V||I==U;ni.prototype[C]=function(ie){var he=this.clone();return he.__iteratees__.push({iteratee:on(ie,3),type:I}),he.__filtered__=he.__filtered__||H,he}}),xu(["head","last"],function(C,E){var I="take"+(E?"Right":"");ni.prototype[C]=function(){return this[I](1).value()[0]}}),xu(["initial","tail"],function(C,E){var I="drop"+(E?"":"Right");ni.prototype[C]=function(){return this.__filtered__?new ni(this):this[I](1)}}),ni.prototype.compact=function(){return this.filter(Zl)},ni.prototype.find=function(C){return this.filter(C).head()},ni.prototype.findLast=function(C){return this.reverse().find(C)},ni.prototype.invokeMap=zn(function(C,E){return typeof C=="function"?new ni(this):this.map(function(I){return MD(I,C,E)})}),ni.prototype.reject=function(C){return this.filter(yF(on(C)))},ni.prototype.slice=function(C,E){C=Bn(C);var I=this;return I.__filtered__&&(C>0||E<0)?new ni(I):(C<0?I=I.takeRight(-C):C&&(I=I.drop(C)),E!==t&&(E=Bn(E),I=E<0?I.dropRight(-E):I.take(E-C)),I)},ni.prototype.takeRightWhile=function(C){return this.reverse().takeWhile(C).reverse()},ni.prototype.toArray=function(){return this.take($)},hf(ni.prototype,function(C,E){var I=/^(?:filter|find|map|reject)|While$/.test(E),H=/^(?:head|last)$/.test(E),ie=ae[H?"take"+(E=="last"?"Right":""):E],he=H||/^find/.test(E);!ie||(ae.prototype[E]=function(){var we=this.__wrapped__,Le=H?[1]:arguments,Ae=we instanceof ni,rt=Le[0],st=Ae||Rn(we),ut=function(Jn){var si=ie.apply(ae,f_([Jn],Le));return H&&Rt?si[0]:si};st&&I&&typeof rt=="function"&&rt.length!=1&&(Ae=st=!1);var Rt=this.__chain__,Gt=!!this.__actions__.length,cn=he&&!Rt,Wn=Ae&&!Gt;if(!he&&st){we=Wn?we:new ni(this);var un=C.apply(we,Le);return un.__actions__.push({func:mF,args:[ut],thisArg:t}),new ku(un,Rt)}return cn&&Wn?C.apply(this,Le):(un=this.thru(ut),cn?H?un.value()[0]:un.value():un)})}),xu(["pop","push","shift","sort","splice","unshift"],function(C){var E=V5[C],I=/^(?:push|sort|unshift)$/.test(C)?"tap":"thru",H=/^(?:pop|shift)$/.test(C);ae.prototype[C]=function(){var ie=arguments;if(H&&!this.__chain__){var he=this.value();return E.apply(Rn(he)?he:[],ie)}return this[I](function(we){return E.apply(Rn(we)?we:[],ie)})}}),hf(ni.prototype,function(C,E){var I=ae[E];if(I){var H=I.name+"";Hi.call(CS,H)||(CS[H]=[]),CS[H].push({name:E,func:I})}}),CS[cF(t,v).name]=[{name:"wrapper",func:t}],ni.prototype.clone=p3t,ni.prototype.reverse=m3t,ni.prototype.value=_3t,ae.prototype.at=q6t,ae.prototype.chain=K6t,ae.prototype.commit=G6t,ae.prototype.next=Y6t,ae.prototype.plant=X6t,ae.prototype.reverse=Q6t,ae.prototype.toJSON=ae.prototype.valueOf=ae.prototype.value=J6t,ae.prototype.first=ae.prototype.head,DD&&(ae.prototype[DD]=Z6t),ae},vS=GFt();cl?((cl.exports=vS)._=vS,uf._=vS):fr._=vS}).call(Ot)})(ec,ec.exports);const Pu=hRe("daopaas",1,{upgrade(n){n.createObjectStore("crdts"),n.createObjectStore("oTStore"),n.createObjectStore("files"),n.createObjectStore("replayFiles"),n.createObjectStore("users"),n.createObjectStore("media")}});async function i6(n){const{CRDTInfo:e,appStatus:t,globalData:i}=Yt.getState();if(t!=="replay")return n.event==="editor"&&n.editor.revision++,(await Pu).put("crdts",ot(Te({},n),{userInfo:ec.exports.pick(n.userInfo,["uuid","role"]),file:ec.exports.omit(n.file,"value")}),n.timestamp+"."+n6().split("-")[0])}async function yRe(n){return(await Pu).get("files",n)}async function Vee(n){return(await Pu).get("replayFiles",n)}async function CRe(){return(await Pu).getAll("replayFiles")}async function zee(n,e){return(await Pu).put("files",e,n)}async function r6(n,e){return(await Pu).put("replayFiles",e,n)}async function Uee(){return await(await Pu).getAll("crdts")}async function wRe(n,e){return(await Pu).put("media",e,n)}var SRe=Object.defineProperty,jee=Object.getOwnPropertySymbols,xRe=Object.prototype.hasOwnProperty,ERe=Object.prototype.propertyIsEnumerable,qee=(n,e,t)=>e in n?SRe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,y1=(n,e)=>{for(var t in e||(e={}))xRe.call(e,t)&&qee(n,t,e[t]);if(jee)for(var t of jee(e))ERe.call(e,t)&&qee(n,t,e[t]);return n};const sR=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(i){return sR(i)(t)},catch(i){return this}}}catch(t){return{then(i){return this},catch(i){return sR(i)(t)}}}},o6=(n,e)=>(t,i,r)=>{let o=y1({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,v)=>y1(y1({},v),m)},e);(o.blacklist||o.whitelist)&&console.warn(`The ${o.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let s=!1;const a=new Set,l=new Set;let c;try{c=o.getStorage()}catch{}if(c)c.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${o.name}' does not contain a 'removeItem' method, which will be required in v4.`);else return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),t(...m)},i,r);const u=sR(o.serialize),d=()=>{const m=o.partialize(y1({},i()));o.whitelist&&Object.keys(m).forEach(y=>{var b;!((b=o.whitelist)==null?void 0:b.includes(y))&&delete m[y]}),o.blacklist&&o.blacklist.forEach(y=>delete m[y]);let v;const _=u({state:m,version:o.version}).then(y=>c.setItem(o.name,y)).catch(y=>{v=y});if(v)throw v;return _},h=r.setState;r.setState=(m,v)=>{h(m,v),d()};const f=n((...m)=>{t(...m),d()},i,r);let g;const p=()=>{var m;if(!c)return;s=!1,a.forEach(_=>_(i()));const v=((m=o.onRehydrateStorage)==null?void 0:m.call(o,i()))||void 0;return sR(c.getItem.bind(c))(o.name).then(_=>{if(_)return o.deserialize(_)}).then(_=>{if(_)if(typeof _.version=="number"&&_.version!==o.version){if(o.migrate)return o.migrate(_.state,_.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return _.state}).then(_=>(g=o.merge(_,f),t(g,!0),d())).then(()=>{v==null||v(g,void 0),s=!0,l.forEach(_=>_(g))}).catch(_=>{v==null||v(void 0,_)})};return r.persist={setOptions:m=>{o=y1(y1({},o),m),m.getStorage&&(c=m.getStorage())},clearStorage:()=>{var m;(m=c==null?void 0:c.removeItem)==null||m.call(c,o.name)},rehydrate:()=>p(),hasHydrated:()=>s,onHydrate:m=>(a.add(m),()=>{a.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},p(),g||f},Yt=Jl(n=>({asyncType:void 0,appStatus:"code",setAppStatus:e=>n(()=>({appStatus:e})),client:null,senders:[],doc:{},isRecording:!1,CRDTInfo:{operation:[],userInfo:{},evtType:"",timestamp:""},serverAck:0,customAck:0,revision:0,dockerInfo:{},playgroundInfo:{data:{fileTree:{},framework:"",frameworkVersion:null,language:"",languageVersion:null,needBrowser:!0,needConsole:!0,needRunButton:!0,url:"",version:"",terminalHistory:""},messageId:"",playgroundId:"",result:"",dockerInfos:new Map([])},playgroundStatus:"EMPTY",dockerStatus:"STOP",queryObject:{},globalData:{isRecording:!1,syncCursor:!1,useLsp:!0},fileSaved:!0,lspServerDisabled:!1,switchLspServer:e=>n(()=>({lspServerDisabled:e})),setIsRecording:e=>n(()=>({isRecording:e})),setFileSaved:e=>n(()=>({fileSaved:e})),switchDoc:e=>n(()=>({doc:e})),setSenders:e=>n(()=>({senders:e})),setCRDTInfo:e=>n(()=>({CRDTInfo:e})),setServerAck:()=>n(({serverAck:e})=>({serverAck:e+1})),setCustomAck:()=>n(({customAck:e})=>({customAck:e+1})),setGlobalData:e=>n(({appStatus:t,globalData:i})=>{if("isRecording"in e&&e.isRecording&&(t==="replay"||t==="pause"))throw"dError: \u56DE\u653E\u4E2D\u65E0\u6CD5\u5F55\u5236\uFF01";return{globalData:Te(Te({},i),e)}}),setVersion:e=>n(()=>({revision:e})),setPlaygroundInfo:e=>n(()=>({playgroundInfo:e})),setDockerInfo:e=>n(()=>({dockerInfo:e})),setPlaygroundStatus:e=>n(()=>({playgroundStatus:e})),setDockerStatus:e=>n(()=>({dockerStatus:e})),setQueryObject:e=>n(()=>({queryObject:e})),setAsyncType:e=>n(()=>({asyncType:e}))})),Kee=Jl(n=>({fileTree:{},switchFileTree:e=>n(()=>({fileTree:e}))})),Mu=Jl(o6(n=>({userInfo:{},setUserInfo:e=>n(()=>({userInfo:e}))}),{name:"userInfo",getStorage:()=>localStorage}));Jl(n=>({syncCursor:!0,setSyncCursor:e=>n(()=>({syncCursor:e}))}));const P_=Jl(o6(n=>({shadowUser:{},switchShadowUser:e=>n(()=>(e.uuid?alert(`\u5DF2\u5207\u6362\u81F3\u3010${e.username}\u3011\u89C6\u89D2`):alert("\u5DF2\u9000\u51FA\u8DDF\u968F\u89C6\u89D2"),{shadowUser:e}))}),{name:"shadowUser",getStorage:()=>localStorage})),sa=Jl(o6(n=>({userList:[],setUserList:e=>n(()=>({userList:e}))}),{name:"userList",getStorage:()=>({getItem:async n=>{if(typeof indexedDB=="undefined")return null;const e=await(await Pu).getAll("users");return JSON.stringify(e[0])||null},setItem:async(n,e)=>{(await Pu).put("users",JSON.parse(e).state[n],"userList")},removeItem:async()=>{}})})),Gee=n=>["#d904c7","#49cf5b","#D9C589","#F27B13","#A0D9D9","#45858C","#8C311C","#4A5B8C","#8C4F2B","#34401A","#CAD959","#0476D9"][n],Yee=(n,e)=>`https://avatars.dicebear.com/api/human/${e}.svg`,Hd=n=>Mu.getState().userInfo.uuid===n.uuid;function vt(){return vt=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},vt.apply(this,arguments)}var kRe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:vt});function Bs(n,e){return e||(e=n.slice(0)),n.raw=e,n}function Pt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}var s6={exports:{}},LRe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",TRe=LRe,DRe=TRe;function Zee(){}function Xee(){}Xee.resetWarningCache=Zee;var IRe=function(){function n(i,r,o,s,a,l){if(l!==DRe){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}n.isRequired=n;function e(){return n}var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Xee,resetWarningCache:Zee};return t.PropTypes=t,t};s6.exports=IRe();var X=s6.exports,C1=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function RRe(n,e){for(var t=-1,i=n==null?0:n.length;++t<i&&e(n[t],t,n)!==!1;);return n}var Qee=RRe;function NRe(n,e){for(var t=-1,i=Array(n);++t<n;)i[t]=e(t);return i}var ARe=NRe,ORe=typeof Ot=="object"&&Ot&&Ot.Object===Object&&Ot,Jee=ORe,PRe=Jee,MRe=typeof self=="object"&&self&&self.Object===Object&&self,FRe=PRe||MRe||Function("return this")(),vl=FRe,BRe=vl,$Re=BRe.Symbol,w1=$Re,ete=w1,tte=Object.prototype,WRe=tte.hasOwnProperty,HRe=tte.toString,Tx=ete?ete.toStringTag:void 0;function VRe(n){var e=WRe.call(n,Tx),t=n[Tx];try{n[Tx]=void 0;var i=!0}catch{}var r=HRe.call(n);return i&&(e?n[Tx]=t:delete n[Tx]),r}var zRe=VRe,URe=Object.prototype,jRe=URe.toString;function qRe(n){return jRe.call(n)}var KRe=qRe,nte=w1,GRe=zRe,YRe=KRe,ZRe="[object Null]",XRe="[object Undefined]",ite=nte?nte.toStringTag:void 0;function QRe(n){return n==null?n===void 0?XRe:ZRe:ite&&ite in Object(n)?GRe(n):YRe(n)}var S1=QRe;function JRe(n){return n!=null&&typeof n=="object"}var xf=JRe,eNe=S1,tNe=xf,nNe="[object Arguments]";function iNe(n){return tNe(n)&&eNe(n)==nNe}var rNe=iNe,rte=rNe,oNe=xf,ote=Object.prototype,sNe=ote.hasOwnProperty,aNe=ote.propertyIsEnumerable,lNe=rte(function(){return arguments}())?rte:function(n){return oNe(n)&&sNe.call(n,"callee")&&!aNe.call(n,"callee")},a6=lNe,cNe=Array.isArray,Fu=cNe,Dx={exports:{}};function uNe(){return!1}var dNe=uNe;(function(n,e){var t=vl,i=dNe,r=e&&!e.nodeType&&e,o=r&&!0&&n&&!n.nodeType&&n,s=o&&o.exports===r,a=s?t.Buffer:void 0,l=a?a.isBuffer:void 0,c=l||i;n.exports=c})(Dx,Dx.exports);var hNe=9007199254740991,fNe=/^(?:0|[1-9]\d*)$/;function gNe(n,e){var t=typeof n;return e=e==null?hNe:e,!!e&&(t=="number"||t!="symbol"&&fNe.test(n))&&n>-1&&n%1==0&&n<e}var Ix=gNe,pNe=9007199254740991;function mNe(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=pNe}var l6=mNe,_Ne=S1,vNe=l6,bNe=xf,yNe="[object Arguments]",CNe="[object Array]",wNe="[object Boolean]",SNe="[object Date]",xNe="[object Error]",ENe="[object Function]",kNe="[object Map]",LNe="[object Number]",TNe="[object Object]",DNe="[object RegExp]",INe="[object Set]",RNe="[object String]",NNe="[object WeakMap]",ANe="[object ArrayBuffer]",ONe="[object DataView]",PNe="[object Float32Array]",MNe="[object Float64Array]",FNe="[object Int8Array]",BNe="[object Int16Array]",$Ne="[object Int32Array]",WNe="[object Uint8Array]",HNe="[object Uint8ClampedArray]",VNe="[object Uint16Array]",zNe="[object Uint32Array]",_r={};_r[PNe]=_r[MNe]=_r[FNe]=_r[BNe]=_r[$Ne]=_r[WNe]=_r[HNe]=_r[VNe]=_r[zNe]=!0,_r[yNe]=_r[CNe]=_r[ANe]=_r[wNe]=_r[ONe]=_r[SNe]=_r[xNe]=_r[ENe]=_r[kNe]=_r[LNe]=_r[TNe]=_r[DNe]=_r[INe]=_r[RNe]=_r[NNe]=!1;function UNe(n){return bNe(n)&&vNe(n.length)&&!!_r[_Ne(n)]}var jNe=UNe;function qNe(n){return function(e){return n(e)}}var c6=qNe,Rx={exports:{}};(function(n,e){var t=Jee,i=e&&!e.nodeType&&e,r=i&&!0&&n&&!n.nodeType&&n,o=r&&r.exports===i,s=o&&t.process,a=function(){try{var l=r&&r.require&&r.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();n.exports=a})(Rx,Rx.exports);var KNe=jNe,GNe=c6,ste=Rx.exports,ate=ste&&ste.isTypedArray,YNe=ate?GNe(ate):KNe,lte=YNe,ZNe=ARe,XNe=a6,QNe=Fu,JNe=Dx.exports,e2e=Ix,t2e=lte,n2e=Object.prototype,i2e=n2e.hasOwnProperty;function r2e(n,e){var t=QNe(n),i=!t&&XNe(n),r=!t&&!i&&JNe(n),o=!t&&!i&&!r&&t2e(n),s=t||i||r||o,a=s?ZNe(n.length,String):[],l=a.length;for(var c in n)(e||i2e.call(n,c))&&!(s&&(c=="length"||r&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||e2e(c,l)))&&a.push(c);return a}var cte=r2e,o2e=Object.prototype;function s2e(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||o2e;return n===t}var u6=s2e;function a2e(n,e){return function(t){return n(e(t))}}var ute=a2e,l2e=ute,c2e=l2e(Object.keys,Object),u2e=c2e,d2e=u6,h2e=u2e,f2e=Object.prototype,g2e=f2e.hasOwnProperty;function p2e(n){if(!d2e(n))return h2e(n);var e=[];for(var t in Object(n))g2e.call(n,t)&&t!="constructor"&&e.push(t);return e}var m2e=p2e;function _2e(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Ef=_2e,v2e=S1,b2e=Ef,y2e="[object AsyncFunction]",C2e="[object Function]",w2e="[object GeneratorFunction]",S2e="[object Proxy]";function x2e(n){if(!b2e(n))return!1;var e=v2e(n);return e==C2e||e==w2e||e==y2e||e==S2e}var d6=x2e,E2e=d6,k2e=l6;function L2e(n){return n!=null&&k2e(n.length)&&!E2e(n)}var dte=L2e,T2e=cte,D2e=m2e,I2e=dte;function R2e(n){return I2e(n)?T2e(n):D2e(n)}var aR=R2e;function N2e(n){return n}var h6=N2e;function A2e(n,e,t,i){for(var r=n.length,o=t+(i?1:-1);i?o--:++o<r;)if(e(n[o],o,n))return o;return-1}var O2e=A2e;function P2e(n){return n!==n}var M2e=P2e;function F2e(n,e,t){for(var i=t-1,r=n.length;++i<r;)if(n[i]===e)return i;return-1}var B2e=F2e,$2e=O2e,W2e=M2e,H2e=B2e;function V2e(n,e,t){return e===e?H2e(n,e,t):$2e(n,W2e,t)}var z2e=V2e,U2e=/\s/;function j2e(n){for(var e=n.length;e--&&U2e.test(n.charAt(e)););return e}var q2e=j2e,K2e=q2e,G2e=/^\s+/;function Y2e(n){return n&&n.slice(0,K2e(n)+1).replace(G2e,"")}var Z2e=Y2e,X2e=S1,Q2e=xf,J2e="[object Symbol]";function eAe(n){return typeof n=="symbol"||Q2e(n)&&X2e(n)==J2e}var Nx=eAe,tAe=Z2e,hte=Ef,nAe=Nx,fte=0/0,iAe=/^[-+]0x[0-9a-f]+$/i,rAe=/^0b[01]+$/i,oAe=/^0o[0-7]+$/i,sAe=parseInt;function aAe(n){if(typeof n=="number")return n;if(nAe(n))return fte;if(hte(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=hte(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=tAe(n);var t=rAe.test(n);return t||oAe.test(n)?sAe(n.slice(2),t?2:8):iAe.test(n)?fte:+n}var lAe=aAe,cAe=lAe,gte=1/0,uAe=17976931348623157e292;function dAe(n){if(!n)return n===0?n:0;if(n=cAe(n),n===gte||n===-gte){var e=n<0?-1:1;return e*uAe}return n===n?n:0}var hAe=dAe,fAe=hAe;function gAe(n){var e=fAe(n),t=e%1;return e===e?t?e-t:e:0}var pAe=gAe;function mAe(n,e){for(var t=-1,i=n==null?0:n.length,r=Array(i);++t<i;)r[t]=e(n[t],t,n);return r}var pte=mAe,mte=["lg","md","sm","xs"],_Ae=["success","warning","error","info"],vAe=["top","bottom","right","left"],f6=["bottomStart","bottomEnd","topStart","topEnd","leftStart","rightStart","leftEnd","rightEnd"],bAe=["auto","autoVertical","autoVerticalStart","autoVerticalEnd","autoHorizontal","autoHorizontalStart","autoHorizontalEnd"],yAe=[].concat(vAe,f6,bAe),_te;(function(n){n[n.UNCHECK=0]="UNCHECK",n[n.CHECK=1]="CHECK",n[n.INDETERMINATE=2]="INDETERMINATE"})(_te||(_te={}));var vte;(function(n){n[n.DRAG_OVER=0]="DRAG_OVER",n[n.DRAG_OVER_TOP=1]="DRAG_OVER_TOP",n[n.DRAG_OVER_BOTTOM=2]="DRAG_OVER_BOTTOM"})(vte||(vte={}));var Ii={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",END:"End",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",ENTER:"Enter",TAB:"Tab",SPACE:" ",BACKSPACE:"Backspace",DELETE:"Delete",COMMA:",",ESC:"Escape"},bte;(function(n){n.CALENDAR="CALENDAR",n.TOOLBAR_BUTTON_OK="TOOLBAR_BUTTON_OK",n.TOOLBAR_SHORTCUT="TOOLBAR_SHORTCUT"})(bte||(bte={}));var CAe=Fu,wAe=Nx,SAe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xAe=/^\w*$/;function EAe(n,e){if(CAe(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||wAe(n)?!0:xAe.test(n)||!SAe.test(n)||e!=null&&n in Object(e)}var g6=EAe,kAe=vl,LAe=kAe["__core-js_shared__"],TAe=LAe,p6=TAe,yte=function(){var n=/[^.]+$/.exec(p6&&p6.keys&&p6.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function DAe(n){return!!yte&&yte in n}var IAe=DAe,RAe=Function.prototype,NAe=RAe.toString;function AAe(n){if(n!=null){try{return NAe.call(n)}catch{}try{return n+""}catch{}}return""}var Cte=AAe,OAe=d6,PAe=IAe,MAe=Ef,FAe=Cte,BAe=/[\\^$.*+?()[\]{}|]/g,$Ae=/^\[object .+?Constructor\]$/,WAe=Function.prototype,HAe=Object.prototype,VAe=WAe.toString,zAe=HAe.hasOwnProperty,UAe=RegExp("^"+VAe.call(zAe).replace(BAe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jAe(n){if(!MAe(n)||PAe(n))return!1;var e=OAe(n)?UAe:$Ae;return e.test(FAe(n))}var qAe=jAe;function KAe(n,e){return n==null?void 0:n[e]}var GAe=KAe,YAe=qAe,ZAe=GAe;function XAe(n,e){var t=ZAe(n,e);return YAe(t)?t:void 0}var M_=XAe,QAe=M_,JAe=QAe(Object,"create"),lR=JAe,wte=lR;function eOe(){this.__data__=wte?wte(null):{},this.size=0}var tOe=eOe;function nOe(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var iOe=nOe,rOe=lR,oOe="__lodash_hash_undefined__",sOe=Object.prototype,aOe=sOe.hasOwnProperty;function lOe(n){var e=this.__data__;if(rOe){var t=e[n];return t===oOe?void 0:t}return aOe.call(e,n)?e[n]:void 0}var cOe=lOe,uOe=lR,dOe=Object.prototype,hOe=dOe.hasOwnProperty;function fOe(n){var e=this.__data__;return uOe?e[n]!==void 0:hOe.call(e,n)}var gOe=fOe,pOe=lR,mOe="__lodash_hash_undefined__";function _Oe(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=pOe&&e===void 0?mOe:e,this}var vOe=_Oe,bOe=tOe,yOe=iOe,COe=cOe,wOe=gOe,SOe=vOe;function x1(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}x1.prototype.clear=bOe,x1.prototype.delete=yOe,x1.prototype.get=COe,x1.prototype.has=wOe,x1.prototype.set=SOe;var xOe=x1;function EOe(){this.__data__=[],this.size=0}var kOe=EOe;function LOe(n,e){return n===e||n!==n&&e!==e}var m6=LOe,TOe=m6;function DOe(n,e){for(var t=n.length;t--;)if(TOe(n[t][0],e))return t;return-1}var cR=DOe,IOe=cR,ROe=Array.prototype,NOe=ROe.splice;function AOe(n){var e=this.__data__,t=IOe(e,n);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():NOe.call(e,t,1),--this.size,!0}var OOe=AOe,POe=cR;function MOe(n){var e=this.__data__,t=POe(e,n);return t<0?void 0:e[t][1]}var FOe=MOe,BOe=cR;function $Oe(n){return BOe(this.__data__,n)>-1}var WOe=$Oe,HOe=cR;function VOe(n,e){var t=this.__data__,i=HOe(t,n);return i<0?(++this.size,t.push([n,e])):t[i][1]=e,this}var zOe=VOe,UOe=kOe,jOe=OOe,qOe=FOe,KOe=WOe,GOe=zOe;function E1(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}E1.prototype.clear=UOe,E1.prototype.delete=jOe,E1.prototype.get=qOe,E1.prototype.has=KOe,E1.prototype.set=GOe;var uR=E1,YOe=M_,ZOe=vl,XOe=YOe(ZOe,"Map"),_6=XOe,Ste=xOe,QOe=uR,JOe=_6;function ePe(){this.size=0,this.__data__={hash:new Ste,map:new(JOe||QOe),string:new Ste}}var tPe=ePe;function nPe(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var iPe=nPe,rPe=iPe;function oPe(n,e){var t=n.__data__;return rPe(e)?t[typeof e=="string"?"string":"hash"]:t.map}var dR=oPe,sPe=dR;function aPe(n){var e=sPe(this,n).delete(n);return this.size-=e?1:0,e}var lPe=aPe,cPe=dR;function uPe(n){return cPe(this,n).get(n)}var dPe=uPe,hPe=dR;function fPe(n){return hPe(this,n).has(n)}var gPe=fPe,pPe=dR;function mPe(n,e){var t=pPe(this,n),i=t.size;return t.set(n,e),this.size+=t.size==i?0:1,this}var _Pe=mPe,vPe=tPe,bPe=lPe,yPe=dPe,CPe=gPe,wPe=_Pe;function k1(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}k1.prototype.clear=vPe,k1.prototype.delete=bPe,k1.prototype.get=yPe,k1.prototype.has=CPe,k1.prototype.set=wPe;var v6=k1,xte=v6,SPe="Expected a function";function b6(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(SPe);var t=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=t.cache;if(o.has(r))return o.get(r);var s=n.apply(this,i);return t.cache=o.set(r,s)||o,s};return t.cache=new(b6.Cache||xte),t}b6.Cache=xte;var xPe=b6,EPe=xPe,kPe=500;function LPe(n){var e=EPe(n,function(i){return t.size===kPe&&t.clear(),i}),t=e.cache;return e}var TPe=LPe,DPe=TPe,IPe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RPe=/\\(\\)?/g,NPe=DPe(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(IPe,function(t,i,r,o){e.push(r?o.replace(RPe,"$1"):i||t)}),e}),APe=NPe,Ete=w1,OPe=pte,PPe=Fu,MPe=Nx,FPe=1/0,kte=Ete?Ete.prototype:void 0,Lte=kte?kte.toString:void 0;function Tte(n){if(typeof n=="string")return n;if(PPe(n))return OPe(n,Tte)+"";if(MPe(n))return Lte?Lte.call(n):"";var e=n+"";return e=="0"&&1/n==-FPe?"-0":e}var BPe=Tte,$Pe=BPe;function WPe(n){return n==null?"":$Pe(n)}var L1=WPe,HPe=Fu,VPe=g6,zPe=APe,UPe=L1;function jPe(n,e){return HPe(n)?n:VPe(n,e)?[n]:zPe(UPe(n))}var T1=jPe,qPe=Nx,KPe=1/0;function GPe(n){if(typeof n=="string"||qPe(n))return n;var e=n+"";return e=="0"&&1/n==-KPe?"-0":e}var D1=GPe,YPe=T1,ZPe=D1;function XPe(n,e){e=YPe(e,n);for(var t=0,i=e.length;n!=null&&t<i;)n=n[ZPe(e[t++])];return t&&t==i?n:void 0}var hR=XPe,QPe=M_,JPe=function(){try{var n=QPe(Object,"defineProperty");return n({},"",{}),n}catch{}}(),Dte=JPe,Ite=Dte;function eMe(n,e,t){e=="__proto__"&&Ite?Ite(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}var Rte=eMe,tMe=Rte,nMe=m6,iMe=Object.prototype,rMe=iMe.hasOwnProperty;function oMe(n,e,t){var i=n[e];(!(rMe.call(n,e)&&nMe(i,t))||t===void 0&&!(e in n))&&tMe(n,e,t)}var y6=oMe,sMe=y6,aMe=T1,lMe=Ix,Nte=Ef,cMe=D1;function uMe(n,e,t,i){if(!Nte(n))return n;e=aMe(e,n);for(var r=-1,o=e.length,s=o-1,a=n;a!=null&&++r<o;){var l=cMe(e[r]),c=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return n;if(r!=s){var u=a[l];c=i?i(u,l,a):void 0,c===void 0&&(c=Nte(u)?u:lMe(e[r+1])?[]:{})}sMe(a,l,c),a=a[l]}return n}var dMe=uMe,hMe=hR,fMe=dMe,gMe=T1;function pMe(n,e,t){for(var i=-1,r=e.length,o={};++i<r;){var s=e[i],a=hMe(n,s);t(a,s)&&fMe(o,gMe(s,n),a)}return o}var mMe=pMe;function _Me(n,e){return n!=null&&e in Object(n)}var vMe=_Me,bMe=T1,yMe=a6,CMe=Fu,wMe=Ix,SMe=l6,xMe=D1;function EMe(n,e,t){e=bMe(e,n);for(var i=-1,r=e.length,o=!1;++i<r;){var s=xMe(e[i]);if(!(o=n!=null&&t(n,s)))break;n=n[s]}return o||++i!=r?o:(r=n==null?0:n.length,!!r&&SMe(r)&&wMe(s,r)&&(CMe(n)||yMe(n)))}var kMe=EMe,LMe=vMe,TMe=kMe;function DMe(n,e){return n!=null&&TMe(n,e,LMe)}var Ate=DMe,IMe=mMe,RMe=Ate;function NMe(n,e){return IMe(n,e,function(t,i){return RMe(n,i)})}var AMe=NMe;function OMe(n,e){for(var t=-1,i=e.length,r=n.length;++t<i;)n[r+t]=e[t];return n}var C6=OMe,Ote=w1,PMe=a6,MMe=Fu,Pte=Ote?Ote.isConcatSpreadable:void 0;function FMe(n){return MMe(n)||PMe(n)||!!(Pte&&n&&n[Pte])}var BMe=FMe,$Me=C6,WMe=BMe;function Mte(n,e,t,i,r){var o=-1,s=n.length;for(t||(t=WMe),r||(r=[]);++o<s;){var a=n[o];e>0&&t(a)?e>1?Mte(a,e-1,t,i,r):$Me(r,a):i||(r[r.length]=a)}return r}var HMe=Mte,VMe=HMe;function zMe(n){var e=n==null?0:n.length;return e?VMe(n,1):[]}var UMe=zMe;function jMe(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var w6=jMe,qMe=w6,Fte=Math.max;function KMe(n,e,t){return e=Fte(e===void 0?n.length-1:e,0),function(){for(var i=arguments,r=-1,o=Fte(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=t(s),qMe(n,this,a)}}var GMe=KMe;function YMe(n){return function(){return n}}var ZMe=YMe,XMe=ZMe,Bte=Dte,QMe=h6,JMe=Bte?function(n,e){return Bte(n,"toString",{configurable:!0,enumerable:!1,value:XMe(e),writable:!0})}:QMe,e4e=JMe,t4e=800,n4e=16,i4e=Date.now;function r4e(n){var e=0,t=0;return function(){var i=i4e(),r=n4e-(i-t);if(t=i,r>0){if(++e>=t4e)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var $te=r4e,o4e=e4e,s4e=$te,a4e=s4e(o4e),Wte=a4e,l4e=UMe,c4e=GMe,u4e=Wte;function d4e(n){return u4e(c4e(n,void 0,l4e),n+"")}var Hte=d4e,h4e=AMe,f4e=Hte,g4e=f4e(function(n,e){return n==null?{}:h4e(n,e)}),Vte=g4e,p4e=uR;function m4e(){this.__data__=new p4e,this.size=0}var _4e=m4e;function v4e(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}var b4e=v4e;function y4e(n){return this.__data__.get(n)}var C4e=y4e;function w4e(n){return this.__data__.has(n)}var S4e=w4e,x4e=uR,E4e=_6,k4e=v6,L4e=200;function T4e(n,e){var t=this.__data__;if(t instanceof x4e){var i=t.__data__;if(!E4e||i.length<L4e-1)return i.push([n,e]),this.size=++t.size,this;t=this.__data__=new k4e(i)}return t.set(n,e),this.size=t.size,this}var D4e=T4e,I4e=uR,R4e=_4e,N4e=b4e,A4e=C4e,O4e=S4e,P4e=D4e;function I1(n){var e=this.__data__=new I4e(n);this.size=e.size}I1.prototype.clear=R4e,I1.prototype.delete=N4e,I1.prototype.get=A4e,I1.prototype.has=O4e,I1.prototype.set=P4e;var S6=I1,M4e="__lodash_hash_undefined__";function F4e(n){return this.__data__.set(n,M4e),this}var B4e=F4e;function $4e(n){return this.__data__.has(n)}var W4e=$4e,H4e=v6,V4e=B4e,z4e=W4e;function fR(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new H4e;++e<t;)this.add(n[e])}fR.prototype.add=fR.prototype.push=V4e,fR.prototype.has=z4e;var U4e=fR;function j4e(n,e){for(var t=-1,i=n==null?0:n.length;++t<i;)if(e(n[t],t,n))return!0;return!1}var q4e=j4e;function K4e(n,e){return n.has(e)}var G4e=K4e,Y4e=U4e,Z4e=q4e,X4e=G4e,Q4e=1,J4e=2;function e5e(n,e,t,i,r,o){var s=t&Q4e,a=n.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(n),u=o.get(e);if(c&&u)return c==e&&u==n;var d=-1,h=!0,f=t&J4e?new Y4e:void 0;for(o.set(n,e),o.set(e,n);++d<a;){var g=n[d],p=e[d];if(i)var m=s?i(p,g,d,e,n,o):i(g,p,d,n,e,o);if(m!==void 0){if(m)continue;h=!1;break}if(f){if(!Z4e(e,function(v,_){if(!X4e(f,_)&&(g===v||r(g,v,t,i,o)))return f.push(_)})){h=!1;break}}else if(!(g===p||r(g,p,t,i,o))){h=!1;break}}return o.delete(n),o.delete(e),h}var zte=e5e,t5e=vl,n5e=t5e.Uint8Array,Ute=n5e;function i5e(n){var e=-1,t=Array(n.size);return n.forEach(function(i,r){t[++e]=[r,i]}),t}var r5e=i5e;function o5e(n){var e=-1,t=Array(n.size);return n.forEach(function(i){t[++e]=i}),t}var s5e=o5e,jte=w1,qte=Ute,a5e=m6,l5e=zte,c5e=r5e,u5e=s5e,d5e=1,h5e=2,f5e="[object Boolean]",g5e="[object Date]",p5e="[object Error]",m5e="[object Map]",_5e="[object Number]",v5e="[object RegExp]",b5e="[object Set]",y5e="[object String]",C5e="[object Symbol]",w5e="[object ArrayBuffer]",S5e="[object DataView]",Kte=jte?jte.prototype:void 0,x6=Kte?Kte.valueOf:void 0;function x5e(n,e,t,i,r,o,s){switch(t){case S5e:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case w5e:return!(n.byteLength!=e.byteLength||!o(new qte(n),new qte(e)));case f5e:case g5e:case _5e:return a5e(+n,+e);case p5e:return n.name==e.name&&n.message==e.message;case v5e:case y5e:return n==e+"";case m5e:var a=c5e;case b5e:var l=i&d5e;if(a||(a=u5e),n.size!=e.size&&!l)return!1;var c=s.get(n);if(c)return c==e;i|=h5e,s.set(n,e);var u=l5e(a(n),a(e),i,r,o,s);return s.delete(n),u;case C5e:if(x6)return x6.call(n)==x6.call(e)}return!1}var E5e=x5e,k5e=C6,L5e=Fu;function T5e(n,e,t){var i=e(n);return L5e(n)?i:k5e(i,t(n))}var Gte=T5e;function D5e(n,e){for(var t=-1,i=n==null?0:n.length,r=0,o=[];++t<i;){var s=n[t];e(s,t,n)&&(o[r++]=s)}return o}var I5e=D5e;function R5e(){return[]}var Yte=R5e,N5e=I5e,A5e=Yte,O5e=Object.prototype,P5e=O5e.propertyIsEnumerable,Zte=Object.getOwnPropertySymbols,M5e=Zte?function(n){return n==null?[]:(n=Object(n),N5e(Zte(n),function(e){return P5e.call(n,e)}))}:A5e,E6=M5e,F5e=Gte,B5e=E6,$5e=aR;function W5e(n){return F5e(n,$5e,B5e)}var Xte=W5e,Qte=Xte,H5e=1,V5e=Object.prototype,z5e=V5e.hasOwnProperty;function U5e(n,e,t,i,r,o){var s=t&H5e,a=Qte(n),l=a.length,c=Qte(e),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var h=a[d];if(!(s?h in e:z5e.call(e,h)))return!1}var f=o.get(n),g=o.get(e);if(f&&g)return f==e&&g==n;var p=!0;o.set(n,e),o.set(e,n);for(var m=s;++d<l;){h=a[d];var v=n[h],_=e[h];if(i)var y=s?i(_,v,h,e,n,o):i(v,_,h,n,e,o);if(!(y===void 0?v===_||r(v,_,t,i,o):y)){p=!1;break}m||(m=h=="constructor")}if(p&&!m){var b=n.constructor,w=e.constructor;b!=w&&"constructor"in n&&"constructor"in e&&!(typeof b=="function"&&b instanceof b&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(n),o.delete(e),p}var j5e=U5e,q5e=M_,K5e=vl,G5e=q5e(K5e,"DataView"),Y5e=G5e,Z5e=M_,X5e=vl,Q5e=Z5e(X5e,"Promise"),J5e=Q5e,eFe=M_,tFe=vl,nFe=eFe(tFe,"Set"),iFe=nFe,rFe=M_,oFe=vl,sFe=rFe(oFe,"WeakMap"),Jte=sFe,k6=Y5e,L6=_6,T6=J5e,D6=iFe,I6=Jte,ene=S1,R1=Cte,tne="[object Map]",aFe="[object Object]",nne="[object Promise]",ine="[object Set]",rne="[object WeakMap]",one="[object DataView]",lFe=R1(k6),cFe=R1(L6),uFe=R1(T6),dFe=R1(D6),hFe=R1(I6),F_=ene;(k6&&F_(new k6(new ArrayBuffer(1)))!=one||L6&&F_(new L6)!=tne||T6&&F_(T6.resolve())!=nne||D6&&F_(new D6)!=ine||I6&&F_(new I6)!=rne)&&(F_=function(n){var e=ene(n),t=e==aFe?n.constructor:void 0,i=t?R1(t):"";if(i)switch(i){case lFe:return one;case cFe:return tne;case uFe:return nne;case dFe:return ine;case hFe:return rne}return e});var gR=F_,R6=S6,fFe=zte,gFe=E5e,pFe=j5e,sne=gR,ane=Fu,lne=Dx.exports,mFe=lte,_Fe=1,cne="[object Arguments]",une="[object Array]",pR="[object Object]",vFe=Object.prototype,dne=vFe.hasOwnProperty;function bFe(n,e,t,i,r,o){var s=ane(n),a=ane(e),l=s?une:sne(n),c=a?une:sne(e);l=l==cne?pR:l,c=c==cne?pR:c;var u=l==pR,d=c==pR,h=l==c;if(h&&lne(n)){if(!lne(e))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new R6),s||mFe(n)?fFe(n,e,t,i,r,o):gFe(n,e,l,t,i,r,o);if(!(t&_Fe)){var f=u&&dne.call(n,"__wrapped__"),g=d&&dne.call(e,"__wrapped__");if(f||g){var p=f?n.value():n,m=g?e.value():e;return o||(o=new R6),r(p,m,t,i,o)}}return h?(o||(o=new R6),pFe(n,e,t,i,r,o)):!1}var yFe=bFe,CFe=yFe,hne=xf;function fne(n,e,t,i,r){return n===e?!0:n==null||e==null||!hne(n)&&!hne(e)?n!==n&&e!==e:CFe(n,e,t,i,fne,r)}var gne=fne,wFe=S6,SFe=gne,xFe=1,EFe=2;function kFe(n,e,t,i){var r=t.length,o=r,s=!i;if(n==null)return!o;for(n=Object(n);r--;){var a=t[r];if(s&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++r<o;){a=t[r];var l=a[0],c=n[l],u=a[1];if(s&&a[2]){if(c===void 0&&!(l in n))return!1}else{var d=new wFe;if(i)var h=i(c,u,l,n,e,d);if(!(h===void 0?SFe(u,c,xFe|EFe,i,d):h))return!1}}return!0}var LFe=kFe,TFe=Ef;function DFe(n){return n===n&&!TFe(n)}var pne=DFe,IFe=pne,RFe=aR;function NFe(n){for(var e=RFe(n),t=e.length;t--;){var i=e[t],r=n[i];e[t]=[i,r,IFe(r)]}return e}var AFe=NFe;function OFe(n,e){return function(t){return t==null?!1:t[n]===e&&(e!==void 0||n in Object(t))}}var mne=OFe,PFe=LFe,MFe=AFe,FFe=mne;function BFe(n){var e=MFe(n);return e.length==1&&e[0][2]?FFe(e[0][0],e[0][1]):function(t){return t===n||PFe(t,n,e)}}var $Fe=BFe,WFe=hR;function HFe(n,e,t){var i=n==null?void 0:WFe(n,e);return i===void 0?t:i}var Ax=HFe,VFe=gne,zFe=Ax,UFe=Ate,jFe=g6,qFe=pne,KFe=mne,GFe=D1,YFe=1,ZFe=2;function XFe(n,e){return jFe(n)&&qFe(e)?KFe(GFe(n),e):function(t){var i=zFe(t,n);return i===void 0&&i===e?UFe(t,n):VFe(e,i,YFe|ZFe)}}var QFe=XFe;function JFe(n){return function(e){return e==null?void 0:e[n]}}var e3e=JFe,t3e=hR;function n3e(n){return function(e){return t3e(e,n)}}var i3e=n3e,r3e=e3e,o3e=i3e,s3e=g6,a3e=D1;function l3e(n){return s3e(n)?r3e(a3e(n)):o3e(n)}var c3e=l3e,u3e=$Fe,d3e=QFe,h3e=h6,f3e=Fu,g3e=c3e;function p3e(n){return typeof n=="function"?n:n==null?h3e:typeof n=="object"?f3e(n)?d3e(n[0],n[1]):u3e(n):g3e(n)}var N6=p3e,m3e=ute,_3e=m3e(Object.getPrototypeOf,Object),A6=_3e,v3e=C6,b3e=A6,y3e=E6,C3e=Yte,w3e=Object.getOwnPropertySymbols,S3e=w3e?function(n){for(var e=[];n;)v3e(e,y3e(n)),n=b3e(n);return e}:C3e,_ne=S3e;function x3e(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var E3e=x3e,k3e=Ef,L3e=u6,T3e=E3e,D3e=Object.prototype,I3e=D3e.hasOwnProperty;function R3e(n){if(!k3e(n))return T3e(n);var e=L3e(n),t=[];for(var i in n)i=="constructor"&&(e||!I3e.call(n,i))||t.push(i);return t}var N3e=R3e,A3e=cte,O3e=N3e,P3e=dte;function M3e(n){return P3e(n)?A3e(n,!0):O3e(n)}var O6=M3e,F3e=Gte,B3e=_ne,$3e=O6;function W3e(n){return F3e(n,$3e,B3e)}var vne=W3e;function Do(n,e){if(e.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+e.length+" present")}function aa(n){Do(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||typeof n=="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function Zr(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function H3e(n){return Do(1,arguments),n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function V3e(n){if(Do(1,arguments),!H3e(n)&&typeof n!="number")return!1;var e=aa(n);return!isNaN(Number(e))}var z3e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},U3e=function(n,e,t){var i,r=z3e[n];return typeof r=="string"?i=r:e===1?i=r.one:i=r.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+i:i+" ago":i},bne=U3e;function N1(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,i=n.formats[t]||n.formats[n.defaultWidth];return i}}var j3e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},q3e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},K3e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},G3e={date:N1({formats:j3e,defaultWidth:"full"}),time:N1({formats:q3e,defaultWidth:"full"}),dateTime:N1({formats:K3e,defaultWidth:"full"})},Y3e=G3e,Z3e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},X3e=function(n,e,t,i){return Z3e[n]},yne=X3e;function Ox(n){return function(e,t){var i=t||{},r=i.context?String(i.context):"standalone",o;if(r==="formatting"&&n.formattingValues){var s=n.defaultFormattingWidth||n.defaultWidth,a=i.width?String(i.width):s;o=n.formattingValues[a]||n.formattingValues[s]}else{var l=n.defaultWidth,c=i.width?String(i.width):n.defaultWidth;o=n.values[c]||n.values[l]}var u=n.argumentCallback?n.argumentCallback(e):e;return o[u]}}var Q3e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},J3e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e8e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t8e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n8e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},i8e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},r8e=function(n,e){var t=Number(n),i=t%100;if(i>20||i<10)switch(i%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},o8e={ordinalNumber:r8e,era:Ox({values:Q3e,defaultWidth:"wide"}),quarter:Ox({values:J3e,defaultWidth:"wide",argumentCallback:function(n){return n-1}}),month:Ox({values:e8e,defaultWidth:"wide"}),day:Ox({values:t8e,defaultWidth:"wide"}),dayPeriod:Ox({values:n8e,defaultWidth:"wide",formattingValues:i8e,defaultFormattingWidth:"wide"})},Cne=o8e;function Px(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.width,r=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],o=e.match(r);if(!o)return null;var s=o[0],a=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(a)?a8e(a,function(d){return d.test(s)}):s8e(a,function(d){return d.test(s)}),c;c=n.valueCallback?n.valueCallback(l):l,c=t.valueCallback?t.valueCallback(c):c;var u=e.slice(s.length);return{value:c,rest:u}}}function s8e(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function a8e(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function l8e(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.match(n.matchPattern);if(!i)return null;var r=i[0],o=e.match(n.parsePattern);if(!o)return null;var s=n.valueCallback?n.valueCallback(o[0]):o[0];s=t.valueCallback?t.valueCallback(s):s;var a=e.slice(r.length);return{value:s,rest:a}}}var c8e=/^(\d+)(th|st|nd|rd)?/i,u8e=/\d+/i,d8e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},h8e={any:[/^b/i,/^(a|c)/i]},f8e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},g8e={any:[/1/i,/2/i,/3/i,/4/i]},p8e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},m8e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_8e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v8e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b8e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},y8e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},C8e={ordinalNumber:l8e({matchPattern:c8e,parsePattern:u8e,valueCallback:function(n){return parseInt(n,10)}}),era:Px({matchPatterns:d8e,defaultMatchWidth:"wide",parsePatterns:h8e,defaultParseWidth:"any"}),quarter:Px({matchPatterns:f8e,defaultMatchWidth:"wide",parsePatterns:g8e,defaultParseWidth:"any",valueCallback:function(n){return n+1}}),month:Px({matchPatterns:p8e,defaultMatchWidth:"wide",parsePatterns:m8e,defaultParseWidth:"any"}),day:Px({matchPatterns:_8e,defaultMatchWidth:"wide",parsePatterns:v8e,defaultParseWidth:"any"}),dayPeriod:Px({matchPatterns:b8e,defaultMatchWidth:"any",parsePatterns:y8e,defaultParseWidth:"any"})},wne=C8e,w8e={code:"en-US",formatDistance:bne,formatLong:Y3e,formatRelative:yne,localize:Cne,match:wne,options:{weekStartsOn:0,firstWeekContainsDate:1}},Sne=w8e;function S8e(n,e){Do(2,arguments);var t=aa(n).getTime(),i=Zr(e);return new Date(t+i)}function xne(n,e){Do(2,arguments);var t=Zr(e);return S8e(n,-t)}function Fi(n,e){for(var t=n<0?"-":"",i=Math.abs(n).toString();i.length<e;)i="0"+i;return t+i}var x8e={y:function(n,e){var t=n.getUTCFullYear(),i=t>0?t:1-t;return Fi(e==="yy"?i%100:i,e.length)},M:function(n,e){var t=n.getUTCMonth();return e==="M"?String(t+1):Fi(t+1,2)},d:function(n,e){return Fi(n.getUTCDate(),e.length)},a:function(n,e){var t=n.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h:function(n,e){return Fi(n.getUTCHours()%12||12,e.length)},H:function(n,e){return Fi(n.getUTCHours(),e.length)},m:function(n,e){return Fi(n.getUTCMinutes(),e.length)},s:function(n,e){return Fi(n.getUTCSeconds(),e.length)},S:function(n,e){var t=e.length,i=n.getUTCMilliseconds(),r=Math.floor(i*Math.pow(10,t-3));return Fi(r,e.length)}},xp=x8e,E8e=864e5;function k8e(n){Do(1,arguments);var e=aa(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var i=e.getTime(),r=t-i;return Math.floor(r/E8e)+1}function A1(n){Do(1,arguments);var e=1,t=aa(n),i=t.getUTCDay(),r=(i<e?7:0)+i-e;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function Ene(n){Do(1,arguments);var e=aa(n),t=e.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(t+1,0,4),i.setUTCHours(0,0,0,0);var r=A1(i),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var s=A1(o);return e.getTime()>=r.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function L8e(n){Do(1,arguments);var e=Ene(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var i=A1(t);return i}var T8e=6048e5;function kne(n){Do(1,arguments);var e=aa(n),t=A1(e).getTime()-L8e(e).getTime();return Math.round(t/T8e)+1}function B_(n,e){Do(1,arguments);var t=e||{},i=t.locale,r=i&&i.options&&i.options.weekStartsOn,o=r==null?0:Zr(r),s=t.weekStartsOn==null?o:Zr(t.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var a=aa(n),l=a.getUTCDay(),c=(l<s?7:0)+l-s;return a.setUTCDate(a.getUTCDate()-c),a.setUTCHours(0,0,0,0),a}function P6(n,e){Do(1,arguments);var t=aa(n),i=t.getUTCFullYear(),r=e||{},o=r.locale,s=o&&o.options&&o.options.firstWeekContainsDate,a=s==null?1:Zr(s),l=r.firstWeekContainsDate==null?a:Zr(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(i+1,0,l),c.setUTCHours(0,0,0,0);var u=B_(c,e),d=new Date(0);d.setUTCFullYear(i,0,l),d.setUTCHours(0,0,0,0);var h=B_(d,e);return t.getTime()>=u.getTime()?i+1:t.getTime()>=h.getTime()?i:i-1}function D8e(n,e){Do(1,arguments);var t=e||{},i=t.locale,r=i&&i.options&&i.options.firstWeekContainsDate,o=r==null?1:Zr(r),s=t.firstWeekContainsDate==null?o:Zr(t.firstWeekContainsDate),a=P6(n,e),l=new Date(0);l.setUTCFullYear(a,0,s),l.setUTCHours(0,0,0,0);var c=B_(l,e);return c}var I8e=6048e5;function Lne(n,e){Do(1,arguments);var t=aa(n),i=B_(t,e).getTime()-D8e(t,e).getTime();return Math.round(i/I8e)+1}var O1={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},R8e={G:function(n,e,t){var i=n.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(i,{width:"abbreviated"});case"GGGGG":return t.era(i,{width:"narrow"});case"GGGG":default:return t.era(i,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){var i=n.getUTCFullYear(),r=i>0?i:1-i;return t.ordinalNumber(r,{unit:"year"})}return xp.y(n,e)},Y:function(n,e,t,i){var r=P6(n,i),o=r>0?r:1-r;if(e==="YY"){var s=o%100;return Fi(s,2)}return e==="Yo"?t.ordinalNumber(o,{unit:"year"}):Fi(o,e.length)},R:function(n,e){var t=Ene(n);return Fi(t,e.length)},u:function(n,e){var t=n.getUTCFullYear();return Fi(t,e.length)},Q:function(n,e,t){var i=Math.ceil((n.getUTCMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return Fi(i,2);case"Qo":return t.ordinalNumber(i,{unit:"quarter"});case"QQQ":return t.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,e,t){var i=Math.ceil((n.getUTCMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return Fi(i,2);case"qo":return t.ordinalNumber(i,{unit:"quarter"});case"qqq":return t.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,e,t){var i=n.getUTCMonth();switch(e){case"M":case"MM":return xp.M(n,e);case"Mo":return t.ordinalNumber(i+1,{unit:"month"});case"MMM":return t.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(i,{width:"wide",context:"formatting"})}},L:function(n,e,t){var i=n.getUTCMonth();switch(e){case"L":return String(i+1);case"LL":return Fi(i+1,2);case"Lo":return t.ordinalNumber(i+1,{unit:"month"});case"LLL":return t.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(i,{width:"wide",context:"standalone"})}},w:function(n,e,t,i){var r=Lne(n,i);return e==="wo"?t.ordinalNumber(r,{unit:"week"}):Fi(r,e.length)},I:function(n,e,t){var i=kne(n);return e==="Io"?t.ordinalNumber(i,{unit:"week"}):Fi(i,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getUTCDate(),{unit:"date"}):xp.d(n,e)},D:function(n,e,t){var i=k8e(n);return e==="Do"?t.ordinalNumber(i,{unit:"dayOfYear"}):Fi(i,e.length)},E:function(n,e,t){var i=n.getUTCDay();switch(e){case"E":case"EE":case"EEE":return t.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(i,{width:"short",context:"formatting"});case"EEEE":default:return t.day(i,{width:"wide",context:"formatting"})}},e:function(n,e,t,i){var r=n.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return Fi(o,2);case"eo":return t.ordinalNumber(o,{unit:"day"});case"eee":return t.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(r,{width:"short",context:"formatting"});case"eeee":default:return t.day(r,{width:"wide",context:"formatting"})}},c:function(n,e,t,i){var r=n.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return Fi(o,e.length);case"co":return t.ordinalNumber(o,{unit:"day"});case"ccc":return t.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(r,{width:"narrow",context:"standalone"});case"cccccc":return t.day(r,{width:"short",context:"standalone"});case"cccc":default:return t.day(r,{width:"wide",context:"standalone"})}},i:function(n,e,t){var i=n.getUTCDay(),r=i===0?7:i;switch(e){case"i":return String(r);case"ii":return Fi(r,e.length);case"io":return t.ordinalNumber(r,{unit:"day"});case"iii":return t.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(i,{width:"short",context:"formatting"});case"iiii":default:return t.day(i,{width:"wide",context:"formatting"})}},a:function(n,e,t){var i=n.getUTCHours(),r=i/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,e,t){var i=n.getUTCHours(),r;switch(i===12?r=O1.noon:i===0?r=O1.midnight:r=i/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(n,e,t){var i=n.getUTCHours(),r;switch(i>=17?r=O1.evening:i>=12?r=O1.afternoon:i>=4?r=O1.morning:r=O1.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){var i=n.getUTCHours()%12;return i===0&&(i=12),t.ordinalNumber(i,{unit:"hour"})}return xp.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getUTCHours(),{unit:"hour"}):xp.H(n,e)},K:function(n,e,t){var i=n.getUTCHours()%12;return e==="Ko"?t.ordinalNumber(i,{unit:"hour"}):Fi(i,e.length)},k:function(n,e,t){var i=n.getUTCHours();return i===0&&(i=24),e==="ko"?t.ordinalNumber(i,{unit:"hour"}):Fi(i,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getUTCMinutes(),{unit:"minute"}):xp.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getUTCSeconds(),{unit:"second"}):xp.s(n,e)},S:function(n,e){return xp.S(n,e)},X:function(n,e,t,i){var r=i._originalDate||n,o=r.getTimezoneOffset();if(o===0)return"Z";switch(e){case"X":return Dne(o);case"XXXX":case"XX":return $_(o);case"XXXXX":case"XXX":default:return $_(o,":")}},x:function(n,e,t,i){var r=i._originalDate||n,o=r.getTimezoneOffset();switch(e){case"x":return Dne(o);case"xxxx":case"xx":return $_(o);case"xxxxx":case"xxx":default:return $_(o,":")}},O:function(n,e,t,i){var r=i._originalDate||n,o=r.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Tne(o,":");case"OOOO":default:return"GMT"+$_(o,":")}},z:function(n,e,t,i){var r=i._originalDate||n,o=r.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Tne(o,":");case"zzzz":default:return"GMT"+$_(o,":")}},t:function(n,e,t,i){var r=i._originalDate||n,o=Math.floor(r.getTime()/1e3);return Fi(o,e.length)},T:function(n,e,t,i){var r=i._originalDate||n,o=r.getTime();return Fi(o,e.length)}};function Tne(n,e){var t=n>0?"-":"+",i=Math.abs(n),r=Math.floor(i/60),o=i%60;return o===0?t+String(r):t+String(r)+e+Fi(o,2)}function Dne(n,e){if(n%60==0){var t=n>0?"-":"+";return t+Fi(Math.abs(n)/60,2)}return $_(n,e)}function $_(n,e){var t=e||"",i=n>0?"-":"+",r=Math.abs(n),o=Fi(Math.floor(r/60),2),s=Fi(r%60,2);return i+o+t+s}var N8e=R8e;function Ine(n,e){switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function Rne(n,e){switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function A8e(n,e){var t=n.match(/(P+)(p+)?/)||[],i=t[1],r=t[2];if(!r)return Ine(n,e);var o;switch(i){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",Ine(i,e)).replace("{{time}}",Rne(r,e))}var O8e={p:Rne,P:A8e},Nne=O8e;function Ane(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}var P8e=["D","DD"],M8e=["YY","YYYY"];function One(n){return P8e.indexOf(n)!==-1}function Pne(n){return M8e.indexOf(n)!==-1}function mR(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://git.io/fxCyr"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://git.io/fxCyr"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://git.io/fxCyr"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://git.io/fxCyr"))}var F8e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,B8e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$8e=/^'([^]*?)'?$/,W8e=/''/g,H8e=/[a-zA-Z]/;function V8e(n,e,t){Do(2,arguments);var i=String(e),r=t||{},o=r.locale||Sne,s=o.options&&o.options.firstWeekContainsDate,a=s==null?1:Zr(s),l=r.firstWeekContainsDate==null?a:Zr(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,u=c==null?0:Zr(c),d=r.weekStartsOn==null?u:Zr(r.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var h=aa(n);if(!V3e(h))throw new RangeError("Invalid time value");var f=Ane(h),g=xne(h,f),p={firstWeekContainsDate:l,weekStartsOn:d,locale:o,_originalDate:h},m=i.match(B8e).map(function(v){var _=v[0];if(_==="p"||_==="P"){var y=Nne[_];return y(v,o.formatLong,p)}return v}).join("").match(F8e).map(function(v){if(v==="''")return"'";var _=v[0];if(_==="'")return z8e(v);var y=N8e[_];if(y)return!r.useAdditionalWeekYearTokens&&Pne(v)&&mR(v,e,n),!r.useAdditionalDayOfYearTokens&&One(v)&&mR(v,e,n),y(g,v,o.localize,p);if(_.match(H8e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return v}).join("");return m}function z8e(n){return n.match($8e)[1].replace(W8e,"'")}function U8e(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");e=e||{};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function M6(n,e,t){Do(2,arguments);var i=t||{},r=i.locale,o=r&&r.options&&r.options.weekStartsOn,s=o==null?0:Zr(o),a=i.weekStartsOn==null?s:Zr(i.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=aa(n),c=Zr(e),u=l.getUTCDay(),d=c%7,h=(d+7)%7,f=(h<a?7:0)+c-u;return l.setUTCDate(l.getUTCDate()+f),l}function j8e(n,e){Do(2,arguments);var t=Zr(e);t%7==0&&(t=t-7);var i=1,r=aa(n),o=r.getUTCDay(),s=t%7,a=(s+7)%7,l=(a<i?7:0)+t-o;return r.setUTCDate(r.getUTCDate()+l),r}function q8e(n,e){Do(2,arguments);var t=aa(n),i=Zr(e),r=kne(t)-i;return t.setUTCDate(t.getUTCDate()-r*7),t}function K8e(n,e,t){Do(2,arguments);var i=aa(n),r=Zr(e),o=Lne(i,t)-r;return i.setUTCDate(i.getUTCDate()-o*7),i}var G8e=36e5,Y8e=6e4,Z8e=1e3,bo={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Vd={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Or(n,e,t){var i=e.match(n);if(!i)return null;var r=parseInt(i[0],10);return{value:t?t(r):r,rest:e.slice(i[0].length)}}function zd(n,e){var t=e.match(n);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var i=t[1]==="+"?1:-1,r=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:i*(r*G8e+o*Y8e+s*Z8e),rest:e.slice(t[0].length)}}function Mne(n,e){return Or(bo.anyDigitsSigned,n,e)}function Xr(n,e,t){switch(n){case 1:return Or(bo.singleDigit,e,t);case 2:return Or(bo.twoDigits,e,t);case 3:return Or(bo.threeDigits,e,t);case 4:return Or(bo.fourDigits,e,t);default:return Or(new RegExp("^\\d{1,"+n+"}"),e,t)}}function _R(n,e,t){switch(n){case 1:return Or(bo.singleDigitSigned,e,t);case 2:return Or(bo.twoDigitsSigned,e,t);case 3:return Or(bo.threeDigitsSigned,e,t);case 4:return Or(bo.fourDigitsSigned,e,t);default:return Or(new RegExp("^-?\\d{1,"+n+"}"),e,t)}}function F6(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Fne(n,e){var t=e>0,i=t?e:1-e,r;if(i<=50)r=n||100;else{var o=i+50,s=Math.floor(o/100)*100,a=n>=o%100;r=n+s-(a?100:0)}return t?r:1-r}var X8e=[31,28,31,30,31,30,31,31,30,31,30,31],Q8e=[31,29,31,30,31,30,31,31,30,31,30,31];function Bne(n){return n%400==0||n%4==0&&n%100!=0}var J8e={G:{priority:140,parse:function(n,e,t,i){switch(e){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"})||t.era(n,{width:"narrow"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})||t.era(n,{width:"abbreviated"})||t.era(n,{width:"narrow"})}},set:function(n,e,t,i){return e.era=t,n.setUTCFullYear(t,0,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(n,e,t,i){var r=function(o){return{year:o,isTwoDigitYear:e==="yy"}};switch(e){case"y":return Xr(4,n,r);case"yo":return t.ordinalNumber(n,{unit:"year",valueCallback:r});default:return Xr(e.length,n,r)}},validate:function(n,e,t){return e.isTwoDigitYear||e.year>0},set:function(n,e,t,i){var r=n.getUTCFullYear();if(t.isTwoDigitYear){var o=Fne(t.year,r);return n.setUTCFullYear(o,0,1),n.setUTCHours(0,0,0,0),n}var s=!("era"in e)||e.era===1?t.year:1-t.year;return n.setUTCFullYear(s,0,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(n,e,t,i){var r=function(o){return{year:o,isTwoDigitYear:e==="YY"}};switch(e){case"Y":return Xr(4,n,r);case"Yo":return t.ordinalNumber(n,{unit:"year",valueCallback:r});default:return Xr(e.length,n,r)}},validate:function(n,e,t){return e.isTwoDigitYear||e.year>0},set:function(n,e,t,i){var r=P6(n,i);if(t.isTwoDigitYear){var o=Fne(t.year,r);return n.setUTCFullYear(o,0,i.firstWeekContainsDate),n.setUTCHours(0,0,0,0),B_(n,i)}var s=!("era"in e)||e.era===1?t.year:1-t.year;return n.setUTCFullYear(s,0,i.firstWeekContainsDate),n.setUTCHours(0,0,0,0),B_(n,i)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(n,e,t,i){return _R(e==="R"?4:e.length,n)},set:function(n,e,t,i){var r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),A1(r)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(n,e,t,i){return _R(e==="u"?4:e.length,n)},set:function(n,e,t,i){return n.setUTCFullYear(t,0,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(n,e,t,i){switch(e){case"Q":case"QQ":return Xr(e.length,n);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"})||t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})||t.quarter(n,{width:"abbreviated",context:"formatting"})||t.quarter(n,{width:"narrow",context:"formatting"})}},validate:function(n,e,t){return e>=1&&e<=4},set:function(n,e,t,i){return n.setUTCMonth((t-1)*3,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(n,e,t,i){switch(e){case"q":case"qq":return Xr(e.length,n);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"})||t.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})||t.quarter(n,{width:"abbreviated",context:"standalone"})||t.quarter(n,{width:"narrow",context:"standalone"})}},validate:function(n,e,t){return e>=1&&e<=4},set:function(n,e,t,i){return n.setUTCMonth((t-1)*3,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(n,e,t,i){var r=function(o){return o-1};switch(e){case"M":return Or(bo.month,n,r);case"MM":return Xr(2,n,r);case"Mo":return t.ordinalNumber(n,{unit:"month",valueCallback:r});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"})||t.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})||t.month(n,{width:"abbreviated",context:"formatting"})||t.month(n,{width:"narrow",context:"formatting"})}},validate:function(n,e,t){return e>=0&&e<=11},set:function(n,e,t,i){return n.setUTCMonth(t,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(n,e,t,i){var r=function(o){return o-1};switch(e){case"L":return Or(bo.month,n,r);case"LL":return Xr(2,n,r);case"Lo":return t.ordinalNumber(n,{unit:"month",valueCallback:r});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"})||t.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})||t.month(n,{width:"abbreviated",context:"standalone"})||t.month(n,{width:"narrow",context:"standalone"})}},validate:function(n,e,t){return e>=0&&e<=11},set:function(n,e,t,i){return n.setUTCMonth(t,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(n,e,t,i){switch(e){case"w":return Or(bo.week,n);case"wo":return t.ordinalNumber(n,{unit:"week"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=1&&e<=53},set:function(n,e,t,i){return B_(K8e(n,t,i),i)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(n,e,t,i){switch(e){case"I":return Or(bo.week,n);case"Io":return t.ordinalNumber(n,{unit:"week"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=1&&e<=53},set:function(n,e,t,i){return A1(q8e(n,t,i),i)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(n,e,t,i){switch(e){case"d":return Or(bo.date,n);case"do":return t.ordinalNumber(n,{unit:"date"});default:return Xr(e.length,n)}},validate:function(n,e,t){var i=n.getUTCFullYear(),r=Bne(i),o=n.getUTCMonth();return r?e>=1&&e<=Q8e[o]:e>=1&&e<=X8e[o]},set:function(n,e,t,i){return n.setUTCDate(t),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(n,e,t,i){switch(e){case"D":case"DD":return Or(bo.dayOfYear,n);case"Do":return t.ordinalNumber(n,{unit:"date"});default:return Xr(e.length,n)}},validate:function(n,e,t){var i=n.getUTCFullYear(),r=Bne(i);return r?e>=1&&e<=366:e>=1&&e<=365},set:function(n,e,t,i){return n.setUTCMonth(0,t),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(n,e,t,i){switch(e){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"})||t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})||t.day(n,{width:"abbreviated",context:"formatting"})||t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"})}},validate:function(n,e,t){return e>=0&&e<=6},set:function(n,e,t,i){return n=M6(n,t,i),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(n,e,t,i){var r=function(o){var s=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+s};switch(e){case"e":case"ee":return Xr(e.length,n,r);case"eo":return t.ordinalNumber(n,{unit:"day",valueCallback:r});case"eee":return t.day(n,{width:"abbreviated",context:"formatting"})||t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"});case"eeeee":return t.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return t.day(n,{width:"wide",context:"formatting"})||t.day(n,{width:"abbreviated",context:"formatting"})||t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"})}},validate:function(n,e,t){return e>=0&&e<=6},set:function(n,e,t,i){return n=M6(n,t,i),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(n,e,t,i){var r=function(o){var s=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+s};switch(e){case"c":case"cc":return Xr(e.length,n,r);case"co":return t.ordinalNumber(n,{unit:"day",valueCallback:r});case"ccc":return t.day(n,{width:"abbreviated",context:"standalone"})||t.day(n,{width:"short",context:"standalone"})||t.day(n,{width:"narrow",context:"standalone"});case"ccccc":return t.day(n,{width:"narrow",context:"standalone"});case"cccccc":return t.day(n,{width:"short",context:"standalone"})||t.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return t.day(n,{width:"wide",context:"standalone"})||t.day(n,{width:"abbreviated",context:"standalone"})||t.day(n,{width:"short",context:"standalone"})||t.day(n,{width:"narrow",context:"standalone"})}},validate:function(n,e,t){return e>=0&&e<=6},set:function(n,e,t,i){return n=M6(n,t,i),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(n,e,t,i){var r=function(o){return o===0?7:o};switch(e){case"i":case"ii":return Xr(e.length,n);case"io":return t.ordinalNumber(n,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting",valueCallback:r})||t.day(n,{width:"short",context:"formatting",valueCallback:r})||t.day(n,{width:"narrow",context:"formatting",valueCallback:r});case"iiiii":return t.day(n,{width:"narrow",context:"formatting",valueCallback:r});case"iiiiii":return t.day(n,{width:"short",context:"formatting",valueCallback:r})||t.day(n,{width:"narrow",context:"formatting",valueCallback:r});case"iiii":default:return t.day(n,{width:"wide",context:"formatting",valueCallback:r})||t.day(n,{width:"abbreviated",context:"formatting",valueCallback:r})||t.day(n,{width:"short",context:"formatting",valueCallback:r})||t.day(n,{width:"narrow",context:"formatting",valueCallback:r})}},validate:function(n,e,t){return e>=1&&e<=7},set:function(n,e,t,i){return n=j8e(n,t,i),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(n,e,t,i){switch(e){case"a":case"aa":case"aaa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})||t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"})}},set:function(n,e,t,i){return n.setUTCHours(F6(t),0,0,0),n},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(n,e,t,i){switch(e){case"b":case"bb":case"bbb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})||t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"})}},set:function(n,e,t,i){return n.setUTCHours(F6(t),0,0,0),n},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(n,e,t,i){switch(e){case"B":case"BB":case"BBB":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})||t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"})}},set:function(n,e,t,i){return n.setUTCHours(F6(t),0,0,0),n},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(n,e,t,i){switch(e){case"h":return Or(bo.hour12h,n);case"ho":return t.ordinalNumber(n,{unit:"hour"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=1&&e<=12},set:function(n,e,t,i){var r=n.getUTCHours()>=12;return r&&t<12?n.setUTCHours(t+12,0,0,0):!r&&t===12?n.setUTCHours(0,0,0,0):n.setUTCHours(t,0,0,0),n},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(n,e,t,i){switch(e){case"H":return Or(bo.hour23h,n);case"Ho":return t.ordinalNumber(n,{unit:"hour"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=0&&e<=23},set:function(n,e,t,i){return n.setUTCHours(t,0,0,0),n},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(n,e,t,i){switch(e){case"K":return Or(bo.hour11h,n);case"Ko":return t.ordinalNumber(n,{unit:"hour"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=0&&e<=11},set:function(n,e,t,i){var r=n.getUTCHours()>=12;return r&&t<12?n.setUTCHours(t+12,0,0,0):n.setUTCHours(t,0,0,0),n},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(n,e,t,i){switch(e){case"k":return Or(bo.hour24h,n);case"ko":return t.ordinalNumber(n,{unit:"hour"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=1&&e<=24},set:function(n,e,t,i){var r=t<=24?t%24:t;return n.setUTCHours(r,0,0,0),n},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(n,e,t,i){switch(e){case"m":return Or(bo.minute,n);case"mo":return t.ordinalNumber(n,{unit:"minute"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=0&&e<=59},set:function(n,e,t,i){return n.setUTCMinutes(t,0,0),n},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(n,e,t,i){switch(e){case"s":return Or(bo.second,n);case"so":return t.ordinalNumber(n,{unit:"second"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=0&&e<=59},set:function(n,e,t,i){return n.setUTCSeconds(t,0),n},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(n,e,t,i){var r=function(o){return Math.floor(o*Math.pow(10,-e.length+3))};return Xr(e.length,n,r)},set:function(n,e,t,i){return n.setUTCMilliseconds(t),n},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(n,e,t,i){switch(e){case"X":return zd(Vd.basicOptionalMinutes,n);case"XX":return zd(Vd.basic,n);case"XXXX":return zd(Vd.basicOptionalSeconds,n);case"XXXXX":return zd(Vd.extendedOptionalSeconds,n);case"XXX":default:return zd(Vd.extended,n)}},set:function(n,e,t,i){return e.timestampIsSet?n:new Date(n.getTime()-t)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(n,e,t,i){switch(e){case"x":return zd(Vd.basicOptionalMinutes,n);case"xx":return zd(Vd.basic,n);case"xxxx":return zd(Vd.basicOptionalSeconds,n);case"xxxxx":return zd(Vd.extendedOptionalSeconds,n);case"xxx":default:return zd(Vd.extended,n)}},set:function(n,e,t,i){return e.timestampIsSet?n:new Date(n.getTime()-t)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(n,e,t,i){return Mne(n)},set:function(n,e,t,i){return[new Date(t*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(n,e,t,i){return Mne(n)},set:function(n,e,t,i){return[new Date(t),{timestampIsSet:!0}]},incompatibleTokens:"*"}},e6e=J8e,t6e=10,n6e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,i6e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,r6e=/^'([^]*?)'?$/,o6e=/''/g,s6e=/\S/,a6e=/[a-zA-Z]/;function l6e(n,e,t,i){Do(3,arguments);var r=String(n),o=String(e),s=i||{},a=s.locale||Sne;if(!a.match)throw new RangeError("locale must contain match property");var l=a.options&&a.options.firstWeekContainsDate,c=l==null?1:Zr(l),u=s.firstWeekContainsDate==null?c:Zr(s.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=a.options&&a.options.weekStartsOn,h=d==null?0:Zr(d),f=s.weekStartsOn==null?h:Zr(s.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(o==="")return r===""?aa(t):new Date(NaN);var g={firstWeekContainsDate:u,weekStartsOn:f,locale:a},p=[{priority:t6e,subPriority:-1,set:c6e,index:0}],m,v=o.match(i6e).map(function(F){var M=F[0];if(M==="p"||M==="P"){var W=Nne[M];return W(F,a.formatLong,g)}return F}).join("").match(n6e),_=[];for(m=0;m<v.length;m++){var y=v[m];!s.useAdditionalWeekYearTokens&&Pne(y)&&mR(y,o,n),!s.useAdditionalDayOfYearTokens&&One(y)&&mR(y,o,n);var b=y[0],w=e6e[b];if(w){var x=w.incompatibleTokens;if(Array.isArray(x)){for(var S=void 0,k=0;k<_.length;k++){var T=_[k].token;if(x.indexOf(T)!==-1||T===b){S=_[k];break}}if(S)throw new RangeError("The format string mustn't contain `".concat(S.fullToken,"` and `").concat(y,"` at the same time"))}else if(w.incompatibleTokens==="*"&&_.length)throw new RangeError("The format string mustn't contain `".concat(y,"` and any other token at the same time"));_.push({token:b,fullToken:y});var D=w.parse(r,y,a.match,g);if(!D)return new Date(NaN);p.push({priority:w.priority,subPriority:w.subPriority||0,set:w.set,validate:w.validate,value:D.value,index:p.length}),r=D.rest}else{if(b.match(a6e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");if(y==="''"?y="'":b==="'"&&(y=u6e(y)),r.indexOf(y)===0)r=r.slice(y.length);else return new Date(NaN)}}if(r.length>0&&s6e.test(r))return new Date(NaN);var R=p.map(function(F){return F.priority}).sort(function(F,M){return M-F}).filter(function(F,M,W){return W.indexOf(F)===M}).map(function(F){return p.filter(function(M){return M.priority===F}).sort(function(M,W){return W.subPriority-M.subPriority})}).map(function(F){return F[0]}),N=aa(t);if(isNaN(N))return new Date(NaN);var A=xne(N,Ane(N)),V={};for(m=0;m<R.length;m++){var P=R[m];if(P.validate&&!P.validate(A,P.value,g))return new Date(NaN);var U=P.set(A,V,P.value,g);U[0]?(A=U[0],U8e(V,U[1])):A=U}return A}function c6e(n,e){if(e.timestampIsSet)return n;var t=new Date(0);return t.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),t.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),t}function u6e(n){return n.match(r6e)[1].replace(o6e,"'")}var d6e=X.oneOfType([X.func,X.any]),$ne={},B6={exports:{}},la={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(la);var Gc={exports:{}},Wne=qD(kRe),$6={exports:{}},Hne={exports:{}};(function(n){function e(t,i){if(t==null)return{};var r={},o=Object.keys(t),s,a;for(a=0;a<o.length;a++)s=o[a],!(i.indexOf(s)>=0)&&(r[s]=t[s]);return r}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(Hne);var Mx={exports:{}};/*!
|
|
60
|
+
}`;var Wn=OLe(function(){return Di(he,Gt+"return "+ut).apply(t,we)});if(Wn.source=ut,WZ(Wn))throw Wn;return Wn}function c7t(C){return Mi(C).toLowerCase()}function u7t(C){return Mi(C).toUpperCase()}function d7t(C,E,I){if(C=Mi(C),C&&(I||E===t))return zEe(C);if(!C||!(E=Bc(E)))return C;var H=Dd(C),ie=Dd(E),he=UEe(H,ie),we=jEe(H,ie)+1;return b_(H,he,we).join("")}function h7t(C,E,I){if(C=Mi(C),C&&(I||E===t))return C.slice(0,KEe(C)+1);if(!C||!(E=Bc(E)))return C;var H=Dd(C),ie=jEe(H,Dd(E))+1;return b_(H,0,ie).join("")}function f7t(C,E,I){if(C=Mi(C),C&&(I||E===t))return C.replace(ce,"");if(!C||!(E=Bc(E)))return C;var H=Dd(C),ie=UEe(H,Dd(E));return b_(H,ie).join("")}function g7t(C,E){var I=D,H=R;if(qr(E)){var ie="separator"in E?E.separator:ie;I="length"in E?Bn(E.length):I,H="omission"in E?Bc(E.omission):H}C=Mi(C);var he=C.length;if(mS(C)){var we=Dd(C);he=we.length}if(I>=he)return C;var Le=I-_S(H);if(Le<1)return H;var Ae=we?b_(we,0,Le).join(""):C.slice(0,Le);if(ie===t)return Ae+H;if(we&&(Le+=Ae.length-Le),HZ(ie)){if(C.slice(Le).search(ie)){var rt,ot=Ae;for(ie.global||(ie=iZ(ie.source,Mi(Ut.exec(ie))+"g")),ie.lastIndex=0;rt=ie.exec(ot);)var ut=rt.index;Ae=Ae.slice(0,ut===t?Le:ut)}}else if(C.indexOf(Bc(ie),Le)!=Le){var Rt=Ae.lastIndexOf(ie);Rt>-1&&(Ae=Ae.slice(0,Rt))}return Ae+H}function p7t(C){return C=Mi(C),C&&Yo.test(C)?C.replace(ka,UFt):C}var m7t=xS(function(C,E,I){return C+(I?" ":"")+E.toUpperCase()}),UZ=Pke("toUpperCase");function ALe(C,E,I){return C=Mi(C),E=I?t:E,E===t?$Ft(C)?KFt(C):IFt(C):C.match(E)||[]}var OLe=zn(function(C,E){try{return Mc(C,t,E)}catch(I){return WZ(I)?I:new Tn(I)}}),_7t=Zg(function(C,E){return xu(E,function(I){I=gf(I),Gg(C,I,BZ(C[I],C))}),C});function v7t(C){var E=C==null?0:C.length,I=on();return C=E?Ar(C,function(H){if(typeof H[1]!="function")throw new Eu(s);return[I(H[0]),H[1]]}):[],zn(function(H){for(var ie=-1;++ie<E;){var he=C[ie];if(Mc(he[0],this,H))return Mc(he[1],this,H)}})}function b7t(C){return U3t(Lu(C,d))}function jZ(C){return function(){return C}}function y7t(C,E){return C==null||C!==C?E:C}var C7t=Fke(),w7t=Fke(!0);function Zl(C){return C}function qZ(C){return fke(typeof C=="function"?C:Lu(C,d))}function S7t(C){return pke(Lu(C,d))}function x7t(C,E){return mke(C,Lu(E,d))}var E7t=zn(function(C,E){return function(I){return MD(I,C,E)}}),k7t=zn(function(C,E){return function(I){return MD(C,I,E)}});function KZ(C,E,I){var H=As(E),ie=rF(E,H);I==null&&!(qr(E)&&(ie.length||!H.length))&&(I=E,E=C,C=this,ie=rF(E,As(E)));var he=!(qr(I)&&"chain"in I)||!!I.chain,we=Qg(C);return xu(ie,function(Le){var Ae=E[Le];C[Le]=Ae,we&&(C.prototype[Le]=function(){var rt=this.__chain__;if(he||rt){var ot=C(this.__wrapped__),ut=ot.__actions__=Kl(this.__actions__);return ut.push({func:Ae,args:arguments,thisArg:C}),ot.__chain__=rt,ot}return Ae.apply(C,f_([this.value()],arguments))})}),C}function L7t(){return fr._===this&&(fr._=JFt),this}function GZ(){}function T7t(C){return C=Bn(C),zn(function(E){return _ke(E,C)})}var D7t=EZ(Ar),I7t=EZ(BEe),R7t=EZ(ZY);function PLe(C){return NZ(C)?XY(gf(C)):a8t(C)}function N7t(C){return function(E){return C==null?t:Fb(C,E)}}var A7t=$ke(),O7t=$ke(!0);function YZ(){return[]}function ZZ(){return!1}function P7t(){return{}}function M7t(){return""}function F7t(){return!0}function B7t(C,E){if(C=Bn(C),C<1||C>M)return[];var I=$,H=Ia(C,$);E=on(E),C-=$;for(var ie=eZ(H,E);++I<C;)E(I);return ie}function $7t(C){return Rn(C)?Ar(C,gf):$c(C)?[C]:Kl(tLe(Mi(C)))}function W7t(C){var E=++XFt;return Mi(C)+E}var H7t=uF(function(C,E){return C+E},0),V7t=kZ("ceil"),z7t=uF(function(C,E){return C/E},1),U7t=kZ("floor");function j7t(C){return C&&C.length?iF(C,Zl,dZ):t}function q7t(C,E){return C&&C.length?iF(C,on(E,2),dZ):t}function K7t(C){return HEe(C,Zl)}function G7t(C,E){return HEe(C,on(E,2))}function Y7t(C){return C&&C.length?iF(C,Zl,pZ):t}function Z7t(C,E){return C&&C.length?iF(C,on(E,2),pZ):t}var X7t=uF(function(C,E){return C*E},1),Q7t=kZ("round"),J7t=uF(function(C,E){return C-E},0);function e$t(C){return C&&C.length?JY(C,Zl):0}function t$t(C,E){return C&&C.length?JY(C,on(E,2)):0}return ae.after=SBt,ae.ary=hLe,ae.assign=u9t,ae.assignIn=kLe,ae.assignInWith=SF,ae.assignWith=d9t,ae.at=h9t,ae.before=fLe,ae.bind=BZ,ae.bindAll=_7t,ae.bindKey=gLe,ae.castArray=PBt,ae.chain=cLe,ae.chunk=U8t,ae.compact=j8t,ae.concat=q8t,ae.cond=v7t,ae.conforms=b7t,ae.constant=jZ,ae.countBy=eBt,ae.create=f9t,ae.curry=pLe,ae.curryRight=mLe,ae.debounce=_Le,ae.defaults=g9t,ae.defaultsDeep=p9t,ae.defer=xBt,ae.delay=EBt,ae.difference=K8t,ae.differenceBy=G8t,ae.differenceWith=Y8t,ae.drop=Z8t,ae.dropRight=X8t,ae.dropRightWhile=Q8t,ae.dropWhile=J8t,ae.fill=e6t,ae.filter=nBt,ae.flatMap=oBt,ae.flatMapDeep=sBt,ae.flatMapDepth=aBt,ae.flatten=oLe,ae.flattenDeep=t6t,ae.flattenDepth=n6t,ae.flip=kBt,ae.flow=C7t,ae.flowRight=w7t,ae.fromPairs=i6t,ae.functions=w9t,ae.functionsIn=S9t,ae.groupBy=lBt,ae.initial=o6t,ae.intersection=s6t,ae.intersectionBy=a6t,ae.intersectionWith=l6t,ae.invert=E9t,ae.invertBy=k9t,ae.invokeMap=uBt,ae.iteratee=qZ,ae.keyBy=dBt,ae.keys=As,ae.keysIn=Yl,ae.map=_F,ae.mapKeys=T9t,ae.mapValues=D9t,ae.matches=S7t,ae.matchesProperty=x7t,ae.memoize=bF,ae.merge=I9t,ae.mergeWith=LLe,ae.method=E7t,ae.methodOf=k7t,ae.mixin=KZ,ae.negate=yF,ae.nthArg=T7t,ae.omit=R9t,ae.omitBy=N9t,ae.once=LBt,ae.orderBy=hBt,ae.over=D7t,ae.overArgs=TBt,ae.overEvery=I7t,ae.overSome=R7t,ae.partial=$Z,ae.partialRight=vLe,ae.partition=fBt,ae.pick=A9t,ae.pickBy=TLe,ae.property=PLe,ae.propertyOf=N7t,ae.pull=h6t,ae.pullAll=aLe,ae.pullAllBy=f6t,ae.pullAllWith=g6t,ae.pullAt=p6t,ae.range=A7t,ae.rangeRight=O7t,ae.rearg=DBt,ae.reject=mBt,ae.remove=m6t,ae.rest=IBt,ae.reverse=MZ,ae.sampleSize=vBt,ae.set=P9t,ae.setWith=M9t,ae.shuffle=bBt,ae.slice=_6t,ae.sortBy=wBt,ae.sortedUniq=x6t,ae.sortedUniqBy=E6t,ae.split=o7t,ae.spread=RBt,ae.tail=k6t,ae.take=L6t,ae.takeRight=T6t,ae.takeRightWhile=D6t,ae.takeWhile=I6t,ae.tap=j6t,ae.throttle=NBt,ae.thru=mF,ae.toArray=SLe,ae.toPairs=DLe,ae.toPairsIn=ILe,ae.toPath=$7t,ae.toPlainObject=ELe,ae.transform=F9t,ae.unary=ABt,ae.union=R6t,ae.unionBy=N6t,ae.unionWith=A6t,ae.uniq=O6t,ae.uniqBy=P6t,ae.uniqWith=M6t,ae.unset=B9t,ae.unzip=FZ,ae.unzipWith=lLe,ae.update=$9t,ae.updateWith=W9t,ae.values=LS,ae.valuesIn=H9t,ae.without=F6t,ae.words=ALe,ae.wrap=OBt,ae.xor=B6t,ae.xorBy=$6t,ae.xorWith=W6t,ae.zip=H6t,ae.zipObject=V6t,ae.zipObjectDeep=z6t,ae.zipWith=U6t,ae.entries=DLe,ae.entriesIn=ILe,ae.extend=kLe,ae.extendWith=SF,KZ(ae,ae),ae.add=H7t,ae.attempt=OLe,ae.camelCase=j9t,ae.capitalize=RLe,ae.ceil=V7t,ae.clamp=V9t,ae.clone=MBt,ae.cloneDeep=BBt,ae.cloneDeepWith=$Bt,ae.cloneWith=FBt,ae.conformsTo=WBt,ae.deburr=NLe,ae.defaultTo=y7t,ae.divide=z7t,ae.endsWith=q9t,ae.eq=Rd,ae.escape=K9t,ae.escapeRegExp=G9t,ae.every=tBt,ae.find=iBt,ae.findIndex=iLe,ae.findKey=m9t,ae.findLast=rBt,ae.findLastIndex=rLe,ae.findLastKey=_9t,ae.floor=U7t,ae.forEach=uLe,ae.forEachRight=dLe,ae.forIn=v9t,ae.forInRight=b9t,ae.forOwn=y9t,ae.forOwnRight=C9t,ae.get=VZ,ae.gt=HBt,ae.gte=VBt,ae.has=x9t,ae.hasIn=zZ,ae.head=sLe,ae.identity=Zl,ae.includes=cBt,ae.indexOf=r6t,ae.inRange=z9t,ae.invoke=L9t,ae.isArguments=Wb,ae.isArray=Rn,ae.isArrayBuffer=zBt,ae.isArrayLike=Gl,ae.isArrayLikeObject=Lo,ae.isBoolean=UBt,ae.isBuffer=y_,ae.isDate=jBt,ae.isElement=qBt,ae.isEmpty=KBt,ae.isEqual=GBt,ae.isEqualWith=YBt,ae.isError=WZ,ae.isFinite=ZBt,ae.isFunction=Qg,ae.isInteger=bLe,ae.isLength=CF,ae.isMap=yLe,ae.isMatch=XBt,ae.isMatchWith=QBt,ae.isNaN=JBt,ae.isNative=e9t,ae.isNil=n9t,ae.isNull=t9t,ae.isNumber=CLe,ae.isObject=qr,ae.isObjectLike=mo,ae.isPlainObject=VD,ae.isRegExp=HZ,ae.isSafeInteger=i9t,ae.isSet=wLe,ae.isString=wF,ae.isSymbol=$c,ae.isTypedArray=kS,ae.isUndefined=r9t,ae.isWeakMap=o9t,ae.isWeakSet=s9t,ae.join=c6t,ae.kebabCase=Y9t,ae.last=Du,ae.lastIndexOf=u6t,ae.lowerCase=Z9t,ae.lowerFirst=X9t,ae.lt=a9t,ae.lte=l9t,ae.max=j7t,ae.maxBy=q7t,ae.mean=K7t,ae.meanBy=G7t,ae.min=Y7t,ae.minBy=Z7t,ae.stubArray=YZ,ae.stubFalse=ZZ,ae.stubObject=P7t,ae.stubString=M7t,ae.stubTrue=F7t,ae.multiply=X7t,ae.nth=d6t,ae.noConflict=L7t,ae.noop=GZ,ae.now=vF,ae.pad=Q9t,ae.padEnd=J9t,ae.padStart=e7t,ae.parseInt=t7t,ae.random=U9t,ae.reduce=gBt,ae.reduceRight=pBt,ae.repeat=n7t,ae.replace=i7t,ae.result=O9t,ae.round=Q7t,ae.runInContext=Re,ae.sample=_Bt,ae.size=yBt,ae.snakeCase=r7t,ae.some=CBt,ae.sortedIndex=v6t,ae.sortedIndexBy=b6t,ae.sortedIndexOf=y6t,ae.sortedLastIndex=C6t,ae.sortedLastIndexBy=w6t,ae.sortedLastIndexOf=S6t,ae.startCase=s7t,ae.startsWith=a7t,ae.subtract=J7t,ae.sum=e$t,ae.sumBy=t$t,ae.template=l7t,ae.times=B7t,ae.toFinite=Jg,ae.toInteger=Bn,ae.toLength=xLe,ae.toLower=c7t,ae.toNumber=Iu,ae.toSafeInteger=c9t,ae.toString=Mi,ae.toUpper=u7t,ae.trim=d7t,ae.trimEnd=h7t,ae.trimStart=f7t,ae.truncate=g7t,ae.unescape=p7t,ae.uniqueId=W7t,ae.upperCase=m7t,ae.upperFirst=UZ,ae.each=uLe,ae.eachRight=dLe,ae.first=sLe,KZ(ae,function(){var C={};return hf(ae,function(E,I){Hi.call(ae.prototype,I)||(C[I]=E)}),C}(),{chain:!1}),ae.VERSION=i,xu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(C){ae[C].placeholder=ae}),xu(["drop","take"],function(C,E){ni.prototype[C]=function(I){I=I===t?1:fs(Bn(I),0);var H=this.__filtered__&&!E?new ni(this):this.clone();return H.__filtered__?H.__takeCount__=Ia(I,H.__takeCount__):H.__views__.push({size:Ia(I,$),type:C+(H.__dir__<0?"Right":"")}),H},ni.prototype[C+"Right"]=function(I){return this.reverse()[C](I).reverse()}}),xu(["filter","map","takeWhile"],function(C,E){var I=E+1,H=I==V||I==U;ni.prototype[C]=function(ie){var he=this.clone();return he.__iteratees__.push({iteratee:on(ie,3),type:I}),he.__filtered__=he.__filtered__||H,he}}),xu(["head","last"],function(C,E){var I="take"+(E?"Right":"");ni.prototype[C]=function(){return this[I](1).value()[0]}}),xu(["initial","tail"],function(C,E){var I="drop"+(E?"":"Right");ni.prototype[C]=function(){return this.__filtered__?new ni(this):this[I](1)}}),ni.prototype.compact=function(){return this.filter(Zl)},ni.prototype.find=function(C){return this.filter(C).head()},ni.prototype.findLast=function(C){return this.reverse().find(C)},ni.prototype.invokeMap=zn(function(C,E){return typeof C=="function"?new ni(this):this.map(function(I){return MD(I,C,E)})}),ni.prototype.reject=function(C){return this.filter(yF(on(C)))},ni.prototype.slice=function(C,E){C=Bn(C);var I=this;return I.__filtered__&&(C>0||E<0)?new ni(I):(C<0?I=I.takeRight(-C):C&&(I=I.drop(C)),E!==t&&(E=Bn(E),I=E<0?I.dropRight(-E):I.take(E-C)),I)},ni.prototype.takeRightWhile=function(C){return this.reverse().takeWhile(C).reverse()},ni.prototype.toArray=function(){return this.take($)},hf(ni.prototype,function(C,E){var I=/^(?:filter|find|map|reject)|While$/.test(E),H=/^(?:head|last)$/.test(E),ie=ae[H?"take"+(E=="last"?"Right":""):E],he=H||/^find/.test(E);!ie||(ae.prototype[E]=function(){var we=this.__wrapped__,Le=H?[1]:arguments,Ae=we instanceof ni,rt=Le[0],ot=Ae||Rn(we),ut=function(Jn){var si=ie.apply(ae,f_([Jn],Le));return H&&Rt?si[0]:si};ot&&I&&typeof rt=="function"&&rt.length!=1&&(Ae=ot=!1);var Rt=this.__chain__,Gt=!!this.__actions__.length,cn=he&&!Rt,Wn=Ae&&!Gt;if(!he&&ot){we=Wn?we:new ni(this);var un=C.apply(we,Le);return un.__actions__.push({func:mF,args:[ut],thisArg:t}),new ku(un,Rt)}return cn&&Wn?C.apply(this,Le):(un=this.thru(ut),cn?H?un.value()[0]:un.value():un)})}),xu(["pop","push","shift","sort","splice","unshift"],function(C){var E=V5[C],I=/^(?:push|sort|unshift)$/.test(C)?"tap":"thru",H=/^(?:pop|shift)$/.test(C);ae.prototype[C]=function(){var ie=arguments;if(H&&!this.__chain__){var he=this.value();return E.apply(Rn(he)?he:[],ie)}return this[I](function(we){return E.apply(Rn(we)?we:[],ie)})}}),hf(ni.prototype,function(C,E){var I=ae[E];if(I){var H=I.name+"";Hi.call(CS,H)||(CS[H]=[]),CS[H].push({name:E,func:I})}}),CS[cF(t,v).name]=[{name:"wrapper",func:t}],ni.prototype.clone=p3t,ni.prototype.reverse=m3t,ni.prototype.value=_3t,ae.prototype.at=q6t,ae.prototype.chain=K6t,ae.prototype.commit=G6t,ae.prototype.next=Y6t,ae.prototype.plant=X6t,ae.prototype.reverse=Q6t,ae.prototype.toJSON=ae.prototype.valueOf=ae.prototype.value=J6t,ae.prototype.first=ae.prototype.head,DD&&(ae.prototype[DD]=Z6t),ae},vS=GFt();cl?((cl.exports=vS)._=vS,uf._=vS):fr._=vS}).call(Ot)})(ec,ec.exports);const Pu=hRe("daopaas",1,{upgrade(n){n.createObjectStore("crdts"),n.createObjectStore("oTStore"),n.createObjectStore("files"),n.createObjectStore("replayFiles"),n.createObjectStore("users"),n.createObjectStore("media")}});async function i6(n){const{CRDTInfo:e,appStatus:t,globalData:i}=Yt.getState();if(t!=="replay")return n.event==="editor"&&n.editor.revision++,(await Pu).put("crdts",st(Te({},n),{userInfo:ec.exports.pick(n.userInfo,["uuid","role"]),file:ec.exports.omit(n.file,"value")}),n.timestamp+"."+n6().split("-")[0])}async function yRe(n){return(await Pu).get("files",n)}async function Vee(n){return(await Pu).get("replayFiles",n)}async function CRe(){return(await Pu).getAll("replayFiles")}async function zee(n,e){return(await Pu).put("files",e,n)}async function r6(n,e){return(await Pu).put("replayFiles",e,n)}async function Uee(){return await(await Pu).getAll("crdts")}async function wRe(n,e){return(await Pu).put("media",e,n)}var SRe=Object.defineProperty,jee=Object.getOwnPropertySymbols,xRe=Object.prototype.hasOwnProperty,ERe=Object.prototype.propertyIsEnumerable,qee=(n,e,t)=>e in n?SRe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,y1=(n,e)=>{for(var t in e||(e={}))xRe.call(e,t)&&qee(n,t,e[t]);if(jee)for(var t of jee(e))ERe.call(e,t)&&qee(n,t,e[t]);return n};const sR=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(i){return sR(i)(t)},catch(i){return this}}}catch(t){return{then(i){return this},catch(i){return sR(i)(t)}}}},o6=(n,e)=>(t,i,r)=>{let o=y1({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,v)=>y1(y1({},v),m)},e);(o.blacklist||o.whitelist)&&console.warn(`The ${o.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let s=!1;const a=new Set,l=new Set;let c;try{c=o.getStorage()}catch{}if(c)c.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${o.name}' does not contain a 'removeItem' method, which will be required in v4.`);else return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),t(...m)},i,r);const u=sR(o.serialize),d=()=>{const m=o.partialize(y1({},i()));o.whitelist&&Object.keys(m).forEach(y=>{var b;!((b=o.whitelist)==null?void 0:b.includes(y))&&delete m[y]}),o.blacklist&&o.blacklist.forEach(y=>delete m[y]);let v;const _=u({state:m,version:o.version}).then(y=>c.setItem(o.name,y)).catch(y=>{v=y});if(v)throw v;return _},h=r.setState;r.setState=(m,v)=>{h(m,v),d()};const f=n((...m)=>{t(...m),d()},i,r);let g;const p=()=>{var m;if(!c)return;s=!1,a.forEach(_=>_(i()));const v=((m=o.onRehydrateStorage)==null?void 0:m.call(o,i()))||void 0;return sR(c.getItem.bind(c))(o.name).then(_=>{if(_)return o.deserialize(_)}).then(_=>{if(_)if(typeof _.version=="number"&&_.version!==o.version){if(o.migrate)return o.migrate(_.state,_.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return _.state}).then(_=>(g=o.merge(_,f),t(g,!0),d())).then(()=>{v==null||v(g,void 0),s=!0,l.forEach(_=>_(g))}).catch(_=>{v==null||v(void 0,_)})};return r.persist={setOptions:m=>{o=y1(y1({},o),m),m.getStorage&&(c=m.getStorage())},clearStorage:()=>{var m;(m=c==null?void 0:c.removeItem)==null||m.call(c,o.name)},rehydrate:()=>p(),hasHydrated:()=>s,onHydrate:m=>(a.add(m),()=>{a.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},p(),g||f},Yt=Jl(n=>({asyncType:void 0,appStatus:"code",setAppStatus:e=>n(()=>({appStatus:e})),client:null,senders:[],doc:{},isRecording:!1,CRDTInfo:{operation:[],userInfo:{},evtType:"",timestamp:""},serverAck:0,customAck:0,revision:0,dockerInfo:{},playgroundInfo:{data:{fileTree:{},framework:"",frameworkVersion:null,language:"",languageVersion:null,needBrowser:!0,needConsole:!0,needRunButton:!0,url:"",version:"",terminalHistory:""},messageId:"",playgroundId:"",result:"",dockerInfos:new Map([])},playgroundStatus:"EMPTY",dockerStatus:"STOP",queryObject:{},globalData:{isRecording:!1,syncCursor:!1,useLsp:!0},fileSaved:!0,lspServerDisabled:!1,switchLspServer:e=>n(()=>({lspServerDisabled:e})),setIsRecording:e=>n(()=>({isRecording:e})),setFileSaved:e=>n(()=>({fileSaved:e})),switchDoc:e=>n(()=>({doc:e})),setSenders:e=>n(()=>({senders:e})),setCRDTInfo:e=>n(()=>({CRDTInfo:e})),setServerAck:()=>n(({serverAck:e})=>({serverAck:e+1})),setCustomAck:()=>n(({customAck:e})=>({customAck:e+1})),setGlobalData:e=>n(({appStatus:t,globalData:i})=>{if("isRecording"in e&&e.isRecording&&(t==="replay"||t==="pause"))throw"dError: \u56DE\u653E\u4E2D\u65E0\u6CD5\u5F55\u5236\uFF01";return{globalData:Te(Te({},i),e)}}),setVersion:e=>n(()=>({revision:e})),setPlaygroundInfo:e=>n(()=>({playgroundInfo:e})),setDockerInfo:e=>n(()=>({dockerInfo:e})),setPlaygroundStatus:e=>n(()=>({playgroundStatus:e})),setDockerStatus:e=>n(()=>({dockerStatus:e})),setQueryObject:e=>n(()=>({queryObject:e})),setAsyncType:e=>n(()=>({asyncType:e}))})),Kee=Jl(n=>({fileTree:{},switchFileTree:e=>n(()=>({fileTree:e}))})),Mu=Jl(o6(n=>({userInfo:{},setUserInfo:e=>n(()=>({userInfo:e}))}),{name:"userInfo",getStorage:()=>localStorage}));Jl(n=>({syncCursor:!0,setSyncCursor:e=>n(()=>({syncCursor:e}))}));const P_=Jl(o6(n=>({shadowUser:{},switchShadowUser:e=>n(()=>(e.uuid?alert(`\u5DF2\u5207\u6362\u81F3\u3010${e.username}\u3011\u89C6\u89D2`):alert("\u5DF2\u9000\u51FA\u8DDF\u968F\u89C6\u89D2"),{shadowUser:e}))}),{name:"shadowUser",getStorage:()=>localStorage})),sa=Jl(o6(n=>({userList:[],setUserList:e=>n(()=>({userList:e}))}),{name:"userList",getStorage:()=>({getItem:async n=>{if(typeof indexedDB=="undefined")return null;const e=await(await Pu).getAll("users");return JSON.stringify(e[0])||null},setItem:async(n,e)=>{(await Pu).put("users",JSON.parse(e).state[n],"userList")},removeItem:async()=>{}})})),Gee=n=>["#d904c7","#49cf5b","#D9C589","#F27B13","#A0D9D9","#45858C","#8C311C","#4A5B8C","#8C4F2B","#34401A","#CAD959","#0476D9"][n],Yee=(n,e)=>`https://avatars.dicebear.com/api/human/${e}.svg`,Hd=n=>Mu.getState().userInfo.uuid===n.uuid;function vt(){return vt=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},vt.apply(this,arguments)}var kRe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:vt});function Bs(n,e){return e||(e=n.slice(0)),n.raw=e,n}function Pt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}var s6={exports:{}},LRe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",TRe=LRe,DRe=TRe;function Zee(){}function Xee(){}Xee.resetWarningCache=Zee;var IRe=function(){function n(i,r,o,s,a,l){if(l!==DRe){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}n.isRequired=n;function e(){return n}var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Xee,resetWarningCache:Zee};return t.PropTypes=t,t};s6.exports=IRe();var X=s6.exports,C1=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function RRe(n,e){for(var t=-1,i=n==null?0:n.length;++t<i&&e(n[t],t,n)!==!1;);return n}var Qee=RRe;function NRe(n,e){for(var t=-1,i=Array(n);++t<n;)i[t]=e(t);return i}var ARe=NRe,ORe=typeof Ot=="object"&&Ot&&Ot.Object===Object&&Ot,Jee=ORe,PRe=Jee,MRe=typeof self=="object"&&self&&self.Object===Object&&self,FRe=PRe||MRe||Function("return this")(),vl=FRe,BRe=vl,$Re=BRe.Symbol,w1=$Re,ete=w1,tte=Object.prototype,WRe=tte.hasOwnProperty,HRe=tte.toString,Tx=ete?ete.toStringTag:void 0;function VRe(n){var e=WRe.call(n,Tx),t=n[Tx];try{n[Tx]=void 0;var i=!0}catch{}var r=HRe.call(n);return i&&(e?n[Tx]=t:delete n[Tx]),r}var zRe=VRe,URe=Object.prototype,jRe=URe.toString;function qRe(n){return jRe.call(n)}var KRe=qRe,nte=w1,GRe=zRe,YRe=KRe,ZRe="[object Null]",XRe="[object Undefined]",ite=nte?nte.toStringTag:void 0;function QRe(n){return n==null?n===void 0?XRe:ZRe:ite&&ite in Object(n)?GRe(n):YRe(n)}var S1=QRe;function JRe(n){return n!=null&&typeof n=="object"}var xf=JRe,eNe=S1,tNe=xf,nNe="[object Arguments]";function iNe(n){return tNe(n)&&eNe(n)==nNe}var rNe=iNe,rte=rNe,oNe=xf,ote=Object.prototype,sNe=ote.hasOwnProperty,aNe=ote.propertyIsEnumerable,lNe=rte(function(){return arguments}())?rte:function(n){return oNe(n)&&sNe.call(n,"callee")&&!aNe.call(n,"callee")},a6=lNe,cNe=Array.isArray,Fu=cNe,Dx={exports:{}};function uNe(){return!1}var dNe=uNe;(function(n,e){var t=vl,i=dNe,r=e&&!e.nodeType&&e,o=r&&!0&&n&&!n.nodeType&&n,s=o&&o.exports===r,a=s?t.Buffer:void 0,l=a?a.isBuffer:void 0,c=l||i;n.exports=c})(Dx,Dx.exports);var hNe=9007199254740991,fNe=/^(?:0|[1-9]\d*)$/;function gNe(n,e){var t=typeof n;return e=e==null?hNe:e,!!e&&(t=="number"||t!="symbol"&&fNe.test(n))&&n>-1&&n%1==0&&n<e}var Ix=gNe,pNe=9007199254740991;function mNe(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=pNe}var l6=mNe,_Ne=S1,vNe=l6,bNe=xf,yNe="[object Arguments]",CNe="[object Array]",wNe="[object Boolean]",SNe="[object Date]",xNe="[object Error]",ENe="[object Function]",kNe="[object Map]",LNe="[object Number]",TNe="[object Object]",DNe="[object RegExp]",INe="[object Set]",RNe="[object String]",NNe="[object WeakMap]",ANe="[object ArrayBuffer]",ONe="[object DataView]",PNe="[object Float32Array]",MNe="[object Float64Array]",FNe="[object Int8Array]",BNe="[object Int16Array]",$Ne="[object Int32Array]",WNe="[object Uint8Array]",HNe="[object Uint8ClampedArray]",VNe="[object Uint16Array]",zNe="[object Uint32Array]",_r={};_r[PNe]=_r[MNe]=_r[FNe]=_r[BNe]=_r[$Ne]=_r[WNe]=_r[HNe]=_r[VNe]=_r[zNe]=!0,_r[yNe]=_r[CNe]=_r[ANe]=_r[wNe]=_r[ONe]=_r[SNe]=_r[xNe]=_r[ENe]=_r[kNe]=_r[LNe]=_r[TNe]=_r[DNe]=_r[INe]=_r[RNe]=_r[NNe]=!1;function UNe(n){return bNe(n)&&vNe(n.length)&&!!_r[_Ne(n)]}var jNe=UNe;function qNe(n){return function(e){return n(e)}}var c6=qNe,Rx={exports:{}};(function(n,e){var t=Jee,i=e&&!e.nodeType&&e,r=i&&!0&&n&&!n.nodeType&&n,o=r&&r.exports===i,s=o&&t.process,a=function(){try{var l=r&&r.require&&r.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();n.exports=a})(Rx,Rx.exports);var KNe=jNe,GNe=c6,ste=Rx.exports,ate=ste&&ste.isTypedArray,YNe=ate?GNe(ate):KNe,lte=YNe,ZNe=ARe,XNe=a6,QNe=Fu,JNe=Dx.exports,e2e=Ix,t2e=lte,n2e=Object.prototype,i2e=n2e.hasOwnProperty;function r2e(n,e){var t=QNe(n),i=!t&&XNe(n),r=!t&&!i&&JNe(n),o=!t&&!i&&!r&&t2e(n),s=t||i||r||o,a=s?ZNe(n.length,String):[],l=a.length;for(var c in n)(e||i2e.call(n,c))&&!(s&&(c=="length"||r&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||e2e(c,l)))&&a.push(c);return a}var cte=r2e,o2e=Object.prototype;function s2e(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||o2e;return n===t}var u6=s2e;function a2e(n,e){return function(t){return n(e(t))}}var ute=a2e,l2e=ute,c2e=l2e(Object.keys,Object),u2e=c2e,d2e=u6,h2e=u2e,f2e=Object.prototype,g2e=f2e.hasOwnProperty;function p2e(n){if(!d2e(n))return h2e(n);var e=[];for(var t in Object(n))g2e.call(n,t)&&t!="constructor"&&e.push(t);return e}var m2e=p2e;function _2e(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Ef=_2e,v2e=S1,b2e=Ef,y2e="[object AsyncFunction]",C2e="[object Function]",w2e="[object GeneratorFunction]",S2e="[object Proxy]";function x2e(n){if(!b2e(n))return!1;var e=v2e(n);return e==C2e||e==w2e||e==y2e||e==S2e}var d6=x2e,E2e=d6,k2e=l6;function L2e(n){return n!=null&&k2e(n.length)&&!E2e(n)}var dte=L2e,T2e=cte,D2e=m2e,I2e=dte;function R2e(n){return I2e(n)?T2e(n):D2e(n)}var aR=R2e;function N2e(n){return n}var h6=N2e;function A2e(n,e,t,i){for(var r=n.length,o=t+(i?1:-1);i?o--:++o<r;)if(e(n[o],o,n))return o;return-1}var O2e=A2e;function P2e(n){return n!==n}var M2e=P2e;function F2e(n,e,t){for(var i=t-1,r=n.length;++i<r;)if(n[i]===e)return i;return-1}var B2e=F2e,$2e=O2e,W2e=M2e,H2e=B2e;function V2e(n,e,t){return e===e?H2e(n,e,t):$2e(n,W2e,t)}var z2e=V2e,U2e=/\s/;function j2e(n){for(var e=n.length;e--&&U2e.test(n.charAt(e)););return e}var q2e=j2e,K2e=q2e,G2e=/^\s+/;function Y2e(n){return n&&n.slice(0,K2e(n)+1).replace(G2e,"")}var Z2e=Y2e,X2e=S1,Q2e=xf,J2e="[object Symbol]";function eAe(n){return typeof n=="symbol"||Q2e(n)&&X2e(n)==J2e}var Nx=eAe,tAe=Z2e,hte=Ef,nAe=Nx,fte=0/0,iAe=/^[-+]0x[0-9a-f]+$/i,rAe=/^0b[01]+$/i,oAe=/^0o[0-7]+$/i,sAe=parseInt;function aAe(n){if(typeof n=="number")return n;if(nAe(n))return fte;if(hte(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=hte(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=tAe(n);var t=rAe.test(n);return t||oAe.test(n)?sAe(n.slice(2),t?2:8):iAe.test(n)?fte:+n}var lAe=aAe,cAe=lAe,gte=1/0,uAe=17976931348623157e292;function dAe(n){if(!n)return n===0?n:0;if(n=cAe(n),n===gte||n===-gte){var e=n<0?-1:1;return e*uAe}return n===n?n:0}var hAe=dAe,fAe=hAe;function gAe(n){var e=fAe(n),t=e%1;return e===e?t?e-t:e:0}var pAe=gAe;function mAe(n,e){for(var t=-1,i=n==null?0:n.length,r=Array(i);++t<i;)r[t]=e(n[t],t,n);return r}var pte=mAe,mte=["lg","md","sm","xs"],_Ae=["success","warning","error","info"],vAe=["top","bottom","right","left"],f6=["bottomStart","bottomEnd","topStart","topEnd","leftStart","rightStart","leftEnd","rightEnd"],bAe=["auto","autoVertical","autoVerticalStart","autoVerticalEnd","autoHorizontal","autoHorizontalStart","autoHorizontalEnd"],yAe=[].concat(vAe,f6,bAe),_te;(function(n){n[n.UNCHECK=0]="UNCHECK",n[n.CHECK=1]="CHECK",n[n.INDETERMINATE=2]="INDETERMINATE"})(_te||(_te={}));var vte;(function(n){n[n.DRAG_OVER=0]="DRAG_OVER",n[n.DRAG_OVER_TOP=1]="DRAG_OVER_TOP",n[n.DRAG_OVER_BOTTOM=2]="DRAG_OVER_BOTTOM"})(vte||(vte={}));var Ii={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",END:"End",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",ENTER:"Enter",TAB:"Tab",SPACE:" ",BACKSPACE:"Backspace",DELETE:"Delete",COMMA:",",ESC:"Escape"},bte;(function(n){n.CALENDAR="CALENDAR",n.TOOLBAR_BUTTON_OK="TOOLBAR_BUTTON_OK",n.TOOLBAR_SHORTCUT="TOOLBAR_SHORTCUT"})(bte||(bte={}));var CAe=Fu,wAe=Nx,SAe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xAe=/^\w*$/;function EAe(n,e){if(CAe(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||wAe(n)?!0:xAe.test(n)||!SAe.test(n)||e!=null&&n in Object(e)}var g6=EAe,kAe=vl,LAe=kAe["__core-js_shared__"],TAe=LAe,p6=TAe,yte=function(){var n=/[^.]+$/.exec(p6&&p6.keys&&p6.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function DAe(n){return!!yte&&yte in n}var IAe=DAe,RAe=Function.prototype,NAe=RAe.toString;function AAe(n){if(n!=null){try{return NAe.call(n)}catch{}try{return n+""}catch{}}return""}var Cte=AAe,OAe=d6,PAe=IAe,MAe=Ef,FAe=Cte,BAe=/[\\^$.*+?()[\]{}|]/g,$Ae=/^\[object .+?Constructor\]$/,WAe=Function.prototype,HAe=Object.prototype,VAe=WAe.toString,zAe=HAe.hasOwnProperty,UAe=RegExp("^"+VAe.call(zAe).replace(BAe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jAe(n){if(!MAe(n)||PAe(n))return!1;var e=OAe(n)?UAe:$Ae;return e.test(FAe(n))}var qAe=jAe;function KAe(n,e){return n==null?void 0:n[e]}var GAe=KAe,YAe=qAe,ZAe=GAe;function XAe(n,e){var t=ZAe(n,e);return YAe(t)?t:void 0}var M_=XAe,QAe=M_,JAe=QAe(Object,"create"),lR=JAe,wte=lR;function eOe(){this.__data__=wte?wte(null):{},this.size=0}var tOe=eOe;function nOe(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var iOe=nOe,rOe=lR,oOe="__lodash_hash_undefined__",sOe=Object.prototype,aOe=sOe.hasOwnProperty;function lOe(n){var e=this.__data__;if(rOe){var t=e[n];return t===oOe?void 0:t}return aOe.call(e,n)?e[n]:void 0}var cOe=lOe,uOe=lR,dOe=Object.prototype,hOe=dOe.hasOwnProperty;function fOe(n){var e=this.__data__;return uOe?e[n]!==void 0:hOe.call(e,n)}var gOe=fOe,pOe=lR,mOe="__lodash_hash_undefined__";function _Oe(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=pOe&&e===void 0?mOe:e,this}var vOe=_Oe,bOe=tOe,yOe=iOe,COe=cOe,wOe=gOe,SOe=vOe;function x1(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}x1.prototype.clear=bOe,x1.prototype.delete=yOe,x1.prototype.get=COe,x1.prototype.has=wOe,x1.prototype.set=SOe;var xOe=x1;function EOe(){this.__data__=[],this.size=0}var kOe=EOe;function LOe(n,e){return n===e||n!==n&&e!==e}var m6=LOe,TOe=m6;function DOe(n,e){for(var t=n.length;t--;)if(TOe(n[t][0],e))return t;return-1}var cR=DOe,IOe=cR,ROe=Array.prototype,NOe=ROe.splice;function AOe(n){var e=this.__data__,t=IOe(e,n);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():NOe.call(e,t,1),--this.size,!0}var OOe=AOe,POe=cR;function MOe(n){var e=this.__data__,t=POe(e,n);return t<0?void 0:e[t][1]}var FOe=MOe,BOe=cR;function $Oe(n){return BOe(this.__data__,n)>-1}var WOe=$Oe,HOe=cR;function VOe(n,e){var t=this.__data__,i=HOe(t,n);return i<0?(++this.size,t.push([n,e])):t[i][1]=e,this}var zOe=VOe,UOe=kOe,jOe=OOe,qOe=FOe,KOe=WOe,GOe=zOe;function E1(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}E1.prototype.clear=UOe,E1.prototype.delete=jOe,E1.prototype.get=qOe,E1.prototype.has=KOe,E1.prototype.set=GOe;var uR=E1,YOe=M_,ZOe=vl,XOe=YOe(ZOe,"Map"),_6=XOe,Ste=xOe,QOe=uR,JOe=_6;function ePe(){this.size=0,this.__data__={hash:new Ste,map:new(JOe||QOe),string:new Ste}}var tPe=ePe;function nPe(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var iPe=nPe,rPe=iPe;function oPe(n,e){var t=n.__data__;return rPe(e)?t[typeof e=="string"?"string":"hash"]:t.map}var dR=oPe,sPe=dR;function aPe(n){var e=sPe(this,n).delete(n);return this.size-=e?1:0,e}var lPe=aPe,cPe=dR;function uPe(n){return cPe(this,n).get(n)}var dPe=uPe,hPe=dR;function fPe(n){return hPe(this,n).has(n)}var gPe=fPe,pPe=dR;function mPe(n,e){var t=pPe(this,n),i=t.size;return t.set(n,e),this.size+=t.size==i?0:1,this}var _Pe=mPe,vPe=tPe,bPe=lPe,yPe=dPe,CPe=gPe,wPe=_Pe;function k1(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}k1.prototype.clear=vPe,k1.prototype.delete=bPe,k1.prototype.get=yPe,k1.prototype.has=CPe,k1.prototype.set=wPe;var v6=k1,xte=v6,SPe="Expected a function";function b6(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(SPe);var t=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=t.cache;if(o.has(r))return o.get(r);var s=n.apply(this,i);return t.cache=o.set(r,s)||o,s};return t.cache=new(b6.Cache||xte),t}b6.Cache=xte;var xPe=b6,EPe=xPe,kPe=500;function LPe(n){var e=EPe(n,function(i){return t.size===kPe&&t.clear(),i}),t=e.cache;return e}var TPe=LPe,DPe=TPe,IPe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RPe=/\\(\\)?/g,NPe=DPe(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(IPe,function(t,i,r,o){e.push(r?o.replace(RPe,"$1"):i||t)}),e}),APe=NPe,Ete=w1,OPe=pte,PPe=Fu,MPe=Nx,FPe=1/0,kte=Ete?Ete.prototype:void 0,Lte=kte?kte.toString:void 0;function Tte(n){if(typeof n=="string")return n;if(PPe(n))return OPe(n,Tte)+"";if(MPe(n))return Lte?Lte.call(n):"";var e=n+"";return e=="0"&&1/n==-FPe?"-0":e}var BPe=Tte,$Pe=BPe;function WPe(n){return n==null?"":$Pe(n)}var L1=WPe,HPe=Fu,VPe=g6,zPe=APe,UPe=L1;function jPe(n,e){return HPe(n)?n:VPe(n,e)?[n]:zPe(UPe(n))}var T1=jPe,qPe=Nx,KPe=1/0;function GPe(n){if(typeof n=="string"||qPe(n))return n;var e=n+"";return e=="0"&&1/n==-KPe?"-0":e}var D1=GPe,YPe=T1,ZPe=D1;function XPe(n,e){e=YPe(e,n);for(var t=0,i=e.length;n!=null&&t<i;)n=n[ZPe(e[t++])];return t&&t==i?n:void 0}var hR=XPe,QPe=M_,JPe=function(){try{var n=QPe(Object,"defineProperty");return n({},"",{}),n}catch{}}(),Dte=JPe,Ite=Dte;function eMe(n,e,t){e=="__proto__"&&Ite?Ite(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}var Rte=eMe,tMe=Rte,nMe=m6,iMe=Object.prototype,rMe=iMe.hasOwnProperty;function oMe(n,e,t){var i=n[e];(!(rMe.call(n,e)&&nMe(i,t))||t===void 0&&!(e in n))&&tMe(n,e,t)}var y6=oMe,sMe=y6,aMe=T1,lMe=Ix,Nte=Ef,cMe=D1;function uMe(n,e,t,i){if(!Nte(n))return n;e=aMe(e,n);for(var r=-1,o=e.length,s=o-1,a=n;a!=null&&++r<o;){var l=cMe(e[r]),c=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return n;if(r!=s){var u=a[l];c=i?i(u,l,a):void 0,c===void 0&&(c=Nte(u)?u:lMe(e[r+1])?[]:{})}sMe(a,l,c),a=a[l]}return n}var dMe=uMe,hMe=hR,fMe=dMe,gMe=T1;function pMe(n,e,t){for(var i=-1,r=e.length,o={};++i<r;){var s=e[i],a=hMe(n,s);t(a,s)&&fMe(o,gMe(s,n),a)}return o}var mMe=pMe;function _Me(n,e){return n!=null&&e in Object(n)}var vMe=_Me,bMe=T1,yMe=a6,CMe=Fu,wMe=Ix,SMe=l6,xMe=D1;function EMe(n,e,t){e=bMe(e,n);for(var i=-1,r=e.length,o=!1;++i<r;){var s=xMe(e[i]);if(!(o=n!=null&&t(n,s)))break;n=n[s]}return o||++i!=r?o:(r=n==null?0:n.length,!!r&&SMe(r)&&wMe(s,r)&&(CMe(n)||yMe(n)))}var kMe=EMe,LMe=vMe,TMe=kMe;function DMe(n,e){return n!=null&&TMe(n,e,LMe)}var Ate=DMe,IMe=mMe,RMe=Ate;function NMe(n,e){return IMe(n,e,function(t,i){return RMe(n,i)})}var AMe=NMe;function OMe(n,e){for(var t=-1,i=e.length,r=n.length;++t<i;)n[r+t]=e[t];return n}var C6=OMe,Ote=w1,PMe=a6,MMe=Fu,Pte=Ote?Ote.isConcatSpreadable:void 0;function FMe(n){return MMe(n)||PMe(n)||!!(Pte&&n&&n[Pte])}var BMe=FMe,$Me=C6,WMe=BMe;function Mte(n,e,t,i,r){var o=-1,s=n.length;for(t||(t=WMe),r||(r=[]);++o<s;){var a=n[o];e>0&&t(a)?e>1?Mte(a,e-1,t,i,r):$Me(r,a):i||(r[r.length]=a)}return r}var HMe=Mte,VMe=HMe;function zMe(n){var e=n==null?0:n.length;return e?VMe(n,1):[]}var UMe=zMe;function jMe(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var w6=jMe,qMe=w6,Fte=Math.max;function KMe(n,e,t){return e=Fte(e===void 0?n.length-1:e,0),function(){for(var i=arguments,r=-1,o=Fte(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=t(s),qMe(n,this,a)}}var GMe=KMe;function YMe(n){return function(){return n}}var ZMe=YMe,XMe=ZMe,Bte=Dte,QMe=h6,JMe=Bte?function(n,e){return Bte(n,"toString",{configurable:!0,enumerable:!1,value:XMe(e),writable:!0})}:QMe,e4e=JMe,t4e=800,n4e=16,i4e=Date.now;function r4e(n){var e=0,t=0;return function(){var i=i4e(),r=n4e-(i-t);if(t=i,r>0){if(++e>=t4e)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var $te=r4e,o4e=e4e,s4e=$te,a4e=s4e(o4e),Wte=a4e,l4e=UMe,c4e=GMe,u4e=Wte;function d4e(n){return u4e(c4e(n,void 0,l4e),n+"")}var Hte=d4e,h4e=AMe,f4e=Hte,g4e=f4e(function(n,e){return n==null?{}:h4e(n,e)}),Vte=g4e,p4e=uR;function m4e(){this.__data__=new p4e,this.size=0}var _4e=m4e;function v4e(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}var b4e=v4e;function y4e(n){return this.__data__.get(n)}var C4e=y4e;function w4e(n){return this.__data__.has(n)}var S4e=w4e,x4e=uR,E4e=_6,k4e=v6,L4e=200;function T4e(n,e){var t=this.__data__;if(t instanceof x4e){var i=t.__data__;if(!E4e||i.length<L4e-1)return i.push([n,e]),this.size=++t.size,this;t=this.__data__=new k4e(i)}return t.set(n,e),this.size=t.size,this}var D4e=T4e,I4e=uR,R4e=_4e,N4e=b4e,A4e=C4e,O4e=S4e,P4e=D4e;function I1(n){var e=this.__data__=new I4e(n);this.size=e.size}I1.prototype.clear=R4e,I1.prototype.delete=N4e,I1.prototype.get=A4e,I1.prototype.has=O4e,I1.prototype.set=P4e;var S6=I1,M4e="__lodash_hash_undefined__";function F4e(n){return this.__data__.set(n,M4e),this}var B4e=F4e;function $4e(n){return this.__data__.has(n)}var W4e=$4e,H4e=v6,V4e=B4e,z4e=W4e;function fR(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new H4e;++e<t;)this.add(n[e])}fR.prototype.add=fR.prototype.push=V4e,fR.prototype.has=z4e;var U4e=fR;function j4e(n,e){for(var t=-1,i=n==null?0:n.length;++t<i;)if(e(n[t],t,n))return!0;return!1}var q4e=j4e;function K4e(n,e){return n.has(e)}var G4e=K4e,Y4e=U4e,Z4e=q4e,X4e=G4e,Q4e=1,J4e=2;function e5e(n,e,t,i,r,o){var s=t&Q4e,a=n.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(n),u=o.get(e);if(c&&u)return c==e&&u==n;var d=-1,h=!0,f=t&J4e?new Y4e:void 0;for(o.set(n,e),o.set(e,n);++d<a;){var g=n[d],p=e[d];if(i)var m=s?i(p,g,d,e,n,o):i(g,p,d,n,e,o);if(m!==void 0){if(m)continue;h=!1;break}if(f){if(!Z4e(e,function(v,_){if(!X4e(f,_)&&(g===v||r(g,v,t,i,o)))return f.push(_)})){h=!1;break}}else if(!(g===p||r(g,p,t,i,o))){h=!1;break}}return o.delete(n),o.delete(e),h}var zte=e5e,t5e=vl,n5e=t5e.Uint8Array,Ute=n5e;function i5e(n){var e=-1,t=Array(n.size);return n.forEach(function(i,r){t[++e]=[r,i]}),t}var r5e=i5e;function o5e(n){var e=-1,t=Array(n.size);return n.forEach(function(i){t[++e]=i}),t}var s5e=o5e,jte=w1,qte=Ute,a5e=m6,l5e=zte,c5e=r5e,u5e=s5e,d5e=1,h5e=2,f5e="[object Boolean]",g5e="[object Date]",p5e="[object Error]",m5e="[object Map]",_5e="[object Number]",v5e="[object RegExp]",b5e="[object Set]",y5e="[object String]",C5e="[object Symbol]",w5e="[object ArrayBuffer]",S5e="[object DataView]",Kte=jte?jte.prototype:void 0,x6=Kte?Kte.valueOf:void 0;function x5e(n,e,t,i,r,o,s){switch(t){case S5e:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case w5e:return!(n.byteLength!=e.byteLength||!o(new qte(n),new qte(e)));case f5e:case g5e:case _5e:return a5e(+n,+e);case p5e:return n.name==e.name&&n.message==e.message;case v5e:case y5e:return n==e+"";case m5e:var a=c5e;case b5e:var l=i&d5e;if(a||(a=u5e),n.size!=e.size&&!l)return!1;var c=s.get(n);if(c)return c==e;i|=h5e,s.set(n,e);var u=l5e(a(n),a(e),i,r,o,s);return s.delete(n),u;case C5e:if(x6)return x6.call(n)==x6.call(e)}return!1}var E5e=x5e,k5e=C6,L5e=Fu;function T5e(n,e,t){var i=e(n);return L5e(n)?i:k5e(i,t(n))}var Gte=T5e;function D5e(n,e){for(var t=-1,i=n==null?0:n.length,r=0,o=[];++t<i;){var s=n[t];e(s,t,n)&&(o[r++]=s)}return o}var I5e=D5e;function R5e(){return[]}var Yte=R5e,N5e=I5e,A5e=Yte,O5e=Object.prototype,P5e=O5e.propertyIsEnumerable,Zte=Object.getOwnPropertySymbols,M5e=Zte?function(n){return n==null?[]:(n=Object(n),N5e(Zte(n),function(e){return P5e.call(n,e)}))}:A5e,E6=M5e,F5e=Gte,B5e=E6,$5e=aR;function W5e(n){return F5e(n,$5e,B5e)}var Xte=W5e,Qte=Xte,H5e=1,V5e=Object.prototype,z5e=V5e.hasOwnProperty;function U5e(n,e,t,i,r,o){var s=t&H5e,a=Qte(n),l=a.length,c=Qte(e),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var h=a[d];if(!(s?h in e:z5e.call(e,h)))return!1}var f=o.get(n),g=o.get(e);if(f&&g)return f==e&&g==n;var p=!0;o.set(n,e),o.set(e,n);for(var m=s;++d<l;){h=a[d];var v=n[h],_=e[h];if(i)var y=s?i(_,v,h,e,n,o):i(v,_,h,n,e,o);if(!(y===void 0?v===_||r(v,_,t,i,o):y)){p=!1;break}m||(m=h=="constructor")}if(p&&!m){var b=n.constructor,w=e.constructor;b!=w&&"constructor"in n&&"constructor"in e&&!(typeof b=="function"&&b instanceof b&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(n),o.delete(e),p}var j5e=U5e,q5e=M_,K5e=vl,G5e=q5e(K5e,"DataView"),Y5e=G5e,Z5e=M_,X5e=vl,Q5e=Z5e(X5e,"Promise"),J5e=Q5e,eFe=M_,tFe=vl,nFe=eFe(tFe,"Set"),iFe=nFe,rFe=M_,oFe=vl,sFe=rFe(oFe,"WeakMap"),Jte=sFe,k6=Y5e,L6=_6,T6=J5e,D6=iFe,I6=Jte,ene=S1,R1=Cte,tne="[object Map]",aFe="[object Object]",nne="[object Promise]",ine="[object Set]",rne="[object WeakMap]",one="[object DataView]",lFe=R1(k6),cFe=R1(L6),uFe=R1(T6),dFe=R1(D6),hFe=R1(I6),F_=ene;(k6&&F_(new k6(new ArrayBuffer(1)))!=one||L6&&F_(new L6)!=tne||T6&&F_(T6.resolve())!=nne||D6&&F_(new D6)!=ine||I6&&F_(new I6)!=rne)&&(F_=function(n){var e=ene(n),t=e==aFe?n.constructor:void 0,i=t?R1(t):"";if(i)switch(i){case lFe:return one;case cFe:return tne;case uFe:return nne;case dFe:return ine;case hFe:return rne}return e});var gR=F_,R6=S6,fFe=zte,gFe=E5e,pFe=j5e,sne=gR,ane=Fu,lne=Dx.exports,mFe=lte,_Fe=1,cne="[object Arguments]",une="[object Array]",pR="[object Object]",vFe=Object.prototype,dne=vFe.hasOwnProperty;function bFe(n,e,t,i,r,o){var s=ane(n),a=ane(e),l=s?une:sne(n),c=a?une:sne(e);l=l==cne?pR:l,c=c==cne?pR:c;var u=l==pR,d=c==pR,h=l==c;if(h&&lne(n)){if(!lne(e))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new R6),s||mFe(n)?fFe(n,e,t,i,r,o):gFe(n,e,l,t,i,r,o);if(!(t&_Fe)){var f=u&&dne.call(n,"__wrapped__"),g=d&&dne.call(e,"__wrapped__");if(f||g){var p=f?n.value():n,m=g?e.value():e;return o||(o=new R6),r(p,m,t,i,o)}}return h?(o||(o=new R6),pFe(n,e,t,i,r,o)):!1}var yFe=bFe,CFe=yFe,hne=xf;function fne(n,e,t,i,r){return n===e?!0:n==null||e==null||!hne(n)&&!hne(e)?n!==n&&e!==e:CFe(n,e,t,i,fne,r)}var gne=fne,wFe=S6,SFe=gne,xFe=1,EFe=2;function kFe(n,e,t,i){var r=t.length,o=r,s=!i;if(n==null)return!o;for(n=Object(n);r--;){var a=t[r];if(s&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++r<o;){a=t[r];var l=a[0],c=n[l],u=a[1];if(s&&a[2]){if(c===void 0&&!(l in n))return!1}else{var d=new wFe;if(i)var h=i(c,u,l,n,e,d);if(!(h===void 0?SFe(u,c,xFe|EFe,i,d):h))return!1}}return!0}var LFe=kFe,TFe=Ef;function DFe(n){return n===n&&!TFe(n)}var pne=DFe,IFe=pne,RFe=aR;function NFe(n){for(var e=RFe(n),t=e.length;t--;){var i=e[t],r=n[i];e[t]=[i,r,IFe(r)]}return e}var AFe=NFe;function OFe(n,e){return function(t){return t==null?!1:t[n]===e&&(e!==void 0||n in Object(t))}}var mne=OFe,PFe=LFe,MFe=AFe,FFe=mne;function BFe(n){var e=MFe(n);return e.length==1&&e[0][2]?FFe(e[0][0],e[0][1]):function(t){return t===n||PFe(t,n,e)}}var $Fe=BFe,WFe=hR;function HFe(n,e,t){var i=n==null?void 0:WFe(n,e);return i===void 0?t:i}var Ax=HFe,VFe=gne,zFe=Ax,UFe=Ate,jFe=g6,qFe=pne,KFe=mne,GFe=D1,YFe=1,ZFe=2;function XFe(n,e){return jFe(n)&&qFe(e)?KFe(GFe(n),e):function(t){var i=zFe(t,n);return i===void 0&&i===e?UFe(t,n):VFe(e,i,YFe|ZFe)}}var QFe=XFe;function JFe(n){return function(e){return e==null?void 0:e[n]}}var e3e=JFe,t3e=hR;function n3e(n){return function(e){return t3e(e,n)}}var i3e=n3e,r3e=e3e,o3e=i3e,s3e=g6,a3e=D1;function l3e(n){return s3e(n)?r3e(a3e(n)):o3e(n)}var c3e=l3e,u3e=$Fe,d3e=QFe,h3e=h6,f3e=Fu,g3e=c3e;function p3e(n){return typeof n=="function"?n:n==null?h3e:typeof n=="object"?f3e(n)?d3e(n[0],n[1]):u3e(n):g3e(n)}var N6=p3e,m3e=ute,_3e=m3e(Object.getPrototypeOf,Object),A6=_3e,v3e=C6,b3e=A6,y3e=E6,C3e=Yte,w3e=Object.getOwnPropertySymbols,S3e=w3e?function(n){for(var e=[];n;)v3e(e,y3e(n)),n=b3e(n);return e}:C3e,_ne=S3e;function x3e(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var E3e=x3e,k3e=Ef,L3e=u6,T3e=E3e,D3e=Object.prototype,I3e=D3e.hasOwnProperty;function R3e(n){if(!k3e(n))return T3e(n);var e=L3e(n),t=[];for(var i in n)i=="constructor"&&(e||!I3e.call(n,i))||t.push(i);return t}var N3e=R3e,A3e=cte,O3e=N3e,P3e=dte;function M3e(n){return P3e(n)?A3e(n,!0):O3e(n)}var O6=M3e,F3e=Gte,B3e=_ne,$3e=O6;function W3e(n){return F3e(n,$3e,B3e)}var vne=W3e;function Do(n,e){if(e.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+e.length+" present")}function aa(n){Do(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||typeof n=="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function Zr(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function H3e(n){return Do(1,arguments),n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function V3e(n){if(Do(1,arguments),!H3e(n)&&typeof n!="number")return!1;var e=aa(n);return!isNaN(Number(e))}var z3e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},U3e=function(n,e,t){var i,r=z3e[n];return typeof r=="string"?i=r:e===1?i=r.one:i=r.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+i:i+" ago":i},bne=U3e;function N1(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,i=n.formats[t]||n.formats[n.defaultWidth];return i}}var j3e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},q3e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},K3e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},G3e={date:N1({formats:j3e,defaultWidth:"full"}),time:N1({formats:q3e,defaultWidth:"full"}),dateTime:N1({formats:K3e,defaultWidth:"full"})},Y3e=G3e,Z3e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},X3e=function(n,e,t,i){return Z3e[n]},yne=X3e;function Ox(n){return function(e,t){var i=t||{},r=i.context?String(i.context):"standalone",o;if(r==="formatting"&&n.formattingValues){var s=n.defaultFormattingWidth||n.defaultWidth,a=i.width?String(i.width):s;o=n.formattingValues[a]||n.formattingValues[s]}else{var l=n.defaultWidth,c=i.width?String(i.width):n.defaultWidth;o=n.values[c]||n.values[l]}var u=n.argumentCallback?n.argumentCallback(e):e;return o[u]}}var Q3e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},J3e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e8e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t8e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n8e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},i8e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},r8e=function(n,e){var t=Number(n),i=t%100;if(i>20||i<10)switch(i%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},o8e={ordinalNumber:r8e,era:Ox({values:Q3e,defaultWidth:"wide"}),quarter:Ox({values:J3e,defaultWidth:"wide",argumentCallback:function(n){return n-1}}),month:Ox({values:e8e,defaultWidth:"wide"}),day:Ox({values:t8e,defaultWidth:"wide"}),dayPeriod:Ox({values:n8e,defaultWidth:"wide",formattingValues:i8e,defaultFormattingWidth:"wide"})},Cne=o8e;function Px(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.width,r=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],o=e.match(r);if(!o)return null;var s=o[0],a=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(a)?a8e(a,function(d){return d.test(s)}):s8e(a,function(d){return d.test(s)}),c;c=n.valueCallback?n.valueCallback(l):l,c=t.valueCallback?t.valueCallback(c):c;var u=e.slice(s.length);return{value:c,rest:u}}}function s8e(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function a8e(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function l8e(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.match(n.matchPattern);if(!i)return null;var r=i[0],o=e.match(n.parsePattern);if(!o)return null;var s=n.valueCallback?n.valueCallback(o[0]):o[0];s=t.valueCallback?t.valueCallback(s):s;var a=e.slice(r.length);return{value:s,rest:a}}}var c8e=/^(\d+)(th|st|nd|rd)?/i,u8e=/\d+/i,d8e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},h8e={any:[/^b/i,/^(a|c)/i]},f8e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},g8e={any:[/1/i,/2/i,/3/i,/4/i]},p8e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},m8e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_8e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v8e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b8e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},y8e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},C8e={ordinalNumber:l8e({matchPattern:c8e,parsePattern:u8e,valueCallback:function(n){return parseInt(n,10)}}),era:Px({matchPatterns:d8e,defaultMatchWidth:"wide",parsePatterns:h8e,defaultParseWidth:"any"}),quarter:Px({matchPatterns:f8e,defaultMatchWidth:"wide",parsePatterns:g8e,defaultParseWidth:"any",valueCallback:function(n){return n+1}}),month:Px({matchPatterns:p8e,defaultMatchWidth:"wide",parsePatterns:m8e,defaultParseWidth:"any"}),day:Px({matchPatterns:_8e,defaultMatchWidth:"wide",parsePatterns:v8e,defaultParseWidth:"any"}),dayPeriod:Px({matchPatterns:b8e,defaultMatchWidth:"any",parsePatterns:y8e,defaultParseWidth:"any"})},wne=C8e,w8e={code:"en-US",formatDistance:bne,formatLong:Y3e,formatRelative:yne,localize:Cne,match:wne,options:{weekStartsOn:0,firstWeekContainsDate:1}},Sne=w8e;function S8e(n,e){Do(2,arguments);var t=aa(n).getTime(),i=Zr(e);return new Date(t+i)}function xne(n,e){Do(2,arguments);var t=Zr(e);return S8e(n,-t)}function Fi(n,e){for(var t=n<0?"-":"",i=Math.abs(n).toString();i.length<e;)i="0"+i;return t+i}var x8e={y:function(n,e){var t=n.getUTCFullYear(),i=t>0?t:1-t;return Fi(e==="yy"?i%100:i,e.length)},M:function(n,e){var t=n.getUTCMonth();return e==="M"?String(t+1):Fi(t+1,2)},d:function(n,e){return Fi(n.getUTCDate(),e.length)},a:function(n,e){var t=n.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h:function(n,e){return Fi(n.getUTCHours()%12||12,e.length)},H:function(n,e){return Fi(n.getUTCHours(),e.length)},m:function(n,e){return Fi(n.getUTCMinutes(),e.length)},s:function(n,e){return Fi(n.getUTCSeconds(),e.length)},S:function(n,e){var t=e.length,i=n.getUTCMilliseconds(),r=Math.floor(i*Math.pow(10,t-3));return Fi(r,e.length)}},xp=x8e,E8e=864e5;function k8e(n){Do(1,arguments);var e=aa(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var i=e.getTime(),r=t-i;return Math.floor(r/E8e)+1}function A1(n){Do(1,arguments);var e=1,t=aa(n),i=t.getUTCDay(),r=(i<e?7:0)+i-e;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function Ene(n){Do(1,arguments);var e=aa(n),t=e.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(t+1,0,4),i.setUTCHours(0,0,0,0);var r=A1(i),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var s=A1(o);return e.getTime()>=r.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function L8e(n){Do(1,arguments);var e=Ene(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var i=A1(t);return i}var T8e=6048e5;function kne(n){Do(1,arguments);var e=aa(n),t=A1(e).getTime()-L8e(e).getTime();return Math.round(t/T8e)+1}function B_(n,e){Do(1,arguments);var t=e||{},i=t.locale,r=i&&i.options&&i.options.weekStartsOn,o=r==null?0:Zr(r),s=t.weekStartsOn==null?o:Zr(t.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var a=aa(n),l=a.getUTCDay(),c=(l<s?7:0)+l-s;return a.setUTCDate(a.getUTCDate()-c),a.setUTCHours(0,0,0,0),a}function P6(n,e){Do(1,arguments);var t=aa(n),i=t.getUTCFullYear(),r=e||{},o=r.locale,s=o&&o.options&&o.options.firstWeekContainsDate,a=s==null?1:Zr(s),l=r.firstWeekContainsDate==null?a:Zr(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(i+1,0,l),c.setUTCHours(0,0,0,0);var u=B_(c,e),d=new Date(0);d.setUTCFullYear(i,0,l),d.setUTCHours(0,0,0,0);var h=B_(d,e);return t.getTime()>=u.getTime()?i+1:t.getTime()>=h.getTime()?i:i-1}function D8e(n,e){Do(1,arguments);var t=e||{},i=t.locale,r=i&&i.options&&i.options.firstWeekContainsDate,o=r==null?1:Zr(r),s=t.firstWeekContainsDate==null?o:Zr(t.firstWeekContainsDate),a=P6(n,e),l=new Date(0);l.setUTCFullYear(a,0,s),l.setUTCHours(0,0,0,0);var c=B_(l,e);return c}var I8e=6048e5;function Lne(n,e){Do(1,arguments);var t=aa(n),i=B_(t,e).getTime()-D8e(t,e).getTime();return Math.round(i/I8e)+1}var O1={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},R8e={G:function(n,e,t){var i=n.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(i,{width:"abbreviated"});case"GGGGG":return t.era(i,{width:"narrow"});case"GGGG":default:return t.era(i,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){var i=n.getUTCFullYear(),r=i>0?i:1-i;return t.ordinalNumber(r,{unit:"year"})}return xp.y(n,e)},Y:function(n,e,t,i){var r=P6(n,i),o=r>0?r:1-r;if(e==="YY"){var s=o%100;return Fi(s,2)}return e==="Yo"?t.ordinalNumber(o,{unit:"year"}):Fi(o,e.length)},R:function(n,e){var t=Ene(n);return Fi(t,e.length)},u:function(n,e){var t=n.getUTCFullYear();return Fi(t,e.length)},Q:function(n,e,t){var i=Math.ceil((n.getUTCMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return Fi(i,2);case"Qo":return t.ordinalNumber(i,{unit:"quarter"});case"QQQ":return t.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,e,t){var i=Math.ceil((n.getUTCMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return Fi(i,2);case"qo":return t.ordinalNumber(i,{unit:"quarter"});case"qqq":return t.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,e,t){var i=n.getUTCMonth();switch(e){case"M":case"MM":return xp.M(n,e);case"Mo":return t.ordinalNumber(i+1,{unit:"month"});case"MMM":return t.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(i,{width:"wide",context:"formatting"})}},L:function(n,e,t){var i=n.getUTCMonth();switch(e){case"L":return String(i+1);case"LL":return Fi(i+1,2);case"Lo":return t.ordinalNumber(i+1,{unit:"month"});case"LLL":return t.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(i,{width:"wide",context:"standalone"})}},w:function(n,e,t,i){var r=Lne(n,i);return e==="wo"?t.ordinalNumber(r,{unit:"week"}):Fi(r,e.length)},I:function(n,e,t){var i=kne(n);return e==="Io"?t.ordinalNumber(i,{unit:"week"}):Fi(i,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getUTCDate(),{unit:"date"}):xp.d(n,e)},D:function(n,e,t){var i=k8e(n);return e==="Do"?t.ordinalNumber(i,{unit:"dayOfYear"}):Fi(i,e.length)},E:function(n,e,t){var i=n.getUTCDay();switch(e){case"E":case"EE":case"EEE":return t.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(i,{width:"short",context:"formatting"});case"EEEE":default:return t.day(i,{width:"wide",context:"formatting"})}},e:function(n,e,t,i){var r=n.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return Fi(o,2);case"eo":return t.ordinalNumber(o,{unit:"day"});case"eee":return t.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(r,{width:"short",context:"formatting"});case"eeee":default:return t.day(r,{width:"wide",context:"formatting"})}},c:function(n,e,t,i){var r=n.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return Fi(o,e.length);case"co":return t.ordinalNumber(o,{unit:"day"});case"ccc":return t.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(r,{width:"narrow",context:"standalone"});case"cccccc":return t.day(r,{width:"short",context:"standalone"});case"cccc":default:return t.day(r,{width:"wide",context:"standalone"})}},i:function(n,e,t){var i=n.getUTCDay(),r=i===0?7:i;switch(e){case"i":return String(r);case"ii":return Fi(r,e.length);case"io":return t.ordinalNumber(r,{unit:"day"});case"iii":return t.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(i,{width:"short",context:"formatting"});case"iiii":default:return t.day(i,{width:"wide",context:"formatting"})}},a:function(n,e,t){var i=n.getUTCHours(),r=i/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,e,t){var i=n.getUTCHours(),r;switch(i===12?r=O1.noon:i===0?r=O1.midnight:r=i/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(n,e,t){var i=n.getUTCHours(),r;switch(i>=17?r=O1.evening:i>=12?r=O1.afternoon:i>=4?r=O1.morning:r=O1.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){var i=n.getUTCHours()%12;return i===0&&(i=12),t.ordinalNumber(i,{unit:"hour"})}return xp.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getUTCHours(),{unit:"hour"}):xp.H(n,e)},K:function(n,e,t){var i=n.getUTCHours()%12;return e==="Ko"?t.ordinalNumber(i,{unit:"hour"}):Fi(i,e.length)},k:function(n,e,t){var i=n.getUTCHours();return i===0&&(i=24),e==="ko"?t.ordinalNumber(i,{unit:"hour"}):Fi(i,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getUTCMinutes(),{unit:"minute"}):xp.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getUTCSeconds(),{unit:"second"}):xp.s(n,e)},S:function(n,e){return xp.S(n,e)},X:function(n,e,t,i){var r=i._originalDate||n,o=r.getTimezoneOffset();if(o===0)return"Z";switch(e){case"X":return Dne(o);case"XXXX":case"XX":return $_(o);case"XXXXX":case"XXX":default:return $_(o,":")}},x:function(n,e,t,i){var r=i._originalDate||n,o=r.getTimezoneOffset();switch(e){case"x":return Dne(o);case"xxxx":case"xx":return $_(o);case"xxxxx":case"xxx":default:return $_(o,":")}},O:function(n,e,t,i){var r=i._originalDate||n,o=r.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Tne(o,":");case"OOOO":default:return"GMT"+$_(o,":")}},z:function(n,e,t,i){var r=i._originalDate||n,o=r.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Tne(o,":");case"zzzz":default:return"GMT"+$_(o,":")}},t:function(n,e,t,i){var r=i._originalDate||n,o=Math.floor(r.getTime()/1e3);return Fi(o,e.length)},T:function(n,e,t,i){var r=i._originalDate||n,o=r.getTime();return Fi(o,e.length)}};function Tne(n,e){var t=n>0?"-":"+",i=Math.abs(n),r=Math.floor(i/60),o=i%60;return o===0?t+String(r):t+String(r)+e+Fi(o,2)}function Dne(n,e){if(n%60==0){var t=n>0?"-":"+";return t+Fi(Math.abs(n)/60,2)}return $_(n,e)}function $_(n,e){var t=e||"",i=n>0?"-":"+",r=Math.abs(n),o=Fi(Math.floor(r/60),2),s=Fi(r%60,2);return i+o+t+s}var N8e=R8e;function Ine(n,e){switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function Rne(n,e){switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function A8e(n,e){var t=n.match(/(P+)(p+)?/)||[],i=t[1],r=t[2];if(!r)return Ine(n,e);var o;switch(i){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",Ine(i,e)).replace("{{time}}",Rne(r,e))}var O8e={p:Rne,P:A8e},Nne=O8e;function Ane(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}var P8e=["D","DD"],M8e=["YY","YYYY"];function One(n){return P8e.indexOf(n)!==-1}function Pne(n){return M8e.indexOf(n)!==-1}function mR(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://git.io/fxCyr"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://git.io/fxCyr"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://git.io/fxCyr"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://git.io/fxCyr"))}var F8e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,B8e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$8e=/^'([^]*?)'?$/,W8e=/''/g,H8e=/[a-zA-Z]/;function V8e(n,e,t){Do(2,arguments);var i=String(e),r=t||{},o=r.locale||Sne,s=o.options&&o.options.firstWeekContainsDate,a=s==null?1:Zr(s),l=r.firstWeekContainsDate==null?a:Zr(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,u=c==null?0:Zr(c),d=r.weekStartsOn==null?u:Zr(r.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var h=aa(n);if(!V3e(h))throw new RangeError("Invalid time value");var f=Ane(h),g=xne(h,f),p={firstWeekContainsDate:l,weekStartsOn:d,locale:o,_originalDate:h},m=i.match(B8e).map(function(v){var _=v[0];if(_==="p"||_==="P"){var y=Nne[_];return y(v,o.formatLong,p)}return v}).join("").match(F8e).map(function(v){if(v==="''")return"'";var _=v[0];if(_==="'")return z8e(v);var y=N8e[_];if(y)return!r.useAdditionalWeekYearTokens&&Pne(v)&&mR(v,e,n),!r.useAdditionalDayOfYearTokens&&One(v)&&mR(v,e,n),y(g,v,o.localize,p);if(_.match(H8e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return v}).join("");return m}function z8e(n){return n.match($8e)[1].replace(W8e,"'")}function U8e(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");e=e||{};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function M6(n,e,t){Do(2,arguments);var i=t||{},r=i.locale,o=r&&r.options&&r.options.weekStartsOn,s=o==null?0:Zr(o),a=i.weekStartsOn==null?s:Zr(i.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=aa(n),c=Zr(e),u=l.getUTCDay(),d=c%7,h=(d+7)%7,f=(h<a?7:0)+c-u;return l.setUTCDate(l.getUTCDate()+f),l}function j8e(n,e){Do(2,arguments);var t=Zr(e);t%7==0&&(t=t-7);var i=1,r=aa(n),o=r.getUTCDay(),s=t%7,a=(s+7)%7,l=(a<i?7:0)+t-o;return r.setUTCDate(r.getUTCDate()+l),r}function q8e(n,e){Do(2,arguments);var t=aa(n),i=Zr(e),r=kne(t)-i;return t.setUTCDate(t.getUTCDate()-r*7),t}function K8e(n,e,t){Do(2,arguments);var i=aa(n),r=Zr(e),o=Lne(i,t)-r;return i.setUTCDate(i.getUTCDate()-o*7),i}var G8e=36e5,Y8e=6e4,Z8e=1e3,bo={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Vd={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Or(n,e,t){var i=e.match(n);if(!i)return null;var r=parseInt(i[0],10);return{value:t?t(r):r,rest:e.slice(i[0].length)}}function zd(n,e){var t=e.match(n);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var i=t[1]==="+"?1:-1,r=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:i*(r*G8e+o*Y8e+s*Z8e),rest:e.slice(t[0].length)}}function Mne(n,e){return Or(bo.anyDigitsSigned,n,e)}function Xr(n,e,t){switch(n){case 1:return Or(bo.singleDigit,e,t);case 2:return Or(bo.twoDigits,e,t);case 3:return Or(bo.threeDigits,e,t);case 4:return Or(bo.fourDigits,e,t);default:return Or(new RegExp("^\\d{1,"+n+"}"),e,t)}}function _R(n,e,t){switch(n){case 1:return Or(bo.singleDigitSigned,e,t);case 2:return Or(bo.twoDigitsSigned,e,t);case 3:return Or(bo.threeDigitsSigned,e,t);case 4:return Or(bo.fourDigitsSigned,e,t);default:return Or(new RegExp("^-?\\d{1,"+n+"}"),e,t)}}function F6(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Fne(n,e){var t=e>0,i=t?e:1-e,r;if(i<=50)r=n||100;else{var o=i+50,s=Math.floor(o/100)*100,a=n>=o%100;r=n+s-(a?100:0)}return t?r:1-r}var X8e=[31,28,31,30,31,30,31,31,30,31,30,31],Q8e=[31,29,31,30,31,30,31,31,30,31,30,31];function Bne(n){return n%400==0||n%4==0&&n%100!=0}var J8e={G:{priority:140,parse:function(n,e,t,i){switch(e){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"})||t.era(n,{width:"narrow"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})||t.era(n,{width:"abbreviated"})||t.era(n,{width:"narrow"})}},set:function(n,e,t,i){return e.era=t,n.setUTCFullYear(t,0,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(n,e,t,i){var r=function(o){return{year:o,isTwoDigitYear:e==="yy"}};switch(e){case"y":return Xr(4,n,r);case"yo":return t.ordinalNumber(n,{unit:"year",valueCallback:r});default:return Xr(e.length,n,r)}},validate:function(n,e,t){return e.isTwoDigitYear||e.year>0},set:function(n,e,t,i){var r=n.getUTCFullYear();if(t.isTwoDigitYear){var o=Fne(t.year,r);return n.setUTCFullYear(o,0,1),n.setUTCHours(0,0,0,0),n}var s=!("era"in e)||e.era===1?t.year:1-t.year;return n.setUTCFullYear(s,0,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(n,e,t,i){var r=function(o){return{year:o,isTwoDigitYear:e==="YY"}};switch(e){case"Y":return Xr(4,n,r);case"Yo":return t.ordinalNumber(n,{unit:"year",valueCallback:r});default:return Xr(e.length,n,r)}},validate:function(n,e,t){return e.isTwoDigitYear||e.year>0},set:function(n,e,t,i){var r=P6(n,i);if(t.isTwoDigitYear){var o=Fne(t.year,r);return n.setUTCFullYear(o,0,i.firstWeekContainsDate),n.setUTCHours(0,0,0,0),B_(n,i)}var s=!("era"in e)||e.era===1?t.year:1-t.year;return n.setUTCFullYear(s,0,i.firstWeekContainsDate),n.setUTCHours(0,0,0,0),B_(n,i)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(n,e,t,i){return _R(e==="R"?4:e.length,n)},set:function(n,e,t,i){var r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),A1(r)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(n,e,t,i){return _R(e==="u"?4:e.length,n)},set:function(n,e,t,i){return n.setUTCFullYear(t,0,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(n,e,t,i){switch(e){case"Q":case"QQ":return Xr(e.length,n);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"})||t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})||t.quarter(n,{width:"abbreviated",context:"formatting"})||t.quarter(n,{width:"narrow",context:"formatting"})}},validate:function(n,e,t){return e>=1&&e<=4},set:function(n,e,t,i){return n.setUTCMonth((t-1)*3,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(n,e,t,i){switch(e){case"q":case"qq":return Xr(e.length,n);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"})||t.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})||t.quarter(n,{width:"abbreviated",context:"standalone"})||t.quarter(n,{width:"narrow",context:"standalone"})}},validate:function(n,e,t){return e>=1&&e<=4},set:function(n,e,t,i){return n.setUTCMonth((t-1)*3,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(n,e,t,i){var r=function(o){return o-1};switch(e){case"M":return Or(bo.month,n,r);case"MM":return Xr(2,n,r);case"Mo":return t.ordinalNumber(n,{unit:"month",valueCallback:r});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"})||t.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})||t.month(n,{width:"abbreviated",context:"formatting"})||t.month(n,{width:"narrow",context:"formatting"})}},validate:function(n,e,t){return e>=0&&e<=11},set:function(n,e,t,i){return n.setUTCMonth(t,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(n,e,t,i){var r=function(o){return o-1};switch(e){case"L":return Or(bo.month,n,r);case"LL":return Xr(2,n,r);case"Lo":return t.ordinalNumber(n,{unit:"month",valueCallback:r});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"})||t.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})||t.month(n,{width:"abbreviated",context:"standalone"})||t.month(n,{width:"narrow",context:"standalone"})}},validate:function(n,e,t){return e>=0&&e<=11},set:function(n,e,t,i){return n.setUTCMonth(t,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(n,e,t,i){switch(e){case"w":return Or(bo.week,n);case"wo":return t.ordinalNumber(n,{unit:"week"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=1&&e<=53},set:function(n,e,t,i){return B_(K8e(n,t,i),i)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(n,e,t,i){switch(e){case"I":return Or(bo.week,n);case"Io":return t.ordinalNumber(n,{unit:"week"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=1&&e<=53},set:function(n,e,t,i){return A1(q8e(n,t,i),i)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(n,e,t,i){switch(e){case"d":return Or(bo.date,n);case"do":return t.ordinalNumber(n,{unit:"date"});default:return Xr(e.length,n)}},validate:function(n,e,t){var i=n.getUTCFullYear(),r=Bne(i),o=n.getUTCMonth();return r?e>=1&&e<=Q8e[o]:e>=1&&e<=X8e[o]},set:function(n,e,t,i){return n.setUTCDate(t),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(n,e,t,i){switch(e){case"D":case"DD":return Or(bo.dayOfYear,n);case"Do":return t.ordinalNumber(n,{unit:"date"});default:return Xr(e.length,n)}},validate:function(n,e,t){var i=n.getUTCFullYear(),r=Bne(i);return r?e>=1&&e<=366:e>=1&&e<=365},set:function(n,e,t,i){return n.setUTCMonth(0,t),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(n,e,t,i){switch(e){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"})||t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})||t.day(n,{width:"abbreviated",context:"formatting"})||t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"})}},validate:function(n,e,t){return e>=0&&e<=6},set:function(n,e,t,i){return n=M6(n,t,i),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(n,e,t,i){var r=function(o){var s=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+s};switch(e){case"e":case"ee":return Xr(e.length,n,r);case"eo":return t.ordinalNumber(n,{unit:"day",valueCallback:r});case"eee":return t.day(n,{width:"abbreviated",context:"formatting"})||t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"});case"eeeee":return t.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return t.day(n,{width:"wide",context:"formatting"})||t.day(n,{width:"abbreviated",context:"formatting"})||t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"})}},validate:function(n,e,t){return e>=0&&e<=6},set:function(n,e,t,i){return n=M6(n,t,i),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(n,e,t,i){var r=function(o){var s=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+s};switch(e){case"c":case"cc":return Xr(e.length,n,r);case"co":return t.ordinalNumber(n,{unit:"day",valueCallback:r});case"ccc":return t.day(n,{width:"abbreviated",context:"standalone"})||t.day(n,{width:"short",context:"standalone"})||t.day(n,{width:"narrow",context:"standalone"});case"ccccc":return t.day(n,{width:"narrow",context:"standalone"});case"cccccc":return t.day(n,{width:"short",context:"standalone"})||t.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return t.day(n,{width:"wide",context:"standalone"})||t.day(n,{width:"abbreviated",context:"standalone"})||t.day(n,{width:"short",context:"standalone"})||t.day(n,{width:"narrow",context:"standalone"})}},validate:function(n,e,t){return e>=0&&e<=6},set:function(n,e,t,i){return n=M6(n,t,i),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(n,e,t,i){var r=function(o){return o===0?7:o};switch(e){case"i":case"ii":return Xr(e.length,n);case"io":return t.ordinalNumber(n,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting",valueCallback:r})||t.day(n,{width:"short",context:"formatting",valueCallback:r})||t.day(n,{width:"narrow",context:"formatting",valueCallback:r});case"iiiii":return t.day(n,{width:"narrow",context:"formatting",valueCallback:r});case"iiiiii":return t.day(n,{width:"short",context:"formatting",valueCallback:r})||t.day(n,{width:"narrow",context:"formatting",valueCallback:r});case"iiii":default:return t.day(n,{width:"wide",context:"formatting",valueCallback:r})||t.day(n,{width:"abbreviated",context:"formatting",valueCallback:r})||t.day(n,{width:"short",context:"formatting",valueCallback:r})||t.day(n,{width:"narrow",context:"formatting",valueCallback:r})}},validate:function(n,e,t){return e>=1&&e<=7},set:function(n,e,t,i){return n=j8e(n,t,i),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(n,e,t,i){switch(e){case"a":case"aa":case"aaa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})||t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"})}},set:function(n,e,t,i){return n.setUTCHours(F6(t),0,0,0),n},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(n,e,t,i){switch(e){case"b":case"bb":case"bbb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})||t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"})}},set:function(n,e,t,i){return n.setUTCHours(F6(t),0,0,0),n},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(n,e,t,i){switch(e){case"B":case"BB":case"BBB":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})||t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"})}},set:function(n,e,t,i){return n.setUTCHours(F6(t),0,0,0),n},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(n,e,t,i){switch(e){case"h":return Or(bo.hour12h,n);case"ho":return t.ordinalNumber(n,{unit:"hour"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=1&&e<=12},set:function(n,e,t,i){var r=n.getUTCHours()>=12;return r&&t<12?n.setUTCHours(t+12,0,0,0):!r&&t===12?n.setUTCHours(0,0,0,0):n.setUTCHours(t,0,0,0),n},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(n,e,t,i){switch(e){case"H":return Or(bo.hour23h,n);case"Ho":return t.ordinalNumber(n,{unit:"hour"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=0&&e<=23},set:function(n,e,t,i){return n.setUTCHours(t,0,0,0),n},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(n,e,t,i){switch(e){case"K":return Or(bo.hour11h,n);case"Ko":return t.ordinalNumber(n,{unit:"hour"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=0&&e<=11},set:function(n,e,t,i){var r=n.getUTCHours()>=12;return r&&t<12?n.setUTCHours(t+12,0,0,0):n.setUTCHours(t,0,0,0),n},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(n,e,t,i){switch(e){case"k":return Or(bo.hour24h,n);case"ko":return t.ordinalNumber(n,{unit:"hour"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=1&&e<=24},set:function(n,e,t,i){var r=t<=24?t%24:t;return n.setUTCHours(r,0,0,0),n},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(n,e,t,i){switch(e){case"m":return Or(bo.minute,n);case"mo":return t.ordinalNumber(n,{unit:"minute"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=0&&e<=59},set:function(n,e,t,i){return n.setUTCMinutes(t,0,0),n},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(n,e,t,i){switch(e){case"s":return Or(bo.second,n);case"so":return t.ordinalNumber(n,{unit:"second"});default:return Xr(e.length,n)}},validate:function(n,e,t){return e>=0&&e<=59},set:function(n,e,t,i){return n.setUTCSeconds(t,0),n},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(n,e,t,i){var r=function(o){return Math.floor(o*Math.pow(10,-e.length+3))};return Xr(e.length,n,r)},set:function(n,e,t,i){return n.setUTCMilliseconds(t),n},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(n,e,t,i){switch(e){case"X":return zd(Vd.basicOptionalMinutes,n);case"XX":return zd(Vd.basic,n);case"XXXX":return zd(Vd.basicOptionalSeconds,n);case"XXXXX":return zd(Vd.extendedOptionalSeconds,n);case"XXX":default:return zd(Vd.extended,n)}},set:function(n,e,t,i){return e.timestampIsSet?n:new Date(n.getTime()-t)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(n,e,t,i){switch(e){case"x":return zd(Vd.basicOptionalMinutes,n);case"xx":return zd(Vd.basic,n);case"xxxx":return zd(Vd.basicOptionalSeconds,n);case"xxxxx":return zd(Vd.extendedOptionalSeconds,n);case"xxx":default:return zd(Vd.extended,n)}},set:function(n,e,t,i){return e.timestampIsSet?n:new Date(n.getTime()-t)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(n,e,t,i){return Mne(n)},set:function(n,e,t,i){return[new Date(t*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(n,e,t,i){return Mne(n)},set:function(n,e,t,i){return[new Date(t),{timestampIsSet:!0}]},incompatibleTokens:"*"}},e6e=J8e,t6e=10,n6e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,i6e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,r6e=/^'([^]*?)'?$/,o6e=/''/g,s6e=/\S/,a6e=/[a-zA-Z]/;function l6e(n,e,t,i){Do(3,arguments);var r=String(n),o=String(e),s=i||{},a=s.locale||Sne;if(!a.match)throw new RangeError("locale must contain match property");var l=a.options&&a.options.firstWeekContainsDate,c=l==null?1:Zr(l),u=s.firstWeekContainsDate==null?c:Zr(s.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=a.options&&a.options.weekStartsOn,h=d==null?0:Zr(d),f=s.weekStartsOn==null?h:Zr(s.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(o==="")return r===""?aa(t):new Date(NaN);var g={firstWeekContainsDate:u,weekStartsOn:f,locale:a},p=[{priority:t6e,subPriority:-1,set:c6e,index:0}],m,v=o.match(i6e).map(function(F){var M=F[0];if(M==="p"||M==="P"){var W=Nne[M];return W(F,a.formatLong,g)}return F}).join("").match(n6e),_=[];for(m=0;m<v.length;m++){var y=v[m];!s.useAdditionalWeekYearTokens&&Pne(y)&&mR(y,o,n),!s.useAdditionalDayOfYearTokens&&One(y)&&mR(y,o,n);var b=y[0],w=e6e[b];if(w){var x=w.incompatibleTokens;if(Array.isArray(x)){for(var S=void 0,k=0;k<_.length;k++){var T=_[k].token;if(x.indexOf(T)!==-1||T===b){S=_[k];break}}if(S)throw new RangeError("The format string mustn't contain `".concat(S.fullToken,"` and `").concat(y,"` at the same time"))}else if(w.incompatibleTokens==="*"&&_.length)throw new RangeError("The format string mustn't contain `".concat(y,"` and any other token at the same time"));_.push({token:b,fullToken:y});var D=w.parse(r,y,a.match,g);if(!D)return new Date(NaN);p.push({priority:w.priority,subPriority:w.subPriority||0,set:w.set,validate:w.validate,value:D.value,index:p.length}),r=D.rest}else{if(b.match(a6e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");if(y==="''"?y="'":b==="'"&&(y=u6e(y)),r.indexOf(y)===0)r=r.slice(y.length);else return new Date(NaN)}}if(r.length>0&&s6e.test(r))return new Date(NaN);var R=p.map(function(F){return F.priority}).sort(function(F,M){return M-F}).filter(function(F,M,W){return W.indexOf(F)===M}).map(function(F){return p.filter(function(M){return M.priority===F}).sort(function(M,W){return W.subPriority-M.subPriority})}).map(function(F){return F[0]}),N=aa(t);if(isNaN(N))return new Date(NaN);var A=xne(N,Ane(N)),V={};for(m=0;m<R.length;m++){var P=R[m];if(P.validate&&!P.validate(A,P.value,g))return new Date(NaN);var U=P.set(A,V,P.value,g);U[0]?(A=U[0],U8e(V,U[1])):A=U}return A}function c6e(n,e){if(e.timestampIsSet)return n;var t=new Date(0);return t.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),t.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),t}function u6e(n){return n.match(r6e)[1].replace(o6e,"'")}var d6e=X.oneOfType([X.func,X.any]),$ne={},B6={exports:{}},la={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(la);var Gc={exports:{}},Wne=qD(kRe),$6={exports:{}},Hne={exports:{}};(function(n){function e(t,i){if(t==null)return{};var r={},o=Object.keys(t),s,a;for(a=0;a<o.length;a++)s=o[a],!(i.indexOf(s)>=0)&&(r[s]=t[s]);return r}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(Hne);var Mx={exports:{}};/*!
|
|
61
61
|
Copyright (c) 2018 Jed Watson.
|
|
62
62
|
Licensed under the MIT License (MIT), see
|
|
63
63
|
http://jedwatson.github.io/classnames
|
|
@@ -122,8 +122,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
122
122
|
*
|
|
123
123
|
* This source code is licensed under the MIT license found in the
|
|
124
124
|
* LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/var Wze=O.exports,zre=60103;if(zx.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Ure=Symbol.for;zre=Ure("react.element"),zx.Fragment=Ure("react.fragment")}var Hze=Wze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vze=Object.prototype.hasOwnProperty,zze={key:!0,ref:!0,__self:!0,__source:!0};function jre(n,e,t){var i,r={},o=null,s=null;t!==void 0&&(o=""+t),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(s=e.ref);for(i in e)Vze.call(e,i)&&!zze.hasOwnProperty(i)&&(r[i]=e[i]);if(n&&n.defaultProps)for(i in e=n.defaultProps,e)r[i]===void 0&&(r[i]=e[i]);return{$$typeof:zre,type:n,key:o,ref:s,props:r,_owner:Hze.current}}zx.jsx=jre,zx.jsxs=jre,RR.exports=zx;const ne=RR.exports.jsx,dt=RR.exports.jsxs,Qr=RR.exports.Fragment;var Uze={container:X.any,children:X.any,childrenProps:X.object,className:X.string,containerPadding:X.number,placement:X.any,preventOverflow:X.bool,open:X.bool,rootClose:X.bool,transition:X.any,triggerTarget:X.any,onClose:X.func,onEnter:X.func,onEntering:X.func,onEntered:X.func,onExit:X.func,onExiting:X.func,onExited:X.func},bB=xe.forwardRef(function(n,e){var t=O.exports.useContext(vB),i=t.overlayContainer,r=n.container,o=r===void 0?i:r,s=n.containerPadding,a=n.placement,l=n.rootClose,c=n.children,u=n.childrenProps,d=n.transition,h=d===void 0?Hre:d,f=n.open,g=n.preventOverflow,p=n.triggerTarget,m=n.onClose,v=n.onExited,_=n.onExit,y=n.onExiting,b=n.onEnter,w=n.onEntering,x=n.onEntered,S=O.exports.useState(!f),k=S[0],T=S[1],D=O.exports.useRef(null);f?k&&T(!1):!h&&!k&&T(!0);var R=f||h&&!k,N=O.exports.useCallback(function(P){T(!0),v==null||v(P)},[v]);if(gje(m,{triggerTarget:p,overlayTarget:D,disabled:!l||!R}),!R)return null;var A={container:o,containerPadding:s,triggerTarget:p,placement:a,preventOverflow:g},V=function(U,F){return ne(Mze,ot(Te(Te({},A),U),{ref:Io(e,F),children:function(M,W){if(typeof c=="function")return c(Object.assign(M,u),Io(W,D));var j=M.left,$=M.top,Q=M.className;return xe.cloneElement(c,vt({},u,c.props,{className:Bu(Q,c.props.className),style:vt({left:j,top:$},c.props.style),ref:Io(W,D)}))}}))};return h?ne(h,{in:f,transitionAppear:!0,onExit:_,onExiting:y,onExited:N,onEnter:b,onEntering:w,onEntered:x,children:V}):V()});bB.displayName="Overlay",bB.propTypes=Uze;var jze=bB;function qze(n,e){n===void 0&&(n={}),e===void 0&&(e={});var t={};return Object.keys(n).forEach(function(i){if(n[i]){var r;t[i]=vr(n[i],(r=e)===null||r===void 0?void 0:r[i])}}),t}function qre(n,e,t){var i=e.currentTarget,r=e.relatedTarget||Ax(e,["nativeEvent","toElement"]);(!r||r!==i)&&!Wx(i,r)&&n(e,t)}var Kze=["hover","focus"],Kre=xe.forwardRef(function(n,e){var t=O.exports.useContext(vB),i=t.overlayContainer,r=n.children,o=n.container,s=o===void 0?i:o,a=n.controlId,l=n.defaultOpen,c=n.trigger,u=c===void 0?Kze:c,d=n.disabled,h=n.readOnly,f=n.plaintext,g=n.open,p=n.delay,m=n.delayOpen,v=n.delayClose,_=n.enterable,y=n.placement,b=y===void 0?"bottomStart":y,w=n.speaker,x=n.rootClose,S=x===void 0?!0:x,k=n.onClick,T=n.onMouseOver,D=n.onMouseOut,R=n.onContextMenu,N=n.onFocus,A=n.onBlur,V=n.onClose,P=Pt(n,["children","container","controlId","defaultOpen","trigger","disabled","readOnly","plaintext","open","delay","delayOpen","delayClose","enterable","placement","speaker","rootClose","onClick","onMouseOver","onMouseOut","onContextMenu","onFocus","onBlur","onClose"]),U=poe({container:s}),F=U.Portal,M=O.exports.useRef(),W=O.exports.useRef(),j=moe(g,l),$=j[0],Q=j[1],ee=O.exports.useRef(null),ge=O.exports.useRef(null),_e=Pr(m)?p:m,Ie=Pr(v)?p:v,K=O.exports.useRef(!1),se=O.exports.useRef(!1);O.exports.useEffect(function(){return function(){Pr(ee.current)||clearTimeout(ee.current),Pr(ge.current)||clearTimeout(ge.current)}},[]);var oe=O.exports.useCallback(function(Ee){var Ce=Zie(Ee)?_e:Ee;if(Ce&&typeof Ce=="number")return ee.current=setTimeout(function(){ee.current=null,Q(!0)},Ce);Q(!0)},[_e,Q]),Ne=O.exports.useCallback(function(Ee){var Ce=Zie(Ee)?Ie:Ee;if(Ce&&typeof Ce=="number")return ge.current=setTimeout(function(){ge.current=null,Q(!1)},Ce);Q(!1)},[Ie,Q]);O.exports.useImperativeHandle(e,function(){return{get root(){return M.current},get overlay(){var Ee;return(Ee=W.current)===null||Ee===void 0?void 0:Ee.child},open:oe,close:Ne,updatePosition:function(){var Ce,He;(Ce=W.current)===null||Ce===void 0||(He=Ce.updatePosition)===null||He===void 0||He.call(Ce)}}});var pe=O.exports.useCallback(function(){!K.current&&!se.current&&Ne()},[Ne]),Me=O.exports.useCallback(function(){$?pe():oe()},[$,pe,oe]),at=O.exports.useCallback(function(){if(!_)return oe();if(se.current=!0,!Pr(ge.current))return clearTimeout(ge.current),ge.current=null,oe();$||oe()},[_,$,oe]),_t=O.exports.useCallback(function(){if(_||Ne(),se.current=!1,!Pr(ee.current)){clearTimeout(ee.current),ee.current=null;return}!$||!Pr(ge.current)||(ge.current=setTimeout(function(){Pr(ge.current)||(clearTimeout(ge.current),ge.current=null),pe()},200))},[_,$,Ne,pe]),qe=O.exports.useCallback(function(){K.current=!0},[]),kt=O.exports.useCallback(function(){K.current=!1,!kf("click",u)&&!kf("contextMenu",u)&&!kf("active",u)&&pe()},[pe,u]),ve=O.exports.useCallback(function(Ee){Ee.preventDefault()},[]),B={onClick:k,onContextMenu:R,onMouseOver:T,onMouseOut:D,onFocus:N,onBlur:A};if(!d&&!h&&!f){if(kf("click",u)&&(B.onClick=vr(Me,B.onClick)),kf("contextMenu",u)&&(B.onContextMenu=vr(ve,Me,B.onContextMenu)),kf("active",u)&&(B.onClick=vr(at,B.onClick)),kf("hover",u)){var G=null,te=null;u!=="none"&&(G=function(Ce){return qre(at,Ce)},te=function(Ce){return qre(_t,Ce)}),B.onMouseOver=vr(G,T),B.onMouseOut=vr(te,D)}kf("focus",u)&&(B.onFocus=vr(at,N),B.onBlur=vr(_t,A))}var Se=function(){var Ce=vt({},P,{rootClose:S,triggerTarget:M,onClose:u!=="none"?vr(Ne,V):void 0,placement:b,container:s,open:$}),He={id:a};return u!=="none"&&_&&(He.onMouseEnter=qe,He.onMouseLeave=kt),ne(jze,ot(Te({},Ce),{ref:W,childrenProps:He,children:typeof w=="function"?function(We,ht){return w(vt({},We,{onClose:Ne}),ht)}:w}))};return dt(Qr,{children:[typeof r=="function"?r(B,M):xe.cloneElement(r,vt({ref:M,"aria-describedby":a},qze(B,r.props))),ne(F,{children:Se()})]})});Kre.displayName="OverlayTrigger";var Gze=Kre,Gre={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};function Yze(){if(!!C1){var n,e=document.createElement("div").style;for(n in Gre)if(e[n]!==void 0)return Gre[n]}}function Zze(n){var e=W_(n),t=$1(e),i=t.innerWidth;return e.body?e.body.clientWidth<i:!1}var Xze=function(n){var e=$1(n),t=n&&n.tagName.toLowerCase()==="body";return e||t?Zze(n):n.scrollHeight>n.clientHeight},yB,Qze=function(n){if((yB===void 0||n)&&C1){var e=document.createElement("div"),t=document.body;e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",t.appendChild(e),yB=e.offsetWidth-e.clientWidth,t.removeChild(e)}return yB},CB=function(n,e){var t=$1(n);return t?t.innerHeight:e?n.clientHeight:U_(n).height},NR=xe.createContext({}),Jze=NR.Consumer,eUe=NR.Provider,tUe=["light","dark","high-contrast"],nUe=function(e){var t=e.children,i=e.classPrefix,r=i===void 0?m7e():i,o=e.theme,s=Pt(e,["children","classPrefix","theme"]),a=xe.useMemo(function(){return vt({classPrefix:r,theme:o},s)},[r,o,s]);return xe.useEffect(function(){C1&&o&&(lB(document.body,P1(r,"theme-"+o)),tUe.forEach(function(l){l!==o&&aB(document.body,P1(r,"theme-"+l))}))},[r,o]),xe.createElement(eUe,{value:a},t)},iUe=nUe,rUe=Gie,oUe=Ix,sUe=Array.prototype,aUe=sUe.splice;function lUe(n,e){for(var t=n?e.length:0,i=t-1;t--;){var r=e[t];if(t==i||r!==o){var o=r;oUe(r)?aUe.call(n,r,1):rUe(n,r)}}return n}var cUe=lUe,uUe=N6,dUe=cUe;function hUe(n,e){var t=[];if(!(n&&n.length))return t;var i=-1,r=[],o=n.length;for(e=uUe(e);++i<o;){var s=n[i];e(s,i,n)&&(t.push(s),r.push(i))}return dUe(n,r),t}var fUe=hUe,Yre=xe.forwardRef(function(n,e){var t=q_("Plaintext"),i=t.locale,r=n.as,o=r===void 0?"div":r,s=n.classPrefix,a=s===void 0?"plaintext":s,l=n.className,c=n.children,u=n.localeKey,d=u===void 0?"":u,h=n.placeholder,f=h===void 0?i[d]:h,g=Pt(n,["as","classPrefix","className","children","localeKey","placeholder"]),p=bn(a),m=p.withClassPrefix,v=p.merge,_=v(l,m({empty:!c}));return xe.createElement(o,vt({},g,{ref:e,className:_}),c||f)});Yre.displayName="Plaintext";var gUe=Yre,Zre=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"span":t,r=n.classPrefix,o=r===void 0?"btn-close":r,s=n.className,a=n.locale,l=Pt(n,["as","classPrefix","className","locale"]),c=bn(o),u=c.withClassPrefix,d=c.merge,h=q_("CloseButton",a),f=h.locale,g=d(s,u());return xe.createElement(i,vt({role:"button"},l,{ref:e,className:g,title:f==null?void 0:f.closeLabel,"aria-label":f==null?void 0:f.closeLabel}),xe.createElement(rB,null))});Zre.displayName="CloseButton";var Xre=Zre,Qre={},wB={exports:{}},Jre={};(function(n){function e(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(c)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r(O.exports);function i(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return i=function(){return c},c}function r(c){if(c&&c.__esModule)return c;if(c===null||e(c)!=="object"&&typeof c!="function")return{default:c};var u=i();if(u&&u.has(c))return u.get(c);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=h?Object.getOwnPropertyDescriptor(c,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=c[f]}return d.default=c,u&&u.set(c,d),d}function o(){return o=Object.assign||function(c){for(var u=1;u<arguments.length;u++){var d=arguments[u];for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(c[h]=d[h])}return c},o.apply(this,arguments)}function s(c,u){return t.createElement("svg",o({width:"1em",height:"1em",viewBox:"0 0 21 32",fill:"currentColor",ref:u},c),t.createElement("path",{d:"M19.196 13.143a.612.612 0 01-.179.411l-8.321 8.321c-.107.107-.268.179-.411.179s-.304-.071-.411-.179l-8.321-8.321c-.107-.107-.179-.268-.179-.411s.071-.304.179-.411l.893-.893a.582.582 0 01.411-.179c.143 0 .304.071.411.179l7.018 7.018 7.018-7.018c.107-.107.268-.179.411-.179s.304.071.411.179l.893.893a.617.617 0 01.179.411z"}))}var a=t.forwardRef(s),l=a;n.default=l})(Jre),function(n,e){var t=la.exports;e.__esModule=!0,e.default=void 0;var i=t(Gc.exports),r=t(Jre),o=(0,i.default)({as:r.default,ariaLabel:"angle down",category:"legacy",displayName:"AngleDown"}),s=o;e.default=s,n.exports=e.default}(wB,wB.exports),function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return e.default}});var e=t(wB.exports);function t(i){return i&&i.__esModule?i:{default:i}}}(Qre);var pUe=Jo(Qre),eoe={},SB={exports:{}},toe={};(function(n){function e(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(c)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r(O.exports);function i(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return i=function(){return c},c}function r(c){if(c&&c.__esModule)return c;if(c===null||e(c)!=="object"&&typeof c!="function")return{default:c};var u=i();if(u&&u.has(c))return u.get(c);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=h?Object.getOwnPropertyDescriptor(c,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=c[f]}return d.default=c,u&&u.set(c,d),d}function o(){return o=Object.assign||function(c){for(var u=1;u<arguments.length;u++){var d=arguments[u];for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(c[h]=d[h])}return c},o.apply(this,arguments)}function s(c,u){return t.createElement("svg",o({width:"1em",height:"1em",viewBox:"0 0 21 32",fill:"currentColor",ref:u},c),t.createElement("path",{d:"M19.196 21.143a.612.612 0 01-.179.411l-.893.893a.582.582 0 01-.411.179.612.612 0 01-.411-.179l-7.018-7.018-7.018 7.018c-.107.107-.268.179-.411.179s-.304-.071-.411-.179l-.893-.893c-.107-.107-.179-.268-.179-.411s.071-.304.179-.411l8.321-8.321c.107-.107.268-.179.411-.179s.304.071.411.179l8.321 8.321a.617.617 0 01.179.411z"}))}var a=t.forwardRef(s),l=a;n.default=l})(toe),function(n,e){var t=la.exports;e.__esModule=!0,e.default=void 0;var i=t(Gc.exports),r=t(toe),o=(0,i.default)({as:r.default,ariaLabel:"angle up",category:"legacy",displayName:"AngleUp"}),s=o;e.default=s,n.exports=e.default}(SB,SB.exports),function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return e.default}});var e=t(SB.exports);function t(i){return i&&i.__esModule?i:{default:i}}}(eoe);var mUe=Jo(eoe),noe={},xB={exports:{}},ioe={};(function(n){function e(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(c)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r(O.exports);function i(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return i=function(){return c},c}function r(c){if(c&&c.__esModule)return c;if(c===null||e(c)!=="object"&&typeof c!="function")return{default:c};var u=i();if(u&&u.has(c))return u.get(c);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=h?Object.getOwnPropertyDescriptor(c,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=c[f]}return d.default=c,u&&u.set(c,d),d}function o(){return o=Object.assign||function(c){for(var u=1;u<arguments.length;u++){var d=arguments[u];for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(c[h]=d[h])}return c},o.apply(this,arguments)}function s(c,u){return t.createElement("svg",o({width:"1em",height:"1em",viewBox:"0 0 12 32",fill:"currentColor",ref:u},c),t.createElement("path",{d:"M11.196 9.714a.612.612 0 01-.179.411l-7.018 7.018 7.018 7.018c.107.107.179.268.179.411s-.071.304-.179.411l-.893.893c-.107.107-.268.179-.411.179s-.304-.071-.411-.179L.981 17.555c-.107-.107-.179-.268-.179-.411s.071-.304.179-.411l8.321-8.321c.107-.107.268-.179.411-.179s.304.071.411.179l.893.893c.107.107.179.25.179.411z"}))}var a=t.forwardRef(s),l=a;n.default=l})(ioe),function(n,e){var t=la.exports;e.__esModule=!0,e.default=void 0;var i=t(Gc.exports),r=t(ioe),o=(0,i.default)({as:r.default,ariaLabel:"angle left",category:"legacy",displayName:"AngleLeft"}),s=o;e.default=s,n.exports=e.default}(xB,xB.exports),function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return e.default}});var e=t(xB.exports);function t(i){return i&&i.__esModule?i:{default:i}}}(noe);var Ux=Jo(noe),roe={},EB={exports:{}},ooe={};(function(n){function e(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(c)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r(O.exports);function i(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return i=function(){return c},c}function r(c){if(c&&c.__esModule)return c;if(c===null||e(c)!=="object"&&typeof c!="function")return{default:c};var u=i();if(u&&u.has(c))return u.get(c);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=h?Object.getOwnPropertyDescriptor(c,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=c[f]}return d.default=c,u&&u.set(c,d),d}function o(){return o=Object.assign||function(c){for(var u=1;u<arguments.length;u++){var d=arguments[u];for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(c[h]=d[h])}return c},o.apply(this,arguments)}function s(c,u){return t.createElement("svg",o({width:"1em",height:"1em",viewBox:"0 0 11 32",fill:"currentColor",ref:u},c),t.createElement("path",{d:"M10.625 17.143a.612.612 0 01-.179.411l-8.321 8.321c-.107.107-.268.179-.411.179s-.304-.071-.411-.179l-.893-.893a.582.582 0 01-.179-.411c0-.143.071-.304.179-.411l7.018-7.018L.41 10.124c-.107-.107-.179-.268-.179-.411s.071-.304.179-.411l.893-.893c.107-.107.268-.179.411-.179s.304.071.411.179l8.321 8.321a.617.617 0 01.179.411z"}))}var a=t.forwardRef(s),l=a;n.default=l})(ooe),function(n,e){var t=la.exports;e.__esModule=!0,e.default=void 0;var i=t(Gc.exports),r=t(ooe),o=(0,i.default)({as:r.default,ariaLabel:"angle right",category:"legacy",displayName:"AngleRight"}),s=o;e.default=s,n.exports=e.default}(EB,EB.exports),function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return e.default}});var e=t(EB.exports);function t(i){return i&&i.__esModule?i:{default:i}}}(roe);var jx=Jo(roe),_Ue={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},vUe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},bUe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yUe={date:N1({formats:_Ue,defaultWidth:"full"}),time:N1({formats:vUe,defaultWidth:"full"}),dateTime:N1({formats:bUe,defaultWidth:"full"})},CUe=yUe,wUe={code:"en-GB",formatDistance:bne,formatLong:CUe,formatRelative:yne,localize:Cne,match:wne,options:{weekStartsOn:1,firstWeekContainsDate:4}},SUe=wUe,kB={sunday:"Su",monday:"Mo",tuesday:"Tu",wednesday:"We",thursday:"Th",friday:"Fr",saturday:"Sa",ok:"OK",today:"Today",yesterday:"Yesterday",hours:"Hours",minutes:"Minutes",seconds:"Seconds",formattedMonthPattern:"MMM yyyy",formattedDayPattern:"dd MMM yyyy",dateLocale:SUe},xUe={common:{loading:"Loading...",emptyMessage:"No data found"},Plaintext:{unfilled:"Unfilled",notSelected:"Not selected",notUploaded:"Not uploaded"},Pagination:{more:"More",prev:"Previous",next:"Next",first:"First",last:"Last",limit:"{0} / page",total:"Total Rows: {0}",skip:"Go to{0}"},Calendar:kB,DatePicker:vt({},kB),DateRangePicker:vt({},kB,{last7Days:"Last 7 Days"}),Picker:{noResultsText:"No results found",placeholder:"Select",searchPlaceholder:"Search",checkAll:"All"},InputPicker:{newItem:"New item",createOption:'Create option "{0}"'},Uploader:{inited:"Initial",progress:"Uploading",error:"Error",complete:"Finished",emptyFile:"Empty",upload:"Upload"},CloseButton:{closeLabel:"Close"},Breadcrumb:{expandText:"Show path"},Toggle:{on:"Open",off:"Close"}},soe=function(e){return e.reduce(function(t,i){return t=vt({},t,i),t},{})},EUe=function(){return typeof window!="undefined"&&(document.body.getAttribute("dir")||document.dir)==="rtl"};function q_(n,e){var t,i,r=O.exports.useContext(NR),o=r.locale,s=o===void 0?xUe:o,a=r.rtl,l=a===void 0?EUe():a,c=r.formatDate,u=r.parseDate,d=vt({},s==null?void 0:s.common,typeof n=="string"?s==null?void 0:s[n]:soe(n.map(function(g){return s==null?void 0:s[g]})));e&&(d=soe([d,e]));var h=O.exports.useCallback(function(g,p){var m;return V8e(g,p,{locale:s==null||(m=s.Calendar)===null||m===void 0?void 0:m.dateLocale})},[(t=s.Calendar)===null||t===void 0?void 0:t.dateLocale]),f=O.exports.useCallback(function(g,p){var m;return l6e(g,p,new Date,{locale:s==null||(m=s.Calendar)===null||m===void 0?void 0:m.dateLocale})},[(i=s.Calendar)===null||i===void 0?void 0:i.dateLocale]);return{locale:d,rtl:l,formatDate:c||h,parseDate:u||f}}function kUe(n){var e=q_("Dropdown"),t=e.rtl;return O.exports.useMemo(function(){switch(!0){case/^top/.test(n):return mUe;case/^right/.test(n):return t?Ux:jx;case/^left/.test(n):return t?jx:Ux;case/^bottom/.test(n):default:return pUe}},[n,t])}var LB={};function kp(n,e){return function(i,r,o){if(i[r]!=null){var s='"'+r+'" property of "'+o+`" has been deprecated.
|
|
126
|
-
`+e;LB[s]||(console.warn(s),LB[s]=!0)}for(var a=arguments.length,l=new Array(a>3?a-3:0),c=3;c<a;c++)l[c-3]=arguments[c];return n.apply(void 0,[i,r,o].concat(l))}}function LUe(){LB={}}kp._resetWarned=LUe;var TUe=Kie;function DUe(n,e,t){var i=n.length;return t=t===void 0?i:t,!e&&t>=i?n:TUe(n,e,t)}var IUe=DUe;function RUe(n){return n.split("")}var NUe=RUe,AUe="\\ud800-\\udfff",OUe="\\u0300-\\u036f",PUe="\\ufe20-\\ufe2f",MUe="\\u20d0-\\u20ff",FUe=OUe+PUe+MUe,BUe="\\ufe0e\\ufe0f",$Ue="\\u200d",WUe=RegExp("["+$Ue+AUe+FUe+BUe+"]");function HUe(n){return WUe.test(n)}var aoe=HUe,loe="\\ud800-\\udfff",VUe="\\u0300-\\u036f",zUe="\\ufe20-\\ufe2f",UUe="\\u20d0-\\u20ff",jUe=VUe+zUe+UUe,qUe="\\ufe0e\\ufe0f",KUe="["+loe+"]",TB="["+jUe+"]",DB="\\ud83c[\\udffb-\\udfff]",GUe="(?:"+TB+"|"+DB+")",coe="[^"+loe+"]",uoe="(?:\\ud83c[\\udde6-\\uddff]){2}",doe="[\\ud800-\\udbff][\\udc00-\\udfff]",YUe="\\u200d",hoe=GUe+"?",foe="["+qUe+"]?",ZUe="(?:"+YUe+"(?:"+[coe,uoe,doe].join("|")+")"+foe+hoe+")*",XUe=foe+hoe+ZUe,QUe="(?:"+[coe+TB+"?",TB,uoe,doe,KUe].join("|")+")",JUe=RegExp(DB+"(?="+DB+")|"+QUe+XUe,"g");function eje(n){return n.match(JUe)||[]}var tje=eje,nje=NUe,ije=aoe,rje=tje;function oje(n){return ije(n)?rje(n):nje(n)}var sje=oje;function AR(n,e){return e===void 0&&(e=!1),typeof n=="string"?(e&&(n=n.replace(/left|right/,function(t){return t==="left"?"right":"left"})),n.replace(/Left|Top/,"Start").replace(/Right|Bottom/,"End")):n}var aje=function(e){return e&&("current"in e?e.current:e)};function Lp(n){var e=(n==null?void 0:n.root)||(n==null?void 0:n.child)||aje(n);return e!=null&&e.nodeType&&typeof(e==null?void 0:e.nodeName)=="string"?e:fl.exports.findDOMNode(e)}var goe=function(e){return!e||typeof e=="function"?e:function(t){e.current=t}};function Io(n,e){var t=goe(n),i=goe(e);return function(r){typeof t=="function"&&t(r),typeof i=="function"&&i(r)}}var IB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.className,o=n.classPrefix,s=o===void 0?"tooltip":o,a=n.children,l=n.style,c=n.visible,u=Pt(n,["as","className","classPrefix","children","style","visible"]),d=bn(s),h=d.merge,f=d.withClassPrefix,g=h(r,f()),p=vt({opacity:c?1:void 0},l);return xe.createElement(i,vt({role:"tooltip"},u,{ref:e,className:g,style:p}),a)});IB.displayName="Tooltip",IB.propTypes={visible:X.bool,classPrefix:X.string,className:X.string,style:X.object,children:X.node};var lje=IB,RB=xe.forwardRef(function(n,e){var t=n.onOpen,i=n.onClose,r=n.onEntered,o=n.onExited,s=n.placement,a=s===void 0?"right":s,l=n.preventOverflow,c=Pt(n,["onOpen","onClose","onEntered","onExited","placement","preventOverflow"]);return xe.createElement(Jze,null,function(u){return xe.createElement(Gze,vt({},c,{ref:e,preventOverflow:l,placement:AR(a,u==null?void 0:u.rtl),onEntered:vr(t,r),onExited:vr(i,o)}))})});RB.displayName="Whisper",RB.propTypes={onOpen:X.func,onClose:X.func,onEntered:X.func,onExited:X.func,placement:X.oneOf(yAe),preventOverflow:X.bool};var cje=RB;function uje(n){var e=n.message,t=n.ref,i=Pt(n,["message","ref"]);return xe.createElement(cje,vt({ref:t,speaker:xe.createElement(lje,null,e)},i))}function bn(n){var e=O.exports.useContext(NR)||{},t=e.classPrefix,i=t===void 0?"rs":t,r=P1(i,n),o=O.exports.useCallback(function(){var l=arguments.length?Bu.apply(void 0,arguments).split(" ").map(function(c){return P1(r,c)}):[];return l.filter(function(c){return c}).join(" ")},[r]),s=O.exports.useCallback(function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=o(c);return d?r+" "+d:r},[r,o]),a=function(){var c=arguments.length?Bu.apply(void 0,arguments).split(" ").map(function(u){return P1(i,u)}):[];return c.filter(function(u){return u}).join(" ")};return{withClassPrefix:s,merge:Bu,prefix:o,rootPrefix:a}}function poe(n){n===void 0&&(n={});var e=n,t=e.id,i=e.container,r=O.exports.useRef(C1?document.body:null);O.exports.useEffect(function(){var s=typeof i=="function"?i():i,a=t&&document.querySelector("#"+t),l=s||a||document.body;r.current=l},[r,i,t]);var o=O.exports.useCallback(function(s){var a=s.children;return r.current!=null?fl.exports.createPortal(a,r.current):null},[r]);return{target:r.current,Portal:o}}function H1(n){var e=n.name,t=n.componentAs,i=n.componentClassPrefix,r=Pt(n,["name","componentAs","componentClassPrefix"]),o=xe.forwardRef(function(s,a){var l=s.as,c=l===void 0?t||"div":l,u=s.classPrefix,d=u===void 0?i||B1(e):u,h=s.className,f=s.role,g=Pt(s,["as","classPrefix","className","role"]),p=bn(d),m=p.withClassPrefix,v=p.merge,_=v(h,m());return xe.createElement(c,vt({},r,g,{role:f,ref:a,className:_}))});return o.displayName=e,o.propTypes={as:X.elementType,className:X.string,classPrefix:X.string,children:X.node},o}function dje(n,e,t){e===void 0&&(e=0),t===void 0&&(t=!0);var i=O.exports.useRef(),r=O.exports.useCallback(function(){i.current&&clearTimeout(i.current)},[]),o=O.exports.useCallback(function(){t&&(i.current=setTimeout(function(){return n==null?void 0:n()},e))},[e,n,t]);return O.exports.useEffect(function(){return o(),r},[n,e,t,r,o]),{clear:r,reset:o}}function moe(n,e){var t=O.exports.useRef(!1);t.current=n!==void 0;var i=O.exports.useState(e),r=i[0],o=i[1],s=t.current?n:r,a=O.exports.useCallback(function(l){t.current||o(l)},[t]);return[s,a,t.current]}function hje(n){return(n==null?void 0:n.button)===0}function fje(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n!=null&&n.shiftKey)}function gje(n,e){var t=e.disabled,i=e.triggerTarget,r=e.overlayTarget,o=e.listenEscape,s=o===void 0?!0:o,a=O.exports.useCallback(function(c){s&&c.key===Ii.ESC&&(n==null||n(c))},[s,n]),l=O.exports.useCallback(function(c){var u=Lp(i),d=Lp(r);u&&Wx(u,c.target)||d&&Wx(d,c.target)||fje(c)||!hje(c)||n==null||n(c)},[n,i,r]);O.exports.useEffect(function(){var c=Lp(i);if(!(t||!c)){var u=W_(c),d=Ud(u,"mousedown",l,!0),h=Ud(u,"keyup",a);return function(){d==null||d.off(),h==null||h.off()}}},[i,t,n,l,a])}function V1(n){var e=O.exports.useRef(n);return O.exports.useEffect(function(){e.current=n}),O.exports.useCallback(function(){for(var t,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(t=e.current)===null||t===void 0?void 0:t.call.apply(t,[e].concat(r))},[])}function pje(n){var e=O.exports.useRef(n);return e.current=n,e}function mje(n){var e=pje(n);O.exports.useEffect(function(){return function(){return e.current()}},[])}var _je=function(e,t){var i=O.exports.useRef(!0);O.exports.useEffect(function(){if(i.current){i.current=!1;return}e()},t)},vje=_je;function bje(){var n=O.exports.useRef(!1);return O.exports.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),O.exports.useCallback(function(){return n.current},[])}var yje=xe.createContext(null),Cje=yje;function _oe(n){return!n||n.trim()==="#"}var NB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"a":t,r=n.href,o=n.disabled,s=n.onClick,a=Pt(n,["as","href","disabled","onClick"]),l=O.exports.useCallback(function(u){if((o||_oe(r))&&u.preventDefault(),o){u.stopPropagation();return}s==null||s(u)},[o,r,s]),c=_oe(r)?{role:"button",href:"#"}:null;return o&&(a.tabIndex=-1,a["aria-disabled"]=!0),ne(i,ot(Te(Te({ref:e,href:r},c),a),{onClick:l}))});NB.displayName="SafeAnchor",NB.propTypes={href:X.string,disabled:X.bool,as:X.elementType};var K_=NB,wje=function(e,t){var i=U_(e),r=(t.pageX||0)-i.left,o=(t.pageY||0)-i.top,s=Math.max(i.width-r,r),a=Math.max(i.height-o,o),l=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));return{width:l*2,height:l*2,left:r-l,top:o-l}},AB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"span":t,r=n.className,o=n.classPrefix,s=o===void 0?"ripple":o,a=n.onMouseDown,l=Pt(n,["as","className","classPrefix","onMouseDown"]),c=bn(s),u=c.merge,d=c.prefix,h=c.withClassPrefix,f=u(r,d("pond")),g=O.exports.useRef(null),p=O.exports.useState(!1),m=p[0],v=p[1],_=O.exports.useState(),y=_[0],b=_[1],w=function(){v(!1)},x=O.exports.useCallback(function(S){var k=wje(g.current,S);v(!0),b(k),a==null||a(k,S)},[a]);return O.exports.useEffect(function(){var S=g.current.parentNode,k=Ud(S,"mousedown",x);return function(){k==null||k.off()}},[x]),ne(i,ot(Te({},l),{className:f,ref:Io(g,e),children:ne(j_,{in:m,enteringClassName:d("rippling"),onEntered:w,children:function(S,k){var T=S.className,D=Pt(S,["className"]);return ne("span",ot(Te({},D),{ref:k,className:u(h(),T),style:y}))}})}))});AB.displayName="Ripple",AB.propTypes={classPrefix:X.string,className:X.string,onMouseDown:X.func};var G_=AB,voe,OB=xe.forwardRef(function(n,e){var t=n.as,i=n.active,r=n.appearance,o=r===void 0?"default":r,s=n.block,a=n.className,l=n.children,c=n.classPrefix,u=c===void 0?"btn":c,d=n.color,h=n.disabled,f=n.loading,g=n.ripple,p=g===void 0?!0:g,m=n.size,v=n.type,_=Pt(n,["as","active","appearance","block","className","children","classPrefix","color","disabled","loading","ripple","size","type"]),y=O.exports.useContext(Cje),b=m!=null?m:y==null?void 0:y.size,w=bn(u),x=w.withClassPrefix,S=w.prefix,k=w.merge,T=k(a,x(o,d,b,{active:i,disabled:h,loading:f,block:s})),D=p&&!kf(o,["link","ghost"])?ne(G_,{}):null,R=ne("span",{className:S(voe||(voe=Bs(["spin"])))});if(_.href)return dt(K_,ot(Te({},_),{as:t,ref:e,"aria-disabled":h,disabled:h,className:T,children:[f&&R,l,D]}));var N=t||"button",A=v||(N==="button"?"button":void 0),V=_.role||(N!=="button"?"button":void 0);return dt(N,ot(Te({},_),{role:V,type:A,ref:e,disabled:h,"aria-disabled":h,className:T,children:[f&&R,l,D]}))});OB.displayName="Button",OB.propTypes={as:X.elementType,active:X.bool,appearance:X.oneOf(["default","primary","link","subtle","ghost"]),block:X.bool,children:X.node,color:X.oneOf(["red","orange","yellow","green","cyan","blue","violet"]),disabled:X.bool,href:X.string,loading:X.bool,ripple:X.bool,size:X.oneOf(["lg","md","sm","xs"]),type:X.oneOf(["button","reset","submit"])};var PB=OB,MB=xe.forwardRef(function(n,e){var t=n.icon,i=n.placement,r=i===void 0?"left":i,o=n.children,s=n.circle,a=n.classPrefix,l=a===void 0?"btn-icon":a,c=n.className,u=Pt(n,["icon","placement","children","circle","classPrefix","className"]),d=bn(l),h=d.merge,f=d.withClassPrefix,g=h(c,f("placement-"+r,{circle:s,"with-text":typeof o!="undefined"}));return xe.createElement(PB,vt({},u,{ref:e,className:g}),t,o)});MB.displayName="IconButton",MB.propTypes={className:X.string,icon:X.any,classPrefix:X.string,circle:X.bool,children:X.node,placement:X.oneOf(["left","right"])};var FB=MB;function Sje(n,e){var t=-1;return n.some(function(i,r){return e(i,r)?(t=r,!0):!1}),t}function xje(n,e){return Sje(n,function(t){return t.modals.indexOf(e)!==-1})}var Eje=function(){function n(){this.modals=[],this.containers=[],this.data=[]}var e=n.prototype;return e.add=function(i,r,o){var s=this.modals.indexOf(i),a=this.containers.indexOf(r);if(s!==-1)return s;if(s=this.modals.length,this.modals.push(i),a!==-1)return this.data[a].modals.push(i),s;var l={modals:[i],classes:o?o.split(/\s+/):[],style:{overflow:r.style.overflow,paddingRight:r.style.paddingRight},overflowing:Xze(r)};if(l.overflowing){var c=parseInt(Lf(r,"paddingRight")||0,10),u=Qze();H_(r,{paddingRight:(u?c+u:c)+"px"})}return l.classes.forEach(lB.bind(null,r)),this.containers.push(r),this.data.push(l),s},e.remove=function(i){var r=this.modals.indexOf(i);if(r!==-1){var o=xje(this.data,i),s=this.data[o],a=this.containers[o];s.modals.splice(s.modals.indexOf(i),1),this.modals.splice(r,1),s.modals.length===0&&(Object.keys(s.style).forEach(function(l){return a.style[l]=s.style[l]}),s.classes.forEach(aB.bind(null,a)),this.containers.splice(o,1),this.data.splice(o,1))}},e.isTopModal=function(i){return!!this.modals.length&&this.modals[this.modals.length-1]===i},n}(),kje=Eje,BB;function Lje(){return BB||(BB=new kje),BB}var Tje=function(){var e=Lje(),t=O.exports.useRef({dialog:null,backdrop:null});return{get dialog(){var i;return(i=t.current)===null||i===void 0?void 0:i.dialog},add:function(r,o){return e.add(t.current,r,o)},remove:function(){return e.remove(t.current)},isTopModal:function(){return e.isTopModal(t.current)},setDialogRef:O.exports.useCallback(function(i){t.current.dialog=i},[]),setBackdropRef:O.exports.useCallback(function(i){t.current.backdrop=i},[])}},$B=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.children,o=n.transition,s=n.dialogTransitionTimeout,a=n.style,l=n.className,c=n.container,u=n.animationProps,d=n.containerClassName,h=n.keyboard,f=h===void 0?!0:h,g=n.enforceFocus,p=g===void 0?!0:g,m=n.backdrop,v=m===void 0?!0:m,_=n.backdropTransitionTimeout,y=n.backdropStyle,b=n.backdropClassName,w=n.open,x=n.autoFocus,S=x===void 0?!0:x,k=n.onBackdropClick,T=n.onEsc,D=n.onExit,R=n.onExiting,N=n.onExited,A=n.onEnter,V=n.onEntering,P=n.onEntered,U=n.onClose,F=n.onOpen,M=Pt(n,["as","children","transition","dialogTransitionTimeout","style","className","container","animationProps","containerClassName","keyboard","enforceFocus","backdrop","backdropTransitionTimeout","backdropStyle","backdropClassName","open","autoFocus","onBackdropClick","onEsc","onExit","onExiting","onExited","onEnter","onEntering","onEntered","onClose","onOpen"]),W=O.exports.useState(!w),j=W[0],$=W[1],Q=poe({container:c}),ee=Q.Portal,ge=Tje();w?j&&$(!1):!o&&!j&&$(!0);var _e=w||o&&!j,Ie=O.exports.useRef(null),K=V1(function(G){f&&G.key===Ii.ESC&&ge.isTopModal()&&(T==null||T(G),U==null||U(G))}),se=O.exports.useCallback(function(){if(Ie.current){var G,te;(G=(te=Ie.current).focus)===null||G===void 0||G.call(te),Ie.current=null}},[]),oe=V1(function(G){var te=document.activeElement,Se=ge.dialog;Se&&te&&!Wx(Se,te)&&(G==null||G(),Se.focus())}),Ne=V1(function(){!p||!ge.isTopModal()||oe()}),pe=V1(function(G){G.target===G.currentTarget&&(k==null||k(G),v===!0&&(U==null||U(G)))}),Me=O.exports.useRef(),at=O.exports.useRef(),_t=V1(function(){var G=Jie(c,document.body);ge.add(G,d),Me.current||(Me.current=Ud(document,"keydown",K)),at.current||(at.current=Ud(document,"focus",Ne,!0)),S&&oe(function(){Ie.current=document.activeElement}),F==null||F()}),qe=V1(function(){var G,te;ge.remove(),(G=Me.current)===null||G===void 0||G.off(),Me.current=null,(te=at.current)===null||te===void 0||te.off(),at.current=null,se()});O.exports.useEffect(function(){!w||_t()},[w,_t]),O.exports.useEffect(function(){!j||qe()},[j,qe]),mje(function(){qe()});var kt=O.exports.useCallback(function(){$(!0)},[]);if(!_e)return null;var ve=function(){var te={style:y,onClick:pe};return o?ne(Hre,{transitionAppear:!0,in:w,timeout:_,children:function(Se,Ee){var Ce=Se.className,He=Pt(Se,["className"]);return ne("div",ot(Te(Te({"aria-hidden":!0},He),te),{ref:Io(ge.setBackdropRef,Ee),className:Bu(b,Ce)}))}}):ne("div",ot(Te({"aria-hidden":!0},te),{className:b}))},B=o?ne(o,ot(Te({},u),{transitionAppear:!0,unmountOnExit:!0,in:w,timeout:s,onExit:D,onExiting:R,onExited:vr(kt,N),onEnter:A,onEntering:V,onEntered:P,children:r})):r;return ne(vB.Provider,{value:{overlayContainer:function(){return ge.dialog}},children:ne(ee,{children:dt(i,ot(Te({},M),{ref:Io(ge.setDialogRef,e),style:a,className:l,tabIndex:-1,children:[v&&ve(),B]}))})})}),boe={as:X.elementType,className:X.string,backdropClassName:X.string,style:X.object,backdropStyle:X.object,open:X.bool,backdrop:X.oneOfType([X.bool,X.string]),keyboard:X.bool,autoFocus:X.bool,enforceFocus:X.bool,animationProps:X.object,onOpen:X.func,onClose:X.func};$B.displayName="OverlayModal",$B.propTypes=vt({},$re,boe,{children:X.func,container:X.any,containerClassName:X.string,dialogTransitionTimeout:X.number,backdropTransitionTimeout:X.number,transition:X.any,onEsc:X.func,onBackdropClick:X.func});var Dje=$B,yoe=xe.forwardRef(function(n,e){var t=n.timeout,i=t===void 0?300:t,r=Pt(n,["timeout"]),o=bn("anim"),s=o.prefix;return xe.createElement(j_,vt({},r,{ref:e,animation:!0,timeout:i,enteringClassName:s("bounce-in"),enteredClassName:s("bounce-in"),exitingClassName:s("bounce-out"),exitedClassName:s("bounce-out")}))});yoe.displayName="Bounce";var Ije=yoe,Coe,woe={size:X.oneOf(mte),className:X.string,classPrefix:X.string,dialogClassName:X.string,style:X.object,dialogStyle:X.object,children:X.node},WB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.style,o=n.children,s=n.dialogClassName,a=n.dialogStyle,l=n.classPrefix,c=l===void 0?"modal":l,u=n.className,d=n.size,h=Pt(n,["as","style","children","dialogClassName","dialogStyle","classPrefix","className","size"]),f=vt({display:"block"},r),g=bn(c),p=g.merge,m=g.withClassPrefix,v=g.prefix,_=p(u,m(d)),y=p(s,v("dialog"));return xe.createElement(i,vt({role:"dialog","aria-modal":!0},h,{ref:e,className:_,style:f}),xe.createElement("div",{role:"document",className:y,style:a},xe.createElement("div",{className:v(Coe||(Coe=Bs(["content"])))},o)))});WB.displayName="ModalDialog",WB.propTypes=woe;var Soe=WB,OR=xe.createContext(null),HB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.classPrefix,o=r===void 0?"modal-body":r,s=n.className,a=n.style,l=n.children,c=Pt(n,["as","classPrefix","className","style","children"]),u=bn(o),d=u.withClassPrefix,h=u.merge,f=u.prefix,g=h(s,d());return xe.createElement(OR.Consumer,null,function(p){var m,v=p==null||(m=p.getBodyStyles)===null||m===void 0?void 0:m.call(p);return xe.createElement(i,vt({},c,{ref:e,style:vt({},v,a),className:g}),(p==null?void 0:p.isDrawer)&&xe.createElement(FB,{icon:xe.createElement(rB,null),appearance:"subtle",size:"sm",className:f("close"),onClick:p==null?void 0:p.onModalClose}),l)})});HB.displayName="ModalBody",HB.propTypes={as:X.elementType,classPrefix:X.string,className:X.string};var Rje=HB,VB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.classPrefix,o=r===void 0?"modal-header":r,s=n.className,a=n.closeButton,l=a===void 0?!0:a,c=n.children,u=n.onClose,d=Pt(n,["as","classPrefix","className","closeButton","children","onClose"]),h=bn(o),f=h.merge,g=h.withClassPrefix,p=h.prefix,m=f(s,g()),v=O.exports.useContext(OR),_=v!=null&&v.isDrawer?ne(FB,{icon:ne(rB,{}),appearance:"subtle",size:"sm",className:p("close"),onClick:vr(u,v==null?void 0:v.onModalClose)}):ne(Xre,{className:p("close"),onClick:vr(u,v==null?void 0:v.onModalClose)});return dt(i,ot(Te({},d),{ref:e,className:m,children:[l&&_,c]}))});VB.displayName="ModalHeader",VB.propTypes={as:X.elementType,classPrefix:X.string,className:X.string,closeButton:X.bool,children:X.node,onHide:X.func};var Nje=VB,zB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"h4":t,r=n.classPrefix,o=r===void 0?"modal-title":r,s=n.className,a=n.role,l=Pt(n,["as","classPrefix","className","role"]),c=bn(o),u=c.withClassPrefix,d=c.merge,h=d(s,u()),f=O.exports.useContext(OR);return ne(i,ot(Te({id:f?f.dialogId+"-title":void 0},l),{role:a,ref:e,className:h}))});zB.displayName="Modal.Title",zB.propTypes={as:X.elementType,className:X.string,classPrefix:X.string,children:X.node};var Aje=zB,Oje=H1({name:"ModalFooter"}),Pje=Oje,Mje=function(e,t){var i=O.exports.useState({}),r=i[0],o=i[1],s=t.overflow,a=t.drawer,l=t.prefix,c=O.exports.useRef(),u=O.exports.useRef(null),d=O.exports.useRef(),h=O.exports.useCallback(function(p,m){var v=e.current,_=v?v.scrollHeight:0,y={overflow:"auto"};if(v){var b=46,w=46,x=v.querySelector("."+l("header")),S=v.querySelector("."+l("footer"));b=x?CB(x)+b:b,w=S?CB(S)+w:w;var k=b+w+(m?70:60),T=CB(window)-k,D=_>=T?T:_;y.maxHeight=D}o(y)},[l,e]),f=O.exports.useCallback(function(){var p,m,v;(p=c.current)===null||p===void 0||(m=p.off)===null||m===void 0||m.call(p),(v=d.current)===null||v===void 0||v.disconnect()},[]),g=O.exports.useCallback(function(p){s&&!a&&(h(void 0,p),u.current=e.current.querySelector("."+l("content")),c.current=Ud(window,"resize",h),d.current=new mre(function(){return h()}),d.current.observe(u.current))},[a,s,l,e,h]);return O.exports.useEffect(function(){f()},[f]),[s?r:{},g,f]},Fje=L1,Bje=0;function $je(n){var e=++Bje;return Fje(n)+e}var Wje=$je,xoe=Wje;function PR(n,e){var t=O.exports.useRef();return t.current||(t.current=xoe(n)),e!=null?e:t.current}var Eoe,koe,Tp=xe.forwardRef(function(n,e){var t=n.className,i=n.children,r=n.classPrefix,o=r===void 0?"modal":r,s=n.dialogClassName,a=n.backdropClassName,l=n.backdrop,c=l===void 0?!0:l,u=n.dialogStyle,d=n.animation,h=d===void 0?Ije:d,f=n.open,g=n.size,p=g===void 0?"sm":g,m=n.full,v=n.dialogAs,_=v===void 0?Soe:v,y=n.animationProps,b=n.animationTimeout,w=b===void 0?300:b,x=n.overflow,S=x===void 0?!0:x,k=n.drawer,T=k===void 0?!1:k,D=n.onClose,R=n.onEntered,N=n.onEntering,A=n.onExited,V=n.role,P=V===void 0?"dialog":V,U=n.id,F=n["aria-labelledby"],M=n["aria-describedby"],W=Pt(n,["className","children","classPrefix","dialogClassName","backdropClassName","backdrop","dialogStyle","animation","open","size","full","dialogAs","animationProps","animationTimeout","overflow","drawer","onClose","onEntered","onEntering","onExited","role","id","aria-labelledby","aria-describedby"]),j={in:f&&!h},$=bn(o),Q=$.merge,ee=$.prefix,ge=Q(t,ee(p,{full:m})),_e=O.exports.useRef(null),Ie=O.exports.useRef(),K=Mje(_e,{overflow:S,drawer:T,prefix:ee}),se=K[0],oe=K[1],Ne=K[2],pe=PR("dialog-",U),Me=O.exports.useMemo(function(){return{dialogId:pe,onModalClose:D,getBodyStyles:function(){return se},isDrawer:T}},[pe,D,se,T]),at=O.exports.useState(!1),_t=at[0],qe=at[1],kt=O.exports.useCallback(function(){c==="static"&&(qe(!0),!Ie.current&&_e.current&&(Ie.current=Ud(_e.current,Yze(),function(){qe(!1)})))},[c]),ve=O.exports.useCallback(function(te){var Se;A==null||A(te),Ne(),(Se=Ie.current)===null||Se===void 0||Se.off(),Ie.current=null},[Ne,A]),B=O.exports.useCallback(function(te){R==null||R(te),oe()},[oe,R]),G=O.exports.useCallback(function(te){N==null||N(te),oe(!0)},[oe,N]);return O.exports.useEffect(function(){var te;(te=Ie.current)===null||te===void 0||te.off()},[]),ne(OR.Provider,{value:Me,children:ne(Dje,ot(Te({},W),{ref:e,backdrop:c,open:f,onClose:D,onBackdropClick:kt,className:ee(Eoe||(Eoe=Bs(["wrapper"]))),onEntered:B,onEntering:G,onExited:ve,backdropClassName:Q(ee(koe||(koe=Bs(["backdrop"]))),a,j),containerClassName:ee({open:f,"has-backdrop":c}),transition:h||void 0,animationProps:y,dialogTransitionTimeout:w,backdropTransitionTimeout:150,children:function(te,Se){var Ee=te.className,Ce=Pt(te,["className"]);return ne(_,ot(Te(Te({role:P,id:pe,"aria-labelledby":F!=null?F:pe+"-title","aria-describedby":M},Ce),Vte(W,Object.keys(woe))),{ref:Io(_e,Se),classPrefix:o,className:Q(ge,Ee,ee({shake:_t})),dialogClassName:s,dialogStyle:u,children:i}))}}))})});Tp.Body=Rje,Tp.Header=Nje,Tp.Title=Aje,Tp.Footer=Pje,Tp.Dialog=Soe,Tp.displayName="Modal",Tp.propTypes=vt({},boe,{animation:X.any,animationTimeout:X.number,classPrefix:X.string,dialogClassName:X.string,size:X.oneOf(mte),dialogStyle:X.object,dialogAs:X.elementType,full:X.bool,overflow:X.bool,drawer:X.bool});var z1=Tp,Loe,Toe,Doe,Ioe,Roe,UB=xe.forwardRef(function(n,e){var t,i=n.as,r=i===void 0?"div":i,o=n.className,s=n.classPrefix,a=s===void 0?"message":s,l=n.children,c=n.closable,u=n.duration,d=u===void 0?2e3:u,h=n.full,f=n.header,g=n.type,p=g===void 0?"info":g,m=n.showIcon,v=n.onClose,_=Pt(n,["as","className","classPrefix","children","closable","duration","full","header","type","showIcon","onClose"]),y=O.exports.useState("show"),b=y[0],w=y[1],x=bn(a),S=x.withClassPrefix,k=x.merge,T=x.prefix,D=bje(),R=dje(v,d,d>0),N=R.clear,A=O.exports.useCallback(function(P){w("hiding"),v==null||v(P),N(),setTimeout(function(){D()&&w("hide")},1e3)},[N,D,v]);if(b==="hide")return null;var V=k(o,S(p,b,(t={full:h},t["has-title"]=f,t["has-icon"]=m,t)));return ne(r,ot(Te({role:"alert"},_),{ref:e,className:V,children:dt("div",{className:T(Loe||(Loe=Bs(["container"]))),children:[c&&ne(Xre,{onClick:A}),m&&ne("div",{className:T(Toe||(Toe=Bs(["icon-wrapper"]))),children:f7e[p]}),dt("div",{className:T(Doe||(Doe=Bs(["content"]))),children:[f&&ne("div",{className:T(Ioe||(Ioe=Bs(["header"]))),children:f}),l&&ne("div",{className:T(Roe||(Roe=Bs(["body"]))),children:l})]})]})}))});UB.displayName="Message",UB.propTypes={type:X.oneOf(_Ae),className:X.string,onClose:X.func,closable:X.bool,title:X.node,description:X.node,showIcon:X.bool,full:X.bool,classPrefix:X.string};var Hje=UB,Noe=xe.forwardRef(function(n,e){var t=n.timeout,i=t===void 0?300:t,r=n.placement,o=r===void 0?"right":r,s=Pt(n,["timeout","placement"]),a=bn("anim"),l=a.prefix,c=l("slide-in",o),u=l("slide-out",o);return xe.createElement(j_,vt({},s,{ref:e,animation:!0,timeout:i,enteringClassName:c,enteredClassName:c,exitingClassName:u,exitedClassName:u}))});Noe.displayName="Slide";var Vje=Noe;function jB(n,e){var t,i=(t=n.displayName)!==null&&t!==void 0?t:n.name,r=xe.forwardRef(function(o,s){return O.exports.useEffect(function(){console.warn(e)},[]),ne(n,Te({ref:s},o))});return r.displayName="deprecated("+i+")",r}var Aoe=xe.forwardRef(function(n,e){return xe.createElement(z1.Body,vt({classPrefix:"drawer-body"},n,{ref:e}))}),Ooe=xe.forwardRef(function(n,e){return xe.createElement(z1.Header,vt({classPrefix:"drawer-header"},n,{ref:e}))}),Poe=xe.forwardRef(function(n,e){return xe.createElement(z1.Footer,vt({classPrefix:"drawer-actions"},n,{ref:e}))}),Moe=xe.forwardRef(function(n,e){return xe.createElement(z1.Footer,vt({classPrefix:"drawer-footer"},n,{ref:e}))}),Foe=xe.forwardRef(function(n,e){return xe.createElement(z1.Title,vt({classPrefix:"drawer-title"},n,{ref:e}))}),Dp=xe.forwardRef(function(n,e){var t=n.className,i=n.placement,r=i===void 0?"right":i,o=n.classPrefix,s=o===void 0?"drawer":o,a=n.animation,l=a===void 0?Vje:a,c=Pt(n,["className","placement","classPrefix","animation"]),u=bn(s),d=u.merge,h=u.prefix,f=d(t,h(r)),g={placement:r};return xe.createElement(z1,vt({},c,{ref:e,drawer:!0,classPrefix:s,className:f,animation:l,animationProps:g}))});Aoe.displayName="DrawerBody",Ooe.displayName="DrawerHeader",Poe.displayName="DrawerActions",Moe.displayName="DrawerFooter",Foe.displayName="DrawerTitle",Dp.Body=Aoe,Dp.Header=Ooe,Dp.Actions=Poe,Dp.Footer=jB(Moe,"<Drawer.Footer> has been deprecated, use <Drawer.Actions> instead."),Dp.Title=Foe,Dp.displayName="Drawer",Dp.propTypes={classPrefix:X.string,placement:X.oneOf(["top","right","bottom","left"]),children:X.node,className:X.string};var qx=Dp,qB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.className,o=n.width,s=n.height,a=s===void 0?200:s,l=n.style,c=n.active,u=n.classPrefix,d=u===void 0?"placeholder":u,h=Pt(n,["as","className","width","height","style","active","classPrefix"]),f=bn(d),g=f.merge,p=f.withClassPrefix,m=g(r,p("graph",{active:c})),v=vt({width:o||"100%",height:a},l);return xe.createElement(i,vt({},h,{ref:e,className:m,style:v}))});qB.displayName="PlaceholderGraph",qB.propTypes={className:X.string,style:X.object,classPrefix:X.string,width:X.oneOfType([X.number,X.string]),height:X.oneOfType([X.number,X.string]),active:X.bool};var zje=qB,KB=xe.forwardRef(function(n,e){for(var t=n.as,i=t===void 0?"div":t,r=n.className,o=n.classPrefix,s=o===void 0?"placeholder":o,a=n.rows,l=a===void 0?5:a,c=n.columns,u=c===void 0?5:c,d=n.rowHeight,h=d===void 0?10:d,f=n.rowMargin,g=f===void 0?20:f,p=n.active,m=Pt(n,["as","className","classPrefix","rows","columns","rowHeight","rowMargin","active"]),v=bn(s),_=v.merge,y=v.prefix,b=v.withClassPrefix,w=_(r,b("grid",{active:p})),x=[],S=Math.random()*30+30,k=S/2,T=0;T<u;T++){for(var D=[],R=0;R<l;R++){var N=Math.random()*50+10;T>0&&(N=R>0?k:S),D.push(xe.createElement("p",{key:R,style:{width:N+"%",height:h,marginTop:R>0?g:void 0}}))}x.push(xe.createElement("div",{key:T,className:Bu(y("grid-col"))},D))}return xe.createElement(i,vt({},m,{ref:e,className:w}),x)});KB.displayName="PlaceholderGrid",KB.propTypes={className:X.string,classPrefix:X.string,rows:X.number,columns:X.number,rowHeight:X.number,rowMargin:X.number,active:X.bool};var Uje=KB,GB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.className,o=n.rows,s=o===void 0?2:o,a=n.rowHeight,l=a===void 0?10:a,c=n.rowMargin,u=c===void 0?20:c,d=n.graph,h=n.active,f=n.classPrefix,g=f===void 0?"placeholder":f,p=Pt(n,["as","className","rows","rowHeight","rowMargin","graph","active","classPrefix"]),m=bn(g),v=m.merge,_=m.prefix,y=m.withClassPrefix,b=d===!0?"square":d,w=O.exports.useMemo(function(){for(var k=[],T=0;T<s;T++){var D={width:Math.random()*75+25+"%",height:l,marginTop:T>0?u:Number(u)/2};k.push(ne("p",{style:D},T))}return k},[l,u,s]),x=v(r,y("paragraph",{active:h})),S=_("paragraph-graph","paragraph-graph-"+b);return dt(i,ot(Te({},p),{ref:e,className:x,children:[b&&ne("div",{className:S,children:ne("span",{className:_("paragraph-graph-inner")})}),ne("div",{className:_("paragraph-rows"),children:w})]}))});GB.displayName="PlaceholderParagraph",GB.propTypes={className:X.string,classPrefix:X.string,rows:X.number,rowHeight:X.number,rowMargin:X.number,graph:X.oneOfType([X.bool,X.oneOf(["circle","square","image"])]),active:X.bool};var Boe=GB,MR=Boe;MR.Paragraph=Boe,MR.Grid=Uje,MR.Graph=zje;var jje=MR,qje=function(){var e=O.exports.useState([]),t=e[0],i=e[1],r=O.exports.useCallback(function(l){return typeof l=="undefined"&&t.length?t[t.length-1].key:l},[t]),o=O.exports.useCallback(function(l){var c=g7e();return i([].concat(t,[{key:c,visible:!0,node:l}])),c},[t]),s=O.exports.useCallback(function(){i(t.map(function(l){return vt({},l,{visible:!1})})),setTimeout(function(){i([])},400)},[t]),a=O.exports.useCallback(function(l){i(t.map(function(c){return c.key===r(l)&&(c.visible=!1),c})),setTimeout(function(){i(t.filter(function(c){return c.visible}))},400)},[t,r]);return{messages:t,push:o,clear:s,remove:a}},Kx=xe.forwardRef(function(n,e){var t=O.exports.useRef(),i=n.as,r=i===void 0?"div":i,o=n.className,s=n.classPrefix,a=s===void 0?"toast-container":s,l=n.placement,c=l===void 0?"topCenter":l,u=Pt(n,["as","className","classPrefix","placement"]),d=bn(a),h=d.withClassPrefix,f=d.merge,g=d.rootPrefix,p=f(o,h(B1(c))),m=qje(),v=m.push,_=m.clear,y=m.remove,b=m.messages;O.exports.useImperativeHandle(e,function(){return{root:t.current,push:v,clear:_,remove:y}});var w=b.map(function(x){return ne(j_,{in:x.visible,exitedClassName:g("toast-fade-exited"),exitingClassName:g("toast-fade-exiting"),enteringClassName:g("toast-fade-entering"),enteredClassName:g("toast-fade-entered"),timeout:300,children:function(S,k){var T,D,R,N,A=S.className,V=Pt(S,["className"]);return xe.cloneElement(x.node,vt({},V,{ref:k,onClose:vr((T=x.node)===null||T===void 0||(D=T.props)===null||D===void 0?void 0:D.onClose,function(){return y(x.key)}),className:f(g("toast"),(R=x.node)===null||R===void 0||(N=R.props)===null||N===void 0?void 0:N.className,A)}))}},x.key)});return ne(r,ot(Te({},u),{ref:t,className:p,children:w}))});Kx.getInstance=function(n){var e=n.container,t=Pt(n,["container"]),i=xe.createRef(),r=document.createElement("div"),o=typeof e=="function"?e():e,s=o||document.body;s.appendChild(r);function a(){fl.exports.unmountComponentAtNode(r),s.removeChild(r)}return fl.exports.render(ne(Kx,ot(Te({},t),{ref:i})),r),[i,a]},Kx.displayName="ToastContainer",Kx.propTypes={className:X.string,classPrefix:X.string,placement:X.elementType,container:X.oneOfType([X.node,X.func])};var Kje=Kx,$oe="default",Gx=new Map;function Gje(n,e){var t=Kje.getInstance(e),i=t[0];return Gx.set(n||$oe,i),i}function Yje(n){return Gx.size==0?null:Gx.get(n||$oe)}var FR=function n(e){return n.push(e)};FR.push=function(n,e){e===void 0&&(e={});var t=Yje(e.placement);if(!t){var i;t=Gje((i=e.placement)!==null&&i!==void 0?i:"",e)}return t.current.push(n)},FR.remove=function(n){Gx.forEach(function(e){return e.current.remove(n)})},FR.clear=function(){Gx.forEach(function(n){return n.current.clear()})};var Zje=FR,Bi;(function(n){n[n.RegisterItem=0]="RegisterItem",n[n.UnregisterItem=1]="UnregisterItem",n[n.OpenMenu=2]="OpenMenu",n[n.CloseMenu=3]="CloseMenu",n[n.MoveFocus=4]="MoveFocus"})(Bi||(Bi={}));var br;(function(n){n[n.Next=0]="Next",n[n.Prev=1]="Prev",n[n.Last=2]="Last",n[n.First=3]="First",n[n.Specific=4]="Specific",n[n.None=5]="None"})(br||(br={}));var Woe=xe.createContext(null);Woe.displayName="MenuContext";var Yx=Woe,Xje={role:"menu",open:!1,items:[],activeItemIndex:null};function Qje(n,e){var t=n.items,i=n.activeItemIndex;switch(e.type){case Bi.RegisterItem:return vt({},n,{items:[].concat(t,[{element:e.element,props:e.props}])});case Bi.UnregisterItem:return vt({},n,{items:t.filter(function(p){return p.element.id!==e.id})});case Bi.OpenMenu:return vt({},n,{open:!0});case Bi.CloseMenu:return vt({},n,{open:!1});case Bi.MoveFocus:var r=i;switch(e.to){case br.Next:for(var o=i===null?0:i+1;o<t.length;o++){var s;if(!((s=t[o].props)!==null&&s!==void 0&&s.disabled)){r=o;break}}break;case br.Prev:for(var a=i===null?t.length-1:i-1;a>=0;a--){var l;if(!((l=t[a].props)!==null&&l!==void 0&&l.disabled)){r=a;break}}break;case br.First:for(var c=0;c<t.length;c++){var u;if(!((u=t[c].props)!==null&&u!==void 0&&u.disabled)){r=c;break}}break;case br.Last:for(var d=t.length-1;d>=0;d--){var h;if(!((h=t[d].props)!==null&&h!==void 0&&h.disabled)){r=d;break}}break;case br.Specific:for(var f=0;f<t.length;f++){var g;if(t[f].element.id===e.id&&!((g=t[f].props)!==null&&g!==void 0&&g.disabled)){r=f;break}}break;case br.None:r=null;break}return vt({},n,{activeItemIndex:r});default:return n}}function Hoe(n){var e=O.exports.useReducer(Qje,vt({},Xje,n)),t=e[0],i=e[1];return[t,i]}function Jje(n){var e=O.exports.useRef(null),t=O.exports.useCallback(function(){requestAnimationFrame(function(){if(document.activeElement!==n.current){var r;e.current=document.activeElement,(r=n.current)===null||r===void 0||r.focus()}})},[n]),i=O.exports.useCallback(function(r){requestAnimationFrame(function(){var o;(o=e.current)===null||o===void 0||o.focus(r)})},[]);return{grab:t,release:i}}function Voe(n){var e=n.enabled,t=e===void 0?!0:e,i=n.isOutside,r=n.handle,o=O.exports.useRef(i),s=O.exports.useRef(r);O.exports.useEffect(function(){o.current=i,s.current=r},[i,r]),O.exports.useEffect(function(){if(t){var a=function(c){o.current(c)&&s.current(c)};return window.addEventListener("mousedown",a),function(){window.removeEventListener("mousedown",a)}}},[t])}function eqe(n){return n.type==="focus"&&!n.currentTarget.contains(n.relatedTarget)}function zoe(n){return n.type==="blur"&&!n.currentTarget.contains(n.relatedTarget)}var tqe=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(function(n){return n+":not([tabindex='-1'])"}).join(",");function nqe(n){return n===document.body?!1:n.matches(tqe)}var iqe=["click"];function BR(n){var e,t=n.disabled,i=n.children,r=n.openMenuOn,o=r===void 0?iqe:r,s=n.menuButtonText,a=n.renderMenuButton,l=n.renderMenuPopup,c=n.onToggleMenu,u=O.exports.useRef(null),d=O.exports.useRef(null),h=O.exports.useContext(Yx),f=!!h,g=Hoe(),p=g[0],m=p.open,v=p.items,_=p.activeItemIndex,y=g[1],b=q_("Menu"),w=b.rtl,x=Pr(_)?null:(e=v[_])===null||e===void 0?void 0:e.element,S=Jje(d),k=S.grab,T=O.exports.useCallback(function(qe){y({type:Bi.OpenMenu}),qe.isTrusted||y({type:Bi.MoveFocus,to:br.First}),c==null||c(!0,qe),k()},[y,c,k]),D=O.exports.useCallback(function(qe,kt){if(kt===void 0&&(kt=!0),y({type:Bi.CloseMenu}),y({type:Bi.MoveFocus,to:br.None}),c==null||c(!1,qe),kt){var ve;(ve=u.current)===null||ve===void 0||ve.focus({preventScroll:!0})}},[y,c,u]),R=O.exports.useCallback(function(qe){m?D(qe):T(qe)},[m,T,D]);Voe({enabled:m,isOutside:function(kt){var ve,B;return!((ve=u.current)!==null&&ve!==void 0&&ve.contains(kt.target))&&!((B=d.current)!==null&&B!==void 0&&B.contains(kt.target))},handle:function(kt){return D(kt,!nqe(kt.target))}});var N=O.exports.useCallback(function(qe){switch(qe.key){case Ii.ENTER:case Ii.SPACE:qe.preventDefault(),qe.stopPropagation(),m?D(qe):(T(qe),y({type:Bi.MoveFocus,to:br.First}));break;case Ii.DOWN:qe.preventDefault(),qe.stopPropagation(),m||T(qe),y({type:Bi.MoveFocus,to:br.First});break}},[m,T,D,y]),A=O.exports.useCallback(function(qe){t||R(qe)},[t,R]),V=O.exports.useCallback(function(qe){qe.preventDefault(),!m&&(t||T(qe))},[m,t,T]),P=O.exports.useMemo(function(){var qe={onKeyDown:N};return o!=null&&o.includes("click")&&(qe.onClick=A),o!=null&&o.includes("contextmenu")&&(qe.onContextMenu=V),qe},[o,N,A,V]),U=PR("menubutton-"),F=PR("menu-"),M=O.exports.useMemo(function(){return{role:"button","aria-haspopup":"menu","aria-expanded":m||void 0,"aria-controls":F}},[m,F]),W=O.exports.useMemo(function(){return vt({id:U},M,P,{open:m})},[U,M,P,m]),j=O.exports.useMemo(function(){return a==null?void 0:a(W,u)},[a,W,u]),$=j!=null?j:ne("button",ot(Te({ref:u},W),{children:s})),Q=O.exports.useCallback(function(qe){switch(qe.key){case Ii.UP:qe.preventDefault(),qe.stopPropagation(),y({type:Bi.MoveFocus,to:br.Prev});break;case Ii.DOWN:qe.preventDefault(),qe.stopPropagation(),y({type:Bi.MoveFocus,to:br.Next});break;case Ii.RIGHT:qe.preventDefault(),qe.stopPropagation(),w?f&&y({type:Bi.CloseMenu}):(x==null?void 0:x.getAttribute("aria-haspopup"))==="menu"&&x.click();break;case Ii.LEFT:qe.preventDefault(),qe.stopPropagation(),w?(x==null?void 0:x.getAttribute("aria-haspopup"))==="menu"&&x.click():f&&D(qe);break;case Ii.HOME:qe.preventDefault(),qe.stopPropagation(),y({type:Bi.MoveFocus,to:br.First});break;case Ii.END:qe.preventDefault(),qe.stopPropagation(),y({type:Bi.MoveFocus,to:br.Last});break;case Ii.ENTER:case Ii.SPACE:x&&(qe.preventDefault(),qe.stopPropagation(),x.click(),x.getAttribute("aria-haspopup")||D(qe));break;case Ii.ESC:D(qe);break}},[y,x,f,w,D]),ee=O.exports.useCallback(function(qe){var kt=qe.target;kt.getAttribute("role")==="menuitem"&&kt.getAttribute("aria-haspopup")!=="menu"&&kt.getAttribute("aria-disabled")!=="true"&&D(qe,!f)},[D,f]),ge={role:"menu","aria-labelledby":U,"aria-activedescendant":x==null?void 0:x.id},_e={onClick:ee,onKeyDown:Q},Ie=vt({id:F},ge,_e,{tabIndex:0}),K=l==null?void 0:l(vt({},Ie,{open:m}),d),se=K!=null?K:ne("ul",ot(Te({ref:d},Ie),{hidden:!m,children:i})),oe=O.exports.useCallback(function(qe){t||T(qe)},[t,T]),Ne=O.exports.useCallback(function(qe){t||D(qe)},[t,D]),pe=O.exports.useRef(null),Me=O.exports.useCallback(function(qe){zoe(qe)&&D(qe,!1)},[D]),at={onBlur:Me};o!=null&&o.includes("mouseover")&&(at.onMouseEnter=oe,at.onMouseLeave=Ne);var _t=vt({},at,{children:dt(Qr,{children:[$,ne(Yx.Provider,{value:g,children:se})]}),open:m});return f&&(_t.role="none presentation"),i(_t,pe)}BR.displayName="Menu",BR.propTypes={children:X.func.isRequired};function U1(n){var e=n.children,t=n.selected,i=t===void 0?!1:t,r=n.disabled,o=r===void 0?!1:r,s=n.onActivate,a=O.exports.useRef(null),l=PR("menuitem-"),c=O.exports.useContext(Yx);if(!c)throw new Error("<MenuItem> must be rendered within a <Menu>");var u=c[0],d=c[1],h=!Pr(a.current)&&!Pr(u.activeItemIndex)&&u.items[u.activeItemIndex].element===a.current,f=O.exports.useCallback(function(_){o||s==null||s(_)},[o,s]),g=O.exports.useCallback(function(){!Pr(a.current)&&!h&&d({type:Bi.MoveFocus,to:br.Specific,id:a.current.id})},[d]),p=O.exports.useCallback(function(){!Pr(a.current)&&!h&&d({type:Bi.MoveFocus,to:br.Specific,id:a.current.id})},[h,d]),m=O.exports.useCallback(function(){d({type:Bi.MoveFocus,to:br.None})},[d]);O.exports.useEffect(function(){var _=a.current;return d({type:Bi.RegisterItem,element:_,props:{disabled:o}}),function(){d({type:Bi.UnregisterItem,id:_.id})}},[a,o,d]);var v={id:l,role:"menuitem","aria-checked":i||void 0,"aria-disabled":o,tabIndex:-1,onClick:f,selected:i,active:h};return(u==null?void 0:u.role)==="menu"&&(v.onMouseMove=p,v.onMouseLeave=m),(u==null?void 0:u.role)==="menubar"&&(v.onMouseDown=g),e(v,a)}U1.displayName="MenuItem",U1.propTypes={selected:X.bool,disabled:X.bool,children:X.func.isRequired,onActivate:X.func};var rqe=H1({name:"SidenavBody"}),oqe=rqe,sqe=H1({name:"SidenavHeader"}),aqe=sqe,YB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.expanded,o=n.className,s=n.classPrefix,a=s===void 0?"sidenav-toggle":s,l=n.onToggle,c=Pt(n,["as","expanded","className","classPrefix","onToggle"]),u=bn(a),d=u.merge,h=u.withClassPrefix,f=d(o,h({collapsed:!r})),g=r?jx:Ux,p=function(v){l==null||l(!r,v)};return xe.createElement(i,vt({},c,{ref:e,className:f}),xe.createElement(FB,{appearance:"default",icon:xe.createElement(g,null),onClick:p}))});YB.displayName="SidenavToggle",YB.propTypes={classPrefix:X.string,className:X.string,expanded:X.bool,onToggle:X.func};var lqe=YB,$u=xe.createContext(null),cqe=[],Zx=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"nav":t,r=n.className,o=n.classPrefix,s=o===void 0?"sidenav":o,a=n.appearance,l=a===void 0?"default":a,c=n.expanded,u=c===void 0?!0:c,d=n.activeKey,h=d===void 0?null:d,f=n.defaultOpenKeys,g=f===void 0?cqe:f,p=n.openKeys,m=n.onSelect,v=n.onOpenChange,_=Pt(n,["as","className","classPrefix","appearance","expanded","activeKey","defaultOpenKeys","openKeys","onSelect","onOpenChange"]),y=moe(p,g),b=y[0],w=y[1],x=bn(s),S=x.prefix,k=x.merge,T=x.withClassPrefix,D=k(r,T(l)),R=O.exports.useCallback(function(A,V){var P=function(M){return Ep(M,A)},U=[].concat(b);U.some(P)?fUe(U,P):U.push(A),w(U),v==null||v(U,V)},[v,b,w]),N=O.exports.useMemo(function(){return{expanded:u,activeKey:h,sidenav:!0,openKeys:b!=null?b:[],onOpenChange:R,onSelect:m}},[h,u,R,m,b]);return ne($u.Provider,{value:N,children:ne(j_,{in:u,timeout:300,exitedClassName:S("collapse-out"),exitingClassName:S("collapse-out","collapsing"),enteredClassName:S("collapse-in"),enteringClassName:S("collapse-in","collapsing"),children:function(A,V){var P=A.className,U=Pt(A,["className"]);return ne(i,ot(Te(Te({},_),U),{ref:Io(e,V),className:k(D,P)}))}})})});Zx.Header=aqe,Zx.Body=oqe,Zx.Toggle=lqe,Zx.displayName="Sidenav",Zx.propTypes={as:X.elementType,classPrefix:X.string,className:X.string,expanded:X.bool,appearance:X.oneOf(["default","inverse","subtle"]),defaultOpenKeys:X.array,openKeys:X.array,onOpenChange:X.func,activeKey:kp(X.any,"Use `activeKey` on <Nav> component instead"),onSelect:kp(X.func,"Use `onSelect` on <Nav> component instead")};var Uoe=xe.createContext(null);Uoe.displayName="DropdownContext";var Ip=Uoe;function joe(n){var e=n.vertical,t=e===void 0?!1:e,i=n.children,r=n.onActivateItem,o=Hoe({role:"menubar"}),s=o[0],a=s.items,l=s.activeItemIndex,c=o[1],u=O.exports.useRef(null),d=O.exports.useCallback(function(v){eqe(v)&&l===null&&c({type:Bi.MoveFocus,to:br.First})},[l,c]),h=O.exports.useCallback(function(v){zoe(v)&&c({type:Bi.MoveFocus,to:br.None})},[c]),f=q_("Menubar"),g=f.rtl,p=O.exports.useCallback(function(v){var _=Pr(l)?null:a[l].element;switch(!0){case(!t&&!g&&v.key===Ii.RIGHT):case(!t&&g&&v.key===Ii.LEFT):case(t&&v.key===Ii.DOWN):v.preventDefault(),v.stopPropagation(),c({type:Bi.MoveFocus,to:br.Next});break;case(!t&&!g&&v.key===Ii.LEFT):case(!t&&g&&v.key===Ii.RIGHT):case(t&&v.key===Ii.UP):v.preventDefault(),v.stopPropagation(),c({type:Bi.MoveFocus,to:br.Prev});break;case v.key===Ii.HOME:v.preventDefault(),v.stopPropagation(),c({type:Bi.MoveFocus,to:br.First});break;case v.key===Ii.END:v.preventDefault(),v.stopPropagation(),c({type:Bi.MoveFocus,to:br.Last});break;case(!t&&v.key===Ii.DOWN):case(t&&!g&&v.key===Ii.RIGHT):case(t&&g&&v.key===Ii.LEFT):(_==null?void 0:_.getAttribute("aria-haspopup"))==="menu"&&(v.preventDefault(),v.stopPropagation(),_.click());break;case v.key===Ii.ENTER:case v.key===Ii.SPACE:v.preventDefault(),v.stopPropagation(),_==null||_.click();break}},[g,a,l,c,t]),m=O.exports.useCallback(function(v){a.some(function(_){return _.element===v.target})&&(r==null||r(v))},[a,r]);return ne(Yx.Provider,{value:o,children:i({role:"menubar",tabIndex:0,onFocus:d,onBlur:h,onKeyDown:p,onClick:m,"aria-activedescendant":Pr(l)?void 0:a[l].element.id,"aria-orientation":t?"vertical":void 0},u)})}var uqe=IUe,dqe=aoe,hqe=sje,fqe=L1;function gqe(n){return function(e){e=fqe(e);var t=dqe(e)?hqe(e):void 0,i=t?t[0]:e.charAt(0),r=t?uqe(t,1).join(""):e.slice(1);return i[n]()+r}}var pqe=gqe,mqe=pqe,_qe=mqe("toUpperCase"),vqe=_qe,bqe=L1,yqe=vqe;function Cqe(n){return yqe(bqe(n).toLowerCase())}var qoe=Cqe,ZB;(function(n){n.HEIGHT="height",n.WIDTH="width"})(ZB||(ZB={}));var wqe=function(e){return Ax(e,"offsetHeight")},Sqe={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function xqe(n,e){var t=Ax(e,"offset"+qoe(n)),i=Sqe[n];return t+parseInt(Lf(e,i[0]),10)+parseInt(Lf(e,i[1]),10)}function Eqe(n,e){var t=Ax(n,"scroll"+qoe(e));return t+"px"}var XB=xe.forwardRef(function(n,e){var t=n.className,i=n.timeout,r=i===void 0?300:i,o=n.dimension,s=o===void 0?ZB.HEIGHT:o,a=n.exitedClassName,l=n.exitingClassName,c=n.enteredClassName,u=n.enteringClassName,d=n.getDimensionValue,h=d===void 0?xqe:d,f=n.onEnter,g=n.onEntering,p=n.onEntered,m=n.onExit,v=n.onExiting,_=Pt(n,["className","timeout","dimension","exitedClassName","exitingClassName","enteredClassName","enteringClassName","getDimensionValue","onEnter","onEntering","onEntered","onExit","onExiting"]),y=bn("anim"),b=y.prefix,w=y.merge,x=typeof s=="function"?s():s,S=O.exports.useCallback(function(N){H_(N,x,0)},[x]),k=O.exports.useCallback(function(N){H_(N,x,Eqe(N,x))},[x]),T=O.exports.useCallback(function(N){H_(N,x,"auto")},[x]),D=O.exports.useCallback(function(N){var A=h?h(x,N):0;H_(N,x,A+"px")},[x,h]),R=O.exports.useCallback(function(N){wqe(N),H_(N,x,0)},[x]);return ne(j_,ot(Te({},_),{ref:e,timeout:r,className:w(t,b({"collapse-horizontal":x==="width"})),exitedClassName:a||b("collapse"),exitingClassName:l||b("collapsing"),enteredClassName:c||b("collapse","in"),enteringClassName:u||b("collapsing"),onEnter:vr(S,f),onEntering:vr(k,g),onEntered:vr(T,p),onExit:vr(D,m),onExiting:vr(R,v)}))});XB.displayName="Collapse",XB.propTypes=vt({},_B,{dimension:X.any,getDimensionValue:X.func});var kqe=XB,Koe,Goe,Yoe,Zoe,QB=xe.forwardRef(function(n,e){var t=n.className,i=n.classPrefix,r=i===void 0?"dropdown-menu":i,o=n.open,s=Pt(n,["className","classPrefix","open"]),a=bn(r),l=a.withClassPrefix,c=a.merge,u=a.prefix,d=c(t,l());return xe.createElement(kqe,{in:o,exitedClassName:u(Koe||(Koe=Bs(["collapse-out"]))),exitingClassName:u(Goe||(Goe=Bs(["collapsing"]))),enteredClassName:u(Yoe||(Yoe=Bs(["collapse-in"]))),enteringClassName:u(Zoe||(Zoe=Bs(["collapsing"])))},function(h,f){var g=h.className,p=Pt(h,["className"]);return xe.createElement("ul",vt({ref:Io(e,f),role:"group",className:Bu(d,g)},s,p))})});QB.displayName="Sidenav.Dropdown.Collapse",QB.propTypes={className:X.string,children:X.node,classPrefix:X.string,open:X.bool};var Xoe=QB,Rp;(function(n){n[n.Show=0]="Show",n[n.Hide=1]="Hide"})(Rp||(Rp={}));var Qoe=xe.createContext(null);Qoe.displayName="Disclosure.Context";var JB=Qoe;function Joe(n){var e=O.exports.useContext(JB);if(!e)throw new Error("<"+n+"> component must be rendered within a <Disclosure>");return e}function e9(n){var e=n.children,t=O.exports.useRef(null),i=Joe(e9.displayName),r=i[0].open,o=i[1],s=i[2].onToggle,a=O.exports.useCallback(function(u){r?(o({type:Rp.Hide}),s==null||s(!1,u)):(o({type:Rp.Show}),s==null||s(!0,u))},[r,o,s]),l=O.exports.useCallback(function(u){a(u)},[a]),c=O.exports.useCallback(function(u){switch(u.key){case Ii.ENTER:case Ii.SPACE:u.preventDefault(),u.stopPropagation(),a(u);break}},[a]);return e({role:"button","aria-expanded":r,onClick:l,onKeyDown:c,open:r},t)}e9.displayName="Disclosure.Button";function t9(n){var e=n.children,t=O.exports.useRef(null),i=Joe(t9.displayName),r=i[0].open;return e({open:r},t)}t9.displayName="Disclosure.Content";var Lqe={open:!1};function Tqe(n,e){switch(e.type){case Rp.Show:return vt({},n,{open:!0});case Rp.Hide:return vt({},n,{open:!1})}return n}function Wu(n){var e=n.children,t=n.open,i=n.defaultOpen,r=i===void 0?!1:i,o=n.hideOnClickOutside,s=o===void 0?!1:o,a=n.onToggle,l=O.exports.useReducer(Tqe,vt({},Lqe,{open:r})),c=l[0].open,u=l[1],d=O.exports.useRef(null),h=t!=null?t:c;Voe({enabled:s,isOutside:function(p){var m;return!((m=d.current)!==null&&m!==void 0&&m.contains(p.target))},handle:function(){return u({type:Rp.Hide})}});var f=O.exports.useMemo(function(){return[{open:h},u,{onToggle:a}]},[h,u,a]);return ne(JB.Provider,{value:f,children:e({open:h},d)})}Wu.Button=e9,Wu.Content=t9;var ese,tse,n9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"li":t,r=n.children,o=n.disabled,s=n.className,a=n.style,l=n.classPrefix,c=l===void 0?"dropdown-item":l,u=n.tabIndex,d=n.icon,h=n.title,f=n.eventKey,g=n.onClick,p=n.onSelect,m=Pt(n,["as","children","disabled","className","style","classPrefix","tabIndex","icon","title","eventKey","onClick","onSelect"]),v=q_("DropdownMenu"),_=v.rtl,y=bn(c),b=y.merge,w=y.withClassPrefix,x=y.prefix,S=O.exports.useContext($u);if(!S)throw new Error("<SidenavDropdownMenu> component is not supposed to be used standalone. Use <Dropdown.Item> inside <Sidenav> instead.");var k=S.openKeys,T=k===void 0?[]:k,D=S.onOpenChange,R=S.onSelect,N=O.exports.useCallback(function(P){o||(p==null||p(f,P),R==null||R(f,P))},[o,p,R,f]),A={onClick:vr(N,g)},V=_?Ux:jx;return ne(Wu,{open:!Pr(f)&&T.includes(f),onToggle:function(U,F){return D==null?void 0:D(f,F)},children:function(P){var U=P.open,F=b(s,x("submenu"),x("pull-"+(_?"left":"right")),x(U?"expand":"collapse"),w({"with-icon":d,disabled:o}));return dt(i,ot(Te(ot(Te({ref:e},m),{tabIndex:o?-1:u,style:a,className:F}),A),{children:[ne(Wu.Button,{children:function(M){return dt("button",ot(Te({className:x(ese||(ese=Bs(["toggle"]))),onClick:N},Zc(M,["open"])),{children:[d&&xe.cloneElement(d,{className:x("menu-icon")}),h,ne(V,{className:x(tse||(tse=Bs(["toggle-icon"])))}),ne(G_,{})]}))}}),ne(Wu.Content,{children:function(M){var W=M.open;return ne(Xoe,{open:W,children:r})}})]}))}})});n9.displayName="Sidenav.Dropdown.Menu",n9.propTypes={as:X.elementType,expanded:X.bool,disabled:X.bool,onSelect:X.func,onClick:X.func,icon:X.node,eventKey:X.any,className:X.string,style:X.object,children:X.node,classPrefix:X.string,tabIndex:X.number,title:X.node,onMouseOver:X.func,onMouseOut:X.func};var Dqe=n9,nse,ise,i9=xe.forwardRef(function(n,e){var t=n.onToggle,i=n.eventKey,r=n.title,o=n.activeKey,s=n.onSelect,a=n.classPrefix,l=a===void 0?"dropdown-menu":a,c=n.children,u=Pt(n,["onToggle","eventKey","title","activeKey","onSelect","classPrefix","children"]),d=O.exports.useContext(Ip),h=O.exports.useContext($u),f=q_("DropdownMenu"),g=f.rtl,p=O.exports.useCallback(function(M,W){t==null||t(i,W)},[i,t]),m=bn(l),v=m.merge,_=m.prefix,y=m.withClassPrefix,b=bn("dropdown-menu"),w=b.withClassPrefix,x=b.merge,S=bn("dropdown-item"),k=S.merge,T=S.withClassPrefix,D=S.prefix;if(!d){var R=v(n.className,y());return ne(Ip.Provider,{value:{activeKey:o,onSelect:s},children:ne(joe,{vertical:!0,onActivateItem:function(W){var j=W.target.dataset,$=j.eventKey,Q=j.eventKeyType,ee=Q==="number"?Number($):$;s==null||s(ee,W)},children:function(M,W){return ne("ul",ot(Te(Te({ref:Io(W,e),className:R},M),u),{children:c}))}})})}if(h!=null&&h.expanded)return ne(Dqe,Te({},Zc(n,"classPrefix")));var N=Zc(u,["trigger"]),A=N.icon,V=N.className,P=N.disabled,U=Pt(N,["icon","className","disabled"]),F=g?Ux:jx;return ne(BR,{openMenuOn:["mouseover","click"],renderMenuButton:function(W,j){var $=W.open,Q=Pt(W,["open"]);return ne(U1,{disabled:P,children:function(ee,ge){var _e=ee.selected,Ie=ee.active,K=Pt(ee,["selected","active"]),se=k(V,D("pull-"+(g?"left":"right")),D(nse||(nse=Bs(["toggle"]))),T({"with-icon":A,open:$,active:_e,disabled:P,focus:Ie}));return dt("div",ot(Te(Te({ref:Io(j,ge),className:se,"data-event-key":i,"data-event-key-type":typeof i},K),Zc(Q,["role"])),{children:[A&&xe.cloneElement(A,{className:_("menu-icon")}),r,ne(F,{className:_(ise||(ise=Bs(["toggle-icon"])))})]}))}})},renderMenuPopup:function(W,j){var $=W.open,Q=Pt(W,["open"]),ee=x(V,w());return ne("ul",ot(Te(Te({ref:j,className:ee,hidden:!$},Q),U),{children:c}))},onToggleMenu:p,children:function(M,W){var j=M.open,$=Pt(M,["open"]),Q=k(V,T({disabled:P,open:j,submenu:!0}));return ne("li",Te({ref:Io(e,W),className:Q},$))}})});i9.displayName="Dropdown.Menu",i9.propTypes={active:X.bool,activeKey:X.any,className:X.string,children:X.node,icon:X.any,classPrefix:X.string,pullLeft:X.bool,title:X.node,open:X.bool,trigger:X.oneOf(["click","hover"]),eventKey:X.any,expanded:X.bool,collapsible:X.bool,onSelect:X.func,onToggle:X.func};var Iqe=i9,Rqe=H1({name:"NavbarBody"}),Nqe=jB(Rqe,"<Navbar.Body> has been deprecated, you should <Nav> as direct child of <Navbar>"),Aqe=H1({name:"NavbarHeader"}),Oqe=jB(Aqe,"<Navbar.Header> has been deprecated, use <Navbar.Brand> instead."),Pqe=H1({name:"NavbarBrand",componentAs:"a",componentClassPrefix:"navbar-brand"}),Mqe=Pqe,Xx=xe.createContext(!1),$R=xe.forwardRef(function(n,e){var t=n.className,i=n.as,r=i===void 0?"nav":i,o=n.classPrefix,s=o===void 0?"navbar":o,a=n.appearance,l=a===void 0?"default":a,c=Pt(n,["className","as","classPrefix","appearance"]),u=bn(s),d=u.withClassPrefix,h=u.merge,f=h(t,d(l));return xe.createElement(Xx.Provider,{value:!0},xe.createElement(r,vt({},c,{ref:e,className:f})))});$R.Header=Oqe,$R.Body=Nqe,$R.Brand=Mqe,$R.displayName="Navbar";var Fqe=xe.createContext({withinNav:!1,activeKey:null,onSelect:Zne}),qd=Fqe;function rse(n){return O.exports.useCallback(function(e,t){return n==="li"?t?ne("li",{role:"none presentation",children:ne(t,Te({},e))}):ne(n,Te({},e)):ne("li",{role:"none presentation",children:ne(n,Te({},e))})},[n])}var r9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"li":t,r=n.active,o=n.children,s=n.disabled,a=n.divider,l=n.panel,c=n.className,u=n.style,d=n.classPrefix,h=d===void 0?"dropdown-item":d,f=n.icon,g=n.eventKey,p=n.onClick,m=n.onSelect,v=Pt(n,["as","active","children","disabled","divider","panel","className","style","classPrefix","icon","eventKey","onClick","onSelect"]),_=O.exports.useContext($u),y=O.exports.useContext(Ip);if(!_||!y)throw new Error("<SidenavDropdownItem> component is not supposed to be used standalone. Use <Dropdown.Item> within <Sidenav> instead.");var b=_.activeKey,w=_.onSelect,x=O.exports.useContext(qd),S=bn(h),k=S.merge,T=S.withClassPrefix,D=S.prefix,R=r!=null?r:!Pr(g)&&(Ep(g,b)||Ep(x==null?void 0:x.activeKey,g)),N=k(c,T({"with-icon":f,active:R,disabled:s})),A=O.exports.useCallback(function(U){var F;s||(m==null||m(g,U),(F=y.onSelect)===null||F===void 0||F.call(y,g,U),w==null||w(g,U))},[s,m,w,g,y]),V={onClick:vr(A,p)},P=rse(i);return a?P(vt({ref:e,role:"separator",style:u,className:k(D("divider"),c)},v)):l?P(vt({ref:e,role:"none presentation",style:u,className:k(D("panel"),c)},v,{children:o})):P(vt({ref:e},v,{style:u,className:N,"aria-current":R||void 0},V,{children:dt(Qr,{children:[f&&xe.cloneElement(f,{className:D("menu-icon")}),o,ne(G_,{})]})}),K_)});r9.displayName="Sidenav.Dropdown.Item",r9.propTypes={as:X.elementType,expanded:X.bool,active:X.bool,divider:X.bool,panel:X.bool,disabled:X.bool,submenu:X.element,onSelect:X.func,onClick:X.func,icon:X.node,eventKey:X.any,className:X.string,style:X.object,children:X.node,classPrefix:X.string,tabIndex:X.number,title:X.node,onMouseOver:X.func,onMouseOut:X.func};var Bqe=r9;function ose(n){var e=O.exports.useRef();return e.current||(e.current=xoe("internal://"+n)),O.exports.useDebugValue(e.current),e.current}var sse={items:[]},j1;(function(n){n[n.RegisterItem=0]="RegisterItem",n[n.UnregisterItem=1]="UnregisterItem",n[n.UpdateItem=2]="UpdateItem"})(j1||(j1={}));function $qe(n,e){switch(n===void 0&&(n=sse),e.type){case j1.RegisterItem:return n.items.find(function(t){return t.id===e.payload.id})?vt({},n,{items:n.items.map(function(t){return t.id===e.payload.id?vt({},t,{props:vt({},t.props,{selected:e.payload.props.selected})}):t})}):vt({},n,{items:[].concat(n.items,[{id:e.payload.id,props:e.payload.props}])});case j1.UnregisterItem:return vt({},n,{items:n.items.filter(function(t){return t.id!==e.payload.id})});default:return n}}var o9=xe.forwardRef(function(n,e){var t=n.classPrefix,i=t===void 0?"dropdown-item":t,r=n.className,o=n.active,s=n.eventKey,a=n.onSelect,l=n.icon,c=n.as,u=c===void 0?"li":c,d=n.divider,h=n.panel,f=n.children,g=n.disabled,p=Pt(n,["classPrefix","className","active","eventKey","onSelect","icon","as","divider","panel","children","disabled"]),m=ose("DropdownItem"),v=O.exports.useContext(qd),_=O.exports.useContext(Ip),y=bn(i),b=y.merge,w=y.withClassPrefix,x=y.prefix,S=O.exports.useCallback(function(W){var j;a==null||a(s,W),_==null||(j=_.onSelect)===null||j===void 0||j.call(_,s,W)},[a,s,_]),k=O.exports.useContext($u),T=O.exports.useContext(Xx),D=O.exports.useContext(JB),R=D!=null?D:[],N=R[1],A=O.exports.useCallback(function(W){N==null||N({type:Rp.Hide}),S==null||S(W)},[N,S]),V=o||!Pr(s)&&(Ep(_==null?void 0:_.activeKey,s)||Ep(v==null?void 0:v.activeKey,s)),P=_==null?void 0:_.dispatch;O.exports.useEffect(function(){if(P)return P({type:j1.RegisterItem,payload:{id:m,props:{selected:V}}}),function(){P({type:j1.UnregisterItem,payload:{id:m}})}},[m,V,P]);var U=rse(u);if(k!=null&&k.expanded)return ne(Bqe,Te({ref:e},n));if(d)return U(vt({ref:e,role:"separator",className:b(x("divider"),r)},p));if(h)return U(vt({ref:e,className:b(x("panel"),r),children:f},p));if(T){var F=b(r,w({"with-icon":l,disabled:g,divider:d,panel:h,active:V})),M={"data-event-key":s};return!Pr(s)&&typeof s!="string"&&(M["data-event-key-type"]=typeof s),ne("li",{children:dt(K_,ot(Te(Te({ref:e,className:F,"aria-current":V||void 0},M),p),{as:u,onClick:vr(A,p.onClick),children:[l&&xe.cloneElement(l,{className:x("menu-icon")}),f]}))})}return ne(U1,{selected:V,disabled:g,onActivate:S,children:function(W,j){var $=W.selected,Q=W.active,ee=Pt(W,["selected","active"]),ge=b(r,w({"with-icon":l,active:$,disabled:g,focus:Q,divider:d,panel:h})),_e={"data-event-key":s};return!Pr(s)&&typeof s!="string"&&(_e["data-event-key-type"]=typeof s),U(vt({ref:Io(e,j),className:ge},ee,_e,p,{children:dt(Qr,{children:[l&&xe.cloneElement(l,{className:x("menu-icon")}),f]})}))}})});o9.displayName="Dropdown.Item",o9.propTypes={as:X.elementType,divider:X.bool,panel:X.bool,trigger:X.oneOfType([X.array,X.oneOf(["click","hover"])]),open:kp(X.bool),active:X.bool,disabled:X.bool,pullLeft:kp(X.bool),submenu:X.element,onSelect:X.func,onClick:X.func,icon:X.node,eventKey:X.any,className:X.string,style:X.object,children:X.node,classPrefix:X.string,tabIndex:X.number};var Wqe=o9,s9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?PB:t,r=n.className,o=n.classPrefix,s=o===void 0?"dropdown-toggle":o,a=n.renderToggle,l=n.children,c=n.icon,u=n.noCaret,d=n.placement,h=d===void 0?"bottomStart":d,f=Pt(n,["as","className","classPrefix","renderToggle","children","icon","noCaret","placement"]),g=O.exports.useContext($u),p=O.exports.useContext(qd),m=p.withinNav,v=bn(s),_=v.prefix,y=v.withClassPrefix,b=v.merge,w=b(r,y({"no-caret":u})),x=!!g,S=kUe(x?"bottomStart":h),k=dt(i,ot(Te({appearance:m?"subtle":void 0},f),{ref:e,className:w,children:[c&&xe.cloneElement(c,{className:_("icon")}),l,u?null:ne(S,{className:_("caret")})]}));return a?a(f,e):k});s9.displayName="DropdownToggle",s9.propTypes={className:X.string,children:X.node,icon:X.node,classPrefix:X.string,noCaret:X.bool,as:X.elementType,renderToggle:X.func,placement:X.oneOf(["bottomStart","bottomEnd","topStart","topEnd","leftStart","rightStart","leftEnd","rightEnd"])};var WR=s9,a9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.title,o=n.children,s=n.className,a=n.menuStyle,l=n.disabled;n.renderTitle;var c=n.renderToggle,u=n.classPrefix,d=u===void 0?"dropdown":u,h=n.placement,f=h===void 0?"bottomStart":h,g=n.toggleClassName,p=n.icon,m=n.eventKey,v=n.toggleAs,_=n.noCaret,y=n.style,b=n.onOpen,w=n.onClose,x=n.open,S=n.onToggle,k=Pt(n,["as","title","children","className","menuStyle","disabled","renderTitle","renderToggle","classPrefix","placement","toggleClassName","icon","eventKey","toggleAs","noCaret","style","onOpen","onClose","open","onToggle"]),T=O.exports.useContext($u),D=O.exports.useContext(Ip),R=bn(d),N=R.merge,A=R.withClassPrefix,V=ose("SidenavDropdown"),P=m!=null?m:V;if(!T||!D)throw new Error("<SidenavDropdown> component is not supposed to be used standalone. Use <Dropdown> inside <Sidenav> instead.");var U=T.openKeys,F=U===void 0?[]:U,M=T.onOpenChange,W=D.hasSelectedItem,j=O.exports.useCallback(function(Q,ee){Q?w==null||w():b==null||b(),S==null||S(Q),M==null||M(P,ee)},[w,b,S,P,M]),$=x!=null?x:F.includes(P);return ne(Wu,{open:$,onToggle:j,children:function(Q,ee){var ge,_e=Q.open,Ie=N(s,A((ge={},ge["placement-"+B1(AR(f))]=f,ge[_e?"expand":"collapse"]=!0,ge.disabled=l,ge["selected-within"]=W,ge["no-caret"]=_,ge)));return dt(i,ot(Te({ref:Io(e,ee),style:y,className:Ie},k),{"data-event-key":m,children:[ne(Wu.Button,{children:function(K,se){return ne(WR,ot(Te({ref:se,as:v,noCaret:_,className:g,renderToggle:c,icon:p,placement:f},Zc(K,["open"])),{children:r}))}}),ne(Wu.Content,{children:function(K){var se=K.open;return ne(Xoe,{open:se,style:a,children:o})}})]}))}})});a9.displayName="Sidenav.Dropdown",a9.propTypes={activeKey:X.any,classPrefix:X.string,placement:X.oneOf(f6),title:X.node,disabled:X.bool,icon:X.node,menuStyle:X.object,className:X.string,toggleClassName:X.string,children:X.node,tabIndex:X.number,open:kp(X.bool),eventKey:X.any,as:X.elementType,toggleAs:X.elementType,noCaret:X.bool,style:X.object,onClose:X.func,onOpen:X.func,onToggle:X.func,onMouseEnter:X.func,onMouseLeave:X.func,onContextMenu:X.func,onClick:X.func,renderTitle:kp(X.func),renderToggle:X.func};var Hqe=a9,Qx=xe.forwardRef(function(n,e){var t=n.activeKey,i=n.onSelect,r=Pt(n,["activeKey","onSelect"]),o=r.as,s=o===void 0?"div":o,a=r.title,l=r.onClose,c=r.onOpen,u=r.onToggle,d=r.eventKey,h=r.trigger,f=h===void 0?"click":h,g=r.placement,p=g===void 0?"bottomStart":g,m=r.toggleAs,v=r.toggleClassName,_=r.classPrefix,y=_===void 0?"dropdown":_,b=r.className,w=r.disabled,x=r.children,S=r.menuStyle,k=r.style,T=Pt(r,["as","title","onClose","onOpen","onToggle","eventKey","trigger","placement","toggleAs","toggleClassName","classPrefix","className","disabled","children","menuStyle","style"]),D=O.exports.useContext(qd),R=D.onSelect,N=O.exports.useCallback(function(at,_t){i==null||i(at,_t),R==null||R(at,_t)},[i,R]),A=bn(y),V=A.merge,P=A.withClassPrefix,U=A.prefix,F=bn("dropdown-menu"),M=F.withClassPrefix,W=F.merge,j=bn("nav-item"),$=j.withClassPrefix,Q=j.merge,ee=O.exports.useMemo(function(){if(!!f){var at={hover:"mouseover",click:"click",contextMenu:"contextmenu"};return Array.isArray(f)?f.map(function(_t){return at[_t]}):[at[f]]}},[f]),ge=O.exports.useContext(Yx),_e=O.exports.useContext($u),Ie=O.exports.useContext(Xx),K=O.exports.useReducer($qe,sse),se=K[0].items,oe=K[1],Ne=O.exports.useMemo(function(){return se.some(function(at){return at.props.selected})},[se]),pe=O.exports.useMemo(function(){return{activeKey:t,onSelect:N,hasSelectedItem:Ne,dispatch:oe}},[t,N,Ne,oe]);if(_e!=null&&_e.expanded)return ne(Ip.Provider,{value:pe,children:ne(Hqe,Te({ref:e},r))});if(Ie)return ne(Ip.Provider,{value:pe,children:ne(Wu,{hideOnClickOutside:!0,children:function(at,_t){var qe,kt=at.open,ve=V(b,P((qe={},qe["placement-"+B1(AR(p))]=!!p,qe.disabled=w,qe.open=kt,qe)));return dt(s,{ref:Io(e,_t),className:ve,style:k,children:[ne(Wu.Button,{children:function(B,G){return ne(WR,ot(Te(Te({ref:G,as:m,className:v,placement:p,disabled:w},Zc(B,["open"])),T),{children:a}))}}),ne(Wu.Content,{children:function(B,G){var te=B.open,Se=W(b,M());return ne("ul",{ref:G,className:Se,style:S,hidden:!te,children:x})}})]})}})});var Me=function(_t,qe){return ne(WR,ot(Te(Te({ref:qe,as:m,className:v,placement:p,disabled:w},Zc(_t,["open"])),Zc(T,["data-testid"])),{children:a}))};return ge&&(Me=function(_t,qe){return ne(U1,{disabled:w,children:function(kt,ve){var B=kt.active,G=Pt(kt,["active"]);return ne(WR,ot(Te(Te(Te({ref:Io(qe,ve),as:m,className:Q(v,$({focus:B}))},_t),Zc(G,["onClick"])),Zc(T,"data-testid")),{children:a}))}})}),ne(Ip.Provider,{value:pe,children:ne(BR,{menuButtonText:a,renderMenuButton:Me,openMenuOn:ee,renderMenuPopup:function(_t,qe){var kt=_t.open,ve=Pt(_t,["open"]),B=W(b,M({})),G=!!_e;return dt("ul",ot(Te({ref:qe,className:B,style:S,hidden:!kt},ve),{children:[G&&ne("div",{className:U("header"),children:a}),x]}))},onToggleMenu:function(_t,qe){u==null||u(_t),_e==null||_e.onOpenChange(d,qe),_t?c==null||c():l==null||l()},children:function(at,_t){var qe,kt=at.open,ve=Pt(at,["open"]),B=V(b,P((qe={},qe["placement-"+B1(AR(p))]=!!p,qe.disabled=w,qe.open=kt,qe.submenu=!!ge,qe["selected-within"]=Ne,qe)));return ne(s,ot(Te(Te({ref:Io(e,_t),className:B},ve),Vte(T,["data-testid"])),{style:k}))}})})});Qx.Item=Wqe,Qx.Menu=Iqe,Qx.displayName="Dropdown",Qx.propTypes={activeKey:X.any,classPrefix:X.string,trigger:X.oneOfType([X.array,X.oneOf(["click","hover","contextMenu"])]),placement:X.oneOf(f6),title:X.node,disabled:X.bool,icon:X.node,menuStyle:X.object,className:X.string,toggleClassName:X.string,children:X.node,open:kp(X.bool),eventKey:X.any,as:X.elementType,toggleAs:X.elementType,noCaret:X.bool,style:X.object,onClose:X.func,onOpen:X.func,onToggle:X.func,onSelect:X.func,onMouseEnter:X.func,onMouseLeave:X.func,onContextMenu:X.func,onClick:X.func,renderToggle:X.func};var Vqe=Qx,l9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?K_:t,r=n.active,o=n.children,s=n.className,a=n.disabled,l=n.classPrefix,c=l===void 0?"sidenav-item":l,u=n.icon,d=n.eventKey,h=n.style,f=n.onClick,g=n.onSelect,p=n.divider,m=n.panel,v=Pt(n,["as","active","children","className","disabled","classPrefix","icon","eventKey","style","onClick","onSelect","divider","panel"]),_=O.exports.useContext($u);if(!_)throw new Error("<SidenavItem> component is not supposed to be used standalone. Use <Nav.Item> inside <Sidenav> instead.");var y=O.exports.useContext(qd),b=y.activeKey,w=y.onSelect,x=bn(c),S=x.merge,k=x.withClassPrefix,T=x.prefix,D=r!=null?r:!Pr(d)&&Ep(b,d),R=O.exports.useCallback(function(N){a||(g==null||g(d,N),w==null||w(d,N),f==null||f(N))},[a,g,w,d,f]);return _.expanded?p?ne("li",Te({ref:e,role:"separator",style:h,className:S(s,T("divider"))},v)):m?ne("li",ot(Te({ref:e,role:"none presentation",style:h,className:S(s,T("panel"))},v),{children:o})):dt(i,ot(Te({ref:e,className:S(s,k({active:D,disabled:a})),onClick:R,style:h,"aria-selected":D||void 0,"data-event-key":d},v),{children:[u,o,ne(G_,{})]})):ne(U1,{selected:D,disabled:a,onActivate:R,children:function(N,A){var V=N.selected,P=N.active,U=Pt(N,["selected","active"]),F=S(s,k({focus:P,active:V,disabled:a}));return uje({children:function(W,j){return dt(i,ot(Te(Te(Te({ref:Io(Io(e,A),j),disabled:i===K_?a:void 0,className:F,"data-event-key":d},Zc(v,["divider","panel"])),W),U),{children:[u,o,ne(G_,{})]}))},message:o,placement:"right"})}})});l9.displayName="Sidenav.Item",l9.propTypes={classPrefix:X.string,disabled:X.bool,icon:X.node,className:X.string,children:X.node,eventKey:X.any,as:X.elementType,style:X.object,onSelect:X.func,onMouseEnter:X.func,onMouseLeave:X.func,onContextMenu:X.func,onClick:X.func};var zqe=l9,c9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?K_:t,r=n.active,o=n.disabled,s=n.eventKey,a=n.className,l=n.classPrefix,c=l===void 0?"navbar-item":l,u=n.style,d=n.children,h=n.icon,f=n.onClick,g=n.onSelect,p=Pt(n,["as","active","disabled","eventKey","className","classPrefix","style","children","icon","onClick","onSelect"]),m=O.exports.useContext(qd),v=m.activeKey,_=m.onSelect,y=r!=null?r:!Pr(s)&&Ep(s,v),b=O.exports.useCallback(function(D){g==null||g(s,D),_==null||_(s,D)},[s,g,_]),w=bn(c),x=w.withClassPrefix,S=w.merge,k=S(a,x({active:y,disabled:o})),T=O.exports.useCallback(function(D){o||(b(D),f==null||f(D))},[o,b,f]);return dt(i,ot(Te({ref:e,"aria-selected":y||void 0},p),{className:k,onClick:T,style:u,children:[h,d,ne(G_,{})]}))});c9.displayName="Navbar.Item",c9.propTypes={as:X.elementType,active:X.bool,disabled:X.bool,className:X.string,classPrefix:X.string,onClick:X.func,style:X.object,icon:X.node,onSelect:X.func,children:X.node,eventKey:X.any};var Uqe=c9,u9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?K_:t,r=n.active,o=n.disabled,s=n.eventKey,a=n.className,l=n.classPrefix,c=l===void 0?"nav-item":l,u=n.style,d=n.children,h=n.icon,f=n.divider,g=n.panel,p=n.onClick,m=n.onSelect,v=Pt(n,["as","active","disabled","eventKey","className","classPrefix","style","children","icon","divider","panel","onClick","onSelect"]),_=O.exports.useContext(qd),y=_.activeKey,b=_.onSelect,w=r!=null?r:!Pr(s)&&Ep(s,y),x=O.exports.useCallback(function(P){m==null||m(s,P),b==null||b(s,P)},[s,m,b]),S=O.exports.useContext(Xx),k=O.exports.useContext($u),T=bn(c),D=T.withClassPrefix,R=T.merge,N=T.prefix,A=R(a,D({active:w,disabled:o})),V=O.exports.useCallback(function(P){o||(x(P),p==null||p(P))},[o,x,p]);return k?ne(zqe,Te({},n)):f?ne("div",Te({ref:e,role:"separator",style:u,className:R(a,N("divider"))},v)):g?ne("div",ot(Te({ref:e,style:u,className:R(a,N("panel"))},v),{children:d})):S?ne(Uqe,Te({},n)):dt(i,ot(Te({ref:e,tabIndex:o?-1:void 0},v),{className:A,onClick:V,style:u,"aria-selected":w||void 0,children:[h,d,ne(G_,{})]}))});u9.displayName="Nav.Item",u9.propTypes={as:X.elementType,active:X.bool,disabled:X.bool,className:X.string,classPrefix:X.string,divider:X.bool,panel:X.bool,onClick:X.func,style:X.object,icon:X.node,onSelect:X.func,children:X.node,eventKey:X.any};var jqe=u9;function qqe(n){var e=O.exports.useRef();return n||e}var Jx=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.classPrefix,o=r===void 0?"nav":r,s=n.appearance,a=s===void 0?"default":s,l=n.vertical,c=n.justified,u=n.reversed,d=n.pullRight,h=n.className,f=n.children,g=n.activeKey,p=n.onSelect,m=Pt(n,["as","classPrefix","appearance","vertical","justified","reversed","pullRight","className","children","activeKey","onSelect"]),v=O.exports.useContext($u),_=O.exports.useContext(Xx),y=qqe(e),b=bn(o),w=b.withClassPrefix,x=b.merge,S=b.rootPrefix,k=b.prefix,T=x(h,S({"navbar-nav":_,"navbar-right":d,"sidenav-nav":v}),w(a,{horizontal:_||!l&&!v,vertical:l||v,justified:c,reversed:u})),D=v||{},R=D.activeKey,N=D.onSelect,A=N===void 0?p:N,V=g!=null?g:R;if(v!=null&&v.expanded)return ne(qd.Provider,{value:{withinNav:!0,activeKey:V,onSelect:p!=null?p:A},children:ne("ul",ot(Te({ref:e,className:T},m),{children:f}))});var P=a!=="default";return v?ne(qd.Provider,{value:{withinNav:!0,activeKey:V,onSelect:p!=null?p:A},children:ne(joe,{vertical:!!v,children:function(U,F){return ne(i,ot(Te(ot(Te({ref:F},m),{className:T}),U),{children:f}))}})}):ne(qd.Provider,{value:{withinNav:!0,activeKey:V,onSelect:p!=null?p:A},children:dt(i,ot(Te({},m),{ref:y,className:T,children:[f,P&&ne("div",{className:k("bar")})]}))})});Jx.Dropdown=Vqe,Jx.Item=jqe,Jx.displayName="Nav",Jx.propTypes={classPrefix:X.string,className:X.string,children:X.node,appearance:X.oneOf(["default","subtle","tabs"]),reversed:X.bool,justified:X.bool,vertical:X.bool,pullRight:X.bool,activeKey:X.any,onSelect:X.func};var ase=Jx,lse=xe.createContext({}),cse=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.classPrefix,o=r===void 0?"form-group":r,s=n.controlId,a=n.className,l=Pt(n,["as","classPrefix","controlId","className"]),c=bn(o),u=c.withClassPrefix,d=c.merge,h=d(a,u());return xe.createElement(lse.Provider,{value:{controlId:s}},xe.createElement(i,vt({},l,{ref:e,className:h,role:"group"})))});cse.displayName="FormGroup",cse.propTypes={controlId:X.string,className:X.string,classPrefix:X.string};var d9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"span":t,r=n.classPrefix,o=r===void 0?"input-group-addon":r,s=n.className,a=n.disabled,l=Pt(n,["as","classPrefix","className","disabled"]),c=bn(o),u=c.withClassPrefix,d=c.merge,h=d(s,u({disabled:a}));return xe.createElement(i,vt({},l,{ref:e,className:h}))});d9.displayName="InputGroupAddon",d9.propTypes={className:X.string,classPrefix:X.string,disabled:X.bool};var Kqe=d9,use=xe.forwardRef(function(n,e){var t=n.classPrefix,i=t===void 0?"input-group-btn":t,r=n.className,o=Pt(n,["classPrefix","className"]),s=bn(i),a=s.withClassPrefix,l=s.merge,c=bn("input-group-addon"),u=c.withClassPrefix,d=l(u(),r,a());return xe.createElement(PB,vt({},o,{ref:e,className:d}))});use.displayName="InputGroupButton";var Gqe=use,dse=xe.createContext(null),eE=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.classPrefix,o=r===void 0?"input-group":r,s=n.className,a=n.disabled,l=n.inside,c=n.size,u=n.children,d=Pt(n,["as","classPrefix","className","disabled","inside","size","children"]),h=O.exports.useState(!1),f=h[0],g=h[1],p=O.exports.useCallback(function(){g(!0)},[]),m=O.exports.useCallback(function(){g(!1)},[]),v=bn(o),_=v.withClassPrefix,y=v.merge,b=y(s,_(c,{inside:l,focus:f,disabled:a})),w=function(){return xe.Children.map(u,function(k){return xe.isValidElement(k)?xe.cloneElement(k,{disabled:!0}):k})},x=O.exports.useMemo(function(){return{onFocus:p,onBlur:m}},[p,m]);return ne(dse.Provider,{value:x,children:ne(i,ot(Te({},d),{ref:e,className:b,children:a?w():u}))})});eE.displayName="InputGroup",eE.propTypes={className:X.string,classPrefix:X.string,children:X.node,disabled:X.bool,inside:X.bool,size:X.oneOf(["lg","md","sm","xs"])},eE.Addon=Kqe,eE.Button=Gqe;var hse=eE,h9=xe.forwardRef(function(n,e){var t=n.className,i=n.classPrefix,r=i===void 0?"input":i,o=n.as,s=o===void 0?"input":o,a=n.type,l=a===void 0?"text":a,c=n.disabled,u=n.value,d=n.defaultValue,h=n.inputRef,f=n.id,g=n.size,p=n.plaintext,m=n.readOnly,v=n.onPressEnter,_=n.onFocus,y=n.onBlur,b=n.onKeyDown,w=n.onChange,x=Pt(n,["className","classPrefix","as","type","disabled","value","defaultValue","inputRef","id","size","plaintext","readOnly","onPressEnter","onFocus","onBlur","onKeyDown","onChange"]),S=O.exports.useCallback(function(F){F.key===Ii.ENTER&&(v==null||v(F)),b==null||b(F)},[v,b]),k=O.exports.useCallback(function(F){var M;w==null||w((M=F.target)===null||M===void 0?void 0:M.value,F)},[w]),T=bn(r),D=T.withClassPrefix,R=T.merge,N=R(t,D(g,{plaintext:p})),A=O.exports.useContext(dse),V=O.exports.useContext(lse);if(p)return ne(gUe,{ref:e,localeKey:"unfilled",children:typeof u=="undefined"?d:u});var P=!c&&!m,U={};return P&&(U.onChange=k,U.onKeyDown=S,U.onFocus=vr(_,A==null?void 0:A.onFocus),U.onBlur=vr(y,A==null?void 0:A.onBlur)),ne(s,ot(Te(Te({},x),U),{ref:Io(e,h),className:N,type:l,id:f||(V==null?void 0:V.controlId),value:u,defaultValue:d,disabled:c,readOnly:m}))});h9.displayName="Input",h9.propTypes={type:X.string,as:X.elementType,id:X.string,classPrefix:X.string,className:X.string,disabled:X.bool,value:X.oneOfType([X.string,X.number]),defaultValue:X.oneOfType([X.string,X.number]),size:X.oneOf(["lg","md","sm","xs"]),inputRef:d6e,onChange:X.func,onFocus:X.func,onBlur:X.func,onKeyDown:X.func,onPressEnter:X.func};var Yqe=h9;function fse(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}class Y_{static message(e){Zje.push(ne(Hje,ot(Te({showIcon:!0},e),{children:e.content})),{placement:e.placement||"topCenter"})}}const Zqe=1e3*60*10,Xqe=n=>{const{ticket:e,playgroundId:t,io:i,callback:r}=n;fl.exports.unstable_batchedUpdates(()=>{const o=Mu.getState().setUserInfo,s=sa.getState().setUserList,{switchFileTree:a}=Kee.getState(),{switchDoc:l,setSenders:c,setCRDTInfo:u,setAsyncType:d,setServerAck:h,setCustomAck:f,setPlaygroundInfo:g,setDockerInfo:p,setQueryObject:m,setPlaygroundStatus:v,setDockerStatus:_,appStatus:y,setAppStatus:b,setGlobalData:w}=Yt.getState();P_.getState(),CRe().then(x=>{x.length>0&&x.forEach(S=>{r6(S==null?void 0:S.path,ot(Te({},S),{revision:0}))})}),window.clearCache=()=>{localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},i.emit("clearCache")},window.Toast=Y_,p(ot(Te({},Yt.getState().dockerInfo),{ticket:e})),i.on("connect",()=>{d(void 0),setInterval(()=>{i.emit("heartbeat","\u{1F497}")},Zqe)}),i.on("clearCache",()=>{window.location.reload()}),i.on("appStatus",x=>{b(x)}),i.on("globalData",x=>{w(x)}),i.on("welcome",x=>{let S=Mu.getState().userInfo;const k=JSON.parse(x),T=Gee(k.onlineCount-1);S.uuid===k.uuid&&(S=ec.exports.omit(ot(Te({},k),{color:T,avatar:Yee(ec.exports.random(0,6),k.uuid)}),"coUsers"),o(S),Yt.getState().playgroundStatus==="INACTIVE"&&(i==null||i.emit("active")));const D=[S,...k.coUsers.filter(R=>R.uuid!==S.uuid).map(R=>ot(Te({},R),{avatar:Yee(ec.exports.random(0,6),R.uuid),color:Gee(R.onlineCount-1)}))];s(D)}),i.on("playgroundInfo",x=>{var R;const{playgroundInfo:S,crdt:k,dockerInfo:T}=JSON.parse(x);u(k);const D=Yt.getState().playgroundInfo;g(ot(Te(Te({},S),D),{activeDockerId:S==null?void 0:S.dockerId})),T&&((R=D==null?void 0:D.dockerInfos)==null||R.set(T.dockerId,T),p(Te(Te({},Yt.getState().dockerInfo),T)),T.fileTree&&a({data:T.fileTree}),r&&r())}),i.on("playgroundStatus",x=>{v(x)}),i.on("dockerStatus",x=>{_(x||"STOP")}),i.on("fileContent",async x=>{var k,T,D;const S=JSON.parse(x);u(S),d("file"),i6(ot(Te({},S),{event:"file"})),(P_.getState().shadowUser.uuid||Hd(S==null?void 0:S.userInfo)&&S.file)&&(l(S.file),(await Pu).put("files",(k=S==null?void 0:S.file)==null?void 0:k.value,(T=S==null?void 0:S.file)==null?void 0:T.path),await Vee(S.file.path)||r6((D=S==null?void 0:S.file)==null?void 0:D.path,{value:S.file.value,revision:0,path:S.file.path}))}),i.on("saveFile",x=>{JSON.parse(x)}),i.on("extraSync",x=>{const S=JSON.parse(x);switch(S.extend.type){case"editor-scroll":u(S),d("editor"),f();break;case"mousemove":u(S),f();break;default:return}}),i.on("sender",x=>{c([...Yt.getState().senders,JSON.parse(x).sender])}),i.on("fileNode",x=>{const S=JSON.parse(x);a({data:S})}),i.on("console",x=>{const S=JSON.parse(x);u(S),d("console"),i6(ot(Te({},S),{event:"console"}))}),i.on("mediaRecord",x=>{const S=JSON.parse(x);wRe(S.timestamp,S),u(S),d("media"),i6(ot(Te({},S),{event:"media"}))}),i.on("disconnect",x=>{x!=="io server disconnect"&&i.connect()}),i.on("authorized_error",x=>{setTimeout(()=>{Y_.message({type:"error",content:x,placement:"bottomEnd"})},2e3)}),i.on("connect_error",x=>{setTimeout(()=>{Y_.message({type:"error",content:"\u8FDE\u63A5\u9519\u8BEF, \u91CD\u65B0\u8FDE\u63A5\u4E2D~~~\u8BF7\u7A0D\u540E",placement:"bottomEnd"})},2e3),i.connect()}),i.on("connect_timeout",x=>{i.connect()}),i.on("error",x=>{setTimeout(()=>{Y_.message({type:"error",content:"\u8FDE\u63A5\u9519\u8BEF\uFF0C\u91CD\u8FDE\u4E2D",placement:"bottomEnd"})},2e3),i.connect()}),i.on("reconnect_attempt",x=>{}),i.on("reconnect",x=>{Y_.message({type:"info",content:"\u5DF2\u6210\u529F\u91CD\u65B0\u8FDE\u63A5\uFF01",placement:"topCenter"})})})};var f9={exports:{}},$i={};/** @license React v16.13.1
|
|
125
|
+
*/var Wze=O.exports,zre=60103;if(zx.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Ure=Symbol.for;zre=Ure("react.element"),zx.Fragment=Ure("react.fragment")}var Hze=Wze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vze=Object.prototype.hasOwnProperty,zze={key:!0,ref:!0,__self:!0,__source:!0};function jre(n,e,t){var i,r={},o=null,s=null;t!==void 0&&(o=""+t),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(s=e.ref);for(i in e)Vze.call(e,i)&&!zze.hasOwnProperty(i)&&(r[i]=e[i]);if(n&&n.defaultProps)for(i in e=n.defaultProps,e)r[i]===void 0&&(r[i]=e[i]);return{$$typeof:zre,type:n,key:o,ref:s,props:r,_owner:Hze.current}}zx.jsx=jre,zx.jsxs=jre,RR.exports=zx;const ne=RR.exports.jsx,dt=RR.exports.jsxs,Qr=RR.exports.Fragment;var Uze={container:X.any,children:X.any,childrenProps:X.object,className:X.string,containerPadding:X.number,placement:X.any,preventOverflow:X.bool,open:X.bool,rootClose:X.bool,transition:X.any,triggerTarget:X.any,onClose:X.func,onEnter:X.func,onEntering:X.func,onEntered:X.func,onExit:X.func,onExiting:X.func,onExited:X.func},bB=xe.forwardRef(function(n,e){var t=O.exports.useContext(vB),i=t.overlayContainer,r=n.container,o=r===void 0?i:r,s=n.containerPadding,a=n.placement,l=n.rootClose,c=n.children,u=n.childrenProps,d=n.transition,h=d===void 0?Hre:d,f=n.open,g=n.preventOverflow,p=n.triggerTarget,m=n.onClose,v=n.onExited,_=n.onExit,y=n.onExiting,b=n.onEnter,w=n.onEntering,x=n.onEntered,S=O.exports.useState(!f),k=S[0],T=S[1],D=O.exports.useRef(null);f?k&&T(!1):!h&&!k&&T(!0);var R=f||h&&!k,N=O.exports.useCallback(function(P){T(!0),v==null||v(P)},[v]);if(gje(m,{triggerTarget:p,overlayTarget:D,disabled:!l||!R}),!R)return null;var A={container:o,containerPadding:s,triggerTarget:p,placement:a,preventOverflow:g},V=function(U,F){return ne(Mze,st(Te(Te({},A),U),{ref:Io(e,F),children:function(M,W){if(typeof c=="function")return c(Object.assign(M,u),Io(W,D));var j=M.left,$=M.top,Q=M.className;return xe.cloneElement(c,vt({},u,c.props,{className:Bu(Q,c.props.className),style:vt({left:j,top:$},c.props.style),ref:Io(W,D)}))}}))};return h?ne(h,{in:f,transitionAppear:!0,onExit:_,onExiting:y,onExited:N,onEnter:b,onEntering:w,onEntered:x,children:V}):V()});bB.displayName="Overlay",bB.propTypes=Uze;var jze=bB;function qze(n,e){n===void 0&&(n={}),e===void 0&&(e={});var t={};return Object.keys(n).forEach(function(i){if(n[i]){var r;t[i]=vr(n[i],(r=e)===null||r===void 0?void 0:r[i])}}),t}function qre(n,e,t){var i=e.currentTarget,r=e.relatedTarget||Ax(e,["nativeEvent","toElement"]);(!r||r!==i)&&!Wx(i,r)&&n(e,t)}var Kze=["hover","focus"],Kre=xe.forwardRef(function(n,e){var t=O.exports.useContext(vB),i=t.overlayContainer,r=n.children,o=n.container,s=o===void 0?i:o,a=n.controlId,l=n.defaultOpen,c=n.trigger,u=c===void 0?Kze:c,d=n.disabled,h=n.readOnly,f=n.plaintext,g=n.open,p=n.delay,m=n.delayOpen,v=n.delayClose,_=n.enterable,y=n.placement,b=y===void 0?"bottomStart":y,w=n.speaker,x=n.rootClose,S=x===void 0?!0:x,k=n.onClick,T=n.onMouseOver,D=n.onMouseOut,R=n.onContextMenu,N=n.onFocus,A=n.onBlur,V=n.onClose,P=Pt(n,["children","container","controlId","defaultOpen","trigger","disabled","readOnly","plaintext","open","delay","delayOpen","delayClose","enterable","placement","speaker","rootClose","onClick","onMouseOver","onMouseOut","onContextMenu","onFocus","onBlur","onClose"]),U=poe({container:s}),F=U.Portal,M=O.exports.useRef(),W=O.exports.useRef(),j=moe(g,l),$=j[0],Q=j[1],ee=O.exports.useRef(null),ge=O.exports.useRef(null),_e=Pr(m)?p:m,Ie=Pr(v)?p:v,K=O.exports.useRef(!1),se=O.exports.useRef(!1);O.exports.useEffect(function(){return function(){Pr(ee.current)||clearTimeout(ee.current),Pr(ge.current)||clearTimeout(ge.current)}},[]);var oe=O.exports.useCallback(function(Ee){var Ce=Zie(Ee)?_e:Ee;if(Ce&&typeof Ce=="number")return ee.current=setTimeout(function(){ee.current=null,Q(!0)},Ce);Q(!0)},[_e,Q]),Ne=O.exports.useCallback(function(Ee){var Ce=Zie(Ee)?Ie:Ee;if(Ce&&typeof Ce=="number")return ge.current=setTimeout(function(){ge.current=null,Q(!1)},Ce);Q(!1)},[Ie,Q]);O.exports.useImperativeHandle(e,function(){return{get root(){return M.current},get overlay(){var Ee;return(Ee=W.current)===null||Ee===void 0?void 0:Ee.child},open:oe,close:Ne,updatePosition:function(){var Ce,He;(Ce=W.current)===null||Ce===void 0||(He=Ce.updatePosition)===null||He===void 0||He.call(Ce)}}});var pe=O.exports.useCallback(function(){!K.current&&!se.current&&Ne()},[Ne]),Me=O.exports.useCallback(function(){$?pe():oe()},[$,pe,oe]),at=O.exports.useCallback(function(){if(!_)return oe();if(se.current=!0,!Pr(ge.current))return clearTimeout(ge.current),ge.current=null,oe();$||oe()},[_,$,oe]),_t=O.exports.useCallback(function(){if(_||Ne(),se.current=!1,!Pr(ee.current)){clearTimeout(ee.current),ee.current=null;return}!$||!Pr(ge.current)||(ge.current=setTimeout(function(){Pr(ge.current)||(clearTimeout(ge.current),ge.current=null),pe()},200))},[_,$,Ne,pe]),qe=O.exports.useCallback(function(){K.current=!0},[]),kt=O.exports.useCallback(function(){K.current=!1,!kf("click",u)&&!kf("contextMenu",u)&&!kf("active",u)&&pe()},[pe,u]),ve=O.exports.useCallback(function(Ee){Ee.preventDefault()},[]),B={onClick:k,onContextMenu:R,onMouseOver:T,onMouseOut:D,onFocus:N,onBlur:A};if(!d&&!h&&!f){if(kf("click",u)&&(B.onClick=vr(Me,B.onClick)),kf("contextMenu",u)&&(B.onContextMenu=vr(ve,Me,B.onContextMenu)),kf("active",u)&&(B.onClick=vr(at,B.onClick)),kf("hover",u)){var G=null,te=null;u!=="none"&&(G=function(Ce){return qre(at,Ce)},te=function(Ce){return qre(_t,Ce)}),B.onMouseOver=vr(G,T),B.onMouseOut=vr(te,D)}kf("focus",u)&&(B.onFocus=vr(at,N),B.onBlur=vr(_t,A))}var Se=function(){var Ce=vt({},P,{rootClose:S,triggerTarget:M,onClose:u!=="none"?vr(Ne,V):void 0,placement:b,container:s,open:$}),He={id:a};return u!=="none"&&_&&(He.onMouseEnter=qe,He.onMouseLeave=kt),ne(jze,st(Te({},Ce),{ref:W,childrenProps:He,children:typeof w=="function"?function(We,ht){return w(vt({},We,{onClose:Ne}),ht)}:w}))};return dt(Qr,{children:[typeof r=="function"?r(B,M):xe.cloneElement(r,vt({ref:M,"aria-describedby":a},qze(B,r.props))),ne(F,{children:Se()})]})});Kre.displayName="OverlayTrigger";var Gze=Kre,Gre={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};function Yze(){if(!!C1){var n,e=document.createElement("div").style;for(n in Gre)if(e[n]!==void 0)return Gre[n]}}function Zze(n){var e=W_(n),t=$1(e),i=t.innerWidth;return e.body?e.body.clientWidth<i:!1}var Xze=function(n){var e=$1(n),t=n&&n.tagName.toLowerCase()==="body";return e||t?Zze(n):n.scrollHeight>n.clientHeight},yB,Qze=function(n){if((yB===void 0||n)&&C1){var e=document.createElement("div"),t=document.body;e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",t.appendChild(e),yB=e.offsetWidth-e.clientWidth,t.removeChild(e)}return yB},CB=function(n,e){var t=$1(n);return t?t.innerHeight:e?n.clientHeight:U_(n).height},NR=xe.createContext({}),Jze=NR.Consumer,eUe=NR.Provider,tUe=["light","dark","high-contrast"],nUe=function(e){var t=e.children,i=e.classPrefix,r=i===void 0?m7e():i,o=e.theme,s=Pt(e,["children","classPrefix","theme"]),a=xe.useMemo(function(){return vt({classPrefix:r,theme:o},s)},[r,o,s]);return xe.useEffect(function(){C1&&o&&(lB(document.body,P1(r,"theme-"+o)),tUe.forEach(function(l){l!==o&&aB(document.body,P1(r,"theme-"+l))}))},[r,o]),xe.createElement(eUe,{value:a},t)},iUe=nUe,rUe=Gie,oUe=Ix,sUe=Array.prototype,aUe=sUe.splice;function lUe(n,e){for(var t=n?e.length:0,i=t-1;t--;){var r=e[t];if(t==i||r!==o){var o=r;oUe(r)?aUe.call(n,r,1):rUe(n,r)}}return n}var cUe=lUe,uUe=N6,dUe=cUe;function hUe(n,e){var t=[];if(!(n&&n.length))return t;var i=-1,r=[],o=n.length;for(e=uUe(e);++i<o;){var s=n[i];e(s,i,n)&&(t.push(s),r.push(i))}return dUe(n,r),t}var fUe=hUe,Yre=xe.forwardRef(function(n,e){var t=q_("Plaintext"),i=t.locale,r=n.as,o=r===void 0?"div":r,s=n.classPrefix,a=s===void 0?"plaintext":s,l=n.className,c=n.children,u=n.localeKey,d=u===void 0?"":u,h=n.placeholder,f=h===void 0?i[d]:h,g=Pt(n,["as","classPrefix","className","children","localeKey","placeholder"]),p=bn(a),m=p.withClassPrefix,v=p.merge,_=v(l,m({empty:!c}));return xe.createElement(o,vt({},g,{ref:e,className:_}),c||f)});Yre.displayName="Plaintext";var gUe=Yre,Zre=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"span":t,r=n.classPrefix,o=r===void 0?"btn-close":r,s=n.className,a=n.locale,l=Pt(n,["as","classPrefix","className","locale"]),c=bn(o),u=c.withClassPrefix,d=c.merge,h=q_("CloseButton",a),f=h.locale,g=d(s,u());return xe.createElement(i,vt({role:"button"},l,{ref:e,className:g,title:f==null?void 0:f.closeLabel,"aria-label":f==null?void 0:f.closeLabel}),xe.createElement(rB,null))});Zre.displayName="CloseButton";var Xre=Zre,Qre={},wB={exports:{}},Jre={};(function(n){function e(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(c)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r(O.exports);function i(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return i=function(){return c},c}function r(c){if(c&&c.__esModule)return c;if(c===null||e(c)!=="object"&&typeof c!="function")return{default:c};var u=i();if(u&&u.has(c))return u.get(c);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=h?Object.getOwnPropertyDescriptor(c,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=c[f]}return d.default=c,u&&u.set(c,d),d}function o(){return o=Object.assign||function(c){for(var u=1;u<arguments.length;u++){var d=arguments[u];for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(c[h]=d[h])}return c},o.apply(this,arguments)}function s(c,u){return t.createElement("svg",o({width:"1em",height:"1em",viewBox:"0 0 21 32",fill:"currentColor",ref:u},c),t.createElement("path",{d:"M19.196 13.143a.612.612 0 01-.179.411l-8.321 8.321c-.107.107-.268.179-.411.179s-.304-.071-.411-.179l-8.321-8.321c-.107-.107-.179-.268-.179-.411s.071-.304.179-.411l.893-.893a.582.582 0 01.411-.179c.143 0 .304.071.411.179l7.018 7.018 7.018-7.018c.107-.107.268-.179.411-.179s.304.071.411.179l.893.893a.617.617 0 01.179.411z"}))}var a=t.forwardRef(s),l=a;n.default=l})(Jre),function(n,e){var t=la.exports;e.__esModule=!0,e.default=void 0;var i=t(Gc.exports),r=t(Jre),o=(0,i.default)({as:r.default,ariaLabel:"angle down",category:"legacy",displayName:"AngleDown"}),s=o;e.default=s,n.exports=e.default}(wB,wB.exports),function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return e.default}});var e=t(wB.exports);function t(i){return i&&i.__esModule?i:{default:i}}}(Qre);var pUe=Jo(Qre),eoe={},SB={exports:{}},toe={};(function(n){function e(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(c)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r(O.exports);function i(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return i=function(){return c},c}function r(c){if(c&&c.__esModule)return c;if(c===null||e(c)!=="object"&&typeof c!="function")return{default:c};var u=i();if(u&&u.has(c))return u.get(c);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=h?Object.getOwnPropertyDescriptor(c,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=c[f]}return d.default=c,u&&u.set(c,d),d}function o(){return o=Object.assign||function(c){for(var u=1;u<arguments.length;u++){var d=arguments[u];for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(c[h]=d[h])}return c},o.apply(this,arguments)}function s(c,u){return t.createElement("svg",o({width:"1em",height:"1em",viewBox:"0 0 21 32",fill:"currentColor",ref:u},c),t.createElement("path",{d:"M19.196 21.143a.612.612 0 01-.179.411l-.893.893a.582.582 0 01-.411.179.612.612 0 01-.411-.179l-7.018-7.018-7.018 7.018c-.107.107-.268.179-.411.179s-.304-.071-.411-.179l-.893-.893c-.107-.107-.179-.268-.179-.411s.071-.304.179-.411l8.321-8.321c.107-.107.268-.179.411-.179s.304.071.411.179l8.321 8.321a.617.617 0 01.179.411z"}))}var a=t.forwardRef(s),l=a;n.default=l})(toe),function(n,e){var t=la.exports;e.__esModule=!0,e.default=void 0;var i=t(Gc.exports),r=t(toe),o=(0,i.default)({as:r.default,ariaLabel:"angle up",category:"legacy",displayName:"AngleUp"}),s=o;e.default=s,n.exports=e.default}(SB,SB.exports),function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return e.default}});var e=t(SB.exports);function t(i){return i&&i.__esModule?i:{default:i}}}(eoe);var mUe=Jo(eoe),noe={},xB={exports:{}},ioe={};(function(n){function e(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(c)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r(O.exports);function i(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return i=function(){return c},c}function r(c){if(c&&c.__esModule)return c;if(c===null||e(c)!=="object"&&typeof c!="function")return{default:c};var u=i();if(u&&u.has(c))return u.get(c);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=h?Object.getOwnPropertyDescriptor(c,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=c[f]}return d.default=c,u&&u.set(c,d),d}function o(){return o=Object.assign||function(c){for(var u=1;u<arguments.length;u++){var d=arguments[u];for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(c[h]=d[h])}return c},o.apply(this,arguments)}function s(c,u){return t.createElement("svg",o({width:"1em",height:"1em",viewBox:"0 0 12 32",fill:"currentColor",ref:u},c),t.createElement("path",{d:"M11.196 9.714a.612.612 0 01-.179.411l-7.018 7.018 7.018 7.018c.107.107.179.268.179.411s-.071.304-.179.411l-.893.893c-.107.107-.268.179-.411.179s-.304-.071-.411-.179L.981 17.555c-.107-.107-.179-.268-.179-.411s.071-.304.179-.411l8.321-8.321c.107-.107.268-.179.411-.179s.304.071.411.179l.893.893c.107.107.179.25.179.411z"}))}var a=t.forwardRef(s),l=a;n.default=l})(ioe),function(n,e){var t=la.exports;e.__esModule=!0,e.default=void 0;var i=t(Gc.exports),r=t(ioe),o=(0,i.default)({as:r.default,ariaLabel:"angle left",category:"legacy",displayName:"AngleLeft"}),s=o;e.default=s,n.exports=e.default}(xB,xB.exports),function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return e.default}});var e=t(xB.exports);function t(i){return i&&i.__esModule?i:{default:i}}}(noe);var Ux=Jo(noe),roe={},EB={exports:{}},ooe={};(function(n){function e(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(c)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r(O.exports);function i(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return i=function(){return c},c}function r(c){if(c&&c.__esModule)return c;if(c===null||e(c)!=="object"&&typeof c!="function")return{default:c};var u=i();if(u&&u.has(c))return u.get(c);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=h?Object.getOwnPropertyDescriptor(c,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=c[f]}return d.default=c,u&&u.set(c,d),d}function o(){return o=Object.assign||function(c){for(var u=1;u<arguments.length;u++){var d=arguments[u];for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(c[h]=d[h])}return c},o.apply(this,arguments)}function s(c,u){return t.createElement("svg",o({width:"1em",height:"1em",viewBox:"0 0 11 32",fill:"currentColor",ref:u},c),t.createElement("path",{d:"M10.625 17.143a.612.612 0 01-.179.411l-8.321 8.321c-.107.107-.268.179-.411.179s-.304-.071-.411-.179l-.893-.893a.582.582 0 01-.179-.411c0-.143.071-.304.179-.411l7.018-7.018L.41 10.124c-.107-.107-.179-.268-.179-.411s.071-.304.179-.411l.893-.893c.107-.107.268-.179.411-.179s.304.071.411.179l8.321 8.321a.617.617 0 01.179.411z"}))}var a=t.forwardRef(s),l=a;n.default=l})(ooe),function(n,e){var t=la.exports;e.__esModule=!0,e.default=void 0;var i=t(Gc.exports),r=t(ooe),o=(0,i.default)({as:r.default,ariaLabel:"angle right",category:"legacy",displayName:"AngleRight"}),s=o;e.default=s,n.exports=e.default}(EB,EB.exports),function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return e.default}});var e=t(EB.exports);function t(i){return i&&i.__esModule?i:{default:i}}}(roe);var jx=Jo(roe),_Ue={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},vUe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},bUe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yUe={date:N1({formats:_Ue,defaultWidth:"full"}),time:N1({formats:vUe,defaultWidth:"full"}),dateTime:N1({formats:bUe,defaultWidth:"full"})},CUe=yUe,wUe={code:"en-GB",formatDistance:bne,formatLong:CUe,formatRelative:yne,localize:Cne,match:wne,options:{weekStartsOn:1,firstWeekContainsDate:4}},SUe=wUe,kB={sunday:"Su",monday:"Mo",tuesday:"Tu",wednesday:"We",thursday:"Th",friday:"Fr",saturday:"Sa",ok:"OK",today:"Today",yesterday:"Yesterday",hours:"Hours",minutes:"Minutes",seconds:"Seconds",formattedMonthPattern:"MMM yyyy",formattedDayPattern:"dd MMM yyyy",dateLocale:SUe},xUe={common:{loading:"Loading...",emptyMessage:"No data found"},Plaintext:{unfilled:"Unfilled",notSelected:"Not selected",notUploaded:"Not uploaded"},Pagination:{more:"More",prev:"Previous",next:"Next",first:"First",last:"Last",limit:"{0} / page",total:"Total Rows: {0}",skip:"Go to{0}"},Calendar:kB,DatePicker:vt({},kB),DateRangePicker:vt({},kB,{last7Days:"Last 7 Days"}),Picker:{noResultsText:"No results found",placeholder:"Select",searchPlaceholder:"Search",checkAll:"All"},InputPicker:{newItem:"New item",createOption:'Create option "{0}"'},Uploader:{inited:"Initial",progress:"Uploading",error:"Error",complete:"Finished",emptyFile:"Empty",upload:"Upload"},CloseButton:{closeLabel:"Close"},Breadcrumb:{expandText:"Show path"},Toggle:{on:"Open",off:"Close"}},soe=function(e){return e.reduce(function(t,i){return t=vt({},t,i),t},{})},EUe=function(){return typeof window!="undefined"&&(document.body.getAttribute("dir")||document.dir)==="rtl"};function q_(n,e){var t,i,r=O.exports.useContext(NR),o=r.locale,s=o===void 0?xUe:o,a=r.rtl,l=a===void 0?EUe():a,c=r.formatDate,u=r.parseDate,d=vt({},s==null?void 0:s.common,typeof n=="string"?s==null?void 0:s[n]:soe(n.map(function(g){return s==null?void 0:s[g]})));e&&(d=soe([d,e]));var h=O.exports.useCallback(function(g,p){var m;return V8e(g,p,{locale:s==null||(m=s.Calendar)===null||m===void 0?void 0:m.dateLocale})},[(t=s.Calendar)===null||t===void 0?void 0:t.dateLocale]),f=O.exports.useCallback(function(g,p){var m;return l6e(g,p,new Date,{locale:s==null||(m=s.Calendar)===null||m===void 0?void 0:m.dateLocale})},[(i=s.Calendar)===null||i===void 0?void 0:i.dateLocale]);return{locale:d,rtl:l,formatDate:c||h,parseDate:u||f}}function kUe(n){var e=q_("Dropdown"),t=e.rtl;return O.exports.useMemo(function(){switch(!0){case/^top/.test(n):return mUe;case/^right/.test(n):return t?Ux:jx;case/^left/.test(n):return t?jx:Ux;case/^bottom/.test(n):default:return pUe}},[n,t])}var LB={};function kp(n,e){return function(i,r,o){if(i[r]!=null){var s='"'+r+'" property of "'+o+`" has been deprecated.
|
|
126
|
+
`+e;LB[s]||(console.warn(s),LB[s]=!0)}for(var a=arguments.length,l=new Array(a>3?a-3:0),c=3;c<a;c++)l[c-3]=arguments[c];return n.apply(void 0,[i,r,o].concat(l))}}function LUe(){LB={}}kp._resetWarned=LUe;var TUe=Kie;function DUe(n,e,t){var i=n.length;return t=t===void 0?i:t,!e&&t>=i?n:TUe(n,e,t)}var IUe=DUe;function RUe(n){return n.split("")}var NUe=RUe,AUe="\\ud800-\\udfff",OUe="\\u0300-\\u036f",PUe="\\ufe20-\\ufe2f",MUe="\\u20d0-\\u20ff",FUe=OUe+PUe+MUe,BUe="\\ufe0e\\ufe0f",$Ue="\\u200d",WUe=RegExp("["+$Ue+AUe+FUe+BUe+"]");function HUe(n){return WUe.test(n)}var aoe=HUe,loe="\\ud800-\\udfff",VUe="\\u0300-\\u036f",zUe="\\ufe20-\\ufe2f",UUe="\\u20d0-\\u20ff",jUe=VUe+zUe+UUe,qUe="\\ufe0e\\ufe0f",KUe="["+loe+"]",TB="["+jUe+"]",DB="\\ud83c[\\udffb-\\udfff]",GUe="(?:"+TB+"|"+DB+")",coe="[^"+loe+"]",uoe="(?:\\ud83c[\\udde6-\\uddff]){2}",doe="[\\ud800-\\udbff][\\udc00-\\udfff]",YUe="\\u200d",hoe=GUe+"?",foe="["+qUe+"]?",ZUe="(?:"+YUe+"(?:"+[coe,uoe,doe].join("|")+")"+foe+hoe+")*",XUe=foe+hoe+ZUe,QUe="(?:"+[coe+TB+"?",TB,uoe,doe,KUe].join("|")+")",JUe=RegExp(DB+"(?="+DB+")|"+QUe+XUe,"g");function eje(n){return n.match(JUe)||[]}var tje=eje,nje=NUe,ije=aoe,rje=tje;function oje(n){return ije(n)?rje(n):nje(n)}var sje=oje;function AR(n,e){return e===void 0&&(e=!1),typeof n=="string"?(e&&(n=n.replace(/left|right/,function(t){return t==="left"?"right":"left"})),n.replace(/Left|Top/,"Start").replace(/Right|Bottom/,"End")):n}var aje=function(e){return e&&("current"in e?e.current:e)};function Lp(n){var e=(n==null?void 0:n.root)||(n==null?void 0:n.child)||aje(n);return e!=null&&e.nodeType&&typeof(e==null?void 0:e.nodeName)=="string"?e:fl.exports.findDOMNode(e)}var goe=function(e){return!e||typeof e=="function"?e:function(t){e.current=t}};function Io(n,e){var t=goe(n),i=goe(e);return function(r){typeof t=="function"&&t(r),typeof i=="function"&&i(r)}}var IB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.className,o=n.classPrefix,s=o===void 0?"tooltip":o,a=n.children,l=n.style,c=n.visible,u=Pt(n,["as","className","classPrefix","children","style","visible"]),d=bn(s),h=d.merge,f=d.withClassPrefix,g=h(r,f()),p=vt({opacity:c?1:void 0},l);return xe.createElement(i,vt({role:"tooltip"},u,{ref:e,className:g,style:p}),a)});IB.displayName="Tooltip",IB.propTypes={visible:X.bool,classPrefix:X.string,className:X.string,style:X.object,children:X.node};var lje=IB,RB=xe.forwardRef(function(n,e){var t=n.onOpen,i=n.onClose,r=n.onEntered,o=n.onExited,s=n.placement,a=s===void 0?"right":s,l=n.preventOverflow,c=Pt(n,["onOpen","onClose","onEntered","onExited","placement","preventOverflow"]);return xe.createElement(Jze,null,function(u){return xe.createElement(Gze,vt({},c,{ref:e,preventOverflow:l,placement:AR(a,u==null?void 0:u.rtl),onEntered:vr(t,r),onExited:vr(i,o)}))})});RB.displayName="Whisper",RB.propTypes={onOpen:X.func,onClose:X.func,onEntered:X.func,onExited:X.func,placement:X.oneOf(yAe),preventOverflow:X.bool};var cje=RB;function uje(n){var e=n.message,t=n.ref,i=Pt(n,["message","ref"]);return xe.createElement(cje,vt({ref:t,speaker:xe.createElement(lje,null,e)},i))}function bn(n){var e=O.exports.useContext(NR)||{},t=e.classPrefix,i=t===void 0?"rs":t,r=P1(i,n),o=O.exports.useCallback(function(){var l=arguments.length?Bu.apply(void 0,arguments).split(" ").map(function(c){return P1(r,c)}):[];return l.filter(function(c){return c}).join(" ")},[r]),s=O.exports.useCallback(function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=o(c);return d?r+" "+d:r},[r,o]),a=function(){var c=arguments.length?Bu.apply(void 0,arguments).split(" ").map(function(u){return P1(i,u)}):[];return c.filter(function(u){return u}).join(" ")};return{withClassPrefix:s,merge:Bu,prefix:o,rootPrefix:a}}function poe(n){n===void 0&&(n={});var e=n,t=e.id,i=e.container,r=O.exports.useRef(C1?document.body:null);O.exports.useEffect(function(){var s=typeof i=="function"?i():i,a=t&&document.querySelector("#"+t),l=s||a||document.body;r.current=l},[r,i,t]);var o=O.exports.useCallback(function(s){var a=s.children;return r.current!=null?fl.exports.createPortal(a,r.current):null},[r]);return{target:r.current,Portal:o}}function H1(n){var e=n.name,t=n.componentAs,i=n.componentClassPrefix,r=Pt(n,["name","componentAs","componentClassPrefix"]),o=xe.forwardRef(function(s,a){var l=s.as,c=l===void 0?t||"div":l,u=s.classPrefix,d=u===void 0?i||B1(e):u,h=s.className,f=s.role,g=Pt(s,["as","classPrefix","className","role"]),p=bn(d),m=p.withClassPrefix,v=p.merge,_=v(h,m());return xe.createElement(c,vt({},r,g,{role:f,ref:a,className:_}))});return o.displayName=e,o.propTypes={as:X.elementType,className:X.string,classPrefix:X.string,children:X.node},o}function dje(n,e,t){e===void 0&&(e=0),t===void 0&&(t=!0);var i=O.exports.useRef(),r=O.exports.useCallback(function(){i.current&&clearTimeout(i.current)},[]),o=O.exports.useCallback(function(){t&&(i.current=setTimeout(function(){return n==null?void 0:n()},e))},[e,n,t]);return O.exports.useEffect(function(){return o(),r},[n,e,t,r,o]),{clear:r,reset:o}}function moe(n,e){var t=O.exports.useRef(!1);t.current=n!==void 0;var i=O.exports.useState(e),r=i[0],o=i[1],s=t.current?n:r,a=O.exports.useCallback(function(l){t.current||o(l)},[t]);return[s,a,t.current]}function hje(n){return(n==null?void 0:n.button)===0}function fje(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n!=null&&n.shiftKey)}function gje(n,e){var t=e.disabled,i=e.triggerTarget,r=e.overlayTarget,o=e.listenEscape,s=o===void 0?!0:o,a=O.exports.useCallback(function(c){s&&c.key===Ii.ESC&&(n==null||n(c))},[s,n]),l=O.exports.useCallback(function(c){var u=Lp(i),d=Lp(r);u&&Wx(u,c.target)||d&&Wx(d,c.target)||fje(c)||!hje(c)||n==null||n(c)},[n,i,r]);O.exports.useEffect(function(){var c=Lp(i);if(!(t||!c)){var u=W_(c),d=Ud(u,"mousedown",l,!0),h=Ud(u,"keyup",a);return function(){d==null||d.off(),h==null||h.off()}}},[i,t,n,l,a])}function V1(n){var e=O.exports.useRef(n);return O.exports.useEffect(function(){e.current=n}),O.exports.useCallback(function(){for(var t,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(t=e.current)===null||t===void 0?void 0:t.call.apply(t,[e].concat(r))},[])}function pje(n){var e=O.exports.useRef(n);return e.current=n,e}function mje(n){var e=pje(n);O.exports.useEffect(function(){return function(){return e.current()}},[])}var _je=function(e,t){var i=O.exports.useRef(!0);O.exports.useEffect(function(){if(i.current){i.current=!1;return}e()},t)},vje=_je;function bje(){var n=O.exports.useRef(!1);return O.exports.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),O.exports.useCallback(function(){return n.current},[])}var yje=xe.createContext(null),Cje=yje;function _oe(n){return!n||n.trim()==="#"}var NB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"a":t,r=n.href,o=n.disabled,s=n.onClick,a=Pt(n,["as","href","disabled","onClick"]),l=O.exports.useCallback(function(u){if((o||_oe(r))&&u.preventDefault(),o){u.stopPropagation();return}s==null||s(u)},[o,r,s]),c=_oe(r)?{role:"button",href:"#"}:null;return o&&(a.tabIndex=-1,a["aria-disabled"]=!0),ne(i,st(Te(Te({ref:e,href:r},c),a),{onClick:l}))});NB.displayName="SafeAnchor",NB.propTypes={href:X.string,disabled:X.bool,as:X.elementType};var K_=NB,wje=function(e,t){var i=U_(e),r=(t.pageX||0)-i.left,o=(t.pageY||0)-i.top,s=Math.max(i.width-r,r),a=Math.max(i.height-o,o),l=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));return{width:l*2,height:l*2,left:r-l,top:o-l}},AB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"span":t,r=n.className,o=n.classPrefix,s=o===void 0?"ripple":o,a=n.onMouseDown,l=Pt(n,["as","className","classPrefix","onMouseDown"]),c=bn(s),u=c.merge,d=c.prefix,h=c.withClassPrefix,f=u(r,d("pond")),g=O.exports.useRef(null),p=O.exports.useState(!1),m=p[0],v=p[1],_=O.exports.useState(),y=_[0],b=_[1],w=function(){v(!1)},x=O.exports.useCallback(function(S){var k=wje(g.current,S);v(!0),b(k),a==null||a(k,S)},[a]);return O.exports.useEffect(function(){var S=g.current.parentNode,k=Ud(S,"mousedown",x);return function(){k==null||k.off()}},[x]),ne(i,st(Te({},l),{className:f,ref:Io(g,e),children:ne(j_,{in:m,enteringClassName:d("rippling"),onEntered:w,children:function(S,k){var T=S.className,D=Pt(S,["className"]);return ne("span",st(Te({},D),{ref:k,className:u(h(),T),style:y}))}})}))});AB.displayName="Ripple",AB.propTypes={classPrefix:X.string,className:X.string,onMouseDown:X.func};var G_=AB,voe,OB=xe.forwardRef(function(n,e){var t=n.as,i=n.active,r=n.appearance,o=r===void 0?"default":r,s=n.block,a=n.className,l=n.children,c=n.classPrefix,u=c===void 0?"btn":c,d=n.color,h=n.disabled,f=n.loading,g=n.ripple,p=g===void 0?!0:g,m=n.size,v=n.type,_=Pt(n,["as","active","appearance","block","className","children","classPrefix","color","disabled","loading","ripple","size","type"]),y=O.exports.useContext(Cje),b=m!=null?m:y==null?void 0:y.size,w=bn(u),x=w.withClassPrefix,S=w.prefix,k=w.merge,T=k(a,x(o,d,b,{active:i,disabled:h,loading:f,block:s})),D=p&&!kf(o,["link","ghost"])?ne(G_,{}):null,R=ne("span",{className:S(voe||(voe=Bs(["spin"])))});if(_.href)return dt(K_,st(Te({},_),{as:t,ref:e,"aria-disabled":h,disabled:h,className:T,children:[f&&R,l,D]}));var N=t||"button",A=v||(N==="button"?"button":void 0),V=_.role||(N!=="button"?"button":void 0);return dt(N,st(Te({},_),{role:V,type:A,ref:e,disabled:h,"aria-disabled":h,className:T,children:[f&&R,l,D]}))});OB.displayName="Button",OB.propTypes={as:X.elementType,active:X.bool,appearance:X.oneOf(["default","primary","link","subtle","ghost"]),block:X.bool,children:X.node,color:X.oneOf(["red","orange","yellow","green","cyan","blue","violet"]),disabled:X.bool,href:X.string,loading:X.bool,ripple:X.bool,size:X.oneOf(["lg","md","sm","xs"]),type:X.oneOf(["button","reset","submit"])};var PB=OB,MB=xe.forwardRef(function(n,e){var t=n.icon,i=n.placement,r=i===void 0?"left":i,o=n.children,s=n.circle,a=n.classPrefix,l=a===void 0?"btn-icon":a,c=n.className,u=Pt(n,["icon","placement","children","circle","classPrefix","className"]),d=bn(l),h=d.merge,f=d.withClassPrefix,g=h(c,f("placement-"+r,{circle:s,"with-text":typeof o!="undefined"}));return xe.createElement(PB,vt({},u,{ref:e,className:g}),t,o)});MB.displayName="IconButton",MB.propTypes={className:X.string,icon:X.any,classPrefix:X.string,circle:X.bool,children:X.node,placement:X.oneOf(["left","right"])};var FB=MB;function Sje(n,e){var t=-1;return n.some(function(i,r){return e(i,r)?(t=r,!0):!1}),t}function xje(n,e){return Sje(n,function(t){return t.modals.indexOf(e)!==-1})}var Eje=function(){function n(){this.modals=[],this.containers=[],this.data=[]}var e=n.prototype;return e.add=function(i,r,o){var s=this.modals.indexOf(i),a=this.containers.indexOf(r);if(s!==-1)return s;if(s=this.modals.length,this.modals.push(i),a!==-1)return this.data[a].modals.push(i),s;var l={modals:[i],classes:o?o.split(/\s+/):[],style:{overflow:r.style.overflow,paddingRight:r.style.paddingRight},overflowing:Xze(r)};if(l.overflowing){var c=parseInt(Lf(r,"paddingRight")||0,10),u=Qze();H_(r,{paddingRight:(u?c+u:c)+"px"})}return l.classes.forEach(lB.bind(null,r)),this.containers.push(r),this.data.push(l),s},e.remove=function(i){var r=this.modals.indexOf(i);if(r!==-1){var o=xje(this.data,i),s=this.data[o],a=this.containers[o];s.modals.splice(s.modals.indexOf(i),1),this.modals.splice(r,1),s.modals.length===0&&(Object.keys(s.style).forEach(function(l){return a.style[l]=s.style[l]}),s.classes.forEach(aB.bind(null,a)),this.containers.splice(o,1),this.data.splice(o,1))}},e.isTopModal=function(i){return!!this.modals.length&&this.modals[this.modals.length-1]===i},n}(),kje=Eje,BB;function Lje(){return BB||(BB=new kje),BB}var Tje=function(){var e=Lje(),t=O.exports.useRef({dialog:null,backdrop:null});return{get dialog(){var i;return(i=t.current)===null||i===void 0?void 0:i.dialog},add:function(r,o){return e.add(t.current,r,o)},remove:function(){return e.remove(t.current)},isTopModal:function(){return e.isTopModal(t.current)},setDialogRef:O.exports.useCallback(function(i){t.current.dialog=i},[]),setBackdropRef:O.exports.useCallback(function(i){t.current.backdrop=i},[])}},$B=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.children,o=n.transition,s=n.dialogTransitionTimeout,a=n.style,l=n.className,c=n.container,u=n.animationProps,d=n.containerClassName,h=n.keyboard,f=h===void 0?!0:h,g=n.enforceFocus,p=g===void 0?!0:g,m=n.backdrop,v=m===void 0?!0:m,_=n.backdropTransitionTimeout,y=n.backdropStyle,b=n.backdropClassName,w=n.open,x=n.autoFocus,S=x===void 0?!0:x,k=n.onBackdropClick,T=n.onEsc,D=n.onExit,R=n.onExiting,N=n.onExited,A=n.onEnter,V=n.onEntering,P=n.onEntered,U=n.onClose,F=n.onOpen,M=Pt(n,["as","children","transition","dialogTransitionTimeout","style","className","container","animationProps","containerClassName","keyboard","enforceFocus","backdrop","backdropTransitionTimeout","backdropStyle","backdropClassName","open","autoFocus","onBackdropClick","onEsc","onExit","onExiting","onExited","onEnter","onEntering","onEntered","onClose","onOpen"]),W=O.exports.useState(!w),j=W[0],$=W[1],Q=poe({container:c}),ee=Q.Portal,ge=Tje();w?j&&$(!1):!o&&!j&&$(!0);var _e=w||o&&!j,Ie=O.exports.useRef(null),K=V1(function(G){f&&G.key===Ii.ESC&&ge.isTopModal()&&(T==null||T(G),U==null||U(G))}),se=O.exports.useCallback(function(){if(Ie.current){var G,te;(G=(te=Ie.current).focus)===null||G===void 0||G.call(te),Ie.current=null}},[]),oe=V1(function(G){var te=document.activeElement,Se=ge.dialog;Se&&te&&!Wx(Se,te)&&(G==null||G(),Se.focus())}),Ne=V1(function(){!p||!ge.isTopModal()||oe()}),pe=V1(function(G){G.target===G.currentTarget&&(k==null||k(G),v===!0&&(U==null||U(G)))}),Me=O.exports.useRef(),at=O.exports.useRef(),_t=V1(function(){var G=Jie(c,document.body);ge.add(G,d),Me.current||(Me.current=Ud(document,"keydown",K)),at.current||(at.current=Ud(document,"focus",Ne,!0)),S&&oe(function(){Ie.current=document.activeElement}),F==null||F()}),qe=V1(function(){var G,te;ge.remove(),(G=Me.current)===null||G===void 0||G.off(),Me.current=null,(te=at.current)===null||te===void 0||te.off(),at.current=null,se()});O.exports.useEffect(function(){!w||_t()},[w,_t]),O.exports.useEffect(function(){!j||qe()},[j,qe]),mje(function(){qe()});var kt=O.exports.useCallback(function(){$(!0)},[]);if(!_e)return null;var ve=function(){var te={style:y,onClick:pe};return o?ne(Hre,{transitionAppear:!0,in:w,timeout:_,children:function(Se,Ee){var Ce=Se.className,He=Pt(Se,["className"]);return ne("div",st(Te(Te({"aria-hidden":!0},He),te),{ref:Io(ge.setBackdropRef,Ee),className:Bu(b,Ce)}))}}):ne("div",st(Te({"aria-hidden":!0},te),{className:b}))},B=o?ne(o,st(Te({},u),{transitionAppear:!0,unmountOnExit:!0,in:w,timeout:s,onExit:D,onExiting:R,onExited:vr(kt,N),onEnter:A,onEntering:V,onEntered:P,children:r})):r;return ne(vB.Provider,{value:{overlayContainer:function(){return ge.dialog}},children:ne(ee,{children:dt(i,st(Te({},M),{ref:Io(ge.setDialogRef,e),style:a,className:l,tabIndex:-1,children:[v&&ve(),B]}))})})}),boe={as:X.elementType,className:X.string,backdropClassName:X.string,style:X.object,backdropStyle:X.object,open:X.bool,backdrop:X.oneOfType([X.bool,X.string]),keyboard:X.bool,autoFocus:X.bool,enforceFocus:X.bool,animationProps:X.object,onOpen:X.func,onClose:X.func};$B.displayName="OverlayModal",$B.propTypes=vt({},$re,boe,{children:X.func,container:X.any,containerClassName:X.string,dialogTransitionTimeout:X.number,backdropTransitionTimeout:X.number,transition:X.any,onEsc:X.func,onBackdropClick:X.func});var Dje=$B,yoe=xe.forwardRef(function(n,e){var t=n.timeout,i=t===void 0?300:t,r=Pt(n,["timeout"]),o=bn("anim"),s=o.prefix;return xe.createElement(j_,vt({},r,{ref:e,animation:!0,timeout:i,enteringClassName:s("bounce-in"),enteredClassName:s("bounce-in"),exitingClassName:s("bounce-out"),exitedClassName:s("bounce-out")}))});yoe.displayName="Bounce";var Ije=yoe,Coe,woe={size:X.oneOf(mte),className:X.string,classPrefix:X.string,dialogClassName:X.string,style:X.object,dialogStyle:X.object,children:X.node},WB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.style,o=n.children,s=n.dialogClassName,a=n.dialogStyle,l=n.classPrefix,c=l===void 0?"modal":l,u=n.className,d=n.size,h=Pt(n,["as","style","children","dialogClassName","dialogStyle","classPrefix","className","size"]),f=vt({display:"block"},r),g=bn(c),p=g.merge,m=g.withClassPrefix,v=g.prefix,_=p(u,m(d)),y=p(s,v("dialog"));return xe.createElement(i,vt({role:"dialog","aria-modal":!0},h,{ref:e,className:_,style:f}),xe.createElement("div",{role:"document",className:y,style:a},xe.createElement("div",{className:v(Coe||(Coe=Bs(["content"])))},o)))});WB.displayName="ModalDialog",WB.propTypes=woe;var Soe=WB,OR=xe.createContext(null),HB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.classPrefix,o=r===void 0?"modal-body":r,s=n.className,a=n.style,l=n.children,c=Pt(n,["as","classPrefix","className","style","children"]),u=bn(o),d=u.withClassPrefix,h=u.merge,f=u.prefix,g=h(s,d());return xe.createElement(OR.Consumer,null,function(p){var m,v=p==null||(m=p.getBodyStyles)===null||m===void 0?void 0:m.call(p);return xe.createElement(i,vt({},c,{ref:e,style:vt({},v,a),className:g}),(p==null?void 0:p.isDrawer)&&xe.createElement(FB,{icon:xe.createElement(rB,null),appearance:"subtle",size:"sm",className:f("close"),onClick:p==null?void 0:p.onModalClose}),l)})});HB.displayName="ModalBody",HB.propTypes={as:X.elementType,classPrefix:X.string,className:X.string};var Rje=HB,VB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.classPrefix,o=r===void 0?"modal-header":r,s=n.className,a=n.closeButton,l=a===void 0?!0:a,c=n.children,u=n.onClose,d=Pt(n,["as","classPrefix","className","closeButton","children","onClose"]),h=bn(o),f=h.merge,g=h.withClassPrefix,p=h.prefix,m=f(s,g()),v=O.exports.useContext(OR),_=v!=null&&v.isDrawer?ne(FB,{icon:ne(rB,{}),appearance:"subtle",size:"sm",className:p("close"),onClick:vr(u,v==null?void 0:v.onModalClose)}):ne(Xre,{className:p("close"),onClick:vr(u,v==null?void 0:v.onModalClose)});return dt(i,st(Te({},d),{ref:e,className:m,children:[l&&_,c]}))});VB.displayName="ModalHeader",VB.propTypes={as:X.elementType,classPrefix:X.string,className:X.string,closeButton:X.bool,children:X.node,onHide:X.func};var Nje=VB,zB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"h4":t,r=n.classPrefix,o=r===void 0?"modal-title":r,s=n.className,a=n.role,l=Pt(n,["as","classPrefix","className","role"]),c=bn(o),u=c.withClassPrefix,d=c.merge,h=d(s,u()),f=O.exports.useContext(OR);return ne(i,st(Te({id:f?f.dialogId+"-title":void 0},l),{role:a,ref:e,className:h}))});zB.displayName="Modal.Title",zB.propTypes={as:X.elementType,className:X.string,classPrefix:X.string,children:X.node};var Aje=zB,Oje=H1({name:"ModalFooter"}),Pje=Oje,Mje=function(e,t){var i=O.exports.useState({}),r=i[0],o=i[1],s=t.overflow,a=t.drawer,l=t.prefix,c=O.exports.useRef(),u=O.exports.useRef(null),d=O.exports.useRef(),h=O.exports.useCallback(function(p,m){var v=e.current,_=v?v.scrollHeight:0,y={overflow:"auto"};if(v){var b=46,w=46,x=v.querySelector("."+l("header")),S=v.querySelector("."+l("footer"));b=x?CB(x)+b:b,w=S?CB(S)+w:w;var k=b+w+(m?70:60),T=CB(window)-k,D=_>=T?T:_;y.maxHeight=D}o(y)},[l,e]),f=O.exports.useCallback(function(){var p,m,v;(p=c.current)===null||p===void 0||(m=p.off)===null||m===void 0||m.call(p),(v=d.current)===null||v===void 0||v.disconnect()},[]),g=O.exports.useCallback(function(p){s&&!a&&(h(void 0,p),u.current=e.current.querySelector("."+l("content")),c.current=Ud(window,"resize",h),d.current=new mre(function(){return h()}),d.current.observe(u.current))},[a,s,l,e,h]);return O.exports.useEffect(function(){f()},[f]),[s?r:{},g,f]},Fje=L1,Bje=0;function $je(n){var e=++Bje;return Fje(n)+e}var Wje=$je,xoe=Wje;function PR(n,e){var t=O.exports.useRef();return t.current||(t.current=xoe(n)),e!=null?e:t.current}var Eoe,koe,Tp=xe.forwardRef(function(n,e){var t=n.className,i=n.children,r=n.classPrefix,o=r===void 0?"modal":r,s=n.dialogClassName,a=n.backdropClassName,l=n.backdrop,c=l===void 0?!0:l,u=n.dialogStyle,d=n.animation,h=d===void 0?Ije:d,f=n.open,g=n.size,p=g===void 0?"sm":g,m=n.full,v=n.dialogAs,_=v===void 0?Soe:v,y=n.animationProps,b=n.animationTimeout,w=b===void 0?300:b,x=n.overflow,S=x===void 0?!0:x,k=n.drawer,T=k===void 0?!1:k,D=n.onClose,R=n.onEntered,N=n.onEntering,A=n.onExited,V=n.role,P=V===void 0?"dialog":V,U=n.id,F=n["aria-labelledby"],M=n["aria-describedby"],W=Pt(n,["className","children","classPrefix","dialogClassName","backdropClassName","backdrop","dialogStyle","animation","open","size","full","dialogAs","animationProps","animationTimeout","overflow","drawer","onClose","onEntered","onEntering","onExited","role","id","aria-labelledby","aria-describedby"]),j={in:f&&!h},$=bn(o),Q=$.merge,ee=$.prefix,ge=Q(t,ee(p,{full:m})),_e=O.exports.useRef(null),Ie=O.exports.useRef(),K=Mje(_e,{overflow:S,drawer:T,prefix:ee}),se=K[0],oe=K[1],Ne=K[2],pe=PR("dialog-",U),Me=O.exports.useMemo(function(){return{dialogId:pe,onModalClose:D,getBodyStyles:function(){return se},isDrawer:T}},[pe,D,se,T]),at=O.exports.useState(!1),_t=at[0],qe=at[1],kt=O.exports.useCallback(function(){c==="static"&&(qe(!0),!Ie.current&&_e.current&&(Ie.current=Ud(_e.current,Yze(),function(){qe(!1)})))},[c]),ve=O.exports.useCallback(function(te){var Se;A==null||A(te),Ne(),(Se=Ie.current)===null||Se===void 0||Se.off(),Ie.current=null},[Ne,A]),B=O.exports.useCallback(function(te){R==null||R(te),oe()},[oe,R]),G=O.exports.useCallback(function(te){N==null||N(te),oe(!0)},[oe,N]);return O.exports.useEffect(function(){var te;(te=Ie.current)===null||te===void 0||te.off()},[]),ne(OR.Provider,{value:Me,children:ne(Dje,st(Te({},W),{ref:e,backdrop:c,open:f,onClose:D,onBackdropClick:kt,className:ee(Eoe||(Eoe=Bs(["wrapper"]))),onEntered:B,onEntering:G,onExited:ve,backdropClassName:Q(ee(koe||(koe=Bs(["backdrop"]))),a,j),containerClassName:ee({open:f,"has-backdrop":c}),transition:h||void 0,animationProps:y,dialogTransitionTimeout:w,backdropTransitionTimeout:150,children:function(te,Se){var Ee=te.className,Ce=Pt(te,["className"]);return ne(_,st(Te(Te({role:P,id:pe,"aria-labelledby":F!=null?F:pe+"-title","aria-describedby":M},Ce),Vte(W,Object.keys(woe))),{ref:Io(_e,Se),classPrefix:o,className:Q(ge,Ee,ee({shake:_t})),dialogClassName:s,dialogStyle:u,children:i}))}}))})});Tp.Body=Rje,Tp.Header=Nje,Tp.Title=Aje,Tp.Footer=Pje,Tp.Dialog=Soe,Tp.displayName="Modal",Tp.propTypes=vt({},boe,{animation:X.any,animationTimeout:X.number,classPrefix:X.string,dialogClassName:X.string,size:X.oneOf(mte),dialogStyle:X.object,dialogAs:X.elementType,full:X.bool,overflow:X.bool,drawer:X.bool});var z1=Tp,Loe,Toe,Doe,Ioe,Roe,UB=xe.forwardRef(function(n,e){var t,i=n.as,r=i===void 0?"div":i,o=n.className,s=n.classPrefix,a=s===void 0?"message":s,l=n.children,c=n.closable,u=n.duration,d=u===void 0?2e3:u,h=n.full,f=n.header,g=n.type,p=g===void 0?"info":g,m=n.showIcon,v=n.onClose,_=Pt(n,["as","className","classPrefix","children","closable","duration","full","header","type","showIcon","onClose"]),y=O.exports.useState("show"),b=y[0],w=y[1],x=bn(a),S=x.withClassPrefix,k=x.merge,T=x.prefix,D=bje(),R=dje(v,d,d>0),N=R.clear,A=O.exports.useCallback(function(P){w("hiding"),v==null||v(P),N(),setTimeout(function(){D()&&w("hide")},1e3)},[N,D,v]);if(b==="hide")return null;var V=k(o,S(p,b,(t={full:h},t["has-title"]=f,t["has-icon"]=m,t)));return ne(r,st(Te({role:"alert"},_),{ref:e,className:V,children:dt("div",{className:T(Loe||(Loe=Bs(["container"]))),children:[c&&ne(Xre,{onClick:A}),m&&ne("div",{className:T(Toe||(Toe=Bs(["icon-wrapper"]))),children:f7e[p]}),dt("div",{className:T(Doe||(Doe=Bs(["content"]))),children:[f&&ne("div",{className:T(Ioe||(Ioe=Bs(["header"]))),children:f}),l&&ne("div",{className:T(Roe||(Roe=Bs(["body"]))),children:l})]})]})}))});UB.displayName="Message",UB.propTypes={type:X.oneOf(_Ae),className:X.string,onClose:X.func,closable:X.bool,title:X.node,description:X.node,showIcon:X.bool,full:X.bool,classPrefix:X.string};var Hje=UB,Noe=xe.forwardRef(function(n,e){var t=n.timeout,i=t===void 0?300:t,r=n.placement,o=r===void 0?"right":r,s=Pt(n,["timeout","placement"]),a=bn("anim"),l=a.prefix,c=l("slide-in",o),u=l("slide-out",o);return xe.createElement(j_,vt({},s,{ref:e,animation:!0,timeout:i,enteringClassName:c,enteredClassName:c,exitingClassName:u,exitedClassName:u}))});Noe.displayName="Slide";var Vje=Noe;function jB(n,e){var t,i=(t=n.displayName)!==null&&t!==void 0?t:n.name,r=xe.forwardRef(function(o,s){return O.exports.useEffect(function(){console.warn(e)},[]),ne(n,Te({ref:s},o))});return r.displayName="deprecated("+i+")",r}var Aoe=xe.forwardRef(function(n,e){return xe.createElement(z1.Body,vt({classPrefix:"drawer-body"},n,{ref:e}))}),Ooe=xe.forwardRef(function(n,e){return xe.createElement(z1.Header,vt({classPrefix:"drawer-header"},n,{ref:e}))}),Poe=xe.forwardRef(function(n,e){return xe.createElement(z1.Footer,vt({classPrefix:"drawer-actions"},n,{ref:e}))}),Moe=xe.forwardRef(function(n,e){return xe.createElement(z1.Footer,vt({classPrefix:"drawer-footer"},n,{ref:e}))}),Foe=xe.forwardRef(function(n,e){return xe.createElement(z1.Title,vt({classPrefix:"drawer-title"},n,{ref:e}))}),Dp=xe.forwardRef(function(n,e){var t=n.className,i=n.placement,r=i===void 0?"right":i,o=n.classPrefix,s=o===void 0?"drawer":o,a=n.animation,l=a===void 0?Vje:a,c=Pt(n,["className","placement","classPrefix","animation"]),u=bn(s),d=u.merge,h=u.prefix,f=d(t,h(r)),g={placement:r};return xe.createElement(z1,vt({},c,{ref:e,drawer:!0,classPrefix:s,className:f,animation:l,animationProps:g}))});Aoe.displayName="DrawerBody",Ooe.displayName="DrawerHeader",Poe.displayName="DrawerActions",Moe.displayName="DrawerFooter",Foe.displayName="DrawerTitle",Dp.Body=Aoe,Dp.Header=Ooe,Dp.Actions=Poe,Dp.Footer=jB(Moe,"<Drawer.Footer> has been deprecated, use <Drawer.Actions> instead."),Dp.Title=Foe,Dp.displayName="Drawer",Dp.propTypes={classPrefix:X.string,placement:X.oneOf(["top","right","bottom","left"]),children:X.node,className:X.string};var qx=Dp,qB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.className,o=n.width,s=n.height,a=s===void 0?200:s,l=n.style,c=n.active,u=n.classPrefix,d=u===void 0?"placeholder":u,h=Pt(n,["as","className","width","height","style","active","classPrefix"]),f=bn(d),g=f.merge,p=f.withClassPrefix,m=g(r,p("graph",{active:c})),v=vt({width:o||"100%",height:a},l);return xe.createElement(i,vt({},h,{ref:e,className:m,style:v}))});qB.displayName="PlaceholderGraph",qB.propTypes={className:X.string,style:X.object,classPrefix:X.string,width:X.oneOfType([X.number,X.string]),height:X.oneOfType([X.number,X.string]),active:X.bool};var zje=qB,KB=xe.forwardRef(function(n,e){for(var t=n.as,i=t===void 0?"div":t,r=n.className,o=n.classPrefix,s=o===void 0?"placeholder":o,a=n.rows,l=a===void 0?5:a,c=n.columns,u=c===void 0?5:c,d=n.rowHeight,h=d===void 0?10:d,f=n.rowMargin,g=f===void 0?20:f,p=n.active,m=Pt(n,["as","className","classPrefix","rows","columns","rowHeight","rowMargin","active"]),v=bn(s),_=v.merge,y=v.prefix,b=v.withClassPrefix,w=_(r,b("grid",{active:p})),x=[],S=Math.random()*30+30,k=S/2,T=0;T<u;T++){for(var D=[],R=0;R<l;R++){var N=Math.random()*50+10;T>0&&(N=R>0?k:S),D.push(xe.createElement("p",{key:R,style:{width:N+"%",height:h,marginTop:R>0?g:void 0}}))}x.push(xe.createElement("div",{key:T,className:Bu(y("grid-col"))},D))}return xe.createElement(i,vt({},m,{ref:e,className:w}),x)});KB.displayName="PlaceholderGrid",KB.propTypes={className:X.string,classPrefix:X.string,rows:X.number,columns:X.number,rowHeight:X.number,rowMargin:X.number,active:X.bool};var Uje=KB,GB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.className,o=n.rows,s=o===void 0?2:o,a=n.rowHeight,l=a===void 0?10:a,c=n.rowMargin,u=c===void 0?20:c,d=n.graph,h=n.active,f=n.classPrefix,g=f===void 0?"placeholder":f,p=Pt(n,["as","className","rows","rowHeight","rowMargin","graph","active","classPrefix"]),m=bn(g),v=m.merge,_=m.prefix,y=m.withClassPrefix,b=d===!0?"square":d,w=O.exports.useMemo(function(){for(var k=[],T=0;T<s;T++){var D={width:Math.random()*75+25+"%",height:l,marginTop:T>0?u:Number(u)/2};k.push(ne("p",{style:D},T))}return k},[l,u,s]),x=v(r,y("paragraph",{active:h})),S=_("paragraph-graph","paragraph-graph-"+b);return dt(i,st(Te({},p),{ref:e,className:x,children:[b&&ne("div",{className:S,children:ne("span",{className:_("paragraph-graph-inner")})}),ne("div",{className:_("paragraph-rows"),children:w})]}))});GB.displayName="PlaceholderParagraph",GB.propTypes={className:X.string,classPrefix:X.string,rows:X.number,rowHeight:X.number,rowMargin:X.number,graph:X.oneOfType([X.bool,X.oneOf(["circle","square","image"])]),active:X.bool};var Boe=GB,MR=Boe;MR.Paragraph=Boe,MR.Grid=Uje,MR.Graph=zje;var jje=MR,qje=function(){var e=O.exports.useState([]),t=e[0],i=e[1],r=O.exports.useCallback(function(l){return typeof l=="undefined"&&t.length?t[t.length-1].key:l},[t]),o=O.exports.useCallback(function(l){var c=g7e();return i([].concat(t,[{key:c,visible:!0,node:l}])),c},[t]),s=O.exports.useCallback(function(){i(t.map(function(l){return vt({},l,{visible:!1})})),setTimeout(function(){i([])},400)},[t]),a=O.exports.useCallback(function(l){i(t.map(function(c){return c.key===r(l)&&(c.visible=!1),c})),setTimeout(function(){i(t.filter(function(c){return c.visible}))},400)},[t,r]);return{messages:t,push:o,clear:s,remove:a}},Kx=xe.forwardRef(function(n,e){var t=O.exports.useRef(),i=n.as,r=i===void 0?"div":i,o=n.className,s=n.classPrefix,a=s===void 0?"toast-container":s,l=n.placement,c=l===void 0?"topCenter":l,u=Pt(n,["as","className","classPrefix","placement"]),d=bn(a),h=d.withClassPrefix,f=d.merge,g=d.rootPrefix,p=f(o,h(B1(c))),m=qje(),v=m.push,_=m.clear,y=m.remove,b=m.messages;O.exports.useImperativeHandle(e,function(){return{root:t.current,push:v,clear:_,remove:y}});var w=b.map(function(x){return ne(j_,{in:x.visible,exitedClassName:g("toast-fade-exited"),exitingClassName:g("toast-fade-exiting"),enteringClassName:g("toast-fade-entering"),enteredClassName:g("toast-fade-entered"),timeout:300,children:function(S,k){var T,D,R,N,A=S.className,V=Pt(S,["className"]);return xe.cloneElement(x.node,vt({},V,{ref:k,onClose:vr((T=x.node)===null||T===void 0||(D=T.props)===null||D===void 0?void 0:D.onClose,function(){return y(x.key)}),className:f(g("toast"),(R=x.node)===null||R===void 0||(N=R.props)===null||N===void 0?void 0:N.className,A)}))}},x.key)});return ne(r,st(Te({},u),{ref:t,className:p,children:w}))});Kx.getInstance=function(n){var e=n.container,t=Pt(n,["container"]),i=xe.createRef(),r=document.createElement("div"),o=typeof e=="function"?e():e,s=o||document.body;s.appendChild(r);function a(){fl.exports.unmountComponentAtNode(r),s.removeChild(r)}return fl.exports.render(ne(Kx,st(Te({},t),{ref:i})),r),[i,a]},Kx.displayName="ToastContainer",Kx.propTypes={className:X.string,classPrefix:X.string,placement:X.elementType,container:X.oneOfType([X.node,X.func])};var Kje=Kx,$oe="default",Gx=new Map;function Gje(n,e){var t=Kje.getInstance(e),i=t[0];return Gx.set(n||$oe,i),i}function Yje(n){return Gx.size==0?null:Gx.get(n||$oe)}var FR=function n(e){return n.push(e)};FR.push=function(n,e){e===void 0&&(e={});var t=Yje(e.placement);if(!t){var i;t=Gje((i=e.placement)!==null&&i!==void 0?i:"",e)}return t.current.push(n)},FR.remove=function(n){Gx.forEach(function(e){return e.current.remove(n)})},FR.clear=function(){Gx.forEach(function(n){return n.current.clear()})};var Zje=FR,Bi;(function(n){n[n.RegisterItem=0]="RegisterItem",n[n.UnregisterItem=1]="UnregisterItem",n[n.OpenMenu=2]="OpenMenu",n[n.CloseMenu=3]="CloseMenu",n[n.MoveFocus=4]="MoveFocus"})(Bi||(Bi={}));var br;(function(n){n[n.Next=0]="Next",n[n.Prev=1]="Prev",n[n.Last=2]="Last",n[n.First=3]="First",n[n.Specific=4]="Specific",n[n.None=5]="None"})(br||(br={}));var Woe=xe.createContext(null);Woe.displayName="MenuContext";var Yx=Woe,Xje={role:"menu",open:!1,items:[],activeItemIndex:null};function Qje(n,e){var t=n.items,i=n.activeItemIndex;switch(e.type){case Bi.RegisterItem:return vt({},n,{items:[].concat(t,[{element:e.element,props:e.props}])});case Bi.UnregisterItem:return vt({},n,{items:t.filter(function(p){return p.element.id!==e.id})});case Bi.OpenMenu:return vt({},n,{open:!0});case Bi.CloseMenu:return vt({},n,{open:!1});case Bi.MoveFocus:var r=i;switch(e.to){case br.Next:for(var o=i===null?0:i+1;o<t.length;o++){var s;if(!((s=t[o].props)!==null&&s!==void 0&&s.disabled)){r=o;break}}break;case br.Prev:for(var a=i===null?t.length-1:i-1;a>=0;a--){var l;if(!((l=t[a].props)!==null&&l!==void 0&&l.disabled)){r=a;break}}break;case br.First:for(var c=0;c<t.length;c++){var u;if(!((u=t[c].props)!==null&&u!==void 0&&u.disabled)){r=c;break}}break;case br.Last:for(var d=t.length-1;d>=0;d--){var h;if(!((h=t[d].props)!==null&&h!==void 0&&h.disabled)){r=d;break}}break;case br.Specific:for(var f=0;f<t.length;f++){var g;if(t[f].element.id===e.id&&!((g=t[f].props)!==null&&g!==void 0&&g.disabled)){r=f;break}}break;case br.None:r=null;break}return vt({},n,{activeItemIndex:r});default:return n}}function Hoe(n){var e=O.exports.useReducer(Qje,vt({},Xje,n)),t=e[0],i=e[1];return[t,i]}function Jje(n){var e=O.exports.useRef(null),t=O.exports.useCallback(function(){requestAnimationFrame(function(){if(document.activeElement!==n.current){var r;e.current=document.activeElement,(r=n.current)===null||r===void 0||r.focus()}})},[n]),i=O.exports.useCallback(function(r){requestAnimationFrame(function(){var o;(o=e.current)===null||o===void 0||o.focus(r)})},[]);return{grab:t,release:i}}function Voe(n){var e=n.enabled,t=e===void 0?!0:e,i=n.isOutside,r=n.handle,o=O.exports.useRef(i),s=O.exports.useRef(r);O.exports.useEffect(function(){o.current=i,s.current=r},[i,r]),O.exports.useEffect(function(){if(t){var a=function(c){o.current(c)&&s.current(c)};return window.addEventListener("mousedown",a),function(){window.removeEventListener("mousedown",a)}}},[t])}function eqe(n){return n.type==="focus"&&!n.currentTarget.contains(n.relatedTarget)}function zoe(n){return n.type==="blur"&&!n.currentTarget.contains(n.relatedTarget)}var tqe=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(function(n){return n+":not([tabindex='-1'])"}).join(",");function nqe(n){return n===document.body?!1:n.matches(tqe)}var iqe=["click"];function BR(n){var e,t=n.disabled,i=n.children,r=n.openMenuOn,o=r===void 0?iqe:r,s=n.menuButtonText,a=n.renderMenuButton,l=n.renderMenuPopup,c=n.onToggleMenu,u=O.exports.useRef(null),d=O.exports.useRef(null),h=O.exports.useContext(Yx),f=!!h,g=Hoe(),p=g[0],m=p.open,v=p.items,_=p.activeItemIndex,y=g[1],b=q_("Menu"),w=b.rtl,x=Pr(_)?null:(e=v[_])===null||e===void 0?void 0:e.element,S=Jje(d),k=S.grab,T=O.exports.useCallback(function(qe){y({type:Bi.OpenMenu}),qe.isTrusted||y({type:Bi.MoveFocus,to:br.First}),c==null||c(!0,qe),k()},[y,c,k]),D=O.exports.useCallback(function(qe,kt){if(kt===void 0&&(kt=!0),y({type:Bi.CloseMenu}),y({type:Bi.MoveFocus,to:br.None}),c==null||c(!1,qe),kt){var ve;(ve=u.current)===null||ve===void 0||ve.focus({preventScroll:!0})}},[y,c,u]),R=O.exports.useCallback(function(qe){m?D(qe):T(qe)},[m,T,D]);Voe({enabled:m,isOutside:function(kt){var ve,B;return!((ve=u.current)!==null&&ve!==void 0&&ve.contains(kt.target))&&!((B=d.current)!==null&&B!==void 0&&B.contains(kt.target))},handle:function(kt){return D(kt,!nqe(kt.target))}});var N=O.exports.useCallback(function(qe){switch(qe.key){case Ii.ENTER:case Ii.SPACE:qe.preventDefault(),qe.stopPropagation(),m?D(qe):(T(qe),y({type:Bi.MoveFocus,to:br.First}));break;case Ii.DOWN:qe.preventDefault(),qe.stopPropagation(),m||T(qe),y({type:Bi.MoveFocus,to:br.First});break}},[m,T,D,y]),A=O.exports.useCallback(function(qe){t||R(qe)},[t,R]),V=O.exports.useCallback(function(qe){qe.preventDefault(),!m&&(t||T(qe))},[m,t,T]),P=O.exports.useMemo(function(){var qe={onKeyDown:N};return o!=null&&o.includes("click")&&(qe.onClick=A),o!=null&&o.includes("contextmenu")&&(qe.onContextMenu=V),qe},[o,N,A,V]),U=PR("menubutton-"),F=PR("menu-"),M=O.exports.useMemo(function(){return{role:"button","aria-haspopup":"menu","aria-expanded":m||void 0,"aria-controls":F}},[m,F]),W=O.exports.useMemo(function(){return vt({id:U},M,P,{open:m})},[U,M,P,m]),j=O.exports.useMemo(function(){return a==null?void 0:a(W,u)},[a,W,u]),$=j!=null?j:ne("button",st(Te({ref:u},W),{children:s})),Q=O.exports.useCallback(function(qe){switch(qe.key){case Ii.UP:qe.preventDefault(),qe.stopPropagation(),y({type:Bi.MoveFocus,to:br.Prev});break;case Ii.DOWN:qe.preventDefault(),qe.stopPropagation(),y({type:Bi.MoveFocus,to:br.Next});break;case Ii.RIGHT:qe.preventDefault(),qe.stopPropagation(),w?f&&y({type:Bi.CloseMenu}):(x==null?void 0:x.getAttribute("aria-haspopup"))==="menu"&&x.click();break;case Ii.LEFT:qe.preventDefault(),qe.stopPropagation(),w?(x==null?void 0:x.getAttribute("aria-haspopup"))==="menu"&&x.click():f&&D(qe);break;case Ii.HOME:qe.preventDefault(),qe.stopPropagation(),y({type:Bi.MoveFocus,to:br.First});break;case Ii.END:qe.preventDefault(),qe.stopPropagation(),y({type:Bi.MoveFocus,to:br.Last});break;case Ii.ENTER:case Ii.SPACE:x&&(qe.preventDefault(),qe.stopPropagation(),x.click(),x.getAttribute("aria-haspopup")||D(qe));break;case Ii.ESC:D(qe);break}},[y,x,f,w,D]),ee=O.exports.useCallback(function(qe){var kt=qe.target;kt.getAttribute("role")==="menuitem"&&kt.getAttribute("aria-haspopup")!=="menu"&&kt.getAttribute("aria-disabled")!=="true"&&D(qe,!f)},[D,f]),ge={role:"menu","aria-labelledby":U,"aria-activedescendant":x==null?void 0:x.id},_e={onClick:ee,onKeyDown:Q},Ie=vt({id:F},ge,_e,{tabIndex:0}),K=l==null?void 0:l(vt({},Ie,{open:m}),d),se=K!=null?K:ne("ul",st(Te({ref:d},Ie),{hidden:!m,children:i})),oe=O.exports.useCallback(function(qe){t||T(qe)},[t,T]),Ne=O.exports.useCallback(function(qe){t||D(qe)},[t,D]),pe=O.exports.useRef(null),Me=O.exports.useCallback(function(qe){zoe(qe)&&D(qe,!1)},[D]),at={onBlur:Me};o!=null&&o.includes("mouseover")&&(at.onMouseEnter=oe,at.onMouseLeave=Ne);var _t=vt({},at,{children:dt(Qr,{children:[$,ne(Yx.Provider,{value:g,children:se})]}),open:m});return f&&(_t.role="none presentation"),i(_t,pe)}BR.displayName="Menu",BR.propTypes={children:X.func.isRequired};function U1(n){var e=n.children,t=n.selected,i=t===void 0?!1:t,r=n.disabled,o=r===void 0?!1:r,s=n.onActivate,a=O.exports.useRef(null),l=PR("menuitem-"),c=O.exports.useContext(Yx);if(!c)throw new Error("<MenuItem> must be rendered within a <Menu>");var u=c[0],d=c[1],h=!Pr(a.current)&&!Pr(u.activeItemIndex)&&u.items[u.activeItemIndex].element===a.current,f=O.exports.useCallback(function(_){o||s==null||s(_)},[o,s]),g=O.exports.useCallback(function(){!Pr(a.current)&&!h&&d({type:Bi.MoveFocus,to:br.Specific,id:a.current.id})},[d]),p=O.exports.useCallback(function(){!Pr(a.current)&&!h&&d({type:Bi.MoveFocus,to:br.Specific,id:a.current.id})},[h,d]),m=O.exports.useCallback(function(){d({type:Bi.MoveFocus,to:br.None})},[d]);O.exports.useEffect(function(){var _=a.current;return d({type:Bi.RegisterItem,element:_,props:{disabled:o}}),function(){d({type:Bi.UnregisterItem,id:_.id})}},[a,o,d]);var v={id:l,role:"menuitem","aria-checked":i||void 0,"aria-disabled":o,tabIndex:-1,onClick:f,selected:i,active:h};return(u==null?void 0:u.role)==="menu"&&(v.onMouseMove=p,v.onMouseLeave=m),(u==null?void 0:u.role)==="menubar"&&(v.onMouseDown=g),e(v,a)}U1.displayName="MenuItem",U1.propTypes={selected:X.bool,disabled:X.bool,children:X.func.isRequired,onActivate:X.func};var rqe=H1({name:"SidenavBody"}),oqe=rqe,sqe=H1({name:"SidenavHeader"}),aqe=sqe,YB=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.expanded,o=n.className,s=n.classPrefix,a=s===void 0?"sidenav-toggle":s,l=n.onToggle,c=Pt(n,["as","expanded","className","classPrefix","onToggle"]),u=bn(a),d=u.merge,h=u.withClassPrefix,f=d(o,h({collapsed:!r})),g=r?jx:Ux,p=function(v){l==null||l(!r,v)};return xe.createElement(i,vt({},c,{ref:e,className:f}),xe.createElement(FB,{appearance:"default",icon:xe.createElement(g,null),onClick:p}))});YB.displayName="SidenavToggle",YB.propTypes={classPrefix:X.string,className:X.string,expanded:X.bool,onToggle:X.func};var lqe=YB,$u=xe.createContext(null),cqe=[],Zx=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"nav":t,r=n.className,o=n.classPrefix,s=o===void 0?"sidenav":o,a=n.appearance,l=a===void 0?"default":a,c=n.expanded,u=c===void 0?!0:c,d=n.activeKey,h=d===void 0?null:d,f=n.defaultOpenKeys,g=f===void 0?cqe:f,p=n.openKeys,m=n.onSelect,v=n.onOpenChange,_=Pt(n,["as","className","classPrefix","appearance","expanded","activeKey","defaultOpenKeys","openKeys","onSelect","onOpenChange"]),y=moe(p,g),b=y[0],w=y[1],x=bn(s),S=x.prefix,k=x.merge,T=x.withClassPrefix,D=k(r,T(l)),R=O.exports.useCallback(function(A,V){var P=function(M){return Ep(M,A)},U=[].concat(b);U.some(P)?fUe(U,P):U.push(A),w(U),v==null||v(U,V)},[v,b,w]),N=O.exports.useMemo(function(){return{expanded:u,activeKey:h,sidenav:!0,openKeys:b!=null?b:[],onOpenChange:R,onSelect:m}},[h,u,R,m,b]);return ne($u.Provider,{value:N,children:ne(j_,{in:u,timeout:300,exitedClassName:S("collapse-out"),exitingClassName:S("collapse-out","collapsing"),enteredClassName:S("collapse-in"),enteringClassName:S("collapse-in","collapsing"),children:function(A,V){var P=A.className,U=Pt(A,["className"]);return ne(i,st(Te(Te({},_),U),{ref:Io(e,V),className:k(D,P)}))}})})});Zx.Header=aqe,Zx.Body=oqe,Zx.Toggle=lqe,Zx.displayName="Sidenav",Zx.propTypes={as:X.elementType,classPrefix:X.string,className:X.string,expanded:X.bool,appearance:X.oneOf(["default","inverse","subtle"]),defaultOpenKeys:X.array,openKeys:X.array,onOpenChange:X.func,activeKey:kp(X.any,"Use `activeKey` on <Nav> component instead"),onSelect:kp(X.func,"Use `onSelect` on <Nav> component instead")};var Uoe=xe.createContext(null);Uoe.displayName="DropdownContext";var Ip=Uoe;function joe(n){var e=n.vertical,t=e===void 0?!1:e,i=n.children,r=n.onActivateItem,o=Hoe({role:"menubar"}),s=o[0],a=s.items,l=s.activeItemIndex,c=o[1],u=O.exports.useRef(null),d=O.exports.useCallback(function(v){eqe(v)&&l===null&&c({type:Bi.MoveFocus,to:br.First})},[l,c]),h=O.exports.useCallback(function(v){zoe(v)&&c({type:Bi.MoveFocus,to:br.None})},[c]),f=q_("Menubar"),g=f.rtl,p=O.exports.useCallback(function(v){var _=Pr(l)?null:a[l].element;switch(!0){case(!t&&!g&&v.key===Ii.RIGHT):case(!t&&g&&v.key===Ii.LEFT):case(t&&v.key===Ii.DOWN):v.preventDefault(),v.stopPropagation(),c({type:Bi.MoveFocus,to:br.Next});break;case(!t&&!g&&v.key===Ii.LEFT):case(!t&&g&&v.key===Ii.RIGHT):case(t&&v.key===Ii.UP):v.preventDefault(),v.stopPropagation(),c({type:Bi.MoveFocus,to:br.Prev});break;case v.key===Ii.HOME:v.preventDefault(),v.stopPropagation(),c({type:Bi.MoveFocus,to:br.First});break;case v.key===Ii.END:v.preventDefault(),v.stopPropagation(),c({type:Bi.MoveFocus,to:br.Last});break;case(!t&&v.key===Ii.DOWN):case(t&&!g&&v.key===Ii.RIGHT):case(t&&g&&v.key===Ii.LEFT):(_==null?void 0:_.getAttribute("aria-haspopup"))==="menu"&&(v.preventDefault(),v.stopPropagation(),_.click());break;case v.key===Ii.ENTER:case v.key===Ii.SPACE:v.preventDefault(),v.stopPropagation(),_==null||_.click();break}},[g,a,l,c,t]),m=O.exports.useCallback(function(v){a.some(function(_){return _.element===v.target})&&(r==null||r(v))},[a,r]);return ne(Yx.Provider,{value:o,children:i({role:"menubar",tabIndex:0,onFocus:d,onBlur:h,onKeyDown:p,onClick:m,"aria-activedescendant":Pr(l)?void 0:a[l].element.id,"aria-orientation":t?"vertical":void 0},u)})}var uqe=IUe,dqe=aoe,hqe=sje,fqe=L1;function gqe(n){return function(e){e=fqe(e);var t=dqe(e)?hqe(e):void 0,i=t?t[0]:e.charAt(0),r=t?uqe(t,1).join(""):e.slice(1);return i[n]()+r}}var pqe=gqe,mqe=pqe,_qe=mqe("toUpperCase"),vqe=_qe,bqe=L1,yqe=vqe;function Cqe(n){return yqe(bqe(n).toLowerCase())}var qoe=Cqe,ZB;(function(n){n.HEIGHT="height",n.WIDTH="width"})(ZB||(ZB={}));var wqe=function(e){return Ax(e,"offsetHeight")},Sqe={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function xqe(n,e){var t=Ax(e,"offset"+qoe(n)),i=Sqe[n];return t+parseInt(Lf(e,i[0]),10)+parseInt(Lf(e,i[1]),10)}function Eqe(n,e){var t=Ax(n,"scroll"+qoe(e));return t+"px"}var XB=xe.forwardRef(function(n,e){var t=n.className,i=n.timeout,r=i===void 0?300:i,o=n.dimension,s=o===void 0?ZB.HEIGHT:o,a=n.exitedClassName,l=n.exitingClassName,c=n.enteredClassName,u=n.enteringClassName,d=n.getDimensionValue,h=d===void 0?xqe:d,f=n.onEnter,g=n.onEntering,p=n.onEntered,m=n.onExit,v=n.onExiting,_=Pt(n,["className","timeout","dimension","exitedClassName","exitingClassName","enteredClassName","enteringClassName","getDimensionValue","onEnter","onEntering","onEntered","onExit","onExiting"]),y=bn("anim"),b=y.prefix,w=y.merge,x=typeof s=="function"?s():s,S=O.exports.useCallback(function(N){H_(N,x,0)},[x]),k=O.exports.useCallback(function(N){H_(N,x,Eqe(N,x))},[x]),T=O.exports.useCallback(function(N){H_(N,x,"auto")},[x]),D=O.exports.useCallback(function(N){var A=h?h(x,N):0;H_(N,x,A+"px")},[x,h]),R=O.exports.useCallback(function(N){wqe(N),H_(N,x,0)},[x]);return ne(j_,st(Te({},_),{ref:e,timeout:r,className:w(t,b({"collapse-horizontal":x==="width"})),exitedClassName:a||b("collapse"),exitingClassName:l||b("collapsing"),enteredClassName:c||b("collapse","in"),enteringClassName:u||b("collapsing"),onEnter:vr(S,f),onEntering:vr(k,g),onEntered:vr(T,p),onExit:vr(D,m),onExiting:vr(R,v)}))});XB.displayName="Collapse",XB.propTypes=vt({},_B,{dimension:X.any,getDimensionValue:X.func});var kqe=XB,Koe,Goe,Yoe,Zoe,QB=xe.forwardRef(function(n,e){var t=n.className,i=n.classPrefix,r=i===void 0?"dropdown-menu":i,o=n.open,s=Pt(n,["className","classPrefix","open"]),a=bn(r),l=a.withClassPrefix,c=a.merge,u=a.prefix,d=c(t,l());return xe.createElement(kqe,{in:o,exitedClassName:u(Koe||(Koe=Bs(["collapse-out"]))),exitingClassName:u(Goe||(Goe=Bs(["collapsing"]))),enteredClassName:u(Yoe||(Yoe=Bs(["collapse-in"]))),enteringClassName:u(Zoe||(Zoe=Bs(["collapsing"])))},function(h,f){var g=h.className,p=Pt(h,["className"]);return xe.createElement("ul",vt({ref:Io(e,f),role:"group",className:Bu(d,g)},s,p))})});QB.displayName="Sidenav.Dropdown.Collapse",QB.propTypes={className:X.string,children:X.node,classPrefix:X.string,open:X.bool};var Xoe=QB,Rp;(function(n){n[n.Show=0]="Show",n[n.Hide=1]="Hide"})(Rp||(Rp={}));var Qoe=xe.createContext(null);Qoe.displayName="Disclosure.Context";var JB=Qoe;function Joe(n){var e=O.exports.useContext(JB);if(!e)throw new Error("<"+n+"> component must be rendered within a <Disclosure>");return e}function e9(n){var e=n.children,t=O.exports.useRef(null),i=Joe(e9.displayName),r=i[0].open,o=i[1],s=i[2].onToggle,a=O.exports.useCallback(function(u){r?(o({type:Rp.Hide}),s==null||s(!1,u)):(o({type:Rp.Show}),s==null||s(!0,u))},[r,o,s]),l=O.exports.useCallback(function(u){a(u)},[a]),c=O.exports.useCallback(function(u){switch(u.key){case Ii.ENTER:case Ii.SPACE:u.preventDefault(),u.stopPropagation(),a(u);break}},[a]);return e({role:"button","aria-expanded":r,onClick:l,onKeyDown:c,open:r},t)}e9.displayName="Disclosure.Button";function t9(n){var e=n.children,t=O.exports.useRef(null),i=Joe(t9.displayName),r=i[0].open;return e({open:r},t)}t9.displayName="Disclosure.Content";var Lqe={open:!1};function Tqe(n,e){switch(e.type){case Rp.Show:return vt({},n,{open:!0});case Rp.Hide:return vt({},n,{open:!1})}return n}function Wu(n){var e=n.children,t=n.open,i=n.defaultOpen,r=i===void 0?!1:i,o=n.hideOnClickOutside,s=o===void 0?!1:o,a=n.onToggle,l=O.exports.useReducer(Tqe,vt({},Lqe,{open:r})),c=l[0].open,u=l[1],d=O.exports.useRef(null),h=t!=null?t:c;Voe({enabled:s,isOutside:function(p){var m;return!((m=d.current)!==null&&m!==void 0&&m.contains(p.target))},handle:function(){return u({type:Rp.Hide})}});var f=O.exports.useMemo(function(){return[{open:h},u,{onToggle:a}]},[h,u,a]);return ne(JB.Provider,{value:f,children:e({open:h},d)})}Wu.Button=e9,Wu.Content=t9;var ese,tse,n9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"li":t,r=n.children,o=n.disabled,s=n.className,a=n.style,l=n.classPrefix,c=l===void 0?"dropdown-item":l,u=n.tabIndex,d=n.icon,h=n.title,f=n.eventKey,g=n.onClick,p=n.onSelect,m=Pt(n,["as","children","disabled","className","style","classPrefix","tabIndex","icon","title","eventKey","onClick","onSelect"]),v=q_("DropdownMenu"),_=v.rtl,y=bn(c),b=y.merge,w=y.withClassPrefix,x=y.prefix,S=O.exports.useContext($u);if(!S)throw new Error("<SidenavDropdownMenu> component is not supposed to be used standalone. Use <Dropdown.Item> inside <Sidenav> instead.");var k=S.openKeys,T=k===void 0?[]:k,D=S.onOpenChange,R=S.onSelect,N=O.exports.useCallback(function(P){o||(p==null||p(f,P),R==null||R(f,P))},[o,p,R,f]),A={onClick:vr(N,g)},V=_?Ux:jx;return ne(Wu,{open:!Pr(f)&&T.includes(f),onToggle:function(U,F){return D==null?void 0:D(f,F)},children:function(P){var U=P.open,F=b(s,x("submenu"),x("pull-"+(_?"left":"right")),x(U?"expand":"collapse"),w({"with-icon":d,disabled:o}));return dt(i,st(Te(st(Te({ref:e},m),{tabIndex:o?-1:u,style:a,className:F}),A),{children:[ne(Wu.Button,{children:function(M){return dt("button",st(Te({className:x(ese||(ese=Bs(["toggle"]))),onClick:N},Zc(M,["open"])),{children:[d&&xe.cloneElement(d,{className:x("menu-icon")}),h,ne(V,{className:x(tse||(tse=Bs(["toggle-icon"])))}),ne(G_,{})]}))}}),ne(Wu.Content,{children:function(M){var W=M.open;return ne(Xoe,{open:W,children:r})}})]}))}})});n9.displayName="Sidenav.Dropdown.Menu",n9.propTypes={as:X.elementType,expanded:X.bool,disabled:X.bool,onSelect:X.func,onClick:X.func,icon:X.node,eventKey:X.any,className:X.string,style:X.object,children:X.node,classPrefix:X.string,tabIndex:X.number,title:X.node,onMouseOver:X.func,onMouseOut:X.func};var Dqe=n9,nse,ise,i9=xe.forwardRef(function(n,e){var t=n.onToggle,i=n.eventKey,r=n.title,o=n.activeKey,s=n.onSelect,a=n.classPrefix,l=a===void 0?"dropdown-menu":a,c=n.children,u=Pt(n,["onToggle","eventKey","title","activeKey","onSelect","classPrefix","children"]),d=O.exports.useContext(Ip),h=O.exports.useContext($u),f=q_("DropdownMenu"),g=f.rtl,p=O.exports.useCallback(function(M,W){t==null||t(i,W)},[i,t]),m=bn(l),v=m.merge,_=m.prefix,y=m.withClassPrefix,b=bn("dropdown-menu"),w=b.withClassPrefix,x=b.merge,S=bn("dropdown-item"),k=S.merge,T=S.withClassPrefix,D=S.prefix;if(!d){var R=v(n.className,y());return ne(Ip.Provider,{value:{activeKey:o,onSelect:s},children:ne(joe,{vertical:!0,onActivateItem:function(W){var j=W.target.dataset,$=j.eventKey,Q=j.eventKeyType,ee=Q==="number"?Number($):$;s==null||s(ee,W)},children:function(M,W){return ne("ul",st(Te(Te({ref:Io(W,e),className:R},M),u),{children:c}))}})})}if(h!=null&&h.expanded)return ne(Dqe,Te({},Zc(n,"classPrefix")));var N=Zc(u,["trigger"]),A=N.icon,V=N.className,P=N.disabled,U=Pt(N,["icon","className","disabled"]),F=g?Ux:jx;return ne(BR,{openMenuOn:["mouseover","click"],renderMenuButton:function(W,j){var $=W.open,Q=Pt(W,["open"]);return ne(U1,{disabled:P,children:function(ee,ge){var _e=ee.selected,Ie=ee.active,K=Pt(ee,["selected","active"]),se=k(V,D("pull-"+(g?"left":"right")),D(nse||(nse=Bs(["toggle"]))),T({"with-icon":A,open:$,active:_e,disabled:P,focus:Ie}));return dt("div",st(Te(Te({ref:Io(j,ge),className:se,"data-event-key":i,"data-event-key-type":typeof i},K),Zc(Q,["role"])),{children:[A&&xe.cloneElement(A,{className:_("menu-icon")}),r,ne(F,{className:_(ise||(ise=Bs(["toggle-icon"])))})]}))}})},renderMenuPopup:function(W,j){var $=W.open,Q=Pt(W,["open"]),ee=x(V,w());return ne("ul",st(Te(Te({ref:j,className:ee,hidden:!$},Q),U),{children:c}))},onToggleMenu:p,children:function(M,W){var j=M.open,$=Pt(M,["open"]),Q=k(V,T({disabled:P,open:j,submenu:!0}));return ne("li",Te({ref:Io(e,W),className:Q},$))}})});i9.displayName="Dropdown.Menu",i9.propTypes={active:X.bool,activeKey:X.any,className:X.string,children:X.node,icon:X.any,classPrefix:X.string,pullLeft:X.bool,title:X.node,open:X.bool,trigger:X.oneOf(["click","hover"]),eventKey:X.any,expanded:X.bool,collapsible:X.bool,onSelect:X.func,onToggle:X.func};var Iqe=i9,Rqe=H1({name:"NavbarBody"}),Nqe=jB(Rqe,"<Navbar.Body> has been deprecated, you should <Nav> as direct child of <Navbar>"),Aqe=H1({name:"NavbarHeader"}),Oqe=jB(Aqe,"<Navbar.Header> has been deprecated, use <Navbar.Brand> instead."),Pqe=H1({name:"NavbarBrand",componentAs:"a",componentClassPrefix:"navbar-brand"}),Mqe=Pqe,Xx=xe.createContext(!1),$R=xe.forwardRef(function(n,e){var t=n.className,i=n.as,r=i===void 0?"nav":i,o=n.classPrefix,s=o===void 0?"navbar":o,a=n.appearance,l=a===void 0?"default":a,c=Pt(n,["className","as","classPrefix","appearance"]),u=bn(s),d=u.withClassPrefix,h=u.merge,f=h(t,d(l));return xe.createElement(Xx.Provider,{value:!0},xe.createElement(r,vt({},c,{ref:e,className:f})))});$R.Header=Oqe,$R.Body=Nqe,$R.Brand=Mqe,$R.displayName="Navbar";var Fqe=xe.createContext({withinNav:!1,activeKey:null,onSelect:Zne}),qd=Fqe;function rse(n){return O.exports.useCallback(function(e,t){return n==="li"?t?ne("li",{role:"none presentation",children:ne(t,Te({},e))}):ne(n,Te({},e)):ne("li",{role:"none presentation",children:ne(n,Te({},e))})},[n])}var r9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"li":t,r=n.active,o=n.children,s=n.disabled,a=n.divider,l=n.panel,c=n.className,u=n.style,d=n.classPrefix,h=d===void 0?"dropdown-item":d,f=n.icon,g=n.eventKey,p=n.onClick,m=n.onSelect,v=Pt(n,["as","active","children","disabled","divider","panel","className","style","classPrefix","icon","eventKey","onClick","onSelect"]),_=O.exports.useContext($u),y=O.exports.useContext(Ip);if(!_||!y)throw new Error("<SidenavDropdownItem> component is not supposed to be used standalone. Use <Dropdown.Item> within <Sidenav> instead.");var b=_.activeKey,w=_.onSelect,x=O.exports.useContext(qd),S=bn(h),k=S.merge,T=S.withClassPrefix,D=S.prefix,R=r!=null?r:!Pr(g)&&(Ep(g,b)||Ep(x==null?void 0:x.activeKey,g)),N=k(c,T({"with-icon":f,active:R,disabled:s})),A=O.exports.useCallback(function(U){var F;s||(m==null||m(g,U),(F=y.onSelect)===null||F===void 0||F.call(y,g,U),w==null||w(g,U))},[s,m,w,g,y]),V={onClick:vr(A,p)},P=rse(i);return a?P(vt({ref:e,role:"separator",style:u,className:k(D("divider"),c)},v)):l?P(vt({ref:e,role:"none presentation",style:u,className:k(D("panel"),c)},v,{children:o})):P(vt({ref:e},v,{style:u,className:N,"aria-current":R||void 0},V,{children:dt(Qr,{children:[f&&xe.cloneElement(f,{className:D("menu-icon")}),o,ne(G_,{})]})}),K_)});r9.displayName="Sidenav.Dropdown.Item",r9.propTypes={as:X.elementType,expanded:X.bool,active:X.bool,divider:X.bool,panel:X.bool,disabled:X.bool,submenu:X.element,onSelect:X.func,onClick:X.func,icon:X.node,eventKey:X.any,className:X.string,style:X.object,children:X.node,classPrefix:X.string,tabIndex:X.number,title:X.node,onMouseOver:X.func,onMouseOut:X.func};var Bqe=r9;function ose(n){var e=O.exports.useRef();return e.current||(e.current=xoe("internal://"+n)),O.exports.useDebugValue(e.current),e.current}var sse={items:[]},j1;(function(n){n[n.RegisterItem=0]="RegisterItem",n[n.UnregisterItem=1]="UnregisterItem",n[n.UpdateItem=2]="UpdateItem"})(j1||(j1={}));function $qe(n,e){switch(n===void 0&&(n=sse),e.type){case j1.RegisterItem:return n.items.find(function(t){return t.id===e.payload.id})?vt({},n,{items:n.items.map(function(t){return t.id===e.payload.id?vt({},t,{props:vt({},t.props,{selected:e.payload.props.selected})}):t})}):vt({},n,{items:[].concat(n.items,[{id:e.payload.id,props:e.payload.props}])});case j1.UnregisterItem:return vt({},n,{items:n.items.filter(function(t){return t.id!==e.payload.id})});default:return n}}var o9=xe.forwardRef(function(n,e){var t=n.classPrefix,i=t===void 0?"dropdown-item":t,r=n.className,o=n.active,s=n.eventKey,a=n.onSelect,l=n.icon,c=n.as,u=c===void 0?"li":c,d=n.divider,h=n.panel,f=n.children,g=n.disabled,p=Pt(n,["classPrefix","className","active","eventKey","onSelect","icon","as","divider","panel","children","disabled"]),m=ose("DropdownItem"),v=O.exports.useContext(qd),_=O.exports.useContext(Ip),y=bn(i),b=y.merge,w=y.withClassPrefix,x=y.prefix,S=O.exports.useCallback(function(W){var j;a==null||a(s,W),_==null||(j=_.onSelect)===null||j===void 0||j.call(_,s,W)},[a,s,_]),k=O.exports.useContext($u),T=O.exports.useContext(Xx),D=O.exports.useContext(JB),R=D!=null?D:[],N=R[1],A=O.exports.useCallback(function(W){N==null||N({type:Rp.Hide}),S==null||S(W)},[N,S]),V=o||!Pr(s)&&(Ep(_==null?void 0:_.activeKey,s)||Ep(v==null?void 0:v.activeKey,s)),P=_==null?void 0:_.dispatch;O.exports.useEffect(function(){if(P)return P({type:j1.RegisterItem,payload:{id:m,props:{selected:V}}}),function(){P({type:j1.UnregisterItem,payload:{id:m}})}},[m,V,P]);var U=rse(u);if(k!=null&&k.expanded)return ne(Bqe,Te({ref:e},n));if(d)return U(vt({ref:e,role:"separator",className:b(x("divider"),r)},p));if(h)return U(vt({ref:e,className:b(x("panel"),r),children:f},p));if(T){var F=b(r,w({"with-icon":l,disabled:g,divider:d,panel:h,active:V})),M={"data-event-key":s};return!Pr(s)&&typeof s!="string"&&(M["data-event-key-type"]=typeof s),ne("li",{children:dt(K_,st(Te(Te({ref:e,className:F,"aria-current":V||void 0},M),p),{as:u,onClick:vr(A,p.onClick),children:[l&&xe.cloneElement(l,{className:x("menu-icon")}),f]}))})}return ne(U1,{selected:V,disabled:g,onActivate:S,children:function(W,j){var $=W.selected,Q=W.active,ee=Pt(W,["selected","active"]),ge=b(r,w({"with-icon":l,active:$,disabled:g,focus:Q,divider:d,panel:h})),_e={"data-event-key":s};return!Pr(s)&&typeof s!="string"&&(_e["data-event-key-type"]=typeof s),U(vt({ref:Io(e,j),className:ge},ee,_e,p,{children:dt(Qr,{children:[l&&xe.cloneElement(l,{className:x("menu-icon")}),f]})}))}})});o9.displayName="Dropdown.Item",o9.propTypes={as:X.elementType,divider:X.bool,panel:X.bool,trigger:X.oneOfType([X.array,X.oneOf(["click","hover"])]),open:kp(X.bool),active:X.bool,disabled:X.bool,pullLeft:kp(X.bool),submenu:X.element,onSelect:X.func,onClick:X.func,icon:X.node,eventKey:X.any,className:X.string,style:X.object,children:X.node,classPrefix:X.string,tabIndex:X.number};var Wqe=o9,s9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?PB:t,r=n.className,o=n.classPrefix,s=o===void 0?"dropdown-toggle":o,a=n.renderToggle,l=n.children,c=n.icon,u=n.noCaret,d=n.placement,h=d===void 0?"bottomStart":d,f=Pt(n,["as","className","classPrefix","renderToggle","children","icon","noCaret","placement"]),g=O.exports.useContext($u),p=O.exports.useContext(qd),m=p.withinNav,v=bn(s),_=v.prefix,y=v.withClassPrefix,b=v.merge,w=b(r,y({"no-caret":u})),x=!!g,S=kUe(x?"bottomStart":h),k=dt(i,st(Te({appearance:m?"subtle":void 0},f),{ref:e,className:w,children:[c&&xe.cloneElement(c,{className:_("icon")}),l,u?null:ne(S,{className:_("caret")})]}));return a?a(f,e):k});s9.displayName="DropdownToggle",s9.propTypes={className:X.string,children:X.node,icon:X.node,classPrefix:X.string,noCaret:X.bool,as:X.elementType,renderToggle:X.func,placement:X.oneOf(["bottomStart","bottomEnd","topStart","topEnd","leftStart","rightStart","leftEnd","rightEnd"])};var WR=s9,a9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.title,o=n.children,s=n.className,a=n.menuStyle,l=n.disabled;n.renderTitle;var c=n.renderToggle,u=n.classPrefix,d=u===void 0?"dropdown":u,h=n.placement,f=h===void 0?"bottomStart":h,g=n.toggleClassName,p=n.icon,m=n.eventKey,v=n.toggleAs,_=n.noCaret,y=n.style,b=n.onOpen,w=n.onClose,x=n.open,S=n.onToggle,k=Pt(n,["as","title","children","className","menuStyle","disabled","renderTitle","renderToggle","classPrefix","placement","toggleClassName","icon","eventKey","toggleAs","noCaret","style","onOpen","onClose","open","onToggle"]),T=O.exports.useContext($u),D=O.exports.useContext(Ip),R=bn(d),N=R.merge,A=R.withClassPrefix,V=ose("SidenavDropdown"),P=m!=null?m:V;if(!T||!D)throw new Error("<SidenavDropdown> component is not supposed to be used standalone. Use <Dropdown> inside <Sidenav> instead.");var U=T.openKeys,F=U===void 0?[]:U,M=T.onOpenChange,W=D.hasSelectedItem,j=O.exports.useCallback(function(Q,ee){Q?w==null||w():b==null||b(),S==null||S(Q),M==null||M(P,ee)},[w,b,S,P,M]),$=x!=null?x:F.includes(P);return ne(Wu,{open:$,onToggle:j,children:function(Q,ee){var ge,_e=Q.open,Ie=N(s,A((ge={},ge["placement-"+B1(AR(f))]=f,ge[_e?"expand":"collapse"]=!0,ge.disabled=l,ge["selected-within"]=W,ge["no-caret"]=_,ge)));return dt(i,st(Te({ref:Io(e,ee),style:y,className:Ie},k),{"data-event-key":m,children:[ne(Wu.Button,{children:function(K,se){return ne(WR,st(Te({ref:se,as:v,noCaret:_,className:g,renderToggle:c,icon:p,placement:f},Zc(K,["open"])),{children:r}))}}),ne(Wu.Content,{children:function(K){var se=K.open;return ne(Xoe,{open:se,style:a,children:o})}})]}))}})});a9.displayName="Sidenav.Dropdown",a9.propTypes={activeKey:X.any,classPrefix:X.string,placement:X.oneOf(f6),title:X.node,disabled:X.bool,icon:X.node,menuStyle:X.object,className:X.string,toggleClassName:X.string,children:X.node,tabIndex:X.number,open:kp(X.bool),eventKey:X.any,as:X.elementType,toggleAs:X.elementType,noCaret:X.bool,style:X.object,onClose:X.func,onOpen:X.func,onToggle:X.func,onMouseEnter:X.func,onMouseLeave:X.func,onContextMenu:X.func,onClick:X.func,renderTitle:kp(X.func),renderToggle:X.func};var Hqe=a9,Qx=xe.forwardRef(function(n,e){var t=n.activeKey,i=n.onSelect,r=Pt(n,["activeKey","onSelect"]),o=r.as,s=o===void 0?"div":o,a=r.title,l=r.onClose,c=r.onOpen,u=r.onToggle,d=r.eventKey,h=r.trigger,f=h===void 0?"click":h,g=r.placement,p=g===void 0?"bottomStart":g,m=r.toggleAs,v=r.toggleClassName,_=r.classPrefix,y=_===void 0?"dropdown":_,b=r.className,w=r.disabled,x=r.children,S=r.menuStyle,k=r.style,T=Pt(r,["as","title","onClose","onOpen","onToggle","eventKey","trigger","placement","toggleAs","toggleClassName","classPrefix","className","disabled","children","menuStyle","style"]),D=O.exports.useContext(qd),R=D.onSelect,N=O.exports.useCallback(function(at,_t){i==null||i(at,_t),R==null||R(at,_t)},[i,R]),A=bn(y),V=A.merge,P=A.withClassPrefix,U=A.prefix,F=bn("dropdown-menu"),M=F.withClassPrefix,W=F.merge,j=bn("nav-item"),$=j.withClassPrefix,Q=j.merge,ee=O.exports.useMemo(function(){if(!!f){var at={hover:"mouseover",click:"click",contextMenu:"contextmenu"};return Array.isArray(f)?f.map(function(_t){return at[_t]}):[at[f]]}},[f]),ge=O.exports.useContext(Yx),_e=O.exports.useContext($u),Ie=O.exports.useContext(Xx),K=O.exports.useReducer($qe,sse),se=K[0].items,oe=K[1],Ne=O.exports.useMemo(function(){return se.some(function(at){return at.props.selected})},[se]),pe=O.exports.useMemo(function(){return{activeKey:t,onSelect:N,hasSelectedItem:Ne,dispatch:oe}},[t,N,Ne,oe]);if(_e!=null&&_e.expanded)return ne(Ip.Provider,{value:pe,children:ne(Hqe,Te({ref:e},r))});if(Ie)return ne(Ip.Provider,{value:pe,children:ne(Wu,{hideOnClickOutside:!0,children:function(at,_t){var qe,kt=at.open,ve=V(b,P((qe={},qe["placement-"+B1(AR(p))]=!!p,qe.disabled=w,qe.open=kt,qe)));return dt(s,{ref:Io(e,_t),className:ve,style:k,children:[ne(Wu.Button,{children:function(B,G){return ne(WR,st(Te(Te({ref:G,as:m,className:v,placement:p,disabled:w},Zc(B,["open"])),T),{children:a}))}}),ne(Wu.Content,{children:function(B,G){var te=B.open,Se=W(b,M());return ne("ul",{ref:G,className:Se,style:S,hidden:!te,children:x})}})]})}})});var Me=function(_t,qe){return ne(WR,st(Te(Te({ref:qe,as:m,className:v,placement:p,disabled:w},Zc(_t,["open"])),Zc(T,["data-testid"])),{children:a}))};return ge&&(Me=function(_t,qe){return ne(U1,{disabled:w,children:function(kt,ve){var B=kt.active,G=Pt(kt,["active"]);return ne(WR,st(Te(Te(Te({ref:Io(qe,ve),as:m,className:Q(v,$({focus:B}))},_t),Zc(G,["onClick"])),Zc(T,"data-testid")),{children:a}))}})}),ne(Ip.Provider,{value:pe,children:ne(BR,{menuButtonText:a,renderMenuButton:Me,openMenuOn:ee,renderMenuPopup:function(_t,qe){var kt=_t.open,ve=Pt(_t,["open"]),B=W(b,M({})),G=!!_e;return dt("ul",st(Te({ref:qe,className:B,style:S,hidden:!kt},ve),{children:[G&&ne("div",{className:U("header"),children:a}),x]}))},onToggleMenu:function(_t,qe){u==null||u(_t),_e==null||_e.onOpenChange(d,qe),_t?c==null||c():l==null||l()},children:function(at,_t){var qe,kt=at.open,ve=Pt(at,["open"]),B=V(b,P((qe={},qe["placement-"+B1(AR(p))]=!!p,qe.disabled=w,qe.open=kt,qe.submenu=!!ge,qe["selected-within"]=Ne,qe)));return ne(s,st(Te(Te({ref:Io(e,_t),className:B},ve),Vte(T,["data-testid"])),{style:k}))}})})});Qx.Item=Wqe,Qx.Menu=Iqe,Qx.displayName="Dropdown",Qx.propTypes={activeKey:X.any,classPrefix:X.string,trigger:X.oneOfType([X.array,X.oneOf(["click","hover","contextMenu"])]),placement:X.oneOf(f6),title:X.node,disabled:X.bool,icon:X.node,menuStyle:X.object,className:X.string,toggleClassName:X.string,children:X.node,open:kp(X.bool),eventKey:X.any,as:X.elementType,toggleAs:X.elementType,noCaret:X.bool,style:X.object,onClose:X.func,onOpen:X.func,onToggle:X.func,onSelect:X.func,onMouseEnter:X.func,onMouseLeave:X.func,onContextMenu:X.func,onClick:X.func,renderToggle:X.func};var Vqe=Qx,l9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?K_:t,r=n.active,o=n.children,s=n.className,a=n.disabled,l=n.classPrefix,c=l===void 0?"sidenav-item":l,u=n.icon,d=n.eventKey,h=n.style,f=n.onClick,g=n.onSelect,p=n.divider,m=n.panel,v=Pt(n,["as","active","children","className","disabled","classPrefix","icon","eventKey","style","onClick","onSelect","divider","panel"]),_=O.exports.useContext($u);if(!_)throw new Error("<SidenavItem> component is not supposed to be used standalone. Use <Nav.Item> inside <Sidenav> instead.");var y=O.exports.useContext(qd),b=y.activeKey,w=y.onSelect,x=bn(c),S=x.merge,k=x.withClassPrefix,T=x.prefix,D=r!=null?r:!Pr(d)&&Ep(b,d),R=O.exports.useCallback(function(N){a||(g==null||g(d,N),w==null||w(d,N),f==null||f(N))},[a,g,w,d,f]);return _.expanded?p?ne("li",Te({ref:e,role:"separator",style:h,className:S(s,T("divider"))},v)):m?ne("li",st(Te({ref:e,role:"none presentation",style:h,className:S(s,T("panel"))},v),{children:o})):dt(i,st(Te({ref:e,className:S(s,k({active:D,disabled:a})),onClick:R,style:h,"aria-selected":D||void 0,"data-event-key":d},v),{children:[u,o,ne(G_,{})]})):ne(U1,{selected:D,disabled:a,onActivate:R,children:function(N,A){var V=N.selected,P=N.active,U=Pt(N,["selected","active"]),F=S(s,k({focus:P,active:V,disabled:a}));return uje({children:function(W,j){return dt(i,st(Te(Te(Te({ref:Io(Io(e,A),j),disabled:i===K_?a:void 0,className:F,"data-event-key":d},Zc(v,["divider","panel"])),W),U),{children:[u,o,ne(G_,{})]}))},message:o,placement:"right"})}})});l9.displayName="Sidenav.Item",l9.propTypes={classPrefix:X.string,disabled:X.bool,icon:X.node,className:X.string,children:X.node,eventKey:X.any,as:X.elementType,style:X.object,onSelect:X.func,onMouseEnter:X.func,onMouseLeave:X.func,onContextMenu:X.func,onClick:X.func};var zqe=l9,c9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?K_:t,r=n.active,o=n.disabled,s=n.eventKey,a=n.className,l=n.classPrefix,c=l===void 0?"navbar-item":l,u=n.style,d=n.children,h=n.icon,f=n.onClick,g=n.onSelect,p=Pt(n,["as","active","disabled","eventKey","className","classPrefix","style","children","icon","onClick","onSelect"]),m=O.exports.useContext(qd),v=m.activeKey,_=m.onSelect,y=r!=null?r:!Pr(s)&&Ep(s,v),b=O.exports.useCallback(function(D){g==null||g(s,D),_==null||_(s,D)},[s,g,_]),w=bn(c),x=w.withClassPrefix,S=w.merge,k=S(a,x({active:y,disabled:o})),T=O.exports.useCallback(function(D){o||(b(D),f==null||f(D))},[o,b,f]);return dt(i,st(Te({ref:e,"aria-selected":y||void 0},p),{className:k,onClick:T,style:u,children:[h,d,ne(G_,{})]}))});c9.displayName="Navbar.Item",c9.propTypes={as:X.elementType,active:X.bool,disabled:X.bool,className:X.string,classPrefix:X.string,onClick:X.func,style:X.object,icon:X.node,onSelect:X.func,children:X.node,eventKey:X.any};var Uqe=c9,u9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?K_:t,r=n.active,o=n.disabled,s=n.eventKey,a=n.className,l=n.classPrefix,c=l===void 0?"nav-item":l,u=n.style,d=n.children,h=n.icon,f=n.divider,g=n.panel,p=n.onClick,m=n.onSelect,v=Pt(n,["as","active","disabled","eventKey","className","classPrefix","style","children","icon","divider","panel","onClick","onSelect"]),_=O.exports.useContext(qd),y=_.activeKey,b=_.onSelect,w=r!=null?r:!Pr(s)&&Ep(s,y),x=O.exports.useCallback(function(P){m==null||m(s,P),b==null||b(s,P)},[s,m,b]),S=O.exports.useContext(Xx),k=O.exports.useContext($u),T=bn(c),D=T.withClassPrefix,R=T.merge,N=T.prefix,A=R(a,D({active:w,disabled:o})),V=O.exports.useCallback(function(P){o||(x(P),p==null||p(P))},[o,x,p]);return k?ne(zqe,Te({},n)):f?ne("div",Te({ref:e,role:"separator",style:u,className:R(a,N("divider"))},v)):g?ne("div",st(Te({ref:e,style:u,className:R(a,N("panel"))},v),{children:d})):S?ne(Uqe,Te({},n)):dt(i,st(Te({ref:e,tabIndex:o?-1:void 0},v),{className:A,onClick:V,style:u,"aria-selected":w||void 0,children:[h,d,ne(G_,{})]}))});u9.displayName="Nav.Item",u9.propTypes={as:X.elementType,active:X.bool,disabled:X.bool,className:X.string,classPrefix:X.string,divider:X.bool,panel:X.bool,onClick:X.func,style:X.object,icon:X.node,onSelect:X.func,children:X.node,eventKey:X.any};var jqe=u9;function qqe(n){var e=O.exports.useRef();return n||e}var Jx=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.classPrefix,o=r===void 0?"nav":r,s=n.appearance,a=s===void 0?"default":s,l=n.vertical,c=n.justified,u=n.reversed,d=n.pullRight,h=n.className,f=n.children,g=n.activeKey,p=n.onSelect,m=Pt(n,["as","classPrefix","appearance","vertical","justified","reversed","pullRight","className","children","activeKey","onSelect"]),v=O.exports.useContext($u),_=O.exports.useContext(Xx),y=qqe(e),b=bn(o),w=b.withClassPrefix,x=b.merge,S=b.rootPrefix,k=b.prefix,T=x(h,S({"navbar-nav":_,"navbar-right":d,"sidenav-nav":v}),w(a,{horizontal:_||!l&&!v,vertical:l||v,justified:c,reversed:u})),D=v||{},R=D.activeKey,N=D.onSelect,A=N===void 0?p:N,V=g!=null?g:R;if(v!=null&&v.expanded)return ne(qd.Provider,{value:{withinNav:!0,activeKey:V,onSelect:p!=null?p:A},children:ne("ul",st(Te({ref:e,className:T},m),{children:f}))});var P=a!=="default";return v?ne(qd.Provider,{value:{withinNav:!0,activeKey:V,onSelect:p!=null?p:A},children:ne(joe,{vertical:!!v,children:function(U,F){return ne(i,st(Te(st(Te({ref:F},m),{className:T}),U),{children:f}))}})}):ne(qd.Provider,{value:{withinNav:!0,activeKey:V,onSelect:p!=null?p:A},children:dt(i,st(Te({},m),{ref:y,className:T,children:[f,P&&ne("div",{className:k("bar")})]}))})});Jx.Dropdown=Vqe,Jx.Item=jqe,Jx.displayName="Nav",Jx.propTypes={classPrefix:X.string,className:X.string,children:X.node,appearance:X.oneOf(["default","subtle","tabs"]),reversed:X.bool,justified:X.bool,vertical:X.bool,pullRight:X.bool,activeKey:X.any,onSelect:X.func};var ase=Jx,lse=xe.createContext({}),cse=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.classPrefix,o=r===void 0?"form-group":r,s=n.controlId,a=n.className,l=Pt(n,["as","classPrefix","controlId","className"]),c=bn(o),u=c.withClassPrefix,d=c.merge,h=d(a,u());return xe.createElement(lse.Provider,{value:{controlId:s}},xe.createElement(i,vt({},l,{ref:e,className:h,role:"group"})))});cse.displayName="FormGroup",cse.propTypes={controlId:X.string,className:X.string,classPrefix:X.string};var d9=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"span":t,r=n.classPrefix,o=r===void 0?"input-group-addon":r,s=n.className,a=n.disabled,l=Pt(n,["as","classPrefix","className","disabled"]),c=bn(o),u=c.withClassPrefix,d=c.merge,h=d(s,u({disabled:a}));return xe.createElement(i,vt({},l,{ref:e,className:h}))});d9.displayName="InputGroupAddon",d9.propTypes={className:X.string,classPrefix:X.string,disabled:X.bool};var Kqe=d9,use=xe.forwardRef(function(n,e){var t=n.classPrefix,i=t===void 0?"input-group-btn":t,r=n.className,o=Pt(n,["classPrefix","className"]),s=bn(i),a=s.withClassPrefix,l=s.merge,c=bn("input-group-addon"),u=c.withClassPrefix,d=l(u(),r,a());return xe.createElement(PB,vt({},o,{ref:e,className:d}))});use.displayName="InputGroupButton";var Gqe=use,dse=xe.createContext(null),eE=xe.forwardRef(function(n,e){var t=n.as,i=t===void 0?"div":t,r=n.classPrefix,o=r===void 0?"input-group":r,s=n.className,a=n.disabled,l=n.inside,c=n.size,u=n.children,d=Pt(n,["as","classPrefix","className","disabled","inside","size","children"]),h=O.exports.useState(!1),f=h[0],g=h[1],p=O.exports.useCallback(function(){g(!0)},[]),m=O.exports.useCallback(function(){g(!1)},[]),v=bn(o),_=v.withClassPrefix,y=v.merge,b=y(s,_(c,{inside:l,focus:f,disabled:a})),w=function(){return xe.Children.map(u,function(k){return xe.isValidElement(k)?xe.cloneElement(k,{disabled:!0}):k})},x=O.exports.useMemo(function(){return{onFocus:p,onBlur:m}},[p,m]);return ne(dse.Provider,{value:x,children:ne(i,st(Te({},d),{ref:e,className:b,children:a?w():u}))})});eE.displayName="InputGroup",eE.propTypes={className:X.string,classPrefix:X.string,children:X.node,disabled:X.bool,inside:X.bool,size:X.oneOf(["lg","md","sm","xs"])},eE.Addon=Kqe,eE.Button=Gqe;var hse=eE,h9=xe.forwardRef(function(n,e){var t=n.className,i=n.classPrefix,r=i===void 0?"input":i,o=n.as,s=o===void 0?"input":o,a=n.type,l=a===void 0?"text":a,c=n.disabled,u=n.value,d=n.defaultValue,h=n.inputRef,f=n.id,g=n.size,p=n.plaintext,m=n.readOnly,v=n.onPressEnter,_=n.onFocus,y=n.onBlur,b=n.onKeyDown,w=n.onChange,x=Pt(n,["className","classPrefix","as","type","disabled","value","defaultValue","inputRef","id","size","plaintext","readOnly","onPressEnter","onFocus","onBlur","onKeyDown","onChange"]),S=O.exports.useCallback(function(F){F.key===Ii.ENTER&&(v==null||v(F)),b==null||b(F)},[v,b]),k=O.exports.useCallback(function(F){var M;w==null||w((M=F.target)===null||M===void 0?void 0:M.value,F)},[w]),T=bn(r),D=T.withClassPrefix,R=T.merge,N=R(t,D(g,{plaintext:p})),A=O.exports.useContext(dse),V=O.exports.useContext(lse);if(p)return ne(gUe,{ref:e,localeKey:"unfilled",children:typeof u=="undefined"?d:u});var P=!c&&!m,U={};return P&&(U.onChange=k,U.onKeyDown=S,U.onFocus=vr(_,A==null?void 0:A.onFocus),U.onBlur=vr(y,A==null?void 0:A.onBlur)),ne(s,st(Te(Te({},x),U),{ref:Io(e,h),className:N,type:l,id:f||(V==null?void 0:V.controlId),value:u,defaultValue:d,disabled:c,readOnly:m}))});h9.displayName="Input",h9.propTypes={type:X.string,as:X.elementType,id:X.string,classPrefix:X.string,className:X.string,disabled:X.bool,value:X.oneOfType([X.string,X.number]),defaultValue:X.oneOfType([X.string,X.number]),size:X.oneOf(["lg","md","sm","xs"]),inputRef:d6e,onChange:X.func,onFocus:X.func,onBlur:X.func,onKeyDown:X.func,onPressEnter:X.func};var Yqe=h9;function fse(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}class Y_{static message(e){Zje.push(ne(Hje,st(Te({showIcon:!0},e),{children:e.content})),{placement:e.placement||"topCenter"})}}const Zqe=1e3*60*10,Xqe=n=>{const{ticket:e,playgroundId:t,io:i,callback:r}=n;fl.exports.unstable_batchedUpdates(()=>{const o=Mu.getState().setUserInfo,s=sa.getState().setUserList,{switchFileTree:a}=Kee.getState(),{switchDoc:l,setSenders:c,setCRDTInfo:u,setAsyncType:d,setServerAck:h,setCustomAck:f,setPlaygroundInfo:g,setDockerInfo:p,setQueryObject:m,setPlaygroundStatus:v,setDockerStatus:_,appStatus:y,setAppStatus:b,setGlobalData:w}=Yt.getState();P_.getState(),CRe().then(x=>{x.length>0&&x.forEach(S=>{r6(S==null?void 0:S.path,st(Te({},S),{revision:0}))})}),window.clearCache=()=>{localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},i.emit("clearCache")},window.Toast=Y_,p(st(Te({},Yt.getState().dockerInfo),{ticket:e})),i.on("connect",()=>{d(void 0),setInterval(()=>{i.emit("heartbeat","\u{1F497}")},Zqe)}),i.on("clearCache",()=>{window.location.reload()}),i.on("appStatus",x=>{b(x)}),i.on("globalData",x=>{w(x)}),i.on("welcome",x=>{let S=Mu.getState().userInfo;const k=JSON.parse(x),T=Gee(k.onlineCount-1);S.uuid===k.uuid&&(S=ec.exports.omit(st(Te({},k),{color:T,avatar:Yee(ec.exports.random(0,6),k.uuid)}),"coUsers"),o(S),Yt.getState().playgroundStatus==="INACTIVE"&&(i==null||i.emit("active")));const D=[S,...k.coUsers.filter(R=>R.uuid!==S.uuid).map(R=>st(Te({},R),{avatar:Yee(ec.exports.random(0,6),R.uuid),color:Gee(R.onlineCount-1)}))];s(D)}),i.on("playgroundInfo",x=>{var R;const{playgroundInfo:S,crdt:k,dockerInfo:T}=JSON.parse(x);u(k);const D=Yt.getState().playgroundInfo;g(st(Te(Te({},S),D),{activeDockerId:S==null?void 0:S.dockerId})),T&&((R=D==null?void 0:D.dockerInfos)==null||R.set(T.dockerId,T),p(Te(Te({},Yt.getState().dockerInfo),T)),T.fileTree&&a({data:T.fileTree}),r&&r())}),i.on("playgroundStatus",x=>{v(x)}),i.on("dockerStatus",x=>{_(x||"STOP")}),i.on("fileContent",async x=>{var k,T,D;const S=JSON.parse(x);u(S),d("file"),i6(st(Te({},S),{event:"file"})),(P_.getState().shadowUser.uuid||Hd(S==null?void 0:S.userInfo)&&S.file)&&(l(S.file),(await Pu).put("files",(k=S==null?void 0:S.file)==null?void 0:k.value,(T=S==null?void 0:S.file)==null?void 0:T.path),await Vee(S.file.path)||r6((D=S==null?void 0:S.file)==null?void 0:D.path,{value:S.file.value,revision:0,path:S.file.path}))}),i.on("saveFile",x=>{JSON.parse(x)}),i.on("extraSync",x=>{const S=JSON.parse(x);switch(S.extend.type){case"editor-scroll":u(S),d("editor"),f();break;case"mousemove":u(S),f();break;default:return}}),i.on("sender",x=>{c([...Yt.getState().senders,JSON.parse(x).sender])}),i.on("fileNode",x=>{const S=JSON.parse(x);a({data:S})}),i.on("console",x=>{const S=JSON.parse(x);u(S),d("console"),i6(st(Te({},S),{event:"console"}))}),i.on("mediaRecord",x=>{const S=JSON.parse(x);wRe(S.timestamp,S),u(S),d("media"),i6(st(Te({},S),{event:"media"}))}),i.on("disconnect",x=>{x!=="io server disconnect"&&i.connect()}),i.on("authorized_error",x=>{setTimeout(()=>{Y_.message({type:"error",content:x,placement:"bottomEnd"})},2e3)}),i.on("connect_error",x=>{setTimeout(()=>{Y_.message({type:"error",content:"\u8FDE\u63A5\u9519\u8BEF, \u91CD\u65B0\u8FDE\u63A5\u4E2D~~~\u8BF7\u7A0D\u540E",placement:"bottomEnd"})},2e3),i.connect()}),i.on("connect_timeout",x=>{i.connect()}),i.on("error",x=>{setTimeout(()=>{Y_.message({type:"error",content:"\u8FDE\u63A5\u9519\u8BEF\uFF0C\u91CD\u8FDE\u4E2D",placement:"bottomEnd"})},2e3),i.connect()}),i.on("reconnect_attempt",x=>{}),i.on("reconnect",x=>{Y_.message({type:"info",content:"\u5DF2\u6210\u529F\u91CD\u65B0\u8FDE\u63A5\uFF01",placement:"topCenter"})})})};var f9={exports:{}},$i={};/** @license React v16.13.1
|
|
127
127
|
* react-is.production.min.js
|
|
128
128
|
*
|
|
129
129
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -306,8 +306,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
306
306
|
`))):se=$.stylize("[Circular]","special")),x(K)){if(Ie&&_e.match(/^\d+$/))return se;K=JSON.stringify(""+_e),K.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(K=K.substr(1,K.length-2),K=$.stylize(K,"name")):(K=K.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),K=$.stylize(K,"string"))}return K+": "+se}function g($,Q,ee){var ge=$.reduce(function(_e,Ie){return Ie.indexOf(`
|
|
307
307
|
`)>=0,_e+Ie.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ge>60?ee[0]+(Q===""?"":Q+`
|
|
308
308
|
`)+" "+$.join(`,
|
|
309
|
-
`)+" "+ee[1]:ee[0]+Q+" "+$.join(", ")+" "+ee[1]}function p($){return Array.isArray($)}n.isArray=p;function m($){return typeof $=="boolean"}n.isBoolean=m;function v($){return $===null}n.isNull=v;function _($){return $==null}n.isNullOrUndefined=_;function y($){return typeof $=="number"}n.isNumber=y;function b($){return typeof $=="string"}n.isString=b;function w($){return typeof $=="symbol"}n.isSymbol=w;function x($){return $===void 0}n.isUndefined=x;function S($){return k($)&&A($)==="[object RegExp]"}n.isRegExp=S;function k($){return typeof $=="object"&&$!==null}n.isObject=k;function T($){return k($)&&A($)==="[object Date]"}n.isDate=T;function D($){return k($)&&(A($)==="[object Error]"||$ instanceof Error)}n.isError=D;function R($){return typeof $=="function"}n.isFunction=R;function N($){return $===null||typeof $=="boolean"||typeof $=="number"||typeof $=="string"||typeof $=="symbol"||typeof $=="undefined"}n.isPrimitive=N,n.isBuffer=SGe;function A($){return Object.prototype.toString.call($)}function V($){return $<10?"0"+$.toString(10):$.toString(10)}var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var $=new Date,Q=[V($.getHours()),V($.getMinutes()),V($.getSeconds())].join(":");return[$.getDate(),P[$.getMonth()],Q].join(" ")}n.log=function(){console.log("%s - %s",U(),n.format.apply(n,arguments))},n.inherits=I9.exports,n._extend=function($,Q){if(!Q||!k(Q))return $;for(var ee=Object.keys(Q),ge=ee.length;ge--;)$[ee[ge]]=Q[ee[ge]];return $};function F($,Q){return Object.prototype.hasOwnProperty.call($,Q)}var M=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;n.promisify=function(Q){if(typeof Q!="function")throw new TypeError('The "original" argument must be of type Function');if(M&&Q[M]){var ee=Q[M];if(typeof ee!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ee,M,{value:ee,enumerable:!1,writable:!1,configurable:!0}),ee}function ee(){for(var ge,_e,Ie=new Promise(function(oe,Ne){ge=oe,_e=Ne}),K=[],se=0;se<arguments.length;se++)K.push(arguments[se]);K.push(function(oe,Ne){oe?_e(oe):ge(Ne)});try{Q.apply(this,K)}catch(oe){_e(oe)}return Ie}return Object.setPrototypeOf(ee,Object.getPrototypeOf(Q)),M&&Object.defineProperty(ee,M,{value:ee,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ee,e(Q))},n.promisify.custom=M;function W($,Q){if(!$){var ee=new Error("Promise was rejected with a falsy value");ee.reason=$,$=ee}return Q($)}function j($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');function Q(){for(var ee=[],ge=0;ge<arguments.length;ge++)ee.push(arguments[ge]);var _e=ee.pop();if(typeof _e!="function")throw new TypeError("The last argument must be of type Function");var Ie=this,K=function(){return _e.apply(Ie,arguments)};$.apply(this,ee).then(function(se){process.nextTick(K,null,se)},function(se){process.nextTick(W,se,K)})}return Object.setPrototypeOf(Q,Object.getPrototypeOf($)),Object.defineProperties(Q,e($)),Q}n.callbackify=j}(rae);var oae=D9.exports.EventEmitter,xGe=sE.exports,EGe=iae.exports,sae=jse.exports,aae=qse.exports,kGe=rae;function Ap(n,e,t,i){oae.call(this),sae.call(this,n,e),this.users={},this.docId=t,this.mayWrite=i||function(r,o){o(!0)}}kGe.inherits(Ap,sae),LGe(Ap.prototype,oae.prototype);function LGe(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])}Ap.prototype.addClient=function(n){var e=this;n.join(this.docId).emit("doc",{str:this.document,revision:this.operations.length,clients:this.users}).on("operation",function(t,i,r){e.mayWrite(n,function(o){if(!o){console.log("User doesn't have the right to edit.");return}e.onOperation(n,t,i,r)})}).on("selection",function(t){e.mayWrite(n,function(i){if(!i){console.log("User doesn't have the right to edit.");return}e.updateSelection(n,t&&aae.fromJSON(t))})}).on("disconnect",function(){console.log("Disconnect"),n.leave(e.docId),e.onDisconnect(n),n.manager.sockets.clients(e.docId).length===0&&e.emit("empty-room")})},Ap.prototype.onOperation=function(n,e,t,i){var r;try{r=new EGe(xGe.fromJSON(t),i&&aae.fromJSON(i))}catch(a){console.error("Invalid operation received: "+a);return}try{var o=n.id,s=this.receiveOperation(e,r);console.log("new operation: "+r),this.getClient(o).selection=s.meta,n.emit("ack"),n.broadcast.in(this.docId).emit("operation",o,s.wrapped.toJSON(),s.meta)}catch(a){console.error(a)}},Ap.prototype.updateSelection=function(n,e){var t=n.id;e?this.getClient(t).selection=e:delete this.getClient(t).selection,n.broadcast.in(this.docId).emit("selection",t,e)},Ap.prototype.setName=function(n,e){var t=n.id;this.getClient(t).name=e,n.broadcast.in(this.docId).emit("set_name",t,e)},Ap.prototype.getClient=function(n){return this.users[n]||(this.users[n]={})},Ap.prototype.onDisconnect=function(n){var e=n.id;delete this.users[e],n.broadcast.in(this.docId).emit("client_left",e)};var Zd=sE.exports;const{setAppStatus:TGe,switchDoc:R9,setCRDTInfo:DGe,dockerInfo:s$t,doc:a$t,CRDTInfo:l$t}=Yt.getState(),N9=async n=>{var l,c,u;TGe("replay");let e;const i=(await Uee()).filter(d=>d.userInfo.uuid===n.userId),o=i.filter(d=>Use(n.timestamp).isSame(d.timestamp)||Use(n.timestamp).isBefore(d.timestamp))[0],s=await Vee(o.file.path),a=await yRe(o.file.path);if(o.event==="editor"){const d=i.filter(f=>f.event==="editor").filter(f=>{var g;return((g=f.file)==null?void 0:g.path)===s.path}),h=o.editor.revision>s.revision?d.filter(f=>f.editor.revision<=o.editor.revision).filter(f=>f.editor.revision>s.revision):d.filter(f=>f.editor.revision>o.editor.revision).filter(f=>f.editor.revision<=s.revision);o.editor.revision>s.revision?e=h.reduce((f,g,p)=>{const m=Zd.fromJSON(g.editor.operation);return f.targetLength===m.baseLength?f.compose(m):m.compose(f)},new Zd().retain(s.revision===0?s.value.length:a.value.length)):e=h.length===1?Zd.fromJSON(h[0].editor.operation).invert(a.value):h.reduce((f,g,p)=>{const m=Zd.fromJSON(g.editor.operation);return f.editor?Zd.fromJSON(f.editor.operation).compose(m):f.compose(m)}).invert(a.value),o.editor.operation=e.toJSON()}if(o.file){if(!o.file)return;zee(o.file.path,ot(Te({},a),{value:s.revision===0?e==null?void 0:e.apply(s.value):e==null?void 0:e.apply(a.value)})),R9==null||R9({value:s.value,path:o.file.path})}console.log(Yt.getState().appStatus),r6((l=o==null?void 0:o.file)==null?void 0:l.path,ot(Te({},s),{revision:(c=o==null?void 0:o.editor)==null?void 0:c.revision,path:(u=o==null?void 0:o.file)==null?void 0:u.path})),setTimeout(()=>{DGe(Te({},o))},0)};var c$t="";const aE=Jl(n=>({ignoreReplayers:[],setIgnoreReplayer:e=>n(()=>({ignoreReplayers:e}))}));function lae(...n){return e=>n.forEach(t=>function(i,r){typeof i=="function"?i(r):i!=null&&(i.current=r)}(t,e))}function aN(...n){return O.exports.useCallback(lae(...n),n)}const cae=O.exports.forwardRef((n,e)=>{const r=n,{children:t}=r,i=gr(r,["children"]);return O.exports.Children.toArray(t).some(dae)?O.exports.createElement(O.exports.Fragment,null,O.exports.Children.map(t,o=>dae(o)?O.exports.createElement(A9,vt({},i,{ref:e}),o.props.children):o)):O.exports.createElement(A9,vt({},i,{ref:e}),t)});cae.displayName="Slot";const A9=O.exports.forwardRef((n,e)=>{const r=n,{children:t}=r,i=gr(r,["children"]);return O.exports.isValidElement(t)?O.exports.cloneElement(t,ot(Te({},IGe(i,t.props)),{ref:lae(e,t.ref)})):O.exports.Children.count(t)>1?O.exports.Children.only(null):null});A9.displayName="SlotClone";const uae=({children:n})=>O.exports.createElement(O.exports.Fragment,null,n);function dae(n){return O.exports.isValidElement(n)&&n.type===uae}function IGe(n,e){const t=Te({},e);for(const i in e){const r=n[i],o=e[i];/^on[A-Z]/.test(i)?t[i]=(...s)=>{o==null||o(...s),r==null||r(...s)}:i==="style"?t[i]=Te(Te({},r),o):i==="className"&&(t[i]=[r,o].filter(Boolean).join(" "))}return Te(Te({},n),t)}const X1=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce((n,e)=>ot(Te({},n),{[e]:O.exports.forwardRef((t,i)=>{const a=t,{asChild:r}=a,o=gr(a,["asChild"]),s=r?cae:e;return O.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.as&&console.error(RGe),O.exports.createElement(s,vt({},o,{ref:i}))})}),{}),RGe="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",lN=Boolean(globalThis==null?void 0:globalThis.document)?O.exports.useLayoutEffect:()=>{},hae=O.exports.forwardRef((n,e)=>{var t,i;const c=n,{containerRef:r,style:o}=c,s=gr(c,["containerRef","style"]),a=(t=r==null?void 0:r.current)!==null&&t!==void 0?t:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,l]=O.exports.useState({});return lN(()=>{l({})},[]),a?pee.createPortal(O.exports.createElement(X1.div,vt({"data-radix-portal":""},s,{ref:e,style:a===document.body?Te({position:"absolute",top:0,left:0,zIndex:2147483647},o):void 0})),a):null}),NGe=hae;var fae=Object.prototype.hasOwnProperty;function lE(n,e){var t,i;if(n===e)return!0;if(n&&e&&(t=n.constructor)===e.constructor){if(t===Date)return n.getTime()===e.getTime();if(t===RegExp)return n.toString()===e.toString();if(t===Array){if((i=n.length)===e.length)for(;i--&&lE(n[i],e[i]););return i===-1}if(!t||typeof n=="object"){i=0;for(t in n)if(fae.call(n,t)&&++i&&!fae.call(e,t)||!(t in e)||!lE(n[t],e[t]))return!1;return Object.keys(e).length===i}}return n!==n&&e!==e}function cE(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let i=0;i<t.length;i++)if(!Object.prototype.hasOwnProperty.call(e,t[i])||!Object.is(n[t[i]],e[t[i]]))return!1;return!0}var cN=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},gae=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),AGe=function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)},OGe=function(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n},PGe=function(){function n(e,t,i,r){cN(this,n),this.name=e,this.fn=t,this.args=i,this.modifiers=r}return gae(n,[{key:"_test",value:function(t){var i=this.fn;try{Q1(this.modifiers.slice(),i)(t)}catch{i=function(){return!1}}try{return Q1(this.modifiers.slice(),i)(t)}catch{return!1}}},{key:"_check",value:function(t){try{Q1(this.modifiers.slice(),this.fn)(t)}catch{if(Q1(this.modifiers.slice(),function(r){return r})(!1))return}if(!Q1(this.modifiers.slice(),this.fn)(t))throw null}},{key:"_testAsync",value:function(t){var i=this;return new Promise(function(r,o){mae(i.modifiers.slice(),i.fn)(t).then(function(s){s?r(t):o(null)}).catch(function(s){return o(s)})})}}]),n}();function pae(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"simple";return typeof n=="object"?n[e]:n}function Q1(n,e){if(n.length){var t=n.shift(),i=Q1(n,e);return t.perform(i)}else return pae(e)}function mae(n,e){if(n.length){var t=n.shift(),i=mae(n,e);return t.performAsync(i)}else return function(r){return Promise.resolve(pae(e,"async")(r))}}var MGe=function n(e,t,i){cN(this,n),this.name=e,this.perform=t,this.performAsync=i},O9=function(n){AGe(e,n);function e(t,i,r,o){cN(this,e);for(var s=arguments.length,a=Array(s>4?s-4:0),l=4;l<s;l++)a[l-4]=arguments[l];var c=OGe(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,a));return Error.captureStackTrace&&Error.captureStackTrace(c,e),c.rule=t,c.value=i,c.cause=r,c.target=o,c}return e}(Error),FGe=function(){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];cN(this,n),this.chain=e,this.nextRuleModifiers=t}return gae(n,[{key:"_applyRule",value:function(t,i){var r=this;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];return r.chain.push(new PGe(i,t.apply(r,s),s,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}}},{key:"_applyModifier",value:function(t,i){return this.nextRuleModifiers.push(new MGe(i,t.simple,t.async)),this}},{key:"_clone",value:function(){return new n(this.chain.slice(),this.nextRuleModifiers.slice())}},{key:"test",value:function(t){return this.chain.every(function(i){return i._test(t)})}},{key:"testAll",value:function(t){var i=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){i.push(new O9(r,t,o))}}),i}},{key:"check",value:function(t){this.chain.forEach(function(i){try{i._check(t)}catch(r){throw new O9(i,t,r)}})}},{key:"testAsync",value:function(t){var i=this;return new Promise(function(r,o){_ae(t,i.chain.slice(),r,o)})}}]),n}();function _ae(n,e,t,i){if(e.length){var r=e.shift();r._testAsync(n).then(function(){_ae(n,e,t,i)},function(o){i(new O9(r,n,o))})}else t(n)}function Cl(){return vae(new FGe)}var uN={};Cl.extend=function(n){Object.assign(uN,n)},Cl.clearCustomRules=function(){uN={}};function vae(n){return new Proxy(n,{get:function(t,i){if(i in t)return t[i];var r=vae(n._clone());if(i in bae)return r._applyModifier(bae[i],i);if(i in uN)return r._applyRule(uN[i],i);if(i in yae)return r._applyRule(yae[i],i)}})}var bae={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(i){return!i}).catch(function(i){return!0})}}},some:{simple:function(e){return function(t){return dN(t).some(function(i){try{return e(i)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(dN(t).map(function(i){try{return e(i).catch(function(r){return!1})}catch{return!1}})).then(function(i){return i.some(Boolean)})}}},every:{simple:function(e){return function(t){return dN(t).every(e)}},async:function(e){return function(t){return Promise.all(dN(t).map(e)).then(function(i){return i.every(Boolean)})}}}};function dN(n){return typeof n=="string"?n.split(""):n}var yae={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||BGe;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return J1("string")},boolean:function(){return J1("boolean")},undefined:function(){return J1("undefined")},null:function(){return J1("null")},array:function(){return J1("array")},object:function(){return J1("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return/^([a-z]+\s*)+$/.test(e)}},uppercase:function(){return function(e){return/^([A-Z]+\s*)+$/.test(e)}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(i){return i.length>=e&&i.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(i){return i>=e&&i<=t}},range:function(e,t){return function(i){return i>=e&&i<=t}},lessThan:function(e){return function(t){return t<e}},lessThanOrEqual:function(e){return function(t){return t<=e}},greaterThan:function(e){return function(t){return t>e}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2==0}},odd:function(){return function(e){return e%2!=0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return $Ge(e)},passesAnyOf:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(r){return t.some(function(o){return o.test(r)})}},optional:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return function(i){return t&&typeof i=="string"&&i.trim()===""||i!=null&&e.check(i),!0}}};function J1(n){return function(e){return Array.isArray(e)&&n==="array"||e===null&&n==="null"||typeof e===n}}function BGe(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function $Ge(n){return{simple:function(t){var i=[];if(Object.keys(n).forEach(function(r){var o=n[r];try{o.check((t||{})[r])}catch(s){s.target=r,i.push(s)}}),i.length>0)throw i;return!0},async:function(t){var i=[],r=Object.keys(n).map(function(o){var s=n[o];return s.testAsync((t||{})[o]).catch(function(a){a.target=o,i.push(a)})});return Promise.all(r).then(function(o){if(i.length>0)throw i;return!0})}}}var zi="colors",Pa="sizes",Ht="space",WGe={gap:Ht,gridGap:Ht,columnGap:Ht,gridColumnGap:Ht,rowGap:Ht,gridRowGap:Ht,inset:Ht,insetBlock:Ht,insetBlockEnd:Ht,insetBlockStart:Ht,insetInline:Ht,insetInlineEnd:Ht,insetInlineStart:Ht,margin:Ht,marginTop:Ht,marginRight:Ht,marginBottom:Ht,marginLeft:Ht,marginBlock:Ht,marginBlockEnd:Ht,marginBlockStart:Ht,marginInline:Ht,marginInlineEnd:Ht,marginInlineStart:Ht,padding:Ht,paddingTop:Ht,paddingRight:Ht,paddingBottom:Ht,paddingLeft:Ht,paddingBlock:Ht,paddingBlockEnd:Ht,paddingBlockStart:Ht,paddingInline:Ht,paddingInlineEnd:Ht,paddingInlineStart:Ht,top:Ht,right:Ht,bottom:Ht,left:Ht,scrollMargin:Ht,scrollMarginTop:Ht,scrollMarginRight:Ht,scrollMarginBottom:Ht,scrollMarginLeft:Ht,scrollMarginX:Ht,scrollMarginY:Ht,scrollMarginBlock:Ht,scrollMarginBlockEnd:Ht,scrollMarginBlockStart:Ht,scrollMarginInline:Ht,scrollMarginInlineEnd:Ht,scrollMarginInlineStart:Ht,scrollPadding:Ht,scrollPaddingTop:Ht,scrollPaddingRight:Ht,scrollPaddingBottom:Ht,scrollPaddingLeft:Ht,scrollPaddingX:Ht,scrollPaddingY:Ht,scrollPaddingBlock:Ht,scrollPaddingBlockEnd:Ht,scrollPaddingBlockStart:Ht,scrollPaddingInline:Ht,scrollPaddingInlineEnd:Ht,scrollPaddingInlineStart:Ht,fontSize:"fontSizes",background:zi,backgroundColor:zi,backgroundImage:zi,borderImage:zi,border:zi,borderBlock:zi,borderBlockEnd:zi,borderBlockStart:zi,borderBottom:zi,borderBottomColor:zi,borderColor:zi,borderInline:zi,borderInlineEnd:zi,borderInlineStart:zi,borderLeft:zi,borderLeftColor:zi,borderRight:zi,borderRightColor:zi,borderTop:zi,borderTopColor:zi,caretColor:zi,color:zi,columnRuleColor:zi,fill:zi,outline:zi,outlineColor:zi,stroke:zi,textDecorationColor:zi,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Pa,minBlockSize:Pa,maxBlockSize:Pa,inlineSize:Pa,minInlineSize:Pa,maxInlineSize:Pa,width:Pa,minWidth:Pa,maxWidth:Pa,height:Pa,minHeight:Pa,maxHeight:Pa,flexBasis:Pa,gridTemplateColumns:Pa,gridTemplateRows:Pa,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},HGe=(n,e)=>typeof e=="function"?{"()":Function.prototype.toString.call(e)}:e,ey=()=>{const n=Object.create(null);return(e,t,...i)=>{const r=(o=>JSON.stringify(o,HGe))(e);return r in n?n[r]:n[r]=t(e,...i)}},Z_=Symbol.for("sxs.internal"),P9=(n,e)=>Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)),Cae=n=>{for(const e in n)return!0;return!1},{hasOwnProperty:VGe}=Object.prototype,M9=n=>n.includes("-")?n:n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),zGe=/\s+(?![^()]*\))/,ty=n=>e=>n(...typeof e=="string"?String(e).split(zGe):[e]),wae={appearance:n=>({WebkitAppearance:n,appearance:n}),backfaceVisibility:n=>({WebkitBackfaceVisibility:n,backfaceVisibility:n}),backdropFilter:n=>({WebkitBackdropFilter:n,backdropFilter:n}),backgroundClip:n=>({WebkitBackgroundClip:n,backgroundClip:n}),boxDecorationBreak:n=>({WebkitBoxDecorationBreak:n,boxDecorationBreak:n}),clipPath:n=>({WebkitClipPath:n,clipPath:n}),content:n=>({content:n.includes('"')||n.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(n)?n:`"${n}"`}),hyphens:n=>({WebkitHyphens:n,hyphens:n}),maskImage:n=>({WebkitMaskImage:n,maskImage:n}),maskSize:n=>({WebkitMaskSize:n,maskSize:n}),tabSize:n=>({MozTabSize:n,tabSize:n}),textSizeAdjust:n=>({WebkitTextSizeAdjust:n,textSizeAdjust:n}),userSelect:n=>({WebkitUserSelect:n,userSelect:n}),marginBlock:ty((n,e)=>({marginBlockStart:n,marginBlockEnd:e||n})),marginInline:ty((n,e)=>({marginInlineStart:n,marginInlineEnd:e||n})),maxSize:ty((n,e)=>({maxBlockSize:n,maxInlineSize:e||n})),minSize:ty((n,e)=>({minBlockSize:n,minInlineSize:e||n})),paddingBlock:ty((n,e)=>({paddingBlockStart:n,paddingBlockEnd:e||n})),paddingInline:ty((n,e)=>({paddingInlineStart:n,paddingInlineEnd:e||n}))},F9=/([\d.]+)([^]*)/,UGe=(n,e)=>n.length?n.reduce((t,i)=>(t.push(...e.map(r=>r.includes("&")?r.replace(/&/g,/[ +>|~]/.test(i)&&/&.*&/.test(r)?`:is(${i})`:i):i+" "+r)),t),[]):e,jGe=(n,e)=>n in qGe&&typeof e=="string"?e.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(t,i,r,o)=>i+(r==="stretch"?`-moz-available${o};${M9(n)}:${i}-webkit-fill-available`:`-moz-fit-content${o};${M9(n)}:${i}fit-content`)+o):String(e),qGe={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Tf=n=>n?n+"-":"",Sae=(n,e,t)=>n.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(i,r,o,s,a)=>s=="$"==!!o?i:(r||s=="--"?"calc(":"")+"var(--"+(s==="$"?Tf(e)+(a.includes("$")?"":Tf(t))+a.replace(/\$/g,"-"):a)+")"+(r||s=="--"?"*"+(r||"")+(o||"1")+")":"")),KGe=/\s*,\s*(?![^()]*\))/,GGe=Object.prototype.toString,ny=(n,e,t,i,r)=>{let o,s,a;const l=(c,u,d)=>{let h,f;const g=p=>{for(h in p){const _=h.charCodeAt(0)===64,y=_&&Array.isArray(p[h])?p[h]:[p[h]];for(f of y){const b=/[A-Z]/.test(v=h)?v:v.replace(/-[^]/g,x=>x[1].toUpperCase()),w=typeof f=="object"&&f&&f.toString===GGe&&(!i.utils[b]||!u.length);if(b in i.utils&&!w){const x=i.utils[b];if(x!==s){s=x,g(x(f)),s=null;continue}}else if(b in wae){const x=wae[b];if(x!==a){a=x,g(x(f)),a=null;continue}}if(_&&(m=h.slice(1)in i.media?"@media "+i.media[h.slice(1)]:h,h=m.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(x,S,k,T,D,R)=>{const N=F9.test(S),A=.0625*(N?-1:1),[V,P]=N?[T,S]:[S,T];return"("+(k[0]==="="?"":k[0]===">"===N?"max-":"min-")+V+":"+(k[0]!=="="&&k.length===1?P.replace(F9,(U,F,M)=>Number(F)+A*(k===">"?1:-1)+M):P)+(D?") and ("+(D[0]===">"?"min-":"max-")+V+":"+(D.length===1?R.replace(F9,(U,F,M)=>Number(F)+A*(D===">"?-1:1)+M):R):"")+")"})),w){const x=_?d.concat(h):[...d],S=_?[...u]:UGe(u,h.split(KGe));o!==void 0&&r(xae(...o)),o=void 0,l(f,S,x)}else o===void 0&&(o=[[],u,d]),h=_||h.charCodeAt(0)!==36?h:`--${Tf(i.prefix)}${h.slice(1).replace(/\$/g,"-")}`,f=w?f:typeof f=="number"?f&&b in YGe?String(f)+"px":String(f):Sae(jGe(b,f==null?"":f),i.prefix,i.themeMap[b]),o[0].push(`${_?`${h} `:`${M9(h)}:`}${f}`)}}var m,v};g(c),o!==void 0&&r(xae(...o)),o=void 0};l(n,e,t)},xae=(n,e,t)=>`${t.map(i=>`${i}{`).join("")}${e.length?`${e.join(",")}{`:""}${n.join(";")}${e.length?"}":""}${Array(t.length?t.length+1:0).join("}")}`,YGe={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Eae=n=>String.fromCharCode(n+(n>25?39:97)),X_=n=>(e=>{let t,i="";for(t=Math.abs(e);t>52;t=t/52|0)i=Eae(t%52)+i;return Eae(t%52)+i})(((e,t)=>{let i=t.length;for(;i;)e=33*e^t.charCodeAt(--i);return e})(5381,JSON.stringify(n))>>>0),uE=["themed","global","styled","onevar","resonevar","allvar","inline"],ZGe=n=>{if(n.href&&!n.href.startsWith(location.origin))return!1;try{return n.cssRules,!0}catch{return!1}},XGe=n=>{let e;const t=()=>{if(e){const{rules:s,sheet:a}=e;if(!a.deleteRule){for(;Object(Object(a.cssRules)[0]).type===3;)a.cssRules.splice(0,1);a.cssRules=[]}for(const l in s)delete s[l]}const i=Object(n).styleSheets||[];for(const s of i)if(ZGe(s)){for(let a=0,l=s.cssRules;l[a];++a){const c=Object(l[a]);if(c.type!==1)continue;const u=Object(l[a+1]);if(u.type!==4)continue;++a;const{cssText:d}=c;if(!d.startsWith("--sxs"))continue;const h=d.slice(14,-3).trim().split(/\s+/),f=uE[h[0]];f&&(e||(e={sheet:s,reset:t,rules:{}}),e.rules[f]={group:u,index:a,cache:new Set(h)})}if(e)break}if(!e){const s=(a,l)=>({type:l,cssRules:[],insertRule(c,u){this.cssRules.splice(u,0,s(c,{import:3,undefined:1}[(c.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return a==="@media{}"?`@media{${[].map.call(this.cssRules,c=>c.cssText).join("")}}`:a}});e={sheet:n?(n.head||n).appendChild(document.createElement("style")).sheet:s("","text/css"),rules:{},reset:t,toString(){const{cssRules:a}=e.sheet;return[].map.call(a,(l,c)=>{const{cssText:u}=l;let d="";if(u.startsWith("--sxs"))return"";if(a[c-1]&&(d=a[c-1].cssText).startsWith("--sxs")){if(!l.cssRules.length)return"";for(const h in e.rules)if(e.rules[h].group===l)return`--sxs{--sxs:${[...e.rules[h].cache].join(" ")}}${u}`;return l.cssRules.length?`${d}${u}`:""}return u}).join("")}}}const{sheet:r,rules:o}=e;for(let s=uE.length-1;s>=0;--s){const a=uE[s];if(!o[a]){const l=uE[s+1],c=o[l]?o[l].index:r.cssRules.length;r.insertRule("@media{}",c),r.insertRule(`--sxs{--sxs:${s}}`,c),o[a]={group:r.cssRules[c+1],index:c,cache:new Set([s])}}QGe(o[a])}};return t(),e},QGe=n=>{const e=n.group;let t=e.cssRules.length;n.apply=i=>{try{e.insertRule(i,t),++t}catch{}}},dE=Symbol(),JGe=ey(),kae=(n,e)=>JGe(n,()=>(...t)=>{let i={type:null,composers:new Set};for(const r of t)if(r!=null)if(r[Z_]){i.type==null&&(i.type=r[Z_].type);for(const o of r[Z_].composers)i.composers.add(o)}else r.constructor!==Object||r.$$typeof?i.type==null&&(i.type=r):i.composers.add(eYe(r,n));return i.type==null&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),tYe(n,i,e)}),eYe=(o,r)=>{var s=o,{variants:n,compoundVariants:e,defaultVariants:t}=s,i=gr(s,["variants","compoundVariants","defaultVariants"]);const a=`${Tf(r.prefix)}c-${X_(i)}`,l=[],c=[],u=Object.create(null),d=[];for(const p in t)u[p]=String(t[p]);if(typeof n=="object"&&n)for(const p in n){h=u,f=p,VGe.call(h,f)||(u[p]="undefined");const m=n[p];for(const v in m){const _={[p]:String(v)};String(v)==="undefined"&&d.push(p);const y=m[v],b=[_,y,!Cae(y)];l.push(b)}}var h,f;if(typeof e=="object"&&e)for(const p of e){let g=p,{css:m}=g,v=gr(g,["css"]);m=typeof m=="object"&&m||{};for(const y in v)v[y]=String(v[y]);const _=[v,m,!Cae(m)];c.push(_)}return[a,i,l,c,u,d]},tYe=(n,e,t)=>{const[i,r,o,s]=nYe(e.composers),a=typeof e.type=="function"||e.type.$$typeof?(d=>{function h(){for(let f=0;f<h[dE].length;f++){const[g,p]=h[dE][f];d.rules[g].apply(p)}return h[dE]=[],null}return h[dE]=[],h.rules={},uE.forEach(f=>h.rules[f]={apply:g=>h[dE].push([f,g])}),h})(t):null,l=(a||t).rules,c=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,u=d=>{d=typeof d=="object"&&d||iYe;const v=d,{css:h}=v,f=gr(v,["css"]),g={};for(const _ in o)if(delete f[_],_ in d){let y=d[_];typeof y=="object"&&y?g[_]=Te({"@initial":o[_]},y):(y=String(y),g[_]=y!=="undefined"||s.has(_)?y:o[_])}else g[_]=o[_];const p=new Set([...r]);for(const[_,y,b,w]of e.composers){t.rules.styled.cache.has(_)||(t.rules.styled.cache.add(_),ny(y,[`.${_}`],[],n,k=>{l.styled.apply(k)}));const x=Lae(b,g,n.media),S=Lae(w,g,n.media,!0);for(const k of x)if(k!==void 0)for(const[T,D,R]of k){const N=`${_}-${X_(D)}-${T}`;p.add(N);const A=(R?t.rules.resonevar:t.rules.onevar).cache,V=R?l.resonevar:l.onevar;A.has(N)||(A.add(N),ny(D,[`.${N}`],[],n,P=>{V.apply(P)}))}for(const k of S)if(k!==void 0)for(const[T,D]of k){const R=`${_}-${X_(D)}-${T}`;p.add(R),t.rules.allvar.cache.has(R)||(t.rules.allvar.cache.add(R),ny(D,[`.${R}`],[],n,N=>{l.allvar.apply(N)}))}}if(typeof h=="object"&&h){const _=`${i}-i${X_(h)}-css`;p.add(_),t.rules.inline.cache.has(_)||(t.rules.inline.cache.add(_),ny(h,[`.${_}`],[],n,y=>{l.inline.apply(y)}))}for(const _ of String(d.className||"").trim().split(/\s+/))_&&p.add(_);const m=f.className=[...p].join(" ");return{type:e.type,className:m,selector:c,props:f,toString:()=>m,deferredInjector:a}};return P9(u,{className:i,selector:c,[Z_]:e,toString:()=>(t.rules.styled.cache.has(i)||u(),i)})},nYe=n=>{let e="";const t=[],i={},r=[];for(const[o,,,,s,a]of n){e===""&&(e=o),t.push(o),r.push(...a);for(const l in s){const c=s[l];(i[l]===void 0||c!=="undefined"||a.includes(c))&&(i[l]=c)}}return[e,t,i,new Set(r)]},Lae=(n,e,t,i)=>{const r=[];e:for(let[o,s,a]of n){if(a)continue;let l,c=0,u=!1;for(l in o){const d=o[l];let h=e[l];if(h!==d){if(typeof h!="object"||!h)continue e;{let f,g,p=0;for(const m in h){if(d===String(h[m])){if(m!=="@initial"){const v=m.slice(1);(g=g||[]).push(v in t?t[v]:m.replace(/^@media ?/,"")),u=!0}c+=p,f=!0}++p}if(g&&g.length&&(s={["@media "+g.join(", ")]:s}),!f)continue e}}}(r[c]=r[c]||[]).push([i?"cv":`${l}-${o[l]}`,s,u])}return r},iYe={},rYe=ey(),oYe=(n,e)=>rYe(n,()=>(...t)=>{const i=()=>{for(let r of t){r=typeof r=="object"&&r||{};let o=X_(r);if(!e.rules.global.cache.has(o)){if(e.rules.global.cache.add(o),"@import"in r){let s=[].indexOf.call(e.sheet.cssRules,e.rules.themed.group)-1;for(let a of[].concat(r["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,e.sheet.insertRule(`@import ${a};`,s++);delete r["@import"]}ny(r,[],[],n,s=>{e.rules.global.apply(s)})}}return""};return P9(i,{toString:i})}),sYe=ey(),aYe=(n,e)=>sYe(n,()=>t=>{const i=`${Tf(n.prefix)}k-${X_(t)}`,r=()=>{if(!e.rules.global.cache.has(i)){e.rules.global.cache.add(i);const o=[];ny(t,[],[],n,a=>o.push(a));const s=`@keyframes ${i}{${o.join("")}}`;e.rules.global.apply(s)}return i};return P9(r,{get name(){return r()},toString:r})}),lYe=class{constructor(n,e,t,i){this.token=n==null?"":String(n),this.value=e==null?"":String(e),this.scale=t==null?"":String(t),this.prefix=i==null?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Tf(this.prefix)+Tf(this.scale)+this.token}toString(){return this.computedValue}},cYe=ey(),uYe=(n,e)=>cYe(n,()=>(t,i)=>{i=typeof t=="object"&&t||Object(i);const r=`.${t=(t=typeof t=="string"?t:"")||`${Tf(n.prefix)}t-${X_(i)}`}`,o={},s=[];for(const l in i){o[l]={};for(const c in i[l]){const u=`--${Tf(n.prefix)}${l}-${c}`,d=Sae(String(i[l][c]),n.prefix,l);o[l][c]=new lYe(c,d,l,n.prefix),s.push(`${u}:${d}`)}}const a=()=>{if(s.length&&!e.rules.themed.cache.has(t)){e.rules.themed.cache.add(t);const l=`${i===n.theme?":root,":""}.${t}{${s.join(";")}}`;e.rules.themed.apply(l)}return t};return ot(Te({},o),{get className(){return a()},selector:r,toString:a})}),dYe=ey(),hYe=ey(),fYe=n=>{const e=(t=>{let i=!1;const r=dYe(t,o=>{i=!0;const s="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",a=typeof o.media=="object"&&o.media||{},l=typeof o.root=="object"?o.root||null:globalThis.document||null,c=typeof o.theme=="object"&&o.theme||{},u={prefix:s,media:a,theme:c,themeMap:typeof o.themeMap=="object"&&o.themeMap||Te({},WGe),utils:typeof o.utils=="object"&&o.utils||{}},d=XGe(l),h={css:kae(u,d),globalCss:oYe(u,d),keyframes:aYe(u,d),createTheme:uYe(u,d),reset(){d.reset(),h.theme.toString()},theme:{},sheet:d,config:u,prefix:s,getCssText:d.toString,toString:d.toString};return String(h.theme=h.createTheme(c)),h});return i||r.reset(),r})(n);return e.styled=(({config:t,sheet:i})=>hYe(t,()=>{const r=kae(t,i);return(...o)=>{const s=r(...o),a=s[Z_].type,l=xe.forwardRef((c,u)=>{const d=c&&c.as||a,{props:h,deferredInjector:f}=s(c);return delete h.as,h.ref=u,f?xe.createElement(xe.Fragment,null,xe.createElement(d,h),xe.createElement(f,null)):xe.createElement(d,h)});return l.className=s.className,l.displayName=`Styled.${a.displayName||a.name||a}`,l.selector=s.selector,l.toString=()=>s.selector,l[Z_]=s[Z_],l}}))(e),e};function gYe(n,e,t){return Math.max(e,Math.min(n,t))}const Ma={toVector(n,e){return n===void 0&&(n=e),Array.isArray(n)?n:[n,n]},add(n,e){return[n[0]+e[0],n[1]+e[1]]},sub(n,e){return[n[0]-e[0],n[1]-e[1]]},addTo(n,e){n[0]+=e[0],n[1]+=e[1]},subTo(n,e){n[0]-=e[0],n[1]-=e[1]}};function Tae(n,e,t){return e===0||Math.abs(e)===1/0?Math.pow(n,t*5):n*e*t/(e+t*n)}function Dae(n,e,t,i=.15){return i===0?gYe(n,e,t):n<e?-Tae(e-n,t-e,i)+e:n>t?+Tae(n-t,t-e,i)+t:n}function pYe(n,[e,t],[i,r]){const[[o,s],[a,l]]=n;return[Dae(e,o,s,i),Dae(t,a,l,r)]}function wl(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Iae(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function ts(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Iae(Object(t),!0).forEach(function(i){wl(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Iae(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}const Rae={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Nae(n){return n?n[0].toUpperCase()+n.slice(1):""}function mYe(n,e="",t=!1){const i=Rae[n],r=i&&i[e]||e;return"on"+Nae(n)+Nae(r)+(t?"Capture":"")}function _Ye(n,e=""){const t=Rae[n],i=t&&t[e]||e;return n+i}function B9(n){return"touches"in n}function vYe(n){return Array.from(n.touches).filter(e=>{var t,i;return e.target===n.currentTarget||((t=n.currentTarget)===null||t===void 0||(i=t.contains)===null||i===void 0?void 0:i.call(t,e.target))})}function bYe(n){return n.type==="touchend"?n.changedTouches:n.targetTouches}function Aae(n){return B9(n)?bYe(n)[0]:n}function yYe(n){return vYe(n).map(e=>e.identifier)}function $9(n){const e=Aae(n);return B9(n)?e.identifier:e.pointerId}function Oae(n){const e=Aae(n);return[e.clientX,e.clientY]}function CYe(n){const e={};if("buttons"in n&&(e.buttons=n.buttons),"shiftKey"in n){const{shiftKey:t,altKey:i,metaKey:r,ctrlKey:o}=n;Object.assign(e,{shiftKey:t,altKey:i,metaKey:r,ctrlKey:o})}return e}function hN(n,...e){return typeof n=="function"?n(...e):n}function wYe(){}function SYe(...n){return n.length===0?wYe:n.length===1?n[0]:function(){let e;for(const t of n)e=t.apply(this,arguments)||e;return e}}function Pae(n,e){return Object.assign({},e,n||{})}const xYe=32;class EYe{constructor(e,t,i){this.ctrl=e,this.args=t,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:i,args:r}=this;t[i]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,i=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=i.from?hN(i.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=e.timeStamp}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:i,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,i.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,CYe(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const g=t._delta.map(Math.abs);Ma.addTo(t._distance,g)}const[s,a]=t._movement,[l,c]=i.threshold,{_step:u,values:d}=t;if(i.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=l&&d[0]),u[1]===!1&&(u[1]=Math.abs(a)>=c&&d[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=l&&Math.sign(s)*l),u[1]===!1&&(u[1]=Math.abs(a)>=c&&Math.sign(a)*c)),t.intentional=u[0]!==!1||u[1]!==!1,!t.intentional)return;const h=[0,0];if(i.hasCustomTransform){const[g,p]=d;h[0]=u[0]!==!1?g-u[0]:0,h[1]=u[1]!==!1?p-u[1]:0}else h[0]=u[0]!==!1?s-u[0]:0,h[1]=u[1]!==!1?a-u[1]:0;if(this.intent&&this.intent(h),(t._active&&!t._blocked||t.active)&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e)){t.first&&("bounds"in i&&(t._bounds=hN(i.bounds,t)),this.setup&&this.setup()),t.movement=h;const g=t.offset;if(this.computeOffset(),!t.last||o>xYe){t.delta=Ma.sub(t.offset,g);const p=t.delta.map(Math.abs);Ma.addTo(t.distance,p),t.direction=t.delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[p[0]/o,p[1]/o])}}const f=t._active?i.rubberband||[0,0]:[0,0];t.offset=pYe(t._bounds,t.offset,f),this.computeMovement()}emit(){const e=this.state,t=this.shared,i=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!i.triggerAllEvents)return;const r=this.handler(ts(ts(ts({},t),e),{},{[this.aliasKey]:e.values}));r!==void 0&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function kYe([n,e]){const t=Math.abs(n)-Math.abs(e);if(t>0)return"x";if(t<0)return"y"}function LYe(n,e){switch(e){case"x":n[1]=0;break;case"y":n[0]=0;break}}class TYe extends EYe{constructor(...e){super(...e);wl(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Ma.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Ma.sub(this.state.offset,this.state.lastOffset)}intent(e){this.state.axis=this.state.axis||kYe(e),this.state._blocked=(this.config.lockDirection||!!this.config.axis)&&!this.state.axis||!!this.config.axis&&this.config.axis!==this.state.axis,!this.state._blocked&&(this.config.axis||this.config.lockDirection)&&LYe(e,this.state.axis)}}const DYe=n=>n,Mae=.15,Fae={enabled(n=!0){return n},preventDefault(n=!1){return n},triggerAllEvents(n=!1){return n},rubberband(n=0){switch(n){case!0:return[Mae,Mae];case!1:return[0,0];default:return Ma.toVector(n)}},from(n){if(typeof n=="function")return n;if(n!=null)return Ma.toVector(n)},transform(n,e,t){const i=n||t.shared.transform;return this.hasCustomTransform=!!i,i||DYe},threshold(n){return Ma.toVector(n,0)}},hE=ts(ts({},Fae),{},{axis(n,e,{axis:t}){if(this.lockDirection=t==="lock",!this.lockDirection)return t},bounds(n={}){if(typeof n=="function")return o=>hE.bounds(n(o));if("current"in n)return()=>n.current;if(typeof HTMLElement=="function"&&n instanceof HTMLElement)return n;const{left:e=-1/0,right:t=1/0,top:i=-1/0,bottom:r=1/0}=n;return[[e,t],[i,r]]}}),fN=10,Bae={ArrowRight:(n=1)=>[fN*n,0],ArrowLeft:(n=1)=>[-fN*n,0],ArrowUp:(n=1)=>[0,-fN*n],ArrowDown:(n=1)=>[0,fN*n]};class IYe extends TYe{constructor(...e){super(...e);wl(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),i=e.currentTarget.getBoundingClientRect(),r={left:t.left-i.left+e.offset[0],right:t.right-i.right+e.offset[0],top:t.top-i.top+e.offset[1],bottom:t.bottom-i.bottom+e.offset[1]};e._bounds=hE.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,i=this.state;e.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):t.pointerButtons!==-1&&t.pointerButtons!==e.buttons)||(this.ctrl.setEventIds(e),t.pointerCapture&&e.target.setPointerCapture(e.pointerId),!i._pointerActive&&(this.start(e),this.setupPointer(e),i._pointerId=$9(e),i._pointerActive=!0,this.computeValues(Oae(e)),this.computeInitial(),t.preventScroll?this.setupScrollPrevention(e):t.delay>0?this.setupDelayTrigger(e):this.startPointerDrag(e)))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,i=this.config;if(!t._pointerActive||t.type===e.type&&e.timeStamp===t.timeStamp)return;const r=$9(e);if(t._pointerId&&r!==t._pointerId)return;const o=Oae(e);if(document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=Ma.sub(o,t._values),this.computeValues(o)),Ma.addTo(t._movement,t._delta),this.compute(e),t._delayed){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(e);return}if(i.preventScroll&&!t._preventScroll)if(t.axis)if(t.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){t._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{}const t=this.state,i=this.config;if(!t._pointerActive)return;const r=$9(e);if(t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,s]=t._distance;if(t.tap=o<=3&&s<=3,t.tap&&i.filterTaps)t._force=!0;else{const[a,l]=t.direction,[c,u]=t.velocity,[d,h]=t.movement,[f,g]=i.swipe.velocity,[p,m]=i.swipe.distance,v=i.swipe.duration;t.elapsedTime<v&&(Math.abs(c)>f&&Math.abs(d)>p&&(t.swipe[0]=a),Math.abs(u)>g&&Math.abs(h)>m&&(t.swipe[1]=l))}this.emit()}pointerClick(e){this.state.tap||(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config;let i=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){RYe(e),this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1}),this.eventStore.add(this.sharedConfig.window,"touch","end",this.clean.bind(this),{passive:!1}),this.eventStore.add(this.sharedConfig.window,"touch","cancel",this.clean.bind(this),{passive:!1}),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScroll,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",this.startPointerDrag.bind(this),this.config.delay,e)}keyDown(e){const t=Bae[e.key];if(t){const i=this.state,r=e.shiftKey?10:e.altKey?.1:1;i._delta=t(r),this.start(e),i._keyboardActive=!0,Ma.addTo(i._movement,i._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Bae&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this))),e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this)),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0})}}function RYe(n){"persist"in n&&typeof n.persist=="function"&&n.persist()}const fE=typeof window!="undefined"&&window.document&&window.document.createElement;function $ae(){return fE&&"ontouchstart"in window}function NYe(){return $ae()||fE&&window.navigator.maxTouchPoints>1}function AYe(){return fE&&"onpointerdown"in window}function OYe(){return fE&&"exitPointerLock"in window.document}function PYe(){try{return"constructor"in GestureEvent}catch{return!1}}const Xc={isBrowser:fE,gesture:PYe(),touch:$ae(),touchscreen:NYe(),pointer:AYe(),pointerLock:OYe()},MYe=250,FYe=180,BYe=.5,$Ye=50,WYe=250,HYe=ts(ts({},hE),{},{pointerLock(n,e,{pointer:{lock:t=!1,touch:i=!1}={}}){return this.useTouch=Xc.touch&&i,Xc.pointerLock&&t},device(n,e){return this.useTouch?"touch":this.pointerLock?"mouse":Xc.pointer?"pointer":Xc.touch?"touch":"mouse"},preventScroll(n=!1,e,{preventScrollAxis:t="y"}){return t&&(this.preventScrollAxis=t),Xc.touchscreen?typeof n=="number"?n:n?MYe:!1:!1},pointerCapture(n,e,{pointer:{capture:t=!0,buttons:i=1}={}}){return this.pointerButtons=i,!this.pointerLock&&this.device==="pointer"&&t},threshold(n,e,{filterTaps:t=!1,axis:i=void 0}){const r=Ma.toVector(n,t?3:i?1:0);return this.filterTaps=t,r},swipe({velocity:n=BYe,distance:e=$Ye,duration:t=WYe}={}){return{velocity:this.transform(Ma.toVector(n)),distance:this.transform(Ma.toVector(e)),duration:t}},delay(n=0){switch(n){case!0:return FYe;case!1:return 0;default:return n}}});ts(ts({},Fae),{},{useTouch(n,e,{pointer:{touch:t=!1}={}}){return Xc.touch&&t},device(n,e,t){if(t.shared.target&&!Xc.touch&&Xc.gesture)return"gesture";if(this.useTouch)return"touch";if(Xc.touchscreen){if(Xc.pointer)return"pointer";if(Xc.touch)return"touch"}},bounds(n,e,{scaleBounds:t={},angleBounds:i={}}){const r=s=>{const a=Pae(hN(t,s),{min:-1/0,max:1/0});return[a.min,a.max]},o=s=>{const a=Pae(hN(i,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof t!="function"&&typeof i!="function"?[r(),o()]:s=>[r(s),o(s)]},threshold(n,e,t){return this.lockDirection=t.axis==="lock",Ma.toVector(n,this.lockDirection?[.1,3]:0)}}),ts(ts({},hE),{},{mouseOnly:(n=!0)=>n}),ts(ts({},hE),{},{mouseOnly:(n=!0)=>n});const Wae=new Map,W9=new Map;function VYe(n){Wae.set(n.key,n.engine),W9.set(n.key,n.resolver)}const zYe={key:"drag",engine:IYe,resolver:HYe};function UYe(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}function jYe(n,e){if(n==null)return{};var t=UYe(n,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,i)||(t[i]=n[i]))}return t}const qYe={target(n){if(n)return()=>"current"in n?n.current:n},enabled(n=!0){return n},window(n=Xc.isBrowser?window:void 0){return n},eventOptions({passive:n=!0,capture:e=!1}={}){return{passive:n,capture:e}},transform(n){return n}},KYe=["target","eventOptions","window","enabled","transform"];function gN(n={},e){const t={};for(const[i,r]of Object.entries(e))switch(typeof r){case"function":t[i]=r.call(t,n[i],i,n);break;case"object":t[i]=gN(n[i],r);break;case"boolean":r&&(t[i]=n[i]);break}return t}function GYe(n,e){const t=n,{target:i,eventOptions:r,window:o,enabled:s,transform:a}=t,l=jYe(t,KYe),c={shared:gN({target:i,eventOptions:r,window:o,enabled:s,transform:a},qYe)};if(e){const u=W9.get(e);c[e]=gN(ts({shared:c.shared},l),u)}else for(const u in l){const d=W9.get(u);d&&(c[u]=gN(ts({shared:c.shared},l[u]),d))}return c}class Hae{constructor(e){wl(this,"_listeners",[]),this._ctrl=e}add(e,t,i,r,o){const s=_Ye(t,i),a=ts(ts({},this._ctrl.config.shared.eventOptions),o);e.addEventListener(s,r,a),this._listeners.push(()=>e.removeEventListener(s,r,a))}clean(){this._listeners.forEach(e=>e()),this._listeners=[]}}class YYe{constructor(){wl(this,"_timeouts",new Map)}add(e,t,i=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,i,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class ZYe{constructor(e){wl(this,"gestures",new Set),wl(this,"_targetEventStore",new Hae(this)),wl(this,"gestureEventStores",{}),wl(this,"gestureTimeoutStores",{}),wl(this,"handlers",{}),wl(this,"config",{}),wl(this,"pointerIds",new Set),wl(this,"touchIds",new Set),wl(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),XYe(this,e)}setEventIds(e){B9(e)?this.touchIds=new Set(yYe(e)):"pointerId"in e&&(e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId))}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=GYe(e,t)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,i=t.eventOptions,r={};let o;if(t.target&&(o=t.target(),!o))return;const s=QYe(r,i,!!o);if(t.enabled){for(const a of this.gestures)if(this.config[a].enabled){const l=Wae.get(a);new l(this,e,a).bind(s)}for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](ts(ts({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const a in r)r[a]=SYe(...r[a]);if(!o)return r;for(const a in r){let l=a.substr(2).toLowerCase();const c=!!~l.indexOf("capture"),u=!!~l.indexOf("passive");(c||u)&&(l=l.replace(/capture|passive/g,"")),this._targetEventStore.add(o,l,"",r[a],{capture:c,passive:u})}}}function iy(n,e){n.gestures.add(e),n.gestureEventStores[e]=new Hae(n),n.gestureTimeoutStores[e]=new YYe}function XYe(n,e){e.drag&&iy(n,"drag"),e.wheel&&iy(n,"wheel"),e.scroll&&iy(n,"scroll"),e.move&&iy(n,"move"),e.pinch&&iy(n,"pinch"),e.hover&&iy(n,"hover")}const QYe=(n,e,t)=>(i,r,o,s={},a=!1)=>{var l,c;const u=(l=s.capture)!==null&&l!==void 0?l:e.capture,d=(c=s.passive)!==null&&c!==void 0?c:e.passive;let h=a?i:mYe(i,r,u);t&&d&&(h+="Passive"),n[h]=n[h]||[],n[h].push(o)};function JYe(n,e={},t,i){const r=xe.useMemo(()=>new ZYe(n),[]);if(r.applyHandlers(n,i),r.applyConfig(e,t),xe.useEffect(r.effect.bind(r)),xe.useEffect(()=>r.clean.bind(r),[]),e.target===void 0)return r.bind.bind(r)}function Vae(n,e={}){return VYe(zYe),JYe({drag:n},e,"drag")}const eZe=CTe["useId".toString()]||(()=>{});let tZe=0;function nZe(n){const[e,t]=O.exports.useState(eZe());return lN(()=>{n||t(i=>i!=null?i:String(tZe++))},[n]),n||(e?`radix-${e}`:"")}const iZe=O.exports.forwardRef((n,e)=>O.exports.createElement(X1.span,vt({},n,{ref:e,style:ot(Te({},n.style),{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"})}))),rZe=O.exports.forwardRef((n,e)=>{const s=n,{children:t,width:i=10,height:r=5}=s,o=gr(s,["children","width","height"]);return O.exports.createElement(X1.svg,vt({},o,{ref:e,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),n.asChild?t:O.exports.createElement("polygon",{points:"0,0 30,0 15,10"}))});function zae(n){const[e,t]=O.exports.useState(void 0);return O.exports.useEffect(()=>{if(n){const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else{const l=n.getBoundingClientRect();s=l.width,a=l.height}t({width:s,height:a})});return i.observe(n,{box:"border-box"}),()=>{t(void 0),i.unobserve(n)}}},[n]),e}function oZe(n,e){const t=Q_.get(n);return t===void 0?(Q_.set(n,{rect:{},callbacks:[e]}),Q_.size===1&&(H9=requestAnimationFrame(Uae))):(t.callbacks.push(e),e(n.getBoundingClientRect())),()=>{const i=Q_.get(n);if(i===void 0)return;const r=i.callbacks.indexOf(e);r>-1&&i.callbacks.splice(r,1),i.callbacks.length===0&&(Q_.delete(n),Q_.size===0&&cancelAnimationFrame(H9))}}let H9;const Q_=new Map;function Uae(){const n=[];Q_.forEach((e,t)=>{const i=t.getBoundingClientRect();var r,o;r=e.rect,o=i,(r.width!==o.width||r.height!==o.height||r.top!==o.top||r.right!==o.right||r.bottom!==o.bottom||r.left!==o.left)&&(e.rect=i,n.push(e))}),n.forEach(e=>{e.callbacks.forEach(t=>t(e.rect))}),H9=requestAnimationFrame(Uae)}function jae(n){const[e,t]=O.exports.useState();return O.exports.useEffect(()=>{if(n){const i=oZe(n,t);return()=>{t(void 0),i()}}},[n]),e}function qae(n,e=[]){let t=[];const i=()=>{const r=t.map(o=>O.exports.createContext(o));return function(o){const s=(o==null?void 0:o[n])||r;return O.exports.useMemo(()=>({[`__scope${n}`]:ot(Te({},o),{[n]:s})}),[o,s])}};return i.scopeName=n,[function(r,o){const s=O.exports.createContext(o),a=t.length;function l(c){const p=c,{scope:u,children:d}=p,h=gr(p,["scope","children"]),f=(u==null?void 0:u[n][a])||s,g=O.exports.useMemo(()=>h,Object.values(h));return O.exports.createElement(f.Provider,{value:g},d)}return t=[...t,o],l.displayName=r+"Provider",[l,function(c,u){const d=(u==null?void 0:u[n][a])||s,h=O.exports.useContext(d);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${c}\` must be used within \`${r}\``)}]},sZe(i,...e)]}function sZe(...n){const e=n[0];if(n.length===1)return e;const t=()=>{const i=n.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(r){const o=i.reduce((s,{useScope:a,scopeName:l})=>Te(Te({},s),a(r)[`__scope${l}`]),{});return O.exports.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}function aZe({anchorRect:n,popperSize:e,arrowSize:t,arrowOffset:i=0,side:r,sideOffset:o=0,align:s,alignOffset:a=0,shouldAvoidCollisions:l=!0,collisionBoundariesRect:c,collisionTolerance:u=0}){if(!n||!e||!c)return{popperStyles:lZe,arrowStyles:V9};const d=function(S,k,T=0,D=0,R){const N=R?R.height:0,A=Kae(k,S,"x"),V=Kae(k,S,"y"),P=V.before-T-N,U=V.after+T+N,F=A.before-T-N,M=A.after+T+N;return{top:{start:{x:A.start+D,y:P},center:{x:A.center,y:P},end:{x:A.end-D,y:P}},right:{start:{x:M,y:V.start+D},center:{x:M,y:V.center},end:{x:M,y:V.end-D}},bottom:{start:{x:A.start+D,y:U},center:{x:A.center,y:U},end:{x:A.end-D,y:U}},left:{start:{x:F,y:V.start+D},center:{x:F,y:V.center},end:{x:F,y:V.end-D}}}}(e,n,o,a,t),h=d[r][s];if(l===!1){const S=Gae(h);let k=V9;return t&&(k=Zae({popperSize:e,arrowSize:t,arrowOffset:i,side:r,align:s})),{popperStyles:ot(Te({},S),{"--radix-popper-transform-origin":Yae(e,r,s,i,t)}),arrowStyles:k,placedSide:r,placedAlign:s}}const f=DOMRect.fromRect(Te(Te({},e),h)),g=(p=c,m=u,DOMRect.fromRect({width:p.width-2*m,height:p.height-2*m,x:p.left+m,y:p.top+m}));var p,m;const v=Qae(f,g),_=d[Xae(r)][s],y=function(S,k,T){const D=Xae(S);return k[S]&&!T[D]?D:S}(r,v,Qae(DOMRect.fromRect(Te(Te({},e),_)),g)),b=function(S,k,T,D,R){const N=T==="top"||T==="bottom",A=N?"left":"top",V=N?"right":"bottom",P=N?"width":"height",U=k[P]>S[P];return(D==="start"||D==="center")&&(R[A]&&U||R[V]&&!U)?"end":(D==="end"||D==="center")&&(R[V]&&U||R[A]&&!U)?"start":D}(e,n,r,s,v),w=Gae(d[y][b]);let x=V9;return t&&(x=Zae({popperSize:e,arrowSize:t,arrowOffset:i,side:y,align:b})),{popperStyles:ot(Te({},w),{"--radix-popper-transform-origin":Yae(e,y,b,i,t)}),arrowStyles:x,placedSide:y,placedAlign:b}}function Kae(n,e,t){const i=n[t==="x"?"left":"top"],r=t==="x"?"width":"height",o=n[r],s=e[r];return{before:i-s,start:i,center:i+(o-s)/2,end:i+o-s,after:i+o}}function Gae(n){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(n.x+window.scrollX)}px, ${Math.round(n.y+window.scrollY)}px, 0)`}}function Yae(n,e,t,i,r){const o=e==="top"||e==="bottom",s=r?r.width:0,a=r?r.height:0,l=s/2+i;let c="",u="";return o?(c={start:`${l}px`,center:"center",end:n.width-l+"px"}[t],u=e==="top"?`${n.height+a}px`:-a+"px"):(c=e==="left"?`${n.width+a}px`:-a+"px",u={start:`${l}px`,center:"center",end:n.height-l+"px"}[t]),`${c} ${u}`}const lZe={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},V9={position:"absolute",opacity:0};function Zae({popperSize:n,arrowSize:e,arrowOffset:t,side:i,align:r}){const o=(n.width-e.width)/2,s=(n.height-e.width)/2,a={top:0,right:90,bottom:180,left:-90}[i],l=Math.max(e.width,e.height),c={width:`${l}px`,height:`${l}px`,transform:`rotate(${a}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:cZe(i,r)};return i!=="top"&&i!=="bottom"||(r==="start"&&(c.left=`${t}px`),r==="center"&&(c.left=`${o}px`),r==="end"&&(c.right=`${t}px`)),i!=="left"&&i!=="right"||(r==="start"&&(c.top=`${t}px`),r==="center"&&(c.top=`${s}px`),r==="end"&&(c.bottom=`${t}px`)),c}function cZe(n,e){return(n!=="top"&&n!=="right"||e!=="end")&&(n!=="bottom"&&n!=="left"||e==="end")?"ltr":"rtl"}function Xae(n){return{top:"bottom",right:"left",bottom:"top",left:"right"}[n]}function Qae(n,e){return{top:n.top<e.top,right:n.right>e.right,bottom:n.bottom>e.bottom,left:n.left<e.left}}const[Jae,ele]=qae("Popper"),[uZe,tle]=Jae("Popper"),dZe=n=>{const{__scopePopper:e,children:t}=n,[i,r]=O.exports.useState(null);return O.exports.createElement(uZe,{scope:e,anchor:i,onAnchorChange:r},t)},hZe=O.exports.forwardRef((n,e)=>{const l=n,{__scopePopper:t,virtualRef:i}=l,r=gr(l,["__scopePopper","virtualRef"]),o=tle("PopperAnchor",t),s=O.exports.useRef(null),a=aN(e,s);return O.exports.useEffect(()=>{o.onAnchorChange((i==null?void 0:i.current)||s.current)}),i?null:O.exports.createElement(X1.div,vt({},r,{ref:a}))}),[fZe,gZe]=Jae("PopperContent"),pZe=O.exports.forwardRef((n,e)=>{const N=n,{__scopePopper:t,side:i="bottom",sideOffset:r,align:o="center",alignOffset:s,collisionTolerance:a,avoidCollisions:l=!0}=N,c=gr(N,["__scopePopper","side","sideOffset","align","alignOffset","collisionTolerance","avoidCollisions"]),u=tle("PopperContent",t),[d,h]=O.exports.useState(),f=jae(u.anchor),[g,p]=O.exports.useState(null),m=zae(g),[v,_]=O.exports.useState(null),y=zae(v),b=aN(e,A=>p(A)),w=function(){const[A,V]=O.exports.useState(void 0);return O.exports.useEffect(()=>{let P;function U(){V({width:window.innerWidth,height:window.innerHeight})}function F(){window.clearTimeout(P),P=window.setTimeout(U,100)}return U(),window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)},[]),A}(),x=w?DOMRect.fromRect(ot(Te({},w),{x:0,y:0})):void 0,{popperStyles:S,arrowStyles:k,placedSide:T,placedAlign:D}=aZe({anchorRect:f,popperSize:m,arrowSize:y,arrowOffset:d,side:i,sideOffset:r,align:o,alignOffset:s,shouldAvoidCollisions:l,collisionBoundariesRect:x,collisionTolerance:a}),R=T!==void 0;return O.exports.createElement("div",{style:S,"data-radix-popper-content-wrapper":""},O.exports.createElement(fZe,{scope:t,arrowStyles:k,onArrowChange:_,onArrowOffsetChange:h},O.exports.createElement(X1.div,vt({"data-side":T,"data-align":D},c,{style:ot(Te({},c.style),{animation:R?void 0:"none"}),ref:b}))))}),mZe=O.exports.forwardRef(function(n,e){const a=n,{__scopePopper:t,offset:i}=a,r=gr(a,["__scopePopper","offset"]),o=gZe("PopperArrow",t),{onArrowOffsetChange:s}=o;return O.exports.useEffect(()=>s(i),[s,i]),O.exports.createElement("span",{style:ot(Te({},o.arrowStyles),{pointerEvents:"none"})},O.exports.createElement("span",{ref:o.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},O.exports.createElement(rZe,vt({},r,{ref:e,style:ot(Te({},r.style),{display:"block"})}))))}),_Ze=dZe,vZe=hZe,bZe=pZe,yZe=mZe,nle=n=>{const{present:e,children:t}=n,i=function(s){const[a,l]=O.exports.useState(),c=O.exports.useRef({}),u=O.exports.useRef(s),d=O.exports.useRef("none"),h=s?"mounted":"unmounted",[f,g]=function(p,m){return O.exports.useReducer((v,_)=>{const y=m[v][_];return y!=null?y:v},p)}(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return O.exports.useEffect(()=>{const p=pN(c.current);d.current=f==="mounted"?p:"none"},[f]),lN(()=>{const p=c.current,m=u.current;if(m!==s){const v=d.current,_=pN(p);s?g("MOUNT"):_==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(m&&v!==_?"ANIMATION_OUT":"UNMOUNT"),u.current=s}},[s,g]),lN(()=>{if(a){const p=v=>{const _=pN(c.current).includes(v.animationName);v.target===a&&_&&g("ANIMATION_END")},m=v=>{v.target===a&&(d.current=pN(c.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}},[a,g]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:O.exports.useCallback(p=>{p&&(c.current=getComputedStyle(p)),l(p)},[])}}(e),r=typeof t=="function"?t({present:i.isPresent}):O.exports.Children.only(t),o=aN(i.ref,r.ref);return typeof t=="function"||i.isPresent?O.exports.cloneElement(r,{ref:o}):null};function pN(n){return(n==null?void 0:n.animationName)||"none"}nle.displayName="Presence";function ile(n){const e=O.exports.useRef(n);return O.exports.useEffect(()=>{e.current=n},[n]),e.current}function z9(n){const e=O.exports.useRef(n);return O.exports.useEffect(()=>{e.current=n}),O.exports.useMemo(()=>(...t)=>{var i;return(i=e.current)===null||i===void 0?void 0:i.call(e,...t)},[])}function CZe(n){const e=z9(n);O.exports.useEffect(()=>{const t=i=>{i.key==="Escape"&&e(i)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])}function wZe({prop:n,defaultProp:e,onChange:t=()=>{}}){const[i,r]=function({defaultProp:l,onChange:c}){const u=O.exports.useState(l),[d]=u,h=O.exports.useRef(d),f=z9(c);return O.exports.useEffect(()=>{h.current!==d&&(f(d),h.current=d)},[d,h,f]),u}({defaultProp:e,onChange:t}),o=n!==void 0,s=o?n:i,a=z9(t);return[s,O.exports.useCallback(l=>{if(o){const c=l,u=typeof l=="function"?c(n):l;u!==n&&a(u)}else r(l)},[o,n,r,a])]}function ry(n,e,{checkForDefaultPrevented:t=!0}={}){return function(i){if(n==null||n(i),t===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}const[rle,h$t]=qae("Tooltip",[ele]),mN=ele(),SZe=700,[f$t,xZe]=rle("TooltipProvider",{isOpenDelayed:!0,delayDuration:SZe,onOpen:()=>{},onClose:()=>{}}),[EZe,_N]=rle("Tooltip"),kZe=n=>{const{__scopeTooltip:e,children:t,open:i,defaultOpen:r=!1,onOpenChange:o,delayDuration:s}=n,a=xZe("Tooltip",e),l=mN(e),[c,u]=O.exports.useState(null),d=nZe(),h=O.exports.useRef(0),f=s!=null?s:a.delayDuration,g=O.exports.useRef(!1),{onOpen:p,onClose:m}=a,[v=!1,_]=wZe({prop:i,defaultProp:r,onChange:x=>{x&&(document.dispatchEvent(new CustomEvent("tooltip.open")),p()),o==null||o(x)}}),y=O.exports.useMemo(()=>v?g.current?"delayed-open":"instant-open":"closed",[v]),b=O.exports.useCallback(()=>{window.clearTimeout(h.current),g.current=!1,_(!0)},[_]),w=O.exports.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,_(!0)},f)},[f,_]);return O.exports.useEffect(()=>()=>window.clearTimeout(h.current),[]),O.exports.createElement(_Ze,l,O.exports.createElement(EZe,{scope:e,contentId:d,open:v,stateAttribute:y,trigger:c,onTriggerChange:u,onTriggerEnter:O.exports.useCallback(()=>{a.isOpenDelayed?w():b()},[a.isOpenDelayed,w,b]),onOpen:O.exports.useCallback(b,[b]),onClose:O.exports.useCallback(()=>{window.clearTimeout(h.current),_(!1),m()},[_,m])},t))},LZe=O.exports.forwardRef((n,e)=>{const c=n,{__scopeTooltip:t}=c,i=gr(c,["__scopeTooltip"]),r=_N("TooltipTrigger",t),o=mN(t),s=aN(e,r.onTriggerChange),a=O.exports.useRef(!1),l=O.exports.useCallback(()=>a.current=!1,[]);return O.exports.useEffect(()=>()=>document.removeEventListener("mouseup",l),[l]),O.exports.createElement(vZe,vt({asChild:!0},o),O.exports.createElement(X1.button,vt({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},i,{ref:s,onMouseEnter:ry(n.onMouseEnter,r.onTriggerEnter),onMouseLeave:ry(n.onMouseLeave,r.onClose),onMouseDown:ry(n.onMouseDown,()=>{r.onClose(),a.current=!0,document.addEventListener("mouseup",l,{once:!0})}),onFocus:ry(n.onFocus,()=>{a.current||r.onOpen()}),onBlur:ry(n.onBlur,r.onClose),onClick:ry(n.onClick,r.onClose)})))}),TZe=O.exports.forwardRef((n,e)=>{const o=n,{forceMount:t}=o,i=gr(o,["forceMount"]),r=_N("TooltipContent",n.__scopeTooltip);return O.exports.createElement(nle,{present:t||r.open},O.exports.createElement(DZe,vt({ref:e},i)))}),DZe=O.exports.forwardRef((n,e)=>{const d=n,{__scopeTooltip:t,children:i,"aria-label":r,portalled:o=!0}=d,s=gr(d,["__scopeTooltip","children","aria-label","portalled"]),a=_N("TooltipContent",t),l=mN(t),c=o?hae:O.exports.Fragment,{onClose:u}=a;return CZe(()=>u()),O.exports.useEffect(()=>(document.addEventListener("tooltip.open",u),()=>document.removeEventListener("tooltip.open",u)),[u]),O.exports.createElement(c,null,O.exports.createElement(RZe,{__scopeTooltip:t}),O.exports.createElement(bZe,vt({"data-state":a.stateAttribute},l,s,{ref:e,style:ot(Te({},s.style),{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"})}),O.exports.createElement(uae,null,i),O.exports.createElement(iZe,{id:a.contentId,role:"tooltip"},r||i)))}),IZe=O.exports.forwardRef((n,e)=>{const o=n,{__scopeTooltip:t}=o,i=gr(o,["__scopeTooltip"]),r=mN(t);return O.exports.createElement(yZe,vt({},r,i,{ref:e}))});function RZe(n){const{__scopeTooltip:e}=n,t=_N("CheckTriggerMoved",e),i=jae(t.trigger),r=i==null?void 0:i.left,o=ile(r),s=i==null?void 0:i.top,a=ile(s),l=t.onClose;return O.exports.useEffect(()=>{(o!==void 0&&o!==r||a!==void 0&&a!==s)&&l()},[l,o,a,r,s]),null}const NZe=kZe,AZe=LZe,OZe=TZe,PZe=IZe;function MZe(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}function Ui(n,e){if(n==null)return{};var t=MZe(n,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,i)||(t[i]=n[i]))}return t}let Fr;(function(n){n[n.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",n[n.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",n[n.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",n[n.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",n[n.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",n[n.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",n[n.THEME_ERROR=6]="THEME_ERROR",n[n.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",n[n.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",n[n.EMPTY_KEY=9]="EMPTY_KEY"})(Fr||(Fr={}));const FZe={[Fr.UNSUPPORTED_INPUT]:(n,e)=>[`An input with type \`${n}\` input was found at path \`${e}\` but it's not supported yet.`],[Fr.NO_COMPONENT_FOR_TYPE]:(n,e)=>[`Type \`${n}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[Fr.UNKNOWN_INPUT]:(n,e)=>[`input at path \`${n}\` is not recognized.`,e],[Fr.DUPLICATE_KEYS]:(n,e,t)=>[`Key \`${n}\` of path \`${e}\` already exists at path \`${t}\`. Even nested keys need to be unique. Rename one of the keys.`],[Fr.ALREADY_REGISTERED_TYPE]:n=>[`Type ${n} has already been registered. You can't register a component with the same type.`],[Fr.CLIPBOARD_ERROR]:n=>["Error copying the value",n],[Fr.THEME_ERROR]:(n,e)=>[`Error accessing the theme \`${n}.${e}\` value.`],[Fr.PATH_DOESNT_EXIST]:n=>[`Error getting the value at path \`${n}\`. There is probably an error in your \`render\` function.`],[Fr.PATH_DOESNT_EXIST]:n=>[`Error accessing the value at path \`${n}\``],[Fr.INPUT_TYPE_OVERRIDE]:(n,e,t)=>[`Input at path \`${n}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${t}\`.`],[Fr.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function ole(n,e,...t){const[i,...r]=FZe[e](...t);console[n]("LEVA: "+i,...r)}const Df=ole.bind(null,"warn"),BZe=ole.bind(null,"log"),$Ze=["value"],WZe=["schema"],HZe=["value"],sle=[],J_={};function ale(n){let{value:e}=n,t=Ui(n,$Ze);for(let i of sle){const r=i(e,t);if(r)return r}}function If(n,e){let{schema:t}=e,i=Ui(e,WZe);if(n in J_){Df(Fr.ALREADY_REGISTERED_TYPE,n);return}sle.push((r,o)=>t(r,o)&&n),J_[n]=i}function Rf(n){return n}function U9(n,e,t,i){const{normalize:r}=J_[n];if(r)return r(e,t,i);if(typeof e!="object"||!("value"in e))return{value:e};const{value:o}=e,s=Ui(e,HZe);return{value:o,settings:s}}function VZe(n,e,t,i,r,o){const{sanitize:s}=J_[n];return s?s(e,t,i,r,o):e}function lle(n,e,t){const{format:i}=J_[n];return i?i(e,t):e}function zZe(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function cle(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function dn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?cle(Object(t),!0).forEach(function(i){zZe(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):cle(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}const Op=(n,e,t)=>n>t?t:n<e?e:n,UZe=n=>{if(n===""||typeof n=="number")return n;try{const e=Pp(n);if(!isNaN(e))return e}catch{}return parseFloat(n)},jZe=Math.log(10);function ule(n){let e=Math.abs(+String(n).replace(".",""));if(e===0)return .01;for(;e!==0&&e%10==0;)e/=10;const t=Math.floor(Math.log(e)/jZe)+1,i=Math.floor(Math.log10(Math.abs(n))),r=Math.pow(10,i-t);return Math.max(r,.001)}const vN=(n,e,t)=>t===e?0:(Op(n,e,t)-e)/(t-e),bN=(n,e,t)=>n*(t-e)+e,qZe=()=>"_"+Math.random().toString(36).substr(2,9),dle=/\(([0-9+\-*/^ .]+)\)/,hle=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,fle=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,gle=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,ple=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,mle=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function Pp(n){if(isNaN(Number(n)))if(dle.test(n)){const e=n.replace(dle,(t,i)=>String(Pp(i)));return Pp(e)}else if(hle.test(n)){const e=n.replace(hle,(t,i,r)=>String(Math.pow(Number(i),Number(r))));return Pp(e)}else if(fle.test(n)){const e=n.replace(fle,(t,i,r)=>String(Number(i)*Number(r)));return Pp(e)}else if(gle.test(n)){const e=n.replace(gle,(t,i,r)=>{if(r!=0)return String(Number(i)/Number(r));throw new Error("Division by zero")});return Pp(e)}else if(ple.test(n)){const e=n.replace(ple,(t,i,r)=>String(Number(i)+Number(r)));return Pp(e)}else if(mle.test(n)){const e=n.replace(mle,(t,i,r)=>String(Number(i)-Number(r)));return Pp(e)}else return Number(n);return Number(n)}function KZe(n,e){return e.reduce((t,i)=>(!!n&&n.hasOwnProperty(i)&&(t[i]=n[i]),t),{})}function GZe(n,e){const t=dn({},n);return e.forEach(i=>i in n&&delete t[i]),t}function YZe(n,e){return n.reduce((t,i,r)=>Object.assign(t,{[e[r]]:i}),{})}let Hu;(function(n){n.BUTTON="BUTTON",n.BUTTON_GROUP="BUTTON_GROUP",n.MONITOR="MONITOR",n.FOLDER="FOLDER"})(Hu||(Hu={}));let Vu;(function(n){n.SELECT="SELECT",n.IMAGE="IMAGE",n.NUMBER="NUMBER",n.COLOR="COLOR",n.STRING="STRING",n.BOOLEAN="BOOLEAN",n.INTERVAL="INTERVAL",n.VECTOR3D="VECTOR3D",n.VECTOR2D="VECTOR2D"})(Vu||(Vu={}));const ZZe=["type","__customInput"],XZe=["render","label","optional","disabled","hint","onChange","onEditStart","onEditEnd","transient"],QZe=["type"];function _le(n,e,t={},i){if(typeof n!="object"||Array.isArray(n))return{type:i,input:n,options:dn({key:e,label:e,optional:!1,disabled:!1},t)};if("__customInput"in n){const{type:v,__customInput:_}=n,y=Ui(n,ZZe);return _le(_,e,y,v)}const{render:r,label:o,optional:s,disabled:a,hint:l,onChange:c,onEditStart:u,onEditEnd:d,transient:h}=n,f=Ui(n,XZe),g=dn({render:r,key:e,label:o!=null?o:e,hint:l,transient:h!=null?h:!!c,onEditStart:u,onEditEnd:d},t);let{type:p}=f,m=Ui(f,QZe);return p=i!=null?i:p,p in Hu?{type:p,input:m,options:g}:{type:p,input:m,options:dn(dn({},g),{},{onChange:c,optional:s!=null?s:!1,disabled:a!=null?a:!1})}}function JZe(n,e,t,i){const r=_le(n,e),{type:o,input:s,options:a}=r;if(o)return o in Hu?r:{type:o,input:U9(o,s,t,i),options:a};let l=ale(s);return l?{type:l,input:U9(l,s,t,i),options:a}:(l=ale({value:s}),l?{type:l,input:U9(l,{value:s},t,i),options:a}:!1)}function vle(n,e,t,i,r){const{value:o,type:s,settings:a}=n;n.value=yle({type:s,value:o,settings:a},e,t,i),n.fromPanel=r}const ble=function(e,t,i){this.type="LEVA_ERROR",this.message="LEVA: "+e,this.previousValue=t,this.error=i};function yle({type:n,value:e,settings:t},i,r,o){const s=n!=="SELECT"&&typeof i=="function"?i(e):i;let a;try{a=VZe(n,s,t,e,r,o)}catch(l){throw new ble(`The value \`${i}\` did not result in a correct value.`,e,l)}if(lE(a,e))throw new ble(`The value \`${i}\` did not result in a value update, which remained the same: \`${e}\`.
|
|
310
|
-
You can ignore this warning if this is the intended behavior.`,e);return a}const Cle=(n,e,t=!1)=>{let i=0;return function(){const r=arguments,o=t&&!i,s=()=>n.apply(this,r);window.clearTimeout(i),i=window.setTimeout(s,e),o&&s()}},wle=n=>n.shiftKey?5:n.altKey?1/5:1,eXe=["value"],tXe=["min","max"],nXe=n=>typeof n=="number"||typeof n=="string"&&!isNaN(parseFloat(n)),Sle=(n,{min:e=-1/0,max:t=1/0,suffix:i})=>{const r=parseFloat(n);if(n===""||isNaN(r))throw Error("Invalid number");const o=Op(r,e,t);return i?o+i:o},iXe=(n,{pad:e=0,suffix:t})=>{const i=parseFloat(n).toFixed(e);return t?i+t:i},xle=n=>{let{value:e}=n,t=Ui(n,eXe);const{min:i=-1/0,max:r=1/0}=t,o=Ui(t,tXe),s=Op(parseFloat(e),i,r);let a;if(!Number.isFinite(e)){const d=String(e).match(/[A-Z]+/i);d&&(a=d[0])}let l=t.step;l||(Number.isFinite(i)?Number.isFinite(r)?l=+(Math.abs(r-i)/100).toPrecision(1):l=+(Math.abs(s-i)/100).toPrecision(1):Number.isFinite(r)&&(l=+(Math.abs(r-s)/100).toPrecision(1)));const c=l?ule(l)*10:ule(s);l=l||c/10;const u=Math.round(Op(Math.log10(1/c),0,2));return{value:a?s+a:s,settings:dn({initialValue:s,step:l,pad:u,min:i,max:r,suffix:a},o)}},Ele=(n,{step:e,initialValue:t})=>{const i=Math.round((n-t)/e);return t+i*e};var kle=Object.freeze({__proto__:null,schema:nXe,sanitize:Sle,format:iXe,normalize:xle,sanitizeStep:Ele});const Lle=O.exports.createContext({});function ua(){return O.exports.useContext(Lle)}const j9=O.exports.createContext(null),Tle=O.exports.createContext(null),Dle=O.exports.createContext(null);function yN(){return O.exports.useContext(Tle)}function rXe(){return O.exports.useContext(Dle)}const Ile=()=>({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function CN(n,e){const[t,i]=n.split(" "),r={};return t!=="none"&&(r.boxShadow=`${e.inset?"inset ":""}0 0 0 $borderWidths${[e.key]} $colors${t!=="default"&&t||e.borderColor}`),i&&(r.backgroundColor=i),r}const gE={$inputStyle:()=>n=>CN(n,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>n=>CN(n,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>n=>CN(n,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>n=>CN(n,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:nn,css:g$t,createTheme:oXe,globalCss:sXe,keyframes:p$t}=fYe({prefix:"leva",theme:Ile(),utils:dn(dn({},gE),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:n=>({"&:focus":gE.$focusStyle()(n)}),$focusWithin:n=>({"&:focus-within":gE.$focusStyle()(n)}),$hover:n=>({"&:hover":gE.$hoverStyle()(n)}),$active:n=>({"&:active":gE.$activeStyle()(n)})})});sXe({".panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}})();function aXe(n){const e=Ile();if(!n)return{theme:e,className:""};Object.keys(n).forEach(i=>{Object.assign(e[i],n[i])});const t=oXe(e);return{theme:e,className:t.className}}function Nf(n,e){const{theme:t}=O.exports.useContext(j9);if(!(n in t)||!(e in t[n]))return Df(Fr.THEME_ERROR,n,e),"";let i=e;for(;;){let r=t[n][i];if(typeof r=="string"&&r.charAt(0)==="$")i=r.substr(1);else return r}}const Rle=nn("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}}}}),Nle=nn("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${Rle}`]:{paddingLeft:0}}),lXe=nn(Nle,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),cXe=nn("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:""}),uXe=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id"],dXe=["onUpdate"];function q9(n){let{innerLabel:e,value:t,onUpdate:i,onChange:r,onKeyDown:o,type:s,id:a}=n,l=Ui(n,uXe);const{id:c,emitOnEditStart:u,emitOnEditEnd:d}=ua(),h=a||c,f=O.exports.useRef(null),g=O.exports.useCallback(m=>v=>{const _=v.currentTarget.value;m(_)},[]);xe.useEffect(()=>{const m=f.current,v=g(_=>{i(_),d()});return m==null||m.addEventListener("blur",v),()=>m==null?void 0:m.removeEventListener("blur",v)},[g,i,d]);const p=O.exports.useCallback(m=>{m.key==="Enter"&&g(i)(m)},[g,i]);return dt(cXe,{children:[e&&typeof e=="string"?ne(Nle,{children:e}):e,ne(Rle,Te({levaType:s,ref:f,id:h,type:"text",autoComplete:"off",spellCheck:"false",value:t,onChange:g(r),onFocus:()=>u(),onKeyPress:p,onKeyDown:o},l))]})}function hXe(n){let{onUpdate:e}=n,t=Ui(n,dXe);const i=O.exports.useCallback(o=>e(UZe(o)),[e]),r=O.exports.useCallback(o=>{const s=o.key==="ArrowUp"?1:o.key==="ArrowDown"?-1:0;if(s){o.preventDefault();const a=o.altKey?.1:o.shiftKey?10:1;e(l=>parseFloat(l)+s*a)}},[e]);return ne(q9,ot(Te({},t),{onUpdate:i,onKeyDown:r,type:"number"}))}const wN=nn("div",{}),K9=nn("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),fXe=nn("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${K9}::after`]:{opacity:.6},[`${wN}:hover > & + ${K9}::after`]:{opacity:.6},[`${wN}:hover > & > svg`]:{opacity:1}}),Ale=nn("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${wN}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),Ole=nn("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${Ale} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},"&:hover,&:focus-within":{color:"$highlight3"}}),Ple=nn(Ole,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),gXe=nn("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),pXe=nn("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),mXe=nn("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none"}}}}),Mle=nn("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Fle=nn("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),_Xe=nn("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),vXe=nn(PZe,{fill:"$toolTipBackground"});function G9({children:n}){const{className:e}=O.exports.useContext(j9);return ne(NGe,{className:e,children:n})}const bXe=["align"];function yXe(){const{id:n,disable:e,disabled:t}=ua();return dt(Qr,{children:[ne(pXe,{id:n+"__disable",type:"checkbox",checked:!t,onChange:()=>e(!t)}),ne("label",{htmlFor:n+"__disable"})]})}function CXe(n){const{id:e,optional:t,hint:i}=ua(),r=n.htmlFor||(e?{htmlFor:e}:null),o=!i&&typeof n.children=="string"?{title:n.children}:null;return dt(Qr,{children:[t&&ne(yXe,{}),i!==void 0?dt(NZe,{children:[ne(AZe,{asChild:!0,children:ne(Mle,Te(Te({},r),n))}),ne(OZe,{side:"top",sideOffset:2,children:dt(_Xe,{children:[i,ne(vXe,{})]})})]}):ne(Mle,Te(Te(Te({},r),o),n))]})}function zu(n){let{align:e}=n,t=Ui(n,bXe);const{value:i,label:r,key:o}=ua(),{hideCopyButton:s}=rXe(),a=!s&&o!==void 0,[l,c]=O.exports.useState(!1),u=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[o]:i!=null?i:""})),c(!0)}catch{Df(Fr.CLIPBOARD_ERROR,{[o]:i})}};return dt(gXe,{align:e,onPointerLeave:()=>c(!1),children:[ne(CXe,Te({},t)),a&&ne("div",{title:`Click to copy ${typeof r=="string"?r:o} value`,children:l?dt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:[ne("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),ne("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})]}):dt("svg",{onClick:u,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:[ne("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),ne("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"})]})})]})}const wXe=["toggled"],SXe=nn("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Y9(n){let{toggled:e}=n,t=Ui(n,wXe);return ne(SXe,ot(Te({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e?0:-90}deg)`}},t),{children:ne("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"})}))}const xXe=["input"];function Qc(n){let{input:e}=n,t=Ui(n,xXe);return e?ne(Ple,Te({},t)):ne(Ole,Te({},t))}function Ble({value:n,type:e,settings:t,setValue:i}){const[r,o]=O.exports.useState(lle(e,n,t)),s=O.exports.useRef(n),a=O.exports.useRef(t);a.current=t;const l=O.exports.useCallback(u=>o(lle(e,u,a.current)),[e]),c=O.exports.useCallback(u=>{try{i(u)}catch(d){const{type:h,previousValue:f}=d;if(h!=="LEVA_ERROR")throw d;l(f)}},[l,i]);return O.exports.useEffect(()=>{lE(n,s.current)||l(n),s.current=n},[n,l]),{displayValue:r,onChange:o,onUpdate:c}}function SN(n,e){const{emitOnEditStart:t,emitOnEditEnd:i}=ua();return Vae(r=>{r.first&&(document.body.classList.add("panel__dragged"),t());const o=n(r);return r.last&&(document.body.classList.remove("panel__dragged"),i()),o},e)}function EXe(n){const e=O.exports.useRef(null),t=O.exports.useRef(null),i=O.exports.useRef(!1);return O.exports.useEffect(()=>{const r=Cle(()=>{e.current.width=e.current.offsetWidth*window.devicePixelRatio,e.current.height=e.current.offsetHeight*window.devicePixelRatio,n(e.current,t.current)},250);return window.addEventListener("resize",r),i.current||(r(),i.current=!0),()=>window.removeEventListener("resize",r)},[n]),O.exports.useEffect(()=>{t.current=e.current.getContext("2d")},[]),[e,t]}function $le(){const n=O.exports.useRef(null),e=O.exports.useRef({x:0,y:0}),t=O.exports.useCallback(i=>{Object.assign(e.current,i),n.current&&(n.current.style.transform=`translate3d(${e.current.x}px, ${e.current.y}px, 0)`)},[]);return[n,t]}const kXe=["__refCount"],Z9=(n,e)=>{if(!n[e])return null;const t=n[e];return Ui(t,kXe)};function LXe(n){const e=yN(),[t,i]=O.exports.useState(Z9(e.getData(),n)),r=O.exports.useCallback(c=>e.setValueAtPath(n,c,!0),[n,e]),o=O.exports.useCallback(c=>e.setSettingsAtPath(n,c),[n,e]),s=O.exports.useCallback(c=>e.disableInputAtPath(n,c),[n,e]),a=O.exports.useCallback(()=>e.emitOnEditStart(n),[n,e]),l=O.exports.useCallback(()=>e.emitOnEditEnd(n),[n,e]);return O.exports.useEffect(()=>{i(Z9(e.getData(),n));const c=e.useStore.subscribe(u=>Z9(u.data,n),i,{equalityFn:cE});return()=>c()},[e,n]),[t,{set:r,setSettings:o,disable:s,storeId:e.storeId,emitOnEditStart:a,emitOnEditEnd:l}]}const TXe=nn("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),Wle=nn("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),X9=nn("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),Hle=nn("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),Vle=nn("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function DXe({value:n,min:e,max:t,onDrag:i,step:r,initialValue:o}){const s=O.exports.useRef(null),a=O.exports.useRef(null),l=O.exports.useRef(0),c=Nf("sizes","scrubberWidth"),u=SN(({event:h,first:f,xy:[g],movement:[p],memo:m})=>{if(f){const{width:_,left:y}=s.current.getBoundingClientRect();l.current=_-parseFloat(c),m=(h==null?void 0:h.target)===a.current?n:bN((g-y)/_,e,t)}const v=m+bN(p/l.current,0,t-e);return i(Ele(v,{step:r,initialValue:o})),m}),d=vN(n,e,t);return dt(Hle,ot(Te({ref:s},u()),{children:[ne(Wle,{children:ne(Vle,{style:{left:0,right:`${(1-d)*100}%`}})}),ne(X9,{ref:a,style:{left:`calc(${d} * (100% - ${c}))`}})]}))}const IXe=xe.memo(({label:n,onUpdate:e,step:t,innerLabelTrim:i})=>{const[r,o]=O.exports.useState(!1),s=SN(({active:a,delta:[l],event:c,memo:u=0})=>(o(a),u+=l/2,Math.abs(u)>=1&&(e(d=>parseFloat(d)+Math.floor(u)*t*wle(c)),u=0),u));return ne(lXe,ot(Te({dragging:r,title:n.length>1?n:""},s()),{children:n.slice(0,i)}))});function zle({label:n,id:e,displayValue:t,onUpdate:i,onChange:r,settings:o,innerLabelTrim:s=1}){const a=s>0&&ne(IXe,{label:n,step:o.step,onUpdate:i,innerLabelTrim:s});return ne(hXe,{id:e,value:String(t),onUpdate:i,onChange:r,innerLabel:a})}function RXe(){const n=ua(),{label:e,value:t,onUpdate:i,settings:r,id:o}=n,{min:s,max:a}=r,l=a!==1/0&&s!==-1/0;return dt(Qc,{input:!0,children:[ne(zu,{children:e}),dt(TXe,{hasRange:l,children:[l&&ne(DXe,Te({value:parseFloat(t),onDrag:i},r)),ne(zle,ot(Te({},n),{id:o,label:"value",innerLabelTrim:l?0:1}))]})]})}const{sanitizeStep:NXe}=kle,AXe=Ui(kle,["sanitizeStep"]);var OXe=Rf(dn({component:RXe},AXe)),PXe=Object.freeze({__proto__:null,schema:(n,e)=>Cl().schema({options:Cl().passesAnyOf(Cl().object(),Cl().array())}).test(e),sanitize:(n,{values:e})=>{if(e.indexOf(n)<0)throw Error("Selected value doesn't match Select options");return n},format:(n,{values:e})=>e.indexOf(n),normalize:n=>{let{value:e,options:t}=n,i,r;return Array.isArray(t)?(r=t,i=t.map(o=>String(o))):(r=Object.values(t),i=Object.keys(t)),"value"in n?r.includes(e)||(i.unshift(String(e)),r.unshift(e)):e=r[0],Object.values(t).includes(e)||(t[String(e)]=e),{value:e,settings:{keys:i,values:r}}}});const MXe=nn("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Q9=nn("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),FXe=nn("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Q9}:focus + &`]:{$focusStyle:""},[`${Q9}:hover + &`]:{$hoverStyle:""}});function BXe({displayValue:n,value:e,onUpdate:t,id:i,settings:r}){const{keys:o,values:s}=r,a=O.exports.useRef();return e===s[n]&&(a.current=o[n]),dt(MXe,{children:[ne(Q9,{id:i,value:n,onChange:l=>t(s[Number(l.currentTarget.value)]),children:o.map((l,c)=>ne("option",{value:c,children:l},l))}),ne(FXe,{children:a.current}),ne(Y9,{toggled:!0})]})}function $Xe(){const{label:n,value:e,displayValue:t,onUpdate:i,id:r,settings:o}=ua();return dt(Qc,{input:!0,children:[ne(zu,{children:n}),ne(BXe,{id:r,value:e,displayValue:t,onUpdate:i,settings:o})]})}var WXe=Rf(dn({component:$Xe},PXe)),HXe=Object.freeze({__proto__:null,schema:n=>Cl().string().test(n),sanitize:n=>{if(typeof n!="string")throw Error("Invalid string");return n}});const VXe=["displayValue","onUpdate","onChange"];function zXe(n){let{displayValue:e,onUpdate:t,onChange:i}=n,r=Ui(n,VXe);return ne(q9,Te({value:e,onUpdate:t,onChange:i},r))}function UXe(){const{label:n,displayValue:e,onUpdate:t,onChange:i}=ua();return dt(Qc,{input:!0,children:[ne(zu,{children:n}),ne(zXe,{displayValue:e,onUpdate:t,onChange:i})]})}var jXe=Rf(dn({component:UXe},HXe)),qXe=Object.freeze({__proto__:null,schema:n=>Cl().boolean().test(n),sanitize:n=>{if(typeof n!="boolean")throw Error("Invalid boolean");return n}});const KXe=nn("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function GXe({value:n,onUpdate:e,id:t}){return dt(KXe,{children:[ne("input",{id:t,type:"checkbox",checked:n,onChange:i=>e(i.currentTarget.checked)}),ne("label",{htmlFor:t,children:ne("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:ne("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})})]})}function YXe(){const{label:n,value:e,onUpdate:t,id:i}=ua();return dt(Qc,{input:!0,children:[ne(zu,{children:n}),ne(GXe,{value:e,onUpdate:t,id:i})]})}var ZXe=Rf(dn({component:YXe},qXe));const XXe=["locked"];function QXe({value:n,id:e,valueKey:t,settings:i,onUpdate:r,innerLabelTrim:o}){const s=O.exports.useRef(n[t]);s.current=n[t];const a=O.exports.useCallback(c=>r({[t]:yle({type:"NUMBER",value:s.current,settings:i},c)}),[r,i,t]),l=Ble({type:"NUMBER",value:n[t],settings:i,setValue:a});return ne(zle,{id:e,label:t,value:n[t],displayValue:l.displayValue,onUpdate:l.onUpdate,onChange:l.onChange,settings:i,innerLabelTrim:o})}const JXe=nn("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function eQe(n){let{locked:e}=n,t=Ui(n,XXe);return ne("svg",ot(Te({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{children:e?ne("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):ne("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}))}function J9({value:n,onUpdate:e,settings:t,innerLabelTrim:i}){const{id:r,setSettings:o}=ua(),{lock:s,locked:a}=t;return dt(JXe,{withLock:s,children:[s&&ne(eQe,{locked:a,onClick:()=>o({locked:!a})}),Object.keys(n).map((l,c)=>ne(QXe,{id:c===0?r:`${r}.${l}`,valueKey:l,value:n,settings:t[l],onUpdate:e,innerLabelTrim:i},l))]})}const Ule=(n,e)=>{const t={};let i=0,r=1/0;Object.entries(n).forEach(([o,s])=>{t[o]=xle(dn({value:s},e[o])).settings,i=Math.max(i,t[o].step),r=Math.min(r,t[o].pad)});for(let o in t){const{step:s,min:a,max:l}=e[o]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(l))&&(t[o].step=i,t[o].pad=r)}return t},tQe=["lock"],nQe=["value"];function iQe(n){const e=Cl().array().length(n).every.number(),t=i=>{if(!i||typeof i!="object")return!1;const r=Object.values(i);return r.length===n&&r.every(o=>isFinite(o))};return i=>e.test(i)||t(i)}function rQe(n){return Array.isArray(n)?"array":"object"}function pE(n,e,t){return rQe(n)===e?n:e==="array"?Object.values(n):YZe(n,t)}const oQe=(n,e,t)=>{const i=pE(n,"object",e.keys);for(let s in i)i[s]=Sle(i[s],e[s]);const r=Object.keys(i);let o={};if(r.length===e.keys.length)o=i;else{const s=pE(t,"object",e.keys);if(r.length===1&&e.locked){const a=r[0],l=i[a],c=s[a],u=c!==0?l/c:1;for(let d in s)d===a?o[a]=l:o[d]=s[d]*u}else o=dn(dn({},s),i)}return pE(o,e.format,e.keys)},sQe=(n,e)=>pE(n,"object",e.keys),aQe=n=>!!n&&("step"in n||"min"in n||"max"in n);function lQe(n,e,t=[]){const{lock:i=!1}=e,r=Ui(e,tQe),o=Array.isArray(n)?"array":"object",s=o==="object"?Object.keys(n):t,a=pE(n,"object",s),l=aQe(r)?s.reduce((u,d)=>Object.assign(u,{[d]:r}),{}):r,c=Ule(a,l);return{value:o==="array"?n:a,settings:dn(dn({},c),{},{format:o,keys:s,lock:i,locked:!1})}}function jle(n){return{schema:iQe(n.length),normalize:e=>{let{value:t}=e,i=Ui(e,nQe);return lQe(t,i,n)},format:(e,t)=>sQe(e,t),sanitize:(e,t,i)=>oQe(e,t,i)}}var cQe={grad:.9,turn:360,rad:360/(2*Math.PI)},Af=function(n){return typeof n=="string"?n.length>0:typeof n=="number"},bs=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t+0},Jc=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n>e?n:e},qle=function(n){return(n=isFinite(n)?n%360:0)>0?n:n+360},Kle=function(n){return{r:Jc(n.r,0,255),g:Jc(n.g,0,255),b:Jc(n.b,0,255),a:Jc(n.a)}},e7=function(n){return{r:bs(n.r),g:bs(n.g),b:bs(n.b),a:bs(n.a,3)}},uQe=/^#([0-9a-f]{3,8})$/i,xN=function(n){var e=n.toString(16);return e.length<2?"0"+e:e},Gle=function(n){var e=n.r,t=n.g,i=n.b,r=n.a,o=Math.max(e,t,i),s=o-Math.min(e,t,i),a=s?o===e?(t-i)/s:o===t?2+(i-e)/s:4+(e-t)/s:0;return{h:60*(a<0?a+6:a),s:o?s/o*100:0,v:o/255*100,a:r}},Yle=function(n){var e=n.h,t=n.s,i=n.v,r=n.a;e=e/360*6,t/=100,i/=100;var o=Math.floor(e),s=i*(1-t),a=i*(1-(e-o)*t),l=i*(1-(1-e+o)*t),c=o%6;return{r:255*[i,a,s,s,l,i][c],g:255*[l,i,i,a,s,s][c],b:255*[s,s,l,i,i,a][c],a:r}},Zle=function(n){return{h:qle(n.h),s:Jc(n.s,0,100),l:Jc(n.l,0,100),a:Jc(n.a)}},Xle=function(n){return{h:bs(n.h),s:bs(n.s),l:bs(n.l),a:bs(n.a,3)}},Qle=function(n){return Yle((t=(e=n).s,{h:e.h,s:(t*=((i=e.l)<50?i:100-i)/100)>0?2*t/(i+t)*100:0,v:i+t,a:e.a}));var e,t,i},mE=function(n){return{h:(e=Gle(n)).h,s:(r=(200-(t=e.s))*(i=e.v)/100)>0&&r<200?t*i/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,t,i,r},dQe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hQe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fQe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gQe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,t7={string:[[function(n){var e=uQe.exec(n);return e?(n=e[1]).length<=4?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?bs(parseInt(n[3]+n[3],16)/255,2):1}:n.length===6||n.length===8?{r:parseInt(n.substr(0,2),16),g:parseInt(n.substr(2,2),16),b:parseInt(n.substr(4,2),16),a:n.length===8?bs(parseInt(n.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(n){var e=fQe.exec(n)||gQe.exec(n);return e?e[2]!==e[4]||e[4]!==e[6]?null:Kle({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(n){var e=dQe.exec(n)||hQe.exec(n);if(!e)return null;var t,i,r=Zle({h:(t=e[1],i=e[2],i===void 0&&(i="deg"),Number(t)*(cQe[i]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Qle(r)},"hsl"]],object:[[function(n){var e=n.r,t=n.g,i=n.b,r=n.a,o=r===void 0?1:r;return Af(e)&&Af(t)&&Af(i)?Kle({r:Number(e),g:Number(t),b:Number(i),a:Number(o)}):null},"rgb"],[function(n){var e=n.h,t=n.s,i=n.l,r=n.a,o=r===void 0?1:r;if(!Af(e)||!Af(t)||!Af(i))return null;var s=Zle({h:Number(e),s:Number(t),l:Number(i),a:Number(o)});return Qle(s)},"hsl"],[function(n){var e=n.h,t=n.s,i=n.v,r=n.a,o=r===void 0?1:r;if(!Af(e)||!Af(t)||!Af(i))return null;var s=function(a){return{h:qle(a.h),s:Jc(a.s,0,100),v:Jc(a.v,0,100),a:Jc(a.a)}}({h:Number(e),s:Number(t),v:Number(i),a:Number(o)});return Yle(s)},"hsv"]]},Jle=function(n,e){for(var t=0;t<e.length;t++){var i=e[t][0](n);if(i)return[i,e[t][1]]}return[null,void 0]},ece=function(n){return typeof n=="string"?Jle(n.trim(),t7.string):typeof n=="object"&&n!==null?Jle(n,t7.object):[null,void 0]},pQe=function(n){return ece(n)[1]},n7=function(n,e){var t=mE(n);return{h:t.h,s:Jc(t.s+100*e,0,100),l:t.l,a:t.a}},i7=function(n){return(299*n.r+587*n.g+114*n.b)/1e3/255},tce=function(n,e){var t=mE(n);return{h:t.h,s:t.s,l:Jc(t.l+100*e,0,100),a:t.a}},r7=function(){function n(e){this.parsed=ece(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return n.prototype.isValid=function(){return this.parsed!==null},n.prototype.brightness=function(){return bs(i7(this.rgba),2)},n.prototype.isDark=function(){return i7(this.rgba)<.5},n.prototype.isLight=function(){return i7(this.rgba)>=.5},n.prototype.toHex=function(){return e=e7(this.rgba),t=e.r,i=e.g,r=e.b,s=(o=e.a)<1?xN(bs(255*o)):"","#"+xN(t)+xN(i)+xN(r)+s;var e,t,i,r,o,s},n.prototype.toRgb=function(){return e7(this.rgba)},n.prototype.toRgbString=function(){return e=e7(this.rgba),t=e.r,i=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+i+", "+r+", "+o+")":"rgb("+t+", "+i+", "+r+")";var e,t,i,r,o},n.prototype.toHsl=function(){return Xle(mE(this.rgba))},n.prototype.toHslString=function(){return e=Xle(mE(this.rgba)),t=e.h,i=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+i+"%, "+r+"%, "+o+")":"hsl("+t+", "+i+"%, "+r+"%)";var e,t,i,r,o},n.prototype.toHsv=function(){return e=Gle(this.rgba),{h:bs(e.h),s:bs(e.s),v:bs(e.v),a:bs(e.a,3)};var e},n.prototype.invert=function(){return Fa({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},n.prototype.saturate=function(e){return e===void 0&&(e=.1),Fa(n7(this.rgba,e))},n.prototype.desaturate=function(e){return e===void 0&&(e=.1),Fa(n7(this.rgba,-e))},n.prototype.grayscale=function(){return Fa(n7(this.rgba,-1))},n.prototype.lighten=function(e){return e===void 0&&(e=.1),Fa(tce(this.rgba,e))},n.prototype.darken=function(e){return e===void 0&&(e=.1),Fa(tce(this.rgba,-e))},n.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},n.prototype.alpha=function(e){return typeof e=="number"?Fa({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):bs(this.rgba.a,3);var t},n.prototype.hue=function(e){var t=mE(this.rgba);return typeof e=="number"?Fa({h:e,s:t.s,l:t.l,a:t.a}):bs(t.h)},n.prototype.isEqual=function(e){return this.toHex()===Fa(e).toHex()},n}(),Fa=function(n){return n instanceof r7?n:new r7(n)},nce=[],mQe=function(n){n.forEach(function(e){nce.indexOf(e)<0&&(e(r7,t7),nce.push(e))})};function _Qe(n,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},i={};for(var r in t)i[t[r]]=r;var o={};n.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,c=i[this.toHex()];if(c)return c;if(s==null?void 0:s.closest){var u=this.toRgb(),d=1/0,h="black";if(!o.length)for(var f in t)o[f]=new n(t[f]).toRgb();for(var g in t){var p=(a=u,l=o[g],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));p<d&&(d=p,h=g)}return h}},e.string.push([function(s){var a=s.toLowerCase(),l=a==="transparent"?"#0000":t[a];return l?new n(l).toRgb():null},"name"])}function oy(){return(oy=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n}).apply(this,arguments)}function o7(n,e){if(n==null)return{};var t,i,r={},o=Object.keys(n);for(i=0;i<o.length;i++)e.indexOf(t=o[i])>=0||(r[t]=n[t]);return r}function s7(n){var e=O.exports.useRef(n),t=O.exports.useRef(function(i){e.current&&e.current(i)});return e.current=n,t.current}var sy=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n<e?e:n},_E=function(n){return"touches"in n},a7=function(n){return n&&n.ownerDocument.defaultView||self},ice=function(n,e,t){var i=n.getBoundingClientRect(),r=_E(e)?function(o,s){for(var a=0;a<o.length;a++)if(o[a].identifier===s)return o[a];return o[0]}(e.touches,t):e;return{left:sy((r.pageX-(i.left+a7(n).pageXOffset))/i.width),top:sy((r.pageY-(i.top+a7(n).pageYOffset))/i.height)}},rce=function(n){!_E(n)&&n.preventDefault()},l7=xe.memo(function(n){var e=n.onMove,t=n.onKey,i=o7(n,["onMove","onKey"]),r=O.exports.useRef(null),o=s7(e),s=s7(t),a=O.exports.useRef(null),l=O.exports.useRef(!1),c=O.exports.useMemo(function(){var f=function(m){rce(m),(_E(m)?m.touches.length>0:m.buttons>0)&&r.current?o(ice(r.current,m,a.current)):p(!1)},g=function(){return p(!1)};function p(m){var v=l.current,_=a7(r.current),y=m?_.addEventListener:_.removeEventListener;y(v?"touchmove":"mousemove",f),y(v?"touchend":"mouseup",g)}return[function(m){var v=m.nativeEvent,_=r.current;if(_&&(rce(v),!function(b,w){return w&&!_E(b)}(v,l.current)&&_)){if(_E(v)){l.current=!0;var y=v.changedTouches||[];y.length&&(a.current=y[0].identifier)}_.focus(),o(ice(_,v,a.current)),p(!0)}},function(m){var v=m.which||m.keyCode;v<37||v>40||(m.preventDefault(),s({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},p]},[s,o]),u=c[0],d=c[1],h=c[2];return O.exports.useEffect(function(){return h},[h]),xe.createElement("div",oy({},i,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:r,onKeyDown:d,tabIndex:0,role:"slider"}))}),vE=function(n){return n.filter(Boolean).join(" ")},c7=function(n){var e=n.color,t=n.left,i=n.top,r=i===void 0?.5:i,o=vE(["react-colorful__pointer",n.className]);return xe.createElement("div",{className:o,style:{top:100*r+"%",left:100*t+"%"}},xe.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Ba=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t},oce=function(n){var e=n.s,t=n.v,i=n.a,r=(200-e)*t/100;return{h:Ba(n.h),s:Ba(r>0&&r<200?e*t/100/(r<=100?r:200-r)*100:0),l:Ba(r/2),a:Ba(i,2)}},u7=function(n){var e=oce(n);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},d7=function(n){var e=oce(n);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},sce=function(n){var e=n.h,t=n.s,i=n.v,r=n.a;e=e/360*6,t/=100,i/=100;var o=Math.floor(e),s=i*(1-t),a=i*(1-(e-o)*t),l=i*(1-(1-e+o)*t),c=o%6;return{r:Ba(255*[i,a,s,s,l,i][c]),g:Ba(255*[l,i,i,a,s,s][c]),b:Ba(255*[s,s,l,i,i,a][c]),a:Ba(r,2)}},ace=function(n){var e=n.r,t=n.g,i=n.b,r=n.a,o=Math.max(e,t,i),s=o-Math.min(e,t,i),a=s?o===e?(t-i)/s:o===t?2+(i-e)/s:4+(e-t)/s:0;return{h:Ba(60*(a<0?a+6:a)),s:Ba(o?s/o*100:0),v:Ba(o/255*100),a:r}},lce=xe.memo(function(n){var e=n.hue,t=n.onChange,i=vE(["react-colorful__hue",n.className]);return xe.createElement("div",{className:i},xe.createElement(l7,{onMove:function(r){t({h:360*r.left})},onKey:function(r){t({h:sy(e+360*r.left,0,360)})},"aria-label":"Hue","aria-valuetext":Ba(e)},xe.createElement(c7,{className:"react-colorful__hue-pointer",left:e/360,color:u7({h:e,s:100,v:100,a:1})})))}),cce=xe.memo(function(n){var e=n.hsva,t=n.onChange,i={backgroundColor:u7({h:e.h,s:100,v:100,a:1})};return xe.createElement("div",{className:"react-colorful__saturation",style:i},xe.createElement(l7,{onMove:function(r){t({s:100*r.left,v:100-100*r.top})},onKey:function(r){t({s:sy(e.s+100*r.left,0,100),v:sy(e.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Ba(e.s)+"%, Brightness "+Ba(e.v)+"%"},xe.createElement(c7,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:u7(e)})))}),h7=function(n,e){if(n===e)return!0;for(var t in n)if(n[t]!==e[t])return!1;return!0};function uce(n,e,t){var i=s7(t),r=O.exports.useState(function(){return n.toHsva(e)}),o=r[0],s=r[1],a=O.exports.useRef({color:e,hsva:o});O.exports.useEffect(function(){if(!n.equal(e,a.current.color)){var c=n.toHsva(e);a.current={hsva:c,color:e},s(c)}},[e,n]),O.exports.useEffect(function(){var c;h7(o,a.current.hsva)||n.equal(c=n.fromHsva(o),a.current.color)||(a.current={hsva:o,color:c},i(c))},[o,n,i]);var l=O.exports.useCallback(function(c){s(function(u){return Object.assign({},u,c)})},[]);return[o,l]}var vQe=typeof window!="undefined"?O.exports.useLayoutEffect:O.exports.useEffect,bQe=function(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:void 0},dce=new Map,hce=function(n){vQe(function(){var e=n.current?n.current.ownerDocument:document;if(e!==void 0&&!dce.has(e)){var t=e.createElement("style");t.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,dce.set(e,t);var i=bQe();i&&t.setAttribute("nonce",i),e.head.appendChild(t)}},[])},yQe=function(n){var e=n.className,t=n.colorModel,i=n.color,r=i===void 0?t.defaultColor:i,o=n.onChange,s=o7(n,["className","colorModel","color","onChange"]),a=O.exports.useRef(null);hce(a);var l=uce(t,r,o),c=l[0],u=l[1],d=vE(["react-colorful",e]);return xe.createElement("div",oy({},s,{ref:a,className:d}),xe.createElement(cce,{hsva:c,onChange:u}),xe.createElement(lce,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},CQe=function(n){var e=n.className,t=n.hsva,i=n.onChange,r={backgroundImage:"linear-gradient(90deg, "+d7(Object.assign({},t,{a:0}))+", "+d7(Object.assign({},t,{a:1}))+")"},o=vE(["react-colorful__alpha",e]);return xe.createElement("div",{className:o},xe.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),xe.createElement(l7,{onMove:function(s){i({a:s.left})},onKey:function(s){i({a:sy(t.a+s.left)})},"aria-label":"Alpha","aria-valuetext":Ba(100*t.a)+"%"},xe.createElement(c7,{className:"react-colorful__alpha-pointer",left:t.a,color:d7(t)})))},wQe=function(n){var e=n.className,t=n.colorModel,i=n.color,r=i===void 0?t.defaultColor:i,o=n.onChange,s=o7(n,["className","colorModel","color","onChange"]),a=O.exports.useRef(null);hce(a);var l=uce(t,r,o),c=l[0],u=l[1],d=vE(["react-colorful",e]);return xe.createElement("div",oy({},s,{ref:a,className:d}),xe.createElement(cce,{hsva:c,onChange:u}),xe.createElement(lce,{hue:c.h,onChange:u}),xe.createElement(CQe,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},SQe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:ace,fromHsva:sce,equal:h7},xQe=function(n){return xe.createElement(wQe,oy({},n,{colorModel:SQe}))},EQe={defaultColor:{r:0,g:0,b:0},toHsva:function(n){return ace({r:n.r,g:n.g,b:n.b,a:1})},fromHsva:function(n){return{r:(e=sce(n)).r,g:e.g,b:e.b};var e},equal:h7},kQe=function(n){return xe.createElement(yQe,oy({},n,{colorModel:EQe}))};/*! *****************************************************************************
|
|
309
|
+
`)+" "+ee[1]:ee[0]+Q+" "+$.join(", ")+" "+ee[1]}function p($){return Array.isArray($)}n.isArray=p;function m($){return typeof $=="boolean"}n.isBoolean=m;function v($){return $===null}n.isNull=v;function _($){return $==null}n.isNullOrUndefined=_;function y($){return typeof $=="number"}n.isNumber=y;function b($){return typeof $=="string"}n.isString=b;function w($){return typeof $=="symbol"}n.isSymbol=w;function x($){return $===void 0}n.isUndefined=x;function S($){return k($)&&A($)==="[object RegExp]"}n.isRegExp=S;function k($){return typeof $=="object"&&$!==null}n.isObject=k;function T($){return k($)&&A($)==="[object Date]"}n.isDate=T;function D($){return k($)&&(A($)==="[object Error]"||$ instanceof Error)}n.isError=D;function R($){return typeof $=="function"}n.isFunction=R;function N($){return $===null||typeof $=="boolean"||typeof $=="number"||typeof $=="string"||typeof $=="symbol"||typeof $=="undefined"}n.isPrimitive=N,n.isBuffer=SGe;function A($){return Object.prototype.toString.call($)}function V($){return $<10?"0"+$.toString(10):$.toString(10)}var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var $=new Date,Q=[V($.getHours()),V($.getMinutes()),V($.getSeconds())].join(":");return[$.getDate(),P[$.getMonth()],Q].join(" ")}n.log=function(){console.log("%s - %s",U(),n.format.apply(n,arguments))},n.inherits=I9.exports,n._extend=function($,Q){if(!Q||!k(Q))return $;for(var ee=Object.keys(Q),ge=ee.length;ge--;)$[ee[ge]]=Q[ee[ge]];return $};function F($,Q){return Object.prototype.hasOwnProperty.call($,Q)}var M=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;n.promisify=function(Q){if(typeof Q!="function")throw new TypeError('The "original" argument must be of type Function');if(M&&Q[M]){var ee=Q[M];if(typeof ee!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ee,M,{value:ee,enumerable:!1,writable:!1,configurable:!0}),ee}function ee(){for(var ge,_e,Ie=new Promise(function(oe,Ne){ge=oe,_e=Ne}),K=[],se=0;se<arguments.length;se++)K.push(arguments[se]);K.push(function(oe,Ne){oe?_e(oe):ge(Ne)});try{Q.apply(this,K)}catch(oe){_e(oe)}return Ie}return Object.setPrototypeOf(ee,Object.getPrototypeOf(Q)),M&&Object.defineProperty(ee,M,{value:ee,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ee,e(Q))},n.promisify.custom=M;function W($,Q){if(!$){var ee=new Error("Promise was rejected with a falsy value");ee.reason=$,$=ee}return Q($)}function j($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');function Q(){for(var ee=[],ge=0;ge<arguments.length;ge++)ee.push(arguments[ge]);var _e=ee.pop();if(typeof _e!="function")throw new TypeError("The last argument must be of type Function");var Ie=this,K=function(){return _e.apply(Ie,arguments)};$.apply(this,ee).then(function(se){process.nextTick(K,null,se)},function(se){process.nextTick(W,se,K)})}return Object.setPrototypeOf(Q,Object.getPrototypeOf($)),Object.defineProperties(Q,e($)),Q}n.callbackify=j}(rae);var oae=D9.exports.EventEmitter,xGe=sE.exports,EGe=iae.exports,sae=jse.exports,aae=qse.exports,kGe=rae;function Ap(n,e,t,i){oae.call(this),sae.call(this,n,e),this.users={},this.docId=t,this.mayWrite=i||function(r,o){o(!0)}}kGe.inherits(Ap,sae),LGe(Ap.prototype,oae.prototype);function LGe(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])}Ap.prototype.addClient=function(n){var e=this;n.join(this.docId).emit("doc",{str:this.document,revision:this.operations.length,clients:this.users}).on("operation",function(t,i,r){e.mayWrite(n,function(o){if(!o){console.log("User doesn't have the right to edit.");return}e.onOperation(n,t,i,r)})}).on("selection",function(t){e.mayWrite(n,function(i){if(!i){console.log("User doesn't have the right to edit.");return}e.updateSelection(n,t&&aae.fromJSON(t))})}).on("disconnect",function(){console.log("Disconnect"),n.leave(e.docId),e.onDisconnect(n),n.manager.sockets.clients(e.docId).length===0&&e.emit("empty-room")})},Ap.prototype.onOperation=function(n,e,t,i){var r;try{r=new EGe(xGe.fromJSON(t),i&&aae.fromJSON(i))}catch(a){console.error("Invalid operation received: "+a);return}try{var o=n.id,s=this.receiveOperation(e,r);console.log("new operation: "+r),this.getClient(o).selection=s.meta,n.emit("ack"),n.broadcast.in(this.docId).emit("operation",o,s.wrapped.toJSON(),s.meta)}catch(a){console.error(a)}},Ap.prototype.updateSelection=function(n,e){var t=n.id;e?this.getClient(t).selection=e:delete this.getClient(t).selection,n.broadcast.in(this.docId).emit("selection",t,e)},Ap.prototype.setName=function(n,e){var t=n.id;this.getClient(t).name=e,n.broadcast.in(this.docId).emit("set_name",t,e)},Ap.prototype.getClient=function(n){return this.users[n]||(this.users[n]={})},Ap.prototype.onDisconnect=function(n){var e=n.id;delete this.users[e],n.broadcast.in(this.docId).emit("client_left",e)};var Zd=sE.exports;const{setAppStatus:TGe,switchDoc:R9,setCRDTInfo:DGe,dockerInfo:s$t,doc:a$t,CRDTInfo:l$t}=Yt.getState(),N9=async n=>{var l,c,u;TGe("replay");let e;const i=(await Uee()).filter(d=>d.userInfo.uuid===n.userId),o=i.filter(d=>Use(n.timestamp).isSame(d.timestamp)||Use(n.timestamp).isBefore(d.timestamp))[0],s=await Vee(o.file.path),a=await yRe(o.file.path);if(o.event==="editor"){const d=i.filter(f=>f.event==="editor").filter(f=>{var g;return((g=f.file)==null?void 0:g.path)===s.path}),h=o.editor.revision>s.revision?d.filter(f=>f.editor.revision<=o.editor.revision).filter(f=>f.editor.revision>s.revision):d.filter(f=>f.editor.revision>o.editor.revision).filter(f=>f.editor.revision<=s.revision);o.editor.revision>s.revision?e=h.reduce((f,g,p)=>{const m=Zd.fromJSON(g.editor.operation);return f.targetLength===m.baseLength?f.compose(m):m.compose(f)},new Zd().retain(s.revision===0?s.value.length:a.value.length)):e=h.length===1?Zd.fromJSON(h[0].editor.operation).invert(a.value):h.reduce((f,g,p)=>{const m=Zd.fromJSON(g.editor.operation);return f.editor?Zd.fromJSON(f.editor.operation).compose(m):f.compose(m)}).invert(a.value),o.editor.operation=e.toJSON()}if(o.file){if(!o.file)return;zee(o.file.path,st(Te({},a),{value:s.revision===0?e==null?void 0:e.apply(s.value):e==null?void 0:e.apply(a.value)})),R9==null||R9({value:s.value,path:o.file.path})}console.log(Yt.getState().appStatus),r6((l=o==null?void 0:o.file)==null?void 0:l.path,st(Te({},s),{revision:(c=o==null?void 0:o.editor)==null?void 0:c.revision,path:(u=o==null?void 0:o.file)==null?void 0:u.path})),setTimeout(()=>{DGe(Te({},o))},0)};var c$t="";const aE=Jl(n=>({ignoreReplayers:[],setIgnoreReplayer:e=>n(()=>({ignoreReplayers:e}))}));function lae(...n){return e=>n.forEach(t=>function(i,r){typeof i=="function"?i(r):i!=null&&(i.current=r)}(t,e))}function aN(...n){return O.exports.useCallback(lae(...n),n)}const cae=O.exports.forwardRef((n,e)=>{const r=n,{children:t}=r,i=gr(r,["children"]);return O.exports.Children.toArray(t).some(dae)?O.exports.createElement(O.exports.Fragment,null,O.exports.Children.map(t,o=>dae(o)?O.exports.createElement(A9,vt({},i,{ref:e}),o.props.children):o)):O.exports.createElement(A9,vt({},i,{ref:e}),t)});cae.displayName="Slot";const A9=O.exports.forwardRef((n,e)=>{const r=n,{children:t}=r,i=gr(r,["children"]);return O.exports.isValidElement(t)?O.exports.cloneElement(t,st(Te({},IGe(i,t.props)),{ref:lae(e,t.ref)})):O.exports.Children.count(t)>1?O.exports.Children.only(null):null});A9.displayName="SlotClone";const uae=({children:n})=>O.exports.createElement(O.exports.Fragment,null,n);function dae(n){return O.exports.isValidElement(n)&&n.type===uae}function IGe(n,e){const t=Te({},e);for(const i in e){const r=n[i],o=e[i];/^on[A-Z]/.test(i)?t[i]=(...s)=>{o==null||o(...s),r==null||r(...s)}:i==="style"?t[i]=Te(Te({},r),o):i==="className"&&(t[i]=[r,o].filter(Boolean).join(" "))}return Te(Te({},n),t)}const X1=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce((n,e)=>st(Te({},n),{[e]:O.exports.forwardRef((t,i)=>{const a=t,{asChild:r}=a,o=gr(a,["asChild"]),s=r?cae:e;return O.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.as&&console.error(RGe),O.exports.createElement(s,vt({},o,{ref:i}))})}),{}),RGe="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",lN=Boolean(globalThis==null?void 0:globalThis.document)?O.exports.useLayoutEffect:()=>{},hae=O.exports.forwardRef((n,e)=>{var t,i;const c=n,{containerRef:r,style:o}=c,s=gr(c,["containerRef","style"]),a=(t=r==null?void 0:r.current)!==null&&t!==void 0?t:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,l]=O.exports.useState({});return lN(()=>{l({})},[]),a?pee.createPortal(O.exports.createElement(X1.div,vt({"data-radix-portal":""},s,{ref:e,style:a===document.body?Te({position:"absolute",top:0,left:0,zIndex:2147483647},o):void 0})),a):null}),NGe=hae;var fae=Object.prototype.hasOwnProperty;function lE(n,e){var t,i;if(n===e)return!0;if(n&&e&&(t=n.constructor)===e.constructor){if(t===Date)return n.getTime()===e.getTime();if(t===RegExp)return n.toString()===e.toString();if(t===Array){if((i=n.length)===e.length)for(;i--&&lE(n[i],e[i]););return i===-1}if(!t||typeof n=="object"){i=0;for(t in n)if(fae.call(n,t)&&++i&&!fae.call(e,t)||!(t in e)||!lE(n[t],e[t]))return!1;return Object.keys(e).length===i}}return n!==n&&e!==e}function cE(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let i=0;i<t.length;i++)if(!Object.prototype.hasOwnProperty.call(e,t[i])||!Object.is(n[t[i]],e[t[i]]))return!1;return!0}var cN=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},gae=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),AGe=function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)},OGe=function(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n},PGe=function(){function n(e,t,i,r){cN(this,n),this.name=e,this.fn=t,this.args=i,this.modifiers=r}return gae(n,[{key:"_test",value:function(t){var i=this.fn;try{Q1(this.modifiers.slice(),i)(t)}catch{i=function(){return!1}}try{return Q1(this.modifiers.slice(),i)(t)}catch{return!1}}},{key:"_check",value:function(t){try{Q1(this.modifiers.slice(),this.fn)(t)}catch{if(Q1(this.modifiers.slice(),function(r){return r})(!1))return}if(!Q1(this.modifiers.slice(),this.fn)(t))throw null}},{key:"_testAsync",value:function(t){var i=this;return new Promise(function(r,o){mae(i.modifiers.slice(),i.fn)(t).then(function(s){s?r(t):o(null)}).catch(function(s){return o(s)})})}}]),n}();function pae(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"simple";return typeof n=="object"?n[e]:n}function Q1(n,e){if(n.length){var t=n.shift(),i=Q1(n,e);return t.perform(i)}else return pae(e)}function mae(n,e){if(n.length){var t=n.shift(),i=mae(n,e);return t.performAsync(i)}else return function(r){return Promise.resolve(pae(e,"async")(r))}}var MGe=function n(e,t,i){cN(this,n),this.name=e,this.perform=t,this.performAsync=i},O9=function(n){AGe(e,n);function e(t,i,r,o){cN(this,e);for(var s=arguments.length,a=Array(s>4?s-4:0),l=4;l<s;l++)a[l-4]=arguments[l];var c=OGe(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,a));return Error.captureStackTrace&&Error.captureStackTrace(c,e),c.rule=t,c.value=i,c.cause=r,c.target=o,c}return e}(Error),FGe=function(){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];cN(this,n),this.chain=e,this.nextRuleModifiers=t}return gae(n,[{key:"_applyRule",value:function(t,i){var r=this;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];return r.chain.push(new PGe(i,t.apply(r,s),s,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}}},{key:"_applyModifier",value:function(t,i){return this.nextRuleModifiers.push(new MGe(i,t.simple,t.async)),this}},{key:"_clone",value:function(){return new n(this.chain.slice(),this.nextRuleModifiers.slice())}},{key:"test",value:function(t){return this.chain.every(function(i){return i._test(t)})}},{key:"testAll",value:function(t){var i=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){i.push(new O9(r,t,o))}}),i}},{key:"check",value:function(t){this.chain.forEach(function(i){try{i._check(t)}catch(r){throw new O9(i,t,r)}})}},{key:"testAsync",value:function(t){var i=this;return new Promise(function(r,o){_ae(t,i.chain.slice(),r,o)})}}]),n}();function _ae(n,e,t,i){if(e.length){var r=e.shift();r._testAsync(n).then(function(){_ae(n,e,t,i)},function(o){i(new O9(r,n,o))})}else t(n)}function Cl(){return vae(new FGe)}var uN={};Cl.extend=function(n){Object.assign(uN,n)},Cl.clearCustomRules=function(){uN={}};function vae(n){return new Proxy(n,{get:function(t,i){if(i in t)return t[i];var r=vae(n._clone());if(i in bae)return r._applyModifier(bae[i],i);if(i in uN)return r._applyRule(uN[i],i);if(i in yae)return r._applyRule(yae[i],i)}})}var bae={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(i){return!i}).catch(function(i){return!0})}}},some:{simple:function(e){return function(t){return dN(t).some(function(i){try{return e(i)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(dN(t).map(function(i){try{return e(i).catch(function(r){return!1})}catch{return!1}})).then(function(i){return i.some(Boolean)})}}},every:{simple:function(e){return function(t){return dN(t).every(e)}},async:function(e){return function(t){return Promise.all(dN(t).map(e)).then(function(i){return i.every(Boolean)})}}}};function dN(n){return typeof n=="string"?n.split(""):n}var yae={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||BGe;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return J1("string")},boolean:function(){return J1("boolean")},undefined:function(){return J1("undefined")},null:function(){return J1("null")},array:function(){return J1("array")},object:function(){return J1("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return/^([a-z]+\s*)+$/.test(e)}},uppercase:function(){return function(e){return/^([A-Z]+\s*)+$/.test(e)}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(i){return i.length>=e&&i.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(i){return i>=e&&i<=t}},range:function(e,t){return function(i){return i>=e&&i<=t}},lessThan:function(e){return function(t){return t<e}},lessThanOrEqual:function(e){return function(t){return t<=e}},greaterThan:function(e){return function(t){return t>e}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2==0}},odd:function(){return function(e){return e%2!=0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return $Ge(e)},passesAnyOf:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(r){return t.some(function(o){return o.test(r)})}},optional:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return function(i){return t&&typeof i=="string"&&i.trim()===""||i!=null&&e.check(i),!0}}};function J1(n){return function(e){return Array.isArray(e)&&n==="array"||e===null&&n==="null"||typeof e===n}}function BGe(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function $Ge(n){return{simple:function(t){var i=[];if(Object.keys(n).forEach(function(r){var o=n[r];try{o.check((t||{})[r])}catch(s){s.target=r,i.push(s)}}),i.length>0)throw i;return!0},async:function(t){var i=[],r=Object.keys(n).map(function(o){var s=n[o];return s.testAsync((t||{})[o]).catch(function(a){a.target=o,i.push(a)})});return Promise.all(r).then(function(o){if(i.length>0)throw i;return!0})}}}var zi="colors",Pa="sizes",Ht="space",WGe={gap:Ht,gridGap:Ht,columnGap:Ht,gridColumnGap:Ht,rowGap:Ht,gridRowGap:Ht,inset:Ht,insetBlock:Ht,insetBlockEnd:Ht,insetBlockStart:Ht,insetInline:Ht,insetInlineEnd:Ht,insetInlineStart:Ht,margin:Ht,marginTop:Ht,marginRight:Ht,marginBottom:Ht,marginLeft:Ht,marginBlock:Ht,marginBlockEnd:Ht,marginBlockStart:Ht,marginInline:Ht,marginInlineEnd:Ht,marginInlineStart:Ht,padding:Ht,paddingTop:Ht,paddingRight:Ht,paddingBottom:Ht,paddingLeft:Ht,paddingBlock:Ht,paddingBlockEnd:Ht,paddingBlockStart:Ht,paddingInline:Ht,paddingInlineEnd:Ht,paddingInlineStart:Ht,top:Ht,right:Ht,bottom:Ht,left:Ht,scrollMargin:Ht,scrollMarginTop:Ht,scrollMarginRight:Ht,scrollMarginBottom:Ht,scrollMarginLeft:Ht,scrollMarginX:Ht,scrollMarginY:Ht,scrollMarginBlock:Ht,scrollMarginBlockEnd:Ht,scrollMarginBlockStart:Ht,scrollMarginInline:Ht,scrollMarginInlineEnd:Ht,scrollMarginInlineStart:Ht,scrollPadding:Ht,scrollPaddingTop:Ht,scrollPaddingRight:Ht,scrollPaddingBottom:Ht,scrollPaddingLeft:Ht,scrollPaddingX:Ht,scrollPaddingY:Ht,scrollPaddingBlock:Ht,scrollPaddingBlockEnd:Ht,scrollPaddingBlockStart:Ht,scrollPaddingInline:Ht,scrollPaddingInlineEnd:Ht,scrollPaddingInlineStart:Ht,fontSize:"fontSizes",background:zi,backgroundColor:zi,backgroundImage:zi,borderImage:zi,border:zi,borderBlock:zi,borderBlockEnd:zi,borderBlockStart:zi,borderBottom:zi,borderBottomColor:zi,borderColor:zi,borderInline:zi,borderInlineEnd:zi,borderInlineStart:zi,borderLeft:zi,borderLeftColor:zi,borderRight:zi,borderRightColor:zi,borderTop:zi,borderTopColor:zi,caretColor:zi,color:zi,columnRuleColor:zi,fill:zi,outline:zi,outlineColor:zi,stroke:zi,textDecorationColor:zi,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Pa,minBlockSize:Pa,maxBlockSize:Pa,inlineSize:Pa,minInlineSize:Pa,maxInlineSize:Pa,width:Pa,minWidth:Pa,maxWidth:Pa,height:Pa,minHeight:Pa,maxHeight:Pa,flexBasis:Pa,gridTemplateColumns:Pa,gridTemplateRows:Pa,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},HGe=(n,e)=>typeof e=="function"?{"()":Function.prototype.toString.call(e)}:e,ey=()=>{const n=Object.create(null);return(e,t,...i)=>{const r=(o=>JSON.stringify(o,HGe))(e);return r in n?n[r]:n[r]=t(e,...i)}},Z_=Symbol.for("sxs.internal"),P9=(n,e)=>Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)),Cae=n=>{for(const e in n)return!0;return!1},{hasOwnProperty:VGe}=Object.prototype,M9=n=>n.includes("-")?n:n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),zGe=/\s+(?![^()]*\))/,ty=n=>e=>n(...typeof e=="string"?String(e).split(zGe):[e]),wae={appearance:n=>({WebkitAppearance:n,appearance:n}),backfaceVisibility:n=>({WebkitBackfaceVisibility:n,backfaceVisibility:n}),backdropFilter:n=>({WebkitBackdropFilter:n,backdropFilter:n}),backgroundClip:n=>({WebkitBackgroundClip:n,backgroundClip:n}),boxDecorationBreak:n=>({WebkitBoxDecorationBreak:n,boxDecorationBreak:n}),clipPath:n=>({WebkitClipPath:n,clipPath:n}),content:n=>({content:n.includes('"')||n.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(n)?n:`"${n}"`}),hyphens:n=>({WebkitHyphens:n,hyphens:n}),maskImage:n=>({WebkitMaskImage:n,maskImage:n}),maskSize:n=>({WebkitMaskSize:n,maskSize:n}),tabSize:n=>({MozTabSize:n,tabSize:n}),textSizeAdjust:n=>({WebkitTextSizeAdjust:n,textSizeAdjust:n}),userSelect:n=>({WebkitUserSelect:n,userSelect:n}),marginBlock:ty((n,e)=>({marginBlockStart:n,marginBlockEnd:e||n})),marginInline:ty((n,e)=>({marginInlineStart:n,marginInlineEnd:e||n})),maxSize:ty((n,e)=>({maxBlockSize:n,maxInlineSize:e||n})),minSize:ty((n,e)=>({minBlockSize:n,minInlineSize:e||n})),paddingBlock:ty((n,e)=>({paddingBlockStart:n,paddingBlockEnd:e||n})),paddingInline:ty((n,e)=>({paddingInlineStart:n,paddingInlineEnd:e||n}))},F9=/([\d.]+)([^]*)/,UGe=(n,e)=>n.length?n.reduce((t,i)=>(t.push(...e.map(r=>r.includes("&")?r.replace(/&/g,/[ +>|~]/.test(i)&&/&.*&/.test(r)?`:is(${i})`:i):i+" "+r)),t),[]):e,jGe=(n,e)=>n in qGe&&typeof e=="string"?e.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(t,i,r,o)=>i+(r==="stretch"?`-moz-available${o};${M9(n)}:${i}-webkit-fill-available`:`-moz-fit-content${o};${M9(n)}:${i}fit-content`)+o):String(e),qGe={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Tf=n=>n?n+"-":"",Sae=(n,e,t)=>n.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(i,r,o,s,a)=>s=="$"==!!o?i:(r||s=="--"?"calc(":"")+"var(--"+(s==="$"?Tf(e)+(a.includes("$")?"":Tf(t))+a.replace(/\$/g,"-"):a)+")"+(r||s=="--"?"*"+(r||"")+(o||"1")+")":"")),KGe=/\s*,\s*(?![^()]*\))/,GGe=Object.prototype.toString,ny=(n,e,t,i,r)=>{let o,s,a;const l=(c,u,d)=>{let h,f;const g=p=>{for(h in p){const _=h.charCodeAt(0)===64,y=_&&Array.isArray(p[h])?p[h]:[p[h]];for(f of y){const b=/[A-Z]/.test(v=h)?v:v.replace(/-[^]/g,x=>x[1].toUpperCase()),w=typeof f=="object"&&f&&f.toString===GGe&&(!i.utils[b]||!u.length);if(b in i.utils&&!w){const x=i.utils[b];if(x!==s){s=x,g(x(f)),s=null;continue}}else if(b in wae){const x=wae[b];if(x!==a){a=x,g(x(f)),a=null;continue}}if(_&&(m=h.slice(1)in i.media?"@media "+i.media[h.slice(1)]:h,h=m.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(x,S,k,T,D,R)=>{const N=F9.test(S),A=.0625*(N?-1:1),[V,P]=N?[T,S]:[S,T];return"("+(k[0]==="="?"":k[0]===">"===N?"max-":"min-")+V+":"+(k[0]!=="="&&k.length===1?P.replace(F9,(U,F,M)=>Number(F)+A*(k===">"?1:-1)+M):P)+(D?") and ("+(D[0]===">"?"min-":"max-")+V+":"+(D.length===1?R.replace(F9,(U,F,M)=>Number(F)+A*(D===">"?-1:1)+M):R):"")+")"})),w){const x=_?d.concat(h):[...d],S=_?[...u]:UGe(u,h.split(KGe));o!==void 0&&r(xae(...o)),o=void 0,l(f,S,x)}else o===void 0&&(o=[[],u,d]),h=_||h.charCodeAt(0)!==36?h:`--${Tf(i.prefix)}${h.slice(1).replace(/\$/g,"-")}`,f=w?f:typeof f=="number"?f&&b in YGe?String(f)+"px":String(f):Sae(jGe(b,f==null?"":f),i.prefix,i.themeMap[b]),o[0].push(`${_?`${h} `:`${M9(h)}:`}${f}`)}}var m,v};g(c),o!==void 0&&r(xae(...o)),o=void 0};l(n,e,t)},xae=(n,e,t)=>`${t.map(i=>`${i}{`).join("")}${e.length?`${e.join(",")}{`:""}${n.join(";")}${e.length?"}":""}${Array(t.length?t.length+1:0).join("}")}`,YGe={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Eae=n=>String.fromCharCode(n+(n>25?39:97)),X_=n=>(e=>{let t,i="";for(t=Math.abs(e);t>52;t=t/52|0)i=Eae(t%52)+i;return Eae(t%52)+i})(((e,t)=>{let i=t.length;for(;i;)e=33*e^t.charCodeAt(--i);return e})(5381,JSON.stringify(n))>>>0),uE=["themed","global","styled","onevar","resonevar","allvar","inline"],ZGe=n=>{if(n.href&&!n.href.startsWith(location.origin))return!1;try{return n.cssRules,!0}catch{return!1}},XGe=n=>{let e;const t=()=>{if(e){const{rules:s,sheet:a}=e;if(!a.deleteRule){for(;Object(Object(a.cssRules)[0]).type===3;)a.cssRules.splice(0,1);a.cssRules=[]}for(const l in s)delete s[l]}const i=Object(n).styleSheets||[];for(const s of i)if(ZGe(s)){for(let a=0,l=s.cssRules;l[a];++a){const c=Object(l[a]);if(c.type!==1)continue;const u=Object(l[a+1]);if(u.type!==4)continue;++a;const{cssText:d}=c;if(!d.startsWith("--sxs"))continue;const h=d.slice(14,-3).trim().split(/\s+/),f=uE[h[0]];f&&(e||(e={sheet:s,reset:t,rules:{}}),e.rules[f]={group:u,index:a,cache:new Set(h)})}if(e)break}if(!e){const s=(a,l)=>({type:l,cssRules:[],insertRule(c,u){this.cssRules.splice(u,0,s(c,{import:3,undefined:1}[(c.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return a==="@media{}"?`@media{${[].map.call(this.cssRules,c=>c.cssText).join("")}}`:a}});e={sheet:n?(n.head||n).appendChild(document.createElement("style")).sheet:s("","text/css"),rules:{},reset:t,toString(){const{cssRules:a}=e.sheet;return[].map.call(a,(l,c)=>{const{cssText:u}=l;let d="";if(u.startsWith("--sxs"))return"";if(a[c-1]&&(d=a[c-1].cssText).startsWith("--sxs")){if(!l.cssRules.length)return"";for(const h in e.rules)if(e.rules[h].group===l)return`--sxs{--sxs:${[...e.rules[h].cache].join(" ")}}${u}`;return l.cssRules.length?`${d}${u}`:""}return u}).join("")}}}const{sheet:r,rules:o}=e;for(let s=uE.length-1;s>=0;--s){const a=uE[s];if(!o[a]){const l=uE[s+1],c=o[l]?o[l].index:r.cssRules.length;r.insertRule("@media{}",c),r.insertRule(`--sxs{--sxs:${s}}`,c),o[a]={group:r.cssRules[c+1],index:c,cache:new Set([s])}}QGe(o[a])}};return t(),e},QGe=n=>{const e=n.group;let t=e.cssRules.length;n.apply=i=>{try{e.insertRule(i,t),++t}catch{}}},dE=Symbol(),JGe=ey(),kae=(n,e)=>JGe(n,()=>(...t)=>{let i={type:null,composers:new Set};for(const r of t)if(r!=null)if(r[Z_]){i.type==null&&(i.type=r[Z_].type);for(const o of r[Z_].composers)i.composers.add(o)}else r.constructor!==Object||r.$$typeof?i.type==null&&(i.type=r):i.composers.add(eYe(r,n));return i.type==null&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),tYe(n,i,e)}),eYe=(o,r)=>{var s=o,{variants:n,compoundVariants:e,defaultVariants:t}=s,i=gr(s,["variants","compoundVariants","defaultVariants"]);const a=`${Tf(r.prefix)}c-${X_(i)}`,l=[],c=[],u=Object.create(null),d=[];for(const p in t)u[p]=String(t[p]);if(typeof n=="object"&&n)for(const p in n){h=u,f=p,VGe.call(h,f)||(u[p]="undefined");const m=n[p];for(const v in m){const _={[p]:String(v)};String(v)==="undefined"&&d.push(p);const y=m[v],b=[_,y,!Cae(y)];l.push(b)}}var h,f;if(typeof e=="object"&&e)for(const p of e){let g=p,{css:m}=g,v=gr(g,["css"]);m=typeof m=="object"&&m||{};for(const y in v)v[y]=String(v[y]);const _=[v,m,!Cae(m)];c.push(_)}return[a,i,l,c,u,d]},tYe=(n,e,t)=>{const[i,r,o,s]=nYe(e.composers),a=typeof e.type=="function"||e.type.$$typeof?(d=>{function h(){for(let f=0;f<h[dE].length;f++){const[g,p]=h[dE][f];d.rules[g].apply(p)}return h[dE]=[],null}return h[dE]=[],h.rules={},uE.forEach(f=>h.rules[f]={apply:g=>h[dE].push([f,g])}),h})(t):null,l=(a||t).rules,c=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,u=d=>{d=typeof d=="object"&&d||iYe;const v=d,{css:h}=v,f=gr(v,["css"]),g={};for(const _ in o)if(delete f[_],_ in d){let y=d[_];typeof y=="object"&&y?g[_]=Te({"@initial":o[_]},y):(y=String(y),g[_]=y!=="undefined"||s.has(_)?y:o[_])}else g[_]=o[_];const p=new Set([...r]);for(const[_,y,b,w]of e.composers){t.rules.styled.cache.has(_)||(t.rules.styled.cache.add(_),ny(y,[`.${_}`],[],n,k=>{l.styled.apply(k)}));const x=Lae(b,g,n.media),S=Lae(w,g,n.media,!0);for(const k of x)if(k!==void 0)for(const[T,D,R]of k){const N=`${_}-${X_(D)}-${T}`;p.add(N);const A=(R?t.rules.resonevar:t.rules.onevar).cache,V=R?l.resonevar:l.onevar;A.has(N)||(A.add(N),ny(D,[`.${N}`],[],n,P=>{V.apply(P)}))}for(const k of S)if(k!==void 0)for(const[T,D]of k){const R=`${_}-${X_(D)}-${T}`;p.add(R),t.rules.allvar.cache.has(R)||(t.rules.allvar.cache.add(R),ny(D,[`.${R}`],[],n,N=>{l.allvar.apply(N)}))}}if(typeof h=="object"&&h){const _=`${i}-i${X_(h)}-css`;p.add(_),t.rules.inline.cache.has(_)||(t.rules.inline.cache.add(_),ny(h,[`.${_}`],[],n,y=>{l.inline.apply(y)}))}for(const _ of String(d.className||"").trim().split(/\s+/))_&&p.add(_);const m=f.className=[...p].join(" ");return{type:e.type,className:m,selector:c,props:f,toString:()=>m,deferredInjector:a}};return P9(u,{className:i,selector:c,[Z_]:e,toString:()=>(t.rules.styled.cache.has(i)||u(),i)})},nYe=n=>{let e="";const t=[],i={},r=[];for(const[o,,,,s,a]of n){e===""&&(e=o),t.push(o),r.push(...a);for(const l in s){const c=s[l];(i[l]===void 0||c!=="undefined"||a.includes(c))&&(i[l]=c)}}return[e,t,i,new Set(r)]},Lae=(n,e,t,i)=>{const r=[];e:for(let[o,s,a]of n){if(a)continue;let l,c=0,u=!1;for(l in o){const d=o[l];let h=e[l];if(h!==d){if(typeof h!="object"||!h)continue e;{let f,g,p=0;for(const m in h){if(d===String(h[m])){if(m!=="@initial"){const v=m.slice(1);(g=g||[]).push(v in t?t[v]:m.replace(/^@media ?/,"")),u=!0}c+=p,f=!0}++p}if(g&&g.length&&(s={["@media "+g.join(", ")]:s}),!f)continue e}}}(r[c]=r[c]||[]).push([i?"cv":`${l}-${o[l]}`,s,u])}return r},iYe={},rYe=ey(),oYe=(n,e)=>rYe(n,()=>(...t)=>{const i=()=>{for(let r of t){r=typeof r=="object"&&r||{};let o=X_(r);if(!e.rules.global.cache.has(o)){if(e.rules.global.cache.add(o),"@import"in r){let s=[].indexOf.call(e.sheet.cssRules,e.rules.themed.group)-1;for(let a of[].concat(r["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,e.sheet.insertRule(`@import ${a};`,s++);delete r["@import"]}ny(r,[],[],n,s=>{e.rules.global.apply(s)})}}return""};return P9(i,{toString:i})}),sYe=ey(),aYe=(n,e)=>sYe(n,()=>t=>{const i=`${Tf(n.prefix)}k-${X_(t)}`,r=()=>{if(!e.rules.global.cache.has(i)){e.rules.global.cache.add(i);const o=[];ny(t,[],[],n,a=>o.push(a));const s=`@keyframes ${i}{${o.join("")}}`;e.rules.global.apply(s)}return i};return P9(r,{get name(){return r()},toString:r})}),lYe=class{constructor(n,e,t,i){this.token=n==null?"":String(n),this.value=e==null?"":String(e),this.scale=t==null?"":String(t),this.prefix=i==null?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Tf(this.prefix)+Tf(this.scale)+this.token}toString(){return this.computedValue}},cYe=ey(),uYe=(n,e)=>cYe(n,()=>(t,i)=>{i=typeof t=="object"&&t||Object(i);const r=`.${t=(t=typeof t=="string"?t:"")||`${Tf(n.prefix)}t-${X_(i)}`}`,o={},s=[];for(const l in i){o[l]={};for(const c in i[l]){const u=`--${Tf(n.prefix)}${l}-${c}`,d=Sae(String(i[l][c]),n.prefix,l);o[l][c]=new lYe(c,d,l,n.prefix),s.push(`${u}:${d}`)}}const a=()=>{if(s.length&&!e.rules.themed.cache.has(t)){e.rules.themed.cache.add(t);const l=`${i===n.theme?":root,":""}.${t}{${s.join(";")}}`;e.rules.themed.apply(l)}return t};return st(Te({},o),{get className(){return a()},selector:r,toString:a})}),dYe=ey(),hYe=ey(),fYe=n=>{const e=(t=>{let i=!1;const r=dYe(t,o=>{i=!0;const s="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",a=typeof o.media=="object"&&o.media||{},l=typeof o.root=="object"?o.root||null:globalThis.document||null,c=typeof o.theme=="object"&&o.theme||{},u={prefix:s,media:a,theme:c,themeMap:typeof o.themeMap=="object"&&o.themeMap||Te({},WGe),utils:typeof o.utils=="object"&&o.utils||{}},d=XGe(l),h={css:kae(u,d),globalCss:oYe(u,d),keyframes:aYe(u,d),createTheme:uYe(u,d),reset(){d.reset(),h.theme.toString()},theme:{},sheet:d,config:u,prefix:s,getCssText:d.toString,toString:d.toString};return String(h.theme=h.createTheme(c)),h});return i||r.reset(),r})(n);return e.styled=(({config:t,sheet:i})=>hYe(t,()=>{const r=kae(t,i);return(...o)=>{const s=r(...o),a=s[Z_].type,l=xe.forwardRef((c,u)=>{const d=c&&c.as||a,{props:h,deferredInjector:f}=s(c);return delete h.as,h.ref=u,f?xe.createElement(xe.Fragment,null,xe.createElement(d,h),xe.createElement(f,null)):xe.createElement(d,h)});return l.className=s.className,l.displayName=`Styled.${a.displayName||a.name||a}`,l.selector=s.selector,l.toString=()=>s.selector,l[Z_]=s[Z_],l}}))(e),e};function gYe(n,e,t){return Math.max(e,Math.min(n,t))}const Ma={toVector(n,e){return n===void 0&&(n=e),Array.isArray(n)?n:[n,n]},add(n,e){return[n[0]+e[0],n[1]+e[1]]},sub(n,e){return[n[0]-e[0],n[1]-e[1]]},addTo(n,e){n[0]+=e[0],n[1]+=e[1]},subTo(n,e){n[0]-=e[0],n[1]-=e[1]}};function Tae(n,e,t){return e===0||Math.abs(e)===1/0?Math.pow(n,t*5):n*e*t/(e+t*n)}function Dae(n,e,t,i=.15){return i===0?gYe(n,e,t):n<e?-Tae(e-n,t-e,i)+e:n>t?+Tae(n-t,t-e,i)+t:n}function pYe(n,[e,t],[i,r]){const[[o,s],[a,l]]=n;return[Dae(e,o,s,i),Dae(t,a,l,r)]}function wl(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Iae(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function ts(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Iae(Object(t),!0).forEach(function(i){wl(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Iae(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}const Rae={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Nae(n){return n?n[0].toUpperCase()+n.slice(1):""}function mYe(n,e="",t=!1){const i=Rae[n],r=i&&i[e]||e;return"on"+Nae(n)+Nae(r)+(t?"Capture":"")}function _Ye(n,e=""){const t=Rae[n],i=t&&t[e]||e;return n+i}function B9(n){return"touches"in n}function vYe(n){return Array.from(n.touches).filter(e=>{var t,i;return e.target===n.currentTarget||((t=n.currentTarget)===null||t===void 0||(i=t.contains)===null||i===void 0?void 0:i.call(t,e.target))})}function bYe(n){return n.type==="touchend"?n.changedTouches:n.targetTouches}function Aae(n){return B9(n)?bYe(n)[0]:n}function yYe(n){return vYe(n).map(e=>e.identifier)}function $9(n){const e=Aae(n);return B9(n)?e.identifier:e.pointerId}function Oae(n){const e=Aae(n);return[e.clientX,e.clientY]}function CYe(n){const e={};if("buttons"in n&&(e.buttons=n.buttons),"shiftKey"in n){const{shiftKey:t,altKey:i,metaKey:r,ctrlKey:o}=n;Object.assign(e,{shiftKey:t,altKey:i,metaKey:r,ctrlKey:o})}return e}function hN(n,...e){return typeof n=="function"?n(...e):n}function wYe(){}function SYe(...n){return n.length===0?wYe:n.length===1?n[0]:function(){let e;for(const t of n)e=t.apply(this,arguments)||e;return e}}function Pae(n,e){return Object.assign({},e,n||{})}const xYe=32;class EYe{constructor(e,t,i){this.ctrl=e,this.args=t,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:i,args:r}=this;t[i]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,i=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=i.from?hN(i.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=e.timeStamp}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:i,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,i.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,CYe(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const g=t._delta.map(Math.abs);Ma.addTo(t._distance,g)}const[s,a]=t._movement,[l,c]=i.threshold,{_step:u,values:d}=t;if(i.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=l&&d[0]),u[1]===!1&&(u[1]=Math.abs(a)>=c&&d[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=l&&Math.sign(s)*l),u[1]===!1&&(u[1]=Math.abs(a)>=c&&Math.sign(a)*c)),t.intentional=u[0]!==!1||u[1]!==!1,!t.intentional)return;const h=[0,0];if(i.hasCustomTransform){const[g,p]=d;h[0]=u[0]!==!1?g-u[0]:0,h[1]=u[1]!==!1?p-u[1]:0}else h[0]=u[0]!==!1?s-u[0]:0,h[1]=u[1]!==!1?a-u[1]:0;if(this.intent&&this.intent(h),(t._active&&!t._blocked||t.active)&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e)){t.first&&("bounds"in i&&(t._bounds=hN(i.bounds,t)),this.setup&&this.setup()),t.movement=h;const g=t.offset;if(this.computeOffset(),!t.last||o>xYe){t.delta=Ma.sub(t.offset,g);const p=t.delta.map(Math.abs);Ma.addTo(t.distance,p),t.direction=t.delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[p[0]/o,p[1]/o])}}const f=t._active?i.rubberband||[0,0]:[0,0];t.offset=pYe(t._bounds,t.offset,f),this.computeMovement()}emit(){const e=this.state,t=this.shared,i=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!i.triggerAllEvents)return;const r=this.handler(ts(ts(ts({},t),e),{},{[this.aliasKey]:e.values}));r!==void 0&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function kYe([n,e]){const t=Math.abs(n)-Math.abs(e);if(t>0)return"x";if(t<0)return"y"}function LYe(n,e){switch(e){case"x":n[1]=0;break;case"y":n[0]=0;break}}class TYe extends EYe{constructor(...e){super(...e);wl(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Ma.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Ma.sub(this.state.offset,this.state.lastOffset)}intent(e){this.state.axis=this.state.axis||kYe(e),this.state._blocked=(this.config.lockDirection||!!this.config.axis)&&!this.state.axis||!!this.config.axis&&this.config.axis!==this.state.axis,!this.state._blocked&&(this.config.axis||this.config.lockDirection)&&LYe(e,this.state.axis)}}const DYe=n=>n,Mae=.15,Fae={enabled(n=!0){return n},preventDefault(n=!1){return n},triggerAllEvents(n=!1){return n},rubberband(n=0){switch(n){case!0:return[Mae,Mae];case!1:return[0,0];default:return Ma.toVector(n)}},from(n){if(typeof n=="function")return n;if(n!=null)return Ma.toVector(n)},transform(n,e,t){const i=n||t.shared.transform;return this.hasCustomTransform=!!i,i||DYe},threshold(n){return Ma.toVector(n,0)}},hE=ts(ts({},Fae),{},{axis(n,e,{axis:t}){if(this.lockDirection=t==="lock",!this.lockDirection)return t},bounds(n={}){if(typeof n=="function")return o=>hE.bounds(n(o));if("current"in n)return()=>n.current;if(typeof HTMLElement=="function"&&n instanceof HTMLElement)return n;const{left:e=-1/0,right:t=1/0,top:i=-1/0,bottom:r=1/0}=n;return[[e,t],[i,r]]}}),fN=10,Bae={ArrowRight:(n=1)=>[fN*n,0],ArrowLeft:(n=1)=>[-fN*n,0],ArrowUp:(n=1)=>[0,-fN*n],ArrowDown:(n=1)=>[0,fN*n]};class IYe extends TYe{constructor(...e){super(...e);wl(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),i=e.currentTarget.getBoundingClientRect(),r={left:t.left-i.left+e.offset[0],right:t.right-i.right+e.offset[0],top:t.top-i.top+e.offset[1],bottom:t.bottom-i.bottom+e.offset[1]};e._bounds=hE.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,i=this.state;e.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):t.pointerButtons!==-1&&t.pointerButtons!==e.buttons)||(this.ctrl.setEventIds(e),t.pointerCapture&&e.target.setPointerCapture(e.pointerId),!i._pointerActive&&(this.start(e),this.setupPointer(e),i._pointerId=$9(e),i._pointerActive=!0,this.computeValues(Oae(e)),this.computeInitial(),t.preventScroll?this.setupScrollPrevention(e):t.delay>0?this.setupDelayTrigger(e):this.startPointerDrag(e)))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,i=this.config;if(!t._pointerActive||t.type===e.type&&e.timeStamp===t.timeStamp)return;const r=$9(e);if(t._pointerId&&r!==t._pointerId)return;const o=Oae(e);if(document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=Ma.sub(o,t._values),this.computeValues(o)),Ma.addTo(t._movement,t._delta),this.compute(e),t._delayed){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(e);return}if(i.preventScroll&&!t._preventScroll)if(t.axis)if(t.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){t._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{}const t=this.state,i=this.config;if(!t._pointerActive)return;const r=$9(e);if(t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,s]=t._distance;if(t.tap=o<=3&&s<=3,t.tap&&i.filterTaps)t._force=!0;else{const[a,l]=t.direction,[c,u]=t.velocity,[d,h]=t.movement,[f,g]=i.swipe.velocity,[p,m]=i.swipe.distance,v=i.swipe.duration;t.elapsedTime<v&&(Math.abs(c)>f&&Math.abs(d)>p&&(t.swipe[0]=a),Math.abs(u)>g&&Math.abs(h)>m&&(t.swipe[1]=l))}this.emit()}pointerClick(e){this.state.tap||(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config;let i=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){RYe(e),this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1}),this.eventStore.add(this.sharedConfig.window,"touch","end",this.clean.bind(this),{passive:!1}),this.eventStore.add(this.sharedConfig.window,"touch","cancel",this.clean.bind(this),{passive:!1}),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScroll,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",this.startPointerDrag.bind(this),this.config.delay,e)}keyDown(e){const t=Bae[e.key];if(t){const i=this.state,r=e.shiftKey?10:e.altKey?.1:1;i._delta=t(r),this.start(e),i._keyboardActive=!0,Ma.addTo(i._movement,i._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Bae&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this))),e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this)),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0})}}function RYe(n){"persist"in n&&typeof n.persist=="function"&&n.persist()}const fE=typeof window!="undefined"&&window.document&&window.document.createElement;function $ae(){return fE&&"ontouchstart"in window}function NYe(){return $ae()||fE&&window.navigator.maxTouchPoints>1}function AYe(){return fE&&"onpointerdown"in window}function OYe(){return fE&&"exitPointerLock"in window.document}function PYe(){try{return"constructor"in GestureEvent}catch{return!1}}const Xc={isBrowser:fE,gesture:PYe(),touch:$ae(),touchscreen:NYe(),pointer:AYe(),pointerLock:OYe()},MYe=250,FYe=180,BYe=.5,$Ye=50,WYe=250,HYe=ts(ts({},hE),{},{pointerLock(n,e,{pointer:{lock:t=!1,touch:i=!1}={}}){return this.useTouch=Xc.touch&&i,Xc.pointerLock&&t},device(n,e){return this.useTouch?"touch":this.pointerLock?"mouse":Xc.pointer?"pointer":Xc.touch?"touch":"mouse"},preventScroll(n=!1,e,{preventScrollAxis:t="y"}){return t&&(this.preventScrollAxis=t),Xc.touchscreen?typeof n=="number"?n:n?MYe:!1:!1},pointerCapture(n,e,{pointer:{capture:t=!0,buttons:i=1}={}}){return this.pointerButtons=i,!this.pointerLock&&this.device==="pointer"&&t},threshold(n,e,{filterTaps:t=!1,axis:i=void 0}){const r=Ma.toVector(n,t?3:i?1:0);return this.filterTaps=t,r},swipe({velocity:n=BYe,distance:e=$Ye,duration:t=WYe}={}){return{velocity:this.transform(Ma.toVector(n)),distance:this.transform(Ma.toVector(e)),duration:t}},delay(n=0){switch(n){case!0:return FYe;case!1:return 0;default:return n}}});ts(ts({},Fae),{},{useTouch(n,e,{pointer:{touch:t=!1}={}}){return Xc.touch&&t},device(n,e,t){if(t.shared.target&&!Xc.touch&&Xc.gesture)return"gesture";if(this.useTouch)return"touch";if(Xc.touchscreen){if(Xc.pointer)return"pointer";if(Xc.touch)return"touch"}},bounds(n,e,{scaleBounds:t={},angleBounds:i={}}){const r=s=>{const a=Pae(hN(t,s),{min:-1/0,max:1/0});return[a.min,a.max]},o=s=>{const a=Pae(hN(i,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof t!="function"&&typeof i!="function"?[r(),o()]:s=>[r(s),o(s)]},threshold(n,e,t){return this.lockDirection=t.axis==="lock",Ma.toVector(n,this.lockDirection?[.1,3]:0)}}),ts(ts({},hE),{},{mouseOnly:(n=!0)=>n}),ts(ts({},hE),{},{mouseOnly:(n=!0)=>n});const Wae=new Map,W9=new Map;function VYe(n){Wae.set(n.key,n.engine),W9.set(n.key,n.resolver)}const zYe={key:"drag",engine:IYe,resolver:HYe};function UYe(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}function jYe(n,e){if(n==null)return{};var t=UYe(n,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,i)||(t[i]=n[i]))}return t}const qYe={target(n){if(n)return()=>"current"in n?n.current:n},enabled(n=!0){return n},window(n=Xc.isBrowser?window:void 0){return n},eventOptions({passive:n=!0,capture:e=!1}={}){return{passive:n,capture:e}},transform(n){return n}},KYe=["target","eventOptions","window","enabled","transform"];function gN(n={},e){const t={};for(const[i,r]of Object.entries(e))switch(typeof r){case"function":t[i]=r.call(t,n[i],i,n);break;case"object":t[i]=gN(n[i],r);break;case"boolean":r&&(t[i]=n[i]);break}return t}function GYe(n,e){const t=n,{target:i,eventOptions:r,window:o,enabled:s,transform:a}=t,l=jYe(t,KYe),c={shared:gN({target:i,eventOptions:r,window:o,enabled:s,transform:a},qYe)};if(e){const u=W9.get(e);c[e]=gN(ts({shared:c.shared},l),u)}else for(const u in l){const d=W9.get(u);d&&(c[u]=gN(ts({shared:c.shared},l[u]),d))}return c}class Hae{constructor(e){wl(this,"_listeners",[]),this._ctrl=e}add(e,t,i,r,o){const s=_Ye(t,i),a=ts(ts({},this._ctrl.config.shared.eventOptions),o);e.addEventListener(s,r,a),this._listeners.push(()=>e.removeEventListener(s,r,a))}clean(){this._listeners.forEach(e=>e()),this._listeners=[]}}class YYe{constructor(){wl(this,"_timeouts",new Map)}add(e,t,i=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,i,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class ZYe{constructor(e){wl(this,"gestures",new Set),wl(this,"_targetEventStore",new Hae(this)),wl(this,"gestureEventStores",{}),wl(this,"gestureTimeoutStores",{}),wl(this,"handlers",{}),wl(this,"config",{}),wl(this,"pointerIds",new Set),wl(this,"touchIds",new Set),wl(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),XYe(this,e)}setEventIds(e){B9(e)?this.touchIds=new Set(yYe(e)):"pointerId"in e&&(e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId))}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=GYe(e,t)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,i=t.eventOptions,r={};let o;if(t.target&&(o=t.target(),!o))return;const s=QYe(r,i,!!o);if(t.enabled){for(const a of this.gestures)if(this.config[a].enabled){const l=Wae.get(a);new l(this,e,a).bind(s)}for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](ts(ts({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const a in r)r[a]=SYe(...r[a]);if(!o)return r;for(const a in r){let l=a.substr(2).toLowerCase();const c=!!~l.indexOf("capture"),u=!!~l.indexOf("passive");(c||u)&&(l=l.replace(/capture|passive/g,"")),this._targetEventStore.add(o,l,"",r[a],{capture:c,passive:u})}}}function iy(n,e){n.gestures.add(e),n.gestureEventStores[e]=new Hae(n),n.gestureTimeoutStores[e]=new YYe}function XYe(n,e){e.drag&&iy(n,"drag"),e.wheel&&iy(n,"wheel"),e.scroll&&iy(n,"scroll"),e.move&&iy(n,"move"),e.pinch&&iy(n,"pinch"),e.hover&&iy(n,"hover")}const QYe=(n,e,t)=>(i,r,o,s={},a=!1)=>{var l,c;const u=(l=s.capture)!==null&&l!==void 0?l:e.capture,d=(c=s.passive)!==null&&c!==void 0?c:e.passive;let h=a?i:mYe(i,r,u);t&&d&&(h+="Passive"),n[h]=n[h]||[],n[h].push(o)};function JYe(n,e={},t,i){const r=xe.useMemo(()=>new ZYe(n),[]);if(r.applyHandlers(n,i),r.applyConfig(e,t),xe.useEffect(r.effect.bind(r)),xe.useEffect(()=>r.clean.bind(r),[]),e.target===void 0)return r.bind.bind(r)}function Vae(n,e={}){return VYe(zYe),JYe({drag:n},e,"drag")}const eZe=CTe["useId".toString()]||(()=>{});let tZe=0;function nZe(n){const[e,t]=O.exports.useState(eZe());return lN(()=>{n||t(i=>i!=null?i:String(tZe++))},[n]),n||(e?`radix-${e}`:"")}const iZe=O.exports.forwardRef((n,e)=>O.exports.createElement(X1.span,vt({},n,{ref:e,style:st(Te({},n.style),{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"})}))),rZe=O.exports.forwardRef((n,e)=>{const s=n,{children:t,width:i=10,height:r=5}=s,o=gr(s,["children","width","height"]);return O.exports.createElement(X1.svg,vt({},o,{ref:e,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),n.asChild?t:O.exports.createElement("polygon",{points:"0,0 30,0 15,10"}))});function zae(n){const[e,t]=O.exports.useState(void 0);return O.exports.useEffect(()=>{if(n){const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else{const l=n.getBoundingClientRect();s=l.width,a=l.height}t({width:s,height:a})});return i.observe(n,{box:"border-box"}),()=>{t(void 0),i.unobserve(n)}}},[n]),e}function oZe(n,e){const t=Q_.get(n);return t===void 0?(Q_.set(n,{rect:{},callbacks:[e]}),Q_.size===1&&(H9=requestAnimationFrame(Uae))):(t.callbacks.push(e),e(n.getBoundingClientRect())),()=>{const i=Q_.get(n);if(i===void 0)return;const r=i.callbacks.indexOf(e);r>-1&&i.callbacks.splice(r,1),i.callbacks.length===0&&(Q_.delete(n),Q_.size===0&&cancelAnimationFrame(H9))}}let H9;const Q_=new Map;function Uae(){const n=[];Q_.forEach((e,t)=>{const i=t.getBoundingClientRect();var r,o;r=e.rect,o=i,(r.width!==o.width||r.height!==o.height||r.top!==o.top||r.right!==o.right||r.bottom!==o.bottom||r.left!==o.left)&&(e.rect=i,n.push(e))}),n.forEach(e=>{e.callbacks.forEach(t=>t(e.rect))}),H9=requestAnimationFrame(Uae)}function jae(n){const[e,t]=O.exports.useState();return O.exports.useEffect(()=>{if(n){const i=oZe(n,t);return()=>{t(void 0),i()}}},[n]),e}function qae(n,e=[]){let t=[];const i=()=>{const r=t.map(o=>O.exports.createContext(o));return function(o){const s=(o==null?void 0:o[n])||r;return O.exports.useMemo(()=>({[`__scope${n}`]:st(Te({},o),{[n]:s})}),[o,s])}};return i.scopeName=n,[function(r,o){const s=O.exports.createContext(o),a=t.length;function l(c){const p=c,{scope:u,children:d}=p,h=gr(p,["scope","children"]),f=(u==null?void 0:u[n][a])||s,g=O.exports.useMemo(()=>h,Object.values(h));return O.exports.createElement(f.Provider,{value:g},d)}return t=[...t,o],l.displayName=r+"Provider",[l,function(c,u){const d=(u==null?void 0:u[n][a])||s,h=O.exports.useContext(d);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${c}\` must be used within \`${r}\``)}]},sZe(i,...e)]}function sZe(...n){const e=n[0];if(n.length===1)return e;const t=()=>{const i=n.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(r){const o=i.reduce((s,{useScope:a,scopeName:l})=>Te(Te({},s),a(r)[`__scope${l}`]),{});return O.exports.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}function aZe({anchorRect:n,popperSize:e,arrowSize:t,arrowOffset:i=0,side:r,sideOffset:o=0,align:s,alignOffset:a=0,shouldAvoidCollisions:l=!0,collisionBoundariesRect:c,collisionTolerance:u=0}){if(!n||!e||!c)return{popperStyles:lZe,arrowStyles:V9};const d=function(S,k,T=0,D=0,R){const N=R?R.height:0,A=Kae(k,S,"x"),V=Kae(k,S,"y"),P=V.before-T-N,U=V.after+T+N,F=A.before-T-N,M=A.after+T+N;return{top:{start:{x:A.start+D,y:P},center:{x:A.center,y:P},end:{x:A.end-D,y:P}},right:{start:{x:M,y:V.start+D},center:{x:M,y:V.center},end:{x:M,y:V.end-D}},bottom:{start:{x:A.start+D,y:U},center:{x:A.center,y:U},end:{x:A.end-D,y:U}},left:{start:{x:F,y:V.start+D},center:{x:F,y:V.center},end:{x:F,y:V.end-D}}}}(e,n,o,a,t),h=d[r][s];if(l===!1){const S=Gae(h);let k=V9;return t&&(k=Zae({popperSize:e,arrowSize:t,arrowOffset:i,side:r,align:s})),{popperStyles:st(Te({},S),{"--radix-popper-transform-origin":Yae(e,r,s,i,t)}),arrowStyles:k,placedSide:r,placedAlign:s}}const f=DOMRect.fromRect(Te(Te({},e),h)),g=(p=c,m=u,DOMRect.fromRect({width:p.width-2*m,height:p.height-2*m,x:p.left+m,y:p.top+m}));var p,m;const v=Qae(f,g),_=d[Xae(r)][s],y=function(S,k,T){const D=Xae(S);return k[S]&&!T[D]?D:S}(r,v,Qae(DOMRect.fromRect(Te(Te({},e),_)),g)),b=function(S,k,T,D,R){const N=T==="top"||T==="bottom",A=N?"left":"top",V=N?"right":"bottom",P=N?"width":"height",U=k[P]>S[P];return(D==="start"||D==="center")&&(R[A]&&U||R[V]&&!U)?"end":(D==="end"||D==="center")&&(R[V]&&U||R[A]&&!U)?"start":D}(e,n,r,s,v),w=Gae(d[y][b]);let x=V9;return t&&(x=Zae({popperSize:e,arrowSize:t,arrowOffset:i,side:y,align:b})),{popperStyles:st(Te({},w),{"--radix-popper-transform-origin":Yae(e,y,b,i,t)}),arrowStyles:x,placedSide:y,placedAlign:b}}function Kae(n,e,t){const i=n[t==="x"?"left":"top"],r=t==="x"?"width":"height",o=n[r],s=e[r];return{before:i-s,start:i,center:i+(o-s)/2,end:i+o-s,after:i+o}}function Gae(n){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(n.x+window.scrollX)}px, ${Math.round(n.y+window.scrollY)}px, 0)`}}function Yae(n,e,t,i,r){const o=e==="top"||e==="bottom",s=r?r.width:0,a=r?r.height:0,l=s/2+i;let c="",u="";return o?(c={start:`${l}px`,center:"center",end:n.width-l+"px"}[t],u=e==="top"?`${n.height+a}px`:-a+"px"):(c=e==="left"?`${n.width+a}px`:-a+"px",u={start:`${l}px`,center:"center",end:n.height-l+"px"}[t]),`${c} ${u}`}const lZe={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},V9={position:"absolute",opacity:0};function Zae({popperSize:n,arrowSize:e,arrowOffset:t,side:i,align:r}){const o=(n.width-e.width)/2,s=(n.height-e.width)/2,a={top:0,right:90,bottom:180,left:-90}[i],l=Math.max(e.width,e.height),c={width:`${l}px`,height:`${l}px`,transform:`rotate(${a}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:cZe(i,r)};return i!=="top"&&i!=="bottom"||(r==="start"&&(c.left=`${t}px`),r==="center"&&(c.left=`${o}px`),r==="end"&&(c.right=`${t}px`)),i!=="left"&&i!=="right"||(r==="start"&&(c.top=`${t}px`),r==="center"&&(c.top=`${s}px`),r==="end"&&(c.bottom=`${t}px`)),c}function cZe(n,e){return(n!=="top"&&n!=="right"||e!=="end")&&(n!=="bottom"&&n!=="left"||e==="end")?"ltr":"rtl"}function Xae(n){return{top:"bottom",right:"left",bottom:"top",left:"right"}[n]}function Qae(n,e){return{top:n.top<e.top,right:n.right>e.right,bottom:n.bottom>e.bottom,left:n.left<e.left}}const[Jae,ele]=qae("Popper"),[uZe,tle]=Jae("Popper"),dZe=n=>{const{__scopePopper:e,children:t}=n,[i,r]=O.exports.useState(null);return O.exports.createElement(uZe,{scope:e,anchor:i,onAnchorChange:r},t)},hZe=O.exports.forwardRef((n,e)=>{const l=n,{__scopePopper:t,virtualRef:i}=l,r=gr(l,["__scopePopper","virtualRef"]),o=tle("PopperAnchor",t),s=O.exports.useRef(null),a=aN(e,s);return O.exports.useEffect(()=>{o.onAnchorChange((i==null?void 0:i.current)||s.current)}),i?null:O.exports.createElement(X1.div,vt({},r,{ref:a}))}),[fZe,gZe]=Jae("PopperContent"),pZe=O.exports.forwardRef((n,e)=>{const N=n,{__scopePopper:t,side:i="bottom",sideOffset:r,align:o="center",alignOffset:s,collisionTolerance:a,avoidCollisions:l=!0}=N,c=gr(N,["__scopePopper","side","sideOffset","align","alignOffset","collisionTolerance","avoidCollisions"]),u=tle("PopperContent",t),[d,h]=O.exports.useState(),f=jae(u.anchor),[g,p]=O.exports.useState(null),m=zae(g),[v,_]=O.exports.useState(null),y=zae(v),b=aN(e,A=>p(A)),w=function(){const[A,V]=O.exports.useState(void 0);return O.exports.useEffect(()=>{let P;function U(){V({width:window.innerWidth,height:window.innerHeight})}function F(){window.clearTimeout(P),P=window.setTimeout(U,100)}return U(),window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)},[]),A}(),x=w?DOMRect.fromRect(st(Te({},w),{x:0,y:0})):void 0,{popperStyles:S,arrowStyles:k,placedSide:T,placedAlign:D}=aZe({anchorRect:f,popperSize:m,arrowSize:y,arrowOffset:d,side:i,sideOffset:r,align:o,alignOffset:s,shouldAvoidCollisions:l,collisionBoundariesRect:x,collisionTolerance:a}),R=T!==void 0;return O.exports.createElement("div",{style:S,"data-radix-popper-content-wrapper":""},O.exports.createElement(fZe,{scope:t,arrowStyles:k,onArrowChange:_,onArrowOffsetChange:h},O.exports.createElement(X1.div,vt({"data-side":T,"data-align":D},c,{style:st(Te({},c.style),{animation:R?void 0:"none"}),ref:b}))))}),mZe=O.exports.forwardRef(function(n,e){const a=n,{__scopePopper:t,offset:i}=a,r=gr(a,["__scopePopper","offset"]),o=gZe("PopperArrow",t),{onArrowOffsetChange:s}=o;return O.exports.useEffect(()=>s(i),[s,i]),O.exports.createElement("span",{style:st(Te({},o.arrowStyles),{pointerEvents:"none"})},O.exports.createElement("span",{ref:o.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},O.exports.createElement(rZe,vt({},r,{ref:e,style:st(Te({},r.style),{display:"block"})}))))}),_Ze=dZe,vZe=hZe,bZe=pZe,yZe=mZe,nle=n=>{const{present:e,children:t}=n,i=function(s){const[a,l]=O.exports.useState(),c=O.exports.useRef({}),u=O.exports.useRef(s),d=O.exports.useRef("none"),h=s?"mounted":"unmounted",[f,g]=function(p,m){return O.exports.useReducer((v,_)=>{const y=m[v][_];return y!=null?y:v},p)}(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return O.exports.useEffect(()=>{const p=pN(c.current);d.current=f==="mounted"?p:"none"},[f]),lN(()=>{const p=c.current,m=u.current;if(m!==s){const v=d.current,_=pN(p);s?g("MOUNT"):_==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(m&&v!==_?"ANIMATION_OUT":"UNMOUNT"),u.current=s}},[s,g]),lN(()=>{if(a){const p=v=>{const _=pN(c.current).includes(v.animationName);v.target===a&&_&&g("ANIMATION_END")},m=v=>{v.target===a&&(d.current=pN(c.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}},[a,g]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:O.exports.useCallback(p=>{p&&(c.current=getComputedStyle(p)),l(p)},[])}}(e),r=typeof t=="function"?t({present:i.isPresent}):O.exports.Children.only(t),o=aN(i.ref,r.ref);return typeof t=="function"||i.isPresent?O.exports.cloneElement(r,{ref:o}):null};function pN(n){return(n==null?void 0:n.animationName)||"none"}nle.displayName="Presence";function ile(n){const e=O.exports.useRef(n);return O.exports.useEffect(()=>{e.current=n},[n]),e.current}function z9(n){const e=O.exports.useRef(n);return O.exports.useEffect(()=>{e.current=n}),O.exports.useMemo(()=>(...t)=>{var i;return(i=e.current)===null||i===void 0?void 0:i.call(e,...t)},[])}function CZe(n){const e=z9(n);O.exports.useEffect(()=>{const t=i=>{i.key==="Escape"&&e(i)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])}function wZe({prop:n,defaultProp:e,onChange:t=()=>{}}){const[i,r]=function({defaultProp:l,onChange:c}){const u=O.exports.useState(l),[d]=u,h=O.exports.useRef(d),f=z9(c);return O.exports.useEffect(()=>{h.current!==d&&(f(d),h.current=d)},[d,h,f]),u}({defaultProp:e,onChange:t}),o=n!==void 0,s=o?n:i,a=z9(t);return[s,O.exports.useCallback(l=>{if(o){const c=l,u=typeof l=="function"?c(n):l;u!==n&&a(u)}else r(l)},[o,n,r,a])]}function ry(n,e,{checkForDefaultPrevented:t=!0}={}){return function(i){if(n==null||n(i),t===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}const[rle,h$t]=qae("Tooltip",[ele]),mN=ele(),SZe=700,[f$t,xZe]=rle("TooltipProvider",{isOpenDelayed:!0,delayDuration:SZe,onOpen:()=>{},onClose:()=>{}}),[EZe,_N]=rle("Tooltip"),kZe=n=>{const{__scopeTooltip:e,children:t,open:i,defaultOpen:r=!1,onOpenChange:o,delayDuration:s}=n,a=xZe("Tooltip",e),l=mN(e),[c,u]=O.exports.useState(null),d=nZe(),h=O.exports.useRef(0),f=s!=null?s:a.delayDuration,g=O.exports.useRef(!1),{onOpen:p,onClose:m}=a,[v=!1,_]=wZe({prop:i,defaultProp:r,onChange:x=>{x&&(document.dispatchEvent(new CustomEvent("tooltip.open")),p()),o==null||o(x)}}),y=O.exports.useMemo(()=>v?g.current?"delayed-open":"instant-open":"closed",[v]),b=O.exports.useCallback(()=>{window.clearTimeout(h.current),g.current=!1,_(!0)},[_]),w=O.exports.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,_(!0)},f)},[f,_]);return O.exports.useEffect(()=>()=>window.clearTimeout(h.current),[]),O.exports.createElement(_Ze,l,O.exports.createElement(EZe,{scope:e,contentId:d,open:v,stateAttribute:y,trigger:c,onTriggerChange:u,onTriggerEnter:O.exports.useCallback(()=>{a.isOpenDelayed?w():b()},[a.isOpenDelayed,w,b]),onOpen:O.exports.useCallback(b,[b]),onClose:O.exports.useCallback(()=>{window.clearTimeout(h.current),_(!1),m()},[_,m])},t))},LZe=O.exports.forwardRef((n,e)=>{const c=n,{__scopeTooltip:t}=c,i=gr(c,["__scopeTooltip"]),r=_N("TooltipTrigger",t),o=mN(t),s=aN(e,r.onTriggerChange),a=O.exports.useRef(!1),l=O.exports.useCallback(()=>a.current=!1,[]);return O.exports.useEffect(()=>()=>document.removeEventListener("mouseup",l),[l]),O.exports.createElement(vZe,vt({asChild:!0},o),O.exports.createElement(X1.button,vt({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},i,{ref:s,onMouseEnter:ry(n.onMouseEnter,r.onTriggerEnter),onMouseLeave:ry(n.onMouseLeave,r.onClose),onMouseDown:ry(n.onMouseDown,()=>{r.onClose(),a.current=!0,document.addEventListener("mouseup",l,{once:!0})}),onFocus:ry(n.onFocus,()=>{a.current||r.onOpen()}),onBlur:ry(n.onBlur,r.onClose),onClick:ry(n.onClick,r.onClose)})))}),TZe=O.exports.forwardRef((n,e)=>{const o=n,{forceMount:t}=o,i=gr(o,["forceMount"]),r=_N("TooltipContent",n.__scopeTooltip);return O.exports.createElement(nle,{present:t||r.open},O.exports.createElement(DZe,vt({ref:e},i)))}),DZe=O.exports.forwardRef((n,e)=>{const d=n,{__scopeTooltip:t,children:i,"aria-label":r,portalled:o=!0}=d,s=gr(d,["__scopeTooltip","children","aria-label","portalled"]),a=_N("TooltipContent",t),l=mN(t),c=o?hae:O.exports.Fragment,{onClose:u}=a;return CZe(()=>u()),O.exports.useEffect(()=>(document.addEventListener("tooltip.open",u),()=>document.removeEventListener("tooltip.open",u)),[u]),O.exports.createElement(c,null,O.exports.createElement(RZe,{__scopeTooltip:t}),O.exports.createElement(bZe,vt({"data-state":a.stateAttribute},l,s,{ref:e,style:st(Te({},s.style),{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"})}),O.exports.createElement(uae,null,i),O.exports.createElement(iZe,{id:a.contentId,role:"tooltip"},r||i)))}),IZe=O.exports.forwardRef((n,e)=>{const o=n,{__scopeTooltip:t}=o,i=gr(o,["__scopeTooltip"]),r=mN(t);return O.exports.createElement(yZe,vt({},r,i,{ref:e}))});function RZe(n){const{__scopeTooltip:e}=n,t=_N("CheckTriggerMoved",e),i=jae(t.trigger),r=i==null?void 0:i.left,o=ile(r),s=i==null?void 0:i.top,a=ile(s),l=t.onClose;return O.exports.useEffect(()=>{(o!==void 0&&o!==r||a!==void 0&&a!==s)&&l()},[l,o,a,r,s]),null}const NZe=kZe,AZe=LZe,OZe=TZe,PZe=IZe;function MZe(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}function Ui(n,e){if(n==null)return{};var t=MZe(n,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,i)||(t[i]=n[i]))}return t}let Fr;(function(n){n[n.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",n[n.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",n[n.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",n[n.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",n[n.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",n[n.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",n[n.THEME_ERROR=6]="THEME_ERROR",n[n.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",n[n.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",n[n.EMPTY_KEY=9]="EMPTY_KEY"})(Fr||(Fr={}));const FZe={[Fr.UNSUPPORTED_INPUT]:(n,e)=>[`An input with type \`${n}\` input was found at path \`${e}\` but it's not supported yet.`],[Fr.NO_COMPONENT_FOR_TYPE]:(n,e)=>[`Type \`${n}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[Fr.UNKNOWN_INPUT]:(n,e)=>[`input at path \`${n}\` is not recognized.`,e],[Fr.DUPLICATE_KEYS]:(n,e,t)=>[`Key \`${n}\` of path \`${e}\` already exists at path \`${t}\`. Even nested keys need to be unique. Rename one of the keys.`],[Fr.ALREADY_REGISTERED_TYPE]:n=>[`Type ${n} has already been registered. You can't register a component with the same type.`],[Fr.CLIPBOARD_ERROR]:n=>["Error copying the value",n],[Fr.THEME_ERROR]:(n,e)=>[`Error accessing the theme \`${n}.${e}\` value.`],[Fr.PATH_DOESNT_EXIST]:n=>[`Error getting the value at path \`${n}\`. There is probably an error in your \`render\` function.`],[Fr.PATH_DOESNT_EXIST]:n=>[`Error accessing the value at path \`${n}\``],[Fr.INPUT_TYPE_OVERRIDE]:(n,e,t)=>[`Input at path \`${n}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${t}\`.`],[Fr.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function ole(n,e,...t){const[i,...r]=FZe[e](...t);console[n]("LEVA: "+i,...r)}const Df=ole.bind(null,"warn"),BZe=ole.bind(null,"log"),$Ze=["value"],WZe=["schema"],HZe=["value"],sle=[],J_={};function ale(n){let{value:e}=n,t=Ui(n,$Ze);for(let i of sle){const r=i(e,t);if(r)return r}}function If(n,e){let{schema:t}=e,i=Ui(e,WZe);if(n in J_){Df(Fr.ALREADY_REGISTERED_TYPE,n);return}sle.push((r,o)=>t(r,o)&&n),J_[n]=i}function Rf(n){return n}function U9(n,e,t,i){const{normalize:r}=J_[n];if(r)return r(e,t,i);if(typeof e!="object"||!("value"in e))return{value:e};const{value:o}=e,s=Ui(e,HZe);return{value:o,settings:s}}function VZe(n,e,t,i,r,o){const{sanitize:s}=J_[n];return s?s(e,t,i,r,o):e}function lle(n,e,t){const{format:i}=J_[n];return i?i(e,t):e}function zZe(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function cle(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function dn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?cle(Object(t),!0).forEach(function(i){zZe(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):cle(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}const Op=(n,e,t)=>n>t?t:n<e?e:n,UZe=n=>{if(n===""||typeof n=="number")return n;try{const e=Pp(n);if(!isNaN(e))return e}catch{}return parseFloat(n)},jZe=Math.log(10);function ule(n){let e=Math.abs(+String(n).replace(".",""));if(e===0)return .01;for(;e!==0&&e%10==0;)e/=10;const t=Math.floor(Math.log(e)/jZe)+1,i=Math.floor(Math.log10(Math.abs(n))),r=Math.pow(10,i-t);return Math.max(r,.001)}const vN=(n,e,t)=>t===e?0:(Op(n,e,t)-e)/(t-e),bN=(n,e,t)=>n*(t-e)+e,qZe=()=>"_"+Math.random().toString(36).substr(2,9),dle=/\(([0-9+\-*/^ .]+)\)/,hle=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,fle=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,gle=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,ple=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,mle=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function Pp(n){if(isNaN(Number(n)))if(dle.test(n)){const e=n.replace(dle,(t,i)=>String(Pp(i)));return Pp(e)}else if(hle.test(n)){const e=n.replace(hle,(t,i,r)=>String(Math.pow(Number(i),Number(r))));return Pp(e)}else if(fle.test(n)){const e=n.replace(fle,(t,i,r)=>String(Number(i)*Number(r)));return Pp(e)}else if(gle.test(n)){const e=n.replace(gle,(t,i,r)=>{if(r!=0)return String(Number(i)/Number(r));throw new Error("Division by zero")});return Pp(e)}else if(ple.test(n)){const e=n.replace(ple,(t,i,r)=>String(Number(i)+Number(r)));return Pp(e)}else if(mle.test(n)){const e=n.replace(mle,(t,i,r)=>String(Number(i)-Number(r)));return Pp(e)}else return Number(n);return Number(n)}function KZe(n,e){return e.reduce((t,i)=>(!!n&&n.hasOwnProperty(i)&&(t[i]=n[i]),t),{})}function GZe(n,e){const t=dn({},n);return e.forEach(i=>i in n&&delete t[i]),t}function YZe(n,e){return n.reduce((t,i,r)=>Object.assign(t,{[e[r]]:i}),{})}let Hu;(function(n){n.BUTTON="BUTTON",n.BUTTON_GROUP="BUTTON_GROUP",n.MONITOR="MONITOR",n.FOLDER="FOLDER"})(Hu||(Hu={}));let Vu;(function(n){n.SELECT="SELECT",n.IMAGE="IMAGE",n.NUMBER="NUMBER",n.COLOR="COLOR",n.STRING="STRING",n.BOOLEAN="BOOLEAN",n.INTERVAL="INTERVAL",n.VECTOR3D="VECTOR3D",n.VECTOR2D="VECTOR2D"})(Vu||(Vu={}));const ZZe=["type","__customInput"],XZe=["render","label","optional","disabled","hint","onChange","onEditStart","onEditEnd","transient"],QZe=["type"];function _le(n,e,t={},i){if(typeof n!="object"||Array.isArray(n))return{type:i,input:n,options:dn({key:e,label:e,optional:!1,disabled:!1},t)};if("__customInput"in n){const{type:v,__customInput:_}=n,y=Ui(n,ZZe);return _le(_,e,y,v)}const{render:r,label:o,optional:s,disabled:a,hint:l,onChange:c,onEditStart:u,onEditEnd:d,transient:h}=n,f=Ui(n,XZe),g=dn({render:r,key:e,label:o!=null?o:e,hint:l,transient:h!=null?h:!!c,onEditStart:u,onEditEnd:d},t);let{type:p}=f,m=Ui(f,QZe);return p=i!=null?i:p,p in Hu?{type:p,input:m,options:g}:{type:p,input:m,options:dn(dn({},g),{},{onChange:c,optional:s!=null?s:!1,disabled:a!=null?a:!1})}}function JZe(n,e,t,i){const r=_le(n,e),{type:o,input:s,options:a}=r;if(o)return o in Hu?r:{type:o,input:U9(o,s,t,i),options:a};let l=ale(s);return l?{type:l,input:U9(l,s,t,i),options:a}:(l=ale({value:s}),l?{type:l,input:U9(l,{value:s},t,i),options:a}:!1)}function vle(n,e,t,i,r){const{value:o,type:s,settings:a}=n;n.value=yle({type:s,value:o,settings:a},e,t,i),n.fromPanel=r}const ble=function(e,t,i){this.type="LEVA_ERROR",this.message="LEVA: "+e,this.previousValue=t,this.error=i};function yle({type:n,value:e,settings:t},i,r,o){const s=n!=="SELECT"&&typeof i=="function"?i(e):i;let a;try{a=VZe(n,s,t,e,r,o)}catch(l){throw new ble(`The value \`${i}\` did not result in a correct value.`,e,l)}if(lE(a,e))throw new ble(`The value \`${i}\` did not result in a value update, which remained the same: \`${e}\`.
|
|
310
|
+
You can ignore this warning if this is the intended behavior.`,e);return a}const Cle=(n,e,t=!1)=>{let i=0;return function(){const r=arguments,o=t&&!i,s=()=>n.apply(this,r);window.clearTimeout(i),i=window.setTimeout(s,e),o&&s()}},wle=n=>n.shiftKey?5:n.altKey?1/5:1,eXe=["value"],tXe=["min","max"],nXe=n=>typeof n=="number"||typeof n=="string"&&!isNaN(parseFloat(n)),Sle=(n,{min:e=-1/0,max:t=1/0,suffix:i})=>{const r=parseFloat(n);if(n===""||isNaN(r))throw Error("Invalid number");const o=Op(r,e,t);return i?o+i:o},iXe=(n,{pad:e=0,suffix:t})=>{const i=parseFloat(n).toFixed(e);return t?i+t:i},xle=n=>{let{value:e}=n,t=Ui(n,eXe);const{min:i=-1/0,max:r=1/0}=t,o=Ui(t,tXe),s=Op(parseFloat(e),i,r);let a;if(!Number.isFinite(e)){const d=String(e).match(/[A-Z]+/i);d&&(a=d[0])}let l=t.step;l||(Number.isFinite(i)?Number.isFinite(r)?l=+(Math.abs(r-i)/100).toPrecision(1):l=+(Math.abs(s-i)/100).toPrecision(1):Number.isFinite(r)&&(l=+(Math.abs(r-s)/100).toPrecision(1)));const c=l?ule(l)*10:ule(s);l=l||c/10;const u=Math.round(Op(Math.log10(1/c),0,2));return{value:a?s+a:s,settings:dn({initialValue:s,step:l,pad:u,min:i,max:r,suffix:a},o)}},Ele=(n,{step:e,initialValue:t})=>{const i=Math.round((n-t)/e);return t+i*e};var kle=Object.freeze({__proto__:null,schema:nXe,sanitize:Sle,format:iXe,normalize:xle,sanitizeStep:Ele});const Lle=O.exports.createContext({});function ua(){return O.exports.useContext(Lle)}const j9=O.exports.createContext(null),Tle=O.exports.createContext(null),Dle=O.exports.createContext(null);function yN(){return O.exports.useContext(Tle)}function rXe(){return O.exports.useContext(Dle)}const Ile=()=>({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function CN(n,e){const[t,i]=n.split(" "),r={};return t!=="none"&&(r.boxShadow=`${e.inset?"inset ":""}0 0 0 $borderWidths${[e.key]} $colors${t!=="default"&&t||e.borderColor}`),i&&(r.backgroundColor=i),r}const gE={$inputStyle:()=>n=>CN(n,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>n=>CN(n,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>n=>CN(n,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>n=>CN(n,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:nn,css:g$t,createTheme:oXe,globalCss:sXe,keyframes:p$t}=fYe({prefix:"leva",theme:Ile(),utils:dn(dn({},gE),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:n=>({"&:focus":gE.$focusStyle()(n)}),$focusWithin:n=>({"&:focus-within":gE.$focusStyle()(n)}),$hover:n=>({"&:hover":gE.$hoverStyle()(n)}),$active:n=>({"&:active":gE.$activeStyle()(n)})})});sXe({".panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}})();function aXe(n){const e=Ile();if(!n)return{theme:e,className:""};Object.keys(n).forEach(i=>{Object.assign(e[i],n[i])});const t=oXe(e);return{theme:e,className:t.className}}function Nf(n,e){const{theme:t}=O.exports.useContext(j9);if(!(n in t)||!(e in t[n]))return Df(Fr.THEME_ERROR,n,e),"";let i=e;for(;;){let r=t[n][i];if(typeof r=="string"&&r.charAt(0)==="$")i=r.substr(1);else return r}}const Rle=nn("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}}}}),Nle=nn("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${Rle}`]:{paddingLeft:0}}),lXe=nn(Nle,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),cXe=nn("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:""}),uXe=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id"],dXe=["onUpdate"];function q9(n){let{innerLabel:e,value:t,onUpdate:i,onChange:r,onKeyDown:o,type:s,id:a}=n,l=Ui(n,uXe);const{id:c,emitOnEditStart:u,emitOnEditEnd:d}=ua(),h=a||c,f=O.exports.useRef(null),g=O.exports.useCallback(m=>v=>{const _=v.currentTarget.value;m(_)},[]);xe.useEffect(()=>{const m=f.current,v=g(_=>{i(_),d()});return m==null||m.addEventListener("blur",v),()=>m==null?void 0:m.removeEventListener("blur",v)},[g,i,d]);const p=O.exports.useCallback(m=>{m.key==="Enter"&&g(i)(m)},[g,i]);return dt(cXe,{children:[e&&typeof e=="string"?ne(Nle,{children:e}):e,ne(Rle,Te({levaType:s,ref:f,id:h,type:"text",autoComplete:"off",spellCheck:"false",value:t,onChange:g(r),onFocus:()=>u(),onKeyPress:p,onKeyDown:o},l))]})}function hXe(n){let{onUpdate:e}=n,t=Ui(n,dXe);const i=O.exports.useCallback(o=>e(UZe(o)),[e]),r=O.exports.useCallback(o=>{const s=o.key==="ArrowUp"?1:o.key==="ArrowDown"?-1:0;if(s){o.preventDefault();const a=o.altKey?.1:o.shiftKey?10:1;e(l=>parseFloat(l)+s*a)}},[e]);return ne(q9,st(Te({},t),{onUpdate:i,onKeyDown:r,type:"number"}))}const wN=nn("div",{}),K9=nn("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),fXe=nn("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${K9}::after`]:{opacity:.6},[`${wN}:hover > & + ${K9}::after`]:{opacity:.6},[`${wN}:hover > & > svg`]:{opacity:1}}),Ale=nn("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${wN}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),Ole=nn("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${Ale} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},"&:hover,&:focus-within":{color:"$highlight3"}}),Ple=nn(Ole,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),gXe=nn("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),pXe=nn("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),mXe=nn("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none"}}}}),Mle=nn("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Fle=nn("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),_Xe=nn("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),vXe=nn(PZe,{fill:"$toolTipBackground"});function G9({children:n}){const{className:e}=O.exports.useContext(j9);return ne(NGe,{className:e,children:n})}const bXe=["align"];function yXe(){const{id:n,disable:e,disabled:t}=ua();return dt(Qr,{children:[ne(pXe,{id:n+"__disable",type:"checkbox",checked:!t,onChange:()=>e(!t)}),ne("label",{htmlFor:n+"__disable"})]})}function CXe(n){const{id:e,optional:t,hint:i}=ua(),r=n.htmlFor||(e?{htmlFor:e}:null),o=!i&&typeof n.children=="string"?{title:n.children}:null;return dt(Qr,{children:[t&&ne(yXe,{}),i!==void 0?dt(NZe,{children:[ne(AZe,{asChild:!0,children:ne(Mle,Te(Te({},r),n))}),ne(OZe,{side:"top",sideOffset:2,children:dt(_Xe,{children:[i,ne(vXe,{})]})})]}):ne(Mle,Te(Te(Te({},r),o),n))]})}function zu(n){let{align:e}=n,t=Ui(n,bXe);const{value:i,label:r,key:o}=ua(),{hideCopyButton:s}=rXe(),a=!s&&o!==void 0,[l,c]=O.exports.useState(!1),u=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[o]:i!=null?i:""})),c(!0)}catch{Df(Fr.CLIPBOARD_ERROR,{[o]:i})}};return dt(gXe,{align:e,onPointerLeave:()=>c(!1),children:[ne(CXe,Te({},t)),a&&ne("div",{title:`Click to copy ${typeof r=="string"?r:o} value`,children:l?dt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:[ne("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),ne("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})]}):dt("svg",{onClick:u,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:[ne("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),ne("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"})]})})]})}const wXe=["toggled"],SXe=nn("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Y9(n){let{toggled:e}=n,t=Ui(n,wXe);return ne(SXe,st(Te({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e?0:-90}deg)`}},t),{children:ne("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"})}))}const xXe=["input"];function Qc(n){let{input:e}=n,t=Ui(n,xXe);return e?ne(Ple,Te({},t)):ne(Ole,Te({},t))}function Ble({value:n,type:e,settings:t,setValue:i}){const[r,o]=O.exports.useState(lle(e,n,t)),s=O.exports.useRef(n),a=O.exports.useRef(t);a.current=t;const l=O.exports.useCallback(u=>o(lle(e,u,a.current)),[e]),c=O.exports.useCallback(u=>{try{i(u)}catch(d){const{type:h,previousValue:f}=d;if(h!=="LEVA_ERROR")throw d;l(f)}},[l,i]);return O.exports.useEffect(()=>{lE(n,s.current)||l(n),s.current=n},[n,l]),{displayValue:r,onChange:o,onUpdate:c}}function SN(n,e){const{emitOnEditStart:t,emitOnEditEnd:i}=ua();return Vae(r=>{r.first&&(document.body.classList.add("panel__dragged"),t());const o=n(r);return r.last&&(document.body.classList.remove("panel__dragged"),i()),o},e)}function EXe(n){const e=O.exports.useRef(null),t=O.exports.useRef(null),i=O.exports.useRef(!1);return O.exports.useEffect(()=>{const r=Cle(()=>{e.current.width=e.current.offsetWidth*window.devicePixelRatio,e.current.height=e.current.offsetHeight*window.devicePixelRatio,n(e.current,t.current)},250);return window.addEventListener("resize",r),i.current||(r(),i.current=!0),()=>window.removeEventListener("resize",r)},[n]),O.exports.useEffect(()=>{t.current=e.current.getContext("2d")},[]),[e,t]}function $le(){const n=O.exports.useRef(null),e=O.exports.useRef({x:0,y:0}),t=O.exports.useCallback(i=>{Object.assign(e.current,i),n.current&&(n.current.style.transform=`translate3d(${e.current.x}px, ${e.current.y}px, 0)`)},[]);return[n,t]}const kXe=["__refCount"],Z9=(n,e)=>{if(!n[e])return null;const t=n[e];return Ui(t,kXe)};function LXe(n){const e=yN(),[t,i]=O.exports.useState(Z9(e.getData(),n)),r=O.exports.useCallback(c=>e.setValueAtPath(n,c,!0),[n,e]),o=O.exports.useCallback(c=>e.setSettingsAtPath(n,c),[n,e]),s=O.exports.useCallback(c=>e.disableInputAtPath(n,c),[n,e]),a=O.exports.useCallback(()=>e.emitOnEditStart(n),[n,e]),l=O.exports.useCallback(()=>e.emitOnEditEnd(n),[n,e]);return O.exports.useEffect(()=>{i(Z9(e.getData(),n));const c=e.useStore.subscribe(u=>Z9(u.data,n),i,{equalityFn:cE});return()=>c()},[e,n]),[t,{set:r,setSettings:o,disable:s,storeId:e.storeId,emitOnEditStart:a,emitOnEditEnd:l}]}const TXe=nn("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),Wle=nn("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),X9=nn("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),Hle=nn("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),Vle=nn("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function DXe({value:n,min:e,max:t,onDrag:i,step:r,initialValue:o}){const s=O.exports.useRef(null),a=O.exports.useRef(null),l=O.exports.useRef(0),c=Nf("sizes","scrubberWidth"),u=SN(({event:h,first:f,xy:[g],movement:[p],memo:m})=>{if(f){const{width:_,left:y}=s.current.getBoundingClientRect();l.current=_-parseFloat(c),m=(h==null?void 0:h.target)===a.current?n:bN((g-y)/_,e,t)}const v=m+bN(p/l.current,0,t-e);return i(Ele(v,{step:r,initialValue:o})),m}),d=vN(n,e,t);return dt(Hle,st(Te({ref:s},u()),{children:[ne(Wle,{children:ne(Vle,{style:{left:0,right:`${(1-d)*100}%`}})}),ne(X9,{ref:a,style:{left:`calc(${d} * (100% - ${c}))`}})]}))}const IXe=xe.memo(({label:n,onUpdate:e,step:t,innerLabelTrim:i})=>{const[r,o]=O.exports.useState(!1),s=SN(({active:a,delta:[l],event:c,memo:u=0})=>(o(a),u+=l/2,Math.abs(u)>=1&&(e(d=>parseFloat(d)+Math.floor(u)*t*wle(c)),u=0),u));return ne(lXe,st(Te({dragging:r,title:n.length>1?n:""},s()),{children:n.slice(0,i)}))});function zle({label:n,id:e,displayValue:t,onUpdate:i,onChange:r,settings:o,innerLabelTrim:s=1}){const a=s>0&&ne(IXe,{label:n,step:o.step,onUpdate:i,innerLabelTrim:s});return ne(hXe,{id:e,value:String(t),onUpdate:i,onChange:r,innerLabel:a})}function RXe(){const n=ua(),{label:e,value:t,onUpdate:i,settings:r,id:o}=n,{min:s,max:a}=r,l=a!==1/0&&s!==-1/0;return dt(Qc,{input:!0,children:[ne(zu,{children:e}),dt(TXe,{hasRange:l,children:[l&&ne(DXe,Te({value:parseFloat(t),onDrag:i},r)),ne(zle,st(Te({},n),{id:o,label:"value",innerLabelTrim:l?0:1}))]})]})}const{sanitizeStep:NXe}=kle,AXe=Ui(kle,["sanitizeStep"]);var OXe=Rf(dn({component:RXe},AXe)),PXe=Object.freeze({__proto__:null,schema:(n,e)=>Cl().schema({options:Cl().passesAnyOf(Cl().object(),Cl().array())}).test(e),sanitize:(n,{values:e})=>{if(e.indexOf(n)<0)throw Error("Selected value doesn't match Select options");return n},format:(n,{values:e})=>e.indexOf(n),normalize:n=>{let{value:e,options:t}=n,i,r;return Array.isArray(t)?(r=t,i=t.map(o=>String(o))):(r=Object.values(t),i=Object.keys(t)),"value"in n?r.includes(e)||(i.unshift(String(e)),r.unshift(e)):e=r[0],Object.values(t).includes(e)||(t[String(e)]=e),{value:e,settings:{keys:i,values:r}}}});const MXe=nn("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Q9=nn("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),FXe=nn("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Q9}:focus + &`]:{$focusStyle:""},[`${Q9}:hover + &`]:{$hoverStyle:""}});function BXe({displayValue:n,value:e,onUpdate:t,id:i,settings:r}){const{keys:o,values:s}=r,a=O.exports.useRef();return e===s[n]&&(a.current=o[n]),dt(MXe,{children:[ne(Q9,{id:i,value:n,onChange:l=>t(s[Number(l.currentTarget.value)]),children:o.map((l,c)=>ne("option",{value:c,children:l},l))}),ne(FXe,{children:a.current}),ne(Y9,{toggled:!0})]})}function $Xe(){const{label:n,value:e,displayValue:t,onUpdate:i,id:r,settings:o}=ua();return dt(Qc,{input:!0,children:[ne(zu,{children:n}),ne(BXe,{id:r,value:e,displayValue:t,onUpdate:i,settings:o})]})}var WXe=Rf(dn({component:$Xe},PXe)),HXe=Object.freeze({__proto__:null,schema:n=>Cl().string().test(n),sanitize:n=>{if(typeof n!="string")throw Error("Invalid string");return n}});const VXe=["displayValue","onUpdate","onChange"];function zXe(n){let{displayValue:e,onUpdate:t,onChange:i}=n,r=Ui(n,VXe);return ne(q9,Te({value:e,onUpdate:t,onChange:i},r))}function UXe(){const{label:n,displayValue:e,onUpdate:t,onChange:i}=ua();return dt(Qc,{input:!0,children:[ne(zu,{children:n}),ne(zXe,{displayValue:e,onUpdate:t,onChange:i})]})}var jXe=Rf(dn({component:UXe},HXe)),qXe=Object.freeze({__proto__:null,schema:n=>Cl().boolean().test(n),sanitize:n=>{if(typeof n!="boolean")throw Error("Invalid boolean");return n}});const KXe=nn("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function GXe({value:n,onUpdate:e,id:t}){return dt(KXe,{children:[ne("input",{id:t,type:"checkbox",checked:n,onChange:i=>e(i.currentTarget.checked)}),ne("label",{htmlFor:t,children:ne("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:ne("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})})]})}function YXe(){const{label:n,value:e,onUpdate:t,id:i}=ua();return dt(Qc,{input:!0,children:[ne(zu,{children:n}),ne(GXe,{value:e,onUpdate:t,id:i})]})}var ZXe=Rf(dn({component:YXe},qXe));const XXe=["locked"];function QXe({value:n,id:e,valueKey:t,settings:i,onUpdate:r,innerLabelTrim:o}){const s=O.exports.useRef(n[t]);s.current=n[t];const a=O.exports.useCallback(c=>r({[t]:yle({type:"NUMBER",value:s.current,settings:i},c)}),[r,i,t]),l=Ble({type:"NUMBER",value:n[t],settings:i,setValue:a});return ne(zle,{id:e,label:t,value:n[t],displayValue:l.displayValue,onUpdate:l.onUpdate,onChange:l.onChange,settings:i,innerLabelTrim:o})}const JXe=nn("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function eQe(n){let{locked:e}=n,t=Ui(n,XXe);return ne("svg",st(Te({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{children:e?ne("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):ne("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}))}function J9({value:n,onUpdate:e,settings:t,innerLabelTrim:i}){const{id:r,setSettings:o}=ua(),{lock:s,locked:a}=t;return dt(JXe,{withLock:s,children:[s&&ne(eQe,{locked:a,onClick:()=>o({locked:!a})}),Object.keys(n).map((l,c)=>ne(QXe,{id:c===0?r:`${r}.${l}`,valueKey:l,value:n,settings:t[l],onUpdate:e,innerLabelTrim:i},l))]})}const Ule=(n,e)=>{const t={};let i=0,r=1/0;Object.entries(n).forEach(([o,s])=>{t[o]=xle(dn({value:s},e[o])).settings,i=Math.max(i,t[o].step),r=Math.min(r,t[o].pad)});for(let o in t){const{step:s,min:a,max:l}=e[o]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(l))&&(t[o].step=i,t[o].pad=r)}return t},tQe=["lock"],nQe=["value"];function iQe(n){const e=Cl().array().length(n).every.number(),t=i=>{if(!i||typeof i!="object")return!1;const r=Object.values(i);return r.length===n&&r.every(o=>isFinite(o))};return i=>e.test(i)||t(i)}function rQe(n){return Array.isArray(n)?"array":"object"}function pE(n,e,t){return rQe(n)===e?n:e==="array"?Object.values(n):YZe(n,t)}const oQe=(n,e,t)=>{const i=pE(n,"object",e.keys);for(let s in i)i[s]=Sle(i[s],e[s]);const r=Object.keys(i);let o={};if(r.length===e.keys.length)o=i;else{const s=pE(t,"object",e.keys);if(r.length===1&&e.locked){const a=r[0],l=i[a],c=s[a],u=c!==0?l/c:1;for(let d in s)d===a?o[a]=l:o[d]=s[d]*u}else o=dn(dn({},s),i)}return pE(o,e.format,e.keys)},sQe=(n,e)=>pE(n,"object",e.keys),aQe=n=>!!n&&("step"in n||"min"in n||"max"in n);function lQe(n,e,t=[]){const{lock:i=!1}=e,r=Ui(e,tQe),o=Array.isArray(n)?"array":"object",s=o==="object"?Object.keys(n):t,a=pE(n,"object",s),l=aQe(r)?s.reduce((u,d)=>Object.assign(u,{[d]:r}),{}):r,c=Ule(a,l);return{value:o==="array"?n:a,settings:dn(dn({},c),{},{format:o,keys:s,lock:i,locked:!1})}}function jle(n){return{schema:iQe(n.length),normalize:e=>{let{value:t}=e,i=Ui(e,nQe);return lQe(t,i,n)},format:(e,t)=>sQe(e,t),sanitize:(e,t,i)=>oQe(e,t,i)}}var cQe={grad:.9,turn:360,rad:360/(2*Math.PI)},Af=function(n){return typeof n=="string"?n.length>0:typeof n=="number"},bs=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t+0},Jc=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n>e?n:e},qle=function(n){return(n=isFinite(n)?n%360:0)>0?n:n+360},Kle=function(n){return{r:Jc(n.r,0,255),g:Jc(n.g,0,255),b:Jc(n.b,0,255),a:Jc(n.a)}},e7=function(n){return{r:bs(n.r),g:bs(n.g),b:bs(n.b),a:bs(n.a,3)}},uQe=/^#([0-9a-f]{3,8})$/i,xN=function(n){var e=n.toString(16);return e.length<2?"0"+e:e},Gle=function(n){var e=n.r,t=n.g,i=n.b,r=n.a,o=Math.max(e,t,i),s=o-Math.min(e,t,i),a=s?o===e?(t-i)/s:o===t?2+(i-e)/s:4+(e-t)/s:0;return{h:60*(a<0?a+6:a),s:o?s/o*100:0,v:o/255*100,a:r}},Yle=function(n){var e=n.h,t=n.s,i=n.v,r=n.a;e=e/360*6,t/=100,i/=100;var o=Math.floor(e),s=i*(1-t),a=i*(1-(e-o)*t),l=i*(1-(1-e+o)*t),c=o%6;return{r:255*[i,a,s,s,l,i][c],g:255*[l,i,i,a,s,s][c],b:255*[s,s,l,i,i,a][c],a:r}},Zle=function(n){return{h:qle(n.h),s:Jc(n.s,0,100),l:Jc(n.l,0,100),a:Jc(n.a)}},Xle=function(n){return{h:bs(n.h),s:bs(n.s),l:bs(n.l),a:bs(n.a,3)}},Qle=function(n){return Yle((t=(e=n).s,{h:e.h,s:(t*=((i=e.l)<50?i:100-i)/100)>0?2*t/(i+t)*100:0,v:i+t,a:e.a}));var e,t,i},mE=function(n){return{h:(e=Gle(n)).h,s:(r=(200-(t=e.s))*(i=e.v)/100)>0&&r<200?t*i/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,t,i,r},dQe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hQe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fQe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gQe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,t7={string:[[function(n){var e=uQe.exec(n);return e?(n=e[1]).length<=4?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?bs(parseInt(n[3]+n[3],16)/255,2):1}:n.length===6||n.length===8?{r:parseInt(n.substr(0,2),16),g:parseInt(n.substr(2,2),16),b:parseInt(n.substr(4,2),16),a:n.length===8?bs(parseInt(n.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(n){var e=fQe.exec(n)||gQe.exec(n);return e?e[2]!==e[4]||e[4]!==e[6]?null:Kle({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(n){var e=dQe.exec(n)||hQe.exec(n);if(!e)return null;var t,i,r=Zle({h:(t=e[1],i=e[2],i===void 0&&(i="deg"),Number(t)*(cQe[i]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Qle(r)},"hsl"]],object:[[function(n){var e=n.r,t=n.g,i=n.b,r=n.a,o=r===void 0?1:r;return Af(e)&&Af(t)&&Af(i)?Kle({r:Number(e),g:Number(t),b:Number(i),a:Number(o)}):null},"rgb"],[function(n){var e=n.h,t=n.s,i=n.l,r=n.a,o=r===void 0?1:r;if(!Af(e)||!Af(t)||!Af(i))return null;var s=Zle({h:Number(e),s:Number(t),l:Number(i),a:Number(o)});return Qle(s)},"hsl"],[function(n){var e=n.h,t=n.s,i=n.v,r=n.a,o=r===void 0?1:r;if(!Af(e)||!Af(t)||!Af(i))return null;var s=function(a){return{h:qle(a.h),s:Jc(a.s,0,100),v:Jc(a.v,0,100),a:Jc(a.a)}}({h:Number(e),s:Number(t),v:Number(i),a:Number(o)});return Yle(s)},"hsv"]]},Jle=function(n,e){for(var t=0;t<e.length;t++){var i=e[t][0](n);if(i)return[i,e[t][1]]}return[null,void 0]},ece=function(n){return typeof n=="string"?Jle(n.trim(),t7.string):typeof n=="object"&&n!==null?Jle(n,t7.object):[null,void 0]},pQe=function(n){return ece(n)[1]},n7=function(n,e){var t=mE(n);return{h:t.h,s:Jc(t.s+100*e,0,100),l:t.l,a:t.a}},i7=function(n){return(299*n.r+587*n.g+114*n.b)/1e3/255},tce=function(n,e){var t=mE(n);return{h:t.h,s:t.s,l:Jc(t.l+100*e,0,100),a:t.a}},r7=function(){function n(e){this.parsed=ece(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return n.prototype.isValid=function(){return this.parsed!==null},n.prototype.brightness=function(){return bs(i7(this.rgba),2)},n.prototype.isDark=function(){return i7(this.rgba)<.5},n.prototype.isLight=function(){return i7(this.rgba)>=.5},n.prototype.toHex=function(){return e=e7(this.rgba),t=e.r,i=e.g,r=e.b,s=(o=e.a)<1?xN(bs(255*o)):"","#"+xN(t)+xN(i)+xN(r)+s;var e,t,i,r,o,s},n.prototype.toRgb=function(){return e7(this.rgba)},n.prototype.toRgbString=function(){return e=e7(this.rgba),t=e.r,i=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+i+", "+r+", "+o+")":"rgb("+t+", "+i+", "+r+")";var e,t,i,r,o},n.prototype.toHsl=function(){return Xle(mE(this.rgba))},n.prototype.toHslString=function(){return e=Xle(mE(this.rgba)),t=e.h,i=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+i+"%, "+r+"%, "+o+")":"hsl("+t+", "+i+"%, "+r+"%)";var e,t,i,r,o},n.prototype.toHsv=function(){return e=Gle(this.rgba),{h:bs(e.h),s:bs(e.s),v:bs(e.v),a:bs(e.a,3)};var e},n.prototype.invert=function(){return Fa({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},n.prototype.saturate=function(e){return e===void 0&&(e=.1),Fa(n7(this.rgba,e))},n.prototype.desaturate=function(e){return e===void 0&&(e=.1),Fa(n7(this.rgba,-e))},n.prototype.grayscale=function(){return Fa(n7(this.rgba,-1))},n.prototype.lighten=function(e){return e===void 0&&(e=.1),Fa(tce(this.rgba,e))},n.prototype.darken=function(e){return e===void 0&&(e=.1),Fa(tce(this.rgba,-e))},n.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},n.prototype.alpha=function(e){return typeof e=="number"?Fa({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):bs(this.rgba.a,3);var t},n.prototype.hue=function(e){var t=mE(this.rgba);return typeof e=="number"?Fa({h:e,s:t.s,l:t.l,a:t.a}):bs(t.h)},n.prototype.isEqual=function(e){return this.toHex()===Fa(e).toHex()},n}(),Fa=function(n){return n instanceof r7?n:new r7(n)},nce=[],mQe=function(n){n.forEach(function(e){nce.indexOf(e)<0&&(e(r7,t7),nce.push(e))})};function _Qe(n,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},i={};for(var r in t)i[t[r]]=r;var o={};n.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,c=i[this.toHex()];if(c)return c;if(s==null?void 0:s.closest){var u=this.toRgb(),d=1/0,h="black";if(!o.length)for(var f in t)o[f]=new n(t[f]).toRgb();for(var g in t){var p=(a=u,l=o[g],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));p<d&&(d=p,h=g)}return h}},e.string.push([function(s){var a=s.toLowerCase(),l=a==="transparent"?"#0000":t[a];return l?new n(l).toRgb():null},"name"])}function oy(){return(oy=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n}).apply(this,arguments)}function o7(n,e){if(n==null)return{};var t,i,r={},o=Object.keys(n);for(i=0;i<o.length;i++)e.indexOf(t=o[i])>=0||(r[t]=n[t]);return r}function s7(n){var e=O.exports.useRef(n),t=O.exports.useRef(function(i){e.current&&e.current(i)});return e.current=n,t.current}var sy=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n<e?e:n},_E=function(n){return"touches"in n},a7=function(n){return n&&n.ownerDocument.defaultView||self},ice=function(n,e,t){var i=n.getBoundingClientRect(),r=_E(e)?function(o,s){for(var a=0;a<o.length;a++)if(o[a].identifier===s)return o[a];return o[0]}(e.touches,t):e;return{left:sy((r.pageX-(i.left+a7(n).pageXOffset))/i.width),top:sy((r.pageY-(i.top+a7(n).pageYOffset))/i.height)}},rce=function(n){!_E(n)&&n.preventDefault()},l7=xe.memo(function(n){var e=n.onMove,t=n.onKey,i=o7(n,["onMove","onKey"]),r=O.exports.useRef(null),o=s7(e),s=s7(t),a=O.exports.useRef(null),l=O.exports.useRef(!1),c=O.exports.useMemo(function(){var f=function(m){rce(m),(_E(m)?m.touches.length>0:m.buttons>0)&&r.current?o(ice(r.current,m,a.current)):p(!1)},g=function(){return p(!1)};function p(m){var v=l.current,_=a7(r.current),y=m?_.addEventListener:_.removeEventListener;y(v?"touchmove":"mousemove",f),y(v?"touchend":"mouseup",g)}return[function(m){var v=m.nativeEvent,_=r.current;if(_&&(rce(v),!function(b,w){return w&&!_E(b)}(v,l.current)&&_)){if(_E(v)){l.current=!0;var y=v.changedTouches||[];y.length&&(a.current=y[0].identifier)}_.focus(),o(ice(_,v,a.current)),p(!0)}},function(m){var v=m.which||m.keyCode;v<37||v>40||(m.preventDefault(),s({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},p]},[s,o]),u=c[0],d=c[1],h=c[2];return O.exports.useEffect(function(){return h},[h]),xe.createElement("div",oy({},i,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:r,onKeyDown:d,tabIndex:0,role:"slider"}))}),vE=function(n){return n.filter(Boolean).join(" ")},c7=function(n){var e=n.color,t=n.left,i=n.top,r=i===void 0?.5:i,o=vE(["react-colorful__pointer",n.className]);return xe.createElement("div",{className:o,style:{top:100*r+"%",left:100*t+"%"}},xe.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Ba=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t},oce=function(n){var e=n.s,t=n.v,i=n.a,r=(200-e)*t/100;return{h:Ba(n.h),s:Ba(r>0&&r<200?e*t/100/(r<=100?r:200-r)*100:0),l:Ba(r/2),a:Ba(i,2)}},u7=function(n){var e=oce(n);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},d7=function(n){var e=oce(n);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},sce=function(n){var e=n.h,t=n.s,i=n.v,r=n.a;e=e/360*6,t/=100,i/=100;var o=Math.floor(e),s=i*(1-t),a=i*(1-(e-o)*t),l=i*(1-(1-e+o)*t),c=o%6;return{r:Ba(255*[i,a,s,s,l,i][c]),g:Ba(255*[l,i,i,a,s,s][c]),b:Ba(255*[s,s,l,i,i,a][c]),a:Ba(r,2)}},ace=function(n){var e=n.r,t=n.g,i=n.b,r=n.a,o=Math.max(e,t,i),s=o-Math.min(e,t,i),a=s?o===e?(t-i)/s:o===t?2+(i-e)/s:4+(e-t)/s:0;return{h:Ba(60*(a<0?a+6:a)),s:Ba(o?s/o*100:0),v:Ba(o/255*100),a:r}},lce=xe.memo(function(n){var e=n.hue,t=n.onChange,i=vE(["react-colorful__hue",n.className]);return xe.createElement("div",{className:i},xe.createElement(l7,{onMove:function(r){t({h:360*r.left})},onKey:function(r){t({h:sy(e+360*r.left,0,360)})},"aria-label":"Hue","aria-valuetext":Ba(e)},xe.createElement(c7,{className:"react-colorful__hue-pointer",left:e/360,color:u7({h:e,s:100,v:100,a:1})})))}),cce=xe.memo(function(n){var e=n.hsva,t=n.onChange,i={backgroundColor:u7({h:e.h,s:100,v:100,a:1})};return xe.createElement("div",{className:"react-colorful__saturation",style:i},xe.createElement(l7,{onMove:function(r){t({s:100*r.left,v:100-100*r.top})},onKey:function(r){t({s:sy(e.s+100*r.left,0,100),v:sy(e.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Ba(e.s)+"%, Brightness "+Ba(e.v)+"%"},xe.createElement(c7,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:u7(e)})))}),h7=function(n,e){if(n===e)return!0;for(var t in n)if(n[t]!==e[t])return!1;return!0};function uce(n,e,t){var i=s7(t),r=O.exports.useState(function(){return n.toHsva(e)}),o=r[0],s=r[1],a=O.exports.useRef({color:e,hsva:o});O.exports.useEffect(function(){if(!n.equal(e,a.current.color)){var c=n.toHsva(e);a.current={hsva:c,color:e},s(c)}},[e,n]),O.exports.useEffect(function(){var c;h7(o,a.current.hsva)||n.equal(c=n.fromHsva(o),a.current.color)||(a.current={hsva:o,color:c},i(c))},[o,n,i]);var l=O.exports.useCallback(function(c){s(function(u){return Object.assign({},u,c)})},[]);return[o,l]}var vQe=typeof window!="undefined"?O.exports.useLayoutEffect:O.exports.useEffect,bQe=function(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:void 0},dce=new Map,hce=function(n){vQe(function(){var e=n.current?n.current.ownerDocument:document;if(e!==void 0&&!dce.has(e)){var t=e.createElement("style");t.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,dce.set(e,t);var i=bQe();i&&t.setAttribute("nonce",i),e.head.appendChild(t)}},[])},yQe=function(n){var e=n.className,t=n.colorModel,i=n.color,r=i===void 0?t.defaultColor:i,o=n.onChange,s=o7(n,["className","colorModel","color","onChange"]),a=O.exports.useRef(null);hce(a);var l=uce(t,r,o),c=l[0],u=l[1],d=vE(["react-colorful",e]);return xe.createElement("div",oy({},s,{ref:a,className:d}),xe.createElement(cce,{hsva:c,onChange:u}),xe.createElement(lce,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},CQe=function(n){var e=n.className,t=n.hsva,i=n.onChange,r={backgroundImage:"linear-gradient(90deg, "+d7(Object.assign({},t,{a:0}))+", "+d7(Object.assign({},t,{a:1}))+")"},o=vE(["react-colorful__alpha",e]);return xe.createElement("div",{className:o},xe.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),xe.createElement(l7,{onMove:function(s){i({a:s.left})},onKey:function(s){i({a:sy(t.a+s.left)})},"aria-label":"Alpha","aria-valuetext":Ba(100*t.a)+"%"},xe.createElement(c7,{className:"react-colorful__alpha-pointer",left:t.a,color:d7(t)})))},wQe=function(n){var e=n.className,t=n.colorModel,i=n.color,r=i===void 0?t.defaultColor:i,o=n.onChange,s=o7(n,["className","colorModel","color","onChange"]),a=O.exports.useRef(null);hce(a);var l=uce(t,r,o),c=l[0],u=l[1],d=vE(["react-colorful",e]);return xe.createElement("div",oy({},s,{ref:a,className:d}),xe.createElement(cce,{hsva:c,onChange:u}),xe.createElement(lce,{hue:c.h,onChange:u}),xe.createElement(CQe,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},SQe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:ace,fromHsva:sce,equal:h7},xQe=function(n){return xe.createElement(wQe,oy({},n,{colorModel:SQe}))},EQe={defaultColor:{r:0,g:0,b:0},toHsva:function(n){return ace({r:n.r,g:n.g,b:n.b,a:1})},fromHsva:function(n){return{r:(e=sce(n)).r,g:e.g,b:e.b};var e},equal:h7},kQe=function(n){return xe.createElement(yQe,oy({},n,{colorModel:EQe}))};/*! *****************************************************************************
|
|
311
311
|
Copyright (c) Microsoft Corporation.
|
|
312
312
|
|
|
313
313
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -378,7 +378,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
378
378
|
*
|
|
379
379
|
* Copyright (c) 2014-2015, 2017, Jon Schlinkert.
|
|
380
380
|
* Released under the MIT License.
|
|
381
|
-
*/var YJe=zJe,ZJe=qJe,Pce=DN,Mce=Ace,XJe=function(n,e,t){if(!Mce(n)||(Array.isArray(e)&&(e=[].concat.apply([],e).join(".")),typeof e!="string"))return n;for(var i=YJe(e,{sep:".",brackets:!0}).filter(QJe),r=i.length,o=-1,s=n;++o<r;){var a=i[o];if(o!==r-1){Mce(s[a])||(s[a]={}),s=s[a];continue}Pce(s[a])&&Pce(t)?s[a]=ZJe({},s[a],t):s[a]=t}return n};function QJe(n){return n!=="__proto__"&&n!=="constructor"&&n!=="prototype"}var y7=CJe,Fce=DJe,JJe=IJe,Bce=XJe,eet=function(e,t,i){if(!y7(e))throw new TypeError("expected an object");if(typeof t!="string"||i==null)return Fce.apply(null,arguments);if(typeof i=="string")return Bce(e,t,i),e;var r=JJe(e,t);return y7(i)&&y7(r)&&(i=Fce({},r,i)),Bce(e,t,i),e};const $ce=(...n)=>n.filter(Boolean).join(".");function tet(n){const e=n.split(".");return[e.pop(),e.join(".")||void 0]}function net(n,e){return Object.entries(KZe(n,e)).reduce((t,[,{value:i,disabled:r,key:o}])=>(t[o]=r?void 0:i,t),{})}function iet(n,e){const t=O.exports.useRef();return(e?lE:cE)(n,t.current)||(t.current=n),t.current}function Wce(n,e){return O.exports.useMemo(n,iet(e,!0))}function ret(n){const e=O.exports.useRef(null),t=O.exports.useRef(null),i=O.exports.useRef(!0);return O.exports.useLayoutEffect(()=>{n||(e.current.style.height="0px",e.current.style.overflow="hidden")},[]),O.exports.useEffect(()=>{if(i.current){i.current=!1;return}let r;const o=e.current,s=()=>{n&&(o.style.removeProperty("height"),o.style.removeProperty("overflow"),t.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};o.addEventListener("transitionend",s,{once:!0});const{height:a}=t.current.getBoundingClientRect();return o.style.height=a+"px",n||(o.style.overflow="hidden",r=window.setTimeout(()=>o.style.height="0px",50)),()=>{o.removeEventListener("transitionend",s),clearTimeout(r)}},[n]),{wrapperRef:e,contentRef:t}}const oet=n=>{const[e,t]=O.exports.useState(n.getVisiblePaths());return O.exports.useEffect(()=>{t(n.getVisiblePaths());const i=n.useStore.subscribe(n.getVisiblePaths,t,{equalityFn:cE});return()=>i()},[n]),e};function set(n,e,t){return n.useStore(r=>{const o=dn(dn({},t),r.data);return net(o,e)},cE)}function Hce(n=3){const e=O.exports.useRef(null),t=O.exports.useRef(null),[i,r]=O.exports.useState(!1),o=O.exports.useCallback(()=>r(!0),[]),s=O.exports.useCallback(()=>r(!1),[]);return O.exports.useLayoutEffect(()=>{if(i){const{bottom:a,top:l,left:c}=e.current.getBoundingClientRect(),{height:u}=t.current.getBoundingClientRect(),d=a+u>window.innerHeight-40?"up":"down";t.current.style.position="fixed",t.current.style.zIndex="10000",t.current.style.left=c+"px",d==="down"?t.current.style.top=a+n+"px":t.current.style.bottom=window.innerHeight-l+n+"px"}},[n,i]),{popinRef:e,wrapperRef:t,shown:i,show:o,hide:s}}mQe([_Qe]);const aet={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};Cl.extend({color:()=>n=>Fa(n).isValid()});const cet=n=>Cl().color().test(n);function Vce(n,{format:e,hasAlpha:t,isString:i}){const r=aet[e]+(i&&e!=="hex"?"String":""),o=n[r]();return typeof o=="object"&&!t?GZe(o,["a"]):o}const zce=(n,e)=>{const t=Fa(n);if(!t.isValid())throw Error("Invalid color");return Vce(t,e)};var uet=Object.freeze({__proto__:null,schema:cet,sanitize:zce,format:(n,e)=>Vce(Fa(n),dn(dn({},e),{},{isString:!0,format:"hex"})),normalize:({value:n})=>{const e=pQe(n),t=e==="name"?"hex":e,i=typeof n=="object"?"a"in n:e==="hex"&&n.length===8||/^(rgba)|(hsla)|(hsva)/.test(n),r={format:t,hasAlpha:i,isString:typeof n=="string"};return{value:zce(n,r),settings:r}}});const det=nn("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),het=nn("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),fet=nn("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function Uce(n,e){return e!=="rgb"?Fa(n).toRgb():n}function get({value:n,displayValue:e,settings:t,onUpdate:i}){const{emitOnEditStart:r,emitOnEditEnd:o}=ua(),{format:s,hasAlpha:a}=t,{popinRef:l,wrapperRef:c,shown:u,show:d,hide:h}=Hce(),f=O.exports.useRef(0),[g,p]=O.exports.useState(()=>Uce(n,s)),m=a?xQe:kQe,v=()=>{p(Uce(n,s)),d(),r()},_=()=>{h(),o(),window.clearTimeout(f.current)},y=()=>{f.current=window.setTimeout(_,500)};return O.exports.useEffect(()=>()=>window.clearTimeout(f.current),[]),dt(Qr,{children:[ne(det,{ref:l,active:u,onClick:()=>v(),style:{color:e}}),u&&dt(G9,{children:[ne(Fle,{onPointerUp:_}),ne(fet,{ref:c,onMouseEnter:()=>window.clearTimeout(f.current),onMouseLeave:b=>b.buttons===0&&y(),children:ne(m,{color:g,onChange:i})})]})]})}function pet(){const{value:n,displayValue:e,label:t,onChange:i,onUpdate:r,settings:o}=ua();return dt(Qc,{input:!0,children:[ne(zu,{children:t}),dt(het,{children:[ne(get,{value:n,displayValue:e,onChange:i,onUpdate:r,settings:o}),ne(q9,{value:e,onChange:i,onUpdate:r})]})]})}var met=Rf(dn({component:pet},uet));function _et(){const{label:n,displayValue:e,onUpdate:t,settings:i}=ua();return dt(Qc,{input:!0,children:[ne(zu,{children:n}),ne(J9,{value:e,settings:i,onUpdate:t})]})}var vet=Rf(dn({component:_et},jle(["x","y","z"])));const bet=nn("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),yet=nn("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function Cet({value:n,settings:e,onUpdate:t}){const i=O.exports.useRef(),r=O.exports.useRef(0),o=O.exports.useRef(0),s=O.exports.useRef(1),[a,l]=O.exports.useState(!1),[c,u]=O.exports.useState(!1),[d,h]=$le(),f=O.exports.useRef(null),g=O.exports.useRef(null);O.exports.useLayoutEffect(()=>{if(a){const{top:N,left:A,width:V,height:P}=f.current.getBoundingClientRect();g.current.style.left=A+V/2+"px",g.current.style.top=N+P/2+"px"}},[a]);const{keys:[p,m],joystick:v}=e,_=v==="invertY"?1:-1,{[p]:{step:y},[m]:{step:b}}=e,w=Nf("sizes","joystickWidth"),x=Nf("sizes","joystickHeight"),S=parseFloat(w)*.8/2,k=parseFloat(x)*.8/2,T=O.exports.useCallback(()=>{i.current||(u(!0),r.current&&h({x:r.current*S}),o.current&&h({y:o.current*-k}),i.current=window.setInterval(()=>{t(N=>{const A=y*r.current*s.current,V=_*b*o.current*s.current;return Array.isArray(N)?{[p]:N[0]+A,[m]:N[1]+V}:{[p]:N[p]+A,[m]:N[m]+V}})},16))},[S,k,t,h,y,b,p,m,_]),D=O.exports.useCallback(()=>{window.clearTimeout(i.current),i.current=void 0,u(!1)},[]);O.exports.useEffect(()=>{function N(A){s.current=wle(A)}return window.addEventListener("keydown",N),window.addEventListener("keyup",N),()=>{window.clearTimeout(i.current),window.removeEventListener("keydown",N),window.removeEventListener("keyup",N)}},[]);const R=SN(({first:N,active:A,delta:[V,P],movement:[U,F]})=>{N&&l(!0);const M=Op(U,-S,S),W=Op(F,-k,k);r.current=Math.abs(U)>Math.abs(M)?Math.sign(U-M):0,o.current=Math.abs(F)>Math.abs(W)?Math.sign(W-F):0;let j=n[p],$=n[m];A?(r.current||(j+=V*y*s.current,h({x:M})),o.current||($-=_*P*b*s.current,h({y:W})),r.current||o.current?T():D(),t({[p]:j,[m]:$})):(l(!1),r.current=0,o.current=0,h({x:0,y:0}),D())});return ne(bet,ot(Te({ref:f},R()),{children:a&&ne(G9,{children:dt(yet,{ref:g,isOutOfBounds:c,children:[ne("div",{}),ne("span",{ref:d})]})})}))}const wet=nn("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function xet(){const{label:n,displayValue:e,onUpdate:t,settings:i}=ua();return dt(Qc,{input:!0,children:[ne(zu,{children:n}),dt(wet,{withJoystick:!!i.joystick,children:[i.joystick&&ne(Cet,{value:e,settings:i,onUpdate:t}),ne(J9,{value:e,settings:i,onUpdate:t})]})]})}const Eet=["joystick"],jce=jle(["x","y"]),ket=n=>{let{joystick:e=!0}=n,t=Ui(n,Eet);const{value:i,settings:r}=jce.normalize(t);return{value:i,settings:dn(dn({},r),{},{joystick:e})}};var Let=Rf(dn(dn({component:xet},jce),{},{normalize:ket})),Tet=Object.freeze({__proto__:null,sanitize:n=>{if(n!==void 0){if(n instanceof File)try{return URL.createObjectURL(n)}catch{return}if(typeof n=="string"&&n.indexOf("blob:")===0)return n;throw Error("Invalid image format [undefined | blob |\xA0File].")}},schema:(n,e)=>typeof e=="object"&&"image"in e,normalize:({image:n})=>({value:n})});const Det=nn("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),Iet=nn("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),Ret=nn("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),Net=nn("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),Aet=nn("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),Oet=nn("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function Pet(){const{label:n,value:e,onUpdate:t}=ua(),{popinRef:i,wrapperRef:r,shown:o,show:s,hide:a}=Hce(),l=O.exports.useCallback(f=>{f.length&&t(f[0])},[t]),c=O.exports.useCallback(f=>{f.stopPropagation(),t(void 0)},[t]),{getRootProps:u,getInputProps:d,isDragAccept:h}=Tce({maxFiles:1,accept:"image/*",onDrop:l});return dt(Qc,{input:!0,children:[ne(zu,{children:n}),dt(Det,{children:[ne(Ret,{ref:i,hasImage:!!e,onPointerDown:()=>!!e&&s(),onPointerUp:a,style:{backgroundImage:e?`url(${e})`:"none"}}),o&&!!e&&dt(G9,{children:[ne(Fle,{onPointerUp:a,style:{cursor:"pointer"}}),ne(Net,{ref:r,style:{backgroundImage:`url(${e})`}})]}),dt(Iet,ot(Te({},u({isDragAccept:h})),{children:[ne("input",Te({},d())),ne(Aet,{children:h?"drop image":"click or drop"})]})),ne(Oet,{onClick:c,disabled:!e})]})]})}var Met=Rf(dn({component:Pet},Tet));const qce=Cl().number(),Fet=(n,e)=>Cl().array().length(2).every.number().test(n)&&Cl().schema({min:qce,max:qce}).test(e),C7=n=>({min:n[0],max:n[1]}),Kce=(n,{bounds:[e,t]},i)=>{const r={min:i[0],max:i[1]},{min:o,max:s}=dn(dn({},r),n);return[Op(Number(o),e,Math.max(e,s)),Op(Number(s),Math.min(t,o),t)]};var Bet=Object.freeze({__proto__:null,schema:Fet,format:C7,sanitize:Kce,normalize:({value:n,min:e,max:t})=>{const i={min:e,max:t},r=Ule(C7(n),{min:i,max:i}),o=[e,t],s=dn(dn({},r),{},{bounds:o});return{value:Kce(C7(n),s,n),settings:s}}});const $et=["value","bounds","onDrag"],Wet=["bounds"],Het=nn("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function Vet(n){let{value:e,bounds:[t,i],onDrag:r}=n,o=Ui(n,$et);const s=O.exports.useRef(null),a=O.exports.useRef(null),l=O.exports.useRef(null),c=O.exports.useRef(0),u=Nf("sizes","scrubberWidth"),d=SN(({event:g,first:p,xy:[m],movement:[v],memo:_={}})=>{if(p){const{width:b,left:w}=s.current.getBoundingClientRect();c.current=b-parseFloat(u);const x=(g==null?void 0:g.target)===a.current||(g==null?void 0:g.target)===l.current;_.pos=bN((m-w)/b,t,i);const S=Math.abs(_.pos-e.min)-Math.abs(_.pos-e.max);_.key=S<0||S===0&&_.pos<=e.min?"min":"max",x&&(_.pos=e[_.key])}const y=_.pos+bN(v/c.current,0,i-t);return r({[_.key]:NXe(y,o[_.key])}),_}),h=`calc(${vN(e.min,t,i)} * (100% - ${u} - 8px) + 4px)`,f=`calc(${1-vN(e.max,t,i)} * (100% - ${u} - 8px) + 4px)`;return dt(Hle,ot(Te({ref:s},d()),{children:[ne(Wle,{children:ne(Vle,{style:{left:h,right:f}})}),ne(X9,{position:"left",ref:a,style:{left:h}}),ne(X9,{position:"right",ref:l,style:{right:f}})]}))}function zet(){const{label:n,displayValue:e,onUpdate:t,settings:i}=ua(),r=Ui(i,Wet);return ne(Qr,{children:dt(Qc,{input:!0,children:[ne(zu,{children:n}),dt(Het,{children:[ne(Vet,ot(Te({value:e},i),{onDrag:t})),ne(J9,{value:e,settings:r,onUpdate:t,innerLabelTrim:0})]})]})})}var Uet=Rf(dn({component:zet},Bet));const jet=()=>{const n=new Map;return{on:(e,t)=>{let i=n.get(e);i===void 0&&(i=new Set,n.set(e,i)),i.add(t)},off:(e,t)=>{const i=n.get(e);i!==void 0&&(i.delete(t),i.size===0&&n.delete(e))},emit:(e,...t)=>{const i=n.get(e);if(i!==void 0)for(const r of i)r(...t)}}},qet=["type","value"],Ket=["onChange","transient","onEditStart","onEditEnd"],Get=function(){const e=mJe(_Je(()=>({data:{}}))),t=jet();this.storeId=qZe(),this.useStore=e;const i={},r=new Set;this.getVisiblePaths=()=>{const s=this.getData(),a=Object.keys(s),l=[];Object.entries(i).forEach(([u,d])=>{d.render&&a.some(h=>h.indexOf(u)===0)&&!d.render(this.get)&&l.push(u+".")});const c=[];return r.forEach(u=>{u in s&&s[u].__refCount>0&&l.every(d=>u.indexOf(d)===-1)&&(!s[u].render||s[u].render(this.get))&&c.push(u)}),c},this.setOrderedPaths=s=>{s.forEach(a=>r.add(a))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{e.setState(a=>{const l=a.data;return s.forEach(c=>{if(c in l){const u=l[c];u.__refCount--,u.__refCount===0&&u.type in Hu&&delete l[c]}}),{data:l}})},this.dispose=()=>{e.setState(()=>({data:{}}))},this.getFolderSettings=s=>i[s]||{},this.getData=()=>e.getState().data,this.addData=(s,a)=>{e.setState(l=>{const c=l.data;return Object.entries(s).forEach(([u,d])=>{let h=c[u];if(h){const{type:f,value:g}=d,p=Ui(d,qet);f!==h.type?Df(Fr.INPUT_TYPE_OVERRIDE,f):((h.__refCount===0||a)&&Object.assign(h,p),h.__refCount++)}else c[u]=dn(dn({},d),{},{__refCount:1})}),{data:c}})},this.setValueAtPath=(s,a,l)=>{e.setState(c=>{const u=c.data;return vle(u[s],a,s,this,l),{data:u}})},this.setSettingsAtPath=(s,a)=>{e.setState(l=>{const c=l.data;return c[s].settings=dn(dn({},c[s].settings),a),{data:c}})},this.disableInputAtPath=(s,a)=>{e.setState(l=>{const c=l.data;return c[s].disabled=a,{data:c}})},this.set=(s,a)=>{e.setState(l=>{const c=l.data;return Object.entries(s).forEach(([u,d])=>{try{vle(c[u],d,void 0,void 0,a)}catch{}}),{data:c}})},this.getInput=s=>{try{return this.getData()[s]}catch{Df(Fr.PATH_DOESNT_EXIST,s)}},this.get=s=>{var a;return(a=this.getInput(s))===null||a===void 0?void 0:a.value},this.emitOnEditStart=s=>{t.emit(`onEditStart:${s}`,this.get(s),s,dn(dn({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{t.emit(`onEditEnd:${s}`,this.get(s),s,dn(dn({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,a)=>{const l=`onEditStart:${s}`;return t.on(l,a),()=>t.off(l,a)},this.subscribeToEditEnd=(s,a)=>{const l=`onEditEnd:${s}`;return t.on(l,a),()=>t.off(l,a)};const o=(s,a,l)=>{const c={};return Object.entries(s).forEach(([u,d])=>{if(u==="")return Df(Fr.EMPTY_KEY);let h=$ce(a,u);if(d.type===Hu.FOLDER){const f=o(d.schema,h,l);Object.assign(c,f),h in i||(i[h]=d.settings)}else if(u in l)Df(Fr.DUPLICATE_KEYS,u,h,l[u].path);else{const f=JZe(d,u,h,c);if(f){const{type:g,options:p,input:m}=f,{onChange:v,transient:_,onEditStart:y,onEditEnd:b}=p,w=Ui(p,Ket);c[h]=dn(dn(dn({type:g},w),m),{},{fromPanel:!0}),l[u]={path:h,onChange:v,transient:_,onEditStart:y,onEditEnd:b}}else Df(Fr.UNKNOWN_INPUT,h,d)}}),c};this.getDataFromSchema=s=>{const a={};return[o(s,"",a),a]}},Gce=new Get,Yet={collapsed:!1};function Yce(n,e){return{type:Hu.FOLDER,schema:n,settings:dn(dn({},Yet),e)}}const Zet=n=>"__levaInput"in n,Xet=(n,e)=>{const t={},i=e?e.toLowerCase():null;return n.forEach(r=>{const[o,s]=tet(r);(!i||o.toLowerCase().indexOf(i)>-1)&&eet(t,s,{[o]:{__levaInput:!0,path:r}})}),t};function Qet({toggle:n,toggled:e,name:t}){return dt(fXe,{onClick:()=>n(),children:[ne(Y9,{toggled:e}),ne("div",{children:t})]})}const Jet=["type","label","path","valueKey","value","settings","setValue","disabled"];function ett(n){let{type:e,label:t,path:i,valueKey:r,value:o,settings:s,setValue:a,disabled:l}=n,c=Ui(n,Jet);const{displayValue:u,onChange:d,onUpdate:h}=Ble({type:e,value:o,settings:s,setValue:a}),f=J_[e].component;return f?ne(Lle.Provider,{value:dn({key:r,path:i,id:""+i,label:t,displayValue:u,value:o,onChange:d,onUpdate:h,settings:s,setValue:a,disabled:l},c),children:ne(mXe,{disabled:l,children:ne(f,{})})}):(Df(Fr.NO_COMPONENT_FOR_TYPE,e,i),null)}const ttt=nn("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function ntt({onClick:n,settings:e,label:t}){const i=yN();return ne(Qc,{children:ne(ttt,{disabled:e.disabled,onClick:()=>n(i.get),children:t})})}const itt=nn("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),rtt=nn("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),ott=({label:n,opts:e})=>{let t=typeof n=="string"&&n.trim()===""?null:n,i=e;return typeof e.opts=="object"&&(i.label!==void 0&&(t=e.label),i=e.opts),{label:t,opts:i}};function stt(n){const{label:e,opts:t}=ott(n),i=yN();return dt(Qc,{input:!!e,children:[e&&ne(zu,{children:e}),ne(itt,{children:Object.entries(t).map(([r,o])=>ne(rtt,{onClick:()=>o(i.get),children:r},r))})]})}const att=nn("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),Zce=100;function ltt(n,e){n.push(e),n.length>Zce&&n.shift()}const ctt=O.exports.forwardRef(function({initialValue:n},e){const t=Nf("colors","highlight3"),i=Nf("colors","elevation2"),r=Nf("colors","highlight1"),[o,s]=O.exports.useMemo(()=>[Fa(r).alpha(.4).toRgbString(),Fa(r).alpha(.1).toRgbString()],[r]),a=O.exports.useRef([n]),l=O.exports.useRef(n),c=O.exports.useRef(n),u=O.exports.useRef(),d=O.exports.useCallback((g,p)=>{if(!g)return;const{width:m,height:v}=g,_=new Path2D,y=m/Zce,b=v*.05;for(let S=0;S<a.current.length;S++){const k=vN(a.current[S],l.current,c.current),T=y*S,D=v-k*(v-b*2)-b;_.lineTo(T,D)}p.clearRect(0,0,m,v);const w=new Path2D(_);w.lineTo(y*(a.current.length+1),v),w.lineTo(0,v),w.lineTo(0,0);const x=p.createLinearGradient(0,0,0,v);x.addColorStop(0,o),x.addColorStop(1,s),p.fillStyle=x,p.fill(w),p.strokeStyle=i,p.lineJoin="round",p.lineWidth=14,p.stroke(_),p.strokeStyle=t,p.lineWidth=2,p.stroke(_)},[t,i,o,s]),[h,f]=EXe(d);return O.exports.useImperativeHandle(e,()=>({frame:g=>{(l.current===void 0||g<l.current)&&(l.current=g),(c.current===void 0||g>c.current)&&(c.current=g),ltt(a.current,g),u.current=requestAnimationFrame(()=>d(h.current,f.current))}}),[h,f,d]),O.exports.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),ne(att,{ref:h})}),Xce=n=>Number.isFinite(n)?n.toPrecision(2):n.toString(),utt=O.exports.forwardRef(function({initialValue:n},e){const[t,i]=O.exports.useState(Xce(n));return O.exports.useImperativeHandle(e,()=>({frame:r=>i(Xce(r))}),[]),ne("div",{children:t})});function Qce(n){return typeof n=="function"?n():n.current}function dtt({label:n,objectOrFn:e,settings:t}){const i=O.exports.useRef(),r=O.exports.useRef(Qce(e));return O.exports.useEffect(()=>{const o=window.setInterval(()=>{var s;document.hidden||(s=i.current)===null||s===void 0||s.frame(Qce(e))},t.interval);return()=>window.clearInterval(o)},[e,t.interval]),dt(Qc,{input:!0,children:[ne(zu,{align:"top",children:n}),t.graph?ne(ctt,{ref:i,initialValue:r.current}):ne(utt,{ref:i,initialValue:r.current})]})}const htt=["type","label","key"],ftt={[Hu.BUTTON]:ntt,[Hu.BUTTON_GROUP]:stt,[Hu.MONITOR]:dtt},gtt=xe.memo(({path:n})=>{const[e,{set:t,setSettings:i,disable:r,storeId:o,emitOnEditStart:s,emitOnEditEnd:a}]=LXe(n);if(!e)return null;const{type:l,label:c,key:u}=e,d=Ui(e,htt);if(l in Hu){const h=ftt[l];return ne(h,Te({label:c,path:n},d))}return l in J_?ne(ett,Te({type:l,label:c,storeId:o,path:n,valueKey:u,setValue:t,setSettings:i,disable:r,emitOnEditStart:s,emitOnEditEnd:a},d),o+n):(BZe(Fr.UNSUPPORTED_INPUT,l,n),null)}),ptt=({name:n,path:e,tree:t})=>{const i=yN(),r=$ce(e,n),{collapsed:o,color:s}=i.getFolderSettings(r),[a,l]=O.exports.useState(!o),c=O.exports.useRef(null),u=Nf("colors","folderWidgetColor"),d=Nf("colors","folderTextColor");return O.exports.useLayoutEffect(()=>{c.current.style.setProperty("--leva-colors-folderWidgetColor",s||u),c.current.style.setProperty("--leva-colors-folderTextColor",s||d)},[s,u,d]),dt(wN,{ref:c,children:[ne(Qet,{name:n,toggled:a,toggle:()=>l(h=>!h)}),ne(Jce,{parent:r,tree:t,toggled:a})]})},Jce=xe.memo(({isRoot:n=!1,fill:e=!1,flat:t=!1,parent:i,tree:r,toggled:o})=>{const{wrapperRef:s,contentRef:a}=ret(o);return ne(K9,{ref:s,isRoot:n,fill:e,flat:t,children:ne(Ale,{ref:a,isRoot:n,toggled:o,children:Object.entries(r).map(([l,c])=>Zet(c)?ne(gtt,{valueKey:c.valueKey,path:c.path},c.path):ne(ptt,{name:l,path:i,tree:c},l))})})}),mtt=nn("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${Ple}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),eue=40,RN=nn("i",{$flexCenter:"",width:eue,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),_tt=nn("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),vtt=nn("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${RN}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),btt=nn("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),ytt=nn("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:eue}}}}),Ctt=xe.forwardRef(({setFilter:n,toggle:e},t)=>{const[i,r]=O.exports.useState(""),o=O.exports.useMemo(()=>Cle(n,250),[n]),s=()=>{n(""),r("")},a=l=>{const c=l.currentTarget.value;e(!0),r(c)};return O.exports.useEffect(()=>{o(i)},[i,o]),dt(Qr,{children:[ne(btt,{ref:t,value:i,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:l=>l.stopPropagation(),onChange:a}),ne(RN,{onClick:()=>s(),style:{visibility:i?"visible":"hidden"},children:ne("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor",children:ne("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})})]})});function wtt({setFilter:n,onDrag:e,toggle:t,toggled:i,title:r,drag:o,filterEnabled:s}){const[a,l]=O.exports.useState(!1),c=O.exports.useRef(null);O.exports.useEffect(()=>{var d,h;a?(d=c.current)===null||d===void 0||d.focus():(h=c.current)===null||h===void 0||h.blur()},[a]);const u=Vae(({offset:[d,h]})=>e({x:d,y:h}),{filterTaps:!0});return O.exports.useEffect(()=>{const d=h=>{h.key==="L"&&h.shiftKey&&h.metaKey&&l(f=>!f)};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[]),dt(Qr,{children:[dt(_tt,{mode:o?"drag":void 0,children:[ne(RN,{active:!i,onClick:()=>t(),children:ne(Y9,{toggled:i,width:12,height:8})}),ne(ytt,ot(Te({},o?u():{}),{drag:o,filterEnabled:s,children:r===void 0&&o?dt("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg",children:[ne("circle",{cx:"2",cy:"2",r:"2"}),ne("circle",{cx:"14",cy:"2",r:"2"}),ne("circle",{cx:"26",cy:"2",r:"2"}),ne("circle",{cx:"2",cy:"12",r:"2"}),ne("circle",{cx:"14",cy:"12",r:"2"}),ne("circle",{cx:"26",cy:"12",r:"2"})]}):r})),s&&ne(RN,{active:a,onClick:()=>l(d=>!d),children:dt("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20",children:[ne("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),ne("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})]})})]}),ne(vtt,{toggled:a,children:ne(Ctt,{ref:c,setFilter:n,toggle:t})})]})}const Stt=["store","hidden","theme","collapsed"];function xtt(n){let{store:e,hidden:t=!1,theme:i,collapsed:r=!1}=n,o=Ui(n,Stt);const s=Wce(()=>aXe(i),[i]),[a,l]=O.exports.useState(!r),c=typeof r=="object"?!r.collapsed:a,u=O.exports.useMemo(()=>typeof r=="object"?d=>{typeof d=="function"?r.onChange(!d(!r.collapsed)):r.onChange(!d)}:l,[r]);return!e||t?null:ne(j9.Provider,{value:s,children:ne(Ett,ot(Te({store:e},o),{toggled:c,setToggle:u,rootClass:s.className}))})}const Ett=xe.memo(({store:n,rootClass:e,fill:t=!1,flat:i=!1,oneLineLabels:r=!1,titleBar:o={title:void 0,drag:!0,filter:!0},hideCopyButton:s=!1,toggled:a,setToggle:l})=>{var c,u;const d=oet(n),[h,f]=O.exports.useState(""),g=O.exports.useMemo(()=>Xet(d,h),[d,h]),[p,m]=$le(),v=d.length>0,_=typeof o=="object"&&o.title||void 0,y=typeof o=="object"&&(c=o.drag)!==null&&c!==void 0?c:!0,b=typeof o=="object"&&(u=o.filter)!==null&&u!==void 0?u:!0;return ne(Dle.Provider,{value:{hideCopyButton:s},children:dt(mtt,{ref:p,className:e,fill:t,flat:i,oneLineLabels:r,hideTitleBar:!o,style:{display:v?"block":"none"},children:[o&&ne(wtt,{onDrag:m,setFilter:f,toggle:w=>l(x=>w!=null?w:!x),toggled:a,title:_,drag:y,filterEnabled:b}),v&&ne(Tle.Provider,{value:n,children:ne(Jce,{isRoot:!0,fill:t,flat:i,tree:g,toggled:a})})]})})}),ktt=["isRoot"];let NN=!1,ev=null;function tue(n){let{isRoot:e=!1}=n,t=Ui(n,ktt);return O.exports.useEffect(()=>(NN=!0,!e&&ev&&(ev.remove(),ev=null),()=>{e||(NN=!1)}),[e]),ne(xtt,Te({store:Gce},t))}function Ltt(n){O.exports.useEffect(()=>{n&&!NN&&(ev||(ev=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(ev),pee.render(ne(tue,{isRoot:!0}),ev))),NN=!0)},[n])}function Ttt(n,e,t,i,r){let o,s,a,l,c;return typeof n=="string"?(s=n,o=e,Array.isArray(t)?c=t:t&&("store"in t?(l=t,c=i):(a=t,Array.isArray(i)?c=i:(l=i,c=r)))):(o=n,Array.isArray(e)?c=e:(l=e,c=t)),{schema:o,folderName:s,folderSettings:a,hookSettings:l,deps:c||[]}}function Dtt(n,e,t,i,r){const{folderName:o,schema:s,folderSettings:a,hookSettings:l,deps:c}=Ttt(n,e,t,i,r),u=typeof s=="function",d=O.exports.useRef(!1),h=O.exports.useRef(!0),f=Wce(()=>{d.current=!0;const D=typeof s=="function"?s():s;return o?{[o]:Yce(D,a)}:D},c),g=!(l!=null&&l.store);Ltt(g);const[p]=O.exports.useState(()=>(l==null?void 0:l.store)||Gce),[m,v]=O.exports.useMemo(()=>p.getDataFromSchema(f),[p,f]),[_,y,b,w,x]=O.exports.useMemo(()=>{const D=[],R=[],N={},A={},V={};return Object.values(v).forEach(({path:P,onChange:U,onEditStart:F,onEditEnd:M,transient:W})=>{D.push(P),U?(N[P]=U,W||R.push(P)):R.push(P),F&&(A[P]=F),M&&(V[P]=M)}),[D,R,N,A,V]},[v]),S=O.exports.useMemo(()=>p.orderPaths(_),[_,p]),k=set(p,y,m),T=O.exports.useCallback(D=>{const R=Object.entries(D).reduce((N,[A,V])=>Object.assign(N,{[v[A].path]:V}),{});p.set(R,!1)},[p,v]);return O.exports.useEffect(()=>{const D=!h.current&&d.current;return p.addData(m,D),h.current=!1,d.current=!1,()=>p.disposePaths(S)},[p,S,m]),O.exports.useEffect(()=>{const D=[];return Object.entries(b).forEach(([R,N])=>{N(p.get(R),R,dn({initial:!0,get:p.get},p.getInput(R)));const A=p.useStore.subscribe(V=>{const P=V.data[R];return[P.disabled?void 0:P.value,P]},([V,P])=>N(V,R,dn({initial:!1,get:p.get},P)),{equalityFn:cE});D.push(A)}),()=>D.forEach(R=>R())},[p,b]),O.exports.useEffect(()=>{const D=[];return Object.entries(w).forEach(([R,N])=>D.push(p.subscribeToEditStart(R,N))),Object.entries(x).forEach(([R,N])=>D.push(p.subscribeToEditEnd(R,N))),()=>D.forEach(R=>R())},[w,x,p]),u?[k,T]:k}If(Vu.SELECT,WXe),If(Vu.IMAGE,Met),If(Vu.NUMBER,OXe),If(Vu.COLOR,met),If(Vu.STRING,jXe),If(Vu.BOOLEAN,ZXe),If(Vu.INTERVAL,Uet),If(Vu.VECTOR3D,vet),If(Vu.VECTOR2D,Let);const Itt=()=>ne("div",{id:"timeline-embed"});/**
|
|
381
|
+
*/var YJe=zJe,ZJe=qJe,Pce=DN,Mce=Ace,XJe=function(n,e,t){if(!Mce(n)||(Array.isArray(e)&&(e=[].concat.apply([],e).join(".")),typeof e!="string"))return n;for(var i=YJe(e,{sep:".",brackets:!0}).filter(QJe),r=i.length,o=-1,s=n;++o<r;){var a=i[o];if(o!==r-1){Mce(s[a])||(s[a]={}),s=s[a];continue}Pce(s[a])&&Pce(t)?s[a]=ZJe({},s[a],t):s[a]=t}return n};function QJe(n){return n!=="__proto__"&&n!=="constructor"&&n!=="prototype"}var y7=CJe,Fce=DJe,JJe=IJe,Bce=XJe,eet=function(e,t,i){if(!y7(e))throw new TypeError("expected an object");if(typeof t!="string"||i==null)return Fce.apply(null,arguments);if(typeof i=="string")return Bce(e,t,i),e;var r=JJe(e,t);return y7(i)&&y7(r)&&(i=Fce({},r,i)),Bce(e,t,i),e};const $ce=(...n)=>n.filter(Boolean).join(".");function tet(n){const e=n.split(".");return[e.pop(),e.join(".")||void 0]}function net(n,e){return Object.entries(KZe(n,e)).reduce((t,[,{value:i,disabled:r,key:o}])=>(t[o]=r?void 0:i,t),{})}function iet(n,e){const t=O.exports.useRef();return(e?lE:cE)(n,t.current)||(t.current=n),t.current}function Wce(n,e){return O.exports.useMemo(n,iet(e,!0))}function ret(n){const e=O.exports.useRef(null),t=O.exports.useRef(null),i=O.exports.useRef(!0);return O.exports.useLayoutEffect(()=>{n||(e.current.style.height="0px",e.current.style.overflow="hidden")},[]),O.exports.useEffect(()=>{if(i.current){i.current=!1;return}let r;const o=e.current,s=()=>{n&&(o.style.removeProperty("height"),o.style.removeProperty("overflow"),t.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};o.addEventListener("transitionend",s,{once:!0});const{height:a}=t.current.getBoundingClientRect();return o.style.height=a+"px",n||(o.style.overflow="hidden",r=window.setTimeout(()=>o.style.height="0px",50)),()=>{o.removeEventListener("transitionend",s),clearTimeout(r)}},[n]),{wrapperRef:e,contentRef:t}}const oet=n=>{const[e,t]=O.exports.useState(n.getVisiblePaths());return O.exports.useEffect(()=>{t(n.getVisiblePaths());const i=n.useStore.subscribe(n.getVisiblePaths,t,{equalityFn:cE});return()=>i()},[n]),e};function set(n,e,t){return n.useStore(r=>{const o=dn(dn({},t),r.data);return net(o,e)},cE)}function Hce(n=3){const e=O.exports.useRef(null),t=O.exports.useRef(null),[i,r]=O.exports.useState(!1),o=O.exports.useCallback(()=>r(!0),[]),s=O.exports.useCallback(()=>r(!1),[]);return O.exports.useLayoutEffect(()=>{if(i){const{bottom:a,top:l,left:c}=e.current.getBoundingClientRect(),{height:u}=t.current.getBoundingClientRect(),d=a+u>window.innerHeight-40?"up":"down";t.current.style.position="fixed",t.current.style.zIndex="10000",t.current.style.left=c+"px",d==="down"?t.current.style.top=a+n+"px":t.current.style.bottom=window.innerHeight-l+n+"px"}},[n,i]),{popinRef:e,wrapperRef:t,shown:i,show:o,hide:s}}mQe([_Qe]);const aet={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};Cl.extend({color:()=>n=>Fa(n).isValid()});const cet=n=>Cl().color().test(n);function Vce(n,{format:e,hasAlpha:t,isString:i}){const r=aet[e]+(i&&e!=="hex"?"String":""),o=n[r]();return typeof o=="object"&&!t?GZe(o,["a"]):o}const zce=(n,e)=>{const t=Fa(n);if(!t.isValid())throw Error("Invalid color");return Vce(t,e)};var uet=Object.freeze({__proto__:null,schema:cet,sanitize:zce,format:(n,e)=>Vce(Fa(n),dn(dn({},e),{},{isString:!0,format:"hex"})),normalize:({value:n})=>{const e=pQe(n),t=e==="name"?"hex":e,i=typeof n=="object"?"a"in n:e==="hex"&&n.length===8||/^(rgba)|(hsla)|(hsva)/.test(n),r={format:t,hasAlpha:i,isString:typeof n=="string"};return{value:zce(n,r),settings:r}}});const det=nn("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),het=nn("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),fet=nn("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function Uce(n,e){return e!=="rgb"?Fa(n).toRgb():n}function get({value:n,displayValue:e,settings:t,onUpdate:i}){const{emitOnEditStart:r,emitOnEditEnd:o}=ua(),{format:s,hasAlpha:a}=t,{popinRef:l,wrapperRef:c,shown:u,show:d,hide:h}=Hce(),f=O.exports.useRef(0),[g,p]=O.exports.useState(()=>Uce(n,s)),m=a?xQe:kQe,v=()=>{p(Uce(n,s)),d(),r()},_=()=>{h(),o(),window.clearTimeout(f.current)},y=()=>{f.current=window.setTimeout(_,500)};return O.exports.useEffect(()=>()=>window.clearTimeout(f.current),[]),dt(Qr,{children:[ne(det,{ref:l,active:u,onClick:()=>v(),style:{color:e}}),u&&dt(G9,{children:[ne(Fle,{onPointerUp:_}),ne(fet,{ref:c,onMouseEnter:()=>window.clearTimeout(f.current),onMouseLeave:b=>b.buttons===0&&y(),children:ne(m,{color:g,onChange:i})})]})]})}function pet(){const{value:n,displayValue:e,label:t,onChange:i,onUpdate:r,settings:o}=ua();return dt(Qc,{input:!0,children:[ne(zu,{children:t}),dt(het,{children:[ne(get,{value:n,displayValue:e,onChange:i,onUpdate:r,settings:o}),ne(q9,{value:e,onChange:i,onUpdate:r})]})]})}var met=Rf(dn({component:pet},uet));function _et(){const{label:n,displayValue:e,onUpdate:t,settings:i}=ua();return dt(Qc,{input:!0,children:[ne(zu,{children:n}),ne(J9,{value:e,settings:i,onUpdate:t})]})}var vet=Rf(dn({component:_et},jle(["x","y","z"])));const bet=nn("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),yet=nn("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function Cet({value:n,settings:e,onUpdate:t}){const i=O.exports.useRef(),r=O.exports.useRef(0),o=O.exports.useRef(0),s=O.exports.useRef(1),[a,l]=O.exports.useState(!1),[c,u]=O.exports.useState(!1),[d,h]=$le(),f=O.exports.useRef(null),g=O.exports.useRef(null);O.exports.useLayoutEffect(()=>{if(a){const{top:N,left:A,width:V,height:P}=f.current.getBoundingClientRect();g.current.style.left=A+V/2+"px",g.current.style.top=N+P/2+"px"}},[a]);const{keys:[p,m],joystick:v}=e,_=v==="invertY"?1:-1,{[p]:{step:y},[m]:{step:b}}=e,w=Nf("sizes","joystickWidth"),x=Nf("sizes","joystickHeight"),S=parseFloat(w)*.8/2,k=parseFloat(x)*.8/2,T=O.exports.useCallback(()=>{i.current||(u(!0),r.current&&h({x:r.current*S}),o.current&&h({y:o.current*-k}),i.current=window.setInterval(()=>{t(N=>{const A=y*r.current*s.current,V=_*b*o.current*s.current;return Array.isArray(N)?{[p]:N[0]+A,[m]:N[1]+V}:{[p]:N[p]+A,[m]:N[m]+V}})},16))},[S,k,t,h,y,b,p,m,_]),D=O.exports.useCallback(()=>{window.clearTimeout(i.current),i.current=void 0,u(!1)},[]);O.exports.useEffect(()=>{function N(A){s.current=wle(A)}return window.addEventListener("keydown",N),window.addEventListener("keyup",N),()=>{window.clearTimeout(i.current),window.removeEventListener("keydown",N),window.removeEventListener("keyup",N)}},[]);const R=SN(({first:N,active:A,delta:[V,P],movement:[U,F]})=>{N&&l(!0);const M=Op(U,-S,S),W=Op(F,-k,k);r.current=Math.abs(U)>Math.abs(M)?Math.sign(U-M):0,o.current=Math.abs(F)>Math.abs(W)?Math.sign(W-F):0;let j=n[p],$=n[m];A?(r.current||(j+=V*y*s.current,h({x:M})),o.current||($-=_*P*b*s.current,h({y:W})),r.current||o.current?T():D(),t({[p]:j,[m]:$})):(l(!1),r.current=0,o.current=0,h({x:0,y:0}),D())});return ne(bet,st(Te({ref:f},R()),{children:a&&ne(G9,{children:dt(yet,{ref:g,isOutOfBounds:c,children:[ne("div",{}),ne("span",{ref:d})]})})}))}const wet=nn("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function xet(){const{label:n,displayValue:e,onUpdate:t,settings:i}=ua();return dt(Qc,{input:!0,children:[ne(zu,{children:n}),dt(wet,{withJoystick:!!i.joystick,children:[i.joystick&&ne(Cet,{value:e,settings:i,onUpdate:t}),ne(J9,{value:e,settings:i,onUpdate:t})]})]})}const Eet=["joystick"],jce=jle(["x","y"]),ket=n=>{let{joystick:e=!0}=n,t=Ui(n,Eet);const{value:i,settings:r}=jce.normalize(t);return{value:i,settings:dn(dn({},r),{},{joystick:e})}};var Let=Rf(dn(dn({component:xet},jce),{},{normalize:ket})),Tet=Object.freeze({__proto__:null,sanitize:n=>{if(n!==void 0){if(n instanceof File)try{return URL.createObjectURL(n)}catch{return}if(typeof n=="string"&&n.indexOf("blob:")===0)return n;throw Error("Invalid image format [undefined | blob |\xA0File].")}},schema:(n,e)=>typeof e=="object"&&"image"in e,normalize:({image:n})=>({value:n})});const Det=nn("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),Iet=nn("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),Ret=nn("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),Net=nn("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),Aet=nn("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),Oet=nn("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function Pet(){const{label:n,value:e,onUpdate:t}=ua(),{popinRef:i,wrapperRef:r,shown:o,show:s,hide:a}=Hce(),l=O.exports.useCallback(f=>{f.length&&t(f[0])},[t]),c=O.exports.useCallback(f=>{f.stopPropagation(),t(void 0)},[t]),{getRootProps:u,getInputProps:d,isDragAccept:h}=Tce({maxFiles:1,accept:"image/*",onDrop:l});return dt(Qc,{input:!0,children:[ne(zu,{children:n}),dt(Det,{children:[ne(Ret,{ref:i,hasImage:!!e,onPointerDown:()=>!!e&&s(),onPointerUp:a,style:{backgroundImage:e?`url(${e})`:"none"}}),o&&!!e&&dt(G9,{children:[ne(Fle,{onPointerUp:a,style:{cursor:"pointer"}}),ne(Net,{ref:r,style:{backgroundImage:`url(${e})`}})]}),dt(Iet,st(Te({},u({isDragAccept:h})),{children:[ne("input",Te({},d())),ne(Aet,{children:h?"drop image":"click or drop"})]})),ne(Oet,{onClick:c,disabled:!e})]})]})}var Met=Rf(dn({component:Pet},Tet));const qce=Cl().number(),Fet=(n,e)=>Cl().array().length(2).every.number().test(n)&&Cl().schema({min:qce,max:qce}).test(e),C7=n=>({min:n[0],max:n[1]}),Kce=(n,{bounds:[e,t]},i)=>{const r={min:i[0],max:i[1]},{min:o,max:s}=dn(dn({},r),n);return[Op(Number(o),e,Math.max(e,s)),Op(Number(s),Math.min(t,o),t)]};var Bet=Object.freeze({__proto__:null,schema:Fet,format:C7,sanitize:Kce,normalize:({value:n,min:e,max:t})=>{const i={min:e,max:t},r=Ule(C7(n),{min:i,max:i}),o=[e,t],s=dn(dn({},r),{},{bounds:o});return{value:Kce(C7(n),s,n),settings:s}}});const $et=["value","bounds","onDrag"],Wet=["bounds"],Het=nn("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function Vet(n){let{value:e,bounds:[t,i],onDrag:r}=n,o=Ui(n,$et);const s=O.exports.useRef(null),a=O.exports.useRef(null),l=O.exports.useRef(null),c=O.exports.useRef(0),u=Nf("sizes","scrubberWidth"),d=SN(({event:g,first:p,xy:[m],movement:[v],memo:_={}})=>{if(p){const{width:b,left:w}=s.current.getBoundingClientRect();c.current=b-parseFloat(u);const x=(g==null?void 0:g.target)===a.current||(g==null?void 0:g.target)===l.current;_.pos=bN((m-w)/b,t,i);const S=Math.abs(_.pos-e.min)-Math.abs(_.pos-e.max);_.key=S<0||S===0&&_.pos<=e.min?"min":"max",x&&(_.pos=e[_.key])}const y=_.pos+bN(v/c.current,0,i-t);return r({[_.key]:NXe(y,o[_.key])}),_}),h=`calc(${vN(e.min,t,i)} * (100% - ${u} - 8px) + 4px)`,f=`calc(${1-vN(e.max,t,i)} * (100% - ${u} - 8px) + 4px)`;return dt(Hle,st(Te({ref:s},d()),{children:[ne(Wle,{children:ne(Vle,{style:{left:h,right:f}})}),ne(X9,{position:"left",ref:a,style:{left:h}}),ne(X9,{position:"right",ref:l,style:{right:f}})]}))}function zet(){const{label:n,displayValue:e,onUpdate:t,settings:i}=ua(),r=Ui(i,Wet);return ne(Qr,{children:dt(Qc,{input:!0,children:[ne(zu,{children:n}),dt(Het,{children:[ne(Vet,st(Te({value:e},i),{onDrag:t})),ne(J9,{value:e,settings:r,onUpdate:t,innerLabelTrim:0})]})]})})}var Uet=Rf(dn({component:zet},Bet));const jet=()=>{const n=new Map;return{on:(e,t)=>{let i=n.get(e);i===void 0&&(i=new Set,n.set(e,i)),i.add(t)},off:(e,t)=>{const i=n.get(e);i!==void 0&&(i.delete(t),i.size===0&&n.delete(e))},emit:(e,...t)=>{const i=n.get(e);if(i!==void 0)for(const r of i)r(...t)}}},qet=["type","value"],Ket=["onChange","transient","onEditStart","onEditEnd"],Get=function(){const e=mJe(_Je(()=>({data:{}}))),t=jet();this.storeId=qZe(),this.useStore=e;const i={},r=new Set;this.getVisiblePaths=()=>{const s=this.getData(),a=Object.keys(s),l=[];Object.entries(i).forEach(([u,d])=>{d.render&&a.some(h=>h.indexOf(u)===0)&&!d.render(this.get)&&l.push(u+".")});const c=[];return r.forEach(u=>{u in s&&s[u].__refCount>0&&l.every(d=>u.indexOf(d)===-1)&&(!s[u].render||s[u].render(this.get))&&c.push(u)}),c},this.setOrderedPaths=s=>{s.forEach(a=>r.add(a))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{e.setState(a=>{const l=a.data;return s.forEach(c=>{if(c in l){const u=l[c];u.__refCount--,u.__refCount===0&&u.type in Hu&&delete l[c]}}),{data:l}})},this.dispose=()=>{e.setState(()=>({data:{}}))},this.getFolderSettings=s=>i[s]||{},this.getData=()=>e.getState().data,this.addData=(s,a)=>{e.setState(l=>{const c=l.data;return Object.entries(s).forEach(([u,d])=>{let h=c[u];if(h){const{type:f,value:g}=d,p=Ui(d,qet);f!==h.type?Df(Fr.INPUT_TYPE_OVERRIDE,f):((h.__refCount===0||a)&&Object.assign(h,p),h.__refCount++)}else c[u]=dn(dn({},d),{},{__refCount:1})}),{data:c}})},this.setValueAtPath=(s,a,l)=>{e.setState(c=>{const u=c.data;return vle(u[s],a,s,this,l),{data:u}})},this.setSettingsAtPath=(s,a)=>{e.setState(l=>{const c=l.data;return c[s].settings=dn(dn({},c[s].settings),a),{data:c}})},this.disableInputAtPath=(s,a)=>{e.setState(l=>{const c=l.data;return c[s].disabled=a,{data:c}})},this.set=(s,a)=>{e.setState(l=>{const c=l.data;return Object.entries(s).forEach(([u,d])=>{try{vle(c[u],d,void 0,void 0,a)}catch{}}),{data:c}})},this.getInput=s=>{try{return this.getData()[s]}catch{Df(Fr.PATH_DOESNT_EXIST,s)}},this.get=s=>{var a;return(a=this.getInput(s))===null||a===void 0?void 0:a.value},this.emitOnEditStart=s=>{t.emit(`onEditStart:${s}`,this.get(s),s,dn(dn({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{t.emit(`onEditEnd:${s}`,this.get(s),s,dn(dn({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,a)=>{const l=`onEditStart:${s}`;return t.on(l,a),()=>t.off(l,a)},this.subscribeToEditEnd=(s,a)=>{const l=`onEditEnd:${s}`;return t.on(l,a),()=>t.off(l,a)};const o=(s,a,l)=>{const c={};return Object.entries(s).forEach(([u,d])=>{if(u==="")return Df(Fr.EMPTY_KEY);let h=$ce(a,u);if(d.type===Hu.FOLDER){const f=o(d.schema,h,l);Object.assign(c,f),h in i||(i[h]=d.settings)}else if(u in l)Df(Fr.DUPLICATE_KEYS,u,h,l[u].path);else{const f=JZe(d,u,h,c);if(f){const{type:g,options:p,input:m}=f,{onChange:v,transient:_,onEditStart:y,onEditEnd:b}=p,w=Ui(p,Ket);c[h]=dn(dn(dn({type:g},w),m),{},{fromPanel:!0}),l[u]={path:h,onChange:v,transient:_,onEditStart:y,onEditEnd:b}}else Df(Fr.UNKNOWN_INPUT,h,d)}}),c};this.getDataFromSchema=s=>{const a={};return[o(s,"",a),a]}},Gce=new Get,Yet={collapsed:!1};function Yce(n,e){return{type:Hu.FOLDER,schema:n,settings:dn(dn({},Yet),e)}}const Zet=n=>"__levaInput"in n,Xet=(n,e)=>{const t={},i=e?e.toLowerCase():null;return n.forEach(r=>{const[o,s]=tet(r);(!i||o.toLowerCase().indexOf(i)>-1)&&eet(t,s,{[o]:{__levaInput:!0,path:r}})}),t};function Qet({toggle:n,toggled:e,name:t}){return dt(fXe,{onClick:()=>n(),children:[ne(Y9,{toggled:e}),ne("div",{children:t})]})}const Jet=["type","label","path","valueKey","value","settings","setValue","disabled"];function ett(n){let{type:e,label:t,path:i,valueKey:r,value:o,settings:s,setValue:a,disabled:l}=n,c=Ui(n,Jet);const{displayValue:u,onChange:d,onUpdate:h}=Ble({type:e,value:o,settings:s,setValue:a}),f=J_[e].component;return f?ne(Lle.Provider,{value:dn({key:r,path:i,id:""+i,label:t,displayValue:u,value:o,onChange:d,onUpdate:h,settings:s,setValue:a,disabled:l},c),children:ne(mXe,{disabled:l,children:ne(f,{})})}):(Df(Fr.NO_COMPONENT_FOR_TYPE,e,i),null)}const ttt=nn("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function ntt({onClick:n,settings:e,label:t}){const i=yN();return ne(Qc,{children:ne(ttt,{disabled:e.disabled,onClick:()=>n(i.get),children:t})})}const itt=nn("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),rtt=nn("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),ott=({label:n,opts:e})=>{let t=typeof n=="string"&&n.trim()===""?null:n,i=e;return typeof e.opts=="object"&&(i.label!==void 0&&(t=e.label),i=e.opts),{label:t,opts:i}};function stt(n){const{label:e,opts:t}=ott(n),i=yN();return dt(Qc,{input:!!e,children:[e&&ne(zu,{children:e}),ne(itt,{children:Object.entries(t).map(([r,o])=>ne(rtt,{onClick:()=>o(i.get),children:r},r))})]})}const att=nn("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),Zce=100;function ltt(n,e){n.push(e),n.length>Zce&&n.shift()}const ctt=O.exports.forwardRef(function({initialValue:n},e){const t=Nf("colors","highlight3"),i=Nf("colors","elevation2"),r=Nf("colors","highlight1"),[o,s]=O.exports.useMemo(()=>[Fa(r).alpha(.4).toRgbString(),Fa(r).alpha(.1).toRgbString()],[r]),a=O.exports.useRef([n]),l=O.exports.useRef(n),c=O.exports.useRef(n),u=O.exports.useRef(),d=O.exports.useCallback((g,p)=>{if(!g)return;const{width:m,height:v}=g,_=new Path2D,y=m/Zce,b=v*.05;for(let S=0;S<a.current.length;S++){const k=vN(a.current[S],l.current,c.current),T=y*S,D=v-k*(v-b*2)-b;_.lineTo(T,D)}p.clearRect(0,0,m,v);const w=new Path2D(_);w.lineTo(y*(a.current.length+1),v),w.lineTo(0,v),w.lineTo(0,0);const x=p.createLinearGradient(0,0,0,v);x.addColorStop(0,o),x.addColorStop(1,s),p.fillStyle=x,p.fill(w),p.strokeStyle=i,p.lineJoin="round",p.lineWidth=14,p.stroke(_),p.strokeStyle=t,p.lineWidth=2,p.stroke(_)},[t,i,o,s]),[h,f]=EXe(d);return O.exports.useImperativeHandle(e,()=>({frame:g=>{(l.current===void 0||g<l.current)&&(l.current=g),(c.current===void 0||g>c.current)&&(c.current=g),ltt(a.current,g),u.current=requestAnimationFrame(()=>d(h.current,f.current))}}),[h,f,d]),O.exports.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),ne(att,{ref:h})}),Xce=n=>Number.isFinite(n)?n.toPrecision(2):n.toString(),utt=O.exports.forwardRef(function({initialValue:n},e){const[t,i]=O.exports.useState(Xce(n));return O.exports.useImperativeHandle(e,()=>({frame:r=>i(Xce(r))}),[]),ne("div",{children:t})});function Qce(n){return typeof n=="function"?n():n.current}function dtt({label:n,objectOrFn:e,settings:t}){const i=O.exports.useRef(),r=O.exports.useRef(Qce(e));return O.exports.useEffect(()=>{const o=window.setInterval(()=>{var s;document.hidden||(s=i.current)===null||s===void 0||s.frame(Qce(e))},t.interval);return()=>window.clearInterval(o)},[e,t.interval]),dt(Qc,{input:!0,children:[ne(zu,{align:"top",children:n}),t.graph?ne(ctt,{ref:i,initialValue:r.current}):ne(utt,{ref:i,initialValue:r.current})]})}const htt=["type","label","key"],ftt={[Hu.BUTTON]:ntt,[Hu.BUTTON_GROUP]:stt,[Hu.MONITOR]:dtt},gtt=xe.memo(({path:n})=>{const[e,{set:t,setSettings:i,disable:r,storeId:o,emitOnEditStart:s,emitOnEditEnd:a}]=LXe(n);if(!e)return null;const{type:l,label:c,key:u}=e,d=Ui(e,htt);if(l in Hu){const h=ftt[l];return ne(h,Te({label:c,path:n},d))}return l in J_?ne(ett,Te({type:l,label:c,storeId:o,path:n,valueKey:u,setValue:t,setSettings:i,disable:r,emitOnEditStart:s,emitOnEditEnd:a},d),o+n):(BZe(Fr.UNSUPPORTED_INPUT,l,n),null)}),ptt=({name:n,path:e,tree:t})=>{const i=yN(),r=$ce(e,n),{collapsed:o,color:s}=i.getFolderSettings(r),[a,l]=O.exports.useState(!o),c=O.exports.useRef(null),u=Nf("colors","folderWidgetColor"),d=Nf("colors","folderTextColor");return O.exports.useLayoutEffect(()=>{c.current.style.setProperty("--leva-colors-folderWidgetColor",s||u),c.current.style.setProperty("--leva-colors-folderTextColor",s||d)},[s,u,d]),dt(wN,{ref:c,children:[ne(Qet,{name:n,toggled:a,toggle:()=>l(h=>!h)}),ne(Jce,{parent:r,tree:t,toggled:a})]})},Jce=xe.memo(({isRoot:n=!1,fill:e=!1,flat:t=!1,parent:i,tree:r,toggled:o})=>{const{wrapperRef:s,contentRef:a}=ret(o);return ne(K9,{ref:s,isRoot:n,fill:e,flat:t,children:ne(Ale,{ref:a,isRoot:n,toggled:o,children:Object.entries(r).map(([l,c])=>Zet(c)?ne(gtt,{valueKey:c.valueKey,path:c.path},c.path):ne(ptt,{name:l,path:i,tree:c},l))})})}),mtt=nn("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${Ple}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),eue=40,RN=nn("i",{$flexCenter:"",width:eue,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),_tt=nn("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),vtt=nn("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${RN}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),btt=nn("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),ytt=nn("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:eue}}}}),Ctt=xe.forwardRef(({setFilter:n,toggle:e},t)=>{const[i,r]=O.exports.useState(""),o=O.exports.useMemo(()=>Cle(n,250),[n]),s=()=>{n(""),r("")},a=l=>{const c=l.currentTarget.value;e(!0),r(c)};return O.exports.useEffect(()=>{o(i)},[i,o]),dt(Qr,{children:[ne(btt,{ref:t,value:i,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:l=>l.stopPropagation(),onChange:a}),ne(RN,{onClick:()=>s(),style:{visibility:i?"visible":"hidden"},children:ne("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor",children:ne("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})})]})});function wtt({setFilter:n,onDrag:e,toggle:t,toggled:i,title:r,drag:o,filterEnabled:s}){const[a,l]=O.exports.useState(!1),c=O.exports.useRef(null);O.exports.useEffect(()=>{var d,h;a?(d=c.current)===null||d===void 0||d.focus():(h=c.current)===null||h===void 0||h.blur()},[a]);const u=Vae(({offset:[d,h]})=>e({x:d,y:h}),{filterTaps:!0});return O.exports.useEffect(()=>{const d=h=>{h.key==="L"&&h.shiftKey&&h.metaKey&&l(f=>!f)};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[]),dt(Qr,{children:[dt(_tt,{mode:o?"drag":void 0,children:[ne(RN,{active:!i,onClick:()=>t(),children:ne(Y9,{toggled:i,width:12,height:8})}),ne(ytt,st(Te({},o?u():{}),{drag:o,filterEnabled:s,children:r===void 0&&o?dt("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg",children:[ne("circle",{cx:"2",cy:"2",r:"2"}),ne("circle",{cx:"14",cy:"2",r:"2"}),ne("circle",{cx:"26",cy:"2",r:"2"}),ne("circle",{cx:"2",cy:"12",r:"2"}),ne("circle",{cx:"14",cy:"12",r:"2"}),ne("circle",{cx:"26",cy:"12",r:"2"})]}):r})),s&&ne(RN,{active:a,onClick:()=>l(d=>!d),children:dt("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20",children:[ne("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),ne("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})]})})]}),ne(vtt,{toggled:a,children:ne(Ctt,{ref:c,setFilter:n,toggle:t})})]})}const Stt=["store","hidden","theme","collapsed"];function xtt(n){let{store:e,hidden:t=!1,theme:i,collapsed:r=!1}=n,o=Ui(n,Stt);const s=Wce(()=>aXe(i),[i]),[a,l]=O.exports.useState(!r),c=typeof r=="object"?!r.collapsed:a,u=O.exports.useMemo(()=>typeof r=="object"?d=>{typeof d=="function"?r.onChange(!d(!r.collapsed)):r.onChange(!d)}:l,[r]);return!e||t?null:ne(j9.Provider,{value:s,children:ne(Ett,st(Te({store:e},o),{toggled:c,setToggle:u,rootClass:s.className}))})}const Ett=xe.memo(({store:n,rootClass:e,fill:t=!1,flat:i=!1,oneLineLabels:r=!1,titleBar:o={title:void 0,drag:!0,filter:!0},hideCopyButton:s=!1,toggled:a,setToggle:l})=>{var c,u;const d=oet(n),[h,f]=O.exports.useState(""),g=O.exports.useMemo(()=>Xet(d,h),[d,h]),[p,m]=$le(),v=d.length>0,_=typeof o=="object"&&o.title||void 0,y=typeof o=="object"&&(c=o.drag)!==null&&c!==void 0?c:!0,b=typeof o=="object"&&(u=o.filter)!==null&&u!==void 0?u:!0;return ne(Dle.Provider,{value:{hideCopyButton:s},children:dt(mtt,{ref:p,className:e,fill:t,flat:i,oneLineLabels:r,hideTitleBar:!o,style:{display:v?"block":"none"},children:[o&&ne(wtt,{onDrag:m,setFilter:f,toggle:w=>l(x=>w!=null?w:!x),toggled:a,title:_,drag:y,filterEnabled:b}),v&&ne(Tle.Provider,{value:n,children:ne(Jce,{isRoot:!0,fill:t,flat:i,tree:g,toggled:a})})]})})}),ktt=["isRoot"];let NN=!1,ev=null;function tue(n){let{isRoot:e=!1}=n,t=Ui(n,ktt);return O.exports.useEffect(()=>(NN=!0,!e&&ev&&(ev.remove(),ev=null),()=>{e||(NN=!1)}),[e]),ne(xtt,Te({store:Gce},t))}function Ltt(n){O.exports.useEffect(()=>{n&&!NN&&(ev||(ev=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(ev),pee.render(ne(tue,{isRoot:!0}),ev))),NN=!0)},[n])}function Ttt(n,e,t,i,r){let o,s,a,l,c;return typeof n=="string"?(s=n,o=e,Array.isArray(t)?c=t:t&&("store"in t?(l=t,c=i):(a=t,Array.isArray(i)?c=i:(l=i,c=r)))):(o=n,Array.isArray(e)?c=e:(l=e,c=t)),{schema:o,folderName:s,folderSettings:a,hookSettings:l,deps:c||[]}}function Dtt(n,e,t,i,r){const{folderName:o,schema:s,folderSettings:a,hookSettings:l,deps:c}=Ttt(n,e,t,i,r),u=typeof s=="function",d=O.exports.useRef(!1),h=O.exports.useRef(!0),f=Wce(()=>{d.current=!0;const D=typeof s=="function"?s():s;return o?{[o]:Yce(D,a)}:D},c),g=!(l!=null&&l.store);Ltt(g);const[p]=O.exports.useState(()=>(l==null?void 0:l.store)||Gce),[m,v]=O.exports.useMemo(()=>p.getDataFromSchema(f),[p,f]),[_,y,b,w,x]=O.exports.useMemo(()=>{const D=[],R=[],N={},A={},V={};return Object.values(v).forEach(({path:P,onChange:U,onEditStart:F,onEditEnd:M,transient:W})=>{D.push(P),U?(N[P]=U,W||R.push(P)):R.push(P),F&&(A[P]=F),M&&(V[P]=M)}),[D,R,N,A,V]},[v]),S=O.exports.useMemo(()=>p.orderPaths(_),[_,p]),k=set(p,y,m),T=O.exports.useCallback(D=>{const R=Object.entries(D).reduce((N,[A,V])=>Object.assign(N,{[v[A].path]:V}),{});p.set(R,!1)},[p,v]);return O.exports.useEffect(()=>{const D=!h.current&&d.current;return p.addData(m,D),h.current=!1,d.current=!1,()=>p.disposePaths(S)},[p,S,m]),O.exports.useEffect(()=>{const D=[];return Object.entries(b).forEach(([R,N])=>{N(p.get(R),R,dn({initial:!0,get:p.get},p.getInput(R)));const A=p.useStore.subscribe(V=>{const P=V.data[R];return[P.disabled?void 0:P.value,P]},([V,P])=>N(V,R,dn({initial:!1,get:p.get},P)),{equalityFn:cE});D.push(A)}),()=>D.forEach(R=>R())},[p,b]),O.exports.useEffect(()=>{const D=[];return Object.entries(w).forEach(([R,N])=>D.push(p.subscribeToEditStart(R,N))),Object.entries(x).forEach(([R,N])=>D.push(p.subscribeToEditEnd(R,N))),()=>D.forEach(R=>R())},[w,x,p]),u?[k,T]:k}If(Vu.SELECT,WXe),If(Vu.IMAGE,Met),If(Vu.NUMBER,OXe),If(Vu.COLOR,met),If(Vu.STRING,jXe),If(Vu.BOOLEAN,ZXe),If(Vu.INTERVAL,Uet),If(Vu.VECTOR3D,vet),If(Vu.VECTOR2D,Let);const Itt=()=>ne("div",{id:"timeline-embed"});/**
|
|
382
382
|
* @license
|
|
383
383
|
* Copyright 2019 Google LLC
|
|
384
384
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -402,11 +402,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
402
402
|
* @license
|
|
403
403
|
* Copyright 2017 Google LLC
|
|
404
404
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
405
|
-
*/const $tt=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?
|
|
405
|
+
*/const $tt=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?st(Te({},e),{finisher(t){t.createProperty(e.key,n)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,n)}};function No(n){return(e,t)=>t!==void 0?((i,r,o)=>{r.constructor.createProperty(o,i)})(n,e,t):$tt(n,e)}/**
|
|
406
406
|
* @license
|
|
407
407
|
* Copyright 2017 Google LLC
|
|
408
408
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
409
|
-
*/function Fp(n){return No(
|
|
409
|
+
*/function Fp(n){return No(st(Te({},n),{state:!0}))}/**
|
|
410
410
|
* @license
|
|
411
411
|
* Copyright 2017 Google LLC
|
|
412
412
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -829,7 +829,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
829
829
|
.ninja-examplekey.backspace {
|
|
830
830
|
opacity: 0.7;
|
|
831
831
|
}
|
|
832
|
-
`;var yo=globalThis&&globalThis.__decorate||function(n,e,t,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o};let Wr=class extends Mp{constructor(){super(...arguments);this.placeholder="Type a command or search...",this.disableHotkeys=!1,this.hideBreadcrumbs=!1,this.openHotkey="cmd+k,ctrl+k",this.navigationUpHotkey="up,shift+tab",this.navigationDownHotkey="down,tab",this.closeHotkey="esc",this.goBackHotkey="backspace",this.selectHotkey="enter",this.hotKeysJoinedView=!1,this.noAutoLoadMdIcons=!1,this.data=[],this.visible=!1,this._bump=!0,this._actionMatches=[],this._search="",this._flatData=[],this._headerRef=Iue()}open(e={}){this._bump=!0,this.visible=!0,this._headerRef.value.focusSearch(),this._actionMatches.length>0&&(this._selected=this._actionMatches[0]),this.setParent(e.parent)}close(){this._bump=!1,this.visible=!1}setParent(e){e?this._currentRoot=e:this._currentRoot=void 0,this._selected=void 0,this._search="",this._headerRef.value.setSearch("")}get breadcrumbs(){var e;const t=[];let i=(e=this._selected)===null||e===void 0?void 0:e.parent;if(i)for(t.push(i);i;){const r=this._flatData.find(o=>o.id===i);(r==null?void 0:r.parent)&&t.push(r.parent),i=r?r.parent:void 0}return t.reverse()}connectedCallback(){super.connectedCallback(),this.noAutoLoadMdIcons||document.fonts.load("24px Material Icons","apps").then(()=>{}),this._registerInternalHotkeys()}_flattern(e,t){let i=[];return e||(e=[]),e.map(r=>{const o=r.children&&r.children.some(a=>typeof a=="string"),s=
|
|
832
|
+
`;var yo=globalThis&&globalThis.__decorate||function(n,e,t,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o};let Wr=class extends Mp{constructor(){super(...arguments);this.placeholder="Type a command or search...",this.disableHotkeys=!1,this.hideBreadcrumbs=!1,this.openHotkey="cmd+k,ctrl+k",this.navigationUpHotkey="up,shift+tab",this.navigationDownHotkey="down,tab",this.closeHotkey="esc",this.goBackHotkey="backspace",this.selectHotkey="enter",this.hotKeysJoinedView=!1,this.noAutoLoadMdIcons=!1,this.data=[],this.visible=!1,this._bump=!0,this._actionMatches=[],this._search="",this._flatData=[],this._headerRef=Iue()}open(e={}){this._bump=!0,this.visible=!0,this._headerRef.value.focusSearch(),this._actionMatches.length>0&&(this._selected=this._actionMatches[0]),this.setParent(e.parent)}close(){this._bump=!1,this.visible=!1}setParent(e){e?this._currentRoot=e:this._currentRoot=void 0,this._selected=void 0,this._search="",this._headerRef.value.setSearch("")}get breadcrumbs(){var e;const t=[];let i=(e=this._selected)===null||e===void 0?void 0:e.parent;if(i)for(t.push(i);i;){const r=this._flatData.find(o=>o.id===i);(r==null?void 0:r.parent)&&t.push(r.parent),i=r?r.parent:void 0}return t.reverse()}connectedCallback(){super.connectedCallback(),this.noAutoLoadMdIcons||document.fonts.load("24px Material Icons","apps").then(()=>{}),this._registerInternalHotkeys()}_flattern(e,t){let i=[];return e||(e=[]),e.map(r=>{const o=r.children&&r.children.some(a=>typeof a=="string"),s=st(Te({},r),{parent:r.parent||t});return o||(s.children&&s.children.length&&(t=r.id,i=[...i,...s.children]),s.children=s.children?s.children.map(a=>a.id):[]),s}).concat(i.length?this._flattern(i,t):i)}update(e){e.has("data")&&!this.disableHotkeys&&(this._flatData=this._flattern(this.data),this._flatData.filter(t=>!!t.hotkey).forEach(t=>{$a(t.hotkey,i=>{i.preventDefault(),t.handler&&t.handler(t)})})),super.update(e)}_registerInternalHotkeys(){this.openHotkey&&$a(this.openHotkey,e=>{e.preventDefault(),this.visible?this.close():this.open()}),this.selectHotkey&&$a(this.selectHotkey,e=>{!this.visible||(e.preventDefault(),this._actionSelected(this._actionMatches[this._selectedIndex]))}),this.goBackHotkey&&$a(this.goBackHotkey,e=>{!this.visible||this._search||(e.preventDefault(),this._goBack())}),this.navigationDownHotkey&&$a(this.navigationDownHotkey,e=>{!this.visible||(e.preventDefault(),this._selectedIndex>=this._actionMatches.length-1?this._selected=this._actionMatches[0]:this._selected=this._actionMatches[this._selectedIndex+1])}),this.navigationUpHotkey&&$a(this.navigationUpHotkey,e=>{!this.visible||(e.preventDefault(),this._selectedIndex===0?this._selected=this._actionMatches[this._actionMatches.length-1]:this._selected=this._actionMatches[this._selectedIndex-1])}),this.closeHotkey&&$a(this.closeHotkey,()=>{!this.visible||this.close()})}_actionFocused(e,t){this._selected=e,t.target.ensureInView()}_onTransitionEnd(){this._bump=!1}_goBack(){const e=this.breadcrumbs.length>1?this.breadcrumbs[this.breadcrumbs.length-2]:void 0;this.setParent(e)}render(){const e={bump:this._bump,"modal-content":!0},t={visible:this.visible,modal:!0},r=this._flatData.filter(a=>{var l;const c=new RegExp(this._search,"gi"),u=a.title.match(c)||((l=a.keywords)===null||l===void 0?void 0:l.match(c));return(!this._currentRoot&&this._search||a.parent===this._currentRoot)&&u}).reduce((a,l)=>a.set(l.section,[...a.get(l.section)||[],l]),new Map);this._actionMatches=[...r.values()].flat(),this._actionMatches.length>0&&this._selectedIndex===-1&&(this._selected=this._actionMatches[0]),this._actionMatches.length===0&&(this._selected=void 0);const o=a=>Sl` ${ztt(a,l=>l.id,l=>{var c;return Sl`<ninja-action
|
|
833
833
|
exportparts="ninja-action,ninja-selected,ninja-icon"
|
|
834
834
|
.selected=${Utt(l.id===((c=this._selected)===null||c===void 0?void 0:c.id))}
|
|
835
835
|
.hotKeysJoinedView=${this.hotKeysJoinedView}
|
|
@@ -857,7 +857,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
857
857
|
</div>
|
|
858
858
|
</div>
|
|
859
859
|
`}get _selectedIndex(){return this._selected?this._actionMatches.indexOf(this._selected):-1}_actionSelected(e){var t;if(this.dispatchEvent(new CustomEvent("selected",{detail:{search:this._search,action:e},bubbles:!0,composed:!0})),!!e){if(e.children&&((t=e.children)===null||t===void 0?void 0:t.length)>0&&(this._currentRoot=e.id,this._search=""),this._headerRef.value.setSearch(""),this._headerRef.value.focusSearch(),e.handler){const i=e.handler(e);(i==null?void 0:i.keepOpen)||this.close()}this._bump=!0}}async _handleInput(e){this._search=e.detail.search,await this.updateComplete,this.dispatchEvent(new CustomEvent("change",{detail:{search:this._search,actions:this._actionMatches},bubbles:!0,composed:!0}))}_overlayClick(e){var t;((t=e.target)===null||t===void 0?void 0:t.classList.contains("modal"))&&this.close()}};Wr.styles=[lnt],yo([No({type:String})],Wr.prototype,"placeholder",void 0),yo([No({type:Boolean})],Wr.prototype,"disableHotkeys",void 0),yo([No({type:Boolean})],Wr.prototype,"hideBreadcrumbs",void 0),yo([No()],Wr.prototype,"openHotkey",void 0),yo([No()],Wr.prototype,"navigationUpHotkey",void 0),yo([No()],Wr.prototype,"navigationDownHotkey",void 0),yo([No()],Wr.prototype,"closeHotkey",void 0),yo([No()],Wr.prototype,"goBackHotkey",void 0),yo([No()],Wr.prototype,"selectHotkey",void 0),yo([No({type:Boolean})],Wr.prototype,"hotKeysJoinedView",void 0),yo([No({type:Boolean})],Wr.prototype,"noAutoLoadMdIcons",void 0),yo([No({type:Array,hasChanged(){return!0}})],Wr.prototype,"data",void 0),yo([Fp()],Wr.prototype,"visible",void 0),yo([Fp()],Wr.prototype,"_bump",void 0),yo([Fp()],Wr.prototype,"_actionMatches",void 0),yo([Fp()],Wr.prototype,"_search",void 0),yo([Fp()],Wr.prototype,"_currentRoot",void 0),yo([Fp()],Wr.prototype,"_flatData",void 0),yo([Fp()],Wr.prototype,"breadcrumbs",null),yo([Fp()],Wr.prototype,"_selected",void 0),Wr=yo([ON("ninja-keys")],Wr);const cnt=()=>{var n,e;localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},(e=(n=Yr.getState())==null?void 0:n.socket)==null||e.emit("clearCache")},unt=()=>{var n,e;localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},(e=(n=Yr.getState())==null?void 0:n.socket)==null||e.emit("adminClearCache")},Hue=Jl(n=>({showGUI:!1,setShowGUI:e=>n(()=>({showGUI:e}))}));var $N;(function(n){n.editor="\u7F16\u8F91\u5668",n.file="\u6587\u4EF6",n.terminal="\u7EC8\u7AEF",n.console="\u8FD0\u884C\u6846",n.media="\u5F71\u97F3"})($N||($N={}));var Vue={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zue=xe.createContext&&xe.createContext(Vue),Bp=globalThis&&globalThis.__assign||function(){return Bp=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},Bp.apply(this,arguments)},dnt=globalThis&&globalThis.__rest||function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t};function Uue(n){return n&&n.map(function(e,t){return xe.createElement(e.tag,Bp({key:t},e.attr),Uue(e.child))})}function hnt(n){return function(e){return xe.createElement(fnt,Bp({attr:Bp({},n.attr)},e),Uue(n.child))}}function fnt(n){var e=function(t){var i=n.attr,r=n.size,o=n.title,s=dnt(n,["attr","size","title"]),a=r||t.size||"1em",l;return t.className&&(l=t.className),n.className&&(l=(l?l+" ":"")+n.className),xe.createElement("svg",Bp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,s,{className:l,style:Bp(Bp({color:n.color||t.color},t.style),n.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&xe.createElement("title",null,o),n.children)};return zue!==void 0?xe.createElement(zue.Consumer,null,function(t){return e(t)}):e(Vue)}function gnt(n){return hnt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 5.9a2.1 2.1 0 110 4.2 2.1 2.1 0 010-4.2m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"}}]})(n)}const pnt=({drawerOpen:n,setDrawerOpen:e,replayList:t})=>{const[i,r]=O.exports.useState("");return O.exports.useEffect(()=>{},[t]),dt(qx,{size:"lg",placement:"right",open:n,onClose:()=>e(!1),children:[dt(qx.Header,{children:[ne(qx.Title,{children:"\u56DE\u653E\u5217\u8868"}),ne(qx.Actions,{children:dt(hse,{children:[ne(hse.Addon,{children:ne(gnt,{size:"1.5em"})}),ne(Yqe,{onChange:o=>{r(o)}})]})})]}),ne(qx.Body,{children:t?ne("div",{children:ne("ul",{role:"list",className:"marker:text-sky-400 list-disc pl-5 space-y-3 text-gray-400",children:i?t.filter(o=>sa.getState().userList.find(s=>s.uuid===o.userInfo.uuid).username.indexOf(i)>=0).map((o,s)=>{var a,l;return dt("li",{className:"hover:ring-sky-500 cursor-pointer",onClick:()=>{e(!1),N9({userId:o.userInfo.uuid,timestamp:o.timestamp})},children:[$N[o.event],ne("span",{className:"mx-4",style:{color:(a=sa.getState().userList.find(c=>c.uuid===o.userInfo.uuid))==null?void 0:a.color},children:(l=sa.getState().userList.find(c=>c.uuid===o.userInfo.uuid))==null?void 0:l.username}),dt("span",{children:["\u3010",T9(Number(o.timestamp)).format("YYYY-DD-MM hh:mm:ss"),"\u3011"]})]},s)}):t.map((o,s)=>{var a,l;return dt("li",{className:"hover:ring-sky-500 cursor-pointer",onClick:()=>{e(!1),N9({userId:o.userInfo.uuid,timestamp:o.timestamp})},children:[$N[o.event],ne("span",{className:"mx-4",style:{color:(a=sa.getState().userList.find(c=>c.uuid===o.userInfo.uuid))==null?void 0:a.color},children:(l=sa.getState().userList.find(c=>c.uuid===o.userInfo.uuid))==null?void 0:l.username}),dt("span",{children:["\u3010",T9(Number(o.timestamp)).format("YYYY-DD-MM hh:mm:ss"),"\u3011"]})]},s)})})}):ne(jje.Paragraph,{style:{marginTop:30}})})]})},mnt=()=>{const n=O.exports.useRef(null),e=[{id:"replay",title:"\u56DE\u653E",hotkey:"r",mdIcon:"replay",handler:()=>{l()}},{id:"active",title:"\u6FC0\u6D3B\u5BB9\u5668",hotkey:"a",mdIcon:"input",handler:()=>{var c,u;(u=(c=Yr.getState())==null?void 0:c.socket)==null||u.emit("active")}},{id:"containerStop",title:"\u505C\u6B62\u5BB9\u5668",hotkey:"cs",mdIcon:"input",handler:()=>{var c,u;prompt("\u8BF7\u8F93\u5165\u5BC6\u7801")==="kuangsa183"&&((u=(c=Yr.getState())==null?void 0:c.socket)==null||u.emit("stop"))}},{id:"clearCache",title:"\u6E05\u9664\u7F13\u5B58",hotkey:"c",mdIcon:"autorenew",handler:()=>{cnt()}},{id:"admClearCache",title:"\u6E05\u9664\u7F13\u5B58\u3010ADMIN_ONLY\u3011",hotkey:"k",mdIcon:"admin_panel_settings",handler:()=>{prompt("\u8BF7\u8F93\u5165\u5BC6\u7801")==="kuangsa183"&&unt()}},{id:"GUI",title:"GUI",hotkey:"g",mdIcon:"build_circle",handler:()=>{const{showGUI:c,setShowGUI:u}=Hue.getState();u(!c)}},{id:"DOC",title:"\u6587\u6863",mdIcon:"desktop_windows",children:[{id:"tsdoc",title:"TS\u6587\u6863",hotkey:"t",mdIcon:"highlight",handler:()=>{window.open("https://develop.1024paas.com/tsdoc")}},{id:"storybook",title:"Storybook",hotkey:"s",mdIcon:"description",handler:()=>{window.open("https://develop.1024paas.com/storybook")}}]}],[t,i]=O.exports.useState(!1),[r,o]=O.exports.useState(null),[s,a]=O.exports.useState(e);O.exports.useEffect(()=>{console.log("leva init"),n.current&&(n.current.data=s)},[]),O.exports.useEffect(()=>{t||n.current.close()},[t]);const l=async c=>{o(await Uee()),i(!0)};return dt(iUe,{theme:"dark",children:[ne("ninja-keys",{ref:n,className:"dark"}),ne(pnt,{drawerOpen:t,setDrawerOpen:i,replayList:r})]})},_nt=()=>{const{socket:n}=Yr.getState(),e=Hue(i=>i.showGUI),t=(i,r)=>{const o=new Set(aE.getState().ignoreReplayers);r?o.add(i):o.delete(i),aE.getState().setIgnoreReplayer(Array.from(o))};return Dtt({syncCursor:{label:"\u5149\u6807\u540C\u6B65",value:Yt.getState().globalData.syncCursor,onChange:i=>{Yt.getState().setGlobalData({syncCursor:i}),n==null||n.emit("globalData",{syncCursor:i})},transient:!1},\u5C4F\u853D\u7EC4\u4EF6:Yce({Editor:{value:!1,onChange:i=>{t("editor",i)},transient:!1},Terminal:{value:!1,onChange:i=>{t("terminal",i)},transient:!1},File:{value:!1,onChange:i=>{console.log(i),t("file",i)},transient:!1}})}),dt(Qr,{children:[ne(tue,{hidden:!e}),ne(Itt,{}),ne(mnt,{})]})},vnt=Np(async()=>(await Promise.resolve().then(function(){return jit})).FileTree),bnt=Np(async()=>(await Promise.resolve().then(function(){return Lwe})).Editor),ynt=Np(async()=>(await Promise.resolve().then(function(){return DNt})).default),Cnt=Np(async()=>(await Promise.resolve().then(function(){return NNt})).default),wnt=Np(async()=>(await Promise.resolve().then(function(){return ANt})).default),Snt=Np(async()=>await Promise.resolve().then(function(){return c2t}));window.MonacoEnvironment={getWorkerUrl(n,e){return e==="json"?"/assets/json.worker.bundle.js":e==="css"?"/assets/css.worker.bundle.js":e==="html"?"/assets/html.worker.bundle.js":e==="typescript"||e==="javascript"?"/assets/ts.worker.bundle.js":`data:text/javascript;charset=utf-8,${encodeURIComponent(`
|
|
860
|
-
importScripts('https://develop.1024paas.com/assets/editor.worker.43309ac9.js');`)}`}};class xnt{constructor({mode:e,ticket:t,playgroundId:i,userId:r,tenantId:o,username:s,components:a,env:l="develop",serviceWorkerOrigin:c}){Qi(this,"shellDOM");Qi(this,"editorDOM");Qi(this,"pageDOM");Qi(this,"storeProps");Qi(this,"ticket");Qi(this,"userId");Qi(this,"tenantId");Qi(this,"username");Qi(this,"userInfo",{});Qi(this,"env");Qi(this,"components");Qi(this,"mode");Qi(this,"playgroundId");Qi(this,"serviceWorkerOrigin");this.mode=e,this.ticket=t,this.playgroundId=i,this.userId=r,this.tenantId=o,this.username=s||"",this.env=l,this.components=a,this.serviceWorkerOrigin=c,sessionStorage.setItem("playgroundId",i),this.init()}get otstore(){return Yt.getState()}get socketIO(){return Yr.getState().socket}get playgroundStatus(){return this.otstore.playgroundStatus}get dockerStatus(){return this.otstore.dockerStatus}get ignoreReplayers(){return aE.getState().ignoreReplayers}get userList(){return sa.getState().userList}async init(){if(this.mode==="tsdoc")return;const{setSocket:e}=Yr.getState(),t=document.createElement("div");t.className="init-class",document.body.appendChild(t);const{setUserInfo:i,userInfo:r}=Mu.getState(),o={ticket:this.ticket,playgroundId:this.playgroundId,userId:this.userId,username:this.username,tenantId:this.tenantId},a=await(await fetch(`https://${this.env}.1024paas.com/jssdk/ticket`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ticket:this.ticket})})).json();if(e(new iRe(
|
|
860
|
+
importScripts('https://develop.1024paas.com/assets/editor.worker.43309ac9.js');`)}`}};class xnt{constructor({mode:e,ticket:t,playgroundId:i,userId:r,tenantId:o,username:s,components:a,env:l="develop",serviceWorkerOrigin:c}){Qi(this,"shellDOM");Qi(this,"editorDOM");Qi(this,"pageDOM");Qi(this,"storeProps");Qi(this,"ticket");Qi(this,"userId");Qi(this,"tenantId");Qi(this,"username");Qi(this,"userInfo",{});Qi(this,"env");Qi(this,"components");Qi(this,"mode");Qi(this,"playgroundId");Qi(this,"serviceWorkerOrigin");this.mode=e,this.ticket=t,this.playgroundId=i,this.userId=r,this.tenantId=o,this.username=s||"",this.env=l,this.components=a,this.serviceWorkerOrigin=c,sessionStorage.setItem("playgroundId",i),this.init()}get otstore(){return Yt.getState()}get socketIO(){return Yr.getState().socket}get playgroundStatus(){return this.otstore.playgroundStatus}get dockerStatus(){return this.otstore.dockerStatus}get ignoreReplayers(){return aE.getState().ignoreReplayers}get userList(){return sa.getState().userList}async init(){if(this.mode==="tsdoc")return;const{setSocket:e}=Yr.getState(),t=document.createElement("div");t.className="init-class",document.body.appendChild(t);const{setUserInfo:i,userInfo:r}=Mu.getState(),o={ticket:this.ticket,playgroundId:this.playgroundId,userId:this.userId,username:this.username,tenantId:this.tenantId},a=await(await fetch(`https://${this.env}.1024paas.com/jssdk/ticket`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ticket:this.ticket})})).json();if(e(new iRe(st(Te({},o),{ioPath:`wss://${a.data}`}))),!o.userId)throw"\u7F3A\u5C11userId";if(!o.playgroundId)throw"\u7F3A\u5C11playgroundId";if(!o.ticket)throw"\u7F3A\u5C11ticket";i(st(Te({},r),{uuid:o.userId,userId:o.userId})),Xqe(st(Te(Te({},this.userInfo),o),{io:Yr.getState().socket,callback:()=>{this.components&&this.mapRender(this.components)}})),this.components&&this.mapRender(this.components),window.onerror=l=>{/dError/.test(l)&&Y_.message({type:"error",content:l.replace("Uncaught dError:",""),placement:"bottomEnd"})},fl.exports.render(ne(_nt,{}),document.querySelector(".init-class"))}clearIDB(e){indexedDB.deleteDatabase("daopaas").onsuccess=()=>{e&&e()}}replay(e){N9({userId:e.userInfo.uuid,timestamp:e.timestamp})}setIgnoreReplayers(e){aE.getState().setIgnoreReplayer(e)}activePlayground(){var e;(e=Yr.getState().socket)==null||e.emit("active")}runPlayground(){var e;(e=Yr.getState().socket)==null||e.emit("run")}stopPlayground(){var e;(e=Yr.getState().socket)==null||e.emit("stop")}onUploadFile(e){var t;(t=Yr.getState().socket)==null||t.emit("upload",e)}switchLspServer(e){this.otstore.setGlobalData({useLsp:!this.otstore.globalData.useLsp})}record(e){const{socket:t}=Yr.getState();if(e==="undefined"){this.otstore.setGlobalData({isRecording:!!e}),t==null||t.emit("globalData",{isRecording:!!e});return}this.otstore.setGlobalData({isRecording:!!e}),t==null||t.emit("globalData",{isRecording:!!e})}on(e,t){switch(e){case"message":t();break;case"error":t();break;default:console.log("\u4F20\u53C2\u9519\u8BEF")}}mapRender(e){e==null||e.forEach(({container:t,props:i,item:r},o)=>{switch(r){case"Tree":this.Tree({container:t,props:i});break;case"Editor":this.Editor({container:t,props:st(Te({},i),{serviceWorkerOrigin:this.serviceWorkerOrigin})});break;case"Console":this.Console({container:t,props:i});break;case"Browser":this.Browser({container:t,props:i});break;case"Shell":this.Shell({container:t,props:i});break}})}Page({container:e,props:t}){this.storeProps=t,this.pageDOM=e?fy(e):this.pageDOM,fl.exports.render(ne(O.exports.Suspense,{fallback:ne(Y1,{}),children:ne(Snt,{})}),this.pageDOM)}Editor({container:e,props:t}){this.editorDOM=e?fy(e):this.editorDOM,fl.exports.render(ne(O.exports.Suspense,{fallback:ne(Y1,{}),children:ne(bnt,st(Te({},t),{serviceWorkerOrigin:this.serviceWorkerOrigin}))}),this.editorDOM)}Shell({container:e,props:t}){this.editorDOM=e?fy(e):this.editorDOM,fl.exports.render(ne(O.exports.Suspense,{fallback:ne(Y1,{}),children:ne(wnt,Te({},t))}),this.editorDOM)}Tree({container:e,props:t}){this.editorDOM=e?fy(e):this.editorDOM,fl.exports.render(ne(O.exports.Suspense,{fallback:ne(Y1,{}),children:ne(vnt,Te({},t))}),this.editorDOM)}Console({container:e,props:t}){this.editorDOM=e?fy(e):this.editorDOM,fl.exports.render(ne(O.exports.Suspense,{fallback:ne(Y1,{}),children:ne(ynt,Te({},t))}),this.editorDOM)}Browser({container:e,props:t}){this.editorDOM=e?fy(e):this.editorDOM,fl.exports.render(ne(O.exports.Suspense,{fallback:ne(Y1,{}),children:ne(Cnt,Te({},t))}),this.editorDOM)}}function fy(n){return/HTMLDivElement|HTMLElement/.test(Object.prototype.toString.call(n))?n:document.querySelector(n)}var xl=globalThis&&globalThis.__assign||function(){return xl=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},xl.apply(this,arguments)},$p=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.filter(function(t){return!!t}).join(" ")},Ent=function(n){var e=xl({renderItemTitle:function(t){var i=t.title,r=t.context,o=t.info;if(!o.isSearching||!r.isSearchMatching)return xe.createElement(xe.Fragment,null,i);var s=i.toLowerCase().indexOf(o.search.toLowerCase());return xe.createElement(xe.Fragment,null,s>0&&xe.createElement("span",null,i.slice(0,s)),xe.createElement("span",{className:"rct-tree-item-search-highlight"},i.slice(s,s+o.search.length)),s+o.search.length<i.length&&xe.createElement("span",null,i.slice(s+o.search.length,i.length)))},renderItemArrow:function(t){var i=t.item,r=t.context;return xe.createElement("div",xl({className:$p(i.hasChildren&&"rct-tree-item-arrow-hasChildren","rct-tree-item-arrow")},r.arrowProps),i.hasChildren&&(r.isExpanded?xe.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 16 16",enableBackground:"new 0 0 16 16",xmlSpace:"preserve"},xe.createElement("g",null,xe.createElement("g",null,xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M12,5c-0.28,0-0.53,0.11-0.71,0.29L8,8.59L4.71,5.29C4.53,5.11,4.28,5,4,5
|
|
861
861
|
C3.45,5,3,5.45,3,6c0,0.28,0.11,0.53,0.29,0.71l4,4C7.47,10.89,7.72,11,8,11s0.53-0.11,0.71-0.29l4-4C12.89,6.53,13,6.28,13,6
|
|
862
862
|
C13,5.45,12.55,5,12,5z`,className:"rct-tree-item-arrow-path"})))):xe.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 16 16",enableBackground:"new 0 0 16 16",xmlSpace:"preserve"},xe.createElement("g",null,xe.createElement("g",null,xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M10.71,7.29l-4-4C6.53,3.11,6.28,3,6,3C5.45,3,5,3.45,5,4
|
|
863
863
|
c0,0.28,0.11,0.53,0.29,0.71L8.59,8l-3.29,3.29C5.11,11.47,5,11.72,5,12c0,0.55,0.45,1,1,1c0.28,0,0.53-0.11,0.71-0.29l4-4
|
|
@@ -910,7 +910,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
910
910
|
height: 100%;
|
|
911
911
|
position: absolute;
|
|
912
912
|
}
|
|
913
|
-
`,zit=({children:n})=>ne(Vit,{children:n});function Dde(n,e){var t,i;for(let r=0;r<n.length;r++)n[r].type==="DIRECTORY"?(t=e==null?void 0:e.children)==null||t.push(`${e.index}${n[r].name}/`):(i=e==null?void 0:e.children)==null||i.push(`${e.index}${n[r].name}`)}function Uit(n){if(!n)return;const e={},t=n.name;e[t]={index:t,children:[],hasChildren:!0,data:t},Dde(n.children,e[t]);let i=[...n.children],r=[...e[t].children];for(;i.length;){const o=i.length;for(let s=0;s<o;s++){const a=i.shift(),l=r.shift();switch(i=i.concat(a.children),a.type){case"DIRECTORY":const c=l;e[c]={index:c,hasChildren:!0,children:[],data:a.name},Dde(a.children,e[c]),r=r.concat(e[c].children);break;case"FILE":const u=l;e[u]={index:u,hasChildren:!1,data:a.name};break}}}return e}const JN=async n=>await new Promise(t=>{const i=new FileReader;i.readAsDataURL(n),i.onload=r=>{t(r.target.result)}}),Ide=({onCustomSelect:n})=>{const e={target:"",files:[]},t=Yr.getState().socket,[i,r]=O.exports.useState(),[o,s]=O.exports.useState([]),[a,l]=O.exports.useState([]),[c,u]=O.exports.useState({}),[d,h]=O.exports.useState(""),[f,g]=O.exports.useState(""),p=O.exports.useRef(null),{CRDTInfo:m,dockerInfo:v}=Yt(j=>j),{fileTree:_}=Kee(j=>j),[y,b]=O.exports.useState({});O.exports.useEffect(()=>{if(Yt.getState().appStatus==="replay"&&(l([]),s([])),!_.data)return;const j=Uit(_==null?void 0:_.data);l(a.filter($=>j[$])),s(o.filter($=>j[$])),b(j)},[_]),O.exports.useEffect(()=>{l([]),s([])},[v]);const w=j=>{if(j.length===1&&(l(j),Yt.getState().appStatus==="code")){const $={timestamp:Date.now(),userInfo:Mu.getState().userInfo,editor:{extraInfo:{messageId:"1",playgroundId:Yt.getState().playgroundInfo.playgroundId},evtType:"File"},file:{action:"Get",path:j[0]}};t==null||t.emit("fileContent",JSON.stringify($))}},x=j=>{s([...o,j])},S=j=>{s(o.filter($=>$!==j))},k=j=>{t==null||t.emit("upload",j),e.target="",e.files=[]},T=j=>{j[j.length-1]!=="/"?e.target=`${j.split("/").slice(0,-1).join("/")}/`:e.target=j},D=async(j,$="/")=>await new Promise(ee=>{if(j.isFile)j.file(async ge=>{ee([{path:`${$}${ge.name}`,content:await JN(ge)}])});else if(j.isDirectory){let ge=[{path:`${$}${j.name}/`,content:""}];j.createReader().readEntries(async Ie=>{for(let K=0;K<Ie.length;K++)ge=ge.concat(await D(Ie[K],`${$}${j.name}/`));ee(ge)})}}),R=async j=>{var _e;j.preventDefault();let $=j.target;for(;$&&((_e=$.tagName)==null?void 0:_e.toLowerCase())!=="button";)$=$.lastChild;const Q=$?$.dataset.rctItemId:"/";T(Q);const ee=j.dataTransfer.items;if(ee.length===0)return;const ge=[];for(const Ie of ee)ge.push(Ie.webkitGetAsEntry());for(const Ie of ge)Ie&&(e.files=e.files.concat(await D(Ie)));$==null||$.parentNode.classList.remove("rct-tree-item-title-container-selected"),$==null||$.parentNode.parentNode.classList.remove("rct-tree-item-li-selected"),k(JSON.stringify(e))};O.exports.useEffect(()=>{p.current&&(p.current.removeEventListener("drop",R),p.current.addEventListener("drop",R,!1),p.current.addEventListener("dragover",j=>{j.dataTransfer.items.length!==0&&(j.preventDefault(),j.stopPropagation())},!1),p.current.addEventListener("dragenter",j=>{var $,Q,ee,ge,_e,Ie,K;(($=j==null?void 0:j.dataTransfer)==null?void 0:$.items.length)!==0&&(j.preventDefault(),j.stopPropagation(),((ee=(Q=j==null?void 0:j.target)==null?void 0:Q.tagName)==null?void 0:ee.toLowerCase())==="button"&&((_e=(ge=j.target)==null?void 0:ge.parentNode)==null||_e.classList.add("rct-tree-item-title-container-selected"),(K=(Ie=j.target)==null?void 0:Ie.parentNode)==null||K.parentNode.classList.add("rct-tree-item-li-selected")))},!1),p.current.addEventListener("dragleave",j=>{j.dataTransfer.items.length!==0&&(j.preventDefault(),j.stopPropagation(),j.target.tagName.toLowerCase()==="button"&&(j.target.parentNode.classList.remove("rct-tree-item-title-container-selected"),j.target.parentNode.parentNode.classList.remove("rct-tree-item-li-selected")))},!1))},[p]),O.exports.useEffect(()=>{var $,Q;const j=sa.getState().userList.find(ee=>ee.uuid===m.userInfo.uuid);if((($=m==null?void 0:m.editor)==null?void 0:$.evtType)==="File"&&j){const ee=(Q=m==null?void 0:m.file)==null?void 0:Q.path;Hd(m.userInfo)?Yt.getState().appStatus==="replay"&&!aE.getState().ignoreReplayers.some(ge=>ge==="file")&&(w([ee]),ee[ee.length-1]==="/"&&(o.indexOf(ee)===-1?x(ee):S(ee))):(u(ge=>{const _e=Te({},ge),Ie=Object.entries(_e);for(const K of Ie){const[se,oe]=K,Ne=oe.findIndex(pe=>pe.uuid===j.uuid);if(Ne>-1){_e[se].splice(Ne,1),_e[se].length===0&&delete _e[se];break}}return _e[ee]?_e[ee].push({uuid:j.uuid,color:j.color,avatar:j.avatar}):_e[ee]=[{uuid:j.uuid,color:j.color,avatar:j.avatar}],_e}),ee[ee.length-1]==="/"&&(o.indexOf(ee)===-1?x(ee):S(ee)))}},[m]);const N=j=>{x(j),j[j.length-1]!=="/"&&(j=`${j.split("/").slice(0,-1).join("/")}/`),b($=>{var ee;const Q=`${j}${n6().substring(0,6)}`;return(ee=$[j].children)==null||ee.push(Q),$[Q]={index:Q,hasChildren:!1,data:"Untitled"},h(Q),g(""),$})},A=j=>{x(j),j[j.length-1]!=="/"&&(j=`${j.split("/").slice(0,-1).join("/")}/`),b($=>{var ee;const Q=`${j}${n6().substring(0,6)}/`;return(ee=$[j].children)==null||ee.push(Q),$[Q]={index:Q,hasChildren:!0,children:[],data:"Untitled"},h(Q),g(""),$})},V=j=>{f===""&&b($=>(delete $[j],$)),h("")},P=(j,$="")=>{const Q={action:"",path:"",newPath:""},ee=j.index.split("/");j.hasChildren?ee.splice(-2,1,$):ee.splice(-1,1,$),j.data==="Untitled"?(Q.action="CREATE",Q.path=ee.join("/")):(Q.action="RENAME",Q.path=j.index,Q.newPath=ee.join("/")),t==null||t.emit("fileTreeOp",JSON.stringify(Q))},U=(j,$)=>{T(j),document.getElementById(`manual-upload-${$}`).click()},F=async j=>{for(const $ of j)e.files=e.files.concat([{path:`/${$.name}`,content:await JN($)}]);k(JSON.stringify(e))},M=async j=>{for(const $ of j)e.files=e.files.concat([{path:`/${$.webkitRelativePath}`,content:await JN($)}]);k(JSON.stringify(e))},W=j=>{t==null||t.emit("fileTreeOp",JSON.stringify({action:"DELETE",path:j}))};return ne(BE,{name:"file",children:dt("div",{ref:p,style:{height:"100%",overflow:"auto"},children:[ne("input",{id:"manual-upload-file",type:"file",multiple:!0,hidden:!0,onChange:j=>{F(j.target.files)}}),ne("input",{id:"manual-upload-folder",type:"file",multiple:!0,hidden:!0,webkitdirectory:"",mozdirectory:"",directory:"",onChange:j=>{M(j.target.files)}}),ne(Hnt,{canDragAndDrop:!0,canSearch:!1,items:y,onFocusItem:j=>r(j.index),onExpandItem:j=>{x(j.index)},onCollapseItem:j=>{S(j.index)},getItemTitle:j=>j.data,viewState:{["tree-1"]:{focusedItem:i,expandedItems:o,selectedItems:a}},onSelectItems:j=>{w(j),n==null||n(j)},renderItem:({title:j,arrow:$,depth:Q,context:ee,children:ge})=>dt("div",ot(Te({},ee.itemContainerWithChildrenProps),{className:["rct-tree-item-li",ee.isSelected?"rct-tree-item-li-selected":"",ee.isExpanded?"rct-tree-item-li-expanded":"",ee.isFocused?"rct-tree-item-li-focused":"",ge?"rct-tree-item-li-hasChildren":""].join(" "),children:[dt("div",{className:["rct-tree-item-title-container",ee.isSelected?"rct-tree-item-title-container-selected":"",ee.isExpanded?"rct-tree-item-title-container-expanded":"",ee.isFocused?"rct-tree-item-title-container-focused":"",ge?"rct-tree-item-title-container-hasChildren":""].join(" "),style:{paddingLeft:`${Q}0px`},children:[c[ee.interactiveElementProps["data-rct-item-id"]]&&c[ee.interactiveElementProps["data-rct-item-id"]].map(_e=>ne("div",{className:"rct-tree-item-avatar rounded-full absolute border",style:{borderColor:_e.color,backgroundImage:`url(${_e.avatar})`}},_e.uuid)),dt("div",{className:"rct-tree-item-toolbar absolute right-0",children:[ne("button",{onClick:()=>{N(ee.interactiveElementProps["data-rct-item-id"])},children:ne("i",{className:"d42 add-file"})}),ne("button",{onClick:()=>{A(ee.interactiveElementProps["data-rct-item-id"])},children:ne("i",{className:"d42 add-folder"})}),ne(El,{as:"div",className:"relative",children:({open:_e})=>dt(Qr,{children:[ne(El.Button,{children:ne("i",{className:"d42 more"})}),ne(FE,{show:_e,as:O.exports.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:dt(El.Items,{static:!0,className:"absolute z-1 w-20 right-0 top-full",children:[ne(El.Item,{children:ne("div",{className:"code-dropdown-btn-item",children:ne("button",{className:"w-full justify-center my-2",onClick:()=>{U(ee.interactiveElementProps["data-rct-item-id"],"file")},children:"\u4E0A\u4F20\u6587\u4EF6"})})}),ne(El.Item,{children:ne("div",{className:"code-dropdown-btn-item",children:ne("button",{className:"w-full justify-center my-2",onClick:()=>{U(ee.interactiveElementProps["data-rct-item-id"],"folder")},children:"\u4E0A\u4F20\u6587\u4EF6\u5939"})})}),ne(El.Item,{children:ne("div",{className:"code-dropdown-btn-item",children:ne("button",{className:"w-full justify-center my-2",onClick:()=>{g(j.props.children),h(ee.interactiveElementProps["data-rct-item-id"])},children:"\u91CD\u547D\u540D"})})}),ne(El.Item,{children:ne("div",{className:"code-dropdown-btn-item",children:ne("button",{className:"w-full justify-center text-red-800 my-2",onClick:()=>W(ee.interactiveElementProps["data-rct-item-id"]),children:"\u5220\u9664"})})})]})})]})})]}),$,d===ee.interactiveElementProps["data-rct-item-id"]?ne("input",{className:"text-black focus:outline-none active:outline-none",type:"text",autoFocus:!0,value:f,onInput:_e=>g(_e.target.value),onKeyDown:_e=>{switch(_e.key){case"Enter":V(d),P(y[d],f);break;case"Escape":V(d);break}}}):ne("button",ot(Te(Te({},ee.itemContainerWithoutChildrenProps),ee.interactiveElementProps),{className:["rct-tree-item-button",ee.isSelected?"rct-tree-item-button-selected":"",ee.isExpanded?"rct-tree-item-button-expanded":"",ee.isFocused?"rct-tree-item-button-focused":"",ge?"rct-tree-item-button-hasChildren":""].join(" "),children:j}))]}),ge]})),children:ne(lit,{treeId:"tree-1",rootItem:"/",treeLabel:"File Tree"})})]})})};var jit=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",getStringFromFile:JN,FileTree:Ide});function qit(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,function(i,r){const o=r[0];return typeof e[o]!="undefined"?e[o]:i}),t}function L(n,e,...t){return qit(e,t)}var Z7;const e2="en";let t2=!1,n2=!1,i2=!1,Rde=!1,Nde=!1,X7=!1,$E,r2=e2,Kit,zp;const yi=typeof self=="object"?self:typeof global=="object"?global:{};let Ao;typeof yi.vscode!="undefined"&&typeof yi.vscode.process!="undefined"?Ao=yi.vscode.process:typeof process!="undefined"&&(Ao=process);const Git=typeof((Z7=Ao==null?void 0:Ao.versions)===null||Z7===void 0?void 0:Z7.electron)=="string"&&(Ao==null?void 0:Ao.type)==="renderer";if(typeof navigator=="object"&&!Git)zp=navigator.userAgent,t2=zp.indexOf("Windows")>=0,n2=zp.indexOf("Macintosh")>=0,X7=(zp.indexOf("Macintosh")>=0||zp.indexOf("iPad")>=0||zp.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,i2=zp.indexOf("Linux")>=0,Nde=!0,$E=navigator.language,r2=$E;else if(typeof Ao=="object"){t2=Ao.platform==="win32",n2=Ao.platform==="darwin",i2=Ao.platform==="linux",i2&&!!Ao.env.SNAP&&Ao.env.SNAP_REVISION,$E=e2,r2=e2;const n=Ao.env.VSCODE_NLS_CONFIG;if(n)try{const e=JSON.parse(n),t=e.availableLanguages["*"];$E=e.locale,r2=t||e2,Kit=e._translationsConfigFile}catch{}Rde=!0}else console.error("Unable to resolve platform.");const Co=t2,sn=n2,Ws=i2,ju=Rde,Up=Nde,qu=X7,Yit=zp,Zit=r2,Xit=$E,Ade=(()=>{if(typeof yi.postMessage=="function"&&!yi.importScripts){let n=[];yi.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,r=n.length;i<r;i++){const o=n[i];if(o.id===t.data.vscodeScheduleAsyncWork){n.splice(i,1),o.callback();return}}});let e=0;return t=>{const i=++e;n.push({id:i,callback:t}),yi.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),Qit=function(){if(yi.setImmediate)return yi.setImmediate.bind(yi);if(typeof yi.postMessage=="function"&&!yi.importScripts)return Ade;if(typeof(Ao==null?void 0:Ao.nextTick)=="function")return Ao.nextTick.bind(Ao);const e=Promise.resolve();return t=>e.then(t)}(),oc=n2||X7?2:t2?1:3;let Ode=!0,Pde=!1;function Mde(){if(!Pde){Pde=!0;const n=new Uint8Array(2);n[0]=1,n[1]=2,Ode=new Uint16Array(n.buffer)[0]===(2<<8)+1}return Ode}const Fde="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Jit(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of Fde)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const Bde=Jit();function o2(n){let e=Bde;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}const ert={maxLen:1e3,windowSize:15,timeBudget:150};function s2(n,e,t,i,r=ert){if(t.length>r.maxLen){let c=n-r.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,n+r.maxLen/2),s2(n,e,t,i,r)}const o=Date.now(),s=n-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-o>=r.timeBudget);c++){const u=s-r.windowSize*c;e.lastIndex=Math.max(0,u);const d=trt(e,t,s,a);if(!d&&l||(l=d,u<=0))break;a=u}if(l){let c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function trt(n,e,t,i){let r;for(;r=n.exec(e);){const o=r.index||0;if(o<=t&&n.lastIndex>=t)return r;if(i>0&&o>i)return null}return null}function sc(n,e=0){return n[n.length-(1+e)]}function nrt(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function ac(n,e,t=(i,r)=>i===r){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,r=n.length;i<r;i++)if(!t(n[i],e[i]))return!1;return!0}function Q7(n,e,t){let i=0,r=n.length-1;for(;i<=r;){const o=(i+r)/2|0,s=t(n[o],e);if(s<0)i=o+1;else if(s>0)r=o-1;else return o}return-(i+1)}function $de(n,e){let t=0,i=n.length;if(i===0)return 0;for(;t<i;){const r=Math.floor((t+i)/2);e(n[r])?i=r:t=r+1}return t}function J7(n,e,t){if(n=n|0,n>=e.length)throw new TypeError("invalid index");let i=e[Math.floor(e.length*Math.random())],r=[],o=[],s=[];for(let a of e){const l=t(a,i);l<0?r.push(a):l>0?o.push(a):s.push(a)}return n<r.length?J7(n,r,t):n<r.length+s.length?s[0]:J7(n-(r.length+s.length),o,t)}function Wde(n,e){const t=[];let i;for(const r of n.slice(0).sort(e))!i||e(i[0],r)!==0?(i=[r],t.push(i)):i.push(r);return t}function yy(n){return n.filter(e=>!!e)}function Hde(n){return!Array.isArray(n)||n.length===0}function Wa(n){return Array.isArray(n)&&n.length>0}function cv(n,e=t=>t){const t=new Set;return n.filter(i=>{const r=e(i);return t.has(r)?!1:(t.add(r),!0)})}function irt(n,e){const t=rrt(n,e);if(t!==-1)return n[t]}function rrt(n,e){for(let t=n.length-1;t>=0;t--){const i=n[t];if(e(i))return t}return-1}function e$(n,e){return n.length>0?n[0]:e}function Vde(n){return[].concat(...n)}function Hs(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);const i=[];if(t<=e)for(let r=t;r<e;r++)i.push(r);else for(let r=t;r>e;r--)i.push(r);return i}function WE(n,e,t){const i=n.slice(0,e),r=n.slice(e);return i.concat(t,r)}function t$(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function a2(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function n$(n){return Array.isArray(n)?n:[n]}function ort(n,e,t){const i=Ude(n,e),r=n.length,o=t.length;n.length=r+o;for(let s=r-1;s>=i;s--)n[s+o]=n[s];for(let s=0;s<o;s++)n[s+i]=t[s]}function zde(n,e,t,i){const r=Ude(n,e),o=n.splice(r,t);return ort(n,r,i),o}function Ude(n,e){return e<0?Math.max(e+n.length,0):Math.min(e,n.length)}class Cy{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}function jde(n){return Array.isArray(n)}function lc(n){return typeof n=="string"}function fa(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function uv(n){return typeof n=="number"&&!isNaN(n)}function qde(n){return n===!0||n===!1}function Ha(n){return typeof n=="undefined"}function srt(n){return!Ll(n)}function Ll(n){return Ha(n)||n===null}function ei(n,e){if(!n)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function l2(n){if(Ll(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function c2(n){return typeof n=="function"}function art(n,e){const t=Math.min(n.length,e.length);for(let i=0;i<t;i++)lrt(n[i],e[i])}function lrt(n,e){if(lc(e)){if(typeof n!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(c2(e)){try{if(n instanceof e)return}catch{}if(!Ll(n)&&n.constructor===e||e.length===1&&e.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function crt(n){let e=[],t=Object.getPrototypeOf(n);for(;Object.prototype!==t;)e=e.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return e}function i$(n){const e=[];for(const t of crt(n))typeof n[t]=="function"&&e.push(t);return e}function urt(n,e){const t=r=>function(){const o=Array.prototype.slice.call(arguments,0);return e(r,o)};let i={};for(const r of n)i[r]=t(r);return i}function Va(n){return n===null?void 0:n}function Kde(n,e="Unreachable"){throw new Error(e)}function Vf(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;const e=Array.isArray(n)?[]:{};return Object.keys(n).forEach(t=>{n[t]&&typeof n[t]=="object"?e[t]=Vf(n[t]):e[t]=n[t]}),e}function drt(n){if(!n||typeof n!="object")return n;const e=[n];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(Gde.call(t,i)){const r=t[i];typeof r=="object"&&!Object.isFrozen(r)&&e.push(r)}}return n}const Gde=Object.prototype.hasOwnProperty;function hrt(n,e){return r$(n,e,new Set)}function r$(n,e,t){if(Ll(n))return n;const i=e(n);if(typeof i!="undefined")return i;if(jde(n)){const r=[];for(const o of n)r.push(r$(o,e,t));return r}if(fa(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);const r={};for(let o in n)Gde.call(n,o)&&(r[o]=r$(n[o],e,t));return t.delete(n),r}return n}function eh(n,e,t=!0){return fa(n)?(fa(e)&&Object.keys(e).forEach(i=>{i in n?t&&(fa(n[i])&&fa(e[i])?eh(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function tu(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t<n.length;t++)if(!tu(n[t],e[t]))return!1}else{const r=[];for(i in n)r.push(i);r.sort();const o=[];for(i in e)o.push(i);if(o.sort(),!tu(r,o))return!1;for(t=0;t<r.length;t++)if(!tu(n[r[t]],e[r[t]]))return!1}return!0}function th(n,e,t){const i=e(n);return typeof i=="undefined"?t:i}const jp=8;class Yde{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class frt{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class Zde{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Hr{constructor(e,t,i,r){this.id=e,this.name=t,this.defaultValue=i,this.schema=r}applyUpdate(e,t){return u2(e,t)}compute(e,t,i){return i}}class HE{constructor(e,t){this.newValue=e,this.didChange=t}}function u2(n,e){if(typeof n!="object"||typeof e!="object"||!n||!e)return new HE(e,n!==e);if(Array.isArray(n)||Array.isArray(e)){const i=Array.isArray(n)&&Array.isArray(e)&&ac(n,e);return new HE(e,i)}let t=!1;for(let i in e)if(e.hasOwnProperty(i)){const r=u2(n[i],e[i]);r.didChange&&(n[i]=r.newValue,t=!0)}return new HE(n,t)}class wy{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}applyUpdate(e,t){return u2(e,t)}validate(e){return this.defaultValue}}class dv{constructor(e,t,i,r){this.id=e,this.name=t,this.defaultValue=i,this.schema=r}applyUpdate(e,t){return u2(e,t)}validate(e){return typeof e=="undefined"?this.defaultValue:e}compute(e,t,i){return i}}function Dt(n,e){return typeof n=="undefined"?e:n==="false"?!1:Boolean(n)}class mn extends dv{constructor(e,t,i,r=void 0){typeof r!="undefined"&&(r.type="boolean",r.default=i);super(e,t,i,r)}validate(e){return Dt(e,this.defaultValue)}}function o$(n,e,t,i){if(typeof n=="undefined")return e;let r=parseInt(n,10);return isNaN(r)?e:(r=Math.max(t,r),r=Math.min(i,r),r|0)}class Ci extends dv{constructor(e,t,i,r,o,s=void 0){typeof s!="undefined"&&(s.type="integer",s.default=i,s.minimum=r,s.maximum=o);super(e,t,i,s);this.minimum=r,this.maximum=o}static clampedInt(e,t,i,r){return o$(e,t,i,r)}validate(e){return Ci.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class nh extends dv{constructor(e,t,i,r,o){typeof o!="undefined"&&(o.type="number",o.default=i);super(e,t,i,o);this.validationFn=r}static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e=="undefined")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(nh.float(e,this.defaultValue))}}class za extends dv{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,r=void 0){typeof r!="undefined"&&(r.type="string",r.default=i);super(e,t,i,r)}validate(e){return za.string(e,this.defaultValue)}}function ga(n,e,t){return typeof n!="string"||t.indexOf(n)===-1?e:n}class kr extends dv{constructor(e,t,i,r,o=void 0){typeof o!="undefined"&&(o.type="string",o.enum=r,o.default=i);super(e,t,i,o);this._allowedValues=r}validate(e){return ga(e,this.defaultValue,this._allowedValues)}}class VE extends Hr{constructor(e,t,i,r,o,s,a=void 0){typeof a!="undefined"&&(a.type="string",a.enum=o,a.default=r);super(e,t,i,a);this._allowedValues=o,this._convert=s}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function grt(n){switch(n){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class prt extends Hr{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[L("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),L("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),L("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:L("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class mrt extends Hr{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:L("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:L("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Dt(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Dt(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function _rt(n){switch(n){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var wo;(function(n){n[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin"})(wo||(wo={}));function vrt(n){switch(n){case"line":return wo.Line;case"block":return wo.Block;case"underline":return wo.Underline;case"line-thin":return wo.LineThin;case"block-outline":return wo.BlockOutline;case"underline-thin":return wo.UnderlineThin}}class brt extends wy{constructor(){super(127,[65,33])}compute(e,t,i){const r=["monaco-editor"];return t.get(33)&&r.push(t.get(33)),e.extraEditorClassName&&r.push(e.extraEditorClassName),t.get(65)==="default"?r.push("mouse-default"):t.get(65)==="copy"&&r.push("mouse-copy"),t.get(99)&&r.push("showUnused"),t.get(125)&&r.push("showDeprecated"),r.join(" ")}}class yrt extends mn{constructor(){super(32,"emptySelectionClipboard",!0,{description:L("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class Crt extends Hr{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:L("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[L("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),L("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),L("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:L("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[L("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),L("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),L("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:L("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:L("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:sn},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:L("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:L("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Dt(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":ga(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":ga(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Dt(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Dt(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Dt(t.loop,this.defaultValue.loop)}}}class Tl extends Hr{constructor(){super(44,"fontLigatures",Tl.OFF,{anyOf:[{type:"boolean",description:L("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:L("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:L("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e=="undefined"?this.defaultValue:typeof e=="string"?e==="false"?Tl.OFF:e==="true"?Tl.ON:e:Boolean(e)?Tl.ON:Tl.OFF}}Tl.OFF='"liga" off, "calt" off',Tl.ON='"liga" on, "calt" on';class wrt extends wy{constructor(){super(43)}compute(e,t,i){return e.fontInfo}}class Srt extends dv{constructor(){super(45,"fontSize",is.fontSize,{type:"number",minimum:6,maximum:100,default:is.fontSize,description:L("fontSize","Controls the font size in pixels.")})}validate(e){let t=nh.float(e,this.defaultValue);return t===0?is.fontSize:nh.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class ih extends Hr{constructor(){super(46,"fontWeight",is.fontWeight,{anyOf:[{type:"number",minimum:ih.MINIMUM_VALUE,maximum:ih.MAXIMUM_VALUE,errorMessage:L("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:ih.SUGGESTION_VALUES}],default:is.fontWeight,description:L("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Ci.clampedInt(e,is.fontWeight,ih.MINIMUM_VALUE,ih.MAXIMUM_VALUE))}}ih.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],ih.MINIMUM_VALUE=1,ih.MAXIMUM_VALUE=1e3;class xrt extends Hr{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[L("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),L("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),L("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(50,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:L("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:L("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:L("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:L("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:L("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:L("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:L("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:L("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:L("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:L("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:L("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,r,o,s;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:ga(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:ga(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:ga(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(r=a.multipleDeclarations)!==null&&r!==void 0?r:ga(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:ga(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(s=a.multipleReferences)!==null&&s!==void 0?s:ga(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:za.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:za.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:za.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:za.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:za.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Ert extends Hr{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:L("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:L("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:L("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:L("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Dt(t.enabled,this.defaultValue.enabled),delay:Ci.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Dt(t.sticky,this.defaultValue.sticky),above:Dt(t.above,this.defaultValue.above)}}}class Sy extends wy{constructor(){super(130,[49,57,37,64,91,59,60,93,117,120,121,122,2])}compute(e,t,i){return Sy.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,r=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/r);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:r,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,r=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*r),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:r};const s=t.stableMinimapLayoutInput,a=s&&e.outerHeight===s.outerHeight&&e.lineHeight===s.lineHeight&&e.typicalHalfwidthCharacterWidth===s.typicalHalfwidthCharacterWidth&&e.pixelRatio===s.pixelRatio&&e.scrollBeyondLastLine===s.scrollBeyondLastLine&&e.minimap.enabled===s.minimap.enabled&&e.minimap.side===s.minimap.side&&e.minimap.size===s.minimap.size&&e.minimap.showSlider===s.minimap.showSlider&&e.minimap.renderCharacters===s.minimap.renderCharacters&&e.minimap.maxColumn===s.minimap.maxColumn&&e.minimap.scale===s.minimap.scale&&e.verticalScrollbarWidth===s.verticalScrollbarWidth&&e.isViewportWrapping===s.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,u=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let h=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,p=e.minimap.side,m=e.verticalScrollbarWidth,v=e.viewLineCount,_=e.remainingWidth,y=e.isViewportWrapping,b=d?2:3;let w=Math.floor(o*r);const x=w/o;let S=!1,k=!1,T=b*h,D=h/o,R=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:M,extraLinesBeyondLastLine:W,desiredRatio:j,minimapLineCount:$}=Sy.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:u,height:r,lineHeight:l,pixelRatio:o});if(v/$>1)S=!0,k=!0,h=1,T=1,D=h/o;else{let ee=!1,ge=h+1;if(g==="fit"){const _e=Math.ceil((v+W)*T);y&&a&&_<=t.stableFitRemainingWidth?(ee=!0,ge=t.stableFitMaxMinimapScale):ee=_e>w}if(g==="fill"||ee){S=!0;const _e=h;T=Math.min(l*o,Math.max(1,Math.floor(1/j))),y&&a&&_<=t.stableFitRemainingWidth&&(ge=t.stableFitMaxMinimapScale),h=Math.min(ge,Math.max(1,Math.floor(T/b))),h>_e&&(R=Math.min(2,h/_e)),D=h/o/R,w=Math.ceil(Math.max(M,v+W)*T),y?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const N=Math.floor(f*D),A=Math.min(N,Math.max(0,Math.floor((_-m-2)*D/(c+D)))+jp);let V=Math.floor(o*A);const P=V/o;V=Math.floor(V*R);const U=d?1:2,F=p==="left"?0:i-A-m;return{renderMinimap:U,minimapLeft:F,minimapWidth:A,minimapHeightIsEditorHeight:S,minimapIsSampling:k,minimapScale:h,minimapLineHeight:T,minimapCanvasInnerWidth:V,minimapCanvasInnerHeight:w,minimapCanvasOuterWidth:P,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const i=t.outerWidth|0,r=t.outerHeight|0,o=t.lineHeight|0,s=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,u=t.viewLineCount,d=e.get(122),h=d==="inherit"?e.get(121):d,f=h==="inherit"?e.get(117):h,g=e.get(120),p=e.get(2),m=t.isDominatedByLongLines,v=e.get(49),_=e.get(59).renderType!==0,y=e.get(60),b=e.get(93),w=e.get(64),x=e.get(91),S=x.verticalScrollbarSize,k=x.verticalHasArrows,T=x.arrowSize,D=x.horizontalScrollbarSize,R=e.get(57),N=e.get(37);let A;if(typeof R=="string"&&/^\d+(\.\d+)?ch$/.test(R)){const se=parseFloat(R.substr(0,R.length-2));A=Ci.clampedInt(se*a,0,0,1e3)}else A=Ci.clampedInt(R,0,0,1e3);N&&(A+=16);let V=0;if(_){const se=Math.max(s,y);V=Math.round(se*l)}let P=0;v&&(P=o);let U=0,F=U+P,M=F+V,W=M+A;const j=i-P-V-A;let $=!1,Q=!1,ee=-1;p!==2&&(h==="inherit"&&m?($=!0,Q=!0):f==="on"||f==="bounded"?Q=!0:f==="wordWrapColumn"&&(ee=g));const ge=Sy._computeMinimapLayout({outerWidth:i,outerHeight:r,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:b,minimap:w,verticalScrollbarWidth:S,viewLineCount:u,remainingWidth:j,isViewportWrapping:Q},t.memory||new Zde);ge.renderMinimap!==0&&ge.minimapLeft===0&&(U+=ge.minimapWidth,F+=ge.minimapWidth,M+=ge.minimapWidth,W+=ge.minimapWidth);const _e=j-ge.minimapWidth,Ie=Math.max(1,Math.floor((_e-S-2)/a)),K=k?T:0;return Q&&(ee=Math.max(1,Ie),f==="bounded"&&(ee=Math.min(ee,g))),{width:i,height:r,glyphMarginLeft:U,glyphMarginWidth:P,lineNumbersLeft:F,lineNumbersWidth:V,decorationsLeft:M,decorationsWidth:A,contentLeft:W,contentWidth:_e,minimap:ge,viewportColumn:Ie,isWordWrapMinified:$,isViewportWrapping:Q,wrappingColumn:ee,verticalScrollbarWidth:S,horizontalScrollbarHeight:D,overviewRuler:{top:K,width:S,height:r-2*K,right:0}}}}class krt extends Hr{constructor(){const e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:L("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Dt(e.enabled,this.defaultValue.enabled)}}}class Lrt extends Hr{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(126,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:L("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:L("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:L("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Dt(t.enabled,this.defaultValue.enabled),fontSize:Ci.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:za.string(t.fontFamily,this.defaultValue.fontFamily)}}}class Trt extends nh{constructor(){super(58,"lineHeight",is.lineHeight,e=>nh.clamp(e,0,150),{markdownDescription:L("lineHeight",`Controls the line height.
|
|
913
|
+
`,zit=({children:n})=>ne(Vit,{children:n});function Dde(n,e){var t,i;for(let r=0;r<n.length;r++)n[r].type==="DIRECTORY"?(t=e==null?void 0:e.children)==null||t.push(`${e.index}${n[r].name}/`):(i=e==null?void 0:e.children)==null||i.push(`${e.index}${n[r].name}`)}function Uit(n){if(!n)return;const e={},t=n.name;e[t]={index:t,children:[],hasChildren:!0,data:t},Dde(n.children,e[t]);let i=[...n.children],r=[...e[t].children];for(;i.length;){const o=i.length;for(let s=0;s<o;s++){const a=i.shift(),l=r.shift();switch(i=i.concat(a.children),a.type){case"DIRECTORY":const c=l;e[c]={index:c,hasChildren:!0,children:[],data:a.name},Dde(a.children,e[c]),r=r.concat(e[c].children);break;case"FILE":const u=l;e[u]={index:u,hasChildren:!1,data:a.name};break}}}return e}const JN=async n=>await new Promise(t=>{const i=new FileReader;i.readAsDataURL(n),i.onload=r=>{t(r.target.result)}}),Ide=({onCustomSelect:n})=>{const e={target:"",files:[]},t=Yr.getState().socket,[i,r]=O.exports.useState(),[o,s]=O.exports.useState([]),[a,l]=O.exports.useState([]),[c,u]=O.exports.useState({}),[d,h]=O.exports.useState(""),[f,g]=O.exports.useState(""),p=O.exports.useRef(null),{CRDTInfo:m,dockerInfo:v}=Yt(j=>j),{fileTree:_}=Kee(j=>j),[y,b]=O.exports.useState({});O.exports.useEffect(()=>{if(Yt.getState().appStatus==="replay"&&(l([]),s([])),!_.data)return;const j=Uit(_==null?void 0:_.data);l(a.filter($=>j[$])),s(o.filter($=>j[$])),b(j)},[_]),O.exports.useEffect(()=>{l([]),s([])},[v]);const w=j=>{if(j.length===1&&(l(j),Yt.getState().appStatus==="code")){const $={timestamp:Date.now(),userInfo:Mu.getState().userInfo,editor:{extraInfo:{messageId:"1",playgroundId:Yt.getState().playgroundInfo.playgroundId},evtType:"File"},file:{action:"Get",path:j[0]}};t==null||t.emit("fileContent",JSON.stringify($))}},x=j=>{s([...o,j])},S=j=>{s(o.filter($=>$!==j))},k=j=>{t==null||t.emit("upload",j),e.target="",e.files=[]},T=j=>{j[j.length-1]!=="/"?e.target=`${j.split("/").slice(0,-1).join("/")}/`:e.target=j},D=async(j,$="/")=>await new Promise(ee=>{if(j.isFile)j.file(async ge=>{ee([{path:`${$}${ge.name}`,content:await JN(ge)}])});else if(j.isDirectory){let ge=[{path:`${$}${j.name}/`,content:""}];j.createReader().readEntries(async Ie=>{for(let K=0;K<Ie.length;K++)ge=ge.concat(await D(Ie[K],`${$}${j.name}/`));ee(ge)})}}),R=async j=>{var _e;j.preventDefault();let $=j.target;for(;$&&((_e=$.tagName)==null?void 0:_e.toLowerCase())!=="button";)$=$.lastChild;const Q=$?$.dataset.rctItemId:"/";T(Q);const ee=j.dataTransfer.items;if(ee.length===0)return;const ge=[];for(const Ie of ee)ge.push(Ie.webkitGetAsEntry());for(const Ie of ge)Ie&&(e.files=e.files.concat(await D(Ie)));$==null||$.parentNode.classList.remove("rct-tree-item-title-container-selected"),$==null||$.parentNode.parentNode.classList.remove("rct-tree-item-li-selected"),k(JSON.stringify(e))};O.exports.useEffect(()=>{p.current&&(p.current.removeEventListener("drop",R),p.current.addEventListener("drop",R,!1),p.current.addEventListener("dragover",j=>{j.dataTransfer.items.length!==0&&(j.preventDefault(),j.stopPropagation())},!1),p.current.addEventListener("dragenter",j=>{var $,Q,ee,ge,_e,Ie,K;(($=j==null?void 0:j.dataTransfer)==null?void 0:$.items.length)!==0&&(j.preventDefault(),j.stopPropagation(),((ee=(Q=j==null?void 0:j.target)==null?void 0:Q.tagName)==null?void 0:ee.toLowerCase())==="button"&&((_e=(ge=j.target)==null?void 0:ge.parentNode)==null||_e.classList.add("rct-tree-item-title-container-selected"),(K=(Ie=j.target)==null?void 0:Ie.parentNode)==null||K.parentNode.classList.add("rct-tree-item-li-selected")))},!1),p.current.addEventListener("dragleave",j=>{j.dataTransfer.items.length!==0&&(j.preventDefault(),j.stopPropagation(),j.target.tagName.toLowerCase()==="button"&&(j.target.parentNode.classList.remove("rct-tree-item-title-container-selected"),j.target.parentNode.parentNode.classList.remove("rct-tree-item-li-selected")))},!1))},[p]),O.exports.useEffect(()=>{var $,Q;const j=sa.getState().userList.find(ee=>ee.uuid===m.userInfo.uuid);if((($=m==null?void 0:m.editor)==null?void 0:$.evtType)==="File"&&j){const ee=(Q=m==null?void 0:m.file)==null?void 0:Q.path;Hd(m.userInfo)?Yt.getState().appStatus==="replay"&&!aE.getState().ignoreReplayers.some(ge=>ge==="file")&&(w([ee]),ee[ee.length-1]==="/"&&(o.indexOf(ee)===-1?x(ee):S(ee))):(u(ge=>{const _e=Te({},ge),Ie=Object.entries(_e);for(const K of Ie){const[se,oe]=K,Ne=oe.findIndex(pe=>pe.uuid===j.uuid);if(Ne>-1){_e[se].splice(Ne,1),_e[se].length===0&&delete _e[se];break}}return _e[ee]?_e[ee].push({uuid:j.uuid,color:j.color,avatar:j.avatar}):_e[ee]=[{uuid:j.uuid,color:j.color,avatar:j.avatar}],_e}),ee[ee.length-1]==="/"&&(o.indexOf(ee)===-1?x(ee):S(ee)))}},[m]);const N=j=>{x(j),j[j.length-1]!=="/"&&(j=`${j.split("/").slice(0,-1).join("/")}/`),b($=>{var ee;const Q=`${j}${n6().substring(0,6)}`;return(ee=$[j].children)==null||ee.push(Q),$[Q]={index:Q,hasChildren:!1,data:"Untitled"},h(Q),g(""),$})},A=j=>{x(j),j[j.length-1]!=="/"&&(j=`${j.split("/").slice(0,-1).join("/")}/`),b($=>{var ee;const Q=`${j}${n6().substring(0,6)}/`;return(ee=$[j].children)==null||ee.push(Q),$[Q]={index:Q,hasChildren:!0,children:[],data:"Untitled"},h(Q),g(""),$})},V=j=>{f===""&&b($=>(delete $[j],$)),h("")},P=(j,$="")=>{const Q={action:"",path:"",newPath:""},ee=j.index.split("/");j.hasChildren?ee.splice(-2,1,$):ee.splice(-1,1,$),j.data==="Untitled"?(Q.action="CREATE",Q.path=ee.join("/")):(Q.action="RENAME",Q.path=j.index,Q.newPath=ee.join("/")),t==null||t.emit("fileTreeOp",JSON.stringify(Q))},U=(j,$)=>{T(j),document.getElementById(`manual-upload-${$}`).click()},F=async j=>{for(const $ of j)e.files=e.files.concat([{path:`/${$.name}`,content:await JN($)}]);k(JSON.stringify(e))},M=async j=>{for(const $ of j)e.files=e.files.concat([{path:`/${$.webkitRelativePath}`,content:await JN($)}]);k(JSON.stringify(e))},W=j=>{t==null||t.emit("fileTreeOp",JSON.stringify({action:"DELETE",path:j}))};return ne(BE,{name:"file",children:dt("div",{ref:p,style:{height:"100%",overflow:"auto"},children:[ne("input",{id:"manual-upload-file",type:"file",multiple:!0,hidden:!0,onChange:j=>{F(j.target.files)}}),ne("input",{id:"manual-upload-folder",type:"file",multiple:!0,hidden:!0,webkitdirectory:"",mozdirectory:"",directory:"",onChange:j=>{M(j.target.files)}}),ne(Hnt,{canDragAndDrop:!0,canSearch:!1,items:y,onFocusItem:j=>r(j.index),onExpandItem:j=>{x(j.index)},onCollapseItem:j=>{S(j.index)},getItemTitle:j=>j.data,viewState:{["tree-1"]:{focusedItem:i,expandedItems:o,selectedItems:a}},onSelectItems:j=>{w(j),n==null||n(j)},renderItem:({title:j,arrow:$,depth:Q,context:ee,children:ge})=>dt("div",st(Te({},ee.itemContainerWithChildrenProps),{className:["rct-tree-item-li",ee.isSelected?"rct-tree-item-li-selected":"",ee.isExpanded?"rct-tree-item-li-expanded":"",ee.isFocused?"rct-tree-item-li-focused":"",ge?"rct-tree-item-li-hasChildren":""].join(" "),children:[dt("div",{className:["rct-tree-item-title-container",ee.isSelected?"rct-tree-item-title-container-selected":"",ee.isExpanded?"rct-tree-item-title-container-expanded":"",ee.isFocused?"rct-tree-item-title-container-focused":"",ge?"rct-tree-item-title-container-hasChildren":""].join(" "),style:{paddingLeft:`${Q}0px`},children:[c[ee.interactiveElementProps["data-rct-item-id"]]&&c[ee.interactiveElementProps["data-rct-item-id"]].map(_e=>ne("div",{className:"rct-tree-item-avatar rounded-full absolute border",style:{borderColor:_e.color,backgroundImage:`url(${_e.avatar})`}},_e.uuid)),dt("div",{className:"rct-tree-item-toolbar absolute right-0",children:[ne("button",{onClick:()=>{N(ee.interactiveElementProps["data-rct-item-id"])},children:ne("i",{className:"d42 add-file"})}),ne("button",{onClick:()=>{A(ee.interactiveElementProps["data-rct-item-id"])},children:ne("i",{className:"d42 add-folder"})}),ne(El,{as:"div",className:"relative",children:({open:_e})=>dt(Qr,{children:[ne(El.Button,{children:ne("i",{className:"d42 more"})}),ne(FE,{show:_e,as:O.exports.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:dt(El.Items,{static:!0,className:"absolute z-1 w-20 right-0 top-full",children:[ne(El.Item,{children:ne("div",{className:"code-dropdown-btn-item",children:ne("button",{className:"w-full justify-center my-2",onClick:()=>{U(ee.interactiveElementProps["data-rct-item-id"],"file")},children:"\u4E0A\u4F20\u6587\u4EF6"})})}),ne(El.Item,{children:ne("div",{className:"code-dropdown-btn-item",children:ne("button",{className:"w-full justify-center my-2",onClick:()=>{U(ee.interactiveElementProps["data-rct-item-id"],"folder")},children:"\u4E0A\u4F20\u6587\u4EF6\u5939"})})}),ne(El.Item,{children:ne("div",{className:"code-dropdown-btn-item",children:ne("button",{className:"w-full justify-center my-2",onClick:()=>{g(j.props.children),h(ee.interactiveElementProps["data-rct-item-id"])},children:"\u91CD\u547D\u540D"})})}),ne(El.Item,{children:ne("div",{className:"code-dropdown-btn-item",children:ne("button",{className:"w-full justify-center text-red-800 my-2",onClick:()=>W(ee.interactiveElementProps["data-rct-item-id"]),children:"\u5220\u9664"})})})]})})]})})]}),$,d===ee.interactiveElementProps["data-rct-item-id"]?ne("input",{className:"text-black focus:outline-none active:outline-none",type:"text",autoFocus:!0,value:f,onInput:_e=>g(_e.target.value),onKeyDown:_e=>{switch(_e.key){case"Enter":V(d),P(y[d],f);break;case"Escape":V(d);break}}}):ne("button",st(Te(Te({},ee.itemContainerWithoutChildrenProps),ee.interactiveElementProps),{className:["rct-tree-item-button",ee.isSelected?"rct-tree-item-button-selected":"",ee.isExpanded?"rct-tree-item-button-expanded":"",ee.isFocused?"rct-tree-item-button-focused":"",ge?"rct-tree-item-button-hasChildren":""].join(" "),children:j}))]}),ge]})),children:ne(lit,{treeId:"tree-1",rootItem:"/",treeLabel:"File Tree"})})]})})};var jit=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",getStringFromFile:JN,FileTree:Ide});function qit(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,function(i,r){const o=r[0];return typeof e[o]!="undefined"?e[o]:i}),t}function L(n,e,...t){return qit(e,t)}var Z7;const e2="en";let t2=!1,n2=!1,i2=!1,Rde=!1,Nde=!1,X7=!1,$E,r2=e2,Kit,zp;const yi=typeof self=="object"?self:typeof global=="object"?global:{};let Ao;typeof yi.vscode!="undefined"&&typeof yi.vscode.process!="undefined"?Ao=yi.vscode.process:typeof process!="undefined"&&(Ao=process);const Git=typeof((Z7=Ao==null?void 0:Ao.versions)===null||Z7===void 0?void 0:Z7.electron)=="string"&&(Ao==null?void 0:Ao.type)==="renderer";if(typeof navigator=="object"&&!Git)zp=navigator.userAgent,t2=zp.indexOf("Windows")>=0,n2=zp.indexOf("Macintosh")>=0,X7=(zp.indexOf("Macintosh")>=0||zp.indexOf("iPad")>=0||zp.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,i2=zp.indexOf("Linux")>=0,Nde=!0,$E=navigator.language,r2=$E;else if(typeof Ao=="object"){t2=Ao.platform==="win32",n2=Ao.platform==="darwin",i2=Ao.platform==="linux",i2&&!!Ao.env.SNAP&&Ao.env.SNAP_REVISION,$E=e2,r2=e2;const n=Ao.env.VSCODE_NLS_CONFIG;if(n)try{const e=JSON.parse(n),t=e.availableLanguages["*"];$E=e.locale,r2=t||e2,Kit=e._translationsConfigFile}catch{}Rde=!0}else console.error("Unable to resolve platform.");const Co=t2,sn=n2,Ws=i2,ju=Rde,Up=Nde,qu=X7,Yit=zp,Zit=r2,Xit=$E,Ade=(()=>{if(typeof yi.postMessage=="function"&&!yi.importScripts){let n=[];yi.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,r=n.length;i<r;i++){const o=n[i];if(o.id===t.data.vscodeScheduleAsyncWork){n.splice(i,1),o.callback();return}}});let e=0;return t=>{const i=++e;n.push({id:i,callback:t}),yi.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),Qit=function(){if(yi.setImmediate)return yi.setImmediate.bind(yi);if(typeof yi.postMessage=="function"&&!yi.importScripts)return Ade;if(typeof(Ao==null?void 0:Ao.nextTick)=="function")return Ao.nextTick.bind(Ao);const e=Promise.resolve();return t=>e.then(t)}(),oc=n2||X7?2:t2?1:3;let Ode=!0,Pde=!1;function Mde(){if(!Pde){Pde=!0;const n=new Uint8Array(2);n[0]=1,n[1]=2,Ode=new Uint16Array(n.buffer)[0]===(2<<8)+1}return Ode}const Fde="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Jit(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of Fde)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const Bde=Jit();function o2(n){let e=Bde;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}const ert={maxLen:1e3,windowSize:15,timeBudget:150};function s2(n,e,t,i,r=ert){if(t.length>r.maxLen){let c=n-r.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,n+r.maxLen/2),s2(n,e,t,i,r)}const o=Date.now(),s=n-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-o>=r.timeBudget);c++){const u=s-r.windowSize*c;e.lastIndex=Math.max(0,u);const d=trt(e,t,s,a);if(!d&&l||(l=d,u<=0))break;a=u}if(l){let c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function trt(n,e,t,i){let r;for(;r=n.exec(e);){const o=r.index||0;if(o<=t&&n.lastIndex>=t)return r;if(i>0&&o>i)return null}return null}function sc(n,e=0){return n[n.length-(1+e)]}function nrt(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function ac(n,e,t=(i,r)=>i===r){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,r=n.length;i<r;i++)if(!t(n[i],e[i]))return!1;return!0}function Q7(n,e,t){let i=0,r=n.length-1;for(;i<=r;){const o=(i+r)/2|0,s=t(n[o],e);if(s<0)i=o+1;else if(s>0)r=o-1;else return o}return-(i+1)}function $de(n,e){let t=0,i=n.length;if(i===0)return 0;for(;t<i;){const r=Math.floor((t+i)/2);e(n[r])?i=r:t=r+1}return t}function J7(n,e,t){if(n=n|0,n>=e.length)throw new TypeError("invalid index");let i=e[Math.floor(e.length*Math.random())],r=[],o=[],s=[];for(let a of e){const l=t(a,i);l<0?r.push(a):l>0?o.push(a):s.push(a)}return n<r.length?J7(n,r,t):n<r.length+s.length?s[0]:J7(n-(r.length+s.length),o,t)}function Wde(n,e){const t=[];let i;for(const r of n.slice(0).sort(e))!i||e(i[0],r)!==0?(i=[r],t.push(i)):i.push(r);return t}function yy(n){return n.filter(e=>!!e)}function Hde(n){return!Array.isArray(n)||n.length===0}function Wa(n){return Array.isArray(n)&&n.length>0}function cv(n,e=t=>t){const t=new Set;return n.filter(i=>{const r=e(i);return t.has(r)?!1:(t.add(r),!0)})}function irt(n,e){const t=rrt(n,e);if(t!==-1)return n[t]}function rrt(n,e){for(let t=n.length-1;t>=0;t--){const i=n[t];if(e(i))return t}return-1}function e$(n,e){return n.length>0?n[0]:e}function Vde(n){return[].concat(...n)}function Hs(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);const i=[];if(t<=e)for(let r=t;r<e;r++)i.push(r);else for(let r=t;r>e;r--)i.push(r);return i}function WE(n,e,t){const i=n.slice(0,e),r=n.slice(e);return i.concat(t,r)}function t$(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function a2(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function n$(n){return Array.isArray(n)?n:[n]}function ort(n,e,t){const i=Ude(n,e),r=n.length,o=t.length;n.length=r+o;for(let s=r-1;s>=i;s--)n[s+o]=n[s];for(let s=0;s<o;s++)n[s+i]=t[s]}function zde(n,e,t,i){const r=Ude(n,e),o=n.splice(r,t);return ort(n,r,i),o}function Ude(n,e){return e<0?Math.max(e+n.length,0):Math.min(e,n.length)}class Cy{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}function jde(n){return Array.isArray(n)}function lc(n){return typeof n=="string"}function fa(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function uv(n){return typeof n=="number"&&!isNaN(n)}function qde(n){return n===!0||n===!1}function Ha(n){return typeof n=="undefined"}function srt(n){return!Ll(n)}function Ll(n){return Ha(n)||n===null}function ei(n,e){if(!n)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function l2(n){if(Ll(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function c2(n){return typeof n=="function"}function art(n,e){const t=Math.min(n.length,e.length);for(let i=0;i<t;i++)lrt(n[i],e[i])}function lrt(n,e){if(lc(e)){if(typeof n!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(c2(e)){try{if(n instanceof e)return}catch{}if(!Ll(n)&&n.constructor===e||e.length===1&&e.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function crt(n){let e=[],t=Object.getPrototypeOf(n);for(;Object.prototype!==t;)e=e.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return e}function i$(n){const e=[];for(const t of crt(n))typeof n[t]=="function"&&e.push(t);return e}function urt(n,e){const t=r=>function(){const o=Array.prototype.slice.call(arguments,0);return e(r,o)};let i={};for(const r of n)i[r]=t(r);return i}function Va(n){return n===null?void 0:n}function Kde(n,e="Unreachable"){throw new Error(e)}function Vf(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;const e=Array.isArray(n)?[]:{};return Object.keys(n).forEach(t=>{n[t]&&typeof n[t]=="object"?e[t]=Vf(n[t]):e[t]=n[t]}),e}function drt(n){if(!n||typeof n!="object")return n;const e=[n];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(Gde.call(t,i)){const r=t[i];typeof r=="object"&&!Object.isFrozen(r)&&e.push(r)}}return n}const Gde=Object.prototype.hasOwnProperty;function hrt(n,e){return r$(n,e,new Set)}function r$(n,e,t){if(Ll(n))return n;const i=e(n);if(typeof i!="undefined")return i;if(jde(n)){const r=[];for(const o of n)r.push(r$(o,e,t));return r}if(fa(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);const r={};for(let o in n)Gde.call(n,o)&&(r[o]=r$(n[o],e,t));return t.delete(n),r}return n}function eh(n,e,t=!0){return fa(n)?(fa(e)&&Object.keys(e).forEach(i=>{i in n?t&&(fa(n[i])&&fa(e[i])?eh(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function tu(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t<n.length;t++)if(!tu(n[t],e[t]))return!1}else{const r=[];for(i in n)r.push(i);r.sort();const o=[];for(i in e)o.push(i);if(o.sort(),!tu(r,o))return!1;for(t=0;t<r.length;t++)if(!tu(n[r[t]],e[r[t]]))return!1}return!0}function th(n,e,t){const i=e(n);return typeof i=="undefined"?t:i}const jp=8;class Yde{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class frt{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class Zde{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Hr{constructor(e,t,i,r){this.id=e,this.name=t,this.defaultValue=i,this.schema=r}applyUpdate(e,t){return u2(e,t)}compute(e,t,i){return i}}class HE{constructor(e,t){this.newValue=e,this.didChange=t}}function u2(n,e){if(typeof n!="object"||typeof e!="object"||!n||!e)return new HE(e,n!==e);if(Array.isArray(n)||Array.isArray(e)){const i=Array.isArray(n)&&Array.isArray(e)&&ac(n,e);return new HE(e,i)}let t=!1;for(let i in e)if(e.hasOwnProperty(i)){const r=u2(n[i],e[i]);r.didChange&&(n[i]=r.newValue,t=!0)}return new HE(n,t)}class wy{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}applyUpdate(e,t){return u2(e,t)}validate(e){return this.defaultValue}}class dv{constructor(e,t,i,r){this.id=e,this.name=t,this.defaultValue=i,this.schema=r}applyUpdate(e,t){return u2(e,t)}validate(e){return typeof e=="undefined"?this.defaultValue:e}compute(e,t,i){return i}}function Dt(n,e){return typeof n=="undefined"?e:n==="false"?!1:Boolean(n)}class mn extends dv{constructor(e,t,i,r=void 0){typeof r!="undefined"&&(r.type="boolean",r.default=i);super(e,t,i,r)}validate(e){return Dt(e,this.defaultValue)}}function o$(n,e,t,i){if(typeof n=="undefined")return e;let r=parseInt(n,10);return isNaN(r)?e:(r=Math.max(t,r),r=Math.min(i,r),r|0)}class Ci extends dv{constructor(e,t,i,r,o,s=void 0){typeof s!="undefined"&&(s.type="integer",s.default=i,s.minimum=r,s.maximum=o);super(e,t,i,s);this.minimum=r,this.maximum=o}static clampedInt(e,t,i,r){return o$(e,t,i,r)}validate(e){return Ci.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class nh extends dv{constructor(e,t,i,r,o){typeof o!="undefined"&&(o.type="number",o.default=i);super(e,t,i,o);this.validationFn=r}static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e=="undefined")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(nh.float(e,this.defaultValue))}}class za extends dv{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,r=void 0){typeof r!="undefined"&&(r.type="string",r.default=i);super(e,t,i,r)}validate(e){return za.string(e,this.defaultValue)}}function ga(n,e,t){return typeof n!="string"||t.indexOf(n)===-1?e:n}class kr extends dv{constructor(e,t,i,r,o=void 0){typeof o!="undefined"&&(o.type="string",o.enum=r,o.default=i);super(e,t,i,o);this._allowedValues=r}validate(e){return ga(e,this.defaultValue,this._allowedValues)}}class VE extends Hr{constructor(e,t,i,r,o,s,a=void 0){typeof a!="undefined"&&(a.type="string",a.enum=o,a.default=r);super(e,t,i,a);this._allowedValues=o,this._convert=s}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function grt(n){switch(n){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class prt extends Hr{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[L("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),L("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),L("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:L("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class mrt extends Hr{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:L("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:L("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Dt(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Dt(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function _rt(n){switch(n){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var wo;(function(n){n[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin"})(wo||(wo={}));function vrt(n){switch(n){case"line":return wo.Line;case"block":return wo.Block;case"underline":return wo.Underline;case"line-thin":return wo.LineThin;case"block-outline":return wo.BlockOutline;case"underline-thin":return wo.UnderlineThin}}class brt extends wy{constructor(){super(127,[65,33])}compute(e,t,i){const r=["monaco-editor"];return t.get(33)&&r.push(t.get(33)),e.extraEditorClassName&&r.push(e.extraEditorClassName),t.get(65)==="default"?r.push("mouse-default"):t.get(65)==="copy"&&r.push("mouse-copy"),t.get(99)&&r.push("showUnused"),t.get(125)&&r.push("showDeprecated"),r.join(" ")}}class yrt extends mn{constructor(){super(32,"emptySelectionClipboard",!0,{description:L("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class Crt extends Hr{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:L("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[L("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),L("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),L("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:L("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[L("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),L("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),L("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:L("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:L("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:sn},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:L("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:L("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Dt(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":ga(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":ga(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Dt(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Dt(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Dt(t.loop,this.defaultValue.loop)}}}class Tl extends Hr{constructor(){super(44,"fontLigatures",Tl.OFF,{anyOf:[{type:"boolean",description:L("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:L("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:L("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e=="undefined"?this.defaultValue:typeof e=="string"?e==="false"?Tl.OFF:e==="true"?Tl.ON:e:Boolean(e)?Tl.ON:Tl.OFF}}Tl.OFF='"liga" off, "calt" off',Tl.ON='"liga" on, "calt" on';class wrt extends wy{constructor(){super(43)}compute(e,t,i){return e.fontInfo}}class Srt extends dv{constructor(){super(45,"fontSize",is.fontSize,{type:"number",minimum:6,maximum:100,default:is.fontSize,description:L("fontSize","Controls the font size in pixels.")})}validate(e){let t=nh.float(e,this.defaultValue);return t===0?is.fontSize:nh.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class ih extends Hr{constructor(){super(46,"fontWeight",is.fontWeight,{anyOf:[{type:"number",minimum:ih.MINIMUM_VALUE,maximum:ih.MAXIMUM_VALUE,errorMessage:L("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:ih.SUGGESTION_VALUES}],default:is.fontWeight,description:L("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Ci.clampedInt(e,is.fontWeight,ih.MINIMUM_VALUE,ih.MAXIMUM_VALUE))}}ih.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],ih.MINIMUM_VALUE=1,ih.MAXIMUM_VALUE=1e3;class xrt extends Hr{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[L("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),L("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),L("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(50,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:L("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:L("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:L("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:L("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:L("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:L("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:L("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:L("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:L("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:L("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:L("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,r,o,s;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:ga(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:ga(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:ga(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(r=a.multipleDeclarations)!==null&&r!==void 0?r:ga(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:ga(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(s=a.multipleReferences)!==null&&s!==void 0?s:ga(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:za.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:za.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:za.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:za.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:za.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Ert extends Hr{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:L("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:L("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:L("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:L("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Dt(t.enabled,this.defaultValue.enabled),delay:Ci.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Dt(t.sticky,this.defaultValue.sticky),above:Dt(t.above,this.defaultValue.above)}}}class Sy extends wy{constructor(){super(130,[49,57,37,64,91,59,60,93,117,120,121,122,2])}compute(e,t,i){return Sy.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,r=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/r);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:r,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,r=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*r),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:r};const s=t.stableMinimapLayoutInput,a=s&&e.outerHeight===s.outerHeight&&e.lineHeight===s.lineHeight&&e.typicalHalfwidthCharacterWidth===s.typicalHalfwidthCharacterWidth&&e.pixelRatio===s.pixelRatio&&e.scrollBeyondLastLine===s.scrollBeyondLastLine&&e.minimap.enabled===s.minimap.enabled&&e.minimap.side===s.minimap.side&&e.minimap.size===s.minimap.size&&e.minimap.showSlider===s.minimap.showSlider&&e.minimap.renderCharacters===s.minimap.renderCharacters&&e.minimap.maxColumn===s.minimap.maxColumn&&e.minimap.scale===s.minimap.scale&&e.verticalScrollbarWidth===s.verticalScrollbarWidth&&e.isViewportWrapping===s.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,u=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let h=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,p=e.minimap.side,m=e.verticalScrollbarWidth,v=e.viewLineCount,_=e.remainingWidth,y=e.isViewportWrapping,b=d?2:3;let w=Math.floor(o*r);const x=w/o;let S=!1,k=!1,T=b*h,D=h/o,R=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:M,extraLinesBeyondLastLine:W,desiredRatio:j,minimapLineCount:$}=Sy.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:u,height:r,lineHeight:l,pixelRatio:o});if(v/$>1)S=!0,k=!0,h=1,T=1,D=h/o;else{let ee=!1,ge=h+1;if(g==="fit"){const _e=Math.ceil((v+W)*T);y&&a&&_<=t.stableFitRemainingWidth?(ee=!0,ge=t.stableFitMaxMinimapScale):ee=_e>w}if(g==="fill"||ee){S=!0;const _e=h;T=Math.min(l*o,Math.max(1,Math.floor(1/j))),y&&a&&_<=t.stableFitRemainingWidth&&(ge=t.stableFitMaxMinimapScale),h=Math.min(ge,Math.max(1,Math.floor(T/b))),h>_e&&(R=Math.min(2,h/_e)),D=h/o/R,w=Math.ceil(Math.max(M,v+W)*T),y?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const N=Math.floor(f*D),A=Math.min(N,Math.max(0,Math.floor((_-m-2)*D/(c+D)))+jp);let V=Math.floor(o*A);const P=V/o;V=Math.floor(V*R);const U=d?1:2,F=p==="left"?0:i-A-m;return{renderMinimap:U,minimapLeft:F,minimapWidth:A,minimapHeightIsEditorHeight:S,minimapIsSampling:k,minimapScale:h,minimapLineHeight:T,minimapCanvasInnerWidth:V,minimapCanvasInnerHeight:w,minimapCanvasOuterWidth:P,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const i=t.outerWidth|0,r=t.outerHeight|0,o=t.lineHeight|0,s=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,u=t.viewLineCount,d=e.get(122),h=d==="inherit"?e.get(121):d,f=h==="inherit"?e.get(117):h,g=e.get(120),p=e.get(2),m=t.isDominatedByLongLines,v=e.get(49),_=e.get(59).renderType!==0,y=e.get(60),b=e.get(93),w=e.get(64),x=e.get(91),S=x.verticalScrollbarSize,k=x.verticalHasArrows,T=x.arrowSize,D=x.horizontalScrollbarSize,R=e.get(57),N=e.get(37);let A;if(typeof R=="string"&&/^\d+(\.\d+)?ch$/.test(R)){const se=parseFloat(R.substr(0,R.length-2));A=Ci.clampedInt(se*a,0,0,1e3)}else A=Ci.clampedInt(R,0,0,1e3);N&&(A+=16);let V=0;if(_){const se=Math.max(s,y);V=Math.round(se*l)}let P=0;v&&(P=o);let U=0,F=U+P,M=F+V,W=M+A;const j=i-P-V-A;let $=!1,Q=!1,ee=-1;p!==2&&(h==="inherit"&&m?($=!0,Q=!0):f==="on"||f==="bounded"?Q=!0:f==="wordWrapColumn"&&(ee=g));const ge=Sy._computeMinimapLayout({outerWidth:i,outerHeight:r,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:b,minimap:w,verticalScrollbarWidth:S,viewLineCount:u,remainingWidth:j,isViewportWrapping:Q},t.memory||new Zde);ge.renderMinimap!==0&&ge.minimapLeft===0&&(U+=ge.minimapWidth,F+=ge.minimapWidth,M+=ge.minimapWidth,W+=ge.minimapWidth);const _e=j-ge.minimapWidth,Ie=Math.max(1,Math.floor((_e-S-2)/a)),K=k?T:0;return Q&&(ee=Math.max(1,Ie),f==="bounded"&&(ee=Math.min(ee,g))),{width:i,height:r,glyphMarginLeft:U,glyphMarginWidth:P,lineNumbersLeft:F,lineNumbersWidth:V,decorationsLeft:M,decorationsWidth:A,contentLeft:W,contentWidth:_e,minimap:ge,viewportColumn:Ie,isWordWrapMinified:$,isViewportWrapping:Q,wrappingColumn:ee,verticalScrollbarWidth:S,horizontalScrollbarHeight:D,overviewRuler:{top:K,width:S,height:r-2*K,right:0}}}}class krt extends Hr{constructor(){const e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:L("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Dt(e.enabled,this.defaultValue.enabled)}}}class Lrt extends Hr{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(126,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:L("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:L("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:L("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Dt(t.enabled,this.defaultValue.enabled),fontSize:Ci.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:za.string(t.fontFamily,this.defaultValue.fontFamily)}}}class Trt extends nh{constructor(){super(58,"lineHeight",is.lineHeight,e=>nh.clamp(e,0,150),{markdownDescription:L("lineHeight",`Controls the line height.
|
|
914
914
|
- Use 0 to automatically compute the line height from the font size.
|
|
915
915
|
- Values between 0 and 8 will be used as a multiplier with the font size.
|
|
916
916
|
- Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class Drt extends Hr{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(64,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:L("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[L("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),L("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),L("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:L("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:L("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:L("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:L("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:L("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:L("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Dt(t.enabled,this.defaultValue.enabled),size:ga(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:ga(t.side,this.defaultValue.side,["right","left"]),showSlider:ga(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Dt(t.renderCharacters,this.defaultValue.renderCharacters),scale:Ci.clampedInt(t.scale,1,1,3),maxColumn:Ci.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function Irt(n){return n==="ctrlCmd"?sn?"metaKey":"ctrlKey":"altKey"}class Rrt extends Hr{constructor(){super(74,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:L("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:L("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Ci.clampedInt(t.top,0,0,1e3),bottom:Ci.clampedInt(t.bottom,0,0,1e3)}}}class Nrt extends Hr{constructor(){const e={enabled:!0,cycle:!1};super(75,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:L("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:L("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Dt(t.enabled,this.defaultValue.enabled),cycle:Dt(t.cycle,this.defaultValue.cycle)}}}class Art extends wy{constructor(){super(128)}compute(e,t,i){return e.pixelRatio}}class Ort extends Hr{constructor(){const e={other:!0,comments:!1,strings:!1};super(78,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:L("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:L("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:L("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:L("quickSuggestions","Controls whether suggestions should automatically show up while typing.")});this.defaultValue=e}validate(e){if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const t=e,i={other:Dt(t.other,this.defaultValue.other),comments:Dt(t.comments,this.defaultValue.comments),strings:Dt(t.strings,this.defaultValue.strings)};return i.other&&i.comments&&i.strings?!0:!i.other&&!i.comments&&!i.strings?!1:i}return this.defaultValue}}class Prt extends Hr{constructor(){super(59,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[L("lineNumbers.off","Line numbers are not rendered."),L("lineNumbers.on","Line numbers are rendered as absolute number."),L("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),L("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:L("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e!="undefined"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function s$(n){const e=n.get(86);return e==="editable"?n.get(80):e!=="on"}class Mrt extends Hr{constructor(){const e=[],t={type:"number",description:L("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(90,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:L("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:L("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){let t=[];for(let i of e)if(typeof i=="number")t.push({column:Ci.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const r=i;t.push({column:Ci.clampedInt(r.column,0,0,1e4),color:r.color})}return t.sort((i,r)=>i.column-r.column),t}return this.defaultValue}}function Xde(n,e){if(typeof n!="string")return e;switch(n){case"hidden":return 2;case"visible":return 3;default:return 1}}class Frt extends Hr{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(91,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[L("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),L("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),L("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:L("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[L("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),L("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),L("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:L("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:L("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:L("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:L("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=Ci.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),r=Ci.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Ci.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Xde(t.vertical,this.defaultValue.vertical),horizontal:Xde(t.horizontal,this.defaultValue.horizontal),useShadows:Dt(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:Dt(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Dt(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Dt(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Dt(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Ci.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:r,verticalSliderSize:Ci.clampedInt(t.verticalSliderSize,r,0,1e3),scrollByPage:Dt(t.scrollByPage,this.defaultValue.scrollByPage)}}}const rh="inUntrustedWorkspace",oh={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments"};class Brt extends Hr{constructor(){const e={nonBasicASCII:rh,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:rh,allowedCharacters:{}};super(112,"unicodeHighlight",e,{[oh.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,rh],default:e.nonBasicASCII,description:L("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[oh.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:L("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[oh.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:L("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[oh.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,rh],default:e.includeComments,description:L("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to unicode highlighting.")},[oh.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:L("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&(tu(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0));const r=super.applyUpdate(e,t);return i?new HE(r.newValue,!0):r}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:d2(t.nonBasicASCII,rh,[!0,!1,rh]),invisibleCharacters:Dt(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Dt(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:d2(t.includeComments,rh,[!0,!1,rh]),allowedCharacters:this.validateAllowedCharacters(e.allowedCharacters,this.defaultValue.allowedCharacters)}}validateAllowedCharacters(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[r,o]of Object.entries(e))o===!0&&(i[r]=!0);return i}}class $rt extends Hr{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(54,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:L("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Dt(t.enabled,this.defaultValue.enabled),mode:ga(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class Wrt extends Hr{constructor(){const e={enabled:Ss.bracketPairColorizationOptions.enabled};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,description:L("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use 'workbench.colorCustomizations' to override the bracket highlight colors.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Dt(e.enabled,this.defaultValue.enabled)}}}class Hrt extends Hr{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[L("editor.guides.bracketPairs.true","Enables bracket pair guides."),L("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),L("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:L("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[L("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),L("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),L("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:L("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:L("editor.guides.highlightActiveBracketPair","Controls whether bracket pair guides are enabled or not.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:L("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:"boolean",default:e.highlightActiveIndentation,description:L("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:d2(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:d2(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Dt(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Dt(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Dt(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation)}}}function d2(n,e,t){const i=t.indexOf(n);return i===-1?e:t[i]}class Vrt extends Hr{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(105,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[L("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),L("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:L("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:L("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:L("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:L("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:L("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:L("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:L("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:L("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:L("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:L("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:L("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:L("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:ga(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Dt(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Dt(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Dt(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Dt(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:Dt(t.showIcons,this.defaultValue.showIcons),showStatusBar:Dt(t.showStatusBar,this.defaultValue.showStatusBar),preview:Dt(t.preview,this.defaultValue.preview),previewMode:ga(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Dt(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Dt(t.showMethods,this.defaultValue.showMethods),showFunctions:Dt(t.showFunctions,this.defaultValue.showFunctions),showConstructors:Dt(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:Dt(t.showDeprecated,this.defaultValue.showDeprecated),showFields:Dt(t.showFields,this.defaultValue.showFields),showVariables:Dt(t.showVariables,this.defaultValue.showVariables),showClasses:Dt(t.showClasses,this.defaultValue.showClasses),showStructs:Dt(t.showStructs,this.defaultValue.showStructs),showInterfaces:Dt(t.showInterfaces,this.defaultValue.showInterfaces),showModules:Dt(t.showModules,this.defaultValue.showModules),showProperties:Dt(t.showProperties,this.defaultValue.showProperties),showEvents:Dt(t.showEvents,this.defaultValue.showEvents),showOperators:Dt(t.showOperators,this.defaultValue.showOperators),showUnits:Dt(t.showUnits,this.defaultValue.showUnits),showValues:Dt(t.showValues,this.defaultValue.showValues),showConstants:Dt(t.showConstants,this.defaultValue.showConstants),showEnums:Dt(t.showEnums,this.defaultValue.showEnums),showEnumMembers:Dt(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Dt(t.showKeywords,this.defaultValue.showKeywords),showWords:Dt(t.showWords,this.defaultValue.showWords),showColors:Dt(t.showColors,this.defaultValue.showColors),showFiles:Dt(t.showFiles,this.defaultValue.showFiles),showReferences:Dt(t.showReferences,this.defaultValue.showReferences),showFolders:Dt(t.showFolders,this.defaultValue.showFolders),showTypeParameters:Dt(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Dt(t.showSnippets,this.defaultValue.showSnippets),showUsers:Dt(t.showUsers,this.defaultValue.showUsers),showIssues:Dt(t.showIssues,this.defaultValue.showIssues)}}}class zrt extends Hr{constructor(){super(101,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:L("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Dt(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class Urt extends wy{constructor(){super(129,[80])}compute(e,t,i){return t.get(80)?!0:e.tabFocusMode}}function jrt(n){switch(n){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class qrt extends wy{constructor(){super(131,[130])}compute(e,t,i){const r=t.get(130);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:r.isWordWrapMinified,isViewportWrapping:r.isViewportWrapping,wrappingColumn:r.wrappingColumn}}}const is={fontFamily:sn?"Menlo, Monaco, 'Courier New', monospace":Ws?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:sn?12:14,lineHeight:0,letterSpacing:0},Ss={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!1}},hv=[];function Ge(n){return hv[n.id]=n,n}const Ku={acceptSuggestionOnCommitCharacter:Ge(new mn(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:L("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Ge(new kr(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",L("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:L("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Ge(new prt),accessibilityPageSize:Ge(new Ci(3,"accessibilityPageSize",10,1,1073741824,{description:L("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:Ge(new za(4,"ariaLabel",L("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:Ge(new kr(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",L("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),L("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:L("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:Ge(new kr(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",L("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:L("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Ge(new kr(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",L("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:L("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Ge(new kr(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",L("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),L("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:L("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Ge(new VE(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],grt,{enumDescriptions:[L("editor.autoIndent.none","The editor will not insert indentation automatically."),L("editor.autoIndent.keep","The editor will keep the current line's indentation."),L("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),L("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),L("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:L("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Ge(new mn(10,"automaticLayout",!1)),autoSurround:Ge(new kr(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[L("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),L("editor.autoSurround.quotes","Surround with quotes but not brackets."),L("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:L("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Ge(new Wrt),bracketPairGuides:Ge(new Hrt),stickyTabStops:Ge(new mn(103,"stickyTabStops",!1,{description:L("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Ge(new mn(14,"codeLens",!0,{description:L("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Ge(new za(15,"codeLensFontFamily","",{description:L("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:Ge(new Ci(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:L("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, 90% of `#editor.fontSize#` is used.")})),colorDecorators:Ge(new mn(17,"colorDecorators",!0,{description:L("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:Ge(new mn(18,"columnSelection",!1,{description:L("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:Ge(new mrt),contextmenu:Ge(new mn(20,"contextmenu",!0)),copyWithSyntaxHighlighting:Ge(new mn(21,"copyWithSyntaxHighlighting",!0,{description:L("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Ge(new VE(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],_rt,{description:L("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:Ge(new mn(23,"cursorSmoothCaretAnimation",!1,{description:L("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Ge(new VE(24,"cursorStyle",wo.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],vrt,{description:L("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:Ge(new Ci(25,"cursorSurroundingLines",0,0,1073741824,{description:L("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Ge(new kr(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[L("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),L("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:L("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:Ge(new Ci(27,"cursorWidth",0,0,1073741824,{markdownDescription:L("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Ge(new mn(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:Ge(new mn(29,"disableMonospaceOptimizations",!1)),domReadOnly:Ge(new mn(30,"domReadOnly",!1)),dragAndDrop:Ge(new mn(31,"dragAndDrop",!0,{description:L("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Ge(new yrt),extraEditorClassName:Ge(new za(33,"extraEditorClassName","")),fastScrollSensitivity:Ge(new nh(34,"fastScrollSensitivity",5,n=>n<=0?5:n,{markdownDescription:L("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:Ge(new Crt),fixedOverflowWidgets:Ge(new mn(36,"fixedOverflowWidgets",!1)),folding:Ge(new mn(37,"folding",!0,{description:L("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:Ge(new kr(38,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[L("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),L("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:L("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:Ge(new mn(39,"foldingHighlight",!0,{description:L("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Ge(new mn(40,"foldingImportsByDefault",!1,{description:L("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),unfoldOnClickAfterEndOfLine:Ge(new mn(41,"unfoldOnClickAfterEndOfLine",!1,{description:L("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Ge(new za(42,"fontFamily",is.fontFamily,{description:L("fontFamily","Controls the font family.")})),fontInfo:Ge(new wrt),fontLigatures2:Ge(new Tl),fontSize:Ge(new Srt),fontWeight:Ge(new ih),formatOnPaste:Ge(new mn(47,"formatOnPaste",!1,{description:L("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Ge(new mn(48,"formatOnType",!1,{description:L("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Ge(new mn(49,"glyphMargin",!0,{description:L("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Ge(new xrt),hideCursorInOverviewRuler:Ge(new mn(51,"hideCursorInOverviewRuler",!1,{description:L("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:Ge(new Ert),inDiffEditor:Ge(new mn(53,"inDiffEditor",!1)),letterSpacing:Ge(new nh(55,"letterSpacing",is.letterSpacing,n=>nh.clamp(n,-5,20),{description:L("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:Ge(new krt),lineDecorationsWidth:Ge(new dv(57,"lineDecorationsWidth",10)),lineHeight:Ge(new Trt),lineNumbers:Ge(new Prt),lineNumbersMinChars:Ge(new Ci(60,"lineNumbersMinChars",5,1,300)),linkedEditing:Ge(new mn(61,"linkedEditing",!1,{description:L("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:Ge(new mn(62,"links",!0,{description:L("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Ge(new kr(63,"matchBrackets","always",["always","near","never"],{description:L("matchBrackets","Highlight matching brackets.")})),minimap:Ge(new Drt),mouseStyle:Ge(new kr(65,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Ge(new nh(66,"mouseWheelScrollSensitivity",1,n=>n===0?1:n,{markdownDescription:L("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Ge(new mn(67,"mouseWheelZoom",!1,{markdownDescription:L("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Ge(new mn(68,"multiCursorMergeOverlapping",!0,{description:L("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Ge(new VE(69,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],Irt,{markdownEnumDescriptions:[L("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),L("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:L({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Ge(new kr(70,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[L("multiCursorPaste.spread","Each cursor pastes a single line of the text."),L("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:L("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:Ge(new mn(71,"occurrencesHighlight",!0,{description:L("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:Ge(new mn(72,"overviewRulerBorder",!0,{description:L("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Ge(new Ci(73,"overviewRulerLanes",3,0,3)),padding:Ge(new Rrt),parameterHints:Ge(new Nrt),peekWidgetDefaultFocus:Ge(new kr(76,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[L("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),L("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:L("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:Ge(new mn(77,"definitionLinkOpensInPeek",!1,{description:L("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Ge(new Ort),quickSuggestionsDelay:Ge(new Ci(79,"quickSuggestionsDelay",10,0,1073741824,{description:L("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Ge(new mn(80,"readOnly",!1)),renameOnType:Ge(new mn(81,"renameOnType",!1,{description:L("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:L("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Ge(new mn(82,"renderControlCharacters",!0,{description:L("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Ge(new mn(83,"renderFinalNewline",!0,{description:L("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:Ge(new kr(84,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",L("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:L("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Ge(new mn(85,"renderLineHighlightOnlyWhenFocus",!1,{description:L("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Ge(new kr(86,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Ge(new kr(87,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",L("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),L("renderWhitespace.selection","Render whitespace characters only on selected text."),L("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:L("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Ge(new Ci(88,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:Ge(new mn(89,"roundedSelection",!0,{description:L("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:Ge(new Mrt),scrollbar:Ge(new Frt),scrollBeyondLastColumn:Ge(new Ci(92,"scrollBeyondLastColumn",5,0,1073741824,{description:L("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Ge(new mn(93,"scrollBeyondLastLine",!0,{description:L("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Ge(new mn(94,"scrollPredominantAxis",!0,{description:L("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Ge(new mn(95,"selectionClipboard",!0,{description:L("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Ws})),selectionHighlight:Ge(new mn(96,"selectionHighlight",!0,{description:L("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Ge(new mn(97,"selectOnLineNumbers",!0)),showFoldingControls:Ge(new kr(98,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[L("showFoldingControls.always","Always show the folding controls."),L("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:L("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:Ge(new mn(99,"showUnused",!0,{description:L("showUnused","Controls fading out of unused code.")})),showDeprecated:Ge(new mn(125,"showDeprecated",!0,{description:L("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:Ge(new Lrt),snippetSuggestions:Ge(new kr(100,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[L("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),L("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),L("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),L("snippetSuggestions.none","Do not show snippet suggestions.")],description:L("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Ge(new zrt),smoothScrolling:Ge(new mn(102,"smoothScrolling",!1,{description:L("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Ge(new Ci(104,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Ge(new Vrt),inlineSuggest:Ge(new $rt),suggestFontSize:Ge(new Ci(106,"suggestFontSize",0,0,1e3,{markdownDescription:L("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:Ge(new Ci(107,"suggestLineHeight",0,0,1e3,{markdownDescription:L("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used. The minimum value is 8.")})),suggestOnTriggerCharacters:Ge(new mn(108,"suggestOnTriggerCharacters",!0,{description:L("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Ge(new kr(109,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[L("suggestSelection.first","Always select the first suggestion."),L("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),L("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:L("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Ge(new kr(110,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[L("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),L("tabCompletion.off","Disable tab completions."),L("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:L("tabCompletion","Enables tab completions.")})),tabIndex:Ge(new Ci(111,"tabIndex",0,-1,1073741824)),unicodeHighlight:Ge(new Brt),unusualLineTerminators:Ge(new kr(113,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[L("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),L("unusualLineTerminators.off","Unusual line terminators are ignored."),L("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:L("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:Ge(new mn(114,"useShadowDOM",!0)),useTabStops:Ge(new mn(115,"useTabStops",!0,{description:L("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:Ge(new za(116,"wordSeparators",Fde,{description:L("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Ge(new kr(117,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[L("wordWrap.off","Lines will never wrap."),L("wordWrap.on","Lines will wrap at the viewport width."),L({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),L({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:L({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Ge(new za(118,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:Ge(new za(119,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:Ge(new Ci(120,"wordWrapColumn",80,1,1073741824,{markdownDescription:L({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Ge(new kr(121,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Ge(new kr(122,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:Ge(new VE(123,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],jrt,{enumDescriptions:[L("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),L("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),L("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),L("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:L("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:Ge(new kr(124,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[L("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),L("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:L("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:Ge(new brt),pixelRatio:Ge(new Art),tabFocusMode:Ge(new Urt),layoutInfo:Ge(new Sy),wrappingInfo:Ge(new qrt)};class Krt{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?new Error(e.message+`
|
|
@@ -2180,7 +2180,7 @@ ${JSON.stringify(v,void 0,4)}`)});else if(f.changes)for(const v of Object.keys(f
|
|
|
2180
2180
|
importScripts('${e}/assets/css.worker.js');`)}`:i==="html"||i==="handlebars"||i==="razor"?`data:text/javascript;charset=utf-8,${encodeURIComponent(`
|
|
2181
2181
|
importScripts('${e}/assets/html.worker.js');`)}`:i==="typescript"||i==="javascript"?`data:text/javascript;charset=utf-8,${encodeURIComponent(`
|
|
2182
2182
|
importScripts('${e}/assets/ts.worker.js');`)}`:`data:text/javascript;charset=utf-8,${encodeURIComponent(`
|
|
2183
|
-
importScripts('${e}/assets/editor.worker.js');`)}`}}:self.MonacoEnvironment={globalAPI:!0,getWorker(t,i){return i==="json"?new yNt:i==="css"||i==="scss"||i==="less"?new CNt:i==="html"||i==="handlebars"||i==="razor"?new wNt:i==="typescript"||i==="javascript"?new SNt:new bNt}}}invertOperation(e,t){e.invert(t)}applyOperation(e){this.ignoreNextChange=!0,console.log("change from server"),this.applyOperationToMonaco(e),this.ignoreNextChange=!1}applyOperationToMonaco(e,t=!1){const{ops:i}=e,r=this.editor.getModel();let o=0;const s=[];for(let a=0;a<i.length;a++){const l=i[a];if(Zd.isRetain(l))o+=l;else if(Zd.isInsert(l)){const c=r.getPositionAt(o);s.push({forceMoveMarkers:!0,range:new UC(c.lineNumber,c.column,c.lineNumber,c.column),text:l})}else if(Zd.isDelete(l)){const c=r.getPositionAt(o),u=r.getPositionAt(o-l);s.push({forceMoveMarkers:!1,range:new UC(c.lineNumber,c.column,u.lineNumber,u.column),text:null}),o-=l}}t?r.pushEditOperations([],s,null):r.applyEdits(s),this.liveOperationCode=this.getCode()}getCursor(){var s,a,l,c;let e=this.editor.getSelection();(typeof e=="undefined"||e===null)&&(e=this.lastCursorRange);const t=e.getStartPosition(),i=e.getEndPosition();let r=(a=(s=this.editor)==null?void 0:s.getModel())==null?void 0:a.getOffsetAt(t),o=(c=(l=this.editor)==null?void 0:l.getModel())==null?void 0:c.getOffsetAt(i);if(r>o){const u=[o,r];r=u[0],o=u[1]}return new rY(r,o)}}Jl(n=>({cursor:{},setCursor:e=>n(t=>({cursor:e}))}));const oY=Jl(n=>({fileTreeStack:[],setFileTreeStack:e=>n(()=>({fileTreeStack:e}))}));class sY{localSetFileTreeStack(e){oY.getState().setFileTreeStack(e)}static get fileTreeStack(){const e=oY.getState().fileTreeStack;return console.log(e),e}static setFileTreeStack(e){return oY.getState().setFileTreeStack(e)}static updateModel({value:e,path:t,language:i,APP_DIR:r},o,s=!1){let a=Sg.getModels().find(l=>l.uri.path.includes(t));!a&&!!s&&(a=Sg.createModel(e,i,_j.parse(`file://${r}${t}`)),this.setFileTreeStack([...this.fileTreeStack,{label:t,path:t,model:a}])),s&&(a==null||a.setValue(e)),o&&o(a)}}Qi(sY,"EditorData");class LNt{constructor(e,t){Qi(this,"clientList");Qi(this,"tempCursors");this.editor=e,this.model=e.getModel(),this.renderCursorGroup="",this.tempCursors=[],this.labelGroup=[],this.clientList=[],this.updateList(t)}updateModel(){this.model=this.editor.getModel()}set _updateList(e){this.clientList=e,this.setCursors()}updateList(e){this._updateList=e}pushSelectionToList(e){this.clientList.some(i=>i.uuid===e.uuid)?this.clientList=this.clientList.map(i=>ot(Te({},i),{selection:i.uuid===e.uuid?e.selection:i.selection})):this.clientList.push(e),this.setSelection()}pushCursorToList(e){this.clientList.some(i=>i.uuid===e.uuid)?this.clientList=this.clientList.map(i=>ot(Te({},i),{cursor:i.uuid===e.uuid?e.cursor:i.cursor})):this.clientList.push(e),this.setCursors()}setCursors(){const e=this.editor.getModel();if(!e)return;const t={firstArg:[],secondArg:[]};t.firstArg=this.renderCursorGroup?this.renderCursorGroup:this.clientList.map(i=>i.role),t.secondArg=this.clientList.map(i=>{const{cursor:r}=i;if(r){const o=e.getPositionAt(r.position),s=e.getPositionAt(r.selectionEnd);return{range:new UC(o.lineNumber,o.column,s.lineNumber,s.column),options:{className:Yt.getState().doc.path===r.path?i.role:""}}}else return{range:new UC(0,0,0,0),options:{className:""}}}),this.renderCursorGroup=this.editor.deltaDecorations(t.firstArg,t.secondArg),this.setLabels()}removeCursor(e){}setSelection(){}removeSelection(e){}setLabels(){const e=this.editor.getModel();this.clientList=this.clientList.map(t=>{var s,a;const r=t.cursor!==void 0&&t.cursor.position!==void 0?e.getPositionAt(t.cursor.position):{lineNumber:1,column:1},o=ot(Te({},t.label),{domNode:null,getId:function(){return`label-${t.uuid}`},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.className=`monaco-label ${t.role}-label no-cursor`,this.domNode.innerHTML=t.username,this.domNode.style.background=t.color),this.domNode},getPosition:function(){return{position:{lineNumber:r.lineNumber,column:r.column},preference:[Sg.ContentWidgetPositionPreference.ABOVE,Sg.ContentWidgetPositionPreference.BELOW]}}});if(this.editor._contentWidgets[`label-${t.uuid}`]){this.editor.layoutContentWidget(o);const l=document.querySelector(`.${t.role}-label`);((s=t==null?void 0:t.cursor)==null?void 0:s.path)&&Yt.getState().doc.path===((a=t==null?void 0:t.cursor)==null?void 0:a.path)?l==null||l.classList.remove("no-cursor"):l==null||l.classList.add("no-cursor")}else this.editor.addContentWidget(o);return ot(Te({},t),{contentWidget:o})})}}const aY="/home/runner/app";let ef;const lY=new Map,kwe=Jl(n=>({cursor:{},setCursor:e=>n(t=>({cursor:e}))})),Wg=new kl(0),cY=[],TNt=({doc:n,containerStyle:e,menuStyle:t,editorStyle:i,serviceWorkerOrigin:r,useLsp:o})=>{const s=O.exports.useRef(null),[a,l]=O.exports.useState(null),[c,u]=O.exports.useState(null),[d,h]=O.exports.useState(null),{setCRDTInfo:f,setAsyncType:g,switchDoc:p}=Yt.getState(),m=Yt(P=>P.CRDTInfo),v=Yt(P=>P.CRDTInfo.file),_=Yt(P=>P.doc),y=sa(P=>P.userList),b=Mu(P=>P.userInfo),w=Yr(P=>P.socket);ec.exports.debounce(P=>{P()},300);const x=P=>{const{CRDTInfo:U,setCRDTInfo:F}=Yt.getState();F(ot(Te({},U),{file:{action:"Get",value:P.getValue(),path:P.uri.path.replace(aY,"")}})),p({value:P.getValue(),path:P.uri.path.replace(aY,"")})};Wg.sendOperation=(P,U)=>{if(Yt.getState().appStatus==="replay")return;const{userInfo:F}=Mu.getState(),{doc:M,switchDoc:W}=Yt.getState();let j;(M==null?void 0:M.path)?j=M.path:(j=`temp-${cY.length+1}`,W({path:`temp-${cY.length+1}`}),cY.push(j));const $={timestamp:Date.now(),userInfo:ec.exports.pick(F,["role","uuid"]),cursor:ot(Te({},a.getCursor()),{path:j}),editor:{operation:U,revision:P,evtType:"Editor"},file:{action:"Update",path:j}};w==null||w.emit("editFile",JSON.stringify($))},Wg.applyOperation=P=>{a.applyOperation(P)};const S=P=>{Wg.applyClient(P)},k=P=>{Yt.getState()},T=P=>{if(!P||(P==null?void 0:P.reason)===0&&(P==null?void 0:P.source)==="keyboard")return;const U=a.getCursor();kwe.getState().setCursor(U),D(U)},D=P=>{var F,M;const U={timestamp:Date.now(),cursor:P||kwe.getState().cursor,file:{action:"Update",path:(M=(F=Yt.getState())==null?void 0:F.doc)==null?void 0:M.path},userInfo:ec.exports.pick(b,"uuid","role")};w==null||w.emit("cursor",JSON.stringify(U))},R=P=>{},N=P=>{const U=a.getCursor();D(U)},A=P=>{if((P==null?void 0:P.path)&&ef){let U=/\.(\w+$)/gim.exec(P.path);U=U||["",P.path.substring(1)];const{CRDTInfo:F,doc:M,appStatus:W,setAppStatus:j}=Yt.getState(),{shadowUser:$}=P_.getState();if(W!=="replay"&&($.uuid||P.path&&U&&Hd(F.userInfo))){const Q=qK[U[1]];sY.updateModel({value:P.value,path:P.path,language:Q,APP_DIR:aY},ee=>{var ge;Wg.revision=((ge=F.editor)==null?void 0:ge.revision)?F.editor.revision:0,ef.setModel(ee),a==null||a.updateModel(),h(sY.fileTreeStack),a==null||a.onFocus(),a==null||a.onCursorActivity(),c==null||c.setCursors(),P&&(lY.set(P.path,{operation:[],revision:Wg.revision,value:P.value}),Yt.getState().appStatus!=="replay"&&zee(M==null?void 0:M.path,{value:P.value,revision:Wg.revision}))},!0)}}},V=()=>{const P=ef._codeEditorService,U=P.openCodeEditor.bind(P);P.openCodeEditor=async(F,M,W)=>{const j=await U(F,M);if(j===null){const $=Sg.getModels().find(Q=>new RegExp(F.resource.path).test(Q.uri.path));x($)}return j}};return O.exports.useEffect(()=>(ef=Sg.create(s.current,{theme:"vs-dark",automaticLayout:!0,glyphMargin:!0,lightbulb:{enabled:!0}}),Sg.defineTheme("myCoolTheme",{base:"vs-dark",inherit:!1,rules:[{token:"green",background:"FF0000",foreground:"00FF00",fontStyle:"italic"},{token:"red",foreground:"FF0000",fontStyle:"bold underline"}],colors:{"editor.foreground":"#FFFFFF","editor.background":"#000000"}}),l(new kNt(ef,r)),u(new LNt(ef,y.filter(P=>!Hd(P)))),V(),()=>{ef.dispose()}),[]),O.exports.useEffect(()=>{a==null||a.registerCallbacks({change:S,cursorActivity:T,selectionActivity:k,blur:R,focus:N}),a==null||a.onCursorActivity()},[a]),O.exports.useEffect(()=>(w==null||w.on("editFile",P=>{var M,W,j,$;const U=JSON.parse(P),F=(M=Yt.getState().doc)==null?void 0:M.path;if(((j=ef==null?void 0:ef.getModel())==null?void 0:j.uri.path.includes((W=U==null?void 0:U.file)==null?void 0:W.path))&&Wg.applyServer(Zd.fromJSON(U.editor.operation)),console.log(U),!Hd(U.userInfo)&&U.file.path){const Q=sa.getState().userList.find(ee=>ee.uuid===U.userInfo.uuid);c==null||c.pushCursorToList(Te(Te({},Q),U.userInfo)),(($=U.file)==null?void 0:$.path)!==F&&(c==null||c.removeCursor(U.userInfo))}}),w==null||w.on("serverAck",async P=>{var F,M;const U=JSON.parse(P);Wg.serverAck(),f(U),g("editor"),lY.set((F=U==null?void 0:U.file)==null?void 0:F.path,ot(Te({},lY.get((M=U==null?void 0:U.file)==null?void 0:M.path)),{operation:Wg.operation}))}),w==null||w.on("selection",async P=>{var M,W;const U=JSON.parse(P),F=(M=Yt.getState().doc)==null?void 0:M.path;if(g("editor"),!Hd(U.userInfo)&&U.file.path){const j=sa.getState().userList.find($=>$.uuid===U.userInfo.uuid);c==null||c.pushSelectionToList(Te(Te({},j),U.userInfo)),((W=U.file)==null?void 0:W.path)!==F&&(c==null||c.removeSelection(U.userInfo))}}),w==null||w.on("cursor",async P=>{var M,W;const U=JSON.parse(P),F=(M=Yt.getState().doc)==null?void 0:M.path;if(g("editor"),!Hd(U.userInfo)&&U.file.path){const j=sa.getState().userList.find($=>$.uuid===U.userInfo.uuid);c==null||c.pushCursorToList(Te(Te({},j),U.userInfo)),((W=U.file)==null?void 0:W.path)!==F&&(c==null||c.removeCursor(U.userInfo))}}),()=>{w==null||w.off("editFile"),w==null||w.off("serverAck"),w==null||w.off("selection"),w==null||w.off("cursor")}),[a,w]),O.exports.useEffect(()=>{c==null||c.updateList(y.filter(P=>!Hd(P)))},[y]),O.exports.useEffect(()=>{console.log(m),console.log(_),!/\/$/.test(_==null?void 0:_.path)&&A(v)},[_]),ne(BE,{name:"editor",children:dt(jDt,{style:e,className:"editor-layout flex flex-col",children:[(d==null?void 0:d.length)>0?ne("ul",{style:t,className:"bg-codezone-black stack-list flex flex-row items-center flex-shrink-0",children:d.map((P,U)=>ne("li",{className:`flex flex-row justify-center items-center cursor-pointer flex-grow-0 flex-shrink-0 ${P.path===(v==null?void 0:v.path)?"active":""}`,onClick:()=>{x(P.model)},children:P.label.split("/").slice(-1)[0]},U))}):null,ne(qDt,{ref:s,userList:sa.getState().userList,className:"editor-content flex-1",style:i})]})})};var Lwe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",Editor:TNt}),uY={exports:{}};(function(n,e){(function(t,i){n.exports=i()})(self,function(){return(()=>{var t={4567:function(s,a,l){var c,u=this&&this.__extends||(c=function(y,b){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&(w[S]=x[S])},c(y,b)},function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function w(){this.constructor=y}c(y,b),y.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)});Object.defineProperty(a,"__esModule",{value:!0}),a.AccessibilityManager=void 0;var d=l(9042),h=l(6114),f=l(9924),g=l(3656),p=l(844),m=l(5596),v=l(9631),_=function(y){function b(w,x){var S=y.call(this)||this;S._terminal=w,S._renderService=x,S._liveRegionLineCount=0,S._charsToConsume=[],S._charsToAnnounce="",S._accessibilityTreeRoot=document.createElement("div"),S._accessibilityTreeRoot.setAttribute("role","document"),S._accessibilityTreeRoot.classList.add("xterm-accessibility"),S._accessibilityTreeRoot.tabIndex=0,S._rowContainer=document.createElement("div"),S._rowContainer.setAttribute("role","list"),S._rowContainer.classList.add("xterm-accessibility-tree"),S._rowElements=[];for(var k=0;k<S._terminal.rows;k++)S._rowElements[k]=S._createAccessibilityTreeNode(),S._rowContainer.appendChild(S._rowElements[k]);if(S._topBoundaryFocusListener=function(T){return S._onBoundaryFocus(T,0)},S._bottomBoundaryFocusListener=function(T){return S._onBoundaryFocus(T,1)},S._rowElements[0].addEventListener("focus",S._topBoundaryFocusListener),S._rowElements[S._rowElements.length-1].addEventListener("focus",S._bottomBoundaryFocusListener),S._refreshRowsDimensions(),S._accessibilityTreeRoot.appendChild(S._rowContainer),S._renderRowsDebouncer=new f.TimeBasedDebouncer(S._renderRows.bind(S)),S._refreshRows(),S._liveRegion=document.createElement("div"),S._liveRegion.classList.add("live-region"),S._liveRegion.setAttribute("aria-live","assertive"),S._accessibilityTreeRoot.appendChild(S._liveRegion),!S._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return S._terminal.element.insertAdjacentElement("afterbegin",S._accessibilityTreeRoot),S.register(S._renderRowsDebouncer),S.register(S._terminal.onResize(function(T){return S._onResize(T.rows)})),S.register(S._terminal.onRender(function(T){return S._refreshRows(T.start,T.end)})),S.register(S._terminal.onScroll(function(){return S._refreshRows()})),S.register(S._terminal.onA11yChar(function(T){return S._onChar(T)})),S.register(S._terminal.onLineFeed(function(){return S._onChar(`
|
|
2183
|
+
importScripts('${e}/assets/editor.worker.js');`)}`}}:self.MonacoEnvironment={globalAPI:!0,getWorker(t,i){return i==="json"?new yNt:i==="css"||i==="scss"||i==="less"?new CNt:i==="html"||i==="handlebars"||i==="razor"?new wNt:i==="typescript"||i==="javascript"?new SNt:new bNt}}}invertOperation(e,t){e.invert(t)}applyOperation(e){this.ignoreNextChange=!0,console.log("change from server"),this.applyOperationToMonaco(e),this.ignoreNextChange=!1}applyOperationToMonaco(e,t=!1){const{ops:i}=e,r=this.editor.getModel();let o=0;const s=[];for(let a=0;a<i.length;a++){const l=i[a];if(Zd.isRetain(l))o+=l;else if(Zd.isInsert(l)){const c=r.getPositionAt(o);s.push({forceMoveMarkers:!0,range:new UC(c.lineNumber,c.column,c.lineNumber,c.column),text:l})}else if(Zd.isDelete(l)){const c=r.getPositionAt(o),u=r.getPositionAt(o-l);s.push({forceMoveMarkers:!1,range:new UC(c.lineNumber,c.column,u.lineNumber,u.column),text:null}),o-=l}}t?r.pushEditOperations([],s,null):r.applyEdits(s),this.liveOperationCode=this.getCode()}getCursor(){var s,a,l,c;let e=this.editor.getSelection();(typeof e=="undefined"||e===null)&&(e=this.lastCursorRange);const t=e.getStartPosition(),i=e.getEndPosition();let r=(a=(s=this.editor)==null?void 0:s.getModel())==null?void 0:a.getOffsetAt(t),o=(c=(l=this.editor)==null?void 0:l.getModel())==null?void 0:c.getOffsetAt(i);if(r>o){const u=[o,r];r=u[0],o=u[1]}return new rY(r,o)}}Jl(n=>({cursor:{},setCursor:e=>n(t=>({cursor:e}))}));const oY=Jl(n=>({fileTreeStack:[],setFileTreeStack:e=>n(()=>({fileTreeStack:e}))}));class sY{localSetFileTreeStack(e){oY.getState().setFileTreeStack(e)}static get fileTreeStack(){const e=oY.getState().fileTreeStack;return console.log(e),e}static setFileTreeStack(e){return oY.getState().setFileTreeStack(e)}static updateModel({value:e,path:t,language:i,APP_DIR:r},o,s=!1){let a=Sg.getModels().find(l=>l.uri.path.includes(t));!a&&!!s&&(a=Sg.createModel(e,i,_j.parse(`file://${r}${t}`)),this.setFileTreeStack([...this.fileTreeStack,{label:t,path:t,model:a}])),s&&(a==null||a.setValue(e)),o&&o(a)}}Qi(sY,"EditorData");class LNt{constructor(e,t){Qi(this,"clientList");Qi(this,"tempCursors");this.editor=e,this.model=e.getModel(),this.renderCursorGroup="",this.tempCursors=[],this.labelGroup=[],this.clientList=[],this.updateList(t)}updateModel(){this.model=this.editor.getModel()}set _updateList(e){this.clientList=e,this.setCursors()}updateList(e){this._updateList=e}pushSelectionToList(e){this.clientList.some(i=>i.uuid===e.uuid)?this.clientList=this.clientList.map(i=>st(Te({},i),{selection:i.uuid===e.uuid?e.selection:i.selection})):this.clientList.push(e),this.setSelection()}pushCursorToList(e){this.clientList.some(i=>i.uuid===e.uuid)?this.clientList=this.clientList.map(i=>st(Te({},i),{cursor:i.uuid===e.uuid?e.cursor:i.cursor})):this.clientList.push(e),this.setCursors()}setCursors(){const e=this.editor.getModel();if(!e)return;const t={firstArg:[],secondArg:[]};t.firstArg=this.renderCursorGroup?this.renderCursorGroup:this.clientList.map(i=>i.role),t.secondArg=this.clientList.map(i=>{const{cursor:r}=i;if(r){const o=e.getPositionAt(r.position),s=e.getPositionAt(r.selectionEnd);return{range:new UC(o.lineNumber,o.column,s.lineNumber,s.column),options:{className:Yt.getState().doc.path===r.path?i.role:""}}}else return{range:new UC(0,0,0,0),options:{className:""}}}),this.renderCursorGroup=this.editor.deltaDecorations(t.firstArg,t.secondArg),this.setLabels()}removeCursor(e){}setSelection(){}removeSelection(e){}setLabels(){const e=this.editor.getModel();this.clientList=this.clientList.map(t=>{var s,a;const r=t.cursor!==void 0&&t.cursor.position!==void 0?e.getPositionAt(t.cursor.position):{lineNumber:1,column:1},o=st(Te({},t.label),{domNode:null,getId:function(){return`label-${t.uuid}`},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.className=`monaco-label ${t.role}-label no-cursor`,this.domNode.innerHTML=t.username,this.domNode.style.background=t.color),this.domNode},getPosition:function(){return{position:{lineNumber:r.lineNumber,column:r.column},preference:[Sg.ContentWidgetPositionPreference.ABOVE,Sg.ContentWidgetPositionPreference.BELOW]}}});if(this.editor._contentWidgets[`label-${t.uuid}`]){this.editor.layoutContentWidget(o);const l=document.querySelector(`.${t.role}-label`);((s=t==null?void 0:t.cursor)==null?void 0:s.path)&&Yt.getState().doc.path===((a=t==null?void 0:t.cursor)==null?void 0:a.path)?l==null||l.classList.remove("no-cursor"):l==null||l.classList.add("no-cursor")}else this.editor.addContentWidget(o);return st(Te({},t),{contentWidget:o})})}}const aY="/home/runner/app";let ef;const lY=new Map,kwe=Jl(n=>({cursor:{},setCursor:e=>n(t=>({cursor:e}))})),Wg=new kl(0),cY=[],TNt=({doc:n,containerStyle:e,menuStyle:t,editorStyle:i,serviceWorkerOrigin:r,useLsp:o})=>{const s=O.exports.useRef(null),[a,l]=O.exports.useState(null),[c,u]=O.exports.useState(null),[d,h]=O.exports.useState(null),{setCRDTInfo:f,setAsyncType:g,switchDoc:p}=Yt.getState(),m=Yt(P=>P.CRDTInfo),v=Yt(P=>P.CRDTInfo.file),_=Yt(P=>P.doc),y=sa(P=>P.userList),b=Mu(P=>P.userInfo),w=Yr(P=>P.socket);ec.exports.debounce(P=>{P()},300);const x=P=>{const{CRDTInfo:U,setCRDTInfo:F}=Yt.getState();F(st(Te({},U),{file:{action:"Get",value:P.getValue(),path:P.uri.path.replace(aY,"")}})),p({value:P.getValue(),path:P.uri.path.replace(aY,"")})};Wg.sendOperation=(P,U)=>{if(Yt.getState().appStatus==="replay")return;const{userInfo:F}=Mu.getState(),{doc:M,switchDoc:W}=Yt.getState();let j;(M==null?void 0:M.path)?j=M.path:(j=`temp-${cY.length+1}`,W({path:`temp-${cY.length+1}`}),cY.push(j));const $={timestamp:Date.now(),userInfo:ec.exports.pick(F,["role","uuid"]),cursor:st(Te({},a.getCursor()),{path:j}),editor:{operation:U,revision:P,evtType:"Editor"},file:{action:"Update",path:j}};w==null||w.emit("editFile",JSON.stringify($))},Wg.applyOperation=P=>{a.applyOperation(P)};const S=P=>{Wg.applyClient(P)},k=P=>{Yt.getState()},T=P=>{if(!P||(P==null?void 0:P.reason)===0&&(P==null?void 0:P.source)==="keyboard")return;const U=a.getCursor();kwe.getState().setCursor(U),D(U)},D=P=>{var F,M;const U={timestamp:Date.now(),cursor:P||kwe.getState().cursor,file:{action:"Update",path:(M=(F=Yt.getState())==null?void 0:F.doc)==null?void 0:M.path},userInfo:ec.exports.pick(b,"uuid","role")};w==null||w.emit("cursor",JSON.stringify(U))},R=P=>{},N=P=>{const U=a.getCursor();D(U)},A=P=>{if((P==null?void 0:P.path)&&ef){let U=/\.(\w+$)/gim.exec(P.path);U=U||["",P.path.substring(1)];const{CRDTInfo:F,doc:M,appStatus:W,setAppStatus:j}=Yt.getState(),{shadowUser:$}=P_.getState();if(W!=="replay"&&($.uuid||P.path&&U&&Hd(F.userInfo))){const Q=qK[U[1]];sY.updateModel({value:P.value,path:P.path,language:Q,APP_DIR:aY},ee=>{var ge;Wg.revision=((ge=F.editor)==null?void 0:ge.revision)?F.editor.revision:0,ef.setModel(ee),a==null||a.updateModel(),h(sY.fileTreeStack),a==null||a.onFocus(),a==null||a.onCursorActivity(),c==null||c.setCursors(),P&&(lY.set(P.path,{operation:[],revision:Wg.revision,value:P.value}),Yt.getState().appStatus!=="replay"&&zee(M==null?void 0:M.path,{value:P.value,revision:Wg.revision}))},!0)}}},V=()=>{const P=ef._codeEditorService,U=P.openCodeEditor.bind(P);P.openCodeEditor=async(F,M,W)=>{const j=await U(F,M);if(j===null){const $=Sg.getModels().find(Q=>new RegExp(F.resource.path).test(Q.uri.path));x($)}return j}};return O.exports.useEffect(()=>(ef=Sg.create(s.current,{theme:"vs-dark",automaticLayout:!0,glyphMargin:!0,lightbulb:{enabled:!0}}),Sg.defineTheme("myCoolTheme",{base:"vs-dark",inherit:!1,rules:[{token:"green",background:"FF0000",foreground:"00FF00",fontStyle:"italic"},{token:"red",foreground:"FF0000",fontStyle:"bold underline"}],colors:{"editor.foreground":"#FFFFFF","editor.background":"#000000"}}),l(new kNt(ef,r)),u(new LNt(ef,y.filter(P=>!Hd(P)))),V(),()=>{ef.dispose()}),[]),O.exports.useEffect(()=>{a==null||a.registerCallbacks({change:S,cursorActivity:T,selectionActivity:k,blur:R,focus:N}),a==null||a.onCursorActivity()},[a]),O.exports.useEffect(()=>(w==null||w.on("editFile",P=>{var M,W,j,$;const U=JSON.parse(P),F=(M=Yt.getState().doc)==null?void 0:M.path;if(((j=ef==null?void 0:ef.getModel())==null?void 0:j.uri.path.includes((W=U==null?void 0:U.file)==null?void 0:W.path))&&Wg.applyServer(Zd.fromJSON(U.editor.operation)),console.log(U),!Hd(U.userInfo)&&U.file.path){const Q=sa.getState().userList.find(ee=>ee.uuid===U.userInfo.uuid);c==null||c.pushCursorToList(Te(Te({},Q),U.userInfo)),(($=U.file)==null?void 0:$.path)!==F&&(c==null||c.removeCursor(U.userInfo))}}),w==null||w.on("serverAck",async P=>{var F,M;const U=JSON.parse(P);Wg.serverAck(),f(U),g("editor"),lY.set((F=U==null?void 0:U.file)==null?void 0:F.path,st(Te({},lY.get((M=U==null?void 0:U.file)==null?void 0:M.path)),{operation:Wg.operation}))}),w==null||w.on("selection",async P=>{var M,W;const U=JSON.parse(P),F=(M=Yt.getState().doc)==null?void 0:M.path;if(g("editor"),!Hd(U.userInfo)&&U.file.path){const j=sa.getState().userList.find($=>$.uuid===U.userInfo.uuid);c==null||c.pushSelectionToList(Te(Te({},j),U.userInfo)),((W=U.file)==null?void 0:W.path)!==F&&(c==null||c.removeSelection(U.userInfo))}}),w==null||w.on("cursor",async P=>{var M,W;const U=JSON.parse(P),F=(M=Yt.getState().doc)==null?void 0:M.path;if(g("editor"),!Hd(U.userInfo)&&U.file.path){const j=sa.getState().userList.find($=>$.uuid===U.userInfo.uuid);c==null||c.pushCursorToList(Te(Te({},j),U.userInfo)),((W=U.file)==null?void 0:W.path)!==F&&(c==null||c.removeCursor(U.userInfo))}}),()=>{w==null||w.off("editFile"),w==null||w.off("serverAck"),w==null||w.off("selection"),w==null||w.off("cursor")}),[a,w]),O.exports.useEffect(()=>{c==null||c.updateList(y.filter(P=>!Hd(P)))},[y]),O.exports.useEffect(()=>{console.log(m),console.log(_),!/\/$/.test(_==null?void 0:_.path)&&A(v)},[_]),ne(BE,{name:"editor",children:dt(jDt,{style:e,className:"editor-layout flex flex-col",children:[(d==null?void 0:d.length)>0?ne("ul",{style:t,className:"bg-codezone-black stack-list flex flex-row items-center flex-shrink-0",children:d.map((P,U)=>ne("li",{className:`flex flex-row justify-center items-center cursor-pointer flex-grow-0 flex-shrink-0 ${P.path===(v==null?void 0:v.path)?"active":""}`,onClick:()=>{x(P.model)},children:P.label.split("/").slice(-1)[0]},U))}):null,ne(qDt,{ref:s,userList:sa.getState().userList,className:"editor-content flex-1",style:i})]})})};var Lwe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",Editor:TNt}),uY={exports:{}};(function(n,e){(function(t,i){n.exports=i()})(self,function(){return(()=>{var t={4567:function(s,a,l){var c,u=this&&this.__extends||(c=function(y,b){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&(w[S]=x[S])},c(y,b)},function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function w(){this.constructor=y}c(y,b),y.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)});Object.defineProperty(a,"__esModule",{value:!0}),a.AccessibilityManager=void 0;var d=l(9042),h=l(6114),f=l(9924),g=l(3656),p=l(844),m=l(5596),v=l(9631),_=function(y){function b(w,x){var S=y.call(this)||this;S._terminal=w,S._renderService=x,S._liveRegionLineCount=0,S._charsToConsume=[],S._charsToAnnounce="",S._accessibilityTreeRoot=document.createElement("div"),S._accessibilityTreeRoot.setAttribute("role","document"),S._accessibilityTreeRoot.classList.add("xterm-accessibility"),S._accessibilityTreeRoot.tabIndex=0,S._rowContainer=document.createElement("div"),S._rowContainer.setAttribute("role","list"),S._rowContainer.classList.add("xterm-accessibility-tree"),S._rowElements=[];for(var k=0;k<S._terminal.rows;k++)S._rowElements[k]=S._createAccessibilityTreeNode(),S._rowContainer.appendChild(S._rowElements[k]);if(S._topBoundaryFocusListener=function(T){return S._onBoundaryFocus(T,0)},S._bottomBoundaryFocusListener=function(T){return S._onBoundaryFocus(T,1)},S._rowElements[0].addEventListener("focus",S._topBoundaryFocusListener),S._rowElements[S._rowElements.length-1].addEventListener("focus",S._bottomBoundaryFocusListener),S._refreshRowsDimensions(),S._accessibilityTreeRoot.appendChild(S._rowContainer),S._renderRowsDebouncer=new f.TimeBasedDebouncer(S._renderRows.bind(S)),S._refreshRows(),S._liveRegion=document.createElement("div"),S._liveRegion.classList.add("live-region"),S._liveRegion.setAttribute("aria-live","assertive"),S._accessibilityTreeRoot.appendChild(S._liveRegion),!S._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return S._terminal.element.insertAdjacentElement("afterbegin",S._accessibilityTreeRoot),S.register(S._renderRowsDebouncer),S.register(S._terminal.onResize(function(T){return S._onResize(T.rows)})),S.register(S._terminal.onRender(function(T){return S._refreshRows(T.start,T.end)})),S.register(S._terminal.onScroll(function(){return S._refreshRows()})),S.register(S._terminal.onA11yChar(function(T){return S._onChar(T)})),S.register(S._terminal.onLineFeed(function(){return S._onChar(`
|
|
2184
2184
|
`)})),S.register(S._terminal.onA11yTab(function(T){return S._onTab(T)})),S.register(S._terminal.onKey(function(T){return S._onKey(T.key)})),S.register(S._terminal.onBlur(function(){return S._clearLiveRegion()})),S.register(S._renderService.onDimensionsChange(function(){return S._refreshRowsDimensions()})),S._screenDprMonitor=new m.ScreenDprMonitor,S.register(S._screenDprMonitor),S._screenDprMonitor.setListener(function(){return S._refreshRowsDimensions()}),S.register((0,g.addDisposableDomListener)(window,"resize",function(){return S._refreshRowsDimensions()})),S}return u(b,y),b.prototype.dispose=function(){y.prototype.dispose.call(this),(0,v.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},b.prototype._onBoundaryFocus=function(w,x){var S=w.target,k=this._rowElements[x===0?1:this._rowElements.length-2];if(S.getAttribute("aria-posinset")!==(x===0?"1":""+this._terminal.buffer.lines.length)&&w.relatedTarget===k){var T,D;if(x===0?(T=S,D=this._rowElements.pop(),this._rowContainer.removeChild(D)):(T=this._rowElements.shift(),D=S,this._rowContainer.removeChild(T)),T.removeEventListener("focus",this._topBoundaryFocusListener),D.removeEventListener("focus",this._bottomBoundaryFocusListener),x===0){var R=this._createAccessibilityTreeNode();this._rowElements.unshift(R),this._rowContainer.insertAdjacentElement("afterbegin",R)}else R=this._createAccessibilityTreeNode(),this._rowElements.push(R),this._rowContainer.appendChild(R);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(x===0?-1:1),this._rowElements[x===0?1:this._rowElements.length-2].focus(),w.preventDefault(),w.stopImmediatePropagation()}},b.prototype._onResize=function(w){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var x=this._rowContainer.children.length;x<this._terminal.rows;x++)this._rowElements[x]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[x]);for(;this._rowElements.length>w;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},b.prototype._createAccessibilityTreeNode=function(){var w=document.createElement("div");return w.setAttribute("role","listitem"),w.tabIndex=-1,this._refreshRowDimensions(w),w},b.prototype._onTab=function(w){for(var x=0;x<w;x++)this._onChar(" ")},b.prototype._onChar=function(w){var x=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==w&&(this._charsToAnnounce+=w):this._charsToAnnounce+=w,w===`
|
|
2185
2185
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=d.tooMuchOutput)),h.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){x._accessibilityTreeRoot.appendChild(x._liveRegion)},0))},b.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,h.isMac&&(0,v.removeElementFromParent)(this._liveRegion)},b.prototype._onKey=function(w){this._clearLiveRegion(),this._charsToConsume.push(w)},b.prototype._refreshRows=function(w,x){this._renderRowsDebouncer.refresh(w,x,this._terminal.rows)},b.prototype._renderRows=function(w,x){for(var S=this._terminal.buffer,k=S.lines.length.toString(),T=w;T<=x;T++){var D=S.translateBufferLineToString(S.ydisp+T,!0),R=(S.ydisp+T+1).toString(),N=this._rowElements[T];N&&(D.length===0?N.innerText="\xA0":N.textContent=D,N.setAttribute("aria-posinset",R),N.setAttribute("aria-setsize",k))}this._announceCharacters()},b.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var w=0;w<this._terminal.rows;w++)this._refreshRowDimensions(this._rowElements[w])}},b.prototype._refreshRowDimensions=function(w){w.style.height=this._renderService.dimensions.actualCellHeight+"px"},b.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},b}(p.Disposable);a.AccessibilityManager=_},3614:(s,a)=>{function l(h){return h.replace(/\r?\n/g,"\r")}function c(h,f){return f?"[200~"+h+"[201~":h}function u(h,f,g){h=c(h=l(h),g.decPrivateModes.bracketedPasteMode),g.triggerDataEvent(h,!0),f.value=""}function d(h,f,g){var p=g.getBoundingClientRect(),m=h.clientX-p.left-10,v=h.clientY-p.top-10;f.style.width="20px",f.style.height="20px",f.style.left=m+"px",f.style.top=v+"px",f.style.zIndex="1000",f.focus()}Object.defineProperty(a,"__esModule",{value:!0}),a.rightClickHandler=a.moveTextAreaUnderMouseCursor=a.paste=a.handlePasteEvent=a.copyHandler=a.bracketTextForPaste=a.prepareTextForTerminal=void 0,a.prepareTextForTerminal=l,a.bracketTextForPaste=c,a.copyHandler=function(h,f){h.clipboardData&&h.clipboardData.setData("text/plain",f.selectionText),h.preventDefault()},a.handlePasteEvent=function(h,f,g){h.stopPropagation(),h.clipboardData&&u(h.clipboardData.getData("text/plain"),f,g)},a.paste=u,a.moveTextAreaUnderMouseCursor=d,a.rightClickHandler=function(h,f,g,p,m){d(h,f,g),m&&p.rightClickSelect(h),f.value=p.selectionText,f.select()}},4774:(s,a)=>{var l,c,u,d;function h(g){var p=g.toString(16);return p.length<2?"0"+p:p}function f(g,p){return g<p?(p+.05)/(g+.05):(g+.05)/(p+.05)}Object.defineProperty(a,"__esModule",{value:!0}),a.contrastRatio=a.toPaddedHex=a.rgba=a.rgb=a.css=a.color=a.channels=void 0,function(g){g.toCss=function(p,m,v,_){return _!==void 0?"#"+h(p)+h(m)+h(v)+h(_):"#"+h(p)+h(m)+h(v)},g.toRgba=function(p,m,v,_){return _===void 0&&(_=255),(p<<24|m<<16|v<<8|_)>>>0}}(l=a.channels||(a.channels={})),(c=a.color||(a.color={})).blend=function(g,p){var m=(255&p.rgba)/255;if(m===1)return{css:p.css,rgba:p.rgba};var v=p.rgba>>24&255,_=p.rgba>>16&255,y=p.rgba>>8&255,b=g.rgba>>24&255,w=g.rgba>>16&255,x=g.rgba>>8&255,S=b+Math.round((v-b)*m),k=w+Math.round((_-w)*m),T=x+Math.round((y-x)*m);return{css:l.toCss(S,k,T),rgba:l.toRgba(S,k,T)}},c.isOpaque=function(g){return(255&g.rgba)==255},c.ensureContrastRatio=function(g,p,m){var v=d.ensureContrastRatio(g.rgba,p.rgba,m);if(v)return d.toColor(v>>24&255,v>>16&255,v>>8&255)},c.opaque=function(g){var p=(255|g.rgba)>>>0,m=d.toChannels(p),v=m[0],_=m[1],y=m[2];return{css:l.toCss(v,_,y),rgba:p}},c.opacity=function(g,p){var m=Math.round(255*p),v=d.toChannels(g.rgba),_=v[0],y=v[1],b=v[2];return{css:l.toCss(_,y,b,m),rgba:l.toRgba(_,y,b,m)}},c.toColorRGB=function(g){return[g.rgba>>24&255,g.rgba>>16&255,g.rgba>>8&255]},(a.css||(a.css={})).toColor=function(g){switch(g.length){case 7:return{css:g,rgba:(parseInt(g.slice(1),16)<<8|255)>>>0};case 9:return{css:g,rgba:parseInt(g.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(g){function p(m,v,_){var y=m/255,b=v/255,w=_/255;return .2126*(y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4))+.7152*(b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4))+.0722*(w<=.03928?w/12.92:Math.pow((w+.055)/1.055,2.4))}g.relativeLuminance=function(m){return p(m>>16&255,m>>8&255,255&m)},g.relativeLuminance2=p}(u=a.rgb||(a.rgb={})),function(g){function p(v,_,y){for(var b=v>>24&255,w=v>>16&255,x=v>>8&255,S=_>>24&255,k=_>>16&255,T=_>>8&255,D=f(u.relativeLuminance2(S,T,k),u.relativeLuminance2(b,w,x));D<y&&(S>0||k>0||T>0);)S-=Math.max(0,Math.ceil(.1*S)),k-=Math.max(0,Math.ceil(.1*k)),T-=Math.max(0,Math.ceil(.1*T)),D=f(u.relativeLuminance2(S,T,k),u.relativeLuminance2(b,w,x));return(S<<24|k<<16|T<<8|255)>>>0}function m(v,_,y){for(var b=v>>24&255,w=v>>16&255,x=v>>8&255,S=_>>24&255,k=_>>16&255,T=_>>8&255,D=f(u.relativeLuminance2(S,T,k),u.relativeLuminance2(b,w,x));D<y&&(S<255||k<255||T<255);)S=Math.min(255,S+Math.ceil(.1*(255-S))),k=Math.min(255,k+Math.ceil(.1*(255-k))),T=Math.min(255,T+Math.ceil(.1*(255-T))),D=f(u.relativeLuminance2(S,T,k),u.relativeLuminance2(b,w,x));return(S<<24|k<<16|T<<8|255)>>>0}g.ensureContrastRatio=function(v,_,y){var b=u.relativeLuminance(v>>8),w=u.relativeLuminance(_>>8);if(f(b,w)<y)return w<b?p(v,_,y):m(v,_,y)},g.reduceLuminance=p,g.increaseLuminance=m,g.toChannels=function(v){return[v>>24&255,v>>16&255,v>>8&255,255&v]},g.toColor=function(v,_,y){return{css:l.toCss(v,_,y),rgba:l.toRgba(v,_,y)}}}(d=a.rgba||(a.rgba={})),a.toPaddedHex=h,a.contrastRatio=f},7239:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ColorContrastCache=void 0;var l=function(){function c(){this._color={},this._rgba={}}return c.prototype.clear=function(){this._color={},this._rgba={}},c.prototype.setCss=function(u,d,h){this._rgba[u]||(this._rgba[u]={}),this._rgba[u][d]=h},c.prototype.getCss=function(u,d){return this._rgba[u]?this._rgba[u][d]:void 0},c.prototype.setColor=function(u,d,h){this._color[u]||(this._color[u]={}),this._color[u][d]=h},c.prototype.getColor=function(u,d){return this._color[u]?this._color[u][d]:void 0},c}();a.ColorContrastCache=l},5680:function(s,a,l){var c=this&&this.__spreadArray||function(_,y,b){if(b||arguments.length===2)for(var w,x=0,S=y.length;x<S;x++)!w&&x in y||(w||(w=Array.prototype.slice.call(y,0,x)),w[x]=y[x]);return _.concat(w||Array.prototype.slice.call(y))};Object.defineProperty(a,"__esModule",{value:!0}),a.ColorManager=a.DEFAULT_ANSI_COLORS=void 0;var u=l(4774),d=l(7239),h=u.css.toColor("#ffffff"),f=u.css.toColor("#000000"),g=u.css.toColor("#ffffff"),p=u.css.toColor("#000000"),m={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};a.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var _=[u.css.toColor("#2e3436"),u.css.toColor("#cc0000"),u.css.toColor("#4e9a06"),u.css.toColor("#c4a000"),u.css.toColor("#3465a4"),u.css.toColor("#75507b"),u.css.toColor("#06989a"),u.css.toColor("#d3d7cf"),u.css.toColor("#555753"),u.css.toColor("#ef2929"),u.css.toColor("#8ae234"),u.css.toColor("#fce94f"),u.css.toColor("#729fcf"),u.css.toColor("#ad7fa8"),u.css.toColor("#34e2e2"),u.css.toColor("#eeeeec")],y=[0,95,135,175,215,255],b=0;b<216;b++){var w=y[b/36%6|0],x=y[b/6%6|0],S=y[b%6];_.push({css:u.channels.toCss(w,x,S),rgba:u.channels.toRgba(w,x,S)})}for(b=0;b<24;b++){var k=8+10*b;_.push({css:u.channels.toCss(k,k,k),rgba:u.channels.toRgba(k,k,k)})}return _}());var v=function(){function _(y,b){this.allowTransparency=b;var w=y.createElement("canvas");w.width=1,w.height=1;var x=w.getContext("2d");if(!x)throw new Error("Could not get rendering context");this._ctx=x,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new d.ColorContrastCache,this.colors={foreground:h,background:f,cursor:g,cursorAccent:p,selectionTransparent:m,selectionOpaque:u.color.blend(f,m),ansi:a.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return _.prototype.onOptionsChange=function(y){y==="minimumContrastRatio"&&this._contrastCache.clear()},_.prototype.setTheme=function(y){y===void 0&&(y={}),this.colors.foreground=this._parseColor(y.foreground,h),this.colors.background=this._parseColor(y.background,f),this.colors.cursor=this._parseColor(y.cursor,g,!0),this.colors.cursorAccent=this._parseColor(y.cursorAccent,p,!0),this.colors.selectionTransparent=this._parseColor(y.selection,m,!0),this.colors.selectionOpaque=u.color.blend(this.colors.background,this.colors.selectionTransparent),u.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=u.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(y.black,a.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(y.red,a.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(y.green,a.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(y.yellow,a.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(y.blue,a.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(y.magenta,a.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(y.cyan,a.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(y.white,a.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(y.brightBlack,a.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(y.brightRed,a.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(y.brightGreen,a.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(y.brightYellow,a.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(y.brightBlue,a.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(y.brightMagenta,a.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(y.brightCyan,a.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(y.brightWhite,a.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},_.prototype.restoreColor=function(y){if(y!==void 0)switch(y){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[y]=this._restoreColors.ansi[y]}else for(var b=0;b<this._restoreColors.ansi.length;++b)this.colors.ansi[b]=this._restoreColors.ansi[b]},_.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:c([],this.colors.ansi,!0)}},_.prototype._parseColor=function(y,b,w){if(w===void 0&&(w=this.allowTransparency),y===void 0)return b;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=y,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+y+" is invalid using fallback "+b.css),b;this._ctx.fillRect(0,0,1,1);var x=this._ctx.getImageData(0,0,1,1).data;if(x[3]!==255){if(!w)return console.warn("Color: "+y+" is using transparency, but allowTransparency is false. Using fallback "+b.css+"."),b;var S=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(A){return Number(A)}),k=S[0],T=S[1],D=S[2],R=S[3],N=Math.round(255*R);return{rgba:u.channels.toRgba(k,T,D,N),css:y}}return{css:this._ctx.fillStyle,rgba:u.channels.toRgba(x[0],x[1],x[2],x[3])}},_}();a.ColorManager=v},9631:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.removeElementFromParent=void 0,a.removeElementFromParent=function(){for(var l,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];for(var d=0,h=c;d<h.length;d++){var f=h[d];(l=f==null?void 0:f.parentElement)===null||l===void 0||l.removeChild(f)}}},3656:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.addDisposableDomListener=void 0,a.addDisposableDomListener=function(l,c,u,d){l.addEventListener(c,u,d);var h=!1;return{dispose:function(){h||(h=!0,l.removeEventListener(c,u,d))}}}},3551:function(s,a,l){var c=this&&this.__decorate||function(p,m,v,_){var y,b=arguments.length,w=b<3?m:_===null?_=Object.getOwnPropertyDescriptor(m,v):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(p,m,v,_);else for(var x=p.length-1;x>=0;x--)(y=p[x])&&(w=(b<3?y(w):b>3?y(m,v,w):y(m,v))||w);return b>3&&w&&Object.defineProperty(m,v,w),w},u=this&&this.__param||function(p,m){return function(v,_){m(v,_,p)}};Object.defineProperty(a,"__esModule",{value:!0}),a.MouseZone=a.Linkifier=void 0;var d=l(8460),h=l(2585),f=function(){function p(m,v,_){this._bufferService=m,this._logService=v,this._unicodeService=_,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new d.EventEmitter,this._onHideLinkUnderline=new d.EventEmitter,this._onLinkTooltip=new d.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(p.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),p.prototype.attachToDom=function(m,v){this._element=m,this._mouseZoneManager=v},p.prototype.linkifyRows=function(m,v){var _=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=m,this._rowsToLinkify.end=v):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,m),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,v)),this._mouseZoneManager.clearAll(m,v),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return _._linkifyRows()},p._timeBeforeLatency))},p.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var m=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var v=m.ydisp+this._rowsToLinkify.start;if(!(v>=m.lines.length)){for(var _=m.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,y=Math.ceil(2e3/this._bufferService.cols),b=this._bufferService.buffer.iterator(!1,v,_,y,y);b.hasNext();)for(var w=b.next(),x=0;x<this._linkMatchers.length;x++)this._doLinkifyRow(w.range.first,w.content,this._linkMatchers[x]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},p.prototype.registerLinkMatcher=function(m,v,_){if(_===void 0&&(_={}),!v)throw new Error("handler must be defined");var y={id:this._nextLinkMatcherId++,regex:m,handler:v,matchIndex:_.matchIndex,validationCallback:_.validationCallback,hoverTooltipCallback:_.tooltipCallback,hoverLeaveCallback:_.leaveCallback,willLinkActivate:_.willLinkActivate,priority:_.priority||0};return this._addLinkMatcherToList(y),y.id},p.prototype._addLinkMatcherToList=function(m){if(this._linkMatchers.length!==0){for(var v=this._linkMatchers.length-1;v>=0;v--)if(m.priority<=this._linkMatchers[v].priority)return void this._linkMatchers.splice(v+1,0,m);this._linkMatchers.splice(0,0,m)}else this._linkMatchers.push(m)},p.prototype.deregisterLinkMatcher=function(m){for(var v=0;v<this._linkMatchers.length;v++)if(this._linkMatchers[v].id===m)return this._linkMatchers.splice(v,1),!0;return!1},p.prototype._doLinkifyRow=function(m,v,_){for(var y,b=this,w=new RegExp(_.regex.source,(_.regex.flags||"")+"g"),x=-1,S=function(){var T=y[typeof _.matchIndex!="number"?0:_.matchIndex];if(!T)return k._logService.debug("match found without corresponding matchIndex",y,_),"break";if(x=v.indexOf(T,x+1),w.lastIndex=x+T.length,x<0)return"break";var D=k._bufferService.buffer.stringIndexToBufferIndex(m,x);if(D[0]<0)return"break";var R=k._bufferService.buffer.lines.get(D[0]);if(!R)return"break";var N=R.getFg(D[1]),A=N?N>>9&511:void 0;_.validationCallback?_.validationCallback(T,function(V){b._rowsTimeoutId||V&&b._addLink(D[1],D[0]-b._bufferService.buffer.ydisp,T,_,A)}):k._addLink(D[1],D[0]-k._bufferService.buffer.ydisp,T,_,A)},k=this;(y=w.exec(v))!==null&&S()!=="break";);},p.prototype._addLink=function(m,v,_,y,b){var w=this;if(this._mouseZoneManager&&this._element){var x=this._unicodeService.getStringCellWidth(_),S=m%this._bufferService.cols,k=v+Math.floor(m/this._bufferService.cols),T=(S+x)%this._bufferService.cols,D=k+Math.floor((S+x)/this._bufferService.cols);T===0&&(T=this._bufferService.cols,D--),this._mouseZoneManager.add(new g(S+1,k+1,T+1,D+1,function(R){if(y.handler)return y.handler(R,_);var N=window.open();N?(N.opener=null,N.location.href=_):console.warn("Opening link blocked as opener could not be cleared")},function(){w._onShowLinkUnderline.fire(w._createLinkHoverEvent(S,k,T,D,b)),w._element.classList.add("xterm-cursor-pointer")},function(R){w._onLinkTooltip.fire(w._createLinkHoverEvent(S,k,T,D,b)),y.hoverTooltipCallback&&y.hoverTooltipCallback(R,_,{start:{x:S,y:k},end:{x:T,y:D}})},function(){w._onHideLinkUnderline.fire(w._createLinkHoverEvent(S,k,T,D,b)),w._element.classList.remove("xterm-cursor-pointer"),y.hoverLeaveCallback&&y.hoverLeaveCallback()},function(R){return!y.willLinkActivate||y.willLinkActivate(R,_)}))}},p.prototype._createLinkHoverEvent=function(m,v,_,y,b){return{x1:m,y1:v,x2:_,y2:y,cols:this._bufferService.cols,fg:b}},p._timeBeforeLatency=200,p=c([u(0,h.IBufferService),u(1,h.ILogService),u(2,h.IUnicodeService)],p)}();a.Linkifier=f;var g=function(p,m,v,_,y,b,w,x,S){this.x1=p,this.y1=m,this.x2=v,this.y2=_,this.clickCallback=y,this.hoverCallback=b,this.tooltipCallback=w,this.leaveCallback=x,this.willLinkActivate=S};a.MouseZone=g},6465:function(s,a,l){var c,u=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(b[x]=w[x])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function b(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),d=this&&this.__decorate||function(_,y,b,w){var x,S=arguments.length,k=S<3?y:w===null?w=Object.getOwnPropertyDescriptor(y,b):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(_,y,b,w);else for(var T=_.length-1;T>=0;T--)(x=_[T])&&(k=(S<3?x(k):S>3?x(y,b,k):x(y,b))||k);return S>3&&k&&Object.defineProperty(y,b,k),k},h=this&&this.__param||function(_,y){return function(b,w){y(b,w,_)}};Object.defineProperty(a,"__esModule",{value:!0}),a.Linkifier2=void 0;var f=l(2585),g=l(8460),p=l(844),m=l(3656),v=function(_){function y(b){var w=_.call(this)||this;return w._bufferService=b,w._linkProviders=[],w._linkCacheDisposables=[],w._isMouseOut=!0,w._activeLine=-1,w._onShowLinkUnderline=w.register(new g.EventEmitter),w._onHideLinkUnderline=w.register(new g.EventEmitter),w.register((0,p.getDisposeArrayDisposable)(w._linkCacheDisposables)),w}return u(y,_),Object.defineProperty(y.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),y.prototype.registerLinkProvider=function(b){var w=this;return this._linkProviders.push(b),{dispose:function(){var x=w._linkProviders.indexOf(b);x!==-1&&w._linkProviders.splice(x,1)}}},y.prototype.attachToDom=function(b,w,x){var S=this;this._element=b,this._mouseService=w,this._renderService=x,this.register((0,m.addDisposableDomListener)(this._element,"mouseleave",function(){S._isMouseOut=!0,S._clearCurrentLink()})),this.register((0,m.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,m.addDisposableDomListener)(this._element,"click",this._onClick.bind(this)))},y.prototype._onMouseMove=function(b){if(this._lastMouseEvent=b,this._element&&this._mouseService){var w=this._positionFromMouseEvent(b,this._element,this._mouseService);if(w){this._isMouseOut=!1;for(var x=b.composedPath(),S=0;S<x.length;S++){var k=x[S];if(k.classList.contains("xterm"))break;if(k.classList.contains("xterm-hover"))return}this._lastBufferCell&&w.x===this._lastBufferCell.x&&w.y===this._lastBufferCell.y||(this._onHover(w),this._lastBufferCell=w)}}},y.prototype._onHover=function(b){if(this._activeLine!==b.y)return this._clearCurrentLink(),void this._askForLink(b,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,b)||(this._clearCurrentLink(),this._askForLink(b,!0))},y.prototype._askForLink=function(b,w){var x,S=this;this._activeProviderReplies&&w||((x=this._activeProviderReplies)===null||x===void 0||x.forEach(function(T){T==null||T.forEach(function(D){D.link.dispose&&D.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=b.y);var k=!1;this._linkProviders.forEach(function(T,D){var R;w?((R=S._activeProviderReplies)===null||R===void 0?void 0:R.get(D))&&(k=S._checkLinkProviderResult(D,b,k)):T.provideLinks(b.y,function(N){var A,V;if(!S._isMouseOut){var P=N==null?void 0:N.map(function(U){return{link:U}});(A=S._activeProviderReplies)===null||A===void 0||A.set(D,P),k=S._checkLinkProviderResult(D,b,k),((V=S._activeProviderReplies)===null||V===void 0?void 0:V.size)===S._linkProviders.length&&S._removeIntersectingLinks(b.y,S._activeProviderReplies)}})})},y.prototype._removeIntersectingLinks=function(b,w){for(var x=new Set,S=0;S<w.size;S++){var k=w.get(S);if(k)for(var T=0;T<k.length;T++)for(var D=k[T],R=D.link.range.start.y<b?0:D.link.range.start.x,N=D.link.range.end.y>b?this._bufferService.cols:D.link.range.end.x,A=R;A<=N;A++){if(x.has(A)){k.splice(T--,1);break}x.add(A)}}},y.prototype._checkLinkProviderResult=function(b,w,x){var S,k=this;if(!this._activeProviderReplies)return x;for(var T=this._activeProviderReplies.get(b),D=!1,R=0;R<b;R++)this._activeProviderReplies.has(R)&&!this._activeProviderReplies.get(R)||(D=!0);if(!D&&T){var N=T.find(function(V){return k._linkAtPosition(V.link,w)});N&&(x=!0,this._handleNewLink(N))}if(this._activeProviderReplies.size===this._linkProviders.length&&!x)for(R=0;R<this._activeProviderReplies.size;R++){var A=(S=this._activeProviderReplies.get(R))===null||S===void 0?void 0:S.find(function(V){return k._linkAtPosition(V.link,w)});if(A){x=!0,this._handleNewLink(A);break}}return x},y.prototype._onClick=function(b){if(this._element&&this._mouseService&&this._currentLink){var w=this._positionFromMouseEvent(b,this._element,this._mouseService);w&&this._linkAtPosition(this._currentLink.link,w)&&this._currentLink.link.activate(b,this._currentLink.link.text)}},y.prototype._clearCurrentLink=function(b,w){this._element&&this._currentLink&&this._lastMouseEvent&&(!b||!w||this._currentLink.link.range.start.y>=b&&this._currentLink.link.range.end.y<=w)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,p.disposeArray)(this._linkCacheDisposables))},y.prototype._handleNewLink=function(b){var w=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var x=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);x&&this._linkAtPosition(b.link,x)&&(this._currentLink=b,this._currentLink.state={decorations:{underline:b.link.decorations===void 0||b.link.decorations.underline,pointerCursor:b.link.decorations===void 0||b.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,b.link,this._lastMouseEvent),b.link.decorations={},Object.defineProperties(b.link.decorations,{pointerCursor:{get:function(){var S,k;return(k=(S=w._currentLink)===null||S===void 0?void 0:S.state)===null||k===void 0?void 0:k.decorations.pointerCursor},set:function(S){var k,T;((k=w._currentLink)===null||k===void 0?void 0:k.state)&&w._currentLink.state.decorations.pointerCursor!==S&&(w._currentLink.state.decorations.pointerCursor=S,w._currentLink.state.isHovered&&((T=w._element)===null||T===void 0||T.classList.toggle("xterm-cursor-pointer",S)))}},underline:{get:function(){var S,k;return(k=(S=w._currentLink)===null||S===void 0?void 0:S.state)===null||k===void 0?void 0:k.decorations.underline},set:function(S){var k,T,D;((k=w._currentLink)===null||k===void 0?void 0:k.state)&&((D=(T=w._currentLink)===null||T===void 0?void 0:T.state)===null||D===void 0?void 0:D.decorations.underline)!==S&&(w._currentLink.state.decorations.underline=S,w._currentLink.state.isHovered&&w._fireUnderlineEvent(b.link,S))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(S){var k=S.start===0?0:S.start+1+w._bufferService.buffer.ydisp;w._clearCurrentLink(k,S.end+1+w._bufferService.buffer.ydisp)})))}},y.prototype._linkHover=function(b,w,x){var S;((S=this._currentLink)===null||S===void 0?void 0:S.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(w,!0),this._currentLink.state.decorations.pointerCursor&&b.classList.add("xterm-cursor-pointer")),w.hover&&w.hover(x,w.text)},y.prototype._fireUnderlineEvent=function(b,w){var x=b.range,S=this._bufferService.buffer.ydisp,k=this._createLinkUnderlineEvent(x.start.x-1,x.start.y-S-1,x.end.x,x.end.y-S-1,void 0);(w?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(k)},y.prototype._linkLeave=function(b,w,x){var S;((S=this._currentLink)===null||S===void 0?void 0:S.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(w,!1),this._currentLink.state.decorations.pointerCursor&&b.classList.remove("xterm-cursor-pointer")),w.leave&&w.leave(x,w.text)},y.prototype._linkAtPosition=function(b,w){var x=b.range.start.y===b.range.end.y,S=b.range.start.y<w.y,k=b.range.end.y>w.y;return(x&&b.range.start.x<=w.x&&b.range.end.x>=w.x||S&&b.range.end.x>=w.x||k&&b.range.start.x<=w.x||S&&k)&&b.range.start.y<=w.y&&b.range.end.y>=w.y},y.prototype._positionFromMouseEvent=function(b,w,x){var S=x.getCoords(b,w,this._bufferService.cols,this._bufferService.rows);if(S)return{x:S[0],y:S[1]+this._bufferService.buffer.ydisp}},y.prototype._createLinkUnderlineEvent=function(b,w,x,S,k){return{x1:b,y1:w,x2:x,y2:S,cols:this._bufferService.cols,fg:k}},d([h(0,f.IBufferService)],y)}(p.Disposable);a.Linkifier2=v},9042:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.tooMuchOutput=a.promptLabel=void 0,a.promptLabel="Terminal input",a.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(s,a,l){var c,u=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(b[x]=w[x])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function b(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),d=this&&this.__decorate||function(_,y,b,w){var x,S=arguments.length,k=S<3?y:w===null?w=Object.getOwnPropertyDescriptor(y,b):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(_,y,b,w);else for(var T=_.length-1;T>=0;T--)(x=_[T])&&(k=(S<3?x(k):S>3?x(y,b,k):x(y,b))||k);return S>3&&k&&Object.defineProperty(y,b,k),k},h=this&&this.__param||function(_,y){return function(b,w){y(b,w,_)}};Object.defineProperty(a,"__esModule",{value:!0}),a.MouseZoneManager=void 0;var f=l(844),g=l(3656),p=l(4725),m=l(2585),v=function(_){function y(b,w,x,S,k,T){var D=_.call(this)||this;return D._element=b,D._screenElement=w,D._bufferService=x,D._mouseService=S,D._selectionService=k,D._optionsService=T,D._zones=[],D._areZonesActive=!1,D._lastHoverCoords=[void 0,void 0],D._initialSelectionLength=0,D.register((0,g.addDisposableDomListener)(D._element,"mousedown",function(R){return D._onMouseDown(R)})),D._mouseMoveListener=function(R){return D._onMouseMove(R)},D._mouseLeaveListener=function(R){return D._onMouseLeave(R)},D._clickListener=function(R){return D._onClick(R)},D}return u(y,_),y.prototype.dispose=function(){_.prototype.dispose.call(this),this._deactivate()},y.prototype.add=function(b){this._zones.push(b),this._zones.length===1&&this._activate()},y.prototype.clearAll=function(b,w){if(this._zones.length!==0){b&&w||(b=0,w=this._bufferService.rows-1);for(var x=0;x<this._zones.length;x++){var S=this._zones[x];(S.y1>b&&S.y1<=w+1||S.y2>b&&S.y2<=w+1||S.y1<b&&S.y2>w+1)&&(this._currentZone&&this._currentZone===S&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(x--,1))}this._zones.length===0&&this._deactivate()}},y.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},y.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},y.prototype._onMouseMove=function(b){this._lastHoverCoords[0]===b.pageX&&this._lastHoverCoords[1]===b.pageY||(this._onHover(b),this._lastHoverCoords=[b.pageX,b.pageY])},y.prototype._onHover=function(b){var w=this,x=this._findZoneEventAt(b);x!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),x&&(this._currentZone=x,x.hoverCallback&&x.hoverCallback(b),this._tooltipTimeout=window.setTimeout(function(){return w._onTooltip(b)},this._optionsService.options.linkTooltipHoverDuration)))},y.prototype._onTooltip=function(b){this._tooltipTimeout=void 0;var w=this._findZoneEventAt(b);w==null||w.tooltipCallback(b)},y.prototype._onMouseDown=function(b){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var w=this._findZoneEventAt(b);(w==null?void 0:w.willLinkActivate(b))&&(b.preventDefault(),b.stopImmediatePropagation())}},y.prototype._onMouseLeave=function(b){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},y.prototype._onClick=function(b){var w=this._findZoneEventAt(b),x=this._getSelectionLength();w&&x===this._initialSelectionLength&&(w.clickCallback(b),b.preventDefault(),b.stopImmediatePropagation())},y.prototype._getSelectionLength=function(){var b=this._selectionService.selectionText;return b?b.length:0},y.prototype._findZoneEventAt=function(b){var w=this._mouseService.getCoords(b,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(w)for(var x=w[0],S=w[1],k=0;k<this._zones.length;k++){var T=this._zones[k];if(T.y1===T.y2){if(S===T.y1&&x>=T.x1&&x<T.x2)return T}else if(S===T.y1&&x>=T.x1||S===T.y2&&x<T.x2||S>T.y1&&S<T.y2)return T}},d([h(2,m.IBufferService),h(3,p.IMouseService),h(4,p.ISelectionService),h(5,m.IOptionsService)],y)}(f.Disposable);a.MouseZoneManager=v},6193:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.RenderDebouncer=void 0;var l=function(){function c(u){this._renderCallback=u}return c.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},c.prototype.refresh=function(u,d,h){var f=this;this._rowCount=h,u=u!==void 0?u:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,u):u,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return f._innerRefresh()}))},c.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var u=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(u,d)}},c}();a.RenderDebouncer=l},5596:function(s,a,l){var c,u=this&&this.__extends||(c=function(h,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,p){g.__proto__=p}||function(g,p){for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(g[m]=p[m])},c(h,f)},function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function g(){this.constructor=h}c(h,f),h.prototype=f===null?Object.create(f):(g.prototype=f.prototype,new g)});Object.defineProperty(a,"__esModule",{value:!0}),a.ScreenDprMonitor=void 0;var d=function(h){function f(){var g=h!==null&&h.apply(this,arguments)||this;return g._currentDevicePixelRatio=window.devicePixelRatio,g}return u(f,h),f.prototype.setListener=function(g){var p=this;this._listener&&this.clearListener(),this._listener=g,this._outerListener=function(){p._listener&&(p._listener(window.devicePixelRatio,p._currentDevicePixelRatio),p._updateDpr())},this._updateDpr()},f.prototype.dispose=function(){h.prototype.dispose.call(this),this.clearListener()},f.prototype._updateDpr=function(){var g;this._outerListener&&((g=this._resolutionMediaMatchList)===null||g===void 0||g.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},f.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},f}(l(844).Disposable);a.ScreenDprMonitor=d},3236:function(s,a,l){var c,u=this&&this.__extends||(c=function(Ie,K){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,oe){se.__proto__=oe}||function(se,oe){for(var Ne in oe)Object.prototype.hasOwnProperty.call(oe,Ne)&&(se[Ne]=oe[Ne])},c(Ie,K)},function(Ie,K){if(typeof K!="function"&&K!==null)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function se(){this.constructor=Ie}c(Ie,K),Ie.prototype=K===null?Object.create(K):(se.prototype=K.prototype,new se)});Object.defineProperty(a,"__esModule",{value:!0}),a.Terminal=void 0;var d=l(2950),h=l(1680),f=l(3614),g=l(2584),p=l(5435),m=l(3525),v=l(3551),_=l(9312),y=l(6114),b=l(3656),w=l(9042),x=l(357),S=l(6954),k=l(4567),T=l(1296),D=l(7399),R=l(8460),N=l(8437),A=l(5680),V=l(3230),P=l(4725),U=l(428),F=l(8934),M=l(6465),W=l(5114),j=l(8969),$=l(4774),Q=l(4269),ee=l(5941),ge=typeof window!="undefined"?window.document:null,_e=function(Ie){function K(se){se===void 0&&(se={});var oe=Ie.call(this,se)||this;return oe.browser=y,oe._keyDownHandled=!1,oe._keyPressHandled=!1,oe._unprocessedDeadKey=!1,oe._onCursorMove=new R.EventEmitter,oe._onKey=new R.EventEmitter,oe._onRender=new R.EventEmitter,oe._onSelectionChange=new R.EventEmitter,oe._onTitleChange=new R.EventEmitter,oe._onBell=new R.EventEmitter,oe._onFocus=new R.EventEmitter,oe._onBlur=new R.EventEmitter,oe._onA11yCharEmitter=new R.EventEmitter,oe._onA11yTabEmitter=new R.EventEmitter,oe._setup(),oe.linkifier=oe._instantiationService.createInstance(v.Linkifier),oe.linkifier2=oe.register(oe._instantiationService.createInstance(M.Linkifier2)),oe.register(oe._inputHandler.onRequestBell(function(){return oe.bell()})),oe.register(oe._inputHandler.onRequestRefreshRows(function(Ne,pe){return oe.refresh(Ne,pe)})),oe.register(oe._inputHandler.onRequestSendFocus(function(){return oe._reportFocus()})),oe.register(oe._inputHandler.onRequestReset(function(){return oe.reset()})),oe.register(oe._inputHandler.onRequestWindowsOptionsReport(function(Ne){return oe._reportWindowsOptions(Ne)})),oe.register(oe._inputHandler.onColor(function(Ne){return oe._handleColorEvent(Ne)})),oe.register((0,R.forwardEvent)(oe._inputHandler.onCursorMove,oe._onCursorMove)),oe.register((0,R.forwardEvent)(oe._inputHandler.onTitleChange,oe._onTitleChange)),oe.register((0,R.forwardEvent)(oe._inputHandler.onA11yChar,oe._onA11yCharEmitter)),oe.register((0,R.forwardEvent)(oe._inputHandler.onA11yTab,oe._onA11yTabEmitter)),oe.register(oe._bufferService.onResize(function(Ne){return oe._afterResize(Ne.cols,Ne.rows)})),oe}return u(K,Ie),Object.defineProperty(K.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),K.prototype._handleColorEvent=function(se){var oe,Ne;if(this._colorManager){for(var pe=0,Me=se;pe<Me.length;pe++){var at=Me[pe],_t=void 0,qe="";switch(at.index){case 256:_t="foreground",qe="10";break;case 257:_t="background",qe="11";break;case 258:_t="cursor",qe="12";break;default:_t="ansi",qe="4;"+at.index}if(_t)switch(at.type){case 0:var kt=$.color.toColorRGB(_t==="ansi"?this._colorManager.colors.ansi[at.index]:this._colorManager.colors[_t]);this.coreService.triggerDataEvent(g.C0.ESC+"]"+qe+";"+(0,ee.toRgbString)(kt)+g.C0.BEL);break;case 1:_t==="ansi"?this._colorManager.colors.ansi[at.index]=$.rgba.toColor.apply($.rgba,at.color):this._colorManager.colors[_t]=$.rgba.toColor.apply($.rgba,at.color);break;case 2:this._colorManager.restoreColor(at.index)}}(oe=this._renderService)===null||oe===void 0||oe.setColors(this._colorManager.colors),(Ne=this.viewport)===null||Ne===void 0||Ne.onThemeChange(this._colorManager.colors)}},K.prototype.dispose=function(){var se,oe,Ne;this._isDisposed||(Ie.prototype.dispose.call(this),(se=this._renderService)===null||se===void 0||se.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(Ne=(oe=this.element)===null||oe===void 0?void 0:oe.parentNode)===null||Ne===void 0||Ne.removeChild(this.element))},K.prototype._setup=function(){Ie.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(K.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),K.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},K.prototype._updateOptions=function(se){var oe,Ne,pe,Me;switch(Ie.prototype._updateOptions.call(this,se),se){case"fontFamily":case"fontSize":(oe=this._renderService)===null||oe===void 0||oe.clear(),(Ne=this._charSizeService)===null||Ne===void 0||Ne.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(pe=this.viewport)===null||pe===void 0||pe.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new k.AccessibilityManager(this,this._renderService)):((Me=this._accessibilityManager)===null||Me===void 0||Me.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},K.prototype._onTextAreaFocus=function(se){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(g.C0.ESC+"[I"),this.updateCursorStyle(se),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},K.prototype.blur=function(){var se;return(se=this.textarea)===null||se===void 0?void 0:se.blur()},K.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(g.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},K.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var se=this.buffer.ybase+this.buffer.y,oe=this.buffer.lines.get(se);if(oe){var Ne=Math.min(this.buffer.x,this.cols-1),pe=this._renderService.dimensions.actualCellHeight,Me=oe.getWidth(Ne),at=this._renderService.dimensions.actualCellWidth*Me,_t=this.buffer.y*this._renderService.dimensions.actualCellHeight,qe=Ne*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=qe+"px",this.textarea.style.top=_t+"px",this.textarea.style.width=at+"px",this.textarea.style.height=pe+"px",this.textarea.style.lineHeight=pe+"px",this.textarea.style.zIndex="-5"}}},K.prototype._initGlobal=function(){var se=this;this._bindKeys(),this.register((0,b.addDisposableDomListener)(this.element,"copy",function(Ne){se.hasSelection()&&(0,f.copyHandler)(Ne,se._selectionService)}));var oe=function(Ne){return(0,f.handlePasteEvent)(Ne,se.textarea,se.coreService)};this.register((0,b.addDisposableDomListener)(this.textarea,"paste",oe)),this.register((0,b.addDisposableDomListener)(this.element,"paste",oe)),y.isFirefox?this.register((0,b.addDisposableDomListener)(this.element,"mousedown",function(Ne){Ne.button===2&&(0,f.rightClickHandler)(Ne,se.textarea,se.screenElement,se._selectionService,se.options.rightClickSelectsWord)})):this.register((0,b.addDisposableDomListener)(this.element,"contextmenu",function(Ne){(0,f.rightClickHandler)(Ne,se.textarea,se.screenElement,se._selectionService,se.options.rightClickSelectsWord)})),y.isLinux&&this.register((0,b.addDisposableDomListener)(this.element,"auxclick",function(Ne){Ne.button===1&&(0,f.moveTextAreaUnderMouseCursor)(Ne,se.textarea,se.screenElement)}))},K.prototype._bindKeys=function(){var se=this;this.register((0,b.addDisposableDomListener)(this.textarea,"keyup",function(oe){return se._keyUp(oe)},!0)),this.register((0,b.addDisposableDomListener)(this.textarea,"keydown",function(oe){return se._keyDown(oe)},!0)),this.register((0,b.addDisposableDomListener)(this.textarea,"keypress",function(oe){return se._keyPress(oe)},!0)),this.register((0,b.addDisposableDomListener)(this.textarea,"compositionstart",function(){return se._compositionHelper.compositionstart()})),this.register((0,b.addDisposableDomListener)(this.textarea,"compositionupdate",function(oe){return se._compositionHelper.compositionupdate(oe)})),this.register((0,b.addDisposableDomListener)(this.textarea,"compositionend",function(){return se._compositionHelper.compositionend()})),this.register((0,b.addDisposableDomListener)(this.textarea,"input",function(oe){return se._inputEvent(oe)},!0)),this.register(this.onRender(function(){return se._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(oe){return se._queueLinkification(oe.start,oe.end)}))},K.prototype.open=function(se){var oe=this;if(!se)throw new Error("Terminal requires a parent element.");se.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=se.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),se.appendChild(this.element);var Ne=ge.createDocumentFragment();this._viewportElement=ge.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),Ne.appendChild(this._viewportElement),this._viewportScrollArea=ge.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=ge.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=ge.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),Ne.appendChild(this.screenElement),this.textarea=ge.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",w.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,b.addDisposableDomListener)(this.textarea,"focus",function(at){return oe._onTextAreaFocus(at)})),this.register((0,b.addDisposableDomListener)(this.textarea,"blur",function(){return oe._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var pe=this._instantiationService.createInstance(W.CoreBrowserService,this.textarea);this._instantiationService.setService(P.ICoreBrowserService,pe),this._charSizeService=this._instantiationService.createInstance(U.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(P.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new A.ColorManager(ge,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(at){return oe._colorManager.onOptionsChange(at)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(Q.CharacterJoinerService),this._instantiationService.setService(P.ICharacterJoinerService,this._characterJoinerService);var Me=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(V.RenderService,Me,this.rows,this.screenElement)),this._instantiationService.setService(P.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(at){return oe._onRender.fire(at)})),this.onResize(function(at){return oe._renderService.resize(at.cols,at.rows)}),this._compositionView=ge.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(d.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(Ne),this._soundService=this._instantiationService.createInstance(x.SoundService),this._instantiationService.setService(P.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(F.MouseService),this._instantiationService.setService(P.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(h.Viewport,function(at){return oe.scrollLines(at,!0,1)},this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return oe.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){oe._renderService.onCursorMove(),oe._syncTextArea()})),this.register(this.onResize(function(){return oe._renderService.onResize(oe.cols,oe.rows)})),this.register(this.onBlur(function(){return oe._renderService.onBlur()})),this.register(this.onFocus(function(){return oe._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return oe.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(_.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(P.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(at){return oe.scrollLines(at.amount,at.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return oe._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(at){return oe._renderService.onSelectionChanged(at.start,at.end,at.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(at){oe.textarea.value=at,oe.textarea.focus(),oe.textarea.select()})),this.register(this._onScroll.event(function(at){oe.viewport.syncScrollArea(),oe._selectionService.refresh()})),this.register((0,b.addDisposableDomListener)(this._viewportElement,"scroll",function(){return oe._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(S.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return oe._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register((0,b.addDisposableDomListener)(this.element,"mousedown",function(at){return oe._selectionService.onMouseDown(at)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new k.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},K.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(m.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(T.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},K.prototype._setTheme=function(se){var oe,Ne,pe;this._theme=se,(oe=this._colorManager)===null||oe===void 0||oe.setTheme(se),(Ne=this._renderService)===null||Ne===void 0||Ne.setColors(this._colorManager.colors),(pe=this.viewport)===null||pe===void 0||pe.onThemeChange(this._colorManager.colors)},K.prototype.bindMouse=function(){var se=this,oe=this,Ne=this.element;function pe(ve){var B,G,te=oe._mouseService.getRawByteCoords(ve,oe.screenElement,oe.cols,oe.rows);if(!te)return!1;switch(ve.overrideType||ve.type){case"mousemove":G=32,ve.buttons===void 0?(B=3,ve.button!==void 0&&(B=ve.button<3?ve.button:3)):B=1&ve.buttons?0:4&ve.buttons?1:2&ve.buttons?2:3;break;case"mouseup":G=0,B=ve.button<3?ve.button:3;break;case"mousedown":G=1,B=ve.button<3?ve.button:3;break;case"wheel":ve.deltaY!==0&&(G=ve.deltaY<0?0:1),B=4;break;default:return!1}return!(G===void 0||B===void 0||B>4)&&oe.coreMouseService.triggerMouseEvent({col:te.x-33,row:te.y-33,button:B,action:G,ctrl:ve.ctrlKey,alt:ve.altKey,shift:ve.shiftKey})}var Me={mouseup:null,wheel:null,mousedrag:null,mousemove:null},at=function(ve){return pe(ve),ve.buttons||(se._document.removeEventListener("mouseup",Me.mouseup),Me.mousedrag&&se._document.removeEventListener("mousemove",Me.mousedrag)),se.cancel(ve)},_t=function(ve){return pe(ve),se.cancel(ve,!0)},qe=function(ve){ve.buttons&&pe(ve)},kt=function(ve){ve.buttons||pe(ve)};this.register(this.coreMouseService.onProtocolChange(function(ve){ve?(se.optionsService.options.logLevel==="debug"&&se._logService.debug("Binding to mouse events:",se.coreMouseService.explainEvents(ve)),se.element.classList.add("enable-mouse-events"),se._selectionService.disable()):(se._logService.debug("Unbinding from mouse events."),se.element.classList.remove("enable-mouse-events"),se._selectionService.enable()),8&ve?Me.mousemove||(Ne.addEventListener("mousemove",kt),Me.mousemove=kt):(Ne.removeEventListener("mousemove",Me.mousemove),Me.mousemove=null),16&ve?Me.wheel||(Ne.addEventListener("wheel",_t,{passive:!1}),Me.wheel=_t):(Ne.removeEventListener("wheel",Me.wheel),Me.wheel=null),2&ve?Me.mouseup||(Me.mouseup=at):(se._document.removeEventListener("mouseup",Me.mouseup),Me.mouseup=null),4&ve?Me.mousedrag||(Me.mousedrag=qe):(se._document.removeEventListener("mousemove",Me.mousedrag),Me.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,b.addDisposableDomListener)(Ne,"mousedown",function(ve){if(ve.preventDefault(),se.focus(),se.coreMouseService.areMouseEventsActive&&!se._selectionService.shouldForceSelection(ve))return pe(ve),Me.mouseup&&se._document.addEventListener("mouseup",Me.mouseup),Me.mousedrag&&se._document.addEventListener("mousemove",Me.mousedrag),se.cancel(ve)})),this.register((0,b.addDisposableDomListener)(Ne,"wheel",function(ve){if(!Me.wheel){if(!se.buffer.hasScrollback){var B=se.viewport.getLinesScrolled(ve);if(B===0)return;for(var G=g.C0.ESC+(se.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ve.deltaY<0?"A":"B"),te="",Se=0;Se<Math.abs(B);Se++)te+=G;return se.coreService.triggerDataEvent(te,!0),se.cancel(ve,!0)}return se.viewport.onWheel(ve)?se.cancel(ve):void 0}},{passive:!1})),this.register((0,b.addDisposableDomListener)(Ne,"touchstart",function(ve){if(!se.coreMouseService.areMouseEventsActive)return se.viewport.onTouchStart(ve),se.cancel(ve)},{passive:!0})),this.register((0,b.addDisposableDomListener)(Ne,"touchmove",function(ve){if(!se.coreMouseService.areMouseEventsActive)return se.viewport.onTouchMove(ve)?void 0:se.cancel(ve)},{passive:!1}))},K.prototype.refresh=function(se,oe){var Ne;(Ne=this._renderService)===null||Ne===void 0||Ne.refreshRows(se,oe)},K.prototype._queueLinkification=function(se,oe){var Ne;(Ne=this.linkifier)===null||Ne===void 0||Ne.linkifyRows(se,oe)},K.prototype.updateCursorStyle=function(se){var oe;((oe=this._selectionService)===null||oe===void 0?void 0:oe.shouldColumnSelect(se))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},K.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},K.prototype.scrollLines=function(se,oe,Ne){Ne===void 0&&(Ne=0),Ie.prototype.scrollLines.call(this,se,oe,Ne),this.refresh(0,this.rows-1)},K.prototype.paste=function(se){(0,f.paste)(se,this.textarea,this.coreService)},K.prototype.attachCustomKeyEventHandler=function(se){this._customKeyEventHandler=se},K.prototype.registerLinkMatcher=function(se,oe,Ne){var pe=this.linkifier.registerLinkMatcher(se,oe,Ne);return this.refresh(0,this.rows-1),pe},K.prototype.deregisterLinkMatcher=function(se){this.linkifier.deregisterLinkMatcher(se)&&this.refresh(0,this.rows-1)},K.prototype.registerLinkProvider=function(se){return this.linkifier2.registerLinkProvider(se)},K.prototype.registerCharacterJoiner=function(se){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var oe=this._characterJoinerService.register(se);return this.refresh(0,this.rows-1),oe},K.prototype.deregisterCharacterJoiner=function(se){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(se)&&this.refresh(0,this.rows-1)},Object.defineProperty(K.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),K.prototype.addMarker=function(se){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+se)},K.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},K.prototype.select=function(se,oe,Ne){this._selectionService.setSelection(se,oe,Ne)},K.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},K.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},K.prototype.clearSelection=function(){var se;(se=this._selectionService)===null||se===void 0||se.clearSelection()},K.prototype.selectAll=function(){var se;(se=this._selectionService)===null||se===void 0||se.selectAll()},K.prototype.selectLines=function(se,oe){var Ne;(Ne=this._selectionService)===null||Ne===void 0||Ne.selectLines(se,oe)},K.prototype._keyDown=function(se){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(se)===!1)return!1;if(!this._compositionHelper.keydown(se))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;se.key!=="Dead"&&se.key!=="AltGraph"||(this._unprocessedDeadKey=!0);var oe=(0,D.evaluateKeyboardEvent)(se,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(se),oe.type===3||oe.type===2){var Ne=this.rows-1;return this.scrollLines(oe.type===2?-Ne:Ne),this.cancel(se,!0)}return oe.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,se)||(oe.cancel&&this.cancel(se,!0),!oe.key||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(oe.key!==g.C0.ETX&&oe.key!==g.C0.CR||(this.textarea.value=""),this._onKey.fire({key:oe.key,domEvent:se}),this._showCursor(),this.coreService.triggerDataEvent(oe.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(se,!0))))},K.prototype._isThirdLevelShift=function(se,oe){var Ne=se.isMac&&!this.options.macOptionIsMeta&&oe.altKey&&!oe.ctrlKey&&!oe.metaKey||se.isWindows&&oe.altKey&&oe.ctrlKey&&!oe.metaKey||se.isWindows&&oe.getModifierState("AltGraph");return oe.type==="keypress"?Ne:Ne&&(!oe.keyCode||oe.keyCode>47)},K.prototype._keyUp=function(se){this._customKeyEventHandler&&this._customKeyEventHandler(se)===!1||(function(oe){return oe.keyCode===16||oe.keyCode===17||oe.keyCode===18}(se)||this.focus(),this.updateCursorStyle(se),this._keyPressHandled=!1)},K.prototype._keyPress=function(se){var oe;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(se)===!1)return!1;if(this.cancel(se),se.charCode)oe=se.charCode;else if(se.which===null||se.which===void 0)oe=se.keyCode;else{if(se.which===0||se.charCode===0)return!1;oe=se.which}return!(!oe||(se.altKey||se.ctrlKey||se.metaKey)&&!this._isThirdLevelShift(this.browser,se)||(oe=String.fromCharCode(oe),this._onKey.fire({key:oe,domEvent:se}),this._showCursor(),this.coreService.triggerDataEvent(oe,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},K.prototype._inputEvent=function(se){if(se.data&&se.inputType==="insertText"&&!se.composed&&!this.optionsService.options.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var oe=se.data;return this.coreService.triggerDataEvent(oe,!0),this.cancel(se),!0}return!1},K.prototype.bell=function(){var se;this._soundBell()&&((se=this._soundService)===null||se===void 0||se.playBellSound()),this._onBell.fire()},K.prototype.resize=function(se,oe){se!==this.cols||oe!==this.rows?Ie.prototype.resize.call(this,se,oe):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},K.prototype._afterResize=function(se,oe){var Ne,pe;(Ne=this._charSizeService)===null||Ne===void 0||Ne.measure(),(pe=this.viewport)===null||pe===void 0||pe.syncScrollArea(!0)},K.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var se=1;se<this.rows;se++)this.buffer.lines.push(this.buffer.getBlankLine(N.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},K.prototype.reset=function(){var se,oe;this.options.rows=this.rows,this.options.cols=this.cols;var Ne=this._customKeyEventHandler;this._setup(),Ie.prototype.reset.call(this),(se=this._selectionService)===null||se===void 0||se.reset(),this._customKeyEventHandler=Ne,this.refresh(0,this.rows-1),(oe=this.viewport)===null||oe===void 0||oe.syncScrollArea()},K.prototype.clearTextureAtlas=function(){var se;(se=this._renderService)===null||se===void 0||se.clearTextureAtlas()},K.prototype._reportFocus=function(){var se;((se=this.element)===null||se===void 0?void 0:se.classList.contains("focus"))?this.coreService.triggerDataEvent(g.C0.ESC+"[I"):this.coreService.triggerDataEvent(g.C0.ESC+"[O")},K.prototype._reportWindowsOptions=function(se){if(this._renderService)switch(se){case p.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var oe=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),Ne=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(g.C0.ESC+"[4;"+Ne+";"+oe+"t");break;case p.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var pe=this._renderService.dimensions.scaledCellWidth.toFixed(0),Me=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(g.C0.ESC+"[6;"+Me+";"+pe+"t")}},K.prototype.cancel=function(se,oe){if(this.options.cancelEvents||oe)return se.preventDefault(),se.stopPropagation(),!1},K.prototype._visualBell=function(){return!1},K.prototype._soundBell=function(){return this.options.bellStyle==="sound"},K}(j.CoreTerminal);a.Terminal=_e},9924:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.TimeBasedDebouncer=void 0;var l=function(){function c(u,d){d===void 0&&(d=1e3),this._renderCallback=u,this._debounceThresholdMS=d,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return c.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},c.prototype.refresh=function(u,d,h){var f=this;this._rowCount=h,u=u!==void 0?u:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,u):u,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d;var g=Date.now();if(g-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=g,this._innerRefresh();else if(!this._additionalRefreshRequested){var p=g-this._lastRefreshMs,m=this._debounceThresholdMS-p;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){f._lastRefreshMs=Date.now(),f._innerRefresh(),f._additionalRefreshRequested=!1,f._refreshTimeoutID=void 0},m)}},c.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var u=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(u,d)}},c}();a.TimeBasedDebouncer=l},1680:function(s,a,l){var c,u=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(b[x]=w[x])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function b(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),d=this&&this.__decorate||function(_,y,b,w){var x,S=arguments.length,k=S<3?y:w===null?w=Object.getOwnPropertyDescriptor(y,b):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(_,y,b,w);else for(var T=_.length-1;T>=0;T--)(x=_[T])&&(k=(S<3?x(k):S>3?x(y,b,k):x(y,b))||k);return S>3&&k&&Object.defineProperty(y,b,k),k},h=this&&this.__param||function(_,y){return function(b,w){y(b,w,_)}};Object.defineProperty(a,"__esModule",{value:!0}),a.Viewport=void 0;var f=l(844),g=l(3656),p=l(4725),m=l(2585),v=function(_){function y(b,w,x,S,k,T,D,R){var N=_.call(this)||this;return N._scrollLines=b,N._viewportElement=w,N._scrollArea=x,N._element=S,N._bufferService=k,N._optionsService=T,N._charSizeService=D,N._renderService=R,N.scrollBarWidth=0,N._currentRowHeight=0,N._currentScaledCellHeight=0,N._lastRecordedBufferLength=0,N._lastRecordedViewportHeight=0,N._lastRecordedBufferHeight=0,N._lastTouchY=0,N._lastScrollTop=0,N._lastHadScrollBar=!1,N._wheelPartialScroll=0,N._refreshAnimationFrame=null,N._ignoreNextScrollEvent=!1,N.scrollBarWidth=N._viewportElement.offsetWidth-N._scrollArea.offsetWidth||15,N._lastHadScrollBar=!0,N.register((0,g.addDisposableDomListener)(N._viewportElement,"scroll",N._onScroll.bind(N))),N._activeBuffer=N._bufferService.buffer,N.register(N._bufferService.buffers.onBufferActivate(function(A){return N._activeBuffer=A.activeBuffer})),N._renderDimensions=N._renderService.dimensions,N.register(N._renderService.onDimensionsChange(function(A){return N._renderDimensions=A})),setTimeout(function(){return N.syncScrollArea()},0),N}return u(y,_),y.prototype.onThemeChange=function(b){this._viewportElement.style.backgroundColor=b.background.css},y.prototype._refresh=function(b){var w=this;if(b)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return w._innerRefresh()}))},y.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var b=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==b&&(this._lastRecordedBufferHeight=b,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var w=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==w&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=w),this._optionsService.options.scrollback===0?this.scrollBarWidth=0:this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this._lastHadScrollBar=this.scrollBarWidth>0;var x=window.getComputedStyle(this._element),S=parseInt(x.paddingLeft)+parseInt(x.paddingRight);this._viewportElement.style.width=(this._renderService.dimensions.actualCellWidth*this._bufferService.cols+this.scrollBarWidth+(this._lastHadScrollBar?S:0)).toString()+"px",this._refreshAnimationFrame=null},y.prototype.syncScrollArea=function(b){if(b===void 0&&(b=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(b);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight?this._lastHadScrollBar!==this._optionsService.options.scrollback>0&&this._refresh(b):this._refresh(b)},y.prototype._onScroll=function(b){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var w=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(w)}},y.prototype._bubbleScroll=function(b,w){var x=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(w<0&&this._viewportElement.scrollTop!==0||w>0&&x<this._lastRecordedBufferHeight)||(b.cancelable&&b.preventDefault(),!1)},y.prototype.onWheel=function(b){var w=this._getPixelsScrolled(b);return w!==0&&(this._viewportElement.scrollTop+=w,this._bubbleScroll(b,w))},y.prototype._getPixelsScrolled=function(b){if(b.deltaY===0||b.shiftKey)return 0;var w=this._applyScrollModifier(b.deltaY,b);return b.deltaMode===WheelEvent.DOM_DELTA_LINE?w*=this._currentRowHeight:b.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(w*=this._currentRowHeight*this._bufferService.rows),w},y.prototype.getLinesScrolled=function(b){if(b.deltaY===0||b.shiftKey)return 0;var w=this._applyScrollModifier(b.deltaY,b);return b.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(w/=this._currentRowHeight+0,this._wheelPartialScroll+=w,w=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):b.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(w*=this._bufferService.rows),w},y.prototype._applyScrollModifier=function(b,w){var x=this._optionsService.options.fastScrollModifier;return x==="alt"&&w.altKey||x==="ctrl"&&w.ctrlKey||x==="shift"&&w.shiftKey?b*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:b*this._optionsService.options.scrollSensitivity},y.prototype.onTouchStart=function(b){this._lastTouchY=b.touches[0].pageY},y.prototype.onTouchMove=function(b){var w=this._lastTouchY-b.touches[0].pageY;return this._lastTouchY=b.touches[0].pageY,w!==0&&(this._viewportElement.scrollTop+=w,this._bubbleScroll(b,w))},d([h(4,m.IBufferService),h(5,m.IOptionsService),h(6,p.ICharSizeService),h(7,p.IRenderService)],y)}(f.Disposable);a.Viewport=v},2950:function(s,a,l){var c=this&&this.__decorate||function(g,p,m,v){var _,y=arguments.length,b=y<3?p:v===null?v=Object.getOwnPropertyDescriptor(p,m):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(g,p,m,v);else for(var w=g.length-1;w>=0;w--)(_=g[w])&&(b=(y<3?_(b):y>3?_(p,m,b):_(p,m))||b);return y>3&&b&&Object.defineProperty(p,m,b),b},u=this&&this.__param||function(g,p){return function(m,v){p(m,v,g)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CompositionHelper=void 0;var d=l(4725),h=l(2585),f=function(){function g(p,m,v,_,y,b){this._textarea=p,this._compositionView=m,this._bufferService=v,this._optionsService=_,this._coreService=y,this._renderService=b,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(g.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),g.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},g.prototype.compositionupdate=function(p){var m=this;this._compositionView.textContent=p.data,this.updateCompositionElements(),setTimeout(function(){m._compositionPosition.end=m._textarea.value.length},0)},g.prototype.compositionend=function(){this._finalizeComposition(!0)},g.prototype.keydown=function(p){if(this._isComposing||this._isSendingComposition){if(p.keyCode===229||p.keyCode===16||p.keyCode===17||p.keyCode===18)return!1;this._finalizeComposition(!1)}return p.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},g.prototype._finalizeComposition=function(p){var m=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,p){var v={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(m._isSendingComposition){m._isSendingComposition=!1;var y;v.start+=m._dataAlreadySent.length,(y=m._isComposing?m._textarea.value.substring(v.start,v.end):m._textarea.value.substring(v.start)).length>0&&m._coreService.triggerDataEvent(y,!0)}},0)}else{this._isSendingComposition=!1;var _=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(_,!0)}},g.prototype._handleAnyTextareaChanges=function(){var p=this,m=this._textarea.value;setTimeout(function(){if(!p._isComposing){var v=p._textarea.value.replace(m,"");v.length>0&&(p._dataAlreadySent=v,p._coreService.triggerDataEvent(v,!0))}},0)},g.prototype.updateCompositionElements=function(p){var m=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var v=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),_=this._renderService.dimensions.actualCellHeight,y=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,b=v*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=b+"px",this._compositionView.style.top=y+"px",this._compositionView.style.height=_+"px",this._compositionView.style.lineHeight=_+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var w=this._compositionView.getBoundingClientRect();this._textarea.style.left=b+"px",this._textarea.style.top=y+"px",this._textarea.style.width=Math.max(w.width,1)+"px",this._textarea.style.height=Math.max(w.height,1)+"px",this._textarea.style.lineHeight=w.height+"px"}p||setTimeout(function(){return m.updateCompositionElements(!0)},0)}},c([u(2,h.IBufferService),u(3,h.IOptionsService),u(4,h.ICoreService),u(5,d.IRenderService)],g)}();a.CompositionHelper=f},9806:(s,a)=>{function l(c,u){var d=u.getBoundingClientRect();return[c.clientX-d.left,c.clientY-d.top]}Object.defineProperty(a,"__esModule",{value:!0}),a.getRawByteCoords=a.getCoords=a.getCoordsRelativeToElement=void 0,a.getCoordsRelativeToElement=l,a.getCoords=function(c,u,d,h,f,g,p,m){if(f){var v=l(c,u);if(v)return v[0]=Math.ceil((v[0]+(m?g/2:0))/g),v[1]=Math.ceil(v[1]/p),v[0]=Math.min(Math.max(v[0],1),d+(m?1:0)),v[1]=Math.min(Math.max(v[1],1),h),v}},a.getRawByteCoords=function(c){if(c)return{x:c[0]+32,y:c[1]+32}}},9504:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.moveToCellSequence=void 0;var c=l(2584);function u(m,v,_,y){var b=m-d(_,m),w=v-d(_,v),x=Math.abs(b-w)-function(S,k,T){for(var D=0,R=S-d(T,S),N=k-d(T,k),A=0;A<Math.abs(R-N);A++){var V=h(S,k)==="A"?-1:1,P=T.buffer.lines.get(R+V*A);(P==null?void 0:P.isWrapped)&&D++}return D}(m,v,_);return p(x,g(h(m,v),y))}function d(m,v){for(var _=0,y=m.buffer.lines.get(v),b=y==null?void 0:y.isWrapped;b&&v>=0&&v<m.rows;)_++,b=(y=m.buffer.lines.get(--v))==null?void 0:y.isWrapped;return _}function h(m,v){return m>v?"A":"B"}function f(m,v,_,y,b,w){for(var x=m,S=v,k="";x!==_||S!==y;)x+=b?1:-1,b&&x>w.cols-1?(k+=w.buffer.translateBufferLineToString(S,!1,m,x),x=0,m=0,S++):!b&&x<0&&(k+=w.buffer.translateBufferLineToString(S,!1,0,m+1),m=x=w.cols-1,S--);return k+w.buffer.translateBufferLineToString(S,!1,m,x)}function g(m,v){var _=v?"O":"[";return c.C0.ESC+_+m}function p(m,v){m=Math.floor(m);for(var _="",y=0;y<m;y++)_+=v;return _}a.moveToCellSequence=function(m,v,_,y){var b,w=_.buffer.x,x=_.buffer.y;if(!_.buffer.hasScrollback)return function(k,T,D,R,N,A){return u(T,R,N,A).length===0?"":p(f(k,T,k,T-d(N,T),!1,N).length,g("D",A))}(w,x,0,v,_,y)+u(x,v,_,y)+function(k,T,D,R,N,A){var V;V=u(T,R,N,A).length>0?R-d(N,R):T;var P=R,U=function(F,M,W,j,$,Q){var ee;return ee=u(W,j,$,Q).length>0?j-d($,j):M,F<W&&ee<=j||F>=W&&ee<j?"C":"D"}(k,T,D,R,N,A);return p(f(k,V,D,P,U==="C",N).length,g(U,A))}(w,x,m,v,_,y);if(x===v)return b=w>m?"D":"C",p(Math.abs(w-m),g(b,y));b=x>v?"D":"C";var S=Math.abs(x-v);return p(function(k,T){return T.cols-k}(x>v?m:w,_)+(S-1)*_.cols+1+((x>v?w:m)-1),g(b,y))}},1546:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BaseRenderLayer=void 0;var c=l(643),u=l(8803),d=l(1420),h=l(3734),f=l(1752),g=l(4774),p=l(9631),m=l(8978),v=function(){function _(y,b,w,x,S,k,T,D){this._container=y,this._alpha=x,this._colors=S,this._rendererId=k,this._bufferService=T,this._optionsService=D,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+b+"-layer"),this._canvas.style.zIndex=w.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return _.prototype.dispose=function(){var y;(0,p.removeElementFromParent)(this._canvas),(y=this._charAtlas)===null||y===void 0||y.dispose()},_.prototype._initCanvas=function(){this._ctx=(0,f.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},_.prototype.onOptionsChanged=function(){},_.prototype.onBlur=function(){},_.prototype.onFocus=function(){},_.prototype.onCursorMove=function(){},_.prototype.onGridChanged=function(y,b){},_.prototype.onSelectionChanged=function(y,b,w){},_.prototype.setColors=function(y){this._refreshCharAtlas(y)},_.prototype._setTransparency=function(y){if(y!==this._alpha){var b=this._canvas;this._alpha=y,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,b),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},_.prototype._refreshCharAtlas=function(y){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,d.acquireCharAtlas)(this._optionsService.options,this._rendererId,y,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},_.prototype.resize=function(y){this._scaledCellWidth=y.scaledCellWidth,this._scaledCellHeight=y.scaledCellHeight,this._scaledCharWidth=y.scaledCharWidth,this._scaledCharHeight=y.scaledCharHeight,this._scaledCharLeft=y.scaledCharLeft,this._scaledCharTop=y.scaledCharTop,this._canvas.width=y.scaledCanvasWidth,this._canvas.height=y.scaledCanvasHeight,this._canvas.style.width=y.canvasWidth+"px",this._canvas.style.height=y.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},_.prototype.clearTextureAtlas=function(){var y;(y=this._charAtlas)===null||y===void 0||y.clear()},_.prototype._fillCells=function(y,b,w,x){this._ctx.fillRect(y*this._scaledCellWidth,b*this._scaledCellHeight,w*this._scaledCellWidth,x*this._scaledCellHeight)},_.prototype._fillMiddleLineAtCells=function(y,b,w){w===void 0&&(w=1);var x=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(y*this._scaledCellWidth,(b+1)*this._scaledCellHeight-x-window.devicePixelRatio,w*this._scaledCellWidth,window.devicePixelRatio)},_.prototype._fillBottomLineAtCells=function(y,b,w){w===void 0&&(w=1),this._ctx.fillRect(y*this._scaledCellWidth,(b+1)*this._scaledCellHeight-window.devicePixelRatio-1,w*this._scaledCellWidth,window.devicePixelRatio)},_.prototype._fillLeftLineAtCell=function(y,b,w){this._ctx.fillRect(y*this._scaledCellWidth,b*this._scaledCellHeight,window.devicePixelRatio*w,this._scaledCellHeight)},_.prototype._strokeRectAtCell=function(y,b,w,x){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(y*this._scaledCellWidth+window.devicePixelRatio/2,b*this._scaledCellHeight+window.devicePixelRatio/2,w*this._scaledCellWidth-window.devicePixelRatio,x*this._scaledCellHeight-window.devicePixelRatio)},_.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},_.prototype._clearCells=function(y,b,w,x){this._alpha?this._ctx.clearRect(y*this._scaledCellWidth,b*this._scaledCellHeight,w*this._scaledCellWidth,x*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(y*this._scaledCellWidth,b*this._scaledCellHeight,w*this._scaledCellWidth,x*this._scaledCellHeight))},_.prototype._fillCharTrueColor=function(y,b,w){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=u.TEXT_BASELINE,this._clipRow(w);var x=!1;this._optionsService.options.customGlyphs!==!1&&(x=(0,m.tryDrawCustomChar)(this._ctx,y.getChars(),b*this._scaledCellWidth,w*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),x||this._ctx.fillText(y.getChars(),b*this._scaledCellWidth+this._scaledCharLeft,w*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},_.prototype._drawChars=function(y,b,w){var x,S,k,T=this._getContrastColor(y);T||y.isFgRGB()||y.isBgRGB()?this._drawUncachedChars(y,b,w,T):(y.isInverse()?(S=y.isBgDefault()?u.INVERTED_DEFAULT_COLOR:y.getBgColor(),k=y.isFgDefault()?u.INVERTED_DEFAULT_COLOR:y.getFgColor()):(k=y.isBgDefault()?c.DEFAULT_COLOR:y.getBgColor(),S=y.isFgDefault()?c.DEFAULT_COLOR:y.getFgColor()),S+=this._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&S<8?8:0,this._currentGlyphIdentifier.chars=y.getChars()||c.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=y.getCode()||c.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=k,this._currentGlyphIdentifier.fg=S,this._currentGlyphIdentifier.bold=!!y.isBold(),this._currentGlyphIdentifier.dim=!!y.isDim(),this._currentGlyphIdentifier.italic=!!y.isItalic(),((x=this._charAtlas)===null||x===void 0?void 0:x.draw(this._ctx,this._currentGlyphIdentifier,b*this._scaledCellWidth+this._scaledCharLeft,w*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(y,b,w))},_.prototype._drawUncachedChars=function(y,b,w,x){if(this._ctx.save(),this._ctx.font=this._getFont(!!y.isBold(),!!y.isItalic()),this._ctx.textBaseline=u.TEXT_BASELINE,y.isInverse())if(x)this._ctx.fillStyle=x.css;else if(y.isBgDefault())this._ctx.fillStyle=g.color.opaque(this._colors.background).css;else if(y.isBgRGB())this._ctx.fillStyle="rgb("+h.AttributeData.toColorRGB(y.getBgColor()).join(",")+")";else{var S=y.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&S<8&&(S+=8),this._ctx.fillStyle=this._colors.ansi[S].css}else if(x)this._ctx.fillStyle=x.css;else if(y.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(y.isFgRGB())this._ctx.fillStyle="rgb("+h.AttributeData.toColorRGB(y.getFgColor()).join(",")+")";else{var k=y.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&k<8&&(k+=8),this._ctx.fillStyle=this._colors.ansi[k].css}this._clipRow(w),y.isDim()&&(this._ctx.globalAlpha=u.DIM_OPACITY);var T=!1;this._optionsService.options.customGlyphs!==!1&&(T=(0,m.tryDrawCustomChar)(this._ctx,y.getChars(),b*this._scaledCellWidth,w*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),T||this._ctx.fillText(y.getChars(),b*this._scaledCellWidth+this._scaledCharLeft,w*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},_.prototype._clipRow=function(y){this._ctx.beginPath(),this._ctx.rect(0,y*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},_.prototype._getFont=function(y,b){return(b?"italic":"")+" "+(y?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},_.prototype._getContrastColor=function(y){if(this._optionsService.options.minimumContrastRatio!==1){var b=this._colors.contrastCache.getColor(y.bg,y.fg);if(b!==void 0)return b||void 0;var w=y.getFgColor(),x=y.getFgColorMode(),S=y.getBgColor(),k=y.getBgColorMode(),T=!!y.isInverse(),D=!!y.isInverse();if(T){var R=w;w=S,S=R;var N=x;x=k,k=N}var A=this._resolveBackgroundRgba(k,S,T),V=this._resolveForegroundRgba(x,w,T,D),P=g.rgba.ensureContrastRatio(A,V,this._optionsService.options.minimumContrastRatio);if(P){var U={css:g.channels.toCss(P>>24&255,P>>16&255,P>>8&255),rgba:P};return this._colors.contrastCache.setColor(y.bg,y.fg,U),U}this._colors.contrastCache.setColor(y.bg,y.fg,null)}},_.prototype._resolveBackgroundRgba=function(y,b,w){switch(y){case 16777216:case 33554432:return this._colors.ansi[b].rgba;case 50331648:return b<<8;default:return w?this._colors.foreground.rgba:this._colors.background.rgba}},_.prototype._resolveForegroundRgba=function(y,b,w,x){switch(y){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&x&&b<8&&(b+=8),this._colors.ansi[b].rgba;case 50331648:return b<<8;default:return w?this._colors.background.rgba:this._colors.foreground.rgba}},_}();a.BaseRenderLayer=v},2512:function(s,a,l){var c,u=this&&this.__extends||(c=function(b,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,S){x.__proto__=S}||function(x,S){for(var k in S)Object.prototype.hasOwnProperty.call(S,k)&&(x[k]=S[k])},c(b,w)},function(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function x(){this.constructor=b}c(b,w),b.prototype=w===null?Object.create(w):(x.prototype=w.prototype,new x)}),d=this&&this.__decorate||function(b,w,x,S){var k,T=arguments.length,D=T<3?w:S===null?S=Object.getOwnPropertyDescriptor(w,x):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(b,w,x,S);else for(var R=b.length-1;R>=0;R--)(k=b[R])&&(D=(T<3?k(D):T>3?k(w,x,D):k(w,x))||D);return T>3&&D&&Object.defineProperty(w,x,D),D},h=this&&this.__param||function(b,w){return function(x,S){w(x,S,b)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CursorRenderLayer=void 0;var f=l(1546),g=l(511),p=l(2585),m=l(4725),v=600,_=function(b){function w(x,S,k,T,D,R,N,A,V){var P=b.call(this,x,"cursor",S,!0,k,T,R,N)||this;return P._onRequestRedraw=D,P._coreService=A,P._coreBrowserService=V,P._cell=new g.CellData,P._state={x:0,y:0,isFocused:!1,style:"",width:0},P._cursorRenderers={bar:P._renderBarCursor.bind(P),block:P._renderBlockCursor.bind(P),underline:P._renderUnderlineCursor.bind(P)},P}return u(w,b),w.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),b.prototype.dispose.call(this)},w.prototype.resize=function(x){b.prototype.resize.call(this,x),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},w.prototype.reset=function(){var x;this._clearCursor(),(x=this._cursorBlinkStateManager)===null||x===void 0||x.restartBlinkAnimation(),this.onOptionsChanged()},w.prototype.onBlur=function(){var x;(x=this._cursorBlinkStateManager)===null||x===void 0||x.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},w.prototype.onFocus=function(){var x;(x=this._cursorBlinkStateManager)===null||x===void 0||x.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},w.prototype.onOptionsChanged=function(){var x,S=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new y(this._coreBrowserService.isFocused,function(){S._render(!0)})):((x=this._cursorBlinkStateManager)===null||x===void 0||x.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},w.prototype.onCursorMove=function(){var x;(x=this._cursorBlinkStateManager)===null||x===void 0||x.restartBlinkAnimation()},w.prototype.onGridChanged=function(x,S){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},w.prototype._render=function(x){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var S=this._bufferService.buffer.ybase+this._bufferService.buffer.y,k=S-this._bufferService.buffer.ydisp;if(k<0||k>=this._bufferService.rows)this._clearCursor();else{var T=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(S).loadCell(T,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var D=this._optionsService.options.cursorStyle;return D&&D!=="block"?this._cursorRenderers[D](T,k,this._cell):this._renderBlurCursor(T,k,this._cell),this._ctx.restore(),this._state.x=T,this._state.y=k,this._state.isFocused=!1,this._state.style=D,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===T&&this._state.y===k&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](T,k,this._cell),this._ctx.restore(),this._state.x=T,this._state.y=k,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},w.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},w.prototype._renderBarCursor=function(x,S,k){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(x,S,this._optionsService.options.cursorWidth),this._ctx.restore()},w.prototype._renderBlockCursor=function(x,S,k){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(x,S,k.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(k,x,S),this._ctx.restore()},w.prototype._renderUnderlineCursor=function(x,S,k){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(x,S),this._ctx.restore()},w.prototype._renderBlurCursor=function(x,S,k){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(x,S,k.getWidth(),1),this._ctx.restore()},d([h(5,p.IBufferService),h(6,p.IOptionsService),h(7,p.ICoreService),h(8,m.ICoreBrowserService)],w)}(f.BaseRenderLayer);a.CursorRenderLayer=_;var y=function(){function b(w,x){this._renderCallback=x,this.isCursorVisible=!0,w&&this._restartInterval()}return Object.defineProperty(b.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},b.prototype.restartBlinkAnimation=function(){var w=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){w._renderCallback(),w._animationFrame=void 0})))},b.prototype._restartInterval=function(w){var x=this;w===void 0&&(w=v),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(x._animationTimeRestarted){var S=v-(Date.now()-x._animationTimeRestarted);if(x._animationTimeRestarted=void 0,S>0)return void x._restartInterval(S)}x.isCursorVisible=!1,x._animationFrame=window.requestAnimationFrame(function(){x._renderCallback(),x._animationFrame=void 0}),x._blinkInterval=window.setInterval(function(){if(x._animationTimeRestarted){var k=v-(Date.now()-x._animationTimeRestarted);return x._animationTimeRestarted=void 0,void x._restartInterval(k)}x.isCursorVisible=!x.isCursorVisible,x._animationFrame=window.requestAnimationFrame(function(){x._renderCallback(),x._animationFrame=void 0})},v)},w)},b.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},b.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},b}()},8978:(s,a,l)=>{var c,u,d,h,f,g,p,m,v,_,y,b,w,x,S,k,T,D,R,N,A,V,P,U,F,M,W,j,$,Q,ee,ge,_e,Ie,K,se,oe,Ne,pe,Me,at,_t,qe,kt,ve,B,G,te,Se,Ee,Ce,He,We,ht,Tt,$t,pn,ln,fe,Be,It,jt,Yn,ho,Ns,Ea,fo,Ir,ka,Rr,Yo,La,Ta,en,Zo,z,q,le,Z,re,ce,J,be,Fe,Pe,it,ft,wt,Nt,Ut,xt,Xi,Ln,go,Ac,Nr,sl,Vg,al,af,zg,Ug,_b,vb,bb,nS,iS,rS,oS,yb,Cb,wb,Sb,SD,sS,d_,aS,xD,lS,cS,xb,ED,uS,Eb,kb,lf,dS,hS;Object.defineProperty(a,"__esModule",{value:!0}),a.tryDrawCustomChar=a.boxDrawingDefinitions=a.blockElementDefinitions=void 0;var P5=l(1752);a.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258A":[{x:0,y:0,w:6,h:8}],"\u258B":[{x:0,y:0,w:5,h:8}],"\u258C":[{x:0,y:0,w:4,h:8}],"\u258D":[{x:0,y:0,w:3,h:8}],"\u258E":[{x:0,y:0,w:2,h:8}],"\u258F":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259A":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259B":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259C":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259D":[{x:4,y:0,w:4,h:4}],"\u259E":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259F":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u{1FB70}":[{x:1,y:0,w:1,h:8}],"\u{1FB71}":[{x:2,y:0,w:1,h:8}],"\u{1FB72}":[{x:3,y:0,w:1,h:8}],"\u{1FB73}":[{x:4,y:0,w:1,h:8}],"\u{1FB74}":[{x:5,y:0,w:1,h:8}],"\u{1FB75}":[{x:6,y:0,w:1,h:8}],"\u{1FB76}":[{x:0,y:1,w:8,h:1}],"\u{1FB77}":[{x:0,y:2,w:8,h:1}],"\u{1FB78}":[{x:0,y:3,w:8,h:1}],"\u{1FB79}":[{x:0,y:4,w:8,h:1}],"\u{1FB7A}":[{x:0,y:5,w:8,h:1}],"\u{1FB7B}":[{x:0,y:6,w:8,h:1}],"\u{1FB7C}":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB7D}":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7E}":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7F}":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB80}":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB81}":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB82}":[{x:0,y:0,w:8,h:2}],"\u{1FB83}":[{x:0,y:0,w:8,h:3}],"\u{1FB84}":[{x:0,y:0,w:8,h:5}],"\u{1FB85}":[{x:0,y:0,w:8,h:6}],"\u{1FB86}":[{x:0,y:0,w:8,h:7}],"\u{1FB87}":[{x:6,y:0,w:2,h:8}],"\u{1FB88}":[{x:5,y:0,w:3,h:8}],"\u{1FB89}":[{x:3,y:0,w:5,h:8}],"\u{1FB8A}":[{x:2,y:0,w:6,h:8}],"\u{1FB8B}":[{x:1,y:0,w:7,h:8}],"\u{1FB95}":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\u{1FB96}":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\u{1FB97}":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var M5={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};a.boxDrawingDefinitions={"\u2500":(c={},c[1]="M0,.5 L1,.5",c),"\u2501":(u={},u[3]="M0,.5 L1,.5",u),"\u2502":(d={},d[1]="M.5,0 L.5,1",d),"\u2503":(h={},h[3]="M.5,0 L.5,1",h),"\u250C":(f={},f[1]="M0.5,1 L.5,.5 L1,.5",f),"\u250F":(g={},g[3]="M0.5,1 L.5,.5 L1,.5",g),"\u2510":(p={},p[1]="M0,.5 L.5,.5 L.5,1",p),"\u2513":(m={},m[3]="M0,.5 L.5,.5 L.5,1",m),"\u2514":(v={},v[1]="M.5,0 L.5,.5 L1,.5",v),"\u2517":(_={},_[3]="M.5,0 L.5,.5 L1,.5",_),"\u2518":(y={},y[1]="M.5,0 L.5,.5 L0,.5",y),"\u251B":(b={},b[3]="M.5,0 L.5,.5 L0,.5",b),"\u251C":(w={},w[1]="M.5,0 L.5,1 M.5,.5 L1,.5",w),"\u2523":(x={},x[3]="M.5,0 L.5,1 M.5,.5 L1,.5",x),"\u2524":(S={},S[1]="M.5,0 L.5,1 M.5,.5 L0,.5",S),"\u252B":(k={},k[3]="M.5,0 L.5,1 M.5,.5 L0,.5",k),"\u252C":(T={},T[1]="M0,.5 L1,.5 M.5,.5 L.5,1",T),"\u2533":(D={},D[3]="M0,.5 L1,.5 M.5,.5 L.5,1",D),"\u2534":(R={},R[1]="M0,.5 L1,.5 M.5,.5 L.5,0",R),"\u253B":(N={},N[3]="M0,.5 L1,.5 M.5,.5 L.5,0",N),"\u253C":(A={},A[1]="M0,.5 L1,.5 M.5,0 L.5,1",A),"\u254B":(V={},V[3]="M0,.5 L1,.5 M.5,0 L.5,1",V),"\u2574":(P={},P[1]="M.5,.5 L0,.5",P),"\u2578":(U={},U[3]="M.5,.5 L0,.5",U),"\u2575":(F={},F[1]="M.5,.5 L.5,0",F),"\u2579":(M={},M[3]="M.5,.5 L.5,0",M),"\u2576":(W={},W[1]="M.5,.5 L1,.5",W),"\u257A":(j={},j[3]="M.5,.5 L1,.5",j),"\u2577":($={},$[1]="M.5,.5 L.5,1",$),"\u257B":(Q={},Q[3]="M.5,.5 L.5,1",Q),"\u2550":(ee={},ee[1]=function(et,je){return"M0,"+(.5-je)+" L1,"+(.5-je)+" M0,"+(.5+je)+" L1,"+(.5+je)},ee),"\u2551":(ge={},ge[1]=function(et,je){return"M"+(.5-et)+",0 L"+(.5-et)+",1 M"+(.5+et)+",0 L"+(.5+et)+",1"},ge),"\u2552":(_e={},_e[1]=function(et,je){return"M.5,1 L.5,"+(.5-je)+" L1,"+(.5-je)+" M.5,"+(.5+je)+" L1,"+(.5+je)},_e),"\u2553":(Ie={},Ie[1]=function(et,je){return"M"+(.5-et)+",1 L"+(.5-et)+",.5 L1,.5 M"+(.5+et)+",.5 L"+(.5+et)+",1"},Ie),"\u2554":(K={},K[1]=function(et,je){return"M1,"+(.5-je)+" L"+(.5-et)+","+(.5-je)+" L"+(.5-et)+",1 M1,"+(.5+je)+" L"+(.5+et)+","+(.5+je)+" L"+(.5+et)+",1"},K),"\u2555":(se={},se[1]=function(et,je){return"M0,"+(.5-je)+" L.5,"+(.5-je)+" L.5,1 M0,"+(.5+je)+" L.5,"+(.5+je)},se),"\u2556":(oe={},oe[1]=function(et,je){return"M"+(.5+et)+",1 L"+(.5+et)+",.5 L0,.5 M"+(.5-et)+",.5 L"+(.5-et)+",1"},oe),"\u2557":(Ne={},Ne[1]=function(et,je){return"M0,"+(.5+je)+" L"+(.5-et)+","+(.5+je)+" L"+(.5-et)+",1 M0,"+(.5-je)+" L"+(.5+et)+","+(.5-je)+" L"+(.5+et)+",1"},Ne),"\u2558":(pe={},pe[1]=function(et,je){return"M.5,0 L.5,"+(.5+je)+" L1,"+(.5+je)+" M.5,"+(.5-je)+" L1,"+(.5-je)},pe),"\u2559":(Me={},Me[1]=function(et,je){return"M1,.5 L"+(.5-et)+",.5 L"+(.5-et)+",0 M"+(.5+et)+",.5 L"+(.5+et)+",0"},Me),"\u255A":(at={},at[1]=function(et,je){return"M1,"+(.5-je)+" L"+(.5+et)+","+(.5-je)+" L"+(.5+et)+",0 M1,"+(.5+je)+" L"+(.5-et)+","+(.5+je)+" L"+(.5-et)+",0"},at),"\u255B":(_t={},_t[1]=function(et,je){return"M0,"+(.5+je)+" L.5,"+(.5+je)+" L.5,0 M0,"+(.5-je)+" L.5,"+(.5-je)},_t),"\u255C":(qe={},qe[1]=function(et,je){return"M0,.5 L"+(.5+et)+",.5 L"+(.5+et)+",0 M"+(.5-et)+",.5 L"+(.5-et)+",0"},qe),"\u255D":(kt={},kt[1]=function(et,je){return"M0,"+(.5-je)+" L"+(.5-et)+","+(.5-je)+" L"+(.5-et)+",0 M0,"+(.5+je)+" L"+(.5+et)+","+(.5+je)+" L"+(.5+et)+",0"},kt),"\u255E":(ve={},ve[1]=function(et,je){return"M.5,0 L.5,1 M.5,"+(.5-je)+" L1,"+(.5-je)+" M.5,"+(.5+je)+" L1,"+(.5+je)},ve),"\u255F":(B={},B[1]=function(et,je){return"M"+(.5-et)+",0 L"+(.5-et)+",1 M"+(.5+et)+",0 L"+(.5+et)+",1 M"+(.5+et)+",.5 L1,.5"},B),"\u2560":(G={},G[1]=function(et,je){return"M"+(.5-et)+",0 L"+(.5-et)+",1 M1,"+(.5+je)+" L"+(.5+et)+","+(.5+je)+" L"+(.5+et)+",1 M1,"+(.5-je)+" L"+(.5+et)+","+(.5-je)+" L"+(.5+et)+",0"},G),"\u2561":(te={},te[1]=function(et,je){return"M.5,0 L.5,1 M0,"+(.5-je)+" L.5,"+(.5-je)+" M0,"+(.5+je)+" L.5,"+(.5+je)},te),"\u2562":(Se={},Se[1]=function(et,je){return"M0,.5 L"+(.5-et)+",.5 M"+(.5-et)+",0 L"+(.5-et)+",1 M"+(.5+et)+",0 L"+(.5+et)+",1"},Se),"\u2563":(Ee={},Ee[1]=function(et,je){return"M"+(.5+et)+",0 L"+(.5+et)+",1 M0,"+(.5+je)+" L"+(.5-et)+","+(.5+je)+" L"+(.5-et)+",1 M0,"+(.5-je)+" L"+(.5-et)+","+(.5-je)+" L"+(.5-et)+",0"},Ee),"\u2564":(Ce={},Ce[1]=function(et,je){return"M0,"+(.5-je)+" L1,"+(.5-je)+" M0,"+(.5+je)+" L1,"+(.5+je)+" M.5,"+(.5+je)+" L.5,1"},Ce),"\u2565":(He={},He[1]=function(et,je){return"M0,.5 L1,.5 M"+(.5-et)+",.5 L"+(.5-et)+",1 M"+(.5+et)+",.5 L"+(.5+et)+",1"},He),"\u2566":(We={},We[1]=function(et,je){return"M0,"+(.5-je)+" L1,"+(.5-je)+" M0,"+(.5+je)+" L"+(.5-et)+","+(.5+je)+" L"+(.5-et)+",1 M1,"+(.5+je)+" L"+(.5+et)+","+(.5+je)+" L"+(.5+et)+",1"},We),"\u2567":(ht={},ht[1]=function(et,je){return"M.5,0 L.5,"+(.5-je)+" M0,"+(.5-je)+" L1,"+(.5-je)+" M0,"+(.5+je)+" L1,"+(.5+je)},ht),"\u2568":(Tt={},Tt[1]=function(et,je){return"M0,.5 L1,.5 M"+(.5-et)+",.5 L"+(.5-et)+",0 M"+(.5+et)+",.5 L"+(.5+et)+",0"},Tt),"\u2569":($t={},$t[1]=function(et,je){return"M0,"+(.5+je)+" L1,"+(.5+je)+" M0,"+(.5-je)+" L"+(.5-et)+","+(.5-je)+" L"+(.5-et)+",0 M1,"+(.5-je)+" L"+(.5+et)+","+(.5-je)+" L"+(.5+et)+",0"},$t),"\u256A":(pn={},pn[1]=function(et,je){return"M.5,0 L.5,1 M0,"+(.5-je)+" L1,"+(.5-je)+" M0,"+(.5+je)+" L1,"+(.5+je)},pn),"\u256B":(ln={},ln[1]=function(et,je){return"M0,.5 L1,.5 M"+(.5-et)+",0 L"+(.5-et)+",1 M"+(.5+et)+",0 L"+(.5+et)+",1"},ln),"\u256C":(fe={},fe[1]=function(et,je){return"M0,"+(.5+je)+" L"+(.5-et)+","+(.5+je)+" L"+(.5-et)+",1 M1,"+(.5+je)+" L"+(.5+et)+","+(.5+je)+" L"+(.5+et)+",1 M0,"+(.5-je)+" L"+(.5-et)+","+(.5-je)+" L"+(.5-et)+",0 M1,"+(.5-je)+" L"+(.5+et)+","+(.5-je)+" L"+(.5+et)+",0"},fe),"\u2571":(Be={},Be[1]="M1,0 L0,1",Be),"\u2572":(It={},It[1]="M0,0 L1,1",It),"\u2573":(jt={},jt[1]="M1,0 L0,1 M0,0 L1,1",jt),"\u257C":(Yn={},Yn[1]="M.5,.5 L0,.5",Yn[3]="M.5,.5 L1,.5",Yn),"\u257D":(ho={},ho[1]="M.5,.5 L.5,0",ho[3]="M.5,.5 L.5,1",ho),"\u257E":(Ns={},Ns[1]="M.5,.5 L1,.5",Ns[3]="M.5,.5 L0,.5",Ns),"\u257F":(Ea={},Ea[1]="M.5,.5 L.5,1",Ea[3]="M.5,.5 L.5,0",Ea),"\u250D":(fo={},fo[1]="M.5,.5 L.5,1",fo[3]="M.5,.5 L1,.5",fo),"\u250E":(Ir={},Ir[1]="M.5,.5 L1,.5",Ir[3]="M.5,.5 L.5,1",Ir),"\u2511":(ka={},ka[1]="M.5,.5 L.5,1",ka[3]="M.5,.5 L0,.5",ka),"\u2512":(Rr={},Rr[1]="M.5,.5 L0,.5",Rr[3]="M.5,.5 L.5,1",Rr),"\u2515":(Yo={},Yo[1]="M.5,.5 L.5,0",Yo[3]="M.5,.5 L1,.5",Yo),"\u2516":(La={},La[1]="M.5,.5 L1,.5",La[3]="M.5,.5 L.5,0",La),"\u2519":(Ta={},Ta[1]="M.5,.5 L.5,0",Ta[3]="M.5,.5 L0,.5",Ta),"\u251A":(en={},en[1]="M.5,.5 L0,.5",en[3]="M.5,.5 L.5,0",en),"\u251D":(Zo={},Zo[1]="M.5,0 L.5,1",Zo[3]="M.5,.5 L1,.5",Zo),"\u251E":(z={},z[1]="M0.5,1 L.5,.5 L1,.5",z[3]="M.5,.5 L.5,0",z),"\u251F":(q={},q[1]="M.5,0 L.5,.5 L1,.5",q[3]="M.5,.5 L.5,1",q),"\u2520":(le={},le[1]="M.5,.5 L1,.5",le[3]="M.5,0 L.5,1",le),"\u2521":(Z={},Z[1]="M.5,.5 L.5,1",Z[3]="M.5,0 L.5,.5 L1,.5",Z),"\u2522":(re={},re[1]="M.5,.5 L.5,0",re[3]="M0.5,1 L.5,.5 L1,.5",re),"\u2525":(ce={},ce[1]="M.5,0 L.5,1",ce[3]="M.5,.5 L0,.5",ce),"\u2526":(J={},J[1]="M0,.5 L.5,.5 L.5,1",J[3]="M.5,.5 L.5,0",J),"\u2527":(be={},be[1]="M.5,0 L.5,.5 L0,.5",be[3]="M.5,.5 L.5,1",be),"\u2528":(Fe={},Fe[1]="M.5,.5 L0,.5",Fe[3]="M.5,0 L.5,1",Fe),"\u2529":(Pe={},Pe[1]="M.5,.5 L.5,1",Pe[3]="M.5,0 L.5,.5 L0,.5",Pe),"\u252A":(it={},it[1]="M.5,.5 L.5,0",it[3]="M0,.5 L.5,.5 L.5,1",it),"\u252D":(ft={},ft[1]="M0.5,1 L.5,.5 L1,.5",ft[3]="M.5,.5 L0,.5",ft),"\u252E":(wt={},wt[1]="M0,.5 L.5,.5 L.5,1",wt[3]="M.5,.5 L1,.5",wt),"\u252F":(Nt={},Nt[1]="M.5,.5 L.5,1",Nt[3]="M0,.5 L1,.5",Nt),"\u2530":(Ut={},Ut[1]="M0,.5 L1,.5",Ut[3]="M.5,.5 L.5,1",Ut),"\u2531":(xt={},xt[1]="M.5,.5 L1,.5",xt[3]="M0,.5 L.5,.5 L.5,1",xt),"\u2532":(Xi={},Xi[1]="M.5,.5 L0,.5",Xi[3]="M0.5,1 L.5,.5 L1,.5",Xi),"\u2535":(Ln={},Ln[1]="M.5,0 L.5,.5 L1,.5",Ln[3]="M.5,.5 L0,.5",Ln),"\u2536":(go={},go[1]="M.5,0 L.5,.5 L0,.5",go[3]="M.5,.5 L1,.5",go),"\u2537":(Ac={},Ac[1]="M.5,.5 L.5,0",Ac[3]="M0,.5 L1,.5",Ac),"\u2538":(Nr={},Nr[1]="M0,.5 L1,.5",Nr[3]="M.5,.5 L.5,0",Nr),"\u2539":(sl={},sl[1]="M.5,.5 L1,.5",sl[3]="M.5,0 L.5,.5 L0,.5",sl),"\u253A":(Vg={},Vg[1]="M.5,.5 L0,.5",Vg[3]="M.5,0 L.5,.5 L1,.5",Vg),"\u253D":(al={},al[1]="M.5,0 L.5,1 M.5,.5 L1,.5",al[3]="M.5,.5 L0,.5",al),"\u253E":(af={},af[1]="M.5,0 L.5,1 M.5,.5 L0,.5",af[3]="M.5,.5 L1,.5",af),"\u253F":(zg={},zg[1]="M.5,0 L.5,1",zg[3]="M0,.5 L1,.5",zg),"\u2540":(Ug={},Ug[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Ug[3]="M.5,.5 L.5,0",Ug),"\u2541":(_b={},_b[1]="M.5,.5 L.5,0 M0,.5 L1,.5",_b[3]="M.5,.5 L.5,1",_b),"\u2542":(vb={},vb[1]="M0,.5 L1,.5",vb[3]="M.5,0 L.5,1",vb),"\u2543":(bb={},bb[1]="M0.5,1 L.5,.5 L1,.5",bb[3]="M.5,0 L.5,.5 L0,.5",bb),"\u2544":(nS={},nS[1]="M0,.5 L.5,.5 L.5,1",nS[3]="M.5,0 L.5,.5 L1,.5",nS),"\u2545":(iS={},iS[1]="M.5,0 L.5,.5 L1,.5",iS[3]="M0,.5 L.5,.5 L.5,1",iS),"\u2546":(rS={},rS[1]="M.5,0 L.5,.5 L0,.5",rS[3]="M0.5,1 L.5,.5 L1,.5",rS),"\u2547":(oS={},oS[1]="M.5,.5 L.5,1",oS[3]="M.5,.5 L.5,0 M0,.5 L1,.5",oS),"\u2548":(yb={},yb[1]="M.5,.5 L.5,0",yb[3]="M0,.5 L1,.5 M.5,.5 L.5,1",yb),"\u2549":(Cb={},Cb[1]="M.5,.5 L1,.5",Cb[3]="M.5,0 L.5,1 M.5,.5 L0,.5",Cb),"\u254A":(wb={},wb[1]="M.5,.5 L0,.5",wb[3]="M.5,0 L.5,1 M.5,.5 L1,.5",wb),"\u254C":(Sb={},Sb[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Sb),"\u254D":(SD={},SD[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",SD),"\u2504":(sS={},sS[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",sS),"\u2505":(d_={},d_[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",d_),"\u2508":(aS={},aS[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",aS),"\u2509":(xD={},xD[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",xD),"\u254E":(lS={},lS[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",lS),"\u254F":(cS={},cS[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",cS),"\u2506":(xb={},xb[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",xb),"\u2507":(ED={},ED[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",ED),"\u250A":(uS={},uS[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",uS),"\u250B":(Eb={},Eb[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Eb),"\u256D":(kb={},kb[1]="C.5,1,.5,.5,1,.5",kb),"\u256E":(lf={},lf[1]="C.5,1,.5,.5,0,.5",lf),"\u256F":(dS={},dS[1]="C.5,0,.5,.5,0,.5",dS),"\u2570":(hS={},hS[1]="C.5,0,.5,.5,1,.5",hS)},a.tryDrawCustomChar=function(et,je,Oc,Lb,Tb,Xo){var wu=a.blockElementDefinitions[je];if(wu)return function(Da,Su,Ib,Rb,xi,vi){for(var ql=0;ql<Su.length;ql++){var ll=Su[ql],po=xi/8,Td=vi/8;Da.fillRect(Ib+ll.x*po,Rb+ll.y*Td,ll.w*po,ll.h*Td)}}(et,wu,Oc,Lb,Tb,Xo),!0;var jl=M5[je];if(jl)return function(Da,Su,Ib,Rb,xi,vi){var ql,ll=kD.get(Su);ll||(ll=new Map,kD.set(Su,ll));var po=Da.fillStyle;if(typeof po!="string")throw new Error('Unexpected fillStyle type "'+po+'"');var Td=ll.get(po);if(!Td){var Pc=Su[0].length,jg=Su.length,cf=document.createElement("canvas");cf.width=Pc,cf.height=jg;var fS=(0,P5.throwIfFalsy)(cf.getContext("2d")),fr=new ImageData(Pc,jg),uf=void 0,cl=void 0,gS=void 0,Nb=void 0;if(po.startsWith("#"))uf=parseInt(po.substr(1,2),16),cl=parseInt(po.substr(3,2),16),gS=parseInt(po.substr(5,2),16),Nb=po.length>7&&parseInt(po.substr(7,2),16)||1;else{if(!po.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+po+'" when drawing pattern glyph');uf=(ql=po.substring(5,po.length-1).split(",").map(function(B5){return parseFloat(B5)}))[0],cl=ql[1],gS=ql[2],Nb=ql[3]}for(var Qo=0;Qo<jg;Qo++)for(var df=0;df<Pc;df++)fr.data[4*(Qo*Pc+df)]=uf,fr.data[4*(Qo*Pc+df)+1]=cl,fr.data[4*(Qo*Pc+df)+2]=gS,fr.data[4*(Qo*Pc+df)+3]=Su[Qo][df]*(255*Nb);fS.putImageData(fr,0,0),Td=(0,P5.throwIfFalsy)(Da.createPattern(cf,null)),ll.set(po,Td)}Da.fillStyle=Td,Da.fillRect(Ib,Rb,xi,vi)}(et,jl,Oc,Lb,Tb,Xo),!0;var Db=a.boxDrawingDefinitions[je];return!!Db&&(function(Da,Su,Ib,Rb,xi,vi){Da.strokeStyle=Da.fillStyle;for(var ql=0,ll=Object.entries(Su);ql<ll.length;ql++){var po=ll[ql],Td=po[0],Pc=po[1];Da.beginPath(),Da.lineWidth=window.devicePixelRatio*Number.parseInt(Td);for(var jg=0,cf=(typeof Pc=="function"?Pc(.15,.15/vi*xi):Pc).split(" ");jg<cf.length;jg++){var fS=cf[jg],fr=fS[0],uf=F5[fr];if(uf){var cl=fS.substring(1).split(",");cl[0]&&cl[1]&&uf(Da,KY(cl,xi,vi,Ib,Rb))}else console.error('Could not find drawing instructions for "'+fr+'"')}Da.stroke(),Da.closePath()}}(et,Db,Oc,Lb,Tb,Xo),!0)};var kD=new Map;function LD(et,je,Oc){return Oc===void 0&&(Oc=0),Math.max(Math.min(et,je),Oc)}var F5={C:function(et,je){return et.bezierCurveTo(je[0],je[1],je[2],je[3],je[4],je[5])},L:function(et,je){return et.lineTo(je[0],je[1])},M:function(et,je){return et.moveTo(je[0],je[1])}};function KY(et,je,Oc,Lb,Tb){var Xo=et.map(function(Db){return parseFloat(Db)||parseInt(Db)});if(Xo.length<2)throw new Error("Too few arguments for instruction");for(var wu=0;wu<Xo.length;wu+=2)Xo[wu]*=je,Xo[wu]!==0&&(Xo[wu]=LD(Math.round(Xo[wu]+.5)-.5,je,0)),Xo[wu]+=Lb;for(var jl=1;jl<Xo.length;jl+=2)Xo[jl]*=Oc,Xo[jl]!==0&&(Xo[jl]=LD(Math.round(Xo[jl]+.5)-.5,Oc,0)),Xo[jl]+=Tb;return Xo}},3700:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.GridCache=void 0;var l=function(){function c(){this.cache=[]}return c.prototype.resize=function(u,d){for(var h=0;h<u;h++){this.cache.length<=h&&this.cache.push([]);for(var f=this.cache[h].length;f<d;f++)this.cache[h].push(void 0);this.cache[h].length=d}this.cache.length=u},c.prototype.clear=function(){for(var u=0;u<this.cache.length;u++)for(var d=0;d<this.cache[u].length;d++)this.cache[u][d]=void 0},c}();a.GridCache=l},5098:function(s,a,l){var c,u=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(b[x]=w[x])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function b(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),d=this&&this.__decorate||function(_,y,b,w){var x,S=arguments.length,k=S<3?y:w===null?w=Object.getOwnPropertyDescriptor(y,b):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(_,y,b,w);else for(var T=_.length-1;T>=0;T--)(x=_[T])&&(k=(S<3?x(k):S>3?x(y,b,k):x(y,b))||k);return S>3&&k&&Object.defineProperty(y,b,k),k},h=this&&this.__param||function(_,y){return function(b,w){y(b,w,_)}};Object.defineProperty(a,"__esModule",{value:!0}),a.LinkRenderLayer=void 0;var f=l(1546),g=l(8803),p=l(2040),m=l(2585),v=function(_){function y(b,w,x,S,k,T,D,R){var N=_.call(this,b,"link",w,!0,x,S,D,R)||this;return k.onShowLinkUnderline(function(A){return N._onShowLinkUnderline(A)}),k.onHideLinkUnderline(function(A){return N._onHideLinkUnderline(A)}),T.onShowLinkUnderline(function(A){return N._onShowLinkUnderline(A)}),T.onHideLinkUnderline(function(A){return N._onHideLinkUnderline(A)}),N}return u(y,_),y.prototype.resize=function(b){_.prototype.resize.call(this,b),this._state=void 0},y.prototype.reset=function(){this._clearCurrentLink()},y.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var b=this._state.y2-this._state.y1-1;b>0&&this._clearCells(0,this._state.y1+1,this._state.cols,b),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},y.prototype._onShowLinkUnderline=function(b){if(b.fg===g.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:b.fg&&(0,p.is256Color)(b.fg)?this._ctx.fillStyle=this._colors.ansi[b.fg].css:this._ctx.fillStyle=this._colors.foreground.css,b.y1===b.y2)this._fillBottomLineAtCells(b.x1,b.y1,b.x2-b.x1);else{this._fillBottomLineAtCells(b.x1,b.y1,b.cols-b.x1);for(var w=b.y1+1;w<b.y2;w++)this._fillBottomLineAtCells(0,w,b.cols);this._fillBottomLineAtCells(0,b.y2,b.x2)}this._state=b},y.prototype._onHideLinkUnderline=function(b){this._clearCurrentLink()},d([h(6,m.IBufferService),h(7,m.IOptionsService)],y)}(f.BaseRenderLayer);a.LinkRenderLayer=v},3525:function(s,a,l){var c,u=this&&this.__extends||(c=function(k,T){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,R){D.__proto__=R}||function(D,R){for(var N in R)Object.prototype.hasOwnProperty.call(R,N)&&(D[N]=R[N])},c(k,T)},function(k,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function D(){this.constructor=k}c(k,T),k.prototype=T===null?Object.create(T):(D.prototype=T.prototype,new D)}),d=this&&this.__decorate||function(k,T,D,R){var N,A=arguments.length,V=A<3?T:R===null?R=Object.getOwnPropertyDescriptor(T,D):R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")V=Reflect.decorate(k,T,D,R);else for(var P=k.length-1;P>=0;P--)(N=k[P])&&(V=(A<3?N(V):A>3?N(T,D,V):N(T,D))||V);return A>3&&V&&Object.defineProperty(T,D,V),V},h=this&&this.__param||function(k,T){return function(D,R){T(D,R,k)}};Object.defineProperty(a,"__esModule",{value:!0}),a.Renderer=void 0;var f=l(9596),g=l(4149),p=l(2512),m=l(5098),v=l(844),_=l(4725),y=l(2585),b=l(1420),w=l(8460),x=1,S=function(k){function T(D,R,N,A,V,P,U,F){var M=k.call(this)||this;M._colors=D,M._screenElement=R,M._bufferService=P,M._charSizeService=U,M._optionsService=F,M._id=x++,M._onRequestRedraw=new w.EventEmitter;var W=M._optionsService.options.allowTransparency;return M._renderLayers=[V.createInstance(f.TextRenderLayer,M._screenElement,0,M._colors,W,M._id),V.createInstance(g.SelectionRenderLayer,M._screenElement,1,M._colors,M._id),V.createInstance(m.LinkRenderLayer,M._screenElement,2,M._colors,M._id,N,A),V.createInstance(p.CursorRenderLayer,M._screenElement,3,M._colors,M._id,M._onRequestRedraw)],M.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},M._devicePixelRatio=window.devicePixelRatio,M._updateDimensions(),M.onOptionsChanged(),M}return u(T,k),Object.defineProperty(T.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),T.prototype.dispose=function(){for(var D=0,R=this._renderLayers;D<R.length;D++)R[D].dispose();k.prototype.dispose.call(this),(0,b.removeTerminalFromCache)(this._id)},T.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},T.prototype.setColors=function(D){this._colors=D;for(var R=0,N=this._renderLayers;R<N.length;R++){var A=N[R];A.setColors(this._colors),A.reset()}},T.prototype.onResize=function(D,R){this._updateDimensions();for(var N=0,A=this._renderLayers;N<A.length;N++)A[N].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},T.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},T.prototype.onBlur=function(){this._runOperation(function(D){return D.onBlur()})},T.prototype.onFocus=function(){this._runOperation(function(D){return D.onFocus()})},T.prototype.onSelectionChanged=function(D,R,N){N===void 0&&(N=!1),this._runOperation(function(A){return A.onSelectionChanged(D,R,N)})},T.prototype.onCursorMove=function(){this._runOperation(function(D){return D.onCursorMove()})},T.prototype.onOptionsChanged=function(){this._runOperation(function(D){return D.onOptionsChanged()})},T.prototype.clear=function(){this._runOperation(function(D){return D.reset()})},T.prototype._runOperation=function(D){for(var R=0,N=this._renderLayers;R<N.length;R++)D(N[R])},T.prototype.renderRows=function(D,R){for(var N=0,A=this._renderLayers;N<A.length;N++)A[N].onGridChanged(D,R)},T.prototype.clearTextureAtlas=function(){for(var D=0,R=this._renderLayers;D<R.length;D++)R[D].clearTextureAtlas()},T.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},d([h(4,y.IInstantiationService),h(5,y.IBufferService),h(6,_.ICharSizeService),h(7,y.IOptionsService)],T)}(v.Disposable);a.Renderer=S},1752:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.throwIfFalsy=void 0,a.throwIfFalsy=function(l){if(!l)throw new Error("value must not be falsy");return l}},4149:function(s,a,l){var c,u=this&&this.__extends||(c=function(m,v){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,y){_.__proto__=y}||function(_,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(_[b]=y[b])},c(m,v)},function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function _(){this.constructor=m}c(m,v),m.prototype=v===null?Object.create(v):(_.prototype=v.prototype,new _)}),d=this&&this.__decorate||function(m,v,_,y){var b,w=arguments.length,x=w<3?v:y===null?y=Object.getOwnPropertyDescriptor(v,_):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(m,v,_,y);else for(var S=m.length-1;S>=0;S--)(b=m[S])&&(x=(w<3?b(x):w>3?b(v,_,x):b(v,_))||x);return w>3&&x&&Object.defineProperty(v,_,x),x},h=this&&this.__param||function(m,v){return function(_,y){v(_,y,m)}};Object.defineProperty(a,"__esModule",{value:!0}),a.SelectionRenderLayer=void 0;var f=l(1546),g=l(2585),p=function(m){function v(_,y,b,w,x,S){var k=m.call(this,_,"selection",y,!0,b,w,x,S)||this;return k._clearState(),k}return u(v,m),v.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},v.prototype.resize=function(_){m.prototype.resize.call(this,_),this._clearState()},v.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},v.prototype.onSelectionChanged=function(_,y,b){if(this._didStateChange(_,y,b,this._bufferService.buffer.ydisp))if(this._clearAll(),_&&y){var w=_[1]-this._bufferService.buffer.ydisp,x=y[1]-this._bufferService.buffer.ydisp,S=Math.max(w,0),k=Math.min(x,this._bufferService.rows-1);if(S>=this._bufferService.rows||k<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,b){var T=_[0],D=y[0]-T,R=k-S+1;this._fillCells(T,S,D,R)}else{T=w===S?_[0]:0;var N=S===x?y[0]:this._bufferService.cols;this._fillCells(T,S,N-T,1);var A=Math.max(k-S-1,0);if(this._fillCells(0,S+1,this._bufferService.cols,A),S!==k){var V=x===k?y[0]:this._bufferService.cols;this._fillCells(0,k,V,1)}}this._state.start=[_[0],_[1]],this._state.end=[y[0],y[1]],this._state.columnSelectMode=b,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},v.prototype._didStateChange=function(_,y,b,w){return!this._areCoordinatesEqual(_,this._state.start)||!this._areCoordinatesEqual(y,this._state.end)||b!==this._state.columnSelectMode||w!==this._state.ydisp},v.prototype._areCoordinatesEqual=function(_,y){return!(!_||!y)&&_[0]===y[0]&&_[1]===y[1]},d([h(4,g.IBufferService),h(5,g.IOptionsService)],v)}(f.BaseRenderLayer);a.SelectionRenderLayer=p},9596:function(s,a,l){var c,u=this&&this.__extends||(c=function(x,S){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,T){k.__proto__=T}||function(k,T){for(var D in T)Object.prototype.hasOwnProperty.call(T,D)&&(k[D]=T[D])},c(x,S)},function(x,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function k(){this.constructor=x}c(x,S),x.prototype=S===null?Object.create(S):(k.prototype=S.prototype,new k)}),d=this&&this.__decorate||function(x,S,k,T){var D,R=arguments.length,N=R<3?S:T===null?T=Object.getOwnPropertyDescriptor(S,k):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(x,S,k,T);else for(var A=x.length-1;A>=0;A--)(D=x[A])&&(N=(R<3?D(N):R>3?D(S,k,N):D(S,k))||N);return R>3&&N&&Object.defineProperty(S,k,N),N},h=this&&this.__param||function(x,S){return function(k,T){S(k,T,x)}};Object.defineProperty(a,"__esModule",{value:!0}),a.TextRenderLayer=void 0;var f=l(3700),g=l(1546),p=l(3734),m=l(643),v=l(511),_=l(2585),y=l(4725),b=l(4269),w=function(x){function S(k,T,D,R,N,A,V,P){var U=x.call(this,k,"text",T,R,D,N,A,V)||this;return U._characterJoinerService=P,U._characterWidth=0,U._characterFont="",U._characterOverlapCache={},U._workCell=new v.CellData,U._state=new f.GridCache,U}return u(S,x),S.prototype.resize=function(k){x.prototype.resize.call(this,k);var T=this._getFont(!1,!1);this._characterWidth===k.scaledCharWidth&&this._characterFont===T||(this._characterWidth=k.scaledCharWidth,this._characterFont=T,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},S.prototype.reset=function(){this._state.clear(),this._clearAll()},S.prototype._forEachCell=function(k,T,D){for(var R=k;R<=T;R++)for(var N=R+this._bufferService.buffer.ydisp,A=this._bufferService.buffer.lines.get(N),V=this._characterJoinerService.getJoinedCharacters(N),P=0;P<this._bufferService.cols;P++){A.loadCell(P,this._workCell);var U=this._workCell,F=!1,M=P;if(U.getWidth()!==0){if(V.length>0&&P===V[0][0]){F=!0;var W=V.shift();U=new b.JoinedCellData(this._workCell,A.translateToString(!0,W[0],W[1]),W[1]-W[0]),M=W[1]-1}!F&&this._isOverlapping(U)&&M<A.length-1&&A.getCodePoint(M+1)===m.NULL_CELL_CODE&&(U.content&=-12582913,U.content|=2<<22),D(U,P,R),P=M}}},S.prototype._drawBackground=function(k,T){var D=this,R=this._ctx,N=this._bufferService.cols,A=0,V=0,P=null;R.save(),this._forEachCell(k,T,function(U,F,M){var W=null;U.isInverse()?W=U.isFgDefault()?D._colors.foreground.css:U.isFgRGB()?"rgb("+p.AttributeData.toColorRGB(U.getFgColor()).join(",")+")":D._colors.ansi[U.getFgColor()].css:U.isBgRGB()?W="rgb("+p.AttributeData.toColorRGB(U.getBgColor()).join(",")+")":U.isBgPalette()&&(W=D._colors.ansi[U.getBgColor()].css),P===null&&(A=F,V=M),M!==V?(R.fillStyle=P||"",D._fillCells(A,V,N-A,1),A=F,V=M):P!==W&&(R.fillStyle=P||"",D._fillCells(A,V,F-A,1),A=F,V=M),P=W}),P!==null&&(R.fillStyle=P,this._fillCells(A,V,N-A,1)),R.restore()},S.prototype._drawForeground=function(k,T){var D=this;this._forEachCell(k,T,function(R,N,A){if(!R.isInvisible()&&(D._drawChars(R,N,A),R.isUnderline()||R.isStrikethrough())){if(D._ctx.save(),R.isInverse())if(R.isBgDefault())D._ctx.fillStyle=D._colors.background.css;else if(R.isBgRGB())D._ctx.fillStyle="rgb("+p.AttributeData.toColorRGB(R.getBgColor()).join(",")+")";else{var V=R.getBgColor();D._optionsService.options.drawBoldTextInBrightColors&&R.isBold()&&V<8&&(V+=8),D._ctx.fillStyle=D._colors.ansi[V].css}else if(R.isFgDefault())D._ctx.fillStyle=D._colors.foreground.css;else if(R.isFgRGB())D._ctx.fillStyle="rgb("+p.AttributeData.toColorRGB(R.getFgColor()).join(",")+")";else{var P=R.getFgColor();D._optionsService.options.drawBoldTextInBrightColors&&R.isBold()&&P<8&&(P+=8),D._ctx.fillStyle=D._colors.ansi[P].css}R.isStrikethrough()&&D._fillMiddleLineAtCells(N,A,R.getWidth()),R.isUnderline()&&D._fillBottomLineAtCells(N,A,R.getWidth()),D._ctx.restore()}})},S.prototype.onGridChanged=function(k,T){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,k,this._bufferService.cols,T-k+1),this._drawBackground(k,T),this._drawForeground(k,T))},S.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},S.prototype._isOverlapping=function(k){if(k.getWidth()!==1||k.getCode()<256)return!1;var T=k.getChars();if(this._characterOverlapCache.hasOwnProperty(T))return this._characterOverlapCache[T];this._ctx.save(),this._ctx.font=this._characterFont;var D=Math.floor(this._ctx.measureText(T).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[T]=D,D},d([h(5,_.IBufferService),h(6,_.IOptionsService),h(7,y.ICharacterJoinerService)],S)}(g.BaseRenderLayer);a.TextRenderLayer=w},9616:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BaseCharAtlas=void 0;var l=function(){function c(){this._didWarmUp=!1}return c.prototype.dispose=function(){},c.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},c.prototype._doWarmUp=function(){},c.prototype.clear=function(){},c.prototype.beginFrame=function(){},c}();a.BaseCharAtlas=l},1420:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.removeTerminalFromCache=a.acquireCharAtlas=void 0;var c=l(2040),u=l(1906),d=[];a.acquireCharAtlas=function(h,f,g,p,m){for(var v=(0,c.generateConfig)(p,m,h,g),_=0;_<d.length;_++){var y=(b=d[_]).ownedBy.indexOf(f);if(y>=0){if((0,c.configEquals)(b.config,v))return b.atlas;b.ownedBy.length===1?(b.atlas.dispose(),d.splice(_,1)):b.ownedBy.splice(y,1);break}}for(_=0;_<d.length;_++){var b=d[_];if((0,c.configEquals)(b.config,v))return b.ownedBy.push(f),b.atlas}var w={atlas:new u.DynamicCharAtlas(document,v),config:v,ownedBy:[f]};return d.push(w),w.atlas},a.removeTerminalFromCache=function(h){for(var f=0;f<d.length;f++){var g=d[f].ownedBy.indexOf(h);if(g!==-1){d[f].ownedBy.length===1?(d[f].atlas.dispose(),d.splice(f,1)):d[f].ownedBy.splice(g,1);break}}}},2040:function(s,a,l){var c=this&&this.__spreadArray||function(d,h,f){if(f||arguments.length===2)for(var g,p=0,m=h.length;p<m;p++)!g&&p in h||(g||(g=Array.prototype.slice.call(h,0,p)),g[p]=h[p]);return d.concat(g||Array.prototype.slice.call(h))};Object.defineProperty(a,"__esModule",{value:!0}),a.is256Color=a.configEquals=a.generateConfig=void 0;var u=l(643);a.generateConfig=function(d,h,f,g){var p={foreground:g.foreground,background:g.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:c([],g.ansi,!0)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:d,scaledCharHeight:h,fontFamily:f.fontFamily,fontSize:f.fontSize,fontWeight:f.fontWeight,fontWeightBold:f.fontWeightBold,allowTransparency:f.allowTransparency,colors:p}},a.configEquals=function(d,h){for(var f=0;f<d.colors.ansi.length;f++)if(d.colors.ansi[f].rgba!==h.colors.ansi[f].rgba)return!1;return d.devicePixelRatio===h.devicePixelRatio&&d.fontFamily===h.fontFamily&&d.fontSize===h.fontSize&&d.fontWeight===h.fontWeight&&d.fontWeightBold===h.fontWeightBold&&d.allowTransparency===h.allowTransparency&&d.scaledCharWidth===h.scaledCharWidth&&d.scaledCharHeight===h.scaledCharHeight&&d.colors.foreground===h.colors.foreground&&d.colors.background===h.colors.background},a.is256Color=function(d){return d<u.DEFAULT_COLOR}},8803:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CHAR_ATLAS_CELL_SPACING=a.TEXT_BASELINE=a.DIM_OPACITY=a.INVERTED_DEFAULT_COLOR=void 0;var c=l(6114);a.INVERTED_DEFAULT_COLOR=257,a.DIM_OPACITY=.5,a.TEXT_BASELINE=c.isFirefox?"bottom":"ideographic",a.CHAR_ATLAS_CELL_SPACING=1},1906:function(s,a,l){var c,u=this&&this.__extends||(c=function(T,D){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,N){R.__proto__=N}||function(R,N){for(var A in N)Object.prototype.hasOwnProperty.call(N,A)&&(R[A]=N[A])},c(T,D)},function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function R(){this.constructor=T}c(T,D),T.prototype=D===null?Object.create(D):(R.prototype=D.prototype,new R)});Object.defineProperty(a,"__esModule",{value:!0}),a.NoneCharAtlas=a.DynamicCharAtlas=a.getGlyphCacheKey=void 0;var d=l(8803),h=l(9616),f=l(5680),g=l(7001),p=l(6114),m=l(1752),v=l(4774),_=1024,y=1024,b={css:"rgba(0, 0, 0, 0)",rgba:0};function w(T){return T.code<<21|T.bg<<12|T.fg<<3|(T.bold?0:4)+(T.dim?0:2)+(T.italic?0:1)}a.getGlyphCacheKey=w;var x=function(T){function D(R,N){var A=T.call(this)||this;A._config=N,A._drawToCacheCount=0,A._glyphsWaitingOnBitmap=[],A._bitmapCommitTimeout=null,A._bitmap=null,A._cacheCanvas=R.createElement("canvas"),A._cacheCanvas.width=_,A._cacheCanvas.height=y,A._cacheCtx=(0,m.throwIfFalsy)(A._cacheCanvas.getContext("2d",{alpha:!0}));var V=R.createElement("canvas");V.width=A._config.scaledCharWidth,V.height=A._config.scaledCharHeight,A._tmpCtx=(0,m.throwIfFalsy)(V.getContext("2d",{alpha:A._config.allowTransparency})),A._width=Math.floor(_/A._config.scaledCharWidth),A._height=Math.floor(y/A._config.scaledCharHeight);var P=A._width*A._height;return A._cacheMap=new g.LRUMap(P),A._cacheMap.prealloc(P),A}return u(D,T),D.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},D.prototype.beginFrame=function(){this._drawToCacheCount=0},D.prototype.clear=function(){if(this._cacheMap.size>0){var R=this._width*this._height;this._cacheMap=new g.LRUMap(R),this._cacheMap.prealloc(R)}this._cacheCtx.clearRect(0,0,_,y),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},D.prototype.draw=function(R,N,A,V){if(N.code===32)return!0;if(!this._canCache(N))return!1;var P=w(N),U=this._cacheMap.get(P);if(U!=null)return this._drawFromCache(R,U,A,V),!0;if(this._drawToCacheCount<100){var F;F=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var M=this._drawToCache(N,F);return this._cacheMap.set(P,M),this._drawFromCache(R,M,A,V),!0}return!1},D.prototype._canCache=function(R){return R.code<256},D.prototype._toCoordinateX=function(R){return R%this._width*this._config.scaledCharWidth},D.prototype._toCoordinateY=function(R){return Math.floor(R/this._width)*this._config.scaledCharHeight},D.prototype._drawFromCache=function(R,N,A,V){if(!N.isEmpty){var P=this._toCoordinateX(N.index),U=this._toCoordinateY(N.index);R.drawImage(N.inBitmap?this._bitmap:this._cacheCanvas,P,U,this._config.scaledCharWidth,this._config.scaledCharHeight,A,V,this._config.scaledCharWidth,this._config.scaledCharHeight)}},D.prototype._getColorFromAnsiIndex=function(R){return R<this._config.colors.ansi.length?this._config.colors.ansi[R]:f.DEFAULT_ANSI_COLORS[R]},D.prototype._getBackgroundColor=function(R){return this._config.allowTransparency?b:R.bg===d.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:R.bg<256?this._getColorFromAnsiIndex(R.bg):this._config.colors.background},D.prototype._getForegroundColor=function(R){return R.fg===d.INVERTED_DEFAULT_COLOR?v.color.opaque(this._config.colors.background):R.fg<256?this._getColorFromAnsiIndex(R.fg):this._config.colors.foreground},D.prototype._drawToCache=function(R,N){this._drawToCacheCount++,this._tmpCtx.save();var A=this._getBackgroundColor(R);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=A.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var V=R.bold?this._config.fontWeightBold:this._config.fontWeight,P=R.italic?"italic":"";this._tmpCtx.font=P+" "+V+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=d.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor(R).css,R.dim&&(this._tmpCtx.globalAlpha=d.DIM_OPACITY),this._tmpCtx.fillText(R.chars,0,this._config.scaledCharHeight);var U=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),F=!1;if(this._config.allowTransparency||(F=k(U,A)),F&&R.chars==="_"&&!this._config.allowTransparency)for(var M=1;M<=5&&(this._tmpCtx.fillText(R.chars,0,this._config.scaledCharHeight-M),F=k(U=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),A));M++);this._tmpCtx.restore();var W=this._toCoordinateX(N),j=this._toCoordinateY(N);this._cacheCtx.putImageData(U,W,j);var $={index:N,isEmpty:F,inBitmap:!1};return this._addGlyphToBitmap($),$},D.prototype._addGlyphToBitmap=function(R){var N=this;!("createImageBitmap"in window)||p.isFirefox||p.isSafari||(this._glyphsWaitingOnBitmap.push(R),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return N._generateBitmap()},100)))},D.prototype._generateBitmap=function(){var R=this,N=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(A){R._bitmap=A;for(var V=0;V<N.length;V++)N[V].inBitmap=!0}),this._bitmapCommitTimeout=null},D}(h.BaseCharAtlas);a.DynamicCharAtlas=x;var S=function(T){function D(R,N){return T.call(this)||this}return u(D,T),D.prototype.draw=function(R,N,A,V){return!1},D}(h.BaseCharAtlas);function k(T,D){for(var R=!0,N=D.rgba>>>24,A=D.rgba>>>16&255,V=D.rgba>>>8&255,P=0;P<T.data.length;P+=4)T.data[P]===N&&T.data[P+1]===A&&T.data[P+2]===V?T.data[P+3]=0:R=!1;return R}a.NoneCharAtlas=S},7001:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LRUMap=void 0;var l=function(){function c(u){this.capacity=u,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return c.prototype._unlinkNode=function(u){var d=u.prev,h=u.next;u===this._head&&(this._head=h),u===this._tail&&(this._tail=d),d!==null&&(d.next=h),h!==null&&(h.prev=d)},c.prototype._appendNode=function(u){var d=this._tail;d!==null&&(d.next=u),u.prev=d,u.next=null,this._tail=u,this._head===null&&(this._head=u)},c.prototype.prealloc=function(u){for(var d=this._nodePool,h=0;h<u;h++)d.push({prev:null,next:null,key:null,value:null})},c.prototype.get=function(u){var d=this._map[u];return d!==void 0?(this._unlinkNode(d),this._appendNode(d),d.value):null},c.prototype.peekValue=function(u){var d=this._map[u];return d!==void 0?d.value:null},c.prototype.peek=function(){var u=this._head;return u===null?null:u.value},c.prototype.set=function(u,d){var h=this._map[u];if(h!==void 0)h=this._map[u],this._unlinkNode(h),h.value=d;else if(this.size>=this.capacity)h=this._head,this._unlinkNode(h),delete this._map[h.key],h.key=u,h.value=d,this._map[u]=h;else{var f=this._nodePool;f.length>0?((h=f.pop()).key=u,h.value=d):h={prev:null,next:null,key:u,value:d},this._map[u]=h,this.size++}this._appendNode(h)},c}();a.LRUMap=l},1296:function(s,a,l){var c,u=this&&this.__extends||(c=function(R,N){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,V){A.__proto__=V}||function(A,V){for(var P in V)Object.prototype.hasOwnProperty.call(V,P)&&(A[P]=V[P])},c(R,N)},function(R,N){if(typeof N!="function"&&N!==null)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function A(){this.constructor=R}c(R,N),R.prototype=N===null?Object.create(N):(A.prototype=N.prototype,new A)}),d=this&&this.__decorate||function(R,N,A,V){var P,U=arguments.length,F=U<3?N:V===null?V=Object.getOwnPropertyDescriptor(N,A):V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")F=Reflect.decorate(R,N,A,V);else for(var M=R.length-1;M>=0;M--)(P=R[M])&&(F=(U<3?P(F):U>3?P(N,A,F):P(N,A))||F);return U>3&&F&&Object.defineProperty(N,A,F),F},h=this&&this.__param||function(R,N){return function(A,V){N(A,V,R)}};Object.defineProperty(a,"__esModule",{value:!0}),a.DomRenderer=void 0;var f=l(3787),g=l(8803),p=l(844),m=l(4725),v=l(2585),_=l(8460),y=l(4774),b=l(9631),w="xterm-dom-renderer-owner-",x="xterm-fg-",S="xterm-bg-",k="xterm-focus",T=1,D=function(R){function N(A,V,P,U,F,M,W,j,$,Q){var ee=R.call(this)||this;return ee._colors=A,ee._element=V,ee._screenElement=P,ee._viewportElement=U,ee._linkifier=F,ee._linkifier2=M,ee._charSizeService=j,ee._optionsService=$,ee._bufferService=Q,ee._terminalClass=T++,ee._rowElements=[],ee._rowContainer=document.createElement("div"),ee._rowContainer.classList.add("xterm-rows"),ee._rowContainer.style.lineHeight="normal",ee._rowContainer.setAttribute("aria-hidden","true"),ee._refreshRowElements(ee._bufferService.cols,ee._bufferService.rows),ee._selectionContainer=document.createElement("div"),ee._selectionContainer.classList.add("xterm-selection"),ee._selectionContainer.setAttribute("aria-hidden","true"),ee.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},ee._updateDimensions(),ee._injectCss(),ee._rowFactory=W.createInstance(f.DomRendererRowFactory,document,ee._colors),ee._element.classList.add(w+ee._terminalClass),ee._screenElement.appendChild(ee._rowContainer),ee._screenElement.appendChild(ee._selectionContainer),ee._linkifier.onShowLinkUnderline(function(ge){return ee._onLinkHover(ge)}),ee._linkifier.onHideLinkUnderline(function(ge){return ee._onLinkLeave(ge)}),ee._linkifier2.onShowLinkUnderline(function(ge){return ee._onLinkHover(ge)}),ee._linkifier2.onHideLinkUnderline(function(ge){return ee._onLinkLeave(ge)}),ee}return u(N,R),Object.defineProperty(N.prototype,"onRequestRedraw",{get:function(){return new _.EventEmitter().event},enumerable:!1,configurable:!0}),N.prototype.dispose=function(){this._element.classList.remove(w+this._terminalClass),(0,b.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),R.prototype.dispose.call(this)},N.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var A=0,V=this._rowElements;A<V.length;A++){var P=V[A];P.style.width=this.dimensions.canvasWidth+"px",P.style.height=this.dimensions.actualCellHeight+"px",P.style.lineHeight=this.dimensions.actualCellHeight+"px",P.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var U=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=U,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},N.prototype.setColors=function(A){this._colors=A,this._injectCss()},N.prototype._injectCss=function(){var A=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var V=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";V+=this._terminalSelector+" span:not(."+f.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+f.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+f.ITALIC_CLASS+" { font-style: italic;}",V+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",V+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",V+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+f.CURSOR_CLASS+"."+f.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+f.CURSOR_CLASS+"."+f.CURSOR_BLINK_CLASS+":not(."+f.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+f.CURSOR_CLASS+"."+f.CURSOR_BLINK_CLASS+"."+f.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+f.CURSOR_CLASS+"."+f.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+f.CURSOR_CLASS+"."+f.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+f.CURSOR_CLASS+"."+f.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",V+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(P,U){V+=A._terminalSelector+" ."+x+U+" { color: "+P.css+"; }"+A._terminalSelector+" ."+S+U+" { background-color: "+P.css+"; }"}),V+=this._terminalSelector+" ."+x+g.INVERTED_DEFAULT_COLOR+" { color: "+y.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+S+g.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=V},N.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},N.prototype._refreshRowElements=function(A,V){for(var P=this._rowElements.length;P<=V;P++){var U=document.createElement("div");this._rowContainer.appendChild(U),this._rowElements.push(U)}for(;this._rowElements.length>V;)this._rowContainer.removeChild(this._rowElements.pop())},N.prototype.onResize=function(A,V){this._refreshRowElements(A,V),this._updateDimensions()},N.prototype.onCharSizeChanged=function(){this._updateDimensions()},N.prototype.onBlur=function(){this._rowContainer.classList.remove(k)},N.prototype.onFocus=function(){this._rowContainer.classList.add(k)},N.prototype.onSelectionChanged=function(A,V,P){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(A&&V){var U=A[1]-this._bufferService.buffer.ydisp,F=V[1]-this._bufferService.buffer.ydisp,M=Math.max(U,0),W=Math.min(F,this._bufferService.rows-1);if(!(M>=this._bufferService.rows||W<0)){var j=document.createDocumentFragment();if(P)j.appendChild(this._createSelectionElement(M,A[0],V[0],W-M+1));else{var $=U===M?A[0]:0,Q=M===F?V[0]:this._bufferService.cols;j.appendChild(this._createSelectionElement(M,$,Q));var ee=W-M-1;if(j.appendChild(this._createSelectionElement(M+1,0,this._bufferService.cols,ee)),M!==W){var ge=F===W?V[0]:this._bufferService.cols;j.appendChild(this._createSelectionElement(W,0,ge))}}this._selectionContainer.appendChild(j)}}},N.prototype._createSelectionElement=function(A,V,P,U){U===void 0&&(U=1);var F=document.createElement("div");return F.style.height=U*this.dimensions.actualCellHeight+"px",F.style.top=A*this.dimensions.actualCellHeight+"px",F.style.left=V*this.dimensions.actualCellWidth+"px",F.style.width=this.dimensions.actualCellWidth*(P-V)+"px",F},N.prototype.onCursorMove=function(){},N.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},N.prototype.clear=function(){for(var A=0,V=this._rowElements;A<V.length;A++)V[A].innerText=""},N.prototype.renderRows=function(A,V){for(var P=this._bufferService.buffer.ybase+this._bufferService.buffer.y,U=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),F=this._optionsService.options.cursorBlink,M=A;M<=V;M++){var W=this._rowElements[M];W.innerText="";var j=M+this._bufferService.buffer.ydisp,$=this._bufferService.buffer.lines.get(j),Q=this._optionsService.options.cursorStyle;W.appendChild(this._rowFactory.createRow($,j,j===P,Q,U,F,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(N.prototype,"_terminalSelector",{get:function(){return"."+w+this._terminalClass},enumerable:!1,configurable:!0}),N.prototype._onLinkHover=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!0)},N.prototype._onLinkLeave=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!1)},N.prototype._setCellUnderline=function(A,V,P,U,F,M){for(;A!==V||P!==U;){var W=this._rowElements[P];if(!W)return;var j=W.children[A];j&&(j.style.textDecoration=M?"underline":"none"),++A>=F&&(A=0,P++)}},d([h(6,v.IInstantiationService),h(7,m.ICharSizeService),h(8,v.IOptionsService),h(9,v.IBufferService)],N)}(p.Disposable);a.DomRenderer=D},3787:function(s,a,l){var c=this&&this.__decorate||function(b,w,x,S){var k,T=arguments.length,D=T<3?w:S===null?S=Object.getOwnPropertyDescriptor(w,x):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(b,w,x,S);else for(var R=b.length-1;R>=0;R--)(k=b[R])&&(D=(T<3?k(D):T>3?k(w,x,D):k(w,x))||D);return T>3&&D&&Object.defineProperty(w,x,D),D},u=this&&this.__param||function(b,w){return function(x,S){w(x,S,b)}};Object.defineProperty(a,"__esModule",{value:!0}),a.DomRendererRowFactory=a.CURSOR_STYLE_UNDERLINE_CLASS=a.CURSOR_STYLE_BAR_CLASS=a.CURSOR_STYLE_BLOCK_CLASS=a.CURSOR_BLINK_CLASS=a.CURSOR_CLASS=a.STRIKETHROUGH_CLASS=a.UNDERLINE_CLASS=a.ITALIC_CLASS=a.DIM_CLASS=a.BOLD_CLASS=void 0;var d=l(8803),h=l(643),f=l(511),g=l(2585),p=l(4774),m=l(4725),v=l(4269);a.BOLD_CLASS="xterm-bold",a.DIM_CLASS="xterm-dim",a.ITALIC_CLASS="xterm-italic",a.UNDERLINE_CLASS="xterm-underline",a.STRIKETHROUGH_CLASS="xterm-strikethrough",a.CURSOR_CLASS="xterm-cursor",a.CURSOR_BLINK_CLASS="xterm-cursor-blink",a.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",a.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",a.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var _=function(){function b(w,x,S,k,T){this._document=w,this._colors=x,this._characterJoinerService=S,this._optionsService=k,this._coreService=T,this._workCell=new f.CellData}return b.prototype.setColors=function(w){this._colors=w},b.prototype.createRow=function(w,x,S,k,T,D,R,N){for(var A=this._document.createDocumentFragment(),V=this._characterJoinerService.getJoinedCharacters(x),P=0,U=Math.min(w.length,N)-1;U>=0;U--)if(w.loadCell(U,this._workCell).getCode()!==h.NULL_CELL_CODE||S&&U===T){P=U+1;break}for(U=0;U<P;U++){w.loadCell(U,this._workCell);var F=this._workCell.getWidth();if(F!==0){var M=!1,W=U,j=this._workCell;if(V.length>0&&U===V[0][0]){M=!0;var $=V.shift();j=new v.JoinedCellData(this._workCell,w.translateToString(!0,$[0],$[1]),$[1]-$[0]),W=$[1]-1,F=j.getWidth()}var Q=this._document.createElement("span");if(F>1&&(Q.style.width=R*F+"px"),M&&(Q.style.display="inline",T>=U&&T<=W&&(T=U)),!this._coreService.isCursorHidden&&S&&U===T)switch(Q.classList.add(a.CURSOR_CLASS),D&&Q.classList.add(a.CURSOR_BLINK_CLASS),k){case"bar":Q.classList.add(a.CURSOR_STYLE_BAR_CLASS);break;case"underline":Q.classList.add(a.CURSOR_STYLE_UNDERLINE_CLASS);break;default:Q.classList.add(a.CURSOR_STYLE_BLOCK_CLASS)}j.isBold()&&Q.classList.add(a.BOLD_CLASS),j.isItalic()&&Q.classList.add(a.ITALIC_CLASS),j.isDim()&&Q.classList.add(a.DIM_CLASS),j.isUnderline()&&Q.classList.add(a.UNDERLINE_CLASS),j.isInvisible()?Q.textContent=h.WHITESPACE_CELL_CHAR:Q.textContent=j.getChars()||h.WHITESPACE_CELL_CHAR,j.isStrikethrough()&&Q.classList.add(a.STRIKETHROUGH_CLASS);var ee=j.getFgColor(),ge=j.getFgColorMode(),_e=j.getBgColor(),Ie=j.getBgColorMode(),K=!!j.isInverse();if(K){var se=ee;ee=_e,_e=se;var oe=ge;ge=Ie,Ie=oe}switch(ge){case 16777216:case 33554432:j.isBold()&&ee<8&&this._optionsService.options.drawBoldTextInBrightColors&&(ee+=8),this._applyMinimumContrast(Q,this._colors.background,this._colors.ansi[ee])||Q.classList.add("xterm-fg-"+ee);break;case 50331648:var Ne=p.rgba.toColor(ee>>16&255,ee>>8&255,255&ee);this._applyMinimumContrast(Q,this._colors.background,Ne)||this._addStyle(Q,"color:#"+y(ee.toString(16),"0",6));break;default:this._applyMinimumContrast(Q,this._colors.background,this._colors.foreground)||K&&Q.classList.add("xterm-fg-"+d.INVERTED_DEFAULT_COLOR)}switch(Ie){case 16777216:case 33554432:Q.classList.add("xterm-bg-"+_e);break;case 50331648:this._addStyle(Q,"background-color:#"+y(_e.toString(16),"0",6));break;default:K&&Q.classList.add("xterm-bg-"+d.INVERTED_DEFAULT_COLOR)}A.appendChild(Q),U=W}}return A},b.prototype._applyMinimumContrast=function(w,x,S){if(this._optionsService.options.minimumContrastRatio===1)return!1;var k=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return k===void 0&&(k=p.color.ensureContrastRatio(x,S,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,k!=null?k:null)),!!k&&(this._addStyle(w,"color:"+k.css),!0)},b.prototype._addStyle=function(w,x){w.setAttribute("style",""+(w.getAttribute("style")||"")+x+";")},c([u(2,m.ICharacterJoinerService),u(3,g.IOptionsService),u(4,g.ICoreService)],b)}();function y(b,w,x){for(;b.length<x;)b=w+b;return b}a.DomRendererRowFactory=_},456:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SelectionModel=void 0;var l=function(){function c(u){this._bufferService=u,this.isSelectAllActive=!1,this.selectionStartLength=0}return c.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(c.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var u=this.selectionStart[0]+this.selectionStartLength;return u>this._bufferService.cols?u%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)-1]:[u%this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)]:[u,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),c.prototype.areSelectionValuesReversed=function(){var u=this.selectionStart,d=this.selectionEnd;return!(!u||!d)&&(u[1]>d[1]||u[1]===d[1]&&u[0]>d[0])},c.prototype.onTrim=function(u){return this.selectionStart&&(this.selectionStart[1]-=u),this.selectionEnd&&(this.selectionEnd[1]-=u),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},c}();a.SelectionModel=l},428:function(s,a,l){var c=this&&this.__decorate||function(p,m,v,_){var y,b=arguments.length,w=b<3?m:_===null?_=Object.getOwnPropertyDescriptor(m,v):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(p,m,v,_);else for(var x=p.length-1;x>=0;x--)(y=p[x])&&(w=(b<3?y(w):b>3?y(m,v,w):y(m,v))||w);return b>3&&w&&Object.defineProperty(m,v,w),w},u=this&&this.__param||function(p,m){return function(v,_){m(v,_,p)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CharSizeService=void 0;var d=l(2585),h=l(8460),f=function(){function p(m,v,_){this._optionsService=_,this.width=0,this.height=0,this._onCharSizeChange=new h.EventEmitter,this._measureStrategy=new g(m,v,this._optionsService)}return Object.defineProperty(p.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),p.prototype.measure=function(){var m=this._measureStrategy.measure();m.width===this.width&&m.height===this.height||(this.width=m.width,this.height=m.height,this._onCharSizeChange.fire())},c([u(2,d.IOptionsService)],p)}();a.CharSizeService=f;var g=function(){function p(m,v,_){this._document=m,this._parentElement=v,this._optionsService=_,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return p.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var m=this._measureElement.getBoundingClientRect();return m.width!==0&&m.height!==0&&(this._result.width=m.width,this._result.height=Math.ceil(m.height)),this._result},p}()},4269:function(s,a,l){var c,u=this&&this.__extends||(c=function(y,b){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&(w[S]=x[S])},c(y,b)},function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function w(){this.constructor=y}c(y,b),y.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}),d=this&&this.__decorate||function(y,b,w,x){var S,k=arguments.length,T=k<3?b:x===null?x=Object.getOwnPropertyDescriptor(b,w):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(y,b,w,x);else for(var D=y.length-1;D>=0;D--)(S=y[D])&&(T=(k<3?S(T):k>3?S(b,w,T):S(b,w))||T);return k>3&&T&&Object.defineProperty(b,w,T),T},h=this&&this.__param||function(y,b){return function(w,x){b(w,x,y)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CharacterJoinerService=a.JoinedCellData=void 0;var f=l(3734),g=l(643),p=l(511),m=l(2585),v=function(y){function b(w,x,S){var k=y.call(this)||this;return k.content=0,k.combinedData="",k.fg=w.fg,k.bg=w.bg,k.combinedData=x,k._width=S,k}return u(b,y),b.prototype.isCombined=function(){return 2097152},b.prototype.getWidth=function(){return this._width},b.prototype.getChars=function(){return this.combinedData},b.prototype.getCode=function(){return 2097151},b.prototype.setFromCharData=function(w){throw new Error("not implemented")},b.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},b}(f.AttributeData);a.JoinedCellData=v;var _=function(){function y(b){this._bufferService=b,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new p.CellData}return y.prototype.register=function(b){var w={id:this._nextCharacterJoinerId++,handler:b};return this._characterJoiners.push(w),w.id},y.prototype.deregister=function(b){for(var w=0;w<this._characterJoiners.length;w++)if(this._characterJoiners[w].id===b)return this._characterJoiners.splice(w,1),!0;return!1},y.prototype.getJoinedCharacters=function(b){if(this._characterJoiners.length===0)return[];var w=this._bufferService.buffer.lines.get(b);if(!w||w.length===0)return[];for(var x=[],S=w.translateToString(!0),k=0,T=0,D=0,R=w.getFg(0),N=w.getBg(0),A=0;A<w.getTrimmedLength();A++)if(w.loadCell(A,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==R||this._workCell.bg!==N){if(A-k>1)for(var V=this._getJoinedRanges(S,D,T,w,k),P=0;P<V.length;P++)x.push(V[P]);k=A,D=T,R=this._workCell.fg,N=this._workCell.bg}T+=this._workCell.getChars().length||g.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-k>1)for(V=this._getJoinedRanges(S,D,T,w,k),P=0;P<V.length;P++)x.push(V[P]);return x},y.prototype._getJoinedRanges=function(b,w,x,S,k){var T=b.substring(w,x),D=[];try{D=this._characterJoiners[0].handler(T)}catch(V){console.error(V)}for(var R=1;R<this._characterJoiners.length;R++)try{for(var N=this._characterJoiners[R].handler(T),A=0;A<N.length;A++)y._mergeRanges(D,N[A])}catch(V){console.error(V)}return this._stringRangesToCellRanges(D,S,k),D},y.prototype._stringRangesToCellRanges=function(b,w,x){var S=0,k=!1,T=0,D=b[S];if(D){for(var R=x;R<this._bufferService.cols;R++){var N=w.getWidth(R),A=w.getString(R).length||g.WHITESPACE_CELL_CHAR.length;if(N!==0){if(!k&&D[0]<=T&&(D[0]=R,k=!0),D[1]<=T){if(D[1]=R,!(D=b[++S]))break;D[0]<=T?(D[0]=R,k=!0):k=!1}T+=A}}D&&(D[1]=this._bufferService.cols)}},y._mergeRanges=function(b,w){for(var x=!1,S=0;S<b.length;S++){var k=b[S];if(x){if(w[1]<=k[0])return b[S-1][1]=w[1],b;if(w[1]<=k[1])return b[S-1][1]=Math.max(w[1],k[1]),b.splice(S,1),b;b.splice(S,1),S--}else{if(w[1]<=k[0])return b.splice(S,0,w),b;if(w[1]<=k[1])return k[0]=Math.min(w[0],k[0]),b;w[0]<k[1]&&(k[0]=Math.min(w[0],k[0]),x=!0)}}return x?b[b.length-1][1]=w[1]:b.push(w),b},y=d([h(0,m.IBufferService)],y)}();a.CharacterJoinerService=_},5114:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CoreBrowserService=void 0;var l=function(){function c(u){this._textarea=u}return Object.defineProperty(c.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),c}();a.CoreBrowserService=l},8934:function(s,a,l){var c=this&&this.__decorate||function(g,p,m,v){var _,y=arguments.length,b=y<3?p:v===null?v=Object.getOwnPropertyDescriptor(p,m):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(g,p,m,v);else for(var w=g.length-1;w>=0;w--)(_=g[w])&&(b=(y<3?_(b):y>3?_(p,m,b):_(p,m))||b);return y>3&&b&&Object.defineProperty(p,m,b),b},u=this&&this.__param||function(g,p){return function(m,v){p(m,v,g)}};Object.defineProperty(a,"__esModule",{value:!0}),a.MouseService=void 0;var d=l(4725),h=l(9806),f=function(){function g(p,m){this._renderService=p,this._charSizeService=m}return g.prototype.getCoords=function(p,m,v,_,y){return(0,h.getCoords)(p,m,v,_,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,y)},g.prototype.getRawByteCoords=function(p,m,v,_){var y=this.getCoords(p,m,v,_);return(0,h.getRawByteCoords)(y)},c([u(0,d.IRenderService),u(1,d.ICharSizeService)],g)}();a.MouseService=f},3230:function(s,a,l){var c,u=this&&this.__extends||(c=function(w,x){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,k){S.__proto__=k}||function(S,k){for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&(S[T]=k[T])},c(w,x)},function(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function S(){this.constructor=w}c(w,x),w.prototype=x===null?Object.create(x):(S.prototype=x.prototype,new S)}),d=this&&this.__decorate||function(w,x,S,k){var T,D=arguments.length,R=D<3?x:k===null?k=Object.getOwnPropertyDescriptor(x,S):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(w,x,S,k);else for(var N=w.length-1;N>=0;N--)(T=w[N])&&(R=(D<3?T(R):D>3?T(x,S,R):T(x,S))||R);return D>3&&R&&Object.defineProperty(x,S,R),R},h=this&&this.__param||function(w,x){return function(S,k){x(S,k,w)}};Object.defineProperty(a,"__esModule",{value:!0}),a.RenderService=void 0;var f=l(6193),g=l(8460),p=l(844),m=l(5596),v=l(3656),_=l(2585),y=l(4725),b=function(w){function x(S,k,T,D,R,N){var A=w.call(this)||this;if(A._renderer=S,A._rowCount=k,A._charSizeService=R,A._isPaused=!1,A._needsFullRefresh=!1,A._isNextRenderRedrawOnly=!0,A._needsSelectionRefresh=!1,A._canvasWidth=0,A._canvasHeight=0,A._selectionState={start:void 0,end:void 0,columnSelectMode:!1},A._onDimensionsChange=new g.EventEmitter,A._onRender=new g.EventEmitter,A._onRefreshRequest=new g.EventEmitter,A.register({dispose:function(){return A._renderer.dispose()}}),A._renderDebouncer=new f.RenderDebouncer(function(P,U){return A._renderRows(P,U)}),A.register(A._renderDebouncer),A._screenDprMonitor=new m.ScreenDprMonitor,A._screenDprMonitor.setListener(function(){return A.onDevicePixelRatioChange()}),A.register(A._screenDprMonitor),A.register(N.onResize(function(P){return A._fullRefresh()})),A.register(D.onOptionChange(function(){return A._renderer.onOptionsChanged()})),A.register(A._charSizeService.onCharSizeChange(function(){return A.onCharSizeChanged()})),A._renderer.onRequestRedraw(function(P){return A.refreshRows(P.start,P.end,!0)}),A.register((0,v.addDisposableDomListener)(window,"resize",function(){return A.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var V=new IntersectionObserver(function(P){return A._onIntersectionChange(P[P.length-1])},{threshold:0});V.observe(T),A.register({dispose:function(){return V.disconnect()}})}return A}return u(x,w),Object.defineProperty(x.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),x.prototype._onIntersectionChange=function(S){this._isPaused=S.isIntersecting===void 0?S.intersectionRatio===0:!S.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},x.prototype.refreshRows=function(S,k,T){T===void 0&&(T=!1),this._isPaused?this._needsFullRefresh=!0:(T||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(S,k,this._rowCount))},x.prototype._renderRows=function(S,k){this._renderer.renderRows(S,k),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:S,end:k}),this._isNextRenderRedrawOnly=!0},x.prototype.resize=function(S,k){this._rowCount=k,this._fireOnCanvasResize()},x.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},x.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},x.prototype.dispose=function(){w.prototype.dispose.call(this)},x.prototype.setRenderer=function(S){var k=this;this._renderer.dispose(),this._renderer=S,this._renderer.onRequestRedraw(function(T){return k.refreshRows(T.start,T.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},x.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},x.prototype.clearTextureAtlas=function(){var S,k;(k=(S=this._renderer)===null||S===void 0?void 0:S.clearTextureAtlas)===null||k===void 0||k.call(S),this._fullRefresh()},x.prototype.setColors=function(S){this._renderer.setColors(S),this._fullRefresh()},x.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},x.prototype.onResize=function(S,k){this._renderer.onResize(S,k),this._fullRefresh()},x.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},x.prototype.onBlur=function(){this._renderer.onBlur()},x.prototype.onFocus=function(){this._renderer.onFocus()},x.prototype.onSelectionChanged=function(S,k,T){this._selectionState.start=S,this._selectionState.end=k,this._selectionState.columnSelectMode=T,this._renderer.onSelectionChanged(S,k,T)},x.prototype.onCursorMove=function(){this._renderer.onCursorMove()},x.prototype.clear=function(){this._renderer.clear()},d([h(3,_.IOptionsService),h(4,y.ICharSizeService),h(5,_.IBufferService)],x)}(p.Disposable);a.RenderService=b},9312:function(s,a,l){var c,u=this&&this.__extends||(c=function(D,R){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,A){N.__proto__=A}||function(N,A){for(var V in A)Object.prototype.hasOwnProperty.call(A,V)&&(N[V]=A[V])},c(D,R)},function(D,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function N(){this.constructor=D}c(D,R),D.prototype=R===null?Object.create(R):(N.prototype=R.prototype,new N)}),d=this&&this.__decorate||function(D,R,N,A){var V,P=arguments.length,U=P<3?R:A===null?A=Object.getOwnPropertyDescriptor(R,N):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")U=Reflect.decorate(D,R,N,A);else for(var F=D.length-1;F>=0;F--)(V=D[F])&&(U=(P<3?V(U):P>3?V(R,N,U):V(R,N))||U);return P>3&&U&&Object.defineProperty(R,N,U),U},h=this&&this.__param||function(D,R){return function(N,A){R(N,A,D)}};Object.defineProperty(a,"__esModule",{value:!0}),a.SelectionService=void 0;var f=l(6114),g=l(456),p=l(511),m=l(8460),v=l(4725),_=l(2585),y=l(9806),b=l(9504),w=l(844),x=l(4841),S=String.fromCharCode(160),k=new RegExp(S,"g"),T=function(D){function R(N,A,V,P,U,F,M,W){var j=D.call(this)||this;return j._element=N,j._screenElement=A,j._linkifier=V,j._bufferService=P,j._coreService=U,j._mouseService=F,j._optionsService=M,j._renderService=W,j._dragScrollAmount=0,j._enabled=!0,j._workCell=new p.CellData,j._mouseDownTimeStamp=0,j._oldHasSelection=!1,j._oldSelectionStart=void 0,j._oldSelectionEnd=void 0,j._onLinuxMouseSelection=j.register(new m.EventEmitter),j._onRedrawRequest=j.register(new m.EventEmitter),j._onSelectionChange=j.register(new m.EventEmitter),j._onRequestScrollLines=j.register(new m.EventEmitter),j._mouseMoveListener=function($){return j._onMouseMove($)},j._mouseUpListener=function($){return j._onMouseUp($)},j._coreService.onUserInput(function(){j.hasSelection&&j.clearSelection()}),j._trimListener=j._bufferService.buffer.lines.onTrim(function($){return j._onTrim($)}),j.register(j._bufferService.buffers.onBufferActivate(function($){return j._onBufferActivate($)})),j.enable(),j._model=new g.SelectionModel(j._bufferService),j._activeSelectionMode=0,j}return u(R,D),Object.defineProperty(R.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),R.prototype.dispose=function(){this._removeMouseDownListeners()},R.prototype.reset=function(){this.clearSelection()},R.prototype.disable=function(){this.clearSelection(),this._enabled=!1},R.prototype.enable=function(){this._enabled=!0},Object.defineProperty(R.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"hasSelection",{get:function(){var N=this._model.finalSelectionStart,A=this._model.finalSelectionEnd;return!(!N||!A||N[0]===A[0]&&N[1]===A[1])},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"selectionText",{get:function(){var N=this._model.finalSelectionStart,A=this._model.finalSelectionEnd;if(!N||!A)return"";var V=this._bufferService.buffer,P=[];if(this._activeSelectionMode===3){if(N[0]===A[0])return"";for(var U=N[1];U<=A[1];U++){var F=V.translateBufferLineToString(U,!0,N[0],A[0]);P.push(F)}}else{var M=N[1]===A[1]?A[0]:void 0;for(P.push(V.translateBufferLineToString(N[1],!0,N[0],M)),U=N[1]+1;U<=A[1]-1;U++){var W=V.lines.get(U);F=V.translateBufferLineToString(U,!0),(W==null?void 0:W.isWrapped)?P[P.length-1]+=F:P.push(F)}N[1]!==A[1]&&(W=V.lines.get(A[1]),F=V.translateBufferLineToString(A[1],!0,0,A[0]),W&&W.isWrapped?P[P.length-1]+=F:P.push(F))}return P.map(function(j){return j.replace(k," ")}).join(f.isWindows?`\r
|
|
2186
2186
|
`:`
|
|
@@ -2238,11 +2238,11 @@ ${JSON.stringify(v,void 0,4)}`)});else if(f.changes)for(const v of Object.keys(f
|
|
|
2238
2238
|
background-color: #5a5a5a;
|
|
2239
2239
|
opacity: 0.6;
|
|
2240
2240
|
`,Nwe=e=>{var n=gr(e,[]);var p;const t=Yt(m=>m.playgroundStatus),i=Yt(m=>m.dockerStatus),[r,o]=O.exports.useState("EMPTY"),[s,a]=O.exports.useState("STOP"),l=m=>m?(m.indexOf("http://")!==0&&m.indexOf("https://")!==0&&(m=`${Rwe}${m}`),m):`${Rwe}showmebug.com`;O.exports.useEffect(()=>{o(t)},[t]),O.exports.useEffect(()=>{a(i),setTimeout(()=>{f()},800)},[i]);const c=O.exports.useRef(null),[u,d]=O.exports.useState(l((p=Yt.getState().dockerInfo)==null?void 0:p.url));O.exports.useEffect(()=>{},[c]);const h=m=>{var _,y;if(m.keyCode!==13)return;const v=l(m.target.value);d(v),(y=(_=c==null?void 0:c.current)==null?void 0:_.contentWindow)==null||y.location.replace(v)},f=()=>{var m,v;(v=(m=c==null?void 0:c.current)==null?void 0:m.contentWindow)==null||v.location.replace(u)},g=()=>{window.open(u)};return O.exports.useEffect(()=>{var m,v,_;r!=="EMPTY"&&(d(l((m=Yt.getState().dockerInfo)==null?void 0:m.url)),r==="ACTIVE"&&s==="RUNNING"&&u!=="http://"&&u!=="https://"&&((_=(v=c==null?void 0:c.current)==null?void 0:v.contentWindow)==null||_.location.replace(u)))},[r,s]),dt(BE,{name:"browser",children:[dt(INt,{children:[ne("i",{className:"d42 text-xl reload cursor-pointer",onClick:f}),ne("input",{type:"text",value:u,onChange:m=>d(m.target.value),onKeyDown:h}),ne("i",{className:"d42 text-xl file-copy cursor-pointer",onClick:g})]}),s==="STOP"&&ne(RNt,{children:ne("span",{children:"\u70B9\u51FB\u201C\u8FD0\u884C\u201D\uFF0C\u542F\u52A8\u5E94\u7528"})}),ne("iframe",{ref:c,src:u,style:{width:"100%",height:"calc(100% - 30px)"}})]})};var NNt=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Nwe});const Awe=t=>{var i=t,{options:n}=i,e=gr(i,["options"]);const r=Te({},n),o=document.createElement("div");o.classList.add("xterm-helper-user-label");const[s,a]=O.exports.useState(null),{CRDTInfo:l}=Yt(f=>f),c=Yr(f=>f.socket),u=(f,g)=>{f.write(`\r
|
|
2241
|
-
`),f.clear(),d(f,g)},d=(f,g)=>{f.write(g)},h=f=>{var p,m;if(Yt.getState().appStatus==="replay")return;const g={timestamp:Date.now(),userInfo:ec.exports.pick(Mu.getState().userInfo,"uuid"),terminal:{doc:{action:"Edit",value:f}}};(m=(p=Yr.getState())==null?void 0:p.socket)==null||m.emit("terminal",JSON.stringify(g))};return O.exports.useEffect(()=>{if(!s){const f=new uY.exports.Terminal(r);a(f)}},[]),O.exports.useEffect(()=>{var f,g,p,m;!s||l.terminal&&u(s,((m=(p=(g=(f=Yt.getState())==null?void 0:f.CRDTInfo)==null?void 0:g.terminal)==null?void 0:p.doc)==null?void 0:m.value)||"")},[s]),O.exports.useEffect(()=>{var g,p,m,v;const f=l.terminal;if(s&&f){if(((g=f==null?void 0:f.doc)==null?void 0:g.action)==="Get"){u(s,((p=f==null?void 0:f.doc)==null?void 0:p.value)||"");return}if(d(s,((m=f==null?void 0:f.doc)==null?void 0:m.value)||""),!l.userInfo.uuid)return;const _=sa.getState().userList.find(({uuid:y})=>y===l.userInfo.uuid);if(_&&!Hd(l.userInfo)){const y=(v=s==null?void 0:s._core)==null?void 0:v._helperContainer,b=y==null?void 0:y.firstChild;o.innerText=_.username,o.style.backgroundColor=_.color,o.style.top=b.style.top,o.style.left=b.style.left,y==null||y.appendChild(o),s.setOption("theme",
|
|
2241
|
+
`),f.clear(),d(f,g)},d=(f,g)=>{f.write(g)},h=f=>{var p,m;if(Yt.getState().appStatus==="replay")return;const g={timestamp:Date.now(),userInfo:ec.exports.pick(Mu.getState().userInfo,"uuid"),terminal:{doc:{action:"Edit",value:f}}};(m=(p=Yr.getState())==null?void 0:p.socket)==null||m.emit("terminal",JSON.stringify(g))};return O.exports.useEffect(()=>{if(!s){const f=new uY.exports.Terminal(r);a(f)}},[]),O.exports.useEffect(()=>{var f,g,p,m;!s||l.terminal&&u(s,((m=(p=(g=(f=Yt.getState())==null?void 0:f.CRDTInfo)==null?void 0:g.terminal)==null?void 0:p.doc)==null?void 0:m.value)||"")},[s]),O.exports.useEffect(()=>{var g,p,m,v;const f=l.terminal;if(s&&f){if(((g=f==null?void 0:f.doc)==null?void 0:g.action)==="Get"){u(s,((p=f==null?void 0:f.doc)==null?void 0:p.value)||"");return}if(d(s,((m=f==null?void 0:f.doc)==null?void 0:m.value)||""),!l.userInfo.uuid)return;const _=sa.getState().userList.find(({uuid:y})=>y===l.userInfo.uuid);if(_&&!Hd(l.userInfo)){const y=(v=s==null?void 0:s._core)==null?void 0:v._helperContainer,b=y==null?void 0:y.firstChild;o.innerText=_.username,o.style.backgroundColor=_.color,o.style.top=b.style.top,o.style.left=b.style.left,y==null||y.appendChild(o),s.setOption("theme",st(Te({},s.getOption("theme")),{cursor:_.color}));const w=setTimeout(()=>{y==null||y.removeChild(o),s.setOption("theme",st(Te({},s.getOption("theme")),{cursor:"#ffffff"}))},6e3);return()=>{try{y==null||y.removeChild(o)}catch{}s.setOption("theme",st(Te({},s.getOption("theme")),{cursor:"#ffffff"})),clearTimeout(w)}}}},[l.terminal]),O.exports.useEffect(()=>(c==null||c.on("terminal",f=>{var m,v,_,y;const p=JSON.parse(f).terminal;if(p){if(((m=p==null?void 0:p.doc)==null?void 0:m.action)==="Get"){u(s,((v=p==null?void 0:p.doc)==null?void 0:v.value)||"");return}d(s,((_=p==null?void 0:p.doc)==null?void 0:_.value)||"");const b=(y=s==null?void 0:s._core)==null?void 0:y._helperContainer,w=b==null?void 0:b.firstChild;o.style.top=w.style.top,o.style.left=w.style.left,b==null||b.appendChild(o)}}),()=>{c==null||c.off("terminal")}),[s,c]),ne(BE,{name:"terminal",children:ne("div",{id:"terminal",style:{height:"100%",width:"100%"},children:ne(Dwe,Te({terminal:s,onKey:h},e))})})};var ANt=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Awe});const ONt=r=>{var o=r,{activeKey:n,onSelect:e,tabItems:t}=o,i=gr(o,["activeKey","onSelect","tabItems"]);return ne(ase,st(Te({},i),{activeKey:n,onSelect:e,children:t==null?void 0:t.map(s=>ne(ase.Item,{eventKey:s.eventKey,children:s.itemName},s.eventKey))}))};var PNt=/[A-Z]|^ms/g,MNt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Owe=function(e){return e.charCodeAt(1)===45},Pwe=function(e){return e!=null&&typeof e!="boolean"},dY=y9(function(n){return Owe(n)?n:n.replace(PNt,"-$&").toLowerCase()}),Mwe=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(MNt,function(i,r,o){return tf={name:r,styles:o,next:tf},r})}return Mse[e]!==1&&!Owe(e)&&typeof t=="number"&&t!==0?t+"px":t};function QT(n,e,t){if(t==null)return"";if(t.__emotion_styles!==void 0)return t;switch(typeof t){case"boolean":return"";case"object":{if(t.anim===1)return tf={name:t.name,styles:t.styles,next:tf},t.name;if(t.styles!==void 0){var i=t.next;if(i!==void 0)for(;i!==void 0;)tf={name:i.name,styles:i.styles,next:tf},i=i.next;var r=t.styles+";";return r}return FNt(n,e,t)}case"function":{if(n!==void 0){var o=tf,s=t(n);return tf=o,QT(n,e,s)}break}}if(e==null)return t;var a=e[t];return a!==void 0?a:t}function FNt(n,e,t){var i="";if(Array.isArray(t))for(var r=0;r<t.length;r++)i+=QT(n,e,t[r])+";";else for(var o in t){var s=t[o];if(typeof s!="object")e!=null&&e[s]!==void 0?i+=o+"{"+e[s]+"}":Pwe(s)&&(i+=dY(o)+":"+Mwe(o,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var a=0;a<s.length;a++)Pwe(s[a])&&(i+=dY(o)+":"+Mwe(o,s[a])+";");else{var l=QT(n,e,s);switch(o){case"animation":case"animationName":{i+=dY(o)+":"+l+";";break}default:i+=o+"{"+l+"}"}}}return i}var Fwe=/label:\s*([^\s;\n{]+)\s*(;|$)/g,tf,hY=function(e,t,i){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";tf=void 0;var s=e[0];s==null||s.raw===void 0?(r=!1,o+=QT(i,t,s)):o+=s[0];for(var a=1;a<e.length;a++)o+=QT(i,t,e[a]),r&&(o+=s[a]);Fwe.lastIndex=0;for(var l="",c;(c=Fwe.exec(o))!==null;)l+="-"+c[1];var u=Pse(o)+l;return{name:u,styles:o,next:tf}},BNt=!0;function Bwe(n,e,t){var i="";return t.split(" ").forEach(function(r){n[r]!==void 0?e.push(n[r]+";"):i+=r+" "}),i}var $Nt=function(e,t,i){var r=e.key+"-"+t.name;if((i===!1||BNt===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles),e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function $we(n,e){if(n.inserted[e.name]===void 0)return n.insert("",e,n.sheet,!0)}function Wwe(n,e,t){var i=[],r=Bwe(n,i,t);return i.length<2?t:r+e(i)}var WNt=function(e){var t=Ose(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=hY(c,t.registered,void 0);return $Nt(t,d,!1),t.key+"-"+d.name},r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=hY(c,t.registered),h="animation-"+d.name;return $we(t,{name:d.name,styles:"@keyframes "+h+"{"+d.styles+"}"}),h},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=hY(c,t.registered);$we(t,d)},s=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return Wwe(t.registered,i,HNt(c))};return{css:i,cx:s,injectGlobal:o,keyframes:r,hydrate:function(l){l.forEach(function(c){t.inserted[c]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Bwe.bind(null,t.registered),merge:Wwe.bind(null,t.registered,i)}},HNt=function n(e){for(var t="",i=0;i<e.length;i++){var r=e[i];if(r!=null){var o=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))o=n(r);else{o="";for(var s in r)r[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=r}o&&(t&&(t+=" "),t+=o)}}return t},VNt=WNt({key:"css"}),zNt=VNt.css;const UNt=vs.div`
|
|
2242
2242
|
background: #eee;
|
|
2243
2243
|
border-color: ${n=>n.user.color};
|
|
2244
2244
|
background-image: ${n=>'url("'+n.user.avatar+'")'};
|
|
2245
|
-
`,Hwe=t=>{var i=t,{user:n}=i,e=gr(i,["user"]);return ne(UNt,Te({className:"rounded-full motion-safe:hover:scale-110 h-8 w-8 self-center bg-cover bg-no-repeat bg-center border-2",user:n},e))},Vwe=xe.createContext({});function jNt(t){var i=t,{children:n}=i,e=gr(i,["children"]);return xe.createElement(Vwe.Provider,{value:e},n)}const zwe=!0;function qNt({baseColor:n,highlightColor:e,width:t,height:i,borderRadius:r,circle:o,direction:s,duration:a,enableAnimation:l=zwe}){const c={};return s==="rtl"&&(c["--animation-direction"]="reverse"),typeof a=="number"&&(c["--animation-duration"]=`${a}s`),l||(c["--pseudo-element-display"]="none"),(typeof t=="string"||typeof t=="number")&&(c.width=t),(typeof i=="string"||typeof i=="number")&&(c.height=i),(typeof r=="string"||typeof r=="number")&&(c.borderRadius=r),o&&(c.borderRadius="50%"),typeof n!="undefined"&&(c["--base-color"]=n),typeof e!="undefined"&&(c["--highlight-color"]=e),c}function KNt(l){var c=l,{count:n=1,wrapper:e,className:t,containerClassName:i,containerTestId:r,circle:o=!1,style:s}=c,a=gr(c,["count","wrapper","className","containerClassName","containerTestId","circle","style"]);var u,d;const h=xe.useContext(Vwe),f=
|
|
2245
|
+
`,Hwe=t=>{var i=t,{user:n}=i,e=gr(i,["user"]);return ne(UNt,Te({className:"rounded-full motion-safe:hover:scale-110 h-8 w-8 self-center bg-cover bg-no-repeat bg-center border-2",user:n},e))},Vwe=xe.createContext({});function jNt(t){var i=t,{children:n}=i,e=gr(i,["children"]);return xe.createElement(Vwe.Provider,{value:e},n)}const zwe=!0;function qNt({baseColor:n,highlightColor:e,width:t,height:i,borderRadius:r,circle:o,direction:s,duration:a,enableAnimation:l=zwe}){const c={};return s==="rtl"&&(c["--animation-direction"]="reverse"),typeof a=="number"&&(c["--animation-duration"]=`${a}s`),l||(c["--pseudo-element-display"]="none"),(typeof t=="string"||typeof t=="number")&&(c.width=t),(typeof i=="string"||typeof i=="number")&&(c.height=i),(typeof r=="string"||typeof r=="number")&&(c.borderRadius=r),o&&(c.borderRadius="50%"),typeof n!="undefined"&&(c["--base-color"]=n),typeof e!="undefined"&&(c["--highlight-color"]=e),c}function KNt(l){var c=l,{count:n=1,wrapper:e,className:t,containerClassName:i,containerTestId:r,circle:o=!1,style:s}=c,a=gr(c,["count","wrapper","className","containerClassName","containerTestId","circle","style"]);var u,d;const h=xe.useContext(Vwe),f=st(Te(Te({},h),a),{circle:o}),g=Te(Te({},s),qNt(f));let p="react-loading-skeleton";t&&(p+=` ${t}`);const m=(u=f.inline)!==null&&u!==void 0?u:!1,v=[];for(let _=0;_<n;_++){const y=xe.createElement("span",{className:p,style:g,key:_},"\u200C");m?v.push(y):v.push(xe.createElement(xe.Fragment,{key:_},y,xe.createElement("br",null)))}return xe.createElement("span",{className:i,"data-testid":r,"aria-live":"polite","aria-busy":(d=f.enableAnimation)!==null&&d!==void 0?d:zwe},e?v.map((_,y)=>xe.createElement(e,{key:y},_)):v)}var iHt="";const fY=({count:n})=>dt(jNt,{baseColor:"#202020",highlightColor:"#444",children:[ne(KNt,{wrapper:GNt,height:15,count:n||5}),";"]});function GNt({children:n}){return ne("div",{style:{display:"block",lineHeight:1,padding:"1rem",marginTop:"0.5rem",marginBottom:"0.5rem",width:"100%"},children:n})}const YNt=vs.div`
|
|
2246
2246
|
position: relative;
|
|
2247
2247
|
display: flex;
|
|
2248
2248
|
align-items: center;
|
|
@@ -2269,7 +2269,7 @@ ${JSON.stringify(v,void 0,4)}`)});else if(f.changes)for(const v of Object.keys(f
|
|
|
2269
2269
|
&.pro-running {
|
|
2270
2270
|
background-color: red;
|
|
2271
2271
|
}
|
|
2272
|
-
`,XNt=({playgroundStatus:n,dockerStatus:e})=>ne(Qr,{children:(()=>{switch(n){case"EMPTY":return dt(Qr,{children:[ne("i",{className:"w-5 h-5 mr-2.5 text-xl d42 loading text-white animate-spin flex justify-center items-center"}),ne("div",{children:"\u52A0\u8F7D\u4E2D..."})]});case"ACTIVE":return e==="STOP"?dt(Qr,{children:[ne("i",{className:"w-5 h-5 mr-2.5 text-xl d42 run-solid text-white flex justify-center items-center"}),ne("div",{children:"\u8FD0\u884C"})]}):e==="RUNNING"&&dt(Qr,{children:[ne("i",{className:"w-5 h-5 mr-2.5 text-xl d42 stop text-white flex justify-center items-center"}),ne("div",{children:"\u505C\u6B62\u8FD0\u884C"})]});case"INACTIVE":return dt(Qr,{children:[ne("i",{className:"w-5 h-5 mr-2.5 self-center text-xl d42 cloud-offline-outline flex justify-center items-center"}),ne("div",{children:"\u6FC0\u6D3B"})]});default:return ne(Qr,{})}})()}),QNt=e=>{var n=gr(e,[]);const t=Yr.getState().socket,i=Yt(g=>g.playgroundStatus),r=Yt(g=>g.dockerStatus),[o,s]=O.exports.useState("EMPTY"),[a,l]=O.exports.useState("STOP");O.exports.useEffect(()=>{s(i)},[i]),O.exports.useEffect(()=>{l(r)},[r]);const c=()=>{Yt.getState().playgroundStatus==="ACTIVE"?t==null||t.emit("run"):Yt.getState().playgroundStatus==="INACTIVE"&&(t==null||t.emit("active"))},u=()=>{t==null||t.emit("stop")},[d,h]=O.exports.useState("ONLINE");O.exports.useEffect(()=>{window.addEventListener("online",()=>{h("ONLINE")}),window.addEventListener("offline",()=>{h("OFFLINE")}),setInterval(()=>{f()<=300?h("WEAK_NET"):h("ONLINE")},3e5)},[]);const f=()=>{};return dt(YNt,{children:[ne(ZNt,
|
|
2272
|
+
`,XNt=({playgroundStatus:n,dockerStatus:e})=>ne(Qr,{children:(()=>{switch(n){case"EMPTY":return dt(Qr,{children:[ne("i",{className:"w-5 h-5 mr-2.5 text-xl d42 loading text-white animate-spin flex justify-center items-center"}),ne("div",{children:"\u52A0\u8F7D\u4E2D..."})]});case"ACTIVE":return e==="STOP"?dt(Qr,{children:[ne("i",{className:"w-5 h-5 mr-2.5 text-xl d42 run-solid text-white flex justify-center items-center"}),ne("div",{children:"\u8FD0\u884C"})]}):e==="RUNNING"&&dt(Qr,{children:[ne("i",{className:"w-5 h-5 mr-2.5 text-xl d42 stop text-white flex justify-center items-center"}),ne("div",{children:"\u505C\u6B62\u8FD0\u884C"})]});case"INACTIVE":return dt(Qr,{children:[ne("i",{className:"w-5 h-5 mr-2.5 self-center text-xl d42 cloud-offline-outline flex justify-center items-center"}),ne("div",{children:"\u6FC0\u6D3B"})]});default:return ne(Qr,{})}})()}),QNt=e=>{var n=gr(e,[]);const t=Yr.getState().socket,i=Yt(g=>g.playgroundStatus),r=Yt(g=>g.dockerStatus),[o,s]=O.exports.useState("EMPTY"),[a,l]=O.exports.useState("STOP");O.exports.useEffect(()=>{s(i)},[i]),O.exports.useEffect(()=>{l(r)},[r]);const c=()=>{Yt.getState().playgroundStatus==="ACTIVE"?t==null||t.emit("run"):Yt.getState().playgroundStatus==="INACTIVE"&&(t==null||t.emit("active"))},u=()=>{t==null||t.emit("stop")},[d,h]=O.exports.useState("ONLINE");O.exports.useEffect(()=>{window.addEventListener("online",()=>{h("ONLINE")}),window.addEventListener("offline",()=>{h("OFFLINE")}),setInterval(()=>{f()<=300?h("WEAK_NET"):h("ONLINE")},3e5)},[]);const f=()=>{};return dt(YNt,{children:[ne(ZNt,st(Te({onClick:o==="INACTIVE"||a==="STOP"?c:u,className:[o==="EMPTY"?"disabled":"",o==="ACTIVE"&&a==="RUNNING"?"pro-running":""].join(" ")},n),{children:ne(XNt,{playgroundStatus:o,dockerStatus:a})})),ne("i",{className:"d42 offline text-xl text-white absolute animate-pulse -right-2",style:{display:d==="OFFLINE"?"block":"none"}}),ne("i",{className:"d42 loading text-xl text-white animate-spin absolute -right-2",style:{display:d==="WEAK_NET"?"block":"none"}})]})};var gY;(function(n){n.js="javascript",n.ts="typescript",n.typescript="typescript",n.tsx="typescript",n.python="python",n.json="json",n.ruby="ruby",n.rb="ruby",n.java="java",n.md="markdown",n.erb="erb",n.css="css",n.ru="ruby",n.ejs="html",n.html="html"})(gY||(gY={}));const Uwe=Jl(n=>({isFolded:!1,setFold:e=>n({isFolded:e})})),JNt=Np(async()=>(await Promise.resolve().then(function(){return Lwe})).Editor),e2t=vs.div`
|
|
2273
2273
|
width: 100vw;
|
|
2274
2274
|
height: 100vh;
|
|
2275
2275
|
overflow: hidden;
|
|
@@ -2339,7 +2339,7 @@ ${Zwe(t)}`;return e}};function Zwe(n){let e=`*@${n.name}*`;if(n.name==="param"&&
|
|
|
2339
2339
|
|
|
2340
2340
|
`+l:"")}]}}},S2t=class extends Ed{async provideDocumentHighlights(n,e,t){const i=n.uri,r=n.getOffsetAt(e),o=await this._worker(i);if(n.isDisposed())return;const s=await o.getOccurrencesAtPosition(i.toString(),r);if(!(!s||n.isDisposed()))return s.map(a=>({range:this._textSpanToRange(n,a.textSpan),kind:a.isWriteAccess?Et.languages.DocumentHighlightKind.Write:Et.languages.DocumentHighlightKind.Text}))}},x2t=class extends Ed{constructor(n,e){super(e);this._libFiles=n}async provideDefinition(n,e,t){const i=n.uri,r=n.getOffsetAt(e),o=await this._worker(i);if(n.isDisposed())return;const s=await o.getDefinitionAtPosition(i.toString(),r);if(!s||n.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(s.map(l=>Et.Uri.parse(l.fileName))),n.isDisposed()))return;const a=[];for(let l of s){const c=this._libFiles.getOrCreateModel(l.fileName);c&&a.push({uri:c.uri,range:this._textSpanToRange(c,l.textSpan)})}return a}},E2t=class extends Ed{constructor(n,e){super(e);this._libFiles=n}async provideReferences(n,e,t,i){const r=n.uri,o=n.getOffsetAt(e),s=await this._worker(r);if(n.isDisposed())return;const a=await s.getReferencesAtPosition(r.toString(),o);if(!a||n.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(a.map(c=>Et.Uri.parse(c.fileName))),n.isDisposed()))return;const l=[];for(let c of a){const u=this._libFiles.getOrCreateModel(c.fileName);u&&l.push({uri:u.uri,range:this._textSpanToRange(u,c.textSpan)})}return l}},k2t=class extends Ed{async provideDocumentSymbols(n,e){const t=n.uri,i=await this._worker(t);if(n.isDisposed())return;const r=await i.getNavigationBarItems(t.toString());if(!r||n.isDisposed())return;const o=(a,l,c)=>{let u={name:l.text,detail:"",kind:ol[l.kind]||Et.languages.SymbolKind.Variable,range:this._textSpanToRange(n,l.spans[0]),selectionRange:this._textSpanToRange(n,l.spans[0]),tags:[]};if(c&&(u.containerName=c),l.childItems&&l.childItems.length>0)for(let d of l.childItems)o(a,d,u.name);a.push(u)};let s=[];return r.forEach(a=>o(s,a)),s}},Zt=class{};Zt.unknown="",Zt.keyword="keyword",Zt.script="script",Zt.module="module",Zt.class="class",Zt.interface="interface",Zt.type="type",Zt.enum="enum",Zt.variable="var",Zt.localVariable="local var",Zt.function="function",Zt.localFunction="local function",Zt.memberFunction="method",Zt.memberGetAccessor="getter",Zt.memberSetAccessor="setter",Zt.memberVariable="property",Zt.constructorImplementation="constructor",Zt.callSignature="call",Zt.indexSignature="index",Zt.constructSignature="construct",Zt.parameter="parameter",Zt.typeParameter="type parameter",Zt.primitiveType="primitive type",Zt.label="label",Zt.alias="alias",Zt.const="const",Zt.let="let",Zt.warning="warning";var ol=Object.create(null);ol[Zt.module]=Et.languages.SymbolKind.Module,ol[Zt.class]=Et.languages.SymbolKind.Class,ol[Zt.enum]=Et.languages.SymbolKind.Enum,ol[Zt.interface]=Et.languages.SymbolKind.Interface,ol[Zt.memberFunction]=Et.languages.SymbolKind.Method,ol[Zt.memberVariable]=Et.languages.SymbolKind.Property,ol[Zt.memberGetAccessor]=Et.languages.SymbolKind.Property,ol[Zt.memberSetAccessor]=Et.languages.SymbolKind.Property,ol[Zt.variable]=Et.languages.SymbolKind.Variable,ol[Zt.const]=Et.languages.SymbolKind.Variable,ol[Zt.localVariable]=Et.languages.SymbolKind.Variable,ol[Zt.variable]=Et.languages.SymbolKind.Variable,ol[Zt.function]=Et.languages.SymbolKind.Function,ol[Zt.localFunction]=Et.languages.SymbolKind.Function;var Kw=class extends Ed{static _convertOptions(n){return{ConvertTabsToSpaces:n.insertSpaces,TabSize:n.tabSize,IndentSize:n.tabSize,IndentStyle:2,NewLineCharacter:`
|
|
2341
2341
|
`,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(n,e){return{text:e.newText,range:this._textSpanToRange(n,e.span)}}},L2t=class extends Kw{async provideDocumentRangeFormattingEdits(n,e,t,i){const r=n.uri,o=n.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),s=n.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=await this._worker(r);if(n.isDisposed())return;const l=await a.getFormattingEditsForRange(r.toString(),o,s,Kw._convertOptions(t));if(!(!l||n.isDisposed()))return l.map(c=>this._convertTextChanges(n,c))}},T2t=class extends Kw{get autoFormatTriggerCharacters(){return[";","}",`
|
|
2342
|
-
`]}async provideOnTypeFormattingEdits(n,e,t,i,r){const o=n.uri,s=n.getOffsetAt(e),a=await this._worker(o);if(n.isDisposed())return;const l=await a.getFormattingEditsAfterKeystroke(o.toString(),s,t,Kw._convertOptions(i));if(!(!l||n.isDisposed()))return l.map(c=>this._convertTextChanges(n,c))}},D2t=class extends Kw{async provideCodeActions(n,e,t,i){const r=n.uri,o=n.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),s=n.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=Kw._convertOptions(n.getOptions()),l=t.markers.filter(h=>h.code).map(h=>h.code).map(Number),c=await this._worker(r);if(n.isDisposed())return;const u=await c.getCodeFixesAtPosition(r.toString(),o,s,l,a);return!u||n.isDisposed()?{actions:[],dispose:()=>{}}:{actions:u.filter(h=>h.changes.filter(f=>f.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(n,t,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(n,e,t){const i=[];for(const o of t.changes)for(const s of o.textChanges)i.push({resource:n.uri,edit:{range:this._textSpanToRange(n,s.span),text:s.newText}});return{title:t.description,edit:{edits:i},diagnostics:e.markers,kind:"quickfix"}}},I2t=class extends Ed{constructor(n,e){super(e);this._libFiles=n}async provideRenameEdits(n,e,t,i){const r=n.uri,o=r.toString(),s=n.getOffsetAt(e),a=await this._worker(r);if(n.isDisposed())return;const l=await a.getRenameInfo(o,s,{allowRenameOfImportPath:!1});if(l.canRename===!1)return{edits:[],rejectReason:l.localizedErrorMessage};if(l.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const c=await a.findRenameLocations(o,s,!1,!1,!1);if(!c||n.isDisposed())return;const u=[];for(const d of c){const h=this._libFiles.getOrCreateModel(d.fileName);if(h)u.push({resource:h.uri,edit:{range:this._textSpanToRange(h,d.textSpan),text:t}});else throw new Error(`Unknown file ${d.fileName}.`)}return{edits:u}}},R2t=class extends Ed{async provideInlayHints(n,e,t){const i=n.uri,r=i.toString(),o=n.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),s=n.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=await this._worker(i);return n.isDisposed()?[]:(await a.provideInlayHints(r,o,s)).map(c=>
|
|
2342
|
+
`]}async provideOnTypeFormattingEdits(n,e,t,i,r){const o=n.uri,s=n.getOffsetAt(e),a=await this._worker(o);if(n.isDisposed())return;const l=await a.getFormattingEditsAfterKeystroke(o.toString(),s,t,Kw._convertOptions(i));if(!(!l||n.isDisposed()))return l.map(c=>this._convertTextChanges(n,c))}},D2t=class extends Kw{async provideCodeActions(n,e,t,i){const r=n.uri,o=n.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),s=n.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=Kw._convertOptions(n.getOptions()),l=t.markers.filter(h=>h.code).map(h=>h.code).map(Number),c=await this._worker(r);if(n.isDisposed())return;const u=await c.getCodeFixesAtPosition(r.toString(),o,s,l,a);return!u||n.isDisposed()?{actions:[],dispose:()=>{}}:{actions:u.filter(h=>h.changes.filter(f=>f.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(n,t,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(n,e,t){const i=[];for(const o of t.changes)for(const s of o.textChanges)i.push({resource:n.uri,edit:{range:this._textSpanToRange(n,s.span),text:s.newText}});return{title:t.description,edit:{edits:i},diagnostics:e.markers,kind:"quickfix"}}},I2t=class extends Ed{constructor(n,e){super(e);this._libFiles=n}async provideRenameEdits(n,e,t,i){const r=n.uri,o=r.toString(),s=n.getOffsetAt(e),a=await this._worker(r);if(n.isDisposed())return;const l=await a.getRenameInfo(o,s,{allowRenameOfImportPath:!1});if(l.canRename===!1)return{edits:[],rejectReason:l.localizedErrorMessage};if(l.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const c=await a.findRenameLocations(o,s,!1,!1,!1);if(!c||n.isDisposed())return;const u=[];for(const d of c){const h=this._libFiles.getOrCreateModel(d.fileName);if(h)u.push({resource:h.uri,edit:{range:this._textSpanToRange(h,d.textSpan),text:t}});else throw new Error(`Unknown file ${d.fileName}.`)}return{edits:u}}},R2t=class extends Ed{async provideInlayHints(n,e,t){const i=n.uri,r=i.toString(),o=n.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),s=n.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=await this._worker(i);return n.isDisposed()?[]:(await a.provideInlayHints(r,o,s)).map(c=>st(Te({},c),{position:n.getPositionAt(c.position),kind:this._convertHintKind(c.kind)}))}_convertHintKind(n){switch(n){case"Parameter":return Et.languages.InlayHintKind.Parameter;case"Type":return Et.languages.InlayHintKind.Type;default:return Et.languages.InlayHintKind.Other}}},wY,SY;function N2t(n){SY=Qwe(n,"typescript")}function A2t(n){wY=Qwe(n,"javascript")}function O2t(){return new Promise((n,e)=>{if(!wY)return e("JavaScript not registered!");n(wY)})}function P2t(){return new Promise((n,e)=>{if(!SY)return e("TypeScript not registered!");n(SY)})}function Qwe(n,e){const t=new p2t(e,n),i=(...o)=>t.getLanguageServiceWorker(...o),r=new y2t(i);return Et.languages.registerCompletionItemProvider(e,new c5(i)),Et.languages.registerSignatureHelpProvider(e,new Xwe(i)),Et.languages.registerHoverProvider(e,new w2t(i)),Et.languages.registerDocumentHighlightProvider(e,new S2t(i)),Et.languages.registerDefinitionProvider(e,new x2t(r,i)),Et.languages.registerReferenceProvider(e,new E2t(r,i)),Et.languages.registerDocumentSymbolProvider(e,new k2t(i)),Et.languages.registerDocumentRangeFormattingEditProvider(e,new L2t(i)),Et.languages.registerOnTypeFormattingEditProvider(e,new T2t(i)),Et.languages.registerCodeActionProvider(e,new D2t(i)),Et.languages.registerRenameProvider(e,new I2t(r,i)),Et.languages.registerInlayHintsProvider(e,new R2t(i)),new C2t(r,n,e,i),i}var Jwe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",getJavaScriptWorker:O2t,getTypeScriptWorker:P2t,setupJavaScript:A2t,setupTypeScript:N2t});/*!-----------------------------------------------------------------------------
|
|
2343
2343
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2344
2344
|
* Version: 0.31.1(337587859b1c171314b40503171188b6cea6a32a)
|
|
2345
2345
|
* Released under the MIT license
|