>>1,D=P[Y];if(0>>1;Y r($,q))X r(ee,$)?(P[Y]=ee,P[X]=q,Y=X):(P[Y]=$,P[W]=q,Y=W);else if(X r(ee,q))P[Y]=ee,P[X]=q,Y=X;else break e}}return z}function r(P,z){var q=P.sortIndex-z.sortIndex;return q!==0?q:P.id-z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var f=[],c=[],h=1,d=null,p=3,v=!1,y=!1,b=!1,w=!1,_=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function T(P){for(var z=t(c);z!==null;){if(z.callback===null)i(c);else if(z.startTime<=P)i(c),z.sortIndex=z.expirationTime,n(f,z);else break;z=t(c)}}function A(P){if(b=!1,T(P),!y)if(t(f)!==null)y=!0,M||(M=!0,B());else{var z=t(c);z!==null&&U(A,z.startTime-P)}}var M=!1,j=-1,N=5,F=-1;function R(){return w?!0:!(e.unstable_now()-F P&&R());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,p=d.priorityLevel;var D=Y(d.expirationTime<=P);if(P=e.unstable_now(),typeof D=="function"){d.callback=D,T(P),z=!0;break n}d===t(f)&&i(f),T(P)}else i(f);d=t(f)}if(d!==null)z=!0;else{var V=t(c);V!==null&&U(A,V.startTime-P),z=!1}}break e}finally{d=null,p=q,v=!1}z=void 0}}finally{z?B():M=!1}}}var B;if(typeof C=="function")B=function(){C(L)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,H=G.port2;G.port1.onmessage=L,B=function(){H.postMessage(null)}}else B=function(){_(L,0)};function U(P,z){j=_(function(){P(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125 Y?(P.sortIndex=q,n(c,P),t(f)===null&&P===t(c)&&(b?(S(j),j=-1):b=!0,U(A,q-Y))):(P.sortIndex=D,n(f,P),y||v||(y=!0,M||(M=!0,B()))),P},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(P){var z=p;return function(){var q=p;p=z;try{return P.apply(this,arguments)}finally{p=q}}}})(gk)),gk}var mM;function Ite(){return mM||(mM=1,vk.exports=Lte()),vk.exports}/** - * @license React - * react-dom-client.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var pM;function Bte(){if(pM)return Rd;pM=1;var e=Ite(),n=a6(),t=K$();function i(s){var u="https://react.dev/errors/"+s;if(1
D||(s.current=Y[D],Y[D]=null,D--)}function $(s,u){D++,Y[D]=s.current,s.current=u}var X=V(null),ee=V(null),oe=V(null),ue=V(null);function ye(s,u){switch($(oe,u),$(ee,s),$(X,null),u.nodeType){case 9:case 11:s=(s=u.documentElement)&&(s=s.namespaceURI)?mT(s):0;break;default:if(s=u.tagName,u=u.namespaceURI)u=mT(u),s=pT(u,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}W(X),$(X,s)}function ae(){W(X),W(ee),W(oe)}function le(s){s.memoizedState!==null&&$(ue,s);var u=X.current,m=pT(u,s.type);u!==m&&($(ee,s),$(X,m))}function Se(s){ee.current===s&&(W(X),W(ee)),ue.current===s&&(W(ue),Ad._currentValue=q)}var ne,$e;function ve(s){if(ne===void 0)try{throw Error()}catch(m){var u=m.stack.trim().match(/\n( *(at )?)/);ne=u&&u[1]||"",$e=-1 )":-1 x||Q[g]!==ce[x]){var Oe=` -`+Q[g].replace(" at new "," at ");return s.displayName&&Oe.includes(" ")&&(Oe=Oe.replace(" ",s.displayName)),Oe}while(1<=g&&0<=x);break}}}finally{xe=!1,Error.prepareStackTrace=m}return(m=s?s.displayName||s.name:"")?ve(m):""}function we(s,u){switch(s.tag){case 26:case 27:case 5:return ve(s.type);case 16:return ve("Lazy");case 13:return s.child!==u&&u!==null?ve("Suspense Fallback"):ve("Suspense");case 19:return ve("SuspenseList");case 0:case 15:return De(s.type,!1);case 11:return De(s.type.render,!1);case 1:return De(s.type,!0);case 31:return ve("Activity");default:return""}}function re(s){try{var u="",m=null;do u+=we(s,m),m=s,s=s.return;while(s);return u}catch(g){return` -Error generating stack: `+g.message+` -`+g.stack}}var ke=Object.prototype.hasOwnProperty,Ie=e.unstable_scheduleCallback,qe=e.unstable_cancelCallback,Ue=e.unstable_shouldYield,Ve=e.unstable_requestPaint,me=e.unstable_now,Ge=e.unstable_getCurrentPriorityLevel,te=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,He=e.unstable_NormalPriority,Ye=e.unstable_LowPriority,Ce=e.unstable_IdlePriority,Qe=e.log,ln=e.unstable_setDisableYieldValue,En=null,hn=null;function rn(s){if(typeof Qe=="function"&&ln(s),hn&&typeof hn.setStrictMode=="function")try{hn.setStrictMode(En,s)}catch{}}var Je=Math.clz32?Math.clz32:yt,zn=Math.log,un=Math.LN2;function yt(s){return s>>>=0,s===0?32:31-(zn(s)/un|0)|0}var Ct=256,Tn=262144,mn=4194304;function bn(s){var u=s&42;if(u!==0)return u;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function ot(s,u,m){var g=s.pendingLanes;if(g===0)return 0;var x=0,E=s.suspendedLanes,I=s.pingedLanes;s=s.warmLanes;var K=g&134217727;return K!==0?(g=K&~E,g!==0?x=bn(g):(I&=K,I!==0?x=bn(I):m||(m=K&~s,m!==0&&(x=bn(m))))):(K=g&~E,K!==0?x=bn(K):I!==0?x=bn(I):m||(m=g&~s,m!==0&&(x=bn(m)))),x===0?0:u!==0&&u!==x&&(u&E)===0&&(E=x&-x,m=u&-u,E>=m||E===32&&(m&4194048)!==0)?u:x}function $t(s,u){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&u)===0}function Ne(s,u){switch(s){case 1:case 2:case 4:case 8:case 64:return u+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Be(){var s=mn;return mn<<=1,(mn&62914560)===0&&(mn=4194304),s}function An(s){for(var u=[],m=0;31>m;m++)u.push(s);return u}function Qn(s,u){s.pendingLanes|=u,u!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Sn(s,u,m,g,x,E){var I=s.pendingLanes;s.pendingLanes=m,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=m,s.entangledLanes&=m,s.errorRecoveryDisabledLanes&=m,s.shellSuspendCounter=0;var K=s.entanglements,Q=s.expirationTimes,ce=s.hiddenUpdates;for(m=I&~m;0 "u")return null;try{return s.activeElement||s.body}catch{return s.body}}var fs=/[\n"\\]/g;function wr(s){return s.replace(fs,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function Ia(s,u,m,g,x,E,I,K){s.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?s.type=I:s.removeAttribute("type"),u!=null?I==="number"?(u===0&&s.value===""||s.value!=u)&&(s.value=""+Qt(u)):s.value!==""+Qt(u)&&(s.value=""+Qt(u)):I!=="submit"&&I!=="reset"||s.removeAttribute("value"),u!=null?cs(s,I,Qt(u)):m!=null?cs(s,I,Qt(m)):g!=null&&s.removeAttribute("value"),x==null&&E!=null&&(s.defaultChecked=!!E),x!=null&&(s.checked=x&&typeof x!="function"&&typeof x!="symbol"),K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"?s.name=""+Qt(K):s.removeAttribute("name")}function Tu(s,u,m,g,x,E,I,K){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(s.type=E),u!=null||m!=null){if(!(E!=="submit"&&E!=="reset"||u!=null)){Li(s);return}m=m!=null?""+Qt(m):"",u=u!=null?""+Qt(u):m,K||u===s.value||(s.value=u),s.defaultValue=u}g=g??x,g=typeof g!="function"&&typeof g!="symbol"&&!!g,s.checked=K?s.checked:!!g,s.defaultChecked=!!g,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(s.name=I),Li(s)}function cs(s,u,m){u==="number"&&Zi(s.ownerDocument)===s||s.defaultValue===""+m||(s.defaultValue=""+m)}function ba(s,u,m,g){if(s=s.options,u){u={};for(var x=0;x "u"||typeof window.document>"u"||typeof window.document.createElement>"u"),z0=!1;if(mo)try{var Uc={};Object.defineProperty(Uc,"passive",{get:function(){z0=!0}}),window.addEventListener("test",Uc,Uc),window.removeEventListener("test",Uc,Uc)}catch{z0=!1}var hs=null,L0=null,ip=null;function pA(){if(ip)return ip;var s,u=L0,m=u.length,g,x="value"in hs?hs.value:hs.textContent,E=x.length;for(s=0;s =Gc),kA=" ",_A=!1;function xA(s,u){switch(s){case"keyup":return ZW.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function SA(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Ru=!1;function JW(s,u){switch(s){case"compositionend":return SA(u);case"keypress":return u.which!==32?null:(_A=!0,kA);case"textInput":return s=u.data,s===kA&&_A?null:s;default:return null}}function eG(s,u){if(Ru)return s==="compositionend"||!H0&&xA(s,u)?(s=pA(),ip=L0=hs=null,Ru=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1 =u)return{node:m,offset:u-s};s=g}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=DA(m)}}function PA(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?PA(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function NA(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var u=Zi(s.document);u instanceof s.HTMLIFrameElement;){try{var m=typeof u.contentWindow.location.href=="string"}catch{m=!1}if(m)s=u.contentWindow;else break;u=Zi(s.document)}return u}function W0(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}var lG=mo&&"documentMode"in document&&11>=document.documentMode,Pu=null,G0=null,Zc=null,Y0=!1;function $A(s,u,m){var g=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Y0||Pu==null||Pu!==Zi(g)||(g=Pu,"selectionStart"in g&&W0(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Zc&&Xc(Zc,g)||(Zc=g,g=Xp(G0,"onSelect"),0 >=I,x-=I,Ba=1<<32-Je(u)+x|m< Rn?(Yn=on,on=null):Yn=on.sibling;var tt=de(se,on,fe[Rn],Te);if(tt===null){on===null&&(on=Yn);break}s&&on&&tt.alternate===null&&u(se,on),ie=E(tt,ie,Rn),nt===null?dn=tt:nt.sibling=tt,nt=tt,on=Yn}if(Rn===fe.length)return m(se,on),Kn&&vo(se,Rn),dn;if(on===null){for(;Rn Rn?(Yn=on,on=null):Yn=on.sibling;var Ns=de(se,on,tt.value,Te);if(Ns===null){on===null&&(on=Yn);break}s&&on&&Ns.alternate===null&&u(se,on),ie=E(Ns,ie,Rn),nt===null?dn=Ns:nt.sibling=Ns,nt=Ns,on=Yn}if(tt.done)return m(se,on),Kn&&vo(se,Rn),dn;if(on===null){for(;!tt.done;Rn++,tt=fe.next())tt=Me(se,tt.value,Te),tt!==null&&(ie=E(tt,ie,Rn),nt===null?dn=tt:nt.sibling=tt,nt=tt);return Kn&&vo(se,Rn),dn}for(on=g(on);!tt.done;Rn++,tt=fe.next())tt=ge(on,se,Rn,tt.value,Te),tt!==null&&(s&&tt.alternate!==null&&on.delete(tt.key===null?Rn:tt.key),ie=E(tt,ie,Rn),nt===null?dn=tt:nt.sibling=tt,nt=tt);return s&&on.forEach(function(EY){return u(se,EY)}),Kn&&vo(se,Rn),dn}function vt(se,ie,fe,Te){if(typeof fe=="object"&&fe!==null&&fe.type===b&&fe.key===null&&(fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case v:e:{for(var dn=fe.key;ie!==null;){if(ie.key===dn){if(dn=fe.type,dn===b){if(ie.tag===7){m(se,ie.sibling),Te=x(ie,fe.props.children),Te.return=se,se=Te;break e}}else if(ie.elementType===dn||typeof dn=="object"&&dn!==null&&dn.$$typeof===N&&Cl(dn)===ie.type){m(se,ie.sibling),Te=x(ie,fe.props),id(Te,fe),Te.return=se,se=Te;break e}m(se,ie);break}else u(se,ie);ie=ie.sibling}fe.type===b?(Te=wl(fe.props.children,se.mode,Te,fe.key),Te.return=se,se=Te):(Te=hp(fe.type,fe.key,fe.props,null,se.mode,Te),id(Te,fe),Te.return=se,se=Te)}return I(se);case y:e:{for(dn=fe.key;ie!==null;){if(ie.key===dn)if(ie.tag===4&&ie.stateNode.containerInfo===fe.containerInfo&&ie.stateNode.implementation===fe.implementation){m(se,ie.sibling),Te=x(ie,fe.children||[]),Te.return=se,se=Te;break e}else{m(se,ie);break}else u(se,ie);ie=ie.sibling}Te=nb(fe,se.mode,Te),Te.return=se,se=Te}return I(se);case N:return fe=Cl(fe),vt(se,ie,fe,Te)}if(U(fe))return tn(se,ie,fe,Te);if(B(fe)){if(dn=B(fe),typeof dn!="function")throw Error(i(150));return fe=dn.call(fe),vn(se,ie,fe,Te)}if(typeof fe.then=="function")return vt(se,ie,wp(fe),Te);if(fe.$$typeof===C)return vt(se,ie,vp(se,fe),Te);kp(se,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint"?(fe=""+fe,ie!==null&&ie.tag===6?(m(se,ie.sibling),Te=x(ie,fe),Te.return=se,se=Te):(m(se,ie),Te=eb(fe,se.mode,Te),Te.return=se,se=Te),I(se)):m(se,ie)}return function(se,ie,fe,Te){try{td=0;var dn=vt(se,ie,fe,Te);return Vu=null,dn}catch(on){if(on===Uu||on===yp)throw on;var nt=_r(29,on,null,se.mode);return nt.lanes=Te,nt.return=se,nt}finally{}}}var Ol=aO(!0),oO=aO(!1),ys=!1;function hb(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mb(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function bs(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function ws(s,u,m){var g=s.updateQueue;if(g===null)return null;if(g=g.shared,(st&2)!==0){var x=g.pending;return x===null?u.next=u:(u.next=x.next,x.next=u),g.pending=u,u=dp(s),HA(s,null,m),u}return cp(s,g,u,m),dp(s)}function rd(s,u,m){if(u=u.updateQueue,u!==null&&(u=u.shared,(m&4194048)!==0)){var g=u.lanes;g&=s.pendingLanes,m|=g,u.lanes=m,Xe(s,m)}}function pb(s,u){var m=s.updateQueue,g=s.alternate;if(g!==null&&(g=g.updateQueue,m===g)){var x=null,E=null;if(m=m.firstBaseUpdate,m!==null){do{var I={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};E===null?x=E=I:E=E.next=I,m=m.next}while(m!==null);E===null?x=E=u:E=E.next=u}else x=E=u;m={baseState:g.baseState,firstBaseUpdate:x,lastBaseUpdate:E,shared:g.shared,callbacks:g.callbacks},s.updateQueue=m;return}s=m.lastBaseUpdate,s===null?m.firstBaseUpdate=u:s.next=u,m.lastBaseUpdate=u}var vb=!1;function ad(){if(vb){var s=Hu;if(s!==null)throw s}}function od(s,u,m,g){vb=!1;var x=s.updateQueue;ys=!1;var E=x.firstBaseUpdate,I=x.lastBaseUpdate,K=x.shared.pending;if(K!==null){x.shared.pending=null;var Q=K,ce=Q.next;Q.next=null,I===null?E=ce:I.next=ce,I=Q;var Oe=s.alternate;Oe!==null&&(Oe=Oe.updateQueue,K=Oe.lastBaseUpdate,K!==I&&(K===null?Oe.firstBaseUpdate=ce:K.next=ce,Oe.lastBaseUpdate=Q))}if(E!==null){var Me=x.baseState;I=0,Oe=ce=Q=null,K=E;do{var de=K.lane&-536870913,ge=de!==K.lane;if(ge?(Gn&de)===de:(g&de)===de){de!==0&&de===qu&&(vb=!0),Oe!==null&&(Oe=Oe.next={lane:0,tag:K.tag,payload:K.payload,callback:null,next:null});e:{var tn=s,vn=K;de=u;var vt=m;switch(vn.tag){case 1:if(tn=vn.payload,typeof tn=="function"){Me=tn.call(vt,Me,de);break e}Me=tn;break e;case 3:tn.flags=tn.flags&-65537|128;case 0:if(tn=vn.payload,de=typeof tn=="function"?tn.call(vt,Me,de):tn,de==null)break e;Me=d({},Me,de);break e;case 2:ys=!0}}de=K.callback,de!==null&&(s.flags|=64,ge&&(s.flags|=8192),ge=x.callbacks,ge===null?x.callbacks=[de]:ge.push(de))}else ge={lane:de,tag:K.tag,payload:K.payload,callback:K.callback,next:null},Oe===null?(ce=Oe=ge,Q=Me):Oe=Oe.next=ge,I|=de;if(K=K.next,K===null){if(K=x.shared.pending,K===null)break;ge=K,K=ge.next,ge.next=null,x.lastBaseUpdate=ge,x.shared.pending=null}}while(!0);Oe===null&&(Q=Me),x.baseState=Q,x.firstBaseUpdate=ce,x.lastBaseUpdate=Oe,E===null&&(x.shared.lanes=0),Cs|=I,s.lanes=I,s.memoizedState=Me}}function sO(s,u){if(typeof s!="function")throw Error(i(191,s));s.call(u)}function lO(s,u){var m=s.callbacks;if(m!==null)for(s.callbacks=null,s=0;s E?E:8;var I=P.T,K={};P.T=K,Nb(s,!1,u,m);try{var Q=x(),ce=P.S;if(ce!==null&&ce(K,Q),Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var Oe=gG(Q,g);ud(s,u,Oe,Or(s))}else ud(s,u,g,Or(s))}catch(Me){ud(s,u,{then:function(){},status:"rejected",reason:Me},Or())}finally{z.p=E,I!==null&&K.types!==null&&(I.types=K.types),P.T=I}}function xG(){}function Rb(s,u,m,g){if(s.tag!==5)throw Error(i(476));var x=BO(s).queue;IO(s,x,u,q,m===null?xG:function(){return FO(s),m(g)})}function BO(s){var u=s.memoizedState;if(u!==null)return u;u={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wo,lastRenderedState:q},next:null};var m={};return u.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wo,lastRenderedState:m},next:null},s.memoizedState=u,s=s.alternate,s!==null&&(s.memoizedState=u),u}function FO(s){var u=BO(s);u.next===null&&(u=s.alternate.memoizedState),ud(s,u.next.queue,{},Or())}function Pb(){return Ei(Ad)}function qO(){return ei().memoizedState}function HO(){return ei().memoizedState}function SG(s){for(var u=s.return;u!==null;){switch(u.tag){case 24:case 3:var m=Or();s=bs(m);var g=ws(u,s,m);g!==null&&(fr(g,u,m),rd(g,u,m)),u={cache:ub()},s.payload=u;return}u=u.return}}function CG(s,u,m){var g=Or();m={lane:g,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},jp(s)?VO(u,m):(m=Q0(s,u,m,g),m!==null&&(fr(m,s,g),WO(m,u,g)))}function UO(s,u,m){var g=Or();ud(s,u,m,g)}function ud(s,u,m,g){var x={lane:g,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(jp(s))VO(u,x);else{var E=s.alternate;if(s.lanes===0&&(E===null||E.lanes===0)&&(E=u.lastRenderedReducer,E!==null))try{var I=u.lastRenderedState,K=E(I,m);if(x.hasEagerState=!0,x.eagerState=K,kr(K,I))return cp(s,u,x,0),wt===null&&fp(),!1}catch{}finally{}if(m=Q0(s,u,x,g),m!==null)return fr(m,s,g),WO(m,u,g),!0}return!1}function Nb(s,u,m,g){if(g={lane:2,revertLane:hw(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},jp(s)){if(u)throw Error(i(479))}else u=Q0(s,m,g,2),u!==null&&fr(u,s,2)}function jp(s){var u=s.alternate;return s===Mn||u!==null&&u===Mn}function VO(s,u){Gu=Sp=!0;var m=s.pending;m===null?u.next=u:(u.next=m.next,m.next=u),s.pending=u}function WO(s,u,m){if((m&4194048)!==0){var g=u.lanes;g&=s.pendingLanes,m|=g,u.lanes=m,Xe(s,m)}}var fd={readContext:Ei,use:Op,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useLayoutEffect:Wt,useInsertionEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useSyncExternalStore:Wt,useId:Wt,useHostTransitionStatus:Wt,useFormState:Wt,useActionState:Wt,useOptimistic:Wt,useMemoCache:Wt,useCacheRefresh:Wt};fd.useEffectEvent=Wt;var GO={readContext:Ei,use:Op,useCallback:function(s,u){return Qi().memoizedState=[s,u===void 0?null:u],s},useContext:Ei,useEffect:MO,useImperativeHandle:function(s,u,m){m=m!=null?m.concat([s]):null,Tp(4194308,4,PO.bind(null,u,s),m)},useLayoutEffect:function(s,u){return Tp(4194308,4,s,u)},useInsertionEffect:function(s,u){Tp(4,2,s,u)},useMemo:function(s,u){var m=Qi();u=u===void 0?null:u;var g=s();if(El){rn(!0);try{s()}finally{rn(!1)}}return m.memoizedState=[g,u],g},useReducer:function(s,u,m){var g=Qi();if(m!==void 0){var x=m(u);if(El){rn(!0);try{m(u)}finally{rn(!1)}}}else x=u;return g.memoizedState=g.baseState=x,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:x},g.queue=s,s=s.dispatch=CG.bind(null,Mn,s),[g.memoizedState,s]},useRef:function(s){var u=Qi();return s={current:s},u.memoizedState=s},useState:function(s){s=Eb(s);var u=s.queue,m=UO.bind(null,Mn,u);return u.dispatch=m,[s.memoizedState,m]},useDebugValue:jb,useDeferredValue:function(s,u){var m=Qi();return Db(m,s,u)},useTransition:function(){var s=Eb(!1);return s=IO.bind(null,Mn,s.queue,!0,!1),Qi().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,u,m){var g=Mn,x=Qi();if(Kn){if(m===void 0)throw Error(i(407));m=m()}else{if(m=u(),wt===null)throw Error(i(349));(Gn&127)!==0||mO(g,u,m)}x.memoizedState=m;var E={value:m,getSnapshot:u};return x.queue=E,MO(vO.bind(null,g,E,s),[s]),g.flags|=2048,Ku(9,{destroy:void 0},pO.bind(null,g,E,m,u),null),m},useId:function(){var s=Qi(),u=wt.identifierPrefix;if(Kn){var m=Fa,g=Ba;m=(g&~(1<<32-Je(g)-1)).toString(32)+m,u="_"+u+"R_"+m,m=Cp++,0 <\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof g.is=="string"?I.createElement("select",{is:g.is}):I.createElement("select"),g.multiple?E.multiple=!0:g.size&&(E.size=g.size);break;default:E=typeof g.is=="string"?I.createElement(x,{is:g.is}):I.createElement(x)}}E[Bn]=u,E[zt]=g;e:for(I=u.child;I!==null;){if(I.tag===5||I.tag===6)E.appendChild(I.stateNode);else if(I.tag!==4&&I.tag!==27&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===u)break e;for(;I.sibling===null;){if(I.return===null||I.return===u)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}u.stateNode=E;e:switch(Mi(E,x,g),x){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}g&&_o(u)}}return jt(u),Kb(u,u.type,s===null?null:s.memoizedProps,u.pendingProps,m),null;case 6:if(s&&u.stateNode!=null)s.memoizedProps!==g&&_o(u);else{if(typeof g!="string"&&u.stateNode===null)throw Error(i(166));if(s=oe.current,Bu(u)){if(s=u.stateNode,m=u.memoizedProps,g=null,x=Oi,x!==null)switch(x.tag){case 27:case 5:g=x.memoizedProps}s[Bn]=u,s=!!(s.nodeValue===m||g!==null&&g.suppressHydrationWarning===!0||dT(s.nodeValue,m)),s||vs(u,!0)}else s=Zp(s).createTextNode(g),s[Bn]=u,u.stateNode=s}return jt(u),null;case 31:if(m=u.memoizedState,s===null||s.memoizedState!==null){if(g=Bu(u),m!==null){if(s===null){if(!g)throw Error(i(318));if(s=u.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(557));s[Bn]=u}else kl(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;jt(u),s=!1}else m=ab(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=m),s=!0;if(!s)return u.flags&256?(Sr(u),u):(Sr(u),null);if((u.flags&128)!==0)throw Error(i(558))}return jt(u),null;case 13:if(g=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(x=Bu(u),g!==null&&g.dehydrated!==null){if(s===null){if(!x)throw Error(i(318));if(x=u.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(i(317));x[Bn]=u}else kl(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;jt(u),x=!1}else x=ab(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=x),x=!0;if(!x)return u.flags&256?(Sr(u),u):(Sr(u),null)}return Sr(u),(u.flags&128)!==0?(u.lanes=m,u):(m=g!==null,s=s!==null&&s.memoizedState!==null,m&&(g=u.child,x=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(x=g.alternate.memoizedState.cachePool.pool),E=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(E=g.memoizedState.cachePool.pool),E!==x&&(g.flags|=2048)),m!==s&&m&&(u.child.flags|=8192),$p(u,u.updateQueue),jt(u),null);case 4:return ae(),s===null&&gw(u.stateNode.containerInfo),jt(u),null;case 10:return yo(u.type),jt(u),null;case 19:if(W(Jt),g=u.memoizedState,g===null)return jt(u),null;if(x=(u.flags&128)!==0,E=g.rendering,E===null)if(x)dd(g,!1);else{if(Gt!==0||s!==null&&(s.flags&128)!==0)for(s=u.child;s!==null;){if(E=xp(s),E!==null){for(u.flags|=128,dd(g,!1),s=E.updateQueue,u.updateQueue=s,$p(u,s),u.subtreeFlags=0,s=m,m=u.child;m!==null;)UA(m,s),m=m.sibling;return $(Jt,Jt.current&1|2),Kn&&vo(u,g.treeForkCount),u.child}s=s.sibling}g.tail!==null&&me()>Fp&&(u.flags|=128,x=!0,dd(g,!1),u.lanes=4194304)}else{if(!x)if(s=xp(E),s!==null){if(u.flags|=128,x=!0,s=s.updateQueue,u.updateQueue=s,$p(u,s),dd(g,!0),g.tail===null&&g.tailMode==="hidden"&&!E.alternate&&!Kn)return jt(u),null}else 2*me()-g.renderingStartTime>Fp&&m!==536870912&&(u.flags|=128,x=!0,dd(g,!1),u.lanes=4194304);g.isBackwards?(E.sibling=u.child,u.child=E):(s=g.last,s!==null?s.sibling=E:u.child=E,g.last=E)}return g.tail!==null?(s=g.tail,g.rendering=s,g.tail=s.sibling,g.renderingStartTime=me(),s.sibling=null,m=Jt.current,$(Jt,x?m&1|2:m&1),Kn&&vo(u,g.treeForkCount),s):(jt(u),null);case 22:case 23:return Sr(u),yb(),g=u.memoizedState!==null,s!==null?s.memoizedState!==null!==g&&(u.flags|=8192):g&&(u.flags|=8192),g?(m&536870912)!==0&&(u.flags&128)===0&&(jt(u),u.subtreeFlags&6&&(u.flags|=8192)):jt(u),m=u.updateQueue,m!==null&&$p(u,m.retryQueue),m=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),g=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),g!==m&&(u.flags|=2048),s!==null&&W(Sl),null;case 24:return m=null,s!==null&&(m=s.memoizedState.cache),u.memoizedState.cache!==m&&(u.flags|=2048),yo(ii),jt(u),null;case 25:return null;case 30:return null}throw Error(i(156,u.tag))}function MG(s,u){switch(ib(u),u.tag){case 1:return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return yo(ii),ae(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 26:case 27:case 5:return Se(u),null;case 31:if(u.memoizedState!==null){if(Sr(u),u.alternate===null)throw Error(i(340));kl()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 13:if(Sr(u),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(i(340));kl()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return W(Jt),null;case 4:return ae(),null;case 10:return yo(u.type),null;case 22:case 23:return Sr(u),yb(),s!==null&&W(Sl),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 24:return yo(ii),null;case 25:return null;default:return null}}function gE(s,u){switch(ib(u),u.tag){case 3:yo(ii),ae();break;case 26:case 27:case 5:Se(u);break;case 4:ae();break;case 31:u.memoizedState!==null&&Sr(u);break;case 13:Sr(u);break;case 19:W(Jt);break;case 10:yo(u.type);break;case 22:case 23:Sr(u),yb(),s!==null&&W(Sl);break;case 24:yo(ii)}}function hd(s,u){try{var m=u.updateQueue,g=m!==null?m.lastEffect:null;if(g!==null){var x=g.next;m=x;do{if((m.tag&s)===s){g=void 0;var E=m.create,I=m.inst;g=E(),I.destroy=g}m=m.next}while(m!==x)}}catch(K){dt(u,u.return,K)}}function xs(s,u,m){try{var g=u.updateQueue,x=g!==null?g.lastEffect:null;if(x!==null){var E=x.next;g=E;do{if((g.tag&s)===s){var I=g.inst,K=I.destroy;if(K!==void 0){I.destroy=void 0,x=u;var Q=m,ce=K;try{ce()}catch(Oe){dt(x,Q,Oe)}}}g=g.next}while(g!==E)}}catch(Oe){dt(u,u.return,Oe)}}function yE(s){var u=s.updateQueue;if(u!==null){var m=s.stateNode;try{lO(u,m)}catch(g){dt(s,s.return,g)}}}function bE(s,u,m){m.props=Tl(s.type,s.memoizedProps),m.state=s.memoizedState;try{m.componentWillUnmount()}catch(g){dt(s,u,g)}}function md(s,u){try{var m=s.ref;if(m!==null){switch(s.tag){case 26:case 27:case 5:var g=s.stateNode;break;case 30:g=s.stateNode;break;default:g=s.stateNode}typeof m=="function"?s.refCleanup=m(g):m.current=g}}catch(x){dt(s,u,x)}}function qa(s,u){var m=s.ref,g=s.refCleanup;if(m!==null)if(typeof g=="function")try{g()}catch(x){dt(s,u,x)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(x){dt(s,u,x)}else m.current=null}function wE(s){var u=s.type,m=s.memoizedProps,g=s.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":m.autoFocus&&g.focus();break e;case"img":m.src?g.src=m.src:m.srcSet&&(g.srcset=m.srcSet)}}catch(x){dt(s,s.return,x)}}function Xb(s,u,m){try{var g=s.stateNode;QG(g,s.type,m,u),g[zt]=u}catch(x){dt(s,s.return,x)}}function kE(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Ms(s.type)||s.tag===4}function Zb(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||kE(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Ms(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Qb(s,u,m){var g=s.tag;if(g===5||g===6)s=s.stateNode,u?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(s,u):(u=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,u.appendChild(s),m=m._reactRootContainer,m!=null||u.onclick!==null||(u.onclick=ho));else if(g!==4&&(g===27&&Ms(s.type)&&(m=s.stateNode,u=null),s=s.child,s!==null))for(Qb(s,u,m),s=s.sibling;s!==null;)Qb(s,u,m),s=s.sibling}function zp(s,u,m){var g=s.tag;if(g===5||g===6)s=s.stateNode,u?m.insertBefore(s,u):m.appendChild(s);else if(g!==4&&(g===27&&Ms(s.type)&&(m=s.stateNode),s=s.child,s!==null))for(zp(s,u,m),s=s.sibling;s!==null;)zp(s,u,m),s=s.sibling}function _E(s){var u=s.stateNode,m=s.memoizedProps;try{for(var g=s.type,x=u.attributes;x.length;)u.removeAttributeNode(x[0]);Mi(u,g,m),u[Bn]=s,u[zt]=m}catch(E){dt(s,s.return,E)}}var xo=!1,oi=!1,Jb=!1,xE=typeof WeakSet=="function"?WeakSet:Set,wi=null;function jG(s,u){if(s=s.containerInfo,ww=rv,s=NA(s),W0(s)){if("selectionStart"in s)var m={start:s.selectionStart,end:s.selectionEnd};else e:{m=(m=s.ownerDocument)&&m.defaultView||window;var g=m.getSelection&&m.getSelection();if(g&&g.rangeCount!==0){m=g.anchorNode;var x=g.anchorOffset,E=g.focusNode;g=g.focusOffset;try{m.nodeType,E.nodeType}catch{m=null;break e}var I=0,K=-1,Q=-1,ce=0,Oe=0,Me=s,de=null;n:for(;;){for(var ge;Me!==m||x!==0&&Me.nodeType!==3||(K=I+x),Me!==E||g!==0&&Me.nodeType!==3||(Q=I+g),Me.nodeType===3&&(I+=Me.nodeValue.length),(ge=Me.firstChild)!==null;)de=Me,Me=ge;for(;;){if(Me===s)break n;if(de===m&&++ce===x&&(K=I),de===E&&++Oe===g&&(Q=I),(ge=Me.nextSibling)!==null)break;Me=de,de=Me.parentNode}Me=ge}m=K===-1||Q===-1?null:{start:K,end:Q}}else m=null}m=m||{start:0,end:0}}else m=null;for(kw={focusedElem:s,selectionRange:m},rv=!1,wi=u;wi!==null;)if(u=wi,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,wi=s;else for(;wi!==null;){switch(u=wi,E=u.alternate,s=u.flags,u.tag){case 0:if((s&4)!==0&&(s=u.updateQueue,s=s!==null?s.events:null,s!==null))for(m=0;m title"))),Mi(E,g,m),E[Bn]=s,an(E),g=E;break e;case"link":var I=TT("link","href",x).get(g+(m.href||""));if(I){for(var K=0;K vt&&(I=vt,vt=vn,vn=I);var se=RA(K,vn),ie=RA(K,vt);if(se&&ie&&(ge.rangeCount!==1||ge.anchorNode!==se.node||ge.anchorOffset!==se.offset||ge.focusNode!==ie.node||ge.focusOffset!==ie.offset)){var fe=Me.createRange();fe.setStart(se.node,se.offset),ge.removeAllRanges(),vn>vt?(ge.addRange(fe),ge.extend(ie.node,ie.offset)):(fe.setEnd(ie.node,ie.offset),ge.addRange(fe))}}}}for(Me=[],ge=K;ge=ge.parentNode;)ge.nodeType===1&&Me.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof K.focus=="function"&&K.focus(),K=0;K m?32:m,P.T=null,m=ow,ow=null;var E=Os,I=Eo;if(hi=0,ef=Os=null,Eo=0,(st&6)!==0)throw Error(i(331));var K=st;if(st|=4,PE(E.current),jE(E,E.current,I,m),st=K,wd(0,!1),hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(En,E)}catch{}return!0}finally{z.p=x,P.T=g,QE(s,u)}}function eT(s,u,m){u=qr(m,u),u=Ib(s.stateNode,u,2),s=ws(s,u,2),s!==null&&(Qn(s,2),Ha(s))}function dt(s,u,m){if(s.tag===3)eT(s,s,m);else for(;u!==null;){if(u.tag===3){eT(u,s,m);break}else if(u.tag===1){var g=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(As===null||!As.has(g))){s=qr(m,s),m=nE(2),g=ws(u,m,2),g!==null&&(tE(m,g,u,s),Qn(g,2),Ha(g));break}}u=u.return}}function fw(s,u,m){var g=s.pingCache;if(g===null){g=s.pingCache=new PG;var x=new Set;g.set(u,x)}else x=g.get(u),x===void 0&&(x=new Set,g.set(u,x));x.has(m)||(tw=!0,x.add(m),s=IG.bind(null,s,u,m),u.then(s,s))}function IG(s,u,m){var g=s.pingCache;g!==null&&g.delete(u),s.pingedLanes|=s.suspendedLanes&m,s.warmLanes&=~m,wt===s&&(Gn&m)===m&&(Gt===4||Gt===3&&(Gn&62914560)===Gn&&300>me()-Bp?(st&2)===0&&nf(s,0):iw|=m,Ju===Gn&&(Ju=0)),Ha(s)}function nT(s,u){u===0&&(u=Be()),s=bl(s,u),s!==null&&(Qn(s,u),Ha(s))}function BG(s){var u=s.memoizedState,m=0;u!==null&&(m=u.retryLane),nT(s,m)}function FG(s,u){var m=0;switch(s.tag){case 31:case 13:var g=s.stateNode,x=s.memoizedState;x!==null&&(m=x.retryLane);break;case 19:g=s.stateNode;break;case 22:g=s.stateNode._retryCache;break;default:throw Error(i(314))}g!==null&&g.delete(u),nT(s,m)}function qG(s,u){return Ie(s,u)}var Gp=null,rf=null,cw=!1,Yp=!1,dw=!1,Ts=0;function Ha(s){s!==rf&&s.next===null&&(rf===null?Gp=rf=s:rf=rf.next=s),Yp=!0,cw||(cw=!0,UG())}function wd(s,u){if(!dw&&Yp){dw=!0;do for(var m=!1,g=Gp;g!==null;){if(s!==0){var x=g.pendingLanes;if(x===0)var E=0;else{var I=g.suspendedLanes,K=g.pingedLanes;E=(1<<31-Je(42|s)+1)-1,E&=x&~(I&~K),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(m=!0,aT(g,E))}else E=Gn,E=ot(g,g===wt?E:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(E&3)===0||$t(g,E)||(m=!0,aT(g,E));g=g.next}while(m);dw=!1}}function HG(){tT()}function tT(){Yp=cw=!1;var s=0;Ts!==0&&eY()&&(s=Ts);for(var u=me(),m=null,g=Gp;g!==null;){var x=g.next,E=iT(g,u);E===0?(g.next=null,m===null?Gp=x:m.next=x,x===null&&(rf=m)):(m=g,(s!==0||(E&3)!==0)&&(Yp=!0)),g=x}hi!==0&&hi!==5||wd(s),Ts!==0&&(Ts=0)}function iT(s,u){for(var m=s.suspendedLanes,g=s.pingedLanes,x=s.expirationTimes,E=s.pendingLanes&-62914561;0 K)break;var Oe=Q.transferSize,Me=Q.initiatorType;Oe&&hT(Me)&&(Q=Q.responseEnd,I+=Oe*(Q "u"?null:document;function CT(s,u,m){var g=af;if(g&&typeof u=="string"&&u){var x=wr(u);x='link[rel="'+s+'"][href="'+x+'"]',typeof m=="string"&&(x+='[crossorigin="'+m+'"]'),ST.has(x)||(ST.add(x),s={rel:s,crossOrigin:m,href:u},g.querySelector(x)===null&&(u=g.createElement("link"),Mi(u,"link",s),an(u),g.head.appendChild(u)))}}function uY(s){To.D(s),CT("dns-prefetch",s,null)}function fY(s,u){To.C(s,u),CT("preconnect",s,u)}function cY(s,u,m){To.L(s,u,m);var g=af;if(g&&s&&u){var x='link[rel="preload"][as="'+wr(u)+'"]';u==="image"&&m&&m.imageSrcSet?(x+='[imagesrcset="'+wr(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(x+='[imagesizes="'+wr(m.imageSizes)+'"]')):x+='[href="'+wr(s)+'"]';var E=x;switch(u){case"style":E=of(s);break;case"script":E=sf(s)}Yr.has(E)||(s=d({rel:"preload",href:u==="image"&&m&&m.imageSrcSet?void 0:s,as:u},m),Yr.set(E,s),g.querySelector(x)!==null||u==="style"&&g.querySelector(Sd(E))||u==="script"&&g.querySelector(Cd(E))||(u=g.createElement("link"),Mi(u,"link",s),an(u),g.head.appendChild(u)))}}function dY(s,u){To.m(s,u);var m=af;if(m&&s){var g=u&&typeof u.as=="string"?u.as:"script",x='link[rel="modulepreload"][as="'+wr(g)+'"][href="'+wr(s)+'"]',E=x;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=sf(s)}if(!Yr.has(E)&&(s=d({rel:"modulepreload",href:s},u),Yr.set(E,s),m.querySelector(x)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(Cd(E)))return}g=m.createElement("link"),Mi(g,"link",s),an(g),m.head.appendChild(g)}}}function hY(s,u,m){To.S(s,u,m);var g=af;if(g&&s){var x=ci(g).hoistableStyles,E=of(s);u=u||"default";var I=x.get(E);if(!I){var K={loading:0,preload:null};if(I=g.querySelector(Sd(E)))K.loading=5;else{s=d({rel:"stylesheet",href:s,"data-precedence":u},m),(m=Yr.get(E))&&Ew(s,m);var Q=I=g.createElement("link");an(Q),Mi(Q,"link",s),Q._p=new Promise(function(ce,Oe){Q.onload=ce,Q.onerror=Oe}),Q.addEventListener("load",function(){K.loading|=1}),Q.addEventListener("error",function(){K.loading|=2}),K.loading|=4,Jp(I,u,g)}I={type:"stylesheet",instance:I,count:1,state:K},x.set(E,I)}}}function mY(s,u){To.X(s,u);var m=af;if(m&&s){var g=ci(m).hoistableScripts,x=sf(s),E=g.get(x);E||(E=m.querySelector(Cd(x)),E||(s=d({src:s,async:!0},u),(u=Yr.get(x))&&Tw(s,u),E=m.createElement("script"),an(E),Mi(E,"link",s),m.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},g.set(x,E))}}function pY(s,u){To.M(s,u);var m=af;if(m&&s){var g=ci(m).hoistableScripts,x=sf(s),E=g.get(x);E||(E=m.querySelector(Cd(x)),E||(s=d({src:s,async:!0,type:"module"},u),(u=Yr.get(x))&&Tw(s,u),E=m.createElement("script"),an(E),Mi(E,"link",s),m.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},g.set(x,E))}}function AT(s,u,m,g){var x=(x=oe.current)?Qp(x):null;if(!x)throw Error(i(446));switch(s){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(u=of(m.href),m=ci(x).hoistableStyles,g=m.get(u),g||(g={type:"style",instance:null,count:0,state:null},m.set(u,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){s=of(m.href);var E=ci(x).hoistableStyles,I=E.get(s);if(I||(x=x.ownerDocument||x,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(s,I),(E=x.querySelector(Sd(s)))&&!E._p&&(I.instance=E,I.state.loading=5),Yr.has(s)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},Yr.set(s,m),E||vY(x,s,m,I.state))),u&&g===null)throw Error(i(528,""));return I}if(u&&g!==null)throw Error(i(529,""));return null;case"script":return u=m.async,m=m.src,typeof m=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=sf(m),m=ci(x).hoistableScripts,g=m.get(u),g||(g={type:"script",instance:null,count:0,state:null},m.set(u,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,s))}}function of(s){return'href="'+wr(s)+'"'}function Sd(s){return'link[rel="stylesheet"]['+s+"]"}function OT(s){return d({},s,{"data-precedence":s.precedence,precedence:null})}function vY(s,u,m,g){s.querySelector('link[rel="preload"][as="style"]['+u+"]")?g.loading=1:(u=s.createElement("link"),g.preload=u,u.addEventListener("load",function(){return g.loading|=1}),u.addEventListener("error",function(){return g.loading|=2}),Mi(u,"link",m),an(u),s.head.appendChild(u))}function sf(s){return'[src="'+wr(s)+'"]'}function Cd(s){return"script[async]"+s}function ET(s,u,m){if(u.count++,u.instance===null)switch(u.type){case"style":var g=s.querySelector('style[data-href~="'+wr(m.href)+'"]');if(g)return u.instance=g,an(g),g;var x=d({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return g=(s.ownerDocument||s).createElement("style"),an(g),Mi(g,"style",x),Jp(g,m.precedence,s),u.instance=g;case"stylesheet":x=of(m.href);var E=s.querySelector(Sd(x));if(E)return u.state.loading|=4,u.instance=E,an(E),E;g=OT(m),(x=Yr.get(x))&&Ew(g,x),E=(s.ownerDocument||s).createElement("link"),an(E);var I=E;return I._p=new Promise(function(K,Q){I.onload=K,I.onerror=Q}),Mi(E,"link",g),u.state.loading|=4,Jp(E,m.precedence,s),u.instance=E;case"script":return E=sf(m.src),(x=s.querySelector(Cd(E)))?(u.instance=x,an(x),x):(g=m,(x=Yr.get(E))&&(g=d({},m),Tw(g,x)),s=s.ownerDocument||s,x=s.createElement("script"),an(x),Mi(x,"link",g),s.head.appendChild(x),u.instance=x);case"void":return null;default:throw Error(i(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(g=u.instance,u.state.loading|=4,Jp(g,m.precedence,s));return u.instance}function Jp(s,u,m){for(var g=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=g.length?g[g.length-1]:null,E=x,I=0;I title"):null)}function gY(s,u,m){if(m===1||u.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return s=u.disabled,typeof u.precedence=="string"&&s==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function jT(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function yY(s,u,m,g){if(m.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var x=of(g.href),E=u.querySelector(Sd(x));if(E){u=E._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(s.count++,s=nv.bind(s),u.then(s,s)),m.state.loading|=4,m.instance=E,an(E);return}E=u.ownerDocument||u,g=OT(g),(x=Yr.get(x))&&Ew(g,x),E=E.createElement("link"),an(E);var I=E;I._p=new Promise(function(K,Q){I.onload=K,I.onerror=Q}),Mi(E,"link",g),m.instance=E}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(m,u),(u=m.state.preload)&&(m.state.loading&3)===0&&(s.count++,m=nv.bind(s),u.addEventListener("load",m),u.addEventListener("error",m))}}var Mw=0;function bY(s,u){return s.stylesheets&&s.count===0&&iv(s,s.stylesheets),0 Mw?50:800)+u);return s.unsuspend=m,function(){s.unsuspend=null,clearTimeout(g),clearTimeout(x)}}:null}function nv(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)iv(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var tv=null;function iv(s,u){s.stylesheets=null,s.unsuspend!==null&&(s.count++,tv=new Map,u.forEach(wY,s),tv=null,nv.call(s))}function wY(s,u){if(!(u.state.loading&4)){var m=tv.get(s);if(m)var g=m.get(null);else{m=new Map,tv.set(s,m);for(var x=s.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E "u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),pk.exports=Bte(),pk.exports}var qte=Fte();class yB extends Error{constructor(n,t){super(t),this.status=n,this.name="HTTPError"}}async function Hte(e,n,t){const i=await fetch(`${t}${e}`,{credentials:"include",...n,headers:{"Content-Type":"application/json",...(n==null?void 0:n.headers)??{}}});if(!i.ok){const r=await i.json().catch(()=>({Message:i.statusText}));throw new yB(i.status,r.Message??r.message??i.statusText)}if(i.status!==204)return i.json()}const Ute="/api";function Ht(e,n){return Hte(e,n,Ute)}function Vte(){return Ht("/board")}function Wte(e){return Ht("/columns",{method:"POST",body:JSON.stringify({name:e})})}function hf(e,n){return Ht(`/columns/${e}`,{method:"PATCH",body:JSON.stringify(n)})}function Gte(e){return Ht(`/columns/${e}`,{method:"DELETE"})}function Yte(e){return Ht("/columns/reorder",{method:"POST",body:JSON.stringify({ids:e})})}function Kte(e){return Ht("/cards",{method:"POST",body:JSON.stringify(e)})}function Pd(e,n){return Ht(`/cards/${e}`,{method:"PATCH",body:JSON.stringify(n)})}function Xte(e){return Ht(`/cards/${e}`,{method:"DELETE"})}function yk(e,n){return Ht(`/cards/${e}/stickers`,{method:"PUT",body:JSON.stringify({stickers:n})})}function Zte(){return Ht("/trash")}function Qte(e){return Ht(`/cards/${e}/restore`,{method:"POST"})}function Jte(e){return Ht(`/cards/${e}/purge`,{method:"DELETE"})}function eie(e,n,t){return Ht(`/cards/${e}/move`,{method:"POST",body:JSON.stringify({column_id:n,ordered_ids:t})})}function nie(e){return Ht(`/cards/${e}/history`)}function tie(e){return Ht("/chat",{method:"POST",body:JSON.stringify({messages:e})})}function gM(e,n){return Ht("/auth/login",{method:"POST",body:JSON.stringify({username:e,password:n})})}function iie(e,n,t){return Ht("/auth/register",{method:"POST",body:JSON.stringify({username:e,password:n,display_name:t})})}function rie(){return Ht("/auth/logout",{method:"POST"})}function aie(){return Ht("/me")}function yM(e){return Ht("/me",{method:"PATCH",body:JSON.stringify(e)})}function bB(){return Ht("/users")}function wB(){return Ht("/tags")}function oie(){return Ht("/requesters")}function kB(e){const n=new URLSearchParams;e.from&&n.set("from",e.from),e.to&&n.set("to",e.to),e.assignee_id&&n.set("assignee_id",e.assignee_id),e.requester&&n.set("requester",e.requester),e.tags&&e.tags.length>0&&n.set("tags",e.tags.join(","));const t=n.toString();return Ht(`/metrics${t?`?${t}`:""}`)}const _B=O.createContext(null);function sie({children:e}){const[n,t]=O.useState(null),[i,r]=O.useState(!0);O.useEffect(()=>{aie().then(t).catch(f=>{(!(f instanceof yB)||f.status!==401)&&console.warn("getMe failed",f)}).finally(()=>r(!1))},[]);const a=O.useCallback(async(f,c)=>{const h=await gM(f,c);t(h)},[]),o=O.useCallback(async(f,c,h)=>{await iie(f,c,h);const d=await gM(f,c);t(d)},[]),l=O.useCallback(async()=>{await rie(),t(null)},[]);return k.jsx(_B.Provider,{value:{user:n,loading:i,login:a,register:o,logout:l,setUser:t},children:e})}function xC(){const e=O.useContext(_B);if(!e)throw new Error("useAuth: missing AuthProvider");return e}function lie(){for(var e=arguments.length,n=new Array(e),t=0;t i=>{n.forEach(r=>r(i))},n)}const Ey=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ac(e){const n=Object.prototype.toString.call(e);return n==="[object Window]"||n==="[object global]"}function SC(e){return"nodeType"in e}function rr(e){var n,t;return e?Ac(e)?e:SC(e)&&(n=(t=e.ownerDocument)==null?void 0:t.defaultView)!=null?n:window:window}function CC(e){const{Document:n}=rr(e);return e instanceof n}function Nm(e){return Ac(e)?!1:e instanceof rr(e).HTMLElement}function xB(e){return e instanceof rr(e).SVGElement}function Oc(e){return e?Ac(e)?e.document:SC(e)?CC(e)?e:Nm(e)||xB(e)?e.ownerDocument:document:document:document}const Pa=Ey?O.useLayoutEffect:O.useEffect;function Ty(e){const n=O.useRef(e);return Pa(()=>{n.current=e}),O.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r {e.current=setInterval(i,r)},[]),t=O.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[n,t]}function jh(e,n){n===void 0&&(n=[e]);const t=O.useRef(e);return Pa(()=>{t.current!==e&&(t.current=e)},n),t}function $m(e,n){const t=O.useRef();return O.useMemo(()=>{const i=e(t.current);return t.current=i,i},[...n])}function gg(e){const n=Ty(e),t=O.useRef(null),i=O.useCallback(r=>{r!==t.current&&(n==null||n(r,t.current)),t.current=r},[]);return[t,i]}function yg(e){const n=O.useRef();return O.useEffect(()=>{n.current=e},[e]),n.current}let bk={};function zm(e,n){return O.useMemo(()=>{if(n)return n;const t=bk[e]==null?0:bk[e]+1;return bk[e]=t,e+"-"+t},[e,n])}function SB(e){return function(n){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r {const l=Object.entries(o);for(const[f,c]of l){const h=a[f];h!=null&&(a[f]=h+e*c)}return a},{...n})}}const Tf=SB(1),Dh=SB(-1);function fie(e){return"clientX"in e&&"clientY"in e}function My(e){if(!e)return!1;const{KeyboardEvent:n}=rr(e.target);return n&&e instanceof n}function cie(e){if(!e)return!1;const{TouchEvent:n}=rr(e.target);return n&&e instanceof n}function bg(e){if(cie(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:t}=e.touches[0];return{x:n,y:t}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:t}=e.changedTouches[0];return{x:n,y:t}}}return fie(e)?{x:e.clientX,y:e.clientY}:null}const to=Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:t}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:t}=e;return"scaleX("+n+") scaleY("+t+")"}},Transform:{toString(e){if(e)return[to.Translate.toString(e),to.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:t,easing:i}=e;return n+" "+t+"ms "+i}}}),bM="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function die(e){return e.matches(bM)?e:e.querySelector(bM)}const hie={display:"none"};function mie(e){let{id:n,value:t}=e;return Z.createElement("div",{id:n,style:hie},t)}function pie(e){let{id:n,announcement:t,ariaLiveType:i="assertive"}=e;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Z.createElement("div",{id:n,style:r,role:"status","aria-live":i,"aria-atomic":!0},t)}function vie(){const[e,n]=O.useState("");return{announce:O.useCallback(i=>{i!=null&&n(i)},[]),announcement:e}}const CB=O.createContext(null);function gie(e){const n=O.useContext(CB);O.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of ");return n(e)},[e,n])}function yie(){const[e]=O.useState(()=>new Set),n=O.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[O.useCallback(i=>{let{type:r,event:a}=i;e.forEach(o=>{var l;return(l=o[r])==null?void 0:l.call(o,a)})},[e]),n]}const bie={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},wie={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was moved over droppable area "+t.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was dropped over droppable area "+t.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function kie(e){let{announcements:n=wie,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=bie}=e;const{announce:a,announcement:o}=vie(),l=zm("DndLiveRegion"),[f,c]=O.useState(!1);if(O.useEffect(()=>{c(!0)},[]),gie(O.useMemo(()=>({onDragStart(d){let{active:p}=d;a(n.onDragStart({active:p}))},onDragMove(d){let{active:p,over:v}=d;n.onDragMove&&a(n.onDragMove({active:p,over:v}))},onDragOver(d){let{active:p,over:v}=d;a(n.onDragOver({active:p,over:v}))},onDragEnd(d){let{active:p,over:v}=d;a(n.onDragEnd({active:p,over:v}))},onDragCancel(d){let{active:p,over:v}=d;a(n.onDragCancel({active:p,over:v}))}}),[a,n])),!f)return null;const h=Z.createElement(Z.Fragment,null,Z.createElement(mie,{id:i,value:r.draggable}),Z.createElement(pie,{id:l,announcement:o}));return t?Vs.createPortal(h,t):h}var vi;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(vi||(vi={}));function wg(){}function wM(e,n){return O.useMemo(()=>({sensor:e,options:n??{}}),[e,n])}function _ie(){for(var e=arguments.length,n=new Array(e),t=0;t [...n].filter(i=>i!=null),[...n])}const Na=Object.freeze({x:0,y:0});function AC(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function xie(e,n){const t=bg(e);if(!t)return"0 0";const i={x:(t.x-n.left)/n.width*100,y:(t.y-n.top)/n.height*100};return i.x+"% "+i.y+"%"}function OC(e,n){let{data:{value:t}}=e,{data:{value:i}}=n;return t-i}function Sie(e,n){let{data:{value:t}}=e,{data:{value:i}}=n;return i-t}function hS(e){let{left:n,top:t,height:i,width:r}=e;return[{x:n,y:t},{x:n+r,y:t},{x:n,y:t+i},{x:n+r,y:t+i}]}function AB(e,n){if(!e||e.length===0)return null;const[t]=e;return t[n]}function kM(e,n,t){return n===void 0&&(n=e.left),t===void 0&&(t=e.top),{x:n+e.width*.5,y:t+e.height*.5}}const Cie=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:i}=e;const r=kM(n,n.left,n.top),a=[];for(const o of i){const{id:l}=o,f=t.get(l);if(f){const c=AC(kM(f),r);a.push({id:l,data:{droppableContainer:o,value:c}})}}return a.sort(OC)},OB=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:i}=e;const r=hS(n),a=[];for(const o of i){const{id:l}=o,f=t.get(l);if(f){const c=hS(f),h=r.reduce((p,v,y)=>p+AC(c[y],v),0),d=Number((h/4).toFixed(4));a.push({id:l,data:{droppableContainer:o,value:d}})}}return a.sort(OC)};function Aie(e,n){const t=Math.max(n.top,e.top),i=Math.max(n.left,e.left),r=Math.min(n.left+n.width,e.left+e.width),a=Math.min(n.top+n.height,e.top+e.height),o=r-i,l=a-t;if(i {let{collisionRect:n,droppableRects:t,droppableContainers:i}=e;const r=[];for(const a of i){const{id:o}=a,l=t.get(o);if(l){const f=Aie(l,n);f>0&&r.push({id:o,data:{droppableContainer:a,value:f}})}}return r.sort(Sie)};function Oie(e,n){const{top:t,left:i,bottom:r,right:a}=n;return t<=e.y&&e.y<=r&&i<=e.x&&e.x<=a}const Eie=e=>{let{droppableContainers:n,droppableRects:t,pointerCoordinates:i}=e;if(!i)return[];const r=[];for(const a of n){const{id:o}=a,l=t.get(o);if(l&&Oie(i,l)){const c=hS(l).reduce((d,p)=>d+AC(i,p),0),h=Number((c/4).toFixed(4));r.push({id:o,data:{droppableContainer:a,value:h}})}}return r.sort(OC)};function Tie(e,n,t){return{...e,scaleX:n&&t?n.width/t.width:1,scaleY:n&&t?n.height/t.height:1}}function TB(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:Na}function Mie(e){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a({...o,top:o.top+e*l.y,bottom:o.bottom+e*l.y,left:o.left+e*l.x,right:o.right+e*l.x}),{...t})}}const jie=Mie(1);function MB(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function Die(e,n,t){const i=MB(n);if(!i)return e;const{scaleX:r,scaleY:a,x:o,y:l}=i,f=e.left-o-(1-r)*parseFloat(t),c=e.top-l-(1-a)*parseFloat(t.slice(t.indexOf(" ")+1)),h=r?e.width/r:e.width,d=a?e.height/a:e.height;return{width:h,height:d,top:c,right:f+h,bottom:c+d,left:f}}const Rie={ignoreTransform:!1};function Ec(e,n){n===void 0&&(n=Rie);let t=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:c,transformOrigin:h}=rr(e).getComputedStyle(e);c&&(t=Die(t,c,h))}const{top:i,left:r,width:a,height:o,bottom:l,right:f}=t;return{top:i,left:r,width:a,height:o,bottom:l,right:f}}function _M(e){return Ec(e,{ignoreTransform:!0})}function Pie(e){const n=e.innerWidth,t=e.innerHeight;return{top:0,left:0,right:n,bottom:t,width:n,height:t}}function Nie(e,n){return n===void 0&&(n=rr(e).getComputedStyle(e)),n.position==="fixed"}function $ie(e,n){n===void 0&&(n=rr(e).getComputedStyle(e));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const a=n[r];return typeof a=="string"?t.test(a):!1})}function jy(e,n){const t=[];function i(r){if(n!=null&&t.length>=n||!r)return t;if(CC(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!Nm(r)||xB(r)||t.includes(r))return t;const a=rr(e).getComputedStyle(r);return r!==e&&$ie(r,a)&&t.push(r),Nie(r,a)?t:i(r.parentNode)}return e?i(e):t}function jB(e){const[n]=jy(e,1);return n??null}function wk(e){return!Ey||!e?null:Ac(e)?e:SC(e)?CC(e)||e===Oc(e).scrollingElement?window:Nm(e)?e:null:null}function DB(e){return Ac(e)?e.scrollX:e.scrollLeft}function RB(e){return Ac(e)?e.scrollY:e.scrollTop}function mS(e){return{x:DB(e),y:RB(e)}}var xi;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(xi||(xi={}));function PB(e){return!Ey||!e?!1:e===document.scrollingElement}function NB(e){const n={x:0,y:0},t=PB(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-t.width,y:e.scrollHeight-t.height},r=e.scrollTop<=n.y,a=e.scrollLeft<=n.x,o=e.scrollTop>=i.y,l=e.scrollLeft>=i.x;return{isTop:r,isLeft:a,isBottom:o,isRight:l,maxScroll:i,minScroll:n}}const zie={x:.2,y:.2};function Lie(e,n,t,i,r){let{top:a,left:o,right:l,bottom:f}=t;i===void 0&&(i=10),r===void 0&&(r=zie);const{isTop:c,isBottom:h,isLeft:d,isRight:p}=NB(e),v={x:0,y:0},y={x:0,y:0},b={height:n.height*r.y,width:n.width*r.x};return!c&&a<=n.top+b.height?(v.y=xi.Backward,y.y=i*Math.abs((n.top+b.height-a)/b.height)):!h&&f>=n.bottom-b.height&&(v.y=xi.Forward,y.y=i*Math.abs((n.bottom-b.height-f)/b.height)),!p&&l>=n.right-b.width?(v.x=xi.Forward,y.x=i*Math.abs((n.right-b.width-l)/b.width)):!d&&o<=n.left+b.width&&(v.x=xi.Backward,y.x=i*Math.abs((n.left+b.width-o)/b.width)),{direction:v,speed:y}}function Iie(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:n,left:t,right:i,bottom:r}=e.getBoundingClientRect();return{top:n,left:t,right:i,bottom:r,width:e.clientWidth,height:e.clientHeight}}function $B(e){return e.reduce((n,t)=>Tf(n,mS(t)),Na)}function Bie(e){return e.reduce((n,t)=>n+DB(t),0)}function Fie(e){return e.reduce((n,t)=>n+RB(t),0)}function zB(e,n){if(n===void 0&&(n=Ec),!e)return;const{top:t,left:i,bottom:r,right:a}=n(e);jB(e)&&(r<=0||a<=0||t>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const qie=[["x",["left","right"],Bie],["y",["top","bottom"],Fie]];class EC{constructor(n,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=jy(t),r=$B(i);this.rect={...n},this.width=n.width,this.height=n.height;for(const[a,o,l]of qie)for(const f of o)Object.defineProperty(this,f,{get:()=>{const c=l(i),h=r[a]-c;return this.rect[f]+h},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class fh{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...t)})},this.target=n}add(n,t,i){var r;(r=this.target)==null||r.addEventListener(n,t,i),this.listeners.push([n,t,i])}}function Hie(e){const{EventTarget:n}=rr(e);return e instanceof n?e:Oc(e)}function kk(e,n){const t=Math.abs(e.x),i=Math.abs(e.y);return typeof n=="number"?Math.sqrt(t**2+i**2)>n:"x"in n&&"y"in n?t>n.x&&i>n.y:"x"in n?t>n.x:"y"in n?i>n.y:!1}var ea;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ea||(ea={}));function xM(e){e.preventDefault()}function Uie(e){e.stopPropagation()}var Xn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Xn||(Xn={}));const LB={start:[Xn.Space,Xn.Enter],cancel:[Xn.Esc],end:[Xn.Space,Xn.Enter,Xn.Tab]},Vie=(e,n)=>{let{currentCoordinates:t}=n;switch(e.code){case Xn.Right:return{...t,x:t.x+25};case Xn.Left:return{...t,x:t.x-25};case Xn.Down:return{...t,y:t.y+25};case Xn.Up:return{...t,y:t.y-25}}};class TC{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:t}}=n;this.props=n,this.listeners=new fh(Oc(t)),this.windowListeners=new fh(rr(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ea.Resize,this.handleCancel),this.windowListeners.add(ea.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ea.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:t}=this.props,i=n.node.current;i&&zB(i),t(Na)}handleKeyDown(n){if(My(n)){const{active:t,context:i,options:r}=this.props,{keyboardCodes:a=LB,coordinateGetter:o=Vie,scrollBehavior:l="smooth"}=r,{code:f}=n;if(a.end.includes(f)){this.handleEnd(n);return}if(a.cancel.includes(f)){this.handleCancel(n);return}const{collisionRect:c}=i.current,h=c?{x:c.left,y:c.top}:Na;this.referenceCoordinates||(this.referenceCoordinates=h);const d=o(n,{active:t,context:i.current,currentCoordinates:h});if(d){const p=Dh(d,h),v={x:0,y:0},{scrollableAncestors:y}=i.current;for(const b of y){const w=n.code,{isTop:_,isRight:S,isLeft:C,isBottom:T,maxScroll:A,minScroll:M}=NB(b),j=Iie(b),N={x:Math.min(w===Xn.Right?j.right-j.width/2:j.right,Math.max(w===Xn.Right?j.left:j.left+j.width/2,d.x)),y:Math.min(w===Xn.Down?j.bottom-j.height/2:j.bottom,Math.max(w===Xn.Down?j.top:j.top+j.height/2,d.y))},F=w===Xn.Right&&!S||w===Xn.Left&&!C,R=w===Xn.Down&&!T||w===Xn.Up&&!_;if(F&&N.x!==d.x){const L=b.scrollLeft+p.x,B=w===Xn.Right&&L<=A.x||w===Xn.Left&&L>=M.x;if(B&&!p.y){b.scrollTo({left:L,behavior:l});return}B?v.x=b.scrollLeft-L:v.x=w===Xn.Right?b.scrollLeft-A.x:b.scrollLeft-M.x,v.x&&b.scrollBy({left:-v.x,behavior:l});break}else if(R&&N.y!==d.y){const L=b.scrollTop+p.y,B=w===Xn.Down&&L<=A.y||w===Xn.Up&&L>=M.y;if(B&&!p.x){b.scrollTo({top:L,behavior:l});return}B?v.y=b.scrollTop-L:v.y=w===Xn.Down?b.scrollTop-A.y:b.scrollTop-M.y,v.y&&b.scrollBy({top:-v.y,behavior:l});break}}this.handleMove(n,Tf(Dh(d,this.referenceCoordinates),v))}}}handleMove(n,t){const{onMove:i}=this.props;n.preventDefault(),i(t)}handleEnd(n){const{onEnd:t}=this.props;n.preventDefault(),this.detach(),t()}handleCancel(n){const{onCancel:t}=this.props;n.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}TC.activators=[{eventName:"onKeyDown",handler:(e,n,t)=>{let{keyboardCodes:i=LB,onActivation:r}=n,{active:a}=t;const{code:o}=e.nativeEvent;if(i.start.includes(o)){const l=a.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),r==null||r({event:e.nativeEvent}),!0)}return!1}}];function SM(e){return!!(e&&"distance"in e)}function CM(e){return!!(e&&"delay"in e)}class MC{constructor(n,t,i){var r;i===void 0&&(i=Hie(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=t;const{event:a}=n,{target:o}=a;this.props=n,this.events=t,this.document=Oc(o),this.documentListeners=new fh(this.document),this.listeners=new fh(i),this.windowListeners=new fh(rr(o)),this.initialCoordinates=(r=bg(a))!=null?r:Na,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:t,bypassActivationConstraint:i}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(ea.Resize,this.handleCancel),this.windowListeners.add(ea.DragStart,xM),this.windowListeners.add(ea.VisibilityChange,this.handleCancel),this.windowListeners.add(ea.ContextMenu,xM),this.documentListeners.add(ea.Keydown,this.handleKeydown),t){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(CM(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(SM(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(n,t){const{active:i,onPending:r}=this.props;r(i,n,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:n}=this,{onStart:t}=this.props;n&&(this.activated=!0,this.documentListeners.add(ea.Click,Uie,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ea.SelectionChange,this.removeTextSelection),t(n))}handleMove(n){var t;const{activated:i,initialCoordinates:r,props:a}=this,{onMove:o,options:{activationConstraint:l}}=a;if(!r)return;const f=(t=bg(n))!=null?t:Na,c=Dh(r,f);if(!i&&l){if(SM(l)){if(l.tolerance!=null&&kk(c,l.tolerance))return this.handleCancel();if(kk(c,l.distance))return this.handleStart()}if(CM(l)&&kk(c,l.tolerance))return this.handleCancel();this.handlePending(l,c);return}n.cancelable&&n.preventDefault(),o(f)}handleEnd(){const{onAbort:n,onEnd:t}=this.props;this.detach(),this.activated||n(this.props.active),t()}handleCancel(){const{onAbort:n,onCancel:t}=this.props;this.detach(),this.activated||n(this.props.active),t()}handleKeydown(n){n.code===Xn.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const Wie={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class jC extends MC{constructor(n){const{event:t}=n,i=Oc(t.target);super(n,Wie,i)}}jC.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:i}=n;return!t.isPrimary||t.button!==0?!1:(i==null||i({event:t}),!0)}}];const Gie={move:{name:"mousemove"},end:{name:"mouseup"}};var pS;(function(e){e[e.RightClick=2]="RightClick"})(pS||(pS={}));class Yie extends MC{constructor(n){super(n,Gie,Oc(n.event.target))}}Yie.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:i}=n;return t.button===pS.RightClick?!1:(i==null||i({event:t}),!0)}}];const _k={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Kie extends MC{constructor(n){super(n,_k)}static setup(){return window.addEventListener(_k.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(_k.move.name,n)};function n(){}}}Kie.activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:i}=n;const{touches:r}=t;return r.length>1?!1:(i==null||i({event:t}),!0)}}];var ch;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ch||(ch={}));var kg;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(kg||(kg={}));function Xie(e){let{acceleration:n,activator:t=ch.Pointer,canScroll:i,draggingRect:r,enabled:a,interval:o=5,order:l=kg.TreeOrder,pointerCoordinates:f,scrollableAncestors:c,scrollableAncestorRects:h,delta:d,threshold:p}=e;const v=Qie({delta:d,disabled:!a}),[y,b]=uie(),w=O.useRef({x:0,y:0}),_=O.useRef({x:0,y:0}),S=O.useMemo(()=>{switch(t){case ch.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case ch.DraggableRect:return r}},[t,r,f]),C=O.useRef(null),T=O.useCallback(()=>{const M=C.current;if(!M)return;const j=w.current.x*_.current.x,N=w.current.y*_.current.y;M.scrollBy(j,N)},[]),A=O.useMemo(()=>l===kg.TreeOrder?[...c].reverse():c,[l,c]);O.useEffect(()=>{if(!a||!c.length||!S){b();return}for(const M of A){if((i==null?void 0:i(M))===!1)continue;const j=c.indexOf(M),N=h[j];if(!N)continue;const{direction:F,speed:R}=Lie(M,N,S,n,p);for(const L of["x","y"])v[L][F[L]]||(R[L]=0,F[L]=0);if(R.x>0||R.y>0){b(),C.current=M,y(T,o),w.current=R,_.current=F;return}}w.current={x:0,y:0},_.current={x:0,y:0},b()},[n,T,i,b,a,o,JSON.stringify(S),JSON.stringify(v),y,c,A,h,JSON.stringify(p)])}const Zie={x:{[xi.Backward]:!1,[xi.Forward]:!1},y:{[xi.Backward]:!1,[xi.Forward]:!1}};function Qie(e){let{delta:n,disabled:t}=e;const i=yg(n);return $m(r=>{if(t||!i||!r)return Zie;const a={x:Math.sign(n.x-i.x),y:Math.sign(n.y-i.y)};return{x:{[xi.Backward]:r.x[xi.Backward]||a.x===-1,[xi.Forward]:r.x[xi.Forward]||a.x===1},y:{[xi.Backward]:r.y[xi.Backward]||a.y===-1,[xi.Forward]:r.y[xi.Forward]||a.y===1}}},[t,n,i])}function Jie(e,n){const t=n!=null?e.get(n):void 0,i=t?t.node.current:null;return $m(r=>{var a;return n==null?null:(a=i??r)!=null?a:null},[i,n])}function ere(e,n){return O.useMemo(()=>e.reduce((t,i)=>{const{sensor:r}=i,a=r.activators.map(o=>({eventName:o.eventName,handler:n(o.handler,i)}));return[...t,...a]},[]),[e,n])}var Rh;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Rh||(Rh={}));var vS;(function(e){e.Optimized="optimized"})(vS||(vS={}));const AM=new Map;function nre(e,n){let{dragging:t,dependencies:i,config:r}=n;const[a,o]=O.useState(null),{frequency:l,measure:f,strategy:c}=r,h=O.useRef(e),d=w(),p=jh(d),v=O.useCallback(function(_){_===void 0&&(_=[]),!p.current&&o(S=>S===null?_:S.concat(_.filter(C=>!S.includes(C))))},[p]),y=O.useRef(null),b=$m(_=>{if(d&&!t)return AM;if(!_||_===AM||h.current!==e||a!=null){const S=new Map;for(let C of e){if(!C)continue;if(a&&a.length>0&&!a.includes(C.id)&&C.rect.current){S.set(C.id,C.rect.current);continue}const T=C.node.current,A=T?new EC(f(T),T):null;C.rect.current=A,A&&S.set(C.id,A)}return S}return _},[e,a,t,d,f]);return O.useEffect(()=>{h.current=e},[e]),O.useEffect(()=>{d||v()},[t,d]),O.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),O.useEffect(()=>{d||typeof l!="number"||y.current!==null||(y.current=setTimeout(()=>{v(),y.current=null},l))},[l,d,v,...i]),{droppableRects:b,measureDroppableContainers:v,measuringScheduled:a!=null};function w(){switch(c){case Rh.Always:return!1;case Rh.BeforeDragging:return t;default:return!t}}}function DC(e,n){return $m(t=>e?t||(typeof n=="function"?n(e):e):null,[n,e])}function tre(e,n){return DC(e,n)}function ire(e){let{callback:n,disabled:t}=e;const i=Ty(n),r=O.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(i)},[i,t]);return O.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function Dy(e){let{callback:n,disabled:t}=e;const i=Ty(n),r=O.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(i)},[t]);return O.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function rre(e){return new EC(Ec(e),e)}function OM(e,n,t){n===void 0&&(n=rre);const[i,r]=O.useState(null);function a(){r(f=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=f??t)!=null?c:null}const h=n(e);return JSON.stringify(f)===JSON.stringify(h)?f:h})}const o=ire({callback(f){if(e)for(const c of f){const{type:h,target:d}=c;if(h==="childList"&&d instanceof HTMLElement&&d.contains(e)){a();break}}}}),l=Dy({callback:a});return Pa(()=>{a(),e?(l==null||l.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),o==null||o.disconnect())},[e]),i}function are(e){const n=DC(e);return TB(e,n)}const EM=[];function ore(e){const n=O.useRef(e),t=$m(i=>e?i&&i!==EM&&e&&n.current&&e.parentNode===n.current.parentNode?i:jy(e):EM,[e]);return O.useEffect(()=>{n.current=e},[e]),t}function sre(e){const[n,t]=O.useState(null),i=O.useRef(e),r=O.useCallback(a=>{const o=wk(a.target);o&&t(l=>l?(l.set(o,mS(o)),new Map(l)):null)},[]);return O.useEffect(()=>{const a=i.current;if(e!==a){o(a);const l=e.map(f=>{const c=wk(f);return c?(c.addEventListener("scroll",r,{passive:!0}),[c,mS(c)]):null}).filter(f=>f!=null);t(l.length?new Map(l):null),i.current=e}return()=>{o(e),o(a)};function o(l){l.forEach(f=>{const c=wk(f);c==null||c.removeEventListener("scroll",r)})}},[r,e]),O.useMemo(()=>e.length?n?Array.from(n.values()).reduce((a,o)=>Tf(a,o),Na):$B(e):Na,[e,n])}function TM(e,n){n===void 0&&(n=[]);const t=O.useRef(null);return O.useEffect(()=>{t.current=null},n),O.useEffect(()=>{const i=e!==Na;i&&!t.current&&(t.current=e),!i&&t.current&&(t.current=null)},[e]),t.current?Dh(e,t.current):Na}function lre(e){O.useEffect(()=>{if(!Ey)return;const n=e.map(t=>{let{sensor:i}=t;return i.setup==null?void 0:i.setup()});return()=>{for(const t of n)t==null||t()}},e.map(n=>{let{sensor:t}=n;return t}))}function ure(e,n){return O.useMemo(()=>e.reduce((t,i)=>{let{eventName:r,handler:a}=i;return t[r]=o=>{a(o,n)},t},{}),[e,n])}function IB(e){return O.useMemo(()=>e?Pie(e):null,[e])}const MM=[];function fre(e,n){n===void 0&&(n=Ec);const[t]=e,i=IB(t?rr(t):null),[r,a]=O.useState(MM);function o(){a(()=>e.length?e.map(f=>PB(f)?i:new EC(n(f),f)):MM)}const l=Dy({callback:o});return Pa(()=>{l==null||l.disconnect(),o(),e.forEach(f=>l==null?void 0:l.observe(f))},[e]),r}function BB(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return Nm(n)?n:e}function cre(e){let{measure:n}=e;const[t,i]=O.useState(null),r=O.useCallback(c=>{for(const{target:h}of c)if(Nm(h)){i(d=>{const p=n(h);return d?{...d,width:p.width,height:p.height}:p});break}},[n]),a=Dy({callback:r}),o=O.useCallback(c=>{const h=BB(c);a==null||a.disconnect(),h&&(a==null||a.observe(h)),i(h?n(h):null)},[n,a]),[l,f]=gg(o);return O.useMemo(()=>({nodeRef:l,rect:t,setRef:f}),[t,l,f])}const dre=[{sensor:jC,options:{}},{sensor:TC,options:{}}],hre={current:{}},Jv={draggable:{measure:_M},droppable:{measure:_M,strategy:Rh.WhileDragging,frequency:vS.Optimized},dragOverlay:{measure:Ec}};class dh extends Map{get(n){var t;return n!=null&&(t=super.get(n))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:t}=n;return!t})}getNodeFor(n){var t,i;return(t=(i=this.get(n))==null?void 0:i.node.current)!=null?t:void 0}}const mre={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new dh,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:wg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Jv,measureDroppableContainers:wg,windowRect:null,measuringScheduled:!1},FB={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:wg,draggableNodes:new Map,over:null,measureDroppableContainers:wg},Lm=O.createContext(FB),qB=O.createContext(mre);function pre(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new dh}}}function vre(e,n){switch(n.type){case vi.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case vi.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}};case vi.DragEnd:case vi.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case vi.RegisterDroppable:{const{element:t}=n,{id:i}=t,r=new dh(e.droppable.containers);return r.set(i,t),{...e,droppable:{...e.droppable,containers:r}}}case vi.SetDroppableDisabled:{const{id:t,key:i,disabled:r}=n,a=e.droppable.containers.get(t);if(!a||i!==a.key)return e;const o=new dh(e.droppable.containers);return o.set(t,{...a,disabled:r}),{...e,droppable:{...e.droppable,containers:o}}}case vi.UnregisterDroppable:{const{id:t,key:i}=n,r=e.droppable.containers.get(t);if(!r||i!==r.key)return e;const a=new dh(e.droppable.containers);return a.delete(t),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function gre(e){let{disabled:n}=e;const{active:t,activatorEvent:i,draggableNodes:r}=O.useContext(Lm),a=yg(i),o=yg(t==null?void 0:t.id);return O.useEffect(()=>{if(!n&&!i&&a&&o!=null){if(!My(a)||document.activeElement===a.target)return;const l=r.get(o);if(!l)return;const{activatorNode:f,node:c}=l;if(!f.current&&!c.current)return;requestAnimationFrame(()=>{for(const h of[f.current,c.current]){if(!h)continue;const d=die(h);if(d){d.focus();break}}})}},[i,n,r,o,a]),null}function HB(e,n){let{transform:t,...i}=n;return e!=null&&e.length?e.reduce((r,a)=>a({transform:r,...i}),t):t}function yre(e){return O.useMemo(()=>({draggable:{...Jv.draggable,...e==null?void 0:e.draggable},droppable:{...Jv.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Jv.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function bre(e){let{activeNode:n,measure:t,initialRect:i,config:r=!0}=e;const a=O.useRef(!1),{x:o,y:l}=typeof r=="boolean"?{x:r,y:r}:r;Pa(()=>{if(!o&&!l||!n){a.current=!1;return}if(a.current||!i)return;const c=n==null?void 0:n.node.current;if(!c||c.isConnected===!1)return;const h=t(c),d=TB(h,i);if(o||(d.x=0),l||(d.y=0),a.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const p=jB(c);p&&p.scrollBy({top:d.y,left:d.x})}},[n,o,l,i,t])}const Ry=O.createContext({...Na,scaleX:1,scaleY:1});var Fs;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Fs||(Fs={}));const wre=O.memo(function(n){var t,i,r,a;let{id:o,accessibility:l,autoScroll:f=!0,children:c,sensors:h=dre,collisionDetection:d=EB,measuring:p,modifiers:v,...y}=n;const b=O.useReducer(vre,void 0,pre),[w,_]=b,[S,C]=yie(),[T,A]=O.useState(Fs.Uninitialized),M=T===Fs.Initialized,{draggable:{active:j,nodes:N,translate:F},droppable:{containers:R}}=w,L=j!=null?N.get(j):null,B=O.useRef({initial:null,translated:null}),G=O.useMemo(()=>{var mn;return j!=null?{id:j,data:(mn=L==null?void 0:L.data)!=null?mn:hre,rect:B}:null},[j,L]),H=O.useRef(null),[U,P]=O.useState(null),[z,q]=O.useState(null),Y=jh(y,Object.values(y)),D=zm("DndDescribedBy",o),V=O.useMemo(()=>R.getEnabled(),[R]),W=yre(p),{droppableRects:$,measureDroppableContainers:X,measuringScheduled:ee}=nre(V,{dragging:M,dependencies:[F.x,F.y],config:W.droppable}),oe=Jie(N,j),ue=O.useMemo(()=>z?bg(z):null,[z]),ye=Tn(),ae=tre(oe,W.draggable.measure);bre({activeNode:j!=null?N.get(j):null,config:ye.layoutShiftCompensation,initialRect:ae,measure:W.draggable.measure});const le=OM(oe,W.draggable.measure,ae),Se=OM(oe?oe.parentElement:null),ne=O.useRef({activatorEvent:null,active:null,activeNode:oe,collisionRect:null,collisions:null,droppableRects:$,draggableNodes:N,draggingNode:null,draggingNodeRect:null,droppableContainers:R,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),$e=R.getNodeFor((t=ne.current.over)==null?void 0:t.id),ve=cre({measure:W.dragOverlay.measure}),xe=(i=ve.nodeRef.current)!=null?i:oe,De=M?(r=ve.rect)!=null?r:le:null,we=!!(ve.nodeRef.current&&ve.rect),re=are(we?null:le),ke=IB(xe?rr(xe):null),Ie=ore(M?$e??oe:null),qe=fre(Ie),Ue=HB(v,{transform:{x:F.x-re.x,y:F.y-re.y,scaleX:1,scaleY:1},activatorEvent:z,active:G,activeNodeRect:le,containerNodeRect:Se,draggingNodeRect:De,over:ne.current.over,overlayNodeRect:ve.rect,scrollableAncestors:Ie,scrollableAncestorRects:qe,windowRect:ke}),Ve=ue?Tf(ue,F):null,me=sre(Ie),Ge=TM(me),te=TM(me,[le]),pe=Tf(Ue,Ge),He=De?jie(De,Ue):null,Ye=G&&He?d({active:G,collisionRect:He,droppableRects:$,droppableContainers:V,pointerCoordinates:Ve}):null,Ce=AB(Ye,"id"),[Qe,ln]=O.useState(null),En=we?Ue:Tf(Ue,te),hn=Tie(En,(a=Qe==null?void 0:Qe.rect)!=null?a:null,le),rn=O.useRef(null),Je=O.useCallback((mn,bn)=>{let{sensor:ot,options:$t}=bn;if(H.current==null)return;const Ne=N.get(H.current);if(!Ne)return;const Be=mn.nativeEvent,An=new ot({active:H.current,activeNode:Ne,event:Be,options:$t,context:ne,onAbort(Sn){if(!N.get(Sn))return;const{onDragAbort:Xe}=Y.current,en={id:Sn};Xe==null||Xe(en),S({type:"onDragAbort",event:en})},onPending(Sn,Ke,Xe,en){if(!N.get(Sn))return;const{onDragPending:Ln}=Y.current,bt={id:Sn,constraint:Ke,initialCoordinates:Xe,offset:en};Ln==null||Ln(bt),S({type:"onDragPending",event:bt})},onStart(Sn){const Ke=H.current;if(Ke==null)return;const Xe=N.get(Ke);if(!Xe)return;const{onDragStart:en}=Y.current,$n={activatorEvent:Be,active:{id:Ke,data:Xe.data,rect:B}};Vs.unstable_batchedUpdates(()=>{en==null||en($n),A(Fs.Initializing),_({type:vi.DragStart,initialCoordinates:Sn,active:Ke}),S({type:"onDragStart",event:$n}),P(rn.current),q(Be)})},onMove(Sn){_({type:vi.DragMove,coordinates:Sn})},onEnd:Qn(vi.DragEnd),onCancel:Qn(vi.DragCancel)});rn.current=An;function Qn(Sn){return async function(){const{active:Xe,collisions:en,over:$n,scrollAdjustedTranslate:Ln}=ne.current;let bt=null;if(Xe&&Ln){const{cancelDrop:_n}=Y.current;bt={activatorEvent:Be,active:Xe,collisions:en,delta:Ln,over:$n},Sn===vi.DragEnd&&typeof _n=="function"&&await Promise.resolve(_n(bt))&&(Sn=vi.DragCancel)}H.current=null,Vs.unstable_batchedUpdates(()=>{_({type:Sn}),A(Fs.Uninitialized),ln(null),P(null),q(null),rn.current=null;const _n=Sn===vi.DragEnd?"onDragEnd":"onDragCancel";if(bt){const kn=Y.current[_n];kn==null||kn(bt),S({type:_n,event:bt})}})}}},[N]),zn=O.useCallback((mn,bn)=>(ot,$t)=>{const Ne=ot.nativeEvent,Be=N.get($t);if(H.current!==null||!Be||Ne.dndKit||Ne.defaultPrevented)return;const An={active:Be};mn(ot,bn.options,An)===!0&&(Ne.dndKit={capturedBy:bn.sensor},H.current=$t,Je(ot,bn))},[N,Je]),un=ere(h,zn);lre(h),Pa(()=>{le&&T===Fs.Initializing&&A(Fs.Initialized)},[le,T]),O.useEffect(()=>{const{onDragMove:mn}=Y.current,{active:bn,activatorEvent:ot,collisions:$t,over:Ne}=ne.current;if(!bn||!ot)return;const Be={active:bn,activatorEvent:ot,collisions:$t,delta:{x:pe.x,y:pe.y},over:Ne};Vs.unstable_batchedUpdates(()=>{mn==null||mn(Be),S({type:"onDragMove",event:Be})})},[pe.x,pe.y]),O.useEffect(()=>{const{active:mn,activatorEvent:bn,collisions:ot,droppableContainers:$t,scrollAdjustedTranslate:Ne}=ne.current;if(!mn||H.current==null||!bn||!Ne)return;const{onDragOver:Be}=Y.current,An=$t.get(Ce),Qn=An&&An.rect.current?{id:An.id,rect:An.rect.current,data:An.data,disabled:An.disabled}:null,Sn={active:mn,activatorEvent:bn,collisions:ot,delta:{x:Ne.x,y:Ne.y},over:Qn};Vs.unstable_batchedUpdates(()=>{ln(Qn),Be==null||Be(Sn),S({type:"onDragOver",event:Sn})})},[Ce]),Pa(()=>{ne.current={activatorEvent:z,active:G,activeNode:oe,collisionRect:He,collisions:Ye,droppableRects:$,draggableNodes:N,draggingNode:xe,draggingNodeRect:De,droppableContainers:R,over:Qe,scrollableAncestors:Ie,scrollAdjustedTranslate:pe},B.current={initial:De,translated:He}},[G,oe,Ye,He,N,xe,De,$,R,Qe,Ie,pe]),Xie({...ye,delta:F,draggingRect:He,pointerCoordinates:Ve,scrollableAncestors:Ie,scrollableAncestorRects:qe});const yt=O.useMemo(()=>({active:G,activeNode:oe,activeNodeRect:le,activatorEvent:z,collisions:Ye,containerNodeRect:Se,dragOverlay:ve,draggableNodes:N,droppableContainers:R,droppableRects:$,over:Qe,measureDroppableContainers:X,scrollableAncestors:Ie,scrollableAncestorRects:qe,measuringConfiguration:W,measuringScheduled:ee,windowRect:ke}),[G,oe,le,z,Ye,Se,ve,N,R,$,Qe,X,Ie,qe,W,ee,ke]),Ct=O.useMemo(()=>({activatorEvent:z,activators:un,active:G,activeNodeRect:le,ariaDescribedById:{draggable:D},dispatch:_,draggableNodes:N,over:Qe,measureDroppableContainers:X}),[z,un,G,le,_,D,N,Qe,X]);return Z.createElement(CB.Provider,{value:C},Z.createElement(Lm.Provider,{value:Ct},Z.createElement(qB.Provider,{value:yt},Z.createElement(Ry.Provider,{value:hn},c)),Z.createElement(gre,{disabled:(l==null?void 0:l.restoreFocus)===!1})),Z.createElement(kie,{...l,hiddenTextDescribedById:D}));function Tn(){const mn=(U==null?void 0:U.autoScrollEnabled)===!1,bn=typeof f=="object"?f.enabled===!1:f===!1,ot=M&&!mn&&!bn;return typeof f=="object"?{...f,enabled:ot}:{enabled:ot}}}),kre=O.createContext(null),jM="button",_re="Draggable";function xre(e){let{id:n,data:t,disabled:i=!1,attributes:r}=e;const a=zm(_re),{activators:o,activatorEvent:l,active:f,activeNodeRect:c,ariaDescribedById:h,draggableNodes:d,over:p}=O.useContext(Lm),{role:v=jM,roleDescription:y="draggable",tabIndex:b=0}=r??{},w=(f==null?void 0:f.id)===n,_=O.useContext(w?Ry:kre),[S,C]=gg(),[T,A]=gg(),M=ure(o,n),j=jh(t);Pa(()=>(d.set(n,{id:n,key:a,node:S,activatorNode:T,data:j}),()=>{const F=d.get(n);F&&F.key===a&&d.delete(n)}),[d,n]);const N=O.useMemo(()=>({role:v,tabIndex:b,"aria-disabled":i,"aria-pressed":w&&v===jM?!0:void 0,"aria-roledescription":y,"aria-describedby":h.draggable}),[i,v,b,w,y,h.draggable]);return{active:f,activatorEvent:l,activeNodeRect:c,attributes:N,isDragging:w,listeners:i?void 0:M,node:S,over:p,setNodeRef:C,setActivatorNodeRef:A,transform:_}}function UB(){return O.useContext(qB)}const Sre="Droppable",Cre={timeout:25};function Are(e){let{data:n,disabled:t=!1,id:i,resizeObserverConfig:r}=e;const a=zm(Sre),{active:o,dispatch:l,over:f,measureDroppableContainers:c}=O.useContext(Lm),h=O.useRef({disabled:t}),d=O.useRef(!1),p=O.useRef(null),v=O.useRef(null),{disabled:y,updateMeasurementsFor:b,timeout:w}={...Cre,...r},_=jh(b??i),S=O.useCallback(()=>{if(!d.current){d.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{c(Array.isArray(_.current)?_.current:[_.current]),v.current=null},w)},[w]),C=Dy({callback:S,disabled:y||!o}),T=O.useCallback((N,F)=>{C&&(F&&(C.unobserve(F),d.current=!1),N&&C.observe(N))},[C]),[A,M]=gg(T),j=jh(n);return O.useEffect(()=>{!C||!A.current||(C.disconnect(),d.current=!1,C.observe(A.current))},[A,C]),O.useEffect(()=>(l({type:vi.RegisterDroppable,element:{id:i,key:a,disabled:t,node:A,rect:p,data:j}}),()=>l({type:vi.UnregisterDroppable,key:a,id:i})),[i]),O.useEffect(()=>{t!==h.current.disabled&&(l({type:vi.SetDroppableDisabled,id:i,key:a,disabled:t}),h.current.disabled=t)},[i,a,t,l]),{active:o,rect:p,isOver:(f==null?void 0:f.id)===i,node:A,over:f,setNodeRef:M}}function Ore(e){let{animation:n,children:t}=e;const[i,r]=O.useState(null),[a,o]=O.useState(null),l=yg(t);return!t&&!i&&l&&r(l),Pa(()=>{if(!a)return;const f=i==null?void 0:i.key,c=i==null?void 0:i.props.id;if(f==null||c==null){r(null);return}Promise.resolve(n(c,a)).then(()=>{r(null)})},[n,i,a]),Z.createElement(Z.Fragment,null,t,i?O.cloneElement(i,{ref:o}):null)}const Ere={x:0,y:0,scaleX:1,scaleY:1};function Tre(e){let{children:n}=e;return Z.createElement(Lm.Provider,{value:FB},Z.createElement(Ry.Provider,{value:Ere},n))}const Mre={position:"fixed",touchAction:"none"},jre=e=>My(e)?"transform 250ms ease":void 0,Dre=O.forwardRef((e,n)=>{let{as:t,activatorEvent:i,adjustScale:r,children:a,className:o,rect:l,style:f,transform:c,transition:h=jre}=e;if(!l)return null;const d=r?c:{...c,scaleX:1,scaleY:1},p={...Mre,width:l.width,height:l.height,top:l.top,left:l.left,transform:to.Transform.toString(d),transformOrigin:r&&i?xie(i,l):void 0,transition:typeof h=="function"?h(i):h,...f};return Z.createElement(t,{className:o,style:p,ref:n},a)}),Rre=e=>n=>{let{active:t,dragOverlay:i}=n;const r={},{styles:a,className:o}=e;if(a!=null&&a.active)for(const[l,f]of Object.entries(a.active))f!==void 0&&(r[l]=t.node.style.getPropertyValue(l),t.node.style.setProperty(l,f));if(a!=null&&a.dragOverlay)for(const[l,f]of Object.entries(a.dragOverlay))f!==void 0&&i.node.style.setProperty(l,f);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&i.node.classList.add(o.dragOverlay),function(){for(const[f,c]of Object.entries(r))t.node.style.setProperty(f,c);o!=null&&o.active&&t.node.classList.remove(o.active)}},Pre=e=>{let{transform:{initial:n,final:t}}=e;return[{transform:to.Transform.toString(n)},{transform:to.Transform.toString(t)}]},Nre={duration:250,easing:"ease",keyframes:Pre,sideEffects:Rre({styles:{active:{opacity:"0"}}})};function $re(e){let{config:n,draggableNodes:t,droppableContainers:i,measuringConfiguration:r}=e;return Ty((a,o)=>{if(n===null)return;const l=t.get(a);if(!l)return;const f=l.node.current;if(!f)return;const c=BB(o);if(!c)return;const{transform:h}=rr(o).getComputedStyle(o),d=MB(h);if(!d)return;const p=typeof n=="function"?n:zre(n);return zB(f,r.draggable.measure),p({active:{id:a,data:l.data,node:f,rect:r.draggable.measure(f)},draggableNodes:t,dragOverlay:{node:o,rect:r.dragOverlay.measure(c)},droppableContainers:i,measuringConfiguration:r,transform:d})})}function zre(e){const{duration:n,easing:t,sideEffects:i,keyframes:r}={...Nre,...e};return a=>{let{active:o,dragOverlay:l,transform:f,...c}=a;if(!n)return;const h={x:l.rect.left-o.rect.left,y:l.rect.top-o.rect.top},d={scaleX:f.scaleX!==1?o.rect.width*f.scaleX/l.rect.width:1,scaleY:f.scaleY!==1?o.rect.height*f.scaleY/l.rect.height:1},p={x:f.x-h.x,y:f.y-h.y,...d},v=r({...c,active:o,dragOverlay:l,transform:{initial:f,final:p}}),[y]=v,b=v[v.length-1];if(JSON.stringify(y)===JSON.stringify(b))return;const w=i==null?void 0:i({active:o,dragOverlay:l,...c}),_=l.node.animate(v,{duration:n,easing:t,fill:"forwards"});return new Promise(S=>{_.onfinish=()=>{w==null||w(),S()}})}}let DM=0;function Lre(e){return O.useMemo(()=>{if(e!=null)return DM++,DM},[e])}const Ire=Z.memo(e=>{let{adjustScale:n=!1,children:t,dropAnimation:i,style:r,transition:a,modifiers:o,wrapperElement:l="div",className:f,zIndex:c=999}=e;const{activatorEvent:h,active:d,activeNodeRect:p,containerNodeRect:v,draggableNodes:y,droppableContainers:b,dragOverlay:w,over:_,measuringConfiguration:S,scrollableAncestors:C,scrollableAncestorRects:T,windowRect:A}=UB(),M=O.useContext(Ry),j=Lre(d==null?void 0:d.id),N=HB(o,{activatorEvent:h,active:d,activeNodeRect:p,containerNodeRect:v,draggingNodeRect:w.rect,over:_,overlayNodeRect:w.rect,scrollableAncestors:C,scrollableAncestorRects:T,transform:M,windowRect:A}),F=DC(p),R=$re({config:i,draggableNodes:y,droppableContainers:b,measuringConfiguration:S}),L=F?w.setRef:void 0;return Z.createElement(Tre,null,Z.createElement(Ore,{animation:R},d&&j?Z.createElement(Dre,{key:j,id:d.id,ref:L,as:l,activatorEvent:h,adjustScale:n,className:f,transition:a,rect:F,style:{zIndex:c,...r},transform:N},t):null))});function _g(e,n,t){const i=e.slice();return i.splice(t<0?i.length+t:t,0,i.splice(n,1)[0]),i}function Bre(e,n){return e.reduce((t,i,r)=>{const a=n.get(i);return a&&(t[r]=a),t},Array(e.length))}function wv(e){return e!==null&&e>=0}function Fre(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let t=0;t {var n;let{rects:t,activeNodeRect:i,activeIndex:r,overIndex:a,index:o}=e;const l=(n=t[r])!=null?n:i;if(!l)return null;const f=Ure(t,o,r);if(o===r){const c=t[a];return c?{x:rr&&o<=a?{x:-l.width-f,y:0,...kv}:o =a?{x:l.width+f,y:0,...kv}:{x:0,y:0,...kv}};function Ure(e,n,t){const i=e[n],r=e[n-1],a=e[n+1];return!i||!r&&!a?0:t {let{rects:n,activeIndex:t,overIndex:i,index:r}=e;const a=_g(n,i,t),o=n[r],l=a[r];return!l||!o?null:{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}},_v={scaleX:1,scaleY:1},WB=e=>{var n;let{activeIndex:t,activeNodeRect:i,index:r,rects:a,overIndex:o}=e;const l=(n=a[t])!=null?n:i;if(!l)return null;if(r===t){const c=a[o];return c?{x:0,y:t t&&r<=o?{x:0,y:-l.height-f,..._v}:r =o?{x:0,y:l.height+f,..._v}:{x:0,y:0,..._v}};function Vre(e,n,t){const i=e[n],r=e[n-1],a=e[n+1];return i?t i.map(M=>typeof M=="object"&&"id"in M?M.id:M),[i]),y=o!=null,b=o?v.indexOf(o.id):-1,w=c?v.indexOf(c.id):-1,_=O.useRef(v),S=!Fre(v,_.current),C=w!==-1&&b===-1||S,T=qre(a);Pa(()=>{S&&y&&h(v)},[S,v,y,h]),O.useEffect(()=>{_.current=v},[v]);const A=O.useMemo(()=>({activeIndex:b,containerId:d,disabled:T,disableTransforms:C,items:v,overIndex:w,useDragOverlay:p,sortedRects:Bre(v,f),strategy:r}),[b,d,T.draggable,T.droppable,C,v,w,f,p,r]);return Z.createElement(YB.Provider,{value:A},n)}const Wre=e=>{let{id:n,items:t,activeIndex:i,overIndex:r}=e;return _g(t,i,r).indexOf(n)},Gre=e=>{let{containerId:n,isSorting:t,wasDragging:i,index:r,items:a,newIndex:o,previousItems:l,previousContainerId:f,transition:c}=e;return!c||!i||l!==a&&r===o?!1:t?!0:o!==r&&n===f},Yre={duration:200,easing:"ease"},KB="transform",Kre=to.Transition.toString({property:KB,duration:0,easing:"linear"}),Xre={roleDescription:"sortable"};function Zre(e){let{disabled:n,index:t,node:i,rect:r}=e;const[a,o]=O.useState(null),l=O.useRef(t);return Pa(()=>{if(!n&&t!==l.current&&i.current){const f=r.current;if(f){const c=Ec(i.current,{ignoreTransform:!0}),h={x:f.left-c.left,y:f.top-c.top,scaleX:f.width/c.width,scaleY:f.height/c.height};(h.x||h.y)&&o(h)}}t!==l.current&&(l.current=t)},[n,t,i,r]),O.useEffect(()=>{a&&o(null)},[a]),a}function XB(e){let{animateLayoutChanges:n=Gre,attributes:t,disabled:i,data:r,getNewIndex:a=Wre,id:o,strategy:l,resizeObserverConfig:f,transition:c=Yre}=e;const{items:h,containerId:d,activeIndex:p,disabled:v,disableTransforms:y,sortedRects:b,overIndex:w,useDragOverlay:_,strategy:S}=O.useContext(YB),C=Qre(i,v),T=h.indexOf(o),A=O.useMemo(()=>({sortable:{containerId:d,index:T,items:h},...r}),[d,r,T,h]),M=O.useMemo(()=>h.slice(h.indexOf(o)),[h,o]),{rect:j,node:N,isOver:F,setNodeRef:R}=Are({id:o,data:A,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:M,...f}}),{active:L,activatorEvent:B,activeNodeRect:G,attributes:H,setNodeRef:U,listeners:P,isDragging:z,over:q,setActivatorNodeRef:Y,transform:D}=xre({id:o,data:A,attributes:{...Xre,...t},disabled:C.draggable}),V=lie(R,U),W=!!L,$=W&&!y&&wv(p)&&wv(w),X=!_&&z,ee=X&&$?D:null,ue=$?ee??(l??S)({rects:b,activeNodeRect:G,activeIndex:p,overIndex:w,index:T}):null,ye=wv(p)&&wv(w)?a({id:o,items:h,activeIndex:p,overIndex:w}):T,ae=L==null?void 0:L.id,le=O.useRef({activeId:ae,items:h,newIndex:ye,containerId:d}),Se=h!==le.current.items,ne=n({active:L,containerId:d,isDragging:z,isSorting:W,id:o,index:T,items:h,newIndex:le.current.newIndex,previousItems:le.current.items,previousContainerId:le.current.containerId,transition:c,wasDragging:le.current.activeId!=null}),$e=Zre({disabled:!ne,index:T,node:N,rect:j});return O.useEffect(()=>{W&&le.current.newIndex!==ye&&(le.current.newIndex=ye),d!==le.current.containerId&&(le.current.containerId=d),h!==le.current.items&&(le.current.items=h)},[W,ye,d,h]),O.useEffect(()=>{if(ae===le.current.activeId)return;if(ae!=null&&le.current.activeId==null){le.current.activeId=ae;return}const xe=setTimeout(()=>{le.current.activeId=ae},50);return()=>clearTimeout(xe)},[ae]),{active:L,activeIndex:p,attributes:H,data:A,rect:j,index:T,newIndex:ye,items:h,isOver:F,isSorting:W,isDragging:z,listeners:P,node:N,overIndex:w,over:q,setNodeRef:V,setActivatorNodeRef:Y,setDroppableNodeRef:R,setDraggableNodeRef:U,transform:$e??ue,transition:ve()};function ve(){if($e||Se&&le.current.newIndex===T)return Kre;if(!(X&&!My(B)||!c)&&(W||ne))return to.Transition.toString({...c,property:KB})}}function Qre(e,n){var t,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(t=e==null?void 0:e.draggable)!=null?t:n.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:n.droppable}}function xg(e){if(!e)return!1;const n=e.data.current;return!!(n&&"sortable"in n&&typeof n.sortable=="object"&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const Jre=[Xn.Down,Xn.Right,Xn.Up,Xn.Left],eae=(e,n)=>{let{context:{active:t,collisionRect:i,droppableRects:r,droppableContainers:a,over:o,scrollableAncestors:l}}=n;if(Jre.includes(e.code)){if(e.preventDefault(),!t||!i)return;const f=[];a.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const p=r.get(d.id);if(p)switch(e.code){case Xn.Down:i.top p.top&&f.push(d);break;case Xn.Left:i.left>p.left&&f.push(d);break;case Xn.Right:i.left 1&&(h=c[1].id),h!=null){const d=a.get(t.id),p=a.get(h),v=p?r.get(p.id):null,y=p==null?void 0:p.node.current;if(y&&v&&d&&p){const w=jy(y).some((M,j)=>l[j]!==M),_=ZB(d,p),S=nae(d,p),C=w||!_?{x:0,y:0}:{x:S?i.width-v.width:0,y:S?i.height-v.height:0},T={x:v.left,y:v.top};return C.x&&C.y?T:Dh(T,C)}}}};function ZB(e,n){return!xg(e)||!xg(n)?!1:e.data.current.sortable.containerId===n.data.current.sortable.containerId}function nae(e,n){return!xg(e)||!xg(n)||!ZB(e,n)?!1:e.data.current.sortable.index =U?H:""+Array(U+1-z.length).join(P)+H},T={s:C,z:function(H){var U=-H.utcOffset(),P=Math.abs(U),z=Math.floor(P/60),q=P%60;return(U<=0?"+":"-")+C(z,2,"0")+":"+C(q,2,"0")},m:function H(U,P){if(U.date() 1)return H(D[0])}else{var V=U.name;M[V]=U,q=V}return!z&&q&&(A=q),q||!z&&A},R=function(H,U){if(N(H))return H.clone();var P=typeof U=="object"?U:{};return P.date=H,P.args=arguments,new B(P)},L=T;L.l=F,L.i=N,L.w=function(H,U){return R(H,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var B=(function(){function H(P){this.$L=F(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[j]=!0}var U=H.prototype;return U.parse=function(P){this.$d=(function(z){var q=z.date,Y=z.utc;if(q===null)return new Date(NaN);if(L.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var D=q.match(w);if(D){var V=D[2]-1||0,W=(D[7]||"0").substring(0,3);return Y?new Date(Date.UTC(D[1],V,D[3]||1,D[4]||0,D[5]||0,D[6]||0,W)):new Date(D[1],V,D[3]||1,D[4]||0,D[5]||0,D[6]||0,W)}}return new Date(q)})(P),this.init()},U.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},U.$utils=function(){return L},U.isValid=function(){return this.$d.toString()!==b},U.isSame=function(P,z){var q=R(P);return this.startOf(z)<=q&&q<=this.endOf(z)},U.isAfter=function(P,z){return R(P) ze(o).locale(t).format(i);return e==="default"?n===null?"":a(n):e==="multiple"?n.map(a).join(", "):e==="range"&&Array.isArray(n)?n[0]&&n[1]?`${a(n[0])} ${r} ${a(n[1])}`:n[0]?`${a(n[0])} ${r} `:"":""}function oae({formatter:e,...n}){return(e||aae)(n)}function sae({direction:e,levelIndex:n,rowIndex:t,cellIndex:i,size:r}){switch(e){case"up":return n===0&&t===0?null:t===0?{levelIndex:n-1,rowIndex:i<=r[n-1][r[n-1].length-1]-1?r[n-1].length-1:r[n-1].length-2,cellIndex:i}:{levelIndex:n,rowIndex:t-1,cellIndex:i};case"down":return t===r[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:i}:t===r[n].length-2&&i>=r[n][r[n].length-1]?{levelIndex:n+1,rowIndex:0,cellIndex:i}:{levelIndex:n,rowIndex:t+1,cellIndex:i};case"left":return n===0&&t===0&&i===0?null:t===0&&i===0?{levelIndex:n-1,rowIndex:r[n-1].length-1,cellIndex:r[n-1][r[n-1].length-1]-1}:i===0?{levelIndex:n,rowIndex:t-1,cellIndex:r[n][t-1]-1}:{levelIndex:n,rowIndex:t,cellIndex:i-1};case"right":return t===r[n].length-1&&i===r[n][t]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:i===r[n][t]-1?{levelIndex:n,rowIndex:t+1,cellIndex:0}:{levelIndex:n,rowIndex:t,cellIndex:i+1};default:return{levelIndex:n,rowIndex:t,cellIndex:i}}}function QB({controlsRef:e,direction:n,levelIndex:t,rowIndex:i,cellIndex:r,size:a}){var f,c,h;const o=sae({direction:n,size:a,rowIndex:i,cellIndex:r,levelIndex:t});if(!o)return;const l=(h=(c=(f=e.current)==null?void 0:f[o.levelIndex])==null?void 0:c[o.rowIndex])==null?void 0:h[o.cellIndex];l&&(l.disabled||l.getAttribute("data-hidden")||l.getAttribute("data-outside")?QB({controlsRef:e,direction:n,levelIndex:o.levelIndex,cellIndex:o.cellIndex,rowIndex:o.rowIndex,size:a}):l.focus())}function lae(e){switch(e){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function uae(e){var n;return(n=e.current)==null?void 0:n.map(t=>t.map(i=>i.length))}function RC({controlsRef:e,levelIndex:n,rowIndex:t,cellIndex:i,event:r}){const a=lae(r.key);a&&(r.preventDefault(),QB({controlsRef:e,direction:a,levelIndex:n,rowIndex:t,cellIndex:i,size:uae(e)}))}function Vi(e){return e==null||e===""?e:ze(e).format("YYYY-MM-DD")}function JB(e){return e==null||e===""?e:ze(e).format("YYYY-MM-DD HH:mm:ss")}function yS({minDate:e,maxDate:n}){const t=ze();return!e&&!n?Vi(t):e&&ze(t).isBefore(e)?Vi(e):n&&ze(t).isAfter(n)?Vi(n):Vi(t)}const fae={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},cae=O.createContext(fae);function ol(){const e=O.use(cae),n=O.useCallback(a=>a||e.locale,[e.locale]),t=O.useCallback(a=>typeof a=="number"?a:e.firstDayOfWeek,[e.firstDayOfWeek]),i=O.useCallback(a=>Array.isArray(a)?a:e.weekendDays,[e.weekendDays]),r=O.useCallback(a=>typeof a=="string"?a:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:n,getFirstDayOfWeek:t,getWeekendDays:i,getLabelSeparator:r}}function dae({value:e,type:n,withTime:t}){const i=t?JB:Vi;if(n==="range"&&Array.isArray(e)){const r=i(e[0]),a=i(e[1]);return r?a?`${r} – ${a}`:`${r} –`:""}return n==="multiple"&&Array.isArray(e)?e.filter(Boolean).join(", "):!Array.isArray(e)&&e?i(e):""}function eF({value:e,type:n,name:t,form:i,withTime:r=!1}){return k.jsx("input",{type:"hidden",value:dae({value:e,type:n,withTime:r}),name:t,form:i})}eF.displayName="@mantine/dates/HiddenDatesInput";var nF={day:"m_396ce5cb"};const tF=(e,{size:n})=>({day:{"--day-size":On(n,"day-size")}}),Py=je(e=>{const n=be("Day",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,date:f,disabled:c,__staticSelector:h,weekend:d,outside:p,selected:v,renderDay:y,inRange:b,firstInRange:w,lastInRange:_,hidden:S,static:C,highlightToday:T,fullWidth:A,attributes:M,...j}=n;return k.jsx(Si,{...We({name:h||"Day",classes:nF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:M,vars:l,varsResolver:tF,rootSelector:"day"})("day",{style:S?{display:"none"}:void 0}),component:C?"div":"button",disabled:c,"data-today":ze(f).isSame(new Date,"day")||void 0,"data-hidden":S||void 0,"data-highlight-today":T||void 0,"data-disabled":c||void 0,"data-weekend":!c&&!p&&d||void 0,"data-outside":!c&&p||void 0,"data-selected":!c&&v||void 0,"data-in-range":b&&!c||void 0,"data-first-in-range":w&&!c||void 0,"data-last-in-range":_&&!c||void 0,"data-static":C||void 0,"data-full-width":A||void 0,unstyled:o,...j,children:(y==null?void 0:y(f))||ze(f).date()})});Py.classes=nF;Py.varsResolver=tF;Py.displayName="@mantine/dates/Day";function hae({locale:e,format:n="dd",firstDayOfWeek:t=1}){const i=ze().day(t),r=[];for(let a=0;a<7;a+=1)typeof n=="string"?r.push(ze(i).add(a,"days").locale(e).format(n)):r.push(n(ze(i).add(a,"days").format("YYYY-MM-DD")));return r}var iF={weekday:"m_18a3eca"};const rF=(e,{size:n})=>({weekdaysRow:{"--wr-fz":Zt(n),"--wr-spacing":Ft(n)}}),Ny=je(e=>{const n=be("WeekdaysRow",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,locale:f,firstDayOfWeek:c,weekdayFormat:h,cellComponent:d="th",__staticSelector:p,withWeekNumbers:v,attributes:y,...b}=n,w=We({name:p||"WeekdaysRow",classes:iF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:y,vars:l,varsResolver:rF,rootSelector:"weekdaysRow"}),_=ol(),S=hae({locale:_.getLocale(f),format:h,firstDayOfWeek:_.getFirstDayOfWeek(c)}).map((C,T)=>k.jsx(d,{...w("weekday"),children:C},T));return k.jsxs(_e,{component:"tr",...w("weekdaysRow"),...b,children:[v&&k.jsx(d,{...w("weekday"),children:"#"}),S]})});Ny.classes=iF;Ny.varsResolver=rF;Ny.displayName="@mantine/dates/WeekdaysRow";function mae(e,n=1){let t=ze(e);if(!t.isValid())return t;const i=n===0?6:n-1;for(;t.day()!==i;)t=t.add(1,"day");return t.format("YYYY-MM-DD")}function pae(e,n=1){let t=ze(e);for(;t.day()!==n;)t=t.subtract(1,"day");return t.format("YYYY-MM-DD")}function vae({month:e,firstDayOfWeek:n=1,consistentWeeks:t}){const i=ze(ze(e).subtract(ze(e).date()-1,"day").format("YYYY-M-D")),r=i.format("YYYY-MM-DD"),a=mae(i.add(+i.daysInMonth()-1,"day").format("YYYY-MM-DD"),n),o=[];let l=ze(pae(r,n));for(;ze(l).isBefore(a,"day");){const f=[];for(let c=0;c<7;c+=1)f.push(l.format("YYYY-MM-DD")),l=l.add(1,"day");o.push(f)}if(t&&o.length<6){const f=o[o.length-1],c=f[f.length-1];let h=ze(c).add(1,"day");for(;o.length<6;){const d=[];for(let p=0;p<7;p+=1)d.push(h.format("YYYY-MM-DD")),h=h.add(1,"day");o.push(d)}}return o}function PC(e,n){return ze(e).format("YYYY-MM")===ze(n).format("YYYY-MM")}function aF(e,n){return n?ze(e).isAfter(ze(n).subtract(1,"day"),"day"):!0}function oF(e,n){return n?ze(e).isBefore(ze(n).add(1,"day"),"day"):!0}function gae({dates:e,minDate:n,maxDate:t,getDayProps:i,excludeDate:r,hideOutsideDates:a,month:o}){const l=e.flat().filter(h=>{var d;return oF(h,t)&&aF(h,n)&&!(r!=null&&r(h))&&!((d=i==null?void 0:i(h))!=null&&d.disabled)&&(!a||PC(h,o))}),f=l.find(h=>{var d;return(d=i==null?void 0:i(h))==null?void 0:d.selected});if(f)return f;const c=l.find(h=>ze().isSame(h,"date"));return c||l[0]}var ng={exports:{}},yae=ng.exports,PM;function bae(){return PM||(PM=1,(function(e,n){(function(t,i){e.exports=i()})(yae,(function(){var t="day";return function(i,r,a){var o=function(c){return c.add(4-c.isoWeekday(),t)},l=r.prototype;l.isoWeekYear=function(){return o(this).year()},l.isoWeek=function(c){if(!this.$utils().u(c))return this.add(7*(c-this.isoWeek()),t);var h,d,p,v,y=o(this),b=(h=this.isoWeekYear(),d=this.$u,p=(d?a.utc:a)().year(h).startOf("year"),v=4-p.isoWeekday(),p.isoWeekday()>4&&(v+=7),p.add(v,t));return y.diff(b,"week")+1},l.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var f=l.startOf;l.startOf=function(c,h){var d=this.$utils(),p=!!d.u(h)||h;return d.p(c)==="isoweek"?p?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):f.bind(this)(c,h)}}}))})(ng)),ng.exports}var wae=bae();const kae=at(wae);ze.extend(kae);function _ae(e){return ze(e.find(n=>ze(n).day()===1)).isoWeek()}var sF={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const xae={withCellSpacing:!0},lF=(e,{size:n})=>({weekNumber:{"--wn-fz":Zt(n),"--wn-size":On(n,"wn-size")}}),Im=je(e=>{const n=be("Month",xae,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:f,locale:c,firstDayOfWeek:h,weekdayFormat:d,month:p,weekendDays:v,getDayProps:y,excludeDate:b,minDate:w,maxDate:_,renderDay:S,hideOutsideDates:C,hideWeekdays:T,getDayAriaLabel:A,static:M,__getDayRef:j,__onDayKeyDown:N,__onDayClick:F,__onDayMouseEnter:R,__preventFocus:L,__stopPropagation:B,withCellSpacing:G,size:H,highlightToday:U,withWeekNumbers:P,fullWidth:z,attributes:q,...Y}=n,D=We({name:f||"Month",classes:sF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:q,vars:l,varsResolver:lF,rootSelector:"month"}),V=ol(),W=vae({month:p,firstDayOfWeek:V.getFirstDayOfWeek(h),consistentWeeks:V.consistentWeeks}),$=gae({dates:W,minDate:Vi(w),maxDate:Vi(_),getDayProps:y,excludeDate:b,hideOutsideDates:C,month:p}),{resolvedClassNames:X,resolvedStyles:ee}=Ni({classNames:t,styles:a,props:n}),oe=W.map((ue,ye)=>{const ae=ue.map((le,Se)=>{const ne=!PC(le,p),$e=(A==null?void 0:A(le))||ze(le).locale(c||V.locale).format("D MMMM YYYY"),ve=y==null?void 0:y(le),xe=ze(le).isSame($,"date");return k.jsx("td",{...D("monthCell"),"data-with-spacing":G||void 0,children:k.jsx(Py,{__staticSelector:f||"Month",classNames:X,styles:ee,attributes:q,unstyled:o,"data-mantine-stop-propagation":B||void 0,highlightToday:U,renderDay:S,date:le,size:H,weekend:V.getWeekendDays(v).includes(ze(le).get("day")),outside:ne,hidden:C?ne:!1,"aria-label":$e,static:M,fullWidth:z,disabled:(b==null?void 0:b(le))||!oF(le,Vi(_))||!aF(le,Vi(w)),ref:De=>{De&&(j==null||j(ye,Se,De))},...ve,onKeyDown:De=>{var we;(we=ve==null?void 0:ve.onKeyDown)==null||we.call(ve,De),N==null||N(De,{rowIndex:ye,cellIndex:Se,date:le})},onMouseEnter:De=>{var we;(we=ve==null?void 0:ve.onMouseEnter)==null||we.call(ve,De),R==null||R(De,le)},onClick:De=>{var we;(we=ve==null?void 0:ve.onClick)==null||we.call(ve,De),F==null||F(De,le)},onMouseDown:De=>{var we;(we=ve==null?void 0:ve.onMouseDown)==null||we.call(ve,De),L&&De.preventDefault()},tabIndex:L||!xe?-1:0})},le.toString())});return k.jsxs("tr",{...D("monthRow"),children:[P&&k.jsx("td",{...D("weekNumber"),children:_ae(ue)}),ae]},ye)});return k.jsxs(_e,{component:"table",...D("month"),size:H,"data-full-width":z||void 0,...Y,children:[!T&&k.jsx("thead",{...D("monthThead"),children:k.jsx(Ny,{__staticSelector:f||"Month",locale:c,firstDayOfWeek:h,weekdayFormat:d,withWeekNumbers:P,size:H,classNames:X,styles:ee,unstyled:o,attributes:q})}),k.jsx("tbody",{...D("monthTbody"),children:oe})]})});Im.classes=sF;Im.varsResolver=lF;Im.displayName="@mantine/dates/Month";var uF={pickerControl:"m_dc6a3c71"};const fF=(e,{size:n})=>({pickerControl:{"--dpc-fz":Zt(n),"--dpc-size":On(n,"dpc-size")}}),Bm=je(e=>{const n=be("PickerControl",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,firstInRange:f,lastInRange:c,inRange:h,__staticSelector:d,selected:p,disabled:v,fullWidth:y,attributes:b,...w}=n;return k.jsx(Si,{...We({name:d||"PickerControl",classes:uF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:b,vars:l,varsResolver:fF,rootSelector:"pickerControl"})("pickerControl"),unstyled:o,"data-picker-control":!0,"data-full-width":y||void 0,"data-selected":p&&!v||void 0,"data-disabled":v||void 0,"data-in-range":h&&!v&&!p||void 0,"data-first-in-range":f&&!v||void 0,"data-last-in-range":c&&!v||void 0,disabled:v,...w})});Bm.classes=uF;Bm.varsResolver=fF;Bm.displayName="@mantine/dates/PickerControl";function cF({year:e,minDate:n,maxDate:t}){return!n&&!t?!1:!!(n&&ze(e).isBefore(n,"year")||t&&ze(e).isAfter(t,"year"))}function Sae({years:e,minDate:n,maxDate:t,getYearControlProps:i}){const r=e.flat().filter(l=>{var f;return!cF({year:l,minDate:n,maxDate:t})&&!((f=i==null?void 0:i(l))!=null&&f.disabled)}),a=r.find(l=>{var f;return(f=i==null?void 0:i(l))==null?void 0:f.selected});if(a)return a;const o=r.find(l=>ze().isSame(l,"year"));return o||r[0]}function dF(e){const n=ze(e).year(),t=n-n%10;let i=0;const r=[[],[],[],[]];for(let a=0;a<4;a+=1){const o=a===3?1:3;for(let l=0;l {const n=be("YearsList",Cae,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,decade:f,yearsListFormat:c,locale:h,minDate:d,maxDate:p,getYearControlProps:v,__staticSelector:y,__getControlRef:b,__onControlKeyDown:w,__onControlClick:_,__onControlMouseEnter:S,__preventFocus:C,__stopPropagation:T,withCellSpacing:A,fullWidth:M,size:j,attributes:N,...F}=n,R=We({name:y||"YearsList",classes:hF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:N,vars:l,rootSelector:"yearsList"}),L=ol(),B=dF(f),G=Sae({years:B,minDate:d,maxDate:p,getYearControlProps:v}),H=B.map((U,P)=>{const z=U.map((q,Y)=>{const D=v==null?void 0:v(q),V=ze(q).isSame(G,"year");return k.jsx("td",{...R("yearsListCell"),"data-with-spacing":A||void 0,children:k.jsx(Bm,{...R("yearsListControl"),size:j,unstyled:o,fullWidth:M,"data-mantine-stop-propagation":T||void 0,disabled:cF({year:q,minDate:d,maxDate:p}),ref:W=>{W&&(b==null||b(P,Y,W))},...D,onKeyDown:W=>{var $;($=D==null?void 0:D.onKeyDown)==null||$.call(D,W),w==null||w(W,{rowIndex:P,cellIndex:Y,date:q})},onClick:W=>{var $;($=D==null?void 0:D.onClick)==null||$.call(D,W),_==null||_(W,q)},onMouseEnter:W=>{var $;($=D==null?void 0:D.onMouseEnter)==null||$.call(D,W),S==null||S(W,q)},onMouseDown:W=>{var $;($=D==null?void 0:D.onMouseDown)==null||$.call(D,W),C&&W.preventDefault()},tabIndex:C||!V?-1:0,children:(D==null?void 0:D.children)??ze(q).locale(L.getLocale(h)).format(c)})},Y)});return k.jsx("tr",{...R("yearsListRow"),children:z},P)});return k.jsx(_e,{component:"table",size:j,...R("yearsList"),"data-full-width":M||void 0,...F,children:k.jsx("tbody",{children:H})})});$y.classes=hF;$y.displayName="@mantine/dates/YearsList";function mF({month:e,minDate:n,maxDate:t}){return!n&&!t?!1:!!(n&&ze(e).isBefore(n,"month")||t&&ze(e).isAfter(t,"month"))}function Aae({months:e,minDate:n,maxDate:t,getMonthControlProps:i}){const r=e.flat().filter(l=>{var f;return!mF({month:l,minDate:n,maxDate:t})&&!((f=i==null?void 0:i(l))!=null&&f.disabled)}),a=r.find(l=>{var f;return(f=i==null?void 0:i(l))==null?void 0:f.selected});if(a)return a;const o=r.find(l=>ze().isSame(l,"month"));return o||r[0]}function Oae(e){const n=ze(e).startOf("year").toDate(),t=[[],[],[],[]];let i=0;for(let r=0;r<4;r+=1)for(let a=0;a<3;a+=1)t[r].push(ze(n).add(i,"months").format("YYYY-MM-DD")),i+=1;return t}var pF={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const Eae={monthsListFormat:"MMM",withCellSpacing:!0},zy=je(e=>{const n=be("MonthsList",Eae,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:f,year:c,monthsListFormat:h,locale:d,minDate:p,maxDate:v,getMonthControlProps:y,__getControlRef:b,__onControlKeyDown:w,__onControlClick:_,__onControlMouseEnter:S,__preventFocus:C,__stopPropagation:T,withCellSpacing:A,fullWidth:M,size:j,attributes:N,...F}=n,R=We({name:f||"MonthsList",classes:pF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:N,vars:l,rootSelector:"monthsList"}),L=ol(),B=Oae(c),G=Aae({months:B,minDate:Vi(p),maxDate:Vi(v),getMonthControlProps:y}),H=B.map((U,P)=>{const z=U.map((q,Y)=>{const D=y==null?void 0:y(q),V=ze(q).isSame(G,"month");return k.jsx("td",{...R("monthsListCell"),"data-with-spacing":A||void 0,children:k.jsx(Bm,{...R("monthsListControl"),size:j,unstyled:o,fullWidth:M,__staticSelector:f||"MonthsList","data-mantine-stop-propagation":T||void 0,disabled:mF({month:q,minDate:Vi(p),maxDate:Vi(v)}),ref:W=>{W&&(b==null||b(P,Y,W))},...D,onKeyDown:W=>{var $;($=D==null?void 0:D.onKeyDown)==null||$.call(D,W),w==null||w(W,{rowIndex:P,cellIndex:Y,date:q})},onClick:W=>{var $;($=D==null?void 0:D.onClick)==null||$.call(D,W),_==null||_(W,q)},onMouseEnter:W=>{var $;($=D==null?void 0:D.onMouseEnter)==null||$.call(D,W),S==null||S(W,q)},onMouseDown:W=>{var $;($=D==null?void 0:D.onMouseDown)==null||$.call(D,W),C&&W.preventDefault()},tabIndex:C||!V?-1:0,children:(D==null?void 0:D.children)??ze(q).locale(L.getLocale(d)).format(h)})},Y)});return k.jsx("tr",{...R("monthsListRow"),children:z},P)});return k.jsx(_e,{component:"table",size:j,...R("monthsList"),"data-full-width":M||void 0,...F,children:k.jsx("tbody",{children:H})})});zy.classes=pF;zy.displayName="@mantine/dates/MonthsList";var vF={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Tae={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},gF=(e,{size:n})=>({calendarHeader:{"--dch-control-size":On(n,"dch-control-size"),"--dch-fz":Zt(n)}}),as=je(e=>{const n=be("CalendarHeader",Tae,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,nextIcon:f,previousIcon:c,nextLabel:h,previousLabel:d,onNext:p,onPrevious:v,onLevelClick:y,label:b,nextDisabled:w,previousDisabled:_,hasNextLevel:S,levelControlAriaLabel:C,withNext:T,withPrevious:A,headerControlsOrder:M,fullWidth:j,__staticSelector:N,__preventFocus:F,__stopPropagation:R,attributes:L,...B}=n,G=We({name:N||"CalendarHeader",classes:vF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:L,vars:l,varsResolver:gF,rootSelector:"calendarHeader"}),H=F?Y=>Y.preventDefault():void 0,U=A&&O.createElement(Si,{...G("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":d,onClick:v,unstyled:o,onMouseDown:H,disabled:_,"data-disabled":_||void 0,tabIndex:F||_?-1:0,"data-mantine-stop-propagation":R||void 0},c||k.jsx(pg,{...G("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),P=O.createElement(Si,{component:S?"button":"div",...G("calendarHeaderLevel"),key:"level",onClick:S?y:void 0,unstyled:o,onMouseDown:S?H:void 0,disabled:!S,"data-static":!S||void 0,"aria-label":C,tabIndex:F||!S?-1:0,"data-mantine-stop-propagation":R||void 0},b),z=T&&O.createElement(Si,{...G("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":h,onClick:p,unstyled:o,onMouseDown:H,disabled:w,"data-disabled":w||void 0,tabIndex:F||w?-1:0,"data-mantine-stop-propagation":R||void 0},f||k.jsx(pg,{...G("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),q=M.map(Y=>Y==="previous"?U:Y==="level"?P:Y==="next"?z:null);return k.jsx(_e,{...G("calendarHeader"),"data-full-width":j||void 0,...B,children:q})});as.classes=vF;as.varsResolver=gF;as.displayName="@mantine/dates/CalendarHeader";function Mae(e){const n=dF(e);return[n[0][0],n[3][0]]}const jae={decadeLabelFormat:"YYYY"},Ly=je(e=>{const{decade:n,locale:t,minDate:i,maxDate:r,yearsListFormat:a,getYearControlProps:o,__getControlRef:l,__onControlKeyDown:f,__onControlClick:c,__onControlMouseEnter:h,withCellSpacing:d,__preventFocus:p,nextIcon:v,previousIcon:y,nextLabel:b,previousLabel:w,onNext:_,onPrevious:S,nextDisabled:C,previousDisabled:T,levelControlAriaLabel:A,withNext:M,withPrevious:j,headerControlsOrder:N,decadeLabelFormat:F,classNames:R,styles:L,unstyled:B,__staticSelector:G,__stopPropagation:H,size:U,fullWidth:P,attributes:z,...q}=be("DecadeLevel",jae,e),Y=ol(),[D,V]=Mae(n),W={__staticSelector:G||"DecadeLevel",classNames:R,styles:L,unstyled:B,size:U,attributes:z},$=typeof C=="boolean"?C:r?!ze(V).endOf("year").isBefore(r):!1,X=typeof T=="boolean"?T:i?!ze(D).startOf("year").isAfter(i):!1,ee=(oe,ue)=>ze(oe).locale(t||Y.locale).format(ue);return k.jsxs(_e,{"data-decade-level":!0,size:U,...q,children:[k.jsx(as,{label:typeof F=="function"?F(D,V):`${ee(D,F)} – ${ee(V,F)}`,__preventFocus:p,__stopPropagation:H,nextIcon:v,previousIcon:y,nextLabel:b,previousLabel:w,onNext:_,onPrevious:S,nextDisabled:$,previousDisabled:X,hasNextLevel:!1,levelControlAriaLabel:A,withNext:M,withPrevious:j,headerControlsOrder:N,fullWidth:P,...W}),k.jsx($y,{decade:n,locale:t,minDate:i,maxDate:r,yearsListFormat:a,getYearControlProps:o,__getControlRef:l,__onControlKeyDown:f,__onControlClick:c,__onControlMouseEnter:h,__preventFocus:p,__stopPropagation:H,withCellSpacing:d,fullWidth:P,...W})]})});Ly.classes={...$y.classes,...as.classes};Ly.displayName="@mantine/dates/DecadeLevel";const Dae={yearLabelFormat:"YYYY"},Iy=je(e=>{const{year:n,locale:t,minDate:i,maxDate:r,monthsListFormat:a,getMonthControlProps:o,__getControlRef:l,__onControlKeyDown:f,__onControlClick:c,__onControlMouseEnter:h,withCellSpacing:d,__preventFocus:p,nextIcon:v,previousIcon:y,nextLabel:b,previousLabel:w,onNext:_,onPrevious:S,onLevelClick:C,nextDisabled:T,previousDisabled:A,hasNextLevel:M,levelControlAriaLabel:j,withNext:N,withPrevious:F,headerControlsOrder:R,yearLabelFormat:L,__staticSelector:B,__stopPropagation:G,size:H,classNames:U,styles:P,unstyled:z,fullWidth:q,attributes:Y,...D}=be("YearLevel",Dae,e),V=ol(),W={__staticSelector:B||"YearLevel",classNames:U,styles:P,unstyled:z,size:H,attributes:Y},$=typeof T=="boolean"?T:r?!ze(n).endOf("year").isBefore(r):!1,X=typeof A=="boolean"?A:i?!ze(n).startOf("year").isAfter(i):!1;return k.jsxs(_e,{"data-year-level":!0,size:H,...D,children:[k.jsx(as,{label:typeof L=="function"?L(n):ze(n).locale(t||V.locale).format(L),__preventFocus:p,__stopPropagation:G,nextIcon:v,previousIcon:y,nextLabel:b,previousLabel:w,onNext:_,onPrevious:S,onLevelClick:C,nextDisabled:$,previousDisabled:X,hasNextLevel:M,levelControlAriaLabel:j,withNext:N,withPrevious:F,headerControlsOrder:R,fullWidth:q,...W}),k.jsx(zy,{year:n,locale:t,minDate:i,maxDate:r,monthsListFormat:a,getMonthControlProps:o,__getControlRef:l,__onControlKeyDown:f,__onControlClick:c,__onControlMouseEnter:h,__preventFocus:p,__stopPropagation:G,withCellSpacing:d,fullWidth:q,...W})]})});Iy.classes={...as.classes,...zy.classes};Iy.displayName="@mantine/dates/YearLevel";const Rae={monthLabelFormat:"MMMM YYYY"},By=je(e=>{const{month:n,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:f,maxDate:c,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:v,__getDayRef:y,__onDayKeyDown:b,__onDayClick:w,__onDayMouseEnter:_,withCellSpacing:S,highlightToday:C,withWeekNumbers:T,__preventFocus:A,__stopPropagation:M,nextIcon:j,previousIcon:N,nextLabel:F,previousLabel:R,onNext:L,onPrevious:B,onLevelClick:G,nextDisabled:H,previousDisabled:U,hasNextLevel:P,levelControlAriaLabel:z,withNext:q,withPrevious:Y,headerControlsOrder:D,monthLabelFormat:V,classNames:W,styles:$,unstyled:X,__staticSelector:ee,size:oe,static:ue,fullWidth:ye,attributes:ae,...le}=be("MonthLevel",Rae,e),Se=ol(),ne={__staticSelector:ee||"MonthLevel",classNames:W,styles:$,unstyled:X,size:oe,attributes:ae},$e=typeof H=="boolean"?H:c?!ze(n).endOf("month").isBefore(c):!1,ve=typeof U=="boolean"?U:f?!ze(n).startOf("month").isAfter(f):!1;return k.jsxs(_e,{"data-month-level":!0,size:oe,...le,children:[k.jsx(as,{label:typeof V=="function"?V(n):ze(n).locale(t||Se.locale).format(V),__preventFocus:A,__stopPropagation:M,nextIcon:j,previousIcon:N,nextLabel:F,previousLabel:R,onNext:L,onPrevious:B,onLevelClick:G,nextDisabled:$e,previousDisabled:ve,hasNextLevel:P,levelControlAriaLabel:z,withNext:q,withPrevious:Y,headerControlsOrder:D,fullWidth:ye,...ne}),k.jsx(Im,{month:n,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:f,maxDate:c,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:v,__getDayRef:y,__onDayKeyDown:b,__onDayClick:w,__onDayMouseEnter:_,__preventFocus:A,__stopPropagation:M,static:ue,withCellSpacing:S,highlightToday:C,withWeekNumbers:T,fullWidth:ye,...ne})]})});By.classes={...Im.classes,...as.classes};By.displayName="@mantine/dates/MonthLevel";var yF={levelsGroup:"m_30b26e33"};const sl=je(e=>{const n=be("LevelsGroup",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:f,fullWidth:c,attributes:h,...d}=n;return k.jsx(_e,{...We({name:f||"LevelsGroup",classes:yF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:h,vars:l,rootSelector:"levelsGroup"})("levelsGroup"),"data-full-width":c||void 0,...d})});sl.classes=yF;sl.displayName="@mantine/dates/LevelsGroup";const Pae={numberOfColumns:1},Fy=je(e=>{const{decade:n,locale:t,minDate:i,maxDate:r,yearsListFormat:a,getYearControlProps:o,__onControlClick:l,__onControlMouseEnter:f,withCellSpacing:c,__preventFocus:h,nextIcon:d,previousIcon:p,nextLabel:v,previousLabel:y,onNext:b,onPrevious:w,nextDisabled:_,previousDisabled:S,headerControlsOrder:C,classNames:T,styles:A,unstyled:M,__staticSelector:j,__stopPropagation:N,numberOfColumns:F,levelControlAriaLabel:R,decadeLabelFormat:L,size:B,fullWidth:G,vars:H,attributes:U,...P}=be("DecadeLevelGroup",Pae,e),z=O.useRef([]),q=Array(F).fill(0).map((Y,D)=>{const V=ze(n).add(D*10,"years").format("YYYY-MM-DD");return k.jsx(Ly,{size:B,yearsListFormat:a,decade:V,withNext:D===F-1,withPrevious:D===0,decadeLabelFormat:L,__onControlClick:l,__onControlMouseEnter:f,__onControlKeyDown:(W,$)=>RC({levelIndex:D,rowIndex:$.rowIndex,cellIndex:$.cellIndex,event:W,controlsRef:z}),__getControlRef:(W,$,X)=>{Array.isArray(z.current[D])||(z.current[D]=[]),Array.isArray(z.current[D][W])||(z.current[D][W]=[]),z.current[D][W][$]=X},levelControlAriaLabel:typeof R=="function"?R(V):R,locale:t,minDate:i,maxDate:r,__preventFocus:h,__stopPropagation:N,nextIcon:d,previousIcon:p,nextLabel:v,previousLabel:y,onNext:b,onPrevious:w,nextDisabled:_,previousDisabled:S,getYearControlProps:o,__staticSelector:j||"DecadeLevelGroup",classNames:T,styles:A,unstyled:M,withCellSpacing:c,headerControlsOrder:C,fullWidth:G,attributes:U},D)});return k.jsx(sl,{classNames:T,styles:A,__staticSelector:j||"DecadeLevelGroup",size:B,unstyled:M,fullWidth:G,attributes:U,...P,children:q})});Fy.classes={...sl.classes,...Ly.classes};Fy.displayName="@mantine/dates/DecadeLevelGroup";const Nae={numberOfColumns:1},qy=je(e=>{const{year:n,locale:t,minDate:i,maxDate:r,monthsListFormat:a,getMonthControlProps:o,__onControlClick:l,__onControlMouseEnter:f,withCellSpacing:c,__preventFocus:h,nextIcon:d,previousIcon:p,nextLabel:v,previousLabel:y,onNext:b,onPrevious:w,onLevelClick:_,nextDisabled:S,previousDisabled:C,hasNextLevel:T,headerControlsOrder:A,classNames:M,styles:j,unstyled:N,__staticSelector:F,__stopPropagation:R,numberOfColumns:L,levelControlAriaLabel:B,yearLabelFormat:G,size:H,fullWidth:U,vars:P,attributes:z,...q}=be("YearLevelGroup",Nae,e),Y=O.useRef([]),D=Array(L).fill(0).map((V,W)=>{const $=ze(n).add(W,"years").format("YYYY-MM-DD");return k.jsx(Iy,{size:H,monthsListFormat:a,year:$,withNext:W===L-1,withPrevious:W===0,yearLabelFormat:G,__stopPropagation:R,__onControlClick:l,__onControlMouseEnter:f,__onControlKeyDown:(X,ee)=>RC({levelIndex:W,rowIndex:ee.rowIndex,cellIndex:ee.cellIndex,event:X,controlsRef:Y}),__getControlRef:(X,ee,oe)=>{Array.isArray(Y.current[W])||(Y.current[W]=[]),Array.isArray(Y.current[W][X])||(Y.current[W][X]=[]),Y.current[W][X][ee]=oe},levelControlAriaLabel:typeof B=="function"?B($):B,locale:t,minDate:i,maxDate:r,__preventFocus:h,nextIcon:d,previousIcon:p,nextLabel:v,previousLabel:y,onNext:b,onPrevious:w,onLevelClick:_,nextDisabled:S,previousDisabled:C,hasNextLevel:T,getMonthControlProps:o,classNames:M,styles:j,unstyled:N,__staticSelector:F||"YearLevelGroup",withCellSpacing:c,headerControlsOrder:A,fullWidth:U,attributes:z},W)});return k.jsx(sl,{classNames:M,styles:j,__staticSelector:F||"YearLevelGroup",size:H,unstyled:N,fullWidth:U,attributes:z,...q,children:D})});qy.classes={...Iy.classes,...sl.classes};qy.displayName="@mantine/dates/YearLevelGroup";const $ae={numberOfColumns:1},Hy=je(e=>{const{month:n,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:f,maxDate:c,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:v,__onDayClick:y,__onDayMouseEnter:b,withCellSpacing:w,highlightToday:_,withWeekNumbers:S,__preventFocus:C,nextIcon:T,previousIcon:A,nextLabel:M,previousLabel:j,onNext:N,onPrevious:F,onLevelClick:R,nextDisabled:L,previousDisabled:B,hasNextLevel:G,headerControlsOrder:H,classNames:U,styles:P,unstyled:z,numberOfColumns:q,levelControlAriaLabel:Y,monthLabelFormat:D,__staticSelector:V,__stopPropagation:W,size:$,static:X,fullWidth:ee,vars:oe,attributes:ue,...ye}=be("MonthLevelGroup",$ae,e),ae=O.useRef([]),le=Array(q).fill(0).map((Se,ne)=>{const $e=ze(n).add(ne,"months").format("YYYY-MM-DD");return k.jsx(By,{month:$e,withNext:ne===q-1,withPrevious:ne===0,monthLabelFormat:D,__stopPropagation:W,__onDayClick:y,__onDayMouseEnter:b,__onDayKeyDown:(ve,xe)=>RC({levelIndex:ne,rowIndex:xe.rowIndex,cellIndex:xe.cellIndex,event:ve,controlsRef:ae}),__getDayRef:(ve,xe,De)=>{Array.isArray(ae.current[ne])||(ae.current[ne]=[]),Array.isArray(ae.current[ne][ve])||(ae.current[ne][ve]=[]),ae.current[ne][ve][xe]=De},levelControlAriaLabel:typeof Y=="function"?Y($e):Y,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:f,maxDate:c,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:v,__preventFocus:C,nextIcon:T,previousIcon:A,nextLabel:M,previousLabel:j,onNext:N,onPrevious:F,onLevelClick:R,nextDisabled:L,previousDisabled:B,hasNextLevel:G,classNames:U,styles:P,unstyled:z,__staticSelector:V||"MonthLevelGroup",size:$,static:X,withCellSpacing:w,highlightToday:_,withWeekNumbers:S,headerControlsOrder:H,fullWidth:ee,attributes:ue},ne)});return k.jsx(sl,{classNames:U,styles:P,__staticSelector:V||"MonthLevelGroup",size:$,fullWidth:ee,attributes:ue,...ye,children:le})});Hy.classes={...sl.classes,...By.classes};Hy.displayName="@mantine/dates/MonthLevelGroup";var bF={input:"m_6fa5e2aa"};const Tc=je(e=>{const{inputProps:n,wrapperProps:t,placeholder:i,classNames:r,styles:a,unstyled:o,popoverProps:l,modalProps:f,dropdownType:c,children:h,formattedValue:d,dropdownHandlers:p,dropdownOpened:v,onClick:y,clearable:b,clearSectionMode:w,onClear:_,clearButtonProps:S,rightSection:C,shouldClear:T,readOnly:A,disabled:M,value:j,name:N,form:F,type:R,onDropdownClose:L,withTime:B,...G}=DL("PickerInputBase",{size:"sm"},e),H=k.jsx(Pt.ClearButton,{onClick:_,unstyled:o,...S}),U=()=>{R==="range"&&Array.isArray(j)&&j[0]&&!j[1]&&_(),p.close()};return k.jsxs(k.Fragment,{children:[c==="modal"&&!A&&k.jsx($r,{opened:v,onClose:U,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:o,...f,children:h}),k.jsx(Pt.Wrapper,{...t,children:k.jsxs(Vn,{position:"bottom-start",opened:v,trapFocus:!0,returnFocus:!1,unstyled:o,onClose:L,...l,disabled:(l==null?void 0:l.disabled)||c==="modal"||A,onChange:P=>{var z;P||((z=l==null?void 0:l.onClose)==null||z.call(l),U())},children:[k.jsx(Vn.Target,{children:k.jsx(Pt,{"data-dates-input":!0,"data-read-only":A||void 0,disabled:M,component:"button",type:"button",multiline:!0,onClick:P=>{y==null||y(P),p.toggle()},__clearSection:H,__clearable:b&&T&&!A&&!M,__clearSectionMode:w,rightSection:C,...n,classNames:{...r,input:sn(bF.input,r==null?void 0:r.input)},...G,children:d||k.jsx(Pt.Placeholder,{error:n.error,unstyled:o,classNames:r,styles:a,__staticSelector:n.__staticSelector,children:i})})}),k.jsx(Vn.Dropdown,{"data-dates-dropdown":!0,children:h})]})}),k.jsx(eF,{value:j,name:N,form:F,type:R,withTime:B})]})});Tc.classes=bF;Tc.displayName="@mantine/dates/PickerInputBase";const NM=e=>e==="range"?[null,null]:e==="multiple"?[]:null,$M=(e,n)=>{const t=n?JB:Vi;return Array.isArray(e)?e.map(t):t(e)};function NC({type:e,value:n,defaultValue:t,onChange:i,withTime:r=!1}){const a=O.useRef(e),[o,l,f]=Ci({value:$M(n,r),defaultValue:$M(t,r),finalValue:NM(e),onChange:i});let c=o;return a.current!==e&&(a.current=e,n===void 0&&(c=t!==void 0?t:NM(e),l(c))),[c,l,f]}function xk(e,n){return e?e==="month"?0:e==="year"?1:2:n||0}function zae(e){return e===0?"month":e===1?"year":"decade"}function Nd(e,n,t){return zae(Io(xk(e,0),xk(n,0),xk(t,2)))}const Lae={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},Mc=je(e=>{const n=be("Calendar",Lae,e),{vars:t,maxLevel:i,minLevel:r,defaultLevel:a,level:o,onLevelChange:l,date:f,defaultDate:c,onDateChange:h,numberOfColumns:d,columnsToScroll:p,ariaLabels:v,nextLabel:y,previousLabel:b,onYearSelect:w,onMonthSelect:_,onYearMouseEnter:S,onMonthMouseEnter:C,headerControlsOrder:T,__updateDateOnYearSelect:A,__updateDateOnMonthSelect:M,__setDateRef:j,__setLevelRef:N,firstDayOfWeek:F,weekdayFormat:R,weekendDays:L,getDayProps:B,excludeDate:G,renderDay:H,hideOutsideDates:U,hideWeekdays:P,getDayAriaLabel:z,monthLabelFormat:q,nextIcon:Y,previousIcon:D,__onDayClick:V,__onDayMouseEnter:W,withCellSpacing:$,highlightToday:X,withWeekNumbers:ee,monthsListFormat:oe,getMonthControlProps:ue,yearLabelFormat:ye,yearsListFormat:ae,getYearControlProps:le,decadeLabelFormat:Se,classNames:ne,styles:$e,unstyled:ve,minDate:xe,maxDate:De,locale:we,__staticSelector:re,size:ke,__preventFocus:Ie,__stopPropagation:qe,onNextDecade:Ue,onPreviousDecade:Ve,onNextYear:me,onPreviousYear:Ge,onNextMonth:te,onPreviousMonth:pe,static:He,enableKeyboardNavigation:Ye,fullWidth:Ce,attributes:Qe,ref:ln,...En}=n,{resolvedClassNames:hn,resolvedStyles:rn}=Ni({classNames:ne,styles:$e,props:n}),[Je,zn]=Ci({value:o?Nd(o,r,i):void 0,defaultValue:a?Nd(a,r,i):void 0,finalValue:Nd(void 0,r,i),onChange:l}),[un,yt]=NC({type:"default",value:Vi(f),defaultValue:Vi(c),onChange:h});O.useImperativeHandle(j,()=>Ke=>{yt(Ke)}),O.useImperativeHandle(N,()=>Ke=>{zn(Ke)});const Ct={__staticSelector:re||"Calendar",styles:rn,classNames:hn,unstyled:ve,size:ke,attributes:Qe},Tn=p||d||1,mn=O.useRef(null);if(mn.current===null){const Ke=new Date;mn.current=xe&&ze(Ke).isAfter(xe)?xe:ze(Ke).format("YYYY-MM-DD")}const bn=un||mn.current,ot=()=>{const Ke=ze(bn).add(Tn,"month").format("YYYY-MM-DD");te==null||te(Ke),yt(Ke)},$t=()=>{const Ke=ze(bn).subtract(Tn,"month").format("YYYY-MM-DD");pe==null||pe(Ke),yt(Ke)},Ne=()=>{const Ke=ze(bn).add(Tn,"year").format("YYYY-MM-DD");me==null||me(Ke),yt(Ke)},Be=()=>{const Ke=ze(bn).subtract(Tn,"year").format("YYYY-MM-DD");Ge==null||Ge(Ke),yt(Ke)},An=()=>{const Ke=ze(bn).add(10*Tn,"year").format("YYYY-MM-DD");Ue==null||Ue(Ke),yt(Ke)},Qn=()=>{const Ke=ze(bn).subtract(10*Tn,"year").format("YYYY-MM-DD");Ve==null||Ve(Ke),yt(Ke)},Sn=O.useRef(null);return O.useEffect(()=>{if(!Ye||He)return;const Ke=Xe=>{var Ln;if(!((Ln=Sn.current)!=null&&Ln.contains(document.activeElement)))return;const en=Xe.ctrlKey||Xe.metaKey,$n=Xe.shiftKey;switch(Xe.key){case"ArrowUp":en&&$n?(Xe.preventDefault(),Qn()):en&&(Xe.preventDefault(),Be());break;case"ArrowDown":en&&$n?(Xe.preventDefault(),An()):en&&(Xe.preventDefault(),Ne());break;case"y":case"Y":Je==="month"&&(Xe.preventDefault(),zn("year"));break}};return document.addEventListener("keydown",Ke),()=>{document.removeEventListener("keydown",Ke)}},[Ye,He,Je,Ne,Be,An,Qn]),k.jsxs(_e,{ref:Nt(Sn,ln),size:ke,"data-calendar":!0,"data-full-width":Ce||void 0,...En,children:[Je==="month"&&k.jsx(Hy,{month:bn,minDate:xe,maxDate:De,firstDayOfWeek:F,weekdayFormat:R,weekendDays:L,getDayProps:B,excludeDate:G,renderDay:H,hideOutsideDates:U,hideWeekdays:P,getDayAriaLabel:z,onNext:ot,onPrevious:$t,hasNextLevel:i!=="month",onLevelClick:()=>zn("year"),numberOfColumns:d,locale:we,levelControlAriaLabel:v==null?void 0:v.monthLevelControl,nextLabel:(v==null?void 0:v.nextMonth)??y,nextIcon:Y,previousLabel:(v==null?void 0:v.previousMonth)??b,previousIcon:D,monthLabelFormat:q,__onDayClick:V,__onDayMouseEnter:W,__preventFocus:Ie,__stopPropagation:qe,static:He,withCellSpacing:$,highlightToday:X,withWeekNumbers:ee,headerControlsOrder:T,fullWidth:Ce,...Ct}),Je==="year"&&k.jsx(qy,{year:bn,numberOfColumns:d,minDate:xe,maxDate:De,monthsListFormat:oe,getMonthControlProps:ue,locale:we,onNext:Ne,onPrevious:Be,hasNextLevel:i!=="month"&&i!=="year",onLevelClick:()=>zn("decade"),levelControlAriaLabel:v==null?void 0:v.yearLevelControl,nextLabel:(v==null?void 0:v.nextYear)??y,nextIcon:Y,previousLabel:(v==null?void 0:v.previousYear)??b,previousIcon:D,yearLabelFormat:ye,__onControlMouseEnter:C,__onControlClick:(Ke,Xe)=>{M&&yt(Xe),zn(Nd("month",r,i)),_==null||_(Xe)},__preventFocus:Ie,__stopPropagation:qe,withCellSpacing:$,headerControlsOrder:T,fullWidth:Ce,...Ct}),Je==="decade"&&k.jsx(Fy,{decade:bn,minDate:xe,maxDate:De,yearsListFormat:ae,getYearControlProps:le,locale:we,onNext:An,onPrevious:Qn,numberOfColumns:d,nextLabel:(v==null?void 0:v.nextDecade)??y,nextIcon:Y,previousLabel:(v==null?void 0:v.previousDecade)??b,previousIcon:D,decadeLabelFormat:Se,__onControlMouseEnter:S,__onControlClick:(Ke,Xe)=>{A&&yt(Xe),zn(Nd("year",r,i)),w==null||w(Xe)},__preventFocus:Ie,__stopPropagation:qe,withCellSpacing:$,headerControlsOrder:T,fullWidth:Ce,...Ct})]})});Mc.classes={...Fy.classes,...qy.classes,...Hy.classes};Mc.displayName="@mantine/dates/Calendar";function Uy(e){const{maxLevel:n,minLevel:t,defaultLevel:i,level:r,onLevelChange:a,nextIcon:o,previousIcon:l,date:f,defaultDate:c,onDateChange:h,numberOfColumns:d,columnsToScroll:p,ariaLabels:v,nextLabel:y,previousLabel:b,onYearSelect:w,onMonthSelect:_,onYearMouseEnter:S,onMonthMouseEnter:C,onNextMonth:T,onPreviousMonth:A,onNextYear:M,onPreviousYear:j,onNextDecade:N,onPreviousDecade:F,withCellSpacing:R,highlightToday:L,__updateDateOnYearSelect:B,__updateDateOnMonthSelect:G,__setDateRef:H,__setLevelRef:U,withWeekNumbers:P,headerControlsOrder:z,firstDayOfWeek:q,weekdayFormat:Y,weekendDays:D,getDayProps:V,excludeDate:W,renderDay:$,hideOutsideDates:X,hideWeekdays:ee,getDayAriaLabel:oe,monthLabelFormat:ue,monthsListFormat:ye,getMonthControlProps:ae,yearLabelFormat:le,yearsListFormat:Se,getYearControlProps:ne,decadeLabelFormat:$e,allowSingleDateInRange:ve,allowDeselect:xe,minDate:De,maxDate:we,locale:re,...ke}=e;return{calendarProps:{maxLevel:n,minLevel:t,defaultLevel:i,level:r,onLevelChange:a,nextIcon:o,previousIcon:l,date:f,defaultDate:c,onDateChange:h,numberOfColumns:d,columnsToScroll:p,ariaLabels:v,nextLabel:y,previousLabel:b,onYearSelect:w,onMonthSelect:_,onYearMouseEnter:S,onMonthMouseEnter:C,onNextMonth:T,onPreviousMonth:A,onNextYear:M,onPreviousYear:j,onNextDecade:N,onPreviousDecade:F,withCellSpacing:R,highlightToday:L,__updateDateOnYearSelect:B,__updateDateOnMonthSelect:G,__setDateRef:H,withWeekNumbers:P,headerControlsOrder:z,firstDayOfWeek:q,weekdayFormat:Y,weekendDays:D,getDayProps:V,excludeDate:W,renderDay:$,hideOutsideDates:X,hideWeekdays:ee,getDayAriaLabel:oe,monthLabelFormat:ue,monthsListFormat:ye,getMonthControlProps:ae,yearLabelFormat:le,yearsListFormat:Se,getYearControlProps:ne,decadeLabelFormat:$e,allowSingleDateInRange:ve,allowDeselect:xe,minDate:De,maxDate:we,locale:re},others:ke}}function zM(e,n){const t=[...n].sort((i,r)=>ze(i).isAfter(ze(r))?1:-1);return ze(t[0]).startOf("day").subtract(1,"ms").isBefore(e)&&ze(t[1]).endOf("day").add(1,"ms").isAfter(e)}function wF({type:e,level:n,value:t,defaultValue:i,onChange:r,allowSingleDateInRange:a,allowDeselect:o,onMouseLeave:l}){const[f,c]=NC({type:e,value:t,defaultValue:i,onChange:r}),[h,d]=O.useState(e==="range"&&f[0]&&!f[1]?f[0]:null),[p,v]=O.useState(null),y=A=>{if(e==="range"){if(h&&!f[1]){if(ze(A).isSame(h,n)&&!a){d(null),v(null),c([null,null]);return}const M=[A,h];M.sort((j,N)=>ze(j).isAfter(ze(N))?1:-1),c(M),v(null),d(null);return}if(f[0]&&!f[1]&&ze(A).isSame(f[0],n)&&!a){d(null),v(null),c([null,null]);return}c([A,null]),v(null),d(A);return}if(e==="multiple"){f.some(M=>ze(M).isSame(A,n))?c(f.filter(M=>!ze(M).isSame(A,n))):c([...f,A]);return}f&&o&&ze(A).isSame(f,n)?c(null):c(A)},b=A=>h&&p?zM(A,[p,h]):f[0]&&f[1]?zM(A,f):!1,w=e==="range"?A=>{l==null||l(A),v(null)}:l,_=A=>f[0]&&ze(A).isSame(f[0],n)?!(p&&ze(p).isBefore(f[0])):!1,S=A=>f[1]?ze(A).isSame(f[1],n):!f[0]||!p?!1:ze(p).isBefore(f[0])&&ze(A).isSame(f[0],n),C=A=>{if(e==="range")return{selected:f.some(j=>j&&ze(j).isSame(A,n)),inRange:b(A),firstInRange:_(A),lastInRange:S(A),"data-autofocus":!!f[0]&&ze(f[0]).isSame(A,n)||void 0};if(e==="multiple")return{selected:f.some(j=>j&&ze(j).isSame(A,n)),"data-autofocus":!!f[0]&&ze(f[0]).isSame(A,n)||void 0};const M=ze(f).isSame(A,n);return{selected:M,"data-autofocus":M||void 0}},T=e==="range"&&h?v:()=>{};return O.useEffect(()=>{if(e==="range")if(f[0]&&!f[1])d(f[0]);else{const A=f[0]==null&&f[1]==null,M=f[0]!=null&&f[1]!=null;(A||M)&&(d(null),v(null))}},[f]),{onDateChange:y,onRootMouseLeave:w,onHoveredDateChange:T,getControlProps:C,_value:f,setValue:c}}var kF={monthPickerRoot:"m_53c9e871",presetsList:"m_cccb8ff3",presetButton:"m_7b4fbf50"};const _F=(e,{size:n})=>({monthPickerRoot:{"--preset-font-size":Zt(n)}}),Iae={type:"default"},Fm=je(e=>{const n=be("MonthPicker",Iae,e),{classNames:t,styles:i,vars:r,type:a,defaultValue:o,value:l,onChange:f,__staticSelector:c,getMonthControlProps:h,allowSingleDateInRange:d,allowDeselect:p,onMouseLeave:v,onMonthSelect:y,__updateDateOnMonthSelect:b,__onPresetSelect:w,__stopPropagation:_,presets:S,className:C,style:T,unstyled:A,size:M,attributes:j,onLevelChange:N,...F}=n,{calendarProps:R,others:L}=Uy(F),B=O.useRef(null),G=O.useRef(null),H=We({name:c||"MonthPicker",classes:kF,props:n,className:C,style:T,classNames:t,styles:i,unstyled:A,attributes:j,rootSelector:S?"monthPickerRoot":void 0,varsResolver:_F,vars:r}),{onDateChange:U,onRootMouseLeave:P,onHoveredDateChange:z,getControlProps:q,setValue:Y}=wF({type:a,level:"month",allowDeselect:p,allowSingleDateInRange:d,value:l,defaultValue:o,onChange:f,onMouseLeave:v}),{resolvedClassNames:D,resolvedStyles:V}=Ni({classNames:t,styles:i,props:n}),W=k.jsx(Mc,{classNames:D,styles:V,size:M,...R,...S?{}:L,minLevel:"year",__updateDateOnMonthSelect:b??!1,__staticSelector:c||"MonthPicker",onMouseLeave:P,onMonthMouseEnter:(ee,oe)=>z(oe),onMonthSelect:ee=>{U(ee),y==null||y(ee)},getMonthControlProps:ee=>({...q(ee),...h==null?void 0:h(ee)}),onLevelChange:N,__setDateRef:B,__setLevelRef:G,__stopPropagation:_,attributes:j,...S?{}:{className:C,style:T}});if(!S)return W;const $=ee=>{var ue,ye;const oe=Array.isArray(ee)?ee[0]:ee;oe!==void 0&&((ue=B.current)==null||ue.call(B,oe),(ye=G.current)==null||ye.call(G,"year"),w?w(oe):Y(ee))},X=S.map((ee,oe)=>k.jsx(Si,{...H("presetButton"),onClick:()=>$(ee.value),onMouseDown:ue=>ue.preventDefault(),"data-mantine-stop-propagation":_||void 0,children:ee.label},oe));return k.jsxs(_e,{...H("monthPickerRoot"),size:M,...L,children:[k.jsx("div",{...H("presetsList"),children:X}),W]})});Fm.classes={...Mc.classes,...kF};Fm.varsResolver=_F;Fm.displayName="@mantine/dates/MonthPicker";var Bae={datePickerRoot:"m_765a40cf",presetsList:"m_d6a681e1",presetButton:"m_acd30b22"};const xF=(e,{size:n})=>({datePickerRoot:{"--preset-font-size":Zt(n)}}),Fae={type:"default",defaultLevel:"month",numberOfColumns:1,size:"sm"},qm=je(e=>{const n=be("DatePicker",Fae,e),{allowDeselect:t,allowSingleDateInRange:i,value:r,defaultValue:a,onChange:o,onMouseLeave:l,classNames:f,styles:c,__staticSelector:h,__onDayClick:d,__onDayMouseEnter:p,__onPresetSelect:v,__stopPropagation:y,presets:b,className:w,style:_,unstyled:S,size:C,vars:T,attributes:A,...M}=n,{calendarProps:j,others:N}=Uy(M),F=O.useRef(null),R=O.useRef(null),L=We({name:h||"DatePicker",classes:Bae,props:n,className:w,style:_,classNames:f,styles:c,unstyled:S,attributes:A,rootSelector:b?"datePickerRoot":void 0,varsResolver:xF,vars:T}),{onDateChange:B,onRootMouseLeave:G,onHoveredDateChange:H,getControlProps:U,_value:P,setValue:z}=wF({type:N.type,level:"day",allowDeselect:t,allowSingleDateInRange:i,value:r,defaultValue:a,onChange:o,onMouseLeave:l}),{resolvedClassNames:q,resolvedStyles:Y}=Ni({classNames:f,styles:c,props:n}),D=k.jsx(Mc,{classNames:q,styles:Y,__staticSelector:h||"DatePicker",onMouseLeave:G,size:C,...j,...b?{}:N,__stopPropagation:y,__setDateRef:F,__setLevelRef:R,minLevel:j.minLevel||"month",__onDayMouseEnter:($,X)=>{H(X),p==null||p($,X)},__onDayClick:($,X)=>{B(X),d==null||d($,X)},getDayProps:$=>{var X;return{...U($),...(X=j.getDayProps)==null?void 0:X.call(j,$)}},getMonthControlProps:$=>{var X;return{selected:typeof P=="string"?PC($,P):!1,...(X=j.getMonthControlProps)==null?void 0:X.call(j,$)}},getYearControlProps:$=>{var X;return{selected:typeof P=="string"?ze($).isSame(P,"year"):!1,...(X=j.getYearControlProps)==null?void 0:X.call(j,$)}},hideOutsideDates:j.hideOutsideDates??j.numberOfColumns!==1,attributes:A,...b?{}:{className:w,style:_}});if(!b)return D;const V=$=>{var ee,oe;const X=Array.isArray($)?$[0]:$;X!==void 0&&((ee=F.current)==null||ee.call(F,X),(oe=R.current)==null||oe.call(R,"month"),v?v(X):z($))},W=b.map(($,X)=>k.jsx(Si,{...L("presetButton"),onClick:()=>V($.value),onMouseDown:ee=>ee.preventDefault(),"data-mantine-stop-propagation":y||void 0,children:$.label},X));return k.jsxs(_e,{...L("datePickerRoot"),size:C,...N,children:[k.jsx("div",{...L("presetsList"),children:W}),D]})});qm.classes=Mc.classes;qm.varsResolver=xF;qm.displayName="@mantine/dates/DatePicker";function SF({type:e,value:n,defaultValue:t,onChange:i,locale:r,format:a,closeOnChange:o,sortDates:l,labelSeparator:f,valueFormatter:c}){const h=ol(),[d,p]=Y$(!1),[v,y]=NC({type:e,value:n,defaultValue:t,onChange:i}),b=oae({type:e,date:v,locale:h.getLocale(r),format:a,labelSeparator:h.getLabelSeparator(f),formatter:c}),w=S=>{o&&(e==="default"&&p.close(),e==="range"&&S[0]&&S[1]&&p.close()),y(l&&e==="multiple"?[...S].sort((C,T)=>ze(C).isAfter(ze(T))?1:-1):S)};return{_value:v,setValue:w,onClear:()=>w(e==="range"?[null,null]:e==="multiple"?[]:null),shouldClear:e==="range"?!!v[0]:e==="multiple"?v.length>0:v!==null,formattedValue:b,dropdownOpened:d,dropdownHandlers:p}}const qae={type:"default",size:"sm",valueFormat:"MMMM YYYY",closeOnChange:!0,sortDates:!0,dropdownType:"popover"},$C=je(e=>{const n=be("MonthPickerInput",qae,e),{type:t,value:i,defaultValue:r,onChange:a,valueFormat:o,labelSeparator:l,locale:f,classNames:c,styles:h,unstyled:d,closeOnChange:p,size:v,variant:y,dropdownType:b,sortDates:w,minDate:_,maxDate:S,vars:C,valueFormatter:T,presets:A,attributes:M,...j}=n,{resolvedClassNames:N,resolvedStyles:F}=Ni({classNames:c,styles:h,props:n}),{calendarProps:R,others:L}=Uy(j),{_value:B,setValue:G,formattedValue:H,dropdownHandlers:U,dropdownOpened:P,onClear:z,shouldClear:q}=SF({type:t,value:i,defaultValue:r,onChange:a,locale:f,format:o,labelSeparator:l,closeOnChange:p,sortDates:w,valueFormatter:T});return k.jsx(Tc,{formattedValue:H,dropdownOpened:P,dropdownHandlers:U,classNames:N,styles:F,unstyled:d,onClear:z,shouldClear:q,value:B,size:v,variant:y,dropdownType:b,...L,attributes:M,type:t,__staticSelector:"MonthPickerInput",children:k.jsx(Fm,{...R,size:v,variant:y,type:t,value:B,defaultDate:R.defaultDate||(Array.isArray(B)?B[0]||yS({maxDate:S,minDate:_}):B||yS({maxDate:S,minDate:_})),onChange:G,locale:f,classNames:N,styles:F,unstyled:d,__staticSelector:"MonthPickerInput",__stopPropagation:b==="popover",minDate:_,maxDate:S,presets:A,attributes:M})})});$C.classes={...Tc.classes,...Fm.classes};$C.displayName="@mantine/dates/MonthPickerInput";const Hae={type:"default",size:"sm",valueFormat:"MMMM D, YYYY",closeOnChange:!0,sortDates:!0,dropdownType:"popover"},Bf=je(e=>{const n=be("DatePickerInput",Hae,e),{type:t,value:i,defaultValue:r,onChange:a,valueFormat:o,labelSeparator:l,locale:f,classNames:c,styles:h,unstyled:d,closeOnChange:p,size:v,variant:y,dropdownType:b,sortDates:w,minDate:_,maxDate:S,vars:C,defaultDate:T,valueFormatter:A,presets:M,attributes:j,...N}=n,{resolvedClassNames:F,resolvedStyles:R}=Ni({classNames:c,styles:h,props:n}),{calendarProps:L,others:B}=Uy(N),{_value:G,setValue:H,formattedValue:U,dropdownHandlers:P,dropdownOpened:z,onClear:q,shouldClear:Y}=SF({type:t,value:i,defaultValue:r,onChange:a,locale:f,format:o,labelSeparator:l,closeOnChange:p,sortDates:w,valueFormatter:A}),D=Array.isArray(G)?G[0]||T:G||T;return k.jsx(Tc,{formattedValue:U,dropdownOpened:z,dropdownHandlers:P,classNames:F,styles:R,unstyled:d,onClear:q,shouldClear:Y,value:G,size:v,variant:y,dropdownType:b,...B,type:t,__staticSelector:"DatePickerInput",attributes:j,children:k.jsx(qm,{...L,size:v,variant:y,type:t,value:G,defaultDate:D||yS({maxDate:S,minDate:_}),onChange:H,locale:f,classNames:F,styles:R,unstyled:d,__staticSelector:"DatePickerInput",__stopPropagation:b==="popover",minDate:_,maxDate:S,presets:M,attributes:j})})});Bf.classes={...Tc.classes,...qm.classes};Bf.displayName="@mantine/dates/DatePickerInput";/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var Uae={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Dn=(e,n,t,i)=>{const r=O.forwardRef(({color:a="currentColor",size:o=24,stroke:l=2,title:f,className:c,children:h,...d},p)=>O.createElement("svg",{ref:p,...Uae[e],width:o,height:o,className:["tabler-icon",`tabler-icon-${n}`,c].join(" "),strokeWidth:l,stroke:a,...d},[f&&O.createElement("title",{key:"svg-title"},f),...i.map(([v,y])=>O.createElement(v,y)),...Array.isArray(h)?h:[h]]));return r.displayName=`${t}`,r};/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Vae=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],Wae=Dn("outline","alert-triangle","AlertTriangle",Vae);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Gae=[["path",{d:"M8 4h11a2 2 0 1 1 0 4h-7m-4 0h-3a2 2 0 0 1 -.826 -3.822",key:"svg-0"}],["path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 1.824 -1.18m.176 -3.82v-7",key:"svg-1"}],["path",{d:"M10 12h2",key:"svg-2"}],["path",{d:"M3 3l18 18",key:"svg-3"}]],Yae=Dn("outline","archive-off","ArchiveOff",Gae);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Kae=[["path",{d:"M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2",key:"svg-0"}],["path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10",key:"svg-1"}],["path",{d:"M10 12l4 0",key:"svg-2"}]],Xae=Dn("outline","archive","Archive",Kae);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Zae=[["path",{d:"M9 14l-4 -4l4 -4",key:"svg-0"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1",key:"svg-1"}]],Qae=Dn("outline","arrow-back-up","ArrowBackUp",Zae);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Jae=[["path",{d:"M7 8l-4 4l4 4",key:"svg-0"}],["path",{d:"M17 8l4 4l-4 4",key:"svg-1"}],["path",{d:"M3 12l18 0",key:"svg-2"}]],eoe=Dn("outline","arrows-horizontal","ArrowsHorizontal",Jae);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const noe=[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M11 15h1",key:"svg-4"}],["path",{d:"M12 15v3",key:"svg-5"}]],toe=Dn("outline","calendar","Calendar",noe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const ioe=[["path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6",key:"svg-0"}],["path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -10",key:"svg-1"}],["path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -14",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}]],roe=Dn("outline","chart-bar","ChartBar",ioe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const aoe=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],CF=Dn("outline","check","Check",aoe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const ooe=[["path",{d:"M9 11l3 3l8 -8",key:"svg-0"}],["path",{d:"M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9",key:"svg-1"}]],Ph=Dn("outline","checkbox","Checkbox",ooe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const soe=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],AF=Dn("outline","chevron-down","ChevronDown",soe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const loe=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],OF=Dn("outline","chevron-right","ChevronRight",loe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const uoe=[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 5a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2",key:"svg-1"}],["path",{d:"M9 12l.01 0",key:"svg-2"}],["path",{d:"M13 12l2 0",key:"svg-3"}],["path",{d:"M9 16l.01 0",key:"svg-4"}],["path",{d:"M13 16l2 0",key:"svg-5"}]],LM=Dn("outline","clipboard-list","ClipboardList",uoe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const foe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 12l3 2",key:"svg-1"}],["path",{d:"M12 7v5",key:"svg-2"}]],coe=Dn("outline","clock-hour-4","ClockHour4",foe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const doe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],IM=Dn("outline","clock","Clock",doe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const hoe=[["path",{d:"M3 4a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-16",key:"svg-0"}],["path",{d:"M9 3v18",key:"svg-1"}],["path",{d:"M15 3v18",key:"svg-2"}]],moe=Dn("outline","columns-3","Columns3",hoe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const poe=[["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],EF=Dn("outline","dots-vertical","DotsVertical",poe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const voe=[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]],nh=Dn("outline","edit","Edit",voe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const goe=[["path",{d:"M8 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M8 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M8 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M14 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M14 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M14 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}]],TF=Dn("outline","grip-vertical","GripVertical",goe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const yoe=[["path",{d:"M12 8l0 4l2 2",key:"svg-0"}],["path",{d:"M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5",key:"svg-1"}]],boe=Dn("outline","history","History",yoe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const woe=[["path",{d:"M4 4l6 0",key:"svg-0"}],["path",{d:"M14 4l6 0",key:"svg-1"}],["path",{d:"M4 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8",key:"svg-2"}],["path",{d:"M14 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2",key:"svg-3"}]],bS=Dn("outline","layout-kanban","LayoutKanban",woe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const koe=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-5a4 4 0 0 1 8 0",key:"svg-2"}]],MF=Dn("outline","lock-open","LockOpen",koe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const _oe=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],Ul=Dn("outline","lock","Lock",_oe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const xoe=[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]],Soe=Dn("outline","logout","Logout",xoe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Coe=[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 12l16 0",key:"svg-1"}],["path",{d:"M4 18l16 0",key:"svg-2"}]],Aoe=Dn("outline","menu-2","Menu2",Coe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Ooe=[["path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12",key:"svg-0"}],["path",{d:"M9.5 9h.01",key:"svg-1"}],["path",{d:"M14.5 9h.01",key:"svg-2"}],["path",{d:"M9.5 13a3.5 3.5 0 0 0 5 0",key:"svg-3"}]],jF=Dn("outline","message-chatbot","MessageChatbot",Ooe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Eoe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 10l.01 0",key:"svg-1"}],["path",{d:"M15 10l.01 0",key:"svg-2"}],["path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0",key:"svg-3"}]],Toe=Dn("outline","mood-smile","MoodSmile",Eoe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Moe=[["path",{d:"M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25",key:"svg-0"}],["path",{d:"M7.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M11.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M15.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}]],zC=Dn("outline","palette","Palette",Moe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const joe=[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]],Doe=Dn("outline","pencil","Pencil",joe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Roe=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],Nh=Dn("outline","plus","Plus",Roe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Poe=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],Noe=Dn("outline","refresh","Refresh",Poe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const $oe=[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],zoe=Dn("outline","search","Search",$oe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Loe=[["path",{d:"M10 14l11 -11",key:"svg-0"}],["path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5",key:"svg-1"}]],Ioe=Dn("outline","send","Send",Loe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Boe=[["path",{d:"M6.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592 -5.592a2.41 2.41 0 0 0 0 -3.408l-7.71 -7.71a2 2 0 0 0 -1.414 -.586h-5.172a3 3 0 0 0 -3 3",key:"svg-1"}]],Foe=Dn("outline","tag","Tag",Boe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const qoe=[["path",{d:"M4 7h16",key:"svg-0"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-1"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-2"}],["path",{d:"M10 12l4 4m0 -4l-4 4",key:"svg-3"}]],Hoe=Dn("outline","trash-x","TrashX",qoe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Uoe=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],Vy=Dn("outline","trash","Trash",Uoe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Voe=[["path",{d:"M3 17l6 -6l4 4l8 -8",key:"svg-0"}],["path",{d:"M14 7l7 0l0 7",key:"svg-1"}]],BM=Dn("outline","trending-up","TrendingUp",Voe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Woe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-1"}],["path",{d:"M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855",key:"svg-2"}]],Goe=Dn("outline","user-circle","UserCircle",Woe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Yoe=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4c.348 0 .686 .045 1.009 .128",key:"svg-1"}],["path",{d:"M16 19h6",key:"svg-2"}]],Koe=Dn("outline","user-minus","UserMinus",Yoe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Xoe=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M16 19h6",key:"svg-1"}],["path",{d:"M19 16v6",key:"svg-2"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4",key:"svg-3"}]],Zoe=Dn("outline","user-plus","UserPlus",Xoe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const Qoe=[["path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1",key:"svg-1"}],["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14",key:"svg-2"}]],Joe=Dn("outline","user-square","UserSquare",Qoe);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const ese=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],nse=Dn("outline","user","User",ese);/** - * @license @tabler/icons-react v3.42.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const tse=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],th=Dn("outline","x","X",tse);function FM({initial:e,submitLabel:n="Guardar",users:t=[],requesterOptions:i=[],tagOptions:r=[],onSubmit:a,onCancel:o}){const[l,f]=O.useState((e==null?void 0:e.requester)??""),[c,h]=O.useState((e==null?void 0:e.title)??""),[d,p]=O.useState((e==null?void 0:e.description)??""),[v,y]=O.useState((e==null?void 0:e.assignee_id)??null),[b,w]=O.useState((e==null?void 0:e.tags)??[]),_=async T=>{T==null||T.preventDefault();const A=c.trim();A&&await a({requester:l.trim(),title:A,description:d,assignee_id:v,tags:b})},S=T=>{T.key==="Enter"&&!T.shiftKey&&(T.preventDefault(),_())},C=T=>{T.key==="Enter"&&(T.ctrlKey||T.metaKey)&&(T.preventDefault(),_())};return k.jsx("form",{onSubmit:_,children:k.jsxs(Ut,{gap:"sm",children:[k.jsx(Oh,{label:"Tarea",value:c,onChange:T=>h(T.currentTarget.value),tabIndex:1,required:!0,autoComplete:"off","data-autofocus":!0,autosize:!0,minRows:1,maxRows:4,onKeyDown:T=>{T.key==="Enter"&&!T.shiftKey&&(T.preventDefault(),_())}}),k.jsx(ty,{label:"Solicitante",value:l,onChange:f,data:i,tabIndex:2,autoComplete:"off",onKeyDown:S,placeholder:"Empieza a escribir y elige uno existente",limit:10}),k.jsx(Oh,{label:"Descripcion",value:d,onChange:T=>p(T.currentTarget.value),tabIndex:3,autosize:!0,minRows:3,maxRows:8,onKeyDown:C,description:"Ctrl+Enter para guardar"}),k.jsx(Ko,{label:"Asignar a",placeholder:"Sin asignar",value:v,onChange:T=>y(T),data:t.map(T=>({value:T.id,label:T.display_name||T.username})),clearable:!0,searchable:!0,tabIndex:4}),k.jsx(yC,{label:"Tags",value:b,onChange:w,data:r,clearable:!0,tabIndex:5,placeholder:"Enter para añadir; sugiere existentes",splitChars:[","," "]}),k.jsxs(wn,{justify:"flex-end",gap:"xs",mt:"xs",children:[k.jsx(Bt,{variant:"subtle",color:"gray",tabIndex:7,type:"button",onClick:o,children:"Cancelar"}),k.jsx(Bt,{tabIndex:6,type:"submit",disabled:!c.trim(),children:n})]})]})})}function ise(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const rse=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ase=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ose={};function qM(e,n){return(ose.jsx?ase:rse).test(e)}const sse=/[ \t\n\f\r]/g;function lse(e){return typeof e=="object"?e.type==="text"?HM(e.value):!1:HM(e)}function HM(e){return e.replace(sse,"")===""}class Hm{constructor(n,t,i){this.normal=t,this.property=n,i&&(this.space=i)}}Hm.prototype.normal={};Hm.prototype.property={};Hm.prototype.space=void 0;function DF(e,n){const t={},i={};for(const r of e)Object.assign(t,r.property),Object.assign(i,r.normal);return new Hm(t,i,n)}function wS(e){return e.toLowerCase()}class gr{constructor(n,t){this.attribute=t,this.property=n}}gr.prototype.attribute="";gr.prototype.booleanish=!1;gr.prototype.boolean=!1;gr.prototype.commaOrSpaceSeparated=!1;gr.prototype.commaSeparated=!1;gr.prototype.defined=!1;gr.prototype.mustUseProperty=!1;gr.prototype.number=!1;gr.prototype.overloadedBoolean=!1;gr.prototype.property="";gr.prototype.spaceSeparated=!1;gr.prototype.space=void 0;let use=0;const Pn=_u(),si=_u(),kS=_u(),Le=_u(),At=_u(),Mf=_u(),Er=_u();function _u(){return 2**++use}const _S=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pn,booleanish:si,commaOrSpaceSeparated:Er,commaSeparated:Mf,number:Le,overloadedBoolean:kS,spaceSeparated:At},Symbol.toStringTag,{value:"Module"})),Sk=Object.keys(_S);class LC extends gr{constructor(n,t,i,r){let a=-1;if(super(n,t),UM(this,"space",r),typeof i=="number")for(;++a 4&&t.slice(0,4)==="data"&&mse.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(VM,gse);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!VM.test(a)){let o=a.replace(hse,vse);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}r=LC}return new r(i,n)}function vse(e){return"-"+e.toLowerCase()}function gse(e){return e.charAt(1).toUpperCase()}const yse=DF([RF,fse,$F,zF,LF],"html"),IC=DF([RF,cse,$F,zF,LF],"svg");function bse(e){return e.join(" ").trim()}var mf={},Ck,WM;function wse(){if(WM)return Ck;WM=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,f=` -`,c="/",h="*",d="",p="comment",v="declaration";function y(w,_){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];_=_||{};var S=1,C=1;function T(H){var U=H.match(n);U&&(S+=U.length);var P=H.lastIndexOf(f);C=~P?H.length-P:C+H.length}function A(){var H={line:S,column:C};return function(U){return U.position=new M(H),F(),U}}function M(H){this.start=H,this.end={line:S,column:C},this.source=_.source}M.prototype.content=w;function j(H){var U=new Error(_.source+":"+S+":"+C+": "+H);if(U.reason=H,U.filename=_.source,U.line=S,U.column=C,U.source=w,!_.silent)throw U}function N(H){var U=H.exec(w);if(U){var P=U[0];return T(P),w=w.slice(P.length),U}}function F(){N(t)}function R(H){var U;for(H=H||[];U=L();)U!==!1&&H.push(U);return H}function L(){var H=A();if(!(c!=w.charAt(0)||h!=w.charAt(1))){for(var U=2;d!=w.charAt(U)&&(h!=w.charAt(U)||c!=w.charAt(U+1));)++U;if(U+=2,d===w.charAt(U-1))return j("End of comment missing");var P=w.slice(2,U-2);return C+=2,T(P),w=w.slice(U),C+=2,H({type:p,comment:P})}}function B(){var H=A(),U=N(i);if(U){if(L(),!N(r))return j("property missing ':'");var P=N(a),z=H({type:v,property:b(U[0].replace(e,d)),value:P?b(P[0].replace(e,d)):d});return N(o),z}}function G(){var H=[];R(H);for(var U;U=B();)U!==!1&&(H.push(U),R(H));return H}return F(),G()}function b(w){return w?w.replace(l,d):d}return Ck=y,Ck}var GM;function kse(){if(GM)return mf;GM=1;var e=mf&&mf.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(mf,"__esModule",{value:!0}),mf.default=t;const n=e(wse());function t(i,r){let a=null;if(!i||typeof i!="string")return a;const o=(0,n.default)(i),l=typeof r=="function";return o.forEach(f=>{if(f.type!=="declaration")return;const{property:c,value:h}=f;l?r(c,h,f):h&&(a=a||{},a[c]=h)}),a}return mf}var $d={},YM;function _se(){if(YM)return $d;YM=1,Object.defineProperty($d,"__esModule",{value:!0}),$d.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,a=function(c){return!c||t.test(c)||e.test(c)},o=function(c,h){return h.toUpperCase()},l=function(c,h){return"".concat(h,"-")},f=function(c,h){return h===void 0&&(h={}),a(c)?c:(c=c.toLowerCase(),h.reactCompat?c=c.replace(r,l):c=c.replace(i,l),c.replace(n,o))};return $d.camelCase=f,$d}var zd,KM;function xse(){if(KM)return zd;KM=1;var e=zd&&zd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},n=e(kse()),t=_se();function i(r,a){var o={};return!r||typeof r!="string"||(0,n.default)(r,function(l,f){l&&f&&(o[(0,t.camelCase)(l,a)]=f)}),o}return i.default=i,zd=i,zd}var Sse=xse();const Cse=at(Sse),IF=BF("end"),BC=BF("start");function BF(e){return n;function n(t){const i=t&&t.position&&t.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Ase(e){const n=BC(e),t=IF(e);if(n&&t)return{start:n,end:t}}function hh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?XM(e.position):"start"in e||"end"in e?XM(e):"line"in e||"column"in e?xS(e):""}function xS(e){return ZM(e&&e.line)+":"+ZM(e&&e.column)}function XM(e){return xS(e&&e.start)+"-"+xS(e&&e.end)}function ZM(e){return e&&typeof e=="number"?e:1}class Yi extends Error{constructor(n,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",a={},o=!1;if(t&&("line"in t&&"column"in t?a={place:t}:"start"in t&&"end"in t?a={place:t}:"type"in t?a={ancestors:[t],place:t.position}:a={...t}),typeof n=="string"?r=n:!a.cause&&n&&(o=!0,r=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?a.ruleId=i:(a.source=i.slice(0,f),a.ruleId=i.slice(f+1))}if(!a.place&&a.ancestors&&a.ancestors){const f=a.ancestors[a.ancestors.length-1];f&&(a.place=f.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=hh(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Yi.prototype.file="";Yi.prototype.name="";Yi.prototype.reason="";Yi.prototype.message="";Yi.prototype.stack="";Yi.prototype.column=void 0;Yi.prototype.line=void 0;Yi.prototype.ancestors=void 0;Yi.prototype.cause=void 0;Yi.prototype.fatal=void 0;Yi.prototype.place=void 0;Yi.prototype.ruleId=void 0;Yi.prototype.source=void 0;const FC={}.hasOwnProperty,Ose=new Map,Ese=/[A-Z]/g,Tse=new Set(["table","tbody","thead","tfoot","tr"]),Mse=new Set(["td","th"]),FF="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jse(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Ise(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Lse(t,n.jsx,n.jsxs)}const r={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?IC:yse,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=qF(r,e,void 0);return a&&typeof a!="string"?a:r.create(e,r.Fragment,{children:a||void 0},void 0)}function qF(e,n,t){if(n.type==="element")return Dse(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Rse(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Nse(e,n,t);if(n.type==="mdxjsEsm")return Pse(e,n);if(n.type==="root")return $se(e,n,t);if(n.type==="text")return zse(e,n)}function Dse(e,n,t){const i=e.schema;let r=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=IC,e.schema=r),e.ancestors.push(n);const a=UF(e,n.tagName,!1),o=Bse(e,n);let l=HC(e,n);return Tse.has(n.tagName)&&(l=l.filter(function(f){return typeof f=="string"?!lse(f):!0})),HF(e,o,a,n),qC(o,l),e.ancestors.pop(),e.schema=i,e.create(n,a,o,t)}function Rse(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}$h(e,n.position)}function Pse(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);$h(e,n.position)}function Nse(e,n,t){const i=e.schema;let r=i;n.name==="svg"&&i.space==="html"&&(r=IC,e.schema=r),e.ancestors.push(n);const a=n.name===null?e.Fragment:UF(e,n.name,!0),o=Fse(e,n),l=HC(e,n);return HF(e,o,a,n),qC(o,l),e.ancestors.pop(),e.schema=i,e.create(n,a,o,t)}function $se(e,n,t){const i={};return qC(i,HC(e,n)),e.create(n,e.Fragment,i,t)}function zse(e,n){return n.value}function HF(e,n,t,i){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=i)}function qC(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Lse(e,n,t){return i;function i(r,a,o,l){const c=Array.isArray(o.children)?t:n;return l?c(a,o,l):c(a,o)}}function Ise(e,n){return t;function t(i,r,a,o){const l=Array.isArray(a.children),f=BC(i);return n(r,a,o,l,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function Bse(e,n){const t={};let i,r;for(r in n.properties)if(r!=="children"&&FC.call(n.properties,r)){const a=qse(e,r,n.properties[r]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&Mse.has(n.tagName)?i=l:t[o]=l}}if(i){const a=t.style||(t.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return t}function Fse(e,n){const t={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const a=i.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(t,e.evaluater.evaluateExpression(l.argument))}else $h(e,n.position);else{const r=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const l=i.value.data.estree.body[0];l.type,a=e.evaluater.evaluateExpression(l.expression)}else $h(e,n.position);else a=i.value===null?!0:i.value;t[r]=a}return t}function HC(e,n){const t=[];let i=-1;const r=e.passKeys?new Map:Ose;for(;++i r?0:r+n:n=n>r?r:n,t=t>0?t:0,i.length<1e4)o=Array.from(i),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);a 0?(Nr(e,e.length,0,n),e):n}const ej={}.hasOwnProperty;function WF(e){const n={};let t=-1;for(;++t 13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ja(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ji=ll(/[A-Za-z]/),Wi=ll(/[\dA-Za-z]/),Zse=ll(/[#-'*+\--9=?A-Z^-~]/);function Sg(e){return e!==null&&(e<32||e===127)}const SS=ll(/\d/),Qse=ll(/[\dA-Fa-f]/),Jse=ll(/[!-/:-@[-`{-~]/);function pn(e){return e!==null&&e<-2}function St(e){return e!==null&&(e<0||e===32)}function Wn(e){return e===-2||e===-1||e===32}const Wy=ll(new RegExp("\\p{P}|\\p{S}","u")),au=ll(/\s/);function ll(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Dc(e){const n=[];let t=-1,i=0,r=0;for(;++t 55295&&a<57344){const l=e.charCodeAt(t+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),r=1):o="�"}else o=String.fromCharCode(a);o&&(n.push(e.slice(i,t),encodeURIComponent(o)),i=t+r+1,o=""),r&&(t+=r,r=0)}return n.join("")+e.slice(i)}function Jn(e,n,t,i){const r=i?i-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(f){return Wn(f)?(e.enter(t),l(f)):n(f)}function l(f){return Wn(f)&&a++ o))return;const j=n.events.length;let N=j,F,R;for(;N--;)if(n.events[N][0]==="exit"&&n.events[N][1].type==="chunkFlow"){if(F){R=n.events[N][1].end;break}F=!0}for(_(i),M=j;M C;){const A=t[T];n.containerState=A[1],A[0].exit.call(n,e)}t.length=C}function S(){r.write([null]),a=void 0,r=void 0,n.containerState._closeFlow=void 0}}function rle(e,n,t){return Jn(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ff(e){if(e===null||St(e)||au(e))return 1;if(Wy(e))return 2}function Gy(e,n,t){const i=[];let r=-1;for(;++r 1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const d={...e[i][1].end},p={...e[t][1].start};tj(d,-f),tj(p,f),o={type:f>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},l={type:f>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},a={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},r={type:f>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[i][1].end={...o.start},e[t][1].start={...l.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=ta(c,[["enter",e[i][1],n],["exit",e[i][1],n]])),c=ta(c,[["enter",r,n],["enter",o,n],["exit",o,n],["enter",a,n]]),c=ta(c,Gy(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),c=ta(c,[["exit",a,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[t][1].end.offset-e[t][1].start.offset?(h=2,c=ta(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):h=0,Nr(e,i-1,t-i+3,c),t=i+c.length-h-2;break}}for(t=-1;++t 0&&Wn(M)?Jn(e,S,"linePrefix",a+1)(M):S(M)}function S(M){return M===null||pn(M)?e.check(ij,b,T)(M):(e.enter("codeFlowValue"),C(M))}function C(M){return M===null||pn(M)?(e.exit("codeFlowValue"),S(M)):(e.consume(M),C)}function T(M){return e.exit("codeFenced"),n(M)}function A(M,j,N){let F=0;return R;function R(U){return M.enter("lineEnding"),M.consume(U),M.exit("lineEnding"),L}function L(U){return M.enter("codeFencedFence"),Wn(U)?Jn(M,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):B(U)}function B(U){return U===l?(M.enter("codeFencedFenceSequence"),G(U)):N(U)}function G(U){return U===l?(F++,M.consume(U),G):F>=o?(M.exit("codeFencedFenceSequence"),Wn(U)?Jn(M,H,"whitespace")(U):H(U)):N(U)}function H(U){return U===null||pn(U)?(M.exit("codeFencedFence"),j(U)):N(U)}}}function vle(e,n,t){const i=this;return r;function r(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return i.parser.lazy[i.now().line]?t(o):n(o)}}const Ok={name:"codeIndented",tokenize:yle},gle={partial:!0,tokenize:ble};function yle(e,n,t){const i=this;return r;function r(c){return e.enter("codeIndented"),Jn(e,a,"linePrefix",5)(c)}function a(c){const h=i.events[i.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(c):t(c)}function o(c){return c===null?f(c):pn(c)?e.attempt(gle,o,f)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||pn(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),l)}function f(c){return e.exit("codeIndented"),n(c)}}function ble(e,n,t){const i=this;return r;function r(o){return i.parser.lazy[i.now().line]?t(o):pn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):Jn(e,a,"linePrefix",5)(o)}function a(o){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(o):pn(o)?r(o):t(o)}}const wle={name:"codeText",previous:_le,resolve:kle,tokenize:xle};function kle(e){let n=e.length-4,t=3,i,r;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=t;++i =this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,t,i){const r=t||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Ld(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Ld(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ld(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n =4?n(o):e.interrupt(i.parser.constructs.flow,t,n)(o)}}function QF(e,n,t,i,r,a,o,l,f){const c=f||Number.POSITIVE_INFINITY;let h=0;return d;function d(_){return _===60?(e.enter(i),e.enter(r),e.enter(a),e.consume(_),e.exit(a),p):_===null||_===32||_===41||Sg(_)?t(_):(e.enter(i),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),b(_))}function p(_){return _===62?(e.enter(a),e.consume(_),e.exit(a),e.exit(r),e.exit(i),n):(e.enter(l),e.enter("chunkString",{contentType:"string"}),v(_))}function v(_){return _===62?(e.exit("chunkString"),e.exit(l),p(_)):_===null||_===60||pn(_)?t(_):(e.consume(_),_===92?y:v)}function y(_){return _===60||_===62||_===92?(e.consume(_),v):v(_)}function b(_){return!h&&(_===null||_===41||St(_))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(i),n(_)):h 999||v===null||v===91||v===93&&!f||v===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?t(v):v===93?(e.exit(a),e.enter(r),e.consume(v),e.exit(r),e.exit(i),n):pn(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(v))}function d(v){return v===null||v===91||v===93||pn(v)||l++>999?(e.exit("chunkString"),h(v)):(e.consume(v),f||(f=!Wn(v)),v===92?p:d)}function p(v){return v===91||v===92||v===93?(e.consume(v),l++,d):d(v)}}function eq(e,n,t,i,r,a){let o;return l;function l(p){return p===34||p===39||p===40?(e.enter(i),e.enter(r),e.consume(p),e.exit(r),o=p===40?41:p,f):t(p)}function f(p){return p===o?(e.enter(r),e.consume(p),e.exit(r),e.exit(i),n):(e.enter(a),c(p))}function c(p){return p===o?(e.exit(a),f(o)):p===null?t(p):pn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Jn(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===o||p===null||pn(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?d:h)}function d(p){return p===o||p===92?(e.consume(p),h):h(p)}}function mh(e,n){let t;return i;function i(r){return pn(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t=!0,i):Wn(r)?Jn(e,i,t?"linePrefix":"lineSuffix")(r):n(r)}}const jle={name:"definition",tokenize:Rle},Dle={partial:!0,tokenize:Ple};function Rle(e,n,t){const i=this;let r;return a;function a(v){return e.enter("definition"),o(v)}function o(v){return JF.call(i,e,l,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function l(v){return r=ja(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),f):t(v)}function f(v){return St(v)?mh(e,c)(v):c(v)}function c(v){return QF(e,h,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function h(v){return e.attempt(Dle,d,d)(v)}function d(v){return Wn(v)?Jn(e,p,"whitespace")(v):p(v)}function p(v){return v===null||pn(v)?(e.exit("definition"),i.parser.defined.push(r),n(v)):t(v)}}function Ple(e,n,t){return i;function i(l){return St(l)?mh(e,r)(l):t(l)}function r(l){return eq(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return Wn(l)?Jn(e,o,"whitespace")(l):o(l)}function o(l){return l===null||pn(l)?n(l):t(l)}}const Nle={name:"hardBreakEscape",tokenize:$le};function $le(e,n,t){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),r}function r(a){return pn(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}const zle={name:"headingAtx",resolve:Lle,tokenize:Ile};function Lle(e,n){let t=e.length-2,i=3,r,a;return e[i][1].type==="whitespace"&&(i+=2),t-2>i&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(i===t-1||t-4>i&&e[t-2][1].type==="whitespace")&&(t-=i+1===t?2:4),t>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[t][1].end},a={type:"chunkText",start:e[i][1].start,end:e[t][1].end,contentType:"text"},Nr(e,i,t-i+1,[["enter",r,n],["enter",a,n],["exit",a,n],["exit",r,n]])),e}function Ile(e,n,t){let i=0;return r;function r(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&i++<6?(e.consume(h),o):h===null||St(h)?(e.exit("atxHeadingSequence"),l(h)):t(h)}function l(h){return h===35?(e.enter("atxHeadingSequence"),f(h)):h===null||pn(h)?(e.exit("atxHeading"),n(h)):Wn(h)?Jn(e,l,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function f(h){return h===35?(e.consume(h),f):(e.exit("atxHeadingSequence"),l(h))}function c(h){return h===null||h===35||St(h)?(e.exit("atxHeadingText"),l(h)):(e.consume(h),c)}}const Ble=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],aj=["pre","script","style","textarea"],Fle={concrete:!0,name:"htmlFlow",resolveTo:Ule,tokenize:Vle},qle={partial:!0,tokenize:Gle},Hle={partial:!0,tokenize:Wle};function Ule(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Vle(e,n,t){const i=this;let r,a,o,l,f;return c;function c($){return h($)}function h($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),d}function d($){return $===33?(e.consume($),p):$===47?(e.consume($),a=!0,b):$===63?(e.consume($),r=3,i.interrupt?n:D):Ji($)?(e.consume($),o=String.fromCharCode($),w):t($)}function p($){return $===45?(e.consume($),r=2,v):$===91?(e.consume($),r=5,l=0,y):Ji($)?(e.consume($),r=4,i.interrupt?n:D):t($)}function v($){return $===45?(e.consume($),i.interrupt?n:D):t($)}function y($){const X="CDATA[";return $===X.charCodeAt(l++)?(e.consume($),l===X.length?i.interrupt?n:B:y):t($)}function b($){return Ji($)?(e.consume($),o=String.fromCharCode($),w):t($)}function w($){if($===null||$===47||$===62||St($)){const X=$===47,ee=o.toLowerCase();return!X&&!a&&aj.includes(ee)?(r=1,i.interrupt?n($):B($)):Ble.includes(o.toLowerCase())?(r=6,X?(e.consume($),_):i.interrupt?n($):B($)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?t($):a?S($):C($))}return $===45||Wi($)?(e.consume($),o+=String.fromCharCode($),w):t($)}function _($){return $===62?(e.consume($),i.interrupt?n:B):t($)}function S($){return Wn($)?(e.consume($),S):R($)}function C($){return $===47?(e.consume($),R):$===58||$===95||Ji($)?(e.consume($),T):Wn($)?(e.consume($),C):R($)}function T($){return $===45||$===46||$===58||$===95||Wi($)?(e.consume($),T):A($)}function A($){return $===61?(e.consume($),M):Wn($)?(e.consume($),A):C($)}function M($){return $===null||$===60||$===61||$===62||$===96?t($):$===34||$===39?(e.consume($),f=$,j):Wn($)?(e.consume($),M):N($)}function j($){return $===f?(e.consume($),f=null,F):$===null||pn($)?t($):(e.consume($),j)}function N($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||St($)?A($):(e.consume($),N)}function F($){return $===47||$===62||Wn($)?C($):t($)}function R($){return $===62?(e.consume($),L):t($)}function L($){return $===null||pn($)?B($):Wn($)?(e.consume($),L):t($)}function B($){return $===45&&r===2?(e.consume($),P):$===60&&r===1?(e.consume($),z):$===62&&r===4?(e.consume($),V):$===63&&r===3?(e.consume($),D):$===93&&r===5?(e.consume($),Y):pn($)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(qle,W,G)($)):$===null||pn($)?(e.exit("htmlFlowData"),G($)):(e.consume($),B)}function G($){return e.check(Hle,H,W)($)}function H($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),U}function U($){return $===null||pn($)?G($):(e.enter("htmlFlowData"),B($))}function P($){return $===45?(e.consume($),D):B($)}function z($){return $===47?(e.consume($),o="",q):B($)}function q($){if($===62){const X=o.toLowerCase();return aj.includes(X)?(e.consume($),V):B($)}return Ji($)&&o.length<8?(e.consume($),o+=String.fromCharCode($),q):B($)}function Y($){return $===93?(e.consume($),D):B($)}function D($){return $===62?(e.consume($),V):$===45&&r===2?(e.consume($),D):B($)}function V($){return $===null||pn($)?(e.exit("htmlFlowData"),W($)):(e.consume($),V)}function W($){return e.exit("htmlFlow"),n($)}}function Wle(e,n,t){const i=this;return r;function r(o){return pn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):t(o)}function a(o){return i.parser.lazy[i.now().line]?t(o):n(o)}}function Gle(e,n,t){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Um,n,t)}}const Yle={name:"htmlText",tokenize:Kle};function Kle(e,n,t){const i=this;let r,a,o;return l;function l(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),f}function f(D){return D===33?(e.consume(D),c):D===47?(e.consume(D),A):D===63?(e.consume(D),C):Ji(D)?(e.consume(D),N):t(D)}function c(D){return D===45?(e.consume(D),h):D===91?(e.consume(D),a=0,y):Ji(D)?(e.consume(D),S):t(D)}function h(D){return D===45?(e.consume(D),v):t(D)}function d(D){return D===null?t(D):D===45?(e.consume(D),p):pn(D)?(o=d,z(D)):(e.consume(D),d)}function p(D){return D===45?(e.consume(D),v):d(D)}function v(D){return D===62?P(D):D===45?p(D):d(D)}function y(D){const V="CDATA[";return D===V.charCodeAt(a++)?(e.consume(D),a===V.length?b:y):t(D)}function b(D){return D===null?t(D):D===93?(e.consume(D),w):pn(D)?(o=b,z(D)):(e.consume(D),b)}function w(D){return D===93?(e.consume(D),_):b(D)}function _(D){return D===62?P(D):D===93?(e.consume(D),_):b(D)}function S(D){return D===null||D===62?P(D):pn(D)?(o=S,z(D)):(e.consume(D),S)}function C(D){return D===null?t(D):D===63?(e.consume(D),T):pn(D)?(o=C,z(D)):(e.consume(D),C)}function T(D){return D===62?P(D):C(D)}function A(D){return Ji(D)?(e.consume(D),M):t(D)}function M(D){return D===45||Wi(D)?(e.consume(D),M):j(D)}function j(D){return pn(D)?(o=j,z(D)):Wn(D)?(e.consume(D),j):P(D)}function N(D){return D===45||Wi(D)?(e.consume(D),N):D===47||D===62||St(D)?F(D):t(D)}function F(D){return D===47?(e.consume(D),P):D===58||D===95||Ji(D)?(e.consume(D),R):pn(D)?(o=F,z(D)):Wn(D)?(e.consume(D),F):P(D)}function R(D){return D===45||D===46||D===58||D===95||Wi(D)?(e.consume(D),R):L(D)}function L(D){return D===61?(e.consume(D),B):pn(D)?(o=L,z(D)):Wn(D)?(e.consume(D),L):F(D)}function B(D){return D===null||D===60||D===61||D===62||D===96?t(D):D===34||D===39?(e.consume(D),r=D,G):pn(D)?(o=B,z(D)):Wn(D)?(e.consume(D),B):(e.consume(D),H)}function G(D){return D===r?(e.consume(D),r=void 0,U):D===null?t(D):pn(D)?(o=G,z(D)):(e.consume(D),G)}function H(D){return D===null||D===34||D===39||D===60||D===61||D===96?t(D):D===47||D===62||St(D)?F(D):(e.consume(D),H)}function U(D){return D===47||D===62||St(D)?F(D):t(D)}function P(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),n):t(D)}function z(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),q}function q(D){return Wn(D)?Jn(e,Y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):Y(D)}function Y(D){return e.enter("htmlTextData"),o(D)}}const WC={name:"labelEnd",resolveAll:Jle,resolveTo:eue,tokenize:nue},Xle={tokenize:tue},Zle={tokenize:iue},Qle={tokenize:rue};function Jle(e){let n=-1;const t=[];for(;++n =3&&(c===null||pn(c))?(e.exit("thematicBreak"),n(c)):t(c)}function f(c){return c===r?(e.consume(c),i++,f):(e.exit("thematicBreakSequence"),Wn(c)?Jn(e,l,"whitespace")(c):l(c))}}const cr={continuation:{tokenize:mue},exit:vue,name:"list",tokenize:hue},cue={partial:!0,tokenize:gue},due={partial:!0,tokenize:pue};function hue(e,n,t){const i=this,r=i.events[i.events.length-1];let a=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return l;function l(v){const y=i.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!i.containerState.marker||v===i.containerState.marker:SS(v)){if(i.containerState.type||(i.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(tg,t,c)(v):c(v);if(!i.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(v)}return t(v)}function f(v){return SS(v)&&++o<10?(e.consume(v),f):(!i.interrupt||o<2)&&(i.containerState.marker?v===i.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),c(v)):t(v)}function c(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||v,e.check(Um,i.interrupt?t:h,e.attempt(cue,p,d))}function h(v){return i.containerState.initialBlankLine=!0,a++,p(v)}function d(v){return Wn(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),p):t(v)}function p(v){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(v)}}function mue(e,n,t){const i=this;return i.containerState._closeFlow=void 0,e.check(Um,r,a);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Jn(e,n,"listItemIndent",i.containerState.size+1)(l)}function a(l){return i.containerState.furtherBlankLines||!Wn(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(due,n,o)(l))}function o(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,Jn(e,e.attempt(cr,n,t),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function pue(e,n,t){const i=this;return Jn(e,r,"listItemIndent",i.containerState.size+1);function r(a){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?n(a):t(a)}}function vue(e){e.exit(this.containerState.type)}function gue(e,n,t){const i=this;return Jn(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(a){const o=i.events[i.events.length-1];return!Wn(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}const oj={name:"setextUnderline",resolveTo:yue,tokenize:bue};function yue(e,n){let t=e.length,i,r,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){i=t;break}e[t][1].type==="paragraph"&&(r=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",o,n]),e.splice(a+1,0,["exit",e[i][1],n]),e[i][1].end={...e[a][1].end}):e[i][1]=o,e.push(["exit",o,n]),e}function bue(e,n,t){const i=this;let r;return a;function a(c){let h=i.events.length,d;for(;h--;)if(i.events[h][1].type!=="lineEnding"&&i.events[h][1].type!=="linePrefix"&&i.events[h][1].type!=="content"){d=i.events[h][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),r=c,o(c)):t(c)}function o(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===r?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),Wn(c)?Jn(e,f,"lineSuffix")(c):f(c))}function f(c){return c===null||pn(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}const wue={tokenize:kue};function kue(e){const n=this,t=e.attempt(Um,i,e.attempt(this.parser.constructs.flowInitial,r,Jn(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ale,r)),"linePrefix")));return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const _ue={resolveAll:tq()},xue=nq("string"),Sue=nq("text");function nq(e){return{resolveAll:tq(e==="text"?Cue:void 0),tokenize:n};function n(t){const i=this,r=this.parser.constructs[e],a=t.attempt(r,o,l);return o;function o(h){return c(h)?a(h):l(h)}function l(h){if(h===null){t.consume(h);return}return t.enter("data"),t.consume(h),f}function f(h){return c(h)?(t.exit("data"),a(h)):(t.consume(h),f)}function c(h){if(h===null)return!0;const d=r[h];let p=-1;if(d)for(;++p -1){const l=o[0];typeof l=="string"?o[0]=l.slice(i):o.shift()}a>0&&o.push(e[r].slice(0,a))}return o}function Lue(e,n){let t=-1;const i=[];let r;for(;++t 0){const Qe=He.tokenStack[He.tokenStack.length-1];(Qe[1]||lj).call(He,void 0,Qe[0])}for(pe.position={start:$s(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:$s(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},Ce=-1;++Ce 0&&(i.className=["language-"+r[0]]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return n.meta&&(a.data={meta:n.meta}),e.patch(n,a),a=e.applyData(n,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(n,a),a}function Que(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Jue(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function efe(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),r=Dc(i.toLowerCase()),a=e.footnoteOrder.indexOf(i);let o,l=e.footnoteCounts.get(i);l===void 0?(l=0,e.footnoteOrder.push(i),o=e.footnoteOrder.length):o=a+1,l+=1,e.footnoteCounts.set(i,l);const f={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+r,id:t+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,f);const c={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(n,c),e.applyData(n,c)}function nfe(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function tfe(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function aq(e,n){const t=n.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const r=e.all(n),a=r[0];a&&a.type==="text"?a.value="["+a.value:r.unshift({type:"text",value:"["});const o=r[r.length-1];return o&&o.type==="text"?o.value+=i:r.push({type:"text",value:i}),r}function ife(e,n){const t=String(n.identifier).toUpperCase(),i=e.definitionById.get(t);if(!i)return aq(e,n);const r={src:Dc(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,a),e.applyData(n,a)}function rfe(e,n){const t={src:Dc(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const i={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,i),e.applyData(n,i)}function afe(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const i={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,i),e.applyData(n,i)}function ofe(e,n){const t=String(n.identifier).toUpperCase(),i=e.definitionById.get(t);if(!i)return aq(e,n);const r={href:Dc(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const a={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function sfe(e,n){const t={href:Dc(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const i={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function lfe(e,n,t){const i=e.all(n),r=t?ufe(t):oq(n),a={},o=[];if(typeof n.checked=="boolean"){const h=i[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},i.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l 1}function ffe(e,n){const t={},i=e.all(n);let r=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++r 0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},l=BC(n.children[1]),f=IF(n.children[n.children.length-1]);l&&f&&(o.position={start:l,end:f}),r.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(n,a),e.applyData(n,a)}function pfe(e,n,t){const i=t?t.children:void 0,a=(i?i.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,l=o?o.length:n.children.length;let f=-1;const c=[];for(;++f 0,!0),i[0]),r=i.index+i[0].length,i=t.exec(n);return a.push(cj(n.slice(r),r>0,!1)),a.join("")}function cj(e,n,t){let i=0,r=e.length;if(n){let a=e.codePointAt(i);for(;a===uj||a===fj;)i++,a=e.codePointAt(i)}if(t){let a=e.codePointAt(r-1);for(;a===uj||a===fj;)r--,a=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function yfe(e,n){const t={type:"text",value:gfe(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function bfe(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const wfe={blockquote:Kue,break:Xue,code:Zue,delete:Que,emphasis:Jue,footnoteReference:efe,heading:nfe,html:tfe,imageReference:ife,image:rfe,inlineCode:afe,linkReference:ofe,link:sfe,listItem:lfe,list:ffe,paragraph:cfe,root:dfe,strong:hfe,table:mfe,tableCell:vfe,tableRow:pfe,text:yfe,thematicBreak:bfe,toml:xv,yaml:xv,definition:xv,footnoteDefinition:xv};function xv(){}const sq=-1,Yy=0,ph=1,Cg=2,GC=3,YC=4,KC=5,XC=6,lq=7,uq=8,kfe=typeof self=="object"?self:globalThis,dj=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new kfe[e](n)},_fe=(e,n)=>{const t=(r,a)=>(e.set(a,r),r),i=r=>{if(e.has(r))return e.get(r);const[a,o]=n[r];switch(a){case Yy:case sq:return t(o,r);case ph:{const l=t([],r);for(const f of o)l.push(i(f));return l}case Cg:{const l=t({},r);for(const[f,c]of o)l[i(f)]=i(c);return l}case GC:return t(new Date(o),r);case YC:{const{source:l,flags:f}=o;return t(new RegExp(l,f),r)}case KC:{const l=t(new Map,r);for(const[f,c]of o)l.set(i(f),i(c));return l}case XC:{const l=t(new Set,r);for(const f of o)l.add(i(f));return l}case lq:{const{name:l,message:f}=o;return t(dj(l,f),r)}case uq:return t(BigInt(o),r);case"BigInt":return t(Object(BigInt(o)),r);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return t(new DataView(l),o)}}return t(dj(a,o),r)};return i},hj=e=>_fe(new Map,e)(0),pf="",{toString:xfe}={},{keys:Sfe}=Object,Id=e=>{const n=typeof e;if(n!=="object"||!e)return[Yy,n];const t=xfe.call(e).slice(8,-1);switch(t){case"Array":return[ph,pf];case"Object":return[Cg,pf];case"Date":return[GC,pf];case"RegExp":return[YC,pf];case"Map":return[KC,pf];case"Set":return[XC,pf];case"DataView":return[ph,t]}return t.includes("Array")?[ph,t]:t.includes("Error")?[lq,t]:[Cg,t]},Sv=([e,n])=>e===Yy&&(n==="function"||n==="symbol"),Cfe=(e,n,t,i)=>{const r=(o,l)=>{const f=i.push(o)-1;return t.set(l,f),f},a=o=>{if(t.has(o))return t.get(o);let[l,f]=Id(o);switch(l){case Yy:{let h=o;switch(f){case"bigint":l=uq,h=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);h=null;break;case"undefined":return r([sq],o)}return r([l,h],o)}case ph:{if(f){let p=o;return f==="DataView"?p=new Uint8Array(o.buffer):f==="ArrayBuffer"&&(p=new Uint8Array(o)),r([f,[...p]],o)}const h=[],d=r([l,h],o);for(const p of o)h.push(a(p));return d}case Cg:{if(f)switch(f){case"BigInt":return r([f,o.toString()],o);case"Boolean":case"Number":case"String":return r([f,o.valueOf()],o)}if(n&&"toJSON"in o)return a(o.toJSON());const h=[],d=r([l,h],o);for(const p of Sfe(o))(e||!Sv(Id(o[p])))&&h.push([a(p),a(o[p])]);return d}case GC:return r([l,o.toISOString()],o);case YC:{const{source:h,flags:d}=o;return r([l,{source:h,flags:d}],o)}case KC:{const h=[],d=r([l,h],o);for(const[p,v]of o)(e||!(Sv(Id(p))||Sv(Id(v))))&&h.push([a(p),a(v)]);return d}case XC:{const h=[],d=r([l,h],o);for(const p of o)(e||!Sv(Id(p)))&&h.push(a(p));return d}}const{message:c}=o;return r([l,{name:f,message:c}],o)};return a},mj=(e,{json:n,lossy:t}={})=>{const i=[];return Cfe(!(n||t),!!n,new Map,i)(e),i},Ag=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?hj(mj(e,n)):structuredClone(e):(e,n)=>hj(mj(e,n));function Afe(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Ofe(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Efe(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Afe,i=e.options.footnoteBackLabel||Ofe,r=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let f=-1;for(;++f 0&&y.push({type:"text",value:" "});let S=typeof t=="string"?t:t(f,v);typeof S=="string"&&(S={type:"text",value:S}),y.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,v),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const w=h[h.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const S=w.children[w.children.length-1];S&&S.type==="text"?S.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...y)}else h.push(...y);const _={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(h,!0)};e.patch(c,_),l.push(_)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ag(o),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` -`}]}}const Ky=(function(e){if(e==null)return Dfe;if(typeof e=="function")return Xy(e);if(typeof e=="object")return Array.isArray(e)?Tfe(e):Mfe(e);if(typeof e=="string")return jfe(e);throw new Error("Expected function, string, or object as test")});function Tfe(e){const n=[];let t=-1;for(;++t ":""))+")"})}return p;function p(){let v=fq,y,b,w;if((!n||a(f,c,h[h.length-1]||void 0))&&(v=$fe(t(f,h)),v[0]===AS))return v;if("children"in f&&f.children){const _=f;if(_.children&&v[0]!==Nfe)for(b=(i?_.children.length:-1)+o,w=h.concat(_);b>-1&&b<_.children.length;){const S=_.children[b];if(y=l(S,b,w)(),y[0]===AS)return y;b=typeof y[1]=="number"?y[1]:b+o}}return v}}}function $fe(e){return Array.isArray(e)?e:typeof e=="number"?[Pfe,e]:e==null?fq:[e]}function ZC(e,n,t,i){let r,a,o;typeof n=="function"&&typeof t!="function"?(a=void 0,o=n,r=t):(a=n,o=t,r=i),cq(e,a,l,r);function l(f,c){const h=c[c.length-1],d=h?h.children.indexOf(f):void 0;return o(f,d,h)}}const OS={}.hasOwnProperty,zfe={};function Lfe(e,n){const t=n||zfe,i=new Map,r=new Map,a=new Map,o={...wfe,...t.handlers},l={all:c,applyData:Bfe,definitionById:i,footnoteById:r,footnoteCounts:a,footnoteOrder:[],handlers:o,one:f,options:t,patch:Ife,wrap:qfe};return ZC(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const d=h.type==="definition"?i:r,p=String(h.identifier).toUpperCase();d.has(p)||d.set(p,h)}}),l;function f(h,d){const p=h.type,v=l.handlers[p];if(OS.call(l.handlers,p)&&v)return v(l,h,d);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in h){const{children:b,...w}=h,_=Ag(w);return _.children=l.all(h),_}return Ag(h)}return(l.options.unknownHandler||Ffe)(l,h,d)}function c(h){const d=[];if("children"in h){const p=h.children;let v=-1;for(;++v 0&&t.push({type:"text",value:` -`}),t}function pj(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function vj(e,n){const t=Lfe(e,n),i=t.one(e,void 0),r=Efe(t),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&a.children.push({type:"text",value:` -`},r),a}function Hfe(e,n){return e&&"run"in e?async function(t,i){const r=vj(t,{file:i,...n});await e.run(r,i)}:function(t,i){return vj(t,{file:i,...e||n})}}function gj(e){if(e)throw e}var Tk,yj;function Ufe(){if(yj)return Tk;yj=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(c){return typeof Array.isArray=="function"?Array.isArray(c):n.call(c)==="[object Array]"},a=function(c){if(!c||n.call(c)!=="[object Object]")return!1;var h=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!h&&!d)return!1;var p;for(p in c);return typeof p>"u"||e.call(c,p)},o=function(c,h){t&&h.name==="__proto__"?t(c,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):c[h.name]=h.newValue},l=function(c,h){if(h==="__proto__")if(e.call(c,h)){if(i)return i(c,h).value}else return;return c[h]};return Tk=function f(){var c,h,d,p,v,y,b=arguments[0],w=1,_=arguments.length,S=!1;for(typeof b=="boolean"&&(S=b,b=arguments[1]||{},w=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});w<_;++w)if(c=arguments[w],c!=null)for(h in c)d=l(b,h),p=l(c,h),b!==p&&(S&&p&&(a(p)||(v=r(p)))?(v?(v=!1,y=d&&r(d)?d:[]):y=d&&a(d)?d:{},o(b,{name:h,newValue:f(S,y,p)})):typeof p<"u"&&o(b,{name:h,newValue:p}));return b},Tk}var Vfe=Ufe();const Mk=at(Vfe);function ES(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Wfe(){const e=[],n={run:t,use:i};return n;function t(...r){let a=-1;const o=r.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...r);function l(f,...c){const h=e[++a];let d=-1;if(f){o(f);return}for(;++d o.length;let f;l&&o.push(r);try{f=e.apply(this,o)}catch(c){const h=c;if(l&&t)throw h;return r(h)}l||(f&&f.then&&typeof f.then=="function"?f.then(a,r):f instanceof Error?r(f):a(f))}function r(o,...l){t||(t=!0,n(o,...l))}function a(o){r(null,o)}}const Ua={basename:Yfe,dirname:Kfe,extname:Xfe,join:Zfe,sep:"/"};function Yfe(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Vm(e);let t=0,i=-1,r=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(a){t=r+1;break}}else i<0&&(a=!0,i=r+1);return i<0?"":e.slice(t,i)}if(n===e)return"";let o=-1,l=n.length-1;for(;r--;)if(e.codePointAt(r)===47){if(a){t=r+1;break}}else o<0&&(a=!0,o=r+1),l>-1&&(e.codePointAt(r)===n.codePointAt(l--)?l<0&&(i=r):(l=-1,i=o));return t===i?i=o:i<0&&(i=e.length),e.slice(t,i)}function Kfe(e){if(Vm(e),e.length===0)return".";let n=-1,t=e.length,i;for(;--t;)if(e.codePointAt(t)===47){if(i){n=t;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Xfe(e){Vm(e);let n=e.length,t=-1,i=0,r=-1,a=0,o;for(;n--;){const l=e.codePointAt(n);if(l===47){if(o){i=n+1;break}continue}t<0&&(o=!0,t=n+1),l===46?r<0?r=n:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||t<0||a===0||a===1&&r===t-1&&r===i+1?"":e.slice(r,t)}function Zfe(...e){let n=-1,t;for(;++n 0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Jfe(e,n){let t="",i=0,r=-1,a=0,o=-1,l,f;for(;++o<=e.length;){if(o 2){if(f=t.lastIndexOf("/"),f!==t.length-1){f<0?(t="",i=0):(t=t.slice(0,f),i=t.length-1-t.lastIndexOf("/")),r=o,a=0;continue}}else if(t.length>0){t="",i=0,r=o,a=0;continue}}n&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+e.slice(r+1,o):t=e.slice(r+1,o),i=o-r-1;r=o,a=0}else l===46&&a>-1?a++:a=-1}return t}function Vm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ece={cwd:nce};function nce(){return"/"}function TS(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function tce(e){if(typeof e=="string")e=new URL(e);else if(!TS(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return ice(e)}function ice(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let t=-1;for(;++t 0){let[v,...y]=h;const b=i[p][1];ES(b)&&ES(v)&&(v=Mk(!0,b,v)),i[p]=[c,v,...y]}}}}const sce=new QC().freeze();function Pk(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Nk(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $k(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function wj(e){if(!ES(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function kj(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Cv(e){return lce(e)?e:new dq(e)}function lce(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function uce(e){return typeof e=="string"||fce(e)}function fce(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cce="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_j=[],xj={allowDangerousHtml:!0},dce=/^(https?|ircs?|mailto|xmpp)$/i,hce=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function mce(e){const n=pce(e),t=vce(e);return gce(n.runSync(n.parse(t),t),e)}function pce(e){const n=e.rehypePlugins||_j,t=e.remarkPlugins||_j,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...xj}:xj;return sce().use(Yue).use(t).use(Hfe,i).use(n)}function vce(e){const n=e.children||"",t=new dq;return typeof n=="string"&&(t.value=n),t}function gce(e,n){const t=n.allowedElements,i=n.allowElement,r=n.components,a=n.disallowedElements,o=n.skipHtml,l=n.unwrapDisallowed,f=n.urlTransform||yce;for(const h of hce)Object.hasOwn(n,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+cce+h.id,void 0);return ZC(e,c),jse(e,{Fragment:k.Fragment,components:r,ignoreInvalidStyle:!0,jsx:k.jsx,jsxs:k.jsxs,passKeys:!0,passNode:!0});function c(h,d,p){if(h.type==="raw"&&p&&typeof d=="number")return o?p.children.splice(d,1):p.children[d]={type:"text",value:h.value},d;if(h.type==="element"){let v;for(v in Ak)if(Object.hasOwn(Ak,v)&&Object.hasOwn(h.properties,v)){const y=h.properties[v],b=Ak[v];(b===null||b.includes(h.tagName))&&(h.properties[v]=f(String(y||""),v,h))}}if(h.type==="element"){let v=t?!t.includes(h.tagName):a?a.includes(h.tagName):!1;if(!v&&i&&typeof d=="number"&&(v=!i(h,d,p)),v&&p&&typeof d=="number")return l&&h.children?p.children.splice(d,1,...h.children):p.children.splice(d,1),d}}}function yce(e){const n=e.indexOf(":"),t=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return n===-1||r!==-1&&n>r||t!==-1&&n>t||i!==-1&&n>i||dce.test(e.slice(0,n))?e:""}function Sj(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,r=t.indexOf(n);for(;r!==-1;)i++,r=t.indexOf(n,r+n.length);return i}function bce(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function wce(e,n,t){const r=Ky((t||{}).ignore||[]),a=kce(n);let o=-1;for(;++o 0?{type:"text",value:M}:void 0),M===!1?p.lastIndex=T+1:(y!==T&&S.push({type:"text",value:c.value.slice(y,T)}),Array.isArray(M)?S.push(...M):M&&S.push(M),y=T+C[0].length,_=!0),!p.global)break;C=p.exec(c.value)}return _?(y ?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],i=t.indexOf(")");const r=Sj(e,"(");let a=Sj(e,")");for(;i!==-1&&r>a;)e+=t.slice(0,i+1),t=t.slice(i+1),i=t.indexOf(")"),a++;return[e,t]}function hq(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||au(t)||Wy(t))&&(!n||t!==47)}mq.peek=Uce;function $ce(){this.buffer()}function zce(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Lce(){this.buffer()}function Ice(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Bce(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ja(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Fce(e){this.exit(e)}function qce(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ja(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Hce(e){this.exit(e)}function Uce(){return"["}function mq(e,n,t,i){const r=t.createTracker(i);let a=r.move("[^");const o=t.enter("footnoteReference"),l=t.enter("reference");return a+=r.move(t.safe(t.associationId(e),{after:"]",before:a})),l(),o(),a+=r.move("]"),a}function Vce(){return{enter:{gfmFootnoteCallString:$ce,gfmFootnoteCall:zce,gfmFootnoteDefinitionLabelString:Lce,gfmFootnoteDefinition:Ice},exit:{gfmFootnoteCallString:Bce,gfmFootnoteCall:Fce,gfmFootnoteDefinitionLabelString:qce,gfmFootnoteDefinition:Hce}}}function Wce(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:mq},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(i,r,a,o){const l=a.createTracker(o);let f=l.move("[^");const c=a.enter("footnoteDefinition"),h=a.enter("label");return f+=l.move(a.safe(a.associationId(i),{before:f,after:"]"})),h(),f+=l.move("]:"),i.children&&i.children.length>0&&(l.shift(4),f+=l.move((n?` -`:" ")+a.indentLines(a.containerFlow(i,l.current()),n?pq:Gce))),c(),f}}function Gce(e,n,t){return n===0?e:pq(e,n,t)}function pq(e,n,t){return(t?"":" ")+e}const Yce=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];vq.peek=Jce;function Kce(){return{canContainEols:["delete"],enter:{strikethrough:Zce},exit:{strikethrough:Qce}}}function Xce(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Yce}],handlers:{delete:vq}}}function Zce(e){this.enter({type:"delete",children:[]},e)}function Qce(e){this.exit(e)}function vq(e,n,t,i){const r=t.createTracker(i),a=t.enter("strikethrough");let o=r.move("~~");return o+=t.containerPhrasing(e,{...r.current(),before:o,after:"~"}),o+=r.move("~~"),a(),o}function Jce(){return"~"}function ede(e){return e.length}function nde(e,n){const t=n||{},i=(t.align||[]).concat(),r=t.stringLength||ede,a=[],o=[],l=[],f=[];let c=0,h=-1;for(;++h c&&(c=e[h].length);++_ f[_])&&(f[_]=C)}b.push(S)}o[h]=b,l[h]=w}let d=-1;if(typeof i=="object"&&"length"in i)for(;++d f[d]&&(f[d]=S),v[d]=S),p[d]=C}o.splice(1,0,p),l.splice(1,0,v),h=-1;const y=[];for(;++h "),a.shift(2);const o=t.indentLines(t.containerFlow(e,a.current()),rde);return r(),o}function rde(e,n,t){return">"+(t?"":" ")+e}function ade(e,n){return Aj(e,n.inConstruct,!0)&&!Aj(e,n.notInConstruct,!1)}function Aj(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i o&&(o=a):a=1,r=i+n.length,i=t.indexOf(n,r);return o}function sde(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function lde(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function ude(e,n,t,i){const r=lde(t),a=e.value||"",o=r==="`"?"GraveAccent":"Tilde";if(sde(e,t)){const d=t.enter("codeIndented"),p=t.indentLines(a,fde);return d(),p}const l=t.createTracker(i),f=r.repeat(Math.max(ode(a,r)+1,3)),c=t.enter("codeFenced");let h=l.move(f);if(e.lang){const d=t.enter(`codeFencedLang${o}`);h+=l.move(t.safe(e.lang,{before:h,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){const d=t.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(t.safe(e.meta,{before:h,after:` -`,encode:["`"],...l.current()})),d()}return h+=l.move(` -`),a&&(h+=l.move(a+` -`)),h+=l.move(f),c(),h}function fde(e,n,t){return(t?"":" ")+e}function JC(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function cde(e,n,t,i){const r=JC(t),a=r==='"'?"Quote":"Apostrophe",o=t.enter("definition");let l=t.enter("label");const f=t.createTracker(i);let c=f.move("[");return c+=f.move(t.safe(t.associationId(e),{before:c,after:"]",...f.current()})),c+=f.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),c+=f.move("<"),c+=f.move(t.safe(e.url,{before:c,after:">",...f.current()})),c+=f.move(">")):(l=t.enter("destinationRaw"),c+=f.move(t.safe(e.url,{before:c,after:e.title?" ":` -`,...f.current()}))),l(),e.title&&(l=t.enter(`title${a}`),c+=f.move(" "+r),c+=f.move(t.safe(e.title,{before:c,after:r,...f.current()})),c+=f.move(r),l()),o(),c}function dde(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function zh(e){return""+e.toString(16).toUpperCase()+";"}function Og(e,n,t){const i=Ff(e),r=Ff(n);return i===void 0?r===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}gq.peek=hde;function gq(e,n,t,i){const r=dde(t),a=t.enter("emphasis"),o=t.createTracker(i),l=o.move(r);let f=o.move(t.containerPhrasing(e,{after:r,before:l,...o.current()}));const c=f.charCodeAt(0),h=Og(i.before.charCodeAt(i.before.length-1),c,r);h.inside&&(f=zh(c)+f.slice(1));const d=f.charCodeAt(f.length-1),p=Og(i.after.charCodeAt(0),d,r);p.inside&&(f=f.slice(0,-1)+zh(d));const v=o.move(r);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},l+f+v}function hde(e,n,t){return t.options.emphasis||"*"}function mde(e,n){let t=!1;return ZC(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return t=!0,AS}),!!((!e.depth||e.depth<3)&&UC(e)&&(n.options.setext||t))}function pde(e,n,t,i){const r=Math.max(Math.min(6,e.depth||1),1),a=t.createTracker(i);if(mde(e,t)){const h=t.enter("headingSetext"),d=t.enter("phrasing"),p=t.containerPhrasing(e,{...a.current(),before:` -`,after:` -`});return d(),h(),p+` -`+(r===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` -`))+1))}const o="#".repeat(r),l=t.enter("headingAtx"),f=t.enter("phrasing");a.move(o+" ");let c=t.containerPhrasing(e,{before:"# ",after:` -`,...a.current()});return/^[\t ]/.test(c)&&(c=zh(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,t.options.closeAtx&&(c+=" "+o),f(),l(),c}yq.peek=vde;function yq(e){return e.value||""}function vde(){return"<"}bq.peek=gde;function bq(e,n,t,i){const r=JC(t),a=r==='"'?"Quote":"Apostrophe",o=t.enter("image");let l=t.enter("label");const f=t.createTracker(i);let c=f.move("![");return c+=f.move(t.safe(e.alt,{before:c,after:"]",...f.current()})),c+=f.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),c+=f.move("<"),c+=f.move(t.safe(e.url,{before:c,after:">",...f.current()})),c+=f.move(">")):(l=t.enter("destinationRaw"),c+=f.move(t.safe(e.url,{before:c,after:e.title?" ":")",...f.current()}))),l(),e.title&&(l=t.enter(`title${a}`),c+=f.move(" "+r),c+=f.move(t.safe(e.title,{before:c,after:r,...f.current()})),c+=f.move(r),l()),c+=f.move(")"),o(),c}function gde(){return"!"}wq.peek=yde;function wq(e,n,t,i){const r=e.referenceType,a=t.enter("imageReference");let o=t.enter("label");const l=t.createTracker(i);let f=l.move("![");const c=t.safe(e.alt,{before:f,after:"]",...l.current()});f+=l.move(c+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const d=t.safe(t.associationId(e),{before:f,after:"]",...l.current()});return o(),t.stack=h,a(),r==="full"||!c||c!==d?f+=l.move(d+"]"):r==="shortcut"?f=f.slice(0,-1):f+=l.move("]"),f}function yde(){return"!"}kq.peek=bde;function kq(e,n,t){let i=e.value||"",r="`",a=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++a \u007F]/.test(e.url))}xq.peek=wde;function xq(e,n,t,i){const r=JC(t),a=r==='"'?"Quote":"Apostrophe",o=t.createTracker(i);let l,f;if(_q(e,t)){const h=t.stack;t.stack=[],l=t.enter("autolink");let d=o.move("<");return d+=o.move(t.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),l(),t.stack=h,d}l=t.enter("link"),f=t.enter("label");let c=o.move("[");return c+=o.move(t.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=t.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(t.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(f=t.enter("destinationRaw"),c+=o.move(t.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),f(),e.title&&(f=t.enter(`title${a}`),c+=o.move(" "+r),c+=o.move(t.safe(e.title,{before:c,after:r,...o.current()})),c+=o.move(r),f()),c+=o.move(")"),l(),c}function wde(e,n,t){return _q(e,t)?"<":"["}Sq.peek=kde;function Sq(e,n,t,i){const r=e.referenceType,a=t.enter("linkReference");let o=t.enter("label");const l=t.createTracker(i);let f=l.move("[");const c=t.containerPhrasing(e,{before:f,after:"]",...l.current()});f+=l.move(c+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const d=t.safe(t.associationId(e),{before:f,after:"]",...l.current()});return o(),t.stack=h,a(),r==="full"||!c||c!==d?f+=l.move(d+"]"):r==="shortcut"?f=f.slice(0,-1):f+=l.move("]"),f}function kde(){return"["}function e9(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function _de(e){const n=e9(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function xde(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Cq(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Sde(e,n,t,i){const r=t.enter("list"),a=t.bulletCurrent;let o=e.ordered?xde(t):e9(t);const l=e.ordered?o==="."?")":".":_de(t);let f=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(f=!0),Cq(t)===o&&h){let d=-1;for(;++d -1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let o=a.length+1;(r==="tab"||r==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=t.createTracker(i);l.move(a+" ".repeat(o-a.length)),l.shift(o);const f=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,l.current()),h);return f(),c;function h(d,p,v){return p?(v?"":" ".repeat(o))+d:(v?a:a+" ".repeat(o-a.length))+d}}function Ode(e,n,t,i){const r=t.enter("paragraph"),a=t.enter("phrasing"),o=t.containerPhrasing(e,i);return a(),r(),o}const Ede=Ky(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Tde(e,n,t,i){return(e.children.some(function(o){return Ede(o)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}function Mde(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Aq.peek=jde;function Aq(e,n,t,i){const r=Mde(t),a=t.enter("strong"),o=t.createTracker(i),l=o.move(r+r);let f=o.move(t.containerPhrasing(e,{after:r,before:l,...o.current()}));const c=f.charCodeAt(0),h=Og(i.before.charCodeAt(i.before.length-1),c,r);h.inside&&(f=zh(c)+f.slice(1));const d=f.charCodeAt(f.length-1),p=Og(i.after.charCodeAt(0),d,r);p.inside&&(f=f.slice(0,-1)+zh(d));const v=o.move(r+r);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},l+f+v}function jde(e,n,t){return t.options.strong||"*"}function Dde(e,n,t,i){return t.safe(e.value,i)}function Rde(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Pde(e,n,t){const i=(Cq(t)+(t.options.ruleSpaces?" ":"")).repeat(Rde(t));return t.options.ruleSpaces?i.slice(0,-1):i}const Oq={blockquote:ide,break:Oj,code:ude,definition:cde,emphasis:gq,hardBreak:Oj,heading:pde,html:yq,image:bq,imageReference:wq,inlineCode:kq,link:xq,linkReference:Sq,list:Sde,listItem:Ade,paragraph:Ode,root:Tde,strong:Aq,text:Dde,thematicBreak:Pde};function Nde(){return{enter:{table:$de,tableData:Ej,tableHeader:Ej,tableRow:Lde},exit:{codeText:Ide,table:zde,tableData:Bk,tableHeader:Bk,tableRow:Bk}}}function $de(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function zde(e){this.exit(e),this.data.inTable=void 0}function Lde(e){this.enter({type:"tableRow",children:[]},e)}function Bk(e){this.exit(e)}function Ej(e){this.enter({type:"tableCell",children:[]},e)}function Ide(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Bde));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Bde(e,n){return n==="|"?n:e}function Fde(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,r=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:f,tableRow:l}};function o(v,y,b,w){return c(h(v,b,w),v.align)}function l(v,y,b,w){const _=d(v,b,w),S=c([_]);return S.slice(0,S.indexOf(` -`))}function f(v,y,b,w){const _=b.enter("tableCell"),S=b.enter("phrasing"),C=b.containerPhrasing(v,{...w,before:a,after:a});return S(),_(),C}function c(v,y){return nde(v,{align:y,alignDelimiters:i,padding:t,stringLength:r})}function h(v,y,b){const w=v.children;let _=-1;const S=[],C=y.enter("table");for(;++_ 0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const ahe={tokenize:hhe,partial:!0};function ohe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:fhe,continuation:{tokenize:che},exit:dhe}},text:{91:{name:"gfmFootnoteCall",tokenize:uhe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:she,resolveTo:lhe}}}}function she(e,n,t){const i=this;let r=i.events.length;const a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;r--;){const f=i.events[r][1];if(f.type==="labelImage"){o=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return l;function l(f){if(!o||!o._balanced)return t(f);const c=ja(i.sliceSerialize({start:o.end,end:i.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?t(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),n(f))}}function lhe(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",r,n],["exit",r,n],["enter",a,n],["enter",o,n],["exit",o,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(t,e.length-t+1,...l),e}function uhe(e,n,t){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,o;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),f}function f(d){return d!==94?t(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!o||d===null||d===91||St(d))return t(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return r.includes(ja(i.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(d)}return St(d)||(o=!0),a++,e.consume(d),d===92?h:c}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function fhe(e,n,t){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a,o=0,l;return f;function f(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):t(y)}function h(y){if(o>999||y===93&&!l||y===null||y===91||St(y))return t(y);if(y===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=ja(i.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return St(y)||(l=!0),o++,e.consume(y),y===92?d:h}function d(y){return y===91||y===92||y===93?(e.consume(y),o++,h):h(y)}function p(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),r.includes(a)||r.push(a),Jn(e,v,"gfmFootnoteDefinitionWhitespace")):t(y)}function v(y){return n(y)}}function che(e,n,t){return e.check(Um,n,e.attempt(ahe,n,t))}function dhe(e){e.exit("gfmFootnoteDefinition")}function hhe(e,n,t){const i=this;return Jn(e,r,"gfmFootnoteDefinitionIndent",5);function r(a){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(a):t(a)}}function mhe(e){let t=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:a,resolveAll:r};return t==null&&(t=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(o,l){let f=-1;for(;++f 1?f(y):(o.consume(y),d++,v);if(d<2&&!t)return f(y);const w=o.exit("strikethroughSequenceTemporary"),_=Ff(y);return w._open=!_||_===2&&!!b,w._close=!b||b===2&&!!_,l(y)}}}class phe{constructor(){this.map=[]}add(n,t,i){vhe(this,n,t,i)}consume(n){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const i=[];for(;t>0;)t-=1,i.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];i.push(n.slice()),n.length=0;let r=i.pop();for(;r;){for(const a of r)n.push(a);r=i.pop()}this.map.length=0}}function vhe(e,n,t,i){let r=0;if(!(t===0&&i.length===0)){for(;r -1;){const H=i.events[L][1].type;if(H==="lineEnding"||H==="linePrefix")L--;else break}const B=L>-1?i.events[L][1].type:null,G=B==="tableHead"||B==="tableRow"?M:f;return G===M&&i.parser.lazy[i.now().line]?t(R):G(R)}function f(R){return e.enter("tableHead"),e.enter("tableRow"),c(R)}function c(R){return R===124||(o=!0,a+=1),h(R)}function h(R){return R===null?t(R):pn(R)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),v):t(R):Wn(R)?Jn(e,h,"whitespace")(R):(a+=1,o&&(o=!1,r+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),o=!0,h):(e.enter("data"),d(R)))}function d(R){return R===null||R===124||St(R)?(e.exit("data"),h(R)):(e.consume(R),R===92?p:d)}function p(R){return R===92||R===124?(e.consume(R),d):d(R)}function v(R){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(R):(e.enter("tableDelimiterRow"),o=!1,Wn(R)?Jn(e,y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):y(R))}function y(R){return R===45||R===58?w(R):R===124?(o=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),b):A(R)}function b(R){return Wn(R)?Jn(e,w,"whitespace")(R):w(R)}function w(R){return R===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),_):R===45?(a+=1,_(R)):R===null||pn(R)?T(R):A(R)}function _(R){return R===45?(e.enter("tableDelimiterFiller"),S(R)):A(R)}function S(R){return R===45?(e.consume(R),S):R===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(R))}function C(R){return Wn(R)?Jn(e,T,"whitespace")(R):T(R)}function T(R){return R===124?y(R):R===null||pn(R)?!o||r!==a?A(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(R)):A(R)}function A(R){return t(R)}function M(R){return e.enter("tableRow"),j(R)}function j(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),j):R===null||pn(R)?(e.exit("tableRow"),n(R)):Wn(R)?Jn(e,j,"whitespace")(R):(e.enter("data"),N(R))}function N(R){return R===null||R===124||St(R)?(e.exit("data"),j(R)):(e.consume(R),R===92?F:N)}function F(R){return R===92||R===124?(e.consume(R),N):N(R)}}function whe(e,n){let t=-1,i=!0,r=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,f=0,c,h,d;const p=new phe;for(;++t t[2]+1){const y=t[2]+1,b=t[3]-t[2]-1;e.add(y,b,[])}}e.add(t[3]+1,0,[["exit",d,n]])}return r!==void 0&&(a.end=Object.assign({},_f(n.events,r)),e.add(r,0,[["exit",a,n]]),a=void 0),a}function Mj(e,n,t,i,r){const a=[],o=_f(n.events,t);r&&(r.end=Object.assign({},o),a.push(["exit",r,n])),i.end=Object.assign({},o),a.push(["exit",i,n]),e.add(t+1,0,a)}function _f(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}const khe={name:"tasklistCheck",tokenize:xhe};function _he(){return{text:{91:khe}}}function xhe(e,n,t){const i=this;return r;function r(f){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),a)}function a(f){return St(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),o):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),o):t(f)}function o(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):t(f)}function l(f){return pn(f)?n(f):Wn(f)?e.check({tokenize:She},n,t)(f):t(f)}}function She(e,n,t){return Jn(e,i,"whitespace");function i(r){return r===null?t(r):n(r)}}function Che(e){return WF([Xde(),ohe(),mhe(e),yhe(),_he()])}const Ahe={};function Ohe(e){const n=this,t=e||Ahe,i=n.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(Che(t)),a.push(Wde()),o.push(Gde(t))}const jS="kanban_chat_v1";function Ehe(){try{const e=localStorage.getItem(jS);if(!e)return[];const n=JSON.parse(e);if(Array.isArray(n))return n}catch{}return[]}function The({onBoardChange:e}){const[n,t]=O.useState(()=>Ehe()),[i,r]=O.useState(""),[a,o]=O.useState(!1),l=O.useRef(null);O.useEffect(()=>{localStorage.setItem(jS,JSON.stringify(n))},[n]),O.useEffect(()=>{var d;(d=l.current)==null||d.scrollTo({top:l.current.scrollHeight,behavior:"smooth"})},[n,a]);const f=async()=>{const d=i.trim();if(!d||a)return;const p={role:"user",content:d,ts:Date.now()},v=[...n,p];t(v),r(""),o(!0);try{const y=v.map(_=>({role:_.role,content:_.content})),b=await tie(y),w={role:"assistant",content:b.content,ts:Date.now(),tool_calls:b.tool_calls};t(_=>[..._,w]),b.board_changed&&e()}catch(y){it.show({color:"red",message:y.message}),t(b=>[...b,{role:"assistant",content:`Error: ${y.message}`,ts:Date.now()}])}finally{o(!1)}},c=d=>{d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),f())},h=()=>{t([]),localStorage.removeItem(jS)};return k.jsxs(Ut,{gap:0,h:"100%",children:[k.jsxs(wn,{justify:"space-between",p:"xs",style:{borderBottom:"1px solid var(--mantine-color-dark-4)"},children:[k.jsxs(wn,{gap:6,children:[k.jsx(jF,{size:18}),k.jsx(cn,{fw:600,size:"sm",children:"Asistente"})]}),k.jsx(vr,{label:"Limpiar conversacion",withArrow:!0,children:k.jsx(Yt,{variant:"subtle",color:"gray",size:"sm",onClick:h,disabled:n.length===0,children:k.jsx(Vy,{size:14})})})]}),k.jsx(lo,{viewportRef:l,style:{flex:1},type:"auto",p:"xs",children:k.jsxs(Ut,{gap:"xs",children:[n.length===0&&k.jsxs(cn,{size:"sm",c:"dimmed",ta:"center",mt:"md",children:["Escribe algo. Ejemplos:",k.jsx("br",{}),'- "crea columna Backlog"',k.jsx("br",{}),'- "anade tarjeta para revisar PR de Lucas en Doing"',k.jsx("br",{}),'- "que hay en Doing?"']}),n.map((d,p)=>k.jsx(Mhe,{msg:d},p)),a&&k.jsxs(wn,{gap:6,pl:"xs",children:[k.jsx(tr,{size:"xs"}),k.jsx(cn,{size:"xs",c:"dimmed",children:"Pensando..."})]})]})}),k.jsx(Ut,{gap:4,p:"xs",style:{borderTop:"1px solid var(--mantine-color-dark-4)"},children:k.jsxs(wn,{align:"flex-end",gap:4,wrap:"nowrap",children:[k.jsx(Oh,{placeholder:"Pide algo... (Enter envia, Shift+Enter newline)",value:i,onChange:d=>r(d.currentTarget.value),onKeyDown:c,disabled:a,autosize:!0,minRows:1,maxRows:6,style:{flex:1}}),k.jsx(Yt,{size:"lg",variant:"filled",onClick:f,disabled:!i.trim()||a,"aria-label":"Send",children:a?k.jsx(tr,{size:"xs",color:"white"}):k.jsx(Ioe,{size:16})})]})})]})}function Mhe({msg:e}){const n=e.role==="user";return k.jsx(ni,{p:"xs",radius:"md",withBorder:!0,bg:n?"blue.9":"dark.6",style:{alignSelf:n?"flex-end":"flex-start",maxWidth:"92%"},children:k.jsxs(Ut,{gap:4,children:[e.content&&k.jsx(_e,{className:"kanban-md",style:{fontSize:13,lineHeight:1.45,color:"var(--mantine-color-text)"},children:k.jsx(mce,{remarkPlugins:[Ohe],children:e.content})}),e.tool_calls&&e.tool_calls.length>0&&k.jsx(wn,{gap:4,wrap:"wrap",children:e.tool_calls.map((t,i)=>k.jsxs(gi,{size:"xs",color:t.ok?"teal":"red",variant:"light",title:t.error||"",children:[t.tool,!t.ok&&t.error?`: ${t.error}`:""]},i))})]})})}const jhe=["Lun","Mar","Mie","Jue","Vie","Sab","Dom"];function Dhe({users:e}){const[n,t]=O.useState(new Date),[i,r]=O.useState(null),[a,o]=O.useState(null),[l,f]=O.useState(!1);O.useEffect(()=>{let y=!1;f(!0);const b=ze(n).startOf("month").format("YYYY-MM-DD"),w=ze(n).endOf("month").format("YYYY-MM-DD");return kB({from:b,to:w,assignee_id:i||void 0}).then(_=>{y||o(_)}).finally(()=>{y||f(!1)}),()=>{y=!0}},[n,i]);const c=O.useMemo(()=>e.map(y=>({value:y.id,label:y.display_name||y.username})),[e]),h=O.useMemo(()=>{const y=new Map;if(!a)return y;for(const b of a.created_daily){const w=y.get(b.date)??{created:0,done:0};w.created=b.count,y.set(b.date,w)}for(const b of a.throughput_daily){const w=y.get(b.date)??{created:0,done:0};w.done=b.count,y.set(b.date,w)}return y},[a]),d=O.useMemo(()=>{const y=ze(n).startOf("month"),b=ze(n).endOf("month"),w=(y.day()+6)%7,_=[];for(let S=0;S Array.from(h.values()).reduce((y,b)=>y+b.created,0),[h]),v=O.useMemo(()=>Array.from(h.values()).reduce((y,b)=>y+b.done,0),[h]);return k.jsx(_e,{p:"md",children:k.jsxs(Ut,{gap:"md",children:[k.jsxs(wn,{justify:"space-between",children:[k.jsx(bu,{order:3,children:"Calendario"}),k.jsxs(wn,{gap:"xs",wrap:"nowrap",children:[k.jsx($C,{label:"Mes",size:"xs",value:n,onChange:y=>y&&t(typeof y=="string"?new Date(y):y),style:{minWidth:160},clearable:!1}),k.jsx(Ko,{label:"Asignado",size:"xs",placeholder:"Todos",value:i,onChange:r,data:c,clearable:!0,searchable:!0,style:{minWidth:180}})]})]}),k.jsxs(wn,{gap:"md",children:[k.jsx(ni,{withBorder:!0,p:"sm",radius:"md",children:k.jsxs(wn,{gap:6,children:[k.jsx(Nh,{size:14,color:"var(--mantine-color-blue-5)"}),k.jsx(cn,{size:"sm",fw:600,children:p}),k.jsx(cn,{size:"xs",c:"dimmed",children:"creadas"})]})}),k.jsx(ni,{withBorder:!0,p:"sm",radius:"md",children:k.jsxs(wn,{gap:6,children:[k.jsx(Ph,{size:14,color:"var(--mantine-color-green-5)"}),k.jsx(cn,{size:"sm",fw:600,children:v}),k.jsx(cn,{size:"xs",c:"dimmed",children:"hechas"})]})})]}),l&&!a?k.jsx(wc,{p:"xl",children:k.jsx(tr,{})}):k.jsxs(ni,{withBorder:!0,p:"md",radius:"md",children:[k.jsx(Mh,{cols:7,spacing:4,mb:4,children:jhe.map(y=>k.jsx(cn,{size:"xs",c:"dimmed",ta:"center",fw:600,children:y},y))}),k.jsx(Mh,{cols:7,spacing:4,children:d.map((y,b)=>{if(!y.date)return k.jsx(_e,{style:{minHeight:72}},b);const w=h.get(y.date)??{created:0,done:0},_=parseInt(y.date.slice(8,10),10),S=y.date===ze().format("YYYY-MM-DD");return k.jsx(ni,{p:6,withBorder:!0,radius:"sm",style:{minHeight:72,borderColor:S?"var(--mantine-color-blue-5)":void 0,background:w.done>0?"rgba(81, 207, 102, 0.08)":w.created>0?"rgba(34, 139, 230, 0.06)":void 0},children:k.jsxs(Ut,{gap:2,children:[k.jsx(cn,{size:"xs",fw:S?700:500,c:S?"blue":void 0,children:_}),w.created>0&&k.jsxs(wn,{gap:3,wrap:"nowrap",children:[k.jsx(Nh,{size:10,color:"var(--mantine-color-blue-5)"}),k.jsx(cn,{size:"xs",c:"blue",children:w.created})]}),w.done>0&&k.jsxs(wn,{gap:3,wrap:"nowrap",children:[k.jsx(Ph,{size:10,color:"var(--mantine-color-green-5)"}),k.jsx(cn,{size:"xs",c:"green",children:w.done})]})]})},b)})})]})]})})}function $q(e){return e?e.reduce((n,t)=>{const i=t.name.search(/\./);if(i>=0){const r=t.name.substring(i+1);return n[r]=t.label,n}return n[t.name]=t.label,n},{}):{}}var Rhe={tooltip:"m_e4d36c9b",tooltipLabel:"m_7f4bcb19",tooltipBody:"m_3de554dd",tooltipItemColor:"m_b30369b5",tooltipItem:"m_3de8964e",tooltipItemBody:"m_50186d10",tooltipItemName:"m_501dadf9",tooltipItemData:"m_50192318"};function Phe(e){return e.map(n=>{if(!n.payload||n.payload[n.name])return n;const t=n.name.search(/\./);if(t>=0){const i=n.name.substring(0,t),r={...n.payload[i]},a=Object.entries(n.payload).reduce((o,l)=>{const[f,c]=l;return f===i?o:{...o,[f]:c}},{});return{...n,name:n.name.substring(t+1),payload:{...a,...r}}}return n})}function Nhe(e,n){const t=Phe(e.filter(i=>i.fill!=="none"||!i.color));return n?t.filter(i=>i.name===n):t}function jj(e,n){return n==="radial"||n==="scatter"?Array.isArray(e.value)?e.value[1]-e.value[0]:e.value:Array.isArray(e.payload[e.dataKey])?e.payload[e.dataKey][1]-e.payload[e.dataKey][0]:e.payload[e.name]}const $he={type:"area",showColor:!0},t9=je(e=>{var R,L;const n=be("ChartTooltip",$he,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,payload:f,label:c,unit:h,type:d,segmentId:p,mod:v,series:y,valueFormatter:b,showColor:w,attributes:_,...S}=n,C=ti(),T=We({name:"ChartTooltip",classes:Rhe,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:_});if(!f)return null;const A=Nhe(f,p),M=d==="scatter"?(L=(R=f[0])==null?void 0:R.payload)==null?void 0:L.name:null,j=$q(y),N=c||M,F=A.map(B=>k.jsxs("div",{"data-type":d,...T("tooltipItem"),children:[k.jsxs("div",{...T("tooltipItemBody"),children:[w&&k.jsx("svg",{...T("tooltipItemColor"),children:k.jsx("circle",{r:6,fill:et(B.color,C),width:12,height:12,cx:6,cy:6})}),k.jsx("div",{...T("tooltipItemName"),children:j[B.name]||B.name})]}),k.jsxs("div",{...T("tooltipItemData"),children:[typeof b=="function"?b(jj(B,d)):jj(B,d),h||B.unit]})]},(B==null?void 0:B.key)??B.name));return k.jsxs(_e,{...T("tooltip"),mod:[{type:d},v],...S,children:[N&&k.jsx("div",{...T("tooltipLabel"),children:N}),k.jsx("div",{...T("tooltipBody"),children:F})]})});t9.displayName="@mantine/charts/ChartTooltip";var zq={legend:"m_847eaf",legendItem:"m_17da7e62",legendItemColor:"m_6e236e21",legendItemName:"m_8ff56c0d"};function zhe(e){return e.map(n=>{var i;const t=(i=n.dataKey)==null?void 0:i.split(".").pop();return{...n,dataKey:t,payload:{...n.payload,name:t,dataKey:t}}})}function Lhe(e){return zhe(e.filter(n=>n.color!=="none"))}const Zy=je(e=>{const n=be("ChartLegend",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,payload:f,onHighlight:c,legendPosition:h,mod:d,series:p,showColor:v,centered:y,attributes:b,...w}=n,_=We({name:"ChartLegend",classes:zq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:b,rootSelector:"legend"});if(!f)return null;const S=Lhe(f),C=$q(p),T=S.map((A,M)=>k.jsxs("div",{..._("legendItem"),onMouseEnter:()=>c(A.dataKey),onMouseLeave:()=>c(null),"data-without-color":v===!1||void 0,children:[k.jsx(kc,{color:A.color,size:12,..._("legendItemColor"),withShadow:!1}),k.jsx("p",{..._("legendItemName"),children:C[A.dataKey]||A.dataKey})]},M));return k.jsx(_e,{mod:[{position:h,centered:y},d],..._("legend"),...w,children:T})});Zy.displayName="@mantine/charts/ChartLegend";Zy.classes=zq;function Ihe({x:e,y:n,value:t,valueFormatter:i}){return k.jsx("g",{transform:`translate(${e},${n})`,children:k.jsx("text",{x:0,y:0,dy:-8,dx:-10,textAnchor:"start",fill:"var(--chart-text-color, var(--mantine-color-dimmed))",fontSize:8,children:i?i(t):t})})}var Qy={root:"m_a50f3e58",container:"m_af9188cb",grid:"m_a50a48bc",axis:"m_a507a517",axisLabel:"m_2293801d",tooltip:"m_92b296cd"},Fk,Dj;function yr(){if(Dj)return Fk;Dj=1;var e=Array.isArray;return Fk=e,Fk}var qk,Rj;function Lq(){if(Rj)return qk;Rj=1;var e=typeof cv=="object"&&cv&&cv.Object===Object&&cv;return qk=e,qk}var Hk,Pj;function co(){if(Pj)return Hk;Pj=1;var e=Lq(),n=typeof self=="object"&&self&&self.Object===Object&&self,t=e||n||Function("return this")();return Hk=t,Hk}var Uk,Nj;function Wm(){if(Nj)return Uk;Nj=1;var e=co(),n=e.Symbol;return Uk=n,Uk}var Vk,$j;function Bhe(){if($j)return Vk;$j=1;var e=Wm(),n=Object.prototype,t=n.hasOwnProperty,i=n.toString,r=e?e.toStringTag:void 0;function a(o){var l=t.call(o,r),f=o[r];try{o[r]=void 0;var c=!0}catch{}var h=i.call(o);return c&&(l?o[r]=f:delete o[r]),h}return Vk=a,Vk}var Wk,zj;function Fhe(){if(zj)return Wk;zj=1;var e=Object.prototype,n=e.toString;function t(i){return n.call(i)}return Wk=t,Wk}var Gk,Lj;function ss(){if(Lj)return Gk;Lj=1;var e=Wm(),n=Bhe(),t=Fhe(),i="[object Null]",r="[object Undefined]",a=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?r:i:a&&a in Object(l)?n(l):t(l)}return Gk=o,Gk}var Yk,Ij;function ls(){if(Ij)return Yk;Ij=1;function e(n){return n!=null&&typeof n=="object"}return Yk=e,Yk}var Kk,Bj;function Rc(){if(Bj)return Kk;Bj=1;var e=ss(),n=ls(),t="[object Symbol]";function i(r){return typeof r=="symbol"||n(r)&&e(r)==t}return Kk=i,Kk}var Xk,Fj;function i9(){if(Fj)return Xk;Fj=1;var e=yr(),n=Rc(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function r(a,o){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||n(a)?!0:i.test(a)||!t.test(a)||o!=null&&a in Object(o)}return Xk=r,Xk}var Zk,qj;function ul(){if(qj)return Zk;qj=1;function e(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}return Zk=e,Zk}var Qk,Hj;function r9(){if(Hj)return Qk;Hj=1;var e=ss(),n=ul(),t="[object AsyncFunction]",i="[object Function]",r="[object GeneratorFunction]",a="[object Proxy]";function o(l){if(!n(l))return!1;var f=e(l);return f==i||f==r||f==t||f==a}return Qk=o,Qk}var Jk,Uj;function qhe(){if(Uj)return Jk;Uj=1;var e=co(),n=e["__core-js_shared__"];return Jk=n,Jk}var e_,Vj;function Hhe(){if(Vj)return e_;Vj=1;var e=qhe(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function t(i){return!!n&&n in i}return e_=t,e_}var n_,Wj;function Iq(){if(Wj)return n_;Wj=1;var e=Function.prototype,n=e.toString;function t(i){if(i!=null){try{return n.call(i)}catch{}try{return i+""}catch{}}return""}return n_=t,n_}var t_,Gj;function Uhe(){if(Gj)return t_;Gj=1;var e=r9(),n=Hhe(),t=ul(),i=Iq(),r=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,f=o.toString,c=l.hasOwnProperty,h=RegExp("^"+f.call(c).replace(r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(p){if(!t(p)||n(p))return!1;var v=e(p)?h:a;return v.test(i(p))}return t_=d,t_}var i_,Yj;function Vhe(){if(Yj)return i_;Yj=1;function e(n,t){return n==null?void 0:n[t]}return i_=e,i_}var r_,Kj;function xu(){if(Kj)return r_;Kj=1;var e=Uhe(),n=Vhe();function t(i,r){var a=n(i,r);return e(a)?a:void 0}return r_=t,r_}var a_,Xj;function Jy(){if(Xj)return a_;Xj=1;var e=xu(),n=e(Object,"create");return a_=n,a_}var o_,Zj;function Whe(){if(Zj)return o_;Zj=1;var e=Jy();function n(){this.__data__=e?e(null):{},this.size=0}return o_=n,o_}var s_,Qj;function Ghe(){if(Qj)return s_;Qj=1;function e(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}return s_=e,s_}var l_,Jj;function Yhe(){if(Jj)return l_;Jj=1;var e=Jy(),n="__lodash_hash_undefined__",t=Object.prototype,i=t.hasOwnProperty;function r(a){var o=this.__data__;if(e){var l=o[a];return l===n?void 0:l}return i.call(o,a)?o[a]:void 0}return l_=r,l_}var u_,e8;function Khe(){if(e8)return u_;e8=1;var e=Jy(),n=Object.prototype,t=n.hasOwnProperty;function i(r){var a=this.__data__;return e?a[r]!==void 0:t.call(a,r)}return u_=i,u_}var f_,n8;function Xhe(){if(n8)return f_;n8=1;var e=Jy(),n="__lodash_hash_undefined__";function t(i,r){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=e&&r===void 0?n:r,this}return f_=t,f_}var c_,t8;function Zhe(){if(t8)return c_;t8=1;var e=Whe(),n=Ghe(),t=Yhe(),i=Khe(),r=Xhe();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l -1}return g_=n,g_}var y_,u8;function tme(){if(u8)return y_;u8=1;var e=e0();function n(t,i){var r=this.__data__,a=e(r,t);return a<0?(++this.size,r.push([t,i])):r[a][1]=i,this}return y_=n,y_}var b_,f8;function n0(){if(f8)return b_;f8=1;var e=Qhe(),n=Jhe(),t=eme(),i=nme(),r=tme();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l 0?1:-1},Vl=function(n){return ou(n)&&n.indexOf("%")===n.length-1},Fe=function(n){return Cme(n)&&!Nc(n)},Ame=function(n){return In(n)},yi=function(n){return Fe(n)||ou(n)},Ome=0,$c=function(n){var t=++Ome;return"".concat(n||"").concat(t)},su=function(n,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Fe(n)&&!ou(n))return i;var a;if(Vl(n)){var o=n.indexOf("%");a=t*parseFloat(n.slice(0,o))/100}else a=+n;return Nc(a)&&(a=i),r&&a>t&&(a=t),a},Us=function(n){if(!n)return null;var t=Object.keys(n);return t&&t.length?n[t[0]]:null},Eme=function(n){if(!Array.isArray(n))return!1;for(var t=n.length,i={},r=0;r =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Nme(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function RS(e){"@babel/helpers - typeof";return RS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},RS(e)}var L8={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},qo=function(n){return typeof n=="string"?n:n?n.displayName||n.name||"Component":""},I8=null,V_=null,c9=function e(n){if(n===I8&&Array.isArray(V_))return V_;var t=[];return O.Children.forEach(n,function(i){In(i)||(kme.isFragment(i)?t=t.concat(e(i.props.children)):t.push(i))}),V_=t,I8=n,t};function sa(e,n){var t=[],i=[];return Array.isArray(n)?i=n.map(function(r){return qo(r)}):i=[qo(n)],c9(e).forEach(function(r){var a=oa(r,"type.displayName")||oa(r,"type.name");i.indexOf(a)!==-1&&t.push(r)}),t}function Dr(e,n){var t=sa(e,n);return t&&t[0]}var B8=function(n){if(!n||!n.props)return!1;var t=n.props,i=t.width,r=t.height;return!(!Fe(i)||i<=0||!Fe(r)||r<=0)},$me=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],zme=function(n){return n&&n.type&&ou(n.type)&&$me.indexOf(n.type)>=0},Vq=function(n){return n&&RS(n)==="object"&&"clipDot"in n},Lme=function(n,t,i,r){var a,o=(a=U_==null?void 0:U_[r])!==null&&a!==void 0?a:[];return t.startsWith("data-")||!jn(n)&&(r&&o.includes(t)||jme.includes(t))||i&&f9.includes(t)},Nn=function(n,t,i){if(!n||typeof n=="function"||typeof n=="boolean")return null;var r=n;if(O.isValidElement(n)&&(r=n.props),!Pc(r))return null;var a={};return Object.keys(r).forEach(function(o){var l;Lme((l=r)===null||l===void 0?void 0:l[o],o,t,i)&&(a[o]=r[o])}),a},PS=function e(n,t){if(n===t)return!0;var i=O.Children.count(n);if(i!==O.Children.count(t))return!1;if(i===0)return!0;if(i===1)return F8(Array.isArray(n)?n[0]:n,Array.isArray(t)?t[0]:t);for(var r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Hme(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function $S(e){var n=e.children,t=e.width,i=e.height,r=e.viewBox,a=e.className,o=e.style,l=e.title,f=e.desc,c=qme(e,Fme),h=r||{width:t,height:i,x:0,y:0},d=sn("recharts-surface",a);return Z.createElement("svg",NS({},Nn(c,!0,"svg"),{className:d,width:t,height:i,style:o,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),Z.createElement("title",null,l),Z.createElement("desc",null,f),n)}var Ume=["children","className"];function zS(){return zS=Object.assign?Object.assign.bind():function(e){for(var n=1;n =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Wme(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var Et=Z.forwardRef(function(e,n){var t=e.children,i=e.className,r=Vme(e,Ume),a=sn("recharts-layer",i);return Z.createElement("g",zS({className:a},Nn(r,!0),{ref:n}),t)}),Ho=function(n,t){for(var i=arguments.length,r=new Array(i>2?i-2:0),a=2;aa?0:a+t),i=i>a?a:i,i<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(a);++r=a?t:e(t,i,r)}return G_=n,G_}var Y_,V8;function Wq(){if(V8)return Y_;V8=1;var e="\\ud800-\\udfff",n="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=n+t+i,a="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+e+r+a+"]");function f(c){return l.test(c)}return Y_=f,Y_}var K_,W8;function Kme(){if(W8)return K_;W8=1;function e(n){return n.split("")}return K_=e,K_}var X_,G8;function Xme(){if(G8)return X_;G8=1;var e="\\ud800-\\udfff",n="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=n+t+i,a="\\ufe0e\\ufe0f",o="["+e+"]",l="["+r+"]",f="\\ud83c[\\udffb-\\udfff]",c="(?:"+l+"|"+f+")",h="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",v="\\u200d",y=c+"?",b="["+a+"]?",w="(?:"+v+"(?:"+[h,d,p].join("|")+")"+b+y+")*",_=b+y+w,S="(?:"+[h+l+"?",l,d,p,o].join("|")+")",C=RegExp(f+"(?="+f+")|"+S+_,"g");function T(A){return A.match(C)||[]}return X_=T,X_}var Z_,Y8;function Zme(){if(Y8)return Z_;Y8=1;var e=Kme(),n=Wq(),t=Xme();function i(r){return n(r)?t(r):e(r)}return Z_=i,Z_}var Q_,K8;function Qme(){if(K8)return Q_;K8=1;var e=Yme(),n=Wq(),t=Zme(),i=Fq();function r(a){return function(o){o=i(o);var l=n(o)?t(o):void 0,f=l?l[0]:o.charAt(0),c=l?e(l,1).join(""):o.slice(1);return f[a]()+c}}return Q_=r,Q_}var J_,X8;function Jme(){if(X8)return J_;X8=1;var e=Qme(),n=e("toUpperCase");return J_=n,J_}var epe=Jme();const r0=at(epe);function Ot(e){return function(){return e}}const Gq=Math.cos,jg=Math.sin,$a=Math.sqrt,Dg=Math.PI,a0=2*Dg,LS=Math.PI,IS=2*LS,Ll=1e-6,npe=IS-Ll;function Yq(e){this._+=e[0];for(let n=1,t=e.length;n =0))throw new Error(`invalid digits: ${e}`);if(n>15)return Yq;const t=10**n;return function(i){this._+=i[0];for(let r=1,a=i.length;rLl)if(!(Math.abs(d*f-c*h)>Ll)||!a)this._append`L${this._x1=n},${this._y1=t}`;else{let v=i-o,y=r-l,b=f*f+c*c,w=v*v+y*y,_=Math.sqrt(b),S=Math.sqrt(p),C=a*Math.tan((LS-Math.acos((b+p-w)/(2*_*S)))/2),T=C/S,A=C/_;Math.abs(T-1)>Ll&&this._append`L${n+T*h},${t+T*d}`,this._append`A${a},${a},0,0,${+(d*v>h*y)},${this._x1=n+A*f},${this._y1=t+A*c}`}}arc(n,t,i,r,a,o){if(n=+n,t=+t,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let l=i*Math.cos(r),f=i*Math.sin(r),c=n+l,h=t+f,d=1^o,p=o?r-a:a-r;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>Ll||Math.abs(this._y1-h)>Ll)&&this._append`L${c},${h}`,i&&(p<0&&(p=p%IS+IS),p>npe?this._append`A${i},${i},0,1,${d},${n-l},${t-f}A${i},${i},0,1,${d},${this._x1=c},${this._y1=h}`:p>Ll&&this._append`A${i},${i},0,${+(p>=LS)},${d},${this._x1=n+i*Math.cos(a)},${this._y1=t+i*Math.sin(a)}`)}rect(n,t,i,r){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+t}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function d9(e){let n=3;return e.digits=function(t){if(!arguments.length)return n;if(t==null)n=null;else{const i=Math.floor(t);if(!(i>=0))throw new RangeError(`invalid digits: ${t}`);n=i}return e},()=>new ipe(n)}function h9(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Kq(e){this._context=e}Kq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:this._context.lineTo(e,n);break}}};function o0(e){return new Kq(e)}function Xq(e){return e[0]}function Zq(e){return e[1]}function Qq(e,n){var t=Ot(!0),i=null,r=o0,a=null,o=d9(l);e=typeof e=="function"?e:e===void 0?Xq:Ot(e),n=typeof n=="function"?n:n===void 0?Zq:Ot(n);function l(f){var c,h=(f=h9(f)).length,d,p=!1,v;for(i==null&&(a=r(v=o())),c=0;c<=h;++c)!(c =v;--y)l.point(C[y],T[y]);l.lineEnd(),l.areaEnd()}_&&(C[p]=+e(w,p,d),T[p]=+n(w,p,d),l.point(i?+i(w,p,d):C[p],t?+t(w,p,d):T[p]))}if(S)return l=null,S+""||null}function h(){return Qq().defined(r).curve(o).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ot(+d),i=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Ot(+d),c):e},c.x1=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:Ot(+d),c):i},c.y=function(d){return arguments.length?(n=typeof d=="function"?d:Ot(+d),t=null,c):n},c.y0=function(d){return arguments.length?(n=typeof d=="function"?d:Ot(+d),c):n},c.y1=function(d){return arguments.length?(t=d==null?null:typeof d=="function"?d:Ot(+d),c):t},c.lineX0=c.lineY0=function(){return h().x(e).y(n)},c.lineY1=function(){return h().x(e).y(t)},c.lineX1=function(){return h().x(i).y(n)},c.defined=function(d){return arguments.length?(r=typeof d=="function"?d:Ot(!!d),c):r},c.curve=function(d){return arguments.length?(o=d,a!=null&&(l=o(a)),c):o},c.context=function(d){return arguments.length?(d==null?a=l=null:l=o(a=d),c):a},c}class Jq{constructor(n,t){this._context=n,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(n,t){switch(n=+n,t=+t,this._point){case 0:{this._point=1,this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+n)/2,this._y0,this._x0,t,n,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,n,this._y0,n,t);break}}this._x0=n,this._y0=t}}function rpe(e){return new Jq(e,!0)}function ape(e){return new Jq(e,!1)}const m9={draw(e,n){const t=$a(n/Dg);e.moveTo(t,0),e.arc(0,0,t,0,a0)}},ope={draw(e,n){const t=$a(n/5)/2;e.moveTo(-3*t,-t),e.lineTo(-t,-t),e.lineTo(-t,-3*t),e.lineTo(t,-3*t),e.lineTo(t,-t),e.lineTo(3*t,-t),e.lineTo(3*t,t),e.lineTo(t,t),e.lineTo(t,3*t),e.lineTo(-t,3*t),e.lineTo(-t,t),e.lineTo(-3*t,t),e.closePath()}},eH=$a(1/3),spe=eH*2,lpe={draw(e,n){const t=$a(n/spe),i=t*eH;e.moveTo(0,-t),e.lineTo(i,0),e.lineTo(0,t),e.lineTo(-i,0),e.closePath()}},upe={draw(e,n){const t=$a(n),i=-t/2;e.rect(i,i,t,t)}},fpe=.8908130915292852,nH=jg(Dg/10)/jg(7*Dg/10),cpe=jg(a0/10)*nH,dpe=-Gq(a0/10)*nH,hpe={draw(e,n){const t=$a(n*fpe),i=cpe*t,r=dpe*t;e.moveTo(0,-t),e.lineTo(i,r);for(let a=1;a<5;++a){const o=a0*a/5,l=Gq(o),f=jg(o);e.lineTo(f*t,-l*t),e.lineTo(l*i-f*r,f*i+l*r)}e.closePath()}},e2=$a(3),mpe={draw(e,n){const t=-$a(n/(e2*3));e.moveTo(0,t*2),e.lineTo(-e2*t,-t),e.lineTo(e2*t,-t),e.closePath()}},Kr=-.5,Xr=$a(3)/2,BS=1/$a(12),ppe=(BS/2+1)*3,vpe={draw(e,n){const t=$a(n/ppe),i=t/2,r=t*BS,a=i,o=t*BS+t,l=-a,f=o;e.moveTo(i,r),e.lineTo(a,o),e.lineTo(l,f),e.lineTo(Kr*i-Xr*r,Xr*i+Kr*r),e.lineTo(Kr*a-Xr*o,Xr*a+Kr*o),e.lineTo(Kr*l-Xr*f,Xr*l+Kr*f),e.lineTo(Kr*i+Xr*r,Kr*r-Xr*i),e.lineTo(Kr*a+Xr*o,Kr*o-Xr*a),e.lineTo(Kr*l+Xr*f,Kr*f-Xr*l),e.closePath()}};function gpe(e,n){let t=null,i=d9(r);e=typeof e=="function"?e:Ot(e||m9),n=typeof n=="function"?n:Ot(n===void 0?64:+n);function r(){let a;if(t||(t=a=i()),e.apply(this,arguments).draw(t,+n.apply(this,arguments)),a)return t=null,a+""||null}return r.type=function(a){return arguments.length?(e=typeof a=="function"?a:Ot(a),r):e},r.size=function(a){return arguments.length?(n=typeof a=="function"?a:Ot(+a),r):n},r.context=function(a){return arguments.length?(t=a??null,r):t},r}function Rg(){}function Pg(e,n,t){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+n)/6,(e._y0+4*e._y1+t)/6)}function tH(e){this._context=e}tH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Pg(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Pg(this,e,n);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n}};function ype(e){return new tH(e)}function iH(e){this._context=e}iH.prototype={areaStart:Rg,areaEnd:Rg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._x2=e,this._y2=n;break;case 1:this._point=2,this._x3=e,this._y3=n;break;case 2:this._point=3,this._x4=e,this._y4=n,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+n)/6);break;default:Pg(this,e,n);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n}};function bpe(e){return new iH(e)}function rH(e){this._context=e}rH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var t=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 3:this._point=4;default:Pg(this,e,n);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n}};function wpe(e){return new rH(e)}function aH(e){this._context=e}aH.prototype={areaStart:Rg,areaEnd:Rg,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,n){e=+e,n=+n,this._point?this._context.lineTo(e,n):(this._point=1,this._context.moveTo(e,n))}};function kpe(e){return new aH(e)}function Z8(e){return e<0?-1:1}function Q8(e,n,t){var i=e._x1-e._x0,r=n-e._x1,a=(e._y1-e._y0)/(i||r<0&&-0),o=(t-e._y1)/(r||i<0&&-0),l=(a*r+o*i)/(i+r);return(Z8(a)+Z8(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function J8(e,n){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-n)/2:n}function n2(e,n,t){var i=e._x0,r=e._y0,a=e._x1,o=e._y1,l=(a-i)/3;e._context.bezierCurveTo(i+l,r+l*n,a-l,o-l*t,a,o)}function Ng(e){this._context=e}Ng.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:n2(this,this._t0,J8(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){var t=NaN;if(e=+e,n=+n,!(e===this._x1&&n===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3,n2(this,J8(this,t=Q8(this,e,n)),t);break;default:n2(this,this._t0,t=Q8(this,e,n));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n,this._t0=t}}};function oH(e){this._context=new sH(e)}(oH.prototype=Object.create(Ng.prototype)).point=function(e,n){Ng.prototype.point.call(this,n,e)};function sH(e){this._context=e}sH.prototype={moveTo:function(e,n){this._context.moveTo(n,e)},closePath:function(){this._context.closePath()},lineTo:function(e,n){this._context.lineTo(n,e)},bezierCurveTo:function(e,n,t,i,r,a){this._context.bezierCurveTo(n,e,i,t,a,r)}};function _pe(e){return new Ng(e)}function xpe(e){return new oH(e)}function lH(e){this._context=e}lH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,n=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],n[0]):this._context.moveTo(e[0],n[0]),t===2)this._context.lineTo(e[1],n[1]);else for(var i=eD(e),r=eD(n),a=0,o=1;o =0;--n)r[n]=(o[n]-r[n+1])/a[n];for(a[t-1]=(e[t]+r[t-1])/2,n=0;n =0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(e,n);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,n)}break}}this._x=e,this._y=n}};function Cpe(e){return new s0(e,.5)}function Ape(e){return new s0(e,0)}function Ope(e){return new s0(e,1)}function qf(e,n){if((o=e.length)>1)for(var t=1,i,r,a=e[n[0]],o,l=a.length;t =0;)t[n]=n;return t}function Epe(e,n){return e[n]}function Tpe(e){const n=[];return n.key=e,n}function Mpe(){var e=Ot([]),n=FS,t=qf,i=Epe;function r(a){var o=Array.from(e.apply(this,arguments),Tpe),l,f=o.length,c=-1,h;for(const d of a)for(l=0,++c;l 0){for(var t,i,r=0,a=e[0].length,o;r0){for(var t=0,i=e[n[0]],r,a=i.length;t0)||!((a=(r=e[n[0]]).length)>0))){for(var t=0,i=1,r,a,o;i=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Ipe(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var uH={symbolCircle:m9,symbolCross:ope,symbolDiamond:lpe,symbolSquare:upe,symbolStar:hpe,symbolTriangle:mpe,symbolWye:vpe},Bpe=Math.PI/180,Fpe=function(n){var t="symbol".concat(r0(n));return uH[t]||m9},qpe=function(n,t,i){if(t==="area")return n;switch(i){case"cross":return 5*n*n/9;case"diamond":return .5*n*n/Math.sqrt(3);case"square":return n*n;case"star":{var r=18*Bpe;return 1.25*n*n*(Math.tan(r)-Math.tan(r*2)*Math.pow(Math.tan(r),2))}case"triangle":return Math.sqrt(3)*n*n/4;case"wye":return(21-10*Math.sqrt(3))*n*n/8;default:return Math.PI*n*n/4}},Hpe=function(n,t){uH["symbol".concat(r0(n))]=t},p9=function(n){var t=n.type,i=t===void 0?"circle":t,r=n.size,a=r===void 0?64:r,o=n.sizeType,l=o===void 0?"area":o,f=Lpe(n,Ppe),c=tD(tD({},f),{},{type:i,size:a,sizeType:l}),h=function(){var w=Fpe(i),_=gpe().type(w).size(qpe(a,l,i));return _()},d=c.className,p=c.cx,v=c.cy,y=Nn(c,!0);return p===+p&&v===+v&&a===+a?Z.createElement("path",qS({},y,{className:sn("recharts-symbols",d),transform:"translate(".concat(p,", ").concat(v,")"),d:h()})):null};p9.registerSymbol=Hpe;function Hf(e){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hf(e)}function HS(){return HS=Object.assign?Object.assign.bind():function(e){for(var n=1;n `);var S=v.inactive?c:v.color;return Z.createElement("li",HS({className:w,style:d,key:"legend-item-".concat(y)},Mg(i.props,v,y)),Z.createElement($S,{width:o,height:o,viewBox:h,style:p},i.renderIcon(v)),Z.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},b?b(_,v,y):_))})}},{key:"render",value:function(){var i=this.props,r=i.payload,a=i.layout,o=i.align;if(!r||!r.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return Z.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(O.PureComponent);Ih(v9,"displayName","Legend");Ih(v9,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var t2,rD;function Jpe(){if(rD)return t2;rD=1;var e=n0();function n(){this.__data__=new e,this.size=0}return t2=n,t2}var i2,aD;function eve(){if(aD)return i2;aD=1;function e(n){var t=this.__data__,i=t.delete(n);return this.size=t.size,i}return i2=e,i2}var r2,oD;function nve(){if(oD)return r2;oD=1;function e(n){return this.__data__.get(n)}return r2=e,r2}var a2,sD;function tve(){if(sD)return a2;sD=1;function e(n){return this.__data__.has(n)}return a2=e,a2}var o2,lD;function ive(){if(lD)return o2;lD=1;var e=n0(),n=o9(),t=s9(),i=200;function r(a,o){var l=this.__data__;if(l instanceof e){var f=l.__data__;if(!n||f.length v))return!1;var b=d.get(o),w=d.get(l);if(b&&w)return b==l&&w==o;var _=-1,S=!0,C=f&r?new e:void 0;for(d.set(o,l),d.set(l,o);++_ -1&&i%1==0&&i -1&&t%1==0&&t<=e}return E2=n,E2}var T2,DD;function vve(){if(DD)return T2;DD=1;var e=ss(),n=w9(),t=ls(),i="[object Arguments]",r="[object Array]",a="[object Boolean]",o="[object Date]",l="[object Error]",f="[object Function]",c="[object Map]",h="[object Number]",d="[object Object]",p="[object RegExp]",v="[object Set]",y="[object String]",b="[object WeakMap]",w="[object ArrayBuffer]",_="[object DataView]",S="[object Float32Array]",C="[object Float64Array]",T="[object Int8Array]",A="[object Int16Array]",M="[object Int32Array]",j="[object Uint8Array]",N="[object Uint8ClampedArray]",F="[object Uint16Array]",R="[object Uint32Array]",L={};L[S]=L[C]=L[T]=L[A]=L[M]=L[j]=L[N]=L[F]=L[R]=!0,L[i]=L[r]=L[w]=L[a]=L[_]=L[o]=L[l]=L[f]=L[c]=L[h]=L[d]=L[p]=L[v]=L[y]=L[b]=!1;function B(G){return t(G)&&n(G.length)&&!!L[e(G)]}return T2=B,T2}var M2,RD;function bH(){if(RD)return M2;RD=1;function e(n){return function(t){return n(t)}}return M2=e,M2}var rh={exports:{}};rh.exports;var PD;function gve(){return PD||(PD=1,(function(e,n){var t=Lq(),i=n&&!n.nodeType&&n,r=i&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===i,o=a&&t.process,l=(function(){try{var f=r&&r.require&&r.require("util").types;return f||o&&o.binding&&o.binding("util")}catch{}})();e.exports=l})(rh,rh.exports)),rh.exports}var j2,ND;function wH(){if(ND)return j2;ND=1;var e=vve(),n=bH(),t=gve(),i=t&&t.isTypedArray,r=i?n(i):e;return j2=r,j2}var D2,$D;function yve(){if($D)return D2;$D=1;var e=hve(),n=y9(),t=yr(),i=yH(),r=b9(),a=wH(),o=Object.prototype,l=o.hasOwnProperty;function f(c,h){var d=t(c),p=!d&&n(c),v=!d&&!p&&i(c),y=!d&&!p&&!v&&a(c),b=d||p||v||y,w=b?e(c.length,String):[],_=w.length;for(var S in c)(h||l.call(c,S))&&!(b&&(S=="length"||v&&(S=="offset"||S=="parent")||y&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||r(S,_)))&&w.push(S);return w}return D2=f,D2}var R2,zD;function bve(){if(zD)return R2;zD=1;var e=Object.prototype;function n(t){var i=t&&t.constructor,r=typeof i=="function"&&i.prototype||e;return t===r}return R2=n,R2}var P2,LD;function kH(){if(LD)return P2;LD=1;function e(n,t){return function(i){return n(t(i))}}return P2=e,P2}var N2,ID;function wve(){if(ID)return N2;ID=1;var e=kH(),n=e(Object.keys,Object);return N2=n,N2}var $2,BD;function kve(){if(BD)return $2;BD=1;var e=bve(),n=wve(),t=Object.prototype,i=t.hasOwnProperty;function r(a){if(!e(a))return n(a);var o=[];for(var l in Object(a))i.call(a,l)&&l!="constructor"&&o.push(l);return o}return $2=r,$2}var z2,FD;function Gm(){if(FD)return z2;FD=1;var e=r9(),n=w9();function t(i){return i!=null&&n(i.length)&&!e(i)}return z2=t,z2}var L2,qD;function l0(){if(qD)return L2;qD=1;var e=yve(),n=kve(),t=Gm();function i(r){return t(r)?e(r):n(r)}return L2=i,L2}var I2,HD;function _ve(){if(HD)return I2;HD=1;var e=uve(),n=dve(),t=l0();function i(r){return e(r,t,n)}return I2=i,I2}var B2,UD;function xve(){if(UD)return B2;UD=1;var e=_ve(),n=1,t=Object.prototype,i=t.hasOwnProperty;function r(a,o,l,f,c,h){var d=l&n,p=e(a),v=p.length,y=e(o),b=y.length;if(v!=b&&!d)return!1;for(var w=v;w--;){var _=p[w];if(!(d?_ in o:i.call(o,_)))return!1}var S=h.get(a),C=h.get(o);if(S&&C)return S==o&&C==a;var T=!0;h.set(a,o),h.set(o,a);for(var A=d;++w -1}return dx=n,dx}var hx,g7;function Hve(){if(g7)return hx;g7=1;function e(n,t,i){for(var r=-1,a=n==null?0:n.length;++r=o){var _=c?null:r(f);if(_)return a(_);y=!1,p=i,w=new e}else w=c?[]:b;e:for(;++d =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function rge(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function age(e){return e.value}function oge(e,n){if(Z.isValidElement(e))return Z.cloneElement(e,n);if(typeof e=="function")return Z.createElement(e,n);n.ref;var t=ige(n,Kve);return Z.createElement(v9,t)}var C7=1,Uo=(function(e){function n(){var t;Xve(this,n);for(var i=arguments.length,r=new Array(i),a=0;aC7||Math.abs(r.height-this.lastBoundingBox.height)>C7)&&(this.lastBoundingBox.width=r.width,this.lastBoundingBox.height=r.height,i&&i(r)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,i&&i(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Do({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(i){var r=this.props,a=r.layout,o=r.align,l=r.verticalAlign,f=r.margin,c=r.chartWidth,h=r.chartHeight,d,p;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(o==="center"&&a==="vertical"){var v=this.getBBoxSnapshot();d={left:((c||0)-v.width)/2}}else d=o==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(l==="middle"){var y=this.getBBoxSnapshot();p={top:((h||0)-y.height)/2}}else p=l==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Do(Do({},d),p)}},{key:"render",value:function(){var i=this,r=this.props,a=r.content,o=r.width,l=r.height,f=r.wrapperStyle,c=r.payloadUniqBy,h=r.payload,d=Do(Do({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(f)),f);return Z.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(v){i.wrapperNode=v}},oge(a,Do(Do({},this.props),{},{payload:AH(h,c,age)})))}}],[{key:"getWithHeight",value:function(i,r){var a=Do(Do({},this.defaultProps),i.props),o=a.layout;return o==="vertical"&&Fe(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||r}:null}}])})(O.PureComponent);u0(Uo,"displayName","Legend");u0(Uo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var yx,A7;function sge(){if(A7)return yx;A7=1;var e=Wm(),n=y9(),t=yr(),i=e?e.isConcatSpreadable:void 0;function r(a){return t(a)||n(a)||!!(i&&a&&a[i])}return yx=r,yx}var bx,O7;function TH(){if(O7)return bx;O7=1;var e=gH(),n=sge();function t(i,r,a,o,l){var f=-1,c=i.length;for(a||(a=n),l||(l=[]);++f 0&&a(h)?r>1?t(h,r-1,a,o,l):e(l,h):o||(l[l.length]=h)}return l}return bx=t,bx}var wx,E7;function lge(){if(E7)return wx;E7=1;function e(n){return function(t,i,r){for(var a=-1,o=Object(t),l=r(t),f=l.length;f--;){var c=l[n?f:++a];if(i(o[c],c,o)===!1)break}return t}}return wx=e,wx}var kx,T7;function uge(){if(T7)return kx;T7=1;var e=lge(),n=e();return kx=n,kx}var _x,M7;function MH(){if(M7)return _x;M7=1;var e=uge(),n=l0();function t(i,r){return i&&e(i,r,n)}return _x=t,_x}var xx,j7;function fge(){if(j7)return xx;j7=1;var e=Gm();function n(t,i){return function(r,a){if(r==null)return r;if(!e(r))return t(r,a);for(var o=r.length,l=i?o:-1,f=Object(r);(i?l--:++l i||l&&f&&h&&!c&&!d||a&&f&&h||!r&&h||!o)return 1;if(!a&&!l&&!d&&t=c)return h;var d=r[a];return h*(d=="desc"?-1:1)}}return t.index-i.index}return Ex=n,Ex}var Tx,z7;function mge(){if(z7)return Tx;z7=1;var e=l9(),n=u9(),t=fl(),i=jH(),r=cge(),a=bH(),o=hge(),l=zc(),f=yr();function c(h,d,p){d.length?d=e(d,function(b){return f(b)?function(w){return n(w,b.length===1?b[0]:b)}:b}):d=[l];var v=-1;d=e(d,a(t));var y=i(h,function(b,w,_){var S=e(d,function(C){return C(b)});return{criteria:S,index:++v,value:b}});return r(y,function(b,w){return o(b,w,p)})}return Tx=c,Tx}var Mx,L7;function pge(){if(L7)return Mx;L7=1;function e(n,t,i){switch(i.length){case 0:return n.call(t);case 1:return n.call(t,i[0]);case 2:return n.call(t,i[0],i[1]);case 3:return n.call(t,i[0],i[1],i[2])}return n.apply(t,i)}return Mx=e,Mx}var jx,I7;function vge(){if(I7)return jx;I7=1;var e=pge(),n=Math.max;function t(i,r,a){return r=n(r===void 0?i.length-1:r,0),function(){for(var o=arguments,l=-1,f=n(o.length-r,0),c=Array(f);++l 0){if(++a>=e)return arguments[0]}else a=0;return r.apply(void 0,arguments)}}return Nx=i,Nx}var $x,U7;function wge(){if(U7)return $x;U7=1;var e=yge(),n=bge(),t=n(e);return $x=t,$x}var zx,V7;function kge(){if(V7)return zx;V7=1;var e=zc(),n=vge(),t=wge();function i(r,a){return t(n(r,a,e),r+"")}return zx=i,zx}var Lx,W7;function f0(){if(W7)return Lx;W7=1;var e=a9(),n=Gm(),t=b9(),i=ul();function r(a,o,l){if(!i(l))return!1;var f=typeof o;return(f=="number"?n(l)&&t(o,l.length):f=="string"&&o in l)?e(l[o],a):!1}return Lx=r,Lx}var Ix,G7;function _ge(){if(G7)return Ix;G7=1;var e=TH(),n=mge(),t=kge(),i=f0(),r=t(function(a,o){if(a==null)return[];var l=o.length;return l>1&&i(a,o[0],o[1])?o=[]:l>2&&i(o[0],o[1],o[2])&&(o=[o[0]]),n(a,e(o,1),[])});return Ix=r,Ix}var xge=_ge();const x9=at(xge);function Bh(e){"@babel/helpers - typeof";return Bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bh(e)}function WS(){return WS=Object.assign?Object.assign.bind():function(e){for(var n=1;n e.length)&&(n=e.length);for(var t=0,i=new Array(n);t =n.x),"".concat(Bd,"-left"),Fe(t)&&n&&Fe(n.x)&&t =n.y),"".concat(Bd,"-top"),Fe(i)&&n&&Fe(n.y)&&i b?Math.max(h,f[i]):Math.max(d,f[i])}function Lge(e){var n=e.translateX,t=e.translateY,i=e.useTranslate3d;return{transform:i?"translate3d(".concat(n,"px, ").concat(t,"px, 0)"):"translate(".concat(n,"px, ").concat(t,"px)")}}function Ige(e){var n=e.allowEscapeViewBox,t=e.coordinate,i=e.offsetTopLeft,r=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,f=e.viewBox,c,h,d;return o.height>0&&o.width>0&&t?(h=X7({allowEscapeViewBox:n,coordinate:t,key:"x",offsetTopLeft:i,position:r,reverseDirection:a,tooltipDimension:o.width,viewBox:f,viewBoxDimension:f.width}),d=X7({allowEscapeViewBox:n,coordinate:t,key:"y",offsetTopLeft:i,position:r,reverseDirection:a,tooltipDimension:o.height,viewBox:f,viewBoxDimension:f.height}),c=Lge({translateX:h,translateY:d,useTranslate3d:l})):c=$ge,{cssProperties:c,cssClasses:zge({translateX:h,translateY:d,coordinate:t})}}function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vf(e)}function Z7(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Q7(e){for(var n=1;n J7||Math.abs(i.height-this.state.lastBoundingBox.height)>J7)&&this.setState({lastBoundingBox:{width:i.width,height:i.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var i,r;this.props.active&&this.updateBBox(),this.state.dismissed&&(((i=this.props.coordinate)===null||i===void 0?void 0:i.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var i=this,r=this.props,a=r.active,o=r.allowEscapeViewBox,l=r.animationDuration,f=r.animationEasing,c=r.children,h=r.coordinate,d=r.hasPayload,p=r.isAnimationActive,v=r.offset,y=r.position,b=r.reverseDirection,w=r.useTranslate3d,_=r.viewBox,S=r.wrapperStyle,C=Ige({allowEscapeViewBox:o,coordinate:h,offsetTopLeft:v,position:y,reverseDirection:b,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:_}),T=C.cssClasses,A=C.cssProperties,M=Q7(Q7({transition:p&&a?"transform ".concat(l,"ms ").concat(f):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&d?"visible":"hidden",position:"absolute",top:0,left:0},S);return Z.createElement("div",{tabIndex:-1,className:T,style:M,ref:function(N){i.wrapperNode=N}},c)}}])})(O.PureComponent),Kge=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Su={isSsr:Kge()};function Wf(e){"@babel/helpers - typeof";return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wf(e)}function eR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function nR(e){for(var n=1;n 0;return Z.createElement(Yge,{allowEscapeViewBox:o,animationDuration:l,animationEasing:f,isAnimationActive:p,active:a,coordinate:h,hasPayload:M,offset:v,position:w,reverseDirection:_,useTranslate3d:S,viewBox:C,wrapperStyle:T},a1e(c,nR(nR({},this.props),{},{payload:A})))}}])})(O.PureComponent);S9(na,"displayName","Tooltip");S9(na,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Su.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Fx,tR;function o1e(){if(tR)return Fx;tR=1;var e=co(),n=function(){return e.Date.now()};return Fx=n,Fx}var qx,iR;function s1e(){if(iR)return qx;iR=1;var e=/\s/;function n(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}return qx=n,qx}var Hx,rR;function l1e(){if(rR)return Hx;rR=1;var e=s1e(),n=/^\s+/;function t(i){return i&&i.slice(0,e(i)+1).replace(n,"")}return Hx=t,Hx}var Ux,aR;function zH(){if(aR)return Ux;aR=1;var e=l1e(),n=ul(),t=Rc(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function f(c){if(typeof c=="number")return c;if(t(c))return i;if(n(c)){var h=typeof c.valueOf=="function"?c.valueOf():c;c=n(h)?h+"":h}if(typeof c!="string")return c===0?c:+c;c=e(c);var d=a.test(c);return d||o.test(c)?l(c.slice(2),d?2:8):r.test(c)?i:+c}return Ux=f,Ux}var Vx,oR;function u1e(){if(oR)return Vx;oR=1;var e=ul(),n=o1e(),t=zH(),i="Expected a function",r=Math.max,a=Math.min;function o(l,f,c){var h,d,p,v,y,b,w=0,_=!1,S=!1,C=!0;if(typeof l!="function")throw new TypeError(i);f=t(f)||0,e(c)&&(_=!!c.leading,S="maxWait"in c,p=S?r(t(c.maxWait)||0,f):p,C="trailing"in c?!!c.trailing:C);function T(G){var H=h,U=d;return h=d=void 0,w=G,v=l.apply(U,H),v}function A(G){return w=G,y=setTimeout(N,f),_?T(G):v}function M(G){var H=G-b,U=G-w,P=f-H;return S?a(P,p-U):P}function j(G){var H=G-b,U=G-w;return b===void 0||H>=f||H<0||S&&U>=p}function N(){var G=n();if(j(G))return F(G);y=setTimeout(N,M(G))}function F(G){return y=void 0,C&&h?T(G):(h=d=void 0,v)}function R(){y!==void 0&&clearTimeout(y),w=0,h=b=d=y=void 0}function L(){return y===void 0?v:F(n())}function B(){var G=n(),H=j(G);if(h=arguments,d=this,b=G,H){if(y===void 0)return A(b);if(S)return clearTimeout(y),y=setTimeout(N,f),T(b)}return y===void 0&&(y=setTimeout(N,f)),v}return B.cancel=R,B.flush=L,B}return Vx=o,Vx}var Wx,sR;function f1e(){if(sR)return Wx;sR=1;var e=u1e(),n=ul(),t="Expected a function";function i(r,a,o){var l=!0,f=!0;if(typeof r!="function")throw new TypeError(t);return n(o)&&(l="leading"in o?!!o.leading:l,f="trailing"in o?!!o.trailing:f),e(r,a,{leading:l,maxWait:a,trailing:f})}return Wx=i,Wx}var c1e=f1e();const LH=at(c1e);function qh(e){"@babel/helpers - typeof";return qh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qh(e)}function lR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Tv(e){for(var n=1;n e.length)&&(n=e.length);for(var t=0,i=new Array(n);t 0&&(G=LH(G,b,{trailing:!0,leading:!1}));var H=new ResizeObserver(G),U=A.current.getBoundingClientRect(),P=U.width,z=U.height;return L(P,z),H.observe(A.current),function(){H.disconnect()}},[L,b]);var B=O.useMemo(function(){var G=F.containerWidth,H=F.containerHeight;if(G<0||H<0)return null;Ho(Vl(o)||Vl(f),`The width(%s) and height(%s) are both fixed numbers, - maybe you don't need to use a ResponsiveContainer.`,o,f),Ho(!t||t>0,"The aspect(%s) must be greater than zero.",t);var U=Vl(o)?G:o,P=Vl(f)?H:f;t&&t>0&&(U?P=U/t:P&&(U=P*t),p&&P>p&&(P=p)),Ho(U>0||P>0,`The width(%s) and height(%s) of chart should be greater than 0, - please check the style of container, or the props width(%s) and height(%s), - or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,U,P,o,f,h,d,t);var z=!Array.isArray(v)&&qo(v.type).endsWith("Chart");return Z.Children.map(v,function(q){return Z.isValidElement(q)?O.cloneElement(q,Tv({width:U,height:P},z?{style:Tv({height:"100%",width:"100%",maxHeight:P,maxWidth:U},q.props.style)}:{})):q})},[t,v,f,p,d,h,F,o]);return Z.createElement("div",{id:w?"".concat(w):void 0,className:sn("recharts-responsive-container",_),style:Tv(Tv({},T),{},{width:o,height:f,minWidth:h,minHeight:d,maxHeight:p}),ref:A},B)}),IH=function(n){return null};IH.displayName="Cell";function Hh(e){"@babel/helpers - typeof";return Hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hh(e)}function fR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function XS(e){for(var n=1;n 1&&arguments[1]!==void 0?arguments[1]:{};if(n==null||Su.isSsr)return{width:0,height:0};var i=C1e(t),r=JSON.stringify({text:n,copyStyle:i});if(vf.widthCache[r])return vf.widthCache[r];try{var a=document.getElementById(cR);a||(a=document.createElement("span"),a.setAttribute("id",cR),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=XS(XS({},S1e),i);Object.assign(a.style,o),a.textContent="".concat(n);var l=a.getBoundingClientRect(),f={width:l.width,height:l.height};return vf.widthCache[r]=f,++vf.cacheCount>x1e&&(vf.cacheCount=0,vf.widthCache={}),f}catch{return{width:0,height:0}}},A1e=function(n){return{top:n.top+window.scrollY-document.documentElement.clientTop,left:n.left+window.scrollX-document.documentElement.clientLeft}};function Uh(e){"@babel/helpers - typeof";return Uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Uh(e)}function Bg(e,n){return M1e(e)||T1e(e,n)||E1e(e,n)||O1e()}function O1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E1e(e,n){if(e){if(typeof e=="string")return dR(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return dR(e,n)}}function dR(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function U1e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function yR(e,n){return Y1e(e)||G1e(e,n)||W1e(e,n)||V1e()}function V1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W1e(e,n){if(e){if(typeof e=="string")return bR(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return bR(e,n)}}function bR(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t 0&&arguments[0]!==void 0?arguments[0]:[];return U.reduce(function(P,z){var q=z.word,Y=z.width,D=P[P.length-1];if(D&&(r==null||a||D.width+Y+i z.width?P:z})};if(!h)return v;for(var b="…",w=function(U){var P=d.slice(0,U),z=HH({breakAll:c,style:f,children:P+b}).wordsWithComputedWidth,q=p(z),Y=q.length>o||y(q).width>Number(r);return[Y,q]},_=0,S=d.length-1,C=0,T;_<=S&&C<=d.length-1;){var A=Math.floor((_+S)/2),M=A-1,j=w(M),N=yR(j,2),F=N[0],R=N[1],L=w(A),B=yR(L,1),G=B[0];if(!F&&!G&&(_=A+1),F&&G&&(S=A-1),!F&&G){T=R;break}C++}return T||v},wR=function(n){var t=In(n)?[]:n.toString().split(qH);return[{words:t}]},X1e=function(n){var t=n.width,i=n.scaleToFit,r=n.children,a=n.style,o=n.breakAll,l=n.maxLines;if((t||i)&&!Su.isSsr){var f,c,h=HH({breakAll:o,children:r,style:a});if(h){var d=h.wordsWithComputedWidth,p=h.spaceWidth;f=d,c=p}else return wR(r);return K1e({breakAll:o,children:r,maxLines:l,style:a},f,c,t,i)}return wR(r)},kR="#808080",Fg=function(n){var t=n.x,i=t===void 0?0:t,r=n.y,a=r===void 0?0:r,o=n.lineHeight,l=o===void 0?"1em":o,f=n.capHeight,c=f===void 0?"0.71em":f,h=n.scaleToFit,d=h===void 0?!1:h,p=n.textAnchor,v=p===void 0?"start":p,y=n.verticalAnchor,b=y===void 0?"end":y,w=n.fill,_=w===void 0?kR:w,S=gR(n,q1e),C=O.useMemo(function(){return X1e({breakAll:S.breakAll,children:S.children,maxLines:S.maxLines,scaleToFit:d,style:S.style,width:S.width})},[S.breakAll,S.children,S.maxLines,d,S.style,S.width]),T=S.dx,A=S.dy,M=S.angle,j=S.className,N=S.breakAll,F=gR(S,H1e);if(!yi(i)||!yi(a))return null;var R=i+(Fe(T)?T:0),L=a+(Fe(A)?A:0),B;switch(b){case"start":B=Gx("calc(".concat(c,")"));break;case"middle":B=Gx("calc(".concat((C.length-1)/2," * -").concat(l," + (").concat(c," / 2))"));break;default:B=Gx("calc(".concat(C.length-1," * -").concat(l,")"));break}var G=[];if(d){var H=C[0].width,U=S.width;G.push("scale(".concat((Fe(U)?U/H:1)/H,")"))}return M&&G.push("rotate(".concat(M,", ").concat(R,", ").concat(L,")")),G.length&&(F.transform=G.join(" ")),Z.createElement("text",ZS({},Nn(F,!0),{x:R,y:L,className:sn("recharts-text",j),textAnchor:v,fill:_.includes("url")?kR:_}),C.map(function(P,z){var q=P.words.join(N?"":" ");return Z.createElement("tspan",{x:R,dy:z===0?B:l,key:"".concat(q,"-").concat(z)},q)}))};function Zs(e,n){return e==null||n==null?NaN:e n?1:e>=n?0:NaN}function Z1e(e,n){return e==null||n==null?NaN:n e?1:n>=e?0:NaN}function A9(e){let n,t,i;e.length!==2?(n=Zs,t=(l,f)=>Zs(e(l),f),i=(l,f)=>e(l)-f):(n=e===Zs||e===Z1e?e:Q1e,t=e,i=e);function r(l,f,c=0,h=l.length){if(c >>1;t(l[d],f)<0?c=d+1:h=d}while(c >>1;t(l[d],f)<=0?c=d+1:h=d}while(c c&&i(l[d-1],f)>-i(l[d],f)?d-1:d}return{left:r,center:o,right:a}}function Q1e(){return 0}function UH(e){return e===null?NaN:+e}function*J1e(e,n){for(let t of e)t!=null&&(t=+t)>=t&&(yield t)}const eye=A9(Zs),Ym=eye.right;A9(UH).center;class _R extends Map{constructor(n,t=iye){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[i,r]of n)this.set(i,r)}get(n){return super.get(xR(this,n))}has(n){return super.has(xR(this,n))}set(n,t){return super.set(nye(this,n),t)}delete(n){return super.delete(tye(this,n))}}function xR({_intern:e,_key:n},t){const i=n(t);return e.has(i)?e.get(i):t}function nye({_intern:e,_key:n},t){const i=n(t);return e.has(i)?e.get(i):(e.set(i,t),t)}function tye({_intern:e,_key:n},t){const i=n(t);return e.has(i)&&(t=e.get(i),e.delete(i)),t}function iye(e){return e!==null&&typeof e=="object"?e.valueOf():e}function rye(e=Zs){if(e===Zs)return VH;if(typeof e!="function")throw new TypeError("compare is not a function");return(n,t)=>{const i=e(n,t);return i||i===0?i:(e(t,t)===0)-(e(n,n)===0)}}function VH(e,n){return(e==null||!(e>=e))-(n==null||!(n>=n))||(e n?1:0)}const aye=Math.sqrt(50),oye=Math.sqrt(10),sye=Math.sqrt(2);function qg(e,n,t){const i=(n-e)/Math.max(0,t),r=Math.floor(Math.log10(i)),a=i/Math.pow(10,r),o=a>=aye?10:a>=oye?5:a>=sye?2:1;let l,f,c;return r<0?(c=Math.pow(10,-r)/o,l=Math.round(e*c),f=Math.round(n*c),l/c n&&--f,c=-c):(c=Math.pow(10,r)*o,l=Math.round(e/c),f=Math.round(n/c),l*c n&&--f),f 0))return[];if(e===n)return[e];const i=n =r))return[];const l=a-r+1,f=new Array(l);if(i)if(o<0)for(let c=0;c =i)&&(t=i);return t}function CR(e,n){let t;for(const i of e)i!=null&&(t>i||t===void 0&&i>=i)&&(t=i);return t}function WH(e,n,t=0,i=1/0,r){if(n=Math.floor(n),t=Math.floor(Math.max(0,t)),i=Math.floor(Math.min(e.length-1,i)),!(t<=n&&n<=i))return e;for(r=r===void 0?VH:rye(r);i>t;){if(i-t>600){const f=i-t+1,c=n-t+1,h=Math.log(f),d=.5*Math.exp(2*h/3),p=.5*Math.sqrt(h*d*(f-d)/f)*(c-f/2<0?-1:1),v=Math.max(t,Math.floor(n-c*d/f+p)),y=Math.min(i,Math.floor(n+(f-c)*d/f+p));WH(e,n,v,y,r)}const a=e[n];let o=t,l=i;for(Fd(e,t,n),r(e[i],a)>0&&Fd(e,t,i);o 0;)--l}r(e[t],a)===0?Fd(e,t,l):(++l,Fd(e,l,i)),l<=n&&(t=l+1),n<=l&&(i=l-1)}return e}function Fd(e,n,t){const i=e[n];e[n]=e[t],e[t]=i}function lye(e,n,t){if(e=Float64Array.from(J1e(e)),!(!(i=e.length)||isNaN(n=+n))){if(n<=0||i<2)return CR(e);if(n>=1)return SR(e);var i,r=(i-1)*n,a=Math.floor(r),o=SR(WH(e,a).subarray(0,a+1)),l=CR(e.subarray(a+1));return o+(l-o)*(r-a)}}function uye(e,n,t=UH){if(!(!(i=e.length)||isNaN(n=+n))){if(n<=0||i<2)return+t(e[0],0,e);if(n>=1)return+t(e[i-1],i-1,e);var i,r=(i-1)*n,a=Math.floor(r),o=+t(e[a],a,e),l=+t(e[a+1],a+1,e);return o+(l-o)*(r-a)}}function fye(e,n,t){e=+e,n=+n,t=(r=arguments.length)<2?(n=e,e=0,1):r<3?1:+t;for(var i=-1,r=Math.max(0,Math.ceil((n-e)/t))|0,a=new Array(r);++i >8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):t===8?jv(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):t===4?jv(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=dye.exec(e))?new mr(n[1],n[2],n[3],1):(n=hye.exec(e))?new mr(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=mye.exec(e))?jv(n[1],n[2],n[3],n[4]):(n=pye.exec(e))?jv(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=vye.exec(e))?DR(n[1],n[2]/100,n[3]/100,1):(n=gye.exec(e))?DR(n[1],n[2]/100,n[3]/100,n[4]):AR.hasOwnProperty(e)?TR(AR[e]):e==="transparent"?new mr(NaN,NaN,NaN,0):null}function TR(e){return new mr(e>>16&255,e>>8&255,e&255,1)}function jv(e,n,t,i){return i<=0&&(e=n=t=NaN),new mr(e,n,t,i)}function wye(e){return e instanceof Km||(e=Yh(e)),e?(e=e.rgb(),new mr(e.r,e.g,e.b,e.opacity)):new mr}function t4(e,n,t,i){return arguments.length===1?wye(e):new mr(e,n,t,i??1)}function mr(e,n,t,i){this.r=+e,this.g=+n,this.b=+t,this.opacity=+i}E9(mr,t4,YH(Km,{brighter(e){return e=e==null?Hg:Math.pow(Hg,e),new mr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Wh:Math.pow(Wh,e),new mr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new mr(Ql(this.r),Ql(this.g),Ql(this.b),Ug(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:MR,formatHex:MR,formatHex8:kye,formatRgb:jR,toString:jR}));function MR(){return`#${Wl(this.r)}${Wl(this.g)}${Wl(this.b)}`}function kye(){return`#${Wl(this.r)}${Wl(this.g)}${Wl(this.b)}${Wl((isNaN(this.opacity)?1:this.opacity)*255)}`}function jR(){const e=Ug(this.opacity);return`${e===1?"rgb(":"rgba("}${Ql(this.r)}, ${Ql(this.g)}, ${Ql(this.b)}${e===1?")":`, ${e})`}`}function Ug(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ql(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wl(e){return e=Ql(e),(e<16?"0":"")+e.toString(16)}function DR(e,n,t,i){return i<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new Oa(e,n,t,i)}function KH(e){if(e instanceof Oa)return new Oa(e.h,e.s,e.l,e.opacity);if(e instanceof Km||(e=Yh(e)),!e)return new Oa;if(e instanceof Oa)return e;e=e.rgb();var n=e.r/255,t=e.g/255,i=e.b/255,r=Math.min(n,t,i),a=Math.max(n,t,i),o=NaN,l=a-r,f=(a+r)/2;return l?(n===a?o=(t-i)/l+(t0&&f<1?0:o,new Oa(o,l,f,e.opacity)}function _ye(e,n,t,i){return arguments.length===1?KH(e):new Oa(e,n,t,i??1)}function Oa(e,n,t,i){this.h=+e,this.s=+n,this.l=+t,this.opacity=+i}E9(Oa,_ye,YH(Km,{brighter(e){return e=e==null?Hg:Math.pow(Hg,e),new Oa(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Wh:Math.pow(Wh,e),new Oa(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*n,r=2*t-i;return new mr(Yx(e>=240?e-240:e+120,r,i),Yx(e,r,i),Yx(e<120?e+240:e-120,r,i),this.opacity)},clamp(){return new Oa(RR(this.h),Dv(this.s),Dv(this.l),Ug(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ug(this.opacity);return`${e===1?"hsl(":"hsla("}${RR(this.h)}, ${Dv(this.s)*100}%, ${Dv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function RR(e){return e=(e||0)%360,e<0?e+360:e}function Dv(e){return Math.max(0,Math.min(1,e||0))}function Yx(e,n,t){return(e<60?n+(t-n)*e/60:e<180?t:e<240?n+(t-n)*(240-e)/60:n)*255}const T9=e=>()=>e;function xye(e,n){return function(t){return e+t*n}}function Sye(e,n,t){return e=Math.pow(e,t),n=Math.pow(n,t)-e,t=1/t,function(i){return Math.pow(e+i*n,t)}}function Cye(e){return(e=+e)==1?XH:function(n,t){return t-n?Sye(n,t,e):T9(isNaN(n)?t:n)}}function XH(e,n){var t=n-e;return t?xye(e,t):T9(isNaN(e)?n:e)}const PR=(function e(n){var t=Cye(n);function i(r,a){var o=t((r=t4(r)).r,(a=t4(a)).r),l=t(r.g,a.g),f=t(r.b,a.b),c=XH(r.opacity,a.opacity);return function(h){return r.r=o(h),r.g=l(h),r.b=f(h),r.opacity=c(h),r+""}}return i.gamma=e,i})(1);function Aye(e,n){n||(n=[]);var t=e?Math.min(n.length,e.length):0,i=n.slice(),r;return function(a){for(r=0;r t&&(a=n.slice(t,a),l[o]?l[o]+=a:l[++o]=a),(i=i[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,f.push({i:o,x:Vg(i,r)})),t=Kx.lastIndex;return t n&&(t=e,e=n,n=t),function(i){return Math.max(e,Math.min(n,i))}}function zye(e,n,t){var i=e[0],r=e[1],a=n[0],o=n[1];return r2?Lye:zye,f=c=null,d}function d(p){return p==null||isNaN(p=+p)?a:(f||(f=l(e.map(i),n,t)))(i(o(p)))}return d.invert=function(p){return o(r((c||(c=l(n,e.map(i),Vg)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,Wg),h()):e.slice()},d.range=function(p){return arguments.length?(n=Array.from(p),h()):n.slice()},d.rangeRound=function(p){return n=Array.from(p),t=M9,h()},d.clamp=function(p){return arguments.length?(o=p?!0:er,h()):o!==er},d.interpolate=function(p){return arguments.length?(t=p,h()):t},d.unknown=function(p){return arguments.length?(a=p,d):a},function(p,v){return i=p,r=v,h()}}function j9(){return c0()(er,er)}function Iye(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Gg(e,n){if(!isFinite(e)||e===0)return null;var t=(e=n?e.toExponential(n-1):e.toExponential()).indexOf("e"),i=e.slice(0,t);return[i.length>1?i[0]+i.slice(2):i,+e.slice(t+1)]}function Gf(e){return e=Gg(Math.abs(e)),e?e[1]:NaN}function Bye(e,n){return function(t,i){for(var r=t.length,a=[],o=0,l=e[0],f=0;r>0&&l>0&&(f+l+1>i&&(l=Math.max(1,i-f)),a.push(t.substring(r-=l,r+l)),!((f+=l+1)>i));)l=e[o=(o+1)%e.length];return a.reverse().join(n)}}function Fye(e){return function(n){return n.replace(/[0-9]/g,function(t){return e[+t]})}}var qye=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kh(e){if(!(n=qye.exec(e)))throw new Error("invalid format: "+e);var n;return new D9({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}Kh.prototype=D9.prototype;function D9(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}D9.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Hye(e){e:for(var n=e.length,t=1,i=-1,r;t 0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(r+1):e}var Yg;function Uye(e,n){var t=Gg(e,n);if(!t)return Yg=void 0,e.toPrecision(n);var i=t[0],r=t[1],a=r-(Yg=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Gg(e,Math.max(0,n+a-1))[0]}function $R(e,n){var t=Gg(e,n);if(!t)return e+"";var i=t[0],r=t[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const zR={"%":(e,n)=>(e*100).toFixed(n),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Iye,e:(e,n)=>e.toExponential(n),f:(e,n)=>e.toFixed(n),g:(e,n)=>e.toPrecision(n),o:e=>Math.round(e).toString(8),p:(e,n)=>$R(e*100,n),r:$R,s:Uye,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function LR(e){return e}var IR=Array.prototype.map,BR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Vye(e){var n=e.grouping===void 0||e.thousands===void 0?LR:Bye(IR.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",r=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?LR:Fye(IR.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function c(d,p){d=Kh(d);var v=d.fill,y=d.align,b=d.sign,w=d.symbol,_=d.zero,S=d.width,C=d.comma,T=d.precision,A=d.trim,M=d.type;M==="n"?(C=!0,M="g"):zR[M]||(T===void 0&&(T=12),A=!0,M="g"),(_||v==="0"&&y==="=")&&(_=!0,v="0",y="=");var j=(p&&p.prefix!==void 0?p.prefix:"")+(w==="$"?t:w==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():""),N=(w==="$"?i:/[%p]/.test(M)?o:"")+(p&&p.suffix!==void 0?p.suffix:""),F=zR[M],R=/[defgprs%]/.test(M);T=T===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function L(B){var G=j,H=N,U,P,z;if(M==="c")H=F(B)+H,B="";else{B=+B;var q=B<0||1/B<0;if(B=isNaN(B)?f:F(Math.abs(B),T),A&&(B=Hye(B)),q&&+B==0&&b!=="+"&&(q=!1),G=(q?b==="("?b:l:b==="-"||b==="("?"":b)+G,H=(M==="s"&&!isNaN(B)&&Yg!==void 0?BR[8+Yg/3]:"")+H+(q&&b==="("?")":""),R){for(U=-1,P=B.length;++U z||z>57){H=(z===46?r+B.slice(U+1):B.slice(U))+H,B=B.slice(0,U);break}}}C&&!_&&(B=n(B,1/0));var Y=G.length+B.length+H.length,D=Y
>1)+G+B+H+D.slice(Y);break;default:B=D+G+B+H;break}return a(B)}return L.toString=function(){return d+""},L}function h(d,p){var v=Math.max(-8,Math.min(8,Math.floor(Gf(p)/3)))*3,y=Math.pow(10,-v),b=c((d=Kh(d),d.type="f",d),{suffix:BR[8+v/3]});return function(w){return b(y*w)}}return{format:c,formatPrefix:h}}var Rv,R9,ZH;Wye({thousands:",",grouping:[3],currency:["$",""]});function Wye(e){return Rv=Vye(e),R9=Rv.format,ZH=Rv.formatPrefix,Rv}function Gye(e){return Math.max(0,-Gf(Math.abs(e)))}function Yye(e,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Gf(n)/3)))*3-Gf(Math.abs(e)))}function Kye(e,n){return e=Math.abs(e),n=Math.abs(n)-e,Math.max(0,Gf(n)-Gf(e))+1}function QH(e,n,t,i){var r=e4(e,n,t),a;switch(i=Kh(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(n));return i.precision==null&&!isNaN(a=Yye(r,o))&&(i.precision=a),ZH(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=Kye(r,Math.max(Math.abs(e),Math.abs(n))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=Gye(r))&&(i.precision=a-(i.type==="%")*2);break}}return R9(i)}function cl(e){var n=e.domain;return e.ticks=function(t){var i=n();return QS(i[0],i[i.length-1],t??10)},e.tickFormat=function(t,i){var r=n();return QH(r[0],r[r.length-1],t??10,i)},e.nice=function(t){t==null&&(t=10);var i=n(),r=0,a=i.length-1,o=i[r],l=i[a],f,c,h=10;for(l0;){if(c=JS(o,l,t),c===f)return i[r]=o,i[a]=l,n(i);if(c>0)o=Math.floor(o/c)*c,l=Math.ceil(l/c)*c;else if(c<0)o=Math.ceil(o*c)/c,l=Math.floor(l*c)/c;else break;f=c}return e},e}function Kg(){var e=j9();return e.copy=function(){return Xm(e,Kg())},va.apply(e,arguments),cl(e)}function JH(e){var n;function t(i){return i==null||isNaN(i=+i)?n:i}return t.invert=t,t.domain=t.range=function(i){return arguments.length?(e=Array.from(i,Wg),t):e.slice()},t.unknown=function(i){return arguments.length?(n=i,t):n},t.copy=function(){return JH(e).unknown(n)},e=arguments.length?Array.from(e,Wg):[0,1],cl(t)}function eU(e,n){e=e.slice();var t=0,i=e.length-1,r=e[t],a=e[i],o;return a Math.pow(e,n)}function e0e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),n=>Math.log(n)/e)}function HR(e){return(n,t)=>-e(-n,t)}function P9(e){const n=e(FR,qR),t=n.domain;let i=10,r,a;function o(){return r=e0e(i),a=Jye(i),t()[0]<0?(r=HR(r),a=HR(a),e(Xye,Zye)):e(FR,qR),n}return n.base=function(l){return arguments.length?(i=+l,o()):i},n.domain=function(l){return arguments.length?(t(l),o()):t()},n.ticks=l=>{const f=t();let c=f[0],h=f[f.length-1];const d=h 0){for(;p<=v;++p)for(y=1;yh)break;_.push(b)}}else for(;p<=v;++p)for(y=i-1;y>=1;--y)if(b=p>0?y/a(-p):y*a(p),!(b h)break;_.push(b)}_.length*2 {if(l==null&&(l=10),f==null&&(f=i===10?"s":","),typeof f!="function"&&(!(i%1)&&(f=Kh(f)).precision==null&&(f.trim=!0),f=R9(f)),l===1/0)return f;const c=Math.max(1,i*l/n.ticks().length);return h=>{let d=h/a(Math.round(r(h)));return d*i t(eU(t(),{floor:l=>a(Math.floor(r(l))),ceil:l=>a(Math.ceil(r(l)))})),n}function nU(){const e=P9(c0()).domain([1,10]);return e.copy=()=>Xm(e,nU()).base(e.base()),va.apply(e,arguments),e}function UR(e){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/e))}}function VR(e){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*e}}function N9(e){var n=1,t=e(UR(n),VR(n));return t.constant=function(i){return arguments.length?e(UR(n=+i),VR(n)):n},cl(t)}function tU(){var e=N9(c0());return e.copy=function(){return Xm(e,tU()).constant(e.constant())},va.apply(e,arguments)}function WR(e){return function(n){return n<0?-Math.pow(-n,e):Math.pow(n,e)}}function n0e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function t0e(e){return e<0?-e*e:e*e}function $9(e){var n=e(er,er),t=1;function i(){return t===1?e(er,er):t===.5?e(n0e,t0e):e(WR(t),WR(1/t))}return n.exponent=function(r){return arguments.length?(t=+r,i()):t},cl(n)}function z9(){var e=$9(c0());return e.copy=function(){return Xm(e,z9()).exponent(e.exponent())},va.apply(e,arguments),e}function i0e(){return z9.apply(null,arguments).exponent(.5)}function GR(e){return Math.sign(e)*e*e}function r0e(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function iU(){var e=j9(),n=[0,1],t=!1,i;function r(a){var o=r0e(e(a));return isNaN(o)?i:t?Math.round(o):o}return r.invert=function(a){return e.invert(GR(a))},r.domain=function(a){return arguments.length?(e.domain(a),r):e.domain()},r.range=function(a){return arguments.length?(e.range((n=Array.from(a,Wg)).map(GR)),r):n.slice()},r.rangeRound=function(a){return r.range(a).round(!0)},r.round=function(a){return arguments.length?(t=!!a,r):t},r.clamp=function(a){return arguments.length?(e.clamp(a),r):e.clamp()},r.unknown=function(a){return arguments.length?(i=a,r):i},r.copy=function(){return iU(e.domain(),n).round(t).clamp(e.clamp()).unknown(i)},va.apply(r,arguments),cl(r)}function rU(){var e=[],n=[],t=[],i;function r(){var o=0,l=Math.max(1,n.length);for(t=new Array(l-1);++o 0?t[l-1]:e[0],l =t?[i[t-1],n]:[i[c-1],i[c]]},o.unknown=function(f){return arguments.length&&(a=f),o},o.thresholds=function(){return i.slice()},o.copy=function(){return aU().domain([e,n]).range(r).unknown(a)},va.apply(cl(o),arguments)}function oU(){var e=[.5],n=[0,1],t,i=1;function r(a){return a!=null&&a<=a?n[Ym(e,a,0,i)]:t}return r.domain=function(a){return arguments.length?(e=Array.from(a),i=Math.min(e.length,n.length-1),r):e.slice()},r.range=function(a){return arguments.length?(n=Array.from(a),i=Math.min(e.length,n.length-1),r):n.slice()},r.invertExtent=function(a){var o=n.indexOf(a);return[e[o-1],e[o]]},r.unknown=function(a){return arguments.length?(t=a,r):t},r.copy=function(){return oU().domain(e).range(n).unknown(t)},va.apply(r,arguments)}const Xx=new Date,Zx=new Date;function bi(e,n,t,i){function r(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return r.floor=a=>(e(a=new Date(+a)),a),r.ceil=a=>(e(a=new Date(a-1)),n(a,1),e(a),a),r.round=a=>{const o=r(a),l=r.ceil(a);return a-o (n(a=new Date(+a),o==null?1:Math.floor(o)),a),r.range=(a,o,l)=>{const f=[];if(a=r.ceil(a),l=l==null?1:Math.floor(l),!(a 0))return f;let c;do f.push(c=new Date(+a)),n(a,l),e(a);while(cbi(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;n(o,-1),!a(o););else for(;--l>=0;)for(;n(o,1),!a(o););}),t&&(r.count=(a,o)=>(Xx.setTime(+a),Zx.setTime(+o),e(Xx),e(Zx),Math.floor(t(Xx,Zx))),r.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?r.filter(i?o=>i(o)%a===0:o=>r.count(0,o)%a===0):r)),r}const Xg=bi(()=>{},(e,n)=>{e.setTime(+e+n)},(e,n)=>n-e);Xg.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?bi(n=>{n.setTime(Math.floor(n/e)*e)},(n,t)=>{n.setTime(+n+t*e)},(n,t)=>(t-n)/e):Xg);Xg.range;const $o=1e3,aa=$o*60,zo=aa*60,Xo=zo*24,L9=Xo*7,YR=Xo*30,Qx=Xo*365,Gl=bi(e=>{e.setTime(e-e.getMilliseconds())},(e,n)=>{e.setTime(+e+n*$o)},(e,n)=>(n-e)/$o,e=>e.getUTCSeconds());Gl.range;const I9=bi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$o)},(e,n)=>{e.setTime(+e+n*aa)},(e,n)=>(n-e)/aa,e=>e.getMinutes());I9.range;const B9=bi(e=>{e.setUTCSeconds(0,0)},(e,n)=>{e.setTime(+e+n*aa)},(e,n)=>(n-e)/aa,e=>e.getUTCMinutes());B9.range;const F9=bi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$o-e.getMinutes()*aa)},(e,n)=>{e.setTime(+e+n*zo)},(e,n)=>(n-e)/zo,e=>e.getHours());F9.range;const q9=bi(e=>{e.setUTCMinutes(0,0,0)},(e,n)=>{e.setTime(+e+n*zo)},(e,n)=>(n-e)/zo,e=>e.getUTCHours());q9.range;const Zm=bi(e=>e.setHours(0,0,0,0),(e,n)=>e.setDate(e.getDate()+n),(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*aa)/Xo,e=>e.getDate()-1);Zm.range;const d0=bi(e=>{e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n)},(e,n)=>(n-e)/Xo,e=>e.getUTCDate()-1);d0.range;const sU=bi(e=>{e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n)},(e,n)=>(n-e)/Xo,e=>Math.floor(e/Xo));sU.range;function Cu(e){return bi(n=>{n.setDate(n.getDate()-(n.getDay()+7-e)%7),n.setHours(0,0,0,0)},(n,t)=>{n.setDate(n.getDate()+t*7)},(n,t)=>(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*aa)/L9)}const h0=Cu(0),Zg=Cu(1),a0e=Cu(2),o0e=Cu(3),Yf=Cu(4),s0e=Cu(5),l0e=Cu(6);h0.range;Zg.range;a0e.range;o0e.range;Yf.range;s0e.range;l0e.range;function Au(e){return bi(n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-e)%7),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCDate(n.getUTCDate()+t*7)},(n,t)=>(t-n)/L9)}const m0=Au(0),Qg=Au(1),u0e=Au(2),f0e=Au(3),Kf=Au(4),c0e=Au(5),d0e=Au(6);m0.range;Qg.range;u0e.range;f0e.range;Kf.range;c0e.range;d0e.range;const H9=bi(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,n)=>{e.setMonth(e.getMonth()+n)},(e,n)=>n.getMonth()-e.getMonth()+(n.getFullYear()-e.getFullYear())*12,e=>e.getMonth());H9.range;const U9=bi(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCMonth(e.getUTCMonth()+n)},(e,n)=>n.getUTCMonth()-e.getUTCMonth()+(n.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());U9.range;const Zo=bi(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n)},(e,n)=>n.getFullYear()-e.getFullYear(),e=>e.getFullYear());Zo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:bi(n=>{n.setFullYear(Math.floor(n.getFullYear()/e)*e),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,t)=>{n.setFullYear(n.getFullYear()+t*e)});Zo.range;const Qo=bi(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n)},(e,n)=>n.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Qo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:bi(n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/e)*e),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCFullYear(n.getUTCFullYear()+t*e)});Qo.range;function lU(e,n,t,i,r,a){const o=[[Gl,1,$o],[Gl,5,5*$o],[Gl,15,15*$o],[Gl,30,30*$o],[a,1,aa],[a,5,5*aa],[a,15,15*aa],[a,30,30*aa],[r,1,zo],[r,3,3*zo],[r,6,6*zo],[r,12,12*zo],[i,1,Xo],[i,2,2*Xo],[t,1,L9],[n,1,YR],[n,3,3*YR],[e,1,Qx]];function l(c,h,d){const p=h w).right(o,p);if(v===o.length)return e.every(e4(c/Qx,h/Qx,d));if(v===0)return Xg.every(Math.max(e4(c,h,d),1));const[y,b]=o[p/o[v-1][2] 53)return null;"w"in ne||(ne.w=1),"Z"in ne?(ve=e3(qd(ne.y,0,1)),xe=ve.getUTCDay(),ve=xe>4||xe===0?Qg.ceil(ve):Qg(ve),ve=d0.offset(ve,(ne.V-1)*7),ne.y=ve.getUTCFullYear(),ne.m=ve.getUTCMonth(),ne.d=ve.getUTCDate()+(ne.w+6)%7):(ve=Jx(qd(ne.y,0,1)),xe=ve.getDay(),ve=xe>4||xe===0?Zg.ceil(ve):Zg(ve),ve=Zm.offset(ve,(ne.V-1)*7),ne.y=ve.getFullYear(),ne.m=ve.getMonth(),ne.d=ve.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),xe="Z"in ne?e3(qd(ne.y,0,1)).getUTCDay():Jx(qd(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+ne.W*7-(xe+5)%7:ne.w+ne.U*7-(xe+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,e3(ne)):Jx(ne)}}function N(ae,le,Se,ne){for(var $e=0,ve=le.length,xe=Se.length,De,we;$e =xe)return-1;if(De=le.charCodeAt($e++),De===37){if(De=le.charAt($e++),we=A[De in KR?le.charAt($e++):De],!we||(ne=we(ae,Se,ne))<0)return-1}else if(De!=Se.charCodeAt(ne++))return-1}return ne}function F(ae,le,Se){var ne=c.exec(le.slice(Se));return ne?(ae.p=h.get(ne[0].toLowerCase()),Se+ne[0].length):-1}function R(ae,le,Se){var ne=v.exec(le.slice(Se));return ne?(ae.w=y.get(ne[0].toLowerCase()),Se+ne[0].length):-1}function L(ae,le,Se){var ne=d.exec(le.slice(Se));return ne?(ae.w=p.get(ne[0].toLowerCase()),Se+ne[0].length):-1}function B(ae,le,Se){var ne=_.exec(le.slice(Se));return ne?(ae.m=S.get(ne[0].toLowerCase()),Se+ne[0].length):-1}function G(ae,le,Se){var ne=b.exec(le.slice(Se));return ne?(ae.m=w.get(ne[0].toLowerCase()),Se+ne[0].length):-1}function H(ae,le,Se){return N(ae,n,le,Se)}function U(ae,le,Se){return N(ae,t,le,Se)}function P(ae,le,Se){return N(ae,i,le,Se)}function z(ae){return o[ae.getDay()]}function q(ae){return a[ae.getDay()]}function Y(ae){return f[ae.getMonth()]}function D(ae){return l[ae.getMonth()]}function V(ae){return r[+(ae.getHours()>=12)]}function W(ae){return 1+~~(ae.getMonth()/3)}function $(ae){return o[ae.getUTCDay()]}function X(ae){return a[ae.getUTCDay()]}function ee(ae){return f[ae.getUTCMonth()]}function oe(ae){return l[ae.getUTCMonth()]}function ue(ae){return r[+(ae.getUTCHours()>=12)]}function ye(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var le=M(ae+="",C);return le.toString=function(){return ae},le},parse:function(ae){var le=j(ae+="",!1);return le.toString=function(){return ae},le},utcFormat:function(ae){var le=M(ae+="",T);return le.toString=function(){return ae},le},utcParse:function(ae){var le=j(ae+="",!0);return le.toString=function(){return ae},le}}}var KR={"-":"",_:" ",0:"0"},Ai=/^\s*\d+/,y0e=/^%/,b0e=/[\\^$*+?|[\]().{}]/g;function rt(e,n,t){var i=e<0?"-":"",r=(i?-e:e)+"",a=r.length;return i+(a [n.toLowerCase(),t]))}function k0e(e,n,t){var i=Ai.exec(n.slice(t,t+1));return i?(e.w=+i[0],t+i[0].length):-1}function _0e(e,n,t){var i=Ai.exec(n.slice(t,t+1));return i?(e.u=+i[0],t+i[0].length):-1}function x0e(e,n,t){var i=Ai.exec(n.slice(t,t+2));return i?(e.U=+i[0],t+i[0].length):-1}function S0e(e,n,t){var i=Ai.exec(n.slice(t,t+2));return i?(e.V=+i[0],t+i[0].length):-1}function C0e(e,n,t){var i=Ai.exec(n.slice(t,t+2));return i?(e.W=+i[0],t+i[0].length):-1}function XR(e,n,t){var i=Ai.exec(n.slice(t,t+4));return i?(e.y=+i[0],t+i[0].length):-1}function ZR(e,n,t){var i=Ai.exec(n.slice(t,t+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),t+i[0].length):-1}function A0e(e,n,t){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(t,t+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),t+i[0].length):-1}function O0e(e,n,t){var i=Ai.exec(n.slice(t,t+1));return i?(e.q=i[0]*3-3,t+i[0].length):-1}function E0e(e,n,t){var i=Ai.exec(n.slice(t,t+2));return i?(e.m=i[0]-1,t+i[0].length):-1}function QR(e,n,t){var i=Ai.exec(n.slice(t,t+2));return i?(e.d=+i[0],t+i[0].length):-1}function T0e(e,n,t){var i=Ai.exec(n.slice(t,t+3));return i?(e.m=0,e.d=+i[0],t+i[0].length):-1}function JR(e,n,t){var i=Ai.exec(n.slice(t,t+2));return i?(e.H=+i[0],t+i[0].length):-1}function M0e(e,n,t){var i=Ai.exec(n.slice(t,t+2));return i?(e.M=+i[0],t+i[0].length):-1}function j0e(e,n,t){var i=Ai.exec(n.slice(t,t+2));return i?(e.S=+i[0],t+i[0].length):-1}function D0e(e,n,t){var i=Ai.exec(n.slice(t,t+3));return i?(e.L=+i[0],t+i[0].length):-1}function R0e(e,n,t){var i=Ai.exec(n.slice(t,t+6));return i?(e.L=Math.floor(i[0]/1e3),t+i[0].length):-1}function P0e(e,n,t){var i=y0e.exec(n.slice(t,t+1));return i?t+i[0].length:-1}function N0e(e,n,t){var i=Ai.exec(n.slice(t));return i?(e.Q=+i[0],t+i[0].length):-1}function $0e(e,n,t){var i=Ai.exec(n.slice(t));return i?(e.s=+i[0],t+i[0].length):-1}function eP(e,n){return rt(e.getDate(),n,2)}function z0e(e,n){return rt(e.getHours(),n,2)}function L0e(e,n){return rt(e.getHours()%12||12,n,2)}function I0e(e,n){return rt(1+Zm.count(Zo(e),e),n,3)}function uU(e,n){return rt(e.getMilliseconds(),n,3)}function B0e(e,n){return uU(e,n)+"000"}function F0e(e,n){return rt(e.getMonth()+1,n,2)}function q0e(e,n){return rt(e.getMinutes(),n,2)}function H0e(e,n){return rt(e.getSeconds(),n,2)}function U0e(e){var n=e.getDay();return n===0?7:n}function V0e(e,n){return rt(h0.count(Zo(e)-1,e),n,2)}function fU(e){var n=e.getDay();return n>=4||n===0?Yf(e):Yf.ceil(e)}function W0e(e,n){return e=fU(e),rt(Yf.count(Zo(e),e)+(Zo(e).getDay()===4),n,2)}function G0e(e){return e.getDay()}function Y0e(e,n){return rt(Zg.count(Zo(e)-1,e),n,2)}function K0e(e,n){return rt(e.getFullYear()%100,n,2)}function X0e(e,n){return e=fU(e),rt(e.getFullYear()%100,n,2)}function Z0e(e,n){return rt(e.getFullYear()%1e4,n,4)}function Q0e(e,n){var t=e.getDay();return e=t>=4||t===0?Yf(e):Yf.ceil(e),rt(e.getFullYear()%1e4,n,4)}function J0e(e){var n=e.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+rt(n/60|0,"0",2)+rt(n%60,"0",2)}function nP(e,n){return rt(e.getUTCDate(),n,2)}function ebe(e,n){return rt(e.getUTCHours(),n,2)}function nbe(e,n){return rt(e.getUTCHours()%12||12,n,2)}function tbe(e,n){return rt(1+d0.count(Qo(e),e),n,3)}function cU(e,n){return rt(e.getUTCMilliseconds(),n,3)}function ibe(e,n){return cU(e,n)+"000"}function rbe(e,n){return rt(e.getUTCMonth()+1,n,2)}function abe(e,n){return rt(e.getUTCMinutes(),n,2)}function obe(e,n){return rt(e.getUTCSeconds(),n,2)}function sbe(e){var n=e.getUTCDay();return n===0?7:n}function lbe(e,n){return rt(m0.count(Qo(e)-1,e),n,2)}function dU(e){var n=e.getUTCDay();return n>=4||n===0?Kf(e):Kf.ceil(e)}function ube(e,n){return e=dU(e),rt(Kf.count(Qo(e),e)+(Qo(e).getUTCDay()===4),n,2)}function fbe(e){return e.getUTCDay()}function cbe(e,n){return rt(Qg.count(Qo(e)-1,e),n,2)}function dbe(e,n){return rt(e.getUTCFullYear()%100,n,2)}function hbe(e,n){return e=dU(e),rt(e.getUTCFullYear()%100,n,2)}function mbe(e,n){return rt(e.getUTCFullYear()%1e4,n,4)}function pbe(e,n){var t=e.getUTCDay();return e=t>=4||t===0?Kf(e):Kf.ceil(e),rt(e.getUTCFullYear()%1e4,n,4)}function vbe(){return"+0000"}function tP(){return"%"}function iP(e){return+e}function rP(e){return Math.floor(+e/1e3)}var gf,hU,mU;gbe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function gbe(e){return gf=g0e(e),hU=gf.format,gf.parse,mU=gf.utcFormat,gf.utcParse,gf}function ybe(e){return new Date(e)}function bbe(e){return e instanceof Date?+e:+new Date(+e)}function V9(e,n,t,i,r,a,o,l,f,c){var h=j9(),d=h.invert,p=h.domain,v=c(".%L"),y=c(":%S"),b=c("%I:%M"),w=c("%I %p"),_=c("%a %d"),S=c("%b %d"),C=c("%B"),T=c("%Y");function A(M){return(f(M) n(r/(e.length-1)))},t.quantiles=function(i){return Array.from({length:i+1},(r,a)=>lye(e,a/i))},t.copy=function(){return yU(n).domain(e)},us.apply(t,arguments)}function v0(){var e=0,n=.5,t=1,i=1,r,a,o,l,f,c=er,h,d=!1,p;function v(b){return isNaN(b=+b)?p:(b=.5+((b=+h(b))-a)*(i*bt}return t3=e,t3}var i3,lP;function Cbe(){if(lP)return i3;lP=1;var e=_U(),n=Sbe(),t=zc();function i(r){return r&&r.length?e(r,t,n):void 0}return i3=i,i3}var Abe=Cbe();const Gs=at(Abe);var r3,uP;function Obe(){if(uP)return r3;uP=1;function e(n,t){return n e.e^a.s<0?1:-1;for(i=a.d.length,r=e.d.length,n=0,t=i e.d[n]^a.s<0?1:-1;return i===r?0:i>r^a.s<0?1:-1};nn.decimalPlaces=nn.dp=function(){var e=this,n=e.d.length-1,t=(n-e.e)*Dt;if(n=e.d[n],n)for(;n%10==0;n/=10)t--;return t<0?0:t};nn.dividedBy=nn.div=function(e){return Vo(this,new this.constructor(e))};nn.dividedToIntegerBy=nn.idiv=function(e){var n=this,t=n.constructor;return _t(Vo(n,new t(e),0,1),t.precision)};nn.equals=nn.eq=function(e){return!this.cmp(e)};nn.exponent=function(){return ui(this)};nn.greaterThan=nn.gt=function(e){return this.cmp(e)>0};nn.greaterThanOrEqualTo=nn.gte=function(e){return this.cmp(e)>=0};nn.isInteger=nn.isint=function(){return this.e>this.d.length-2};nn.isNegative=nn.isneg=function(){return this.s<0};nn.isPositive=nn.ispos=function(){return this.s>0};nn.isZero=function(){return this.s===0};nn.lessThan=nn.lt=function(e){return this.cmp(e)<0};nn.lessThanOrEqualTo=nn.lte=function(e){return this.cmp(e)<1};nn.logarithm=nn.log=function(e){var n,t=this,i=t.constructor,r=i.precision,a=r+5;if(e===void 0)e=new i(10);else if(e=new i(e),e.s<1||e.eq(Rr))throw Error(ua+"NaN");if(t.s<1)throw Error(ua+(t.s?"NaN":"-Infinity"));return t.eq(Rr)?new i(0):(qt=!1,n=Vo(Xh(t,a),Xh(e,a),a),qt=!0,_t(n,r))};nn.minus=nn.sub=function(e){var n=this;return e=new n.constructor(e),n.s==e.s?AU(n,e):SU(n,(e.s=-e.s,e))};nn.modulo=nn.mod=function(e){var n,t=this,i=t.constructor,r=i.precision;if(e=new i(e),!e.s)throw Error(ua+"NaN");return t.s?(qt=!1,n=Vo(t,e,0,1).times(e),qt=!0,t.minus(n)):_t(new i(t),r)};nn.naturalExponential=nn.exp=function(){return CU(this)};nn.naturalLogarithm=nn.ln=function(){return Xh(this)};nn.negated=nn.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};nn.plus=nn.add=function(e){var n=this;return e=new n.constructor(e),n.s==e.s?SU(n,e):AU(n,(e.s=-e.s,e))};nn.precision=nn.sd=function(e){var n,t,i,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Jl+e);if(n=ui(r)+1,i=r.d.length-1,t=i*Dt+1,i=r.d[i],i){for(;i%10==0;i/=10)t--;for(i=r.d[0];i>=10;i/=10)t++}return e&&n>t?n:t};nn.squareRoot=nn.sqrt=function(){var e,n,t,i,r,a,o,l=this,f=l.constructor;if(l.s<1){if(!l.s)return new f(0);throw Error(ua+"NaN")}for(e=ui(l),qt=!1,r=Math.sqrt(+l),r==0||r==1/0?(n=Ga(l.d),(n.length+e)%2==0&&(n+="0"),r=Math.sqrt(n),e=Bc((e+1)/2)-(e<0||e%2),r==1/0?n="5e"+e:(n=r.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),i=new f(n)):i=new f(r.toString()),t=f.precision,r=o=t+3;;)if(a=i,i=a.plus(Vo(l,a,o+2)).times(.5),Ga(a.d).slice(0,o)===(n=Ga(i.d)).slice(0,o)){if(n=n.slice(o-3,o+1),r==o&&n=="4999"){if(_t(a,t+1,0),a.times(a).eq(l)){i=a;break}}else if(n!="9999")break;o+=4}return qt=!0,_t(i,t)};nn.times=nn.mul=function(e){var n,t,i,r,a,o,l,f,c,h=this,d=h.constructor,p=h.d,v=(e=new d(e)).d;if(!h.s||!e.s)return new d(0);for(e.s*=h.s,t=h.e+e.e,f=p.length,c=v.length,f =0;){for(n=0,r=f+i;r>i;)l=a[r]+v[i]*p[r-i-1]+n,a[r--]=l%_i|0,n=l/_i|0;a[r]=(a[r]+n)%_i|0}for(;!a[--o];)a.pop();return n?++t:a.shift(),e.d=a,e.e=t,qt?_t(e,d.precision):e};nn.toDecimalPlaces=nn.todp=function(e,n){var t=this,i=t.constructor;return t=new i(t),e===void 0?t:(io(e,0,Ic),n===void 0?n=i.rounding:io(n,0,8),_t(t,e+ui(t)+1,n))};nn.toExponential=function(e,n){var t,i=this,r=i.constructor;return e===void 0?t=lu(i,!0):(io(e,0,Ic),n===void 0?n=r.rounding:io(n,0,8),i=_t(new r(i),e+1,n),t=lu(i,!0,e+1)),t};nn.toFixed=function(e,n){var t,i,r=this,a=r.constructor;return e===void 0?lu(r):(io(e,0,Ic),n===void 0?n=a.rounding:io(n,0,8),i=_t(new a(r),e+ui(r)+1,n),t=lu(i.abs(),!1,e+ui(i)+1),r.isneg()&&!r.isZero()?"-"+t:t)};nn.toInteger=nn.toint=function(){var e=this,n=e.constructor;return _t(new n(e),ui(e)+1,n.rounding)};nn.toNumber=function(){return+this};nn.toPower=nn.pow=function(e){var n,t,i,r,a,o,l=this,f=l.constructor,c=12,h=+(e=new f(e));if(!e.s)return new f(Rr);if(l=new f(l),!l.s){if(e.s<1)throw Error(ua+"Infinity");return l}if(l.eq(Rr))return l;if(i=f.precision,e.eq(Rr))return _t(l,i);if(n=e.e,t=e.d.length-1,o=n>=t,a=l.s,o){if((t=h<0?-h:h)<=xU){for(r=new f(Rr),n=Math.ceil(i/Dt+4),qt=!1;t%2&&(r=r.times(l),pP(r.d,n)),t=Bc(t/2),t!==0;)l=l.times(l),pP(l.d,n);return qt=!0,e.s<0?new f(Rr).div(r):_t(r,i)}}else if(a<0)throw Error(ua+"NaN");return a=a<0&&e.d[Math.max(n,t)]&1?-1:1,l.s=1,qt=!1,r=e.times(Xh(l,i+c)),qt=!0,r=CU(r),r.s=a,r};nn.toPrecision=function(e,n){var t,i,r=this,a=r.constructor;return e===void 0?(t=ui(r),i=lu(r,t<=a.toExpNeg||t>=a.toExpPos)):(io(e,1,Ic),n===void 0?n=a.rounding:io(n,0,8),r=_t(new a(r),e,n),t=ui(r),i=lu(r,e<=t||t<=a.toExpNeg,e)),i};nn.toSignificantDigits=nn.tosd=function(e,n){var t=this,i=t.constructor;return e===void 0?(e=i.precision,n=i.rounding):(io(e,1,Ic),n===void 0?n=i.rounding:io(n,0,8)),_t(new i(t),e,n)};nn.toString=nn.valueOf=nn.val=nn.toJSON=nn[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,n=ui(e),t=e.constructor;return lu(e,n<=t.toExpNeg||n>=t.toExpPos)};function SU(e,n){var t,i,r,a,o,l,f,c,h=e.constructor,d=h.precision;if(!e.s||!n.s)return n.s||(n=new h(e)),qt?_t(n,d):n;if(f=e.d,c=n.d,o=e.e,r=n.e,f=f.slice(),a=o-r,a){for(a<0?(i=f,a=-a,l=c.length):(i=c,r=o,l=f.length),o=Math.ceil(d/Dt),l=o>l?o+1:l+1,a>l&&(a=l,i.length=1),i.reverse();a--;)i.push(0);i.reverse()}for(l=f.length,a=c.length,l-a<0&&(a=l,i=c,c=f,f=i),t=0;a;)t=(f[--a]=f[a]+c[a]+t)/_i|0,f[a]%=_i;for(t&&(f.unshift(t),++r),l=f.length;f[--l]==0;)f.pop();return n.d=f,n.e=r,qt?_t(n,d):n}function io(e,n,t){if(e!==~~e||e t)throw Error(Jl+e)}function Ga(e){var n,t,i,r=e.length-1,a="",o=e[0];if(r>0){for(a+=o,n=1;n o?1:-1;else for(l=f=0;lr[l]?1:-1;break}return f}function t(i,r,a){for(var o=0;a--;)i[a]-=o,o=i[a] 1;)i.shift()}return function(i,r,a,o){var l,f,c,h,d,p,v,y,b,w,_,S,C,T,A,M,j,N,F=i.constructor,R=i.s==r.s?1:-1,L=i.d,B=r.d;if(!i.s)return new F(i);if(!r.s)throw Error(ua+"Division by zero");for(f=i.e-r.e,j=B.length,A=L.length,v=new F(R),y=v.d=[],c=0;B[c]==(L[c]||0);)++c;if(B[c]>(L[c]||0)&&--f,a==null?S=a=F.precision:o?S=a+(ui(i)-ui(r))+1:S=a,S<0)return new F(0);if(S=S/Dt+2|0,c=0,j==1)for(h=0,B=B[0],S++;(c1&&(B=e(B,h),L=e(L,h),j=B.length,A=L.length),T=j,b=L.slice(0,j),w=b.length;w =_i/2&&++M;do h=0,l=n(B,b,j,w),l<0?(_=b[0],j!=w&&(_=_*_i+(b[1]||0)),h=_/M|0,h>1?(h>=_i&&(h=_i-1),d=e(B,h),p=d.length,w=b.length,l=n(d,b,p,w),l==1&&(h--,t(d,j 16)throw Error(Y9+ui(e));if(!e.s)return new h(Rr);for(qt=!1,l=d,o=new h(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(i=Math.log(Il(2,c))/Math.LN10*2+5|0,l+=i,t=r=a=new h(Rr),h.precision=l;;){if(r=_t(r.times(e),l),t=t.times(++f),o=a.plus(Vo(r,t,l)),Ga(o.d).slice(0,l)===Ga(a.d).slice(0,l)){for(;c--;)a=_t(a.times(a),l);return h.precision=d,n==null?(qt=!0,_t(a,d)):a}a=o}}function ui(e){for(var n=e.e*Dt,t=e.d[0];t>=10;t/=10)n++;return n}function u3(e,n,t){if(n>e.LN10.sd())throw qt=!0,t&&(e.precision=t),Error(ua+"LN10 precision limit exceeded");return _t(new e(e.LN10),n)}function qs(e){for(var n="";e--;)n+="0";return n}function Xh(e,n){var t,i,r,a,o,l,f,c,h,d=1,p=10,v=e,y=v.d,b=v.constructor,w=b.precision;if(v.s<1)throw Error(ua+(v.s?"NaN":"-Infinity"));if(v.eq(Rr))return new b(0);if(n==null?(qt=!1,c=w):c=n,v.eq(10))return n==null&&(qt=!0),u3(b,c);if(c+=p,b.precision=c,t=Ga(y),i=t.charAt(0),a=ui(v),Math.abs(a)<15e14){for(;i<7&&i!=1||i==1&&t.charAt(1)>3;)v=v.times(e),t=Ga(v.d),i=t.charAt(0),d++;a=ui(v),i>1?(v=new b("0."+t),a++):v=new b(i+"."+t.slice(1))}else return f=u3(b,c+2,w).times(a+""),v=Xh(new b(i+"."+t.slice(1)),c-p).plus(f),b.precision=w,n==null?(qt=!0,_t(v,w)):v;for(l=o=v=Vo(v.minus(Rr),v.plus(Rr),c),h=_t(v.times(v),c),r=3;;){if(o=_t(o.times(h),c),f=l.plus(Vo(o,new b(r),c)),Ga(f.d).slice(0,c)===Ga(l.d).slice(0,c))return l=l.times(2),a!==0&&(l=l.plus(u3(b,c+2,w).times(a+""))),l=Vo(l,new b(d),c),b.precision=w,n==null?(qt=!0,_t(l,w)):l;l=f,r+=2}}function mP(e,n){var t,i,r;for((t=n.indexOf("."))>-1&&(n=n.replace(".","")),(i=n.search(/e/i))>0?(t<0&&(t=i),t+=+n.slice(i+1),n=n.substring(0,i)):t<0&&(t=n.length),i=0;n.charCodeAt(i)===48;)++i;for(r=n.length;n.charCodeAt(r-1)===48;)--r;if(n=n.slice(i,r),n){if(r-=i,t=t-i-1,e.e=Bc(t/Dt),e.d=[],i=(t+1)%Dt,t<0&&(i+=Dt),i
Jg||e.e<-Jg))throw Error(Y9+t)}else e.s=0,e.e=0,e.d=[0];return e}function _t(e,n,t){var i,r,a,o,l,f,c,h,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(i=n-o,i<0)i+=Dt,r=n,c=d[h=0];else{if(h=Math.ceil((i+1)/Dt),a=d.length,h>=a)return e;for(c=a=d[h],o=1;a>=10;a/=10)o++;i%=Dt,r=i-Dt+o}if(t!==void 0&&(a=Il(10,o-r-1),l=c/a%10|0,f=n<0||d[h+1]!==void 0||c%a,f=t<4?(l||f)&&(t==0||t==(e.s<0?3:2)):l>5||l==5&&(t==4||f||t==6&&(i>0?r>0?c/Il(10,o-r):0:d[h-1])%10&1||t==(e.s<0?8:7))),n<1||!d[0])return f?(a=ui(e),d.length=1,n=n-a-1,d[0]=Il(10,(Dt-n%Dt)%Dt),e.e=Bc(-n/Dt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(i==0?(d.length=h,a=1,h--):(d.length=h+1,a=Il(10,Dt-i),d[h]=r>0?(c/Il(10,o-r)%Il(10,r)|0)*a:0),f)for(;;)if(h==0){(d[0]+=a)==_i&&(d[0]=1,++e.e);break}else{if(d[h]+=a,d[h]!=_i)break;d[h--]=0,a=1}for(i=d.length;d[--i]===0;)d.pop();if(qt&&(e.e>Jg||e.e<-Jg))throw Error(Y9+ui(e));return e}function AU(e,n){var t,i,r,a,o,l,f,c,h,d,p=e.constructor,v=p.precision;if(!e.s||!n.s)return n.s?n.s=-n.s:n=new p(e),qt?_t(n,v):n;if(f=e.d,d=n.d,i=n.e,c=e.e,f=f.slice(),o=c-i,o){for(h=o<0,h?(t=f,o=-o,l=d.length):(t=d,i=c,l=f.length),r=Math.max(Math.ceil(v/Dt),l)+2,o>r&&(o=r,t.length=1),t.reverse(),r=o;r--;)t.push(0);t.reverse()}else{for(r=f.length,l=d.length,h=r 0;--r)f[l++]=0;for(r=d.length;r>o;){if(f[--r] 0?a=a.charAt(0)+"."+a.slice(1)+qs(i):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(r<0?"e":"e+")+r):r<0?(a="0."+qs(-r-1)+a,t&&(i=t-o)>0&&(a+=qs(i))):r>=o?(a+=qs(r+1-o),t&&(i=t-r-1)>0&&(a=a+"."+qs(i))):((i=r+1) 0&&(r+1===o&&(a+="."),a+=qs(i))),e.s<0?"-"+a:a}function pP(e,n){if(e.length>n)return e.length=n,!0}function OU(e){var n,t,i;function r(a){var o=this;if(!(o instanceof r))return new r(a);if(o.constructor=r,a instanceof r){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Jl+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return mP(o,a.toString())}else if(typeof a!="string")throw Error(Jl+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,zbe.test(a))mP(o,a);else throw Error(Jl+a)}if(r.prototype=nn,r.ROUND_UP=0,r.ROUND_DOWN=1,r.ROUND_CEIL=2,r.ROUND_FLOOR=3,r.ROUND_HALF_UP=4,r.ROUND_HALF_DOWN=5,r.ROUND_HALF_EVEN=6,r.ROUND_HALF_CEIL=7,r.ROUND_HALF_FLOOR=8,r.clone=OU,r.config=r.set=Lbe,e===void 0&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n =r[n+1]&&i<=r[n+2])this[t]=i;else throw Error(Jl+t+": "+i);if((i=e[t="LN10"])!==void 0)if(i==Math.LN10)this[t]=new this(i);else throw Error(Jl+t+": "+i);return this}var K9=OU($be);Rr=new K9(1);const gt=K9;function Ibe(e){return Hbe(e)||qbe(e)||Fbe(e)||Bbe()}function Bbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fbe(e,n){if(e){if(typeof e=="string")return a4(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a4(e,n)}}function qbe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Hbe(e){if(Array.isArray(e))return a4(e)}function a4(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t =n?t.apply(void 0,r):e(n-o,vP(function(){for(var l=arguments.length,f=new Array(l),c=0;c e.length)&&(n=e.length);for(var t=0,i=new Array(n);t "u"||!(Symbol.iterator in Object(e)))){var t=[],i=!0,r=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(i=(l=o.next()).done)&&(t.push(l.value),!(n&&t.length===n));i=!0);}catch(f){r=!0,a=f}finally{try{!i&&o.return!=null&&o.return()}finally{if(r)throw a}}return t}}function rwe(e){if(Array.isArray(e))return e}function DU(e){var n=Zh(e,2),t=n[0],i=n[1],r=t,a=i;return t>i&&(r=i,a=t),[r,a]}function RU(e,n,t){if(e.lte(0))return new gt(0);var i=b0.getDigitCount(e.toNumber()),r=new gt(10).pow(i),a=e.div(r),o=i!==1?.05:.1,l=new gt(Math.ceil(a.div(o).toNumber())).add(t).mul(o),f=l.mul(r);return n?f:new gt(Math.ceil(f))}function awe(e,n,t){var i=1,r=new gt(e);if(!r.isint()&&t){var a=Math.abs(e);a<1?(i=new gt(10).pow(b0.getDigitCount(e)-1),r=new gt(Math.floor(r.div(i).toNumber())).mul(i)):a>1&&(r=new gt(Math.floor(e)))}else e===0?r=new gt(Math.floor((n-1)/2)):t||(r=new gt(Math.floor(e)));var o=Math.floor((n-1)/2),l=Gbe(Wbe(function(f){return r.add(new gt(f-o).mul(i)).toNumber()}),o4);return l(0,n)}function PU(e,n,t,i){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-e)/(t-1)))return{step:new gt(0),tickMin:new gt(0),tickMax:new gt(0)};var a=RU(new gt(n).sub(e).div(t-1),i,r),o;e<=0&&n>=0?o=new gt(0):(o=new gt(e).add(n).div(2),o=o.sub(new gt(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),f=Math.ceil(new gt(n).sub(o).div(a).toNumber()),c=l+f+1;return c>t?PU(e,n,t,i,r+1):(c 0?f+(t-c):f,l=n>0?l:l+(t-c)),{step:a,tickMin:o.sub(new gt(l).mul(a)),tickMax:o.add(new gt(f).mul(a))})}function owe(e){var n=Zh(e,2),t=n[0],i=n[1],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(r,2),l=DU([t,i]),f=Zh(l,2),c=f[0],h=f[1];if(c===-1/0||h===1/0){var d=h===1/0?[c].concat(l4(o4(0,r-1).map(function(){return 1/0}))):[].concat(l4(o4(0,r-1).map(function(){return-1/0})),[h]);return t>i?s4(d):d}if(c===h)return awe(c,r,a);var p=PU(c,h,o,a),v=p.step,y=p.tickMin,b=p.tickMax,w=b0.rangeStep(y,b.add(new gt(.1).mul(v)),v);return t>i?s4(w):w}function swe(e,n){var t=Zh(e,2),i=t[0],r=t[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=DU([i,r]),l=Zh(o,2),f=l[0],c=l[1];if(f===-1/0||c===1/0)return[i,r];if(f===c)return[f];var h=Math.max(n,2),d=RU(new gt(c).sub(f).div(h-1),a,0),p=[].concat(l4(b0.rangeStep(new gt(f),new gt(c).sub(new gt(.99).mul(d)),d)),[c]);return i>r?s4(p):p}var lwe=MU(owe),uwe=MU(swe),fwe="Invariant failed";function uu(e,n){throw new Error(fwe)}var cwe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Zf(e){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zf(e)}function e1(){return e1=Object.assign?Object.assign.bind():function(e){for(var n=1;n e.length)&&(n=e.length);for(var t=0,i=new Array(n);t =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function ywe(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function bwe(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function wwe(e,n){for(var t=0;t e.length)&&(n=e.length);for(var t=0,i=new Array(n);t 1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(t=i==null?void 0:i.length)!==null&&t!==void 0?t:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var f=a.range,c=0;c 0?r[c-1].coordinate:r[l-1].coordinate,d=r[c].coordinate,p=c>=l-1?r[0].coordinate:r[c+1].coordinate,v=void 0;if(Ma(d-h)!==Ma(p-d)){var y=[];if(Ma(p-d)===Ma(f[1]-f[0])){v=p;var b=d+f[1]-f[0];y[0]=Math.min(b,(b+h)/2),y[1]=Math.max(b,(b+h)/2)}else{v=h;var w=p+f[1]-f[0];y[0]=Math.min(d,(w+d)/2),y[1]=Math.max(d,(w+d)/2)}var _=[Math.min(d,(v+d)/2),Math.max(d,(v+d)/2)];if(n>_[0]&&n<=_[1]||n>=y[0]&&n<=y[1]){o=r[c].index;break}}else{var S=Math.min(h,p),C=Math.max(h,p);if(n>(S+d)/2&&n<=(C+d)/2){o=r[c].index;break}}}else for(var T=0;T 0&&T (i[T].coordinate+i[T-1].coordinate)/2&&n<=(i[T].coordinate+i[T+1].coordinate)/2||T===l-1&&n>(i[T].coordinate+i[T-1].coordinate)/2){o=i[T].index;break}return o},X9=function(n){var t,i=n,r=i.type.displayName,a=(t=n.type)!==null&&t!==void 0&&t.defaultProps?Kt(Kt({},n.type.defaultProps),n.props):n.props,o=a.stroke,l=a.fill,f;switch(r){case"Line":f=o;break;case"Area":case"Radar":f=o&&o!=="none"?o:l;break;default:f=l;break}return f},zwe=function(n){var t=n.barSize,i=n.totalSize,r=n.stackGroups,a=r===void 0?{}:r;if(!a)return{};for(var o={},l=Object.keys(a),f=0,c=l.length;f =0});if(_&&_.length){var S=_[0].type.defaultProps,C=S!==void 0?Kt(Kt({},S),_[0].props):_[0].props,T=C.barSize,A=C[w];o[A]||(o[A]=[]);var M=In(T)?t:T;o[A].push({item:_[0],stackList:_.slice(1),barSize:In(M)?void 0:su(M,i,0)})}}return o},Lwe=function(n){var t=n.barGap,i=n.barCategoryGap,r=n.bandSize,a=n.sizeList,o=a===void 0?[]:a,l=n.maxBarSize,f=o.length;if(f<1)return null;var c=su(t,r,0,!0),h,d=[];if(o[0].barSize===+o[0].barSize){var p=!1,v=r/f,y=o.reduce(function(T,A){return T+A.barSize||0},0);y+=(f-1)*c,y>=r&&(y-=(f-1)*c,c=0),y>=r&&v>0&&(p=!0,v*=.9,y=f*v);var b=(r-y)/2>>0,w={offset:b-c,size:0};h=o.reduce(function(T,A){var M={item:A.item,position:{offset:w.offset+w.size+c,size:p?v:A.barSize}},j=[].concat(bP(T),[M]);return w=j[j.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(N){j.push({item:N,position:w})}),j},d)}else{var _=su(i,r,0,!0);r-2*_-(f-1)*c<=0&&(c=0);var S=(r-2*_-(f-1)*c)/f;S>1&&(S>>=0);var C=l===+l?Math.min(S,l):S;h=o.reduce(function(T,A,M){var j=[].concat(bP(T),[{item:A.item,position:{offset:_+(S+c)*M+(S-C)/2,size:C}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(N){j.push({item:N,position:j[j.length-1].position})}),j},d)}return h},Iwe=function(n,t,i,r){var a=i.children,o=i.width,l=i.margin,f=o-(l.left||0)-(l.right||0),c=LU({children:a,legendWidth:f});if(c){var h=r||{},d=h.width,p=h.height,v=c.align,y=c.verticalAlign,b=c.layout;if((b==="vertical"||b==="horizontal"&&y==="middle")&&v!=="center"&&Fe(n[v]))return Kt(Kt({},n),{},Rf({},v,n[v]+(d||0)));if((b==="horizontal"||b==="vertical"&&v==="center")&&y!=="middle"&&Fe(n[y]))return Kt(Kt({},n),{},Rf({},y,n[y]+(p||0)))}return n},Bwe=function(n,t,i){return In(t)?!0:n==="horizontal"?t==="yAxis":n==="vertical"||i==="x"?t==="xAxis":i==="y"?t==="yAxis":!0},IU=function(n,t,i,r,a){var o=t.props.children,l=sa(o,Qm).filter(function(c){return Bwe(r,a,c.props.direction)});if(l&&l.length){var f=l.map(function(c){return c.props.dataKey});return n.reduce(function(c,h){var d=ir(h,i);if(In(d))return c;var p=Array.isArray(d)?[g0(d),Gs(d)]:[d,d],v=f.reduce(function(y,b){var w=ir(h,b,0),_=p[0]-Math.abs(Array.isArray(w)?w[0]:w),S=p[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(_,y[0]),Math.max(S,y[1])]},[1/0,-1/0]);return[Math.min(v[0],c[0]),Math.max(v[1],c[1])]},[1/0,-1/0])}return null},Fwe=function(n,t,i,r,a){var o=t.map(function(l){return IU(n,l,i,a,r)}).filter(function(l){return!In(l)});return o&&o.length?o.reduce(function(l,f){return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]):null},BU=function(n,t,i,r,a){var o=t.map(function(f){var c=f.props.dataKey;return i==="number"&&c&&IU(n,f,c,r)||yh(n,c,i,a)});if(i==="number")return o.reduce(function(f,c){return[Math.min(f[0],c[0]),Math.max(f[1],c[1])]},[1/0,-1/0]);var l={};return o.reduce(function(f,c){for(var h=0,d=c.length;h =2?Ma(l[0]-l[1])*2*c:c,t&&(n.ticks||n.niceTicks)){var h=(n.ticks||n.niceTicks).map(function(d){var p=a?a.indexOf(d):d;return{coordinate:r(p)+c,value:d,offset:c}});return h.filter(function(d){return!Nc(d.coordinate)})}return n.isCategorical&&n.categoricalDomain?n.categoricalDomain.map(function(d,p){return{coordinate:r(d)+c,value:d,index:p,offset:c}}):r.ticks&&!i?r.ticks(n.tickCount).map(function(d){return{coordinate:r(d)+c,value:d,offset:c}}):r.domain().map(function(d,p){return{coordinate:r(d)+c,value:a?a[d]:d,index:p,offset:c}})},f3=new WeakMap,Pv=function(n,t){if(typeof t!="function")return n;f3.has(n)||f3.set(n,new WeakMap);var i=f3.get(n);if(i.has(t))return i.get(t);var r=function(){n.apply(void 0,arguments),t.apply(void 0,arguments)};return i.set(t,r),r},qwe=function(n,t,i){var r=n.scale,a=n.type,o=n.layout,l=n.axisType;if(r==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Vh(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:Kg(),realScaleType:"linear"}:a==="category"&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!i)?{scale:gh(),realScaleType:"point"}:a==="category"?{scale:Vh(),realScaleType:"band"}:{scale:Kg(),realScaleType:"linear"};if(ou(r)){var f="scale".concat(r0(r));return{scale:(aP[f]||gh)(),realScaleType:aP[f]?f:"point"}}return jn(r)?{scale:r}:{scale:gh(),realScaleType:"point"}},kP=1e-4,Hwe=function(n){var t=n.domain();if(!(!t||t.length<=2)){var i=t.length,r=n.range(),a=Math.min(r[0],r[1])-kP,o=Math.max(r[0],r[1])+kP,l=n(t[0]),f=n(t[i-1]);(lo||fo)&&n.domain([t[0],t[i-1]])}},Uwe=function(n,t){if(!n)return null;for(var i=0,r=n.length;i r)&&(a[1]=r),a[0]>r&&(a[0]=r),a[1]=0?(n[l][i][0]=a,n[l][i][1]=a+f,a=n[l][i][1]):(n[l][i][0]=o,n[l][i][1]=o+f,o=n[l][i][1])}},Gwe=function(n){var t=n.length;if(!(t<=0))for(var i=0,r=n[0].length;i =0?(n[o][i][0]=a,n[o][i][1]=a+l,a=n[o][i][1]):(n[o][i][0]=0,n[o][i][1]=0)}},Ywe={sign:Wwe,expand:jpe,none:qf,silhouette:Dpe,wiggle:Rpe,positive:Gwe},Kwe=function(n,t,i){var r=t.map(function(l){return l.props.dataKey}),a=Ywe[i],o=Mpe().keys(r).value(function(l,f){return+ir(l,f,0)}).order(FS).offset(a);return o(n)},Xwe=function(n,t,i,r,a,o){if(!n)return null;var l=o?t.reverse():t,f={},c=l.reduce(function(d,p){var v,y=(v=p.type)!==null&&v!==void 0&&v.defaultProps?Kt(Kt({},p.type.defaultProps),p.props):p.props,b=y.stackId,w=y.hide;if(w)return d;var _=y[i],S=d[_]||{hasStack:!1,stackGroups:{}};if(yi(b)){var C=S.stackGroups[b]||{numericAxisId:i,cateAxisId:r,items:[]};C.items.push(p),S.hasStack=!0,S.stackGroups[b]=C}else S.stackGroups[$c("_stackId_")]={numericAxisId:i,cateAxisId:r,items:[p]};return Kt(Kt({},d),{},Rf({},_,S))},f),h={};return Object.keys(c).reduce(function(d,p){var v=c[p];if(v.hasStack){var y={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(b,w){var _=v.stackGroups[w];return Kt(Kt({},b),{},Rf({},w,{numericAxisId:i,cateAxisId:r,items:_.items,stackedData:Kwe(n,_.items,a)}))},y)}return Kt(Kt({},d),{},Rf({},p,v))},h)},Zwe=function(n,t){var i=t.realScaleType,r=t.type,a=t.tickCount,o=t.originalDomain,l=t.allowDecimals,f=i||t.scale;if(f!=="auto"&&f!=="linear")return null;if(a&&r==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=n.domain();if(!c.length)return null;var h=lwe(c,a,l);return n.domain([g0(h),Gs(h)]),{niceTicks:h}}if(a&&r==="number"){var d=n.domain(),p=uwe(d,a,l);return{niceTicks:p}}return null};function t1(e){var n=e.axis,t=e.ticks,i=e.bandSize,r=e.entry,a=e.index,o=e.dataKey;if(n.type==="category"){if(!n.allowDuplicatedCategory&&n.dataKey&&!In(r[n.dataKey])){var l=Eg(t,"value",r[n.dataKey]);if(l)return l.coordinate+i/2}return t[a]?t[a].coordinate+i/2:null}var f=ir(r,In(o)?n.dataKey:o);return In(f)?null:n.scale(f)}var _P=function(n){var t=n.axis,i=n.ticks,r=n.offset,a=n.bandSize,o=n.entry,l=n.index;if(t.type==="category")return i[l]?i[l].coordinate+r:null;var f=ir(o,t.dataKey,t.domain[l]);return In(f)?null:t.scale(f)-a/2+r},Qwe=function(n){var t=n.numericAxis,i=t.scale.domain();if(t.type==="number"){var r=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);return r<=0&&a>=0?0:a<0?a:r}return i[0]},Jwe=function(n,t){var i,r=(i=n.type)!==null&&i!==void 0&&i.defaultProps?Kt(Kt({},n.type.defaultProps),n.props):n.props,a=r.stackId;if(yi(a)){var o=t[a];if(o){var l=o.items.indexOf(n);return l>=0?o.stackedData[l]:null}}return null},eke=function(n){return n.reduce(function(t,i){return[g0(i.concat([t[0]]).filter(Fe)),Gs(i.concat([t[1]]).filter(Fe))]},[1/0,-1/0])},HU=function(n,t,i){return Object.keys(n).reduce(function(r,a){var o=n[a],l=o.stackedData,f=l.reduce(function(c,h){var d=eke(h.slice(t,i+1));return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);return[Math.min(f[0],r[0]),Math.max(f[1],r[1])]},[1/0,-1/0]).map(function(r){return r===1/0||r===-1/0?0:r})},xP=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,SP=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,d4=function(n,t,i){if(jn(n))return n(t,i);if(!Array.isArray(n))return t;var r=[];if(Fe(n[0]))r[0]=i?n[0]:Math.min(n[0],t[0]);else if(xP.test(n[0])){var a=+xP.exec(n[0])[1];r[0]=t[0]-a}else jn(n[0])?r[0]=n[0](t[0]):r[0]=t[0];if(Fe(n[1]))r[1]=i?n[1]:Math.max(n[1],t[1]);else if(SP.test(n[1])){var o=+SP.exec(n[1])[1];r[1]=t[1]+o}else jn(n[1])?r[1]=n[1](t[1]):r[1]=t[1];return r},i1=function(n,t,i){if(n&&n.scale&&n.scale.bandwidth){var r=n.scale.bandwidth();if(!i||r>0)return r}if(n&&t&&t.length>=2){for(var a=x9(t,function(d){return d.coordinate}),o=1/0,l=1,f=a.length;l o&&(c=2*Math.PI-c),{radius:l,angle:rke(c),angleInRadian:c}},ske=function(n){var t=n.startAngle,i=n.endAngle,r=Math.floor(t/360),a=Math.floor(i/360),o=Math.min(r,a);return{startAngle:t-o*360,endAngle:i-o*360}},lke=function(n,t){var i=t.startAngle,r=t.endAngle,a=Math.floor(i/360),o=Math.floor(r/360),l=Math.min(a,o);return n+l*360},EP=function(n,t){var i=n.x,r=n.y,a=oke({x:i,y:r},t),o=a.radius,l=a.angle,f=t.innerRadius,c=t.outerRadius;if(o c)return!1;if(o===0)return!0;var h=ske(t),d=h.startAngle,p=h.endAngle,v=l,y;if(d<=p){for(;v>p;)v-=360;for(;v =d&&v<=p}else{for(;v>d;)v-=360;for(;v =p&&v<=d}return y?OP(OP({},t),{},{radius:o,angle:lke(v,t)}):null};function nm(e){"@babel/helpers - typeof";return nm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nm(e)}var uke=["offset"];function fke(e){return mke(e)||hke(e)||dke(e)||cke()}function cke(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dke(e,n){if(e){if(typeof e=="string")return h4(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return h4(e,n)}}function hke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mke(e){if(Array.isArray(e))return h4(e)}function h4(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t
=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function vke(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function TP(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function pi(e){for(var n=1;n =0?1:-1,C,T;r==="insideStart"?(C=v+S*o,T=b):r==="insideEnd"?(C=y-S*o,T=!b):r==="end"&&(C=y+S*o,T=b),T=_<=0?T:!T;var A=Pi(c,h,w,C),M=Pi(c,h,w,C+(T?1:-1)*359),j="M".concat(A.x,",").concat(A.y,` - A`).concat(w,",").concat(w,",0,1,").concat(T?0:1,`, - `).concat(M.x,",").concat(M.y),N=In(n.id)?$c("recharts-radial-line-"):n.id;return Z.createElement("text",tm({},i,{dominantBaseline:"central",className:sn("recharts-radial-bar-label",l)}),Z.createElement("defs",null,Z.createElement("path",{id:N,d:j})),Z.createElement("textPath",{xlinkHref:"#".concat(N)},t))},xke=function(n){var t=n.viewBox,i=n.offset,r=n.position,a=t,o=a.cx,l=a.cy,f=a.innerRadius,c=a.outerRadius,h=a.startAngle,d=a.endAngle,p=(h+d)/2;if(r==="outside"){var v=Pi(o,l,c+i,p),y=v.x,b=v.y;return{x:y,y:b,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var w=(f+c)/2,_=Pi(o,l,w,p),S=_.x,C=_.y;return{x:S,y:C,textAnchor:"middle",verticalAnchor:"middle"}},Ske=function(n){var t=n.viewBox,i=n.parentViewBox,r=n.offset,a=n.position,o=t,l=o.x,f=o.y,c=o.width,h=o.height,d=h>=0?1:-1,p=d*r,v=d>0?"end":"start",y=d>0?"start":"end",b=c>=0?1:-1,w=b*r,_=b>0?"end":"start",S=b>0?"start":"end";if(a==="top"){var C={x:l+c/2,y:f-d*r,textAnchor:"middle",verticalAnchor:v};return pi(pi({},C),i?{height:Math.max(f-i.y,0),width:c}:{})}if(a==="bottom"){var T={x:l+c/2,y:f+h+p,textAnchor:"middle",verticalAnchor:y};return pi(pi({},T),i?{height:Math.max(i.y+i.height-(f+h),0),width:c}:{})}if(a==="left"){var A={x:l-w,y:f+h/2,textAnchor:_,verticalAnchor:"middle"};return pi(pi({},A),i?{width:Math.max(A.x-i.x,0),height:h}:{})}if(a==="right"){var M={x:l+c+w,y:f+h/2,textAnchor:S,verticalAnchor:"middle"};return pi(pi({},M),i?{width:Math.max(i.x+i.width-M.x,0),height:h}:{})}var j=i?{width:c,height:h}:{};return a==="insideLeft"?pi({x:l+w,y:f+h/2,textAnchor:S,verticalAnchor:"middle"},j):a==="insideRight"?pi({x:l+c-w,y:f+h/2,textAnchor:_,verticalAnchor:"middle"},j):a==="insideTop"?pi({x:l+c/2,y:f+p,textAnchor:"middle",verticalAnchor:y},j):a==="insideBottom"?pi({x:l+c/2,y:f+h-p,textAnchor:"middle",verticalAnchor:v},j):a==="insideTopLeft"?pi({x:l+w,y:f+p,textAnchor:S,verticalAnchor:y},j):a==="insideTopRight"?pi({x:l+c-w,y:f+p,textAnchor:_,verticalAnchor:y},j):a==="insideBottomLeft"?pi({x:l+w,y:f+h-p,textAnchor:S,verticalAnchor:v},j):a==="insideBottomRight"?pi({x:l+c-w,y:f+h-p,textAnchor:_,verticalAnchor:v},j):Pc(a)&&(Fe(a.x)||Vl(a.x))&&(Fe(a.y)||Vl(a.y))?pi({x:l+su(a.x,c),y:f+su(a.y,h),textAnchor:"end",verticalAnchor:"end"},j):pi({x:l+c/2,y:f+h/2,textAnchor:"middle",verticalAnchor:"middle"},j)},Cke=function(n){return"cx"in n&&Fe(n.cx)};function Xt(e){var n=e.offset,t=n===void 0?5:n,i=pke(e,uke),r=pi({offset:t},i),a=r.viewBox,o=r.position,l=r.value,f=r.children,c=r.content,h=r.className,d=h===void 0?"":h,p=r.textBreakAll;if(!a||In(l)&&In(f)&&!O.isValidElement(c)&&!jn(c))return null;if(O.isValidElement(c))return O.cloneElement(c,r);var v;if(jn(c)){if(v=O.createElement(c,r),O.isValidElement(v))return v}else v=wke(r);var y=Cke(a),b=Nn(r,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return _ke(r,v,b);var w=y?xke(r):Ske(r);return Z.createElement(Fg,tm({className:sn("recharts-label",d)},b,w,{breakAll:p}),v)}Xt.displayName="Label";var VU=function(n){var t=n.cx,i=n.cy,r=n.angle,a=n.startAngle,o=n.endAngle,l=n.r,f=n.radius,c=n.innerRadius,h=n.outerRadius,d=n.x,p=n.y,v=n.top,y=n.left,b=n.width,w=n.height,_=n.clockWise,S=n.labelViewBox;if(S)return S;if(Fe(b)&&Fe(w)){if(Fe(d)&&Fe(p))return{x:d,y:p,width:b,height:w};if(Fe(v)&&Fe(y))return{x:v,y,width:b,height:w}}return Fe(d)&&Fe(p)?{x:d,y:p,width:0,height:0}:Fe(t)&&Fe(i)?{cx:t,cy:i,startAngle:a||r||0,endAngle:o||r||0,innerRadius:c||0,outerRadius:h||f||l||0,clockWise:_}:n.viewBox?n.viewBox:{}},Ake=function(n,t){return n?n===!0?Z.createElement(Xt,{key:"label-implicit",viewBox:t}):yi(n)?Z.createElement(Xt,{key:"label-implicit",viewBox:t,value:n}):O.isValidElement(n)?n.type===Xt?O.cloneElement(n,{key:"label-implicit",viewBox:t}):Z.createElement(Xt,{key:"label-implicit",content:n,viewBox:t}):jn(n)?Z.createElement(Xt,{key:"label-implicit",content:n,viewBox:t}):Pc(n)?Z.createElement(Xt,tm({viewBox:t},n,{key:"label-implicit"})):null:null},Oke=function(n,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!n||!n.children&&i&&!n.label)return null;var r=n.children,a=VU(n),o=sa(r,Xt).map(function(f,c){return O.cloneElement(f,{viewBox:t||a,key:"label-".concat(c)})});if(!i)return o;var l=Ake(n.label,t||a);return[l].concat(fke(o))};Xt.parseViewBox=VU;Xt.renderCallByParent=Oke;var c3,MP;function Eke(){if(MP)return c3;MP=1;function e(n){var t=n==null?0:n.length;return t?n[t-1]:void 0}return c3=e,c3}var Tke=Eke();const Mke=at(Tke);function im(e){"@babel/helpers - typeof";return im=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},im(e)}var jke=["valueAccessor"],Dke=["data","dataKey","clockWise","id","textBreakAll"];function Rke(e){return zke(e)||$ke(e)||Nke(e)||Pke()}function Pke(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nke(e,n){if(e){if(typeof e=="string")return m4(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m4(e,n)}}function $ke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zke(e){if(Array.isArray(e))return m4(e)}function m4(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Fke(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var qke=function(n){return Array.isArray(n.value)?Mke(n.value):n.value};function Qa(e){var n=e.valueAccessor,t=n===void 0?qke:n,i=RP(e,jke),r=i.data,a=i.dataKey,o=i.clockWise,l=i.id,f=i.textBreakAll,c=RP(i,Dke);return!r||!r.length?null:Z.createElement(Et,{className:"recharts-label-list"},r.map(function(h,d){var p=In(a)?t(h,d):ir(h&&h.payload,a),v=In(l)?{}:{id:"".concat(l,"-").concat(d)};return Z.createElement(Xt,a1({},Nn(h,!0),c,v,{parentViewBox:h.parentViewBox,value:p,textBreakAll:f,viewBox:Xt.parseViewBox(In(o)?h:DP(DP({},h),{},{clockWise:o})),key:"label-".concat(d),index:d}))}))}Qa.displayName="LabelList";function Hke(e,n){return e?e===!0?Z.createElement(Qa,{key:"labelList-implicit",data:n}):Z.isValidElement(e)||jn(e)?Z.createElement(Qa,{key:"labelList-implicit",data:n,content:e}):Pc(e)?Z.createElement(Qa,a1({data:n},e,{key:"labelList-implicit"})):null:null}function Uke(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&t&&!e.label)return null;var i=e.children,r=sa(i,Qa).map(function(o,l){return O.cloneElement(o,{data:n,key:"labelList-".concat(l)})});if(!t)return r;var a=Hke(e.label,n);return[a].concat(Rke(r))}Qa.renderCallByParent=Uke;function rm(e){"@babel/helpers - typeof";return rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rm(e)}function p4(){return p4=Object.assign?Object.assign.bind():function(e){for(var n=1;n 180),",").concat(+(o>c),`, - `).concat(d.x,",").concat(d.y,` - `);if(r>0){var v=Pi(t,i,r,o),y=Pi(t,i,r,c);p+="L ".concat(y.x,",").concat(y.y,` - A `).concat(r,",").concat(r,`,0, - `).concat(+(Math.abs(f)>180),",").concat(+(o<=c),`, - `).concat(v.x,",").concat(v.y," Z")}else p+="L ".concat(t,",").concat(i," Z");return p},Kke=function(n){var t=n.cx,i=n.cy,r=n.innerRadius,a=n.outerRadius,o=n.cornerRadius,l=n.forceCornerRadius,f=n.cornerIsExternal,c=n.startAngle,h=n.endAngle,d=Ma(h-c),p=Nv({cx:t,cy:i,radius:a,angle:c,sign:d,cornerRadius:o,cornerIsExternal:f}),v=p.circleTangency,y=p.lineTangency,b=p.theta,w=Nv({cx:t,cy:i,radius:a,angle:h,sign:-d,cornerRadius:o,cornerIsExternal:f}),_=w.circleTangency,S=w.lineTangency,C=w.theta,T=f?Math.abs(c-h):Math.abs(c-h)-b-C;if(T<0)return l?"M ".concat(y.x,",").concat(y.y,` - a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 - a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 - `):WU({cx:t,cy:i,innerRadius:r,outerRadius:a,startAngle:c,endAngle:h});var A="M ".concat(y.x,",").concat(y.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(v.x,",").concat(v.y,` - A`).concat(a,",").concat(a,",0,").concat(+(T>180),",").concat(+(d<0),",").concat(_.x,",").concat(_.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(S.x,",").concat(S.y,` - `);if(r>0){var M=Nv({cx:t,cy:i,radius:r,angle:c,sign:d,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),j=M.circleTangency,N=M.lineTangency,F=M.theta,R=Nv({cx:t,cy:i,radius:r,angle:h,sign:-d,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),L=R.circleTangency,B=R.lineTangency,G=R.theta,H=f?Math.abs(c-h):Math.abs(c-h)-F-G;if(H<0&&o===0)return"".concat(A,"L").concat(t,",").concat(i,"Z");A+="L".concat(B.x,",").concat(B.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(L.x,",").concat(L.y,` - A`).concat(r,",").concat(r,",0,").concat(+(H>180),",").concat(+(d>0),",").concat(j.x,",").concat(j.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(N.x,",").concat(N.y,"Z")}else A+="L".concat(t,",").concat(i,"Z");return A},Xke={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},GU=function(n){var t=NP(NP({},Xke),n),i=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.cornerRadius,f=t.forceCornerRadius,c=t.cornerIsExternal,h=t.startAngle,d=t.endAngle,p=t.className;if(o0&&Math.abs(h-d)<360?w=Kke({cx:i,cy:r,innerRadius:a,outerRadius:o,cornerRadius:Math.min(b,y/2),forceCornerRadius:f,cornerIsExternal:c,startAngle:h,endAngle:d}):w=WU({cx:i,cy:r,innerRadius:a,outerRadius:o,startAngle:h,endAngle:d}),Z.createElement("path",p4({},Nn(t,!0),{className:v,d:w,role:"img"}))};function am(e){"@babel/helpers - typeof";return am=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},am(e)}function v4(){return v4=Object.assign?Object.assign.bind():function(e){for(var n=1;n r_e.call(e,n));function Ou(e,n){return e===n||!e&&!n&&e!==e&&n!==n}const s_e="__v",l_e="__o",u_e="_owner",{getOwnPropertyDescriptor:BP,keys:FP}=Object;function f_e(e,n){return e.byteLength===n.byteLength&&o1(new Uint8Array(e),new Uint8Array(n))}function c_e(e,n,t){let i=e.length;if(n.length!==i)return!1;for(;i-- >0;)if(!t.equals(e[i],n[i],i,i,e,n,t))return!1;return!0}function d_e(e,n){return e.byteLength===n.byteLength&&o1(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}function h_e(e,n){return Ou(e.getTime(),n.getTime())}function m_e(e,n){return e.name===n.name&&e.message===n.message&&e.cause===n.cause&&e.stack===n.stack}function p_e(e,n){return e===n}function qP(e,n,t){const i=e.size;if(i!==n.size)return!1;if(!i)return!0;const r=new Array(i),a=e.entries();let o,l,f=0;for(;(o=a.next())&&!o.done;){const c=n.entries();let h=!1,d=0;for(;(l=c.next())&&!l.done;){if(r[d]){d++;continue}const p=o.value,v=l.value;if(t.equals(p[0],v[0],f,d,e,n,t)&&t.equals(p[1],v[1],p[0],v[0],e,n,t)){h=r[d]=!0;break}d++}if(!h)return!1;f++}return!0}const v_e=Ou;function g_e(e,n,t){const i=FP(e);let r=i.length;if(FP(n).length!==r)return!1;for(;r-- >0;)if(!YU(e,n,t,i[r]))return!1;return!0}function Gd(e,n,t){const i=IP(e);let r=i.length;if(IP(n).length!==r)return!1;let a,o,l;for(;r-- >0;)if(a=i[r],!YU(e,n,t,a)||(o=BP(e,a),l=BP(n,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function y_e(e,n){return Ou(e.valueOf(),n.valueOf())}function b_e(e,n){return e.source===n.source&&e.flags===n.flags}function HP(e,n,t){const i=e.size;if(i!==n.size)return!1;if(!i)return!0;const r=new Array(i),a=e.values();let o,l;for(;(o=a.next())&&!o.done;){const f=n.values();let c=!1,h=0;for(;(l=f.next())&&!l.done;){if(!r[h]&&t.equals(o.value,l.value,o.value,l.value,e,n,t)){c=r[h]=!0;break}h++}if(!c)return!1}return!0}function o1(e,n){let t=e.byteLength;if(n.byteLength!==t||e.byteOffset!==n.byteOffset)return!1;for(;t-- >0;)if(e[t]!==n[t])return!1;return!0}function w_e(e,n){return e.hostname===n.hostname&&e.pathname===n.pathname&&e.protocol===n.protocol&&e.port===n.port&&e.hash===n.hash&&e.username===n.username&&e.password===n.password}function YU(e,n,t,i){return(i===u_e||i===l_e||i===s_e)&&(e.$$typeof||n.$$typeof)?!0:o_e(n,i)&&t.equals(e[i],n[i],i,i,e,n,t)}const k_e="[object ArrayBuffer]",__e="[object Arguments]",x_e="[object Boolean]",S_e="[object DataView]",C_e="[object Date]",A_e="[object Error]",O_e="[object Map]",E_e="[object Number]",T_e="[object Object]",M_e="[object RegExp]",j_e="[object Set]",D_e="[object String]",R_e={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},P_e="[object URL]",N_e=Object.prototype.toString;function $_e({areArrayBuffersEqual:e,areArraysEqual:n,areDataViewsEqual:t,areDatesEqual:i,areErrorsEqual:r,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:f,arePrimitiveWrappersEqual:c,areRegExpsEqual:h,areSetsEqual:d,areTypedArraysEqual:p,areUrlsEqual:v,unknownTagComparators:y}){return function(w,_,S){if(w===_)return!0;if(w==null||_==null)return!1;const C=typeof w;if(C!==typeof _)return!1;if(C!=="object")return C==="number"?l(w,_,S):C==="function"?a(w,_,S):!1;const T=w.constructor;if(T!==_.constructor)return!1;if(T===Object)return f(w,_,S);if(Array.isArray(w))return n(w,_,S);if(T===Date)return i(w,_,S);if(T===RegExp)return h(w,_,S);if(T===Map)return o(w,_,S);if(T===Set)return d(w,_,S);const A=N_e.call(w);if(A===C_e)return i(w,_,S);if(A===M_e)return h(w,_,S);if(A===O_e)return o(w,_,S);if(A===j_e)return d(w,_,S);if(A===T_e)return typeof w.then!="function"&&typeof _.then!="function"&&f(w,_,S);if(A===P_e)return v(w,_,S);if(A===A_e)return r(w,_,S);if(A===__e)return f(w,_,S);if(R_e[A])return p(w,_,S);if(A===k_e)return e(w,_,S);if(A===S_e)return t(w,_,S);if(A===x_e||A===E_e||A===D_e)return c(w,_,S);if(y){let M=y[A];if(!M){const j=a_e(w);j&&(M=y[j])}if(M)return M(w,_,S)}return!1}}function z_e({circular:e,createCustomConfig:n,strict:t}){let i={areArrayBuffersEqual:f_e,areArraysEqual:t?Gd:c_e,areDataViewsEqual:d_e,areDatesEqual:h_e,areErrorsEqual:m_e,areFunctionsEqual:p_e,areMapsEqual:t?d3(qP,Gd):qP,areNumbersEqual:v_e,areObjectsEqual:t?Gd:g_e,arePrimitiveWrappersEqual:y_e,areRegExpsEqual:b_e,areSetsEqual:t?d3(HP,Gd):HP,areTypedArraysEqual:t?d3(o1,Gd):o1,areUrlsEqual:w_e,unknownTagComparators:void 0};if(n&&(i=Object.assign({},i,n(i))),e){const r=zv(i.areArraysEqual),a=zv(i.areMapsEqual),o=zv(i.areObjectsEqual),l=zv(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:r,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:l})}return i}function L_e(e){return function(n,t,i,r,a,o,l){return e(n,t,l)}}function I_e({circular:e,comparator:n,createState:t,equals:i,strict:r}){if(t)return function(l,f){const{cache:c=e?new WeakMap:void 0,meta:h}=t();return n(l,f,{cache:c,equals:i,meta:h,strict:r})};if(e)return function(l,f){return n(l,f,{cache:new WeakMap,equals:i,meta:void 0,strict:r})};const a={cache:void 0,equals:i,meta:void 0,strict:r};return function(l,f){return n(l,f,a)}}const B_e=hl();hl({strict:!0});hl({circular:!0});hl({circular:!0,strict:!0});hl({createInternalComparator:()=>Ou});hl({strict:!0,createInternalComparator:()=>Ou});hl({circular:!0,createInternalComparator:()=>Ou});hl({circular:!0,createInternalComparator:()=>Ou,strict:!0});function hl(e={}){const{circular:n=!1,createInternalComparator:t,createState:i,strict:r=!1}=e,a=z_e(e),o=$_e(a),l=t?t(o):L_e(o);return I_e({circular:n,comparator:o,createState:i,equals:l,strict:r})}function F_e(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function UP(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=-1,i=function r(a){t<0&&(t=a),a-t>n?(e(a),t=-1):F_e(r)};requestAnimationFrame(i)}function g4(e){"@babel/helpers - typeof";return g4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},g4(e)}function q_e(e){return W_e(e)||V_e(e)||U_e(e)||H_e()}function H_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U_e(e,n){if(e){if(typeof e=="string")return VP(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return VP(e,n)}}function VP(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t e.length)&&(n=e.length);for(var t=0,i=new Array(n);t 1?1:_<0?0:_},b=function(_){for(var S=_>1?1:_,C=S,T=0;T<8;++T){var A=d(C)-S,M=v(C);if(Math.abs(A-S) 0&&arguments[0]!==void 0?arguments[0]:{},t=n.stiff,i=t===void 0?100:t,r=n.damping,a=r===void 0?8:r,o=n.dt,l=o===void 0?17:o,f=function(h,d,p){var v=-(h-d)*i,y=p*a,b=p+(v-y)*l/1e3,w=p*l/1e3+h;return Math.abs(w-d) e.length)&&(n=e.length);for(var t=0,i=new Array(n);t =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function x2e(e,n){if(e==null)return{};var t={},i=Object.keys(e),r,a;for(a=0;a