From e82c8c117ca2f5b2db6227600cc458f2b463c0e5 Mon Sep 17 00:00:00 2001 From: Max Zakharzhevskiy Date: Fri, 1 Mar 2024 18:24:14 -0800 Subject: [PATCH] Updates --- assets/02-radix-ui-BssNd7Fu.js | 80 +++++++ assets/03-recharts-DF_t8duT.js | 68 ++++++ assets/04-nivo-DR-YQDOq.js | 35 +++ assets/05-embla-DcDSTlW8.js | 1 + assets/06-tanstack-CM-tI3Fb.js | 22 ++ assets/07-xarrows-3Yedwf5T.js | 28 +++ assets/08-react-draggable-gqIhLXfB.js | 3 + assets/index-BTrrCTtC.js | 252 +++++++++++++++++++++ assets/index-BgCseIQV.css | 1 - assets/index-DZwBtnCK.css | 1 + assets/index-MKKYJTlw.js | 302 -------------------------- assets/nivo-C0xxZE_O.js | 66 ------ assets/radix-ui-BoNWqpVp.js | 49 ----- assets/recharts-Bkn1Ho_8.js | 68 ------ index.html | 14 +- 15 files changed, 499 insertions(+), 491 deletions(-) create mode 100644 assets/02-radix-ui-BssNd7Fu.js create mode 100644 assets/03-recharts-DF_t8duT.js create mode 100644 assets/04-nivo-DR-YQDOq.js create mode 100644 assets/05-embla-DcDSTlW8.js create mode 100644 assets/06-tanstack-CM-tI3Fb.js create mode 100644 assets/07-xarrows-3Yedwf5T.js create mode 100644 assets/08-react-draggable-gqIhLXfB.js create mode 100644 assets/index-BTrrCTtC.js delete mode 100644 assets/index-BgCseIQV.css create mode 100644 assets/index-DZwBtnCK.css delete mode 100644 assets/index-MKKYJTlw.js delete mode 100644 assets/nivo-C0xxZE_O.js delete mode 100644 assets/radix-ui-BoNWqpVp.js delete mode 100644 assets/recharts-Bkn1Ho_8.js diff --git a/assets/02-radix-ui-BssNd7Fu.js b/assets/02-radix-ui-BssNd7Fu.js new file mode 100644 index 0000000..9c994d7 --- /dev/null +++ b/assets/02-radix-ui-BssNd7Fu.js @@ -0,0 +1,80 @@ +function lh(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var p8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v8(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var op={exports:{}},Y={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ao=Symbol.for("react.element"),sh=Symbol.for("react.portal"),uh=Symbol.for("react.fragment"),dh=Symbol.for("react.strict_mode"),fh=Symbol.for("react.profiler"),ph=Symbol.for("react.provider"),vh=Symbol.for("react.context"),mh=Symbol.for("react.forward_ref"),hh=Symbol.for("react.suspense"),$h=Symbol.for("react.memo"),gh=Symbol.for("react.lazy"),rd=Symbol.iterator;function bh(e){return e===null||typeof e!="object"?null:(e=rd&&e[rd]||e["@@iterator"],typeof e=="function"?e:null)}var ap={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cp=Object.assign,ip={};function kr(e,t,n){this.props=e,this.context=t,this.refs=ip,this.updater=n||ap}kr.prototype.isReactComponent={};kr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};kr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lp(){}lp.prototype=kr.prototype;function ms(e,t,n){this.props=e,this.context=t,this.refs=ip,this.updater=n||ap}var hs=ms.prototype=new lp;hs.constructor=ms;cp(hs,kr.prototype);hs.isPureReactComponent=!0;var od=Array.isArray,sp=Object.prototype.hasOwnProperty,$s={current:null},up={key:!0,ref:!0,__self:!0,__source:!0};function dp(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)sp.call(t,r)&&!up.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,G=M[U];if(0>>1;Uo(Re,N))oeo(B,Re)?(M[U]=B,M[oe]=N,U=oe):(M[U]=Re,M[ue]=N,U=ue);else if(oeo(B,N))M[U]=B,M[oe]=N,U=oe;else break e}}return T}function o(M,T){var N=M.sortIndex-T.sortIndex;return N!==0?N:M.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],u=[],f=1,d=null,p=3,g=!1,b=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(M){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=M)r(u),T.sortIndex=T.expirationTime,t(s,T);else break;T=n(u)}}function y(M){if(m=!1,$(M),!b)if(n(s)!==null)b=!0,K(E);else{var T=n(u);T!==null&&H(y,T.startTime-M)}}function E(M,T){b=!1,m&&(m=!1,h(_),_=-1),g=!0;var N=p;try{for($(T),d=n(s);d!==null&&(!(d.expirationTime>T)||M&&!F());){var U=d.callback;if(typeof U=="function"){d.callback=null,p=d.priorityLevel;var G=U(d.expirationTime<=T);T=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(s)&&r(s),$(T)}else r(s);d=n(s)}if(d!==null)var ve=!0;else{var ue=n(u);ue!==null&&H(y,ue.startTime-T),ve=!1}return ve}finally{d=null,p=N,g=!1}}var C=!1,S=null,_=-1,P=5,O=-1;function F(){return!(e.unstable_now()-OM||125U?(M.sortIndex=N,t(u,M),n(s)===null&&M===n(u)&&(m?(h(_),_=-1):m=!0,H(y,N-U))):(M.sortIndex=G,t(s,M),b||g||(b=!0,K(E))),M},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(M){var T=p;return function(){var N=p;p=T;try{return M.apply(this,arguments)}finally{p=N}}}})(mp);vp.exports=mp;var Ch=vp.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var hp=c,qe=Ch;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zi=Object.prototype.hasOwnProperty,Sh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,cd={},id={};function _h(e){return Zi.call(id,e)?!0:Zi.call(cd,e)?!1:Sh.test(e)?id[e]=!0:(cd[e]=!0,!1)}function Ph(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rh(e,t,n,r){if(t===null||typeof t>"u"||Ph(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Le(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var _e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_e[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_e[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_e[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_e[e]=new Le(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_e[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_e[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_e[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_e[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_e[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var bs=/[\-:]([a-z])/g;function ws(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(bs,ws);_e[t]=new Le(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(bs,ws);_e[t]=new Le(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(bs,ws);_e[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_e[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});_e.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_e[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function ys(e,t,n,r){var o=_e.hasOwnProperty(t)?_e[t]:null;(o!==null?o.type!==0:r||!(2l||o[i]!==a[l]){var s=` +`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=l);break}}}finally{di=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gr(e):""}function Th(e){switch(e.tag){case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return e=fi(e.type,!1),e;case 11:return e=fi(e.type.render,!1),e;case 1:return e=fi(e.type,!0),e;default:return""}}function tl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case er:return"Fragment";case Jn:return"Portal";case qi:return"Profiler";case Es:return"StrictMode";case Ji:return"Suspense";case el:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bp:return(e.displayName||"Context")+".Consumer";case gp:return(e._context.displayName||"Context")+".Provider";case xs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cs:return t=e.displayName||null,t!==null?t:tl(e.type)||"Memo";case Qt:t=e._payload,e=e._init;try{return tl(e(t))}catch{}}return null}function kh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tl(t);case 8:return t===Es?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mh(e){var t=yp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ta(e){e._valueTracker||(e._valueTracker=Mh(e))}function Ep(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=yp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ba(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function nl(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function sd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=dn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function xp(e,t){t=t.checked,t!=null&&ys(e,"checked",t,!1)}function rl(e,t){xp(e,t);var n=dn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ol(e,t.type,n):t.hasOwnProperty("defaultValue")&&ol(e,t.type,dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ud(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ol(e,t,n){(t!=="number"||Ba(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yr=Array.isArray;function dr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function so(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Oh=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){Oh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function Pp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function Rp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Pp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Dh=pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function il(e,t){if(t){if(Dh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function ll(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sl=null;function Ss(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ul=null,fr=null,pr=null;function pd(e){if(e=Fo(e)){if(typeof ul!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Cc(t),ul(e.stateNode,e.type,t))}}function Tp(e){fr?pr?pr.push(e):pr=[e]:fr=e}function kp(){if(fr){var e=fr,t=pr;if(pr=fr=null,pd(e),t)for(e=0;e>>=0,e===0?32:31-(Kh(e)/Wh|0)|0}var ra=64,oa=4194304;function Xr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=Xr(l):(a&=i,a!==0&&(r=Xr(a)))}else i=n&~o,i!==0?r=Xr(i):a!==0&&(r=Xr(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function No(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vt(t),e[t]=n}function Xh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Jr),Ed=" ",xd=!1;function Qp(e,t){switch(e){case"keyup":return x$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function S$(e,t){switch(e){case"compositionend":return Zp(t);case"keypress":return t.which!==32?null:(xd=!0,Ed);case"textInput":return e=t.data,e===Ed&&xd?null:e;default:return null}}function _$(e,t){if(tr)return e==="compositionend"||!Ds&&Qp(e,t)?(e=Yp(),Ma=ks=en=null,tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Pd(n)}}function tv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nv(){for(var e=window,t=Ba();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ba(e.document)}return t}function Is(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function A$(e){var t=nv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&tv(n.ownerDocument.documentElement,n)){if(r!==null&&Is(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=Rd(n,a);var i=Rd(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nr=null,hl=null,to=null,$l=!1;function Td(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$l||nr==null||nr!==Ba(r)||(r=nr,"selectionStart"in r&&Is(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),to&&ho(to,r)||(to=r,r=Ya(hl,"onSelect"),0ar||(e.current=xl[ar],xl[ar]=null,ar--)}function re(e,t){ar++,xl[ar]=e.current,e.current=t}var fn={},De=gn(fn),Ve=gn(!1),Dn=fn;function wr(e,t){var n=e.type.contextTypes;if(!n)return fn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Be(e){return e=e.childContextTypes,e!=null}function Qa(){ce(Ve),ce(De)}function Nd(e,t,n){if(De.current!==fn)throw Error(D(168));re(De,t),re(Ve,n)}function dv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(D(108,kh(e)||"Unknown",o));return pe({},n,r)}function Za(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fn,Dn=De.current,re(De,e),re(Ve,Ve.current),!0}function Ld(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=dv(e,t,Dn),r.__reactInternalMemoizedMergedChildContext=e,ce(Ve),ce(De),re(De,e)):ce(Ve),re(Ve,n)}var Ot=null,Sc=!1,_i=!1;function fv(e){Ot===null?Ot=[e]:Ot.push(e)}function G$(e){Sc=!0,fv(e)}function bn(){if(!_i&&Ot!==null){_i=!0;var e=0,t=Z;try{var n=Ot;for(Z=1;e>=i,o-=i,Dt=1<<32-vt(t)+o|n<_?(P=S,S=null):P=S.sibling;var O=p(h,S,$[_],y);if(O===null){S===null&&(S=P);break}e&&S&&O.alternate===null&&t(h,S),v=a(O,v,_),C===null?E=O:C.sibling=O,C=O,S=P}if(_===$.length)return n(h,S),se&&Cn(h,_),E;if(S===null){for(;_<$.length;_++)S=d(h,$[_],y),S!==null&&(v=a(S,v,_),C===null?E=S:C.sibling=S,C=S);return se&&Cn(h,_),E}for(S=r(h,S);_<$.length;_++)P=g(S,h,_,$[_],y),P!==null&&(e&&P.alternate!==null&&S.delete(P.key===null?_:P.key),v=a(P,v,_),C===null?E=P:C.sibling=P,C=P);return e&&S.forEach(function(F){return t(h,F)}),se&&Cn(h,_),E}function m(h,v,$,y){var E=zr($);if(typeof E!="function")throw Error(D(150));if($=E.call($),$==null)throw Error(D(151));for(var C=E=null,S=v,_=v=0,P=null,O=$.next();S!==null&&!O.done;_++,O=$.next()){S.index>_?(P=S,S=null):P=S.sibling;var F=p(h,S,O.value,y);if(F===null){S===null&&(S=P);break}e&&S&&F.alternate===null&&t(h,S),v=a(F,v,_),C===null?E=F:C.sibling=F,C=F,S=P}if(O.done)return n(h,S),se&&Cn(h,_),E;if(S===null){for(;!O.done;_++,O=$.next())O=d(h,O.value,y),O!==null&&(v=a(O,v,_),C===null?E=O:C.sibling=O,C=O);return se&&Cn(h,_),E}for(S=r(h,S);!O.done;_++,O=$.next())O=g(S,h,_,O.value,y),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?_:O.key),v=a(O,v,_),C===null?E=O:C.sibling=O,C=O);return e&&S.forEach(function(z){return t(h,z)}),se&&Cn(h,_),E}function w(h,v,$,y){if(typeof $=="object"&&$!==null&&$.type===er&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case ea:e:{for(var E=$.key,C=v;C!==null;){if(C.key===E){if(E=$.type,E===er){if(C.tag===7){n(h,C.sibling),v=o(C,$.props.children),v.return=h,h=v;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Qt&&Kd(E)===C.type){n(h,C.sibling),v=o(C,$.props),v.ref=Kr(h,C,$),v.return=h,h=v;break e}n(h,C);break}else t(h,C);C=C.sibling}$.type===er?(v=Mn($.props.children,h.mode,y,$.key),v.return=h,h=v):(y=za($.type,$.key,$.props,null,h.mode,y),y.ref=Kr(h,v,$),y.return=h,h=y)}return i(h);case Jn:e:{for(C=$.key;v!==null;){if(v.key===C)if(v.tag===4&&v.stateNode.containerInfo===$.containerInfo&&v.stateNode.implementation===$.implementation){n(h,v.sibling),v=o(v,$.children||[]),v.return=h,h=v;break e}else{n(h,v);break}else t(h,v);v=v.sibling}v=Ii($,h.mode,y),v.return=h,h=v}return i(h);case Qt:return C=$._init,w(h,v,C($._payload),y)}if(Yr($))return b(h,v,$,y);if(zr($))return m(h,v,$,y);da(h,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,v!==null&&v.tag===6?(n(h,v.sibling),v=o(v,$),v.return=h,h=v):(n(h,v),v=Di($,h.mode,y),v.return=h,h=v),i(h)):n(h,v)}return w}var Er=wv(!0),yv=wv(!1),zo={},Ct=gn(zo),wo=gn(zo),yo=gn(zo);function Tn(e){if(e===zo)throw Error(D(174));return e}function Hs(e,t){switch(re(yo,t),re(wo,e),re(Ct,zo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=cl(t,e)}ce(Ct),re(Ct,t)}function xr(){ce(Ct),ce(wo),ce(yo)}function Ev(e){Tn(yo.current);var t=Tn(Ct.current),n=cl(t,e.type);t!==n&&(re(wo,e),re(Ct,n))}function Ks(e){wo.current===e&&(ce(Ct),ce(wo))}var de=gn(0);function rc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pi=[];function Ws(){for(var e=0;en?n:4,e(!0);var r=Ri.transition;Ri.transition={};try{e(!1),t()}finally{Z=n,Ri.transition=r}}function Fv(){return ct().memoizedState}function Z$(e,t,n){var r=sn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zv(e))Vv(t,n);else if(n=hv(e,t,n,r),n!==null){var o=Ae();mt(n,e,r,o),Bv(n,t,r)}}function q$(e,t,n){var r=sn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zv(e))Vv(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,$t(l,i)){var s=t.interleaved;s===null?(o.next=o,Bs(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=hv(e,t,o,r),n!==null&&(o=Ae(),mt(n,e,r,o),Bv(n,t,r))}}function zv(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Vv(e,t){no=oc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ps(e,n)}}var ac={readContext:at,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},J$={readContext:at,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:jd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Aa(4194308,4,Dv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Aa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Aa(4,2,e,t)},useMemo:function(e,t){var n=yt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Z$.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:Wd,useDebugValue:Qs,useDeferredValue:function(e){return yt().memoizedState=e},useTransition:function(){var e=Wd(!1),t=e[0];return e=Q$.bind(null,e[1]),yt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,o=yt();if(se){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),xe===null)throw Error(D(349));An&30||Sv(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,jd(Pv.bind(null,r,a,e),[e]),r.flags|=2048,Co(9,_v.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=yt(),t=xe.identifierPrefix;if(se){var n=It,r=Dt;n=(r&~(1<<32-vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Eo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Et]=t,e[bo]=r,Qv(e,t,!1,!1),t.stateNode=e;e:{switch(i=ll(n,r),n){case"dialog":ae("cancel",e),ae("close",e),o=r;break;case"iframe":case"object":case"embed":ae("load",e),o=r;break;case"video":case"audio":for(o=0;oSr&&(t.flags|=128,r=!0,Wr(a,!1),t.lanes=4194304)}else{if(!r)if(e=rc(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!se)return ke(t),null}else 2*he()-a.renderingStartTime>Sr&&n!==1073741824&&(t.flags|=128,r=!0,Wr(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=he(),t.sibling=null,n=de.current,re(de,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return nu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function ig(e,t){switch(Ns(t),t.tag){case 1:return Be(t.type)&&Qa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xr(),ce(Ve),ce(De),Ws(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ks(t),null;case 13:if(ce(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(de),null;case 4:return xr(),null;case 10:return Vs(t.type._context),null;case 22:case 23:return nu(),null;case 24:return null;default:return null}}var pa=!1,Me=!1,lg=typeof WeakSet=="function"?WeakSet:Set,L=null;function sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function Al(e,t,n){try{n()}catch(r){me(e,t,r)}}var tf=!1;function sg(e,t){if(gl=ja,e=nv(),Is(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,l=-1,s=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(l=i+o),d!==a||r!==0&&d.nodeType!==3||(s=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(g=d.firstChild)!==null;)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=i),p===a&&++f===r&&(s=i),(g=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=g}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(bl={focusedElem:e,selectionRange:n},ja=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var m=b.memoizedProps,w=b.memoizedState,h=t.stateNode,v=h.getSnapshotBeforeUpdate(t.elementType===t.type?m:dt(t.type,m),w);h.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var $=t.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(y){me(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return b=tf,tf=!1,b}function ro(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Al(t,n,a)}o=o.next}while(o!==r)}}function Rc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Nl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Jv(e){var t=e.alternate;t!==null&&(e.alternate=null,Jv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Et],delete t[bo],delete t[El],delete t[W$],delete t[j$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function e0(e){return e.tag===5||e.tag===3||e.tag===4}function nf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||e0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ll(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xa));else if(r!==4&&(e=e.child,e!==null))for(Ll(e,t,n),e=e.sibling;e!==null;)Ll(e,t,n),e=e.sibling}function Fl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fl(e,t,n),e=e.sibling;e!==null;)Fl(e,t,n),e=e.sibling}var Ce=null,ft=!1;function Yt(e,t,n){for(n=n.child;n!==null;)t0(e,t,n),n=n.sibling}function t0(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(wc,n)}catch{}switch(n.tag){case 5:Me||sr(n,t);case 6:var r=Ce,o=ft;Ce=null,Yt(e,t,n),Ce=r,ft=o,Ce!==null&&(ft?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(ft?(e=Ce,n=n.stateNode,e.nodeType===8?Si(e.parentNode,n):e.nodeType===1&&Si(e,n),vo(e)):Si(Ce,n.stateNode));break;case 4:r=Ce,o=ft,Ce=n.stateNode.containerInfo,ft=!0,Yt(e,t,n),Ce=r,ft=o;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Al(n,t,i),o=o.next}while(o!==r)}Yt(e,t,n);break;case 1:if(!Me&&(sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){me(n,t,l)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,Yt(e,t,n),Me=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function rf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lg),t.forEach(function(r){var o=gg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dg(r/1960))-r,10e?16:e,tn===null)var r=!1;else{if(e=tn,tn=null,lc=0,X&6)throw Error(D(331));var o=X;for(X|=4,L=e.current;L!==null;){var a=L,i=a.child;if(L.flags&16){var l=a.deletions;if(l!==null){for(var s=0;she()-eu?kn(e,0):Js|=n),Ue(e,t)}function s0(e,t){t===0&&(e.mode&1?(t=oa,oa<<=1,!(oa&130023424)&&(oa=4194304)):t=1);var n=Ae();e=Ft(e,t),e!==null&&(No(e,t,n),Ue(e,n))}function $g(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),s0(e,n)}function gg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),s0(e,n)}var u0;u0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ze=!1,ag(e,t,n);ze=!!(e.flags&131072)}else ze=!1,se&&t.flags&1048576&&pv(t,Ja,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Na(e,t),e=t.pendingProps;var o=wr(t,De.current);mr(t,n),o=Gs(null,t,r,e,o,n);var a=Ys();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(a=!0,Za(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Us(t),o.updater=_c,t.stateNode=o,o._reactInternals=t,Rl(t,r,e,n),t=Ml(null,t,r,!0,a,n)):(t.tag=0,se&&a&&As(t),Ie(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Na(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=wg(r),e=dt(r,e),o){case 0:t=kl(null,t,r,e,n);break e;case 1:t=qd(null,t,r,e,n);break e;case 11:t=Qd(null,t,r,e,n);break e;case 14:t=Zd(null,t,r,dt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),kl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),qd(e,t,r,o,n);case 3:e:{if(Gv(t),e===null)throw Error(D(387));r=t.pendingProps,a=t.memoizedState,o=a.element,$v(e,t),nc(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Cr(Error(D(423)),t),t=Jd(e,t,r,n,o);break e}else if(r!==o){o=Cr(Error(D(424)),t),t=Jd(e,t,r,n,o);break e}else for(Xe=an(t.stateNode.containerInfo.firstChild),Qe=t,se=!0,pt=null,n=yv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yr(),r===o){t=zt(e,t,n);break e}Ie(e,t,r,n)}t=t.child}return t;case 5:return Ev(t),e===null&&Sl(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,wl(r,o)?i=null:a!==null&&wl(r,a)&&(t.flags|=32),jv(e,t),Ie(e,t,i,n),t.child;case 6:return e===null&&Sl(t),null;case 13:return Yv(e,t,n);case 4:return Hs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Er(t,null,r,n):Ie(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),Qd(e,t,r,o,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,re(ec,r._currentValue),r._currentValue=i,a!==null)if($t(a.value,i)){if(a.children===o.children&&!Ve.current){t=zt(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=At(-1,n&-n),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),_l(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(D(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),_l(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Ie(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,mr(t,n),o=at(o),r=r(o),t.flags|=1,Ie(e,t,r,n),t.child;case 14:return r=t.type,o=dt(r,t.pendingProps),o=dt(r.type,o),Zd(e,t,r,o,n);case 15:return Kv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),Na(e,t),t.tag=1,Be(r)?(e=!0,Za(t)):e=!1,mr(t,n),bv(t,r,o),Rl(t,r,o,n),Ml(null,t,r,!0,e,n);case 19:return Xv(e,t,n);case 22:return Wv(e,t,n)}throw Error(D(156,t.tag))};function d0(e,t){return Lp(e,t)}function bg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,r){return new bg(e,t,n,r)}function ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wg(e){if(typeof e=="function")return ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xs)return 11;if(e===Cs)return 14}return 2}function un(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function za(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")ou(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case er:return Mn(n.children,o,a,t);case Es:i=8,o|=8;break;case qi:return e=rt(12,n,t,o|2),e.elementType=qi,e.lanes=a,e;case Ji:return e=rt(13,n,t,o),e.elementType=Ji,e.lanes=a,e;case el:return e=rt(19,n,t,o),e.elementType=el,e.lanes=a,e;case wp:return kc(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gp:i=10;break e;case bp:i=9;break e;case xs:i=11;break e;case Cs:i=14;break e;case Qt:i=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=rt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Mn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function kc(e,t,n,r){return e=rt(22,e,r,t),e.elementType=wp,e.lanes=n,e.stateNode={isHidden:!1},e}function Di(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Ii(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yg(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vi(0),this.expirationTimes=vi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function au(e,t,n,r,o,a,i,l,s){return e=new yg(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=rt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Us(a),e}function Eg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(m0)}catch(e){console.error(e)}}m0(),pp.exports=Je;var Kt=pp.exports;const su=rp(Kt);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>Pg(n,t))}function V(...e){return c.useCallback(Vo(...e),e)}const pn=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),a=o.find(Rg);if(a){const i=a.props.children,l=o.map(s=>s===a?c.Children.count(i)>1?c.Children.only(null):c.isValidElement(i)?i.props.children:null:s);return c.createElement(Hl,x({},r,{ref:t}),c.isValidElement(i)?c.cloneElement(i,void 0,l):null)}return c.createElement(Hl,x({},r,{ref:t}),n)});pn.displayName="Slot";const Hl=c.forwardRef((e,t)=>{const{children:n,...r}=e;return c.isValidElement(n)?c.cloneElement(n,{...Tg(r,n.props),ref:t?Vo(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});Hl.displayName="SlotClone";const uu=({children:e})=>c.createElement(c.Fragment,null,e);function Rg(e){return c.isValidElement(e)&&e.type===uu}function Tg(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{a(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const kg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],I=kg.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:a,...i}=r,l=a?pn:t;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(l,x({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function du(e,t){e&&Kt.flushSync(()=>e.dispatchEvent(t))}const Mg=c.forwardRef((e,t)=>c.createElement(I.label,x({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),m8=Mg;function R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Og(e,t){const n=c.createContext(t);function r(a){const{children:i,...l}=a,s=c.useMemo(()=>l,Object.values(l));return c.createElement(n.Provider,{value:s},i)}function o(a){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function ie(e,t=[]){let n=[];function r(a,i){const l=c.createContext(i),s=n.length;n=[...n,i];function u(d){const{scope:p,children:g,...b}=d,m=p?.[e][s]||l,w=c.useMemo(()=>b,Object.values(b));return c.createElement(m.Provider,{value:w},g)}function f(d,p){const g=p?.[e][s]||l,b=c.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,f]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(l){const s=l?.[e]||a;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,Dg(o,...t)]}function Dg(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((l,{useScope:s,scopeName:u})=>{const d=s(a)[`__scope${u}`];return{...l,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Q(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function ge({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Ig({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,l=Q(n),s=c.useCallback(u=>{if(a){const d=typeof u=="function"?u(e):u;d!==e&&l(d)}else o(u)},[a,e,o,l]);return[i,s]}function Ig({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),a=Q(t);return c.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function Wt(e){const t=e+"CollectionProvider",[n,r]=ie(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:b,children:m}=g,w=j.useRef(null),h=j.useRef(new Map).current;return j.createElement(o,{scope:b,itemMap:h,collectionRef:w},m)},l=e+"CollectionSlot",s=j.forwardRef((g,b)=>{const{scope:m,children:w}=g,h=a(l,m),v=V(b,h.collectionRef);return j.createElement(pn,{ref:v},w)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",d=j.forwardRef((g,b)=>{const{scope:m,children:w,...h}=g,v=j.useRef(null),$=V(b,v),y=a(u,m);return j.useEffect(()=>(y.itemMap.set(v,{ref:v,...h}),()=>void y.itemMap.delete(v))),j.createElement(pn,{[f]:"",ref:$},w)});function p(g){const b=a(e+"CollectionConsumer",g);return j.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const h=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((y,E)=>h.indexOf(y.ref.current)-h.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:s,ItemSlot:d},p,r]}const Ag=c.createContext(void 0);function _t(e){const t=c.useContext(Ag);return e||t||"ltr"}function Ng(e,t=globalThis?.document){const n=Q(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Kl="dismissableLayer.update",Lg="dismissableLayer.pointerDownOutside",Fg="dismissableLayer.focusOutside";let ff;const h0=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wn=c.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...u}=e,f=c.useContext(h0),[d,p]=c.useState(null),g=(n=d?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,b]=c.useState({}),m=V(t,_=>p(_)),w=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=w.indexOf(h),$=d?w.indexOf(d):-1,y=f.layersWithOutsidePointerEventsDisabled.size>0,E=$>=v,C=Vg(_=>{const P=_.target,O=[...f.branches].some(F=>F.contains(P));!E||O||(a?.(_),l?.(_),_.defaultPrevented||s?.())},g),S=Bg(_=>{const P=_.target;[...f.branches].some(F=>F.contains(P))||(i?.(_),l?.(_),_.defaultPrevented||s?.())},g);return Ng(_=>{$===f.layers.size-1&&(o?.(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},g),c.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ff=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),pf(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ff)}},[d,g,r,f]),c.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),pf())},[d,f]),c.useEffect(()=>{const _=()=>b({});return document.addEventListener(Kl,_),()=>document.removeEventListener(Kl,_)},[]),c.createElement(I.div,x({},u,{ref:m,style:{pointerEvents:y?E?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,S.onFocusCapture),onBlurCapture:R(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,C.onPointerDownCapture)}))}),zg=c.forwardRef((e,t)=>{const n=c.useContext(h0),r=c.useRef(null),o=V(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),c.createElement(I.div,x({},e,{ref:o}))});function Vg(e,t=globalThis?.document){const n=Q(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let u=function(){$0(Lg,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Bg(e,t=globalThis?.document){const n=Q(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&$0(Fg,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pf(){const e=new CustomEvent(Kl);document.dispatchEvent(e)}function $0(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?du(o,a):o.dispatchEvent(a)}const Ug=wn,Hg=zg;let Ai=0;function Ac(){c.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:vf()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:vf()),Ai++,()=>{Ai===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ai--}},[])}function vf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Ni="focusScope.autoFocusOnMount",Li="focusScope.autoFocusOnUnmount",mf={bubbles:!1,cancelable:!0},Nc=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,s]=c.useState(null),u=Q(o),f=Q(a),d=c.useRef(null),p=V(t,m=>s(m)),g=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let m=function($){if(g.paused||!l)return;const y=$.target;l.contains(y)?d.current=y:Xt(d.current,{select:!0})},w=function($){if(g.paused||!l)return;const y=$.relatedTarget;y!==null&&(l.contains(y)||Xt(d.current,{select:!0}))},h=function($){if(document.activeElement===document.body)for(const E of $)E.removedNodes.length>0&&Xt(l)};document.addEventListener("focusin",m),document.addEventListener("focusout",w);const v=new MutationObserver(h);return l&&v.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",w),v.disconnect()}}},[r,l,g.paused]),c.useEffect(()=>{if(l){$f.add(g);const m=document.activeElement;if(!l.contains(m)){const h=new CustomEvent(Ni,mf);l.addEventListener(Ni,u),l.dispatchEvent(h),h.defaultPrevented||(Kg(Xg(g0(l)),{select:!0}),document.activeElement===m&&Xt(l))}return()=>{l.removeEventListener(Ni,u),setTimeout(()=>{const h=new CustomEvent(Li,mf);l.addEventListener(Li,f),l.dispatchEvent(h),h.defaultPrevented||Xt(m??document.body,{select:!0}),l.removeEventListener(Li,f),$f.remove(g)},0)}}},[l,u,f,g]);const b=c.useCallback(m=>{if(!n&&!r||g.paused)return;const w=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,h=document.activeElement;if(w&&h){const v=m.currentTarget,[$,y]=Wg(v);$&&y?!m.shiftKey&&h===y?(m.preventDefault(),n&&Xt($,{select:!0})):m.shiftKey&&h===$&&(m.preventDefault(),n&&Xt(y,{select:!0})):h===v&&m.preventDefault()}},[n,r,g.paused]);return c.createElement(I.div,x({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function Kg(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Xt(r,{select:t}),document.activeElement!==n)return}function Wg(e){const t=g0(e),n=hf(t,e),r=hf(t.reverse(),e);return[n,r]}function g0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hf(e,t){for(const n of e)if(!jg(n,{upTo:t}))return n}function jg(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Gg(e){return e instanceof HTMLInputElement&&"select"in e}function Xt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Gg(e)&&t&&e.select()}}const $f=Yg();function Yg(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=gf(e,t),e.unshift(t)},remove(t){var n;e=gf(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function gf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Xg(e){return e.filter(t=>t.tagName!=="A")}const Pe=globalThis?.document?c.useLayoutEffect:()=>{},Qg=fp.useId||(()=>{});let Zg=0;function ye(e){const[t,n]=c.useState(Qg());return Pe(()=>{e||n(r=>r??String(Zg++))},[e]),e||(t?`radix-${t}`:"")}const qg=["top","right","bottom","left"],vn=Math.min,Ye=Math.max,dc=Math.round,ha=Math.floor,mn=e=>({x:e,y:e}),Jg={left:"right",right:"left",bottom:"top",top:"bottom"},eb={start:"end",end:"start"};function Wl(e,t,n){return Ye(e,vn(t,n))}function Vt(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function Dr(e){return e.split("-")[1]}function fu(e){return e==="x"?"y":"x"}function pu(e){return e==="y"?"height":"width"}function Ir(e){return["top","bottom"].includes(Bt(e))?"y":"x"}function vu(e){return fu(Ir(e))}function tb(e,t,n){n===void 0&&(n=!1);const r=Dr(e),o=vu(e),a=pu(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=fc(i)),[i,fc(i)]}function nb(e){const t=fc(e);return[jl(e),t,jl(t)]}function jl(e){return e.replace(/start|end/g,t=>eb[t])}function rb(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function ob(e,t,n,r){const o=Dr(e);let a=rb(Bt(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(jl)))),a}function fc(e){return e.replace(/left|right|bottom|top/g,t=>Jg[t])}function ab(e){return{top:0,right:0,bottom:0,left:0,...e}}function b0(e){return typeof e!="number"?ab(e):{top:e,right:e,bottom:e,left:e}}function pc(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function bf(e,t,n){let{reference:r,floating:o}=e;const a=Ir(t),i=vu(t),l=pu(i),s=Bt(t),u=a==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let g;switch(s){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(Dr(t)){case"start":g[i]-=p*(n&&u?-1:1);break;case"end":g[i]+=p*(n&&u?-1:1);break}return g}const cb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=bf(u,r,s),p=r,g={},b=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:s}=t,{element:u,padding:f=0}=Vt(e,t)||{};if(u==null)return{};const d=b0(f),p={x:n,y:r},g=vu(o),b=pu(g),m=await i.getDimensions(u),w=g==="y",h=w?"top":"left",v=w?"bottom":"right",$=w?"clientHeight":"clientWidth",y=a.reference[b]+a.reference[g]-p[g]-a.floating[b],E=p[g]-a.reference[g],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let S=C?C[$]:0;(!S||!await(i.isElement==null?void 0:i.isElement(C)))&&(S=l.floating[$]||a.floating[b]);const _=y/2-E/2,P=S/2-m[b]/2-1,O=vn(d[h],P),F=vn(d[v],P),z=O,W=S-m[b]-F,k=S/2-m[b]/2+_,A=Wl(z,k,W),K=!s.arrow&&Dr(o)!=null&&k!==A&&a.reference[b]/2-(kz<=0)){var P,O;const z=(((P=a.flip)==null?void 0:P.index)||0)+1,W=E[z];if(W)return{data:{index:z,overflows:_},reset:{placement:W}};let k=(O=_.filter(A=>A.overflows[0]<=0).sort((A,K)=>A.overflows[1]-K.overflows[1])[0])==null?void 0:O.placement;if(!k)switch(g){case"bestFit":{var F;const A=(F=_.map(K=>[K.placement,K.overflows.filter(H=>H>0).reduce((H,M)=>H+M,0)]).sort((K,H)=>K[1]-H[1])[0])==null?void 0:F[0];A&&(k=A);break}case"initialPlacement":k=l;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function wf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yf(e){return qg.some(t=>e[t]>=0)}const sb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Vt(e,t);switch(r){case"referenceHidden":{const a=await _o(t,{...o,elementContext:"reference"}),i=wf(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:yf(i)}}}case"escaped":{const a=await _o(t,{...o,altBoundary:!0}),i=wf(a,n.floating);return{data:{escapedOffsets:i,escaped:yf(i)}}}default:return{}}}}};async function ub(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Bt(n),l=Dr(n),s=Ir(n)==="y",u=["left","top"].includes(i)?-1:1,f=a&&s?-1:1,d=Vt(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof b=="number"&&(g=l==="end"?b*-1:b),s?{x:g*f,y:p*u}:{x:p*u,y:g*f}}const db=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:l}=t,s=await ub(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:i}}}}},fb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:w=>{let{x:h,y:v}=w;return{x:h,y:v}}},...s}=Vt(e,t),u={x:n,y:r},f=await _o(t,s),d=Ir(Bt(o)),p=fu(d);let g=u[p],b=u[d];if(a){const w=p==="y"?"top":"left",h=p==="y"?"bottom":"right",v=g+f[w],$=g-f[h];g=Wl(v,g,$)}if(i){const w=d==="y"?"top":"left",h=d==="y"?"bottom":"right",v=b+f[w],$=b-f[h];b=Wl(v,b,$)}const m=l.fn({...t,[p]:g,[d]:b});return{...m,data:{x:m.x-n,y:m.y-r}}}}},pb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=Vt(e,t),f={x:n,y:r},d=Ir(o),p=fu(d);let g=f[p],b=f[d];const m=Vt(l,t),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const $=p==="y"?"height":"width",y=a.reference[p]-a.floating[$]+w.mainAxis,E=a.reference[p]+a.reference[$]-w.mainAxis;gE&&(g=E)}if(u){var h,v;const $=p==="y"?"width":"height",y=["top","left"].includes(Bt(o)),E=a.reference[d]-a.floating[$]+(y&&((h=i.offset)==null?void 0:h[d])||0)+(y?0:w.crossAxis),C=a.reference[d]+a.reference[$]+(y?0:((v=i.offset)==null?void 0:v[d])||0)-(y?w.crossAxis:0);bC&&(b=C)}return{[p]:g,[d]:b}}}},vb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=()=>{},...l}=Vt(e,t),s=await _o(t,l),u=Bt(n),f=Dr(n),d=Ir(n)==="y",{width:p,height:g}=r.floating;let b,m;u==="top"||u==="bottom"?(b=u,m=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=u,b=f==="end"?"top":"bottom");const w=g-s[b],h=p-s[m],v=!t.middlewareData.shift;let $=w,y=h;if(d){const C=p-s.left-s.right;y=f||v?vn(h,C):C}else{const C=g-s.top-s.bottom;$=f||v?vn(w,C):C}if(v&&!f){const C=Ye(s.left,0),S=Ye(s.right,0),_=Ye(s.top,0),P=Ye(s.bottom,0);d?y=p-2*(C!==0||S!==0?C+S:Ye(s.left,s.right)):$=g-2*(_!==0||P!==0?_+P:Ye(s.top,s.bottom))}await i({...t,availableWidth:y,availableHeight:$});const E=await o.getDimensions(a.floating);return p!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function hn(e){return w0(e)?(e.nodeName||"").toLowerCase():"#document"}function Ze(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jt(e){var t;return(t=(w0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function w0(e){return e instanceof Node||e instanceof Ze(e).Node}function Ut(e){return e instanceof Element||e instanceof Ze(e).Element}function St(e){return e instanceof HTMLElement||e instanceof Ze(e).HTMLElement}function Ef(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ze(e).ShadowRoot}function Bo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=it(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function mb(e){return["table","td","th"].includes(hn(e))}function mu(e){const t=hu(),n=it(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function hb(e){let t=_r(e);for(;St(t)&&!Lc(t);){if(mu(t))return t;t=_r(t)}return null}function hu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Lc(e){return["html","body","#document"].includes(hn(e))}function it(e){return Ze(e).getComputedStyle(e)}function Fc(e){return Ut(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _r(e){if(hn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ef(e)&&e.host||jt(e);return Ef(t)?t.host:t}function y0(e){const t=_r(e);return Lc(t)?e.ownerDocument?e.ownerDocument.body:e.body:St(t)&&Bo(t)?t:y0(t)}function Po(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=y0(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ze(o);return a?t.concat(i,i.visualViewport||[],Bo(o)?o:[],i.frameElement&&n?Po(i.frameElement):[]):t.concat(o,Po(o,[],n))}function E0(e){const t=it(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=St(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=dc(n)!==a||dc(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function $u(e){return Ut(e)?e:e.contextElement}function $r(e){const t=$u(e);if(!St(t))return mn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=E0(t);let i=(a?dc(n.width):n.width)/r,l=(a?dc(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const $b=mn(0);function x0(e){const t=Ze(e);return!hu()||!t.visualViewport?$b:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ze(e)?!1:t}function Fn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=$u(e);let i=mn(1);t&&(r?Ut(r)&&(i=$r(r)):i=$r(e));const l=gb(a,n,r)?x0(a):mn(0);let s=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,f=o.width/i.x,d=o.height/i.y;if(a){const p=Ze(a),g=r&&Ut(r)?Ze(r):r;let b=p,m=b.frameElement;for(;m&&r&&g!==b;){const w=$r(m),h=m.getBoundingClientRect(),v=it(m),$=h.left+(m.clientLeft+parseFloat(v.paddingLeft))*w.x,y=h.top+(m.clientTop+parseFloat(v.paddingTop))*w.y;s*=w.x,u*=w.y,f*=w.x,d*=w.y,s+=$,u+=y,b=Ze(m),m=b.frameElement}}return pc({width:f,height:d,x:s,y:u})}const bb=[":popover-open",":modal"];function C0(e){return bb.some(t=>{try{return e.matches(t)}catch{return!1}})}function wb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=jt(r),l=t?C0(t.floating):!1;if(r===i||l&&a)return n;let s={scrollLeft:0,scrollTop:0},u=mn(1);const f=mn(0),d=St(r);if((d||!d&&!a)&&((hn(r)!=="body"||Bo(i))&&(s=Fc(r)),St(r))){const p=Fn(r);u=$r(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+f.x,y:n.y*u.y-s.scrollTop*u.y+f.y}}function yb(e){return Array.from(e.getClientRects())}function S0(e){return Fn(jt(e)).left+Fc(e).scrollLeft}function Eb(e){const t=jt(e),n=Fc(e),r=e.ownerDocument.body,o=Ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+S0(e);const l=-n.scrollTop;return it(r).direction==="rtl"&&(i+=Ye(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}function xb(e,t){const n=Ze(e),r=jt(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;const u=hu();(!u||u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l,y:s}}function Cb(e,t){const n=Fn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=St(e)?$r(e):mn(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,s=o*a.x,u=r*a.y;return{width:i,height:l,x:s,y:u}}function xf(e,t,n){let r;if(t==="viewport")r=xb(e,n);else if(t==="document")r=Eb(jt(e));else if(Ut(t))r=Cb(t,n);else{const o=x0(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return pc(r)}function _0(e,t){const n=_r(e);return n===t||!Ut(n)||Lc(n)?!1:it(n).position==="fixed"||_0(n,t)}function Sb(e,t){const n=t.get(e);if(n)return n;let r=Po(e,[],!1).filter(l=>Ut(l)&&hn(l)!=="body"),o=null;const a=it(e).position==="fixed";let i=a?_r(e):e;for(;Ut(i)&&!Lc(i);){const l=it(i),s=mu(i);!s&&l.position==="fixed"&&(o=null),(a?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Bo(i)&&!s&&_0(e,i))?r=r.filter(f=>f!==i):o=l,i=_r(i)}return t.set(e,r),r}function _b(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Sb(t,this._c):[].concat(n),r],l=i[0],s=i.reduce((u,f)=>{const d=xf(t,f,o);return u.top=Ye(d.top,u.top),u.right=vn(d.right,u.right),u.bottom=vn(d.bottom,u.bottom),u.left=Ye(d.left,u.left),u},xf(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Pb(e){const{width:t,height:n}=E0(e);return{width:t,height:n}}function Rb(e,t,n){const r=St(t),o=jt(t),a=n==="fixed",i=Fn(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=mn(0);if(r||!r&&!a)if((hn(t)!=="body"||Bo(o))&&(l=Fc(t)),r){const d=Fn(t,!0,a,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else o&&(s.x=S0(o));const u=i.left+l.scrollLeft-s.x,f=i.top+l.scrollTop-s.y;return{x:u,y:f,width:i.width,height:i.height}}function Cf(e,t){return!St(e)||it(e).position==="fixed"?null:t?t(e):e.offsetParent}function P0(e,t){const n=Ze(e);if(!St(e)||C0(e))return n;let r=Cf(e,t);for(;r&&mb(r)&&it(r).position==="static";)r=Cf(r,t);return r&&(hn(r)==="html"||hn(r)==="body"&&it(r).position==="static"&&!mu(r))?n:r||hb(e)||n}const Tb=async function(e){const t=this.getOffsetParent||P0,n=this.getDimensions;return{reference:Rb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function kb(e){return it(e).direction==="rtl"}const Mb={convertOffsetParentRelativeRectToViewportRelativeRect:wb,getDocumentElement:jt,getClippingRect:_b,getOffsetParent:P0,getElementRects:Tb,getClientRects:yb,getDimensions:Pb,getScale:$r,isElement:Ut,isRTL:kb};function Ob(e,t){let n=null,r;const o=jt(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),a();const{left:u,top:f,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;const g=ha(f),b=ha(o.clientWidth-(u+d)),m=ha(o.clientHeight-(f+p)),w=ha(u),v={rootMargin:-g+"px "+-b+"px "+-m+"px "+-w+"px",threshold:Ye(0,vn(1,s))||1};let $=!0;function y(E){const C=E[0].intersectionRatio;if(C!==s){if(!$)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(y,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(y,v)}n.observe(e)}return i(!0),a}function Db(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=$u(e),f=o||a?[...u?Po(u):[],...Po(t)]:[];f.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),a&&h.addEventListener("resize",n)});const d=u&&l?Ob(u,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(h=>{let[v]=h;v&&v.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var $;($=g)==null||$.observe(t)})),n()}),u&&!s&&g.observe(u),g.observe(t));let b,m=s?Fn(e):null;s&&w();function w(){const h=Fn(e);m&&(h.x!==m.x||h.y!==m.y||h.width!==m.width||h.height!==m.height)&&n(),m=h,b=requestAnimationFrame(w)}return n(),()=>{var h;f.forEach(v=>{o&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),d?.(),(h=g)==null||h.disconnect(),g=null,s&&cancelAnimationFrame(b)}}const Ib=fb,Ab=lb,Nb=vb,Lb=sb,Sf=ib,Fb=pb,zb=(e,t,n)=>{const r=new Map,o={platform:Mb,...n},a={...o.platform,_c:r};return cb(e,t,{...o,platform:a})},Vb=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Sf({element:r.current,padding:o}).fn(n):{}:r?Sf({element:r,padding:o}).fn(n):{}}}};var Va=typeof document<"u"?c.useLayoutEffect:c.useEffect;function vc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!vc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!vc(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function R0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _f(e,t){const n=R0(e);return Math.round(t*n)/n}function Pf(e){const t=c.useRef(e);return Va(()=>{t.current=e}),t}function Bb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[f,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=c.useState(r);vc(p,r)||g(r);const[b,m]=c.useState(null),[w,h]=c.useState(null),v=c.useCallback(H=>{H!==C.current&&(C.current=H,m(H))},[]),$=c.useCallback(H=>{H!==S.current&&(S.current=H,h(H))},[]),y=a||b,E=i||w,C=c.useRef(null),S=c.useRef(null),_=c.useRef(f),P=s!=null,O=Pf(s),F=Pf(o),z=c.useCallback(()=>{if(!C.current||!S.current)return;const H={placement:t,strategy:n,middleware:p};F.current&&(H.platform=F.current),zb(C.current,S.current,H).then(M=>{const T={...M,isPositioned:!0};W.current&&!vc(_.current,T)&&(_.current=T,Kt.flushSync(()=>{d(T)}))})},[p,t,n,F]);Va(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[u]);const W=c.useRef(!1);Va(()=>(W.current=!0,()=>{W.current=!1}),[]),Va(()=>{if(y&&(C.current=y),E&&(S.current=E),y&&E){if(O.current)return O.current(y,E,z);z()}},[y,E,z,O,P]);const k=c.useMemo(()=>({reference:C,floating:S,setReference:v,setFloating:$}),[v,$]),A=c.useMemo(()=>({reference:y,floating:E}),[y,E]),K=c.useMemo(()=>{const H={position:n,left:0,top:0};if(!A.floating)return H;const M=_f(A.floating,f.x),T=_f(A.floating,f.y);return l?{...H,transform:"translate("+M+"px, "+T+"px)",...R0(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:T}},[n,l,A.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:z,refs:k,elements:A,floatingStyles:K}),[f,z,k,A,K])}function Uo(e){const[t,n]=c.useState(void 0);return Pe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,l;if("borderBoxSize"in a){const s=a.borderBoxSize,u=Array.isArray(s)?s[0]:s;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const T0="Popper",[k0,Pt]=ie(T0),[Ub,M0]=k0(T0),Hb=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return c.createElement(Ub,{scope:t,anchor:r,onAnchorChange:o},n)},Kb="PopperAnchor",Wb=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=M0(Kb,n),i=c.useRef(null),l=V(t,i);return c.useEffect(()=>{a.onAnchorChange(r?.current||i.current)}),r?null:c.createElement(I.div,x({},o,{ref:l}))}),O0="PopperContent",[jb,h8]=k0(O0),Gb=c.forwardRef((e,t)=>{var n,r,o,a,i,l,s,u;const{__scopePopper:f,side:d="bottom",sideOffset:p=0,align:g="center",alignOffset:b=0,arrowPadding:m=0,avoidCollisions:w=!0,collisionBoundary:h=[],collisionPadding:v=0,sticky:$="partial",hideWhenDetached:y=!1,updatePositionStrategy:E="optimized",onPlaced:C,...S}=e,_=M0(O0,f),[P,O]=c.useState(null),F=V(t,Tt=>O(Tt)),[z,W]=c.useState(null),k=Uo(z),A=(n=k?.width)!==null&&n!==void 0?n:0,K=(r=k?.height)!==null&&r!==void 0?r:0,H=d+(g!=="center"?"-"+g:""),M=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},T=Array.isArray(h)?h:[h],N=T.length>0,U={padding:M,boundary:T.filter(Yb),altBoundary:N},{refs:G,floatingStyles:ve,placement:ue,isPositioned:Re,middlewareData:oe}=Bb({strategy:"fixed",placement:H,whileElementsMounted:(...Tt)=>Db(...Tt,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[db({mainAxis:p+K,alignmentAxis:b}),w&&Ib({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?Fb():void 0,...U}),w&&Ab({...U}),Nb({...U,apply:({elements:Tt,rects:jn,availableWidth:Fr,availableHeight:ah})=>{const{width:ch,height:ih}=jn.reference,qo=Tt.floating.style;qo.setProperty("--radix-popper-available-width",`${Fr}px`),qo.setProperty("--radix-popper-available-height",`${ah}px`),qo.setProperty("--radix-popper-anchor-width",`${ch}px`),qo.setProperty("--radix-popper-anchor-height",`${ih}px`)}}),z&&Vb({element:z,padding:m}),Xb({arrowWidth:A,arrowHeight:K}),y&&Lb({strategy:"referenceHidden",...U})]}),[B,q]=D0(ue),J=Q(C);Pe(()=>{Re&&J?.()},[Re,J]);const ee=(o=oe.arrow)===null||o===void 0?void 0:o.x,te=(a=oe.arrow)===null||a===void 0?void 0:a.y,ne=((i=oe.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[We,je]=c.useState();return Pe(()=>{P&&je(window.getComputedStyle(P).zIndex)},[P]),c.createElement("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...ve,transform:Re?ve.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:We,"--radix-popper-transform-origin":[(l=oe.transformOrigin)===null||l===void 0?void 0:l.x,(s=oe.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},c.createElement(jb,{scope:f,placedSide:B,onArrowChange:W,arrowX:ee,arrowY:te,shouldHideArrow:ne},c.createElement(I.div,x({"data-side":B,"data-align":q},S,{ref:F,style:{...S.style,animation:Re?void 0:"none",opacity:(u=oe.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function Yb(e){return e!==null}const Xb=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:l,rects:s,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=d?0:e.arrowWidth,g=d?0:e.arrowHeight,[b,m]=D0(l),w={start:"0%",center:"50%",end:"100%"}[m],h=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,v=((a=(i=u.arrow)===null||i===void 0?void 0:i.y)!==null&&a!==void 0?a:0)+g/2;let $="",y="";return b==="bottom"?($=d?w:`${h}px`,y=`${-g}px`):b==="top"?($=d?w:`${h}px`,y=`${s.floating.height+g}px`):b==="right"?($=`${-g}px`,y=d?w:`${v}px`):b==="left"&&($=`${s.floating.width+g}px`,y=d?w:`${v}px`),{data:{x:$,y}}}});function D0(e){const[t,n="center"]=e.split("-");return[t,n]}const Ho=Hb,zc=Wb,Ko=Gb,Wo=c.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?su.createPortal(c.createElement(I.div,x({},o,{ref:t})),r):null});function Qb(e,t){return c.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const le=e=>{const{present:t,children:n}=e,r=Zb(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=V(r.ref,o.ref);return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};le.displayName="Presence";function Zb(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[l,s]=Qb(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=$a(r.current);a.current=l==="mounted"?u:"none"},[l]),Pe(()=>{const u=r.current,f=o.current;if(f!==e){const p=a.current,g=$a(u);e?s("MOUNT"):g==="none"||u?.display==="none"?s("UNMOUNT"):s(f&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Pe(()=>{if(t){const u=d=>{const g=$a(r.current).includes(d.animationName);d.target===t&&g&&Kt.flushSync(()=>s("ANIMATION_END"))},f=d=>{d.target===t&&(a.current=$a(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function $a(e){return e?.animationName||"none"}const Fi="rovingFocusGroup.onEntryFocus",qb={bubbles:!1,cancelable:!0},gu="RovingFocusGroup",[Gl,I0,Jb]=Wt(gu),[e2,yn]=ie(gu,[Jb]),[t2,n2]=e2(gu),r2=c.forwardRef((e,t)=>c.createElement(Gl.Provider,{scope:e.__scopeRovingFocusGroup},c.createElement(Gl.Slot,{scope:e.__scopeRovingFocusGroup},c.createElement(o2,x({},e,{ref:t}))))),o2=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...f}=e,d=c.useRef(null),p=V(t,d),g=_t(a),[b=null,m]=ge({prop:i,defaultProp:l,onChange:s}),[w,h]=c.useState(!1),v=Q(u),$=I0(n),y=c.useRef(!1),[E,C]=c.useState(0);return c.useEffect(()=>{const S=d.current;if(S)return S.addEventListener(Fi,v),()=>S.removeEventListener(Fi,v)},[v]),c.createElement(t2,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:b,onItemFocus:c.useCallback(S=>m(S),[m]),onItemShiftTab:c.useCallback(()=>h(!0),[]),onFocusableItemAdd:c.useCallback(()=>C(S=>S+1),[]),onFocusableItemRemove:c.useCallback(()=>C(S=>S-1),[])},c.createElement(I.div,x({tabIndex:w||E===0?-1:0,"data-orientation":r},f,{ref:p,style:{outline:"none",...e.style},onMouseDown:R(e.onMouseDown,()=>{y.current=!0}),onFocus:R(e.onFocus,S=>{const _=!y.current;if(S.target===S.currentTarget&&_&&!w){const P=new CustomEvent(Fi,qb);if(S.currentTarget.dispatchEvent(P),!P.defaultPrevented){const O=$().filter(A=>A.focusable),F=O.find(A=>A.active),z=O.find(A=>A.id===b),k=[F,z,...O].filter(Boolean).map(A=>A.ref.current);A0(k)}}y.current=!1}),onBlur:R(e.onBlur,()=>h(!1))})))}),a2="RovingFocusGroupItem",c2=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,l=ye(),s=a||l,u=n2(a2,n),f=u.currentTabStopId===s,d=I0(n),{onFocusableItemAdd:p,onFocusableItemRemove:g}=u;return c.useEffect(()=>{if(r)return p(),()=>g()},[r,p,g]),c.createElement(Gl.ItemSlot,{scope:n,id:s,focusable:r,active:o},c.createElement(I.span,x({tabIndex:f?0:-1,"data-orientation":u.orientation},i,{ref:t,onMouseDown:R(e.onMouseDown,b=>{r?u.onItemFocus(s):b.preventDefault()}),onFocus:R(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:R(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const m=s2(b,u.orientation,u.dir);if(m!==void 0){b.preventDefault();let h=d().filter(v=>v.focusable).map(v=>v.ref.current);if(m==="last")h.reverse();else if(m==="prev"||m==="next"){m==="prev"&&h.reverse();const v=h.indexOf(b.currentTarget);h=u.loop?u2(h,v+1):h.slice(v+1)}setTimeout(()=>A0(h))}})})))}),i2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function l2(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function s2(e,t,n){const r=l2(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return i2[r]}function A0(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function u2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Vc=r2,Bc=c2;var d2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yn=new WeakMap,ga=new WeakMap,ba={},zi=0,N0=function(e){return e&&(e.host||N0(e.parentNode))},f2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=N0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},p2=function(e,t,n,r){var o=f2(t,Array.isArray(e)?e:[e]);ba[n]||(ba[n]=new WeakMap);var a=ba[n],i=[],l=new Set,s=new Set(o),u=function(d){!d||l.has(d)||(l.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||s.has(d)||Array.prototype.forEach.call(d.children,function(p){if(l.has(p))f(p);else{var g=p.getAttribute(r),b=g!==null&&g!=="false",m=(Yn.get(p)||0)+1,w=(a.get(p)||0)+1;Yn.set(p,m),a.set(p,w),i.push(p),m===1&&b&&ga.set(p,!0),w===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return f(t),l.clear(),zi++,function(){i.forEach(function(d){var p=Yn.get(d)-1,g=a.get(d)-1;Yn.set(d,p),a.set(d,g),p||(ga.has(d)||d.removeAttribute(r),ga.delete(d)),g||d.removeAttribute(n)}),zi--,zi||(Yn=new WeakMap,Yn=new WeakMap,ga=new WeakMap,ba={})}},jo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||d2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),p2(r,o,n,"aria-hidden")):function(){return null}},Oe=function(){return Oe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return S2;var t=_2(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},R2=wu(),mc="data-scroll-locked",T2=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),` + .`.concat(v2,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(l,"px ").concat(r,`; + } + body[`).concat(mc,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(a,`px; + padding-right: `).concat(i,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(l,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(co,` { + right: `).concat(l,"px ").concat(r,`; + } + + .`).concat(io,` { + margin-right: `).concat(l,"px ").concat(r,`; + } + + .`).concat(co," .").concat(co,` { + right: 0 `).concat(r,`; + } + + .`).concat(io," .").concat(io,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(mc,`] { + `).concat(m2,": ").concat(l,`px; + } +`)},H0=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=c.useMemo(function(){return P2(o)},[o]);return c.useEffect(function(){return document.body.setAttribute(mc,""),function(){document.body.removeAttribute(mc)}},[]),c.createElement(R2,{styles:T2(a,!t,o,n?"":"!important")})},Yl=!1;if(typeof window<"u")try{var wa=Object.defineProperty({},"passive",{get:function(){return Yl=!0,!0}});window.addEventListener("test",wa,wa),window.removeEventListener("test",wa,wa)}catch{Yl=!1}var Xn=Yl?{passive:!1}:!1,k2=function(e){return e.tagName==="TEXTAREA"},K0=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!k2(e)&&n[t]==="visible")},M2=function(e){return K0(e,"overflowY")},O2=function(e){return K0(e,"overflowX")},Tf=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=W0(e,n);if(r){var o=j0(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},D2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},I2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},W0=function(e,t){return e==="v"?M2(t):O2(t)},j0=function(e,t){return e==="v"?D2(t):I2(t)},A2=function(e,t){return e==="h"&&t==="rtl"?-1:1},N2=function(e,t,n,r,o){var a=A2(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,s=t.contains(l),u=!1,f=i>0,d=0,p=0;do{var g=j0(e,l),b=g[0],m=g[1],w=g[2],h=m-w-a*b;(b||h)&&W0(e,l)&&(d+=h,p+=b),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(o&&d===0||!o&&i>d)||!f&&(o&&p===0||!o&&-i>p))&&(u=!0),u},ya=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},kf=function(e){return[e.deltaX,e.deltaY]},Mf=function(e){return e&&"current"in e?e.current:e},L2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},F2=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},z2=0,Qn=[];function V2(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(z2++)[0],a=c.useState(function(){return wu()})[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=L0([e.lockRef.current],(e.shards||[]).map(Mf),!0).filter(Boolean);return m.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=c.useCallback(function(m,w){if("touches"in m&&m.touches.length===2)return!i.current.allowPinchZoom;var h=ya(m),v=n.current,$="deltaX"in m?m.deltaX:v[0]-h[0],y="deltaY"in m?m.deltaY:v[1]-h[1],E,C=m.target,S=Math.abs($)>Math.abs(y)?"h":"v";if("touches"in m&&S==="h"&&C.type==="range")return!1;var _=Tf(S,C);if(!_)return!0;if(_?E=S:(E=S==="v"?"h":"v",_=Tf(S,C)),!_)return!1;if(!r.current&&"changedTouches"in m&&($||y)&&(r.current=E),!E)return!0;var P=r.current||E;return N2(P,w,m,P==="h"?$:y,!0)},[]),s=c.useCallback(function(m){var w=m;if(!(!Qn.length||Qn[Qn.length-1]!==a)){var h="deltaY"in w?kf(w):ya(w),v=t.current.filter(function(E){return E.name===w.type&&E.target===w.target&&L2(E.delta,h)})[0];if(v&&v.should){w.cancelable&&w.preventDefault();return}if(!v){var $=(i.current.shards||[]).map(Mf).filter(Boolean).filter(function(E){return E.contains(w.target)}),y=$.length>0?l(w,$[0]):!i.current.noIsolation;y&&w.cancelable&&w.preventDefault()}}},[]),u=c.useCallback(function(m,w,h,v){var $={name:m,delta:w,target:h,should:v};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(y){return y!==$})},1)},[]),f=c.useCallback(function(m){n.current=ya(m),r.current=void 0},[]),d=c.useCallback(function(m){u(m.type,kf(m),m.target,l(m,e.lockRef.current))},[]),p=c.useCallback(function(m){u(m.type,ya(m),m.target,l(m,e.lockRef.current))},[]);c.useEffect(function(){return Qn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Xn),document.addEventListener("touchmove",s,Xn),document.addEventListener("touchstart",f,Xn),function(){Qn=Qn.filter(function(m){return m!==a}),document.removeEventListener("wheel",s,Xn),document.removeEventListener("touchmove",s,Xn),document.removeEventListener("touchstart",f,Xn)}},[]);var g=e.removeScrollBar,b=e.inert;return c.createElement(c.Fragment,null,b?c.createElement(a,{styles:F2(o)}):null,g?c.createElement(H0,{gapMode:"margin"}):null)}const B2=B0(U0,V2);var G0=c.forwardRef(function(e,t){return c.createElement(Uc,Oe({},e,{ref:t,sideCar:B2}))});G0.classNames=Uc.classNames;const Hc=G0,Xl=["Enter"," "],U2=["ArrowDown","PageUp","Home"],Y0=["ArrowUp","PageDown","End"],H2=[...U2,...Y0],K2={ltr:[...Xl,"ArrowRight"],rtl:[...Xl,"ArrowLeft"]},W2={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Kc="Menu",[Ro,j2,G2]=Wt(Kc),[Un,Go]=ie(Kc,[G2,Pt,yn]),Wc=Pt(),X0=yn(),[Q0,En]=Un(Kc),[Y2,Yo]=Un(Kc),X2=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,l=Wc(t),[s,u]=c.useState(null),f=c.useRef(!1),d=Q(a),p=_t(o);return c.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),c.createElement(Ho,l,c.createElement(Q0,{scope:t,open:n,onOpenChange:d,content:s,onContentChange:u},c.createElement(Y2,{scope:t,onClose:c.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:p,modal:i},r)))},Z0=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Wc(n);return c.createElement(zc,x({},o,r,{ref:t}))}),q0="MenuPortal",[Q2,J0]=Un(q0,{forceMount:void 0}),Z2=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=En(q0,t);return c.createElement(Q2,{scope:t,forceMount:n},c.createElement(le,{present:n||a.open},c.createElement(Wo,{asChild:!0,container:o},r)))},ht="MenuContent",[q2,yu]=Un(ht),J2=c.forwardRef((e,t)=>{const n=J0(ht,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=En(ht,e.__scopeMenu),i=Yo(ht,e.__scopeMenu);return c.createElement(Ro.Provider,{scope:e.__scopeMenu},c.createElement(le,{present:r||a.open},c.createElement(Ro.Slot,{scope:e.__scopeMenu},i.modal?c.createElement(ew,x({},o,{ref:t})):c.createElement(tw,x({},o,{ref:t})))))}),ew=c.forwardRef((e,t)=>{const n=En(ht,e.__scopeMenu),r=c.useRef(null),o=V(t,r);return c.useEffect(()=>{const a=r.current;if(a)return jo(a)},[]),c.createElement(Eu,x({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:R(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),tw=c.forwardRef((e,t)=>{const n=En(ht,e.__scopeMenu);return c.createElement(Eu,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Eu=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:s,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:g,disableOutsideScroll:b,...m}=e,w=En(ht,n),h=Yo(ht,n),v=Wc(n),$=X0(n),y=j2(n),[E,C]=c.useState(null),S=c.useRef(null),_=V(t,S,w.onContentChange),P=c.useRef(0),O=c.useRef(""),F=c.useRef(0),z=c.useRef(null),W=c.useRef("right"),k=c.useRef(0),A=b?Hc:c.Fragment,K=b?{as:pn,allowPinchZoom:!0}:void 0,H=T=>{var N,U;const G=O.current+T,ve=y().filter(J=>!J.disabled),ue=document.activeElement,Re=(N=ve.find(J=>J.ref.current===ue))===null||N===void 0?void 0:N.textValue,oe=ve.map(J=>J.textValue),B=yw(oe,G,Re),q=(U=ve.find(J=>J.textValue===B))===null||U===void 0?void 0:U.ref.current;(function J(ee){O.current=ee,window.clearTimeout(P.current),ee!==""&&(P.current=window.setTimeout(()=>J(""),1e3))})(G),q&&setTimeout(()=>q.focus())};c.useEffect(()=>()=>window.clearTimeout(P.current),[]),Ac();const M=c.useCallback(T=>{var N,U;return W.current===((N=z.current)===null||N===void 0?void 0:N.side)&&xw(T,(U=z.current)===null||U===void 0?void 0:U.area)},[]);return c.createElement(q2,{scope:n,searchRef:O,onItemEnter:c.useCallback(T=>{M(T)&&T.preventDefault()},[M]),onItemLeave:c.useCallback(T=>{var N;M(T)||((N=S.current)===null||N===void 0||N.focus(),C(null))},[M]),onTriggerLeave:c.useCallback(T=>{M(T)&&T.preventDefault()},[M]),pointerGraceTimerRef:F,onPointerGraceIntentChange:c.useCallback(T=>{z.current=T},[])},c.createElement(A,K,c.createElement(Nc,{asChild:!0,trapped:o,onMountAutoFocus:R(a,T=>{var N;T.preventDefault(),(N=S.current)===null||N===void 0||N.focus()}),onUnmountAutoFocus:i},c.createElement(wn,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:g},c.createElement(Vc,x({asChild:!0},$,{dir:h.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:C,onEntryFocus:R(s,T=>{h.isUsingKeyboardRef.current||T.preventDefault()})}),c.createElement(Ko,x({role:"menu","aria-orientation":"vertical","data-state":am(w.open),"data-radix-menu-content":"",dir:h.dir},v,m,{ref:_,style:{outline:"none",...m.style},onKeyDown:R(m.onKeyDown,T=>{const U=T.target.closest("[data-radix-menu-content]")===T.currentTarget,G=T.ctrlKey||T.altKey||T.metaKey,ve=T.key.length===1;U&&(T.key==="Tab"&&T.preventDefault(),!G&&ve&&H(T.key));const ue=S.current;if(T.target!==ue||!H2.includes(T.key))return;T.preventDefault();const oe=y().filter(B=>!B.disabled).map(B=>B.ref.current);Y0.includes(T.key)&&oe.reverse(),bw(oe)}),onBlur:R(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(P.current),O.current="")}),onPointerMove:R(e.onPointerMove,To(T=>{const N=T.target,U=k.current!==T.clientX;if(T.currentTarget.contains(N)&&U){const G=T.clientX>k.current?"right":"left";W.current=G,k.current=T.clientX}}))})))))))}),nw=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.createElement(I.div,x({role:"group"},r,{ref:t}))}),rw=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.createElement(I.div,x({},r,{ref:t}))}),Ql="MenuItem",Of="menu.itemSelect",xu=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),i=Yo(Ql,e.__scopeMenu),l=yu(Ql,e.__scopeMenu),s=V(t,a),u=c.useRef(!1),f=()=>{const d=a.current;if(!n&&d){const p=new CustomEvent(Of,{bubbles:!0,cancelable:!0});d.addEventListener(Of,g=>r?.(g),{once:!0}),du(d,p),p.defaultPrevented?u.current=!1:i.onClose()}};return c.createElement(em,x({},o,{ref:s,disabled:n,onClick:R(e.onClick,f),onPointerDown:d=>{var p;(p=e.onPointerDown)===null||p===void 0||p.call(e,d),u.current=!0},onPointerUp:R(e.onPointerUp,d=>{var p;u.current||(p=d.currentTarget)===null||p===void 0||p.click()}),onKeyDown:R(e.onKeyDown,d=>{const p=l.searchRef.current!=="";n||p&&d.key===" "||Xl.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),em=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=yu(Ql,n),l=X0(n),s=c.useRef(null),u=V(t,s),[f,d]=c.useState(!1),[p,g]=c.useState("");return c.useEffect(()=>{const b=s.current;if(b){var m;g(((m=b.textContent)!==null&&m!==void 0?m:"").trim())}},[a.children]),c.createElement(Ro.ItemSlot,{scope:n,disabled:r,textValue:o??p},c.createElement(Bc,x({asChild:!0},l,{focusable:!r}),c.createElement(I.div,x({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:u,onPointerMove:R(e.onPointerMove,To(b=>{r?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus())})),onPointerLeave:R(e.onPointerLeave,To(b=>i.onItemLeave(b))),onFocus:R(e.onFocus,()=>d(!0)),onBlur:R(e.onBlur,()=>d(!1))}))))}),ow=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.createElement(nm,{scope:e.__scopeMenu,checked:n},c.createElement(xu,x({role:"menuitemcheckbox","aria-checked":hc(n)?"mixed":n},o,{ref:t,"data-state":Cu(n),onSelect:R(o.onSelect,()=>r?.(hc(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),aw="MenuRadioGroup",[cw,iw]=Un(aw,{value:void 0,onValueChange:()=>{}}),lw=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Q(r);return c.createElement(cw,{scope:e.__scopeMenu,value:n,onValueChange:a},c.createElement(nw,x({},o,{ref:t})))}),sw="MenuRadioItem",uw=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=iw(sw,e.__scopeMenu),a=n===o.value;return c.createElement(nm,{scope:e.__scopeMenu,checked:a},c.createElement(xu,x({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":Cu(a),onSelect:R(r.onSelect,()=>{var i;return(i=o.onValueChange)===null||i===void 0?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})))}),tm="MenuItemIndicator",[nm,dw]=Un(tm,{checked:!1}),fw=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=dw(tm,n);return c.createElement(le,{present:r||hc(a.checked)||a.checked===!0},c.createElement(I.span,x({},o,{ref:t,"data-state":Cu(a.checked)})))}),pw=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.createElement(I.div,x({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),rm="MenuSub",[vw,om]=Un(rm),mw=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=En(rm,t),i=Wc(t),[l,s]=c.useState(null),[u,f]=c.useState(null),d=Q(o);return c.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),c.createElement(Ho,i,c.createElement(Q0,{scope:t,open:r,onOpenChange:d,content:u,onContentChange:f},c.createElement(vw,{scope:t,contentId:ye(),triggerId:ye(),trigger:l,onTriggerChange:s},n)))},Ea="MenuSubTrigger",hw=c.forwardRef((e,t)=>{const n=En(Ea,e.__scopeMenu),r=Yo(Ea,e.__scopeMenu),o=om(Ea,e.__scopeMenu),a=yu(Ea,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:s}=a,u={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const d=l.current;return()=>{window.clearTimeout(d),s(null)}},[l,s]),c.createElement(Z0,x({asChild:!0},u),c.createElement(em,x({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":am(n.open)},e,{ref:Vo(t,o.onTriggerChange),onClick:d=>{var p;(p=e.onClick)===null||p===void 0||p.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:R(e.onPointerMove,To(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:R(e.onPointerLeave,To(d=>{var p;f();const g=(p=n.content)===null||p===void 0?void 0:p.getBoundingClientRect();if(g){var b;const m=(b=n.content)===null||b===void 0?void 0:b.dataset.side,w=m==="right",h=w?-5:5,v=g[w?"left":"right"],$=g[w?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+h,y:d.clientY},{x:v,y:g.top},{x:$,y:g.top},{x:$,y:g.bottom},{x:v,y:g.bottom}],side:m}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:R(e.onKeyDown,d=>{const p=a.searchRef.current!=="";if(!(e.disabled||p&&d.key===" ")&&K2[r.dir].includes(d.key)){var g;n.onOpenChange(!0),(g=n.content)===null||g===void 0||g.focus(),d.preventDefault()}})})))}),$w="MenuSubContent",gw=c.forwardRef((e,t)=>{const n=J0(ht,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=En(ht,e.__scopeMenu),i=Yo(ht,e.__scopeMenu),l=om($w,e.__scopeMenu),s=c.useRef(null),u=V(t,s);return c.createElement(Ro.Provider,{scope:e.__scopeMenu},c.createElement(le,{present:r||a.open},c.createElement(Ro.Slot,{scope:e.__scopeMenu},c.createElement(Eu,x({id:l.contentId,"aria-labelledby":l.triggerId},o,{ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;i.isUsingKeyboardRef.current&&((d=s.current)===null||d===void 0||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:R(e.onFocusOutside,f=>{f.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:R(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:R(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),p=W2[i.dir].includes(f.key);if(d&&p){var g;a.onOpenChange(!1),(g=l.trigger)===null||g===void 0||g.focus(),f.preventDefault()}})})))))});function am(e){return e?"open":"closed"}function hc(e){return e==="indeterminate"}function Cu(e){return hc(e)?"indeterminate":e?"checked":"unchecked"}function bw(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ww(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function yw(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=ww(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const s=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function Ew(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;ar!=f>r&&n<(u-l)*(r-s)/(f-s)+l&&(o=!o)}return o}function xw(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Ew(n,t)}function To(e){return t=>t.pointerType==="mouse"?e(t):void 0}const cm=X2,im=Z0,Su=Z2,_u=J2,Pu=rw,Ru=xu,Tu=ow,Cw=lw,ku=uw,Mu=fw,Ou=pw,Sw=mw,Du=hw,Iu=gw,lm="DropdownMenu",[_w,$8]=ie(lm,[Go]),lt=Go(),[Pw,sm]=_w(lm),Rw=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,s=lt(t),u=c.useRef(null),[f=!1,d]=ge({prop:o,defaultProp:a,onChange:i});return c.createElement(Pw,{scope:t,triggerId:ye(),triggerRef:u,contentId:ye(),open:f,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(p=>!p),[d]),modal:l},c.createElement(cm,x({},s,{open:f,onOpenChange:d,dir:r,modal:l}),n))},Tw="DropdownMenuTrigger",kw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=sm(Tw,n),i=lt(n);return c.createElement(im,x({asChild:!0},i),c.createElement(I.button,x({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:Vo(t,a.triggerRef),onPointerDown:R(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:R(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),Mw=e=>{const{__scopeDropdownMenu:t,...n}=e,r=lt(t);return c.createElement(Su,x({},r,n))},Ow="DropdownMenuContent",Dw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sm(Ow,n),a=lt(n),i=c.useRef(!1);return c.createElement(_u,x({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:R(e.onCloseAutoFocus,l=>{var s;i.current||(s=o.triggerRef.current)===null||s===void 0||s.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:R(e.onInteractOutside,l=>{const s=l.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0,f=s.button===2||u;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Iw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=lt(n);return c.createElement(Pu,x({},o,r,{ref:t}))}),Aw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=lt(n);return c.createElement(Ru,x({},o,r,{ref:t}))}),Nw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=lt(n);return c.createElement(Tu,x({},o,r,{ref:t}))}),Lw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=lt(n);return c.createElement(ku,x({},o,r,{ref:t}))}),Fw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=lt(n);return c.createElement(Mu,x({},o,r,{ref:t}))}),zw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=lt(n);return c.createElement(Ou,x({},o,r,{ref:t}))}),Vw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=lt(n);return c.createElement(Du,x({},o,r,{ref:t}))}),Bw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=lt(n);return c.createElement(Iu,x({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),g8=Rw,b8=kw,w8=Mw,y8=Dw,E8=Iw,x8=Aw,C8=Nw,S8=Lw,_8=Fw,P8=zw,R8=Vw,T8=Bw;function He(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}var Uw=["color"],k8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,Uw);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Hw=["color"],M8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,Hw);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Kw=["color"],O8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,Kw);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Ww=["color"],D8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,Ww);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),jw=["color"],I8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,jw);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Gw=["color"],A8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,Gw);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Yw=["color"],N8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,Yw);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Xw=["color"],L8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,Xw);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Qw=["color"],F8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,Qw);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))}),Zw=["color"],z8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,Zw);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),qw=["color"],V8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,qw);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M5.5 4.625C6.12132 4.625 6.625 4.12132 6.625 3.5C6.625 2.87868 6.12132 2.375 5.5 2.375C4.87868 2.375 4.375 2.87868 4.375 3.5C4.375 4.12132 4.87868 4.625 5.5 4.625ZM9.5 4.625C10.1213 4.625 10.625 4.12132 10.625 3.5C10.625 2.87868 10.1213 2.375 9.5 2.375C8.87868 2.375 8.375 2.87868 8.375 3.5C8.375 4.12132 8.87868 4.625 9.5 4.625ZM10.625 7.5C10.625 8.12132 10.1213 8.625 9.5 8.625C8.87868 8.625 8.375 8.12132 8.375 7.5C8.375 6.87868 8.87868 6.375 9.5 6.375C10.1213 6.375 10.625 6.87868 10.625 7.5ZM5.5 8.625C6.12132 8.625 6.625 8.12132 6.625 7.5C6.625 6.87868 6.12132 6.375 5.5 6.375C4.87868 6.375 4.375 6.87868 4.375 7.5C4.375 8.12132 4.87868 8.625 5.5 8.625ZM10.625 11.5C10.625 12.1213 10.1213 12.625 9.5 12.625C8.87868 12.625 8.375 12.1213 8.375 11.5C8.375 10.8787 8.87868 10.375 9.5 10.375C10.1213 10.375 10.625 10.8787 10.625 11.5ZM5.5 12.625C6.12132 12.625 6.625 12.1213 6.625 11.5C6.625 10.8787 6.12132 10.375 5.5 10.375C4.87868 10.375 4.375 10.8787 4.375 11.5C4.375 12.1213 4.87868 12.625 5.5 12.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Jw=["color"],B8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,Jw);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ey=["color"],U8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,ey);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ty=["color"],H8=c.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=He(e,ty);return c.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),c.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const um="ContextMenu",[ny,K8]=ie(um,[Go]),Rt=Go(),[W8,ry]=ny(um),oy=e=>{const{__scopeContextMenu:t,...n}=e,r=Rt(t);return c.createElement(Su,x({},r,n))},ay="ContextMenuContent",cy=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ry(ay,n),a=Rt(n),i=c.useRef(!1);return c.createElement(_u,x({},a,r,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:l=>{var s;(s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,l),!l.defaultPrevented&&i.current&&l.preventDefault(),i.current=!1},onInteractOutside:l=>{var s;(s=e.onInteractOutside)===null||s===void 0||s.call(e,l),!l.defaultPrevented&&!o.modal&&(i.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),iy=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=Rt(n);return c.createElement(Pu,x({},o,r,{ref:t}))}),ly=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=Rt(n);return c.createElement(Ru,x({},o,r,{ref:t}))}),sy=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=Rt(n);return c.createElement(Tu,x({},o,r,{ref:t}))}),uy=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=Rt(n);return c.createElement(ku,x({},o,r,{ref:t}))}),dy=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=Rt(n);return c.createElement(Mu,x({},o,r,{ref:t}))}),fy=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=Rt(n);return c.createElement(Ou,x({},o,r,{ref:t}))}),py=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=Rt(n);return c.createElement(Du,x({},o,r,{ref:t}))}),vy=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=Rt(n);return c.createElement(Iu,x({},o,r,{ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),j8=oy,G8=cy,Y8=iy,X8=ly,Q8=sy,Z8=uy,q8=dy,J8=fy,ex=py,tx=vy;function Ar(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const jc=c.forwardRef((e,t)=>c.createElement(I.span,x({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),dm=jc,Xo="NavigationMenu",[Au,fm,my]=Wt(Xo),[Zl,hy,$y]=Wt(Xo),[Nu,nx]=ie(Xo,[my,$y]),[gy,gt]=Nu(Xo),[by,wy]=Nu(Xo),yy=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:u,...f}=e,[d,p]=c.useState(null),g=V(t,P=>p(P)),b=_t(u),m=c.useRef(0),w=c.useRef(0),h=c.useRef(0),[v,$]=c.useState(!0),[y="",E]=ge({prop:r,onChange:P=>{const O=P!=="",F=l>0;O?(window.clearTimeout(h.current),F&&$(!1)):(window.clearTimeout(h.current),h.current=window.setTimeout(()=>$(!0),l)),o?.(P)},defaultProp:a}),C=c.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>E(""),150)},[E]),S=c.useCallback(P=>{window.clearTimeout(w.current),E(P)},[E]),_=c.useCallback(P=>{y===P?window.clearTimeout(w.current):m.current=window.setTimeout(()=>{window.clearTimeout(w.current),E(P)},i)},[y,E,i]);return c.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(w.current),window.clearTimeout(h.current)},[]),c.createElement(Ey,{scope:n,isRootMenu:!0,value:y,dir:b,orientation:s,rootNavigationMenu:d,onTriggerEnter:P=>{window.clearTimeout(m.current),v?_(P):S(P)},onTriggerLeave:()=>{window.clearTimeout(m.current),C()},onContentEnter:()=>window.clearTimeout(w.current),onContentLeave:C,onItemSelect:P=>{E(O=>O===P?"":P)},onItemDismiss:()=>E("")},c.createElement(I.nav,x({"aria-label":"Main","data-orientation":s,dir:b},f,{ref:g})))}),Ey=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:i,value:l,onItemSelect:s,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:d,onContentEnter:p,onContentLeave:g}=e,[b,m]=c.useState(null),[w,h]=c.useState(new Map),[v,$]=c.useState(null);return c.createElement(gy,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:Ar(l),baseId:ye(),dir:o,orientation:a,viewport:b,onViewportChange:m,indicatorTrack:v,onIndicatorTrackChange:$,onTriggerEnter:Q(f),onTriggerLeave:Q(d),onContentEnter:Q(p),onContentLeave:Q(g),onItemSelect:Q(s),onItemDismiss:Q(u),onViewportContentChange:c.useCallback((y,E)=>{h(C=>(C.set(y,E),new Map(C)))},[]),onViewportContentRemove:c.useCallback(y=>{h(E=>E.has(y)?(E.delete(y),new Map(E)):E)},[])},c.createElement(Au.Provider,{scope:t},c.createElement(by,{scope:t,items:w},i)))},xy="NavigationMenuList",Cy=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=gt(xy,n),a=c.createElement(I.ul,x({"data-orientation":o.orientation},r,{ref:t}));return c.createElement(I.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},c.createElement(Au.Slot,{scope:n},o.isRootMenu?c.createElement($m,{asChild:!0},a):a))}),Sy="NavigationMenuItem",[rx,pm]=Nu(Sy),Df="NavigationMenuTrigger",_y=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=gt(Df,e.__scopeNavigationMenu),i=pm(Df,e.__scopeNavigationMenu),l=c.useRef(null),s=V(l,i.triggerRef,t),u=bm(a.baseId,i.value),f=wm(a.baseId,i.value),d=c.useRef(!1),p=c.useRef(!1),g=i.value===a.value;return c.createElement(c.Fragment,null,c.createElement(Au.ItemSlot,{scope:n,value:i.value},c.createElement(Ay,{asChild:!0},c.createElement(I.button,x({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":Lu(g),"aria-expanded":g,"aria-controls":f},o,{ref:s,onPointerEnter:R(e.onPointerEnter,()=>{p.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:R(e.onPointerMove,$c(()=>{r||p.current||i.wasEscapeCloseRef.current||d.current||(a.onTriggerEnter(i.value),d.current=!0)})),onPointerLeave:R(e.onPointerLeave,$c(()=>{r||(a.onTriggerLeave(),d.current=!1)})),onClick:R(e.onClick,()=>{a.onItemSelect(i.value),p.current=g}),onKeyDown:R(e.onKeyDown,b=>{const w={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];g&&b.key===w&&(i.onEntryKeyDown(),b.preventDefault())})})))),g&&c.createElement(c.Fragment,null,c.createElement(dm,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:b=>{const m=i.contentRef.current,w=b.relatedTarget,h=w===l.current,v=m?.contains(w);(h||!v)&&i.onFocusProxyEnter(h?"start":"end")}}),a.viewport&&c.createElement("span",{"aria-owns":f})))}),vm="NavigationMenuIndicator",Py=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=gt(vm,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?su.createPortal(c.createElement(le,{present:n||a},c.createElement(Ry,x({},r,{ref:t}))),o.indicatorTrack):null}),Ry=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=gt(vm,n),a=fm(n),[i,l]=c.useState(null),[s,u]=c.useState(null),f=o.orientation==="horizontal",d=!!o.value;c.useEffect(()=>{var g;const m=(g=a().find(w=>w.value===o.value))===null||g===void 0?void 0:g.ref.current;m&&l(m)},[a,o.value]);const p=()=>{i&&u({size:f?i.offsetWidth:i.offsetHeight,offset:f?i.offsetLeft:i.offsetTop})};return ql(i,p),ql(o.indicatorTrack,p),s?c.createElement(I.div,x({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":o.orientation},r,{ref:t,style:{position:"absolute",...f?{left:0,width:s.size+"px",transform:`translateX(${s.offset}px)`}:{top:0,height:s.size+"px",transform:`translateY(${s.offset}px)`},...r.style}})):null}),ko="NavigationMenuContent",Ty=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=gt(ko,e.__scopeNavigationMenu),a=pm(ko,e.__scopeNavigationMenu),i=V(a.contentRef,t),l=a.value===o.value,s={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?c.createElement(ky,x({forceMount:n},s,{ref:i})):c.createElement(le,{present:n||l},c.createElement(mm,x({"data-state":Lu(l)},s,{ref:i,onPointerEnter:R(e.onPointerEnter,o.onContentEnter),onPointerLeave:R(e.onPointerLeave,$c(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),ky=c.forwardRef((e,t)=>{const n=gt(ko,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Pe(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Pe(()=>()=>o(e.value),[e.value,o]),null}),Hi="navigationMenu.rootContentDismiss",mm=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:l,onContentFocusOutside:s,...u}=e,f=gt(ko,n),d=c.useRef(null),p=V(d,t),g=bm(f.baseId,r),b=wm(f.baseId,r),m=fm(n),w=c.useRef(null),{onItemDismiss:h}=f;c.useEffect(()=>{const $=d.current;if(f.isRootMenu&&$){const y=()=>{var E;h(),l(),$.contains(document.activeElement)&&((E=o.current)===null||E===void 0||E.focus())};return $.addEventListener(Hi,y),()=>$.removeEventListener(Hi,y)}},[f.isRootMenu,e.value,o,h,l]);const v=c.useMemo(()=>{const y=m().map(O=>O.value);f.dir==="rtl"&&y.reverse();const E=y.indexOf(f.value),C=y.indexOf(f.previousValue),S=r===f.value,_=C===y.indexOf(r);if(!S&&!_)return w.current;const P=(()=>{if(E!==C){if(S&&C!==-1)return E>C?"from-end":"from-start";if(_&&E!==-1)return E>C?"to-start":"to-end"}return null})();return w.current=P,P},[f.previousValue,f.value,f.dir,m,r]);return c.createElement($m,{asChild:!0},c.createElement(wn,x({id:b,"aria-labelledby":g,"data-motion":v,"data-orientation":f.orientation},u,{ref:p,onDismiss:()=>{var $;const y=new Event(Hi,{bubbles:!0,cancelable:!0});($=d.current)===null||$===void 0||$.dispatchEvent(y)},onFocusOutside:R(e.onFocusOutside,$=>{var y;s();const E=$.target;(y=f.rootNavigationMenu)!==null&&y!==void 0&&y.contains(E)&&$.preventDefault()}),onPointerDownOutside:R(e.onPointerDownOutside,$=>{var y;const E=$.target,C=m().some(_=>{var P;return(P=_.ref.current)===null||P===void 0?void 0:P.contains(E)}),S=f.isRootMenu&&((y=f.viewport)===null||y===void 0?void 0:y.contains(E));(C||S||!f.isRootMenu)&&$.preventDefault()}),onKeyDown:R(e.onKeyDown,$=>{const y=$.altKey||$.ctrlKey||$.metaKey;if($.key==="Tab"&&!y){const S=Ny($.currentTarget),_=document.activeElement,P=S.findIndex(z=>z===_),F=$.shiftKey?S.slice(0,P).reverse():S.slice(P+1,S.length);if(gm(F))$.preventDefault();else{var C;(C=a.current)===null||C===void 0||C.focus()}}}),onEscapeKeyDown:R(e.onEscapeKeyDown,$=>{i.current=!0})})))}),hm="NavigationMenuViewport",My=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!gt(hm,e.__scopeNavigationMenu).value;return c.createElement(le,{present:n||a},c.createElement(Oy,x({},r,{ref:t})))}),Oy=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=gt(hm,n),i=V(t,a.onViewportChange),l=wy(ko,e.__scopeNavigationMenu),[s,u]=c.useState(null),[f,d]=c.useState(null),p=s?s?.width+"px":void 0,g=s?s?.height+"px":void 0,b=!!a.value,m=b?a.value:a.previousValue;return ql(f,()=>{f&&u({width:f.offsetWidth,height:f.offsetHeight})}),c.createElement(I.div,x({"data-state":Lu(b),"data-orientation":a.orientation},o,{ref:i,style:{pointerEvents:!b&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":g,...o.style},onPointerEnter:R(e.onPointerEnter,a.onContentEnter),onPointerLeave:R(e.onPointerLeave,$c(a.onContentLeave))}),Array.from(l.items).map(([h,{ref:v,forceMount:$,...y}])=>{const E=m===h;return c.createElement(le,{key:h,present:$||E},c.createElement(mm,x({},y,{ref:Vo(v,C=>{E&&C&&d(C)})})))}))}),Dy="FocusGroup",$m=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=gt(Dy,n);return c.createElement(Zl.Provider,{scope:n},c.createElement(Zl.Slot,{scope:n},c.createElement(I.div,x({dir:o.dir},r,{ref:t}))))}),If=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Iy="FocusGroupItem",Ay=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=hy(n),a=gt(Iy,n);return c.createElement(Zl.ItemSlot,{scope:n},c.createElement(I.button,x({},r,{ref:t,onKeyDown:R(e.onKeyDown,i=>{if(["Home","End",...If].includes(i.key)){let s=o().map(d=>d.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&s.reverse(),If.includes(i.key)){const d=s.indexOf(i.currentTarget);s=s.slice(d+1)}setTimeout(()=>gm(s)),i.preventDefault()}})})))});function Ny(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function gm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function ql(e,t){const n=Q(t);Pe(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function Lu(e){return e?"open":"closed"}function bm(e,t){return`${e}-trigger-${t}`}function wm(e,t){return`${e}-content-${t}`}function $c(e){return t=>t.pointerType==="mouse"?e(t):void 0}const ox=yy,ax=Cy,cx=_y,ix=Py,lx=Ty,sx=My,ym="Checkbox",[Ly,ux]=ie(ym),[Fy,zy]=Ly(ym),Vy=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:s="on",onCheckedChange:u,...f}=e,[d,p]=c.useState(null),g=V(t,$=>p($)),b=c.useRef(!1),m=d?!!d.closest("form"):!0,[w=!1,h]=ge({prop:o,defaultProp:a,onChange:u}),v=c.useRef(w);return c.useEffect(()=>{const $=d?.form;if($){const y=()=>h(v.current);return $.addEventListener("reset",y),()=>$.removeEventListener("reset",y)}},[d,h]),c.createElement(Fy,{scope:n,state:w,disabled:l},c.createElement(I.button,x({type:"button",role:"checkbox","aria-checked":On(w)?"mixed":w,"aria-required":i,"data-state":Em(w),"data-disabled":l?"":void 0,disabled:l,value:s},f,{ref:g,onKeyDown:R(e.onKeyDown,$=>{$.key==="Enter"&&$.preventDefault()}),onClick:R(e.onClick,$=>{h(y=>On(y)?!0:!y),m&&(b.current=$.isPropagationStopped(),b.current||$.stopPropagation())})})),m&&c.createElement(Hy,{control:d,bubbles:!b.current,name:r,value:s,checked:w,required:i,disabled:l,style:{transform:"translateX(-100%)"}}))}),By="CheckboxIndicator",Uy=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=zy(By,n);return c.createElement(le,{present:r||On(a.state)||a.state===!0},c.createElement(I.span,x({"data-state":Em(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),Hy=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=c.useRef(null),i=Ar(n),l=Uo(t);return c.useEffect(()=>{const s=a.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(i!==n&&d){const p=new Event("click",{bubbles:r});s.indeterminate=On(n),d.call(s,On(n)?!1:n),s.dispatchEvent(p)}},[i,n,r]),c.createElement("input",x({type:"checkbox","aria-hidden":!0,defaultChecked:On(n)?!1:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function On(e){return e==="indeterminate"}function Em(e){return On(e)?"indeterminate":e?"checked":"unchecked"}const dx=Vy,fx=Uy,xm="Radio",[Ky,Cm]=ie(xm),[Wy,jy]=Ky(xm),Gy=c.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:l="on",onCheck:s,...u}=e,[f,d]=c.useState(null),p=V(t,m=>d(m)),g=c.useRef(!1),b=f?!!f.closest("form"):!0;return c.createElement(Wy,{scope:n,checked:o,disabled:i},c.createElement(I.button,x({type:"button",role:"radio","aria-checked":o,"data-state":Sm(o),"data-disabled":i?"":void 0,disabled:i,value:l},u,{ref:p,onClick:R(e.onClick,m=>{o||s?.(),b&&(g.current=m.isPropagationStopped(),g.current||m.stopPropagation())})})),b&&c.createElement(Qy,{control:f,bubbles:!g.current,name:r,value:l,checked:o,required:a,disabled:i,style:{transform:"translateX(-100%)"}}))}),Yy="RadioIndicator",Xy=c.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=jy(Yy,n);return c.createElement(le,{present:r||a.checked},c.createElement(I.span,x({"data-state":Sm(a.checked),"data-disabled":a.disabled?"":void 0},o,{ref:t})))}),Qy=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=c.useRef(null),i=Ar(n),l=Uo(t);return c.useEffect(()=>{const s=a.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(i!==n&&d){const p=new Event("click",{bubbles:r});d.call(s,n),s.dispatchEvent(p)}},[i,n,r]),c.createElement("input",x({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Sm(e){return e?"checked":"unchecked"}const Zy=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],_m="RadioGroup",[qy,px]=ie(_m,[yn,Cm]),Pm=yn(),Rm=Cm(),[Jy,e5]=qy(_m),t5=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:l=!1,orientation:s,dir:u,loop:f=!0,onValueChange:d,...p}=e,g=Pm(n),b=_t(u),[m,w]=ge({prop:a,defaultProp:o,onChange:d});return c.createElement(Jy,{scope:n,name:r,required:i,disabled:l,value:m,onValueChange:w},c.createElement(Vc,x({asChild:!0},g,{orientation:s,dir:b,loop:f}),c.createElement(I.div,x({role:"radiogroup","aria-required":i,"aria-orientation":s,"data-disabled":l?"":void 0,dir:b},p,{ref:t}))))}),n5="RadioGroupItem",r5=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=e5(n5,n),i=a.disabled||r,l=Pm(n),s=Rm(n),u=c.useRef(null),f=V(t,u),d=a.value===o.value,p=c.useRef(!1);return c.useEffect(()=>{const g=m=>{Zy.includes(m.key)&&(p.current=!0)},b=()=>p.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",b)}},[]),c.createElement(Bc,x({asChild:!0},l,{focusable:!i,active:d}),c.createElement(Gy,x({disabled:i,required:a.required,checked:d},s,o,{name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:R(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:R(o.onFocus,()=>{var g;p.current&&((g=u.current)===null||g===void 0||g.click())})})))}),o5=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Rm(n);return c.createElement(Xy,x({},o,r,{ref:t}))}),vx=t5,mx=r5,hx=o5;function Mo(e,[t,n]){return Math.min(n,Math.max(t,e))}const a5=[" ","Enter","ArrowUp","ArrowDown"],c5=[" ","Enter"],Gc="Select",[Yc,Fu,i5]=Wt(Gc),[Nr,$x]=ie(Gc,[i5,Pt]),zu=Pt(),[l5,Hn]=Nr(Gc),[s5,u5]=Nr(Gc),d5=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:s,dir:u,name:f,autoComplete:d,disabled:p,required:g}=e,b=zu(t),[m,w]=c.useState(null),[h,v]=c.useState(null),[$,y]=c.useState(!1),E=_t(u),[C=!1,S]=ge({prop:r,defaultProp:o,onChange:a}),[_,P]=ge({prop:i,defaultProp:l,onChange:s}),O=c.useRef(null),F=m?!!m.closest("form"):!0,[z,W]=c.useState(new Set),k=Array.from(z).map(A=>A.props.value).join(";");return c.createElement(Ho,b,c.createElement(l5,{required:g,scope:t,trigger:m,onTriggerChange:w,valueNode:h,onValueNodeChange:v,valueNodeHasChildren:$,onValueNodeHasChildrenChange:y,contentId:ye(),value:_,onValueChange:P,open:C,onOpenChange:S,dir:E,triggerPointerDownPosRef:O,disabled:p},c.createElement(Yc.Provider,{scope:t},c.createElement(s5,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(A=>{W(K=>new Set(K).add(A))},[]),onNativeOptionRemove:c.useCallback(A=>{W(K=>{const H=new Set(K);return H.delete(A),H})},[])},n)),F?c.createElement(Om,{key:k,"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:d,value:_,onChange:A=>P(A.target.value),disabled:p},_===void 0?c.createElement("option",{value:""}):null,Array.from(z)):null))},f5="SelectTrigger",p5=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=zu(n),i=Hn(f5,n),l=i.disabled||r,s=V(t,i.onTriggerChange),u=Fu(n),[f,d,p]=Dm(b=>{const m=u().filter(v=>!v.disabled),w=m.find(v=>v.value===i.value),h=Im(m,b,w);h!==void 0&&i.onValueChange(h.value)}),g=()=>{l||(i.onOpenChange(!0),p())};return c.createElement(zc,x({asChild:!0},a),c.createElement(I.button,x({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Mm(i.value)?"":void 0},o,{ref:s,onClick:R(o.onClick,b=>{b.currentTarget.focus()}),onPointerDown:R(o.onPointerDown,b=>{const m=b.target;m.hasPointerCapture(b.pointerId)&&m.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&(g(),i.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)},b.preventDefault())}),onKeyDown:R(o.onKeyDown,b=>{const m=f.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&d(b.key),!(m&&b.key===" ")&&a5.includes(b.key)&&(g(),b.preventDefault())})})))}),v5="SelectValue",m5=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,s=Hn(v5,n),{onValueNodeHasChildrenChange:u}=s,f=a!==void 0,d=V(t,s.onValueNodeChange);return Pe(()=>{u(f)},[u,f]),c.createElement(I.span,x({},l,{ref:d,style:{pointerEvents:"none"}}),Mm(s.value)?c.createElement(c.Fragment,null,i):a)}),h5=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return c.createElement(I.span,x({"aria-hidden":!0},o,{ref:t}),r||"▼")}),$5=e=>c.createElement(Wo,x({asChild:!0},e)),Pr="SelectContent",g5=c.forwardRef((e,t)=>{const n=Hn(Pr,e.__scopeSelect),[r,o]=c.useState();if(Pe(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?Kt.createPortal(c.createElement(Tm,{scope:e.__scopeSelect},c.createElement(Yc.Slot,{scope:e.__scopeSelect},c.createElement("div",null,e.children))),a):null}return c.createElement(b5,x({},e,{ref:t}))}),Mt=10,[Tm,Xc]=Nr(Pr),b5=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:s,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:g,sticky:b,hideWhenDetached:m,avoidCollisions:w,...h}=e,v=Hn(Pr,n),[$,y]=c.useState(null),[E,C]=c.useState(null),S=V(t,B=>y(B)),[_,P]=c.useState(null),[O,F]=c.useState(null),z=Fu(n),[W,k]=c.useState(!1),A=c.useRef(!1);c.useEffect(()=>{if($)return jo($)},[$]),Ac();const K=c.useCallback(B=>{const[q,...J]=z().map(ne=>ne.ref.current),[ee]=J.slice(-1),te=document.activeElement;for(const ne of B)if(ne===te||(ne?.scrollIntoView({block:"nearest"}),ne===q&&E&&(E.scrollTop=0),ne===ee&&E&&(E.scrollTop=E.scrollHeight),ne?.focus(),document.activeElement!==te))return},[z,E]),H=c.useCallback(()=>K([_,$]),[K,_,$]);c.useEffect(()=>{W&&H()},[W,H]);const{onOpenChange:M,triggerPointerDownPosRef:T}=v;c.useEffect(()=>{if($){let B={x:0,y:0};const q=ee=>{var te,ne,We,je;B={x:Math.abs(Math.round(ee.pageX)-((te=(ne=T.current)===null||ne===void 0?void 0:ne.x)!==null&&te!==void 0?te:0)),y:Math.abs(Math.round(ee.pageY)-((We=(je=T.current)===null||je===void 0?void 0:je.y)!==null&&We!==void 0?We:0))}},J=ee=>{B.x<=10&&B.y<=10?ee.preventDefault():$.contains(ee.target)||M(!1),document.removeEventListener("pointermove",q),T.current=null};return T.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",J,{capture:!0})}}},[$,M,T]),c.useEffect(()=>{const B=()=>M(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[M]);const[N,U]=Dm(B=>{const q=z().filter(te=>!te.disabled),J=q.find(te=>te.ref.current===document.activeElement),ee=Im(q,B,J);ee&&setTimeout(()=>ee.ref.current.focus())}),G=c.useCallback((B,q,J)=>{const ee=!A.current&&!J;(v.value!==void 0&&v.value===q||ee)&&(P(B),ee&&(A.current=!0))},[v.value]),ve=c.useCallback(()=>$?.focus(),[$]),ue=c.useCallback((B,q,J)=>{const ee=!A.current&&!J;(v.value!==void 0&&v.value===q||ee)&&F(B)},[v.value]),Re=r==="popper"?Af:w5,oe=Re===Af?{side:l,sideOffset:s,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:g,sticky:b,hideWhenDetached:m,avoidCollisions:w}:{};return c.createElement(Tm,{scope:n,content:$,viewport:E,onViewportChange:C,itemRefCallback:G,selectedItem:_,onItemLeave:ve,itemTextRefCallback:ue,focusSelectedItem:H,selectedItemText:O,position:r,isPositioned:W,searchRef:N},c.createElement(Hc,{as:pn,allowPinchZoom:!0},c.createElement(Nc,{asChild:!0,trapped:v.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:R(o,B=>{var q;(q=v.trigger)===null||q===void 0||q.focus({preventScroll:!0}),B.preventDefault()})},c.createElement(wn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>v.onOpenChange(!1)},c.createElement(Re,x({role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:B=>B.preventDefault()},h,oe,{onPlaced:()=>k(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:R(h.onKeyDown,B=>{const q=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!q&&B.key.length===1&&U(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let ee=z().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(B.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const te=B.target,ne=ee.indexOf(te);ee=ee.slice(ne+1)}setTimeout(()=>K(ee)),B.preventDefault()}})}))))))}),w5=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Hn(Pr,n),i=Xc(Pr,n),[l,s]=c.useState(null),[u,f]=c.useState(null),d=V(t,S=>f(S)),p=Fu(n),g=c.useRef(!1),b=c.useRef(!0),{viewport:m,selectedItem:w,selectedItemText:h,focusSelectedItem:v}=i,$=c.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&m&&w&&h){const S=a.trigger.getBoundingClientRect(),_=u.getBoundingClientRect(),P=a.valueNode.getBoundingClientRect(),O=h.getBoundingClientRect();if(a.dir!=="rtl"){const te=O.left-_.left,ne=P.left-te,We=S.left-ne,je=S.width+We,Tt=Math.max(je,_.width),jn=window.innerWidth-Mt,Fr=Mo(ne,[Mt,jn-Tt]);l.style.minWidth=je+"px",l.style.left=Fr+"px"}else{const te=_.right-O.right,ne=window.innerWidth-P.right-te,We=window.innerWidth-S.right-ne,je=S.width+We,Tt=Math.max(je,_.width),jn=window.innerWidth-Mt,Fr=Mo(ne,[Mt,jn-Tt]);l.style.minWidth=je+"px",l.style.right=Fr+"px"}const F=p(),z=window.innerHeight-Mt*2,W=m.scrollHeight,k=window.getComputedStyle(u),A=parseInt(k.borderTopWidth,10),K=parseInt(k.paddingTop,10),H=parseInt(k.borderBottomWidth,10),M=parseInt(k.paddingBottom,10),T=A+K+W+M+H,N=Math.min(w.offsetHeight*5,T),U=window.getComputedStyle(m),G=parseInt(U.paddingTop,10),ve=parseInt(U.paddingBottom,10),ue=S.top+S.height/2-Mt,Re=z-ue,oe=w.offsetHeight/2,B=w.offsetTop+oe,q=A+K+B,J=T-q;if(q<=ue){const te=w===F[F.length-1].ref.current;l.style.bottom="0px";const ne=u.clientHeight-m.offsetTop-m.offsetHeight,We=Math.max(Re,oe+(te?ve:0)+ne+H),je=q+We;l.style.height=je+"px"}else{const te=w===F[0].ref.current;l.style.top="0px";const We=Math.max(ue,A+m.offsetTop+(te?G:0)+oe)+J;l.style.height=We+"px",m.scrollTop=q-ue+m.offsetTop}l.style.margin=`${Mt}px 0`,l.style.minHeight=N+"px",l.style.maxHeight=z+"px",r?.(),requestAnimationFrame(()=>g.current=!0)}},[p,a.trigger,a.valueNode,l,u,m,w,h,a.dir,r]);Pe(()=>$(),[$]);const[y,E]=c.useState();Pe(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const C=c.useCallback(S=>{S&&b.current===!0&&($(),v?.(),b.current=!1)},[$,v]);return c.createElement(y5,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:g,onScrollButtonChange:C},c.createElement("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:y}},c.createElement(I.div,x({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),Af=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Mt,...a}=e,i=zu(n);return c.createElement(Ko,x({},i,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[y5,E5]=Nr(Pr,{}),Nf="SelectViewport",x5=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Xc(Nf,n),a=E5(Nf,n),i=V(t,o.onViewportChange),l=c.useRef(0);return c.createElement(c.Fragment,null,c.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),c.createElement(Yc.Slot,{scope:n},c.createElement(I.div,x({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:R(r.onScroll,s=>{const u=s.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=a;if(d!=null&&d.current&&f){const p=Math.abs(l.current-u.scrollTop);if(p>0){const g=window.innerHeight-Mt*2,b=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),w=Math.max(b,m);if(w0?$:0,f.style.justifyContent="flex-end")}}}l.current=u.scrollTop})}))))}),C5="SelectGroup",[gx,S5]=Nr(C5),_5="SelectLabel",P5=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=S5(_5,n);return c.createElement(I.div,x({id:o.id},r,{ref:t}))}),Jl="SelectItem",[R5,km]=Nr(Jl),T5=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,l=Hn(Jl,n),s=Xc(Jl,n),u=l.value===r,[f,d]=c.useState(a??""),[p,g]=c.useState(!1),b=V(t,h=>{var v;return(v=s.itemRefCallback)===null||v===void 0?void 0:v.call(s,h,r,o)}),m=ye(),w=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.createElement(R5,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:c.useCallback(h=>{d(v=>{var $;return v||(($=h?.textContent)!==null&&$!==void 0?$:"").trim()})},[])},c.createElement(Yc.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},c.createElement(I.div,x({role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},i,{ref:b,onFocus:R(i.onFocus,()=>g(!0)),onBlur:R(i.onBlur,()=>g(!1)),onPointerUp:R(i.onPointerUp,w),onPointerMove:R(i.onPointerMove,h=>{if(o){var v;(v=s.onItemLeave)===null||v===void 0||v.call(s)}else h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:R(i.onPointerLeave,h=>{if(h.currentTarget===document.activeElement){var v;(v=s.onItemLeave)===null||v===void 0||v.call(s)}}),onKeyDown:R(i.onKeyDown,h=>{var v;((v=s.searchRef)===null||v===void 0?void 0:v.current)!==""&&h.key===" "||(c5.includes(h.key)&&w(),h.key===" "&&h.preventDefault())})}))))}),xa="SelectItemText",k5=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=Hn(xa,n),l=Xc(xa,n),s=km(xa,n),u=u5(xa,n),[f,d]=c.useState(null),p=V(t,h=>d(h),s.onItemTextChange,h=>{var v;return(v=l.itemTextRefCallback)===null||v===void 0?void 0:v.call(l,h,s.value,s.disabled)}),g=f?.textContent,b=c.useMemo(()=>c.createElement("option",{key:s.value,value:s.value,disabled:s.disabled},g),[s.disabled,s.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:w}=u;return Pe(()=>(m(b),()=>w(b)),[m,w,b]),c.createElement(c.Fragment,null,c.createElement(I.span,x({id:s.textId},a,{ref:p})),s.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Kt.createPortal(a.children,i.valueNode):null)}),M5="SelectItemIndicator",O5=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return km(M5,n).isSelected?c.createElement(I.span,x({"aria-hidden":!0},r,{ref:t})):null}),D5=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.createElement(I.div,x({"aria-hidden":!0},r,{ref:t}))});function Mm(e){return e===""||e===void 0}const Om=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=c.useRef(null),a=V(t,o),i=Ar(n);return c.useEffect(()=>{const l=o.current,s=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(s,"value").set;if(i!==n&&f){const d=new Event("change",{bubbles:!0});f.call(l,n),l.dispatchEvent(d)}},[i,n]),c.createElement(jc,{asChild:!0},c.createElement("select",x({},r,{ref:a,defaultValue:n})))});Om.displayName="BubbleSelect";function Dm(e){const t=Q(e),n=c.useRef(""),r=c.useRef(0),o=c.useCallback(i=>{const l=n.current+i;t(l),function s(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>s(""),1e3))}(l)},[t]),a=c.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Im(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=I5(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const s=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function I5(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const bx=d5,wx=p5,yx=m5,Ex=h5,xx=$5,Cx=g5,Sx=x5,_x=P5,Px=T5,Rx=k5,Tx=O5,kx=D5,Am="Popover",[Nm,Mx]=ie(Am,[Pt]),Vu=Pt(),[A5,Lr]=Nm(Am),N5=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,l=Vu(t),s=c.useRef(null),[u,f]=c.useState(!1),[d=!1,p]=ge({prop:r,defaultProp:o,onChange:a});return c.createElement(Ho,l,c.createElement(A5,{scope:t,contentId:ye(),triggerRef:s,open:d,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(g=>!g),[p]),hasCustomAnchor:u,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:i},n))},L5="PopoverTrigger",F5=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Lr(L5,n),a=Vu(n),i=V(t,o.triggerRef),l=c.createElement(I.button,x({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":zm(o.open)},r,{ref:i,onClick:R(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:c.createElement(zc,x({asChild:!0},a),l)}),Lm="PopoverPortal",[z5,V5]=Nm(Lm,{forceMount:void 0}),B5=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Lr(Lm,t);return c.createElement(z5,{scope:t,forceMount:n},c.createElement(le,{present:n||a.open},c.createElement(Wo,{asChild:!0,container:o},r)))},Oo="PopoverContent",U5=c.forwardRef((e,t)=>{const n=V5(Oo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Lr(Oo,e.__scopePopover);return c.createElement(le,{present:r||a.open},a.modal?c.createElement(H5,x({},o,{ref:t})):c.createElement(K5,x({},o,{ref:t})))}),H5=c.forwardRef((e,t)=>{const n=Lr(Oo,e.__scopePopover),r=c.useRef(null),o=V(t,r),a=c.useRef(!1);return c.useEffect(()=>{const i=r.current;if(i)return jo(i)},[]),c.createElement(Hc,{as:pn,allowPinchZoom:!0},c.createElement(Fm,x({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),a.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,u=l.button===2||s;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:R(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})))}),K5=c.forwardRef((e,t)=>{const n=Lr(Oo,e.__scopePopover),r=c.useRef(!1),o=c.useRef(!1);return c.createElement(Fm,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,l;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),Fm=c.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:f,...d}=e,p=Lr(Oo,n),g=Vu(n);return Ac(),c.createElement(Nc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},c.createElement(wn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1)},c.createElement(Ko,x({"data-state":zm(p.open),role:"dialog",id:p.contentId},g,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function zm(e){return e?"open":"closed"}const Ox=N5,Dx=F5,Ix=B5,Ax=U5,Vm="Dialog",[Bm,Um]=ie(Vm),[W5,bt]=Bm(Vm),j5=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=c.useRef(null),s=c.useRef(null),[u=!1,f]=ge({prop:r,defaultProp:o,onChange:a});return c.createElement(W5,{scope:t,triggerRef:l,contentRef:s,contentId:ye(),titleId:ye(),descriptionId:ye(),open:u,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(d=>!d),[f]),modal:i},n)},G5="DialogTrigger",Y5=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(G5,n),a=V(t,o.triggerRef);return c.createElement(I.button,x({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Bu(o.open)},r,{ref:a,onClick:R(e.onClick,o.onOpenToggle)}))}),Hm="DialogPortal",[X5,Km]=Bm(Hm,{forceMount:void 0}),Q5=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=bt(Hm,t);return c.createElement(X5,{scope:t,forceMount:n},c.Children.map(r,i=>c.createElement(le,{present:n||a.open},c.createElement(Wo,{asChild:!0,container:o},i))))},es="DialogOverlay",Z5=c.forwardRef((e,t)=>{const n=Km(es,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=bt(es,e.__scopeDialog);return a.modal?c.createElement(le,{present:r||a.open},c.createElement(q5,x({},o,{ref:t}))):null}),q5=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(es,n);return c.createElement(Hc,{as:pn,allowPinchZoom:!0,shards:[o.contentRef]},c.createElement(I.div,x({"data-state":Bu(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Rr="DialogContent",J5=c.forwardRef((e,t)=>{const n=Km(Rr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=bt(Rr,e.__scopeDialog);return c.createElement(le,{present:r||a.open},a.modal?c.createElement(e6,x({},o,{ref:t})):c.createElement(t6,x({},o,{ref:t})))}),e6=c.forwardRef((e,t)=>{const n=bt(Rr,e.__scopeDialog),r=c.useRef(null),o=V(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return jo(a)},[]),c.createElement(Wm,x({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:R(e.onFocusOutside,a=>a.preventDefault())}))}),t6=c.forwardRef((e,t)=>{const n=bt(Rr,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return c.createElement(Wm,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,l;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),Wm=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=bt(Rr,n),s=c.useRef(null),u=V(t,s);return Ac(),c.createElement(c.Fragment,null,c.createElement(Nc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},c.createElement(wn,x({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Bu(l.open)},i,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),jm="DialogTitle",n6=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(jm,n);return c.createElement(I.h2,x({id:o.titleId},r,{ref:t}))}),r6="DialogDescription",o6=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(r6,n);return c.createElement(I.p,x({id:o.descriptionId},r,{ref:t}))}),a6="DialogClose",c6=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(a6,n);return c.createElement(I.button,x({type:"button"},r,{ref:t,onClick:R(e.onClick,()=>o.onOpenChange(!1))}))});function Bu(e){return e?"open":"closed"}const i6="DialogTitleWarning",[l6,Nx]=Og(i6,{contentName:Rr,titleName:jm,docsSlug:"dialog"}),Lx=j5,Fx=Y5,s6=Q5,u6=Z5,d6=J5,f6=n6,p6=o6,Gm=c6;function gr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function v6(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ym(...e){return t=>e.forEach(n=>v6(n,t))}function Qo(...e){return c.useCallback(Ym(...e),e)}function m6(e,t=[]){let n=[];function r(a,i){const l=c.createContext(i),s=n.length;n=[...n,i];function u(d){const{scope:p,children:g,...b}=d,m=p?.[e][s]||l,w=c.useMemo(()=>b,Object.values(b));return c.createElement(m.Provider,{value:w},g)}function f(d,p){const g=p?.[e][s]||l,b=c.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,f]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(l){const s=l?.[e]||a;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,h6(o,...t)]}function h6(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((l,{useScope:s,scopeName:u})=>{const d=s(a)[`__scope${u}`];return{...l,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const ts=globalThis?.document?c.useLayoutEffect:()=>{},$6=fp.useId||(()=>{});let g6=0;function Ki(e){const[t,n]=c.useState($6());return ts(()=>{e||n(r=>r??String(g6++))},[e]),e||(t?`radix-${t}`:"")}function zn(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function b6({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=w6({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,l=zn(n),s=c.useCallback(u=>{if(a){const d=typeof u=="function"?u(e):u;d!==e&&l(d)}else o(u)},[a,e,o,l]);return[i,s]}function w6({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),a=zn(t);return c.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Uu=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),a=o.find(E6);if(a){const i=a.props.children,l=o.map(s=>s===a?c.Children.count(i)>1?c.Children.only(null):c.isValidElement(i)?i.props.children:null:s);return c.createElement(ns,x({},r,{ref:t}),c.isValidElement(i)?c.cloneElement(i,void 0,l):null)}return c.createElement(ns,x({},r,{ref:t}),n)});Uu.displayName="Slot";const ns=c.forwardRef((e,t)=>{const{children:n,...r}=e;return c.isValidElement(n)?c.cloneElement(n,{...x6(r,n.props),ref:Ym(t,n.ref)}):c.Children.count(n)>1?c.Children.only(null):null});ns.displayName="SlotClone";const y6=({children:e})=>c.createElement(c.Fragment,null,e);function E6(e){return c.isValidElement(e)&&e.type===y6}function x6(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?n[r]=(...l)=>{a?.(...l),o?.(...l)}:r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const C6=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Qc=C6.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:a,...i}=r,l=a?Uu:t;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(l,x({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function S6(e,t){e&&Kt.flushSync(()=>e.dispatchEvent(t))}function _6(e){const t=zn(e);c.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}const rs="dismissableLayer.update",P6="dismissableLayer.pointerDownOutside",R6="dismissableLayer.focusOutside";let Lf;const T6=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),k6=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...s}=e,u=c.useContext(T6),[f,d]=c.useState(null),[,p]=c.useState({}),g=Qo(t,C=>d(C)),b=Array.from(u.layers),[m]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=b.indexOf(m),h=f?b.indexOf(f):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,$=h>=w,y=M6(C=>{const S=C.target,_=[...u.branches].some(P=>P.contains(S));!$||_||(o?.(C),i?.(C),C.defaultPrevented||l?.())}),E=O6(C=>{const S=C.target;[...u.branches].some(P=>P.contains(S))||(a?.(C),i?.(C),C.defaultPrevented||l?.())});return _6(C=>{h===u.layers.size-1&&(r?.(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))}),c.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Lf=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ff(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=Lf)}},[f,n,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ff())},[f,u]),c.useEffect(()=>{const C=()=>p({});return document.addEventListener(rs,C),()=>document.removeEventListener(rs,C)},[]),c.createElement(Qc.div,x({},s,{ref:g,style:{pointerEvents:v?$?"auto":"none":void 0,...e.style},onFocusCapture:gr(e.onFocusCapture,E.onFocusCapture),onBlurCapture:gr(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:gr(e.onPointerDownCapture,y.onPointerDownCapture)}))});function M6(e){const t=zn(e),n=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const o=i=>{if(i.target&&!n.current){let s=function(){Xm(P6,t,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(document.removeEventListener("click",r.current),r.current=s,document.addEventListener("click",r.current,{once:!0})):s()}n.current=!1},a=window.setTimeout(()=>{document.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),document.removeEventListener("pointerdown",o),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}function O6(e){const t=zn(e),n=c.useRef(!1);return c.useEffect(()=>{const r=o=>{o.target&&!n.current&&Xm(R6,t,{originalEvent:o},{discrete:!1})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ff(){const e=new CustomEvent(rs);document.dispatchEvent(e)}function Xm(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?S6(o,a):o.dispatchEvent(a)}const Wi="focusScope.autoFocusOnMount",ji="focusScope.autoFocusOnUnmount",zf={bubbles:!1,cancelable:!0},D6=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,s]=c.useState(null),u=zn(o),f=zn(a),d=c.useRef(null),p=Qo(t,m=>s(m)),g=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let m=function(h){if(g.paused||!l)return;const v=h.target;l.contains(v)?d.current=v:_n(d.current,{select:!0})},w=function(h){g.paused||!l||l.contains(h.relatedTarget)||_n(d.current,{select:!0})};return document.addEventListener("focusin",m),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",w)}}},[r,l,g.paused]),c.useEffect(()=>{if(l){Bf.add(g);const m=document.activeElement;if(!l.contains(m)){const h=new CustomEvent(Wi,zf);l.addEventListener(Wi,u),l.dispatchEvent(h),h.defaultPrevented||(I6(z6(Qm(l)),{select:!0}),document.activeElement===m&&_n(l))}return()=>{l.removeEventListener(Wi,u),setTimeout(()=>{const h=new CustomEvent(ji,zf);l.addEventListener(ji,f),l.dispatchEvent(h),h.defaultPrevented||_n(m??document.body,{select:!0}),l.removeEventListener(ji,f),Bf.remove(g)},0)}}},[l,u,f,g]);const b=c.useCallback(m=>{if(!n&&!r||g.paused)return;const w=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,h=document.activeElement;if(w&&h){const v=m.currentTarget,[$,y]=A6(v);$&&y?!m.shiftKey&&h===y?(m.preventDefault(),n&&_n($,{select:!0})):m.shiftKey&&h===$&&(m.preventDefault(),n&&_n(y,{select:!0})):h===v&&m.preventDefault()}},[n,r,g.paused]);return c.createElement(Qc.div,x({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function I6(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_n(r,{select:t}),document.activeElement!==n)return}function A6(e){const t=Qm(e),n=Vf(t,e),r=Vf(t.reverse(),e);return[n,r]}function Qm(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vf(e,t){for(const n of e)if(!N6(n,{upTo:t}))return n}function N6(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function L6(e){return e instanceof HTMLInputElement&&"select"in e}function _n(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&L6(e)&&t&&e.select()}}const Bf=F6();function F6(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Uf(e,t),e.unshift(t)},remove(t){var n;e=Uf(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Uf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function z6(e){return e.filter(t=>t.tagName!=="A")}const V6=c.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?su.createPortal(c.createElement(Qc.div,x({},o,{ref:t})),r):null});function B6(e,t){return c.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Zc=e=>{const{present:t,children:n}=e,r=U6(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=Qo(r.ref,o.ref);return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};Zc.displayName="Presence";function U6(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[l,s]=B6(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Ca(r.current);a.current=l==="mounted"?u:"none"},[l]),ts(()=>{const u=r.current,f=o.current;if(f!==e){const p=a.current,g=Ca(u);e?s("MOUNT"):g==="none"||u?.display==="none"?s("UNMOUNT"):s(f&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),ts(()=>{if(t){const u=d=>{const g=Ca(r.current).includes(d.animationName);d.target===t&&g&&Kt.flushSync(()=>s("ANIMATION_END"))},f=d=>{d.target===t&&(a.current=Ca(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ca(e){return e?.animationName||"none"}let Gi=0;function H6(){c.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Hf()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Hf()),Gi++,()=>{Gi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Gi--}},[])}function Hf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Zm=z0(),Yi=function(){},qc=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Yi,onWheelCapture:Yi,onTouchMoveCapture:Yi}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,g=e.noIsolation,b=e.inert,m=e.allowPinchZoom,w=e.as,h=w===void 0?"div":w,v=bu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),$=p,y=F0([n,t]),E=Oe(Oe({},v),o);return c.createElement(c.Fragment,null,f&&c.createElement($,{sideCar:Zm,removeScrollBar:u,shards:d,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!m,lockRef:n}),i?c.cloneElement(c.Children.only(l),Oe(Oe({},E),{ref:y})):c.createElement(h,Oe({},E,{className:s,ref:y}),l))});qc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};qc.classNames={fullWidth:io,zeroRight:co};var os=!1;if(typeof window<"u")try{var Sa=Object.defineProperty({},"passive",{get:function(){return os=!0,!0}});window.addEventListener("test",Sa,Sa),window.removeEventListener("test",Sa,Sa)}catch{os=!1}var Zn=os?{passive:!1}:!1,K6=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},W6=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},Kf=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=qm(e,n);if(r){var o=Jm(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},j6=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},G6=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},qm=function(e,t){return e==="v"?K6(t):W6(t)},Jm=function(e,t){return e==="v"?j6(t):G6(t)},Y6=function(e,t){return e==="h"&&t==="rtl"?-1:1},X6=function(e,t,n,r,o){var a=Y6(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,s=t.contains(l),u=!1,f=i>0,d=0,p=0;do{var g=Jm(e,l),b=g[0],m=g[1],w=g[2],h=m-w-a*b;(b||h)&&qm(e,l)&&(d+=h,p+=b),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(o&&d===0||!o&&i>d)||!f&&(o&&p===0||!o&&-i>p))&&(u=!0),u},_a=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Wf=function(e){return[e.deltaX,e.deltaY]},jf=function(e){return e&&"current"in e?e.current:e},Q6=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Z6=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},q6=0,qn=[];function J6(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(q6++)[0],a=c.useState(function(){return wu()})[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=L0([e.lockRef.current],(e.shards||[]).map(jf),!0).filter(Boolean);return m.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=c.useCallback(function(m,w){if("touches"in m&&m.touches.length===2)return!i.current.allowPinchZoom;var h=_a(m),v=n.current,$="deltaX"in m?m.deltaX:v[0]-h[0],y="deltaY"in m?m.deltaY:v[1]-h[1],E,C=m.target,S=Math.abs($)>Math.abs(y)?"h":"v";if("touches"in m&&S==="h"&&C.type==="range")return!1;var _=Kf(S,C);if(!_)return!0;if(_?E=S:(E=S==="v"?"h":"v",_=Kf(S,C)),!_)return!1;if(!r.current&&"changedTouches"in m&&($||y)&&(r.current=E),!E)return!0;var P=r.current||E;return X6(P,w,m,P==="h"?$:y,!0)},[]),s=c.useCallback(function(m){var w=m;if(!(!qn.length||qn[qn.length-1]!==a)){var h="deltaY"in w?Wf(w):_a(w),v=t.current.filter(function(E){return E.name===w.type&&E.target===w.target&&Q6(E.delta,h)})[0];if(v&&v.should){w.preventDefault();return}if(!v){var $=(i.current.shards||[]).map(jf).filter(Boolean).filter(function(E){return E.contains(w.target)}),y=$.length>0?l(w,$[0]):!i.current.noIsolation;y&&w.preventDefault()}}},[]),u=c.useCallback(function(m,w,h,v){var $={name:m,delta:w,target:h,should:v};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(y){return y!==$})},1)},[]),f=c.useCallback(function(m){n.current=_a(m),r.current=void 0},[]),d=c.useCallback(function(m){u(m.type,Wf(m),m.target,l(m,e.lockRef.current))},[]),p=c.useCallback(function(m){u(m.type,_a(m),m.target,l(m,e.lockRef.current))},[]);c.useEffect(function(){return qn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Zn),document.addEventListener("touchmove",s,Zn),document.addEventListener("touchstart",f,Zn),function(){qn=qn.filter(function(m){return m!==a}),document.removeEventListener("wheel",s,Zn),document.removeEventListener("touchmove",s,Zn),document.removeEventListener("touchstart",f,Zn)}},[]);var g=e.removeScrollBar,b=e.inert;return c.createElement(c.Fragment,null,b?c.createElement(a,{styles:Z6(o)}):null,g?c.createElement(H0,{gapMode:"margin"}):null)}const e3=B0(Zm,J6);var e1=c.forwardRef(function(e,t){return c.createElement(qc,Oe({},e,{ref:t,sideCar:e3}))});e1.classNames=qc.classNames;const t3=e1,t1="Dialog",[n1,zx]=m6(t1),[n3,Kn]=n1(t1),r3=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=c.useRef(null),s=c.useRef(null),[u=!1,f]=b6({prop:r,defaultProp:o,onChange:a});return c.createElement(n3,{scope:t,triggerRef:l,contentRef:s,contentId:Ki(),titleId:Ki(),descriptionId:Ki(),open:u,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(d=>!d),[f]),modal:i},n)},r1="DialogPortal",[o3,o1]=n1(r1,{forceMount:void 0}),a3=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Kn(r1,t);return c.createElement(o3,{scope:t,forceMount:n},c.Children.map(r,i=>c.createElement(Zc,{present:n||a.open},c.createElement(V6,{asChild:!0,container:o},i))))},as="DialogOverlay",c3=c.forwardRef((e,t)=>{const n=o1(as,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Kn(as,e.__scopeDialog);return a.modal?c.createElement(Zc,{present:r||a.open},c.createElement(i3,x({},o,{ref:t}))):null}),i3=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kn(as,n);return c.createElement(t3,{as:Uu,allowPinchZoom:!0,shards:[o.contentRef]},c.createElement(Qc.div,x({"data-state":c1(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Do="DialogContent",l3=c.forwardRef((e,t)=>{const n=o1(Do,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Kn(Do,e.__scopeDialog);return c.createElement(Zc,{present:r||a.open},a.modal?c.createElement(s3,x({},o,{ref:t})):c.createElement(u3,x({},o,{ref:t})))}),s3=c.forwardRef((e,t)=>{const n=Kn(Do,e.__scopeDialog),r=c.useRef(null),o=Qo(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return jo(a)},[]),c.createElement(a1,x({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gr(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:gr(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:gr(e.onFocusOutside,a=>a.preventDefault())}))}),u3=c.forwardRef((e,t)=>{const n=Kn(Do,e.__scopeDialog),r=c.useRef(!1);return c.createElement(a1,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,o),!o.defaultPrevented){var i;r.current||(i=n.triggerRef.current)===null||i===void 0||i.focus(),o.preventDefault()}r.current=!1},onInteractOutside:o=>{var a,i;(a=e.onInteractOutside)===null||a===void 0||a.call(e,o),o.defaultPrevented||(r.current=!0);const l=o.target;((i=n.triggerRef.current)===null||i===void 0?void 0:i.contains(l))&&o.preventDefault()}}))}),a1=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=Kn(Do,n),s=c.useRef(null),u=Qo(t,s);return H6(),c.createElement(c.Fragment,null,c.createElement(D6,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},c.createElement(k6,x({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":c1(l.open)},i,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)});function c1(e){return e?"open":"closed"}const Vx=r3,Bx=a3,Ux=c3,Hx=l3,i1=["PageUp","PageDown"],l1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],s1={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Zo="Slider",[cs,d3,f3]=Wt(Zo),[u1,Kx]=ie(Zo,[f3]),[p3,Jc]=u1(Zo),v3=c.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:l=!1,minStepsBetweenThumbs:s=0,defaultValue:u=[r],value:f,onValueChange:d=()=>{},onValueCommit:p=()=>{},inverted:g=!1,...b}=e,[m,w]=c.useState(null),h=V(t,k=>w(k)),v=c.useRef(new Set),$=c.useRef(0),y=i==="horizontal",E=m?!!m.closest("form"):!0,C=y?m3:h3,[S=[],_]=ge({prop:f,defaultProp:u,onChange:k=>{var A;(A=[...v.current][$.current])===null||A===void 0||A.focus(),d(k)}}),P=c.useRef(S);function O(k){const A=S3(S,k);W(k,A)}function F(k){W(k,$.current)}function z(){const k=P.current[$.current];S[$.current]!==k&&p(S)}function W(k,A,{commit:K}={commit:!1}){const H=T3(a),M=k3(Math.round((k-r)/a)*a+r,H),T=Mo(M,[r,o]);_((N=[])=>{const U=x3(N,T,A);if(R3(U,s*a)){$.current=U.indexOf(T);const G=String(U)!==String(N);return G&&K&&p(U),G?U:N}else return N})}return c.createElement(p3,{scope:e.__scopeSlider,disabled:l,min:r,max:o,valueIndexToChangeRef:$,thumbs:v.current,values:S,orientation:i},c.createElement(cs.Provider,{scope:e.__scopeSlider},c.createElement(cs.Slot,{scope:e.__scopeSlider},c.createElement(C,x({"aria-disabled":l,"data-disabled":l?"":void 0},b,{ref:h,onPointerDown:R(b.onPointerDown,()=>{l||(P.current=S)}),min:r,max:o,inverted:g,onSlideStart:l?void 0:O,onSlideMove:l?void 0:F,onSlideEnd:l?void 0:z,onHomeKeyDown:()=>!l&&W(r,0,{commit:!0}),onEndKeyDown:()=>!l&&W(o,S.length-1,{commit:!0}),onStepKeyDown:({event:k,direction:A})=>{if(!l){const M=i1.includes(k.key)||k.shiftKey&&l1.includes(k.key)?10:1,T=$.current,N=S[T],U=a*M*A;W(N+U,T,{commit:!0})}}})))),E&&S.map((k,A)=>c.createElement(E3,{key:A,name:n?n+(S.length>1?"[]":""):void 0,value:k})))}),[d1,f1]=u1(Zo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),m3=c.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:l,onSlideEnd:s,onStepKeyDown:u,...f}=e,[d,p]=c.useState(null),g=V(t,$=>p($)),b=c.useRef(),m=_t(o),w=m==="ltr",h=w&&!a||!w&&a;function v($){const y=b.current||d.getBoundingClientRect(),E=[0,y.width],S=Hu(E,h?[n,r]:[r,n]);return b.current=y,S($-y.left)}return c.createElement(d1,{scope:e.__scopeSlider,startEdge:h?"left":"right",endEdge:h?"right":"left",direction:h?1:-1,size:"width"},c.createElement(p1,x({dir:m,"data-orientation":"horizontal"},f,{ref:g,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:$=>{const y=v($.clientX);i?.(y)},onSlideMove:$=>{const y=v($.clientX);l?.(y)},onSlideEnd:()=>{b.current=void 0,s?.()},onStepKeyDown:$=>{const E=s1[h?"from-left":"from-right"].includes($.key);u?.({event:$,direction:E?-1:1})}})))}),h3=c.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:l,onStepKeyDown:s,...u}=e,f=c.useRef(null),d=V(t,f),p=c.useRef(),g=!o;function b(m){const w=p.current||f.current.getBoundingClientRect(),h=[0,w.height],$=Hu(h,g?[r,n]:[n,r]);return p.current=w,$(m-w.top)}return c.createElement(d1,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1},c.createElement(p1,x({"data-orientation":"vertical"},u,{ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const w=b(m.clientY);a?.(w)},onSlideMove:m=>{const w=b(m.clientY);i?.(w)},onSlideEnd:()=>{p.current=void 0,l?.()},onStepKeyDown:m=>{const h=s1[g?"from-bottom":"from-top"].includes(m.key);s?.({event:m,direction:h?-1:1})}})))}),p1=c.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:l,onStepKeyDown:s,...u}=e,f=Jc(Zo,n);return c.createElement(I.span,x({},u,{ref:t,onKeyDown:R(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(l(d),d.preventDefault()):i1.concat(l1).includes(d.key)&&(s(d),d.preventDefault())}),onPointerDown:R(e.onPointerDown,d=>{const p=d.target;p.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(p)?p.focus():r(d)}),onPointerMove:R(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:R(e.onPointerUp,d=>{const p=d.target;p.hasPointerCapture(d.pointerId)&&(p.releasePointerCapture(d.pointerId),a(d))})}))}),$3="SliderTrack",g3=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Jc($3,n);return c.createElement(I.span,x({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))}),Gf="SliderRange",b3=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Jc(Gf,n),a=f1(Gf,n),i=c.useRef(null),l=V(t,i),s=o.values.length,u=o.values.map(p=>v1(p,o.min,o.max)),f=s>1?Math.min(...u):0,d=100-Math.max(...u);return c.createElement(I.span,x({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:l,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:d+"%"}}))}),Yf="SliderThumb",w3=c.forwardRef((e,t)=>{const n=d3(e.__scopeSlider),[r,o]=c.useState(null),a=V(t,l=>o(l)),i=c.useMemo(()=>r?n().findIndex(l=>l.ref.current===r):-1,[n,r]);return c.createElement(y3,x({},e,{ref:a,index:i}))}),y3=c.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,a=Jc(Yf,n),i=f1(Yf,n),[l,s]=c.useState(null),u=V(t,w=>s(w)),f=Uo(l),d=a.values[r],p=d===void 0?0:v1(d,a.min,a.max),g=C3(r,a.values.length),b=f?.[i.size],m=b?_3(b,p,i.direction):0;return c.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),c.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[i.startEdge]:`calc(${p}% + ${m}px)`}},c.createElement(cs.ItemSlot,{scope:e.__scopeSlider},c.createElement(I.span,x({role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":a.min,"aria-valuenow":d,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},o,{ref:u,style:d===void 0?{display:"none"}:e.style,onFocus:R(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})}))))}),E3=e=>{const{value:t,...n}=e,r=c.useRef(null),o=Ar(t);return c.useEffect(()=>{const a=r.current,i=window.HTMLInputElement.prototype,s=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&s){const u=new Event("input",{bubbles:!0});s.call(a,t),a.dispatchEvent(u)}},[o,t]),c.createElement("input",x({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function x3(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function v1(e,t,n){const a=100/(n-t)*(e-t);return Mo(a,[0,100])}function C3(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function S3(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function _3(e,t,n){const r=e/2,a=Hu([0,50],[0,r]);return(r-a(t)*n)*n}function P3(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function R3(e,t){if(t>0){const n=P3(e);return Math.min(...n)>=t}return!0}function Hu(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function T3(e){return(String(e).split(".")[1]||"").length}function k3(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const Wx=v3,jx=g3,Gx=b3,Yx=w3,m1="Switch",[M3,Xx]=ie(m1),[O3,D3]=M3(m1),I3=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:s="on",onCheckedChange:u,...f}=e,[d,p]=c.useState(null),g=V(t,v=>p(v)),b=c.useRef(!1),m=d?!!d.closest("form"):!0,[w=!1,h]=ge({prop:o,defaultProp:a,onChange:u});return c.createElement(O3,{scope:n,checked:w,disabled:l},c.createElement(I.button,x({type:"button",role:"switch","aria-checked":w,"aria-required":i,"data-state":h1(w),"data-disabled":l?"":void 0,disabled:l,value:s},f,{ref:g,onClick:R(e.onClick,v=>{h($=>!$),m&&(b.current=v.isPropagationStopped(),b.current||v.stopPropagation())})})),m&&c.createElement(L3,{control:d,bubbles:!b.current,name:r,value:s,checked:w,required:i,disabled:l,style:{transform:"translateX(-100%)"}}))}),A3="SwitchThumb",N3=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=D3(A3,n);return c.createElement(I.span,x({"data-state":h1(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))}),L3=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=c.useRef(null),i=Ar(n),l=Uo(t);return c.useEffect(()=>{const s=a.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(i!==n&&d){const p=new Event("click",{bubbles:r});d.call(s,n),s.dispatchEvent(p)}},[i,n,r]),c.createElement("input",x({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function h1(e){return e?"checked":"unchecked"}const Qx=I3,Zx=N3,F3=c.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,l]=ge({prop:n,onChange:o,defaultProp:r});return c.createElement(I.button,x({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:R(e.onClick,()=>{e.disabled||l(!i)})}))}),qx=F3,[ei,Jx]=ie("Tooltip",[Pt]),Ku=Pt(),z3="TooltipProvider",V3=700,is="tooltip.open",[B3,Wu]=ei(z3),U3=e=>{const{__scopeTooltip:t,delayDuration:n=V3,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,l]=c.useState(!0),s=c.useRef(!1),u=c.useRef(0);return c.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),c.createElement(B3,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(u.current),l(!1)},[]),onClose:c.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:c.useCallback(f=>{s.current=f},[]),disableHoverableContent:o},a)},ju="Tooltip",[H3,ti]=ei(ju),K3=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,s=Wu(ju,e.__scopeTooltip),u=Ku(t),[f,d]=c.useState(null),p=ye(),g=c.useRef(0),b=i??s.disableHoverableContent,m=l??s.delayDuration,w=c.useRef(!1),[h=!1,v]=ge({prop:r,defaultProp:o,onChange:S=>{S?(s.onOpen(),document.dispatchEvent(new CustomEvent(is))):s.onClose(),a?.(S)}}),$=c.useMemo(()=>h?w.current?"delayed-open":"instant-open":"closed",[h]),y=c.useCallback(()=>{window.clearTimeout(g.current),w.current=!1,v(!0)},[v]),E=c.useCallback(()=>{window.clearTimeout(g.current),v(!1)},[v]),C=c.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,v(!0)},m)},[m,v]);return c.useEffect(()=>()=>window.clearTimeout(g.current),[]),c.createElement(Ho,u,c.createElement(H3,{scope:t,contentId:p,open:h,stateAttribute:$,trigger:f,onTriggerChange:d,onTriggerEnter:c.useCallback(()=>{s.isOpenDelayed?C():y()},[s.isOpenDelayed,C,y]),onTriggerLeave:c.useCallback(()=>{b?E():window.clearTimeout(g.current)},[E,b]),onOpen:y,onClose:E,disableHoverableContent:b},n))},Xf="TooltipTrigger",W3=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ti(Xf,n),a=Wu(Xf,n),i=Ku(n),l=c.useRef(null),s=V(t,l,o.onTriggerChange),u=c.useRef(!1),f=c.useRef(!1),d=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),c.createElement(zc,x({asChild:!0},i),c.createElement(I.button,x({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:s,onPointerMove:R(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:R(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:R(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:R(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:R(e.onBlur,o.onClose),onClick:R(e.onClick,o.onClose)})))}),j3="TooltipPortal",[eC,G3]=ei(j3,{forceMount:void 0}),Io="TooltipContent",Y3=c.forwardRef((e,t)=>{const n=G3(Io,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=ti(Io,e.__scopeTooltip);return c.createElement(le,{present:r||i.open},i.disableHoverableContent?c.createElement($1,x({side:o},a,{ref:t})):c.createElement(X3,x({side:o},a,{ref:t})))}),X3=c.forwardRef((e,t)=>{const n=ti(Io,e.__scopeTooltip),r=Wu(Io,e.__scopeTooltip),o=c.useRef(null),a=V(t,o),[i,l]=c.useState(null),{trigger:s,onClose:u}=n,f=o.current,{onPointerInTransitChange:d}=r,p=c.useCallback(()=>{l(null),d(!1)},[d]),g=c.useCallback((b,m)=>{const w=b.currentTarget,h={x:b.clientX,y:b.clientY},v=Z3(h,w.getBoundingClientRect()),$=q3(h,v),y=J3(m.getBoundingClientRect()),E=tE([...$,...y]);l(E),d(!0)},[d]);return c.useEffect(()=>()=>p(),[p]),c.useEffect(()=>{if(s&&f){const b=w=>g(w,f),m=w=>g(w,s);return s.addEventListener("pointerleave",b),f.addEventListener("pointerleave",m),()=>{s.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",m)}}},[s,f,g,p]),c.useEffect(()=>{if(i){const b=m=>{const w=m.target,h={x:m.clientX,y:m.clientY},v=s?.contains(w)||f?.contains(w),$=!eE(h,i);v?p():$&&(p(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[s,f,i,u,p]),c.createElement($1,x({},e,{ref:a}))}),[Q3,tC]=ei(ju,{isInside:!1}),$1=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,s=ti(Io,n),u=Ku(n),{onClose:f}=s;return c.useEffect(()=>(document.addEventListener(is,f),()=>document.removeEventListener(is,f)),[f]),c.useEffect(()=>{if(s.trigger){const d=p=>{const g=p.target;g!=null&&g.contains(s.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[s.trigger,f]),c.createElement(wn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:f},c.createElement(Ko,x({"data-state":s.stateAttribute},u,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),c.createElement(uu,null,r),c.createElement(Q3,{scope:n,isInside:!0},c.createElement(dm,{id:s.contentId,role:"tooltip"},o||r))))});function Z3(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function q3(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function J3(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function eE(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;ar!=f>r&&n<(u-l)*(r-s)/(f-s)+l&&(o=!o)}return o}function tE(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),nE(t)}function nE(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const nC=U3,rC=K3,oC=W3,aC=Y3,g1="Collapsible",[rE,b1]=ie(g1),[oE,Gu]=rE(g1),aE=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...l}=e,[s=!1,u]=ge({prop:r,defaultProp:o,onChange:i});return c.createElement(oE,{scope:n,disabled:a,contentId:ye(),open:s,onOpenToggle:c.useCallback(()=>u(f=>!f),[u])},c.createElement(I.div,x({"data-state":Yu(s),"data-disabled":a?"":void 0},l,{ref:t})))}),cE="CollapsibleTrigger",iE=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Gu(cE,n);return c.createElement(I.button,x({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Yu(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:R(e.onClick,o.onOpenToggle)}))}),w1="CollapsibleContent",lE=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Gu(w1,e.__scopeCollapsible);return c.createElement(le,{present:n||o.open},({present:a})=>c.createElement(sE,x({},r,{ref:t,present:a})))}),sE=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=Gu(w1,n),[l,s]=c.useState(r),u=c.useRef(null),f=V(t,u),d=c.useRef(0),p=d.current,g=c.useRef(0),b=g.current,m=i.open||l,w=c.useRef(m),h=c.useRef();return c.useEffect(()=>{const v=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(v)},[]),Pe(()=>{const v=u.current;if(v){h.current=h.current||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const $=v.getBoundingClientRect();d.current=$.height,g.current=$.width,w.current||(v.style.transitionDuration=h.current.transitionDuration,v.style.animationName=h.current.animationName),s(r)}},[i.open,r]),c.createElement(I.div,x({"data-state":Yu(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!m},a,{ref:f,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style}}),m&&o)});function Yu(e){return e?"open":"closed"}const uE=aE,dE=iE,fE=lE,Xu="Menubar",[ls,pE,vE]=Wt(Xu),[y1,cC]=ie(Xu,[vE,yn]),Ke=Go(),E1=yn(),[mE,Qu]=y1(Xu),hE=c.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:a,loop:i=!0,dir:l,...s}=e,u=_t(l),f=E1(n),[d="",p]=ge({prop:r,onChange:o,defaultProp:a}),[g,b]=c.useState(null);return c.createElement(mE,{scope:n,value:d,onMenuOpen:c.useCallback(m=>{p(m),b(m)},[p]),onMenuClose:c.useCallback(()=>p(""),[p]),onMenuToggle:c.useCallback(m=>{p(w=>w?"":m),b(m)},[p]),dir:u,loop:i},c.createElement(ls.Provider,{scope:n},c.createElement(ls.Slot,{scope:n},c.createElement(Vc,x({asChild:!0},f,{orientation:"horizontal",loop:i,dir:u,currentTabStopId:g,onCurrentTabStopIdChange:b}),c.createElement(I.div,x({role:"menubar"},s,{ref:t}))))))}),x1="MenubarMenu",[$E,C1]=y1(x1),gE=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=ye(),a=n||o||"LEGACY_REACT_AUTO_VALUE",i=Qu(x1,t),l=Ke(t),s=c.useRef(null),u=c.useRef(!1),f=i.value===a;return c.useEffect(()=>{f||(u.current=!1)},[f]),c.createElement($E,{scope:t,value:a,triggerId:ye(),triggerRef:s,contentId:ye(),wasKeyboardTriggerOpenRef:u},c.createElement(cm,x({},l,{open:f,onOpenChange:d=>{d||i.onMenuClose()},modal:!1,dir:i.dir},r)))},Qf="MenubarTrigger",bE=c.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,a=E1(n),i=Ke(n),l=Qu(Qf,n),s=C1(Qf,n),u=c.useRef(null),f=V(t,u,s.triggerRef),[d,p]=c.useState(!1),g=l.value===s.value;return c.createElement(ls.ItemSlot,{scope:n,value:s.value,disabled:r},c.createElement(Bc,x({asChild:!0},a,{focusable:!r,tabStopId:s.value}),c.createElement(im,x({asChild:!0},i),c.createElement(I.button,x({type:"button",role:"menuitem",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?s.contentId:void 0,"data-highlighted":d?"":void 0,"data-state":g?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:f,onPointerDown:R(e.onPointerDown,b=>{!r&&b.button===0&&b.ctrlKey===!1&&(l.onMenuOpen(s.value),g||b.preventDefault())}),onPointerEnter:R(e.onPointerEnter,()=>{if(!!l.value&&!g){var m;l.onMenuOpen(s.value),(m=u.current)===null||m===void 0||m.focus()}}),onKeyDown:R(e.onKeyDown,b=>{r||(["Enter"," "].includes(b.key)&&l.onMenuToggle(s.value),b.key==="ArrowDown"&&l.onMenuOpen(s.value),["Enter"," ","ArrowDown"].includes(b.key)&&(s.wasKeyboardTriggerOpenRef.current=!0,b.preventDefault()))}),onFocus:R(e.onFocus,()=>p(!0)),onBlur:R(e.onBlur,()=>p(!1))})))))}),wE=e=>{const{__scopeMenubar:t,...n}=e,r=Ke(t);return c.createElement(Su,x({},r,n))},Zf="MenubarContent",yE=c.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,a=Ke(n),i=Qu(Zf,n),l=C1(Zf,n),s=pE(n),u=c.useRef(!1);return c.createElement(_u,x({id:l.contentId,"aria-labelledby":l.triggerId,"data-radix-menubar-content":""},a,o,{ref:t,align:r,onCloseAutoFocus:R(e.onCloseAutoFocus,f=>{if(!!!i.value&&!u.current){var p;(p=l.triggerRef.current)===null||p===void 0||p.focus()}u.current=!1,f.preventDefault()}),onFocusOutside:R(e.onFocusOutside,f=>{const d=f.target;s().some(g=>{var b;return(b=g.ref.current)===null||b===void 0?void 0:b.contains(d)})&&f.preventDefault()}),onInteractOutside:R(e.onInteractOutside,()=>{u.current=!0}),onEntryFocus:f=>{l.wasKeyboardTriggerOpenRef.current||f.preventDefault()},onKeyDown:R(e.onKeyDown,f=>{if(["ArrowRight","ArrowLeft"].includes(f.key)){const d=f.target,p=d.hasAttribute("data-radix-menubar-subtrigger"),g=d.closest("[data-radix-menubar-content]")!==f.currentTarget,m=(i.dir==="rtl"?"ArrowRight":"ArrowLeft")===f.key;if(!m&&p||g&&m)return;let v=s().filter(E=>!E.disabled).map(E=>E.value);m&&v.reverse();const $=v.indexOf(l.value);v=i.loop?OE(v,$+1):v.slice($+1);const[y]=v;y&&i.onMenuOpen(y)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}),EE=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=Ke(n);return c.createElement(Pu,x({},o,r,{ref:t}))}),xE=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=Ke(n);return c.createElement(Ru,x({},o,r,{ref:t}))}),CE=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=Ke(n);return c.createElement(Tu,x({},o,r,{ref:t}))}),SE=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=Ke(n);return c.createElement(Cw,x({},o,r,{ref:t}))}),_E=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=Ke(n);return c.createElement(ku,x({},o,r,{ref:t}))}),PE=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=Ke(n);return c.createElement(Mu,x({},o,r,{ref:t}))}),RE=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=Ke(n);return c.createElement(Ou,x({},o,r,{ref:t}))}),TE=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=Ke(t),[l=!1,s]=ge({prop:r,defaultProp:a,onChange:o});return c.createElement(Sw,x({},i,{open:l,onOpenChange:s}),n)},kE=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=Ke(n);return c.createElement(Du,x({"data-radix-menubar-subtrigger":""},o,r,{ref:t}))}),ME=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=Ke(n);return c.createElement(Iu,x({},o,{"data-radix-menubar-content":""},r,{ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))});function OE(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const iC=hE,lC=gE,sC=bE,uC=wE,dC=yE,fC=EE,pC=xE,vC=CE,mC=SE,hC=_E,$C=PE,gC=RE,bC=TE,wC=kE,yC=ME,xn="Accordion",DE=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Zu,IE,AE]=Wt(xn),[ni,EC]=ie(xn,[AE,b1]),qu=b1(),S1=j.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return j.createElement(Zu.Provider,{scope:e.__scopeAccordion},n==="multiple"?j.createElement(zE,x({},a,{ref:t})):j.createElement(FE,x({},o,{ref:t})))});S1.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[_1,NE]=ni(xn),[P1,LE]=ni(xn,{collapsible:!1}),FE=j.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[l,s]=ge({prop:n,defaultProp:r,onChange:o});return j.createElement(_1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:j.useCallback(()=>a&&s(""),[a,s])},j.createElement(P1,{scope:e.__scopeAccordion,collapsible:a},j.createElement(R1,x({},i,{ref:t}))))}),zE=j.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],l]=ge({prop:n,defaultProp:r,onChange:o}),s=j.useCallback(f=>l((d=[])=>[...d,f]),[l]),u=j.useCallback(f=>l((d=[])=>d.filter(p=>p!==f)),[l]);return j.createElement(_1,{scope:e.__scopeAccordion,value:i,onItemOpen:s,onItemClose:u},j.createElement(P1,{scope:e.__scopeAccordion,collapsible:!0},j.createElement(R1,x({},a,{ref:t}))))}),[VE,ri]=ni(xn),R1=j.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,l=j.useRef(null),s=V(l,t),u=IE(n),d=_t(o)==="ltr",p=R(e.onKeyDown,g=>{var b;if(!DE.includes(g.key))return;const m=g.target,w=u().filter(P=>{var O;return!((O=P.ref.current)!==null&&O!==void 0&&O.disabled)}),h=w.findIndex(P=>P.ref.current===m),v=w.length;if(h===-1)return;g.preventDefault();let $=h;const y=0,E=v-1,C=()=>{$=h+1,$>E&&($=y)},S=()=>{$=h-1,${const{__scopeAccordion:n,value:r,...o}=e,a=ri(ss,n),i=NE(ss,n),l=qu(n),s=ye(),u=r&&i.value.includes(r)||!1,f=a.disabled||e.disabled;return j.createElement(BE,{scope:n,open:u,disabled:f,triggerId:s},j.createElement(uE,x({"data-orientation":a.orientation,"data-state":T1(u)},l,o,{ref:t,disabled:f,open:u,onOpenChange:d=>{d?i.onItemOpen(r):i.onItemClose(r)}})))}),HE="AccordionHeader",KE=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ri(xn,n),a=Ju(HE,n);return j.createElement(I.h3,x({"data-orientation":o.orientation,"data-state":T1(a.open),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}),qf="AccordionTrigger",WE=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ri(xn,n),a=Ju(qf,n),i=LE(qf,n),l=qu(n);return j.createElement(Zu.ItemSlot,{scope:n},j.createElement(dE,x({"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId},l,r,{ref:t})))}),jE="AccordionContent",GE=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ri(xn,n),a=Ju(jE,n),i=qu(n);return j.createElement(fE,x({role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation},i,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function T1(e){return e?"open":"closed"}const xC=S1,CC=UE,SC=KE,_C=WE,PC=GE;function YE(e,t){return c.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const k1="ScrollArea",[M1,RC]=ie(k1),[XE,st]=M1(k1),QE=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[l,s]=c.useState(null),[u,f]=c.useState(null),[d,p]=c.useState(null),[g,b]=c.useState(null),[m,w]=c.useState(null),[h,v]=c.useState(0),[$,y]=c.useState(0),[E,C]=c.useState(!1),[S,_]=c.useState(!1),P=V(t,F=>s(F)),O=_t(o);return c.createElement(XE,{scope:n,type:r,dir:O,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:f,content:d,onContentChange:p,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:E,onScrollbarXEnabledChange:C,scrollbarY:m,onScrollbarYChange:w,scrollbarYEnabled:S,onScrollbarYEnabledChange:_,onCornerWidthChange:v,onCornerHeightChange:y},c.createElement(I.div,x({dir:O},i,{ref:P,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":$+"px",...e.style}})))}),ZE="ScrollAreaViewport",qE=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...o}=e,a=st(ZE,n),i=c.useRef(null),l=V(t,i,a.onViewportChange);return c.createElement(c.Fragment,null,c.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),c.createElement(I.div,x({"data-radix-scroll-area-viewport":""},o,{ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),c.createElement("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),Gt="ScrollAreaScrollbar",TC=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=st(Gt,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,l=e.orientation==="horizontal";return c.useEffect(()=>(l?a(!0):i(!0),()=>{l?a(!1):i(!1)}),[l,a,i]),o.type==="hover"?c.createElement(JE,x({},r,{ref:t,forceMount:n})):o.type==="scroll"?c.createElement(e7,x({},r,{ref:t,forceMount:n})):o.type==="auto"?c.createElement(O1,x({},r,{ref:t,forceMount:n})):o.type==="always"?c.createElement(ed,x({},r,{ref:t})):null}),JE=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=st(Gt,e.__scopeScrollArea),[a,i]=c.useState(!1);return c.useEffect(()=>{const l=o.scrollArea;let s=0;if(l){const u=()=>{window.clearTimeout(s),i(!0)},f=()=>{s=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",f),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),c.createElement(le,{present:n||a},c.createElement(O1,x({"data-state":a?"visible":"hidden"},r,{ref:t})))}),e7=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=st(Gt,e.__scopeScrollArea),a=e.orientation==="horizontal",i=ai(()=>s("SCROLL_END"),100),[l,s]=YE("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return c.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),c.useEffect(()=>{const u=o.viewport,f=a?"scrollLeft":"scrollTop";if(u){let d=u[f];const p=()=>{const g=u[f];d!==g&&(s("SCROLL"),i()),d=g};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[o.viewport,a,s,i]),c.createElement(le,{present:n||l!=="hidden"},c.createElement(ed,x({"data-state":l==="hidden"?"hidden":"visible"},r,{ref:t,onPointerEnter:R(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:R(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),O1=c.forwardRef((e,t)=>{const n=st(Gt,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=c.useState(!1),l=e.orientation==="horizontal",s=ai(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,o=st(Gt,e.__scopeScrollArea),a=c.useRef(null),i=c.useRef(0),[l,s]=c.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=N1(l.viewport,l.content),f={...r,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:p=>a.current=p,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:p=>i.current=p};function d(p,g){return i7(p,i.current,l,g)}return n==="horizontal"?c.createElement(t7,x({},f,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollLeft,g=Jf(p,l,o.dir);a.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=d(p,o.dir))}})):n==="vertical"?c.createElement(n7,x({},f,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollTop,g=Jf(p,l);a.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=d(p))}})):null}),t7=c.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=st(Gt,e.__scopeScrollArea),[i,l]=c.useState(),s=c.useRef(null),u=V(t,s,a.onScrollbarXChange);return c.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),c.createElement(I1,x({"data-orientation":"horizontal"},o,{ref:u,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":oi(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,d)=>{if(a.viewport){const p=a.viewport.scrollLeft+f.deltaX;e.onWheelScroll(p),F1(p,d)&&f.preventDefault()}},onResize:()=>{s.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:gc(i.paddingLeft),paddingEnd:gc(i.paddingRight)}})}}))}),n7=c.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=st(Gt,e.__scopeScrollArea),[i,l]=c.useState(),s=c.useRef(null),u=V(t,s,a.onScrollbarYChange);return c.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),c.createElement(I1,x({"data-orientation":"vertical"},o,{ref:u,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":oi(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,d)=>{if(a.viewport){const p=a.viewport.scrollTop+f.deltaY;e.onWheelScroll(p),F1(p,d)&&f.preventDefault()}},onResize:()=>{s.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:gc(i.paddingTop),paddingEnd:gc(i.paddingBottom)}})}}))}),[r7,D1]=M1(Gt),I1=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:f,onResize:d,...p}=e,g=st(Gt,n),[b,m]=c.useState(null),w=V(t,P=>m(P)),h=c.useRef(null),v=c.useRef(""),$=g.viewport,y=r.content-r.viewport,E=Q(f),C=Q(s),S=ai(d,10);function _(P){if(h.current){const O=P.clientX-h.current.left,F=P.clientY-h.current.top;u({x:O,y:F})}}return c.useEffect(()=>{const P=O=>{const F=O.target;b?.contains(F)&&E(O,y)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[$,b,y,E]),c.useEffect(C,[r,C]),Tr(b,S),Tr(g.content,S),c.createElement(r7,{scope:n,scrollbar:b,hasThumb:o,onThumbChange:Q(a),onThumbPointerUp:Q(i),onThumbPositionChange:C,onThumbPointerDown:Q(l)},c.createElement(I.div,x({},p,{ref:w,style:{position:"absolute",...p.style},onPointerDown:R(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),h.current=b.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),_(P))}),onPointerMove:R(e.onPointerMove,_),onPointerUp:R(e.onPointerUp,P=>{const O=P.target;O.hasPointerCapture(P.pointerId)&&O.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=v.current,g.viewport&&(g.viewport.style.scrollBehavior=""),h.current=null})})))}),us="ScrollAreaThumb",kC=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=D1(us,e.__scopeScrollArea);return c.createElement(le,{present:n||o.hasThumb},c.createElement(o7,x({ref:t},r)))}),o7=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=st(us,n),i=D1(us,n),{onThumbPositionChange:l}=i,s=V(t,d=>i.onThumbChange(d)),u=c.useRef(),f=ai(()=>{u.current&&(u.current(),u.current=void 0)},100);return c.useEffect(()=>{const d=a.viewport;if(d){const p=()=>{if(f(),!u.current){const g=l7(d,l);u.current=g,l()}};return l(),d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[a.viewport,f,l]),c.createElement(I.div,x({"data-state":i.hasThumb?"visible":"hidden"},o,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:R(e.onPointerDownCapture,d=>{const g=d.target.getBoundingClientRect(),b=d.clientX-g.left,m=d.clientY-g.top;i.onThumbPointerDown({x:b,y:m})}),onPointerUp:R(e.onPointerUp,i.onThumbPointerUp)}))}),A1="ScrollAreaCorner",a7=c.forwardRef((e,t)=>{const n=st(A1,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?c.createElement(c7,x({},e,{ref:t})):null}),c7=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=st(A1,n),[a,i]=c.useState(0),[l,s]=c.useState(0),u=!!(a&&l);return Tr(o.scrollbarX,()=>{var f;const d=((f=o.scrollbarX)===null||f===void 0?void 0:f.offsetHeight)||0;o.onCornerHeightChange(d),s(d)}),Tr(o.scrollbarY,()=>{var f;const d=((f=o.scrollbarY)===null||f===void 0?void 0:f.offsetWidth)||0;o.onCornerWidthChange(d),i(d)}),u?c.createElement(I.div,x({},r,{ref:t,style:{width:a,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function gc(e){return e?parseInt(e,10):0}function N1(e,t){const n=e/t;return isNaN(n)?0:n}function oi(e){const t=N1(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function i7(e,t,n,r="ltr"){const o=oi(n),a=o/2,i=t||a,l=o-i,s=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,f=n.content-n.viewport,d=r==="ltr"?[0,f]:[f*-1,0];return L1([s,u],d)(e)}function Jf(e,t,n="ltr"){const r=oi(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,l=a-r,s=n==="ltr"?[0,i]:[i*-1,0],u=Mo(e,s);return L1([0,i],[0,l])(u)}function L1(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function F1(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,l=n.top!==a.top;(i||l)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function ai(e,t){const n=Q(e),r=c.useRef(0);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),c.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Tr(e,t){const n=Q(t);Pe(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}const MC=QE,OC=qE,DC=a7,s7="AlertDialog",[u7,IC]=ie(s7,[Um]),Wn=Um(),d7=e=>{const{__scopeAlertDialog:t,...n}=e,r=Wn(t);return c.createElement(s6,x({},r,n))},f7=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return c.createElement(u6,x({},o,r,{ref:t}))}),z1="AlertDialogContent",[p7,v7]=u7(z1),m7=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=Wn(n),i=c.useRef(null),l=V(t,i),s=c.useRef(null);return c.createElement(l6,{contentName:z1,titleName:h7,docsSlug:"alert-dialog"},c.createElement(p7,{scope:n,cancelRef:s},c.createElement(d6,x({role:"alertdialog"},a,o,{ref:l,onOpenAutoFocus:R(o.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=s.current)===null||f===void 0||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault()}),c.createElement(uu,null,r),!1)))}),h7="AlertDialogTitle",$7=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return c.createElement(f6,x({},o,r,{ref:t}))}),g7=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return c.createElement(p6,x({},o,r,{ref:t}))}),b7=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return c.createElement(Gm,x({},o,r,{ref:t}))}),w7="AlertDialogCancel",y7=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=v7(w7,n),a=Wn(n),i=V(t,o);return c.createElement(Gm,x({},a,r,{ref:i}))}),AC=d7,NC=f7,LC=m7,FC=b7,zC=y7,VC=$7,BC=g7,V1="Tabs",[E7,UC]=ie(V1,[yn]),B1=yn(),[x7,td]=E7(V1),C7=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:s="automatic",...u}=e,f=_t(l),[d,p]=ge({prop:r,onChange:o,defaultProp:a});return c.createElement(x7,{scope:n,baseId:ye(),value:d,onValueChange:p,orientation:i,dir:f,activationMode:s},c.createElement(I.div,x({dir:f,"data-orientation":i},u,{ref:t})))}),S7="TabsList",_7=c.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=td(S7,n),i=B1(n);return c.createElement(Vc,x({asChild:!0},i,{orientation:a.orientation,dir:a.dir,loop:r}),c.createElement(I.div,x({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),P7="TabsTrigger",R7=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=td(P7,n),l=B1(n),s=U1(i.baseId,r),u=H1(i.baseId,r),f=r===i.value;return c.createElement(Bc,x({asChild:!0},l,{focusable:!o,active:f}),c.createElement(I.button,x({type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},a,{ref:t,onMouseDown:R(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(r):d.preventDefault()}),onKeyDown:R(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(r)}),onFocus:R(e.onFocus,()=>{const d=i.activationMode!=="manual";!f&&!o&&d&&i.onValueChange(r)})})))}),T7="TabsContent",k7=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,l=td(T7,n),s=U1(l.baseId,r),u=H1(l.baseId,r),f=r===l.value,d=c.useRef(f);return c.useEffect(()=>{const p=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(p)},[]),c.createElement(le,{present:o||f},({present:p})=>c.createElement(I.div,x({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!p,id:u,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),p&&a))});function U1(e,t){return`${e}-trigger-${t}`}function H1(e,t){return`${e}-content-${t}`}const HC=C7,KC=_7,WC=R7,jC=k7;let Xi;const K1="HoverCard",[W1,GC]=ie(K1,[Pt]),M7=Pt(),[YC,j1]=W1(K1),O7="HoverCardPortal",[XC,D7]=W1(O7,{forceMount:void 0}),ds="HoverCardContent",I7=c.forwardRef((e,t)=>{const n=D7(ds,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=j1(ds,e.__scopeHoverCard);return c.createElement(le,{present:r||a.open},c.createElement(A7,x({"data-state":a.open?"open":"closed"},o,{onPointerEnter:R(e.onPointerEnter,ep(a.onOpen)),onPointerLeave:R(e.onPointerLeave,ep(a.onClose)),ref:t})))}),A7=c.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...l}=e,s=j1(ds,n),u=M7(n),f=c.useRef(null),d=V(t,f),[p,g]=c.useState(!1);return c.useEffect(()=>{if(p){const b=document.body;return Xi=b.style.userSelect||b.style.webkitUserSelect,b.style.userSelect="none",b.style.webkitUserSelect="none",()=>{b.style.userSelect=Xi,b.style.webkitUserSelect=Xi}}},[p]),c.useEffect(()=>{if(f.current){const b=()=>{g(!1),s.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var m;((m=document.getSelection())===null||m===void 0?void 0:m.toString())!==""&&(s.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",b),()=>{document.removeEventListener("pointerup",b),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!1}}},[s.isPointerDownOnContentRef,s.hasSelectionRef]),c.useEffect(()=>{f.current&&N7(f.current).forEach(m=>m.setAttribute("tabindex","-1"))}),c.createElement(wn,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:R(a,b=>{b.preventDefault()}),onDismiss:s.onDismiss},c.createElement(Ko,x({},u,l,{onPointerDown:R(l.onPointerDown,b=>{b.currentTarget.contains(b.target)&&g(!0),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!0}),ref:d,style:{...l.style,userSelect:p?"text":void 0,WebkitUserSelect:p?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))});function ep(e){return t=>t.pointerType==="touch"?void 0:e()}function N7(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}const QC=I7,G1="Progress",ci=100,[L7,ZC]=ie(G1),[F7,z7]=L7(G1),Y1=c.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:a=U7,...i}=e,l=fs(o)?o:ci,s=Q1(r,l)?r:null,u=bc(s)?a(s,l):void 0;return c.createElement(F7,{scope:n,value:s,max:l},c.createElement(I.div,x({"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":bc(s)?s:void 0,"aria-valuetext":u,role:"progressbar","data-state":X1(s,l),"data-value":s??void 0,"data-max":l},i,{ref:t})))});Y1.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!fs(r)?new Error(H7(o,n)):null},value(e,t,n){const r=e[t],o=String(r),a=fs(e.max)?e.max:ci;return r!=null&&!Q1(r,a)?new Error(K7(o,n)):null}};const V7="ProgressIndicator",B7=c.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...o}=e,a=z7(V7,r);return c.createElement(I.div,x({"data-state":X1(a.value,a.max),"data-value":(n=a.value)!==null&&n!==void 0?n:void 0,"data-max":a.max},o,{ref:t}))});function U7(e,t){return`${Math.round(e/t*100)}%`}function X1(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function bc(e){return typeof e=="number"}function fs(e){return bc(e)&&!isNaN(e)&&e>0}function Q1(e,t){return bc(e)&&!isNaN(e)&&e<=t&&e>=0}function H7(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ci}\`.`}function K7(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or ${ci} if no \`max\` prop is set) + - \`null\` if the progress is indeterminate. + +Defaulting to \`null\`.`}const qC=Y1,JC=B7,Z1="ToastProvider",[nd,W7,j7]=Wt("Toast"),[q1,e4]=ie("Toast",[j7]),[G7,ii]=q1(Z1),J1=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[l,s]=c.useState(null),[u,f]=c.useState(0),d=c.useRef(!1),p=c.useRef(!1);return c.createElement(nd.Provider,{scope:t},c.createElement(G7,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:u,viewport:l,onViewportChange:s,onToastAdd:c.useCallback(()=>f(g=>g+1),[]),onToastRemove:c.useCallback(()=>f(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p},i))};J1.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${Z1}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const Y7="ToastViewport",X7=["F8"],ps="toast.viewportPause",vs="toast.viewportResume",Q7=c.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=X7,label:o="Notifications ({hotkey})",...a}=e,i=ii(Y7,n),l=W7(n),s=c.useRef(null),u=c.useRef(null),f=c.useRef(null),d=c.useRef(null),p=V(t,d,i.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;c.useEffect(()=>{const w=h=>{var v;r.every(y=>h[y]||h.code===y)&&((v=d.current)===null||v===void 0||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),c.useEffect(()=>{const w=s.current,h=d.current;if(b&&w&&h){const v=()=>{if(!i.isClosePausedRef.current){const C=new CustomEvent(ps);h.dispatchEvent(C),i.isClosePausedRef.current=!0}},$=()=>{if(i.isClosePausedRef.current){const C=new CustomEvent(vs);h.dispatchEvent(C),i.isClosePausedRef.current=!1}},y=C=>{!w.contains(C.relatedTarget)&&$()},E=()=>{w.contains(document.activeElement)||$()};return w.addEventListener("focusin",v),w.addEventListener("focusout",y),w.addEventListener("pointermove",v),w.addEventListener("pointerleave",E),window.addEventListener("blur",v),window.addEventListener("focus",$),()=>{w.removeEventListener("focusin",v),w.removeEventListener("focusout",y),w.removeEventListener("pointermove",v),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",v),window.removeEventListener("focus",$)}}},[b,i.isClosePausedRef]);const m=c.useCallback(({tabbingDirection:w})=>{const v=l().map($=>{const y=$.ref.current,E=[y,...f8(y)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?v.reverse():v).flat()},[l]);return c.useEffect(()=>{const w=d.current;if(w){const h=v=>{const $=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!$){const _=document.activeElement,P=v.shiftKey;if(v.target===w&&P){var E;(E=u.current)===null||E===void 0||E.focus();return}const z=m({tabbingDirection:P?"backwards":"forwards"}),W=z.findIndex(k=>k===_);if(Qi(z.slice(W+1)))v.preventDefault();else{var C,S;P?(C=u.current)===null||C===void 0||C.focus():(S=f.current)===null||S===void 0||S.focus()}}};return w.addEventListener("keydown",h),()=>w.removeEventListener("keydown",h)}},[l,m]),c.createElement(Hg,{ref:s,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:b?void 0:"none"}},b&&c.createElement(tp,{ref:u,onFocusFromOutsideViewport:()=>{const w=m({tabbingDirection:"forwards"});Qi(w)}}),c.createElement(nd.Slot,{scope:n},c.createElement(I.ol,x({tabIndex:-1},a,{ref:p}))),b&&c.createElement(tp,{ref:f,onFocusFromOutsideViewport:()=>{const w=m({tabbingDirection:"backwards"});Qi(w)}}))}),Z7="ToastFocusProxy",tp=c.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=ii(Z7,n);return c.createElement(jc,x({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:i=>{var l;const s=i.relatedTarget;!((l=a.viewport)!==null&&l!==void 0&&l.contains(s))&&r()}}))}),li="Toast",q7="toast.swipeStart",J7="toast.swipeMove",e8="toast.swipeCancel",t8="toast.swipeEnd",n8=c.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...i}=e,[l=!0,s]=ge({prop:r,defaultProp:o,onChange:a});return c.createElement(le,{present:n||l},c.createElement(eh,x({open:l},i,{ref:t,onClose:()=>s(!1),onPause:Q(e.onPause),onResume:Q(e.onResume),onSwipeStart:R(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:R(e.onSwipeMove,u=>{const{x:f,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:R(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:R(e.onSwipeEnd,u=>{const{x:f,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),s(!1)})})))}),[r8,o8]=q1(li,{onClose(){}}),eh=c.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:l,onPause:s,onResume:u,onSwipeStart:f,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:g,...b}=e,m=ii(li,n),[w,h]=c.useState(null),v=V(t,k=>h(k)),$=c.useRef(null),y=c.useRef(null),E=o||m.duration,C=c.useRef(0),S=c.useRef(E),_=c.useRef(0),{onToastAdd:P,onToastRemove:O}=m,F=Q(()=>{var k;w?.contains(document.activeElement)&&((k=m.viewport)===null||k===void 0||k.focus()),i()}),z=c.useCallback(k=>{!k||k===1/0||(window.clearTimeout(_.current),C.current=new Date().getTime(),_.current=window.setTimeout(F,k))},[F]);c.useEffect(()=>{const k=m.viewport;if(k){const A=()=>{z(S.current),u?.()},K=()=>{const H=new Date().getTime()-C.current;S.current=S.current-H,window.clearTimeout(_.current),s?.()};return k.addEventListener(ps,K),k.addEventListener(vs,A),()=>{k.removeEventListener(ps,K),k.removeEventListener(vs,A)}}},[m.viewport,E,s,u,z]),c.useEffect(()=>{a&&!m.isClosePausedRef.current&&z(E)},[a,E,m.isClosePausedRef,z]),c.useEffect(()=>(P(),()=>O()),[P,O]);const W=c.useMemo(()=>w?oh(w):null,[w]);return m.viewport?c.createElement(c.Fragment,null,W&&c.createElement(a8,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},W),c.createElement(r8,{scope:n,onClose:F},Kt.createPortal(c.createElement(nd.ItemSlot,{scope:n},c.createElement(Ug,{asChild:!0,onEscapeKeyDown:R(l,()=>{m.isFocusedToastEscapeKeyDownRef.current||F(),m.isFocusedToastEscapeKeyDownRef.current=!1})},c.createElement(I.li,x({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":m.swipeDirection},b,{ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:R(e.onKeyDown,k=>{k.key==="Escape"&&(l?.(k.nativeEvent),k.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:R(e.onPointerDown,k=>{k.button===0&&($.current={x:k.clientX,y:k.clientY})}),onPointerMove:R(e.onPointerMove,k=>{if(!$.current)return;const A=k.clientX-$.current.x,K=k.clientY-$.current.y,H=!!y.current,M=["left","right"].includes(m.swipeDirection),T=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,N=M?T(0,A):0,U=M?0:T(0,K),G=k.pointerType==="touch"?10:2,ve={x:N,y:U},ue={originalEvent:k,delta:ve};H?(y.current=ve,Pa(J7,d,ue,{discrete:!1})):np(ve,m.swipeDirection,G)?(y.current=ve,Pa(q7,f,ue,{discrete:!1}),k.target.setPointerCapture(k.pointerId)):(Math.abs(A)>G||Math.abs(K)>G)&&($.current=null)}),onPointerUp:R(e.onPointerUp,k=>{const A=y.current,K=k.target;if(K.hasPointerCapture(k.pointerId)&&K.releasePointerCapture(k.pointerId),y.current=null,$.current=null,A){const H=k.currentTarget,M={originalEvent:k,delta:A};np(A,m.swipeDirection,m.swipeThreshold)?Pa(t8,g,M,{discrete:!0}):Pa(e8,p,M,{discrete:!0}),H.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})))),m.viewport))):null});eh.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${li}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const a8=e=>{const{__scopeToast:t,children:n,...r}=e,o=ii(li,t),[a,i]=c.useState(!1),[l,s]=c.useState(!1);return u8(()=>i(!0)),c.useEffect(()=>{const u=window.setTimeout(()=>s(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:c.createElement(Wo,{asChild:!0},c.createElement(jc,r,a&&c.createElement(c.Fragment,null,o.label," ",n)))},c8=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.createElement(I.div,x({},r,{ref:t}))}),i8=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.createElement(I.div,x({},r,{ref:t}))}),l8="ToastAction",th=c.forwardRef((e,t)=>{const{altText:n,...r}=e;return n?c.createElement(rh,{altText:n,asChild:!0},c.createElement(nh,x({},r,{ref:t}))):null});th.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${l8}\``)}};const s8="ToastClose",nh=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=o8(s8,n);return c.createElement(rh,{asChild:!0},c.createElement(I.button,x({type:"button"},r,{ref:t,onClick:R(e.onClick,o.onClose)})))}),rh=c.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.createElement(I.div,x({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))});function oh(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),d8(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...oh(r))}}),t}function Pa(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?du(o,a):o.dispatchEvent(a)}const np=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function u8(e=()=>{}){const t=Q(e);Pe(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function d8(e){return e.nodeType===e.ELEMENT_NODE}function f8(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Qi(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}const t4=J1,n4=Q7,r4=n8,o4=c8,a4=i8,c4=th,i4=nh;export{m8 as $,Z8 as A,Y8 as B,N8 as C,F8 as D,J8 as E,ox as F,ax as G,cx as H,I8 as I,lx as J,sx as K,ix as L,dx as M,fx as N,vx as O,mx as P,hx as Q,j as R,wx as S,Ex as T,O8 as U,xx as V,Cx as W,Sx as X,_x as Y,Px as Z,Tx as _,Kt as a,AC as a$,Rx as a0,kx as a1,bx as a2,yx as a3,Ix as a4,Ax as a5,Ox as a6,Dx as a7,u6 as a8,d6 as a9,uC as aA,dC as aB,pC as aC,vC as aD,$C as aE,hC as aF,fC as aG,gC as aH,lC as aI,bC as aJ,mC as aK,CC as aL,SC as aM,_C as aN,PC as aO,xC as aP,MC as aQ,OC as aR,DC as aS,TC as aT,kC as aU,NC as aV,LC as aW,VC as aX,BC as aY,FC as aZ,zC as a_,Gm as aa,L8 as ab,f6 as ac,p6 as ad,s6 as ae,Lx as af,Vx as ag,Bx as ah,Ux as ai,Hx as aj,B8 as ak,Wx as al,jx as am,Gx as an,Yx as ao,Qx as ap,Zx as aq,qx as ar,aC as as,nC as at,rC as au,oC as av,iC as aw,sC as ax,wC as ay,yC as az,v8 as b,KC as b0,WC as b1,jC as b2,HC as b3,QC as b4,qC as b5,JC as b6,fp as b7,V8 as b8,su as b9,n4 as ba,r4 as bb,c4 as bc,i4 as bd,o4 as be,a4 as bf,t4 as bg,A8 as bh,z8 as bi,k8 as bj,M8 as bk,Fx as bl,x as bm,U8 as bn,H8 as bo,p8 as c,pn as d,R8 as e,T8 as f,rp as g,w8 as h,y8 as i,x8 as j,C8 as k,_8 as l,D8 as m,S8 as n,E8 as o,P8 as p,g8 as q,c as r,b8 as s,ex as t,tx as u,j8 as v,G8 as w,X8 as x,Q8 as y,q8 as z}; diff --git a/assets/03-recharts-DF_t8duT.js b/assets/03-recharts-DF_t8duT.js new file mode 100644 index 0000000..df54c38 --- /dev/null +++ b/assets/03-recharts-DF_t8duT.js @@ -0,0 +1,68 @@ +import{c as ri,g as le,r as L,R as _}from"./02-radix-ui-BssNd7Fu.js";function op(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t-1}var bm=mm,xm=ya;function wm(e,t){var r=this.__data__,n=xm(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Om=wm,Sm=am,Am=pm,_m=ym,$m=bm,Pm=Om;function Tr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},Wt=function(t){return qn(t)&&t.indexOf("%")===t.length-1},F=function(t){return Zb(t)&&!Kn(t)},me=function(t){return F(t)||qn(t)},t0=0,Hn=function(t){var r=++t0;return"".concat(t||"").concat(r)},cr=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!F(t)&&!qn(t))return n;var a;if(Wt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Kn(a)&&(a=n),i&&a>r&&(a=r),a},rr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},r0=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Lo(e){"@babel/helpers - typeof";return Lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lo(e)}var gs={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},yt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},ms=null,io=null,lc=function e(t){if(t===ms&&Array.isArray(io))return io;var r=[];return L.Children.forEach(t,function(n){ee(n)||(Do.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),io=r,ms=t,r};function Xe(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return yt(i)}):n=[yt(t)],lc(e).forEach(function(i){var a=Ge(i,"type.displayName")||Ge(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Le(e,t){var r=Xe(e,t);return r&&r[0]}var bs=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!F(n)||n<=0||!F(i)||i<=0)},s0=["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"],l0=function(t){return t&&t.type&&qn(t.type)&&s0.indexOf(t.type)>=0},f0=function(t){return t&&Lo(t)==="object"&&"cx"in t&&"cy"in t&&"r"in t},h0=function(t,r,n,i){var a,o=(a=no?.[i])!==null&&a!==void 0?a:[];return!J(t)&&(i&&o.includes(r)||i0.includes(r))||n&&sc.includes(r)},Q=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(L.isValidElement(t)&&(i=t.props),!$r(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;h0((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Bo=function e(t,r){if(t===r)return!0;var n=L.Children.count(t);if(n!==L.Children.count(r))return!1;if(n===0)return!0;if(n===1)return xs(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Fo(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=y0(e,v0),f=i||{width:r,height:n,x:0,y:0},l=ne("recharts-surface",a);return _.createElement("svg",Ro({},Q(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),_.createElement("title",null,u),_.createElement("desc",null,c),t)}var m0=["children","className"];function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var pe=_.forwardRef(function(e,t){var r=e.children,n=e.className,i=b0(e,m0),a=ne("recharts-layer",n);return _.createElement("g",Wo({className:a},Q(i,!0),{ref:t}),r)}),Kt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ai?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n=n?e:S0(e,t,r)}var _0=A0,$0="\\ud800-\\udfff",P0="\\u0300-\\u036f",T0="\\ufe20-\\ufe2f",E0="\\u20d0-\\u20ff",j0=P0+T0+E0,M0="\\ufe0e\\ufe0f",C0="\\u200d",I0=RegExp("["+C0+$0+j0+M0+"]");function k0(e){return I0.test(e)}var bp=k0;function D0(e){return e.split("")}var N0=D0,xp="\\ud800-\\udfff",L0="\\u0300-\\u036f",B0="\\ufe20-\\ufe2f",R0="\\u20d0-\\u20ff",F0=L0+B0+R0,W0="\\ufe0e\\ufe0f",U0="["+xp+"]",Uo="["+F0+"]",zo="\\ud83c[\\udffb-\\udfff]",z0="(?:"+Uo+"|"+zo+")",wp="[^"+xp+"]",Op="(?:\\ud83c[\\udde6-\\uddff]){2}",Sp="[\\ud800-\\udbff][\\udc00-\\udfff]",q0="\\u200d",Ap=z0+"?",_p="["+W0+"]?",K0="(?:"+q0+"(?:"+[wp,Op,Sp].join("|")+")"+_p+Ap+")*",H0=_p+Ap+K0,G0="(?:"+[wp+Uo+"?",Uo,Op,Sp,U0].join("|")+")",X0=RegExp(zo+"(?="+zo+")|"+G0+H0,"g");function V0(e){return e.match(X0)||[]}var Y0=V0,Z0=N0,J0=bp,Q0=Y0;function ex(e){return J0(e)?Q0(e):Z0(e)}var tx=ex,rx=_0,nx=bp,ix=tx,ax=pp;function ox(e){return function(t){t=ax(t);var r=nx(t)?ix(t):void 0,n=r?r[0]:t.charAt(0),i=r?rx(r,1).join(""):t.slice(1);return n[e]()+i}}var ux=ox,cx=ux,sx=cx("toUpperCase"),lx=sx;const ja=le(lx);function ue(e){return function(){return e}}const $p=Math.cos,Oi=Math.sin,it=Math.sqrt,Si=Math.PI,Ma=2*Si,qo=Math.PI,Ko=2*qo,Bt=1e-6,fx=Ko-Bt;function Pp(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Pp;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;iBt)if(!(Math.abs(l*c-s*f)>Bt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=c*c+s*s,d=p*p+y*y,x=Math.sqrt(v),b=Math.sqrt(h),w=a*Math.tan((qo-Math.acos((v+h-d)/(2*x*b)))/2),g=w/b,m=w/x;Math.abs(g-1)>Bt&&this._append`L${t+g*f},${r+g*l}`,this._append`A${a},${a},0,0,${+(l*p>f*y)},${this._x1=t+m*c},${this._y1=r+m*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Bt||Math.abs(this._y1-f)>Bt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%Ko+Ko),h>fx?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:h>Bt&&this._append`A${n},${n},0,${+(h>=qo)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function fc(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new px(t)}function hc(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Tp(e){this._context=e}Tp.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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ca(e){return new Tp(e)}function Ep(e){return e[0]}function jp(e){return e[1]}function Mp(e,t){var r=ue(!0),n=null,i=Ca,a=null,o=fc(u);e=typeof e=="function"?e:e===void 0?Ep:ue(e),t=typeof t=="function"?t:t===void 0?jp:ue(t);function u(c){var s,f=(c=hc(c)).length,l,h=!1,p;for(n==null&&(a=i(p=o())),s=0;s<=f;++s)!(s=p;--y)u.point(w[y],g[y]);u.lineEnd(),u.areaEnd()}x&&(w[h]=+e(d,h,l),g[h]=+t(d,h,l),u.point(n?+n(d,h,l):w[h],r?+r(d,h,l):g[h]))}if(b)return u=null,b+""||null}function f(){return Mp().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:ue(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:ue(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:ue(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:ue(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:ue(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ue(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:ue(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}class Cp{constructor(t,r){this._context=t,this._x=r}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(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function dx(e){return new Cp(e,!0)}function vx(e){return new Cp(e,!1)}const pc={draw(e,t){const r=it(t/Si);e.moveTo(r,0),e.arc(0,0,r,0,Ma)}},yx={draw(e,t){const r=it(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Ip=it(1/3),gx=Ip*2,mx={draw(e,t){const r=it(t/gx),n=r*Ip;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},bx={draw(e,t){const r=it(t),n=-r/2;e.rect(n,n,r,r)}},xx=.8908130915292852,kp=Oi(Si/10)/Oi(7*Si/10),wx=Oi(Ma/10)*kp,Ox=-$p(Ma/10)*kp,Sx={draw(e,t){const r=it(t*xx),n=wx*r,i=Ox*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ma*a/5,u=$p(o),c=Oi(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},ao=it(3),Ax={draw(e,t){const r=-it(t/(ao*3));e.moveTo(0,r*2),e.lineTo(-ao*r,-r),e.lineTo(ao*r,-r),e.closePath()}},Ue=-.5,ze=it(3)/2,Ho=1/it(12),_x=(Ho/2+1)*3,$x={draw(e,t){const r=it(t/_x),n=r/2,i=r*Ho,a=n,o=r*Ho+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Ue*n-ze*i,ze*n+Ue*i),e.lineTo(Ue*a-ze*o,ze*a+Ue*o),e.lineTo(Ue*u-ze*c,ze*u+Ue*c),e.lineTo(Ue*n+ze*i,Ue*i-ze*n),e.lineTo(Ue*a+ze*o,Ue*o-ze*a),e.lineTo(Ue*u+ze*c,Ue*c-ze*u),e.closePath()}};function Px(e,t){let r=null,n=fc(i);e=typeof e=="function"?e:ue(e||pc),t=typeof t=="function"?t:ue(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ue(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ue(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ai(){}function _i(e,t,r){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+t)/6,(e._y0+4*e._y1+r)/6)}function Dp(e){this._context=e}Dp.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:_i(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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:_i(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Tx(e){return new Dp(e)}function Np(e){this._context=e}Np.prototype={areaStart:Ai,areaEnd:Ai,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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:_i(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ex(e){return new Np(e)}function Lp(e){this._context=e}Lp.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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:_i(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jx(e){return new Lp(e)}function Bp(e){this._context=e}Bp.prototype={areaStart:Ai,areaEnd:Ai,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Mx(e){return new Bp(e)}function Os(e){return e<0?-1:1}function Ss(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Os(a)+Os(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function As(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function oo(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function $i(e){this._context=e}$i.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:oo(this,this._t0,As(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,oo(this,As(this,r=Ss(this,e,t)),r);break;default:oo(this,this._t0,r=Ss(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Rp(e){this._context=new Fp(e)}(Rp.prototype=Object.create($i.prototype)).point=function(e,t){$i.prototype.point.call(this,t,e)};function Fp(e){this._context=e}Fp.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Cx(e){return new $i(e)}function Ix(e){return new Rp(e)}function Wp(e){this._context=e}Wp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=_s(e),i=_s(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Dx(e){return new Ia(e,.5)}function Nx(e){return new Ia(e,0)}function Lx(e){return new Ia(e,1)}function sr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r=0;)r[t]=t;return r}function Bx(e,t){return e[t]}function Rx(e){const t=[];return t.key=e,t}function Fx(){var e=ue([]),t=Go,r=sr,n=Bx;function i(a){var o=Array.from(e.apply(this,arguments),Rx),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vx(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Up={symbolCircle:pc,symbolCross:yx,symbolDiamond:mx,symbolSquare:bx,symbolStar:Sx,symbolTriangle:Ax,symbolWye:$x},Yx=Math.PI/180,Zx=function(t){var r="symbol".concat(ja(t));return Up[r]||pc},Jx=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Yx;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Qx=function(t,r){Up["symbol".concat(ja(t))]=r},dc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=Xx(t,qx),s=Ps(Ps({},c),{},{type:n,size:a,sizeType:u}),f=function(){var d=Zx(n),x=Px().type(d).size(Jx(a,u,n));return x()},l=s.className,h=s.cx,p=s.cy,y=Q(s,!0);return h===+h&&p===+p&&a===+a?_.createElement("path",Xo({},y,{className:ne("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};dc.registerSymbol=Qx;function lr(e){"@babel/helpers - typeof";return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lr(e)}function Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var b=p.inactive?s:p.color;return _.createElement("li",Vo({className:d,style:l,key:"legend-item-".concat(y)},wi(n.props,p,y)),_.createElement(Fo,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),_.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},v?v(x,p,y):x))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return _.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}]),t}(L.PureComponent);an(vc,"displayName","Legend");an(vc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var c1=ga;function s1(){this.__data__=new c1,this.size=0}var l1=s1;function f1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var h1=f1;function p1(e){return this.__data__.get(e)}var d1=p1;function v1(e){return this.__data__.has(e)}var y1=v1,g1=ga,m1=tc,b1=rc,x1=200;function w1(e,t){var r=this.__data__;if(r instanceof g1){var n=r.__data__;if(!m1||n.lengthu))return!1;var s=a.get(e),f=a.get(t);if(s&&f)return s==t&&f==e;var l=-1,h=!0,p=r&z1?new R1:void 0;for(a.set(e,t),a.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=Hw}var bc=Gw,Xw=St,Vw=bc,Yw=At,Zw="[object Arguments]",Jw="[object Array]",Qw="[object Boolean]",eO="[object Date]",tO="[object Error]",rO="[object Function]",nO="[object Map]",iO="[object Number]",aO="[object Object]",oO="[object RegExp]",uO="[object Set]",cO="[object String]",sO="[object WeakMap]",lO="[object ArrayBuffer]",fO="[object DataView]",hO="[object Float32Array]",pO="[object Float64Array]",dO="[object Int8Array]",vO="[object Int16Array]",yO="[object Int32Array]",gO="[object Uint8Array]",mO="[object Uint8ClampedArray]",bO="[object Uint16Array]",xO="[object Uint32Array]",ce={};ce[hO]=ce[pO]=ce[dO]=ce[vO]=ce[yO]=ce[gO]=ce[mO]=ce[bO]=ce[xO]=!0;ce[Zw]=ce[Jw]=ce[lO]=ce[Qw]=ce[fO]=ce[eO]=ce[tO]=ce[rO]=ce[nO]=ce[iO]=ce[aO]=ce[oO]=ce[uO]=ce[cO]=ce[sO]=!1;function wO(e){return Yw(e)&&Vw(e.length)&&!!ce[Xw(e)]}var OO=wO;function SO(e){return function(t){return e(t)}}var ed=SO,ji={exports:{}};ji.exports;(function(e,t){var r=up,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})(ji,ji.exports);var AO=ji.exports,_O=OO,$O=ed,Ds=AO,Ns=Ds&&Ds.isTypedArray,PO=Ns?$O(Ns):_O,td=PO,TO=Mw,EO=gc,jO=Ie,MO=Qp,CO=mc,IO=td,kO=Object.prototype,DO=kO.hasOwnProperty;function NO(e,t){var r=jO(e),n=!r&&EO(e),i=!r&&!n&&MO(e),a=!r&&!n&&!i&&IO(e),o=r||n||i||a,u=o?TO(e.length,String):[],c=u.length;for(var s in e)(t||DO.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||CO(s,c)))&&u.push(s);return u}var rd=NO,LO=Object.prototype;function BO(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||LO;return e===r}var xc=BO;function RO(e,t){return function(r){return e(t(r))}}var nd=RO,FO=nd,WO=FO(Object.keys,Object),UO=WO,zO=xc,qO=UO,KO=Object.prototype,HO=KO.hasOwnProperty;function GO(e){if(!zO(e))return qO(e);var t=[];for(var r in Object(e))HO.call(e,r)&&r!="constructor"&&t.push(r);return t}var XO=GO,VO=ec,YO=bc;function ZO(e){return e!=null&&YO(e.length)&&!VO(e)}var Gn=ZO,JO=rd,QO=XO,eS=Gn;function tS(e){return eS(e)?JO(e):QO(e)}var wc=tS,rS=bw,nS=Ew,iS=wc;function aS(e){return rS(e,iS,nS)}var oS=aS,Ls=oS,uS=1,cS=Object.prototype,sS=cS.hasOwnProperty;function lS(e,t,r,n,i,a){var o=r&uS,u=Ls(e),c=u.length,s=Ls(t),f=s.length;if(c!=f&&!o)return!1;for(var l=c;l--;){var h=u[l];if(!(o?h in t:sS.call(t,h)))return!1}var p=a.get(e),y=a.get(t);if(p&&y)return p==t&&y==e;var v=!0;a.set(e,t),a.set(t,e);for(var d=o;++l-1}var s_=c_;function l_(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=__){var s=t?null:S_(e);if(s)return A_(s);o=!1,i=O_,c=new b_}else c=t?[]:u;e:for(;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function F_(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function W_(e){return e.value}function U_(e,t){if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return _.createElement(e,t);t.ref;var r=R_(t,C_);return _.createElement(vc,r)}var Qs=1,on=function(e){L_(t,e);function t(){var r;I_(this,t);for(var n=arguments.length,i=new Array(n),a=0;aQs||Math.abs(i.height-this.lastBoundingBox.height)>Qs)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Lt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();l={left:((s||0)-p.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Lt(Lt({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=Lt(Lt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return _.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},U_(a,Lt(Lt({},this.props),{},{payload:sd(f,s,W_)})))}}],[{key:"getWithHeight",value:function(n,i){var a=n.props.layout;return a==="vertical"&&F(n.props.height)?{height:n.props.height}:a==="horizontal"?{width:n.props.width||i}:null}}]),t}(L.PureComponent);ka(on,"displayName","Legend");ka(on,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var el=zn,z_=gc,q_=Ie,tl=el?el.isConcatSpreadable:void 0;function K_(e){return q_(e)||z_(e)||!!(tl&&e&&e[tl])}var H_=K_,G_=Zp,X_=H_;function pd(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=X_),i||(i=[]);++a0&&r(u)?t>1?pd(u,t-1,r,n,i):G_(i,u):n||(i[i.length]=u)}return i}var Sc=pd;function V_(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),u=o.length;u--;){var c=o[e?u:++i];if(r(a[c],c,a)===!1)break}return t}}var Y_=V_,Z_=Y_,J_=Z_(),Q_=J_,e$=Q_,t$=wc;function r$(e,t){return e&&e$(e,t,t$)}var dd=r$,n$=Gn;function i$(e,t){return function(r,n){if(r==null)return r;if(!n$(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++at||a&&o&&c&&!u&&!s||n&&o&&c||!r&&c||!i)return 1;if(!n&&!a&&!s&&e=u)return c;var s=r[n];return c*(s=="desc"?-1:1)}}return e.index-t.index}var m$=g$,lo=ic,b$=ac,x$=Ir,w$=vd,O$=p$,S$=ed,A$=m$,_$=Cr,$$=Ie;function P$(e,t,r){t.length?t=lo(t,function(a){return $$(a)?function(o){return b$(o,a.length===1?a[0]:a)}:a}):t=[_$];var n=-1;t=lo(t,S$(x$));var i=w$(e,function(a,o,u){var c=lo(t,function(s){return s(a)});return{criteria:c,index:++n,value:a}});return O$(i,function(a,o){return A$(a,o,r)})}var T$=P$;function E$(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var j$=E$,M$=j$,nl=Math.max;function C$(e,t,r){return t=nl(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=nl(n.length-t,0),o=Array(a);++i0){if(++t>=W$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var K$=q$,H$=F$,G$=K$,X$=G$(H$),md=X$,V$=Cr,Y$=yd,Z$=md;function J$(e,t){return Z$(Y$(e,t,V$),e+"")}var Q$=J$,eP=va,tP=Gn,rP=mc,nP=lt;function iP(e,t,r){if(!nP(r))return!1;var n=typeof t;return(n=="number"?tP(r)&&rP(t,r.length):n=="string"&&t in r)?eP(r[t],e):!1}var Da=iP,aP=Sc,oP=T$,uP=Q$,al=Da,cP=uP(function(e,t){if(e==null)return[];var r=t.length;return r>1&&al(e,t[0],t[1])?t=[]:r>2&&al(t[0],t[1],t[2])&&(t=[t[0]]),oP(e,aP(t,1),[])}),sP=cP;const _c=le(sP);function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}function nu(){return nu=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(Fr,"-left"),F(r)&&t&&F(t.x)&&r=t.y),"".concat(Fr,"-top"),F(n)&&t&&F(t.y)&&nv?Math.max(f,c[n]):Math.max(l,c[n])}function AP(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function _P(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=cl({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=cl({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=AP({translateX:f,translateY:l,useTranslate3d:u})):s=OP,{cssProperties:s,cssClasses:SP({translateX:f,translateY:l,coordinate:r})}}function hr(e){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hr(e)}function sl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ll(e){for(var t=1;thl||Math.abs(n.height-this.lastBoundingBox.height)>hl)&&(this.lastBoundingBox.width=n.width,this.lastBoundingBox.height=n.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.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 n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,d=i.useTranslate3d,x=i.viewBox,b=i.wrapperStyle,w=_P({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:d,viewBox:x}),g=w.cssClasses,m=w.cssProperties,O=ll(ll({transition:h&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},b);return _.createElement("div",{tabIndex:-1,className:g,style:O,ref:function(A){n.wrapperNode=A}},s)}}]),t}(L.PureComponent),IP=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},gt={isSsr:IP(),get:function(t){return gt[t]},set:function(t,r){if(typeof t=="string")gt[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){gt[i]=t[i]})}}};function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}function pl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dl(e){for(var t=1;t0;return _.createElement(CP,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:O,offset:p,position:d,reverseDirection:x,useTranslate3d:b,viewBox:w,wrapperStyle:g},UP(s,dl(dl({},this.props),{},{payload:m})))}}]),t}(L.PureComponent);$c(pt,"displayName","Tooltip");$c(pt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!gt.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 zP=nt,qP=function(){return zP.Date.now()},KP=qP,HP=/\s/;function GP(e){for(var t=e.length;t--&&HP.test(e.charAt(t)););return t}var XP=GP,VP=XP,YP=/^\s+/;function ZP(e){return e&&e.slice(0,VP(e)+1).replace(YP,"")}var JP=ZP,QP=JP,yl=lt,eT=_r,gl=NaN,tT=/^[-+]0x[0-9a-f]+$/i,rT=/^0b[01]+$/i,nT=/^0o[0-7]+$/i,iT=parseInt;function aT(e){if(typeof e=="number")return e;if(eT(e))return gl;if(yl(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=yl(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=QP(e);var r=rT.test(e);return r||nT.test(e)?iT(e.slice(2),r?2:8):tT.test(e)?gl:+e}var Sd=aT,oT=lt,ho=KP,ml=Sd,uT="Expected a function",cT=Math.max,sT=Math.min;function lT(e,t,r){var n,i,a,o,u,c,s=0,f=!1,l=!1,h=!0;if(typeof e!="function")throw new TypeError(uT);t=ml(t)||0,oT(r)&&(f=!!r.leading,l="maxWait"in r,a=l?cT(ml(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function p(O){var S=n,A=i;return n=i=void 0,s=O,o=e.apply(A,S),o}function y(O){return s=O,u=setTimeout(x,t),f?p(O):o}function v(O){var S=O-c,A=O-s,j=t-S;return l?sT(j,a-A):j}function d(O){var S=O-c,A=O-s;return c===void 0||S>=t||S<0||l&&A>=a}function x(){var O=ho();if(d(O))return b(O);u=setTimeout(x,v(O))}function b(O){return u=void 0,h&&n?p(O):(n=i=void 0,o)}function w(){u!==void 0&&clearTimeout(u),s=0,n=c=i=u=void 0}function g(){return u===void 0?o:b(ho())}function m(){var O=ho(),S=d(O);if(n=arguments,i=this,c=O,S){if(u===void 0)return y(c);if(l)return clearTimeout(u),u=setTimeout(x,t),p(c)}return u===void 0&&(u=setTimeout(x,t)),o}return m.cancel=w,m.flush=g,m}var fT=lT,hT=fT,pT=lt,dT="Expected a function";function vT(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(dT);return pT(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),hT(e,t,{leading:n,maxWait:t,trailing:i})}var yT=vT;const Ad=le(yT);function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function bl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oi(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(I=Ad(I,v,{trailing:!0,leading:!1}));var T=new ResizeObserver(I),D=m.current.getBoundingClientRect(),M=D.width,N=D.height;return P(M,N),T.observe(m.current),function(){T.disconnect()}},[P,v]);var $=L.useMemo(function(){var I=j.containerWidth,T=j.containerHeight;if(I<0||T<0)return null;Kt(Wt(o)||Wt(c),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,o,c),Kt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=Wt(o)?I:o,M=Wt(c)?T:c;r&&r>0&&(D?M=D/r:M&&(D=M*r),h&&M>h&&(M=h)),Kt(D>0||M>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.`,D,M,o,c,f,l,r);var N=!Array.isArray(p)&&Do.isElement(p)&&yt(p.type).endsWith("Chart");return _.Children.map(p,function(B){return Do.isElement(B)?L.cloneElement(B,oi({width:D,height:M},N?{style:oi({height:"100%",width:"100%",maxHeight:M,maxWidth:D},B.props.style)}:{})):B})},[r,p,c,h,l,f,j,o]);return _.createElement("div",{id:d?"".concat(d):void 0,className:ne("recharts-responsive-container",x),style:oi(oi({},g),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:h}),ref:m},$)}),_d=function(t){return null};_d.displayName="Cell";function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function wl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ou(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||gt.isSsr)return{width:0,height:0};var n=jT(r),i=JSON.stringify({text:t,copyStyle:n});if(Qt.widthCache[i])return Qt.widthCache[i];try{var a=document.getElementById(Ol);a||(a=document.createElement("span"),a.setAttribute("id",Ol),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=ou(ou({},ET),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return Qt.widthCache[i]=c,++Qt.cacheCount>TT&&(Qt.cacheCount=0,Qt.widthCache={}),c}catch{return{width:0,height:0}}},MT=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function ki(e,t){return DT(e)||kT(e,t)||IT(e,t)||CT()}function CT(){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 IT(e,t){if(e){if(typeof e=="string")return Sl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sl(e,t)}}function Sl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VT(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function El(e,t){return QT(e)||JT(e,t)||ZT(e,t)||YT()}function YT(){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 ZT(e,t){if(e){if(typeof e=="string")return jl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jl(e,t)}}function jl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function(M,N){var B=N.word,R=N.width,K=M[M.length-1];if(K&&(i==null||a||K.width+R+nN.width?M:N})};if(!f)return p;for(var v="…",d=function(D){var M=l.slice(0,D),N=Ed({breakAll:s,style:c,children:M+v}).wordsWithComputedWidth,B=h(N),R=B.length>o||y(B).width>Number(i);return[R,B]},x=0,b=l.length-1,w=0,g;x<=b&&w<=l.length-1;){var m=Math.floor((x+b)/2),O=m-1,S=d(O),A=El(S,2),j=A[0],E=A[1],P=d(m),$=El(P,1),I=$[0];if(!j&&!I&&(x=m+1),j&&I&&(b=m-1),!j&&I){g=E;break}w++}return g||p},Ml=function(t){var r=ee(t)?[]:t.toString().split(Td);return[{words:r}]},tE=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!gt.isSsr){var c,s,f=Ed({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return Ml(i);return eE({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return Ml(i)},Cl="#808080",Di=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,s=c===void 0?"0.71em":c,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,d=t.fill,x=d===void 0?Cl:d,b=Tl(t,GT),w=L.useMemo(function(){return tE({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:l,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,l,b.style,b.width]),g=b.dx,m=b.dy,O=b.angle,S=b.className,A=b.breakAll,j=Tl(b,XT);if(!me(n)||!me(a))return null;var E=n+(F(g)?g:0),P=a+(F(m)?m:0),$;switch(v){case"start":$=po("calc(".concat(s,")"));break;case"middle":$=po("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:$=po("calc(".concat(w.length-1," * -").concat(u,")"));break}var I=[];if(l){var T=w[0].width,D=b.width;I.push("scale(".concat((F(D)?D/T:1)/T,")"))}return O&&I.push("rotate(".concat(O,", ").concat(E,", ").concat(P,")")),I.length&&(j.transform=I.join(" ")),_.createElement("text",uu({},Q(j,!0),{x:E,y:P,className:ne("recharts-text",S),textAnchor:p,fill:x.includes("url")?Cl:x}),w.map(function(M,N){var B=M.words.join(A?"":" ");return _.createElement("tspan",{x:E,dy:N===0?$:u,key:B},B)}))};function Et(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function rE(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Pc(e){let t,r,n;e.length!==2?(t=Et,r=(u,c)=>Et(e(u),c),n=(u,c)=>e(u)-c):(t=e===Et||e===rE?e:nE,r=e,n=e);function i(u,c,s=0,f=u.length){if(s>>1;r(u[l],c)<0?s=l+1:f=l}while(s>>1;r(u[l],c)<=0?s=l+1:f=l}while(ss&&n(u[l-1],c)>-n(u[l],c)?l-1:l}return{left:i,center:o,right:a}}function nE(){return 0}function jd(e){return e===null?NaN:+e}function*iE(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const aE=Pc(Et),Xn=aE.right;Pc(jd).center;class Il extends Map{constructor(t,r=cE){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(kl(this,t))}has(t){return super.has(kl(this,t))}set(t,r){return super.set(oE(this,t),r)}delete(t){return super.delete(uE(this,t))}}function kl({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function oE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function uE({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function cE(e){return e!==null&&typeof e=="object"?e.valueOf():e}function sE(e=Et){if(e===Et)return Md;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Md(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const lE=Math.sqrt(50),fE=Math.sqrt(10),hE=Math.sqrt(2);function Ni(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=lE?10:a>=fE?5:a>=hE?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),c=Math.round(t*s),u/st&&--c,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),c=Math.round(t/s),u*st&&--c),c0))return[];if(e===t)return[e];const n=t=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let s=0;s=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r=i)&&(r=i)}return r}function Nl(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function Cd(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Md:sE(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),p=Math.max(r,Math.floor(t-s*l/c+h)),y=Math.min(n,Math.floor(t+(c-s)*l/c+h));Cd(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(Wr(e,r,t),i(e[n],a)>0&&Wr(e,r,n);o0;)--u}i(e[r],a)===0?Wr(e,r,u):(++u,Wr(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Wr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function pE(e,t,r){if(e=Float64Array.from(iE(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Nl(e);if(t>=1)return Dl(e);var n,i=(n-1)*t,a=Math.floor(i),o=Dl(Cd(e,a).subarray(0,a+1)),u=Nl(e.subarray(a+1));return o+(u-o)*(i-a)}}function dE(e,t,r=jd){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function vE(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ci(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ci(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=gE.exec(e))?new Ce(t[1],t[2],t[3],1):(t=mE.exec(e))?new Ce(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bE.exec(e))?ci(t[1],t[2],t[3],t[4]):(t=xE.exec(e))?ci(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wE.exec(e))?zl(t[1],t[2]/100,t[3]/100,1):(t=OE.exec(e))?zl(t[1],t[2]/100,t[3]/100,t[4]):Ll.hasOwnProperty(e)?Fl(Ll[e]):e==="transparent"?new Ce(NaN,NaN,NaN,0):null}function Fl(e){return new Ce(e>>16&255,e>>8&255,e&255,1)}function ci(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ce(e,t,r,n)}function _E(e){return e instanceof Vn||(e=vn(e)),e?(e=e.rgb(),new Ce(e.r,e.g,e.b,e.opacity)):new Ce}function Bi(e,t,r,n){return arguments.length===1?_E(e):new Ce(e,t,r,n??1)}function Ce(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ec(Ce,Bi,kd(Vn,{brighter(e){return e=e==null?Li:Math.pow(Li,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?pn:Math.pow(pn,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(Ht(this.r),Ht(this.g),Ht(this.b),Ri(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:Wl,formatHex:Wl,formatHex8:$E,formatRgb:Ul,toString:Ul}));function Wl(){return`#${Ut(this.r)}${Ut(this.g)}${Ut(this.b)}`}function $E(){return`#${Ut(this.r)}${Ut(this.g)}${Ut(this.b)}${Ut((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ul(){const e=Ri(this.opacity);return`${e===1?"rgb(":"rgba("}${Ht(this.r)}, ${Ht(this.g)}, ${Ht(this.b)}${e===1?")":`, ${e})`}`}function Ri(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ht(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ut(e){return e=Ht(e),(e<16?"0":"")+e.toString(16)}function zl(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new tt(e,t,r,n)}function Dd(e){if(e instanceof tt)return new tt(e.h,e.s,e.l,e.opacity);if(e instanceof Vn||(e=vn(e)),!e)return new tt;if(e instanceof tt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,c=(a+i)/2;return u?(t===a?o=(r-n)/u+(r0&&c<1?0:o,new tt(o,u,c,e.opacity)}function PE(e,t,r,n){return arguments.length===1?Dd(e):new tt(e,t,r,n??1)}function tt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ec(tt,PE,kd(Vn,{brighter(e){return e=e==null?Li:Math.pow(Li,e),new tt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?pn:Math.pow(pn,e),new tt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ce(vo(e>=240?e-240:e+120,i,n),vo(e,i,n),vo(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new tt(ql(this.h),si(this.s),si(this.l),Ri(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=Ri(this.opacity);return`${e===1?"hsl(":"hsla("}${ql(this.h)}, ${si(this.s)*100}%, ${si(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ql(e){return e=(e||0)%360,e<0?e+360:e}function si(e){return Math.max(0,Math.min(1,e||0))}function vo(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function TE(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function EE(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,u=n()=>e;function jE(e,t){return function(r){return e+r*t}}function ME(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function CE(e){return(e=+e)==1?Nd:function(t,r){return r-t?ME(t,r,e):jc(isNaN(t)?r:t)}}function Nd(e,t){var r=t-e;return r?jE(e,r):jc(isNaN(e)?t:e)}const Kl=function e(t){var r=CE(t);function n(i,a){var o=r((i=Bi(i)).r,(a=Bi(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=Nd(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=c(f),i.opacity=s(f),i+""}}return n.gamma=e,n}(1);function IE(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,u;for(o=0;or&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,c.push({i:o,x:Fi(n,i)})),r=yo.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function KE(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?HE:KE,c=s=null,l}function l(h){return h==null||isNaN(h=+h)?a:(c||(c=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((s||(s=u(t,e.map(n),Fi)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Wi),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=Mc,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Me,f()):o!==Me},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,p){return n=h,i=p,f()}}function Cc(){return Na()(Me,Me)}function GE(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ui(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function dr(e){return e=Ui(Math.abs(e)),e?e[1]:NaN}function XE(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function VE(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var YE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yn(e){if(!(t=YE.exec(e)))throw new Error("invalid format: "+e);var t;return new Ic({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}yn.prototype=Ic.prototype;function Ic(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+""}Ic.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 ZE(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Ld;function JE(e,t){var r=Ui(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Ld=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ui(e,Math.max(0,t+a-1))[0]}function Gl(e,t){var r=Ui(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Xl={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:GE,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Gl(e*100,t),r:Gl,s:JE,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Vl(e){return e}var Yl=Array.prototype.map,Zl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function QE(e){var t=e.grouping===void 0||e.thousands===void 0?Vl:XE(Yl.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Vl:VE(Yl.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(l){l=yn(l);var h=l.fill,p=l.align,y=l.sign,v=l.symbol,d=l.zero,x=l.width,b=l.comma,w=l.precision,g=l.trim,m=l.type;m==="n"?(b=!0,m="g"):Xl[m]||(w===void 0&&(w=12),g=!0,m="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var O=v==="$"?r:v==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",S=v==="$"?n:/[%p]/.test(m)?o:"",A=Xl[m],j=/[defgprs%]/.test(m);w=w===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function E(P){var $=O,I=S,T,D,M;if(m==="c")I=A(P)+I,P="";else{P=+P;var N=P<0||1/P<0;if(P=isNaN(P)?c:A(Math.abs(P),w),g&&(P=ZE(P)),N&&+P==0&&y!=="+"&&(N=!1),$=(N?y==="("?y:u:y==="-"||y==="("?"":y)+$,I=(m==="s"?Zl[8+Ld/3]:"")+I+(N&&y==="("?")":""),j){for(T=-1,D=P.length;++TM||M>57){I=(M===46?i+P.slice(T+1):P.slice(T))+I,P=P.slice(0,T);break}}}b&&!d&&(P=t(P,1/0));var B=$.length+P.length+I.length,R=B>1)+$+P+I+R.slice(B);break;default:P=R+$+P+I;break}return a(P)}return E.toString=function(){return l+""},E}function f(l,h){var p=s((l=yn(l),l.type="f",l)),y=Math.max(-8,Math.min(8,Math.floor(dr(h)/3)))*3,v=Math.pow(10,-y),d=Zl[8+y/3];return function(x){return p(v*x)+d}}return{format:s,formatPrefix:f}}var li,kc,Bd;ej({thousands:",",grouping:[3],currency:["$",""]});function ej(e){return li=QE(e),kc=li.format,Bd=li.formatPrefix,li}function tj(e){return Math.max(0,-dr(Math.abs(e)))}function rj(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(dr(t)/3)))*3-dr(Math.abs(e)))}function nj(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,dr(t)-dr(e))+1}function Rd(e,t,r,n){var i=lu(e,t,r),a;switch(n=yn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=rj(i,o))&&(n.precision=a),Bd(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=nj(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=tj(i))&&(n.precision=a-(n.type==="%")*2);break}}return kc(n)}function Mt(e){var t=e.domain;return e.ticks=function(r){var n=t();return cu(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Rd(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,s,f=10;for(u0;){if(s=su(o,u,r),s===c)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function zi(){var e=Cc();return e.copy=function(){return Yn(e,zi())},Ye.apply(e,arguments),Mt(e)}function Fd(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Wi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Fd(e).unknown(t)},e=arguments.length?Array.from(e,Wi):[0,1],Mt(r)}function Wd(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function cj(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function ef(e){return(t,r)=>-e(-t,r)}function Dc(e){const t=e(Jl,Ql),r=t.domain;let n=10,i,a;function o(){return i=cj(n),a=uj(n),r()[0]<0?(i=ef(i),a=ef(a),e(ij,aj)):e(Jl,Ql),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f0){for(;h<=p;++h)for(y=1;yf)break;x.push(v)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(v=h>0?y/a(-h):y*a(h),!(vf)break;x.push(v)}x.length*2{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=yn(c)).precision==null&&(c.trim=!0),c=kc(c)),u===1/0)return c;const s=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*nr(Wd(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Ud(){const e=Dc(Na()).domain([1,10]);return e.copy=()=>Yn(e,Ud()).base(e.base()),Ye.apply(e,arguments),e}function tf(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function rf(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Nc(e){var t=1,r=e(tf(t),rf(t));return r.constant=function(n){return arguments.length?e(tf(t=+n),rf(t)):t},Mt(r)}function zd(){var e=Nc(Na());return e.copy=function(){return Yn(e,zd()).constant(e.constant())},Ye.apply(e,arguments)}function nf(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function sj(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function lj(e){return e<0?-e*e:e*e}function Lc(e){var t=e(Me,Me),r=1;function n(){return r===1?e(Me,Me):r===.5?e(sj,lj):e(nf(r),nf(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Mt(t)}function Bc(){var e=Lc(Na());return e.copy=function(){return Yn(e,Bc()).exponent(e.exponent())},Ye.apply(e,arguments),e}function fj(){return Bc.apply(null,arguments).exponent(.5)}function af(e){return Math.sign(e)*e*e}function hj(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function qd(){var e=Cc(),t=[0,1],r=!1,n;function i(a){var o=hj(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(af(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Wi)).map(af)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return qd(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ye.apply(i,arguments),Mt(i)}function Kd(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o0?r[u-1]:e[0],u=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Hd().domain([e,t]).range(i).unknown(a)},Ye.apply(Mt(o),arguments)}function Gd(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Xn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Gd().domain(e).range(t).unknown(r)},Ye.apply(i,arguments)}const go=new Date,mo=new Date;function be(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a0))return c;let s;do c.push(s=new Date(+a)),t(a,u),e(a);while(sbe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(go.setTime(+a),mo.setTime(+o),e(go),e(mo),Math.floor(r(go,mo))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const qi=be(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);qi.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?be(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):qi);qi.range;const dt=1e3,He=dt*60,vt=He*60,bt=vt*24,Rc=bt*7,of=bt*30,bo=bt*365,zt=be(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*dt)},(e,t)=>(t-e)/dt,e=>e.getUTCSeconds());zt.range;const Fc=be(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dt)},(e,t)=>{e.setTime(+e+t*He)},(e,t)=>(t-e)/He,e=>e.getMinutes());Fc.range;const Wc=be(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*He)},(e,t)=>(t-e)/He,e=>e.getUTCMinutes());Wc.range;const Uc=be(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dt-e.getMinutes()*He)},(e,t)=>{e.setTime(+e+t*vt)},(e,t)=>(t-e)/vt,e=>e.getHours());Uc.range;const zc=be(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*vt)},(e,t)=>(t-e)/vt,e=>e.getUTCHours());zc.range;const Zn=be(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*He)/bt,e=>e.getDate()-1);Zn.range;const La=be(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bt,e=>e.getUTCDate()-1);La.range;const Xd=be(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bt,e=>Math.floor(e/bt));Xd.range;function Zt(e){return be(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*He)/Rc)}const Ba=Zt(0),Ki=Zt(1),pj=Zt(2),dj=Zt(3),vr=Zt(4),vj=Zt(5),yj=Zt(6);Ba.range;Ki.range;pj.range;dj.range;vr.range;vj.range;yj.range;function Jt(e){return be(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Rc)}const Ra=Jt(0),Hi=Jt(1),gj=Jt(2),mj=Jt(3),yr=Jt(4),bj=Jt(5),xj=Jt(6);Ra.range;Hi.range;gj.range;mj.range;yr.range;bj.range;xj.range;const qc=be(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());qc.range;const Kc=be(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Kc.range;const xt=be(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());xt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:be(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});xt.range;const wt=be(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());wt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:be(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});wt.range;function Vd(e,t,r,n,i,a){const o=[[zt,1,dt],[zt,5,5*dt],[zt,15,15*dt],[zt,30,30*dt],[a,1,He],[a,5,5*He],[a,15,15*He],[a,30,30*He],[i,1,vt],[i,3,3*vt],[i,6,6*vt],[i,12,12*vt],[n,1,bt],[n,2,2*bt],[r,1,Rc],[t,1,of],[t,3,3*of],[e,1,bo]];function u(s,f,l){const h=fd).right(o,h);if(p===o.length)return e.every(lu(s/bo,f/bo,l));if(p===0)return qi.every(Math.max(lu(s,f,l),1));const[y,v]=o[h/o[p-1][2]53)return null;"w"in k||(k.w=1),"Z"in k?(Y=wo(Ur(k.y,0,1)),ye=Y.getUTCDay(),Y=ye>4||ye===0?Hi.ceil(Y):Hi(Y),Y=La.offset(Y,(k.V-1)*7),k.y=Y.getUTCFullYear(),k.m=Y.getUTCMonth(),k.d=Y.getUTCDate()+(k.w+6)%7):(Y=xo(Ur(k.y,0,1)),ye=Y.getDay(),Y=ye>4||ye===0?Ki.ceil(Y):Ki(Y),Y=Zn.offset(Y,(k.V-1)*7),k.y=Y.getFullYear(),k.m=Y.getMonth(),k.d=Y.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),ye="Z"in k?wo(Ur(k.y,0,1)).getUTCDay():xo(Ur(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(ye+5)%7:k.w+k.U*7-(ye+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,wo(k)):xo(k)}}function A(W,H,V,k){for(var he=0,Y=H.length,ye=V.length,de,ke;he=ye)return-1;if(de=H.charCodeAt(he++),de===37){if(de=H.charAt(he++),ke=m[de in uf?H.charAt(he++):de],!ke||(k=ke(W,V,k))<0)return-1}else if(de!=V.charCodeAt(k++))return-1}return k}function j(W,H,V){var k=s.exec(H.slice(V));return k?(W.p=f.get(k[0].toLowerCase()),V+k[0].length):-1}function E(W,H,V){var k=p.exec(H.slice(V));return k?(W.w=y.get(k[0].toLowerCase()),V+k[0].length):-1}function P(W,H,V){var k=l.exec(H.slice(V));return k?(W.w=h.get(k[0].toLowerCase()),V+k[0].length):-1}function $(W,H,V){var k=x.exec(H.slice(V));return k?(W.m=b.get(k[0].toLowerCase()),V+k[0].length):-1}function I(W,H,V){var k=v.exec(H.slice(V));return k?(W.m=d.get(k[0].toLowerCase()),V+k[0].length):-1}function T(W,H,V){return A(W,t,H,V)}function D(W,H,V){return A(W,r,H,V)}function M(W,H,V){return A(W,n,H,V)}function N(W){return o[W.getDay()]}function B(W){return a[W.getDay()]}function R(W){return c[W.getMonth()]}function K(W){return u[W.getMonth()]}function X(W){return i[+(W.getHours()>=12)]}function z(W){return 1+~~(W.getMonth()/3)}function Z(W){return o[W.getUTCDay()]}function $e(W){return a[W.getUTCDay()]}function Pe(W){return c[W.getUTCMonth()]}function kt(W){return u[W.getUTCMonth()]}function ft(W){return i[+(W.getUTCHours()>=12)]}function We(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var H=O(W+="",w);return H.toString=function(){return W},H},parse:function(W){var H=S(W+="",!1);return H.toString=function(){return W},H},utcFormat:function(W){var H=O(W+="",g);return H.toString=function(){return W},H},utcParse:function(W){var H=S(W+="",!0);return H.toString=function(){return W},H}}}var uf={"-":"",_:" ",0:"0"},Se=/^\s*\d+/,$j=/^%/,Pj=/[\\^$*+?|[\]().{}]/g;function re(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function Ej(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function jj(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Mj(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Cj(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Ij(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function cf(e,t,r){var n=Se.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function sf(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function kj(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Dj(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Nj(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function lf(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Lj(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function ff(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Bj(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Rj(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Fj(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Wj(e,t,r){var n=Se.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Uj(e,t,r){var n=$j.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function zj(e,t,r){var n=Se.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function qj(e,t,r){var n=Se.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function hf(e,t){return re(e.getDate(),t,2)}function Kj(e,t){return re(e.getHours(),t,2)}function Hj(e,t){return re(e.getHours()%12||12,t,2)}function Gj(e,t){return re(1+Zn.count(xt(e),e),t,3)}function Yd(e,t){return re(e.getMilliseconds(),t,3)}function Xj(e,t){return Yd(e,t)+"000"}function Vj(e,t){return re(e.getMonth()+1,t,2)}function Yj(e,t){return re(e.getMinutes(),t,2)}function Zj(e,t){return re(e.getSeconds(),t,2)}function Jj(e){var t=e.getDay();return t===0?7:t}function Qj(e,t){return re(Ba.count(xt(e)-1,e),t,2)}function Zd(e){var t=e.getDay();return t>=4||t===0?vr(e):vr.ceil(e)}function eM(e,t){return e=Zd(e),re(vr.count(xt(e),e)+(xt(e).getDay()===4),t,2)}function tM(e){return e.getDay()}function rM(e,t){return re(Ki.count(xt(e)-1,e),t,2)}function nM(e,t){return re(e.getFullYear()%100,t,2)}function iM(e,t){return e=Zd(e),re(e.getFullYear()%100,t,2)}function aM(e,t){return re(e.getFullYear()%1e4,t,4)}function oM(e,t){var r=e.getDay();return e=r>=4||r===0?vr(e):vr.ceil(e),re(e.getFullYear()%1e4,t,4)}function uM(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function pf(e,t){return re(e.getUTCDate(),t,2)}function cM(e,t){return re(e.getUTCHours(),t,2)}function sM(e,t){return re(e.getUTCHours()%12||12,t,2)}function lM(e,t){return re(1+La.count(wt(e),e),t,3)}function Jd(e,t){return re(e.getUTCMilliseconds(),t,3)}function fM(e,t){return Jd(e,t)+"000"}function hM(e,t){return re(e.getUTCMonth()+1,t,2)}function pM(e,t){return re(e.getUTCMinutes(),t,2)}function dM(e,t){return re(e.getUTCSeconds(),t,2)}function vM(e){var t=e.getUTCDay();return t===0?7:t}function yM(e,t){return re(Ra.count(wt(e)-1,e),t,2)}function Qd(e){var t=e.getUTCDay();return t>=4||t===0?yr(e):yr.ceil(e)}function gM(e,t){return e=Qd(e),re(yr.count(wt(e),e)+(wt(e).getUTCDay()===4),t,2)}function mM(e){return e.getUTCDay()}function bM(e,t){return re(Hi.count(wt(e)-1,e),t,2)}function xM(e,t){return re(e.getUTCFullYear()%100,t,2)}function wM(e,t){return e=Qd(e),re(e.getUTCFullYear()%100,t,2)}function OM(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function SM(e,t){var r=e.getUTCDay();return e=r>=4||r===0?yr(e):yr.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function AM(){return"+0000"}function df(){return"%"}function vf(e){return+e}function yf(e){return Math.floor(+e/1e3)}var er,ev,tv;_M({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 _M(e){return er=_j(e),ev=er.format,er.parse,tv=er.utcFormat,er.utcParse,er}function $M(e){return new Date(e)}function PM(e){return e instanceof Date?+e:+new Date(+e)}function Hc(e,t,r,n,i,a,o,u,c,s){var f=Cc(),l=f.invert,h=f.domain,p=s(".%L"),y=s(":%S"),v=s("%I:%M"),d=s("%I %p"),x=s("%a %d"),b=s("%b %d"),w=s("%B"),g=s("%Y");function m(O){return(c(O)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>pE(e,a/n))},r.copy=function(){return av(t).domain(e)},_t.apply(r,arguments)}function Wa(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Me,f,l=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*vt}var DM=kM,NM=sv,LM=DM,BM=Cr;function RM(e){return e&&e.length?NM(e,BM,LM):void 0}var FM=RM;const Ua=le(FM);function WM(e,t){return ee.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};U.decimalPlaces=U.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*se;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};U.dividedBy=U.div=function(e){return mt(this,new this.constructor(e))};U.dividedToIntegerBy=U.idiv=function(e){var t=this,r=t.constructor;return oe(mt(t,new r(e),0,1),r.precision)};U.equals=U.eq=function(e){return!this.cmp(e)};U.exponent=function(){return ve(this)};U.greaterThan=U.gt=function(e){return this.cmp(e)>0};U.greaterThanOrEqualTo=U.gte=function(e){return this.cmp(e)>=0};U.isInteger=U.isint=function(){return this.e>this.d.length-2};U.isNegative=U.isneg=function(){return this.s<0};U.isPositive=U.ispos=function(){return this.s>0};U.isZero=function(){return this.s===0};U.lessThan=U.lt=function(e){return this.cmp(e)<0};U.lessThanOrEqualTo=U.lte=function(e){return this.cmp(e)<1};U.logarithm=U.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Be))throw Error(Ve+"NaN");if(r.s<1)throw Error(Ve+(r.s?"NaN":"-Infinity"));return r.eq(Be)?new n(0):(fe=!1,t=mt(gn(r,a),gn(e,a),a),fe=!0,oe(t,i))};U.minus=U.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?pv(t,e):fv(t,(e.s=-e.s,e))};U.modulo=U.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ve+"NaN");return r.s?(fe=!1,t=mt(r,e,0,1).times(e),fe=!0,r.minus(t)):oe(new n(r),i)};U.naturalExponential=U.exp=function(){return hv(this)};U.naturalLogarithm=U.ln=function(){return gn(this)};U.negated=U.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};U.plus=U.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?fv(t,e):pv(t,(e.s=-e.s,e))};U.precision=U.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Gt+e);if(t=ve(i)+1,n=i.d.length-1,r=n*se+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};U.squareRoot=U.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(Ve+"NaN")}for(e=ve(u),fe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=ot(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Nr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(mt(u,a,o+2)).times(.5),ot(a.d).slice(0,o)===(t=ot(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(oe(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return fe=!0,oe(n,r)};U.times=U.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,h=f.d,p=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,c=h.length,s=p.length,c=0;){for(t=0,i=c+n;i>n;)u=a[i]+p[n]*h[i-n-1]+t,a[i--]=u%we|0,t=u/we|0;a[i]=(a[i]+t)%we|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,fe?oe(e,l.precision):e};U.toDecimalPlaces=U.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(st(e,0,Dr),t===void 0?t=n.rounding:st(t,0,8),oe(r,e+ve(r)+1,t))};U.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Xt(n,!0):(st(e,0,Dr),t===void 0?t=i.rounding:st(t,0,8),n=oe(new i(n),e+1,t),r=Xt(n,!0,e+1)),r};U.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Xt(i):(st(e,0,Dr),t===void 0?t=a.rounding:st(t,0,8),n=oe(new a(i),e+ve(i)+1,t),r=Xt(n.abs(),!1,e+ve(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};U.toInteger=U.toint=function(){var e=this,t=e.constructor;return oe(new t(e),ve(e)+1,t.rounding)};U.toNumber=function(){return+this};U.toPower=U.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(e=new c(e));if(!e.s)return new c(Be);if(u=new c(u),!u.s){if(e.s<1)throw Error(Ve+"Infinity");return u}if(u.eq(Be))return u;if(n=c.precision,e.eq(Be))return oe(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=lv){for(i=new c(Be),t=Math.ceil(n/se+4),fe=!1;r%2&&(i=i.times(u),bf(i.d,t)),r=Nr(r/2),r!==0;)u=u.times(u),bf(u.d,t);return fe=!0,e.s<0?new c(Be).div(i):oe(i,n)}}else if(a<0)throw Error(Ve+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,fe=!1,i=e.times(gn(u,n+s)),fe=!0,i=hv(i),i.s=a,i};U.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ve(i),n=Xt(i,r<=a.toExpNeg||r>=a.toExpPos)):(st(e,1,Dr),t===void 0?t=a.rounding:st(t,0,8),i=oe(new a(i),e,t),r=ve(i),n=Xt(i,e<=r||r<=a.toExpNeg,e)),n};U.toSignificantDigits=U.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(st(e,1,Dr),t===void 0?t=n.rounding:st(t,0,8)),oe(new n(r),e,t)};U.toString=U.valueOf=U.val=U.toJSON=U[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ve(e),r=e.constructor;return Xt(e,t<=r.toExpNeg||t>=r.toExpPos)};function fv(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),fe?oe(t,l):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(l/se),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/we|0,c[a]%=we;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,fe?oe(t,l):t}function st(e,t,r){if(e!==~~e||er)throw Error(Gt+e)}function ot(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(u=c=0;ui[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,h,p,y,v,d,x,b,w,g,m,O,S,A,j=n.constructor,E=n.s==i.s?1:-1,P=n.d,$=i.d;if(!n.s)return new j(n);if(!i.s)throw Error(Ve+"Division by zero");for(c=n.e-i.e,S=$.length,m=P.length,p=new j(E),y=p.d=[],s=0;$[s]==(P[s]||0);)++s;if($[s]>(P[s]||0)&&--c,a==null?b=a=j.precision:o?b=a+(ve(n)-ve(i))+1:b=a,b<0)return new j(0);if(b=b/se+2|0,s=0,S==1)for(f=0,$=$[0],b++;(s1&&($=e($,f),P=e(P,f),S=$.length,m=P.length),g=S,v=P.slice(0,S),d=v.length;d=we/2&&++O;do f=0,u=t($,v,S,d),u<0?(x=v[0],S!=d&&(x=x*we+(v[1]||0)),f=x/O|0,f>1?(f>=we&&(f=we-1),l=e($,f),h=l.length,d=v.length,u=t(l,v,h,d),u==1&&(f--,r(l,S16)throw Error(Vc+ve(e));if(!e.s)return new f(Be);for(t==null?(fe=!1,u=l):u=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Ft(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Be),f.precision=u;;){if(i=oe(i.times(e),u),r=r.times(++c),o=a.plus(mt(i,r,u)),ot(o.d).slice(0,u)===ot(a.d).slice(0,u)){for(;s--;)a=oe(a.times(a),u);return f.precision=l,t==null?(fe=!0,oe(a,l)):a}a=o}}function ve(e){for(var t=e.e*se,r=e.d[0];r>=10;r/=10)t++;return t}function Oo(e,t,r){if(t>e.LN10.sd())throw fe=!0,r&&(e.precision=r),Error(Ve+"LN10 precision limit exceeded");return oe(new e(e.LN10),t)}function Pt(e){for(var t="";e--;)t+="0";return t}function gn(e,t){var r,n,i,a,o,u,c,s,f,l=1,h=10,p=e,y=p.d,v=p.constructor,d=v.precision;if(p.s<1)throw Error(Ve+(p.s?"NaN":"-Infinity"));if(p.eq(Be))return new v(0);if(t==null?(fe=!1,s=d):s=t,p.eq(10))return t==null&&(fe=!0),Oo(v,s);if(s+=h,v.precision=s,r=ot(y),n=r.charAt(0),a=ve(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=ot(p.d),n=r.charAt(0),l++;a=ve(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return c=Oo(v,s+2,d).times(a+""),p=gn(new v(n+"."+r.slice(1)),s-h).plus(c),v.precision=d,t==null?(fe=!0,oe(p,d)):p;for(u=o=p=mt(p.minus(Be),p.plus(Be),s),f=oe(p.times(p),s),i=3;;){if(o=oe(o.times(f),s),c=u.plus(mt(o,new v(i),s)),ot(c.d).slice(0,s)===ot(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(Oo(v,s+2,d).times(a+""))),u=mt(u,new v(l),s),v.precision=d,t==null?(fe=!0,oe(u,d)):u;u=c,i+=2}}function mf(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Nr(r/se),e.d=[],n=(r+1)%se,r<0&&(n+=se),nGi||e.e<-Gi))throw Error(Vc+r)}else e.s=0,e.e=0,e.d=[0];return e}function oe(e,t,r){var n,i,a,o,u,c,s,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=se,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/se),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=se,i=n-se+o}if(r!==void 0&&(a=Ft(10,o-i-1),u=s/a%10|0,c=t<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/Ft(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=ve(e),l.length=1,t=t-a-1,l[0]=Ft(10,(se-t%se)%se),e.e=Nr(-t/se)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Ft(10,se-n),l[f]=i>0?(s/Ft(10,o-i)%Ft(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==we&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=we)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(fe&&(e.e>Gi||e.e<-Gi))throw Error(Vc+ve(e));return e}function pv(e,t){var r,n,i,a,o,u,c,s,f,l,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),fe?oe(t,p):t;if(c=e.d,l=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(p/se),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=l.length,f=i0;--i)c[u++]=0;for(i=l.length;i>o;){if(c[--i]0?a=a.charAt(0)+"."+a.slice(1)+Pt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Pt(-i-1)+a,r&&(n=r-o)>0&&(a+=Pt(n))):i>=o?(a+=Pt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Pt(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=Pt(n))),e.s<0?"-"+a:a}function bf(e,t){if(e.length>t)return e.length=t,!0}function dv(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){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(Gt+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 mf(o,a.toString())}else if(typeof a!="string")throw Error(Gt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,sC.test(a))mf(o,a);else throw Error(Gt+a)}if(i.prototype=U,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=dv,i.config=i.set=lC,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Gt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Gt+r+": "+n);return this}var Yc=dv(cC);Be=new Yc(1);const ae=Yc;function fC(e){return vC(e)||dC(e)||pC(e)||hC()}function hC(){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 pC(e,t){if(e){if(typeof e=="string")return du(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return du(e,t)}}function dC(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function vC(e){if(Array.isArray(e))return du(e)}function du(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,xf(function(){for(var u=arguments.length,c=new Array(u),s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function jC(e){if(Array.isArray(e))return e}function bv(e){var t=mn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function xv(e,t,r){if(e.lte(0))return new ae(0);var n=Ha.getDigitCount(e.toNumber()),i=new ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ae(Math.ceil(c))}function MC(e,t,r){var n=1,i=new ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ae(10).pow(Ha.getDigitCount(e)-1),i=new ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ae(Math.floor(e)))}else e===0?i=new ae(Math.floor((t-1)/2)):r||(i=new ae(Math.floor(e)));var o=Math.floor((t-1)/2),u=bC(mC(function(c){return i.add(new ae(c-o).mul(n)).toNumber()}),vu);return u(0,t)}function wv(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ae(0),tickMin:new ae(0),tickMax:new ae(0)};var a=xv(new ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ae(0):(o=new ae(e).add(t).div(2),o=o.sub(new ae(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ae(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?wv(e,t,r,n,i+1):(s0?c+(r-s):c,u=t>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ae(u).mul(a)),tickMax:o.add(new ae(c).mul(a))})}function CC(e){var t=mn(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=bv([r,n]),c=mn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(gu(vu(0,i-1).map(function(){return 1/0}))):[].concat(gu(vu(0,i-1).map(function(){return-1/0})),[f]);return r>n?yu(l):l}if(s===f)return MC(s,i,a);var h=wv(s,f,o,a),p=h.step,y=h.tickMin,v=h.tickMax,d=Ha.rangeStep(y,v.add(new ae(.1).mul(p)),p);return r>n?yu(d):d}function IC(e,t){var r=mn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=bv([n,i]),u=mn(o,2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,i];if(c===s)return[c];var f=Math.max(t,2),l=xv(new ae(s).sub(c).div(f-1),a,0),h=[].concat(gu(Ha.rangeStep(new ae(c),new ae(s).sub(new ae(.99).mul(l)),l)),[s]);return n>i?yu(h):h}var kC=gv(CC),DC=gv(IC),NC="Invariant failed";function Vt(e,t){if(!e)throw new Error(NC)}var LC=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qC(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Jn(e){var t=e.offset,r=e.layout,n=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,u=e.xAxis,c=e.yAxis,s=zC(e,LC),f=Q(s,!1);e.direction==="x"&&u.type!=="number"&&Vt(!1);var l=a.map(function(h){var p=o(h,i),y=p.x,v=p.y,d=p.value,x=p.errorVal;if(!x)return null;var b=[],w,g;if(Array.isArray(x)){var m=BC(x,2);w=m[0],g=m[1]}else w=g=x;if(r==="vertical"){var O=u.scale,S=v+t,A=S+n,j=S-n,E=O(d-w),P=O(d+g);b.push({x1:P,y1:A,x2:P,y2:j}),b.push({x1:E,y1:S,x2:P,y2:S}),b.push({x1:E,y1:A,x2:E,y2:j})}else if(r==="horizontal"){var $=c.scale,I=y+t,T=I-n,D=I+n,M=$(d-w),N=$(d+g);b.push({x1:T,y1:N,x2:D,y2:N}),b.push({x1:I,y1:M,x2:I,y2:N}),b.push({x1:T,y1:M,x2:D,y2:M})}return _.createElement(pe,Xi({className:"recharts-errorBar",key:"bar-".concat(b.map(function(B){return"".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))},f),b.map(function(B){return _.createElement("line",Xi({},B,{key:"line-".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))}))});return _.createElement(pe,{className:"recharts-errorBars"},l)}Jn.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Jn.displayName="ErrorBar";function bn(e){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(e)}function Of(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function So(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,p=void 0;if(rt(l-f)!==rt(h-l)){var y=[];if(rt(h-l)===rt(c[1]-c[0])){p=h;var v=l+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var d=h+c[1]-c[0];y[0]=Math.min(l,(d+l)/2),y[1]=Math.max(l,(d+l)/2)}var x=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>x[0]&&t<=x[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var b=Math.min(f,h),w=Math.max(f,h);if(t>(b+l)/2&&t<=(w+l)/2){o=i[s].index;break}}}else for(var g=0;g0&&g(n[g].coordinate+n[g-1].coordinate)/2&&t<=(n[g].coordinate+n[g+1].coordinate)/2||g===u-1&&t>(n[g].coordinate+n[g-1].coordinate)/2){o=n[g].index;break}return o},Zc=function(t){var r=t,n=r.type.displayName,i=t.props,a=i.stroke,o=i.fill,u;switch(n){case"Line":u=a;break;case"Area":case"Radar":u=a&&a!=="none"?a:o;break;default:u=o;break}return u},tI=function(t){var r=t.barSize,n=t.stackGroups,i=n===void 0?{}:n;if(!i)return{};for(var a={},o=Object.keys(i),u=0,c=o.length;u=0});if(d&&d.length){var x=d[0].props.barSize,b=d[0].props[v];a[b]||(a[b]=[]),a[b].push({item:d[0],stackList:d.slice(1),barSize:ee(x)?r:x})}}return a},rI=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var s=cr(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/c,y=o.reduce(function(g,m){return g+m.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&p>0&&(h=!0,p*=.9,y=c*p);var v=(i-y)/2>>0,d={offset:v-s,size:0};f=o.reduce(function(g,m){var O={item:m.item,position:{offset:d.offset+d.size+s,size:h?p:m.barSize}},S=[].concat(Af(g),[O]);return d=S[S.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){S.push({item:A,position:d})}),S},l)}else{var x=cr(n,i,0,!0);i-2*x-(c-1)*s<=0&&(s=0);var b=(i-2*x-(c-1)*s)/c;b>1&&(b>>=0);var w=u===+u?Math.min(b,u):b;f=o.reduce(function(g,m,O){var S=[].concat(Af(g),[{item:m.item,position:{offset:x+(b+s)*O+(b-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},l)}return f},nI=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=Ov({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,h=f.height,p=s.align,y=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&F(t[p]))return Ke(Ke({},t),{},ur({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&F(t[y]))return Ke(Ke({},t),{},ur({},y,t[y]+(h||0)))}return t},iI=function(t,r,n){return ee(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Sv=function(t,r,n,i,a){var o=r.props.children,u=Xe(o,Jn).filter(function(s){return iI(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var l=Re(f,n,0),h=Array.isArray(l)?[za(l),Ua(l)]:[l,l],p=c.reduce(function(y,v){var d=Re(f,v,0),x=h[0]-Math.abs(Array.isArray(d)?d[0]:d),b=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(x,y[0]),Math.max(b,y[1])]},[1/0,-1/0]);return[Math.min(p[0],s[0]),Math.max(p[1],s[1])]},[1/0,-1/0])}return null},aI=function(t,r,n,i,a){var o=r.map(function(u){return Sv(t,u,n,a,i)}).filter(function(u){return!ee(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},Av=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&Sv(t,c,s,i)||Qr(t,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f=2?rt(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!Kn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},Ao=new WeakMap,fi=function(t,r){if(typeof r!="function")return t;Ao.has(t)||Ao.set(t,new WeakMap);var n=Ao.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},oI=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:hn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:zi(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Jr(),realScaleType:"point"}:a==="category"?{scale:hn(),realScaleType:"band"}:{scale:zi(),realScaleType:"linear"};if(qn(i)){var c="scale".concat(ja(i));return{scale:(gf[c]||Jr)(),realScaleType:gf[c]?c:"point"}}return J(i)?{scale:i}:{scale:Jr(),realScaleType:"point"}},_f=1e-4,uI=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-_f,o=Math.max(i[0],i[1])+_f,u=t(r[0]),c=t(r[n-1]);(uo||co)&&t.domain([r[0],r[n-1]])}},cI=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},fI=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},hI={sign:lI,expand:Wx,none:sr,silhouette:Ux,wiggle:zx,positive:fI},pI=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=hI[n],o=Fx().keys(i).value(function(u,c){return+Re(u,c,0)}).order(Go).offset(a);return o(t)},dI=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,h){var p=h.props,y=p.stackId,v=p.hide;if(v)return l;var d=h.props[n],x=l[d]||{hasStack:!1,stackGroups:{}};if(me(y)){var b=x.stackGroups[y]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),x.hasStack=!0,x.stackGroups[y]=b}else x.stackGroups[Hn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return Ke(Ke({},l),{},ur({},d,x))},c),f={};return Object.keys(s).reduce(function(l,h){var p=s[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,d){var x=p.stackGroups[d];return Ke(Ke({},v),{},ur({},d,{numericAxisId:n,cateAxisId:i,items:x.items,stackedData:pI(t,x.items,a)}))},y)}return Ke(Ke({},l),{},ur({},h,p))},f)},vI=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=kC(s,a,u);return t.domain([za(f),Ua(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=DC(l,a,u);return{niceTicks:h}}return null};function $f(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ee(i[t.dataKey])){var u=bi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Re(i,ee(o)?t.dataKey:o);return ee(c)?null:t.scale(c)}var Pf=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=Re(o,r.dataKey,r.domain[u]);return ee(c)?null:r.scale(c)-a/2+i},yI=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},gI=function(t,r){var n=t.props.stackId;if(me(n)){var i=r[n];if(i){var a=i.items.indexOf(t);return a>=0?i.stackedData[a]:null}}return null},mI=function(t){return t.reduce(function(r,n){return[za(n.concat([r[0]]).filter(F)),Ua(n.concat([r[1]]).filter(F))]},[1/0,-1/0])},$v=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(s,f){var l=mI(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Tf=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ef=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,xu=function(t,r,n){if(J(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(F(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Tf.test(t[0])){var a=+Tf.exec(t[0])[1];i[0]=r[0]-a}else J(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(F(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Ef.test(t[1])){var o=+Ef.exec(t[1])[1];i[1]=r[1]+o}else J(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Vi=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=_c(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;uo&&(s=2*Math.PI-s),{radius:u,angle:OI(s),angleInRadian:s}},_I=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},$I=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},If=function(t,r){var n=t.x,i=t.y,a=AI({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,s=r.outerRadius;if(os)return!1;if(o===0)return!0;var f=_I(r),l=f.startAngle,h=f.endAngle,p=u,y;if(l<=h){for(;p>h;)p-=360;for(;p=l&&p<=h}else{for(;p>l;)p-=360;for(;p=h&&p<=l}return y?Cf(Cf({},r),{},{radius:o,angle:$I(p,r)}):null};function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}var PI=["offset"];function TI(e){return CI(e)||MI(e)||jI(e)||EI()}function EI(){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 jI(e,t){if(e){if(typeof e=="string")return wu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wu(e,t)}}function MI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CI(e){if(Array.isArray(e))return wu(e)}function wu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function kf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t=0?1:-1,w,g;i==="insideStart"?(w=p+b*o,g=v):i==="insideEnd"?(w=y-b*o,g=!v):i==="end"&&(w=y+b*o,g=v),g=x<=0?g:!g;var m=_e(s,f,d,w),O=_e(s,f,d,w+(g?1:-1)*359),S="M".concat(m.x,",").concat(m.y,` + A`).concat(d,",").concat(d,",0,1,").concat(g?0:1,`, + `).concat(O.x,",").concat(O.y),A=ee(t.id)?Hn("recharts-radial-line-"):t.id;return _.createElement("text",Sn({},n,{dominantBaseline:"central",className:ne("recharts-radial-bar-label",u)}),_.createElement("defs",null,_.createElement("path",{id:A,d:S})),_.createElement("textPath",{xlinkHref:"#".concat(A)},r))},WI=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var p=_e(o,u,s+n,h),y=p.x,v=p.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var d=(c+s)/2,x=_e(o,u,d,h),b=x.x,w=x.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},UI=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,h=l*i,p=l>0?"end":"start",y=l>0?"start":"end",v=s>=0?1:-1,d=v*i,x=v>0?"end":"start",b=v>0?"start":"end";if(a==="top"){var w={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:p};return ge(ge({},w),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var g={x:u+s/2,y:c+f+h,textAnchor:"middle",verticalAnchor:y};return ge(ge({},g),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return ge(ge({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var O={x:u+s+d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return ge(ge({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:f}:{})}var S=n?{width:s,height:f}:{};return a==="insideLeft"?ge({x:u+d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},S):a==="insideRight"?ge({x:u+s-d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},S):a==="insideTop"?ge({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?ge({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?ge({x:u+d,y:c+h,textAnchor:b,verticalAnchor:y},S):a==="insideTopRight"?ge({x:u+s-d,y:c+h,textAnchor:x,verticalAnchor:y},S):a==="insideBottomLeft"?ge({x:u+d,y:c+f-h,textAnchor:b,verticalAnchor:p},S):a==="insideBottomRight"?ge({x:u+s-d,y:c+f-h,textAnchor:x,verticalAnchor:p},S):$r(a)&&(F(a.x)||Wt(a.x))&&(F(a.y)||Wt(a.y))?ge({x:u+cr(a.x,s),y:c+cr(a.y,f),textAnchor:"end",verticalAnchor:"end"},S):ge({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},S)},zI=function(t){return"cx"in t&&F(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=II(e,PI),i=ge({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||ee(u)&&ee(c)&&!L.isValidElement(s)&&!J(s))return null;if(L.isValidElement(s))return L.cloneElement(s,i);var p;if(J(s)){if(p=L.createElement(s,i),L.isValidElement(p))return p}else p=BI(i);var y=zI(a),v=Q(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return FI(i,p,v);var d=y?WI(i):UI(i);return _.createElement(Di,Sn({className:ne("recharts-label",l)},v,d,{breakAll:h}),p)}Ee.displayName="Label";var Tv=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,s=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,p=t.top,y=t.left,v=t.width,d=t.height,x=t.clockWise,b=t.labelViewBox;if(b)return b;if(F(v)&&F(d)){if(F(l)&&F(h))return{x:l,y:h,width:v,height:d};if(F(p)&&F(y))return{x:p,y,width:v,height:d}}return F(l)&&F(h)?{x:l,y:h,width:0,height:0}:F(r)&&F(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:x}:t.viewBox?t.viewBox:{}},qI=function(t,r){return t?t===!0?_.createElement(Ee,{key:"label-implicit",viewBox:r}):me(t)?_.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):L.isValidElement(t)?t.type===Ee?L.cloneElement(t,{key:"label-implicit",viewBox:r}):_.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):J(t)?_.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):$r(t)?_.createElement(Ee,Sn({viewBox:r},t,{key:"label-implicit"})):null:null},KI=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=Tv(t),o=Xe(i,Ee).map(function(c,s){return L.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=qI(t.label,r||a);return[u].concat(TI(o))};Ee.parseViewBox=Tv;Ee.renderCallByParent=KI;function HI(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var GI=HI;const XI=le(GI);function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(e)}var VI=["valueAccessor"],YI=["data","dataKey","clockWise","id","textBreakAll"];function ZI(e){return t2(e)||e2(e)||QI(e)||JI()}function JI(){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 QI(e,t){if(e){if(typeof e=="string")return Ou(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ou(e,t)}}function e2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function t2(e){if(Array.isArray(e))return Ou(e)}function Ou(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a2(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var o2=function(t){return Array.isArray(t.value)?XI(t.value):t.value};function jt(e){var t=e.valueAccessor,r=t===void 0?o2:t,n=Lf(e,VI),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=Lf(n,YI);return!i||!i.length?null:_.createElement(pe,{className:"recharts-label-list"},i.map(function(f,l){var h=ee(a)?r(f,l):Re(f&&f.payload,a),p=ee(u)?{}:{id:"".concat(u,"-").concat(l)};return _.createElement(Ee,Zi({},Q(f,!0),s,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Ee.parseViewBox(ee(o)?f:Nf(Nf({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}jt.displayName="LabelList";function u2(e,t){return e?e===!0?_.createElement(jt,{key:"labelList-implicit",data:t}):_.isValidElement(e)||J(e)?_.createElement(jt,{key:"labelList-implicit",data:t,content:e}):$r(e)?_.createElement(jt,Zi({data:t},e,{key:"labelList-implicit"})):null:null}function c2(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Xe(n,jt).map(function(o,u){return L.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=u2(e.label,t);return[a].concat(ZI(i))}jt.renderCallByParent=c2;function _n(e){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(e)}function Su(){return Su=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>s),`, + `).concat(l.x,",").concat(l.y,` + `);if(i>0){var p=_e(r,n,i,o),y=_e(r,n,i,s);h+="L ".concat(y.x,",").concat(y.y,` + A `).concat(i,",").concat(i,`,0, + `).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`, + `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},p2=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,l=rt(f-s),h=hi({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),p=h.circleTangency,y=h.lineTangency,v=h.theta,d=hi({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),x=d.circleTangency,b=d.lineTangency,w=d.theta,g=c?Math.abs(s-f):Math.abs(s-f)-v-w;if(g<0)return u?"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 + `):Ev({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,` + A`).concat(a,",").concat(a,",0,").concat(+(g>180),",").concat(+(l<0),",").concat(x.x,",").concat(x.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(b.x,",").concat(b.y,` + `);if(i>0){var O=hi({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),S=O.circleTangency,A=O.lineTangency,j=O.theta,E=hi({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),P=E.circleTangency,$=E.lineTangency,I=E.theta,T=c?Math.abs(s-f):Math.abs(s-f)-j-I;if(T<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat($.x,",").concat($.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(P.x,",").concat(P.y,` + A`).concat(i,",").concat(i,",0,").concat(+(T>180),",").concat(+(l>0),",").concat(S.x,",").concat(S.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},d2={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},jv=function(t){var r=Rf(Rf({},d2),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o0&&Math.abs(f-l)<360?d=p2({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):d=Ev({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),_.createElement("path",Su({},Q(r,!0),{className:p,d,role:"img"}))};function $n(e){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$n(e)}function Au(){return Au=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function T2(e,t){return Lr(e.getTime(),t.getTime())}function Yf(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),a=0,o,u;(o=i.next())&&!o.done;){for(var c=t.entries(),s=!1,f=0;(u=c.next())&&!u.done;){var l=o.value,h=l[0],p=l[1],y=u.value,v=y[0],d=y[1];!s&&!n[f]&&(s=r.equals(h,v,a,f,e,t,r)&&r.equals(p,d,h,v,e,t,r))&&(n[f]=!0),f++}if(!s)return!1;a++}return!0}function E2(e,t,r){var n=Vf(e),i=n.length;if(Vf(t).length!==i)return!1;for(var a;i-- >0;)if(a=n[i],a===Cv&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Mv(t,a)||!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function Gr(e,t,r){var n=Gf(e),i=n.length;if(Gf(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],a===Cv&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Mv(t,a)||!r.equals(e[a],t[a],a,a,e,t,r)||(o=Xf(e,a),u=Xf(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function j2(e,t){return Lr(e.valueOf(),t.valueOf())}function M2(e,t){return e.source===t.source&&e.flags===t.flags}function Zf(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var u=t.values(),c=!1,s=0;(o=u.next())&&!o.done;)!c&&!n[s]&&(c=r.equals(a.value,o.value,a.value,o.value,e,t,r))&&(n[s]=!0),s++;if(!c)return!1}return!0}function C2(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var I2="[object Arguments]",k2="[object Boolean]",D2="[object Date]",N2="[object Map]",L2="[object Number]",B2="[object Object]",R2="[object RegExp]",F2="[object Set]",W2="[object String]",U2=Array.isArray,Jf=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Qf=Object.assign,z2=Object.prototype.toString.call.bind(Object.prototype.toString);function q2(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,u=e.areSetsEqual,c=e.areTypedArraysEqual;return function(f,l,h){if(f===l)return!0;if(f==null||l==null||typeof f!="object"||typeof l!="object")return f!==f&&l!==l;var p=f.constructor;if(p!==l.constructor)return!1;if(p===Object)return i(f,l,h);if(U2(f))return t(f,l,h);if(Jf!=null&&Jf(f))return c(f,l,h);if(p===Date)return r(f,l,h);if(p===RegExp)return o(f,l,h);if(p===Map)return n(f,l,h);if(p===Set)return u(f,l,h);var y=z2(f);return y===D2?r(f,l,h):y===R2?o(f,l,h):y===N2?n(f,l,h):y===F2?u(f,l,h):y===B2?typeof f.then!="function"&&typeof l.then!="function"&&i(f,l,h):y===I2?i(f,l,h):y===k2||y===L2||y===W2?a(f,l,h):!1}}function K2(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Gr:P2,areDatesEqual:T2,areMapsEqual:n?Hf(Yf,Gr):Yf,areObjectsEqual:n?Gr:E2,arePrimitiveWrappersEqual:j2,areRegExpsEqual:M2,areSetsEqual:n?Hf(Zf,Gr):Zf,areTypedArraysEqual:n?Gr:C2};if(r&&(i=Qf({},i,r(i))),t){var a=di(i.areArraysEqual),o=di(i.areMapsEqual),u=di(i.areObjectsEqual),c=di(i.areSetsEqual);i=Qf({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:c})}return i}function H2(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function G2(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(c,s){var f=n(),l=f.cache,h=l===void 0?t?new WeakMap:void 0:l,p=f.meta;return r(c,s,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(c,s){return r(c,s,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(c,s){return r(c,s,o)}}var X2=It();It({strict:!0});It({circular:!0});It({circular:!0,strict:!0});It({createInternalComparator:function(){return Lr}});It({strict:!0,createInternalComparator:function(){return Lr}});It({circular:!0,createInternalComparator:function(){return Lr}});It({circular:!0,createInternalComparator:function(){return Lr},strict:!0});function It(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,u=K2(e),c=q2(u),s=n?n(c):H2(c);return G2({circular:r,comparator:c,createState:i,equals:s,strict:o})}function V2(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function eh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):V2(i)};requestAnimationFrame(n)}function $u(e){"@babel/helpers - typeof";return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(e)}function Y2(e){return ek(e)||Q2(e)||J2(e)||Z2()}function Z2(){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 J2(e,t){if(e){if(typeof e=="string")return th(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return th(e,t)}}function th(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:x<0?0:x},v=function(x){for(var b=x>1?1:x,w=b,g=0;g<8;++g){var m=l(w)-b,O=p(w);if(Math.abs(m-b)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,l,h){var p=-(f-l)*n,y=h*a,v=h+(p-y)*u/1e3,d=h*u/1e3+f;return Math.abs(d-l)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mk(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function To(e){return Dk(e)||kk(e)||Ik(e)||Ck()}function Ck(){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 Ik(e,t){if(e){if(typeof e=="string")return Mu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mu(e,t)}}function kk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dk(e){if(Array.isArray(e))return Mu(e)}function Mu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ea(e)}var Ot=function(e){Rk(r,e);var t=Fk(r);function r(n,i){var a;Nk(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(ku(a)),a.changeStyle=a.changeStyle.bind(ku(a)),!u||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Iu(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},Iu(a);a.state={style:c?Vr({},c,s):s}}else a.state={style:{}};return a}return Lk(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var p={style:c?Vr({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(p);return}if(!(X2(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||s?l:i.to;if(this.state&&h){var d={style:c?Vr({},c,v):v};(c&&[c]!==v||!c&&h!==v)&&this.setState(d)}this.runAnimation(Ze(Ze({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,s=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,p=Tk(o,u,gk(s),c,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,f,y,c,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,s=o[0],f=s.style,l=s.duration,h=l===void 0?0:l,p=function(v,d,x){if(x===0)return v;var b=d.duration,w=d.easing,g=w===void 0?"ease":w,m=d.style,O=d.properties,S=d.onAnimationEnd,A=x>0?o[x-1]:d,j=O||Object.keys(m);if(typeof g=="function"||g==="spring")return[].concat(To(v),[a.runJSAnimation.bind(a,{from:A.style,to:m,duration:b,easing:g}),b]);var E=ih(j,b,g),P=Ze(Ze(Ze({},A.style),m),{},{transition:E});return[].concat(To(v),[P,b,S]).filter(ak)};return this.manager.start([c].concat(To(o.reduce(p,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=tk());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof p=="function"||s==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?Vr({},u,c):c,d=ih(Object.keys(v),o,s);y.start([f,a,Ze(Ze({},v),{},{transition:d}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=jk(i,Ek),s=L.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(p){var y=p.props,v=y.style,d=v===void 0?{}:v,x=y.className,b=L.cloneElement(p,Ze(Ze({},c),{},{style:Ze(Ze({},d),f),className:x}));return b};return s===1?l(L.Children.only(a)):_.createElement("div",null,L.Children.map(a,function(h){return l(h)}))}}]),r}(L.PureComponent);Ot.displayName="Animate";Ot.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ot.propTypes={from:G.oneOfType([G.object,G.string]),to:G.oneOfType([G.object,G.string]),attributeName:G.string,duration:G.number,begin:G.number,easing:G.oneOfType([G.string,G.func]),steps:G.arrayOf(G.shape({duration:G.number.isRequired,style:G.object.isRequired,easing:G.oneOfType([G.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),G.func]),properties:G.arrayOf("string"),onAnimationEnd:G.func})),children:G.oneOfType([G.node,G.func]),isActive:G.bool,canBegin:G.bool,onAnimationEnd:G.func,shouldReAnimate:G.bool,onAnimationStart:G.func,onAnimationReStart:G.func};function a3(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}G.object,G.object,G.object,G.element;G.object,G.object,G.object,G.oneOfType([G.array,G.element]),G.any;function En(e){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],h=0,p=4;ho?o:a[h];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(r)),f+="L ".concat(t+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`, + `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,`, + `).concat(t+n-c*l[2],",").concat(r+i)),f+="L ".concat(t+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`, + `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,` + A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+c*y,",").concat(r,` + L `).concat(t+n-c*y,",").concat(r,` + A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*y,` + L `).concat(t+n,",").concat(r+i-u*y,` + A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,` + L `).concat(t+c*y,",").concat(r+i,` + A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},Yk=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),h=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=h}return!1},Zk={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Jc=function(t){var r=ph(ph({},Zk),t),n=L.useRef(),i=L.useState(-1),a=Uk(i,2),o=a[0],u=a[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var g=n.current.getTotalLength();g&&u(g)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,h=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,x=r.isAnimationActive,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=ne("recharts-rectangle",p);return b?_.createElement(Ot,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:v,animationEasing:y,isActive:b},function(g){var m=g.width,O=g.height,S=g.x,A=g.y;return _.createElement(Ot,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,isActive:x,easing:y},_.createElement("path",ta({},Q(r,!0),{className:w,d:dh(S,A,m,O,h),ref:n})))}):_.createElement("path",ta({},Q(r,!0),{className:w,d:dh(c,s,f,l,h)}))};function Du(){return Du=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iD(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var aD=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},oD=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,s=c===void 0?0:c,f=t.width,l=f===void 0?0:f,h=t.height,p=h===void 0?0:h,y=t.className,v=nD(t,Jk),d=Qk({x:n,y:a,top:u,left:s,width:l,height:p},v);return!F(n)||!F(a)||!F(l)||!F(p)||!F(u)||!F(s)?null:_.createElement("path",Nu({},Q(d,!0),{className:ne("recharts-cross",y),d:aD(n,a,l,p,u,s)}))},uD=nd,cD=uD(Object.getPrototypeOf,Object),Rv=cD,sD=St,lD=Rv,fD=At,hD="[object Object]",pD=Function.prototype,dD=Object.prototype,Fv=pD.toString,vD=dD.hasOwnProperty,yD=Fv.call(Object);function gD(e){if(!fD(e)||sD(e)!=hD)return!1;var t=lD(e);if(t===null)return!0;var r=vD.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Fv.call(r)==yD}var mD=gD;const bD=le(mD);var xD=St,wD=At,OD="[object Boolean]";function SD(e){return e===!0||e===!1||wD(e)&&xD(e)==OD}var AD=SD;const _D=le(AD);function Mn(e){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(e)}function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:h,x:c,y:s},duration:v,animationEasing:y,isActive:x},function(w){var g=w.upperWidth,m=w.lowerWidth,O=w.height,S=w.x,A=w.y;return _.createElement(Ot,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,easing:y},_.createElement("path",ra({},Q(r,!0),{className:b,d:bh(S,A,g,m,O),ref:n})))}):_.createElement("g",null,_.createElement("path",ra({},Q(r,!0),{className:b,d:bh(c,s,f,l,h)})))},ND=["option","shapeType","propTransformer","activeClassName","isActive"];function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}function LD(e,t){if(e==null)return{};var r=BD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BD(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function xh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function na(e){for(var t=1;t0&&n.handleDrag(i.changedTouches[0])}),Ne(at(n),"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Ne(at(n),"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ne(at(n),"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ne(at(n),"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ne(at(n),"handleSlideDragStart",function(i){var a=Ph(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(at(n),"startX"),endX:n.handleTravellerDragStart.bind(at(n),"endX")},n.state={},n}return bN(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,l),y=t.getIndexInRange(o,h);return{startIndex:p-p%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=Re(a[n],u,n);return J(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,h=c.startIndex,p=c.endIndex,y=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-l-u,s+f-l-o):v<0&&(v=Math.max(v,s-o,s-u));var d=this.getIndex({startX:o+v,endX:u+v});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Ph(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,s=this.state[o],f=this.props,l=f.x,h=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,d=f.data,x={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,l+h-p-s):b<0&&(b=Math.max(b,l-s)),x[o]=s+b;var w=this.getIndex(x),g=w.startIndex,m=w.endIndex,O=function(){var A=d.length-1;return o==="startX"&&(u>c?g%v===0:m%v===0)||uc?m%v===0:g%v===0)||u>c&&m===A};this.setState(Ne(Ne({},o,s+b),"brushMoveStartX",n.pageX),function(){y&&O()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var p=u[h];i==="startX"&&p>=s||i==="endX"&&p<=c||this.setState(Ne({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,s=n.stroke;return _.createElement("rect",{stroke:s,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,s=n.children,f=n.padding,l=L.Children.only(s);return l?_.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a=this,o=this.props,u=o.y,c=o.travellerWidth,s=o.height,f=o.traveller,l=o.ariaLabel,h=o.data,p=o.startIndex,y=o.endIndex,v=Math.max(n,this.props.x),d=jo(jo({},Q(this.props,!1)),{},{x:v,y:u,width:c,height:s}),x=l||"Min value: ".concat(h[p].name,", Max value: ").concat(h[y].name);return _.createElement(pe,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),a.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,i))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,d))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return _.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,h=f.endX,p=5,y={pointerEvents:"none",fill:s};return _.createElement(pe,{className:"recharts-brush-texts"},_.createElement(Di,aa({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-p,y:o+u/2},y),this.getTextOfTick(i)),_.createElement(Di,aa({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+p,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,v=h.isTextActive,d=h.isSlideMoving,x=h.isTravellerMoving,b=h.isTravellerFocused;if(!i||!i.length||!F(u)||!F(c)||!F(s)||!F(f)||s<=0||f<=0)return null;var w=ne("recharts-brush",a),g=_.Children.count(o)===1,m=gN("userSelect","none");return _.createElement(pe,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||d||x||b||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return _.createElement(_.Fragment,null,_.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),_.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),_.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return _.isValidElement(n)?a=_.cloneElement(n,i):J(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return jo({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?AN({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}]),t}(L.PureComponent);Ne(br,"displayName","Brush");Ne(br,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var _N=Ac;function $N(e,t){var r;return _N(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var PN=$N,TN=Gp,EN=Ir,jN=PN,MN=Ie,CN=Da;function IN(e,t,r){var n=MN(e)?TN:jN;return r&&CN(e,t,r)&&(t=void 0),n(e,EN(t))}var kN=IN;const DN=le(kN);var ct=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Th=gd;function NN(e,t,r){t=="__proto__"&&Th?Th(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var es=NN,LN=es,BN=dd,RN=Ir;function FN(e,t){var r={};return t=RN(t),BN(e,function(n,i,a){LN(r,i,t(n,i,a))}),r}var WN=FN;const UN=le(WN);function zN(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uL(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function cL(e,t){var r=e.x,n=e.y,i=oL(e,rL),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),l="".concat(t.width||i.width),h=parseInt(l,10);return Xr(Xr(Xr(Xr(Xr({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function jh(e){return _.createElement(KD,Bu({shapeType:"rectangle",propTransformer:cL,activeClassName:"recharts-active-bar"},e))}var sL=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=typeof n=="number";return a?t(n,i):(a||Vt(!1),r)}},lL=["value","background"],qv;function xr(e){"@babel/helpers - typeof";return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xr(e)}function fL(e,t){if(e==null)return{};var r=hL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hL(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(T)0&&Math.abs(I)0&&(I=Math.min(($e||0)-(T[Pe-1]||0),I))});var D=I/$,M=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(S=D*M/2),v.padding==="no-gap"){var N=cr(t.barCategoryGap,D*M),B=D*M/2;S=B-N-(B-N)/M*N}}i==="xAxis"?A=[n.left+(w.left||0)+(S||0),n.left+n.width-(w.right||0)-(S||0)]:i==="yAxis"?A=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(S||0),n.top+n.height-(w.bottom||0)-(S||0)]:A=v.range,m&&(A=[A[1],A[0]]);var R=oI(v,a,h),K=R.scale,X=R.realScaleType;K.domain(x).range(A),uI(K);var z=vI(K,Je(Je({},v),{},{realScaleType:X}));i==="xAxis"?(P=d==="top"&&!g||d==="bottom"&&g,j=n.left,E=l[O]-P*v.height):i==="yAxis"&&(P=d==="left"&&!g||d==="right"&&g,j=l[O]-P*v.width,E=n.top);var Z=Je(Je(Je({},v),z),{},{realScaleType:X,x:j,y:E,scale:K,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return Z.bandSize=Vi(Z,z),!v.hide&&i==="xAxis"?l[O]+=(P?-1:1)*Z.height:v.hide||(l[O]+=(P?-1:1)*Z.width),Je(Je({},p),{},Va({},y,Z))},{})},Vv=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},OL=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Vv({x:r,y:n},{x:i,y:a})},Yv=function(){function e(t){bL(this,e),this.scale=t}return xL(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}]),e}();Va(Yv,"EPS",1e-4);var ts=function(t){var r=Object.keys(t).reduce(function(n,i){return Je(Je({},n),{},Va({},i,Yv.create(t[i])))},{});return Je(Je({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return UN(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return tL(i,function(a,o){return r[o].isInRange(a)})}})};function SL(e){return(e%180+180)%180}var AL=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=SL(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function VL(e,t){return uy(e,t+1)}function YL(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,s=1,f=o,l=function(){var y=n?.[c];if(y===void 0)return{v:uy(n,s)};var v=c,d,x=function(){return d===void 0&&(d=r(y,v)),d},b=y.coordinate,w=c===0||sa(e,b,x,f,u);w||(c=0,f=o,s+=1),w&&(f=b+e*(x()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}function Fn(e){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}function zh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t0?p.coordinate-d*e:p.coordinate})}else a[h]=p=Te(Te({},p),{},{tickCoord:p.coordinate});var x=sa(e,p.tickCoord,v,u,c);x&&(c=p.tickCoord-e*(v()/2+i),a[h]=Te(Te({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function tB(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,s=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-s);o[u-1]=f=Te(Te({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=sa(e,f.tickCoord,function(){return l},c,s);p&&(s=f.tickCoord-e*(l/2+i),o[u-1]=Te(Te({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(b){var w=o[b],g,m=function(){return g===void 0&&(g=r(w,b)),g};if(b===0){var O=e*(w.coordinate-e*m()/2-c);o[b]=w=Te(Te({},w),{},{tickCoord:O<0?w.coordinate-O*e:w.coordinate})}else o[b]=w=Te(Te({},w),{},{tickCoord:w.coordinate});var S=sa(e,w.tickCoord,m,c,s);S&&(c=w.tickCoord+e*(m()/2+i),o[b]=Te(Te({},w),{},{isShow:!0}))},d=0;d=2?rt(i[1].coordinate-i[0].coordinate):1,x=XL(a,d,p);return c==="equidistantPreserveStart"?YL(d,x,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=tB(d,x,v,i,o,c==="preserveStartEnd"):h=eB(d,x,v,i,o),h.filter(function(b){return b.isShow}))}var nB=["viewBox"],iB=["viewBox"],aB=["ticks"];function wr(e){"@babel/helpers - typeof";return wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(e)}function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oB(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function uB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kh(e,t){for(var r=0;r0?c(this.props):c(p)),o<=0||u<=0||!y||!y.length?null:_.createElement(pe,{className:ne("recharts-cartesian-axis",s),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return _.isValidElement(n)?o=_.cloneElement(n,i):J(n)?o=n(i):o=_.createElement(Di,ir({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}]),t}(L.Component);ns(Ya,"displayName","CartesianAxis");ns(Ya,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var dB=["type","layout","connectNulls","ref"];function Or(e){"@babel/helpers - typeof";return Or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Or(e)}function vB(e,t){if(e==null)return{};var r=yB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yB(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rl){p=[].concat(tr(c.slice(0,y)),[l-v]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(tr(t.repeat(c,f)),tr(p),d).map(function(x){return"".concat(x,"px")}).join(", ")}),Qe($t(r),"id",Hn("recharts-line-")),Qe($t(r),"pathRef",function(o){r.mainCurve=o}),Qe($t(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Qe($t(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return OB(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=Xe(f,Jn);if(!l)return null;var h=function(v,d){return{x:v.x,y:v.y,value:v.value,errorVal:Re(v.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return _.createElement(pe,p,l.map(function(y){return _.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,c=u.dot,s=u.points,f=u.dataKey,l=Q(this.props,!1),h=Q(c,!0),p=s.map(function(v,d){var x=De(De(De({key:"dot-".concat(d),r:3},l),h),{},{value:v.value,dataKey:f,cx:v.x,cy:v.y,index:d,payload:v.payload});return t.renderDotItem(c,x)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return _.createElement(pe,tn({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,c=u.type,s=u.layout,f=u.connectNulls;u.ref;var l=vB(u,dB),h=De(De(De({},Q(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:s,connectNulls:f});return _.createElement(_u,tn({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.strokeDasharray,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,v=o.width,d=o.height,x=this.state,b=x.prevPoints,w=x.totalLength;return _.createElement(Ot,{begin:f,duration:l,isActive:s,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var m=g.t;if(b){var O=b.length/u.length,S=u.map(function($,I){var T=Math.floor(I*O);if(b[T]){var D=b[T],M=et(D.x,$.x),N=et(D.y,$.y);return De(De({},$),{},{x:M(m),y:N(m)})}if(y){var B=et(v*2,$.x),R=et(d/2,$.y);return De(De({},$),{},{x:B(m),y:R(m)})}return De(De({},$),{},{x:$.x,y:$.y})});return a.renderCurveStatically(S,n,i)}var A=et(0,w),j=A(m),E;if(c){var P="".concat(c).split(/[,\s]+/gim).map(function($){return parseFloat($)});E=a.getStrokeDasharray(j,w,P)}else E=a.generateSimpleStrokeDasharray(w,j);return a.renderCurveStatically(u,n,i,{strokeDasharray:E})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,c=this.state,s=c.prevPoints,f=c.totalLength;return u&&o&&o.length&&(!s&&f>0||!qa(s,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,s=i.xAxis,f=i.yAxis,l=i.top,h=i.left,p=i.width,y=i.height,v=i.isAnimationActive,d=i.id;if(a||!u||!u.length)return null;var x=this.state.isAnimationFinished,b=u.length===1,w=ne("recharts-line",c),g=s&&s.allowDataOverflow,m=f&&f.allowDataOverflow,O=g||m,S=ee(d)?this.id:d,A=(n=Q(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},j=A.r,E=j===void 0?3:j,P=A.strokeWidth,$=P===void 0?2:P,I=f0(o)?o:{},T=I.clipDot,D=T===void 0?!0:T,M=E*2+$;return _.createElement(pe,{className:w},g||m?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(S)},_.createElement("rect",{x:g?h:h-p/2,y:m?l:l-y/2,width:g?p:p*2,height:m?y:y*2})),!D&&_.createElement("clipPath",{id:"clipPath-dots-".concat(S)},_.createElement("rect",{x:h-M/2,y:l-M/2,width:p+M,height:y+M}))):null,!b&&this.renderCurve(O,S),this.renderErrorBar(O,S),(b||o)&&this.renderDots(O,D,S),(!v||x)&&jt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(tr(n),[0]):n,o=[],u=0;ue.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VB(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function YB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qh(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&F(i)&&F(a)?t.slice(i,a+1):[]};function by(e){return e==="number"?[0,"auto"]:void 0}var Ju=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=eo(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=l===void 0?u:l;h=bi(p,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Ar(c),[Pv(s,h)]):c},[])},tp=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=uR(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=eI(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=Ju(t,r,f,l),p=cR(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:p}}return null},sR=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,p=_v(f,a);return n.reduce(function(y,v){var d,x=v.props,b=x.type,w=x.dataKey,g=x.allowDataOverflow,m=x.allowDuplicatedCategory,O=x.scale,S=x.ticks,A=x.includeHidden,j=v.props[o];if(y[j])return y;var E=eo(t.data,{graphicalItems:i.filter(function(z){return z.props[o]===j}),dataStartIndex:c,dataEndIndex:s}),P=E.length,$,I,T;LB(v.props.domain,g,b)&&($=xu(v.props.domain,null,g),p&&(b==="number"||O!=="auto")&&(T=Qr(E,w,"category")));var D=by(b);if(!$||$.length===0){var M,N=(M=v.props.domain)!==null&&M!==void 0?M:D;if(w){if($=Qr(E,w,b),b==="category"&&p){var B=r0($);m&&B?(I=$,$=ia(0,P)):m||($=jf(N,$,v).reduce(function(z,Z){return z.indexOf(Z)>=0?z:[].concat(Ar(z),[Z])},[]))}else if(b==="category")m?$=$.filter(function(z){return z!==""&&!ee(z)}):$=jf(N,$,v).reduce(function(z,Z){return z.indexOf(Z)>=0||Z===""||ee(Z)?z:[].concat(Ar(z),[Z])},[]);else if(b==="number"){var R=aI(E,i.filter(function(z){return z.props[o]===j&&(A||!z.props.hide)}),w,a,f);R&&($=R)}p&&(b==="number"||O!=="auto")&&(T=Qr(E,w,"category"))}else p?$=ia(0,P):u&&u[j]&&u[j].hasStack&&b==="number"?$=h==="expand"?[0,1]:$v(u[j].stackGroups,c,s):$=Av(E,i.filter(function(z){return z.props[o]===j&&(A||!z.props.hide)}),b,f,!0);if(b==="number")$=Vu(l,$,j,a,S),N&&($=xu(N,$,g));else if(b==="category"&&N){var K=N,X=$.every(function(z){return K.indexOf(z)>=0});X&&($=K)}}return C(C({},y),{},q({},j,C(C({},v.props),{},{axisType:a,domain:$,categoricalDomain:T,duplicateDomain:I,originalDomain:(d=v.props.domain)!==null&&d!==void 0?d:D,isCategorical:p,layout:f})))},{})},lR=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=eo(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),p=h.length,y=_v(f,a),v=-1;return n.reduce(function(d,x){var b=x.props[o],w=by("number");if(!d[b]){v++;var g;return y?g=ia(0,p):u&&u[b]&&u[b].hasStack?(g=$v(u[b].stackGroups,c,s),g=Vu(l,g,b,a)):(g=xu(w,Av(h,n.filter(function(m){return m.props[o]===b&&!m.props.hide}),"number",f),i.defaultProps.allowDataOverflow),g=Vu(l,g,b,a)),C(C({},d),{},q({},b,C(C({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ge(aR,"".concat(a,".").concat(v%2),null),domain:g,originalDomain:w,isCategorical:y,layout:f})))}return d},{})},fR=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Xe(f,a),p={};return h&&h.length?p=sR(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(p=lR(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),p},hR=function(t){var r=rr(t),n=qt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:_c(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Vi(r,n)}},rp=function(t){var r=t.children,n=t.defaultShowTooltip,i=Le(r,br),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},pR=function(t){return!t||!t.length?!1:t.some(function(r){var n=yt(r&&r.type);return n&&n.indexOf("Bar")>=0})},np=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},dR=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,h=n.margin||{},p=Le(l,br),y=Le(l,on),v=Object.keys(c).reduce(function(m,O){var S=c[O],A=S.orientation;return!S.mirror&&!S.hide?C(C({},m),{},q({},A,m[A]+S.width)):m},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(m,O){var S=o[O],A=S.orientation;return!S.mirror&&!S.hide?C(C({},m),{},q({},A,Ge(m,"".concat(A))+S.height)):m},{top:h.top||0,bottom:h.bottom||0}),x=C(C({},d),v),b=x.bottom;p&&(x.bottom+=p.props.height||br.defaultProps.height),y&&r&&(x=nI(x,i,n,r));var w=s-x.left-x.right,g=f-x.top-x.bottom;return C(C({brushBottom:b},x),{},{width:Math.max(w,0),height:Math.max(g,0)})},xy=function(t){var r,n=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,u=t.validateTooltipEventTypes,c=u===void 0?["axis"]:u,s=t.axisComponents,f=t.legendContent,l=t.formatAxisMap,h=t.defaultProps,p=function(d,x){var b=x.graphicalItems,w=x.stackGroups,g=x.offset,m=x.updateId,O=x.dataStartIndex,S=x.dataEndIndex,A=d.barSize,j=d.layout,E=d.barGap,P=d.barCategoryGap,$=d.maxBarSize,I=np(j),T=I.numericAxisName,D=I.cateAxisName,M=pR(b),N=M&&tI({barSize:A,stackGroups:w}),B=[];return b.forEach(function(R,K){var X=eo(d.data,{graphicalItems:[R],dataStartIndex:O,dataEndIndex:S}),z=R.props,Z=z.dataKey,$e=z.maxBarSize,Pe=R.props["".concat(T,"Id")],kt=R.props["".concat(D,"Id")],ft={},We=s.reduce(function(Dt,Nt){var to=x["".concat(Nt.axisType,"Map")],is=R.props["".concat(Nt.axisType,"Id")];to&&to[is]||Nt.axisType==="zAxis"||Vt(!1);var as=to[is];return C(C({},Dt),{},q(q({},Nt.axisType,as),"".concat(Nt.axisType,"Ticks"),qt(as)))},ft),W=We[D],H=We["".concat(D,"Ticks")],V=w&&w[Pe]&&w[Pe].hasStack&&gI(R,w[Pe].stackGroups),k=yt(R.type).indexOf("Bar")>=0,he=Vi(W,H),Y=[];if(k){var ye,de,ke=ee($e)?$:$e,ht=(ye=(de=Vi(W,H,!0))!==null&&de!==void 0?de:ke)!==null&&ye!==void 0?ye:0;Y=rI({barGap:E,barCategoryGap:P,bandSize:ht!==he?ht:he,sizeList:N[kt],maxBarSize:ke}),ht!==he&&(Y=Y.map(function(Dt){return C(C({},Dt),{},{position:C(C({},Dt.position),{},{offset:Dt.position.offset-ht/2})})}))}var ti=R&&R.type&&R.type.getComposedData;ti&&B.push({props:C(C({},ti(C(C({},We),{},{displayedData:X,props:d,dataKey:Z,item:R,bandSize:he,barPosition:Y,offset:g,stackedData:V,layout:j,dataStartIndex:O,dataEndIndex:S}))),{},q(q(q({key:R.key||"item-".concat(K)},T,We[T]),D,We[D]),"animationId",m)),childIndex:d0(R,d.children),item:R})}),B},y=function(d,x){var b=d.props,w=d.dataStartIndex,g=d.dataEndIndex,m=d.updateId;if(!bs({props:b}))return null;var O=b.children,S=b.layout,A=b.stackOffset,j=b.data,E=b.reverseStackOrder,P=np(S),$=P.numericAxisName,I=P.cateAxisName,T=Xe(O,i),D=dI(j,T,"".concat($,"Id"),"".concat(I,"Id"),A,E),M=s.reduce(function(X,z){var Z="".concat(z.axisType,"Map");return C(C({},X),{},q({},Z,fR(b,C(C({},z),{},{graphicalItems:T,stackGroups:z.axisType===$&&D,dataStartIndex:w,dataEndIndex:g}))))},{}),N=dR(C(C({},M),{},{props:b,graphicalItems:T}),x?.legendBBox);Object.keys(M).forEach(function(X){M[X]=l(b,M[X],N,X.replace("Map",""),n)});var B=M["".concat(I,"Map")],R=hR(B),K=p(b,C(C({},M),{},{dataStartIndex:w,dataEndIndex:g,updateId:m,graphicalItems:T,stackGroups:D,offset:N}));return C(C({formattedGraphicalItems:K,graphicalItems:T,offset:N,stackGroups:D},R),M)};return r=function(v){eR(d,v);function d(x){var b,w,g;return YB(this,d),g=JB(this,d,[x]),q(te(g),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),q(te(g),"accessibilityManager",new NB),q(te(g),"handleLegendBBoxUpdate",function(m){if(m){var O=g.state,S=O.dataStartIndex,A=O.dataEndIndex,j=O.updateId;g.setState(C({legendBBox:m},y({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:j},C(C({},g.state),{},{legendBBox:m}))))}}),q(te(g),"handleReceiveSyncEvent",function(m,O,S){if(g.props.syncId===m){if(S===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(O)}}),q(te(g),"handleBrushChange",function(m){var O=m.startIndex,S=m.endIndex;if(O!==g.state.dataStartIndex||S!==g.state.dataEndIndex){var A=g.state.updateId;g.setState(function(){return C({dataStartIndex:O,dataEndIndex:S},y({props:g.props,dataStartIndex:O,dataEndIndex:S,updateId:A},g.state))}),g.triggerSyncEvent({dataStartIndex:O,dataEndIndex:S})}}),q(te(g),"handleMouseEnter",function(m){var O=g.getMouseInfo(m);if(O){var S=C(C({},O),{},{isTooltipActive:!0});g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseEnter;J(A)&&A(S,m)}}),q(te(g),"triggeredAfterMouseMove",function(m){var O=g.getMouseInfo(m),S=O?C(C({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseMove;J(A)&&A(S,m)}),q(te(g),"handleItemMouseEnter",function(m){g.setState(function(){return{isTooltipActive:!0,activeItem:m,activePayload:m.tooltipPayload,activeCoordinate:m.tooltipPosition||{x:m.cx,y:m.cy}}})}),q(te(g),"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),q(te(g),"handleMouseMove",function(m){m.persist(),g.throttleTriggeredAfterMouseMove(m)}),q(te(g),"handleMouseLeave",function(m){g.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};g.setState(O),g.triggerSyncEvent(O);var S=g.props.onMouseLeave;J(S)&&S(O,m)}),q(te(g),"handleOuterEvent",function(m){var O=p0(m),S=Ge(g.props,"".concat(O));if(O&&J(S)){var A,j;/.*touch.*/i.test(O)?j=g.getMouseInfo(m.changedTouches[0]):j=g.getMouseInfo(m),S((A=j)!==null&&A!==void 0?A:{},m)}}),q(te(g),"handleClick",function(m){var O=g.getMouseInfo(m);if(O){var S=C(C({},O),{},{isTooltipActive:!0});g.setState(S),g.triggerSyncEvent(S);var A=g.props.onClick;J(A)&&A(S,m)}}),q(te(g),"handleMouseDown",function(m){var O=g.props.onMouseDown;if(J(O)){var S=g.getMouseInfo(m);O(S,m)}}),q(te(g),"handleMouseUp",function(m){var O=g.props.onMouseUp;if(J(O)){var S=g.getMouseInfo(m);O(S,m)}}),q(te(g),"handleTouchMove",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(m.changedTouches[0])}),q(te(g),"handleTouchStart",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseDown(m.changedTouches[0])}),q(te(g),"handleTouchEnd",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseUp(m.changedTouches[0])}),q(te(g),"triggerSyncEvent",function(m){g.props.syncId!==void 0&&Co.emit(Io,g.props.syncId,m,g.eventEmitterSymbol)}),q(te(g),"applySyncEvent",function(m){var O=g.props,S=O.layout,A=O.syncMethod,j=g.state.updateId,E=m.dataStartIndex,P=m.dataEndIndex;if(m.dataStartIndex!==void 0||m.dataEndIndex!==void 0)g.setState(C({dataStartIndex:E,dataEndIndex:P},y({props:g.props,dataStartIndex:E,dataEndIndex:P,updateId:j},g.state)));else if(m.activeTooltipIndex!==void 0){var $=m.chartX,I=m.chartY,T=m.activeTooltipIndex,D=g.state,M=D.offset,N=D.tooltipTicks;if(!M)return;if(typeof A=="function")T=A(N,m);else if(A==="value"){T=-1;for(var B=0;B=0){var H,V;if($.dataKey&&!$.allowDuplicatedCategory){var k=typeof $.dataKey=="function"?W:"payload.".concat($.dataKey.toString());H=bi(B,k,T),V=R&&K&&bi(K,k,T)}else H=B?.[I],V=R&&K&&K[I];if(Pe||$e){var he=m.props.activeIndex!==void 0?m.props.activeIndex:I;return[L.cloneElement(m,C(C(C({},A.props),ft),{},{activeIndex:he})),null,null]}if(!ee(H))return[We].concat(Ar(g.renderActivePoints({item:A,activePoint:H,basePoint:V,childIndex:I,isRange:R})))}else{var Y,ye=(Y=g.getItemByXY(g.state.activeCoordinate))!==null&&Y!==void 0?Y:{graphicalItem:We},de=ye.graphicalItem,ke=de.item,ht=ke===void 0?m:ke,ti=de.childIndex,Dt=C(C(C({},A.props),ft),{},{activeIndex:ti});return[L.cloneElement(ht,Dt),null,null]}return R?[We,null,null]:[We,null]}),q(te(g),"renderCustomized",function(m,O,S){return L.cloneElement(m,C(C({key:"recharts-customized-".concat(S)},g.props),g.state))}),q(te(g),"renderMap",{CartesianGrid:{handler:yi,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:yi},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:yi},YAxis:{handler:yi},Brush:{handler:g.renderBrush,once:!0},Bar:{handler:g.renderGraphicChild},Line:{handler:g.renderGraphicChild},Area:{handler:g.renderGraphicChild},Radar:{handler:g.renderGraphicChild},RadialBar:{handler:g.renderGraphicChild},Scatter:{handler:g.renderGraphicChild},Pie:{handler:g.renderGraphicChild},Funnel:{handler:g.renderGraphicChild},Tooltip:{handler:g.renderCursor,once:!0},PolarGrid:{handler:g.renderPolarGrid,once:!0},PolarAngleAxis:{handler:g.renderPolarAxis},PolarRadiusAxis:{handler:g.renderPolarAxis},Customized:{handler:g.renderCustomized}}),g.clipPathId="".concat((b=x.id)!==null&&b!==void 0?b:Hn("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=Ad(g.triggeredAfterMouseMove,(w=x.throttleDelay)!==null&&w!==void 0?w:1e3/60),g.state={},g}return ZB(d,[{key:"componentDidMount",value:function(){var b,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,w=b.children,g=b.data,m=b.height,O=b.layout,S=Le(w,pt);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length)){var j=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,E=Ju(this.state,g,A,j),P=this.state.tooltipTicks[A].coordinate,$=(this.state.offset.top+m)/2,I=O==="horizontal",T=I?{x:P,y:$}:{y:P,x:$},D=this.state.formattedGraphicalItems.find(function(N){var B=N.item;return B.type.name==="Scatter"});D&&(T=C(C({},T),D.props.points[A].tooltipPosition),E=D.props.points[A].tooltipPayload);var M={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:j,activePayload:E,activeCoordinate:T};this.setState(M),this.renderCursor(S),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var g,m;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(m=this.props.margin.top)!==null&&m!==void 0?m:0}})}return null}},{key:"componentDidUpdate",value:function(b){Bo([Le(b.children,pt)],[Le(this.props.children,pt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Le(this.props.children,pt);if(b&&typeof b.props.shared=="boolean"){var w=b.props.shared?"axis":"item";return c.indexOf(w)>=0?w:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var w=this.container,g=w.getBoundingClientRect(),m=MT(g),O={chartX:Math.round(b.pageX-m.left),chartY:Math.round(b.pageY-m.top)},S=g.width/w.offsetWidth||1,A=this.inRange(O.chartX,O.chartY,S);if(!A)return null;var j=this.state,E=j.xAxisMap,P=j.yAxisMap,$=this.getTooltipEventType();if($!=="axis"&&E&&P){var I=rr(E).scale,T=rr(P).scale,D=I&&I.invert?I.invert(O.chartX):null,M=T&&T.invert?T.invert(O.chartY):null;return C(C({},O),{},{xValue:D,yValue:M})}var N=tp(this.state,this.props.data,this.props.layout,A);return N?C(C({},O),N):null}},{key:"inRange",value:function(b,w){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,m=this.props.layout,O=b/g,S=w/g;if(m==="horizontal"||m==="vertical"){var A=this.state.offset,j=O>=A.left&&O<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return j?{x:O,y:S}:null}var E=this.state,P=E.angleAxisMap,$=E.radiusAxisMap;if(P&&$){var I=rr(P);return If({x:O,y:S},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,w=this.getTooltipEventType(),g=Le(b,pt),m={};g&&w==="axis"&&(g.props.trigger==="click"?m={onClick:this.handleClick}:m={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var O=xi(this.props,this.handleOuterEvent);return C(C({},O),m)}},{key:"addListener",value:function(){Co.on(Io,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Co.removeListener(Io,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,w,g){for(var m=this.state.formattedGraphicalItems,O=0,S=m.length;O{for(var n in t)Cl(e,n,{get:t[n],enumerable:!0})},De={};Rl(De,{assign:()=>Al,colors:()=>it,createStringInterpolator:()=>ea,skipAnimation:()=>ff,to:()=>sf,willAdvance:()=>ta});var Gr=Sn(),K=e=>Tn(e,Gr),Xr=Sn();K.write=e=>Tn(e,Xr);var yi=Sn();K.onStart=e=>Tn(e,yi);var Qr=Sn();K.onFrame=e=>Tn(e,Qr);var Kr=Sn();K.onFinish=e=>Tn(e,Kr);var It=[];K.setTimeout=(e,t)=>{const n=K.now()+t,i=()=>{const a=It.findIndex(o=>o.cancel==i);~a&&It.splice(a,1),nt-=~a?1:0},r={time:n,handler:e,cancel:i};return It.splice(tf(n),0,r),nt+=1,nf(),r};var tf=e=>~(~It.findIndex(t=>t.time>e)||~It.length);K.cancel=e=>{yi.delete(e),Qr.delete(e),Kr.delete(e),Gr.delete(e),Xr.delete(e)};K.sync=e=>{sr=!0,K.batchedUpdates(e),sr=!1};K.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function i(...r){t=r,K.onStart(n)}return i.handler=e,i.cancel=()=>{yi.delete(n),t=null},i};var Zr=typeof window<"u"?window.requestAnimationFrame:()=>{};K.use=e=>Zr=e;K.now=typeof performance<"u"?()=>performance.now():Date.now;K.batchedUpdates=e=>e();K.catch=console.error;K.frameLoop="always";K.advance=()=>{K.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):af()};var tt=-1,nt=0,sr=!1;function Tn(e,t){sr?(t.delete(e),e(0)):(t.add(e),nf())}function nf(){tt<0&&(tt=0,K.frameLoop!=="demand"&&Zr(rf))}function Ol(){tt=-1}function rf(){~tt&&(Zr(rf),K.batchedUpdates(af))}function af(){const e=tt;tt=K.now();const t=tf(tt);if(t&&(of(It.splice(0,t),n=>n.handler()),nt-=t),!nt){Ol();return}yi.flush(),Gr.flush(e?Math.min(64,tt-e):16.667),Qr.flush(),Xr.flush(),Kr.flush()}function Sn(){let e=new Set,t=e;return{add(n){nt+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return nt-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,nt-=t.size,of(t,i=>i(n)&&e.add(i)),nt+=e.size,t=e)}}}function of(e,t){e.forEach(n=>{try{t(n)}catch(i){K.catch(i)}})}function fr(){}var $l=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),P={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Be(e,t){if(P.arr(e)){if(!P.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function ze(e,t,n){if(P.arr(e)){for(let i=0;iP.und(e)?[]:P.arr(e)?e:[e];function fn(e,t){if(e.size){const n=Array.from(e);e.clear(),Q(n,t)}}var sn=(e,...t)=>fn(e,n=>n(...t)),Jr=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ea,sf,it=null,ff=!1,ta=fr,Al=e=>{e.to&&(sf=e.to),e.now&&(K.now=e.now),e.colors!==void 0&&(it=e.colors),e.skipAnimation!=null&&(ff=e.skipAnimation),e.createStringInterpolator&&(ea=e.createStringInterpolator),e.requestAnimationFrame&&K.use(e.requestAnimationFrame),e.batchedUpdates&&(K.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ta=e.willAdvance),e.frameLoop&&(K.frameLoop=e.frameLoop)},cn=new Set,qe=[],Ni=[],Xn=0,vi={get idle(){return!cn.size&&!qe.length},start(e){Xn>e.priority?(cn.add(e),K.onStart(ql)):(cf(e),K(cr))},advance:cr,sort(e){if(Xn)K.onFrame(()=>vi.sort(e));else{const t=qe.indexOf(e);~t&&(qe.splice(t,1),uf(e))}},clear(){qe=[],cn.clear()}};function ql(){cn.forEach(cf),cn.clear(),K(cr)}function cf(e){qe.includes(e)||uf(e)}function uf(e){qe.splice(Pl(qe,t=>t.priority>e.priority),0,e)}function cr(e){const t=Ni;for(let n=0;n0}function Pl(e,t){const n=e.findIndex(t);return n<0?e.length:n}var jl=(e,t,n)=>Math.min(Math.max(n,e),t),El={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ie="[-+]?\\d*\\.?\\d+",Qn=Ie+"%";function _i(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Il=new RegExp("rgb"+_i(Ie,Ie,Ie)),Fl=new RegExp("rgba"+_i(Ie,Ie,Ie,Ie)),Dl=new RegExp("hsl"+_i(Ie,Qn,Qn)),Ul=new RegExp("hsla"+_i(Ie,Qn,Qn,Ie)),Wl=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Nl=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,zl=/^#([0-9a-fA-F]{6})$/,Ll=/^#([0-9a-fA-F]{8})$/;function Yl(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=zl.exec(e))?parseInt(t[1]+"ff",16)>>>0:it&&it[e]!==void 0?it[e]:(t=Il.exec(e))?(Ot(t[1])<<24|Ot(t[2])<<16|Ot(t[3])<<8|255)>>>0:(t=Fl.exec(e))?(Ot(t[1])<<24|Ot(t[2])<<16|Ot(t[3])<<8|yo(t[4]))>>>0:(t=Wl.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ll.exec(e))?parseInt(t[1],16)>>>0:(t=Nl.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Dl.exec(e))?(go(po(t[1]),qn(t[2]),qn(t[3]))|255)>>>0:(t=Ul.exec(e))?(go(po(t[1]),qn(t[2]),qn(t[3]))|yo(t[4]))>>>0:null}function zi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function go(e,t,n){const i=n<.5?n*(1+t):n+t-n*t,r=2*n-i,a=zi(r,i,e+1/3),o=zi(r,i,e),s=zi(r,i,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Ot(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function po(e){return(parseFloat(e)%360+360)%360/360}function yo(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function qn(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function vo(e){let t=Yl(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,i=(t&16711680)>>>16,r=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${i}, ${r}, ${a})`}var ln=(e,t,n)=>{if(P.fun(e))return e;if(P.arr(e))return ln({range:e,output:t,extrapolate:n});if(P.str(e.output[0]))return ea(e);const i=e,r=i.output,a=i.range||[0,1],o=i.extrapolateLeft||i.extrapolate||"extend",s=i.extrapolateRight||i.extrapolate||"extend",f=i.easing||(c=>c);return c=>{const d=Hl(c,a);return Bl(c,a[d],a[d+1],r[d],r[d+1],f,o,s,i.map)}};function Bl(e,t,n,i,r,a,o,s,f){let c=f?f(e):e;if(cn){if(s==="identity")return c;s==="clamp"&&(c=n)}return i===r?i:t===n?e<=t?i:r:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=a(c),i===-1/0?c=-c:r===1/0?c=c+i:c=c*(r-i)+i,c)}function Hl(e,t){for(var n=1;n=e);++n);return n-1}var Vl=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const i=n*e,r=t==="end"?Math.floor(i):Math.ceil(i);return jl(0,1,r/e)},Kn=1.70158,Pn=Kn*1.525,_o=Kn+1,xo=2*Math.PI/3,wo=2*Math.PI/4.5,jn=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Gl={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>_o*e*e*e-Kn*e*e,easeOutBack:e=>1+_o*Math.pow(e-1,3)+Kn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Pn+1)*2*e-Pn)/2:(Math.pow(2*e-2,2)*((Pn+1)*(e*2-2)+Pn)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*xo),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*xo)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*wo))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*wo)/2+1,easeInBounce:e=>1-jn(1-e),easeOutBounce:jn,easeInOutBounce:e=>e<.5?(1-jn(1-2*e))/2:(1+jn(2*e-1))/2,steps:Vl},hn=Symbol.for("FluidValue.get"),Wt=Symbol.for("FluidValue.observers"),Ae=e=>!!(e&&e[hn]),Se=e=>e&&e[hn]?e[hn]():e,Mo=e=>e[Wt]||null;function Xl(e,t){e.eventObserved?e.eventObserved(t):e(t)}function bn(e,t){const n=e[Wt];n&&n.forEach(i=>{Xl(i,t)})}var df=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ql(this,e)}},Ql=(e,t)=>lf(e,hn,t);function Vt(e,t){if(e[hn]){let n=e[Wt];n||lf(e,Wt,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function mn(e,t){const n=e[Wt];if(n&&n.has(t)){const i=n.size-1;i?n.delete(t):e[Wt]=null,e.observerRemoved&&e.observerRemoved(i,t)}}var lf=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ln=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Kl=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ko=new RegExp(`(${Ln.source})(%|[a-z]+)`,"i"),Zl=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,xi=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,hf=e=>{const[t,n]=Jl(e);if(!t||Jr())return e;const i=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(i)return i.trim();if(n&&n.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(n);return r||e}else{if(n&&xi.test(n))return hf(n);if(n)return n}return e},Jl=e=>{const t=xi.exec(e);if(!t)return[,];const[,n,i]=t;return[n,i]},Li,e0=(e,t,n,i,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(i)}, ${r})`,bf=e=>{Li||(Li=it?new RegExp(`(${Object.keys(it).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>Se(a).replace(xi,hf).replace(Kl,vo).replace(Li,vo)),n=t.map(a=>a.match(Ln).map(Number)),r=n[0].map((a,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(a=>ln({...e,output:a}));return a=>{const o=!ko.test(t[0])&&t.find(f=>ko.test(f))?.replace(Ln,"");let s=0;return t[0].replace(Ln,()=>`${r[s++](a)}${o||""}`).replace(Zl,e0)}},na="react-spring: ",mf=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${na}once requires a function parameter`);return(...i)=>{n||(t(...i),n=!0)}},t0=mf(console.warn);function n0(){t0(`${na}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var i0=mf(console.warn);function r0(){i0(`${na}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function wi(e){return P.str(e)&&(e[0]=="#"||/\d/.test(e)||!Jr()&&xi.test(e)||e in(it||{}))}var lt=Jr()?w.useEffect:w.useLayoutEffect,a0=()=>{const e=w.useRef(!1);return lt(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function ia(){const e=w.useState()[1],t=a0();return()=>{t.current&&e(Math.random())}}function o0(e,t){const[n]=w.useState(()=>({inputs:t,result:e()})),i=w.useRef(),r=i.current;let a=r;return a?t&&a.inputs&&s0(t,a.inputs)||(a={inputs:t,result:e()}):a=n,w.useEffect(()=>{i.current=a,r==n&&(n.inputs=n.result=void 0)},[a]),a.result}function s0(e,t){if(e.length!==t.length)return!1;for(let n=0;nw.useEffect(e,f0),f0=[];function ur(e){const t=w.useRef();return w.useEffect(()=>{t.current=e}),t.current}var gn=Symbol.for("Animated:node"),c0=e=>!!e&&e[gn]===e,Ue=e=>e&&e[gn],aa=(e,t)=>$l(e,gn,t),Mi=e=>e&&e[gn]&&e[gn].getPayload(),gf=class{constructor(){aa(this,this)}getPayload(){return this.payload||[]}},Cn=class extends gf{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,P.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Cn(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return P.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,P.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},pn=class extends Cn{constructor(e){super(0),this._string=null,this._toString=ln({output:[e,e]})}static create(e){return new pn(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(P.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=ln({output:[this.getValue(),e]})),this._value=0,super.reset()}},Zn={dependencies:null},ki=class extends gf{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ze(this.source,(n,i)=>{c0(n)?t[i]=n.getValue(e):Ae(n)?t[i]=Se(n):e||(t[i]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Q(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return ze(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Zn.dependencies&&Ae(e)&&Zn.dependencies.add(e);const t=Mi(e);t&&Q(t,n=>this.add(n))}},pf=class extends ki{constructor(e){super(e)}static create(e){return new pf(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,i)=>n.setValue(e[i])).some(Boolean):(super.setValue(e.map(u0)),!0)}};function u0(e){return(wi(e)?pn:Cn).create(e)}function dr(e){const t=Ue(e);return t?t.constructor:P.arr(e)?pf:wi(e)?pn:Cn}var To=(e,t)=>{const n=!P.fun(e)||e.prototype&&e.prototype.isReactComponent;return w.forwardRef((i,r)=>{const a=w.useRef(null),o=n&&w.useCallback(m=>{a.current=h0(r,m)},[r]),[s,f]=l0(i,t),c=ia(),d=()=>{const m=a.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,s.getValue(!0)):!1)===!1&&c()},l=new d0(d,f),h=w.useRef();lt(()=>(h.current=l,Q(f,m=>Vt(m,l)),()=>{h.current&&(Q(h.current.deps,m=>mn(m,h.current)),K.cancel(h.current.update))})),w.useEffect(d,[]),ra(()=>()=>{const m=h.current;Q(m.deps,g=>mn(g,m))});const b=t.getComponentProps(s.getValue());return w.createElement(e,{...b,ref:o})})},d0=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&K.write(this.update)}};function l0(e,t){const n=new Set;return Zn.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new ki(e),Zn.dependencies=null,[e,n]}function h0(e,t){return e&&(P.fun(e)?e(t):e.current=t),t}var So=Symbol.for("AnimatedComponent"),b0=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=r=>new ki(r),getComponentProps:i=r=>r}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:i},a=o=>{const s=Co(o)||"Anonymous";return P.str(o)?o=a[o]||(a[o]=To(o,r)):o=o[So]||(o[So]=To(o,r)),o.displayName=`Animated(${s})`,o};return ze(e,(o,s)=>{P.arr(e)&&(s=Co(o)),a[s]=a(o)}),{animated:a}},Co=e=>P.str(e)?e:e&&P.str(e.displayName)?e.displayName:P.fun(e)&&e.name||null;function Ce(e,...t){return P.fun(e)?e(...t):e}var un=(e,t)=>e===!0||!!(t&&e&&(P.fun(e)?e(t):ke(e).includes(t))),yf=(e,t)=>P.obj(e)?t&&e[t]:e,vf=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,m0=e=>e,Ti=(e,t=m0)=>{let n=g0;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const i={};for(const r of n){const a=t(e[r],r);P.und(a)||(i[r]=a)}return i},g0=["config","onProps","onStart","onChange","onPause","onResume","onRest"],p0={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function y0(e){const t={};let n=0;if(ze(e,(i,r)=>{p0[r]||(t[r]=i,n++)}),n)return t}function oa(e){const t=y0(e);if(t){const n={to:t};return ze(e,(i,r)=>r in t||(n[r]=i)),n}return{...e}}function yn(e){return e=Se(e),P.arr(e)?e.map(yn):wi(e)?De.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function _f(e){for(const t in e)return!0;return!1}function lr(e){return P.fun(e)||P.arr(e)&&P.obj(e[0])}function hr(e,t){e.ref?.delete(e),t?.delete(e)}function xf(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var sa={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},br={...sa.default,mass:1,damping:1,easing:Gl.linear,clamp:!1},v0=class{constructor(){this.velocity=0,Object.assign(this,br)}};function _0(e,t,n){n&&(n={...n},Ro(n,t),t={...n,...t}),Ro(e,t),Object.assign(e,t);for(const o in br)e[o]==null&&(e[o]=br[o]);let{frequency:i,damping:r}=e;const{mass:a}=e;return P.und(i)||(i<.01&&(i=.01),r<0&&(r=0),e.tension=Math.pow(2*Math.PI/i,2)*a,e.friction=4*Math.PI*r*a/i),e}function Ro(e,t){if(!P.und(t.decay))e.duration=void 0;else{const n=!P.und(t.tension)||!P.und(t.friction);(n||!P.und(t.frequency)||!P.und(t.damping)||!P.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Oo=[],x0=class{constructor(){this.changed=!1,this.values=Oo,this.toValues=null,this.fromValues=Oo,this.config=new v0,this.immediate=!1}};function wf(e,{key:t,props:n,defaultProps:i,state:r,actions:a}){return new Promise((o,s)=>{let f,c,d=un(n.cancel??i?.cancel,t);if(d)b();else{P.und(n.pause)||(r.paused=un(n.pause,t));let m=i?.pause;m!==!0&&(m=r.paused||un(m,t)),f=Ce(n.delay||0,t),m?(r.resumeQueue.add(h),a.pause()):(a.resume(),h())}function l(){r.resumeQueue.add(h),r.timeouts.delete(c),c.cancel(),f=c.time-K.now()}function h(){f>0&&!De.skipAnimation?(r.delayed=!0,c=K.setTimeout(b,f),r.pauseQueue.add(l),r.timeouts.add(c)):b()}function b(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(l),r.timeouts.delete(c),e<=(r.cancelId||0)&&(d=!0);try{a.start({...n,callId:e,cancel:d},o)}catch(m){s(m)}}})}var fa=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Ft(e.get()):t.every(n=>n.noop)?Mf(e.get()):Ee(e.get(),t.every(n=>n.finished)),Mf=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ee=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ft=e=>({value:e,cancelled:!0,finished:!1});function kf(e,t,n,i){const{callId:r,parentId:a,onRest:o}=t,{asyncTo:s,promise:f}=n;return!a&&e===s&&!t.reset?f:n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;const c=Ti(t,(p,y)=>y==="onRest"?void 0:p);let d,l;const h=new Promise((p,y)=>(d=p,l=y)),b=p=>{const y=r<=(n.cancelId||0)&&Ft(i)||r!==n.asyncId&&Ee(i,!1);if(y)throw p.result=y,l(p),p},m=(p,y)=>{const x=new $o,v=new Ao;return(async()=>{if(De.skipAnimation)throw vn(n),v.result=Ee(i,!1),l(v),v;b(x);const T=P.obj(p)?{...p}:{...y,to:p};T.parentId=r,ze(c,(S,D)=>{P.und(T[D])&&(T[D]=S)});const A=await i.start(T);return b(x),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),A})()};let g;if(De.skipAnimation)return vn(n),Ee(i,!1);try{let p;P.arr(e)?p=(async y=>{for(const x of y)await m(x)})(e):p=Promise.resolve(e(m,i.stop.bind(i))),await Promise.all([p.then(d),h]),g=Ee(i.get(),!0,!1)}catch(p){if(p instanceof $o)g=p.result;else if(p instanceof Ao)g=p.result;else throw p}finally{r==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?f:void 0)}return P.fun(o)&&K.batchedUpdates(()=>{o(g,i,i.item)}),g})()}function vn(e,t){fn(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var $o=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Ao=class extends Error{constructor(){super("SkipAnimationSignal")}},mr=e=>e instanceof ca,w0=1,ca=class extends df{constructor(){super(...arguments),this.id=w0++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Ue(this);return e&&e.getValue()}to(...e){return De.to(this,e)}interpolate(...e){return n0(),De.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){bn(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||vi.sort(this),bn(this,{type:"priority",parent:this,priority:e})}},pt=Symbol.for("SpringPhase"),Tf=1,gr=2,pr=4,Yi=e=>(e[pt]&Tf)>0,et=e=>(e[pt]&gr)>0,Jt=e=>(e[pt]&pr)>0,qo=(e,t)=>t?e[pt]|=gr|Tf:e[pt]&=~gr,Po=(e,t)=>t?e[pt]|=pr:e[pt]&=~pr,M0=class extends ca{constructor(e,t){if(super(),this.animation=new x0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!P.und(e)||!P.und(t)){const n=P.obj(e)?{...e}:{...t,from:e};P.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(et(this)||this._state.asyncTo)||Jt(this)}get goal(){return Se(this.animation.to)}get velocity(){const e=Ue(this);return e instanceof Cn?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Yi(this)}get isAnimating(){return et(this)}get isPaused(){return Jt(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const i=this.animation;let{toValues:r}=i;const{config:a}=i,o=Mi(i.to);!o&&Ae(i.to)&&(r=ke(Se(i.to))),i.values.forEach((c,d)=>{if(c.done)return;const l=c.constructor==pn?1:o?o[d].lastPosition:r[d];let h=i.immediate,b=l;if(!h){if(b=c.lastPosition,a.tension<=0){c.done=!0;return}let m=c.elapsedTime+=e;const g=i.fromValues[d],p=c.v0!=null?c.v0:c.v0=P.arr(a.velocity)?a.velocity[d]:a.velocity;let y;const x=a.precision||(g==l?.005:Math.min(1,Math.abs(l-g)*.001));if(P.und(a.duration))if(a.decay){const v=a.decay===!0?.998:a.decay,T=Math.exp(-(1-v)*m);b=g+p/(1-v)*(1-T),h=Math.abs(c.lastPosition-b)<=x,y=p*T}else{y=c.lastVelocity==null?p:c.lastVelocity;const v=a.restVelocity||x/10,T=a.clamp?0:a.bounce,A=!P.und(T),S=g==l?c.v0>0:gv,!(!D&&(h=Math.abs(l-b)<=x,h)));++_){A&&(j=b==l||b>l==S,j&&(y=-y*T,b=l));const q=-a.tension*1e-6*(b-l),R=-a.friction*.001*y,O=(q+R)/a.mass;y=y+O*E,b=b+y*E}}else{let v=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,c.durationProgress>0&&(c.elapsedTime=a.duration*c.durationProgress,m=c.elapsedTime+=e)),v=(a.progress||0)+m/this._memoizedDuration,v=v>1?1:v<0?0:v,c.durationProgress=v),b=g+a.easing(v)*(l-g),y=(b-c.lastPosition)/e,h=v==1}c.lastVelocity=y,Number.isNaN(b)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[d].done&&(h=!1),h?c.done=!0:t=!1,c.setValue(b,a.round)&&(n=!0)});const s=Ue(this),f=s.getValue();if(t){const c=Se(i.to);(f!==c||n)&&!a.decay?(s.setValue(c),this._onChange(c)):n&&a.decay&&this._onChange(f),this._stop()}else n&&this._onChange(f)}set(e){return K.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(et(this)){const{to:e,config:t}=this.animation;K.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return P.und(e)?(n=this.queue||[],this.queue=[]):n=[P.obj(e)?e:{...t,to:e}],Promise.all(n.map(i=>this._update(i))).then(i=>fa(this,i))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),vn(this._state,e&&this._lastCallId),K.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:i}=e;n=P.obj(n)?n[t]:n,(n==null||lr(n))&&(n=void 0),i=P.obj(i)?i[t]:i,i==null&&(i=void 0);const r={to:n,from:i};return Yi(this)||(e.reverse&&([n,i]=[i,n]),i=Se(i),P.und(i)?Ue(this)||this._set(n):this._set(i)),r}_update({...e},t){const{key:n,defaultProps:i}=this;e.default&&Object.assign(i,Ti(e,(o,s)=>/^on/.test(s)?yf(o,n):o)),Eo(this,e,"onProps"),tn(this,"onProps",e,this);const r=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return wf(++this._lastCallId,{key:n,props:e,defaultProps:i,state:a,actions:{pause:()=>{Jt(this)||(Po(this,!0),sn(a.pauseQueue),tn(this,"onPause",Ee(this,en(this,this.animation.to)),this))},resume:()=>{Jt(this)&&(Po(this,!1),et(this)&&this._resume(),sn(a.resumeQueue),tn(this,"onResume",Ee(this,en(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=Sf(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ft(this));const i=!P.und(e.to),r=!P.und(e.from);if(i||r)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Ft(this));const{key:a,defaultProps:o,animation:s}=this,{to:f,from:c}=s;let{to:d=f,from:l=c}=e;r&&!i&&(!t.default||P.und(d))&&(d=l),t.reverse&&([d,l]=[l,d]);const h=!Be(l,c);h&&(s.from=l),l=Se(l);const b=!Be(d,f);b&&this._focus(d);const m=lr(t.to),{config:g}=s,{decay:p,velocity:y}=g;(i||r)&&(g.velocity=0),t.config&&!m&&_0(g,Ce(t.config,a),t.config!==o.config?Ce(o.config,a):void 0);let x=Ue(this);if(!x||P.und(d))return n(Ee(this,!0));const v=P.und(t.reset)?r&&!t.default:!P.und(l)&&un(t.reset,a),T=v?l:this.get(),A=yn(d),S=P.num(A)||P.arr(A)||wi(A),D=!m&&(!S||un(o.immediate||t.immediate,a));if(b){const _=dr(d);if(_!==x.constructor)if(D)x=this._set(A);else throw Error(`Cannot animate between ${x.constructor.name} and ${_.name}, as the "to" prop suggests`)}const j=x.constructor;let E=Ae(d),k=!1;if(!E){const _=v||!Yi(this)&&h;(b||_)&&(k=Be(yn(T),A),E=!k),(!Be(s.immediate,D)&&!D||!Be(g.decay,p)||!Be(g.velocity,y))&&(E=!0)}if(k&&et(this)&&(s.changed&&!v?E=!0:E||this._stop(f)),!m&&((E||Ae(f))&&(s.values=x.getPayload(),s.toValues=Ae(d)?null:j==pn?[1]:ke(A)),s.immediate!=D&&(s.immediate=D,!D&&!v&&this._set(f)),E)){const{onRest:_}=s;Q(T0,R=>Eo(this,t,R));const q=Ee(this,en(this,f));sn(this._pendingCalls,q),this._pendingCalls.add(n),s.changed&&K.batchedUpdates(()=>{s.changed=!v,_?.(q,this),v?Ce(o.onRest,q):s.onStart?.(q,this)})}v&&this._set(T),m?n(kf(t.to,t,this._state,this)):E?this._start():et(this)&&!b?this._pendingCalls.add(n):n(Mf(T))}_focus(e){const t=this.animation;e!==t.to&&(Mo(this)&&this._detach(),t.to=e,Mo(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ae(t)&&(Vt(t,this),mr(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ae(e)&&mn(e,this)}_set(e,t=!0){const n=Se(e);if(!P.und(n)){const i=Ue(this);if(!i||!Be(n,i.getValue())){const r=dr(n);!i||i.constructor!=r?aa(this,r.create(n)):i.setValue(n),i&&K.batchedUpdates(()=>{this._onChange(n,t)})}}return Ue(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,tn(this,"onStart",Ee(this,en(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Ce(this.animation.onChange,e,this)),Ce(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Ue(this).reset(Se(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),et(this)||(qo(this,!0),Jt(this)||this._resume())}_resume(){De.skipAnimation?this.finish():vi.start(this)}_stop(e,t){if(et(this)){qo(this,!1);const n=this.animation;Q(n.values,r=>{r.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),bn(this,{type:"idle",parent:this});const i=t?Ft(this.get()):Ee(this.get(),en(this,e??n.to));sn(this._pendingCalls,i),n.changed&&(n.changed=!1,tn(this,"onRest",i,this))}}};function en(e,t){const n=yn(t),i=yn(e.get());return Be(i,n)}function Sf(e,t=e.loop,n=e.to){const i=Ce(t);if(i){const r=i!==!0&&oa(i),a=(r||e).reverse,o=!r||r.reset;return _n({...e,loop:t,default:!1,pause:void 0,to:!a||lr(n)?n:void 0,from:o?e.from:void 0,reset:o,...r})}}function _n(e){const{to:t,from:n}=e=oa(e),i=new Set;return P.obj(t)&&jo(t,i),P.obj(n)&&jo(n,i),e.keys=i.size?Array.from(i):null,e}function k0(e){const t=_n(e);return P.und(t.default)&&(t.default=Ti(t)),t}function jo(e,t){ze(e,(n,i)=>n!=null&&t.add(i))}var T0=["onStart","onRest","onChange","onPause","onResume"];function Eo(e,t,n){e.animation[n]=t[n]!==vf(t,n)?yf(t[n],e.key):void 0}function tn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var S0=["onStart","onChange","onRest"],C0=1,Cf=class{constructor(e,t){this.id=C0++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];P.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(_n(e)),this}start(e){let{queue:t}=this;return e?t=ke(e).map(_n):this.queue=[],this._flush?this._flush(this,t):(qf(this,t),yr(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Q(ke(t),i=>n[i].stop(!!e))}else vn(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(P.und(e))this.start({pause:!0});else{const t=this.springs;Q(ke(e),n=>t[n].pause())}return this}resume(e){if(P.und(e))this.start({pause:!1});else{const t=this.springs;Q(ke(e),n=>t[n].resume())}return this}each(e){ze(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,i=this._active.size>0,r=this._changed.size>0;(i&&!this._started||r&&!this._started)&&(this._started=!0,fn(e,([s,f])=>{f.value=this.get(),s(f,this,this._item)}));const a=!i&&this._started,o=r||a&&n.size?this.get():null;r&&t.size&&fn(t,([s,f])=>{f.value=o,s(f,this,this._item)}),a&&(this._started=!1,fn(n,([s,f])=>{f.value=o,s(f,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;K.onFrame(this._onFrame)}};function yr(e,t){return Promise.all(t.map(n=>Rf(e,n))).then(n=>fa(e,n))}async function Rf(e,t,n){const{keys:i,to:r,from:a,loop:o,onRest:s,onResolve:f}=t,c=P.obj(t.default)&&t.default;o&&(t.loop=!1),r===!1&&(t.to=null),a===!1&&(t.from=null);const d=P.arr(r)||P.fun(r)?r:void 0;d?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Q(S0,g=>{const p=t[g];if(P.fun(p)){const y=e._events[g];t[g]=({finished:x,cancelled:v})=>{const T=y.get(p);T?(x||(T.finished=!1),v&&(T.cancelled=!0)):y.set(p,{value:null,finished:x||!1,cancelled:v||!1})},c&&(c[g]=t[g])}});const l=e._state;t.pause===!l.paused?(l.paused=t.pause,sn(t.pause?l.pauseQueue:l.resumeQueue)):l.paused&&(t.pause=!0);const h=(i||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),b=t.cancel===!0||vf(t,"cancel")===!0;(d||b&&l.asyncId)&&h.push(wf(++e._lastAsyncId,{props:t,state:l,actions:{pause:fr,resume:fr,start(g,p){b?(vn(l,e._lastAsyncId),p(Ft(e))):(g.onRest=s,p(kf(d,g,l,e)))}}})),l.paused&&await new Promise(g=>{l.resumeQueue.add(g)});const m=fa(e,await Promise.all(h));if(o&&m.finished&&!(n&&m.noop)){const g=Sf(t,o,r);if(g)return qf(e,[g]),Rf(e,g,!0)}return f&&K.batchedUpdates(()=>f(m,e,e.item)),m}function vr(e,t){const n={...e.springs};return t&&Q(ke(t),i=>{P.und(i.keys)&&(i=_n(i)),P.obj(i.to)||(i={...i,to:void 0}),Af(n,i,r=>$f(r))}),Of(e,n),n}function Of(e,t){ze(t,(n,i)=>{e.springs[i]||(e.springs[i]=n,Vt(n,e))})}function $f(e,t){const n=new M0;return n.key=e,t&&Vt(n,t),n}function Af(e,t,n){t.keys&&Q(t.keys,i=>{(e[i]||(e[i]=n(i)))._prepareNode(t)})}function qf(e,t){Q(t,n=>{Af(e.springs,n,i=>$f(i,e))})}var Rn=({children:e,...t})=>{const n=w.useContext(Jn),i=t.pause||!!n.pause,r=t.immediate||!!n.immediate;t=o0(()=>({pause:i,immediate:r}),[i,r]);const{Provider:a}=Jn;return w.createElement(a,{value:t},e)},Jn=R0(Rn,{});Rn.Provider=Jn.Provider;Rn.Consumer=Jn.Consumer;function R0(e,t){return Object.assign(e,w.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Pf=()=>{const e=[],t=function(i){r0();const r=[];return Q(e,(a,o)=>{if(P.und(i))r.push(a.start());else{const s=n(i,a,o);s&&r.push(a.start(s))}}),r};t.current=e,t.add=function(i){e.includes(i)||e.push(i)},t.delete=function(i){const r=e.indexOf(i);~r&&e.splice(r,1)},t.pause=function(){return Q(e,i=>i.pause(...arguments)),this},t.resume=function(){return Q(e,i=>i.resume(...arguments)),this},t.set=function(i){Q(e,(r,a)=>{const o=P.fun(i)?i(a,r):i;o&&r.set(o)})},t.start=function(i){const r=[];return Q(e,(a,o)=>{if(P.und(i))r.push(a.start());else{const s=this._getProps(i,a,o);s&&r.push(a.start(s))}}),r},t.stop=function(){return Q(e,i=>i.stop(...arguments)),this},t.update=function(i){return Q(e,(r,a)=>r.update(this._getProps(i,r,a))),this};const n=function(i,r,a){return P.fun(i)?i(a,r):i};return t._getProps=n,t};function O0(e,t,n){const i=P.fun(t)&&t;i&&!n&&(n=[]);const r=w.useMemo(()=>i||arguments.length==3?Pf():void 0,[]),a=w.useRef(0),o=ia(),s=w.useMemo(()=>({ctrls:[],queue:[],flush(y,x){const v=vr(y,x);return a.current>0&&!s.queue.length&&!Object.keys(v).some(A=>!y.springs[A])?yr(y,x):new Promise(A=>{Of(y,v),s.queue.push(()=>{A(yr(y,x))}),o()})}}),[]),f=w.useRef([...s.ctrls]),c=[],d=ur(e)||0;w.useMemo(()=>{Q(f.current.slice(e,d),y=>{hr(y,r),y.stop(!0)}),f.current.length=e,l(d,e)},[e]),w.useMemo(()=>{l(0,Math.min(d,e))},n);function l(y,x){for(let v=y;vvr(y,c[x])),b=w.useContext(Rn),m=ur(b),g=b!==m&&_f(b);lt(()=>{a.current++,s.ctrls=f.current;const{queue:y}=s;y.length&&(s.queue=[],Q(y,x=>x())),Q(f.current,(x,v)=>{r?.add(x),g&&x.start({default:b});const T=c[v];T&&(xf(x,T.ref),x.ref?x.queue.push(T):x.start(T))})}),ra(()=>()=>{Q(s.ctrls,y=>y.stop(!0))});const p=h.map(y=>({...y}));return r?[p,r]:p}function Gt(e,t){const n=P.fun(e),[[i],r]=O0(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[i,r]:i}function jf(e,t,n){const i=P.fun(t)&&t,{reset:r,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:f=!1,onDestroyed:c,ref:d,config:l}=i?i():t,h=w.useMemo(()=>i||arguments.length==3?Pf():void 0,[]),b=ke(e),m=[],g=w.useRef(null),p=r?null:g.current;lt(()=>{g.current=m}),ra(()=>(Q(m,O=>{h?.add(O.ctrl),O.ctrl.ref=h}),()=>{Q(g.current,O=>{O.expired&&clearTimeout(O.expirationId),hr(O.ctrl,h),O.ctrl.stop(!0)})}));const y=A0(b,i?i():t,p),x=r&&g.current||[];lt(()=>Q(x,({ctrl:O,item:$,key:z})=>{hr(O,h),Ce(c,$,z)}));const v=[];if(p&&Q(p,(O,$)=>{O.expired?(clearTimeout(O.expirationId),x.push(O)):($=v[$]=y.indexOf(O.key),~$&&(m[$]=O))}),Q(b,(O,$)=>{m[$]||(m[$]={key:y[$],item:O,phase:"mount",ctrl:new Cf},m[$].ctrl.item=O)}),v.length){let O=-1;const{leave:$}=i?i():t;Q(v,(z,F)=>{const W=p[F];~z?(O=m.indexOf(W),m[O]={...W,item:b[z]}):$&&m.splice(++O,0,W)})}P.fun(a)&&m.sort((O,$)=>a(O.item,$.item));let T=-o;const A=ia(),S=Ti(t),D=new Map,j=w.useRef(new Map),E=w.useRef(!1);Q(m,(O,$)=>{const z=O.key,F=O.phase,W=i?i():t;let U,H;const J=Ce(W.delay||0,z);if(F=="mount")U=W.enter,H="enter";else{const B=y.indexOf(z)<0;if(F!="leave")if(B)U=W.leave,H="leave";else if(U=W.update)H="update";else return;else if(!B)U=W.enter,H="enter";else return}if(U=Ce(U,O.item,$),U=P.obj(U)?oa(U):{to:U},!U.config){const B=l||S.config;U.config=Ce(B,O.item,$,H)}T+=o;const ne={...S,delay:J+T,ref:d,immediate:W.immediate,reset:!1,...U};if(H=="enter"&&P.und(ne.from)){const B=i?i():t,G=P.und(B.initial)||p?B.from:B.initial;ne.from=Ce(G,O.item,$)}const{onResolve:de}=ne;ne.onResolve=B=>{Ce(de,B);const G=g.current,X=G.find(re=>re.key===z);if(X&&!(B.cancelled&&X.phase!="update")&&X.ctrl.idle){const re=G.every(I=>I.ctrl.idle);if(X.phase=="leave"){const I=Ce(s,X.item);if(I!==!1){const N=I===!0?0:I;if(X.expired=!0,!re&&N>0){N<=2147483647&&(X.expirationId=setTimeout(A,N));return}}}re&&G.some(I=>I.expired)&&(j.current.delete(X),f&&(E.current=!0),A())}};const oe=vr(O.ctrl,ne);H==="leave"&&f?j.current.set(O,{phase:H,springs:oe,payload:ne}):D.set(O,{phase:H,springs:oe,payload:ne})});const k=w.useContext(Rn),_=ur(k),q=k!==_&&_f(k);lt(()=>{q&&Q(m,O=>{O.ctrl.start({default:k})})},[k]),Q(D,(O,$)=>{if(j.current.size){const z=m.findIndex(F=>F.key===$.key);m.splice(z,1)}}),lt(()=>{Q(j.current.size?j.current:D,({phase:O,payload:$},z)=>{const{ctrl:F}=z;z.phase=O,h?.add(F),q&&O=="enter"&&F.start({default:k}),$&&(xf(F,$.ref),(F.ref||h)&&!E.current?F.update($):(F.start($),E.current&&(E.current=!1)))})},r?void 0:n);const R=O=>w.createElement(w.Fragment,null,m.map(($,z)=>{const{springs:F}=D.get($)||$.ctrl,W=O({...F},$.item,$,z);return W&&W.type?w.createElement(W.type,{...W.props,key:P.str($.key)||P.num($.key)?$.key:$.ctrl.id,ref:W.ref}):W}));return h?[R,h]:R}var $0=1;function A0(e,{key:t,keys:n=t},i){if(n===null){const r=new Set;return e.map(a=>{const o=i&&i.find(s=>s.item===a&&s.phase!=="leave"&&!r.has(s));return o?(r.add(o),o.key):$0++})}return P.und(n)?e:P.fun(n)?e.map(n):ke(n)}var Ef=class extends ca{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ln(...t);const n=this._get(),i=dr(n);aa(this,i.create(n))}advance(e){const t=this._get(),n=this.get();Be(t,n)||(Ue(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Io(this._active)&&Bi(this)}_get(){const e=P.arr(this.source)?this.source.map(Se):ke(Se(this.source));return this.calc(...e)}_start(){this.idle&&!Io(this._active)&&(this.idle=!1,Q(Mi(this),e=>{e.done=!1}),De.skipAnimation?(K.batchedUpdates(()=>this.advance()),Bi(this)):vi.start(this))}_attach(){let e=1;Q(ke(this.source),t=>{Ae(t)&&Vt(t,this),mr(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Q(ke(this.source),e=>{Ae(e)&&mn(e,this)}),this._active.clear(),Bi(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=ke(this.source).reduce((t,n)=>Math.max(t,(mr(n)?n.priority:0)+1),0))}};function q0(e){return e.idle!==!1}function Io(e){return!e.size||Array.from(e).every(q0)}function Bi(e){e.idle||(e.idle=!0,Q(Mi(e),t=>{t.done=!0}),bn(e,{type:"idle",parent:e}))}var P0=(e,...t)=>new Ef(e,t);De.assign({createStringInterpolator:bf,to:(e,t)=>new Ef(e,t)});var If=/^--/;function j0(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!If.test(e)&&!(dn.hasOwnProperty(e)&&dn[e])?t+"px":(""+t).trim()}var Fo={};function E0(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:i,children:r,scrollTop:a,scrollLeft:o,viewBox:s,...f}=t,c=Object.values(f),d=Object.keys(f).map(l=>n||e.hasAttribute(l)?l:Fo[l]||(Fo[l]=l.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));r!==void 0&&(e.textContent=r);for(const l in i)if(i.hasOwnProperty(l)){const h=j0(l,i[l]);If.test(l)?e.style.setProperty(l,h):e.style[l]=h}d.forEach((l,h)=>{e.setAttribute(l,c[h])}),a!==void 0&&(e.scrollTop=a),o!==void 0&&(e.scrollLeft=o),s!==void 0&&e.setAttribute("viewBox",s)}var dn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},I0=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),F0=["Webkit","Ms","Moz","O"];dn=Object.keys(dn).reduce((e,t)=>(F0.forEach(n=>e[I0(n,t)]=e[t]),e),dn);var D0=/^(matrix|translate|scale|rotate|skew)/,U0=/^(translate)/,W0=/^(rotate|skew)/,Hi=(e,t)=>P.num(e)&&e!==0?e+t:e,Yn=(e,t)=>P.arr(e)?e.every(n=>Yn(n,t)):P.num(e)?e===t:parseFloat(e)===t,N0=class extends ki{constructor({x:e,y:t,z:n,...i}){const r=[],a=[];(e||t||n)&&(r.push([e||0,t||0,n||0]),a.push(o=>[`translate3d(${o.map(s=>Hi(s,"px")).join(",")})`,Yn(o,0)])),ze(i,(o,s)=>{if(s==="transform")r.push([o||""]),a.push(f=>[f,f===""]);else if(D0.test(s)){if(delete i[s],P.und(o))return;const f=U0.test(s)?"px":W0.test(s)?"deg":"";r.push(ke(o)),a.push(s==="rotate3d"?([c,d,l,h])=>[`rotate3d(${c},${d},${l},${Hi(h,f)})`,Yn(h,0)]:c=>[`${s}(${c.map(d=>Hi(d,f)).join(",")})`,Yn(c,s.startsWith("scale")?1:0)])}}),r.length&&(i.transform=new z0(r,a)),super(i)}},z0=class extends df{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Q(this.inputs,(n,i)=>{const r=Se(n[0]),[a,o]=this.transforms[i](P.arr(r)?r:n.map(Se));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Q(this.inputs,t=>Q(t,n=>Ae(n)&&Vt(n,this)))}observerRemoved(e){e==0&&Q(this.inputs,t=>Q(t,n=>Ae(n)&&mn(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),bn(this,e)}},L0=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];De.assign({batchedUpdates:_l.unstable_batchedUpdates,createStringInterpolator:bf,colors:El});var Y0=b0(L0,{applyAnimatedValues:E0,createAnimatedStyle:e=>new N0(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Fe=Y0.animated;function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&l.height>0,p=Math.round(n[0]),y=Math.round(n[1]);g&&(i==="top"?(p-=l.width/2,y-=l.height+14):i==="right"?(p+=14,y-=l.height/2):i==="bottom"?(p-=l.width/2,y+=14):i==="left"?(p-=l.width+14,y-=l.height/2):i==="center"&&(p-=l.width/2,y-=l.height/2),b={transform:Do(p,y)},h.current||(m=!0),h.current=[p,y]);var x=Gt({to:b,config:f,immediate:!s||m}),v=yt({},B0,a.tooltip,{transform:(t=x.transform)!=null?t:Do(p,y)});return M.jsx(Fe.div,{ref:d,style:v,children:r})});Ff.displayName="TooltipWrapper";var Df=w.memo(function(e){var t=e.size,n=t===void 0?12:t,i=e.color,r=e.style;return M.jsx("span",{style:yt({display:"block",width:n,height:n,background:i},r===void 0?{}:r)})}),H0=w.memo(function(e){var t,n=e.id,i=e.value,r=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,f=e.renderContent,c=we(),d=Fr(r);if(typeof f=="function")t=f();else{var l=i;d!==void 0&&l!==void 0&&(l=d(l)),t=M.jsxs("div",{style:c.tooltip.basic,children:[o&&M.jsx(Df,{color:s,style:c.tooltip.chip}),l!==void 0?M.jsxs("span",{children:[n,": ",M.jsx("strong",{children:""+l})]}):n]})}return M.jsx("div",{style:c.tooltip.container,children:t})}),V0={width:"100%",borderCollapse:"collapse"},Uf=w.memo(function(e){var t,n=e.title,i=e.rows,r=i===void 0?[]:i,a=e.renderContent,o=we();return r.length?(t=typeof a=="function"?a():M.jsxs("div",{children:[n&&n,M.jsx("table",{style:yt({},V0,o.tooltip.table),children:M.jsx("tbody",{children:r.map(function(s,f){return M.jsx("tr",{children:s.map(function(c,d){return M.jsx("td",{style:o.tooltip.tableCell,children:c},d)})},f)})})})]}),M.jsx("div",{style:o.tooltip.container,children:t})):null});Uf.displayName="TableTooltip";var _r=w.memo(function(e){var t=e.x0,n=e.x1,i=e.y0,r=e.y1,a=we(),o=kt(),s=o.animate,f=o.config,c=w.useMemo(function(){return yt({},a.crosshair.line,{pointerEvents:"none"})},[a.crosshair.line]),d=Gt({x1:t,x2:n,y1:i,y2:r,config:f,immediate:!s});return M.jsx(Fe.line,yt({},d,{fill:"none",style:c}))});_r.displayName="CrosshairLine";var xr=w.memo(function(e){var t,n,i=e.width,r=e.height,a=e.type,o=e.x,s=e.y;return a==="cross"?(t={x0:o,x1:o,y0:0,y1:r},n={x0:0,x1:i,y0:s,y1:s}):a==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a==="top"?t={x0:o,x1:o,y0:0,y1:s}:a==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:i,y0:s,y1:s}):a==="right"?n={x0:o,x1:i,y0:s,y1:s}:a==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:r},n={x0:o,x1:i,y0:s,y1:s}):a==="bottom"?t={x0:o,x1:o,y0:s,y1:r}:a==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:r},n={x0:0,x1:o,y0:s,y1:s}):a==="left"?n={x0:0,x1:o,y0:s,y1:s}:a==="x"?t={x0:o,x1:o,y0:0,y1:r}:a==="y"&&(n={x0:0,x1:i,y0:s,y1:s}),M.jsxs(M.Fragment,{children:[t&&M.jsx(_r,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&M.jsx(_r,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});xr.displayName="Crosshair";var Wf=w.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),wr={isVisible:!1,position:[null,null],content:null,anchor:null},Nf=w.createContext(wr),G0=function(e){var t=w.useState(wr),n=t[0],i=t[1],r=w.useCallback(function(s,f,c){var d=f[0],l=f[1];c===void 0&&(c="top"),i({isVisible:!0,position:[d,l],anchor:c,content:s})},[i]),a=w.useCallback(function(s,f,c){c===void 0&&(c="top");var d=e.current.getBoundingClientRect(),l=e.current.offsetWidth,h=l===d.width?1:l/d.width,b=(f.clientX-d.left)*h,m=(f.clientY-d.top)*h;c!=="left"&&c!=="right"||(c=b1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(r--,a):void 0,o&&qh(n[0],n[1],o)&&(a=r<3?void 0:a,r=1),t=Object(t);++it?1:e>=t?0:NaN}function da(e){let t=e,n=e;e.length===1&&(t=(o,s)=>e(o)-s,n=Gh(e));function i(o,s,f,c){for(f==null&&(f=0),c==null&&(c=o.length);f>>1;n(o[d],s)<0?f=d+1:c=d}return f}function r(o,s,f,c){for(f==null&&(f=0),c==null&&(c=o.length);f>>1;n(o[d],s)>0?c=d:f=d+1}return f}function a(o,s,f,c){f==null&&(f=0),c==null&&(c=o.length);const d=i(o,s,f,c-1);return d>f&&t(o[d-1],s)>-t(o[d],s)?d-1:d}return{left:i,center:a,right:r}}function Gh(e){return(t,n)=>Vf(e(t),n)}function Xh(e){return e===null?NaN:+e}const Qh=da(Vf),Kh=Qh.right;da(Xh).center;var Mr=Math.sqrt(50),kr=Math.sqrt(10),Tr=Math.sqrt(2);function Sr(e,t,n){var i,r=-1,a,o,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((i=t0){let f=Math.round(e/s),c=Math.round(t/s);for(f*st&&--c,o=new Array(a=c-f+1);++rt&&--c,o=new Array(a=c-f+1);++r=0?(a>=Mr?10:a>=kr?5:a>=Tr?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(a>=Mr?10:a>=kr?5:a>=Tr?2:1)}function Cr(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/r;return a>=Mr?r*=10:a>=kr?r*=5:a>=Tr&&(r*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?En(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?En(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=t1.exec(e))?new Te(t[1],t[2],t[3],1):(t=n1.exec(e))?new Te(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=i1.exec(e))?En(t[1],t[2],t[3],t[4]):(t=r1.exec(e))?En(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=a1.exec(e))?Ko(t[1],t[2]/100,t[3]/100,1):(t=o1.exec(e))?Ko(t[1],t[2]/100,t[3]/100,t[4]):Bo.hasOwnProperty(e)?Go(Bo[e]):e==="transparent"?new Te(NaN,NaN,NaN,0):null}function Go(e){return new Te(e>>16&255,e>>8&255,e&255,1)}function En(e,t,n,i){return i<=0&&(e=t=n=NaN),new Te(e,t,n,i)}function Qf(e){return e instanceof Xt||(e=wn(e)),e?(e=e.rgb(),new Te(e.r,e.g,e.b,e.opacity)):new Te}function Mn(e,t,n,i){return arguments.length===1?Qf(e):new Te(e,t,n,i??1)}function Te(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}Si(Te,Mn,ha(Xt,{brighter:function(e){return e=e==null?Nt:Math.pow(Nt,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?vt:Math.pow(vt,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:Xo,formatHex:Xo,formatRgb:Qo,toString:Qo}));function Xo(){return"#"+Vi(this.r)+Vi(this.g)+Vi(this.b)}function Qo(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function Vi(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Ko(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new We(e,t,n,i)}function Kf(e){if(e instanceof We)return new We(e.h,e.s,e.l,e.opacity);if(e instanceof Xt||(e=wn(e)),!e)return new We;if(e instanceof We)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),a=Math.max(t,n,i),o=NaN,s=a-r,f=(a+r)/2;return s?(t===a?o=(n-i)/s+(n0&&f<1?0:o,new We(o,s,f,e.opacity)}function f1(e,t,n,i){return arguments.length===1?Kf(e):new We(e,t,n,i??1)}function We(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}Si(We,f1,ha(Xt,{brighter:function(e){return e=e==null?Nt:Math.pow(Nt,e),new We(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?vt:Math.pow(vt,e),new We(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,r=2*n-i;return new Te(Gi(e>=240?e-240:e+120,r,i),Gi(e,r,i),Gi(e<120?e+240:e-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Gi(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const c1=Math.PI/180,u1=180/Math.PI;var Zf=-.14861,ba=1.78277,ma=-.29227,Ci=-.90649,kn=1.97294,Zo=kn*Ci,Jo=kn*ba,es=ba*ma-Ci*Zf;function d1(e){if(e instanceof gt)return new gt(e.h,e.s,e.l,e.opacity);e instanceof Te||(e=Qf(e));var t=e.r/255,n=e.g/255,i=e.b/255,r=(es*i+Zo*t-Jo*n)/(es+Zo-Jo),a=i-r,o=(kn*(n-r)-ma*a)/Ci,s=Math.sqrt(o*o+a*a)/(kn*r*(1-r)),f=s?Math.atan2(o,a)*u1-120:NaN;return new gt(f<0?f+360:f,s,r,e.opacity)}function Le(e,t,n,i){return arguments.length===1?d1(e):new gt(e,t,n,i??1)}function gt(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}Si(gt,Le,ha(Xt,{brighter:function(e){return e=e==null?Nt:Math.pow(Nt,e),new gt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?vt:Math.pow(vt,e),new gt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*c1,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),r=Math.sin(e);return new Te(255*(t+n*(Zf*i+ba*r)),255*(t+n*(ma*i+Ci*r)),255*(t+n*(kn*i)),this.opacity)}}));function l1(e,t,n,i,r){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*i+o*r)/6}function h1(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),r=e[i],a=e[i+1],o=i>0?e[i-1]:2*r-a,s=i()=>e;function Jf(e,t){return function(n){return e+n*t}}function b1(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function m1(e,t){var n=t-e;return n?Jf(e,n>180||n<-180?n-360*Math.round(n/360):n):Ri(isNaN(e)?t:e)}function g1(e){return(e=+e)==1?Ut:function(t,n){return n-t?b1(t,n,e):Ri(isNaN(t)?n:t)}}function Ut(e,t){var n=t-e;return n?Jf(e,n):Ri(isNaN(e)?t:e)}const ts=function e(t){var n=g1(t);function i(r,a){var o=n((r=Mn(r)).r,(a=Mn(a)).r),s=n(r.g,a.g),f=n(r.b,a.b),c=Ut(r.opacity,a.opacity);return function(d){return r.r=o(d),r.g=s(d),r.b=f(d),r.opacity=c(d),r+""}}return i.gamma=e,i}(1);function p1(e){return function(t){var n=t.length,i=new Array(n),r=new Array(n),a=new Array(n),o,s;for(o=0;on&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(i=i[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,f.push({i:o,x:ei(i,r)})),n=Xi.lastIndex;return nt&&(n=e,e=t,t=n),function(i){return Math.max(e,Math.min(t,i))}}function A1(e,t,n){var i=e[0],r=e[1],a=t[0],o=t[1];return r2?q1:A1,f=c=null,l}function l(h){return h==null||isNaN(h=+h)?a:(f||(f=s(e.map(i),t,n)))(i(o(h)))}return l.invert=function(h){return o(r((c||(c=s(t,e.map(i),ei)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,O1),d()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),d()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),n=C1,d()},l.clamp=function(h){return arguments.length?(o=h?!0:Pt,d()):o!==Pt},l.interpolate=function(h){return arguments.length?(n=h,d()):n},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,b){return i=h,r=b,d()}}function tc(){return ya()(Pt,Pt)}function P1(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ti(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function zt(e){return e=ti(Math.abs(e)),e?e[1]:NaN}function j1(e,t){return function(n,i){for(var r=n.length,a=[],o=0,s=e[0],f=0;r>0&&s>0&&(f+s+1>i&&(s=Math.max(1,i-f)),a.push(n.substring(r-=s,r+s)),!((f+=s+1)>i));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function E1(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var I1=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ni(e){if(!(t=I1.exec(e)))throw new Error("invalid format: "+e);var t;return new va({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ni.prototype=va.prototype;function va(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+""}va.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 F1(e){e:for(var t=e.length,n=1,i=-1,r;n0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(r+1):e}var nc;function D1(e,t){var n=ti(e,t);if(!n)return e+"";var i=n[0],r=n[1],a=r-(nc=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")+ti(e,Math.max(0,t+a-1))[0]}function is(e,t){var n=ti(e,t);if(!n)return e+"";var i=n[0],r=n[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 rs={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:P1,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>is(e*100,t),r:is,s:D1,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function as(e){return e}var os=Array.prototype.map,ss=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function U1(e){var t=e.grouping===void 0||e.thousands===void 0?as:j1(os.call(e.grouping,Number),e.thousands+""),n=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?as:E1(os.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function c(l){l=ni(l);var h=l.fill,b=l.align,m=l.sign,g=l.symbol,p=l.zero,y=l.width,x=l.comma,v=l.precision,T=l.trim,A=l.type;A==="n"?(x=!0,A="g"):rs[A]||(v===void 0&&(v=12),T=!0,A="g"),(p||h==="0"&&b==="=")&&(p=!0,h="0",b="=");var S=g==="$"?n:g==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",D=g==="$"?i:/[%p]/.test(A)?o:"",j=rs[A],E=/[defgprs%]/.test(A);v=v===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function k(_){var q=S,R=D,O,$,z;if(A==="c")R=j(_)+R,_="";else{_=+_;var F=_<0||1/_<0;if(_=isNaN(_)?f:j(Math.abs(_),v),T&&(_=F1(_)),F&&+_==0&&m!=="+"&&(F=!1),q=(F?m==="("?m:s:m==="-"||m==="("?"":m)+q,R=(A==="s"?ss[8+nc/3]:"")+R+(F&&m==="("?")":""),E){for(O=-1,$=_.length;++O<$;)if(z=_.charCodeAt(O),48>z||z>57){R=(z===46?r+_.slice(O+1):_.slice(O))+R,_=_.slice(0,O);break}}}x&&!p&&(_=t(_,1/0));var W=q.length+_.length+R.length,U=W>1)+q+_+R+U.slice(W);break;default:_=U+q+_+R;break}return a(_)}return k.toString=function(){return l+""},k}function d(l,h){var b=c((l=ni(l),l.type="f",l)),m=Math.max(-8,Math.min(8,Math.floor(zt(h)/3)))*3,g=Math.pow(10,-m),p=ss[8+m/3];return function(y){return b(g*y)+p}}return{format:c,formatPrefix:d}}var In,_a,ic;W1({thousands:",",grouping:[3],currency:["$",""]});function W1(e){return In=U1(e),_a=In.format,ic=In.formatPrefix,In}function N1(e){return Math.max(0,-zt(Math.abs(e)))}function z1(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zt(t)/3)))*3-zt(Math.abs(e)))}function L1(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zt(t)-zt(e))+1}function Y1(e,t,n,i){var r=Cr(e,t,n),a;switch(i=ni(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(a=z1(r,o))&&(i.precision=a),ic(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=L1(r,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=N1(r))&&(i.precision=a-(i.type==="%")*2);break}}return _a(i)}function rc(e){var t=e.domain;return e.ticks=function(n){var i=t();return Sr(i[0],i[i.length-1],n??10)},e.tickFormat=function(n,i){var r=t();return Y1(r[0],r[r.length-1],n??10,i)},e.nice=function(n){n==null&&(n=10);var i=t(),r=0,a=i.length-1,o=i[r],s=i[a],f,c,d=10;for(s0;){if(c=Gf(o,s,n),c===f)return i[r]=o,i[a]=s,t(i);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;f=c}return e},e}function ac(){var e=tc();return e.copy=function(){return Oi(e,ac())},xt.apply(e,arguments),rc(e)}function oc(e,t){e=e.slice();var n=0,i=e.length-1,r=e[n],a=e[i],o;return a0){for(;h<=b;++h)for(g=1,m=a(h);gd)break;x.push(p)}}else for(;h<=b;++h)for(g=i-1,m=a(h);g>=1;--g)if(p=m*g,!(pd)break;x.push(p)}x.length*20))return f;do f.push(c=new Date(+a)),t(a,s),e(a);while(c=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(r.count=function(a,o){return Qi.setTime(+a),Ki.setTime(+o),e(Qi),e(Ki),Math.floor(n(Qi,Ki))},r.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?r.filter(i?function(o){return i(o)%a===0}:function(o){return r.count(0,o)%a===0}):r}),r}var ii=ye(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ii.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ye(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):ii};ii.range;const Ve=1e3,Pe=Ve*60,Ge=Pe*60,_t=Ge*24,xa=_t*7,hs=_t*30,Zi=_t*365;var cc=ye(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ve)},function(e,t){return(t-e)/Ve},function(e){return e.getUTCSeconds()});const jt=cc;cc.range;var uc=ye(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ve)},function(e,t){e.setTime(+e+t*Pe)},function(e,t){return(t-e)/Pe},function(e){return e.getMinutes()});const dc=uc;uc.range;var lc=ye(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ve-e.getMinutes()*Pe)},function(e,t){e.setTime(+e+t*Ge)},function(e,t){return(t-e)/Ge},function(e){return e.getHours()});const hc=lc;lc.range;var On=ye(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pe)/_t,e=>e.getDate()-1);On.range;function wt(e){return ye(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Pe)/xa})}var $i=wt(0),ri=wt(1),Z1=wt(2),J1=wt(3),Lt=wt(4),eb=wt(5),tb=wt(6);$i.range;ri.range;Z1.range;J1.range;Lt.range;eb.range;tb.range;var bc=ye(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const mc=bc;bc.range;var Xe=ye(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Xe.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ye(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Xe.range;var gc=ye(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Pe)},function(e,t){return(t-e)/Pe},function(e){return e.getUTCMinutes()});const pc=gc;gc.range;var yc=ye(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ge)},function(e,t){return(t-e)/Ge},function(e){return e.getUTCHours()});const vc=yc;yc.range;var $n=ye(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/_t},function(e){return e.getUTCDate()-1});$n.range;function Mt(e){return ye(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/xa})}var Ai=Mt(0),ai=Mt(1),nb=Mt(2),ib=Mt(3),Yt=Mt(4),rb=Mt(5),ab=Mt(6);Ai.range;ai.range;nb.range;ib.range;Yt.range;rb.range;ab.range;var _c=ye(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const xc=_c;_c.range;var Qe=ye(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Qe.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ye(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Qe.range;function wc(e,t,n,i,r,a){const o=[[jt,1,Ve],[jt,5,5*Ve],[jt,15,15*Ve],[jt,30,30*Ve],[a,1,Pe],[a,5,5*Pe],[a,15,15*Pe],[a,30,30*Pe],[r,1,Ge],[r,3,3*Ge],[r,6,6*Ge],[r,12,12*Ge],[i,1,_t],[i,2,2*_t],[n,1,xa],[t,1,hs],[t,3,3*hs],[e,1,Zi]];function s(c,d,l){const h=dp).right(o,h);if(b===o.length)return e.every(Cr(c/Zi,d/Zi,l));if(b===0)return ii.every(Math.max(Cr(c,d,l),1));const[m,g]=o[h/o[b-1][2]53)return null;"w"in C||(C.w=1),"Z"in C?(ee=er(nn(C.y,0,1)),se=ee.getUTCDay(),ee=se>4||se===0?ai.ceil(ee):ai(ee),ee=$n.offset(ee,(C.V-1)*7),C.y=ee.getUTCFullYear(),C.m=ee.getUTCMonth(),C.d=ee.getUTCDate()+(C.w+6)%7):(ee=Ji(nn(C.y,0,1)),se=ee.getDay(),ee=se>4||se===0?ri.ceil(ee):ri(ee),ee=On.offset(ee,(C.V-1)*7),C.y=ee.getFullYear(),C.m=ee.getMonth(),C.d=ee.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),se="Z"in C?er(nn(C.y,0,1)).getUTCDay():Ji(nn(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(se+5)%7:C.w+C.U*7-(se+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,er(C)):Ji(C)}}function j(I,N,Y,C){for(var ie=0,ee=N.length,se=Y.length,le,_e;ie=se)return-1;if(le=N.charCodeAt(ie++),le===37){if(le=N.charAt(ie++),_e=A[le in bs?N.charAt(ie++):le],!_e||(C=_e(I,Y,C))<0)return-1}else if(le!=Y.charCodeAt(C++))return-1}return C}function E(I,N,Y){var C=c.exec(N.slice(Y));return C?(I.p=d.get(C[0].toLowerCase()),Y+C[0].length):-1}function k(I,N,Y){var C=b.exec(N.slice(Y));return C?(I.w=m.get(C[0].toLowerCase()),Y+C[0].length):-1}function _(I,N,Y){var C=l.exec(N.slice(Y));return C?(I.w=h.get(C[0].toLowerCase()),Y+C[0].length):-1}function q(I,N,Y){var C=y.exec(N.slice(Y));return C?(I.m=x.get(C[0].toLowerCase()),Y+C[0].length):-1}function R(I,N,Y){var C=g.exec(N.slice(Y));return C?(I.m=p.get(C[0].toLowerCase()),Y+C[0].length):-1}function O(I,N,Y){return j(I,t,N,Y)}function $(I,N,Y){return j(I,n,N,Y)}function z(I,N,Y){return j(I,i,N,Y)}function F(I){return o[I.getDay()]}function W(I){return a[I.getDay()]}function U(I){return f[I.getMonth()]}function H(I){return s[I.getMonth()]}function J(I){return r[+(I.getHours()>=12)]}function ne(I){return 1+~~(I.getMonth()/3)}function de(I){return o[I.getUTCDay()]}function oe(I){return a[I.getUTCDay()]}function B(I){return f[I.getUTCMonth()]}function G(I){return s[I.getUTCMonth()]}function X(I){return r[+(I.getUTCHours()>=12)]}function re(I){return 1+~~(I.getUTCMonth()/3)}return{format:function(I){var N=S(I+="",v);return N.toString=function(){return I},N},parse:function(I){var N=D(I+="",!1);return N.toString=function(){return I},N},utcFormat:function(I){var N=S(I+="",T);return N.toString=function(){return I},N},utcParse:function(I){var N=D(I+="",!0);return N.toString=function(){return I},N}}}var bs={"-":"",_:" ",0:"0"},ve=/^\s*\d+/,db=/^%/,lb=/[\\^$*+?|[\]().{}]/g;function ae(e,t,n){var i=e<0?"-":"",r=(i?-e:e)+"",a=r.length;return i+(a[t.toLowerCase(),n]))}function bb(e,t,n){var i=ve.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function mb(e,t,n){var i=ve.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function gb(e,t,n){var i=ve.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function pb(e,t,n){var i=ve.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function yb(e,t,n){var i=ve.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function ms(e,t,n){var i=ve.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function gs(e,t,n){var i=ve.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function vb(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function _b(e,t,n){var i=ve.exec(t.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function xb(e,t,n){var i=ve.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function ps(e,t,n){var i=ve.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function wb(e,t,n){var i=ve.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function ys(e,t,n){var i=ve.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Mb(e,t,n){var i=ve.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function kb(e,t,n){var i=ve.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Tb(e,t,n){var i=ve.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Sb(e,t,n){var i=ve.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Cb(e,t,n){var i=db.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function Rb(e,t,n){var i=ve.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Ob(e,t,n){var i=ve.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function vs(e,t){return ae(e.getDate(),t,2)}function $b(e,t){return ae(e.getHours(),t,2)}function Ab(e,t){return ae(e.getHours()%12||12,t,2)}function qb(e,t){return ae(1+On.count(Xe(e),e),t,3)}function Mc(e,t){return ae(e.getMilliseconds(),t,3)}function Pb(e,t){return Mc(e,t)+"000"}function jb(e,t){return ae(e.getMonth()+1,t,2)}function Eb(e,t){return ae(e.getMinutes(),t,2)}function Ib(e,t){return ae(e.getSeconds(),t,2)}function Fb(e){var t=e.getDay();return t===0?7:t}function Db(e,t){return ae($i.count(Xe(e)-1,e),t,2)}function kc(e){var t=e.getDay();return t>=4||t===0?Lt(e):Lt.ceil(e)}function Ub(e,t){return e=kc(e),ae(Lt.count(Xe(e),e)+(Xe(e).getDay()===4),t,2)}function Wb(e){return e.getDay()}function Nb(e,t){return ae(ri.count(Xe(e)-1,e),t,2)}function zb(e,t){return ae(e.getFullYear()%100,t,2)}function Lb(e,t){return e=kc(e),ae(e.getFullYear()%100,t,2)}function Yb(e,t){return ae(e.getFullYear()%1e4,t,4)}function Bb(e,t){var n=e.getDay();return e=n>=4||n===0?Lt(e):Lt.ceil(e),ae(e.getFullYear()%1e4,t,4)}function Hb(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ae(t/60|0,"0",2)+ae(t%60,"0",2)}function _s(e,t){return ae(e.getUTCDate(),t,2)}function Vb(e,t){return ae(e.getUTCHours(),t,2)}function Gb(e,t){return ae(e.getUTCHours()%12||12,t,2)}function Xb(e,t){return ae(1+$n.count(Qe(e),e),t,3)}function Tc(e,t){return ae(e.getUTCMilliseconds(),t,3)}function Qb(e,t){return Tc(e,t)+"000"}function Kb(e,t){return ae(e.getUTCMonth()+1,t,2)}function Zb(e,t){return ae(e.getUTCMinutes(),t,2)}function Jb(e,t){return ae(e.getUTCSeconds(),t,2)}function e2(e){var t=e.getUTCDay();return t===0?7:t}function t2(e,t){return ae(Ai.count(Qe(e)-1,e),t,2)}function Sc(e){var t=e.getUTCDay();return t>=4||t===0?Yt(e):Yt.ceil(e)}function n2(e,t){return e=Sc(e),ae(Yt.count(Qe(e),e)+(Qe(e).getUTCDay()===4),t,2)}function i2(e){return e.getUTCDay()}function r2(e,t){return ae(ai.count(Qe(e)-1,e),t,2)}function a2(e,t){return ae(e.getUTCFullYear()%100,t,2)}function o2(e,t){return e=Sc(e),ae(e.getUTCFullYear()%100,t,2)}function s2(e,t){return ae(e.getUTCFullYear()%1e4,t,4)}function f2(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Yt(e):Yt.ceil(e),ae(e.getUTCFullYear()%1e4,t,4)}function c2(){return"+0000"}function xs(){return"%"}function ws(e){return+e}function Ms(e){return Math.floor(+e/1e3)}var $t,qi,Cc,Rc,Oc;u2({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 u2(e){return $t=ub(e),qi=$t.format,Cc=$t.parse,Rc=$t.utcFormat,Oc=$t.utcParse,$t}function d2(e){return new Date(e)}function l2(e){return e instanceof Date?+e:+new Date(+e)}function wa(e,t,n,i,r,a,o,s,f,c){var d=tc(),l=d.invert,h=d.domain,b=c(".%L"),m=c(":%S"),g=c("%I:%M"),p=c("%I %p"),y=c("%a %d"),x=c("%b %d"),v=c("%B"),T=c("%Y");function A(S){return(f(S)nl(e[e.length-1]);var Ma=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(te);ce(Ma);var ka=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(te);ce(ka);var Ta=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(te);ce(Ta);var Sa=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(te);ce(Sa);var Ca=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(te);ce(Ca);var Ra=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(te);ce(Ra);var Oa=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(te);ce(Oa);var $a=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(te);ce($a);var Aa=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(te);ce(Aa);var qa=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(te);ce(qa);var Pa=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(te);ce(Pa);var ja=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(te);ce(ja);var Ea=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(te);ce(Ea);var Ia=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(te);ce(Ia);var Fa=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(te);ce(Fa);var Da=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(te);ce(Da);var Ua=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(te);ce(Ua);var Wa=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(te);ce(Wa);var Na=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(te);ce(Na);var za=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(te);ce(za);var La=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(te);ce(La);var Ya=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(te);ce(Ya);var Ba=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(te);ce(Ba);var Ha=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(te);ce(Ha);var Va=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(te);ce(Va);var Ga=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(te);ce(Ga);var Xa=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(te);ce(Xa);var M2=il,k2=al,T2=ol,S2=rl,C2=Zs,R2=sl,O2=200;function $2(e,t,n,i){var r=-1,a=k2,o=!0,s=e.length,f=[],c=t.length;if(!s)return f;n&&(t=S2(t,C2(n))),i?(a=T2,o=!1):t.length>=O2&&(a=R2,o=!1,t=new M2(t));e:for(;++rut)if(!(Math.abs(d*s-f*c)>ut)||!r)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var h=n-a,b=i-o,m=s*s+f*f,g=h*h+b*b,p=Math.sqrt(m),y=Math.sqrt(l),x=r*Math.tan(($r-Math.acos((m+l-g)/(2*p*y)))/2),v=x/y,T=x/p;Math.abs(v-1)>ut&&(this._+="L"+(e+v*c)+","+(t+v*d)),this._+="A"+r+","+r+",0,0,"+ +(d*h>c*b)+","+(this._x1=e+T*s)+","+(this._y1=t+T*f)}},arc:function(e,t,n,i,r,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(i),s=n*Math.sin(i),f=e+o,c=t+s,d=1^a,l=a?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+f+","+c:(Math.abs(this._x1-f)>ut||Math.abs(this._y1-c)>ut)&&(this._+="L"+f+","+c),n&&(l<0&&(l=l%Ar+Ar),l>F2?this._+="A"+n+","+n+",0,1,"+d+","+(e-o)+","+(t-s)+"A"+n+","+n+",0,1,"+d+","+(this._x1=f)+","+(this._y1=c):l>ut&&(this._+="A"+n+","+n+",0,"+ +(l>=$r)+","+d+","+(this._x1=e+n*Math.cos(r))+","+(this._y1=t+n*Math.sin(r))))},rect:function(e,t,n,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};function Re(e){return function(){return e}}var ks=1e-12;function qc(e){this._context=e}qc.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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ka(e){return new qc(e)}function Pc(e){return e[0]}function jc(e){return e[1]}function Ec(){var e=Pc,t=jc,n=Re(!0),i=null,r=Ka,a=null;function o(s){var f,c=s.length,d,l=!1,h;for(i==null&&(a=r(h=Qa())),f=0;f<=c;++f)!(f=h;--b)s.point(x[b],v[b]);s.lineEnd(),s.areaEnd()}p&&(x[l]=+e(g,l,d),v[l]=+n(g,l,d),s.point(t?+t(g,l,d):x[l],i?+i(g,l,d):v[l]))}if(y)return s=null,y+""||null}function c(){return Ec().defined(r).curve(o).context(a)}return f.x=function(d){return arguments.length?(e=typeof d=="function"?d:Re(+d),t=null,f):e},f.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Re(+d),f):e},f.x1=function(d){return arguments.length?(t=d==null?null:typeof d=="function"?d:Re(+d),f):t},f.y=function(d){return arguments.length?(n=typeof d=="function"?d:Re(+d),i=null,f):n},f.y0=function(d){return arguments.length?(n=typeof d=="function"?d:Re(+d),f):n},f.y1=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:Re(+d),f):i},f.lineX0=f.lineY0=function(){return c().x(e).y(n)},f.lineY1=function(){return c().x(e).y(i)},f.lineX1=function(){return c().x(t).y(n)},f.defined=function(d){return arguments.length?(r=typeof d=="function"?d:Re(!!d),f):r},f.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),f):o},f.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),f):a},f}function rt(){}function oi(e,t,n){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+t)/6,(e._y0+4*e._y1+n)/6)}function Pi(e){this._context=e}Pi.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:oi(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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function U2(e){return new Pi(e)}function Ic(e){this._context=e}Ic.prototype={areaStart:rt,areaEnd:rt,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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function W2(e){return new Ic(e)}function Fc(e){this._context=e}Fc.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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function N2(e){return new Fc(e)}function Dc(e,t){this._basis=new Pi(e),this._beta=t}Dc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var i=e[0],r=t[0],a=e[n]-i,o=t[n]-r,s=-1,f;++s<=n;)f=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(i+f*a),this._beta*t[s]+(1-this._beta)*(r+f*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const z2=function e(t){function n(i){return t===1?new Pi(i):new Dc(i,t)}return n.beta=function(i){return e(+i)},n}(.85);function si(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Za(e,t){this._context=e,this._k=(1-t)/6}Za.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:si(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:si(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const L2=function e(t){function n(i){return new Za(i,t)}return n.tension=function(i){return e(+i)},n}(0);function Ja(e,t){this._context=e,this._k=(1-t)/6}Ja.prototype={areaStart:rt,areaEnd:rt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:si(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Y2=function e(t){function n(i){return new Ja(i,t)}return n.tension=function(i){return e(+i)},n}(0);function eo(e,t){this._context=e,this._k=(1-t)/6}eo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:si(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const B2=function e(t){function n(i){return new eo(i,t)}return n.tension=function(i){return e(+i)},n}(0);function to(e,t,n){var i=e._x1,r=e._y1,a=e._x2,o=e._y2;if(e._l01_a>ks){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,f=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/f,r=(r*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/f}if(e._l23_a>ks){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(i,r,a,o,e._x2,e._y2)}function Uc(e,t){this._context=e,this._alpha=t}Uc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:to(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const H2=function e(t){function n(i){return t?new Uc(i,t):new Za(i,0)}return n.alpha=function(i){return e(+i)},n}(.5);function Wc(e,t){this._context=e,this._alpha=t}Wc.prototype={areaStart:rt,areaEnd:rt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:to(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const V2=function e(t){function n(i){return t?new Wc(i,t):new Ja(i,0)}return n.alpha=function(i){return e(+i)},n}(.5);function Nc(e,t){this._context=e,this._alpha=t}Nc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:to(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const G2=function e(t){function n(i){return t?new Nc(i,t):new eo(i,0)}return n.alpha=function(i){return e(+i)},n}(.5);function zc(e){this._context=e}zc.prototype={areaStart:rt,areaEnd:rt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function X2(e){return new zc(e)}function Ts(e){return e<0?-1:1}function Ss(e,t,n){var i=e._x1-e._x0,r=t-e._x1,a=(e._y1-e._y0)/(i||r<0&&-0),o=(n-e._y1)/(r||i<0&&-0),s=(a*r+o*i)/(i+r);return(Ts(a)+Ts(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Cs(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function tr(e,t,n){var i=e._x0,r=e._y0,a=e._x1,o=e._y1,s=(a-i)/3;e._context.bezierCurveTo(i+s,r+s*t,a-s,o-s*n,a,o)}function fi(e){this._context=e}fi.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:tr(this,this._t0,Cs(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,tr(this,Cs(this,n=Ss(this,e,t)),n);break;default:tr(this,this._t0,n=Ss(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Lc(e){this._context=new Yc(e)}(Lc.prototype=Object.create(fi.prototype)).point=function(e,t){fi.prototype.point.call(this,t,e)};function Yc(e){this._context=e}Yc.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,r,a){this._context.bezierCurveTo(t,e,i,n,a,r)}};function Q2(e){return new fi(e)}function K2(e){return new Lc(e)}function Bc(e){this._context=e}Bc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var i=Rs(e),r=Rs(t),a=0,o=1;o=0;--t)r[t]=(o[t]-r[t+1])/a[t];for(a[n-1]=(e[n]+r[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function J2(e){return new ji(e,.5)}function em(e){return new ji(e,0)}function tm(e){return new ji(e,1)}function Ei(e,t){if((o=e.length)>1)for(var n=1,i,r,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function nm(e,t){if((i=e.length)>0){for(var n,i,r=0,a=e[0].length,o;r0)for(var n,i=0,r,a,o,s,f,c=e[t[0]].length;i0?(r[0]=o,r[1]=o+=a):a<0?(r[1]=s,r[0]=s+=a):(r[0]=0,r[1]=a)}function rm(e,t){if((r=e.length)>0){for(var n=0,i=e[t[0]],r,a=i.length;n0)||!((a=(r=e[t[0]]).length)>0))){for(var n=0,i=1,r,a,o;ia&&(a=r,n=t);return n}function Hc(e){var t=e.map(Vc);return Ii(e).sort(function(n,i){return t[n]-t[i]})}function Vc(e){for(var t=0,n=-1,i=e.length,r;++n=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ci(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function lm(e){return e=ci(Math.abs(e)),e?e[1]:NaN}function hm(e,t){return function(n,i){for(var r=n.length,a=[],o=0,s=e[0],f=0;r>0&&s>0&&(f+s+1>i&&(s=Math.max(1,i-f)),a.push(n.substring(r-=s,r+s)),!((f+=s+1)>i));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function bm(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var mm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pr(e){if(!(t=mm.exec(e)))throw new Error("invalid format: "+e);var t;return new no({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Pr.prototype=no.prototype;function no(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+""}no.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 gm(e){e:for(var t=e.length,n=1,i=-1,r;n0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(r+1):e}var Gc;function pm(e,t){var n=ci(e,t);if(!n)return e+"";var i=n[0],r=n[1],a=r-(Gc=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")+ci(e,Math.max(0,t+a-1))[0]}function Os(e,t){var n=ci(e,t);if(!n)return e+"";var i=n[0],r=n[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 $s={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:dm,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Os(e*100,t)},r:Os,s:pm,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function As(e){return e}var qs=Array.prototype.map,Ps=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ym(e){var t=e.grouping===void 0||e.thousands===void 0?As:hm(qs.call(e.grouping,Number),e.thousands+""),n=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?As:bm(qs.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function c(l){l=Pr(l);var h=l.fill,b=l.align,m=l.sign,g=l.symbol,p=l.zero,y=l.width,x=l.comma,v=l.precision,T=l.trim,A=l.type;A==="n"?(x=!0,A="g"):$s[A]||(v===void 0&&(v=12),T=!0,A="g"),(p||h==="0"&&b==="=")&&(p=!0,h="0",b="=");var S=g==="$"?n:g==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",D=g==="$"?i:/[%p]/.test(A)?o:"",j=$s[A],E=/[defgprs%]/.test(A);v=v===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function k(_){var q=S,R=D,O,$,z;if(A==="c")R=j(_)+R,_="";else{_=+_;var F=_<0||1/_<0;if(_=isNaN(_)?f:j(Math.abs(_),v),T&&(_=gm(_)),F&&+_==0&&m!=="+"&&(F=!1),q=(F?m==="("?m:s:m==="-"||m==="("?"":m)+q,R=(A==="s"?Ps[8+Gc/3]:"")+R+(F&&m==="("?")":""),E){for(O=-1,$=_.length;++O<$;)if(z=_.charCodeAt(O),48>z||z>57){R=(z===46?r+_.slice(O+1):_.slice(O))+R,_=_.slice(0,O);break}}}x&&!p&&(_=t(_,1/0));var W=q.length+_.length+R.length,U=W>1)+q+_+R+U.slice(W);break;default:_=U+q+_+R;break}return a(_)}return k.toString=function(){return l+""},k}function d(l,h){var b=c((l=Pr(l),l.type="f",l)),m=Math.max(-8,Math.min(8,Math.floor(lm(h)/3)))*3,g=Math.pow(10,-m),p=Ps[8+m/3];return function(y){return b(g*y)+p}}return{format:c,formatPrefix:d}}var Fn,Fi;vm({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function vm(e){return Fn=ym(e),Fi=Fn.format,Fn.formatPrefix,Fn}var _m=fl,xm=Hf,wm=Ks;function Mm(e,t,n){for(var i=-1,r=t.length,a={};++i=0||(r[n]=e[n]);return r}var at={fill:u.string,fontSize:u.number,fontFamily:u.string},jm=u.shape({domain:u.shape({line:u.shape({stroke:u.string.isRequired,strokeWidth:u.number.isRequired,strokeDasharray:u.string}).isRequired}).isRequired,ticks:u.shape({line:u.shape({stroke:u.string.isRequired,strokeWidth:u.number.isRequired,strokeDasharray:u.string}).isRequired,text:u.shape(ge({},at)).isRequired}).isRequired,legend:u.shape({text:u.shape(ge({},at)).isRequired}).isRequired}),Em=u.shape({line:u.shape({stroke:u.string.isRequired,strokeWidth:u.number.isRequired,strokeDasharray:u.string}).isRequired}),Im=u.shape({hidden:u.shape({symbol:u.shape({fill:u.string.isRequired,opacity:u.number}).isRequired,text:u.shape(ge({},at,{opacity:u.number})).isRequired}).isRequired,text:u.shape(ge({},at)).isRequired}),Fm=u.shape({text:u.shape(ge({},at)).isRequired}),Dm=u.shape({text:u.shape(ge({},at)).isRequired}),Um=u.shape({text:u.shape(ge({},at)).isRequired}),Wm=u.shape({line:u.shape({stroke:u.string.isRequired,strokeWidth:u.number.isRequired,strokeDasharray:u.string}).isRequired}),Nm=u.shape({text:u.shape(ge({},at,{outlineWidth:u.number.isRequired,outlineColor:u.string.isRequired})).isRequired,link:u.shape({stroke:u.string.isRequired,strokeWidth:u.number.isRequired,outlineWidth:u.number.isRequired,outlineColor:u.string.isRequired}).isRequired,outline:u.shape({stroke:u.string.isRequired,strokeWidth:u.number.isRequired,outlineWidth:u.number.isRequired,outlineColor:u.string.isRequired}).isRequired,symbol:u.shape({fill:u.string.isRequired,outlineWidth:u.number.isRequired,outlineColor:u.string.isRequired}).isRequired});u.shape({background:u.string.isRequired,fontFamily:u.string.isRequired,fontSize:u.number.isRequired,textColor:u.string.isRequired,axis:jm.isRequired,grid:Em.isRequired,legends:Im.isRequired,labels:Fm.isRequired,dots:Dm.isRequired,markers:Um,crosshair:Wm.isRequired,annotations:Nm.isRequired});var zm={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent"},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},Lm=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],Ym=function(e,t){var n=Uh({},e,t);return Lm.forEach(function(i){Oe(n,i+".fontFamily")===void 0&&He(n,i+".fontFamily",n.text.fontFamily),Oe(n,i+".fontSize")===void 0&&He(n,i+".fontSize",n.text.fontSize),Oe(n,i+".fill")===void 0&&He(n,i+".fill",n.text.fill),Oe(n,i+".outlineWidth")===void 0&&He(n,i+".outlineWidth",n.text.outlineWidth),Oe(n,i+".outlineColor")===void 0&&He(n,i+".outlineColor",n.text.outlineColor)}),n},Xc=w.createContext(),ro=function(e){var t=e.children,n=e.animate,i=e.config,r=w.useMemo(function(){var a=ll(i)?sa[i]:i;return{animate:n,config:a}},[n,i]);return M.jsx(Xc.Provider,{value:r,children:t})},Er={animate:u.bool,motionConfig:u.oneOfType([u.oneOf(Object.keys(sa)),u.shape({mass:u.number,tension:u.number,friction:u.number,clamp:u.bool,precision:u.number,velocity:u.number,duration:u.number,easing:u.func})])};ro.propTypes={children:u.node.isRequired,animate:Er.animate,config:Er.motionConfig};var Bm={animate:!0,config:"default"};ro.defaultProps=Bm;var kt=function(){return w.useContext(Xc)},Qc=function(e){var t=kt(),n=t.animate,i=t.config,r=function(s){var f=w.useRef();return w.useEffect(function(){f.current=s},[s]),f.current}(e),a=w.useMemo(function(){return dl(r,e)},[r,e]),o=Gt({from:{value:0},to:{value:1},reset:!0,config:i,immediate:!n}).value;return P0(o,a)},Hm={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:L(Ma),PRGn:L(ka),PiYG:L(Ta),PuOr:L(Sa),RdBu:L(Ca),RdGy:L(Ra),RdYlBu:L(Oa),RdYlGn:L($a),spectral:L(Aa),blues:L(Ya),greens:L(Ba),greys:L(Ha),oranges:L(Xa),purples:L(Va),reds:L(Ga),BuGn:L(qa),BuPu:L(Pa),GnBu:L(ja),OrRd:L(Ea),PuBuGn:L(Ia),PuBu:L(Fa),PuRd:L(Da),RdPu:L(Ua),YlGnBu:L(Wa),YlGn:L(Na),YlOrBr:L(za),YlOrRd:L(La)},Vm=Object.keys(Hm);L(Ma),L(ka),L(Ta),L(Sa),L(Ca),L(Ra),L(Oa),L($a),L(Aa),L(Ya),L(Ba),L(Ha),L(Xa),L(Va),L(Ga),L(qa),L(Pa),L(ja),L(Ea),L(Ia),L(Fa),L(Da),L(Ua),L(Wa),L(Na),L(za),L(La);u.oneOfType([u.oneOf(Vm),u.func,u.arrayOf(u.string)]);var Ir={basis:U2,basisClosed:W2,basisOpen:N2,bundle:z2,cardinal:L2,cardinalClosed:Y2,cardinalOpen:B2,catmullRom:H2,catmullRomClosed:V2,catmullRomOpen:G2,linear:Ka,linearClosed:X2,monotoneX:Q2,monotoneY:K2,natural:Z2,step:J2,stepAfter:tm,stepBefore:em},Di=Object.keys(Ir);u.oneOf(Di);Di.filter(function(e){return e.endsWith("Closed")});Ac(Di,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var Gm=Ac(Di,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),Xm=u.oneOf(Gm),Kc=function(e){if(!Ir[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Ir[e]},Qm={defs:u.arrayOf(u.shape({id:u.string.isRequired})).isRequired,fill:u.arrayOf(u.shape({id:u.string.isRequired,match:u.oneOfType([u.oneOf(["*"]),u.object,u.func]).isRequired})).isRequired},Km={ascending:Hc,descending:fm,insideOut:cm,none:Ii,reverse:um},Zm=Object.keys(Km);u.oneOf(Zm);var Jm={expand:nm,diverging:im,none:Ei,silhouette:rm,wiggle:am},eg=Object.keys(Jm);u.oneOf(eg);u.shape({top:u.number,right:u.number,bottom:u.number,left:u.number}).isRequired;var tg=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ao=u.oneOf(tg);ht($c);var ng={top:0,right:0,bottom:0,left:0},Zc=function(e,t,n){return n===void 0&&(n={}),w.useMemo(function(){var i=ge({},ng,n);return{margin:i,innerWidth:e-i.left-i.right,innerHeight:t-i.top-i.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},Jc=function(){var e=w.useRef(null),t=w.useState({left:0,top:0,width:0,height:0}),n=t[0],i=t[1],r=w.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(a){var o=a[0];return i(o.contentRect)})})[0];return w.useEffect(function(){return e.current&&r!==null&&r.observe(e.current),function(){r!==null&&r.disconnect()}},[]),[e,n]},ig=function(e){return w.useMemo(function(){return Ym(zm,e)},[e])},rg=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?qi(e.slice("5")):Fi(e):function(t){return""+t}},Fr=function(e){return w.useMemo(function(){return rg(e)},[e])},eu=w.createContext(),ag={},tu=function(e){var t=e.theme,n=t===void 0?ag:t,i=e.children,r=ig(n);return M.jsx(eu.Provider,{value:r,children:i})};tu.propTypes={children:u.node.isRequired,theme:u.object};var we=function(){return w.useContext(eu)},nu=function(e){var t=e.children,n=e.condition,i=e.wrapper;return n?w.cloneElement(i,{},t):t};nu.propTypes={children:u.node.isRequired,condition:u.bool.isRequired,wrapper:u.element.isRequired};var og={position:"relative"},iu=function(e){var t=e.children,n=e.theme,i=e.renderWrapper,r=i===void 0||i,a=e.isInteractive,o=a===void 0||a,s=e.animate,f=e.motionConfig,c=w.useRef(null);return M.jsx(tu,{theme:n,children:M.jsx(ro,{animate:s,config:f,children:M.jsx(Z0,{container:c,children:M.jsxs(nu,{condition:r,wrapper:M.jsx("div",{style:og,ref:c}),children:[t,o&&M.jsx(K0,{})]})})})})};iu.propTypes={children:u.element.isRequired,isInteractive:u.bool,renderWrapper:u.bool,theme:u.object,animate:u.bool,motionConfig:u.string};u.func.isRequired,u.bool,u.bool,u.object.isRequired,u.bool.isRequired,u.string;var oo=function(e){var t=e.children,n=Jc(),i=n[0],r=n[1],a=r.width>0&&r.height>0;return M.jsx("div",{ref:i,style:{width:"100%",height:"100%"},children:a&&t({width:r.width,height:r.height})})};oo.propTypes={children:u.func.isRequired};var sg=["id","colors"],ru=function(e){var t=e.id,n=e.colors,i=io(e,sg);return M.jsx("linearGradient",ge({id:t,x1:0,x2:0,y1:0,y2:1},i,{children:n.map(function(r){var a=r.offset,o=r.color,s=r.opacity;return M.jsx("stop",{offset:a+"%",stopColor:o,stopOpacity:s!==void 0?s:1},a)})}))};ru.propTypes={id:u.string.isRequired,colors:u.arrayOf(u.shape({offset:u.number.isRequired,color:u.string.isRequired,opacity:u.number})).isRequired,gradientTransform:u.string};var au={linearGradient:ru},Bn=w.memo(function(e){var t=e.id,n=e.background,i=e.color,r=e.size,a=e.padding,o=e.stagger,s=r+a,f=r/2,c=a/2;return o===!0&&(s=2*r+2*a),M.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[M.jsx("rect",{width:s,height:s,fill:n}),M.jsx("circle",{cx:c+f,cy:c+f,r:f,fill:i}),o&&M.jsx("circle",{cx:1.5*a+r+f,cy:1.5*a+r+f,r:f,fill:i})]})});Bn.displayName="PatternDots",Bn.propTypes={id:u.string.isRequired,color:u.string.isRequired,background:u.string.isRequired,size:u.number.isRequired,padding:u.number.isRequired,stagger:u.bool.isRequired},Bn.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var ui=function(e){return e*Math.PI/180},fg={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Hn=w.memo(function(e){var t=e.id,n=e.spacing,i=e.rotation,r=e.background,a=e.color,o=e.lineWidth,s=Math.round(i)%360,f=Math.abs(n);s>180?s-=360:s>90?s-=180:s<-180?s+=360:s<-90&&(s+=180);var c,d=f,l=f;return s===0?c=` + M 0 0 L `+d+` 0 + M 0 `+l+" L "+d+" "+l+` + `:s===90?c=` + M 0 0 L 0 `+l+` + M `+d+" 0 L "+d+" "+l+` + `:(d=Math.abs(f/Math.sin(ui(s))),l=f/Math.sin(ui(90-s)),c=s>0?` + M 0 `+-l+" L "+2*d+" "+l+` + M `+-d+" "+-l+" L "+d+" "+l+` + M `+-d+" 0 L "+d+" "+2*l+` + `:` + M `+-d+" "+l+" L "+d+" "+-l+` + M `+-d+" "+2*l+" L "+2*d+" "+-l+` + M 0 `+2*l+" L "+2*d+` 0 + `),M.jsxs("pattern",{id:t,width:d,height:l,patternUnits:"userSpaceOnUse",children:[M.jsx("rect",{width:d,height:l,fill:r,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),M.jsx("path",{d:c,strokeWidth:o,stroke:a,strokeLinecap:"square"})]})});Hn.displayName="PatternLines",Hn.propTypes={id:u.string.isRequired,spacing:u.number.isRequired,rotation:u.number.isRequired,background:u.string.isRequired,color:u.string.isRequired,lineWidth:u.number.isRequired},Hn.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var Vn=w.memo(function(e){var t=e.id,n=e.background,i=e.color,r=e.size,a=e.padding,o=e.stagger,s=r+a,f=a/2;return o===!0&&(s=2*r+2*a),M.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[M.jsx("rect",{width:s,height:s,fill:n}),M.jsx("rect",{x:f,y:f,width:r,height:r,fill:i}),o&&M.jsx("rect",{x:1.5*a+r,y:1.5*a+r,width:r,height:r,fill:i})]})});Vn.displayName="PatternSquares",Vn.propTypes={id:u.string.isRequired,color:u.string.isRequired,background:u.string.isRequired,size:u.number.isRequired,padding:u.number.isRequired,stagger:u.bool.isRequired},Vn.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var ou={patternDots:Bn,patternLines:Hn,patternSquares:Vn},cg=["type"],Dr=ge({},au,ou),su=function(e){var t=e.defs;return!t||t.length<1?null:M.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var i=n.type,r=io(n,cg);return Dr[i]?w.createElement(Dr[i],ge({key:r.id},r)):null})})};su.propTypes={defs:u.arrayOf(u.shape({type:u.oneOf(Object.keys(Dr)).isRequired,id:u.string.isRequired}))};var ug=w.memo(su),fu=function(e){var t=e.width,n=e.height,i=e.margin,r=e.defs,a=e.children,o=e.role,s=e.ariaLabel,f=e.ariaLabelledBy,c=e.ariaDescribedBy,d=e.isFocusable,l=we();return M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:o,"aria-label":s,"aria-labelledby":f,"aria-describedby":c,focusable:d,tabIndex:d?0:void 0,children:[M.jsx(ug,{defs:r}),M.jsx("rect",{width:t,height:n,fill:l.background}),M.jsx("g",{transform:"translate("+i.left+","+i.top+")",children:a})]})};fu.propTypes={width:u.number.isRequired,height:u.number.isRequired,margin:u.shape({top:u.number.isRequired,left:u.number.isRequired}).isRequired,defs:u.array,children:u.oneOfType([u.arrayOf(u.node),u.node]).isRequired,role:u.string,isFocusable:u.bool,ariaLabel:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string};var cu=function(e){var t=e.size,n=e.color,i=e.borderWidth,r=e.borderColor;return M.jsx("circle",{r:t/2,fill:n,stroke:r,strokeWidth:i,style:{pointerEvents:"none"}})};cu.propTypes={size:u.number.isRequired,color:u.string.isRequired,borderWidth:u.number.isRequired,borderColor:u.string.isRequired};var dg=w.memo(cu),uu=function(e){var t=e.x,n=e.y,i=e.symbol,r=i===void 0?dg:i,a=e.size,o=e.datum,s=e.color,f=e.borderWidth,c=e.borderColor,d=e.label,l=e.labelTextAnchor,h=l===void 0?"middle":l,b=e.labelYOffset,m=b===void 0?-12:b,g=we(),p=kt(),y=p.animate,x=p.config,v=Gt({transform:"translate("+t+", "+n+")",config:x,immediate:!y});return M.jsxs(Fe.g,{transform:v.transform,style:{pointerEvents:"none"},children:[w.createElement(r,{size:a,color:s,datum:o,borderWidth:f,borderColor:c}),d&&M.jsx("text",{textAnchor:h,y:m,style:g.dots.text,children:d})]})};uu.propTypes={x:u.number.isRequired,y:u.number.isRequired,datum:u.object.isRequired,size:u.number.isRequired,color:u.string.isRequired,borderWidth:u.number.isRequired,borderColor:u.string.isRequired,symbol:u.oneOfType([u.func,u.object]),label:u.oneOfType([u.string,u.number]),labelTextAnchor:u.oneOf(["start","middle","end"]),labelYOffset:u.number};var lg=w.memo(uu),Ur=function(e){var t=e.width,n=e.height,i=e.axis,r=e.scale,a=e.value,o=e.lineStyle,s=e.textStyle,f=e.legend,c=e.legendPosition,d=e.legendOffsetX,l=e.legendOffsetY,h=e.legendOrientation,b=we(),m=0,g=0,p=0,y=0;i==="y"?(p=r(a),g=t):(m=r(a),y=n);var x=null;if(f){var v=function(T){var A=T.axis,S=T.width,D=T.height,j=T.position,E=T.offsetX,k=T.offsetY,_=T.orientation,q=0,R=0,O=_==="vertical"?-90:0,$="start";if(A==="x")switch(j){case"top-left":q=-E,R=k,$="end";break;case"top":R=-k,$=_==="horizontal"?"middle":"start";break;case"top-right":q=E,R=k,$=_==="horizontal"?"start":"end";break;case"right":q=E,R=D/2,$=_==="horizontal"?"start":"middle";break;case"bottom-right":q=E,R=D-k,$="start";break;case"bottom":R=D+k,$=_==="horizontal"?"middle":"end";break;case"bottom-left":R=D-k,q=-E,$=_==="horizontal"?"end":"start";break;case"left":q=-E,R=D/2,$=_==="horizontal"?"end":"middle"}else switch(j){case"top-left":q=E,R=-k,$="start";break;case"top":q=S/2,R=-k,$=_==="horizontal"?"middle":"start";break;case"top-right":q=S-E,R=-k,$=_==="horizontal"?"end":"start";break;case"right":q=S+E,$=_==="horizontal"?"start":"middle";break;case"bottom-right":q=S-E,R=k,$="end";break;case"bottom":q=S/2,R=k,$=_==="horizontal"?"middle":"end";break;case"bottom-left":q=E,R=k,$=_==="horizontal"?"start":"end";break;case"left":q=-E,$=_==="horizontal"?"end":"middle"}return{x:q,y:R,rotation:O,textAnchor:$}}({axis:i,width:t,height:n,position:c,offsetX:d,offsetY:l,orientation:h});x=M.jsx("text",{transform:"translate("+v.x+", "+v.y+") rotate("+v.rotation+")",textAnchor:v.textAnchor,dominantBaseline:"central",style:s,children:f})}return M.jsxs("g",{transform:"translate("+m+", "+p+")",children:[M.jsx("line",{x1:0,x2:g,y1:0,y2:y,stroke:b.markers.lineColor,strokeWidth:b.markers.lineStrokeWidth,style:o}),x]})};Ur.propTypes={width:u.number.isRequired,height:u.number.isRequired,axis:u.oneOf(["x","y"]).isRequired,scale:u.func.isRequired,value:u.oneOfType([u.number,u.string,u.instanceOf(Date)]).isRequired,lineStyle:u.object,textStyle:u.object,legend:u.string,legendPosition:u.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:u.number.isRequired,legendOffsetY:u.number.isRequired,legendOrientation:u.oneOf(["horizontal","vertical"]).isRequired},Ur.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var hg=w.memo(Ur),du=function(e){var t=e.markers,n=e.width,i=e.height,r=e.xScale,a=e.yScale;return t&&t.length!==0?t.map(function(o,s){return M.jsx(hg,ge({},o,{width:n,height:i,scale:o.axis==="y"?a:r}),s)}):null};du.propTypes={width:u.number.isRequired,height:u.number.isRequired,xScale:u.func.isRequired,yScale:u.func.isRequired,markers:u.arrayOf(u.shape({axis:u.oneOf(["x","y"]).isRequired,value:u.oneOfType([u.number,u.string,u.instanceOf(Date)]).isRequired,lineStyle:u.object,textStyle:u.object}))};var bg=w.memo(du),mg=["theme","renderWrapper","animate","motionConfig"],lu=function(e){return function(t){var n,i;function r(){return t.apply(this,arguments)||this}return i=t,(n=r).prototype=Object.create(i.prototype),n.prototype.constructor=n,jr(n,i),r.prototype.render=function(){var a=this.props,o=a.theme,s=a.renderWrapper,f=a.animate,c=a.motionConfig,d=io(a,mg);return M.jsx(iu,{theme:o,renderWrapper:s,isInteractive:d.isInteractive,animate:f,motionConfig:c,children:M.jsx(e,ge({},d))})},r}(w.Component)},gg=function(e,t){var n,i=or(e)?e:function(r){return Oe(r,e)};return t&&(n=or(t)?t:Fi(t)),n?function(r){return n(i(r))}:i},pg=function(e,t,n,i,r,a){return e<=r&&r<=e+n&&t<=a&&a<=t+i},hu=function(e,t){var n,i=t.clientX,r=t.clientY,a=e.getBoundingClientRect(),o=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}).width===a.width?1:n.width/a.width;return[(i-a.left)*o,(r-a.top)*o]},yg=Object.keys(au),vg=Object.keys(ou),_g=function(e,t,n){if(e==="*")return!0;if(or(e))return e(t);if(Vr(e)){var i=n?Oe(t,n):t;return hl(Pm(i,Object.keys(e)),e)}return!1},xg=function(e,t,n,i){var r=i===void 0?{}:i,a=r.dataKey,o=r.colorKey,s=o===void 0?"color":o,f=r.targetKey,c=f===void 0?"fill":f,d=[],l={};return e.length&&t.length&&(d=[].concat(e),t.forEach(function(h){for(var b=function(){var g=n[m],p=g.id,y=g.match;if(_g(y,h,a)){var x=e.find(function(k){return k.id===p});if(x){if(vg.includes(x.type))if(x.background==="inherit"||x.color==="inherit"){var v=Oe(h,s),T=x.background,A=x.color,S=p;x.background==="inherit"&&(S=S+".bg."+v,T=v),x.color==="inherit"&&(S=S+".fg."+v,A=v),He(h,c,"url(#"+S+")"),l[S]||(d.push(ge({},x,{id:S,background:T,color:A})),l[S]=1)}else He(h,c,"url(#"+p+")");else if(yg.includes(x.type))if(x.colors.map(function(k){return k.color}).includes("inherit")){var D=Oe(h,s),j=p,E=ge({},x,{colors:x.colors.map(function(k,_){return k.color!=="inherit"?k:(j=j+"."+_+"."+D,ge({},k,{color:k.color==="inherit"?D:k.color}))})});E.id=j,He(h,c,"url(#"+j+")"),l[j]||(d.push(E),l[j]=1)}else He(h,c,"url(#"+p+")")}return"break"}},m=0;my1(e[e.length-1]);var bu=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Z);const Ag=ue(bu);var mu=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Z);const qg=ue(mu);var gu=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Z);const Pg=ue(gu);var pu=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Z);const jg=ue(pu);var yu=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Z);const Eg=ue(yu);var vu=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Z);const Ig=ue(vu);var _u=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Z);const Fg=ue(_u);var xu=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Z);const Dg=ue(xu);var wu=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Z);const Ug=ue(wu);var Mu=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Z);const Wg=ue(Mu);var ku=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Z);const Ng=ue(ku);var Tu=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Z);const zg=ue(Tu);var Su=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Z);const Lg=ue(Su);var Cu=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Z);const Yg=ue(Cu);var Ru=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Z);const Bg=ue(Ru);var Ou=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Z);const Hg=ue(Ou);var $u=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Z);const Vg=ue($u);var Au=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Z);const Gg=ue(Au);var qu=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Z);const Xg=ue(qu);var Pu=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Z);const Qg=ue(Pu);var ju=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Z);const Kg=ue(ju);var Eu=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Z);const Zg=ue(Eu);var Iu=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Z);const Jg=ue(Iu);var Fu=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Z);const ep=ue(Fu);var Du=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Z);const tp=ue(Du);var Uu=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Z);const np=ue(Uu);var Wu=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Z);const ip=ue(Wu);function rp(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const ap=pa(Le(300,.5,0),Le(-240,.5,1));var op=pa(Le(-100,.75,.35),Le(80,1.5,.8)),sp=pa(Le(260,.75,.35),Le(80,1.5,.8)),Dn=Le();function fp(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Dn.h=360*e-100,Dn.s=1.5-1.5*t,Dn.l=.8-.9*t,Dn+""}var Un=Mn(),cp=Math.PI/3,up=Math.PI*2/3;function dp(e){var t;return e=(.5-e)*Math.PI,Un.r=255*(t=Math.sin(e))*t,Un.g=255*(t=Math.sin(e+cp))*t,Un.b=255*(t=Math.sin(e+up))*t,Un+""}function lp(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Ui(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const hp=Ui(Z("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var bp=Ui(Z("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),mp=Ui(Z("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),gp=Ui(Z("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Nu={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:wg,accent:Mg,dark2:kg,paired:Tg,pastel1:Sg,pastel2:Cg,set1:Rg,set2:Og,set3:$g},yp=Object.keys(Nu),zu={brown_blueGreen:bu,purpleRed_green:mu,pink_yellowGreen:gu,purple_orange:pu,red_blue:yu,red_grey:vu,red_yellow_blue:_u,red_yellow_green:xu,spectral:wu},vp=Object.keys(zu),_p={brown_blueGreen:Ag,purpleRed_green:qg,pink_yellowGreen:Pg,purple_orange:jg,red_blue:Eg,red_grey:Ig,red_yellow_blue:Fg,red_yellow_green:Dg,spectral:Ug},Lu={blues:Eu,greens:Iu,greys:Fu,oranges:Wu,purples:Du,reds:Uu,blue_green:Mu,blue_purple:ku,green_blue:Tu,orange_red:Su,purple_blue_green:Cu,purple_blue:Ru,purple_red:Ou,red_purple:$u,yellow_green_blue:Au,yellow_green:qu,yellow_orange_brown:Pu,yellow_orange_red:ju},xp=Object.keys(Lu),wp={blues:Zg,greens:Jg,greys:ep,oranges:ip,purples:tp,reds:np,turbo:lp,viridis:hp,inferno:mp,magma:bp,plasma:gp,cividis:rp,warm:op,cool:sp,cubehelixDefault:ap,blue_green:Wg,blue_purple:Ng,green_blue:zg,orange_red:Lg,purple_blue_green:Yg,purple_blue:Bg,purple_red:Hg,red_purple:Vg,yellow_green_blue:Gg,yellow_green:Xg,yellow_orange_brown:Qg,yellow_orange_red:Kg},Gn=di({},Nu,zu,Lu),Mp=Object.keys(Gn),kp=function(e){return yp.includes(e)},Tp=function(e){return vp.includes(e)},Sp=function(e){return xp.includes(e)},Cp={rainbow:fp,sinebow:dp};di({},_p,wp,Cp);var Rp=function(e,t){if(typeof e=="function")return e;if(Vr(e)){if(function(f){return f.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=Oe(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(f){return f.from!==void 0}(e)){var i=function(f){return Oe(f,e.from)};if(Array.isArray(e.modifiers)){for(var r,a=[],o=function(){var f=r.value,c=f[0],d=f[1];if(c==="brighter")a.push(function(l){return l.brighter(d)});else if(c==="darker")a.push(function(l){return l.darker(d)});else{if(c!=="opacity")throw new Error("Invalid color modifier: '"+c+"', must be one of: 'brighter', 'darker', 'opacity'");a.push(function(l){return l.opacity=d,l})}},s=pp(e.modifiers);!(r=s()).done;)o();return a.length===0?i:function(f){return a.reduce(function(c,d){return d(c)},bl(i(f))).toString()}}return i}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},li=function(e,t){return w.useMemo(function(){return Rp(e,t)},[e,t])},Op=u.oneOfType([u.func,u.arrayOf(u.string),u.shape({scheme:u.oneOf(Mp).isRequired,size:u.number}),u.shape({datum:u.string.isRequired}),u.string]);u.oneOfType([u.string,u.func,u.shape({theme:u.string.isRequired}),u.shape({from:u.string.isRequired,modifiers:u.arrayOf(u.array)})]);var $p=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(l){return Oe(l,t)};if(Array.isArray(e)){var i=ht(e),r=function(l){return i(n(l))};return r.scale=i,r}if(Vr(e)){if(function(l){return l.datum!==void 0}(e))return function(l){return Oe(l,e.datum)};if(function(l){return l.scheme!==void 0}(e)){if(kp(e.scheme)){var a=ht(Gn[e.scheme]),o=function(l){return a(n(l))};return o.scale=a,o}if(Tp(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=ht(Gn[e.scheme][e.size||11]),f=function(l){return s(n(l))};return f.scale=s,f}if(Sp(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var c=ht(Gn[e.scheme][e.size||9]),d=function(l){return c(n(l))};return d.scale=c,d}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Ap=function(e,t){return w.useMemo(function(){return $p(e,t)},[e,t])},qp=ml;function Pp(e){return e&&e.length?qp(e):[]}var jp=Pp;const Es=Ht(jp);var Ep=gl,Ip=Gs,Fp="[object Date]";function Dp(e){return Ip(e)&&Ep(e)==Fp}var Up=Dp,Wp=Up,Np=Zs,Is=pl,Fs=Is&&Is.isDate,zp=Fs?Np(Fs):Wp,Lp=zp;const Yp=Ht(Lp);var nr=new Date,ir=new Date;function pe(e,t,n,i){function r(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return r.floor=function(a){return e(a=new Date(+a)),a},r.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},r.round=function(a){var o=r(a),s=r.ceil(a);return a-o0))return f;do f.push(c=new Date(+a)),t(a,s),e(a);while(c=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(r.count=function(a,o){return nr.setTime(+a),ir.setTime(+o),e(nr),e(ir),Math.floor(n(nr,ir))},r.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?r.filter(i?function(o){return i(o)%a===0}:function(o){return r.count(0,o)%a===0}):r}),r}var hi=pe(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});hi.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pe(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):hi};const Ds=hi;hi.range;var bi=1e3,Bt=6e4,mi=36e5,Yu=6048e5,Bu=pe(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*bi)},function(e,t){return(t-e)/bi},function(e){return e.getUTCSeconds()});const Us=Bu;Bu.range;var Hu=pe(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*bi)},function(e,t){e.setTime(+e+t*Bt)},function(e,t){return(t-e)/Bt},function(e){return e.getMinutes()});const Bp=Hu;Hu.range;var Vu=pe(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*bi-e.getMinutes()*Bt)},function(e,t){e.setTime(+e+t*mi)},function(e,t){return(t-e)/mi},function(e){return e.getHours()});const Hp=Vu;Vu.range;function Tt(e){return pe(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Bt)/Yu})}var Wr=Tt(0),Gu=Tt(1),Xu=Tt(2),Qu=Tt(3),Ku=Tt(4),Zu=Tt(5),Ju=Tt(6);Wr.range;Gu.range;Xu.range;Qu.range;Ku.range;Zu.range;Ju.range;var ed=pe(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const Vp=ed;ed.range;var so=pe(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});so.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pe(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};const Gp=so;so.range;var td=pe(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Bt)},function(e,t){return(t-e)/Bt},function(e){return e.getUTCMinutes()});const Xp=td;td.range;var nd=pe(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*mi)},function(e,t){return(t-e)/mi},function(e){return e.getUTCHours()});const Qp=nd;nd.range;function St(e){return pe(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/Yu})}var Nr=St(0),id=St(1),rd=St(2),ad=St(3),od=St(4),sd=St(5),fd=St(6);Nr.range;id.range;rd.range;ad.range;od.range;sd.range;fd.range;var cd=pe(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const Kp=cd;cd.range;var fo=pe(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});fo.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pe(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};const Zp=fo;fo.range;function dt(){return dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?(x=b.align[y?"left":"right"],v=b.baseline.center):(r==="after"&&f>0||r==="before"&&f<0)&&(x=b.align[y?"right":"left"],v=b.baseline.center)):(t=function(T){var A;return{x:0,y:(A=m(T))!=null?A:0}},g.lineX=o*(r==="after"?1:-1),p.textX=(o+s)*(r==="after"?1:-1),x=r==="after"?b.align.left:b.align.right),{ticks:h.map(function(T){var A=typeof T=="string"?function(S){var D=String(S).length;return c&&c>0&&D>c?""+String(S).slice(0,c).concat("..."):""+S}(T):T;return je({key:T instanceof Date?""+T.valueOf():""+T,value:A},t(T),g,p)}),textAlign:x,textBaseline:v}},gd=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=qi(e);return function(i){return n(i instanceof Date?i:new Date(i))}}return Fi(e)},zr=function(e){var t,n=e.width,i=e.height,r=e.scale,a=e.axis,o=e.values,s=(t=o,(Array.isArray(t)?o:void 0)||bd(r,o)),f="bandwidth"in r?ld(r):r,c=a==="x"?s.map(function(d){var l,h;return{key:d instanceof Date?""+d.valueOf():""+d,x1:(l=f(d))!=null?l:0,x2:(h=f(d))!=null?h:0,y1:0,y2:i}}):s.map(function(d){var l,h;return{key:d instanceof Date?""+d.valueOf():""+d,x1:0,x2:n,y1:(l=f(d))!=null?l:0,y2:(h=f(d))!=null?h:0}});return c},yy=w.memo(function(e){var t,n=e.value,i=e.format,r=e.lineX,a=e.lineY,o=e.onClick,s=e.textBaseline,f=e.textAnchor,c=e.animatedProps,d=we(),l=d.axis.ticks.line,h=d.axis.ticks.text,b=(t=i?.(n))!=null?t:n,m=w.useMemo(function(){var g={opacity:c.opacity};return o?{style:je({},g,{cursor:"pointer"}),onClick:function(p){return o(p,b)}}:{style:g}},[c.opacity,o,b]);return M.jsxs(Fe.g,je({transform:c.transform},m,{children:[M.jsx("line",{x1:0,x2:r,y1:0,y2:a,style:l}),h.outlineWidth>0&&M.jsx(Fe.text,{dominantBaseline:s,textAnchor:f,transform:c.textTransform,style:h,strokeWidth:2*h.outlineWidth,stroke:h.outlineColor,strokeLinejoin:"round",children:""+b}),M.jsx(Fe.text,{dominantBaseline:s,textAnchor:f,transform:c.textTransform,style:h,children:""+b})]}))}),vy=function(e){var t=e.axis,n=e.scale,i=e.x,r=i===void 0?0:i,a=e.y,o=a===void 0?0:a,s=e.length,f=e.ticksPosition,c=e.tickValues,d=e.tickSize,l=d===void 0?5:d,h=e.tickPadding,b=h===void 0?5:h,m=e.tickRotation,g=m===void 0?0:m,p=e.format,y=e.renderTick,x=y===void 0?yy:y,v=e.truncateTickAt,T=e.legend,A=e.legendPosition,S=A===void 0?"end":A,D=e.legendOffset,j=D===void 0?0:D,E=e.onClick,k=e.ariaHidden,_=we(),q=_.axis.legend.text,R=w.useMemo(function(){return gd(p,n)},[p,n]),O=md({axis:t,scale:n,ticksPosition:f,tickValues:c,tickSize:l,tickPadding:b,tickRotation:g,truncateTickAt:v}),$=O.ticks,z=O.textAlign,F=O.textBaseline,W=null;if(T!==void 0){var U,H=0,J=0,ne=0;t==="y"?(ne=-90,H=j,S==="start"?(U="start",J=s):S==="middle"?(U="middle",J=s/2):S==="end"&&(U="end")):(J=j,S==="start"?U="start":S==="middle"?(U="middle",H=s/2):S==="end"&&(U="end",H=s)),W=M.jsxs(M.Fragment,{children:[q.outlineWidth>0&&M.jsx("text",{transform:"translate("+H+", "+J+") rotate("+ne+")",textAnchor:U,style:je({dominantBaseline:"central"},q),strokeWidth:2*q.outlineWidth,stroke:q.outlineColor,strokeLinejoin:"round",children:T}),M.jsx("text",{transform:"translate("+H+", "+J+") rotate("+ne+")",textAnchor:U,style:je({dominantBaseline:"central"},q),children:T})]})}var de=kt(),oe=de.animate,B=de.config,G=Gt({transform:"translate("+r+","+o+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:B,immediate:!oe}),X=w.useCallback(function(N){return{opacity:1,transform:"translate("+N.x+","+N.y+")",textTransform:"translate("+N.textX+","+N.textY+") rotate("+g+")"}},[g]),re=w.useCallback(function(N){return{opacity:0,transform:"translate("+N.x+","+N.y+")",textTransform:"translate("+N.textX+","+N.textY+") rotate("+g+")"}},[g]),I=jf($,{keys:function(N){return N.key},initial:X,from:re,enter:X,update:X,leave:{opacity:0},config:B,immediate:!oe});return M.jsxs(Fe.g,{transform:G.transform,"aria-hidden":k,children:[I(function(N,Y,C,ie){return w.createElement(x,je({tickIndex:ie,format:R,rotate:g,textBaseline:F,textAnchor:z,truncateTickAt:v,animatedProps:N},Y,E?{onClick:E}:{}))}),M.jsx(Fe.line,{style:_.axis.domain.line,x1:0,x2:G.lineX2,y1:0,y2:G.lineY2}),W]})},_y=w.memo(vy),xy={ticksPosition:u.oneOf(["before","after"]),tickValues:u.oneOfType([u.number,u.arrayOf(u.oneOfType([u.number,u.string,u.instanceOf(Date)])),u.string]),rotateOnTickLength:u.shape({angle:u.number,length:u.number}),tickSize:u.number,tickPadding:u.number,tickRotation:u.number,format:u.oneOfType([u.func,u.string]),renderTick:u.func,legend:u.node,legendPosition:u.oneOf(["start","middle","end"]),legendOffset:u.number,ariaHidden:u.bool},Wn=u.shape(xy),pd=["top","right","bottom","left"],wy=w.memo(function(e){var t=e.xScale,n=e.yScale,i=e.width,r=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return M.jsx(M.Fragment,{children:pd.map(function(o){var s=a[o];if(!s)return null;var f=o==="top"||o==="bottom";return M.jsx(_y,je({},s,{axis:f?"x":"y",x:o==="right"?i:0,y:o==="bottom"?r:0,scale:f?t:n,length:f?i:r,ticksPosition:o==="top"||o==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),o)})})}),My=w.memo(function(e){var t=e.animatedProps,n=we();return M.jsx(Fe.line,je({},t,n.grid.line))}),Ls=w.memo(function(e){var t=e.lines,n=kt(),i=n.animate,r=n.config,a=jf(t,{keys:function(o){return o.key},initial:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},from:function(o){return{opacity:0,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},enter:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},update:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},leave:{opacity:0},config:r,immediate:!i});return M.jsx("g",{children:a(function(o,s){return w.createElement(My,je({},s,{key:s.key,animatedProps:o}))})})}),ky=w.memo(function(e){var t=e.width,n=e.height,i=e.xScale,r=e.yScale,a=e.xValues,o=e.yValues,s=w.useMemo(function(){return!!i&&zr({width:t,height:n,scale:i,axis:"x",values:a})},[i,a,t,n]),f=w.useMemo(function(){return!!r&&zr({width:t,height:n,scale:r,axis:"y",values:o})},[n,t,r,o]);return M.jsxs(M.Fragment,{children:[s&&M.jsx(Ls,{lines:s}),f&&M.jsx(Ls,{lines:f})]})}),Ty=function(e,t){var n,i=t.axis,r=t.scale,a=t.x,o=a===void 0?0:a,s=t.y,f=s===void 0?0:s,c=t.length,d=t.ticksPosition,l=t.tickValues,h=t.tickSize,b=h===void 0?5:h,m=t.tickPadding,g=m===void 0?5:m,p=t.tickRotation,y=p===void 0?0:p,x=t.format,v=t.legend,T=t.legendPosition,A=T===void 0?"end":T,S=t.legendOffset,D=S===void 0?0:S,j=t.theme,E=md({axis:i,scale:r,ticksPosition:d,tickValues:l,tickSize:b,tickPadding:g,tickRotation:y,engine:"canvas"}),k=E.ticks,_=E.textAlign,q=E.textBaseline;e.save(),e.translate(o,f),e.textAlign=_,e.textBaseline=q;var R=j.axis.ticks.text;e.font=(R.fontWeight?R.fontWeight+" ":"")+R.fontSize+"px "+R.fontFamily,((n=j.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(j.axis.domain.line.strokeWidth),e.lineCap="square",j.axis.domain.line.stroke&&(e.strokeStyle=j.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(i==="x"?c:0,i==="x"?0:c),e.stroke());var O=typeof x=="function"?x:function(U){return""+U};if(k.forEach(function(U){var H;((H=j.axis.ticks.line.strokeWidth)!=null?H:0)>0&&(e.lineWidth=Number(j.axis.ticks.line.strokeWidth),e.lineCap="square",j.axis.ticks.line.stroke&&(e.strokeStyle=j.axis.ticks.line.stroke),e.beginPath(),e.moveTo(U.x,U.y),e.lineTo(U.x+U.lineX,U.y+U.lineY),e.stroke());var J=O(U.value);e.save(),e.translate(U.x+U.textX,U.y+U.textY),e.rotate(ui(y)),R.outlineWidth>0&&(e.strokeStyle=R.outlineColor,e.lineWidth=2*R.outlineWidth,e.lineJoin="round",e.strokeText(""+J,0,0)),j.axis.ticks.text.fill&&(e.fillStyle=R.fill),e.fillText(""+J,0,0),e.restore()}),v!==void 0){var $=0,z=0,F=0,W="center";i==="y"?(F=-90,$=D,A==="start"?(W="start",z=c):A==="middle"?(W="center",z=c/2):A==="end"&&(W="end")):(z=D,A==="start"?W="start":A==="middle"?(W="center",$=c/2):A==="end"&&(W="end",$=c)),e.translate($,z),e.rotate(ui(F)),e.font=(j.axis.legend.text.fontWeight?j.axis.legend.text.fontWeight+" ":"")+j.axis.legend.text.fontSize+"px "+j.axis.legend.text.fontFamily,j.axis.legend.text.fill&&(e.fillStyle=j.axis.legend.text.fill),e.textAlign=W,e.textBaseline="middle",e.fillText(v,0,0)}e.restore()},Sy=function(e,t){var n=t.xScale,i=t.yScale,r=t.width,a=t.height,o=t.top,s=t.right,f=t.bottom,c=t.left,d=t.theme,l={top:o,right:s,bottom:f,left:c};pd.forEach(function(h){var b=l[h];if(!b)return null;var m=h==="top"||h==="bottom",g=h==="top"||h==="left"?"before":"after",p=m?n:i,y=gd(b.format,p);Ty(e,je({},b,{axis:m?"x":"y",x:h==="right"?r:0,y:h==="bottom"?a:0,scale:p,format:y,length:m?r:a,ticksPosition:g,theme:d}))})},Ys=function(e,t){var n=t.width,i=t.height,r=t.scale,a=t.axis,o=t.values;zr({width:n,height:i,scale:r,axis:a,values:o}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},Cy=function(e){var t=e.x,n=e.y,i=e.size,r=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,f=s===void 0?0:s,c=e.borderColor;return M.jsx("circle",{r:i/2,cx:t+i/2,cy:n+i/2,fill:r,opacity:o,strokeWidth:f,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})},Ry=function(e){var t=e.x,n=e.y,i=e.size,r=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,f=s===void 0?0:s,c=e.borderColor;return M.jsx("g",{transform:"translate("+t+","+n+")",children:M.jsx("path",{d:` + M`+i/2+` 0 + L`+.8*i+" "+i/2+` + L`+i/2+" "+i+` + L`+.2*i+" "+i/2+` + L`+i/2+` 0 + `,fill:r,opacity:o,strokeWidth:f,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})},Oy=function(e){var t=e.x,n=e.y,i=e.size,r=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,f=s===void 0?0:s,c=e.borderColor;return M.jsx("rect",{x:t,y:n,fill:r,opacity:o,strokeWidth:f,stroke:c===void 0?"transparent":c,width:i,height:i,style:{pointerEvents:"none"}})},$y=function(e){var t=e.x,n=e.y,i=e.size,r=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,f=s===void 0?0:s,c=e.borderColor;return M.jsx("g",{transform:"translate("+t+","+n+")",children:M.jsx("path",{d:` + M`+i/2+` 0 + L`+i+" "+i+` + L0 `+i+` + L`+i/2+` 0 + `,fill:r,opacity:o,strokeWidth:f,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const i=Math.max(2*n-5,0);this._triangles=new Uint32Array(i*3),this._halfedges=new Int32Array(i*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:i,_hullTri:r,_hullHash:a}=this,o=t.length>>1;let s=1/0,f=1/0,c=-1/0,d=-1/0;for(let k=0;kc&&(c=_),q>d&&(d=q),this._ids[k]=k}const l=(s+c)/2,h=(f+d)/2;let b=1/0,m,g,p;for(let k=0;k0&&(g=k,b=_)}let v=t[2*g],T=t[2*g+1],A=1/0;for(let k=0;kR&&(k[_++]=O,R=this._dists[O])}this.hull=k.subarray(0,_),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(zn(y,x,v,T,S,D)){const k=g,_=v,q=T;g=p,v=S,T=D,p=k,S=_,D=q}const j=zy(y,x,v,T,S,D);this._cx=j.x,this._cy=j.y;for(let k=0;k0&&Math.abs(O-_)<=Bs&&Math.abs($-q)<=Bs||(_=O,q=$,R===m||R===g||R===p))continue;let z=0;for(let J=0,ne=this._hashKey(O,$);J0?3-n:1+n)/4}function rr(e,t,n,i){const r=e-n,a=t-i;return r*r+a*a}function ar(e,t,n,i,r,a){const o=(i-t)*(r-e),s=(n-e)*(a-t);return Math.abs(o-s)>=33306690738754716e-32*Math.abs(o+s)?o-s:0}function zn(e,t,n,i,r,a){return(ar(r,a,e,t,n,i)||ar(e,t,n,i,r,a)||ar(n,i,r,a,e,t))<0}function Wy(e,t,n,i,r,a,o,s){const f=e-o,c=t-s,d=n-o,l=i-s,h=r-o,b=a-s,m=f*f+c*c,g=d*d+l*l,p=h*h+b*b;return f*(l*p-g*b)-c*(d*p-g*h)+m*(d*b-l*h)<0}function Ny(e,t,n,i,r,a){const o=n-e,s=i-t,f=r-e,c=a-t,d=o*o+s*s,l=f*f+c*c,h=.5/(o*c-s*f),b=(c*d-s*l)*h,m=(o*l-f*d)*h;return b*b+m*m}function zy(e,t,n,i,r,a){const o=n-e,s=i-t,f=r-e,c=a-t,d=o*o+s*s,l=f*f+c*c,h=.5/(o*c-s*f),b=e+(c*d-s*l)*h,m=t+(o*l-f*d)*h;return{x:b,y:m}}function Et(e,t,n,i){if(i-n<=20)for(let r=n+1;r<=i;r++){const a=e[r],o=t[a];let s=r-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=a}else{const r=n+i>>1;let a=n+1,o=i;on(e,r,a),t[e[n]]>t[e[i]]&&on(e,n,i),t[e[a]]>t[e[i]]&&on(e,a,i),t[e[n]]>t[e[a]]&&on(e,n,a);const s=e[a],f=t[s];for(;;){do a++;while(t[e[a]]f);if(o=o-n?(Et(e,t,a,i),Et(e,t,n,o-1)):(Et(e,t,n,o-1),Et(e,t,a,i))}}function on(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function Ly(e){return e[0]}function Yy(e){return e[1]}const Hs=1e-6;class mt{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,i){t=+t,n=+n,i=+i;const r=t+i,a=n;if(i<0)throw new Error("negative radius");this._x1===null?this._+=`M${r},${a}`:(Math.abs(this._x1-r)>Hs||Math.abs(this._y1-a)>Hs)&&(this._+="L"+r+","+a),i&&(this._+=`A${i},${i},0,1,1,${t-i},${n}A${i},${i},0,1,1,${this._x1=r},${this._y1=a}`)}rect(t,n,i,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+i}v${+r}h${-i}Z`}value(){return this._||null}}class Lr{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class By{constructor(t,[n,i,r,a]=[0,0,960,500]){if(!((r=+r)>=(n=+n))||!((a=+a)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=r,this.xmin=n,this.ymax=a,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:i},vectors:r}=this,a=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let b=0,m=0,g=i.length,p,y;b1;)a-=2;for(let o=2;o4)for(let o=0;o0){if(n>=this.ymax)return null;(o=(this.ymax-n)/r)0){if(t>=this.xmax)return null;(o=(this.xmax-t)/i)this.xmax?2:0)|(nthis.ymax?8:0)}}const Hy=2*Math.PI,qt=Math.pow;function Vy(e){return e[0]}function Gy(e){return e[1]}function Xy(e){const{triangles:t,coords:n}=e;for(let i=0;i1e-10)return!1}return!0}function Qy(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class uo{static from(t,n=Vy,i=Gy,r){return new uo("length"in t?Ky(t,n,i,r):Float64Array.from(Zy(t,n,i,r)))}constructor(t){this._delaunator=new gi(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&Xy(t)){this.collinear=Int32Array.from({length:n.length/2},(h,b)=>b).sort((h,b)=>n[2*h]-n[2*b]||n[2*h+1]-n[2*b+1]);const f=this.collinear[0],c=this.collinear[this.collinear.length-1],d=[n[2*f],n[2*f+1],n[2*c],n[2*c+1]],l=1e-8*Math.hypot(d[3]-d[1],d[2]-d[0]);for(let h=0,b=n.length/2;h0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],this.triangles[1]=r[1],this.triangles[2]=r[1],o[r[0]]=1,r.length===2&&(o[r[1]]=0))}voronoi(t){return new By(this,t)}*neighbors(t){const{inedges:n,hull:i,_hullIndex:r,halfedges:a,triangles:o,collinear:s}=this;if(s){const l=s.indexOf(t);l>0&&(yield s[l-1]),l=0&&a!==i&&a!==r;)i=a;return a}_step(t,n,i){const{inedges:r,hull:a,_hullIndex:o,halfedges:s,triangles:f,points:c}=this;if(r[t]===-1||!c.length)return(t+1)%(c.length>>1);let d=t,l=qt(n-c[t*2],2)+qt(i-c[t*2+1],2);const h=r[t];let b=h;do{let m=f[b];const g=qt(n-c[m*2],2)+qt(i-c[m*2+1],2);if(g-1?G.filter(function(X){return X!==B}):[].concat(G,[B])})},[]),de=function(B){var G=B.series,X=B.getPointColor,re=B.getPointBorderColor,I=B.formatX,N=B.formatY;return w.useMemo(function(){return G.reduce(function(Y,C){return[].concat(Y,C.data.filter(function(ie){return ie.position.x!==null&&ie.position.y!==null}).map(function(ie,ee){var se={id:C.id+"."+ee,index:Y.length+ee,serieId:C.id,serieColor:C.color,x:ie.position.x,y:ie.position.y};return se.color=X(C),se.borderColor=re(se),se.data=xe({},ie.data,{xFormatted:I(ie.data.x),yFormatted:N(ie.data.y)}),se}))},[])},[G,X,re,I,N])}({series:J,getPointColor:k,getPointBorderColor:_,formatX:S,formatY:D}),oe=d6({enableSlices:A,points:de,width:f,height:c});return{legendData:H,toggleSerie:ne,lineGenerator:c6({curve:b}),areaGenerator:u6({curve:b,yScale:F,areaBaselineValue:g}),getColor:j,series:J,xScale:z,yScale:F,slices:oe,points:de}},Sd=function(e){var t=e.areaBlendMode,n=e.areaOpacity,i=e.color,r=e.fill,a=e.path,o=kt(),s=o.animate,f=o.config,c=Qc(a),d=Gt({color:i,config:f,immediate:!s});return M.jsx(Fe.path,{d:c,fill:r||d.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})};Sd.propTypes={areaBlendMode:ao.isRequired,areaOpacity:u.number.isRequired,color:u.string,fill:u.string,path:u.string.isRequired};var Cd=function(e){var t=e.areaGenerator,n=e.areaOpacity,i=e.areaBlendMode,r=e.lines.slice(0).reverse();return M.jsx("g",{children:r.map(function(a){return M.jsx(Sd,xe({path:t(a.data.map(function(o){return o.position}))},xe({areaOpacity:n,areaBlendMode:i},a)),a.id)})})};Cd.propTypes={areaGenerator:u.func.isRequired,areaOpacity:u.number.isRequired,areaBlendMode:ao.isRequired,lines:u.arrayOf(u.object).isRequired};var l6=w.memo(Cd),Rd=function(e){var t=e.lineGenerator,n=e.points,i=e.color,r=e.thickness,a=w.useMemo(function(){return t(n)},[t,n]),o=Qc(a);return M.jsx(Fe.path,{d:o,fill:"none",strokeWidth:r,stroke:i})};Rd.propTypes={points:u.arrayOf(u.shape({x:u.oneOfType([u.string,u.number]),y:u.oneOfType([u.string,u.number])})),lineGenerator:u.func.isRequired,color:u.string.isRequired,thickness:u.number.isRequired};var h6=w.memo(Rd),Od=function(e){var t=e.lines,n=e.lineGenerator,i=e.lineWidth;return t.slice(0).reverse().map(function(r){var a=r.id,o=r.data,s=r.color;return M.jsx(h6,{id:a,points:o.map(function(f){return f.position}),lineGenerator:n,color:s,thickness:i},a)})};Od.propTypes={lines:u.arrayOf(u.shape({id:u.oneOfType([u.string,u.number]).isRequired,color:u.string.isRequired,data:u.arrayOf(u.shape({data:u.shape({x:u.oneOfType([u.string,u.number,u.instanceOf(Date)]),y:u.oneOfType([u.string,u.number,u.instanceOf(Date)])}).isRequired,position:u.shape({x:u.number,y:u.number}).isRequired})).isRequired})).isRequired,lineWidth:u.number.isRequired,lineGenerator:u.func.isRequired};var b6=w.memo(Od),$d=function(e){var t=e.slice,n=e.axis,i=e.debug,r=e.tooltip,a=e.isCurrent,o=e.setCurrent,s=e.onMouseEnter,f=e.onMouseMove,c=e.onMouseLeave,d=e.onClick,l=ua(),h=l.showTooltipFromEvent,b=l.hideTooltip,m=w.useCallback(function(x){h(w.createElement(r,{slice:t,axis:n}),x,"right"),o(t),s&&s(t,x)},[h,r,t,s]),g=w.useCallback(function(x){h(w.createElement(r,{slice:t,axis:n}),x,"right"),f&&f(t,x)},[h,r,t,f]),p=w.useCallback(function(x){b(),o(null),c&&c(t,x)},[b,t,c]),y=w.useCallback(function(x){d&&d(t,x)},[t,d]);return M.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:a&&i?.35:0,onMouseEnter:m,onMouseMove:g,onMouseLeave:p,onClick:y,"data-testid":"slice-"+t.id})};$d.propTypes={slice:u.object.isRequired,axis:u.oneOf(["x","y"]).isRequired,debug:u.bool.isRequired,height:u.number.isRequired,tooltip:u.oneOfType([u.func,u.object]),isCurrent:u.bool.isRequired,setCurrent:u.func.isRequired,onMouseEnter:u.func,onMouseMove:u.func,onMouseLeave:u.func,onClick:u.func};var m6=w.memo($d),Ad=function(e){var t=e.slices,n=e.axis,i=e.debug,r=e.height,a=e.tooltip,o=e.current,s=e.setCurrent,f=e.onMouseEnter,c=e.onMouseMove,d=e.onMouseLeave,l=e.onClick;return t.map(function(h){return M.jsx(m6,{slice:h,axis:n,debug:i,height:r,tooltip:a,setCurrent:s,isCurrent:o!==null&&o.id===h.id,onMouseEnter:f,onMouseMove:c,onMouseLeave:d,onClick:l},h.id)})};Ad.propTypes={slices:u.arrayOf(u.shape({id:u.oneOfType([u.number,u.string,u.instanceOf(Date)]).isRequired,x:u.number.isRequired,y:u.number.isRequired,points:u.arrayOf(u.object).isRequired})).isRequired,axis:u.oneOf(["x","y"]).isRequired,debug:u.bool.isRequired,height:u.number.isRequired,tooltip:u.oneOfType([u.func,u.object]).isRequired,current:u.object,setCurrent:u.func.isRequired,onMouseEnter:u.func,onMouseMove:u.func,onMouseLeave:u.func,onClick:u.func};var g6=w.memo(Ad),qd=function(e){var t=e.points,n=e.symbol,i=e.size,r=e.borderWidth,a=e.enableLabel,o=e.label,s=e.labelYOffset,f=we(),c=gg(o),d=t.slice(0).reverse().map(function(l){return{id:l.id,x:l.x,y:l.y,datum:l.data,fill:l.color,stroke:l.borderColor,label:a?c(l.data):null}});return M.jsx("g",{children:d.map(function(l){return M.jsx(lg,{x:l.x,y:l.y,datum:l.datum,symbol:n,size:i,color:l.fill,borderWidth:r,borderColor:l.stroke,label:l.label,labelYOffset:s,theme:f},l.id)})})};qd.propTypes={points:u.arrayOf(u.object),symbol:u.func,size:u.number.isRequired,color:u.func.isRequired,borderWidth:u.number.isRequired,borderColor:u.func.isRequired,enableLabel:u.bool.isRequired,label:u.oneOfType([u.string,u.func]).isRequired,labelYOffset:u.number};var p6=w.memo(qd),Pd=function(e){var t=e.points,n=e.width,i=e.height,r=e.margin,a=e.setCurrent,o=e.onMouseEnter,s=e.onMouseMove,f=e.onMouseLeave,c=e.onClick,d=e.tooltip,l=e.debug,h=ua(),b=h.showTooltipAt,m=h.hideTooltip,g=w.useCallback(function(v,T){b(w.createElement(d,{point:v}),[v.x+r.left,v.y+r.top],"top"),a(v),o&&o(v,T)},[a,b,d,o,r]),p=w.useCallback(function(v,T){b(w.createElement(d,{point:v}),[v.x+r.left,v.y+r.top],"top"),a(v),s&&s(v,T)},[a,b,d,s]),y=w.useCallback(function(v,T){m(),a(null),f&&f(v,T)},[m,a,f]),x=w.useCallback(function(v,T){c&&c(v,T)},[c]);return M.jsx(t6,{nodes:t,width:n,height:i,onMouseEnter:g,onMouseMove:p,onMouseLeave:y,onClick:x,debug:l})};Pd.propTypes={points:u.arrayOf(u.object).isRequired,width:u.number.isRequired,height:u.number.isRequired,margin:u.object.isRequired,setCurrent:u.func.isRequired,onMouseEnter:u.func,onMouseMove:u.func,onMouseLeave:u.func,onClick:u.func,tooltip:u.oneOfType([u.func,u.object]).isRequired,debug:u.bool.isRequired};var y6=w.memo(Pd),Yr=function(e){var t=e.data,n=e.xScale,i=e.xFormat,r=e.yScale,a=e.yFormat,o=e.layers,s=e.curve,f=e.areaBaselineValue,c=e.colors,d=e.margin,l=e.width,h=e.height,b=e.axisTop,m=e.axisRight,g=e.axisBottom,p=e.axisLeft,y=e.enableGridX,x=e.enableGridY,v=e.gridXValues,T=e.gridYValues,A=e.lineWidth,S=e.enableArea,D=e.areaOpacity,j=e.areaBlendMode,E=e.enablePoints,k=e.pointSymbol,_=e.pointSize,q=e.pointColor,R=e.pointBorderWidth,O=e.pointBorderColor,$=e.enablePointLabel,z=e.pointLabel,F=e.pointLabelYOffset,W=e.defs,U=e.fill,H=e.markers,J=e.legends,ne=e.isInteractive,de=e.useMesh,oe=e.debugMesh,B=e.onMouseEnter,G=e.onMouseMove,X=e.onMouseLeave,re=e.onClick,I=e.tooltip,N=e.enableSlices,Y=e.debugSlices,C=e.sliceTooltip,ie=e.enableCrosshair,ee=e.crosshairType,se=e.role,le=Zc(l,h,d),_e=le.margin,me=le.innerWidth,Me=le.innerHeight,$e=le.outerWidth,Ke=le.outerHeight,he=Td({data:t,xScale:n,xFormat:i,yScale:r,yFormat:a,width:me,height:Me,colors:c,curve:s,areaBaselineValue:f,pointColor:q,pointBorderColor:O,enableSlices:N}),Ze=he.legendData,An=he.toggleSerie,ot=he.lineGenerator,Qt=he.areaGenerator,Ct=he.series,Rt=he.xScale,V=he.yScale,be=he.slices,Je=he.points,fe=we(),st=li(q,fe),jd=li(O,fe),lo=w.useState(null),Kt=lo[0],ho=lo[1],bo=w.useState(null),Zt=bo[0],mo=bo[1],ft={grid:M.jsx(ky,{theme:fe,width:me,height:Me,xScale:y?Rt:null,yScale:x?V:null,xValues:v,yValues:T},"grid"),markers:M.jsx(bg,{markers:H,width:me,height:Me,xScale:Rt,yScale:V,theme:fe},"markers"),axes:M.jsx(wy,{xScale:Rt,yScale:V,width:me,height:Me,theme:fe,top:b,right:m,bottom:g,left:p},"axes"),areas:null,lines:M.jsx(b6,{lines:Ct,lineGenerator:ot,lineWidth:A},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:J.map(function(ct,Wi){return M.jsx(Ey,xe({},ct,{containerWidth:me,containerHeight:Me,data:ct.data||Ze,theme:fe,toggleSerie:ct.toggleSerie?An:void 0}),"legend."+Wi)})},Ed=xg(W,Ct,U);return S&&(ft.areas=M.jsx(l6,{areaGenerator:Qt,areaOpacity:D,areaBlendMode:j,lines:Ct},"areas")),ne&&N!==!1&&(ft.slices=M.jsx(g6,{slices:be,axis:N,debug:Y,height:Me,tooltip:C,current:Zt,setCurrent:mo,onMouseEnter:B,onMouseMove:G,onMouseLeave:X,onClick:re},"slices")),E&&(ft.points=M.jsx(p6,{points:Je,symbol:k,size:_,color:st,borderWidth:R,borderColor:jd,enableLabel:$,label:z,labelYOffset:F},"points")),ne&&ie&&(Kt!==null&&(ft.crosshair=M.jsx(xr,{width:me,height:Me,x:Kt.x,y:Kt.y,type:ee},"crosshair")),Zt!==null&&(ft.crosshair=M.jsx(xr,{width:me,height:Me,x:Zt.x,y:Zt.y,type:N},"crosshair"))),ne&&de&&N===!1&&(ft.mesh=M.jsx(y6,{points:Je,width:me,height:Me,margin:_e,current:Kt,setCurrent:ho,onMouseEnter:B,onMouseMove:G,onMouseLeave:X,onClick:re,tooltip:I,debug:oe},"mesh")),M.jsx(fu,{defs:Ed,width:$e,height:Ke,margin:_e,role:se,children:o.map(function(ct,Wi){return typeof ct=="function"?M.jsx(w.Fragment,{children:ct(xe({},e,{innerWidth:me,innerHeight:Me,series:Ct,slices:be,points:Je,xScale:Rt,yScale:V,lineGenerator:ot,areaGenerator:Qt,currentPoint:Kt,setCurrentPoint:ho,currentSlice:Zt,setCurrentSlice:mo}))},Wi):ft[ct]})})};Yr.propTypes=o6,Yr.defaultProps=Ye;var v6=lu(Yr),k6=function(e){return M.jsx(oo,{children:function(t){var n=t.width,i=t.height;return M.jsx(v6,xe({width:n,height:i},e))}})},Br=function(e){var t=e.width,n=e.height,i=e.margin,r=e.pixelRatio,a=e.data,o=e.xScale,s=e.xFormat,f=e.yScale,c=e.yFormat,d=e.curve,l=e.layers,h=e.colors,b=e.lineWidth,m=e.enableArea,g=e.areaBaselineValue,p=e.areaOpacity,y=e.enablePoints,x=e.pointSize,v=e.pointColor,T=e.pointBorderWidth,A=e.pointBorderColor,S=e.enableGridX,D=e.gridXValues,j=e.enableGridY,E=e.gridYValues,k=e.axisTop,_=e.axisRight,q=e.axisBottom,R=e.axisLeft,O=e.legends,$=e.isInteractive,z=e.debugMesh,F=e.onMouseLeave,W=e.onClick,U=e.tooltip,H=e.canvasRef,J=w.useRef(null),ne=Zc(t,n,i),de=ne.margin,oe=ne.innerWidth,B=ne.innerHeight,G=ne.outerWidth,X=ne.outerHeight,re=we(),I=w.useState(null),N=I[0],Y=I[1],C=Td({data:a,xScale:o,xFormat:s,yScale:f,yFormat:c,width:oe,height:B,colors:h,curve:d,areaBaselineValue:g,pointColor:v,pointBorderColor:A}),ie=C.lineGenerator,ee=C.areaGenerator,se=C.series,le=C.xScale,_e=C.yScale,me=C.points,Me=_d({points:me,width:oe,height:B,debug:z}),$e=Me.delaunay,Ke=Me.voronoi;w.useEffect(function(){H&&(H.current=J.current),J.current.width=G*r,J.current.height=X*r;var V=J.current.getContext("2d");V.scale(r,r),V.fillStyle=re.background,V.fillRect(0,0,G,X),V.translate(de.left,de.top),l.forEach(function(be){if(typeof be=="function"&&be({ctx:V,innerWidth:oe,innerHeight:B,series:se,points:me,xScale:le,yScale:_e,lineWidth:b,lineGenerator:ie,areaGenerator:ee,currentPoint:N,setCurrentPoint:Y}),be==="grid"&&re.grid.line.strokeWidth>0&&(V.lineWidth=re.grid.line.strokeWidth,V.strokeStyle=re.grid.line.stroke,S&&Ys(V,{width:oe,height:B,scale:le,axis:"x",values:D}),j&&Ys(V,{width:oe,height:B,scale:_e,axis:"y",values:E})),be==="axes"&&Sy(V,{xScale:le,yScale:_e,width:oe,height:B,top:k,right:_,bottom:q,left:R,theme:re}),be==="areas"&&m===!0&&(V.save(),V.globalAlpha=p,ee.context(V),se.forEach(function(fe){V.fillStyle=fe.color,V.beginPath(),ee(fe.data.map(function(st){return st.position})),V.fill()}),V.restore()),be==="lines"&&(ie.context(V),se.forEach(function(fe){V.strokeStyle=fe.color,V.lineWidth=b,V.beginPath(),ie(fe.data.map(function(st){return st.position})),V.stroke()})),be==="points"&&y===!0&&x>0&&me.forEach(function(fe){V.fillStyle=fe.color,V.beginPath(),V.arc(fe.x,fe.y,x/2,0,2*Math.PI),V.fill(),T>0&&(V.strokeStyle=fe.borderColor,V.lineWidth=T,V.stroke())}),be==="mesh"&&z===!0&&(n6(V,Ke),N&&i6(V,Ke,N.index)),be==="legends"){var Je=se.map(function(fe){return{id:fe.id,label:fe.id,color:fe.color}}).reverse();O.forEach(function(fe){Fy(V,xe({},fe,{data:fe.data||Je,containerWidth:oe,containerHeight:B,theme:re}))})}})},[J,G,X,l,re,ie,se,le,_e,S,D,j,E,k,_,q,R,O,me,y,x,N]);var he=w.useCallback(function(V){var be=hu(J.current,V),Je=be[0],fe=be[1];if(!pg(de.left,de.top,oe,B,Je,fe))return null;var st=$e.find(Je-de.left,fe-de.top);return me[st]},[J,de,oe,B,$e]),Ze=ua(),An=Ze.showTooltipFromEvent,ot=Ze.hideTooltip,Qt=w.useCallback(function(V){var be=he(V);Y(be),be?An(w.createElement(U,{point:be}),V):ot()},[he,Y,An,ot,U]),Ct=w.useCallback(function(V){ot(),Y(null),N&&F&&F(N,V)},[ot,Y,F]),Rt=w.useCallback(function(V){if(W){var be=he(V);be&&W(be,V)}},[he,W]);return M.jsx("canvas",{ref:J,width:G*r,height:X*r,style:{width:G,height:X,cursor:$?"auto":"normal"},onMouseEnter:$?Qt:void 0,onMouseMove:$?Qt:void 0,onMouseLeave:$?Ct:void 0,onClick:$?Rt:void 0})};Br.propTypes=s6,Br.defaultProps=f6;var _6=lu(Br),x6=w.forwardRef(function(e,t){return M.jsx(_6,xe({},e,{canvasRef:t}))});w.forwardRef(function(e,t){return M.jsx(oo,{children:function(n){var i=n.width,r=n.height;return M.jsx(x6,xe({width:i,height:r},e,{ref:t}))}})});export{k6 as P,M as j}; diff --git a/assets/05-embla-DcDSTlW8.js b/assets/05-embla-DcDSTlW8.js new file mode 100644 index 0000000..f1817f6 --- /dev/null +++ b/assets/05-embla-DcDSTlW8.js @@ -0,0 +1 @@ +import{r as W}from"./02-radix-ui-BssNd7Fu.js";function Yt(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ct(t){return Yt(t)||Array.isArray(t)}function _t(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function vt(t,n){const o=Object.keys(t),i=Object.keys(n);if(o.length!==i.length)return!1;const c=JSON.stringify(Object.keys(t.breakpoints||{})),r=JSON.stringify(Object.keys(n.breakpoints||{}));return c!==r?!1:o.every(e=>{const u=t[e],s=n[e];return typeof u=="function"?`${u}`==`${s}`:!Ct(u)||!Ct(s)?u===s:vt(u,s)})}function kt(t){return t.concat().sort((n,o)=>n.name>o.name?1:-1).map(n=>n.options)}function Zt(t,n){if(t.length!==n.length)return!1;const o=kt(t),i=kt(n);return o.every((c,r)=>{const e=i[r];return vt(c,e)})}function Lt(t){return typeof t=="number"}function Et(t){return typeof t=="string"}function It(t){return typeof t=="boolean"}function Nt(t){return Object.prototype.toString.call(t)==="[object Object]"}function M(t){return Math.abs(t)}function Ot(t){return Math.sign(t)}function ut(t,n){return M(t-n)}function Wt(t,n){if(t===0||n===0||M(t)<=M(n))return 0;const o=ut(M(t),M(n));return M(o/t)}function ft(t){return at(t).map(Number)}function B(t){return t[dt(t)]}function dt(t){return Math.max(0,t.length-1)}function At(t,n){return n===dt(t)}function zt(t,n=0){return Array.from(Array(t),(o,i)=>n+i)}function at(t){return Object.keys(t)}function Vt(t,n){return[t,n].reduce((o,i)=>(at(i).forEach(c=>{const r=o[c],e=i[c],u=Nt(r)&&Nt(e);o[c]=u?Vt(r,e):e}),o),{})}function Bt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function tn(t,n){const o={start:i,center:c,end:r};function i(){return 0}function c(s){return r(s)/2}function r(s){return n-s}function e(s,f){return Et(t)?o[t](s):t(n,s,f)}return{measure:e}}function lt(){let t=[];function n(c,r,e,u={passive:!0}){let s;if("addEventListener"in c)c.addEventListener(r,e,u),s=()=>c.removeEventListener(r,e,u);else{const f=c;f.addListener(e),s=()=>f.removeListener(e)}return t.push(s),i}function o(){t=t.filter(c=>c())}const i={add:n,clear:o};return i}function nn(t,n,o,i){const c=lt(),r=1e3/60;let e=null,u=0,s=0;function f(){c.add(t,"visibilitychange",()=>{t.hidden&&m()})}function y(){x(),c.clear()}function l(h){if(!s)return;e||(e=h);const a=h-e;for(e=h,u+=a;u>=r;)o(),u-=r;const g=M(u/r);i(g),s&&n.requestAnimationFrame(l)}function p(){s||(s=n.requestAnimationFrame(l))}function x(){n.cancelAnimationFrame(s),e=null,u=0,s=0}function m(){e=null,u=0}return{init:f,destroy:y,start:p,stop:x,update:o,render:i}}function en(t,n){const o=t==="y"?"y":"x",i=t==="y"?"x":"y",c=u(),r=s();function e(y){const{width:l,height:p}=y;return o==="x"?l:p}function u(){return o==="y"?"top":n==="rtl"?"right":"left"}function s(){return o==="y"?"bottom":n==="rtl"?"left":"right"}return{scroll:o,cross:i,startEdge:c,endEdge:r,measureSize:e}}function nt(t=0,n=0){const o=M(t-n);function i(f){return fn}function r(f){return i(f)||c(f)}function e(f){return r(f)?i(f)?t:n:f}function u(f){return o?f-o*Math.ceil((f-n)/o):f}return{length:o,max:n,min:t,constrain:e,reachedAny:r,reachedMax:c,reachedMin:i,removeOffset:u}}function jt(t,n,o){const{constrain:i}=nt(0,t),c=t+1;let r=e(n);function e(p){return o?M((c+p)%c):i(p)}function u(){return r}function s(p){return r=e(p),l}function f(p){return y().set(u()+p)}function y(){return jt(t,u(),o)}const l={get:u,set:s,add:f,clone:y};return l}function on(t){const n=t==="rtl"?-1:1;function o(c){return c*n}return{apply:o}}function rn(t,n,o,i,c,r,e,u,s,f,y,l,p,x,m,d,h,a,g,b){const{cross:v}=t,L=["INPUT","SELECT","TEXTAREA"],D={passive:!1},P=lt(),E=lt(),I=nt(50,225).constrain(m.measure(20)),O={mouse:300,touch:400},T={mouse:500,touch:600},C=d?43:25;let j=!1,H=0,q=0,G=!1,X=!1,Y=!1,$=!1;function rt(S){if(!b)return;function A(k){(It(b)||b(S,k))&&it(k)}const F=o;P.add(F,"dragstart",k=>k.preventDefault(),D).add(F,"touchmove",()=>{},D).add(F,"touchend",()=>{}).add(F,"touchstart",A).add(F,"mousedown",A).add(F,"touchcancel",N).add(F,"contextmenu",N).add(F,"click",K,!0)}function R(){P.clear(),E.clear()}function et(){const S=$?i:o;E.add(S,"touchmove",z,D).add(S,"touchend",N).add(S,"mousemove",z,D).add(S,"mouseup",N)}function ot(S){const A=S.nodeName||"";return L.includes(A)}function U(){return(d?T:O)[$?"mouse":"touch"]}function st(S,A){const F=p.add(Ot(S)*-1),k=l.byDistance(S,!d).distance;return d||M(S)=2,G=!0,e.pointerDown(S),y.useFriction(0).useDuration(0),r.set(u),et(),H=e.readPoint(S),q=e.readPoint(S,v),x.emit("pointerDown")))}function z(S){const A=e.readPoint(S),F=e.readPoint(S,v),k=ut(A,H),_=ut(F,q);if(!X&&!$&&(!S.cancelable||(X=k>_,!X)))return N(S);const Q=e.pointerMove(S);k>h&&(Y=!0),y.useFriction(.3).useDuration(1),s.start(),r.add(n.apply(Q)),S.preventDefault()}function N(S){const F=l.byDistance(0,!1).index!==p.get(),k=e.pointerUp(S)*U(),_=st(n.apply(k),F),Q=Wt(k,_),Z=C-10*Q,J=g+Q/50;X=!1,G=!1,E.clear(),y.useDuration(Z).useFriction(J),f.distance(_,!d),$=!1,x.emit("pointerUp")}function K(S){Y&&(S.stopPropagation(),S.preventDefault())}function V(){return G}return{init:rt,pointerDown:V,destroy:R}}function sn(t,n){let i,c;function r(l){return l.timeStamp}function e(l,p){const m=`client${(p||t.scroll)==="x"?"X":"Y"}`;return(Bt(l,n)?l:l.touches[0])[m]}function u(l){return i=l,c=l,e(l)}function s(l){const p=e(l)-e(c),x=r(l)-r(i)>170;return c=l,x&&(i=l),p}function f(l){if(!i||!c)return 0;const p=e(c)-e(i),x=r(l)-r(i),m=r(l)-r(c)>170,d=p/x;return x&&!m&&M(d)>.1?d:0}return{pointerDown:u,pointerMove:s,pointerUp:f,readPoint:e}}function cn(){function t(o){const{offsetTop:i,offsetLeft:c,offsetWidth:r,offsetHeight:e}=o;return{top:i,right:c+r,bottom:i+e,left:c,width:r,height:e}}return{measure:t}}function un(t){function n(i){return t*(i/100)}return{measure:n}}function fn(t,n,o,i,c,r,e){let u,s,f=[],y=!1;function l(d){return c.measureSize(e.measure(d))}function p(d){if(!r)return;s=l(t),f=i.map(l);function h(g){for(const b of g){const v=b.target===t,L=i.indexOf(b.target),D=v?s:f[L],P=l(v?t:i[L]);if(M(P-D)>=.5){o.requestAnimationFrame(()=>{d.reInit(),n.emit("resize")});break}}}u=new ResizeObserver(g=>{y||(It(r)||r(d,g))&&h(g)}),[t].concat(i).forEach(g=>u.observe(g))}function x(){u&&u.disconnect(),y=!0}return{init:p,destroy:x}}function an(t,n,o,i,c){let r=0,e=0,u=i,s=c,f=t.get(),y=0;function l(){const L=o.get()-t.get(),D=!u;let P=0;return D?(r=0,t.set(o),P=L):(r+=L/u,r*=s,f+=r,t.add(r),P=f-y),e=Ot(P),y=f,v}function p(){const L=o.get()-n.get();return M(L)<.001}function x(){return u}function m(){return e}function d(){return r}function h(){return g(i)}function a(){return b(c)}function g(L){return u=L,v}function b(L){return s=L,v}const v={direction:m,duration:x,velocity:d,seek:l,settled:p,useBaseFriction:a,useBaseDuration:h,useFriction:b,useDuration:g};return v}function ln(t,n,o,i,c){const r=c.measure(10),e=c.measure(50),u=nt(.1,.99);let s=!1;function f(){return!(s||!t.reachedAny(o.get())||!t.reachedAny(n.get()))}function y(x){if(!f())return;const m=t.reachedMin(n.get())?"min":"max",d=M(t[m]-n.get()),h=o.get()-n.get(),a=u.constrain(d/e);o.subtract(h*a),!x&&M(h){const{min:h,max:a}=r,g=r.constrain(m),b=!d,v=At(o,d);return b?a:v||f(h,g)?h:f(a,g)?a:g}).map(m=>parseFloat(m.toFixed(3)))}function p(){if(n<=t+c)return[r.max];if(i==="keepSnaps")return e;const{min:m,max:d}=u;return e.slice(m,d)}return{snapsContained:s,scrollContainLimit:u}}function pn(t,n,o){const i=n[0],c=o?i-t:B(n);return{limit:nt(c,i)}}function mn(t,n,o,i){const r=n.min+.1,e=n.max+.1,{reachedMin:u,reachedMax:s}=nt(r,e);function f(p){return p===1?s(o.get()):p===-1?u(o.get()):!1}function y(p){if(!f(p))return;const x=t*(p*-1);i.forEach(m=>m.add(x))}return{loop:y}}function gn(t){const{max:n,length:o}=t;function i(r){const e=r-n;return o?e/-o:0}return{get:i}}function hn(t,n,o,i,c){const{startEdge:r,endEdge:e}=t,{groupSlides:u}=c,s=l().map(n.measure),f=p(),y=x();function l(){return u(i).map(d=>B(d)[e]-d[0][r]).map(M)}function p(){return i.map(d=>o[r]-d[r]).map(d=>-M(d))}function x(){return u(f).map(d=>d[0]).map((d,h)=>d+s[h])}return{snaps:f,snapsAligned:y}}function yn(t,n,o,i,c,r){const{groupSlides:e}=c,{min:u,max:s}=i,f=y();function y(){const p=e(r),x=!t||n==="keepSnaps";return o.length===1?[r]:x?p:p.slice(u,s).map((m,d,h)=>{const a=!d,g=At(h,d);if(a){const b=B(h[0])+1;return zt(b)}if(g){const b=dt(r)-B(h)[0]+1;return zt(b,B(h)[0])}return m})}return{slideRegistry:f}}function Sn(t,n,o,i,c){const{reachedAny:r,removeOffset:e,constrain:u}=i;function s(m){return m.concat().sort((d,h)=>M(d)-M(h))[0]}function f(m){const d=t?e(m):u(m),h=n.map(g=>g-d).map(g=>y(g,0)).map((g,b)=>({diff:g,index:b})).sort((g,b)=>M(g.diff)-M(b.diff)),{index:a}=h[0];return{index:a,distance:d}}function y(m,d){const h=[m,m+o,m-o];if(!t)return h[0];if(!d)return s(h);const a=h.filter(g=>Ot(g)===d);return a.length?s(a):B(h)-o}function l(m,d){const h=n[m]-c.get(),a=y(h,d);return{index:m,distance:a}}function p(m,d){const h=c.get()+m,{index:a,distance:g}=f(h),b=!t&&r(h);if(!d||b)return{index:a,distance:m};const v=n[a]-g,L=m+y(v,0);return{index:a,distance:L}}return{byDistance:p,byIndex:l,shortcut:y}}function bn(t,n,o,i,c,r,e){function u(l){const p=l.distance,x=l.index!==n.get();r.add(p),p&&(i.duration()?t.start():(t.update(),t.render(1),t.update())),x&&(o.set(n.get()),n.set(l.index),e.emit("select"))}function s(l,p){const x=c.byDistance(l,p);u(x)}function f(l,p){const x=n.clone().set(l),m=c.byIndex(x.get(),p);u(m)}return{distance:s,index:f}}function xn(t,n,o,i,c,r){let e=0;function u(){r.add(document,"keydown",s,!1),n.forEach(f)}function s(l){l.code==="Tab"&&(e=new Date().getTime())}function f(l){const p=()=>{if(new Date().getTime()-e>10)return;t.scrollLeft=0;const d=n.indexOf(l),h=o.findIndex(a=>a.includes(d));Lt(h)&&(c.useDuration(0),i.index(h,0))};r.add(l,"focus",p,{passive:!0,capture:!0})}return{init:u}}function mt(t){let n=t;function o(){return n}function i(s){n=e(s)}function c(s){n+=e(s)}function r(s){n-=e(s)}function e(s){return Lt(s)?s:s.get()}return{get:o,set:i,add:c,subtract:r}}function Ht(t,n,o){const i=t.scroll==="x"?e:u,c=o.style;let r=!1;function e(p){return`translate3d(${p}px,0px,0px)`}function u(p){return`translate3d(0px,${p}px,0px)`}function s(p){r||(c.transform=i(n.apply(p)))}function f(p){r=!p}function y(){r||(c.transform="",o.getAttribute("style")||o.removeAttribute("style"))}return{clear:y,to:s,toggleActive:f}}function En(t,n,o,i,c,r,e,u,s,f){const l=ft(r),p=ft(r).reverse(),x=g().concat(b());function m(E,I){return E.reduce((O,T)=>O-r[T],I)}function d(E,I){return E.reduce((O,T)=>m(O,I)>0?O.concat([T]):O,[])}function h(E){return e.map((I,O)=>({start:I-c[O]+.5+E,end:I+o-.5+E}))}function a(E,I,O){const T=h(I);return E.map(C=>{const j=O?0:-i,H=O?i:0,q=O?"end":"start",G=T[C][q];return{index:C,loopPoint:G,slideLocation:mt(-1),translate:Ht(t,n,f[C]),target:()=>s.get()>G?j:H}})}function g(){const E=u[0],I=d(p,E);return a(I,i,!1)}function b(){const E=o-u[0]-1,I=d(l,E);return a(I,-i,!0)}function v(){return x.every(({index:E})=>{const I=l.filter(O=>O!==E);return m(I,o)<=.1})}function L(){x.forEach(E=>{const{target:I,translate:O,slideLocation:T}=E,C=I();C!==T.get()&&(O.to(C),T.set(C))})}function D(){x.forEach(E=>E.translate.clear())}return{canLoop:v,clear:D,loop:L,loopPoints:x}}function vn(t,n,o){let i,c=!1;function r(s){if(!o)return;function f(y){for(const l of y)if(l.type==="childList"){s.reInit(),n.emit("slidesChanged");break}}i=new MutationObserver(y=>{c||(It(o)||o(s,y))&&f(y)}),i.observe(t,{childList:!0})}function e(){i&&i.disconnect(),c=!0}return{init:r,destroy:e}}function Ln(t,n,o,i){const c={};let r=null,e=null,u,s=!1;function f(){u=new IntersectionObserver(m=>{s||(m.forEach(d=>{const h=n.indexOf(d.target);c[h]=d}),r=null,e=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:i}),n.forEach(m=>u.observe(m))}function y(){u&&u.disconnect(),s=!0}function l(m){return at(c).reduce((d,h)=>{const a=parseInt(h),{isIntersecting:g}=c[a];return(m&&g||!m&&!g)&&d.push(a),d},[])}function p(m=!0){if(m&&r)return r;if(!m&&e)return e;const d=l(m);return m&&(r=d),m||(e=d),d}return{init:f,destroy:y,get:p}}function In(t,n,o,i,c,r){const{measureSize:e,startEdge:u,endEdge:s}=t,f=o[0]&&c,y=m(),l=d(),p=o.map(e),x=h();function m(){if(!f)return 0;const g=o[0];return M(n[u]-g[u])}function d(){if(!f)return 0;const g=r.getComputedStyle(B(i));return parseFloat(g.getPropertyValue(`margin-${s}`))}function h(){return o.map((g,b,v)=>{const L=!b,D=At(v,b);return L?p[b]+y:D?p[b]+l:v[b+1][u]-g[u]}).map(M)}return{slideSizes:p,slideSizesWithGaps:x,startGap:y,endGap:l}}function On(t,n,o,i,c,r,e,u,s,f){const{startEdge:y,endEdge:l}=t,p=Lt(i);function x(a,g){return ft(a).filter(b=>b%g===0).map(b=>a.slice(b,b+g))}function m(a){return a.length?ft(a).reduce((g,b)=>{const v=B(g)||0,L=v===0,D=b===dt(a),P=r[y]-e[v][y],E=r[y]-e[b][l],I=!c&&L?n.apply(u):0,O=!c&&D?n.apply(s):0;return M(E-O-(P+I))>o+f&&g.push(b),D&&g.push(a.length),g},[]).map((g,b,v)=>{const L=Math.max(v[b-1]||0);return a.slice(L,g)}):[]}function d(a){return p?x(a,i):m(a)}return{groupSlides:d}}function An(t,n,o,i,c,r,e){const{align:u,axis:s,direction:f,startIndex:y,loop:l,duration:p,dragFree:x,dragThreshold:m,inViewThreshold:d,slidesToScroll:h,skipSnaps:a,containScroll:g,watchResize:b,watchSlides:v,watchDrag:L}=r,D=2,P=cn(),E=P.measure(n),I=o.map(P.measure),O=on(f),T=en(s,f),C=T.measureSize(E),j=un(C),H=tn(u,C),q=!l&&!!g,G=l||!!g,{slideSizes:X,slideSizesWithGaps:Y,startGap:$,endGap:rt}=In(T,E,I,o,G,c),R=On(T,O,C,h,l,E,I,$,rt,D),{snaps:et,snapsAligned:ot}=hn(T,H,E,I,R),U=-B(et)+B(Y),{snapsContained:st,scrollContainLimit:it}=dn(C,U,ot,g,D),z=q?st:ot,{limit:N}=pn(U,z,l),K=jt(dt(z),y,l),V=K.clone(),w=ft(o),S=({dragHandler:tt,scrollBody:bt,scrollBounds:xt,options:{loop:pt}})=>{pt||xt.constrain(tt.pointerDown()),bt.seek()},A=({scrollBody:tt,translate:bt,location:xt,offsetLocation:pt,scrollLooper:$t,slideLooper:Ut,dragHandler:Kt,animation:Qt,eventHandler:wt,options:{loop:Jt}},Xt)=>{const Pt=tt.velocity(),Ft=tt.settled();Ft&&!Kt.pointerDown()&&(Qt.stop(),wt.emit("settle")),Ft||wt.emit("scroll"),pt.set(xt.get()-Pt+Pt*Xt),Jt&&($t.loop(tt.direction()),Ut.loop()),bt.to(pt.get())},F=nn(i,c,()=>S(St),tt=>A(St,tt)),k=.68,_=z[K.get()],Q=mt(_),Z=mt(_),J=mt(_),ct=an(Q,Z,J,p,k),ht=Sn(l,z,U,N,J),yt=bn(F,K,V,ct,ht,J,e),Dt=gn(N),Tt=lt(),Rt=Ln(n,o,e,d),{slideRegistry:Mt}=yn(q,g,z,it,R,w),qt=xn(t,o,Mt,yt,ct,Tt),St={ownerDocument:i,ownerWindow:c,eventHandler:e,containerRect:E,slideRects:I,animation:F,axis:T,direction:O,dragHandler:rn(T,O,t,i,c,J,sn(T,c),Q,F,yt,ct,ht,K,e,j,x,m,a,k,L),eventStore:Tt,percentOfView:j,index:K,indexPrevious:V,limit:N,location:Q,offsetLocation:Z,options:r,resizeHandler:fn(n,e,c,o,T,b,P),scrollBody:ct,scrollBounds:ln(N,Z,J,ct,j),scrollLooper:mn(U,N,Z,[Q,Z,J]),scrollProgress:Dt,scrollSnapList:z.map(Dt.get),scrollSnaps:z,scrollTarget:ht,scrollTo:yt,slideLooper:En(T,O,C,U,X,Y,et,z,Z,o),slideFocus:qt,slidesHandler:vn(n,e,v),slidesInView:Rt,slideIndexes:w,slideRegistry:Mt,slidesToScroll:R,target:J,translate:Ht(T,O,n)};return St}function Dn(){const t={};let n;function o(s){n=s}function i(s){return t[s]||[]}function c(s){return i(s).forEach(f=>f(n,s)),u}function r(s,f){return t[s]=i(s).concat([f]),u}function e(s,f){return t[s]=i(s).filter(y=>y!==f),u}const u={init:o,emit:c,off:e,on:r};return u}const Tn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function Mn(t){function n(r,e){return Vt(r,e||{})}function o(r){const e=r.breakpoints||{},u=at(e).filter(s=>t.matchMedia(s).matches).map(s=>e[s]).reduce((s,f)=>n(s,f),{});return n(r,u)}function i(r){return r.map(e=>at(e.breakpoints||{})).reduce((e,u)=>e.concat(u),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:o,optionsMediaQueries:i}}function wn(t){let n=[];function o(r,e){return n=e.filter(({options:u})=>t.optionsAtMedia(u).active!==!1),n.forEach(u=>u.init(r,t)),e.reduce((u,s)=>Object.assign(u,{[s.name]:s}),{})}function i(){n=n.filter(r=>r.destroy())}return{init:o,destroy:i}}function gt(t,n,o){const i=t.ownerDocument,c=i.defaultView,r=Mn(c),e=wn(r),u=lt(),s=Dn(),{mergeOptions:f,optionsAtMedia:y,optionsMediaQueries:l}=r,{on:p,off:x,emit:m}=s,d=T;let h=!1,a,g=f(Tn,gt.globalOptions),b=f(g),v=[],L,D,P;function E(){const{container:w,slides:S}=b;D=(Et(w)?t.querySelector(w):w)||t.children[0];const F=Et(S)?D.querySelectorAll(S):S;P=[].slice.call(F||D.children)}function I(w){const S=An(t,D,P,i,c,w,s);if(w.loop&&!S.slideLooper.canLoop()){const A=Object.assign({},w,{loop:!1});return I(A)}return S}function O(w,S){h||(g=f(g,w),b=y(g),v=S||v,E(),a=I(b),l([g,...v.map(({options:A})=>A)]).forEach(A=>u.add(A,"change",T)),b.active&&(a.translate.to(a.location.get()),a.animation.init(),a.slidesInView.init(),a.slideFocus.init(),a.eventHandler.init(V),a.resizeHandler.init(V),a.slidesHandler.init(V),a.options.loop&&a.slideLooper.loop(),D.offsetParent&&P.length&&a.dragHandler.init(V),L=e.init(V,v)))}function T(w,S){const A=R();C(),O(f({startIndex:A},w),S),s.emit("reInit")}function C(){a.dragHandler.destroy(),a.eventStore.clear(),a.translate.clear(),a.slideLooper.clear(),a.resizeHandler.destroy(),a.slidesHandler.destroy(),a.slidesInView.destroy(),a.animation.destroy(),e.destroy(),u.clear()}function j(){h||(h=!0,u.clear(),C(),s.emit("destroy"))}function H(w,S,A){!b.active||h||(a.scrollBody.useBaseFriction().useDuration(S===!0?0:b.duration),a.scrollTo.index(w,A||0))}function q(w){const S=a.index.add(1).get();H(S,w,-1)}function G(w){const S=a.index.add(-1).get();H(S,w,1)}function X(){return a.index.add(1).get()!==R()}function Y(){return a.index.add(-1).get()!==R()}function $(){return a.scrollSnapList}function rt(){return a.scrollProgress.get(a.location.get())}function R(){return a.index.get()}function et(){return a.indexPrevious.get()}function ot(){return a.slidesInView.get()}function U(){return a.slidesInView.get(!1)}function st(){return L}function it(){return a}function z(){return t}function N(){return D}function K(){return P}const V={canScrollNext:X,canScrollPrev:Y,containerNode:N,internalEngine:it,destroy:j,off:x,on:p,emit:m,plugins:st,previousScrollSnap:et,reInit:d,rootNode:z,scrollNext:q,scrollPrev:G,scrollProgress:rt,scrollSnapList:$,scrollTo:H,selectedScrollSnap:R,slideNodes:K,slidesInView:ot,slidesNotInView:U};return O(n,o),setTimeout(()=>s.emit("init"),0),V}gt.globalOptions=void 0;function Gt(t={},n=[]){const o=W.useRef(t),i=W.useRef(n),[c,r]=W.useState(),[e,u]=W.useState(),s=W.useCallback(()=>{c&&c.reInit(o.current,i.current)},[c]);return W.useEffect(()=>{if(_t()&&e){gt.globalOptions=Gt.globalOptions;const f=gt(e,o.current,i.current);return r(f),()=>f.destroy()}else r(void 0)},[e,r]),W.useEffect(()=>{vt(o.current,t)||(o.current=t,s())},[t,s]),W.useEffect(()=>{Zt(i.current,n)||(i.current=n,s())},[n,s]),[u,c]}Gt.globalOptions=void 0;export{Gt as u}; diff --git a/assets/06-tanstack-CM-tI3Fb.js b/assets/06-tanstack-CM-tI3Fb.js new file mode 100644 index 0000000..e452eb2 --- /dev/null +++ b/assets/06-tanstack-CM-tI3Fb.js @@ -0,0 +1,22 @@ +import{r as N}from"./02-radix-ui-BssNd7Fu.js";/** + * table-core + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function x(e,o){return typeof e=="function"?e(o):e}function F(e,o){return t=>{o.setState(n=>({...n,[e]:x(t,n[e])}))}}function A(e){return e instanceof Function}function Ce(e){return Array.isArray(e)&&e.every(o=>typeof o=="number")}function Re(e,o){const t=[],n=i=>{i.forEach(r=>{t.push(r);const l=o(r);l!=null&&l.length&&n(l)})};return n(e),t}function m(e,o,t){let n=[],i;return r=>{let l;t.key&&t.debug&&(l=Date.now());const s=e(r);if(!(s.length!==n.length||s.some((g,f)=>n[f]!==g)))return i;n=s;let d;if(t.key&&t.debug&&(d=Date.now()),i=o(...s),t==null||t.onChange==null||t.onChange(i),t.key&&t.debug&&t!=null&&t.debug()){const g=Math.round((Date.now()-l)*100)/100,f=Math.round((Date.now()-d)*100)/100,c=f/16,u=(p,S)=>{for(p=String(p);p.length{var i;return(i=e?.debugAll)!=null?i:e[o]},key:!1,onChange:n}}function we(e,o,t,n){var i,r;const s={...e._getDefaultColumnDef(),...o},a=s.accessorKey;let d=(i=(r=s.id)!=null?r:a?a.replace(".","_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,g;if(s.accessorFn?g=s.accessorFn:a&&(a.includes(".")?g=c=>{let u=c;for(const S of a.split(".")){var p;u=(p=u)==null?void 0:p[S]}return u}:g=c=>c[s.accessorKey]),!d)throw new Error;let f={id:`${String(d)}`,accessorFn:g,parent:n,depth:t,columnDef:s,columns:[],getFlatColumns:m(()=>[!0],()=>{var c;return[f,...(c=f.columns)==null?void 0:c.flatMap(u=>u.getFlatColumns())]},C(e.options,"debugColumns")),getLeafColumns:m(()=>[e._getOrderColumnsFn()],c=>{var u;if((u=f.columns)!=null&&u.length){let p=f.columns.flatMap(S=>S.getLeafColumns());return c(p)}return[f]},C(e.options,"debugColumns"))};for(const c of e._features)c.createColumn==null||c.createColumn(f,e);return f}const h="debugHeaders";function oe(e,o,t){var n;let r={id:(n=t.id)!=null?n:o.id,column:o,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],s=a=>{a.subHeaders&&a.subHeaders.length&&a.subHeaders.map(s),l.push(a)};return s(r),l},getContext:()=>({table:e,header:r,column:o})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(r,e)}),r}const ve={createTable:e=>{e.getHeaderGroups=m(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,t,n,i)=>{var r,l;const s=(r=n?.map(f=>t.find(c=>c.id===f)).filter(Boolean))!=null?r:[],a=(l=i?.map(f=>t.find(c=>c.id===f)).filter(Boolean))!=null?l:[],d=t.filter(f=>!(n!=null&&n.includes(f.id))&&!(i!=null&&i.includes(f.id)));return D(o,[...s,...d,...a],e)},C(e.options,h)),e.getCenterHeaderGroups=m(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,t,n,i)=>(t=t.filter(r=>!(n!=null&&n.includes(r.id))&&!(i!=null&&i.includes(r.id))),D(o,t,e,"center")),C(e.options,h)),e.getLeftHeaderGroups=m(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(o,t,n)=>{var i;const r=(i=n?.map(l=>t.find(s=>s.id===l)).filter(Boolean))!=null?i:[];return D(o,r,e,"left")},C(e.options,h)),e.getRightHeaderGroups=m(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(o,t,n)=>{var i;const r=(i=n?.map(l=>t.find(s=>s.id===l)).filter(Boolean))!=null?i:[];return D(o,r,e,"right")},C(e.options,h)),e.getFooterGroups=m(()=>[e.getHeaderGroups()],o=>[...o].reverse(),C(e.options,h)),e.getLeftFooterGroups=m(()=>[e.getLeftHeaderGroups()],o=>[...o].reverse(),C(e.options,h)),e.getCenterFooterGroups=m(()=>[e.getCenterHeaderGroups()],o=>[...o].reverse(),C(e.options,h)),e.getRightFooterGroups=m(()=>[e.getRightHeaderGroups()],o=>[...o].reverse(),C(e.options,h)),e.getFlatHeaders=m(()=>[e.getHeaderGroups()],o=>o.map(t=>t.headers).flat(),C(e.options,h)),e.getLeftFlatHeaders=m(()=>[e.getLeftHeaderGroups()],o=>o.map(t=>t.headers).flat(),C(e.options,h)),e.getCenterFlatHeaders=m(()=>[e.getCenterHeaderGroups()],o=>o.map(t=>t.headers).flat(),C(e.options,h)),e.getRightFlatHeaders=m(()=>[e.getRightHeaderGroups()],o=>o.map(t=>t.headers).flat(),C(e.options,h)),e.getCenterLeafHeaders=m(()=>[e.getCenterFlatHeaders()],o=>o.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),C(e.options,h)),e.getLeftLeafHeaders=m(()=>[e.getLeftFlatHeaders()],o=>o.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),C(e.options,h)),e.getRightLeafHeaders=m(()=>[e.getRightFlatHeaders()],o=>o.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),C(e.options,h)),e.getLeafHeaders=m(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(o,t,n)=>{var i,r,l,s,a,d;return[...(i=(r=o[0])==null?void 0:r.headers)!=null?i:[],...(l=(s=t[0])==null?void 0:s.headers)!=null?l:[],...(a=(d=n[0])==null?void 0:d.headers)!=null?a:[]].map(g=>g.getLeafHeaders()).flat()},C(e.options,h))}};function D(e,o,t,n){var i,r;let l=0;const s=function(c,u){u===void 0&&(u=1),l=Math.max(l,u),c.filter(p=>p.getIsVisible()).forEach(p=>{var S;(S=p.columns)!=null&&S.length&&s(p.columns,u+1)},0)};s(e);let a=[];const d=(c,u)=>{const p={depth:u,id:[n,`${u}`].filter(Boolean).join("_"),headers:[]},S=[];c.forEach(w=>{const R=[...S].reverse()[0],_=w.column.depth===p.depth;let v,$=!1;if(_&&w.column.parent?v=w.column.parent:(v=w.column,$=!0),R&&R?.column===v)R.subHeaders.push(w);else{const P=oe(t,v,{id:[n,u,v.id,w?.id].filter(Boolean).join("_"),isPlaceholder:$,placeholderId:$?`${S.filter(L=>L.column===v).length}`:void 0,depth:u,index:S.length});P.subHeaders.push(w),S.push(P)}p.headers.push(w),w.headerGroup=p}),a.push(p),u>0&&d(S,u-1)},g=o.map((c,u)=>oe(t,c,{depth:l,index:u}));d(g,l-1),a.reverse();const f=c=>c.filter(p=>p.column.getIsVisible()).map(p=>{let S=0,w=0,R=[0];p.subHeaders&&p.subHeaders.length?(R=[],f(p.subHeaders).forEach(v=>{let{colSpan:$,rowSpan:P}=v;S+=$,R.push(P)})):S=1;const _=Math.min(...R);return w=w+_,p.colSpan=S,p.rowSpan=w,{colSpan:S,rowSpan:w}});return f((i=(r=a[0])==null?void 0:r.headers)!=null?i:[]),a}const G={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},z=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),he={getDefaultColumnDef:()=>G,getInitialState:e=>({columnSizing:{},columnSizingInfo:z(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:F("columnSizing",e),onColumnSizingInfoChange:F("columnSizingInfo",e)}),createColumn:(e,o)=>{e.getSize=()=>{var t,n,i;const r=o.getState().columnSizing[e.id];return Math.min(Math.max((t=e.columnDef.minSize)!=null?t:G.minSize,(n=r??e.columnDef.size)!=null?n:G.size),(i=e.columnDef.maxSize)!=null?i:G.maxSize)},e.getStart=m(t=>[t,E(o,t),o.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((i,r)=>i+r.getSize(),0),C(o.options,"debugColumns")),e.getAfter=m(t=>[t,E(o,t),o.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((i,r)=>i+r.getSize(),0),C(o.options,"debugColumns")),e.resetSize=()=>{o.setColumnSizing(t=>{let{[e.id]:n,...i}=t;return i})},e.getCanResize=()=>{var t,n;return((t=e.columnDef.enableResizing)!=null?t:!0)&&((n=o.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>o.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,o)=>{e.getSize=()=>{let t=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var r;t+=(r=i.column.getSize())!=null?r:0}};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=t=>{const n=o.getColumn(e.column.id),i=n?.getCanResize();return r=>{if(!n||!i||(r.persist==null||r.persist(),O(r)&&r.touches&&r.touches.length>1))return;const l=e.getSize(),s=e?e.getLeafHeaders().map(R=>[R.column.id,R.column.getSize()]):[[n.id,n.getSize()]],a=O(r)?Math.round(r.touches[0].clientX):r.clientX,d={},g=(R,_)=>{typeof _=="number"&&(o.setColumnSizingInfo(v=>{var $,P;const L=o.options.columnResizeDirection==="rtl"?-1:1,ee=(_-(($=v?.startOffset)!=null?$:0))*L,te=Math.max(ee/((P=v?.startSize)!=null?P:0),-.999999);return v.columnSizingStart.forEach(Se=>{let[me,ne]=Se;d[me]=Math.round(Math.max(ne+ne*te,0)*100)/100}),{...v,deltaOffset:ee,deltaPercentage:te}}),(o.options.columnResizeMode==="onChange"||R==="end")&&o.setColumnSizing(v=>({...v,...d})))},f=R=>g("move",R),c=R=>{g("end",R),o.setColumnSizingInfo(_=>({..._,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},u=t||typeof document<"u"?document:null,p={moveHandler:R=>f(R.clientX),upHandler:R=>{u?.removeEventListener("mousemove",p.moveHandler),u?.removeEventListener("mouseup",p.upHandler),c(R.clientX)}},S={moveHandler:R=>(R.cancelable&&(R.preventDefault(),R.stopPropagation()),f(R.touches[0].clientX),!1),upHandler:R=>{var _;u?.removeEventListener("touchmove",S.moveHandler),u?.removeEventListener("touchend",S.upHandler),R.cancelable&&(R.preventDefault(),R.stopPropagation()),c((_=R.touches[0])==null?void 0:_.clientX)}},w=_e()?{passive:!1}:!1;O(r)?(u?.addEventListener("touchmove",S.moveHandler,w),u?.addEventListener("touchend",S.upHandler,w)):(u?.addEventListener("mousemove",p.moveHandler,w),u?.addEventListener("mouseup",p.upHandler,w)),o.setColumnSizingInfo(R=>({...R,startOffset:a,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=o=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(o),e.setColumnSizingInfo=o=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(o),e.resetColumnSizing=o=>{var t;e.setColumnSizing(o?{}:(t=e.initialState.columnSizing)!=null?t:{})},e.resetHeaderSizeInfo=o=>{var t;e.setColumnSizingInfo(o?z():(t=e.initialState.columnSizingInfo)!=null?t:z())},e.getTotalSize=()=>{var o,t;return(o=(t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((n,i)=>n+i.getSize(),0))!=null?o:0},e.getLeftTotalSize=()=>{var o,t;return(o=(t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((n,i)=>n+i.getSize(),0))!=null?o:0},e.getCenterTotalSize=()=>{var o,t;return(o=(t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((n,i)=>n+i.getSize(),0))!=null?o:0},e.getRightTotalSize=()=>{var o,t;return(o=(t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((n,i)=>n+i.getSize(),0))!=null?o:0}}};let H=null;function _e(){if(typeof H=="boolean")return H;let e=!1;try{const o={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,o),window.removeEventListener("test",t)}catch{e=!1}return H=e,H}function O(e){return e.type==="touchstart"}const Fe={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:F("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let o=!1,t=!1;e._autoResetExpanded=()=>{var n,i;if(!o){e._queue(()=>{o=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(t)return;t=!0,e._queue(()=>{e.resetExpanded(),t=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var i,r;e.setExpanded(n?{}:(i=(r=e.initialState)==null?void 0:r.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(r=>{const l=r.split(".");n=Math.max(n,l.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,o)=>{e.toggleExpanded=t=>{o.setExpanded(n=>{var i;const r=n===!0?!0:!!(n!=null&&n[e.id]);let l={};if(n===!0?Object.keys(o.getRowModel().rowsById).forEach(s=>{l[s]=!0}):l=n,t=(i=t)!=null?i:!r,!r&&t)return{...l,[e.id]:!0};if(r&&!t){const{[e.id]:s,...a}=l;return a}return n})},e.getIsExpanded=()=>{var t;const n=o.getState().expanded;return!!((t=o.options.getIsRowExpanded==null?void 0:o.options.getIsRowExpanded(e))!=null?t:n===!0||n?.[e.id])},e.getCanExpand=()=>{var t,n,i;return(t=o.options.getRowCanExpand==null?void 0:o.options.getRowCanExpand(e))!=null?t:((n=o.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let t=!0,n=e;for(;t&&n.parentId;)n=o.getRow(n.parentId,!0),t=n.getIsExpanded();return t},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},le=(e,o,t)=>{var n;const i=t.toLowerCase();return!!(!((n=e.getValue(o))==null||(n=n.toString())==null||(n=n.toLowerCase())==null)&&n.includes(i))};le.autoRemove=e=>V(e);const se=(e,o,t)=>{var n;return!!(!((n=e.getValue(o))==null||(n=n.toString())==null)&&n.includes(t))};se.autoRemove=e=>V(e);const ue=(e,o,t)=>{var n;return((n=e.getValue(o))==null||(n=n.toString())==null?void 0:n.toLowerCase())===t?.toLowerCase()};ue.autoRemove=e=>V(e);const ae=(e,o,t)=>{var n;return(n=e.getValue(o))==null?void 0:n.includes(t)};ae.autoRemove=e=>V(e)||!(e!=null&&e.length);const ge=(e,o,t)=>!t.some(n=>{var i;return!((i=e.getValue(o))!=null&&i.includes(n))});ge.autoRemove=e=>V(e)||!(e!=null&&e.length);const de=(e,o,t)=>t.some(n=>{var i;return(i=e.getValue(o))==null?void 0:i.includes(n)});de.autoRemove=e=>V(e)||!(e!=null&&e.length);const fe=(e,o,t)=>e.getValue(o)===t;fe.autoRemove=e=>V(e);const ce=(e,o,t)=>e.getValue(o)==t;ce.autoRemove=e=>V(e);const W=(e,o,t)=>{let[n,i]=t;const r=e.getValue(o);return r>=n&&r<=i};W.resolveFilterValue=e=>{let[o,t]=e,n=typeof o!="number"?parseFloat(o):o,i=typeof t!="number"?parseFloat(t):t,r=o===null||Number.isNaN(n)?-1/0:n,l=t===null||Number.isNaN(i)?1/0:i;if(r>l){const s=r;r=l,l=s}return[r,l]};W.autoRemove=e=>V(e)||V(e[0])&&V(e[1]);const M={includesString:le,includesStringSensitive:se,equalsString:ue,arrIncludes:ae,arrIncludesAll:ge,arrIncludesSome:de,equals:fe,weakEquals:ce,inNumberRange:W};function V(e){return e==null||e===""}const $e={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:F("columnFilters",e),onGlobalFilterChange:F("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:o=>{var t;const n=(t=e.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[o.id])==null?void 0:t.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,o)=>{e.getAutoFilterFn=()=>{const t=o.getCoreRowModel().flatRows[0],n=t?.getValue(e.id);return typeof n=="string"?M.includesString:typeof n=="number"?M.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?M.equals:Array.isArray(n)?M.arrIncludes:M.weakEquals},e.getFilterFn=()=>{var t,n;return A(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(t=(n=o.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?t:M[e.columnDef.filterFn]},e.getCanFilter=()=>{var t,n,i;return((t=e.columnDef.enableColumnFilter)!=null?t:!0)&&((n=o.options.enableColumnFilters)!=null?n:!0)&&((i=o.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var t,n,i,r;return((t=e.columnDef.enableGlobalFilter)!=null?t:!0)&&((n=o.options.enableGlobalFilter)!=null?n:!0)&&((i=o.options.enableFilters)!=null?i:!0)&&((r=o.options.getColumnCanGlobalFilter==null?void 0:o.options.getColumnCanGlobalFilter(e))!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var t;return(t=o.getState().columnFilters)==null||(t=t.find(n=>n.id===e.id))==null?void 0:t.value},e.getFilterIndex=()=>{var t,n;return(t=(n=o.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?t:-1},e.setFilterValue=t=>{o.setColumnFilters(n=>{const i=e.getFilterFn(),r=n?.find(g=>g.id===e.id),l=x(t,r?r.value:void 0);if(ie(i,l,e)){var s;return(s=n?.filter(g=>g.id!==e.id))!=null?s:[]}const a={id:e.id,value:l};if(r){var d;return(d=n?.map(g=>g.id===e.id?a:g))!=null?d:[]}return n!=null&&n.length?[...n,a]:[a]})},e._getFacetedRowModel=o.options.getFacetedRowModel&&o.options.getFacetedRowModel(o,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():o.getPreFilteredRowModel(),e._getFacetedUniqueValues=o.options.getFacetedUniqueValues&&o.options.getFacetedUniqueValues(o,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=o.options.getFacetedMinMaxValues&&o.options.getFacetedMinMaxValues(o,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,o)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>M.includesString,e.getGlobalFilterFn=()=>{var o,t;const{globalFilterFn:n}=e.options;return A(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(o=(t=e.options.filterFns)==null?void 0:t[n])!=null?o:M[n]},e.setColumnFilters=o=>{const t=e.getAllLeafColumns(),n=i=>{var r;return(r=x(o,i))==null?void 0:r.filter(l=>{const s=t.find(a=>a.id===l.id);if(s){const a=s.getFilterFn();if(ie(a,l.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.setGlobalFilter=o=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(o)},e.resetGlobalFilter=o=>{e.setGlobalFilter(o?void 0:e.initialState.globalFilter)},e.resetColumnFilters=o=>{var t,n;e.setColumnFilters(o?[]:(t=(n=e.initialState)==null?void 0:n.columnFilters)!=null?t:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function ie(e,o,t){return(e&&e.autoRemove?e.autoRemove(o,t):!1)||typeof o>"u"||typeof o=="string"&&!o}const Ve=(e,o,t)=>t.reduce((n,i)=>{const r=i.getValue(e);return n+(typeof r=="number"?r:0)},0),Pe=(e,o,t)=>{let n;return t.forEach(i=>{const r=i.getValue(e);r!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}),n},Me=(e,o,t)=>{let n;return t.forEach(i=>{const r=i.getValue(e);r!=null&&(n=r)&&(n=r)}),n},xe=(e,o,t)=>{let n,i;return t.forEach(r=>{const l=r.getValue(e);l!=null&&(n===void 0?l>=l&&(n=i=l):(n>l&&(n=l),i{let t=0,n=0;if(o.forEach(i=>{let r=i.getValue(e);r!=null&&(r=+r)>=r&&(++t,n+=r)}),t)return n/t},ye=(e,o)=>{if(!o.length)return;const t=o.map(r=>r.getValue(e));if(!Ce(t))return;if(t.length===1)return t[0];const n=Math.floor(t.length/2),i=t.sort((r,l)=>r-l);return t.length%2!==0?i[n]:(i[n-1]+i[n])/2},Ee=(e,o)=>Array.from(new Set(o.map(t=>t.getValue(e))).values()),De=(e,o)=>new Set(o.map(t=>t.getValue(e))).size,Ge=(e,o)=>o.length,B={sum:Ve,min:Pe,max:Me,extent:xe,mean:Ie,median:ye,unique:Ee,uniqueCount:De,count:Ge},He={getDefaultColumnDef:()=>({aggregatedCell:e=>{var o,t;return(o=(t=e.getValue())==null||t.toString==null?void 0:t.toString())!=null?o:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:F("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,o)=>{e.toggleGrouping=()=>{o.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(n=>n!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var t,n,i,r;return(t=(n=(i=(r=e.columnDef.enableGrouping)!=null?r:!0)!=null?i:o.options.enableGrouping)!=null?n:!0)!=null?t:!!e.accessorFn},e.getIsGrouped=()=>{var t;return(t=o.getState().grouping)==null?void 0:t.includes(e.id)},e.getGroupedIndex=()=>{var t;return(t=o.getState().grouping)==null?void 0:t.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const t=o.getCoreRowModel().flatRows[0],n=t?.getValue(e.id);if(typeof n=="number")return B.sum;if(Object.prototype.toString.call(n)==="[object Date]")return B.extent},e.getAggregationFn=()=>{var t,n;if(!e)throw new Error;return A(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(t=(n=o.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?t:B[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=o=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(o),e.resetGrouping=o=>{var t,n;e.setGrouping(o?[]:(t=(n=e.initialState)==null?void 0:n.grouping)!=null?t:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,o)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=t=>{if(e._groupingValuesCache.hasOwnProperty(t))return e._groupingValuesCache[t];const n=o.getColumn(t);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[t]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[t]):e.getValue(t)},e._groupingValuesCache={}},createCell:(e,o,t,n)=>{e.getIsGrouped=()=>o.getIsGrouped()&&o.id===t.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&o.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=t.subRows)!=null&&i.length)}}};function Ae(e,o,t){if(!(o!=null&&o.length)||!t)return e;const n=e.filter(r=>!o.includes(r.id));return t==="remove"?n:[...o.map(r=>e.find(l=>l.id===r)).filter(Boolean),...n]}const Le={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:F("columnOrder",e)}),createColumn:(e,o)=>{e.getIndex=m(t=>[E(o,t)],t=>t.findIndex(n=>n.id===e.id),C(o.options,"debugColumns")),e.getIsFirstColumn=t=>{var n;return((n=E(o,t)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=t=>{var n;const i=E(o,t);return((n=i[i.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=o=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(o),e.resetColumnOrder=o=>{var t;e.setColumnOrder(o?[]:(t=e.initialState.columnOrder)!=null?t:[])},e._getOrderColumnsFn=m(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(o,t,n)=>i=>{let r=[];if(!(o!=null&&o.length))r=i;else{const l=[...o],s=[...i];for(;s.length&&l.length;){const a=l.shift(),d=s.findIndex(g=>g.id===a);d>-1&&r.push(s.splice(d,1)[0])}r=[...r,...s]}return Ae(r,t,n)},C(e.options,"debugTable"))}},U=0,X=10,T=()=>({pageIndex:U,pageSize:X}),ze={getInitialState:e=>({...e,pagination:{...T(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:F("pagination",e)}),createTable:e=>{let o=!1,t=!1;e._autoResetPageIndex=()=>{var n,i;if(!o){e._queue(()=>{o=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(t)return;t=!0,e._queue(()=>{e.resetPageIndex(),t=!1})}},e.setPagination=n=>{const i=r=>x(n,r);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=n=>{var i;e.setPagination(n?T():(i=e.initialState.pagination)!=null?i:T())},e.setPageIndex=n=>{e.setPagination(i=>{let r=x(n,i.pageIndex);const l=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,l)),{...i,pageIndex:r}})},e.resetPageIndex=n=>{var i,r;e.setPageIndex(n?U:(i=(r=e.initialState)==null||(r=r.pagination)==null?void 0:r.pageIndex)!=null?i:U)},e.resetPageSize=n=>{var i,r;e.setPageSize(n?X:(i=(r=e.initialState)==null||(r=r.pagination)==null?void 0:r.pageSize)!=null?i:X)},e.setPageSize=n=>{e.setPagination(i=>{const r=Math.max(1,x(n,i.pageSize)),l=i.pageSize*i.pageIndex,s=Math.floor(l/r);return{...i,pageIndex:s,pageSize:r}})},e.setPageCount=n=>e.setPagination(i=>{var r;let l=x(n,(r=e.options.pageCount)!=null?r:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...i,pageCount:l}}),e.getPageOptions=m(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((r,l)=>l)),i},C(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:ne.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},q=()=>({left:[],right:[]}),k=()=>({top:[],bottom:[]}),Oe={getInitialState:e=>({columnPinning:q(),rowPinning:k(),...e}),getDefaultOptions:e=>({onColumnPinningChange:F("columnPinning",e),onRowPinningChange:F("rowPinning",e)}),createColumn:(e,o)=>{e.pin=t=>{const n=e.getLeafColumns().map(i=>i.id).filter(Boolean);o.setColumnPinning(i=>{var r,l;if(t==="right"){var s,a;return{left:((s=i?.left)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((a=i?.right)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(t==="left"){var d,g;return{left:[...((d=i?.left)!=null?d:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((g=i?.right)!=null?g:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((r=i?.left)!=null?r:[]).filter(f=>!(n!=null&&n.includes(f))),right:((l=i?.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var i,r,l;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((r=(l=o.options.enableColumnPinning)!=null?l:o.options.enablePinning)!=null?r:!0)}),e.getIsPinned=()=>{const t=e.getLeafColumns().map(s=>s.id),{left:n,right:i}=o.getState().columnPinning,r=t.some(s=>n?.includes(s)),l=t.some(s=>i?.includes(s));return r?"left":l?"right":!1},e.getPinnedIndex=()=>{var t,n;const i=e.getIsPinned();return i?(t=(n=o.getState().columnPinning)==null||(n=n[i])==null?void 0:n.indexOf(e.id))!=null?t:-1:0}},createRow:(e,o)=>{e.pin=(t,n,i)=>{const r=n?e.getLeafRows().map(a=>{let{id:d}=a;return d}):[],l=i?e.getParentRows().map(a=>{let{id:d}=a;return d}):[],s=new Set([...l,e.id,...r]);o.setRowPinning(a=>{var d,g;if(t==="bottom"){var f,c;return{top:((f=a?.top)!=null?f:[]).filter(S=>!(s!=null&&s.has(S))),bottom:[...((c=a?.bottom)!=null?c:[]).filter(S=>!(s!=null&&s.has(S))),...Array.from(s)]}}if(t==="top"){var u,p;return{top:[...((u=a?.top)!=null?u:[]).filter(S=>!(s!=null&&s.has(S))),...Array.from(s)],bottom:((p=a?.bottom)!=null?p:[]).filter(S=>!(s!=null&&s.has(S)))}}return{top:((d=a?.top)!=null?d:[]).filter(S=>!(s!=null&&s.has(S))),bottom:((g=a?.bottom)!=null?g:[]).filter(S=>!(s!=null&&s.has(S)))}})},e.getCanPin=()=>{var t;const{enableRowPinning:n,enablePinning:i}=o.options;return typeof n=="function"?n(e):(t=n??i)!=null?t:!0},e.getIsPinned=()=>{const t=[e.id],{top:n,bottom:i}=o.getState().rowPinning,r=t.some(s=>n?.includes(s)),l=t.some(s=>i?.includes(s));return r?"top":l?"bottom":!1},e.getPinnedIndex=()=>{var t,n;const i=e.getIsPinned();if(!i)return-1;const r=(t=o._getPinnedRows(i))==null?void 0:t.map(l=>{let{id:s}=l;return s});return(n=r?.indexOf(e.id))!=null?n:-1},e.getCenterVisibleCells=m(()=>[e._getAllVisibleCells(),o.getState().columnPinning.left,o.getState().columnPinning.right],(t,n,i)=>{const r=[...n??[],...i??[]];return t.filter(l=>!r.includes(l.column.id))},C(o.options,"debugRows")),e.getLeftVisibleCells=m(()=>[e._getAllVisibleCells(),o.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(l=>l.column.id===r)).filter(Boolean).map(r=>({...r,position:"left"})),C(o.options,"debugRows")),e.getRightVisibleCells=m(()=>[e._getAllVisibleCells(),o.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(l=>l.column.id===r)).filter(Boolean).map(r=>({...r,position:"right"})),C(o.options,"debugRows"))},createTable:e=>{e.setColumnPinning=o=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(o),e.resetColumnPinning=o=>{var t,n;return e.setColumnPinning(o?q():(t=(n=e.initialState)==null?void 0:n.columnPinning)!=null?t:q())},e.getIsSomeColumnsPinned=o=>{var t;const n=e.getState().columnPinning;if(!o){var i,r;return!!((i=n.left)!=null&&i.length||(r=n.right)!=null&&r.length)}return!!((t=n[o])!=null&&t.length)},e.getLeftLeafColumns=m(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(o,t)=>(t??[]).map(n=>o.find(i=>i.id===n)).filter(Boolean),C(e.options,"debugColumns")),e.getRightLeafColumns=m(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(o,t)=>(t??[]).map(n=>o.find(i=>i.id===n)).filter(Boolean),C(e.options,"debugColumns")),e.getCenterLeafColumns=m(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,t,n)=>{const i=[...t??[],...n??[]];return o.filter(r=>!i.includes(r.id))},C(e.options,"debugColumns")),e.setRowPinning=o=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(o),e.resetRowPinning=o=>{var t,n;return e.setRowPinning(o?k():(t=(n=e.initialState)==null?void 0:n.rowPinning)!=null?t:k())},e.getIsSomeRowsPinned=o=>{var t;const n=e.getState().rowPinning;if(!o){var i,r;return!!((i=n.top)!=null&&i.length||(r=n.bottom)!=null&&r.length)}return!!((t=n[o])!=null&&t.length)},e._getPinnedRows=m(o=>[e.getRowModel().rows,e.getState().rowPinning[o],o],(o,t,n)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(t??[]).map(l=>{const s=e.getRow(l,!0);return s.getIsAllParentsExpanded()?s:null}):(t??[]).map(l=>o.find(s=>s.id===l))).filter(Boolean).map(l=>({...l,position:n}))},C(e.options,"debugRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=m(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(o,t,n)=>{const i=new Set([...t??[],...n??[]]);return o.filter(r=>!i.has(r.id))},C(e.options,"debugRows"))}},Be={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:F("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=o=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(o),e.resetRowSelection=o=>{var t;return e.setRowSelection(o?{}:(t=e.initialState.rowSelection)!=null?t:{})},e.toggleAllRowsSelected=o=>{e.setRowSelection(t=>{o=typeof o<"u"?o:!e.getIsAllRowsSelected();const n={...t},i=e.getPreGroupedRowModel().flatRows;return o?i.forEach(r=>{r.getCanSelect()&&(n[r.id]=!0)}):i.forEach(r=>{delete n[r.id]}),n})},e.toggleAllPageRowsSelected=o=>e.setRowSelection(t=>{const n=typeof o<"u"?o:!e.getIsAllPageRowsSelected(),i={...t};return e.getRowModel().rows.forEach(r=>{K(i,r.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=m(()=>[e.getState().rowSelection,e.getCoreRowModel()],(o,t)=>Object.keys(o).length?j(e,t):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable")),e.getFilteredSelectedRowModel=m(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(o,t)=>Object.keys(o).length?j(e,t):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable")),e.getGroupedSelectedRowModel=m(()=>[e.getState().rowSelection,e.getSortedRowModel()],(o,t)=>Object.keys(o).length?j(e,t):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const o=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let n=!!(o.length&&Object.keys(t).length);return n&&o.some(i=>i.getCanSelect()&&!t[i.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const o=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:t}=e.getState();let n=!!o.length;return n&&o.some(i=>!t[i.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var o;const t=Object.keys((o=e.getState().rowSelection)!=null?o:{}).length;return t>0&&t{const o=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:o.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>o=>{e.toggleAllRowsSelected(o.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>o=>{e.toggleAllPageRowsSelected(o.target.checked)}},createRow:(e,o)=>{e.toggleSelected=(t,n)=>{const i=e.getIsSelected();o.setRowSelection(r=>{var l;if(t=typeof t<"u"?t:!i,e.getCanSelect()&&i===t)return r;const s={...r};return K(s,e.id,t,(l=n?.selectChildren)!=null?l:!0,o),s})},e.getIsSelected=()=>{const{rowSelection:t}=o.getState();return Y(e,t)},e.getIsSomeSelected=()=>{const{rowSelection:t}=o.getState();return J(e,t)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=o.getState();return J(e,t)==="all"},e.getCanSelect=()=>{var t;return typeof o.options.enableRowSelection=="function"?o.options.enableRowSelection(e):(t=o.options.enableRowSelection)!=null?t:!0},e.getCanSelectSubRows=()=>{var t;return typeof o.options.enableSubRowSelection=="function"?o.options.enableSubRowSelection(e):(t=o.options.enableSubRowSelection)!=null?t:!0},e.getCanMultiSelect=()=>{var t;return typeof o.options.enableMultiRowSelection=="function"?o.options.enableMultiRowSelection(e):(t=o.options.enableMultiRowSelection)!=null?t:!0},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var i;t&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}}},K=(e,o,t,n,i)=>{var r;const l=i.getRow(o,!0);t?(l.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),l.getCanSelect()&&(e[o]=!0)):delete e[o],n&&(r=l.subRows)!=null&&r.length&&l.getCanSelectSubRows()&&l.subRows.forEach(s=>K(e,s.id,t,n,i))};function j(e,o){const t=e.getState().rowSelection,n=[],i={},r=function(l,s){return l.map(a=>{var d;const g=Y(a,t);if(g&&(n.push(a),i[a.id]=a),(d=a.subRows)!=null&&d.length&&(a={...a,subRows:r(a.subRows)}),g)return a}).filter(Boolean)};return{rows:r(o.rows),flatRows:n,rowsById:i}}function Y(e,o){var t;return(t=o[e.id])!=null?t:!1}function J(e,o,t){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let i=!0,r=!1;return e.subRows.forEach(l=>{if(!(r&&!i)&&(l.getCanSelect()&&(Y(l,o)?r=!0:i=!1),l.subRows&&l.subRows.length)){const s=J(l,o);s==="all"?r=!0:(s==="some"&&(r=!0),i=!1)}}),i?"all":r?"some":!1}const Q=/([0-9]+)/gm,Te=(e,o,t)=>pe(I(e.getValue(t)).toLowerCase(),I(o.getValue(t)).toLowerCase()),qe=(e,o,t)=>pe(I(e.getValue(t)),I(o.getValue(t))),ke=(e,o,t)=>Z(I(e.getValue(t)).toLowerCase(),I(o.getValue(t)).toLowerCase()),je=(e,o,t)=>Z(I(e.getValue(t)),I(o.getValue(t))),Ne=(e,o,t)=>{const n=e.getValue(t),i=o.getValue(t);return n>i?1:nZ(e.getValue(t),o.getValue(t));function Z(e,o){return e===o?0:e>o?1:-1}function I(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function pe(e,o){const t=e.split(Q).filter(Boolean),n=o.split(Q).filter(Boolean);for(;t.length&&n.length;){const i=t.shift(),r=n.shift(),l=parseInt(i,10),s=parseInt(r,10),a=[l,s].sort();if(isNaN(a[0])){if(i>r)return 1;if(r>i)return-1;continue}if(isNaN(a[1]))return isNaN(l)?-1:1;if(l>s)return 1;if(s>l)return-1}return t.length-n.length}const y={alphanumeric:Te,alphanumericCaseSensitive:qe,text:ke,textCaseSensitive:je,datetime:Ne,basic:Ue},Xe={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:F("sorting",e),isMultiSortEvent:o=>o.shiftKey}),createColumn:(e,o)=>{e.getAutoSortingFn=()=>{const t=o.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of t){const r=i?.getValue(e.id);if(Object.prototype.toString.call(r)==="[object Date]")return y.datetime;if(typeof r=="string"&&(n=!0,r.split(Q).length>1))return y.alphanumeric}return n?y.text:y.basic},e.getAutoSortDir=()=>{const t=o.getFilteredRowModel().flatRows[0];return typeof t?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var t,n;if(!e)throw new Error;return A(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(t=(n=o.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?t:y[e.columnDef.sortingFn]},e.toggleSorting=(t,n)=>{const i=e.getNextSortingOrder(),r=typeof t<"u"&&t!==null;o.setSorting(l=>{const s=l?.find(u=>u.id===e.id),a=l?.findIndex(u=>u.id===e.id);let d=[],g,f=r?t:i==="desc";if(l!=null&&l.length&&e.getCanMultiSort()&&n?s?g="toggle":g="add":l!=null&&l.length&&a!==l.length-1?g="replace":s?g="toggle":g="replace",g==="toggle"&&(r||i||(g="remove")),g==="add"){var c;d=[...l,{id:e.id,desc:f}],d.splice(0,d.length-((c=o.options.maxMultiSortColCount)!=null?c:Number.MAX_SAFE_INTEGER))}else g==="toggle"?d=l.map(u=>u.id===e.id?{...u,desc:f}:u):g==="remove"?d=l.filter(u=>u.id!==e.id):d=[{id:e.id,desc:f}];return d})},e.getFirstSortDir=()=>{var t,n;return((t=(n=e.columnDef.sortDescFirst)!=null?n:o.options.sortDescFirst)!=null?t:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=t=>{var n,i;const r=e.getFirstSortDir(),l=e.getIsSorted();return l?l!==r&&((n=o.options.enableSortingRemoval)==null||n)&&(!(t&&(i=o.options.enableMultiRemove)!=null)||i)?!1:l==="desc"?"asc":"desc":r},e.getCanSort=()=>{var t,n;return((t=e.columnDef.enableSorting)!=null?t:!0)&&((n=o.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var t,n;return(t=(n=e.columnDef.enableMultiSort)!=null?n:o.options.enableMultiSort)!=null?t:!!e.accessorFn},e.getIsSorted=()=>{var t;const n=(t=o.getState().sorting)==null?void 0:t.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var t,n;return(t=(n=o.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?t:-1},e.clearSorting=()=>{o.setSorting(t=>t!=null&&t.length?t.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const t=e.getCanSort();return n=>{t&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?o.options.isMultiSortEvent==null?void 0:o.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=o=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(o),e.resetSorting=o=>{var t,n;e.setSorting(o?[]:(t=(n=e.initialState)==null?void 0:n.sorting)!=null?t:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Ke={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:F("columnVisibility",e)}),createColumn:(e,o)=>{e.toggleVisibility=t=>{e.getCanHide()&&o.setColumnVisibility(n=>({...n,[e.id]:t??!e.getIsVisible()}))},e.getIsVisible=()=>{var t,n;return(t=(n=o.getState().columnVisibility)==null?void 0:n[e.id])!=null?t:!0},e.getCanHide=()=>{var t,n;return((t=e.columnDef.enableHiding)!=null?t:!0)&&((n=o.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,o)=>{e._getAllVisibleCells=m(()=>[e.getAllCells(),o.getState().columnVisibility],t=>t.filter(n=>n.column.getIsVisible()),C(o.options,"debugRows")),e.getVisibleCells=m(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(t,n,i)=>[...t,...n,...i],C(o.options,"debugRows"))},createTable:e=>{const o=(t,n)=>m(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(r=>r.getIsVisible==null?void 0:r.getIsVisible()),C(e.options,"debugColumns"));e.getVisibleFlatColumns=o("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=o("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=o("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=o("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=o("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=(n=t)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,r)=>({...i,[r.id]:t||!(r.getCanHide!=null&&r.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible((n=t.target)==null?void 0:n.checked)}}};function E(e,o){return o?o==="center"?e.getCenterVisibleLeafColumns():o==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const re=[ve,Ke,Le,Oe,$e,Xe,He,Fe,ze,Be,he];function Je(e){var o;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let t={_features:re};const n=t._features.reduce((g,f)=>Object.assign(g,f.getDefaultOptions==null?void 0:f.getDefaultOptions(t)),{}),i=g=>t.options.mergeOptions?t.options.mergeOptions(n,g):{...n,...g};let l={...{},...(o=e.initialState)!=null?o:{}};t._features.forEach(g=>{var f;l=(f=g.getInitialState==null?void 0:g.getInitialState(l))!=null?f:l});const s=[];let a=!1;const d={_features:re,options:{...n,...e},initialState:l,_queue:g=>{s.push(g),a||(a=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();a=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{t.setState(t.initialState)},setOptions:g=>{const f=x(g,t.options);t.options=i(f)},getState:()=>t.options.state,setState:g=>{t.options.onStateChange==null||t.options.onStateChange(g)},_getRowId:(g,f,c)=>{var u;return(u=t.options.getRowId==null?void 0:t.options.getRowId(g,f,c))!=null?u:`${c?[c.id,f].join("."):f}`},getCoreRowModel:()=>(t._getCoreRowModel||(t._getCoreRowModel=t.options.getCoreRowModel(t)),t._getCoreRowModel()),getRowModel:()=>t.getPaginationRowModel(),getRow:(g,f)=>{let c=(f?t.getPrePaginationRowModel():t.getRowModel()).rowsById[g];if(!c&&(c=t.getCoreRowModel().rowsById[g],!c))throw new Error;return c},_getDefaultColumnDef:m(()=>[t.options.defaultColumn],g=>{var f;return g=(f=g)!=null?f:{},{header:c=>{const u=c.header.column.columnDef;return u.accessorKey?u.accessorKey:u.accessorFn?u.id:null},cell:c=>{var u,p;return(u=(p=c.renderValue())==null||p.toString==null?void 0:p.toString())!=null?u:null},...t._features.reduce((c,u)=>Object.assign(c,u.getDefaultColumnDef==null?void 0:u.getDefaultColumnDef()),{}),...g}},C(e,"debugColumns")),_getColumnDefs:()=>t.options.columns,getAllColumns:m(()=>[t._getColumnDefs()],g=>{const f=function(c,u,p){return p===void 0&&(p=0),c.map(S=>{const w=we(t,S,p,u),R=S;return w.columns=R.columns?f(R.columns,w,p+1):[],w})};return f(g)},C(e,"debugColumns")),getAllFlatColumns:m(()=>[t.getAllColumns()],g=>g.flatMap(f=>f.getFlatColumns()),C(e,"debugColumns")),_getAllFlatColumnsById:m(()=>[t.getAllFlatColumns()],g=>g.reduce((f,c)=>(f[c.id]=c,f),{}),C(e,"debugColumns")),getAllLeafColumns:m(()=>[t.getAllColumns(),t._getOrderColumnsFn()],(g,f)=>{let c=g.flatMap(u=>u.getLeafColumns());return f(c)},C(e,"debugColumns")),getColumn:g=>t._getAllFlatColumnsById()[g]};Object.assign(t,d);for(let g=0;g{var l;return(l=r.getValue())!=null?l:e.options.renderFallbackValue},r={id:`${o.id}_${t.id}`,row:o,column:t,getValue:()=>o.getValue(n),renderValue:i,getContext:m(()=>[e,t,o,r],(l,s,a,d)=>({table:l,column:s,row:a,cell:d,getValue:d.getValue,renderValue:d.renderValue}),C(e.options,"debugCells"))};return e._features.forEach(l=>{l.createCell==null||l.createCell(r,t,o,e)},{}),r}const b=(e,o,t,n,i,r,l)=>{let s={id:o,index:n,original:t,depth:i,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:a=>{if(s._valuesCache.hasOwnProperty(a))return s._valuesCache[a];const d=e.getColumn(a);if(d!=null&&d.accessorFn)return s._valuesCache[a]=d.accessorFn(s.original,n),s._valuesCache[a]},getUniqueValues:a=>{if(s._uniqueValuesCache.hasOwnProperty(a))return s._uniqueValuesCache[a];const d=e.getColumn(a);if(d!=null&&d.accessorFn)return d.columnDef.getUniqueValues?(s._uniqueValuesCache[a]=d.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[a]):(s._uniqueValuesCache[a]=[s.getValue(a)],s._uniqueValuesCache[a])},renderValue:a=>{var d;return(d=s.getValue(a))!=null?d:e.options.renderFallbackValue},subRows:r??[],getLeafRows:()=>Re(s.subRows,a=>a.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let a=[],d=s;for(;;){const g=d.getParentRow();if(!g)break;a.push(g),d=g}return a.reverse()},getAllCells:m(()=>[e.getAllLeafColumns()],a=>a.map(d=>Qe(e,s,d,d.id)),C(e.options,"debugRows")),_getAllCellsByColumnId:m(()=>[s.getAllCells()],a=>a.reduce((d,g)=>(d[g.column.id]=g,d),{}),C(e.options,"debugRows"))};for(let a=0;am(()=>[e.options.data],o=>{const t={rows:[],flatRows:[],rowsById:{}},n=function(i,r,l){r===void 0&&(r=0);const s=[];for(let d=0;de._autoResetPageIndex()))}function We(e,o,t){return t.options.filterFromLeafRows?Ye(e,o,t):Ze(e,o,t)}function Ye(e,o,t){var n;const i=[],r={},l=(n=t.options.maxLeafRowFilterDepth)!=null?n:100,s=function(a,d){d===void 0&&(d=0);const g=[];for(let c=0;cm(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(o,t,n)=>{if(!o.rows.length||!(t!=null&&t.length)&&!n){for(let c=0;c{var u;const p=e.getColumn(c.id);if(!p)return;const S=p.getFilterFn();S&&i.push({id:c.id,filterFn:S,resolvedValue:(u=S.resolveFilterValue==null?void 0:S.resolveFilterValue(c.value))!=null?u:c.value})});const l=t.map(c=>c.id),s=e.getGlobalFilterFn(),a=e.getAllLeafColumns().filter(c=>c.getCanGlobalFilter());n&&s&&a.length&&(l.push("__global__"),a.forEach(c=>{var u;r.push({id:c.id,filterFn:s,resolvedValue:(u=s.resolveFilterValue==null?void 0:s.resolveFilterValue(n))!=null?u:n})}));let d,g;for(let c=0;c{u.columnFiltersMeta[S]=w})}if(r.length){for(let p=0;p{u.columnFiltersMeta[S]=w})){u.columnFilters.__global__=!0;break}}u.columnFilters.__global__!==!0&&(u.columnFilters.__global__=!1)}}const f=c=>{for(let u=0;ue._autoResetPageIndex()))}function lt(){return e=>m(()=>[e.getState().sorting,e.getPreSortedRowModel()],(o,t)=>{if(!t.rows.length||!(o!=null&&o.length))return t;const n=e.getState().sorting,i=[],r=n.filter(a=>{var d;return(d=e.getColumn(a.id))==null?void 0:d.getCanSort()}),l={};r.forEach(a=>{const d=e.getColumn(a.id);d&&(l[a.id]={sortUndefined:d.columnDef.sortUndefined,invertSorting:d.columnDef.invertSorting,sortingFn:d.getSortingFn()})});const s=a=>{const d=a.map(g=>({...g}));return d.sort((g,f)=>{for(let u=0;u{var f;i.push(g),(f=g.subRows)!=null&&f.length&&(g.subRows=s(g.subRows))}),d};return{rows:s(t.rows),flatRows:i,rowsById:t.rowsById}},C(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function be(e){const o=[],t=n=>{var i;o.push(n),(i=n.subRows)!=null&&i.length&&n.getIsExpanded()&&n.subRows.forEach(t)};return e.rows.forEach(t),{rows:o,flatRows:e.flatRows,rowsById:e.rowsById}}function st(e){return o=>m(()=>[o.getState().pagination,o.getPrePaginationRowModel(),o.options.paginateExpandedRows?void 0:o.getState().expanded],(t,n)=>{if(!n.rows.length)return n;const{pageSize:i,pageIndex:r}=t;let{rows:l,flatRows:s,rowsById:a}=n;const d=i*r,g=d+i;l=l.slice(d,g);let f;o.options.paginateExpandedRows?f={rows:l,flatRows:s,rowsById:a}:f=be({rows:l,flatRows:s,rowsById:a}),f.flatRows=[];const c=u=>{f.flatRows.push(u),u.subRows.length&&u.subRows.forEach(c)};return f.rows.forEach(c),f},C(o.options,"debugTable"))}/** + * react-table + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ut(e,o){return e?et(e)?N.createElement(e,o):e:null}function et(e){return tt(e)||typeof e=="function"||nt(e)}function tt(e){return typeof e=="function"&&(()=>{const o=Object.getPrototypeOf(e);return o.prototype&&o.prototype.isReactComponent})()}function nt(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function at(e){const o={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=N.useState(()=>({current:Je(o)})),[n,i]=N.useState(()=>t.current.initialState);return t.current.setOptions(r=>({...r,...e,state:{...n,...e.state},onStateChange:l=>{i(l),e.onStateChange==null||e.onStateChange(l)}})),t.current}export{st as a,lt as b,rt as c,ut as f,it as g,at as u}; diff --git a/assets/07-xarrows-3Yedwf5T.js b/assets/07-xarrows-3Yedwf5T.js new file mode 100644 index 0000000..04337ea --- /dev/null +++ b/assets/07-xarrows-3Yedwf5T.js @@ -0,0 +1,28 @@ +import{c as fr,r as Og,g as Rg}from"./02-radix-ui-BssNd7Fu.js";import{W as Cg}from"./03-recharts-DF_t8duT.js";const $o="-";function Tg(h){const y=Mg(h),{conflictingClassGroups:a,conflictingClassGroupModifiers:I}=h;function H(T){const Q=T.split($o);return Q[0]===""&&Q.length!==1&&Q.shift(),_f(Q,y)||Lg(T)}function X(T,Q){const we=a[T]||[];return Q&&I[T]?[...we,...I[T]]:we}return{getClassGroupId:H,getConflictingClassGroupIds:X}}function _f(h,y){if(h.length===0)return y.classGroupId;const a=h[0],I=y.nextPart.get(a),H=I?_f(h.slice(1),I):void 0;if(H)return H;if(y.validators.length===0)return;const X=h.join($o);return y.validators.find(({validator:T})=>T(X))?.classGroupId}const pf=/^\[(.+)\]$/;function Lg(h){if(pf.test(h)){const y=pf.exec(h)[1],a=y?.substring(0,y.indexOf(":"));if(a)return"arbitrary.."+a}}function Mg(h){const{theme:y,prefix:a}=h,I={nextPart:new Map,validators:[]};return Dg(Object.entries(h.classGroups),a).forEach(([X,T])=>{Ho(T,I,X,y)}),I}function Ho(h,y,a,I){h.forEach(H=>{if(typeof H=="string"){const X=H===""?y:gf(y,H);X.classGroupId=a;return}if(typeof H=="function"){if(Ig(H)){Ho(H(I),y,a,I);return}y.validators.push({validator:H,classGroupId:a});return}Object.entries(H).forEach(([X,T])=>{Ho(T,gf(y,X),a,I)})})}function gf(h,y){let a=h;return y.split($o).forEach(I=>{a.nextPart.has(I)||a.nextPart.set(I,{nextPart:new Map,validators:[]}),a=a.nextPart.get(I)}),a}function Ig(h){return h.isThemeGetter}function Dg(h,y){return y?h.map(([a,I])=>{const H=I.map(X=>typeof X=="string"?y+X:typeof X=="object"?Object.fromEntries(Object.entries(X).map(([T,Q])=>[y+T,Q])):X);return[a,H]}):h}function Bg(h){if(h<1)return{get:()=>{},set:()=>{}};let y=0,a=new Map,I=new Map;function H(X,T){a.set(X,T),y++,y>h&&(y=0,I=a,a=new Map)}return{get(X){let T=a.get(X);if(T!==void 0)return T;if((T=I.get(X))!==void 0)return H(X,T),T},set(X,T){a.has(X)?a.set(X,T):H(X,T)}}}const bf="!";function Wg(h){const y=h.separator,a=y.length===1,I=y[0],H=y.length;return function(T){const Q=[];let we=0,B=0,m;for(let O=0;OB?m-B:void 0;return{modifiers:Q,hasImportantModifier:F,baseClassName:x,maybePostfixModifierPosition:V}}}function zg(h){if(h.length<=1)return h;const y=[];let a=[];return h.forEach(I=>{I[0]==="["?(y.push(...a.sort(),I),a=[]):a.push(I)}),y.push(...a.sort()),y}function Fg(h){return{cache:Bg(h.cacheSize),splitModifiers:Wg(h),...Tg(h)}}const Ug=/\s+/;function Ng(h,y){const{splitModifiers:a,getClassGroupId:I,getConflictingClassGroupIds:H}=y,X=new Set;return h.trim().split(Ug).map(T=>{const{modifiers:Q,hasImportantModifier:we,baseClassName:B,maybePostfixModifierPosition:m}=a(T);let S=I(m?B.substring(0,m):B),F=!!m;if(!S){if(!m)return{isTailwindClass:!1,originalClassName:T};if(S=I(B),!S)return{isTailwindClass:!1,originalClassName:T};F=!1}const x=zg(Q).join(":");return{isTailwindClass:!0,modifierId:we?x+bf:x,classGroupId:S,originalClassName:T,hasPostfixModifier:F}}).reverse().filter(T=>{if(!T.isTailwindClass)return!0;const{modifierId:Q,classGroupId:we,hasPostfixModifier:B}=T,m=Q+we;return X.has(m)?!1:(X.add(m),H(we,B).forEach(S=>X.add(Q+S)),!0)}).reverse().map(T=>T.originalClassName).join(" ")}function Gg(){let h=0,y,a,I="";for(;hS(m),h());return a=Fg(B),I=a.cache.get,H=a.cache.set,X=Q,Q(we)}function Q(we){const B=I(we);if(B)return B;const m=Ng(we,a);return H(we,m),m}return function(){return X(Gg.apply(null,arguments))}}function Ee(h){const y=a=>a[h]||[];return y.isThemeGetter=!0,y}const wf=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hg=/^\d+\/\d+$/,$g=new Set(["px","full","screen"]),Kg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Zg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Yg=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function wt(h){return Kt(h)||$g.has(h)||Hg.test(h)}function Mt(h){return sr(h,"length",rv)}function Kt(h){return!!h&&!Number.isNaN(Number(h))}function Oi(h){return sr(h,"number",Kt)}function Cr(h){return!!h&&Number.isInteger(Number(h))}function Vg(h){return h.endsWith("%")&&Kt(h.slice(0,-1))}function oe(h){return wf.test(h)}function It(h){return Kg.test(h)}const Jg=new Set(["length","size","percentage"]);function Qg(h){return sr(h,Jg,xf)}function jg(h){return sr(h,"position",xf)}const ev=new Set(["image","url"]);function nv(h){return sr(h,ev,ov)}function tv(h){return sr(h,"",iv)}function Tr(){return!0}function sr(h,y,a){const I=wf.exec(h);return I?I[1]?typeof y=="string"?I[1]===y:y.has(I[1]):a(I[2]):!1}function rv(h){return qg.test(h)&&!Zg.test(h)}function xf(){return!1}function iv(h){return Yg.test(h)}function ov(h){return kg.test(h)}function uv(){const h=Ee("colors"),y=Ee("spacing"),a=Ee("blur"),I=Ee("brightness"),H=Ee("borderColor"),X=Ee("borderRadius"),T=Ee("borderSpacing"),Q=Ee("borderWidth"),we=Ee("contrast"),B=Ee("grayscale"),m=Ee("hueRotate"),S=Ee("invert"),F=Ee("gap"),x=Ee("gradientColorStops"),V=Ee("gradientColorStopPositions"),O=Ee("inset"),W=Ee("margin"),U=Ee("opacity"),v=Ee("padding"),P=Ee("saturate"),N=Ee("scale"),R=Ee("sepia"),Z=Ee("skew"),K=Ee("space"),E=Ee("translate"),D=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],he=()=>["auto",oe,y],$=()=>[oe,y],Ge=()=>["",wt,Mt],Xe=()=>["auto",Kt,oe],ye=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ke=()=>["solid","dashed","dotted","double","none"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],_e=()=>["start","end","center","between","around","evenly","stretch"],le=()=>["","0",oe],Ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Oe=()=>[Kt,Oi],cn=()=>[Kt,oe];return{cacheSize:500,separator:":",theme:{colors:[Tr],spacing:[wt,Mt],blur:["none","",It,oe],brightness:Oe(),borderColor:[h],borderRadius:["none","","full",It,oe],borderSpacing:$(),borderWidth:Ge(),contrast:Oe(),grayscale:le(),hueRotate:cn(),invert:le(),gap:$(),gradientColorStops:[h],gradientColorStopPositions:[Vg,Mt],inset:he(),margin:he(),opacity:Oe(),padding:$(),saturate:Oe(),scale:Oe(),sepia:le(),skew:cn(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",oe]}],container:["container"],columns:[{columns:[It]}],"break-after":[{"break-after":Ae()}],"break-before":[{"break-before":Ae()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ye(),oe]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[O]}],"inset-x":[{"inset-x":[O]}],"inset-y":[{"inset-y":[O]}],start:[{start:[O]}],end:[{end:[O]}],top:[{top:[O]}],right:[{right:[O]}],bottom:[{bottom:[O]}],left:[{left:[O]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Cr,oe]}],basis:[{basis:he()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",oe]}],grow:[{grow:le()}],shrink:[{shrink:le()}],order:[{order:["first","last","none",Cr,oe]}],"grid-cols":[{"grid-cols":[Tr]}],"col-start-end":[{col:["auto",{span:["full",Cr,oe]},oe]}],"col-start":[{"col-start":Xe()}],"col-end":[{"col-end":Xe()}],"grid-rows":[{"grid-rows":[Tr]}],"row-start-end":[{row:["auto",{span:[Cr,oe]},oe]}],"row-start":[{"row-start":Xe()}],"row-end":[{"row-end":Xe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",oe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",oe]}],gap:[{gap:[F]}],"gap-x":[{"gap-x":[F]}],"gap-y":[{"gap-y":[F]}],"justify-content":[{justify:["normal",..._e()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._e(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._e(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[W]}],mx:[{mx:[W]}],my:[{my:[W]}],ms:[{ms:[W]}],me:[{me:[W]}],mt:[{mt:[W]}],mr:[{mr:[W]}],mb:[{mb:[W]}],ml:[{ml:[W]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[K]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",oe,y]}],"min-w":[{"min-w":[oe,y,"min","max","fit"]}],"max-w":[{"max-w":[oe,y,"none","full","min","max","fit","prose",{screen:[It]},It]}],h:[{h:[oe,y,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[oe,y,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[oe,y,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[oe,y,"auto","min","max","fit"]}],"font-size":[{text:["base",It,Mt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Oi]}],"font-family":[{font:[Tr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",oe]}],"line-clamp":[{"line-clamp":["none",Kt,Oi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wt,oe]}],"list-image":[{"list-image":["none",oe]}],"list-style-type":[{list:["none","disc","decimal",oe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[h]}],"placeholder-opacity":[{"placeholder-opacity":[U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[h]}],"text-opacity":[{"text-opacity":[U]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ke(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",wt,Mt]}],"underline-offset":[{"underline-offset":["auto",wt,oe]}],"text-decoration-color":[{decoration:[h]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[U]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ye(),jg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nv]}],"bg-color":[{bg:[h]}],"gradient-from-pos":[{from:[V]}],"gradient-via-pos":[{via:[V]}],"gradient-to-pos":[{to:[V]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[X]}],"rounded-s":[{"rounded-s":[X]}],"rounded-e":[{"rounded-e":[X]}],"rounded-t":[{"rounded-t":[X]}],"rounded-r":[{"rounded-r":[X]}],"rounded-b":[{"rounded-b":[X]}],"rounded-l":[{"rounded-l":[X]}],"rounded-ss":[{"rounded-ss":[X]}],"rounded-se":[{"rounded-se":[X]}],"rounded-ee":[{"rounded-ee":[X]}],"rounded-es":[{"rounded-es":[X]}],"rounded-tl":[{"rounded-tl":[X]}],"rounded-tr":[{"rounded-tr":[X]}],"rounded-br":[{"rounded-br":[X]}],"rounded-bl":[{"rounded-bl":[X]}],"border-w":[{border:[Q]}],"border-w-x":[{"border-x":[Q]}],"border-w-y":[{"border-y":[Q]}],"border-w-s":[{"border-s":[Q]}],"border-w-e":[{"border-e":[Q]}],"border-w-t":[{"border-t":[Q]}],"border-w-r":[{"border-r":[Q]}],"border-w-b":[{"border-b":[Q]}],"border-w-l":[{"border-l":[Q]}],"border-opacity":[{"border-opacity":[U]}],"border-style":[{border:[...Ke(),"hidden"]}],"divide-x":[{"divide-x":[Q]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[Q]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[U]}],"divide-style":[{divide:Ke()}],"border-color":[{border:[H]}],"border-color-x":[{"border-x":[H]}],"border-color-y":[{"border-y":[H]}],"border-color-t":[{"border-t":[H]}],"border-color-r":[{"border-r":[H]}],"border-color-b":[{"border-b":[H]}],"border-color-l":[{"border-l":[H]}],"divide-color":[{divide:[H]}],"outline-style":[{outline:["",...Ke()]}],"outline-offset":[{"outline-offset":[wt,oe]}],"outline-w":[{outline:[wt,Mt]}],"outline-color":[{outline:[h]}],"ring-w":[{ring:Ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[h]}],"ring-opacity":[{"ring-opacity":[U]}],"ring-offset-w":[{"ring-offset":[wt,Mt]}],"ring-offset-color":[{"ring-offset":[h]}],shadow:[{shadow:["","inner","none",It,tv]}],"shadow-color":[{shadow:[Tr]}],opacity:[{opacity:[U]}],"mix-blend":[{"mix-blend":Le()}],"bg-blend":[{"bg-blend":Le()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[I]}],contrast:[{contrast:[we]}],"drop-shadow":[{"drop-shadow":["","none",It,oe]}],grayscale:[{grayscale:[B]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[S]}],saturate:[{saturate:[P]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[I]}],"backdrop-contrast":[{"backdrop-contrast":[we]}],"backdrop-grayscale":[{"backdrop-grayscale":[B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[U]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[T]}],"border-spacing-x":[{"border-spacing-x":[T]}],"border-spacing-y":[{"border-spacing-y":[T]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",oe]}],duration:[{duration:cn()}],ease:[{ease:["linear","in","out","in-out",oe]}],delay:[{delay:cn()}],animate:[{animate:["none","spin","ping","pulse","bounce",oe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[Cr,oe]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",oe]}],accent:[{accent:["auto",h]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oe]}],"caret-color":[{caret:[h]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oe]}],fill:[{fill:[h,"none"]}],"stroke-w":[{stroke:[wt,Mt,Oi]}],stroke:[{stroke:[h,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const av=Xg(uv);function fv(...h){return h.filter(Boolean).join(" ")}function gv(...h){return av(fv(...h))}function vv(h,y=100){let a,I,H;function X(...T){H=this,I=T,!a&&(a=setTimeout(()=>{a=null,h.apply(H,I)},y))}return X}function _v(h,y=2){return h.toFixed(Math.max(Math.min(y,20),0))}function bv(h,y,a){return Math.min(Math.max(h,y),a)}function mv(h,{asArrayBuffer:y}){return new Promise((a,I)=>{const H=new FileReader;H.onload=()=>a(H.result),H.onerror=()=>I(new Error("Failed to load file")),y?H.readAsArrayBuffer(h):H.readAsDataURL(h)})}function wv(h){const y=window.document.documentElement;if(y.classList.remove("light","dark"),h==="system"){const a=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";y.classList.add(a);return}y.classList.add(h)}function xv(h){return y=>{h.forEach(a=>{typeof a=="function"?a(y):a!=null&&(a.current=y)})}}const yf=Date.now();function Mr(){const h=Date.now(),y=Mr.last||h;return Mr.last=h>y?h:y+1}function sv(){return Mr()}function lv(){return Mr()-yf}function Ri(h){let y=Mr();return h&&(y-=yf),y.toString(36)}Ri.asNumber=sv;Ri.asRelativeNumber=lv;const yv={positions:[],animate:!0,strokeWidth:2,path:"smooth",boxes:[]};function Sv(h){h.boxes.length||(h.boxes=[{id:Ri.asRelativeNumber(),label:"elem1",x:0,y:0},{id:Ri.asRelativeNumber(),label:"elem2",x:140,y:160}])}var Sf={exports:{}},Lr={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Lr.exports;var vf;function cv(){return vf||(vf=1,function(h,y){(function(){var a,I="4.17.21",H=200,X="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",T="Expected a function",Q="Invalid `variable` option passed into `_.template`",we="__lodash_hash_undefined__",B=500,m="__lodash_placeholder__",S=1,F=2,x=4,V=1,O=2,W=1,U=2,v=4,P=8,N=16,R=32,Z=64,K=128,E=256,D=512,j=30,he="...",$=800,Ge=16,Xe=1,ye=2,Ke=3,Le=1/0,_e=9007199254740991,le=17976931348623157e292,Ae=NaN,Oe=4294967295,cn=Oe-1,tt=Oe>>>1,st=[["ary",K],["bind",W],["bindKey",U],["curry",P],["curryRight",N],["flip",D],["partial",R],["partialRight",Z],["rearg",E]],Dn="[object Arguments]",Yn="[object Array]",en="[object AsyncFunction]",g="[object Boolean]",C="[object Date]",G="[object DOMException]",J="[object Error]",Ce="[object Function]",ee="[object GeneratorFunction]",te="[object Map]",dn="[object Number]",xt="[object Null]",Ye="[object Object]",hn="[object Promise]",rt="[object Proxy]",qe="[object RegExp]",be="[object Set]",Ue="[object String]",Ne="[object Symbol]",lt="[object Undefined]",kn="[object WeakMap]",qt="[object WeakSet]",Vn="[object ArrayBuffer]",Sn="[object DataView]",Me="[object Float32Array]",M="[object Float64Array]",fe="[object Int8Array]",pe="[object Int16Array]",yt="[object Int32Array]",pn="[object Uint8Array]",An="[object Uint8ClampedArray]",Be="[object Uint16Array]",Ie="[object Uint32Array]",it=/\b__p \+= '';/g,Bn=/\b(__p \+=) '' \+/g,Jn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gn=/&(?:amp|lt|gt|quot|#39);/g,Pn=/[&<>"']/g,nn=RegExp(gn.source),We=RegExp(Pn.source),ot=/<%-([\s\S]+?)%>/g,En=/<%([\s\S]+?)%>/g,Wn=/<%=([\s\S]+?)%>/g,Je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zn=/^\w*$/,Dt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tn=/[\\^$.*+?()[\]{}|]/g,vn=RegExp(tn.source),rn=/^\s+/,_n=/\s/,Fn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Un=/\{\n\/\* \[wrapped with (.+)\] \*/,Ci=/,? & /,Ti=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,on=/[()=,{}\[\]\/\s]/,un=/\\(\\)?/g,bn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,an=/\w*$/,lr=/^[-+]0x[0-9a-f]+$/i,On=/^0b[01]+$/i,Ir=/^\[object .+?Constructor\]$/,Dr=/^0o[0-7]+$/i,Br=/^(?:0|[1-9]\d*)$/,Wr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,zr=/['\n\r\u2028\u2029\\]/g,Zt="\\ud800-\\udfff",Li="\\u0300-\\u036f",cr="\\ufe20-\\ufe2f",dr="\\u20d0-\\u20ff",Fr=Li+cr+dr,Ur="\\u2700-\\u27bf",Nr="a-z\\xdf-\\xf6\\xf8-\\xff",hr="\\xac\\xb1\\xd7\\xf7",Af="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pf="\\u2000-\\u206f",Ef=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ko="A-Z\\xc0-\\xd6\\xd8-\\xde",qo="\\ufe0e\\ufe0f",Zo=hr+Af+Pf+Ef,Mi="['’]",Of="["+Zt+"]",Yo="["+Zo+"]",Gr="["+Fr+"]",ko="\\d+",Rf="["+Ur+"]",Vo="["+Nr+"]",Jo="[^"+Zt+Zo+ko+Ur+Nr+Ko+"]",Ii="\\ud83c[\\udffb-\\udfff]",Cf="(?:"+Gr+"|"+Ii+")",Qo="[^"+Zt+"]",Di="(?:\\ud83c[\\udde6-\\uddff]){2}",Bi="[\\ud800-\\udbff][\\udc00-\\udfff]",Yt="["+Ko+"]",jo="\\u200d",eu="(?:"+Vo+"|"+Jo+")",Tf="(?:"+Yt+"|"+Jo+")",nu="(?:"+Mi+"(?:d|ll|m|re|s|t|ve))?",tu="(?:"+Mi+"(?:D|LL|M|RE|S|T|VE))?",ru=Cf+"?",iu="["+qo+"]?",Lf="(?:"+jo+"(?:"+[Qo,Di,Bi].join("|")+")"+iu+ru+")*",Mf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",If="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ou=iu+ru+Lf,Df="(?:"+[Rf,Di,Bi].join("|")+")"+ou,Bf="(?:"+[Qo+Gr+"?",Gr,Di,Bi,Of].join("|")+")",Wf=RegExp(Mi,"g"),zf=RegExp(Gr,"g"),Wi=RegExp(Ii+"(?="+Ii+")|"+Bf+ou,"g"),Ff=RegExp([Yt+"?"+Vo+"+"+nu+"(?="+[Yo,Yt,"$"].join("|")+")",Tf+"+"+tu+"(?="+[Yo,Yt+eu,"$"].join("|")+")",Yt+"?"+eu+"+"+nu,Yt+"+"+tu,If,Mf,ko,Df].join("|"),"g"),Uf=RegExp("["+jo+Zt+Fr+qo+"]"),Nf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gf=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xf=-1,Pe={};Pe[Me]=Pe[M]=Pe[fe]=Pe[pe]=Pe[yt]=Pe[pn]=Pe[An]=Pe[Be]=Pe[Ie]=!0,Pe[Dn]=Pe[Yn]=Pe[Vn]=Pe[g]=Pe[Sn]=Pe[C]=Pe[J]=Pe[Ce]=Pe[te]=Pe[dn]=Pe[Ye]=Pe[qe]=Pe[be]=Pe[Ue]=Pe[kn]=!1;var Se={};Se[Dn]=Se[Yn]=Se[Vn]=Se[Sn]=Se[g]=Se[C]=Se[Me]=Se[M]=Se[fe]=Se[pe]=Se[yt]=Se[te]=Se[dn]=Se[Ye]=Se[qe]=Se[be]=Se[Ue]=Se[Ne]=Se[pn]=Se[An]=Se[Be]=Se[Ie]=!0,Se[J]=Se[Ce]=Se[kn]=!1;var Hf={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},$f={"&":"&","<":"<",">":">",'"':""","'":"'"},Kf={"&":"&","<":"<",">":">",""":'"',"'":"'"},qf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zf=parseFloat,Yf=parseInt,uu=typeof fr=="object"&&fr&&fr.Object===Object&&fr,kf=typeof self=="object"&&self&&self.Object===Object&&self,ke=uu||kf||Function("return this")(),zi=y&&!y.nodeType&&y,Wt=zi&&!0&&h&&!h.nodeType&&h,au=Wt&&Wt.exports===zi,Fi=au&&uu.process,Nn=function(){try{var l=Wt&&Wt.require&&Wt.require("util").types;return l||Fi&&Fi.binding&&Fi.binding("util")}catch{}}(),fu=Nn&&Nn.isArrayBuffer,su=Nn&&Nn.isDate,lu=Nn&&Nn.isMap,cu=Nn&&Nn.isRegExp,du=Nn&&Nn.isSet,hu=Nn&&Nn.isTypedArray;function Rn(l,p,d){switch(d.length){case 0:return l.call(p);case 1:return l.call(p,d[0]);case 2:return l.call(p,d[0],d[1]);case 3:return l.call(p,d[0],d[1],d[2])}return l.apply(p,d)}function Vf(l,p,d,L){for(var ne=-1,ge=l==null?0:l.length;++ne-1}function Ui(l,p,d){for(var L=-1,ne=l==null?0:l.length;++L-1;);return d}function xu(l,p){for(var d=l.length;d--&&kt(p,l[d],0)>-1;);return d}function os(l,p){for(var d=l.length,L=0;d--;)l[d]===p&&++L;return L}var us=Hi(Hf),as=Hi($f);function fs(l){return"\\"+qf[l]}function ss(l,p){return l==null?a:l[p]}function Vt(l){return Uf.test(l)}function ls(l){return Nf.test(l)}function cs(l){for(var p,d=[];!(p=l.next()).done;)d.push(p.value);return d}function Zi(l){var p=-1,d=Array(l.size);return l.forEach(function(L,ne){d[++p]=[ne,L]}),d}function yu(l,p){return function(d){return l(p(d))}}function Pt(l,p){for(var d=-1,L=l.length,ne=0,ge=[];++d-1}function Qs(e,n){var t=this.__data__,r=oi(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this}ct.prototype.clear=Ys,ct.prototype.delete=ks,ct.prototype.get=Vs,ct.prototype.has=Js,ct.prototype.set=Qs;function dt(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n=n?e:n)),e}function $n(e,n,t,r,i,u){var f,s=n&S,c=n&F,_=n&x;if(t&&(f=i?t(e,r,i,u):t(e)),f!==a)return f;if(!Te(e))return e;var b=re(e);if(b){if(f=tc(e),!s)return mn(e,f)}else{var w=je(e),A=w==Ce||w==ee;if(Lt(e))return ia(e,s);if(w==Ye||w==Dn||A&&!i){if(f=c||A?{}:Sa(e),!s)return c?Kl(e,pl(f,e)):$l(e,Du(f,e))}else{if(!Se[w])return i?e:{};f=rc(e,w,s)}}u||(u=new jn);var z=u.get(e);if(z)return z;u.set(e,f),Qa(e)?e.forEach(function(k){f.add($n(k,n,t,k,e,u))}):Va(e)&&e.forEach(function(k,se){f.set(se,$n(k,n,t,se,e,u))});var Y=_?c?wo:mo:c?xn:Ze,ue=b?a:Y(e);return Gn(ue||e,function(k,se){ue&&(se=k,k=e[se]),wr(f,se,$n(k,n,t,se,e,u))}),f}function gl(e){var n=Ze(e);return function(t){return Bu(t,e,n)}}function Bu(e,n,t){var r=t.length;if(e==null)return!r;for(e=xe(e);r--;){var i=t[r],u=n[i],f=e[i];if(f===a&&!(i in e)||!u(f))return!1}return!0}function Wu(e,n,t){if(typeof e!="function")throw new Xn(T);return Or(function(){e.apply(a,t)},n)}function xr(e,n,t,r){var i=-1,u=Xr,f=!0,s=e.length,c=[],_=n.length;if(!s)return c;t&&(n=Re(n,Cn(t))),r?(u=Ui,f=!1):n.length>=H&&(u=pr,f=!1,n=new Ut(n));e:for(;++ii?0:i+t),r=r===a||r>i?i:ie(r),r<0&&(r+=i),r=t>r?0:ef(r);t0&&t(s)?n>1?Ve(s,n-1,t,r,i):At(i,s):r||(i[i.length]=s)}return i}var eo=la(),Uu=la(!0);function ut(e,n){return e&&eo(e,n,Ze)}function no(e,n){return e&&Uu(e,n,Ze)}function ai(e,n){return St(n,function(t){return _t(e[t])})}function Gt(e,n){n=Ct(n,e);for(var t=0,r=n.length;e!=null&&tn}function bl(e,n){return e!=null&&me.call(e,n)}function ml(e,n){return e!=null&&n in xe(e)}function wl(e,n,t){return e>=Qe(n,t)&&e<$e(n,t)}function ro(e,n,t){for(var r=t?Ui:Xr,i=e[0].length,u=e.length,f=u,s=d(u),c=1/0,_=[];f--;){var b=e[f];f&&n&&(b=Re(b,Cn(n))),c=Qe(b.length,c),s[f]=!t&&(n||i>=120&&b.length>=120)?new Ut(f&&b):a}b=e[0];var w=-1,A=s[0];e:for(;++w-1;)s!==e&&Qr.call(s,c,1),Qr.call(e,c,1);return e}function Vu(e,n){for(var t=e?n.length:0,r=t-1;t--;){var i=n[t];if(t==r||i!==u){var u=i;vt(i)?Qr.call(e,i,1):co(e,i)}}return e}function fo(e,n){return e+ni(Tu()*(n-e+1))}function Il(e,n,t,r){for(var i=-1,u=$e(ei((n-e)/(t||1)),0),f=d(u);u--;)f[r?u:++i]=e,e+=t;return f}function so(e,n){var t="";if(!e||n<1||n>_e)return t;do n%2&&(t+=e),n=ni(n/2),n&&(e+=e);while(n);return t}function ae(e,n){return Oo(Ea(e,n,yn),e+"")}function Dl(e){return Iu(ar(e))}function Bl(e,n){var t=ar(e);return bi(t,Nt(n,0,t.length))}function Ar(e,n,t,r){if(!Te(e))return e;n=Ct(n,e);for(var i=-1,u=n.length,f=u-1,s=e;s!=null&&++ii?0:i+n),t=t>i?i:t,t<0&&(t+=i),i=n>t?0:t-n>>>0,n>>>=0;for(var u=d(i);++r>>1,f=e[u];f!==null&&!Ln(f)&&(t?f<=n:f=H){var _=n?null:kl(e);if(_)return $r(_);f=!1,i=pr,c=new Ut}else c=n?[]:s;e:for(;++r=r?e:Kn(e,n,t)}var ra=Es||function(e){return ke.clearTimeout(e)};function ia(e,n){if(n)return e.slice();var t=e.length,r=Pu?Pu(t):new e.constructor(t);return e.copy(r),r}function vo(e){var n=new e.constructor(e.byteLength);return new Vr(n).set(new Vr(e)),n}function Nl(e,n){var t=n?vo(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}function Gl(e){var n=new e.constructor(e.source,an.exec(e));return n.lastIndex=e.lastIndex,n}function Xl(e){return mr?xe(mr.call(e)):{}}function oa(e,n){var t=n?vo(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function ua(e,n){if(e!==n){var t=e!==a,r=e===null,i=e===e,u=Ln(e),f=n!==a,s=n===null,c=n===n,_=Ln(n);if(!s&&!_&&!u&&e>n||u&&f&&c&&!s&&!_||r&&f&&c||!t&&c||!i)return 1;if(!r&&!u&&!_&&e=s)return c;var _=t[r];return c*(_=="desc"?-1:1)}}return e.index-n.index}function aa(e,n,t,r){for(var i=-1,u=e.length,f=t.length,s=-1,c=n.length,_=$e(u-f,0),b=d(c+_),w=!r;++s1?t[i-1]:a,f=i>2?t[2]:a;for(u=e.length>3&&typeof u=="function"?(i--,u):a,f&&sn(t[0],t[1],f)&&(u=i<3?a:u,i=1),n=xe(n);++r-1?i[u?n[f]:f]:a}}function ha(e){return gt(function(n){var t=n.length,r=t,i=Hn.prototype.thru;for(e&&n.reverse();r--;){var u=n[r];if(typeof u!="function")throw new Xn(T);if(i&&!f&&vi(u)=="wrapper")var f=new Hn([],!0)}for(r=f?r:t;++r1&&de.reverse(),b&&cs))return!1;var _=u.get(e),b=u.get(n);if(_&&b)return _==n&&b==e;var w=-1,A=!0,z=t&O?new Ut:a;for(u.set(e,n),u.set(n,e);++w1?"& ":"")+n[r],n=n.join(t>2?", ":" "),e.replace(Fn,`{ +/* [wrapped with `+n+`] */ +`)}function oc(e){return re(e)||$t(e)||!!(Ru&&e&&e[Ru])}function vt(e,n){var t=typeof e;return n=n??_e,!!n&&(t=="number"||t!="symbol"&&Br.test(e))&&e>-1&&e%1==0&&e0){if(++n>=$)return arguments[0]}else n=0;return e.apply(a,arguments)}}function bi(e,n){var t=-1,r=e.length,i=r-1;for(n=n===a?r:n;++t1?e[n-1]:a;return t=typeof t=="function"?(e.pop(),t):a,Fa(e,t)});function Ua(e){var n=o(e);return n.__chain__=!0,n}function vd(e,n){return n(e),e}function mi(e,n){return n(e)}var _d=gt(function(e){var n=e.length,t=n?e[0]:0,r=this.__wrapped__,i=function(u){return ji(u,e)};return n>1||this.__actions__.length||!(r instanceof ce)||!vt(t)?this.thru(i):(r=r.slice(t,+t+(n?1:0)),r.__actions__.push({func:mi,args:[i],thisArg:a}),new Hn(r,this.__chain__).thru(function(u){return n&&!u.length&&u.push(a),u}))});function bd(){return Ua(this)}function md(){return new Hn(this.value(),this.__chain__)}function wd(){this.__values__===a&&(this.__values__=ja(this.value()));var e=this.__index__>=this.__values__.length,n=e?a:this.__values__[this.__index__++];return{done:e,value:n}}function xd(){return this}function yd(e){for(var n,t=this;t instanceof ii;){var r=Ma(t);r.__index__=0,r.__values__=a,n?i.__wrapped__=r:n=r;var i=r;t=t.__wrapped__}return i.__wrapped__=e,n}function Sd(){var e=this.__wrapped__;if(e instanceof ce){var n=e;return this.__actions__.length&&(n=new ce(this)),n=n.reverse(),n.__actions__.push({func:mi,args:[Ro],thisArg:a}),new Hn(n,this.__chain__)}return this.thru(Ro)}function Ad(){return na(this.__wrapped__,this.__actions__)}var Pd=ci(function(e,n,t){me.call(e,t)?++e[t]:ht(e,t,1)});function Ed(e,n,t){var r=re(e)?pu:vl;return t&&sn(e,n,t)&&(n=a),r(e,q(n,3))}function Od(e,n){var t=re(e)?St:Fu;return t(e,q(n,3))}var Rd=da(Ia),Cd=da(Da);function Td(e,n){return Ve(wi(e,n),1)}function Ld(e,n){return Ve(wi(e,n),Le)}function Md(e,n,t){return t=t===a?1:ie(t),Ve(wi(e,n),t)}function Na(e,n){var t=re(e)?Gn:Ot;return t(e,q(n,3))}function Ga(e,n){var t=re(e)?Jf:zu;return t(e,q(n,3))}var Id=ci(function(e,n,t){me.call(e,t)?e[t].push(n):ht(e,t,[n])});function Dd(e,n,t,r){e=wn(e)?e:ar(e),t=t&&!r?ie(t):0;var i=e.length;return t<0&&(t=$e(i+t,0)),Pi(e)?t<=i&&e.indexOf(n,t)>-1:!!i&&kt(e,n,t)>-1}var Bd=ae(function(e,n,t){var r=-1,i=typeof n=="function",u=wn(e)?d(e.length):[];return Ot(e,function(f){u[++r]=i?Rn(n,f,t):yr(f,n,t)}),u}),Wd=ci(function(e,n,t){ht(e,t,n)});function wi(e,n){var t=re(e)?Re:$u;return t(e,q(n,3))}function zd(e,n,t,r){return e==null?[]:(re(n)||(n=n==null?[]:[n]),t=r?a:t,re(t)||(t=t==null?[]:[t]),Yu(e,n,t))}var Fd=ci(function(e,n,t){e[t?0:1].push(n)},function(){return[[],[]]});function Ud(e,n,t){var r=re(e)?Ni:bu,i=arguments.length<3;return r(e,q(n,4),t,i,Ot)}function Nd(e,n,t){var r=re(e)?Qf:bu,i=arguments.length<3;return r(e,q(n,4),t,i,zu)}function Gd(e,n){var t=re(e)?St:Fu;return t(e,Si(q(n,3)))}function Xd(e){var n=re(e)?Iu:Dl;return n(e)}function Hd(e,n,t){(t?sn(e,n,t):n===a)?n=1:n=ie(n);var r=re(e)?cl:Bl;return r(e,n)}function $d(e){var n=re(e)?dl:zl;return n(e)}function Kd(e){if(e==null)return 0;if(wn(e))return Pi(e)?Jt(e):e.length;var n=je(e);return n==te||n==be?e.size:oo(e).length}function qd(e,n,t){var r=re(e)?Gi:Fl;return t&&sn(e,n,t)&&(n=a),r(e,q(n,3))}var Zd=ae(function(e,n){if(e==null)return[];var t=n.length;return t>1&&sn(e,n[0],n[1])?n=[]:t>2&&sn(n[0],n[1],n[2])&&(n=[n[0]]),Yu(e,Ve(n,1),[])}),xi=Os||function(){return ke.Date.now()};function Yd(e,n){if(typeof n!="function")throw new Xn(T);return e=ie(e),function(){if(--e<1)return n.apply(this,arguments)}}function Xa(e,n,t){return n=t?a:n,n=e&&n==null?e.length:n,pt(e,K,a,a,a,a,n)}function Ha(e,n){var t;if(typeof n!="function")throw new Xn(T);return e=ie(e),function(){return--e>0&&(t=n.apply(this,arguments)),e<=1&&(n=a),t}}var To=ae(function(e,n,t){var r=W;if(t.length){var i=Pt(t,or(To));r|=R}return pt(e,r,n,t,i)}),$a=ae(function(e,n,t){var r=W|U;if(t.length){var i=Pt(t,or($a));r|=R}return pt(n,r,e,t,i)});function Ka(e,n,t){n=t?a:n;var r=pt(e,P,a,a,a,a,a,n);return r.placeholder=Ka.placeholder,r}function qa(e,n,t){n=t?a:n;var r=pt(e,N,a,a,a,a,a,n);return r.placeholder=qa.placeholder,r}function Za(e,n,t){var r,i,u,f,s,c,_=0,b=!1,w=!1,A=!0;if(typeof e!="function")throw new Xn(T);n=Zn(n)||0,Te(t)&&(b=!!t.leading,w="maxWait"in t,u=w?$e(Zn(t.maxWait)||0,n):u,A="trailing"in t?!!t.trailing:A);function z(Fe){var nt=r,mt=i;return r=i=a,_=Fe,f=e.apply(mt,nt),f}function Y(Fe){return _=Fe,s=Or(se,n),b?z(Fe):f}function ue(Fe){var nt=Fe-c,mt=Fe-_,hf=n-nt;return w?Qe(hf,u-mt):hf}function k(Fe){var nt=Fe-c,mt=Fe-_;return c===a||nt>=n||nt<0||w&&mt>=u}function se(){var Fe=xi();if(k(Fe))return de(Fe);s=Or(se,ue(Fe))}function de(Fe){return s=a,A&&r?z(Fe):(r=i=a,f)}function Mn(){s!==a&&ra(s),_=0,r=c=i=s=a}function ln(){return s===a?f:de(xi())}function In(){var Fe=xi(),nt=k(Fe);if(r=arguments,i=this,c=Fe,nt){if(s===a)return Y(c);if(w)return ra(s),s=Or(se,n),z(c)}return s===a&&(s=Or(se,n)),f}return In.cancel=Mn,In.flush=ln,In}var kd=ae(function(e,n){return Wu(e,1,n)}),Vd=ae(function(e,n,t){return Wu(e,Zn(n)||0,t)});function Jd(e){return pt(e,D)}function yi(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new Xn(T);var t=function(){var r=arguments,i=n?n.apply(this,r):r[0],u=t.cache;if(u.has(i))return u.get(i);var f=e.apply(this,r);return t.cache=u.set(i,f)||u,f};return t.cache=new(yi.Cache||dt),t}yi.Cache=dt;function Si(e){if(typeof e!="function")throw new Xn(T);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function Qd(e){return Ha(2,e)}var jd=Ul(function(e,n){n=n.length==1&&re(n[0])?Re(n[0],Cn(q())):Re(Ve(n,1),Cn(q()));var t=n.length;return ae(function(r){for(var i=-1,u=Qe(r.length,t);++i=n}),$t=Gu(function(){return arguments}())?Gu:function(e){return De(e)&&me.call(e,"callee")&&!Ou.call(e,"callee")},re=d.isArray,ph=fu?Cn(fu):yl;function wn(e){return e!=null&&Ai(e.length)&&!_t(e)}function ze(e){return De(e)&&wn(e)}function gh(e){return e===!0||e===!1||De(e)&&fn(e)==g}var Lt=Cs||Xo,vh=su?Cn(su):Sl;function _h(e){return De(e)&&e.nodeType===1&&!Rr(e)}function bh(e){if(e==null)return!0;if(wn(e)&&(re(e)||typeof e=="string"||typeof e.splice=="function"||Lt(e)||ur(e)||$t(e)))return!e.length;var n=je(e);if(n==te||n==be)return!e.size;if(Er(e))return!oo(e).length;for(var t in e)if(me.call(e,t))return!1;return!0}function mh(e,n){return Sr(e,n)}function wh(e,n,t){t=typeof t=="function"?t:a;var r=t?t(e,n):a;return r===a?Sr(e,n,a,t):!!r}function Mo(e){if(!De(e))return!1;var n=fn(e);return n==J||n==G||typeof e.message=="string"&&typeof e.name=="string"&&!Rr(e)}function xh(e){return typeof e=="number"&&Cu(e)}function _t(e){if(!Te(e))return!1;var n=fn(e);return n==Ce||n==ee||n==en||n==rt}function ka(e){return typeof e=="number"&&e==ie(e)}function Ai(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_e}function Te(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function De(e){return e!=null&&typeof e=="object"}var Va=lu?Cn(lu):Pl;function yh(e,n){return e===n||io(e,n,yo(n))}function Sh(e,n,t){return t=typeof t=="function"?t:a,io(e,n,yo(n),t)}function Ah(e){return Ja(e)&&e!=+e}function Ph(e){if(fc(e))throw new ne(X);return Xu(e)}function Eh(e){return e===null}function Oh(e){return e==null}function Ja(e){return typeof e=="number"||De(e)&&fn(e)==dn}function Rr(e){if(!De(e)||fn(e)!=Ye)return!1;var n=Jr(e);if(n===null)return!0;var t=me.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&Zr.call(t)==Ss}var Io=cu?Cn(cu):El;function Rh(e){return ka(e)&&e>=-_e&&e<=_e}var Qa=du?Cn(du):Ol;function Pi(e){return typeof e=="string"||!re(e)&&De(e)&&fn(e)==Ue}function Ln(e){return typeof e=="symbol"||De(e)&&fn(e)==Ne}var ur=hu?Cn(hu):Rl;function Ch(e){return e===a}function Th(e){return De(e)&&je(e)==kn}function Lh(e){return De(e)&&fn(e)==qt}var Mh=gi(uo),Ih=gi(function(e,n){return e<=n});function ja(e){if(!e)return[];if(wn(e))return Pi(e)?Qn(e):mn(e);if(gr&&e[gr])return cs(e[gr]());var n=je(e),t=n==te?Zi:n==be?$r:ar;return t(e)}function bt(e){if(!e)return e===0?e:0;if(e=Zn(e),e===Le||e===-Le){var n=e<0?-1:1;return n*le}return e===e?e:0}function ie(e){var n=bt(e),t=n%1;return n===n?t?n-t:n:0}function ef(e){return e?Nt(ie(e),0,Oe):0}function Zn(e){if(typeof e=="number")return e;if(Ln(e))return Ae;if(Te(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Te(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=mu(e);var t=On.test(e);return t||Dr.test(e)?Yf(e.slice(2),t?2:8):lr.test(e)?Ae:+e}function nf(e){return at(e,xn(e))}function Dh(e){return e?Nt(ie(e),-_e,_e):e===0?e:0}function ve(e){return e==null?"":Tn(e)}var Bh=rr(function(e,n){if(Er(n)||wn(n)){at(n,Ze(n),e);return}for(var t in n)me.call(n,t)&&wr(e,t,n[t])}),tf=rr(function(e,n){at(n,xn(n),e)}),Ei=rr(function(e,n,t,r){at(n,xn(n),e,r)}),Wh=rr(function(e,n,t,r){at(n,Ze(n),e,r)}),zh=gt(ji);function Fh(e,n){var t=tr(e);return n==null?t:Du(t,n)}var Uh=ae(function(e,n){e=xe(e);var t=-1,r=n.length,i=r>2?n[2]:a;for(i&&sn(n[0],n[1],i)&&(r=1);++t1),u}),at(e,wo(e),t),r&&(t=$n(t,S|F|x,Vl));for(var i=n.length;i--;)co(t,n[i]);return t});function rp(e,n){return of(e,Si(q(n)))}var ip=gt(function(e,n){return e==null?{}:Ll(e,n)});function of(e,n){if(e==null)return{};var t=Re(wo(e),function(r){return[r]});return n=q(n),ku(e,t,function(r,i){return n(r,i[0])})}function op(e,n,t){n=Ct(n,e);var r=-1,i=n.length;for(i||(i=1,e=a);++rn){var r=e;e=n,n=r}if(t||e%1||n%1){var i=Tu();return Qe(e+i*(n-e+Zf("1e-"+((i+"").length-1))),n)}return fo(e,n)}var vp=ir(function(e,n,t){return n=n.toLowerCase(),e+(t?ff(n):n)});function ff(e){return Wo(ve(e).toLowerCase())}function sf(e){return e=ve(e),e&&e.replace(Wr,us).replace(zf,"")}function _p(e,n,t){e=ve(e),n=Tn(n);var r=e.length;t=t===a?r:Nt(ie(t),0,r);var i=t;return t-=n.length,t>=0&&e.slice(t,i)==n}function bp(e){return e=ve(e),e&&We.test(e)?e.replace(Pn,as):e}function mp(e){return e=ve(e),e&&vn.test(e)?e.replace(tn,"\\$&"):e}var wp=ir(function(e,n,t){return e+(t?"-":"")+n.toLowerCase()}),xp=ir(function(e,n,t){return e+(t?" ":"")+n.toLowerCase()}),yp=ca("toLowerCase");function Sp(e,n,t){e=ve(e),n=ie(n);var r=n?Jt(e):0;if(!n||r>=n)return e;var i=(n-r)/2;return pi(ni(i),t)+e+pi(ei(i),t)}function Ap(e,n,t){e=ve(e),n=ie(n);var r=n?Jt(e):0;return n&&r>>0,t?(e=ve(e),e&&(typeof n=="string"||n!=null&&!Io(n))&&(n=Tn(n),!n&&Vt(e))?Tt(Qn(e),0,t):e.split(n,t)):[]}var Lp=ir(function(e,n,t){return e+(t?" ":"")+Wo(n)});function Mp(e,n,t){return e=ve(e),t=t==null?0:Nt(ie(t),0,e.length),n=Tn(n),e.slice(t,t+n.length)==n}function Ip(e,n,t){var r=o.templateSettings;t&&sn(e,n,t)&&(n=a),e=ve(e),n=Ei({},n,r,ba);var i=Ei({},n.imports,r.imports,ba),u=Ze(i),f=qi(i,u),s,c,_=0,b=n.interpolate||Bt,w="__p += '",A=Yi((n.escape||Bt).source+"|"+b.source+"|"+(b===Wn?bn:Bt).source+"|"+(n.evaluate||Bt).source+"|$","g"),z="//# sourceURL="+(me.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xf+"]")+` +`;e.replace(A,function(k,se,de,Mn,ln,In){return de||(de=Mn),w+=e.slice(_,In).replace(zr,fs),se&&(s=!0,w+=`' + +__e(`+se+`) + +'`),ln&&(c=!0,w+=`'; +`+ln+`; +__p += '`),de&&(w+=`' + +((__t = (`+de+`)) == null ? '' : __t) + +'`),_=In+k.length,k}),w+=`'; +`;var Y=me.call(n,"variable")&&n.variable;if(!Y)w=`with (obj) { +`+w+` +} +`;else if(on.test(Y))throw new ne(Q);w=(c?w.replace(it,""):w).replace(Bn,"$1").replace(Jn,"$1;"),w="function("+(Y||"obj")+`) { +`+(Y?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+w+`return __p +}`;var ue=cf(function(){return ge(u,z+"return "+w).apply(a,f)});if(ue.source=w,Mo(ue))throw ue;return ue}function Dp(e){return ve(e).toLowerCase()}function Bp(e){return ve(e).toUpperCase()}function Wp(e,n,t){if(e=ve(e),e&&(t||n===a))return mu(e);if(!e||!(n=Tn(n)))return e;var r=Qn(e),i=Qn(n),u=wu(r,i),f=xu(r,i)+1;return Tt(r,u,f).join("")}function zp(e,n,t){if(e=ve(e),e&&(t||n===a))return e.slice(0,Su(e)+1);if(!e||!(n=Tn(n)))return e;var r=Qn(e),i=xu(r,Qn(n))+1;return Tt(r,0,i).join("")}function Fp(e,n,t){if(e=ve(e),e&&(t||n===a))return e.replace(rn,"");if(!e||!(n=Tn(n)))return e;var r=Qn(e),i=wu(r,Qn(n));return Tt(r,i).join("")}function Up(e,n){var t=j,r=he;if(Te(n)){var i="separator"in n?n.separator:i;t="length"in n?ie(n.length):t,r="omission"in n?Tn(n.omission):r}e=ve(e);var u=e.length;if(Vt(e)){var f=Qn(e);u=f.length}if(t>=u)return e;var s=t-Jt(r);if(s<1)return r;var c=f?Tt(f,0,s).join(""):e.slice(0,s);if(i===a)return c+r;if(f&&(s+=c.length-s),Io(i)){if(e.slice(s).search(i)){var _,b=c;for(i.global||(i=Yi(i.source,ve(an.exec(i))+"g")),i.lastIndex=0;_=i.exec(b);)var w=_.index;c=c.slice(0,w===a?s:w)}}else if(e.indexOf(Tn(i),s)!=s){var A=c.lastIndexOf(i);A>-1&&(c=c.slice(0,A))}return c+r}function Np(e){return e=ve(e),e&&nn.test(e)?e.replace(gn,gs):e}var Gp=ir(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),Wo=ca("toUpperCase");function lf(e,n,t){return e=ve(e),n=t?a:n,n===a?ls(e)?bs(e):ns(e):e.match(n)||[]}var cf=ae(function(e,n){try{return Rn(e,a,n)}catch(t){return Mo(t)?t:new ne(t)}}),Xp=gt(function(e,n){return Gn(n,function(t){t=ft(t),ht(e,t,To(e[t],e))}),e});function Hp(e){var n=e==null?0:e.length,t=q();return e=n?Re(e,function(r){if(typeof r[1]!="function")throw new Xn(T);return[t(r[0]),r[1]]}):[],ae(function(r){for(var i=-1;++i_e)return[];var t=Oe,r=Qe(e,Oe);n=q(n),e-=Oe;for(var i=Ki(r,n);++t0||n<0)?new ce(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==a&&(n=ie(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},ce.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ce.prototype.toArray=function(){return this.take(Oe)},ut(ce.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),i=o[r?"take"+(n=="last"?"Right":""):n],u=r||/^find/.test(n);i&&(o.prototype[n]=function(){var f=this.__wrapped__,s=r?[1]:arguments,c=f instanceof ce,_=s[0],b=c||re(f),w=function(se){var de=i.apply(o,At([se],s));return r&&A?de[0]:de};b&&t&&typeof _=="function"&&_.length!=1&&(c=b=!1);var A=this.__chain__,z=!!this.__actions__.length,Y=u&&!A,ue=c&&!z;if(!u&&b){f=ue?f:new ce(this);var k=e.apply(f,s);return k.__actions__.push({func:mi,args:[w],thisArg:a}),new Hn(k,A)}return Y&&ue?e.apply(this,s):(k=this.thru(w),Y?r?k.value()[0]:k.value():k)})}),Gn(["pop","push","shift","sort","splice","unshift"],function(e){var n=Kr[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);o.prototype[e]=function(){var i=arguments;if(r&&!this.__chain__){var u=this.value();return n.apply(re(u)?u:[],i)}return this[t](function(f){return n.apply(re(f)?f:[],i)})}}),ut(ce.prototype,function(e,n){var t=o[n];if(t){var r=t.name+"";me.call(nr,r)||(nr[r]=[]),nr[r].push({name:n,func:t})}}),nr[di(a,U).name]=[{name:"wrapper",func:a}],ce.prototype.clone=Ns,ce.prototype.reverse=Gs,ce.prototype.value=Xs,o.prototype.at=_d,o.prototype.chain=bd,o.prototype.commit=md,o.prototype.next=wd,o.prototype.plant=yd,o.prototype.reverse=Sd,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=Ad,o.prototype.first=o.prototype.head,gr&&(o.prototype[gr]=xd),o},Qt=ms();Wt?((Wt.exports=Qt)._=Qt,zi._=Qt):ke._=Qt}).call(fr)}(Lr,Lr.exports)),Lr.exports}(function(h,y){(function(I,H){h.exports=H(Og,cv(),Cg())})(fr,function(a,I,H){return function(){var X={"./src/Xarrow/utils/buzzier.js":function(B,m,S){S.r(m),S.d(m,{bzFunction:function(){return F},buzzierMinSols:function(){return x}});var F=function(O,W,U,v){return function(P){return Math.pow(1-P,3)*O+3*Math.pow(1-P,2)*P*W+3*(1-P)*Math.pow(P,2)*U+Math.pow(P,3)*v}},x=function(O,W,U,v){var P=F(O,W,U,v),N=-6*O+12*W-6*U,R=Math.pow(-6*O+12*W-6*U,2)-4*(3*W-3*O)*(-3*O+9*W-9*U+3*v),Z=2*(-3*O+9*W-9*U+3*v),K=P((N+Math.sqrt(R))/Z),E=P((N-Math.sqrt(R))/Z);return[K,E]}},"./src/Xarrow/Xarrow.tsx":function(B,m,S){var F=this&&this.__assign||function(){return F=Object.assign||function(E){for(var D,j=1,he=arguments.length;j0?"translate(-100% , -50%)":"translate(-0% , -50%)",width:"max-content",position:"absolute",left:M.cx0+M.labelEndPos.x,top:M.cy0+M.labelEndPos.y+st+5}},Ae.end):null,be?v.default.createElement(v.default.Fragment,null,W(W([],M.startPoints),M.endPoints).map(function(nn,We){return v.default.createElement("div",{key:We,style:{background:"gray",opacity:.5,borderRadius:"50%",transform:"translate(-50%, -50%)",height:5,width:5,position:"absolute",left:nn.x-M.mainDivPos.x,top:nn.y-M.mainDivPos.y}})})):null):null)};K.propTypes=R.default,m.default=K},"./src/Xarrow/anchors.ts":function(B,m,S){B=S.nmd(B),Object.defineProperty(m,"__esModule",{value:!0}),m.calcAnchors=void 0;var F=function(V,O){return{middle:{x:V*.5,y:O*.5},left:{x:0,y:O*.5},right:{x:V,y:O*.5},top:{x:V*.5,y:0},bottom:{x:V*.5,y:O}}},x=function(V,O){return V.map(function(W){var U=F(O.right-O.x,O.bottom-O.y),v=U[W.position],P=v.x,N=v.y;return{x:O.x+P+W.offset.x,y:O.y+N+W.offset.y,anchor:W}})};m.calcAnchors=x,S.c[S.s]},"./src/Xarrow/propTypes.ts":function(B,m,S){var F=this&&this.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(m,"__esModule",{value:!0});var x=F(S("prop-types")),V=S("./src/constants.tsx"),O=x.default.oneOf(V.cAnchorEdge),W=x.default.exact({position:O.isRequired,offset:x.default.exact({x:x.default.number,y:x.default.number}).isRequired}),U=x.default.oneOfType([O,W]),v=x.default.oneOfType([U,x.default.arrayOf(U)]),P=x.default.oneOfType([x.default.string,x.default.exact({current:x.default.any})]),N=x.default.oneOfType([x.default.element,x.default.string]),R=x.default.exact({start:N,middle:N,end:N}),Z=x.default.oneOf(Object.keys(V.arrowShapes)),K=x.default.any,E=x.default.oneOfType([Z,x.default.exact({svgElem:K,offsetForward:x.default.number}).isRequired]),D={start:P.isRequired,end:P.isRequired,startAnchor:v,endAnchor:v,labels:x.default.oneOfType([N,R]),color:x.default.string,lineColor:x.default.string,showHead:x.default.bool,headColor:x.default.string,headSize:x.default.number,tailSize:x.default.number,tailColor:x.default.string,strokeWidth:x.default.number,showTail:x.default.bool,path:x.default.oneOf(V.cPaths),showXarrow:x.default.bool,curveness:x.default.number,gridBreak:x.default.string,dashness:x.default.oneOfType([x.default.bool,x.default.object]),headShape:E,tailShape:E,animateDrawing:x.default.oneOfType([x.default.bool,x.default.number]),zIndex:x.default.number,passProps:x.default.object,arrowBodyProps:x.default.object,arrowHeadProps:x.default.object,arrowTailProps:x.default.object,SVGcanvasProps:x.default.object,divContainerProps:x.default.object,_extendSVGcanvas:x.default.number,_debug:x.default.bool,_cpx1Offset:x.default.number,_cpy1Offset:x.default.number,_cpx2Offset:x.default.number,_cpy2Offset:x.default.number};m.default=D},"./src/Xarrow/useXarrowProps.ts":function(B,m,S){var F=this&&this.__assign||function(){return F=Object.assign||function(g){for(var C,G=1,J=arguments.length;G0&&(G=G.filter(function(ee){return ee.position!=="auto"}),G.push.apply(G,J.flatMap(function(ee){return["left","right","top","bottom"].map(function(te){return F(F({},ee),{position:te})})})));var Ce=G.map(function(ee){if(typeof ee=="object"){var te=ee;return te.position||(te.position="auto"),te.offset||(te.offset={x:0,y:0}),te.offset.y||(te.offset.y=0),te.offset.x||(te.offset.x=0),te=te,te}else return ee});return Ce},K=function(g,C){var G=0,J=0,Ce,ee=1;return typeof g=="object"?(G=g.strokeLen||C.strokeWidth*2,J=g.strokeLen?g.nonStrokeLen:C.strokeWidth,Ce=g.animation?g.animation:null):typeof g=="boolean"&&g&&(G=C.strokeWidth*2,J=C.strokeWidth,Ce=null),{strokeLen:G,nonStrokeLen:J,animation:Ce,animDirection:ee}},E=function(g){return typeof g=="string"&&(g in N.arrowShapes?g=N.arrowShapes[g]:(console.warn("'"+g+"' is not supported arrow shape. the supported arrow shapes is one of "+N.cArrowShapes+`. + reverting to default shape.`),g=N.arrowShapes.arrow1)),g=g,g?.offsetForward===void 0&&(g.offsetForward=.25),g?.svgElem===void 0&&(g.svgElem="path"),g},D=function(g){var C=v.xStr2absRelative(g);return C||(C={relative:.5,abs:0}),C},j=function(g,C){return C&&(C.current=!0),g},he=function(g){return g},$=function(g,C,G){return j(g,G)},Ge=function(g,C,G){return j(Number(g),G)},Xe=function(g){return Number(g)},ye={start:function(g){return v.getElementByPropGiven(g)},end:function(g){return v.getElementByPropGiven(g)},startAnchor:function(g,C,G){return j(Z(g),G)},endAnchor:function(g,C,G){return j(Z(g),G)},labels:function(g){return R(g)},color:he,lineColor:function(g,C){return g||C.color},headColor:function(g,C){return g||C.color},tailColor:function(g,C){return g||C.color},strokeWidth:Ge,showHead:$,headSize:Ge,showTail:$,tailSize:Ge,path:$,curveness:Ge,gridBreak:function(g,C,G){return j(D(g),G)},dashness:function(g,C){return K(g,C)},headShape:function(g){return E(g)},tailShape:function(g){return E(g)},showXarrow:he,animateDrawing:he,zIndex:Xe,passProps:he,arrowBodyProps:$,arrowHeadProps:$,arrowTailProps:$,SVGcanvasProps:$,divContainerProps:$,divContainerStyle:$,SVGcanvasStyle:$,_extendSVGcanvas:$,_debug:$,_cpx1Offset:$,_cpy1Offset:$,_cpx2Offset:$,_cpy2Offset:$},Ke={};for(var Le in ye)Ke[Le]=[Le];for(var _e=0,le=["lineColor","headColor","tailColor"];_e0?1:-1,pe=Sn>0?1:-1,yt=[Oe.offsetForward,cn.offsetForward],pn=yt[0],An=yt[1],Be=ye*Ge,Ie=Le*Ge,it=0,Bn=0,Jn=0,gn=0,Pn=Be*pn,nn=Ie*An,We=Number(le);W.cPaths.includes(_e)||(_e="smooth"),_e==="straight"&&(We=0,_e="smooth");var ot=ye>Le?ye:Le,En=Ge+Ge*ot/2,Wn=En,Je=En,zn=En,Dt=En;Je+=Number(tt),Wn+=Number(tt),zn+=Number(tt),Dt+=Number(tt);var tn=0,vn=Me,rn=0,_n=M;if(Vn<0&&(R=[vn,tn],tn=R[0],vn=R[1]),Sn<0&&(Z=[_n,rn],rn=Z[0],_n=Z[1]),We===0){var Fn=Math.atan(M/Me);Xe&&(vn-=Be*(1-pn)*fe*Math.cos(Fn),_n-=Be*(1-pn)*pe*Math.sin(Fn),Fn*=pe,fe<0&&(Fn=(Math.PI-Fn*fe)*fe),it=Math.cos(Fn)*Pn-Math.sin(Fn)*Be/2,Bn=Math.cos(Fn)*Be/2+Math.sin(Fn)*Pn,ee=Fn*180/Math.PI);var Un=Math.atan(M/Me);Ke&&(tn+=Ie*(1-An)*fe*Math.cos(Un),rn+=Ie*(1-An)*pe*Math.sin(Un),Un*=-pe,fe>0&&(Un=(Math.PI-Un*fe)*fe),Jn=Math.cos(Un)*nn-Math.sin(Un)*Ie/2,gn=Math.cos(Un)*Ie/2+Math.sin(Un)*nn,te=Un*180/Math.PI)}else be==="middle"&&(Me>M?be=fe?"left":"right":be=pe?"top":"bottom"),Xe&&(["left","right"].includes(be)?(it+=Pn*fe,vn-=Be*(1-pn)*fe,Bn+=Be*fe/2,be==="left"?(ee=0,fe<0&&(ee+=180)):(ee=180,fe>0&&(ee+=180))):["top","bottom"].includes(be)&&(it+=Be*-pe/2,Bn+=Pn*pe,_n-=Be*pe-Bn,be==="top"?(ee=270,pe>0&&(ee+=180)):(ee=90,pe<0&&(ee+=180))));Ke&&We!==0&&(["left","right"].includes(qe)?(Jn+=nn*-fe,tn+=Ie*fe+Jn,gn+=-(Ie*fe)/2,qe==="left"?(te=180,fe<0&&(te+=180)):(te=0,fe>0&&(te+=180))):["top","bottom"].includes(qe)&&(gn+=nn*-pe,rn+=Ie*pe+gn,Jn+=Ie*pe/2,qe==="top"?(te=90,pe>0&&(te+=180)):(te=270,pe<0&&(te+=180))));var Ci={x:it,y:Bn},Ti={x:Jn,y:gn},on=tn,un=rn,bn=vn,an=_n,lr={};_e==="smooth"?lr={hh:function(){on+=Me*We*fe,bn-=Me*We*fe},vv:function(){un+=M*We*pe,an-=M*We*pe},hv:function(){on+=Me*We*fe,an-=M*We*pe},vh:function(){un+=M*We*pe,bn-=Me*We*fe}}:_e==="grid"&&(lr={hh:function(){on+=(Me*Ae.relative+Ae.abs)*fe,bn-=(Me*(1-Ae.relative)-Ae.abs)*fe,Xe&&(on-=Be*(1-pn)/2*fe,bn+=Be*(1-pn)/2*fe),Ke&&(on-=Ie*(1-An)/2*fe,bn+=Ie*(1-An)/2*fe)},vv:function(){un+=(M*Ae.relative+Ae.abs)*pe,an-=(M*(1-Ae.relative)-Ae.abs)*pe,Xe&&(un-=Be*(1-pn)/2*pe,an+=Be*(1-pn)/2*pe),Ke&&(un-=Ie*(1-An)/2*pe,an+=Ie*(1-An)/2*pe)},hv:function(){on=vn},vh:function(){un=_n}});var On="";["left","right"].includes(qe)?On+="h":["bottom","top"].includes(qe)?On+="v":qe==="middle"&&(On+="m"),["left","right"].includes(be)?On+="h":["bottom","top"].includes(be)?On+="v":be==="middle"&&(On+="m"),Me>M?On=On.replace(/m/g,"h"):On=On.replace(/m/g,"v"),lr[On](),on+=st,un+=Dn,bn+=Yn,an+=en;var Ir=U.buzzierMinSols(tn,on,bn,vn),Dr=Ir[0],Br=Ir[1],Wr=U.buzzierMinSols(rn,un,an,_n),Bt=Wr[0],zr=Wr[1];Dr<0&&(Je+=-Dr),Br>Me&&(Wn+=Br-Me),Bt<0&&(zn+=-Bt),zr>M&&(Dt+=zr-M),_e==="grid"&&(Je+=En,Wn+=En,zn+=En,Dt+=En),tn+=Je,vn+=Je,rn+=zn,_n+=zn,on+=Je,bn+=Je,un+=zn,an+=zn;var Zt=Me+Je+Wn,Li=M+zn+Dt;kn-=Je,qt-=zn;var cr=U.bzFunction(tn,on,bn,vn),dr=U.bzFunction(rn,un,an,_n),Fr={x:cr(.01),y:dr(.01)},Ur={x:cr(.5),y:dr(.5)},Nr={x:cr(.99),y:dr(.99)},hr;return _e==="grid"?hr="M "+tn+" "+rn+" L "+on+" "+un+" L "+bn+" "+an+" "+vn+" "+_n:_e==="smooth"&&(hr="M "+tn+" "+rn+" C "+on+" "+un+", "+bn+" "+an+", "+vn+" "+_n),{cx0:kn,cy0:qt,x1:tn,x2:vn,y1:rn,y2:_n,cw:Zt,ch:Li,cpx1:on,cpy1:un,cpx2:bn,cpy2:an,dx:Vn,dy:Sn,absDx:Me,absDy:M,headOrient:ee,tailOrient:te,labelStartPos:Fr,labelMiddlePos:Ur,labelEndPos:Nr,excLeft:Je,excRight:Wn,excUp:zn,excDown:Dt,headOffset:Pn,arrowHeadOffset:Ci,arrowTailOffset:Ti,startPoints:dn,endPoints:xt,mainDivPos:lt,xSign:fe,ySign:pe,lineLength:(E=(K=Ce.current)===null||K===void 0?void 0:K.getTotalLength())!==null&&E!==void 0?E:0,fHeadSize:Be,fTailSize:Ie,arrowPath:hr}};m.getPosition=v},"./src/Xarrow/utils/index.ts":function(B,m){Object.defineProperty(m,"__esModule",{value:!0}),m.getSvgPos=m.getElemPos=m.getShortestLine=m.xStr2absRelative=m.factorDpathStr=m.getElementByPropGiven=void 0;var S=function(v){var P;return typeof v=="string"?P=document.getElementById(v):P=v?.current,P};m.getElementByPropGiven=S;var F=function(v,P){var N=v.split(/(\d+(?:\.\d+)?)/);return N=N.map(function(R){return Number(R)?(Number(R)*P).toString():R}),N.join("")};m.factorDpathStr=F;var x=function(v){if(typeof v!="string")return{abs:0,relative:.5};var P=v.split("%"),N=0,R=0;if(P.length==1){var Z=parseFloat(P[0]);if(!isNaN(Z))return N=Z,{abs:N,relative:0}}else if(P.length==2){var K=[parseFloat(P[0]),parseFloat(P[1])],E=K[0],D=K[1];if(isNaN(E)||(R=E/100),isNaN(D)||(N=D),!isNaN(E)||!isNaN(D))return{abs:N,relative:R}}};m.xStr2absRelative=x;var V=function(v,P){return Math.sqrt(Math.pow(v.x-P.x,2)+Math.pow(v.y-P.y,2))},O=function(v,P){var N=1/0,R=1/0,Z;return v.forEach(function(K){P.forEach(function(E){R=V(K,E),R0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(t=window.document)===null||t===void 0||(t=t.documentElement)===null||t===void 0?void 0:t.style;if(!n||e in n)return"";for(let r=0;re===n.identifier)||t.changedTouches&&(0,b.findInArray)(t.changedTouches,n=>e===n.identifier)}function qt(t){if(t.targetTouches&&t.targetTouches[0])return t.targetTouches[0].identifier;if(t.changedTouches&&t.changedTouches[0])return t.changedTouches[0].identifier}function Gt(t){if(!t)return;let e=t.getElementById("react-draggable-style-el");e||(e=t.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,t.getElementsByTagName("head")[0].appendChild(e)),t.body&&ht(t.body,"react-draggable-transparent-selection")}function kt(t){if(t)try{if(t.body&&pt(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{const e=(t.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function ht(t,e){t.classList?t.classList.add(e):t.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(t.className+=" ".concat(e))}function pt(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var M={};Object.defineProperty(M,"__esModule",{value:!0});M.canDragX=jt;M.canDragY=Jt;M.createCoreData=Zt;M.createDraggableData=te;M.getBoundPosition=zt;M.getControlPosition=Qt;M.snapToGrid=Kt;var S=T,X=p;function zt(t,e,n){if(!t.props.bounds)return[e,n];let{bounds:r}=t.props;r=typeof r=="string"?r:ee(r);const o=k(t);if(typeof r=="string"){const{ownerDocument:i}=o,c=i.defaultView;let d;if(r==="parent"?d=o.parentNode:d=i.querySelector(r),!(d instanceof c.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const h=d,v=c.getComputedStyle(o),P=c.getComputedStyle(h);r={left:-o.offsetLeft+(0,S.int)(P.paddingLeft)+(0,S.int)(v.marginLeft),top:-o.offsetTop+(0,S.int)(P.paddingTop)+(0,S.int)(v.marginTop),right:(0,X.innerWidth)(h)-(0,X.outerWidth)(o)-o.offsetLeft+(0,S.int)(P.paddingRight)-(0,S.int)(v.marginRight),bottom:(0,X.innerHeight)(h)-(0,X.outerHeight)(o)-o.offsetTop+(0,S.int)(P.paddingBottom)-(0,S.int)(v.marginBottom)}}return(0,S.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,S.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,S.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,S.isNum)(r.top)&&(n=Math.max(n,r.top)),[e,n]}function Kt(t,e,n){const r=Math.round(e/t[0])*t[0],o=Math.round(n/t[1])*t[1];return[r,o]}function jt(t){return t.props.axis==="both"||t.props.axis==="x"}function Jt(t){return t.props.axis==="both"||t.props.axis==="y"}function Qt(t,e,n){const r=typeof e=="number"?(0,X.getTouch)(t,e):null;if(typeof e=="number"&&!r)return null;const o=k(n),i=n.props.offsetParent||o.offsetParent||o.ownerDocument.body;return(0,X.offsetXYFromParent)(r||t,i,n.props.scale)}function Zt(t,e,n){const r=!(0,S.isNum)(t.lastX),o=k(t);return r?{node:o,deltaX:0,deltaY:0,lastX:e,lastY:n,x:e,y:n}:{node:o,deltaX:e-t.lastX,deltaY:n-t.lastY,lastX:t.lastX,lastY:t.lastY,x:e,y:n}}function te(t,e){const n=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/n,y:t.state.y+e.deltaY/n,deltaX:e.deltaX/n,deltaY:e.deltaY/n,lastX:t.state.x,lastY:t.state.y}}function ee(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}function k(t){const e=t.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var $={},B={};Object.defineProperty(B,"__esModule",{value:!0});B.default=ne;function ne(){}Object.defineProperty($,"__esModule",{value:!0});$.default=void 0;var V=oe(ot),D=z(st()),re=z(at),m=p,_=M,q=T,W=z(B);function z(t){return t&&t.__esModule?t:{default:t}}function gt(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(gt=function(r){return r?n:e})(t)}function oe(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=gt(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var c=o?Object.getOwnPropertyDescriptor(t,i):null;c&&(c.get||c.set)?Object.defineProperty(r,i,c):r[i]=t[i]}return r.default=t,n&&n.set(t,r),r}function y(t,e,n){return e=ae(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ae(t){var e=se(t,"string");return typeof e=="symbol"?e:String(e)}function se(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const w={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let N=w.mouse,L=class extends V.Component{constructor(){super(...arguments),y(this,"dragging",!1),y(this,"lastX",NaN),y(this,"lastY",NaN),y(this,"touchIdentifier",null),y(this,"mounted",!1),y(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=n;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,m.matchesSelectorAndParentsTo)(e.target,this.props.handle,n)||this.props.cancel&&(0,m.matchesSelectorAndParentsTo)(e.target,this.props.cancel,n))return;e.type==="touchstart"&&e.preventDefault();const o=(0,m.getTouchIdentifier)(e);this.touchIdentifier=o;const i=(0,_.getControlPosition)(e,o,this);if(i==null)return;const{x:c,y:d}=i,h=(0,_.createCoreData)(this,c,d);(0,W.default)("DraggableCore: handleDragStart: %j",h),(0,W.default)("calling",this.props.onStart),!(this.props.onStart(e,h)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,m.addUserSelectStyles)(r),this.dragging=!0,this.lastX=c,this.lastY=d,(0,m.addEvent)(r,N.move,this.handleDrag),(0,m.addEvent)(r,N.stop,this.handleDragStop))}),y(this,"handleDrag",e=>{const n=(0,_.getControlPosition)(e,this.touchIdentifier,this);if(n==null)return;let{x:r,y:o}=n;if(Array.isArray(this.props.grid)){let d=r-this.lastX,h=o-this.lastY;if([d,h]=(0,_.snapToGrid)(this.props.grid,d,h),!d&&!h)return;r=this.lastX+d,o=this.lastY+h}const i=(0,_.createCoreData)(this,r,o);if((0,W.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const h=document.createEvent("MouseEvents");h.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(h)}return}this.lastX=r,this.lastY=o}),y(this,"handleDragStop",e=>{if(!this.dragging)return;const n=(0,_.getControlPosition)(e,this.touchIdentifier,this);if(n==null)return;let{x:r,y:o}=n;if(Array.isArray(this.props.grid)){let h=r-this.lastX||0,v=o-this.lastY||0;[h,v]=(0,_.snapToGrid)(this.props.grid,h,v),r=this.lastX+h,o=this.lastY+v}const i=(0,_.createCoreData)(this,r,o);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const d=this.findDOMNode();d&&this.props.enableUserSelectHack&&(0,m.removeUserSelectStyles)(d.ownerDocument),(0,W.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,d&&((0,W.default)("DraggableCore: Removing handlers"),(0,m.removeEvent)(d.ownerDocument,N.move,this.handleDrag),(0,m.removeEvent)(d.ownerDocument,N.stop,this.handleDragStop))}),y(this,"onMouseDown",e=>(N=w.mouse,this.handleDragStart(e))),y(this,"onMouseUp",e=>(N=w.mouse,this.handleDragStop(e))),y(this,"onTouchStart",e=>(N=w.touch,this.handleDragStart(e))),y(this,"onTouchEnd",e=>(N=w.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,m.addEvent)(e,w.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:n}=e;(0,m.removeEvent)(n,w.mouse.move,this.handleDrag),(0,m.removeEvent)(n,w.touch.move,this.handleDrag),(0,m.removeEvent)(n,w.mouse.stop,this.handleDragStop),(0,m.removeEvent)(n,w.touch.stop,this.handleDragStop),(0,m.removeEvent)(e,w.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,m.removeUserSelectStyles)(n)}}findDOMNode(){var e,n;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:re.default.findDOMNode(this)}render(){return V.cloneElement(V.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};$.default=L;y(L,"displayName","DraggableCore");y(L,"propTypes",{allowAnyClick:D.default.bool,children:D.default.node.isRequired,disabled:D.default.bool,enableUserSelectHack:D.default.bool,offsetParent:function(t,e){if(t[e]&&t[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:D.default.arrayOf(D.default.number),handle:D.default.string,cancel:D.default.string,nodeRef:D.default.object,onStart:D.default.func,onDrag:D.default.func,onStop:D.default.func,onMouseDown:D.default.func,scale:D.default.number,className:q.dontSetMe,style:q.dontSetMe,transform:q.dontSetMe});y(L,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return h.default}}),t.default=void 0;var e=yt(ot),n=P(st()),r=P(at),o=P(Mt),i=p,c=M,d=T,h=P($),v=P(B);function P(a){return a&&a.__esModule?a:{default:a}}function K(a){if(typeof WeakMap!="function")return null;var s=new WeakMap,u=new WeakMap;return(K=function(l){return l?u:s})(a)}function yt(a,s){if(!s&&a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var u=K(s);if(u&&u.has(a))return u.get(a);var l={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in a)if(f!=="default"&&Object.prototype.hasOwnProperty.call(a,f)){var C=g?Object.getOwnPropertyDescriptor(a,f):null;C&&(C.get||C.set)?Object.defineProperty(l,f,C):l[f]=a[f]}return l.default=a,u&&u.set(a,l),l}function I(){return I=Object.assign?Object.assign.bind():function(a){for(var s=1;s{if((0,v.default)("Draggable: onDragStart: %j",l),this.props.onStart(u,(0,c.createDraggableData)(this,l))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),E(this,"onDrag",(u,l)=>{if(!this.state.dragging)return!1;(0,v.default)("Draggable: onDrag: %j",l);const g=(0,c.createDraggableData)(this,l),f={x:g.x,y:g.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Y,y:O}=f;f.x+=this.state.slackX,f.y+=this.state.slackY;const[U,j]=(0,c.getBoundPosition)(this,f.x,f.y);f.x=U,f.y=j,f.slackX=this.state.slackX+(Y-f.x),f.slackY=this.state.slackY+(O-f.y),g.x=f.x,g.y=f.y,g.deltaX=f.x-this.state.x,g.deltaY=f.y-this.state.y}if(this.props.onDrag(u,g)===!1)return!1;this.setState(f)}),E(this,"onDragStop",(u,l)=>{if(!this.state.dragging||this.props.onStop(u,(0,c.createDraggableData)(this,l))===!1)return!1;(0,v.default)("Draggable: onDragStop: %j",l);const f={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Y,y:O}=this.props.position;f.x=Y,f.y=O}this.setState(f)}),this.state={dragging:!1,dragged:!1,x:s.position?s.position.x:s.defaultPosition.x,y:s.position?s.position.y:s.defaultPosition.y,prevPropsPosition:{...s.position},slackX:0,slackY:0,isElementSVG:!1},s.position&&!(s.onDrag||s.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var s,u;return(s=(u=this.props)===null||u===void 0||(u=u.nodeRef)===null||u===void 0?void 0:u.current)!==null&&s!==void 0?s:r.default.findDOMNode(this)}render(){const{axis:s,bounds:u,children:l,defaultPosition:g,defaultClassName:f,defaultClassNameDragging:C,defaultClassNameDragged:Y,position:O,positionOffset:U,scale:j,...St}=this.props;let J={},Q=null;const Z=!!!O||this.state.dragging,tt=O||g,et={x:(0,c.canDragX)(this)&&Z?this.state.x:tt.x,y:(0,c.canDragY)(this)&&Z?this.state.y:tt.y};this.state.isElementSVG?Q=(0,i.createSVGTransform)(et,U):J=(0,i.createCSSTransform)(et,U);const bt=(0,o.default)(l.props.className||"",f,{[C]:this.state.dragging,[Y]:this.state.dragged});return e.createElement(h.default,I({},St,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(l),{className:bt,style:{...l.props.style,...J},transform:Q}))}}t.default=R,E(R,"displayName","Draggable"),E(R,"propTypes",{...h.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe}),E(R,"defaultProps",{...h.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(it);const{default:mt,DraggableCore:ie}=it;F.exports=mt;F.exports.default=mt;F.exports.DraggableCore=ie;var le=F.exports;const he=Pt(le);export{he as D}; diff --git a/assets/index-BTrrCTtC.js b/assets/index-BTrrCTtC.js new file mode 100644 index 0000000..fd4a9ef --- /dev/null +++ b/assets/index-BTrrCTtC.js @@ -0,0 +1,252 @@ +import{j as r,P as Dd}from"./04-nivo-DR-YQDOq.js";import{a as Td,r as d,$ as No,d as Md,e as Co,C as mn,f as $o,h as _o,i as Ca,j as $a,k as So,l as ko,m as Wt,n as Ro,D as _a,o as Eo,p as Ao,q as Do,s as To,t as Mo,u as Po,v as Pd,w as zo,x as Io,y as Lo,z as Bo,A as Fo,B as Oo,E as Ho,F as Vo,G as Wo,H as Uo,I as Sa,J as Go,K as Ko,L as qo,M as Yo,N as zd,O as Xo,P as Jo,Q as Id,S as Zo,T as Ld,U as Qo,V as Bd,W as ei,X as Fd,Y as ti,Z as ri,_ as Od,a0 as Hd,a1 as ni,a2 as Vd,a3 as Wd,a4 as Ud,a5 as ai,a6 as Gd,a7 as Kd,a8 as yr,a9 as wr,aa as ka,ab as Ra,ac as jr,ad as Nr,ae as pn,af as si,ag as qd,ah as Yd,ai as Xd,aj as Jd,ak as Zd,al as oi,am as Qd,an as eu,ao as tu,ap as ii,aq as ru,ar as li,as as ci,at as nu,au,av as su,aw as di,ax as ui,ay as fi,az as mi,aA as ou,aB as pi,aC as hi,aD as xi,aE as gi,aF as bi,aG as vi,aH as yi,aI as iu,aJ as lu,aK as cu,aL as wi,aM as ji,aN as Ea,aO as Aa,aP as Ni,aQ as Ci,aR as du,aS as uu,aT as $i,aU as fu,aV as _i,aW as Si,aX as ki,aY as Ri,aZ as Ei,a_ as Ai,a$ as mu,b0 as Di,b1 as Ti,b2 as Mi,b3 as pu,b4 as Pi,b5 as zi,b6 as hu,R as v,g as xu,b7 as Ii,b8 as gu,b9 as bu,ba as Li,bb as Bi,bc as Fi,bd as Oi,be as Hi,bf as Vi,bg as vu,bh as yu,bi as Wi,bj as wu,bk as ju,bl as Nu,bm as O,bn as Cu,bo as $u}from"./02-radix-ui-BssNd7Fu.js";import{c as N,a as de,i as _u,t as Ui,d as Su,b as Gi,w as ku,e as Ru,l as Eu,f as Cr,u as Au,X as Du,m as Ki}from"./07-xarrows-3Yedwf5T.js";import{u as Tu}from"./05-embla-DcDSTlW8.js";import{u as Mu,f as os,g as Pu,a as zu,b as Iu,c as Lu}from"./06-tanstack-CM-tI3Fb.js";import{X as Da,Y as qi,Z as Bu,$ as Fu,a0 as Yi,a1 as Ou,a2 as Hu,a3 as is,a4 as Oe}from"./03-recharts-DF_t8duT.js";import{D as Xi}from"./08-react-draggable-gqIhLXfB.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var aa={},ls=Td;aa.createRoot=ls.createRoot,aa.hydrateRoot=ls.hydrateRoot;const $r=" data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ";function Ji(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,ds=Vu,Ut=(e,t)=>n=>{var a;if(t?.variants==null)return ds(e,n?.class,n?.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(c=>{const f=n?.[c],m=o?.[c];if(f===null)return null;const h=cs(f)||cs(m);return s[c][h]}),l=n&&Object.entries(n).reduce((c,f)=>{let[m,h]=f;return h===void 0||(c[m]=h),c},{}),u=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((c,f)=>{let{class:m,className:h,...p}=f;return Object.entries(p).every(g=>{let[b,y]=g;return Array.isArray(y)?y.includes({...o,...l}[b]):{...o,...l}[b]===y})?[...c,m,h]:c},[]);return ds(e,i,u,n?.class,n?.className)},Wu="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",Uu=Ut(Wu),an=d.forwardRef(({className:e,...t},n)=>r.jsx(No,{ref:n,className:N(Uu(),e),...t}));an.displayName=No.displayName;const Gu="px-3 py-1 w-full h-9 text-sm border-input bg-transparent file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed transition-colors border rounded-md shadow-sm flex",xr=d.forwardRef(({className:e,type:t,...n},a)=>r.jsx("input",{type:t,className:N(Gu,e),ref:a,...n}));xr.displayName="Input";const Ku="px-3 py-2 w-full min-h-[60px] text-sm border-input bg-transparent placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed border rounded-md shadow-sm flex",Zi=d.forwardRef(({className:e,...t},n)=>r.jsx("textarea",{className:N(Ku,e),ref:n,...t}));Zi.displayName="Textarea";const qu='after:![content:attr(data-replicated)_"_"] after:whitespace-pre after:border-transparent after:invisible after:[grid-area:1/1/2/2] grid',Yu="resize-none overflow-hidden [grid-area:1/1/2/2]",Xu="after:px-3 after:py-2 after:text-sm after:border",Ju=d.forwardRef(({containerPaddingFont:e=Xu,className:t,value:n,...a},s)=>r.jsx("div",{className:N(qu,e),"data-replicated":n,children:r.jsx(Zi,{className:N(Yu,t),value:n,ref:s,...a})}));Ju.displayName="TextareaAutoGrow";const Zu="text-sm font-medium focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none transition-colors rounded-md inline-flex items-center justify-center",hn=Ut(Zu,{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground shadow-sm",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"px-4 py-2 h-9",xs:"px-2 h-7 text-xs rounded-md",sm:"px-3 h-8 text-xs rounded-md",lg:"px-8 h-10 rounded-md",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),pe=d.forwardRef(({className:e,variant:t,size:n,asChild:a=!1,...s},o)=>{const i=a?Md:"button";return r.jsx(i,{className:N(hn({variant:t,size:n,className:e})),ref:o,...s})});pe.displayName="Button";const Ta=Do,Ma=To,Qu="px-2 py-1.5 text-sm focus:bg-accent data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",ef=d.forwardRef(({className:e,inset:t,children:n,...a},s)=>r.jsxs(Co,{ref:s,className:N(Qu,t&&"pl-8",e),...a,children:[n,r.jsx(mn,{className:"ml-auto h-4 w-4"})]}));ef.displayName=Co.displayName;const Qi=`p-1 min-w-[8rem] z-50 text-popover-foreground bg-popover border rounded-md shadow-md overflow-hidden ${$r}`,tf=d.forwardRef(({className:e,...t},n)=>r.jsx($o,{ref:n,className:N(Qi,e),...t}));tf.displayName=$o.displayName;const rf=Qi,xn=d.forwardRef(({className:e,sideOffset:t=4,...n},a)=>r.jsx(_o,{children:r.jsx(Ca,{ref:a,className:N(rf,e),sideOffset:t,...n})}));xn.displayName=Ca.displayName;const nf="relative px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none transition-colors rounded-sm outline-none select-none cursor-default flex items-center",lr=d.forwardRef(({className:e,inset:t,...n},a)=>r.jsx($a,{ref:a,className:N(nf,t&&"pl-8",e),...n}));lr.displayName=$a.displayName;const af="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none transition-colors rounded-sm outline-none select-none cursor-default flex items-center",el=d.forwardRef(({className:e,children:t,checked:n,...a},s)=>r.jsxs(So,{ref:s,className:N(af,e),checked:n,...a,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(ko,{children:r.jsx(Wt,{className:"h-4 w-4"})})}),t]}));el.displayName=So.displayName;const sf="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none transition-colors rounded-sm outline-none select-none cursor-default flex items-center",of=d.forwardRef(({className:e,children:t,...n},a)=>r.jsxs(Ro,{ref:a,className:N(sf,e),...n,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(ko,{children:r.jsx(_a,{className:"h-4 w-4 fill-current"})})}),t]}));of.displayName=Ro.displayName;const tl=d.forwardRef(({className:e,inset:t,...n},a)=>r.jsx(Eo,{ref:a,className:N("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));tl.displayName=Eo.displayName;const rl=d.forwardRef(({className:e,...t},n)=>r.jsx(Ao,{ref:n,className:N("-mx-1 my-1 h-px bg-muted",e),...t}));rl.displayName=Ao.displayName;const lf="px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",cf=d.forwardRef(({className:e,inset:t,children:n,...a},s)=>r.jsxs(Mo,{ref:s,className:N(lf,t&&"pl-8",e),...a,children:[n,r.jsx(mn,{className:"ml-auto h-4 w-4"})]}));cf.displayName=Mo.displayName;const nl=`z-50 p-1 min-w-[8rem] text-popover-foreground bg-popover border rounded-md shadow-md overflow-hidden ${$r}`,df=d.forwardRef(({className:e,...t},n)=>r.jsx(Po,{ref:n,className:N(nl,e),...t}));df.displayName=Po.displayName;const uf=nl,ff=d.forwardRef(({className:e,...t},n)=>r.jsx(Pd,{children:r.jsx(zo,{ref:n,className:N(uf,e),...t})}));ff.displayName=zo.displayName;const mf="relative px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",pf=d.forwardRef(({className:e,inset:t,...n},a)=>r.jsx(Io,{ref:a,className:N(mf,t&&"pl-8",e),...n}));pf.displayName=Io.displayName;const al="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",hf=d.forwardRef(({className:e,children:t,checked:n,...a},s)=>r.jsxs(Lo,{ref:s,className:N(al,e),checked:n,...a,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(Bo,{children:r.jsx(Wt,{className:"h-4 w-4"})})}),t]}));hf.displayName=Lo.displayName;const xf=d.forwardRef(({className:e,children:t,...n},a)=>r.jsxs(Fo,{ref:a,className:N(al,e),...n,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(Bo,{children:r.jsx(_a,{className:"h-4 w-4 fill-current"})})}),t]}));xf.displayName=Fo.displayName;const gf=d.forwardRef(({className:e,inset:t,...n},a)=>r.jsx(Oo,{ref:a,className:N("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n}));gf.displayName=Oo.displayName;const bf=d.forwardRef(({className:e,...t},n)=>r.jsx(Ho,{ref:n,className:N("-mx-1 my-1 h-px bg-border",e),...t}));bf.displayName=Ho.displayName;const vf="z-10 relative max-w-max flex-1 flex items-center justify-center",yf=d.forwardRef(({className:e,children:t,...n},a)=>r.jsxs(Vo,{ref:a,className:N(vf,e),...n,children:[t,r.jsx(sl,{})]}));yf.displayName=Vo.displayName;const wf="group flex-1list-none flex items-center justify-center space-x-1",jf=d.forwardRef(({className:e,...t},n)=>r.jsx(Wo,{ref:n,className:N(wf,e),...t}));jf.displayName=Wo.displayName;const Nf="group px-4 py-2 w-max h-9 text-sm font-medium bg-background hover:text-accent-foreground hover:bg-accent focus:text-accent-foreground focus:bg-accent focus:outline-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50 disabled:pointer-events-none transition-colors rounded-md inline-flex items-center justify-center",Cf=Ut(Nf),$f="relative ml-1 top-[1px] w-3 h-3 group-data-[state=open]:rotate-180 transition duration-300 ",_f=d.forwardRef(({className:e,children:t,...n},a)=>r.jsxs(Uo,{ref:a,className:N(Cf(),"group",e),...n,children:[t," ",r.jsx(Sa,{className:$f,"aria-hidden":"true"})]}));_f.displayName=Uo.displayName;const Sf="left-0 top-0 w-full md:absolute md:w-auto data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out data-[motion=from-start]:slide-in-from-left-52 data-[motion=from-end]:slide-in-from-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion=to-end]:slide-out-to-right-52",kf=d.forwardRef(({className:e,...t},n)=>r.jsx(Go,{ref:n,className:N(Sf,e),...t}));kf.displayName=Go.displayName;const Rf="relative mt-1.5 w-full h-[var(--radix-navigation-menu-viewport-height)] text-popover-foreground bg-popover data-[state=open]:animate-in data-[state=open]:zoom-in-90 data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 md:w-[var(--radix-navigation-menu-viewport-width)] overflow-hidden origin-top-center border rounded-md shadow",sl=d.forwardRef(({className:e,...t},n)=>r.jsx("div",{className:N("absolute left-0 top-full flex justify-center"),children:r.jsx(Ko,{ref:n,className:N(Rf,e),...t})}));sl.displayName=Ko.displayName;const Ef="z-[1] top-full h-1.5 data-[state=visible]:animate-in data-[state=visible]:fade-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out overflow-hidden flex items-end justify-center",Af=d.forwardRef(({className:e,...t},n)=>r.jsx(qo,{ref:n,className:N(Ef,e),...t,children:r.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Af.displayName=qo.displayName;const Df="peer w-4 h-4 shrink-0 border-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-accent data-[state=checked]:bg-muted-foreground border rounded-sm shadow",Bt=d.forwardRef(({className:e,...t},n)=>r.jsx(Yo,{ref:n,className:N(Df,e),...t,children:r.jsx(zd,{className:N("flex items-center justify-center text-current"),children:r.jsx(Wt,{className:"h-4 w-4"})})}));Bt.displayName=Yo.displayName;const Tf=d.forwardRef(({className:e,...t},n)=>r.jsx(Xo,{className:N("grid gap-2",e),...t,ref:n}));Tf.displayName=Xo.displayName;const Mf="h-4 w-4 aspect-square text-primary border-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 border rounded-full shadow",Pf=d.forwardRef(({className:e,children:t,...n},a)=>r.jsx(Jo,{ref:a,className:N(Mf,e),...n,children:r.jsx(Id,{className:"flex items-center justify-center",children:r.jsx(Wt,{className:"h-3.5 w-3.5 fill-primary"})})}));Pf.displayName=Jo.displayName;const zf=Vd,If=Wd,Lf="px-3 py-2 h-9 w-full text-sm border-input bg-transparent ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 border rounded-md shadow-sm flex items-center justify-between",ol=d.forwardRef(({className:e,children:t,...n},a)=>r.jsxs(Zo,{ref:a,className:N(Lf,e),...n,children:[t,r.jsx(Ld,{asChild:!0,children:r.jsx(Qo,{className:"h-4 w-4 opacity-50"})})]}));ol.displayName=Zo.displayName;const Bf="z-50 relative min-w-[8rem] bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 overflow-hidden border rounded-md shadow-md",Ff="data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",Of="w-full h-[var(--radix-select-trigger-height)] min-w-[var(--radix-select-trigger-width)]",il=d.forwardRef(({className:e,children:t,position:n="popper",...a},s)=>r.jsx(Bd,{children:r.jsx(ei,{ref:s,className:N(Bf,n==="popper"&&Ff,e),position:n,...a,children:r.jsx(Fd,{className:N("p-1",n==="popper"&&Of),children:t})})}));il.displayName=ei.displayName;const Hf=d.forwardRef(({className:e,...t},n)=>r.jsx(ti,{ref:n,className:N("px-2 py-1.5 text-sm font-semibold",e),...t}));Hf.displayName=ti.displayName;const Vf="relative pl-2 pr-8 py-1.5 w-full text-sm focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",ll=d.forwardRef(({className:e,children:t,...n},a)=>r.jsxs(ri,{ref:a,className:N(Vf,e),...n,children:[r.jsx("span",{className:"absolute right-2 h-3.5 w-3.5 flex items-center justify-center",children:r.jsx(Od,{children:r.jsx(Wt,{className:"h-4 w-4"})})}),r.jsx(Hd,{children:t})]}));ll.displayName=ri.displayName;const Wf=d.forwardRef(({className:e,...t},n)=>r.jsx(ni,{ref:n,className:N("-mx-1 my-1 h-px bg-muted",e),...t}));Wf.displayName=ni.displayName;const Pa=Gd,za=Kd,Uf=`p-4 w-72 z-50 text-popover-foreground bg-popover border rounded-md shadow-md outline-none ${$r}`,gn=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...a},s)=>r.jsx(Ud,{children:r.jsx(ai,{ref:s,align:t,sideOffset:n,className:N(Uf,e),...a})}));gn.displayName=ai.displayName;const Gf=si,Kf=pn,qf="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",cl=d.forwardRef(({className:e,...t},n)=>r.jsx(yr,{ref:n,className:N(qf,e),...t}));cl.displayName=yr.displayName;const Yf="fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] z-50 p-6 w-full md:w-full max-w-lg bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] border sm:rounded-lg shadow-lg duration-200 grid gap-4",Xf="absolute right-4 top-4 opacity-70 transition-opacityhover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground ring-offset-background rounded-sm disabled:pointer-events-none",dl=d.forwardRef(({className:e,children:t,...n},a)=>r.jsxs(Kf,{children:[r.jsx(cl,{}),r.jsxs(wr,{ref:a,className:N(Yf,e),...n,children:[t,r.jsxs(ka,{className:Xf,children:[r.jsx(Ra,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));dl.displayName=wr.displayName;const ul=({className:e,...t})=>r.jsx("div",{className:N("text-center sm:text-left flex flex-col space-y-1.5",e),...t});ul.displayName="DialogHeader";const fl=({className:e,...t})=>r.jsx("div",{className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});fl.displayName="DialogFooter";const ml=d.forwardRef(({className:e,...t},n)=>r.jsx(jr,{ref:n,className:N("text-lg font-semibold leading-none tracking-tight",e),...t}));ml.displayName=jr.displayName;const pl=d.forwardRef(({className:e,...t},n)=>r.jsx(Nr,{ref:n,className:N("text-sm text-muted-foreground",e),...t}));pl.displayName=Nr.displayName;var us=1,Jf=.9,Zf=.8,Qf=.17,Mn=.1,Pn=.999,em=.9999,tm=.99,rm=/[\\\/_+.#"@\[\(\{&]/,nm=/[\\\/_+.#"@\[\(\{&]/g,am=/[\s-]/,hl=/[\s-]/g;function sa(e,t,n,a,s,o,i){if(o===t.length)return s===e.length?us:tm;var l=`${s},${o}`;if(i[l]!==void 0)return i[l];for(var u=a.charAt(o),c=n.indexOf(u,s),f=0,m,h,p,g;c>=0;)m=sa(e,t,n,a,c+1,o+1,i),m>f&&(c===s?m*=us:rm.test(e.charAt(c-1))?(m*=Zf,p=e.slice(s,c-1).match(nm),p&&s>0&&(m*=Math.pow(Pn,p.length))):am.test(e.charAt(c-1))?(m*=Jf,g=e.slice(s,c-1).match(hl),g&&s>0&&(m*=Math.pow(Pn,g.length))):(m*=Qf,s>0&&(m*=Math.pow(Pn,c-s))),e.charAt(c)!==t.charAt(o)&&(m*=em)),(mm&&(m=h*Mn)),m>f&&(f=m),c=n.indexOf(u,c+1);return i[l]=f,f}function fs(e){return e.toLowerCase().replace(hl," ")}function sm(e,t){return sa(e,t,fs(e),fs(t),0,0,{})}var om='[cmdk-list-sizer=""]',Zt='[cmdk-group=""]',zn='[cmdk-group-items=""]',im='[cmdk-group-heading=""]',Ia='[cmdk-item=""]',ms=`${Ia}:not([aria-disabled="true"])`,oa="cmdk-item-select",nt="data-value",lm=(e,t)=>sm(e,t),xl=d.createContext(void 0),_r=()=>d.useContext(xl),gl=d.createContext(void 0),La=()=>d.useContext(gl),bl=d.createContext(void 0),vl=d.forwardRef((e,t)=>{let n=d.useRef(null),a=Tt(()=>{var P,F,R;return{search:"",value:(R=(F=e.value)!=null?F:(P=e.defaultValue)==null?void 0:P.toLowerCase())!=null?R:"",filtered:{count:0,items:new Map,groups:new Set}}}),s=Tt(()=>new Set),o=Tt(()=>new Map),i=Tt(()=>new Map),l=Tt(()=>new Set),u=yl(e),{label:c,children:f,value:m,onValueChange:h,filter:p,shouldFilter:g,vimBindings:b=!0,...y}=e,x=d.useId(),w=d.useId(),_=d.useId(),M=vm();Gt(()=>{if(m!==void 0){let P=m.trim().toLowerCase();a.current.value=P,M(6,$),S.emit()}},[m]);let S=d.useMemo(()=>({subscribe:P=>(l.current.add(P),()=>l.current.delete(P)),snapshot:()=>a.current,setState:(P,F,R)=>{var E,B,H;if(!Object.is(a.current[P],F)){if(a.current[P]=F,P==="search")A(),j(),M(1,C);else if(P==="value")if(((E=u.current)==null?void 0:E.value)!==void 0){let D=F??"";(H=(B=u.current).onValueChange)==null||H.call(B,D);return}else R||M(5,$);S.emit()}},emit:()=>{l.current.forEach(P=>P())}}),[]),I=d.useMemo(()=>({value:(P,F)=>{F!==i.current.get(P)&&(i.current.set(P,F),a.current.filtered.items.set(P,K(F)),M(2,()=>{j(),S.emit()}))},item:(P,F)=>(s.current.add(P),F&&(o.current.has(F)?o.current.get(F).add(P):o.current.set(F,new Set([P]))),M(3,()=>{A(),j(),a.current.value||C(),S.emit()}),()=>{i.current.delete(P),s.current.delete(P),a.current.filtered.items.delete(P);let R=T();M(4,()=>{A(),R?.getAttribute("id")===P&&C(),S.emit()})}),group:P=>(o.current.has(P)||o.current.set(P,new Set),()=>{i.current.delete(P),o.current.delete(P)}),filter:()=>u.current.shouldFilter,label:c||e["aria-label"],commandRef:n,listId:x,inputId:_,labelId:w}),[]);function K(P){var F,R;let E=(R=(F=u.current)==null?void 0:F.filter)!=null?R:lm;return P?E(P,a.current.search):0}function j(){if(!n.current||!a.current.search||u.current.shouldFilter===!1)return;let P=a.current.filtered.items,F=[];a.current.filtered.groups.forEach(E=>{let B=o.current.get(E),H=0;B.forEach(D=>{let X=P.get(D);H=Math.max(X,H)}),F.push([E,H])});let R=n.current.querySelector(om);z().sort((E,B)=>{var H,D;let X=E.getAttribute(nt),Q=B.getAttribute(nt);return((H=P.get(Q))!=null?H:0)-((D=P.get(X))!=null?D:0)}).forEach(E=>{let B=E.closest(zn);B?B.appendChild(E.parentElement===B?E:E.closest(`${zn} > *`)):R.appendChild(E.parentElement===R?E:E.closest(`${zn} > *`))}),F.sort((E,B)=>B[1]-E[1]).forEach(E=>{let B=n.current.querySelector(`${Zt}[${nt}="${E[0]}"]`);B?.parentElement.appendChild(B)})}function C(){let P=z().find(R=>!R.ariaDisabled),F=P?.getAttribute(nt);S.setState("value",F||void 0)}function A(){if(!a.current.search||u.current.shouldFilter===!1){a.current.filtered.count=s.current.size;return}a.current.filtered.groups=new Set;let P=0;for(let F of s.current){let R=i.current.get(F),E=K(R);a.current.filtered.items.set(F,E),E>0&&P++}for(let[F,R]of o.current)for(let E of R)if(a.current.filtered.items.get(E)>0){a.current.filtered.groups.add(F);break}a.current.filtered.count=P}function $(){var P,F,R;let E=T();E&&(((P=E.parentElement)==null?void 0:P.firstChild)===E&&((R=(F=E.closest(Zt))==null?void 0:F.querySelector(im))==null||R.scrollIntoView({block:"nearest"})),E.scrollIntoView({block:"nearest"}))}function T(){var P;return(P=n.current)==null?void 0:P.querySelector(`${Ia}[aria-selected="true"]`)}function z(){return Array.from(n.current.querySelectorAll(ms))}function k(P){let F=z()[P];F&&S.setState("value",F.getAttribute(nt))}function L(P){var F;let R=T(),E=z(),B=E.findIndex(D=>D===R),H=E[B+P];(F=u.current)!=null&&F.loop&&(H=B+P<0?E[E.length-1]:B+P===E.length?E[0]:E[B+P]),H&&S.setState("value",H.getAttribute(nt))}function W(P){let F=T(),R=F?.closest(Zt),E;for(;R&&!E;)R=P>0?gm(R,Zt):bm(R,Zt),E=R?.querySelector(ms);E?S.setState("value",E.getAttribute(nt)):L(P)}let G=()=>k(z().length-1),U=P=>{P.preventDefault(),P.metaKey?G():P.altKey?W(1):L(1)},Y=P=>{P.preventDefault(),P.metaKey?k(0):P.altKey?W(-1):L(-1)};return d.createElement("div",{ref:Sr([n,t]),...y,"cmdk-root":"",onKeyDown:P=>{var F;if((F=y.onKeyDown)==null||F.call(y,P),!P.defaultPrevented)switch(P.key){case"n":case"j":{b&&P.ctrlKey&&U(P);break}case"ArrowDown":{U(P);break}case"p":case"k":{b&&P.ctrlKey&&Y(P);break}case"ArrowUp":{Y(P);break}case"Home":{P.preventDefault(),k(0);break}case"End":{P.preventDefault(),G();break}case"Enter":if(!P.nativeEvent.isComposing){P.preventDefault();let R=T();if(R){let E=new Event(oa);R.dispatchEvent(E)}}}}},d.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:ym},c),d.createElement(gl.Provider,{value:S},d.createElement(xl.Provider,{value:I},f)))}),cm=d.forwardRef((e,t)=>{var n,a;let s=d.useId(),o=d.useRef(null),i=d.useContext(bl),l=_r(),u=yl(e),c=(a=(n=u.current)==null?void 0:n.forceMount)!=null?a:i?.forceMount;Gt(()=>l.item(s,i?.id),[]);let f=wl(s,o,[e.value,e.children,o]),m=La(),h=kt(S=>S.value&&S.value===f.current),p=kt(S=>c||l.filter()===!1?!0:S.search?S.filtered.items.get(s)>0:!0);d.useEffect(()=>{let S=o.current;if(!(!S||e.disabled))return S.addEventListener(oa,g),()=>S.removeEventListener(oa,g)},[p,e.onSelect,e.disabled]);function g(){var S,I;b(),(I=(S=u.current).onSelect)==null||I.call(S,f.current)}function b(){m.setState("value",f.current,!0)}if(!p)return null;let{disabled:y,value:x,onSelect:w,forceMount:_,...M}=e;return d.createElement("div",{ref:Sr([o,t]),...M,id:s,"cmdk-item":"",role:"option","aria-disabled":y||void 0,"aria-selected":h||void 0,"data-disabled":y||void 0,"data-selected":h||void 0,onPointerMove:y?void 0:b,onClick:y?void 0:g},e.children)}),dm=d.forwardRef((e,t)=>{let{heading:n,children:a,forceMount:s,...o}=e,i=d.useId(),l=d.useRef(null),u=d.useRef(null),c=d.useId(),f=_r(),m=kt(g=>s||f.filter()===!1?!0:g.search?g.filtered.groups.has(i):!0);Gt(()=>f.group(i),[]),wl(i,l,[e.value,e.heading,u]);let h=d.useMemo(()=>({id:i,forceMount:s}),[s]),p=d.createElement(bl.Provider,{value:h},a);return d.createElement("div",{ref:Sr([l,t]),...o,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},n&&d.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),d.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},p))}),um=d.forwardRef((e,t)=>{let{alwaysRender:n,...a}=e,s=d.useRef(null),o=kt(i=>!i.search);return!n&&!o?null:d.createElement("div",{ref:Sr([s,t]),...a,"cmdk-separator":"",role:"separator"})}),fm=d.forwardRef((e,t)=>{let{onValueChange:n,...a}=e,s=e.value!=null,o=La(),i=kt(f=>f.search),l=kt(f=>f.value),u=_r(),c=d.useMemo(()=>{var f;let m=(f=u.commandRef.current)==null?void 0:f.querySelector(`${Ia}[${nt}="${l}"]`);return m?.getAttribute("id")},[l,u.commandRef]);return d.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),d.createElement("input",{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":c,id:u.inputId,type:"text",value:s?e.value:i,onChange:f=>{s||o.setState("search",f.target.value),n?.(f.target.value)}})}),mm=d.forwardRef((e,t)=>{let{children:n,...a}=e,s=d.useRef(null),o=d.useRef(null),i=_r();return d.useEffect(()=>{if(o.current&&s.current){let l=o.current,u=s.current,c,f=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let m=l.offsetHeight;u.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return f.observe(l),()=>{cancelAnimationFrame(c),f.unobserve(l)}}},[]),d.createElement("div",{ref:Sr([s,t]),...a,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:i.listId,"aria-labelledby":i.inputId},d.createElement("div",{ref:o,"cmdk-list-sizer":""},n))}),pm=d.forwardRef((e,t)=>{let{open:n,onOpenChange:a,overlayClassName:s,contentClassName:o,container:i,...l}=e;return d.createElement(qd,{open:n,onOpenChange:a},d.createElement(Yd,{container:i},d.createElement(Xd,{"cmdk-overlay":"",className:s}),d.createElement(Jd,{"aria-label":e.label,"cmdk-dialog":"",className:o},d.createElement(vl,{ref:t,...l}))))}),hm=d.forwardRef((e,t)=>{let n=d.useRef(!0),a=kt(s=>s.filtered.count===0);return d.useEffect(()=>{n.current=!1},[]),n.current||!a?null:d.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),xm=d.forwardRef((e,t)=>{let{progress:n,children:a,...s}=e;return d.createElement("div",{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},d.createElement("div",{"aria-hidden":!0},a))}),Ae=Object.assign(vl,{List:mm,Item:cm,Input:fm,Group:dm,Separator:um,Dialog:pm,Empty:hm,Loading:xm});function gm(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function bm(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function yl(e){let t=d.useRef(e);return Gt(()=>{t.current=e}),t}var Gt=typeof window>"u"?d.useEffect:d.useLayoutEffect;function Tt(e){let t=d.useRef();return t.current===void 0&&(t.current=e()),t}function Sr(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function kt(e){let t=La(),n=()=>e(t.snapshot());return d.useSyncExternalStore(t.subscribe,n,n)}function wl(e,t,n){let a=d.useRef(),s=_r();return Gt(()=>{var o;let i=(()=>{var l;for(let u of n){if(typeof u=="string")return u.trim().toLowerCase();if(typeof u=="object"&&"current"in u)return u.current?(l=u.current.textContent)==null?void 0:l.trim().toLowerCase():a.current}})();s.value(e,i),(o=t.current)==null||o.setAttribute(nt,i),a.current=i}),a}var vm=()=>{let[e,t]=d.useState(),n=Tt(()=>new Map);return Gt(()=>{n.current.forEach(a=>a()),n.current=new Map},[e]),(a,s)=>{n.current.set(a,s),t({})}},ym={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const wm="w-full h-full text-popover-foreground bg-popover overflow-hidden rounded-md flex flex-col",jm=d.forwardRef(({className:e,...t},n)=>r.jsx(Ae,{ref:n,className:N(wm,e),...t}));jm.displayName=Ae.displayName;const Nm="py-3 w-full h-10 text-sm bg-transparent placeholder:text-muted-foreground disabled:opacity-50 disabled:cursor-not-allowed rounded-md outline-none flex",Cm=d.forwardRef(({className:e,...t},n)=>r.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[r.jsx(Zd,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),r.jsx(Ae.Input,{ref:n,className:N(Nm,e),...t})]}));Cm.displayName=Ae.Input.displayName;const $m=d.forwardRef(({className:e,...t},n)=>r.jsx(Ae.List,{ref:n,className:N("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));$m.displayName=Ae.List.displayName;const _m=d.forwardRef((e,t)=>r.jsx(Ae.Empty,{ref:t,className:"py-6 text-sm text-center",...e}));_m.displayName=Ae.Empty.displayName;const Sm="p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden ",km=d.forwardRef(({className:e,...t},n)=>r.jsx(Ae.Group,{ref:n,className:N(Sm,e),...t}));km.displayName=Ae.Group.displayName;const Rm=d.forwardRef(({className:e,...t},n)=>r.jsx(Ae.Separator,{ref:n,className:N("-mx-1 h-px bg-border",e),...t}));Rm.displayName=Ae.Separator.displayName;const Em="relative px-2 py-1.5 text-sm aria-selected:text-accent-foreground aria-selected:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",Am=d.forwardRef(({className:e,...t},n)=>r.jsx(Ae.Item,{ref:n,className:N(Em,e),...t}));Am.displayName=Ae.Item.displayName;/** + * @license lucide-react v0.341.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Dm={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"};/** + * @license lucide-react v0.341.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Tm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),bt=(e,t)=>{const n=d.forwardRef(({color:a="currentColor",size:s=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:l="",children:u,...c},f)=>d.createElement("svg",{ref:f,...Dm,width:s,height:s,stroke:a,strokeWidth:i?Number(o)*24/Number(s):o,className:["lucide",`lucide-${Tm(e)}`,l].join(" "),...c},[...t.map(([m,h])=>d.createElement(m,h)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.341.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Mm=bt("AppWindow",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);/** + * @license lucide-react v0.341.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pm=bt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + * @license lucide-react v0.341.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zm=bt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.341.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Im=bt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** + * @license lucide-react v0.341.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lm=bt("Dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]]);/** + * @license lucide-react v0.341.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bm=bt("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/** + * @license lucide-react v0.341.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jl=bt("Paintbrush",[["path",{d:"M18.37 2.63 14 7l-1.59-1.59a2 2 0 0 0-2.82 0L8 7l9 9 1.59-1.59a2 2 0 0 0 0-2.82L17 10l4.37-4.37a2.12 2.12 0 1 0-3-3Z",key:"m6k5sh"}],["path",{d:"M9 8c-2 3-4 3.5-7 4l8 10c2-1 6-5 6-7",key:"arzq70"}],["path",{d:"M14.5 17.5 4.5 15",key:"s7fvrz"}]]);/** + * @license lucide-react v0.341.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ps=bt("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),Fm="block h-4 w-4 bg-background border-primary/50 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none transition-colors border rounded-full shadow",Nl=d.forwardRef(({className:e,...t},n)=>r.jsxs(oi,{ref:n,className:N("relative w-full touch-none select-none flex items-center",e),...t,children:[r.jsx(Qd,{className:"track relative w-full h-1.5 bg-primary/20 rounded-full grow overflow-hidden",children:r.jsx(eu,{className:"absolute h-full bg-primary"})}),r.jsx(tu,{className:Fm})]}));Nl.displayName=oi.displayName;const Om="peer w-[36px] h-[20px] border-transparent focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background focus-visible:outline-none disabled:opacity-50 disabled:cursor-not-allowed data-[state=checked]:bg-primary data-[state=unchecked]:bg-input transition-colors border-2 rounded-full shadow-sm cursor-pointer shrink-0 inline-flex items-center",Hm="block w-4 h-4 bg-background data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0 transition-transform pointer-events-none ring-0 rounded-full shadow-lg",Vm=d.forwardRef(({className:e,...t},n)=>r.jsx(ii,{ref:n,className:N(Om,e),...t,children:r.jsx(ru,{className:N(Hm)})}));Vm.displayName=ii.displayName;const Wm="text-sm font-medium hover:text-muted-foreground hover:bg-muted focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none data-[state=on]:text-accent-foreground data-[state=on]:bg-accent transition-colors rounded-md inline-flex items-center justify-center",Um=Ut(Wm,{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground shadow-sm"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),Gm=d.forwardRef(({className:e,variant:t,size:n,...a},s)=>r.jsx(li,{ref:s,className:N(Um({variant:t,size:n,className:e})),...a}));Gm.displayName=li.displayName;const Km=nu,qm=au,Ym=su,Xm="z-50 px-3 py-1.5 text-xs text-primary-foreground bg-primary animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 overflow-hidden rounded-md",Cl=d.forwardRef(({className:e,sideOffset:t=4,...n},a)=>r.jsx(ci,{ref:a,sideOffset:t,className:N(Xm,e),...n}));Cl.displayName=ci.displayName;const bn=iu,$l=lu,Jm=cu,Zm="p-1 h-9 bg-background border rounded-md shadow-sm flex items-center space-x-1",_l=d.forwardRef(({className:e,...t},n)=>r.jsx(di,{ref:n,className:N(Zm,e),...t}));_l.displayName=di.displayName;const Qm="px-3 py-1 text-sm font-medium focus:text-accent-foreground focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",kr=d.forwardRef(({className:e,...t},n)=>r.jsx(ui,{ref:n,className:N(Qm,e),...t}));kr.displayName=ui.displayName;const ep="px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",Ba=d.forwardRef(({className:e,inset:t,children:n,...a},s)=>r.jsxs(fi,{ref:s,className:N(ep,t&&"pl-8",e),...a,children:[n,r.jsx(mn,{className:"ml-auto h-4 w-4"})]}));Ba.displayName=fi.displayName;const tp="p-1 min-w-[8rem] z-50 text-popover-foreground bg-popover data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border rounded-md shadow-lg overflow-hidden",Fa=d.forwardRef(({className:e,...t},n)=>r.jsx(mi,{ref:n,className:N(tp,e),...t}));Fa.displayName=mi.displayName;const rp="p-1 min-w-[12rem] z-50 text-popover-foreground bg-popover data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border rounded-md shadow-md overflow-hidden",Rr=d.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:a=8,...s},o)=>r.jsx(ou,{children:r.jsx(pi,{ref:o,align:t,alignOffset:n,sideOffset:a,className:N(rp,e),...s})}));Rr.displayName=pi.displayName;const np="relative px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm select-none outline-none cursor-default flex items-center",be=d.forwardRef(({className:e,inset:t,...n},a)=>r.jsx(hi,{ref:a,className:N(np,t&&"pl-8",e),...n}));be.displayName=hi.displayName;const Sl="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",ia=d.forwardRef(({className:e,children:t,checked:n,...a},s)=>r.jsxs(xi,{ref:s,className:N(Sl,e),checked:n,...a,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(gi,{children:r.jsx(Wt,{className:"h-4 w-4"})})}),t]}));ia.displayName=xi.displayName;const Jr=d.forwardRef(({className:e,children:t,...n},a)=>r.jsxs(bi,{ref:a,className:N(Sl,e),...n,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(gi,{children:r.jsx(_a,{className:"h-4 w-4 fill-current"})})}),t]}));Jr.displayName=bi.displayName;const ap=d.forwardRef(({className:e,inset:t,...n},a)=>r.jsx(vi,{ref:a,className:N("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));ap.displayName=vi.displayName;const Ke=d.forwardRef(({className:e,...t},n)=>r.jsx(yi,{ref:n,className:N("-mx-1 my-1 h-px bg-muted",e),...t}));Ke.displayName=yi.displayName;const st=({className:e,...t})=>r.jsx("span",{className:N("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});st.displayname="MenubarShortcut";const sp=Ni,kl=d.forwardRef(({className:e,...t},n)=>r.jsx(wi,{ref:n,className:N("border-b",e),...t}));kl.displayName="AccordionItem";const op="flex-1 py-4 text-sm font-medium hover:underline [&[data-state=open]>svg]:rotate-180 transition-all flex items-center justify-between",Rl=d.forwardRef(({className:e,children:t,...n},a)=>r.jsx(ji,{className:"flex",children:r.jsxs(Ea,{ref:a,className:N(op,e),...n,children:[r.jsx("div",{children:t}),r.jsx(Sa,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Rl.displayName=Ea.displayName;const ip="text-sm overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",El=d.forwardRef(({className:e,children:t,...n},a)=>r.jsx(Aa,{ref:a,className:N(ip,e),...n,children:r.jsx("div",{className:"pb-4 pt-0",children:t})}));El.displayName=Aa.displayName;const vn=d.forwardRef(({className:e,children:t,...n},a)=>r.jsxs(Ci,{ref:a,className:N("relative overflow-hidden","[&[data-fixed-width]>div>div]:![display:block]",e),...n,children:[r.jsx(du,{className:"h-full w-full rounded-[inherit]",children:t}),r.jsx(Al,{}),r.jsx(uu,{})]}));vn.displayName=Ci.displayName;const Al=d.forwardRef(({className:e,orientation:t="vertical",...n},a)=>r.jsx($i,{ref:a,orientation:t,className:N("flex touch-none select-none transition-colors",t==="vertical"&&"w-2.5 h-full border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...n,children:r.jsx(fu,{className:N("relative rounded-full bg-border",t==="vertical"&&"flex-1")})}));Al.displayName=$i.displayName;const lp=mu,cp="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",Dl=d.forwardRef(({className:e,...t},n)=>r.jsx(_i,{ref:n,className:N(cp,e),...t}));Dl.displayName=_i.displayName;const dp="fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] w-full md:w-full max-w-lg p-6 z-50 bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] duration-200 border sm:rounded-lg shadow-lg grid gap-4",up=d.forwardRef(({className:e,...t},n)=>r.jsxs(lp,{children:[r.jsx(Dl,{}),r.jsx(Si,{ref:n,className:N(dp,e),...t})]}));up.displayName=Si.displayName;const fp=d.forwardRef(({className:e,...t},n)=>r.jsx(ki,{ref:n,className:N("text-lg font-semibold",e),...t}));fp.displayName=ki.displayName;const mp=d.forwardRef(({className:e,...t},n)=>r.jsx(Ri,{ref:n,className:N("text-sm text-muted-foreground",e),...t}));mp.displayName=Ri.displayName;const pp=d.forwardRef(({className:e,...t},n)=>r.jsx(Ei,{ref:n,className:N(hn(),e),...t}));pp.displayName=Ei.displayName;const hp=d.forwardRef(({className:e,...t},n)=>r.jsx(Ai,{ref:n,className:N(hn({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));hp.displayName=Ai.displayName;const Tl=pn;Tl.displayName=pn.displayName;const xp="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",Ml=d.forwardRef(({className:e,...t},n)=>r.jsx(yr,{ref:n,className:N(xp,e),...t}));Ml.displayName=yr.displayName;const gp="fixed z-50 p-6 bg-background data-[state=open]:animate-in data-[state=open]:duration-500 data-[state=closed]:animate-out data-[state=closed]:duration-300 transition ease-in-out shadow-lg gap-4",bp="inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",vp="inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",yp="inset-y-0 left-0 h-full w-3/4 sm:max-w-sm border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",wp="inset-y-0 right-0 h-full w-3/4 sm:max-w-sm border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",jp=Ut(gp,{variants:{side:{top:bp,bottom:vp,left:yp,right:wp}},defaultVariants:{side:"right"}}),Np="absolute right-4 top-4 opacity-70 hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary ring-offset-background transition-opacity rounded-sm",Cp=d.forwardRef(({side:e="right",className:t,children:n,...a},s)=>r.jsxs(Tl,{children:[r.jsx(Ml,{}),r.jsxs(wr,{ref:s,className:N(jp({side:e}),t),...a,children:[n,r.jsxs(ka,{className:Np,children:[r.jsx(Ra,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Cp.displayName=wr.displayName;const $p=d.forwardRef(({className:e,...t},n)=>r.jsx(jr,{ref:n,className:N("text-lg font-semibold text-foreground",e),...t}));$p.displayName=jr.displayName;const _p=d.forwardRef(({className:e,...t},n)=>r.jsx(Nr,{ref:n,className:N("text-sm text-muted-foreground",e),...t}));_p.displayName=Nr.displayName;const Oa=d.forwardRef(({className:e,...t},n)=>r.jsx("div",{className:"relative w-full overflow-auto",children:r.jsx("table",{ref:n,className:N("w-full caption-bottom text-sm",e),...t})}));Oa.displayName="Table";const Ha=d.forwardRef(({className:e,...t},n)=>r.jsx("thead",{ref:n,className:N("[&_tr]:border-b",e),...t}));Ha.displayName="TableHeader";const Va=d.forwardRef(({className:e,...t},n)=>r.jsx("tbody",{ref:n,className:N("[&_tr:last-child]:border-0",e),...t}));Va.displayName="TableBody";const Pl=d.forwardRef(({className:e,...t},n)=>r.jsx("tfoot",{ref:n,className:N("text-primary-foreground bg-primary font-medium",e),...t}));Pl.displayName="TableFooter";const $t=d.forwardRef(({className:e,...t},n)=>r.jsx("tr",{ref:n,className:N("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));$t.displayName="TableRow";const Pt=d.forwardRef(({className:e,...t},n)=>r.jsx("th",{ref:n,className:N("h-10 px-2 text-left font-medium align-middle text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Pt.displayName="TableHead";const at=d.forwardRef(({className:e,...t},n)=>r.jsx("td",{ref:n,className:N("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));at.displayName="TableCell";const zl=d.forwardRef(({className:e,...t},n)=>r.jsx("caption",{ref:n,className:N("mt-4 text-sm text-muted-foreground",e),...t}));zl.displayName="TableCaption";const Ze=pu,Sp="p-1 h-9 text-muted-foreground bg-muted rounded-lg inline-flex items-center justify-center",yn="h-auto justify-normal flex-wrap",qe=d.forwardRef(({className:e,...t},n)=>r.jsx(Di,{ref:n,className:N(Sp,e),...t}));qe.displayName=Di.displayName;const kp="px-3 py-1 text-sm font-medium whitespace-nowrapfocus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none data-[state=active]:text-foreground data-[state=active]:bg-background data-[state=active]:shadow ring-offset-background transition-all rounded-md inline-flex items-center justify-center",ee=d.forwardRef(({className:e,...t},n)=>r.jsx(Ti,{ref:n,className:N(kp,e),...t}));ee.displayName=Ti.displayName;const Rp="mt-2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none ring-offset-background",te=d.forwardRef(({className:e,...t},n)=>r.jsx(Mi,{ref:n,className:N(Rp,e),...t}));te.displayName=Mi.displayName;const Ep=`z-50 p-4 w-64 text-popover-foreground bg-popover border rounded-md shadow-md outline-none ${$r}`,Ap=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...a},s)=>r.jsx(Pi,{ref:s,align:t,sideOffset:n,className:N(Ep,e),...a}));Ap.displayName=Pi.displayName;const wn=d.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:N("rounded-xl border bg-card text-card-foreground shadow",e),...t}));wn.displayName="Card";const Wa=d.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:N("flex flex-col space-y-1.5 p-6",e),...t}));Wa.displayName="CardHeader";const Ua=d.forwardRef(({className:e,...t},n)=>r.jsx("h3",{ref:n,className:N("font-semibold leading-none tracking-tight",e),...t}));Ua.displayName="CardTitle";const Il=d.forwardRef(({className:e,...t},n)=>r.jsx("p",{ref:n,className:N("text-sm text-muted-foreground",e),...t}));Il.displayName="CardDescription";const jn=d.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:N("p-6 pt-0",e),...t}));jn.displayName="CardContent";const Dp=d.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:N("flex items-center p-6 pt-0",e),...t}));Dp.displayName="CardFooter";function In({className:e,...t}){return r.jsx("div",{className:N("animate-pulse rounded-md bg-primary/10",e),...t})}const Tp=d.forwardRef(({className:e,value:t,...n},a)=>r.jsx(zi,{ref:a,className:N("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:r.jsx(hu,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Tp.displayName=zi.displayName;var cr=function(){return cr=Object.assign||function(t){for(var n,a=1,s=arguments.length;a({...t,children:t.children?Bl(t.children):void 0}))}function zt(e,t){if(t&&e){!Array.isArray(e)&&(e=[e]);for(const n of e){if(n.id===t)return n;if(n.children){const a=zt(n.children,t);if(a)return a}}}}function Hp(e,t,n){const a=[];return t&&s(e,t),a;function s(o,i){if(o)if(o instanceof Array)for(let l=0;l({id:i.dataset.treeId,el:i}));if(!s.length)return;if(t.preventDefault(),t.stopPropagation(),!n)return s[0].id;const o=s.findIndex(i=>i.id===n);if(o!==-1)switch(t.key){case"ArrowDown":case"ArrowUp":{const i=t.key==="ArrowDown"?o+1:o-1;if(i>=0&&inew Proxy(e,t);const ca=Object.getPrototypeOf,da=new WeakMap,Fl=e=>e&&(da.has(e)?da.get(e):ca(e)===Object.prototype||ca(e)===Array.prototype),sn=e=>typeof e=="object"&&e!==null,Gp=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(ca(e),t)},Ka=e=>e[Ga]||e,Ol=(e,t,n,a)=>{if(!Fl(e))return e;let s=a&&a.get(e);if(!s){const u=Ka(e);s=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(f=>!f.configurable&&!f.writable))(u)?[u,Gp(u)]:[u],a?.set(e,s)}const[o,i]=s;let l=n&&n.get(o);return l&&l[1].f===!!i||(l=((u,c)=>{const f={f:c};let m=!1;const h=(g,b)=>{if(!m){let y=f[er].get(u);if(y||(y={},f[er].set(u,y)),g===dr)y[dr]=!0;else{let x=y[g];x||(x=new Set,y[g]=x),x.add(b)}}},p={get:(g,b)=>b===Ga?u:(h("k",b),Ol(Reflect.get(g,b),f[er],f.c,f.t)),has:(g,b)=>b===Wp?(m=!0,f[er].delete(u),!0):(h("h",b),Reflect.has(g,b)),getOwnPropertyDescriptor:(g,b)=>(h("o",b),Reflect.getOwnPropertyDescriptor(g,b)),ownKeys:g=>(h(dr),Reflect.ownKeys(g))};return c&&(p.set=p.deleteProperty=()=>!1),[p,f]})(o,!!i),l[1].p=Up(i||o,l[0]),n&&n.set(o,l)),l[1][er]=t,l[1].c=n,l[1].t=a,l[1].p},Hl=(e,t,n,a,s=Object.is)=>{if(s(e,t))return!1;if(!sn(e)||!sn(t))return!0;const o=n.get(Ka(e));if(!o)return!0;if(a){const l=a.get(e);if(l&&l.n===t)return l.g;a.set(e,{n:t,g:!1})}let i=null;try{for(const l of o.h||[])if(i=Reflect.has(e,l)!==Reflect.has(t,l),i)return i;if(o[dr]===!0){if(i=((l,u)=>{const c=Reflect.ownKeys(l),f=Reflect.ownKeys(u);return c.length!==f.length||c.some((m,h)=>m!==f[h])})(e,t),i)return i}else for(const l of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,l)!=!!Reflect.getOwnPropertyDescriptor(t,l),i)return i;for(const l of o.k||[])if(i=Hl(e[l],t[l],n,a,s),i)return i;return i===null&&(i=!0),i}finally{a&&a.set(e,{n:t,g:i})}},Kp=e=>Fl(e)&&e[Ga]||null,xs=(e,t=!0)=>{da.set(e,t)},qp=(e,t,n)=>{const a=[],s=new WeakSet,o=(i,l)=>{if(s.has(i))return;sn(i)&&s.add(i);const u=sn(i)&&t.get(Ka(i));if(u){var c,f;if((c=u.h)==null||c.forEach(h=>{const p=`:has(${String(h)})`;a.push(l?[...l,p]:[p])}),u[dr]===!0){const h=":ownKeys";a.push(l?[...l,h]:[h])}else{var m;(m=u.o)==null||m.forEach(h=>{const p=`:hasOwn(${String(h)})`;a.push(l?[...l,p]:[p])})}(f=u.k)==null||f.forEach(h=>{n&&!("value"in(Object.getOwnPropertyDescriptor(i,h)||{}))||o(i[h],l?[...l,h]:[h])})}else l&&a.push(l)};return o(e),a};var on={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Ln=e=>typeof e=="object"&&e!==null,pt=new WeakMap,Pr=new WeakSet,Yp=(e=Object.is,t=(c,f)=>new Proxy(c,f),n=c=>Ln(c)&&!Pr.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),a=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},s=new WeakMap,o=(c,f,m=a)=>{const h=s.get(c);if(h?.[0]===f)return h[1];const p=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return xs(p,!0),s.set(c,[f,p]),Reflect.ownKeys(c).forEach(g=>{if(Object.getOwnPropertyDescriptor(p,g))return;const b=Reflect.get(c,g),{enumerable:y}=Reflect.getOwnPropertyDescriptor(c,g),x={value:b,enumerable:y,configurable:!0};if(Pr.has(b))xs(b,!1);else if(b instanceof Promise)delete x.value,x.get=()=>m(b);else if(pt.has(b)){const[w,_]=pt.get(b);x.value=o(w,_(),m)}Object.defineProperty(p,g,x)}),Object.preventExtensions(p)},i=new WeakMap,l=[1,1],u=c=>{if(!Ln(c))throw new Error("object required");const f=i.get(c);if(f)return f;let m=l[0];const h=new Set,p=(C,A=++l[0])=>{m!==A&&(m=A,h.forEach($=>$(C,A)))};let g=l[1];const b=(C=++l[1])=>(g!==C&&!h.size&&(g=C,x.forEach(([A])=>{const $=A[1](C);$>m&&(m=$)})),m),y=C=>(A,$)=>{const T=[...A];T[1]=[C,...T[1]],p(T,$)},x=new Map,w=(C,A)=>{if((on?"production":void 0)!=="production"&&x.has(C))throw new Error("prop listener already exists");if(h.size){const $=A[3](y(C));x.set(C,[A,$])}else x.set(C,[A])},_=C=>{var A;const $=x.get(C);$&&(x.delete(C),(A=$[1])==null||A.call($))},M=C=>(h.add(C),h.size===1&&x.forEach(([$,T],z)=>{if((on?"production":void 0)!=="production"&&T)throw new Error("remove already exists");const k=$[3](y(z));x.set(z,[$,k])}),()=>{h.delete(C),h.size===0&&x.forEach(([$,T],z)=>{T&&(T(),x.set(z,[$]))})}),S=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),K=t(S,{deleteProperty(C,A){const $=Reflect.get(C,A);_(A);const T=Reflect.deleteProperty(C,A);return T&&p(["delete",[A],$]),T},set(C,A,$,T){const z=Reflect.has(C,A),k=Reflect.get(C,A,T);if(z&&(e(k,$)||i.has($)&&e(k,i.get($))))return!0;_(A),Ln($)&&($=Kp($)||$);let L=$;if($ instanceof Promise)$.then(W=>{$.status="fulfilled",$.value=W,p(["resolve",[A],W])}).catch(W=>{$.status="rejected",$.reason=W,p(["reject",[A],W])});else{!pt.has($)&&n($)&&(L=u($));const W=!Pr.has(L)&&pt.get(L);W&&w(A,W)}return Reflect.set(C,A,L,T),p(["set",[A],$,k]),!0}});i.set(c,K);const j=[S,b,o,M];return pt.set(K,j),Reflect.ownKeys(c).forEach(C=>{const A=Object.getOwnPropertyDescriptor(c,C);"value"in A&&(K[C]=c[C],delete A.value,delete A.writable),Object.defineProperty(S,C,A)}),K})=>[u,pt,Pr,e,t,n,a,s,o,i,l],[Xp]=Yp();function Er(e={}){return Xp(e)}function Nn(e,t,n){const a=pt.get(e);(on?"production":void 0)!=="production"&&!a&&console.warn("Please use proxy object");let s;const o=[],i=a[3];let l=!1;const c=i(f=>{if(o.push(f),n){t(o.splice(0));return}s||(s=Promise.resolve().then(()=>{s=void 0,l&&t(o.splice(0))}))});return l=!0,()=>{l=!1,c()}}function gs(e,t){const n=pt.get(e);(on?"production":void 0)!=="production"&&!n&&console.warn("Please use proxy object");const[a,s,o]=n;return o(a,s(),t)}var Vl={exports:{}},Wl={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ft=d;function Jp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zp=typeof Object.is=="function"?Object.is:Jp,Qp=Ft.useState,eh=Ft.useEffect,th=Ft.useLayoutEffect,rh=Ft.useDebugValue;function nh(e,t){var n=t(),a=Qp({inst:{value:n,getSnapshot:t}}),s=a[0].inst,o=a[1];return th(function(){s.value=n,s.getSnapshot=t,Bn(s)&&o({inst:s})},[e,n,t]),eh(function(){return Bn(s)&&o({inst:s}),e(function(){Bn(s)&&o({inst:s})})},[e]),rh(n),n}function Bn(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zp(e,n)}catch{return!0}}function ah(e,t){return t()}var sh=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ah:nh;Wl.useSyncExternalStore=Ft.useSyncExternalStore!==void 0?Ft.useSyncExternalStore:sh;Vl.exports=Wl;var oh=Vl.exports;const ih=xu(oh);var lh={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{use:bs}=v,{useSyncExternalStore:ch}=ih,dh=(e,t)=>{const n=d.useRef();d.useEffect(()=>{n.current=qp(e,t,!0)}),d.useDebugValue(n.current)},uh=new WeakMap;function it(e,t){const n=t?.sync,a=d.useRef(),s=d.useRef();let o=!0;const i=ch(d.useCallback(c=>{const f=Nn(e,c,n);return c(),f},[e,n]),()=>{const c=gs(e,bs);try{if(!o&&a.current&&s.current&&!Hl(a.current,c,s.current,new WeakMap))return a.current}catch{}return c},()=>gs(e,bs));o=!1;const l=new WeakMap;d.useEffect(()=>{a.current=i,s.current=l}),(lh?"production":void 0)!=="production"&&dh(i,l);const u=d.useMemo(()=>new WeakMap,[]);return Ol(i,l,u,uh)}function fh(e,t){var n=d.useRef(null),a=d.useRef(null);a.current=t;var s=d.useRef(null);d.useEffect(function(){o()});var o=d.useCallback(function(){var i=s.current,l=a.current,u=i||(l?l instanceof Element?l:l.current:null);n.current&&n.current.element===u&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:u,subscriber:e,cleanup:u?e(u):void 0})},[e]);return d.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),d.useCallback(function(i){s.current=i,o()},[o])}function vs(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function mh(e){e===void 0&&(e={});var t=e.onResize,n=d.useRef(void 0);n.current=t;var a=e.round||Math.round,s=d.useRef(),o=d.useState({width:void 0,height:void 0}),i=o[0],l=o[1],u=d.useRef(!1);d.useEffect(function(){return u.current=!1,function(){u.current=!0}},[]);var c=d.useRef({width:void 0,height:void 0}),f=fh(d.useCallback(function(m){return(!s.current||s.current.box!==e.box||s.current.round!==a)&&(s.current={box:e.box,round:a,instance:new ResizeObserver(function(h){var p=h[0],g=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",b=vs(p,g,"inlineSize"),y=vs(p,g,"blockSize"),x=b?a(b):void 0,w=y?a(y):void 0;if(c.current.width!==x||c.current.height!==w){var _={width:x,height:w};c.current.width=x,c.current.height=w,n.current?n.current(_):u.current||l(_)}})}),s.current.instance.observe(m,{box:e.box}),function(){s.current&&s.current.instance.unobserve(m)}},[e.box,a]),e.ref);return d.useMemo(function(){return{ref:f,width:i.width,height:i.height}},[f,i.width,i.height])}const ph="px-2 before:absolute before:left-0 before:w-full before:h-[1.75rem] before:bg-muted/80 before:opacity-0 hover:before:opacity-100 before:-z-10 ",hh="text-accent-foreground dark:before:border-0 before:bg-accent before:opacity-100 before:border-l-2 before:border-l-accent-foreground/50 ",xh="shrink-0 mr-2 w-4 h-4 text-accent-foreground/50",gh="px-2 py-1 r1elative before:absolute before:left-0 before:right-1 before:w-full before:h-[1.75rem] before:bg-muted/80 before:opacity-0 hover:before:opacity-100 before:-z-10 cursor-pointer flex items-center ",bh="text-accent-foreground dark:before:border-0 before:bg-accent before:opacity-100 before:border-l-2 before:border-l-accent-foreground/50 ",vh="shrink-0 mr-2 w-4 h-4 text-accent-foreground/50",yh=d.forwardRef(({data:e,initialSelectedItemId:t,onSelectChange:n,expandAll:a,IconForFolder:s,IconForItem:o,arrowFirst:i,hideFolderIcon:l,className:u,...c},f)=>{const[m]=d.useState(()=>Er({selectedId:void 0})),h=d.useMemo(()=>{const w=Hp(e,t,a),_=zt(e,m.selectedId);_&&(_.state.selected=!1);const M=zt(e,w[w.length-1]);return M&&(M.state.selected=!0,m.selectedId=M.id),w},[e,t,a]),p=d.useCallback((w,_)=>{if(w.stopPropagation(),m.selectedId){const M=zt(e,m.selectedId);M&&(M.state.selected=!1)}_?(_.state.selected=!_.state.selected,m.selectedId=_.id):m.selectedId=void 0,n?.(_)},[m,n]),g=d.useRef(null),{ref:b,width:y,height:x}=mh();return r.jsx("div",{ref:w=>{b(w),g.current=w},className:N("_overflow-hidden",u),tabIndex:0,onKeyDown:w=>{const _=Vp(g.current,w,m.selectedId);_&&p(w,zt(e,_))},children:r.jsx(vn,{className:"tree-scroll",style:{width:y,height:x},onClick:w=>p(w,void 0),children:r.jsx("div",{className:"relative z-0 px-2 py-1",children:r.jsx(Ul,{ref:f,data:e,handleSelectChange:p,expandedItemIds:h,IconForFolder:s,IconForItem:o,arrowFirst:i,hideFolderIcon:l,...c})})})})}),Ul=d.forwardRef(({className:e,data:t,handleSelectChange:n,expandedItemIds:a,IconForFolder:s,IconForItem:o,arrowFirst:i,hideFolderIcon:l,...u},c)=>r.jsx("div",{ref:c,role:"tree",className:e,...u,children:r.jsx("ul",{children:t instanceof Array?t.map(f=>r.jsx("li",{children:f.children?r.jsx(Ni,{type:"multiple",defaultValue:a,children:r.jsxs(wi,{value:f.id,"data-tree-id":f.id,"data-tree-folder":Fp,children:[r.jsx(Gl,{item:f,Icon:s,arrowFirst:i,hideFolderIcon:l,onClick:m=>n(m,f)}),r.jsx(ql,{className:"pl-6",children:r.jsx(Ul,{data:f.children,handleSelectChange:n,expandedItemIds:a,IconForFolder:s,IconForItem:o,arrowFirst:i,hideFolderIcon:l})})]})}):r.jsx(ua,{item:f,onClick:m=>n(m,f),Icon:o})},f.id)):r.jsx("li",{children:r.jsx(ua,{item:t,onClick:f=>n(f,t),Icon:o})})})})),ua=d.forwardRef(({className:e,item:t,Icon:n,...a},s)=>{const{selected:o}=it(t.state);return r.jsx("div",{ref:s,className:N(gh,e,o&&bh),"data-tree-id":t.id,...a,children:r.jsx(Yl,{item:t,Icon:n,classes:vh,hideFolderIcon:!1})})});ua.displayName="Tree.Leaf";const Gl=d.forwardRef(({className:e,item:t,Icon:n,arrowFirst:a=!0,hideFolderIcon:s,...o},i)=>{const{selected:l}=it(t.state);return r.jsx(Kl,{className:N(ph,l&&hh),"data-tree-folder-trigger":Op,arrowFirst:a,ref:i,...o,children:r.jsx(Yl,{item:t,Icon:n,hideFolderIcon:s,classes:xh})})});Gl.displayName="Tree.Folder";const Kl=d.forwardRef(({className:e,children:t,arrowFirst:n,...a},s)=>{const o=r.jsx(Im,{className:de("shrink-0 ml-auto h-4 w-4 text-accent-foreground/50 transition-transform duration-200",n&&"mr-2")});return r.jsx(ji,{children:r.jsx(Ea,{asChild:!0,className:N("flex-1 py-1 w-full transition-all outline-none cursor-pointer flex items-center",n?"first:[&[data-state=open]>svg]:rotate-90":"last:[&[data-state=open]>svg]:rotate-90",e),ref:s,...a,children:r.jsxs("div",{children:[n&&r.jsx(r.Fragment,{children:o}),t,!n&&r.jsx(r.Fragment,{children:o})]})})})});Kl.displayName="Tree.Folder.Trigger";const ql=d.forwardRef(({className:e,children:t,...n},a)=>r.jsx(Aa,{ref:a,className:N("text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down transition-all overflow-hidden",e),...n,children:r.jsx("div",{children:t})}));ql.displayName="Tree.Folder.Content";function Yl({item:e,Icon:t,classes:n,hideFolderIcon:a}){return r.jsxs(r.Fragment,{children:[e.icon&&r.jsx(e.icon,{className:n,"aria-hidden":"true"}),!e.icon&&t&&!a&&r.jsx(t,{className:n,"aria-hidden":"true"}),r.jsx("span",{className:"flex-grow text-sm truncate",children:e.name})]})}function Xl(e,t,n=""){if(!t)return e;const a={...e};for(const s in t){const o=t[s];if(o==null)continue;const i=a[s];if(i==null){a[s]=o;continue}if(Array.isArray(i)||Array.isArray(o)){a[s]=[...ws(i??[]),...ws(o??[])];continue}if(ys(i)&&ys(o)){a[s]=Xl(i,o,n?`${n}.${s}`:s);continue}a[s]=o}return a}function ys(e){return Object.prototype.toString.call(e)==="[object Object]"}function ws(e){return Array.isArray(e)?e:[e]}const wh={splitterPos:30,arrowFirst:!0,hideFolderIcon:!0},jh={positions:{}},Nh={activeDemoAccordion:"60"},js={theme:"light",demosState:Nh,treeState:wh,resisablesState:jh,xArrowsState:Su},Jl="shadcn-tv-app-settings",ce=Er(Ch());function Ch(){const e=localStorage.getItem(Jl);let t=js;if(e)try{t=JSON.parse(e)}catch{}const n=Xl(js,t);return _u(n.xArrowsState),n}Ui(ce.theme);Nn(ce,()=>{Ui(ce.theme)});const $h=Gi(()=>localStorage.setItem(Jl,JSON.stringify(ce)),400);Nn(ce,$h);function _h({className:e,title:t,...n}){return r.jsxs("svg",{className:de("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",...n,children:[t&&r.jsx("title",{children:t}),r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"})]})}function Sh({className:e,title:t,...n}){return r.jsxs("svg",{className:de("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",...n,children:[t&&r.jsx("title",{children:t}),r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})]})}function kh({className:e,title:t,...n}){return r.jsxs("svg",{className:de("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[t&&r.jsx("title",{children:t}),r.jsx("path",{d:"M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4"}),r.jsx("path",{d:"M12 2v2"}),r.jsx("path",{d:"M12 20v2"}),r.jsx("path",{d:"m4.9 4.9 1.4 1.4"}),r.jsx("path",{d:"m17.7 17.7 1.4 1.4"}),r.jsx("path",{d:"M2 12h2"}),r.jsx("path",{d:"M20 12h2"}),r.jsx("path",{d:"m6.3 17.7-1.4 1.4"}),r.jsx("path",{d:"m19.1 4.9-1.4 1.4"})]})}function Rh({title:e,...t}){return r.jsxs("svg",{viewBox:"0 0 21 21",strokeLinecap:"round",fill:"none",stroke:"currentColor",strokeWidth:1.2,...t,children:[e&&r.jsx("title",{children:e}),r.jsx("path",{d:"M4.5 6.5h12"}),r.jsx("path",{d:"M4.498 10.5h11.997"}),r.jsx("path",{d:"M4.5 14.5h11.995"})]})}function Eh({title:e,...t}){return r.jsxs("svg",{viewBox:"0 0 422 422",strokeLinecap:"round",fill:"none",stroke:"currentColor",strokeWidth:1.2,...t,children:[e&&r.jsx("title",{children:e}),r.jsx("path",{d:"M364.35 116.86h-32.97v-27a8 8 0 0 0-8-8h-22V8a8 8 0 0 0-8-8h-215a8 8 0 0 0-8 8v73.86h-22a8 8 0 0 0-8 8v27h-13.3a8 8 0 0 0 0 16h13.3v27a8 8 0 0 0 8 8h22V293a8 8 0 0 0 8 8h44.5v13a8 8 0 0 0 8 8h17v92a8 8 0 0 0 8 8h60a8 8 0 0 0 8-8v-92h17a8 8 0 0 0 8-8v-13h44.5a8 8 0 0 0 8-8v-64.05l69.28-11.48a38.45 38.45 0 0 0 32.26-38.06v-23.98a38.62 38.62 0 0 0-38.57-38.57zM86.38 16h199v65.86h-199V16zm121.5 390h-44v-84h44v84zm25-100h-94v-24h94v24zm52.5-21h-36.5v-11a8 8 0 0 0-8-8h-47v-.08a22.5 22.5 0 0 1 18.88-22.27l72.62-12.04V285zm0-69.61-75.23 12.48a38.45 38.45 0 0 0-32.27 38.05v.08h-47a8 8 0 0 0-8 8v11h-36.5V167.86h27.7v69.64a8 8 0 0 0 16 0v-69.64h39V201a8 8 0 0 0 16 0v-33.14h100.3v47.53zm-229-63.53v-54h259v54h-259zm330.54 27.55a22.5 22.5 0 0 1-18.88 22.27l-66.66 11.06v-44.88h22a8 8 0 0 0 8-8v-27h32.97a22.6 22.6 0 0 1 22.57 22.57v23.98z"})]})}function Fn({label:e,theme:t,current:n}){return r.jsxs(lr,{className:"grid grid-cols-[16px,1fr] items-center gap-x-2",onClick:()=>ce.theme=t,children:[n===t&&r.jsx(Pm,{className:"size-4"}),r.jsx("div",{className:"col-start-2",children:e})]})}function Ah(){const{theme:e}=it(ce),t=e==="dark",n=e==="system",a=!t&&!n;return r.jsxs("div",{className:"focus-within:ring-1 focus-within:ring-ring rounded-md flex items-center",children:[r.jsxs(pe,{variant:"ghost",size:"xs",tabIndex:-1,className:"py-0 border-y border-l border-input rounded-r-none",onClick:()=>ce.theme=ce.theme==="dark"?"light":"dark",children:[n&&r.jsx(kh,{className:"size-4"}),a&&r.jsx(_h,{className:"size-4"}),t&&r.jsx(Sh,{className:"size-4 p-0.5"})]}),r.jsxs(Ta,{children:[r.jsx(Ma,{asChild:!0,children:r.jsx(pe,{variant:"ghost",size:"xs",className:"px-1 py-0 border border-input rounded-l-none focus-visible:ring-0",children:r.jsx(zm,{className:"size-3"})})}),r.jsxs(xn,{align:"end",children:[r.jsx(Fn,{label:"Light",theme:"light",current:e}),r.jsx(Fn,{label:"Dark",theme:"dark",current:e}),r.jsx(Fn,{label:"System",theme:"system",current:e})]})]})]})}const Dh={theme:"system",setTheme:()=>null};d.createContext(Dh);const{createElement:Ot,createContext:Th,createRef:uj,forwardRef:Zl,useCallback:Te,useContext:Ql,useEffect:_t,useImperativeHandle:ec,useLayoutEffect:Mh,useMemo:Ph,useRef:Ee,useState:ur}=Ii,Ns=Ii.useId,zh=Mh,Cn=Th(null);Cn.displayName="PanelGroupContext";const St=zh,Ih=typeof Ns=="function"?Ns:()=>null;let Lh=0;function qa(e=null){const t=Ih(),n=Ee(e||t||null);return n.current===null&&(n.current=""+Lh++),e??n.current}function tc({children:e,className:t="",collapsedSize:n,collapsible:a,defaultSize:s,forwardedRef:o,id:i,maxSize:l,minSize:u,onCollapse:c,onExpand:f,onResize:m,order:h,style:p,tagName:g="div",...b}){const y=Ql(Cn);if(y===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:w,getPanelSize:_,getPanelStyle:M,groupId:S,isPanelCollapsed:I,reevaluatePanelConstraints:K,registerPanel:j,resizePanel:C,unregisterPanel:A}=y,$=qa(i),T=Ee({callbacks:{onCollapse:c,onExpand:f,onResize:m},constraints:{collapsedSize:n,collapsible:a,defaultSize:s,maxSize:l,minSize:u},id:$,idIsFromProps:i!==void 0,order:h});Ee({didLogMissingDefaultSizeWarning:!1}),St(()=>{const{callbacks:k,constraints:L}=T.current,W={...L};T.current.id=$,T.current.idIsFromProps=i!==void 0,T.current.order=h,k.onCollapse=c,k.onExpand=f,k.onResize=m,L.collapsedSize=n,L.collapsible=a,L.defaultSize=s,L.maxSize=l,L.minSize=u,(W.collapsedSize!==L.collapsedSize||W.collapsible!==L.collapsible||W.maxSize!==L.maxSize||W.minSize!==L.minSize)&&K(T.current,W)}),St(()=>{const k=T.current;return j(k),()=>{A(k)}},[h,$,j,A]),ec(o,()=>({collapse:()=>{x(T.current)},expand:()=>{w(T.current)},getId(){return $},getSize(){return _(T.current)},isCollapsed(){return I(T.current)},isExpanded(){return!I(T.current)},resize:k=>{C(T.current,k)}}),[x,w,_,I,$,C]);const z=M(T.current,s);return Ot(g,{...b,children:e,className:t,id:i,style:{...z,...p},"data-panel":"","data-panel-collapsible":a||void 0,"data-panel-group-id":S,"data-panel-id":$,"data-panel-size":parseFloat(""+z.flexGrow).toFixed(1)})}const rc=Zl((e,t)=>Ot(tc,{...e,forwardedRef:t}));tc.displayName="Panel";rc.displayName="forwardRef(Panel)";let fa=null,Nt=null;function Bh(e,t){if(t){const n=(t&ic)!==0,a=(t&lc)!==0,s=(t&cc)!==0,o=(t&dc)!==0;if(n)return s?"se-resize":o?"ne-resize":"e-resize";if(a)return s?"sw-resize":o?"nw-resize":"w-resize";if(s)return"s-resize";if(o)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Fh(){Nt!==null&&(document.head.removeChild(Nt),fa=null,Nt=null)}function On(e,t){const n=Bh(e,t);fa!==n&&(fa=n,Nt===null&&(Nt=document.createElement("style"),document.head.appendChild(Nt)),Nt.innerHTML=`*{cursor: ${n}!important;}`)}function nc(e){return e.type==="keydown"}function ac(e){return e.type.startsWith("mouse")}function sc(e){return e.type.startsWith("touch")}function $n(e){if(ac(e))return{x:e.clientX,y:e.clientY};if(sc(e)){const t=e.touches[0];if(t&&t.clientX&&t.clientY)return{x:t.clientX,y:t.clientY}}return{x:1/0,y:1/0}}function Oh(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Hh(e,t,n){return n?e.xt.x&&e.yt.y:e.x<=t.x+t.width&&e.x+e.width>=t.x&&e.y<=t.y+t.height&&e.y+e.height>=t.y}function Vh(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:_s(e),b:_s(t)};let a;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),a=e;re(a,"Stacking order can only be calculated for elements with a common ancestor");const s={a:$s(Cs(n.a)),b:$s(Cs(n.b))};if(s.a===s.b){const o=a.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let l=o.length;for(;l--;){const u=o[l];if(u===i.a)return 1;if(u===i.b)return-1}}return Math.sign(s.a-s.b)}const Wh=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Uh(e){const t=getComputedStyle(oc(e)).display;return t==="flex"||t==="inline-flex"}function Gh(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Uh(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Wh.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Cs(e){let t=e.length;for(;t--;){const n=e[t];if(re(n,"Missing node"),Gh(n))return n}return null}function $s(e){return e&&Number(getComputedStyle(e).zIndex)||0}function _s(e){const t=[];for(;e;)t.push(e),e=oc(e);return t}function oc(e){var t;return((t=e.parentNode)===null||t===void 0?void 0:t.host)||e.parentNode}const ic=1,lc=2,cc=4,dc=8,Kh=Oh()==="coarse";let gt=[],_n=!1,ht=new Map,Sn=new Map;const gr=new Set;function qh(e,t,n,a,s){var o;const{ownerDocument:i}=t,l={direction:n,element:t,hitAreaMargins:a,setResizeHandlerState:s},u=(o=ht.get(i))!==null&&o!==void 0?o:0;return ht.set(i,u+1),gr.add(l),ln(),function(){var f;Sn.delete(e),gr.delete(l);const m=(f=ht.get(i))!==null&&f!==void 0?f:1;ht.set(i,m-1),ln(),m===1&&ht.delete(i)}}function zr(e){const{target:t}=e,{x:n,y:a}=$n(e);_n=!0,Ya({target:t,x:n,y:a}),ln(),gt.length>0&&(Xa("down",e),e.preventDefault())}function ct(e){const{x:t,y:n}=$n(e);if(!_n){const{target:a}=e;Ya({target:a,x:t,y:n})}Xa("move",e),uc(),gt.length>0&&e.preventDefault()}function dt(e){const{target:t}=e,{x:n,y:a}=$n(e);Sn.clear(),_n=!1,gt.length>0&&e.preventDefault(),Xa("up",e),Ya({target:t,x:n,y:a}),uc(),ln()}function Ya({target:e,x:t,y:n}){gt.splice(0);let a=null;e instanceof HTMLElement&&(a=e),gr.forEach(s=>{const{element:o,hitAreaMargins:i}=s,l=o.getBoundingClientRect(),{bottom:u,left:c,right:f,top:m}=l,h=Kh?i.coarse:i.fine;if(t>=c-h&&t<=f+h&&n>=m-h&&n<=u+h){if(a!==null&&o!==a&&!o.contains(a)&&!a.contains(o)&&Vh(a,o)>0){let g=a,b=!1;for(;g&&!g.contains(o);){if(Hh(g.getBoundingClientRect(),l,!0)){b=!0;break}g=g.parentElement}if(b)return}gt.push(s)}})}function Hn(e,t){Sn.set(e,t)}function uc(){let e=!1,t=!1;gt.forEach(a=>{const{direction:s}=a;s==="horizontal"?e=!0:t=!0});let n=0;Sn.forEach(a=>{n|=a}),e&&t?On("intersection",n):e?On("horizontal",n):t?On("vertical",n):Fh()}function ln(){ht.forEach((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",dt),n.removeEventListener("mousedown",zr),n.removeEventListener("mouseleave",ct),n.removeEventListener("mousemove",ct),n.removeEventListener("touchmove",ct),n.removeEventListener("touchstart",zr)}),window.removeEventListener("mouseup",dt),window.removeEventListener("touchcancel",dt),window.removeEventListener("touchend",dt),gr.size>0&&(_n?(gt.length>0&&ht.forEach((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",dt),n.addEventListener("mouseleave",ct),n.addEventListener("mousemove",ct),n.addEventListener("touchmove",ct,{passive:!1}))}),window.addEventListener("mouseup",dt),window.addEventListener("touchcancel",dt),window.addEventListener("touchend",dt)):ht.forEach((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("mousedown",zr),n.addEventListener("mousemove",ct),n.addEventListener("touchmove",ct,{passive:!1}),n.addEventListener("touchstart",zr))}))}function Xa(e,t){gr.forEach(n=>{const{setResizeHandlerState:a}=n,s=gt.includes(n);a(e,s,t)})}function re(e,t){if(!e)throw console.error(t),Error(t)}const fc=10;function br(e,t,n=fc){e=parseFloat(e.toFixed(n)),t=parseFloat(t.toFixed(n));const a=e-t;return a===0?0:a>0?1:-1}function Me(e,t,n){return br(e,t,n)===0}function It({panelConstraints:e,panelIndex:t,size:n}){const a=e[t];re(a!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:s=0,collapsible:o,maxSize:i=100,minSize:l=0}=a;if(br(n,l)<0)if(o){const u=(s+l)/2;br(n,u)<0?n=s:n=l}else n=l;return n=Math.min(i,n),n=parseFloat(n.toFixed(fc)),n}function nr({delta:e,layout:t,panelConstraints:n,pivotIndices:a,trigger:s}){if(Me(e,0))return t;const o=[...t],[i,l]=a;re(i!=null,"Invalid first pivot index"),re(l!=null,"Invalid second pivot index");let u=0;if(s==="keyboard"){{const f=e<0?l:i,m=n[f];re(m,`Panel constraints not found for index ${f}`);const{collapsedSize:h=0,collapsible:p,minSize:g=0}=m;if(p){const b=t[f];if(re(b!=null,`Previous layout not found for panel index ${f}`),Me(b,h)){const y=g-b;br(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}{const f=e<0?i:l,m=n[f];re(m,`No panel constraints found for index ${f}`);const{collapsedSize:h=0,collapsible:p,minSize:g=0}=m;if(p){const b=t[f];if(re(b!=null,`Previous layout not found for panel index ${f}`),Me(b,g)){const y=b-h;br(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}}{const f=e<0?1:-1;let m=e<0?l:i,h=0;for(;;){const g=t[m];re(g!=null,`Previous layout not found for panel index ${m}`);const y=It({panelConstraints:n,panelIndex:m,size:100})-g;if(h+=y,m+=f,m<0||m>=n.length)break}const p=Math.min(Math.abs(e),Math.abs(h));e=e<0?0-p:p}{let m=e<0?i:l;for(;m>=0&&m=0))break;e<0?m--:m++}}if(Me(u,0))return t;{const f=e<0?l:i,m=t[f];re(m!=null,`Previous layout not found for panel index ${f}`);const h=m+u,p=It({panelConstraints:n,panelIndex:f,size:h});if(o[f]=p,!Me(p,h)){let g=h-p,y=e<0?l:i;for(;y>=0&&y0?y--:y++}}}const c=o.reduce((f,m)=>m+f,0);return Me(c,100)?o:t}function Yh({layout:e,panelsArray:t,pivotIndices:n}){let a=0,s=100,o=0,i=0;const l=n[0];re(l!=null,"No pivot index found"),t.forEach((m,h)=>{const{constraints:p}=m,{maxSize:g=100,minSize:b=0}=p;h===l?(a=b,s=g):(o+=b,i+=g)});const u=Math.min(s,100-o),c=Math.max(a,100-i),f=e[l];return{valueMax:u,valueMin:c,valueNow:f}}function vr(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function mc(e,t,n=document){const s=vr(e,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===t);return s??null}function pc(e,t,n){const a=mc(e,t,n);return a!=null?[a,a+1]:[-1,-1]}function hc(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;const a=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return a||null}function kn(e,t=document){const n=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return n||null}function Xh(e,t,n,a=document){var s,o,i,l;const u=kn(t,a),c=vr(e,a),f=u?c.indexOf(u):-1,m=(s=(o=n[f])===null||o===void 0?void 0:o.id)!==null&&s!==void 0?s:null,h=(i=(l=n[f+1])===null||l===void 0?void 0:l.id)!==null&&i!==void 0?i:null;return[m,h]}function Jh({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:a,panelDataArray:s,panelGroupElement:o,setLayout:i}){Ee({didWarnAboutMissingResizeHandle:!1}),St(()=>{if(!o)return;const l=vr(n,o);for(let u=0;u{l.forEach((u,c)=>{u.removeAttribute("aria-controls"),u.removeAttribute("aria-valuemax"),u.removeAttribute("aria-valuemin"),u.removeAttribute("aria-valuenow")})}},[n,a,s,o]),_t(()=>{if(!o)return;const l=t.current;re(l,"Eager values not found");const{panelDataArray:u}=l,c=hc(n,o);re(c!=null,`No group found for id "${n}"`);const f=vr(n,o);re(f,`No resize handles found for group id "${n}"`);const m=f.map(h=>{const p=h.getAttribute("data-panel-resize-handle-id");re(p,"Resize handle element has no handle id attribute");const[g,b]=Xh(n,p,u,o);if(g==null||b==null)return()=>{};const y=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const w=u.findIndex(_=>_.id===g);if(w>=0){const _=u[w];re(_,`No panel data found for index ${w}`);const M=a[w],{collapsedSize:S=0,collapsible:I,minSize:K=0}=_.constraints;if(M!=null&&I){const j=nr({delta:Me(M,S)?K-S:S-M,layout:a,panelConstraints:u.map(C=>C.constraints),pivotIndices:pc(n,p,o),trigger:"keyboard"});a!==j&&i(j)}}break}}};return h.addEventListener("keydown",y),()=>{h.removeEventListener("keydown",y)}});return()=>{m.forEach(h=>h())}},[o,e,t,n,a,s,i])}function Ss(e,t){if(e.length!==t.length)return!1;for(let n=0;no.constraints);let a=0,s=100;for(let o=0;o{const o=e[s];re(o,`Panel data not found for index ${s}`);const{callbacks:i,constraints:l,id:u}=o,{collapsedSize:c=0,collapsible:f}=l,m=n[u];if(m==null||a!==m){n[u]=a;const{onCollapse:h,onExpand:p,onResize:g}=i;g&&g(a,m),f&&(h||p)&&(p&&(m==null||m===c)&&a!==c&&p(),h&&(m==null||m!==c)&&a===c&&h())}})}function Ir(e,t){if(e.length!==t.length)return!1;for(let n=0;n{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...s)},t)}}function ks(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function gc(e){return`react-resizable-panels:${e}`}function bc(e){return e.map(t=>{const{constraints:n,id:a,idIsFromProps:s,order:o}=t;return s?a:o?`${o}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function vc(e,t){try{const n=gc(e),a=t.getItem(n);if(a){const s=JSON.parse(a);if(typeof s=="object"&&s!=null)return s}}catch{}return null}function n0(e,t,n){var a,s;const o=(a=vc(e,n))!==null&&a!==void 0?a:{},i=bc(t);return(s=o[i])!==null&&s!==void 0?s:null}function a0(e,t,n,a,s){var o;const i=gc(e),l=bc(t),u=(o=vc(e,s))!==null&&o!==void 0?o:{};u[l]={expandToSizes:Object.fromEntries(n.entries()),layout:a};try{s.setItem(i,JSON.stringify(u))}catch(c){console.error(c)}}function Rs({layout:e,panelConstraints:t}){const n=[...e],a=n.reduce((o,i)=>o+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!Me(a,100))for(let o=0;o(ks(ar),ar.getItem(e)),setItem:(e,t)=>{ks(ar),ar.setItem(e,t)}},Es={};function yc({autoSaveId:e=null,children:t,className:n="",direction:a,forwardedRef:s,id:o=null,onLayout:i=null,keyboardResizeBy:l=null,storage:u=ar,style:c,tagName:f="div",...m}){const h=qa(o),p=Ee(null),[g,b]=ur(null),[y,x]=ur([]),w=Ee({}),_=Ee(new Map),M=Ee(0),S=Ee({autoSaveId:e,direction:a,dragState:g,id:h,keyboardResizeBy:l,onLayout:i,storage:u}),I=Ee({layout:y,panelDataArray:[],panelDataArrayChanged:!1});Ee({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),ec(s,()=>({getId:()=>S.current.id,getLayout:()=>{const{layout:R}=I.current;return R},setLayout:R=>{const{onLayout:E}=S.current,{layout:B,panelDataArray:H}=I.current,D=Rs({layout:R,panelConstraints:H.map(X=>X.constraints)});Ss(B,D)||(x(D),I.current.layout=D,E&&E(D),At(H,D,w.current))}}),[]),St(()=>{S.current.autoSaveId=e,S.current.direction=a,S.current.dragState=g,S.current.id=h,S.current.onLayout=i,S.current.storage=u}),Jh({committedValuesRef:S,eagerValuesRef:I,groupId:h,layout:y,panelDataArray:I.current.panelDataArray,setLayout:x,panelGroupElement:p.current}),_t(()=>{const{panelDataArray:R}=I.current;if(e){if(y.length===0||y.length!==R.length)return;let E=Es[e];E==null&&(E=r0(a0,s0),Es[e]=E);const B=[...R],H=new Map(_.current);E(e,B,H,y,u)}},[e,y,u]),_t(()=>{});const K=Te(R=>{const{onLayout:E}=S.current,{layout:B,panelDataArray:H}=I.current;if(R.constraints.collapsible){const D=H.map(ve=>ve.constraints),{collapsedSize:X=0,panelSize:Q,pivotIndices:ue}=wt(H,R,B);if(re(Q!=null,`Panel size not found for panel "${R.id}"`),Q!==X){_.current.set(R.id,Q);const fe=Mt(H,R)===H.length-1?Q-X:X-Q,ie=nr({delta:fe,layout:B,panelConstraints:D,pivotIndices:ue,trigger:"imperative-api"});Ir(B,ie)||(x(ie),I.current.layout=ie,E&&E(ie),At(H,ie,w.current))}}},[]),j=Te(R=>{const{onLayout:E}=S.current,{layout:B,panelDataArray:H}=I.current;if(R.constraints.collapsible){const D=H.map(fe=>fe.constraints),{collapsedSize:X=0,panelSize:Q,minSize:ue=0,pivotIndices:ve}=wt(H,R,B);if(Q===X){const fe=_.current.get(R.id),ie=fe!=null&&fe>=ue?fe:ue,He=Mt(H,R)===H.length-1?Q-ie:ie-Q,le=nr({delta:He,layout:B,panelConstraints:D,pivotIndices:ve,trigger:"imperative-api"});Ir(B,le)||(x(le),I.current.layout=le,E&&E(le),At(H,le,w.current))}}},[]),C=Te(R=>{const{layout:E,panelDataArray:B}=I.current,{panelSize:H}=wt(B,R,E);return re(H!=null,`Panel size not found for panel "${R.id}"`),H},[]),A=Te((R,E)=>{const{panelDataArray:B}=I.current,H=Mt(B,R);return t0({defaultSize:E,dragState:g,layout:y,panelData:B,panelIndex:H})},[g,y]),$=Te(R=>{const{layout:E,panelDataArray:B}=I.current,{collapsedSize:H=0,collapsible:D,panelSize:X}=wt(B,R,E);return D===!0&&X===H},[]),T=Te(R=>{const{layout:E,panelDataArray:B}=I.current,{collapsedSize:H=0,collapsible:D,panelSize:X}=wt(B,R,E);return re(X!=null,`Panel size not found for panel "${R.id}"`),!D||X>H},[]),z=Te(R=>{const{panelDataArray:E}=I.current;E.push(R),E.sort((B,H)=>{const D=B.order,X=H.order;return D==null&&X==null?0:D==null?-1:X==null?1:D-X}),I.current.panelDataArrayChanged=!0},[]);St(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:R,onLayout:E,storage:B}=S.current,{layout:H,panelDataArray:D}=I.current;let X=null;if(R){const ue=n0(R,D,B);ue&&(_.current=new Map(Object.entries(ue.expandToSizes)),X=ue.layout)}X==null&&(X=e0({panelDataArray:D}));const Q=Rs({layout:X,panelConstraints:D.map(ue=>ue.constraints)});Ss(H,Q)||(x(Q),I.current.layout=Q,E&&E(Q),At(D,Q,w.current))}}),St(()=>{const R=I.current;return()=>{R.layout=[]}},[]);const k=Te(R=>function(B){B.preventDefault();const H=p.current;if(!H)return()=>null;const{direction:D,dragState:X,id:Q,keyboardResizeBy:ue,onLayout:ve}=S.current,{layout:fe,panelDataArray:ie}=I.current,{initialLayout:Xe}=X??{},He=pc(Q,R,H);let le=Qh(B,R,D,X,ue,H);if(le===0)return;const Ie=D==="horizontal";document.dir==="rtl"&&Ie&&(le=-le);const Kt=ie.map(qt=>qt.constraints),Qe=nr({delta:le,layout:Xe??fe,panelConstraints:Kt,pivotIndices:He,trigger:nc(B)?"keyboard":"mouse-or-touch"}),Re=!Ir(fe,Qe);(ac(B)||sc(B))&&M.current!=le&&(M.current=le,Re?Hn(R,0):Ie?Hn(R,le<0?ic:lc):Hn(R,le<0?cc:dc)),Re&&(x(Qe),I.current.layout=Qe,ve&&ve(Qe),At(ie,Qe,w.current))},[]),L=Te((R,E)=>{const{onLayout:B}=S.current,{layout:H,panelDataArray:D}=I.current,X=D.map(Xe=>Xe.constraints),{panelSize:Q,pivotIndices:ue}=wt(D,R,H);re(Q!=null,`Panel size not found for panel "${R.id}"`);const fe=Mt(D,R)===D.length-1?Q-E:E-Q,ie=nr({delta:fe,layout:H,panelConstraints:X,pivotIndices:ue,trigger:"imperative-api"});Ir(H,ie)||(x(ie),I.current.layout=ie,B&&B(ie),At(D,ie,w.current))},[]),W=Te((R,E)=>{const{layout:B,panelDataArray:H}=I.current,{collapsedSize:D=0,collapsible:X}=E,{collapsedSize:Q=0,collapsible:ue,maxSize:ve=100,minSize:fe=0}=R.constraints,{panelSize:ie}=wt(H,R,B);ie!=null&&(X&&ue&&ie===D?D!==Q&&L(R,Q):ieve&&L(R,ve))},[L]),G=Te((R,E)=>{const{direction:B}=S.current,{layout:H}=I.current;if(!p.current)return;const D=kn(R,p.current);re(D,`Drag handle element not found for id "${R}"`);const X=xc(B,E);b({dragHandleId:R,dragHandleRect:D.getBoundingClientRect(),initialCursorPosition:X,initialLayout:H})},[]),U=Te(()=>{b(null)},[]),Y=Te(R=>{const{panelDataArray:E}=I.current,B=Mt(E,R);B>=0&&(E.splice(B,1),delete w.current[R.id],I.current.panelDataArrayChanged=!0)},[]),P=Ph(()=>({collapsePanel:K,direction:a,dragState:g,expandPanel:j,getPanelSize:C,getPanelStyle:A,groupId:h,isPanelCollapsed:$,isPanelExpanded:T,reevaluatePanelConstraints:W,registerPanel:z,registerResizeHandle:k,resizePanel:L,startDragging:G,stopDragging:U,unregisterPanel:Y,panelGroupElement:p.current}),[K,g,a,j,C,A,h,$,T,W,z,k,L,G,U,Y]),F={display:"flex",flexDirection:a==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Ot(Cn.Provider,{value:P},Ot(f,{...m,children:t,className:n,id:o,ref:p,style:{...F,...c},"data-panel-group":"","data-panel-group-direction":a,"data-panel-group-id":h}))}const wc=Zl((e,t)=>Ot(yc,{...e,forwardedRef:t}));yc.displayName="PanelGroup";wc.displayName="forwardRef(PanelGroup)";function Mt(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function wt(e,t,n){const a=Mt(e,t),o=a===e.length-1?[a-1,a]:[a,a+1],i=n[a];return{...t.constraints,panelSize:i,pivotIndices:o}}function o0({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:a}){_t(()=>{if(e||n==null||a==null)return;const s=kn(t,a);if(s==null)return;const o=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const l=s.getAttribute("data-panel-group-id");re(l,`No group element found for id "${l}"`);const u=vr(l,a),c=mc(l,t,a);re(c!==null,`No resize element found for id "${t}"`);const f=i.shiftKey?c>0?c-1:u.length-1:c+1{s.removeEventListener("keydown",o)}},[a,e,t,n])}function jc({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:a,id:s,onDragging:o,style:i={},tabIndex:l=0,tagName:u="div",...c}){const f=Ee(null),m=Ee({onDragging:o});_t(()=>{m.current.onDragging=o});const h=Ql(Cn);if(h===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:p,groupId:g,registerResizeHandle:b,startDragging:y,stopDragging:x,panelGroupElement:w}=h,_=qa(s),[M,S]=ur("inactive"),[I,K]=ur(!1),[j,C]=ur(null),A=Ee({state:M});return St(()=>{A.current.state=M}),_t(()=>{if(n)C(null);else{const T=b(_);C(()=>T)}},[n,_,b]),_t(()=>{var T,z;if(n||j==null)return;const k=f.current;re(k,"Element ref not attached");const L=(W,G,U)=>{if(G)switch(W){case"down":{S("drag"),y(_,U);const{onDragging:Y}=m.current;Y&&Y(!0);break}case"move":{const{state:Y}=A.current;Y!=="drag"&&S("hover"),j(U);break}case"up":{S("hover"),x();const{onDragging:Y}=m.current;Y&&Y(!1);break}}else S("inactive")};return qh(_,k,p,{coarse:(T=a?.coarse)!==null&&T!==void 0?T:15,fine:(z=a?.fine)!==null&&z!==void 0?z:5},L)},[p,n,a,b,_,j,y,x]),o0({disabled:n,handleId:_,resizeHandler:j,panelGroupElement:w}),Ot(u,{...c,children:e,className:t,id:s,onBlur:()=>K(!1),onFocus:()=>K(!0),ref:f,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...i},tabIndex:l,"data-panel-group-direction":p,"data-panel-group-id":g,"data-resize-handle":"","data-resize-handle-active":M==="drag"?"pointer":I?"keyboard":void 0,"data-resize-handle-state":M,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":_})}jc.displayName="PanelResizeHandle";const As=({className:e,...t})=>r.jsx(wc,{className:N("w-full h-full flex data-[panel-group-direction=vertical]:flex-col",e),...t}),Lr=rc,i0="relative w-px bg-border after:absolute after:left-1/2 after:-translate-x-1/2 after:w-1 after:inset-y-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:h-1 [&[data-panel-group-direction=vertical]>div]:rotate-90 flex items-center justify-center ";function Ds({withHandle:e,className:t,...n}){return r.jsx(jc,{className:N(i0,t),...n,children:e&&r.jsx("div",{className:"w-3 h-4 rounded-sm border bg-border flex items-center justify-center z-10",children:r.jsx(gu,{className:"h-2.5 w-2.5"})})})}function l0(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}l0(`html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} +`);var c0=e=>{switch(e){case"success":return f0;case"info":return p0;case"warning":return m0;case"error":return h0;default:return null}},d0=Array(12).fill(0),u0=({visible:e})=>v.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},v.createElement("div",{className:"sonner-spinner"},d0.map((t,n)=>v.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),f0=v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},v.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),m0=v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},v.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),p0=v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},v.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),h0=v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},v.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),x0=()=>{let[e,t]=v.useState(!1);return v.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ma=1,g0=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...a}=e,s=typeof e?.id=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ma++,o=this.toasts.find(l=>l.id===s),i=e.dismissible===void 0?!0:e.dismissible;return o?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...e,id:s,title:n}),{...l,...e,id:s,dismissible:i,title:n}):l):this.addToast({title:n,...a,dismissible:i,id:s}),s},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let a=e instanceof Promise?e:e(),s=n!==void 0;return a.then(o=>{if(o&&typeof o.ok=="boolean"&&!o.ok){s=!1;let i=typeof t.error=="function"?t.error(`HTTP error! status: ${o.status}`):t.error,l=typeof t.description=="function"?t.description(`HTTP error! status: ${o.status}`):t.description;this.create({id:n,type:"error",message:i,description:l})}else if(t.success!==void 0){s=!1;let i=typeof t.success=="function"?t.success(o):t.success,l=typeof t.description=="function"?t.description(o):t.description;this.create({id:n,type:"success",message:i,description:l})}}).catch(o=>{if(t.error!==void 0){s=!1;let i=typeof t.error=="function"?t.error(o):t.error,l=typeof t.description=="function"?t.description(o):t.description;this.create({id:n,type:"error",message:i,description:l})}}).finally(()=>{var o;s&&(this.dismiss(n),n=void 0),(o=t.finally)==null||o.call(t)}),n},this.custom=(e,t)=>{let n=t?.id||ma++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Ue=new g0,b0=(e,t)=>{let n=t?.id||ma++;return Ue.addToast({title:e,...t,id:n}),n},v0=b0,pa=Object.assign(v0,{success:Ue.success,info:Ue.info,warning:Ue.warning,error:Ue.error,custom:Ue.custom,message:Ue.message,promise:Ue.promise,dismiss:Ue.dismiss,loading:Ue.loading}),y0=3,w0="32px",j0=4e3,N0=356,Nc=14,C0=20,$0=200;function _0(...e){return e.filter(Boolean).join(" ")}var S0=e=>{var t,n,a,s,o,i,l;let{invert:u,toast:c,unstyled:f,interacting:m,setHeights:h,visibleToasts:p,heights:g,index:b,toasts:y,expanded:x,removeToast:w,closeButton:_,style:M,cancelButtonStyle:S,actionButtonStyle:I,className:K="",descriptionClassName:j="",duration:C,position:A,gap:$=Nc,loadingIcon:T,expandByDefault:z,classNames:k,icons:L,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:G,cn:U}=e,[Y,P]=v.useState(!1),[F,R]=v.useState(!1),[E,B]=v.useState(!1),[H,D]=v.useState(!1),[X,Q]=v.useState(0),[ue,ve]=v.useState(0),fe=v.useRef(null),ie=v.useRef(null),Xe=b===0,He=b+1<=p,le=c.type,Ie=c.dismissible!==!1,Kt=c.className||"",Qe=c.descriptionClassName||"",Re=v.useMemo(()=>g.findIndex(V=>V.toastId===c.id)||0,[g,c.id]),qt=v.useMemo(()=>{var V;return(V=c.closeButton)!=null?V:_},[c.closeButton,_]),Yt=v.useMemo(()=>c.duration||C||j0,[c.duration,C]),Xt=v.useRef(0),De=v.useRef(0),Jt=v.useRef(0),lt=v.useRef(null),[yt,Tn]=A.split("-"),Tr=v.useMemo(()=>g.reduce((V,J,ae)=>ae>=Re?V:V+J.height,0),[g,Re]),Mr=x0(),q=c.invert||u,Z=le==="loading";De.current=v.useMemo(()=>Re*$+Tr,[Re,Tr]),v.useEffect(()=>{P(!0)},[]),v.useLayoutEffect(()=>{if(!Y)return;let V=ie.current,J=V.style.height;V.style.height="auto";let ae=V.getBoundingClientRect().height;V.style.height=J,ve(ae),h(Se=>Se.find(Ce=>Ce.toastId===c.id)?Se.map(Ce=>Ce.toastId===c.id?{...Ce,height:ae}:Ce):[{toastId:c.id,height:ae,position:c.position},...Se])},[Y,c.title,c.description,h,c.id]);let ne=v.useCallback(()=>{R(!0),Q(De.current),h(V=>V.filter(J=>J.toastId!==c.id)),setTimeout(()=>{w(c)},$0)},[c,w,h,De]);v.useEffect(()=>{if(c.promise&&le==="loading"||c.duration===1/0||c.type==="loading")return;let V,J=Yt;return x||m||G&&Mr?(()=>{if(Jt.current{var ae;(ae=c.onAutoClose)==null||ae.call(c,c),ne()},J)),()=>clearTimeout(V)},[x,m,z,c,Yt,ne,c.promise,le,G,Mr]),v.useEffect(()=>{let V=ie.current;if(V){let J=V.getBoundingClientRect().height;return ve(J),h(ae=>[{toastId:c.id,height:J,position:c.position},...ae]),()=>h(ae=>ae.filter(Se=>Se.toastId!==c.id))}},[h,c.id]),v.useEffect(()=>{c.delete&&ne()},[ne,c.delete]);function oe(){return L!=null&&L.loading?v.createElement("div",{className:"loader","data-visible":le==="loading"},L.loading):T?v.createElement("div",{className:"sonner-loader","data-visible":le==="loading"},T):v.createElement(u0,{visible:le==="loading"})}return v.createElement("li",{"aria-live":c.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:ie,className:U(K,Kt,k?.toast,(t=c?.classNames)==null?void 0:t.toast,k?.default,k?.[le],(n=c?.classNames)==null?void 0:n[le]),"data-sonner-toast":"","data-styled":!(c.jsx||c.unstyled||f),"data-mounted":Y,"data-promise":!!c.promise,"data-removed":F,"data-visible":He,"data-y-position":yt,"data-x-position":Tn,"data-index":b,"data-front":Xe,"data-swiping":E,"data-dismissible":Ie,"data-type":le,"data-invert":q,"data-swipe-out":H,"data-expanded":!!(x||z&&Y),style:{"--index":b,"--toasts-before":b,"--z-index":y.length-b,"--offset":`${F?X:De.current}px`,"--initial-height":z?"auto":`${ue}px`,...M,...c.style},onPointerDown:V=>{Z||!Ie||(fe.current=new Date,Q(De.current),V.target.setPointerCapture(V.pointerId),V.target.tagName!=="BUTTON"&&(B(!0),lt.current={x:V.clientX,y:V.clientY}))},onPointerUp:()=>{var V,J,ae,Se;if(H||!Ie)return;lt.current=null;let Ce=Number(((V=ie.current)==null?void 0:V.style.getPropertyValue("--swipe-amount").replace("px",""))||0),ke=new Date().getTime()-((J=fe.current)==null?void 0:J.getTime()),Et=Math.abs(Ce)/ke;if(Math.abs(Ce)>=C0||Et>.11){Q(De.current),(ae=c.onDismiss)==null||ae.call(c,c),ne(),D(!0);return}(Se=ie.current)==null||Se.style.setProperty("--swipe-amount","0px"),B(!1)},onPointerMove:V=>{var J;if(!lt.current||!Ie)return;let ae=V.clientY-lt.current.y,Se=V.clientX-lt.current.x,Ce=(yt==="top"?Math.min:Math.max)(0,ae),ke=V.pointerType==="touch"?10:2;Math.abs(Ce)>ke?(J=ie.current)==null||J.style.setProperty("--swipe-amount",`${ae}px`):Math.abs(Se)>ke&&(lt.current=null)}},qt&&!c.jsx?v.createElement("button",{"aria-label":W,"data-disabled":Z,"data-close-button":!0,onClick:Z||!Ie?()=>{}:()=>{var V;ne(),(V=c.onDismiss)==null||V.call(c,c)},className:U(k?.closeButton,(a=c?.classNames)==null?void 0:a.closeButton)},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},v.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,c.jsx||v.isValidElement(c.title)?c.jsx||c.title:v.createElement(v.Fragment,null,le||c.icon||c.promise?v.createElement("div",{"data-icon":""},c.promise&&c.type==="loading"&&!c.icon?c.icon||L?.loading||oe():null,c.type!=="loading"?c.icon||L?.[le]||c0(le):null):null,v.createElement("div",{"data-content":""},v.createElement("div",{"data-title":"",className:U(k?.title,(s=c?.classNames)==null?void 0:s.title)},c.title),c.description?v.createElement("div",{"data-description":"",className:U(j,Qe,k?.description,(o=c?.classNames)==null?void 0:o.description)},c.description):null),c.cancel?v.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||S,onClick:V=>{var J;Ie&&(ne(),(J=c.cancel)!=null&&J.onClick&&c.cancel.onClick(V))},className:U(k?.cancelButton,(i=c?.classNames)==null?void 0:i.cancelButton)},c.cancel.label):null,c.action?v.createElement("button",{"data-button":"",style:c.actionButtonStyle||I,onClick:V=>{var J;(J=c.action)==null||J.onClick(V),!V.defaultPrevented&&ne()},className:U(k?.actionButton,(l=c?.classNames)==null?void 0:l.actionButton)},c.action.label):null))};function Ts(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var k0=e=>{let{invert:t,position:n="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:o,className:i,offset:l,theme:u="light",richColors:c,duration:f,style:m,visibleToasts:h=y0,toastOptions:p,dir:g=Ts(),gap:b,loadingIcon:y,icons:x,containerAriaLabel:w="Notifications",pauseWhenPageIsHidden:_,cn:M=_0}=e,[S,I]=v.useState([]),K=v.useMemo(()=>Array.from(new Set([n].concat(S.filter(F=>F.position).map(F=>F.position)))),[S,n]),[j,C]=v.useState([]),[A,$]=v.useState(!1),[T,z]=v.useState(!1),[k,L]=v.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=v.useRef(null),G=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=v.useRef(null),Y=v.useRef(!1),P=v.useCallback(F=>I(R=>R.filter(({id:E})=>E!==F.id)),[]);return v.useEffect(()=>Ue.subscribe(F=>{if(F.dismiss){I(R=>R.map(E=>E.id===F.id?{...E,delete:!0}:E));return}setTimeout(()=>{bu.flushSync(()=>{I(R=>{let E=R.findIndex(B=>B.id===F.id);return E!==-1?[...R.slice(0,E),{...R[E],...F},...R.slice(E+1)]:[F,...R]})})})}),[]),v.useEffect(()=>{if(u!=="system"){L(u);return}u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:F})=>{L(F?"dark":"light")})},[u]),v.useEffect(()=>{S.length<=1&&$(!1)},[S]),v.useEffect(()=>{let F=R=>{var E,B;a.every(H=>R[H]||R.code===H)&&($(!0),(E=W.current)==null||E.focus()),R.code==="Escape"&&(document.activeElement===W.current||(B=W.current)!=null&&B.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[a]),v.useEffect(()=>{if(W.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,Y.current=!1)}},[W.current]),S.length?v.createElement("section",{"aria-label":`${w} ${G}`,tabIndex:-1},K.map((F,R)=>{var E;let[B,H]=F.split("-");return v.createElement("ol",{key:F,dir:g==="auto"?Ts():g,tabIndex:-1,ref:W,className:i,"data-sonner-toaster":!0,"data-theme":k,"data-rich-colors":c,"data-y-position":B,"data-x-position":H,style:{"--front-toast-height":`${((E=j[0])==null?void 0:E.height)||0}px`,"--offset":typeof l=="number"?`${l}px`:l||w0,"--width":`${N0}px`,"--gap":`${Nc}px`,...m},onBlur:D=>{Y.current&&!D.currentTarget.contains(D.relatedTarget)&&(Y.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:D=>{D.target instanceof HTMLElement&&D.target.dataset.dismissible==="false"||Y.current||(Y.current=!0,U.current=D.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{T||$(!1)},onPointerDown:D=>{D.target instanceof HTMLElement&&D.target.dataset.dismissible==="false"||z(!0)},onPointerUp:()=>z(!1)},S.filter(D=>!D.position&&R===0||D.position===F).map((D,X)=>{var Q,ue;return v.createElement(S0,{key:D.id,icons:x,index:X,toast:D,duration:(Q=p?.duration)!=null?Q:f,className:p?.className,descriptionClassName:p?.descriptionClassName,invert:t,visibleToasts:h,closeButton:(ue=p?.closeButton)!=null?ue:o,interacting:T,position:F,style:p?.style,unstyled:p?.unstyled,classNames:p?.classNames,cancelButtonStyle:p?.cancelButtonStyle,actionButtonStyle:p?.actionButtonStyle,removeToast:P,toasts:S.filter(ve=>ve.position==D.position),heights:j.filter(ve=>ve.position==D.position),setHeights:C,expandByDefault:s,gap:b,loadingIcon:y,expanded:A,pauseWhenPageIsHidden:_,cn:M})}))})):null};const R0="group toast group-[.toaster]:text-foreground group-[.toaster]:bg-background group-[.toaster]:border-border group-[.toaster]:shadow-lg ",E0="group-[.toast]:text-muted-foreground",A0="group-[.toast]:text-primary-foreground group-[.toast]:bg-primary ",D0="group-[.toast]:text-muted-foreground group-[.toast]:bg-muted ";function T0(e){return r.jsx(k0,{theme:"system",className:"toaster group",toastOptions:{classNames:{toast:R0,description:E0,actionButton:A0,cancelButton:D0}},...e})}const M0=vu,P0="fixed p-4 top-0 w-full max-h-screen z-[100] sm:right-0 sm:top-auto sm:bottom-0 sm:flex-col md:max-w-[420px] flex flex-col-reverse",Cc=d.forwardRef(({className:e,...t},n)=>r.jsx(Li,{ref:n,className:N(P0,e),...t}));Cc.displayName=Li.displayName;const z0="group relative p-4 pr-6 w-full data-[state=open]:animate-in data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[swipe=end]:animate-out data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[swipe=cancel]:translate-x-0 overflow-hidden pointer-events-auto transition-all border rounded-md shadow-lg flex items-center justify-between space-x-2",I0=Ut(z0,{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),$c=d.forwardRef(({className:e,variant:t,...n},a)=>r.jsx(Bi,{ref:a,className:N(I0({variant:t}),e),...n}));$c.displayName=Bi.displayName;const L0="px-3 h-8 shrink-0 text-sm font-medium bg-transparent hover:bg-secondary focus:ring-1 focus:ring-ring focus:outline-none disabled:opacity-50 disabled:pointer-events-none group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive transition-colors border rounded-md inline-flex items-center justify-center",B0=d.forwardRef(({className:e,...t},n)=>r.jsx(Fi,{ref:n,className:N(L0,e),...t}));B0.displayName=Fi.displayName;const F0="absolute p-1 right-1 top-1 text-foreground/50 opacity-0 group-hover:opacity-100 hover:text-foreground focus:opacity-100 focus:ring-1 focus:outline-none group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 transition-opacity rounded-md",_c=d.forwardRef(({className:e,...t},n)=>r.jsx(Oi,{ref:n,className:N(F0,e),"toast-close":"",...t,children:r.jsx(Ra,{className:"h-4 w-4"})}));_c.displayName=Oi.displayName;const Sc=d.forwardRef(({className:e,...t},n)=>r.jsx(Hi,{ref:n,className:N("text-sm font-semibold [&+div]:text-xs",e),...t}));Sc.displayName=Hi.displayName;const kc=d.forwardRef(({className:e,...t},n)=>r.jsx(Vi,{ref:n,className:N("text-sm opacity-90",e),...t}));kc.displayName=Vi.displayName;const O0=1,H0=1e6;let Vn=0;function V0(){return Vn=(Vn+1)%Number.MAX_SAFE_INTEGER,Vn.toString()}const Wn=new Map,Ms=e=>{if(Wn.has(e))return;const t=setTimeout(()=>{Wn.delete(e),fr({type:"REMOVE_TOAST",toastId:e})},H0);Wn.set(e,t)},W0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,O0)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Ms(n):e.toasts.forEach(a=>{Ms(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===n||n===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Zr=[];let Qr={toasts:[]};function fr(e){Qr=W0(Qr,e),Zr.forEach(t=>{t(Qr)})}function Rc({...e}){const t=V0(),n=s=>fr({type:"UPDATE_TOAST",toast:{...s,id:t}}),a=()=>fr({type:"DISMISS_TOAST",toastId:t});return fr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||a()}}}),{id:t,dismiss:a,update:n}}function U0(){const[e,t]=d.useState(Qr);return d.useEffect(()=>(Zr.push(t),()=>{const n=Zr.indexOf(t);n>-1&&Zr.splice(n,1)}),[e]),{...e,toast:Rc,dismiss:n=>fr({type:"DISMISS_TOAST",toastId:n})}}function G0(){const{toasts:e}=U0();return r.jsxs(M0,{children:[e.map(function({id:t,title:n,description:a,action:s,...o}){return r.jsxs($c,{...o,children:[r.jsxs("div",{className:"grid gap-1",children:[n&&r.jsx(Sc,{children:n}),a&&r.jsx(kc,{children:a})]}),s,r.jsx(_c,{})]},t)}),r.jsx(Cc,{})]})}function K0({className:e,...t}){return r.jsx("nav",{className:N("mx-auto w-full flex justify-center",e),role:"navigation","aria-label":"pagination",...t})}const Ec=d.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,className:N("flex flex-row items-center gap-1",e),...t}));Ec.displayName="Pagination.Content";function mr({className:e,isActive:t,size:n="icon",...a}){return r.jsx("li",{children:r.jsx("a",{className:N(hn({variant:t?"outline":"ghost",size:n}),e),"aria-current":t?"page":void 0,...a})})}function q0({className:e,...t}){return r.jsxs(mr,{className:N("pl-3 gap-1",e),"aria-label":"Go to previous page",size:"default",...t,children:[r.jsx(yu,{className:"w-4 h-4"}),r.jsx("span",{children:"Previous"})]})}function Y0({className:e,...t}){return r.jsxs(mr,{className:N("pr-3 gap-1",e),"aria-label":"Go to next page",size:"default",...t,children:[r.jsx("span",{children:"Next"}),r.jsx(mn,{className:"w-4 h-4"})]})}function X0({className:e,...t}){return r.jsxs("span",{className:N("w-9 h-9 flex items-center justify-center",e),"aria-hidden":!0,...t,children:[r.jsx(Wi,{className:"w-4 h-4"}),r.jsx("span",{className:"sr-only",children:"More pages"})]})}const Ac=d.createContext(null);function Rn(){const e=d.useContext(Ac);if(!e)throw new Error("useCarousel must be used within a ");return e}const Dc=d.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:a,className:s,children:o,...i},l)=>{const[u,c]=Tu({...t,axis:e==="horizontal"?"x":"y"},a),[f,m]=d.useState(!1),[h,p]=d.useState(!1),g=d.useCallback(w=>{w&&(m(w.canScrollPrev()),p(w.canScrollNext()))},[]),b=d.useCallback(()=>c?.scrollPrev(),[c]),y=d.useCallback(()=>c?.scrollNext(),[c]),x=d.useCallback(w=>{w.key==="ArrowLeft"?(w.preventDefault(),b()):w.key==="ArrowRight"&&(w.preventDefault(),y())},[b,y]);return d.useEffect(()=>{!c||!n||n(c)},[c,n]),d.useEffect(()=>{if(c)return g(c),c.on("reInit",g),c.on("select",g),()=>{c.off("select",g)}},[c,g]),r.jsx(Ac.Provider,{value:{carouselRef:u,api:c,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:b,scrollNext:y,canScrollPrev:f,canScrollNext:h},children:r.jsx("div",{ref:l,onKeyDownCapture:x,className:N("relative",s),role:"region","aria-roledescription":"carousel",...i,children:o})})});Dc.displayName="Carousel";const Tc=d.forwardRef(({className:e,...t},n)=>{const{carouselRef:a,orientation:s}=Rn();return r.jsx("div",{ref:a,className:"overflow-hidden",children:r.jsx("div",{ref:n,className:N("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Tc.displayName="Carousel.Content";const Mc=d.forwardRef(({className:e,...t},n)=>{const{orientation:a}=Rn();return r.jsx("div",{ref:n,className:N("shrink-0 grow-0 basis-full min-w-0",a==="horizontal"?"pl-4":"pt-4",e),role:"group","aria-roledescription":"slide",...t})});Mc.displayName="Carousel.Item";const Pc=d.forwardRef(({className:e,variant:t="outline",size:n="icon",...a},s)=>{const{orientation:o,scrollPrev:i,canScrollPrev:l}=Rn();return r.jsxs(pe,{ref:s,variant:t,size:n,className:N("absolute w-8 h-8 rounded-full",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:i,...a,children:[r.jsx(wu,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Pc.displayName="Carousel.Prev";const zc=d.forwardRef(({className:e,variant:t="outline",size:n="icon",...a},s)=>{const{orientation:o,scrollNext:i,canScrollNext:l}=Rn();return r.jsxs(pe,{ref:s,variant:t,size:n,className:N("absolute w-8 h-8 rounded-full",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:i,...a,children:[r.jsx(ju,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Next slide"})]})});zc.displayName="Carousel.Next";var Ic=v.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),Ja=()=>v.useContext(Ic);function J0(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}J0(`[vaul-drawer]{touch-action:none;transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top],.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left],.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top],[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left],[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height, 0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]:after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]:after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]:after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]:after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} +`);var Z0=typeof window<"u"?d.useLayoutEffect:d.useEffect;function ha(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function Q0(){return Za(/^Mac/)}function ex(){return Za(/^iPhone/)}function tx(){return Za(/^iPad/)||Q0()&&navigator.maxTouchPoints>1}function Lc(){return ex()||tx()}function Za(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Un=typeof document<"u"&&window.visualViewport;function Ps(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Bc(e){for(Ps(e)&&(e=e.parentElement);e&&!Ps(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var rx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Br=0,Gn;function nx(e={}){let{isDisabled:t}=e;Z0(()=>{if(!t)return Br++,Br===1&&(Lc()?Gn=sx():Gn=ax()),()=>{Br--,Br===0&&Gn()}},[t])}function ax(){return ha(Fc(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function sx(){let e,t=0,n=m=>{e=Bc(m.target),!(e===document.documentElement&&e===document.body)&&(t=m.changedTouches[0].pageY)},a=m=>{if(!e||e===document.documentElement||e===document.body){m.preventDefault();return}let h=m.changedTouches[0].pageY,p=e.scrollTop,g=e.scrollHeight-e.clientHeight;g!==0&&((p<=0&&h>t||p>=g&&h{let h=m.target;xa(h)&&h!==document.activeElement&&(m.preventDefault(),h.style.transform="translateY(-2000px)",h.focus(),requestAnimationFrame(()=>{h.style.transform=""}))},o=m=>{let h=m.target;xa(h)&&(h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",Un&&(Un.height{zs(h)}):Un.addEventListener("resize",()=>zs(h),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},l=window.pageXOffset,u=window.pageYOffset,c=ha(Fc(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let f=ha(tr(document,"touchstart",n,{passive:!1,capture:!0}),tr(document,"touchmove",a,{passive:!1,capture:!0}),tr(document,"touchend",s,{passive:!1,capture:!0}),tr(document,"focus",o,!0),tr(window,"scroll",i));return()=>{c(),f(),window.scrollTo(l,u)}}function Fc(e,t,n){let a=e.style[t];return e.style[t]=n,()=>{e.style[t]=a}}function tr(e,t,n,a){return e.addEventListener(t,n,a),()=>{e.removeEventListener(t,n,a)}}function zs(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Bc(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let a=n.getBoundingClientRect().top,s=e.getBoundingClientRect().top,o=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;o>i&&(n.scrollTop+=s-a)}e=n.parentElement}}function xa(e){return e instanceof HTMLInputElement&&!rx.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function ox(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ix(...e){return t=>e.forEach(n=>ox(n,t))}function Oc(...e){return d.useCallback(ix(...e),e)}var ut=null;function lx({isOpen:e,modal:t,nested:n,hasBeenOpened:a,preventScrollRestoration:s}){let[o,i]=v.useState(typeof window<"u"?window.location.href:""),l=v.useRef(0),u=v.useCallback(()=>{if(ut===null&&e){ut={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:f,innerHeight:m}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-l.current}px`,document.body.style.left=`${-f}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let h=m-window.innerHeight;h&&l.current>=m&&(document.body.style.top=`${-(l.current+h)}px`)}),300)}},[e]),c=v.useCallback(()=>{if(ut!==null){let f=-parseInt(document.body.style.top,10),m=-parseInt(document.body.style.left,10);document.body.style.position=ut.position,document.body.style.top=ut.top,document.body.style.left=ut.left,document.body.style.height=ut.height,document.body.style.right="unset",requestAnimationFrame(()=>{if(s&&o!==window.location.href){i(window.location.href);return}window.scrollTo(m,f)}),ut=null}},[o]);return v.useEffect(()=>{function f(){l.current=window.scrollY}return f(),window.addEventListener("scroll",f),()=>{window.removeEventListener("scroll",f)}},[]),v.useEffect(()=>{n||!a||(e?(u(),t||setTimeout(()=>{c()},500)):c())},[e,a,o,t,n,u,c]),{restorePositionSetting:c}}var Hc=new WeakMap;function ge(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let a={};Object.entries(t).forEach(([s,o])=>{if(s.startsWith("--")){e.style.setProperty(s,o);return}a[s]=e.style[s],e.style[s]=o}),!n&&Hc.set(e,a)}function Fr(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Hc.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([a,s])=>{e.style[a]=s}))}var we=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Or(e,t){let n=window.getComputedStyle(e),a=n.transform||n.webkitTransform||n.mozTransform,s=a.match(/^matrix3d\((.+)\)$/);return s?parseFloat(s[1].split(", ")[we(t)?13:12]):(s=a.match(/^matrix\((.+)\)$/),s?parseFloat(s[1].split(", ")[we(t)?5:4]):null)}function cx(e){return 8*(Math.log(e+1)-2)}var me={DURATION:.5,EASE:[.32,.72,0,1]},Vc=.4;function Wc(e){let t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}function dx({defaultProp:e,onChange:t}){let n=v.useState(e),[a]=n,s=v.useRef(a),o=Wc(t);return v.useEffect(()=>{s.current!==a&&(o(a),s.current=a)},[a,s,o]),n}function ux({prop:e,defaultProp:t,onChange:n=()=>{}}){let[a,s]=dx({defaultProp:t,onChange:n}),o=e!==void 0,i=o?e:a,l=Wc(n),u=v.useCallback(c=>{if(o){let f=typeof c=="function"?c(e):c;f!==e&&l(f)}else s(c)},[o,e,s,l]);return[i,u]}function fx({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:a,overlayRef:s,fadeFromIndex:o,onSnapPointChange:i,direction:l="bottom"}){let[u,c]=ux({prop:e,defaultProp:n?.[0],onChange:t}),f=v.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),m=n&&n.length>0&&(o||o===0)&&!Number.isNaN(o)&&n[o]===u||!n,h=v.useMemo(()=>n?.findIndex(_=>_===u),[n,u]),p=v.useMemo(()=>{var _;return(_=n?.map(M=>{let S=typeof window<"u",I=typeof M=="string",K=0;if(I&&(K=parseInt(M,10)),we(l)){let C=I?K:S?M*window.innerHeight:0;return S?l==="bottom"?window.innerHeight-C:-window.innerHeight+C:C}let j=I?K:S?M*window.innerWidth:0;return S?l==="right"?window.innerWidth-j:-window.innerWidth+j:j}))!=null?_:[]},[n]),g=v.useMemo(()=>h!==null?p?.[h]:null,[p,h]),b=v.useCallback(_=>{var M;let S=(M=p?.findIndex(I=>I===_))!=null?M:null;i(S),ge(a.current,{transition:`transform ${me.DURATION}s cubic-bezier(${me.EASE.join(",")})`,transform:we(l)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`}),p&&S!==p.length-1&&S!==o?ge(s.current,{transition:`opacity ${me.DURATION}s cubic-bezier(${me.EASE.join(",")})`,opacity:"0"}):ge(s.current,{transition:`opacity ${me.DURATION}s cubic-bezier(${me.EASE.join(",")})`,opacity:"1"}),c(S!==null?n?.[S]:null)},[a.current,n,p,o,s,c]);v.useEffect(()=>{var _;if(e){let M=(_=n?.findIndex(S=>S===e))!=null?_:-1;p&&M!==-1&&typeof p[M]=="number"&&b(p[M])}},[e,n,p,b]);function y({draggedDistance:_,closeDrawer:M,velocity:S,dismissible:I}){if(o===void 0)return;let K=l==="bottom"||l==="right"?(g??0)-_:(g??0)+_,j=h===o-1,C=h===0,A=_>0;if(j&&ge(s.current,{transition:`opacity ${me.DURATION}s cubic-bezier(${me.EASE.join(",")})`}),S>2&&!A){I?M():b(p[0]);return}if(S>2&&A&&p&&n){b(p[n.length-1]);return}let $=p?.reduce((z,k)=>typeof z!="number"||typeof k!="number"?z:Math.abs(k-K)Vc&&Math.abs(_)0&&f){b(p[n.length-1]);return}if(C&&z<0&&I&&M(),h===null)return;b(p[h+z]);return}b($)}function x({draggedDistance:_}){if(g===null)return;let M=l==="bottom"||l==="right"?g-_:g+_;(l==="bottom"||l==="right")&&Mp[p.length-1]||ge(a.current,{transform:we(l)?`translate3d(0, ${M}px, 0)`:`translate3d(${M}px, 0, 0)`})}function w(_,M){if(!n||typeof h!="number"||!p||o===void 0)return null;let S=h===o-1;if(h>=o&&M)return 0;if(S&&!M)return 1;if(!m&&!S)return null;let I=S?h+1:h-1,K=S?p[I]-p[I-1]:p[I+1]-p[I],j=_/Math.abs(K);return S?1-j:j}return{isLastSnapPoint:f,activeSnapPoint:u,shouldFade:m,getPercentageDragged:w,setActiveSnapPoint:c,activeSnapPointIndex:h,onRelease:y,onDrag:x,snapPointsOffset:p}}var mx=.25,px=100,Is=8,jt=16,Ls=26,Bs="vaul-dragging";function Uc({open:e,onOpenChange:t,children:n,shouldScaleBackground:a,onDrag:s,onRelease:o,snapPoints:i,nested:l=!1,closeThreshold:u=mx,scrollLockTimeout:c=px,dismissible:f=!0,fadeFromIndex:m=i&&i.length-1,activeSnapPoint:h,setActiveSnapPoint:p,fixed:g,modal:b=!0,onClose:y,direction:x="bottom",preventScrollRestoration:w=!0}){var _;let[M=!1,S]=v.useState(!1),[I,K]=v.useState(!1),[j,C]=v.useState(!1),[A,$]=v.useState(!1),[T,z]=v.useState(!1),[k,L]=v.useState(!1),W=v.useRef(null),G=v.useRef(null),U=v.useRef(null),Y=v.useRef(null),P=v.useRef(null),F=v.useRef(!1),R=v.useRef(null),E=v.useRef(0),B=v.useRef(!1),H=v.useRef(0),D=v.useRef(null),X=v.useRef(((_=D.current)==null?void 0:_.getBoundingClientRect().height)||0),Q=v.useRef(0),ue=v.useCallback(q=>{i&&q===He.length-1&&(G.current=new Date)},[]),{activeSnapPoint:ve,activeSnapPointIndex:fe,setActiveSnapPoint:ie,onRelease:Xe,snapPointsOffset:He,onDrag:le,shouldFade:Ie,getPercentageDragged:Kt}=fx({snapPoints:i,activeSnapPointProp:h,setActiveSnapPointProp:p,drawerRef:D,fadeFromIndex:m,overlayRef:W,onSnapPointChange:ue,direction:x});nx({isDisabled:!M||T||!b||k||!I});let{restorePositionSetting:Qe}=lx({isOpen:M,modal:b,nested:l,hasBeenOpened:I,preventScrollRestoration:w});function Re(){return(window.innerWidth-Ls)/window.innerWidth}function qt(q){var Z;!f&&!i||D.current&&!D.current.contains(q.target)||(X.current=((Z=D.current)==null?void 0:Z.getBoundingClientRect().height)||0,z(!0),U.current=new Date,Lc()&&window.addEventListener("touchend",()=>F.current=!1,{once:!0}),q.target.setPointerCapture(q.pointerId),E.current=we(x)?q.screenY:q.screenX)}function Yt(q,Z){var ne;let oe=q,V=(ne=window.getSelection())==null?void 0:ne.toString(),J=D.current?Or(D.current,x):null,ae=new Date;if(oe.hasAttribute("data-vaul-no-drag"))return!1;if(x==="right"||x==="left")return!0;if(G.current&&ae.getTime()-G.current.getTime()<500)return!1;if(J!==null&&(x==="bottom"?J>0:J<0))return!0;if(V&&V.length>0)return!1;if(P.current&&ae.getTime()-P.current.getTime()oe.clientHeight){if(oe.scrollTop!==0)return P.current=new Date,!1;if(oe.getAttribute("role")==="dialog")return!0}oe=oe.parentNode}return!0}function Xt(q){if(D.current&&T){let Z=x==="bottom"||x==="right"?1:-1,ne=(E.current-(we(x)?q.screenY:q.screenX))*Z,oe=ne>0;if(i&&fe===0&&!f||!F.current&&!Yt(q.target,oe))return;if(D.current.classList.add(Bs),F.current=!0,ge(D.current,{transition:"none"}),ge(W.current,{transition:"none"}),i&&le({draggedDistance:ne}),oe&&!i){let ke=cx(ne),Et=Math.min(ke*-1,0)*Z;ge(D.current,{transform:we(x)?`translate3d(0, ${Et}px, 0)`:`translate3d(${Et}px, 0, 0)`});return}let V=Math.abs(ne),J=document.querySelector("[vaul-drawer-wrapper]"),ae=V/X.current,Se=Kt(V,oe);Se!==null&&(ae=Se);let Ce=1-ae;if((Ie||m&&fe===m-1)&&(s?.(q,ae),ge(W.current,{opacity:`${Ce}`,transition:"none"},!0)),J&&W.current&&a){let ke=Math.min(Re()+ae*(1-Re()),1),Et=8-ae*8,ss=Math.max(0,14-ae*14);ge(J,{borderRadius:`${Et}px`,transform:we(x)?`scale(${ke}) translate3d(0, ${ss}px, 0)`:`scale(${ke}) translate3d(${ss}px, 0, 0)`,transition:"none"},!0)}if(!i){let ke=V*Z;ge(D.current,{transform:we(x)?`translate3d(0, ${ke}px, 0)`:`translate3d(${ke}px, 0, 0)`})}}}v.useEffect(()=>()=>{yt(!1),Qe()},[]),v.useEffect(()=>{var q;function Z(){var ne;if(!D.current)return;let oe=document.activeElement;if(xa(oe)||B.current){let V=((ne=window.visualViewport)==null?void 0:ne.height)||0,J=window.innerHeight-V,ae=D.current.getBoundingClientRect().height||0;Q.current||(Q.current=ae);let Se=D.current.getBoundingClientRect().top;if(Math.abs(H.current-J)>60&&(B.current=!B.current),i&&i.length>0&&He&&fe){let Ce=He[fe]||0;J+=Ce}if(H.current=J,ae>V||B.current){let Ce=D.current.getBoundingClientRect().height,ke=Ce;Ce>V&&(ke=V-Ls),g?D.current.style.height=`${Ce-Math.max(J,0)}px`:D.current.style.height=`${Math.max(ke,V-Se)}px`}else D.current.style.height=`${Q.current}px`;i&&i.length>0&&!B.current?D.current.style.bottom="0px":D.current.style.bottom=`${Math.max(J,0)}px`}}return(q=window.visualViewport)==null||q.addEventListener("resize",Z),()=>{var ne;return(ne=window.visualViewport)==null?void 0:ne.removeEventListener("resize",Z)}},[fe,i,He]);function De(){D.current&&(y?.(),ge(D.current,{transform:we(x)?`translate3d(0, ${x==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${x==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${me.DURATION}s cubic-bezier(${me.EASE.join(",")})`}),ge(W.current,{opacity:"0",transition:`opacity ${me.DURATION}s cubic-bezier(${me.EASE.join(",")})`}),yt(!1),setTimeout(()=>{C(!1),S(!1)},300),setTimeout(()=>{i&&ie(i[0])},me.DURATION*1e3))}v.useEffect(()=>{if(!M&&a){let q=setTimeout(()=>{Fr(document.body)},200);return()=>clearTimeout(q)}},[M,a]),v.useEffect(()=>{e?(S(!0),K(!0)):De()},[e]),v.useEffect(()=>{A&&t?.(M)},[M]),v.useEffect(()=>{$(!0)},[]);function Jt(){if(!D.current)return;let q=document.querySelector("[vaul-drawer-wrapper]"),Z=Or(D.current,x);ge(D.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${me.DURATION}s cubic-bezier(${me.EASE.join(",")})`}),ge(W.current,{transition:`opacity ${me.DURATION}s cubic-bezier(${me.EASE.join(",")})`,opacity:"1"}),a&&Z&&Z>0&&M&&ge(q,{borderRadius:`${Is}px`,overflow:"hidden",...we(x)?{transform:`scale(${Re()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Re()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${me.DURATION}s`,transitionTimingFunction:`cubic-bezier(${me.EASE.join(",")})`},!0)}function lt(q){var Z;if(!T||!D.current)return;D.current.classList.remove(Bs),F.current=!1,z(!1),Y.current=new Date;let ne=Or(D.current,x);if(!Yt(q.target,!1)||!ne||Number.isNaN(ne)||U.current===null)return;let oe=Y.current.getTime()-U.current.getTime(),V=E.current-(we(x)?q.screenY:q.screenX),J=Math.abs(V)/oe;if(J>.05&&(L(!0),setTimeout(()=>{L(!1)},200)),i){Xe({draggedDistance:V*(x==="bottom"||x==="right"?1:-1),closeDrawer:De,velocity:J,dismissible:f}),o?.(q,!0);return}if(x==="bottom"||x==="right"?V>0:V<0){Jt(),o?.(q,!0);return}if(J>Vc){De(),o?.(q,!1);return}let ae=Math.min((Z=D.current.getBoundingClientRect().height)!=null?Z:0,window.innerHeight);if(ne>=ae*u){De(),o?.(q,!1);return}o?.(q,!0),Jt()}v.useEffect(()=>{M&&(ge(document.documentElement,{scrollBehavior:"auto"}),G.current=new Date,yt(!0))},[M]),v.useEffect(()=>{var q;if(D.current&&j){let Z=(q=D?.current)==null?void 0:q.querySelectorAll("*");Z?.forEach(ne=>{let oe=ne;(oe.scrollHeight>oe.clientHeight||oe.scrollWidth>oe.clientWidth)&&oe.classList.add("vaul-scrollable")})}},[j]);function yt(q){let Z=document.querySelector("[vaul-drawer-wrapper]");!Z||!a||(q?(ge(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),ge(document.body,{background:"black"},!0),ge(Z,{borderRadius:`${Is}px`,overflow:"hidden",...we(x)?{transform:`scale(${Re()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Re()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${me.DURATION}s`,transitionTimingFunction:`cubic-bezier(${me.EASE.join(",")})`})):(Fr(Z,"overflow"),Fr(Z,"transform"),Fr(Z,"borderRadius"),ge(Z,{transitionProperty:"transform, border-radius",transitionDuration:`${me.DURATION}s`,transitionTimingFunction:`cubic-bezier(${me.EASE.join(",")})`})))}function Tn(q){let Z=q?(window.innerWidth-jt)/window.innerWidth:1,ne=q?-jt:0;R.current&&window.clearTimeout(R.current),ge(D.current,{transition:`transform ${me.DURATION}s cubic-bezier(${me.EASE.join(",")})`,transform:`scale(${Z}) translate3d(0, ${ne}px, 0)`}),!q&&D.current&&(R.current=setTimeout(()=>{let oe=Or(D.current,x);ge(D.current,{transition:"none",transform:we(x)?`translate3d(0, ${oe}px, 0)`:`translate3d(${oe}px, 0, 0)`})},500))}function Tr(q,Z){if(Z<0)return;let ne=we(x)?window.innerHeight:window.innerWidth,oe=(ne-jt)/ne,V=oe+Z*(1-oe),J=-jt+Z*jt;ge(D.current,{transform:we(x)?`scale(${V}) translate3d(0, ${J}px, 0)`:`scale(${V}) translate3d(${J}px, 0, 0)`,transition:"none"})}function Mr(q,Z){let ne=we(x)?window.innerHeight:window.innerWidth,oe=Z?(ne-jt)/ne:1,V=Z?-jt:0;Z&&ge(D.current,{transition:`transform ${me.DURATION}s cubic-bezier(${me.EASE.join(",")})`,transform:we(x)?`scale(${oe}) translate3d(0, ${V}px, 0)`:`scale(${oe}) translate3d(${V}px, 0, 0)`})}return v.createElement(si,{modal:b,onOpenChange:q=>{if(e!==void 0){t?.(q);return}q?(K(!0),S(q)):De()},open:M},v.createElement(Ic.Provider,{value:{visible:j,activeSnapPoint:ve,snapPoints:i,setActiveSnapPoint:ie,drawerRef:D,overlayRef:W,scaleBackground:yt,onOpenChange:t,onPress:qt,setVisible:C,onRelease:lt,onDrag:Xt,dismissible:f,isOpen:M,shouldFade:Ie,closeDrawer:De,onNestedDrag:Tr,onNestedOpenChange:Tn,onNestedRelease:Mr,keyboardIsOpen:B,openProp:e,modal:b,snapPointsOffset:He,direction:x}},n))}var Gc=v.forwardRef(function({children:e,...t},n){let{overlayRef:a,snapPoints:s,onRelease:o,shouldFade:i,isOpen:l,visible:u}=Ja(),c=Oc(n,a),f=s&&s.length>0;return v.createElement(yr,{onMouseUp:o,ref:c,"vaul-drawer-visible":u?"true":"false","vaul-overlay":"","vaul-snap-points":l&&f?"true":"false","vaul-snap-points-overlay":l&&i?"true":"false",...t})});Gc.displayName="Drawer.Overlay";var Kc=v.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:t,onAnimationEnd:n,style:a,...s},o){let{drawerRef:i,onPress:l,onRelease:u,onDrag:c,dismissible:f,keyboardIsOpen:m,snapPointsOffset:h,visible:p,closeDrawer:g,modal:b,openProp:y,onOpenChange:x,setVisible:w,direction:_}=Ja(),M=Oc(o,i);return v.useEffect(()=>{w(!0)},[]),v.createElement(wr,{onOpenAutoFocus:S=>{var I;e?e(S):(S.preventDefault(),(I=i.current)==null||I.focus())},onPointerDown:l,onPointerDownOutside:S=>{if(t?.(S),!b||S.defaultPrevented){S.preventDefault();return}m.current&&(m.current=!1),S.preventDefault(),x?.(!1),!(!f||y!==void 0)&&g()},onPointerMove:c,onPointerUp:u,ref:M,style:h&&h.length>0?{"--snap-point-height":`${h[0]}px`,...a}:a,...s,"vaul-drawer":"","vaul-drawer-direction":_,"vaul-drawer-visible":p?"true":"false"})});Kc.displayName="Drawer.Content";function hx({onDrag:e,onOpenChange:t,...n}){let{onNestedDrag:a,onNestedOpenChange:s,onNestedRelease:o}=Ja();if(!a)throw new Error("Drawer.NestedRoot must be placed in another drawer");return v.createElement(Uc,{nested:!0,onClose:()=>{s(!1)},onDrag:(i,l)=>{a(i,l),e?.(i,l)},onOpenChange:i=>{i&&s(i),t?.(i)},onRelease:o,...n})}var Ye={Root:Uc,NestedRoot:hx,Content:Kc,Overlay:Gc,Trigger:Nu,Portal:pn,Close:ka,Title:jr,Description:Nr};function qc({shouldScaleBackground:e=!0,...t}){return r.jsx(Ye.Root,{shouldScaleBackground:e,...t})}qc.displayName="Drawer";const xx=Ye.Trigger,gx=Ye.Portal,bx=Ye.Close,Yc=d.forwardRef(({className:e,...t},n)=>r.jsx(Ye.Overlay,{ref:n,className:N("fixed inset-0 bg-black/80 z-50",e),...t}));Yc.displayName=Ye.Overlay.displayName;const Xc=d.forwardRef(({className:e,children:t,...n},a)=>r.jsxs(gx,{children:[r.jsx(Yc,{}),r.jsxs(Ye.Content,{ref:a,className:N("fixed mt-24 inset-x-0 bottom-0 h-auto bg-background z-50 border rounded-t-[10px] flex flex-col",e),...n,children:[r.jsx("div",{className:"mx-auto mt-4 w-[100px] h-2 bg-muted rounded-full"}),t]})]}));Xc.displayName="DrawerContent";function vx({className:e,...t}){return r.jsx("div",{className:N("p-4 text-center sm:text-left grid gap-1.5",e),...t})}function yx({className:e,...t}){return r.jsx("div",{className:N("mt-auto p-4 flex flex-col gap-2",e),...t})}const Jc=d.forwardRef(({className:e,...t},n)=>r.jsx(Ye.Title,{ref:n,className:N("text-lg font-semibold leading-none tracking-tight",e),...t}));Jc.displayName=Ye.Title.displayName;const Zc=d.forwardRef(({className:e,...t},n)=>r.jsx(Ye.Description,{ref:n,className:N("text-sm text-muted-foreground",e),...t}));Zc.displayName=Ye.Description.displayName;function wx(){return r.jsxs("div",{className:"px-2 py-3 flex items-center justify-between bg-primary-foreground",children:[r.jsxs("div",{className:"flex items-center gap-x-1",children:[r.jsx("div",{className:"ml-2 pt-1",children:r.jsx(Eh,{className:"size-7 stroke-none fill-slate-600 -rotate-90"})}),r.jsx("div",{className:"text-2xl font-extralight tracking-tighter text-blue-600",children:"shadcn-ui"}),r.jsx("div",{className:"text-2xl font-extralight tracking-tighter text-slate-600",children:"components showroom"})]}),r.jsx("div",{className:"pt-1 flex items-center justify-end gap-x-1",children:r.jsx(Ah,{})})]})}const Qc="bg-muted/30 border-muted-foreground/30 border-t border-b";function jx(){return r.jsx("div",{className:`p-0.5 flex flex-col space-y-4 ${Qc}`,children:r.jsx("div",{className:"flex items-center gap-2"})})}const Nx=[{id:"1",name:"Unread"},{id:"2",name:"Threads"},{id:"3",name:"Chat Rooms",children:[{id:"3.1",name:"General"},{id:"3.2",name:"Random"},{id:"3.3",name:"Open Source Projects"}]},{id:"4",name:"Direct Messages",children:[{id:"4.1",name:"Alice",children:[{id:"4.1.1",name:"Alice2",icon:ps},{id:"4.1.2",name:"Bob2"},{id:"4.1.3",name:"Charlie2"}]},{id:"4.2",name:"Bob",icon:ps},{id:"4.3",name:"Charlie"}]},{id:"5",name:"Direct Messages",children:[{id:"5.1",name:"Alice",children:[{id:"5.1.1",name:"Alice2"},{id:"5.1.2",name:"Bob2"},{id:"5.1.3",name:"Charlie2"}]},{id:"5.2",name:"Bob"},{id:"5.3",name:"Charlie"}]},{id:"6",name:"Direct Messages",children:[{id:"6.1",name:"Alice",children:[{id:"6.1.1",name:"Alice2"},{id:"6.1.2",name:"Bob2"},{id:"6.1.3",name:"Charlie2"}]},{id:"6.2",name:"Bob"},{id:"6.3",name:"Charlie"}]}],Fs="focus:ring-primary-600 dark:focus:ring-primary-400 focus:ring-offset-primary-200 dark:focus:ring-offset-primary-800 focus:ring-1 focus:ring-offset-1 focus:outline-none",ed={display:"flex",flex:"1"},Cx=(e,t)=>{const n={...ed};return e?n.minHeight=n.maxHeight=t+"%":n.minWidth=n.maxWidth=t+"%",n},$x={...ed,minWidth:0,minHeight:0};function _x(e){const{vertical:t=!0,min:n=0,max:a=100,className:s,children:o,position:i,setPosition:l,onResize:u}=e,c=v.useRef(null),f=v.useCallback(h=>{if(!c.current)return;h.preventDefault();const{current:p}=c,g=p.getBoundingClientRect(),b=t?window.scrollY+g.y:window.scrollX+g.x,y=t?p.offsetHeight:p.offsetWidth,x=_=>{_.preventDefault();const M=((t?_.pageY:_.pageX)-b)/y*100,S=+ku(Ru(M,n,a));l(S)},w=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",w),u?.()};document.addEventListener("mousemove",x),document.addEventListener("mouseup",w)},[c,t]);let m=v.Children.toArray(o);return m.length<2?r.jsx("div",{className:s,style:{display:"flex"},children:m}):r.jsxs("div",{ref:c,className:s,style:{display:"flex",flexDirection:t?"column":"row"},children:[r.jsx("div",{style:Cx(t,i),children:m[0]}),r.jsx("div",{className:de("splitpane-divider",t?"vertical":"horizontal"),onMouseDown:f}),r.jsx("div",{style:$x,children:m[1]})]})}const Sx="d09GMgABAAAAAADcAAoAAAAAAggAAACWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk4ALAoUNAE2AiQDCAsGAAQgBSAHIBtvAcieB3aD8wURQ+TZazbRE9HvF5vde4KCYGhiCgq/NKPF0i6UIsZynbP+Xi9Ng+XLbNlmNz/xIBBqq61FIQRJhC/+QA/08PJQJ3sK5TZFMlWzC/iK5GUN40psgqvxwBjBOg6JUSJ7ewyKE2AAaXZrfUB4v+hze37ugJ9d+DeYqiDwVgCawviwVFGnuttkLqIMGivmDg",kx=`data:application/font-woff2;base64,${Sx}`,en=Er({text:kx}),Hr=Er({fontText:en.text,xmlText:"",glyphs:[]});function Rx(){const e=/^\s*data:(?[\w\/\+-]*);?(?(?:charset=[\w-]+)?);?(?base64?),(?[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%]*)\s*$/i;t();function t(){Hr.dataUri=e.exec(en.text)?.groups}Nn(en,()=>{Hr.fontText=en.text,t(),Hr.isUrl=!1,Hr.dataUri})}Rx();var Ne={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let Ex=0;function Qa(e,t){const n=`atom${++Ex}`,a={toString:()=>n};return typeof e=="function"?a.read=e:(a.init=e,a.read=Ax,a.write=Dx),t&&(a.write=t),a}function Ax(e){return e(this)}function Dx(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const Kn=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,qn=e=>"init"in e,Yn=e=>!!e.write,cn=new WeakMap,Tx=(e,t)=>{cn.set(e,t),e.catch(()=>{}).finally(()=>cn.delete(e))},Os=(e,t)=>{const n=cn.get(e);n&&(cn.delete(e),n(t))},Hs=(e,t)=>{e.status="fulfilled",e.value=t},Vs=(e,t)=>{e.status="rejected",e.reason=t},Mx=e=>typeof e?.then=="function",rr=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),Ws=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),Dt=e=>!!e&&"v"in e&&e.v instanceof Promise,Px=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,Vr=e=>{if("e"in e)throw e.e;return e.v},zx=()=>{const e=new WeakMap,t=new WeakMap,n=new Map;let a,s;(Ne?"production":void 0)!=="production"&&(a=new Set,s=new Set);const o=j=>e.get(j),i=(j,C)=>{(Ne?"production":void 0)!=="production"&&Object.freeze(C);const A=o(j);if(e.set(j,C),n.has(j)||n.set(j,A),Dt(A)){const $="v"in C?C.v instanceof Promise?C.v:Promise.resolve(C.v):Promise.reject(C.e);A.v!==$&&Os(A.v,$)}},l=(j,C,A,$)=>{const T=new Map($?C.d:null);let z=!1;A.forEach((k,L)=>{!k&&Kn(j,L)&&(k=C),k?(T.set(L,k),C.d.get(L)!==k&&(z=!0)):(Ne?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(z||C.d.size!==T.size)&&(C.d=T)},u=(j,C,A,$)=>{const T=o(j),z={d:T?.d||new Map,v:C};if(A&&l(j,z,A,$),rr(T,z)&&T.d===z.d)return T;if(Dt(T)&&Dt(z)&&Px(T,z)){if(T.d===z.d)return T;z.v=T.v}return i(j,z),z},c=(j,C,A,$)=>{if(Mx(C)){let T;const z=()=>{const L=o(j);if(!Dt(L)||L.v!==k)return;const W=u(j,k,A);t.has(j)&&L.d!==W.d&&S(j,W,L.d)},k=new Promise((L,W)=>{let G=!1;C.then(U=>{G||(G=!0,Hs(k,U),L(U),z())},U=>{G||(G=!0,Vs(k,U),W(U),z())}),T=U=>{G||(G=!0,U.then(Y=>Hs(k,Y),Y=>Vs(k,Y)),L(U))}});return k.orig=C,k.status="pending",Tx(k,L=>{L&&T(L),$?.()}),u(j,k,A,!0)}return u(j,C,A)},f=(j,C,A)=>{const $=o(j),T={d:$?.d||new Map,e:C};return A&&l(j,T,A),Ws($,T)&&$.d===T.d?$:(i(j,T),T)},m=(j,C)=>{const A=o(j);if(!C&&A&&(t.has(j)||Array.from(A.d).every(([G,U])=>{if(G===j)return!0;const Y=m(G);return Y===U||rr(Y,U)})))return A;const $=new Map;let T=!0;const z=G=>{if(Kn(j,G)){const Y=o(G);if(Y)return $.set(G,Y),Vr(Y);if(qn(G))return $.set(G,void 0),G.init;throw new Error("no atom init")}const U=m(G);return $.set(G,U),Vr(U)};let k,L;const W={get signal(){return k||(k=new AbortController),k.signal},get setSelf(){return(Ne?"production":void 0)!=="production"&&!Yn(j)&&console.warn("setSelf function cannot be used with read-only atom"),!L&&Yn(j)&&(L=(...G)=>{if((Ne?"production":void 0)!=="production"&&T&&console.warn("setSelf function cannot be called in sync"),!T)return w(j,...G)}),L}};try{const G=j.read(z,W);return c(j,G,$,()=>k?.abort())}catch(G){return f(j,G,$)}finally{T=!1}},h=j=>Vr(m(j)),p=j=>{let C=t.get(j);return C||(C=_(j)),C},g=(j,C)=>!C.l.size&&(!C.t.size||C.t.size===1&&C.t.has(j)),b=j=>{const C=t.get(j);C&&g(j,C)&&M(j)},y=j=>{const C=k=>{var L;const W=new Set((L=t.get(k))==null?void 0:L.t);return n.forEach((G,U)=>{var Y;(Y=o(U))!=null&&Y.d.has(k)&&W.add(U)}),W},A=new Array,$=new Set,T=k=>{if(!$.has(k)){$.add(k);for(const L of C(k))k!==L&&T(L);A.push(k)}};T(j);const z=new Set([j]);for(let k=A.length-1;k>=0;--k){const L=A[k],W=o(L);if(!W)continue;let G=!1;for(const U of W.d.keys())if(U!==L&&z.has(U)){G=!0;break}if(G){const U=m(L,!0);rr(W,U)||z.add(L)}}},x=(j,...C)=>{let A=!0;const $=k=>Vr(m(k)),T=(k,...L)=>{let W;if(Kn(j,k)){if(!qn(k))throw new Error("atom not writable");const G=o(k),U=c(k,L[0]);rr(G,U)||y(k)}else W=x(k,...L);if(!A){const G=I();(Ne?"production":void 0)!=="production"&&a.forEach(U=>U({type:"async-write",flushed:G}))}return W},z=j.write($,T,...C);return A=!1,z},w=(j,...C)=>{const A=x(j,...C),$=I();return(Ne?"production":void 0)!=="production"&&a.forEach(T=>T({type:"write",flushed:$})),A},_=(j,C,A)=>{var $;const T=A||[];($=o(j))==null||$.d.forEach((k,L)=>{const W=t.get(L);W?W.t.add(j):L!==j&&_(L,j,T)}),m(j);const z={t:new Set(C&&[C]),l:new Set};if(t.set(j,z),(Ne?"production":void 0)!=="production"&&s.add(j),Yn(j)&&j.onMount){const{onMount:k}=j;T.push(()=>{const L=k((...W)=>w(j,...W));L&&(z.u=L)})}return A||T.forEach(k=>k()),z},M=j=>{var C;const A=(C=t.get(j))==null?void 0:C.u;A&&A(),t.delete(j),(Ne?"production":void 0)!=="production"&&s.delete(j);const $=o(j);$?(Dt($)&&Os($.v),$.d.forEach((T,z)=>{if(z!==j){const k=t.get(z);k&&(k.t.delete(j),g(z,k)&&M(z))}})):(Ne?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",j)},S=(j,C,A)=>{const $=new Set(C.d.keys()),T=new Set;A?.forEach((z,k)=>{if($.has(k)){$.delete(k);return}T.add(k);const L=t.get(k);L&&L.t.delete(j)}),$.forEach(z=>{const k=t.get(z);k?k.t.add(j):t.has(j)&&_(z,j)}),T.forEach(z=>{const k=t.get(z);k&&g(z,k)&&M(z)})},I=()=>{let j;for((Ne?"production":void 0)!=="production"&&(j=new Set);n.size;){const C=Array.from(n);n.clear(),C.forEach(([A,$])=>{const T=o(A);if(T){const z=t.get(A);z&&T.d!==$?.d&&S(A,T,$?.d),z&&!(!Dt($)&&(rr($,T)||Ws($,T)))&&(z.l.forEach(k=>k()),(Ne?"production":void 0)!=="production"&&j.add(A))}else(Ne?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush")})}if((Ne?"production":void 0)!=="production")return j},K=(j,C)=>{const A=p(j),$=I(),T=A.l;return T.add(C),(Ne?"production":void 0)!=="production"&&a.forEach(z=>z({type:"sub",flushed:$})),()=>{T.delete(C),b(j),(Ne?"production":void 0)!=="production"&&a.forEach(z=>z({type:"unsub"}))}};return(Ne?"production":void 0)!=="production"?{get:h,set:w,sub:K,dev_subscribe_store:(j,C)=>{if(C!==2)throw new Error("The current StoreListener revision is 2.");return a.add(j),()=>{a.delete(j)}},dev_get_mounted_atoms:()=>s.values(),dev_get_atom_state:j=>e.get(j),dev_get_mounted:j=>t.get(j),dev_restore_atoms:j=>{for(const[A,$]of j)qn(A)&&(c(A,$),y(A));const C=I();a.forEach(A=>A({type:"restore",flushed:C}))}}:{get:h,set:w,sub:K}};let Xn;(Ne?"production":void 0)!=="production"&&(typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__=="number"?++globalThis.__NUMBER_OF_JOTAI_INSTANCES__:globalThis.__NUMBER_OF_JOTAI_INSTANCES__=1);const Ix=()=>(Xn||((Ne?"production":void 0)!=="production"&&globalThis.__NUMBER_OF_JOTAI_INSTANCES__!==1&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"),Xn=zx()),Xn);var Lx={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Bx=d.createContext(void 0),td=e=>{const t=d.useContext(Bx);return e?.store||t||Ix()},Fx=e=>typeof e?.then=="function",Ox=v.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function rd(e,t){const n=td(t),[[a,s,o],i]=d.useReducer(c=>{const f=n.get(e);return Object.is(c[0],f)&&c[1]===n&&c[2]===e?c:[f,n,e]},void 0,()=>[n.get(e),n,e]);let l=a;(s!==n||o!==e)&&(i(),l=n.get(e));const u=t?.delay;return d.useEffect(()=>{const c=n.sub(e,()=>{if(typeof u=="number"){setTimeout(i,u);return}i()});return i(),c},[n,e,u]),d.useDebugValue(l),Fx(l)?Ox(l):l}function ga(e,t){const n=td(t);return d.useCallback((...s)=>{if((Lx?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...s)},[n,e])}function Hx({doDroppedFilesAtom:e,activeAtom:t}){const n=ga(t),a=ga(e),s=d.useRef(0);return d.useEffect(()=>{function o(){s.current++||n(!0)}function i(f){f.preventDefault()}function l(){--s.current||n(!1)}function u(f){f.preventDefault(),s.current=0,n(!1),f.dataTransfer&&a(f.dataTransfer.files)}const c=document.addEventListener;return c("dragenter",o),c("dragover",i),c("dragleave",l),c("drop",u),()=>{const f=document.removeEventListener;f("dragenter",o),f("dragover",i),f("dragleave",l),f("drop",u)}},[]),null}function Vx(){const[e]=d.useState(Qa(!1)),t=rd(e);return Hx({doDroppedFilesAtom:Ig,activeAtom:e}),r.jsx(r.Fragment,{children:t&&r.jsx("div",{className:"absolute inset-0 grid place-items-center text-5xl font-bold text-slate-50 bg-slate-800/90 z-10",children:"Drop it!"})})}let Wx={data:""},Ux=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Wx,Gx=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Kx=/\/\*[^]*?\*\/| +/g,Us=/\n+/g,xt=(e,t)=>{let n="",a="",s="";for(let o in e){let i=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+i+";":a+=o[1]=="f"?xt(i,o):o+"{"+xt(i,o[1]=="k"?"":t)+"}":typeof i=="object"?a+=xt(i,t?t.replace(/([^,])+/g,l=>o.replace(/(^:.*)|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,l):l?l+" "+u:u)):o):i!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=xt.p?xt.p(o,i):o+":"+i+";")}return n+(t&&s?t+"{"+s+"}":s)+a},et={},nd=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+nd(e[n]);return t}return e},qx=(e,t,n,a,s)=>{let o=nd(e),i=et[o]||(et[o]=(u=>{let c=0,f=11;for(;c>>0;return"go"+f})(o));if(!et[i]){let u=o!==e?e:(c=>{let f,m,h=[{}];for(;f=Gx.exec(c.replace(Kx,""));)f[4]?h.shift():f[3]?(m=f[3].replace(Us," ").trim(),h.unshift(h[0][m]=h[0][m]||{})):h[0][f[1]]=f[2].replace(Us," ").trim();return h[0]})(e);et[i]=xt(s?{["@keyframes "+i]:u}:u,n?"":"."+i)}let l=n&&et.g?et.g:null;return n&&(et.g=et[i]),((u,c,f,m)=>{m?c.data=c.data.replace(m,u):c.data.indexOf(u)===-1&&(c.data=f?u+c.data:c.data+u)})(et[i],t,a,l),i},Yx=(e,t,n)=>e.reduce((a,s,o)=>{let i=t[o];if(i&&i.call){let l=i(n),u=l&&l.props&&l.props.className||/^go/.test(l)&&l;i=u?"."+u:l&&typeof l=="object"?l.props?"":xt(l,""):l===!1?"":l}return a+s+(i??"")},"");function En(e){let t=this||{},n=e.call?e(t.p):e;return qx(n.unshift?n.raw?Yx(n,[].slice.call(arguments,1),t.p):n.reduce((a,s)=>Object.assign(a,s&&s.call?s(t.p):s),{}):n,Ux(t.target),t.g,t.o,t.k)}let ad,ba,va;En.bind({g:1});let ot=En.bind({k:1});function Xx(e,t,n,a){xt.p=t,ad=e,ba=n,va=a}function vt(e,t){let n=this||{};return function(){let a=arguments;function s(o,i){let l=Object.assign({},o),u=l.className||s.className;n.p=Object.assign({theme:ba&&ba()},l),n.o=/ *go\d+/.test(u),l.className=En.apply(n,a)+(u?" "+u:""),t&&(l.ref=i);let c=e;return e[0]&&(c=l.as||e,delete l.as),va&&c[0]&&va(l),ad(c,l)}return t?t(s):s}}var Jx=e=>typeof e=="function",dn=(e,t)=>Jx(e)?e(t):e,Zx=(()=>{let e=0;return()=>(++e).toString()})(),sd=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Qx=20,tn=new Map,eg=1e3,Gs=e=>{if(tn.has(e))return;let t=setTimeout(()=>{tn.delete(e),Rt({type:4,toastId:e})},eg);tn.set(e,t)},tg=e=>{let t=tn.get(e);t&&clearTimeout(t)},ya=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Qx)};case 1:return t.toast.id&&tg(t.toast.id),{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:n}=t;return e.toasts.find(o=>o.id===n.id)?ya(e,{type:1,toast:n}):ya(e,{type:0,toast:n});case 3:let{toastId:a}=t;return a?Gs(a):e.toasts.forEach(o=>{Gs(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+s}))}}},rn=[],nn={toasts:[],pausedAt:void 0},Rt=e=>{nn=ya(nn,e),rn.forEach(t=>{t(nn)})},rg={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ng=(e={})=>{let[t,n]=d.useState(nn);d.useEffect(()=>(rn.push(n),()=>{let s=rn.indexOf(n);s>-1&&rn.splice(s,1)}),[t]);let a=t.toasts.map(s=>{var o,i;return{...e,...e[s.type],...s,duration:s.duration||((o=e[s.type])==null?void 0:o.duration)||e?.duration||rg[s.type],style:{...e.style,...(i=e[s.type])==null?void 0:i.style,...s.style}}});return{...t,toasts:a}},ag=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:n?.id||Zx()}),Ar=e=>(t,n)=>{let a=ag(t,e,n);return Rt({type:2,toast:a}),a.id},Pe=(e,t)=>Ar("blank")(e,t);Pe.error=Ar("error");Pe.success=Ar("success");Pe.loading=Ar("loading");Pe.custom=Ar("custom");Pe.dismiss=e=>{Rt({type:3,toastId:e})};Pe.remove=e=>Rt({type:4,toastId:e});Pe.promise=(e,t,n)=>{let a=Pe.loading(t.loading,{...n,...n?.loading});return e.then(s=>(Pe.success(dn(t.success,s),{id:a,...n,...n?.success}),s)).catch(s=>{Pe.error(dn(t.error,s),{id:a,...n,...n?.error})}),e};var sg=(e,t)=>{Rt({type:1,toast:{id:e,height:t}})},og=()=>{Rt({type:5,time:Date.now()})},ig=e=>{let{toasts:t,pausedAt:n}=ng(e);d.useEffect(()=>{if(n)return;let o=Date.now(),i=t.map(l=>{if(l.duration===1/0)return;let u=(l.duration||0)+l.pauseDuration-(o-l.createdAt);if(u<0){l.visible&&Pe.dismiss(l.id);return}return setTimeout(()=>Pe.dismiss(l.id),u)});return()=>{i.forEach(l=>l&&clearTimeout(l))}},[t,n]);let a=d.useCallback(()=>{n&&Rt({type:6,time:Date.now()})},[n]),s=d.useCallback((o,i)=>{let{reverseOrder:l=!1,gutter:u=8,defaultPosition:c}=i||{},f=t.filter(p=>(p.position||c)===(o.position||c)&&p.height),m=f.findIndex(p=>p.id===o.id),h=f.filter((p,g)=>gp.visible).slice(...l?[h+1]:[0,h]).reduce((p,g)=>p+(g.height||0)+u,0)},[t]);return{toasts:t,handlers:{updateHeight:sg,startPause:og,endPause:a,calculateOffset:s}}},lg=ot` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,cg=ot` +from { + transform: scale(0); + opacity: 0; +} +to { + transform: scale(1); + opacity: 1; +}`,dg=ot` +from { + transform: scale(0) rotate(90deg); + opacity: 0; +} +to { + transform: scale(1) rotate(90deg); + opacity: 1; +}`,ug=vt("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#ff4b4b"}; + position: relative; + transform: rotate(45deg); + + animation: ${lg} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + + &:after, + &:before { + content: ''; + animation: ${cg} 0.15s ease-out forwards; + animation-delay: 150ms; + position: absolute; + border-radius: 3px; + opacity: 0; + background: ${e=>e.secondary||"#fff"}; + bottom: 9px; + left: 4px; + height: 2px; + width: 12px; + } + + &:before { + animation: ${dg} 0.15s ease-out forwards; + animation-delay: 180ms; + transform: rotate(90deg); + } +`,fg=ot` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,mg=vt("div")` + width: 12px; + height: 12px; + box-sizing: border-box; + border: 2px solid; + border-radius: 100%; + border-color: ${e=>e.secondary||"#e0e0e0"}; + border-right-color: ${e=>e.primary||"#616161"}; + animation: ${fg} 1s linear infinite; +`,pg=ot` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,hg=ot` +0% { + height: 0; + width: 0; + opacity: 0; +} +40% { + height: 0; + width: 6px; + opacity: 1; +} +100% { + opacity: 1; + height: 10px; +}`,xg=vt("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#61d345"}; + position: relative; + transform: rotate(45deg); + + animation: ${pg} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + &:after { + content: ''; + box-sizing: border-box; + animation: ${hg} 0.2s ease-out forwards; + opacity: 0; + animation-delay: 200ms; + position: absolute; + border-right: 2px solid; + border-bottom: 2px solid; + border-color: ${e=>e.secondary||"#fff"}; + bottom: 6px; + left: 6px; + height: 10px; + width: 6px; + } +`,gg=vt("div")` + position: absolute; +`,bg=vt("div")` + position: relative; + display: flex; + justify-content: center; + align-items: center; + min-width: 20px; + min-height: 20px; +`,vg=ot` +from { + transform: scale(0.6); + opacity: 0.4; +} +to { + transform: scale(1); + opacity: 1; +}`,yg=vt("div")` + position: relative; + transform: scale(0.6); + opacity: 0.4; + min-width: 20px; + animation: ${vg} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; +`,wg=({toast:e})=>{let{icon:t,type:n,iconTheme:a}=e;return t!==void 0?typeof t=="string"?d.createElement(yg,null,t):t:n==="blank"?null:d.createElement(bg,null,d.createElement(mg,{...a}),n!=="loading"&&d.createElement(gg,null,n==="error"?d.createElement(ug,{...a}):d.createElement(xg,{...a})))},jg=e=>` +0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} +100% {transform: translate3d(0,0,0) scale(1); opacity:1;} +`,Ng=e=>` +0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} +100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} +`,Cg="0%{opacity:0;} 100%{opacity:1;}",$g="0%{opacity:1;} 100%{opacity:0;}",_g=vt("div")` + display: flex; + align-items: center; + background: #fff; + color: #363636; + line-height: 1.3; + will-change: transform; + box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); + max-width: 350px; + pointer-events: auto; + padding: 8px 10px; + border-radius: 8px; +`,Sg=vt("div")` + display: flex; + justify-content: center; + margin: 4px 10px; + color: inherit; + flex: 1 1 auto; + white-space: pre-line; +`,kg=(e,t)=>{let n=e.includes("top")?1:-1,[a,s]=sd()?[Cg,$g]:[jg(n),Ng(n)];return{animation:t?`${ot(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ot(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Rg=d.memo(({toast:e,position:t,style:n,children:a})=>{let s=e.height?kg(e.position||t||"top-center",e.visible):{opacity:0},o=d.createElement(wg,{toast:e}),i=d.createElement(Sg,{...e.ariaProps},dn(e.message,e));return d.createElement(_g,{className:e.className,style:{...s,...n,...e.style}},typeof a=="function"?a({icon:o,message:i}):d.createElement(d.Fragment,null,o,i))});Xx(d.createElement);var Eg=({id:e,className:t,style:n,onHeightUpdate:a,children:s})=>{let o=d.useCallback(i=>{if(i){let l=()=>{let u=i.getBoundingClientRect().height;a(e,u)};l(),new MutationObserver(l).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,a]);return d.createElement("div",{ref:o,className:t,style:n},s)},Ag=(e,t)=>{let n=e.includes("top"),a=n?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:sd()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...a,...s}},Dg=En` + z-index: 9999; + > * { + pointer-events: auto; + } +`,Wr=16,Tg=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:a,children:s,containerStyle:o,containerClassName:i})=>{let{toasts:l,handlers:u}=ig(n);return d.createElement("div",{style:{position:"fixed",zIndex:9999,top:Wr,left:Wr,right:Wr,bottom:Wr,pointerEvents:"none",...o},className:i,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map(c=>{let f=c.position||t,m=u.calculateOffset(c,{reverseOrder:e,gutter:a,defaultPosition:t}),h=Ag(f,m);return d.createElement(Eg,{id:c.id,key:c.id,onHeightUpdate:u.updateHeight,className:c.visible?Dg:"",style:h},c.type==="custom"?dn(c.message,c):s?s(c):d.createElement(Rg,{toast:c,position:f}))}))};function Mg(){return r.jsx("div",{className:"toaser",children:r.jsx(Tg,{position:"bottom-right",reverseOrder:!1,gutter:8,containerClassName:"",containerStyle:{},toastOptions:{className:"",duration:5e3,style:{background:"#363636",color:"#fff"},success:{duration:3e3,iconTheme:{primary:"green",secondary:"black"}}}})})}const Pg=(e,t)=>Pe(e,{style:{backgroundColor:"red"},...t});function zg(e=""){return/[.]/.exec(e)&&/([^.]+$)/.exec(e)?.[0]||""}const Ig=Qa(null,async(e,t,n)=>{try{if(n.length!==1)throw new Error("Only one file can be dropped");if(zg(n[0].name)!=="woff2")throw new Error(`Dropped file "${n[0].name}". +Only .woff2 files are supported`);const s=await Eu(n[0],{asArrayBuffer:!1});console.log("files",n),console.log("blob",s)}catch(a){Pg(a?.message||"Failed to load image")}});function Lg(e){const{splitterPos:t}=it(ce.treeState),n=d.useCallback(Gi(a=>ce.treeState.splitterPos=a,50),[]);return r.jsx(_x,{position:t,setPosition:n,...e})}const Ks="6.1.2";function Bg(e){const t=Bl(e);return la(t,n=>n.state=Er({selected:!1})),t}const qs=Bg(Nx);function od(){const[e,t]=d.useState(()=>zt(qs,Ks)?.name||"No content selected"),{arrowFirst:n,hideFolderIcon:a}=it(ce.treeState),s=d.useMemo(()=>r.jsx(yh,{data:qs,className:`w-full h-full border rounded-l-md ${Fs}`,initialSelectedItemId:Ks,onSelectChange:o=>t(o?.name??""),IconForFolder:Bm,IconForItem:Mm,arrowFirst:n,hideFolderIcon:a}),[n,a]);return r.jsxs("div",{className:"mr-12 p-0.5 w-full h-full",children:[r.jsxs(Lg,{vertical:!1,className:"splitpane h-full",children:[r.jsx("div",{className:"w-full",children:s}),r.jsx("div",{className:de("flex-1 w-full h-full min-w-0 border border-l rounded-r-md z-10",Fs),tabIndex:0,children:r.jsx("div",{className:"min-w-0 overflow-hidden",children:r.jsx("div",{className:"px-2 py-1",children:e})})})]}),r.jsxs("div",{className:"mt-2 text-sm text-muted-foreground",children:[r.jsxs("label",{className:"flex items-center",children:[r.jsx(Bt,{className:"mr-2",checked:n,onCheckedChange:()=>ce.treeState.arrowFirst=!ce.treeState.arrowFirst}),"Icons first"]}),r.jsxs("label",{className:"flex items-center",children:[r.jsx(Bt,{className:"mr-2",checked:a,onCheckedChange:()=>ce.treeState.hideFolderIcon=!ce.treeState.hideFolderIcon}),"Hide folder icons"]})]})]})}function Fg(){return r.jsxs("div",{className:`px-4 py-2 ${Qc}`,children:[r.jsx("div",{className:"mb-1 px-1 text-sm",children:"Tree inside fixed height, non-scrollable area"}),r.jsx("div",{className:"h-[160px] overflow-hidden",children:r.jsx(od,{})})]})}const Og=[{id:"m5gr84i9",amount:316,status:"success",email:"ken99@yahoo.com"},{id:"3u1reuv4",amount:242,status:"success",email:"Abe45@gmail.com"},{id:"derv1ws0",amount:837,status:"processing",email:"Monserrat44@gmail.com"},{id:"5kma53ae",amount:874,status:"success",email:"Silas22@gmail.com"},{id:"bhqecj4p",amount:721,status:"failed",email:"carmella@hotmail.com"}],Ys=[{id:"select",header:({table:e})=>r.jsx(Bt,{checked:e.getIsAllPageRowsSelected()||e.getIsSomePageRowsSelected()&&"indeterminate",onCheckedChange:t=>e.toggleAllPageRowsSelected(!!t),"aria-label":"Select all"}),cell:({row:e})=>r.jsx(Bt,{checked:e.getIsSelected(),onCheckedChange:t=>e.toggleSelected(!!t),"aria-label":"Select row"}),enableSorting:!1,enableHiding:!1},{accessorKey:"status",header:"Status",cell:({row:e})=>r.jsx("div",{className:"capitalize",children:e.getValue("status")})},{accessorKey:"email",header:({column:e})=>r.jsxs(pe,{variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:["Email",r.jsx(Qo,{className:"ml-2 h-4 w-4"})]}),cell:({row:e})=>r.jsx("div",{className:"lowercase",children:e.getValue("email")})},{accessorKey:"amount",header:()=>r.jsx("div",{className:"text-right",children:"Amount"}),cell:({row:e})=>{const t=parseFloat(e.getValue("amount")),n=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(t);return r.jsx("div",{className:"text-right font-medium",children:n})}},{id:"actions",enableHiding:!1,cell:({row:e})=>{const t=e.original;return r.jsxs(Ta,{children:[r.jsx(Ma,{asChild:!0,children:r.jsxs(pe,{className:"h-8 w-8 p-0",variant:"ghost",children:[r.jsx("span",{className:"sr-only",children:"Open menu"}),r.jsx(Wi,{className:"h-4 w-4"})]})}),r.jsxs(xn,{align:"end",children:[r.jsx(tl,{children:"Actions"}),r.jsx(lr,{onClick:()=>navigator.clipboard.writeText(t.id),children:"Copy payment ID"}),r.jsx(rl,{}),r.jsx(lr,{children:"View customer"}),r.jsx(lr,{children:"View payment details"})]})]})}}];function Hg(){const[e,t]=d.useState([]),[n,a]=d.useState([]),[s,o]=d.useState({}),[i,l]=d.useState({}),u=Mu({data:Og,columns:Ys,onSortingChange:t,onColumnFiltersChange:a,getCoreRowModel:Pu(),getPaginationRowModel:zu(),getSortedRowModel:Iu(),getFilteredRowModel:Lu(),onColumnVisibilityChange:o,onRowSelectionChange:l,state:{sorting:e,columnFilters:n,columnVisibility:s,rowSelection:i}});return r.jsxs("div",{className:"w-full",children:[r.jsxs("div",{className:"flex items-center py-4",children:[r.jsx(xr,{className:"max-w-sm",placeholder:"Filter emails...",value:u.getColumn("email")?.getFilterValue()??"",onChange:c=>u.getColumn("email")?.setFilterValue(c.target.value)}),r.jsxs(Ta,{children:[r.jsx(Ma,{asChild:!0,children:r.jsxs(pe,{className:"ml-auto",variant:"outline",children:["Columns",r.jsx(Sa,{className:"ml-2 h-4 w-4"})]})}),r.jsx(xn,{align:"end",children:u.getAllColumns().filter(c=>c.getCanHide()).map(c=>r.jsx(el,{className:"capitalize",checked:c.getIsVisible(),onCheckedChange:f=>c.toggleVisibility(!!f),children:c.id},c.id))})]})]}),r.jsx("div",{className:"rounded-md border",children:r.jsxs(Oa,{children:[r.jsx(Ha,{children:u.getHeaderGroups().map(c=>r.jsx($t,{children:c.headers.map(f=>r.jsx(Pt,{children:f.isPlaceholder?null:os(f.column.columnDef.header,f.getContext())},f.id))},c.id))}),r.jsx(Va,{children:u.getRowModel().rows?.length?u.getRowModel().rows.map(c=>r.jsx($t,{"data-state":c.getIsSelected()&&"selected",children:c.getVisibleCells().map(f=>r.jsx(at,{children:os(f.column.columnDef.cell,f.getContext())},f.id))},c.id)):r.jsx($t,{children:r.jsx(at,{className:"h-24 text-center",colSpan:Ys.length,children:"No results."})})})]})}),r.jsxs("div",{className:"flex items-center justify-end space-x-2 py-4",children:[r.jsxs("div",{className:"flex-1 text-sm text-muted-foreground",children:[u.getFilteredSelectedRowModel().rows.length," of"," ",u.getFilteredRowModel().rows.length," row(s) selected."]}),r.jsxs("div",{className:"space-x-2",children:[r.jsx(pe,{variant:"outline",size:"sm",onClick:()=>u.previousPage(),disabled:!u.getCanPreviousPage(),children:"Previous"}),r.jsx(pe,{variant:"outline",size:"sm",onClick:()=>u.nextPage(),disabled:!u.getCanNextPage(),children:"Next"})]})]})]})}const Vg=[{invoice:"INV001",paymentStatus:"Paid",totalAmount:"$250.00",paymentMethod:"Credit Card"},{invoice:"INV002",paymentStatus:"Pending",totalAmount:"$150.00",paymentMethod:"PayPal"},{invoice:"INV003",paymentStatus:"Unpaid",totalAmount:"$350.00",paymentMethod:"Bank Transfer"},{invoice:"INV004",paymentStatus:"Paid",totalAmount:"$450.00",paymentMethod:"Credit Card"},{invoice:"INV005",paymentStatus:"Paid",totalAmount:"$550.00",paymentMethod:"PayPal"},{invoice:"INV006",paymentStatus:"Pending",totalAmount:"$200.00",paymentMethod:"Bank Transfer"},{invoice:"INV007",paymentStatus:"Unpaid",totalAmount:"$300.00",paymentMethod:"Credit Card"}];function Wg(e){return r.jsxs(Oa,{...e,children:[r.jsx(zl,{children:"A list of your recent invoices."}),r.jsx(Ha,{children:r.jsxs($t,{children:[r.jsx(Pt,{className:"w-[100px]",children:"Invoice"}),r.jsx(Pt,{children:"Status"}),r.jsx(Pt,{children:"Method"}),r.jsx(Pt,{className:"text-right",children:"Amount"})]})}),r.jsx(Va,{children:Vg.map(t=>r.jsxs($t,{children:[r.jsx(at,{className:"font-medium",children:t.invoice}),r.jsx(at,{children:t.paymentStatus}),r.jsx(at,{children:t.paymentMethod}),r.jsx(at,{className:"text-right",children:t.totalAmount})]},t.invoice))}),r.jsx(Pl,{className:"text-muted-foreground bg-muted",children:r.jsxs($t,{children:[r.jsx(at,{colSpan:3,children:"Total"}),r.jsx(at,{className:"text-right",children:"$2,500.00"})]})})]})}const Ug="_container_q763u_7",Ht={container:Ug,"sticky-header-row":"_sticky-header-row_q763u_57","sticky-first-column":"_sticky-first-column_q763u_75","sticky-header-and-first-column":"_sticky-header-and-first-column_q763u_97"};function Gg(){return r.jsxs(r.Fragment,{children:[r.jsx("td",{children:"John Doe"}),r.jsx("td",{children:"john@example.com"}),r.jsx("td",{children:"Developer"}),r.jsx("td",{children:"USA"})]})}function Kg(){return r.jsxs(r.Fragment,{children:[r.jsx("td",{children:"Jane Smith"}),r.jsx("td",{children:"jane@example.com"}),r.jsx("td",{children:"Manager"}),r.jsx("td",{children:"Canada"})]})}function qg(){return r.jsxs(r.Fragment,{children:[r.jsx("td",{children:"Bob Johnson"}),r.jsx("td",{children:"bob@example.com"}),r.jsx("td",{children:"Designer"}),r.jsx("td",{children:"UK"})]})}function Yg(){return r.jsxs(r.Fragment,{children:[r.jsx("td",{children:"Alice Brown"}),r.jsx("td",{children:"alice@example.com"}),r.jsx("td",{children:"Analyst"}),r.jsx("td",{children:"Australia"})]})}function Xg(){return r.jsxs(r.Fragment,{children:[r.jsx("td",{children:"Mike Wilson"}),r.jsx("td",{children:"mike@example.com"}),r.jsx("td",{children:"Engineer"}),r.jsx("td",{children:"Germany"})]})}function Jg(){return r.jsxs(r.Fragment,{children:[r.jsx("td",{children:"Sara Davis"}),r.jsx("td",{children:"sara@example.com"}),r.jsx("td",{children:"Consultant"}),r.jsx("td",{children:"France"})]})}function Zg(){return r.jsxs(r.Fragment,{children:[r.jsx("td",{children:"David Lee"}),r.jsx("td",{children:"david@example.com"}),r.jsx("td",{children:"Coordinator"}),r.jsx("td",{children:"Japan"})]})}function Qg(){return r.jsxs(r.Fragment,{children:[r.jsx("td",{children:"Linda Chen"}),r.jsx("td",{children:"linda@example.com"}),r.jsx("td",{children:"Tester"}),r.jsx("td",{children:"China"})]})}function eb(){return r.jsxs(r.Fragment,{children:[r.jsx("td",{children:"Ryan Miller"}),r.jsx("td",{children:"ryan@example.com"}),r.jsx("td",{children:"Architect"}),r.jsx("td",{children:"Brazil"})]})}function tb(){return r.jsxs(r.Fragment,{children:[r.jsx("td",{children:"Emily White"}),r.jsx("td",{children:"emily@example.com"}),r.jsx("td",{children:"Administrator"}),r.jsx("td",{children:"India"})]})}const es=[Gg,Kg,qg,Yg,Xg,Jg,Zg,Qg,eb,tb];function rb(){return r.jsx(r.Fragment,{children:r.jsxs("section",{className:`${Ht["sticky-header-row"]}`,children:[r.jsx("h2",{className:"py-2",children:"Sticky Header"}),r.jsx("div",{className:`${Ht.container} w-fit h-52 overflow-auto`,children:r.jsxs("table",{children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{scope:"col",children:"ID"}),r.jsx("th",{scope:"col",children:"Name"}),r.jsx("th",{scope:"col",children:"Email"}),r.jsx("th",{scope:"col",children:"Role"}),r.jsx("th",{scope:"col",children:"Country"})]})}),r.jsx("tbody",{children:es.map((e,t)=>r.jsxs("tr",{children:[r.jsx("td",{children:t+1}),r.jsx(e,{})]},t))})]})})]})})}function nb(){return r.jsx(r.Fragment,{children:r.jsxs("section",{className:`${Ht["sticky-first-column"]}`,children:[r.jsx("h2",{className:"py-2",children:"Sticky First Column"}),r.jsx("div",{className:`${Ht.container} w-64 h-60 overflow-auto`,children:r.jsxs("table",{children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{scope:"col",children:"ID"}),r.jsx("th",{scope:"col",children:"Name"}),r.jsx("th",{scope:"col",children:"Email"}),r.jsx("th",{scope:"col",children:"Role"}),r.jsx("th",{scope:"col",children:"Country"})]})}),r.jsx("tbody",{children:es.slice(0,5).map((e,t)=>r.jsxs("tr",{children:[r.jsx("th",{scope:"row",children:t+1}),r.jsx(e,{})]},t))})]})})]})})}function ab(){return r.jsx(r.Fragment,{children:r.jsxs("section",{className:`${Ht["sticky-header-and-first-column"]}`,children:[r.jsx("h2",{className:"py-2",children:"Sticky Header and First Column"}),r.jsx("div",{className:`${Ht.container} w-64 h-60 overflow-auto`,children:r.jsxs("table",{children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{scope:"col",children:"ID"}),r.jsx("th",{scope:"col",children:"Name"}),r.jsx("th",{scope:"col",children:"Email"}),r.jsx("th",{scope:"col",children:"Role"}),r.jsx("th",{scope:"col",children:"Country"})]})}),r.jsx("tbody",{children:es.map((e,t)=>r.jsxs("tr",{children:[r.jsx("th",{scope:"row",children:t+1}),r.jsx(e,{})]},t))})]})})]})})}function sb(){return r.jsxs("div",{className:"text-xs flex flex-wrap gap-4",children:[r.jsx(rb,{}),r.jsx(nb,{}),r.jsx(ab,{})]})}const ob="_container_ny73l_25",ib="_card_ny73l_41",lb="_card__head_ny73l_53",Jn={container:ob,card:ib,card__head:lb},cb=["Plotting Cat","Angry Cat","Curious Cat","Prowling Cat","Sleepy Cat"],db=["https://upload.wikimedia.org/wikipedia/commons/d/d6/Cat_plotting_something_evil%21.jpg","https://upload.wikimedia.org/wikipedia/commons/thumb/d/d8/False_alarm_-a.jpg/1280px-False_alarm_-a.jpg","https://upload.wikimedia.org/wikipedia/commons/thumb/8/83/Neugierige-Katze.JPG/1280px-Neugierige-Katze.JPG","https://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Al_acecho_%289272124788%29.jpg/1280px-Al_acecho_%289272124788%29.jpg","https://upload.wikimedia.org/wikipedia/commons/thumb/d/de/Mimi%26Tigsi.jpg/1280px-Mimi%26Tigsi.jpg"];function ub(){return r.jsx("div",{className:Jn.container,children:db.map((e,t)=>r.jsxs("div",{className:Jn.card,children:[r.jsx("img",{src:e}),r.jsx("div",{className:Jn.card__head,children:cb[t]})]},t))})}const fb="_wrap_84gct_1",mb="_strip_84gct_19",pb="_one_84gct_79",hb="_two_84gct_81",xb="_three_84gct_83",gb="_four_84gct_85",bb="_five_84gct_87",vb="_crown_84gct_91",yb="_h1_84gct_119",wb="_h2_84gct_153",jb="_h3_84gct_165",Nb="_review_84gct_175",ft={wrap:fb,strip:mb,one:pb,two:hb,three:xb,four:gb,five:bb,crown:vb,h1:yb,h2:wb,h3:jb,review:Nb},Cb=[{title:"Angels 3o'clock",author:"Jack Hartley",publisher:"Crown Press",review:"When Jack wakes up at 3am one morning to find angels in his bedroom his life changes forever. An extraordinary read and a fine first novel. The Grauniad"},{title:"Cloud Bustin'",author:"Sian O'Brien",publisher:"Crown Press",review:"Kate's father has a secret. When the Russians discover it she and her father have a race against time to stop it falling into the wrong hands. I couldn't put this down. The story charges towards a thrilling climax. Woman's Weekly"},{title:"Seven Deadly Bins",author:"Trash Norton",publisher:"Crown Press",review:"Michael uncovers a plot to blow up the Australian Embassy in London. However, no one believes him and he must find a way to convince the authorities of the truth. Following hot on the heels of his previous novel, The Henchman's Basin, this is a fine novel indeed. Fishing Magazine Monthly"},{title:"A Cuckoo Calls",author:"Erasmus Coach",publisher:"Crown Press",review:"Expect the unexpected in this expertly woven tale of a birdwatcher. Well, I certainly didn't expect this when I started reading. Twitcher's Monthly"},{title:"A Steamy Romance",author:"Eliza Smalls",publisher:"Crown Press",review:"Hubert and Molly have worked in the same clothes cleaner's for years. When they fall in love their loyalty to their boss is tested. I cried buckets to this one and got the pages wet. The Rock Garden Hobbyist"}],$b=["one","two","three","four","five"];function _b(){return r.jsx("div",{className:`${ft.wrap} font-serif font-thin text-background`,children:Cb.map((e,t)=>r.jsxs("div",{className:`${ft.strip} ${ft[$b[t]]}`,style:{opacity:1,height:"100%"},children:[r.jsx("p",{className:ft.crown,children:"♔"}),r.jsx("div",{className:ft.h1,children:e.title}),r.jsx("div",{className:ft.h2,children:e.author}),r.jsx("div",{className:ft.h3,children:e.publisher}),r.jsx("div",{className:ft.review,children:r.jsx("p",{children:e.review})})]},t))})}const Sb="_container_1fbyo_33",kb="_box_1fbyo_55",Ve={container:Sb,box:kb,"box-1":"_box-1_1fbyo_95","box-2":"_box-2_1fbyo_103","box-3":"_box-3_1fbyo_111","box-4":"_box-4_1fbyo_119","box-5":"_box-5_1fbyo_127"};function Rb(){return r.jsxs("div",{className:`${Ve.container} py-8`,children:[r.jsx("div",{className:`${Ve.box} ${Ve["box-1"]}`,style:{"--img":"url(https://i.postimg.cc/sgBkfbtx/img-1.jpg)"},"data-text":"Renji"}),r.jsx("div",{className:`${Ve.box} ${Ve["box-2"]}`,style:{"--img":"url(https://i.postimg.cc/3RZ6bhDS/img-2.jpg)"},"data-text":"Sora"}),r.jsx("div",{className:`${Ve.box} ${Ve["box-3"]}`,style:{"--img":"url(https://i.postimg.cc/DZhHg0m4/img-3.jpg)"},"data-text":"Kaito"}),r.jsx("div",{className:`${Ve.box} ${Ve["box-4"]}`,style:{"--img":"url(https://i.postimg.cc/KjqWx5ft/img-4.jpg)"},"data-text":"Tsuki"}),r.jsx("div",{className:`${Ve.box} ${Ve["box-5"]}`,style:{"--img":"url(https://i.postimg.cc/nrcWyW4H/img-5.jpg)"},"data-text":"Mitsui"})]})}function Eb(){return r.jsxs(Ze,{defaultValue:"table6",children:[r.jsxs(qe,{children:[r.jsx(ee,{value:"table1",children:"Simple"}),r.jsx(ee,{value:"table2",children:"Data"}),r.jsx(ee,{value:"table3",children:"Sticky headers"}),r.jsx(ee,{value:"table4",children:"Skew"}),r.jsx(ee,{value:"table5",children:"Books"}),r.jsx(ee,{value:"table6",children:"Cartoons"})]}),r.jsx(te,{value:"table1",children:r.jsx(Wg,{className:"m-auto max-w-sm"})}),r.jsx(te,{value:"table2",children:r.jsx(Hg,{})}),r.jsx(te,{value:"table3",children:r.jsx(sb,{})}),r.jsx(te,{value:"table4",children:r.jsx(ub,{})}),r.jsx(te,{value:"table5",children:r.jsx(_b,{})}),r.jsx(te,{value:"table6",children:r.jsx(Rb,{})})]})}const Xs={getItem(e){return ce.resisablesState.positions[e]||""},setItem(e,t){ce.resisablesState.positions[e]=t}};function Ab(){return r.jsxs(As,{direction:"horizontal",className:"w-full _max-w-md rounded-lg border",autoSaveId:"tm-example",storage:Xs,children:[r.jsx(Lr,{defaultSize:25,children:r.jsx(Db,{})}),r.jsx(Ds,{withHandle:!0}),r.jsx(Lr,{children:r.jsxs(As,{direction:"vertical",autoSaveId:"tm-example2",storage:Xs,children:[r.jsx(Lr,{defaultSize:25,children:r.jsx(Tb,{})}),r.jsx(Ds,{}),r.jsx(Lr,{defaultSize:75,children:r.jsx(Mb,{})})]})})]})}function Db(){return r.jsx("div",{className:"p-6 h-[200px] flex items-center justify-center",children:r.jsx("span",{className:"font-semibold",children:"One"})})}function Tb(){return r.jsx("div",{className:"p-6 h-full flex items-center justify-center",children:r.jsx("span",{className:"font-semibold",children:"Two"})})}function Mb(){return r.jsx("div",{className:"p-6 h-full flex items-center justify-center",children:r.jsx("span",{className:"font-semibold",children:"Three"})})}function Pb(){return r.jsx(r.Fragment,{children:Array.from({length:5}).map((e,t)=>r.jsx(Mc,{children:r.jsx("div",{className:"p-1 flex justify-center",children:r.jsx(wn,{className:"w-24 h-24",children:r.jsx(jn,{className:"p-6 aspect-square flex items-center justify-center",children:r.jsx("span",{className:"text-4xl font-semibold",children:t+1})})})})},t))})}function zb(){return r.jsx("div",{className:"flex justify-center",children:r.jsxs(Dc,{className:"w-full max-w-xs",children:[r.jsx(Tc,{children:r.jsx(Pb,{})}),r.jsx(Pc,{}),r.jsx(zc,{})]})})}function Ib(){return r.jsx("div",{className:"flex flex-col items-center justify-center w-full h-full",children:r.jsx(K0,{children:r.jsxs(Ec,{children:[r.jsx(q0,{href:"#"}),r.jsx(mr,{href:"#",children:"1"}),r.jsx(mr,{href:"#",isActive:!0,children:"2"}),r.jsx(mr,{href:"#",children:"3"}),r.jsx(X0,{}),r.jsx(Y0,{href:"#"})]})})})}function Lb(){return r.jsxs("div",{className:"flex items-center space-x-4",children:[r.jsx(In,{className:"h-12 w-12 rounded-full"}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(In,{className:"h-4 w-[250px]"}),r.jsx(In,{className:"h-4 w-[200px]"})]})]})}const Bb=[{name:"Jan",total:Math.floor(Math.random()*5e3)+1e3},{name:"Feb",total:Math.floor(Math.random()*5e3)+1e3},{name:"Mar",total:Math.floor(Math.random()*5e3)+1e3},{name:"Apr",total:Math.floor(Math.random()*5e3)+1e3},{name:"May",total:Math.floor(Math.random()*5e3)+1e3},{name:"Jun",total:Math.floor(Math.random()*5e3)+1e3},{name:"Jul",total:Math.floor(Math.random()*5e3)+1e3},{name:"Aug",total:Math.floor(Math.random()*5e3)+1e3},{name:"Sep",total:Math.floor(Math.random()*5e3)+1e3},{name:"Oct",total:Math.floor(Math.random()*5e3)+1e3},{name:"Nov",total:Math.floor(Math.random()*5e3)+1e3},{name:"Dec",total:Math.floor(Math.random()*5e3)+1e3}];function Fb(){return r.jsx(Da,{width:"100%",height:100,children:r.jsxs(qi,{data:Bb,children:[r.jsx(Bu,{dataKey:"name",stroke:"#888888",fontSize:12,tickLine:!1,axisLine:!1}),r.jsx(Fu,{stroke:"#888888",fontSize:12,tickLine:!1,axisLine:!1,tickFormatter:e=>`$${e}`}),r.jsx(Yi,{dataKey:"total",fill:"currentColor",radius:[4,4,0,0],className:"fill-primary"})]})})}function Ob(){return r.jsxs(wn,{className:"max-w-md",children:[r.jsx(Wa,{children:r.jsx(Ua,{children:"Overview"})}),r.jsx(jn,{className:"pl-2",children:r.jsx(Fb,{})})]})}const Hb=[{average:400,today:240},{average:300,today:139},{average:200,today:980},{average:278,today:390},{average:189,today:480},{average:239,today:380},{average:349,today:430}];function Vb(){return r.jsx("div",{className:"h-[100px]",children:r.jsx(Da,{width:"100%",height:"100%",children:r.jsxs(Ou,{data:Hb,margin:{top:7,right:10,left:10,bottom:0},children:[r.jsx(Hu,{content:({active:e,payload:t})=>e&&t&&t.length?r.jsx("div",{className:"rounded-lg border bg-background p-2 shadow-sm",children:r.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[r.jsxs("div",{className:"flex flex-col",children:[r.jsx("span",{className:"text-[0.70rem] uppercase text-muted-foreground",children:"Average"}),r.jsx("span",{className:"font-bold text-muted-foreground",children:t[0].value})]}),r.jsxs("div",{className:"flex flex-col",children:[r.jsx("span",{className:"text-[0.70rem] uppercase text-muted-foreground",children:"Today"}),r.jsx("span",{className:"font-bold",children:t[1].value})]})]})}):null}),r.jsx(is,{type:"monotone",strokeWidth:2,dataKey:"average",activeDot:{r:6,style:{fill:"var(--theme-primary)",opacity:.25}},className:"stroke-primary opacity-25"}),r.jsx(is,{type:"monotone",dataKey:"today",strokeWidth:2,activeDot:{r:8,style:{fill:"var(--theme-primary)"}},className:"stroke-primary"})]})})})}function Wb(){return r.jsxs(wn,{children:[r.jsxs(Wa,{children:[r.jsx(Ua,{children:"Exercise Minutes"}),r.jsx(Il,{children:"Your exercise minutes are ahead of where you normally are."})]}),r.jsx(jn,{className:"pb-4",children:r.jsx(Vb,{})})]})}const Ub=[{anchor:"bottom-right",direction:"column",justify:!1,translateX:100,translateY:0,itemsSpacing:0,itemDirection:"left-to-right",itemWidth:80,itemHeight:20,itemOpacity:.75,symbolSize:12,symbolShape:"circle",symbolBorderColor:"rgba(0, 0, 0, .5)",effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}],Gb=({width:e=440,height:t=240,data:n=[]})=>r.jsx("div",{style:{height:t,width:e},children:r.jsx(Dd,{data:n,margin:{top:5,right:0,bottom:5,left:0},xScale:{type:"point"},yScale:{type:"linear",min:"auto",max:"auto",stacked:!0,reverse:!1},yFormat:" >-.2f",curve:"cardinal",axisTop:null,axisRight:null,axisBottom:null,axisLeft:null,enableGridX:!1,enableGridY:!1,enablePoints:!1,pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,isInteractive:!1,legends:Ub})}),Kb=[{id:"japan",color:"hsl(63, 70%, 50%)",data:[{x:"plane",y:287},{x:"helicopter",y:183},{x:"boat",y:112},{x:"train",y:78},{x:"subway",y:47},{x:"bus",y:218},{x:"car",y:106},{x:"moto",y:190},{x:"bicycle",y:88},{x:"horse",y:8},{x:"skateboard",y:248},{x:"others",y:76},{x:"adwawd",y:76},{x:"awdawdd",y:38},{x:"awd",y:42},{x:"adwadadw",y:26},{x:"dadawda",y:76}]}];function qb(){return r.jsxs(Ze,{defaultValue:"charts1",children:[r.jsxs(qe,{children:[r.jsx(ee,{value:"charts1",children:"Overview"}),r.jsx(ee,{value:"charts2",children:"Metric"}),r.jsx(ee,{value:"charts3",children:"Nivo line"})]}),r.jsx(te,{value:"charts1",children:r.jsx(Ob,{})}),r.jsx(te,{value:"charts2",children:r.jsx(Wb,{})}),r.jsx(te,{value:"charts3",children:r.jsx(Gb,{data:Kb})})]})}function Yb(){return r.jsxs("svg",{className:"switch__base-neon",viewBox:"0 0 40 24",width:"40px",height:"24px",children:[r.jsxs("defs",{children:[r.jsxs("filter",{id:"switch-glow",children:[r.jsx("feGaussianBlur",{result:"coloredBlur",stdDeviation:1}),r.jsxs("feMerge",{children:[r.jsx("feMergeNode",{in:"coloredBlur"}),r.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),r.jsxs("linearGradient",{id:"switch-gradient1",x1:0,y1:0,x2:1,y2:0,children:[r.jsx("stop",{offset:"0%",stopColor:"hsl(var(--on-hue1),90%,70%)"}),r.jsx("stop",{offset:"100%",stopColor:"hsl(var(--on-hue2),90%,70%)"})]}),r.jsxs("linearGradient",{id:"switch-gradient2",x1:"0.7",y1:0,x2:"0.3",y2:1,children:[r.jsx("stop",{offset:"25%",stopColor:"hsla(var(--on-hue1),90%,70%,0)"}),r.jsx("stop",{offset:"50%",stopColor:"hsla(var(--on-hue1),90%,70%,0.3)"}),r.jsx("stop",{offset:"100%",stopColor:"hsla(var(--on-hue2),90%,70%,0.3)"})]})]}),r.jsx("path",{fill:"none",filter:"url(#switch-glow)",stroke:"url(#switch-gradient1)",strokeWidth:1,strokeDasharray:"0 104.26 0",strokeDashoffset:"0.01",strokeLinecap:"round",d:"m.5,12C.5,5.649,5.649.5,12,.5h16c6.351,0,11.5,5.149,11.5,11.5s-5.149,11.5-11.5,11.5H12C5.649,23.5.5,18.351.5,12Z"})]})}function Xb(){return r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"switch__knob-shadow"}),r.jsx("span",{className:"switch__knob-container",children:r.jsx("span",{className:"switch__knob",children:r.jsx("svg",{className:"switch__knob-neon",viewBox:"0 0 48 48",width:"48px",height:"48px",children:r.jsx("circle",{fill:"none",stroke:"url(#switch-gradient2)",strokeDasharray:"0 90.32 0 54.19",strokeLinecap:"round",strokeWidth:1,r:23,cx:24,cy:24,transform:"rotate(-112.5,24,24)"})})})})]})}const Jb="[--hue:223] [--off-hue:3] [--on-hue1:123] [--on-hue2:168] [--primary:hsl(var(--hue),90%,50%)] [--trans-dur:0.2s] [--trans-timing:cubic-bezier(0.65,0,0.35,1)] ";function Zb(e){return r.jsxs("label",{className:de(Jb,"switch"),children:[r.jsx("input",{className:"switch__input",type:"checkbox",role:"switch",...e}),r.jsx("span",{className:"switch__base-outer"}),r.jsx("span",{className:"switch__base-inner"}),r.jsx(Yb,{}),r.jsx(Xb,{}),r.jsx("span",{className:"switch__led"}),r.jsx("span",{className:"switch__text",children:"Power"})]})}function Js({className:e,...t}){return r.jsxs("div",{className:de("toggle-wrapper",e),children:[r.jsx("input",{className:"toggle-checkbox",type:"checkbox",...t}),r.jsx("svg",{className:"toggle-icon off",viewBox:"0 0 16 16",children:r.jsx("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8Z"})}),r.jsx("div",{className:"toggle-container",children:r.jsx("div",{className:"toggle-button"})}),r.jsx("svg",{className:"toggle-icon on",viewBox:"0 0 16 16",children:r.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 1 1 16 0zM2 8a6 6 0 1 0 12 0A6 6 0 1 0 2 8zm10 0a4 4 0 1 1-8 0 4 4 0 1 1 8 0z"})})]})}function Qb(){return r.jsxs("div",{className:"flex flex-col space-y-2 text-3xl",children:[r.jsx(Js,{}),r.jsx(Js,{defaultChecked:!0})]})}var Lt=255,Ge=100,sr=e=>{var{r:t,g:n,b:a,a:s}=e,o=Math.max(t,n,a),i=o-Math.min(t,n,a),l=i?o===t?(n-a)/i:o===n?2+(a-t)/i:4+(t-n)/i:0;return{h:60*(l<0?l+6:l),s:o?i/o*Ge:0,v:o/Lt*Ge,a:s}},id=e=>{var{h:t,s:n,l:a,a:s}=ts(e);return"hsla("+t+", "+n+"%, "+a+"%, "+s+")"},or=e=>{var{h:t,s:n,l:a,a:s}=e;return n*=(a<50?a:Ge-a)/Ge,{h:t,s:n>0?2*n/(a+n)*Ge:0,v:a+n,a:s}},ts=e=>{var{h:t,s:n,v:a,a:s}=e,o=(200-n)*a/Ge;return{h:t,s:o>0&&o<200?n*a/Ge/(o<=Ge?o:200-o)*Ge:0,l:o/2,a:s}},ld=e=>{var{r:t,g:n,b:a}=e,s=t<<16|n<<8|a;return"#"+(o=>new Array(7-o.length).join("0")+o)(s.toString(16))},cd=e=>{var{r:t,g:n,b:a,a:s}=e,o=typeof s=="number"&&(s*255|256).toString(16).slice(1);return""+ld({r:t,g:n,b:a,a:s})+(o||"")},Vt=e=>sr(ev(e)),ev=e=>{var t=e.replace("#","");/^#?/.test(e)&&t.length===3&&(e="#"+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var n=new RegExp("[A-Za-z0-9]{2}","g"),[a,s,o=0,i]=e.match(n).map(l=>parseInt(l,16));return{r:a,g:s,b:o,a:(i??255)/Lt}},Dr=e=>{var{h:t,s:n,v:a,a:s}=e,o=t/60,i=n/Ge,l=a/Ge,u=Math.floor(o)%6,c=o-Math.floor(o),f=Lt*l*(1-i),m=Lt*l*(1-i*c),h=Lt*l*(1-i*(1-c));l*=Lt;var p={};switch(u){case 0:p.r=l,p.g=h,p.b=f;break;case 1:p.r=m,p.g=l,p.b=f;break;case 2:p.r=f,p.g=l,p.b=h;break;case 3:p.r=f,p.g=m,p.b=l;break;case 4:p.r=h,p.g=f,p.b=l;break;case 5:p.r=l,p.g=f,p.b=m;break}return p.r=Math.round(p.r),p.g=Math.round(p.g),p.b=Math.round(p.b),O({},p,{a:s})},tv=e=>{var{r:t,g:n,b:a,a:s}=Dr(e);return"rgba("+t+", "+n+", "+a+", "+s+")"},rv=e=>{var{r:t,g:n,b:a}=e;return{r:t,g:n,b:a}},nv=e=>{var{h:t,s:n,l:a}=e;return{h:t,s:n,l:a}},An=e=>ld(Dr(e)),av=e=>cd(Dr(e)),sv=e=>{var{h:t,s:n,v:a}=e;return{h:t,s:n,v:a}},ze=e=>{var t,n,a,s,o,i,l,u;return typeof e=="string"&&rs(e)?(i=Vt(e),l=e):typeof e!="string"&&(i=e),i&&(a=sv(i),o=ts(i),s=Dr(i),u=cd(s),l=An(i),n=nv(o),t=rv(s)),{rgb:t,hsl:n,hsv:a,rgba:s,hsla:o,hsva:i,hex:l,hexa:u}},rs=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e);function Zs(e){var t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useCallback((n,a)=>t.current&&t.current(n,a),[])}var pr=e=>"touches"in e,Qs=e=>{!pr(e)&&e.preventDefault&&e.preventDefault()},eo=function(t,n,a){return n===void 0&&(n=0),a===void 0&&(a=1),t>a?a:t{var n=e.getBoundingClientRect(),a=pr(t)?t.touches[0]:t;return{left:eo((a.pageX-(n.left+window.pageXOffset))/n.width),top:eo((a.pageY-(n.top+window.pageYOffset))/n.height),width:n.width,height:n.height,x:a.pageX-(n.left+window.pageXOffset),y:a.pageY-(n.top+window.pageYOffset)}},ov=["prefixCls","className","onMove","onDown"],dd=v.forwardRef((e,t)=>{var{prefixCls:n="w-color-interactive",className:a,onMove:s,onDown:o}=e,i=Oe(e,ov),l=d.useRef(null),u=d.useRef(!1),[c,f]=d.useState(!1),m=Zs(s),h=Zs(o),p=w=>u.current&&!pr(w)?!1:(u.current=pr(w),!0),g=d.useCallback(w=>{Qs(w);var _=pr(w)?w.touches.length>0:w.buttons>0;_&&l.current?m&&m(to(l.current,w),w):f(!1)},[m]),b=d.useCallback(()=>f(!1),[]),y=d.useCallback(w=>{var _=w?window.addEventListener:window.removeEventListener;_(u.current?"touchmove":"mousemove",g),_(u.current?"touchend":"mouseup",b)},[]);d.useEffect(()=>(y(c),()=>{c&&y(!1)}),[c,y]);var x=d.useCallback(w=>{Qs(w.nativeEvent),p(w.nativeEvent)&&(h&&h(to(l.current,w.nativeEvent),w.nativeEvent),f(!0))},[h]);return r.jsx("div",O({},i,{className:[n,a||""].filter(Boolean).join(" "),style:O({},i.style,{touchAction:"none"}),ref:l,tabIndex:0,onMouseDown:x,onTouchStart:x}))});dd.displayName="Interactive";const ud=dd;var iv=["className","prefixCls","left","top","style","fillProps"],lv=e=>{var{className:t,prefixCls:n,left:a,top:s,style:o,fillProps:i}=e,l=Oe(e,iv),u=O({},o,{position:"absolute",left:a,top:s}),c=O({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},i?.style,{transform:a?"translate(-9px, -1px)":"translate(-1px, -9px)"});return r.jsx("div",O({className:n+"-pointer "+(t||""),style:u},l,{children:r.jsx("div",O({className:n+"-fill"},i,{style:c}))}))},cv=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],dv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",fd=v.forwardRef((e,t)=>{var{prefixCls:n="w-color-alpha",className:a,hsva:s,background:o,bgProps:i={},innerProps:l={},pointerProps:u={},radius:c=0,width:f,height:m=16,direction:h="horizontal",style:p,onChange:g,pointer:b}=e,y=Oe(e,cv),x=K=>{g&&g(O({},s,{a:h==="horizontal"?K.left:K.top}),K)},w=id(Object.assign({},s,{a:1})),_="linear-gradient(to "+(h==="horizontal"?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+w+" 100%)",M={};h==="horizontal"?M.left=s.a*100+"%":M.top=s.a*100+"%";var S=O({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:c,background:"url("+dv+") left center",backgroundColor:"var(--alpha-background-color)"},{width:f,height:m},p,{position:"relative"}),I=b&&typeof b=="function"?b(O({prefixCls:n},u,M)):r.jsx(lv,O({},u,{prefixCls:n},M));return r.jsxs("div",O({},y,{className:[n,n+"-"+h,a||""].filter(Boolean).join(" "),style:S,ref:t,children:[r.jsx("div",O({},i,{style:O({inset:0,position:"absolute",background:o||_,borderRadius:c},i.style)})),r.jsx(ud,O({},l,{style:O({},l.style,{inset:0,zIndex:1,position:"absolute"}),onMove:x,onDown:x,children:I}))]}))});fd.displayName="Alpha";const wa=fd;var uv=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur"],fv=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),mv=e=>Number(String(e).replace(/%/g,"")),md=v.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input",placement:a="bottom",label:s,value:o,className:i,style:l,labelStyle:u,inputStyle:c,onChange:f,onBlur:m}=e,h=Oe(e,uv),[p,g]=d.useState(o),b=d.useRef(!1);d.useEffect(()=>{e.value!==p&&(b.current||g(e.value))},[e.value]);function y(S,I){var K=(I||S.target.value).trim().replace(/^#/,"");fv(K)&&f&&f(S,K);var j=mv(K);isNaN(j)||f&&f(S,j),g(K)}function x(S){b.current=!1,g(e.value),m&&m(S)}var w={};a==="bottom"&&(w.flexDirection="column"),a==="top"&&(w.flexDirection="column-reverse"),a==="left"&&(w.flexDirection="row-reverse");var _=O({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},w,l),M=O({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},c);return r.jsxs("div",{className:[n,i||""].filter(Boolean).join(" "),style:_,children:[r.jsx("input",O({ref:t,value:p,onChange:y,onBlur:x,autoComplete:"off",onFocus:()=>b.current=!0},h,{style:M})),s&&r.jsx("span",{style:O({color:"var(--editable-input-label-color)",textTransform:"capitalize"},u),children:s})]})});md.displayName="EditableInput";const ir=md;var pv=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],pd=v.forwardRef((e,t)=>{var{prefixCls:n="w-color-swatch",className:a,color:s,colors:o=[],style:i,rectProps:l={},onChange:u,addonAfter:c,addonBefore:f,rectRender:m}=e,h=Oe(e,pv),p=O({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},l.style),g=(b,y)=>{u&&u(Vt(b),ze(Vt(b)),y)};return r.jsxs("div",O({ref:t},h,{className:[n,a||""].filter(Boolean).join(" "),style:O({display:"flex",flexWrap:"wrap",position:"relative"},i),children:[f&&v.isValidElement(f)&&f,o&&Array.isArray(o)&&o.map((b,y)=>{var x="",w="";typeof b=="string"&&(x=b,w=b),typeof b=="object"&&b.color&&(x=b.title||b.color,w=b.color);var _=s&&s.toLocaleLowerCase()===w.toLocaleLowerCase(),M=m&&m({title:x,color:w,checked:!!_,style:O({},p,{background:w}),onClick:I=>g(w,I)});if(M)return r.jsx(d.Fragment,{children:M},y);var S=l.children&&v.isValidElement(l.children)?v.cloneElement(l.children,{color:w,checked:_}):null;return r.jsx("div",O({tabIndex:0,title:x,onClick:I=>g(w,I)},l,{children:S,style:O({},p,{background:w})}),y)}),c&&v.isValidElement(c)&&c]}))});pd.displayName="Swatch";const hv=pd;function xv(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var gv={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function bv(e){var{style:t,title:n,checked:a,color:s,onClick:o,rectProps:i}=e,l=d.useRef(null),u=d.useCallback(()=>{l.current.style.zIndex="2",l.current.style.outline="#fff solid 2px",l.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"},[]),c=d.useCallback(()=>{a||(l.current.style.zIndex="0",l.current.style.outline="initial",l.current.style.boxShadow="initial")},[a]),f=a?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return r.jsx("div",O({ref:l,title:n},i,{onClick:o,onMouseEnter:u,onMouseLeave:c,style:O({},t,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},gv,f,i?.style)}))}var vv=["prefixCls","placement","className","style","color","colors","rectProps","onChange","rectRender"],yv=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],ye=function(e){return e.Left="L",e.LeftTop="LT",e.LeftBottom="LB",e.Right="R",e.RightTop="RT",e.RightBottom="RB",e.Top="T",e.TopRight="TR",e.TopLeft="TL",e.Bottom="B",e.BottomLeft="BL",e.BottomRight="BR",e}({}),hd=v.forwardRef((e,t)=>{var{prefixCls:n="w-color-github",placement:a=ye.TopRight,className:s,style:o,color:i,colors:l=yv,rectProps:u={},onChange:c,rectRender:f}=e,m=Oe(e,vv),h=typeof i=="string"&&rs(i)?Vt(i):i,p=i?An(h):"",g=M=>c&&c(ze(M)),b=O({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},o),y={borderStyle:"solid",position:"absolute"},x=O({},y),w=O({},y);/^T/.test(a)&&(x.borderWidth="0 8px 8px",x.borderColor="transparent transparent var(--github-arrow-border-color)",w.borderWidth="0 7px 7px",w.borderColor="transparent transparent var(--github-background-color)"),a===ye.TopRight&&(x.top=-8,w.top=-7),a===ye.Top&&(x.top=-8,w.top=-7),a===ye.TopLeft&&(x.top=-8,w.top=-7),/^B/.test(a)&&(x.borderWidth="8px 8px 0",x.borderColor="var(--github-arrow-border-color) transparent transparent",w.borderWidth="7px 7px 0",w.borderColor="var(--github-background-color) transparent transparent",a===ye.BottomRight&&(x.top="100%",w.top="100%"),a===ye.Bottom&&(x.top="100%",w.top="100%"),a===ye.BottomLeft&&(x.top="100%",w.top="100%")),/^(B|T)/.test(a)&&((a===ye.Top||a===ye.Bottom)&&(x.left="50%",x.marginLeft=-8,w.left="50%",w.marginLeft=-7),(a===ye.TopRight||a===ye.BottomRight)&&(x.right=10,w.right=11),(a===ye.TopLeft||a===ye.BottomLeft)&&(x.left=7,w.left=8)),/^L/.test(a)&&(x.borderWidth="8px 8px 8px 0",x.borderColor="transparent var(--github-arrow-border-color) transparent transparent",w.borderWidth="7px 7px 7px 0",w.borderColor="transparent var(--github-background-color) transparent transparent",x.left=-8,w.left=-7),/^R/.test(a)&&(x.borderWidth="8px 0 8px 8px",x.borderColor="transparent transparent transparent var(--github-arrow-border-color)",w.borderWidth="7px 0 7px 7px",w.borderColor="transparent transparent transparent var(--github-background-color)",x.right=-8,w.right=-7),/^(L|R)/.test(a)&&((a===ye.RightTop||a===ye.LeftTop)&&(x.top=5,w.top=6),(a===ye.Left||a===ye.Right)&&(x.top="50%",w.top="50%",x.marginTop=-8,w.marginTop=-7),(a===ye.LeftBottom||a===ye.RightBottom)&&(x.top="100%",w.top="100%",x.marginTop=-21,w.marginTop=-20));var _=M=>{var S=O({},(xv(M),M)),I=f&&f(O({},S));return I||r.jsx(bv,O({},S,{rectProps:u}))};return r.jsx(hv,O({ref:t,className:[n,s].filter(Boolean).join(" "),colors:l,color:p,rectRender:_},m,{onChange:g,style:b,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:r.jsxs(d.Fragment,{children:[r.jsx("div",{style:x}),r.jsx("div",{style:w})]})}))});hd.displayName="Github";const wv=hd;var jv=e=>{var{className:t,color:n,left:a,top:s,prefixCls:o}=e,i={position:"absolute",top:s,left:a},l={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:n};return d.useMemo(()=>r.jsx("div",{className:o+"-pointer "+(t||""),style:i,children:r.jsx("div",{className:o+"-fill",style:l})}),[s,a,n,t,o])},Nv=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],xd=v.forwardRef((e,t)=>{var n,{prefixCls:a="w-color-saturation",radius:s=0,pointer:o,className:i,hue:l=0,style:u,hsva:c,onChange:f}=e,m=Oe(e,Nv),h=O({width:200,height:200,borderRadius:s},u,{position:"relative"}),p=(b,y)=>{f&&c&&f({h:c.h,s:b.left*100,v:(1-b.top)*100,a:c.a})},g=d.useMemo(()=>{if(!c)return null;var b={top:100-c.v+"%",left:c.s+"%",color:id(c)};return o&&typeof o=="function"?o(O({prefixCls:a},b)):r.jsx(jv,O({prefixCls:a},b))},[c,o,a]);return r.jsx(ud,O({className:[a,i||""].filter(Boolean).join(" ")},m,{style:O({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+((n=c?.h)!=null?n:l)+", 100%, 50%))"},h),ref:t,onMove:p,onDown:p,children:g}))});xd.displayName="Saturation";const Cv=xd;var $v=["prefixCls","className","hue","onChange","direction"],gd=v.forwardRef((e,t)=>{var{prefixCls:n="w-color-hue",className:a,hue:s=0,onChange:o,direction:i="horizontal"}=e,l=Oe(e,$v);return r.jsx(wa,O({ref:t,className:n+" "+(a||"")},l,{direction:i,background:"linear-gradient(to "+(i==="horizontal"?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:s,s:100,v:100,a:s/360},onChange:(u,c)=>{o&&o({h:i==="horizontal"?360*c.left:360*c.top})}}))});gd.displayName="Hue";const _v=gd;var Sv=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],bd=v.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-rgba",hsva:a,placement:s="bottom",rProps:o={},gProps:i={},bProps:l={},aProps:u={},className:c,style:f,onChange:m}=e,h=Oe(e,Sv),p=a?Dr(a):{};function g(y){var x=Number(y.target.value);x&&x>255&&(y.target.value="255"),x&&x<0&&(y.target.value="0")}var b=(y,x,w)=>{typeof y=="number"&&(x==="a"&&(y<0&&(y=0),y>100&&(y=100),m&&m(ze(sr(O({},p,{a:y/100}))))),y>255&&(y=255,w.target.value="255"),y<0&&(y=0,w.target.value="0"),x==="r"&&m&&m(ze(sr(O({},p,{r:y})))),x==="g"&&m&&m(ze(sr(O({},p,{g:y})))),x==="b"&&m&&m(ze(sr(O({},p,{b:y})))))};return r.jsxs("div",O({ref:t,className:[n,c||""].filter(Boolean).join(" ")},h,{style:O({fontSize:11,display:"flex"},f),children:[r.jsx(ir,O({label:"R",value:p.r||0,onBlur:g,placement:s,onChange:(y,x)=>b(x,"r",y)},o,{style:O({},o.style)})),r.jsx(ir,O({label:"G",value:p.g||0,onBlur:g,placement:s,onChange:(y,x)=>b(x,"g",y)},i,{style:O({marginLeft:5},o.style)})),r.jsx(ir,O({label:"B",value:p.b||0,onBlur:g,placement:s,onChange:(y,x)=>b(x,"b",y)},l,{style:O({marginLeft:5},l.style)})),u&&r.jsx(ir,O({label:"A",value:p.a?parseInt(String(p.a*100),10):0,onBlur:g,placement:s,onChange:(y,x)=>b(x,"a",y)},u,{style:O({marginLeft:5},u.style)}))]}))});bd.displayName="EditableInputRGBA";const vd=bd;var kv=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],yd=v.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-hsla",hsva:a,hProps:s={},sProps:o={},lProps:i={},aProps:l={},className:u,onChange:c}=e,f=Oe(e,kv),m=a?ts(a):{h:0,s:0,l:0,a:0},h=(p,g,b)=>{typeof p=="number"&&(g==="h"&&(p<0&&(p=0),p>360&&(p=360),c&&c(ze(or(O({},m,{h:p}))))),g==="s"&&(p<0&&(p=0),p>100&&(p=100),c&&c(ze(or(O({},m,{s:p}))))),g==="l"&&(p<0&&(p=0),p>100&&(p=100),c&&c(ze(or(O({},m,{l:p}))))),g==="a"&&(p<0&&(p=0),p>1&&(p=1),c&&c(ze(or(O({},m,{a:p}))))))};return r.jsx(vd,O({ref:t,hsva:a,rProps:O({label:"H",value:Math.round(m.h)},s,{onChange:(p,g)=>h(g,"h")}),gProps:O({label:"S",value:Math.round(m.s)+"%"},o,{onChange:(p,g)=>h(g,"s")}),bProps:O({label:"L",value:Math.round(m.l)+"%"},i,{onChange:(p,g)=>h(g,"l")}),aProps:O({label:"A",value:Math.round(m.a*100)/100},l,{onChange:(p,g)=>h(g,"a")}),className:[n,u||""].filter(Boolean).join(" ")},f))});yd.displayName="EditableInputHSLA";const Rv=yd;var Ev=["style"];function Av(e){var{style:t}=e,n=Oe(e,Ev),a=d.useRef(null),s=d.useCallback(()=>{a.current.style.backgroundColor="var(--chrome-arrow-background-color)"},[]),o=d.useCallback(()=>{a.current.style.backgroundColor="transparent"},[]);return r.jsx("div",O({ref:a,style:O({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},t)},n,{onMouseEnter:s,onMouseLeave:o,children:r.jsx("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:r.jsx("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}var Dv=["prefixCls","className","style","color","inputType","rectProps","onChange"],We=function(e){return e.HEXA="hexa",e.RGBA="rgba",e.HSLA="hsla",e}({}),wd=v.forwardRef((e,t)=>{var{prefixCls:n="w-color-chrome",className:a,style:s,color:o,inputType:i=We.RGBA,rectProps:l={},onChange:u}=e,c=Oe(e,Dv),f=typeof o=="string"&&rs(o)?Vt(o):o||{h:0,s:0,l:0,a:0},m=_=>u&&u(ze(_)),[h,p]=d.useState(i),g=()=>{h===We.RGBA&&p(We.HSLA),h===We.HSLA&&p(We.HEXA),h===We.HEXA&&p(We.RGBA)},b={paddingTop:6},y={textAlign:"center",paddingTop:4,paddingBottom:4},x=O({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:"column",width:230,padding:0},s),w={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:tv(f),boxShadow:"var(--chrome-alpha-box-shadow)"};return r.jsx(wv,O({ref:t,color:f,style:x,colors:void 0,className:[n,a].filter(Boolean).join(" "),placement:ye.TopLeft},c,{addonAfter:r.jsxs(d.Fragment,{children:[r.jsx(Cv,{hsva:f,style:{width:"100%",height:130},onChange:_=>{m(O({},f,_,{a:f.a}))}}),r.jsxs("div",{style:{padding:15,display:"flex",alignItems:"center"},children:[r.jsx(wa,{width:24,height:24,hsva:f,radius:2,style:{marginRight:15,borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:w},pointer:()=>r.jsx(d.Fragment,{})}),r.jsxs("div",{style:{flex:1},children:[r.jsx(_v,{hue:f.h,style:{width:"100%"},bgProps:{style:{borderRadius:2}},onChange:_=>{m(O({},f,_))}}),r.jsx(wa,{hsva:f,style:{marginTop:10},bgProps:{style:{borderRadius:2}},onChange:_=>{m(O({},f,_))}})]})]}),r.jsxs("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[r.jsxs("div",{style:{flex:1},children:[h==We.RGBA&&r.jsx(vd,{hsva:f,rProps:{labelStyle:b,inputStyle:y},gProps:{labelStyle:b,inputStyle:y},bProps:{labelStyle:b,inputStyle:y},aProps:{labelStyle:b,inputStyle:y},onChange:_=>m(_.hsva)}),h===We.HEXA&&r.jsx(ir,{label:"HEX",labelStyle:b,inputStyle:y,value:f.a>0&&f.a<1?av(f).toLocaleUpperCase():An(f).toLocaleUpperCase(),onChange:(_,M)=>{typeof M=="string"&&m(Vt(/^#/.test(M)?M:"#"+M))}}),h===We.HSLA&&r.jsx(Rv,{hsva:f,hProps:{labelStyle:b,inputStyle:y},sProps:{labelStyle:b,inputStyle:y},lProps:{labelStyle:b,inputStyle:y},aProps:{labelStyle:b,inputStyle:y},onChange:_=>m(_.hsva)})]}),r.jsx(Av,{onClick:g})]})]}),rectRender:()=>r.jsx(d.Fragment,{})}))});wd.displayName="Chrome";const Tv=wd,Mv="mx-1 p-0 w-auto rounded-md overflow-hidden ring-muted-foreground/50 ring-1 ring-offset-1 ring-offset-background isolate z-50",Pv="![--github-background-color:hsla(var(--muted)/.7)]",zv="![--github-border:none] [&>div]:[--github-background-color:transparent] [&>div]:[--github-arrow-border-color:transparent]",Iv="[&_.w-color-saturation-fill]:!size-4 [&_.w-color-saturation-fill]:!-translate-x-2 [&_.w-color-saturation-fill]:!-translate-y-2";function ja({className:e,color:t,onColorChange:n,...a}){const s=or(t);return r.jsxs(Pa,{children:[r.jsx(za,{asChild:!0,children:r.jsx("button",{className:de("size-12 flex-shrink-0 rounded border",e),style:{backgroundColor:An(s)},...a})}),r.jsx(gn,{className:Mv,children:r.jsx(Tv,{color:s,onChange:n,inputType:We.HEXA,className:`${Pv} ${zv} ${Iv}`})})]})}function Lv(){const[e,t]=d.useState(ze("#2719D5").hsla),[n,a]=d.useState(ze("#FFA121").hsla);return r.jsx("div",{children:r.jsxs("div",{className:"flex flex-col gap-1",children:[r.jsx(ja,{color:e,onColorChange:s=>{t(s.hsla)}}),r.jsx(ja,{color:n,onColorChange:s=>{a(s.hsla)}})]})})}const Bv=["#e2e2e2","#ff75c3","#ffa647","#ffe83f","#9fff5b","#70e2ff","#cd93ff","#09203f"];function Fv({background:e,setBackground:t}){return r.jsx(te,{value:"solid",className:"mt-0 flex flex-wrap gap-1",children:Bv.map(n=>r.jsx("div",{style:{background:n},className:"h-6 w-6 cursor-pointer rounded-md active:scale-105",onClick:()=>t(n)},n))})}const jd=({background:e,children:t})=>r.jsx("div",{className:"relative rounded-md !bg-cover !bg-center p-0.5 transition-all",style:{background:e},children:r.jsx("div",{className:"rounded-md bg-popover/80 p-1 text-center text-xs",children:t})}),Ov=["linear-gradient(to bottom right,#accbee,#e7f0fd)","linear-gradient(to bottom right,#d5d4d0,#d5d4d0,#eeeeec)","linear-gradient(to bottom right,#000000,#434343)","linear-gradient(to bottom right,#09203f,#537895)","linear-gradient(to bottom right,#ac32e4,#7918f2,#4801FF)","linear-gradient(to bottom right,#f953c6,#b91d73)","linear-gradient(to bottom right,#ee0979,#ff6a00)","linear-gradient(to bottom right,#f00000,#dc281e)","linear-gradient(to bottom right,#00c6ff,#0072ff)","linear-gradient(to bottom right,#4facfe,#00f2fe)","linear-gradient(to bottom right,#0ba360,#3cba92)","linear-gradient(to bottom right,#fdfc47,#24fe41)","linear-gradient(to bottom right,#8a2be2,#0000cd,#228b22,#ccff00)","linear-gradient(to bottom right,#40e0d0,#ff8c00,#ff0080)","linear-gradient(to bottom right,#fcc5e4,#fda34b,#ff7882,#c8699e,#7046aa,#0c1db8,#020f75)","linear-gradient(to bottom right,#ff75c3,#ffa647,#ffe83f,#9fff5b,#70e2ff,#cd93ff)"];function Hv({background:e,setBackground:t}){return r.jsxs(te,{value:"gradient",className:"mt-0",children:[r.jsx("div",{className:"mb-2 flex flex-wrap gap-1",children:Ov.map(n=>r.jsx("div",{style:{background:n},className:"h-6 w-6 cursor-pointer rounded-md active:scale-105",onClick:()=>t(n)},n))}),r.jsxs(jd,{background:e,children:["💡 Get more at"," ",r.jsx("a",{href:"https://gradient.page/css/ui-gradients",className:"font-bold hover:underline",target:"_blank",children:"GradientPage"})]})]})}const Vv=""+new URL("1_beautiful-blue-001-BN32iEVL.jpg",import.meta.url).href,Wv=""+new URL("2_pretty-in-pink-005-iM5RfYRQ.jpg",import.meta.url).href,Uv=""+new URL("3_vibrant-vista-004-wMjFmYoa.jpg",import.meta.url).href,Gv=""+new URL("4_deep-dusk-003-3xvTILTq.jpg",import.meta.url).href,Kv=[`url(${Vv})`,`url(${Wv})`,`url(${Uv})`,`url(${Gv})`];function qv({background:e,setBackground:t}){return r.jsxs(te,{value:"image",className:"mt-0",children:[r.jsx("div",{className:"mb-2 grid grid-cols-2 gap-1",children:Kv.map(n=>r.jsx("div",{style:{backgroundImage:n},className:"h-12 w-full cursor-pointer rounded-md bg-cover bg-center active:scale-105",onClick:()=>t(n)},n))}),r.jsxs(jd,{background:e,children:["🔓 Get more"," ",r.jsx("a",{href:"https://gradient.page/wallpapers",className:"font-bold hover:underline",target:"_blank",children:"wallpapers"}),r.jsx("br",{}),r.jsxs("div",{className:"text-[10px]",children:["App dev? Refer ",r.jsx("a",{href:"https://gradient.page/affiliate",className:"font-bold hover:underline",target:"_blank",children:"GradientPage"}),", get 80%"]})]})]})}function Yv({background:e,className:t}){return r.jsx(za,{asChild:!0,children:r.jsx(pe,{variant:"outline",className:N("w-[220px] justify-start text-left font-normal",!e&&"text-muted-foreground",t),children:r.jsxs("div",{className:"flex w-full items-center gap-2",children:[e?r.jsx("div",{className:"h-4 w-4 rounded !bg-cover !bg-center transition-all",style:{background:e}}):r.jsx(jl,{className:"h-4 w-4"}),r.jsx("div",{className:"flex-1 truncate",children:e||"Pick a color"})]})})})}function Xv({background:e,setBackground:t,className:n}){const a=d.useMemo(()=>e.includes("url")?"image":e.includes("gradient")?"gradient":"solid",[e]);return r.jsxs(Pa,{children:[r.jsx(Yv,{className:n,background:e}),r.jsxs(gn,{className:"w-64",children:[r.jsxs(Ze,{defaultValue:a,className:"w-full",children:[r.jsxs(qe,{className:"mb-4 w-full",children:[r.jsx(ee,{className:"flex-1",value:"solid",children:"Solid"}),r.jsx(ee,{className:"flex-1",value:"gradient",children:"Gradient"}),r.jsx(ee,{className:"flex-1",value:"image",children:"Image"})]}),r.jsx(Fv,{background:e,setBackground:t}),r.jsx(Hv,{background:e,setBackground:t}),r.jsx(qv,{background:e,setBackground:t})]}),r.jsx(xr,{className:"col-span-2 mt-4 h-8",value:e,onChange:s=>t(s.currentTarget.value)})]})]})}const Jv="linear-gradient(to right, #283048,#859398 )";function Zv(){const[e,t]=d.useState(Jv);return r.jsx("div",{className:"preview flex items-center justify-center rounded !bg-cover !bg-center p-10 transition-all",style:{background:e},children:r.jsx(Xv,{background:e,setBackground:t})})}var Qv={grad:.9,turn:360,rad:360/(2*Math.PI)},tt=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},_e=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Fe=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Nd=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ro=function(e){return{r:Fe(e.r,0,255),g:Fe(e.g,0,255),b:Fe(e.b,0,255),a:Fe(e.a)}},Zn=function(e){return{r:_e(e.r),g:_e(e.g),b:_e(e.b),a:_e(e.a,3)}},e1=/^#([0-9a-f]{3,8})$/i,Ur=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Cd=function(e){var t=e.r,n=e.g,a=e.b,s=e.a,o=Math.max(t,n,a),i=o-Math.min(t,n,a),l=i?o===t?(n-a)/i:o===n?2+(a-t)/i:4+(t-n)/i:0;return{h:60*(l<0?l+6:l),s:o?i/o*100:0,v:o/255*100,a:s}},$d=function(e){var t=e.h,n=e.s,a=e.v,s=e.a;t=t/360*6,n/=100,a/=100;var o=Math.floor(t),i=a*(1-n),l=a*(1-(t-o)*n),u=a*(1-(1-t+o)*n),c=o%6;return{r:255*[a,l,i,i,u,a][c],g:255*[u,a,a,l,i,i][c],b:255*[i,i,u,a,a,l][c],a:s}},no=function(e){return{h:Nd(e.h),s:Fe(e.s,0,100),l:Fe(e.l,0,100),a:Fe(e.a)}},ao=function(e){return{h:_e(e.h),s:_e(e.s),l:_e(e.l),a:_e(e.a,3)}},so=function(e){return $d((n=(t=e).s,{h:t.h,s:(n*=((a=t.l)<50?a:100-a)/100)>0?2*n/(a+n)*100:0,v:a+n,a:t.a}));var t,n,a},hr=function(e){return{h:(t=Cd(e)).h,s:(s=(200-(n=t.s))*(a=t.v)/100)>0&&s<200?n*a/100/(s<=100?s:200-s)*100:0,l:s/2,a:t.a};var t,n,a,s},t1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,r1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,n1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,a1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Na={string:[[function(e){var t=e1.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?_e(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?_e(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=n1.exec(e)||a1.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ro({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=t1.exec(e)||r1.exec(e);if(!t)return null;var n,a,s=no({h:(n=t[1],a=t[2],a===void 0&&(a="deg"),Number(n)*(Qv[a]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return so(s)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,a=e.b,s=e.a,o=s===void 0?1:s;return tt(t)&&tt(n)&&tt(a)?ro({r:Number(t),g:Number(n),b:Number(a),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,a=e.l,s=e.a,o=s===void 0?1:s;if(!tt(t)||!tt(n)||!tt(a))return null;var i=no({h:Number(t),s:Number(n),l:Number(a),a:Number(o)});return so(i)},"hsl"],[function(e){var t=e.h,n=e.s,a=e.v,s=e.a,o=s===void 0?1:s;if(!tt(t)||!tt(n)||!tt(a))return null;var i=function(l){return{h:Nd(l.h),s:Fe(l.s,0,100),v:Fe(l.v,0,100),a:Fe(l.a)}}({h:Number(t),s:Number(n),v:Number(a),a:Number(o)});return $d(i)},"hsv"]]},oo=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=Zn(this.rgba),n=t.r,a=t.g,s=t.b,i=(o=t.a)<1?Ur(_e(255*o)):"","#"+Ur(n)+Ur(a)+Ur(s)+i;var t,n,a,s,o,i},e.prototype.toRgb=function(){return Zn(this.rgba)},e.prototype.toRgbString=function(){return t=Zn(this.rgba),n=t.r,a=t.g,s=t.b,(o=t.a)<1?"rgba("+n+", "+a+", "+s+", "+o+")":"rgb("+n+", "+a+", "+s+")";var t,n,a,s,o},e.prototype.toHsl=function(){return ao(hr(this.rgba))},e.prototype.toHslString=function(){return t=ao(hr(this.rgba)),n=t.h,a=t.s,s=t.l,(o=t.a)<1?"hsla("+n+", "+a+"%, "+s+"%, "+o+")":"hsl("+n+", "+a+"%, "+s+"%)";var t,n,a,s,o},e.prototype.toHsv=function(){return t=Cd(this.rgba),{h:_e(t.h),s:_e(t.s),v:_e(t.v),a:_e(t.a,3)};var t},e.prototype.invert=function(){return rt({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),rt(Qn(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),rt(Qn(this.rgba,-t))},e.prototype.grayscale=function(){return rt(Qn(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),rt(io(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),rt(io(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?rt({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):_e(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=hr(this.rgba);return typeof t=="number"?rt({h:t,s:n.s,l:n.l,a:n.a}):_e(n.h)},e.prototype.isEqual=function(t){return this.toHex()===rt(t).toHex()},e}(),rt=function(e){return e instanceof Le?e:new Le(e)},lo=[],o1=function(e){e.forEach(function(t){lo.indexOf(t)<0&&(t(Le,Na),lo.push(t))})},ta=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},ra=function(e){return .2126*ta(e.r)+.7152*ta(e.g)+.0722*ta(e.b)};function i1(e){e.prototype.luminance=function(){return t=ra(this.rgba),(n=2)===void 0&&(n=0),a===void 0&&(a=Math.pow(10,n)),Math.round(a*t)/a+0;var t,n,a},e.prototype.contrast=function(t){t===void 0&&(t="#FFF");var n,a,s,o,i,l,u,c=t instanceof e?t:new e(t);return o=this.rgba,i=c.toRgb(),l=ra(o),u=ra(i),n=l>u?(l+.05)/(u+.05):(u+.05)/(l+.05),(a=2)===void 0&&(a=0),s===void 0&&(s=Math.pow(10,a)),Math.floor(s*n)/s+0},e.prototype.isReadable=function(t,n){return t===void 0&&(t="#FFF"),n===void 0&&(n={}),this.contrast(t)>=(l=(i=(a=n).size)===void 0?"normal":i,(o=(s=a.level)===void 0?"AA":s)==="AAA"&&l==="normal"?7:o==="AA"&&l==="large"?3:4.5);var a,s,o,i,l}}function l1(e){var t={analogous:[-30,0,30],complementary:[0,180],"double-split-complementary":[-30,0,30,150,210],rectangle:[0,60,180,240],tetradic:[0,90,180,270],triadic:[0,120,240],"split-complementary":[0,150,210]};e.prototype.harmonies=function(n){var a=this;return n===void 0&&(n="complementary"),t[n].map(function(s){return a.rotate(s)})}}o1([i1,l1]);const se={number:{int:e=>Math.floor(Math.random()*(e.max-e.min+1))+e.min,float:e=>Math.random()*(e.max-e.min)+e.min},datatype:{boolean:()=>Math.random()<.5},helpers:{arrayElement:e=>e[Math.floor(Math.random()*e.length)]}};function c1(){return{h:se.number.int({min:0,max:360}),s:se.number.int({min:0,max:100}),l:se.number.int({min:10,max:90})}}function d1(e){return{h:e,s:se.number.int({min:30,max:70}),l:se.number.int({min:98,max:100})}}function u1(e){return{h:e,s:se.number.int({min:30,max:60}),l:se.number.int({min:0,max:4})}}function f1(e){return{h:e,s:se.number.int({min:50,max:80}),l:se.number.int({min:0,max:5})}}function m1(e){return{h:e,s:se.number.int({min:10,max:40}),l:se.number.int({min:97,max:100})}}function p1(){return new Le({h:se.number.int({min:0,max:22}),s:se.number.int({min:80,max:100}),l:se.number.int({min:20,max:45})})}const h1=["complementary","triadic","analogous","slick"];function co(e,t,n,a){switch(t){case"triadic":{const[,s,o]=e.harmonies(t);if(!s||!o)throw new Error("Failed to create harmony");return{secondary:s,accent:o}}case"complementary":{const[,s]=e.harmonies(t);if(!s)throw new Error("Failed to create harmony");return{secondary:s,accent:s}}case"analogous":{const[s,,o]=e.harmonies(t);if(!s||!o)throw new Error("Failed to create harmony");return{secondary:s,accent:o}}case"slick":if(a){const s=se.number.int({min:0,max:20}),o=se.number.int({min:8,max:20}),i=new Le({h:e.hue(),s,l:o});return{secondary:i,accent:n?i:i.saturate(se.number.float({min:.05,max:.1})).lighten(se.number.float({min:.05,max:.1}))}}else{const s=se.number.int({min:0,max:20}),o=se.number.int({min:80,max:92}),i=new Le({h:e.hue(),s,l:o});return{secondary:i,accent:n?i:i.darken(se.number.float({min:.05,max:.1})).saturate(se.number.float({min:.05,max:.1}))}}default:{const s=t;throw new Error(`Invalid mode ${s}`)}}}function mt(e){const t=e.isLight();let n=e,a=0;for(;n.contrast(e)<6&&(n=t?n.darken(.2):n.lighten(.2),!(a++>10)););return n}function je(e){const t=e.toHsl();return{h:t.h,s:t.s,l:t.l}}function ns(e){const t=new Le(e??c1()),n=t,a=t,s=je(n),o=je(a),i=je(mt(n)),l=je(mt(a)),u=u1(t.hue()),c=d1(t.hue()),f=m1(t.hue()),m=f1(t.hue()),h=se.datatype.boolean(),p=h?je(new Le(c).darken(.01)):c,g=h?je(new Le(u).lighten(.01)):u,b=h?je(new Le(m).darken(.01)):m,y=h?je(new Le(f).lighten(.01)):f,x=se.datatype.boolean(),w=x?p:c,_=x?g:u,M=x?b:m,S=x?y:f,I=se.helpers.arrayElement(h1),K=se.datatype.boolean(),j=co(n,I,K,!1),C=je(j.secondary),A=je(mt(j.secondary)),$=je(j.accent),T=je(mt(j.accent)),z=co(a,I,K,!0),k=je(z.secondary),L=je(mt(z.secondary)),W=je(z.accent),G=je(mt(z.accent)),U=p1(),Y=je(U),P={h:Y.h,s:Y.s,l:se.number.int({min:45,max:60})},F=je(mt(U)),R=je(mt(new Le(P))),E={s:se.number.int({min:5,max:40}),l:se.number.int({min:0,max:10})},B={h:C.h,s:E.s,l:85+E.l},H={h:k.h,s:E.s,l:15-E.l},D={s:se.number.int({min:0,max:15}),l:se.number.int({min:0,max:15})},X={h:B.h,s:D.s,l:25+D.l},Q={h:H.h,s:D.s,l:75-D.l},ue={s:se.number.int({min:2,max:15}),l:se.number.int({min:5,max:10})},ve={h:c.h,s:ue.s,l:c.l-ue.l},fe={h:u.h,s:ue.s,l:se.number.int({min:10,max:15})};return{light:{background:c,foreground:m,card:p,cardForeground:b,popover:w,popoverForeground:M,primary:s,primaryForeground:i,secondary:C,secondaryForeground:A,accent:$,accentForeground:T,destructive:Y,destructiveForeground:F,muted:B,mutedForeground:X,border:ve,input:ve,ring:s},dark:{background:u,foreground:f,card:g,cardForeground:y,popover:_,popoverForeground:S,primary:o,primaryForeground:l,secondary:k,secondaryForeground:L,accent:W,accentForeground:G,destructive:P,destructiveForeground:R,muted:H,mutedForeground:Q,border:fe,input:fe,ring:o}}}const x1=Object.freeze(Object.defineProperty({__proto__:null,createThemeConfig:ns},Symbol.toStringTag,{value:"Module"}));function _d(){const{theme:e}=it(ce);return e}const g1=()=>_d(),Sd=Qa(ns());function Dn(){return ga(Sd)}function kd(){const e=g1(),t=rd(Sd);return e?t[e]:null}function Rd({label:e,themeKey:t}){const n=_d(),a=Dn(),s=kd();if(!s)return null;const o=s[t];function i(l,u){if(!n)return;const c={...s,[l]:u};a(f=>({...f,[n]:c}))}return r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ja,{color:{...o,a:1},onColorChange:l=>{const u=l.hsl,c=Number(u.h.toFixed(2)),f=Number(u.s.toFixed(2)),m=Number(u.l.toFixed(2));i(t,{h:c,s:f,l:m})},className:"size-6"}),r.jsx(an,{className:"flex-shrink-0",children:e})]})}function b1(){return r.jsx("div",{className:"flex flex-col gap-3 py-4",children:v1.map(({label:e,themeKey:t})=>r.jsx(Rd,{label:e,themeKey:t},t))})}const v1=[{label:"Background",themeKey:"background"},{label:"Foreground",themeKey:"foreground"},{label:"Card",themeKey:"card"},{label:"Card Foreground",themeKey:"cardForeground"},{label:"Popover",themeKey:"popover"},{label:"Popover Foreground",themeKey:"popoverForeground"},{label:"Primary",themeKey:"primary"},{label:"Primary Foreground",themeKey:"primaryForeground"},{label:"Secondary",themeKey:"secondary"},{label:"Secondary Foreground",themeKey:"secondaryForeground"},{label:"Muted",themeKey:"muted"},{label:"Muted Foreground",themeKey:"mutedForeground"},{label:"Accent",themeKey:"accent"},{label:"Accent Foreground",themeKey:"accentForeground"},{label:"Destructive",themeKey:"destructive"},{label:"Destructive Foreground",themeKey:"destructiveForeground"},{label:"Border",themeKey:"border"},{label:"Input",themeKey:"input"},{label:"Ring",themeKey:"ring"}];var y1=function(e,t,n){if(n||arguments.length===2)for(var a=0,s=t.length,o;a{const t=e.split(/\r?\n/),n=j1(C1),a=[],s=[];let o=0,i=!1;for(const l of t){l.includes(".dark")&&(i=!0),l.includes("}")&&(i=!1);const u=l.trim();if(u.startsWith("--")){const[c,f]=u.split(":");if(!c){o++;continue}const m=n[c.replace("--","")];if(!m)continue;if(!f){o++;continue}const h=f.trim().replace(";","").replaceAll("%","").split(" ");if(h.length!==3){o++;continue}const[p,g,b]=h;if(!p||!g||!b){o++;continue}const y=Number(p),x=Number(g),w=Number(b);if(isNaN(y)||isNaN(x)||isNaN(w)){o++;continue}const _={h:y,s:x,l:w};if(i){s.push([m,_]);continue}a.push([m,_])}}return{light:un.strict(a),dark:un.strict(s),errors:o}};function _1(){return typeof navigator>"u"?!1:navigator.platform.toUpperCase().indexOf("MAC")>=0}function S1(){const e=Dn(),t=d.useCallback(n=>{const a=$1(n);e(s=>({dark:{...s.dark,...a.dark},light:{...s.light,...a.light}})),a.errors>0?pa.warning("Some values were invalid and were not pasted."):pa.success("Theme pasted successfully! 🎉")},[e]);return d.useEffect(()=>{function n(a){const s=a?.clipboardData?.getData("text");s&&t(s)}return window.addEventListener("paste",n),()=>{window.removeEventListener("paste",n)}},[t]),r.jsxs("div",{className:"flex flex-col items-center border border-dotted px-2 py-4 text-center",children:[r.jsx("p",{className:"text-sm",children:"Paste existing theme"}),r.jsxs("p",{className:"mx-auto flex rounded-pill font-mono text-sm text-muted-foreground",children:[_1()?"⌘":"Ctrl"," + V"]})]})}function k1(){const e=kd(),t=Dn();return e?r.jsxs("div",{className:"border border-dotted px-2 py-4",children:[r.jsx("p",{className:"text-sm font-medium",children:"Generate theme"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Based on the primary color"}),r.jsxs("div",{className:"flex items-center justify-between gap-1 py-2",children:[r.jsx(Rd,{label:"Primary",themeKey:"primary"}),r.jsx(pe,{className:"h-auto px-4 py-1 text-sm",onClick:()=>t(ns(e.primary)),children:"Generate"})]})]}):null}function R1(){return r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"text-lg font-semibold leading-none tracking-tight",children:"Customize Theme"}),r.jsx(vn,{className:"my-4 h-72",children:r.jsx(b1,{})}),r.jsx("div",{children:r.jsx(S1,{})}),r.jsx("div",{className:"pt-8",children:r.jsx(k1,{})})]})}function E1(){return r.jsxs(Pa,{children:[r.jsx(za,{asChild:!0,children:r.jsxs(pe,{variant:"outline",children:[r.jsx(jl,{className:"size-4"}),r.jsx("span",{className:"sr-only",children:"Customize"})]})}),r.jsxs(gn,{className:"w-auto min-w-96 max-h-[720px] bg-muted overflow-auto smallscroll",children:[" ",r.jsx(R1,{})]})]})}const A1="modulepreload",D1=function(e,t){return new URL(e,t).href},uo={},T1=function(t,n,a){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");s=Promise.all(n.map(i=>{if(i=D1(i,a),i in uo)return;uo[i]=!0;const l=i.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(!!a)for(let m=o.length-1;m>=0;m--){const h=o[m];if(h.href===i&&(!l||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${u}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":A1,l||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),l)return new Promise((m,h)=>{f.addEventListener("load",m),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})}))}return s.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},M1=({className:e})=>{const t=Dn();return r.jsxs(qm,{children:[r.jsx(Ym,{asChild:!0,children:r.jsx(pe,{asChild:!0,variant:"outline",className:de(e),children:r.jsxs("button",{onClick:async()=>{const n=(await T1(()=>Promise.resolve().then(()=>x1),void 0,import.meta.url)).createThemeConfig,a=n();t(a)},className:"flex items-center gap-2",children:[r.jsx(Lm,{className:"size-4"}),"Random Theme"]})})}),r.jsx(Cl,{children:"Generate Random theme"})]})};function P1({value:e,defaultValue:t,onValueChange:n,options:a}){return r.jsxs(zf,{value:e,onValueChange:n,defaultValue:t,children:[r.jsx(ol,{className:"h-8 text-xs",children:r.jsx(If,{placeholder:"Theme"})}),r.jsx(il,{children:a.map(s=>r.jsx(ll,{className:"text-xs",value:s.value,children:s.label},s.value))})]})}const z1=Cr.cPaths.map(e=>({label:e,value:e}));function I1(){const e=it(ce.xArrowsState);return r.jsxs("div",{className:"absolute right-2 top-1 w-40 text-xs text-muted-foreground flex flex-col gap-2",children:[r.jsxs("div",{className:"pt-2 flex items-center gap-2",children:[r.jsx("div",{className:"text-nowrap",children:"Path style"}),r.jsx(P1,{defaultValue:Cr.cPaths[0],value:e.path,onValueChange:t=>ce.xArrowsState.path=t,options:z1})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"text-nowrap",children:"Stroke width"}),r.jsx(Nl,{min:1,max:10,step:1,value:[e.strokeWidth],className:"[&>.track]:h-px",onValueChange:t=>ce.xArrowsState.strokeWidth=t[0]}),r.jsx("div",{className:"text-[.65rem]",children:e.strokeWidth})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Bt,{checked:e.animate,onCheckedChange:t=>ce.xArrowsState.animate=!!t}),"Animate on initial draw"]}),r.jsx("div",{className:"mt-2",children:"You can drag items within the designated area"}),r.jsx("div",{className:"",children:r.jsx(pe,{variant:"outline",onClick:()=>ce.xArrowsState.boxes.push({label:`elem${e.boxes.length+1}`,x:0,y:0,id:Au.asRelativeNumber()}),children:"Add item"})})]})}function L1({box1Ref:e,box2Ref:t}){const n=it(ce.xArrowsState);return r.jsx(Du,{start:e,end:t,color:"hsl(var(--muted-foreground))",strokeWidth:n.strokeWidth,dashness:{strokeLen:8,nonStrokeLen:3},animateDrawing:n.animate,path:n.path})}const B1="inline-block m-2 p-4 bg-muted-foreground/20 border-muted-foreground border rounded select-none cursor-default",fo=d.forwardRef(({label:e,dragOptions:t},n)=>{const a=Cr.useXarrow(),s=d.useRef(null);function o(i,l){const{x:u,y:c}=l;console.log(`${e} uses translate(${u}px, ${c}px)`),a()}return r.jsx(Xi,{onDrag:a,onStop:o,nodeRef:s,bounds:"parent",...t,children:r.jsx("div",{ref:Ki([n,s]),className:B1,children:e})})});function F1(){const e=d.useRef(null),t=d.useRef(null);return r.jsxs("div",{className:"h-[240px] relative bg-muted rounded overflow-hidden",children:[r.jsx(I1,{}),r.jsxs(Cr.Xwrapper,{children:[r.jsx(fo,{ref:e,label:"elem1",dragOptions:{defaultPosition:{x:0,y:0}}}),r.jsx(fo,{ref:t,label:"elem2",dragOptions:{defaultPosition:{x:140,y:160}}}),r.jsx(L1,{box1Ref:e,box2Ref:t})]})]})}const O1="inline-block m-2 p-4 bg-muted-foreground/20 border-muted-foreground border rounded select-none cursor-default";d.forwardRef(({label:e,boxId:t,dragOptions:n},a)=>{const s=Cr.useXarrow(),o=d.useRef(null);function i(l,u){const{x:c,y:f}=u;console.log(`${e} uses translate(${c}px, ${f}px)`),s()}return r.jsx(Xi,{onDrag:s,onStop:i,nodeRef:o,bounds:"parent",...n,children:r.jsx("div",{ref:Ki([a,o]),className:O1,onClick:l=>{if(l.ctrlKey){const u=ce.xArrowsState.boxes.findIndex(c=>c.id===t);u>-1&&ce.xArrowsState.boxes.splice(u,1)}},children:e})})});const H1="_flip_1dcm9_25",V1="_flipTop_1dcm9_1",W1="_flipBottom_1dcm9_1",Be={"flip-clock":"_flip-clock_1dcm9_25","flip-clock__piece":"_flip-clock__piece_1dcm9_49","flip-clock__slot":"_flip-clock__slot_1dcm9_71","flip-card":"_flip-card_1dcm9_83","flip-card__top":"_flip-card__top_1dcm9_123","flip-card__bottom":"_flip-card__bottom_1dcm9_125","flip-card__back-bottom":"_flip-card__back-bottom_1dcm9_127","flip-card__back":"_flip-card__back_1dcm9_127",flip:H1,flipTop:V1,flipBottom:W1};function Gr({newNumber:e,label:t,className:n,...a}){const s=d.useRef(null),[o,i]=d.useState(e),[l,u]=d.useState(e);return d.useEffect(()=>{o!==e&&(u(o),i(e),s.current?.classList.remove(Be.flip),s.current?.offsetHeight,s.current?.classList.add(Be.flip))},[e]),r.jsxs("span",{ref:s,className:de(Be["flip-clock__piece"],Be.flip,n),...a,children:[r.jsx(U1,{currentNumber:o,previousNumber:l}),r.jsx("span",{className:Be["flip-clock__slot"],children:t})]})}function U1({currentNumber:e,previousNumber:t}){const n=e.toString().padStart(2,"0"),a=t.toString().padStart(2,"0");return r.jsxs("span",{className:`${Be["flip-clock__card"]} ${Be["flip-card"]}`,children:[r.jsx("b",{className:Be["flip-card__top"],children:n}),r.jsx("b",{className:Be["flip-card__bottom"],"data-value":n}),r.jsx("b",{className:Be["flip-card__back"],"data-value":a}),r.jsx("b",{className:Be["flip-card__back-bottom"],"data-value":a})]})}const Kr=["Days","Hours","Minutes","Seconds"];function G1(e){return[Math.floor(e/(1e3*60*60*24)),Math.floor(e/(1e3*60*60)%24),Math.floor(e/1e3/60%60),Math.floor(e/1e3%60)]}function K1({initialTime:e,add:t=!1}){const[n,a]=d.useState(e),[s,o]=d.useState(!0),i=d.useMemo(()=>G1(n),[n]);return d.useEffect(()=>{if(!s)return;const l=setInterval(()=>a(u=>u+(t?1:-1)*1e3),1e3);return()=>clearInterval(l)},[s]),r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsx(pe,{variant:"outline",size:"sm",onClick:()=>o(!s),children:s?"Stop":"Start"}),r.jsxs("div",{className:Be["flip-clock"],"data-date":"2017-02-11",children:[r.jsx(Gr,{label:Kr[0],newNumber:i[0]}),r.jsx(Gr,{label:Kr[1],newNumber:i[1]}),r.jsx(Gr,{label:Kr[2],newNumber:i[2]}),r.jsx(Gr,{label:Kr[3],newNumber:i[3]})]})]})}function q1(){const[e]=d.useState(()=>(new Date().getTime()-new Date().getTimezoneOffset()*60*1e3)%864e5);return r.jsx("div",{className:"flex items-center justify-center",children:r.jsx(K1,{initialTime:e})})}function Y1(){return r.jsxs(Ze,{defaultValue:"switch1",children:[r.jsxs(qe,{children:[r.jsx(ee,{value:"switch1",children:"Neon switch"}),r.jsx(ee,{value:"switch2",children:"Styled switch"})]}),r.jsx(te,{value:"switch1",children:r.jsx(Zb,{})}),r.jsx(te,{value:"switch2",children:r.jsx(Qb,{})})]})}function X1(){return r.jsxs(Ze,{defaultValue:"controls1",children:[r.jsxs(qe,{children:[r.jsx(ee,{value:"controls1",children:"Switches"}),r.jsx(ee,{value:"controls2",children:"Carousel"}),r.jsx(ee,{value:"controls3",children:"Pagination"}),r.jsx(ee,{value:"controls4",children:"Skeleton"}),r.jsx(ee,{value:"controls5",children:"Charts"})]}),r.jsx(te,{value:"controls1",children:r.jsx(Y1,{})}),r.jsx(te,{value:"controls2",children:r.jsx(zb,{})}),r.jsx(te,{value:"controls3",children:r.jsx(Ib,{})}),r.jsx(te,{value:"controls4",children:r.jsx(Lb,{})}),r.jsx(te,{value:"controls5",children:r.jsx(qb,{})})]})}function J1(){return r.jsx("div",{children:r.jsx(pe,{variant:"outline",onClick:()=>{Rc({title:"Too many requests, please try again later"})},children:"Radix toast"})})}const mo=["success","info","warning","error","message","loading"];function Z1(){const e=mo[Math.floor(Math.random()*mo.length)],t=`Event has been created as "${e}" toast`,n=`Today ${new Date().toLocaleString().replace(/\//g,".")}`,a={label:"Undo",onClick:()=>console.log("Undo")};pa[e](t,{description:n,action:a})}function Q1(){return r.jsx(pe,{variant:"outline",onClick:()=>{Z1()},children:"Sonner toast"})}const ey=[{goal:400},{goal:300},{goal:200},{goal:300},{goal:200},{goal:278},{goal:189},{goal:239},{goal:300},{goal:200},{goal:278},{goal:189},{goal:349}];function ty(){const[e,t]=d.useState(350);function n(a){t(Math.max(200,Math.min(400,e+a)))}return r.jsxs("div",{className:"p-4 pb-0",children:[r.jsxs("div",{className:"flex items-center justify-center space-x-2",children:[r.jsxs(pe,{variant:"outline",size:"icon",className:"shrink-0 w-8 h-8 rounded-full",disabled:e<=200,onClick:()=>n(-10),children:[r.jsx(Cu,{className:"w-4 h-4"}),r.jsx("span",{className:"sr-only",children:"Decrease"})]}),r.jsxs("div",{className:"flex-1 text-center",children:[r.jsx("div",{className:"text-7xl font-bold tracking-tighter",children:e}),r.jsx("div",{className:"text-[0.70rem] uppercase text-muted-foreground",children:"Calories/day"})]}),r.jsxs(pe,{variant:"outline",size:"icon",className:"shrink-0 w-8 h-8 rounded-full",disabled:e>=400,onClick:()=>n(10),children:[r.jsx($u,{className:"w-4 h-4"}),r.jsx("span",{className:"sr-only",children:"Increase"})]})]}),r.jsx("div",{className:"mt-3 h-[120px]",children:r.jsx(Da,{width:"100%",height:"100%",children:r.jsx(qi,{data:ey,children:r.jsx(Yi,{dataKey:"goal",style:{fill:"hsl(var(--foreground))",opacity:.9}})})})})]})}function ry(){return r.jsxs(qc,{children:[r.jsx(xx,{asChild:!0,children:r.jsx(pe,{variant:"outline",children:"Open drawer"})}),r.jsx(Xc,{children:r.jsxs("div",{className:"mx-auto w-full max-w-sm",children:[r.jsxs(vx,{children:[r.jsx(Jc,{children:"Move Goal"}),r.jsx(Zc,{children:"Set your daily activity goal."})]}),r.jsx(ty,{}),r.jsxs(yx,{children:[r.jsx(pe,{children:"Submit"}),r.jsx(bx,{asChild:!0,children:r.jsx(pe,{variant:"outline",children:"Cancel"})})]})]})})]})}function ny(){return r.jsxs(bn,{children:[r.jsx(kr,{children:"File"}),r.jsxs(Rr,{children:[r.jsxs(be,{children:["Open Files ",r.jsx(st,{children:"Ctrl+T"})]}),r.jsxs(be,{children:["New Tab ",r.jsx(st,{children:"⌘T"})]}),r.jsxs(be,{children:["New Window ",r.jsx(st,{children:"⌘N"})]}),r.jsx(be,{disabled:!0,children:"New Incognito Window"}),r.jsx(Ke,{}),r.jsxs($l,{children:[r.jsx(Ba,{children:"Share"}),r.jsxs(Fa,{children:[r.jsx(be,{children:"Email link"}),r.jsx(be,{children:"Messages"}),r.jsx(be,{children:"Notes"})]})]}),r.jsx(Ke,{}),r.jsxs(be,{children:["Print... ",r.jsx(st,{children:"⌘P"})]})]})]})}function ay(){return r.jsxs(bn,{children:[r.jsx(kr,{children:"Edit"}),r.jsxs(Rr,{children:[r.jsxs(be,{children:["Undo ",r.jsx(st,{children:"⌘Z"})]}),r.jsxs(be,{children:["Redo ",r.jsx(st,{children:"⇧⌘Z"})]}),r.jsx(Ke,{}),r.jsxs($l,{children:[r.jsx(Ba,{children:"Find"}),r.jsxs(Fa,{children:[r.jsx(be,{children:"Search the web"}),r.jsx(Ke,{}),r.jsx(be,{children:"Find..."}),r.jsx(be,{children:"Find Next"}),r.jsx(be,{children:"Find Previous"})]})]}),r.jsx(Ke,{}),r.jsx(be,{children:"Cut"}),r.jsx(be,{children:"Copy"}),r.jsx(be,{children:"Paste"})]})]})}function sy(){return r.jsxs(bn,{children:[r.jsx(kr,{children:"View"}),r.jsxs(Rr,{children:[r.jsx(ia,{children:"Always Show Bookmarks Bar"}),r.jsx(ia,{checked:!0,children:"Always Show Full URLs"}),r.jsx(Ke,{}),r.jsxs(be,{inset:!0,children:["Reload ",r.jsx(st,{children:"⌘R"})]}),r.jsxs(be,{disabled:!0,inset:!0,children:["Force Reload ",r.jsx(st,{children:"⇧⌘R"})]}),r.jsx(Ke,{}),r.jsx(be,{inset:!0,children:"Toggle Fullscreen"}),r.jsx(Ke,{}),r.jsx(be,{inset:!0,children:"Hide Sidebar"})]})]})}function oy(){return r.jsxs(bn,{children:[r.jsx(kr,{children:"Profiles"}),r.jsxs(Rr,{children:[r.jsxs(Jm,{value:"benoit",children:[r.jsx(Jr,{value:"andy",children:"Andy"}),r.jsx(Jr,{value:"benoit",children:"Benoit"}),r.jsx(Jr,{value:"Luis",children:"Luis"})]}),r.jsx(Ke,{}),r.jsx(be,{inset:!0,children:"Edit..."}),r.jsx(Ke,{}),r.jsx(be,{inset:!0,children:"Add Profile..."})]})]})}function iy(){return r.jsxs(_l,{children:[r.jsx(ny,{}),r.jsx(ay,{}),r.jsx(sy,{}),r.jsx(oy,{})]})}const ly=`p-1 bg-background border rounded-md shadow-md ${$r}`,cy=" px-2 py-2 text-xs focus:bg-accent focus:text-accent-foreground outline-none rounded-md select-none cursor-default flex items-center ",dy=({trigger:e,onCommand:t,items:n,containerClasses:a,menuContentProps:s})=>r.jsx("div",{className:"relative inline-block text-left",children:r.jsxs(Do,{children:[r.jsx(To,{asChild:!0,children:e}),r.jsx(_o,{children:r.jsx(Ca,{align:"end",...s,className:de(ly,a),children:n.map(({id:o,label:i,icon:l,shortcut:u},c)=>r.jsxs($a,{className:cy,onClick:()=>t(o),children:[l,r.jsx("span",{className:"flex-grow",children:i}),u&&r.jsx("span",{className:"text-xs",children:u})]},o))})})]})}),uy=[{id:"new-file",label:"New File"},{id:"open-settings",label:"Settings"}],fy="w-40";function my(){function e(t){switch(t){case"new-file":console.log(t);break;case"open-settings":console.log(t);break}}return r.jsx("div",{className:"py-1 select-none flex items-center justify-between",children:r.jsx("div",{className:"",children:r.jsx(dy,{trigger:r.jsxs(pe,{variant:"outline",className:"px-2 flex items-center gap-1",children:[r.jsx(Rh,{className:"size-4 mt-0.5"}),"Dropdown"]}),items:uy,containerClasses:fy,menuContentProps:{sideOffset:4,align:"start"},onCommand:e})})})}function py(){return r.jsxs(r.Fragment,{children:[r.jsxs(ul,{children:[r.jsx(ml,{children:"Demo dialog"}),r.jsx(pl,{children:"Make changes to your profile here. Click save when you're done."})]}),r.jsxs("div",{className:"grid gap-4 py-4",children:[r.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[r.jsx(an,{htmlFor:"name",className:"text-right",children:"Name"}),r.jsx(xr,{id:"name",className:"col-span-3",value:"Pedro Duarte",onChange:()=>{}})]}),r.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[r.jsx(an,{htmlFor:"username",className:"text-right",children:"Username"}),r.jsx(xr,{id:"username",className:"col-span-3",value:"@peduarte",onChange:e=>{}})]})]})]})}function hy(){const[e,t]=d.useState(!1);return r.jsxs(r.Fragment,{children:[r.jsx(pe,{variant:"outline",onClick:()=>t(!0),children:"Demo dialog"}),r.jsx(Gf,{open:e,onOpenChange:()=>t(!1),children:r.jsxs(dl,{className:"sm:max-w-[425px]",children:[r.jsx(py,{}),r.jsx(fl,{children:r.jsx(pe,{type:"submit",onClick:()=>t(!1),children:"Save changes"})})]})})]})}function xy(){return r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Q1,{}),r.jsx(J1,{}),r.jsx(ry,{})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(iy,{}),r.jsx(my,{})]}),r.jsx("div",{className:"flex items-center gap-2",children:r.jsx(hy,{})})]})}function gy(){return r.jsxs(Ze,{defaultValue:"picker5",children:[r.jsxs(qe,{children:[r.jsx(ee,{value:"picker1",children:"Color"}),r.jsx(ee,{value:"picker2",children:"Gradient"}),r.jsx(ee,{value:"picker3",children:"Theme"}),r.jsx(ee,{value:"picker4",children:"Data flow"}),r.jsx(ee,{value:"picker5",children:"Clock"})]}),r.jsx(te,{value:"picker1",children:r.jsx(Lv,{})}),r.jsx(te,{value:"picker2",children:r.jsx(Zv,{})}),r.jsx(te,{value:"picker3",children:r.jsx(Km,{delayDuration:100,children:r.jsxs("div",{className:"my-8 flex items-center justify-center gap-2",children:[r.jsx(E1,{}),r.jsx(M1,{})]})})}),r.jsx(te,{value:"picker4",children:r.jsx(F1,{})}),r.jsx(te,{value:"picker5",children:r.jsx("div",{className:"my-8 flex items-center justify-center",children:r.jsx(q1,{})})})]})}const by="_spinner_ot2c0_13",vy="_rotate_ot2c0_1",yy="_path_ot2c0_31",wy="_dash_ot2c0_1",po={spinner:by,rotate:vy,path:yy,dash:wy};function jy({className:e,...t}){return r.jsx("svg",{className:de(po.spinner,e),viewBox:"0 0 50 50",...t,children:r.jsx("circle",{className:po.path,cx:25,cy:25,r:20,fill:"none"})})}const Ny="_owner_17gat_1",Cy={owner:Ny,"donut-spin":"_donut-spin_17gat_1"};function $y({className:e,...t}){return r.jsx("div",{className:de(Cy.owner,"border-transparent border-l-sky-500 border-4 rounded-full",e),...t})}const Ed=d.forwardRef(({className:e,...t},n)=>r.jsxs("div",{ref:n,role:"status",children:[r.jsxs("svg",{className:de("w-6 h-6 fill-red-none animate-spin",e),viewBox:"0 0 100 101","aria-hidden":"true",...t,children:[r.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"}),r.jsx("path",{className:"fill-current",d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"})]}),r.jsx("span",{className:"sr-only",children:"Loading..."})]}));Ed.displayName="Spinner9";function _y({className:e,...t}){return r.jsx("div",{className:de("px-3 flex items-center justify-center animate-spin",e),...t,children:"⍥"})}const Sy="_bg_kvkpc_61",ky="_loader_kvkpc_73",Ry="_line_kvkpc_1",Ey="_spin_kvkpc_1",ho={bg:Sy,loader:ky,line:Ry,spin:Ey};function Ay({className:e,...t}){return r.jsx("div",{className:de("size-8",e),...t,children:r.jsxs("svg",{viewBox:"0 0 100 100",children:[r.jsx("circle",{className:ho.bg,cx:50,cy:50,r:46}),r.jsx("circle",{className:ho.loader,cx:50,cy:50,r:46})]})})}const Dy="_lineAnimation_1owlg_1",Ty={"loading-text":"_loading-text_1owlg_45",lineAnimation:Dy};function My({className:e,...t}){return r.jsx("div",{className:de("text-xl text-foreground uppercase",e),...t,children:r.jsx("div",{className:de(Ty["loading-text"],"after:bg-current after:h-px"),children:r.jsx("p",{children:"Loading"})})})}const Py="_wrapper_11oqi_1",zy="_flashing_11oqi_1",Iy={wrapper:Py,flashing:zy};function Ly({className:e,...t}){return r.jsxs("div",{className:de(Iy.wrapper,e),...t,children:[r.jsx("span",{}),r.jsx("span",{}),r.jsx("span",{})]})}const By="_opacity_1ujbv_1",Fy="_colors_1ujbv_1",Oy="_transform_1ujbv_1",Ct={"g--circle":"_g--circle_1ujbv_57",opacity:By,"g-circles--v1":"_g-circles--v1_1ujbv_193","g-circles--v2":"_g-circles--v2_1ujbv_207","opacity-stroke":"_opacity-stroke_1ujbv_1",colors:Fy,"colors-stroke":"_colors-stroke_1ujbv_1","u--circle":"_u--circle_1ujbv_223","transform-2":"_transform-2_1ujbv_1","g-circles--v3":"_g-circles--v3_1ujbv_331","g-circles--v4":"_g-circles--v4_1ujbv_345","colors-3":"_colors-3_1ujbv_1",transform:Oy,"colors-2":"_colors-2_1ujbv_1"};function Hy(){return r.jsx("svg",{viewBox:"0 0 120 120",style:{position:"absolute",width:0,height:0,overflow:"hidden"},children:r.jsx("symbol",{id:"symbol--circle",children:r.jsx("circle",{r:10,cx:20,cy:20})})})}function qr({className:e,...t}){return r.jsx("svg",{viewBox:"0 0 120 120",...t,children:r.jsx("g",{className:`${Ct["g-circles"]} ${e}`,children:Array.from({length:12}).map((n,a)=>r.jsxs("g",{className:Ct["g--circle"],children:[" ",r.jsx("use",{xlinkHref:"#symbol--circle",className:Ct["u--circle"]})," "]},a))})})}const fn="rgba(255,_255,_255,_0)",Ad="rgba(255,_255,_255,_0.05)",Vy=`linear-gradient(45deg,_${fn}_48%,_${Ad}_50%,_${fn}_52%)`,Wy=`linear-gradient(-45deg,_${fn}_48%,_${Ad}_50%,_${fn}_52%)`,Uy=`[background:${Vy},_${Wy}] [background-size:_1em_1em]`;function Gy(){return r.jsx("div",{className:`p-4 text-green-950 flex items-center justify-center ${Uy}`,children:r.jsxs("div",{className:"relative w-96 flex items-center gap-4",children:[r.jsx(Hy,{}),r.jsx(qr,{className:Ct["g-circles--v1"]}),r.jsx(qr,{className:Ct["g-circles--v2"]}),r.jsx(qr,{className:Ct["g-circles--v3"]}),r.jsx(qr,{className:Ct["g-circles--v4"]})]})})}const Ky="_content_d2oym_51",qy="_dots_d2oym_5",Yy="_spin_d2oym_1",Xy="_control_d2oym_87",Jy="_bg_d2oym_113",Zy="_ring_d2oym_185",Qy="_dot_d2oym_5",ew="_ball_d2oym_1",$e={"dots-ring":"_dots-ring_d2oym_5",content:Ky,dots:qy,spin:Yy,control:Xy,bg:Jy,ring:Zy,dot:Qy,"over-ring":"_over-ring_d2oym_1",ball:ew};function tw(){return r.jsxs("div",{className:`qw-64 qh-64 ${$e["dots-ring"]}`,children:[r.jsx("input",{className:$e.control,type:"checkbox"}),r.jsx("div",{className:$e.bg}),r.jsx("div",{className:$e.content,children:r.jsxs("div",{className:$e.dots,children:[r.jsxs("div",{className:$e.dot,children:[" ",r.jsx("span",{})," "]}),r.jsxs("div",{className:$e.dot,children:[" ",r.jsx("span",{})," "]}),r.jsxs("div",{className:$e.dot,children:[" ",r.jsx("span",{})," "]}),r.jsxs("div",{className:$e.dot,children:[" ",r.jsx("span",{})," "]}),r.jsxs("div",{className:$e.dot,children:[" ",r.jsx("span",{})," "]}),r.jsxs("div",{className:$e.dot,children:[" ",r.jsx("span",{})," "]}),r.jsxs("div",{className:$e.dot,children:[" ",r.jsx("span",{})," "]}),r.jsxs("div",{className:$e.dot,children:[" ",r.jsx("span",{})," "]}),r.jsxs("div",{className:$e.dot,children:[" ",r.jsx("span",{})," "]}),r.jsxs("div",{className:$e.dot,children:[" ",r.jsx("span",{})," "]}),r.jsxs("div",{className:$e.dot,children:[" ",r.jsx("span",{})," "]}),r.jsxs("div",{className:$e.dot,children:[" ",r.jsx("span",{})," "]}),r.jsx("div",{className:$e.ring})]})})]})}const rw="_loader_13ftp_13",nw="_animateCircle_13ftp_1",aw="_animateDot_13ftp_1",sw={loader:rw,animateCircle:nw,animateDot:aw};function ow(){return r.jsxs("div",{className:`relative w-[150px] h-[150px] ${sw.loader}`,children:["Loading",r.jsx("span",{})]})}const iw="_a_17o17_51",lw="_b_17o17_79",xo={a:iw,"rotate-clock-wise":"_rotate-clock-wise_17o17_1",b:lw,"rotate-anti-clock-wise":"_rotate-anti-clock-wise_17o17_1"};function cw(){return r.jsx("div",{className:"p-4 text-green-950 flex items-center justify-center",children:r.jsxs("div",{className:"relative w-32 h-32 border-current border-[14px] rounded-full",children:[r.jsx("div",{className:`${xo.a} m-1 absolute inset-0 border-current border-[8px] border-y-transparent rounded-full`}),r.jsx("div",{className:`${xo.b} m-4 absolute inset-0 border-current border-[20px] border-x-transparent rounded-full`})]})})}function as({maskId:e="p1loader"}={}){return r.jsxs("defs",{children:[r.jsxs("linearGradient",{id:`${e}-grad`,x1:0,y1:0,x2:1,y2:1,children:[r.jsx("stop",{offset:"0%"}),r.jsx("stop",{offset:"100%",stopColor:"#fff"})]}),r.jsx("mask",{id:`${e}`,children:r.jsx("rect",{x:"0",y:"0",width:"128",height:"128",fill:`url(#${e}-grad)`})})]})}const dw="[--hue1:223] [--hue2:343] [--primary:hsl(var(--hue1),90%,50%)] [--secondary:hsl(var(--hue2),90%,50%)] ",go="p1loader";function uw({className:e,...t}){return r.jsxs("svg",{className:de(dw,e),viewBox:"0 0 128 128",...t,children:[r.jsx(as,{maskId:go}),r.jsxs("g",{className:"pl1__g",fill:"var(--primary)",children:[r.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20)",children:[r.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),r.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]}),r.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20) rotate(180 44 44)",children:[r.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),r.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]})]}),r.jsxs("g",{className:"pl1__g",fill:"var(--secondary)",mask:`url(#${go})`,children:[r.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20)",children:[r.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),r.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]}),r.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20) rotate(180 44 44)",children:[r.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),r.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]})]})]})}const fw="[--hue1:223] [--hue2:283] [--primary:hsl(var(--hue1),90%,50%)] [--secondary:hsl(var(--hue2),90%,50%)] ",bo="p2loader";function mw({className:e,...t}){return r.jsxs("svg",{className:de(fw,e),viewBox:"0 0 128 128",...t,children:[r.jsx(as,{maskId:bo}),r.jsxs("g",{fill:"var(--primary)",children:[r.jsx("g",{className:"pl2__rect-g",children:r.jsx("rect",{className:"pl2__rect",rx:8,ry:8,y:128,width:40,height:24,transform:"rotate(180)"})}),r.jsx("g",{className:"pl2__rect-g",children:r.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:44,y:128,width:40,height:24,transform:"rotate(180)"})}),r.jsx("g",{className:"pl2__rect-g",children:r.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:88,y:128,width:40,height:24,transform:"rotate(180)"})})]}),r.jsxs("g",{fill:"var(--secondary)",mask:`url(#${bo})`,children:[r.jsx("g",{className:"pl2__rect-g",children:r.jsx("rect",{className:"pl2__rect",rx:8,ry:8,y:128,width:40,height:24,transform:"rotate(180)"})}),r.jsx("g",{className:"pl2__rect-g",children:r.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:44,y:128,width:40,height:24,transform:"rotate(180)"})}),r.jsx("g",{className:"pl2__rect-g",children:r.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:88,y:128,width:40,height:24,transform:"rotate(180)"})})]})]})}const pw="[--hue1:223] [--hue2:163] [--primary:hsl(var(--hue1),90%,50%)] [--secondary:hsl(var(--hue2),90%,50%)] ",vo="p3loader";function hw({className:e,...t}){return r.jsxs("svg",{className:de(pw,e),viewBox:"0 0 128 128",...t,children:[r.jsx(as,{maskId:vo}),r.jsxs("g",{fill:"var(--primary)",children:[r.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"}),r.jsx("g",{className:"pl3__rect-g",transform:"scale(-1)",children:r.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"})})]}),r.jsxs("g",{fill:"var(--secondary)",mask:`url(#${vo})`,children:[r.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"}),r.jsx("g",{className:"pl3__rect-g",transform:"scale(-1)",children:r.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"})})]})]})}const xw="_animate_1isss_1",gw={"preloader-squares":"_preloader-squares_1isss_5",animate:xw};function bw({className:e,...t}){return r.jsx("div",{className:de(gw["preloader-squares"],"relative size-6",e),...t,children:r.jsxs("ul",{className:"size-6",children:[r.jsx("li",{}),r.jsx("li",{}),r.jsx("li",{}),r.jsx("li",{})]})})}function vw({className:e,...t}){return r.jsxs("div",{className:de("flex items-center gap-2",e),...t,children:[r.jsx(uw,{className:"w-6 h-6 [--hue1:53] [--hue2:253]"}),r.jsx(mw,{className:"w-6 h-6 [--hue2:253]"}),r.jsx(hw,{className:"w-6 h-6 [--hue2:153]"}),r.jsx(bw,{})]})}const yw="_pl_b9jmf_49",ww="_pl__bubble_b9jmf_69",he={pl:yw,pl__bubble:ww,"pl__bubble-drop":"_pl__bubble-drop_b9jmf_81","bubble-rise-before":"_bubble-rise-before_b9jmf_1","bubble-rise-after":"_bubble-rise-after_b9jmf_1","bubble-drop":"_bubble-drop_b9jmf_1"};function jw(){return r.jsxs("div",{className:he.pl,children:[r.jsxs("div",{className:he.pl__bubble,children:[r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]})]}),r.jsxs("div",{className:he.pl__bubble,children:[r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]})]}),r.jsxs("div",{className:he.pl__bubble,children:[r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]}),r.jsx("div",{className:he["pl__bubble-drop"]})]})]})}const Nw="_particle_qdkb4_5",Cw="_animation_qdkb4_1",yo={particle:Nw,animation:Cw},wo=360*3;function $w({className:e,...t}){return r.jsx(r.Fragment,{children:r.jsx("div",{className:yo.center,style:{"--total":wo,"--dot-size":"4px"},...t,children:Array.from({length:wo}).map((n,a)=>r.jsx("div",{className:yo.particle,style:{"--index":a}},a))})})}function _w(){return r.jsx("div",{className:"p-4 text-green-950 flex items-center justify-center",children:r.jsx("div",{className:"relative w-96 h-[200px] flex items-center justify-center content-center gap-4",children:r.jsx($w,{})})})}const Sw="_wrapper_1fkod_1",kw="_mainText_1fkod_17",Rw="_hoverText_1fkod_27",na={wrapper:Sw,mainText:kw,hoverText:Rw};function jo({className:e,...t}){return r.jsxs("div",{className:de(na.wrapper,e),...t,children:[r.jsx("span",{className:na.mainText,children:"Hover over me 1"}),r.jsx("span",{className:na.hoverText,children:"Hover over me 2"})]})}const Ew="_container_18r7v_31",Aw="_button_18r7v_75",Dw="_front_18r7v_141",Tw="_back_18r7v_143",Yr={container:Ew,button:Aw,front:Dw,back:Tw};function Mw({className:e,...t}){return r.jsx("div",{className:"relative 1w-24",children:r.jsxs("div",{className:de(Yr.container,"w-20 h-12",e),...t,children:[r.jsx("input",{type:"checkbox",name:"cb",id:"cb"}),r.jsxs("label",{htmlFor:"cb",className:Yr.button,children:[r.jsx("span",{className:Yr.front,children:"send"}),r.jsx("span",{className:Yr.back,children:"done"})]})]})})}const Pw="_btn_1xoda_75",Xr={btn:Pw,"svg-border":"_svg-border_1xoda_99"};function zw({className:e,...t}){return r.jsxs("button",{className:de(Xr.btn,"relative w-[180px] h-[60px]",e),...t,children:[r.jsxs("svg",{viewBox:"0 0 180 60",className:Xr["svg-border"],children:[r.jsx("polyline",{points:"179,1 179,59 1,59 1,1 179,1",className:Xr["bg-line"]}),r.jsx("polyline",{points:"179,1 179,59 1,59 1,1 179,1",className:Xr["hl-line"]})]}),r.jsx("span",{children:"HOVER ME"})]})}const Iw="_wrapper_sogws_7",Lw="_transit_sogws_73",Bw="_toggle_sogws_1",Fw="_app_sogws_1",Ow="_background_sogws_165",Hw="_drip_sogws_199",Vw="_content_sogws_291",Ww="_description_sogws_307",Uw="_pronunciation_sogws_349",Gw="_avatar_sogws_389",Kw="_button_sogws_425",xe={wrapper:Iw,"goo-filter":"_goo-filter_sogws_25",transit:Lw,toggle:Bw,app:Fw,background:Ow,"bg-content":"_bg-content_sogws_185","bg-description":"_bg-description_sogws_187",drip:Hw,content:Vw,description:Ww,pronunciation:Uw,avatar:Gw,button:Kw,"up-down":"_up-down_sogws_1","down-up":"_down-up_sogws_1"};function qw(){return r.jsxs("div",{className:`relative ${xe.wrapper} bg-sky-950 flex items-center justify-center`,children:[r.jsx("svg",{className:`w-full h-full ${xe["goo-filter"]}`,viewBox:"0 0 1 1",children:r.jsxs("filter",{id:"goo",children:[r.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:10,result:"blur"}),r.jsx("feColorMatrix",{in:"blur",mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 50 -20",result:"goo"}),r.jsx("feBlend",{in:"SourceGraphic",in2:"goo"})]})}),r.jsxs("div",{id:`relative ${xe.app}`,children:[r.jsx("input",{type:"checkbox",id:xe.toggle,name:"toggle"}),r.jsxs("div",{className:xe.background,children:[r.jsxs("div",{className:xe["bg-content"],children:[r.jsx("div",{className:xe.drip}),r.jsx("div",{className:xe.drip}),r.jsx("div",{className:xe.drip}),r.jsx("div",{className:xe.drip}),r.jsx("div",{className:xe.drip}),r.jsx("div",{className:xe.drip})]}),r.jsxs("div",{className:`${xe["bg-description"]}`,children:[r.jsx("div",{className:xe.drip}),r.jsx("div",{className:xe.drip}),r.jsx("div",{className:xe.drip}),r.jsx("div",{className:xe.drip}),r.jsx("div",{className:xe.drip}),r.jsx("div",{className:xe.drip})]})]}),r.jsxs("div",{className:xe.content,children:[r.jsx("div",{className:xe.avatar,children:"🕶"}),r.jsx("header",{children:"Ocularia Solaria"}),r.jsx("label",{className:xe.button,htmlFor:xe.toggle})]}),r.jsxs("div",{className:`${xe.description} ${xe.transit}`,children:[r.jsx("header",{children:"Sunglasses!"}),r.jsx("p",{children:"Cool."})]})]})]})}function Yw(){return r.jsxs(Ze,{defaultValue:"loaders1",children:[r.jsxs(qe,{className:yn,children:[r.jsx(ee,{value:"loaders1",children:"Simple"}),r.jsx(ee,{value:"loaders2",children:"Circles"}),r.jsx(ee,{value:"loaders3",children:"Dots ring"}),r.jsx(ee,{value:"loaders4",children:"Commet"}),r.jsx(ee,{value:"loaders5",children:"Radar"})]}),r.jsx(te,{value:"loaders1",children:r.jsxs("div",{className:"my-8 flex items-center justify-center gap-8",children:[r.jsx(jy,{className:"w-8 h-8 stroke-[5] stroke-sky-500"}),r.jsx($y,{className:"w-8 h-8"}),r.jsx(Ed,{className:"w-8 h-8 text-sky-500"}),r.jsx(_y,{className:"text-4xl text-sky-500"}),r.jsx(Ay,{}),r.jsx(My,{className:"text-sky-500"}),r.jsx(Ly,{className:"text-sky-300"})]})}),r.jsx(te,{value:"loaders2",children:r.jsx("div",{className:"my-8 flex items-center justify-center",children:r.jsx(Gy,{})})}),r.jsx(te,{value:"loaders3",children:r.jsx("div",{className:"my-8 flex items-center justify-center",children:r.jsx(tw,{})})}),r.jsx(te,{value:"loaders4",children:r.jsx("div",{className:"my-8 flex items-center justify-center",children:r.jsx(ow,{})})}),r.jsx(te,{value:"loaders5",children:r.jsx(cw,{})})]})}function Xw(){return r.jsxs(Ze,{defaultValue:"loaders1",children:[r.jsxs(qe,{className:yn,children:[r.jsx(ee,{value:"loaders1",children:"Blocks"}),r.jsx(ee,{value:"loaders2",children:"Bubbles"}),r.jsx(ee,{value:"loaders3",children:"3D spheres"})]}),r.jsx(te,{value:"loaders1",children:r.jsx(vw,{className:"m-auto max-w-sm flex items-center justify-between"})}),r.jsx(te,{value:"loaders2",children:r.jsx("div",{className:"my-8 flex items-center justify-center",children:r.jsx(jw,{})})}),r.jsx(te,{value:"loaders3",children:r.jsx("div",{className:"my-8 flex items-center justify-center",children:r.jsx(_w,{})})})]})}function Jw(){return r.jsxs(Ze,{defaultValue:"switch3",children:[r.jsxs(qe,{className:yn,children:[r.jsx(ee,{value:"switch3",children:"Effects"}),r.jsx(ee,{value:"switch4",children:"Goo"})]}),r.jsx(te,{value:"switch3",children:r.jsxs("div",{className:"py-4 flex flex-col items-start gap-2",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(pe,{variant:"outline",children:r.jsx(jo,{className:"cursor-pointer"})}),r.jsx(zw,{}),r.jsx(Mw,{})]}),r.jsx("div",{className:"px-4",children:r.jsx(jo,{className:"cursor-pointer"})})]})}),r.jsx(te,{value:"switch4",children:r.jsx(qw,{})})]})}function Zw(){return r.jsxs(Ze,{defaultValue:"loaders1",children:[r.jsxs(qe,{className:yn,children:[r.jsx(ee,{value:"loaders1",children:"Spinners"}),r.jsx(ee,{value:"loaders2",children:"Styled"}),r.jsx(ee,{value:"loaders3",children:"Effects"})]}),r.jsx(te,{value:"loaders1",children:r.jsx(Yw,{})}),r.jsx(te,{value:"loaders2",children:r.jsx(Xw,{})}),r.jsx(te,{value:"loaders3",children:r.jsx(Jw,{})})]})}function Qw({cases:e}){const{activeDemoAccordion:t}=it(ce).demosState;return r.jsx(sp,{className:"w-full",type:"single",collapsible:!0,value:t,onValueChange:n=>ce.demosState.activeDemoAccordion=n,children:e.map(n=>r.jsxs(kl,{className:"border-b-0",value:n.id,children:[r.jsx(Rl,{className:"underline-offset-4",children:n.name}),r.jsx(El,{className:"pt-4 border-t border-b",children:n.component})]},n.id))})}const ej=[{id:"10",name:"Tables",component:r.jsx(Eb,{})},{id:"20",name:"Tree",component:r.jsx(od,{})},{id:"30",name:"Resizable",component:r.jsx(Ab,{})},{id:"40",name:"Switches, Carousel, Pagination, Skeleton, Charts",component:r.jsx(X1,{})},{id:"50",name:"Toasts, Drawer, Menus, Dialog",component:r.jsx(xy,{})},{id:"60",name:"Loaders, Effects",component:r.jsx(Zw,{})},{id:"70",name:"Pickers: Color, Theme, Flow, Time",component:r.jsx(gy,{})}];function tj(){return r.jsxs("div",{className:"min-h-0 grid grid-rows-[auto,1fr,auto]",children:[r.jsx(jx,{}),r.jsx(vn,{className:"flex-1 p-4 min-w-0 overflow-hidden","data-fixed-width":!0,children:r.jsx(Qw,{cases:ej})}),r.jsx(Fg,{})]})}function rj(){return r.jsx("div",{className:"py-4 bg-primary-500/20"})}function nj(){return r.jsxs(r.Fragment,{children:[r.jsx(Mg,{}),r.jsx(G0,{}),r.jsxs("div",{className:"h-screen grid grid-rows-[auto,1fr,auto]",children:[r.jsx(wx,{}),r.jsx(tj,{}),r.jsx(rj,{})]}),r.jsx(Vx,{}),r.jsx(T0,{})]})}aa.createRoot(document.getElementById("root")).render(r.jsx(v.StrictMode,{children:r.jsx(nj,{})})); +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = [] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/index-BgCseIQV.css b/assets/index-BgCseIQV.css deleted file mode 100644 index 81d5dcc..0000000 --- a/assets/index-BgCseIQV.css +++ /dev/null @@ -1 +0,0 @@ -.splitpane-content,.splitpane{flex:1;min-height:0;min-width:0}.splitpane-divider{flex-shrink:0;z-index:1000;transition:background-color .1s ease .4s}.splitpane-divider.horizontal{width:3px}.splitpane-divider.vertical{height:3px}.splitpane-divider:hover{background-color:#2e8fff;cursor:ew-resize}.splitpane-divider.vertical:hover{cursor:ns-resize}._container_q763u_7 table{--border-color: #545d9e;border-spacing:0}._container_q763u_7 th,._container_q763u_7 td{padding:8px;text-align:left;border:1px solid #2e3252}._container_q763u_7 th{background-color:#272a3f}._container_q763u_7 td{color:#bdbddb;background-color:#212335}._sticky-header-row_q763u_57 th[scope=col]{position:sticky;top:0;border-bottom-color:var(--border-color)}._sticky-first-column_q763u_75 th[scope=col]:first-child,._sticky-first-column_q763u_75 th[scope=row]{position:sticky;left:0;border-right-color:var(--border-color)}._sticky-header-and-first-column_q763u_97 th[scope=col]{position:sticky;top:0;border-bottom-color:var(--border-color)}._sticky-header-and-first-column_q763u_97 th[scope=row]{position:sticky;left:0;border-right-color:var(--border-color)}._sticky-header-and-first-column_q763u_97 th[scope=col]:first-child{left:0;z-index:1;border-right-color:var(--border-color);border-bottom-color:var(--border-color)}._container_q763u_7::-webkit-scrollbar{width:6px;height:6px}._container_q763u_7::-webkit-scrollbar-track{background:#000}._container_q763u_7::-webkit-scrollbar-thumb{background-color:#9f9ec7;border-radius:10px}._container_q763u_7::-webkit-scrollbar-thumb:hover{background-color:#8988aa}._container_ny73l_25{display:flex;justify-content:center;align-items:center;margin:10vmin;overflow:hidden;transform:skew(5deg)}._container_ny73l_25 ._card_ny73l_41{flex:1;transition:all 1s ease-in-out;height:75vmin;position:relative}._container_ny73l_25 ._card_ny73l_41 ._card__head_ny73l_53{color:#000;background:#ff1eadbf;padding:.5em;transform:rotate(-90deg);transform-origin:0% 0%;transition:all .5s ease-in-out;min-width:100%;text-align:center;position:absolute;bottom:0;left:0;font-size:1em;white-space:nowrap}._container_ny73l_25 ._card_ny73l_41:hover{flex-grow:10}._container_ny73l_25 ._card_ny73l_41:hover img{filter:grayscale(0)}._container_ny73l_25 ._card_ny73l_41:hover ._card__head_ny73l_53{text-align:center;top:calc(100% - 2em);color:#fff;background:#00000080;font-size:2em;transform:rotate(0) skew(-5deg)}._container_ny73l_25 ._card_ny73l_41 img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:all 1s ease-in-out;filter:grayscale(100%)}._container_ny73l_25 ._card_ny73l_41:not(:nth-child(5)){margin-right:1em}._wrap_84gct_1{max-width:550px;height:500px;display:flex;gap:.5rem;overflow-y:hidden}._strip_84gct_19{position:relative;padding:0 .25rem;height:0;opacity:0;flex:20%;text-align:center;border:1px solid white;border-radius:3px;transition:flex .3s ease-in-out;cursor:pointer;overflow:hidden;display:grid;grid-template-rows:10% 60% 15% 15%;place-items:center}._strip_84gct_19>*{margin:auto}._strip_84gct_19:hover{transition:all .5s ease;flex:100%}._one_84gct_79{background:khaki}._two_84gct_81{background:#f08080}._three_84gct_83{background:peru}._four_84gct_85{background:wheat}._five_84gct_87{background:tan}._crown_84gct_91{justify-self:center;padding-top:.5rem;padding-bottom:1rem;width:50px;font-size:1.4rem;line-height:normal;font-weight:100;border-bottom:.2vmin solid #000}._h1_84gct_119{align-self:center;font-size:1.4rem;font-weight:200;line-height:1;transform:rotate(-180deg);writing-mode:vertical-rl;text-orientation:sideways;transition:transform .2s ease-in-out}._strip_84gct_19:hover ._h1_84gct_119{transform:rotate(-90deg) translate(10rem);z-index:10}._h2_84gct_153{padding:.5rem 0;font-size:1rem;border-top:1px solid #000;border-bottom:1px solid #000}._h3_84gct_165{font-size:.5rem}._review_84gct_175{position:absolute;padding:0 2rem;top:50%;left:50%;width:95%;height:97%;transform:translate(-50%,-50%);color:#000;background:ivory;opacity:0}._strip_84gct_19:hover ._review_84gct_175{transition:.5s ease-in-out;opacity:1}._review_84gct_175 p{margin-top:5rem;font-size:.75rem;text-align:left}._container_1fbyo_33{position:relative;width:800px;height:500px;transition:all .4s;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;gap:1em}._container_1fbyo_33:hover ._box_1fbyo_55{filter:grayscale(100%) opacity(24%)}._box_1fbyo_55{position:relative;transition:all .4s;background-size:cover;background:var(--img) center center;display:flex;justify-content:center;align-items:center}._container_1fbyo_33 ._box_1fbyo_55:hover{filter:grayscale(0%) opacity(100%)}._container_1fbyo_33:has(._box-1_1fbyo_95:hover){grid-template-columns:3fr 1fr 1fr 1fr 1fr}._container_1fbyo_33:has(._box-2_1fbyo_103:hover){grid-template-columns:1fr 3fr 1fr 1fr 1fr}._container_1fbyo_33:has(._box-3_1fbyo_111:hover){grid-template-columns:1fr 1fr 3fr 1fr 1fr}._container_1fbyo_33:has(._box-4_1fbyo_119:hover){grid-template-columns:1fr 1fr 1fr 3fr 1fr}._container_1fbyo_33:has(._box-5_1fbyo_127:hover){grid-template-columns:1fr 1fr 1fr 1fr 3fr}._box_1fbyo_55:nth-child(odd){transform:translateY(-16px)}._box_1fbyo_55:nth-child(2n){transform:translateY(16px)}._box_1fbyo_55:after{content:attr(data-text);position:absolute;padding:10px 10px 10px 14px;bottom:20px;transform:translateY(60px);transition:all .4s;color:#fff;background:#000;letter-spacing:4px;text-transform:uppercase;opacity:0}._box_1fbyo_55:hover:after{transform:translateY(0);transition-delay:.4s;opacity:1}.switch,.switch__input{-webkit-tap-highlight-color:#0000}.switch{margin:auto;position:relative;width:5em;height:3em;display:block}.switch__base-outer,.switch__base-inner{position:absolute;display:block}.switch__base-outer{left:.125em;top:.125em;width:4.75em;height:2.75em;border-radius:1.25em;box-shadow:-.125em -.125em .25em hsl(var(--hue),10%,30%),.125em .125em .125em hsl(var(--hue),10%,30%) inset,.125em .125em .25em #000,-.125em -.125em .125em hsl(var(--hue),10%,5%) inset}.switch__base-inner{left:.375em;top:.375em;width:4.25em;height:2.25em;border-radius:1.125em;box-shadow:-.25em -.25em .25em hsl(var(--hue),10%,30%) inset,.0625em .0625em .125em hsla(var(--hue),10%,30%),.125em .25em .25em hsl(var(--hue),10%,5%) inset,-.0625em -.0625em .125em hsla(var(--hue),10%,5%)}.switch__base-neon{position:absolute;left:0;top:0;width:100%;height:auto;display:block;overflow:visible}.switch__base-neon path{stroke-dasharray:0 104.26 0;transition:stroke-dasharray var(--trans-dur) var(--trans-timing)}.switch__input{position:relative;width:100%;height:100%;outline:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.switch__input:before{content:"";position:absolute;inset:-.125em;display:block;border-radius:.125em;box-shadow:0 0 0 .125em hsla(var(--hue),90%,50%,0);transition:box-shadow .15s linear}.switch__input:focus-visible:before{box-shadow:0 0 0 .125em var(--primary)}.switch__knob,.switch__knob-container{display:block;position:absolute;border-radius:1em}.switch__knob{width:2em;height:2em;background-color:hsl(var(--hue),10%,15%);background-image:radial-gradient(88% 88% at 50% 50%,hsl(var(--hue),10%,20%) 47%,hsla(var(--hue),10%,20%,0) 50%),radial-gradient(88% 88% at 47% 47%,hsl(var(--hue),10%,85%) 45%,hsla(var(--hue),10%,85%,0) 50%),radial-gradient(65% 70% at 40% 60%,hsl(var(--hue),10%,20%) 46%,hsla(var(--hue),10%,20%,0) 50%);box-shadow:-.0625em -.0625em .0625em hsl(var(--hue),10%,15%) inset,-.125em -.125em .0625em hsl(var(--hue),10%,5%) inset,.75em .25em .125em #000c;transition:transform var(--trans-dur) var(--trans-timing)}.switch__knob-container{left:.5em;top:.5em;width:4em;height:2em;overflow:hidden}.switch__knob-neon{display:block;width:2em;height:auto}.switch__knob-neon circle{opacity:0;stroke-dasharray:0 90.32 0 54.19;transition:opacity var(--trans-dur) steps(1,end),stroke-dasharray var(--trans-dur) var(--trans-timing)}.switch__knob-shadow{position:absolute;left:.5em;top:.5em;width:2em;height:2em;display:block;border-radius:50%;box-shadow:.125em .125em .125em #000000e6;transition:transform var(--trans-dur) var(--trans-timing)}.switch__led{position:absolute;left:0;top:0;width:.25em;height:.25em;display:block;background-color:hsl(var(--off-hue),90%,70%);border-radius:50%;box-shadow:0 -.0625em .0625em hsl(var(--off-hue),90%,40%) inset,0 0 .125em hsla(var(--off-hue),90%,70%,.3),0 0 .125em hsla(var(--off-hue),90%,70%,.3),.125em .125em .125em #00000080;transition:background-color var(--trans-dur) var(--trans-timing),box-shadow var(--trans-dur) var(--trans-timing)}.switch__text{position:absolute;width:1px;height:1px;overflow:hidden}.switch__input:checked~.switch__led{background-color:hsl(var(--on-hue1),90%,70%);box-shadow:0 -.0625em .0625em hsl(var(--on-hue1),90%,40%) inset,0 -.125em .125em hsla(var(--on-hue1),90%,70%,.3),0 .125em .125em hsla(var(--on-hue1),90%,70%,.3),.125em .125em .125em #00000080}.switch__input:checked~.switch__base-neon path{stroke-dasharray:52.13 0 52.13}.switch__input:checked~.switch__knob-shadow,.switch__input:checked~.switch__knob-container .switch__knob{transform:translate(100%)}.switch__input:checked~.switch__knob-container .switch__knob-neon circle{opacity:1;stroke-dasharray:45.16 0 45.16 54.19;transition-timing-function:steps(1,start),var(--trans-timing)}.toggle-wrapper{position:relative;display:flex;justify-content:center;align-items:center;-moz-column-gap:.25em;column-gap:.25em}.toggle-icon{width:.5em;height:.5em;fill:#4c9bab;filter:drop-shadow(0 1px 1px rgba(255,255,255,.4));transition:fill .4s}.toggle-checkbox:not(:checked)+.toggle-icon.off,.toggle-checkbox:checked~.toggle-icon.on{fill:#e0f9fc}.toggle-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;z-index:1;border-radius:3.125em;width:4.05em;height:100%;opacity:0;cursor:pointer}.toggle-container{position:relative;border-radius:3.125em;width:4.05em;height:1.5em;background-image:repeating-conic-gradient(#0b66a0 0% 25%,#1093a8 0% 50%);background-size:.125em .125em;box-shadow:inset 0 .125em .25em #00092699,inset -1.5em 0 .0625em #00092680,inset .5em 0 .5em #00092680,0 1px 1px #fff6}.toggle-button{display:flex;justify-content:center;align-items:center;position:absolute;top:.0625em;left:.0625em;border-radius:inherit;width:2.55em;height:calc(100% - .125em);background-image:linear-gradient(to right,#86e2fa,#125e79);box-shadow:0 .125em .25em #0009;transition:left .4s}.toggle-checkbox:checked~.toggle-container>.toggle-button{left:1.4375em}.toggle-button:before{content:"";position:absolute;top:inherit;border-radius:inherit;width:calc(100% - .375em);height:inherit;background-image:linear-gradient(to right,#0f73a8,#57cfe2,#b3f0ff)}.toggle-button:after{content:"";position:absolute;width:.5em;height:38%;background-image:repeating-linear-gradient(to right,#d2f2f6 0 .0625em,#4ea0ae .0625em .125em,transparent .125em .1875em)}._flip-clock_1dcm9_25{perspective:600px;margin:0 auto;text-align:center}._flip-clock_1dcm9_25 *,._flip-clock_1dcm9_25 *:before,._flip-clock_1dcm9_25 *:after{box-sizing:border-box}._flip-clock__piece_1dcm9_49{display:inline-block;margin:0 .2vw}@media (min-width: 1000px){._flip-clock__piece_1dcm9_49{margin:0 5px}}._flip-clock__slot_1dcm9_71{display:block;font-size:1rem;line-height:1.5}._flip-card_1dcm9_83{display:block;position:relative;padding-bottom:.72em;font-size:2.25rem;line-height:.95}@media (min-width: 1000px){._flip-clock__slot_1dcm9_71{font-size:1.2rem}._flip-card_1dcm9_83{font-size:3rem}}._flip-card__top_1dcm9_123,._flip-card__bottom_1dcm9_125,._flip-card__back-bottom_1dcm9_127,._flip-card__back_1dcm9_127:before,._flip-card__back_1dcm9_127:after{display:block;padding:.23em .25em .4em;width:1.8em;height:.72em;backface-visibility:hidden;transform-style:preserve-3d;color:#ccc;background:#222;border-radius:.15em .15em 0 0}._flip-card__bottom_1dcm9_125,._flip-card__back-bottom_1dcm9_127{position:absolute;left:0;top:50%;color:#fff;background:#393939;border-top:solid 1px #000;border-radius:0 0 .15em .15em;pointer-events:none;overflow:hidden;z-index:2}._flip-card__back-bottom_1dcm9_127{z-index:1}._flip-card__bottom_1dcm9_125:after,._flip-card__back-bottom_1dcm9_127:after{display:block;margin-top:-.72em}._flip-card__back_1dcm9_127:before,._flip-card__bottom_1dcm9_125:after,._flip-card__back-bottom_1dcm9_127:after{content:attr(data-value)}._flip-card__back_1dcm9_127{position:absolute;left:0%;top:0;height:100%;pointer-events:none}._flip-card__back_1dcm9_127:before{position:relative;overflow:hidden;z-index:-1}._flip_1dcm9_25 ._flip-card__back_1dcm9_127:before{z-index:1;transform-origin:center bottom;animation:_flipTop_1dcm9_1 .3s cubic-bezier(.37,.01,.94,.35);animation-fill-mode:both}._flip_1dcm9_25 ._flip-card__bottom_1dcm9_125{transform-origin:center top;animation:_flipBottom_1dcm9_1 .6s cubic-bezier(.15,.45,.28,1);animation-fill-mode:both}@keyframes _flipTop_1dcm9_1{0%{transform:rotateX(0);z-index:2}0%,99%{opacity:1}to{transform:rotateX(-90deg);opacity:0}}@keyframes _flipBottom_1dcm9_1{0%,50%{z-index:-1;transform:rotateX(90deg);opacity:0}51%{opacity:1}to{opacity:1;transform:rotateX(0);z-index:5}}._spinner_ot2c0_13{animation:_rotate_ot2c0_1 2s linear infinite;z-index:2}._spinner_ot2c0_13 ._path_ot2c0_31{stroke-linecap:round;animation:_dash_ot2c0_1 1.5s ease-in-out infinite}@keyframes _rotate_ot2c0_1{to{transform:rotate(360deg)}}@keyframes _dash_ot2c0_1{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}._owner_17gat_1{display:inline-block;animation:_donut-spin_17gat_1 1.2s linear infinite}@keyframes _donut-spin_17gat_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._bg_kvkpc_61{fill:none;stroke-width:4px;stroke:#13547a}._loader_kvkpc_73{fill:none;stroke-width:4px;stroke:#fff;stroke-dasharray:288;transform-origin:50% 50%;animation:_line_kvkpc_1 5s linear infinite,_spin_kvkpc_1 3s linear infinite}@keyframes _line_kvkpc_1{0%{stroke-dashoffset:1152}to{stroke-dashoffset:576}}@keyframes _spin_kvkpc_1{0%{transform:rotate(-90deg) translateZ(0)}to{transform:rotate(270deg) translateZ(0)}}._loading-text_164jv_45{position:relative}._loading-text_164jv_45 p{margin:0 auto;padding:5px 0;position:relative;font: 22px/1em Helvetica,Arial,sans-serif;text-transform:uppercase;color:#fff}._loading-text_164jv_45:after{content:"";border-radius:2px;animation:_lineAnimation_164jv_1 cubic-bezier(.77,0,.175,1) 2.8s infinite;background-color:#b79761;position:absolute;bottom:-7px;left:0;width:4px;height:4px}@keyframes _lineAnimation_164jv_1{25%{width:100%}50%{width:0;left:auto;right:0}75%{width:100%}to{width:0;right:auto;left:0}}._wrapper_11oqi_1 span{display:inline-block;margin:0 3px;width:8px;height:8px;border-radius:50%;background-color:currentColor;animation:_flashing_11oqi_1 2.4s infinite linear}._wrapper_11oqi_1 span:nth-child(2){animation-delay:.2s}._wrapper_11oqi_1 span:nth-child(3){animation-delay:.4s}@keyframes _flashing_11oqi_1{0%{opacity:0}20%{opacity:1}to{opacity:0}}._g--circle_1ujbv_57{transform-origin:60px 60px;fill:#1e90ff;animation:_opacity_1ujbv_1 1.2s linear infinite}._g--circle_1ujbv_57:nth-child(12n+1){animation-delay:-.1s;transform:rotate(-30deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+2){animation-delay:-.2s;transform:rotate(-60deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+3){animation-delay:-.3s;transform:rotate(-90deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+4){animation-delay:-.4s;transform:rotate(-120deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+5){animation-delay:-.5s;transform:rotate(-150deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+6){animation-delay:-.6s;transform:rotate(-180deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+7){animation-delay:-.7s;transform:rotate(-210deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+8){animation-delay:-.8s;transform:rotate(-240deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+9){animation-delay:-.9s;transform:rotate(-270deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+10){animation-delay:-1s;transform:rotate(-300deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+11){animation-delay:-1.1s;transform:rotate(-330deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+12){animation-delay:-1.2s;transform:rotate(-360deg) translate(5px,5px) scale(.9)}._g-circles--v1_1ujbv_193 ._g--circle_1ujbv_57{fill-opacity:0;animation-name:_opacity_1ujbv_1}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57{fill-opacity:0;stroke-opacity:0;stroke-width:1;stroke:#9acd32;animation-name:_opacity-stroke_1ujbv_1,_colors_1ujbv_1,_colors-stroke_1ujbv_1}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57 ._u--circle_1ujbv_223{animation:_transform-2_1ujbv_1 1.2s linear infinite}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+1) ._u--circle_1ujbv_223{animation-delay:-.1s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+2) ._u--circle_1ujbv_223{animation-delay:-.2s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+3) ._u--circle_1ujbv_223{animation-delay:-.3s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+4) ._u--circle_1ujbv_223{animation-delay:-.4s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+5) ._u--circle_1ujbv_223{animation-delay:-.5s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+6) ._u--circle_1ujbv_223{animation-delay:-.6s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+7) ._u--circle_1ujbv_223{animation-delay:-.7s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+8) ._u--circle_1ujbv_223{animation-delay:-.8s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+9) ._u--circle_1ujbv_223{animation-delay:-.9s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+10) ._u--circle_1ujbv_223{animation-delay:-1s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+11) ._u--circle_1ujbv_223{animation-delay:-1.1s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+12) ._u--circle_1ujbv_223{animation-delay:-1.2s}._g-circles--v3_1ujbv_331 ._g--circle_1ujbv_57{fill-opacity:1;animation-name:_opacity_1ujbv_1,_colors_1ujbv_1}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57{fill-opacity:1;fill:orange;animation-name:_opacity_1ujbv_1,_colors-3_1ujbv_1}._g-circles--v4_1ujbv_345 ._u--circle_1ujbv_223{animation:_transform_1ujbv_1 1.2s linear infinite}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+1) ._u--circle_1ujbv_223{animation-delay:-.1s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+2) ._u--circle_1ujbv_223{animation-delay:-.2s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+3) ._u--circle_1ujbv_223{animation-delay:-.3s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+4) ._u--circle_1ujbv_223{animation-delay:-.4s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+5) ._u--circle_1ujbv_223{animation-delay:-.5s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+6) ._u--circle_1ujbv_223{animation-delay:-.6s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+7) ._u--circle_1ujbv_223{animation-delay:-.7s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+8) ._u--circle_1ujbv_223{animation-delay:-.8s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+9) ._u--circle_1ujbv_223{animation-delay:-.9s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+10) ._u--circle_1ujbv_223{animation-delay:-1s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+11) ._u--circle_1ujbv_223{animation-delay:-1.1s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+12) ._u--circle_1ujbv_223{animation-delay:-1.2s}@keyframes _opacity_1ujbv_1{3%{fill-opacity:1}75%{fill-opacity:0}}@keyframes _opacity-stroke_1ujbv_1{10%{stroke-opacity:1}85%{stroke-opacity:0}}@keyframes _colors_1ujbv_1{0%{fill:#9acd32}10%{fill:gold}75%{fill:#dc143c}}@keyframes _colors-stroke_1ujbv_1{0%{stroke:#9acd32}10%{stroke:gold}75%{stroke:#dc143c}}@keyframes _colors-2_1ujbv_1{0%{fill:#ff0}50%{fill:red}65%{fill:#ff4500}95%{fill:gold}}@keyframes _colors-3_1ujbv_1{0%{fill:#9acd32}50%{fill:#40e0d0}65%{fill:#ff0}95%{fill:orange}}@keyframes _transform_1ujbv_1{10%{transform-origin:70px 70px;transform:scale(.75)}}@keyframes _transform-2_1ujbv_1{40%{transform:scale(.85) translate(10px,10px)}60%{stroke-width:20}}._dots-ring_d2oym_5{--w: #fafafa;--b: #141414;--s: 1s;--d: calc(var(--s) / 6);--dot-size: 1vmin;position:relative}._content_d2oym_51,._dots_d2oym_5{display:flex;align-items:center;justify-content:center}._content_d2oym_51{width:50vmin;height:50vmin;background:#f000;animation:_spin_d2oym_1 8s linear 0s infinite}._control_d2oym_87{position:absolute;inset:0;opacity:0;cursor:pointer;z-index:4}._control_d2oym_87:checked~div{filter:invert(1)}._control_d2oym_87:checked+._bg_d2oym_113:before{content:"CLICK TO DARK"}._bg_d2oym_113{position:absolute;background:var(--b);z-index:-2;inset:0}._bg_d2oym_113:before{content:"CLICK TO LIGHT";position:absolute;top:100px;left:0;color:var(--w);font-family:Arial,Helvetica,serif;font-size:12px;text-shadow:0 0 1px var(--w);opacity:.25}._ring_d2oym_185{width:64%;height:64%;border:1.5vmin solid var(--w);border-radius:100%;box-shadow:0 0 0 1vmin var(--b),0 0 0 1vmin var(--b) inset;animation:_spin_d2oym_1 8s linear 0s infinite reverse;z-index:0}._dots_d2oym_5{background:#0ff0;width:100%;height:100%;position:relative}._dot_d2oym_5{position:absolute;left:0;width:50%;height:7vmin;background:#f000;transform-origin:100% 50%;z-index:-1;animation:_over-ring_d2oym_1 calc(var(--s) * 2) linear 0s infinite}._dot_d2oym_5 span{position:absolute;left:0;width:5.5vmin;height:5.5vmin;background:var(--w);border:1vmin solid var(--b);border-radius:100%;animation:_ball_d2oym_1 var(--s) ease-in-out 0s infinite alternate}._dot_d2oym_5:nth-child(1){transform:rotate(-30deg);animation-delay:calc(var(--d) * 0)}._dot_d2oym_5:nth-child(1) span{animation-delay:calc(var(--d) * 0)}._dot_d2oym_5:nth-child(2){transform:rotate(-60deg);animation-delay:calc(var(--d) * -1)}._dot_d2oym_5:nth-child(2) span{animation-delay:calc(var(--d) * -1)}._dot_d2oym_5:nth-child(3){transform:rotate(-90deg);animation-delay:calc(var(--d) * -2)}._dot_d2oym_5:nth-child(3) span{animation-delay:calc(var(--d) * -2)}._dot_d2oym_5:nth-child(4){transform:rotate(-120deg);animation-delay:calc(var(--d) * -3)}._dot_d2oym_5:nth-child(4) span{animation-delay:calc(var(--d) * -3)}._dot_d2oym_5:nth-child(5){transform:rotate(-150deg);animation-delay:calc(var(--d) * -4)}._dot_d2oym_5:nth-child(5) span{animation-delay:calc(var(--d) * -4)}._dot_d2oym_5:nth-child(6){transform:rotate(-180deg);animation-delay:calc(var(--d) * -5)}._dot_d2oym_5:nth-child(6) span{animation-delay:calc(var(--d) * -5)}._dot_d2oym_5:nth-child(7){transform:rotate(-210deg);animation-delay:calc(var(--d) * -6)}._dot_d2oym_5:nth-child(7) span{animation-delay:calc(var(--d) * -6)}._dot_d2oym_5:nth-child(8){transform:rotate(-240deg);animation-delay:calc(var(--d) * -7)}._dot_d2oym_5:nth-child(8) span{animation-delay:calc(var(--d) * -7)}._dot_d2oym_5:nth-child(9){transform:rotate(-270deg);animation-delay:calc(var(--d) * -8)}._dot_d2oym_5:nth-child(9) span{animation-delay:calc(var(--d) * -8)}._dot_d2oym_5:nth-child(10){transform:rotate(-300deg);animation-delay:calc(var(--d) * -9)}._dot_d2oym_5:nth-child(10) span{animation-delay:calc(var(--d) * -9)}._dot_d2oym_5:nth-child(11){transform:rotate(-330deg);animation-delay:calc(var(--d) * -10)}._dot_d2oym_5:nth-child(11) span{animation-delay:calc(var(--d) * -10)}._dot_d2oym_5:nth-child(12){transform:rotate(-360deg);animation-delay:calc(var(--d) * -11)}._dot_d2oym_5:nth-child(12) span{animation-delay:calc(var(--d) * -11)}@keyframes _spin_d2oym_1{to{transform:rotate(-360deg)}}@keyframes _ball_d2oym_1{to{left:calc(var(--dot-size) * 12);width:calc(var(--dot-size) * 4);height:calc(var(--dot-size) * 4)}}@keyframes _over-ring_d2oym_1{0%,50%{z-index:-1}51%,to{z-index:1}}._loader_13ftp_13{font-size:20px;line-height:150px;letter-spacing:2px;text-align:center;color:#fff000;background:transparent;border:3px solid #3c3c3c;border-radius:50%;text-shadow:0 0 10px #fff000;box-shadow:0 0 20px #00000080}._loader_13ftp_13:before{content:"";position:absolute;left:0;top:0;width:100%;height:100%;border:3px solid transparent;border-top:3px solid #fff000;border-right:3px solid #fff000;border-radius:50%;animation:_animateCircle_13ftp_1 2s linear infinite}._loader_13ftp_13 span{display:block;position:absolute;left:50%;top:calc(50% - 2px);width:50%;height:4px;transform-origin:left;background:transparent;animation:_animateDot_13ftp_1 2s linear infinite}._loader_13ftp_13 span:before{content:"";position:absolute;right:-8px;top:-6px;width:16px;height:16px;border-radius:50%;background:#fff000;box-shadow:0 0 10px #fff000}@keyframes _animateCircle_13ftp_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _animateDot_13ftp_1{0%{transform:rotate(45deg)}to{transform:rotate(405deg)}}._a_17o17_51{animation:_rotate-clock-wise_17o17_1 3s infinite linear}@keyframes _rotate-clock-wise_17o17_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._b_17o17_79{animation:_rotate-anti-clock-wise_17o17_1 .9s infinite linear}@keyframes _rotate-anti-clock-wise_17o17_1{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.pl1__g,.pl1__rect{animation:pl1-a 1.5s cubic-bezier(.65,0,.35,1) infinite}.pl1__g{transform-origin:64px 64px}.pl1__rect:first-child{animation-name:pl1-b}.pl1__rect:nth-child(2){animation-name:pl1-c}@keyframes pl1-b{0%{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:40px}20%{animation-timing-function:steps(1,start);width:40px;height:0}60%{animation-timing-function:cubic-bezier(.65,0,.35,1);width:0;height:40px}80%,to{width:40px;height:40px}}@keyframes pl1-c{0%{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:40px;transform:translateY(48px)}20%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:40px;height:88px;transform:translate(0)}40%{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:40px;transform:translate(0)}60%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:88px;height:40px;transform:translate(0)}80%,to{width:40px;height:40px;transform:translate(48px)}}.pl2__rect,.pl2__rect-g{animation:pl1-a 1.5s cubic-bezier(.65,0,.35,1) infinite;animation-name:pl2-a}.pl2__rect{animation-name:pl2-b}.pl2__rect-g .pl2__rect{transform-origin:20px 128px}.pl2__rect-g:first-child,.pl2__rect-g:first-child .pl2__rect{animation-delay:-.25s}.pl2__rect-g:nth-child(2),.pl2__rect-g:nth-child(2) .pl2__rect{animation-delay:-.125s}.pl2__rect-g:nth-child(2) .pl2__rect{transform-origin:64px 128px}.pl2__rect-g:nth-child(3) .pl2__rect{transform-origin:108px 128px}@keyframes pl2-a{0%,25%,66.67%,to{transform:translateY(0)}50%{animation-timing-function:cubic-bezier(.33,0,.67,0);transform:translateY(-80px)}}@keyframes pl2-b{0%,to{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:24px;transform:rotate(180deg) translate(0)}33.33%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:20px;height:64px;transform:rotate(180deg) translate(10px)}66.67%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:28px;height:44px;transform:rotate(180deg) translate(6px)}}.pl3__rect{animation:pl1-a 1.5s cubic-bezier(.65,0,.35,1) infinite;animation-name:pl3}.pl3__rect-g{transform-origin:64px 64px}@keyframes pl1-a{0%{transform:rotate(0)}80%,to{animation-timing-function:steps(1,start);transform:rotate(90deg)}}@keyframes pl3{0%{transform:translate(64px);width:64px;height:64px}25%{transform:translate(0);width:128px;height:32px}50%{transform:translate(0);width:64px;height:64px}75%{transform:translate(0);width:32px;height:128px}to{transform:translateY(64px);width:64px;height:64px}}._preloader-squares_1isss_5 ul{transform:rotate(45deg)}._preloader-squares_1isss_5 ul li{position:relative;width:50%;height:50%;list-style:none;float:left}._preloader-squares_1isss_5 ul li:before{content:"";position:absolute;inset:0;transform-origin:100% 100%;animation:_animate_1isss_1 3.3s linear infinite}._preloader-squares_1isss_5 ul li:nth-child(1){transform:rotate(0)}._preloader-squares_1isss_5 ul li:nth-child(1):before{animation-delay:0s;background:#f96161}._preloader-squares_1isss_5 ul li:nth-child(2){transform:rotate(90deg)}._preloader-squares_1isss_5 ul li:nth-child(2):before{animation-delay:.4s;background:#6ce5c0}._preloader-squares_1isss_5 ul li:nth-child(3){transform:rotate(270deg)}._preloader-squares_1isss_5 ul li:nth-child(3):before{animation-delay:1.2s;background:#5bcedf}._preloader-squares_1isss_5 ul li:nth-child(4){transform:rotate(180deg)}._preloader-squares_1isss_5 ul li:nth-child(4):before{animation-delay:.8s;background:#ffec78}@keyframes _animate_1isss_1{0%{transform:perspective(200px) rotateX(0);opacity:0}10%{transform:perspective(200px) rotateX(-180deg);opacity:0}25%{transform:perspective(200px) rotateX(0);opacity:1}75%{transform:perspective(200px) rotateX(0);opacity:1}90%{transform:perspective(200px) rotateY(180deg);opacity:0}to{transform:perspective(200px) rotateY(0);opacity:0}}:root{--hue: 223;--trans-dur: .3s;font-size:calc(16px + (24 - 16) * (100vw - 320px) / (2560 - 320))}._pl_b9jmf_49{display:flex;justify-content:space-between;align-items:center;filter:drop-shadow(.9em .9em 4px rgba(0,0,0,.4));margin:auto;width:12em;height:12em}._pl__bubble_b9jmf_69{position:relative;width:3em;height:3em}._pl__bubble-drop_b9jmf_81{width:.125em;height:.5em;transform:translate(-50%,-3em)}._pl__bubble-drop_b9jmf_81,._pl__bubble-drop_b9jmf_81:before{transform-origin:50% 0}._pl__bubble-drop_b9jmf_81:nth-child(2){transform:translate(-50%,-3em) rotate(51.4285714286deg)}._pl__bubble-drop_b9jmf_81:nth-child(3){transform:translate(-50%,-3em) rotate(102.8571428571deg)}._pl__bubble-drop_b9jmf_81:nth-child(4){transform:translate(-50%,-3em) rotate(154.2857142857deg)}._pl__bubble-drop_b9jmf_81:nth-child(5){transform:translate(-50%,-3em) rotate(205.7142857143deg)}._pl__bubble-drop_b9jmf_81:nth-child(6){transform:translate(-50%,-3em) rotate(257.1428571429deg)}._pl__bubble-drop_b9jmf_81:nth-child(7){transform:translate(-50%,-3em) rotate(308.5714285714deg)}._pl__bubble_b9jmf_69:before,._pl__bubble_b9jmf_69:after,._pl__bubble-drop_b9jmf_81{position:absolute}._pl__bubble_b9jmf_69:before,._pl__bubble_b9jmf_69:after,._pl__bubble-drop_b9jmf_81:before{animation:_bubble-rise-before_b9jmf_1 1.5s linear infinite}._pl__bubble_b9jmf_69:before,._pl__bubble_b9jmf_69:after{border-radius:50%}._pl__bubble_b9jmf_69:after,._pl__bubble-drop_b9jmf_81{top:50%;left:50%}._pl__bubble_b9jmf_69:before{box-shadow:0 -.0625em 0 .0625em hsl(var(--hue),90%,90%) inset,0 0 0 .0625em hsl(var(--hue),90%,70%) inset,0 0 .25em .25em hsla(var(--hue),90%,70%,.7) inset;transform:translateY(4.5em) scale(0)}._pl__bubble_b9jmf_69:after{animation-name:_bubble-rise-after_b9jmf_1;background-image:radial-gradient(25% 10% at 50% 5%,#fff 48%,#fff0 50%);width:87.5%;height:87.5%;transform:translate(-50%,-50%) translateY(4.5em) rotate(-45deg) scale(0)}._pl__bubble_b9jmf_69:before,._pl__bubble-drop_b9jmf_81:before{width:100%;height:100%}._pl__bubble-drop_b9jmf_81:before{animation-name:_bubble-drop_b9jmf_1;background-color:hsl(var(--hue),90%,80%);border-radius:.0625em;transform:translateY(0) scaleY(0);transform-origin:50% 0}._pl__bubble_b9jmf_69:before,._pl__bubble_b9jmf_69:after,._pl__bubble-drop_b9jmf_81:before{content:"";display:block}._pl__bubble_b9jmf_69:nth-child(2):before,._pl__bubble_b9jmf_69:nth-child(2):after,._pl__bubble_b9jmf_69:nth-child(2) ._pl__bubble-drop_b9jmf_81:before{animation-delay:.15s}._pl__bubble_b9jmf_69:nth-child(3):before,._pl__bubble_b9jmf_69:nth-child(3):after,._pl__bubble_b9jmf_69:nth-child(3) ._pl__bubble-drop_b9jmf_81:before{animation-delay:.3s}@keyframes _bubble-rise-before_b9jmf_1{0%{animation-timing-function:cubic-bezier(.12,0,.39,0);transform:translateY(4.5em) scale(0)}30%{animation-timing-function:cubic-bezier(.61,1,.88,1);transform:translateY(.75em) scale(1)}60%{animation-timing-function:cubic-bezier(.12,0,.39,0);opacity:1;transform:translateY(-3em) scale(1)}70%,to{opacity:0;transform:translateY(-3em) scale(.25)}}@keyframes _bubble-rise-after_b9jmf_1{0%{animation-timing-function:cubic-bezier(.12,0,.39,0);transform:translate(-50%,-50%) translateY(4.5em) rotate(-45deg) scale(0)}30%{animation-timing-function:cubic-bezier(.61,1,.88,1);transform:translate(-50%,-50%) translateY(.75em) rotate(-45deg) scale(1)}60%{animation-timing-function:cubic-bezier(.12,0,.39,0);opacity:1;transform:translate(-50%,-50%) translateY(-3em) rotate(-45deg) scale(1)}70%,to{opacity:0;transform:translate(-50%,-50%) translateY(-3em) rotate(-45deg) scale(.25)}}@keyframes _bubble-drop_b9jmf_1{0%{animation-timing-function:steps(1,end);visibility:hidden;transform:translateY(0) scaleY(1)}65%{animation-timing-function:cubic-bezier(.33,1,.68,1);visibility:visible;transform:translateY(0) scaleY(1)}80%,to{transform:translateY(400%) scaleY(0)}}._particle_qdkb4_5{--angle: (5 * var(--index));--radius: 30;--x: calc(sin(var(--angle)) * var(--radius) * var(--dot-size));--y: calc(cos(var(--angle)) * var(--radius) * var(--dot-size));--angle2: calc(var(--index) * 1turn / var(--total));--x2: calc(sin(var(--angle2)) * var(--radius) * var(--dot-size));--y2: calc(cos(var(--angle2)) * var(--radius) * var(--dot-size));--size: 5;--speed: 3s;--delay: calc(var(--index) * var(--speed) / var(--total) * 4);--hue-angle: 10;--hue-range: 60;--hue-start: 20;animation:_animation_qdkb4_1 var(--speed) ease-out infinite alternate var(--delay);transform:translate3d(var(--x),var(--y),0);opacity:0;border-radius:50%;background:currentColor;color:oklch(75% .3 calc(sin(var(--hue-angle) * var(--index)) * var(--hue-range) + var(--hue-start)));position:absolute;width:calc(var(--size) * .1 * var(--dot-size));height:calc(var(--size) * .1 * var(--dot-size));contain:strict}@keyframes _animation_qdkb4_1{to{transform:translate3d(var(--x2),var(--y2),0);opacity:1}}._wrapper_1fkod_1{display:block;position:relative;overflow:hidden}._mainText_1fkod_17{display:block;transition:transform .5s}._hoverText_1fkod_27{position:absolute;left:0;top:0;width:100%;height:100%;transform:translateY(100%);transition:transform .25s}._wrapper_1fkod_1:hover ._mainText_1fkod_17{transform:translateY(-100%);transition:transform .25s}._wrapper_1fkod_1:hover ._hoverText_1fkod_27{transform:translateY(0);transition:transform .25s}._container_18r7v_31{perspective:150px;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}._container_18r7v_31 input{display:none}._container_18r7v_31 input:checked~._button_18r7v_75{transform:rotateX(180deg);box-shadow:4px -8px 12px #0001}._button_18r7v_75{position:relative;display:block;width:100%;height:100%;font-weight:600;text-align:center;line-height:46px;text-transform:uppercase;border-radius:25px;box-shadow:4px 8px 12px #0001;transform-style:preserve-3d;transition:all .5s ease-in-out;cursor:pointer}._button_18r7v_75 ._front_18r7v_141,._button_18r7v_75 ._back_18r7v_143{box-sizing:border-box;position:absolute;display:block;inset:0;color:#34495e;background:#fff;border:2px solid #eeeded60;border-radius:25px;transform:rotateX(0);backface-visibility:hidden;display:flex;align-items:center;justify-content:center;z-index:2}._button_18r7v_75 ._back_18r7v_143{color:#fff;background:#64c760;border:2px solid #489146;transform:rotateX(180deg);z-index:1}._btn_1xoda_75{background:transparent;border:1px solid #91C9FF;outline:none;transition:.3s ease-in-out}._svg-border_1xoda_99{position:absolute;inset:0;fill:none;stroke:#fff;stroke-dasharray:150 480;stroke-dashoffset:150;transition:1s ease-in-out}._btn_1xoda_75:hover{background:#4f95da}._btn_1xoda_75:hover ._svg-border_1xoda_99{stroke-dashoffset:-480}._btn_1xoda_75 span{font-size:18px;font-weight:100;color:#fff}._wrapper_sogws_7{--color-primary: #6B04FF;--duration: 1.2s;--lag-duration: calc(var(--duration) * .9);--lag-delay: .1s;--easing: cubic-bezier(.7, .1, .4, 1.5);--drip-easing: cubic-bezier(.9, .5, .7, .9)}._goo-filter_sogws_25{position:absolute;left:0;top:0;visibility:hidden}._transit_sogws_73{transition:inherit;transition-property:transform;transition-duration:var(--duration);transition-timing-function:var(--easing)}#_toggle_sogws_1{position:absolute;left:0;top:0;opacity:0}#_app_sogws_1{padding:12px;font-size:2vmin;color:#fff;display:grid;grid-gap:32px;grid-template-rows:2fr 1fr;grid-template-columns:1fr}._background_sogws_165{filter:url(#goo);grid-column:1;grid-row:1/span 2;display:grid;grid-template:inherit;z-index:-1}._bg-content_sogws_185,._bg-description_sogws_187{border-radius:12px;background:var(--color-primary)}._drip_sogws_199{position:absolute;width:32px;height:24px;background:var(--color-primary);border-radius:10px}._drip_sogws_199:nth-child(1){left:2%}._drip_sogws_199:nth-child(2){left:35%;width:15vmin}._drip_sogws_199:nth-child(3){right:10%;width:12vmin}._drip_sogws_199:nth-child(4){left:20%}._drip_sogws_199:nth-child(5){left:55%;width:15vmin}._drip_sogws_199:nth-child(6){right:4%;width:5vmin}._bg-content_sogws_185 ._drip_sogws_199{bottom:0}._bg-content_sogws_185,._content_sogws_291{width:100px;height:100px}._content_sogws_291,._description_sogws_307{padding:1em;text-align:center;display:flex;align-items:center;flex-direction:column;justify-content:center}._content_sogws_291 header,._description_sogws_307 header{font-size:1.2em}._content_sogws_291 p,._description_sogws_307 p{margin:.5em;color:#fffc}._pronunciation_sogws_349{font-size:3vmin;line-height:1.25;opacity:.8}._content_sogws_291{grid-column:1;grid-row:1;z-index:3}._description_sogws_307{width:40px;grid-row:2;grid-column:1;z-index:2}._avatar_sogws_389{margin-bottom:3vmin;width:30px;height:30px;font-size:1rem;border-radius:12px;background-color:#fff;display:flex;align-items:center;justify-content:center}._button_sogws_425{position:absolute;bottom:-12px;width:40px;height:40px;border-radius:12px;color:#000;background-color:#fff;box-shadow:0 2px 2px #0003;transition:transform calc(var(--duration) / 2) var(--easing);will-change:transform;cursor:pointer;display:flex;justify-content:center;align-items:center;z-index:10}._button_sogws_425:hover{transform:scale(.9)}._button_sogws_425:before{content:"";position:absolute;width:12px;height:12px;border:6px solid transparent;border-bottom-color:#000;border-right-color:#000;transform:rotate(45deg);transition-property:transform}._bg-description_sogws_187{transition-property:transform;transform:translateY(-140%)}._description_sogws_307{transition-property:opacity,transform;transform:translateY(-80%);opacity:0}#_toggle_sogws_1:checked~._description_sogws_307{transform:translateY(0);opacity:1}#_toggle_sogws_1:checked~* ._button_sogws_425:before{transform:rotate(-135deg)}#_toggle_sogws_1:checked~* ._bg-description_sogws_187{transform:translateY(0)}#_toggle_sogws_1:checked~* ._bg-description_sogws_187 ._drip_sogws_199{animation:_up-down_sogws_1 var(--lag-duration) var(--drip-easing) both;animation-delay:var(--lag-delay)}@keyframes _up-down_sogws_1{0%,to{transform:none}20%{transform:scaleX(.01) translateY(-100%)}}#_toggle_sogws_1:checked~* ._bg-content_sogws_185 ._drip_sogws_199{animation:_down-up_sogws_1 var(--lag-duration) var(--drip-easing) both;animation-delay:var(--lag-delay)}@keyframes _down-up_sogws_1{0%,10%,to{transform:none}40%{transform:scaleX(.01) translateY(100%)}}#_toggle_sogws_1:checked~* ._drip_sogws_199:nth-child(2){animation-duration:calc(var(--lag-duration) * 1.1)}#_toggle_sogws_1:checked~* ._drip_sogws_199:nth-child(4){animation-duration:calc(var(--lag-duration) * .9)}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--destructive: 0 100% 50%;--destructive-foreground: 210 40% 98%;--popover: 0 0% 100%;--popover-foreground: 222.2 47.4% 11.2%;--card: 0 0% 100%;--card-foreground: 222.2 47.4% 11.2%;--input: 214.3 31.8% 91.4%;--border: 214.3 31.8% 91.4%;--ring: 215 20.2% 65.1%;--radius: .5rem}.dark{--background: 224 71% 4%;--foreground: 213 31% 91%;--muted: 223 47% 11%;--muted-foreground: 215.4 16.3% 56.9%;--accent: 216 34% 17%;--accent-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 1.2%;--secondary: 222.2 47.4% 11.2%;--secondary-foreground: 210 40% 98%;--destructive: 0 63% 31%;--destructive-foreground: 210 40% 98%;--popover: 224 71% 4%;--popover-foreground: 215 20.2% 65.1%;--card: 224 71% 4%;--card-foreground: 213 31% 91%;--input: 216 34% 17%;--border: 216 34% 17%;--ring: 216 34% 17%;--radius: .5rem}*{border-color:hsl(var(--border))}html,body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}:root{--destructive: 0 100% 97%;--destructive-foreground: 360 100% 45%;--destructive-border: 359 100% 94%;--warning: 49 100% 97%;--warning-foreground: 31 92% 45%;--warning-border: 49 91% 91%;--info: 208 100% 97%;--info-foreground: 210 92% 45%;--info-border: 221 91% 91%;--success: 143 85% 96%;--success-foreground: 140 100% 27%;--success-border: 145 92% 91%}.dark{--destructive: 358 76% 10%;--destructive-foreground: 358 100% 81%;--destructive-border: 357 89% 16%;--warning: 64 100% 6%;--warning-foreground: 46 87% 65%;--warning-border: 60 100% 12%;--info: 215 100% 6%;--info-foreground: 216 87% 65%;--info-border: 223 100% 12%;--success: 150 100% 6%;--success-foreground: 150 86% 65%;--success-border: 147 100% 12%}*{scrollbar-color:initial;scrollbar-width:initial}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.bottom-0{bottom:0}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.isolate{isolation:isolate}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.col-start-2{grid-column-start:2}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-12{margin-right:3rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.\!table{display:table!important}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-12{width:3rem;height:3rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-7{width:1.75rem;height:1.75rem}.size-8{width:2rem;height:2rem}.size-9{width:2.25rem;height:2.25rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[100px\]{height:100px}.h-\[120px\]{height:120px}.h-\[150px\]{height:150px}.h-\[160px\]{height:160px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[20px\]{height:20px}.h-\[240px\]{height:240px}.h-\[60px\]{height:60px}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[300px\]{max-height:300px}.max-h-\[720px\]{max-height:720px}.max-h-screen{max-height:100vh}.min-h-0{min-height:0px}.min-h-\[60px\]{min-height:60px}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[150px\]{width:150px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[280px\]{width:280px}.w-\[36px\]{width:36px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-96{min-width:24rem}.min-w-\[12rem\]{min-width:12rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[16px\,1fr\]{grid-template-columns:16px 1fr}.grid-rows-\[auto\,1fr\,auto\]{grid-template-rows:auto 1fr auto}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.content-center{align-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-normal{justify-content:normal}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-\[14px\]{border-width:14px}.border-\[20px\]{border-width:20px}.border-\[8px\]{border-width:8px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dotted{border-style:dotted}.border-current{border-color:currentColor}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-input{border-color:hsl(var(--input))}.border-muted{border-color:hsl(var(--muted))}.border-muted-foreground{border-color:hsl(var(--muted-foreground))}.border-muted-foreground\/30{border-color:hsl(var(--muted-foreground) / .3)}.border-primary{border-color:hsl(var(--primary))}.border-primary-400{--tw-border-opacity: 1;border-color:rgb(161 161 170 / var(--tw-border-opacity))}.border-primary-foreground{border-color:hsl(var(--primary-foreground))}.border-primary\/50{border-color:hsl(var(--primary) / .5)}.border-transparent{border-color:transparent}.border-x-transparent{border-left-color:transparent;border-right-color:transparent}.border-y-transparent{border-top-color:transparent;border-bottom-color:transparent}.border-l-sky-500{--tw-border-opacity: 1;border-left-color:rgb(14 165 233 / var(--tw-border-opacity))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:hsl(var(--accent))}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-black\/80{background-color:#000c}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-lime-400{--tw-bg-opacity: 1;background-color:rgb(163 230 53 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground\/20{background-color:hsl(var(--muted-foreground) / .2)}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-orange-400{--tw-bg-opacity: 1;background-color:rgb(251 146 60 / var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-popover\/80{background-color:hsl(var(--popover) / .8)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.bg-primary-500\/20{background-color:#71717a33}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-sky-950{--tw-bg-opacity: 1;background-color:rgb(8 47 73 / var(--tw-bg-opacity))}.bg-slate-800\/90{background-color:#1e293be6}.bg-transparent{background-color:transparent}.bg-zinc-400{--tw-bg-opacity: 1;background-color:rgb(161 161 170 / var(--tw-bg-opacity))}.\!bg-cover{background-size:cover!important}.bg-cover{background-size:cover}.\!bg-center{background-position:center!important}.bg-center{background-position:center}.fill-current{fill:currentColor}.fill-none{fill:none}.fill-primary{fill:hsl(var(--primary))}.fill-slate-600{fill:#475569}.stroke-current{stroke:currentColor}.stroke-none{stroke:none}.stroke-primary{stroke:hsl(var(--primary))}.stroke-sky-500{stroke:#0ea5e9}.stroke-\[1\.5\]{stroke-width:1.5}.stroke-\[5\]{stroke-width:5}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-0{padding-bottom:0}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-serif{font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-7xl{font-size:4.5rem;line-height:1}.text-\[\.65rem\]{font-size:.65rem}.text-\[0\.70rem\]{font-size:.7rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[10px\]{font-size:10px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extralight{font-weight:200}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-accent-foreground\/50{color:hsl(var(--accent-foreground) / .5)}.text-background{color:hsl(var(--background))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground) / .5)}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}.text-green-950{--tw-text-opacity: 1;color:rgb(5 46 22 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-sky-300{--tw-text-opacity: 1;color:rgb(125 211 252 / var(--tw-text-opacity))}.text-sky-500{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.accent-foreground{accent-color:hsl(var(--foreground))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-muted-foreground\/50{--tw-ring-color: hsl(var(--muted-foreground) / .5)}.ring-offset-1{--tw-ring-offset-width: 1px}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.smallscroll{--sb-width: 8px;--sb-radius: 4px;--sb-color: #666b7a;scrollbar-color:var(--sb-color) transparent;scrollbar-width:thin}.smallscroll::-webkit-scrollbar{width:var(--sb-width);height:var(--sb-width);background-color:transparent}.smallscroll::-webkit-scrollbar-thumb{background-color:var(--sb-color);border-radius:var(--sb-radius)}.smallscroll::-webkit-scrollbar-corner{background-color:transparent}.resizer::-webkit-resizer{background-color:transparent;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsSAAALEgHS3X78AAAAIGNIUk0AAG11AABzoAAA9q8AAIWZAABumgAA57sAADF9AAAXvQF2CngAAABESURBVHjajM67DQAgDENBw6x0WZDtHi3KR4klF5ausAAVvf8u0TGjgwFlMEUeepR+DCj72CJAC9AkW8OM4QMAAP//AwD5ltVB1vqf0gAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:bottom right;background-size:95% 95%}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.\!\[--github-background-color\:hsla\(var\(--muted\)\/\.7\)\]{--github-background-color: hsla(var(--muted)/.7) !important}.\!\[--github-border\:none\]{--github-border: none !important}.\[--bg\:hsl\(var\(--hue1\)\,90\%\,90\%\)\]{--bg: hsl(var(--hue1),90%,90%)}.\[--fg\:hsl\(var\(--hue1\)\,90\%\,10\%\)\]{--fg: hsl(var(--hue1),90%,10%)}.\[--hue1\:223\]{--hue1: 223}.\[--hue1\:53\]{--hue1: 53}.\[--hue2\:153\]{--hue2: 153}.\[--hue2\:163\]{--hue2: 163}.\[--hue2\:253\]{--hue2: 253}.\[--hue2\:283\]{--hue2: 283}.\[--hue2\:343\]{--hue2: 343}.\[--hue\:223\]{--hue: 223}.\[--off-hue\:3\]{--off-hue: 3}.\[--on-hue1\:123\]{--on-hue1: 123}.\[--on-hue2\:168\]{--on-hue2: 168}.\[--primary\:hsl\(var\(--hue\)\,90\%\,50\%\)\]{--primary: hsl(var(--hue),90%,50%)}.\[--primary\:hsl\(var\(--hue1\)\,90\%\,50\%\)\]{--primary: hsl(var(--hue1),90%,50%)}.\[--secondary\:hsl\(var\(--hue2\)\,90\%\,50\%\)\]{--secondary: hsl(var(--hue2),90%,50%)}.\[--trans-dur\:0\.2s\]{--trans-dur: .2s}.\[--trans-timing\:cubic-bezier\(0\.65\,0\,0\.35\,1\)\]{--trans-timing: cubic-bezier(.65,0,.35,1)}.\[background-size\:_1em_1em\]{background-size:1em 1em}.\[grid-area\:1\/1\/2\/2\]{grid-area:1/1/2/2}.\[scrollbar-gutter\:stable\]{scrollbar-gutter:stable}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-0:before{content:var(--tw-content);left:0}.before\:right-1:before{content:var(--tw-content);right:.25rem}.before\:-z-10:before{content:var(--tw-content);z-index:-10}.before\:h-\[1\.75rem\]:before{content:var(--tw-content);height:1.75rem}.before\:w-full:before{content:var(--tw-content);width:100%}.before\:border-l-2:before{content:var(--tw-content);border-left-width:2px}.before\:border-l-accent-foreground\/50:before{content:var(--tw-content);border-left-color:hsl(var(--accent-foreground) / .5)}.before\:bg-accent:before{content:var(--tw-content);background-color:hsl(var(--accent))}.before\:bg-muted\/80:before{content:var(--tw-content);background-color:hsl(var(--muted) / .8)}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:opacity-100:before{content:var(--tw-content);opacity:1}.after\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.after\:visible:after{content:var(--tw-content);visibility:visible}.after\:invisible:after{content:var(--tw-content);visibility:hidden}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-1:after{content:var(--tw-content);width:.25rem}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.after\:whitespace-pre:after{content:var(--tw-content);white-space:pre}.after\:border:after{content:var(--tw-content);border-width:1px}.after\:border-transparent:after{content:var(--tw-content);border-color:transparent}.after\:px-3:after{content:var(--tw-content);padding-left:.75rem;padding-right:.75rem}.after\:py-2:after{content:var(--tw-content);padding-top:.5rem;padding-bottom:.5rem}.after\:text-sm:after{content:var(--tw-content);font-size:.875rem;line-height:1.25rem}.after\:text-red-500:after{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.after\:\!\[content\:attr\(data-replicated\)_\"_\"\]:after{content:attr(data-replicated) " "!important}.after\:\[grid-area\:1\/1\/2\/2\]:after{content:var(--tw-content);grid-area:1/1/2/2}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.focus-within\:ring-1:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-within\:ring-ring:focus-within{--tw-ring-color: hsl(var(--ring))}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted) / .4)}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-muted-foreground[data-state=checked]{background-color:hsl(var(--muted-foreground))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-accent[data-state=checked]{color:hsl(var(--accent))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on],.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:before\:opacity-100:hover:before{content:var(--tw-content);opacity:1}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive) / .3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-primary-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(82 82 91 / var(--tw-ring-opacity))}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\:ring-offset-primary-200:focus{--tw-ring-offset-color: #e4e4e7}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color: hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-0:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.active\:scale-105:active{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:is(.dark .dark\:-rotate-90){--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:rotate-0){--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:scale-0){--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:scale-100){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:border-destructive){border-color:hsl(var(--destructive))}:is(.dark .dark\:\[--bg\:hsl\(var\(--hue1\)\,90\%\,10\%\)\]){--bg: hsl(var(--hue1),90%,10%)}:is(.dark .dark\:\[--fg\:hsl\(var\(--hue1\)\,90\%\,90\%\)\]){--fg: hsl(var(--hue1),90%,90%)}:is(.dark .dark\:before\:border-0):before{content:var(--tw-content);border-width:0px}:is(.dark .dark\:focus\:ring-primary-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(161 161 170 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-offset-primary-800:focus){--tw-ring-offset-color: #27272a}@media (min-width: 640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-\[425px\]{max-width:425px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){.md\:absolute{position:absolute}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:w-full{width:100%}.md\:max-w-\[420px\]{max-width:420px}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:\:-webkit-resizer\]\:rounded::-webkit-resizer{border-radius:.25rem}.\[\&\:\:-webkit-resizer\]\:\[backgroundSize\:80\%_80\%\]::-webkit-resizer{background-size:80% 80%}.\[\&\:has\(\>\.day-range-end\)\]\:rounded-r-md:has(>.day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\>\.day-range-start\)\]\:rounded-l-md:has(>.day-range-start){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:rounded-md:has([aria-selected]){border-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\.track\]\:h-px>.track{height:1px}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y: 2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>div\]\:w-full>div{width:100%}.\[\&\>div\]\:text-left>div{text-align:left}.\[\&\>div\]\:\[--github-arrow-border-color\:transparent\]>div{--github-arrow-border-color: transparent}.\[\&\>div\]\:\[--github-background-color\:transparent\]>div{--github-background-color: transparent}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\[data-fixed-width\]\>div\>div\]\:\!\[display\:block\][data-fixed-width]>div>div{display:block!important}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.first\:\[\&\[data-state\=open\]\>svg\]\:rotate-90[data-state=open]>svg:first-child{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.last\:\[\&\[data-state\=open\]\>svg\]\:rotate-90[data-state=open]>svg:last-child{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.w-color-saturation-fill\]\:\!size-4 .w-color-saturation-fill{width:1rem!important;height:1rem!important}.\[\&_\.w-color-saturation-fill\]\:\!-translate-x-2 .w-color-saturation-fill{--tw-translate-x: -.5rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.\[\&_\.w-color-saturation-fill\]\:\!-translate-y-2 .w-color-saturation-fill{--tw-translate-y: -.5rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/assets/index-DZwBtnCK.css b/assets/index-DZwBtnCK.css new file mode 100644 index 0000000..7584732 --- /dev/null +++ b/assets/index-DZwBtnCK.css @@ -0,0 +1 @@ +.splitpane-content,.splitpane{flex:1;min-height:0;min-width:0}.splitpane-divider{flex-shrink:0;z-index:1000;transition:background-color .1s ease .4s}.splitpane-divider.horizontal{width:3px}.splitpane-divider.vertical{height:3px}.splitpane-divider:hover{background-color:#2e8fff;cursor:ew-resize}.splitpane-divider.vertical:hover{cursor:ns-resize}._container_q763u_7 table{--border-color: #545d9e;border-spacing:0}._container_q763u_7 th,._container_q763u_7 td{padding:8px;text-align:left;border:1px solid #2e3252}._container_q763u_7 th{background-color:#272a3f}._container_q763u_7 td{color:#bdbddb;background-color:#212335}._sticky-header-row_q763u_57 th[scope=col]{position:sticky;top:0;border-bottom-color:var(--border-color)}._sticky-first-column_q763u_75 th[scope=col]:first-child,._sticky-first-column_q763u_75 th[scope=row]{position:sticky;left:0;border-right-color:var(--border-color)}._sticky-header-and-first-column_q763u_97 th[scope=col]{position:sticky;top:0;border-bottom-color:var(--border-color)}._sticky-header-and-first-column_q763u_97 th[scope=row]{position:sticky;left:0;border-right-color:var(--border-color)}._sticky-header-and-first-column_q763u_97 th[scope=col]:first-child{left:0;z-index:1;border-right-color:var(--border-color);border-bottom-color:var(--border-color)}._container_q763u_7::-webkit-scrollbar{width:6px;height:6px}._container_q763u_7::-webkit-scrollbar-track{background:#000}._container_q763u_7::-webkit-scrollbar-thumb{background-color:#9f9ec7;border-radius:10px}._container_q763u_7::-webkit-scrollbar-thumb:hover{background-color:#8988aa}._container_ny73l_25{display:flex;justify-content:center;align-items:center;margin:10vmin;overflow:hidden;transform:skew(5deg)}._container_ny73l_25 ._card_ny73l_41{flex:1;transition:all 1s ease-in-out;height:75vmin;position:relative}._container_ny73l_25 ._card_ny73l_41 ._card__head_ny73l_53{color:#000;background:#ff1eadbf;padding:.5em;transform:rotate(-90deg);transform-origin:0% 0%;transition:all .5s ease-in-out;min-width:100%;text-align:center;position:absolute;bottom:0;left:0;font-size:1em;white-space:nowrap}._container_ny73l_25 ._card_ny73l_41:hover{flex-grow:10}._container_ny73l_25 ._card_ny73l_41:hover img{filter:grayscale(0)}._container_ny73l_25 ._card_ny73l_41:hover ._card__head_ny73l_53{text-align:center;top:calc(100% - 2em);color:#fff;background:#00000080;font-size:2em;transform:rotate(0) skew(-5deg)}._container_ny73l_25 ._card_ny73l_41 img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:all 1s ease-in-out;filter:grayscale(100%)}._container_ny73l_25 ._card_ny73l_41:not(:nth-child(5)){margin-right:1em}._wrap_84gct_1{max-width:550px;height:500px;display:flex;gap:.5rem;overflow-y:hidden}._strip_84gct_19{position:relative;padding:0 .25rem;height:0;opacity:0;flex:20%;text-align:center;border:1px solid white;border-radius:3px;transition:flex .3s ease-in-out;cursor:pointer;overflow:hidden;display:grid;grid-template-rows:10% 60% 15% 15%;place-items:center}._strip_84gct_19>*{margin:auto}._strip_84gct_19:hover{transition:all .5s ease;flex:100%}._one_84gct_79{background:khaki}._two_84gct_81{background:#f08080}._three_84gct_83{background:peru}._four_84gct_85{background:wheat}._five_84gct_87{background:tan}._crown_84gct_91{justify-self:center;padding-top:.5rem;padding-bottom:1rem;width:50px;font-size:1.4rem;line-height:normal;font-weight:100;border-bottom:.2vmin solid #000}._h1_84gct_119{align-self:center;font-size:1.4rem;font-weight:200;line-height:1;transform:rotate(-180deg);writing-mode:vertical-rl;text-orientation:sideways;transition:transform .2s ease-in-out}._strip_84gct_19:hover ._h1_84gct_119{transform:rotate(-90deg) translate(10rem);z-index:10}._h2_84gct_153{padding:.5rem 0;font-size:1rem;border-top:1px solid #000;border-bottom:1px solid #000}._h3_84gct_165{font-size:.5rem}._review_84gct_175{position:absolute;padding:0 2rem;top:50%;left:50%;width:95%;height:97%;transform:translate(-50%,-50%);color:#000;background:ivory;opacity:0}._strip_84gct_19:hover ._review_84gct_175{transition:.5s ease-in-out;opacity:1}._review_84gct_175 p{margin-top:5rem;font-size:.75rem;text-align:left}._container_1fbyo_33{position:relative;width:800px;height:500px;transition:all .4s;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;gap:1em}._container_1fbyo_33:hover ._box_1fbyo_55{filter:grayscale(100%) opacity(24%)}._box_1fbyo_55{position:relative;transition:all .4s;background-size:cover;background:var(--img) center center;display:flex;justify-content:center;align-items:center}._container_1fbyo_33 ._box_1fbyo_55:hover{filter:grayscale(0%) opacity(100%)}._container_1fbyo_33:has(._box-1_1fbyo_95:hover){grid-template-columns:3fr 1fr 1fr 1fr 1fr}._container_1fbyo_33:has(._box-2_1fbyo_103:hover){grid-template-columns:1fr 3fr 1fr 1fr 1fr}._container_1fbyo_33:has(._box-3_1fbyo_111:hover){grid-template-columns:1fr 1fr 3fr 1fr 1fr}._container_1fbyo_33:has(._box-4_1fbyo_119:hover){grid-template-columns:1fr 1fr 1fr 3fr 1fr}._container_1fbyo_33:has(._box-5_1fbyo_127:hover){grid-template-columns:1fr 1fr 1fr 1fr 3fr}._box_1fbyo_55:nth-child(odd){transform:translateY(-16px)}._box_1fbyo_55:nth-child(2n){transform:translateY(16px)}._box_1fbyo_55:after{content:attr(data-text);position:absolute;padding:10px 10px 10px 14px;bottom:20px;transform:translateY(60px);transition:all .4s;color:#fff;background:#000;letter-spacing:4px;text-transform:uppercase;opacity:0}._box_1fbyo_55:hover:after{transform:translateY(0);transition-delay:.4s;opacity:1}.switch,.switch__input{-webkit-tap-highlight-color:#0000}.switch{margin:auto;position:relative;width:5em;height:3em;display:block}.switch__base-outer,.switch__base-inner{position:absolute;display:block}.switch__base-outer{left:.125em;top:.125em;width:4.75em;height:2.75em;border-radius:1.25em;box-shadow:-.125em -.125em .25em hsl(var(--hue),10%,30%),.125em .125em .125em hsl(var(--hue),10%,30%) inset,.125em .125em .25em #000,-.125em -.125em .125em hsl(var(--hue),10%,5%) inset}.switch__base-inner{left:.375em;top:.375em;width:4.25em;height:2.25em;border-radius:1.125em;box-shadow:-.25em -.25em .25em hsl(var(--hue),10%,30%) inset,.0625em .0625em .125em hsla(var(--hue),10%,30%),.125em .25em .25em hsl(var(--hue),10%,5%) inset,-.0625em -.0625em .125em hsla(var(--hue),10%,5%)}.switch__base-neon{position:absolute;left:0;top:0;width:100%;height:auto;display:block;overflow:visible}.switch__base-neon path{stroke-dasharray:0 104.26 0;transition:stroke-dasharray var(--trans-dur) var(--trans-timing)}.switch__input{position:relative;width:100%;height:100%;outline:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.switch__input:before{content:"";position:absolute;inset:-.125em;display:block;border-radius:.125em;box-shadow:0 0 0 .125em hsla(var(--hue),90%,50%,0);transition:box-shadow .15s linear}.switch__input:focus-visible:before{box-shadow:0 0 0 .125em var(--primary)}.switch__knob,.switch__knob-container{display:block;position:absolute;border-radius:1em}.switch__knob{width:2em;height:2em;background-color:hsl(var(--hue),10%,15%);background-image:radial-gradient(88% 88% at 50% 50%,hsl(var(--hue),10%,20%) 47%,hsla(var(--hue),10%,20%,0) 50%),radial-gradient(88% 88% at 47% 47%,hsl(var(--hue),10%,85%) 45%,hsla(var(--hue),10%,85%,0) 50%),radial-gradient(65% 70% at 40% 60%,hsl(var(--hue),10%,20%) 46%,hsla(var(--hue),10%,20%,0) 50%);box-shadow:-.0625em -.0625em .0625em hsl(var(--hue),10%,15%) inset,-.125em -.125em .0625em hsl(var(--hue),10%,5%) inset,.75em .25em .125em #000c;transition:transform var(--trans-dur) var(--trans-timing)}.switch__knob-container{left:.5em;top:.5em;width:4em;height:2em;overflow:hidden}.switch__knob-neon{display:block;width:2em;height:auto}.switch__knob-neon circle{opacity:0;stroke-dasharray:0 90.32 0 54.19;transition:opacity var(--trans-dur) steps(1,end),stroke-dasharray var(--trans-dur) var(--trans-timing)}.switch__knob-shadow{position:absolute;left:.5em;top:.5em;width:2em;height:2em;display:block;border-radius:50%;box-shadow:.125em .125em .125em #000000e6;transition:transform var(--trans-dur) var(--trans-timing)}.switch__led{position:absolute;left:0;top:0;width:.25em;height:.25em;display:block;background-color:hsl(var(--off-hue),90%,70%);border-radius:50%;box-shadow:0 -.0625em .0625em hsl(var(--off-hue),90%,40%) inset,0 0 .125em hsla(var(--off-hue),90%,70%,.3),0 0 .125em hsla(var(--off-hue),90%,70%,.3),.125em .125em .125em #00000080;transition:background-color var(--trans-dur) var(--trans-timing),box-shadow var(--trans-dur) var(--trans-timing)}.switch__text{position:absolute;width:1px;height:1px;overflow:hidden}.switch__input:checked~.switch__led{background-color:hsl(var(--on-hue1),90%,70%);box-shadow:0 -.0625em .0625em hsl(var(--on-hue1),90%,40%) inset,0 -.125em .125em hsla(var(--on-hue1),90%,70%,.3),0 .125em .125em hsla(var(--on-hue1),90%,70%,.3),.125em .125em .125em #00000080}.switch__input:checked~.switch__base-neon path{stroke-dasharray:52.13 0 52.13}.switch__input:checked~.switch__knob-shadow,.switch__input:checked~.switch__knob-container .switch__knob{transform:translate(100%)}.switch__input:checked~.switch__knob-container .switch__knob-neon circle{opacity:1;stroke-dasharray:45.16 0 45.16 54.19;transition-timing-function:steps(1,start),var(--trans-timing)}.toggle-wrapper{position:relative;display:flex;justify-content:center;align-items:center;-moz-column-gap:.25em;column-gap:.25em}.toggle-icon{width:.5em;height:.5em;fill:#4c9bab;filter:drop-shadow(0 1px 1px rgba(255,255,255,.4));transition:fill .4s}.toggle-checkbox:not(:checked)+.toggle-icon.off,.toggle-checkbox:checked~.toggle-icon.on{fill:#e0f9fc}.toggle-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;z-index:1;border-radius:3.125em;width:4.05em;height:100%;opacity:0;cursor:pointer}.toggle-container{position:relative;border-radius:3.125em;width:4.05em;height:1.5em;background-image:repeating-conic-gradient(#0b66a0 0% 25%,#1093a8 0% 50%);background-size:.125em .125em;box-shadow:inset 0 .125em .25em #00092699,inset -1.5em 0 .0625em #00092680,inset .5em 0 .5em #00092680,0 1px 1px #fff6}.toggle-button{display:flex;justify-content:center;align-items:center;position:absolute;top:.0625em;left:.0625em;border-radius:inherit;width:2.55em;height:calc(100% - .125em);background-image:linear-gradient(to right,#86e2fa,#125e79);box-shadow:0 .125em .25em #0009;transition:left .4s}.toggle-checkbox:checked~.toggle-container>.toggle-button{left:1.4375em}.toggle-button:before{content:"";position:absolute;top:inherit;border-radius:inherit;width:calc(100% - .375em);height:inherit;background-image:linear-gradient(to right,#0f73a8,#57cfe2,#b3f0ff)}.toggle-button:after{content:"";position:absolute;width:.5em;height:38%;background-image:repeating-linear-gradient(to right,#d2f2f6 0 .0625em,#4ea0ae .0625em .125em,transparent .125em .1875em)}._flip-clock_1dcm9_25{perspective:600px;margin:0 auto;text-align:center}._flip-clock_1dcm9_25 *,._flip-clock_1dcm9_25 *:before,._flip-clock_1dcm9_25 *:after{box-sizing:border-box}._flip-clock__piece_1dcm9_49{display:inline-block;margin:0 .2vw}@media (min-width: 1000px){._flip-clock__piece_1dcm9_49{margin:0 5px}}._flip-clock__slot_1dcm9_71{display:block;font-size:1rem;line-height:1.5}._flip-card_1dcm9_83{display:block;position:relative;padding-bottom:.72em;font-size:2.25rem;line-height:.95}@media (min-width: 1000px){._flip-clock__slot_1dcm9_71{font-size:1.2rem}._flip-card_1dcm9_83{font-size:3rem}}._flip-card__top_1dcm9_123,._flip-card__bottom_1dcm9_125,._flip-card__back-bottom_1dcm9_127,._flip-card__back_1dcm9_127:before,._flip-card__back_1dcm9_127:after{display:block;padding:.23em .25em .4em;width:1.8em;height:.72em;backface-visibility:hidden;transform-style:preserve-3d;color:#ccc;background:#222;border-radius:.15em .15em 0 0}._flip-card__bottom_1dcm9_125,._flip-card__back-bottom_1dcm9_127{position:absolute;left:0;top:50%;color:#fff;background:#393939;border-top:solid 1px #000;border-radius:0 0 .15em .15em;pointer-events:none;overflow:hidden;z-index:2}._flip-card__back-bottom_1dcm9_127{z-index:1}._flip-card__bottom_1dcm9_125:after,._flip-card__back-bottom_1dcm9_127:after{display:block;margin-top:-.72em}._flip-card__back_1dcm9_127:before,._flip-card__bottom_1dcm9_125:after,._flip-card__back-bottom_1dcm9_127:after{content:attr(data-value)}._flip-card__back_1dcm9_127{position:absolute;left:0%;top:0;height:100%;pointer-events:none}._flip-card__back_1dcm9_127:before{position:relative;overflow:hidden;z-index:-1}._flip_1dcm9_25 ._flip-card__back_1dcm9_127:before{z-index:1;transform-origin:center bottom;animation:_flipTop_1dcm9_1 .3s cubic-bezier(.37,.01,.94,.35);animation-fill-mode:both}._flip_1dcm9_25 ._flip-card__bottom_1dcm9_125{transform-origin:center top;animation:_flipBottom_1dcm9_1 .6s cubic-bezier(.15,.45,.28,1);animation-fill-mode:both}@keyframes _flipTop_1dcm9_1{0%{transform:rotateX(0);z-index:2}0%,99%{opacity:1}to{transform:rotateX(-90deg);opacity:0}}@keyframes _flipBottom_1dcm9_1{0%,50%{z-index:-1;transform:rotateX(90deg);opacity:0}51%{opacity:1}to{opacity:1;transform:rotateX(0);z-index:5}}._spinner_ot2c0_13{animation:_rotate_ot2c0_1 2s linear infinite;z-index:2}._spinner_ot2c0_13 ._path_ot2c0_31{stroke-linecap:round;animation:_dash_ot2c0_1 1.5s ease-in-out infinite}@keyframes _rotate_ot2c0_1{to{transform:rotate(360deg)}}@keyframes _dash_ot2c0_1{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}._owner_17gat_1{display:inline-block;animation:_donut-spin_17gat_1 1.2s linear infinite}@keyframes _donut-spin_17gat_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._bg_kvkpc_61{fill:none;stroke-width:4px;stroke:#13547a}._loader_kvkpc_73{fill:none;stroke-width:4px;stroke:#fff;stroke-dasharray:288;transform-origin:50% 50%;animation:_line_kvkpc_1 5s linear infinite,_spin_kvkpc_1 3s linear infinite}@keyframes _line_kvkpc_1{0%{stroke-dashoffset:1152}to{stroke-dashoffset:576}}@keyframes _spin_kvkpc_1{0%{transform:rotate(-90deg) translateZ(0)}to{transform:rotate(270deg) translateZ(0)}}._loading-text_1owlg_45{position:relative}._loading-text_1owlg_45:after{content:"";position:absolute;left:0;bottom:-7px;width:4px;border-radius:2px;animation:_lineAnimation_1owlg_1 cubic-bezier(.77,0,.175,1) 2.8s infinite}@keyframes _lineAnimation_1owlg_1{25%{width:100%}50%{left:auto;right:0;width:0}75%{width:100%}to{left:0;right:auto;width:0}}._wrapper_11oqi_1 span{display:inline-block;margin:0 3px;width:8px;height:8px;border-radius:50%;background-color:currentColor;animation:_flashing_11oqi_1 2.4s infinite linear}._wrapper_11oqi_1 span:nth-child(2){animation-delay:.2s}._wrapper_11oqi_1 span:nth-child(3){animation-delay:.4s}@keyframes _flashing_11oqi_1{0%{opacity:0}20%{opacity:1}to{opacity:0}}._g--circle_1ujbv_57{transform-origin:60px 60px;fill:#1e90ff;animation:_opacity_1ujbv_1 1.2s linear infinite}._g--circle_1ujbv_57:nth-child(12n+1){animation-delay:-.1s;transform:rotate(-30deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+2){animation-delay:-.2s;transform:rotate(-60deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+3){animation-delay:-.3s;transform:rotate(-90deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+4){animation-delay:-.4s;transform:rotate(-120deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+5){animation-delay:-.5s;transform:rotate(-150deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+6){animation-delay:-.6s;transform:rotate(-180deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+7){animation-delay:-.7s;transform:rotate(-210deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+8){animation-delay:-.8s;transform:rotate(-240deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+9){animation-delay:-.9s;transform:rotate(-270deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+10){animation-delay:-1s;transform:rotate(-300deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+11){animation-delay:-1.1s;transform:rotate(-330deg) translate(5px,5px) scale(.9)}._g--circle_1ujbv_57:nth-child(12n+12){animation-delay:-1.2s;transform:rotate(-360deg) translate(5px,5px) scale(.9)}._g-circles--v1_1ujbv_193 ._g--circle_1ujbv_57{fill-opacity:0;animation-name:_opacity_1ujbv_1}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57{fill-opacity:0;stroke-opacity:0;stroke-width:1;stroke:#9acd32;animation-name:_opacity-stroke_1ujbv_1,_colors_1ujbv_1,_colors-stroke_1ujbv_1}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57 ._u--circle_1ujbv_223{animation:_transform-2_1ujbv_1 1.2s linear infinite}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+1) ._u--circle_1ujbv_223{animation-delay:-.1s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+2) ._u--circle_1ujbv_223{animation-delay:-.2s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+3) ._u--circle_1ujbv_223{animation-delay:-.3s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+4) ._u--circle_1ujbv_223{animation-delay:-.4s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+5) ._u--circle_1ujbv_223{animation-delay:-.5s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+6) ._u--circle_1ujbv_223{animation-delay:-.6s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+7) ._u--circle_1ujbv_223{animation-delay:-.7s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+8) ._u--circle_1ujbv_223{animation-delay:-.8s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+9) ._u--circle_1ujbv_223{animation-delay:-.9s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+10) ._u--circle_1ujbv_223{animation-delay:-1s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+11) ._u--circle_1ujbv_223{animation-delay:-1.1s}._g-circles--v2_1ujbv_207 ._g--circle_1ujbv_57:nth-child(12n+12) ._u--circle_1ujbv_223{animation-delay:-1.2s}._g-circles--v3_1ujbv_331 ._g--circle_1ujbv_57{fill-opacity:1;animation-name:_opacity_1ujbv_1,_colors_1ujbv_1}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57{fill-opacity:1;fill:orange;animation-name:_opacity_1ujbv_1,_colors-3_1ujbv_1}._g-circles--v4_1ujbv_345 ._u--circle_1ujbv_223{animation:_transform_1ujbv_1 1.2s linear infinite}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+1) ._u--circle_1ujbv_223{animation-delay:-.1s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+2) ._u--circle_1ujbv_223{animation-delay:-.2s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+3) ._u--circle_1ujbv_223{animation-delay:-.3s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+4) ._u--circle_1ujbv_223{animation-delay:-.4s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+5) ._u--circle_1ujbv_223{animation-delay:-.5s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+6) ._u--circle_1ujbv_223{animation-delay:-.6s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+7) ._u--circle_1ujbv_223{animation-delay:-.7s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+8) ._u--circle_1ujbv_223{animation-delay:-.8s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+9) ._u--circle_1ujbv_223{animation-delay:-.9s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+10) ._u--circle_1ujbv_223{animation-delay:-1s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+11) ._u--circle_1ujbv_223{animation-delay:-1.1s}._g-circles--v4_1ujbv_345 ._g--circle_1ujbv_57:nth-child(12n+12) ._u--circle_1ujbv_223{animation-delay:-1.2s}@keyframes _opacity_1ujbv_1{3%{fill-opacity:1}75%{fill-opacity:0}}@keyframes _opacity-stroke_1ujbv_1{10%{stroke-opacity:1}85%{stroke-opacity:0}}@keyframes _colors_1ujbv_1{0%{fill:#9acd32}10%{fill:gold}75%{fill:#dc143c}}@keyframes _colors-stroke_1ujbv_1{0%{stroke:#9acd32}10%{stroke:gold}75%{stroke:#dc143c}}@keyframes _colors-2_1ujbv_1{0%{fill:#ff0}50%{fill:red}65%{fill:#ff4500}95%{fill:gold}}@keyframes _colors-3_1ujbv_1{0%{fill:#9acd32}50%{fill:#40e0d0}65%{fill:#ff0}95%{fill:orange}}@keyframes _transform_1ujbv_1{10%{transform-origin:70px 70px;transform:scale(.75)}}@keyframes _transform-2_1ujbv_1{40%{transform:scale(.85) translate(10px,10px)}60%{stroke-width:20}}._dots-ring_d2oym_5{--w: #fafafa;--b: #141414;--s: 1s;--d: calc(var(--s) / 6);--dot-size: 1vmin;position:relative}._content_d2oym_51,._dots_d2oym_5{display:flex;align-items:center;justify-content:center}._content_d2oym_51{width:50vmin;height:50vmin;background:#f000;animation:_spin_d2oym_1 8s linear 0s infinite}._control_d2oym_87{position:absolute;inset:0;opacity:0;cursor:pointer;z-index:4}._control_d2oym_87:checked~div{filter:invert(1)}._control_d2oym_87:checked+._bg_d2oym_113:before{content:"CLICK TO DARK"}._bg_d2oym_113{position:absolute;background:var(--b);z-index:-2;inset:0}._bg_d2oym_113:before{content:"CLICK TO LIGHT";position:absolute;top:100px;left:0;color:var(--w);font-family:Arial,Helvetica,serif;font-size:12px;text-shadow:0 0 1px var(--w);opacity:.25}._ring_d2oym_185{width:64%;height:64%;border:1.5vmin solid var(--w);border-radius:100%;box-shadow:0 0 0 1vmin var(--b),0 0 0 1vmin var(--b) inset;animation:_spin_d2oym_1 8s linear 0s infinite reverse;z-index:0}._dots_d2oym_5{background:#0ff0;width:100%;height:100%;position:relative}._dot_d2oym_5{position:absolute;left:0;width:50%;height:7vmin;background:#f000;transform-origin:100% 50%;z-index:-1;animation:_over-ring_d2oym_1 calc(var(--s) * 2) linear 0s infinite}._dot_d2oym_5 span{position:absolute;left:0;width:5.5vmin;height:5.5vmin;background:var(--w);border:1vmin solid var(--b);border-radius:100%;animation:_ball_d2oym_1 var(--s) ease-in-out 0s infinite alternate}._dot_d2oym_5:nth-child(1){transform:rotate(-30deg);animation-delay:calc(var(--d) * 0)}._dot_d2oym_5:nth-child(1) span{animation-delay:calc(var(--d) * 0)}._dot_d2oym_5:nth-child(2){transform:rotate(-60deg);animation-delay:calc(var(--d) * -1)}._dot_d2oym_5:nth-child(2) span{animation-delay:calc(var(--d) * -1)}._dot_d2oym_5:nth-child(3){transform:rotate(-90deg);animation-delay:calc(var(--d) * -2)}._dot_d2oym_5:nth-child(3) span{animation-delay:calc(var(--d) * -2)}._dot_d2oym_5:nth-child(4){transform:rotate(-120deg);animation-delay:calc(var(--d) * -3)}._dot_d2oym_5:nth-child(4) span{animation-delay:calc(var(--d) * -3)}._dot_d2oym_5:nth-child(5){transform:rotate(-150deg);animation-delay:calc(var(--d) * -4)}._dot_d2oym_5:nth-child(5) span{animation-delay:calc(var(--d) * -4)}._dot_d2oym_5:nth-child(6){transform:rotate(-180deg);animation-delay:calc(var(--d) * -5)}._dot_d2oym_5:nth-child(6) span{animation-delay:calc(var(--d) * -5)}._dot_d2oym_5:nth-child(7){transform:rotate(-210deg);animation-delay:calc(var(--d) * -6)}._dot_d2oym_5:nth-child(7) span{animation-delay:calc(var(--d) * -6)}._dot_d2oym_5:nth-child(8){transform:rotate(-240deg);animation-delay:calc(var(--d) * -7)}._dot_d2oym_5:nth-child(8) span{animation-delay:calc(var(--d) * -7)}._dot_d2oym_5:nth-child(9){transform:rotate(-270deg);animation-delay:calc(var(--d) * -8)}._dot_d2oym_5:nth-child(9) span{animation-delay:calc(var(--d) * -8)}._dot_d2oym_5:nth-child(10){transform:rotate(-300deg);animation-delay:calc(var(--d) * -9)}._dot_d2oym_5:nth-child(10) span{animation-delay:calc(var(--d) * -9)}._dot_d2oym_5:nth-child(11){transform:rotate(-330deg);animation-delay:calc(var(--d) * -10)}._dot_d2oym_5:nth-child(11) span{animation-delay:calc(var(--d) * -10)}._dot_d2oym_5:nth-child(12){transform:rotate(-360deg);animation-delay:calc(var(--d) * -11)}._dot_d2oym_5:nth-child(12) span{animation-delay:calc(var(--d) * -11)}@keyframes _spin_d2oym_1{to{transform:rotate(-360deg)}}@keyframes _ball_d2oym_1{to{left:calc(var(--dot-size) * 12);width:calc(var(--dot-size) * 4);height:calc(var(--dot-size) * 4)}}@keyframes _over-ring_d2oym_1{0%,50%{z-index:-1}51%,to{z-index:1}}._loader_13ftp_13{font-size:20px;line-height:150px;letter-spacing:2px;text-align:center;color:#fff000;background:transparent;border:3px solid #3c3c3c;border-radius:50%;text-shadow:0 0 10px #fff000;box-shadow:0 0 20px #00000080}._loader_13ftp_13:before{content:"";position:absolute;left:0;top:0;width:100%;height:100%;border:3px solid transparent;border-top:3px solid #fff000;border-right:3px solid #fff000;border-radius:50%;animation:_animateCircle_13ftp_1 2s linear infinite}._loader_13ftp_13 span{display:block;position:absolute;left:50%;top:calc(50% - 2px);width:50%;height:4px;transform-origin:left;background:transparent;animation:_animateDot_13ftp_1 2s linear infinite}._loader_13ftp_13 span:before{content:"";position:absolute;right:-8px;top:-6px;width:16px;height:16px;border-radius:50%;background:#fff000;box-shadow:0 0 10px #fff000}@keyframes _animateCircle_13ftp_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _animateDot_13ftp_1{0%{transform:rotate(45deg)}to{transform:rotate(405deg)}}._a_17o17_51{animation:_rotate-clock-wise_17o17_1 3s infinite linear}@keyframes _rotate-clock-wise_17o17_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._b_17o17_79{animation:_rotate-anti-clock-wise_17o17_1 .9s infinite linear}@keyframes _rotate-anti-clock-wise_17o17_1{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.pl1__g,.pl1__rect{animation:pl1-a 1.5s cubic-bezier(.65,0,.35,1) infinite}.pl1__g{transform-origin:64px 64px}.pl1__rect:first-child{animation-name:pl1-b}.pl1__rect:nth-child(2){animation-name:pl1-c}@keyframes pl1-b{0%{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:40px}20%{animation-timing-function:steps(1,start);width:40px;height:0}60%{animation-timing-function:cubic-bezier(.65,0,.35,1);width:0;height:40px}80%,to{width:40px;height:40px}}@keyframes pl1-c{0%{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:40px;transform:translateY(48px)}20%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:40px;height:88px;transform:translate(0)}40%{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:40px;transform:translate(0)}60%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:88px;height:40px;transform:translate(0)}80%,to{width:40px;height:40px;transform:translate(48px)}}.pl2__rect,.pl2__rect-g{animation:pl1-a 1.5s cubic-bezier(.65,0,.35,1) infinite;animation-name:pl2-a}.pl2__rect{animation-name:pl2-b}.pl2__rect-g .pl2__rect{transform-origin:20px 128px}.pl2__rect-g:first-child,.pl2__rect-g:first-child .pl2__rect{animation-delay:-.25s}.pl2__rect-g:nth-child(2),.pl2__rect-g:nth-child(2) .pl2__rect{animation-delay:-.125s}.pl2__rect-g:nth-child(2) .pl2__rect{transform-origin:64px 128px}.pl2__rect-g:nth-child(3) .pl2__rect{transform-origin:108px 128px}@keyframes pl2-a{0%,25%,66.67%,to{transform:translateY(0)}50%{animation-timing-function:cubic-bezier(.33,0,.67,0);transform:translateY(-80px)}}@keyframes pl2-b{0%,to{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:24px;transform:rotate(180deg) translate(0)}33.33%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:20px;height:64px;transform:rotate(180deg) translate(10px)}66.67%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:28px;height:44px;transform:rotate(180deg) translate(6px)}}.pl3__rect{animation:pl1-a 1.5s cubic-bezier(.65,0,.35,1) infinite;animation-name:pl3}.pl3__rect-g{transform-origin:64px 64px}@keyframes pl1-a{0%{transform:rotate(0)}80%,to{animation-timing-function:steps(1,start);transform:rotate(90deg)}}@keyframes pl3{0%{transform:translate(64px);width:64px;height:64px}25%{transform:translate(0);width:128px;height:32px}50%{transform:translate(0);width:64px;height:64px}75%{transform:translate(0);width:32px;height:128px}to{transform:translateY(64px);width:64px;height:64px}}._preloader-squares_1isss_5 ul{transform:rotate(45deg)}._preloader-squares_1isss_5 ul li{position:relative;width:50%;height:50%;list-style:none;float:left}._preloader-squares_1isss_5 ul li:before{content:"";position:absolute;inset:0;transform-origin:100% 100%;animation:_animate_1isss_1 3.3s linear infinite}._preloader-squares_1isss_5 ul li:nth-child(1){transform:rotate(0)}._preloader-squares_1isss_5 ul li:nth-child(1):before{animation-delay:0s;background:#f96161}._preloader-squares_1isss_5 ul li:nth-child(2){transform:rotate(90deg)}._preloader-squares_1isss_5 ul li:nth-child(2):before{animation-delay:.4s;background:#6ce5c0}._preloader-squares_1isss_5 ul li:nth-child(3){transform:rotate(270deg)}._preloader-squares_1isss_5 ul li:nth-child(3):before{animation-delay:1.2s;background:#5bcedf}._preloader-squares_1isss_5 ul li:nth-child(4){transform:rotate(180deg)}._preloader-squares_1isss_5 ul li:nth-child(4):before{animation-delay:.8s;background:#ffec78}@keyframes _animate_1isss_1{0%{transform:perspective(200px) rotateX(0);opacity:0}10%{transform:perspective(200px) rotateX(-180deg);opacity:0}25%{transform:perspective(200px) rotateX(0);opacity:1}75%{transform:perspective(200px) rotateX(0);opacity:1}90%{transform:perspective(200px) rotateY(180deg);opacity:0}to{transform:perspective(200px) rotateY(0);opacity:0}}:root{--hue: 223;--trans-dur: .3s;font-size:calc(16px + (24 - 16) * (100vw - 320px) / (2560 - 320))}._pl_b9jmf_49{display:flex;justify-content:space-between;align-items:center;filter:drop-shadow(.9em .9em 4px rgba(0,0,0,.4));margin:auto;width:12em;height:12em}._pl__bubble_b9jmf_69{position:relative;width:3em;height:3em}._pl__bubble-drop_b9jmf_81{width:.125em;height:.5em;transform:translate(-50%,-3em)}._pl__bubble-drop_b9jmf_81,._pl__bubble-drop_b9jmf_81:before{transform-origin:50% 0}._pl__bubble-drop_b9jmf_81:nth-child(2){transform:translate(-50%,-3em) rotate(51.4285714286deg)}._pl__bubble-drop_b9jmf_81:nth-child(3){transform:translate(-50%,-3em) rotate(102.8571428571deg)}._pl__bubble-drop_b9jmf_81:nth-child(4){transform:translate(-50%,-3em) rotate(154.2857142857deg)}._pl__bubble-drop_b9jmf_81:nth-child(5){transform:translate(-50%,-3em) rotate(205.7142857143deg)}._pl__bubble-drop_b9jmf_81:nth-child(6){transform:translate(-50%,-3em) rotate(257.1428571429deg)}._pl__bubble-drop_b9jmf_81:nth-child(7){transform:translate(-50%,-3em) rotate(308.5714285714deg)}._pl__bubble_b9jmf_69:before,._pl__bubble_b9jmf_69:after,._pl__bubble-drop_b9jmf_81{position:absolute}._pl__bubble_b9jmf_69:before,._pl__bubble_b9jmf_69:after,._pl__bubble-drop_b9jmf_81:before{animation:_bubble-rise-before_b9jmf_1 1.5s linear infinite}._pl__bubble_b9jmf_69:before,._pl__bubble_b9jmf_69:after{border-radius:50%}._pl__bubble_b9jmf_69:after,._pl__bubble-drop_b9jmf_81{top:50%;left:50%}._pl__bubble_b9jmf_69:before{box-shadow:0 -.0625em 0 .0625em hsl(var(--hue),90%,90%) inset,0 0 0 .0625em hsl(var(--hue),90%,70%) inset,0 0 .25em .25em hsla(var(--hue),90%,70%,.7) inset;transform:translateY(4.5em) scale(0)}._pl__bubble_b9jmf_69:after{animation-name:_bubble-rise-after_b9jmf_1;background-image:radial-gradient(25% 10% at 50% 5%,#fff 48%,#fff0 50%);width:87.5%;height:87.5%;transform:translate(-50%,-50%) translateY(4.5em) rotate(-45deg) scale(0)}._pl__bubble_b9jmf_69:before,._pl__bubble-drop_b9jmf_81:before{width:100%;height:100%}._pl__bubble-drop_b9jmf_81:before{animation-name:_bubble-drop_b9jmf_1;background-color:hsl(var(--hue),90%,80%);border-radius:.0625em;transform:translateY(0) scaleY(0);transform-origin:50% 0}._pl__bubble_b9jmf_69:before,._pl__bubble_b9jmf_69:after,._pl__bubble-drop_b9jmf_81:before{content:"";display:block}._pl__bubble_b9jmf_69:nth-child(2):before,._pl__bubble_b9jmf_69:nth-child(2):after,._pl__bubble_b9jmf_69:nth-child(2) ._pl__bubble-drop_b9jmf_81:before{animation-delay:.15s}._pl__bubble_b9jmf_69:nth-child(3):before,._pl__bubble_b9jmf_69:nth-child(3):after,._pl__bubble_b9jmf_69:nth-child(3) ._pl__bubble-drop_b9jmf_81:before{animation-delay:.3s}@keyframes _bubble-rise-before_b9jmf_1{0%{animation-timing-function:cubic-bezier(.12,0,.39,0);transform:translateY(4.5em) scale(0)}30%{animation-timing-function:cubic-bezier(.61,1,.88,1);transform:translateY(.75em) scale(1)}60%{animation-timing-function:cubic-bezier(.12,0,.39,0);opacity:1;transform:translateY(-3em) scale(1)}70%,to{opacity:0;transform:translateY(-3em) scale(.25)}}@keyframes _bubble-rise-after_b9jmf_1{0%{animation-timing-function:cubic-bezier(.12,0,.39,0);transform:translate(-50%,-50%) translateY(4.5em) rotate(-45deg) scale(0)}30%{animation-timing-function:cubic-bezier(.61,1,.88,1);transform:translate(-50%,-50%) translateY(.75em) rotate(-45deg) scale(1)}60%{animation-timing-function:cubic-bezier(.12,0,.39,0);opacity:1;transform:translate(-50%,-50%) translateY(-3em) rotate(-45deg) scale(1)}70%,to{opacity:0;transform:translate(-50%,-50%) translateY(-3em) rotate(-45deg) scale(.25)}}@keyframes _bubble-drop_b9jmf_1{0%{animation-timing-function:steps(1,end);visibility:hidden;transform:translateY(0) scaleY(1)}65%{animation-timing-function:cubic-bezier(.33,1,.68,1);visibility:visible;transform:translateY(0) scaleY(1)}80%,to{transform:translateY(400%) scaleY(0)}}._particle_qdkb4_5{--angle: (5 * var(--index));--radius: 30;--x: calc(sin(var(--angle)) * var(--radius) * var(--dot-size));--y: calc(cos(var(--angle)) * var(--radius) * var(--dot-size));--angle2: calc(var(--index) * 1turn / var(--total));--x2: calc(sin(var(--angle2)) * var(--radius) * var(--dot-size));--y2: calc(cos(var(--angle2)) * var(--radius) * var(--dot-size));--size: 5;--speed: 3s;--delay: calc(var(--index) * var(--speed) / var(--total) * 4);--hue-angle: 10;--hue-range: 60;--hue-start: 20;animation:_animation_qdkb4_1 var(--speed) ease-out infinite alternate var(--delay);transform:translate3d(var(--x),var(--y),0);opacity:0;border-radius:50%;background:currentColor;color:oklch(75% .3 calc(sin(var(--hue-angle) * var(--index)) * var(--hue-range) + var(--hue-start)));position:absolute;width:calc(var(--size) * .1 * var(--dot-size));height:calc(var(--size) * .1 * var(--dot-size));contain:strict}@keyframes _animation_qdkb4_1{to{transform:translate3d(var(--x2),var(--y2),0);opacity:1}}._wrapper_1fkod_1{display:block;position:relative;overflow:hidden}._mainText_1fkod_17{display:block;transition:transform .5s}._hoverText_1fkod_27{position:absolute;left:0;top:0;width:100%;height:100%;transform:translateY(100%);transition:transform .25s}._wrapper_1fkod_1:hover ._mainText_1fkod_17{transform:translateY(-100%);transition:transform .25s}._wrapper_1fkod_1:hover ._hoverText_1fkod_27{transform:translateY(0);transition:transform .25s}._container_18r7v_31{perspective:150px;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}._container_18r7v_31 input{display:none}._container_18r7v_31 input:checked~._button_18r7v_75{transform:rotateX(180deg);box-shadow:4px -8px 12px #0001}._button_18r7v_75{position:relative;display:block;width:100%;height:100%;font-weight:600;text-align:center;line-height:46px;text-transform:uppercase;border-radius:25px;box-shadow:4px 8px 12px #0001;transform-style:preserve-3d;transition:all .5s ease-in-out;cursor:pointer}._button_18r7v_75 ._front_18r7v_141,._button_18r7v_75 ._back_18r7v_143{box-sizing:border-box;position:absolute;display:block;inset:0;color:#34495e;background:#fff;border:2px solid #eeeded60;border-radius:25px;transform:rotateX(0);backface-visibility:hidden;display:flex;align-items:center;justify-content:center;z-index:2}._button_18r7v_75 ._back_18r7v_143{color:#fff;background:#64c760;border:2px solid #489146;transform:rotateX(180deg);z-index:1}._btn_1xoda_75{background:transparent;border:1px solid #91C9FF;outline:none;transition:.3s ease-in-out}._svg-border_1xoda_99{position:absolute;inset:0;fill:none;stroke:#fff;stroke-dasharray:150 480;stroke-dashoffset:150;transition:1s ease-in-out}._btn_1xoda_75:hover{background:#4f95da}._btn_1xoda_75:hover ._svg-border_1xoda_99{stroke-dashoffset:-480}._btn_1xoda_75 span{font-size:18px;font-weight:100;color:#fff}._wrapper_sogws_7{--color-primary: #6B04FF;--duration: 1.2s;--lag-duration: calc(var(--duration) * .9);--lag-delay: .1s;--easing: cubic-bezier(.7, .1, .4, 1.5);--drip-easing: cubic-bezier(.9, .5, .7, .9)}._goo-filter_sogws_25{position:absolute;left:0;top:0;visibility:hidden}._transit_sogws_73{transition:inherit;transition-property:transform;transition-duration:var(--duration);transition-timing-function:var(--easing)}#_toggle_sogws_1{position:absolute;left:0;top:0;opacity:0}#_app_sogws_1{padding:12px;font-size:2vmin;color:#fff;display:grid;grid-gap:32px;grid-template-rows:2fr 1fr;grid-template-columns:1fr}._background_sogws_165{filter:url(#goo);grid-column:1;grid-row:1/span 2;display:grid;grid-template:inherit;z-index:-1}._bg-content_sogws_185,._bg-description_sogws_187{border-radius:12px;background:var(--color-primary)}._drip_sogws_199{position:absolute;width:32px;height:24px;background:var(--color-primary);border-radius:10px}._drip_sogws_199:nth-child(1){left:2%}._drip_sogws_199:nth-child(2){left:35%;width:15vmin}._drip_sogws_199:nth-child(3){right:10%;width:12vmin}._drip_sogws_199:nth-child(4){left:20%}._drip_sogws_199:nth-child(5){left:55%;width:15vmin}._drip_sogws_199:nth-child(6){right:4%;width:5vmin}._bg-content_sogws_185 ._drip_sogws_199{bottom:0}._bg-content_sogws_185,._content_sogws_291{width:100px;height:100px}._content_sogws_291,._description_sogws_307{padding:1em;text-align:center;display:flex;align-items:center;flex-direction:column;justify-content:center}._content_sogws_291 header,._description_sogws_307 header{font-size:1.2em}._content_sogws_291 p,._description_sogws_307 p{margin:.5em;color:#fffc}._pronunciation_sogws_349{font-size:3vmin;line-height:1.25;opacity:.8}._content_sogws_291{grid-column:1;grid-row:1;z-index:3}._description_sogws_307{width:40px;grid-row:2;grid-column:1;z-index:2}._avatar_sogws_389{margin-bottom:3vmin;width:30px;height:30px;font-size:1rem;border-radius:12px;background-color:#fff;display:flex;align-items:center;justify-content:center}._button_sogws_425{position:absolute;bottom:-12px;width:40px;height:40px;border-radius:12px;color:#000;background-color:#fff;box-shadow:0 2px 2px #0003;transition:transform calc(var(--duration) / 2) var(--easing);will-change:transform;cursor:pointer;display:flex;justify-content:center;align-items:center;z-index:10}._button_sogws_425:hover{transform:scale(.9)}._button_sogws_425:before{content:"";position:absolute;width:12px;height:12px;border:6px solid transparent;border-bottom-color:#000;border-right-color:#000;transform:rotate(45deg);transition-property:transform}._bg-description_sogws_187{transition-property:transform;transform:translateY(-140%)}._description_sogws_307{transition-property:opacity,transform;transform:translateY(-80%);opacity:0}#_toggle_sogws_1:checked~._description_sogws_307{transform:translateY(0);opacity:1}#_toggle_sogws_1:checked~* ._button_sogws_425:before{transform:rotate(-135deg)}#_toggle_sogws_1:checked~* ._bg-description_sogws_187{transform:translateY(0)}#_toggle_sogws_1:checked~* ._bg-description_sogws_187 ._drip_sogws_199{animation:_up-down_sogws_1 var(--lag-duration) var(--drip-easing) both;animation-delay:var(--lag-delay)}@keyframes _up-down_sogws_1{0%,to{transform:none}20%{transform:scaleX(.01) translateY(-100%)}}#_toggle_sogws_1:checked~* ._bg-content_sogws_185 ._drip_sogws_199{animation:_down-up_sogws_1 var(--lag-duration) var(--drip-easing) both;animation-delay:var(--lag-delay)}@keyframes _down-up_sogws_1{0%,10%,to{transform:none}40%{transform:scaleX(.01) translateY(100%)}}#_toggle_sogws_1:checked~* ._drip_sogws_199:nth-child(2){animation-duration:calc(var(--lag-duration) * 1.1)}#_toggle_sogws_1:checked~* ._drip_sogws_199:nth-child(4){animation-duration:calc(var(--lag-duration) * .9)}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--destructive: 0 100% 50%;--destructive-foreground: 210 40% 98%;--popover: 0 0% 100%;--popover-foreground: 222.2 47.4% 11.2%;--card: 0 0% 100%;--card-foreground: 222.2 47.4% 11.2%;--input: 214.3 31.8% 91.4%;--border: 214.3 31.8% 91.4%;--ring: 215 20.2% 65.1%;--radius: .5rem}.dark{--background: 224 71% 4%;--foreground: 213 31% 91%;--muted: 223 47% 11%;--muted-foreground: 215.4 16.3% 56.9%;--accent: 216 34% 17%;--accent-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 1.2%;--secondary: 222.2 47.4% 11.2%;--secondary-foreground: 210 40% 98%;--destructive: 0 63% 31%;--destructive-foreground: 210 40% 98%;--popover: 224 71% 4%;--popover-foreground: 215 20.2% 65.1%;--card: 224 71% 4%;--card-foreground: 213 31% 91%;--input: 216 34% 17%;--border: 216 34% 17%;--ring: 216 34% 17%;--radius: .5rem}*{border-color:hsl(var(--border))}html,body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}:root{--destructive: 0 100% 97%;--destructive-foreground: 360 100% 45%;--destructive-border: 359 100% 94%;--warning: 49 100% 97%;--warning-foreground: 31 92% 45%;--warning-border: 49 91% 91%;--info: 208 100% 97%;--info-foreground: 210 92% 45%;--info-border: 221 91% 91%;--success: 143 85% 96%;--success-foreground: 140 100% 27%;--success-border: 145 92% 91%}.dark{--destructive: 358 76% 10%;--destructive-foreground: 358 100% 81%;--destructive-border: 357 89% 16%;--warning: 64 100% 6%;--warning-foreground: 46 87% 65%;--warning-border: 60 100% 12%;--info: 215 100% 6%;--info-foreground: 216 87% 65%;--info-border: 223 100% 12%;--success: 150 100% 6%;--success-foreground: 150 86% 65%;--success-border: 147 100% 12%}*{scrollbar-color:initial;scrollbar-width:initial}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.bottom-0{bottom:0}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.isolate{isolation:isolate}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.col-start-2{grid-column-start:2}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-12{margin-right:3rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.\!table{display:table!important}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-12{width:3rem;height:3rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-7{width:1.75rem;height:1.75rem}.size-8{width:2rem;height:2rem}.size-9{width:2.25rem;height:2.25rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[100px\]{height:100px}.h-\[120px\]{height:120px}.h-\[150px\]{height:150px}.h-\[160px\]{height:160px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[20px\]{height:20px}.h-\[240px\]{height:240px}.h-\[60px\]{height:60px}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[300px\]{max-height:300px}.max-h-\[720px\]{max-height:720px}.max-h-screen{max-height:100vh}.min-h-0{min-height:0px}.min-h-\[60px\]{min-height:60px}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[150px\]{width:150px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[280px\]{width:280px}.w-\[36px\]{width:36px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-96{min-width:24rem}.min-w-\[12rem\]{min-width:12rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[16px\,1fr\]{grid-template-columns:16px 1fr}.grid-rows-\[auto\,1fr\,auto\]{grid-template-rows:auto 1fr auto}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.content-center{align-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-normal{justify-content:normal}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-\[14px\]{border-width:14px}.border-\[20px\]{border-width:20px}.border-\[8px\]{border-width:8px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dotted{border-style:dotted}.border-current{border-color:currentColor}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-input{border-color:hsl(var(--input))}.border-muted{border-color:hsl(var(--muted))}.border-muted-foreground{border-color:hsl(var(--muted-foreground))}.border-muted-foreground\/30{border-color:hsl(var(--muted-foreground) / .3)}.border-primary{border-color:hsl(var(--primary))}.border-primary-400{--tw-border-opacity: 1;border-color:rgb(161 161 170 / var(--tw-border-opacity))}.border-primary-foreground{border-color:hsl(var(--primary-foreground))}.border-primary\/50{border-color:hsl(var(--primary) / .5)}.border-transparent{border-color:transparent}.border-x-transparent{border-left-color:transparent;border-right-color:transparent}.border-y-transparent{border-top-color:transparent;border-bottom-color:transparent}.border-l-sky-500{--tw-border-opacity: 1;border-left-color:rgb(14 165 233 / var(--tw-border-opacity))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:hsl(var(--accent))}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-black\/80{background-color:#000c}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-lime-400{--tw-bg-opacity: 1;background-color:rgb(163 230 53 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground\/20{background-color:hsl(var(--muted-foreground) / .2)}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-orange-400{--tw-bg-opacity: 1;background-color:rgb(251 146 60 / var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-popover\/80{background-color:hsl(var(--popover) / .8)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.bg-primary-500\/20{background-color:#71717a33}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-sky-950{--tw-bg-opacity: 1;background-color:rgb(8 47 73 / var(--tw-bg-opacity))}.bg-slate-800\/90{background-color:#1e293be6}.bg-transparent{background-color:transparent}.bg-zinc-400{--tw-bg-opacity: 1;background-color:rgb(161 161 170 / var(--tw-bg-opacity))}.\!bg-cover{background-size:cover!important}.bg-cover{background-size:cover}.\!bg-center{background-position:center!important}.bg-center{background-position:center}.fill-current{fill:currentColor}.fill-none{fill:none}.fill-primary{fill:hsl(var(--primary))}.fill-slate-600{fill:#475569}.stroke-current{stroke:currentColor}.stroke-none{stroke:none}.stroke-primary{stroke:hsl(var(--primary))}.stroke-sky-500{stroke:#0ea5e9}.stroke-\[1\.5\]{stroke-width:1.5}.stroke-\[5\]{stroke-width:5}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-0{padding-bottom:0}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-serif{font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-7xl{font-size:4.5rem;line-height:1}.text-\[\.65rem\]{font-size:.65rem}.text-\[0\.70rem\]{font-size:.7rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[10px\]{font-size:10px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extralight{font-weight:200}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-accent-foreground\/50{color:hsl(var(--accent-foreground) / .5)}.text-background{color:hsl(var(--background))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground) / .5)}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}.text-green-950{--tw-text-opacity: 1;color:rgb(5 46 22 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-sky-300{--tw-text-opacity: 1;color:rgb(125 211 252 / var(--tw-text-opacity))}.text-sky-500{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.accent-foreground{accent-color:hsl(var(--foreground))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-muted-foreground\/50{--tw-ring-color: hsl(var(--muted-foreground) / .5)}.ring-offset-1{--tw-ring-offset-width: 1px}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.smallscroll{--sb-width: 8px;--sb-radius: 4px;--sb-color: #666b7a;scrollbar-color:var(--sb-color) transparent;scrollbar-width:thin}.smallscroll::-webkit-scrollbar{width:var(--sb-width);height:var(--sb-width);background-color:transparent}.smallscroll::-webkit-scrollbar-thumb{background-color:var(--sb-color);border-radius:var(--sb-radius)}.smallscroll::-webkit-scrollbar-corner{background-color:transparent}.resizer::-webkit-resizer{background-color:transparent;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsSAAALEgHS3X78AAAAIGNIUk0AAG11AABzoAAA9q8AAIWZAABumgAA57sAADF9AAAXvQF2CngAAABESURBVHjajM67DQAgDENBw6x0WZDtHi3KR4klF5ausAAVvf8u0TGjgwFlMEUeepR+DCj72CJAC9AkW8OM4QMAAP//AwD5ltVB1vqf0gAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:bottom right;background-size:95% 95%}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.\!\[--github-background-color\:hsla\(var\(--muted\)\/\.7\)\]{--github-background-color: hsla(var(--muted)/.7) !important}.\!\[--github-border\:none\]{--github-border: none !important}.\[--bg\:hsl\(var\(--hue1\)\,90\%\,90\%\)\]{--bg: hsl(var(--hue1),90%,90%)}.\[--fg\:hsl\(var\(--hue1\)\,90\%\,10\%\)\]{--fg: hsl(var(--hue1),90%,10%)}.\[--hue1\:223\]{--hue1: 223}.\[--hue1\:53\]{--hue1: 53}.\[--hue2\:153\]{--hue2: 153}.\[--hue2\:163\]{--hue2: 163}.\[--hue2\:253\]{--hue2: 253}.\[--hue2\:283\]{--hue2: 283}.\[--hue2\:343\]{--hue2: 343}.\[--hue\:223\]{--hue: 223}.\[--off-hue\:3\]{--off-hue: 3}.\[--on-hue1\:123\]{--on-hue1: 123}.\[--on-hue2\:168\]{--on-hue2: 168}.\[--primary\:hsl\(var\(--hue\)\,90\%\,50\%\)\]{--primary: hsl(var(--hue),90%,50%)}.\[--primary\:hsl\(var\(--hue1\)\,90\%\,50\%\)\]{--primary: hsl(var(--hue1),90%,50%)}.\[--secondary\:hsl\(var\(--hue2\)\,90\%\,50\%\)\]{--secondary: hsl(var(--hue2),90%,50%)}.\[--trans-dur\:0\.2s\]{--trans-dur: .2s}.\[--trans-timing\:cubic-bezier\(0\.65\,0\,0\.35\,1\)\]{--trans-timing: cubic-bezier(.65,0,.35,1)}.\[background-size\:_1em_1em\]{background-size:1em 1em}.\[grid-area\:1\/1\/2\/2\]{grid-area:1/1/2/2}.\[scrollbar-gutter\:stable\]{scrollbar-gutter:stable}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-0:before{content:var(--tw-content);left:0}.before\:right-1:before{content:var(--tw-content);right:.25rem}.before\:-z-10:before{content:var(--tw-content);z-index:-10}.before\:h-\[1\.75rem\]:before{content:var(--tw-content);height:1.75rem}.before\:w-full:before{content:var(--tw-content);width:100%}.before\:border-l-2:before{content:var(--tw-content);border-left-width:2px}.before\:border-l-accent-foreground\/50:before{content:var(--tw-content);border-left-color:hsl(var(--accent-foreground) / .5)}.before\:bg-accent:before{content:var(--tw-content);background-color:hsl(var(--accent))}.before\:bg-muted\/80:before{content:var(--tw-content);background-color:hsl(var(--muted) / .8)}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:opacity-100:before{content:var(--tw-content);opacity:1}.after\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.after\:visible:after{content:var(--tw-content);visibility:visible}.after\:invisible:after{content:var(--tw-content);visibility:hidden}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:h-px:after{content:var(--tw-content);height:1px}.after\:w-1:after{content:var(--tw-content);width:.25rem}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.after\:whitespace-pre:after{content:var(--tw-content);white-space:pre}.after\:border:after{content:var(--tw-content);border-width:1px}.after\:border-transparent:after{content:var(--tw-content);border-color:transparent}.after\:bg-current:after{content:var(--tw-content);background-color:currentColor}.after\:px-3:after{content:var(--tw-content);padding-left:.75rem;padding-right:.75rem}.after\:py-2:after{content:var(--tw-content);padding-top:.5rem;padding-bottom:.5rem}.after\:text-sm:after{content:var(--tw-content);font-size:.875rem;line-height:1.25rem}.after\:text-red-500:after{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.after\:\!\[content\:attr\(data-replicated\)_\"_\"\]:after{content:attr(data-replicated) " "!important}.after\:\[grid-area\:1\/1\/2\/2\]:after{content:var(--tw-content);grid-area:1/1/2/2}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.focus-within\:ring-1:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-within\:ring-ring:focus-within{--tw-ring-color: hsl(var(--ring))}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted) / .4)}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-muted-foreground[data-state=checked]{background-color:hsl(var(--muted-foreground))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-accent[data-state=checked]{color:hsl(var(--accent))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on],.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:before\:opacity-100:hover:before{content:var(--tw-content);opacity:1}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive) / .3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-primary-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(82 82 91 / var(--tw-ring-opacity))}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\:ring-offset-primary-200:focus{--tw-ring-offset-color: #e4e4e7}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color: hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-0:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.active\:scale-105:active{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:is(.dark .dark\:-rotate-90){--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:rotate-0){--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:scale-0){--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:scale-100){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:border-destructive){border-color:hsl(var(--destructive))}:is(.dark .dark\:\[--bg\:hsl\(var\(--hue1\)\,90\%\,10\%\)\]){--bg: hsl(var(--hue1),90%,10%)}:is(.dark .dark\:\[--fg\:hsl\(var\(--hue1\)\,90\%\,90\%\)\]){--fg: hsl(var(--hue1),90%,90%)}:is(.dark .dark\:before\:border-0):before{content:var(--tw-content);border-width:0px}:is(.dark .dark\:focus\:ring-primary-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(161 161 170 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-offset-primary-800:focus){--tw-ring-offset-color: #27272a}@media (min-width: 640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-\[425px\]{max-width:425px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){.md\:absolute{position:absolute}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:w-full{width:100%}.md\:max-w-\[420px\]{max-width:420px}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:\:-webkit-resizer\]\:rounded::-webkit-resizer{border-radius:.25rem}.\[\&\:\:-webkit-resizer\]\:\[backgroundSize\:80\%_80\%\]::-webkit-resizer{background-size:80% 80%}.\[\&\:has\(\>\.day-range-end\)\]\:rounded-r-md:has(>.day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\>\.day-range-start\)\]\:rounded-l-md:has(>.day-range-start){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:rounded-md:has([aria-selected]){border-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\.track\]\:h-px>.track{height:1px}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y: 2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>div\]\:w-full>div{width:100%}.\[\&\>div\]\:text-left>div{text-align:left}.\[\&\>div\]\:\[--github-arrow-border-color\:transparent\]>div{--github-arrow-border-color: transparent}.\[\&\>div\]\:\[--github-background-color\:transparent\]>div{--github-background-color: transparent}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\[data-fixed-width\]\>div\>div\]\:\!\[display\:block\][data-fixed-width]>div>div{display:block!important}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.first\:\[\&\[data-state\=open\]\>svg\]\:rotate-90[data-state=open]>svg:first-child{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.last\:\[\&\[data-state\=open\]\>svg\]\:rotate-90[data-state=open]>svg:last-child{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.w-color-saturation-fill\]\:\!size-4 .w-color-saturation-fill{width:1rem!important;height:1rem!important}.\[\&_\.w-color-saturation-fill\]\:\!-translate-x-2 .w-color-saturation-fill{--tw-translate-x: -.5rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.\[\&_\.w-color-saturation-fill\]\:\!-translate-y-2 .w-color-saturation-fill{--tw-translate-y: -.5rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/assets/index-MKKYJTlw.js b/assets/index-MKKYJTlw.js deleted file mode 100644 index f704581..0000000 --- a/assets/index-MKKYJTlw.js +++ /dev/null @@ -1,302 +0,0 @@ -import{a as Yu,r as C,G as a,R as G,g as Ju,b as Wh,c as DC,P as TC,H as Yo,I as Zu,J as kC}from"./nivo-C0xxZE_O.js";import{$ as Uh,a as IC,b as Xh,C as sl,c as qh,d as Kh,e as Qu,f as ed,g as Yh,h as Jh,i as cs,j as Zh,D as td,k as Qh,l as em,m as tm,n as nm,o as rm,p as om,q as LC,r as sm,s as am,t as im,u as lm,v as cm,w as um,x as dm,y as fm,z as pm,A as gm,B as nd,E as hm,F as mm,G as vm,H as xm,I as FC,J as bm,K as ym,L as OC,M as wm,N as zC,O as _m,P as BC,Q as Sm,R as HC,S as Cm,T as jm,U as VC,V as GC,W as Nm,X as WC,Y as UC,Z as XC,_ as Rm,a0 as qC,a1 as KC,a2 as pa,a3 as ga,a4 as rd,a5 as od,a6 as ha,a7 as ma,a8 as al,a9 as $m,aa as YC,ab as JC,ac as ZC,ad as QC,ae as ej,af as Em,ag as tj,ah as nj,ai as rj,aj as Pm,ak as oj,al as Am,am as Mm,an as sj,ao as aj,ap as ij,aq as Dm,ar as Tm,as as km,at as Im,au as lj,av as Lm,aw as Fm,ax as Om,ay as zm,az as Bm,aA as Hm,aB as Vm,aC as cj,aD as uj,aE as dj,aF as Gm,aG as Wm,aH as sd,aI as ad,aJ as Um,aK as Xm,aL as fj,aM as pj,aN as qm,aO as gj,aP as Km,aQ as Ym,aR as Jm,aS as Zm,aT as Qm,aU as e0,aV as hj,aW as t0,aX as n0,aY as r0,aZ as mj,a_ as o0,a$ as s0,b0 as vj,b1 as xj,b2 as a0,b3 as i0,b4 as l0,b5 as c0,b6 as u0,b7 as d0,b8 as bj,b9 as yj,ba as f0,bb as wj,bc as _j,bd as Sj,be as _e,bf as Cj,bg as jj}from"./radix-ui-BoNWqpVp.js";import{R as id,B as p0,X as Nj,Y as Rj,a as g0,L as $j,T as Ej,b as vg,_ as Kn}from"./recharts-Bkn1Ho_8.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function t(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(i){if(i.ep)return;i.ep=!0;const l=t(i);fetch(i.href,l)}})();var Su={},xg=Yu;Su.createRoot=xg.createRoot,Su.hydrateRoot=xg.hydrateRoot;const va=" data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ";function h0(e){var n,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;ntypeof e=="boolean"?"".concat(e):e===0?"0":e,yg=Pj,us=(e,n)=>t=>{var o;if(n?.variants==null)return yg(e,t?.class,t?.className);const{variants:i,defaultVariants:l}=n,u=Object.keys(i).map(f=>{const g=t?.[f],v=l?.[f];if(g===null)return null;const x=bg(g)||bg(v);return i[f][x]}),d=t&&Object.entries(t).reduce((f,g)=>{let[v,x]=g;return x===void 0||(f[v]=x),f},{}),p=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((f,g)=>{let{class:v,className:x,...m}=g;return Object.entries(m).every(S=>{let[w,$]=S;return Array.isArray($)?$.includes({...l,...d}[w]):{...l,...d}[w]===$})?[...f,v,x]:f},[]);return yg(e,u,p,t?.class,t?.className)},ld="-";function Aj(e){const n=Dj(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;function i(u){const d=u.split(ld);return d[0]===""&&d.length!==1&&d.shift(),m0(d,n)||Mj(u)}function l(u,d){const p=t[u]||[];return d&&o[u]?[...p,...o[u]]:p}return{getClassGroupId:i,getConflictingClassGroupIds:l}}function m0(e,n){if(e.length===0)return n.classGroupId;const t=e[0],o=n.nextPart.get(t),i=o?m0(e.slice(1),o):void 0;if(i)return i;if(n.validators.length===0)return;const l=e.join(ld);return n.validators.find(({validator:u})=>u(l))?.classGroupId}const wg=/^\[(.+)\]$/;function Mj(e){if(wg.test(e)){const n=wg.exec(e)[1],t=n?.substring(0,n.indexOf(":"));if(t)return"arbitrary.."+t}}function Dj(e){const{theme:n,prefix:t}=e,o={nextPart:new Map,validators:[]};return kj(Object.entries(e.classGroups),t).forEach(([l,u])=>{Cu(u,o,l,n)}),o}function Cu(e,n,t,o){e.forEach(i=>{if(typeof i=="string"){const l=i===""?n:_g(n,i);l.classGroupId=t;return}if(typeof i=="function"){if(Tj(i)){Cu(i(o),n,t,o);return}n.validators.push({validator:i,classGroupId:t});return}Object.entries(i).forEach(([l,u])=>{Cu(u,_g(n,l),t,o)})})}function _g(e,n){let t=e;return n.split(ld).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function Tj(e){return e.isThemeGetter}function kj(e,n){return n?e.map(([t,o])=>{const i=o.map(l=>typeof l=="string"?n+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([u,d])=>[n+u,d])):l);return[t,i]}):e}function Ij(e){if(e<1)return{get:()=>{},set:()=>{}};let n=0,t=new Map,o=new Map;function i(l,u){t.set(l,u),n++,n>e&&(n=0,o=t,t=new Map)}return{get(l){let u=t.get(l);if(u!==void 0)return u;if((u=o.get(l))!==void 0)return i(l,u),u},set(l,u){t.has(l)?t.set(l,u):i(l,u)}}}const v0="!";function Lj(e){const n=e.separator,t=n.length===1,o=n[0],i=n.length;return function(u){const d=[];let p=0,f=0,g;for(let w=0;wf?g-f:void 0;return{modifiers:d,hasImportantModifier:x,baseClassName:m,maybePostfixModifierPosition:S}}}function Fj(e){if(e.length<=1)return e;const n=[];let t=[];return e.forEach(o=>{o[0]==="["?(n.push(...t.sort(),o),t=[]):t.push(o)}),n.push(...t.sort()),n}function Oj(e){return{cache:Ij(e.cacheSize),splitModifiers:Lj(e),...Aj(e)}}const zj=/\s+/;function Bj(e,n){const{splitModifiers:t,getClassGroupId:o,getConflictingClassGroupIds:i}=n,l=new Set;return e.trim().split(zj).map(u=>{const{modifiers:d,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:g}=t(u);let v=o(g?f.substring(0,g):f),x=!!g;if(!v){if(!g)return{isTailwindClass:!1,originalClassName:u};if(v=o(f),!v)return{isTailwindClass:!1,originalClassName:u};x=!1}const m=Fj(d).join(":");return{isTailwindClass:!0,modifierId:p?m+v0:m,classGroupId:v,originalClassName:u,hasPostfixModifier:x}}).reverse().filter(u=>{if(!u.isTailwindClass)return!0;const{modifierId:d,classGroupId:p,hasPostfixModifier:f}=u,g=d+p;return l.has(g)?!1:(l.add(g),i(p,f).forEach(v=>l.add(d+v)),!0)}).reverse().map(u=>u.originalClassName).join(" ")}function Hj(){let e=0,n,t,o="";for(;ev(g),e());return t=Oj(f),o=t.cache.get,i=t.cache.set,l=d,d(p)}function d(p){const f=o(p);if(f)return f;const g=Bj(p,t);return i(p,g),g}return function(){return l(Hj.apply(null,arguments))}}function ht(e){const n=t=>t[e]||[];return n.isThemeGetter=!0,n}const b0=/^\[(?:([a-z-]+):)?(.+)\]$/i,Gj=/^\d+\/\d+$/,Wj=new Set(["px","full","screen"]),Uj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Kj=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Rr(e){return So(e)||Wj.has(e)||Gj.test(e)}function Ur(e){return ds(e,"length",oN)}function So(e){return!!e&&!Number.isNaN(Number(e))}function yi(e){return ds(e,"number",So)}function Ds(e){return!!e&&Number.isInteger(Number(e))}function Jj(e){return e.endsWith("%")&&So(e.slice(0,-1))}function Fe(e){return b0.test(e)}function Xr(e){return Uj.test(e)}const Zj=new Set(["length","size","percentage"]);function Qj(e){return ds(e,Zj,y0)}function eN(e){return ds(e,"position",y0)}const tN=new Set(["image","url"]);function nN(e){return ds(e,tN,aN)}function rN(e){return ds(e,"",sN)}function Ts(){return!0}function ds(e,n,t){const o=b0.exec(e);return o?o[1]?typeof n=="string"?o[1]===n:n.has(o[1]):t(o[2]):!1}function oN(e){return Xj.test(e)&&!qj.test(e)}function y0(){return!1}function sN(e){return Kj.test(e)}function aN(e){return Yj.test(e)}function iN(){const e=ht("colors"),n=ht("spacing"),t=ht("blur"),o=ht("brightness"),i=ht("borderColor"),l=ht("borderRadius"),u=ht("borderSpacing"),d=ht("borderWidth"),p=ht("contrast"),f=ht("grayscale"),g=ht("hueRotate"),v=ht("invert"),x=ht("gap"),m=ht("gradientColorStops"),S=ht("gradientColorStopPositions"),w=ht("inset"),$=ht("margin"),_=ht("opacity"),y=ht("padding"),R=ht("saturate"),M=ht("scale"),E=ht("sepia"),I=ht("skew"),H=ht("space"),P=ht("translate"),D=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",Fe,n],F=()=>[Fe,n],Z=()=>["",Rr,Ur],V=()=>["auto",So,Fe],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],de=()=>["solid","dashed","dotted","double","none"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],ce=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",Fe],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ne=()=>[So,yi],U=()=>[So,Fe];return{cacheSize:500,separator:":",theme:{colors:[Ts],spacing:[Rr,Ur],blur:["none","",Xr,Fe],brightness:ne(),borderColor:[e],borderRadius:["none","","full",Xr,Fe],borderSpacing:F(),borderWidth:Z(),contrast:ne(),grayscale:ue(),hueRotate:U(),invert:ue(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[Jj,Ur],inset:L(),margin:L(),opacity:ne(),padding:F(),saturate:ne(),scale:ne(),sepia:ue(),skew:U(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",Fe]}],container:["container"],columns:[{columns:[Xr]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),Fe]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ds,Fe]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Fe]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",Ds,Fe]}],"grid-cols":[{"grid-cols":[Ts]}],"col-start-end":[{col:["auto",{span:["full",Ds,Fe]},Fe]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[Ts]}],"row-start-end":[{row:["auto",{span:[Ds,Fe]},Fe]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Fe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Fe]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[$]}],mx:[{mx:[$]}],my:[{my:[$]}],ms:[{ms:[$]}],me:[{me:[$]}],mt:[{mt:[$]}],mr:[{mr:[$]}],mb:[{mb:[$]}],ml:[{ml:[$]}],"space-x":[{"space-x":[H]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[H]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Fe,n]}],"min-w":[{"min-w":[Fe,n,"min","max","fit"]}],"max-w":[{"max-w":[Fe,n,"none","full","min","max","fit","prose",{screen:[Xr]},Xr]}],h:[{h:[Fe,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Fe,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Fe,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Fe,n,"auto","min","max","fit"]}],"font-size":[{text:["base",Xr,Ur]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yi]}],"font-family":[{font:[Ts]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Fe]}],"line-clamp":[{"line-clamp":["none",So,yi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rr,Fe]}],"list-image":[{"list-image":["none",Fe]}],"list-style-type":[{list:["none","disc","decimal",Fe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rr,Ur]}],"underline-offset":[{"underline-offset":["auto",Rr,Fe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),eN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nN]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...de(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:de()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...de()]}],"outline-offset":[{"outline-offset":[Rr,Fe]}],"outline-w":[{outline:[Rr,Ur]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[Rr,Ur]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xr,rN]}],"shadow-color":[{shadow:[Ts]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":ge()}],"bg-blend":[{"bg-blend":ge()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",Xr,Fe]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[v]}],saturate:[{saturate:[R]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Fe]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",Fe]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",Fe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Ds,Fe]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Fe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Fe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Fe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Rr,Ur,yi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const lN=Vj(iN);function ct(...e){return e.filter(Boolean).join(" ")}function X(...e){return lN(ct(...e))}function w0(e,n=100){let t,o,i;function l(...u){i=this,o=u,!t&&(t=setTimeout(()=>{t=null,e.apply(i,o)},n))}return l}function cN(e,n=2){return e.toFixed(Math.max(Math.min(n,20),0))}function uN(e,n,t){return Math.min(Math.max(e,n),t)}function dN(e,{asArrayBuffer:n}){return new Promise((t,o)=>{const i=new FileReader;i.onload=()=>t(i.result),i.onerror=()=>o(new Error("Failed to load file")),n?i.readAsArrayBuffer(e):i.readAsDataURL(e)})}function _0(e){const n=window.document.documentElement;if(n.classList.remove("light","dark"),e==="system"){const t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";n.classList.add(t);return}n.classList.add(e)}function S0(e){return n=>{e.forEach(t=>{typeof t=="function"?t(n):t!=null&&(t.current=n)})}}const C0=Date.now();function oa(){const e=Date.now(),n=oa.last||e;return oa.last=e>n?e:n+1}function fN(){return oa()}function pN(){return oa()-C0}function sa(e){let n=oa();return e&&(n-=C0),n.toString(36)}sa.asNumber=fN;sa.asRelativeNumber=pN;const gN="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",hN=us(gN),Ki=C.forwardRef(({className:e,...n},t)=>a.jsx(Uh,{ref:t,className:X(hN(),e),...n}));Ki.displayName=Uh.displayName;const mN="px-3 py-1 w-full h-9 text-sm border-input bg-transparent file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed transition-colors border rounded-md shadow-sm flex",aa=C.forwardRef(({className:e,type:n,...t},o)=>a.jsx("input",{type:n,className:X(mN,e),ref:o,...t}));aa.displayName="Input";const vN="px-3 py-2 w-full min-h-[60px] text-sm border-input bg-transparent placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed border rounded-md shadow-sm flex",j0=C.forwardRef(({className:e,...n},t)=>a.jsx("textarea",{className:X(vN,e),ref:t,...n}));j0.displayName="Textarea";const xN='after:![content:attr(data-replicated)_"_"] after:whitespace-pre after:border-transparent after:invisible after:[grid-area:1/1/2/2] grid',bN="resize-none overflow-hidden [grid-area:1/1/2/2]",yN="after:px-3 after:py-2 after:text-sm after:border",wN=C.forwardRef(({containerPaddingFont:e=yN,className:n,value:t,...o},i)=>a.jsx("div",{className:X(xN,e),"data-replicated":t,children:a.jsx(j0,{className:X(bN,n),value:t,ref:i,...o})}));wN.displayName="TextareaAutoGrow";const _N="text-sm font-medium focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none transition-colors rounded-md inline-flex items-center justify-center",il=us(_N,{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground shadow-sm",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"px-4 py-2 h-9",xs:"px-2 h-7 text-xs rounded-md",sm:"px-3 h-8 text-xs rounded-md",lg:"px-8 h-10 rounded-md",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),ft=C.forwardRef(({className:e,variant:n,size:t,asChild:o=!1,...i},l)=>{const u=o?IC:"button";return a.jsx(u,{className:X(il({variant:n,size:t,className:e})),ref:l,...i})});ft.displayName="Button";const cd=tm,ud=nm,SN="px-2 py-1.5 text-sm focus:bg-accent data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",CN=C.forwardRef(({className:e,inset:n,children:t,...o},i)=>a.jsxs(Xh,{ref:i,className:X(SN,n&&"pl-8",e),...o,children:[t,a.jsx(sl,{className:"ml-auto h-4 w-4"})]}));CN.displayName=Xh.displayName;const N0=`p-1 min-w-[8rem] z-50 text-popover-foreground bg-popover border rounded-md shadow-md overflow-hidden ${va}`,jN=C.forwardRef(({className:e,...n},t)=>a.jsx(qh,{ref:t,className:X(N0,e),...n}));jN.displayName=qh.displayName;const NN=N0,ll=C.forwardRef(({className:e,sideOffset:n=4,...t},o)=>a.jsx(Kh,{children:a.jsx(Qu,{ref:o,className:X(NN,e),sideOffset:n,...t})}));ll.displayName=Qu.displayName;const RN="relative px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none transition-colors rounded-sm outline-none select-none cursor-default flex items-center",qs=C.forwardRef(({className:e,inset:n,...t},o)=>a.jsx(ed,{ref:o,className:X(RN,n&&"pl-8",e),...t}));qs.displayName=ed.displayName;const $N="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none transition-colors rounded-sm outline-none select-none cursor-default flex items-center",R0=C.forwardRef(({className:e,children:n,checked:t,...o},i)=>a.jsxs(Yh,{ref:i,className:X($N,e),checked:t,...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(Jh,{children:a.jsx(cs,{className:"h-4 w-4"})})}),n]}));R0.displayName=Yh.displayName;const EN="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none transition-colors rounded-sm outline-none select-none cursor-default flex items-center",PN=C.forwardRef(({className:e,children:n,...t},o)=>a.jsxs(Zh,{ref:o,className:X(EN,e),...t,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(Jh,{children:a.jsx(td,{className:"h-4 w-4 fill-current"})})}),n]}));PN.displayName=Zh.displayName;const $0=C.forwardRef(({className:e,inset:n,...t},o)=>a.jsx(Qh,{ref:o,className:X("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...t}));$0.displayName=Qh.displayName;const E0=C.forwardRef(({className:e,...n},t)=>a.jsx(em,{ref:t,className:X("-mx-1 my-1 h-px bg-muted",e),...n}));E0.displayName=em.displayName;const AN="px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",MN=C.forwardRef(({className:e,inset:n,children:t,...o},i)=>a.jsxs(rm,{ref:i,className:X(AN,n&&"pl-8",e),...o,children:[t,a.jsx(sl,{className:"ml-auto h-4 w-4"})]}));MN.displayName=rm.displayName;const P0=`z-50 p-1 min-w-[8rem] text-popover-foreground bg-popover border rounded-md shadow-md overflow-hidden ${va}`,DN=C.forwardRef(({className:e,...n},t)=>a.jsx(om,{ref:t,className:X(P0,e),...n}));DN.displayName=om.displayName;const TN=P0,kN=C.forwardRef(({className:e,...n},t)=>a.jsx(LC,{children:a.jsx(sm,{ref:t,className:X(TN,e),...n})}));kN.displayName=sm.displayName;const IN="relative px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",LN=C.forwardRef(({className:e,inset:n,...t},o)=>a.jsx(am,{ref:o,className:X(IN,n&&"pl-8",e),...t}));LN.displayName=am.displayName;const A0="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",FN=C.forwardRef(({className:e,children:n,checked:t,...o},i)=>a.jsxs(im,{ref:i,className:X(A0,e),checked:t,...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(lm,{children:a.jsx(cs,{className:"h-4 w-4"})})}),n]}));FN.displayName=im.displayName;const ON=C.forwardRef(({className:e,children:n,...t},o)=>a.jsxs(cm,{ref:o,className:X(A0,e),...t,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(lm,{children:a.jsx(td,{className:"h-4 w-4 fill-current"})})}),n]}));ON.displayName=cm.displayName;const zN=C.forwardRef(({className:e,inset:n,...t},o)=>a.jsx(um,{ref:o,className:X("px-2 py-1.5 text-sm font-semibold text-foreground",n&&"pl-8",e),...t}));zN.displayName=um.displayName;const BN=C.forwardRef(({className:e,...n},t)=>a.jsx(dm,{ref:t,className:X("-mx-1 my-1 h-px bg-border",e),...n}));BN.displayName=dm.displayName;const HN="z-10 relative max-w-max flex-1 flex items-center justify-center",VN=C.forwardRef(({className:e,children:n,...t},o)=>a.jsxs(fm,{ref:o,className:X(HN,e),...t,children:[n,a.jsx(M0,{})]}));VN.displayName=fm.displayName;const GN="group flex-1list-none flex items-center justify-center space-x-1",WN=C.forwardRef(({className:e,...n},t)=>a.jsx(pm,{ref:t,className:X(GN,e),...n}));WN.displayName=pm.displayName;const UN="group px-4 py-2 w-max h-9 text-sm font-medium bg-background hover:text-accent-foreground hover:bg-accent focus:text-accent-foreground focus:bg-accent focus:outline-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50 disabled:pointer-events-none transition-colors rounded-md inline-flex items-center justify-center",XN=us(UN),qN="relative ml-1 top-[1px] w-3 h-3 group-data-[state=open]:rotate-180 transition duration-300 ",KN=C.forwardRef(({className:e,children:n,...t},o)=>a.jsxs(gm,{ref:o,className:X(XN(),"group",e),...t,children:[n," ",a.jsx(nd,{className:qN,"aria-hidden":"true"})]}));KN.displayName=gm.displayName;const YN="left-0 top-0 w-full md:absolute md:w-auto data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out data-[motion=from-start]:slide-in-from-left-52 data-[motion=from-end]:slide-in-from-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion=to-end]:slide-out-to-right-52",JN=C.forwardRef(({className:e,...n},t)=>a.jsx(hm,{ref:t,className:X(YN,e),...n}));JN.displayName=hm.displayName;const ZN="relative mt-1.5 w-full h-[var(--radix-navigation-menu-viewport-height)] text-popover-foreground bg-popover data-[state=open]:animate-in data-[state=open]:zoom-in-90 data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 md:w-[var(--radix-navigation-menu-viewport-width)] overflow-hidden origin-top-center border rounded-md shadow",M0=C.forwardRef(({className:e,...n},t)=>a.jsx("div",{className:X("absolute left-0 top-full flex justify-center"),children:a.jsx(mm,{ref:t,className:X(ZN,e),...n})}));M0.displayName=mm.displayName;const QN="z-[1] top-full h-1.5 data-[state=visible]:animate-in data-[state=visible]:fade-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out overflow-hidden flex items-end justify-center",eR=C.forwardRef(({className:e,...n},t)=>a.jsx(vm,{ref:t,className:X(QN,e),...n,children:a.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));eR.displayName=vm.displayName;const tR="peer w-4 h-4 shrink-0 border-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-accent data-[state=checked]:bg-muted-foreground border rounded-sm shadow",os=C.forwardRef(({className:e,...n},t)=>a.jsx(xm,{ref:t,className:X(tR,e),...n,children:a.jsx(FC,{className:X("flex items-center justify-center text-current"),children:a.jsx(cs,{className:"h-4 w-4"})})}));os.displayName=xm.displayName;const nR=C.forwardRef(({className:e,...n},t)=>a.jsx(bm,{className:X("grid gap-2",e),...n,ref:t}));nR.displayName=bm.displayName;const rR="h-4 w-4 aspect-square text-primary border-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 border rounded-full shadow",oR=C.forwardRef(({className:e,children:n,...t},o)=>a.jsx(ym,{ref:o,className:X(rR,e),...t,children:a.jsx(OC,{className:"flex items-center justify-center",children:a.jsx(cs,{className:"h-3.5 w-3.5 fill-primary"})})}));oR.displayName=ym.displayName;const sR=WC,aR=UC,iR="px-3 py-2 h-9 w-full text-sm border-input bg-transparent ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 border rounded-md shadow-sm flex items-center justify-between",D0=C.forwardRef(({className:e,children:n,...t},o)=>a.jsxs(wm,{ref:o,className:X(iR,e),...t,children:[n,a.jsx(zC,{asChild:!0,children:a.jsx(_m,{className:"h-4 w-4 opacity-50"})})]}));D0.displayName=wm.displayName;const lR="z-50 relative min-w-[8rem] bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 overflow-hidden border rounded-md shadow-md",cR="data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",uR="w-full h-[var(--radix-select-trigger-height)] min-w-[var(--radix-select-trigger-width)]",T0=C.forwardRef(({className:e,children:n,position:t="popper",...o},i)=>a.jsx(BC,{children:a.jsx(Sm,{ref:i,className:X(lR,t==="popper"&&cR,e),position:t,...o,children:a.jsx(HC,{className:X("p-1",t==="popper"&&uR),children:n})})}));T0.displayName=Sm.displayName;const dR=C.forwardRef(({className:e,...n},t)=>a.jsx(Cm,{ref:t,className:X("px-2 py-1.5 text-sm font-semibold",e),...n}));dR.displayName=Cm.displayName;const fR="relative pl-2 pr-8 py-1.5 w-full text-sm focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",k0=C.forwardRef(({className:e,children:n,...t},o)=>a.jsxs(jm,{ref:o,className:X(fR,e),...t,children:[a.jsx("span",{className:"absolute right-2 h-3.5 w-3.5 flex items-center justify-center",children:a.jsx(VC,{children:a.jsx(cs,{className:"h-4 w-4"})})}),a.jsx(GC,{children:n})]}));k0.displayName=jm.displayName;const pR=C.forwardRef(({className:e,...n},t)=>a.jsx(Nm,{ref:t,className:X("-mx-1 my-1 h-px bg-muted",e),...n}));pR.displayName=Nm.displayName;const dd=qC,fd=KC,gR=`p-4 w-72 z-50 text-popover-foreground bg-popover border rounded-md shadow-md outline-none ${va}`,cl=C.forwardRef(({className:e,align:n="center",sideOffset:t=4,...o},i)=>a.jsx(XC,{children:a.jsx(Rm,{ref:i,align:n,sideOffset:t,className:X(gR,e),...o})}));cl.displayName=Rm.displayName;const hR=$m,mR=al,vR="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",I0=C.forwardRef(({className:e,...n},t)=>a.jsx(pa,{ref:t,className:X(vR,e),...n}));I0.displayName=pa.displayName;const xR="fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] z-50 p-6 w-full md:w-full max-w-lg bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] border sm:rounded-lg shadow-lg duration-200 grid gap-4",bR="absolute right-4 top-4 opacity-70 transition-opacityhover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground ring-offset-background rounded-sm disabled:pointer-events-none",L0=C.forwardRef(({className:e,children:n,...t},o)=>a.jsxs(mR,{children:[a.jsx(I0,{}),a.jsxs(ga,{ref:o,className:X(xR,e),...t,children:[n,a.jsxs(rd,{className:bR,children:[a.jsx(od,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));L0.displayName=ga.displayName;const F0=({className:e,...n})=>a.jsx("div",{className:X("text-center sm:text-left flex flex-col space-y-1.5",e),...n});F0.displayName="DialogHeader";const O0=({className:e,...n})=>a.jsx("div",{className:X("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});O0.displayName="DialogFooter";const z0=C.forwardRef(({className:e,...n},t)=>a.jsx(ha,{ref:t,className:X("text-lg font-semibold leading-none tracking-tight",e),...n}));z0.displayName=ha.displayName;const B0=C.forwardRef(({className:e,...n},t)=>a.jsx(ma,{ref:t,className:X("text-sm text-muted-foreground",e),...n}));B0.displayName=ma.displayName;var Sg=1,yR=.9,wR=.8,_R=.17,Hc=.1,Vc=.999,SR=.9999,CR=.99,jR=/[\\\/_+.#"@\[\(\{&]/,NR=/[\\\/_+.#"@\[\(\{&]/g,RR=/[\s-]/,H0=/[\s-]/g;function ju(e,n,t,o,i,l,u){if(l===n.length)return i===e.length?Sg:CR;var d=`${i},${l}`;if(u[d]!==void 0)return u[d];for(var p=o.charAt(l),f=t.indexOf(p,i),g=0,v,x,m,S;f>=0;)v=ju(e,n,t,o,f+1,l+1,u),v>g&&(f===i?v*=Sg:jR.test(e.charAt(f-1))?(v*=wR,m=e.slice(i,f-1).match(NR),m&&i>0&&(v*=Math.pow(Vc,m.length))):RR.test(e.charAt(f-1))?(v*=yR,S=e.slice(i,f-1).match(H0),S&&i>0&&(v*=Math.pow(Vc,S.length))):(v*=_R,i>0&&(v*=Math.pow(Vc,f-i))),e.charAt(f)!==n.charAt(l)&&(v*=SR)),(vv&&(v=x*Hc)),v>g&&(g=v),f=t.indexOf(p,f+1);return u[d]=g,g}function Cg(e){return e.toLowerCase().replace(H0," ")}function $R(e,n){return ju(e,n,Cg(e),Cg(n),0,0,{})}var ER='[cmdk-list-sizer=""]',ks='[cmdk-group=""]',Gc='[cmdk-group-items=""]',PR='[cmdk-group-heading=""]',pd='[cmdk-item=""]',jg=`${pd}:not([aria-disabled="true"])`,Nu="cmdk-item-select",Mr="data-value",AR=(e,n)=>$R(e,n),V0=C.createContext(void 0),xa=()=>C.useContext(V0),G0=C.createContext(void 0),gd=()=>C.useContext(G0),W0=C.createContext(void 0),U0=C.forwardRef((e,n)=>{let t=C.useRef(null),o=Jo(()=>{var K,ne,U;return{search:"",value:(U=(ne=e.value)!=null?ne:(K=e.defaultValue)==null?void 0:K.toLowerCase())!=null?U:"",filtered:{count:0,items:new Map,groups:new Set}}}),i=Jo(()=>new Set),l=Jo(()=>new Map),u=Jo(()=>new Map),d=Jo(()=>new Set),p=X0(e),{label:f,children:g,value:v,onValueChange:x,filter:m,shouldFilter:S,vimBindings:w=!0,...$}=e,_=C.useId(),y=C.useId(),R=C.useId(),M=HR();fs(()=>{if(v!==void 0){let K=v.trim().toLowerCase();o.current.value=K,M(6,L),E.emit()}},[v]);let E=C.useMemo(()=>({subscribe:K=>(d.current.add(K),()=>d.current.delete(K)),snapshot:()=>o.current,setState:(K,ne,U)=>{var q,ie,pe;if(!Object.is(o.current[K],ne)){if(o.current[K]=ne,K==="search")k(),P(),M(1,D);else if(K==="value")if(((q=p.current)==null?void 0:q.value)!==void 0){let Y=ne??"";(pe=(ie=p.current).onValueChange)==null||pe.call(ie,Y);return}else U||M(5,L);E.emit()}},emit:()=>{d.current.forEach(K=>K())}}),[]),I=C.useMemo(()=>({value:(K,ne)=>{ne!==u.current.get(K)&&(u.current.set(K,ne),o.current.filtered.items.set(K,H(ne)),M(2,()=>{P(),E.emit()}))},item:(K,ne)=>(i.current.add(K),ne&&(l.current.has(ne)?l.current.get(ne).add(K):l.current.set(ne,new Set([K]))),M(3,()=>{k(),P(),o.current.value||D(),E.emit()}),()=>{u.current.delete(K),i.current.delete(K),o.current.filtered.items.delete(K);let U=F();M(4,()=>{k(),U?.getAttribute("id")===K&&D(),E.emit()})}),group:K=>(l.current.has(K)||l.current.set(K,new Set),()=>{u.current.delete(K),l.current.delete(K)}),filter:()=>p.current.shouldFilter,label:f||e["aria-label"],commandRef:t,listId:_,inputId:R,labelId:y}),[]);function H(K){var ne,U;let q=(U=(ne=p.current)==null?void 0:ne.filter)!=null?U:AR;return K?q(K,o.current.search):0}function P(){if(!t.current||!o.current.search||p.current.shouldFilter===!1)return;let K=o.current.filtered.items,ne=[];o.current.filtered.groups.forEach(q=>{let ie=l.current.get(q),pe=0;ie.forEach(Y=>{let be=K.get(Y);pe=Math.max(be,pe)}),ne.push([q,pe])});let U=t.current.querySelector(ER);Z().sort((q,ie)=>{var pe,Y;let be=q.getAttribute(Mr),B=ie.getAttribute(Mr);return((pe=K.get(B))!=null?pe:0)-((Y=K.get(be))!=null?Y:0)}).forEach(q=>{let ie=q.closest(Gc);ie?ie.appendChild(q.parentElement===ie?q:q.closest(`${Gc} > *`)):U.appendChild(q.parentElement===U?q:q.closest(`${Gc} > *`))}),ne.sort((q,ie)=>ie[1]-q[1]).forEach(q=>{let ie=t.current.querySelector(`${ks}[${Mr}="${q[0]}"]`);ie?.parentElement.appendChild(ie)})}function D(){let K=Z().find(U=>!U.ariaDisabled),ne=K?.getAttribute(Mr);E.setState("value",ne||void 0)}function k(){if(!o.current.search||p.current.shouldFilter===!1){o.current.filtered.count=i.current.size;return}o.current.filtered.groups=new Set;let K=0;for(let ne of i.current){let U=u.current.get(ne),q=H(U);o.current.filtered.items.set(ne,q),q>0&&K++}for(let[ne,U]of l.current)for(let q of U)if(o.current.filtered.items.get(q)>0){o.current.filtered.groups.add(ne);break}o.current.filtered.count=K}function L(){var K,ne,U;let q=F();q&&(((K=q.parentElement)==null?void 0:K.firstChild)===q&&((U=(ne=q.closest(ks))==null?void 0:ne.querySelector(PR))==null||U.scrollIntoView({block:"nearest"})),q.scrollIntoView({block:"nearest"}))}function F(){var K;return(K=t.current)==null?void 0:K.querySelector(`${pd}[aria-selected="true"]`)}function Z(){return Array.from(t.current.querySelectorAll(jg))}function V(K){let ne=Z()[K];ne&&E.setState("value",ne.getAttribute(Mr))}function J(K){var ne;let U=F(),q=Z(),ie=q.findIndex(Y=>Y===U),pe=q[ie+K];(ne=p.current)!=null&&ne.loop&&(pe=ie+K<0?q[q.length-1]:ie+K===q.length?q[0]:q[ie+K]),pe&&E.setState("value",pe.getAttribute(Mr))}function de(K){let ne=F(),U=ne?.closest(ks),q;for(;U&&!q;)U=K>0?zR(U,ks):BR(U,ks),q=U?.querySelector(jg);q?E.setState("value",q.getAttribute(Mr)):J(K)}let ge=()=>V(Z().length-1),ce=K=>{K.preventDefault(),K.metaKey?ge():K.altKey?de(1):J(1)},ue=K=>{K.preventDefault(),K.metaKey?V(0):K.altKey?de(-1):J(-1)};return C.createElement("div",{ref:ba([t,n]),...$,"cmdk-root":"",onKeyDown:K=>{var ne;if((ne=$.onKeyDown)==null||ne.call($,K),!K.defaultPrevented)switch(K.key){case"n":case"j":{w&&K.ctrlKey&&ce(K);break}case"ArrowDown":{ce(K);break}case"p":case"k":{w&&K.ctrlKey&&ue(K);break}case"ArrowUp":{ue(K);break}case"Home":{K.preventDefault(),V(0);break}case"End":{K.preventDefault(),ge();break}case"Enter":if(!K.nativeEvent.isComposing){K.preventDefault();let U=F();if(U){let q=new Event(Nu);U.dispatchEvent(q)}}}}},C.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:VR},f),C.createElement(G0.Provider,{value:E},C.createElement(V0.Provider,{value:I},g)))}),MR=C.forwardRef((e,n)=>{var t,o;let i=C.useId(),l=C.useRef(null),u=C.useContext(W0),d=xa(),p=X0(e),f=(o=(t=p.current)==null?void 0:t.forceMount)!=null?o:u?.forceMount;fs(()=>d.item(i,u?.id),[]);let g=q0(i,l,[e.value,e.children,l]),v=gd(),x=Eo(E=>E.value&&E.value===g.current),m=Eo(E=>f||d.filter()===!1?!0:E.search?E.filtered.items.get(i)>0:!0);C.useEffect(()=>{let E=l.current;if(!(!E||e.disabled))return E.addEventListener(Nu,S),()=>E.removeEventListener(Nu,S)},[m,e.onSelect,e.disabled]);function S(){var E,I;w(),(I=(E=p.current).onSelect)==null||I.call(E,g.current)}function w(){v.setState("value",g.current,!0)}if(!m)return null;let{disabled:$,value:_,onSelect:y,forceMount:R,...M}=e;return C.createElement("div",{ref:ba([l,n]),...M,id:i,"cmdk-item":"",role:"option","aria-disabled":$||void 0,"aria-selected":x||void 0,"data-disabled":$||void 0,"data-selected":x||void 0,onPointerMove:$?void 0:w,onClick:$?void 0:S},e.children)}),DR=C.forwardRef((e,n)=>{let{heading:t,children:o,forceMount:i,...l}=e,u=C.useId(),d=C.useRef(null),p=C.useRef(null),f=C.useId(),g=xa(),v=Eo(S=>i||g.filter()===!1?!0:S.search?S.filtered.groups.has(u):!0);fs(()=>g.group(u),[]),q0(u,d,[e.value,e.heading,p]);let x=C.useMemo(()=>({id:u,forceMount:i}),[i]),m=C.createElement(W0.Provider,{value:x},o);return C.createElement("div",{ref:ba([d,n]),...l,"cmdk-group":"",role:"presentation",hidden:v?void 0:!0},t&&C.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:f},t),C.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":t?f:void 0},m))}),TR=C.forwardRef((e,n)=>{let{alwaysRender:t,...o}=e,i=C.useRef(null),l=Eo(u=>!u.search);return!t&&!l?null:C.createElement("div",{ref:ba([i,n]),...o,"cmdk-separator":"",role:"separator"})}),kR=C.forwardRef((e,n)=>{let{onValueChange:t,...o}=e,i=e.value!=null,l=gd(),u=Eo(g=>g.search),d=Eo(g=>g.value),p=xa(),f=C.useMemo(()=>{var g;let v=(g=p.commandRef.current)==null?void 0:g.querySelector(`${pd}[${Mr}="${d}"]`);return v?.getAttribute("id")},[d,p.commandRef]);return C.useEffect(()=>{e.value!=null&&l.setState("search",e.value)},[e.value]),C.createElement("input",{ref:n,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":p.listId,"aria-labelledby":p.labelId,"aria-activedescendant":f,id:p.inputId,type:"text",value:i?e.value:u,onChange:g=>{i||l.setState("search",g.target.value),t?.(g.target.value)}})}),IR=C.forwardRef((e,n)=>{let{children:t,...o}=e,i=C.useRef(null),l=C.useRef(null),u=xa();return C.useEffect(()=>{if(l.current&&i.current){let d=l.current,p=i.current,f,g=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let v=d.offsetHeight;p.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return g.observe(d),()=>{cancelAnimationFrame(f),g.unobserve(d)}}},[]),C.createElement("div",{ref:ba([i,n]),...o,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:u.listId,"aria-labelledby":u.inputId},C.createElement("div",{ref:l,"cmdk-list-sizer":""},t))}),LR=C.forwardRef((e,n)=>{let{open:t,onOpenChange:o,overlayClassName:i,contentClassName:l,container:u,...d}=e;return C.createElement(YC,{open:t,onOpenChange:o},C.createElement(JC,{container:u},C.createElement(ZC,{"cmdk-overlay":"",className:i}),C.createElement(QC,{"aria-label":e.label,"cmdk-dialog":"",className:l},C.createElement(U0,{ref:n,...d}))))}),FR=C.forwardRef((e,n)=>{let t=C.useRef(!0),o=Eo(i=>i.filtered.count===0);return C.useEffect(()=>{t.current=!1},[]),t.current||!o?null:C.createElement("div",{ref:n,...e,"cmdk-empty":"",role:"presentation"})}),OR=C.forwardRef((e,n)=>{let{progress:t,children:o,...i}=e;return C.createElement("div",{ref:n,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},C.createElement("div",{"aria-hidden":!0},o))}),vn=Object.assign(U0,{List:IR,Item:MR,Input:kR,Group:DR,Separator:TR,Dialog:LR,Empty:FR,Loading:OR});function zR(e,n){let t=e.nextElementSibling;for(;t;){if(t.matches(n))return t;t=t.nextElementSibling}}function BR(e,n){let t=e.previousElementSibling;for(;t;){if(t.matches(n))return t;t=t.previousElementSibling}}function X0(e){let n=C.useRef(e);return fs(()=>{n.current=e}),n}var fs=typeof window>"u"?C.useEffect:C.useLayoutEffect;function Jo(e){let n=C.useRef();return n.current===void 0&&(n.current=e()),n}function ba(e){return n=>{e.forEach(t=>{typeof t=="function"?t(n):t!=null&&(t.current=n)})}}function Eo(e){let n=gd(),t=()=>e(n.snapshot());return C.useSyncExternalStore(n.subscribe,t,t)}function q0(e,n,t){let o=C.useRef(),i=xa();return fs(()=>{var l;let u=(()=>{var d;for(let p of t){if(typeof p=="string")return p.trim().toLowerCase();if(typeof p=="object"&&"current"in p)return p.current?(d=p.current.textContent)==null?void 0:d.trim().toLowerCase():o.current}})();i.value(e,u),(l=n.current)==null||l.setAttribute(Mr,u),o.current=u}),o}var HR=()=>{let[e,n]=C.useState(),t=Jo(()=>new Map);return fs(()=>{t.current.forEach(o=>o()),t.current=new Map},[e]),(o,i)=>{t.current.set(o,i),n({})}},VR={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const GR="w-full h-full text-popover-foreground bg-popover overflow-hidden rounded-md flex flex-col",WR=C.forwardRef(({className:e,...n},t)=>a.jsx(vn,{ref:t,className:X(GR,e),...n}));WR.displayName=vn.displayName;const UR="py-3 w-full h-10 text-sm bg-transparent placeholder:text-muted-foreground disabled:opacity-50 disabled:cursor-not-allowed rounded-md outline-none flex",XR=C.forwardRef(({className:e,...n},t)=>a.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[a.jsx(ej,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),a.jsx(vn.Input,{ref:t,className:X(UR,e),...n})]}));XR.displayName=vn.Input.displayName;const qR=C.forwardRef(({className:e,...n},t)=>a.jsx(vn.List,{ref:t,className:X("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...n}));qR.displayName=vn.List.displayName;const KR=C.forwardRef((e,n)=>a.jsx(vn.Empty,{ref:n,className:"py-6 text-sm text-center",...e}));KR.displayName=vn.Empty.displayName;const YR="p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden ",JR=C.forwardRef(({className:e,...n},t)=>a.jsx(vn.Group,{ref:t,className:X(YR,e),...n}));JR.displayName=vn.Group.displayName;const ZR=C.forwardRef(({className:e,...n},t)=>a.jsx(vn.Separator,{ref:t,className:X("-mx-1 h-px bg-border",e),...n}));ZR.displayName=vn.Separator.displayName;const QR="relative px-2 py-1.5 text-sm aria-selected:text-accent-foreground aria-selected:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",e5=C.forwardRef(({className:e,...n},t)=>a.jsx(vn.Item,{ref:t,className:X(QR,e),...n}));e5.displayName=vn.Item.displayName;/** - * @license lucide-react v0.341.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var t5={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"};/** - * @license lucide-react v0.341.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const n5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),io=(e,n)=>{const t=C.forwardRef(({color:o="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:u,className:d="",children:p,...f},g)=>C.createElement("svg",{ref:g,...t5,width:i,height:i,stroke:o,strokeWidth:u?Number(l)*24/Number(i):l,className:["lucide",`lucide-${n5(e)}`,d].join(" "),...f},[...n.map(([v,x])=>C.createElement(v,x)),...Array.isArray(p)?p:[p]]));return t.displayName=`${e}`,t};/** - * @license lucide-react v0.341.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const r5=io("AppWindow",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);/** - * @license lucide-react v0.341.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const o5=io("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** - * @license lucide-react v0.341.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const s5=io("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** - * @license lucide-react v0.341.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const a5=io("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** - * @license lucide-react v0.341.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const i5=io("Dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]]);/** - * @license lucide-react v0.341.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const l5=io("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/** - * @license lucide-react v0.341.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const K0=io("Paintbrush",[["path",{d:"M18.37 2.63 14 7l-1.59-1.59a2 2 0 0 0-2.82 0L8 7l9 9 1.59-1.59a2 2 0 0 0 0-2.82L17 10l4.37-4.37a2.12 2.12 0 1 0-3-3Z",key:"m6k5sh"}],["path",{d:"M9 8c-2 3-4 3.5-7 4l8 10c2-1 6-5 6-7",key:"arzq70"}],["path",{d:"M14.5 17.5 4.5 15",key:"s7fvrz"}]]);/** - * @license lucide-react v0.341.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ng=io("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),c5="block h-4 w-4 bg-background border-primary/50 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none transition-colors border rounded-full shadow",Y0=C.forwardRef(({className:e,...n},t)=>a.jsxs(Em,{ref:t,className:X("relative w-full touch-none select-none flex items-center",e),...n,children:[a.jsx(tj,{className:"track relative w-full h-1.5 bg-primary/20 rounded-full grow overflow-hidden",children:a.jsx(nj,{className:"absolute h-full bg-primary"})}),a.jsx(rj,{className:c5})]}));Y0.displayName=Em.displayName;const u5="peer w-[36px] h-[20px] border-transparent focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background focus-visible:outline-none disabled:opacity-50 disabled:cursor-not-allowed data-[state=checked]:bg-primary data-[state=unchecked]:bg-input transition-colors border-2 rounded-full shadow-sm cursor-pointer shrink-0 inline-flex items-center",d5="block w-4 h-4 bg-background data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0 transition-transform pointer-events-none ring-0 rounded-full shadow-lg",f5=C.forwardRef(({className:e,...n},t)=>a.jsx(Pm,{ref:t,className:X(u5,e),...n,children:a.jsx(oj,{className:X(d5)})}));f5.displayName=Pm.displayName;const p5="text-sm font-medium hover:text-muted-foreground hover:bg-muted focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none data-[state=on]:text-accent-foreground data-[state=on]:bg-accent transition-colors rounded-md inline-flex items-center justify-center",g5=us(p5,{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground shadow-sm"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),h5=C.forwardRef(({className:e,variant:n,size:t,...o},i)=>a.jsx(Am,{ref:i,className:X(g5({variant:n,size:t,className:e})),...o}));h5.displayName=Am.displayName;const m5=sj,v5=aj,x5=ij,b5="z-50 px-3 py-1.5 text-xs text-primary-foreground bg-primary animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 overflow-hidden rounded-md",J0=C.forwardRef(({className:e,sideOffset:n=4,...t},o)=>a.jsx(Mm,{ref:o,sideOffset:n,className:X(b5,e),...t}));J0.displayName=Mm.displayName;const ul=cj,Z0=uj,y5=dj,w5="p-1 h-9 bg-background border rounded-md shadow-sm flex items-center space-x-1",Q0=C.forwardRef(({className:e,...n},t)=>a.jsx(Dm,{ref:t,className:X(w5,e),...n}));Q0.displayName=Dm.displayName;const _5="px-3 py-1 text-sm font-medium focus:text-accent-foreground focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",ya=C.forwardRef(({className:e,...n},t)=>a.jsx(Tm,{ref:t,className:X(_5,e),...n}));ya.displayName=Tm.displayName;const S5="px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",hd=C.forwardRef(({className:e,inset:n,children:t,...o},i)=>a.jsxs(km,{ref:i,className:X(S5,n&&"pl-8",e),...o,children:[t,a.jsx(sl,{className:"ml-auto h-4 w-4"})]}));hd.displayName=km.displayName;const C5="p-1 min-w-[8rem] z-50 text-popover-foreground bg-popover data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border rounded-md shadow-lg overflow-hidden",md=C.forwardRef(({className:e,...n},t)=>a.jsx(Im,{ref:t,className:X(C5,e),...n}));md.displayName=Im.displayName;const j5="p-1 min-w-[12rem] z-50 text-popover-foreground bg-popover data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border rounded-md shadow-md overflow-hidden",wa=C.forwardRef(({className:e,align:n="start",alignOffset:t=-4,sideOffset:o=8,...i},l)=>a.jsx(lj,{children:a.jsx(Lm,{ref:l,align:n,alignOffset:t,sideOffset:o,className:X(j5,e),...i})}));wa.displayName=Lm.displayName;const N5="relative px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm select-none outline-none cursor-default flex items-center",yt=C.forwardRef(({className:e,inset:n,...t},o)=>a.jsx(Fm,{ref:o,className:X(N5,n&&"pl-8",e),...t}));yt.displayName=Fm.displayName;const ev="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",Ru=C.forwardRef(({className:e,children:n,checked:t,...o},i)=>a.jsxs(Om,{ref:i,className:X(ev,e),checked:t,...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(zm,{children:a.jsx(cs,{className:"h-4 w-4"})})}),n]}));Ru.displayName=Om.displayName;const Bi=C.forwardRef(({className:e,children:n,...t},o)=>a.jsxs(Bm,{ref:o,className:X(ev,e),...t,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(zm,{children:a.jsx(td,{className:"h-4 w-4 fill-current"})})}),n]}));Bi.displayName=Bm.displayName;const R5=C.forwardRef(({className:e,inset:n,...t},o)=>a.jsx(Hm,{ref:o,className:X("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...t}));R5.displayName=Hm.displayName;const sr=C.forwardRef(({className:e,...n},t)=>a.jsx(Vm,{ref:t,className:X("-mx-1 my-1 h-px bg-muted",e),...n}));sr.displayName=Vm.displayName;const Tr=({className:e,...n})=>a.jsx("span",{className:X("ml-auto text-xs tracking-widest text-muted-foreground",e),...n});Tr.displayname="MenubarShortcut";const $5=Um,tv=C.forwardRef(({className:e,...n},t)=>a.jsx(Gm,{ref:t,className:X("border-b",e),...n}));tv.displayName="AccordionItem";const E5="flex-1 py-4 text-sm font-medium hover:underline [&[data-state=open]>svg]:rotate-180 transition-all flex items-center justify-between",nv=C.forwardRef(({className:e,children:n,...t},o)=>a.jsx(Wm,{className:"flex",children:a.jsxs(sd,{ref:o,className:X(E5,e),...t,children:[a.jsx("div",{children:n}),a.jsx(nd,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));nv.displayName=sd.displayName;const P5="text-sm overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",rv=C.forwardRef(({className:e,children:n,...t},o)=>a.jsx(ad,{ref:o,className:X(P5,e),...t,children:a.jsx("div",{className:"pb-4 pt-0",children:n})}));rv.displayName=ad.displayName;const dl=C.forwardRef(({className:e,children:n,...t},o)=>a.jsxs(Xm,{ref:o,className:X("relative overflow-hidden","[&[data-fixed-width]>div>div]:![display:block]",e),...t,children:[a.jsx(fj,{className:"h-full w-full rounded-[inherit]",children:n}),a.jsx(ov,{}),a.jsx(pj,{})]}));dl.displayName=Xm.displayName;const ov=C.forwardRef(({className:e,orientation:n="vertical",...t},o)=>a.jsx(qm,{ref:o,orientation:n,className:X("flex touch-none select-none transition-colors",n==="vertical"&&"w-2.5 h-full border-l border-l-transparent p-[1px]",n==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...t,children:a.jsx(gj,{className:X("relative rounded-full bg-border",n==="vertical"&&"flex-1")})}));ov.displayName=qm.displayName;const A5=hj,M5="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",sv=C.forwardRef(({className:e,...n},t)=>a.jsx(Km,{ref:t,className:X(M5,e),...n}));sv.displayName=Km.displayName;const D5="fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] w-full md:w-full max-w-lg p-6 z-50 bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] duration-200 border sm:rounded-lg shadow-lg grid gap-4",T5=C.forwardRef(({className:e,...n},t)=>a.jsxs(A5,{children:[a.jsx(sv,{}),a.jsx(Ym,{ref:t,className:X(D5,e),...n})]}));T5.displayName=Ym.displayName;const k5=C.forwardRef(({className:e,...n},t)=>a.jsx(Jm,{ref:t,className:X("text-lg font-semibold",e),...n}));k5.displayName=Jm.displayName;const I5=C.forwardRef(({className:e,...n},t)=>a.jsx(Zm,{ref:t,className:X("text-sm text-muted-foreground",e),...n}));I5.displayName=Zm.displayName;const L5=C.forwardRef(({className:e,...n},t)=>a.jsx(Qm,{ref:t,className:X(il(),e),...n}));L5.displayName=Qm.displayName;const F5=C.forwardRef(({className:e,...n},t)=>a.jsx(e0,{ref:t,className:X(il({variant:"outline"}),"mt-2 sm:mt-0",e),...n}));F5.displayName=e0.displayName;const av=al;av.displayName=al.displayName;const O5="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",iv=C.forwardRef(({className:e,...n},t)=>a.jsx(pa,{ref:t,className:X(O5,e),...n}));iv.displayName=pa.displayName;const z5="fixed z-50 p-6 bg-background data-[state=open]:animate-in data-[state=open]:duration-500 data-[state=closed]:animate-out data-[state=closed]:duration-300 transition ease-in-out shadow-lg gap-4",B5="inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",H5="inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",V5="inset-y-0 left-0 h-full w-3/4 sm:max-w-sm border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",G5="inset-y-0 right-0 h-full w-3/4 sm:max-w-sm border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",W5=us(z5,{variants:{side:{top:B5,bottom:H5,left:V5,right:G5}},defaultVariants:{side:"right"}}),U5="absolute right-4 top-4 opacity-70 hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary ring-offset-background transition-opacity rounded-sm",X5=C.forwardRef(({side:e="right",className:n,children:t,...o},i)=>a.jsxs(av,{children:[a.jsx(iv,{}),a.jsxs(ga,{ref:i,className:X(W5({side:e}),n),...o,children:[t,a.jsxs(rd,{className:U5,children:[a.jsx(od,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));X5.displayName=ga.displayName;const q5=C.forwardRef(({className:e,...n},t)=>a.jsx(ha,{ref:t,className:X("text-lg font-semibold text-foreground",e),...n}));q5.displayName=ha.displayName;const K5=C.forwardRef(({className:e,...n},t)=>a.jsx(ma,{ref:t,className:X("text-sm text-muted-foreground",e),...n}));K5.displayName=ma.displayName;const vd=C.forwardRef(({className:e,...n},t)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:t,className:X("w-full caption-bottom text-sm",e),...n})}));vd.displayName="Table";const xd=C.forwardRef(({className:e,...n},t)=>a.jsx("thead",{ref:t,className:X("[&_tr]:border-b",e),...n}));xd.displayName="TableHeader";const bd=C.forwardRef(({className:e,...n},t)=>a.jsx("tbody",{ref:t,className:X("[&_tr:last-child]:border-0",e),...n}));bd.displayName="TableBody";const lv=C.forwardRef(({className:e,...n},t)=>a.jsx("tfoot",{ref:t,className:X("text-primary-foreground bg-primary font-medium",e),...n}));lv.displayName="TableFooter";const No=C.forwardRef(({className:e,...n},t)=>a.jsx("tr",{ref:t,className:X("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...n}));No.displayName="TableRow";const Qo=C.forwardRef(({className:e,...n},t)=>a.jsx("th",{ref:t,className:X("h-10 px-2 text-left font-medium align-middle text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...n}));Qo.displayName="TableHead";const Dr=C.forwardRef(({className:e,...n},t)=>a.jsx("td",{ref:t,className:X("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...n}));Dr.displayName="TableCell";const cv=C.forwardRef(({className:e,...n},t)=>a.jsx("caption",{ref:t,className:X("mt-4 text-sm text-muted-foreground",e),...n}));cv.displayName="TableCaption";const hr=mj,Y5="p-1 h-9 text-muted-foreground bg-muted rounded-lg inline-flex items-center justify-center",fl="h-auto justify-normal flex-wrap",lr=C.forwardRef(({className:e,...n},t)=>a.jsx(t0,{ref:t,className:X(Y5,e),...n}));lr.displayName=t0.displayName;const J5="px-3 py-1 text-sm font-medium whitespace-nowrapfocus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none data-[state=active]:text-foreground data-[state=active]:bg-background data-[state=active]:shadow ring-offset-background transition-all rounded-md inline-flex items-center justify-center",He=C.forwardRef(({className:e,...n},t)=>a.jsx(n0,{ref:t,className:X(J5,e),...n}));He.displayName=n0.displayName;const Z5="mt-2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none ring-offset-background",Ve=C.forwardRef(({className:e,...n},t)=>a.jsx(r0,{ref:t,className:X(Z5,e),...n}));Ve.displayName=r0.displayName;const Q5=`z-50 p-4 w-64 text-popover-foreground bg-popover border rounded-md shadow-md outline-none ${va}`,e$=C.forwardRef(({className:e,align:n="center",sideOffset:t=4,...o},i)=>a.jsx(o0,{ref:i,align:n,sideOffset:t,className:X(Q5,e),...o}));e$.displayName=o0.displayName;const pl=C.forwardRef(({className:e,...n},t)=>a.jsx("div",{ref:t,className:X("rounded-xl border bg-card text-card-foreground shadow",e),...n}));pl.displayName="Card";const yd=C.forwardRef(({className:e,...n},t)=>a.jsx("div",{ref:t,className:X("flex flex-col space-y-1.5 p-6",e),...n}));yd.displayName="CardHeader";const wd=C.forwardRef(({className:e,...n},t)=>a.jsx("h3",{ref:t,className:X("font-semibold leading-none tracking-tight",e),...n}));wd.displayName="CardTitle";const uv=C.forwardRef(({className:e,...n},t)=>a.jsx("p",{ref:t,className:X("text-sm text-muted-foreground",e),...n}));uv.displayName="CardDescription";const gl=C.forwardRef(({className:e,...n},t)=>a.jsx("div",{ref:t,className:X("p-6 pt-0",e),...n}));gl.displayName="CardContent";const t$=C.forwardRef(({className:e,...n},t)=>a.jsx("div",{ref:t,className:X("flex items-center p-6 pt-0",e),...n}));t$.displayName="CardFooter";function Wc({className:e,...n}){return a.jsx("div",{className:X("animate-pulse rounded-md bg-primary/10",e),...n})}const n$=C.forwardRef(({className:e,value:n,...t},o)=>a.jsx(s0,{ref:o,className:X("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...t,children:a.jsx(vj,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})}));n$.displayName=s0.displayName;var Ks=function(){return Ks=Object.assign||function(n){for(var t,o=1,i=arguments.length;o({...n,children:n.children?fv(n.children):void 0}))}function es(e,n){if(n&&e){!Array.isArray(e)&&(e=[e]);for(const t of e){if(t.id===n)return t;if(t.children){const o=es(t.children,n);if(o)return o}}}}function d$(e,n,t){const o=[];return n&&i(e,n),o;function i(l,u){if(l)if(l instanceof Array)for(let d=0;d({id:u.dataset.treeId,el:u}));if(!i.length)return;if(n.preventDefault(),n.stopPropagation(),!t)return i[0].id;const l=i.findIndex(u=>u.id===t);if(l!==-1)switch(n.key){case"ArrowDown":case"ArrowUp":{const u=n.key==="ArrowDown"?l+1:l-1;if(u>=0&&unew Proxy(e,n);const Eu=Object.getPrototypeOf,Pu=new WeakMap,pv=e=>e&&(Pu.has(e)?Pu.get(e):Eu(e)===Object.prototype||Eu(e)===Array.prototype),Yi=e=>typeof e=="object"&&e!==null,h$=e=>{if(Array.isArray(e))return Array.from(e);const n=Object.getOwnPropertyDescriptors(e);return Object.values(n).forEach(t=>{t.configurable=!0}),Object.create(Eu(e),n)},Sd=e=>e[_d]||e,gv=(e,n,t,o)=>{if(!pv(e))return e;let i=o&&o.get(e);if(!i){const p=Sd(e);i=(f=>Object.values(Object.getOwnPropertyDescriptors(f)).some(g=>!g.configurable&&!g.writable))(p)?[p,h$(p)]:[p],o?.set(e,i)}const[l,u]=i;let d=t&&t.get(l);return d&&d[1].f===!!u||(d=((p,f)=>{const g={f};let v=!1;const x=(S,w)=>{if(!v){let $=g[Ls].get(p);if($||($={},g[Ls].set(p,$)),S===Ys)$[Ys]=!0;else{let _=$[S];_||(_=new Set,$[S]=_),_.add(w)}}},m={get:(S,w)=>w===_d?p:(x("k",w),gv(Reflect.get(S,w),g[Ls],g.c,g.t)),has:(S,w)=>w===p$?(v=!0,g[Ls].delete(p),!0):(x("h",w),Reflect.has(S,w)),getOwnPropertyDescriptor:(S,w)=>(x("o",w),Reflect.getOwnPropertyDescriptor(S,w)),ownKeys:S=>(x(Ys),Reflect.ownKeys(S))};return f&&(m.set=m.deleteProperty=()=>!1),[m,g]})(l,!!u),d[1].p=g$(u||l,d[0]),t&&t.set(l,d)),d[1][Ls]=n,d[1].c=t,d[1].t=o,d[1].p},hv=(e,n,t,o,i=Object.is)=>{if(i(e,n))return!1;if(!Yi(e)||!Yi(n))return!0;const l=t.get(Sd(e));if(!l)return!0;if(o){const d=o.get(e);if(d&&d.n===n)return d.g;o.set(e,{n,g:!1})}let u=null;try{for(const d of l.h||[])if(u=Reflect.has(e,d)!==Reflect.has(n,d),u)return u;if(l[Ys]===!0){if(u=((d,p)=>{const f=Reflect.ownKeys(d),g=Reflect.ownKeys(p);return f.length!==g.length||f.some((v,x)=>v!==g[x])})(e,n),u)return u}else for(const d of l.o||[])if(u=!!Reflect.getOwnPropertyDescriptor(e,d)!=!!Reflect.getOwnPropertyDescriptor(n,d),u)return u;for(const d of l.k||[])if(u=hv(e[d],n[d],t,o,i),u)return u;return u===null&&(u=!0),u}finally{o&&o.set(e,{n,g:u})}},m$=e=>pv(e)&&e[_d]||null,$g=(e,n=!0)=>{Pu.set(e,n)},v$=(e,n,t)=>{const o=[],i=new WeakSet,l=(u,d)=>{if(i.has(u))return;Yi(u)&&i.add(u);const p=Yi(u)&&n.get(Sd(u));if(p){var f,g;if((f=p.h)==null||f.forEach(x=>{const m=`:has(${String(x)})`;o.push(d?[...d,m]:[m])}),p[Ys]===!0){const x=":ownKeys";o.push(d?[...d,x]:[x])}else{var v;(v=p.o)==null||v.forEach(x=>{const m=`:hasOwn(${String(x)})`;o.push(d?[...d,m]:[m])})}(g=p.k)==null||g.forEach(x=>{t&&!("value"in(Object.getOwnPropertyDescriptor(u,x)||{}))||l(u[x],d?[...d,x]:[x])})}else d&&o.push(d)};return l(e),o};var Ji={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Uc=e=>typeof e=="object"&&e!==null,to=new WeakMap,wi=new WeakSet,x$=(e=Object.is,n=(f,g)=>new Proxy(f,g),t=f=>Uc(f)&&!wi.has(f)&&(Array.isArray(f)||!(Symbol.iterator in f))&&!(f instanceof WeakMap)&&!(f instanceof WeakSet)&&!(f instanceof Error)&&!(f instanceof Number)&&!(f instanceof Date)&&!(f instanceof String)&&!(f instanceof RegExp)&&!(f instanceof ArrayBuffer),o=f=>{switch(f.status){case"fulfilled":return f.value;case"rejected":throw f.reason;default:throw f}},i=new WeakMap,l=(f,g,v=o)=>{const x=i.get(f);if(x?.[0]===g)return x[1];const m=Array.isArray(f)?[]:Object.create(Object.getPrototypeOf(f));return $g(m,!0),i.set(f,[g,m]),Reflect.ownKeys(f).forEach(S=>{if(Object.getOwnPropertyDescriptor(m,S))return;const w=Reflect.get(f,S),{enumerable:$}=Reflect.getOwnPropertyDescriptor(f,S),_={value:w,enumerable:$,configurable:!0};if(wi.has(w))$g(w,!1);else if(w instanceof Promise)delete _.value,_.get=()=>v(w);else if(to.has(w)){const[y,R]=to.get(w);_.value=l(y,R(),v)}Object.defineProperty(m,S,_)}),Object.preventExtensions(m)},u=new WeakMap,d=[1,1],p=f=>{if(!Uc(f))throw new Error("object required");const g=u.get(f);if(g)return g;let v=d[0];const x=new Set,m=(D,k=++d[0])=>{v!==k&&(v=k,x.forEach(L=>L(D,k)))};let S=d[1];const w=(D=++d[1])=>(S!==D&&!x.size&&(S=D,_.forEach(([k])=>{const L=k[1](D);L>v&&(v=L)})),v),$=D=>(k,L)=>{const F=[...k];F[1]=[D,...F[1]],m(F,L)},_=new Map,y=(D,k)=>{if((Ji?"production":void 0)!=="production"&&_.has(D))throw new Error("prop listener already exists");if(x.size){const L=k[3]($(D));_.set(D,[k,L])}else _.set(D,[k])},R=D=>{var k;const L=_.get(D);L&&(_.delete(D),(k=L[1])==null||k.call(L))},M=D=>(x.add(D),x.size===1&&_.forEach(([L,F],Z)=>{if((Ji?"production":void 0)!=="production"&&F)throw new Error("remove already exists");const V=L[3]($(Z));_.set(Z,[L,V])}),()=>{x.delete(D),x.size===0&&_.forEach(([L,F],Z)=>{F&&(F(),_.set(Z,[L]))})}),E=Array.isArray(f)?[]:Object.create(Object.getPrototypeOf(f)),H=n(E,{deleteProperty(D,k){const L=Reflect.get(D,k);R(k);const F=Reflect.deleteProperty(D,k);return F&&m(["delete",[k],L]),F},set(D,k,L,F){const Z=Reflect.has(D,k),V=Reflect.get(D,k,F);if(Z&&(e(V,L)||u.has(L)&&e(V,u.get(L))))return!0;R(k),Uc(L)&&(L=m$(L)||L);let J=L;if(L instanceof Promise)L.then(de=>{L.status="fulfilled",L.value=de,m(["resolve",[k],de])}).catch(de=>{L.status="rejected",L.reason=de,m(["reject",[k],de])});else{!to.has(L)&&t(L)&&(J=p(L));const de=!wi.has(J)&&to.get(J);de&&y(k,de)}return Reflect.set(D,k,J,F),m(["set",[k],L,V]),!0}});u.set(f,H);const P=[E,w,l,M];return to.set(H,P),Reflect.ownKeys(f).forEach(D=>{const k=Object.getOwnPropertyDescriptor(f,D);"value"in k&&(H[D]=f[D],delete k.value,delete k.writable),Object.defineProperty(E,D,k)}),H})=>[p,to,wi,e,n,t,o,i,l,u,d],[b$]=x$();function _a(e={}){return b$(e)}function hl(e,n,t){const o=to.get(e);(Ji?"production":void 0)!=="production"&&!o&&console.warn("Please use proxy object");let i;const l=[],u=o[3];let d=!1;const f=u(g=>{if(l.push(g),t){n(l.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,d&&n(l.splice(0))}))});return d=!0,()=>{d=!1,f()}}function Eg(e,n){const t=to.get(e);(Ji?"production":void 0)!=="production"&&!t&&console.warn("Please use proxy object");const[o,i,l]=t;return l(o,i(),n)}var mv={exports:{}},vv={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ss=C;function y$(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var w$=typeof Object.is=="function"?Object.is:y$,_$=ss.useState,S$=ss.useEffect,C$=ss.useLayoutEffect,j$=ss.useDebugValue;function N$(e,n){var t=n(),o=_$({inst:{value:t,getSnapshot:n}}),i=o[0].inst,l=o[1];return C$(function(){i.value=t,i.getSnapshot=n,Xc(i)&&l({inst:i})},[e,t,n]),S$(function(){return Xc(i)&&l({inst:i}),e(function(){Xc(i)&&l({inst:i})})},[e]),j$(t),t}function Xc(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!w$(e,t)}catch{return!0}}function R$(e,n){return n()}var $$=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?R$:N$;vv.useSyncExternalStore=ss.useSyncExternalStore!==void 0?ss.useSyncExternalStore:$$;mv.exports=vv;var E$=mv.exports;const P$=Ju(E$);var A$={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{use:Pg}=G,{useSyncExternalStore:M$}=P$,D$=(e,n)=>{const t=C.useRef();C.useEffect(()=>{t.current=v$(e,n,!0)}),C.useDebugValue(t.current)},T$=new WeakMap;function Ir(e,n){const t=n?.sync,o=C.useRef(),i=C.useRef();let l=!0;const u=M$(C.useCallback(f=>{const g=hl(e,f,t);return f(),g},[e,t]),()=>{const f=Eg(e,Pg);try{if(!l&&o.current&&i.current&&!hv(o.current,f,i.current,new WeakMap))return o.current}catch{}return f},()=>Eg(e,Pg));l=!1;const d=new WeakMap;C.useEffect(()=>{o.current=u,i.current=d}),(A$?"production":void 0)!=="production"&&D$(u,d);const p=C.useMemo(()=>new WeakMap,[]);return gv(u,d,p,T$)}function k$(e,n){var t=C.useRef(null),o=C.useRef(null);o.current=n;var i=C.useRef(null);C.useEffect(function(){l()});var l=C.useCallback(function(){var u=i.current,d=o.current,p=u||(d?d instanceof Element?d:d.current:null);t.current&&t.current.element===p&&t.current.subscriber===e||(t.current&&t.current.cleanup&&t.current.cleanup(),t.current={element:p,subscriber:e,cleanup:p?e(p):void 0})},[e]);return C.useEffect(function(){return function(){t.current&&t.current.cleanup&&(t.current.cleanup(),t.current=null)}},[]),C.useCallback(function(u){i.current=u,l()},[l])}function Ag(e,n,t){return e[n]?e[n][0]?e[n][0][t]:e[n][t]:n==="contentBoxSize"?e.contentRect[t==="inlineSize"?"width":"height"]:void 0}function I$(e){e===void 0&&(e={});var n=e.onResize,t=C.useRef(void 0);t.current=n;var o=e.round||Math.round,i=C.useRef(),l=C.useState({width:void 0,height:void 0}),u=l[0],d=l[1],p=C.useRef(!1);C.useEffect(function(){return p.current=!1,function(){p.current=!0}},[]);var f=C.useRef({width:void 0,height:void 0}),g=k$(C.useCallback(function(v){return(!i.current||i.current.box!==e.box||i.current.round!==o)&&(i.current={box:e.box,round:o,instance:new ResizeObserver(function(x){var m=x[0],S=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",w=Ag(m,S,"inlineSize"),$=Ag(m,S,"blockSize"),_=w?o(w):void 0,y=$?o($):void 0;if(f.current.width!==_||f.current.height!==y){var R={width:_,height:y};f.current.width=_,f.current.height=y,t.current?t.current(R):p.current||d(R)}})}),i.current.instance.observe(v,{box:e.box}),function(){i.current&&i.current.instance.unobserve(v)}},[e.box,o]),e.ref);return C.useMemo(function(){return{ref:g,width:u.width,height:u.height}},[g,u.width,u.height])}const L$="px-2 before:absolute before:left-0 before:w-full before:h-[1.75rem] before:bg-muted/80 before:opacity-0 hover:before:opacity-100 before:-z-10 ",F$="text-accent-foreground dark:before:border-0 before:bg-accent before:opacity-100 before:border-l-2 before:border-l-accent-foreground/50 ",O$="shrink-0 mr-2 w-4 h-4 text-accent-foreground/50",z$="px-2 py-1 r1elative before:absolute before:left-0 before:right-1 before:w-full before:h-[1.75rem] before:bg-muted/80 before:opacity-0 hover:before:opacity-100 before:-z-10 cursor-pointer flex items-center ",B$="text-accent-foreground dark:before:border-0 before:bg-accent before:opacity-100 before:border-l-2 before:border-l-accent-foreground/50 ",H$="shrink-0 mr-2 w-4 h-4 text-accent-foreground/50",V$=C.forwardRef(({data:e,initialSelectedItemId:n,onSelectChange:t,expandAll:o,IconForFolder:i,IconForItem:l,arrowFirst:u,hideFolderIcon:d,className:p,...f},g)=>{const[v]=C.useState(()=>_a({selectedId:void 0})),x=C.useMemo(()=>{const y=d$(e,n,o),R=es(e,v.selectedId);R&&(R.state.selected=!1);const M=es(e,y[y.length-1]);return M&&(M.state.selected=!0,v.selectedId=M.id),y},[e,n,o]),m=C.useCallback((y,R)=>{if(y.stopPropagation(),v.selectedId){const M=es(e,v.selectedId);M&&(M.state.selected=!1)}R?(R.state.selected=!R.state.selected,v.selectedId=R.id):v.selectedId=void 0,t?.(R)},[v,t]),S=C.useRef(null),{ref:w,width:$,height:_}=I$();return a.jsx("div",{ref:y=>{w(y),S.current=y},className:X("_overflow-hidden",p),tabIndex:0,onKeyDown:y=>{const R=f$(S.current,y,v.selectedId);R&&m(y,es(e,R))},children:a.jsx(dl,{className:"tree-scroll",style:{width:$,height:_},onClick:y=>m(y,void 0),children:a.jsx("div",{className:"relative z-0 px-2 py-1",children:a.jsx(xv,{ref:g,data:e,handleSelectChange:m,expandedItemIds:x,IconForFolder:i,IconForItem:l,arrowFirst:u,hideFolderIcon:d,...f})})})})}),xv=C.forwardRef(({className:e,data:n,handleSelectChange:t,expandedItemIds:o,IconForFolder:i,IconForItem:l,arrowFirst:u,hideFolderIcon:d,...p},f)=>a.jsx("div",{ref:f,role:"tree",className:e,...p,children:a.jsx("ul",{children:n instanceof Array?n.map(g=>a.jsx("li",{children:g.children?a.jsx(Um,{type:"multiple",defaultValue:o,children:a.jsxs(Gm,{value:g.id,"data-tree-id":g.id,"data-tree-folder":c$,children:[a.jsx(bv,{item:g,Icon:i,arrowFirst:u,hideFolderIcon:d,onClick:v=>t(v,g)}),a.jsx(wv,{className:"pl-6",children:a.jsx(xv,{data:g.children,handleSelectChange:t,expandedItemIds:o,IconForFolder:i,IconForItem:l,arrowFirst:u,hideFolderIcon:d})})]})}):a.jsx(Au,{item:g,onClick:v=>t(v,g),Icon:l})},g.id)):a.jsx("li",{children:a.jsx(Au,{item:n,onClick:g=>t(g,n),Icon:l})})})})),Au=C.forwardRef(({className:e,item:n,Icon:t,...o},i)=>{const{selected:l}=Ir(n.state);return a.jsx("div",{ref:i,className:X(z$,e,l&&B$),"data-tree-id":n.id,...o,children:a.jsx(_v,{item:n,Icon:t,classes:H$,hideFolderIcon:!1})})});Au.displayName="Tree.Leaf";const bv=C.forwardRef(({className:e,item:n,Icon:t,arrowFirst:o=!0,hideFolderIcon:i,...l},u)=>{const{selected:d}=Ir(n.state);return a.jsx(yv,{className:X(L$,d&&F$),"data-tree-folder-trigger":u$,arrowFirst:o,ref:u,...l,children:a.jsx(_v,{item:n,Icon:t,hideFolderIcon:i,classes:O$})})});bv.displayName="Tree.Folder";const yv=C.forwardRef(({className:e,children:n,arrowFirst:t,...o},i)=>{const l=a.jsx(a5,{className:ct("shrink-0 ml-auto h-4 w-4 text-accent-foreground/50 transition-transform duration-200",t&&"mr-2")});return a.jsx(Wm,{children:a.jsx(sd,{asChild:!0,className:X("flex-1 py-1 w-full transition-all outline-none cursor-pointer flex items-center",t?"first:[&[data-state=open]>svg]:rotate-90":"last:[&[data-state=open]>svg]:rotate-90",e),ref:i,...o,children:a.jsxs("div",{children:[t&&a.jsx(a.Fragment,{children:l}),n,!t&&a.jsx(a.Fragment,{children:l})]})})})});yv.displayName="Tree.Folder.Trigger";const wv=C.forwardRef(({className:e,children:n,...t},o)=>a.jsx(ad,{ref:o,className:X("text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down transition-all overflow-hidden",e),...t,children:a.jsx("div",{children:n})}));wv.displayName="Tree.Folder.Content";function _v({item:e,Icon:n,classes:t,hideFolderIcon:o}){return a.jsxs(a.Fragment,{children:[e.icon&&a.jsx(e.icon,{className:t,"aria-hidden":"true"}),!e.icon&&n&&!o&&a.jsx(n,{className:t,"aria-hidden":"true"}),a.jsx("span",{className:"flex-grow text-sm truncate",children:e.name})]})}function Sv(e,n,t=""){if(!n)return e;const o={...e};for(const i in n){const l=n[i];if(l==null)continue;const u=o[i];if(u==null){o[i]=l;continue}if(Array.isArray(u)||Array.isArray(l)){o[i]=[...Dg(u??[]),...Dg(l??[])];continue}if(Mg(u)&&Mg(l)){o[i]=Sv(u,l,t?`${t}.${i}`:i);continue}o[i]=l}return o}function Mg(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dg(e){return Array.isArray(e)?e:[e]}const G$={splitterPos:30,arrowFirst:!0,hideFolderIcon:!0},W$={positions:{}},U$={positions:[],animate:!0,strokeWidth:2,path:"smooth",boxes:[]};function X$(e){e.boxes.length||(e.boxes=[{id:sa.asRelativeNumber(),label:"elem1",x:0,y:0},{id:sa.asRelativeNumber(),label:"elem2",x:140,y:160}])}const q$={activeDemoAccordion:"60"},Tg={theme:"light",demosState:q$,treeState:G$,resisablesState:W$,xArrowsState:U$},Cv="shadcn-tv-app-settings",lt=_a(K$());function K$(){const e=localStorage.getItem(Cv);let n=Tg;if(e)try{n=JSON.parse(e)}catch{}const t=Sv(Tg,n);return X$(t.xArrowsState),t}_0(lt.theme);hl(lt,()=>{_0(lt.theme)});const Y$=w0(()=>localStorage.setItem(Cv,JSON.stringify(lt)),400);hl(lt,Y$);function J$({className:e,title:n,...t}){return a.jsxs("svg",{className:ct("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",...t,children:[n&&a.jsx("title",{children:n}),a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"})]})}function Z$({className:e,title:n,...t}){return a.jsxs("svg",{className:ct("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",...t,children:[n&&a.jsx("title",{children:n}),a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})]})}function Q$({className:e,title:n,...t}){return a.jsxs("svg",{className:ct("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[n&&a.jsx("title",{children:n}),a.jsx("path",{d:"M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4"}),a.jsx("path",{d:"M12 2v2"}),a.jsx("path",{d:"M12 20v2"}),a.jsx("path",{d:"m4.9 4.9 1.4 1.4"}),a.jsx("path",{d:"m17.7 17.7 1.4 1.4"}),a.jsx("path",{d:"M2 12h2"}),a.jsx("path",{d:"M20 12h2"}),a.jsx("path",{d:"m6.3 17.7-1.4 1.4"}),a.jsx("path",{d:"m19.1 4.9-1.4 1.4"})]})}function eE({title:e,...n}){return a.jsxs("svg",{viewBox:"0 0 21 21",strokeLinecap:"round",fill:"none",stroke:"currentColor",strokeWidth:1.2,...n,children:[e&&a.jsx("title",{children:e}),a.jsx("path",{d:"M4.5 6.5h12"}),a.jsx("path",{d:"M4.498 10.5h11.997"}),a.jsx("path",{d:"M4.5 14.5h11.995"})]})}function tE({title:e,...n}){return a.jsxs("svg",{viewBox:"0 0 422 422",strokeLinecap:"round",fill:"none",stroke:"currentColor",strokeWidth:1.2,...n,children:[e&&a.jsx("title",{children:e}),a.jsx("path",{d:"M364.35 116.86h-32.97v-27a8 8 0 0 0-8-8h-22V8a8 8 0 0 0-8-8h-215a8 8 0 0 0-8 8v73.86h-22a8 8 0 0 0-8 8v27h-13.3a8 8 0 0 0 0 16h13.3v27a8 8 0 0 0 8 8h22V293a8 8 0 0 0 8 8h44.5v13a8 8 0 0 0 8 8h17v92a8 8 0 0 0 8 8h60a8 8 0 0 0 8-8v-92h17a8 8 0 0 0 8-8v-13h44.5a8 8 0 0 0 8-8v-64.05l69.28-11.48a38.45 38.45 0 0 0 32.26-38.06v-23.98a38.62 38.62 0 0 0-38.57-38.57zM86.38 16h199v65.86h-199V16zm121.5 390h-44v-84h44v84zm25-100h-94v-24h94v24zm52.5-21h-36.5v-11a8 8 0 0 0-8-8h-47v-.08a22.5 22.5 0 0 1 18.88-22.27l72.62-12.04V285zm0-69.61-75.23 12.48a38.45 38.45 0 0 0-32.27 38.05v.08h-47a8 8 0 0 0-8 8v11h-36.5V167.86h27.7v69.64a8 8 0 0 0 16 0v-69.64h39V201a8 8 0 0 0 16 0v-33.14h100.3v47.53zm-229-63.53v-54h259v54h-259zm330.54 27.55a22.5 22.5 0 0 1-18.88 22.27l-66.66 11.06v-44.88h22a8 8 0 0 0 8-8v-27h32.97a22.6 22.6 0 0 1 22.57 22.57v23.98z"})]})}function qc({label:e,theme:n,current:t}){return a.jsxs(qs,{className:"grid grid-cols-[16px,1fr] items-center gap-x-2",onClick:()=>lt.theme=n,children:[t===n&&a.jsx(o5,{className:"size-4"}),a.jsx("div",{className:"col-start-2",children:e})]})}function nE(){const{theme:e}=Ir(lt),n=e==="dark",t=e==="system",o=!n&&!t;return a.jsxs("div",{className:"focus-within:ring-1 focus-within:ring-ring rounded-md flex items-center",children:[a.jsxs(ft,{variant:"ghost",size:"xs",tabIndex:-1,className:"py-0 border-y border-l border-input rounded-r-none",onClick:()=>lt.theme=lt.theme==="dark"?"light":"dark",children:[t&&a.jsx(Q$,{className:"size-4"}),o&&a.jsx(J$,{className:"size-4"}),n&&a.jsx(Z$,{className:"size-4 p-0.5"})]}),a.jsxs(cd,{children:[a.jsx(ud,{asChild:!0,children:a.jsx(ft,{variant:"ghost",size:"xs",className:"px-1 py-0 border border-input rounded-l-none focus-visible:ring-0",children:a.jsx(s5,{className:"size-3"})})}),a.jsxs(ll,{align:"end",children:[a.jsx(qc,{label:"Light",theme:"light",current:e}),a.jsx(qc,{label:"Dark",theme:"dark",current:e}),a.jsx(qc,{label:"System",theme:"system",current:e})]})]})]})}const rE={theme:"system",setTheme:()=>null};C.createContext(rE);const{createElement:as,createContext:oE,createRef:Vk,forwardRef:jv,useCallback:Rn,useContext:Nv,useEffect:Ro,useImperativeHandle:Rv,useLayoutEffect:sE,useMemo:aE,useRef:mn,useState:Js}=Wh,kg=Wh.useId,iE=sE,ml=oE(null);ml.displayName="PanelGroupContext";const $o=iE,lE=typeof kg=="function"?kg:()=>null;let cE=0;function Cd(e=null){const n=lE(),t=mn(e||n||null);return t.current===null&&(t.current=""+cE++),e??t.current}function $v({children:e,className:n="",collapsedSize:t,collapsible:o,defaultSize:i,forwardedRef:l,id:u,maxSize:d,minSize:p,onCollapse:f,onExpand:g,onResize:v,order:x,style:m,tagName:S="div",...w}){const $=Nv(ml);if($===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:_,expandPanel:y,getPanelSize:R,getPanelStyle:M,groupId:E,isPanelCollapsed:I,reevaluatePanelConstraints:H,registerPanel:P,resizePanel:D,unregisterPanel:k}=$,L=Cd(u),F=mn({callbacks:{onCollapse:f,onExpand:g,onResize:v},constraints:{collapsedSize:t,collapsible:o,defaultSize:i,maxSize:d,minSize:p},id:L,idIsFromProps:u!==void 0,order:x});mn({didLogMissingDefaultSizeWarning:!1}),$o(()=>{const{callbacks:V,constraints:J}=F.current,de={...J};F.current.id=L,F.current.idIsFromProps=u!==void 0,F.current.order=x,V.onCollapse=f,V.onExpand=g,V.onResize=v,J.collapsedSize=t,J.collapsible=o,J.defaultSize=i,J.maxSize=d,J.minSize=p,(de.collapsedSize!==J.collapsedSize||de.collapsible!==J.collapsible||de.maxSize!==J.maxSize||de.minSize!==J.minSize)&&H(F.current,de)}),$o(()=>{const V=F.current;return P(V),()=>{k(V)}},[x,L,P,k]),Rv(l,()=>({collapse:()=>{_(F.current)},expand:()=>{y(F.current)},getId(){return L},getSize(){return R(F.current)},isCollapsed(){return I(F.current)},isExpanded(){return!I(F.current)},resize:V=>{D(F.current,V)}}),[_,y,R,I,L,D]);const Z=M(F.current,i);return as(S,{...w,children:e,className:n,id:u,style:{...Z,...m},"data-panel":"","data-panel-collapsible":o||void 0,"data-panel-group-id":E,"data-panel-id":L,"data-panel-size":parseFloat(""+Z.flexGrow).toFixed(1)})}const Ev=jv((e,n)=>as($v,{...e,forwardedRef:n}));$v.displayName="Panel";Ev.displayName="forwardRef(Panel)";let Mu=null,Co=null;function uE(e,n){if(n){const t=(n&Tv)!==0,o=(n&kv)!==0,i=(n&Iv)!==0,l=(n&Lv)!==0;if(t)return i?"se-resize":l?"ne-resize":"e-resize";if(o)return i?"sw-resize":l?"nw-resize":"w-resize";if(i)return"s-resize";if(l)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function dE(){Co!==null&&(document.head.removeChild(Co),Mu=null,Co=null)}function Kc(e,n){const t=uE(e,n);Mu!==t&&(Mu=t,Co===null&&(Co=document.createElement("style"),document.head.appendChild(Co)),Co.innerHTML=`*{cursor: ${t}!important;}`)}function Pv(e){return e.type==="keydown"}function Av(e){return e.type.startsWith("mouse")}function Mv(e){return e.type.startsWith("touch")}function vl(e){if(Av(e))return{x:e.clientX,y:e.clientY};if(Mv(e)){const n=e.touches[0];if(n&&n.clientX&&n.clientY)return{x:n.clientX,y:n.clientY}}return{x:1/0,y:1/0}}function fE(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function pE(e,n,t){return t?e.xn.x&&e.yn.y:e.x<=n.x+n.width&&e.x+e.width>=n.x&&e.y<=n.y+n.height&&e.y+e.height>=n.y}function gE(e,n){if(e===n)throw new Error("Cannot compare node with itself");const t={a:Fg(e),b:Fg(n)};let o;for(;t.a.at(-1)===t.b.at(-1);)e=t.a.pop(),n=t.b.pop(),o=e;Ue(o,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Lg(Ig(t.a)),b:Lg(Ig(t.b))};if(i.a===i.b){const l=o.childNodes,u={a:t.a.at(-1),b:t.b.at(-1)};let d=l.length;for(;d--;){const p=l[d];if(p===u.a)return 1;if(p===u.b)return-1}}return Math.sign(i.a-i.b)}const hE=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function mE(e){const n=getComputedStyle(Dv(e)).display;return n==="flex"||n==="inline-flex"}function vE(e){const n=getComputedStyle(e);return!!(n.position==="fixed"||n.zIndex!=="auto"&&(n.position!=="static"||mE(e))||+n.opacity<1||"transform"in n&&n.transform!=="none"||"webkitTransform"in n&&n.webkitTransform!=="none"||"mixBlendMode"in n&&n.mixBlendMode!=="normal"||"filter"in n&&n.filter!=="none"||"webkitFilter"in n&&n.webkitFilter!=="none"||"isolation"in n&&n.isolation==="isolate"||hE.test(n.willChange)||n.webkitOverflowScrolling==="touch")}function Ig(e){let n=e.length;for(;n--;){const t=e[n];if(Ue(t,"Missing node"),vE(t))return t}return null}function Lg(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Fg(e){const n=[];for(;e;)n.push(e),e=Dv(e);return n}function Dv(e){var n;return((n=e.parentNode)===null||n===void 0?void 0:n.host)||e.parentNode}const Tv=1,kv=2,Iv=4,Lv=8,xE=fE()==="coarse";let so=[],xl=!1,no=new Map,bl=new Map;const ia=new Set;function bE(e,n,t,o,i){var l;const{ownerDocument:u}=n,d={direction:t,element:n,hitAreaMargins:o,setResizeHandlerState:i},p=(l=no.get(u))!==null&&l!==void 0?l:0;return no.set(u,p+1),ia.add(d),Zi(),function(){var g;bl.delete(e),ia.delete(d);const v=(g=no.get(u))!==null&&g!==void 0?g:1;no.set(u,v-1),Zi(),v===1&&no.delete(u)}}function _i(e){const{target:n}=e,{x:t,y:o}=vl(e);xl=!0,jd({target:n,x:t,y:o}),Zi(),so.length>0&&(Nd("down",e),e.preventDefault())}function qr(e){const{x:n,y:t}=vl(e);if(!xl){const{target:o}=e;jd({target:o,x:n,y:t})}Nd("move",e),Fv(),so.length>0&&e.preventDefault()}function Kr(e){const{target:n}=e,{x:t,y:o}=vl(e);bl.clear(),xl=!1,so.length>0&&e.preventDefault(),Nd("up",e),jd({target:n,x:t,y:o}),Fv(),Zi()}function jd({target:e,x:n,y:t}){so.splice(0);let o=null;e instanceof HTMLElement&&(o=e),ia.forEach(i=>{const{element:l,hitAreaMargins:u}=i,d=l.getBoundingClientRect(),{bottom:p,left:f,right:g,top:v}=d,x=xE?u.coarse:u.fine;if(n>=f-x&&n<=g+x&&t>=v-x&&t<=p+x){if(o!==null&&l!==o&&!l.contains(o)&&!o.contains(l)&&gE(o,l)>0){let S=o,w=!1;for(;S&&!S.contains(l);){if(pE(S.getBoundingClientRect(),d,!0)){w=!0;break}S=S.parentElement}if(w)return}so.push(i)}})}function Yc(e,n){bl.set(e,n)}function Fv(){let e=!1,n=!1;so.forEach(o=>{const{direction:i}=o;i==="horizontal"?e=!0:n=!0});let t=0;bl.forEach(o=>{t|=o}),e&&n?Kc("intersection",t):e?Kc("horizontal",t):n?Kc("vertical",t):dE()}function Zi(){no.forEach((e,n)=>{const{body:t}=n;t.removeEventListener("contextmenu",Kr),t.removeEventListener("mousedown",_i),t.removeEventListener("mouseleave",qr),t.removeEventListener("mousemove",qr),t.removeEventListener("touchmove",qr),t.removeEventListener("touchstart",_i)}),window.removeEventListener("mouseup",Kr),window.removeEventListener("touchcancel",Kr),window.removeEventListener("touchend",Kr),ia.size>0&&(xl?(so.length>0&&no.forEach((e,n)=>{const{body:t}=n;e>0&&(t.addEventListener("contextmenu",Kr),t.addEventListener("mouseleave",qr),t.addEventListener("mousemove",qr),t.addEventListener("touchmove",qr,{passive:!1}))}),window.addEventListener("mouseup",Kr),window.addEventListener("touchcancel",Kr),window.addEventListener("touchend",Kr)):no.forEach((e,n)=>{const{body:t}=n;e>0&&(t.addEventListener("mousedown",_i),t.addEventListener("mousemove",qr),t.addEventListener("touchmove",qr,{passive:!1}),t.addEventListener("touchstart",_i))}))}function Nd(e,n){ia.forEach(t=>{const{setResizeHandlerState:o}=t,i=so.includes(t);o(e,i,n)})}function Ue(e,n){if(!e)throw console.error(n),Error(n)}const Ov=10;function la(e,n,t=Ov){e=parseFloat(e.toFixed(t)),n=parseFloat(n.toFixed(t));const o=e-n;return o===0?0:o>0?1:-1}function En(e,n,t){return la(e,n,t)===0}function ts({panelConstraints:e,panelIndex:n,size:t}){const o=e[n];Ue(o!=null,`Panel constraints not found for index ${n}`);let{collapsedSize:i=0,collapsible:l,maxSize:u=100,minSize:d=0}=o;if(la(t,d)<0)if(l){const p=(i+d)/2;la(t,p)<0?t=i:t=d}else t=d;return t=Math.min(u,t),t=parseFloat(t.toFixed(Ov)),t}function Hs({delta:e,layout:n,panelConstraints:t,pivotIndices:o,trigger:i}){if(En(e,0))return n;const l=[...n],[u,d]=o;Ue(u!=null,"Invalid first pivot index"),Ue(d!=null,"Invalid second pivot index");let p=0;if(i==="keyboard"){{const g=e<0?d:u,v=t[g];Ue(v,`Panel constraints not found for index ${g}`);const{collapsedSize:x=0,collapsible:m,minSize:S=0}=v;if(m){const w=n[g];if(Ue(w!=null,`Previous layout not found for panel index ${g}`),En(w,x)){const $=S-w;la($,Math.abs(e))>0&&(e=e<0?0-$:$)}}}{const g=e<0?u:d,v=t[g];Ue(v,`No panel constraints found for index ${g}`);const{collapsedSize:x=0,collapsible:m,minSize:S=0}=v;if(m){const w=n[g];if(Ue(w!=null,`Previous layout not found for panel index ${g}`),En(w,S)){const $=w-x;la($,Math.abs(e))>0&&(e=e<0?0-$:$)}}}}{const g=e<0?1:-1;let v=e<0?d:u,x=0;for(;;){const S=n[v];Ue(S!=null,`Previous layout not found for panel index ${v}`);const $=ts({panelConstraints:t,panelIndex:v,size:100})-S;if(x+=$,v+=g,v<0||v>=t.length)break}const m=Math.min(Math.abs(e),Math.abs(x));e=e<0?0-m:m}{let v=e<0?u:d;for(;v>=0&&v=0))break;e<0?v--:v++}}if(En(p,0))return n;{const g=e<0?d:u,v=n[g];Ue(v!=null,`Previous layout not found for panel index ${g}`);const x=v+p,m=ts({panelConstraints:t,panelIndex:g,size:x});if(l[g]=m,!En(m,x)){let S=x-m,$=e<0?d:u;for(;$>=0&&$0?$--:$++}}}const f=l.reduce((g,v)=>v+g,0);return En(f,100)?l:n}function yE({layout:e,panelsArray:n,pivotIndices:t}){let o=0,i=100,l=0,u=0;const d=t[0];Ue(d!=null,"No pivot index found"),n.forEach((v,x)=>{const{constraints:m}=v,{maxSize:S=100,minSize:w=0}=m;x===d?(o=w,i=S):(l+=w,u+=S)});const p=Math.min(i,100-l),f=Math.max(o,100-u),g=e[d];return{valueMax:p,valueMin:f,valueNow:g}}function ca(e,n=document){return Array.from(n.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function zv(e,n,t=document){const i=ca(e,t).findIndex(l=>l.getAttribute("data-panel-resize-handle-id")===n);return i??null}function Bv(e,n,t){const o=zv(e,n,t);return o!=null?[o,o+1]:[-1,-1]}function Hv(e,n=document){var t;if(n instanceof HTMLElement&&(n==null||(t=n.dataset)===null||t===void 0?void 0:t.panelGroupId)==e)return n;const o=n.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return o||null}function yl(e,n=document){const t=n.querySelector(`[data-panel-resize-handle-id="${e}"]`);return t||null}function wE(e,n,t,o=document){var i,l,u,d;const p=yl(n,o),f=ca(e,o),g=p?f.indexOf(p):-1,v=(i=(l=t[g])===null||l===void 0?void 0:l.id)!==null&&i!==void 0?i:null,x=(u=(d=t[g+1])===null||d===void 0?void 0:d.id)!==null&&u!==void 0?u:null;return[v,x]}function _E({committedValuesRef:e,eagerValuesRef:n,groupId:t,layout:o,panelDataArray:i,panelGroupElement:l,setLayout:u}){mn({didWarnAboutMissingResizeHandle:!1}),$o(()=>{if(!l)return;const d=ca(t,l);for(let p=0;p{d.forEach((p,f)=>{p.removeAttribute("aria-controls"),p.removeAttribute("aria-valuemax"),p.removeAttribute("aria-valuemin"),p.removeAttribute("aria-valuenow")})}},[t,o,i,l]),Ro(()=>{if(!l)return;const d=n.current;Ue(d,"Eager values not found");const{panelDataArray:p}=d,f=Hv(t,l);Ue(f!=null,`No group found for id "${t}"`);const g=ca(t,l);Ue(g,`No resize handles found for group id "${t}"`);const v=g.map(x=>{const m=x.getAttribute("data-panel-resize-handle-id");Ue(m,"Resize handle element has no handle id attribute");const[S,w]=wE(t,m,p,l);if(S==null||w==null)return()=>{};const $=_=>{if(!_.defaultPrevented)switch(_.key){case"Enter":{_.preventDefault();const y=p.findIndex(R=>R.id===S);if(y>=0){const R=p[y];Ue(R,`No panel data found for index ${y}`);const M=o[y],{collapsedSize:E=0,collapsible:I,minSize:H=0}=R.constraints;if(M!=null&&I){const P=Hs({delta:En(M,E)?H-E:E-M,layout:o,panelConstraints:p.map(D=>D.constraints),pivotIndices:Bv(t,m,l),trigger:"keyboard"});o!==P&&u(P)}}break}}};return x.addEventListener("keydown",$),()=>{x.removeEventListener("keydown",$)}});return()=>{v.forEach(x=>x())}},[l,e,n,t,o,i,u])}function Og(e,n){if(e.length!==n.length)return!1;for(let t=0;tl.constraints);let o=0,i=100;for(let l=0;l{const l=e[i];Ue(l,`Panel data not found for index ${i}`);const{callbacks:u,constraints:d,id:p}=l,{collapsedSize:f=0,collapsible:g}=d,v=t[p];if(v==null||o!==v){t[p]=o;const{onCollapse:x,onExpand:m,onResize:S}=u;S&&S(o,v),g&&(x||m)&&(m&&(v==null||v===f)&&o!==f&&m(),x&&(v==null||v!==f)&&o===f&&x())}})}function Si(e,n){if(e.length!==n.length)return!1;for(let t=0;t{t!==null&&clearTimeout(t),t=setTimeout(()=>{e(...i)},n)}}function zg(e){try{if(typeof localStorage<"u")e.getItem=n=>localStorage.getItem(n),e.setItem=(n,t)=>{localStorage.setItem(n,t)};else throw new Error("localStorage not supported in this environment")}catch(n){console.error(n),e.getItem=()=>null,e.setItem=()=>{}}}function Gv(e){return`react-resizable-panels:${e}`}function Wv(e){return e.map(n=>{const{constraints:t,id:o,idIsFromProps:i,order:l}=n;return i?o:l?`${l}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((n,t)=>n.localeCompare(t)).join(",")}function Uv(e,n){try{const t=Gv(e),o=n.getItem(t);if(o){const i=JSON.parse(o);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function $E(e,n,t){var o,i;const l=(o=Uv(e,t))!==null&&o!==void 0?o:{},u=Wv(n);return(i=l[u])!==null&&i!==void 0?i:null}function EE(e,n,t,o,i){var l;const u=Gv(e),d=Wv(n),p=(l=Uv(e,i))!==null&&l!==void 0?l:{};p[d]={expandToSizes:Object.fromEntries(t.entries()),layout:o};try{i.setItem(u,JSON.stringify(p))}catch(f){console.error(f)}}function Bg({layout:e,panelConstraints:n}){const t=[...e],o=t.reduce((l,u)=>l+u,0);if(t.length!==n.length)throw Error(`Invalid ${n.length} panel layout: ${t.map(l=>`${l}%`).join(", ")}`);if(!En(o,100))for(let l=0;l(zg(Vs),Vs.getItem(e)),setItem:(e,n)=>{zg(Vs),Vs.setItem(e,n)}},Hg={};function Xv({autoSaveId:e=null,children:n,className:t="",direction:o,forwardedRef:i,id:l=null,onLayout:u=null,keyboardResizeBy:d=null,storage:p=Vs,style:f,tagName:g="div",...v}){const x=Cd(l),m=mn(null),[S,w]=Js(null),[$,_]=Js([]),y=mn({}),R=mn(new Map),M=mn(0),E=mn({autoSaveId:e,direction:o,dragState:S,id:x,keyboardResizeBy:d,onLayout:u,storage:p}),I=mn({layout:$,panelDataArray:[],panelDataArrayChanged:!1});mn({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),Rv(i,()=>({getId:()=>E.current.id,getLayout:()=>{const{layout:U}=I.current;return U},setLayout:U=>{const{onLayout:q}=E.current,{layout:ie,panelDataArray:pe}=I.current,Y=Bg({layout:U,panelConstraints:pe.map(be=>be.constraints)});Og(ie,Y)||(_(Y),I.current.layout=Y,q&&q(Y),qo(pe,Y,y.current))}}),[]),$o(()=>{E.current.autoSaveId=e,E.current.direction=o,E.current.dragState=S,E.current.id=x,E.current.onLayout=u,E.current.storage=p}),_E({committedValuesRef:E,eagerValuesRef:I,groupId:x,layout:$,panelDataArray:I.current.panelDataArray,setLayout:_,panelGroupElement:m.current}),Ro(()=>{const{panelDataArray:U}=I.current;if(e){if($.length===0||$.length!==U.length)return;let q=Hg[e];q==null&&(q=RE(EE,PE),Hg[e]=q);const ie=[...U],pe=new Map(R.current);q(e,ie,pe,$,p)}},[e,$,p]),Ro(()=>{});const H=Rn(U=>{const{onLayout:q}=E.current,{layout:ie,panelDataArray:pe}=I.current;if(U.constraints.collapsible){const Y=pe.map(fe=>fe.constraints),{collapsedSize:be=0,panelSize:B,pivotIndices:se}=wo(pe,U,ie);if(Ue(B!=null,`Panel size not found for panel "${U.id}"`),B!==be){R.current.set(U.id,B);const le=Zo(pe,U)===pe.length-1?B-be:be-B,oe=Hs({delta:le,layout:ie,panelConstraints:Y,pivotIndices:se,trigger:"imperative-api"});Si(ie,oe)||(_(oe),I.current.layout=oe,q&&q(oe),qo(pe,oe,y.current))}}},[]),P=Rn(U=>{const{onLayout:q}=E.current,{layout:ie,panelDataArray:pe}=I.current;if(U.constraints.collapsible){const Y=pe.map(le=>le.constraints),{collapsedSize:be=0,panelSize:B,minSize:se=0,pivotIndices:fe}=wo(pe,U,ie);if(B===be){const le=R.current.get(U.id),oe=le!=null&&le>=se?le:se,xe=Zo(pe,U)===pe.length-1?B-oe:oe-B,Ce=Hs({delta:xe,layout:ie,panelConstraints:Y,pivotIndices:fe,trigger:"imperative-api"});Si(ie,Ce)||(_(Ce),I.current.layout=Ce,q&&q(Ce),qo(pe,Ce,y.current))}}},[]),D=Rn(U=>{const{layout:q,panelDataArray:ie}=I.current,{panelSize:pe}=wo(ie,U,q);return Ue(pe!=null,`Panel size not found for panel "${U.id}"`),pe},[]),k=Rn((U,q)=>{const{panelDataArray:ie}=I.current,pe=Zo(ie,U);return NE({defaultSize:q,dragState:S,layout:$,panelData:ie,panelIndex:pe})},[S,$]),L=Rn(U=>{const{layout:q,panelDataArray:ie}=I.current,{collapsedSize:pe=0,collapsible:Y,panelSize:be}=wo(ie,U,q);return Y===!0&&be===pe},[]),F=Rn(U=>{const{layout:q,panelDataArray:ie}=I.current,{collapsedSize:pe=0,collapsible:Y,panelSize:be}=wo(ie,U,q);return Ue(be!=null,`Panel size not found for panel "${U.id}"`),!Y||be>pe},[]),Z=Rn(U=>{const{panelDataArray:q}=I.current;q.push(U),q.sort((ie,pe)=>{const Y=ie.order,be=pe.order;return Y==null&&be==null?0:Y==null?-1:be==null?1:Y-be}),I.current.panelDataArrayChanged=!0},[]);$o(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:U,onLayout:q,storage:ie}=E.current,{layout:pe,panelDataArray:Y}=I.current;let be=null;if(U){const se=$E(U,Y,ie);se&&(R.current=new Map(Object.entries(se.expandToSizes)),be=se.layout)}be==null&&(be=jE({panelDataArray:Y}));const B=Bg({layout:be,panelConstraints:Y.map(se=>se.constraints)});Og(pe,B)||(_(B),I.current.layout=B,q&&q(B),qo(Y,B,y.current))}}),$o(()=>{const U=I.current;return()=>{U.layout=[]}},[]);const V=Rn(U=>function(ie){ie.preventDefault();const pe=m.current;if(!pe)return()=>null;const{direction:Y,dragState:be,id:B,keyboardResizeBy:se,onLayout:fe}=E.current,{layout:le,panelDataArray:oe}=I.current,{initialLayout:he}=be??{},xe=Bv(B,U,pe);let Ce=CE(ie,U,Y,be,se,pe);if(Ce===0)return;const nt=Y==="horizontal";document.dir==="rtl"&&nt&&(Ce=-Ce);const Ze=oe.map(rt=>rt.constraints),Qe=Hs({delta:Ce,layout:he??le,panelConstraints:Ze,pivotIndices:xe,trigger:Pv(ie)?"keyboard":"mouse-or-touch"}),qe=!Si(le,Qe);(Av(ie)||Mv(ie))&&M.current!=Ce&&(M.current=Ce,qe?Yc(U,0):nt?Yc(U,Ce<0?Tv:kv):Yc(U,Ce<0?Iv:Lv)),qe&&(_(Qe),I.current.layout=Qe,fe&&fe(Qe),qo(oe,Qe,y.current))},[]),J=Rn((U,q)=>{const{onLayout:ie}=E.current,{layout:pe,panelDataArray:Y}=I.current,be=Y.map(he=>he.constraints),{panelSize:B,pivotIndices:se}=wo(Y,U,pe);Ue(B!=null,`Panel size not found for panel "${U.id}"`);const le=Zo(Y,U)===Y.length-1?B-q:q-B,oe=Hs({delta:le,layout:pe,panelConstraints:be,pivotIndices:se,trigger:"imperative-api"});Si(pe,oe)||(_(oe),I.current.layout=oe,ie&&ie(oe),qo(Y,oe,y.current))},[]),de=Rn((U,q)=>{const{layout:ie,panelDataArray:pe}=I.current,{collapsedSize:Y=0,collapsible:be}=q,{collapsedSize:B=0,collapsible:se,maxSize:fe=100,minSize:le=0}=U.constraints,{panelSize:oe}=wo(pe,U,ie);oe!=null&&(be&&se&&oe===Y?Y!==B&&J(U,B):oefe&&J(U,fe))},[J]),ge=Rn((U,q)=>{const{direction:ie}=E.current,{layout:pe}=I.current;if(!m.current)return;const Y=yl(U,m.current);Ue(Y,`Drag handle element not found for id "${U}"`);const be=Vv(ie,q);w({dragHandleId:U,dragHandleRect:Y.getBoundingClientRect(),initialCursorPosition:be,initialLayout:pe})},[]),ce=Rn(()=>{w(null)},[]),ue=Rn(U=>{const{panelDataArray:q}=I.current,ie=Zo(q,U);ie>=0&&(q.splice(ie,1),delete y.current[U.id],I.current.panelDataArrayChanged=!0)},[]),K=aE(()=>({collapsePanel:H,direction:o,dragState:S,expandPanel:P,getPanelSize:D,getPanelStyle:k,groupId:x,isPanelCollapsed:L,isPanelExpanded:F,reevaluatePanelConstraints:de,registerPanel:Z,registerResizeHandle:V,resizePanel:J,startDragging:ge,stopDragging:ce,unregisterPanel:ue,panelGroupElement:m.current}),[H,S,o,P,D,k,x,L,F,de,Z,V,J,ge,ce,ue]),ne={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return as(ml.Provider,{value:K},as(g,{...v,children:n,className:t,id:l,ref:m,style:{...ne,...f},"data-panel-group":"","data-panel-group-direction":o,"data-panel-group-id":x}))}const qv=jv((e,n)=>as(Xv,{...e,forwardedRef:n}));Xv.displayName="PanelGroup";qv.displayName="forwardRef(PanelGroup)";function Zo(e,n){return e.findIndex(t=>t===n||t.id===n.id)}function wo(e,n,t){const o=Zo(e,n),l=o===e.length-1?[o-1,o]:[o,o+1],u=t[o];return{...n.constraints,panelSize:u,pivotIndices:l}}function AE({disabled:e,handleId:n,resizeHandler:t,panelGroupElement:o}){Ro(()=>{if(e||t==null||o==null)return;const i=yl(n,o);if(i==null)return;const l=u=>{if(!u.defaultPrevented)switch(u.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{u.preventDefault(),t(u);break}case"F6":{u.preventDefault();const d=i.getAttribute("data-panel-group-id");Ue(d,`No group element found for id "${d}"`);const p=ca(d,o),f=zv(d,n,o);Ue(f!==null,`No resize element found for id "${n}"`);const g=u.shiftKey?f>0?f-1:p.length-1:f+1{i.removeEventListener("keydown",l)}},[o,e,n,t])}function Kv({children:e=null,className:n="",disabled:t=!1,hitAreaMargins:o,id:i,onDragging:l,style:u={},tabIndex:d=0,tagName:p="div",...f}){const g=mn(null),v=mn({onDragging:l});Ro(()=>{v.current.onDragging=l});const x=Nv(ml);if(x===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:S,registerResizeHandle:w,startDragging:$,stopDragging:_,panelGroupElement:y}=x,R=Cd(i),[M,E]=Js("inactive"),[I,H]=Js(!1),[P,D]=Js(null),k=mn({state:M});return $o(()=>{k.current.state=M}),Ro(()=>{if(t)D(null);else{const F=w(R);D(()=>F)}},[t,R,w]),Ro(()=>{var F,Z;if(t||P==null)return;const V=g.current;Ue(V,"Element ref not attached");const J=(de,ge,ce)=>{if(ge)switch(de){case"down":{E("drag"),$(R,ce);const{onDragging:ue}=v.current;ue&&ue(!0);break}case"move":{const{state:ue}=k.current;ue!=="drag"&&E("hover"),P(ce);break}case"up":{E("hover"),_();const{onDragging:ue}=v.current;ue&&ue(!1);break}}else E("inactive")};return bE(R,V,m,{coarse:(F=o?.coarse)!==null&&F!==void 0?F:15,fine:(Z=o?.fine)!==null&&Z!==void 0?Z:5},J)},[m,t,o,w,R,P,$,_]),AE({disabled:t,handleId:R,resizeHandler:P,panelGroupElement:y}),as(p,{...f,children:e,className:n,id:i,onBlur:()=>H(!1),onFocus:()=>H(!0),ref:g,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...u},tabIndex:d,"data-panel-group-direction":m,"data-panel-group-id":S,"data-resize-handle":"","data-resize-handle-active":M==="drag"?"pointer":I?"keyboard":void 0,"data-resize-handle-state":M,"data-panel-resize-handle-enabled":!t,"data-panel-resize-handle-id":R})}Kv.displayName="PanelResizeHandle";const Vg=({className:e,...n})=>a.jsx(qv,{className:X("w-full h-full flex data-[panel-group-direction=vertical]:flex-col",e),...n}),Ci=Ev,ME="relative w-px bg-border after:absolute after:left-1/2 after:-translate-x-1/2 after:w-1 after:inset-y-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:h-1 [&[data-panel-group-direction=vertical]>div]:rotate-90 flex items-center justify-center ";function Gg({withHandle:e,className:n,...t}){return a.jsx(Kv,{className:X(ME,n),...t,children:e&&a.jsx("div",{className:"w-3 h-4 rounded-sm border bg-border flex items-center justify-center z-10",children:a.jsx(xj,{className:"h-2.5 w-2.5"})})})}function DE(e,{insertAt:n}={}){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}DE(`html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} -`);var TE=e=>{switch(e){case"success":return LE;case"info":return OE;case"warning":return FE;case"error":return zE;default:return null}},kE=Array(12).fill(0),IE=({visible:e})=>G.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},G.createElement("div",{className:"sonner-spinner"},kE.map((n,t)=>G.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),LE=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),FE=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},G.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),OE=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),zE=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),BE=()=>{let[e,n]=G.useState(!1);return G.useEffect(()=>{let t=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),e},Du=1,HE=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let n=this.subscribers.indexOf(e);this.subscribers.splice(n,1)}),this.publish=e=>{this.subscribers.forEach(n=>n(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var n;let{message:t,...o}=e,i=typeof e?.id=="number"||((n=e.id)==null?void 0:n.length)>0?e.id:Du++,l=this.toasts.find(d=>d.id===i),u=e.dismissible===void 0?!0:e.dismissible;return l?this.toasts=this.toasts.map(d=>d.id===i?(this.publish({...d,...e,id:i,title:t}),{...d,...e,id:i,dismissible:u,title:t}):d):this.addToast({title:t,...o,dismissible:u,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(n=>{this.subscribers.forEach(t=>t({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:e,dismiss:!0})),e),this.message=(e,n)=>this.create({...n,message:e}),this.error=(e,n)=>this.create({...n,message:e,type:"error"}),this.success=(e,n)=>this.create({...n,type:"success",message:e}),this.info=(e,n)=>this.create({...n,type:"info",message:e}),this.warning=(e,n)=>this.create({...n,type:"warning",message:e}),this.loading=(e,n)=>this.create({...n,type:"loading",message:e}),this.promise=(e,n)=>{if(!n)return;let t;n.loading!==void 0&&(t=this.create({...n,promise:e,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));let o=e instanceof Promise?e:e(),i=t!==void 0;return o.then(l=>{if(l&&typeof l.ok=="boolean"&&!l.ok){i=!1;let u=typeof n.error=="function"?n.error(`HTTP error! status: ${l.status}`):n.error,d=typeof n.description=="function"?n.description(`HTTP error! status: ${l.status}`):n.description;this.create({id:t,type:"error",message:u,description:d})}else if(n.success!==void 0){i=!1;let u=typeof n.success=="function"?n.success(l):n.success,d=typeof n.description=="function"?n.description(l):n.description;this.create({id:t,type:"success",message:u,description:d})}}).catch(l=>{if(n.error!==void 0){i=!1;let u=typeof n.error=="function"?n.error(l):n.error,d=typeof n.description=="function"?n.description(l):n.description;this.create({id:t,type:"error",message:u,description:d})}}).finally(()=>{var l;i&&(this.dismiss(t),t=void 0),(l=n.finally)==null||l.call(n)}),t},this.custom=(e,n)=>{let t=n?.id||Du++;return this.create({jsx:e(t),id:t,...n}),t},this.subscribers=[],this.toasts=[]}},rr=new HE,VE=(e,n)=>{let t=n?.id||Du++;return rr.addToast({title:e,...n,id:t}),t},GE=VE,Tu=Object.assign(GE,{success:rr.success,info:rr.info,warning:rr.warning,error:rr.error,custom:rr.custom,message:rr.message,promise:rr.promise,dismiss:rr.dismiss,loading:rr.loading}),WE=3,UE="32px",XE=4e3,qE=356,Yv=14,KE=20,YE=200;function JE(...e){return e.filter(Boolean).join(" ")}var ZE=e=>{var n,t,o,i,l,u,d;let{invert:p,toast:f,unstyled:g,interacting:v,setHeights:x,visibleToasts:m,heights:S,index:w,toasts:$,expanded:_,removeToast:y,closeButton:R,style:M,cancelButtonStyle:E,actionButtonStyle:I,className:H="",descriptionClassName:P="",duration:D,position:k,gap:L=Yv,loadingIcon:F,expandByDefault:Z,classNames:V,icons:J,closeButtonAriaLabel:de="Close toast",pauseWhenPageIsHidden:ge,cn:ce}=e,[ue,K]=G.useState(!1),[ne,U]=G.useState(!1),[q,ie]=G.useState(!1),[pe,Y]=G.useState(!1),[be,B]=G.useState(0),[se,fe]=G.useState(0),le=G.useRef(null),oe=G.useRef(null),he=w===0,xe=w+1<=m,Ce=f.type,nt=f.dismissible!==!1,Ze=f.className||"",Qe=f.descriptionClassName||"",qe=G.useMemo(()=>S.findIndex(ve=>ve.toastId===f.id)||0,[S,f.id]),rt=G.useMemo(()=>{var ve;return(ve=f.closeButton)!=null?ve:R},[f.closeButton,R]),ze=G.useMemo(()=>f.duration||D||XE,[f.duration,D]),ot=G.useRef(0),Ge=G.useRef(0),Ft=G.useRef(0),St=G.useRef(null),[Ht,Vt]=k.split("-"),Ct=G.useMemo(()=>S.reduce((ve,je,Ne)=>Ne>=qe?ve:ve+je.height,0),[S,qe]),Ke=BE(),ee=f.invert||p,me=Ce==="loading";Ge.current=G.useMemo(()=>qe*L+Ct,[qe,Ct]),G.useEffect(()=>{K(!0)},[]),G.useLayoutEffect(()=>{if(!ue)return;let ve=oe.current,je=ve.style.height;ve.style.height="auto";let Ne=ve.getBoundingClientRect().height;ve.style.height=je,fe(Ne),x(Ie=>Ie.find(et=>et.toastId===f.id)?Ie.map(et=>et.toastId===f.id?{...et,height:Ne}:et):[{toastId:f.id,height:Ne,position:f.position},...Ie])},[ue,f.title,f.description,x,f.id]);let we=G.useCallback(()=>{U(!0),B(Ge.current),x(ve=>ve.filter(je=>je.toastId!==f.id)),setTimeout(()=>{y(f)},YE)},[f,y,x,Ge]);G.useEffect(()=>{if(f.promise&&Ce==="loading"||f.duration===1/0||f.type==="loading")return;let ve,je=ze;return _||v||ge&&Ke?(()=>{if(Ft.current{var Ne;(Ne=f.onAutoClose)==null||Ne.call(f,f),we()},je)),()=>clearTimeout(ve)},[_,v,Z,f,ze,we,f.promise,Ce,ge,Ke]),G.useEffect(()=>{let ve=oe.current;if(ve){let je=ve.getBoundingClientRect().height;return fe(je),x(Ne=>[{toastId:f.id,height:je,position:f.position},...Ne]),()=>x(Ne=>Ne.filter(Ie=>Ie.toastId!==f.id))}},[x,f.id]),G.useEffect(()=>{f.delete&&we()},[we,f.delete]);function De(){return J!=null&&J.loading?G.createElement("div",{className:"loader","data-visible":Ce==="loading"},J.loading):F?G.createElement("div",{className:"sonner-loader","data-visible":Ce==="loading"},F):G.createElement(IE,{visible:Ce==="loading"})}return G.createElement("li",{"aria-live":f.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:oe,className:ce(H,Ze,V?.toast,(n=f?.classNames)==null?void 0:n.toast,V?.default,V?.[Ce],(t=f?.classNames)==null?void 0:t[Ce]),"data-sonner-toast":"","data-styled":!(f.jsx||f.unstyled||g),"data-mounted":ue,"data-promise":!!f.promise,"data-removed":ne,"data-visible":xe,"data-y-position":Ht,"data-x-position":Vt,"data-index":w,"data-front":he,"data-swiping":q,"data-dismissible":nt,"data-type":Ce,"data-invert":ee,"data-swipe-out":pe,"data-expanded":!!(_||Z&&ue),style:{"--index":w,"--toasts-before":w,"--z-index":$.length-w,"--offset":`${ne?be:Ge.current}px`,"--initial-height":Z?"auto":`${se}px`,...M,...f.style},onPointerDown:ve=>{me||!nt||(le.current=new Date,B(Ge.current),ve.target.setPointerCapture(ve.pointerId),ve.target.tagName!=="BUTTON"&&(ie(!0),St.current={x:ve.clientX,y:ve.clientY}))},onPointerUp:()=>{var ve,je,Ne,Ie;if(pe||!nt)return;St.current=null;let et=Number(((ve=oe.current)==null?void 0:ve.style.getPropertyValue("--swipe-amount").replace("px",""))||0),st=new Date().getTime()-((je=le.current)==null?void 0:je.getTime()),Rt=Math.abs(et)/st;if(Math.abs(et)>=KE||Rt>.11){B(Ge.current),(Ne=f.onDismiss)==null||Ne.call(f,f),we(),Y(!0);return}(Ie=oe.current)==null||Ie.style.setProperty("--swipe-amount","0px"),ie(!1)},onPointerMove:ve=>{var je;if(!St.current||!nt)return;let Ne=ve.clientY-St.current.y,Ie=ve.clientX-St.current.x,et=(Ht==="top"?Math.min:Math.max)(0,Ne),st=ve.pointerType==="touch"?10:2;Math.abs(et)>st?(je=oe.current)==null||je.style.setProperty("--swipe-amount",`${Ne}px`):Math.abs(Ie)>st&&(St.current=null)}},rt&&!f.jsx?G.createElement("button",{"aria-label":de,"data-disabled":me,"data-close-button":!0,onClick:me||!nt?()=>{}:()=>{var ve;we(),(ve=f.onDismiss)==null||ve.call(f,f)},className:ce(V?.closeButton,(o=f?.classNames)==null?void 0:o.closeButton)},G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},G.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),G.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,f.jsx||G.isValidElement(f.title)?f.jsx||f.title:G.createElement(G.Fragment,null,Ce||f.icon||f.promise?G.createElement("div",{"data-icon":""},f.promise&&f.type==="loading"&&!f.icon?f.icon||J?.loading||De():null,f.type!=="loading"?f.icon||J?.[Ce]||TE(Ce):null):null,G.createElement("div",{"data-content":""},G.createElement("div",{"data-title":"",className:ce(V?.title,(i=f?.classNames)==null?void 0:i.title)},f.title),f.description?G.createElement("div",{"data-description":"",className:ce(P,Qe,V?.description,(l=f?.classNames)==null?void 0:l.description)},f.description):null),f.cancel?G.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||E,onClick:ve=>{var je;nt&&(we(),(je=f.cancel)!=null&&je.onClick&&f.cancel.onClick(ve))},className:ce(V?.cancelButton,(u=f?.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,f.action?G.createElement("button",{"data-button":"",style:f.actionButtonStyle||I,onClick:ve=>{var je;(je=f.action)==null||je.onClick(ve),!ve.defaultPrevented&&we()},className:ce(V?.actionButton,(d=f?.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function Wg(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var QE=e=>{let{invert:n,position:t="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:l,className:u,offset:d,theme:p="light",richColors:f,duration:g,style:v,visibleToasts:x=WE,toastOptions:m,dir:S=Wg(),gap:w,loadingIcon:$,icons:_,containerAriaLabel:y="Notifications",pauseWhenPageIsHidden:R,cn:M=JE}=e,[E,I]=G.useState([]),H=G.useMemo(()=>Array.from(new Set([t].concat(E.filter(ne=>ne.position).map(ne=>ne.position)))),[E,t]),[P,D]=G.useState([]),[k,L]=G.useState(!1),[F,Z]=G.useState(!1),[V,J]=G.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),de=G.useRef(null),ge=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),ce=G.useRef(null),ue=G.useRef(!1),K=G.useCallback(ne=>I(U=>U.filter(({id:q})=>q!==ne.id)),[]);return G.useEffect(()=>rr.subscribe(ne=>{if(ne.dismiss){I(U=>U.map(q=>q.id===ne.id?{...q,delete:!0}:q));return}setTimeout(()=>{DC.flushSync(()=>{I(U=>{let q=U.findIndex(ie=>ie.id===ne.id);return q!==-1?[...U.slice(0,q),{...U[q],...ne},...U.slice(q+1)]:[ne,...U]})})})}),[]),G.useEffect(()=>{if(p!=="system"){J(p);return}p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?J("dark"):J("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:ne})=>{J(ne?"dark":"light")})},[p]),G.useEffect(()=>{E.length<=1&&L(!1)},[E]),G.useEffect(()=>{let ne=U=>{var q,ie;o.every(pe=>U[pe]||U.code===pe)&&(L(!0),(q=de.current)==null||q.focus()),U.code==="Escape"&&(document.activeElement===de.current||(ie=de.current)!=null&&ie.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",ne),()=>document.removeEventListener("keydown",ne)},[o]),G.useEffect(()=>{if(de.current)return()=>{ce.current&&(ce.current.focus({preventScroll:!0}),ce.current=null,ue.current=!1)}},[de.current]),E.length?G.createElement("section",{"aria-label":`${y} ${ge}`,tabIndex:-1},H.map((ne,U)=>{var q;let[ie,pe]=ne.split("-");return G.createElement("ol",{key:ne,dir:S==="auto"?Wg():S,tabIndex:-1,ref:de,className:u,"data-sonner-toaster":!0,"data-theme":V,"data-rich-colors":f,"data-y-position":ie,"data-x-position":pe,style:{"--front-toast-height":`${((q=P[0])==null?void 0:q.height)||0}px`,"--offset":typeof d=="number"?`${d}px`:d||UE,"--width":`${qE}px`,"--gap":`${Yv}px`,...v},onBlur:Y=>{ue.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(ue.current=!1,ce.current&&(ce.current.focus({preventScroll:!0}),ce.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||ue.current||(ue.current=!0,ce.current=Y.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{F||L(!1)},onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||Z(!0)},onPointerUp:()=>Z(!1)},E.filter(Y=>!Y.position&&U===0||Y.position===ne).map((Y,be)=>{var B,se;return G.createElement(ZE,{key:Y.id,icons:_,index:be,toast:Y,duration:(B=m?.duration)!=null?B:g,className:m?.className,descriptionClassName:m?.descriptionClassName,invert:n,visibleToasts:x,closeButton:(se=m?.closeButton)!=null?se:l,interacting:F,position:ne,style:m?.style,unstyled:m?.unstyled,classNames:m?.classNames,cancelButtonStyle:m?.cancelButtonStyle,actionButtonStyle:m?.actionButtonStyle,removeToast:K,toasts:E.filter(fe=>fe.position==Y.position),heights:P.filter(fe=>fe.position==Y.position),setHeights:D,expandByDefault:i,gap:w,loadingIcon:$,expanded:k,pauseWhenPageIsHidden:R,cn:M})}))})):null};const eP="group toast group-[.toaster]:text-foreground group-[.toaster]:bg-background group-[.toaster]:border-border group-[.toaster]:shadow-lg ",tP="group-[.toast]:text-muted-foreground",nP="group-[.toast]:text-primary-foreground group-[.toast]:bg-primary ",rP="group-[.toast]:text-muted-foreground group-[.toast]:bg-muted ";function oP(e){return a.jsx(QE,{theme:"system",className:"toaster group",toastOptions:{classNames:{toast:eP,description:tP,actionButton:nP,cancelButton:rP}},...e})}const sP=bj,aP="fixed p-4 top-0 w-full max-h-screen z-[100] sm:right-0 sm:top-auto sm:bottom-0 sm:flex-col md:max-w-[420px] flex flex-col-reverse",Jv=C.forwardRef(({className:e,...n},t)=>a.jsx(a0,{ref:t,className:X(aP,e),...n}));Jv.displayName=a0.displayName;const iP="group relative p-4 pr-6 w-full data-[state=open]:animate-in data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[swipe=end]:animate-out data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[swipe=cancel]:translate-x-0 overflow-hidden pointer-events-auto transition-all border rounded-md shadow-lg flex items-center justify-between space-x-2",lP=us(iP,{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Zv=C.forwardRef(({className:e,variant:n,...t},o)=>a.jsx(i0,{ref:o,className:X(lP({variant:n}),e),...t}));Zv.displayName=i0.displayName;const cP="px-3 h-8 shrink-0 text-sm font-medium bg-transparent hover:bg-secondary focus:ring-1 focus:ring-ring focus:outline-none disabled:opacity-50 disabled:pointer-events-none group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive transition-colors border rounded-md inline-flex items-center justify-center",uP=C.forwardRef(({className:e,...n},t)=>a.jsx(l0,{ref:t,className:X(cP,e),...n}));uP.displayName=l0.displayName;const dP="absolute p-1 right-1 top-1 text-foreground/50 opacity-0 group-hover:opacity-100 hover:text-foreground focus:opacity-100 focus:ring-1 focus:outline-none group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 transition-opacity rounded-md",Qv=C.forwardRef(({className:e,...n},t)=>a.jsx(c0,{ref:t,className:X(dP,e),"toast-close":"",...n,children:a.jsx(od,{className:"h-4 w-4"})}));Qv.displayName=c0.displayName;const ex=C.forwardRef(({className:e,...n},t)=>a.jsx(u0,{ref:t,className:X("text-sm font-semibold [&+div]:text-xs",e),...n}));ex.displayName=u0.displayName;const tx=C.forwardRef(({className:e,...n},t)=>a.jsx(d0,{ref:t,className:X("text-sm opacity-90",e),...n}));tx.displayName=d0.displayName;const fP=1,pP=1e6;let Jc=0;function gP(){return Jc=(Jc+1)%Number.MAX_SAFE_INTEGER,Jc.toString()}const Zc=new Map,Ug=e=>{if(Zc.has(e))return;const n=setTimeout(()=>{Zc.delete(e),Zs({type:"REMOVE_TOAST",toastId:e})},pP);Zc.set(e,n)},hP=(e,n)=>{switch(n.type){case"ADD_TOAST":return{...e,toasts:[n.toast,...e.toasts].slice(0,fP)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===n.toast.id?{...t,...n.toast}:t)};case"DISMISS_TOAST":{const{toastId:t}=n;return t?Ug(t):e.toasts.forEach(o=>{Ug(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===t||t===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(t=>t.id!==n.toastId)}}},Hi=[];let Vi={toasts:[]};function Zs(e){Vi=hP(Vi,e),Hi.forEach(n=>{n(Vi)})}function nx({...e}){const n=gP(),t=i=>Zs({type:"UPDATE_TOAST",toast:{...i,id:n}}),o=()=>Zs({type:"DISMISS_TOAST",toastId:n});return Zs({type:"ADD_TOAST",toast:{...e,id:n,open:!0,onOpenChange:i=>{i||o()}}}),{id:n,dismiss:o,update:t}}function mP(){const[e,n]=C.useState(Vi);return C.useEffect(()=>(Hi.push(n),()=>{const t=Hi.indexOf(n);t>-1&&Hi.splice(t,1)}),[e]),{...e,toast:nx,dismiss:t=>Zs({type:"DISMISS_TOAST",toastId:t})}}function vP(){const{toasts:e}=mP();return a.jsxs(sP,{children:[e.map(function({id:n,title:t,description:o,action:i,...l}){return a.jsxs(Zv,{...l,children:[a.jsxs("div",{className:"grid gap-1",children:[t&&a.jsx(ex,{children:t}),o&&a.jsx(tx,{children:o})]}),i,a.jsx(Qv,{})]},n)}),a.jsx(Jv,{})]})}function xP({className:e,...n}){return a.jsx("nav",{className:X("mx-auto w-full flex justify-center",e),role:"navigation","aria-label":"pagination",...n})}const rx=C.forwardRef(({className:e,...n},t)=>a.jsx("ul",{ref:t,className:X("flex flex-row items-center gap-1",e),...n}));rx.displayName="Pagination.Content";function Qs({className:e,isActive:n,size:t="icon",...o}){return a.jsx("li",{children:a.jsx("a",{className:X(il({variant:n?"outline":"ghost",size:t}),e),"aria-current":n?"page":void 0,...o})})}function bP({className:e,...n}){return a.jsxs(Qs,{className:X("pl-3 gap-1",e),"aria-label":"Go to previous page",size:"default",...n,children:[a.jsx(yj,{className:"w-4 h-4"}),a.jsx("span",{children:"Previous"})]})}function yP({className:e,...n}){return a.jsxs(Qs,{className:X("pr-3 gap-1",e),"aria-label":"Go to next page",size:"default",...n,children:[a.jsx("span",{children:"Next"}),a.jsx(sl,{className:"w-4 h-4"})]})}function wP({className:e,...n}){return a.jsxs("span",{className:X("w-9 h-9 flex items-center justify-center",e),"aria-hidden":!0,...n,children:[a.jsx(f0,{className:"w-4 h-4"}),a.jsx("span",{className:"sr-only",children:"More pages"})]})}function _P(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xg(e){return _P(e)||Array.isArray(e)}function SP(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Rd(e,n){const t=Object.keys(e),o=Object.keys(n);if(t.length!==o.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),l=JSON.stringify(Object.keys(n.breakpoints||{}));return i!==l?!1:t.every(u=>{const d=e[u],p=n[u];return typeof d=="function"?`${d}`==`${p}`:!Xg(d)||!Xg(p)?d===p:Rd(d,p)})}function qg(e){return e.concat().sort((n,t)=>n.name>t.name?1:-1).map(n=>n.options)}function CP(e,n){if(e.length!==n.length)return!1;const t=qg(e),o=qg(n);return t.every((i,l)=>{const u=o[l];return Rd(i,u)})}function $d(e){return typeof e=="number"}function ku(e){return typeof e=="string"}function Ed(e){return typeof e=="boolean"}function Kg(e){return Object.prototype.toString.call(e)==="[object Object]"}function wt(e){return Math.abs(e)}function Pd(e){return Math.sign(e)}function ea(e,n){return wt(e-n)}function jP(e,n){if(e===0||n===0||wt(e)<=wt(n))return 0;const t=ea(wt(e),wt(n));return wt(t/e)}function ua(e){return da(e).map(Number)}function ar(e){return e[Sa(e)]}function Sa(e){return Math.max(0,e.length-1)}function Ad(e,n){return n===Sa(e)}function Yg(e,n=0){return Array.from(Array(e),(t,o)=>n+o)}function da(e){return Object.keys(e)}function ox(e,n){return[e,n].reduce((t,o)=>(da(o).forEach(i=>{const l=t[i],u=o[i],d=Kg(l)&&Kg(u);t[i]=d?ox(l,u):u}),t),{})}function sx(e,n){return typeof n.MouseEvent<"u"&&e instanceof n.MouseEvent}function NP(e,n){const t={start:o,center:i,end:l};function o(){return 0}function i(p){return l(p)/2}function l(p){return n-p}function u(p,f){return ku(e)?t[e](p):e(n,p,f)}return{measure:u}}function fa(){let e=[];function n(i,l,u,d={passive:!0}){let p;if("addEventListener"in i)i.addEventListener(l,u,d),p=()=>i.removeEventListener(l,u,d);else{const f=i;f.addListener(u),p=()=>f.removeListener(u)}return e.push(p),o}function t(){e=e.filter(i=>i())}const o={add:n,clear:t};return o}function RP(e,n,t,o){const i=fa(),l=1e3/60;let u=null,d=0,p=0;function f(){i.add(e,"visibilitychange",()=>{e.hidden&&S()})}function g(){m(),i.clear()}function v($){if(!p)return;u||(u=$);const _=$-u;for(u=$,d+=_;d>=l;)t(),d-=l;const y=wt(d/l);o(y),p&&n.requestAnimationFrame(v)}function x(){p||(p=n.requestAnimationFrame(v))}function m(){n.cancelAnimationFrame(p),u=null,d=0,p=0}function S(){u=null,d=0}return{init:f,destroy:g,start:x,stop:m,update:t,render:o}}function $P(e,n){const t=e==="y"?"y":"x",o=e==="y"?"x":"y",i=d(),l=p();function u(g){const{width:v,height:x}=g;return t==="x"?v:x}function d(){return t==="y"?"top":n==="rtl"?"right":"left"}function p(){return t==="y"?"bottom":n==="rtl"?"left":"right"}return{scroll:t,cross:o,startEdge:i,endEdge:l,measureSize:u}}function Po(e=0,n=0){const t=wt(e-n);function o(f){return fn}function l(f){return o(f)||i(f)}function u(f){return l(f)?o(f)?e:n:f}function d(f){return t?f-t*Math.ceil((f-n)/t):f}return{length:t,max:n,min:e,constrain:u,reachedAny:l,reachedMax:i,reachedMin:o,removeOffset:d}}function ax(e,n,t){const{constrain:o}=Po(0,e),i=e+1;let l=u(n);function u(x){return t?wt((i+x)%i):o(x)}function d(){return l}function p(x){return l=u(x),v}function f(x){return g().set(d()+x)}function g(){return ax(e,d(),t)}const v={get:d,set:p,add:f,clone:g};return v}function EP(e){const n=e==="rtl"?-1:1;function t(i){return i*n}return{apply:t}}function PP(e,n,t,o,i,l,u,d,p,f,g,v,x,m,S,w,$,_,y,R){const{cross:M}=e,E=["INPUT","SELECT","TEXTAREA"],I={passive:!1},H=fa(),P=fa(),D=Po(50,225).constrain(S.measure(20)),k={mouse:300,touch:400},L={mouse:500,touch:600},F=w?43:25;let Z=!1,V=0,J=0,de=!1,ge=!1,ce=!1,ue=!1;function K(oe){if(!R)return;function he(Ce){(Ed(R)||R(oe,Ce))&&Y(Ce)}const xe=t;H.add(xe,"dragstart",Ce=>Ce.preventDefault(),I).add(xe,"touchmove",()=>{},I).add(xe,"touchend",()=>{}).add(xe,"touchstart",he).add(xe,"mousedown",he).add(xe,"touchcancel",B).add(xe,"contextmenu",B).add(xe,"click",se,!0)}function ne(){H.clear(),P.clear()}function U(){const oe=ue?o:t;P.add(oe,"touchmove",be,I).add(oe,"touchend",B).add(oe,"mousemove",be,I).add(oe,"mouseup",B)}function q(oe){const he=oe.nodeName||"";return E.includes(he)}function ie(){return(w?L:k)[ue?"mouse":"touch"]}function pe(oe,he){const xe=x.add(Pd(oe)*-1),Ce=v.byDistance(oe,!w).distance;return w||wt(oe)=2,de=!0,u.pointerDown(oe),g.useFriction(0).useDuration(0),l.set(d),U(),V=u.readPoint(oe),J=u.readPoint(oe,M),m.emit("pointerDown")))}function be(oe){const he=u.readPoint(oe),xe=u.readPoint(oe,M),Ce=ea(he,V),nt=ea(xe,J);if(!ge&&!ue&&(!oe.cancelable||(ge=Ce>nt,!ge)))return B(oe);const Ze=u.pointerMove(oe);Ce>$&&(ce=!0),g.useFriction(.3).useDuration(1),p.start(),l.add(n.apply(Ze)),oe.preventDefault()}function B(oe){const xe=v.byDistance(0,!1).index!==x.get(),Ce=u.pointerUp(oe)*ie(),nt=pe(n.apply(Ce),xe),Ze=jP(Ce,nt),Qe=F-10*Ze,qe=y+Ze/50;ge=!1,de=!1,P.clear(),g.useDuration(Qe).useFriction(qe),f.distance(nt,!w),ue=!1,m.emit("pointerUp")}function se(oe){ce&&(oe.stopPropagation(),oe.preventDefault())}function fe(){return de}return{init:K,pointerDown:fe,destroy:ne}}function AP(e,n){let o,i;function l(v){return v.timeStamp}function u(v,x){const S=`client${(x||e.scroll)==="x"?"X":"Y"}`;return(sx(v,n)?v:v.touches[0])[S]}function d(v){return o=v,i=v,u(v)}function p(v){const x=u(v)-u(i),m=l(v)-l(o)>170;return i=v,m&&(o=v),x}function f(v){if(!o||!i)return 0;const x=u(i)-u(o),m=l(v)-l(o),S=l(v)-l(i)>170,w=x/m;return m&&!S&&wt(w)>.1?w:0}return{pointerDown:d,pointerMove:p,pointerUp:f,readPoint:u}}function MP(){function e(t){const{offsetTop:o,offsetLeft:i,offsetWidth:l,offsetHeight:u}=t;return{top:o,right:i+l,bottom:o+u,left:i,width:l,height:u}}return{measure:e}}function DP(e){function n(o){return e*(o/100)}return{measure:n}}function TP(e,n,t,o,i,l,u){let d,p,f=[],g=!1;function v(w){return i.measureSize(u.measure(w))}function x(w){if(!l)return;p=v(e),f=o.map(v);function $(y){for(const R of y){const M=R.target===e,E=o.indexOf(R.target),I=M?p:f[E],H=v(M?e:o[E]);if(wt(H-I)>=.5){t.requestAnimationFrame(()=>{w.reInit(),n.emit("resize")});break}}}d=new ResizeObserver(y=>{g||(Ed(l)||l(w,y))&&$(y)}),[e].concat(o).forEach(y=>d.observe(y))}function m(){d&&d.disconnect(),g=!0}return{init:x,destroy:m}}function kP(e,n,t,o,i){let l=0,u=0,d=o,p=i,f=e.get(),g=0;function v(){const E=t.get()-e.get(),I=!d;let H=0;return I?(l=0,e.set(t),H=E):(l+=E/d,l*=p,f+=l,e.add(l),H=f-g),u=Pd(H),g=f,M}function x(){const E=t.get()-n.get();return wt(E)<.001}function m(){return d}function S(){return u}function w(){return l}function $(){return y(o)}function _(){return R(i)}function y(E){return d=E,M}function R(E){return p=E,M}const M={direction:S,duration:m,velocity:w,seek:v,settled:x,useBaseFriction:_,useBaseDuration:$,useFriction:R,useDuration:y};return M}function IP(e,n,t,o,i){const l=i.measure(10),u=i.measure(50),d=Po(.1,.99);let p=!1;function f(){return!(p||!e.reachedAny(t.get())||!e.reachedAny(n.get()))}function g(m){if(!f())return;const S=e.reachedMin(n.get())?"min":"max",w=wt(e[S]-n.get()),$=t.get()-n.get(),_=d.constrain(w/u);t.subtract($*_),!m&&wt($){const{min:$,max:_}=l,y=l.constrain(S),R=!w,M=Ad(t,w);return R?_:M||f($,y)?$:f(_,y)?_:y}).map(S=>parseFloat(S.toFixed(3)))}function x(){if(n<=e+i)return[l.max];if(o==="keepSnaps")return u;const{min:S,max:w}=d;return u.slice(S,w)}return{snapsContained:p,scrollContainLimit:d}}function FP(e,n,t){const o=n[0],i=t?o-e:ar(n);return{limit:Po(i,o)}}function OP(e,n,t,o){const l=n.min+.1,u=n.max+.1,{reachedMin:d,reachedMax:p}=Po(l,u);function f(x){return x===1?p(t.get()):x===-1?d(t.get()):!1}function g(x){if(!f(x))return;const m=e*(x*-1);o.forEach(S=>S.add(m))}return{loop:g}}function zP(e){const{max:n,length:t}=e;function o(l){const u=l-n;return t?u/-t:0}return{get:o}}function BP(e,n,t,o,i){const{startEdge:l,endEdge:u}=e,{groupSlides:d}=i,p=v().map(n.measure),f=x(),g=m();function v(){return d(o).map(w=>ar(w)[u]-w[0][l]).map(wt)}function x(){return o.map(w=>t[l]-w[l]).map(w=>-wt(w))}function m(){return d(f).map(w=>w[0]).map((w,$)=>w+p[$])}return{snaps:f,snapsAligned:g}}function HP(e,n,t,o,i,l){const{groupSlides:u}=i,{min:d,max:p}=o,f=g();function g(){const x=u(l),m=!e||n==="keepSnaps";return t.length===1?[l]:m?x:x.slice(d,p).map((S,w,$)=>{const _=!w,y=Ad($,w);if(_){const R=ar($[0])+1;return Yg(R)}if(y){const R=Sa(l)-ar($)[0]+1;return Yg(R,ar($)[0])}return S})}return{slideRegistry:f}}function VP(e,n,t,o,i){const{reachedAny:l,removeOffset:u,constrain:d}=o;function p(S){return S.concat().sort((w,$)=>wt(w)-wt($))[0]}function f(S){const w=e?u(S):d(S),$=n.map(y=>y-w).map(y=>g(y,0)).map((y,R)=>({diff:y,index:R})).sort((y,R)=>wt(y.diff)-wt(R.diff)),{index:_}=$[0];return{index:_,distance:w}}function g(S,w){const $=[S,S+t,S-t];if(!e)return $[0];if(!w)return p($);const _=$.filter(y=>Pd(y)===w);return _.length?p(_):ar($)-t}function v(S,w){const $=n[S]-i.get(),_=g($,w);return{index:S,distance:_}}function x(S,w){const $=i.get()+S,{index:_,distance:y}=f($),R=!e&&l($);if(!w||R)return{index:_,distance:S};const M=n[_]-y,E=S+g(M,0);return{index:_,distance:E}}return{byDistance:x,byIndex:v,shortcut:g}}function GP(e,n,t,o,i,l,u){function d(v){const x=v.distance,m=v.index!==n.get();l.add(x),x&&(o.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(t.set(n.get()),n.set(v.index),u.emit("select"))}function p(v,x){const m=i.byDistance(v,x);d(m)}function f(v,x){const m=n.clone().set(v),S=i.byIndex(m.get(),x);d(S)}return{distance:p,index:f}}function WP(e,n,t,o,i,l){let u=0;function d(){l.add(document,"keydown",p,!1),n.forEach(f)}function p(v){v.code==="Tab"&&(u=new Date().getTime())}function f(v){const x=()=>{if(new Date().getTime()-u>10)return;e.scrollLeft=0;const w=n.indexOf(v),$=t.findIndex(_=>_.includes(w));$d($)&&(i.useDuration(0),o.index($,0))};l.add(v,"focus",x,{passive:!0,capture:!0})}return{init:d}}function Gi(e){let n=e;function t(){return n}function o(p){n=u(p)}function i(p){n+=u(p)}function l(p){n-=u(p)}function u(p){return $d(p)?p:p.get()}return{get:t,set:o,add:i,subtract:l}}function ix(e,n,t){const o=e.scroll==="x"?u:d,i=t.style;let l=!1;function u(x){return`translate3d(${x}px,0px,0px)`}function d(x){return`translate3d(0px,${x}px,0px)`}function p(x){l||(i.transform=o(n.apply(x)))}function f(x){l=!x}function g(){l||(i.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:g,to:p,toggleActive:f}}function UP(e,n,t,o,i,l,u,d,p,f){const v=ua(l),x=ua(l).reverse(),m=y().concat(R());function S(P,D){return P.reduce((k,L)=>k-l[L],D)}function w(P,D){return P.reduce((k,L)=>S(k,D)>0?k.concat([L]):k,[])}function $(P){return u.map((D,k)=>({start:D-i[k]+.5+P,end:D+t-.5+P}))}function _(P,D,k){const L=$(D);return P.map(F=>{const Z=k?0:-o,V=k?o:0,J=k?"end":"start",de=L[F][J];return{index:F,loopPoint:de,slideLocation:Gi(-1),translate:ix(e,n,f[F]),target:()=>p.get()>de?Z:V}})}function y(){const P=d[0],D=w(x,P);return _(D,o,!1)}function R(){const P=t-d[0]-1,D=w(v,P);return _(D,-o,!0)}function M(){return m.every(({index:P})=>{const D=v.filter(k=>k!==P);return S(D,t)<=.1})}function E(){m.forEach(P=>{const{target:D,translate:k,slideLocation:L}=P,F=D();F!==L.get()&&(k.to(F),L.set(F))})}function I(){m.forEach(P=>P.translate.clear())}return{canLoop:M,clear:I,loop:E,loopPoints:m}}function XP(e,n,t){let o,i=!1;function l(p){if(!t)return;function f(g){for(const v of g)if(v.type==="childList"){p.reInit(),n.emit("slidesChanged");break}}o=new MutationObserver(g=>{i||(Ed(t)||t(p,g))&&f(g)}),o.observe(e,{childList:!0})}function u(){o&&o.disconnect(),i=!0}return{init:l,destroy:u}}function qP(e,n,t,o){const i={};let l=null,u=null,d,p=!1;function f(){d=new IntersectionObserver(S=>{p||(S.forEach(w=>{const $=n.indexOf(w.target);i[$]=w}),l=null,u=null,t.emit("slidesInView"))},{root:e.parentElement,threshold:o}),n.forEach(S=>d.observe(S))}function g(){d&&d.disconnect(),p=!0}function v(S){return da(i).reduce((w,$)=>{const _=parseInt($),{isIntersecting:y}=i[_];return(S&&y||!S&&!y)&&w.push(_),w},[])}function x(S=!0){if(S&&l)return l;if(!S&&u)return u;const w=v(S);return S&&(l=w),S||(u=w),w}return{init:f,destroy:g,get:x}}function KP(e,n,t,o,i,l){const{measureSize:u,startEdge:d,endEdge:p}=e,f=t[0]&&i,g=S(),v=w(),x=t.map(u),m=$();function S(){if(!f)return 0;const y=t[0];return wt(n[d]-y[d])}function w(){if(!f)return 0;const y=l.getComputedStyle(ar(o));return parseFloat(y.getPropertyValue(`margin-${p}`))}function $(){return t.map((y,R,M)=>{const E=!R,I=Ad(M,R);return E?x[R]+g:I?x[R]+v:M[R+1][d]-y[d]}).map(wt)}return{slideSizes:x,slideSizesWithGaps:m,startGap:g,endGap:v}}function YP(e,n,t,o,i,l,u,d,p,f){const{startEdge:g,endEdge:v}=e,x=$d(o);function m(_,y){return ua(_).filter(R=>R%y===0).map(R=>_.slice(R,R+y))}function S(_){return _.length?ua(_).reduce((y,R)=>{const M=ar(y)||0,E=M===0,I=R===Sa(_),H=l[g]-u[M][g],P=l[g]-u[R][v],D=!i&&E?n.apply(d):0,k=!i&&I?n.apply(p):0;return wt(P-k-(H+D))>t+f&&y.push(R),I&&y.push(_.length),y},[]).map((y,R,M)=>{const E=Math.max(M[R-1]||0);return _.slice(E,y)}):[]}function w(_){return x?m(_,o):S(_)}return{groupSlides:w}}function JP(e,n,t,o,i,l,u){const{align:d,axis:p,direction:f,startIndex:g,loop:v,duration:x,dragFree:m,dragThreshold:S,inViewThreshold:w,slidesToScroll:$,skipSnaps:_,containScroll:y,watchResize:R,watchSlides:M,watchDrag:E}=l,I=2,H=MP(),P=H.measure(n),D=t.map(H.measure),k=EP(f),L=$P(p,f),F=L.measureSize(P),Z=DP(F),V=NP(d,F),J=!v&&!!y,de=v||!!y,{slideSizes:ge,slideSizesWithGaps:ce,startGap:ue,endGap:K}=KP(L,P,D,t,de,i),ne=YP(L,k,F,$,v,P,D,ue,K,I),{snaps:U,snapsAligned:q}=BP(L,V,P,D,ne),ie=-ar(U)+ar(ce),{snapsContained:pe,scrollContainLimit:Y}=LP(F,ie,q,y,I),be=J?pe:q,{limit:B}=FP(ie,be,v),se=ax(Sa(be),g,v),fe=se.clone(),le=ua(t),oe=({dragHandler:Ke,scrollBody:ee,scrollBounds:me,options:{loop:we}})=>{we||me.constrain(Ke.pointerDown()),ee.seek()},he=({scrollBody:Ke,translate:ee,location:me,offsetLocation:we,scrollLooper:De,slideLooper:ve,dragHandler:je,animation:Ne,eventHandler:Ie,options:{loop:et}},st)=>{const Rt=Ke.velocity(),At=Ke.settled();At&&!je.pointerDown()&&(Ne.stop(),Ie.emit("settle")),At||Ie.emit("scroll"),we.set(me.get()-Rt+Rt*st),et&&(De.loop(Ke.direction()),ve.loop()),ee.to(we.get())},xe=RP(o,i,()=>oe(Ct),Ke=>he(Ct,Ke)),Ce=.68,nt=be[se.get()],Ze=Gi(nt),Qe=Gi(nt),qe=Gi(nt),rt=kP(Ze,Qe,qe,x,Ce),ze=VP(v,be,ie,B,qe),ot=GP(xe,se,fe,rt,ze,qe,u),Ge=zP(B),Ft=fa(),St=qP(n,t,u,w),{slideRegistry:Ht}=HP(J,y,be,Y,ne,le),Vt=WP(e,t,Ht,ot,rt,Ft),Ct={ownerDocument:o,ownerWindow:i,eventHandler:u,containerRect:P,slideRects:D,animation:xe,axis:L,direction:k,dragHandler:PP(L,k,e,o,i,qe,AP(L,i),Ze,xe,ot,rt,ze,se,u,Z,m,S,_,Ce,E),eventStore:Ft,percentOfView:Z,index:se,indexPrevious:fe,limit:B,location:Ze,offsetLocation:Qe,options:l,resizeHandler:TP(n,u,i,t,L,R,H),scrollBody:rt,scrollBounds:IP(B,Qe,qe,rt,Z),scrollLooper:OP(ie,B,Qe,[Ze,Qe,qe]),scrollProgress:Ge,scrollSnapList:be.map(Ge.get),scrollSnaps:be,scrollTarget:ze,scrollTo:ot,slideLooper:UP(L,k,F,ie,ge,ce,U,be,Qe,t),slideFocus:Vt,slidesHandler:XP(n,u,M),slidesInView:St,slideIndexes:le,slideRegistry:Ht,slidesToScroll:ne,target:qe,translate:ix(L,k,n)};return Ct}function ZP(){const e={};let n;function t(p){n=p}function o(p){return e[p]||[]}function i(p){return o(p).forEach(f=>f(n,p)),d}function l(p,f){return e[p]=o(p).concat([f]),d}function u(p,f){return e[p]=o(p).filter(g=>g!==f),d}const d={init:t,emit:i,off:u,on:l};return d}const QP={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function e3(e){function n(l,u){return ox(l,u||{})}function t(l){const u=l.breakpoints||{},d=da(u).filter(p=>e.matchMedia(p).matches).map(p=>u[p]).reduce((p,f)=>n(p,f),{});return n(l,d)}function o(l){return l.map(u=>da(u.breakpoints||{})).reduce((u,d)=>u.concat(d),[]).map(e.matchMedia)}return{mergeOptions:n,optionsAtMedia:t,optionsMediaQueries:o}}function t3(e){let n=[];function t(l,u){return n=u.filter(({options:d})=>e.optionsAtMedia(d).active!==!1),n.forEach(d=>d.init(l,e)),u.reduce((d,p)=>Object.assign(d,{[p.name]:p}),{})}function o(){n=n.filter(l=>l.destroy())}return{init:t,destroy:o}}function Qi(e,n,t){const o=e.ownerDocument,i=o.defaultView,l=e3(i),u=t3(l),d=fa(),p=ZP(),{mergeOptions:f,optionsAtMedia:g,optionsMediaQueries:v}=l,{on:x,off:m,emit:S}=p,w=L;let $=!1,_,y=f(QP,Qi.globalOptions),R=f(y),M=[],E,I,H;function P(){const{container:le,slides:oe}=R;I=(ku(le)?e.querySelector(le):le)||e.children[0];const xe=ku(oe)?I.querySelectorAll(oe):oe;H=[].slice.call(xe||I.children)}function D(le){const oe=JP(e,I,H,o,i,le,p);if(le.loop&&!oe.slideLooper.canLoop()){const he=Object.assign({},le,{loop:!1});return D(he)}return oe}function k(le,oe){$||(y=f(y,le),R=g(y),M=oe||M,P(),_=D(R),v([y,...M.map(({options:he})=>he)]).forEach(he=>d.add(he,"change",L)),R.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(),_.eventHandler.init(fe),_.resizeHandler.init(fe),_.slidesHandler.init(fe),_.options.loop&&_.slideLooper.loop(),I.offsetParent&&H.length&&_.dragHandler.init(fe),E=u.init(fe,M)))}function L(le,oe){const he=ne();F(),k(f({startIndex:he},le),oe),p.emit("reInit")}function F(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),u.destroy(),d.clear()}function Z(){$||($=!0,d.clear(),F(),p.emit("destroy"))}function V(le,oe,he){!R.active||$||(_.scrollBody.useBaseFriction().useDuration(oe===!0?0:R.duration),_.scrollTo.index(le,he||0))}function J(le){const oe=_.index.add(1).get();V(oe,le,-1)}function de(le){const oe=_.index.add(-1).get();V(oe,le,1)}function ge(){return _.index.add(1).get()!==ne()}function ce(){return _.index.add(-1).get()!==ne()}function ue(){return _.scrollSnapList}function K(){return _.scrollProgress.get(_.location.get())}function ne(){return _.index.get()}function U(){return _.indexPrevious.get()}function q(){return _.slidesInView.get()}function ie(){return _.slidesInView.get(!1)}function pe(){return E}function Y(){return _}function be(){return e}function B(){return I}function se(){return H}const fe={canScrollNext:ge,canScrollPrev:ce,containerNode:B,internalEngine:Y,destroy:Z,off:m,on:x,emit:S,plugins:pe,previousScrollSnap:U,reInit:w,rootNode:be,scrollNext:J,scrollPrev:de,scrollProgress:K,scrollSnapList:ue,scrollTo:V,selectedScrollSnap:ne,slideNodes:se,slidesInView:q,slidesNotInView:ie};return k(n,t),setTimeout(()=>p.emit("init"),0),fe}Qi.globalOptions=void 0;function Md(e={},n=[]){const t=C.useRef(e),o=C.useRef(n),[i,l]=C.useState(),[u,d]=C.useState(),p=C.useCallback(()=>{i&&i.reInit(t.current,o.current)},[i]);return C.useEffect(()=>{if(SP()&&u){Qi.globalOptions=Md.globalOptions;const f=Qi(u,t.current,o.current);return l(f),()=>f.destroy()}else l(void 0)},[u,l]),C.useEffect(()=>{Rd(t.current,e)||(t.current=e,p())},[e,p]),C.useEffect(()=>{CP(o.current,n)||(o.current=n,p())},[n,p]),[d,i]}Md.globalOptions=void 0;const lx=C.createContext(null);function wl(){const e=C.useContext(lx);if(!e)throw new Error("useCarousel must be used within a ");return e}const cx=C.forwardRef(({orientation:e="horizontal",opts:n,setApi:t,plugins:o,className:i,children:l,...u},d)=>{const[p,f]=Md({...n,axis:e==="horizontal"?"x":"y"},o),[g,v]=C.useState(!1),[x,m]=C.useState(!1),S=C.useCallback(y=>{y&&(v(y.canScrollPrev()),m(y.canScrollNext()))},[]),w=C.useCallback(()=>f?.scrollPrev(),[f]),$=C.useCallback(()=>f?.scrollNext(),[f]),_=C.useCallback(y=>{y.key==="ArrowLeft"?(y.preventDefault(),w()):y.key==="ArrowRight"&&(y.preventDefault(),$())},[w,$]);return C.useEffect(()=>{!f||!t||t(f)},[f,t]),C.useEffect(()=>{if(f)return S(f),f.on("reInit",S),f.on("select",S),()=>{f.off("select",S)}},[f,S]),a.jsx(lx.Provider,{value:{carouselRef:p,api:f,opts:n,orientation:e||(n?.axis==="y"?"vertical":"horizontal"),scrollPrev:w,scrollNext:$,canScrollPrev:g,canScrollNext:x},children:a.jsx("div",{ref:d,onKeyDownCapture:_,className:X("relative",i),role:"region","aria-roledescription":"carousel",...u,children:l})})});cx.displayName="Carousel";const ux=C.forwardRef(({className:e,...n},t)=>{const{carouselRef:o,orientation:i}=wl();return a.jsx("div",{ref:o,className:"overflow-hidden",children:a.jsx("div",{ref:t,className:X("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...n})})});ux.displayName="Carousel.Content";const dx=C.forwardRef(({className:e,...n},t)=>{const{orientation:o}=wl();return a.jsx("div",{ref:t,className:X("shrink-0 grow-0 basis-full min-w-0",o==="horizontal"?"pl-4":"pt-4",e),role:"group","aria-roledescription":"slide",...n})});dx.displayName="Carousel.Item";const fx=C.forwardRef(({className:e,variant:n="outline",size:t="icon",...o},i)=>{const{orientation:l,scrollPrev:u,canScrollPrev:d}=wl();return a.jsxs(ft,{ref:i,variant:n,size:t,className:X("absolute w-8 h-8 rounded-full",l==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!d,onClick:u,...o,children:[a.jsx(wj,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Previous slide"})]})});fx.displayName="Carousel.Prev";const px=C.forwardRef(({className:e,variant:n="outline",size:t="icon",...o},i)=>{const{orientation:l,scrollNext:u,canScrollNext:d}=wl();return a.jsxs(ft,{ref:i,variant:n,size:t,className:X("absolute w-8 h-8 rounded-full",l==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!d,onClick:u,...o,children:[a.jsx(_j,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Next slide"})]})});px.displayName="Carousel.Next";var gx=G.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),Dd=()=>G.useContext(gx);function n3(e,{insertAt:n}={}){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}n3(`[vaul-drawer]{touch-action:none;transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top],.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left],.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top],[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left],[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height, 0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]:after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]:after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]:after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]:after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} -`);var r3=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Iu(...e){return(...n)=>{for(let t of e)typeof t=="function"&&t(...n)}}function o3(){return Td(/^Mac/)}function s3(){return Td(/^iPhone/)}function a3(){return Td(/^iPad/)||o3()&&navigator.maxTouchPoints>1}function hx(){return s3()||a3()}function Td(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Qc=typeof document<"u"&&window.visualViewport;function Jg(e){let n=window.getComputedStyle(e);return/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY)}function mx(e){for(Jg(e)&&(e=e.parentElement);e&&!Jg(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var i3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),ji=0,eu;function l3(e={}){let{isDisabled:n}=e;r3(()=>{if(!n)return ji++,ji===1&&(hx()?eu=u3():eu=c3()),()=>{ji--,ji===0&&eu()}},[n])}function c3(){return Iu(vx(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function u3(){let e,n=0,t=v=>{e=mx(v.target),!(e===document.documentElement&&e===document.body)&&(n=v.changedTouches[0].pageY)},o=v=>{if(!e||e===document.documentElement||e===document.body){v.preventDefault();return}let x=v.changedTouches[0].pageY,m=e.scrollTop,S=e.scrollHeight-e.clientHeight;S!==0&&((m<=0&&x>n||m>=S&&x{let x=v.target;Lu(x)&&x!==document.activeElement&&(v.preventDefault(),x.style.transform="translateY(-2000px)",x.focus(),requestAnimationFrame(()=>{x.style.transform=""}))},l=v=>{let x=v.target;Lu(x)&&(x.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{x.style.transform="",Qc&&(Qc.height{Zg(x)}):Qc.addEventListener("resize",()=>Zg(x),{once:!0}))}))},u=()=>{window.scrollTo(0,0)},d=window.pageXOffset,p=window.pageYOffset,f=Iu(vx(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let g=Iu(Fs(document,"touchstart",t,{passive:!1,capture:!0}),Fs(document,"touchmove",o,{passive:!1,capture:!0}),Fs(document,"touchend",i,{passive:!1,capture:!0}),Fs(document,"focus",l,!0),Fs(window,"scroll",u));return()=>{f(),g(),window.scrollTo(d,p)}}function vx(e,n,t){let o=e.style[n];return e.style[n]=t,()=>{e.style[n]=o}}function Fs(e,n,t,o){return e.addEventListener(n,t,o),()=>{e.removeEventListener(n,t,o)}}function Zg(e){let n=document.scrollingElement||document.documentElement;for(;e&&e!==n;){let t=mx(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let o=t.getBoundingClientRect().top,i=e.getBoundingClientRect().top,l=e.getBoundingClientRect().bottom,u=t.getBoundingClientRect().bottom;l>u&&(t.scrollTop+=i-o)}e=t.parentElement}}function Lu(e){return e instanceof HTMLInputElement&&!i3.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function d3(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function f3(...e){return n=>e.forEach(t=>d3(t,n))}function xx(...e){return C.useCallback(f3(...e),e)}var Yr=null;function p3({isOpen:e,modal:n,nested:t,hasBeenOpened:o,preventScrollRestoration:i}){let[l,u]=G.useState(typeof window<"u"?window.location.href:""),d=G.useRef(0),p=G.useCallback(()=>{if(Yr===null&&e){Yr={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:g,innerHeight:v}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-d.current}px`,document.body.style.left=`${-g}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let x=v-window.innerHeight;x&&d.current>=v&&(document.body.style.top=`${-(d.current+x)}px`)}),300)}},[e]),f=G.useCallback(()=>{if(Yr!==null){let g=-parseInt(document.body.style.top,10),v=-parseInt(document.body.style.left,10);document.body.style.position=Yr.position,document.body.style.top=Yr.top,document.body.style.left=Yr.left,document.body.style.height=Yr.height,document.body.style.right="unset",requestAnimationFrame(()=>{if(i&&l!==window.location.href){u(window.location.href);return}window.scrollTo(v,g)}),Yr=null}},[l]);return G.useEffect(()=>{function g(){d.current=window.scrollY}return g(),window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}},[]),G.useEffect(()=>{t||!o||(e?(p(),n||setTimeout(()=>{f()},500)):f())},[e,o,l,n,t,p,f]),{restorePositionSetting:f}}var bx=new WeakMap;function xt(e,n,t=!1){if(!e||!(e instanceof HTMLElement)||!n)return;let o={};Object.entries(n).forEach(([i,l])=>{if(i.startsWith("--")){e.style.setProperty(i,l);return}o[i]=e.style[i],e.style[i]=l}),!t&&bx.set(e,o)}function Ni(e,n){if(!e||!(e instanceof HTMLElement))return;let t=bx.get(e);t&&(n?e.style[n]=t[n]:Object.entries(t).forEach(([o,i])=>{e.style[o]=i}))}var Dt=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Ri(e,n){let t=window.getComputedStyle(e),o=t.transform||t.webkitTransform||t.mozTransform,i=o.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(", ")[Dt(n)?13:12]):(i=o.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(", ")[Dt(n)?5:4]):null)}function g3(e){return 8*(Math.log(e+1)-2)}var dt={DURATION:.5,EASE:[.32,.72,0,1]},yx=.4;function wx(e){let n=G.useRef(e);return G.useEffect(()=>{n.current=e}),G.useMemo(()=>(...t)=>{var o;return(o=n.current)==null?void 0:o.call(n,...t)},[])}function h3({defaultProp:e,onChange:n}){let t=G.useState(e),[o]=t,i=G.useRef(o),l=wx(n);return G.useEffect(()=>{i.current!==o&&(l(o),i.current=o)},[o,i,l]),t}function m3({prop:e,defaultProp:n,onChange:t=()=>{}}){let[o,i]=h3({defaultProp:n,onChange:t}),l=e!==void 0,u=l?e:o,d=wx(t),p=G.useCallback(f=>{if(l){let g=typeof f=="function"?f(e):f;g!==e&&d(g)}else i(f)},[l,e,i,d]);return[u,p]}function v3({activeSnapPointProp:e,setActiveSnapPointProp:n,snapPoints:t,drawerRef:o,overlayRef:i,fadeFromIndex:l,onSnapPointChange:u,direction:d="bottom"}){let[p,f]=m3({prop:e,defaultProp:t?.[0],onChange:n}),g=G.useMemo(()=>p===t?.[t.length-1]||null,[t,p]),v=t&&t.length>0&&(l||l===0)&&!Number.isNaN(l)&&t[l]===p||!t,x=G.useMemo(()=>t?.findIndex(R=>R===p),[t,p]),m=G.useMemo(()=>{var R;return(R=t?.map(M=>{let E=typeof window<"u",I=typeof M=="string",H=0;if(I&&(H=parseInt(M,10)),Dt(d)){let D=I?H:E?M*window.innerHeight:0;return E?d==="bottom"?window.innerHeight-D:-window.innerHeight+D:D}let P=I?H:E?M*window.innerWidth:0;return E?d==="right"?window.innerWidth-P:-window.innerWidth+P:P}))!=null?R:[]},[t]),S=G.useMemo(()=>x!==null?m?.[x]:null,[m,x]),w=G.useCallback(R=>{var M;let E=(M=m?.findIndex(I=>I===R))!=null?M:null;u(E),xt(o.current,{transition:`transform ${dt.DURATION}s cubic-bezier(${dt.EASE.join(",")})`,transform:Dt(d)?`translate3d(0, ${R}px, 0)`:`translate3d(${R}px, 0, 0)`}),m&&E!==m.length-1&&E!==l?xt(i.current,{transition:`opacity ${dt.DURATION}s cubic-bezier(${dt.EASE.join(",")})`,opacity:"0"}):xt(i.current,{transition:`opacity ${dt.DURATION}s cubic-bezier(${dt.EASE.join(",")})`,opacity:"1"}),f(E!==null?t?.[E]:null)},[o.current,t,m,l,i,f]);G.useEffect(()=>{var R;if(e){let M=(R=t?.findIndex(E=>E===e))!=null?R:-1;m&&M!==-1&&typeof m[M]=="number"&&w(m[M])}},[e,t,m,w]);function $({draggedDistance:R,closeDrawer:M,velocity:E,dismissible:I}){if(l===void 0)return;let H=d==="bottom"||d==="right"?(S??0)-R:(S??0)+R,P=x===l-1,D=x===0,k=R>0;if(P&&xt(i.current,{transition:`opacity ${dt.DURATION}s cubic-bezier(${dt.EASE.join(",")})`}),E>2&&!k){I?M():w(m[0]);return}if(E>2&&k&&m&&t){w(m[t.length-1]);return}let L=m?.reduce((Z,V)=>typeof Z!="number"||typeof V!="number"?Z:Math.abs(V-H)yx&&Math.abs(R)0&&g){w(m[t.length-1]);return}if(D&&Z<0&&I&&M(),x===null)return;w(m[x+Z]);return}w(L)}function _({draggedDistance:R}){if(S===null)return;let M=d==="bottom"||d==="right"?S-R:S+R;(d==="bottom"||d==="right")&&Mm[m.length-1]||xt(o.current,{transform:Dt(d)?`translate3d(0, ${M}px, 0)`:`translate3d(${M}px, 0, 0)`})}function y(R,M){if(!t||typeof x!="number"||!m||l===void 0)return null;let E=x===l-1;if(x>=l&&M)return 0;if(E&&!M)return 1;if(!v&&!E)return null;let I=E?x+1:x-1,H=E?m[I]-m[I-1]:m[I+1]-m[I],P=R/Math.abs(H);return E?1-P:P}return{isLastSnapPoint:g,activeSnapPoint:p,shouldFade:v,getPercentageDragged:y,setActiveSnapPoint:f,activeSnapPointIndex:x,onRelease:$,onDrag:_,snapPointsOffset:m}}var x3=.25,b3=100,Qg=8,_o=16,eh=26,th="vaul-dragging";function _x({open:e,onOpenChange:n,children:t,shouldScaleBackground:o,onDrag:i,onRelease:l,snapPoints:u,nested:d=!1,closeThreshold:p=x3,scrollLockTimeout:f=b3,dismissible:g=!0,fadeFromIndex:v=u&&u.length-1,activeSnapPoint:x,setActiveSnapPoint:m,fixed:S,modal:w=!0,onClose:$,direction:_="bottom",preventScrollRestoration:y=!0}){var R;let[M=!1,E]=G.useState(!1),[I,H]=G.useState(!1),[P,D]=G.useState(!1),[k,L]=G.useState(!1),[F,Z]=G.useState(!1),[V,J]=G.useState(!1),de=G.useRef(null),ge=G.useRef(null),ce=G.useRef(null),ue=G.useRef(null),K=G.useRef(null),ne=G.useRef(!1),U=G.useRef(null),q=G.useRef(0),ie=G.useRef(!1),pe=G.useRef(0),Y=G.useRef(null),be=G.useRef(((R=Y.current)==null?void 0:R.getBoundingClientRect().height)||0),B=G.useRef(0),se=G.useCallback(ee=>{u&&ee===xe.length-1&&(ge.current=new Date)},[]),{activeSnapPoint:fe,activeSnapPointIndex:le,setActiveSnapPoint:oe,onRelease:he,snapPointsOffset:xe,onDrag:Ce,shouldFade:nt,getPercentageDragged:Ze}=v3({snapPoints:u,activeSnapPointProp:x,setActiveSnapPointProp:m,drawerRef:Y,fadeFromIndex:v,overlayRef:de,onSnapPointChange:se,direction:_});l3({isDisabled:!M||F||!w||V||!I});let{restorePositionSetting:Qe}=p3({isOpen:M,modal:w,nested:d,hasBeenOpened:I,preventScrollRestoration:y});function qe(){return(window.innerWidth-eh)/window.innerWidth}function rt(ee){var me;!g&&!u||Y.current&&!Y.current.contains(ee.target)||(be.current=((me=Y.current)==null?void 0:me.getBoundingClientRect().height)||0,Z(!0),ce.current=new Date,hx()&&window.addEventListener("touchend",()=>ne.current=!1,{once:!0}),ee.target.setPointerCapture(ee.pointerId),q.current=Dt(_)?ee.screenY:ee.screenX)}function ze(ee,me){var we;let De=ee,ve=(we=window.getSelection())==null?void 0:we.toString(),je=Y.current?Ri(Y.current,_):null,Ne=new Date;if(De.hasAttribute("data-vaul-no-drag"))return!1;if(_==="right"||_==="left")return!0;if(ge.current&&Ne.getTime()-ge.current.getTime()<500)return!1;if(je!==null&&(_==="bottom"?je>0:je<0))return!0;if(ve&&ve.length>0)return!1;if(K.current&&Ne.getTime()-K.current.getTime()De.clientHeight){if(De.scrollTop!==0)return K.current=new Date,!1;if(De.getAttribute("role")==="dialog")return!0}De=De.parentNode}return!0}function ot(ee){if(Y.current&&F){let me=_==="bottom"||_==="right"?1:-1,we=(q.current-(Dt(_)?ee.screenY:ee.screenX))*me,De=we>0;if(u&&le===0&&!g||!ne.current&&!ze(ee.target,De))return;if(Y.current.classList.add(th),ne.current=!0,xt(Y.current,{transition:"none"}),xt(de.current,{transition:"none"}),u&&Ce({draggedDistance:we}),De&&!u){let st=g3(we),Rt=Math.min(st*-1,0)*me;xt(Y.current,{transform:Dt(_)?`translate3d(0, ${Rt}px, 0)`:`translate3d(${Rt}px, 0, 0)`});return}let ve=Math.abs(we),je=document.querySelector("[vaul-drawer-wrapper]"),Ne=ve/be.current,Ie=Ze(ve,De);Ie!==null&&(Ne=Ie);let et=1-Ne;if((nt||v&&le===v-1)&&(i?.(ee,Ne),xt(de.current,{opacity:`${et}`,transition:"none"},!0)),je&&de.current&&o){let st=Math.min(qe()+Ne*(1-qe()),1),Rt=8-Ne*8,At=Math.max(0,14-Ne*14);xt(je,{borderRadius:`${Rt}px`,transform:Dt(_)?`scale(${st}) translate3d(0, ${At}px, 0)`:`scale(${st}) translate3d(${At}px, 0, 0)`,transition:"none"},!0)}if(!u){let st=ve*me;xt(Y.current,{transform:Dt(_)?`translate3d(0, ${st}px, 0)`:`translate3d(${st}px, 0, 0)`})}}}G.useEffect(()=>()=>{Ht(!1),Qe()},[]),G.useEffect(()=>{var ee;function me(){var we;if(!Y.current)return;let De=document.activeElement;if(Lu(De)||ie.current){let ve=((we=window.visualViewport)==null?void 0:we.height)||0,je=window.innerHeight-ve,Ne=Y.current.getBoundingClientRect().height||0;B.current||(B.current=Ne);let Ie=Y.current.getBoundingClientRect().top;if(Math.abs(pe.current-je)>60&&(ie.current=!ie.current),u&&u.length>0&&xe&&le){let et=xe[le]||0;je+=et}if(pe.current=je,Ne>ve||ie.current){let et=Y.current.getBoundingClientRect().height,st=et;et>ve&&(st=ve-eh),S?Y.current.style.height=`${et-Math.max(je,0)}px`:Y.current.style.height=`${Math.max(st,ve-Ie)}px`}else Y.current.style.height=`${B.current}px`;u&&u.length>0&&!ie.current?Y.current.style.bottom="0px":Y.current.style.bottom=`${Math.max(je,0)}px`}}return(ee=window.visualViewport)==null||ee.addEventListener("resize",me),()=>{var we;return(we=window.visualViewport)==null?void 0:we.removeEventListener("resize",me)}},[le,u,xe]);function Ge(){Y.current&&($?.(),xt(Y.current,{transform:Dt(_)?`translate3d(0, ${_==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${_==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${dt.DURATION}s cubic-bezier(${dt.EASE.join(",")})`}),xt(de.current,{opacity:"0",transition:`opacity ${dt.DURATION}s cubic-bezier(${dt.EASE.join(",")})`}),Ht(!1),setTimeout(()=>{D(!1),E(!1)},300),setTimeout(()=>{u&&oe(u[0])},dt.DURATION*1e3))}G.useEffect(()=>{if(!M&&o){let ee=setTimeout(()=>{Ni(document.body)},200);return()=>clearTimeout(ee)}},[M,o]),G.useEffect(()=>{e?(E(!0),H(!0)):Ge()},[e]),G.useEffect(()=>{k&&n?.(M)},[M]),G.useEffect(()=>{L(!0)},[]);function Ft(){if(!Y.current)return;let ee=document.querySelector("[vaul-drawer-wrapper]"),me=Ri(Y.current,_);xt(Y.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${dt.DURATION}s cubic-bezier(${dt.EASE.join(",")})`}),xt(de.current,{transition:`opacity ${dt.DURATION}s cubic-bezier(${dt.EASE.join(",")})`,opacity:"1"}),o&&me&&me>0&&M&&xt(ee,{borderRadius:`${Qg}px`,overflow:"hidden",...Dt(_)?{transform:`scale(${qe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${qe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${dt.DURATION}s`,transitionTimingFunction:`cubic-bezier(${dt.EASE.join(",")})`},!0)}function St(ee){var me;if(!F||!Y.current)return;Y.current.classList.remove(th),ne.current=!1,Z(!1),ue.current=new Date;let we=Ri(Y.current,_);if(!ze(ee.target,!1)||!we||Number.isNaN(we)||ce.current===null)return;let De=ue.current.getTime()-ce.current.getTime(),ve=q.current-(Dt(_)?ee.screenY:ee.screenX),je=Math.abs(ve)/De;if(je>.05&&(J(!0),setTimeout(()=>{J(!1)},200)),u){he({draggedDistance:ve*(_==="bottom"||_==="right"?1:-1),closeDrawer:Ge,velocity:je,dismissible:g}),l?.(ee,!0);return}if(_==="bottom"||_==="right"?ve>0:ve<0){Ft(),l?.(ee,!0);return}if(je>yx){Ge(),l?.(ee,!1);return}let Ne=Math.min((me=Y.current.getBoundingClientRect().height)!=null?me:0,window.innerHeight);if(we>=Ne*p){Ge(),l?.(ee,!1);return}l?.(ee,!0),Ft()}G.useEffect(()=>{M&&(xt(document.documentElement,{scrollBehavior:"auto"}),ge.current=new Date,Ht(!0))},[M]),G.useEffect(()=>{var ee;if(Y.current&&P){let me=(ee=Y?.current)==null?void 0:ee.querySelectorAll("*");me?.forEach(we=>{let De=we;(De.scrollHeight>De.clientHeight||De.scrollWidth>De.clientWidth)&&De.classList.add("vaul-scrollable")})}},[P]);function Ht(ee){let me=document.querySelector("[vaul-drawer-wrapper]");!me||!o||(ee?(xt(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),xt(document.body,{background:"black"},!0),xt(me,{borderRadius:`${Qg}px`,overflow:"hidden",...Dt(_)?{transform:`scale(${qe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${qe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${dt.DURATION}s`,transitionTimingFunction:`cubic-bezier(${dt.EASE.join(",")})`})):(Ni(me,"overflow"),Ni(me,"transform"),Ni(me,"borderRadius"),xt(me,{transitionProperty:"transform, border-radius",transitionDuration:`${dt.DURATION}s`,transitionTimingFunction:`cubic-bezier(${dt.EASE.join(",")})`})))}function Vt(ee){let me=ee?(window.innerWidth-_o)/window.innerWidth:1,we=ee?-_o:0;U.current&&window.clearTimeout(U.current),xt(Y.current,{transition:`transform ${dt.DURATION}s cubic-bezier(${dt.EASE.join(",")})`,transform:`scale(${me}) translate3d(0, ${we}px, 0)`}),!ee&&Y.current&&(U.current=setTimeout(()=>{let De=Ri(Y.current,_);xt(Y.current,{transition:"none",transform:Dt(_)?`translate3d(0, ${De}px, 0)`:`translate3d(${De}px, 0, 0)`})},500))}function Ct(ee,me){if(me<0)return;let we=Dt(_)?window.innerHeight:window.innerWidth,De=(we-_o)/we,ve=De+me*(1-De),je=-_o+me*_o;xt(Y.current,{transform:Dt(_)?`scale(${ve}) translate3d(0, ${je}px, 0)`:`scale(${ve}) translate3d(${je}px, 0, 0)`,transition:"none"})}function Ke(ee,me){let we=Dt(_)?window.innerHeight:window.innerWidth,De=me?(we-_o)/we:1,ve=me?-_o:0;me&&xt(Y.current,{transition:`transform ${dt.DURATION}s cubic-bezier(${dt.EASE.join(",")})`,transform:Dt(_)?`scale(${De}) translate3d(0, ${ve}px, 0)`:`scale(${De}) translate3d(${ve}px, 0, 0)`})}return G.createElement($m,{modal:w,onOpenChange:ee=>{if(e!==void 0){n?.(ee);return}ee?(H(!0),E(ee)):Ge()},open:M},G.createElement(gx.Provider,{value:{visible:P,activeSnapPoint:fe,snapPoints:u,setActiveSnapPoint:oe,drawerRef:Y,overlayRef:de,scaleBackground:Ht,onOpenChange:n,onPress:rt,setVisible:D,onRelease:St,onDrag:ot,dismissible:g,isOpen:M,shouldFade:nt,closeDrawer:Ge,onNestedDrag:Ct,onNestedOpenChange:Vt,onNestedRelease:Ke,keyboardIsOpen:ie,openProp:e,modal:w,snapPointsOffset:xe,direction:_}},t))}var Sx=G.forwardRef(function({children:e,...n},t){let{overlayRef:o,snapPoints:i,onRelease:l,shouldFade:u,isOpen:d,visible:p}=Dd(),f=xx(t,o),g=i&&i.length>0;return G.createElement(pa,{onMouseUp:l,ref:f,"vaul-drawer-visible":p?"true":"false","vaul-overlay":"","vaul-snap-points":d&&g?"true":"false","vaul-snap-points-overlay":d&&u?"true":"false",...n})});Sx.displayName="Drawer.Overlay";var Cx=G.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:n,onAnimationEnd:t,style:o,...i},l){let{drawerRef:u,onPress:d,onRelease:p,onDrag:f,dismissible:g,keyboardIsOpen:v,snapPointsOffset:x,visible:m,closeDrawer:S,modal:w,openProp:$,onOpenChange:_,setVisible:y,direction:R}=Dd(),M=xx(l,u);return G.useEffect(()=>{y(!0)},[]),G.createElement(ga,{onOpenAutoFocus:E=>{var I;e?e(E):(E.preventDefault(),(I=u.current)==null||I.focus())},onPointerDown:d,onPointerDownOutside:E=>{if(n?.(E),!w||E.defaultPrevented){E.preventDefault();return}v.current&&(v.current=!1),E.preventDefault(),_?.(!1),!(!g||$!==void 0)&&S()},onPointerMove:f,onPointerUp:p,ref:M,style:x&&x.length>0?{"--snap-point-height":`${x[0]}px`,...o}:o,...i,"vaul-drawer":"","vaul-drawer-direction":R,"vaul-drawer-visible":m?"true":"false"})});Cx.displayName="Drawer.Content";function y3({onDrag:e,onOpenChange:n,...t}){let{onNestedDrag:o,onNestedOpenChange:i,onNestedRelease:l}=Dd();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return G.createElement(_x,{nested:!0,onClose:()=>{i(!1)},onDrag:(u,d)=>{o(u,d),e?.(u,d)},onOpenChange:u=>{u&&i(u),n?.(u)},onRelease:l,...t})}var cr={Root:_x,NestedRoot:y3,Content:Cx,Overlay:Sx,Trigger:Sj,Portal:al,Close:rd,Title:ha,Description:ma};function jx({shouldScaleBackground:e=!0,...n}){return a.jsx(cr.Root,{shouldScaleBackground:e,...n})}jx.displayName="Drawer";const w3=cr.Trigger,_3=cr.Portal,S3=cr.Close,Nx=C.forwardRef(({className:e,...n},t)=>a.jsx(cr.Overlay,{ref:t,className:X("fixed inset-0 bg-black/80 z-50",e),...n}));Nx.displayName=cr.Overlay.displayName;const Rx=C.forwardRef(({className:e,children:n,...t},o)=>a.jsxs(_3,{children:[a.jsx(Nx,{}),a.jsxs(cr.Content,{ref:o,className:X("fixed mt-24 inset-x-0 bottom-0 h-auto bg-background z-50 border rounded-t-[10px] flex flex-col",e),...t,children:[a.jsx("div",{className:"mx-auto mt-4 w-[100px] h-2 bg-muted rounded-full"}),n]})]}));Rx.displayName="DrawerContent";function C3({className:e,...n}){return a.jsx("div",{className:X("p-4 text-center sm:text-left grid gap-1.5",e),...n})}function j3({className:e,...n}){return a.jsx("div",{className:X("mt-auto p-4 flex flex-col gap-2",e),...n})}const $x=C.forwardRef(({className:e,...n},t)=>a.jsx(cr.Title,{ref:t,className:X("text-lg font-semibold leading-none tracking-tight",e),...n}));$x.displayName=cr.Title.displayName;const Ex=C.forwardRef(({className:e,...n},t)=>a.jsx(cr.Description,{ref:t,className:X("text-sm text-muted-foreground",e),...n}));Ex.displayName=cr.Description.displayName;function N3(){return a.jsxs("div",{className:"px-2 py-3 flex items-center justify-between bg-primary-foreground",children:[a.jsxs("div",{className:"flex items-center gap-x-1",children:[a.jsx("div",{className:"ml-2 pt-1",children:a.jsx(tE,{className:"size-7 stroke-none fill-slate-600 -rotate-90"})}),a.jsx("div",{className:"text-2xl font-extralight tracking-tighter text-blue-600",children:"shadcn-ui"}),a.jsx("div",{className:"text-2xl font-extralight tracking-tighter text-slate-600",children:"components showroom"})]}),a.jsx("div",{className:"pt-1 flex items-center justify-end gap-x-1",children:a.jsx(nE,{})})]})}const Px="bg-muted/30 border-muted-foreground/30 border-t border-b";function R3(){return a.jsx("div",{className:`p-0.5 flex flex-col space-y-4 ${Px}`,children:a.jsx("div",{className:"flex items-center gap-2"})})}const $3=[{id:"1",name:"Unread"},{id:"2",name:"Threads"},{id:"3",name:"Chat Rooms",children:[{id:"3.1",name:"General"},{id:"3.2",name:"Random"},{id:"3.3",name:"Open Source Projects"}]},{id:"4",name:"Direct Messages",children:[{id:"4.1",name:"Alice",children:[{id:"4.1.1",name:"Alice2",icon:Ng},{id:"4.1.2",name:"Bob2"},{id:"4.1.3",name:"Charlie2"}]},{id:"4.2",name:"Bob",icon:Ng},{id:"4.3",name:"Charlie"}]},{id:"5",name:"Direct Messages",children:[{id:"5.1",name:"Alice",children:[{id:"5.1.1",name:"Alice2"},{id:"5.1.2",name:"Bob2"},{id:"5.1.3",name:"Charlie2"}]},{id:"5.2",name:"Bob"},{id:"5.3",name:"Charlie"}]},{id:"6",name:"Direct Messages",children:[{id:"6.1",name:"Alice",children:[{id:"6.1.1",name:"Alice2"},{id:"6.1.2",name:"Bob2"},{id:"6.1.3",name:"Charlie2"}]},{id:"6.2",name:"Bob"},{id:"6.3",name:"Charlie"}]}],nh="focus:ring-primary-600 dark:focus:ring-primary-400 focus:ring-offset-primary-200 dark:focus:ring-offset-primary-800 focus:ring-1 focus:ring-offset-1 focus:outline-none",Ax={display:"flex",flex:"1"},E3=(e,n)=>{const t={...Ax};return e?t.minHeight=t.maxHeight=n+"%":t.minWidth=t.maxWidth=n+"%",t},P3={...Ax,minWidth:0,minHeight:0};function A3(e){const{vertical:n=!0,min:t=0,max:o=100,className:i,children:l,position:u,setPosition:d,onResize:p}=e,f=G.useRef(null),g=G.useCallback(x=>{if(!f.current)return;x.preventDefault();const{current:m}=f,S=m.getBoundingClientRect(),w=n?window.scrollY+S.y:window.scrollX+S.x,$=n?m.offsetHeight:m.offsetWidth,_=R=>{R.preventDefault();const M=((n?R.pageY:R.pageX)-w)/$*100,E=+cN(uN(M,t,o));d(E)},y=()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",y),p?.()};document.addEventListener("mousemove",_),document.addEventListener("mouseup",y)},[f,n]);let v=G.Children.toArray(l);return v.length<2?a.jsx("div",{className:i,style:{display:"flex"},children:v}):a.jsxs("div",{ref:f,className:i,style:{display:"flex",flexDirection:n?"column":"row"},children:[a.jsx("div",{style:E3(n,u),children:v[0]}),a.jsx("div",{className:ct("splitpane-divider",n?"vertical":"horizontal"),onMouseDown:g}),a.jsx("div",{style:P3,children:v[1]})]})}const M3="d09GMgABAAAAAADcAAoAAAAAAggAAACWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk4ALAoUNAE2AiQDCAsGAAQgBSAHIBtvAcieB3aD8wURQ+TZazbRE9HvF5vde4KCYGhiCgq/NKPF0i6UIsZynbP+Xi9Ng+XLbNlmNz/xIBBqq61FIQRJhC/+QA/08PJQJ3sK5TZFMlWzC/iK5GUN40psgqvxwBjBOg6JUSJ7ewyKE2AAaXZrfUB4v+hze37ugJ9d+DeYqiDwVgCawviwVFGnuttkLqIMGivmDg",D3=`data:application/font-woff2;base64,${M3}`,Wi=_a({text:D3}),$i=_a({fontText:Wi.text,xmlText:"",glyphs:[]});function T3(){const e=/^\s*data:(?[\w\/\+-]*);?(?(?:charset=[\w-]+)?);?(?base64?),(?[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%]*)\s*$/i;n();function n(){$i.dataUri=e.exec(Wi.text)?.groups}hl(Wi,()=>{$i.fontText=Wi.text,n(),$i.isUrl=!1,$i.dataUri})}T3();var Lt={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let k3=0;function kd(e,n){const t=`atom${++k3}`,o={toString:()=>t};return typeof e=="function"?o.read=e:(o.init=e,o.read=I3,o.write=L3),n&&(o.write=n),o}function I3(e){return e(this)}function L3(e,n,t){return n(this,typeof t=="function"?t(e(this)):t)}const tu=(e,n)=>e.unstable_is?e.unstable_is(n):n===e,nu=e=>"init"in e,ru=e=>!!e.write,el=new WeakMap,F3=(e,n)=>{el.set(e,n),e.catch(()=>{}).finally(()=>el.delete(e))},rh=(e,n)=>{const t=el.get(e);t&&(el.delete(e),t(n))},oh=(e,n)=>{e.status="fulfilled",e.value=n},sh=(e,n)=>{e.status="rejected",e.reason=n},O3=e=>typeof e?.then=="function",Os=(e,n)=>!!e&&"v"in e&&"v"in n&&Object.is(e.v,n.v),ah=(e,n)=>!!e&&"e"in e&&"e"in n&&Object.is(e.e,n.e),Ko=e=>!!e&&"v"in e&&e.v instanceof Promise,z3=(e,n)=>"v"in e&&"v"in n&&e.v.orig&&e.v.orig===n.v.orig,Ei=e=>{if("e"in e)throw e.e;return e.v},B3=()=>{const e=new WeakMap,n=new WeakMap,t=new Map;let o,i;(Lt?"production":void 0)!=="production"&&(o=new Set,i=new Set);const l=P=>e.get(P),u=(P,D)=>{(Lt?"production":void 0)!=="production"&&Object.freeze(D);const k=l(P);if(e.set(P,D),t.has(P)||t.set(P,k),Ko(k)){const L="v"in D?D.v instanceof Promise?D.v:Promise.resolve(D.v):Promise.reject(D.e);k.v!==L&&rh(k.v,L)}},d=(P,D,k,L)=>{const F=new Map(L?D.d:null);let Z=!1;k.forEach((V,J)=>{!V&&tu(P,J)&&(V=D),V?(F.set(J,V),D.d.get(J)!==V&&(Z=!0)):(Lt?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(Z||D.d.size!==F.size)&&(D.d=F)},p=(P,D,k,L)=>{const F=l(P),Z={d:F?.d||new Map,v:D};if(k&&d(P,Z,k,L),Os(F,Z)&&F.d===Z.d)return F;if(Ko(F)&&Ko(Z)&&z3(F,Z)){if(F.d===Z.d)return F;Z.v=F.v}return u(P,Z),Z},f=(P,D,k,L)=>{if(O3(D)){let F;const Z=()=>{const J=l(P);if(!Ko(J)||J.v!==V)return;const de=p(P,V,k);n.has(P)&&J.d!==de.d&&E(P,de,J.d)},V=new Promise((J,de)=>{let ge=!1;D.then(ce=>{ge||(ge=!0,oh(V,ce),J(ce),Z())},ce=>{ge||(ge=!0,sh(V,ce),de(ce),Z())}),F=ce=>{ge||(ge=!0,ce.then(ue=>oh(V,ue),ue=>sh(V,ue)),J(ce))}});return V.orig=D,V.status="pending",F3(V,J=>{J&&F(J),L?.()}),p(P,V,k,!0)}return p(P,D,k)},g=(P,D,k)=>{const L=l(P),F={d:L?.d||new Map,e:D};return k&&d(P,F,k),ah(L,F)&&L.d===F.d?L:(u(P,F),F)},v=(P,D)=>{const k=l(P);if(!D&&k&&(n.has(P)||Array.from(k.d).every(([ge,ce])=>{if(ge===P)return!0;const ue=v(ge);return ue===ce||Os(ue,ce)})))return k;const L=new Map;let F=!0;const Z=ge=>{if(tu(P,ge)){const ue=l(ge);if(ue)return L.set(ge,ue),Ei(ue);if(nu(ge))return L.set(ge,void 0),ge.init;throw new Error("no atom init")}const ce=v(ge);return L.set(ge,ce),Ei(ce)};let V,J;const de={get signal(){return V||(V=new AbortController),V.signal},get setSelf(){return(Lt?"production":void 0)!=="production"&&!ru(P)&&console.warn("setSelf function cannot be used with read-only atom"),!J&&ru(P)&&(J=(...ge)=>{if((Lt?"production":void 0)!=="production"&&F&&console.warn("setSelf function cannot be called in sync"),!F)return y(P,...ge)}),J}};try{const ge=P.read(Z,de);return f(P,ge,L,()=>V?.abort())}catch(ge){return g(P,ge,L)}finally{F=!1}},x=P=>Ei(v(P)),m=P=>{let D=n.get(P);return D||(D=R(P)),D},S=(P,D)=>!D.l.size&&(!D.t.size||D.t.size===1&&D.t.has(P)),w=P=>{const D=n.get(P);D&&S(P,D)&&M(P)},$=P=>{const D=V=>{var J;const de=new Set((J=n.get(V))==null?void 0:J.t);return t.forEach((ge,ce)=>{var ue;(ue=l(ce))!=null&&ue.d.has(V)&&de.add(ce)}),de},k=new Array,L=new Set,F=V=>{if(!L.has(V)){L.add(V);for(const J of D(V))V!==J&&F(J);k.push(V)}};F(P);const Z=new Set([P]);for(let V=k.length-1;V>=0;--V){const J=k[V],de=l(J);if(!de)continue;let ge=!1;for(const ce of de.d.keys())if(ce!==J&&Z.has(ce)){ge=!0;break}if(ge){const ce=v(J,!0);Os(de,ce)||Z.add(J)}}},_=(P,...D)=>{let k=!0;const L=V=>Ei(v(V)),F=(V,...J)=>{let de;if(tu(P,V)){if(!nu(V))throw new Error("atom not writable");const ge=l(V),ce=f(V,J[0]);Os(ge,ce)||$(V)}else de=_(V,...J);if(!k){const ge=I();(Lt?"production":void 0)!=="production"&&o.forEach(ce=>ce({type:"async-write",flushed:ge}))}return de},Z=P.write(L,F,...D);return k=!1,Z},y=(P,...D)=>{const k=_(P,...D),L=I();return(Lt?"production":void 0)!=="production"&&o.forEach(F=>F({type:"write",flushed:L})),k},R=(P,D,k)=>{var L;const F=k||[];(L=l(P))==null||L.d.forEach((V,J)=>{const de=n.get(J);de?de.t.add(P):J!==P&&R(J,P,F)}),v(P);const Z={t:new Set(D&&[D]),l:new Set};if(n.set(P,Z),(Lt?"production":void 0)!=="production"&&i.add(P),ru(P)&&P.onMount){const{onMount:V}=P;F.push(()=>{const J=V((...de)=>y(P,...de));J&&(Z.u=J)})}return k||F.forEach(V=>V()),Z},M=P=>{var D;const k=(D=n.get(P))==null?void 0:D.u;k&&k(),n.delete(P),(Lt?"production":void 0)!=="production"&&i.delete(P);const L=l(P);L?(Ko(L)&&rh(L.v),L.d.forEach((F,Z)=>{if(Z!==P){const V=n.get(Z);V&&(V.t.delete(P),S(Z,V)&&M(Z))}})):(Lt?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",P)},E=(P,D,k)=>{const L=new Set(D.d.keys()),F=new Set;k?.forEach((Z,V)=>{if(L.has(V)){L.delete(V);return}F.add(V);const J=n.get(V);J&&J.t.delete(P)}),L.forEach(Z=>{const V=n.get(Z);V?V.t.add(P):n.has(P)&&R(Z,P)}),F.forEach(Z=>{const V=n.get(Z);V&&S(Z,V)&&M(Z)})},I=()=>{let P;for((Lt?"production":void 0)!=="production"&&(P=new Set);t.size;){const D=Array.from(t);t.clear(),D.forEach(([k,L])=>{const F=l(k);if(F){const Z=n.get(k);Z&&F.d!==L?.d&&E(k,F,L?.d),Z&&!(!Ko(L)&&(Os(L,F)||ah(L,F)))&&(Z.l.forEach(V=>V()),(Lt?"production":void 0)!=="production"&&P.add(k))}else(Lt?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush")})}if((Lt?"production":void 0)!=="production")return P},H=(P,D)=>{const k=m(P),L=I(),F=k.l;return F.add(D),(Lt?"production":void 0)!=="production"&&o.forEach(Z=>Z({type:"sub",flushed:L})),()=>{F.delete(D),w(P),(Lt?"production":void 0)!=="production"&&o.forEach(Z=>Z({type:"unsub"}))}};return(Lt?"production":void 0)!=="production"?{get:x,set:y,sub:H,dev_subscribe_store:(P,D)=>{if(D!==2)throw new Error("The current StoreListener revision is 2.");return o.add(P),()=>{o.delete(P)}},dev_get_mounted_atoms:()=>i.values(),dev_get_atom_state:P=>e.get(P),dev_get_mounted:P=>n.get(P),dev_restore_atoms:P=>{for(const[k,L]of P)nu(k)&&(f(k,L),$(k));const D=I();o.forEach(k=>k({type:"restore",flushed:D}))}}:{get:x,set:y,sub:H}};let ou;(Lt?"production":void 0)!=="production"&&(typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__=="number"?++globalThis.__NUMBER_OF_JOTAI_INSTANCES__:globalThis.__NUMBER_OF_JOTAI_INSTANCES__=1);const H3=()=>(ou||((Lt?"production":void 0)!=="production"&&globalThis.__NUMBER_OF_JOTAI_INSTANCES__!==1&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"),ou=B3()),ou);var V3={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const G3=C.createContext(void 0),Mx=e=>{const n=C.useContext(G3);return e?.store||n||H3()},W3=e=>typeof e?.then=="function",U3=G.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e)});function Dx(e,n){const t=Mx(n),[[o,i,l],u]=C.useReducer(f=>{const g=t.get(e);return Object.is(f[0],g)&&f[1]===t&&f[2]===e?f:[g,t,e]},void 0,()=>[t.get(e),t,e]);let d=o;(i!==t||l!==e)&&(u(),d=t.get(e));const p=n?.delay;return C.useEffect(()=>{const f=t.sub(e,()=>{if(typeof p=="number"){setTimeout(u,p);return}u()});return u(),f},[t,e,p]),C.useDebugValue(d),W3(d)?U3(d):d}function Fu(e,n){const t=Mx(n);return C.useCallback((...i)=>{if((V3?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return t.set(e,...i)},[t,e])}function X3({doDroppedFilesAtom:e,activeAtom:n}){const t=Fu(n),o=Fu(e),i=C.useRef(0);return C.useEffect(()=>{function l(){i.current++||t(!0)}function u(g){g.preventDefault()}function d(){--i.current||t(!1)}function p(g){g.preventDefault(),i.current=0,t(!1),g.dataTransfer&&o(g.dataTransfer.files)}const f=document.addEventListener;return f("dragenter",l),f("dragover",u),f("dragleave",d),f("drop",p),()=>{const g=document.removeEventListener;g("dragenter",l),g("dragover",u),g("dragleave",d),g("drop",p)}},[]),null}function q3(){const[e]=C.useState(kd(!1)),n=Dx(e);return X3({doDroppedFilesAtom:HA,activeAtom:e}),a.jsx(a.Fragment,{children:n&&a.jsx("div",{className:"absolute inset-0 grid place-items-center text-5xl font-bold text-slate-50 bg-slate-800/90 z-10",children:"Drop it!"})})}let K3={data:""},Y3=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||K3,J3=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Z3=/\/\*[^]*?\*\/| +/g,ih=/\n+/g,ro=(e,n)=>{let t="",o="",i="";for(let l in e){let u=e[l];l[0]=="@"?l[1]=="i"?t=l+" "+u+";":o+=l[1]=="f"?ro(u,l):l+"{"+ro(u,l[1]=="k"?"":n)+"}":typeof u=="object"?o+=ro(u,n?n.replace(/([^,])+/g,d=>l.replace(/(^:.*)|([^,])+/g,p=>/&/.test(p)?p.replace(/&/g,d):d?d+" "+p:p)):l):u!=null&&(l=/^--/.test(l)?l:l.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=ro.p?ro.p(l,u):l+":"+u+";")}return t+(n&&i?n+"{"+i+"}":i)+o},$r={},Tx=e=>{if(typeof e=="object"){let n="";for(let t in e)n+=t+Tx(e[t]);return n}return e},Q3=(e,n,t,o,i)=>{let l=Tx(e),u=$r[l]||($r[l]=(p=>{let f=0,g=11;for(;f>>0;return"go"+g})(l));if(!$r[u]){let p=l!==e?e:(f=>{let g,v,x=[{}];for(;g=J3.exec(f.replace(Z3,""));)g[4]?x.shift():g[3]?(v=g[3].replace(ih," ").trim(),x.unshift(x[0][v]=x[0][v]||{})):x[0][g[1]]=g[2].replace(ih," ").trim();return x[0]})(e);$r[u]=ro(i?{["@keyframes "+u]:p}:p,t?"":"."+u)}let d=t&&$r.g?$r.g:null;return t&&($r.g=$r[u]),((p,f,g,v)=>{v?f.data=f.data.replace(v,p):f.data.indexOf(p)===-1&&(f.data=g?p+f.data:f.data+p)})($r[u],n,o,d),u},eA=(e,n,t)=>e.reduce((o,i,l)=>{let u=n[l];if(u&&u.call){let d=u(t),p=d&&d.props&&d.props.className||/^go/.test(d)&&d;u=p?"."+p:d&&typeof d=="object"?d.props?"":ro(d,""):d===!1?"":d}return o+i+(u??"")},"");function _l(e){let n=this||{},t=e.call?e(n.p):e;return Q3(t.unshift?t.raw?eA(t,[].slice.call(arguments,1),n.p):t.reduce((o,i)=>Object.assign(o,i&&i.call?i(n.p):i),{}):t,Y3(n.target),n.g,n.o,n.k)}let kx,Ou,zu;_l.bind({g:1});let kr=_l.bind({k:1});function tA(e,n,t,o){ro.p=n,kx=e,Ou=t,zu=o}function lo(e,n){let t=this||{};return function(){let o=arguments;function i(l,u){let d=Object.assign({},l),p=d.className||i.className;t.p=Object.assign({theme:Ou&&Ou()},d),t.o=/ *go\d+/.test(p),d.className=_l.apply(t,o)+(p?" "+p:""),n&&(d.ref=u);let f=e;return e[0]&&(f=d.as||e,delete d.as),zu&&f[0]&&zu(d),kx(f,d)}return n?n(i):i}}var nA=e=>typeof e=="function",tl=(e,n)=>nA(e)?e(n):e,rA=(()=>{let e=0;return()=>(++e).toString()})(),Ix=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),oA=20,Ui=new Map,sA=1e3,lh=e=>{if(Ui.has(e))return;let n=setTimeout(()=>{Ui.delete(e),Ao({type:4,toastId:e})},sA);Ui.set(e,n)},aA=e=>{let n=Ui.get(e);n&&clearTimeout(n)},Bu=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,oA)};case 1:return n.toast.id&&aA(n.toast.id),{...e,toasts:e.toasts.map(l=>l.id===n.toast.id?{...l,...n.toast}:l)};case 2:let{toast:t}=n;return e.toasts.find(l=>l.id===t.id)?Bu(e,{type:1,toast:t}):Bu(e,{type:0,toast:t});case 3:let{toastId:o}=n;return o?lh(o):e.toasts.forEach(l=>{lh(l.id)}),{...e,toasts:e.toasts.map(l=>l.id===o||o===void 0?{...l,visible:!1}:l)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(l=>l.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let i=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(l=>({...l,pauseDuration:l.pauseDuration+i}))}}},Xi=[],qi={toasts:[],pausedAt:void 0},Ao=e=>{qi=Bu(qi,e),Xi.forEach(n=>{n(qi)})},iA={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},lA=(e={})=>{let[n,t]=C.useState(qi);C.useEffect(()=>(Xi.push(t),()=>{let i=Xi.indexOf(t);i>-1&&Xi.splice(i,1)}),[n]);let o=n.toasts.map(i=>{var l,u;return{...e,...e[i.type],...i,duration:i.duration||((l=e[i.type])==null?void 0:l.duration)||e?.duration||iA[i.type],style:{...e.style,...(u=e[i.type])==null?void 0:u.style,...i.style}}});return{...n,toasts:o}},cA=(e,n="blank",t)=>({createdAt:Date.now(),visible:!0,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...t,id:t?.id||rA()}),Ca=e=>(n,t)=>{let o=cA(n,e,t);return Ao({type:2,toast:o}),o.id},Pn=(e,n)=>Ca("blank")(e,n);Pn.error=Ca("error");Pn.success=Ca("success");Pn.loading=Ca("loading");Pn.custom=Ca("custom");Pn.dismiss=e=>{Ao({type:3,toastId:e})};Pn.remove=e=>Ao({type:4,toastId:e});Pn.promise=(e,n,t)=>{let o=Pn.loading(n.loading,{...t,...t?.loading});return e.then(i=>(Pn.success(tl(n.success,i),{id:o,...t,...t?.success}),i)).catch(i=>{Pn.error(tl(n.error,i),{id:o,...t,...t?.error})}),e};var uA=(e,n)=>{Ao({type:1,toast:{id:e,height:n}})},dA=()=>{Ao({type:5,time:Date.now()})},fA=e=>{let{toasts:n,pausedAt:t}=lA(e);C.useEffect(()=>{if(t)return;let l=Date.now(),u=n.map(d=>{if(d.duration===1/0)return;let p=(d.duration||0)+d.pauseDuration-(l-d.createdAt);if(p<0){d.visible&&Pn.dismiss(d.id);return}return setTimeout(()=>Pn.dismiss(d.id),p)});return()=>{u.forEach(d=>d&&clearTimeout(d))}},[n,t]);let o=C.useCallback(()=>{t&&Ao({type:6,time:Date.now()})},[t]),i=C.useCallback((l,u)=>{let{reverseOrder:d=!1,gutter:p=8,defaultPosition:f}=u||{},g=n.filter(m=>(m.position||f)===(l.position||f)&&m.height),v=g.findIndex(m=>m.id===l.id),x=g.filter((m,S)=>Sm.visible).slice(...d?[x+1]:[0,x]).reduce((m,S)=>m+(S.height||0)+p,0)},[n]);return{toasts:n,handlers:{updateHeight:uA,startPause:dA,endPause:o,calculateOffset:i}}},pA=kr` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,gA=kr` -from { - transform: scale(0); - opacity: 0; -} -to { - transform: scale(1); - opacity: 1; -}`,hA=kr` -from { - transform: scale(0) rotate(90deg); - opacity: 0; -} -to { - transform: scale(1) rotate(90deg); - opacity: 1; -}`,mA=lo("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${e=>e.primary||"#ff4b4b"}; - position: relative; - transform: rotate(45deg); - - animation: ${pA} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - - &:after, - &:before { - content: ''; - animation: ${gA} 0.15s ease-out forwards; - animation-delay: 150ms; - position: absolute; - border-radius: 3px; - opacity: 0; - background: ${e=>e.secondary||"#fff"}; - bottom: 9px; - left: 4px; - height: 2px; - width: 12px; - } - - &:before { - animation: ${hA} 0.15s ease-out forwards; - animation-delay: 180ms; - transform: rotate(90deg); - } -`,vA=kr` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`,xA=lo("div")` - width: 12px; - height: 12px; - box-sizing: border-box; - border: 2px solid; - border-radius: 100%; - border-color: ${e=>e.secondary||"#e0e0e0"}; - border-right-color: ${e=>e.primary||"#616161"}; - animation: ${vA} 1s linear infinite; -`,bA=kr` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,yA=kr` -0% { - height: 0; - width: 0; - opacity: 0; -} -40% { - height: 0; - width: 6px; - opacity: 1; -} -100% { - opacity: 1; - height: 10px; -}`,wA=lo("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${e=>e.primary||"#61d345"}; - position: relative; - transform: rotate(45deg); - - animation: ${bA} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - &:after { - content: ''; - box-sizing: border-box; - animation: ${yA} 0.2s ease-out forwards; - opacity: 0; - animation-delay: 200ms; - position: absolute; - border-right: 2px solid; - border-bottom: 2px solid; - border-color: ${e=>e.secondary||"#fff"}; - bottom: 6px; - left: 6px; - height: 10px; - width: 6px; - } -`,_A=lo("div")` - position: absolute; -`,SA=lo("div")` - position: relative; - display: flex; - justify-content: center; - align-items: center; - min-width: 20px; - min-height: 20px; -`,CA=kr` -from { - transform: scale(0.6); - opacity: 0.4; -} -to { - transform: scale(1); - opacity: 1; -}`,jA=lo("div")` - position: relative; - transform: scale(0.6); - opacity: 0.4; - min-width: 20px; - animation: ${CA} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; -`,NA=({toast:e})=>{let{icon:n,type:t,iconTheme:o}=e;return n!==void 0?typeof n=="string"?C.createElement(jA,null,n):n:t==="blank"?null:C.createElement(SA,null,C.createElement(xA,{...o}),t!=="loading"&&C.createElement(_A,null,t==="error"?C.createElement(mA,{...o}):C.createElement(wA,{...o})))},RA=e=>` -0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} -100% {transform: translate3d(0,0,0) scale(1); opacity:1;} -`,$A=e=>` -0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} -100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} -`,EA="0%{opacity:0;} 100%{opacity:1;}",PA="0%{opacity:1;} 100%{opacity:0;}",AA=lo("div")` - display: flex; - align-items: center; - background: #fff; - color: #363636; - line-height: 1.3; - will-change: transform; - box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); - max-width: 350px; - pointer-events: auto; - padding: 8px 10px; - border-radius: 8px; -`,MA=lo("div")` - display: flex; - justify-content: center; - margin: 4px 10px; - color: inherit; - flex: 1 1 auto; - white-space: pre-line; -`,DA=(e,n)=>{let t=e.includes("top")?1:-1,[o,i]=Ix()?[EA,PA]:[RA(t),$A(t)];return{animation:n?`${kr(o)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${kr(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},TA=C.memo(({toast:e,position:n,style:t,children:o})=>{let i=e.height?DA(e.position||n||"top-center",e.visible):{opacity:0},l=C.createElement(NA,{toast:e}),u=C.createElement(MA,{...e.ariaProps},tl(e.message,e));return C.createElement(AA,{className:e.className,style:{...i,...t,...e.style}},typeof o=="function"?o({icon:l,message:u}):C.createElement(C.Fragment,null,l,u))});tA(C.createElement);var kA=({id:e,className:n,style:t,onHeightUpdate:o,children:i})=>{let l=C.useCallback(u=>{if(u){let d=()=>{let p=u.getBoundingClientRect().height;o(e,p)};d(),new MutationObserver(d).observe(u,{subtree:!0,childList:!0,characterData:!0})}},[e,o]);return C.createElement("div",{ref:l,className:n,style:t},i)},IA=(e,n)=>{let t=e.includes("top"),o=t?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Ix()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(t?1:-1)}px)`,...o,...i}},LA=_l` - z-index: 9999; - > * { - pointer-events: auto; - } -`,Pi=16,FA=({reverseOrder:e,position:n="top-center",toastOptions:t,gutter:o,children:i,containerStyle:l,containerClassName:u})=>{let{toasts:d,handlers:p}=fA(t);return C.createElement("div",{style:{position:"fixed",zIndex:9999,top:Pi,left:Pi,right:Pi,bottom:Pi,pointerEvents:"none",...l},className:u,onMouseEnter:p.startPause,onMouseLeave:p.endPause},d.map(f=>{let g=f.position||n,v=p.calculateOffset(f,{reverseOrder:e,gutter:o,defaultPosition:n}),x=IA(g,v);return C.createElement(kA,{id:f.id,key:f.id,onHeightUpdate:p.updateHeight,className:f.visible?LA:"",style:x},f.type==="custom"?tl(f.message,f):i?i(f):C.createElement(TA,{toast:f,position:g}))}))};function OA(){return a.jsx("div",{className:"toaser",children:a.jsx(FA,{position:"bottom-right",reverseOrder:!1,gutter:8,containerClassName:"",containerStyle:{},toastOptions:{className:"",duration:5e3,style:{background:"#363636",color:"#fff"},success:{duration:3e3,iconTheme:{primary:"green",secondary:"black"}}}})})}const zA=(e,n)=>Pn(e,{style:{backgroundColor:"red"},...n});function BA(e=""){return/[.]/.exec(e)&&/([^.]+$)/.exec(e)?.[0]||""}const HA=kd(null,async(e,n,t)=>{try{if(t.length!==1)throw new Error("Only one file can be dropped");if(BA(t[0].name)!=="woff2")throw new Error(`Dropped file "${t[0].name}". -Only .woff2 files are supported`);const i=await dN(t[0],{asArrayBuffer:!1});console.log("files",t),console.log("blob",i)}catch(o){zA(o?.message||"Failed to load image")}});function VA(e){const{splitterPos:n}=Ir(lt.treeState),t=C.useCallback(w0(o=>lt.treeState.splitterPos=o,50),[]);return a.jsx(A3,{position:n,setPosition:t,...e})}const ch="6.1.2";function GA(e){const n=fv(e);return $u(n,t=>t.state=_a({selected:!1})),n}const uh=GA($3);function Lx(){const[e,n]=C.useState(()=>es(uh,ch)?.name||"No content selected"),{arrowFirst:t,hideFolderIcon:o}=Ir(lt.treeState),i=C.useMemo(()=>a.jsx(V$,{data:uh,className:`w-full h-full border rounded-l-md ${nh}`,initialSelectedItemId:ch,onSelectChange:l=>n(l?.name??""),IconForFolder:l5,IconForItem:r5,arrowFirst:t,hideFolderIcon:o}),[t,o]);return a.jsxs("div",{className:"mr-12 p-0.5 w-full h-full",children:[a.jsxs(VA,{vertical:!1,className:"splitpane h-full",children:[a.jsx("div",{className:"w-full",children:i}),a.jsx("div",{className:ct("flex-1 w-full h-full min-w-0 border border-l rounded-r-md z-10",nh),tabIndex:0,children:a.jsx("div",{className:"min-w-0 overflow-hidden",children:a.jsx("div",{className:"px-2 py-1",children:e})})})]}),a.jsxs("div",{className:"mt-2 text-sm text-muted-foreground",children:[a.jsxs("label",{className:"flex items-center",children:[a.jsx(os,{className:"mr-2",checked:t,onCheckedChange:()=>lt.treeState.arrowFirst=!lt.treeState.arrowFirst}),"Icons first"]}),a.jsxs("label",{className:"flex items-center",children:[a.jsx(os,{className:"mr-2",checked:o,onCheckedChange:()=>lt.treeState.hideFolderIcon=!lt.treeState.hideFolderIcon}),"Hide folder icons"]})]})]})}function WA(){return a.jsxs("div",{className:`px-4 py-2 ${Px}`,children:[a.jsx("div",{className:"mb-1 px-1 text-sm",children:"Tree inside fixed height, non-scrollable area"}),a.jsx("div",{className:"h-[160px] overflow-hidden",children:a.jsx(Lx,{})})]})}/** - * table-core - * - * Copyright (c) TanStack - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function oo(e,n){return typeof e=="function"?e(n):e}function Dn(e,n){return t=>{n.setState(o=>({...o,[e]:oo(t,o[e])}))}}function nl(e){return e instanceof Function}function UA(e){return Array.isArray(e)&&e.every(n=>typeof n=="number")}function XA(e,n){const t=[],o=i=>{i.forEach(l=>{t.push(l);const u=n(l);u!=null&&u.length&&o(u)})};return o(e),t}function Ae(e,n,t){let o=[],i;return l=>{let u;t.key&&t.debug&&(u=Date.now());const d=e(l);if(!(d.length!==o.length||d.some((g,v)=>o[v]!==g)))return i;o=d;let f;if(t.key&&t.debug&&(f=Date.now()),i=n(...d),t==null||t.onChange==null||t.onChange(i),t.key&&t.debug&&t!=null&&t.debug()){const g=Math.round((Date.now()-u)*100)/100,v=Math.round((Date.now()-f)*100)/100,x=v/16,m=(S,w)=>{for(S=String(S);S.length{var i;return(i=e?.debugAll)!=null?i:e[n]},key:!1,onChange:o}}function qA(e,n,t,o){var i,l;const d={...e._getDefaultColumnDef(),...n},p=d.accessorKey;let f=(i=(l=d.id)!=null?l:p?p.replace(".","_"):void 0)!=null?i:typeof d.header=="string"?d.header:void 0,g;if(d.accessorFn?g=d.accessorFn:p&&(p.includes(".")?g=x=>{let m=x;for(const w of p.split(".")){var S;m=(S=m)==null?void 0:S[w]}return m}:g=x=>x[d.accessorKey]),!f)throw new Error;let v={id:`${String(f)}`,accessorFn:g,parent:o,depth:t,columnDef:d,columns:[],getFlatColumns:Ae(()=>[!0],()=>{var x;return[v,...(x=v.columns)==null?void 0:x.flatMap(m=>m.getFlatColumns())]},Me(e.options,"debugColumns")),getLeafColumns:Ae(()=>[e._getOrderColumnsFn()],x=>{var m;if((m=v.columns)!=null&&m.length){let S=v.columns.flatMap(w=>w.getLeafColumns());return x(S)}return[v]},Me(e.options,"debugColumns"))};for(const x of e._features)x.createColumn==null||x.createColumn(v,e);return v}const Kt="debugHeaders";function dh(e,n,t){var o;let l={id:(o=t.id)!=null?o:n.id,column:n,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const u=[],d=p=>{p.subHeaders&&p.subHeaders.length&&p.subHeaders.map(d),u.push(p)};return d(l),u},getContext:()=>({table:e,header:l,column:n})};return e._features.forEach(u=>{u.createHeader==null||u.createHeader(l,e)}),l}const KA={createTable:e=>{e.getHeaderGroups=Ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,o,i)=>{var l,u;const d=(l=o?.map(v=>t.find(x=>x.id===v)).filter(Boolean))!=null?l:[],p=(u=i?.map(v=>t.find(x=>x.id===v)).filter(Boolean))!=null?u:[],f=t.filter(v=>!(o!=null&&o.includes(v.id))&&!(i!=null&&i.includes(v.id)));return Ai(n,[...d,...f,...p],e)},Me(e.options,Kt)),e.getCenterHeaderGroups=Ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,o,i)=>(t=t.filter(l=>!(o!=null&&o.includes(l.id))&&!(i!=null&&i.includes(l.id))),Ai(n,t,e,"center")),Me(e.options,Kt)),e.getLeftHeaderGroups=Ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(n,t,o)=>{var i;const l=(i=o?.map(u=>t.find(d=>d.id===u)).filter(Boolean))!=null?i:[];return Ai(n,l,e,"left")},Me(e.options,Kt)),e.getRightHeaderGroups=Ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(n,t,o)=>{var i;const l=(i=o?.map(u=>t.find(d=>d.id===u)).filter(Boolean))!=null?i:[];return Ai(n,l,e,"right")},Me(e.options,Kt)),e.getFooterGroups=Ae(()=>[e.getHeaderGroups()],n=>[...n].reverse(),Me(e.options,Kt)),e.getLeftFooterGroups=Ae(()=>[e.getLeftHeaderGroups()],n=>[...n].reverse(),Me(e.options,Kt)),e.getCenterFooterGroups=Ae(()=>[e.getCenterHeaderGroups()],n=>[...n].reverse(),Me(e.options,Kt)),e.getRightFooterGroups=Ae(()=>[e.getRightHeaderGroups()],n=>[...n].reverse(),Me(e.options,Kt)),e.getFlatHeaders=Ae(()=>[e.getHeaderGroups()],n=>n.map(t=>t.headers).flat(),Me(e.options,Kt)),e.getLeftFlatHeaders=Ae(()=>[e.getLeftHeaderGroups()],n=>n.map(t=>t.headers).flat(),Me(e.options,Kt)),e.getCenterFlatHeaders=Ae(()=>[e.getCenterHeaderGroups()],n=>n.map(t=>t.headers).flat(),Me(e.options,Kt)),e.getRightFlatHeaders=Ae(()=>[e.getRightHeaderGroups()],n=>n.map(t=>t.headers).flat(),Me(e.options,Kt)),e.getCenterLeafHeaders=Ae(()=>[e.getCenterFlatHeaders()],n=>n.filter(t=>{var o;return!((o=t.subHeaders)!=null&&o.length)}),Me(e.options,Kt)),e.getLeftLeafHeaders=Ae(()=>[e.getLeftFlatHeaders()],n=>n.filter(t=>{var o;return!((o=t.subHeaders)!=null&&o.length)}),Me(e.options,Kt)),e.getRightLeafHeaders=Ae(()=>[e.getRightFlatHeaders()],n=>n.filter(t=>{var o;return!((o=t.subHeaders)!=null&&o.length)}),Me(e.options,Kt)),e.getLeafHeaders=Ae(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(n,t,o)=>{var i,l,u,d,p,f;return[...(i=(l=n[0])==null?void 0:l.headers)!=null?i:[],...(u=(d=t[0])==null?void 0:d.headers)!=null?u:[],...(p=(f=o[0])==null?void 0:f.headers)!=null?p:[]].map(g=>g.getLeafHeaders()).flat()},Me(e.options,Kt))}};function Ai(e,n,t,o){var i,l;let u=0;const d=function(x,m){m===void 0&&(m=1),u=Math.max(u,m),x.filter(S=>S.getIsVisible()).forEach(S=>{var w;(w=S.columns)!=null&&w.length&&d(S.columns,m+1)},0)};d(e);let p=[];const f=(x,m)=>{const S={depth:m,id:[o,`${m}`].filter(Boolean).join("_"),headers:[]},w=[];x.forEach($=>{const _=[...w].reverse()[0],y=$.column.depth===S.depth;let R,M=!1;if(y&&$.column.parent?R=$.column.parent:(R=$.column,M=!0),_&&_?.column===R)_.subHeaders.push($);else{const E=dh(t,R,{id:[o,m,R.id,$?.id].filter(Boolean).join("_"),isPlaceholder:M,placeholderId:M?`${w.filter(I=>I.column===R).length}`:void 0,depth:m,index:w.length});E.subHeaders.push($),w.push(E)}S.headers.push($),$.headerGroup=S}),p.push(S),m>0&&f(w,m-1)},g=n.map((x,m)=>dh(t,x,{depth:u,index:m}));f(g,u-1),p.reverse();const v=x=>x.filter(S=>S.column.getIsVisible()).map(S=>{let w=0,$=0,_=[0];S.subHeaders&&S.subHeaders.length?(_=[],v(S.subHeaders).forEach(R=>{let{colSpan:M,rowSpan:E}=R;w+=M,_.push(E)})):w=1;const y=Math.min(..._);return $=$+y,S.colSpan=w,S.rowSpan=$,{colSpan:w,rowSpan:$}});return v((i=(l=p[0])==null?void 0:l.headers)!=null?i:[]),p}const Mi={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},su=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),YA={getDefaultColumnDef:()=>Mi,getInitialState:e=>({columnSizing:{},columnSizingInfo:su(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Dn("columnSizing",e),onColumnSizingInfoChange:Dn("columnSizingInfo",e)}),createColumn:(e,n)=>{e.getSize=()=>{var t,o,i;const l=n.getState().columnSizing[e.id];return Math.min(Math.max((t=e.columnDef.minSize)!=null?t:Mi.minSize,(o=l??e.columnDef.size)!=null?o:Mi.size),(i=e.columnDef.maxSize)!=null?i:Mi.maxSize)},e.getStart=Ae(t=>[t,ta(n,t),n.getState().columnSizing],(t,o)=>o.slice(0,e.getIndex(t)).reduce((i,l)=>i+l.getSize(),0),Me(n.options,"debugColumns")),e.getAfter=Ae(t=>[t,ta(n,t),n.getState().columnSizing],(t,o)=>o.slice(e.getIndex(t)+1).reduce((i,l)=>i+l.getSize(),0),Me(n.options,"debugColumns")),e.resetSize=()=>{n.setColumnSizing(t=>{let{[e.id]:o,...i}=t;return i})},e.getCanResize=()=>{var t,o;return((t=e.columnDef.enableResizing)!=null?t:!0)&&((o=n.options.enableColumnResizing)!=null?o:!0)},e.getIsResizing=()=>n.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,n)=>{e.getSize=()=>{let t=0;const o=i=>{if(i.subHeaders.length)i.subHeaders.forEach(o);else{var l;t+=(l=i.column.getSize())!=null?l:0}};return o(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=t=>{const o=n.getColumn(e.column.id),i=o?.getCanResize();return l=>{if(!o||!i||(l.persist==null||l.persist(),au(l)&&l.touches&&l.touches.length>1))return;const u=e.getSize(),d=e?e.getLeafHeaders().map(_=>[_.column.id,_.column.getSize()]):[[o.id,o.getSize()]],p=au(l)?Math.round(l.touches[0].clientX):l.clientX,f={},g=(_,y)=>{typeof y=="number"&&(n.setColumnSizingInfo(R=>{var M,E;const I=n.options.columnResizeDirection==="rtl"?-1:1,H=(y-((M=R?.startOffset)!=null?M:0))*I,P=Math.max(H/((E=R?.startSize)!=null?E:0),-.999999);return R.columnSizingStart.forEach(D=>{let[k,L]=D;f[k]=Math.round(Math.max(L+L*P,0)*100)/100}),{...R,deltaOffset:H,deltaPercentage:P}}),(n.options.columnResizeMode==="onChange"||_==="end")&&n.setColumnSizing(R=>({...R,...f})))},v=_=>g("move",_),x=_=>{g("end",_),n.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},m=t||typeof document<"u"?document:null,S={moveHandler:_=>v(_.clientX),upHandler:_=>{m?.removeEventListener("mousemove",S.moveHandler),m?.removeEventListener("mouseup",S.upHandler),x(_.clientX)}},w={moveHandler:_=>(_.cancelable&&(_.preventDefault(),_.stopPropagation()),v(_.touches[0].clientX),!1),upHandler:_=>{var y;m?.removeEventListener("touchmove",w.moveHandler),m?.removeEventListener("touchend",w.upHandler),_.cancelable&&(_.preventDefault(),_.stopPropagation()),x((y=_.touches[0])==null?void 0:y.clientX)}},$=JA()?{passive:!1}:!1;au(l)?(m?.addEventListener("touchmove",w.moveHandler,$),m?.addEventListener("touchend",w.upHandler,$)):(m?.addEventListener("mousemove",S.moveHandler,$),m?.addEventListener("mouseup",S.upHandler,$)),n.setColumnSizingInfo(_=>({..._,startOffset:p,startSize:u,deltaOffset:0,deltaPercentage:0,columnSizingStart:d,isResizingColumn:o.id}))}}},createTable:e=>{e.setColumnSizing=n=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(n),e.setColumnSizingInfo=n=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(n),e.resetColumnSizing=n=>{var t;e.setColumnSizing(n?{}:(t=e.initialState.columnSizing)!=null?t:{})},e.resetHeaderSizeInfo=n=>{var t;e.setColumnSizingInfo(n?su():(t=e.initialState.columnSizingInfo)!=null?t:su())},e.getTotalSize=()=>{var n,t;return(n=(t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((o,i)=>o+i.getSize(),0))!=null?n:0},e.getLeftTotalSize=()=>{var n,t;return(n=(t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((o,i)=>o+i.getSize(),0))!=null?n:0},e.getCenterTotalSize=()=>{var n,t;return(n=(t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((o,i)=>o+i.getSize(),0))!=null?n:0},e.getRightTotalSize=()=>{var n,t;return(n=(t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((o,i)=>o+i.getSize(),0))!=null?n:0}}};let Di=null;function JA(){if(typeof Di=="boolean")return Di;let e=!1;try{const n={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,n),window.removeEventListener("test",t)}catch{e=!1}return Di=e,Di}function au(e){return e.type==="touchstart"}const ZA={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Dn("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let n=!1,t=!1;e._autoResetExpanded=()=>{var o,i;if(!n){e._queue(()=>{n=!0});return}if((o=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?o:!e.options.manualExpanding){if(t)return;t=!0,e._queue(()=>{e.resetExpanded(),t=!1})}},e.setExpanded=o=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(o),e.toggleAllRowsExpanded=o=>{o??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=o=>{var i,l;e.setExpanded(o?{}:(i=(l=e.initialState)==null?void 0:l.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const o=e.getState().expanded;return o===!0||Object.values(o).some(Boolean)},e.getIsAllRowsExpanded=()=>{const o=e.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let o=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(l=>{const u=l.split(".");o=Math.max(o,u.length)}),o},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,n)=>{e.toggleExpanded=t=>{n.setExpanded(o=>{var i;const l=o===!0?!0:!!(o!=null&&o[e.id]);let u={};if(o===!0?Object.keys(n.getRowModel().rowsById).forEach(d=>{u[d]=!0}):u=o,t=(i=t)!=null?i:!l,!l&&t)return{...u,[e.id]:!0};if(l&&!t){const{[e.id]:d,...p}=u;return p}return o})},e.getIsExpanded=()=>{var t;const o=n.getState().expanded;return!!((t=n.options.getIsRowExpanded==null?void 0:n.options.getIsRowExpanded(e))!=null?t:o===!0||o?.[e.id])},e.getCanExpand=()=>{var t,o,i;return(t=n.options.getRowCanExpand==null?void 0:n.options.getRowCanExpand(e))!=null?t:((o=n.options.enableExpanding)!=null?o:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let t=!0,o=e;for(;t&&o.parentId;)o=n.getRow(o.parentId,!0),t=o.getIsExpanded();return t},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Fx=(e,n,t)=>{var o;const i=t.toLowerCase();return!!(!((o=e.getValue(n))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};Fx.autoRemove=e=>ir(e);const Ox=(e,n,t)=>{var o;return!!(!((o=e.getValue(n))==null||(o=o.toString())==null)&&o.includes(t))};Ox.autoRemove=e=>ir(e);const zx=(e,n,t)=>{var o;return((o=e.getValue(n))==null||(o=o.toString())==null?void 0:o.toLowerCase())===t?.toLowerCase()};zx.autoRemove=e=>ir(e);const Bx=(e,n,t)=>{var o;return(o=e.getValue(n))==null?void 0:o.includes(t)};Bx.autoRemove=e=>ir(e)||!(e!=null&&e.length);const Hx=(e,n,t)=>!t.some(o=>{var i;return!((i=e.getValue(n))!=null&&i.includes(o))});Hx.autoRemove=e=>ir(e)||!(e!=null&&e.length);const Vx=(e,n,t)=>t.some(o=>{var i;return(i=e.getValue(n))==null?void 0:i.includes(o)});Vx.autoRemove=e=>ir(e)||!(e!=null&&e.length);const Gx=(e,n,t)=>e.getValue(n)===t;Gx.autoRemove=e=>ir(e);const Wx=(e,n,t)=>e.getValue(n)==t;Wx.autoRemove=e=>ir(e);const Id=(e,n,t)=>{let[o,i]=t;const l=e.getValue(n);return l>=o&&l<=i};Id.resolveFilterValue=e=>{let[n,t]=e,o=typeof n!="number"?parseFloat(n):n,i=typeof t!="number"?parseFloat(t):t,l=n===null||Number.isNaN(o)?-1/0:o,u=t===null||Number.isNaN(i)?1/0:i;if(l>u){const d=l;l=u,u=d}return[l,u]};Id.autoRemove=e=>ir(e)||ir(e[0])&&ir(e[1]);const Er={includesString:Fx,includesStringSensitive:Ox,equalsString:zx,arrIncludes:Bx,arrIncludesAll:Hx,arrIncludesSome:Vx,equals:Gx,weakEquals:Wx,inNumberRange:Id};function ir(e){return e==null||e===""}const QA={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Dn("columnFilters",e),onGlobalFilterChange:Dn("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:n=>{var t;const o=(t=e.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[n.id])==null?void 0:t.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,n)=>{e.getAutoFilterFn=()=>{const t=n.getCoreRowModel().flatRows[0],o=t?.getValue(e.id);return typeof o=="string"?Er.includesString:typeof o=="number"?Er.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?Er.equals:Array.isArray(o)?Er.arrIncludes:Er.weakEquals},e.getFilterFn=()=>{var t,o;return nl(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(t=(o=n.options.filterFns)==null?void 0:o[e.columnDef.filterFn])!=null?t:Er[e.columnDef.filterFn]},e.getCanFilter=()=>{var t,o,i;return((t=e.columnDef.enableColumnFilter)!=null?t:!0)&&((o=n.options.enableColumnFilters)!=null?o:!0)&&((i=n.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var t,o,i,l;return((t=e.columnDef.enableGlobalFilter)!=null?t:!0)&&((o=n.options.enableGlobalFilter)!=null?o:!0)&&((i=n.options.enableFilters)!=null?i:!0)&&((l=n.options.getColumnCanGlobalFilter==null?void 0:n.options.getColumnCanGlobalFilter(e))!=null?l:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var t;return(t=n.getState().columnFilters)==null||(t=t.find(o=>o.id===e.id))==null?void 0:t.value},e.getFilterIndex=()=>{var t,o;return(t=(o=n.getState().columnFilters)==null?void 0:o.findIndex(i=>i.id===e.id))!=null?t:-1},e.setFilterValue=t=>{n.setColumnFilters(o=>{const i=e.getFilterFn(),l=o?.find(g=>g.id===e.id),u=oo(t,l?l.value:void 0);if(fh(i,u,e)){var d;return(d=o?.filter(g=>g.id!==e.id))!=null?d:[]}const p={id:e.id,value:u};if(l){var f;return(f=o?.map(g=>g.id===e.id?p:g))!=null?f:[]}return o!=null&&o.length?[...o,p]:[p]})},e._getFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():n.getPreFilteredRowModel(),e._getFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,n)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Er.includesString,e.getGlobalFilterFn=()=>{var n,t;const{globalFilterFn:o}=e.options;return nl(o)?o:o==="auto"?e.getGlobalAutoFilterFn():(n=(t=e.options.filterFns)==null?void 0:t[o])!=null?n:Er[o]},e.setColumnFilters=n=>{const t=e.getAllLeafColumns(),o=i=>{var l;return(l=oo(n,i))==null?void 0:l.filter(u=>{const d=t.find(p=>p.id===u.id);if(d){const p=d.getFilterFn();if(fh(p,u.value,d))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(o)},e.setGlobalFilter=n=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(n)},e.resetGlobalFilter=n=>{e.setGlobalFilter(n?void 0:e.initialState.globalFilter)},e.resetColumnFilters=n=>{var t,o;e.setColumnFilters(n?[]:(t=(o=e.initialState)==null?void 0:o.columnFilters)!=null?t:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function fh(e,n,t){return(e&&e.autoRemove?e.autoRemove(n,t):!1)||typeof n>"u"||typeof n=="string"&&!n}const e4=(e,n,t)=>t.reduce((o,i)=>{const l=i.getValue(e);return o+(typeof l=="number"?l:0)},0),t4=(e,n,t)=>{let o;return t.forEach(i=>{const l=i.getValue(e);l!=null&&(o>l||o===void 0&&l>=l)&&(o=l)}),o},n4=(e,n,t)=>{let o;return t.forEach(i=>{const l=i.getValue(e);l!=null&&(o=l)&&(o=l)}),o},r4=(e,n,t)=>{let o,i;return t.forEach(l=>{const u=l.getValue(e);u!=null&&(o===void 0?u>=u&&(o=i=u):(o>u&&(o=u),i{let t=0,o=0;if(n.forEach(i=>{let l=i.getValue(e);l!=null&&(l=+l)>=l&&(++t,o+=l)}),t)return o/t},s4=(e,n)=>{if(!n.length)return;const t=n.map(l=>l.getValue(e));if(!UA(t))return;if(t.length===1)return t[0];const o=Math.floor(t.length/2),i=t.sort((l,u)=>l-u);return t.length%2!==0?i[o]:(i[o-1]+i[o])/2},a4=(e,n)=>Array.from(new Set(n.map(t=>t.getValue(e))).values()),i4=(e,n)=>new Set(n.map(t=>t.getValue(e))).size,l4=(e,n)=>n.length,iu={sum:e4,min:t4,max:n4,extent:r4,mean:o4,median:s4,unique:a4,uniqueCount:i4,count:l4},c4={getDefaultColumnDef:()=>({aggregatedCell:e=>{var n,t;return(n=(t=e.getValue())==null||t.toString==null?void 0:t.toString())!=null?n:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Dn("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,n)=>{e.toggleGrouping=()=>{n.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(o=>o!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var t,o,i,l;return(t=(o=(i=(l=e.columnDef.enableGrouping)!=null?l:!0)!=null?i:n.options.enableGrouping)!=null?o:!0)!=null?t:!!e.accessorFn},e.getIsGrouped=()=>{var t;return(t=n.getState().grouping)==null?void 0:t.includes(e.id)},e.getGroupedIndex=()=>{var t;return(t=n.getState().grouping)==null?void 0:t.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const t=n.getCoreRowModel().flatRows[0],o=t?.getValue(e.id);if(typeof o=="number")return iu.sum;if(Object.prototype.toString.call(o)==="[object Date]")return iu.extent},e.getAggregationFn=()=>{var t,o;if(!e)throw new Error;return nl(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(t=(o=n.options.aggregationFns)==null?void 0:o[e.columnDef.aggregationFn])!=null?t:iu[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=n=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(n),e.resetGrouping=n=>{var t,o;e.setGrouping(n?[]:(t=(o=e.initialState)==null?void 0:o.grouping)!=null?t:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,n)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=t=>{if(e._groupingValuesCache.hasOwnProperty(t))return e._groupingValuesCache[t];const o=n.getColumn(t);return o!=null&&o.columnDef.getGroupingValue?(e._groupingValuesCache[t]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[t]):e.getValue(t)},e._groupingValuesCache={}},createCell:(e,n,t,o)=>{e.getIsGrouped=()=>n.getIsGrouped()&&n.id===t.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&n.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=t.subRows)!=null&&i.length)}}};function u4(e,n,t){if(!(n!=null&&n.length)||!t)return e;const o=e.filter(l=>!n.includes(l.id));return t==="remove"?o:[...n.map(l=>e.find(u=>u.id===l)).filter(Boolean),...o]}const d4={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Dn("columnOrder",e)}),createColumn:(e,n)=>{e.getIndex=Ae(t=>[ta(n,t)],t=>t.findIndex(o=>o.id===e.id),Me(n.options,"debugColumns")),e.getIsFirstColumn=t=>{var o;return((o=ta(n,t)[0])==null?void 0:o.id)===e.id},e.getIsLastColumn=t=>{var o;const i=ta(n,t);return((o=i[i.length-1])==null?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=n=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(n),e.resetColumnOrder=n=>{var t;e.setColumnOrder(n?[]:(t=e.initialState.columnOrder)!=null?t:[])},e._getOrderColumnsFn=Ae(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(n,t,o)=>i=>{let l=[];if(!(n!=null&&n.length))l=i;else{const u=[...n],d=[...i];for(;d.length&&u.length;){const p=u.shift(),f=d.findIndex(g=>g.id===p);f>-1&&l.push(d.splice(f,1)[0])}l=[...l,...d]}return u4(l,t,o)},Me(e.options,"debugTable"))}},Hu=0,Vu=10,lu=()=>({pageIndex:Hu,pageSize:Vu}),f4={getInitialState:e=>({...e,pagination:{...lu(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Dn("pagination",e)}),createTable:e=>{let n=!1,t=!1;e._autoResetPageIndex=()=>{var o,i;if(!n){e._queue(()=>{n=!0});return}if((o=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?o:!e.options.manualPagination){if(t)return;t=!0,e._queue(()=>{e.resetPageIndex(),t=!1})}},e.setPagination=o=>{const i=l=>oo(o,l);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=o=>{var i;e.setPagination(o?lu():(i=e.initialState.pagination)!=null?i:lu())},e.setPageIndex=o=>{e.setPagination(i=>{let l=oo(o,i.pageIndex);const u=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return l=Math.max(0,Math.min(l,u)),{...i,pageIndex:l}})},e.resetPageIndex=o=>{var i,l;e.setPageIndex(o?Hu:(i=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageIndex)!=null?i:Hu)},e.resetPageSize=o=>{var i,l;e.setPageSize(o?Vu:(i=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageSize)!=null?i:Vu)},e.setPageSize=o=>{e.setPagination(i=>{const l=Math.max(1,oo(o,i.pageSize)),u=i.pageSize*i.pageIndex,d=Math.floor(u/l);return{...i,pageIndex:d,pageSize:l}})},e.setPageCount=o=>e.setPagination(i=>{var l;let u=oo(o,(l=e.options.pageCount)!=null?l:-1);return typeof u=="number"&&(u=Math.max(-1,u)),{...i,pageCount:u}}),e.getPageOptions=Ae(()=>[e.getPageCount()],o=>{let i=[];return o&&o>0&&(i=[...new Array(o)].fill(null).map((l,u)=>u)),i},Me(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:o}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:oe.setPageIndex(o=>o-1),e.nextPage=()=>e.setPageIndex(o=>o+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var o;return(o=e.options.pageCount)!=null?o:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var o;return(o=e.options.rowCount)!=null?o:e.getPrePaginationRowModel().rows.length}}},cu=()=>({left:[],right:[]}),uu=()=>({top:[],bottom:[]}),p4={getInitialState:e=>({columnPinning:cu(),rowPinning:uu(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Dn("columnPinning",e),onRowPinningChange:Dn("rowPinning",e)}),createColumn:(e,n)=>{e.pin=t=>{const o=e.getLeafColumns().map(i=>i.id).filter(Boolean);n.setColumnPinning(i=>{var l,u;if(t==="right"){var d,p;return{left:((d=i?.left)!=null?d:[]).filter(v=>!(o!=null&&o.includes(v))),right:[...((p=i?.right)!=null?p:[]).filter(v=>!(o!=null&&o.includes(v))),...o]}}if(t==="left"){var f,g;return{left:[...((f=i?.left)!=null?f:[]).filter(v=>!(o!=null&&o.includes(v))),...o],right:((g=i?.right)!=null?g:[]).filter(v=>!(o!=null&&o.includes(v)))}}return{left:((l=i?.left)!=null?l:[]).filter(v=>!(o!=null&&o.includes(v))),right:((u=i?.right)!=null?u:[]).filter(v=>!(o!=null&&o.includes(v)))}})},e.getCanPin=()=>e.getLeafColumns().some(o=>{var i,l,u;return((i=o.columnDef.enablePinning)!=null?i:!0)&&((l=(u=n.options.enableColumnPinning)!=null?u:n.options.enablePinning)!=null?l:!0)}),e.getIsPinned=()=>{const t=e.getLeafColumns().map(d=>d.id),{left:o,right:i}=n.getState().columnPinning,l=t.some(d=>o?.includes(d)),u=t.some(d=>i?.includes(d));return l?"left":u?"right":!1},e.getPinnedIndex=()=>{var t,o;const i=e.getIsPinned();return i?(t=(o=n.getState().columnPinning)==null||(o=o[i])==null?void 0:o.indexOf(e.id))!=null?t:-1:0}},createRow:(e,n)=>{e.pin=(t,o,i)=>{const l=o?e.getLeafRows().map(p=>{let{id:f}=p;return f}):[],u=i?e.getParentRows().map(p=>{let{id:f}=p;return f}):[],d=new Set([...u,e.id,...l]);n.setRowPinning(p=>{var f,g;if(t==="bottom"){var v,x;return{top:((v=p?.top)!=null?v:[]).filter(w=>!(d!=null&&d.has(w))),bottom:[...((x=p?.bottom)!=null?x:[]).filter(w=>!(d!=null&&d.has(w))),...Array.from(d)]}}if(t==="top"){var m,S;return{top:[...((m=p?.top)!=null?m:[]).filter(w=>!(d!=null&&d.has(w))),...Array.from(d)],bottom:((S=p?.bottom)!=null?S:[]).filter(w=>!(d!=null&&d.has(w)))}}return{top:((f=p?.top)!=null?f:[]).filter(w=>!(d!=null&&d.has(w))),bottom:((g=p?.bottom)!=null?g:[]).filter(w=>!(d!=null&&d.has(w)))}})},e.getCanPin=()=>{var t;const{enableRowPinning:o,enablePinning:i}=n.options;return typeof o=="function"?o(e):(t=o??i)!=null?t:!0},e.getIsPinned=()=>{const t=[e.id],{top:o,bottom:i}=n.getState().rowPinning,l=t.some(d=>o?.includes(d)),u=t.some(d=>i?.includes(d));return l?"top":u?"bottom":!1},e.getPinnedIndex=()=>{var t,o;const i=e.getIsPinned();if(!i)return-1;const l=(t=n._getPinnedRows(i))==null?void 0:t.map(u=>{let{id:d}=u;return d});return(o=l?.indexOf(e.id))!=null?o:-1},e.getCenterVisibleCells=Ae(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,n.getState().columnPinning.right],(t,o,i)=>{const l=[...o??[],...i??[]];return t.filter(u=>!l.includes(u.column.id))},Me(n.options,"debugRows")),e.getLeftVisibleCells=Ae(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left],(t,o)=>(o??[]).map(l=>t.find(u=>u.column.id===l)).filter(Boolean).map(l=>({...l,position:"left"})),Me(n.options,"debugRows")),e.getRightVisibleCells=Ae(()=>[e._getAllVisibleCells(),n.getState().columnPinning.right],(t,o)=>(o??[]).map(l=>t.find(u=>u.column.id===l)).filter(Boolean).map(l=>({...l,position:"right"})),Me(n.options,"debugRows"))},createTable:e=>{e.setColumnPinning=n=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(n),e.resetColumnPinning=n=>{var t,o;return e.setColumnPinning(n?cu():(t=(o=e.initialState)==null?void 0:o.columnPinning)!=null?t:cu())},e.getIsSomeColumnsPinned=n=>{var t;const o=e.getState().columnPinning;if(!n){var i,l;return!!((i=o.left)!=null&&i.length||(l=o.right)!=null&&l.length)}return!!((t=o[n])!=null&&t.length)},e.getLeftLeafColumns=Ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(n,t)=>(t??[]).map(o=>n.find(i=>i.id===o)).filter(Boolean),Me(e.options,"debugColumns")),e.getRightLeafColumns=Ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(n,t)=>(t??[]).map(o=>n.find(i=>i.id===o)).filter(Boolean),Me(e.options,"debugColumns")),e.getCenterLeafColumns=Ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,o)=>{const i=[...t??[],...o??[]];return n.filter(l=>!i.includes(l.id))},Me(e.options,"debugColumns")),e.setRowPinning=n=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(n),e.resetRowPinning=n=>{var t,o;return e.setRowPinning(n?uu():(t=(o=e.initialState)==null?void 0:o.rowPinning)!=null?t:uu())},e.getIsSomeRowsPinned=n=>{var t;const o=e.getState().rowPinning;if(!n){var i,l;return!!((i=o.top)!=null&&i.length||(l=o.bottom)!=null&&l.length)}return!!((t=o[n])!=null&&t.length)},e._getPinnedRows=Ae(n=>[e.getRowModel().rows,e.getState().rowPinning[n],n],(n,t,o)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(t??[]).map(u=>{const d=e.getRow(u,!0);return d.getIsAllParentsExpanded()?d:null}):(t??[]).map(u=>n.find(d=>d.id===u))).filter(Boolean).map(u=>({...u,position:o}))},Me(e.options,"debugRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=Ae(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(n,t,o)=>{const i=new Set([...t??[],...o??[]]);return n.filter(l=>!i.has(l.id))},Me(e.options,"debugRows"))}},g4={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Dn("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=n=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(n),e.resetRowSelection=n=>{var t;return e.setRowSelection(n?{}:(t=e.initialState.rowSelection)!=null?t:{})},e.toggleAllRowsSelected=n=>{e.setRowSelection(t=>{n=typeof n<"u"?n:!e.getIsAllRowsSelected();const o={...t},i=e.getPreGroupedRowModel().flatRows;return n?i.forEach(l=>{l.getCanSelect()&&(o[l.id]=!0)}):i.forEach(l=>{delete o[l.id]}),o})},e.toggleAllPageRowsSelected=n=>e.setRowSelection(t=>{const o=typeof n<"u"?n:!e.getIsAllPageRowsSelected(),i={...t};return e.getRowModel().rows.forEach(l=>{Gu(i,l.id,o,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Ae(()=>[e.getState().rowSelection,e.getCoreRowModel()],(n,t)=>Object.keys(n).length?du(e,t):{rows:[],flatRows:[],rowsById:{}},Me(e.options,"debugTable")),e.getFilteredSelectedRowModel=Ae(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(n,t)=>Object.keys(n).length?du(e,t):{rows:[],flatRows:[],rowsById:{}},Me(e.options,"debugTable")),e.getGroupedSelectedRowModel=Ae(()=>[e.getState().rowSelection,e.getSortedRowModel()],(n,t)=>Object.keys(n).length?du(e,t):{rows:[],flatRows:[],rowsById:{}},Me(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const n=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let o=!!(n.length&&Object.keys(t).length);return o&&n.some(i=>i.getCanSelect()&&!t[i.id])&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:t}=e.getState();let o=!!n.length;return o&&n.some(i=>!t[i.id])&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var n;const t=Object.keys((n=e.getState().rowSelection)!=null?n:{}).length;return t>0&&t{const n=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:n.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>n=>{e.toggleAllRowsSelected(n.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>n=>{e.toggleAllPageRowsSelected(n.target.checked)}},createRow:(e,n)=>{e.toggleSelected=(t,o)=>{const i=e.getIsSelected();n.setRowSelection(l=>{var u;if(t=typeof t<"u"?t:!i,e.getCanSelect()&&i===t)return l;const d={...l};return Gu(d,e.id,t,(u=o?.selectChildren)!=null?u:!0,n),d})},e.getIsSelected=()=>{const{rowSelection:t}=n.getState();return Ld(e,t)},e.getIsSomeSelected=()=>{const{rowSelection:t}=n.getState();return Wu(e,t)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=n.getState();return Wu(e,t)==="all"},e.getCanSelect=()=>{var t;return typeof n.options.enableRowSelection=="function"?n.options.enableRowSelection(e):(t=n.options.enableRowSelection)!=null?t:!0},e.getCanSelectSubRows=()=>{var t;return typeof n.options.enableSubRowSelection=="function"?n.options.enableSubRowSelection(e):(t=n.options.enableSubRowSelection)!=null?t:!0},e.getCanMultiSelect=()=>{var t;return typeof n.options.enableMultiRowSelection=="function"?n.options.enableMultiRowSelection(e):(t=n.options.enableMultiRowSelection)!=null?t:!0},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return o=>{var i;t&&e.toggleSelected((i=o.target)==null?void 0:i.checked)}}}},Gu=(e,n,t,o,i)=>{var l;const u=i.getRow(n,!0);t?(u.getCanMultiSelect()||Object.keys(e).forEach(d=>delete e[d]),u.getCanSelect()&&(e[n]=!0)):delete e[n],o&&(l=u.subRows)!=null&&l.length&&u.getCanSelectSubRows()&&u.subRows.forEach(d=>Gu(e,d.id,t,o,i))};function du(e,n){const t=e.getState().rowSelection,o=[],i={},l=function(u,d){return u.map(p=>{var f;const g=Ld(p,t);if(g&&(o.push(p),i[p.id]=p),(f=p.subRows)!=null&&f.length&&(p={...p,subRows:l(p.subRows)}),g)return p}).filter(Boolean)};return{rows:l(n.rows),flatRows:o,rowsById:i}}function Ld(e,n){var t;return(t=n[e.id])!=null?t:!1}function Wu(e,n,t){var o;if(!((o=e.subRows)!=null&&o.length))return!1;let i=!0,l=!1;return e.subRows.forEach(u=>{if(!(l&&!i)&&(u.getCanSelect()&&(Ld(u,n)?l=!0:i=!1),u.subRows&&u.subRows.length)){const d=Wu(u,n);d==="all"?l=!0:(d==="some"&&(l=!0),i=!1)}}),i?"all":l?"some":!1}const Uu=/([0-9]+)/gm,h4=(e,n,t)=>Ux(ao(e.getValue(t)).toLowerCase(),ao(n.getValue(t)).toLowerCase()),m4=(e,n,t)=>Ux(ao(e.getValue(t)),ao(n.getValue(t))),v4=(e,n,t)=>Fd(ao(e.getValue(t)).toLowerCase(),ao(n.getValue(t)).toLowerCase()),x4=(e,n,t)=>Fd(ao(e.getValue(t)),ao(n.getValue(t))),b4=(e,n,t)=>{const o=e.getValue(t),i=n.getValue(t);return o>i?1:oFd(e.getValue(t),n.getValue(t));function Fd(e,n){return e===n?0:e>n?1:-1}function ao(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Ux(e,n){const t=e.split(Uu).filter(Boolean),o=n.split(Uu).filter(Boolean);for(;t.length&&o.length;){const i=t.shift(),l=o.shift(),u=parseInt(i,10),d=parseInt(l,10),p=[u,d].sort();if(isNaN(p[0])){if(i>l)return 1;if(l>i)return-1;continue}if(isNaN(p[1]))return isNaN(u)?-1:1;if(u>d)return 1;if(d>u)return-1}return t.length-o.length}const zs={alphanumeric:h4,alphanumericCaseSensitive:m4,text:v4,textCaseSensitive:x4,datetime:b4,basic:y4},w4={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Dn("sorting",e),isMultiSortEvent:n=>n.shiftKey}),createColumn:(e,n)=>{e.getAutoSortingFn=()=>{const t=n.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const i of t){const l=i?.getValue(e.id);if(Object.prototype.toString.call(l)==="[object Date]")return zs.datetime;if(typeof l=="string"&&(o=!0,l.split(Uu).length>1))return zs.alphanumeric}return o?zs.text:zs.basic},e.getAutoSortDir=()=>{const t=n.getFilteredRowModel().flatRows[0];return typeof t?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var t,o;if(!e)throw new Error;return nl(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(t=(o=n.options.sortingFns)==null?void 0:o[e.columnDef.sortingFn])!=null?t:zs[e.columnDef.sortingFn]},e.toggleSorting=(t,o)=>{const i=e.getNextSortingOrder(),l=typeof t<"u"&&t!==null;n.setSorting(u=>{const d=u?.find(m=>m.id===e.id),p=u?.findIndex(m=>m.id===e.id);let f=[],g,v=l?t:i==="desc";if(u!=null&&u.length&&e.getCanMultiSort()&&o?d?g="toggle":g="add":u!=null&&u.length&&p!==u.length-1?g="replace":d?g="toggle":g="replace",g==="toggle"&&(l||i||(g="remove")),g==="add"){var x;f=[...u,{id:e.id,desc:v}],f.splice(0,f.length-((x=n.options.maxMultiSortColCount)!=null?x:Number.MAX_SAFE_INTEGER))}else g==="toggle"?f=u.map(m=>m.id===e.id?{...m,desc:v}:m):g==="remove"?f=u.filter(m=>m.id!==e.id):f=[{id:e.id,desc:v}];return f})},e.getFirstSortDir=()=>{var t,o;return((t=(o=e.columnDef.sortDescFirst)!=null?o:n.options.sortDescFirst)!=null?t:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=t=>{var o,i;const l=e.getFirstSortDir(),u=e.getIsSorted();return u?u!==l&&((o=n.options.enableSortingRemoval)==null||o)&&(!(t&&(i=n.options.enableMultiRemove)!=null)||i)?!1:u==="desc"?"asc":"desc":l},e.getCanSort=()=>{var t,o;return((t=e.columnDef.enableSorting)!=null?t:!0)&&((o=n.options.enableSorting)!=null?o:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var t,o;return(t=(o=e.columnDef.enableMultiSort)!=null?o:n.options.enableMultiSort)!=null?t:!!e.accessorFn},e.getIsSorted=()=>{var t;const o=(t=n.getState().sorting)==null?void 0:t.find(i=>i.id===e.id);return o?o.desc?"desc":"asc":!1},e.getSortIndex=()=>{var t,o;return(t=(o=n.getState().sorting)==null?void 0:o.findIndex(i=>i.id===e.id))!=null?t:-1},e.clearSorting=()=>{n.setSorting(t=>t!=null&&t.length?t.filter(o=>o.id!==e.id):[])},e.getToggleSortingHandler=()=>{const t=e.getCanSort();return o=>{t&&(o.persist==null||o.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?n.options.isMultiSortEvent==null?void 0:n.options.isMultiSortEvent(o):!1))}}},createTable:e=>{e.setSorting=n=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(n),e.resetSorting=n=>{var t,o;e.setSorting(n?[]:(t=(o=e.initialState)==null?void 0:o.sorting)!=null?t:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},_4={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Dn("columnVisibility",e)}),createColumn:(e,n)=>{e.toggleVisibility=t=>{e.getCanHide()&&n.setColumnVisibility(o=>({...o,[e.id]:t??!e.getIsVisible()}))},e.getIsVisible=()=>{var t,o;return(t=(o=n.getState().columnVisibility)==null?void 0:o[e.id])!=null?t:!0},e.getCanHide=()=>{var t,o;return((t=e.columnDef.enableHiding)!=null?t:!0)&&((o=n.options.enableHiding)!=null?o:!0)},e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,n)=>{e._getAllVisibleCells=Ae(()=>[e.getAllCells(),n.getState().columnVisibility],t=>t.filter(o=>o.column.getIsVisible()),Me(n.options,"debugRows")),e.getVisibleCells=Ae(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(t,o,i)=>[...t,...o,...i],Me(n.options,"debugRows"))},createTable:e=>{const n=(t,o)=>Ae(()=>[o(),o().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(l=>l.getIsVisible==null?void 0:l.getIsVisible()),Me(e.options,"debugColumns"));e.getVisibleFlatColumns=n("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=n("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=n("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=n("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=n("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var o;e.setColumnVisibility(t?{}:(o=e.initialState.columnVisibility)!=null?o:{})},e.toggleAllColumnsVisible=t=>{var o;t=(o=t)!=null?o:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,l)=>({...i,[l.id]:t||!(l.getCanHide!=null&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var o;e.toggleAllColumnsVisible((o=t.target)==null?void 0:o.checked)}}};function ta(e,n){return n?n==="center"?e.getCenterVisibleLeafColumns():n==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const ph=[KA,_4,d4,p4,QA,w4,c4,ZA,f4,g4,YA];function S4(e){var n;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let t={_features:ph};const o=t._features.reduce((g,v)=>Object.assign(g,v.getDefaultOptions==null?void 0:v.getDefaultOptions(t)),{}),i=g=>t.options.mergeOptions?t.options.mergeOptions(o,g):{...o,...g};let u={...{},...(n=e.initialState)!=null?n:{}};t._features.forEach(g=>{var v;u=(v=g.getInitialState==null?void 0:g.getInitialState(u))!=null?v:u});const d=[];let p=!1;const f={_features:ph,options:{...o,...e},initialState:u,_queue:g=>{d.push(g),p||(p=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();p=!1}).catch(v=>setTimeout(()=>{throw v})))},reset:()=>{t.setState(t.initialState)},setOptions:g=>{const v=oo(g,t.options);t.options=i(v)},getState:()=>t.options.state,setState:g=>{t.options.onStateChange==null||t.options.onStateChange(g)},_getRowId:(g,v,x)=>{var m;return(m=t.options.getRowId==null?void 0:t.options.getRowId(g,v,x))!=null?m:`${x?[x.id,v].join("."):v}`},getCoreRowModel:()=>(t._getCoreRowModel||(t._getCoreRowModel=t.options.getCoreRowModel(t)),t._getCoreRowModel()),getRowModel:()=>t.getPaginationRowModel(),getRow:(g,v)=>{let x=(v?t.getPrePaginationRowModel():t.getRowModel()).rowsById[g];if(!x&&(x=t.getCoreRowModel().rowsById[g],!x))throw new Error;return x},_getDefaultColumnDef:Ae(()=>[t.options.defaultColumn],g=>{var v;return g=(v=g)!=null?v:{},{header:x=>{const m=x.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:x=>{var m,S;return(m=(S=x.renderValue())==null||S.toString==null?void 0:S.toString())!=null?m:null},...t._features.reduce((x,m)=>Object.assign(x,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...g}},Me(e,"debugColumns")),_getColumnDefs:()=>t.options.columns,getAllColumns:Ae(()=>[t._getColumnDefs()],g=>{const v=function(x,m,S){return S===void 0&&(S=0),x.map(w=>{const $=qA(t,w,S,m),_=w;return $.columns=_.columns?v(_.columns,$,S+1):[],$})};return v(g)},Me(e,"debugColumns")),getAllFlatColumns:Ae(()=>[t.getAllColumns()],g=>g.flatMap(v=>v.getFlatColumns()),Me(e,"debugColumns")),_getAllFlatColumnsById:Ae(()=>[t.getAllFlatColumns()],g=>g.reduce((v,x)=>(v[x.id]=x,v),{}),Me(e,"debugColumns")),getAllLeafColumns:Ae(()=>[t.getAllColumns(),t._getOrderColumnsFn()],(g,v)=>{let x=g.flatMap(m=>m.getLeafColumns());return v(x)},Me(e,"debugColumns")),getColumn:g=>t._getAllFlatColumnsById()[g]};Object.assign(t,f);for(let g=0;g{var u;return(u=l.getValue())!=null?u:e.options.renderFallbackValue},l={id:`${n.id}_${t.id}`,row:n,column:t,getValue:()=>n.getValue(o),renderValue:i,getContext:Ae(()=>[e,t,n,l],(u,d,p,f)=>({table:u,column:d,row:p,cell:f,getValue:f.getValue,renderValue:f.renderValue}),Me(e.options,"debugCells"))};return e._features.forEach(u=>{u.createCell==null||u.createCell(l,t,n,e)},{}),l}const Od=(e,n,t,o,i,l,u)=>{let d={id:n,index:o,original:t,depth:i,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:p=>{if(d._valuesCache.hasOwnProperty(p))return d._valuesCache[p];const f=e.getColumn(p);if(f!=null&&f.accessorFn)return d._valuesCache[p]=f.accessorFn(d.original,o),d._valuesCache[p]},getUniqueValues:p=>{if(d._uniqueValuesCache.hasOwnProperty(p))return d._uniqueValuesCache[p];const f=e.getColumn(p);if(f!=null&&f.accessorFn)return f.columnDef.getUniqueValues?(d._uniqueValuesCache[p]=f.columnDef.getUniqueValues(d.original,o),d._uniqueValuesCache[p]):(d._uniqueValuesCache[p]=[d.getValue(p)],d._uniqueValuesCache[p])},renderValue:p=>{var f;return(f=d.getValue(p))!=null?f:e.options.renderFallbackValue},subRows:l??[],getLeafRows:()=>XA(d.subRows,p=>p.subRows),getParentRow:()=>d.parentId?e.getRow(d.parentId,!0):void 0,getParentRows:()=>{let p=[],f=d;for(;;){const g=f.getParentRow();if(!g)break;p.push(g),f=g}return p.reverse()},getAllCells:Ae(()=>[e.getAllLeafColumns()],p=>p.map(f=>C4(e,d,f,f.id)),Me(e.options,"debugRows")),_getAllCellsByColumnId:Ae(()=>[d.getAllCells()],p=>p.reduce((f,g)=>(f[g.column.id]=g,f),{}),Me(e.options,"debugRows"))};for(let p=0;pAe(()=>[e.options.data],n=>{const t={rows:[],flatRows:[],rowsById:{}},o=function(i,l,u){l===void 0&&(l=0);const d=[];for(let f=0;fe._autoResetPageIndex()))}function N4(e,n,t){return t.options.filterFromLeafRows?R4(e,n,t):$4(e,n,t)}function R4(e,n,t){var o;const i=[],l={},u=(o=t.options.maxLeafRowFilterDepth)!=null?o:100,d=function(p,f){f===void 0&&(f=0);const g=[];for(let x=0;xAe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(n,t,o)=>{if(!n.rows.length||!(t!=null&&t.length)&&!o){for(let x=0;x{var m;const S=e.getColumn(x.id);if(!S)return;const w=S.getFilterFn();w&&i.push({id:x.id,filterFn:w,resolvedValue:(m=w.resolveFilterValue==null?void 0:w.resolveFilterValue(x.value))!=null?m:x.value})});const u=t.map(x=>x.id),d=e.getGlobalFilterFn(),p=e.getAllLeafColumns().filter(x=>x.getCanGlobalFilter());o&&d&&p.length&&(u.push("__global__"),p.forEach(x=>{var m;l.push({id:x.id,filterFn:d,resolvedValue:(m=d.resolveFilterValue==null?void 0:d.resolveFilterValue(o))!=null?m:o})}));let f,g;for(let x=0;x{m.columnFiltersMeta[w]=$})}if(l.length){for(let S=0;S{m.columnFiltersMeta[w]=$})){m.columnFilters.__global__=!0;break}}m.columnFilters.__global__!==!0&&(m.columnFilters.__global__=!1)}}const v=x=>{for(let m=0;me._autoResetPageIndex()))}function P4(){return e=>Ae(()=>[e.getState().sorting,e.getPreSortedRowModel()],(n,t)=>{if(!t.rows.length||!(n!=null&&n.length))return t;const o=e.getState().sorting,i=[],l=o.filter(p=>{var f;return(f=e.getColumn(p.id))==null?void 0:f.getCanSort()}),u={};l.forEach(p=>{const f=e.getColumn(p.id);f&&(u[p.id]={sortUndefined:f.columnDef.sortUndefined,invertSorting:f.columnDef.invertSorting,sortingFn:f.getSortingFn()})});const d=p=>{const f=p.map(g=>({...g}));return f.sort((g,v)=>{for(let m=0;m{var v;i.push(g),(v=g.subRows)!=null&&v.length&&(g.subRows=d(g.subRows))}),f};return{rows:d(t.rows),flatRows:i,rowsById:t.rowsById}},Me(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function A4(e){const n=[],t=o=>{var i;n.push(o),(i=o.subRows)!=null&&i.length&&o.getIsExpanded()&&o.subRows.forEach(t)};return e.rows.forEach(t),{rows:n,flatRows:e.flatRows,rowsById:e.rowsById}}function M4(e){return n=>Ae(()=>[n.getState().pagination,n.getPrePaginationRowModel(),n.options.paginateExpandedRows?void 0:n.getState().expanded],(t,o)=>{if(!o.rows.length)return o;const{pageSize:i,pageIndex:l}=t;let{rows:u,flatRows:d,rowsById:p}=o;const f=i*l,g=f+i;u=u.slice(f,g);let v;n.options.paginateExpandedRows?v={rows:u,flatRows:d,rowsById:p}:v=A4({rows:u,flatRows:d,rowsById:p}),v.flatRows=[];const x=m=>{v.flatRows.push(m),m.subRows.length&&m.subRows.forEach(x)};return v.rows.forEach(x),v},Me(n.options,"debugTable"))}/** - * react-table - * - * Copyright (c) TanStack - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function gh(e,n){return e?D4(e)?C.createElement(e,n):e:null}function D4(e){return T4(e)||typeof e=="function"||k4(e)}function T4(e){return typeof e=="function"&&(()=>{const n=Object.getPrototypeOf(e);return n.prototype&&n.prototype.isReactComponent})()}function k4(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function I4(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=C.useState(()=>({current:S4(n)})),[o,i]=C.useState(()=>t.current.initialState);return t.current.setOptions(l=>({...l,...e,state:{...o,...e.state},onStateChange:u=>{i(u),e.onStateChange==null||e.onStateChange(u)}})),t.current}const L4=[{id:"m5gr84i9",amount:316,status:"success",email:"ken99@yahoo.com"},{id:"3u1reuv4",amount:242,status:"success",email:"Abe45@gmail.com"},{id:"derv1ws0",amount:837,status:"processing",email:"Monserrat44@gmail.com"},{id:"5kma53ae",amount:874,status:"success",email:"Silas22@gmail.com"},{id:"bhqecj4p",amount:721,status:"failed",email:"carmella@hotmail.com"}],hh=[{id:"select",header:({table:e})=>a.jsx(os,{checked:e.getIsAllPageRowsSelected()||e.getIsSomePageRowsSelected()&&"indeterminate",onCheckedChange:n=>e.toggleAllPageRowsSelected(!!n),"aria-label":"Select all"}),cell:({row:e})=>a.jsx(os,{checked:e.getIsSelected(),onCheckedChange:n=>e.toggleSelected(!!n),"aria-label":"Select row"}),enableSorting:!1,enableHiding:!1},{accessorKey:"status",header:"Status",cell:({row:e})=>a.jsx("div",{className:"capitalize",children:e.getValue("status")})},{accessorKey:"email",header:({column:e})=>a.jsxs(ft,{variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:["Email",a.jsx(_m,{className:"ml-2 h-4 w-4"})]}),cell:({row:e})=>a.jsx("div",{className:"lowercase",children:e.getValue("email")})},{accessorKey:"amount",header:()=>a.jsx("div",{className:"text-right",children:"Amount"}),cell:({row:e})=>{const n=parseFloat(e.getValue("amount")),t=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(n);return a.jsx("div",{className:"text-right font-medium",children:t})}},{id:"actions",enableHiding:!1,cell:({row:e})=>{const n=e.original;return a.jsxs(cd,{children:[a.jsx(ud,{asChild:!0,children:a.jsxs(ft,{className:"h-8 w-8 p-0",variant:"ghost",children:[a.jsx("span",{className:"sr-only",children:"Open menu"}),a.jsx(f0,{className:"h-4 w-4"})]})}),a.jsxs(ll,{align:"end",children:[a.jsx($0,{children:"Actions"}),a.jsx(qs,{onClick:()=>navigator.clipboard.writeText(n.id),children:"Copy payment ID"}),a.jsx(E0,{}),a.jsx(qs,{children:"View customer"}),a.jsx(qs,{children:"View payment details"})]})]})}}];function F4(){const[e,n]=C.useState([]),[t,o]=C.useState([]),[i,l]=C.useState({}),[u,d]=C.useState({}),p=I4({data:L4,columns:hh,onSortingChange:n,onColumnFiltersChange:o,getCoreRowModel:j4(),getPaginationRowModel:M4(),getSortedRowModel:P4(),getFilteredRowModel:E4(),onColumnVisibilityChange:l,onRowSelectionChange:d,state:{sorting:e,columnFilters:t,columnVisibility:i,rowSelection:u}});return a.jsxs("div",{className:"w-full",children:[a.jsxs("div",{className:"flex items-center py-4",children:[a.jsx(aa,{className:"max-w-sm",placeholder:"Filter emails...",value:p.getColumn("email")?.getFilterValue()??"",onChange:f=>p.getColumn("email")?.setFilterValue(f.target.value)}),a.jsxs(cd,{children:[a.jsx(ud,{asChild:!0,children:a.jsxs(ft,{className:"ml-auto",variant:"outline",children:["Columns",a.jsx(nd,{className:"ml-2 h-4 w-4"})]})}),a.jsx(ll,{align:"end",children:p.getAllColumns().filter(f=>f.getCanHide()).map(f=>a.jsx(R0,{className:"capitalize",checked:f.getIsVisible(),onCheckedChange:g=>f.toggleVisibility(!!g),children:f.id},f.id))})]})]}),a.jsx("div",{className:"rounded-md border",children:a.jsxs(vd,{children:[a.jsx(xd,{children:p.getHeaderGroups().map(f=>a.jsx(No,{children:f.headers.map(g=>a.jsx(Qo,{children:g.isPlaceholder?null:gh(g.column.columnDef.header,g.getContext())},g.id))},f.id))}),a.jsx(bd,{children:p.getRowModel().rows?.length?p.getRowModel().rows.map(f=>a.jsx(No,{"data-state":f.getIsSelected()&&"selected",children:f.getVisibleCells().map(g=>a.jsx(Dr,{children:gh(g.column.columnDef.cell,g.getContext())},g.id))},f.id)):a.jsx(No,{children:a.jsx(Dr,{className:"h-24 text-center",colSpan:hh.length,children:"No results."})})})]})}),a.jsxs("div",{className:"flex items-center justify-end space-x-2 py-4",children:[a.jsxs("div",{className:"flex-1 text-sm text-muted-foreground",children:[p.getFilteredSelectedRowModel().rows.length," of"," ",p.getFilteredRowModel().rows.length," row(s) selected."]}),a.jsxs("div",{className:"space-x-2",children:[a.jsx(ft,{variant:"outline",size:"sm",onClick:()=>p.previousPage(),disabled:!p.getCanPreviousPage(),children:"Previous"}),a.jsx(ft,{variant:"outline",size:"sm",onClick:()=>p.nextPage(),disabled:!p.getCanNextPage(),children:"Next"})]})]})]})}const O4=[{invoice:"INV001",paymentStatus:"Paid",totalAmount:"$250.00",paymentMethod:"Credit Card"},{invoice:"INV002",paymentStatus:"Pending",totalAmount:"$150.00",paymentMethod:"PayPal"},{invoice:"INV003",paymentStatus:"Unpaid",totalAmount:"$350.00",paymentMethod:"Bank Transfer"},{invoice:"INV004",paymentStatus:"Paid",totalAmount:"$450.00",paymentMethod:"Credit Card"},{invoice:"INV005",paymentStatus:"Paid",totalAmount:"$550.00",paymentMethod:"PayPal"},{invoice:"INV006",paymentStatus:"Pending",totalAmount:"$200.00",paymentMethod:"Bank Transfer"},{invoice:"INV007",paymentStatus:"Unpaid",totalAmount:"$300.00",paymentMethod:"Credit Card"}];function z4(e){return a.jsxs(vd,{...e,children:[a.jsx(cv,{children:"A list of your recent invoices."}),a.jsx(xd,{children:a.jsxs(No,{children:[a.jsx(Qo,{className:"w-[100px]",children:"Invoice"}),a.jsx(Qo,{children:"Status"}),a.jsx(Qo,{children:"Method"}),a.jsx(Qo,{className:"text-right",children:"Amount"})]})}),a.jsx(bd,{children:O4.map(n=>a.jsxs(No,{children:[a.jsx(Dr,{className:"font-medium",children:n.invoice}),a.jsx(Dr,{children:n.paymentStatus}),a.jsx(Dr,{children:n.paymentMethod}),a.jsx(Dr,{className:"text-right",children:n.totalAmount})]},n.invoice))}),a.jsx(lv,{className:"text-muted-foreground bg-muted",children:a.jsxs(No,{children:[a.jsx(Dr,{colSpan:3,children:"Total"}),a.jsx(Dr,{className:"text-right",children:"$2,500.00"})]})})]})}const B4="_container_q763u_7",is={container:B4,"sticky-header-row":"_sticky-header-row_q763u_57","sticky-first-column":"_sticky-first-column_q763u_75","sticky-header-and-first-column":"_sticky-header-and-first-column_q763u_97"};function H4(){return a.jsxs(a.Fragment,{children:[a.jsx("td",{children:"John Doe"}),a.jsx("td",{children:"john@example.com"}),a.jsx("td",{children:"Developer"}),a.jsx("td",{children:"USA"})]})}function V4(){return a.jsxs(a.Fragment,{children:[a.jsx("td",{children:"Jane Smith"}),a.jsx("td",{children:"jane@example.com"}),a.jsx("td",{children:"Manager"}),a.jsx("td",{children:"Canada"})]})}function G4(){return a.jsxs(a.Fragment,{children:[a.jsx("td",{children:"Bob Johnson"}),a.jsx("td",{children:"bob@example.com"}),a.jsx("td",{children:"Designer"}),a.jsx("td",{children:"UK"})]})}function W4(){return a.jsxs(a.Fragment,{children:[a.jsx("td",{children:"Alice Brown"}),a.jsx("td",{children:"alice@example.com"}),a.jsx("td",{children:"Analyst"}),a.jsx("td",{children:"Australia"})]})}function U4(){return a.jsxs(a.Fragment,{children:[a.jsx("td",{children:"Mike Wilson"}),a.jsx("td",{children:"mike@example.com"}),a.jsx("td",{children:"Engineer"}),a.jsx("td",{children:"Germany"})]})}function X4(){return a.jsxs(a.Fragment,{children:[a.jsx("td",{children:"Sara Davis"}),a.jsx("td",{children:"sara@example.com"}),a.jsx("td",{children:"Consultant"}),a.jsx("td",{children:"France"})]})}function q4(){return a.jsxs(a.Fragment,{children:[a.jsx("td",{children:"David Lee"}),a.jsx("td",{children:"david@example.com"}),a.jsx("td",{children:"Coordinator"}),a.jsx("td",{children:"Japan"})]})}function K4(){return a.jsxs(a.Fragment,{children:[a.jsx("td",{children:"Linda Chen"}),a.jsx("td",{children:"linda@example.com"}),a.jsx("td",{children:"Tester"}),a.jsx("td",{children:"China"})]})}function Y4(){return a.jsxs(a.Fragment,{children:[a.jsx("td",{children:"Ryan Miller"}),a.jsx("td",{children:"ryan@example.com"}),a.jsx("td",{children:"Architect"}),a.jsx("td",{children:"Brazil"})]})}function J4(){return a.jsxs(a.Fragment,{children:[a.jsx("td",{children:"Emily White"}),a.jsx("td",{children:"emily@example.com"}),a.jsx("td",{children:"Administrator"}),a.jsx("td",{children:"India"})]})}const zd=[H4,V4,G4,W4,U4,X4,q4,K4,Y4,J4];function Z4(){return a.jsx(a.Fragment,{children:a.jsxs("section",{className:`${is["sticky-header-row"]}`,children:[a.jsx("h2",{className:"py-2",children:"Sticky Header"}),a.jsx("div",{className:`${is.container} w-fit h-52 overflow-auto`,children:a.jsxs("table",{children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{scope:"col",children:"ID"}),a.jsx("th",{scope:"col",children:"Name"}),a.jsx("th",{scope:"col",children:"Email"}),a.jsx("th",{scope:"col",children:"Role"}),a.jsx("th",{scope:"col",children:"Country"})]})}),a.jsx("tbody",{children:zd.map((e,n)=>a.jsxs("tr",{children:[a.jsx("td",{children:n+1}),a.jsx(e,{})]},n))})]})})]})})}function Q4(){return a.jsx(a.Fragment,{children:a.jsxs("section",{className:`${is["sticky-first-column"]}`,children:[a.jsx("h2",{className:"py-2",children:"Sticky First Column"}),a.jsx("div",{className:`${is.container} w-64 h-60 overflow-auto`,children:a.jsxs("table",{children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{scope:"col",children:"ID"}),a.jsx("th",{scope:"col",children:"Name"}),a.jsx("th",{scope:"col",children:"Email"}),a.jsx("th",{scope:"col",children:"Role"}),a.jsx("th",{scope:"col",children:"Country"})]})}),a.jsx("tbody",{children:zd.slice(0,5).map((e,n)=>a.jsxs("tr",{children:[a.jsx("th",{scope:"row",children:n+1}),a.jsx(e,{})]},n))})]})})]})})}function eM(){return a.jsx(a.Fragment,{children:a.jsxs("section",{className:`${is["sticky-header-and-first-column"]}`,children:[a.jsx("h2",{className:"py-2",children:"Sticky Header and First Column"}),a.jsx("div",{className:`${is.container} w-64 h-60 overflow-auto`,children:a.jsxs("table",{children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{scope:"col",children:"ID"}),a.jsx("th",{scope:"col",children:"Name"}),a.jsx("th",{scope:"col",children:"Email"}),a.jsx("th",{scope:"col",children:"Role"}),a.jsx("th",{scope:"col",children:"Country"})]})}),a.jsx("tbody",{children:zd.map((e,n)=>a.jsxs("tr",{children:[a.jsx("th",{scope:"row",children:n+1}),a.jsx(e,{})]},n))})]})})]})})}function tM(){return a.jsxs("div",{className:"text-xs flex flex-wrap gap-4",children:[a.jsx(Z4,{}),a.jsx(Q4,{}),a.jsx(eM,{})]})}const nM="_container_ny73l_25",rM="_card_ny73l_41",oM="_card__head_ny73l_53",fu={container:nM,card:rM,card__head:oM},sM=["Plotting Cat","Angry Cat","Curious Cat","Prowling Cat","Sleepy Cat"],aM=["https://upload.wikimedia.org/wikipedia/commons/d/d6/Cat_plotting_something_evil%21.jpg","https://upload.wikimedia.org/wikipedia/commons/thumb/d/d8/False_alarm_-a.jpg/1280px-False_alarm_-a.jpg","https://upload.wikimedia.org/wikipedia/commons/thumb/8/83/Neugierige-Katze.JPG/1280px-Neugierige-Katze.JPG","https://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Al_acecho_%289272124788%29.jpg/1280px-Al_acecho_%289272124788%29.jpg","https://upload.wikimedia.org/wikipedia/commons/thumb/d/de/Mimi%26Tigsi.jpg/1280px-Mimi%26Tigsi.jpg"];function iM(){return a.jsx("div",{className:fu.container,children:aM.map((e,n)=>a.jsxs("div",{className:fu.card,children:[a.jsx("img",{src:e}),a.jsx("div",{className:fu.card__head,children:sM[n]})]},n))})}const lM="_wrap_84gct_1",cM="_strip_84gct_19",uM="_one_84gct_79",dM="_two_84gct_81",fM="_three_84gct_83",pM="_four_84gct_85",gM="_five_84gct_87",hM="_crown_84gct_91",mM="_h1_84gct_119",vM="_h2_84gct_153",xM="_h3_84gct_165",bM="_review_84gct_175",Jr={wrap:lM,strip:cM,one:uM,two:dM,three:fM,four:pM,five:gM,crown:hM,h1:mM,h2:vM,h3:xM,review:bM},yM=[{title:"Angels 3o'clock",author:"Jack Hartley",publisher:"Crown Press",review:"When Jack wakes up at 3am one morning to find angels in his bedroom his life changes forever. An extraordinary read and a fine first novel. The Grauniad"},{title:"Cloud Bustin'",author:"Sian O'Brien",publisher:"Crown Press",review:"Kate's father has a secret. When the Russians discover it she and her father have a race against time to stop it falling into the wrong hands. I couldn't put this down. The story charges towards a thrilling climax. Woman's Weekly"},{title:"Seven Deadly Bins",author:"Trash Norton",publisher:"Crown Press",review:"Michael uncovers a plot to blow up the Australian Embassy in London. However, no one believes him and he must find a way to convince the authorities of the truth. Following hot on the heels of his previous novel, The Henchman's Basin, this is a fine novel indeed. Fishing Magazine Monthly"},{title:"A Cuckoo Calls",author:"Erasmus Coach",publisher:"Crown Press",review:"Expect the unexpected in this expertly woven tale of a birdwatcher. Well, I certainly didn't expect this when I started reading. Twitcher's Monthly"},{title:"A Steamy Romance",author:"Eliza Smalls",publisher:"Crown Press",review:"Hubert and Molly have worked in the same clothes cleaner's for years. When they fall in love their loyalty to their boss is tested. I cried buckets to this one and got the pages wet. The Rock Garden Hobbyist"}],wM=["one","two","three","four","five"];function _M(){return a.jsx("div",{className:`${Jr.wrap} font-serif font-thin text-background`,children:yM.map((e,n)=>a.jsxs("div",{className:`${Jr.strip} ${Jr[wM[n]]}`,style:{opacity:1,height:"100%"},children:[a.jsx("p",{className:Jr.crown,children:"♔"}),a.jsx("div",{className:Jr.h1,children:e.title}),a.jsx("div",{className:Jr.h2,children:e.author}),a.jsx("div",{className:Jr.h3,children:e.publisher}),a.jsx("div",{className:Jr.review,children:a.jsx("p",{children:e.review})})]},n))})}const SM="_container_1fbyo_33",CM="_box_1fbyo_55",er={container:SM,box:CM,"box-1":"_box-1_1fbyo_95","box-2":"_box-2_1fbyo_103","box-3":"_box-3_1fbyo_111","box-4":"_box-4_1fbyo_119","box-5":"_box-5_1fbyo_127"};function jM(){return a.jsxs("div",{className:`${er.container} py-8`,children:[a.jsx("div",{className:`${er.box} ${er["box-1"]}`,style:{"--img":"url(https://i.postimg.cc/sgBkfbtx/img-1.jpg)"},"data-text":"Renji"}),a.jsx("div",{className:`${er.box} ${er["box-2"]}`,style:{"--img":"url(https://i.postimg.cc/3RZ6bhDS/img-2.jpg)"},"data-text":"Sora"}),a.jsx("div",{className:`${er.box} ${er["box-3"]}`,style:{"--img":"url(https://i.postimg.cc/DZhHg0m4/img-3.jpg)"},"data-text":"Kaito"}),a.jsx("div",{className:`${er.box} ${er["box-4"]}`,style:{"--img":"url(https://i.postimg.cc/KjqWx5ft/img-4.jpg)"},"data-text":"Tsuki"}),a.jsx("div",{className:`${er.box} ${er["box-5"]}`,style:{"--img":"url(https://i.postimg.cc/nrcWyW4H/img-5.jpg)"},"data-text":"Mitsui"})]})}function NM(){return a.jsxs(hr,{defaultValue:"table6",children:[a.jsxs(lr,{children:[a.jsx(He,{value:"table1",children:"Simple"}),a.jsx(He,{value:"table2",children:"Data"}),a.jsx(He,{value:"table3",children:"Sticky headers"}),a.jsx(He,{value:"table4",children:"Skew"}),a.jsx(He,{value:"table5",children:"Books"}),a.jsx(He,{value:"table6",children:"Cartoons"})]}),a.jsx(Ve,{value:"table1",children:a.jsx(z4,{className:"m-auto max-w-sm"})}),a.jsx(Ve,{value:"table2",children:a.jsx(F4,{})}),a.jsx(Ve,{value:"table3",children:a.jsx(tM,{})}),a.jsx(Ve,{value:"table4",children:a.jsx(iM,{})}),a.jsx(Ve,{value:"table5",children:a.jsx(_M,{})}),a.jsx(Ve,{value:"table6",children:a.jsx(jM,{})})]})}const mh={getItem(e){return lt.resisablesState.positions[e]||""},setItem(e,n){lt.resisablesState.positions[e]=n}};function RM(){return a.jsxs(Vg,{direction:"horizontal",className:"w-full _max-w-md rounded-lg border",autoSaveId:"tm-example",storage:mh,children:[a.jsx(Ci,{defaultSize:25,children:a.jsx($M,{})}),a.jsx(Gg,{withHandle:!0}),a.jsx(Ci,{children:a.jsxs(Vg,{direction:"vertical",autoSaveId:"tm-example2",storage:mh,children:[a.jsx(Ci,{defaultSize:25,children:a.jsx(EM,{})}),a.jsx(Gg,{}),a.jsx(Ci,{defaultSize:75,children:a.jsx(PM,{})})]})})]})}function $M(){return a.jsx("div",{className:"p-6 h-[200px] flex items-center justify-center",children:a.jsx("span",{className:"font-semibold",children:"One"})})}function EM(){return a.jsx("div",{className:"p-6 h-full flex items-center justify-center",children:a.jsx("span",{className:"font-semibold",children:"Two"})})}function PM(){return a.jsx("div",{className:"p-6 h-full flex items-center justify-center",children:a.jsx("span",{className:"font-semibold",children:"Three"})})}function AM(){return a.jsx(a.Fragment,{children:Array.from({length:5}).map((e,n)=>a.jsx(dx,{children:a.jsx("div",{className:"p-1 flex justify-center",children:a.jsx(pl,{className:"w-24 h-24",children:a.jsx(gl,{className:"p-6 aspect-square flex items-center justify-center",children:a.jsx("span",{className:"text-4xl font-semibold",children:n+1})})})})},n))})}function MM(){return a.jsx("div",{className:"flex justify-center",children:a.jsxs(cx,{className:"w-full max-w-xs",children:[a.jsx(ux,{children:a.jsx(AM,{})}),a.jsx(fx,{}),a.jsx(px,{})]})})}function DM(){return a.jsx("div",{className:"flex flex-col items-center justify-center w-full h-full",children:a.jsx(xP,{children:a.jsxs(rx,{children:[a.jsx(bP,{href:"#"}),a.jsx(Qs,{href:"#",children:"1"}),a.jsx(Qs,{href:"#",isActive:!0,children:"2"}),a.jsx(Qs,{href:"#",children:"3"}),a.jsx(wP,{}),a.jsx(yP,{href:"#"})]})})})}function TM(){return a.jsxs("div",{className:"flex items-center space-x-4",children:[a.jsx(Wc,{className:"h-12 w-12 rounded-full"}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Wc,{className:"h-4 w-[250px]"}),a.jsx(Wc,{className:"h-4 w-[200px]"})]})]})}const kM=[{name:"Jan",total:Math.floor(Math.random()*5e3)+1e3},{name:"Feb",total:Math.floor(Math.random()*5e3)+1e3},{name:"Mar",total:Math.floor(Math.random()*5e3)+1e3},{name:"Apr",total:Math.floor(Math.random()*5e3)+1e3},{name:"May",total:Math.floor(Math.random()*5e3)+1e3},{name:"Jun",total:Math.floor(Math.random()*5e3)+1e3},{name:"Jul",total:Math.floor(Math.random()*5e3)+1e3},{name:"Aug",total:Math.floor(Math.random()*5e3)+1e3},{name:"Sep",total:Math.floor(Math.random()*5e3)+1e3},{name:"Oct",total:Math.floor(Math.random()*5e3)+1e3},{name:"Nov",total:Math.floor(Math.random()*5e3)+1e3},{name:"Dec",total:Math.floor(Math.random()*5e3)+1e3}];function IM(){return a.jsx(id,{width:"100%",height:100,children:a.jsxs(p0,{data:kM,children:[a.jsx(Nj,{dataKey:"name",stroke:"#888888",fontSize:12,tickLine:!1,axisLine:!1}),a.jsx(Rj,{stroke:"#888888",fontSize:12,tickLine:!1,axisLine:!1,tickFormatter:e=>`$${e}`}),a.jsx(g0,{dataKey:"total",fill:"currentColor",radius:[4,4,0,0],className:"fill-primary"})]})})}function LM(){return a.jsxs(pl,{className:"max-w-md",children:[a.jsx(yd,{children:a.jsx(wd,{children:"Overview"})}),a.jsx(gl,{className:"pl-2",children:a.jsx(IM,{})})]})}const FM=[{average:400,today:240},{average:300,today:139},{average:200,today:980},{average:278,today:390},{average:189,today:480},{average:239,today:380},{average:349,today:430}];function OM(){return a.jsx("div",{className:"h-[100px]",children:a.jsx(id,{width:"100%",height:"100%",children:a.jsxs($j,{data:FM,margin:{top:7,right:10,left:10,bottom:0},children:[a.jsx(Ej,{content:({active:e,payload:n})=>e&&n&&n.length?a.jsx("div",{className:"rounded-lg border bg-background p-2 shadow-sm",children:a.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[a.jsxs("div",{className:"flex flex-col",children:[a.jsx("span",{className:"text-[0.70rem] uppercase text-muted-foreground",children:"Average"}),a.jsx("span",{className:"font-bold text-muted-foreground",children:n[0].value})]}),a.jsxs("div",{className:"flex flex-col",children:[a.jsx("span",{className:"text-[0.70rem] uppercase text-muted-foreground",children:"Today"}),a.jsx("span",{className:"font-bold",children:n[1].value})]})]})}):null}),a.jsx(vg,{type:"monotone",strokeWidth:2,dataKey:"average",activeDot:{r:6,style:{fill:"var(--theme-primary)",opacity:.25}},className:"stroke-primary opacity-25"}),a.jsx(vg,{type:"monotone",dataKey:"today",strokeWidth:2,activeDot:{r:8,style:{fill:"var(--theme-primary)"}},className:"stroke-primary"})]})})})}function zM(){return a.jsxs(pl,{children:[a.jsxs(yd,{children:[a.jsx(wd,{children:"Exercise Minutes"}),a.jsx(uv,{children:"Your exercise minutes are ahead of where you normally are."})]}),a.jsx(gl,{className:"pb-4",children:a.jsx(OM,{})})]})}const BM=[{anchor:"bottom-right",direction:"column",justify:!1,translateX:100,translateY:0,itemsSpacing:0,itemDirection:"left-to-right",itemWidth:80,itemHeight:20,itemOpacity:.75,symbolSize:12,symbolShape:"circle",symbolBorderColor:"rgba(0, 0, 0, .5)",effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}],HM=({width:e=440,height:n=240,data:t=[]})=>a.jsx("div",{style:{height:n,width:e},children:a.jsx(TC,{data:t,margin:{top:5,right:0,bottom:5,left:0},xScale:{type:"point"},yScale:{type:"linear",min:"auto",max:"auto",stacked:!0,reverse:!1},yFormat:" >-.2f",curve:"cardinal",axisTop:null,axisRight:null,axisBottom:null,axisLeft:null,enableGridX:!1,enableGridY:!1,enablePoints:!1,pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,isInteractive:!1,legends:BM})}),VM=[{id:"japan",color:"hsl(63, 70%, 50%)",data:[{x:"plane",y:287},{x:"helicopter",y:183},{x:"boat",y:112},{x:"train",y:78},{x:"subway",y:47},{x:"bus",y:218},{x:"car",y:106},{x:"moto",y:190},{x:"bicycle",y:88},{x:"horse",y:8},{x:"skateboard",y:248},{x:"others",y:76},{x:"adwawd",y:76},{x:"awdawdd",y:38},{x:"awd",y:42},{x:"adwadadw",y:26},{x:"dadawda",y:76}]}];function GM(){return a.jsxs(hr,{defaultValue:"charts1",children:[a.jsxs(lr,{children:[a.jsx(He,{value:"charts1",children:"Overview"}),a.jsx(He,{value:"charts2",children:"Metric"}),a.jsx(He,{value:"charts3",children:"Nivo line"})]}),a.jsx(Ve,{value:"charts1",children:a.jsx(LM,{})}),a.jsx(Ve,{value:"charts2",children:a.jsx(zM,{})}),a.jsx(Ve,{value:"charts3",children:a.jsx(HM,{data:VM})})]})}function WM(){return a.jsxs("svg",{className:"switch__base-neon",viewBox:"0 0 40 24",width:"40px",height:"24px",children:[a.jsxs("defs",{children:[a.jsxs("filter",{id:"switch-glow",children:[a.jsx("feGaussianBlur",{result:"coloredBlur",stdDeviation:1}),a.jsxs("feMerge",{children:[a.jsx("feMergeNode",{in:"coloredBlur"}),a.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),a.jsxs("linearGradient",{id:"switch-gradient1",x1:0,y1:0,x2:1,y2:0,children:[a.jsx("stop",{offset:"0%",stopColor:"hsl(var(--on-hue1),90%,70%)"}),a.jsx("stop",{offset:"100%",stopColor:"hsl(var(--on-hue2),90%,70%)"})]}),a.jsxs("linearGradient",{id:"switch-gradient2",x1:"0.7",y1:0,x2:"0.3",y2:1,children:[a.jsx("stop",{offset:"25%",stopColor:"hsla(var(--on-hue1),90%,70%,0)"}),a.jsx("stop",{offset:"50%",stopColor:"hsla(var(--on-hue1),90%,70%,0.3)"}),a.jsx("stop",{offset:"100%",stopColor:"hsla(var(--on-hue2),90%,70%,0.3)"})]})]}),a.jsx("path",{fill:"none",filter:"url(#switch-glow)",stroke:"url(#switch-gradient1)",strokeWidth:1,strokeDasharray:"0 104.26 0",strokeDashoffset:"0.01",strokeLinecap:"round",d:"m.5,12C.5,5.649,5.649.5,12,.5h16c6.351,0,11.5,5.149,11.5,11.5s-5.149,11.5-11.5,11.5H12C5.649,23.5.5,18.351.5,12Z"})]})}function UM(){return a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"switch__knob-shadow"}),a.jsx("span",{className:"switch__knob-container",children:a.jsx("span",{className:"switch__knob",children:a.jsx("svg",{className:"switch__knob-neon",viewBox:"0 0 48 48",width:"48px",height:"48px",children:a.jsx("circle",{fill:"none",stroke:"url(#switch-gradient2)",strokeDasharray:"0 90.32 0 54.19",strokeLinecap:"round",strokeWidth:1,r:23,cx:24,cy:24,transform:"rotate(-112.5,24,24)"})})})})]})}const XM="[--hue:223] [--off-hue:3] [--on-hue1:123] [--on-hue2:168] [--primary:hsl(var(--hue),90%,50%)] [--trans-dur:0.2s] [--trans-timing:cubic-bezier(0.65,0,0.35,1)] ";function qM(e){return a.jsxs("label",{className:ct(XM,"switch"),children:[a.jsx("input",{className:"switch__input",type:"checkbox",role:"switch",...e}),a.jsx("span",{className:"switch__base-outer"}),a.jsx("span",{className:"switch__base-inner"}),a.jsx(WM,{}),a.jsx(UM,{}),a.jsx("span",{className:"switch__led"}),a.jsx("span",{className:"switch__text",children:"Power"})]})}function vh({className:e,...n}){return a.jsxs("div",{className:ct("toggle-wrapper",e),children:[a.jsx("input",{className:"toggle-checkbox",type:"checkbox",...n}),a.jsx("svg",{className:"toggle-icon off",viewBox:"0 0 16 16",children:a.jsx("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8Z"})}),a.jsx("div",{className:"toggle-container",children:a.jsx("div",{className:"toggle-button"})}),a.jsx("svg",{className:"toggle-icon on",viewBox:"0 0 16 16",children:a.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 1 1 16 0zM2 8a6 6 0 1 0 12 0A6 6 0 1 0 2 8zm10 0a4 4 0 1 1-8 0 4 4 0 1 1 8 0z"})})]})}function KM(){return a.jsxs("div",{className:"flex flex-col space-y-2 text-3xl",children:[a.jsx(vh,{}),a.jsx(vh,{defaultChecked:!0})]})}var ns=255,or=100,Gs=e=>{var{r:n,g:t,b:o,a:i}=e,l=Math.max(n,t,o),u=l-Math.min(n,t,o),d=u?l===n?(t-o)/u:l===t?2+(o-n)/u:4+(n-t)/u:0;return{h:60*(d<0?d+6:d),s:l?u/l*or:0,v:l/ns*or,a:i}},Xx=e=>{var{h:n,s:t,l:o,a:i}=Bd(e);return"hsla("+n+", "+t+"%, "+o+"%, "+i+")"},Ws=e=>{var{h:n,s:t,l:o,a:i}=e;return t*=(o<50?o:or-o)/or,{h:n,s:t>0?2*t/(o+t)*or:0,v:o+t,a:i}},Bd=e=>{var{h:n,s:t,v:o,a:i}=e,l=(200-t)*o/or;return{h:n,s:l>0&&l<200?t*o/or/(l<=or?l:200-l)*or:0,l:l/2,a:i}},qx=e=>{var{r:n,g:t,b:o}=e,i=n<<16|t<<8|o;return"#"+(l=>new Array(7-l.length).join("0")+l)(i.toString(16))},Kx=e=>{var{r:n,g:t,b:o,a:i}=e,l=typeof i=="number"&&(i*255|256).toString(16).slice(1);return""+qx({r:n,g:t,b:o,a:i})+(l||"")},ls=e=>Gs(YM(e)),YM=e=>{var n=e.replace("#","");/^#?/.test(e)&&n.length===3&&(e="#"+n.charAt(0)+n.charAt(0)+n.charAt(1)+n.charAt(1)+n.charAt(2)+n.charAt(2));var t=new RegExp("[A-Za-z0-9]{2}","g"),[o,i,l=0,u]=e.match(t).map(d=>parseInt(d,16));return{r:o,g:i,b:l,a:(u??255)/ns}},ja=e=>{var{h:n,s:t,v:o,a:i}=e,l=n/60,u=t/or,d=o/or,p=Math.floor(l)%6,f=l-Math.floor(l),g=ns*d*(1-u),v=ns*d*(1-u*f),x=ns*d*(1-u*(1-f));d*=ns;var m={};switch(p){case 0:m.r=d,m.g=x,m.b=g;break;case 1:m.r=v,m.g=d,m.b=g;break;case 2:m.r=g,m.g=d,m.b=x;break;case 3:m.r=g,m.g=v,m.b=d;break;case 4:m.r=x,m.g=g,m.b=d;break;case 5:m.r=d,m.g=g,m.b=v;break}return m.r=Math.round(m.r),m.g=Math.round(m.g),m.b=Math.round(m.b),_e({},m,{a:i})},JM=e=>{var{r:n,g:t,b:o,a:i}=ja(e);return"rgba("+n+", "+t+", "+o+", "+i+")"},ZM=e=>{var{r:n,g:t,b:o}=e;return{r:n,g:t,b:o}},QM=e=>{var{h:n,s:t,l:o}=e;return{h:n,s:t,l:o}},Sl=e=>qx(ja(e)),eD=e=>Kx(ja(e)),tD=e=>{var{h:n,s:t,v:o}=e;return{h:n,s:t,v:o}},An=e=>{var n,t,o,i,l,u,d,p;return typeof e=="string"&&Hd(e)?(u=ls(e),d=e):typeof e!="string"&&(u=e),u&&(o=tD(u),l=Bd(u),i=ja(u),p=Kx(i),d=Sl(u),t=QM(l),n=ZM(i)),{rgb:n,hsl:t,hsv:o,rgba:i,hsla:l,hsva:u,hex:d,hexa:p}},Hd=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e);function xh(e){var n=C.useRef(e);return C.useEffect(()=>{n.current=e}),C.useCallback((t,o)=>n.current&&n.current(t,o),[])}var na=e=>"touches"in e,bh=e=>{!na(e)&&e.preventDefault&&e.preventDefault()},yh=function(n,t,o){return t===void 0&&(t=0),o===void 0&&(o=1),n>o?o:n{var t=e.getBoundingClientRect(),o=na(n)?n.touches[0]:n;return{left:yh((o.pageX-(t.left+window.pageXOffset))/t.width),top:yh((o.pageY-(t.top+window.pageYOffset))/t.height),width:t.width,height:t.height,x:o.pageX-(t.left+window.pageXOffset),y:o.pageY-(t.top+window.pageYOffset)}},nD=["prefixCls","className","onMove","onDown"],Yx=G.forwardRef((e,n)=>{var{prefixCls:t="w-color-interactive",className:o,onMove:i,onDown:l}=e,u=Kn(e,nD),d=C.useRef(null),p=C.useRef(!1),[f,g]=C.useState(!1),v=xh(i),x=xh(l),m=y=>p.current&&!na(y)?!1:(p.current=na(y),!0),S=C.useCallback(y=>{bh(y);var R=na(y)?y.touches.length>0:y.buttons>0;R&&d.current?v&&v(wh(d.current,y),y):g(!1)},[v]),w=C.useCallback(()=>g(!1),[]),$=C.useCallback(y=>{var R=y?window.addEventListener:window.removeEventListener;R(p.current?"touchmove":"mousemove",S),R(p.current?"touchend":"mouseup",w)},[]);C.useEffect(()=>($(f),()=>{f&&$(!1)}),[f,$]);var _=C.useCallback(y=>{bh(y.nativeEvent),m(y.nativeEvent)&&(x&&x(wh(d.current,y.nativeEvent),y.nativeEvent),g(!0))},[x]);return a.jsx("div",_e({},u,{className:[t,o||""].filter(Boolean).join(" "),style:_e({},u.style,{touchAction:"none"}),ref:d,tabIndex:0,onMouseDown:_,onTouchStart:_}))});Yx.displayName="Interactive";const Jx=Yx;var rD=["className","prefixCls","left","top","style","fillProps"],oD=e=>{var{className:n,prefixCls:t,left:o,top:i,style:l,fillProps:u}=e,d=Kn(e,rD),p=_e({},l,{position:"absolute",left:o,top:i}),f=_e({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},u?.style,{transform:o?"translate(-9px, -1px)":"translate(-1px, -9px)"});return a.jsx("div",_e({className:t+"-pointer "+(n||""),style:p},d,{children:a.jsx("div",_e({className:t+"-fill"},u,{style:f}))}))},sD=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],aD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",Zx=G.forwardRef((e,n)=>{var{prefixCls:t="w-color-alpha",className:o,hsva:i,background:l,bgProps:u={},innerProps:d={},pointerProps:p={},radius:f=0,width:g,height:v=16,direction:x="horizontal",style:m,onChange:S,pointer:w}=e,$=Kn(e,sD),_=H=>{S&&S(_e({},i,{a:x==="horizontal"?H.left:H.top}),H)},y=Xx(Object.assign({},i,{a:1})),R="linear-gradient(to "+(x==="horizontal"?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+y+" 100%)",M={};x==="horizontal"?M.left=i.a*100+"%":M.top=i.a*100+"%";var E=_e({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:f,background:"url("+aD+") left center",backgroundColor:"var(--alpha-background-color)"},{width:g,height:v},m,{position:"relative"}),I=w&&typeof w=="function"?w(_e({prefixCls:t},p,M)):a.jsx(oD,_e({},p,{prefixCls:t},M));return a.jsxs("div",_e({},$,{className:[t,t+"-"+x,o||""].filter(Boolean).join(" "),style:E,ref:n,children:[a.jsx("div",_e({},u,{style:_e({inset:0,position:"absolute",background:l||R,borderRadius:f},u.style)})),a.jsx(Jx,_e({},d,{style:_e({},d.style,{inset:0,zIndex:1,position:"absolute"}),onMove:_,onDown:_,children:I}))]}))});Zx.displayName="Alpha";const Xu=Zx;var iD=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur"],lD=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),cD=e=>Number(String(e).replace(/%/g,"")),Qx=G.forwardRef((e,n)=>{var{prefixCls:t="w-color-editable-input",placement:o="bottom",label:i,value:l,className:u,style:d,labelStyle:p,inputStyle:f,onChange:g,onBlur:v}=e,x=Kn(e,iD),[m,S]=C.useState(l),w=C.useRef(!1);C.useEffect(()=>{e.value!==m&&(w.current||S(e.value))},[e.value]);function $(E,I){var H=(I||E.target.value).trim().replace(/^#/,"");lD(H)&&g&&g(E,H);var P=cD(H);isNaN(P)||g&&g(E,P),S(H)}function _(E){w.current=!1,S(e.value),v&&v(E)}var y={};o==="bottom"&&(y.flexDirection="column"),o==="top"&&(y.flexDirection="column-reverse"),o==="left"&&(y.flexDirection="row-reverse");var R=_e({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},y,d),M=_e({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},f);return a.jsxs("div",{className:[t,u||""].filter(Boolean).join(" "),style:R,children:[a.jsx("input",_e({ref:n,value:m,onChange:$,onBlur:_,autoComplete:"off",onFocus:()=>w.current=!0},x,{style:M})),i&&a.jsx("span",{style:_e({color:"var(--editable-input-label-color)",textTransform:"capitalize"},p),children:i})]})});Qx.displayName="EditableInput";const Us=Qx;var uD=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],eb=G.forwardRef((e,n)=>{var{prefixCls:t="w-color-swatch",className:o,color:i,colors:l=[],style:u,rectProps:d={},onChange:p,addonAfter:f,addonBefore:g,rectRender:v}=e,x=Kn(e,uD),m=_e({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},d.style),S=(w,$)=>{p&&p(ls(w),An(ls(w)),$)};return a.jsxs("div",_e({ref:n},x,{className:[t,o||""].filter(Boolean).join(" "),style:_e({display:"flex",flexWrap:"wrap",position:"relative"},u),children:[g&&G.isValidElement(g)&&g,l&&Array.isArray(l)&&l.map((w,$)=>{var _="",y="";typeof w=="string"&&(_=w,y=w),typeof w=="object"&&w.color&&(_=w.title||w.color,y=w.color);var R=i&&i.toLocaleLowerCase()===y.toLocaleLowerCase(),M=v&&v({title:_,color:y,checked:!!R,style:_e({},m,{background:y}),onClick:I=>S(y,I)});if(M)return a.jsx(C.Fragment,{children:M},$);var E=d.children&&G.isValidElement(d.children)?G.cloneElement(d.children,{color:y,checked:R}):null;return a.jsx("div",_e({tabIndex:0,title:_,onClick:I=>S(y,I)},d,{children:E,style:_e({},m,{background:y})}),$)}),f&&G.isValidElement(f)&&f]}))});eb.displayName="Swatch";const dD=eb;function fD(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var pD={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function gD(e){var{style:n,title:t,checked:o,color:i,onClick:l,rectProps:u}=e,d=C.useRef(null),p=C.useCallback(()=>{d.current.style.zIndex="2",d.current.style.outline="#fff solid 2px",d.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"},[]),f=C.useCallback(()=>{o||(d.current.style.zIndex="0",d.current.style.outline="initial",d.current.style.boxShadow="initial")},[o]),g=o?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return a.jsx("div",_e({ref:d,title:t},u,{onClick:l,onMouseEnter:p,onMouseLeave:f,style:_e({},n,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},pD,g,u?.style)}))}var hD=["prefixCls","placement","className","style","color","colors","rectProps","onChange","rectRender"],mD=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],Mt=function(e){return e.Left="L",e.LeftTop="LT",e.LeftBottom="LB",e.Right="R",e.RightTop="RT",e.RightBottom="RB",e.Top="T",e.TopRight="TR",e.TopLeft="TL",e.Bottom="B",e.BottomLeft="BL",e.BottomRight="BR",e}({}),tb=G.forwardRef((e,n)=>{var{prefixCls:t="w-color-github",placement:o=Mt.TopRight,className:i,style:l,color:u,colors:d=mD,rectProps:p={},onChange:f,rectRender:g}=e,v=Kn(e,hD),x=typeof u=="string"&&Hd(u)?ls(u):u,m=u?Sl(x):"",S=M=>f&&f(An(M)),w=_e({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},l),$={borderStyle:"solid",position:"absolute"},_=_e({},$),y=_e({},$);/^T/.test(o)&&(_.borderWidth="0 8px 8px",_.borderColor="transparent transparent var(--github-arrow-border-color)",y.borderWidth="0 7px 7px",y.borderColor="transparent transparent var(--github-background-color)"),o===Mt.TopRight&&(_.top=-8,y.top=-7),o===Mt.Top&&(_.top=-8,y.top=-7),o===Mt.TopLeft&&(_.top=-8,y.top=-7),/^B/.test(o)&&(_.borderWidth="8px 8px 0",_.borderColor="var(--github-arrow-border-color) transparent transparent",y.borderWidth="7px 7px 0",y.borderColor="var(--github-background-color) transparent transparent",o===Mt.BottomRight&&(_.top="100%",y.top="100%"),o===Mt.Bottom&&(_.top="100%",y.top="100%"),o===Mt.BottomLeft&&(_.top="100%",y.top="100%")),/^(B|T)/.test(o)&&((o===Mt.Top||o===Mt.Bottom)&&(_.left="50%",_.marginLeft=-8,y.left="50%",y.marginLeft=-7),(o===Mt.TopRight||o===Mt.BottomRight)&&(_.right=10,y.right=11),(o===Mt.TopLeft||o===Mt.BottomLeft)&&(_.left=7,y.left=8)),/^L/.test(o)&&(_.borderWidth="8px 8px 8px 0",_.borderColor="transparent var(--github-arrow-border-color) transparent transparent",y.borderWidth="7px 7px 7px 0",y.borderColor="transparent var(--github-background-color) transparent transparent",_.left=-8,y.left=-7),/^R/.test(o)&&(_.borderWidth="8px 0 8px 8px",_.borderColor="transparent transparent transparent var(--github-arrow-border-color)",y.borderWidth="7px 0 7px 7px",y.borderColor="transparent transparent transparent var(--github-background-color)",_.right=-8,y.right=-7),/^(L|R)/.test(o)&&((o===Mt.RightTop||o===Mt.LeftTop)&&(_.top=5,y.top=6),(o===Mt.Left||o===Mt.Right)&&(_.top="50%",y.top="50%",_.marginTop=-8,y.marginTop=-7),(o===Mt.LeftBottom||o===Mt.RightBottom)&&(_.top="100%",y.top="100%",_.marginTop=-21,y.marginTop=-20));var R=M=>{var E=_e({},(fD(M),M)),I=g&&g(_e({},E));return I||a.jsx(gD,_e({},E,{rectProps:p}))};return a.jsx(dD,_e({ref:n,className:[t,i].filter(Boolean).join(" "),colors:d,color:m,rectRender:R},v,{onChange:S,style:w,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:a.jsxs(C.Fragment,{children:[a.jsx("div",{style:_}),a.jsx("div",{style:y})]})}))});tb.displayName="Github";const vD=tb;var xD=e=>{var{className:n,color:t,left:o,top:i,prefixCls:l}=e,u={position:"absolute",top:i,left:o},d={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:t};return C.useMemo(()=>a.jsx("div",{className:l+"-pointer "+(n||""),style:u,children:a.jsx("div",{className:l+"-fill",style:d})}),[i,o,t,n,l])},bD=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],nb=G.forwardRef((e,n)=>{var t,{prefixCls:o="w-color-saturation",radius:i=0,pointer:l,className:u,hue:d=0,style:p,hsva:f,onChange:g}=e,v=Kn(e,bD),x=_e({width:200,height:200,borderRadius:i},p,{position:"relative"}),m=(w,$)=>{g&&f&&g({h:f.h,s:w.left*100,v:(1-w.top)*100,a:f.a})},S=C.useMemo(()=>{if(!f)return null;var w={top:100-f.v+"%",left:f.s+"%",color:Xx(f)};return l&&typeof l=="function"?l(_e({prefixCls:o},w)):a.jsx(xD,_e({prefixCls:o},w))},[f,l,o]);return a.jsx(Jx,_e({className:[o,u||""].filter(Boolean).join(" ")},v,{style:_e({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+((t=f?.h)!=null?t:d)+", 100%, 50%))"},x),ref:n,onMove:m,onDown:m,children:S}))});nb.displayName="Saturation";const yD=nb;var wD=["prefixCls","className","hue","onChange","direction"],rb=G.forwardRef((e,n)=>{var{prefixCls:t="w-color-hue",className:o,hue:i=0,onChange:l,direction:u="horizontal"}=e,d=Kn(e,wD);return a.jsx(Xu,_e({ref:n,className:t+" "+(o||"")},d,{direction:u,background:"linear-gradient(to "+(u==="horizontal"?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:i,s:100,v:100,a:i/360},onChange:(p,f)=>{l&&l({h:u==="horizontal"?360*f.left:360*f.top})}}))});rb.displayName="Hue";const _D=rb;var SD=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],ob=G.forwardRef((e,n)=>{var{prefixCls:t="w-color-editable-input-rgba",hsva:o,placement:i="bottom",rProps:l={},gProps:u={},bProps:d={},aProps:p={},className:f,style:g,onChange:v}=e,x=Kn(e,SD),m=o?ja(o):{};function S($){var _=Number($.target.value);_&&_>255&&($.target.value="255"),_&&_<0&&($.target.value="0")}var w=($,_,y)=>{typeof $=="number"&&(_==="a"&&($<0&&($=0),$>100&&($=100),v&&v(An(Gs(_e({},m,{a:$/100}))))),$>255&&($=255,y.target.value="255"),$<0&&($=0,y.target.value="0"),_==="r"&&v&&v(An(Gs(_e({},m,{r:$})))),_==="g"&&v&&v(An(Gs(_e({},m,{g:$})))),_==="b"&&v&&v(An(Gs(_e({},m,{b:$})))))};return a.jsxs("div",_e({ref:n,className:[t,f||""].filter(Boolean).join(" ")},x,{style:_e({fontSize:11,display:"flex"},g),children:[a.jsx(Us,_e({label:"R",value:m.r||0,onBlur:S,placement:i,onChange:($,_)=>w(_,"r",$)},l,{style:_e({},l.style)})),a.jsx(Us,_e({label:"G",value:m.g||0,onBlur:S,placement:i,onChange:($,_)=>w(_,"g",$)},u,{style:_e({marginLeft:5},l.style)})),a.jsx(Us,_e({label:"B",value:m.b||0,onBlur:S,placement:i,onChange:($,_)=>w(_,"b",$)},d,{style:_e({marginLeft:5},d.style)})),p&&a.jsx(Us,_e({label:"A",value:m.a?parseInt(String(m.a*100),10):0,onBlur:S,placement:i,onChange:($,_)=>w(_,"a",$)},p,{style:_e({marginLeft:5},p.style)}))]}))});ob.displayName="EditableInputRGBA";const sb=ob;var CD=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],ab=G.forwardRef((e,n)=>{var{prefixCls:t="w-color-editable-input-hsla",hsva:o,hProps:i={},sProps:l={},lProps:u={},aProps:d={},className:p,onChange:f}=e,g=Kn(e,CD),v=o?Bd(o):{h:0,s:0,l:0,a:0},x=(m,S,w)=>{typeof m=="number"&&(S==="h"&&(m<0&&(m=0),m>360&&(m=360),f&&f(An(Ws(_e({},v,{h:m}))))),S==="s"&&(m<0&&(m=0),m>100&&(m=100),f&&f(An(Ws(_e({},v,{s:m}))))),S==="l"&&(m<0&&(m=0),m>100&&(m=100),f&&f(An(Ws(_e({},v,{l:m}))))),S==="a"&&(m<0&&(m=0),m>1&&(m=1),f&&f(An(Ws(_e({},v,{a:m}))))))};return a.jsx(sb,_e({ref:n,hsva:o,rProps:_e({label:"H",value:Math.round(v.h)},i,{onChange:(m,S)=>x(S,"h")}),gProps:_e({label:"S",value:Math.round(v.s)+"%"},l,{onChange:(m,S)=>x(S,"s")}),bProps:_e({label:"L",value:Math.round(v.l)+"%"},u,{onChange:(m,S)=>x(S,"l")}),aProps:_e({label:"A",value:Math.round(v.a*100)/100},d,{onChange:(m,S)=>x(S,"a")}),className:[t,p||""].filter(Boolean).join(" ")},g))});ab.displayName="EditableInputHSLA";const jD=ab;var ND=["style"];function RD(e){var{style:n}=e,t=Kn(e,ND),o=C.useRef(null),i=C.useCallback(()=>{o.current.style.backgroundColor="var(--chrome-arrow-background-color)"},[]),l=C.useCallback(()=>{o.current.style.backgroundColor="transparent"},[]);return a.jsx("div",_e({ref:o,style:_e({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},n)},t,{onMouseEnter:i,onMouseLeave:l,children:a.jsx("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:a.jsx("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}var $D=["prefixCls","className","style","color","inputType","rectProps","onChange"],tr=function(e){return e.HEXA="hexa",e.RGBA="rgba",e.HSLA="hsla",e}({}),ib=G.forwardRef((e,n)=>{var{prefixCls:t="w-color-chrome",className:o,style:i,color:l,inputType:u=tr.RGBA,rectProps:d={},onChange:p}=e,f=Kn(e,$D),g=typeof l=="string"&&Hd(l)?ls(l):l||{h:0,s:0,l:0,a:0},v=R=>p&&p(An(R)),[x,m]=C.useState(u),S=()=>{x===tr.RGBA&&m(tr.HSLA),x===tr.HSLA&&m(tr.HEXA),x===tr.HEXA&&m(tr.RGBA)},w={paddingTop:6},$={textAlign:"center",paddingTop:4,paddingBottom:4},_=_e({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:"column",width:230,padding:0},i),y={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:JM(g),boxShadow:"var(--chrome-alpha-box-shadow)"};return a.jsx(vD,_e({ref:n,color:g,style:_,colors:void 0,className:[t,o].filter(Boolean).join(" "),placement:Mt.TopLeft},f,{addonAfter:a.jsxs(C.Fragment,{children:[a.jsx(yD,{hsva:g,style:{width:"100%",height:130},onChange:R=>{v(_e({},g,R,{a:g.a}))}}),a.jsxs("div",{style:{padding:15,display:"flex",alignItems:"center"},children:[a.jsx(Xu,{width:24,height:24,hsva:g,radius:2,style:{marginRight:15,borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:y},pointer:()=>a.jsx(C.Fragment,{})}),a.jsxs("div",{style:{flex:1},children:[a.jsx(_D,{hue:g.h,style:{width:"100%"},bgProps:{style:{borderRadius:2}},onChange:R=>{v(_e({},g,R))}}),a.jsx(Xu,{hsva:g,style:{marginTop:10},bgProps:{style:{borderRadius:2}},onChange:R=>{v(_e({},g,R))}})]})]}),a.jsxs("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[a.jsxs("div",{style:{flex:1},children:[x==tr.RGBA&&a.jsx(sb,{hsva:g,rProps:{labelStyle:w,inputStyle:$},gProps:{labelStyle:w,inputStyle:$},bProps:{labelStyle:w,inputStyle:$},aProps:{labelStyle:w,inputStyle:$},onChange:R=>v(R.hsva)}),x===tr.HEXA&&a.jsx(Us,{label:"HEX",labelStyle:w,inputStyle:$,value:g.a>0&&g.a<1?eD(g).toLocaleUpperCase():Sl(g).toLocaleUpperCase(),onChange:(R,M)=>{typeof M=="string"&&v(ls(/^#/.test(M)?M:"#"+M))}}),x===tr.HSLA&&a.jsx(jD,{hsva:g,hProps:{labelStyle:w,inputStyle:$},sProps:{labelStyle:w,inputStyle:$},lProps:{labelStyle:w,inputStyle:$},aProps:{labelStyle:w,inputStyle:$},onChange:R=>v(R.hsva)})]}),a.jsx(RD,{onClick:S})]})]}),rectRender:()=>a.jsx(C.Fragment,{})}))});ib.displayName="Chrome";const ED=ib,PD="mx-1 p-0 w-auto rounded-md overflow-hidden ring-muted-foreground/50 ring-1 ring-offset-1 ring-offset-background isolate z-50",AD="![--github-background-color:hsla(var(--muted)/.7)]",MD="![--github-border:none] [&>div]:[--github-background-color:transparent] [&>div]:[--github-arrow-border-color:transparent]",DD="[&_.w-color-saturation-fill]:!size-4 [&_.w-color-saturation-fill]:!-translate-x-2 [&_.w-color-saturation-fill]:!-translate-y-2";function qu({className:e,color:n,onColorChange:t,...o}){const i=Ws(n);return a.jsxs(dd,{children:[a.jsx(fd,{asChild:!0,children:a.jsx("button",{className:ct("size-12 flex-shrink-0 rounded border",e),style:{backgroundColor:Sl(i)},...o})}),a.jsx(cl,{className:PD,children:a.jsx(ED,{color:i,onChange:t,inputType:tr.HEXA,className:`${AD} ${MD} ${DD}`})})]})}function TD(){const[e,n]=C.useState(An("#2719D5").hsla),[t,o]=C.useState(An("#FFA121").hsla);return a.jsx("div",{children:a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx(qu,{color:e,onColorChange:i=>{n(i.hsla)}}),a.jsx(qu,{color:t,onColorChange:i=>{o(i.hsla)}})]})})}const kD=["#e2e2e2","#ff75c3","#ffa647","#ffe83f","#9fff5b","#70e2ff","#cd93ff","#09203f"];function ID({background:e,setBackground:n}){return a.jsx(Ve,{value:"solid",className:"mt-0 flex flex-wrap gap-1",children:kD.map(t=>a.jsx("div",{style:{background:t},className:"h-6 w-6 cursor-pointer rounded-md active:scale-105",onClick:()=>n(t)},t))})}const lb=({background:e,children:n})=>a.jsx("div",{className:"relative rounded-md !bg-cover !bg-center p-0.5 transition-all",style:{background:e},children:a.jsx("div",{className:"rounded-md bg-popover/80 p-1 text-center text-xs",children:n})}),LD=["linear-gradient(to bottom right,#accbee,#e7f0fd)","linear-gradient(to bottom right,#d5d4d0,#d5d4d0,#eeeeec)","linear-gradient(to bottom right,#000000,#434343)","linear-gradient(to bottom right,#09203f,#537895)","linear-gradient(to bottom right,#ac32e4,#7918f2,#4801FF)","linear-gradient(to bottom right,#f953c6,#b91d73)","linear-gradient(to bottom right,#ee0979,#ff6a00)","linear-gradient(to bottom right,#f00000,#dc281e)","linear-gradient(to bottom right,#00c6ff,#0072ff)","linear-gradient(to bottom right,#4facfe,#00f2fe)","linear-gradient(to bottom right,#0ba360,#3cba92)","linear-gradient(to bottom right,#fdfc47,#24fe41)","linear-gradient(to bottom right,#8a2be2,#0000cd,#228b22,#ccff00)","linear-gradient(to bottom right,#40e0d0,#ff8c00,#ff0080)","linear-gradient(to bottom right,#fcc5e4,#fda34b,#ff7882,#c8699e,#7046aa,#0c1db8,#020f75)","linear-gradient(to bottom right,#ff75c3,#ffa647,#ffe83f,#9fff5b,#70e2ff,#cd93ff)"];function FD({background:e,setBackground:n}){return a.jsxs(Ve,{value:"gradient",className:"mt-0",children:[a.jsx("div",{className:"mb-2 flex flex-wrap gap-1",children:LD.map(t=>a.jsx("div",{style:{background:t},className:"h-6 w-6 cursor-pointer rounded-md active:scale-105",onClick:()=>n(t)},t))}),a.jsxs(lb,{background:e,children:["💡 Get more at"," ",a.jsx("a",{href:"https://gradient.page/css/ui-gradients",className:"font-bold hover:underline",target:"_blank",children:"GradientPage"})]})]})}const OD=""+new URL("1_beautiful-blue-001-BN32iEVL.jpg",import.meta.url).href,zD=""+new URL("2_pretty-in-pink-005-iM5RfYRQ.jpg",import.meta.url).href,BD=""+new URL("3_vibrant-vista-004-wMjFmYoa.jpg",import.meta.url).href,HD=""+new URL("4_deep-dusk-003-3xvTILTq.jpg",import.meta.url).href,VD=[`url(${OD})`,`url(${zD})`,`url(${BD})`,`url(${HD})`];function GD({background:e,setBackground:n}){return a.jsxs(Ve,{value:"image",className:"mt-0",children:[a.jsx("div",{className:"mb-2 grid grid-cols-2 gap-1",children:VD.map(t=>a.jsx("div",{style:{backgroundImage:t},className:"h-12 w-full cursor-pointer rounded-md bg-cover bg-center active:scale-105",onClick:()=>n(t)},t))}),a.jsxs(lb,{background:e,children:["🔓 Get more"," ",a.jsx("a",{href:"https://gradient.page/wallpapers",className:"font-bold hover:underline",target:"_blank",children:"wallpapers"}),a.jsx("br",{}),a.jsxs("div",{className:"text-[10px]",children:["App dev? Refer ",a.jsx("a",{href:"https://gradient.page/affiliate",className:"font-bold hover:underline",target:"_blank",children:"GradientPage"}),", get 80%"]})]})]})}function WD({background:e,className:n}){return a.jsx(fd,{asChild:!0,children:a.jsx(ft,{variant:"outline",className:X("w-[220px] justify-start text-left font-normal",!e&&"text-muted-foreground",n),children:a.jsxs("div",{className:"flex w-full items-center gap-2",children:[e?a.jsx("div",{className:"h-4 w-4 rounded !bg-cover !bg-center transition-all",style:{background:e}}):a.jsx(K0,{className:"h-4 w-4"}),a.jsx("div",{className:"flex-1 truncate",children:e||"Pick a color"})]})})})}function UD({background:e,setBackground:n,className:t}){const o=C.useMemo(()=>e.includes("url")?"image":e.includes("gradient")?"gradient":"solid",[e]);return a.jsxs(dd,{children:[a.jsx(WD,{className:t,background:e}),a.jsxs(cl,{className:"w-64",children:[a.jsxs(hr,{defaultValue:o,className:"w-full",children:[a.jsxs(lr,{className:"mb-4 w-full",children:[a.jsx(He,{className:"flex-1",value:"solid",children:"Solid"}),a.jsx(He,{className:"flex-1",value:"gradient",children:"Gradient"}),a.jsx(He,{className:"flex-1",value:"image",children:"Image"})]}),a.jsx(ID,{background:e,setBackground:n}),a.jsx(FD,{background:e,setBackground:n}),a.jsx(GD,{background:e,setBackground:n})]}),a.jsx(aa,{className:"col-span-2 mt-4 h-8",value:e,onChange:i=>n(i.currentTarget.value)})]})]})}const XD="linear-gradient(to right, #283048,#859398 )";function qD(){const[e,n]=C.useState(XD);return a.jsx("div",{className:"preview flex items-center justify-center rounded !bg-cover !bg-center p-10 transition-all",style:{background:e},children:a.jsx(UD,{background:e,setBackground:n})})}var KD={grad:.9,turn:360,rad:360/(2*Math.PI)},Pr=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Bt=function(e,n,t){return n===void 0&&(n=0),t===void 0&&(t=Math.pow(10,n)),Math.round(t*e)/t+0},qn=function(e,n,t){return n===void 0&&(n=0),t===void 0&&(t=1),e>t?t:e>n?e:n},cb=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},_h=function(e){return{r:qn(e.r,0,255),g:qn(e.g,0,255),b:qn(e.b,0,255),a:qn(e.a)}},pu=function(e){return{r:Bt(e.r),g:Bt(e.g),b:Bt(e.b),a:Bt(e.a,3)}},YD=/^#([0-9a-f]{3,8})$/i,Ti=function(e){var n=e.toString(16);return n.length<2?"0"+n:n},ub=function(e){var n=e.r,t=e.g,o=e.b,i=e.a,l=Math.max(n,t,o),u=l-Math.min(n,t,o),d=u?l===n?(t-o)/u:l===t?2+(o-n)/u:4+(n-t)/u:0;return{h:60*(d<0?d+6:d),s:l?u/l*100:0,v:l/255*100,a:i}},db=function(e){var n=e.h,t=e.s,o=e.v,i=e.a;n=n/360*6,t/=100,o/=100;var l=Math.floor(n),u=o*(1-t),d=o*(1-(n-l)*t),p=o*(1-(1-n+l)*t),f=l%6;return{r:255*[o,d,u,u,p,o][f],g:255*[p,o,o,d,u,u][f],b:255*[u,u,p,o,o,d][f],a:i}},Sh=function(e){return{h:cb(e.h),s:qn(e.s,0,100),l:qn(e.l,0,100),a:qn(e.a)}},Ch=function(e){return{h:Bt(e.h),s:Bt(e.s),l:Bt(e.l),a:Bt(e.a,3)}},jh=function(e){return db((t=(n=e).s,{h:n.h,s:(t*=((o=n.l)<50?o:100-o)/100)>0?2*t/(o+t)*100:0,v:o+t,a:n.a}));var n,t,o},ra=function(e){return{h:(n=ub(e)).h,s:(i=(200-(t=n.s))*(o=n.v)/100)>0&&i<200?t*o/100/(i<=100?i:200-i)*100:0,l:i/2,a:n.a};var n,t,o,i},JD=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ZD=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,QD=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,e8=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ku={string:[[function(e){var n=YD.exec(e);return n?(e=n[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Bt(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Bt(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var n=QD.exec(e)||e8.exec(e);return n?n[2]!==n[4]||n[4]!==n[6]?null:_h({r:Number(n[1])/(n[2]?100/255:1),g:Number(n[3])/(n[4]?100/255:1),b:Number(n[5])/(n[6]?100/255:1),a:n[7]===void 0?1:Number(n[7])/(n[8]?100:1)}):null},"rgb"],[function(e){var n=JD.exec(e)||ZD.exec(e);if(!n)return null;var t,o,i=Sh({h:(t=n[1],o=n[2],o===void 0&&(o="deg"),Number(t)*(KD[o]||1)),s:Number(n[3]),l:Number(n[4]),a:n[5]===void 0?1:Number(n[5])/(n[6]?100:1)});return jh(i)},"hsl"]],object:[[function(e){var n=e.r,t=e.g,o=e.b,i=e.a,l=i===void 0?1:i;return Pr(n)&&Pr(t)&&Pr(o)?_h({r:Number(n),g:Number(t),b:Number(o),a:Number(l)}):null},"rgb"],[function(e){var n=e.h,t=e.s,o=e.l,i=e.a,l=i===void 0?1:i;if(!Pr(n)||!Pr(t)||!Pr(o))return null;var u=Sh({h:Number(n),s:Number(t),l:Number(o),a:Number(l)});return jh(u)},"hsl"],[function(e){var n=e.h,t=e.s,o=e.v,i=e.a,l=i===void 0?1:i;if(!Pr(n)||!Pr(t)||!Pr(o))return null;var u=function(d){return{h:cb(d.h),s:qn(d.s,0,100),v:qn(d.v,0,100),a:qn(d.a)}}({h:Number(n),s:Number(t),v:Number(o),a:Number(l)});return db(u)},"hsv"]]},Nh=function(e,n){for(var t=0;t=.5},e.prototype.toHex=function(){return n=pu(this.rgba),t=n.r,o=n.g,i=n.b,u=(l=n.a)<1?Ti(Bt(255*l)):"","#"+Ti(t)+Ti(o)+Ti(i)+u;var n,t,o,i,l,u},e.prototype.toRgb=function(){return pu(this.rgba)},e.prototype.toRgbString=function(){return n=pu(this.rgba),t=n.r,o=n.g,i=n.b,(l=n.a)<1?"rgba("+t+", "+o+", "+i+", "+l+")":"rgb("+t+", "+o+", "+i+")";var n,t,o,i,l},e.prototype.toHsl=function(){return Ch(ra(this.rgba))},e.prototype.toHslString=function(){return n=Ch(ra(this.rgba)),t=n.h,o=n.s,i=n.l,(l=n.a)<1?"hsla("+t+", "+o+"%, "+i+"%, "+l+")":"hsl("+t+", "+o+"%, "+i+"%)";var n,t,o,i,l},e.prototype.toHsv=function(){return n=ub(this.rgba),{h:Bt(n.h),s:Bt(n.s),v:Bt(n.v),a:Bt(n.a,3)};var n},e.prototype.invert=function(){return Ar({r:255-(n=this.rgba).r,g:255-n.g,b:255-n.b,a:n.a});var n},e.prototype.saturate=function(n){return n===void 0&&(n=.1),Ar(gu(this.rgba,n))},e.prototype.desaturate=function(n){return n===void 0&&(n=.1),Ar(gu(this.rgba,-n))},e.prototype.grayscale=function(){return Ar(gu(this.rgba,-1))},e.prototype.lighten=function(n){return n===void 0&&(n=.1),Ar(Rh(this.rgba,n))},e.prototype.darken=function(n){return n===void 0&&(n=.1),Ar(Rh(this.rgba,-n))},e.prototype.rotate=function(n){return n===void 0&&(n=15),this.hue(this.hue()+n)},e.prototype.alpha=function(n){return typeof n=="number"?Ar({r:(t=this.rgba).r,g:t.g,b:t.b,a:n}):Bt(this.rgba.a,3);var t},e.prototype.hue=function(n){var t=ra(this.rgba);return typeof n=="number"?Ar({h:n,s:t.s,l:t.l,a:t.a}):Bt(t.h)},e.prototype.isEqual=function(n){return this.toHex()===Ar(n).toHex()},e}(),Ar=function(e){return e instanceof Un?e:new Un(e)},$h=[],n8=function(e){e.forEach(function(n){$h.indexOf(n)<0&&(n(Un,Ku),$h.push(n))})},mu=function(e){var n=e/255;return n<.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)},vu=function(e){return .2126*mu(e.r)+.7152*mu(e.g)+.0722*mu(e.b)};function r8(e){e.prototype.luminance=function(){return n=vu(this.rgba),(t=2)===void 0&&(t=0),o===void 0&&(o=Math.pow(10,t)),Math.round(o*n)/o+0;var n,t,o},e.prototype.contrast=function(n){n===void 0&&(n="#FFF");var t,o,i,l,u,d,p,f=n instanceof e?n:new e(n);return l=this.rgba,u=f.toRgb(),d=vu(l),p=vu(u),t=d>p?(d+.05)/(p+.05):(p+.05)/(d+.05),(o=2)===void 0&&(o=0),i===void 0&&(i=Math.pow(10,o)),Math.floor(i*t)/i+0},e.prototype.isReadable=function(n,t){return n===void 0&&(n="#FFF"),t===void 0&&(t={}),this.contrast(n)>=(d=(u=(o=t).size)===void 0?"normal":u,(l=(i=o.level)===void 0?"AA":i)==="AAA"&&d==="normal"?7:l==="AA"&&d==="large"?3:4.5);var o,i,l,u,d}}function o8(e){var n={analogous:[-30,0,30],complementary:[0,180],"double-split-complementary":[-30,0,30,150,210],rectangle:[0,60,180,240],tetradic:[0,90,180,270],triadic:[0,120,240],"split-complementary":[0,150,210]};e.prototype.harmonies=function(t){var o=this;return t===void 0&&(t="complementary"),n[t].map(function(i){return o.rotate(i)})}}n8([r8,o8]);const Je={number:{int:e=>Math.floor(Math.random()*(e.max-e.min+1))+e.min,float:e=>Math.random()*(e.max-e.min)+e.min},datatype:{boolean:()=>Math.random()<.5},helpers:{arrayElement:e=>e[Math.floor(Math.random()*e.length)]}};function s8(){return{h:Je.number.int({min:0,max:360}),s:Je.number.int({min:0,max:100}),l:Je.number.int({min:10,max:90})}}function a8(e){return{h:e,s:Je.number.int({min:30,max:70}),l:Je.number.int({min:98,max:100})}}function i8(e){return{h:e,s:Je.number.int({min:30,max:60}),l:Je.number.int({min:0,max:4})}}function l8(e){return{h:e,s:Je.number.int({min:50,max:80}),l:Je.number.int({min:0,max:5})}}function c8(e){return{h:e,s:Je.number.int({min:10,max:40}),l:Je.number.int({min:97,max:100})}}function u8(){return new Un({h:Je.number.int({min:0,max:22}),s:Je.number.int({min:80,max:100}),l:Je.number.int({min:20,max:45})})}const d8=["complementary","triadic","analogous","slick"];function Eh(e,n,t,o){switch(n){case"triadic":{const[,i,l]=e.harmonies(n);if(!i||!l)throw new Error("Failed to create harmony");return{secondary:i,accent:l}}case"complementary":{const[,i]=e.harmonies(n);if(!i)throw new Error("Failed to create harmony");return{secondary:i,accent:i}}case"analogous":{const[i,,l]=e.harmonies(n);if(!i||!l)throw new Error("Failed to create harmony");return{secondary:i,accent:l}}case"slick":if(o){const i=Je.number.int({min:0,max:20}),l=Je.number.int({min:8,max:20}),u=new Un({h:e.hue(),s:i,l});return{secondary:u,accent:t?u:u.saturate(Je.number.float({min:.05,max:.1})).lighten(Je.number.float({min:.05,max:.1}))}}else{const i=Je.number.int({min:0,max:20}),l=Je.number.int({min:80,max:92}),u=new Un({h:e.hue(),s:i,l});return{secondary:u,accent:t?u:u.darken(Je.number.float({min:.05,max:.1})).saturate(Je.number.float({min:.05,max:.1}))}}default:{const i=n;throw new Error(`Invalid mode ${i}`)}}}function Zr(e){const n=e.isLight();let t=e,o=0;for(;t.contrast(e)<6&&(t=n?t.darken(.2):t.lighten(.2),!(o++>10)););return t}function It(e){const n=e.toHsl();return{h:n.h,s:n.s,l:n.l}}function Vd(e){const n=new Un(e??s8()),t=n,o=n,i=It(t),l=It(o),u=It(Zr(t)),d=It(Zr(o)),p=i8(n.hue()),f=a8(n.hue()),g=c8(n.hue()),v=l8(n.hue()),x=Je.datatype.boolean(),m=x?It(new Un(f).darken(.01)):f,S=x?It(new Un(p).lighten(.01)):p,w=x?It(new Un(v).darken(.01)):v,$=x?It(new Un(g).lighten(.01)):g,_=Je.datatype.boolean(),y=_?m:f,R=_?S:p,M=_?w:v,E=_?$:g,I=Je.helpers.arrayElement(d8),H=Je.datatype.boolean(),P=Eh(t,I,H,!1),D=It(P.secondary),k=It(Zr(P.secondary)),L=It(P.accent),F=It(Zr(P.accent)),Z=Eh(o,I,H,!0),V=It(Z.secondary),J=It(Zr(Z.secondary)),de=It(Z.accent),ge=It(Zr(Z.accent)),ce=u8(),ue=It(ce),K={h:ue.h,s:ue.s,l:Je.number.int({min:45,max:60})},ne=It(Zr(ce)),U=It(Zr(new Un(K))),q={s:Je.number.int({min:5,max:40}),l:Je.number.int({min:0,max:10})},ie={h:D.h,s:q.s,l:85+q.l},pe={h:V.h,s:q.s,l:15-q.l},Y={s:Je.number.int({min:0,max:15}),l:Je.number.int({min:0,max:15})},be={h:ie.h,s:Y.s,l:25+Y.l},B={h:pe.h,s:Y.s,l:75-Y.l},se={s:Je.number.int({min:2,max:15}),l:Je.number.int({min:5,max:10})},fe={h:f.h,s:se.s,l:f.l-se.l},le={h:p.h,s:se.s,l:Je.number.int({min:10,max:15})};return{light:{background:f,foreground:v,card:m,cardForeground:w,popover:y,popoverForeground:M,primary:i,primaryForeground:u,secondary:D,secondaryForeground:k,accent:L,accentForeground:F,destructive:ue,destructiveForeground:ne,muted:ie,mutedForeground:be,border:fe,input:fe,ring:i},dark:{background:p,foreground:g,card:S,cardForeground:$,popover:R,popoverForeground:E,primary:l,primaryForeground:d,secondary:V,secondaryForeground:J,accent:de,accentForeground:ge,destructive:K,destructiveForeground:U,muted:pe,mutedForeground:B,border:le,input:le,ring:l}}}const f8=Object.freeze(Object.defineProperty({__proto__:null,createThemeConfig:Vd},Symbol.toStringTag,{value:"Module"}));function fb(){const{theme:e}=Ir(lt);return e}const p8=()=>fb(),pb=kd(Vd());function Cl(){return Fu(pb)}function gb(){const e=p8(),n=Dx(pb);return e?n[e]:null}function hb({label:e,themeKey:n}){const t=fb(),o=Cl(),i=gb();if(!i)return null;const l=i[n];function u(d,p){if(!t)return;const f={...i,[d]:p};o(g=>({...g,[t]:f}))}return a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(qu,{color:{...l,a:1},onColorChange:d=>{const p=d.hsl,f=Number(p.h.toFixed(2)),g=Number(p.s.toFixed(2)),v=Number(p.l.toFixed(2));u(n,{h:f,s:g,l:v})},className:"size-6"}),a.jsx(Ki,{className:"flex-shrink-0",children:e})]})}function g8(){return a.jsx("div",{className:"flex flex-col gap-3 py-4",children:h8.map(({label:e,themeKey:n})=>a.jsx(hb,{label:e,themeKey:n},n))})}const h8=[{label:"Background",themeKey:"background"},{label:"Foreground",themeKey:"foreground"},{label:"Card",themeKey:"card"},{label:"Card Foreground",themeKey:"cardForeground"},{label:"Popover",themeKey:"popover"},{label:"Popover Foreground",themeKey:"popoverForeground"},{label:"Primary",themeKey:"primary"},{label:"Primary Foreground",themeKey:"primaryForeground"},{label:"Secondary",themeKey:"secondary"},{label:"Secondary Foreground",themeKey:"secondaryForeground"},{label:"Muted",themeKey:"muted"},{label:"Muted Foreground",themeKey:"mutedForeground"},{label:"Accent",themeKey:"accent"},{label:"Accent Foreground",themeKey:"accentForeground"},{label:"Destructive",themeKey:"destructive"},{label:"Destructive Foreground",themeKey:"destructiveForeground"},{label:"Border",themeKey:"border"},{label:"Input",themeKey:"input"},{label:"Ring",themeKey:"ring"}];var m8=function(e,n,t){if(t||arguments.length===2)for(var o=0,i=n.length,l;o{const n=e.split(/\r?\n/),t=x8(y8),o=[],i=[];let l=0,u=!1;for(const d of n){d.includes(".dark")&&(u=!0),d.includes("}")&&(u=!1);const p=d.trim();if(p.startsWith("--")){const[f,g]=p.split(":");if(!f){l++;continue}const v=t[f.replace("--","")];if(!v)continue;if(!g){l++;continue}const x=g.trim().replace(";","").replaceAll("%","").split(" ");if(x.length!==3){l++;continue}const[m,S,w]=x;if(!m||!S||!w){l++;continue}const $=Number(m),_=Number(S),y=Number(w);if(isNaN($)||isNaN(_)||isNaN(y)){l++;continue}const R={h:$,s:_,l:y};if(u){i.push([v,R]);continue}o.push([v,R])}}return{light:rl.strict(o),dark:rl.strict(i),errors:l}};function _8(){return typeof navigator>"u"?!1:navigator.platform.toUpperCase().indexOf("MAC")>=0}function S8(){const e=Cl(),n=C.useCallback(t=>{const o=w8(t);e(i=>({dark:{...i.dark,...o.dark},light:{...i.light,...o.light}})),o.errors>0?Tu.warning("Some values were invalid and were not pasted."):Tu.success("Theme pasted successfully! 🎉")},[e]);return C.useEffect(()=>{function t(o){const i=o?.clipboardData?.getData("text");i&&n(i)}return window.addEventListener("paste",t),()=>{window.removeEventListener("paste",t)}},[n]),a.jsxs("div",{className:"flex flex-col items-center border border-dotted px-2 py-4 text-center",children:[a.jsx("p",{className:"text-sm",children:"Paste existing theme"}),a.jsxs("p",{className:"mx-auto flex rounded-pill font-mono text-sm text-muted-foreground",children:[_8()?"⌘":"Ctrl"," + V"]})]})}function C8(){const e=gb(),n=Cl();return e?a.jsxs("div",{className:"border border-dotted px-2 py-4",children:[a.jsx("p",{className:"text-sm font-medium",children:"Generate theme"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Based on the primary color"}),a.jsxs("div",{className:"flex items-center justify-between gap-1 py-2",children:[a.jsx(hb,{label:"Primary",themeKey:"primary"}),a.jsx(ft,{className:"h-auto px-4 py-1 text-sm",onClick:()=>n(Vd(e.primary)),children:"Generate"})]})]}):null}function j8(){return a.jsxs(a.Fragment,{children:[a.jsx("p",{className:"text-lg font-semibold leading-none tracking-tight",children:"Customize Theme"}),a.jsx(dl,{className:"my-4 h-72",children:a.jsx(g8,{})}),a.jsx("div",{children:a.jsx(S8,{})}),a.jsx("div",{className:"pt-8",children:a.jsx(C8,{})})]})}function N8(){return a.jsxs(dd,{children:[a.jsx(fd,{asChild:!0,children:a.jsxs(ft,{variant:"outline",children:[a.jsx(K0,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Customize"})]})}),a.jsxs(cl,{className:"w-auto min-w-96 max-h-[720px] bg-muted overflow-auto smallscroll",children:[" ",a.jsx(j8,{})]})]})}const R8="modulepreload",$8=function(e,n){return new URL(e,n).href},Ph={},E8=function(n,t,o){let i=Promise.resolve();if(t&&t.length>0){const l=document.getElementsByTagName("link");i=Promise.all(t.map(u=>{if(u=$8(u,o),u in Ph)return;Ph[u]=!0;const d=u.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(!!o)for(let v=l.length-1;v>=0;v--){const x=l[v];if(x.href===u&&(!d||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${p}`))return;const g=document.createElement("link");if(g.rel=d?"stylesheet":R8,d||(g.as="script",g.crossOrigin=""),g.href=u,document.head.appendChild(g),d)return new Promise((v,x)=>{g.addEventListener("load",v),g.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${u}`)))})}))}return i.then(()=>n()).catch(l=>{const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l})},P8=({className:e})=>{const n=Cl();return a.jsxs(v5,{children:[a.jsx(x5,{asChild:!0,children:a.jsx(ft,{asChild:!0,variant:"outline",className:ct(e),children:a.jsxs("button",{onClick:async()=>{const t=(await E8(()=>Promise.resolve().then(()=>f8),void 0,import.meta.url)).createThemeConfig,o=t();n(o)},className:"flex items-center gap-2",children:[a.jsx(i5,{className:"size-4"}),"Random Theme"]})})}),a.jsx(J0,{children:"Generate Random theme"})]})};var mb={exports:{}},Xs={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Xs.exports;var Ah;function A8(){return Ah||(Ah=1,function(e,n){(function(){var t,o="4.17.21",i=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",d="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",f=500,g="__lodash_placeholder__",v=1,x=2,m=4,S=1,w=2,$=1,_=2,y=4,R=8,M=16,E=32,I=64,H=128,P=256,D=512,k=30,L="...",F=800,Z=16,V=1,J=2,de=3,ge=1/0,ce=9007199254740991,ue=17976931348623157e292,K=NaN,ne=4294967295,U=ne-1,q=ne>>>1,ie=[["ary",H],["bind",$],["bindKey",_],["curry",R],["curryRight",M],["flip",D],["partial",E],["partialRight",I],["rearg",P]],pe="[object Arguments]",Y="[object Array]",be="[object AsyncFunction]",B="[object Boolean]",se="[object Date]",fe="[object DOMException]",le="[object Error]",oe="[object Function]",he="[object GeneratorFunction]",xe="[object Map]",Ce="[object Number]",nt="[object Null]",Ze="[object Object]",Qe="[object Promise]",qe="[object Proxy]",rt="[object RegExp]",ze="[object Set]",ot="[object String]",Ge="[object Symbol]",Ft="[object Undefined]",St="[object WeakMap]",Ht="[object WeakSet]",Vt="[object ArrayBuffer]",Ct="[object DataView]",Ke="[object Float32Array]",ee="[object Float64Array]",me="[object Int8Array]",we="[object Int16Array]",De="[object Int32Array]",ve="[object Uint8Array]",je="[object Uint8ClampedArray]",Ne="[object Uint16Array]",Ie="[object Uint32Array]",et=/\b__p \+= '';/g,st=/\b(__p \+=) '' \+/g,Rt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,At=/&(?:amp|lt|gt|quot|#39);/g,xn=/[&<>"']/g,Jt=RegExp(At.source),$t=RegExp(xn.source),ur=/<%-([\s\S]+?)%>/g,bn=/<%([\s\S]+?)%>/g,Tn=/<%=([\s\S]+?)%>/g,Ut=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kn=/^\w*$/,co=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zt=/[\\^$.*+?()[\]{}|]/g,ln=RegExp(Zt.source),Qt=/^\s+/,cn=/\s/,In=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ln=/\{\n\/\* \[wrapped with (.+)\] \*/,El=/,? & /,Pl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,en=/[()=,{}\[\]\/\s]/,tn=/\\(\\)?/g,un=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nn=/\w*$/,gs=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,Na=/^\[object .+?Constructor\]$/,Ra=/^0o[0-7]+$/i,$a=/^(?:0|[1-9]\d*)$/,Ea=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uo=/($^)/,Pa=/['\n\r\u2028\u2029\\]/g,Do="\\ud800-\\udfff",Al="\\u0300-\\u036f",hs="\\ufe20-\\ufe2f",ms="\\u20d0-\\u20ff",Aa=Al+hs+ms,Ma="\\u2700-\\u27bf",Da="a-z\\xdf-\\xf6\\xf8-\\xff",vs="\\xac\\xb1\\xd7\\xf7",Pb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ab="\\u2000-\\u206f",Mb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qd="A-Z\\xc0-\\xd6\\xd8-\\xde",Kd="\\ufe0e\\ufe0f",Yd=vs+Pb+Ab+Mb,Ml="['’]",Db="["+Do+"]",Jd="["+Yd+"]",Ta="["+Aa+"]",Zd="\\d+",Tb="["+Ma+"]",Qd="["+Da+"]",ef="[^"+Do+Yd+Zd+Ma+Da+qd+"]",Dl="\\ud83c[\\udffb-\\udfff]",kb="(?:"+Ta+"|"+Dl+")",tf="[^"+Do+"]",Tl="(?:\\ud83c[\\udde6-\\uddff]){2}",kl="[\\ud800-\\udbff][\\udc00-\\udfff]",To="["+qd+"]",nf="\\u200d",rf="(?:"+Qd+"|"+ef+")",Ib="(?:"+To+"|"+ef+")",of="(?:"+Ml+"(?:d|ll|m|re|s|t|ve))?",sf="(?:"+Ml+"(?:D|LL|M|RE|S|T|VE))?",af=kb+"?",lf="["+Kd+"]?",Lb="(?:"+nf+"(?:"+[tf,Tl,kl].join("|")+")"+lf+af+")*",Fb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ob="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",cf=lf+af+Lb,zb="(?:"+[Tb,Tl,kl].join("|")+")"+cf,Bb="(?:"+[tf+Ta+"?",Ta,Tl,kl,Db].join("|")+")",Hb=RegExp(Ml,"g"),Vb=RegExp(Ta,"g"),Il=RegExp(Dl+"(?="+Dl+")|"+Bb+cf,"g"),Gb=RegExp([To+"?"+Qd+"+"+of+"(?="+[Jd,To,"$"].join("|")+")",Ib+"+"+sf+"(?="+[Jd,To+rf,"$"].join("|")+")",To+"?"+rf+"+"+of,To+"+"+sf,Ob,Fb,Zd,zb].join("|"),"g"),Wb=RegExp("["+nf+Do+Aa+Kd+"]"),Ub=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xb=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qb=-1,gt={};gt[Ke]=gt[ee]=gt[me]=gt[we]=gt[De]=gt[ve]=gt[je]=gt[Ne]=gt[Ie]=!0,gt[pe]=gt[Y]=gt[Vt]=gt[B]=gt[Ct]=gt[se]=gt[le]=gt[oe]=gt[xe]=gt[Ce]=gt[Ze]=gt[rt]=gt[ze]=gt[ot]=gt[St]=!1;var pt={};pt[pe]=pt[Y]=pt[Vt]=pt[Ct]=pt[B]=pt[se]=pt[Ke]=pt[ee]=pt[me]=pt[we]=pt[De]=pt[xe]=pt[Ce]=pt[Ze]=pt[rt]=pt[ze]=pt[ot]=pt[Ge]=pt[ve]=pt[je]=pt[Ne]=pt[Ie]=!0,pt[le]=pt[oe]=pt[St]=!1;var Kb={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Yb={"&":"&","<":"<",">":">",'"':""","'":"'"},Jb={"&":"&","<":"<",">":">",""":'"',"'":"'"},Zb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qb=parseFloat,e1=parseInt,uf=typeof Yo=="object"&&Yo&&Yo.Object===Object&&Yo,t1=typeof self=="object"&&self&&self.Object===Object&&self,Gt=uf||t1||Function("return this")(),Ll=n&&!n.nodeType&&n,fo=Ll&&!0&&e&&!e.nodeType&&e,df=fo&&fo.exports===Ll,Fl=df&&uf.process,Fn=function(){try{var O=fo&&fo.require&&fo.require("util").types;return O||Fl&&Fl.binding&&Fl.binding("util")}catch{}}(),ff=Fn&&Fn.isArrayBuffer,pf=Fn&&Fn.isDate,gf=Fn&&Fn.isMap,hf=Fn&&Fn.isRegExp,mf=Fn&&Fn.isSet,vf=Fn&&Fn.isTypedArray;function wn(O,Q,W){switch(W.length){case 0:return O.call(Q);case 1:return O.call(Q,W[0]);case 2:return O.call(Q,W[0],W[1]);case 3:return O.call(Q,W[0],W[1],W[2])}return O.apply(Q,W)}function n1(O,Q,W,Se){for(var Te=-1,tt=O==null?0:O.length;++Te-1}function Ol(O,Q,W){for(var Se=-1,Te=O==null?0:O.length;++Se-1;);return W}function jf(O,Q){for(var W=O.length;W--&&ko(Q,O[W],0)>-1;);return W}function d1(O,Q){for(var W=O.length,Se=0;W--;)O[W]===Q&&++Se;return Se}var f1=Vl(Kb),p1=Vl(Yb);function g1(O){return"\\"+Zb[O]}function h1(O,Q){return O==null?t:O[Q]}function Io(O){return Wb.test(O)}function m1(O){return Ub.test(O)}function v1(O){for(var Q,W=[];!(Q=O.next()).done;)W.push(Q.value);return W}function Xl(O){var Q=-1,W=Array(O.size);return O.forEach(function(Se,Te){W[++Q]=[Te,Se]}),W}function Nf(O,Q){return function(W){return O(Q(W))}}function Or(O,Q){for(var W=-1,Se=O.length,Te=0,tt=[];++W-1}function oy(r,s){var c=this.__data__,h=Za(c,r);return h<0?(++this.size,c.push([r,s])):c[h][1]=s,this}xr.prototype.clear=ey,xr.prototype.delete=ty,xr.prototype.get=ny,xr.prototype.has=ry,xr.prototype.set=oy;function br(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s=s?r:s)),r}function Hn(r,s,c,h,b,N){var A,T=s&v,z=s&x,te=s&m;if(c&&(A=b?c(r,h,b,N):c(r)),A!==t)return A;if(!_t(r))return r;var re=ke(r);if(re){if(A=lw(r),!T)return dn(r,A)}else{var ae=qt(r),ye=ae==oe||ae==he;if(Wr(r))return lp(r,T);if(ae==Ze||ae==pe||ye&&!b){if(A=z||ye?{}:Rp(r),!T)return z?Jy(r,yy(A,r)):Yy(r,Ff(A,r))}else{if(!pt[ae])return b?r:{};A=cw(r,ae,T)}}N||(N=new Jn);var Re=N.get(r);if(Re)return Re;N.set(r,A),ng(r)?r.forEach(function(Pe){A.add(Hn(Pe,s,c,Pe,r,N))}):eg(r)&&r.forEach(function(Pe,We){A.set(We,Hn(Pe,s,c,We,r,N))});var Ee=te?z?bc:xc:z?pn:Ot,Oe=re?t:Ee(r);return On(Oe||r,function(Pe,We){Oe&&(We=Pe,Pe=r[We]),Cs(A,We,Hn(Pe,s,c,We,r,N))}),A}function wy(r){var s=Ot(r);return function(c){return Of(c,r,s)}}function Of(r,s,c){var h=c.length;if(r==null)return!h;for(r=ut(r);h--;){var b=c[h],N=s[b],A=r[b];if(A===t&&!(b in r)||!N(A))return!1}return!0}function zf(r,s,c){if(typeof r!="function")throw new zn(u);return As(function(){r.apply(t,c)},s)}function js(r,s,c,h){var b=-1,N=ka,A=!0,T=r.length,z=[],te=s.length;if(!T)return z;c&&(s=bt(s,_n(c))),h?(N=Ol,A=!1):s.length>=i&&(N=xs,A=!1,s=new ho(s));e:for(;++bb?0:b+c),h=h===t||h>b?b:Le(h),h<0&&(h+=b),h=c>h?0:og(h);c0&&c(T)?s>1?Wt(T,s-1,c,h,b):Fr(b,T):h||(b[b.length]=T)}return b}var ec=gp(),Vf=gp(!0);function dr(r,s){return r&&ec(r,s,Ot)}function tc(r,s){return r&&Vf(r,s,Ot)}function ei(r,s){return Lr(s,function(c){return Cr(r[c])})}function vo(r,s){s=Vr(s,r);for(var c=0,h=s.length;r!=null&&cs}function Cy(r,s){return r!=null&&it.call(r,s)}function jy(r,s){return r!=null&&s in ut(r)}function Ny(r,s,c){return r>=Xt(s,c)&&r=120&&re.length>=120)?new ho(A&&re):t}re=r[0];var ae=-1,ye=T[0];e:for(;++ae-1;)T!==r&&Wa.call(T,z,1),Wa.call(r,z,1);return r}function ep(r,s){for(var c=r?s.length:0,h=c-1;c--;){var b=s[c];if(c==h||b!==N){var N=b;Sr(b)?Wa.call(r,b,1):dc(r,b)}}return r}function lc(r,s){return r+qa(Tf()*(s-r+1))}function Oy(r,s,c,h){for(var b=-1,N=kt(Xa((s-r)/(c||1)),0),A=W(N);N--;)A[h?N:++b]=r,r+=c;return A}function cc(r,s){var c="";if(!r||s<1||s>ce)return c;do s%2&&(c+=r),s=qa(s/2),s&&(r+=r);while(s);return c}function Be(r,s){return Nc(Pp(r,s,gn),r+"")}function zy(r){return Lf(Xo(r))}function By(r,s){var c=Xo(r);return di(c,mo(s,0,c.length))}function $s(r,s,c,h){if(!_t(r))return r;s=Vr(s,r);for(var b=-1,N=s.length,A=N-1,T=r;T!=null&&++bb?0:b+s),c=c>b?b:c,c<0&&(c+=b),b=s>c?0:c-s>>>0,s>>>=0;for(var N=W(b);++h>>1,A=r[N];A!==null&&!Cn(A)&&(c?A<=s:A=i){var te=s?null:tw(r);if(te)return La(te);A=!1,b=xs,z=new ho}else z=s?[]:T;e:for(;++h=h?r:Vn(r,s,c)}var ip=M1||function(r){return Gt.clearTimeout(r)};function lp(r,s){if(s)return r.slice();var c=r.length,h=Ef?Ef(c):new r.constructor(c);return r.copy(h),h}function hc(r){var s=new r.constructor(r.byteLength);return new Va(s).set(new Va(r)),s}function Uy(r,s){var c=s?hc(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function Xy(r){var s=new r.constructor(r.source,nn.exec(r));return s.lastIndex=r.lastIndex,s}function qy(r){return Ss?ut(Ss.call(r)):{}}function cp(r,s){var c=s?hc(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function up(r,s){if(r!==s){var c=r!==t,h=r===null,b=r===r,N=Cn(r),A=s!==t,T=s===null,z=s===s,te=Cn(s);if(!T&&!te&&!N&&r>s||N&&A&&z&&!T&&!te||h&&A&&z||!c&&z||!b)return 1;if(!h&&!N&&!te&&r=T)return z;var te=c[h];return z*(te=="desc"?-1:1)}}return r.index-s.index}function dp(r,s,c,h){for(var b=-1,N=r.length,A=c.length,T=-1,z=s.length,te=kt(N-A,0),re=W(z+te),ae=!h;++T1?c[b-1]:t,A=b>2?c[2]:t;for(N=r.length>3&&typeof N=="function"?(b--,N):t,A&&on(c[0],c[1],A)&&(N=b<3?t:N,b=1),s=ut(s);++h-1?b[N?s[A]:A]:t}}function vp(r){return _r(function(s){var c=s.length,h=c,b=Bn.prototype.thru;for(r&&s.reverse();h--;){var N=s[h];if(typeof N!="function")throw new zn(u);if(b&&!A&&ci(N)=="wrapper")var A=new Bn([],!0)}for(h=A?h:c;++h1&&Ye.reverse(),re&&zT))return!1;var te=N.get(r),re=N.get(s);if(te&&re)return te==s&&re==r;var ae=-1,ye=!0,Re=c&w?new ho:t;for(N.set(r,s),N.set(s,r);++ae1?"& ":"")+s[h],s=s.join(c>2?", ":" "),r.replace(In,`{ -/* [wrapped with `+s+`] */ -`)}function dw(r){return ke(r)||yo(r)||!!(Mf&&r&&r[Mf])}function Sr(r,s){var c=typeof r;return s=s??ce,!!s&&(c=="number"||c!="symbol"&&$a.test(r))&&r>-1&&r%1==0&&r0){if(++s>=F)return arguments[0]}else s=0;return r.apply(t,arguments)}}function di(r,s){var c=-1,h=r.length,b=h-1;for(s=s===t?h:s;++c1?r[s-1]:t;return c=typeof c=="function"?(r.pop(),c):t,Hp(r,c)});function Vp(r){var s=j(r);return s.__chain__=!0,s}function __(r,s){return s(r),r}function fi(r,s){return s(r)}var S_=_r(function(r){var s=r.length,c=s?r[0]:0,h=this.__wrapped__,b=function(N){return Ql(N,r)};return s>1||this.__actions__.length||!(h instanceof Xe)||!Sr(c)?this.thru(b):(h=h.slice(c,+c+(s?1:0)),h.__actions__.push({func:fi,args:[b],thisArg:t}),new Bn(h,this.__chain__).thru(function(N){return s&&!N.length&&N.push(t),N}))});function C_(){return Vp(this)}function j_(){return new Bn(this.value(),this.__chain__)}function N_(){this.__values__===t&&(this.__values__=rg(this.value()));var r=this.__index__>=this.__values__.length,s=r?t:this.__values__[this.__index__++];return{done:r,value:s}}function R_(){return this}function $_(r){for(var s,c=this;c instanceof Ja;){var h=Ip(c);h.__index__=0,h.__values__=t,s?b.__wrapped__=h:s=h;var b=h;c=c.__wrapped__}return b.__wrapped__=r,s}function E_(){var r=this.__wrapped__;if(r instanceof Xe){var s=r;return this.__actions__.length&&(s=new Xe(this)),s=s.reverse(),s.__actions__.push({func:fi,args:[Rc],thisArg:t}),new Bn(s,this.__chain__)}return this.thru(Rc)}function P_(){return sp(this.__wrapped__,this.__actions__)}var A_=oi(function(r,s,c){it.call(r,c)?++r[c]:yr(r,c,1)});function M_(r,s,c){var h=ke(r)?xf:_y;return c&&on(r,s,c)&&(s=t),h(r,$e(s,3))}function D_(r,s){var c=ke(r)?Lr:Hf;return c(r,$e(s,3))}var T_=mp(Lp),k_=mp(Fp);function I_(r,s){return Wt(pi(r,s),1)}function L_(r,s){return Wt(pi(r,s),ge)}function F_(r,s,c){return c=c===t?1:Le(c),Wt(pi(r,s),c)}function Gp(r,s){var c=ke(r)?On:Br;return c(r,$e(s,3))}function Wp(r,s){var c=ke(r)?r1:Bf;return c(r,$e(s,3))}var O_=oi(function(r,s,c){it.call(r,c)?r[c].push(s):yr(r,c,[s])});function z_(r,s,c,h){r=fn(r)?r:Xo(r),c=c&&!h?Le(c):0;var b=r.length;return c<0&&(c=kt(b+c,0)),xi(r)?c<=b&&r.indexOf(s,c)>-1:!!b&&ko(r,s,c)>-1}var B_=Be(function(r,s,c){var h=-1,b=typeof s=="function",N=fn(r)?W(r.length):[];return Br(r,function(A){N[++h]=b?wn(s,A,c):Ns(A,s,c)}),N}),H_=oi(function(r,s,c){yr(r,c,s)});function pi(r,s){var c=ke(r)?bt:qf;return c(r,$e(s,3))}function V_(r,s,c,h){return r==null?[]:(ke(s)||(s=s==null?[]:[s]),c=h?t:c,ke(c)||(c=c==null?[]:[c]),Zf(r,s,c))}var G_=oi(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function W_(r,s,c){var h=ke(r)?zl:_f,b=arguments.length<3;return h(r,$e(s,4),c,b,Br)}function U_(r,s,c){var h=ke(r)?o1:_f,b=arguments.length<3;return h(r,$e(s,4),c,b,Bf)}function X_(r,s){var c=ke(r)?Lr:Hf;return c(r,mi($e(s,3)))}function q_(r){var s=ke(r)?Lf:zy;return s(r)}function K_(r,s,c){(c?on(r,s,c):s===t)?s=1:s=Le(s);var h=ke(r)?vy:By;return h(r,s)}function Y_(r){var s=ke(r)?xy:Vy;return s(r)}function J_(r){if(r==null)return 0;if(fn(r))return xi(r)?Lo(r):r.length;var s=qt(r);return s==xe||s==ze?r.size:sc(r).length}function Z_(r,s,c){var h=ke(r)?Bl:Gy;return c&&on(r,s,c)&&(s=t),h(r,$e(s,3))}var Q_=Be(function(r,s){if(r==null)return[];var c=s.length;return c>1&&on(r,s[0],s[1])?s=[]:c>2&&on(s[0],s[1],s[2])&&(s=[s[0]]),Zf(r,Wt(s,1),[])}),gi=D1||function(){return Gt.Date.now()};function eS(r,s){if(typeof s!="function")throw new zn(u);return r=Le(r),function(){if(--r<1)return s.apply(this,arguments)}}function Up(r,s,c){return s=c?t:s,s=r&&s==null?r.length:s,wr(r,H,t,t,t,t,s)}function Xp(r,s){var c;if(typeof s!="function")throw new zn(u);return r=Le(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=t),c}}var Ec=Be(function(r,s,c){var h=$;if(c.length){var b=Or(c,Wo(Ec));h|=E}return wr(r,h,s,c,b)}),qp=Be(function(r,s,c){var h=$|_;if(c.length){var b=Or(c,Wo(qp));h|=E}return wr(s,h,r,c,b)});function Kp(r,s,c){s=c?t:s;var h=wr(r,R,t,t,t,t,t,s);return h.placeholder=Kp.placeholder,h}function Yp(r,s,c){s=c?t:s;var h=wr(r,M,t,t,t,t,t,s);return h.placeholder=Yp.placeholder,h}function Jp(r,s,c){var h,b,N,A,T,z,te=0,re=!1,ae=!1,ye=!0;if(typeof r!="function")throw new zn(u);s=Wn(s)||0,_t(c)&&(re=!!c.leading,ae="maxWait"in c,N=ae?kt(Wn(c.maxWait)||0,s):N,ye="trailing"in c?!!c.trailing:ye);function Re(Pt){var Qn=h,Nr=b;return h=b=t,te=Pt,A=r.apply(Nr,Qn),A}function Ee(Pt){return te=Pt,T=As(We,s),re?Re(Pt):A}function Oe(Pt){var Qn=Pt-z,Nr=Pt-te,mg=s-Qn;return ae?Xt(mg,N-Nr):mg}function Pe(Pt){var Qn=Pt-z,Nr=Pt-te;return z===t||Qn>=s||Qn<0||ae&&Nr>=N}function We(){var Pt=gi();if(Pe(Pt))return Ye(Pt);T=As(We,Oe(Pt))}function Ye(Pt){return T=t,ye&&h?Re(Pt):(h=b=t,A)}function jn(){T!==t&&ip(T),te=0,h=z=b=T=t}function sn(){return T===t?A:Ye(gi())}function Nn(){var Pt=gi(),Qn=Pe(Pt);if(h=arguments,b=this,z=Pt,Qn){if(T===t)return Ee(z);if(ae)return ip(T),T=As(We,s),Re(z)}return T===t&&(T=As(We,s)),A}return Nn.cancel=jn,Nn.flush=sn,Nn}var tS=Be(function(r,s){return zf(r,1,s)}),nS=Be(function(r,s,c){return zf(r,Wn(s)||0,c)});function rS(r){return wr(r,D)}function hi(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new zn(u);var c=function(){var h=arguments,b=s?s.apply(this,h):h[0],N=c.cache;if(N.has(b))return N.get(b);var A=r.apply(this,h);return c.cache=N.set(b,A)||N,A};return c.cache=new(hi.Cache||br),c}hi.Cache=br;function mi(r){if(typeof r!="function")throw new zn(u);return function(){var s=arguments;switch(s.length){case 0:return!r.call(this);case 1:return!r.call(this,s[0]);case 2:return!r.call(this,s[0],s[1]);case 3:return!r.call(this,s[0],s[1],s[2])}return!r.apply(this,s)}}function oS(r){return Xp(2,r)}var sS=Wy(function(r,s){s=s.length==1&&ke(s[0])?bt(s[0],_n($e())):bt(Wt(s,1),_n($e()));var c=s.length;return Be(function(h){for(var b=-1,N=Xt(h.length,c);++b=s}),yo=Wf(function(){return arguments}())?Wf:function(r){return jt(r)&&it.call(r,"callee")&&!Af.call(r,"callee")},ke=W.isArray,yS=ff?_n(ff):$y;function fn(r){return r!=null&&vi(r.length)&&!Cr(r)}function Et(r){return jt(r)&&fn(r)}function wS(r){return r===!0||r===!1||jt(r)&&rn(r)==B}var Wr=k1||Bc,_S=pf?_n(pf):Ey;function SS(r){return jt(r)&&r.nodeType===1&&!Ms(r)}function CS(r){if(r==null)return!0;if(fn(r)&&(ke(r)||typeof r=="string"||typeof r.splice=="function"||Wr(r)||Uo(r)||yo(r)))return!r.length;var s=qt(r);if(s==xe||s==ze)return!r.size;if(Ps(r))return!sc(r).length;for(var c in r)if(it.call(r,c))return!1;return!0}function jS(r,s){return Rs(r,s)}function NS(r,s,c){c=typeof c=="function"?c:t;var h=c?c(r,s):t;return h===t?Rs(r,s,t,c):!!h}function Ac(r){if(!jt(r))return!1;var s=rn(r);return s==le||s==fe||typeof r.message=="string"&&typeof r.name=="string"&&!Ms(r)}function RS(r){return typeof r=="number"&&Df(r)}function Cr(r){if(!_t(r))return!1;var s=rn(r);return s==oe||s==he||s==be||s==qe}function Qp(r){return typeof r=="number"&&r==Le(r)}function vi(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ce}function _t(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function jt(r){return r!=null&&typeof r=="object"}var eg=gf?_n(gf):Ay;function $S(r,s){return r===s||oc(r,s,wc(s))}function ES(r,s,c){return c=typeof c=="function"?c:t,oc(r,s,wc(s),c)}function PS(r){return tg(r)&&r!=+r}function AS(r){if(gw(r))throw new Te(l);return Uf(r)}function MS(r){return r===null}function DS(r){return r==null}function tg(r){return typeof r=="number"||jt(r)&&rn(r)==Ce}function Ms(r){if(!jt(r)||rn(r)!=Ze)return!1;var s=Ga(r);if(s===null)return!0;var c=it.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&za.call(c)==E1}var Mc=hf?_n(hf):My;function TS(r){return Qp(r)&&r>=-ce&&r<=ce}var ng=mf?_n(mf):Dy;function xi(r){return typeof r=="string"||!ke(r)&&jt(r)&&rn(r)==ot}function Cn(r){return typeof r=="symbol"||jt(r)&&rn(r)==Ge}var Uo=vf?_n(vf):Ty;function kS(r){return r===t}function IS(r){return jt(r)&&qt(r)==St}function LS(r){return jt(r)&&rn(r)==Ht}var FS=li(ac),OS=li(function(r,s){return r<=s});function rg(r){if(!r)return[];if(fn(r))return xi(r)?Yn(r):dn(r);if(bs&&r[bs])return v1(r[bs]());var s=qt(r),c=s==xe?Xl:s==ze?La:Xo;return c(r)}function jr(r){if(!r)return r===0?r:0;if(r=Wn(r),r===ge||r===-ge){var s=r<0?-1:1;return s*ue}return r===r?r:0}function Le(r){var s=jr(r),c=s%1;return s===s?c?s-c:s:0}function og(r){return r?mo(Le(r),0,ne):0}function Wn(r){if(typeof r=="number")return r;if(Cn(r))return K;if(_t(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=_t(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=Sf(r);var c=yn.test(r);return c||Ra.test(r)?e1(r.slice(2),c?2:8):gs.test(r)?K:+r}function sg(r){return fr(r,pn(r))}function zS(r){return r?mo(Le(r),-ce,ce):r===0?r:0}function at(r){return r==null?"":Sn(r)}var BS=Vo(function(r,s){if(Ps(s)||fn(s)){fr(s,Ot(s),r);return}for(var c in s)it.call(s,c)&&Cs(r,c,s[c])}),ag=Vo(function(r,s){fr(s,pn(s),r)}),bi=Vo(function(r,s,c,h){fr(s,pn(s),r,h)}),HS=Vo(function(r,s,c,h){fr(s,Ot(s),r,h)}),VS=_r(Ql);function GS(r,s){var c=Ho(r);return s==null?c:Ff(c,s)}var WS=Be(function(r,s){r=ut(r);var c=-1,h=s.length,b=h>2?s[2]:t;for(b&&on(s[0],s[1],b)&&(h=1);++c1),N}),fr(r,bc(r),c),h&&(c=Hn(c,v|x|m,nw));for(var b=s.length;b--;)dc(c,s[b]);return c});function c2(r,s){return lg(r,mi($e(s)))}var u2=_r(function(r,s){return r==null?{}:Ly(r,s)});function lg(r,s){if(r==null)return{};var c=bt(bc(r),function(h){return[h]});return s=$e(s),Qf(r,c,function(h,b){return s(h,b[0])})}function d2(r,s,c){s=Vr(s,r);var h=-1,b=s.length;for(b||(b=1,r=t);++hs){var h=r;r=s,s=h}if(c||r%1||s%1){var b=Tf();return Xt(r+b*(s-r+Qb("1e-"+((b+"").length-1))),s)}return lc(r,s)}var _2=Go(function(r,s,c){return s=s.toLowerCase(),r+(c?dg(s):s)});function dg(r){return kc(at(r).toLowerCase())}function fg(r){return r=at(r),r&&r.replace(Ea,f1).replace(Vb,"")}function S2(r,s,c){r=at(r),s=Sn(s);var h=r.length;c=c===t?h:mo(Le(c),0,h);var b=c;return c-=s.length,c>=0&&r.slice(c,b)==s}function C2(r){return r=at(r),r&&$t.test(r)?r.replace(xn,p1):r}function j2(r){return r=at(r),r&&ln.test(r)?r.replace(Zt,"\\$&"):r}var N2=Go(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),R2=Go(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),$2=hp("toLowerCase");function E2(r,s,c){r=at(r),s=Le(s);var h=s?Lo(r):0;if(!s||h>=s)return r;var b=(s-h)/2;return ii(qa(b),c)+r+ii(Xa(b),c)}function P2(r,s,c){r=at(r),s=Le(s);var h=s?Lo(r):0;return s&&h>>0,c?(r=at(r),r&&(typeof s=="string"||s!=null&&!Mc(s))&&(s=Sn(s),!s&&Io(r))?Gr(Yn(r),0,c):r.split(s,c)):[]}var L2=Go(function(r,s,c){return r+(c?" ":"")+kc(s)});function F2(r,s,c){return r=at(r),c=c==null?0:mo(Le(c),0,r.length),s=Sn(s),r.slice(c,c+s.length)==s}function O2(r,s,c){var h=j.templateSettings;c&&on(r,s,c)&&(s=t),r=at(r),s=bi({},s,h,_p);var b=bi({},s.imports,h.imports,_p),N=Ot(b),A=Ul(b,N),T,z,te=0,re=s.interpolate||uo,ae="__p += '",ye=ql((s.escape||uo).source+"|"+re.source+"|"+(re===Tn?un:uo).source+"|"+(s.evaluate||uo).source+"|$","g"),Re="//# sourceURL="+(it.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qb+"]")+` -`;r.replace(ye,function(Pe,We,Ye,jn,sn,Nn){return Ye||(Ye=jn),ae+=r.slice(te,Nn).replace(Pa,g1),We&&(T=!0,ae+=`' + -__e(`+We+`) + -'`),sn&&(z=!0,ae+=`'; -`+sn+`; -__p += '`),Ye&&(ae+=`' + -((__t = (`+Ye+`)) == null ? '' : __t) + -'`),te=Nn+Pe.length,Pe}),ae+=`'; -`;var Ee=it.call(s,"variable")&&s.variable;if(!Ee)ae=`with (obj) { -`+ae+` -} -`;else if(en.test(Ee))throw new Te(d);ae=(z?ae.replace(et,""):ae).replace(st,"$1").replace(Rt,"$1;"),ae="function("+(Ee||"obj")+`) { -`+(Ee?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(T?", __e = _.escape":"")+(z?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+ae+`return __p -}`;var Oe=gg(function(){return tt(N,Re+"return "+ae).apply(t,A)});if(Oe.source=ae,Ac(Oe))throw Oe;return Oe}function z2(r){return at(r).toLowerCase()}function B2(r){return at(r).toUpperCase()}function H2(r,s,c){if(r=at(r),r&&(c||s===t))return Sf(r);if(!r||!(s=Sn(s)))return r;var h=Yn(r),b=Yn(s),N=Cf(h,b),A=jf(h,b)+1;return Gr(h,N,A).join("")}function V2(r,s,c){if(r=at(r),r&&(c||s===t))return r.slice(0,Rf(r)+1);if(!r||!(s=Sn(s)))return r;var h=Yn(r),b=jf(h,Yn(s))+1;return Gr(h,0,b).join("")}function G2(r,s,c){if(r=at(r),r&&(c||s===t))return r.replace(Qt,"");if(!r||!(s=Sn(s)))return r;var h=Yn(r),b=Cf(h,Yn(s));return Gr(h,b).join("")}function W2(r,s){var c=k,h=L;if(_t(s)){var b="separator"in s?s.separator:b;c="length"in s?Le(s.length):c,h="omission"in s?Sn(s.omission):h}r=at(r);var N=r.length;if(Io(r)){var A=Yn(r);N=A.length}if(c>=N)return r;var T=c-Lo(h);if(T<1)return h;var z=A?Gr(A,0,T).join(""):r.slice(0,T);if(b===t)return z+h;if(A&&(T+=z.length-T),Mc(b)){if(r.slice(T).search(b)){var te,re=z;for(b.global||(b=ql(b.source,at(nn.exec(b))+"g")),b.lastIndex=0;te=b.exec(re);)var ae=te.index;z=z.slice(0,ae===t?T:ae)}}else if(r.indexOf(Sn(b),T)!=T){var ye=z.lastIndexOf(b);ye>-1&&(z=z.slice(0,ye))}return z+h}function U2(r){return r=at(r),r&&Jt.test(r)?r.replace(At,w1):r}var X2=Go(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),kc=hp("toUpperCase");function pg(r,s,c){return r=at(r),s=c?t:s,s===t?m1(r)?C1(r):i1(r):r.match(s)||[]}var gg=Be(function(r,s){try{return wn(r,t,s)}catch(c){return Ac(c)?c:new Te(c)}}),q2=_r(function(r,s){return On(s,function(c){c=pr(c),yr(r,c,Ec(r[c],r))}),r});function K2(r){var s=r==null?0:r.length,c=$e();return r=s?bt(r,function(h){if(typeof h[1]!="function")throw new zn(u);return[c(h[0]),h[1]]}):[],Be(function(h){for(var b=-1;++bce)return[];var c=ne,h=Xt(r,ne);s=$e(s),r-=ne;for(var b=Wl(h,s);++c0||s<0)?new Xe(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==t&&(s=Le(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},Xe.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Xe.prototype.toArray=function(){return this.take(ne)},dr(Xe.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),h=/^(?:head|last)$/.test(s),b=j[h?"take"+(s=="last"?"Right":""):s],N=h||/^find/.test(s);b&&(j.prototype[s]=function(){var A=this.__wrapped__,T=h?[1]:arguments,z=A instanceof Xe,te=T[0],re=z||ke(A),ae=function(We){var Ye=b.apply(j,Fr([We],T));return h&&ye?Ye[0]:Ye};re&&c&&typeof te=="function"&&te.length!=1&&(z=re=!1);var ye=this.__chain__,Re=!!this.__actions__.length,Ee=N&&!ye,Oe=z&&!Re;if(!N&&re){A=Oe?A:new Xe(this);var Pe=r.apply(A,T);return Pe.__actions__.push({func:fi,args:[ae],thisArg:t}),new Bn(Pe,ye)}return Ee&&Oe?r.apply(this,T):(Pe=this.thru(ae),Ee?h?Pe.value()[0]:Pe.value():Pe)})}),On(["pop","push","shift","sort","splice","unshift"],function(r){var s=Fa[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",h=/^(?:pop|shift)$/.test(r);j.prototype[r]=function(){var b=arguments;if(h&&!this.__chain__){var N=this.value();return s.apply(ke(N)?N:[],b)}return this[c](function(A){return s.apply(ke(A)?A:[],b)})}}),dr(Xe.prototype,function(r,s){var c=j[s];if(c){var h=c.name+"";it.call(Bo,h)||(Bo[h]=[]),Bo[h].push({name:s,func:c})}}),Bo[si(t,_).name]=[{name:"wrapper",func:t}],Xe.prototype.clone=U1,Xe.prototype.reverse=X1,Xe.prototype.value=q1,j.prototype.at=S_,j.prototype.chain=C_,j.prototype.commit=j_,j.prototype.next=N_,j.prototype.plant=$_,j.prototype.reverse=E_,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=P_,j.prototype.first=j.prototype.head,bs&&(j.prototype[bs]=R_),j},Fo=j1();fo?((fo.exports=Fo)._=Fo,Ll._=Fo):Gt._=Fo}).call(Yo)}(Xs,Xs.exports)),Xs.exports}(function(e,n){(function(o,i){e.exports=i(C,A8(),Zu())})(Yo,function(t,o,i){return function(){var l={"./src/Xarrow/utils/buzzier.js":function(f,g,v){v.r(g),v.d(g,{bzFunction:function(){return x},buzzierMinSols:function(){return m}});var x=function(w,$,_,y){return function(R){return Math.pow(1-R,3)*w+3*Math.pow(1-R,2)*R*$+3*(1-R)*Math.pow(R,2)*_+Math.pow(R,3)*y}},m=function(w,$,_,y){var R=x(w,$,_,y),M=-6*w+12*$-6*_,E=Math.pow(-6*w+12*$-6*_,2)-4*(3*$-3*w)*(-3*w+9*$-9*_+3*y),I=2*(-3*w+9*$-9*_+3*y),H=R((M+Math.sqrt(E))/I),P=R((M-Math.sqrt(E))/I);return[H,P]}},"./src/Xarrow/Xarrow.tsx":function(f,g,v){var x=this&&this.__assign||function(){return x=Object.assign||function(P){for(var D,k=1,L=arguments.length;k0?"translate(-100% , -50%)":"translate(-0% , -50%)",width:"max-content",position:"absolute",left:ee.cx0+ee.labelEndPos.x,top:ee.cy0+ee.labelEndPos.y+ie+5}},K.end):null,ze?y.default.createElement(y.default.Fragment,null,$($([],ee.startPoints),ee.endPoints).map(function(Jt,$t){return y.default.createElement("div",{key:$t,style:{background:"gray",opacity:.5,borderRadius:"50%",transform:"translate(-50%, -50%)",height:5,width:5,position:"absolute",left:Jt.x-ee.mainDivPos.x,top:Jt.y-ee.mainDivPos.y}})})):null):null)};H.propTypes=E.default,g.default=H},"./src/Xarrow/anchors.ts":function(f,g,v){f=v.nmd(f),Object.defineProperty(g,"__esModule",{value:!0}),g.calcAnchors=void 0;var x=function(S,w){return{middle:{x:S*.5,y:w*.5},left:{x:0,y:w*.5},right:{x:S,y:w*.5},top:{x:S*.5,y:0},bottom:{x:S*.5,y:w}}},m=function(S,w){return S.map(function($){var _=x(w.right-w.x,w.bottom-w.y),y=_[$.position],R=y.x,M=y.y;return{x:w.x+R+$.offset.x,y:w.y+M+$.offset.y,anchor:$}})};g.calcAnchors=m,v.c[v.s]},"./src/Xarrow/propTypes.ts":function(f,g,v){var x=this&&this.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(g,"__esModule",{value:!0});var m=x(v("prop-types")),S=v("./src/constants.tsx"),w=m.default.oneOf(S.cAnchorEdge),$=m.default.exact({position:w.isRequired,offset:m.default.exact({x:m.default.number,y:m.default.number}).isRequired}),_=m.default.oneOfType([w,$]),y=m.default.oneOfType([_,m.default.arrayOf(_)]),R=m.default.oneOfType([m.default.string,m.default.exact({current:m.default.any})]),M=m.default.oneOfType([m.default.element,m.default.string]),E=m.default.exact({start:M,middle:M,end:M}),I=m.default.oneOf(Object.keys(S.arrowShapes)),H=m.default.any,P=m.default.oneOfType([I,m.default.exact({svgElem:H,offsetForward:m.default.number}).isRequired]),D={start:R.isRequired,end:R.isRequired,startAnchor:y,endAnchor:y,labels:m.default.oneOfType([M,E]),color:m.default.string,lineColor:m.default.string,showHead:m.default.bool,headColor:m.default.string,headSize:m.default.number,tailSize:m.default.number,tailColor:m.default.string,strokeWidth:m.default.number,showTail:m.default.bool,path:m.default.oneOf(S.cPaths),showXarrow:m.default.bool,curveness:m.default.number,gridBreak:m.default.string,dashness:m.default.oneOfType([m.default.bool,m.default.object]),headShape:P,tailShape:P,animateDrawing:m.default.oneOfType([m.default.bool,m.default.number]),zIndex:m.default.number,passProps:m.default.object,arrowBodyProps:m.default.object,arrowHeadProps:m.default.object,arrowTailProps:m.default.object,SVGcanvasProps:m.default.object,divContainerProps:m.default.object,_extendSVGcanvas:m.default.number,_debug:m.default.bool,_cpx1Offset:m.default.number,_cpy1Offset:m.default.number,_cpx2Offset:m.default.number,_cpy2Offset:m.default.number};g.default=D},"./src/Xarrow/useXarrowProps.ts":function(f,g,v){var x=this&&this.__assign||function(){return x=Object.assign||function(B){for(var se,fe=1,le=arguments.length;fe0&&(fe=fe.filter(function(he){return he.position!=="auto"}),fe.push.apply(fe,le.flatMap(function(he){return["left","right","top","bottom"].map(function(xe){return x(x({},he),{position:xe})})})));var oe=fe.map(function(he){if(typeof he=="object"){var xe=he;return xe.position||(xe.position="auto"),xe.offset||(xe.offset={x:0,y:0}),xe.offset.y||(xe.offset.y=0),xe.offset.x||(xe.offset.x=0),xe=xe,xe}else return he});return oe},H=function(B,se){var fe=0,le=0,oe,he=1;return typeof B=="object"?(fe=B.strokeLen||se.strokeWidth*2,le=B.strokeLen?B.nonStrokeLen:se.strokeWidth,oe=B.animation?B.animation:null):typeof B=="boolean"&&B&&(fe=se.strokeWidth*2,le=se.strokeWidth,oe=null),{strokeLen:fe,nonStrokeLen:le,animation:oe,animDirection:he}},P=function(B){return typeof B=="string"&&(B in M.arrowShapes?B=M.arrowShapes[B]:(console.warn("'"+B+"' is not supported arrow shape. the supported arrow shapes is one of "+M.cArrowShapes+`. - reverting to default shape.`),B=M.arrowShapes.arrow1)),B=B,B?.offsetForward===void 0&&(B.offsetForward=.25),B?.svgElem===void 0&&(B.svgElem="path"),B},D=function(B){var se=y.xStr2absRelative(B);return se||(se={relative:.5,abs:0}),se},k=function(B,se){return se&&(se.current=!0),B},L=function(B){return B},F=function(B,se,fe){return k(B,fe)},Z=function(B,se,fe){return k(Number(B),fe)},V=function(B){return Number(B)},J={start:function(B){return y.getElementByPropGiven(B)},end:function(B){return y.getElementByPropGiven(B)},startAnchor:function(B,se,fe){return k(I(B),fe)},endAnchor:function(B,se,fe){return k(I(B),fe)},labels:function(B){return E(B)},color:L,lineColor:function(B,se){return B||se.color},headColor:function(B,se){return B||se.color},tailColor:function(B,se){return B||se.color},strokeWidth:Z,showHead:F,headSize:Z,showTail:F,tailSize:Z,path:F,curveness:Z,gridBreak:function(B,se,fe){return k(D(B),fe)},dashness:function(B,se){return H(B,se)},headShape:function(B){return P(B)},tailShape:function(B){return P(B)},showXarrow:L,animateDrawing:L,zIndex:V,passProps:L,arrowBodyProps:F,arrowHeadProps:F,arrowTailProps:F,SVGcanvasProps:F,divContainerProps:F,divContainerStyle:F,SVGcanvasStyle:F,_extendSVGcanvas:F,_debug:F,_cpx1Offset:F,_cpy1Offset:F,_cpx2Offset:F,_cpy2Offset:F},de={};for(var ge in J)de[ge]=[ge];for(var ce=0,ue=["lineColor","headColor","tailColor"];ce0?1:-1,we=Ct>0?1:-1,De=[ne.offsetForward,U.offsetForward],ve=De[0],je=De[1],Ne=J*Z,Ie=ge*Z,et=0,st=0,Rt=0,At=0,xn=Ne*ve,Jt=Ie*je,$t=Number(ue);$.cPaths.includes(ce)||(ce="smooth"),ce==="straight"&&($t=0,ce="smooth");var ur=J>ge?J:ge,bn=Z+Z*ur/2,Tn=bn,Ut=bn,kn=bn,co=bn;Ut+=Number(q),Tn+=Number(q),kn+=Number(q),co+=Number(q);var Zt=0,ln=Ke,Qt=0,cn=ee;if(Vt<0&&(E=[ln,Zt],Zt=E[0],ln=E[1]),Ct<0&&(I=[cn,Qt],Qt=I[0],cn=I[1]),$t===0){var In=Math.atan(ee/Ke);V&&(ln-=Ne*(1-ve)*me*Math.cos(In),cn-=Ne*(1-ve)*we*Math.sin(In),In*=we,me<0&&(In=(Math.PI-In*me)*me),et=Math.cos(In)*xn-Math.sin(In)*Ne/2,st=Math.cos(In)*Ne/2+Math.sin(In)*xn,he=In*180/Math.PI);var Ln=Math.atan(ee/Ke);de&&(Zt+=Ie*(1-je)*me*Math.cos(Ln),Qt+=Ie*(1-je)*we*Math.sin(Ln),Ln*=-we,me>0&&(Ln=(Math.PI-Ln*me)*me),Rt=Math.cos(Ln)*Jt-Math.sin(Ln)*Ie/2,At=Math.cos(Ln)*Ie/2+Math.sin(Ln)*Jt,xe=Ln*180/Math.PI)}else ze==="middle"&&(Ke>ee?ze=me?"left":"right":ze=we?"top":"bottom"),V&&(["left","right"].includes(ze)?(et+=xn*me,ln-=Ne*(1-ve)*me,st+=Ne*me/2,ze==="left"?(he=0,me<0&&(he+=180)):(he=180,me>0&&(he+=180))):["top","bottom"].includes(ze)&&(et+=Ne*-we/2,st+=xn*we,cn-=Ne*we-st,ze==="top"?(he=270,we>0&&(he+=180)):(he=90,we<0&&(he+=180))));de&&$t!==0&&(["left","right"].includes(rt)?(Rt+=Jt*-me,Zt+=Ie*me+Rt,At+=-(Ie*me)/2,rt==="left"?(xe=180,me<0&&(xe+=180)):(xe=0,me>0&&(xe+=180))):["top","bottom"].includes(rt)&&(At+=Jt*-we,Qt+=Ie*we+At,Rt+=Ie*we/2,rt==="top"?(xe=90,we>0&&(xe+=180)):(xe=270,we<0&&(xe+=180))));var El={x:et,y:st},Pl={x:Rt,y:At},en=Zt,tn=Qt,un=ln,nn=cn,gs={};ce==="smooth"?gs={hh:function(){en+=Ke*$t*me,un-=Ke*$t*me},vv:function(){tn+=ee*$t*we,nn-=ee*$t*we},hv:function(){en+=Ke*$t*me,nn-=ee*$t*we},vh:function(){tn+=ee*$t*we,un-=Ke*$t*me}}:ce==="grid"&&(gs={hh:function(){en+=(Ke*K.relative+K.abs)*me,un-=(Ke*(1-K.relative)-K.abs)*me,V&&(en-=Ne*(1-ve)/2*me,un+=Ne*(1-ve)/2*me),de&&(en-=Ie*(1-je)/2*me,un+=Ie*(1-je)/2*me)},vv:function(){tn+=(ee*K.relative+K.abs)*we,nn-=(ee*(1-K.relative)-K.abs)*we,V&&(tn-=Ne*(1-ve)/2*we,nn+=Ne*(1-ve)/2*we),de&&(tn-=Ie*(1-je)/2*we,nn+=Ie*(1-je)/2*we)},hv:function(){en=ln},vh:function(){tn=cn}});var yn="";["left","right"].includes(rt)?yn+="h":["bottom","top"].includes(rt)?yn+="v":rt==="middle"&&(yn+="m"),["left","right"].includes(ze)?yn+="h":["bottom","top"].includes(ze)?yn+="v":ze==="middle"&&(yn+="m"),Ke>ee?yn=yn.replace(/m/g,"h"):yn=yn.replace(/m/g,"v"),gs[yn](),en+=ie,tn+=pe,un+=Y,nn+=be;var Na=_.buzzierMinSols(Zt,en,un,ln),Ra=Na[0],$a=Na[1],Ea=_.buzzierMinSols(Qt,tn,nn,cn),uo=Ea[0],Pa=Ea[1];Ra<0&&(Ut+=-Ra),$a>Ke&&(Tn+=$a-Ke),uo<0&&(kn+=-uo),Pa>ee&&(co+=Pa-ee),ce==="grid"&&(Ut+=bn,Tn+=bn,kn+=bn,co+=bn),Zt+=Ut,ln+=Ut,Qt+=kn,cn+=kn,en+=Ut,un+=Ut,tn+=kn,nn+=kn;var Do=Ke+Ut+Tn,Al=ee+kn+co;St-=Ut,Ht-=kn;var hs=_.bzFunction(Zt,en,un,ln),ms=_.bzFunction(Qt,tn,nn,cn),Aa={x:hs(.01),y:ms(.01)},Ma={x:hs(.5),y:ms(.5)},Da={x:hs(.99),y:ms(.99)},vs;return ce==="grid"?vs="M "+Zt+" "+Qt+" L "+en+" "+tn+" L "+un+" "+nn+" "+ln+" "+cn:ce==="smooth"&&(vs="M "+Zt+" "+Qt+" C "+en+" "+tn+", "+un+" "+nn+", "+ln+" "+cn),{cx0:St,cy0:Ht,x1:Zt,x2:ln,y1:Qt,y2:cn,cw:Do,ch:Al,cpx1:en,cpy1:tn,cpx2:un,cpy2:nn,dx:Vt,dy:Ct,absDx:Ke,absDy:ee,headOrient:he,tailOrient:xe,labelStartPos:Aa,labelMiddlePos:Ma,labelEndPos:Da,excLeft:Ut,excRight:Tn,excUp:kn,excDown:co,headOffset:xn,arrowHeadOffset:El,arrowTailOffset:Pl,startPoints:Ce,endPoints:nt,mainDivPos:Ft,xSign:me,ySign:we,lineLength:(P=(H=oe.current)===null||H===void 0?void 0:H.getTotalLength())!==null&&P!==void 0?P:0,fHeadSize:Ne,fTailSize:Ie,arrowPath:vs}};g.getPosition=y},"./src/Xarrow/utils/index.ts":function(f,g){Object.defineProperty(g,"__esModule",{value:!0}),g.getSvgPos=g.getElemPos=g.getShortestLine=g.xStr2absRelative=g.factorDpathStr=g.getElementByPropGiven=void 0;var v=function(y){var R;return typeof y=="string"?R=document.getElementById(y):R=y?.current,R};g.getElementByPropGiven=v;var x=function(y,R){var M=y.split(/(\d+(?:\.\d+)?)/);return M=M.map(function(E){return Number(E)?(Number(E)*R).toString():E}),M.join("")};g.factorDpathStr=x;var m=function(y){if(typeof y!="string")return{abs:0,relative:.5};var R=y.split("%"),M=0,E=0;if(R.length==1){var I=parseFloat(R[0]);if(!isNaN(I))return M=I,{abs:M,relative:0}}else if(R.length==2){var H=[parseFloat(R[0]),parseFloat(R[1])],P=H[0],D=H[1];if(isNaN(P)||(E=P/100),isNaN(D)||(M=D),!isNaN(P)||!isNaN(D))return{abs:M,relative:E}}};g.xStr2absRelative=m;var S=function(y,R){return Math.sqrt(Math.pow(y.x-R.x,2)+Math.pow(y.y-R.y,2))},w=function(y,R){var M=1/0,E=1/0,I;return y.forEach(function(H){R.forEach(function(P){E=S(H,P),Ea.jsx(k0,{className:"text-xs",value:i.value,children:i.label},i.value))})]})}const T8=ps.cPaths.map(e=>({label:e,value:e}));function k8(){const e=Ir(lt.xArrowsState);return a.jsxs("div",{className:"absolute right-2 top-1 w-40 text-xs text-muted-foreground flex flex-col gap-2",children:[a.jsxs("div",{className:"pt-2 flex items-center gap-2",children:[a.jsx("div",{className:"text-nowrap",children:"Path style"}),a.jsx(D8,{defaultValue:ps.cPaths[0],value:e.path,onValueChange:n=>lt.xArrowsState.path=n,options:T8})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"text-nowrap",children:"Stroke width"}),a.jsx(Y0,{min:1,max:10,step:1,value:[e.strokeWidth],className:"[&>.track]:h-px",onValueChange:n=>lt.xArrowsState.strokeWidth=n[0]}),a.jsx("div",{className:"text-[.65rem]",children:e.strokeWidth})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(os,{checked:e.animate,onCheckedChange:n=>lt.xArrowsState.animate=!!n}),"Animate on initial draw"]}),a.jsx("div",{className:"mt-2",children:"You can drag items within the designated area"}),a.jsx("div",{className:"",children:a.jsx(ft,{variant:"outline",onClick:()=>lt.xArrowsState.boxes.push({label:`elem${e.boxes.length+1}`,x:0,y:0,id:sa.asRelativeNumber()}),children:"Add item"})})]})}function I8({box1Ref:e,box2Ref:n}){const t=Ir(lt.xArrowsState);return a.jsx(M8,{start:e,end:n,color:"hsl(var(--muted-foreground))",strokeWidth:t.strokeWidth,dashness:{strokeLen:8,nonStrokeLen:3},animateDrawing:t.animate,path:t.path})}var jl={exports:{}},vb={};function xb(e){var n,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!t||n in t)return"";for(let o=0;on===t.identifier)||e.changedTouches&&(0,Mn.findInArray)(e.changedTouches,t=>n===t.identifier)}function oT(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function sT(e){if(!e)return;let n=e.getElementById("react-draggable-style-el");n||(n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el",n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,e.getElementsByTagName("head")[0].appendChild(n)),e.body&&Sb(e.body,"react-draggable-transparent-selection")}function aT(e){if(e)try{if(e.body&&Cb(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch{}}function Sb(e,n){e.classList?e.classList.add(n):e.className.match(new RegExp("(?:^|\\s)".concat(n,"(?!\\S)")))||(e.className+=" ".concat(n))}function Cb(e,n){e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(n,"(?!\\S)"),"g"),"")}var vr={};Object.defineProperty(vr,"__esModule",{value:!0});vr.canDragX=cT;vr.canDragY=uT;vr.createCoreData=fT;vr.createDraggableData=pT;vr.getBoundPosition=iT;vr.getControlPosition=dT;vr.snapToGrid=lT;var $n=mr,rs=Nt;function iT(e,n,t){if(!e.props.bounds)return[n,t];let{bounds:o}=e.props;o=typeof o=="string"?o:gT(o);const i=Wd(e);if(typeof o=="string"){const{ownerDocument:l}=i,u=l.defaultView;let d;if(o==="parent"?d=i.parentNode:d=l.querySelector(o),!(d instanceof u.HTMLElement))throw new Error('Bounds selector "'+o+'" could not find an element.');const p=d,f=u.getComputedStyle(i),g=u.getComputedStyle(p);o={left:-i.offsetLeft+(0,$n.int)(g.paddingLeft)+(0,$n.int)(f.marginLeft),top:-i.offsetTop+(0,$n.int)(g.paddingTop)+(0,$n.int)(f.marginTop),right:(0,rs.innerWidth)(p)-(0,rs.outerWidth)(i)-i.offsetLeft+(0,$n.int)(g.paddingRight)-(0,$n.int)(f.marginRight),bottom:(0,rs.innerHeight)(p)-(0,rs.outerHeight)(i)-i.offsetTop+(0,$n.int)(g.paddingBottom)-(0,$n.int)(f.marginBottom)}}return(0,$n.isNum)(o.right)&&(n=Math.min(n,o.right)),(0,$n.isNum)(o.bottom)&&(t=Math.min(t,o.bottom)),(0,$n.isNum)(o.left)&&(n=Math.max(n,o.left)),(0,$n.isNum)(o.top)&&(t=Math.max(t,o.top)),[n,t]}function lT(e,n,t){const o=Math.round(n/e[0])*e[0],i=Math.round(t/e[1])*e[1];return[o,i]}function cT(e){return e.props.axis==="both"||e.props.axis==="x"}function uT(e){return e.props.axis==="both"||e.props.axis==="y"}function dT(e,n,t){const o=typeof n=="number"?(0,rs.getTouch)(e,n):null;if(typeof n=="number"&&!o)return null;const i=Wd(t),l=t.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,rs.offsetXYFromParent)(o||e,l,t.props.scale)}function fT(e,n,t){const o=!(0,$n.isNum)(e.lastX),i=Wd(e);return o?{node:i,deltaX:0,deltaY:0,lastX:n,lastY:t,x:n,y:t}:{node:i,deltaX:n-e.lastX,deltaY:t-e.lastY,lastX:e.lastX,lastY:e.lastY,x:n,y:t}}function pT(e,n){const t=e.props.scale;return{node:n.node,x:e.state.x+n.deltaX/t,y:e.state.y+n.deltaY/t,deltaX:n.deltaX/t,deltaY:n.deltaY/t,lastX:e.state.x,lastY:e.state.y}}function gT(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Wd(e){const n=e.findDOMNode();if(!n)throw new Error(": Unmounted during event!");return n}var Nl={},Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.default=hT;function hT(){}Object.defineProperty(Nl,"__esModule",{value:!0});Nl.default=void 0;var bu=vT(C),hn=Ud(Zu()),mT=Ud(Yu),Yt=Nt,Qr=vr,yu=mr,Bs=Ud(Rl);function Ud(e){return e&&e.__esModule?e:{default:e}}function jb(e){if(typeof WeakMap!="function")return null;var n=new WeakMap,t=new WeakMap;return(jb=function(o){return o?t:n})(e)}function vT(e,n){if(!n&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=jb(n);if(t&&t.has(e))return t.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var u=i?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(o,l,u):o[l]=e[l]}return o.default=e,t&&t.set(e,o),o}function an(e,n,t){return n=xT(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function xT(e){var n=bT(e,"string");return typeof n=="symbol"?n:String(n)}function bT(e,n){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var o=t.call(e,n||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}const nr={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let eo=nr.mouse,$l=class extends bu.Component{constructor(){super(...arguments),an(this,"dragging",!1),an(this,"lastX",NaN),an(this,"lastY",NaN),an(this,"touchIdentifier",null),an(this,"mounted",!1),an(this,"handleDragStart",n=>{if(this.props.onMouseDown(n),!this.props.allowAnyClick&&typeof n.button=="number"&&n.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:o}=t;if(this.props.disabled||!(n.target instanceof o.defaultView.Node)||this.props.handle&&!(0,Yt.matchesSelectorAndParentsTo)(n.target,this.props.handle,t)||this.props.cancel&&(0,Yt.matchesSelectorAndParentsTo)(n.target,this.props.cancel,t))return;n.type==="touchstart"&&n.preventDefault();const i=(0,Yt.getTouchIdentifier)(n);this.touchIdentifier=i;const l=(0,Qr.getControlPosition)(n,i,this);if(l==null)return;const{x:u,y:d}=l,p=(0,Qr.createCoreData)(this,u,d);(0,Bs.default)("DraggableCore: handleDragStart: %j",p),(0,Bs.default)("calling",this.props.onStart),!(this.props.onStart(n,p)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Yt.addUserSelectStyles)(o),this.dragging=!0,this.lastX=u,this.lastY=d,(0,Yt.addEvent)(o,eo.move,this.handleDrag),(0,Yt.addEvent)(o,eo.stop,this.handleDragStop))}),an(this,"handleDrag",n=>{const t=(0,Qr.getControlPosition)(n,this.touchIdentifier,this);if(t==null)return;let{x:o,y:i}=t;if(Array.isArray(this.props.grid)){let d=o-this.lastX,p=i-this.lastY;if([d,p]=(0,Qr.snapToGrid)(this.props.grid,d,p),!d&&!p)return;o=this.lastX+d,i=this.lastY+p}const l=(0,Qr.createCoreData)(this,o,i);if((0,Bs.default)("DraggableCore: handleDrag: %j",l),this.props.onDrag(n,l)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const p=document.createEvent("MouseEvents");p.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(p)}return}this.lastX=o,this.lastY=i}),an(this,"handleDragStop",n=>{if(!this.dragging)return;const t=(0,Qr.getControlPosition)(n,this.touchIdentifier,this);if(t==null)return;let{x:o,y:i}=t;if(Array.isArray(this.props.grid)){let p=o-this.lastX||0,f=i-this.lastY||0;[p,f]=(0,Qr.snapToGrid)(this.props.grid,p,f),o=this.lastX+p,i=this.lastY+f}const l=(0,Qr.createCoreData)(this,o,i);if(this.props.onStop(n,l)===!1||this.mounted===!1)return!1;const d=this.findDOMNode();d&&this.props.enableUserSelectHack&&(0,Yt.removeUserSelectStyles)(d.ownerDocument),(0,Bs.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,d&&((0,Bs.default)("DraggableCore: Removing handlers"),(0,Yt.removeEvent)(d.ownerDocument,eo.move,this.handleDrag),(0,Yt.removeEvent)(d.ownerDocument,eo.stop,this.handleDragStop))}),an(this,"onMouseDown",n=>(eo=nr.mouse,this.handleDragStart(n))),an(this,"onMouseUp",n=>(eo=nr.mouse,this.handleDragStop(n))),an(this,"onTouchStart",n=>(eo=nr.touch,this.handleDragStart(n))),an(this,"onTouchEnd",n=>(eo=nr.touch,this.handleDragStop(n)))}componentDidMount(){this.mounted=!0;const n=this.findDOMNode();n&&(0,Yt.addEvent)(n,nr.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const n=this.findDOMNode();if(n){const{ownerDocument:t}=n;(0,Yt.removeEvent)(t,nr.mouse.move,this.handleDrag),(0,Yt.removeEvent)(t,nr.touch.move,this.handleDrag),(0,Yt.removeEvent)(t,nr.mouse.stop,this.handleDragStop),(0,Yt.removeEvent)(t,nr.touch.stop,this.handleDragStop),(0,Yt.removeEvent)(n,nr.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Yt.removeUserSelectStyles)(t)}}findDOMNode(){var n,t;return(n=this.props)!==null&&n!==void 0&&n.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:mT.default.findDOMNode(this)}render(){return bu.cloneElement(bu.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Nl.default=$l;an($l,"displayName","DraggableCore");an($l,"propTypes",{allowAnyClick:hn.default.bool,children:hn.default.node.isRequired,disabled:hn.default.bool,enableUserSelectHack:hn.default.bool,offsetParent:function(e,n){if(e[n]&&e[n].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:hn.default.arrayOf(hn.default.number),handle:hn.default.string,cancel:hn.default.string,nodeRef:hn.default.object,onStart:hn.default.func,onDrag:hn.default.func,onStop:hn.default.func,onMouseDown:hn.default.func,scale:hn.default.number,className:yu.dontSetMe,style:yu.dontSetMe,transform:yu.dontSetMe});an($l,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return p.default}}),e.default=void 0;var n=x(C),t=g(Zu()),o=g(Yu),i=g(F8),l=Nt,u=vr,d=mr,p=g(Nl),f=g(Rl);function g(y){return y&&y.__esModule?y:{default:y}}function v(y){if(typeof WeakMap!="function")return null;var R=new WeakMap,M=new WeakMap;return(v=function(E){return E?M:R})(y)}function x(y,R){if(!R&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var M=v(R);if(M&&M.has(y))return M.get(y);var E={},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in y)if(H!=="default"&&Object.prototype.hasOwnProperty.call(y,H)){var P=I?Object.getOwnPropertyDescriptor(y,H):null;P&&(P.get||P.set)?Object.defineProperty(E,H,P):E[H]=y[H]}return E.default=y,M&&M.set(y,E),E}function m(){return m=Object.assign?Object.assign.bind():function(y){for(var R=1;R{if((0,f.default)("Draggable: onDragStart: %j",E),this.props.onStart(M,(0,u.createDraggableData)(this,E))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),S(this,"onDrag",(M,E)=>{if(!this.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",E);const I=(0,u.createDraggableData)(this,E),H={x:I.x,y:I.y,slackX:0,slackY:0};if(this.props.bounds){const{x:D,y:k}=H;H.x+=this.state.slackX,H.y+=this.state.slackY;const[L,F]=(0,u.getBoundPosition)(this,H.x,H.y);H.x=L,H.y=F,H.slackX=this.state.slackX+(D-H.x),H.slackY=this.state.slackY+(k-H.y),I.x=H.x,I.y=H.y,I.deltaX=H.x-this.state.x,I.deltaY=H.y-this.state.y}if(this.props.onDrag(M,I)===!1)return!1;this.setState(H)}),S(this,"onDragStop",(M,E)=>{if(!this.state.dragging||this.props.onStop(M,(0,u.createDraggableData)(this,E))===!1)return!1;(0,f.default)("Draggable: onDragStop: %j",E);const H={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:D,y:k}=this.props.position;H.x=D,H.y=k}this.setState(H)}),this.state={dragging:!1,dragged:!1,x:R.position?R.position.x:R.defaultPosition.x,y:R.position?R.position.y:R.defaultPosition.y,prevPropsPosition:{...R.position},slackX:0,slackY:0,isElementSVG:!1},R.position&&!(R.onDrag||R.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var R,M;return(R=(M=this.props)===null||M===void 0||(M=M.nodeRef)===null||M===void 0?void 0:M.current)!==null&&R!==void 0?R:o.default.findDOMNode(this)}render(){const{axis:R,bounds:M,children:E,defaultPosition:I,defaultClassName:H,defaultClassNameDragging:P,defaultClassNameDragged:D,position:k,positionOffset:L,scale:F,...Z}=this.props;let V={},J=null;const ge=!!!k||this.state.dragging,ce=k||I,ue={x:(0,u.canDragX)(this)&&ge?this.state.x:ce.x,y:(0,u.canDragY)(this)&&ge?this.state.y:ce.y};this.state.isElementSVG?J=(0,l.createSVGTransform)(ue,L):V=(0,l.createCSSTransform)(ue,L);const K=(0,i.default)(E.props.className||"",H,{[P]:this.state.dragging,[D]:this.state.dragged});return n.createElement(p.default,m({},Z,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(E),{className:K,style:{...E.props.style,...V},transform:J}))}}e.default=_,S(_,"displayName","Draggable"),S(_,"propTypes",{...p.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe}),S(_,"defaultProps",{...p.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(vb);const{default:Nb,DraggableCore:yT}=vb;jl.exports=Nb;jl.exports.default=Nb;jl.exports.DraggableCore=yT;var wT=jl.exports;const Rb=Ju(wT),_T="inline-block m-2 p-4 bg-muted-foreground/20 border-muted-foreground border rounded select-none cursor-default",Th=C.forwardRef(({label:e,dragOptions:n},t)=>{const o=ps.useXarrow(),i=C.useRef(null);function l(u,d){const{x:p,y:f}=d;console.log(`${e} uses translate(${p}px, ${f}px)`),o()}return a.jsx(Rb,{onDrag:o,onStop:l,nodeRef:i,bounds:"parent",...n,children:a.jsx("div",{ref:S0([t,i]),className:_T,children:e})})});function ST(){const e=C.useRef(null),n=C.useRef(null);return a.jsxs("div",{className:"h-[240px] relative bg-muted rounded overflow-hidden",children:[a.jsx(k8,{}),a.jsxs(ps.Xwrapper,{children:[a.jsx(Th,{ref:e,label:"elem1",dragOptions:{defaultPosition:{x:0,y:0}}}),a.jsx(Th,{ref:n,label:"elem2",dragOptions:{defaultPosition:{x:140,y:160}}}),a.jsx(I8,{box1Ref:e,box2Ref:n})]})]})}const CT="inline-block m-2 p-4 bg-muted-foreground/20 border-muted-foreground border rounded select-none cursor-default";C.forwardRef(({label:e,boxId:n,dragOptions:t},o)=>{const i=ps.useXarrow(),l=C.useRef(null);function u(d,p){const{x:f,y:g}=p;console.log(`${e} uses translate(${f}px, ${g}px)`),i()}return a.jsx(Rb,{onDrag:i,onStop:u,nodeRef:l,bounds:"parent",...t,children:a.jsx("div",{ref:S0([o,l]),className:CT,onClick:d=>{if(d.ctrlKey){const p=lt.xArrowsState.boxes.findIndex(f=>f.id===n);p>-1&<.xArrowsState.boxes.splice(p,1)}},children:e})})});const jT="_flip_1dcm9_25",NT="_flipTop_1dcm9_1",RT="_flipBottom_1dcm9_1",Xn={"flip-clock":"_flip-clock_1dcm9_25","flip-clock__piece":"_flip-clock__piece_1dcm9_49","flip-clock__slot":"_flip-clock__slot_1dcm9_71","flip-card":"_flip-card_1dcm9_83","flip-card__top":"_flip-card__top_1dcm9_123","flip-card__bottom":"_flip-card__bottom_1dcm9_125","flip-card__back-bottom":"_flip-card__back-bottom_1dcm9_127","flip-card__back":"_flip-card__back_1dcm9_127",flip:jT,flipTop:NT,flipBottom:RT};function Ii({newNumber:e,label:n,className:t,...o}){const i=C.useRef(null),[l,u]=C.useState(e),[d,p]=C.useState(e);return C.useEffect(()=>{l!==e&&(p(l),u(e),i.current?.classList.remove(Xn.flip),i.current?.offsetHeight,i.current?.classList.add(Xn.flip))},[e]),a.jsxs("span",{ref:i,className:ct(Xn["flip-clock__piece"],Xn.flip,t),...o,children:[a.jsx($T,{currentNumber:l,previousNumber:d}),a.jsx("span",{className:Xn["flip-clock__slot"],children:n})]})}function $T({currentNumber:e,previousNumber:n}){const t=e.toString().padStart(2,"0"),o=n.toString().padStart(2,"0");return a.jsxs("span",{className:`${Xn["flip-clock__card"]} ${Xn["flip-card"]}`,children:[a.jsx("b",{className:Xn["flip-card__top"],children:t}),a.jsx("b",{className:Xn["flip-card__bottom"],"data-value":t}),a.jsx("b",{className:Xn["flip-card__back"],"data-value":o}),a.jsx("b",{className:Xn["flip-card__back-bottom"],"data-value":o})]})}const Li=["Days","Hours","Minutes","Seconds"];function ET(e){return[Math.floor(e/(1e3*60*60*24)),Math.floor(e/(1e3*60*60)%24),Math.floor(e/1e3/60%60),Math.floor(e/1e3%60)]}function PT({initialTime:e,add:n=!1}){const[t,o]=C.useState(e),[i,l]=C.useState(!0),u=C.useMemo(()=>ET(t),[t]);return C.useEffect(()=>{if(!i)return;const d=setInterval(()=>o(p=>p+(n?1:-1)*1e3),1e3);return()=>clearInterval(d)},[i]),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(ft,{variant:"outline",size:"sm",onClick:()=>l(!i),children:i?"Stop":"Start"}),a.jsxs("div",{className:Xn["flip-clock"],"data-date":"2017-02-11",children:[a.jsx(Ii,{label:Li[0],newNumber:u[0]}),a.jsx(Ii,{label:Li[1],newNumber:u[1]}),a.jsx(Ii,{label:Li[2],newNumber:u[2]}),a.jsx(Ii,{label:Li[3],newNumber:u[3]})]})]})}function AT(){const[e]=C.useState(()=>(new Date().getTime()-new Date().getTimezoneOffset()*60*1e3)%864e5);return a.jsx("div",{className:"flex items-center justify-center",children:a.jsx(PT,{initialTime:e})})}function MT(){return a.jsxs(hr,{defaultValue:"switch1",children:[a.jsxs(lr,{children:[a.jsx(He,{value:"switch1",children:"Neon switch"}),a.jsx(He,{value:"switch2",children:"Styled switch"})]}),a.jsx(Ve,{value:"switch1",children:a.jsx(qM,{})}),a.jsx(Ve,{value:"switch2",children:a.jsx(KM,{})})]})}function DT(){return a.jsxs(hr,{defaultValue:"controls1",children:[a.jsxs(lr,{children:[a.jsx(He,{value:"controls1",children:"Switches"}),a.jsx(He,{value:"controls2",children:"Carousel"}),a.jsx(He,{value:"controls3",children:"Pagination"}),a.jsx(He,{value:"controls4",children:"Skeleton"}),a.jsx(He,{value:"controls5",children:"Charts"})]}),a.jsx(Ve,{value:"controls1",children:a.jsx(MT,{})}),a.jsx(Ve,{value:"controls2",children:a.jsx(MM,{})}),a.jsx(Ve,{value:"controls3",children:a.jsx(DM,{})}),a.jsx(Ve,{value:"controls4",children:a.jsx(TM,{})}),a.jsx(Ve,{value:"controls5",children:a.jsx(GM,{})})]})}function TT(){return a.jsx("div",{children:a.jsx(ft,{variant:"outline",onClick:()=>{nx({title:"Too many requests, please try again later"})},children:"Radix toast"})})}const kh=["success","info","warning","error","message","loading"];function kT(){const e=kh[Math.floor(Math.random()*kh.length)],n=`Event has been created as "${e}" toast`,t=`Today ${new Date().toLocaleString().replace(/\//g,".")}`,o={label:"Undo",onClick:()=>console.log("Undo")};Tu[e](n,{description:t,action:o})}function IT(){return a.jsx(ft,{variant:"outline",onClick:()=>{kT()},children:"Sonner toast"})}const LT=[{goal:400},{goal:300},{goal:200},{goal:300},{goal:200},{goal:278},{goal:189},{goal:239},{goal:300},{goal:200},{goal:278},{goal:189},{goal:349}];function FT(){const[e,n]=C.useState(350);function t(o){n(Math.max(200,Math.min(400,e+o)))}return a.jsxs("div",{className:"p-4 pb-0",children:[a.jsxs("div",{className:"flex items-center justify-center space-x-2",children:[a.jsxs(ft,{variant:"outline",size:"icon",className:"shrink-0 w-8 h-8 rounded-full",disabled:e<=200,onClick:()=>t(-10),children:[a.jsx(Cj,{className:"w-4 h-4"}),a.jsx("span",{className:"sr-only",children:"Decrease"})]}),a.jsxs("div",{className:"flex-1 text-center",children:[a.jsx("div",{className:"text-7xl font-bold tracking-tighter",children:e}),a.jsx("div",{className:"text-[0.70rem] uppercase text-muted-foreground",children:"Calories/day"})]}),a.jsxs(ft,{variant:"outline",size:"icon",className:"shrink-0 w-8 h-8 rounded-full",disabled:e>=400,onClick:()=>t(10),children:[a.jsx(jj,{className:"w-4 h-4"}),a.jsx("span",{className:"sr-only",children:"Increase"})]})]}),a.jsx("div",{className:"mt-3 h-[120px]",children:a.jsx(id,{width:"100%",height:"100%",children:a.jsx(p0,{data:LT,children:a.jsx(g0,{dataKey:"goal",style:{fill:"hsl(var(--foreground))",opacity:.9}})})})})]})}function OT(){return a.jsxs(jx,{children:[a.jsx(w3,{asChild:!0,children:a.jsx(ft,{variant:"outline",children:"Open drawer"})}),a.jsx(Rx,{children:a.jsxs("div",{className:"mx-auto w-full max-w-sm",children:[a.jsxs(C3,{children:[a.jsx($x,{children:"Move Goal"}),a.jsx(Ex,{children:"Set your daily activity goal."})]}),a.jsx(FT,{}),a.jsxs(j3,{children:[a.jsx(ft,{children:"Submit"}),a.jsx(S3,{asChild:!0,children:a.jsx(ft,{variant:"outline",children:"Cancel"})})]})]})})]})}function zT(){return a.jsxs(ul,{children:[a.jsx(ya,{children:"File"}),a.jsxs(wa,{children:[a.jsxs(yt,{children:["Open Files ",a.jsx(Tr,{children:"Ctrl+T"})]}),a.jsxs(yt,{children:["New Tab ",a.jsx(Tr,{children:"⌘T"})]}),a.jsxs(yt,{children:["New Window ",a.jsx(Tr,{children:"⌘N"})]}),a.jsx(yt,{disabled:!0,children:"New Incognito Window"}),a.jsx(sr,{}),a.jsxs(Z0,{children:[a.jsx(hd,{children:"Share"}),a.jsxs(md,{children:[a.jsx(yt,{children:"Email link"}),a.jsx(yt,{children:"Messages"}),a.jsx(yt,{children:"Notes"})]})]}),a.jsx(sr,{}),a.jsxs(yt,{children:["Print... ",a.jsx(Tr,{children:"⌘P"})]})]})]})}function BT(){return a.jsxs(ul,{children:[a.jsx(ya,{children:"Edit"}),a.jsxs(wa,{children:[a.jsxs(yt,{children:["Undo ",a.jsx(Tr,{children:"⌘Z"})]}),a.jsxs(yt,{children:["Redo ",a.jsx(Tr,{children:"⇧⌘Z"})]}),a.jsx(sr,{}),a.jsxs(Z0,{children:[a.jsx(hd,{children:"Find"}),a.jsxs(md,{children:[a.jsx(yt,{children:"Search the web"}),a.jsx(sr,{}),a.jsx(yt,{children:"Find..."}),a.jsx(yt,{children:"Find Next"}),a.jsx(yt,{children:"Find Previous"})]})]}),a.jsx(sr,{}),a.jsx(yt,{children:"Cut"}),a.jsx(yt,{children:"Copy"}),a.jsx(yt,{children:"Paste"})]})]})}function HT(){return a.jsxs(ul,{children:[a.jsx(ya,{children:"View"}),a.jsxs(wa,{children:[a.jsx(Ru,{children:"Always Show Bookmarks Bar"}),a.jsx(Ru,{checked:!0,children:"Always Show Full URLs"}),a.jsx(sr,{}),a.jsxs(yt,{inset:!0,children:["Reload ",a.jsx(Tr,{children:"⌘R"})]}),a.jsxs(yt,{disabled:!0,inset:!0,children:["Force Reload ",a.jsx(Tr,{children:"⇧⌘R"})]}),a.jsx(sr,{}),a.jsx(yt,{inset:!0,children:"Toggle Fullscreen"}),a.jsx(sr,{}),a.jsx(yt,{inset:!0,children:"Hide Sidebar"})]})]})}function VT(){return a.jsxs(ul,{children:[a.jsx(ya,{children:"Profiles"}),a.jsxs(wa,{children:[a.jsxs(y5,{value:"benoit",children:[a.jsx(Bi,{value:"andy",children:"Andy"}),a.jsx(Bi,{value:"benoit",children:"Benoit"}),a.jsx(Bi,{value:"Luis",children:"Luis"})]}),a.jsx(sr,{}),a.jsx(yt,{inset:!0,children:"Edit..."}),a.jsx(sr,{}),a.jsx(yt,{inset:!0,children:"Add Profile..."})]})]})}function GT(){return a.jsxs(Q0,{children:[a.jsx(zT,{}),a.jsx(BT,{}),a.jsx(HT,{}),a.jsx(VT,{})]})}const WT=`p-1 bg-background border rounded-md shadow-md ${va}`,UT=" px-2 py-2 text-xs focus:bg-accent focus:text-accent-foreground outline-none rounded-md select-none cursor-default flex items-center ",XT=({trigger:e,onCommand:n,items:t,containerClasses:o,menuContentProps:i})=>a.jsx("div",{className:"relative inline-block text-left",children:a.jsxs(tm,{children:[a.jsx(nm,{asChild:!0,children:e}),a.jsx(Kh,{children:a.jsx(Qu,{align:"end",...i,className:ct(WT,o),children:t.map(({id:l,label:u,icon:d,shortcut:p},f)=>a.jsxs(ed,{className:UT,onClick:()=>n(l),children:[d,a.jsx("span",{className:"flex-grow",children:u}),p&&a.jsx("span",{className:"text-xs",children:p})]},l))})})]})}),qT=[{id:"new-file",label:"New File"},{id:"open-settings",label:"Settings"}],KT="w-40";function YT(){function e(n){switch(n){case"new-file":console.log(n);break;case"open-settings":console.log(n);break}}return a.jsx("div",{className:"py-1 select-none flex items-center justify-between",children:a.jsx("div",{className:"",children:a.jsx(XT,{trigger:a.jsxs(ft,{variant:"outline",className:"px-2 flex items-center gap-1",children:[a.jsx(eE,{className:"size-4 mt-0.5"}),"Dropdown"]}),items:qT,containerClasses:KT,menuContentProps:{sideOffset:4,align:"start"},onCommand:e})})})}function JT(){return a.jsxs(a.Fragment,{children:[a.jsxs(F0,{children:[a.jsx(z0,{children:"Demo dialog"}),a.jsx(B0,{children:"Make changes to your profile here. Click save when you're done."})]}),a.jsxs("div",{className:"grid gap-4 py-4",children:[a.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[a.jsx(Ki,{htmlFor:"name",className:"text-right",children:"Name"}),a.jsx(aa,{id:"name",className:"col-span-3",value:"Pedro Duarte",onChange:()=>{}})]}),a.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[a.jsx(Ki,{htmlFor:"username",className:"text-right",children:"Username"}),a.jsx(aa,{id:"username",className:"col-span-3",value:"@peduarte",onChange:e=>{}})]})]})]})}function ZT(){const[e,n]=C.useState(!1);return a.jsxs(a.Fragment,{children:[a.jsx(ft,{variant:"outline",onClick:()=>n(!0),children:"Demo dialog"}),a.jsx(hR,{open:e,onOpenChange:()=>n(!1),children:a.jsxs(L0,{className:"sm:max-w-[425px]",children:[a.jsx(JT,{}),a.jsx(O0,{children:a.jsx(ft,{type:"submit",onClick:()=>n(!1),children:"Save changes"})})]})})]})}function QT(){return a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(IT,{}),a.jsx(TT,{}),a.jsx(OT,{})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(GT,{}),a.jsx(YT,{})]}),a.jsx("div",{className:"flex items-center gap-2",children:a.jsx(ZT,{})})]})}function e6(){return a.jsxs(hr,{defaultValue:"picker5",children:[a.jsxs(lr,{children:[a.jsx(He,{value:"picker1",children:"Color"}),a.jsx(He,{value:"picker2",children:"Gradient"}),a.jsx(He,{value:"picker3",children:"Theme"}),a.jsx(He,{value:"picker4",children:"Data flow"}),a.jsx(He,{value:"picker5",children:"Clock"})]}),a.jsx(Ve,{value:"picker1",children:a.jsx(TD,{})}),a.jsx(Ve,{value:"picker2",children:a.jsx(qD,{})}),a.jsx(Ve,{value:"picker3",children:a.jsx(m5,{delayDuration:100,children:a.jsxs("div",{className:"my-8 flex items-center justify-center gap-2",children:[a.jsx(N8,{}),a.jsx(P8,{})]})})}),a.jsx(Ve,{value:"picker4",children:a.jsx(ST,{})}),a.jsx(Ve,{value:"picker5",children:a.jsx("div",{className:"my-8 flex items-center justify-center",children:a.jsx(AT,{})})})]})}const t6="_spinner_ot2c0_13",n6="_rotate_ot2c0_1",r6="_path_ot2c0_31",o6="_dash_ot2c0_1",Ih={spinner:t6,rotate:n6,path:r6,dash:o6};function s6({className:e,...n}){return a.jsx("svg",{className:ct(Ih.spinner,e),viewBox:"0 0 50 50",...n,children:a.jsx("circle",{className:Ih.path,cx:25,cy:25,r:20,fill:"none"})})}const a6="_owner_17gat_1",i6={owner:a6,"donut-spin":"_donut-spin_17gat_1"};function l6({className:e,...n}){return a.jsx("div",{className:ct(i6.owner,"border-transparent border-l-sky-500 border-4 rounded-full",e),...n})}const $b=C.forwardRef(({className:e,...n},t)=>a.jsxs("div",{ref:t,role:"status",children:[a.jsxs("svg",{className:ct("w-6 h-6 fill-red-none animate-spin",e),viewBox:"0 0 100 101","aria-hidden":"true",...n,children:[a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"}),a.jsx("path",{className:"fill-current",d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"})]}),a.jsx("span",{className:"sr-only",children:"Loading..."})]}));$b.displayName="Spinner9";function c6({className:e,...n}){return a.jsx("div",{className:ct("px-3 flex items-center justify-center animate-spin",e),...n,children:"⍥"})}const u6="_bg_kvkpc_61",d6="_loader_kvkpc_73",f6="_line_kvkpc_1",p6="_spin_kvkpc_1",Lh={bg:u6,loader:d6,line:f6,spin:p6};function g6({className:e,...n}){return a.jsx("div",{className:ct("size-8",e),...n,children:a.jsxs("svg",{viewBox:"0 0 100 100",children:[a.jsx("circle",{className:Lh.bg,cx:50,cy:50,r:46}),a.jsx("circle",{className:Lh.loader,cx:50,cy:50,r:46})]})})}const h6="_lineAnimation_164jv_1",wu={"loading-text":"_loading-text_164jv_45",lineAnimation:h6};function m6({className:e,...n}){return a.jsx("div",{className:ct(wu.preloader,"",e),...n,children:a.jsx("div",{className:wu["preloader-content"],children:a.jsx("div",{className:wu["loading-text"],children:a.jsx("p",{children:"Loading"})})})})}const v6="_wrapper_11oqi_1",x6="_flashing_11oqi_1",b6={wrapper:v6,flashing:x6};function y6({className:e,...n}){return a.jsxs("div",{className:ct(b6.wrapper,e),...n,children:[a.jsx("span",{}),a.jsx("span",{}),a.jsx("span",{})]})}const w6="_opacity_1ujbv_1",_6="_colors_1ujbv_1",S6="_transform_1ujbv_1",jo={"g--circle":"_g--circle_1ujbv_57",opacity:w6,"g-circles--v1":"_g-circles--v1_1ujbv_193","g-circles--v2":"_g-circles--v2_1ujbv_207","opacity-stroke":"_opacity-stroke_1ujbv_1",colors:_6,"colors-stroke":"_colors-stroke_1ujbv_1","u--circle":"_u--circle_1ujbv_223","transform-2":"_transform-2_1ujbv_1","g-circles--v3":"_g-circles--v3_1ujbv_331","g-circles--v4":"_g-circles--v4_1ujbv_345","colors-3":"_colors-3_1ujbv_1",transform:S6,"colors-2":"_colors-2_1ujbv_1"};function C6(){return a.jsx("svg",{viewBox:"0 0 120 120",style:{position:"absolute",width:0,height:0,overflow:"hidden"},children:a.jsx("symbol",{id:"symbol--circle",children:a.jsx("circle",{r:10,cx:20,cy:20})})})}function Fi({className:e,...n}){return a.jsx("svg",{viewBox:"0 0 120 120",...n,children:a.jsx("g",{className:`${jo["g-circles"]} ${e}`,children:Array.from({length:12}).map((t,o)=>a.jsxs("g",{className:jo["g--circle"],children:[" ",a.jsx("use",{xlinkHref:"#symbol--circle",className:jo["u--circle"]})," "]},o))})})}const ol="rgba(255,_255,_255,_0)",Eb="rgba(255,_255,_255,_0.05)",j6=`linear-gradient(45deg,_${ol}_48%,_${Eb}_50%,_${ol}_52%)`,N6=`linear-gradient(-45deg,_${ol}_48%,_${Eb}_50%,_${ol}_52%)`,R6=`[background:${j6},_${N6}] [background-size:_1em_1em]`;function $6(){return a.jsx("div",{className:`p-4 text-green-950 flex items-center justify-center ${R6}`,children:a.jsxs("div",{className:"relative w-96 flex items-center gap-4",children:[a.jsx(C6,{}),a.jsx(Fi,{className:jo["g-circles--v1"]}),a.jsx(Fi,{className:jo["g-circles--v2"]}),a.jsx(Fi,{className:jo["g-circles--v3"]}),a.jsx(Fi,{className:jo["g-circles--v4"]})]})})}const E6="_content_d2oym_51",P6="_dots_d2oym_5",A6="_spin_d2oym_1",M6="_control_d2oym_87",D6="_bg_d2oym_113",T6="_ring_d2oym_185",k6="_dot_d2oym_5",I6="_ball_d2oym_1",zt={"dots-ring":"_dots-ring_d2oym_5",content:E6,dots:P6,spin:A6,control:M6,bg:D6,ring:T6,dot:k6,"over-ring":"_over-ring_d2oym_1",ball:I6};function L6(){return a.jsxs("div",{className:`qw-64 qh-64 ${zt["dots-ring"]}`,children:[a.jsx("input",{className:zt.control,type:"checkbox"}),a.jsx("div",{className:zt.bg}),a.jsx("div",{className:zt.content,children:a.jsxs("div",{className:zt.dots,children:[a.jsxs("div",{className:zt.dot,children:[" ",a.jsx("span",{})," "]}),a.jsxs("div",{className:zt.dot,children:[" ",a.jsx("span",{})," "]}),a.jsxs("div",{className:zt.dot,children:[" ",a.jsx("span",{})," "]}),a.jsxs("div",{className:zt.dot,children:[" ",a.jsx("span",{})," "]}),a.jsxs("div",{className:zt.dot,children:[" ",a.jsx("span",{})," "]}),a.jsxs("div",{className:zt.dot,children:[" ",a.jsx("span",{})," "]}),a.jsxs("div",{className:zt.dot,children:[" ",a.jsx("span",{})," "]}),a.jsxs("div",{className:zt.dot,children:[" ",a.jsx("span",{})," "]}),a.jsxs("div",{className:zt.dot,children:[" ",a.jsx("span",{})," "]}),a.jsxs("div",{className:zt.dot,children:[" ",a.jsx("span",{})," "]}),a.jsxs("div",{className:zt.dot,children:[" ",a.jsx("span",{})," "]}),a.jsxs("div",{className:zt.dot,children:[" ",a.jsx("span",{})," "]}),a.jsx("div",{className:zt.ring})]})})]})}const F6="_loader_13ftp_13",O6="_animateCircle_13ftp_1",z6="_animateDot_13ftp_1",B6={loader:F6,animateCircle:O6,animateDot:z6};function H6(){return a.jsxs("div",{className:`relative w-[150px] h-[150px] ${B6.loader}`,children:["Loading",a.jsx("span",{})]})}const V6="_a_17o17_51",G6="_b_17o17_79",Fh={a:V6,"rotate-clock-wise":"_rotate-clock-wise_17o17_1",b:G6,"rotate-anti-clock-wise":"_rotate-anti-clock-wise_17o17_1"};function W6(){return a.jsx("div",{className:"p-4 text-green-950 flex items-center justify-center",children:a.jsxs("div",{className:"relative w-32 h-32 border-current border-[14px] rounded-full",children:[a.jsx("div",{className:`${Fh.a} m-1 absolute inset-0 border-current border-[8px] border-y-transparent rounded-full`}),a.jsx("div",{className:`${Fh.b} m-4 absolute inset-0 border-current border-[20px] border-x-transparent rounded-full`})]})})}function Xd({maskId:e="p1loader"}={}){return a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:`${e}-grad`,x1:0,y1:0,x2:1,y2:1,children:[a.jsx("stop",{offset:"0%"}),a.jsx("stop",{offset:"100%",stopColor:"#fff"})]}),a.jsx("mask",{id:`${e}`,children:a.jsx("rect",{x:"0",y:"0",width:"128",height:"128",fill:`url(#${e}-grad)`})})]})}const U6="[--hue1:223] [--hue2:343] [--primary:hsl(var(--hue1),90%,50%)] [--secondary:hsl(var(--hue2),90%,50%)] ",Oh="p1loader";function X6({className:e,...n}){return a.jsxs("svg",{className:ct(U6,e),viewBox:"0 0 128 128",...n,children:[a.jsx(Xd,{maskId:Oh}),a.jsxs("g",{className:"pl1__g",fill:"var(--primary)",children:[a.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20)",children:[a.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),a.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]}),a.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20) rotate(180 44 44)",children:[a.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),a.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]})]}),a.jsxs("g",{className:"pl1__g",fill:"var(--secondary)",mask:`url(#${Oh})`,children:[a.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20)",children:[a.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),a.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]}),a.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20) rotate(180 44 44)",children:[a.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),a.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]})]})]})}const q6="[--hue1:223] [--hue2:283] [--primary:hsl(var(--hue1),90%,50%)] [--secondary:hsl(var(--hue2),90%,50%)] ",zh="p2loader";function K6({className:e,...n}){return a.jsxs("svg",{className:ct(q6,e),viewBox:"0 0 128 128",...n,children:[a.jsx(Xd,{maskId:zh}),a.jsxs("g",{fill:"var(--primary)",children:[a.jsx("g",{className:"pl2__rect-g",children:a.jsx("rect",{className:"pl2__rect",rx:8,ry:8,y:128,width:40,height:24,transform:"rotate(180)"})}),a.jsx("g",{className:"pl2__rect-g",children:a.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:44,y:128,width:40,height:24,transform:"rotate(180)"})}),a.jsx("g",{className:"pl2__rect-g",children:a.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:88,y:128,width:40,height:24,transform:"rotate(180)"})})]}),a.jsxs("g",{fill:"var(--secondary)",mask:`url(#${zh})`,children:[a.jsx("g",{className:"pl2__rect-g",children:a.jsx("rect",{className:"pl2__rect",rx:8,ry:8,y:128,width:40,height:24,transform:"rotate(180)"})}),a.jsx("g",{className:"pl2__rect-g",children:a.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:44,y:128,width:40,height:24,transform:"rotate(180)"})}),a.jsx("g",{className:"pl2__rect-g",children:a.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:88,y:128,width:40,height:24,transform:"rotate(180)"})})]})]})}const Y6="[--hue1:223] [--hue2:163] [--primary:hsl(var(--hue1),90%,50%)] [--secondary:hsl(var(--hue2),90%,50%)] ",Bh="p3loader";function J6({className:e,...n}){return a.jsxs("svg",{className:ct(Y6,e),viewBox:"0 0 128 128",...n,children:[a.jsx(Xd,{maskId:Bh}),a.jsxs("g",{fill:"var(--primary)",children:[a.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"}),a.jsx("g",{className:"pl3__rect-g",transform:"scale(-1)",children:a.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"})})]}),a.jsxs("g",{fill:"var(--secondary)",mask:`url(#${Bh})`,children:[a.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"}),a.jsx("g",{className:"pl3__rect-g",transform:"scale(-1)",children:a.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"})})]})]})}const Z6="_animate_1isss_1",Q6={"preloader-squares":"_preloader-squares_1isss_5",animate:Z6};function ek({className:e,...n}){return a.jsx("div",{className:ct(Q6["preloader-squares"],"relative size-6",e),...n,children:a.jsxs("ul",{className:"size-6",children:[a.jsx("li",{}),a.jsx("li",{}),a.jsx("li",{}),a.jsx("li",{})]})})}function tk({className:e,...n}){return a.jsxs("div",{className:ct("flex items-center gap-2",e),...n,children:[a.jsx(X6,{className:"w-6 h-6 [--hue1:53] [--hue2:253]"}),a.jsx(K6,{className:"w-6 h-6 [--hue2:253]"}),a.jsx(J6,{className:"w-6 h-6 [--hue2:153]"}),a.jsx(ek,{})]})}const nk="_pl_b9jmf_49",rk="_pl__bubble_b9jmf_69",mt={pl:nk,pl__bubble:rk,"pl__bubble-drop":"_pl__bubble-drop_b9jmf_81","bubble-rise-before":"_bubble-rise-before_b9jmf_1","bubble-rise-after":"_bubble-rise-after_b9jmf_1","bubble-drop":"_bubble-drop_b9jmf_1"};function ok(){return a.jsxs("div",{className:mt.pl,children:[a.jsxs("div",{className:mt.pl__bubble,children:[a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]})]}),a.jsxs("div",{className:mt.pl__bubble,children:[a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]})]}),a.jsxs("div",{className:mt.pl__bubble,children:[a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]}),a.jsx("div",{className:mt["pl__bubble-drop"]})]})]})}const sk="_particle_qdkb4_5",ak="_animation_qdkb4_1",Hh={particle:sk,animation:ak},Vh=360*3;function ik({className:e,...n}){return a.jsx(a.Fragment,{children:a.jsx("div",{className:Hh.center,style:{"--total":Vh,"--dot-size":"4px"},...n,children:Array.from({length:Vh}).map((t,o)=>a.jsx("div",{className:Hh.particle,style:{"--index":o}},o))})})}function lk(){return a.jsx("div",{className:"p-4 text-green-950 flex items-center justify-center",children:a.jsx("div",{className:"relative w-96 h-[200px] flex items-center justify-center content-center gap-4",children:a.jsx(ik,{})})})}const ck="_wrapper_1fkod_1",uk="_mainText_1fkod_17",dk="_hoverText_1fkod_27",_u={wrapper:ck,mainText:uk,hoverText:dk};function Gh({className:e,...n}){return a.jsxs("div",{className:ct(_u.wrapper,e),...n,children:[a.jsx("span",{className:_u.mainText,children:"Hover over me 1"}),a.jsx("span",{className:_u.hoverText,children:"Hover over me 2"})]})}const fk="_container_18r7v_31",pk="_button_18r7v_75",gk="_front_18r7v_141",hk="_back_18r7v_143",Oi={container:fk,button:pk,front:gk,back:hk};function mk({className:e,...n}){return a.jsx("div",{className:"relative 1w-24",children:a.jsxs("div",{className:ct(Oi.container,"w-20 h-12",e),...n,children:[a.jsx("input",{type:"checkbox",name:"cb",id:"cb"}),a.jsxs("label",{htmlFor:"cb",className:Oi.button,children:[a.jsx("span",{className:Oi.front,children:"send"}),a.jsx("span",{className:Oi.back,children:"done"})]})]})})}const vk="_btn_1xoda_75",zi={btn:vk,"svg-border":"_svg-border_1xoda_99"};function xk({className:e,...n}){return a.jsxs("button",{className:ct(zi.btn,"relative w-[180px] h-[60px]",e),...n,children:[a.jsxs("svg",{viewBox:"0 0 180 60",className:zi["svg-border"],children:[a.jsx("polyline",{points:"179,1 179,59 1,59 1,1 179,1",className:zi["bg-line"]}),a.jsx("polyline",{points:"179,1 179,59 1,59 1,1 179,1",className:zi["hl-line"]})]}),a.jsx("span",{children:"HOVER ME"})]})}const bk="_wrapper_sogws_7",yk="_transit_sogws_73",wk="_toggle_sogws_1",_k="_app_sogws_1",Sk="_background_sogws_165",Ck="_drip_sogws_199",jk="_content_sogws_291",Nk="_description_sogws_307",Rk="_pronunciation_sogws_349",$k="_avatar_sogws_389",Ek="_button_sogws_425",vt={wrapper:bk,"goo-filter":"_goo-filter_sogws_25",transit:yk,toggle:wk,app:_k,background:Sk,"bg-content":"_bg-content_sogws_185","bg-description":"_bg-description_sogws_187",drip:Ck,content:jk,description:Nk,pronunciation:Rk,avatar:$k,button:Ek,"up-down":"_up-down_sogws_1","down-up":"_down-up_sogws_1"};function Pk(){return a.jsxs("div",{className:`relative ${vt.wrapper} bg-sky-950 flex items-center justify-center`,children:[a.jsx("svg",{className:`w-full h-full ${vt["goo-filter"]}`,viewBox:"0 0 1 1",children:a.jsxs("filter",{id:"goo",children:[a.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:10,result:"blur"}),a.jsx("feColorMatrix",{in:"blur",mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 50 -20",result:"goo"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"goo"})]})}),a.jsxs("div",{id:`relative ${vt.app}`,children:[a.jsx("input",{type:"checkbox",id:vt.toggle,name:"toggle"}),a.jsxs("div",{className:vt.background,children:[a.jsxs("div",{className:vt["bg-content"],children:[a.jsx("div",{className:vt.drip}),a.jsx("div",{className:vt.drip}),a.jsx("div",{className:vt.drip}),a.jsx("div",{className:vt.drip}),a.jsx("div",{className:vt.drip}),a.jsx("div",{className:vt.drip})]}),a.jsxs("div",{className:`${vt["bg-description"]}`,children:[a.jsx("div",{className:vt.drip}),a.jsx("div",{className:vt.drip}),a.jsx("div",{className:vt.drip}),a.jsx("div",{className:vt.drip}),a.jsx("div",{className:vt.drip}),a.jsx("div",{className:vt.drip})]})]}),a.jsxs("div",{className:vt.content,children:[a.jsx("div",{className:vt.avatar,children:"🕶"}),a.jsx("header",{children:"Ocularia Solaria"}),a.jsx("label",{className:vt.button,htmlFor:vt.toggle})]}),a.jsxs("div",{className:`${vt.description} ${vt.transit}`,children:[a.jsx("header",{children:"Sunglasses!"}),a.jsx("p",{children:"Cool."})]})]})]})}function Ak(){return a.jsxs(hr,{defaultValue:"loaders1",children:[a.jsxs(lr,{className:fl,children:[a.jsx(He,{value:"loaders1",children:"Simple"}),a.jsx(He,{value:"loaders2",children:"Circles"}),a.jsx(He,{value:"loaders3",children:"Dots ring"}),a.jsx(He,{value:"loaders4",children:"Commet"}),a.jsx(He,{value:"loaders5",children:"Radar"})]}),a.jsx(Ve,{value:"loaders1",children:a.jsxs("div",{className:"my-8 flex items-center justify-center gap-8",children:[a.jsx(s6,{className:"w-8 h-8 stroke-[5] stroke-sky-500"}),a.jsx(l6,{className:"w-8 h-8"}),a.jsx($b,{className:"w-8 h-8 text-sky-500"}),a.jsx(c6,{className:"text-4xl text-sky-500"}),a.jsx(g6,{}),a.jsx(m6,{}),a.jsx(y6,{className:"text-sky-300"})]})}),a.jsx(Ve,{value:"loaders2",children:a.jsx("div",{className:"my-8 flex items-center justify-center",children:a.jsx($6,{})})}),a.jsx(Ve,{value:"loaders3",children:a.jsx("div",{className:"my-8 flex items-center justify-center",children:a.jsx(L6,{})})}),a.jsx(Ve,{value:"loaders4",children:a.jsx("div",{className:"my-8 flex items-center justify-center",children:a.jsx(H6,{})})}),a.jsx(Ve,{value:"loaders5",children:a.jsx(W6,{})})]})}function Mk(){return a.jsxs(hr,{defaultValue:"loaders1",children:[a.jsxs(lr,{className:fl,children:[a.jsx(He,{value:"loaders1",children:"Blocks"}),a.jsx(He,{value:"loaders2",children:"Bubbles"}),a.jsx(He,{value:"loaders3",children:"3D spheres"})]}),a.jsx(Ve,{value:"loaders1",children:a.jsx(tk,{className:"m-auto max-w-sm flex items-center justify-between"})}),a.jsx(Ve,{value:"loaders2",children:a.jsx("div",{className:"my-8 flex items-center justify-center",children:a.jsx(ok,{})})}),a.jsx(Ve,{value:"loaders3",children:a.jsx("div",{className:"my-8 flex items-center justify-center",children:a.jsx(lk,{})})})]})}function Dk(){return a.jsxs(hr,{defaultValue:"switch3",children:[a.jsxs(lr,{className:fl,children:[a.jsx(He,{value:"switch3",children:"Effects"}),a.jsx(He,{value:"switch4",children:"Goo"})]}),a.jsx(Ve,{value:"switch3",children:a.jsxs("div",{className:"py-4 flex flex-col items-start gap-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ft,{variant:"outline",children:a.jsx(Gh,{className:"cursor-pointer"})}),a.jsx(xk,{}),a.jsx(mk,{})]}),a.jsx("div",{className:"px-4",children:a.jsx(Gh,{className:"cursor-pointer"})})]})}),a.jsx(Ve,{value:"switch4",children:a.jsx(Pk,{})})]})}function Tk(){return a.jsxs(hr,{defaultValue:"loaders1",children:[a.jsxs(lr,{className:fl,children:[a.jsx(He,{value:"loaders1",children:"Spinners"}),a.jsx(He,{value:"loaders2",children:"Styled"}),a.jsx(He,{value:"loaders3",children:"Effects"})]}),a.jsx(Ve,{value:"loaders1",children:a.jsx(Ak,{})}),a.jsx(Ve,{value:"loaders2",children:a.jsx(Mk,{})}),a.jsx(Ve,{value:"loaders3",children:a.jsx(Dk,{})})]})}function kk({cases:e}){const{activeDemoAccordion:n}=Ir(lt).demosState;return a.jsx($5,{className:"w-full",type:"single",collapsible:!0,value:n,onValueChange:t=>lt.demosState.activeDemoAccordion=t,children:e.map(t=>a.jsxs(tv,{className:"border-b-0",value:t.id,children:[a.jsx(nv,{className:"underline-offset-4",children:t.name}),a.jsx(rv,{className:"pt-4 border-t border-b",children:t.component})]},t.id))})}const Ik=[{id:"10",name:"Tables",component:a.jsx(NM,{})},{id:"20",name:"Tree",component:a.jsx(Lx,{})},{id:"30",name:"Resizable",component:a.jsx(RM,{})},{id:"40",name:"Switches, Carousel, Pagination, Skeleton, Charts",component:a.jsx(DT,{})},{id:"50",name:"Toasts, Drawer, Menus, Dialog",component:a.jsx(QT,{})},{id:"60",name:"Loaders, Effects",component:a.jsx(Tk,{})},{id:"70",name:"Pickers: Color, Theme, Flow, Time",component:a.jsx(e6,{})}];function Lk(){return a.jsxs("div",{className:"min-h-0 grid grid-rows-[auto,1fr,auto]",children:[a.jsx(R3,{}),a.jsx(dl,{className:"flex-1 p-4 min-w-0 overflow-hidden","data-fixed-width":!0,children:a.jsx(kk,{cases:Ik})}),a.jsx(WA,{})]})}function Fk(){return a.jsx("div",{className:"py-4 bg-primary-500/20"})}function Ok(){return a.jsxs(a.Fragment,{children:[a.jsx(OA,{}),a.jsx(vP,{}),a.jsxs("div",{className:"h-screen grid grid-rows-[auto,1fr,auto]",children:[a.jsx(N3,{}),a.jsx(Lk,{}),a.jsx(Fk,{})]}),a.jsx(q3,{}),a.jsx(oP,{})]})}Su.createRoot(document.getElementById("root")).render(a.jsx(G.StrictMode,{children:a.jsx(Ok,{})})); -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = [] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} diff --git a/assets/nivo-C0xxZE_O.js b/assets/nivo-C0xxZE_O.js deleted file mode 100644 index 99b1cac..0000000 --- a/assets/nivo-C0xxZE_O.js +++ /dev/null @@ -1,66 +0,0 @@ -function K8(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pF(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var yg={exports:{}},ml={},vg={exports:{}},ae={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var io=Symbol.for("react.element"),Z8=Symbol.for("react.portal"),J8=Symbol.for("react.fragment"),e6=Symbol.for("react.strict_mode"),t6=Symbol.for("react.profiler"),n6=Symbol.for("react.provider"),r6=Symbol.for("react.context"),i6=Symbol.for("react.forward_ref"),a6=Symbol.for("react.suspense"),o6=Symbol.for("react.memo"),s6=Symbol.for("react.lazy"),jh=Symbol.iterator;function l6(e){return e===null||typeof e!="object"?null:(e=jh&&e[jh]||e["@@iterator"],typeof e=="function"?e:null)}var bg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_g=Object.assign,xg={};function Oi(e,t,n){this.props=e,this.context=t,this.refs=xg,this.updater=n||bg}Oi.prototype.isReactComponent={};Oi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Oi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wg(){}wg.prototype=Oi.prototype;function Jc(e,t,n){this.props=e,this.context=t,this.refs=xg,this.updater=n||bg}var ed=Jc.prototype=new wg;ed.constructor=Jc;_g(ed,Oi.prototype);ed.isPureReactComponent=!0;var Ih=Array.isArray,Sg=Object.prototype.hasOwnProperty,td={current:null},kg={key:!0,ref:!0,__self:!0,__source:!0};function $g(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)Sg.call(t,r)&&!kg.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,G=T[V];if(0>>1;Vi(Q,U))Ki(Z,Q)?(T[V]=Z,T[K]=U,V=K):(T[V]=Q,T[re]=U,V=re);else if(Ki(Z,U))T[V]=Z,T[K]=U,V=K;else break e}}return P}function i(T,P){var U=T.sortIndex-P.sortIndex;return U!==0?U:T.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],f=1,c=null,d=3,m=!1,g=!1,b=!1,_=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(T){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=T)r(u),P.sortIndex=P.expirationTime,t(l,P);else break;P=n(u)}}function x(T){if(b=!1,v(T),!g)if(n(l)!==null)g=!0,B(k);else{var P=n(u);P!==null&&D(x,P.startTime-T)}}function k(T,P){g=!1,b&&(b=!1,y(M),M=-1),m=!0;var U=d;try{for(v(P),c=n(l);c!==null&&(!(c.expirationTime>P)||T&&!w());){var V=c.callback;if(typeof V=="function"){c.callback=null,d=c.priorityLevel;var G=V(c.expirationTime<=P);P=e.unstable_now(),typeof G=="function"?c.callback=G:c===n(l)&&r(l),v(P)}else r(l);c=n(l)}if(c!==null)var ce=!0;else{var re=n(u);re!==null&&D(x,re.startTime-P),ce=!1}return ce}finally{c=null,d=U,m=!1}}var S=!1,O=null,M=-1,A=5,$=-1;function w(){return!(e.unstable_now()-$T||125V?(T.sortIndex=U,t(u,T),n(l)===null&&T===n(u)&&(b?(y(M),M=-1):b=!0,D(x,U-V))):(T.sortIndex=G,t(l,T),g||m||(g=!0,B(k))),T},e.unstable_shouldYield=w,e.unstable_wrapCallback=function(T){var P=d;return function(){var U=d;d=P;try{return T.apply(this,arguments)}finally{d=U}}}})(Og);Tg.exports=Og;var _6=Tg.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Eg=C,yt=_6;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pf=Object.prototype.hasOwnProperty,x6=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Lh={},Fh={};function w6(e){return pf.call(Fh,e)?!0:pf.call(Lh,e)?!1:x6.test(e)?Fh[e]=!0:(Lh[e]=!0,!1)}function S6(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function k6(e,t,n,r){if(t===null||typeof t>"u"||S6(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rt(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new rt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){He[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var rd=/[\-:]([a-z])/g;function id(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(rd,id);He[t]=new rt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rd,id);He[t]=new rt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rd,id);He[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function ad(e,t,n,r){var i=He.hasOwnProperty(t)?He[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{pu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?oa(e):""}function $6(e){switch(e.tag){case 5:return oa(e.type);case 16:return oa("Lazy");case 13:return oa("Suspense");case 19:return oa("SuspenseList");case 0:case 2:case 15:return e=mu(e.type,!1),e;case 11:return e=mu(e.type.render,!1),e;case 1:return e=mu(e.type,!0),e;default:return""}}function vf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Hr:return"Fragment";case Br:return"Portal";case mf:return"Profiler";case od:return"StrictMode";case gf:return"Suspense";case yf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ag:return(e.displayName||"Context")+".Consumer";case Rg:return(e._context.displayName||"Context")+".Provider";case sd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ld:return t=e.displayName||null,t!==null?t:vf(e.type)||"Memo";case Mn:t=e._payload,e=e._init;try{return vf(e(t))}catch{}}return null}function C6(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vf(t);case 8:return t===od?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Bn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function M6(e){var t=jg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ko(e){e._valueTracker||(e._valueTracker=M6(e))}function Ig(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ys(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bf(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zg(e,t){t=t.checked,t!=null&&ad(e,"checked",t,!1)}function _f(e,t){zg(e,t);var n=Bn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xf(e,t.type,n):t.hasOwnProperty("defaultValue")&&xf(e,t.type,Bn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xf(e,t,n){(t!=="number"||ys(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sa=Array.isArray;function ai(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=$o.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $a(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ca={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},T6=["Webkit","ms","Moz","O"];Object.keys(ca).forEach(function(e){T6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ca[t]=ca[e]})});function Ug(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ca.hasOwnProperty(e)&&ca[e]?(""+t).trim():t+"px"}function qg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ug(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var O6=$e({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function kf(e,t){if(t){if(O6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function $f(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cf=null;function ud(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mf=null,oi=null,si=null;function Hh(e){if(e=so(e)){if(typeof Mf!="function")throw Error(F(280));var t=e.stateNode;t&&(t=_l(t),Mf(e.stateNode,e.type,t))}}function Wg(e){oi?si?si.push(e):si=[e]:oi=e}function Bg(){if(oi){var e=oi,t=si;if(si=oi=null,Hh(e),t)for(e=0;e>>=0,e===0?32:31-(D6(e)/U6|0)|0}var Co=64,Mo=4194304;function la(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=la(s):(a&=o,a!==0&&(r=la(a)))}else o=n&~i,o!==0?r=la(o):a!==0&&(r=la(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ao(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function H6(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ha),e1=" ",t1=!1;function fy(e,t){switch(e){case"keyup":return b4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vr=!1;function x4(e,t){switch(e){case"compositionend":return cy(t);case"keypress":return t.which!==32?null:(t1=!0,e1);case"textInput":return e=t.data,e===e1&&t1?null:e;default:return null}}function w4(e,t){if(Vr)return e==="compositionend"||!yd&&fy(e,t)?(e=ly(),ns=pd=Pn=null,Vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=a1(n)}}function my(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?my(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gy(){for(var e=window,t=ys();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ys(e.document)}return t}function vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function P4(e){var t=gy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&my(n.ownerDocument.documentElement,n)){if(r!==null&&vd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=o1(n,a);var o=o1(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Yr=null,Af=null,ma=null,Nf=!1;function s1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nf||Yr==null||Yr!==ys(r)||(r=Yr,"selectionStart"in r&&vd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ma&&Pa(ma,r)||(ma=r,r=ks(Af,"onSelect"),0Xr||(e.current=Df[Xr],Df[Xr]=null,Xr--)}function ve(e,t){Xr++,Df[Xr]=e.current,e.current=t}var Hn={},Qe=Qn(Hn),ut=Qn(!1),br=Hn;function yi(e,t){var n=e.type.contextTypes;if(!n)return Hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ft(e){return e=e.childContextTypes,e!=null}function Cs(){xe(ut),xe(Qe)}function p1(e,t,n){if(Qe.current!==Hn)throw Error(F(168));ve(Qe,t),ve(ut,n)}function $y(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(F(108,C6(e)||"Unknown",i));return $e({},n,r)}function Ms(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hn,br=Qe.current,ve(Qe,e),ve(ut,ut.current),!0}function m1(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=$y(e,t,br),r.__reactInternalMemoizedMergedChildContext=e,xe(ut),xe(Qe),ve(Qe,e)):xe(ut),ve(ut,n)}var sn=null,xl=!1,Ou=!1;function Cy(e){sn===null?sn=[e]:sn.push(e)}function W4(e){xl=!0,Cy(e)}function Xn(){if(!Ou&&sn!==null){Ou=!0;var e=0,t=he;try{var n=sn;for(he=1;e>=o,i-=o,un=1<<32-Ft(t)+i|n<M?(A=O,O=null):A=O.sibling;var $=d(y,O,v[M],x);if($===null){O===null&&(O=A);break}e&&O&&$.alternate===null&&t(y,O),p=a($,p,M),S===null?k=$:S.sibling=$,S=$,O=A}if(M===v.length)return n(y,O),we&&nr(y,M),k;if(O===null){for(;MM?(A=O,O=null):A=O.sibling;var w=d(y,O,$.value,x);if(w===null){O===null&&(O=A);break}e&&O&&w.alternate===null&&t(y,O),p=a(w,p,M),S===null?k=w:S.sibling=w,S=w,O=A}if($.done)return n(y,O),we&&nr(y,M),k;if(O===null){for(;!$.done;M++,$=v.next())$=c(y,$.value,x),$!==null&&(p=a($,p,M),S===null?k=$:S.sibling=$,S=$);return we&&nr(y,M),k}for(O=r(y,O);!$.done;M++,$=v.next())$=m(O,y,M,$.value,x),$!==null&&(e&&$.alternate!==null&&O.delete($.key===null?M:$.key),p=a($,p,M),S===null?k=$:S.sibling=$,S=$);return e&&O.forEach(function(I){return t(y,I)}),we&&nr(y,M),k}function _(y,p,v,x){if(typeof v=="object"&&v!==null&&v.type===Hr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case So:e:{for(var k=v.key,S=p;S!==null;){if(S.key===k){if(k=v.type,k===Hr){if(S.tag===7){n(y,S.sibling),p=i(S,v.props.children),p.return=y,y=p;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Mn&&w1(k)===S.type){n(y,S.sibling),p=i(S,v.props),p.ref=Qi(y,S,v),p.return=y,y=p;break e}n(y,S);break}else t(y,S);S=S.sibling}v.type===Hr?(p=gr(v.props.children,y.mode,x,v.key),p.return=y,y=p):(x=fs(v.type,v.key,v.props,null,y.mode,x),x.ref=Qi(y,p,v),x.return=y,y=x)}return o(y);case Br:e:{for(S=v.key;p!==null;){if(p.key===S)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(y,p.sibling),p=i(p,v.children||[]),p.return=y,y=p;break e}else{n(y,p);break}else t(y,p);p=p.sibling}p=zu(v,y.mode,x),p.return=y,y=p}return o(y);case Mn:return S=v._init,_(y,p,S(v._payload),x)}if(sa(v))return g(y,p,v,x);if(Bi(v))return b(y,p,v,x);No(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(y,p.sibling),p=i(p,v),p.return=y,y=p):(n(y,p),p=Iu(v,y.mode,x),p.return=y,y=p),o(y)):n(y,p)}return _}var bi=Ny(!0),jy=Ny(!1),lo={},Xt=Qn(lo),ja=Qn(lo),Ia=Qn(lo);function ur(e){if(e===lo)throw Error(F(174));return e}function Md(e,t){switch(ve(Ia,t),ve(ja,e),ve(Xt,lo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Sf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Sf(t,e)}xe(Xt),ve(Xt,t)}function _i(){xe(Xt),xe(ja),xe(Ia)}function Iy(e){ur(Ia.current);var t=ur(Xt.current),n=Sf(t,e.type);t!==n&&(ve(ja,e),ve(Xt,n))}function Td(e){ja.current===e&&(xe(Xt),xe(ja))}var Se=Qn(0);function As(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Eu=[];function Od(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{he=n,Pu.transition=r}}function Zy(){return Et().memoizedState}function Y4(e,t,n){var r=Un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jy(e))ev(t,n);else if(n=Ey(e,t,n,r),n!==null){var i=tt();Dt(n,e,r,i),tv(n,t,r)}}function G4(e,t,n){var r=Un(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jy(e))ev(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,qt(s,o)){var l=t.interleaved;l===null?(i.next=i,$d(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Ey(e,t,i,r),n!==null&&(i=tt(),Dt(n,e,r,i),tv(n,t,r))}}function Jy(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function ev(e,t){ga=Ns=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,cd(e,n)}}var js={readContext:Ot,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},Q4={readContext:Ot,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:k1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,os(4194308,4,Yy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){return os(4,2,e,t)},useMemo:function(e,t){var n=Ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ht();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Y4.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:S1,useDebugValue:Nd,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=S1(!1),t=e[0];return e=V4.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,i=Ht();if(we){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),ze===null)throw Error(F(349));xr&30||Fy(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,k1(Uy.bind(null,r,a,e),[e]),r.flags|=2048,Fa(9,Dy.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ht(),t=ze.identifierPrefix;if(we){var n=fn,r=un;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=za++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Yt]=t,e[Na]=r,fv(e,t,!1,!1),t.stateNode=e;e:{switch(o=$f(n,r),n){case"dialog":be("cancel",e),be("close",e),i=r;break;case"iframe":case"object":case"embed":be("load",e),i=r;break;case"video":case"audio":for(i=0;iwi&&(t.flags|=128,r=!0,Xi(a,!1),t.lanes=4194304)}else{if(!r)if(e=As(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!we)return Ye(t),null}else 2*Oe()-a.renderingStartTime>wi&&n!==1073741824&&(t.flags|=128,r=!0,Xi(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Oe(),t.sibling=null,n=Se.current,ve(Se,r?n&1|2:n&1),t):(Ye(t),null);case 22:case 23:return Dd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ht&1073741824&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function r_(e,t){switch(_d(t),t.tag){case 1:return ft(t.type)&&Cs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _i(),xe(ut),xe(Qe),Od(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Td(t),null;case 13:if(xe(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(Se),null;case 4:return _i(),null;case 10:return kd(t.type._context),null;case 22:case 23:return Dd(),null;case 24:return null;default:return null}}var Io=!1,Ge=!1,i_=typeof WeakSet=="function"?WeakSet:Set,H=null;function ei(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Te(e,t,r)}else n.current=null}function Zf(e,t,n){try{n()}catch(r){Te(e,t,r)}}var A1=!1;function a_(e,t){if(jf=ws,e=gy(),vd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var m;c!==n||i!==0&&c.nodeType!==3||(s=o+i),c!==a||r!==0&&c.nodeType!==3||(l=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(m=c.firstChild)!==null;)d=c,c=m;for(;;){if(c===e)break t;if(d===n&&++u===i&&(s=o),d===a&&++f===r&&(l=o),(m=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(If={focusedElem:e,selectionRange:n},ws=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var b=g.memoizedProps,_=g.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:At(t.type,b),_);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(x){Te(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return g=A1,A1=!1,g}function ya(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Zf(t,n,a)}i=i.next}while(i!==r)}}function kl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Jf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hv(e){var t=e.alternate;t!==null&&(e.alternate=null,hv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[Na],delete t[Ff],delete t[U4],delete t[q4])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function pv(e){return e.tag===5||e.tag===3||e.tag===4}function N1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ec(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$s));else if(r!==4&&(e=e.child,e!==null))for(ec(e,t,n),e=e.sibling;e!==null;)ec(e,t,n),e=e.sibling}function tc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(tc(e,t,n),e=e.sibling;e!==null;)tc(e,t,n),e=e.sibling}var qe=null,Nt=!1;function $n(e,t,n){for(n=n.child;n!==null;)mv(e,t,n),n=n.sibling}function mv(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(gl,n)}catch{}switch(n.tag){case 5:Ge||ei(n,t);case 6:var r=qe,i=Nt;qe=null,$n(e,t,n),qe=r,Nt=i,qe!==null&&(Nt?(e=qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qe.removeChild(n.stateNode));break;case 18:qe!==null&&(Nt?(e=qe,n=n.stateNode,e.nodeType===8?Tu(e.parentNode,n):e.nodeType===1&&Tu(e,n),Oa(e)):Tu(qe,n.stateNode));break;case 4:r=qe,i=Nt,qe=n.stateNode.containerInfo,Nt=!0,$n(e,t,n),qe=r,Nt=i;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Zf(n,t,o),i=i.next}while(i!==r)}$n(e,t,n);break;case 1:if(!Ge&&(ei(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Te(n,t,s)}$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,$n(e,t,n),Ge=r):$n(e,t,n);break;default:$n(e,t,n)}}function j1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new i_),t.forEach(function(r){var i=p_.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Rt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*s_(r/1960))-r,10e?16:e,Rn===null)var r=!1;else{if(e=Rn,Rn=null,Ls=0,ue&6)throw Error(F(331));var i=ue;for(ue|=4,H=e.current;H!==null;){var a=H,o=a.child;if(H.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lOe()-Ld?mr(e,0):zd|=n),ct(e,t)}function Sv(e,t){t===0&&(e.mode&1?(t=Mo,Mo<<=1,!(Mo&130023424)&&(Mo=4194304)):t=1);var n=tt();e=gn(e,t),e!==null&&(ao(e,t,n),ct(e,n))}function h_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sv(e,n)}function p_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),Sv(e,n)}var kv;kv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ut.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,t_(e,t,n);st=!!(e.flags&131072)}else st=!1,we&&t.flags&1048576&&My(t,Os,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ss(e,t),e=t.pendingProps;var i=yi(t,Qe.current);ui(t,n),i=Pd(null,t,r,e,i,n);var a=Rd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(a=!0,Ms(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Cd(t),i.updater=wl,t.stateNode=i,i._reactInternals=t,Hf(t,r,e,n),t=Gf(null,t,r,!0,a,n)):(t.tag=0,we&&a&&bd(t),Ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ss(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=g_(r),e=At(r,e),i){case 0:t=Yf(null,t,r,e,n);break e;case 1:t=E1(null,t,r,e,n);break e;case 11:t=T1(null,t,r,e,n);break e;case 14:t=O1(null,t,r,At(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:At(r,i),Yf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:At(r,i),E1(e,t,r,i,n);case 3:e:{if(sv(t),e===null)throw Error(F(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Py(e,t),Rs(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=xi(Error(F(423)),t),t=P1(e,t,r,n,i);break e}else if(r!==i){i=xi(Error(F(424)),t),t=P1(e,t,r,n,i);break e}else for(mt=Ln(t.stateNode.containerInfo.firstChild),gt=t,we=!0,jt=null,n=jy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vi(),r===i){t=yn(e,t,n);break e}Ze(e,t,r,n)}t=t.child}return t;case 5:return Iy(t),e===null&&qf(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,zf(r,i)?o=null:a!==null&&zf(r,a)&&(t.flags|=32),ov(e,t),Ze(e,t,o,n),t.child;case 6:return e===null&&qf(t),null;case 13:return lv(e,t,n);case 4:return Md(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bi(t,null,r,n):Ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:At(r,i),T1(e,t,r,i,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,ve(Es,r._currentValue),r._currentValue=o,a!==null)if(qt(a.value,o)){if(a.children===i.children&&!ut.current){t=yn(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=hn(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Wf(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(F(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Wf(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ui(t,n),i=Ot(i),r=r(i),t.flags|=1,Ze(e,t,r,n),t.child;case 14:return r=t.type,i=At(r,t.pendingProps),i=At(r.type,i),O1(e,t,r,i,n);case 15:return iv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:At(r,i),ss(e,t),t.tag=1,ft(r)?(e=!0,Ms(t)):e=!1,ui(t,n),Ay(t,r,i),Hf(t,r,i,n),Gf(null,t,r,!0,e,n);case 19:return uv(e,t,n);case 22:return av(e,t,n)}throw Error(F(156,t.tag))};function $v(e,t){return Kg(e,t)}function m_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $t(e,t,n,r){return new m_(e,t,n,r)}function qd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g_(e){if(typeof e=="function")return qd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sd)return 11;if(e===ld)return 14}return 2}function qn(e,t){var n=e.alternate;return n===null?(n=$t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function fs(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")qd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Hr:return gr(n.children,i,a,t);case od:o=8,i|=8;break;case mf:return e=$t(12,n,t,i|2),e.elementType=mf,e.lanes=a,e;case gf:return e=$t(13,n,t,i),e.elementType=gf,e.lanes=a,e;case yf:return e=$t(19,n,t,i),e.elementType=yf,e.lanes=a,e;case Ng:return Cl(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rg:o=10;break e;case Ag:o=9;break e;case sd:o=11;break e;case ld:o=14;break e;case Mn:o=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=$t(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function gr(e,t,n,r){return e=$t(7,e,r,t),e.lanes=n,e}function Cl(e,t,n,r){return e=$t(22,e,r,t),e.elementType=Ng,e.lanes=n,e.stateNode={isHidden:!1},e}function Iu(e,t,n){return e=$t(6,e,null,t),e.lanes=n,e}function zu(e,t,n){return t=$t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y_(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yu(0),this.expirationTimes=yu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wd(e,t,n,r,i,a,o,s,l){return e=new y_(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=$t(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cd(a),e}function v_(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ov)}catch(e){console.error(e)}}Ov(),Mg.exports=vt;var Ev=Mg.exports;const gF=je(Ev);var S_=Array.isArray,Pt=S_,k_=typeof xo=="object"&&xo&&xo.Object===Object&&xo,Pv=k_,$_=Pv,C_=typeof self=="object"&&self&&self.Object===Object&&self,M_=$_||C_||Function("return this")(),tn=M_,T_=tn,O_=T_.Symbol,uo=O_,W1=uo,Rv=Object.prototype,E_=Rv.hasOwnProperty,P_=Rv.toString,Zi=W1?W1.toStringTag:void 0;function R_(e){var t=E_.call(e,Zi),n=e[Zi];try{e[Zi]=void 0;var r=!0}catch{}var i=P_.call(e);return r&&(t?e[Zi]=n:delete e[Zi]),i}var A_=R_,N_=Object.prototype,j_=N_.toString;function I_(e){return j_.call(e)}var z_=I_,B1=uo,L_=A_,F_=z_,D_="[object Null]",U_="[object Undefined]",H1=B1?B1.toStringTag:void 0;function q_(e){return e==null?e===void 0?U_:D_:H1&&H1 in Object(e)?L_(e):F_(e)}var Kn=q_;function W_(e){return e!=null&&typeof e=="object"}var xn=W_,B_=Kn,H_=xn,V_="[object Symbol]";function Y_(e){return typeof e=="symbol"||H_(e)&&B_(e)==V_}var Pl=Y_,G_=Pt,Q_=Pl,X_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K_=/^\w*$/;function Z_(e,t){if(G_(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Q_(e)?!0:K_.test(e)||!X_.test(e)||t!=null&&e in Object(t)}var Yd=Z_;function J_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var nn=J_;const yF=je(nn);var e5=Kn,t5=nn,n5="[object AsyncFunction]",r5="[object Function]",i5="[object GeneratorFunction]",a5="[object Proxy]";function o5(e){if(!t5(e))return!1;var t=e5(e);return t==r5||t==i5||t==n5||t==a5}var Rl=o5;const oc=je(Rl);var s5=tn,l5=s5["__core-js_shared__"],u5=l5,Lu=u5,V1=function(){var e=/[^.]+$/.exec(Lu&&Lu.keys&&Lu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function f5(e){return!!V1&&V1 in e}var c5=f5,d5=Function.prototype,h5=d5.toString;function p5(e){if(e!=null){try{return h5.call(e)}catch{}try{return e+""}catch{}}return""}var Av=p5,m5=Rl,g5=c5,y5=nn,v5=Av,b5=/[\\^$.*+?()[\]{}|]/g,_5=/^\[object .+?Constructor\]$/,x5=Function.prototype,w5=Object.prototype,S5=x5.toString,k5=w5.hasOwnProperty,$5=RegExp("^"+S5.call(k5).replace(b5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function C5(e){if(!y5(e)||g5(e))return!1;var t=m5(e)?$5:_5;return t.test(v5(e))}var M5=C5;function T5(e,t){return e?.[t]}var O5=T5,E5=M5,P5=O5;function R5(e,t){var n=P5(e,t);return E5(n)?n:void 0}var Er=R5,A5=Er,N5=A5(Object,"create"),Al=N5,Y1=Al;function j5(){this.__data__=Y1?Y1(null):{},this.size=0}var I5=j5;function z5(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var L5=z5,F5=Al,D5="__lodash_hash_undefined__",U5=Object.prototype,q5=U5.hasOwnProperty;function W5(e){var t=this.__data__;if(F5){var n=t[e];return n===D5?void 0:n}return q5.call(t,e)?t[e]:void 0}var B5=W5,H5=Al,V5=Object.prototype,Y5=V5.hasOwnProperty;function G5(e){var t=this.__data__;return H5?t[e]!==void 0:Y5.call(t,e)}var Q5=G5,X5=Al,K5="__lodash_hash_undefined__";function Z5(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=X5&&t===void 0?K5:t,this}var J5=Z5,ex=I5,tx=L5,nx=B5,rx=Q5,ix=J5;function Ri(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var xx=_x,wx=Nl;function Sx(e,t){var n=this.__data__,r=wx(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var kx=Sx,$x=sx,Cx=mx,Mx=vx,Tx=xx,Ox=kx;function Ai(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var c=-1,d=!0,m=n&$9?new x9:void 0;for(a.set(e,t),a.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=Tw}var r0=Ow,Ew=Kn,Pw=r0,Rw=xn,Aw="[object Arguments]",Nw="[object Array]",jw="[object Boolean]",Iw="[object Date]",zw="[object Error]",Lw="[object Function]",Fw="[object Map]",Dw="[object Number]",Uw="[object Object]",qw="[object RegExp]",Ww="[object Set]",Bw="[object String]",Hw="[object WeakMap]",Vw="[object ArrayBuffer]",Yw="[object DataView]",Gw="[object Float32Array]",Qw="[object Float64Array]",Xw="[object Int8Array]",Kw="[object Int16Array]",Zw="[object Int32Array]",Jw="[object Uint8Array]",eS="[object Uint8ClampedArray]",tS="[object Uint16Array]",nS="[object Uint32Array]",_e={};_e[Gw]=_e[Qw]=_e[Xw]=_e[Kw]=_e[Zw]=_e[Jw]=_e[eS]=_e[tS]=_e[nS]=!0;_e[Aw]=_e[Nw]=_e[Vw]=_e[jw]=_e[Yw]=_e[Iw]=_e[zw]=_e[Lw]=_e[Fw]=_e[Dw]=_e[Uw]=_e[qw]=_e[Ww]=_e[Bw]=_e[Hw]=!1;function rS(e){return Rw(e)&&Pw(e.length)&&!!_e[Ew(e)]}var iS=rS;function aS(e){return function(t){return e(t)}}var Ul=aS,Ws={exports:{}};Ws.exports;(function(e,t){var n=Pv,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Ws,Ws.exports);var qv=Ws.exports,oS=iS,sS=Ul,rp=qv,ip=rp&&rp.isTypedArray,lS=ip?sS(ip):oS,i0=lS,uS=hw,fS=Fl,cS=Pt,dS=n0,hS=Dl,pS=i0,mS=Object.prototype,gS=mS.hasOwnProperty;function yS(e,t){var n=cS(e),r=!n&&fS(e),i=!n&&!r&&dS(e),a=!n&&!r&&!i&&pS(e),o=n||r||i||a,s=o?uS(e.length,String):[],l=s.length;for(var u in e)(t||gS.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||hS(u,l)))&&s.push(u);return s}var Wv=yS,vS=Object.prototype;function bS(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||vS;return e===n}var a0=bS;function _S(e,t){return function(n){return e(t(n))}}var Bv=_S,xS=Bv,wS=xS(Object.keys,Object),SS=wS,kS=a0,$S=SS,CS=Object.prototype,MS=CS.hasOwnProperty;function TS(e){if(!kS(e))return $S(e);var t=[];for(var n in Object(e))MS.call(e,n)&&n!="constructor"&&t.push(n);return t}var OS=TS,ES=Rl,PS=r0;function RS(e){return e!=null&&PS(e.length)&&!ES(e)}var Ii=RS,AS=Wv,NS=OS,jS=Ii;function IS(e){return jS(e)?AS(e):NS(e)}var o0=IS,zS=tw,LS=cw,FS=o0;function DS(e){return zS(e,FS,LS)}var US=DS,ap=US,qS=1,WS=Object.prototype,BS=WS.hasOwnProperty;function HS(e,t,n,r,i,a){var o=n&qS,s=ap(e),l=s.length,u=ap(t),f=u.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var d=s[c];if(!(o?d in t:BS.call(t,d)))return!1}var m=a.get(e),g=a.get(t);if(m&&g)return m==t&&g==e;var b=!0;a.set(e,t),a.set(t,e);for(var _=o;++c-1}var Zv=q$;function W$(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=rC){var u=t?null:tC(e);if(u)return nC(u);o=!1,i=eC,l=new K$}else l=t?[]:s;e:for(;++r0&&n(s)?t>1?t2(s,t-1,n,r,i):pC(i,s):r||(i[i.length]=s)}return i}var n2=t2;function gC(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var yC=gC,vC=yC,bC=vC(),r2=bC,_C=r2,xC=o0;function wC(e,t){return e&&_C(e,t,xC)}var SC=wC,kC=Ii;function $C(e,t){return function(n,r){if(n==null)return n;if(!kC(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++at||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var UC=DC,qu=Kd,qC=Ll,WC=Kv,BC=NC,HC=IC,VC=Ul,YC=UC,GC=ql,QC=Pt;function XC(e,t,n){t.length?t=qu(t,function(a){return QC(a)?function(o){return qC(o,a.length===1?a[0]:a)}:a}):t=[GC];var r=-1;t=qu(t,VC(WC));var i=BC(e,function(a,o,s){var l=qu(t,function(u){return u(a)});return{criteria:l,index:++r,value:a}});return HC(i,function(a,o){return YC(a,o,n)})}var KC=XC;function ZC(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var JC=ZC,eM=JC,xp=Math.max;function tM(e,t,n){return t=xp(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=xp(r.length-t,0),o=Array(a);++i0){if(++t>=fM)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pM=hM,mM=uM,gM=pM,yM=gM(mM),o2=yM,vM=ql,bM=i2,_M=o2;function xM(e,t){return _M(bM(e,t,vM),e+"")}var l0=xM,wM=fo,SM=Ii,kM=Dl,$M=nn;function CM(e,t,n){if(!$M(n))return!1;var r=typeof t;return(r=="number"?SM(n)&&kM(t,n.length):r=="string"&&t in n)?wM(n[t],e):!1}var s2=CM,MM=n2,TM=KC,OM=l0,Sp=s2,EM=OM(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Sp(e,t[0],t[1])?t=[]:n>2&&Sp(t[0],t[1],t[2])&&(t=[t[0]]),TM(e,MM(t,1),[])}),PM=EM;const RM=je(PM);function u0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function l2(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ho(){}var Ua=.7,Bs=1/Ua,ci="\\s*([+-]?\\d+)\\s*",qa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",AM=/^#([0-9a-f]{3,8})$/,NM=new RegExp(`^rgb\\(${ci},${ci},${ci}\\)$`),jM=new RegExp(`^rgb\\(${Kt},${Kt},${Kt}\\)$`),IM=new RegExp(`^rgba\\(${ci},${ci},${ci},${qa}\\)$`),zM=new RegExp(`^rgba\\(${Kt},${Kt},${Kt},${qa}\\)$`),LM=new RegExp(`^hsl\\(${qa},${Kt},${Kt}\\)$`),FM=new RegExp(`^hsla\\(${qa},${Kt},${Kt},${qa}\\)$`),kp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};u0(ho,Wa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:$p,formatHex:$p,formatHex8:DM,formatHsl:UM,formatRgb:Cp,toString:Cp});function $p(){return this.rgb().formatHex()}function DM(){return this.rgb().formatHex8()}function UM(){return u2(this).formatHsl()}function Cp(){return this.rgb().formatRgb()}function Wa(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=AM.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Mp(t):n===3?new lt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Do(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Do(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=NM.exec(e))?new lt(t[1],t[2],t[3],1):(t=jM.exec(e))?new lt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=IM.exec(e))?Do(t[1],t[2],t[3],t[4]):(t=zM.exec(e))?Do(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=LM.exec(e))?Ep(t[1],t[2]/100,t[3]/100,1):(t=FM.exec(e))?Ep(t[1],t[2]/100,t[3]/100,t[4]):kp.hasOwnProperty(e)?Mp(kp[e]):e==="transparent"?new lt(NaN,NaN,NaN,0):null}function Mp(e){return new lt(e>>16&255,e>>8&255,e&255,1)}function Do(e,t,n,r){return r<=0&&(e=t=n=NaN),new lt(e,t,n,r)}function qM(e){return e instanceof ho||(e=Wa(e)),e?(e=e.rgb(),new lt(e.r,e.g,e.b,e.opacity)):new lt}function Ba(e,t,n,r){return arguments.length===1?qM(e):new lt(e,t,n,r??1)}function lt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}u0(lt,Ba,l2(ho,{brighter(e){return e=e==null?Bs:Math.pow(Bs,e),new lt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ua:Math.pow(Ua,e),new lt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new lt(yr(this.r),yr(this.g),yr(this.b),Hs(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:Tp,formatHex:Tp,formatHex8:WM,formatRgb:Op,toString:Op}));function Tp(){return`#${fr(this.r)}${fr(this.g)}${fr(this.b)}`}function WM(){return`#${fr(this.r)}${fr(this.g)}${fr(this.b)}${fr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Op(){const e=Hs(this.opacity);return`${e===1?"rgb(":"rgba("}${yr(this.r)}, ${yr(this.g)}, ${yr(this.b)}${e===1?")":`, ${e})`}`}function Hs(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function yr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fr(e){return e=yr(e),(e<16?"0":"")+e.toString(16)}function Ep(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new zt(e,t,n,r)}function u2(e){if(e instanceof zt)return new zt(e.h,e.s,e.l,e.opacity);if(e instanceof ho||(e=Wa(e)),!e)return new zt;if(e instanceof zt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n0&&l<1?0:o,new zt(o,s,l,e.opacity)}function BM(e,t,n,r){return arguments.length===1?u2(e):new zt(e,t,n,r??1)}function zt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}u0(zt,BM,l2(ho,{brighter(e){return e=e==null?Bs:Math.pow(Bs,e),new zt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ua:Math.pow(Ua,e),new zt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new lt(Wu(e>=240?e-240:e+120,i,r),Wu(e,i,r),Wu(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new zt(Pp(this.h),Uo(this.s),Uo(this.l),Hs(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=Hs(this.opacity);return`${e===1?"hsl(":"hsla("}${Pp(this.h)}, ${Uo(this.s)*100}%, ${Uo(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Pp(e){return e=(e||0)%360,e<0?e+360:e}function Uo(e){return Math.max(0,Math.min(1,e||0))}function Wu(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function HM(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function VM(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r()=>e;function YM(e,t){return function(n){return e+n*t}}function GM(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function QM(e){return(e=+e)==1?f2:function(t,n){return n-t?GM(t,n,e):f0(isNaN(t)?n:t)}}function f2(e,t){var n=t-e;return n?YM(e,n):f0(isNaN(e)?t:e)}const Rp=function e(t){var n=QM(t);function r(i,a){var o=n((i=Ba(i)).r,(a=Ba(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),u=f2(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function XM(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;on&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:dc(r,i)})),n=Bu.lastIndex;return n{for(var n in t)bO(e,n,{get:t[n],enumerable:!0})},Wt={};_O(Wt,{assign:()=>SO,colors:()=>Wn,createStringInterpolator:()=>_0,skipAnimation:()=>S2,to:()=>w2,willAdvance:()=>x0});var p0=mo(),te=e=>po(e,p0),m0=mo();te.write=e=>po(e,m0);var Wl=mo();te.onStart=e=>po(e,Wl);var g0=mo();te.onFrame=e=>po(e,g0);var y0=mo();te.onFinish=e=>po(e,y0);var di=[];te.setTimeout=(e,t)=>{const n=te.now()+t,r=()=>{const a=di.findIndex(o=>o.cancel==r);~a&&di.splice(a,1),Nn-=~a?1:0},i={time:n,handler:e,cancel:r};return di.splice(y2(n),0,i),Nn+=1,v2(),i};var y2=e=>~(~di.findIndex(t=>t.time>e)||~di.length);te.cancel=e=>{Wl.delete(e),g0.delete(e),y0.delete(e),p0.delete(e),m0.delete(e)};te.sync=e=>{pc=!0,te.batchedUpdates(e),pc=!1};te.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,te.onStart(n)}return r.handler=e,r.cancel=()=>{Wl.delete(n),t=null},r};var v0=typeof window<"u"?window.requestAnimationFrame:()=>{};te.use=e=>v0=e;te.now=typeof performance<"u"?()=>performance.now():Date.now;te.batchedUpdates=e=>e();te.catch=console.error;te.frameLoop="always";te.advance=()=>{te.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):_2()};var An=-1,Nn=0,pc=!1;function po(e,t){pc?(t.delete(e),e(0)):(t.add(e),v2())}function v2(){An<0&&(An=0,te.frameLoop!=="demand"&&v0(b2))}function xO(){An=-1}function b2(){~An&&(v0(b2),te.batchedUpdates(_2))}function _2(){const e=An;An=te.now();const t=y2(An);if(t&&(x2(di.splice(0,t),n=>n.handler()),Nn-=t),!Nn){xO();return}Wl.flush(),p0.flush(e?Math.min(64,An-e):16.667),g0.flush(),m0.flush(),y0.flush()}function mo(){let e=new Set,t=e;return{add(n){Nn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Nn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Nn-=t.size,x2(t,r=>r(n)&&e.add(r)),Nn+=e.size,t=e)}}}function x2(e,t){e.forEach(n=>{try{t(n)}catch(r){te.catch(r)}})}function mc(){}var wO=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),L={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function on(e,t){if(L.arr(e)){if(!L.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function Jt(e,t,n){if(L.arr(e)){for(let r=0;rL.und(e)?[]:L.arr(e)?e:[e];function _a(e,t){if(e.size){const n=Array.from(e);e.clear(),ee(n,t)}}var fa=(e,...t)=>_a(e,n=>n(...t)),b0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),_0,w2,Wn=null,S2=!1,x0=mc,SO=e=>{e.to&&(w2=e.to),e.now&&(te.now=e.now),e.colors!==void 0&&(Wn=e.colors),e.skipAnimation!=null&&(S2=e.skipAnimation),e.createStringInterpolator&&(_0=e.createStringInterpolator),e.requestAnimationFrame&&te.use(e.requestAnimationFrame),e.batchedUpdates&&(te.batchedUpdates=e.batchedUpdates),e.willAdvance&&(x0=e.willAdvance),e.frameLoop&&(te.frameLoop=e.frameLoop)},xa=new Set,kt=[],Gu=[],Ys=0,Bl={get idle(){return!xa.size&&!kt.length},start(e){Ys>e.priority?(xa.add(e),te.onStart(kO)):(k2(e),te(gc))},advance:gc,sort(e){if(Ys)te.onFrame(()=>Bl.sort(e));else{const t=kt.indexOf(e);~t&&(kt.splice(t,1),$2(e))}},clear(){kt=[],xa.clear()}};function kO(){xa.forEach(k2),xa.clear(),te(gc)}function k2(e){kt.includes(e)||$2(e)}function $2(e){kt.splice($O(kt,t=>t.priority>e.priority),0,e)}function gc(e){const t=Gu;for(let n=0;n0}function $O(e,t){const n=e.findIndex(t);return n<0?e.length:n}var CO=(e,t,n)=>Math.min(Math.max(n,e),t),MO={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Lt="[-+]?\\d*\\.?\\d+",Gs=Lt+"%";function Hl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var TO=new RegExp("rgb"+Hl(Lt,Lt,Lt)),OO=new RegExp("rgba"+Hl(Lt,Lt,Lt,Lt)),EO=new RegExp("hsl"+Hl(Lt,Gs,Gs)),PO=new RegExp("hsla"+Hl(Lt,Gs,Gs,Lt)),RO=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,AO=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,NO=/^#([0-9a-fA-F]{6})$/,jO=/^#([0-9a-fA-F]{8})$/;function IO(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=NO.exec(e))?parseInt(t[1]+"ff",16)>>>0:Wn&&Wn[e]!==void 0?Wn[e]:(t=TO.exec(e))?(Dr(t[1])<<24|Dr(t[2])<<16|Dr(t[3])<<8|255)>>>0:(t=OO.exec(e))?(Dr(t[1])<<24|Dr(t[2])<<16|Dr(t[3])<<8|Up(t[4]))>>>0:(t=RO.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=jO.exec(e))?parseInt(t[1],16)>>>0:(t=AO.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=EO.exec(e))?(Fp(Dp(t[1]),qo(t[2]),qo(t[3]))|255)>>>0:(t=PO.exec(e))?(Fp(Dp(t[1]),qo(t[2]),qo(t[3]))|Up(t[4]))>>>0:null}function Qu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Fp(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=Qu(i,r,e+1/3),o=Qu(i,r,e),s=Qu(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Dr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Dp(e){return(parseFloat(e)%360+360)%360/360}function Up(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function qo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function qp(e){let t=IO(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${a})`}var Ha=(e,t,n)=>{if(L.fun(e))return e;if(L.arr(e))return Ha({range:e,output:t,extrapolate:n});if(L.str(e.output[0]))return _0(e);const r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const f=LO(u,a);return zO(u,a[f],a[f+1],i[f],i[f+1],l,o,s,r.map)}};function zO(e,t,n,r,i,a,o,s,l){let u=l?l(e):e;if(un){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=a(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function LO(e,t){for(var n=1;n=e);++n);return n-1}var FO=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return CO(0,1,i/e)},Qs=1.70158,Wo=Qs*1.525,Wp=Qs+1,Bp=2*Math.PI/3,Hp=2*Math.PI/4.5,Bo=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,DO={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Wp*e*e*e-Qs*e*e,easeOutBack:e=>1+Wp*Math.pow(e-1,3)+Qs*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Wo+1)*2*e-Wo)/2:(Math.pow(2*e-2,2)*((Wo+1)*(e*2-2)+Wo)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Bp),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Bp)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Hp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Hp)/2+1,easeInBounce:e=>1-Bo(1-e),easeOutBounce:Bo,easeInOutBounce:e=>e<.5?(1-Bo(1-2*e))/2:(1+Bo(2*e-1))/2,steps:FO},Va=Symbol.for("FluidValue.get"),Si=Symbol.for("FluidValue.observers"),St=e=>!!(e&&e[Va]),it=e=>e&&e[Va]?e[Va]():e,Vp=e=>e[Si]||null;function UO(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ya(e,t){const n=e[Si];n&&n.forEach(r=>{UO(r,t)})}var C2=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");qO(this,e)}},qO=(e,t)=>M2(e,Va,t);function Li(e,t){if(e[Va]){let n=e[Si];n||M2(e,Si,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ga(e,t){const n=e[Si];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Si]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var M2=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),cs=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,WO=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Yp=new RegExp(`(${cs.source})(%|[a-z]+)`,"i"),BO=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Vl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,T2=e=>{const[t,n]=HO(e);if(!t||b0())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&Vl.test(n))return T2(n);if(n)return n}return e},HO=e=>{const t=Vl.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Xu,VO=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,O2=e=>{Xu||(Xu=Wn?new RegExp(`(${Object.keys(Wn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>it(a).replace(Vl,T2).replace(WO,qp).replace(Xu,qp)),n=t.map(a=>a.match(cs).map(Number)),i=n[0].map((a,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(a=>Ha({...e,output:a}));return a=>{const o=!Yp.test(t[0])&&t.find(l=>Yp.test(l))?.replace(cs,"");let s=0;return t[0].replace(cs,()=>`${i[s++](a)}${o||""}`).replace(BO,VO)}},w0="react-spring: ",E2=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${w0}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},YO=E2(console.warn);function GO(){YO(`${w0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var QO=E2(console.warn);function XO(){QO(`${w0}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Yl(e){return L.str(e)&&(e[0]=="#"||/\d/.test(e)||!b0()&&Vl.test(e)||e in(Wn||{}))}var cr=b0()?C.useEffect:C.useLayoutEffect,KO=()=>{const e=C.useRef(!1);return cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function S0(){const e=C.useState()[1],t=KO();return()=>{t.current&&e(Math.random())}}function ZO(e,t){const[n]=C.useState(()=>({inputs:t,result:e()})),r=C.useRef(),i=r.current;let a=i;return a?t&&a.inputs&&JO(t,a.inputs)||(a={inputs:t,result:e()}):a=n,C.useEffect(()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}function JO(e,t){if(e.length!==t.length)return!1;for(let n=0;nC.useEffect(e,eE),eE=[];function yc(e){const t=C.useRef();return C.useEffect(()=>{t.current=e}),t.current}var Qa=Symbol.for("Animated:node"),tE=e=>!!e&&e[Qa]===e,Vt=e=>e&&e[Qa],$0=(e,t)=>wO(e,Qa,t),Gl=e=>e&&e[Qa]&&e[Qa].getPayload(),P2=class{constructor(){$0(this,this)}getPayload(){return this.payload||[]}},go=class extends P2{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,L.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new go(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return L.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,L.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Xa=class extends go{constructor(e){super(0),this._string=null,this._toString=Ha({output:[e,e]})}static create(e){return new Xa(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(L.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Ha({output:[this.getValue(),e]})),this._value=0,super.reset()}},Xs={dependencies:null},Ql=class extends P2{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Jt(this.source,(n,r)=>{tE(n)?t[r]=n.getValue(e):St(n)?t[r]=it(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ee(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Jt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Xs.dependencies&&St(e)&&Xs.dependencies.add(e);const t=Gl(e);t&&ee(t,n=>this.add(n))}},R2=class extends Ql{constructor(e){super(e)}static create(e){return new R2(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(nE)),!0)}};function nE(e){return(Yl(e)?Xa:go).create(e)}function vc(e){const t=Vt(e);return t?t.constructor:L.arr(e)?R2:Yl(e)?Xa:go}var Gp=(e,t)=>{const n=!L.fun(e)||e.prototype&&e.prototype.isReactComponent;return C.forwardRef((r,i)=>{const a=C.useRef(null),o=n&&C.useCallback(g=>{a.current=aE(i,g)},[i]),[s,l]=iE(r,t),u=S0(),f=()=>{const g=a.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&u()},c=new rE(f,l),d=C.useRef();cr(()=>(d.current=c,ee(l,g=>Li(g,c)),()=>{d.current&&(ee(d.current.deps,g=>Ga(g,d.current)),te.cancel(d.current.update))})),C.useEffect(f,[]),k0(()=>()=>{const g=d.current;ee(g.deps,b=>Ga(b,g))});const m=t.getComponentProps(s.getValue());return C.createElement(e,{...m,ref:o})})},rE=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&te.write(this.update)}};function iE(e,t){const n=new Set;return Xs.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ql(e),Xs.dependencies=null,[e,n]}function aE(e,t){return e&&(L.fun(e)?e(t):e.current=t),t}var Qp=Symbol.for("AnimatedComponent"),oE=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Ql(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=o=>{const s=Xp(o)||"Anonymous";return L.str(o)?o=a[o]||(a[o]=Gp(o,i)):o=o[Qp]||(o[Qp]=Gp(o,i)),o.displayName=`Animated(${s})`,o};return Jt(e,(o,s)=>{L.arr(e)&&(s=Xp(o)),a[s]=a(o)}),{animated:a}},Xp=e=>L.str(e)?e:e&&L.str(e.displayName)?e.displayName:L.fun(e)&&e.name||null;function at(e,...t){return L.fun(e)?e(...t):e}var wa=(e,t)=>e===!0||!!(t&&e&&(L.fun(e)?e(t):Je(e).includes(t))),A2=(e,t)=>L.obj(e)?t&&e[t]:e,N2=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,sE=e=>e,Xl=(e,t=sE)=>{let n=lE;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const a=t(e[i],i);L.und(a)||(r[i]=a)}return r},lE=["config","onProps","onStart","onChange","onPause","onResume","onRest"],uE={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function fE(e){const t={};let n=0;if(Jt(e,(r,i)=>{uE[i]||(t[i]=r,n++)}),n)return t}function C0(e){const t=fE(e);if(t){const n={to:t};return Jt(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Ka(e){return e=it(e),L.arr(e)?e.map(Ka):Yl(e)?Wt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function j2(e){for(const t in e)return!0;return!1}function bc(e){return L.fun(e)||L.arr(e)&&L.obj(e[0])}function _c(e,t){e.ref?.delete(e),t?.delete(e)}function I2(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var M0={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},xc={...M0.default,mass:1,damping:1,easing:DO.linear,clamp:!1},cE=class{constructor(){this.velocity=0,Object.assign(this,xc)}};function dE(e,t,n){n&&(n={...n},Kp(n,t),t={...n,...t}),Kp(e,t),Object.assign(e,t);for(const o in xc)e[o]==null&&(e[o]=xc[o]);let{frequency:r,damping:i}=e;const{mass:a}=e;return L.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r),e}function Kp(e,t){if(!L.und(t.decay))e.duration=void 0;else{const n=!L.und(t.tension)||!L.und(t.friction);(n||!L.und(t.frequency)||!L.und(t.damping)||!L.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Zp=[],hE=class{constructor(){this.changed=!1,this.values=Zp,this.toValues=null,this.fromValues=Zp,this.config=new cE,this.immediate=!1}};function z2(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,u,f=wa(n.cancel??r?.cancel,t);if(f)m();else{L.und(n.pause)||(i.paused=wa(n.pause,t));let g=r?.pause;g!==!0&&(g=i.paused||wa(g,t)),l=at(n.delay||0,t),g?(i.resumeQueue.add(d),a.pause()):(a.resume(),d())}function c(){i.resumeQueue.add(d),i.timeouts.delete(u),u.cancel(),l=u.time-te.now()}function d(){l>0&&!Wt.skipAnimation?(i.delayed=!0,u=te.setTimeout(m,l),i.pauseQueue.add(c),i.timeouts.add(u)):m()}function m(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(c),i.timeouts.delete(u),e<=(i.cancelId||0)&&(f=!0);try{a.start({...n,callId:e,cancel:f},o)}catch(g){s(g)}}})}var T0=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?hi(e.get()):t.every(n=>n.noop)?L2(e.get()):It(e.get(),t.every(n=>n.finished)),L2=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),It=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),hi=e=>({value:e,cancelled:!0,finished:!1});function F2(e,t,n,r){const{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return!a&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=Xl(t,(_,y)=>y==="onRest"?void 0:_);let f,c;const d=new Promise((_,y)=>(f=_,c=y)),m=_=>{const y=i<=(n.cancelId||0)&&hi(r)||i!==n.asyncId&&It(r,!1);if(y)throw _.result=y,c(_),_},g=(_,y)=>{const p=new Jp,v=new em;return(async()=>{if(Wt.skipAnimation)throw Za(n),v.result=It(r,!1),c(v),v;m(p);const x=L.obj(_)?{..._}:{...y,to:_};x.parentId=i,Jt(u,(S,O)=>{L.und(x[O])&&(x[O]=S)});const k=await r.start(x);return m(p),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),k})()};let b;if(Wt.skipAnimation)return Za(n),It(r,!1);try{let _;L.arr(e)?_=(async y=>{for(const p of y)await g(p)})(e):_=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([_.then(f),d]),b=It(r.get(),!0,!1)}catch(_){if(_ instanceof Jp)b=_.result;else if(_ instanceof em)b=_.result;else throw _}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return L.fun(o)&&te.batchedUpdates(()=>{o(b,r,r.item)}),b})()}function Za(e,t){_a(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Jp=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},em=class extends Error{constructor(){super("SkipAnimationSignal")}},wc=e=>e instanceof O0,pE=1,O0=class extends C2{constructor(){super(...arguments),this.id=pE++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Vt(this);return e&&e.getValue()}to(...e){return Wt.to(this,e)}interpolate(...e){return GO(),Wt.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ya(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Bl.sort(this),Ya(this,{type:"priority",parent:this,priority:e})}},kr=Symbol.for("SpringPhase"),D2=1,Sc=2,kc=4,Ku=e=>(e[kr]&D2)>0,Cn=e=>(e[kr]&Sc)>0,Ji=e=>(e[kr]&kc)>0,tm=(e,t)=>t?e[kr]|=Sc|D2:e[kr]&=~Sc,nm=(e,t)=>t?e[kr]|=kc:e[kr]&=~kc,mE=class extends O0{constructor(e,t){if(super(),this.animation=new hE,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!L.und(e)||!L.und(t)){const n=L.obj(e)?{...e}:{...t,from:e};L.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Cn(this)||this._state.asyncTo)||Ji(this)}get goal(){return it(this.animation.to)}get velocity(){const e=Vt(this);return e instanceof go?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Ku(this)}get isAnimating(){return Cn(this)}get isPaused(){return Ji(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,o=Gl(r.to);!o&&St(r.to)&&(i=Je(it(r.to))),r.values.forEach((u,f)=>{if(u.done)return;const c=u.constructor==Xa?1:o?o[f].lastPosition:i[f];let d=r.immediate,m=c;if(!d){if(m=u.lastPosition,a.tension<=0){u.done=!0;return}let g=u.elapsedTime+=e;const b=r.fromValues[f],_=u.v0!=null?u.v0:u.v0=L.arr(a.velocity)?a.velocity[f]:a.velocity;let y;const p=a.precision||(b==c?.005:Math.min(1,Math.abs(c-b)*.001));if(L.und(a.duration))if(a.decay){const v=a.decay===!0?.998:a.decay,x=Math.exp(-(1-v)*g);m=b+_/(1-v)*(1-x),d=Math.abs(u.lastPosition-m)<=p,y=_*x}else{y=u.lastVelocity==null?_:u.lastVelocity;const v=a.restVelocity||p/10,x=a.clamp?0:a.bounce,k=!L.und(x),S=b==c?u.v0>0:bv,!(!O&&(d=Math.abs(c-m)<=p,d)));++w){k&&(M=m==c||m>c==S,M&&(y=-y*x,m=c));const I=-a.tension*1e-6*(m-c),R=-a.friction*.001*y,j=(I+R)/a.mass;y=y+j*A,m=m+y*A}}else{let v=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,u.durationProgress>0&&(u.elapsedTime=a.duration*u.durationProgress,g=u.elapsedTime+=e)),v=(a.progress||0)+g/this._memoizedDuration,v=v>1?1:v<0?0:v,u.durationProgress=v),m=b+a.easing(v)*(c-b),y=(m-u.lastPosition)/e,d=v==1}u.lastVelocity=y,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),d=!0)}o&&!o[f].done&&(d=!1),d?u.done=!0:t=!1,u.setValue(m,a.round)&&(n=!0)});const s=Vt(this),l=s.getValue();if(t){const u=it(r.to);(l!==u||n)&&!a.decay?(s.setValue(u),this._onChange(u)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return te.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Cn(this)){const{to:e,config:t}=this.animation;te.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return L.und(e)?(n=this.queue||[],this.queue=[]):n=[L.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>T0(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Za(this._state,e&&this._lastCallId),te.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=L.obj(n)?n[t]:n,(n==null||bc(n))&&(n=void 0),r=L.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Ku(this)||(e.reverse&&([n,r]=[r,n]),r=it(r),L.und(r)?Vt(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Xl(e,(o,s)=>/^on/.test(s)?A2(o,n):o)),im(this,e,"onProps"),ta(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return z2(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{Ji(this)||(nm(this,!0),fa(a.pauseQueue),ta(this,"onPause",It(this,ea(this,this.animation.to)),this))},resume:()=>{Ji(this)&&(nm(this,!1),Cn(this)&&this._resume(),fa(a.resumeQueue),ta(this,"onResume",It(this,ea(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=U2(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(hi(this));const r=!L.und(e.to),i=!L.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(hi(this));const{key:a,defaultProps:o,animation:s}=this,{to:l,from:u}=s;let{to:f=l,from:c=u}=e;i&&!r&&(!t.default||L.und(f))&&(f=c),t.reverse&&([f,c]=[c,f]);const d=!on(c,u);d&&(s.from=c),c=it(c);const m=!on(f,l);m&&this._focus(f);const g=bc(t.to),{config:b}=s,{decay:_,velocity:y}=b;(r||i)&&(b.velocity=0),t.config&&!g&&dE(b,at(t.config,a),t.config!==o.config?at(o.config,a):void 0);let p=Vt(this);if(!p||L.und(f))return n(It(this,!0));const v=L.und(t.reset)?i&&!t.default:!L.und(c)&&wa(t.reset,a),x=v?c:this.get(),k=Ka(f),S=L.num(k)||L.arr(k)||Yl(k),O=!g&&(!S||wa(o.immediate||t.immediate,a));if(m){const w=vc(f);if(w!==p.constructor)if(O)p=this._set(k);else throw Error(`Cannot animate between ${p.constructor.name} and ${w.name}, as the "to" prop suggests`)}const M=p.constructor;let A=St(f),$=!1;if(!A){const w=v||!Ku(this)&&d;(m||w)&&($=on(Ka(x),k),A=!$),(!on(s.immediate,O)&&!O||!on(b.decay,_)||!on(b.velocity,y))&&(A=!0)}if($&&Cn(this)&&(s.changed&&!v?A=!0:A||this._stop(l)),!g&&((A||St(l))&&(s.values=p.getPayload(),s.toValues=St(f)?null:M==Xa?[1]:Je(k)),s.immediate!=O&&(s.immediate=O,!O&&!v&&this._set(l)),A)){const{onRest:w}=s;ee(yE,R=>im(this,t,R));const I=It(this,ea(this,l));fa(this._pendingCalls,I),this._pendingCalls.add(n),s.changed&&te.batchedUpdates(()=>{s.changed=!v,w?.(I,this),v?at(o.onRest,I):s.onStart?.(I,this)})}v&&this._set(x),g?n(F2(t.to,t,this._state,this)):A?this._start():Cn(this)&&!m?this._pendingCalls.add(n):n(L2(x))}_focus(e){const t=this.animation;e!==t.to&&(Vp(this)&&this._detach(),t.to=e,Vp(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;St(t)&&(Li(t,this),wc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;St(e)&&Ga(e,this)}_set(e,t=!0){const n=it(e);if(!L.und(n)){const r=Vt(this);if(!r||!on(n,r.getValue())){const i=vc(n);!r||r.constructor!=i?$0(this,i.create(n)):r.setValue(n),r&&te.batchedUpdates(()=>{this._onChange(n,t)})}}return Vt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ta(this,"onStart",It(this,ea(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),at(this.animation.onChange,e,this)),at(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Vt(this).reset(it(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Cn(this)||(tm(this,!0),Ji(this)||this._resume())}_resume(){Wt.skipAnimation?this.finish():Bl.start(this)}_stop(e,t){if(Cn(this)){tm(this,!1);const n=this.animation;ee(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ya(this,{type:"idle",parent:this});const r=t?hi(this.get()):It(this.get(),ea(this,e??n.to));fa(this._pendingCalls,r),n.changed&&(n.changed=!1,ta(this,"onRest",r,this))}}};function ea(e,t){const n=Ka(t),r=Ka(e.get());return on(r,n)}function U2(e,t=e.loop,n=e.to){const r=at(t);if(r){const i=r!==!0&&C0(r),a=(i||e).reverse,o=!i||i.reset;return Ja({...e,loop:t,default:!1,pause:void 0,to:!a||bc(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Ja(e){const{to:t,from:n}=e=C0(e),r=new Set;return L.obj(t)&&rm(t,r),L.obj(n)&&rm(n,r),e.keys=r.size?Array.from(r):null,e}function gE(e){const t=Ja(e);return L.und(t.default)&&(t.default=Xl(t)),t}function rm(e,t){Jt(e,(n,r)=>n!=null&&t.add(r))}var yE=["onStart","onRest","onChange","onPause","onResume"];function im(e,t,n){e.animation[n]=t[n]!==N2(t,n)?A2(t[n],e.key):void 0}function ta(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var vE=["onStart","onChange","onRest"],bE=1,q2=class{constructor(e,t){this.id=bE++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];L.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Ja(e)),this}start(e){let{queue:t}=this;return e?t=Je(e).map(Ja):this.queue=[],this._flush?this._flush(this,t):(Y2(this,t),$c(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ee(Je(t),r=>n[r].stop(!!e))}else Za(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(L.und(e))this.start({pause:!0});else{const t=this.springs;ee(Je(e),n=>t[n].pause())}return this}resume(e){if(L.und(e))this.start({pause:!1});else{const t=this.springs;ee(Je(e),n=>t[n].resume())}return this}each(e){Jt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,_a(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&_a(t,([s,l])=>{l.value=o,s(l,this,this._item)}),a&&(this._started=!1,_a(n,([s,l])=>{l.value=o,s(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;te.onFrame(this._onFrame)}};function $c(e,t){return Promise.all(t.map(n=>W2(e,n))).then(n=>T0(e,n))}async function W2(e,t,n){const{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,u=L.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);const f=L.arr(i)||L.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):ee(vE,b=>{const _=t[b];if(L.fun(_)){const y=e._events[b];t[b]=({finished:p,cancelled:v})=>{const x=y.get(_);x?(p||(x.finished=!1),v&&(x.cancelled=!0)):y.set(_,{value:null,finished:p||!1,cancelled:v||!1})},u&&(u[b]=t[b])}});const c=e._state;t.pause===!c.paused?(c.paused=t.pause,fa(t.pause?c.pauseQueue:c.resumeQueue)):c.paused&&(t.pause=!0);const d=(r||Object.keys(e.springs)).map(b=>e.springs[b].start(t)),m=t.cancel===!0||N2(t,"cancel")===!0;(f||m&&c.asyncId)&&d.push(z2(++e._lastAsyncId,{props:t,state:c,actions:{pause:mc,resume:mc,start(b,_){m?(Za(c,e._lastAsyncId),_(hi(e))):(b.onRest=s,_(F2(f,b,c,e)))}}})),c.paused&&await new Promise(b=>{c.resumeQueue.add(b)});const g=T0(e,await Promise.all(d));if(o&&g.finished&&!(n&&g.noop)){const b=U2(t,o,i);if(b)return Y2(e,[b]),W2(e,b,!0)}return l&&te.batchedUpdates(()=>l(g,e,e.item)),g}function Cc(e,t){const n={...e.springs};return t&&ee(Je(t),r=>{L.und(r.keys)&&(r=Ja(r)),L.obj(r.to)||(r={...r,to:void 0}),V2(n,r,i=>H2(i))}),B2(e,n),n}function B2(e,t){Jt(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Li(n,e))})}function H2(e,t){const n=new mE;return n.key=e,t&&Li(n,t),n}function V2(e,t,n){t.keys&&ee(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Y2(e,t){ee(t,n=>{V2(e.springs,n,r=>H2(r,e))})}var yo=({children:e,...t})=>{const n=C.useContext(Ks),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=ZO(()=>({pause:r,immediate:i}),[r,i]);const{Provider:a}=Ks;return C.createElement(a,{value:t},e)},Ks=_E(yo,{});yo.Provider=Ks.Provider;yo.Consumer=Ks.Consumer;function _E(e,t){return Object.assign(e,C.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var G2=()=>{const e=[],t=function(r){XO();const i=[];return ee(e,(a,o)=>{if(L.und(r))i.push(a.start());else{const s=n(r,a,o);s&&i.push(a.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return ee(e,r=>r.pause(...arguments)),this},t.resume=function(){return ee(e,r=>r.resume(...arguments)),this},t.set=function(r){ee(e,(i,a)=>{const o=L.fun(r)?r(a,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return ee(e,(a,o)=>{if(L.und(r))i.push(a.start());else{const s=this._getProps(r,a,o);s&&i.push(a.start(s))}}),i},t.stop=function(){return ee(e,r=>r.stop(...arguments)),this},t.update=function(r){return ee(e,(i,a)=>i.update(this._getProps(r,i,a))),this};const n=function(r,i,a){return L.fun(r)?r(a,i):r};return t._getProps=n,t};function xE(e,t,n){const r=L.fun(t)&&t;r&&!n&&(n=[]);const i=C.useMemo(()=>r||arguments.length==3?G2():void 0,[]),a=C.useRef(0),o=S0(),s=C.useMemo(()=>({ctrls:[],queue:[],flush(y,p){const v=Cc(y,p);return a.current>0&&!s.queue.length&&!Object.keys(v).some(k=>!y.springs[k])?$c(y,p):new Promise(k=>{B2(y,v),s.queue.push(()=>{k($c(y,p))}),o()})}}),[]),l=C.useRef([...s.ctrls]),u=[],f=yc(e)||0;C.useMemo(()=>{ee(l.current.slice(e,f),y=>{_c(y,i),y.stop(!0)}),l.current.length=e,c(f,e)},[e]),C.useMemo(()=>{c(0,Math.min(f,e))},n);function c(y,p){for(let v=y;vCc(y,u[p])),m=C.useContext(yo),g=yc(m),b=m!==g&&j2(m);cr(()=>{a.current++,s.ctrls=l.current;const{queue:y}=s;y.length&&(s.queue=[],ee(y,p=>p())),ee(l.current,(p,v)=>{i?.add(p),b&&p.start({default:m});const x=u[v];x&&(I2(p,x.ref),p.ref?p.queue.push(x):p.start(x))})}),k0(()=>()=>{ee(s.ctrls,y=>y.stop(!0))});const _=d.map(y=>({...y}));return i?[_,i]:_}function Fi(e,t){const n=L.fun(e),[[r],i]=xE(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}function Q2(e,t,n){const r=L.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:f,config:c}=r?r():t,d=C.useMemo(()=>r||arguments.length==3?G2():void 0,[]),m=Je(e),g=[],b=C.useRef(null),_=i?null:b.current;cr(()=>{b.current=g}),k0(()=>(ee(g,j=>{d?.add(j.ctrl),j.ctrl.ref=d}),()=>{ee(b.current,j=>{j.expired&&clearTimeout(j.expirationId),_c(j.ctrl,d),j.ctrl.stop(!0)})}));const y=SE(m,r?r():t,_),p=i&&b.current||[];cr(()=>ee(p,({ctrl:j,item:z,key:B})=>{_c(j,d),at(u,z,B)}));const v=[];if(_&&ee(_,(j,z)=>{j.expired?(clearTimeout(j.expirationId),p.push(j)):(z=v[z]=y.indexOf(j.key),~z&&(g[z]=j))}),ee(m,(j,z)=>{g[z]||(g[z]={key:y[z],item:j,phase:"mount",ctrl:new q2},g[z].ctrl.item=j)}),v.length){let j=-1;const{leave:z}=r?r():t;ee(v,(B,D)=>{const T=_[D];~B?(j=g.indexOf(T),g[j]={...T,item:m[B]}):z&&g.splice(++j,0,T)})}L.fun(a)&&g.sort((j,z)=>a(j.item,z.item));let x=-o;const k=S0(),S=Xl(t),O=new Map,M=C.useRef(new Map),A=C.useRef(!1);ee(g,(j,z)=>{const B=j.key,D=j.phase,T=r?r():t;let P,U;const V=at(T.delay||0,B);if(D=="mount")P=T.enter,U="enter";else{const Q=y.indexOf(B)<0;if(D!="leave")if(Q)P=T.leave,U="leave";else if(P=T.update)U="update";else return;else if(!Q)P=T.enter,U="enter";else return}if(P=at(P,j.item,z),P=L.obj(P)?C0(P):{to:P},!P.config){const Q=c||S.config;P.config=at(Q,j.item,z,U)}x+=o;const G={...S,delay:V+x,ref:f,immediate:T.immediate,reset:!1,...P};if(U=="enter"&&L.und(G.from)){const Q=r?r():t,K=L.und(Q.initial)||_?Q.from:Q.initial;G.from=at(K,j.item,z)}const{onResolve:ce}=G;G.onResolve=Q=>{at(ce,Q);const K=b.current,Z=K.find(le=>le.key===B);if(Z&&!(Q.cancelled&&Z.phase!="update")&&Z.ctrl.idle){const le=K.every(q=>q.ctrl.idle);if(Z.phase=="leave"){const q=at(s,Z.item);if(q!==!1){const W=q===!0?0:q;if(Z.expired=!0,!le&&W>0){W<=2147483647&&(Z.expirationId=setTimeout(k,W));return}}}le&&K.some(q=>q.expired)&&(M.current.delete(Z),l&&(A.current=!0),k())}};const re=Cc(j.ctrl,G);U==="leave"&&l?M.current.set(j,{phase:U,springs:re,payload:G}):O.set(j,{phase:U,springs:re,payload:G})});const $=C.useContext(yo),w=yc($),I=$!==w&&j2($);cr(()=>{I&&ee(g,j=>{j.ctrl.start({default:$})})},[$]),ee(O,(j,z)=>{if(M.current.size){const B=g.findIndex(D=>D.key===z.key);g.splice(B,1)}}),cr(()=>{ee(M.current.size?M.current:O,({phase:j,payload:z},B)=>{const{ctrl:D}=B;B.phase=j,d?.add(D),I&&j=="enter"&&D.start({default:$}),z&&(I2(D,z.ref),(D.ref||d)&&!A.current?D.update(z):(D.start(z),A.current&&(A.current=!1)))})},i?void 0:n);const R=j=>C.createElement(C.Fragment,null,g.map((z,B)=>{const{springs:D}=O.get(z)||z.ctrl,T=j({...D},z.item,z,B);return T&&T.type?C.createElement(T.type,{...T.props,key:L.str(z.key)||L.num(z.key)?z.key:z.ctrl.id,ref:T.ref}):T}));return d?[R,d]:R}var wE=1;function SE(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(a=>{const o=r&&r.find(s=>s.item===a&&s.phase!=="leave"&&!i.has(s));return o?(i.add(o),o.key):wE++})}return L.und(n)?e:L.fun(n)?e.map(n):Je(n)}var X2=class extends O0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ha(...t);const n=this._get(),r=vc(n);$0(this,r.create(n))}advance(e){const t=this._get(),n=this.get();on(t,n)||(Vt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&am(this._active)&&Zu(this)}_get(){const e=L.arr(this.source)?this.source.map(it):Je(it(this.source));return this.calc(...e)}_start(){this.idle&&!am(this._active)&&(this.idle=!1,ee(Gl(this),e=>{e.done=!1}),Wt.skipAnimation?(te.batchedUpdates(()=>this.advance()),Zu(this)):Bl.start(this))}_attach(){let e=1;ee(Je(this.source),t=>{St(t)&&Li(t,this),wc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ee(Je(this.source),e=>{St(e)&&Ga(e,this)}),this._active.clear(),Zu(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Je(this.source).reduce((t,n)=>Math.max(t,(wc(n)?n.priority:0)+1),0))}};function kE(e){return e.idle!==!1}function am(e){return!e.size||Array.from(e).every(kE)}function Zu(e){e.idle||(e.idle=!0,ee(Gl(e),t=>{t.done=!0}),Ya(e,{type:"idle",parent:e}))}var $E=(e,...t)=>new X2(e,t);Wt.assign({createStringInterpolator:O2,to:(e,t)=>new X2(e,t)});var K2=/^--/;function CE(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!K2.test(e)&&!(Sa.hasOwnProperty(e)&&Sa[e])?t+"px":(""+t).trim()}var om={};function ME(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:a,scrollLeft:o,viewBox:s,...l}=t,u=Object.values(l),f=Object.keys(l).map(c=>n||e.hasAttribute(c)?c:om[c]||(om[c]=c.replace(/([A-Z])/g,d=>"-"+d.toLowerCase())));i!==void 0&&(e.textContent=i);for(const c in r)if(r.hasOwnProperty(c)){const d=CE(c,r[c]);K2.test(c)?e.style.setProperty(c,d):e.style[c]=d}f.forEach((c,d)=>{e.setAttribute(c,u[d])}),a!==void 0&&(e.scrollTop=a),o!==void 0&&(e.scrollLeft=o),s!==void 0&&e.setAttribute("viewBox",s)}var Sa={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},TE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),OE=["Webkit","Ms","Moz","O"];Sa=Object.keys(Sa).reduce((e,t)=>(OE.forEach(n=>e[TE(n,t)]=e[t]),e),Sa);var EE=/^(matrix|translate|scale|rotate|skew)/,PE=/^(translate)/,RE=/^(rotate|skew)/,Ju=(e,t)=>L.num(e)&&e!==0?e+t:e,ds=(e,t)=>L.arr(e)?e.every(n=>ds(n,t)):L.num(e)?e===t:parseFloat(e)===t,AE=class extends Ql{constructor({x:e,y:t,z:n,...r}){const i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(o=>[`translate3d(${o.map(s=>Ju(s,"px")).join(",")})`,ds(o,0)])),Jt(r,(o,s)=>{if(s==="transform")i.push([o||""]),a.push(l=>[l,l===""]);else if(EE.test(s)){if(delete r[s],L.und(o))return;const l=PE.test(s)?"px":RE.test(s)?"deg":"";i.push(Je(o)),a.push(s==="rotate3d"?([u,f,c,d])=>[`rotate3d(${u},${f},${c},${Ju(d,l)})`,ds(d,0)]:u=>[`${s}(${u.map(f=>Ju(f,l)).join(",")})`,ds(u,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new NE(i,a)),super(r)}},NE=class extends C2{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return ee(this.inputs,(n,r)=>{const i=it(n[0]),[a,o]=this.transforms[r](L.arr(i)?i:n.map(it));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&ee(this.inputs,t=>ee(t,n=>St(n)&&Li(n,this)))}observerRemoved(e){e==0&&ee(this.inputs,t=>ee(t,n=>St(n)&&Ga(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ya(this,e)}},jE=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Wt.assign({batchedUpdates:Ev.unstable_batchedUpdates,createStringInterpolator:O2,colors:MO});var IE=oE(jE,{applyAnimatedValues:ME,createAnimatedStyle:e=>new AE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ut=IE.animated;function $r(){return $r=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&c.height>0,_=Math.round(n[0]),y=Math.round(n[1]);b&&(r==="top"?(_-=c.width/2,y-=c.height+14):r==="right"?(_+=14,y-=c.height/2):r==="bottom"?(_-=c.width/2,y+=14):r==="left"?(_-=c.width+14,y-=c.height/2):r==="center"&&(_-=c.width/2,y-=c.height/2),m={transform:sm(_,y)},d.current||(g=!0),d.current=[_,y]);var p=Fi({to:m,config:l,immediate:!s||g}),v=$r({},zE,a.tooltip,{transform:(t=p.transform)!=null?t:sm(_,y)});return E.jsx(Ut.div,{ref:f,style:v,children:i})});Z2.displayName="TooltipWrapper";var J2=C.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return E.jsx("span",{style:$r({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),LE=C.memo(function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,l=e.renderContent,u=Xe(),f=Bc(i);if(typeof l=="function")t=l();else{var c=r;f!==void 0&&c!==void 0&&(c=f(c)),t=E.jsxs("div",{style:u.tooltip.basic,children:[o&&E.jsx(J2,{color:s,style:u.tooltip.chip}),c!==void 0?E.jsxs("span",{children:[n,": ",E.jsx("strong",{children:""+c})]}):n]})}return E.jsx("div",{style:u.tooltip.container,children:t})}),FE={width:"100%",borderCollapse:"collapse"},eb=C.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,a=e.renderContent,o=Xe();return i.length?(t=typeof a=="function"?a():E.jsxs("div",{children:[n&&n,E.jsx("table",{style:$r({},FE,o.tooltip.table),children:E.jsx("tbody",{children:i.map(function(s,l){return E.jsx("tr",{children:s.map(function(u,f){return E.jsx("td",{style:o.tooltip.tableCell,children:u},f)})},l)})})})]}),E.jsx("div",{style:o.tooltip.container,children:t})):null});eb.displayName="TableTooltip";var Mc=C.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=Xe(),o=Nr(),s=o.animate,l=o.config,u=C.useMemo(function(){return $r({},a.crosshair.line,{pointerEvents:"none"})},[a.crosshair.line]),f=Fi({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return E.jsx(Ut.line,$r({},f,{fill:"none",style:u}))});Mc.displayName="CrosshairLine";var Tc=C.memo(function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,s=e.y;return a==="cross"?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):a==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a==="top"?t={x0:o,x1:o,y0:0,y1:s}:a==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):a==="right"?n={x0:o,x1:r,y0:s,y1:s}:a==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:o,x1:r,y0:s,y1:s}):a==="bottom"?t={x0:o,x1:o,y0:s,y1:i}:a==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:0,x1:o,y0:s,y1:s}):a==="left"?n={x0:0,x1:o,y0:s,y1:s}:a==="x"?t={x0:o,x1:o,y0:0,y1:i}:a==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),E.jsxs(E.Fragment,{children:[t&&E.jsx(Mc,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&E.jsx(Mc,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Tc.displayName="Crosshair";var tb=C.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Oc={isVisible:!1,position:[null,null],content:null,anchor:null},nb=C.createContext(Oc),DE=function(e){var t=C.useState(Oc),n=t[0],r=t[1],i=C.useCallback(function(s,l,u){var f=l[0],c=l[1];u===void 0&&(u="top"),r({isVisible:!0,position:[f,c],anchor:u,content:s})},[r]),a=C.useCallback(function(s,l,u){u===void 0&&(u="top");var f=e.current.getBoundingClientRect(),c=e.current.offsetWidth,d=c===f.width?1:c/f.width,m=(l.clientX-f.left)*d,g=(l.clientY-f.top)*d;u!=="left"&&u!=="right"||(u=m1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&kP(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++rt?1:e>=t?0:NaN}function P0(e){let t=e,n=e;e.length===1&&(t=(o,s)=>e(o)-s,n=DP(e));function r(o,s,l,u){for(l==null&&(l=0),u==null&&(u=o.length);l>>1;n(o[f],s)<0?l=f+1:u=f}return l}function i(o,s,l,u){for(l==null&&(l=0),u==null&&(u=o.length);l>>1;n(o[f],s)>0?u=f:l=f+1}return l}function a(o,s,l,u){l==null&&(l=0),u==null&&(u=o.length);const f=r(o,s,l,u-1);return f>l&&t(o[f-1],s)>-t(o[f],s)?f-1:f}return{left:r,center:a,right:i}}function DP(e){return(t,n)=>lb(e(t),n)}function UP(e){return e===null?NaN:+e}const qP=P0(lb),WP=qP.right;P0(UP).center;var Ec=Math.sqrt(50),Pc=Math.sqrt(10),Rc=Math.sqrt(2);function Ac(e,t,n){var r,i=-1,a,o,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let l=Math.round(e/s),u=Math.round(t/s);for(l*st&&--u,o=new Array(a=u-l+1);++it&&--u,o=new Array(a=u-l+1);++i=0?(a>=Ec?10:a>=Pc?5:a>=Rc?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Ec?10:a>=Pc?5:a>=Rc?2:1)}function Nc(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Ec?i*=10:a>=Pc?i*=5:a>=Rc&&(i*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ho(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ho(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=YP.exec(e))?new et(t[1],t[2],t[3],1):(t=GP.exec(e))?new et(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=QP.exec(e))?Ho(t[1],t[2],t[3],t[4]):(t=XP.exec(e))?Ho(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=KP.exec(e))?_m(t[1],t[2]/100,t[3]/100,1):(t=ZP.exec(e))?_m(t[1],t[2]/100,t[3]/100,t[4]):pm.hasOwnProperty(e)?ym(pm[e]):e==="transparent"?new et(NaN,NaN,NaN,0):null}function ym(e){return new et(e>>16&255,e>>8&255,e&255,1)}function Ho(e,t,n,r){return r<=0&&(e=t=n=NaN),new et(e,t,n,r)}function cb(e){return e instanceof Di||(e=to(e)),e?(e=e.rgb(),new et(e.r,e.g,e.b,e.opacity)):new et}function no(e,t,n,r){return arguments.length===1?cb(e):new et(e,t,n,r??1)}function et(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Kl(et,no,A0(Di,{brighter:function(e){return e=e==null?ki:Math.pow(ki,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Cr:Math.pow(Cr,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:vm,formatHex:vm,formatRgb:bm,toString:bm}));function vm(){return"#"+ef(this.r)+ef(this.g)+ef(this.b)}function bm(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function ef(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function _m(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Gt(e,t,n,r)}function db(e){if(e instanceof Gt)return new Gt(e.h,e.s,e.l,e.opacity);if(e instanceof Di||(e=to(e)),!e)return new Gt;if(e instanceof Gt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n0&&l<1?0:o,new Gt(o,s,l,e.opacity)}function eR(e,t,n,r){return arguments.length===1?db(e):new Gt(e,t,n,r??1)}function Gt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Kl(Gt,eR,A0(Di,{brighter:function(e){return e=e==null?ki:Math.pow(ki,e),new Gt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Cr:Math.pow(Cr,e),new Gt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new et(tf(e>=240?e-240:e+120,i,r),tf(e,i,r),tf(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function tf(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const tR=Math.PI/180,nR=180/Math.PI;var hb=-.14861,N0=1.78277,j0=-.29227,Zl=-.90649,ro=1.97294,xm=ro*Zl,wm=ro*N0,Sm=N0*j0-Zl*hb;function rR(e){if(e instanceof vr)return new vr(e.h,e.s,e.l,e.opacity);e instanceof et||(e=cb(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Sm*r+xm*t-wm*n)/(Sm+xm-wm),a=r-i,o=(ro*(n-i)-j0*a)/Zl,s=Math.sqrt(o*o+a*a)/(ro*i*(1-i)),l=s?Math.atan2(o,a)*nR-120:NaN;return new vr(l<0?l+360:l,s,i,e.opacity)}function en(e,t,n,r){return arguments.length===1?rR(e):new vr(e,t,n,r??1)}function vr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Kl(vr,en,A0(Di,{brighter:function(e){return e=e==null?ki:Math.pow(ki,e),new vr(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Cr:Math.pow(Cr,e),new vr(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*tR,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new et(255*(t+n*(hb*r+N0*i)),255*(t+n*(j0*r+Zl*i)),255*(t+n*(ro*r)),this.opacity)}}));function iR(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function aR(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r()=>e;function pb(e,t){return function(n){return e+n*t}}function oR(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function sR(e,t){var n=t-e;return n?pb(e,n>180||n<-180?n-360*Math.round(n/360):n):Jl(isNaN(e)?t:e)}function lR(e){return(e=+e)==1?mi:function(t,n){return n-t?oR(t,n,e):Jl(isNaN(t)?n:t)}}function mi(e,t){var n=t-e;return n?pb(e,n):Jl(isNaN(e)?t:e)}const km=function e(t){var n=lR(t);function r(i,a){var o=n((i=no(i)).r,(a=no(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),u=mi(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function uR(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;on&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Zs(r,i)})),n=nf.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function SR(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?kR:SR,l=u=null,c}function c(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(r),t,n)))(r(o(d)))}return c.invert=function(d){return o(i((u||(u=s(t,e.map(r),Zs)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,xR),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),n=bR,f()},c.clamp=function(d){return arguments.length?(o=d?!0:ni,f()):o!==ni},c.interpolate=function(d){return arguments.length?(n=d,f()):n},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,m){return r=d,i=m,f()}}function gb(){return L0()(ni,ni)}function $R(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Js(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function $i(e){return e=Js(Math.abs(e)),e?e[1]:NaN}function CR(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function MR(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var TR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function el(e){if(!(t=TR.exec(e)))throw new Error("invalid format: "+e);var t;return new F0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}el.prototype=F0.prototype;function F0(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+""}F0.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 OR(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var yb;function ER(e,t){var n=Js(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(yb=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Js(e,Math.max(0,t+a-1))[0]}function Cm(e,t){var n=Js(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Mm={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:$R,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Cm(e*100,t),r:Cm,s:ER,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Tm(e){return e}var Om=Array.prototype.map,Em=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function PR(e){var t=e.grouping===void 0||e.thousands===void 0?Tm:CR(Om.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Tm:MR(Om.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(c){c=el(c);var d=c.fill,m=c.align,g=c.sign,b=c.symbol,_=c.zero,y=c.width,p=c.comma,v=c.precision,x=c.trim,k=c.type;k==="n"?(p=!0,k="g"):Mm[k]||(v===void 0&&(v=12),x=!0,k="g"),(_||d==="0"&&m==="=")&&(_=!0,d="0",m="=");var S=b==="$"?n:b==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",O=b==="$"?r:/[%p]/.test(k)?o:"",M=Mm[k],A=/[defgprs%]/.test(k);v=v===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function $(w){var I=S,R=O,j,z,B;if(k==="c")R=M(w)+R,w="";else{w=+w;var D=w<0||1/w<0;if(w=isNaN(w)?l:M(Math.abs(w),v),x&&(w=OR(w)),D&&+w==0&&g!=="+"&&(D=!1),I=(D?g==="("?g:s:g==="-"||g==="("?"":g)+I,R=(k==="s"?Em[8+yb/3]:"")+R+(D&&g==="("?")":""),A){for(j=-1,z=w.length;++jB||B>57){R=(B===46?i+w.slice(j+1):w.slice(j))+R,w=w.slice(0,j);break}}}p&&!_&&(w=t(w,1/0));var T=I.length+w.length+R.length,P=T>1)+I+w+R+P.slice(T);break;default:w=P+I+w+R;break}return a(w)}return $.toString=function(){return c+""},$}function f(c,d){var m=u((c=el(c),c.type="f",c)),g=Math.max(-8,Math.min(8,Math.floor($i(d)/3)))*3,b=Math.pow(10,-g),_=Em[8+g/3];return function(y){return m(b*y)+_}}return{format:u,formatPrefix:f}}var Vo,D0,vb;RR({thousands:",",grouping:[3],currency:["$",""]});function RR(e){return Vo=PR(e),D0=Vo.format,vb=Vo.formatPrefix,Vo}function AR(e){return Math.max(0,-$i(Math.abs(e)))}function NR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor($i(t)/3)))*3-$i(Math.abs(e)))}function jR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,$i(t)-$i(e))+1}function IR(e,t,n,r){var i=Nc(e,t,n),a;switch(r=el(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=NR(i,o))&&(r.precision=a),vb(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=jR(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=AR(i))&&(r.precision=a-(r.type==="%")*2);break}}return D0(r)}function bb(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ac(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return IR(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,u,f=10;for(s0;){if(u=ub(o,s,n),u===l)return r[i]=o,r[a]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function _b(){var e=gb();return e.copy=function(){return eu(e,_b())},Pr.apply(e,arguments),bb(e)}function xb(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a0){for(;d<=m;++d)for(b=1,g=a(d);bf)break;p.push(_)}}else for(;d<=m;++d)for(b=r-1,g=a(d);b>=1;--b)if(_=g*b,!(_f)break;p.push(_)}p.length*20))return l;do l.push(u=new Date(+a)),t(a,s),e(a);while(u=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return rf.setTime(+a),af.setTime(+o),e(rf),e(af),Math.floor(n(rf,af))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var tl=Fe(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});tl.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Fe(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):tl};tl.range;const cn=1e3,Ct=cn*60,dn=Ct*60,Mr=dn*24,U0=Mr*7,Im=Mr*30,of=Mr*365;var kb=Fe(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*cn)},function(e,t){return(t-e)/cn},function(e){return e.getUTCSeconds()});const ri=kb;kb.range;var $b=Fe(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cn)},function(e,t){e.setTime(+e+t*Ct)},function(e,t){return(t-e)/Ct},function(e){return e.getMinutes()});const Cb=$b;$b.range;var Mb=Fe(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cn-e.getMinutes()*Ct)},function(e,t){e.setTime(+e+t*dn)},function(e,t){return(t-e)/dn},function(e){return e.getHours()});const Tb=Mb;Mb.range;var vo=Fe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ct)/Mr,e=>e.getDate()-1);vo.range;function Rr(e){return Fe(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ct)/U0})}var tu=Rr(0),nl=Rr(1),BR=Rr(2),HR=Rr(3),Ci=Rr(4),VR=Rr(5),YR=Rr(6);tu.range;nl.range;BR.range;HR.range;Ci.range;VR.range;YR.range;var Ob=Fe(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const Eb=Ob;Ob.range;var vn=Fe(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});vn.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Fe(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};vn.range;var Pb=Fe(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ct)},function(e,t){return(t-e)/Ct},function(e){return e.getUTCMinutes()});const Rb=Pb;Pb.range;var Ab=Fe(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*dn)},function(e,t){return(t-e)/dn},function(e){return e.getUTCHours()});const Nb=Ab;Ab.range;var bo=Fe(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Mr},function(e){return e.getUTCDate()-1});bo.range;function Ar(e){return Fe(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/U0})}var nu=Ar(0),rl=Ar(1),GR=Ar(2),QR=Ar(3),Mi=Ar(4),XR=Ar(5),KR=Ar(6);nu.range;rl.range;GR.range;QR.range;Mi.range;XR.range;KR.range;var jb=Fe(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const Ib=jb;jb.range;var bn=Fe(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});bn.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Fe(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};bn.range;function zb(e,t,n,r,i,a){const o=[[ri,1,cn],[ri,5,5*cn],[ri,15,15*cn],[ri,30,30*cn],[a,1,Ct],[a,5,5*Ct],[a,15,15*Ct],[a,30,30*Ct],[i,1,dn],[i,3,3*dn],[i,6,6*dn],[i,12,12*dn],[r,1,Mr],[r,2,2*Mr],[n,1,U0],[t,1,Im],[t,3,3*Im],[e,1,of]];function s(u,f,c){const d=f_).right(o,d);if(m===o.length)return e.every(Nc(u/of,f/of,c));if(m===0)return tl.every(Math.max(Nc(u,f,c),1));const[g,b]=o[d/o[m-1][2]53)return null;"w"in N||(N.w=1),"Z"in N?(ie=lf(na(N.y,0,1)),de=ie.getUTCDay(),ie=de>4||de===0?rl.ceil(ie):rl(ie),ie=bo.offset(ie,(N.V-1)*7),N.y=ie.getUTCFullYear(),N.m=ie.getUTCMonth(),N.d=ie.getUTCDate()+(N.w+6)%7):(ie=sf(na(N.y,0,1)),de=ie.getDay(),ie=de>4||de===0?nl.ceil(ie):nl(ie),ie=vo.offset(ie,(N.V-1)*7),N.y=ie.getFullYear(),N.m=ie.getMonth(),N.d=ie.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),de="Z"in N?lf(na(N.y,0,1)).getUTCDay():sf(na(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(de+5)%7:N.w+N.U*7-(de+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,lf(N)):sf(N)}}function M(q,W,X,N){for(var se=0,ie=W.length,de=X.length,ye,Ue;se=de)return-1;if(ye=W.charCodeAt(se++),ye===37){if(ye=W.charAt(se++),Ue=k[ye in zm?W.charAt(se++):ye],!Ue||(N=Ue(q,X,N))<0)return-1}else if(ye!=X.charCodeAt(N++))return-1}return N}function A(q,W,X){var N=u.exec(W.slice(X));return N?(q.p=f.get(N[0].toLowerCase()),X+N[0].length):-1}function $(q,W,X){var N=m.exec(W.slice(X));return N?(q.w=g.get(N[0].toLowerCase()),X+N[0].length):-1}function w(q,W,X){var N=c.exec(W.slice(X));return N?(q.w=d.get(N[0].toLowerCase()),X+N[0].length):-1}function I(q,W,X){var N=y.exec(W.slice(X));return N?(q.m=p.get(N[0].toLowerCase()),X+N[0].length):-1}function R(q,W,X){var N=b.exec(W.slice(X));return N?(q.m=_.get(N[0].toLowerCase()),X+N[0].length):-1}function j(q,W,X){return M(q,t,W,X)}function z(q,W,X){return M(q,n,W,X)}function B(q,W,X){return M(q,r,W,X)}function D(q){return o[q.getDay()]}function T(q){return a[q.getDay()]}function P(q){return l[q.getMonth()]}function U(q){return s[q.getMonth()]}function V(q){return i[+(q.getHours()>=12)]}function G(q){return 1+~~(q.getMonth()/3)}function ce(q){return o[q.getUTCDay()]}function re(q){return a[q.getUTCDay()]}function Q(q){return l[q.getUTCMonth()]}function K(q){return s[q.getUTCMonth()]}function Z(q){return i[+(q.getUTCHours()>=12)]}function le(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var W=S(q+="",v);return W.toString=function(){return q},W},parse:function(q){var W=O(q+="",!1);return W.toString=function(){return q},W},utcFormat:function(q){var W=S(q+="",x);return W.toString=function(){return q},W},utcParse:function(q){var W=O(q+="",!0);return W.toString=function(){return q},W}}}var zm={"-":"",_:" ",0:"0"},De=/^\s*\d+/,rA=/^%/,iA=/[\\^$*+?|[\]().{}]/g;function fe(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a[t.toLowerCase(),n]))}function oA(e,t,n){var r=De.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function sA(e,t,n){var r=De.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function lA(e,t,n){var r=De.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function uA(e,t,n){var r=De.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function fA(e,t,n){var r=De.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Lm(e,t,n){var r=De.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Fm(e,t,n){var r=De.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function cA(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function dA(e,t,n){var r=De.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function hA(e,t,n){var r=De.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Dm(e,t,n){var r=De.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function pA(e,t,n){var r=De.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Um(e,t,n){var r=De.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mA(e,t,n){var r=De.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gA(e,t,n){var r=De.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function yA(e,t,n){var r=De.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function vA(e,t,n){var r=De.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function bA(e,t,n){var r=rA.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function _A(e,t,n){var r=De.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function xA(e,t,n){var r=De.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function qm(e,t){return fe(e.getDate(),t,2)}function wA(e,t){return fe(e.getHours(),t,2)}function SA(e,t){return fe(e.getHours()%12||12,t,2)}function kA(e,t){return fe(1+vo.count(vn(e),e),t,3)}function Lb(e,t){return fe(e.getMilliseconds(),t,3)}function $A(e,t){return Lb(e,t)+"000"}function CA(e,t){return fe(e.getMonth()+1,t,2)}function MA(e,t){return fe(e.getMinutes(),t,2)}function TA(e,t){return fe(e.getSeconds(),t,2)}function OA(e){var t=e.getDay();return t===0?7:t}function EA(e,t){return fe(tu.count(vn(e)-1,e),t,2)}function Fb(e){var t=e.getDay();return t>=4||t===0?Ci(e):Ci.ceil(e)}function PA(e,t){return e=Fb(e),fe(Ci.count(vn(e),e)+(vn(e).getDay()===4),t,2)}function RA(e){return e.getDay()}function AA(e,t){return fe(nl.count(vn(e)-1,e),t,2)}function NA(e,t){return fe(e.getFullYear()%100,t,2)}function jA(e,t){return e=Fb(e),fe(e.getFullYear()%100,t,2)}function IA(e,t){return fe(e.getFullYear()%1e4,t,4)}function zA(e,t){var n=e.getDay();return e=n>=4||n===0?Ci(e):Ci.ceil(e),fe(e.getFullYear()%1e4,t,4)}function LA(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fe(t/60|0,"0",2)+fe(t%60,"0",2)}function Wm(e,t){return fe(e.getUTCDate(),t,2)}function FA(e,t){return fe(e.getUTCHours(),t,2)}function DA(e,t){return fe(e.getUTCHours()%12||12,t,2)}function UA(e,t){return fe(1+bo.count(bn(e),e),t,3)}function Db(e,t){return fe(e.getUTCMilliseconds(),t,3)}function qA(e,t){return Db(e,t)+"000"}function WA(e,t){return fe(e.getUTCMonth()+1,t,2)}function BA(e,t){return fe(e.getUTCMinutes(),t,2)}function HA(e,t){return fe(e.getUTCSeconds(),t,2)}function VA(e){var t=e.getUTCDay();return t===0?7:t}function YA(e,t){return fe(nu.count(bn(e)-1,e),t,2)}function Ub(e){var t=e.getUTCDay();return t>=4||t===0?Mi(e):Mi.ceil(e)}function GA(e,t){return e=Ub(e),fe(Mi.count(bn(e),e)+(bn(e).getUTCDay()===4),t,2)}function QA(e){return e.getUTCDay()}function XA(e,t){return fe(rl.count(bn(e)-1,e),t,2)}function KA(e,t){return fe(e.getUTCFullYear()%100,t,2)}function ZA(e,t){return e=Ub(e),fe(e.getUTCFullYear()%100,t,2)}function JA(e,t){return fe(e.getUTCFullYear()%1e4,t,4)}function eN(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Mi(e):Mi.ceil(e),fe(e.getUTCFullYear()%1e4,t,4)}function tN(){return"+0000"}function Bm(){return"%"}function Hm(e){return+e}function Vm(e){return Math.floor(+e/1e3)}var Ur,ru,qb,Wb,Bb;nN({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 nN(e){return Ur=nA(e),ru=Ur.format,qb=Ur.parse,Wb=Ur.utcFormat,Bb=Ur.utcParse,Ur}function rN(e){return new Date(e)}function iN(e){return e instanceof Date?+e:+new Date(+e)}function q0(e,t,n,r,i,a,o,s,l,u){var f=gb(),c=f.invert,d=f.domain,m=u(".%L"),g=u(":%S"),b=u("%I:%M"),_=u("%I %p"),y=u("%a %d"),p=u("%b %d"),v=u("%B"),x=u("%Y");function k(S){return(l(S)KM(e[e.length-1]);var W0=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(oe);me(W0);var B0=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(oe);me(B0);var H0=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(oe);me(H0);var V0=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(oe);me(V0);var Y0=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(oe);me(Y0);var G0=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(oe);me(G0);var Q0=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(oe);me(Q0);var X0=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(oe);me(X0);var K0=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(oe);me(K0);var Z0=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(oe);me(Z0);var J0=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(oe);me(J0);var eh=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(oe);me(eh);var th=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(oe);me(th);var nh=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(oe);me(nh);var rh=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(oe);me(rh);var ih=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(oe);me(ih);var ah=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(oe);me(ah);var oh=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(oe);me(oh);var sh=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(oe);me(sh);var lh=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(oe);me(lh);var uh=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(oe);me(uh);var fh=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(oe);me(fh);var ch=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(oe);me(ch);var dh=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(oe);me(dh);var hh=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(oe);me(hh);var ph=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(oe);me(ph);var mh=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(oe);me(mh);var mN=Jd,gN=Zv,yN=Jv,vN=Kd,bN=Ul,_N=e0,xN=200;function wN(e,t,n,r){var i=-1,a=gN,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=vN(t,bN(n))),r?(a=yN,o=!1):t.length>=xN&&(a=_N,o=!1,t=new mN(t));e:for(;++iar)if(!(Math.abs(f*s-l*u)>ar)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var d=n-a,m=r-o,g=s*s+l*l,b=d*d+m*m,_=Math.sqrt(g),y=Math.sqrt(c),p=i*Math.tan((zc-Math.acos((g+c-b)/(2*_*y)))/2),v=p/y,x=p/_;Math.abs(v-1)>ar&&(this._+="L"+(e+v*u)+","+(t+v*f)),this._+="A"+i+","+i+",0,0,"+ +(f*d>u*m)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,f=1^a,c=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>ar||Math.abs(this._y1-u)>ar)&&(this._+="L"+l+","+u),n&&(c<0&&(c=c%Lc+Lc),c>ON?this._+="A"+n+","+n+",0,1,"+f+","+(e-o)+","+(t-s)+"A"+n+","+n+",0,1,"+f+","+(this._x1=l)+","+(this._y1=u):c>ar&&(this._+="A"+n+","+n+",0,"+ +(c>=zc)+","+f+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function dt(e){return function(){return e}}var Ym=1e-12;function Yb(e){this._context=e}Yb.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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function yh(e){return new Yb(e)}function Gb(e){return e[0]}function Qb(e){return e[1]}function Xb(){var e=Gb,t=Qb,n=dt(!0),r=null,i=yh,a=null;function o(s){var l,u=s.length,f,c=!1,d;for(r==null&&(a=i(d=gh())),l=0;l<=u;++l)!(l=d;--m)s.point(p[m],v[m]);s.lineEnd(),s.areaEnd()}_&&(p[c]=+e(b,c,f),v[c]=+n(b,c,f),s.point(t?+t(b,c,f):p[c],r?+r(b,c,f):v[c]))}if(y)return s=null,y+""||null}function u(){return Xb().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:dt(+f),t=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:dt(+f),l):e},l.x1=function(f){return arguments.length?(t=f==null?null:typeof f=="function"?f:dt(+f),l):t},l.y=function(f){return arguments.length?(n=typeof f=="function"?f:dt(+f),r=null,l):n},l.y0=function(f){return arguments.length?(n=typeof f=="function"?f:dt(+f),l):n},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:dt(+f),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:dt(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}function Vn(){}function il(e,t,n){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+t)/6,(e._y0+4*e._y1+n)/6)}function iu(e){this._context=e}iu.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:il(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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:il(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PN(e){return new iu(e)}function Kb(e){this._context=e}Kb.prototype={areaStart:Vn,areaEnd:Vn,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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:il(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RN(e){return new Kb(e)}function Zb(e){this._context=e}Zb.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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:il(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function AN(e){return new Zb(e)}function Jb(e,t){this._basis=new iu(e),this._beta=t}Jb.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const NN=function e(t){function n(r){return t===1?new iu(r):new Jb(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function al(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function vh(e,t){this._context=e,this._k=(1-t)/6}vh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:al(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:al(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const jN=function e(t){function n(r){return new vh(r,t)}return n.tension=function(r){return e(+r)},n}(0);function bh(e,t){this._context=e,this._k=(1-t)/6}bh.prototype={areaStart:Vn,areaEnd:Vn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:al(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const IN=function e(t){function n(r){return new bh(r,t)}return n.tension=function(r){return e(+r)},n}(0);function _h(e,t){this._context=e,this._k=(1-t)/6}_h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:al(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const zN=function e(t){function n(r){return new _h(r,t)}return n.tension=function(r){return e(+r)},n}(0);function xh(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Ym){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Ym){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/f,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/f}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function e3(e,t){this._context=e,this._alpha=t}e3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:xh(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const LN=function e(t){function n(r){return t?new e3(r,t):new vh(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function t3(e,t){this._context=e,this._alpha=t}t3.prototype={areaStart:Vn,areaEnd:Vn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:xh(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const FN=function e(t){function n(r){return t?new t3(r,t):new bh(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function n3(e,t){this._context=e,this._alpha=t}n3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xh(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const DN=function e(t){function n(r){return t?new n3(r,t):new _h(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function r3(e){this._context=e}r3.prototype={areaStart:Vn,areaEnd:Vn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function UN(e){return new r3(e)}function Gm(e){return e<0?-1:1}function Qm(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Gm(a)+Gm(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Xm(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function uf(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function ol(e){this._context=e}ol.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:uf(this,this._t0,Xm(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,uf(this,Xm(this,n=Qm(this,e,t)),n);break;default:uf(this,this._t0,n=Qm(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function i3(e){this._context=new a3(e)}(i3.prototype=Object.create(ol.prototype)).point=function(e,t){ol.prototype.point.call(this,t,e)};function a3(e){this._context=e}a3.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function qN(e){return new ol(e)}function WN(e){return new i3(e)}function o3(e){this._context=e}o3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Km(e),i=Km(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function HN(e){return new au(e,.5)}function VN(e){return new au(e,0)}function YN(e){return new au(e,1)}function ou(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function GN(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i0)for(var n,r=0,i,a,o,s,l,u=e[t[0]].length;r0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}function XN(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;ra&&(a=i,n=t);return n}function s3(e){var t=e.map(l3);return su(e).sort(function(n,r){return t[n]-t[r]})}function l3(e){for(var t=0,n=-1,r=e.length,i;++n=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function sl(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ij(e){return e=sl(Math.abs(e)),e?e[1]:NaN}function aj(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function oj(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var sj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Dc(e){if(!(t=sj.exec(e)))throw new Error("invalid format: "+e);var t;return new wh({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Dc.prototype=wh.prototype;function wh(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+""}wh.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 lj(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var u3;function uj(e,t){var n=sl(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(u3=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+sl(e,Math.max(0,t+a-1))[0]}function Zm(e,t){var n=sl(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Jm={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:rj,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Zm(e*100,t)},r:Zm,s:uj,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function eg(e){return e}var tg=Array.prototype.map,ng=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fj(e){var t=e.grouping===void 0||e.thousands===void 0?eg:aj(tg.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?eg:oj(tg.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(c){c=Dc(c);var d=c.fill,m=c.align,g=c.sign,b=c.symbol,_=c.zero,y=c.width,p=c.comma,v=c.precision,x=c.trim,k=c.type;k==="n"?(p=!0,k="g"):Jm[k]||(v===void 0&&(v=12),x=!0,k="g"),(_||d==="0"&&m==="=")&&(_=!0,d="0",m="=");var S=b==="$"?n:b==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",O=b==="$"?r:/[%p]/.test(k)?o:"",M=Jm[k],A=/[defgprs%]/.test(k);v=v===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function $(w){var I=S,R=O,j,z,B;if(k==="c")R=M(w)+R,w="";else{w=+w;var D=w<0||1/w<0;if(w=isNaN(w)?l:M(Math.abs(w),v),x&&(w=lj(w)),D&&+w==0&&g!=="+"&&(D=!1),I=(D?g==="("?g:s:g==="-"||g==="("?"":g)+I,R=(k==="s"?ng[8+u3/3]:"")+R+(D&&g==="("?")":""),A){for(j=-1,z=w.length;++jB||B>57){R=(B===46?i+w.slice(j+1):w.slice(j))+R,w=w.slice(0,j);break}}}p&&!_&&(w=t(w,1/0));var T=I.length+w.length+R.length,P=T>1)+I+w+R+P.slice(T);break;default:w=P+I+w+R;break}return a(w)}return $.toString=function(){return c+""},$}function f(c,d){var m=u((c=Dc(c),c.type="f",c)),g=Math.max(-8,Math.min(8,Math.floor(ij(d)/3)))*3,b=Math.pow(10,-g),_=ng[8+g/3];return function(y){return m(b*y)+_}}return{format:u,formatPrefix:f}}var Yo,lu;cj({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function cj(e){return Yo=fj(e),lu=Yo.format,Yo.formatPrefix,Yo}var dj=Ll,hj=sb,pj=zl;function mj(e,t,n){for(var r=-1,i=t.length,a={};++r=0||(i[n]=e[n]);return i}var Yn={fill:h.string,fontSize:h.number,fontFamily:h.string},Cj=h.shape({domain:h.shape({line:h.shape({stroke:h.string.isRequired,strokeWidth:h.number.isRequired,strokeDasharray:h.string}).isRequired}).isRequired,ticks:h.shape({line:h.shape({stroke:h.string.isRequired,strokeWidth:h.number.isRequired,strokeDasharray:h.string}).isRequired,text:h.shape(Ne({},Yn)).isRequired}).isRequired,legend:h.shape({text:h.shape(Ne({},Yn)).isRequired}).isRequired}),Mj=h.shape({line:h.shape({stroke:h.string.isRequired,strokeWidth:h.number.isRequired,strokeDasharray:h.string}).isRequired}),Tj=h.shape({hidden:h.shape({symbol:h.shape({fill:h.string.isRequired,opacity:h.number}).isRequired,text:h.shape(Ne({},Yn,{opacity:h.number})).isRequired}).isRequired,text:h.shape(Ne({},Yn)).isRequired}),Oj=h.shape({text:h.shape(Ne({},Yn)).isRequired}),Ej=h.shape({text:h.shape(Ne({},Yn)).isRequired}),Pj=h.shape({text:h.shape(Ne({},Yn)).isRequired}),Rj=h.shape({line:h.shape({stroke:h.string.isRequired,strokeWidth:h.number.isRequired,strokeDasharray:h.string}).isRequired}),Aj=h.shape({text:h.shape(Ne({},Yn,{outlineWidth:h.number.isRequired,outlineColor:h.string.isRequired})).isRequired,link:h.shape({stroke:h.string.isRequired,strokeWidth:h.number.isRequired,outlineWidth:h.number.isRequired,outlineColor:h.string.isRequired}).isRequired,outline:h.shape({stroke:h.string.isRequired,strokeWidth:h.number.isRequired,outlineWidth:h.number.isRequired,outlineColor:h.string.isRequired}).isRequired,symbol:h.shape({fill:h.string.isRequired,outlineWidth:h.number.isRequired,outlineColor:h.string.isRequired}).isRequired});h.shape({background:h.string.isRequired,fontFamily:h.string.isRequired,fontSize:h.number.isRequired,textColor:h.string.isRequired,axis:Cj.isRequired,grid:Mj.isRequired,legends:Tj.isRequired,labels:Oj.isRequired,dots:Ej.isRequired,markers:Pj,crosshair:Rj.isRequired,annotations:Aj.isRequired});var Nj={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent"},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},jj=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],Ij=function(e,t){var n=PP({},e,t);return jj.forEach(function(r){pt(n,r+".fontFamily")===void 0&&ln(n,r+".fontFamily",n.text.fontFamily),pt(n,r+".fontSize")===void 0&&ln(n,r+".fontSize",n.text.fontSize),pt(n,r+".fill")===void 0&&ln(n,r+".fill",n.text.fill),pt(n,r+".outlineWidth")===void 0&&ln(n,r+".outlineWidth",n.text.outlineWidth),pt(n,r+".outlineColor")===void 0&&ln(n,r+".outlineColor",n.text.outlineColor)}),n},f3=C.createContext(),kh=function(e){var t=e.children,n=e.animate,r=e.config,i=C.useMemo(function(){var a=q7(r)?M0[r]:r;return{animate:n,config:a}},[n,r]);return E.jsx(f3.Provider,{value:i,children:t})},qc={animate:h.bool,motionConfig:h.oneOfType([h.oneOf(Object.keys(M0)),h.shape({mass:h.number,tension:h.number,friction:h.number,clamp:h.bool,precision:h.number,velocity:h.number,duration:h.number,easing:h.func})])};kh.propTypes={children:h.node.isRequired,animate:qc.animate,config:qc.motionConfig};var zj={animate:!0,config:"default"};kh.defaultProps=zj;var Nr=function(){return C.useContext(f3)},c3=function(e){var t=Nr(),n=t.animate,r=t.config,i=function(s){var l=C.useRef();return C.useEffect(function(){l.current=s},[s]),l.current}(e),a=C.useMemo(function(){return c2(i,e)},[i,e]),o=Fi({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return $E(o,a)},Lj={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:Y(W0),PRGn:Y(B0),PiYG:Y(H0),PuOr:Y(V0),RdBu:Y(Y0),RdGy:Y(G0),RdYlBu:Y(Q0),RdYlGn:Y(X0),spectral:Y(K0),blues:Y(fh),greens:Y(ch),greys:Y(dh),oranges:Y(mh),purples:Y(hh),reds:Y(ph),BuGn:Y(Z0),BuPu:Y(J0),GnBu:Y(eh),OrRd:Y(th),PuBuGn:Y(nh),PuBu:Y(rh),PuRd:Y(ih),RdPu:Y(ah),YlGnBu:Y(oh),YlGn:Y(sh),YlOrBr:Y(lh),YlOrRd:Y(uh)},Fj=Object.keys(Lj);Y(W0),Y(B0),Y(H0),Y(V0),Y(Y0),Y(G0),Y(Q0),Y(X0),Y(K0),Y(fh),Y(ch),Y(dh),Y(mh),Y(hh),Y(ph),Y(Z0),Y(J0),Y(eh),Y(th),Y(nh),Y(rh),Y(ih),Y(ah),Y(oh),Y(sh),Y(lh),Y(uh);h.oneOfType([h.oneOf(Fj),h.func,h.arrayOf(h.string)]);var Wc={basis:PN,basisClosed:RN,basisOpen:AN,bundle:NN,cardinal:jN,cardinalClosed:IN,cardinalOpen:zN,catmullRom:LN,catmullRomClosed:FN,catmullRomOpen:DN,linear:yh,linearClosed:UN,monotoneX:qN,monotoneY:WN,natural:BN,step:HN,stepAfter:YN,stepBefore:VN},uu=Object.keys(Wc);h.oneOf(uu);uu.filter(function(e){return e.endsWith("Closed")});Vb(uu,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var Dj=Vb(uu,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),Uj=h.oneOf(Dj),d3=function(e){if(!Wc[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Wc[e]},qj={defs:h.arrayOf(h.shape({id:h.string.isRequired})).isRequired,fill:h.arrayOf(h.shape({id:h.string.isRequired,match:h.oneOfType([h.oneOf(["*"]),h.object,h.func]).isRequired})).isRequired},Wj={ascending:s3,descending:ej,insideOut:tj,none:su,reverse:nj},Bj=Object.keys(Wj);h.oneOf(Bj);var Hj={expand:GN,diverging:QN,none:ou,silhouette:XN,wiggle:KN},Vj=Object.keys(Hj);h.oneOf(Vj);h.shape({top:h.number,right:h.number,bottom:h.number,left:h.number}).isRequired;var Yj=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$h=h.oneOf(Yj);dr(Hb);var Gj={top:0,right:0,bottom:0,left:0},h3=function(e,t,n){return n===void 0&&(n={}),C.useMemo(function(){var r=Ne({},Gj,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},p3=function(){var e=C.useRef(null),t=C.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=C.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(a){var o=a[0];return r(o.contentRect)})})[0];return C.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[]),[e,n]},Qj=function(e){return C.useMemo(function(){return Ij(Nj,e)},[e])},Xj=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?ru(e.slice("5")):lu(e):function(t){return""+t}},Bc=function(e){return C.useMemo(function(){return Xj(e)},[e])},m3=C.createContext(),Kj={},g3=function(e){var t=e.theme,n=t===void 0?Kj:t,r=e.children,i=Qj(n);return E.jsx(m3.Provider,{value:i,children:r})};g3.propTypes={children:h.node.isRequired,theme:h.object};var Xe=function(){return C.useContext(m3)},y3=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?C.cloneElement(r,{},t):t};y3.propTypes={children:h.node.isRequired,condition:h.bool.isRequired,wrapper:h.element.isRequired};var Zj={position:"relative"},v3=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,a=e.isInteractive,o=a===void 0||a,s=e.animate,l=e.motionConfig,u=C.useRef(null);return E.jsx(g3,{theme:n,children:E.jsx(kh,{animate:s,config:l,children:E.jsx(BE,{container:u,children:E.jsxs(y3,{condition:i,wrapper:E.jsx("div",{style:Zj,ref:u}),children:[t,o&&E.jsx(WE,{})]})})})})};v3.propTypes={children:h.element.isRequired,isInteractive:h.bool,renderWrapper:h.bool,theme:h.object,animate:h.bool,motionConfig:h.string};h.func.isRequired,h.bool,h.bool,h.object.isRequired,h.bool.isRequired,h.string;var Ch=function(e){var t=e.children,n=p3(),r=n[0],i=n[1],a=i.width>0&&i.height>0;return E.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:a&&t({width:i.width,height:i.height})})};Ch.propTypes={children:h.func.isRequired};var Jj=["id","colors"],b3=function(e){var t=e.id,n=e.colors,r=Sh(e,Jj);return E.jsx("linearGradient",Ne({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var a=i.offset,o=i.color,s=i.opacity;return E.jsx("stop",{offset:a+"%",stopColor:o,stopOpacity:s!==void 0?s:1},a)})}))};b3.propTypes={id:h.string.isRequired,colors:h.arrayOf(h.shape({offset:h.number.isRequired,color:h.string.isRequired,opacity:h.number})).isRequired,gradientTransform:h.string};var _3={linearGradient:b3},hs=C.memo(function(e){var t=e.id,n=e.background,r=e.color,i=e.size,a=e.padding,o=e.stagger,s=i+a,l=i/2,u=a/2;return o===!0&&(s=2*i+2*a),E.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[E.jsx("rect",{width:s,height:s,fill:n}),E.jsx("circle",{cx:u+l,cy:u+l,r:l,fill:r}),o&&E.jsx("circle",{cx:1.5*a+i+l,cy:1.5*a+i+l,r:l,fill:r})]})});hs.displayName="PatternDots",hs.propTypes={id:h.string.isRequired,color:h.string.isRequired,background:h.string.isRequired,size:h.number.isRequired,padding:h.number.isRequired,stagger:h.bool.isRequired},hs.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var ll=function(e){return e*Math.PI/180},eI={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},ps=C.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,i=e.background,a=e.color,o=e.lineWidth,s=Math.round(r)%360,l=Math.abs(n);s>180?s-=360:s>90?s-=180:s<-180?s+=360:s<-90&&(s+=180);var u,f=l,c=l;return s===0?u=` - M 0 0 L `+f+` 0 - M 0 `+c+" L "+f+" "+c+` - `:s===90?u=` - M 0 0 L 0 `+c+` - M `+f+" 0 L "+f+" "+c+` - `:(f=Math.abs(l/Math.sin(ll(s))),c=l/Math.sin(ll(90-s)),u=s>0?` - M 0 `+-c+" L "+2*f+" "+c+` - M `+-f+" "+-c+" L "+f+" "+c+` - M `+-f+" 0 L "+f+" "+2*c+` - `:` - M `+-f+" "+c+" L "+f+" "+-c+` - M `+-f+" "+2*c+" L "+2*f+" "+-c+` - M 0 `+2*c+" L "+2*f+` 0 - `),E.jsxs("pattern",{id:t,width:f,height:c,patternUnits:"userSpaceOnUse",children:[E.jsx("rect",{width:f,height:c,fill:i,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),E.jsx("path",{d:u,strokeWidth:o,stroke:a,strokeLinecap:"square"})]})});ps.displayName="PatternLines",ps.propTypes={id:h.string.isRequired,spacing:h.number.isRequired,rotation:h.number.isRequired,background:h.string.isRequired,color:h.string.isRequired,lineWidth:h.number.isRequired},ps.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var ms=C.memo(function(e){var t=e.id,n=e.background,r=e.color,i=e.size,a=e.padding,o=e.stagger,s=i+a,l=a/2;return o===!0&&(s=2*i+2*a),E.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[E.jsx("rect",{width:s,height:s,fill:n}),E.jsx("rect",{x:l,y:l,width:i,height:i,fill:r}),o&&E.jsx("rect",{x:1.5*a+i,y:1.5*a+i,width:i,height:i,fill:r})]})});ms.displayName="PatternSquares",ms.propTypes={id:h.string.isRequired,color:h.string.isRequired,background:h.string.isRequired,size:h.number.isRequired,padding:h.number.isRequired,stagger:h.bool.isRequired},ms.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var x3={patternDots:hs,patternLines:ps,patternSquares:ms},tI=["type"],Hc=Ne({},_3,x3),w3=function(e){var t=e.defs;return!t||t.length<1?null:E.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=Sh(n,tI);return Hc[r]?C.createElement(Hc[r],Ne({key:i.id},i)):null})})};w3.propTypes={defs:h.arrayOf(h.shape({type:h.oneOf(Object.keys(Hc)).isRequired,id:h.string.isRequired}))};var nI=C.memo(w3),S3=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,a=e.children,o=e.role,s=e.ariaLabel,l=e.ariaLabelledBy,u=e.ariaDescribedBy,f=e.isFocusable,c=Xe();return E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:o,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,focusable:f,tabIndex:f?0:void 0,children:[E.jsx(nI,{defs:i}),E.jsx("rect",{width:t,height:n,fill:c.background}),E.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:a})]})};S3.propTypes={width:h.number.isRequired,height:h.number.isRequired,margin:h.shape({top:h.number.isRequired,left:h.number.isRequired}).isRequired,defs:h.array,children:h.oneOfType([h.arrayOf(h.node),h.node]).isRequired,role:h.string,isFocusable:h.bool,ariaLabel:h.string,ariaLabelledBy:h.string,ariaDescribedBy:h.string};var k3=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return E.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};k3.propTypes={size:h.number.isRequired,color:h.string.isRequired,borderWidth:h.number.isRequired,borderColor:h.string.isRequired};var rI=C.memo(k3),$3=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?rI:r,a=e.size,o=e.datum,s=e.color,l=e.borderWidth,u=e.borderColor,f=e.label,c=e.labelTextAnchor,d=c===void 0?"middle":c,m=e.labelYOffset,g=m===void 0?-12:m,b=Xe(),_=Nr(),y=_.animate,p=_.config,v=Fi({transform:"translate("+t+", "+n+")",config:p,immediate:!y});return E.jsxs(Ut.g,{transform:v.transform,style:{pointerEvents:"none"},children:[C.createElement(i,{size:a,color:s,datum:o,borderWidth:l,borderColor:u}),f&&E.jsx("text",{textAnchor:d,y:g,style:b.dots.text,children:f})]})};$3.propTypes={x:h.number.isRequired,y:h.number.isRequired,datum:h.object.isRequired,size:h.number.isRequired,color:h.string.isRequired,borderWidth:h.number.isRequired,borderColor:h.string.isRequired,symbol:h.oneOfType([h.func,h.object]),label:h.oneOfType([h.string,h.number]),labelTextAnchor:h.oneOf(["start","middle","end"]),labelYOffset:h.number};var iI=C.memo($3),Vc=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,a=e.value,o=e.lineStyle,s=e.textStyle,l=e.legend,u=e.legendPosition,f=e.legendOffsetX,c=e.legendOffsetY,d=e.legendOrientation,m=Xe(),g=0,b=0,_=0,y=0;r==="y"?(_=i(a),b=t):(g=i(a),y=n);var p=null;if(l){var v=function(x){var k=x.axis,S=x.width,O=x.height,M=x.position,A=x.offsetX,$=x.offsetY,w=x.orientation,I=0,R=0,j=w==="vertical"?-90:0,z="start";if(k==="x")switch(M){case"top-left":I=-A,R=$,z="end";break;case"top":R=-$,z=w==="horizontal"?"middle":"start";break;case"top-right":I=A,R=$,z=w==="horizontal"?"start":"end";break;case"right":I=A,R=O/2,z=w==="horizontal"?"start":"middle";break;case"bottom-right":I=A,R=O-$,z="start";break;case"bottom":R=O+$,z=w==="horizontal"?"middle":"end";break;case"bottom-left":R=O-$,I=-A,z=w==="horizontal"?"end":"start";break;case"left":I=-A,R=O/2,z=w==="horizontal"?"end":"middle"}else switch(M){case"top-left":I=A,R=-$,z="start";break;case"top":I=S/2,R=-$,z=w==="horizontal"?"middle":"start";break;case"top-right":I=S-A,R=-$,z=w==="horizontal"?"end":"start";break;case"right":I=S+A,z=w==="horizontal"?"start":"middle";break;case"bottom-right":I=S-A,R=$,z="end";break;case"bottom":I=S/2,R=$,z=w==="horizontal"?"middle":"end";break;case"bottom-left":I=A,R=$,z=w==="horizontal"?"start":"end";break;case"left":I=-A,z=w==="horizontal"?"end":"middle"}return{x:I,y:R,rotation:j,textAnchor:z}}({axis:r,width:t,height:n,position:u,offsetX:f,offsetY:c,orientation:d});p=E.jsx("text",{transform:"translate("+v.x+", "+v.y+") rotate("+v.rotation+")",textAnchor:v.textAnchor,dominantBaseline:"central",style:s,children:l})}return E.jsxs("g",{transform:"translate("+g+", "+_+")",children:[E.jsx("line",{x1:0,x2:b,y1:0,y2:y,stroke:m.markers.lineColor,strokeWidth:m.markers.lineStrokeWidth,style:o}),p]})};Vc.propTypes={width:h.number.isRequired,height:h.number.isRequired,axis:h.oneOf(["x","y"]).isRequired,scale:h.func.isRequired,value:h.oneOfType([h.number,h.string,h.instanceOf(Date)]).isRequired,lineStyle:h.object,textStyle:h.object,legend:h.string,legendPosition:h.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:h.number.isRequired,legendOffsetY:h.number.isRequired,legendOrientation:h.oneOf(["horizontal","vertical"]).isRequired},Vc.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var aI=C.memo(Vc),C3=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,a=e.yScale;return t&&t.length!==0?t.map(function(o,s){return E.jsx(aI,Ne({},o,{width:n,height:r,scale:o.axis==="y"?a:i}),s)}):null};C3.propTypes={width:h.number.isRequired,height:h.number.isRequired,xScale:h.func.isRequired,yScale:h.func.isRequired,markers:h.arrayOf(h.shape({axis:h.oneOf(["x","y"]).isRequired,value:h.oneOfType([h.number,h.string,h.instanceOf(Date)]).isRequired,lineStyle:h.object,textStyle:h.object}))};var oI=C.memo(C3),sI=["theme","renderWrapper","animate","motionConfig"],M3=function(e){return function(t){var n,r;function i(){return t.apply(this,arguments)||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,Uc(n,r),i.prototype.render=function(){var a=this.props,o=a.theme,s=a.renderWrapper,l=a.animate,u=a.motionConfig,f=Sh(a,sI);return E.jsx(v3,{theme:o,renderWrapper:s,isInteractive:f.isInteractive,animate:l,motionConfig:u,children:E.jsx(e,Ne({},f))})},i}(C.Component)},lI=function(e,t){var n,r=oc(e)?e:function(i){return pt(i,e)};return t&&(n=oc(t)?t:lu(t)),n?function(i){return n(r(i))}:r},uI=function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},T3=function(e,t){var n,r=t.clientX,i=t.clientY,a=e.getBoundingClientRect(),o=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}).width===a.width?1:n.width/a.width;return[(r-a.left)*o,(i-a.top)*o]},fI=Object.keys(_3),cI=Object.keys(x3),dI=function(e,t,n){if(e==="*")return!0;if(oc(e))return e(t);if(d0(e)){var r=n?pt(t,n):t;return lT($j(r,Object.keys(e)),e)}return!1},hI=function(e,t,n,r){var i=r===void 0?{}:r,a=i.dataKey,o=i.colorKey,s=o===void 0?"color":o,l=i.targetKey,u=l===void 0?"fill":l,f=[],c={};return e.length&&t.length&&(f=[].concat(e),t.forEach(function(d){for(var m=function(){var b=n[g],_=b.id,y=b.match;if(dI(y,d,a)){var p=e.find(function($){return $.id===_});if(p){if(cI.includes(p.type))if(p.background==="inherit"||p.color==="inherit"){var v=pt(d,s),x=p.background,k=p.color,S=_;p.background==="inherit"&&(S=S+".bg."+v,x=v),p.color==="inherit"&&(S=S+".fg."+v,k=v),ln(d,u,"url(#"+S+")"),c[S]||(f.push(Ne({},p,{id:S,background:x,color:k})),c[S]=1)}else ln(d,u,"url(#"+_+")");else if(fI.includes(p.type))if(p.colors.map(function($){return $.color}).includes("inherit")){var O=pt(d,s),M=_,A=Ne({},p,{colors:p.colors.map(function($,w){return $.color!=="inherit"?$:(M=M+"."+w+"."+O,Ne({},$,{color:$.color==="inherit"?O:$.color}))})});A.id=M,ln(d,u,"url(#"+M+")"),c[M]||(f.push(A),c[M]=1)}else ln(d,u,"url(#"+_+")")}return"break"}},g=0;gfR(e[e.length-1]);var O3=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ne);const SI=ge(O3);var E3=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ne);const kI=ge(E3);var P3=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ne);const $I=ge(P3);var R3=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ne);const CI=ge(R3);var A3=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ne);const MI=ge(A3);var N3=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ne);const TI=ge(N3);var j3=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ne);const OI=ge(j3);var I3=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ne);const EI=ge(I3);var z3=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ne);const PI=ge(z3);var L3=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ne);const RI=ge(L3);var F3=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ne);const AI=ge(F3);var D3=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ne);const NI=ge(D3);var U3=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ne);const jI=ge(U3);var q3=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ne);const II=ge(q3);var W3=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ne);const zI=ge(W3);var B3=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ne);const LI=ge(B3);var H3=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ne);const FI=ge(H3);var V3=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ne);const DI=ge(V3);var Y3=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ne);const UI=ge(Y3);var G3=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ne);const qI=ge(G3);var Q3=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ne);const WI=ge(Q3);var X3=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ne);const BI=ge(X3);var K3=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ne);const HI=ge(K3);var Z3=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ne);const VI=ge(Z3);var J3=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ne);const YI=ge(J3);var e8=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ne);const GI=ge(e8);var t8=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ne);const QI=ge(t8);function XI(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const KI=z0(en(300,.5,0),en(-240,.5,1));var ZI=z0(en(-100,.75,.35),en(80,1.5,.8)),JI=z0(en(260,.75,.35),en(80,1.5,.8)),Go=en();function ez(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Go.h=360*e-100,Go.s=1.5-1.5*t,Go.l=.8-.9*t,Go+""}var Qo=no(),tz=Math.PI/3,nz=Math.PI*2/3;function rz(e){var t;return e=(.5-e)*Math.PI,Qo.r=255*(t=Math.sin(e))*t,Qo.g=255*(t=Math.sin(e+tz))*t,Qo.b=255*(t=Math.sin(e+nz))*t,Qo+""}function iz(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function fu(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const az=fu(ne("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var oz=fu(ne("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),sz=fu(ne("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),lz=fu(ne("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n8={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:pI,accent:mI,dark2:gI,paired:yI,pastel1:vI,pastel2:bI,set1:_I,set2:xI,set3:wI},fz=Object.keys(n8),r8={brown_blueGreen:O3,purpleRed_green:E3,pink_yellowGreen:P3,purple_orange:R3,red_blue:A3,red_grey:N3,red_yellow_blue:j3,red_yellow_green:I3,spectral:z3},cz=Object.keys(r8),dz={brown_blueGreen:SI,purpleRed_green:kI,pink_yellowGreen:$I,purple_orange:CI,red_blue:MI,red_grey:TI,red_yellow_blue:OI,red_yellow_green:EI,spectral:PI},i8={blues:X3,greens:K3,greys:Z3,oranges:t8,purples:J3,reds:e8,blue_green:L3,blue_purple:F3,green_blue:D3,orange_red:U3,purple_blue_green:q3,purple_blue:W3,purple_red:B3,red_purple:H3,yellow_green_blue:V3,yellow_green:Y3,yellow_orange_brown:G3,yellow_orange_red:Q3},hz=Object.keys(i8),pz={blues:BI,greens:HI,greys:VI,oranges:QI,purples:YI,reds:GI,turbo:iz,viridis:az,inferno:sz,magma:oz,plasma:lz,cividis:XI,warm:ZI,cool:JI,cubehelixDefault:KI,blue_green:RI,blue_purple:AI,green_blue:NI,orange_red:jI,purple_blue_green:II,purple_blue:zI,purple_red:LI,red_purple:FI,yellow_green_blue:DI,yellow_green:UI,yellow_orange_brown:qI,yellow_orange_red:WI},gs=ul({},n8,r8,i8),mz=Object.keys(gs),gz=function(e){return fz.includes(e)},yz=function(e){return cz.includes(e)},vz=function(e){return hz.includes(e)},bz={rainbow:ez,sinebow:rz};ul({},dz,pz,bz);var _z=function(e,t){if(typeof e=="function")return e;if(d0(e)){if(function(l){return l.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=pt(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(l){return l.from!==void 0}(e)){var r=function(l){return pt(l,e.from)};if(Array.isArray(e.modifiers)){for(var i,a=[],o=function(){var l=i.value,u=l[0],f=l[1];if(u==="brighter")a.push(function(c){return c.brighter(f)});else if(u==="darker")a.push(function(c){return c.darker(f)});else{if(u!=="opacity")throw new Error("Invalid color modifier: '"+u+"', must be one of: 'brighter', 'darker', 'opacity'");a.push(function(c){return c.opacity=f,c})}},s=uz(e.modifiers);!(i=s()).done;)o();return a.length===0?r:function(l){return a.reduce(function(u,f){return f(u)},Ba(r(l))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},fl=function(e,t){return C.useMemo(function(){return _z(e,t)},[e,t])},xz=h.oneOfType([h.func,h.arrayOf(h.string),h.shape({scheme:h.oneOf(mz).isRequired,size:h.number}),h.shape({datum:h.string.isRequired}),h.string]);h.oneOfType([h.string,h.func,h.shape({theme:h.string.isRequired}),h.shape({from:h.string.isRequired,modifiers:h.arrayOf(h.array)})]);var wz=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(c){return pt(c,t)};if(Array.isArray(e)){var r=dr(e),i=function(c){return r(n(c))};return i.scale=r,i}if(d0(e)){if(function(c){return c.datum!==void 0}(e))return function(c){return pt(c,e.datum)};if(function(c){return c.scheme!==void 0}(e)){if(gz(e.scheme)){var a=dr(gs[e.scheme]),o=function(c){return a(n(c))};return o.scale=a,o}if(yz(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=dr(gs[e.scheme][e.size||11]),l=function(c){return s(n(c))};return l.scale=s,l}if(vz(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var u=dr(gs[e.scheme][e.size||9]),f=function(c){return u(n(c))};return f.scale=u,f}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Sz=function(e,t){return C.useMemo(function(){return wz(e,t)},[e,t])},kz=e2;function $z(e){return e&&e.length?kz(e):[]}var Cz=$z;const ig=je(Cz);var Mz=Kn,Tz=xn,Oz="[object Date]";function Ez(e){return Tz(e)&&Mz(e)==Oz}var Pz=Ez,Rz=Pz,Az=Ul,ag=qv,og=ag&&ag.isDate,Nz=og?Az(og):Rz,jz=Nz;const Iz=je(jz);var ff=new Date,cf=new Date;function Le(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o0))return l;do l.push(u=new Date(+a)),t(a,s),e(a);while(u=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return ff.setTime(+a),cf.setTime(+o),e(ff),e(cf),Math.floor(n(ff,cf))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var cl=Le(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});cl.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Le(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):cl};const sg=cl;cl.range;var dl=1e3,Ti=6e4,hl=36e5,a8=6048e5,o8=Le(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*dl)},function(e,t){return(t-e)/dl},function(e){return e.getUTCSeconds()});const lg=o8;o8.range;var s8=Le(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*dl)},function(e,t){e.setTime(+e+t*Ti)},function(e,t){return(t-e)/Ti},function(e){return e.getMinutes()});const zz=s8;s8.range;var l8=Le(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*dl-e.getMinutes()*Ti)},function(e,t){e.setTime(+e+t*hl)},function(e,t){return(t-e)/hl},function(e){return e.getHours()});const Lz=l8;l8.range;function jr(e){return Le(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ti)/a8})}var Yc=jr(0),u8=jr(1),f8=jr(2),c8=jr(3),d8=jr(4),h8=jr(5),p8=jr(6);Yc.range;u8.range;f8.range;c8.range;d8.range;h8.range;p8.range;var m8=Le(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const Fz=m8;m8.range;var Mh=Le(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Mh.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Le(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};const Dz=Mh;Mh.range;var g8=Le(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ti)},function(e,t){return(t-e)/Ti},function(e){return e.getUTCMinutes()});const Uz=g8;g8.range;var y8=Le(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*hl)},function(e,t){return(t-e)/hl},function(e){return e.getUTCHours()});const qz=y8;y8.range;function Ir(e){return Le(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/a8})}var Gc=Ir(0),v8=Ir(1),b8=Ir(2),_8=Ir(3),x8=Ir(4),w8=Ir(5),S8=Ir(6);Gc.range;v8.range;b8.range;_8.range;x8.range;w8.range;S8.range;var k8=Le(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const Wz=k8;k8.range;var Th=Le(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Th.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Le(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};const Bz=Th;Th.range;function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?(p=m.align[y?"left":"right"],v=m.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(p=m.align[y?"right":"left"],v=m.baseline.center)):(t=function(x){var k;return{x:0,y:(k=g(x))!=null?k:0}},b.lineX=o*(i==="after"?1:-1),_.textX=(o+s)*(i==="after"?1:-1),p=i==="after"?m.align.left:m.align.right),{ticks:d.map(function(x){var k=typeof x=="string"?function(S){var O=String(S).length;return u&&u>0&&O>u?""+String(S).slice(0,u).concat("..."):""+S}(x):x;return Tt({key:x instanceof Date?""+x.valueOf():""+x,value:k},t(x),b,_)}),textAlign:p,textBaseline:v}},P8=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=ru(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return lu(e)},Qc=function(e){var t,n=e.width,r=e.height,i=e.scale,a=e.axis,o=e.values,s=(t=o,(Array.isArray(t)?o:void 0)||O8(i,o)),l="bandwidth"in i?M8(i):i,u=a==="x"?s.map(function(f){var c,d;return{key:f instanceof Date?""+f.valueOf():""+f,x1:(c=l(f))!=null?c:0,x2:(d=l(f))!=null?d:0,y1:0,y2:r}}):s.map(function(f){var c,d;return{key:f instanceof Date?""+f.valueOf():""+f,x1:0,x2:n,y1:(c=l(f))!=null?c:0,y2:(d=l(f))!=null?d:0}});return u},fL=C.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,a=e.lineY,o=e.onClick,s=e.textBaseline,l=e.textAnchor,u=e.animatedProps,f=Xe(),c=f.axis.ticks.line,d=f.axis.ticks.text,m=(t=r?.(n))!=null?t:n,g=C.useMemo(function(){var b={opacity:u.opacity};return o?{style:Tt({},b,{cursor:"pointer"}),onClick:function(_){return o(_,m)}}:{style:b}},[u.opacity,o,m]);return E.jsxs(Ut.g,Tt({transform:u.transform},g,{children:[E.jsx("line",{x1:0,x2:i,y1:0,y2:a,style:c}),d.outlineWidth>0&&E.jsx(Ut.text,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:d,strokeWidth:2*d.outlineWidth,stroke:d.outlineColor,strokeLinejoin:"round",children:""+m}),E.jsx(Ut.text,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:d,children:""+m})]}))}),cL=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,a=e.y,o=a===void 0?0:a,s=e.length,l=e.ticksPosition,u=e.tickValues,f=e.tickSize,c=f===void 0?5:f,d=e.tickPadding,m=d===void 0?5:d,g=e.tickRotation,b=g===void 0?0:g,_=e.format,y=e.renderTick,p=y===void 0?fL:y,v=e.truncateTickAt,x=e.legend,k=e.legendPosition,S=k===void 0?"end":k,O=e.legendOffset,M=O===void 0?0:O,A=e.onClick,$=e.ariaHidden,w=Xe(),I=w.axis.legend.text,R=C.useMemo(function(){return P8(_,n)},[_,n]),j=E8({axis:t,scale:n,ticksPosition:l,tickValues:u,tickSize:c,tickPadding:m,tickRotation:b,truncateTickAt:v}),z=j.ticks,B=j.textAlign,D=j.textBaseline,T=null;if(x!==void 0){var P,U=0,V=0,G=0;t==="y"?(G=-90,U=M,S==="start"?(P="start",V=s):S==="middle"?(P="middle",V=s/2):S==="end"&&(P="end")):(V=M,S==="start"?P="start":S==="middle"?(P="middle",U=s/2):S==="end"&&(P="end",U=s)),T=E.jsxs(E.Fragment,{children:[I.outlineWidth>0&&E.jsx("text",{transform:"translate("+U+", "+V+") rotate("+G+")",textAnchor:P,style:Tt({dominantBaseline:"central"},I),strokeWidth:2*I.outlineWidth,stroke:I.outlineColor,strokeLinejoin:"round",children:x}),E.jsx("text",{transform:"translate("+U+", "+V+") rotate("+G+")",textAnchor:P,style:Tt({dominantBaseline:"central"},I),children:x})]})}var ce=Nr(),re=ce.animate,Q=ce.config,K=Fi({transform:"translate("+i+","+o+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:Q,immediate:!re}),Z=C.useCallback(function(W){return{opacity:1,transform:"translate("+W.x+","+W.y+")",textTransform:"translate("+W.textX+","+W.textY+") rotate("+b+")"}},[b]),le=C.useCallback(function(W){return{opacity:0,transform:"translate("+W.x+","+W.y+")",textTransform:"translate("+W.textX+","+W.textY+") rotate("+b+")"}},[b]),q=Q2(z,{keys:function(W){return W.key},initial:Z,from:le,enter:Z,update:Z,leave:{opacity:0},config:Q,immediate:!re});return E.jsxs(Ut.g,{transform:K.transform,"aria-hidden":$,children:[q(function(W,X,N,se){return C.createElement(p,Tt({tickIndex:se,format:R,rotate:b,textBaseline:D,textAnchor:B,truncateTickAt:v,animatedProps:W},X,A?{onClick:A}:{}))}),E.jsx(Ut.line,{style:w.axis.domain.line,x1:0,x2:K.lineX2,y1:0,y2:K.lineY2}),T]})},dL=C.memo(cL),hL={ticksPosition:h.oneOf(["before","after"]),tickValues:h.oneOfType([h.number,h.arrayOf(h.oneOfType([h.number,h.string,h.instanceOf(Date)])),h.string]),rotateOnTickLength:h.shape({angle:h.number,length:h.number}),tickSize:h.number,tickPadding:h.number,tickRotation:h.number,format:h.oneOfType([h.func,h.string]),renderTick:h.func,legend:h.node,legendPosition:h.oneOf(["start","middle","end"]),legendOffset:h.number,ariaHidden:h.bool},Xo=h.shape(hL),R8=["top","right","bottom","left"],pL=C.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return E.jsx(E.Fragment,{children:R8.map(function(o){var s=a[o];if(!s)return null;var l=o==="top"||o==="bottom";return E.jsx(dL,Tt({},s,{axis:l?"x":"y",x:o==="right"?r:0,y:o==="bottom"?i:0,scale:l?t:n,length:l?r:i,ticksPosition:o==="top"||o==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),o)})})}),mL=C.memo(function(e){var t=e.animatedProps,n=Xe();return E.jsx(Ut.line,Tt({},t,n.grid.line))}),dg=C.memo(function(e){var t=e.lines,n=Nr(),r=n.animate,i=n.config,a=Q2(t,{keys:function(o){return o.key},initial:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},from:function(o){return{opacity:0,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},enter:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},update:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},leave:{opacity:0},config:i,immediate:!r});return E.jsx("g",{children:a(function(o,s){return C.createElement(mL,Tt({},s,{key:s.key,animatedProps:o}))})})}),gL=C.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,a=e.xValues,o=e.yValues,s=C.useMemo(function(){return!!r&&Qc({width:t,height:n,scale:r,axis:"x",values:a})},[r,a,t,n]),l=C.useMemo(function(){return!!i&&Qc({width:t,height:n,scale:i,axis:"y",values:o})},[n,t,i,o]);return E.jsxs(E.Fragment,{children:[s&&E.jsx(dg,{lines:s}),l&&E.jsx(dg,{lines:l})]})}),yL=function(e,t){var n,r=t.axis,i=t.scale,a=t.x,o=a===void 0?0:a,s=t.y,l=s===void 0?0:s,u=t.length,f=t.ticksPosition,c=t.tickValues,d=t.tickSize,m=d===void 0?5:d,g=t.tickPadding,b=g===void 0?5:g,_=t.tickRotation,y=_===void 0?0:_,p=t.format,v=t.legend,x=t.legendPosition,k=x===void 0?"end":x,S=t.legendOffset,O=S===void 0?0:S,M=t.theme,A=E8({axis:r,scale:i,ticksPosition:f,tickValues:c,tickSize:m,tickPadding:b,tickRotation:y,engine:"canvas"}),$=A.ticks,w=A.textAlign,I=A.textBaseline;e.save(),e.translate(o,l),e.textAlign=w,e.textBaseline=I;var R=M.axis.ticks.text;e.font=(R.fontWeight?R.fontWeight+" ":"")+R.fontSize+"px "+R.fontFamily,((n=M.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(M.axis.domain.line.strokeWidth),e.lineCap="square",M.axis.domain.line.stroke&&(e.strokeStyle=M.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?u:0,r==="x"?0:u),e.stroke());var j=typeof p=="function"?p:function(P){return""+P};if($.forEach(function(P){var U;((U=M.axis.ticks.line.strokeWidth)!=null?U:0)>0&&(e.lineWidth=Number(M.axis.ticks.line.strokeWidth),e.lineCap="square",M.axis.ticks.line.stroke&&(e.strokeStyle=M.axis.ticks.line.stroke),e.beginPath(),e.moveTo(P.x,P.y),e.lineTo(P.x+P.lineX,P.y+P.lineY),e.stroke());var V=j(P.value);e.save(),e.translate(P.x+P.textX,P.y+P.textY),e.rotate(ll(y)),R.outlineWidth>0&&(e.strokeStyle=R.outlineColor,e.lineWidth=2*R.outlineWidth,e.lineJoin="round",e.strokeText(""+V,0,0)),M.axis.ticks.text.fill&&(e.fillStyle=R.fill),e.fillText(""+V,0,0),e.restore()}),v!==void 0){var z=0,B=0,D=0,T="center";r==="y"?(D=-90,z=O,k==="start"?(T="start",B=u):k==="middle"?(T="center",B=u/2):k==="end"&&(T="end")):(B=O,k==="start"?T="start":k==="middle"?(T="center",z=u/2):k==="end"&&(T="end",z=u)),e.translate(z,B),e.rotate(ll(D)),e.font=(M.axis.legend.text.fontWeight?M.axis.legend.text.fontWeight+" ":"")+M.axis.legend.text.fontSize+"px "+M.axis.legend.text.fontFamily,M.axis.legend.text.fill&&(e.fillStyle=M.axis.legend.text.fill),e.textAlign=T,e.textBaseline="middle",e.fillText(v,0,0)}e.restore()},vL=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,a=t.height,o=t.top,s=t.right,l=t.bottom,u=t.left,f=t.theme,c={top:o,right:s,bottom:l,left:u};R8.forEach(function(d){var m=c[d];if(!m)return null;var g=d==="top"||d==="bottom",b=d==="top"||d==="left"?"before":"after",_=g?n:r,y=P8(m.format,_);yL(e,Tt({},m,{axis:g?"x":"y",x:d==="right"?i:0,y:d==="bottom"?a:0,scale:_,format:y,length:g?i:a,ticksPosition:b,theme:f}))})},hg=function(e,t){var n=t.width,r=t.height,i=t.scale,a=t.axis,o=t.values;Qc({width:n,height:r,scale:i,axis:a,values:o}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},bL=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return E.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:o,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})},_L=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return E.jsx("g",{transform:"translate("+t+","+n+")",children:E.jsx("path",{d:` - M`+r/2+` 0 - L`+.8*r+" "+r/2+` - L`+r/2+" "+r+` - L`+.2*r+" "+r/2+` - L`+r/2+` 0 - `,fill:i,opacity:o,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})},xL=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return E.jsx("rect",{x:t,y:n,fill:i,opacity:o,strokeWidth:l,stroke:u===void 0?"transparent":u,width:r,height:r,style:{pointerEvents:"none"}})},wL=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return E.jsx("g",{transform:"translate("+t+","+n+")",children:E.jsx("path",{d:` - M`+r/2+` 0 - L`+r+" "+r+` - L0 `+r+` - L`+r/2+` 0 - `,fill:i,opacity:o,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})};function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:a}=this,o=t.length>>1;let s=1/0,l=1/0,u=-1/0,f=-1/0;for(let $=0;$u&&(u=w),I>f&&(f=I),this._ids[$]=$}const c=(s+u)/2,d=(l+f)/2;let m=1/0,g,b,_;for(let $=0;$0&&(b=$,m=w)}let v=t[2*b],x=t[2*b+1],k=1/0;for(let $=0;$R&&($[w++]=j,R=this._dists[j])}this.hull=$.subarray(0,w),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Zo(y,p,v,x,S,O)){const $=b,w=v,I=x;b=_,v=S,x=O,_=$,S=w,O=I}const M=NL(y,p,v,x,S,O);this._cx=M.x,this._cy=M.y;for(let $=0;$0&&Math.abs(j-w)<=pg&&Math.abs(z-I)<=pg||(w=j,I=z,R===g||R===b||R===_))continue;let B=0;for(let V=0,G=this._hashKey(j,z);V0?3-n:1+n)/4}function df(e,t,n,r){const i=e-n,a=t-r;return i*i+a*a}function hf(e,t,n,r,i,a){const o=(r-t)*(i-e),s=(n-e)*(a-t);return Math.abs(o-s)>=33306690738754716e-32*Math.abs(o+s)?o-s:0}function Zo(e,t,n,r,i,a){return(hf(i,a,e,t,n,r)||hf(e,t,n,r,i,a)||hf(n,r,i,a,e,t))<0}function RL(e,t,n,r,i,a,o,s){const l=e-o,u=t-s,f=n-o,c=r-s,d=i-o,m=a-s,g=l*l+u*u,b=f*f+c*c,_=d*d+m*m;return l*(c*_-b*m)-u*(f*_-b*d)+g*(f*m-c*d)<0}function AL(e,t,n,r,i,a){const o=n-e,s=r-t,l=i-e,u=a-t,f=o*o+s*s,c=l*l+u*u,d=.5/(o*u-s*l),m=(u*f-s*c)*d,g=(o*c-l*f)*d;return m*m+g*g}function NL(e,t,n,r,i,a){const o=n-e,s=r-t,l=i-e,u=a-t,f=o*o+s*s,c=l*l+u*u,d=.5/(o*u-s*l),m=e+(u*f-s*c)*d,g=t+(o*c-l*f)*d;return{x:m,y:g}}function ii(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const a=e[i],o=t[a];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=a}else{const i=n+r>>1;let a=n+1,o=r;aa(e,i,a),t[e[n]]>t[e[r]]&&aa(e,n,r),t[e[a]]>t[e[r]]&&aa(e,a,r),t[e[n]]>t[e[a]]&&aa(e,n,a);const s=e[a],l=t[s];for(;;){do a++;while(t[e[a]]l);if(o=o-n?(ii(e,t,a,r),ii(e,t,n,o-1)):(ii(e,t,n,o-1),ii(e,t,a,r))}}function aa(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function jL(e){return e[0]}function IL(e){return e[1]}const mg=1e-6;class pr{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,a=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${a}`:(Math.abs(this._x1-i)>mg||Math.abs(this._y1-a)>mg)&&(this._+="L"+i+","+a),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=a}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class Xc{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class zL{constructor(t,[n,r,i,a]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((a=+a)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=a,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this,a=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let m=0,g=0,b=r.length,_,y;m1;)a-=2;for(let o=2;o4)for(let o=0;o0){if(n>=this.ymax)return null;(o=(this.ymax-n)/i)0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}}const LL=2*Math.PI,Wr=Math.pow;function FL(e){return e[0]}function DL(e){return e[1]}function UL(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function qL(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Eh{static from(t,n=FL,r=DL,i){return new Eh("length"in t?WL(t,n,r,i):Float64Array.from(BL(t,n,r,i)))}constructor(t){this._delaunator=new pl(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&UL(t)){this.collinear=Int32Array.from({length:n.length/2},(d,m)=>m).sort((d,m)=>n[2*d]-n[2*m]||n[2*d+1]-n[2*m+1]);const l=this.collinear[0],u=this.collinear[this.collinear.length-1],f=[n[2*l],n[2*l+1],n[2*u],n[2*u+1]],c=1e-8*Math.hypot(f[3]-f[1],f[2]-f[0]);for(let d=0,m=n.length/2;d0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],this.triangles[1]=i[1],this.triangles[2]=i[1],o[i[0]]=1,i.length===2&&(o[i[1]]=0))}voronoi(t){return new zL(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:a,triangles:o,collinear:s}=this;if(s){const c=s.indexOf(t);c>0&&(yield s[c-1]),c=0&&a!==r&&a!==i;)r=a;return a}_step(t,n,r){const{inedges:i,hull:a,_hullIndex:o,halfedges:s,triangles:l,points:u}=this;if(i[t]===-1||!u.length)return(t+1)%(u.length>>1);let f=t,c=Wr(n-u[t*2],2)+Wr(r-u[t*2+1],2);const d=i[t];let m=d;do{let g=l[m];const b=Wr(n-u[g*2],2)+Wr(r-u[g*2+1],2);if(b-1?K.filter(function(Z){return Z!==Q}):[].concat(K,[Q])})},[]),ce=function(Q){var K=Q.series,Z=Q.getPointColor,le=Q.getPointBorderColor,q=Q.formatX,W=Q.formatY;return C.useMemo(function(){return K.reduce(function(X,N){return[].concat(X,N.data.filter(function(se){return se.position.x!==null&&se.position.y!==null}).map(function(se,ie){var de={id:N.id+"."+ie,index:X.length+ie,serieId:N.id,serieColor:N.color,x:se.position.x,y:se.position.y};return de.color=Z(N),de.borderColor=le(de),de.data=Be({},se.data,{xFormatted:q(se.data.x),yFormatted:W(se.data.y)}),de}))},[])},[K,Z,le,q,W])}({series:V,getPointColor:$,getPointBorderColor:w,formatX:S,formatY:O}),re=rF({enableSlices:k,points:ce,width:l,height:u});return{legendData:U,toggleSerie:G,lineGenerator:tF({curve:m}),areaGenerator:nF({curve:m,yScale:D,areaBaselineValue:b}),getColor:M,series:V,xScale:B,yScale:D,slices:re,points:ce}},U8=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,a=e.path,o=Nr(),s=o.animate,l=o.config,u=c3(a),f=Fi({color:r,config:l,immediate:!s});return E.jsx(Ut.path,{d:u,fill:i||f.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})};U8.propTypes={areaBlendMode:$h.isRequired,areaOpacity:h.number.isRequired,color:h.string,fill:h.string,path:h.string.isRequired};var q8=function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.lines.slice(0).reverse();return E.jsx("g",{children:i.map(function(a){return E.jsx(U8,Be({path:t(a.data.map(function(o){return o.position}))},Be({areaOpacity:n,areaBlendMode:r},a)),a.id)})})};q8.propTypes={areaGenerator:h.func.isRequired,areaOpacity:h.number.isRequired,areaBlendMode:$h.isRequired,lines:h.arrayOf(h.object).isRequired};var iF=C.memo(q8),W8=function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,a=C.useMemo(function(){return t(n)},[t,n]),o=c3(a);return E.jsx(Ut.path,{d:o,fill:"none",strokeWidth:i,stroke:r})};W8.propTypes={points:h.arrayOf(h.shape({x:h.oneOfType([h.string,h.number]),y:h.oneOfType([h.string,h.number])})),lineGenerator:h.func.isRequired,color:h.string.isRequired,thickness:h.number.isRequired};var aF=C.memo(W8),B8=function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(i){var a=i.id,o=i.data,s=i.color;return E.jsx(aF,{id:a,points:o.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},a)})};B8.propTypes={lines:h.arrayOf(h.shape({id:h.oneOfType([h.string,h.number]).isRequired,color:h.string.isRequired,data:h.arrayOf(h.shape({data:h.shape({x:h.oneOfType([h.string,h.number,h.instanceOf(Date)]),y:h.oneOfType([h.string,h.number,h.instanceOf(Date)])}).isRequired,position:h.shape({x:h.number,y:h.number}).isRequired})).isRequired})).isRequired,lineWidth:h.number.isRequired,lineGenerator:h.func.isRequired};var oF=C.memo(B8),H8=function(e){var t=e.slice,n=e.axis,r=e.debug,i=e.tooltip,a=e.isCurrent,o=e.setCurrent,s=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,f=e.onClick,c=E0(),d=c.showTooltipFromEvent,m=c.hideTooltip,g=C.useCallback(function(p){d(C.createElement(i,{slice:t,axis:n}),p,"right"),o(t),s&&s(t,p)},[d,i,t,s]),b=C.useCallback(function(p){d(C.createElement(i,{slice:t,axis:n}),p,"right"),l&&l(t,p)},[d,i,t,l]),_=C.useCallback(function(p){m(),o(null),u&&u(t,p)},[m,t,u]),y=C.useCallback(function(p){f&&f(t,p)},[t,f]);return E.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:r?1:0,strokeOpacity:.75,fill:"red",fillOpacity:a&&r?.35:0,onMouseEnter:g,onMouseMove:b,onMouseLeave:_,onClick:y,"data-testid":"slice-"+t.id})};H8.propTypes={slice:h.object.isRequired,axis:h.oneOf(["x","y"]).isRequired,debug:h.bool.isRequired,height:h.number.isRequired,tooltip:h.oneOfType([h.func,h.object]),isCurrent:h.bool.isRequired,setCurrent:h.func.isRequired,onMouseEnter:h.func,onMouseMove:h.func,onMouseLeave:h.func,onClick:h.func};var sF=C.memo(H8),V8=function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.height,a=e.tooltip,o=e.current,s=e.setCurrent,l=e.onMouseEnter,u=e.onMouseMove,f=e.onMouseLeave,c=e.onClick;return t.map(function(d){return E.jsx(sF,{slice:d,axis:n,debug:r,height:i,tooltip:a,setCurrent:s,isCurrent:o!==null&&o.id===d.id,onMouseEnter:l,onMouseMove:u,onMouseLeave:f,onClick:c},d.id)})};V8.propTypes={slices:h.arrayOf(h.shape({id:h.oneOfType([h.number,h.string,h.instanceOf(Date)]).isRequired,x:h.number.isRequired,y:h.number.isRequired,points:h.arrayOf(h.object).isRequired})).isRequired,axis:h.oneOf(["x","y"]).isRequired,debug:h.bool.isRequired,height:h.number.isRequired,tooltip:h.oneOfType([h.func,h.object]).isRequired,current:h.object,setCurrent:h.func.isRequired,onMouseEnter:h.func,onMouseMove:h.func,onMouseLeave:h.func,onClick:h.func};var lF=C.memo(V8),Y8=function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,a=e.enableLabel,o=e.label,s=e.labelYOffset,l=Xe(),u=lI(o),f=t.slice(0).reverse().map(function(c){return{id:c.id,x:c.x,y:c.y,datum:c.data,fill:c.color,stroke:c.borderColor,label:a?u(c.data):null}});return E.jsx("g",{children:f.map(function(c){return E.jsx(iI,{x:c.x,y:c.y,datum:c.datum,symbol:n,size:r,color:c.fill,borderWidth:i,borderColor:c.stroke,label:c.label,labelYOffset:s,theme:l},c.id)})})};Y8.propTypes={points:h.arrayOf(h.object),symbol:h.func,size:h.number.isRequired,color:h.func.isRequired,borderWidth:h.number.isRequired,borderColor:h.func.isRequired,enableLabel:h.bool.isRequired,label:h.oneOfType([h.string,h.func]).isRequired,labelYOffset:h.number};var uF=C.memo(Y8),G8=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=e.setCurrent,o=e.onMouseEnter,s=e.onMouseMove,l=e.onMouseLeave,u=e.onClick,f=e.tooltip,c=e.debug,d=E0(),m=d.showTooltipAt,g=d.hideTooltip,b=C.useCallback(function(v,x){m(C.createElement(f,{point:v}),[v.x+i.left,v.y+i.top],"top"),a(v),o&&o(v,x)},[a,m,f,o,i]),_=C.useCallback(function(v,x){m(C.createElement(f,{point:v}),[v.x+i.left,v.y+i.top],"top"),a(v),s&&s(v,x)},[a,m,f,s]),y=C.useCallback(function(v,x){g(),a(null),l&&l(v,x)},[g,a,l]),p=C.useCallback(function(v,x){u&&u(v,x)},[u]);return E.jsx(YL,{nodes:t,width:n,height:r,onMouseEnter:b,onMouseMove:_,onMouseLeave:y,onClick:p,debug:c})};G8.propTypes={points:h.arrayOf(h.object).isRequired,width:h.number.isRequired,height:h.number.isRequired,margin:h.object.isRequired,setCurrent:h.func.isRequired,onMouseEnter:h.func,onMouseMove:h.func,onMouseLeave:h.func,onClick:h.func,tooltip:h.oneOfType([h.func,h.object]).isRequired,debug:h.bool.isRequired};var fF=C.memo(G8),Kc=function(e){var t=e.data,n=e.xScale,r=e.xFormat,i=e.yScale,a=e.yFormat,o=e.layers,s=e.curve,l=e.areaBaselineValue,u=e.colors,f=e.margin,c=e.width,d=e.height,m=e.axisTop,g=e.axisRight,b=e.axisBottom,_=e.axisLeft,y=e.enableGridX,p=e.enableGridY,v=e.gridXValues,x=e.gridYValues,k=e.lineWidth,S=e.enableArea,O=e.areaOpacity,M=e.areaBlendMode,A=e.enablePoints,$=e.pointSymbol,w=e.pointSize,I=e.pointColor,R=e.pointBorderWidth,j=e.pointBorderColor,z=e.enablePointLabel,B=e.pointLabel,D=e.pointLabelYOffset,T=e.defs,P=e.fill,U=e.markers,V=e.legends,G=e.isInteractive,ce=e.useMesh,re=e.debugMesh,Q=e.onMouseEnter,K=e.onMouseMove,Z=e.onMouseLeave,le=e.onClick,q=e.tooltip,W=e.enableSlices,X=e.debugSlices,N=e.sliceTooltip,se=e.enableCrosshair,ie=e.crosshairType,de=e.role,ye=h3(c,d,f),Ue=ye.margin,Ee=ye.innerWidth,Ke=ye.innerHeight,_t=ye.outerWidth,wn=ye.outerHeight,Ce=D8({data:t,xScale:n,xFormat:r,yScale:i,yFormat:a,width:Ee,height:Ke,colors:u,curve:s,areaBaselineValue:l,pointColor:I,pointBorderColor:j,enableSlices:W}),Sn=Ce.legendData,_o=Ce.toggleSerie,Zn=Ce.lineGenerator,Ui=Ce.areaGenerator,zr=Ce.series,Lr=Ce.xScale,J=Ce.yScale,Me=Ce.slices,kn=Ce.points,pe=Xe(),Jn=fl(I,pe),Q8=fl(j,pe),Ph=C.useState(null),qi=Ph[0],Rh=Ph[1],Ah=C.useState(null),Wi=Ah[0],Nh=Ah[1],er={grid:E.jsx(gL,{theme:pe,width:Ee,height:Ke,xScale:y?Lr:null,yScale:p?J:null,xValues:v,yValues:x},"grid"),markers:E.jsx(oI,{markers:U,width:Ee,height:Ke,xScale:Lr,yScale:J,theme:pe},"markers"),axes:E.jsx(pL,{xScale:Lr,yScale:J,width:Ee,height:Ke,theme:pe,top:m,right:g,bottom:b,left:_},"axes"),areas:null,lines:E.jsx(oF,{lines:zr,lineGenerator:Zn,lineWidth:k},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:V.map(function(tr,cu){return E.jsx(ML,Be({},tr,{containerWidth:Ee,containerHeight:Ke,data:tr.data||Sn,theme:pe,toggleSerie:tr.toggleSerie?_o:void 0}),"legend."+cu)})},X8=hI(T,zr,P);return S&&(er.areas=E.jsx(iF,{areaGenerator:Ui,areaOpacity:O,areaBlendMode:M,lines:zr},"areas")),G&&W!==!1&&(er.slices=E.jsx(lF,{slices:Me,axis:W,debug:X,height:Ke,tooltip:N,current:Wi,setCurrent:Nh,onMouseEnter:Q,onMouseMove:K,onMouseLeave:Z,onClick:le},"slices")),A&&(er.points=E.jsx(uF,{points:kn,symbol:$,size:w,color:Jn,borderWidth:R,borderColor:Q8,enableLabel:z,label:B,labelYOffset:D},"points")),G&&se&&(qi!==null&&(er.crosshair=E.jsx(Tc,{width:Ee,height:Ke,x:qi.x,y:qi.y,type:ie},"crosshair")),Wi!==null&&(er.crosshair=E.jsx(Tc,{width:Ee,height:Ke,x:Wi.x,y:Wi.y,type:W},"crosshair"))),G&&ce&&W===!1&&(er.mesh=E.jsx(fF,{points:kn,width:Ee,height:Ke,margin:Ue,current:qi,setCurrent:Rh,onMouseEnter:Q,onMouseMove:K,onMouseLeave:Z,onClick:le,tooltip:q,debug:re},"mesh")),E.jsx(S3,{defs:X8,width:_t,height:wn,margin:Ue,role:de,children:o.map(function(tr,cu){return typeof tr=="function"?E.jsx(C.Fragment,{children:tr(Be({},e,{innerWidth:Ee,innerHeight:Ke,series:zr,slices:Me,points:kn,xScale:Lr,yScale:J,lineGenerator:Zn,areaGenerator:Ui,currentPoint:qi,setCurrentPoint:Rh,currentSlice:Wi,setCurrentSlice:Nh}))},cu):er[tr]})})};Kc.propTypes=ZL,Kc.defaultProps=rn;var cF=M3(Kc),xF=function(e){return E.jsx(Ch,{children:function(t){var n=t.width,r=t.height;return E.jsx(cF,Be({width:n,height:r},e))}})},Zc=function(e){var t=e.width,n=e.height,r=e.margin,i=e.pixelRatio,a=e.data,o=e.xScale,s=e.xFormat,l=e.yScale,u=e.yFormat,f=e.curve,c=e.layers,d=e.colors,m=e.lineWidth,g=e.enableArea,b=e.areaBaselineValue,_=e.areaOpacity,y=e.enablePoints,p=e.pointSize,v=e.pointColor,x=e.pointBorderWidth,k=e.pointBorderColor,S=e.enableGridX,O=e.gridXValues,M=e.enableGridY,A=e.gridYValues,$=e.axisTop,w=e.axisRight,I=e.axisBottom,R=e.axisLeft,j=e.legends,z=e.isInteractive,B=e.debugMesh,D=e.onMouseLeave,T=e.onClick,P=e.tooltip,U=e.canvasRef,V=C.useRef(null),G=h3(t,n,r),ce=G.margin,re=G.innerWidth,Q=G.innerHeight,K=G.outerWidth,Z=G.outerHeight,le=Xe(),q=C.useState(null),W=q[0],X=q[1],N=D8({data:a,xScale:o,xFormat:s,yScale:l,yFormat:u,width:re,height:Q,colors:d,curve:f,areaBaselineValue:b,pointColor:v,pointBorderColor:k}),se=N.lineGenerator,ie=N.areaGenerator,de=N.series,ye=N.xScale,Ue=N.yScale,Ee=N.points,Ke=j8({points:Ee,width:re,height:Q,debug:B}),_t=Ke.delaunay,wn=Ke.voronoi;C.useEffect(function(){U&&(U.current=V.current),V.current.width=K*i,V.current.height=Z*i;var J=V.current.getContext("2d");J.scale(i,i),J.fillStyle=le.background,J.fillRect(0,0,K,Z),J.translate(ce.left,ce.top),c.forEach(function(Me){if(typeof Me=="function"&&Me({ctx:J,innerWidth:re,innerHeight:Q,series:de,points:Ee,xScale:ye,yScale:Ue,lineWidth:m,lineGenerator:se,areaGenerator:ie,currentPoint:W,setCurrentPoint:X}),Me==="grid"&&le.grid.line.strokeWidth>0&&(J.lineWidth=le.grid.line.strokeWidth,J.strokeStyle=le.grid.line.stroke,S&&hg(J,{width:re,height:Q,scale:ye,axis:"x",values:O}),M&&hg(J,{width:re,height:Q,scale:Ue,axis:"y",values:A})),Me==="axes"&&vL(J,{xScale:ye,yScale:Ue,width:re,height:Q,top:$,right:w,bottom:I,left:R,theme:le}),Me==="areas"&&g===!0&&(J.save(),J.globalAlpha=_,ie.context(J),de.forEach(function(pe){J.fillStyle=pe.color,J.beginPath(),ie(pe.data.map(function(Jn){return Jn.position})),J.fill()}),J.restore()),Me==="lines"&&(se.context(J),de.forEach(function(pe){J.strokeStyle=pe.color,J.lineWidth=m,J.beginPath(),se(pe.data.map(function(Jn){return Jn.position})),J.stroke()})),Me==="points"&&y===!0&&p>0&&Ee.forEach(function(pe){J.fillStyle=pe.color,J.beginPath(),J.arc(pe.x,pe.y,p/2,0,2*Math.PI),J.fill(),x>0&&(J.strokeStyle=pe.borderColor,J.lineWidth=x,J.stroke())}),Me==="mesh"&&B===!0&&(GL(J,wn),W&&QL(J,wn,W.index)),Me==="legends"){var kn=de.map(function(pe){return{id:pe.id,label:pe.id,color:pe.color}}).reverse();j.forEach(function(pe){OL(J,Be({},pe,{data:pe.data||kn,containerWidth:re,containerHeight:Q,theme:le}))})}})},[V,K,Z,c,le,se,de,ye,Ue,S,O,M,A,$,w,I,R,j,Ee,y,p,W]);var Ce=C.useCallback(function(J){var Me=T3(V.current,J),kn=Me[0],pe=Me[1];if(!uI(ce.left,ce.top,re,Q,kn,pe))return null;var Jn=_t.find(kn-ce.left,pe-ce.top);return Ee[Jn]},[V,ce,re,Q,_t]),Sn=E0(),_o=Sn.showTooltipFromEvent,Zn=Sn.hideTooltip,Ui=C.useCallback(function(J){var Me=Ce(J);X(Me),Me?_o(C.createElement(P,{point:Me}),J):Zn()},[Ce,X,_o,Zn,P]),zr=C.useCallback(function(J){Zn(),X(null),W&&D&&D(W,J)},[Zn,X,D]),Lr=C.useCallback(function(J){if(T){var Me=Ce(J);Me&&T(Me,J)}},[Ce,T]);return E.jsx("canvas",{ref:V,width:K*i,height:Z*i,style:{width:K,height:Z,cursor:z?"auto":"normal"},onMouseEnter:z?Ui:void 0,onMouseMove:z?Ui:void 0,onMouseLeave:z?zr:void 0,onClick:z?Lr:void 0})};Zc.propTypes=JL,Zc.defaultProps=eF;var dF=M3(Zc),hF=C.forwardRef(function(e,t){return E.jsx(dF,Be({},e,{canvasRef:t}))});C.forwardRef(function(e,t){return E.jsx(Ch,{children:function(n){var r=n.width,i=n.height;return E.jsx(hF,Be({width:r,height:i},e,{ref:t}))}})});export{s2 as A,EC as B,b9 as C,SC as D,h0 as E,vF as F,E as G,xo as H,hT as I,pF as J,h as K,d0 as O,xF as P,oc as Q,h6 as R,lT as T,Kn as _,Ev as a,mF as b,gF as c,yF as d,uC as e,RM as f,je as g,tn as h,xn as i,nn as j,Pl as k,dc as l,c0 as m,bF as n,ql as o,_F as p,Kv as q,C as r,Kd as s,w7 as t,NC as u,Pt as v,pt as w,q7 as x,n2 as y,Y as z}; diff --git a/assets/radix-ui-BoNWqpVp.js b/assets/radix-ui-BoNWqpVp.js deleted file mode 100644 index fbe6a14..0000000 --- a/assets/radix-ui-BoNWqpVp.js +++ /dev/null @@ -1,49 +0,0 @@ -import{r as o,a as Le,R as K,b as lc,c as yo}from"./nivo-C0xxZE_O.js";function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>ni(n,t))}function I(...e){return o.useCallback(_t(...e),e)}const Oe=o.forwardRef((e,t)=>{const{children:n,...r}=e,c=o.Children.toArray(n),a=c.find(oi);if(a){const s=a.props.children,i=c.map(l=>l===a?o.Children.count(s)>1?o.Children.only(null):o.isValidElement(s)?s.props.children:null:l);return o.createElement(qn,E({},r,{ref:t}),o.isValidElement(s)?o.cloneElement(s,void 0,i):null)}return o.createElement(qn,E({},r,{ref:t}),n)});Oe.displayName="Slot";const qn=o.forwardRef((e,t)=>{const{children:n,...r}=e;return o.isValidElement(n)?o.cloneElement(n,{...ri(r,n.props),ref:t?_t(t,n.ref):n.ref}):o.Children.count(n)>1?o.Children.only(null):null});qn.displayName="SlotClone";const _o=({children:e})=>o.createElement(o.Fragment,null,e);function oi(e){return o.isValidElement(e)&&e.type===_o}function ri(e,t){const n={...t};for(const r in t){const c=e[r],a=t[r];/^on[A-Z]/.test(r)?c&&a?n[r]=(...i)=>{a(...i),c(...i)}:c&&(n[r]=c):r==="style"?n[r]={...c,...a}:r==="className"&&(n[r]=[c,a].filter(Boolean).join(" "))}return{...e,...n}}const ci=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],M=ci.reduce((e,t)=>{const n=o.forwardRef((r,c)=>{const{asChild:a,...s}=r,i=a?Oe:t;return o.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),o.createElement(i,E({},s,{ref:c}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function So(e,t){e&&Le.flushSync(()=>e.dispatchEvent(t))}const ai=o.forwardRef((e,t)=>o.createElement(M.label,E({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),U0=ai;function _(e,t,{checkForDefaultPrevented:n=!0}={}){return function(c){if(e?.(c),n===!1||!c.defaultPrevented)return t?.(c)}}function si(e,t){const n=o.createContext(t);function r(a){const{children:s,...i}=a,l=o.useMemo(()=>i,Object.values(i));return o.createElement(n.Provider,{value:l},s)}function c(a){const s=o.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,c]}function q(e,t=[]){let n=[];function r(a,s){const i=o.createContext(s),l=n.length;n=[...n,s];function d(u){const{scope:$,children:v,...b}=u,p=$?.[e][l]||i,m=o.useMemo(()=>b,Object.values(b));return o.createElement(p.Provider,{value:m},v)}function f(u,$){const v=$?.[e][l]||i,b=o.useContext(v);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return d.displayName=a+"Provider",[d,f]}const c=()=>{const a=n.map(s=>o.createContext(s));return function(i){const l=i?.[e]||a;return o.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return c.scopeName=e,[r,ii(c,...t)]}function ii(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(a)[`__scope${d}`];return{...i,...u}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function z(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function ee({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,c]=li({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,i=z(n),l=o.useCallback(d=>{if(a){const u=typeof d=="function"?d(e):d;u!==e&&i(u)}else c(d)},[a,e,c,i]);return[s,l]}function li({defaultProp:e,onChange:t}){const n=o.useState(e),[r]=n,c=o.useRef(r),a=z(t);return o.useEffect(()=>{c.current!==r&&(a(r),c.current=r)},[r,c,a]),n}function Te(e){const t=e+"CollectionProvider",[n,r]=q(t),[c,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:b,children:p}=v,m=K.useRef(null),h=K.useRef(new Map).current;return K.createElement(c,{scope:b,itemMap:h,collectionRef:m},p)},i=e+"CollectionSlot",l=K.forwardRef((v,b)=>{const{scope:p,children:m}=v,h=a(i,p),g=I(b,h.collectionRef);return K.createElement(Oe,{ref:g},m)}),d=e+"CollectionItemSlot",f="data-radix-collection-item",u=K.forwardRef((v,b)=>{const{scope:p,children:m,...h}=v,g=K.useRef(null),w=I(b,g),x=a(d,p);return K.useEffect(()=>(x.itemMap.set(g,{ref:g,...h}),()=>void x.itemMap.delete(g))),K.createElement(Oe,{[f]:"",ref:w},m)});function $(v){const b=a(e+"CollectionConsumer",v);return K.useCallback(()=>{const m=b.collectionRef.current;if(!m)return[];const h=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((x,C)=>h.indexOf(x.ref.current)-h.indexOf(C.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:l,ItemSlot:u},$,r]}const di=o.createContext(void 0);function Ee(e){const t=o.useContext(di);return e||t||"ltr"}function ui(e,t=globalThis?.document){const n=z(e);o.useEffect(()=>{const r=c=>{c.key==="Escape"&&n(c)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Qn="dismissableLayer.update",fi="dismissableLayer.pointerDownOutside",pi="dismissableLayer.focusOutside";let hr;const dc=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fe=o.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:c,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...d}=e,f=o.useContext(dc),[u,$]=o.useState(null),v=(n=u?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,b]=o.useState({}),p=I(t,T=>$(T)),m=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(h),w=u?m.indexOf(u):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,C=w>=g,y=vi(T=>{const R=T.target,O=[...f.branches].some(F=>F.contains(R));!C||O||(a?.(T),i?.(T),T.defaultPrevented||l?.())},v),S=bi(T=>{const R=T.target;[...f.branches].some(F=>F.contains(R))||(s?.(T),i?.(T),T.defaultPrevented||l?.())},v);return ui(T=>{w===f.layers.size-1&&(c?.(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},v),o.useEffect(()=>{if(u)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(hr=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),gr(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=hr)}},[u,v,r,f]),o.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),gr())},[u,f]),o.useEffect(()=>{const T=()=>b({});return document.addEventListener(Qn,T),()=>document.removeEventListener(Qn,T)},[]),o.createElement(M.div,E({},d,{ref:p,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,S.onFocusCapture),onBlurCapture:_(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,y.onPointerDownCapture)}))}),$i=o.forwardRef((e,t)=>{const n=o.useContext(dc),r=o.useRef(null),c=I(t,r);return o.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),o.createElement(M.div,E({},e,{ref:c}))});function vi(e,t=globalThis?.document){const n=z(e),r=o.useRef(!1),c=o.useRef(()=>{});return o.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let d=function(){uc(fi,n,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",c.current),c.current=d,t.addEventListener("click",c.current,{once:!0})):d()}else t.removeEventListener("click",c.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",c.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function bi(e,t=globalThis?.document){const n=z(e),r=o.useRef(!1);return o.useEffect(()=>{const c=a=>{a.target&&!r.current&&uc(pi,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",c),()=>t.removeEventListener("focusin",c)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function gr(){const e=new CustomEvent(Qn);document.dispatchEvent(e)}function uc(e,t,n,{discrete:r}){const c=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&c.addEventListener(e,t,{once:!0}),r?So(c,a):c.dispatchEvent(a)}const mi=Fe,hi=$i;let Nn=0;function an(){o.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:wr()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:wr()),Nn++,()=>{Nn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Nn--}},[])}function wr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const kn="focusScope.autoFocusOnMount",Ln="focusScope.autoFocusOnUnmount",Er={bubbles:!1,cancelable:!0},sn=o.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:a,...s}=e,[i,l]=o.useState(null),d=z(c),f=z(a),u=o.useRef(null),$=I(t,p=>l(p)),v=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let p=function(w){if(v.paused||!i)return;const x=w.target;i.contains(x)?u.current=x:Ae(u.current,{select:!0})},m=function(w){if(v.paused||!i)return;const x=w.relatedTarget;x!==null&&(i.contains(x)||Ae(u.current,{select:!0}))},h=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&Ae(i)};document.addEventListener("focusin",p),document.addEventListener("focusout",m);const g=new MutationObserver(h);return i&&g.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",m),g.disconnect()}}},[r,i,v.paused]),o.useEffect(()=>{if(i){Cr.add(v);const p=document.activeElement;if(!i.contains(p)){const h=new CustomEvent(kn,Er);i.addEventListener(kn,d),i.dispatchEvent(h),h.defaultPrevented||(gi(yi(fc(i)),{select:!0}),document.activeElement===p&&Ae(i))}return()=>{i.removeEventListener(kn,d),setTimeout(()=>{const h=new CustomEvent(Ln,Er);i.addEventListener(Ln,f),i.dispatchEvent(h),h.defaultPrevented||Ae(p??document.body,{select:!0}),i.removeEventListener(Ln,f),Cr.remove(v)},0)}}},[i,d,f,v]);const b=o.useCallback(p=>{if(!n&&!r||v.paused)return;const m=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,h=document.activeElement;if(m&&h){const g=p.currentTarget,[w,x]=wi(g);w&&x?!p.shiftKey&&h===x?(p.preventDefault(),n&&Ae(w,{select:!0})):p.shiftKey&&h===w&&(p.preventDefault(),n&&Ae(x,{select:!0})):h===g&&p.preventDefault()}},[n,r,v.paused]);return o.createElement(M.div,E({tabIndex:-1},s,{ref:$,onKeyDown:b}))});function gi(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ae(r,{select:t}),document.activeElement!==n)return}function wi(e){const t=fc(e),n=xr(t,e),r=xr(t.reverse(),e);return[n,r]}function fc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function xr(e,t){for(const n of e)if(!Ei(n,{upTo:t}))return n}function Ei(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function xi(e){return e instanceof HTMLInputElement&&"select"in e}function Ae(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&xi(e)&&t&&e.select()}}const Cr=Ci();function Ci(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=yr(e,t),e.unshift(t)},remove(t){var n;e=yr(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function yr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function yi(e){return e.filter(t=>t.tagName!=="A")}const re=globalThis?.document?o.useLayoutEffect:()=>{},_i=lc.useId||(()=>{});let Si=0;function te(e){const[t,n]=o.useState(_i());return re(()=>{e||n(r=>r??String(Si++))},[e]),e||(t?`radix-${t}`:"")}const Ri=["top","right","bottom","left"],Ie=Math.min,ue=Math.max,qt=Math.round,Ft=Math.floor,Ne=e=>({x:e,y:e}),Pi={left:"right",right:"left",bottom:"top",top:"bottom"},Ti={start:"end",end:"start"};function Jn(e,t,n){return ue(e,Ie(t,n))}function Se(e,t){return typeof e=="function"?e(t):e}function Re(e){return e.split("-")[0]}function it(e){return e.split("-")[1]}function Ro(e){return e==="x"?"y":"x"}function Po(e){return e==="y"?"height":"width"}function lt(e){return["top","bottom"].includes(Re(e))?"y":"x"}function To(e){return Ro(lt(e))}function Mi(e,t,n){n===void 0&&(n=!1);const r=it(e),c=To(e),a=Po(c);let s=c==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Qt(s)),[s,Qt(s)]}function Di(e){const t=Qt(e);return[eo(e),t,eo(t)]}function eo(e){return e.replace(/start|end/g,t=>Ti[t])}function Ai(e,t,n){const r=["left","right"],c=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?c:r:t?r:c;case"left":case"right":return t?a:s;default:return[]}}function Oi(e,t,n,r){const c=it(e);let a=Ai(Re(e),n==="start",r);return c&&(a=a.map(s=>s+"-"+c),t&&(a=a.concat(a.map(eo)))),a}function Qt(e){return e.replace(/left|right|bottom|top/g,t=>Pi[t])}function Ii(e){return{top:0,right:0,bottom:0,left:0,...e}}function pc(e){return typeof e!="number"?Ii(e):{top:e,right:e,bottom:e,left:e}}function Jt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function _r(e,t,n){let{reference:r,floating:c}=e;const a=lt(t),s=To(t),i=Po(s),l=Re(t),d=a==="y",f=r.x+r.width/2-c.width/2,u=r.y+r.height/2-c.height/2,$=r[i]/2-c[i]/2;let v;switch(l){case"top":v={x:f,y:r.y-c.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:u};break;case"left":v={x:r.x-c.width,y:u};break;default:v={x:r.x,y:r.y}}switch(it(t)){case"start":v[s]-=$*(n&&d?-1:1);break;case"end":v[s]+=$*(n&&d?-1:1);break}return v}const Ni=async(e,t,n)=>{const{placement:r="bottom",strategy:c="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:c}),{x:f,y:u}=_r(d,r,l),$=r,v={},b=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:c,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:d,padding:f=0}=Se(e,t)||{};if(d==null)return{};const u=pc(f),$={x:n,y:r},v=To(c),b=Po(v),p=await s.getDimensions(d),m=v==="y",h=m?"top":"left",g=m?"bottom":"right",w=m?"clientHeight":"clientWidth",x=a.reference[b]+a.reference[v]-$[v]-a.floating[b],C=$[v]-a.reference[v],y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let S=y?y[w]:0;(!S||!await(s.isElement==null?void 0:s.isElement(y)))&&(S=i.floating[w]||a.floating[b]);const T=x/2-C/2,R=S/2-p[b]/2-1,O=Ie(u[h],R),F=Ie(u[g],R),N=O,B=S-p[b]-F,P=S/2-p[b]/2+T,D=Jn(N,P,B),V=!l.arrow&&it(c)!=null&&P!==D&&a.reference[b]/2-(PN<=0)){var R,O;const N=(((R=a.flip)==null?void 0:R.index)||0)+1,B=C[N];if(B)return{data:{index:N,overflows:T},reset:{placement:B}};let P=(O=T.filter(D=>D.overflows[0]<=0).sort((D,V)=>D.overflows[1]-V.overflows[1])[0])==null?void 0:O.placement;if(!P)switch(v){case"bestFit":{var F;const D=(F=T.map(V=>[V.placement,V.overflows.filter(L=>L>0).reduce((L,W)=>L+W,0)]).sort((V,L)=>V[1]-L[1])[0])==null?void 0:F[0];D&&(P=D);break}case"initialPlacement":P=i;break}if(c!==P)return{reset:{placement:P}}}return{}}}};function Sr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rr(e){return Ri.some(t=>e[t]>=0)}const Fi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...c}=Se(e,t);switch(r){case"referenceHidden":{const a=await bt(t,{...c,elementContext:"reference"}),s=Sr(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Rr(s)}}}case"escaped":{const a=await bt(t,{...c,altBoundary:!0}),s=Sr(a,n.floating);return{data:{escapedOffsets:s,escaped:Rr(s)}}}default:return{}}}}};async function Vi(e,t){const{placement:n,platform:r,elements:c}=e,a=await(r.isRTL==null?void 0:r.isRTL(c.floating)),s=Re(n),i=it(n),l=lt(n)==="y",d=["left","top"].includes(s)?-1:1,f=a&&l?-1:1,u=Se(t,e);let{mainAxis:$,crossAxis:v,alignmentAxis:b}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return i&&typeof b=="number"&&(v=i==="end"?b*-1:b),l?{x:v*f,y:$*d}:{x:$*d,y:v*f}}const Ki=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:c,y:a,placement:s,middlewareData:i}=t,l=await Vi(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:c+l.x,y:a+l.y,data:{...l,placement:s}}}}},Bi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:c}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:m=>{let{x:h,y:g}=m;return{x:h,y:g}}},...l}=Se(e,t),d={x:n,y:r},f=await bt(t,l),u=lt(Re(c)),$=Ro(u);let v=d[$],b=d[u];if(a){const m=$==="y"?"top":"left",h=$==="y"?"bottom":"right",g=v+f[m],w=v-f[h];v=Jn(g,v,w)}if(s){const m=u==="y"?"top":"left",h=u==="y"?"bottom":"right",g=b+f[m],w=b-f[h];b=Jn(g,b,w)}const p=i.fn({...t,[$]:v,[u]:b});return{...p,data:{x:p.x-n,y:p.y-r}}}}},Hi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:c,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:d=!0}=Se(e,t),f={x:n,y:r},u=lt(c),$=Ro(u);let v=f[$],b=f[u];const p=Se(i,t),m=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=$==="y"?"height":"width",x=a.reference[$]-a.floating[w]+m.mainAxis,C=a.reference[$]+a.reference[w]-m.mainAxis;vC&&(v=C)}if(d){var h,g;const w=$==="y"?"width":"height",x=["top","left"].includes(Re(c)),C=a.reference[u]-a.floating[w]+(x&&((h=s.offset)==null?void 0:h[u])||0)+(x?0:m.crossAxis),y=a.reference[u]+a.reference[w]+(x?0:((g=s.offset)==null?void 0:g[u])||0)-(x?m.crossAxis:0);by&&(b=y)}return{[$]:v,[u]:b}}}},Wi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:c,elements:a}=t,{apply:s=()=>{},...i}=Se(e,t),l=await bt(t,i),d=Re(n),f=it(n),u=lt(n)==="y",{width:$,height:v}=r.floating;let b,p;d==="top"||d==="bottom"?(b=d,p=f===(await(c.isRTL==null?void 0:c.isRTL(a.floating))?"start":"end")?"left":"right"):(p=d,b=f==="end"?"top":"bottom");const m=v-l[b],h=$-l[p],g=!t.middlewareData.shift;let w=m,x=h;if(u){const y=$-l.left-l.right;x=f||g?Ie(h,y):y}else{const y=v-l.top-l.bottom;w=f||g?Ie(m,y):y}if(g&&!f){const y=ue(l.left,0),S=ue(l.right,0),T=ue(l.top,0),R=ue(l.bottom,0);u?x=$-2*(y!==0||S!==0?y+S:ue(l.left,l.right)):w=v-2*(T!==0||R!==0?T+R:ue(l.top,l.bottom))}await s({...t,availableWidth:x,availableHeight:w});const C=await c.getDimensions(a.floating);return $!==C.width||v!==C.height?{reset:{rects:!0}}:{}}}};function ke(e){return $c(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Me(e){var t;return(t=($c(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $c(e){return e instanceof Node||e instanceof fe(e).Node}function Pe(e){return e instanceof Element||e instanceof fe(e).Element}function we(e){return e instanceof HTMLElement||e instanceof fe(e).HTMLElement}function Pr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}function St(e){const{overflow:t,overflowX:n,overflowY:r,display:c}=$e(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(c)}function Ui(e){return["table","td","th"].includes(ke(e))}function Mo(e){const t=Do(),n=$e(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function zi(e){let t=rt(e);for(;we(t)&&!ln(t);){if(Mo(t))return t;t=rt(t)}return null}function Do(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ln(e){return["html","body","#document"].includes(ke(e))}function $e(e){return fe(e).getComputedStyle(e)}function dn(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function rt(e){if(ke(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pr(e)&&e.host||Me(e);return Pr(t)?t.host:t}function vc(e){const t=rt(e);return ln(t)?e.ownerDocument?e.ownerDocument.body:e.body:we(t)&&St(t)?t:vc(t)}function mt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const c=vc(e),a=c===((r=e.ownerDocument)==null?void 0:r.body),s=fe(c);return a?t.concat(s,s.visualViewport||[],St(c)?c:[],s.frameElement&&n?mt(s.frameElement):[]):t.concat(c,mt(c,[],n))}function bc(e){const t=$e(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const c=we(e),a=c?e.offsetWidth:n,s=c?e.offsetHeight:r,i=qt(n)!==a||qt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Ao(e){return Pe(e)?e:e.contextElement}function nt(e){const t=Ao(e);if(!we(t))return Ne(1);const n=t.getBoundingClientRect(),{width:r,height:c,$:a}=bc(t);let s=(a?qt(n.width):n.width)/r,i=(a?qt(n.height):n.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Gi=Ne(0);function mc(e){const t=fe(e);return!Do()||!t.visualViewport?Gi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fe(e)?!1:t}function Ue(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const c=e.getBoundingClientRect(),a=Ao(e);let s=Ne(1);t&&(r?Pe(r)&&(s=nt(r)):s=nt(e));const i=Yi(a,n,r)?mc(a):Ne(0);let l=(c.left+i.x)/s.x,d=(c.top+i.y)/s.y,f=c.width/s.x,u=c.height/s.y;if(a){const $=fe(a),v=r&&Pe(r)?fe(r):r;let b=$,p=b.frameElement;for(;p&&r&&v!==b;){const m=nt(p),h=p.getBoundingClientRect(),g=$e(p),w=h.left+(p.clientLeft+parseFloat(g.paddingLeft))*m.x,x=h.top+(p.clientTop+parseFloat(g.paddingTop))*m.y;l*=m.x,d*=m.y,f*=m.x,u*=m.y,l+=w,d+=x,b=fe(p),p=b.frameElement}}return Jt({width:f,height:u,x:l,y:d})}const Xi=[":popover-open",":modal"];function hc(e){return Xi.some(t=>{try{return e.matches(t)}catch{return!1}})}function ji(e){let{elements:t,rect:n,offsetParent:r,strategy:c}=e;const a=c==="fixed",s=Me(r),i=t?hc(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},d=Ne(1);const f=Ne(0),u=we(r);if((u||!u&&!a)&&((ke(r)!=="body"||St(s))&&(l=dn(r)),we(r))){const $=Ue(r);d=nt(r),f.x=$.x+r.clientLeft,f.y=$.y+r.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x,y:n.y*d.y-l.scrollTop*d.y+f.y}}function Zi(e){return Array.from(e.getClientRects())}function gc(e){return Ue(Me(e)).left+dn(e).scrollLeft}function qi(e){const t=Me(e),n=dn(e),r=e.ownerDocument.body,c=ue(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ue(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+gc(e);const i=-n.scrollTop;return $e(r).direction==="rtl"&&(s+=ue(t.clientWidth,r.clientWidth)-c),{width:c,height:a,x:s,y:i}}function Qi(e,t){const n=fe(e),r=Me(e),c=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(c){a=c.width,s=c.height;const d=Do();(!d||d&&t==="fixed")&&(i=c.offsetLeft,l=c.offsetTop)}return{width:a,height:s,x:i,y:l}}function Ji(e,t){const n=Ue(e,!0,t==="fixed"),r=n.top+e.clientTop,c=n.left+e.clientLeft,a=we(e)?nt(e):Ne(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=c*a.x,d=r*a.y;return{width:s,height:i,x:l,y:d}}function Tr(e,t,n){let r;if(t==="viewport")r=Qi(e,n);else if(t==="document")r=qi(Me(e));else if(Pe(t))r=Ji(t,n);else{const c=mc(e);r={...t,x:t.x-c.x,y:t.y-c.y}}return Jt(r)}function wc(e,t){const n=rt(e);return n===t||!Pe(n)||ln(n)?!1:$e(n).position==="fixed"||wc(n,t)}function el(e,t){const n=t.get(e);if(n)return n;let r=mt(e,[],!1).filter(i=>Pe(i)&&ke(i)!=="body"),c=null;const a=$e(e).position==="fixed";let s=a?rt(e):e;for(;Pe(s)&&!ln(s);){const i=$e(s),l=Mo(s);!l&&i.position==="fixed"&&(c=null),(a?!l&&!c:!l&&i.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||St(s)&&!l&&wc(e,s))?r=r.filter(f=>f!==s):c=i,s=rt(s)}return t.set(e,r),r}function tl(e){let{element:t,boundary:n,rootBoundary:r,strategy:c}=e;const s=[...n==="clippingAncestors"?el(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((d,f)=>{const u=Tr(t,f,c);return d.top=ue(u.top,d.top),d.right=Ie(u.right,d.right),d.bottom=Ie(u.bottom,d.bottom),d.left=ue(u.left,d.left),d},Tr(t,i,c));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function nl(e){const{width:t,height:n}=bc(e);return{width:t,height:n}}function ol(e,t,n){const r=we(t),c=Me(t),a=n==="fixed",s=Ue(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=Ne(0);if(r||!r&&!a)if((ke(t)!=="body"||St(c))&&(i=dn(t)),r){const u=Ue(t,!0,a,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else c&&(l.x=gc(c));const d=s.left+i.scrollLeft-l.x,f=s.top+i.scrollTop-l.y;return{x:d,y:f,width:s.width,height:s.height}}function Mr(e,t){return!we(e)||$e(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ec(e,t){const n=fe(e);if(!we(e)||hc(e))return n;let r=Mr(e,t);for(;r&&Ui(r)&&$e(r).position==="static";)r=Mr(r,t);return r&&(ke(r)==="html"||ke(r)==="body"&&$e(r).position==="static"&&!Mo(r))?n:r||zi(e)||n}const rl=async function(e){const t=this.getOffsetParent||Ec,n=this.getDimensions;return{reference:ol(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function cl(e){return $e(e).direction==="rtl"}const al={convertOffsetParentRelativeRectToViewportRelativeRect:ji,getDocumentElement:Me,getClippingRect:tl,getOffsetParent:Ec,getElementRects:rl,getClientRects:Zi,getDimensions:nl,getScale:nt,isElement:Pe,isRTL:cl};function sl(e,t){let n=null,r;const c=Me(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const{left:d,top:f,width:u,height:$}=e.getBoundingClientRect();if(i||t(),!u||!$)return;const v=Ft(f),b=Ft(c.clientWidth-(d+u)),p=Ft(c.clientHeight-(f+$)),m=Ft(d),g={rootMargin:-v+"px "+-b+"px "+-p+"px "+-m+"px",threshold:ue(0,Ie(1,l))||1};let w=!0;function x(C){const y=C[0].intersectionRatio;if(y!==l){if(!w)return s();y?s(!1,y):r=setTimeout(()=>{s(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(x,{...g,root:c.ownerDocument})}catch{n=new IntersectionObserver(x,g)}n.observe(e)}return s(!0),a}function il(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:c=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=Ao(e),f=c||a?[...d?mt(d):[],...mt(t)]:[];f.forEach(h=>{c&&h.addEventListener("scroll",n,{passive:!0}),a&&h.addEventListener("resize",n)});const u=d&&i?sl(d,n):null;let $=-1,v=null;s&&(v=new ResizeObserver(h=>{let[g]=h;g&&g.target===d&&v&&(v.unobserve(t),cancelAnimationFrame($),$=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),n()}),d&&!l&&v.observe(d),v.observe(t));let b,p=l?Ue(e):null;l&&m();function m(){const h=Ue(e);p&&(h.x!==p.x||h.y!==p.y||h.width!==p.width||h.height!==p.height)&&n(),p=h,b=requestAnimationFrame(m)}return n(),()=>{var h;f.forEach(g=>{c&&g.removeEventListener("scroll",n),a&&g.removeEventListener("resize",n)}),u?.(),(h=v)==null||h.disconnect(),v=null,l&&cancelAnimationFrame(b)}}const ll=Bi,dl=Li,ul=Wi,fl=Fi,Dr=ki,pl=Hi,$l=(e,t,n)=>{const r=new Map,c={platform:al,...n},a={...c.platform,_c:r};return Ni(e,t,{...c,platform:a})},vl=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:c}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Dr({element:r.current,padding:c}).fn(n):{}:r?Dr({element:r,padding:c}).fn(n):{}}}};var Zt=typeof document<"u"?o.useLayoutEffect:o.useEffect;function en(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,c;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!en(e[r],t[r]))return!1;return!0}if(c=Object.keys(e),n=c.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,c[r]))return!1;for(r=n;r--!==0;){const a=c[r];if(!(a==="_owner"&&e.$$typeof)&&!en(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function xc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ar(e,t){const n=xc(e);return Math.round(t*n)/n}function Or(e){const t=o.useRef(e);return Zt(()=>{t.current=e}),t}function bl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:c,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:d}=e,[f,u]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[$,v]=o.useState(r);en($,r)||v(r);const[b,p]=o.useState(null),[m,h]=o.useState(null),g=o.useCallback(L=>{L!==y.current&&(y.current=L,p(L))},[]),w=o.useCallback(L=>{L!==S.current&&(S.current=L,h(L))},[]),x=a||b,C=s||m,y=o.useRef(null),S=o.useRef(null),T=o.useRef(f),R=l!=null,O=Or(l),F=Or(c),N=o.useCallback(()=>{if(!y.current||!S.current)return;const L={placement:t,strategy:n,middleware:$};F.current&&(L.platform=F.current),$l(y.current,S.current,L).then(W=>{const A={...W,isPositioned:!0};B.current&&!en(T.current,A)&&(T.current=A,Le.flushSync(()=>{u(A)}))})},[$,t,n,F]);Zt(()=>{d===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,u(L=>({...L,isPositioned:!1})))},[d]);const B=o.useRef(!1);Zt(()=>(B.current=!0,()=>{B.current=!1}),[]),Zt(()=>{if(x&&(y.current=x),C&&(S.current=C),x&&C){if(O.current)return O.current(x,C,N);N()}},[x,C,N,O,R]);const P=o.useMemo(()=>({reference:y,floating:S,setReference:g,setFloating:w}),[g,w]),D=o.useMemo(()=>({reference:x,floating:C}),[x,C]),V=o.useMemo(()=>{const L={position:n,left:0,top:0};if(!D.floating)return L;const W=Ar(D.floating,f.x),A=Ar(D.floating,f.y);return i?{...L,transform:"translate("+W+"px, "+A+"px)",...xc(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:A}},[n,i,D.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:N,refs:P,elements:D,floatingStyles:V}),[f,N,P,D,V])}function Rt(e){const[t,n]=o.useState(void 0);return re(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const a=c[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Cc="Popper",[yc,xe]=q(Cc),[ml,_c]=yc(Cc),hl=e=>{const{__scopePopper:t,children:n}=e,[r,c]=o.useState(null);return o.createElement(ml,{scope:t,anchor:r,onAnchorChange:c},n)},gl="PopperAnchor",wl=o.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...c}=e,a=_c(gl,n),s=o.useRef(null),i=I(t,s);return o.useEffect(()=>{a.onAnchorChange(r?.current||s.current)}),r?null:o.createElement(M.div,E({},c,{ref:i}))}),Sc="PopperContent",[El,z0]=yc(Sc),xl=o.forwardRef((e,t)=>{var n,r,c,a,s,i,l,d;const{__scopePopper:f,side:u="bottom",sideOffset:$=0,align:v="center",alignOffset:b=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:w="partial",hideWhenDetached:x=!1,updatePositionStrategy:C="optimized",onPlaced:y,...S}=e,T=_c(Sc,f),[R,O]=o.useState(null),F=I(t,ye=>O(ye)),[N,B]=o.useState(null),P=Rt(N),D=(n=P?.width)!==null&&n!==void 0?n:0,V=(r=P?.height)!==null&&r!==void 0?r:0,L=u+(v!=="center"?"-"+v:""),W=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},A=Array.isArray(h)?h:[h],H=A.length>0,U={padding:W,boundary:A.filter(Cl),altBoundary:H},{refs:J,floatingStyles:ne,placement:ae,isPositioned:pe,middlewareData:oe}=bl({strategy:"fixed",placement:L,whileElementsMounted:(...ye)=>il(...ye,{animationFrame:C==="always"}),elements:{reference:T.anchor},middleware:[Ki({mainAxis:$+V,alignmentAxis:b}),m&&ll({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?pl():void 0,...U}),m&&dl({...U}),ul({...U,apply:({elements:ye,rects:Ze,availableWidth:pt,availableHeight:Js})=>{const{width:ei,height:ti}=Ze.reference,Lt=ye.floating.style;Lt.setProperty("--radix-popper-available-width",`${pt}px`),Lt.setProperty("--radix-popper-available-height",`${Js}px`),Lt.setProperty("--radix-popper-anchor-width",`${ei}px`),Lt.setProperty("--radix-popper-anchor-height",`${ti}px`)}}),N&&vl({element:N,padding:p}),yl({arrowWidth:D,arrowHeight:V}),x&&fl({strategy:"referenceHidden",...U})]}),[k,G]=Rc(ae),Y=z(y);re(()=>{pe&&Y?.()},[pe,Y]);const X=(c=oe.arrow)===null||c===void 0?void 0:c.x,j=(a=oe.arrow)===null||a===void 0?void 0:a.y,Z=((s=oe.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[le,de]=o.useState();return re(()=>{R&&de(window.getComputedStyle(R).zIndex)},[R]),o.createElement("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:pe?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(i=oe.transformOrigin)===null||i===void 0?void 0:i.x,(l=oe.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},o.createElement(El,{scope:f,placedSide:k,onArrowChange:B,arrowX:X,arrowY:j,shouldHideArrow:Z},o.createElement(M.div,E({"data-side":k,"data-align":G},S,{ref:F,style:{...S.style,animation:pe?void 0:"none",opacity:(d=oe.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))});function Cl(e){return e!==null}const yl=e=>({name:"transformOrigin",options:e,fn(t){var n,r,c,a,s;const{placement:i,rects:l,middlewareData:d}=t,u=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,$=u?0:e.arrowWidth,v=u?0:e.arrowHeight,[b,p]=Rc(i),m={start:"0%",center:"50%",end:"100%"}[p],h=((r=(c=d.arrow)===null||c===void 0?void 0:c.x)!==null&&r!==void 0?r:0)+$/2,g=((a=(s=d.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+v/2;let w="",x="";return b==="bottom"?(w=u?m:`${h}px`,x=`${-v}px`):b==="top"?(w=u?m:`${h}px`,x=`${l.floating.height+v}px`):b==="right"?(w=`${-v}px`,x=u?m:`${g}px`):b==="left"&&(w=`${l.floating.width+v}px`,x=u?m:`${g}px`),{data:{x:w,y:x}}}});function Rc(e){const[t,n="center"]=e.split("-");return[t,n]}const Pt=hl,un=wl,Tt=xl,Mt=o.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...c}=e;return r?yo.createPortal(o.createElement(M.div,E({},c,{ref:t})),r):null});function _l(e,t){return o.useReducer((n,r)=>{const c=t[n][r];return c??n},e)}const Q=e=>{const{present:t,children:n}=e,r=Sl(t),c=typeof n=="function"?n({present:r.isPresent}):o.Children.only(n),a=I(r.ref,c.ref);return typeof n=="function"||r.isPresent?o.cloneElement(c,{ref:a}):null};Q.displayName="Presence";function Sl(e){const[t,n]=o.useState(),r=o.useRef({}),c=o.useRef(e),a=o.useRef("none"),s=e?"mounted":"unmounted",[i,l]=_l(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{const d=Vt(r.current);a.current=i==="mounted"?d:"none"},[i]),re(()=>{const d=r.current,f=c.current;if(f!==e){const $=a.current,v=Vt(d);e?l("MOUNT"):v==="none"||d?.display==="none"?l("UNMOUNT"):l(f&&$!==v?"ANIMATION_OUT":"UNMOUNT"),c.current=e}},[e,l]),re(()=>{if(t){const d=u=>{const v=Vt(r.current).includes(u.animationName);u.target===t&&v&&Le.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===t&&(a.current=Vt(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:o.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function Vt(e){return e?.animationName||"none"}const Fn="rovingFocusGroup.onEntryFocus",Rl={bubbles:!1,cancelable:!0},Oo="RovingFocusGroup",[to,Pc,Pl]=Te(Oo),[Tl,Ve]=q(Oo,[Pl]),[Ml,Dl]=Tl(Oo),Al=o.forwardRef((e,t)=>o.createElement(to.Provider,{scope:e.__scopeRovingFocusGroup},o.createElement(to.Slot,{scope:e.__scopeRovingFocusGroup},o.createElement(Ol,E({},e,{ref:t}))))),Ol=o.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:c=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:d,...f}=e,u=o.useRef(null),$=I(t,u),v=Ee(a),[b=null,p]=ee({prop:s,defaultProp:i,onChange:l}),[m,h]=o.useState(!1),g=z(d),w=Pc(n),x=o.useRef(!1),[C,y]=o.useState(0);return o.useEffect(()=>{const S=u.current;if(S)return S.addEventListener(Fn,g),()=>S.removeEventListener(Fn,g)},[g]),o.createElement(Ml,{scope:n,orientation:r,dir:v,loop:c,currentTabStopId:b,onItemFocus:o.useCallback(S=>p(S),[p]),onItemShiftTab:o.useCallback(()=>h(!0),[]),onFocusableItemAdd:o.useCallback(()=>y(S=>S+1),[]),onFocusableItemRemove:o.useCallback(()=>y(S=>S-1),[])},o.createElement(M.div,E({tabIndex:m||C===0?-1:0,"data-orientation":r},f,{ref:$,style:{outline:"none",...e.style},onMouseDown:_(e.onMouseDown,()=>{x.current=!0}),onFocus:_(e.onFocus,S=>{const T=!x.current;if(S.target===S.currentTarget&&T&&!m){const R=new CustomEvent(Fn,Rl);if(S.currentTarget.dispatchEvent(R),!R.defaultPrevented){const O=w().filter(D=>D.focusable),F=O.find(D=>D.active),N=O.find(D=>D.id===b),P=[F,N,...O].filter(Boolean).map(D=>D.ref.current);Tc(P)}}x.current=!1}),onBlur:_(e.onBlur,()=>h(!1))})))}),Il="RovingFocusGroupItem",Nl=o.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:c=!1,tabStopId:a,...s}=e,i=te(),l=a||i,d=Dl(Il,n),f=d.currentTabStopId===l,u=Pc(n),{onFocusableItemAdd:$,onFocusableItemRemove:v}=d;return o.useEffect(()=>{if(r)return $(),()=>v()},[r,$,v]),o.createElement(to.ItemSlot,{scope:n,id:l,focusable:r,active:c},o.createElement(M.span,E({tabIndex:f?0:-1,"data-orientation":d.orientation},s,{ref:t,onMouseDown:_(e.onMouseDown,b=>{r?d.onItemFocus(l):b.preventDefault()}),onFocus:_(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:_(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const p=Fl(b,d.orientation,d.dir);if(p!==void 0){b.preventDefault();let h=u().filter(g=>g.focusable).map(g=>g.ref.current);if(p==="last")h.reverse();else if(p==="prev"||p==="next"){p==="prev"&&h.reverse();const g=h.indexOf(b.currentTarget);h=d.loop?Vl(h,g+1):h.slice(g+1)}setTimeout(()=>Tc(h))}})})))}),kl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ll(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Fl(e,t,n){const r=Ll(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return kl[r]}function Tc(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Vl(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const fn=Al,pn=Nl;var Kl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qe=new WeakMap,Kt=new WeakMap,Bt={},Vn=0,Mc=function(e){return e&&(e.host||Mc(e.parentNode))},Bl=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Mc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Hl=function(e,t,n,r){var c=Bl(t,Array.isArray(e)?e:[e]);Bt[n]||(Bt[n]=new WeakMap);var a=Bt[n],s=[],i=new Set,l=new Set(c),d=function(u){!u||i.has(u)||(i.add(u),d(u.parentNode))};c.forEach(d);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function($){if(i.has($))f($);else{var v=$.getAttribute(r),b=v!==null&&v!=="false",p=(qe.get($)||0)+1,m=(a.get($)||0)+1;qe.set($,p),a.set($,m),s.push($),p===1&&b&&Kt.set($,!0),m===1&&$.setAttribute(n,"true"),b||$.setAttribute(r,"true")}})};return f(t),i.clear(),Vn++,function(){s.forEach(function(u){var $=qe.get(u)-1,v=a.get(u)-1;qe.set(u,$),a.set(u,v),$||(Kt.has(u)||u.removeAttribute(r),Kt.delete(u)),v||u.removeAttribute(n)}),Vn--,Vn||(qe=new WeakMap,qe=new WeakMap,Kt=new WeakMap,Bt={})}},Dt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=t||Kl(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live]"))),Hl(r,c,n,"aria-hidden")):function(){return null}},ce=function(){return ce=Object.assign||function(t){for(var n,r=1,c=arguments.length;r"u")return ed;var t=td(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},od=No(),tn="data-scroll-locked",rd=function(e,t,n,r){var c=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),` - .`.concat(Wl,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(i,"px ").concat(r,`; - } - body[`).concat(tn,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(c,`px; - padding-top: `).concat(a,`px; - padding-right: `).concat(s,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(i,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat($t,` { - right: `).concat(i,"px ").concat(r,`; - } - - .`).concat(vt,` { - margin-right: `).concat(i,"px ").concat(r,`; - } - - .`).concat($t," .").concat($t,` { - right: 0 `).concat(r,`; - } - - .`).concat(vt," .").concat(vt,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(tn,`] { - `).concat(Ul,": ").concat(i,`px; - } -`)},Lc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,c=r===void 0?"margin":r,a=o.useMemo(function(){return nd(c)},[c]);return o.useEffect(function(){return document.body.setAttribute(tn,""),function(){document.body.removeAttribute(tn)}},[]),o.createElement(od,{styles:rd(a,!t,c,n?"":"!important")})},no=!1;if(typeof window<"u")try{var Ht=Object.defineProperty({},"passive",{get:function(){return no=!0,!0}});window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch{no=!1}var Qe=no?{passive:!1}:!1,cd=function(e){return e.tagName==="TEXTAREA"},Fc=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!cd(e)&&n[t]==="visible")},ad=function(e){return Fc(e,"overflowY")},sd=function(e){return Fc(e,"overflowX")},Nr=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Vc(e,n);if(r){var c=Kc(e,n),a=c[1],s=c[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},id=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ld=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Vc=function(e,t){return e==="v"?ad(t):sd(t)},Kc=function(e,t){return e==="v"?id(t):ld(t)},dd=function(e,t){return e==="h"&&t==="rtl"?-1:1},ud=function(e,t,n,r,c){var a=dd(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),d=!1,f=s>0,u=0,$=0;do{var v=Kc(e,i),b=v[0],p=v[1],m=v[2],h=p-m-a*b;(b||h)&&Vc(e,i)&&(u+=h,$+=b),i=i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(f&&(c&&u===0||!c&&s>u)||!f&&(c&&$===0||!c&&-s>$))&&(d=!0),d},Wt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},kr=function(e){return[e.deltaX,e.deltaY]},Lr=function(e){return e&&"current"in e?e.current:e},fd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pd=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},$d=0,Je=[];function vd(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),c=o.useState($d++)[0],a=o.useState(function(){return No()})[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var p=Dc([e.lockRef.current],(e.shards||[]).map(Lr),!0).filter(Boolean);return p.forEach(function(m){return m.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),p.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var i=o.useCallback(function(p,m){if("touches"in p&&p.touches.length===2)return!s.current.allowPinchZoom;var h=Wt(p),g=n.current,w="deltaX"in p?p.deltaX:g[0]-h[0],x="deltaY"in p?p.deltaY:g[1]-h[1],C,y=p.target,S=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in p&&S==="h"&&y.type==="range")return!1;var T=Nr(S,y);if(!T)return!0;if(T?C=S:(C=S==="v"?"h":"v",T=Nr(S,y)),!T)return!1;if(!r.current&&"changedTouches"in p&&(w||x)&&(r.current=C),!C)return!0;var R=r.current||C;return ud(R,m,p,R==="h"?w:x,!0)},[]),l=o.useCallback(function(p){var m=p;if(!(!Je.length||Je[Je.length-1]!==a)){var h="deltaY"in m?kr(m):Wt(m),g=t.current.filter(function(C){return C.name===m.type&&C.target===m.target&&fd(C.delta,h)})[0];if(g&&g.should){m.cancelable&&m.preventDefault();return}if(!g){var w=(s.current.shards||[]).map(Lr).filter(Boolean).filter(function(C){return C.contains(m.target)}),x=w.length>0?i(m,w[0]):!s.current.noIsolation;x&&m.cancelable&&m.preventDefault()}}},[]),d=o.useCallback(function(p,m,h,g){var w={name:p,delta:m,target:h,should:g};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),f=o.useCallback(function(p){n.current=Wt(p),r.current=void 0},[]),u=o.useCallback(function(p){d(p.type,kr(p),p.target,i(p,e.lockRef.current))},[]),$=o.useCallback(function(p){d(p.type,Wt(p),p.target,i(p,e.lockRef.current))},[]);o.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:$}),document.addEventListener("wheel",l,Qe),document.addEventListener("touchmove",l,Qe),document.addEventListener("touchstart",f,Qe),function(){Je=Je.filter(function(p){return p!==a}),document.removeEventListener("wheel",l,Qe),document.removeEventListener("touchmove",l,Qe),document.removeEventListener("touchstart",f,Qe)}},[]);var v=e.removeScrollBar,b=e.inert;return o.createElement(o.Fragment,null,b?o.createElement(a,{styles:pd(c)}):null,v?o.createElement(Lc,{gapMode:"margin"}):null)}const bd=Nc(kc,vd);var Bc=o.forwardRef(function(e,t){return o.createElement($n,ce({},e,{ref:t,sideCar:bd}))});Bc.classNames=$n.classNames;const vn=Bc,oo=["Enter"," "],md=["ArrowDown","PageUp","Home"],Hc=["ArrowUp","PageDown","End"],hd=[...md,...Hc],gd={ltr:[...oo,"ArrowRight"],rtl:[...oo,"ArrowLeft"]},wd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},bn="Menu",[ht,Ed,xd]=Te(bn),[Ge,At]=q(bn,[xd,xe,Ve]),mn=xe(),Wc=Ve(),[Uc,Ke]=Ge(bn),[Cd,Ot]=Ge(bn),yd=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:c,onOpenChange:a,modal:s=!0}=e,i=mn(t),[l,d]=o.useState(null),f=o.useRef(!1),u=z(a),$=Ee(c);return o.useEffect(()=>{const v=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),o.createElement(Pt,i,o.createElement(Uc,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:d},o.createElement(Cd,{scope:t,onClose:o.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:$,modal:s},r)))},zc=o.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,c=mn(n);return o.createElement(un,E({},c,r,{ref:t}))}),Gc="MenuPortal",[_d,Yc]=Ge(Gc,{forceMount:void 0}),Sd=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:c}=e,a=Ke(Gc,t);return o.createElement(_d,{scope:t,forceMount:n},o.createElement(Q,{present:n||a.open},o.createElement(Mt,{asChild:!0,container:c},r)))},me="MenuContent",[Rd,ko]=Ge(me),Pd=o.forwardRef((e,t)=>{const n=Yc(me,e.__scopeMenu),{forceMount:r=n.forceMount,...c}=e,a=Ke(me,e.__scopeMenu),s=Ot(me,e.__scopeMenu);return o.createElement(ht.Provider,{scope:e.__scopeMenu},o.createElement(Q,{present:r||a.open},o.createElement(ht.Slot,{scope:e.__scopeMenu},s.modal?o.createElement(Td,E({},c,{ref:t})):o.createElement(Md,E({},c,{ref:t})))))}),Td=o.forwardRef((e,t)=>{const n=Ke(me,e.__scopeMenu),r=o.useRef(null),c=I(t,r);return o.useEffect(()=>{const a=r.current;if(a)return Dt(a)},[]),o.createElement(Lo,E({},e,{ref:c,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:_(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),Md=o.forwardRef((e,t)=>{const n=Ke(me,e.__scopeMenu);return o.createElement(Lo,E({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Lo=o.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:c,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:$,onDismiss:v,disableOutsideScroll:b,...p}=e,m=Ke(me,n),h=Ot(me,n),g=mn(n),w=Wc(n),x=Ed(n),[C,y]=o.useState(null),S=o.useRef(null),T=I(t,S,m.onContentChange),R=o.useRef(0),O=o.useRef(""),F=o.useRef(0),N=o.useRef(null),B=o.useRef("right"),P=o.useRef(0),D=b?vn:o.Fragment,V=b?{as:Oe,allowPinchZoom:!0}:void 0,L=A=>{var H,U;const J=O.current+A,ne=x().filter(Y=>!Y.disabled),ae=document.activeElement,pe=(H=ne.find(Y=>Y.ref.current===ae))===null||H===void 0?void 0:H.textValue,oe=ne.map(Y=>Y.textValue),k=Zd(oe,J,pe),G=(U=ne.find(Y=>Y.textValue===k))===null||U===void 0?void 0:U.ref.current;(function Y(X){O.current=X,window.clearTimeout(R.current),X!==""&&(R.current=window.setTimeout(()=>Y(""),1e3))})(J),G&&setTimeout(()=>G.focus())};o.useEffect(()=>()=>window.clearTimeout(R.current),[]),an();const W=o.useCallback(A=>{var H,U;return B.current===((H=N.current)===null||H===void 0?void 0:H.side)&&Qd(A,(U=N.current)===null||U===void 0?void 0:U.area)},[]);return o.createElement(Rd,{scope:n,searchRef:O,onItemEnter:o.useCallback(A=>{W(A)&&A.preventDefault()},[W]),onItemLeave:o.useCallback(A=>{var H;W(A)||((H=S.current)===null||H===void 0||H.focus(),y(null))},[W]),onTriggerLeave:o.useCallback(A=>{W(A)&&A.preventDefault()},[W]),pointerGraceTimerRef:F,onPointerGraceIntentChange:o.useCallback(A=>{N.current=A},[])},o.createElement(D,V,o.createElement(sn,{asChild:!0,trapped:c,onMountAutoFocus:_(a,A=>{var H;A.preventDefault(),(H=S.current)===null||H===void 0||H.focus()}),onUnmountAutoFocus:s},o.createElement(Fe,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:$,onDismiss:v},o.createElement(fn,E({asChild:!0},w,{dir:h.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:y,onEntryFocus:_(l,A=>{h.isUsingKeyboardRef.current||A.preventDefault()})}),o.createElement(Tt,E({role:"menu","aria-orientation":"vertical","data-state":Jc(m.open),"data-radix-menu-content":"",dir:h.dir},g,p,{ref:T,style:{outline:"none",...p.style},onKeyDown:_(p.onKeyDown,A=>{const U=A.target.closest("[data-radix-menu-content]")===A.currentTarget,J=A.ctrlKey||A.altKey||A.metaKey,ne=A.key.length===1;U&&(A.key==="Tab"&&A.preventDefault(),!J&&ne&&L(A.key));const ae=S.current;if(A.target!==ae||!hd.includes(A.key))return;A.preventDefault();const oe=x().filter(k=>!k.disabled).map(k=>k.ref.current);Hc.includes(A.key)&&oe.reverse(),Xd(oe)}),onBlur:_(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(R.current),O.current="")}),onPointerMove:_(e.onPointerMove,gt(A=>{const H=A.target,U=P.current!==A.clientX;if(A.currentTarget.contains(H)&&U){const J=A.clientX>P.current?"right":"left";B.current=J,P.current=A.clientX}}))})))))))}),Dd=o.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return o.createElement(M.div,E({role:"group"},r,{ref:t}))}),Ad=o.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return o.createElement(M.div,E({},r,{ref:t}))}),ro="MenuItem",Fr="menu.itemSelect",Fo=o.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...c}=e,a=o.useRef(null),s=Ot(ro,e.__scopeMenu),i=ko(ro,e.__scopeMenu),l=I(t,a),d=o.useRef(!1),f=()=>{const u=a.current;if(!n&&u){const $=new CustomEvent(Fr,{bubbles:!0,cancelable:!0});u.addEventListener(Fr,v=>r?.(v),{once:!0}),So(u,$),$.defaultPrevented?d.current=!1:s.onClose()}};return o.createElement(Xc,E({},c,{ref:l,disabled:n,onClick:_(e.onClick,f),onPointerDown:u=>{var $;($=e.onPointerDown)===null||$===void 0||$.call(e,u),d.current=!0},onPointerUp:_(e.onPointerUp,u=>{var $;d.current||($=u.currentTarget)===null||$===void 0||$.click()}),onKeyDown:_(e.onKeyDown,u=>{const $=i.searchRef.current!=="";n||$&&u.key===" "||oo.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),Xc=o.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:c,...a}=e,s=ko(ro,n),i=Wc(n),l=o.useRef(null),d=I(t,l),[f,u]=o.useState(!1),[$,v]=o.useState("");return o.useEffect(()=>{const b=l.current;if(b){var p;v(((p=b.textContent)!==null&&p!==void 0?p:"").trim())}},[a.children]),o.createElement(ht.ItemSlot,{scope:n,disabled:r,textValue:c??$},o.createElement(pn,E({asChild:!0},i,{focusable:!r}),o.createElement(M.div,E({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:d,onPointerMove:_(e.onPointerMove,gt(b=>{r?s.onItemLeave(b):(s.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus())})),onPointerLeave:_(e.onPointerLeave,gt(b=>s.onItemLeave(b))),onFocus:_(e.onFocus,()=>u(!0)),onBlur:_(e.onBlur,()=>u(!1))}))))}),Od=o.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...c}=e;return o.createElement(Zc,{scope:e.__scopeMenu,checked:n},o.createElement(Fo,E({role:"menuitemcheckbox","aria-checked":nn(n)?"mixed":n},c,{ref:t,"data-state":Vo(n),onSelect:_(c.onSelect,()=>r?.(nn(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),Id="MenuRadioGroup",[Nd,kd]=Ge(Id,{value:void 0,onValueChange:()=>{}}),Ld=o.forwardRef((e,t)=>{const{value:n,onValueChange:r,...c}=e,a=z(r);return o.createElement(Nd,{scope:e.__scopeMenu,value:n,onValueChange:a},o.createElement(Dd,E({},c,{ref:t})))}),Fd="MenuRadioItem",Vd=o.forwardRef((e,t)=>{const{value:n,...r}=e,c=kd(Fd,e.__scopeMenu),a=n===c.value;return o.createElement(Zc,{scope:e.__scopeMenu,checked:a},o.createElement(Fo,E({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":Vo(a),onSelect:_(r.onSelect,()=>{var s;return(s=c.onValueChange)===null||s===void 0?void 0:s.call(c,n)},{checkForDefaultPrevented:!1})})))}),jc="MenuItemIndicator",[Zc,Kd]=Ge(jc,{checked:!1}),Bd=o.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...c}=e,a=Kd(jc,n);return o.createElement(Q,{present:r||nn(a.checked)||a.checked===!0},o.createElement(M.span,E({},c,{ref:t,"data-state":Vo(a.checked)})))}),Hd=o.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return o.createElement(M.div,E({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),qc="MenuSub",[Wd,Qc]=Ge(qc),Ud=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:c}=e,a=Ke(qc,t),s=mn(t),[i,l]=o.useState(null),[d,f]=o.useState(null),u=z(c);return o.useEffect(()=>(a.open===!1&&u(!1),()=>u(!1)),[a.open,u]),o.createElement(Pt,s,o.createElement(Uc,{scope:t,open:r,onOpenChange:u,content:d,onContentChange:f},o.createElement(Wd,{scope:t,contentId:te(),triggerId:te(),trigger:i,onTriggerChange:l},n)))},Ut="MenuSubTrigger",zd=o.forwardRef((e,t)=>{const n=Ke(Ut,e.__scopeMenu),r=Ot(Ut,e.__scopeMenu),c=Qc(Ut,e.__scopeMenu),a=ko(Ut,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=o.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return o.useEffect(()=>f,[f]),o.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),l(null)}},[i,l]),o.createElement(zc,E({asChild:!0},d),o.createElement(Xc,E({id:c.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":c.contentId,"data-state":Jc(n.open)},e,{ref:_t(t,c.onTriggerChange),onClick:u=>{var $;($=e.onClick)===null||$===void 0||$.call(e,u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:_(e.onPointerMove,gt(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:_(e.onPointerLeave,gt(u=>{var $;f();const v=($=n.content)===null||$===void 0?void 0:$.getBoundingClientRect();if(v){var b;const p=(b=n.content)===null||b===void 0?void 0:b.dataset.side,m=p==="right",h=m?-5:5,g=v[m?"left":"right"],w=v[m?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+h,y:u.clientY},{x:g,y:v.top},{x:w,y:v.top},{x:w,y:v.bottom},{x:g,y:v.bottom}],side:p}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:_(e.onKeyDown,u=>{const $=a.searchRef.current!=="";if(!(e.disabled||$&&u.key===" ")&&gd[r.dir].includes(u.key)){var v;n.onOpenChange(!0),(v=n.content)===null||v===void 0||v.focus(),u.preventDefault()}})})))}),Gd="MenuSubContent",Yd=o.forwardRef((e,t)=>{const n=Yc(me,e.__scopeMenu),{forceMount:r=n.forceMount,...c}=e,a=Ke(me,e.__scopeMenu),s=Ot(me,e.__scopeMenu),i=Qc(Gd,e.__scopeMenu),l=o.useRef(null),d=I(t,l);return o.createElement(ht.Provider,{scope:e.__scopeMenu},o.createElement(Q,{present:r||a.open},o.createElement(ht.Slot,{scope:e.__scopeMenu},o.createElement(Lo,E({id:i.contentId,"aria-labelledby":i.triggerId},c,{ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var u;s.isUsingKeyboardRef.current&&((u=l.current)===null||u===void 0||u.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:_(e.onFocusOutside,f=>{f.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:_(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:_(e.onKeyDown,f=>{const u=f.currentTarget.contains(f.target),$=wd[s.dir].includes(f.key);if(u&&$){var v;a.onOpenChange(!1),(v=i.trigger)===null||v===void 0||v.focus(),f.preventDefault()}})})))))});function Jc(e){return e?"open":"closed"}function nn(e){return e==="indeterminate"}function Vo(e){return nn(e)?"indeterminate":e?"checked":"unchecked"}function Xd(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function jd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Zd(e,t,n){const c=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=jd(e,Math.max(a,0));c.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.toLowerCase().startsWith(c.toLowerCase()));return l!==n?l:void 0}function qd(e,t){const{x:n,y:r}=e;let c=!1;for(let a=0,s=t.length-1;ar!=f>r&&n<(d-i)*(r-l)/(f-l)+i&&(c=!c)}return c}function Qd(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return qd(n,t)}function gt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const ea=yd,ta=zc,Ko=Sd,Bo=Pd,Ho=Ad,Wo=Fo,Uo=Od,Jd=Ld,zo=Vd,Go=Bd,Yo=Hd,eu=Ud,Xo=zd,jo=Yd,na="DropdownMenu",[tu,G0]=q(na,[At]),ve=At(),[nu,oa]=tu(na),ou=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:c,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=ve(t),d=o.useRef(null),[f=!1,u]=ee({prop:c,defaultProp:a,onChange:s});return o.createElement(nu,{scope:t,triggerId:te(),triggerRef:d,contentId:te(),open:f,onOpenChange:u,onOpenToggle:o.useCallback(()=>u($=>!$),[u]),modal:i},o.createElement(ea,E({},l,{open:f,onOpenChange:u,dir:r,modal:i}),n))},ru="DropdownMenuTrigger",cu=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...c}=e,a=oa(ru,n),s=ve(n);return o.createElement(ta,E({asChild:!0},s),o.createElement(M.button,E({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},c,{ref:_t(t,a.triggerRef),onPointerDown:_(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:_(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})))}),au=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ve(t);return o.createElement(Ko,E({},r,n))},su="DropdownMenuContent",iu=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,c=oa(su,n),a=ve(n),s=o.useRef(!1);return o.createElement(Bo,E({id:c.contentId,"aria-labelledby":c.triggerId},a,r,{ref:t,onCloseAutoFocus:_(e.onCloseAutoFocus,i=>{var l;s.current||(l=c.triggerRef.current)===null||l===void 0||l.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:_(e.onInteractOutside,i=>{const l=i.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,f=l.button===2||d;(!c.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),lu=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,c=ve(n);return o.createElement(Ho,E({},c,r,{ref:t}))}),du=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,c=ve(n);return o.createElement(Wo,E({},c,r,{ref:t}))}),uu=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,c=ve(n);return o.createElement(Uo,E({},c,r,{ref:t}))}),fu=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,c=ve(n);return o.createElement(zo,E({},c,r,{ref:t}))}),pu=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,c=ve(n);return o.createElement(Go,E({},c,r,{ref:t}))}),$u=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,c=ve(n);return o.createElement(Yo,E({},c,r,{ref:t}))}),vu=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,c=ve(n);return o.createElement(Xo,E({},c,r,{ref:t}))}),bu=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,c=ve(n);return o.createElement(jo,E({},c,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Y0=ou,X0=cu,j0=au,Z0=iu,q0=lu,Q0=du,J0=uu,em=fu,tm=pu,nm=$u,om=vu,rm=bu;function se(e,t){if(e==null)return{};var n={},r=Object.keys(e),c,a;for(a=0;a=0)&&(n[c]=e[c]);return n}var mu=["color"],cm=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,mu);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),hu=["color"],am=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,hu);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),gu=["color"],sm=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,gu);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),wu=["color"],im=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,wu);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Eu=["color"],lm=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,Eu);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),xu=["color"],dm=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,xu);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Cu=["color"],um=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,Cu);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),yu=["color"],fm=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,yu);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),_u=["color"],pm=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,_u);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))}),Su=["color"],$m=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,Su);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Ru=["color"],vm=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,Ru);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M5.5 4.625C6.12132 4.625 6.625 4.12132 6.625 3.5C6.625 2.87868 6.12132 2.375 5.5 2.375C4.87868 2.375 4.375 2.87868 4.375 3.5C4.375 4.12132 4.87868 4.625 5.5 4.625ZM9.5 4.625C10.1213 4.625 10.625 4.12132 10.625 3.5C10.625 2.87868 10.1213 2.375 9.5 2.375C8.87868 2.375 8.375 2.87868 8.375 3.5C8.375 4.12132 8.87868 4.625 9.5 4.625ZM10.625 7.5C10.625 8.12132 10.1213 8.625 9.5 8.625C8.87868 8.625 8.375 8.12132 8.375 7.5C8.375 6.87868 8.87868 6.375 9.5 6.375C10.1213 6.375 10.625 6.87868 10.625 7.5ZM5.5 8.625C6.12132 8.625 6.625 8.12132 6.625 7.5C6.625 6.87868 6.12132 6.375 5.5 6.375C4.87868 6.375 4.375 6.87868 4.375 7.5C4.375 8.12132 4.87868 8.625 5.5 8.625ZM10.625 11.5C10.625 12.1213 10.1213 12.625 9.5 12.625C8.87868 12.625 8.375 12.1213 8.375 11.5C8.375 10.8787 8.87868 10.375 9.5 10.375C10.1213 10.375 10.625 10.8787 10.625 11.5ZM5.5 12.625C6.12132 12.625 6.625 12.1213 6.625 11.5C6.625 10.8787 6.12132 10.375 5.5 10.375C4.87868 10.375 4.375 10.8787 4.375 11.5C4.375 12.1213 4.87868 12.625 5.5 12.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Pu=["color"],bm=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,Pu);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Tu=["color"],mm=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,Tu);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Mu=["color"],hm=o.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,c=se(e,Mu);return o.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:t}),o.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const ra="ContextMenu",[Du,gm]=q(ra,[At]),Ce=At(),[wm,Au]=Du(ra),Ou=e=>{const{__scopeContextMenu:t,...n}=e,r=Ce(t);return o.createElement(Ko,E({},r,n))},Iu="ContextMenuContent",Nu=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=Au(Iu,n),a=Ce(n),s=o.useRef(!1);return o.createElement(Bo,E({},a,r,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{var l;(l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,i),!i.defaultPrevented&&s.current&&i.preventDefault(),s.current=!1},onInteractOutside:i=>{var l;(l=e.onInteractOutside)===null||l===void 0||l.call(e,i),!i.defaultPrevented&&!c.modal&&(s.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),ku=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=Ce(n);return o.createElement(Ho,E({},c,r,{ref:t}))}),Lu=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=Ce(n);return o.createElement(Wo,E({},c,r,{ref:t}))}),Fu=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=Ce(n);return o.createElement(Uo,E({},c,r,{ref:t}))}),Vu=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=Ce(n);return o.createElement(zo,E({},c,r,{ref:t}))}),Ku=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=Ce(n);return o.createElement(Go,E({},c,r,{ref:t}))}),Bu=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=Ce(n);return o.createElement(Yo,E({},c,r,{ref:t}))}),Hu=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=Ce(n);return o.createElement(Xo,E({},c,r,{ref:t}))}),Wu=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=Ce(n);return o.createElement(jo,E({},c,r,{ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Em=Ou,xm=Nu,Cm=ku,ym=Lu,_m=Fu,Sm=Vu,Rm=Ku,Pm=Bu,Tm=Hu,Mm=Wu;function dt(e){const t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const hn=o.forwardRef((e,t)=>o.createElement(M.span,E({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),ca=hn,It="NavigationMenu",[Zo,aa,Uu]=Te(It),[co,zu,Gu]=Te(It),[qo,Dm]=q(It,[Uu,Gu]),[Yu,he]=qo(It),[Xu,ju]=qo(It),Zu=o.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:c,defaultValue:a,delayDuration:s=200,skipDelayDuration:i=300,orientation:l="horizontal",dir:d,...f}=e,[u,$]=o.useState(null),v=I(t,R=>$(R)),b=Ee(d),p=o.useRef(0),m=o.useRef(0),h=o.useRef(0),[g,w]=o.useState(!0),[x="",C]=ee({prop:r,onChange:R=>{const O=R!=="",F=i>0;O?(window.clearTimeout(h.current),F&&w(!1)):(window.clearTimeout(h.current),h.current=window.setTimeout(()=>w(!0),i)),c?.(R)},defaultProp:a}),y=o.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>C(""),150)},[C]),S=o.useCallback(R=>{window.clearTimeout(m.current),C(R)},[C]),T=o.useCallback(R=>{x===R?window.clearTimeout(m.current):p.current=window.setTimeout(()=>{window.clearTimeout(m.current),C(R)},s)},[x,C,s]);return o.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),o.createElement(qu,{scope:n,isRootMenu:!0,value:x,dir:b,orientation:l,rootNavigationMenu:u,onTriggerEnter:R=>{window.clearTimeout(p.current),g?T(R):S(R)},onTriggerLeave:()=>{window.clearTimeout(p.current),y()},onContentEnter:()=>window.clearTimeout(m.current),onContentLeave:y,onItemSelect:R=>{C(O=>O===R?"":R)},onItemDismiss:()=>C("")},o.createElement(M.nav,E({"aria-label":"Main","data-orientation":l,dir:b},f,{ref:v})))}),qu=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:c,orientation:a,children:s,value:i,onItemSelect:l,onItemDismiss:d,onTriggerEnter:f,onTriggerLeave:u,onContentEnter:$,onContentLeave:v}=e,[b,p]=o.useState(null),[m,h]=o.useState(new Map),[g,w]=o.useState(null);return o.createElement(Yu,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:i,previousValue:dt(i),baseId:te(),dir:c,orientation:a,viewport:b,onViewportChange:p,indicatorTrack:g,onIndicatorTrackChange:w,onTriggerEnter:z(f),onTriggerLeave:z(u),onContentEnter:z($),onContentLeave:z(v),onItemSelect:z(l),onItemDismiss:z(d),onViewportContentChange:o.useCallback((x,C)=>{h(y=>(y.set(x,C),new Map(y)))},[]),onViewportContentRemove:o.useCallback(x=>{h(C=>C.has(x)?(C.delete(x),new Map(C)):C)},[])},o.createElement(Zo.Provider,{scope:t},o.createElement(Xu,{scope:t,items:m},s)))},Qu="NavigationMenuList",Ju=o.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,c=he(Qu,n),a=o.createElement(M.ul,E({"data-orientation":c.orientation},r,{ref:t}));return o.createElement(M.div,{style:{position:"relative"},ref:c.onIndicatorTrackChange},o.createElement(Zo.Slot,{scope:n},c.isRootMenu?o.createElement(ua,{asChild:!0},a):a))}),ef="NavigationMenuItem",[Am,sa]=qo(ef),Vr="NavigationMenuTrigger",tf=o.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...c}=e,a=he(Vr,e.__scopeNavigationMenu),s=sa(Vr,e.__scopeNavigationMenu),i=o.useRef(null),l=I(i,s.triggerRef,t),d=pa(a.baseId,s.value),f=$a(a.baseId,s.value),u=o.useRef(!1),$=o.useRef(!1),v=s.value===a.value;return o.createElement(o.Fragment,null,o.createElement(Zo.ItemSlot,{scope:n,value:s.value},o.createElement(uf,{asChild:!0},o.createElement(M.button,E({id:d,disabled:r,"data-disabled":r?"":void 0,"data-state":Qo(v),"aria-expanded":v,"aria-controls":f},c,{ref:l,onPointerEnter:_(e.onPointerEnter,()=>{$.current=!1,s.wasEscapeCloseRef.current=!1}),onPointerMove:_(e.onPointerMove,on(()=>{r||$.current||s.wasEscapeCloseRef.current||u.current||(a.onTriggerEnter(s.value),u.current=!0)})),onPointerLeave:_(e.onPointerLeave,on(()=>{r||(a.onTriggerLeave(),u.current=!1)})),onClick:_(e.onClick,()=>{a.onItemSelect(s.value),$.current=v}),onKeyDown:_(e.onKeyDown,b=>{const m={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];v&&b.key===m&&(s.onEntryKeyDown(),b.preventDefault())})})))),v&&o.createElement(o.Fragment,null,o.createElement(ca,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:b=>{const p=s.contentRef.current,m=b.relatedTarget,h=m===i.current,g=p?.contains(m);(h||!g)&&s.onFocusProxyEnter(h?"start":"end")}}),a.viewport&&o.createElement("span",{"aria-owns":f})))}),ia="NavigationMenuIndicator",nf=o.forwardRef((e,t)=>{const{forceMount:n,...r}=e,c=he(ia,e.__scopeNavigationMenu),a=!!c.value;return c.indicatorTrack?yo.createPortal(o.createElement(Q,{present:n||a},o.createElement(of,E({},r,{ref:t}))),c.indicatorTrack):null}),of=o.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,c=he(ia,n),a=aa(n),[s,i]=o.useState(null),[l,d]=o.useState(null),f=c.orientation==="horizontal",u=!!c.value;o.useEffect(()=>{var v;const p=(v=a().find(m=>m.value===c.value))===null||v===void 0?void 0:v.ref.current;p&&i(p)},[a,c.value]);const $=()=>{s&&d({size:f?s.offsetWidth:s.offsetHeight,offset:f?s.offsetLeft:s.offsetTop})};return ao(s,$),ao(c.indicatorTrack,$),l?o.createElement(M.div,E({"aria-hidden":!0,"data-state":u?"visible":"hidden","data-orientation":c.orientation},r,{ref:t,style:{position:"absolute",...f?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null}),wt="NavigationMenuContent",rf=o.forwardRef((e,t)=>{const{forceMount:n,...r}=e,c=he(wt,e.__scopeNavigationMenu),a=sa(wt,e.__scopeNavigationMenu),s=I(a.contentRef,t),i=a.value===c.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return c.viewport?o.createElement(cf,E({forceMount:n},l,{ref:s})):o.createElement(Q,{present:n||i},o.createElement(la,E({"data-state":Qo(i)},l,{ref:s,onPointerEnter:_(e.onPointerEnter,c.onContentEnter),onPointerLeave:_(e.onPointerLeave,on(c.onContentLeave)),style:{pointerEvents:!i&&c.isRootMenu?"none":void 0,...l.style}})))}),cf=o.forwardRef((e,t)=>{const n=he(wt,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:c}=n;return re(()=>{r(e.value,{ref:t,...e})},[e,t,r]),re(()=>()=>c(e.value),[e.value,c]),null}),Wn="navigationMenu.rootContentDismiss",la=o.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:c,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:i,onContentFocusOutside:l,...d}=e,f=he(wt,n),u=o.useRef(null),$=I(u,t),v=pa(f.baseId,r),b=$a(f.baseId,r),p=aa(n),m=o.useRef(null),{onItemDismiss:h}=f;o.useEffect(()=>{const w=u.current;if(f.isRootMenu&&w){const x=()=>{var C;h(),i(),w.contains(document.activeElement)&&((C=c.current)===null||C===void 0||C.focus())};return w.addEventListener(Wn,x),()=>w.removeEventListener(Wn,x)}},[f.isRootMenu,e.value,c,h,i]);const g=o.useMemo(()=>{const x=p().map(O=>O.value);f.dir==="rtl"&&x.reverse();const C=x.indexOf(f.value),y=x.indexOf(f.previousValue),S=r===f.value,T=y===x.indexOf(r);if(!S&&!T)return m.current;const R=(()=>{if(C!==y){if(S&&y!==-1)return C>y?"from-end":"from-start";if(T&&C!==-1)return C>y?"to-start":"to-end"}return null})();return m.current=R,R},[f.previousValue,f.value,f.dir,p,r]);return o.createElement(ua,{asChild:!0},o.createElement(Fe,E({id:b,"aria-labelledby":v,"data-motion":g,"data-orientation":f.orientation},d,{ref:$,onDismiss:()=>{var w;const x=new Event(Wn,{bubbles:!0,cancelable:!0});(w=u.current)===null||w===void 0||w.dispatchEvent(x)},onFocusOutside:_(e.onFocusOutside,w=>{var x;l();const C=w.target;(x=f.rootNavigationMenu)!==null&&x!==void 0&&x.contains(C)&&w.preventDefault()}),onPointerDownOutside:_(e.onPointerDownOutside,w=>{var x;const C=w.target,y=p().some(T=>{var R;return(R=T.ref.current)===null||R===void 0?void 0:R.contains(C)}),S=f.isRootMenu&&((x=f.viewport)===null||x===void 0?void 0:x.contains(C));(y||S||!f.isRootMenu)&&w.preventDefault()}),onKeyDown:_(e.onKeyDown,w=>{const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const S=ff(w.currentTarget),T=document.activeElement,R=S.findIndex(N=>N===T),F=w.shiftKey?S.slice(0,R).reverse():S.slice(R+1,S.length);if(fa(F))w.preventDefault();else{var y;(y=a.current)===null||y===void 0||y.focus()}}}),onEscapeKeyDown:_(e.onEscapeKeyDown,w=>{s.current=!0})})))}),da="NavigationMenuViewport",af=o.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!he(da,e.__scopeNavigationMenu).value;return o.createElement(Q,{present:n||a},o.createElement(sf,E({},r,{ref:t})))}),sf=o.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...c}=e,a=he(da,n),s=I(t,a.onViewportChange),i=ju(wt,e.__scopeNavigationMenu),[l,d]=o.useState(null),[f,u]=o.useState(null),$=l?l?.width+"px":void 0,v=l?l?.height+"px":void 0,b=!!a.value,p=b?a.value:a.previousValue;return ao(f,()=>{f&&d({width:f.offsetWidth,height:f.offsetHeight})}),o.createElement(M.div,E({"data-state":Qo(b),"data-orientation":a.orientation},c,{ref:s,style:{pointerEvents:!b&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":$,"--radix-navigation-menu-viewport-height":v,...c.style},onPointerEnter:_(e.onPointerEnter,a.onContentEnter),onPointerLeave:_(e.onPointerLeave,on(a.onContentLeave))}),Array.from(i.items).map(([h,{ref:g,forceMount:w,...x}])=>{const C=p===h;return o.createElement(Q,{key:h,present:w||C},o.createElement(la,E({},x,{ref:_t(g,y=>{C&&y&&u(y)})})))}))}),lf="FocusGroup",ua=o.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,c=he(lf,n);return o.createElement(co.Provider,{scope:n},o.createElement(co.Slot,{scope:n},o.createElement(M.div,E({dir:c.dir},r,{ref:t}))))}),Kr=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],df="FocusGroupItem",uf=o.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,c=zu(n),a=he(df,n);return o.createElement(co.ItemSlot,{scope:n},o.createElement(M.button,E({},r,{ref:t,onKeyDown:_(e.onKeyDown,s=>{if(["Home","End",...Kr].includes(s.key)){let l=c().map(u=>u.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(s.key)&&l.reverse(),Kr.includes(s.key)){const u=l.indexOf(s.currentTarget);l=l.slice(u+1)}setTimeout(()=>fa(l)),s.preventDefault()}})})))});function ff(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fa(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function ao(e,t){const n=z(t);re(()=>{let r=0;if(e){const c=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return c.observe(e),()=>{window.cancelAnimationFrame(r),c.unobserve(e)}}},[e,n])}function Qo(e){return e?"open":"closed"}function pa(e,t){return`${e}-trigger-${t}`}function $a(e,t){return`${e}-content-${t}`}function on(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Om=Zu,Im=Ju,Nm=tf,km=nf,Lm=rf,Fm=af,va="Checkbox",[pf,Vm]=q(va),[$f,vf]=pf(va),bf=o.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:c,defaultChecked:a,required:s,disabled:i,value:l="on",onCheckedChange:d,...f}=e,[u,$]=o.useState(null),v=I(t,w=>$(w)),b=o.useRef(!1),p=u?!!u.closest("form"):!0,[m=!1,h]=ee({prop:c,defaultProp:a,onChange:d}),g=o.useRef(m);return o.useEffect(()=>{const w=u?.form;if(w){const x=()=>h(g.current);return w.addEventListener("reset",x),()=>w.removeEventListener("reset",x)}},[u,h]),o.createElement($f,{scope:n,state:m,disabled:i},o.createElement(M.button,E({type:"button",role:"checkbox","aria-checked":We(m)?"mixed":m,"aria-required":s,"data-state":ba(m),"data-disabled":i?"":void 0,disabled:i,value:l},f,{ref:v,onKeyDown:_(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:_(e.onClick,w=>{h(x=>We(x)?!0:!x),p&&(b.current=w.isPropagationStopped(),b.current||w.stopPropagation())})})),p&&o.createElement(gf,{control:u,bubbles:!b.current,name:r,value:l,checked:m,required:s,disabled:i,style:{transform:"translateX(-100%)"}}))}),mf="CheckboxIndicator",hf=o.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...c}=e,a=vf(mf,n);return o.createElement(Q,{present:r||We(a.state)||a.state===!0},o.createElement(M.span,E({"data-state":ba(a.state),"data-disabled":a.disabled?"":void 0},c,{ref:t,style:{pointerEvents:"none",...e.style}})))}),gf=e=>{const{control:t,checked:n,bubbles:r=!0,...c}=e,a=o.useRef(null),s=dt(n),i=Rt(t);return o.useEffect(()=>{const l=a.current,d=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(d,"checked").set;if(s!==n&&u){const $=new Event("click",{bubbles:r});l.indeterminate=We(n),u.call(l,We(n)?!1:n),l.dispatchEvent($)}},[s,n,r]),o.createElement("input",E({type:"checkbox","aria-hidden":!0,defaultChecked:We(n)?!1:n},c,{tabIndex:-1,ref:a,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function We(e){return e==="indeterminate"}function ba(e){return We(e)?"indeterminate":e?"checked":"unchecked"}const Km=bf,Bm=hf,ma="Radio",[wf,ha]=q(ma),[Ef,xf]=wf(ma),Cf=o.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:c=!1,required:a,disabled:s,value:i="on",onCheck:l,...d}=e,[f,u]=o.useState(null),$=I(t,p=>u(p)),v=o.useRef(!1),b=f?!!f.closest("form"):!0;return o.createElement(Ef,{scope:n,checked:c,disabled:s},o.createElement(M.button,E({type:"button",role:"radio","aria-checked":c,"data-state":ga(c),"data-disabled":s?"":void 0,disabled:s,value:i},d,{ref:$,onClick:_(e.onClick,p=>{c||l?.(),b&&(v.current=p.isPropagationStopped(),v.current||p.stopPropagation())})})),b&&o.createElement(Sf,{control:f,bubbles:!v.current,name:r,value:i,checked:c,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),yf="RadioIndicator",_f=o.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...c}=e,a=xf(yf,n);return o.createElement(Q,{present:r||a.checked},o.createElement(M.span,E({"data-state":ga(a.checked),"data-disabled":a.disabled?"":void 0},c,{ref:t})))}),Sf=e=>{const{control:t,checked:n,bubbles:r=!0,...c}=e,a=o.useRef(null),s=dt(n),i=Rt(t);return o.useEffect(()=>{const l=a.current,d=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(d,"checked").set;if(s!==n&&u){const $=new Event("click",{bubbles:r});u.call(l,n),l.dispatchEvent($)}},[s,n,r]),o.createElement("input",E({type:"radio","aria-hidden":!0,defaultChecked:n},c,{tabIndex:-1,ref:a,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ga(e){return e?"checked":"unchecked"}const Rf=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],wa="RadioGroup",[Pf,Hm]=q(wa,[Ve,ha]),Ea=Ve(),xa=ha(),[Tf,Mf]=Pf(wa),Df=o.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:c,value:a,required:s=!1,disabled:i=!1,orientation:l,dir:d,loop:f=!0,onValueChange:u,...$}=e,v=Ea(n),b=Ee(d),[p,m]=ee({prop:a,defaultProp:c,onChange:u});return o.createElement(Tf,{scope:n,name:r,required:s,disabled:i,value:p,onValueChange:m},o.createElement(fn,E({asChild:!0},v,{orientation:l,dir:b,loop:f}),o.createElement(M.div,E({role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":i?"":void 0,dir:b},$,{ref:t}))))}),Af="RadioGroupItem",Of=o.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...c}=e,a=Mf(Af,n),s=a.disabled||r,i=Ea(n),l=xa(n),d=o.useRef(null),f=I(t,d),u=a.value===c.value,$=o.useRef(!1);return o.useEffect(()=>{const v=p=>{Rf.includes(p.key)&&($.current=!0)},b=()=>$.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",b)}},[]),o.createElement(pn,E({asChild:!0},i,{focusable:!s,active:u}),o.createElement(Cf,E({disabled:s,required:a.required,checked:u},l,c,{name:a.name,ref:f,onCheck:()=>a.onValueChange(c.value),onKeyDown:_(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:_(c.onFocus,()=>{var v;$.current&&((v=d.current)===null||v===void 0||v.click())})})))}),If=o.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,c=xa(n);return o.createElement(_f,E({},c,r,{ref:t}))}),Wm=Df,Um=Of,zm=If;function Et(e,[t,n]){return Math.min(n,Math.max(t,e))}const Nf=[" ","Enter","ArrowUp","ArrowDown"],kf=[" ","Enter"],gn="Select",[wn,Jo,Lf]=Te(gn),[ut,Gm]=q(gn,[Lf,xe]),er=xe(),[Ff,Ye]=ut(gn),[Vf,Kf]=ut(gn),Bf=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:c,onOpenChange:a,value:s,defaultValue:i,onValueChange:l,dir:d,name:f,autoComplete:u,disabled:$,required:v}=e,b=er(t),[p,m]=o.useState(null),[h,g]=o.useState(null),[w,x]=o.useState(!1),C=Ee(d),[y=!1,S]=ee({prop:r,defaultProp:c,onChange:a}),[T,R]=ee({prop:s,defaultProp:i,onChange:l}),O=o.useRef(null),F=p?!!p.closest("form"):!0,[N,B]=o.useState(new Set),P=Array.from(N).map(D=>D.props.value).join(";");return o.createElement(Pt,b,o.createElement(Ff,{required:v,scope:t,trigger:p,onTriggerChange:m,valueNode:h,onValueNodeChange:g,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:te(),value:T,onValueChange:R,open:y,onOpenChange:S,dir:C,triggerPointerDownPosRef:O,disabled:$},o.createElement(wn.Provider,{scope:t},o.createElement(Vf,{scope:e.__scopeSelect,onNativeOptionAdd:o.useCallback(D=>{B(V=>new Set(V).add(D))},[]),onNativeOptionRemove:o.useCallback(D=>{B(V=>{const L=new Set(V);return L.delete(D),L})},[])},n)),F?o.createElement(Sa,{key:P,"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:u,value:T,onChange:D=>R(D.target.value),disabled:$},T===void 0?o.createElement("option",{value:""}):null,Array.from(N)):null))},Hf="SelectTrigger",Wf=o.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...c}=e,a=er(n),s=Ye(Hf,n),i=s.disabled||r,l=I(t,s.onTriggerChange),d=Jo(n),[f,u,$]=Ra(b=>{const p=d().filter(g=>!g.disabled),m=p.find(g=>g.value===s.value),h=Pa(p,b,m);h!==void 0&&s.onValueChange(h.value)}),v=()=>{i||(s.onOpenChange(!0),$())};return o.createElement(un,E({asChild:!0},a),o.createElement(M.button,E({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":_a(s.value)?"":void 0},c,{ref:l,onClick:_(c.onClick,b=>{b.currentTarget.focus()}),onPointerDown:_(c.onPointerDown,b=>{const p=b.target;p.hasPointerCapture(b.pointerId)&&p.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&(v(),s.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)},b.preventDefault())}),onKeyDown:_(c.onKeyDown,b=>{const p=f.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&u(b.key),!(p&&b.key===" ")&&Nf.includes(b.key)&&(v(),b.preventDefault())})})))}),Uf="SelectValue",zf=o.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:c,children:a,placeholder:s="",...i}=e,l=Ye(Uf,n),{onValueNodeHasChildrenChange:d}=l,f=a!==void 0,u=I(t,l.onValueNodeChange);return re(()=>{d(f)},[d,f]),o.createElement(M.span,E({},i,{ref:u,style:{pointerEvents:"none"}}),_a(l.value)?o.createElement(o.Fragment,null,s):a)}),Gf=o.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...c}=e;return o.createElement(M.span,E({"aria-hidden":!0},c,{ref:t}),r||"▼")}),Yf=e=>o.createElement(Mt,E({asChild:!0},e)),ct="SelectContent",Xf=o.forwardRef((e,t)=>{const n=Ye(ct,e.__scopeSelect),[r,c]=o.useState();if(re(()=>{c(new DocumentFragment)},[]),!n.open){const a=r;return a?Le.createPortal(o.createElement(Ca,{scope:e.__scopeSelect},o.createElement(wn.Slot,{scope:e.__scopeSelect},o.createElement("div",null,e.children))),a):null}return o.createElement(jf,E({},e,{ref:t}))}),_e=10,[Ca,En]=ut(ct),jf=o.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:$,collisionPadding:v,sticky:b,hideWhenDetached:p,avoidCollisions:m,...h}=e,g=Ye(ct,n),[w,x]=o.useState(null),[C,y]=o.useState(null),S=I(t,k=>x(k)),[T,R]=o.useState(null),[O,F]=o.useState(null),N=Jo(n),[B,P]=o.useState(!1),D=o.useRef(!1);o.useEffect(()=>{if(w)return Dt(w)},[w]),an();const V=o.useCallback(k=>{const[G,...Y]=N().map(Z=>Z.ref.current),[X]=Y.slice(-1),j=document.activeElement;for(const Z of k)if(Z===j||(Z?.scrollIntoView({block:"nearest"}),Z===G&&C&&(C.scrollTop=0),Z===X&&C&&(C.scrollTop=C.scrollHeight),Z?.focus(),document.activeElement!==j))return},[N,C]),L=o.useCallback(()=>V([T,w]),[V,T,w]);o.useEffect(()=>{B&&L()},[B,L]);const{onOpenChange:W,triggerPointerDownPosRef:A}=g;o.useEffect(()=>{if(w){let k={x:0,y:0};const G=X=>{var j,Z,le,de;k={x:Math.abs(Math.round(X.pageX)-((j=(Z=A.current)===null||Z===void 0?void 0:Z.x)!==null&&j!==void 0?j:0)),y:Math.abs(Math.round(X.pageY)-((le=(de=A.current)===null||de===void 0?void 0:de.y)!==null&&le!==void 0?le:0))}},Y=X=>{k.x<=10&&k.y<=10?X.preventDefault():w.contains(X.target)||W(!1),document.removeEventListener("pointermove",G),A.current=null};return A.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",Y,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",Y,{capture:!0})}}},[w,W,A]),o.useEffect(()=>{const k=()=>W(!1);return window.addEventListener("blur",k),window.addEventListener("resize",k),()=>{window.removeEventListener("blur",k),window.removeEventListener("resize",k)}},[W]);const[H,U]=Ra(k=>{const G=N().filter(j=>!j.disabled),Y=G.find(j=>j.ref.current===document.activeElement),X=Pa(G,k,Y);X&&setTimeout(()=>X.ref.current.focus())}),J=o.useCallback((k,G,Y)=>{const X=!D.current&&!Y;(g.value!==void 0&&g.value===G||X)&&(R(k),X&&(D.current=!0))},[g.value]),ne=o.useCallback(()=>w?.focus(),[w]),ae=o.useCallback((k,G,Y)=>{const X=!D.current&&!Y;(g.value!==void 0&&g.value===G||X)&&F(k)},[g.value]),pe=r==="popper"?Br:Zf,oe=pe===Br?{side:i,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:$,collisionPadding:v,sticky:b,hideWhenDetached:p,avoidCollisions:m}:{};return o.createElement(Ca,{scope:n,content:w,viewport:C,onViewportChange:y,itemRefCallback:J,selectedItem:T,onItemLeave:ne,itemTextRefCallback:ae,focusSelectedItem:L,selectedItemText:O,position:r,isPositioned:B,searchRef:H},o.createElement(vn,{as:Oe,allowPinchZoom:!0},o.createElement(sn,{asChild:!0,trapped:g.open,onMountAutoFocus:k=>{k.preventDefault()},onUnmountAutoFocus:_(c,k=>{var G;(G=g.trigger)===null||G===void 0||G.focus({preventScroll:!0}),k.preventDefault()})},o.createElement(Fe,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:k=>k.preventDefault(),onDismiss:()=>g.onOpenChange(!1)},o.createElement(pe,E({role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:k=>k.preventDefault()},h,oe,{onPlaced:()=>P(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:_(h.onKeyDown,k=>{const G=k.ctrlKey||k.altKey||k.metaKey;if(k.key==="Tab"&&k.preventDefault(),!G&&k.key.length===1&&U(k.key),["ArrowUp","ArrowDown","Home","End"].includes(k.key)){let X=N().filter(j=>!j.disabled).map(j=>j.ref.current);if(["ArrowUp","End"].includes(k.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(k.key)){const j=k.target,Z=X.indexOf(j);X=X.slice(Z+1)}setTimeout(()=>V(X)),k.preventDefault()}})}))))))}),Zf=o.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...c}=e,a=Ye(ct,n),s=En(ct,n),[i,l]=o.useState(null),[d,f]=o.useState(null),u=I(t,S=>f(S)),$=Jo(n),v=o.useRef(!1),b=o.useRef(!0),{viewport:p,selectedItem:m,selectedItemText:h,focusSelectedItem:g}=s,w=o.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&p&&m&&h){const S=a.trigger.getBoundingClientRect(),T=d.getBoundingClientRect(),R=a.valueNode.getBoundingClientRect(),O=h.getBoundingClientRect();if(a.dir!=="rtl"){const j=O.left-T.left,Z=R.left-j,le=S.left-Z,de=S.width+le,ye=Math.max(de,T.width),Ze=window.innerWidth-_e,pt=Et(Z,[_e,Ze-ye]);i.style.minWidth=de+"px",i.style.left=pt+"px"}else{const j=T.right-O.right,Z=window.innerWidth-R.right-j,le=window.innerWidth-S.right-Z,de=S.width+le,ye=Math.max(de,T.width),Ze=window.innerWidth-_e,pt=Et(Z,[_e,Ze-ye]);i.style.minWidth=de+"px",i.style.right=pt+"px"}const F=$(),N=window.innerHeight-_e*2,B=p.scrollHeight,P=window.getComputedStyle(d),D=parseInt(P.borderTopWidth,10),V=parseInt(P.paddingTop,10),L=parseInt(P.borderBottomWidth,10),W=parseInt(P.paddingBottom,10),A=D+V+B+W+L,H=Math.min(m.offsetHeight*5,A),U=window.getComputedStyle(p),J=parseInt(U.paddingTop,10),ne=parseInt(U.paddingBottom,10),ae=S.top+S.height/2-_e,pe=N-ae,oe=m.offsetHeight/2,k=m.offsetTop+oe,G=D+V+k,Y=A-G;if(G<=ae){const j=m===F[F.length-1].ref.current;i.style.bottom="0px";const Z=d.clientHeight-p.offsetTop-p.offsetHeight,le=Math.max(pe,oe+(j?ne:0)+Z+L),de=G+le;i.style.height=de+"px"}else{const j=m===F[0].ref.current;i.style.top="0px";const le=Math.max(ae,D+p.offsetTop+(j?J:0)+oe)+Y;i.style.height=le+"px",p.scrollTop=G-ae+p.offsetTop}i.style.margin=`${_e}px 0`,i.style.minHeight=H+"px",i.style.maxHeight=N+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[$,a.trigger,a.valueNode,i,d,p,m,h,a.dir,r]);re(()=>w(),[w]);const[x,C]=o.useState();re(()=>{d&&C(window.getComputedStyle(d).zIndex)},[d]);const y=o.useCallback(S=>{S&&b.current===!0&&(w(),g?.(),b.current=!1)},[w,g]);return o.createElement(qf,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:v,onScrollButtonChange:y},o.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x}},o.createElement(M.div,E({},c,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}}))))}),Br=o.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:c=_e,...a}=e,s=er(n);return o.createElement(Tt,E({},s,a,{ref:t,align:r,collisionPadding:c,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[qf,Qf]=ut(ct,{}),Hr="SelectViewport",Jf=o.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,c=En(Hr,n),a=Qf(Hr,n),s=I(t,c.onViewportChange),i=o.useRef(0);return o.createElement(o.Fragment,null,o.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),o.createElement(wn.Slot,{scope:n},o.createElement(M.div,E({"data-radix-select-viewport":"",role:"presentation"},r,{ref:s,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:_(r.onScroll,l=>{const d=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=a;if(u!=null&&u.current&&f){const $=Math.abs(i.current-d.scrollTop);if($>0){const v=window.innerHeight-_e*2,b=parseFloat(f.style.minHeight),p=parseFloat(f.style.height),m=Math.max(b,p);if(m0?w:0,f.style.justifyContent="flex-end")}}}i.current=d.scrollTop})}))))}),ep="SelectGroup",[Ym,tp]=ut(ep),np="SelectLabel",op=o.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,c=tp(np,n);return o.createElement(M.div,E({id:c.id},r,{ref:t}))}),so="SelectItem",[rp,ya]=ut(so),cp=o.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:c=!1,textValue:a,...s}=e,i=Ye(so,n),l=En(so,n),d=i.value===r,[f,u]=o.useState(a??""),[$,v]=o.useState(!1),b=I(t,h=>{var g;return(g=l.itemRefCallback)===null||g===void 0?void 0:g.call(l,h,r,c)}),p=te(),m=()=>{c||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return o.createElement(rp,{scope:n,value:r,disabled:c,textId:p,isSelected:d,onItemTextChange:o.useCallback(h=>{u(g=>{var w;return g||((w=h?.textContent)!==null&&w!==void 0?w:"").trim()})},[])},o.createElement(wn.ItemSlot,{scope:n,value:r,disabled:c,textValue:f},o.createElement(M.div,E({role:"option","aria-labelledby":p,"data-highlighted":$?"":void 0,"aria-selected":d&&$,"data-state":d?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1},s,{ref:b,onFocus:_(s.onFocus,()=>v(!0)),onBlur:_(s.onBlur,()=>v(!1)),onPointerUp:_(s.onPointerUp,m),onPointerMove:_(s.onPointerMove,h=>{if(c){var g;(g=l.onItemLeave)===null||g===void 0||g.call(l)}else h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:_(s.onPointerLeave,h=>{if(h.currentTarget===document.activeElement){var g;(g=l.onItemLeave)===null||g===void 0||g.call(l)}}),onKeyDown:_(s.onKeyDown,h=>{var g;((g=l.searchRef)===null||g===void 0?void 0:g.current)!==""&&h.key===" "||(kf.includes(h.key)&&m(),h.key===" "&&h.preventDefault())})}))))}),zt="SelectItemText",ap=o.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:c,...a}=e,s=Ye(zt,n),i=En(zt,n),l=ya(zt,n),d=Kf(zt,n),[f,u]=o.useState(null),$=I(t,h=>u(h),l.onItemTextChange,h=>{var g;return(g=i.itemTextRefCallback)===null||g===void 0?void 0:g.call(i,h,l.value,l.disabled)}),v=f?.textContent,b=o.useMemo(()=>o.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},v),[l.disabled,l.value,v]),{onNativeOptionAdd:p,onNativeOptionRemove:m}=d;return re(()=>(p(b),()=>m(b)),[p,m,b]),o.createElement(o.Fragment,null,o.createElement(M.span,E({id:l.textId},a,{ref:$})),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Le.createPortal(a.children,s.valueNode):null)}),sp="SelectItemIndicator",ip=o.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ya(sp,n).isSelected?o.createElement(M.span,E({"aria-hidden":!0},r,{ref:t})):null}),lp=o.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return o.createElement(M.div,E({"aria-hidden":!0},r,{ref:t}))});function _a(e){return e===""||e===void 0}const Sa=o.forwardRef((e,t)=>{const{value:n,...r}=e,c=o.useRef(null),a=I(t,c),s=dt(n);return o.useEffect(()=>{const i=c.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&f){const u=new Event("change",{bubbles:!0});f.call(i,n),i.dispatchEvent(u)}},[s,n]),o.createElement(hn,{asChild:!0},o.createElement("select",E({},r,{ref:a,defaultValue:n})))});Sa.displayName="BubbleSelect";function Ra(e){const t=z(e),n=o.useRef(""),r=o.useRef(0),c=o.useCallback(s=>{const i=n.current+s;t(i),function l(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(i)},[t]),a=o.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,c,a]}function Pa(e,t,n){const c=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=dp(e,Math.max(a,0));c.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.textValue.toLowerCase().startsWith(c.toLowerCase()));return l!==n?l:void 0}function dp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Xm=Bf,jm=Wf,Zm=zf,qm=Gf,Qm=Yf,Jm=Xf,e1=Jf,t1=op,n1=cp,o1=ap,r1=ip,c1=lp,Ta="Popover",[Ma,a1]=q(Ta,[xe]),tr=xe(),[up,ft]=Ma(Ta),fp=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:c,onOpenChange:a,modal:s=!1}=e,i=tr(t),l=o.useRef(null),[d,f]=o.useState(!1),[u=!1,$]=ee({prop:r,defaultProp:c,onChange:a});return o.createElement(Pt,i,o.createElement(up,{scope:t,contentId:te(),triggerRef:l,open:u,onOpenChange:$,onOpenToggle:o.useCallback(()=>$(v=>!v),[$]),hasCustomAnchor:d,onCustomAnchorAdd:o.useCallback(()=>f(!0),[]),onCustomAnchorRemove:o.useCallback(()=>f(!1),[]),modal:s},n))},pp="PopoverTrigger",$p=o.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,c=ft(pp,n),a=tr(n),s=I(t,c.triggerRef),i=o.createElement(M.button,E({type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Oa(c.open)},r,{ref:s,onClick:_(e.onClick,c.onOpenToggle)}));return c.hasCustomAnchor?i:o.createElement(un,E({asChild:!0},a),i)}),Da="PopoverPortal",[vp,bp]=Ma(Da,{forceMount:void 0}),mp=e=>{const{__scopePopover:t,forceMount:n,children:r,container:c}=e,a=ft(Da,t);return o.createElement(vp,{scope:t,forceMount:n},o.createElement(Q,{present:n||a.open},o.createElement(Mt,{asChild:!0,container:c},r)))},xt="PopoverContent",hp=o.forwardRef((e,t)=>{const n=bp(xt,e.__scopePopover),{forceMount:r=n.forceMount,...c}=e,a=ft(xt,e.__scopePopover);return o.createElement(Q,{present:r||a.open},a.modal?o.createElement(gp,E({},c,{ref:t})):o.createElement(wp,E({},c,{ref:t})))}),gp=o.forwardRef((e,t)=>{const n=ft(xt,e.__scopePopover),r=o.useRef(null),c=I(t,r),a=o.useRef(!1);return o.useEffect(()=>{const s=r.current;if(s)return Dt(s)},[]),o.createElement(vn,{as:Oe,allowPinchZoom:!0},o.createElement(Aa,E({},e,{ref:c,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:_(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,d=i.button===2||l;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:_(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),wp=o.forwardRef((e,t)=>{const n=ft(xt,e.__scopePopover),r=o.useRef(!1),c=o.useRef(!1);return o.createElement(Aa,E({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,a),!a.defaultPrevented){var i;r.current||(i=n.triggerRef.current)===null||i===void 0||i.focus(),a.preventDefault()}r.current=!1,c.current=!1},onInteractOutside:a=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const l=a.target;((i=n.triggerRef.current)===null||i===void 0?void 0:i.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&c.current&&a.preventDefault()}}))}),Aa=o.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:f,...u}=e,$=ft(xt,n),v=tr(n);return an(),o.createElement(sn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:c,onUnmountAutoFocus:a},o.createElement(Fe,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>$.onOpenChange(!1)},o.createElement(Tt,E({"data-state":Oa($.open),role:"dialog",id:$.contentId},v,u,{ref:t,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function Oa(e){return e?"open":"closed"}const s1=fp,i1=$p,l1=mp,d1=hp,Ia="Dialog",[Na,ka]=q(Ia),[Ep,ge]=Na(Ia),xp=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:c,onOpenChange:a,modal:s=!0}=e,i=o.useRef(null),l=o.useRef(null),[d=!1,f]=ee({prop:r,defaultProp:c,onChange:a});return o.createElement(Ep,{scope:t,triggerRef:i,contentRef:l,contentId:te(),titleId:te(),descriptionId:te(),open:d,onOpenChange:f,onOpenToggle:o.useCallback(()=>f(u=>!u),[f]),modal:s},n)},Cp="DialogTrigger",yp=o.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,c=ge(Cp,n),a=I(t,c.triggerRef);return o.createElement(M.button,E({type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":nr(c.open)},r,{ref:a,onClick:_(e.onClick,c.onOpenToggle)}))}),La="DialogPortal",[_p,Fa]=Na(La,{forceMount:void 0}),Sp=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:c}=e,a=ge(La,t);return o.createElement(_p,{scope:t,forceMount:n},o.Children.map(r,s=>o.createElement(Q,{present:n||a.open},o.createElement(Mt,{asChild:!0,container:c},s))))},io="DialogOverlay",Rp=o.forwardRef((e,t)=>{const n=Fa(io,e.__scopeDialog),{forceMount:r=n.forceMount,...c}=e,a=ge(io,e.__scopeDialog);return a.modal?o.createElement(Q,{present:r||a.open},o.createElement(Pp,E({},c,{ref:t}))):null}),Pp=o.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,c=ge(io,n);return o.createElement(vn,{as:Oe,allowPinchZoom:!0,shards:[c.contentRef]},o.createElement(M.div,E({"data-state":nr(c.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),at="DialogContent",Tp=o.forwardRef((e,t)=>{const n=Fa(at,e.__scopeDialog),{forceMount:r=n.forceMount,...c}=e,a=ge(at,e.__scopeDialog);return o.createElement(Q,{present:r||a.open},a.modal?o.createElement(Mp,E({},c,{ref:t})):o.createElement(Dp,E({},c,{ref:t})))}),Mp=o.forwardRef((e,t)=>{const n=ge(at,e.__scopeDialog),r=o.useRef(null),c=I(t,n.contentRef,r);return o.useEffect(()=>{const a=r.current;if(a)return Dt(a)},[]),o.createElement(Va,E({},e,{ref:c,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:_(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:_(e.onFocusOutside,a=>a.preventDefault())}))}),Dp=o.forwardRef((e,t)=>{const n=ge(at,e.__scopeDialog),r=o.useRef(!1),c=o.useRef(!1);return o.createElement(Va,E({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,a),!a.defaultPrevented){var i;r.current||(i=n.triggerRef.current)===null||i===void 0||i.focus(),a.preventDefault()}r.current=!1,c.current=!1},onInteractOutside:a=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const l=a.target;((i=n.triggerRef.current)===null||i===void 0?void 0:i.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&c.current&&a.preventDefault()}}))}),Va=o.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:a,...s}=e,i=ge(at,n),l=o.useRef(null),d=I(t,l);return an(),o.createElement(o.Fragment,null,o.createElement(sn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:c,onUnmountAutoFocus:a},o.createElement(Fe,E({role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":nr(i.open)},s,{ref:d,onDismiss:()=>i.onOpenChange(!1)}))),!1)}),Ka="DialogTitle",Ap=o.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,c=ge(Ka,n);return o.createElement(M.h2,E({id:c.titleId},r,{ref:t}))}),Op="DialogDescription",Ip=o.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,c=ge(Op,n);return o.createElement(M.p,E({id:c.descriptionId},r,{ref:t}))}),Np="DialogClose",kp=o.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,c=ge(Np,n);return o.createElement(M.button,E({type:"button"},r,{ref:t,onClick:_(e.onClick,()=>c.onOpenChange(!1))}))});function nr(e){return e?"open":"closed"}const Lp="DialogTitleWarning",[Fp,u1]=si(Lp,{contentName:at,titleName:Ka,docsSlug:"dialog"}),f1=xp,p1=yp,Vp=Sp,Kp=Rp,Bp=Tp,Hp=Ap,Wp=Ip,Ba=kp;function ot(e,t,{checkForDefaultPrevented:n=!0}={}){return function(c){if(e?.(c),n===!1||!c.defaultPrevented)return t?.(c)}}function Up(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ha(...e){return t=>e.forEach(n=>Up(n,t))}function Nt(...e){return o.useCallback(Ha(...e),e)}function zp(e,t=[]){let n=[];function r(a,s){const i=o.createContext(s),l=n.length;n=[...n,s];function d(u){const{scope:$,children:v,...b}=u,p=$?.[e][l]||i,m=o.useMemo(()=>b,Object.values(b));return o.createElement(p.Provider,{value:m},v)}function f(u,$){const v=$?.[e][l]||i,b=o.useContext(v);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return d.displayName=a+"Provider",[d,f]}const c=()=>{const a=n.map(s=>o.createContext(s));return function(i){const l=i?.[e]||a;return o.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return c.scopeName=e,[r,Gp(c,...t)]}function Gp(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(a)[`__scope${d}`];return{...i,...u}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const lo=globalThis?.document?o.useLayoutEffect:()=>{},Yp=lc.useId||(()=>{});let Xp=0;function Un(e){const[t,n]=o.useState(Yp());return lo(()=>{e||n(r=>r??String(Xp++))},[e]),e||(t?`radix-${t}`:"")}function ze(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function jp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,c]=Zp({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,i=ze(n),l=o.useCallback(d=>{if(a){const u=typeof d=="function"?d(e):d;u!==e&&i(u)}else c(d)},[a,e,c,i]);return[s,l]}function Zp({defaultProp:e,onChange:t}){const n=o.useState(e),[r]=n,c=o.useRef(r),a=ze(t);return o.useEffect(()=>{c.current!==r&&(a(r),c.current=r)},[r,c,a]),n}const or=o.forwardRef((e,t)=>{const{children:n,...r}=e,c=o.Children.toArray(n),a=c.find(Qp);if(a){const s=a.props.children,i=c.map(l=>l===a?o.Children.count(s)>1?o.Children.only(null):o.isValidElement(s)?s.props.children:null:l);return o.createElement(uo,E({},r,{ref:t}),o.isValidElement(s)?o.cloneElement(s,void 0,i):null)}return o.createElement(uo,E({},r,{ref:t}),n)});or.displayName="Slot";const uo=o.forwardRef((e,t)=>{const{children:n,...r}=e;return o.isValidElement(n)?o.cloneElement(n,{...Jp(r,n.props),ref:Ha(t,n.ref)}):o.Children.count(n)>1?o.Children.only(null):null});uo.displayName="SlotClone";const qp=({children:e})=>o.createElement(o.Fragment,null,e);function Qp(e){return o.isValidElement(e)&&e.type===qp}function Jp(e,t){const n={...t};for(const r in t){const c=e[r],a=t[r];/^on[A-Z]/.test(r)?n[r]=(...i)=>{a?.(...i),c?.(...i)}:r==="style"?n[r]={...c,...a}:r==="className"&&(n[r]=[c,a].filter(Boolean).join(" "))}return{...e,...n}}const e$=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],xn=e$.reduce((e,t)=>{const n=o.forwardRef((r,c)=>{const{asChild:a,...s}=r,i=a?or:t;return o.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),o.createElement(i,E({},s,{ref:c}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function t$(e,t){e&&Le.flushSync(()=>e.dispatchEvent(t))}function n$(e){const t=ze(e);o.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}const fo="dismissableLayer.update",o$="dismissableLayer.pointerDownOutside",r$="dismissableLayer.focusOutside";let Wr;const c$=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),a$=o.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,d=o.useContext(c$),[f,u]=o.useState(null),[,$]=o.useState({}),v=Nt(t,y=>u(y)),b=Array.from(d.layers),[p]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(p),h=f?b.indexOf(f):-1,g=d.layersWithOutsidePointerEventsDisabled.size>0,w=h>=m,x=s$(y=>{const S=y.target,T=[...d.branches].some(R=>R.contains(S));!w||T||(c?.(y),s?.(y),y.defaultPrevented||i?.())}),C=i$(y=>{const S=y.target;[...d.branches].some(R=>R.contains(S))||(a?.(y),s?.(y),y.defaultPrevented||i?.())});return n$(y=>{h===d.layers.size-1&&(r?.(y),!y.defaultPrevented&&i&&(y.preventDefault(),i()))}),o.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Wr=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ur(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=Wr)}},[f,n,d]),o.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ur())},[f,d]),o.useEffect(()=>{const y=()=>$({});return document.addEventListener(fo,y),()=>document.removeEventListener(fo,y)},[]),o.createElement(xn.div,E({},l,{ref:v,style:{pointerEvents:g?w?"auto":"none":void 0,...e.style},onFocusCapture:ot(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ot(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ot(e.onPointerDownCapture,x.onPointerDownCapture)}))});function s$(e){const t=ze(e),n=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{const c=s=>{if(s.target&&!n.current){let l=function(){Wa(o$,t,i,{discrete:!0})};const i={originalEvent:s};s.pointerType==="touch"?(document.removeEventListener("click",r.current),r.current=l,document.addEventListener("click",r.current,{once:!0})):l()}n.current=!1},a=window.setTimeout(()=>{document.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(a),document.removeEventListener("pointerdown",c),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}function i$(e){const t=ze(e),n=o.useRef(!1);return o.useEffect(()=>{const r=c=>{c.target&&!n.current&&Wa(r$,t,{originalEvent:c},{discrete:!1})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ur(){const e=new CustomEvent(fo);document.dispatchEvent(e)}function Wa(e,t,n,{discrete:r}){const c=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&c.addEventListener(e,t,{once:!0}),r?t$(c,a):c.dispatchEvent(a)}const zn="focusScope.autoFocusOnMount",Gn="focusScope.autoFocusOnUnmount",zr={bubbles:!1,cancelable:!0},l$=o.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:a,...s}=e,[i,l]=o.useState(null),d=ze(c),f=ze(a),u=o.useRef(null),$=Nt(t,p=>l(p)),v=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let p=function(h){if(v.paused||!i)return;const g=h.target;i.contains(g)?u.current=g:He(u.current,{select:!0})},m=function(h){v.paused||!i||i.contains(h.relatedTarget)||He(u.current,{select:!0})};return document.addEventListener("focusin",p),document.addEventListener("focusout",m),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",m)}}},[r,i,v.paused]),o.useEffect(()=>{if(i){Yr.add(v);const p=document.activeElement;if(!i.contains(p)){const h=new CustomEvent(zn,zr);i.addEventListener(zn,d),i.dispatchEvent(h),h.defaultPrevented||(d$(v$(Ua(i)),{select:!0}),document.activeElement===p&&He(i))}return()=>{i.removeEventListener(zn,d),setTimeout(()=>{const h=new CustomEvent(Gn,zr);i.addEventListener(Gn,f),i.dispatchEvent(h),h.defaultPrevented||He(p??document.body,{select:!0}),i.removeEventListener(Gn,f),Yr.remove(v)},0)}}},[i,d,f,v]);const b=o.useCallback(p=>{if(!n&&!r||v.paused)return;const m=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,h=document.activeElement;if(m&&h){const g=p.currentTarget,[w,x]=u$(g);w&&x?!p.shiftKey&&h===x?(p.preventDefault(),n&&He(w,{select:!0})):p.shiftKey&&h===w&&(p.preventDefault(),n&&He(x,{select:!0})):h===g&&p.preventDefault()}},[n,r,v.paused]);return o.createElement(xn.div,E({tabIndex:-1},s,{ref:$,onKeyDown:b}))});function d$(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(He(r,{select:t}),document.activeElement!==n)return}function u$(e){const t=Ua(e),n=Gr(t,e),r=Gr(t.reverse(),e);return[n,r]}function Ua(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gr(e,t){for(const n of e)if(!f$(n,{upTo:t}))return n}function f$(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function p$(e){return e instanceof HTMLInputElement&&"select"in e}function He(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&p$(e)&&t&&e.select()}}const Yr=$$();function $$(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Xr(e,t),e.unshift(t)},remove(t){var n;e=Xr(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Xr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function v$(e){return e.filter(t=>t.tagName!=="A")}const b$=o.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...c}=e;return r?yo.createPortal(o.createElement(xn.div,E({},c,{ref:t})),r):null});function m$(e,t){return o.useReducer((n,r)=>{const c=t[n][r];return c??n},e)}const Cn=e=>{const{present:t,children:n}=e,r=h$(t),c=typeof n=="function"?n({present:r.isPresent}):o.Children.only(n),a=Nt(r.ref,c.ref);return typeof n=="function"||r.isPresent?o.cloneElement(c,{ref:a}):null};Cn.displayName="Presence";function h$(e){const[t,n]=o.useState(),r=o.useRef({}),c=o.useRef(e),a=o.useRef("none"),s=e?"mounted":"unmounted",[i,l]=m$(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{const d=Gt(r.current);a.current=i==="mounted"?d:"none"},[i]),lo(()=>{const d=r.current,f=c.current;if(f!==e){const $=a.current,v=Gt(d);e?l("MOUNT"):v==="none"||d?.display==="none"?l("UNMOUNT"):l(f&&$!==v?"ANIMATION_OUT":"UNMOUNT"),c.current=e}},[e,l]),lo(()=>{if(t){const d=u=>{const v=Gt(r.current).includes(u.animationName);u.target===t&&v&&Le.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===t&&(a.current=Gt(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:o.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function Gt(e){return e?.animationName||"none"}let Yn=0;function g$(){o.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:jr()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:jr()),Yn++,()=>{Yn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Yn--}},[])}function jr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var za=Oc(),Xn=function(){},yn=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:Xn,onWheelCapture:Xn,onTouchMoveCapture:Xn}),c=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,u=e.shards,$=e.sideCar,v=e.noIsolation,b=e.inert,p=e.allowPinchZoom,m=e.as,h=m===void 0?"div":m,g=Io(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=$,x=Ac([n,t]),C=ce(ce({},g),c);return o.createElement(o.Fragment,null,f&&o.createElement(w,{sideCar:za,removeScrollBar:d,shards:u,noIsolation:v,inert:b,setCallbacks:a,allowPinchZoom:!!p,lockRef:n}),s?o.cloneElement(o.Children.only(i),ce(ce({},C),{ref:x})):o.createElement(h,ce({},C,{className:l,ref:x}),i))});yn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yn.classNames={fullWidth:vt,zeroRight:$t};var po=!1;if(typeof window<"u")try{var Yt=Object.defineProperty({},"passive",{get:function(){return po=!0,!0}});window.addEventListener("test",Yt,Yt),window.removeEventListener("test",Yt,Yt)}catch{po=!1}var et=po?{passive:!1}:!1,w$=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},E$=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},Zr=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Ga(e,n);if(r){var c=Ya(e,n),a=c[1],s=c[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},x$=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},C$=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ga=function(e,t){return e==="v"?w$(t):E$(t)},Ya=function(e,t){return e==="v"?x$(t):C$(t)},y$=function(e,t){return e==="h"&&t==="rtl"?-1:1},_$=function(e,t,n,r,c){var a=y$(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),d=!1,f=s>0,u=0,$=0;do{var v=Ya(e,i),b=v[0],p=v[1],m=v[2],h=p-m-a*b;(b||h)&&Ga(e,i)&&(u+=h,$+=b),i=i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(f&&(c&&u===0||!c&&s>u)||!f&&(c&&$===0||!c&&-s>$))&&(d=!0),d},Xt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qr=function(e){return[e.deltaX,e.deltaY]},Qr=function(e){return e&&"current"in e?e.current:e},S$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},R$=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},P$=0,tt=[];function T$(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),c=o.useState(P$++)[0],a=o.useState(function(){return No()})[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var p=Dc([e.lockRef.current],(e.shards||[]).map(Qr),!0).filter(Boolean);return p.forEach(function(m){return m.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),p.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var i=o.useCallback(function(p,m){if("touches"in p&&p.touches.length===2)return!s.current.allowPinchZoom;var h=Xt(p),g=n.current,w="deltaX"in p?p.deltaX:g[0]-h[0],x="deltaY"in p?p.deltaY:g[1]-h[1],C,y=p.target,S=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in p&&S==="h"&&y.type==="range")return!1;var T=Zr(S,y);if(!T)return!0;if(T?C=S:(C=S==="v"?"h":"v",T=Zr(S,y)),!T)return!1;if(!r.current&&"changedTouches"in p&&(w||x)&&(r.current=C),!C)return!0;var R=r.current||C;return _$(R,m,p,R==="h"?w:x,!0)},[]),l=o.useCallback(function(p){var m=p;if(!(!tt.length||tt[tt.length-1]!==a)){var h="deltaY"in m?qr(m):Xt(m),g=t.current.filter(function(C){return C.name===m.type&&C.target===m.target&&S$(C.delta,h)})[0];if(g&&g.should){m.preventDefault();return}if(!g){var w=(s.current.shards||[]).map(Qr).filter(Boolean).filter(function(C){return C.contains(m.target)}),x=w.length>0?i(m,w[0]):!s.current.noIsolation;x&&m.preventDefault()}}},[]),d=o.useCallback(function(p,m,h,g){var w={name:p,delta:m,target:h,should:g};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),f=o.useCallback(function(p){n.current=Xt(p),r.current=void 0},[]),u=o.useCallback(function(p){d(p.type,qr(p),p.target,i(p,e.lockRef.current))},[]),$=o.useCallback(function(p){d(p.type,Xt(p),p.target,i(p,e.lockRef.current))},[]);o.useEffect(function(){return tt.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:$}),document.addEventListener("wheel",l,et),document.addEventListener("touchmove",l,et),document.addEventListener("touchstart",f,et),function(){tt=tt.filter(function(p){return p!==a}),document.removeEventListener("wheel",l,et),document.removeEventListener("touchmove",l,et),document.removeEventListener("touchstart",f,et)}},[]);var v=e.removeScrollBar,b=e.inert;return o.createElement(o.Fragment,null,b?o.createElement(a,{styles:R$(c)}):null,v?o.createElement(Lc,{gapMode:"margin"}):null)}const M$=Nc(za,T$);var Xa=o.forwardRef(function(e,t){return o.createElement(yn,ce({},e,{ref:t,sideCar:M$}))});Xa.classNames=yn.classNames;const D$=Xa,ja="Dialog",[Za,$1]=zp(ja),[A$,Xe]=Za(ja),O$=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:c,onOpenChange:a,modal:s=!0}=e,i=o.useRef(null),l=o.useRef(null),[d=!1,f]=jp({prop:r,defaultProp:c,onChange:a});return o.createElement(A$,{scope:t,triggerRef:i,contentRef:l,contentId:Un(),titleId:Un(),descriptionId:Un(),open:d,onOpenChange:f,onOpenToggle:o.useCallback(()=>f(u=>!u),[f]),modal:s},n)},qa="DialogPortal",[I$,Qa]=Za(qa,{forceMount:void 0}),N$=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:c}=e,a=Xe(qa,t);return o.createElement(I$,{scope:t,forceMount:n},o.Children.map(r,s=>o.createElement(Cn,{present:n||a.open},o.createElement(b$,{asChild:!0,container:c},s))))},$o="DialogOverlay",k$=o.forwardRef((e,t)=>{const n=Qa($o,e.__scopeDialog),{forceMount:r=n.forceMount,...c}=e,a=Xe($o,e.__scopeDialog);return a.modal?o.createElement(Cn,{present:r||a.open},o.createElement(L$,E({},c,{ref:t}))):null}),L$=o.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,c=Xe($o,n);return o.createElement(D$,{as:or,allowPinchZoom:!0,shards:[c.contentRef]},o.createElement(xn.div,E({"data-state":es(c.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Ct="DialogContent",F$=o.forwardRef((e,t)=>{const n=Qa(Ct,e.__scopeDialog),{forceMount:r=n.forceMount,...c}=e,a=Xe(Ct,e.__scopeDialog);return o.createElement(Cn,{present:r||a.open},a.modal?o.createElement(V$,E({},c,{ref:t})):o.createElement(K$,E({},c,{ref:t})))}),V$=o.forwardRef((e,t)=>{const n=Xe(Ct,e.__scopeDialog),r=o.useRef(null),c=Nt(t,n.contentRef,r);return o.useEffect(()=>{const a=r.current;if(a)return Dt(a)},[]),o.createElement(Ja,E({},e,{ref:c,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ot(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:ot(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:ot(e.onFocusOutside,a=>a.preventDefault())}))}),K$=o.forwardRef((e,t)=>{const n=Xe(Ct,e.__scopeDialog),r=o.useRef(!1);return o.createElement(Ja,E({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,c),!c.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),c.preventDefault()}r.current=!1},onInteractOutside:c=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,c),c.defaultPrevented||(r.current=!0);const i=c.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(i))&&c.preventDefault()}}))}),Ja=o.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:a,...s}=e,i=Xe(Ct,n),l=o.useRef(null),d=Nt(t,l);return g$(),o.createElement(o.Fragment,null,o.createElement(l$,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:c,onUnmountAutoFocus:a},o.createElement(a$,E({role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":es(i.open)},s,{ref:d,onDismiss:()=>i.onOpenChange(!1)}))),!1)});function es(e){return e?"open":"closed"}const v1=O$,b1=N$,m1=k$,h1=F$,ts=["PageUp","PageDown"],ns=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],os={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},kt="Slider",[vo,B$,H$]=Te(kt),[rs,g1]=q(kt,[H$]),[W$,_n]=rs(kt),U$=o.forwardRef((e,t)=>{const{name:n,min:r=0,max:c=100,step:a=1,orientation:s="horizontal",disabled:i=!1,minStepsBetweenThumbs:l=0,defaultValue:d=[r],value:f,onValueChange:u=()=>{},onValueCommit:$=()=>{},inverted:v=!1,...b}=e,[p,m]=o.useState(null),h=I(t,P=>m(P)),g=o.useRef(new Set),w=o.useRef(0),x=s==="horizontal",C=p?!!p.closest("form"):!0,y=x?z$:G$,[S=[],T]=ee({prop:f,defaultProp:d,onChange:P=>{var D;(D=[...g.current][w.current])===null||D===void 0||D.focus(),u(P)}}),R=o.useRef(S);function O(P){const D=tv(S,P);B(P,D)}function F(P){B(P,w.current)}function N(){const P=R.current[w.current];S[w.current]!==P&&$(S)}function B(P,D,{commit:V}={commit:!1}){const L=cv(a),W=av(Math.round((P-r)/a)*a+r,L),A=Et(W,[r,c]);T((H=[])=>{const U=J$(H,A,D);if(rv(U,l*a)){w.current=U.indexOf(A);const J=String(U)!==String(H);return J&&V&&$(U),J?U:H}else return H})}return o.createElement(W$,{scope:e.__scopeSlider,disabled:i,min:r,max:c,valueIndexToChangeRef:w,thumbs:g.current,values:S,orientation:s},o.createElement(vo.Provider,{scope:e.__scopeSlider},o.createElement(vo.Slot,{scope:e.__scopeSlider},o.createElement(y,E({"aria-disabled":i,"data-disabled":i?"":void 0},b,{ref:h,onPointerDown:_(b.onPointerDown,()=>{i||(R.current=S)}),min:r,max:c,inverted:v,onSlideStart:i?void 0:O,onSlideMove:i?void 0:F,onSlideEnd:i?void 0:N,onHomeKeyDown:()=>!i&&B(r,0,{commit:!0}),onEndKeyDown:()=>!i&&B(c,S.length-1,{commit:!0}),onStepKeyDown:({event:P,direction:D})=>{if(!i){const W=ts.includes(P.key)||P.shiftKey&&ns.includes(P.key)?10:1,A=w.current,H=S[A],U=a*W*D;B(H+U,A,{commit:!0})}}})))),C&&S.map((P,D)=>o.createElement(Q$,{key:D,name:n?n+(S.length>1?"[]":""):void 0,value:P})))}),[cs,as]=rs(kt,{startEdge:"left",endEdge:"right",size:"width",direction:1}),z$=o.forwardRef((e,t)=>{const{min:n,max:r,dir:c,inverted:a,onSlideStart:s,onSlideMove:i,onSlideEnd:l,onStepKeyDown:d,...f}=e,[u,$]=o.useState(null),v=I(t,w=>$(w)),b=o.useRef(),p=Ee(c),m=p==="ltr",h=m&&!a||!m&&a;function g(w){const x=b.current||u.getBoundingClientRect(),C=[0,x.width],S=rr(C,h?[n,r]:[r,n]);return b.current=x,S(w-x.left)}return o.createElement(cs,{scope:e.__scopeSlider,startEdge:h?"left":"right",endEdge:h?"right":"left",direction:h?1:-1,size:"width"},o.createElement(ss,E({dir:p,"data-orientation":"horizontal"},f,{ref:v,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const x=g(w.clientX);s?.(x)},onSlideMove:w=>{const x=g(w.clientX);i?.(x)},onSlideEnd:()=>{b.current=void 0,l?.()},onStepKeyDown:w=>{const C=os[h?"from-left":"from-right"].includes(w.key);d?.({event:w,direction:C?-1:1})}})))}),G$=o.forwardRef((e,t)=>{const{min:n,max:r,inverted:c,onSlideStart:a,onSlideMove:s,onSlideEnd:i,onStepKeyDown:l,...d}=e,f=o.useRef(null),u=I(t,f),$=o.useRef(),v=!c;function b(p){const m=$.current||f.current.getBoundingClientRect(),h=[0,m.height],w=rr(h,v?[r,n]:[n,r]);return $.current=m,w(p-m.top)}return o.createElement(cs,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1},o.createElement(ss,E({"data-orientation":"vertical"},d,{ref:u,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:p=>{const m=b(p.clientY);a?.(m)},onSlideMove:p=>{const m=b(p.clientY);s?.(m)},onSlideEnd:()=>{$.current=void 0,i?.()},onStepKeyDown:p=>{const h=os[v?"from-bottom":"from-top"].includes(p.key);l?.({event:p,direction:h?-1:1})}})))}),ss=o.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:c,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:i,onStepKeyDown:l,...d}=e,f=_n(kt,n);return o.createElement(M.span,E({},d,{ref:t,onKeyDown:_(e.onKeyDown,u=>{u.key==="Home"?(s(u),u.preventDefault()):u.key==="End"?(i(u),u.preventDefault()):ts.concat(ns).includes(u.key)&&(l(u),u.preventDefault())}),onPointerDown:_(e.onPointerDown,u=>{const $=u.target;$.setPointerCapture(u.pointerId),u.preventDefault(),f.thumbs.has($)?$.focus():r(u)}),onPointerMove:_(e.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&c(u)}),onPointerUp:_(e.onPointerUp,u=>{const $=u.target;$.hasPointerCapture(u.pointerId)&&($.releasePointerCapture(u.pointerId),a(u))})}))}),Y$="SliderTrack",X$=o.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,c=_n(Y$,n);return o.createElement(M.span,E({"data-disabled":c.disabled?"":void 0,"data-orientation":c.orientation},r,{ref:t}))}),Jr="SliderRange",j$=o.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,c=_n(Jr,n),a=as(Jr,n),s=o.useRef(null),i=I(t,s),l=c.values.length,d=c.values.map($=>is($,c.min,c.max)),f=l>1?Math.min(...d):0,u=100-Math.max(...d);return o.createElement(M.span,E({"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0},r,{ref:i,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:u+"%"}}))}),ec="SliderThumb",Z$=o.forwardRef((e,t)=>{const n=B$(e.__scopeSlider),[r,c]=o.useState(null),a=I(t,i=>c(i)),s=o.useMemo(()=>r?n().findIndex(i=>i.ref.current===r):-1,[n,r]);return o.createElement(q$,E({},e,{ref:a,index:s}))}),q$=o.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...c}=e,a=_n(ec,n),s=as(ec,n),[i,l]=o.useState(null),d=I(t,m=>l(m)),f=Rt(i),u=a.values[r],$=u===void 0?0:is(u,a.min,a.max),v=ev(r,a.values.length),b=f?.[s.size],p=b?nv(b,$,s.direction):0;return o.useEffect(()=>{if(i)return a.thumbs.add(i),()=>{a.thumbs.delete(i)}},[i,a.thumbs]),o.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${$}% + ${p}px)`}},o.createElement(vo.ItemSlot,{scope:e.__scopeSlider},o.createElement(M.span,E({role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":a.min,"aria-valuenow":u,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},c,{ref:d,style:u===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})}))))}),Q$=e=>{const{value:t,...n}=e,r=o.useRef(null),c=dt(t);return o.useEffect(()=>{const a=r.current,s=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(s,"value").set;if(c!==t&&l){const d=new Event("input",{bubbles:!0});l.call(a,t),a.dispatchEvent(d)}},[c,t]),o.createElement("input",E({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function J$(e=[],t,n){const r=[...e];return r[n]=t,r.sort((c,a)=>c-a)}function is(e,t,n){const a=100/(n-t)*(e-t);return Et(a,[0,100])}function ev(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function tv(e,t){if(e.length===1)return 0;const n=e.map(c=>Math.abs(c-t)),r=Math.min(...n);return n.indexOf(r)}function nv(e,t,n){const r=e/2,a=rr([0,50],[0,r]);return(r-a(t)*n)*n}function ov(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function rv(e,t){if(t>0){const n=ov(e);return Math.min(...n)>=t}return!0}function rr(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function cv(e){return(String(e).split(".")[1]||"").length}function av(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const w1=U$,E1=X$,x1=j$,C1=Z$,ls="Switch",[sv,y1]=q(ls),[iv,lv]=sv(ls),dv=o.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:c,defaultChecked:a,required:s,disabled:i,value:l="on",onCheckedChange:d,...f}=e,[u,$]=o.useState(null),v=I(t,g=>$(g)),b=o.useRef(!1),p=u?!!u.closest("form"):!0,[m=!1,h]=ee({prop:c,defaultProp:a,onChange:d});return o.createElement(iv,{scope:n,checked:m,disabled:i},o.createElement(M.button,E({type:"button",role:"switch","aria-checked":m,"aria-required":s,"data-state":ds(m),"data-disabled":i?"":void 0,disabled:i,value:l},f,{ref:v,onClick:_(e.onClick,g=>{h(w=>!w),p&&(b.current=g.isPropagationStopped(),b.current||g.stopPropagation())})})),p&&o.createElement(pv,{control:u,bubbles:!b.current,name:r,value:l,checked:m,required:s,disabled:i,style:{transform:"translateX(-100%)"}}))}),uv="SwitchThumb",fv=o.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,c=lv(uv,n);return o.createElement(M.span,E({"data-state":ds(c.checked),"data-disabled":c.disabled?"":void 0},r,{ref:t}))}),pv=e=>{const{control:t,checked:n,bubbles:r=!0,...c}=e,a=o.useRef(null),s=dt(n),i=Rt(t);return o.useEffect(()=>{const l=a.current,d=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(d,"checked").set;if(s!==n&&u){const $=new Event("click",{bubbles:r});u.call(l,n),l.dispatchEvent($)}},[s,n,r]),o.createElement("input",E({type:"checkbox","aria-hidden":!0,defaultChecked:n},c,{tabIndex:-1,ref:a,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ds(e){return e?"checked":"unchecked"}const _1=dv,S1=fv,$v=o.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:c,...a}=e,[s=!1,i]=ee({prop:n,onChange:c,defaultProp:r});return o.createElement(M.button,E({type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:_(e.onClick,()=>{e.disabled||i(!s)})}))}),R1=$v,[Sn,P1]=q("Tooltip",[xe]),cr=xe(),vv="TooltipProvider",bv=700,bo="tooltip.open",[mv,ar]=Sn(vv),hv=e=>{const{__scopeTooltip:t,delayDuration:n=bv,skipDelayDuration:r=300,disableHoverableContent:c=!1,children:a}=e,[s,i]=o.useState(!0),l=o.useRef(!1),d=o.useRef(0);return o.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),o.createElement(mv,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:o.useCallback(()=>{window.clearTimeout(d.current),i(!1)},[]),onClose:o.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>i(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:o.useCallback(f=>{l.current=f},[]),disableHoverableContent:c},a)},sr="Tooltip",[gv,Rn]=Sn(sr),wv=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:c=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=ar(sr,e.__scopeTooltip),d=cr(t),[f,u]=o.useState(null),$=te(),v=o.useRef(0),b=s??l.disableHoverableContent,p=i??l.delayDuration,m=o.useRef(!1),[h=!1,g]=ee({prop:r,defaultProp:c,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(bo))):l.onClose(),a?.(S)}}),w=o.useMemo(()=>h?m.current?"delayed-open":"instant-open":"closed",[h]),x=o.useCallback(()=>{window.clearTimeout(v.current),m.current=!1,g(!0)},[g]),C=o.useCallback(()=>{window.clearTimeout(v.current),g(!1)},[g]),y=o.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{m.current=!0,g(!0)},p)},[p,g]);return o.useEffect(()=>()=>window.clearTimeout(v.current),[]),o.createElement(Pt,d,o.createElement(gv,{scope:t,contentId:$,open:h,stateAttribute:w,trigger:f,onTriggerChange:u,onTriggerEnter:o.useCallback(()=>{l.isOpenDelayed?y():x()},[l.isOpenDelayed,y,x]),onTriggerLeave:o.useCallback(()=>{b?C():window.clearTimeout(v.current)},[C,b]),onOpen:x,onClose:C,disableHoverableContent:b},n))},tc="TooltipTrigger",Ev=o.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,c=Rn(tc,n),a=ar(tc,n),s=cr(n),i=o.useRef(null),l=I(t,i,c.onTriggerChange),d=o.useRef(!1),f=o.useRef(!1),u=o.useCallback(()=>d.current=!1,[]);return o.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),o.createElement(un,E({asChild:!0},s),o.createElement(M.button,E({"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute},r,{ref:l,onPointerMove:_(e.onPointerMove,$=>{$.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(c.onTriggerEnter(),f.current=!0)}),onPointerLeave:_(e.onPointerLeave,()=>{c.onTriggerLeave(),f.current=!1}),onPointerDown:_(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:_(e.onFocus,()=>{d.current||c.onOpen()}),onBlur:_(e.onBlur,c.onClose),onClick:_(e.onClick,c.onClose)})))}),xv="TooltipPortal",[T1,Cv]=Sn(xv,{forceMount:void 0}),yt="TooltipContent",yv=o.forwardRef((e,t)=>{const n=Cv(yt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:c="top",...a}=e,s=Rn(yt,e.__scopeTooltip);return o.createElement(Q,{present:r||s.open},s.disableHoverableContent?o.createElement(us,E({side:c},a,{ref:t})):o.createElement(_v,E({side:c},a,{ref:t})))}),_v=o.forwardRef((e,t)=>{const n=Rn(yt,e.__scopeTooltip),r=ar(yt,e.__scopeTooltip),c=o.useRef(null),a=I(t,c),[s,i]=o.useState(null),{trigger:l,onClose:d}=n,f=c.current,{onPointerInTransitChange:u}=r,$=o.useCallback(()=>{i(null),u(!1)},[u]),v=o.useCallback((b,p)=>{const m=b.currentTarget,h={x:b.clientX,y:b.clientY},g=Rv(h,m.getBoundingClientRect()),w=Pv(h,g),x=Tv(p.getBoundingClientRect()),C=Dv([...w,...x]);i(C),u(!0)},[u]);return o.useEffect(()=>()=>$(),[$]),o.useEffect(()=>{if(l&&f){const b=m=>v(m,f),p=m=>v(m,l);return l.addEventListener("pointerleave",b),f.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",p)}}},[l,f,v,$]),o.useEffect(()=>{if(s){const b=p=>{const m=p.target,h={x:p.clientX,y:p.clientY},g=l?.contains(m)||f?.contains(m),w=!Mv(h,s);g?$():w&&($(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,f,s,d,$]),o.createElement(us,E({},e,{ref:a}))}),[Sv,M1]=Sn(sr,{isInside:!1}),us=o.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":c,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=Rn(yt,n),d=cr(n),{onClose:f}=l;return o.useEffect(()=>(document.addEventListener(bo,f),()=>document.removeEventListener(bo,f)),[f]),o.useEffect(()=>{if(l.trigger){const u=$=>{const v=$.target;v!=null&&v.contains(l.trigger)&&f()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,f]),o.createElement(Fe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u=>u.preventDefault(),onDismiss:f},o.createElement(Tt,E({"data-state":l.stateAttribute},d,i,{ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),o.createElement(_o,null,r),o.createElement(Sv,{scope:n,isInside:!0},o.createElement(ca,{id:l.contentId,role:"tooltip"},c||r))))});function Rv(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),c=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,c,a)){case a:return"left";case c:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Pv(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Tv(e){const{top:t,right:n,bottom:r,left:c}=e;return[{x:c,y:t},{x:n,y:t},{x:n,y:r},{x:c,y:r}]}function Mv(e,t){const{x:n,y:r}=e;let c=!1;for(let a=0,s=t.length-1;ar!=f>r&&n<(d-i)*(r-l)/(f-l)+i&&(c=!c)}return c}function Dv(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Av(t)}function Av(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(c.y-s.y)>=(a.y-s.y)*(c.x-s.x))t.pop();else break}t.push(c)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const c=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(c.y-s.y)>=(a.y-s.y)*(c.x-s.x))n.pop();else break}n.push(c)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const D1=hv,A1=wv,O1=Ev,I1=yv,fs="Collapsible",[Ov,ps]=q(fs),[Iv,ir]=Ov(fs),Nv=o.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:c,disabled:a,onOpenChange:s,...i}=e,[l=!1,d]=ee({prop:r,defaultProp:c,onChange:s});return o.createElement(Iv,{scope:n,disabled:a,contentId:te(),open:l,onOpenToggle:o.useCallback(()=>d(f=>!f),[d])},o.createElement(M.div,E({"data-state":lr(l),"data-disabled":a?"":void 0},i,{ref:t})))}),kv="CollapsibleTrigger",Lv=o.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,c=ir(kv,n);return o.createElement(M.button,E({type:"button","aria-controls":c.contentId,"aria-expanded":c.open||!1,"data-state":lr(c.open),"data-disabled":c.disabled?"":void 0,disabled:c.disabled},r,{ref:t,onClick:_(e.onClick,c.onOpenToggle)}))}),$s="CollapsibleContent",Fv=o.forwardRef((e,t)=>{const{forceMount:n,...r}=e,c=ir($s,e.__scopeCollapsible);return o.createElement(Q,{present:n||c.open},({present:a})=>o.createElement(Vv,E({},r,{ref:t,present:a})))}),Vv=o.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:c,...a}=e,s=ir($s,n),[i,l]=o.useState(r),d=o.useRef(null),f=I(t,d),u=o.useRef(0),$=u.current,v=o.useRef(0),b=v.current,p=s.open||i,m=o.useRef(p),h=o.useRef();return o.useEffect(()=>{const g=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(g)},[]),re(()=>{const g=d.current;if(g){h.current=h.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const w=g.getBoundingClientRect();u.current=w.height,v.current=w.width,m.current||(g.style.transitionDuration=h.current.transitionDuration,g.style.animationName=h.current.animationName),l(r)}},[s.open,r]),o.createElement(M.div,E({"data-state":lr(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!p},a,{ref:f,style:{"--radix-collapsible-content-height":$?`${$}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style}}),p&&c)});function lr(e){return e?"open":"closed"}const Kv=Nv,Bv=Lv,Hv=Fv,dr="Menubar",[mo,Wv,Uv]=Te(dr),[vs,N1]=q(dr,[Uv,Ve]),ie=At(),bs=Ve(),[zv,ur]=vs(dr),Gv=o.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:c,defaultValue:a,loop:s=!0,dir:i,...l}=e,d=Ee(i),f=bs(n),[u="",$]=ee({prop:r,onChange:c,defaultProp:a}),[v,b]=o.useState(null);return o.createElement(zv,{scope:n,value:u,onMenuOpen:o.useCallback(p=>{$(p),b(p)},[$]),onMenuClose:o.useCallback(()=>$(""),[$]),onMenuToggle:o.useCallback(p=>{$(m=>m?"":p),b(p)},[$]),dir:d,loop:s},o.createElement(mo.Provider,{scope:n},o.createElement(mo.Slot,{scope:n},o.createElement(fn,E({asChild:!0},f,{orientation:"horizontal",loop:s,dir:d,currentTabStopId:v,onCurrentTabStopIdChange:b}),o.createElement(M.div,E({role:"menubar"},l,{ref:t}))))))}),ms="MenubarMenu",[Yv,hs]=vs(ms),Xv=e=>{const{__scopeMenubar:t,value:n,...r}=e,c=te(),a=n||c||"LEGACY_REACT_AUTO_VALUE",s=ur(ms,t),i=ie(t),l=o.useRef(null),d=o.useRef(!1),f=s.value===a;return o.useEffect(()=>{f||(d.current=!1)},[f]),o.createElement(Yv,{scope:t,value:a,triggerId:te(),triggerRef:l,contentId:te(),wasKeyboardTriggerOpenRef:d},o.createElement(ea,E({},i,{open:f,onOpenChange:u=>{u||s.onMenuClose()},modal:!1,dir:s.dir},r)))},nc="MenubarTrigger",jv=o.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...c}=e,a=bs(n),s=ie(n),i=ur(nc,n),l=hs(nc,n),d=o.useRef(null),f=I(t,d,l.triggerRef),[u,$]=o.useState(!1),v=i.value===l.value;return o.createElement(mo.ItemSlot,{scope:n,value:l.value,disabled:r},o.createElement(pn,E({asChild:!0},a,{focusable:!r,tabStopId:l.value}),o.createElement(ta,E({asChild:!0},s),o.createElement(M.button,E({type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":v,"aria-controls":v?l.contentId:void 0,"data-highlighted":u?"":void 0,"data-state":v?"open":"closed","data-disabled":r?"":void 0,disabled:r},c,{ref:f,onPointerDown:_(e.onPointerDown,b=>{!r&&b.button===0&&b.ctrlKey===!1&&(i.onMenuOpen(l.value),v||b.preventDefault())}),onPointerEnter:_(e.onPointerEnter,()=>{if(!!i.value&&!v){var p;i.onMenuOpen(l.value),(p=d.current)===null||p===void 0||p.focus()}}),onKeyDown:_(e.onKeyDown,b=>{r||(["Enter"," "].includes(b.key)&&i.onMenuToggle(l.value),b.key==="ArrowDown"&&i.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(b.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,b.preventDefault()))}),onFocus:_(e.onFocus,()=>$(!0)),onBlur:_(e.onBlur,()=>$(!1))})))))}),Zv=e=>{const{__scopeMenubar:t,...n}=e,r=ie(t);return o.createElement(Ko,E({},r,n))},oc="MenubarContent",qv=o.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...c}=e,a=ie(n),s=ur(oc,n),i=hs(oc,n),l=Wv(n),d=o.useRef(!1);return o.createElement(Bo,E({id:i.contentId,"aria-labelledby":i.triggerId,"data-radix-menubar-content":""},a,c,{ref:t,align:r,onCloseAutoFocus:_(e.onCloseAutoFocus,f=>{if(!!!s.value&&!d.current){var $;($=i.triggerRef.current)===null||$===void 0||$.focus()}d.current=!1,f.preventDefault()}),onFocusOutside:_(e.onFocusOutside,f=>{const u=f.target;l().some(v=>{var b;return(b=v.ref.current)===null||b===void 0?void 0:b.contains(u)})&&f.preventDefault()}),onInteractOutside:_(e.onInteractOutside,()=>{d.current=!0}),onEntryFocus:f=>{i.wasKeyboardTriggerOpenRef.current||f.preventDefault()},onKeyDown:_(e.onKeyDown,f=>{if(["ArrowRight","ArrowLeft"].includes(f.key)){const u=f.target,$=u.hasAttribute("data-radix-menubar-subtrigger"),v=u.closest("[data-radix-menubar-content]")!==f.currentTarget,p=(s.dir==="rtl"?"ArrowRight":"ArrowLeft")===f.key;if(!p&&$||v&&p)return;let g=l().filter(C=>!C.disabled).map(C=>C.value);p&&g.reverse();const w=g.indexOf(i.value);g=s.loop?ib(g,w+1):g.slice(w+1);const[x]=g;x&&s.onMenuOpen(x)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Qv=o.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,c=ie(n);return o.createElement(Ho,E({},c,r,{ref:t}))}),Jv=o.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,c=ie(n);return o.createElement(Wo,E({},c,r,{ref:t}))}),eb=o.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,c=ie(n);return o.createElement(Uo,E({},c,r,{ref:t}))}),tb=o.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,c=ie(n);return o.createElement(Jd,E({},c,r,{ref:t}))}),nb=o.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,c=ie(n);return o.createElement(zo,E({},c,r,{ref:t}))}),ob=o.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,c=ie(n);return o.createElement(Go,E({},c,r,{ref:t}))}),rb=o.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,c=ie(n);return o.createElement(Yo,E({},c,r,{ref:t}))}),cb=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:c,defaultOpen:a}=e,s=ie(t),[i=!1,l]=ee({prop:r,defaultProp:a,onChange:c});return o.createElement(eu,E({},s,{open:i,onOpenChange:l}),n)},ab=o.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,c=ie(n);return o.createElement(Xo,E({"data-radix-menubar-subtrigger":""},c,r,{ref:t}))}),sb=o.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,c=ie(n);return o.createElement(jo,E({},c,{"data-radix-menubar-content":""},r,{ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))});function ib(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const k1=Gv,L1=Xv,F1=jv,V1=Zv,K1=qv,B1=Qv,H1=Jv,W1=eb,U1=tb,z1=nb,G1=ob,Y1=rb,X1=cb,j1=ab,Z1=sb,Be="Accordion",lb=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[fr,db,ub]=Te(Be),[Pn,q1]=q(Be,[ub,ps]),pr=ps(),gs=K.forwardRef((e,t)=>{const{type:n,...r}=e,c=r,a=r;return K.createElement(fr.Provider,{scope:e.__scopeAccordion},n==="multiple"?K.createElement(vb,E({},a,{ref:t})):K.createElement($b,E({},c,{ref:t})))});gs.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[ws,fb]=Pn(Be),[Es,pb]=Pn(Be,{collapsible:!1}),$b=K.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:c=()=>{},collapsible:a=!1,...s}=e,[i,l]=ee({prop:n,defaultProp:r,onChange:c});return K.createElement(ws,{scope:e.__scopeAccordion,value:i?[i]:[],onItemOpen:l,onItemClose:K.useCallback(()=>a&&l(""),[a,l])},K.createElement(Es,{scope:e.__scopeAccordion,collapsible:a},K.createElement(xs,E({},s,{ref:t}))))}),vb=K.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:c=()=>{},...a}=e,[s=[],i]=ee({prop:n,defaultProp:r,onChange:c}),l=K.useCallback(f=>i((u=[])=>[...u,f]),[i]),d=K.useCallback(f=>i((u=[])=>u.filter($=>$!==f)),[i]);return K.createElement(ws,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:d},K.createElement(Es,{scope:e.__scopeAccordion,collapsible:!0},K.createElement(xs,E({},a,{ref:t}))))}),[bb,Tn]=Pn(Be),xs=K.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:c,orientation:a="vertical",...s}=e,i=K.useRef(null),l=I(i,t),d=db(n),u=Ee(c)==="ltr",$=_(e.onKeyDown,v=>{var b;if(!lb.includes(v.key))return;const p=v.target,m=d().filter(R=>{var O;return!((O=R.ref.current)!==null&&O!==void 0&&O.disabled)}),h=m.findIndex(R=>R.ref.current===p),g=m.length;if(h===-1)return;v.preventDefault();let w=h;const x=0,C=g-1,y=()=>{w=h+1,w>C&&(w=x)},S=()=>{w=h-1,w{const{__scopeAccordion:n,value:r,...c}=e,a=Tn(ho,n),s=fb(ho,n),i=pr(n),l=te(),d=r&&s.value.includes(r)||!1,f=a.disabled||e.disabled;return K.createElement(mb,{scope:n,open:d,disabled:f,triggerId:l},K.createElement(Kv,E({"data-orientation":a.orientation,"data-state":Cs(d)},i,c,{ref:t,disabled:f,open:d,onOpenChange:u=>{u?s.onItemOpen(r):s.onItemClose(r)}})))}),gb="AccordionHeader",wb=K.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,c=Tn(Be,n),a=$r(gb,n);return K.createElement(M.h3,E({"data-orientation":c.orientation,"data-state":Cs(a.open),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}),rc="AccordionTrigger",Eb=K.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,c=Tn(Be,n),a=$r(rc,n),s=pb(rc,n),i=pr(n);return K.createElement(fr.ItemSlot,{scope:n},K.createElement(Bv,E({"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":c.orientation,id:a.triggerId},i,r,{ref:t})))}),xb="AccordionContent",Cb=K.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,c=Tn(Be,n),a=$r(xb,n),s=pr(n);return K.createElement(Hv,E({role:"region","aria-labelledby":a.triggerId,"data-orientation":c.orientation},s,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function Cs(e){return e?"open":"closed"}const Q1=gs,J1=hb,eh=wb,th=Eb,nh=Cb;function yb(e,t){return o.useReducer((n,r)=>{const c=t[n][r];return c??n},e)}const ys="ScrollArea",[_s,oh]=q(ys),[_b,be]=_s(ys),Sb=o.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:c,scrollHideDelay:a=600,...s}=e,[i,l]=o.useState(null),[d,f]=o.useState(null),[u,$]=o.useState(null),[v,b]=o.useState(null),[p,m]=o.useState(null),[h,g]=o.useState(0),[w,x]=o.useState(0),[C,y]=o.useState(!1),[S,T]=o.useState(!1),R=I(t,F=>l(F)),O=Ee(c);return o.createElement(_b,{scope:n,type:r,dir:O,scrollHideDelay:a,scrollArea:i,viewport:d,onViewportChange:f,content:u,onContentChange:$,scrollbarX:v,onScrollbarXChange:b,scrollbarXEnabled:C,onScrollbarXEnabledChange:y,scrollbarY:p,onScrollbarYChange:m,scrollbarYEnabled:S,onScrollbarYEnabledChange:T,onCornerWidthChange:g,onCornerHeightChange:x},o.createElement(M.div,E({dir:O},s,{ref:R,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})))}),Rb="ScrollAreaViewport",Pb=o.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...c}=e,a=be(Rb,n),s=o.useRef(null),i=I(t,s,a.onViewportChange);return o.createElement(o.Fragment,null,o.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),o.createElement(M.div,E({"data-radix-scroll-area-viewport":""},c,{ref:i,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),o.createElement("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),De="ScrollAreaScrollbar",rh=o.forwardRef((e,t)=>{const{forceMount:n,...r}=e,c=be(De,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=c,i=e.orientation==="horizontal";return o.useEffect(()=>(i?a(!0):s(!0),()=>{i?a(!1):s(!1)}),[i,a,s]),c.type==="hover"?o.createElement(Tb,E({},r,{ref:t,forceMount:n})):c.type==="scroll"?o.createElement(Mb,E({},r,{ref:t,forceMount:n})):c.type==="auto"?o.createElement(Ss,E({},r,{ref:t,forceMount:n})):c.type==="always"?o.createElement(vr,E({},r,{ref:t})):null}),Tb=o.forwardRef((e,t)=>{const{forceMount:n,...r}=e,c=be(De,e.__scopeScrollArea),[a,s]=o.useState(!1);return o.useEffect(()=>{const i=c.scrollArea;let l=0;if(i){const d=()=>{window.clearTimeout(l),s(!0)},f=()=>{l=window.setTimeout(()=>s(!1),c.scrollHideDelay)};return i.addEventListener("pointerenter",d),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",d),i.removeEventListener("pointerleave",f)}}},[c.scrollArea,c.scrollHideDelay]),o.createElement(Q,{present:n||a},o.createElement(Ss,E({"data-state":a?"visible":"hidden"},r,{ref:t})))}),Mb=o.forwardRef((e,t)=>{const{forceMount:n,...r}=e,c=be(De,e.__scopeScrollArea),a=e.orientation==="horizontal",s=Dn(()=>l("SCROLL_END"),100),[i,l]=yb("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return o.useEffect(()=>{if(i==="idle"){const d=window.setTimeout(()=>l("HIDE"),c.scrollHideDelay);return()=>window.clearTimeout(d)}},[i,c.scrollHideDelay,l]),o.useEffect(()=>{const d=c.viewport,f=a?"scrollLeft":"scrollTop";if(d){let u=d[f];const $=()=>{const v=d[f];u!==v&&(l("SCROLL"),s()),u=v};return d.addEventListener("scroll",$),()=>d.removeEventListener("scroll",$)}},[c.viewport,a,l,s]),o.createElement(Q,{present:n||i!=="hidden"},o.createElement(vr,E({"data-state":i==="hidden"?"hidden":"visible"},r,{ref:t,onPointerEnter:_(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:_(e.onPointerLeave,()=>l("POINTER_LEAVE"))})))}),Ss=o.forwardRef((e,t)=>{const n=be(De,e.__scopeScrollArea),{forceMount:r,...c}=e,[a,s]=o.useState(!1),i=e.orientation==="horizontal",l=Dn(()=>{if(n.viewport){const d=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,c=be(De,e.__scopeScrollArea),a=o.useRef(null),s=o.useRef(0),[i,l]=o.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Ms(i.viewport,i.content),f={...r,sizes:i,onSizesChange:l,hasThumb:d>0&&d<1,onThumbChange:$=>a.current=$,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:$=>s.current=$};function u($,v){return Lb($,s.current,i,v)}return n==="horizontal"?o.createElement(Db,E({},f,{ref:t,onThumbPositionChange:()=>{if(c.viewport&&a.current){const $=c.viewport.scrollLeft,v=cc($,i,c.dir);a.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:$=>{c.viewport&&(c.viewport.scrollLeft=$)},onDragScroll:$=>{c.viewport&&(c.viewport.scrollLeft=u($,c.dir))}})):n==="vertical"?o.createElement(Ab,E({},f,{ref:t,onThumbPositionChange:()=>{if(c.viewport&&a.current){const $=c.viewport.scrollTop,v=cc($,i);a.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:$=>{c.viewport&&(c.viewport.scrollTop=$)},onDragScroll:$=>{c.viewport&&(c.viewport.scrollTop=u($))}})):null}),Db=o.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...c}=e,a=be(De,e.__scopeScrollArea),[s,i]=o.useState(),l=o.useRef(null),d=I(t,l,a.onScrollbarXChange);return o.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),o.createElement(Ps,E({"data-orientation":"horizontal"},c,{ref:d,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Mn(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,u)=>{if(a.viewport){const $=a.viewport.scrollLeft+f.deltaX;e.onWheelScroll($),As($,u)&&f.preventDefault()}},onResize:()=>{l.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:rn(s.paddingLeft),paddingEnd:rn(s.paddingRight)}})}}))}),Ab=o.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...c}=e,a=be(De,e.__scopeScrollArea),[s,i]=o.useState(),l=o.useRef(null),d=I(t,l,a.onScrollbarYChange);return o.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),o.createElement(Ps,E({"data-orientation":"vertical"},c,{ref:d,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Mn(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,u)=>{if(a.viewport){const $=a.viewport.scrollTop+f.deltaY;e.onWheelScroll($),As($,u)&&f.preventDefault()}},onResize:()=>{l.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:rn(s.paddingTop),paddingEnd:rn(s.paddingBottom)}})}}))}),[Ob,Rs]=_s(De),Ps=o.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:c,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:d,onWheelScroll:f,onResize:u,...$}=e,v=be(De,n),[b,p]=o.useState(null),m=I(t,R=>p(R)),h=o.useRef(null),g=o.useRef(""),w=v.viewport,x=r.content-r.viewport,C=z(f),y=z(l),S=Dn(u,10);function T(R){if(h.current){const O=R.clientX-h.current.left,F=R.clientY-h.current.top;d({x:O,y:F})}}return o.useEffect(()=>{const R=O=>{const F=O.target;b?.contains(F)&&C(O,x)};return document.addEventListener("wheel",R,{passive:!1}),()=>document.removeEventListener("wheel",R,{passive:!1})},[w,b,x,C]),o.useEffect(y,[r,y]),st(b,S),st(v.content,S),o.createElement(Ob,{scope:n,scrollbar:b,hasThumb:c,onThumbChange:z(a),onThumbPointerUp:z(s),onThumbPositionChange:y,onThumbPointerDown:z(i)},o.createElement(M.div,E({},$,{ref:m,style:{position:"absolute",...$.style},onPointerDown:_(e.onPointerDown,R=>{R.button===0&&(R.target.setPointerCapture(R.pointerId),h.current=b.getBoundingClientRect(),g.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),T(R))}),onPointerMove:_(e.onPointerMove,T),onPointerUp:_(e.onPointerUp,R=>{const O=R.target;O.hasPointerCapture(R.pointerId)&&O.releasePointerCapture(R.pointerId),document.body.style.webkitUserSelect=g.current,v.viewport&&(v.viewport.style.scrollBehavior=""),h.current=null})})))}),go="ScrollAreaThumb",ch=o.forwardRef((e,t)=>{const{forceMount:n,...r}=e,c=Rs(go,e.__scopeScrollArea);return o.createElement(Q,{present:n||c.hasThumb},o.createElement(Ib,E({ref:t},r)))}),Ib=o.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...c}=e,a=be(go,n),s=Rs(go,n),{onThumbPositionChange:i}=s,l=I(t,u=>s.onThumbChange(u)),d=o.useRef(),f=Dn(()=>{d.current&&(d.current(),d.current=void 0)},100);return o.useEffect(()=>{const u=a.viewport;if(u){const $=()=>{if(f(),!d.current){const v=Fb(u,i);d.current=v,i()}};return i(),u.addEventListener("scroll",$),()=>u.removeEventListener("scroll",$)}},[a.viewport,f,i]),o.createElement(M.div,E({"data-state":s.hasThumb?"visible":"hidden"},c,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:_(e.onPointerDownCapture,u=>{const v=u.target.getBoundingClientRect(),b=u.clientX-v.left,p=u.clientY-v.top;s.onThumbPointerDown({x:b,y:p})}),onPointerUp:_(e.onPointerUp,s.onThumbPointerUp)}))}),Ts="ScrollAreaCorner",Nb=o.forwardRef((e,t)=>{const n=be(Ts,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?o.createElement(kb,E({},e,{ref:t})):null}),kb=o.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,c=be(Ts,n),[a,s]=o.useState(0),[i,l]=o.useState(0),d=!!(a&&i);return st(c.scrollbarX,()=>{var f;const u=((f=c.scrollbarX)===null||f===void 0?void 0:f.offsetHeight)||0;c.onCornerHeightChange(u),l(u)}),st(c.scrollbarY,()=>{var f;const u=((f=c.scrollbarY)===null||f===void 0?void 0:f.offsetWidth)||0;c.onCornerWidthChange(u),s(u)}),d?o.createElement(M.div,E({},r,{ref:t,style:{width:a,height:i,position:"absolute",right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function rn(e){return e?parseInt(e,10):0}function Ms(e,t){const n=e/t;return isNaN(n)?0:n}function Mn(e){const t=Ms(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Lb(e,t,n,r="ltr"){const c=Mn(n),a=c/2,s=t||a,i=c-s,l=n.scrollbar.paddingStart+s,d=n.scrollbar.size-n.scrollbar.paddingEnd-i,f=n.content-n.viewport,u=r==="ltr"?[0,f]:[f*-1,0];return Ds([l,d],u)(e)}function cc(e,t,n="ltr"){const r=Mn(t),c=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-c,s=t.content-t.viewport,i=a-r,l=n==="ltr"?[0,s]:[s*-1,0],d=Et(e,l);return Ds([0,s],[0,i])(d)}function Ds(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function As(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function c(){const a={left:e.scrollLeft,top:e.scrollTop},s=n.left!==a.left,i=n.top!==a.top;(s||i)&&t(),n=a,r=window.requestAnimationFrame(c)}(),()=>window.cancelAnimationFrame(r)};function Dn(e,t){const n=z(e),r=o.useRef(0);return o.useEffect(()=>()=>window.clearTimeout(r.current),[]),o.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function st(e,t){const n=z(t);re(()=>{let r=0;if(e){const c=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return c.observe(e),()=>{window.cancelAnimationFrame(r),c.unobserve(e)}}},[e,n])}const ah=Sb,sh=Pb,ih=Nb,Vb="AlertDialog",[Kb,lh]=q(Vb,[ka]),je=ka(),Bb=e=>{const{__scopeAlertDialog:t,...n}=e,r=je(t);return o.createElement(Vp,E({},r,n))},Hb=o.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,c=je(n);return o.createElement(Kp,E({},c,r,{ref:t}))}),Os="AlertDialogContent",[Wb,Ub]=Kb(Os),zb=o.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...c}=e,a=je(n),s=o.useRef(null),i=I(t,s),l=o.useRef(null);return o.createElement(Fp,{contentName:Os,titleName:Gb,docsSlug:"alert-dialog"},o.createElement(Wb,{scope:n,cancelRef:l},o.createElement(Bp,E({role:"alertdialog"},a,c,{ref:i,onOpenAutoFocus:_(c.onOpenAutoFocus,d=>{var f;d.preventDefault(),(f=l.current)===null||f===void 0||f.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault()}),o.createElement(_o,null,r),!1)))}),Gb="AlertDialogTitle",Yb=o.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,c=je(n);return o.createElement(Hp,E({},c,r,{ref:t}))}),Xb=o.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,c=je(n);return o.createElement(Wp,E({},c,r,{ref:t}))}),jb=o.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,c=je(n);return o.createElement(Ba,E({},c,r,{ref:t}))}),Zb="AlertDialogCancel",qb=o.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:c}=Ub(Zb,n),a=je(n),s=I(t,c);return o.createElement(Ba,E({},a,r,{ref:s}))}),dh=Bb,uh=Hb,fh=zb,ph=jb,$h=qb,vh=Yb,bh=Xb,Is="Tabs",[Qb,mh]=q(Is,[Ve]),Ns=Ve(),[Jb,br]=Qb(Is),e0=o.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:c,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...d}=e,f=Ee(i),[u,$]=ee({prop:r,onChange:c,defaultProp:a});return o.createElement(Jb,{scope:n,baseId:te(),value:u,onValueChange:$,orientation:s,dir:f,activationMode:l},o.createElement(M.div,E({dir:f,"data-orientation":s},d,{ref:t})))}),t0="TabsList",n0=o.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...c}=e,a=br(t0,n),s=Ns(n);return o.createElement(fn,E({asChild:!0},s,{orientation:a.orientation,dir:a.dir,loop:r}),o.createElement(M.div,E({role:"tablist","aria-orientation":a.orientation},c,{ref:t})))}),o0="TabsTrigger",r0=o.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:c=!1,...a}=e,s=br(o0,n),i=Ns(n),l=ks(s.baseId,r),d=Ls(s.baseId,r),f=r===s.value;return o.createElement(pn,E({asChild:!0},i,{focusable:!c,active:f}),o.createElement(M.button,E({type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:l},a,{ref:t,onMouseDown:_(e.onMouseDown,u=>{!c&&u.button===0&&u.ctrlKey===!1?s.onValueChange(r):u.preventDefault()}),onKeyDown:_(e.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&s.onValueChange(r)}),onFocus:_(e.onFocus,()=>{const u=s.activationMode!=="manual";!f&&!c&&u&&s.onValueChange(r)})})))}),c0="TabsContent",a0=o.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:c,children:a,...s}=e,i=br(c0,n),l=ks(i.baseId,r),d=Ls(i.baseId,r),f=r===i.value,u=o.useRef(f);return o.useEffect(()=>{const $=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame($)},[]),o.createElement(Q,{present:c||f},({present:$})=>o.createElement(M.div,E({"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!$,id:d,tabIndex:0},s,{ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0}}),$&&a))});function ks(e,t){return`${e}-trigger-${t}`}function Ls(e,t){return`${e}-content-${t}`}const hh=e0,gh=n0,wh=r0,Eh=a0;let jn;const Fs="HoverCard",[Vs,xh]=q(Fs,[xe]),s0=xe(),[Ch,Ks]=Vs(Fs),i0="HoverCardPortal",[yh,l0]=Vs(i0,{forceMount:void 0}),wo="HoverCardContent",d0=o.forwardRef((e,t)=>{const n=l0(wo,e.__scopeHoverCard),{forceMount:r=n.forceMount,...c}=e,a=Ks(wo,e.__scopeHoverCard);return o.createElement(Q,{present:r||a.open},o.createElement(u0,E({"data-state":a.open?"open":"closed"},c,{onPointerEnter:_(e.onPointerEnter,ac(a.onOpen)),onPointerLeave:_(e.onPointerLeave,ac(a.onClose)),ref:t})))}),u0=o.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:a,onInteractOutside:s,...i}=e,l=Ks(wo,n),d=s0(n),f=o.useRef(null),u=I(t,f),[$,v]=o.useState(!1);return o.useEffect(()=>{if($){const b=document.body;return jn=b.style.userSelect||b.style.webkitUserSelect,b.style.userSelect="none",b.style.webkitUserSelect="none",()=>{b.style.userSelect=jn,b.style.webkitUserSelect=jn}}},[$]),o.useEffect(()=>{if(f.current){const b=()=>{v(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var p;((p=document.getSelection())===null||p===void 0?void 0:p.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",b),()=>{document.removeEventListener("pointerup",b),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),o.useEffect(()=>{f.current&&f0(f.current).forEach(p=>p.setAttribute("tabindex","-1"))}),o.createElement(Fe,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:_(a,b=>{b.preventDefault()}),onDismiss:l.onDismiss},o.createElement(Tt,E({},d,i,{onPointerDown:_(i.onPointerDown,b=>{b.currentTarget.contains(b.target)&&v(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:u,style:{...i.style,userSelect:$?"text":void 0,WebkitUserSelect:$?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))});function ac(e){return t=>t.pointerType==="touch"?void 0:e()}function f0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}const _h=d0,Bs="Progress",An=100,[p0,Sh]=q(Bs),[$0,v0]=p0(Bs),Hs=o.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:c,getValueLabel:a=h0,...s}=e,i=Eo(c)?c:An,l=Us(r,i)?r:null,d=cn(l)?a(l,i):void 0;return o.createElement($0,{scope:n,value:l,max:i},o.createElement(M.div,E({"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":cn(l)?l:void 0,"aria-valuetext":d,role:"progressbar","data-state":Ws(l,i),"data-value":l??void 0,"data-max":i},s,{ref:t})))});Hs.propTypes={max(e,t,n){const r=e[t],c=String(r);return r&&!Eo(r)?new Error(g0(c,n)):null},value(e,t,n){const r=e[t],c=String(r),a=Eo(e.max)?e.max:An;return r!=null&&!Us(r,a)?new Error(w0(c,n)):null}};const b0="ProgressIndicator",m0=o.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...c}=e,a=v0(b0,r);return o.createElement(M.div,E({"data-state":Ws(a.value,a.max),"data-value":(n=a.value)!==null&&n!==void 0?n:void 0,"data-max":a.max},c,{ref:t}))});function h0(e,t){return`${Math.round(e/t*100)}%`}function Ws(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function cn(e){return typeof e=="number"}function Eo(e){return cn(e)&&!isNaN(e)&&e>0}function Us(e,t){return cn(e)&&!isNaN(e)&&e<=t&&e>=0}function g0(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${An}\`.`}function w0(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: - - a positive number - - less than the value passed to \`max\` (or ${An} if no \`max\` prop is set) - - \`null\` if the progress is indeterminate. - -Defaulting to \`null\`.`}const Rh=Hs,Ph=m0,zs="ToastProvider",[mr,E0,x0]=Te("Toast"),[Gs,Th]=q("Toast",[x0]),[C0,On]=Gs(zs),Ys=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:c="right",swipeThreshold:a=50,children:s}=e,[i,l]=o.useState(null),[d,f]=o.useState(0),u=o.useRef(!1),$=o.useRef(!1);return o.createElement(mr.Provider,{scope:t},o.createElement(C0,{scope:t,label:n,duration:r,swipeDirection:c,swipeThreshold:a,toastCount:d,viewport:i,onViewportChange:l,onToastAdd:o.useCallback(()=>f(v=>v+1),[]),onToastRemove:o.useCallback(()=>f(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:u,isClosePausedRef:$},s))};Ys.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${zs}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const y0="ToastViewport",_0=["F8"],xo="toast.viewportPause",Co="toast.viewportResume",S0=o.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=_0,label:c="Notifications ({hotkey})",...a}=e,s=On(y0,n),i=E0(n),l=o.useRef(null),d=o.useRef(null),f=o.useRef(null),u=o.useRef(null),$=I(t,u,s.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=s.toastCount>0;o.useEffect(()=>{const m=h=>{var g;r.every(x=>h[x]||h.code===x)&&((g=u.current)===null||g===void 0||g.focus())};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[r]),o.useEffect(()=>{const m=l.current,h=u.current;if(b&&m&&h){const g=()=>{if(!s.isClosePausedRef.current){const y=new CustomEvent(xo);h.dispatchEvent(y),s.isClosePausedRef.current=!0}},w=()=>{if(s.isClosePausedRef.current){const y=new CustomEvent(Co);h.dispatchEvent(y),s.isClosePausedRef.current=!1}},x=y=>{!m.contains(y.relatedTarget)&&w()},C=()=>{m.contains(document.activeElement)||w()};return m.addEventListener("focusin",g),m.addEventListener("focusout",x),m.addEventListener("pointermove",g),m.addEventListener("pointerleave",C),window.addEventListener("blur",g),window.addEventListener("focus",w),()=>{m.removeEventListener("focusin",g),m.removeEventListener("focusout",x),m.removeEventListener("pointermove",g),m.removeEventListener("pointerleave",C),window.removeEventListener("blur",g),window.removeEventListener("focus",w)}}},[b,s.isClosePausedRef]);const p=o.useCallback(({tabbingDirection:m})=>{const g=i().map(w=>{const x=w.ref.current,C=[x,...H0(x)];return m==="forwards"?C:C.reverse()});return(m==="forwards"?g.reverse():g).flat()},[i]);return o.useEffect(()=>{const m=u.current;if(m){const h=g=>{const w=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!w){const T=document.activeElement,R=g.shiftKey;if(g.target===m&&R){var C;(C=d.current)===null||C===void 0||C.focus();return}const N=p({tabbingDirection:R?"backwards":"forwards"}),B=N.findIndex(P=>P===T);if(Zn(N.slice(B+1)))g.preventDefault();else{var y,S;R?(y=d.current)===null||y===void 0||y.focus():(S=f.current)===null||S===void 0||S.focus()}}};return m.addEventListener("keydown",h),()=>m.removeEventListener("keydown",h)}},[i,p]),o.createElement(hi,{ref:l,role:"region","aria-label":c.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:b?void 0:"none"}},b&&o.createElement(sc,{ref:d,onFocusFromOutsideViewport:()=>{const m=p({tabbingDirection:"forwards"});Zn(m)}}),o.createElement(mr.Slot,{scope:n},o.createElement(M.ol,E({tabIndex:-1},a,{ref:$}))),b&&o.createElement(sc,{ref:f,onFocusFromOutsideViewport:()=>{const m=p({tabbingDirection:"backwards"});Zn(m)}}))}),R0="ToastFocusProxy",sc=o.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...c}=e,a=On(R0,n);return o.createElement(hn,E({"aria-hidden":!0,tabIndex:0},c,{ref:t,style:{position:"fixed"},onFocus:s=>{var i;const l=s.relatedTarget;!((i=a.viewport)!==null&&i!==void 0&&i.contains(l))&&r()}}))}),In="Toast",P0="toast.swipeStart",T0="toast.swipeMove",M0="toast.swipeCancel",D0="toast.swipeEnd",A0=o.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:c,onOpenChange:a,...s}=e,[i=!0,l]=ee({prop:r,defaultProp:c,onChange:a});return o.createElement(Q,{present:n||i},o.createElement(Xs,E({open:i},s,{ref:t,onClose:()=>l(!1),onPause:z(e.onPause),onResume:z(e.onResume),onSwipeStart:_(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:_(e.onSwipeMove,d=>{const{x:f,y:u}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${u}px`)}),onSwipeCancel:_(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:_(e.onSwipeEnd,d=>{const{x:f,y:u}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${u}px`),l(!1)})})))}),[O0,I0]=Gs(In,{onClose(){}}),Xs=o.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:c,open:a,onClose:s,onEscapeKeyDown:i,onPause:l,onResume:d,onSwipeStart:f,onSwipeMove:u,onSwipeCancel:$,onSwipeEnd:v,...b}=e,p=On(In,n),[m,h]=o.useState(null),g=I(t,P=>h(P)),w=o.useRef(null),x=o.useRef(null),C=c||p.duration,y=o.useRef(0),S=o.useRef(C),T=o.useRef(0),{onToastAdd:R,onToastRemove:O}=p,F=z(()=>{var P;m?.contains(document.activeElement)&&((P=p.viewport)===null||P===void 0||P.focus()),s()}),N=o.useCallback(P=>{!P||P===1/0||(window.clearTimeout(T.current),y.current=new Date().getTime(),T.current=window.setTimeout(F,P))},[F]);o.useEffect(()=>{const P=p.viewport;if(P){const D=()=>{N(S.current),d?.()},V=()=>{const L=new Date().getTime()-y.current;S.current=S.current-L,window.clearTimeout(T.current),l?.()};return P.addEventListener(xo,V),P.addEventListener(Co,D),()=>{P.removeEventListener(xo,V),P.removeEventListener(Co,D)}}},[p.viewport,C,l,d,N]),o.useEffect(()=>{a&&!p.isClosePausedRef.current&&N(C)},[a,C,p.isClosePausedRef,N]),o.useEffect(()=>(R(),()=>O()),[R,O]);const B=o.useMemo(()=>m?Qs(m):null,[m]);return p.viewport?o.createElement(o.Fragment,null,B&&o.createElement(N0,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},B),o.createElement(O0,{scope:n,onClose:F},Le.createPortal(o.createElement(mr.ItemSlot,{scope:n},o.createElement(mi,{asChild:!0,onEscapeKeyDown:_(i,()=>{p.isFocusedToastEscapeKeyDownRef.current||F(),p.isFocusedToastEscapeKeyDownRef.current=!1})},o.createElement(M.li,E({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":p.swipeDirection},b,{ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:_(e.onKeyDown,P=>{P.key==="Escape"&&(i?.(P.nativeEvent),P.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:_(e.onPointerDown,P=>{P.button===0&&(w.current={x:P.clientX,y:P.clientY})}),onPointerMove:_(e.onPointerMove,P=>{if(!w.current)return;const D=P.clientX-w.current.x,V=P.clientY-w.current.y,L=!!x.current,W=["left","right"].includes(p.swipeDirection),A=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,H=W?A(0,D):0,U=W?0:A(0,V),J=P.pointerType==="touch"?10:2,ne={x:H,y:U},ae={originalEvent:P,delta:ne};L?(x.current=ne,jt(T0,u,ae,{discrete:!1})):ic(ne,p.swipeDirection,J)?(x.current=ne,jt(P0,f,ae,{discrete:!1}),P.target.setPointerCapture(P.pointerId)):(Math.abs(D)>J||Math.abs(V)>J)&&(w.current=null)}),onPointerUp:_(e.onPointerUp,P=>{const D=x.current,V=P.target;if(V.hasPointerCapture(P.pointerId)&&V.releasePointerCapture(P.pointerId),x.current=null,w.current=null,D){const L=P.currentTarget,W={originalEvent:P,delta:D};ic(D,p.swipeDirection,p.swipeThreshold)?jt(D0,v,W,{discrete:!0}):jt(M0,$,W,{discrete:!0}),L.addEventListener("click",A=>A.preventDefault(),{once:!0})}})})))),p.viewport))):null});Xs.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${In}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const N0=e=>{const{__scopeToast:t,children:n,...r}=e,c=On(In,t),[a,s]=o.useState(!1),[i,l]=o.useState(!1);return K0(()=>s(!0)),o.useEffect(()=>{const d=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(d)},[]),i?null:o.createElement(Mt,{asChild:!0},o.createElement(hn,r,a&&o.createElement(o.Fragment,null,c.label," ",n)))},k0=o.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return o.createElement(M.div,E({},r,{ref:t}))}),L0=o.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return o.createElement(M.div,E({},r,{ref:t}))}),F0="ToastAction",js=o.forwardRef((e,t)=>{const{altText:n,...r}=e;return n?o.createElement(qs,{altText:n,asChild:!0},o.createElement(Zs,E({},r,{ref:t}))):null});js.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${F0}\``)}};const V0="ToastClose",Zs=o.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,c=I0(V0,n);return o.createElement(qs,{asChild:!0},o.createElement(M.button,E({type:"button"},r,{ref:t,onClick:_(e.onClick,c.onClose)})))}),qs=o.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...c}=e;return o.createElement(M.div,E({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},c,{ref:t}))});function Qs(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),B0(r)){const c=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!c)if(a){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Qs(r))}}),t}function jt(e,t,n,{discrete:r}){const c=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&c.addEventListener(e,t,{once:!0}),r?So(c,a):c.dispatchEvent(a)}const ic=(e,t,n=0)=>{const r=Math.abs(e.x),c=Math.abs(e.y),a=r>c;return t==="left"||t==="right"?a&&r>n:!a&&c>n};function K0(e=()=>{}){const t=z(e);re(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function B0(e){return e.nodeType===e.ELEMENT_NODE}function H0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zn(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}const Mh=Ys,Dh=S0,Ah=A0,Oh=k0,Ih=L0,Nh=js,kh=Zs;export{U0 as $,Nm as A,lm as B,um as C,pm as D,Lm as E,Fm as F,km as G,Km as H,Bm as I,Wm as J,Um as K,zm as L,jm as M,qm as N,sm as O,Qm as P,Jm as Q,e1 as R,t1 as S,n1 as T,r1 as U,o1 as V,c1 as W,Xm as X,Zm as Y,l1 as Z,d1 as _,Oe as a,Rh as a$,s1 as a0,i1 as a1,Kp as a2,Bp as a3,Ba as a4,fm as a5,Hp as a6,Wp as a7,Vp as a8,f1 as a9,B1 as aA,Y1 as aB,L1 as aC,X1 as aD,U1 as aE,J1 as aF,eh as aG,th as aH,nh as aI,Q1 as aJ,ah as aK,sh as aL,ih as aM,rh as aN,ch as aO,uh as aP,fh as aQ,vh as aR,bh as aS,ph as aT,$h as aU,dh as aV,gh as aW,wh as aX,Eh as aY,hh as aZ,_h as a_,v1 as aa,b1 as ab,m1 as ac,h1 as ad,bm as ae,w1 as af,E1 as ag,x1 as ah,C1 as ai,_1 as aj,S1 as ak,R1 as al,I1 as am,D1 as an,A1 as ao,O1 as ap,k1 as aq,F1 as ar,j1 as as,Z1 as at,V1 as au,K1 as av,H1 as aw,W1 as ax,G1 as ay,z1 as az,om as b,Ph as b0,vm as b1,Dh as b2,Ah as b3,Nh as b4,kh as b5,Oh as b6,Ih as b7,Mh as b8,dm as b9,$m as ba,cm as bb,am as bc,p1 as bd,E as be,mm as bf,hm as bg,rm as c,j0 as d,Z0 as e,Q0 as f,J0 as g,tm as h,im as i,em as j,q0 as k,nm as l,Y0 as m,X0 as n,Tm as o,Mm as p,Em as q,xm as r,ym as s,_m as t,Rm as u,Sm as v,Cm as w,Pm as x,Om as y,Im as z}; diff --git a/assets/recharts-Bkn1Ho_8.js b/assets/recharts-Bkn1Ho_8.js deleted file mode 100644 index cd913aa..0000000 --- a/assets/recharts-Bkn1Ho_8.js +++ /dev/null @@ -1,68 +0,0 @@ -import{g as $e,_ as Ls,i as Rs,x as yn,w as qe,d as fr,r as B,Q as J,R as P,t as xp,e as Du,f as zo,h as Op,j as qo,k as Ws,l as Sp,m as Ko,n as Ho,p as Ap,o as Us,q as _i,s as Pp,u as _p,v as Xo,y as Tp,T as Ti,z as Ep,K as X,O as jp,A as Vo,B as Fs,C as $p,D as Mp,E as Cp,F as kp}from"./nivo-C0xxZE_O.js";function zs(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t0?1:-1},Mt=function(t){return yn(t)&&t.indexOf("%")===t.length-1},W=function(t){return Kp(t)&&!mn(t)},ye=function(t){return W(t)||yn(t)},Gp=0,gn=function(t){var r=++Gp;return"".concat(t||"").concat(r)},Vt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!W(t)&&!yn(t))return n;var a;if(Mt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return mn(a)&&(a=n),i&&a>r&&(a=r),a},zt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Yp=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rd(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Ca(e){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ca(e)}var Lu={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},lt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Ru=null,la=null,Qo=function e(t){if(t===Ru&&Array.isArray(la))return la;var r=[];return B.Children.forEach(t,function(n){ee(n)||($a.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),la=r,Ru=t,r};function Ke(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return lt(i)}):n=[lt(t)],Qo(e).forEach(function(i){var a=qe(i,"type.displayName")||qe(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ie(e,t){var r=Ke(e,t);return r&&r[0]}var Wu=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!W(n)||n<=0||!W(i)||i<=0)},nd=["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"],id=function(t){return t&&t.type&&yn(t.type)&&nd.indexOf(t.type)>=0},ad=function(t){return t&&Ca(t)==="object"&&"cx"in t&&"cy"in t&&"r"in t},od=function(t,r,n,i){var a,o=(a=ca?.[i])!==null&&a!==void 0?a:[];return!J(t)&&(i&&o.includes(r)||Jp.includes(r))||n&&Jo.includes(r)},Q=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(B.isValidElement(t)&&(i=t.props),!fr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;od((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},ka=function e(t,r){if(t===r)return!0;var n=B.Children.count(t);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Uu(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fd(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Da(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,l=sd(e,ld),f=i||{width:r,height:n,x:0,y:0},s=ne("recharts-surface",a);return P.createElement("svg",Ia({},Q(l,!0,"svg"),{className:s,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,u),P.createElement("desc",null,c),t)}var hd=["children","className"];function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dd(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var fe=P.forwardRef(function(e,t){var r=e.children,n=e.className,i=pd(e,hd),a=ne("recharts-layer",n);return P.createElement("g",Na({className:a},Q(i,!0),{ref:t}),r)}),It=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ai?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n=n?e:md(e,t,r)}var bd=gd,wd="\\ud800-\\udfff",xd="\\u0300-\\u036f",Od="\\ufe20-\\ufe2f",Sd="\\u20d0-\\u20ff",Ad=xd+Od+Sd,Pd="\\ufe0e\\ufe0f",_d="\\u200d",Td=RegExp("["+_d+wd+Ad+Pd+"]");function Ed(e){return Td.test(e)}var Xs=Ed;function jd(e){return e.split("")}var $d=jd,Vs="\\ud800-\\udfff",Md="\\u0300-\\u036f",Cd="\\ufe20-\\ufe2f",kd="\\u20d0-\\u20ff",Id=Md+Cd+kd,Dd="\\ufe0e\\ufe0f",Nd="["+Vs+"]",Ba="["+Id+"]",La="\\ud83c[\\udffb-\\udfff]",Bd="(?:"+Ba+"|"+La+")",Gs="[^"+Vs+"]",Ys="(?:\\ud83c[\\udde6-\\uddff]){2}",Zs="[\\ud800-\\udbff][\\udc00-\\udfff]",Ld="\\u200d",Js=Bd+"?",Qs="["+Dd+"]?",Rd="(?:"+Ld+"(?:"+[Gs,Ys,Zs].join("|")+")"+Qs+Js+")*",Wd=Qs+Js+Rd,Ud="(?:"+[Gs+Ba+"?",Ba,Ys,Zs,Nd].join("|")+")",Fd=RegExp(La+"(?="+La+")|"+Ud+Wd,"g");function zd(e){return e.match(Fd)||[]}var qd=zd,Kd=$d,Hd=Xs,Xd=qd;function Vd(e){return Hd(e)?Xd(e):Kd(e)}var Gd=Vd,Yd=bd,Zd=Xs,Jd=Gd,Qd=xp;function ev(e){return function(t){t=Qd(t);var r=Zd(t)?Jd(t):void 0,n=r?r[0]:t.charAt(0),i=r?Yd(r,1).join(""):t.slice(1);return n[e]()+i}}var tv=ev,rv=tv,nv=rv("toUpperCase"),iv=nv;const Li=$e(iv);function ue(e){return function(){return e}}const ef=Math.cos,Fn=Math.sin,Qe=Math.sqrt,zn=Math.PI,Ri=2*zn,Ra=Math.PI,Wa=2*Ra,jt=1e-6,av=Wa-jt;function tf(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return tf;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;ijt)if(!(Math.abs(s*c-l*f)>jt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=c*c+l*l,d=p*p+y*y,x=Math.sqrt(v),b=Math.sqrt(h),w=a*Math.tan((Ra-Math.acos((v+h-d)/(2*x*b)))/2),m=w/b,g=w/x;Math.abs(m-1)>jt&&this._append`L${t+m*f},${r+m*s}`,this._append`A${a},${a},0,0,${+(s*p>f*y)},${this._x1=t+g*c},${this._y1=r+g*l}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),l=t+u,f=r+c,s=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${l},${f}`:(Math.abs(this._x1-l)>jt||Math.abs(this._y1-f)>jt)&&this._append`L${l},${f}`,n&&(h<0&&(h=h%Wa+Wa),h>av?this._append`A${n},${n},0,1,${s},${t-u},${r-c}A${n},${n},0,1,${s},${this._x1=l},${this._y1=f}`:h>jt&&this._append`A${n},${n},0,${+(h>=Ra)},${s},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function eu(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new uv(t)}function tu(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function rf(e){this._context=e}rf.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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Wi(e){return new rf(e)}function nf(e){return e[0]}function af(e){return e[1]}function of(e,t){var r=ue(!0),n=null,i=Wi,a=null,o=eu(u);e=typeof e=="function"?e:e===void 0?nf:ue(e),t=typeof t=="function"?t:t===void 0?af:ue(t);function u(c){var l,f=(c=tu(c)).length,s,h=!1,p;for(n==null&&(a=i(p=o())),l=0;l<=f;++l)!(l=p;--y)u.point(w[y],m[y]);u.lineEnd(),u.areaEnd()}x&&(w[h]=+e(d,h,s),m[h]=+t(d,h,s),u.point(n?+n(d,h,s):w[h],r?+r(d,h,s):m[h]))}if(b)return u=null,b+""||null}function f(){return of().defined(i).curve(o).context(a)}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:ue(+s),n=null,l):e},l.x0=function(s){return arguments.length?(e=typeof s=="function"?s:ue(+s),l):e},l.x1=function(s){return arguments.length?(n=s==null?null:typeof s=="function"?s:ue(+s),l):n},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:ue(+s),r=null,l):t},l.y0=function(s){return arguments.length?(t=typeof s=="function"?s:ue(+s),l):t},l.y1=function(s){return arguments.length?(r=s==null?null:typeof s=="function"?s:ue(+s),l):r},l.lineX0=l.lineY0=function(){return f().x(e).y(t)},l.lineY1=function(){return f().x(e).y(r)},l.lineX1=function(){return f().x(n).y(t)},l.defined=function(s){return arguments.length?(i=typeof s=="function"?s:ue(!!s),l):i},l.curve=function(s){return arguments.length?(o=s,a!=null&&(u=o(a)),l):o},l.context=function(s){return arguments.length?(s==null?a=u=null:u=o(a=s),l):a},l}class uf{constructor(t,r){this._context=t,this._x=r}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(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function cv(e){return new uf(e,!0)}function lv(e){return new uf(e,!1)}const ru={draw(e,t){const r=Qe(t/zn);e.moveTo(r,0),e.arc(0,0,r,0,Ri)}},sv={draw(e,t){const r=Qe(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},cf=Qe(1/3),fv=cf*2,hv={draw(e,t){const r=Qe(t/fv),n=r*cf;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},pv={draw(e,t){const r=Qe(t),n=-r/2;e.rect(n,n,r,r)}},dv=.8908130915292852,lf=Fn(zn/10)/Fn(7*zn/10),vv=Fn(Ri/10)*lf,yv=-ef(Ri/10)*lf,mv={draw(e,t){const r=Qe(t*dv),n=vv*r,i=yv*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ri*a/5,u=ef(o),c=Fn(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},sa=Qe(3),gv={draw(e,t){const r=-Qe(t/(sa*3));e.moveTo(0,r*2),e.lineTo(-sa*r,-r),e.lineTo(sa*r,-r),e.closePath()}},Re=-.5,We=Qe(3)/2,Ua=1/Qe(12),bv=(Ua/2+1)*3,wv={draw(e,t){const r=Qe(t/bv),n=r/2,i=r*Ua,a=n,o=r*Ua+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Re*n-We*i,We*n+Re*i),e.lineTo(Re*a-We*o,We*a+Re*o),e.lineTo(Re*u-We*c,We*u+Re*c),e.lineTo(Re*n+We*i,Re*i-We*n),e.lineTo(Re*a+We*o,Re*o-We*a),e.lineTo(Re*u+We*c,Re*c-We*u),e.closePath()}};function xv(e,t){let r=null,n=eu(i);e=typeof e=="function"?e:ue(e||ru),t=typeof t=="function"?t:ue(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ue(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ue(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function qn(){}function Kn(e,t,r){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+t)/6,(e._y0+4*e._y1+r)/6)}function sf(e){this._context=e}sf.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:Kn(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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:Kn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ov(e){return new sf(e)}function ff(e){this._context=e}ff.prototype={areaStart:qn,areaEnd:qn,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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Kn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sv(e){return new ff(e)}function hf(e){this._context=e}hf.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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Kn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Av(e){return new hf(e)}function pf(e){this._context=e}pf.prototype={areaStart:qn,areaEnd:qn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Pv(e){return new pf(e)}function zu(e){return e<0?-1:1}function qu(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(zu(a)+zu(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Ku(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function fa(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Hn(e){this._context=e}Hn.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:fa(this,this._t0,Ku(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,fa(this,Ku(this,r=qu(this,e,t)),r);break;default:fa(this,this._t0,r=qu(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function df(e){this._context=new vf(e)}(df.prototype=Object.create(Hn.prototype)).point=function(e,t){Hn.prototype.point.call(this,t,e)};function vf(e){this._context=e}vf.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function _v(e){return new Hn(e)}function Tv(e){return new df(e)}function yf(e){this._context=e}yf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Hu(e),i=Hu(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function jv(e){return new Ui(e,.5)}function $v(e){return new Ui(e,0)}function Mv(e){return new Ui(e,1)}function Gt(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r=0;)r[t]=t;return r}function Cv(e,t){return e[t]}function kv(e){const t=[];return t.key=e,t}function Iv(){var e=ue([]),t=Fa,r=Gt,n=Cv;function i(a){var o=Array.from(e.apply(this,arguments),kv),u,c=o.length,l=-1,f;for(const s of a)for(u=0,++l;u0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zv(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var mf={symbolCircle:ru,symbolCross:sv,symbolDiamond:hv,symbolSquare:pv,symbolStar:mv,symbolTriangle:gv,symbolWye:wv},qv=Math.PI/180,Kv=function(t){var r="symbol".concat(Li(t));return mf[r]||ru},Hv=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*qv;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Xv=function(t,r){mf["symbol".concat(Li(t))]=r},nu=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=Fv(t,Lv),l=Vu(Vu({},c),{},{type:n,size:a,sizeType:u}),f=function(){var d=Kv(n),x=xv().type(d).size(Hv(a,u,n));return x()},s=l.className,h=l.cx,p=l.cy,y=Q(l,!0);return h===+h&&p===+p&&a===+a?P.createElement("path",za({},y,{className:ne("recharts-symbols",s),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};nu.registerSymbol=Xv;function Yt(e){"@babel/helpers - typeof";return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yt(e)}function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var b=p.inactive?l:p.color;return P.createElement("li",qa({className:d,style:s,key:"legend-item-".concat(y)},Un(n.props,p,y)),P.createElement(Da,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},v?v(x,p,y):x))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}]),t}(B.PureComponent);Ir(iu,"displayName","Legend");Ir(iu,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function wf(e,t,r){return t===!0?Du(e,r):J(t)?Du(e,t):e}function Zt(e){"@babel/helpers - typeof";return Zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zt(e)}var ry=["ref"];function Zu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sy(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function fy(e){return e.value}function hy(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var r=ly(t,ry);return P.createElement(iu,r)}var Qu=1,Dr=function(e){uy(t,e);function t(){var r;ny(this,t);for(var n=arguments.length,i=new Array(n),a=0;aQu||Math.abs(i.height-this.lastBoundingBox.height)>Qu)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Et({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,l=i.chartWidth,f=i.chartHeight,s,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();s={left:((l||0)-p.width)/2}}else s=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Et(Et({},s),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,l=i.payloadUniqBy,f=i.payload,s=Et(Et({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return P.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(p){n.wrapperNode=p}},hy(a,Et(Et({},this.props),{},{payload:wf(f,l,fy)})))}}],[{key:"getWithHeight",value:function(n,i){var a=n.props.layout;return a==="vertical"&&W(n.props.height)?{height:n.props.height}:a==="horizontal"?{width:n.props.width||i}:null}}]),t}(B.PureComponent);Fi(Dr,"displayName","Legend");Fi(Dr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function Nr(e){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function Xa(){return Xa=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(yr,"-left"),W(r)&&t&&W(t.x)&&r=t.y),"".concat(yr,"-top"),W(n)&&t&&W(t.y)&&nv?Math.max(f,c[n]):Math.max(s,c[n])}function Ty(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Ey(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,l,f,s;return o.height>0&&o.width>0&&r?(f=rc({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),s=rc({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),l=Ty({translateX:f,translateY:s,useTranslate3d:u})):l=Py,{cssProperties:l,cssClasses:_y({translateX:f,translateY:s,coordinate:r})}}function Jt(e){"@babel/helpers - typeof";return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(e)}function nc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ic(e){for(var t=1;toc||Math.abs(n.height-this.lastBoundingBox.height)>oc)&&(this.lastBoundingBox.width=n.width,this.lastBoundingBox.height=n.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.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 n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,l=i.children,f=i.coordinate,s=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,d=i.useTranslate3d,x=i.viewBox,b=i.wrapperStyle,w=Ey({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:d,viewBox:x}),m=w.cssClasses,g=w.cssProperties,O=ic(ic({transition:h&&a?"transform ".concat(u,"ms ").concat(c):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&s?"visible":"hidden",position:"absolute",top:0,left:0},b);return P.createElement("div",{tabIndex:-1,className:m,style:O,ref:function(A){n.wrapperNode=A}},l)}}]),t}(B.PureComponent),Ny=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},st={isSsr:Ny(),get:function(t){return st[t]},set:function(t,r){if(typeof t=="string")st[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){st[i]=t[i]})}}};function Qt(e){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(e)}function uc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cc(e){for(var t=1;t0;return P.createElement(Dy,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:O,offset:p,position:d,reverseDirection:x,useTranslate3d:b,viewBox:w,wrapperStyle:m},Ky(l,cc(cc({},this.props),{},{payload:g})))}}]),t}(B.PureComponent);au(ot,"displayName","Tooltip");au(ot,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!st.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 Hy=Op,Xy=function(){return Hy.Date.now()},Vy=Xy,Gy=/\s/;function Yy(e){for(var t=e.length;t--&&Gy.test(e.charAt(t)););return t}var Zy=Yy,Jy=Zy,Qy=/^\s+/;function em(e){return e&&e.slice(0,Jy(e)+1).replace(Qy,"")}var tm=em,rm=tm,sc=qo,nm=Ws,fc=NaN,im=/^[-+]0x[0-9a-f]+$/i,am=/^0b[01]+$/i,om=/^0o[0-7]+$/i,um=parseInt;function cm(e){if(typeof e=="number")return e;if(nm(e))return fc;if(sc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=sc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=rm(e);var r=am.test(e);return r||om.test(e)?um(e.slice(2),r?2:8):im.test(e)?fc:+e}var Ef=cm,lm=qo,pa=Vy,hc=Ef,sm="Expected a function",fm=Math.max,hm=Math.min;function pm(e,t,r){var n,i,a,o,u,c,l=0,f=!1,s=!1,h=!0;if(typeof e!="function")throw new TypeError(sm);t=hc(t)||0,lm(r)&&(f=!!r.leading,s="maxWait"in r,a=s?fm(hc(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function p(O){var S=n,A=i;return n=i=void 0,l=O,o=e.apply(A,S),o}function y(O){return l=O,u=setTimeout(x,t),f?p(O):o}function v(O){var S=O-c,A=O-l,$=t-S;return s?hm($,a-A):$}function d(O){var S=O-c,A=O-l;return c===void 0||S>=t||S<0||s&&A>=a}function x(){var O=pa();if(d(O))return b(O);u=setTimeout(x,v(O))}function b(O){return u=void 0,h&&n?p(O):(n=i=void 0,o)}function w(){u!==void 0&&clearTimeout(u),l=0,n=c=i=u=void 0}function m(){return u===void 0?o:b(pa())}function g(){var O=pa(),S=d(O);if(n=arguments,i=this,c=O,S){if(u===void 0)return y(c);if(s)return clearTimeout(u),u=setTimeout(x,t),p(c)}return u===void 0&&(u=setTimeout(x,t)),o}return g.cancel=w,g.flush=m,g}var dm=pm,vm=dm,ym=qo,mm="Expected a function";function gm(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(mm);return ym(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),vm(e,t,{leading:n,maxWait:t,trailing:i})}var bm=gm;const jf=$e(bm);function Lr(e){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lr(e)}function pc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function En(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(k=jf(k,v,{trailing:!0,leading:!1}));var E=new ResizeObserver(k),D=g.current.getBoundingClientRect(),M=D.width,N=D.height;return T(M,N),E.observe(g.current),function(){E.disconnect()}},[T,v]);var _=B.useMemo(function(){var k=$.containerWidth,E=$.containerHeight;if(k<0||E<0)return null;It(Mt(o)||Mt(c),`The width(%s) and height(%s) are both fixed numbers, - maybe you don't need to use a ResponsiveContainer.`,o,c),It(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=Mt(o)?k:o,M=Mt(c)?E:c;r&&r>0&&(D?M=D/r:M&&(D=M*r),h&&M>h&&(M=h)),It(D>0||M>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.`,D,M,o,c,f,s,r);var N=!Array.isArray(p)&&$a.isElement(p)&<(p.type).endsWith("Chart");return P.Children.map(p,function(L){return $a.isElement(L)?B.cloneElement(L,En({width:D,height:M},N?{style:En({height:"100%",width:"100%",maxHeight:M,maxWidth:D},L.props.style)}:{})):L})},[r,p,c,h,s,f,$,o]);return P.createElement("div",{id:d?"".concat(d):void 0,className:ne("recharts-responsive-container",x),style:En(En({},m),{},{width:o,height:c,minWidth:f,minHeight:s,maxHeight:h}),ref:g},_)}),$f=function(t){return null};$f.displayName="Cell";function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ya(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||st.isSsr)return{width:0,height:0};var n=km(r),i=JSON.stringify({text:t,copyStyle:n});if(Wt.widthCache[i])return Wt.widthCache[i];try{var a=document.getElementById(yc);a||(a=document.createElement("span"),a.setAttribute("id",yc),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Ya(Ya({},Cm),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return Wt.widthCache[i]=c,++Wt.cacheCount>Mm&&(Wt.cacheCount=0,Wt.widthCache={}),c}catch{return{width:0,height:0}}},Im=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Wr(e){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(e)}function Zn(e,t){return Lm(e)||Bm(e,t)||Nm(e,t)||Dm()}function Dm(){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 Nm(e,t){if(e){if(typeof e=="string")return mc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mc(e,t)}}function mc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jm(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Sc(e,t){return rg(e)||tg(e,t)||eg(e,t)||Qm()}function Qm(){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 eg(e,t){if(e){if(typeof e=="string")return Ac(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ac(e,t)}}function Ac(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function(M,N){var L=N.word,R=N.width,K=M[M.length-1];if(K&&(i==null||a||K.width+R+nN.width?M:N})};if(!f)return p;for(var v="…",d=function(D){var M=s.slice(0,D),N=If({breakAll:l,style:c,children:M+v}).wordsWithComputedWidth,L=h(N),R=L.length>o||y(L).width>Number(i);return[R,L]},x=0,b=s.length-1,w=0,m;x<=b&&w<=s.length-1;){var g=Math.floor((x+b)/2),O=g-1,S=d(O),A=Sc(S,2),$=A[0],j=A[1],T=d(g),_=Sc(T,1),k=_[0];if(!$&&!k&&(x=g+1),$&&k&&(b=g-1),!$&&k){m=j;break}w++}return m||p},Pc=function(t){var r=ee(t)?[]:t.toString().split(kf);return[{words:r}]},ig=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!st.isSsr){var c,l,f=If({breakAll:o,children:i,style:a});if(f){var s=f.wordsWithComputedWidth,h=f.spaceWidth;c=s,l=h}else return Pc(i);return ng({breakAll:o,children:i,maxLines:u,style:a},c,l,r,n)}return Pc(i)},_c="#808080",Jn=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,l=c===void 0?"0.71em":c,f=t.scaleToFit,s=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,d=t.fill,x=d===void 0?_c:d,b=Oc(t,Ym),w=B.useMemo(function(){return ig({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:s,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,s,b.style,b.width]),m=b.dx,g=b.dy,O=b.angle,S=b.className,A=b.breakAll,$=Oc(b,Zm);if(!ye(n)||!ye(a))return null;var j=n+(W(m)?m:0),T=a+(W(g)?g:0),_;switch(v){case"start":_=da("calc(".concat(l,")"));break;case"middle":_=da("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:_=da("calc(".concat(w.length-1," * -").concat(u,")"));break}var k=[];if(s){var E=w[0].width,D=b.width;k.push("scale(".concat((W(D)?D/E:1)/E,")"))}return O&&k.push("rotate(".concat(O,", ").concat(j,", ").concat(T,")")),k.length&&($.transform=k.join(" ")),P.createElement("text",Za({},Q($,!0),{x:j,y:T,className:ne("recharts-text",S),textAnchor:p,fill:x.includes("url")?_c:x}),w.map(function(M,N){var L=M.words.join(A?"":" ");return P.createElement("tspan",{x:j,dy:N===0?_:u,key:L},L)}))};function wt(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function ag(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function ou(e){let t,r,n;e.length!==2?(t=wt,r=(u,c)=>wt(e(u),c),n=(u,c)=>e(u)-c):(t=e===wt||e===ag?e:og,r=e,n=e);function i(u,c,l=0,f=u.length){if(l>>1;r(u[s],c)<0?l=s+1:f=s}while(l>>1;r(u[s],c)<=0?l=s+1:f=s}while(ll&&n(u[s-1],c)>-n(u[s],c)?s-1:s}return{left:i,center:o,right:a}}function og(){return 0}function Df(e){return e===null?NaN:+e}function*ug(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const cg=ou(wt),bn=cg.right;ou(Df).center;class Tc extends Map{constructor(t,r=fg){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Ec(this,t))}has(t){return super.has(Ec(this,t))}set(t,r){return super.set(lg(this,t),r)}delete(t){return super.delete(sg(this,t))}}function Ec({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function lg({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function sg({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function fg(e){return e!==null&&typeof e=="object"?e.valueOf():e}function hg(e=wt){if(e===wt)return Nf;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Nf(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const pg=Math.sqrt(50),dg=Math.sqrt(10),vg=Math.sqrt(2);function Qn(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=pg?10:a>=dg?5:a>=vg?2:1;let u,c,l;return i<0?(l=Math.pow(10,-i)/o,u=Math.round(e*l),c=Math.round(t*l),u/lt&&--c,l=-l):(l=Math.pow(10,i)*o,u=Math.round(e/l),c=Math.round(t/l),u*lt&&--c),c0))return[];if(e===t)return[e];const n=t=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let l=0;l=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r=i)&&(r=i)}return r}function $c(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function Bf(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Nf:hg(i);n>r;){if(n-r>600){const c=n-r+1,l=t-r+1,f=Math.log(c),s=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*s*(c-s)/c)*(l-c/2<0?-1:1),p=Math.max(r,Math.floor(t-l*s/c+h)),y=Math.min(n,Math.floor(t+(c-l)*s/c+h));Bf(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(mr(e,r,t),i(e[n],a)>0&&mr(e,r,n);o0;)--u}i(e[r],a)===0?mr(e,r,u):(++u,mr(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function mr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function yg(e,t,r){if(e=Float64Array.from(ug(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return $c(e);if(t>=1)return jc(e);var n,i=(n-1)*t,a=Math.floor(i),o=jc(Bf(e,a).subarray(0,a+1)),u=$c(e.subarray(a+1));return o+(u-o)*(i-a)}}function mg(e,t,r=Df){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function gg(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++nt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function xg(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?Og:xg,c=l=null,s}function s(h){return h==null||isNaN(h=+h)?a:(c||(c=u(e.map(n),t,r)))(n(o(h)))}return s.invert=function(h){return o(i((l||(l=u(t,e.map(n),Sp)))(h)))},s.domain=function(h){return arguments.length?(e=Array.from(h,ei),f()):e.slice()},s.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},s.rangeRound=function(h){return t=Array.from(h),r=Ho,f()},s.clamp=function(h){return arguments.length?(o=h?!0:je,f()):o!==je},s.interpolate=function(h){return arguments.length?(r=h,f()):r},s.unknown=function(h){return arguments.length?(a=h,s):a},function(h,p){return n=h,i=p,f()}}function cu(){return zi()(je,je)}function Sg(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ti(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function er(e){return e=ti(Math.abs(e)),e?e[1]:NaN}function Ag(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Pg(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var _g=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fr(e){if(!(t=_g.exec(e)))throw new Error("invalid format: "+e);var t;return new lu({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Fr.prototype=lu.prototype;function lu(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+""}lu.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 Tg(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Rf;function Eg(e,t){var r=ti(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Rf=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ti(e,Math.max(0,t+a-1))[0]}function Cc(e,t){var r=ti(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const kc={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Sg,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Cc(e*100,t),r:Cc,s:Eg,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ic(e){return e}var Dc=Array.prototype.map,Nc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function jg(e){var t=e.grouping===void 0||e.thousands===void 0?Ic:Ag(Dc.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Ic:Pg(Dc.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(s){s=Fr(s);var h=s.fill,p=s.align,y=s.sign,v=s.symbol,d=s.zero,x=s.width,b=s.comma,w=s.precision,m=s.trim,g=s.type;g==="n"?(b=!0,g="g"):kc[g]||(w===void 0&&(w=12),m=!0,g="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var O=v==="$"?r:v==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=v==="$"?n:/[%p]/.test(g)?o:"",A=kc[g],$=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function j(T){var _=O,k=S,E,D,M;if(g==="c")k=A(T)+k,T="";else{T=+T;var N=T<0||1/T<0;if(T=isNaN(T)?c:A(Math.abs(T),w),m&&(T=Tg(T)),N&&+T==0&&y!=="+"&&(N=!1),_=(N?y==="("?y:u:y==="-"||y==="("?"":y)+_,k=(g==="s"?Nc[8+Rf/3]:"")+k+(N&&y==="("?")":""),$){for(E=-1,D=T.length;++EM||M>57){k=(M===46?i+T.slice(E+1):T.slice(E))+k,T=T.slice(0,E);break}}}b&&!d&&(T=t(T,1/0));var L=_.length+T.length+k.length,R=L>1)+_+T+k+R.slice(L);break;default:T=R+_+T+k;break}return a(T)}return j.toString=function(){return s+""},j}function f(s,h){var p=l((s=Fr(s),s.type="f",s)),y=Math.max(-8,Math.min(8,Math.floor(er(h)/3)))*3,v=Math.pow(10,-y),d=Nc[8+y/3];return function(x){return p(v*x)+d}}return{format:l,formatPrefix:f}}var $n,su,Wf;$g({thousands:",",grouping:[3],currency:["$",""]});function $g(e){return $n=jg(e),su=$n.format,Wf=$n.formatPrefix,$n}function Mg(e){return Math.max(0,-er(Math.abs(e)))}function Cg(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(er(t)/3)))*3-er(Math.abs(e)))}function kg(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,er(t)-er(e))+1}function Uf(e,t,r,n){var i=eo(e,t,r),a;switch(n=Fr(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Cg(i,o))&&(n.precision=a),Wf(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=kg(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Mg(i))&&(n.precision=a-(n.type==="%")*2);break}}return su(n)}function Ot(e){var t=e.domain;return e.ticks=function(r){var n=t();return Ja(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Uf(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,l,f=10;for(u0;){if(l=Qa(o,u,r),l===c)return n[i]=o,n[a]=u,t(n);if(l>0)o=Math.floor(o/l)*l,u=Math.ceil(u/l)*l;else if(l<0)o=Math.ceil(o*l)/l,u=Math.floor(u*l)/l;else break;c=l}return e},e}function ri(){var e=cu();return e.copy=function(){return wn(e,ri())},Xe.apply(e,arguments),Ot(e)}function Ff(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,ei),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Ff(e).unknown(t)},e=arguments.length?Array.from(e,ei):[0,1],Ot(r)}function zf(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function Lg(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Rc(e){return(t,r)=>-e(-t,r)}function fu(e){const t=e(Bc,Lc),r=t.domain;let n=10,i,a;function o(){return i=Lg(n),a=Bg(n),r()[0]<0?(i=Rc(i),a=Rc(a),e(Ig,Dg)):e(Bc,Lc),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let l=c[0],f=c[c.length-1];const s=f0){for(;h<=p;++h)for(y=1;yf)break;x.push(v)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(v=h>0?y/a(-h):y*a(h),!(vf)break;x.push(v)}x.length*2{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Fr(c)).precision==null&&(c.trim=!0),c=su(c)),u===1/0)return c;const l=Math.max(1,n*u/t.ticks().length);return f=>{let s=f/a(Math.round(i(f)));return s*nr(zf(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function qf(){const e=fu(zi()).domain([1,10]);return e.copy=()=>wn(e,qf()).base(e.base()),Xe.apply(e,arguments),e}function Wc(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Uc(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function hu(e){var t=1,r=e(Wc(t),Uc(t));return r.constant=function(n){return arguments.length?e(Wc(t=+n),Uc(t)):t},Ot(r)}function Kf(){var e=hu(zi());return e.copy=function(){return wn(e,Kf()).constant(e.constant())},Xe.apply(e,arguments)}function Fc(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Rg(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Wg(e){return e<0?-e*e:e*e}function pu(e){var t=e(je,je),r=1;function n(){return r===1?e(je,je):r===.5?e(Rg,Wg):e(Fc(r),Fc(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Ot(t)}function du(){var e=pu(zi());return e.copy=function(){return wn(e,du()).exponent(e.exponent())},Xe.apply(e,arguments),e}function Ug(){return du.apply(null,arguments).exponent(.5)}function zc(e){return Math.sign(e)*e*e}function Fg(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Hf(){var e=cu(),t=[0,1],r=!1,n;function i(a){var o=Fg(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(zc(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,ei)).map(zc)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Hf(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Xe.apply(i,arguments),Ot(i)}function Xf(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o0?r[u-1]:e[0],u=r?[n[r-1],t]:[n[l-1],n[l]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Vf().domain([e,t]).range(i).unknown(a)},Xe.apply(Ot(o),arguments)}function Gf(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[bn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Gf().domain(e).range(t).unknown(r)},Xe.apply(i,arguments)}const va=new Date,ya=new Date;function me(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a0))return c;let l;do c.push(l=new Date(+a)),t(a,u),e(a);while(lme(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(va.setTime(+a),ya.setTime(+o),e(va),e(ya),Math.floor(r(va,ya))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ni=me(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ni.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?me(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ni);ni.range;const ut=1e3,ze=ut*60,ct=ze*60,ht=ct*24,vu=ht*7,qc=ht*30,ma=ht*365,Ct=me(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ut)},(e,t)=>(t-e)/ut,e=>e.getUTCSeconds());Ct.range;const yu=me(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ut)},(e,t)=>{e.setTime(+e+t*ze)},(e,t)=>(t-e)/ze,e=>e.getMinutes());yu.range;const mu=me(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ze)},(e,t)=>(t-e)/ze,e=>e.getUTCMinutes());mu.range;const gu=me(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ut-e.getMinutes()*ze)},(e,t)=>{e.setTime(+e+t*ct)},(e,t)=>(t-e)/ct,e=>e.getHours());gu.range;const bu=me(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ct)},(e,t)=>(t-e)/ct,e=>e.getUTCHours());bu.range;const xn=me(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ze)/ht,e=>e.getDate()-1);xn.range;const qi=me(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ht,e=>e.getUTCDate()-1);qi.range;const Yf=me(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ht,e=>Math.floor(e/ht));Yf.range;function Lt(e){return me(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*ze)/vu)}const Ki=Lt(0),ii=Lt(1),zg=Lt(2),qg=Lt(3),tr=Lt(4),Kg=Lt(5),Hg=Lt(6);Ki.range;ii.range;zg.range;qg.range;tr.range;Kg.range;Hg.range;function Rt(e){return me(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/vu)}const Hi=Rt(0),ai=Rt(1),Xg=Rt(2),Vg=Rt(3),rr=Rt(4),Gg=Rt(5),Yg=Rt(6);Hi.range;ai.range;Xg.range;Vg.range;rr.range;Gg.range;Yg.range;const wu=me(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());wu.range;const xu=me(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());xu.range;const pt=me(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());pt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:me(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});pt.range;const dt=me(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());dt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:me(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});dt.range;function Zf(e,t,r,n,i,a){const o=[[Ct,1,ut],[Ct,5,5*ut],[Ct,15,15*ut],[Ct,30,30*ut],[a,1,ze],[a,5,5*ze],[a,15,15*ze],[a,30,30*ze],[i,1,ct],[i,3,3*ct],[i,6,6*ct],[i,12,12*ct],[n,1,ht],[n,2,2*ht],[r,1,vu],[t,1,qc],[t,3,3*qc],[e,1,ma]];function u(l,f,s){const h=fd).right(o,h);if(p===o.length)return e.every(eo(l/ma,f/ma,s));if(p===0)return ni.every(Math.max(eo(l,f,s),1));const[y,v]=o[h/o[p-1][2]53)return null;"w"in I||(I.w=1),"Z"in I?(Y=ba(gr(I.y,0,1)),de=Y.getUTCDay(),Y=de>4||de===0?ai.ceil(Y):ai(Y),Y=qi.offset(Y,(I.V-1)*7),I.y=Y.getUTCFullYear(),I.m=Y.getUTCMonth(),I.d=Y.getUTCDate()+(I.w+6)%7):(Y=ga(gr(I.y,0,1)),de=Y.getDay(),Y=de>4||de===0?ii.ceil(Y):ii(Y),Y=xn.offset(Y,(I.V-1)*7),I.y=Y.getFullYear(),I.m=Y.getMonth(),I.d=Y.getDate()+(I.w+6)%7)}else("W"in I||"U"in I)&&("w"in I||(I.w="u"in I?I.u%7:"W"in I?1:0),de="Z"in I?ba(gr(I.y,0,1)).getUTCDay():ga(gr(I.y,0,1)).getDay(),I.m=0,I.d="W"in I?(I.w+6)%7+I.W*7-(de+5)%7:I.w+I.U*7-(de+6)%7);return"Z"in I?(I.H+=I.Z/100|0,I.M+=I.Z%100,ba(I)):ga(I)}}function A(U,H,G,I){for(var se=0,Y=H.length,de=G.length,he,Me;se=de)return-1;if(he=H.charCodeAt(se++),he===37){if(he=H.charAt(se++),Me=g[he in Kc?H.charAt(se++):he],!Me||(I=Me(U,G,I))<0)return-1}else if(he!=G.charCodeAt(I++))return-1}return I}function $(U,H,G){var I=l.exec(H.slice(G));return I?(U.p=f.get(I[0].toLowerCase()),G+I[0].length):-1}function j(U,H,G){var I=p.exec(H.slice(G));return I?(U.w=y.get(I[0].toLowerCase()),G+I[0].length):-1}function T(U,H,G){var I=s.exec(H.slice(G));return I?(U.w=h.get(I[0].toLowerCase()),G+I[0].length):-1}function _(U,H,G){var I=x.exec(H.slice(G));return I?(U.m=b.get(I[0].toLowerCase()),G+I[0].length):-1}function k(U,H,G){var I=v.exec(H.slice(G));return I?(U.m=d.get(I[0].toLowerCase()),G+I[0].length):-1}function E(U,H,G){return A(U,t,H,G)}function D(U,H,G){return A(U,r,H,G)}function M(U,H,G){return A(U,n,H,G)}function N(U){return o[U.getDay()]}function L(U){return a[U.getDay()]}function R(U){return c[U.getMonth()]}function K(U){return u[U.getMonth()]}function V(U){return i[+(U.getHours()>=12)]}function z(U){return 1+~~(U.getMonth()/3)}function Z(U){return o[U.getUTCDay()]}function Ae(U){return a[U.getUTCDay()]}function Pe(U){return c[U.getUTCMonth()]}function Pt(U){return u[U.getUTCMonth()]}function it(U){return i[+(U.getUTCHours()>=12)]}function Le(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var H=O(U+="",w);return H.toString=function(){return U},H},parse:function(U){var H=S(U+="",!1);return H.toString=function(){return U},H},utcFormat:function(U){var H=O(U+="",m);return H.toString=function(){return U},H},utcParse:function(U){var H=S(U+="",!0);return H.toString=function(){return U},H}}}var Kc={"-":"",_:" ",0:"0"},xe=/^\s*\d+/,rb=/^%/,nb=/[\\^$*+?|[\]().{}]/g;function re(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function ab(e,t,r){var n=xe.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function ob(e,t,r){var n=xe.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function ub(e,t,r){var n=xe.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function cb(e,t,r){var n=xe.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function lb(e,t,r){var n=xe.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Hc(e,t,r){var n=xe.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Xc(e,t,r){var n=xe.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function sb(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function fb(e,t,r){var n=xe.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function hb(e,t,r){var n=xe.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Vc(e,t,r){var n=xe.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function pb(e,t,r){var n=xe.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Gc(e,t,r){var n=xe.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function db(e,t,r){var n=xe.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function vb(e,t,r){var n=xe.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function yb(e,t,r){var n=xe.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function mb(e,t,r){var n=xe.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function gb(e,t,r){var n=rb.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function bb(e,t,r){var n=xe.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function wb(e,t,r){var n=xe.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Yc(e,t){return re(e.getDate(),t,2)}function xb(e,t){return re(e.getHours(),t,2)}function Ob(e,t){return re(e.getHours()%12||12,t,2)}function Sb(e,t){return re(1+xn.count(pt(e),e),t,3)}function Jf(e,t){return re(e.getMilliseconds(),t,3)}function Ab(e,t){return Jf(e,t)+"000"}function Pb(e,t){return re(e.getMonth()+1,t,2)}function _b(e,t){return re(e.getMinutes(),t,2)}function Tb(e,t){return re(e.getSeconds(),t,2)}function Eb(e){var t=e.getDay();return t===0?7:t}function jb(e,t){return re(Ki.count(pt(e)-1,e),t,2)}function Qf(e){var t=e.getDay();return t>=4||t===0?tr(e):tr.ceil(e)}function $b(e,t){return e=Qf(e),re(tr.count(pt(e),e)+(pt(e).getDay()===4),t,2)}function Mb(e){return e.getDay()}function Cb(e,t){return re(ii.count(pt(e)-1,e),t,2)}function kb(e,t){return re(e.getFullYear()%100,t,2)}function Ib(e,t){return e=Qf(e),re(e.getFullYear()%100,t,2)}function Db(e,t){return re(e.getFullYear()%1e4,t,4)}function Nb(e,t){var r=e.getDay();return e=r>=4||r===0?tr(e):tr.ceil(e),re(e.getFullYear()%1e4,t,4)}function Bb(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function Zc(e,t){return re(e.getUTCDate(),t,2)}function Lb(e,t){return re(e.getUTCHours(),t,2)}function Rb(e,t){return re(e.getUTCHours()%12||12,t,2)}function Wb(e,t){return re(1+qi.count(dt(e),e),t,3)}function eh(e,t){return re(e.getUTCMilliseconds(),t,3)}function Ub(e,t){return eh(e,t)+"000"}function Fb(e,t){return re(e.getUTCMonth()+1,t,2)}function zb(e,t){return re(e.getUTCMinutes(),t,2)}function qb(e,t){return re(e.getUTCSeconds(),t,2)}function Kb(e){var t=e.getUTCDay();return t===0?7:t}function Hb(e,t){return re(Hi.count(dt(e)-1,e),t,2)}function th(e){var t=e.getUTCDay();return t>=4||t===0?rr(e):rr.ceil(e)}function Xb(e,t){return e=th(e),re(rr.count(dt(e),e)+(dt(e).getUTCDay()===4),t,2)}function Vb(e){return e.getUTCDay()}function Gb(e,t){return re(ai.count(dt(e)-1,e),t,2)}function Yb(e,t){return re(e.getUTCFullYear()%100,t,2)}function Zb(e,t){return e=th(e),re(e.getUTCFullYear()%100,t,2)}function Jb(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function Qb(e,t){var r=e.getUTCDay();return e=r>=4||r===0?rr(e):rr.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function e0(){return"+0000"}function Jc(){return"%"}function Qc(e){return+e}function el(e){return Math.floor(+e/1e3)}var Ut,rh,nh;t0({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 t0(e){return Ut=tb(e),rh=Ut.format,Ut.parse,nh=Ut.utcFormat,Ut.utcParse,Ut}function r0(e){return new Date(e)}function n0(e){return e instanceof Date?+e:+new Date(+e)}function Ou(e,t,r,n,i,a,o,u,c,l){var f=cu(),s=f.invert,h=f.domain,p=l(".%L"),y=l(":%S"),v=l("%I:%M"),d=l("%I %p"),x=l("%a %d"),b=l("%b %d"),w=l("%B"),m=l("%Y");function g(O){return(c(O)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>yg(e,a/n))},r.copy=function(){return uh(t).domain(e)},yt.apply(r,arguments)}function Vi(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,l=je,f,s=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*vt}var f0=s0,h0=fh,p0=f0,d0=Us;function v0(e){return e&&e.length?h0(e,d0,p0):void 0}var y0=v0;const Gi=$e(y0);function m0(e,t){return ee.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};F.decimalPlaces=F.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ce;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};F.dividedBy=F.div=function(e){return ft(this,new this.constructor(e))};F.dividedToIntegerBy=F.idiv=function(e){var t=this,r=t.constructor;return oe(ft(t,new r(e),0,1),r.precision)};F.equals=F.eq=function(e){return!this.cmp(e)};F.exponent=function(){return pe(this)};F.greaterThan=F.gt=function(e){return this.cmp(e)>0};F.greaterThanOrEqualTo=F.gte=function(e){return this.cmp(e)>=0};F.isInteger=F.isint=function(){return this.e>this.d.length-2};F.isNegative=F.isneg=function(){return this.s<0};F.isPositive=F.ispos=function(){return this.s>0};F.isZero=function(){return this.s===0};F.lessThan=F.lt=function(e){return this.cmp(e)<0};F.lessThanOrEqualTo=F.lte=function(e){return this.cmp(e)<1};F.logarithm=F.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(De))throw Error(He+"NaN");if(r.s<1)throw Error(He+(r.s?"NaN":"-Infinity"));return r.eq(De)?new n(0):(le=!1,t=ft(zr(r,a),zr(e,a),a),le=!0,oe(t,i))};F.minus=F.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?vh(t,e):ph(t,(e.s=-e.s,e))};F.modulo=F.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(He+"NaN");return r.s?(le=!1,t=ft(r,e,0,1).times(e),le=!0,r.minus(t)):oe(new n(r),i)};F.naturalExponential=F.exp=function(){return dh(this)};F.naturalLogarithm=F.ln=function(){return zr(this)};F.negated=F.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};F.plus=F.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ph(t,e):vh(t,(e.s=-e.s,e))};F.precision=F.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Dt+e);if(t=pe(i)+1,n=i.d.length-1,r=n*ce+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};F.squareRoot=F.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(He+"NaN")}for(e=pe(u),le=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=tt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=pr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(ft(u,a,o+2)).times(.5),tt(a.d).slice(0,o)===(t=tt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(oe(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return le=!0,oe(n,r)};F.times=F.mul=function(e){var t,r,n,i,a,o,u,c,l,f=this,s=f.constructor,h=f.d,p=(e=new s(e)).d;if(!f.s||!e.s)return new s(0);for(e.s*=f.s,r=f.e+e.e,c=h.length,l=p.length,c=0;){for(t=0,i=c+n;i>n;)u=a[i]+p[n]*h[i-n-1]+t,a[i--]=u%be|0,t=u/be|0;a[i]=(a[i]+t)%be|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,le?oe(e,s.precision):e};F.toDecimalPlaces=F.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(nt(e,0,hr),t===void 0?t=n.rounding:nt(t,0,8),oe(r,e+pe(r)+1,t))};F.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Nt(n,!0):(nt(e,0,hr),t===void 0?t=i.rounding:nt(t,0,8),n=oe(new i(n),e+1,t),r=Nt(n,!0,e+1)),r};F.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Nt(i):(nt(e,0,hr),t===void 0?t=a.rounding:nt(t,0,8),n=oe(new a(i),e+pe(i)+1,t),r=Nt(n.abs(),!1,e+pe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};F.toInteger=F.toint=function(){var e=this,t=e.constructor;return oe(new t(e),pe(e)+1,t.rounding)};F.toNumber=function(){return+this};F.toPower=F.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,l=12,f=+(e=new c(e));if(!e.s)return new c(De);if(u=new c(u),!u.s){if(e.s<1)throw Error(He+"Infinity");return u}if(u.eq(De))return u;if(n=c.precision,e.eq(De))return oe(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=hh){for(i=new c(De),t=Math.ceil(n/ce+4),le=!1;r%2&&(i=i.times(u),nl(i.d,t)),r=pr(r/2),r!==0;)u=u.times(u),nl(u.d,t);return le=!0,e.s<0?new c(De).div(i):oe(i,n)}}else if(a<0)throw Error(He+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,le=!1,i=e.times(zr(u,n+l)),le=!0,i=dh(i),i.s=a,i};F.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=pe(i),n=Nt(i,r<=a.toExpNeg||r>=a.toExpPos)):(nt(e,1,hr),t===void 0?t=a.rounding:nt(t,0,8),i=oe(new a(i),e,t),r=pe(i),n=Nt(i,e<=r||r<=a.toExpNeg,e)),n};F.toSignificantDigits=F.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(nt(e,1,hr),t===void 0?t=n.rounding:nt(t,0,8)),oe(new n(r),e,t)};F.toString=F.valueOf=F.val=F.toJSON=F[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=pe(e),r=e.constructor;return Nt(e,t<=r.toExpNeg||t>=r.toExpPos)};function ph(e,t){var r,n,i,a,o,u,c,l,f=e.constructor,s=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),le?oe(t,s):t;if(c=e.d,l=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=l.length):(n=l,i=o,u=c.length),o=Math.ceil(s/ce),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=l.length,u-a<0&&(a=u,n=l,l=c,c=n),r=0;a;)r=(c[--a]=c[a]+l[a]+r)/be|0,c[a]%=be;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,le?oe(t,s):t}function nt(e,t,r){if(e!==~~e||er)throw Error(Dt+e)}function tt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(u=c=0;ui[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var u,c,l,f,s,h,p,y,v,d,x,b,w,m,g,O,S,A,$=n.constructor,j=n.s==i.s?1:-1,T=n.d,_=i.d;if(!n.s)return new $(n);if(!i.s)throw Error(He+"Division by zero");for(c=n.e-i.e,S=_.length,g=T.length,p=new $(j),y=p.d=[],l=0;_[l]==(T[l]||0);)++l;if(_[l]>(T[l]||0)&&--c,a==null?b=a=$.precision:o?b=a+(pe(n)-pe(i))+1:b=a,b<0)return new $(0);if(b=b/ce+2|0,l=0,S==1)for(f=0,_=_[0],b++;(l1&&(_=e(_,f),T=e(T,f),S=_.length,g=T.length),m=S,v=T.slice(0,S),d=v.length;d=be/2&&++O;do f=0,u=t(_,v,S,d),u<0?(x=v[0],S!=d&&(x=x*be+(v[1]||0)),f=x/O|0,f>1?(f>=be&&(f=be-1),s=e(_,f),h=s.length,d=v.length,u=t(s,v,h,d),u==1&&(f--,r(s,S16)throw Error(Pu+pe(e));if(!e.s)return new f(De);for(t==null?(le=!1,u=s):u=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(n=Math.log($t(2,l))/Math.LN10*2+5|0,u+=n,r=i=a=new f(De),f.precision=u;;){if(i=oe(i.times(e),u),r=r.times(++c),o=a.plus(ft(i,r,u)),tt(o.d).slice(0,u)===tt(a.d).slice(0,u)){for(;l--;)a=oe(a.times(a),u);return f.precision=s,t==null?(le=!0,oe(a,s)):a}a=o}}function pe(e){for(var t=e.e*ce,r=e.d[0];r>=10;r/=10)t++;return t}function wa(e,t,r){if(t>e.LN10.sd())throw le=!0,r&&(e.precision=r),Error(He+"LN10 precision limit exceeded");return oe(new e(e.LN10),t)}function gt(e){for(var t="";e--;)t+="0";return t}function zr(e,t){var r,n,i,a,o,u,c,l,f,s=1,h=10,p=e,y=p.d,v=p.constructor,d=v.precision;if(p.s<1)throw Error(He+(p.s?"NaN":"-Infinity"));if(p.eq(De))return new v(0);if(t==null?(le=!1,l=d):l=t,p.eq(10))return t==null&&(le=!0),wa(v,l);if(l+=h,v.precision=l,r=tt(y),n=r.charAt(0),a=pe(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=tt(p.d),n=r.charAt(0),s++;a=pe(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return c=wa(v,l+2,d).times(a+""),p=zr(new v(n+"."+r.slice(1)),l-h).plus(c),v.precision=d,t==null?(le=!0,oe(p,d)):p;for(u=o=p=ft(p.minus(De),p.plus(De),l),f=oe(p.times(p),l),i=3;;){if(o=oe(o.times(f),l),c=u.plus(ft(o,new v(i),l)),tt(c.d).slice(0,l)===tt(u.d).slice(0,l))return u=u.times(2),a!==0&&(u=u.plus(wa(v,l+2,d).times(a+""))),u=ft(u,new v(s),l),v.precision=d,t==null?(le=!0,oe(u,d)):u;u=c,i+=2}}function rl(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=pr(r/ce),e.d=[],n=(r+1)%ce,r<0&&(n+=ce),noi||e.e<-oi))throw Error(Pu+r)}else e.s=0,e.e=0,e.d=[0];return e}function oe(e,t,r){var n,i,a,o,u,c,l,f,s=e.d;for(o=1,a=s[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ce,i=t,l=s[f=0];else{if(f=Math.ceil((n+1)/ce),a=s.length,f>=a)return e;for(l=a=s[f],o=1;a>=10;a/=10)o++;n%=ce,i=n-ce+o}if(r!==void 0&&(a=$t(10,o-i-1),u=l/a%10|0,c=t<0||s[f+1]!==void 0||l%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?l/$t(10,o-i):0:s[f-1])%10&1||r==(e.s<0?8:7))),t<1||!s[0])return c?(a=pe(e),s.length=1,t=t-a-1,s[0]=$t(10,(ce-t%ce)%ce),e.e=pr(-t/ce)||0):(s.length=1,s[0]=e.e=e.s=0),e;if(n==0?(s.length=f,a=1,f--):(s.length=f+1,a=$t(10,ce-n),s[f]=i>0?(l/$t(10,o-i)%$t(10,i)|0)*a:0),c)for(;;)if(f==0){(s[0]+=a)==be&&(s[0]=1,++e.e);break}else{if(s[f]+=a,s[f]!=be)break;s[f--]=0,a=1}for(n=s.length;s[--n]===0;)s.pop();if(le&&(e.e>oi||e.e<-oi))throw Error(Pu+pe(e));return e}function vh(e,t){var r,n,i,a,o,u,c,l,f,s,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),le?oe(t,p):t;if(c=e.d,s=t.d,n=t.e,l=e.e,c=c.slice(),o=l-n,o){for(f=o<0,f?(r=c,o=-o,u=s.length):(r=s,n=l,u=c.length),i=Math.max(Math.ceil(p/ce),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=s.length,f=i0;--i)c[u++]=0;for(i=s.length;i>o;){if(c[--i]0?a=a.charAt(0)+"."+a.slice(1)+gt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+gt(-i-1)+a,r&&(n=r-o)>0&&(a+=gt(n))):i>=o?(a+=gt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+gt(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=gt(n))),e.s<0?"-"+a:a}function nl(e,t){if(e.length>t)return e.length=t,!0}function yh(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){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(Dt+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 rl(o,a.toString())}else if(typeof a!="string")throw Error(Dt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,N0.test(a))rl(o,a);else throw Error(Dt+a)}if(i.prototype=F,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=yh,i.config=i.set=B0,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Dt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Dt+r+": "+n);return this}var _u=yh(D0);De=new _u(1);const ae=_u;function L0(e){return F0(e)||U0(e)||W0(e)||R0()}function R0(){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 W0(e,t){if(e){if(typeof e=="string")return no(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return no(e,t)}}function U0(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function F0(e){if(Array.isArray(e))return no(e)}function no(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,il(function(){for(var u=arguments.length,c=new Array(u),l=0;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function nw(e){if(Array.isArray(e))return e}function xh(e){var t=qr(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Oh(e,t,r){if(e.lte(0))return new ae(0);var n=Ji.getDigitCount(e.toNumber()),i=new ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ae(Math.ceil(c))}function iw(e,t,r){var n=1,i=new ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ae(10).pow(Ji.getDigitCount(e)-1),i=new ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ae(Math.floor(e)))}else e===0?i=new ae(Math.floor((t-1)/2)):r||(i=new ae(Math.floor(e)));var o=Math.floor((t-1)/2),u=H0(K0(function(c){return i.add(new ae(c-o).mul(n)).toNumber()}),io);return u(0,t)}function Sh(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ae(0),tickMin:new ae(0),tickMax:new ae(0)};var a=Oh(new ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ae(0):(o=new ae(e).add(t).div(2),o=o.sub(new ae(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ae(t).sub(o).div(a).toNumber()),l=u+c+1;return l>r?Sh(e,t,r,n,i+1):(l0?c+(r-l):c,u=t>0?u:u+(r-l)),{step:a,tickMin:o.sub(new ae(u).mul(a)),tickMax:o.add(new ae(c).mul(a))})}function aw(e){var t=qr(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=xh([r,n]),c=qr(u,2),l=c[0],f=c[1];if(l===-1/0||f===1/0){var s=f===1/0?[l].concat(oo(io(0,i-1).map(function(){return 1/0}))):[].concat(oo(io(0,i-1).map(function(){return-1/0})),[f]);return r>n?ao(s):s}if(l===f)return iw(l,i,a);var h=Sh(l,f,o,a),p=h.step,y=h.tickMin,v=h.tickMax,d=Ji.rangeStep(y,v.add(new ae(.1).mul(p)),p);return r>n?ao(d):d}function ow(e,t){var r=qr(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=xh([n,i]),u=qr(o,2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[n,i];if(c===l)return[c];var f=Math.max(t,2),s=Oh(new ae(l).sub(c).div(f-1),a,0),h=[].concat(oo(Ji.rangeStep(new ae(c),new ae(l).sub(new ae(.99).mul(s)),s)),[l]);return n>i?ao(h):h}var uw=bh(aw),cw=bh(ow),lw="Invariant failed";function Bt(e,t){if(!e)throw new Error(lw)}var sw=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mw(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function On(e){var t=e.offset,r=e.layout,n=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,u=e.xAxis,c=e.yAxis,l=yw(e,sw),f=Q(l,!1);e.direction==="x"&&u.type!=="number"&&Bt(!1);var s=a.map(function(h){var p=o(h,i),y=p.x,v=p.y,d=p.value,x=p.errorVal;if(!x)return null;var b=[],w,m;if(Array.isArray(x)){var g=fw(x,2);w=g[0],m=g[1]}else w=m=x;if(r==="vertical"){var O=u.scale,S=v+t,A=S+n,$=S-n,j=O(d-w),T=O(d+m);b.push({x1:T,y1:A,x2:T,y2:$}),b.push({x1:j,y1:S,x2:T,y2:S}),b.push({x1:j,y1:A,x2:j,y2:$})}else if(r==="horizontal"){var _=c.scale,k=y+t,E=k-n,D=k+n,M=_(d-w),N=_(d+m);b.push({x1:E,y1:N,x2:D,y2:N}),b.push({x1:k,y1:M,x2:k,y2:N}),b.push({x1:E,y1:M,x2:D,y2:M})}return P.createElement(fe,ui({className:"recharts-errorBar",key:"bar-".concat(b.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},f),b.map(function(L){return P.createElement("line",ui({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return P.createElement(fe,{className:"recharts-errorBars"},s)}On.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};On.displayName="ErrorBar";function Kr(e){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(e)}function ol(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xa(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,l=0;l0?i[l-1].coordinate:i[u-1].coordinate,s=i[l].coordinate,h=l>=u-1?i[0].coordinate:i[l+1].coordinate,p=void 0;if(Je(s-f)!==Je(h-s)){var y=[];if(Je(h-s)===Je(c[1]-c[0])){p=h;var v=s+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var d=h+c[1]-c[0];y[0]=Math.min(s,(d+s)/2),y[1]=Math.max(s,(d+s)/2)}var x=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>x[0]&&t<=x[1]||t>=y[0]&&t<=y[1]){o=i[l].index;break}}else{var b=Math.min(f,h),w=Math.max(f,h);if(t>(b+s)/2&&t<=(w+s)/2){o=i[l].index;break}}}else for(var m=0;m0&&m(n[m].coordinate+n[m-1].coordinate)/2&&t<=(n[m].coordinate+n[m+1].coordinate)/2||m===u-1&&t>(n[m].coordinate+n[m-1].coordinate)/2){o=n[m].index;break}return o},Tu=function(t){var r=t,n=r.type.displayName,i=t.props,a=i.stroke,o=i.fill,u;switch(n){case"Line":u=a;break;case"Area":case"Radar":u=a&&a!=="none"?a:o;break;default:u=o;break}return u},Ew=function(t){var r=t.barSize,n=t.stackGroups,i=n===void 0?{}:n;if(!i)return{};for(var a={},o=Object.keys(i),u=0,c=o.length;u=0});if(d&&d.length){var x=d[0].props.barSize,b=d[0].props[v];a[b]||(a[b]=[]),a[b].push({item:d[0],stackList:d.slice(1),barSize:ee(x)?r:x})}}return a},jw=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var l=Vt(r,i,0,!0),f,s=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/c,y=o.reduce(function(m,g){return m+g.barSize||0},0);y+=(c-1)*l,y>=i&&(y-=(c-1)*l,l=0),y>=i&&p>0&&(h=!0,p*=.9,y=c*p);var v=(i-y)/2>>0,d={offset:v-l,size:0};f=o.reduce(function(m,g){var O={item:g.item,position:{offset:d.offset+d.size+l,size:h?p:g.barSize}},S=[].concat(cl(m),[O]);return d=S[S.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:d})}),S},s)}else{var x=Vt(n,i,0,!0);i-2*x-(c-1)*l<=0&&(l=0);var b=(i-2*x-(c-1)*l)/c;b>1&&(b>>=0);var w=u===+u?Math.min(b,u):b;f=o.reduce(function(m,g,O){var S=[].concat(cl(m),[{item:g.item,position:{offset:x+(b+l)*O+(b-w)/2,size:w}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},s)}return f},$w=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),l=Ah({children:a,legendWidth:c});if(l){var f=i||{},s=f.width,h=f.height,p=l.align,y=l.verticalAlign,v=l.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&W(t[p]))return Fe(Fe({},t),{},Xt({},p,t[p]+(s||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&W(t[y]))return Fe(Fe({},t),{},Xt({},y,t[y]+(h||0)))}return t},Mw=function(t,r,n){return ee(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Ph=function(t,r,n,i,a){var o=r.props.children,u=Ke(o,On).filter(function(l){return Mw(i,a,l.props.direction)});if(u&&u.length){var c=u.map(function(l){return l.props.dataKey});return t.reduce(function(l,f){var s=Ne(f,n,0),h=Array.isArray(s)?[Yi(s),Gi(s)]:[s,s],p=c.reduce(function(y,v){var d=Ne(f,v,0),x=h[0]-Math.abs(Array.isArray(d)?d[0]:d),b=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(x,y[0]),Math.max(b,y[1])]},[1/0,-1/0]);return[Math.min(p[0],l[0]),Math.max(p[1],l[1])]},[1/0,-1/0])}return null},Cw=function(t,r,n,i,a){var o=r.map(function(u){return Ph(t,u,n,a,i)}).filter(function(u){return!ee(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},_h=function(t,r,n,i,a){var o=r.map(function(c){var l=c.props.dataKey;return n==="number"&&l&&Ph(t,c,l,i)||jr(t,l,n,a)});if(n==="number")return o.reduce(function(c,l){return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,l){for(var f=0,s=l.length;f=2?Je(u[0]-u[1])*2*l:l,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(s){var h=a?a.indexOf(s):s;return{coordinate:i(h)+l,value:s,offset:l}});return f.filter(function(s){return!mn(s.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(s,h){return{coordinate:i(s)+l,value:s,index:h,offset:l}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(s){return{coordinate:i(s)+l,value:s,offset:l}}):i.domain().map(function(s,h){return{coordinate:i(s)+l,value:a?a[s]:s,index:h,offset:l}})},Oa=new WeakMap,Mn=function(t,r){if(typeof r!="function")return t;Oa.has(t)||Oa.set(t,new WeakMap);var n=Oa.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},kw=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:Ur(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:ri(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Er(),realScaleType:"point"}:a==="category"?{scale:Ur(),realScaleType:"band"}:{scale:ri(),realScaleType:"linear"};if(yn(i)){var c="scale".concat(Li(i));return{scale:(tl[c]||Er)(),realScaleType:tl[c]?c:"point"}}return J(i)?{scale:i}:{scale:Er(),realScaleType:"point"}},ll=1e-4,Iw=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-ll,o=Math.max(i[0],i[1])+ll,u=t(r[0]),c=t(r[n-1]);(uo||co)&&t.domain([r[0],r[n-1]])}},Dw=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},Lw=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},Rw={sign:Bw,expand:Dv,none:Gt,silhouette:Nv,wiggle:Bv,positive:Lw},Ww=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=Rw[n],o=Iv().keys(i).value(function(u,c){return+Ne(u,c,0)}).order(Fa).offset(a);return o(t)},Uw=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},l=u.reduce(function(s,h){var p=h.props,y=p.stackId,v=p.hide;if(v)return s;var d=h.props[n],x=s[d]||{hasStack:!1,stackGroups:{}};if(ye(y)){var b=x.stackGroups[y]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),x.hasStack=!0,x.stackGroups[y]=b}else x.stackGroups[gn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return Fe(Fe({},s),{},Xt({},d,x))},c),f={};return Object.keys(l).reduce(function(s,h){var p=l[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,d){var x=p.stackGroups[d];return Fe(Fe({},v),{},Xt({},d,{numericAxisId:n,cateAxisId:i,items:x.items,stackedData:Ww(t,x.items,a)}))},y)}return Fe(Fe({},s),{},Xt({},h,p))},f)},Fw=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=t.domain();if(!l.length)return null;var f=uw(l,a,u);return t.domain([Yi(f),Gi(f)]),{niceTicks:f}}if(a&&i==="number"){var s=t.domain(),h=cw(s,a,u);return{niceTicks:h}}return null};function sl(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ee(i[t.dataKey])){var u=Rn(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Ne(i,ee(o)?t.dataKey:o);return ee(c)?null:t.scale(c)}var fl=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=Ne(o,r.dataKey,r.domain[u]);return ee(c)?null:r.scale(c)-a/2+i},zw=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},qw=function(t,r){var n=t.props.stackId;if(ye(n)){var i=r[n];if(i){var a=i.items.indexOf(t);return a>=0?i.stackedData[a]:null}}return null},Kw=function(t){return t.reduce(function(r,n){return[Yi(n.concat([r[0]]).filter(W)),Gi(n.concat([r[1]]).filter(W))]},[1/0,-1/0])},Eh=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(l,f){var s=Kw(f.slice(r,n+1));return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},hl=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,pl=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lo=function(t,r,n){if(J(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(W(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(hl.test(t[0])){var a=+hl.exec(t[0])[1];i[0]=r[0]-a}else J(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(W(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(pl.test(t[1])){var o=+pl.exec(t[1])[1];i[1]=r[1]+o}else J(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},ci=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=zo(r,function(s){return s.coordinate}),o=1/0,u=1,c=a.length;uo&&(l=2*Math.PI-l),{radius:u,angle:Gw(l),angleInRadian:l}},Jw=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},Qw=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},ml=function(t,r){var n=t.x,i=t.y,a=Zw({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,l=r.outerRadius;if(ol)return!1;if(o===0)return!0;var f=Jw(r),s=f.startAngle,h=f.endAngle,p=u,y;if(s<=h){for(;p>h;)p-=360;for(;p=s&&p<=h}else{for(;p>s;)p-=360;for(;p=h&&p<=s}return y?yl(yl({},r),{},{radius:o,angle:Qw(p,r)}):null};function Vr(e){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(e)}var ex=["offset"];function tx(e){return ax(e)||ix(e)||nx(e)||rx()}function rx(){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 nx(e,t){if(e){if(typeof e=="string")return so(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return so(e,t)}}function ix(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ax(e){if(Array.isArray(e))return so(e)}function so(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ux(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function gl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t=0?1:-1,w,m;i==="insideStart"?(w=p+b*o,m=v):i==="insideEnd"?(w=y-b*o,m=!v):i==="end"&&(w=y+b*o,m=v),m=x<=0?m:!m;var g=Se(l,f,d,w),O=Se(l,f,d,w+(m?1:-1)*359),S="M".concat(g.x,",").concat(g.y,` - A`).concat(d,",").concat(d,",0,1,").concat(m?0:1,`, - `).concat(O.x,",").concat(O.y),A=ee(t.id)?gn("recharts-radial-line-"):t.id;return P.createElement("text",Gr({},n,{dominantBaseline:"central",className:ne("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:A,d:S})),P.createElement("textPath",{xlinkHref:"#".concat(A)},r))},dx=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,l=a.outerRadius,f=a.startAngle,s=a.endAngle,h=(f+s)/2;if(i==="outside"){var p=Se(o,u,l+n,h),y=p.x,v=p.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var d=(c+l)/2,x=Se(o,u,d,h),b=x.x,w=x.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},vx=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,l=o.width,f=o.height,s=f>=0?1:-1,h=s*i,p=s>0?"end":"start",y=s>0?"start":"end",v=l>=0?1:-1,d=v*i,x=v>0?"end":"start",b=v>0?"start":"end";if(a==="top"){var w={x:u+l/2,y:c-s*i,textAnchor:"middle",verticalAnchor:p};return ve(ve({},w),n?{height:Math.max(c-n.y,0),width:l}:{})}if(a==="bottom"){var m={x:u+l/2,y:c+f+h,textAnchor:"middle",verticalAnchor:y};return ve(ve({},m),n?{height:Math.max(n.y+n.height-(c+f),0),width:l}:{})}if(a==="left"){var g={x:u-d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return ve(ve({},g),n?{width:Math.max(g.x-n.x,0),height:f}:{})}if(a==="right"){var O={x:u+l+d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return ve(ve({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:f}:{})}var S=n?{width:l,height:f}:{};return a==="insideLeft"?ve({x:u+d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},S):a==="insideRight"?ve({x:u+l-d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},S):a==="insideTop"?ve({x:u+l/2,y:c+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?ve({x:u+l/2,y:c+f-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?ve({x:u+d,y:c+h,textAnchor:b,verticalAnchor:y},S):a==="insideTopRight"?ve({x:u+l-d,y:c+h,textAnchor:x,verticalAnchor:y},S):a==="insideBottomLeft"?ve({x:u+d,y:c+f-h,textAnchor:b,verticalAnchor:p},S):a==="insideBottomRight"?ve({x:u+l-d,y:c+f-h,textAnchor:x,verticalAnchor:p},S):fr(a)&&(W(a.x)||Mt(a.x))&&(W(a.y)||Mt(a.y))?ve({x:u+Vt(a.x,l),y:c+Vt(a.y,f),textAnchor:"end",verticalAnchor:"end"},S):ve({x:u+l/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},S)},yx=function(t){return"cx"in t&&W(t.cx)};function Te(e){var t=e.offset,r=t===void 0?5:t,n=ox(e,ex),i=ve({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,l=i.content,f=i.className,s=f===void 0?"":f,h=i.textBreakAll;if(!a||ee(u)&&ee(c)&&!B.isValidElement(l)&&!J(l))return null;if(B.isValidElement(l))return B.cloneElement(l,i);var p;if(J(l)){if(p=B.createElement(l,i),B.isValidElement(p))return p}else p=fx(i);var y=yx(a),v=Q(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return px(i,p,v);var d=y?dx(i):vx(i);return P.createElement(Jn,Gr({className:ne("recharts-label",s)},v,d,{breakAll:h}),p)}Te.displayName="Label";var $h=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,l=t.innerRadius,f=t.outerRadius,s=t.x,h=t.y,p=t.top,y=t.left,v=t.width,d=t.height,x=t.clockWise,b=t.labelViewBox;if(b)return b;if(W(v)&&W(d)){if(W(s)&&W(h))return{x:s,y:h,width:v,height:d};if(W(p)&&W(y))return{x:p,y,width:v,height:d}}return W(s)&&W(h)?{x:s,y:h,width:0,height:0}:W(r)&&W(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:l||0,outerRadius:f||c||u||0,clockWise:x}:t.viewBox?t.viewBox:{}},mx=function(t,r){return t?t===!0?P.createElement(Te,{key:"label-implicit",viewBox:r}):ye(t)?P.createElement(Te,{key:"label-implicit",viewBox:r,value:t}):B.isValidElement(t)?t.type===Te?B.cloneElement(t,{key:"label-implicit",viewBox:r}):P.createElement(Te,{key:"label-implicit",content:t,viewBox:r}):J(t)?P.createElement(Te,{key:"label-implicit",content:t,viewBox:r}):fr(t)?P.createElement(Te,Gr({viewBox:r},t,{key:"label-implicit"})):null:null},gx=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=$h(t),o=Ke(i,Te).map(function(c,l){return B.cloneElement(c,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var u=mx(t.label,r||a);return[u].concat(tx(o))};Te.parseViewBox=$h;Te.renderCallByParent=gx;function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(e)}var bx=["valueAccessor"],wx=["data","dataKey","clockWise","id","textBreakAll"];function xx(e){return Px(e)||Ax(e)||Sx(e)||Ox()}function Ox(){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 Sx(e,t){if(e){if(typeof e=="string")return fo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fo(e,t)}}function Ax(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Px(e){if(Array.isArray(e))return fo(e)}function fo(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jx(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var $x=function(t){return Array.isArray(t.value)?Ep(t.value):t.value};function xt(e){var t=e.valueAccessor,r=t===void 0?$x:t,n=xl(e,bx),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,l=xl(n,wx);return!i||!i.length?null:P.createElement(fe,{className:"recharts-label-list"},i.map(function(f,s){var h=ee(a)?r(f,s):Ne(f&&f.payload,a),p=ee(u)?{}:{id:"".concat(u,"-").concat(s)};return P.createElement(Te,si({},Q(f,!0),l,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Te.parseViewBox(ee(o)?f:wl(wl({},f),{},{clockWise:o})),key:"label-".concat(s),index:s}))}))}xt.displayName="LabelList";function Mx(e,t){return e?e===!0?P.createElement(xt,{key:"labelList-implicit",data:t}):P.isValidElement(e)||J(e)?P.createElement(xt,{key:"labelList-implicit",data:t,content:e}):fr(e)?P.createElement(xt,si({data:t},e,{key:"labelList-implicit"})):null:null}function Cx(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Ke(n,xt).map(function(o,u){return B.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=Mx(e.label,t);return[a].concat(xx(i))}xt.renderCallByParent=Cx;function Zr(e){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(e)}function ho(){return ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>l),`, - `).concat(s.x,",").concat(s.y,` - `);if(i>0){var p=Se(r,n,i,o),y=Se(r,n,i,l);h+="L ".concat(y.x,",").concat(y.y,` - A `).concat(i,",").concat(i,`,0, - `).concat(+(Math.abs(c)>180),",").concat(+(o<=l),`, - `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},Bx=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,f=t.endAngle,s=Je(f-l),h=Cn({cx:r,cy:n,radius:a,angle:l,sign:s,cornerRadius:o,cornerIsExternal:c}),p=h.circleTangency,y=h.lineTangency,v=h.theta,d=Cn({cx:r,cy:n,radius:a,angle:f,sign:-s,cornerRadius:o,cornerIsExternal:c}),x=d.circleTangency,b=d.lineTangency,w=d.theta,m=c?Math.abs(l-f):Math.abs(l-f)-v-w;if(m<0)return u?"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 - `):Mh({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:f});var g="M ".concat(y.x,",").concat(y.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,` - A`).concat(a,",").concat(a,",0,").concat(+(m>180),",").concat(+(s<0),",").concat(x.x,",").concat(x.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(b.x,",").concat(b.y,` - `);if(i>0){var O=Cn({cx:r,cy:n,radius:i,angle:l,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),S=O.circleTangency,A=O.lineTangency,$=O.theta,j=Cn({cx:r,cy:n,radius:i,angle:f,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),T=j.circleTangency,_=j.lineTangency,k=j.theta,E=c?Math.abs(l-f):Math.abs(l-f)-$-k;if(E<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(_.x,",").concat(_.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(T.x,",").concat(T.y,` - A`).concat(i,",").concat(i,",0,").concat(+(E>180),",").concat(+(s>0),",").concat(S.x,",").concat(S.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(A.x,",").concat(A.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},Lx={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Ch=function(t){var r=Sl(Sl({},Lx),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,l=r.cornerIsExternal,f=r.startAngle,s=r.endAngle,h=r.className;if(o0&&Math.abs(f-s)<360?d=Bx({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:f,endAngle:s}):d=Mh({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:s}),P.createElement("path",ho({},Q(r,!0),{className:p,d,role:"img"}))};function Jr(e){"@babel/helpers - typeof";return Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jr(e)}function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function Vx(e,t){return dr(e.getTime(),t.getTime())}function Ml(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),a=0,o,u;(o=i.next())&&!o.done;){for(var c=t.entries(),l=!1,f=0;(u=c.next())&&!u.done;){var s=o.value,h=s[0],p=s[1],y=u.value,v=y[0],d=y[1];!l&&!n[f]&&(l=r.equals(h,v,a,f,e,t,r)&&r.equals(p,d,h,v,e,t,r))&&(n[f]=!0),f++}if(!l)return!1;a++}return!0}function Gx(e,t,r){var n=$l(e),i=n.length;if($l(t).length!==i)return!1;for(var a;i-- >0;)if(a=n[i],a===Ih&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!kh(t,a)||!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function Sr(e,t,r){var n=El(e),i=n.length;if(El(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],a===Ih&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!kh(t,a)||!r.equals(e[a],t[a],a,a,e,t,r)||(o=jl(e,a),u=jl(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function Yx(e,t){return dr(e.valueOf(),t.valueOf())}function Zx(e,t){return e.source===t.source&&e.flags===t.flags}function Cl(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var u=t.values(),c=!1,l=0;(o=u.next())&&!o.done;)!c&&!n[l]&&(c=r.equals(a.value,o.value,a.value,o.value,e,t,r))&&(n[l]=!0),l++;if(!c)return!1}return!0}function Jx(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var Qx="[object Arguments]",eO="[object Boolean]",tO="[object Date]",rO="[object Map]",nO="[object Number]",iO="[object Object]",aO="[object RegExp]",oO="[object Set]",uO="[object String]",cO=Array.isArray,kl=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Il=Object.assign,lO=Object.prototype.toString.call.bind(Object.prototype.toString);function sO(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,u=e.areSetsEqual,c=e.areTypedArraysEqual;return function(f,s,h){if(f===s)return!0;if(f==null||s==null||typeof f!="object"||typeof s!="object")return f!==f&&s!==s;var p=f.constructor;if(p!==s.constructor)return!1;if(p===Object)return i(f,s,h);if(cO(f))return t(f,s,h);if(kl!=null&&kl(f))return c(f,s,h);if(p===Date)return r(f,s,h);if(p===RegExp)return o(f,s,h);if(p===Map)return n(f,s,h);if(p===Set)return u(f,s,h);var y=lO(f);return y===tO?r(f,s,h):y===aO?o(f,s,h):y===rO?n(f,s,h):y===oO?u(f,s,h):y===iO?typeof f.then!="function"&&typeof s.then!="function"&&i(f,s,h):y===Qx?i(f,s,h):y===eO||y===nO||y===uO?a(f,s,h):!1}}function fO(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Sr:Xx,areDatesEqual:Vx,areMapsEqual:n?Tl(Ml,Sr):Ml,areObjectsEqual:n?Sr:Gx,arePrimitiveWrappersEqual:Yx,areRegExpsEqual:Zx,areSetsEqual:n?Tl(Cl,Sr):Cl,areTypedArraysEqual:n?Sr:Jx};if(r&&(i=Il({},i,r(i))),t){var a=In(i.areArraysEqual),o=In(i.areMapsEqual),u=In(i.areObjectsEqual),c=In(i.areSetsEqual);i=Il({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:c})}return i}function hO(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function pO(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(c,l){var f=n(),s=f.cache,h=s===void 0?t?new WeakMap:void 0:s,p=f.meta;return r(c,l,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(c,l){return r(c,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(c,l){return r(c,l,o)}}var dO=At();At({strict:!0});At({circular:!0});At({circular:!0,strict:!0});At({createInternalComparator:function(){return dr}});At({strict:!0,createInternalComparator:function(){return dr}});At({circular:!0,createInternalComparator:function(){return dr}});At({circular:!0,createInternalComparator:function(){return dr},strict:!0});function At(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,u=fO(e),c=sO(u),l=n?n(c):hO(c);return pO({circular:r,comparator:c,createState:i,equals:l,strict:o})}function vO(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Dl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):vO(i)};requestAnimationFrame(n)}function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function yO(e){return wO(e)||bO(e)||gO(e)||mO()}function mO(){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 gO(e,t){if(e){if(typeof e=="string")return Nl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nl(e,t)}}function Nl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:x<0?0:x},v=function(x){for(var b=x>1?1:x,w=b,m=0;m<8;++m){var g=s(w)-b,O=p(w);if(Math.abs(g-b)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,s,h){var p=-(f-s)*n,y=h*a,v=h+(p-y)*u/1e3,d=h*u/1e3+f;return Math.abs(d-s)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZO(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Sa(e){return t1(e)||e1(e)||QO(e)||JO()}function JO(){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 QO(e,t){if(e){if(typeof e=="string")return xo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xo(e,t)}}function e1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function t1(e){if(Array.isArray(e))return xo(e)}function xo(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pi(e){return pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pi(e)}var vt=function(e){a1(r,e);var t=o1(r);function r(n,i){var a;r1(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,l=o.from,f=o.to,s=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ao(a)),a.changeStyle=a.changeStyle.bind(Ao(a)),!u||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),So(a);if(s&&s.length)a.state={style:s[0].style};else if(l){if(typeof h=="function")return a.state={style:l},So(a);a.state={style:c?Pr({},c,l):l}}else a.state={style:{}};return a}return n1(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,l=a.shouldReAnimate,f=a.to,s=a.from,h=this.state.style;if(u){if(!o){var p={style:c?Pr({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(p);return}if(!(dO(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||l?s:i.to;if(this.state&&h){var d={style:c?Pr({},c,v):v};(c&&[c]!==v||!c&&h!==v)&&this.setState(d)}this.runAnimation(Ve(Ve({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,l=i.easing,f=i.begin,s=i.onAnimationEnd,h=i.onAnimationStart,p=VO(o,u,BO(l),c,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,f,y,c,s])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,l=o[0],f=l.style,s=l.duration,h=s===void 0?0:s,p=function(v,d,x){if(x===0)return v;var b=d.duration,w=d.easing,m=w===void 0?"ease":w,g=d.style,O=d.properties,S=d.onAnimationEnd,A=x>0?o[x-1]:d,$=O||Object.keys(g);if(typeof m=="function"||m==="spring")return[].concat(Sa(v),[a.runJSAnimation.bind(a,{from:A.style,to:g,duration:b,easing:m}),b]);var j=Rl($,b,m),T=Ve(Ve(Ve({},A.style),g),{},{transition:j});return[].concat(Sa(v),[T,b,S]).filter(PO)};return this.manager.start([c].concat(Sa(o.reduce(p,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=xO());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,l=i.easing,f=i.onAnimationStart,s=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof l=="function"||typeof p=="function"||l==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?Pr({},u,c):c,d=Rl(Object.keys(v),o,l);y.start([f,a,Ve(Ve({},v),{},{transition:d}),o,s])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=YO(i,GO),l=B.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||l===0||o<=0)return a;var s=function(p){var y=p.props,v=y.style,d=v===void 0?{}:v,x=y.className,b=B.cloneElement(p,Ve(Ve({},c),{},{style:Ve(Ve({},d),f),className:x}));return b};return l===1?s(B.Children.only(a)):P.createElement("div",null,B.Children.map(a,function(h){return s(h)}))}}]),r}(B.PureComponent);vt.displayName="Animate";vt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};vt.propTypes={from:X.oneOfType([X.object,X.string]),to:X.oneOfType([X.object,X.string]),attributeName:X.string,duration:X.number,begin:X.number,easing:X.oneOfType([X.string,X.func]),steps:X.arrayOf(X.shape({duration:X.number.isRequired,style:X.object.isRequired,easing:X.oneOfType([X.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),X.func]),properties:X.arrayOf("string"),onAnimationEnd:X.func})),children:X.oneOfType([X.node,X.func]),isActive:X.bool,canBegin:X.bool,onAnimationEnd:X.func,shouldReAnimate:X.bool,onAnimationStart:X.func,onAnimationReStart:X.func};function S_(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}X.object,X.object,X.object,X.element;X.object,X.object,X.object,X.oneOfType([X.array,X.element]),X.any;function tn(e){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,c=n>=0?1:-1,l=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var s=[0,0,0,0],h=0,p=4;ho?o:a[h];f="M".concat(t,",").concat(r+u*s[0]),s[0]>0&&(f+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(r)),f+="L ".concat(t+n-c*s[1],",").concat(r),s[1]>0&&(f+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,`, - `).concat(t+n,",").concat(r+u*s[1])),f+="L ".concat(t+n,",").concat(r+i-u*s[2]),s[2]>0&&(f+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,`, - `).concat(t+n-c*s[2],",").concat(r+i)),f+="L ".concat(t+c*s[3],",").concat(r+i),s[3]>0&&(f+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,`, - `).concat(t,",").concat(r+i-u*s[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,` - A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+c*y,",").concat(r,` - L `).concat(t+n-c*y,",").concat(r,` - A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n,",").concat(r+u*y,` - L `).concat(t+n,",").concat(r+i-u*y,` - A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n-c*y,",").concat(r+i,` - L `).concat(t+c*y,",").concat(r+i,` - A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},y1=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var l=Math.min(a,a+u),f=Math.max(a,a+u),s=Math.min(o,o+c),h=Math.max(o,o+c);return n>=l&&n<=f&&i>=s&&i<=h}return!1},m1={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Eu=function(t){var r=Vl(Vl({},m1),t),n=B.useRef(),i=B.useState(-1),a=c1(i,2),o=a[0],u=a[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var m=n.current.getTotalLength();m&&u(m)}catch{}},[]);var c=r.x,l=r.y,f=r.width,s=r.height,h=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,x=r.isAnimationActive,b=r.isUpdateAnimationActive;if(c!==+c||l!==+l||f!==+f||s!==+s||f===0||s===0)return null;var w=ne("recharts-rectangle",p);return b?P.createElement(vt,{canBegin:o>0,from:{width:f,height:s,x:c,y:l},to:{width:f,height:s,x:c,y:l},duration:v,animationEasing:y,isActive:b},function(m){var g=m.width,O=m.height,S=m.x,A=m.y;return P.createElement(vt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,isActive:x,easing:y},P.createElement("path",di({},Q(r,!0),{className:w,d:Gl(S,A,g,O,h),ref:n})))}):P.createElement("path",di({},Q(r,!0),{className:w,d:Gl(c,l,f,s,h)}))};function Po(){return Po=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function A1(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var P1=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},_1=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,l=c===void 0?0:c,f=t.width,s=f===void 0?0:f,h=t.height,p=h===void 0?0:h,y=t.className,v=S1(t,g1),d=b1({x:n,y:a,top:u,left:l,width:s,height:p},v);return!W(n)||!W(a)||!W(s)||!W(p)||!W(u)||!W(l)?null:P.createElement("path",_o({},Q(d,!0),{className:ne("recharts-cross",y),d:P1(n,a,s,p,u,l)}))},T1=Ls,E1=Rs,j1="[object Boolean]";function $1(e){return e===!0||e===!1||E1(e)&&T1(e)==j1}var M1=$1;const C1=$e(M1);function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(e)}function vi(){return vi=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:l},to:{upperWidth:f,lowerWidth:s,height:h,x:c,y:l},duration:v,animationEasing:y,isActive:x},function(w){var m=w.upperWidth,g=w.lowerWidth,O=w.height,S=w.x,A=w.y;return P.createElement(vt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,easing:y},P.createElement("path",vi({},Q(r,!0),{className:b,d:es(S,A,m,g,O),ref:n})))}):P.createElement("g",null,P.createElement("path",vi({},Q(r,!0),{className:b,d:es(c,l,f,s,h)})))},z1=["option","shapeType","propTransformer","activeClassName","isActive"];function an(e){"@babel/helpers - typeof";return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(e)}function q1(e,t){if(e==null)return{};var r=K1(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function K1(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yi(e){for(var t=1;t0&&n.handleDrag(i.changedTouches[0])}),ke(et(n),"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),ke(et(n),"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ke(et(n),"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ke(et(n),"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ke(et(n),"handleSlideDragStart",function(i){var a=cs(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(et(n),"startX"),endX:n.handleTravellerDragStart.bind(et(n),"endX")},n.state={},n}return _S(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,l=u.data,f=l.length-1,s=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,s),y=t.getIndexInRange(o,h);return{startIndex:p-p%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=Ne(a[n],u,n);return J(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,l=c.x,f=c.width,s=c.travellerWidth,h=c.startIndex,p=c.endIndex,y=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,l+f-s-u,l+f-s-o):v<0&&(v=Math.max(v,l-o,l-u));var d=this.getIndex({startX:o+v,endX:u+v});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=cs(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,l=this.state[o],f=this.props,s=f.x,h=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,d=f.data,x={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,s+h-p-l):b<0&&(b=Math.max(b,s-l)),x[o]=l+b;var w=this.getIndex(x),m=w.startIndex,g=w.endIndex,O=function(){var A=d.length-1;return o==="startX"&&(u>c?m%v===0:g%v===0)||uc?g%v===0:m%v===0)||u>c&&g===A};this.setState(ke(ke({},o,l+b),"brushMoveStartX",n.pageX),function(){y&&O()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,l=o.endX,f=this.state[i],s=u.indexOf(f);if(s!==-1){var h=s+n;if(!(h===-1||h>=u.length)){var p=u[h];i==="startX"&&p>=l||i==="endX"&&p<=c||this.setState(ke({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,l=n.stroke;return P.createElement("rect",{stroke:l,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,l=n.children,f=n.padding,s=B.Children.only(l);return s?P.cloneElement(s,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a=this,o=this.props,u=o.y,c=o.travellerWidth,l=o.height,f=o.traveller,s=o.ariaLabel,h=o.data,p=o.startIndex,y=o.endIndex,v=Math.max(n,this.props.x),d=Pa(Pa({},Q(this.props,!1)),{},{x:v,y:u,width:c,height:l}),x=s||"Min value: ".concat(h[p].name,", Max value: ").concat(h[y].name);return P.createElement(fe,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),a.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,i))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,d))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,l=a.travellerWidth,f=Math.min(n,i)+l,s=Math.max(Math.abs(i-n)-l,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:o,width:s,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,l=n.stroke,f=this.state,s=f.startX,h=f.endX,p=5,y={pointerEvents:"none",fill:l};return P.createElement(fe,{className:"recharts-brush-texts"},P.createElement(Jn,gi({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,h)-p,y:o+u/2},y),this.getTextOfTick(i)),P.createElement(Jn,gi({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,h)+c+p,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,l=n.width,f=n.height,s=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,v=h.isTextActive,d=h.isSlideMoving,x=h.isTravellerMoving,b=h.isTravellerFocused;if(!i||!i.length||!W(u)||!W(c)||!W(l)||!W(f)||l<=0||f<=0)return null;var w=ne("recharts-brush",a),m=P.Children.count(o)===1,g=AS("userSelect","none");return P.createElement(fe,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||d||x||b||s)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,l=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),P.createElement("line",{x1:i+1,y1:l,x2:i+o-1,y2:l,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:l+2,x2:i+o-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):J(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,l=n.updateId,f=n.startIndex,s=n.endIndex;if(a!==i.prevData||l!==i.prevUpdateId)return Pa({prevData:a,prevTravellerWidth:c,prevUpdateId:l,prevX:u,prevWidth:o},a&&a.length?MS({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:s}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:l,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}]),t}(B.PureComponent);ke(ar,"displayName","Brush");ke(ar,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var CS=Fs;function kS(e,t){var r;return CS(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var IS=kS,DS=$p,NS=_i,BS=IS,LS=Xo,RS=Vo;function WS(e,t,r){var n=LS(e)?DS:BS;return r&&RS(e,t,r)&&(t=void 0),n(e,NS(t))}var US=WS;const FS=$e(US);var rt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},zS=Cp,qS=Mp,KS=_i;function HS(e,t){var r={};return t=KS(t),qS(e,function(n,i,a){zS(r,i,t(n,i,a))}),r}var XS=HS;const VS=$e(XS);function GS(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pA(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function dA(e,t){var r=e.x,n=e.y,i=hA(e,cA),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),l="".concat(t.height||i.height),f=parseInt(l,10),s="".concat(t.width||i.width),h=parseInt(s,10);return Ar(Ar(Ar(Ar(Ar({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function ss(e){return P.createElement(J1,Eo({shapeType:"rectangle",propTransformer:dA,activeClassName:"recharts-active-bar"},e))}var vA=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=typeof n=="number";return a?t(n,i):(a||Bt(!1),r)}},yA=["value","background"],qh;function or(e){"@babel/helpers - typeof";return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(e)}function mA(e,t){if(e==null)return{};var r=gA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gA(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function wi(){return wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(E)0&&Math.abs(k)0&&(k=Math.min((Ae||0)-(E[Pe-1]||0),k))});var D=k/_,M=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(S=D*M/2),v.padding==="no-gap"){var N=Vt(t.barCategoryGap,D*M),L=D*M/2;S=L-N-(L-N)/M*N}}i==="xAxis"?A=[n.left+(w.left||0)+(S||0),n.left+n.width-(w.right||0)-(S||0)]:i==="yAxis"?A=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(S||0),n.top+n.height-(w.bottom||0)-(S||0)]:A=v.range,g&&(A=[A[1],A[0]]);var R=kw(v,a,h),K=R.scale,V=R.realScaleType;K.domain(x).range(A),Iw(K);var z=Fw(K,Ge(Ge({},v),{},{realScaleType:V}));i==="xAxis"?(T=d==="top"&&!m||d==="bottom"&&m,$=n.left,j=s[O]-T*v.height):i==="yAxis"&&(T=d==="left"&&!m||d==="right"&&m,$=s[O]-T*v.width,j=n.top);var Z=Ge(Ge(Ge({},v),z),{},{realScaleType:V,x:$,y:j,scale:K,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return Z.bandSize=ci(Z,z),!v.hide&&i==="xAxis"?s[O]+=(T?-1:1)*Z.height:v.hide||(s[O]+=(T?-1:1)*Z.width),Ge(Ge({},p),{},ta({},y,Z))},{})},Gh=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},EA=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Gh({x:r,y:n},{x:i,y:a})},Yh=function(){function e(t){PA(this,e),this.scale=t}return _A(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}]),e}();ta(Yh,"EPS",1e-4);var $u=function(t){var r=Object.keys(t).reduce(function(n,i){return Ge(Ge({},n),{},ta({},i,Yh.create(t[i])))},{});return Ge(Ge({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return VS(i,function(c,l){return r[l].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return uA(i,function(a,o){return r[o].isInRange(a)})}})};function jA(e){return(e%180+180)%180}var $A=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=jA(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function tP(e,t){return up(e,t+1)}function rP(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,l=1,f=o,s=function(){var y=n?.[c];if(y===void 0)return{v:up(n,l)};var v=c,d,x=function(){return d===void 0&&(d=r(y,v)),d},b=y.coordinate,w=c===0||Oi(e,b,x,f,u);w||(c=0,f=o,l+=1),w&&(f=b+e*(x()/2+i),c+=l)},h;l<=a.length;)if(h=s(),h)return h.v;return[]}function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}function Ss(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t0?p.coordinate-d*e:p.coordinate})}else a[h]=p=_e(_e({},p),{},{tickCoord:p.coordinate});var x=Oi(e,p.tickCoord,v,u,c);x&&(c=p.tickCoord-e*(v()/2+i),a[h]=_e(_e({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)l(f);return a}function uP(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,l=t.end;if(a){var f=n[u-1],s=r(f,u-1),h=e*(f.coordinate+e*s/2-l);o[u-1]=f=_e(_e({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=Oi(e,f.tickCoord,function(){return s},c,l);p&&(l=f.tickCoord-e*(s/2+i),o[u-1]=_e(_e({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(b){var w=o[b],m,g=function(){return m===void 0&&(m=r(w,b)),m};if(b===0){var O=e*(w.coordinate-e*g()/2-c);o[b]=w=_e(_e({},w),{},{tickCoord:O<0?w.coordinate-O*e:w.coordinate})}else o[b]=w=_e(_e({},w),{},{tickCoord:w.coordinate});var S=Oi(e,w.tickCoord,g,c,l);S&&(c=w.tickCoord+e*(g()/2+i),o[b]=_e(_e({},w),{},{isShow:!0}))},d=0;d=2?Je(i[1].coordinate-i[0].coordinate):1,x=eP(a,d,p);return c==="equidistantPreserveStart"?rP(d,x,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=uP(d,x,v,i,o,c==="preserveStartEnd"):h=oP(d,x,v,i,o),h.filter(function(b){return b.isShow}))}var lP=["viewBox"],sP=["viewBox"],fP=["ticks"];function ur(e){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(e)}function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hP(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function pP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ps(e,t){for(var r=0;r0?c(this.props):c(p)),o<=0||u<=0||!y||!y.length?null:P.createElement(fe,{className:ne("recharts-cartesian-axis",l),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Te.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):J(n)?o=n(i):o=P.createElement(Jn,Kt({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}]),t}(B.Component);Cu(ra,"displayName","CartesianAxis");Cu(ra,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var wP=["type","layout","connectNulls","ref"];function cr(e){"@babel/helpers - typeof";return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(e)}function xP(e,t){if(e==null)return{};var r=OP(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OP(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rs){p=[].concat(Ft(c.slice(0,y)),[s-v]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(Ft(t.repeat(c,f)),Ft(p),d).map(function(x){return"".concat(x,"px")}).join(", ")}),Ye(mt(r),"id",gn("recharts-line-")),Ye(mt(r),"pathRef",function(o){r.mainCurve=o}),Ye(mt(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Ye(mt(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return EP(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,c=a.yAxis,l=a.layout,f=a.children,s=Ke(f,On);if(!s)return null;var h=function(v,d){return{x:v.x,y:v.y,value:v.value,errorVal:Ne(v.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(fe,p,s.map(function(y){return P.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:l,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,c=u.dot,l=u.points,f=u.dataKey,s=Q(this.props,!1),h=Q(c,!0),p=l.map(function(v,d){var x=Ce(Ce(Ce({key:"dot-".concat(d),r:3},s),h),{},{value:v.value,dataKey:f,cx:v.x,cy:v.y,index:d,payload:v.payload});return t.renderDotItem(c,x)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(fe,Mr({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,c=u.type,l=u.layout,f=u.connectNulls;u.ref;var s=xP(u,wP),h=Ce(Ce(Ce({},Q(s,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:l,connectNulls:f});return P.createElement(vo,Mr({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.strokeDasharray,l=o.isAnimationActive,f=o.animationBegin,s=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,v=o.width,d=o.height,x=this.state,b=x.prevPoints,w=x.totalLength;return P.createElement(vt,{begin:f,duration:s,isActive:l,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var g=m.t;if(b){var O=b.length/u.length,S=u.map(function(_,k){var E=Math.floor(k*O);if(b[E]){var D=b[E],M=Ze(D.x,_.x),N=Ze(D.y,_.y);return Ce(Ce({},_),{},{x:M(g),y:N(g)})}if(y){var L=Ze(v*2,_.x),R=Ze(d/2,_.y);return Ce(Ce({},_),{},{x:L(g),y:R(g)})}return Ce(Ce({},_),{},{x:_.x,y:_.y})});return a.renderCurveStatically(S,n,i)}var A=Ze(0,w),$=A(g),j;if(c){var T="".concat(c).split(/[,\s]+/gim).map(function(_){return parseFloat(_)});j=a.getStrokeDasharray($,w,T)}else j=a.generateSimpleStrokeDasharray(w,$);return a.renderCurveStatically(u,n,i,{strokeDasharray:j})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,c=this.state,l=c.prevPoints,f=c.totalLength;return u&&o&&o.length&&(!l&&f>0||!Ti(l,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,l=i.xAxis,f=i.yAxis,s=i.top,h=i.left,p=i.width,y=i.height,v=i.isAnimationActive,d=i.id;if(a||!u||!u.length)return null;var x=this.state.isAnimationFinished,b=u.length===1,w=ne("recharts-line",c),m=l&&l.allowDataOverflow,g=f&&f.allowDataOverflow,O=m||g,S=ee(d)?this.id:d,A=(n=Q(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},$=A.r,j=$===void 0?3:$,T=A.strokeWidth,_=T===void 0?2:T,k=ad(o)?o:{},E=k.clipDot,D=E===void 0?!0:E,M=j*2+_;return P.createElement(fe,{className:w},m||g?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(S)},P.createElement("rect",{x:m?h:h-p/2,y:g?s:s-y/2,width:m?p:p*2,height:g?y:y*2})),!D&&P.createElement("clipPath",{id:"clipPath-dots-".concat(S)},P.createElement("rect",{x:h-M/2,y:s-M/2,width:p+M,height:y+M}))):null,!b&&this.renderCurve(O,S),this.renderErrorBar(O,S),(b||o)&&this.renderDots(O,D,S),(!v||x)&&xt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Ft(n),[0]):n,o=[],u=0;ue.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function t_(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function r_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ks(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&W(i)&&W(a)?t.slice(i,a+1):[]};function bp(e){return e==="number"?[0,"auto"]:void 0}var Fo=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=oa(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,l){var f,s=(f=l.props.data)!==null&&f!==void 0?f:r;s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=s===void 0?u:s;h=Rn(p,o.dataKey,i)}else h=s&&s[n]||u[n];return h?[].concat(sr(c),[jh(l,h)]):c},[])},Ds=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=p_(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,l=t.tooltipTicks,f=Tw(o,u,l,c);if(f>=0&&l){var s=l[f]&&l[f].value,h=Fo(t,r,f,s),p=d_(n,u,f,a);return{activeTooltipIndex:f,activeLabel:s,activePayload:h,activeCoordinate:p}}return null},v_=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,l=r.dataEndIndex,f=t.layout,s=t.children,h=t.stackOffset,p=Th(f,a);return n.reduce(function(y,v){var d,x=v.props,b=x.type,w=x.dataKey,m=x.allowDataOverflow,g=x.allowDuplicatedCategory,O=x.scale,S=x.ticks,A=x.includeHidden,$=v.props[o];if(y[$])return y;var j=oa(t.data,{graphicalItems:i.filter(function(z){return z.props[o]===$}),dataStartIndex:c,dataEndIndex:l}),T=j.length,_,k,E;zP(v.props.domain,m,b)&&(_=lo(v.props.domain,null,m),p&&(b==="number"||O!=="auto")&&(E=jr(j,w,"category")));var D=bp(b);if(!_||_.length===0){var M,N=(M=v.props.domain)!==null&&M!==void 0?M:D;if(w){if(_=jr(j,w,b),b==="category"&&p){var L=Yp(_);g&&L?(k=_,_=mi(0,T)):g||(_=dl(N,_,v).reduce(function(z,Z){return z.indexOf(Z)>=0?z:[].concat(sr(z),[Z])},[]))}else if(b==="category")g?_=_.filter(function(z){return z!==""&&!ee(z)}):_=dl(N,_,v).reduce(function(z,Z){return z.indexOf(Z)>=0||Z===""||ee(Z)?z:[].concat(sr(z),[Z])},[]);else if(b==="number"){var R=Cw(j,i.filter(function(z){return z.props[o]===$&&(A||!z.props.hide)}),w,a,f);R&&(_=R)}p&&(b==="number"||O!=="auto")&&(E=jr(j,w,"category"))}else p?_=mi(0,T):u&&u[$]&&u[$].hasStack&&b==="number"?_=h==="expand"?[0,1]:Eh(u[$].stackGroups,c,l):_=_h(j,i.filter(function(z){return z.props[o]===$&&(A||!z.props.hide)}),b,f,!0);if(b==="number")_=Ro(s,_,$,a,S),N&&(_=lo(N,_,m));else if(b==="category"&&N){var K=N,V=_.every(function(z){return K.indexOf(z)>=0});V&&(_=K)}}return C(C({},y),{},q({},$,C(C({},v.props),{},{axisType:a,domain:_,categoricalDomain:E,duplicateDomain:k,originalDomain:(d=v.props.domain)!==null&&d!==void 0?d:D,isCategorical:p,layout:f})))},{})},y_=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,l=r.dataEndIndex,f=t.layout,s=t.children,h=oa(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:l}),p=h.length,y=Th(f,a),v=-1;return n.reduce(function(d,x){var b=x.props[o],w=bp("number");if(!d[b]){v++;var m;return y?m=mi(0,p):u&&u[b]&&u[b].hasStack?(m=Eh(u[b].stackGroups,c,l),m=Ro(s,m,b,a)):(m=lo(w,_h(h,n.filter(function(g){return g.props[o]===b&&!g.props.hide}),"number",f),i.defaultProps.allowDataOverflow),m=Ro(s,m,b,a)),C(C({},d),{},q({},b,C(C({axisType:a},i.defaultProps),{},{hide:!0,orientation:qe(f_,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:w,isCategorical:y,layout:f})))}return d},{})},m_=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,l=r.dataEndIndex,f=t.children,s="".concat(i,"Id"),h=Ke(f,a),p={};return h&&h.length?p=v_(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:s,stackGroups:u,dataStartIndex:c,dataEndIndex:l}):o&&o.length&&(p=y_(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:s,stackGroups:u,dataStartIndex:c,dataEndIndex:l})),p},g_=function(t){var r=zt(t),n=kt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:zo(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ci(r,n)}},Ns=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ie(r,ar),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},b_=function(t){return!t||!t.length?!1:t.some(function(r){var n=lt(r&&r.type);return n&&n.indexOf("Bar")>=0})},Bs=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},w_=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,l=n.width,f=n.height,s=n.children,h=n.margin||{},p=Ie(s,ar),y=Ie(s,Dr),v=Object.keys(c).reduce(function(g,O){var S=c[O],A=S.orientation;return!S.mirror&&!S.hide?C(C({},g),{},q({},A,g[A]+S.width)):g},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(g,O){var S=o[O],A=S.orientation;return!S.mirror&&!S.hide?C(C({},g),{},q({},A,qe(g,"".concat(A))+S.height)):g},{top:h.top||0,bottom:h.bottom||0}),x=C(C({},d),v),b=x.bottom;p&&(x.bottom+=p.props.height||ar.defaultProps.height),y&&r&&(x=$w(x,i,n,r));var w=l-x.left-x.right,m=f-x.top-x.bottom;return C(C({brushBottom:b},x),{},{width:Math.max(w,0),height:Math.max(m,0)})},wp=function(t){var r,n=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,u=t.validateTooltipEventTypes,c=u===void 0?["axis"]:u,l=t.axisComponents,f=t.legendContent,s=t.formatAxisMap,h=t.defaultProps,p=function(d,x){var b=x.graphicalItems,w=x.stackGroups,m=x.offset,g=x.updateId,O=x.dataStartIndex,S=x.dataEndIndex,A=d.barSize,$=d.layout,j=d.barGap,T=d.barCategoryGap,_=d.maxBarSize,k=Bs($),E=k.numericAxisName,D=k.cateAxisName,M=b_(b),N=M&&Ew({barSize:A,stackGroups:w}),L=[];return b.forEach(function(R,K){var V=oa(d.data,{graphicalItems:[R],dataStartIndex:O,dataEndIndex:S}),z=R.props,Z=z.dataKey,Ae=z.maxBarSize,Pe=R.props["".concat(E,"Id")],Pt=R.props["".concat(D,"Id")],it={},Le=l.reduce(function(_t,Tt){var ua=x["".concat(Tt.axisType,"Map")],ku=R.props["".concat(Tt.axisType,"Id")];ua&&ua[ku]||Tt.axisType==="zAxis"||Bt(!1);var Iu=ua[ku];return C(C({},_t),{},q(q({},Tt.axisType,Iu),"".concat(Tt.axisType,"Ticks"),kt(Iu)))},it),U=Le[D],H=Le["".concat(D,"Ticks")],G=w&&w[Pe]&&w[Pe].hasStack&&qw(R,w[Pe].stackGroups),I=lt(R.type).indexOf("Bar")>=0,se=ci(U,H),Y=[];if(I){var de,he,Me=ee(Ae)?_:Ae,at=(de=(he=ci(U,H,!0))!==null&&he!==void 0?he:Me)!==null&&de!==void 0?de:0;Y=jw({barGap:j,barCategoryGap:T,bandSize:at!==se?at:se,sizeList:N[Pt],maxBarSize:Me}),at!==se&&(Y=Y.map(function(_t){return C(C({},_t),{},{position:C(C({},_t.position),{},{offset:_t.position.offset-at/2})})}))}var Pn=R&&R.type&&R.type.getComposedData;Pn&&L.push({props:C(C({},Pn(C(C({},Le),{},{displayedData:V,props:d,dataKey:Z,item:R,bandSize:se,barPosition:Y,offset:m,stackedData:G,layout:$,dataStartIndex:O,dataEndIndex:S}))),{},q(q(q({key:R.key||"item-".concat(K)},E,Le[E]),D,Le[D]),"animationId",g)),childIndex:cd(R,d.children),item:R})}),L},y=function(d,x){var b=d.props,w=d.dataStartIndex,m=d.dataEndIndex,g=d.updateId;if(!Wu({props:b}))return null;var O=b.children,S=b.layout,A=b.stackOffset,$=b.data,j=b.reverseStackOrder,T=Bs(S),_=T.numericAxisName,k=T.cateAxisName,E=Ke(O,i),D=Uw($,E,"".concat(_,"Id"),"".concat(k,"Id"),A,j),M=l.reduce(function(V,z){var Z="".concat(z.axisType,"Map");return C(C({},V),{},q({},Z,m_(b,C(C({},z),{},{graphicalItems:E,stackGroups:z.axisType===_&&D,dataStartIndex:w,dataEndIndex:m}))))},{}),N=w_(C(C({},M),{},{props:b,graphicalItems:E}),x?.legendBBox);Object.keys(M).forEach(function(V){M[V]=s(b,M[V],N,V.replace("Map",""),n)});var L=M["".concat(k,"Map")],R=g_(L),K=p(b,C(C({},M),{},{dataStartIndex:w,dataEndIndex:m,updateId:g,graphicalItems:E,stackGroups:D,offset:N}));return C(C({formattedGraphicalItems:K,graphicalItems:E,offset:N,stackGroups:D},R),M)};return r=function(v){o_(d,v);function d(x){var b,w,m;return r_(this,d),m=i_(this,d,[x]),q(te(m),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),q(te(m),"accessibilityManager",new FP),q(te(m),"handleLegendBBoxUpdate",function(g){if(g){var O=m.state,S=O.dataStartIndex,A=O.dataEndIndex,$=O.updateId;m.setState(C({legendBBox:g},y({props:m.props,dataStartIndex:S,dataEndIndex:A,updateId:$},C(C({},m.state),{},{legendBBox:g}))))}}),q(te(m),"handleReceiveSyncEvent",function(g,O,S){if(m.props.syncId===g){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(O)}}),q(te(m),"handleBrushChange",function(g){var O=g.startIndex,S=g.endIndex;if(O!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var A=m.state.updateId;m.setState(function(){return C({dataStartIndex:O,dataEndIndex:S},y({props:m.props,dataStartIndex:O,dataEndIndex:S,updateId:A},m.state))}),m.triggerSyncEvent({dataStartIndex:O,dataEndIndex:S})}}),q(te(m),"handleMouseEnter",function(g){var O=m.getMouseInfo(g);if(O){var S=C(C({},O),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseEnter;J(A)&&A(S,g)}}),q(te(m),"triggeredAfterMouseMove",function(g){var O=m.getMouseInfo(g),S=O?C(C({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseMove;J(A)&&A(S,g)}),q(te(m),"handleItemMouseEnter",function(g){m.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),q(te(m),"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),q(te(m),"handleMouseMove",function(g){g.persist(),m.throttleTriggeredAfterMouseMove(g)}),q(te(m),"handleMouseLeave",function(g){m.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};m.setState(O),m.triggerSyncEvent(O);var S=m.props.onMouseLeave;J(S)&&S(O,g)}),q(te(m),"handleOuterEvent",function(g){var O=ud(g),S=qe(m.props,"".concat(O));if(O&&J(S)){var A,$;/.*touch.*/i.test(O)?$=m.getMouseInfo(g.changedTouches[0]):$=m.getMouseInfo(g),S((A=$)!==null&&A!==void 0?A:{},g)}}),q(te(m),"handleClick",function(g){var O=m.getMouseInfo(g);if(O){var S=C(C({},O),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onClick;J(A)&&A(S,g)}}),q(te(m),"handleMouseDown",function(g){var O=m.props.onMouseDown;if(J(O)){var S=m.getMouseInfo(g);O(S,g)}}),q(te(m),"handleMouseUp",function(g){var O=m.props.onMouseUp;if(J(O)){var S=m.getMouseInfo(g);O(S,g)}}),q(te(m),"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),q(te(m),"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseDown(g.changedTouches[0])}),q(te(m),"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseUp(g.changedTouches[0])}),q(te(m),"triggerSyncEvent",function(g){m.props.syncId!==void 0&&Ta.emit(Ea,m.props.syncId,g,m.eventEmitterSymbol)}),q(te(m),"applySyncEvent",function(g){var O=m.props,S=O.layout,A=O.syncMethod,$=m.state.updateId,j=g.dataStartIndex,T=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState(C({dataStartIndex:j,dataEndIndex:T},y({props:m.props,dataStartIndex:j,dataEndIndex:T,updateId:$},m.state)));else if(g.activeTooltipIndex!==void 0){var _=g.chartX,k=g.chartY,E=g.activeTooltipIndex,D=m.state,M=D.offset,N=D.tooltipTicks;if(!M)return;if(typeof A=="function")E=A(N,g);else if(A==="value"){E=-1;for(var L=0;L=0){var H,G;if(_.dataKey&&!_.allowDuplicatedCategory){var I=typeof _.dataKey=="function"?U:"payload.".concat(_.dataKey.toString());H=Rn(L,I,E),G=R&&K&&Rn(K,I,E)}else H=L?.[k],G=R&&K&&K[k];if(Pe||Ae){var se=g.props.activeIndex!==void 0?g.props.activeIndex:k;return[B.cloneElement(g,C(C(C({},A.props),it),{},{activeIndex:se})),null,null]}if(!ee(H))return[Le].concat(sr(m.renderActivePoints({item:A,activePoint:H,basePoint:G,childIndex:k,isRange:R})))}else{var Y,de=(Y=m.getItemByXY(m.state.activeCoordinate))!==null&&Y!==void 0?Y:{graphicalItem:Le},he=de.graphicalItem,Me=he.item,at=Me===void 0?g:Me,Pn=he.childIndex,_t=C(C(C({},A.props),it),{},{activeIndex:Pn});return[B.cloneElement(at,_t),null,null]}return R?[Le,null,null]:[Le,null]}),q(te(m),"renderCustomized",function(g,O,S){return B.cloneElement(g,C(C({key:"recharts-customized-".concat(S)},m.props),m.state))}),q(te(m),"renderMap",{CartesianGrid:{handler:Nn,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Nn},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Nn},YAxis:{handler:Nn},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((b=x.id)!==null&&b!==void 0?b:gn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=jf(m.triggeredAfterMouseMove,(w=x.throttleDelay)!==null&&w!==void 0?w:1e3/60),m.state={},m}return n_(d,[{key:"componentDidMount",value:function(){var b,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,w=b.children,m=b.data,g=b.height,O=b.layout,S=Ie(w,ot);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length)){var $=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,j=Fo(this.state,m,A,$),T=this.state.tooltipTicks[A].coordinate,_=(this.state.offset.top+g)/2,k=O==="horizontal",E=k?{x:T,y:_}:{y:T,x:_},D=this.state.formattedGraphicalItems.find(function(N){var L=N.item;return L.type.name==="Scatter"});D&&(E=C(C({},E),D.props.points[A].tooltipPosition),j=D.props.points[A].tooltipPayload);var M={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:$,activePayload:j,activeCoordinate:E};this.setState(M),this.renderCursor(S),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var m,g;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(b){ka([Ie(b.children,ot)],[Ie(this.props.children,ot)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Ie(this.props.children,ot);if(b&&typeof b.props.shared=="boolean"){var w=b.props.shared?"axis":"item";return c.indexOf(w)>=0?w:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var w=this.container,m=w.getBoundingClientRect(),g=Im(m),O={chartX:Math.round(b.pageX-g.left),chartY:Math.round(b.pageY-g.top)},S=m.width/w.offsetWidth||1,A=this.inRange(O.chartX,O.chartY,S);if(!A)return null;var $=this.state,j=$.xAxisMap,T=$.yAxisMap,_=this.getTooltipEventType();if(_!=="axis"&&j&&T){var k=zt(j).scale,E=zt(T).scale,D=k&&k.invert?k.invert(O.chartX):null,M=E&&E.invert?E.invert(O.chartY):null;return C(C({},O),{},{xValue:D,yValue:M})}var N=Ds(this.state,this.props.data,this.props.layout,A);return N?C(C({},O),N):null}},{key:"inRange",value:function(b,w){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,O=b/m,S=w/m;if(g==="horizontal"||g==="vertical"){var A=this.state.offset,$=O>=A.left&&O<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return $?{x:O,y:S}:null}var j=this.state,T=j.angleAxisMap,_=j.radiusAxisMap;if(T&&_){var k=zt(T);return ml({x:O,y:S},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,w=this.getTooltipEventType(),m=Ie(b,ot),g={};m&&w==="axis"&&(m.props.trigger==="click"?g={onClick:this.handleClick}:g={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var O=Wn(this.props,this.handleOuterEvent);return C(C({},O),g)}},{key:"addListener",value:function(){Ta.on(Ea,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Ta.removeListener(Ea,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,w,m){for(var g=this.state.formattedGraphicalItems,O=0,S=g.length;O